@skaldapp/runtime 3.0.24 → 3.0.26
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/.vite/manifest.json +1 -1
- package/dist/assets/index-BvU5gBfq.js +1 -0
- package/dist/assets/markdown-I8FIHdDk.js +1 -0
- package/dist/assets/{mdit-B5cuWvVi.js → mdit-zb-QA15o.js} +1 -1
- package/dist/assets/{sucrase-2gNFX5im.js → sucrase-zdQQVEr-.js} +1 -1
- package/dist/assets/{unocss-DzYJmioC.js → unocss-DWUf5nri.js} +1 -1
- package/dist/assets/{vue-D831jlsn.js → vue-C2PaPnTK.js} +1 -1
- package/dist/index.html +6 -6
- package/package.json +2 -6
- package/dist/assets/index-zJfjx2uG.js +0 -1
- package/dist/assets/markdown-TiYGSrWK.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as getAugmentedNamespace,a as getDefaultExportFromCjs}from"./ajv-EW6k27gv.js";import{i as isSpace}from"./markdown-TiYGSrWK.js";import{r as renderToString,P as ParseError}from"./katex-v7CqoiPP.js";const attr_name="[a-zA-Z_:@][a-zA-Z0-9:._-]*",attribute="(?:\\s+"+attr_name+"(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)",open_tag="<[A-Za-z][A-Za-z0-9\\-]*"+attribute+"*\\s*\\/?>",HTML_TAG_RE=new RegExp("^(?:"+open_tag+"|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),HTML_OPEN_CLOSE_TAG_RE=new RegExp("^(?:"+open_tag+"|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>)"),HTML_SELF_CLOSING_TAG_RE=new RegExp("^<[A-Za-z][A-Za-z0-9\\-]*"+attribute+"*\\s*\\/>"),HTML_OPEN_AND_CLOSE_TAG_IN_THE_SAME_LINE_RE=new RegExp("^<([A-Za-z][A-Za-z0-9\\-]*)"+attribute+"*\\s*>.*<\\/\\1\\s*>"),TAGS_BLOCK=["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"],TAGS_INLINE=["a","abbr","acronym","audio","b","bdi","bdo","big","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","label","map","mark","meter","noscript","object","output","picture","progress","q","ruby","s","samp","script","select","slot","small","span","strong","sub","sup","svg","template","textarea","time","u","tt","var","video","wbr"],TAGS_VUE_RESERVED=["template","component","transition","transition-group","keep-alive","slot","teleport"],createHtmlSequences=({blockTags:e,inlineTags:t})=>{const r=[...e,...TAGS_BLOCK],n=[...t,...TAGS_INLINE.filter(e=>!TAGS_VUE_RESERVED.includes(e))];return[[/^<(script|pre|style)(?=(\s|>|$))/i,/<\/(script|pre|style)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+r.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp("^</?(?!("+n.join("|")+")(?![\\w-]))[A-Za-z][A-Za-z0-9\\-]*(?=(\\s|/?>|$))"),/^$/,!0],[new RegExp(HTML_OPEN_CLOSE_TAG_RE.source+"\\s*$"),/^$/,!1]]},createHtmlBlockRule=e=>{const t=createHtmlSequences(e);return(e,r,n,i)=>{let o,s,a,l=e.bMarks[r]+e.tShift[r],u=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(l))return!1;for(a=e.src.slice(l,u),o=0;o<t.length&&!t[o][0].test(a);o++);if(o===t.length)return!1;if(i)return t[o][2];if(6===o){const t=a.match(HTML_SELF_CLOSING_TAG_RE)??a.match(HTML_OPEN_AND_CLOSE_TAG_IN_THE_SAME_LINE_RE);if(t){e.line=r+1;let n=e.push("html_inline","",0);return n.content=t[0],n.map=[r,e.line],n=e.push("inline","",0),n.content=a.slice(t[0].length),n.map=[r,e.line],n.children=[],!0}}if(s=r+1,!t[o][1].test(a))for(;s<n&&!(e.sCount[s]<e.blkIndent);s++)if(l=e.bMarks[s]+e.tShift[s],u=e.eMarks[s],a=e.src.slice(l,u),t[o][1].test(a)){0!==a.length&&s++;break}e.line=s;const c=e.push("html_block","",0);return c.map=[r,s],c.content=e.getLines(r,s,e.blkIndent,!0),!0}},isLetter=e=>{const t=32|e;return t>=97&&t<=122},htmlInlineRule=(e,t)=>{const{pos:r}=e;if(!e.md.options.html)return!1;const n=e.posMax;if(60!==e.src.charCodeAt(r)||r+2>=n)return!1;const i=e.src.charCodeAt(r+1);if(33!==i&&63!==i&&47!==i&&!isLetter(i))return!1;const o=e.src.slice(r).match(HTML_TAG_RE);if(!o)return!1;if(!t){e.push("html_inline","",0).content=e.src.slice(r,r+o[0].length)}return e.pos+=o[0].length,!0},componentPlugin=(e,{blockTags:t=[],inlineTags:r=[]}={})=>{const n=createHtmlBlockRule({blockTags:t,inlineTags:r});e.block.ruler.at("html_block",n,{alt:["paragraph","reference","blockquote"]}),e.inline.ruler.at("html_inline",htmlInlineRule)},__viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var kindOf,hasRequiredKindOf,isExtendable,hasRequiredIsExtendable,extendShallow,hasRequiredExtendShallow,sectionMatter,hasRequiredSectionMatter;function requireKindOf(){if(hasRequiredKindOf)return kindOf;hasRequiredKindOf=1;var e=Object.prototype.toString;function t(e){return"function"==typeof e.constructor?e.constructor.name:null}return kindOf=function(r){if(void 0===r)return"undefined";if(null===r)return"null";var n=typeof r;if("boolean"===n)return"boolean";if("string"===n)return"string";if("number"===n)return"number";if("symbol"===n)return"symbol";if("function"===n)return"GeneratorFunction"===t(r)?"generatorfunction":"function";if(function(e){return Array.isArray?Array.isArray(e):e instanceof Array}(r))return"array";if(function(e){if(e.constructor&&"function"==typeof e.constructor.isBuffer)return e.constructor.isBuffer(e);return!1}(r))return"buffer";if(function(e){try{if("number"==typeof e.length&&"function"==typeof e.callee)return!0}catch(t){if(-1!==t.message.indexOf("callee"))return!0}return!1}(r))return"arguments";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(r))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(r))return"error";if(function(e){return e instanceof RegExp||"string"==typeof e.flags&&"boolean"==typeof e.ignoreCase&&"boolean"==typeof e.multiline&&"boolean"==typeof e.global}(r))return"regexp";switch(t(r)){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(function(e){return"function"==typeof e.throw&&"function"==typeof e.return&&"function"==typeof e.next}(r))return"generator";switch(n=e.call(r)){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 n.slice(8,-1).toLowerCase().replace(/\s/g,"")}}function requireIsExtendable(){return hasRequiredIsExtendable?isExtendable:(hasRequiredIsExtendable=1,isExtendable=function(e){return null!=e&&("object"==typeof e||"function"==typeof e)})}function requireExtendShallow(){if(hasRequiredExtendShallow)return extendShallow;hasRequiredExtendShallow=1;var e=requireIsExtendable();function t(e,t){for(var n in t)r(t,n)&&(e[n]=t[n])}function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}return extendShallow=function(r){e(r)||(r={});for(var n=arguments.length,i=1;i<n;i++){var o=arguments[i];e(o)&&t(r,o)}return r},extendShallow}function requireSectionMatter(){if(hasRequiredSectionMatter)return sectionMatter;hasRequiredSectionMatter=1;var e=requireKindOf(),t=requireExtendShallow();function r(e,t){return e.slice(0,t.length)===t&&e.charAt(t.length+1)!==t.slice(-1)}function n(e){return e}return sectionMatter=function(i,o){"function"==typeof o&&(o={parse:o});var s=function(t){"object"!==e(t)&&(t={content:t});if("string"!=typeof t.content&&!function(e){if(e&&e.constructor&&"function"==typeof e.constructor.isBuffer)return e.constructor.isBuffer(e);return!1}(t.content))throw new TypeError("expected a buffer or string");return t.content=t.content.toString(),t.sections=[],t}(i),a=t({},{section_delimiter:"---",parse:n},o),l=a.section_delimiter,u=s.content.split(/\r?\n/),c=null,f={key:"",data:"",content:""},p=[],h=[];function d(e){s.content=e,c=[],p=[]}function g(e){h.length&&(f.key=function(e,t){return e?e.slice(t.length).trim():""}(h[0],l),f.content=e,a.parse(f,c),c.push(f),f={key:"",data:"",content:""},p=[],h=[])}for(var m=0;m<u.length;m++){var y=u[m],b=h.length,k=y.trim();if(r(k,l)){if(3===k.length&&0!==m){if(0===b||2===b){p.push(y);continue}h.push(k),f.data=p.join("\n"),p=[];continue}null===c&&d(p.join("\n")),2===b&&g(p.join("\n")),h.push(k)}else p.push(y)}return null===c?d(p.join("\n")):g(p.join("\n")),s.sections=c,s}}var engines={exports:{}},jsYaml$1={},loader={},common={},hasRequiredCommon,exception,hasRequiredException,mark,hasRequiredMark,type,hasRequiredType,schema,hasRequiredSchema,str,hasRequiredStr,seq,hasRequiredSeq,map,hasRequiredMap,failsafe,hasRequiredFailsafe,_null,hasRequired_null,bool,hasRequiredBool,int,hasRequiredInt,float,hasRequiredFloat,json,hasRequiredJson,core,hasRequiredCore,timestamp,hasRequiredTimestamp,merge,hasRequiredMerge,binary,hasRequiredBinary,omap,hasRequiredOmap,pairs,hasRequiredPairs,set,hasRequiredSet,default_safe,hasRequiredDefault_safe,_undefined,hasRequired_undefined,regexp,hasRequiredRegexp,_function,hasRequired_function,default_full,hasRequiredDefault_full,hasRequiredLoader;function requireCommon(){if(hasRequiredCommon)return common;function e(e){return null==e}return hasRequiredCommon=1,common.isNothing=e,common.isObject=function(e){return"object"==typeof e&&null!==e},common.toArray=function(t){return Array.isArray(t)?t:e(t)?[]:[t]},common.repeat=function(e,t){var r,n="";for(r=0;r<t;r+=1)n+=e;return n},common.isNegativeZero=function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},common.extend=function(e,t){var r,n,i,o;if(t)for(r=0,n=(o=Object.keys(t)).length;r<n;r+=1)e[i=o[r]]=t[i];return e},common}function requireException(){if(hasRequiredException)return exception;function e(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}return hasRequiredException=1,e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e.prototype.toString=function(e){var t=this.name+": ";return t+=this.reason||"(unknown reason)",!e&&this.mark&&(t+=" "+this.mark.toString()),t},exception=e}function requireMark(){if(hasRequiredMark)return mark;hasRequiredMark=1;var e=requireCommon();function t(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}return t.prototype.getSnippet=function(t,r){var n,i,o,s,a;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&-1==="\0\r\n
\u2028\u2029".indexOf(this.buffer.charAt(i-1));)if(i-=1,this.position-i>r/2-1){n=" ... ",i+=5;break}for(o="",s=this.position;s<this.buffer.length&&-1==="\0\r\n
\u2028\u2029".indexOf(this.buffer.charAt(s));)if((s+=1)-this.position>r/2-1){o=" ... ",s-=5;break}return a=this.buffer.slice(i,s),e.repeat(" ",t)+n+a+o+"\n"+e.repeat(" ",t+this.position-i+n.length)+"^"},t.prototype.toString=function(e){var t,r="";return this.name&&(r+='in "'+this.name+'" '),r+="at line "+(this.line+1)+", column "+(this.column+1),e||(t=this.getSnippet())&&(r+=":\n"+t),r},mark=t}function requireType(){if(hasRequiredType)return type;hasRequiredType=1;var e=requireException(),t=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],r=["scalar","sequence","mapping"];return type=function(n,i){var o,s;if(i=i||{},Object.keys(i).forEach(function(r){if(-1===t.indexOf(r))throw new e('Unknown option "'+r+'" is met in definition of "'+n+'" YAML type.')}),this.tag=n,this.kind=i.kind||null,this.resolve=i.resolve||function(){return!0},this.construct=i.construct||function(e){return e},this.instanceOf=i.instanceOf||null,this.predicate=i.predicate||null,this.represent=i.represent||null,this.defaultStyle=i.defaultStyle||null,this.styleAliases=(o=i.styleAliases||null,s={},null!==o&&Object.keys(o).forEach(function(e){o[e].forEach(function(t){s[String(t)]=e})}),s),-1===r.indexOf(this.kind))throw new e('Unknown kind "'+this.kind+'" is specified for "'+n+'" YAML type.')}}function requireSchema(){if(hasRequiredSchema)return schema;hasRequiredSchema=1;var e=requireCommon(),t=requireException(),r=requireType();function n(e,t,r){var i=[];return e.include.forEach(function(e){r=n(e,t,r)}),e[t].forEach(function(e){r.forEach(function(t,r){t.tag===e.tag&&t.kind===e.kind&&i.push(r)}),r.push(e)}),r.filter(function(e,t){return-1===i.indexOf(t)})}function i(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(e){if(e.loadKind&&"scalar"!==e.loadKind)throw new t("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=n(this,"implicit",[]),this.compiledExplicit=n(this,"explicit",[]),this.compiledTypeMap=function(){var e,t,r={scalar:{},sequence:{},mapping:{},fallback:{}};function n(e){r[e.kind][e.tag]=r.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(n);return r}(this.compiledImplicit,this.compiledExplicit)}return i.DEFAULT=null,i.create=function(){var n,o;switch(arguments.length){case 1:n=i.DEFAULT,o=arguments[0];break;case 2:n=arguments[0],o=arguments[1];break;default:throw new t("Wrong number of arguments for Schema.create function")}if(n=e.toArray(n),o=e.toArray(o),!n.every(function(e){return e instanceof i}))throw new t("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!o.every(function(e){return e instanceof r}))throw new t("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new i({include:n,explicit:o})},schema=i}function requireStr(){if(hasRequiredStr)return str;hasRequiredStr=1;var e=requireType();return str=new e("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})}function requireSeq(){if(hasRequiredSeq)return seq;hasRequiredSeq=1;var e=requireType();return seq=new e("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})}function requireMap(){if(hasRequiredMap)return map;hasRequiredMap=1;var e=requireType();return map=new e("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})}function requireFailsafe(){if(hasRequiredFailsafe)return failsafe;hasRequiredFailsafe=1;var e=requireSchema();return failsafe=new e({explicit:[requireStr(),requireSeq(),requireMap()]})}function require_null(){if(hasRequired_null)return _null;hasRequired_null=1;var e=requireType();return _null=new e("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})}function requireBool(){if(hasRequiredBool)return bool;hasRequiredBool=1;var e=requireType();return bool=new e("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})}function requireInt(){if(hasRequiredInt)return int;hasRequiredInt=1;var e=requireCommon(),t=requireType();function r(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function n(e){return 48<=e&&e<=55}function i(e){return 48<=e&&e<=57}return int=new t("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,o=e.length,s=0,a=!1;if(!o)return!1;if("-"!==(t=e[s])&&"+"!==t||(t=e[++s]),"0"===t){if(s+1===o)return!0;if("b"===(t=e[++s])){for(s++;s<o;s++)if("_"!==(t=e[s])){if("0"!==t&&"1"!==t)return!1;a=!0}return a&&"_"!==t}if("x"===t){for(s++;s<o;s++)if("_"!==(t=e[s])){if(!r(e.charCodeAt(s)))return!1;a=!0}return a&&"_"!==t}for(;s<o;s++)if("_"!==(t=e[s])){if(!n(e.charCodeAt(s)))return!1;a=!0}return a&&"_"!==t}if("_"===t)return!1;for(;s<o;s++)if("_"!==(t=e[s])){if(":"===t)break;if(!i(e.charCodeAt(s)))return!1;a=!0}return!(!a||"_"===t)&&(":"!==t||/^(:[0-5]?[0-9])+$/.test(e.slice(s)))},construct:function(e){var t,r,n=e,i=1,o=[];return-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),"-"!==(t=n[0])&&"+"!==t||("-"===t&&(i=-1),t=(n=n.slice(1))[0]),"0"===n?0:"0"===t?"b"===n[1]?i*parseInt(n.slice(2),2):"x"===n[1]?i*parseInt(n,16):i*parseInt(n,8):-1!==n.indexOf(":")?(n.split(":").forEach(function(e){o.unshift(parseInt(e,10))}),n=0,r=1,o.forEach(function(e){n+=e*r,r*=60}),i*n):i*parseInt(n,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!e.isNegativeZero(t)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})}function requireFloat(){if(hasRequiredFloat)return float;hasRequiredFloat=1;var e=requireCommon(),t=requireType(),r=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))$");var n=/^[-+]?[0-9]+e/;return float=new t("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!r.test(e)||"_"===e[e.length-1])},construct:function(e){var t,r,n,i;return r="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(e){i.unshift(parseFloat(e,10))}),t=0,n=1,i.forEach(function(e){t+=e*n,n*=60}),r*t):r*parseFloat(t,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||e.isNegativeZero(t))},represent:function(t,r){var i;if(isNaN(t))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(t))return"-0.0";return i=t.toString(10),n.test(i)?i.replace("e",".e"):i},defaultStyle:"lowercase"})}function requireJson(){if(hasRequiredJson)return json;hasRequiredJson=1;var e=requireSchema();return json=new e({include:[requireFailsafe()],implicit:[require_null(),requireBool(),requireInt(),requireFloat()]})}function requireCore(){if(hasRequiredCore)return core;hasRequiredCore=1;var e=requireSchema();return core=new e({include:[requireJson()]})}function requireTimestamp(){if(hasRequiredTimestamp)return timestamp;hasRequiredTimestamp=1;var e=requireType(),t=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),r=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]))?))?$");return timestamp=new e("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==t.exec(e)||null!==r.exec(e))},construct:function(e){var n,i,o,s,a,l,u,c,f=0,p=null;if(null===(n=t.exec(e))&&(n=r.exec(e)),null===n)throw new Error("Date resolve error");if(i=+n[1],o=+n[2]-1,s=+n[3],!n[4])return new Date(Date.UTC(i,o,s));if(a=+n[4],l=+n[5],u=+n[6],n[7]){for(f=n[7].slice(0,3);f.length<3;)f+="0";f=+f}return n[9]&&(p=6e4*(60*+n[10]+ +(n[11]||0)),"-"===n[9]&&(p=-p)),c=new Date(Date.UTC(i,o,s,a,l,u,f)),p&&c.setTime(c.getTime()-p),c},instanceOf:Date,represent:function(e){return e.toISOString()}})}function requireMerge(){if(hasRequiredMerge)return merge;hasRequiredMerge=1;var e=requireType();return merge=new e("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})}function commonjsRequire(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}function requireBinary(){if(hasRequiredBinary)return binary;var e;hasRequiredBinary=1;try{e=commonjsRequire("buffer").Buffer}catch(n){}var t=requireType(),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";return binary=new t("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,i=0,o=e.length,s=r;for(n=0;n<o;n++)if(!((t=s.indexOf(e.charAt(n)))>64)){if(t<0)return!1;i+=6}return i%8==0},construct:function(t){var n,i,o=t.replace(/[\r\n=]/g,""),s=o.length,a=r,l=0,u=[];for(n=0;n<s;n++)n%4==0&&n&&(u.push(l>>16&255),u.push(l>>8&255),u.push(255&l)),l=l<<6|a.indexOf(o.charAt(n));return 0===(i=s%4*6)?(u.push(l>>16&255),u.push(l>>8&255),u.push(255&l)):18===i?(u.push(l>>10&255),u.push(l>>2&255)):12===i&&u.push(l>>4&255),e?e.from?e.from(u):new e(u):u},predicate:function(t){return e&&e.isBuffer(t)},represent:function(e){var t,n,i="",o=0,s=e.length,a=r;for(t=0;t<s;t++)t%3==0&&t&&(i+=a[o>>18&63],i+=a[o>>12&63],i+=a[o>>6&63],i+=a[63&o]),o=(o<<8)+e[t];return 0===(n=s%3)?(i+=a[o>>18&63],i+=a[o>>12&63],i+=a[o>>6&63],i+=a[63&o]):2===n?(i+=a[o>>10&63],i+=a[o>>4&63],i+=a[o<<2&63],i+=a[64]):1===n&&(i+=a[o>>2&63],i+=a[o<<4&63],i+=a[64],i+=a[64]),i}})}function requireOmap(){if(hasRequiredOmap)return omap;hasRequiredOmap=1;var e=requireType(),t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;return omap=new e("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var n,i,o,s,a,l=[],u=e;for(n=0,i=u.length;n<i;n+=1){if(o=u[n],a=!1,"[object Object]"!==r.call(o))return!1;for(s in o)if(t.call(o,s)){if(a)return!1;a=!0}if(!a)return!1;if(-1!==l.indexOf(s))return!1;l.push(s)}return!0},construct:function(e){return null!==e?e:[]}})}function requirePairs(){if(hasRequiredPairs)return pairs;hasRequiredPairs=1;var e=requireType(),t=Object.prototype.toString;return pairs=new e("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var r,n,i,o,s,a=e;for(s=new Array(a.length),r=0,n=a.length;r<n;r+=1){if(i=a[r],"[object Object]"!==t.call(i))return!1;if(1!==(o=Object.keys(i)).length)return!1;s[r]=[o[0],i[o[0]]]}return!0},construct:function(e){if(null===e)return[];var t,r,n,i,o,s=e;for(o=new Array(s.length),t=0,r=s.length;t<r;t+=1)n=s[t],i=Object.keys(n),o[t]=[i[0],n[i[0]]];return o}})}function requireSet(){if(hasRequiredSet)return set;hasRequiredSet=1;var e=requireType(),t=Object.prototype.hasOwnProperty;return set=new e("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var r,n=e;for(r in n)if(t.call(n,r)&&null!==n[r])return!1;return!0},construct:function(e){return null!==e?e:{}}})}function requireDefault_safe(){if(hasRequiredDefault_safe)return default_safe;hasRequiredDefault_safe=1;var e=requireSchema();return default_safe=new e({include:[requireCore()],implicit:[requireTimestamp(),requireMerge()],explicit:[requireBinary(),requireOmap(),requirePairs(),requireSet()]})}function require_undefined(){if(hasRequired_undefined)return _undefined;hasRequired_undefined=1;var e=requireType();return _undefined=new e("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:function(){return!0},construct:function(){},predicate:function(e){return void 0===e},represent:function(){return""}})}function requireRegexp(){if(hasRequiredRegexp)return regexp;hasRequiredRegexp=1;var e=requireType();return regexp=new e("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:function(e){if(null===e)return!1;if(0===e.length)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";if("/"===t[0]){if(r&&(n=r[1]),n.length>3)return!1;if("/"!==t[t.length-n.length-1])return!1}return!0},construct:function(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return"/"===t[0]&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)},predicate:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},represent:function(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}})}function require_function(){if(hasRequired_function)return _function;var e;hasRequired_function=1;try{e=commonjsRequire("esprima")}catch(r){"undefined"!=typeof window&&(e=window.esprima)}var t=requireType();return _function=new t("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function(t){if(null===t)return!1;try{var r="("+t+")",n=e.parse(r,{range:!0});return"Program"===n.type&&1===n.body.length&&"ExpressionStatement"===n.body[0].type&&("ArrowFunctionExpression"===n.body[0].expression.type||"FunctionExpression"===n.body[0].expression.type)}catch(i){return!1}},construct:function(t){var r,n="("+t+")",i=e.parse(n,{range:!0}),o=[];if("Program"!==i.type||1!==i.body.length||"ExpressionStatement"!==i.body[0].type||"ArrowFunctionExpression"!==i.body[0].expression.type&&"FunctionExpression"!==i.body[0].expression.type)throw new Error("Failed to resolve function");return i.body[0].expression.params.forEach(function(e){o.push(e.name)}),r=i.body[0].expression.body.range,"BlockStatement"===i.body[0].expression.body.type?new Function(o,n.slice(r[0]+1,r[1]-1)):new Function(o,"return "+n.slice(r[0],r[1]))},predicate:function(e){return"[object Function]"===Object.prototype.toString.call(e)},represent:function(e){return e.toString()}})}function requireDefault_full(){if(hasRequiredDefault_full)return default_full;hasRequiredDefault_full=1;var e=requireSchema();return default_full=e.DEFAULT=new e({include:[requireDefault_safe()],explicit:[require_undefined(),requireRegexp(),require_function()]})}function requireLoader(){if(hasRequiredLoader)return loader;hasRequiredLoader=1;var e=requireCommon(),t=requireException(),r=requireMark(),n=requireDefault_safe(),i=requireDefault_full(),o=Object.prototype.hasOwnProperty,s=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,a=/[\x85\u2028\u2029]/,l=/[,\[\]\{\}]/,u=/^(?:!|!!|![a-z\-]+!)$/i,c=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function f(e){return Object.prototype.toString.call(e)}function p(e){return 10===e||13===e}function h(e){return 9===e||32===e}function d(e){return 9===e||32===e||10===e||13===e}function g(e){return 44===e||91===e||93===e||123===e||125===e}function m(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function y(e){return 120===e?2:117===e?4:85===e?8:0}function b(e){return 48<=e&&e<=57?e-48:-1}function k(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"
":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function A(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}function w(e,t,r){"__proto__"===t?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}for(var _=new Array(256),$=new Array(256),E=0;E<256;E++)_[E]=k(E)?1:0,$[E]=k(E);function v(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||i,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function C(e,n){return new t(n,new r(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function x(e,t){throw C(e,t)}function q(e,t){e.onWarning&&e.onWarning.call(null,C(e,t))}var S={YAML:function(e,t,r){var n,i,o;null!==e.version&&x(e,"duplication of %YAML directive"),1!==r.length&&x(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&x(e,"ill-formed argument of the YAML directive"),i=parseInt(n[1],10),o=parseInt(n[2],10),1!==i&&x(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&q(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,i;2!==r.length&&x(e,"TAG directive accepts exactly two arguments"),n=r[0],i=r[1],u.test(n)||x(e,"ill-formed tag handle (first argument) of the TAG directive"),o.call(e.tagMap,n)&&x(e,'there is a previously declared suffix for "'+n+'" tag handle'),c.test(i)||x(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[n]=i}};function R(e,t,r,n){var i,o,a,l;if(t<r){if(l=e.input.slice(t,r),n)for(i=0,o=l.length;i<o;i+=1)9===(a=l.charCodeAt(i))||32<=a&&a<=1114111||x(e,"expected valid JSON character");else s.test(l)&&x(e,"the stream contains non-printable characters");e.result+=l}}function T(t,r,n,i){var s,a,l,u;for(e.isObject(n)||x(t,"cannot merge mappings; the provided source object is unacceptable"),l=0,u=(s=Object.keys(n)).length;l<u;l+=1)a=s[l],o.call(r,a)||(w(r,a,n[a]),i[a]=!0)}function I(e,t,r,n,i,s,a,l){var u,c;if(Array.isArray(i))for(u=0,c=(i=Array.prototype.slice.call(i)).length;u<c;u+=1)Array.isArray(i[u])&&x(e,"nested arrays are not supported inside keys"),"object"==typeof i&&"[object Object]"===f(i[u])&&(i[u]="[object Object]");if("object"==typeof i&&"[object Object]"===f(i)&&(i="[object Object]"),i=String(i),null===t&&(t={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(s))for(u=0,c=s.length;u<c;u+=1)T(e,t,s[u],r);else T(e,t,s,r);else e.json||o.call(r,i)||!o.call(t,i)||(e.line=a||e.line,e.position=l||e.position,x(e,"duplicated mapping key")),w(t,i,s),delete r[i];return t}function M(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):x(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function B(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);0!==i;){for(;h(i);)i=e.input.charCodeAt(++e.position);if(t&&35===i)do{i=e.input.charCodeAt(++e.position)}while(10!==i&&13!==i&&0!==i);if(!p(i))break;for(M(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position)}return-1!==r&&0!==n&&e.lineIndent<r&&q(e,"deficient indentation"),n}function O(e){var t,r=e.position;return!(45!==(t=e.input.charCodeAt(r))&&46!==t||t!==e.input.charCodeAt(r+1)||t!==e.input.charCodeAt(r+2)||(r+=3,0!==(t=e.input.charCodeAt(r))&&!d(t)))}function j(t,r){1===r?t.result+=" ":r>1&&(t.result+=e.repeat("\n",r-1))}function L(e,t){var r,n,i=e.tag,o=e.anchor,s=[],a=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=s),n=e.input.charCodeAt(e.position);0!==n&&45===n&&d(e.input.charCodeAt(e.position+1));)if(a=!0,e.position++,B(e,!0,-1)&&e.lineIndent<=t)s.push(null),n=e.input.charCodeAt(e.position);else if(r=e.line,U(e,t,3,!1,!0),s.push(e.result),B(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)x(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!a&&(e.tag=i,e.anchor=o,e.kind="sequence",e.result=s,!0)}function N(e){var t,r,n,i,s=!1,a=!1;if(33!==(i=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&x(e,"duplication of a tag property"),60===(i=e.input.charCodeAt(++e.position))?(s=!0,i=e.input.charCodeAt(++e.position)):33===i?(a=!0,r="!!",i=e.input.charCodeAt(++e.position)):r="!",t=e.position,s){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&62!==i);e.position<e.length?(n=e.input.slice(t,e.position),i=e.input.charCodeAt(++e.position)):x(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==i&&!d(i);)33===i&&(a?x(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),u.test(r)||x(e,"named tag handle cannot contain such characters"),a=!0,t=e.position+1)),i=e.input.charCodeAt(++e.position);n=e.input.slice(t,e.position),l.test(n)&&x(e,"tag suffix cannot contain flow indicator characters")}return n&&!c.test(n)&&x(e,"tag name cannot contain such characters: "+n),s?e.tag=n:o.call(e.tagMap,r)?e.tag=e.tagMap[r]+n:"!"===r?e.tag="!"+n:"!!"===r?e.tag="tag:yaml.org,2002:"+n:x(e,'undeclared tag handle "'+r+'"'),!0}function F(e){var t,r;if(38!==(r=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&x(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!d(r)&&!g(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&x(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function U(t,r,n,i,s){var a,l,u,c,f,k,w,E,v=1,C=!1,q=!1;if(null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,a=l=u=4===n||3===n,i&&B(t,!0,-1)&&(C=!0,t.lineIndent>r?v=1:t.lineIndent===r?v=0:t.lineIndent<r&&(v=-1)),1===v)for(;N(t)||F(t);)B(t,!0,-1)?(C=!0,u=a,t.lineIndent>r?v=1:t.lineIndent===r?v=0:t.lineIndent<r&&(v=-1)):u=!1;if(u&&(u=C||s),1!==v&&4!==n||(w=1===n||2===n?r:r+1,E=t.position-t.lineStart,1===v?u&&(L(t,E)||function(e,t,r){var n,i,o,s,a,l=e.tag,u=e.anchor,c={},f={},p=null,g=null,m=null,y=!1,b=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=c),a=e.input.charCodeAt(e.position);0!==a;){if(n=e.input.charCodeAt(e.position+1),o=e.line,s=e.position,63!==a&&58!==a||!d(n)){if(!U(e,r,2,!1,!0))break;if(e.line===o){for(a=e.input.charCodeAt(e.position);h(a);)a=e.input.charCodeAt(++e.position);if(58===a)d(a=e.input.charCodeAt(++e.position))||x(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(I(e,c,f,p,g,null),p=g=m=null),b=!0,y=!1,i=!1,p=e.tag,g=e.result;else{if(!b)return e.tag=l,e.anchor=u,!0;x(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!b)return e.tag=l,e.anchor=u,!0;x(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===a?(y&&(I(e,c,f,p,g,null),p=g=m=null),b=!0,y=!0,i=!0):y?(y=!1,i=!0):x(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,a=n;if((e.line===o||e.lineIndent>t)&&(U(e,t,4,!0,i)&&(y?g=e.result:m=e.result),y||(I(e,c,f,p,g,m,o,s),p=g=m=null),B(e,!0,-1),a=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==a)x(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&I(e,c,f,p,g,null),b&&(e.tag=l,e.anchor=u,e.kind="mapping",e.result=c),b}(t,E,w))||function(e,t){var r,n,i,o,s,a,l,u,c,f,p=!0,h=e.tag,g=e.anchor,m={};if(91===(f=e.input.charCodeAt(e.position)))i=93,a=!1,n=[];else{if(123!==f)return!1;i=125,a=!0,n={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=n),f=e.input.charCodeAt(++e.position);0!==f;){if(B(e,!0,t),(f=e.input.charCodeAt(e.position))===i)return e.position++,e.tag=h,e.anchor=g,e.kind=a?"mapping":"sequence",e.result=n,!0;p||x(e,"missed comma between flow collection entries"),c=null,o=s=!1,63===f&&d(e.input.charCodeAt(e.position+1))&&(o=s=!0,e.position++,B(e,!0,t)),r=e.line,U(e,t,1,!1,!0),u=e.tag,l=e.result,B(e,!0,t),f=e.input.charCodeAt(e.position),!s&&e.line!==r||58!==f||(o=!0,f=e.input.charCodeAt(++e.position),B(e,!0,t),U(e,t,1,!1,!0),c=e.result),a?I(e,n,m,u,l,c):o?n.push(I(e,null,m,u,l,c)):n.push(l),B(e,!0,t),44===(f=e.input.charCodeAt(e.position))?(p=!0,f=e.input.charCodeAt(++e.position)):p=!1}x(e,"unexpected end of the stream within a flow collection")}(t,w)?q=!0:(l&&function(t,r){var n,i,o,s,a=1,l=!1,u=!1,c=r,f=0,d=!1;if(124===(s=t.input.charCodeAt(t.position)))i=!1;else{if(62!==s)return!1;i=!0}for(t.kind="scalar",t.result="";0!==s;)if(43===(s=t.input.charCodeAt(++t.position))||45===s)1===a?a=43===s?3:2:x(t,"repeat of a chomping mode identifier");else{if(!((o=b(s))>=0))break;0===o?x(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?x(t,"repeat of an indentation width identifier"):(c=r+o-1,u=!0)}if(h(s)){do{s=t.input.charCodeAt(++t.position)}while(h(s));if(35===s)do{s=t.input.charCodeAt(++t.position)}while(!p(s)&&0!==s)}for(;0!==s;){for(M(t),t.lineIndent=0,s=t.input.charCodeAt(t.position);(!u||t.lineIndent<c)&&32===s;)t.lineIndent++,s=t.input.charCodeAt(++t.position);if(!u&&t.lineIndent>c&&(c=t.lineIndent),p(s))f++;else{if(t.lineIndent<c){3===a?t.result+=e.repeat("\n",l?1+f:f):1===a&&l&&(t.result+="\n");break}for(i?h(s)?(d=!0,t.result+=e.repeat("\n",l?1+f:f)):d?(d=!1,t.result+=e.repeat("\n",f+1)):0===f?l&&(t.result+=" "):t.result+=e.repeat("\n",f):t.result+=e.repeat("\n",l?1+f:f),l=!0,u=!0,f=0,n=t.position;!p(s)&&0!==s;)s=t.input.charCodeAt(++t.position);R(t,n,t.position,!1)}}return!0}(t,w)||function(e,t){var r,n,i;if(39!==(r=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;0!==(r=e.input.charCodeAt(e.position));)if(39===r){if(R(e,n,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;n=e.position,e.position++,i=e.position}else p(r)?(R(e,n,i,!0),j(e,B(e,!1,t)),n=i=e.position):e.position===e.lineStart&&O(e)?x(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);x(e,"unexpected end of the stream within a single quoted scalar")}(t,w)||function(e,t){var r,n,i,o,s,a;if(34!==(a=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;0!==(a=e.input.charCodeAt(e.position));){if(34===a)return R(e,r,e.position,!0),e.position++,!0;if(92===a){if(R(e,r,e.position,!0),p(a=e.input.charCodeAt(++e.position)))B(e,!1,t);else if(a<256&&_[a])e.result+=$[a],e.position++;else if((s=y(a))>0){for(i=s,o=0;i>0;i--)(s=m(a=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+s:x(e,"expected hexadecimal character");e.result+=A(o),e.position++}else x(e,"unknown escape sequence");r=n=e.position}else p(a)?(R(e,r,n,!0),j(e,B(e,!1,t)),r=n=e.position):e.position===e.lineStart&&O(e)?x(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}x(e,"unexpected end of the stream within a double quoted scalar")}(t,w)?q=!0:!function(e){var t,r,n;if(42!==(n=e.input.charCodeAt(e.position)))return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!d(n)&&!g(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&x(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),o.call(e.anchorMap,r)||x(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],B(e,!0,-1),!0}(t)?function(e,t,r){var n,i,o,s,a,l,u,c,f=e.kind,m=e.result;if(d(c=e.input.charCodeAt(e.position))||g(c)||35===c||38===c||42===c||33===c||124===c||62===c||39===c||34===c||37===c||64===c||96===c)return!1;if((63===c||45===c)&&(d(n=e.input.charCodeAt(e.position+1))||r&&g(n)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,s=!1;0!==c;){if(58===c){if(d(n=e.input.charCodeAt(e.position+1))||r&&g(n))break}else if(35===c){if(d(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&O(e)||r&&g(c))break;if(p(c)){if(a=e.line,l=e.lineStart,u=e.lineIndent,B(e,!1,-1),e.lineIndent>=t){s=!0,c=e.input.charCodeAt(e.position);continue}e.position=o,e.line=a,e.lineStart=l,e.lineIndent=u;break}}s&&(R(e,i,o,!1),j(e,e.line-a),i=o=e.position,s=!1),h(c)||(o=e.position+1),c=e.input.charCodeAt(++e.position)}return R(e,i,o,!1),!!e.result||(e.kind=f,e.result=m,!1)}(t,w,1===n)&&(q=!0,null===t.tag&&(t.tag="?")):(q=!0,null===t.tag&&null===t.anchor||x(t,"alias node should not have any properties")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===v&&(q=u&&L(t,E))),null!==t.tag&&"!"!==t.tag)if("?"===t.tag){for(null!==t.result&&"scalar"!==t.kind&&x(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),c=0,f=t.implicitTypes.length;c<f;c+=1)if((k=t.implicitTypes[c]).resolve(t.result)){t.result=k.construct(t.result),t.tag=k.tag,null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);break}}else o.call(t.typeMap[t.kind||"fallback"],t.tag)?(k=t.typeMap[t.kind||"fallback"][t.tag],null!==t.result&&k.kind!==t.kind&&x(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+k.kind+'", not "'+t.kind+'"'),k.resolve(t.result)?(t.result=k.construct(t.result),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):x(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")):x(t,"unknown tag !<"+t.tag+">");return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||q}function D(e){var t,r,n,i,s=e.position,l=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};0!==(i=e.input.charCodeAt(e.position))&&(B(e,!0,-1),i=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==i));){for(l=!0,i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!d(i);)i=e.input.charCodeAt(++e.position);for(n=[],(r=e.input.slice(t,e.position)).length<1&&x(e,"directive name must not be less than one character in length");0!==i;){for(;h(i);)i=e.input.charCodeAt(++e.position);if(35===i){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&!p(i));break}if(p(i))break;for(t=e.position;0!==i&&!d(i);)i=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==i&&M(e),o.call(S,r)?S[r](e,r,n):q(e,'unknown document directive "'+r+'"')}B(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,B(e,!0,-1)):l&&x(e,"directives end mark is expected"),U(e,e.lineIndent-1,4,!1,!0),B(e,!0,-1),e.checkLineBreaks&&a.test(e.input.slice(s,e.position))&&q(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&O(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,B(e,!0,-1)):e.position<e.length-1&&x(e,"end of the stream or a document separator is expected")}function P(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var r=new v(e,t),n=e.indexOf("\0");for(-1!==n&&(r.position=n,x(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)D(r);return r.documents}function Y(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);var n=P(e,r);if("function"!=typeof t)return n;for(var i=0,o=n.length;i<o;i+=1)t(n[i])}function G(e,r){var n=P(e,r);if(0!==n.length){if(1===n.length)return n[0];throw new t("expected a single document in the stream, but found more")}}return loader.loadAll=Y,loader.load=G,loader.safeLoadAll=function(t,r,i){return"object"==typeof r&&null!==r&&void 0===i&&(i=r,r=null),Y(t,r,e.extend({schema:n},i))},loader.safeLoad=function(t,r){return G(t,e.extend({schema:n},r))},loader}var dumper={},hasRequiredDumper,hasRequiredJsYaml$1,jsYaml,hasRequiredJsYaml,hasRequiredEngines;function requireDumper(){if(hasRequiredDumper)return dumper;hasRequiredDumper=1;var e=requireCommon(),t=requireException(),r=requireDefault_full(),n=requireDefault_safe(),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,s={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},a=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function l(r){var n,i,o;if(n=r.toString(16).toUpperCase(),r<=255)i="x",o=2;else if(r<=65535)i="u",o=4;else{if(!(r<=4294967295))throw new t("code point within a string may not be greater than 0xFFFFFFFF");i="U",o=8}return"\\"+i+e.repeat("0",o-n.length)+n}function u(t){this.schema=t.schema||r,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=e.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=function(e,t){var r,n,i,s,a,l,u;if(null===t)return{};for(r={},i=0,s=(n=Object.keys(t)).length;i<s;i+=1)a=n[i],l=String(t[a]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),(u=e.compiledTypeMap.fallback[a])&&o.call(u.styleAliases,l)&&(l=u.styleAliases[l]),r[a]=l;return r}(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function c(t,r){for(var n,i=e.repeat(" ",r),o=0,s=-1,a="",l=t.length;o<l;)-1===(s=t.indexOf("\n",o))?(n=t.slice(o),o=l):(n=t.slice(o,s+1),o=s+1),n.length&&"\n"!==n&&(a+=i),a+=n;return a}function f(t,r){return"\n"+e.repeat(" ",t.indent*r)}function p(e){return 32===e||9===e}function h(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&65279!==e||65536<=e&&e<=1114111}function d(e,t){return h(e)&&65279!==e&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e&&58!==e&&(35!==e||t&&function(e){return h(e)&&!p(e)&&65279!==e&&13!==e&&10!==e}(t))}function g(e){return/^\n* /.test(e)}function m(e,t,r,n,i){var o,s,a,l,u=!1,c=!1,f=-1!==n,m=-1,y=h(l=e.charCodeAt(0))&&65279!==l&&!p(l)&&45!==l&&63!==l&&58!==l&&44!==l&&91!==l&&93!==l&&123!==l&&125!==l&&35!==l&&38!==l&&42!==l&&33!==l&&124!==l&&61!==l&&62!==l&&39!==l&&34!==l&&37!==l&&64!==l&&96!==l&&!p(e.charCodeAt(e.length-1));if(t)for(o=0;o<e.length;o++){if(!h(s=e.charCodeAt(o)))return 5;a=o>0?e.charCodeAt(o-1):null,y=y&&d(s,a)}else{for(o=0;o<e.length;o++){if(10===(s=e.charCodeAt(o)))u=!0,f&&(c=c||o-m-1>n&&" "!==e[m+1],m=o);else if(!h(s))return 5;a=o>0?e.charCodeAt(o-1):null,y=y&&d(s,a)}c=c||f&&o-m-1>n&&" "!==e[m+1]}return u||c?r>9&&g(e)?5:c?4:3:y&&!i(e)?1:2}function y(e,r,n,i){e.dump=function(){if(0===r.length)return"''";if(!e.noCompatMode&&-1!==a.indexOf(r))return"'"+r+"'";var o=e.indent*Math.max(1,n),u=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),f=i||e.flowLevel>-1&&n>=e.flowLevel;switch(m(r,f,e.indent,u,function(t){return function(e,t){var r,n;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(e.implicitTypes[r].resolve(t))return!0;return!1}(e,t)})){case 1:return r;case 2:return"'"+r.replace(/'/g,"''")+"'";case 3:return"|"+b(r,e.indent)+k(c(r,o));case 4:return">"+b(r,e.indent)+k(c(function(e,t){var r,n,i=/(\n+)([^\n]*)/g,o=(a=e.indexOf("\n"),a=-1!==a?a:e.length,i.lastIndex=a,A(e.slice(0,a),t)),s="\n"===e[0]||" "===e[0];var a;for(;n=i.exec(e);){var l=n[1],u=n[2];r=" "===u[0],o+=l+(s||r||""===u?"":"\n")+A(u,t),s=r}return o}(r,u),o));case 5:return'"'+function(e){for(var t,r,n,i="",o=0;o<e.length;o++)(t=e.charCodeAt(o))>=55296&&t<=56319&&(r=e.charCodeAt(o+1))>=56320&&r<=57343?(i+=l(1024*(t-55296)+r-56320+65536),o++):i+=!(n=s[t])&&h(t)?e[o]:n||l(t);return i}(r)+'"';default:throw new t("impossible error: invalid scalar style")}}()}function b(e,t){var r=g(e)?String(t):"",n="\n"===e[e.length-1];return r+(n&&("\n"===e[e.length-2]||"\n"===e)?"+":n?"":"-")+"\n"}function k(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function A(e,t){if(""===e||" "===e[0])return e;for(var r,n,i=/ [^ ]/g,o=0,s=0,a=0,l="";r=i.exec(e);)(a=r.index)-o>t&&(n=s>o?s:a,l+="\n"+e.slice(o,n),o=n+1),s=a;return l+="\n",e.length-o>t&&s>o?l+=e.slice(o,s)+"\n"+e.slice(s+1):l+=e.slice(o),l.slice(1)}function w(e,r,n){var s,a,l,u,c,f;for(l=0,u=(a=n?e.explicitTypes:e.implicitTypes).length;l<u;l+=1)if(((c=a[l]).instanceOf||c.predicate)&&(!c.instanceOf||"object"==typeof r&&r instanceof c.instanceOf)&&(!c.predicate||c.predicate(r))){if(e.tag=n?c.tag:"?",c.represent){if(f=e.styleMap[c.tag]||c.defaultStyle,"[object Function]"===i.call(c.represent))s=c.represent(r,f);else{if(!o.call(c.represent,f))throw new t("!<"+c.tag+'> tag resolver accepts not "'+f+'" style');s=c.represent[f](r,f)}e.dump=s}return!0}return!1}function _(e,r,n,o,s,a){e.tag=null,e.dump=n,w(e,n,!1)||w(e,n,!0);var l=i.call(e.dump);o&&(o=e.flowLevel<0||e.flowLevel>r);var u,c,p="[object Object]"===l||"[object Array]"===l;if(p&&(c=-1!==(u=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||c||2!==e.indent&&r>0)&&(s=!1),c&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(p&&c&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),"[object Object]"===l)o&&0!==Object.keys(e.dump).length?(!function(e,r,n,i){var o,s,a,l,u,c,p="",h=e.tag,d=Object.keys(n);if(!0===e.sortKeys)d.sort();else if("function"==typeof e.sortKeys)d.sort(e.sortKeys);else if(e.sortKeys)throw new t("sortKeys must be a boolean or a function");for(o=0,s=d.length;o<s;o+=1)c="",i&&0===o||(c+=f(e,r)),l=n[a=d[o]],_(e,r+1,a,!0,!0,!0)&&((u=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&10===e.dump.charCodeAt(0)?c+="?":c+="? "),c+=e.dump,u&&(c+=f(e,r)),_(e,r+1,l,!0,u)&&(e.dump&&10===e.dump.charCodeAt(0)?c+=":":c+=": ",p+=c+=e.dump));e.tag=h,e.dump=p||"{}"}(e,r,e.dump,s),c&&(e.dump="&ref_"+u+e.dump)):(!function(e,t,r){var n,i,o,s,a,l="",u=e.tag,c=Object.keys(r);for(n=0,i=c.length;n<i;n+=1)a="",0!==n&&(a+=", "),e.condenseFlow&&(a+='"'),s=r[o=c[n]],_(e,t,o,!1,!1)&&(e.dump.length>1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),_(e,t,s,!1,!1)&&(l+=a+=e.dump));e.tag=u,e.dump="{"+l+"}"}(e,r,e.dump),c&&(e.dump="&ref_"+u+" "+e.dump));else if("[object Array]"===l){var h=e.noArrayIndent&&r>0?r-1:r;o&&0!==e.dump.length?(!function(e,t,r,n){var i,o,s="",a=e.tag;for(i=0,o=r.length;i<o;i+=1)_(e,t+1,r[i],!0,!0)&&(n&&0===i||(s+=f(e,t)),e.dump&&10===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump);e.tag=a,e.dump=s||"[]"}(e,h,e.dump,s),c&&(e.dump="&ref_"+u+e.dump)):(!function(e,t,r){var n,i,o="",s=e.tag;for(n=0,i=r.length;n<i;n+=1)_(e,t,r[n],!1,!1)&&(0!==n&&(o+=","+(e.condenseFlow?"":" ")),o+=e.dump);e.tag=s,e.dump="["+o+"]"}(e,h,e.dump),c&&(e.dump="&ref_"+u+" "+e.dump))}else{if("[object String]"!==l){if(e.skipInvalid)return!1;throw new t("unacceptable kind of an object to dump "+l)}"?"!==e.tag&&y(e,e.dump,r,a)}null!==e.tag&&"?"!==e.tag&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function $(e,t){var r,n,i=[],o=[];for(E(e,i,o),r=0,n=o.length;r<n;r+=1)t.duplicates.push(i[o[r]]);t.usedDuplicates=new Array(n)}function E(e,t,r){var n,i,o;if(null!==e&&"object"==typeof e)if(-1!==(i=t.indexOf(e)))-1===r.indexOf(i)&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,o=e.length;i<o;i+=1)E(e[i],t,r);else for(i=0,o=(n=Object.keys(e)).length;i<o;i+=1)E(e[n[i]],t,r)}function v(e,t){var r=new u(t=t||{});return r.noRefs||$(e,r),_(r,0,e,!0,!0)?r.dump+"\n":""}return dumper.dump=v,dumper.safeDump=function(t,r){return v(t,e.extend({schema:n},r))},dumper}function requireJsYaml$1(){if(hasRequiredJsYaml$1)return jsYaml$1;hasRequiredJsYaml$1=1;var e=requireLoader(),t=requireDumper();function r(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}return jsYaml$1.Type=requireType(),jsYaml$1.Schema=requireSchema(),jsYaml$1.FAILSAFE_SCHEMA=requireFailsafe(),jsYaml$1.JSON_SCHEMA=requireJson(),jsYaml$1.CORE_SCHEMA=requireCore(),jsYaml$1.DEFAULT_SAFE_SCHEMA=requireDefault_safe(),jsYaml$1.DEFAULT_FULL_SCHEMA=requireDefault_full(),jsYaml$1.load=e.load,jsYaml$1.loadAll=e.loadAll,jsYaml$1.safeLoad=e.safeLoad,jsYaml$1.safeLoadAll=e.safeLoadAll,jsYaml$1.dump=t.dump,jsYaml$1.safeDump=t.safeDump,jsYaml$1.YAMLException=requireException(),jsYaml$1.MINIMAL_SCHEMA=requireFailsafe(),jsYaml$1.SAFE_SCHEMA=requireDefault_safe(),jsYaml$1.DEFAULT_SCHEMA=requireDefault_full(),jsYaml$1.scan=r("scan"),jsYaml$1.parse=r("parse"),jsYaml$1.compose=r("compose"),jsYaml$1.addConstructor=r("addConstructor"),jsYaml$1}function requireJsYaml(){if(hasRequiredJsYaml)return jsYaml;hasRequiredJsYaml=1;var e=requireJsYaml$1();return jsYaml=e}function requireEngines(){return hasRequiredEngines||(hasRequiredEngines=1,function(module,exports$1){const yaml=requireJsYaml(),engines=module.exports;engines.yaml={parse:yaml.safeLoad.bind(yaml),stringify:yaml.safeDump.bind(yaml)},engines.json={parse:JSON.parse.bind(JSON),stringify:function(e,t){const r=Object.assign({replacer:null,space:2},t);return JSON.stringify(e,r.replacer,r.space)}},engines.javascript={parse:function parse(str,options,wrap){try{return!1!==wrap&&(str="(function() {\nreturn "+str.trim()+";\n}());"),eval(str)||{}}catch(err){if(!1!==wrap&&/(unexpected|identifier)/i.test(err.message))return parse(str,options,!1);throw new SyntaxError(err)}},stringify:function(){throw new Error("stringifying JavaScript is not supported")}}}(engines)),engines.exports}var buffer={},base64Js={},hasRequiredBase64Js;function requireBase64Js(){if(hasRequiredBase64Js)return base64Js;hasRequiredBase64Js=1,base64Js.byteLength=function(e){var t=o(e),r=t[0],n=t[1];return 3*(r+n)/4-n},base64Js.toByteArray=function(e){var n,i,s=o(e),a=s[0],l=s[1],u=new r(function(e,t,r){return 3*(t+r)/4-r}(0,a,l)),c=0,f=l>0?a-4:a;for(i=0;i<f;i+=4)n=t[e.charCodeAt(i)]<<18|t[e.charCodeAt(i+1)]<<12|t[e.charCodeAt(i+2)]<<6|t[e.charCodeAt(i+3)],u[c++]=n>>16&255,u[c++]=n>>8&255,u[c++]=255&n;2===l&&(n=t[e.charCodeAt(i)]<<2|t[e.charCodeAt(i+1)]>>4,u[c++]=255&n);1===l&&(n=t[e.charCodeAt(i)]<<10|t[e.charCodeAt(i+1)]<<4|t[e.charCodeAt(i+2)]>>2,u[c++]=n>>8&255,u[c++]=255&n);return u},base64Js.fromByteArray=function(t){for(var r,n=t.length,i=n%3,o=[],s=16383,l=0,u=n-i;l<u;l+=s)o.push(a(t,l,l+s>u?u:l+s));1===i?(r=t[n-1],o.push(e[r>>2]+e[r<<4&63]+"==")):2===i&&(r=(t[n-2]<<8)+t[n-1],o.push(e[r>>10]+e[r>>4&63]+e[r<<2&63]+"="));return o.join("")};for(var e=[],t=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0;i<64;++i)e[i]=n[i],t[n.charCodeAt(i)]=i;function o(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function s(t){return e[t>>18&63]+e[t>>12&63]+e[t>>6&63]+e[63&t]}function a(e,t,r){for(var n,i=[],o=t;o<r;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(s(n));return i.join("")}return t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63,base64Js}var ieee754={},hasRequiredIeee754,hasRequiredBuffer;function requireIeee754(){return hasRequiredIeee754||(hasRequiredIeee754=1,ieee754.read=function(e,t,r,n,i){var o,s,a=8*i-n-1,l=(1<<a)-1,u=l>>1,c=-7,f=r?i-1:0,p=r?-1:1,h=e[t+f];for(f+=p,o=h&(1<<-c)-1,h>>=-c,c+=a;c>0;o=256*o+e[t+f],f+=p,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;c>0;s=256*s+e[t+f],f+=p,c-=8);if(0===o)o=1-u;else{if(o===l)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,n),o-=u}return(h?-1:1)*s*Math.pow(2,o-n)},ieee754.write=function(e,t,r,n,i,o){var s,a,l,u=8*o-i-1,c=(1<<u)-1,f=c>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,d=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+f>=1?p/l:p*Math.pow(2,1-f))*l>=2&&(s++,l/=2),s+f>=c?(a=0,s=c):s+f>=1?(a=(t*l-1)*Math.pow(2,i),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;e[r+h]=255&a,h+=d,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;e[r+h]=255&s,h+=d,s/=256,u-=8);e[r+h-d]|=128*g}),ieee754}function requireBuffer(){return hasRequiredBuffer||(hasRequiredBuffer=1,function(e){const t=requireBase64Js(),r=requireIeee754(),n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=function(e){+e!=e&&(e=0);return s.alloc(+e)},e.INSPECT_MAX_BYTES=50;const i=2147483647;function o(e){if(e>i)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return u(e)}return a(e,t,r)}function a(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!s.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|h(e,t);let n=o(r);const i=n.write(e,t);i!==r&&(n=n.slice(0,i));return n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(H(e,Uint8Array)){const t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return c(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(H(e,ArrayBuffer)||e&&H(e.buffer,ArrayBuffer))return f(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(H(e,SharedArrayBuffer)||e&&H(e.buffer,SharedArrayBuffer)))return f(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return s.from(n,t,r);const i=function(e){if(s.isBuffer(e)){const t=0|p(e.length),r=o(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||W(e.length)?o(0):c(e);if("Buffer"===e.type&&Array.isArray(e.data))return c(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return l(e),o(e<0?0:0|p(e))}function c(e){const t=e.length<0?0:0|p(e.length),r=o(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function f(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,s.prototype),n}function p(e){if(e>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function h(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||H(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return J(e).length;default:if(i)return n?-1:G(e).length;t=(""+t).toLowerCase(),i=!0}}function d(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return q(this,t,r);case"utf8":case"utf-8":return E(this,t,r);case"ascii":return C(this,t,r);case"latin1":case"binary":return x(this,t,r);case"base64":return $(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function g(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function m(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),W(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){let o,s=1,a=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,l/=2,r/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){let n=-1;for(o=r;o<a;o++)if(u(e,o)===u(t,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===l)return n*s}else-1!==n&&(o-=o-n),n=-1}else for(r+l>a&&(r=a-l),o=r;o>=0;o--){let r=!0;for(let n=0;n<l;n++)if(u(e,o+n)!==u(t,n)){r=!1;break}if(r)return o}return-1}function b(e,t,r,n){r=Number(r)||0;const i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;const o=t.length;let s;for(n>o/2&&(n=o/2),s=0;s<n;++s){const n=parseInt(t.substr(2*s,2),16);if(W(n))return s;e[r+s]=n}return s}function k(e,t,r,n){return z(G(t,e.length-r),e,r,n)}function A(e,t,r,n){return z(function(e){const t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function w(e,t,r,n){return z(J(t),e,r,n)}function _(e,t,r,n){return z(function(e,t){let r,n,i;const o=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)r=e.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function $(e,r,n){return 0===r&&n===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(r,n))}function E(e,t,r){r=Math.min(e.length,r);const n=[];let i=t;for(;i<r;){const t=e[i];let o=null,s=t>239?4:t>223?3:t>191?2:1;if(i+s<=r){let r,n,a,l;switch(s){case 1:t<128&&(o=t);break;case 2:r=e[i+1],128==(192&r)&&(l=(31&t)<<6|63&r,l>127&&(o=l));break;case 3:r=e[i+1],n=e[i+2],128==(192&r)&&128==(192&n)&&(l=(15&t)<<12|(63&r)<<6|63&n,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:r=e[i+1],n=e[i+2],a=e[i+3],128==(192&r)&&128==(192&n)&&128==(192&a)&&(l=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&a,l>65535&&l<1114112&&(o=l))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=s}return function(e){const t=e.length;if(t<=v)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=v));return r}(n)}e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return a(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return function(e,t,r){return l(e),e<=0?o(e):void 0!==t?"string"==typeof r?o(e).fill(t,r):o(e).fill(t):o(e)}(e,t,r)},s.allocUnsafe=function(e){return u(e)},s.allocUnsafeSlow=function(e){return u(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(H(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),H(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);let r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const n=s.allocUnsafe(t);let i=0;for(r=0;r<e.length;++r){let t=e[r];if(H(t,Uint8Array))i+t.length>n.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else{if(!s.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,i)}i+=t.length}return n},s.byteLength=h,s.prototype._isBuffer=!0,s.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)g(this,t,t+1);return this},s.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},s.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},s.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?E(this,0,e):d.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){let t="";const r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,i){if(H(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;let o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0);const l=Math.min(o,a),u=this.slice(n,i),c=e.slice(t,r);for(let s=0;s<l;++s)if(u[s]!==c[s]){o=u[s],a=c[s];break}return o<a?-1:a<o?1:0},s.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return m(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return m(this,e,t,r,!1)},s.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return b(this,e,t,r);case"utf8":case"utf-8":return k(this,e,t,r);case"ascii":case"latin1":case"binary":return A(this,e,t,r);case"base64":return w(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const v=4096;function C(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function x(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function q(e,t,r){const n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let o=t;o<r;++o)i+=Z[e[o]];return i}function S(e,t,r){const n=e.slice(t,r);let i="";for(let o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function R(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function T(e,t,r,n,i,o){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function I(e,t,r,n,i){U(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,r}function M(e,t,r,n,i){U(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=s,s>>=8,e[r+2]=s,s>>=8,e[r+1]=s,s>>=8,e[r]=s,r+8}function B(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function O(e,t,n,i,o){return t=+t,n>>>=0,o||B(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function j(e,t,n,i,o){return t=+t,n>>>=0,o||B(e,0,n,8),r.write(e,t,n,i,52,8),n+8}s.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);const n=this.subarray(e,t);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return n},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=K(function(e){D(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||P(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(i)<<BigInt(32))}),s.prototype.readBigUInt64BE=K(function(e){D(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||P(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)}),s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||R(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||R(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=K(function(e){D(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||P(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)}),s.prototype.readBigInt64BE=K(function(e){D(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||P(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)}),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||R(e,4,this.length),r.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||R(e,4,this.length),r.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||R(e,8,this.length),r.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||R(e,8,this.length),r.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){T(this,e,t,r,Math.pow(2,8*r)-1,0)}let i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){T(this,e,t,r,Math.pow(2,8*r)-1,0)}let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigUInt64LE=K(function(e,t=0){return I(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=K(function(e,t=0){return M(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);T(this,e,t,r,n-1,-n)}let i=0,o=1,s=0;for(this[t]=255&e;++i<r&&(o*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);T(this,e,t,r,n-1,-n)}let i=r-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigInt64LE=K(function(e,t=0){return I(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=K(function(e,t=0){return M(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeFloatLE=function(e,t,r){return O(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return O(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return j(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return j(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);const i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},s.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){const t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;let i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{const o=s.isBuffer(e)?e:s.from(e,n),a=o.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=o[i%a]}return this};const L={};function N(e,t,r){L[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function F(e){let t="",r=e.length;const n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function U(e,t,r,n,i,o){if(e>r||e<t){const r="bigint"==typeof t?"n":"";let n;throw n=0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`,new L.ERR_OUT_OF_RANGE("value",n,e)}!function(e,t,r){D(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||P(t,e.length-(r+1))}(n,i,o)}function D(e,t){if("number"!=typeof e)throw new L.ERR_INVALID_ARG_TYPE(t,"number",e)}function P(e,t,r){if(Math.floor(e)!==e)throw D(e,r),new L.ERR_OUT_OF_RANGE("offset","an integer",e);if(t<0)throw new L.ERR_BUFFER_OUT_OF_BOUNDS;throw new L.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${t}`,e)}N("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),N("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),N("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=F(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=F(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);const Y=/[^+/0-9A-Za-z-_]/g;function G(e,t){let r;t=t||1/0;const n=e.length;let i=null;const o=[];for(let s=0;s<n;++s){if(r=e.charCodeAt(s),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function J(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(Y,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function H(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function W(e){return e!=e}const Z=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function K(e){return"undefined"==typeof BigInt?V:e}function V(){throw new Error("BigInt not supported")}}(buffer)),buffer}var bufferExports=requireBuffer(),utils={},stripBomString,hasRequiredStripBomString,hasRequiredUtils,defaults,hasRequiredDefaults,engine,hasRequiredEngine,stringify,hasRequiredStringify,excerpt,hasRequiredExcerpt,toFile,hasRequiredToFile,parse,hasRequiredParse,grayMatter$1,hasRequiredGrayMatter;function requireStripBomString(){return hasRequiredStripBomString?stripBomString:(hasRequiredStripBomString=1,stripBomString=function(e){return"string"==typeof e&&"\ufeff"===e.charAt(0)?e.slice(1):e})}function requireUtils(){return hasRequiredUtils||(hasRequiredUtils=1,function(e){const t=requireStripBomString(),r=requireKindOf();e.define=function(e,t,r){Reflect.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:r})},e.isBuffer=function(e){return"buffer"===r(e)},e.isObject=function(e){return"object"===r(e)},e.toBuffer=function(e){return"string"==typeof e?bufferExports.Buffer.from(e):e},e.toString=function(r){if(e.isBuffer(r))return t(String(r));if("string"!=typeof r)throw new TypeError("expected input to be a string or buffer");return t(r)},e.arrayify=function(e){return e?Array.isArray(e)?e:[e]:[]},e.startsWith=function(e,t,r){return"number"!=typeof r&&(r=t.length),e.slice(0,r)===t}}(utils)),utils}function requireDefaults(){if(hasRequiredDefaults)return defaults;hasRequiredDefaults=1;const e=requireEngines(),t=requireUtils();return defaults=function(r){const n=Object.assign({},r);return n.delimiters=t.arrayify(n.delims||n.delimiters||"---"),1===n.delimiters.length&&n.delimiters.push(n.delimiters[0]),n.language=(n.language||n.lang||"yaml").toLowerCase(),n.engines=Object.assign({},e,n.parsers,n.engines),n}}function requireEngine(){if(hasRequiredEngine)return engine;return hasRequiredEngine=1,engine=function(e,t){let r=t.engines[e]||t.engines[function(e){switch(e.toLowerCase()){case"js":case"javascript":return"javascript";case"coffee":case"coffeescript":case"cson":return"coffee";case"yaml":case"yml":return"yaml";default:return e}}(e)];if(void 0===r)throw new Error('gray-matter engine "'+e+'" is not registered');return"function"==typeof r&&(r={parse:r}),r}}function requireStringify(){if(hasRequiredStringify)return stringify;hasRequiredStringify=1;const e=requireKindOf(),t=requireEngine(),r=requireDefaults();function n(e){return"\n"!==e.slice(-1)?e+"\n":e}return stringify=function(i,o,s){if(null==o&&null==s)switch(e(i)){case"object":o=i.data,s={};break;case"string":return i;default:throw new TypeError("expected file to be a string or object")}const a=i.content,l=r(s);if(null==o){if(!l.data)return i;o=l.data}const u=i.language||l.language,c=t(u,l);if("function"!=typeof c.stringify)throw new TypeError('expected "'+u+'.stringify" to be a function');o=Object.assign({},i.data,o);const f=l.delimiters[0],p=l.delimiters[1],h=c.stringify(o,s).trim();let d="";return"{}"!==h&&(d=n(f)+n(h)+n(p)),"string"==typeof i.excerpt&&""!==i.excerpt&&-1===a.indexOf(i.excerpt.trim())&&(d+=n(i.excerpt)+n(p)),d+n(a)}}function requireExcerpt(){if(hasRequiredExcerpt)return excerpt;hasRequiredExcerpt=1;const e=requireDefaults();return excerpt=function(t,r){const n=e(r);if(null==t.data&&(t.data={}),"function"==typeof n.excerpt)return n.excerpt(t,n);const i=t.data.excerpt_separator||n.excerpt_separator;if(null==i&&(!1===n.excerpt||null==n.excerpt))return t;const o="string"==typeof n.excerpt?n.excerpt:i||n.delimiters[0],s=t.content.indexOf(o);return-1!==s&&(t.excerpt=t.content.slice(0,s)),t}}function requireToFile(){if(hasRequiredToFile)return toFile;hasRequiredToFile=1;const e=requireKindOf(),t=requireStringify(),r=requireUtils();return toFile=function(n){return"object"!==e(n)&&(n={content:n}),"object"!==e(n.data)&&(n.data={}),n.contents&&null==n.content&&(n.content=n.contents),r.define(n,"orig",r.toBuffer(n.content)),r.define(n,"language",n.language||""),r.define(n,"matter",n.matter||""),r.define(n,"stringify",function(e,r){return r&&r.language&&(n.language=r.language),t(n,e,r)}),n.content=r.toString(n.content),n.isEmpty=!1,n.excerpt="",n}}function requireParse(){if(hasRequiredParse)return parse;hasRequiredParse=1;const e=requireEngine(),t=requireDefaults();return parse=function(r,n,i){const o=t(i),s=e(r,o);if("function"!=typeof s.parse)throw new TypeError('expected "'+r+'.parse" to be a function');return s.parse(n,o)}}function requireGrayMatter(){if(hasRequiredGrayMatter)return grayMatter$1;hasRequiredGrayMatter=1;const e=require$$0,t=requireSectionMatter(),r=requireDefaults(),n=requireStringify(),i=requireExcerpt(),o=requireEngines(),s=requireToFile(),a=requireParse(),l=requireUtils();function u(e,n){if(""===e)return{data:{},content:e,excerpt:"",orig:e};let o=s(e);const c=u.cache[o.content];if(!n){if(c)return o=Object.assign({},c),o.orig=c.orig,o;u.cache[o.content]=o}return function(e,n){const o=r(n),s=o.delimiters[0],c="\n"+o.delimiters[1];let f=e.content;o.language&&(e.language=o.language);const p=s.length;if(!l.startsWith(f,s,p))return i(e,o),e;if(f.charAt(p)===s.slice(-1))return e;f=f.slice(p);const h=f.length,d=u.language(f,o);d.name&&(e.language=d.name,f=f.slice(d.raw.length));let g=f.indexOf(c);-1===g&&(g=h);e.matter=f.slice(0,g);const m=e.matter.replace(/^\s*#[^\n]+/gm,"").trim();""===m?(e.isEmpty=!0,e.empty=e.content,e.data={}):e.data=a(e.language,e.matter,o);g===h?e.content="":(e.content=f.slice(g+c.length),"\r"===e.content[0]&&(e.content=e.content.slice(1)),"\n"===e.content[0]&&(e.content=e.content.slice(1)));i(e,o),(!0===o.sections||"function"==typeof o.section)&&t(e,o.section);return e}(o,n)}return u.engines=o,u.stringify=function(e,t,r){return"string"==typeof e&&(e=u(e,r)),n(e,t,r)},u.read=function(t,r){const n=u(e.readFileSync(t,"utf8"),r);return n.path=t,n},u.test=function(e,t){return l.startsWith(e,r(t).delimiters[0])},u.language=function(e,t){const n=r(t).delimiters[0];u.test(e)&&(e=e.slice(n.length));const i=e.slice(0,e.search(/\r?\n/));return{raw:i,name:i?i.trim():""}},u.cache={},u.clearCache=function(){u.cache={}},grayMatter$1=u}var grayMatterExports=requireGrayMatter();const grayMatter=getDefaultExportFromCjs(grayMatterExports),frontmatterPlugin=(e,{grayMatterOptions:t,renderExcerpt:r=!0}={})=>{const n=e.parse.bind(e);e.parse=(i,o={})=>{const{data:s,content:a,excerpt:l=""}=grayMatter(i,t);return o.content=a,o.frontmatter={...o.frontmatter,...s},o.excerpt=r&&l?e.render(l,{...o}):l,n(a,o)}},TAG_NAME_SCRIPT="script",TAG_NAME_STYLE="style",TAG_NAME_TEMPLATE="template",SCRIPT_SETUP_TAG_OPEN_REGEXP=/^<script\s+.*?\bsetup\b.*?>$/is,createSfcRegexp=({customBlocks:e})=>{const t=Array.from(new Set([TAG_NAME_SCRIPT,TAG_NAME_STYLE,...e])).join("|");return new RegExp(`^\\s*(?<content>(?<tagOpen><(?<type>${t})\\s?.*?>)(?<contentStripped>.*)(?<tagClose><\\/\\k<type>\\s*>))\\s*$`,"is")},sfcPlugin=(e,{customBlocks:t=[]}={})=>{const r=createSfcRegexp({customBlocks:t}),n=e.render.bind(e);e.render=(e,t={})=>{t.sfcBlocks={template:null,script:null,scriptSetup:null,scripts:[],styles:[],customBlocks:[]};const r=n(e,t);return t.sfcBlocks.template={type:TAG_NAME_TEMPLATE,content:`<${TAG_NAME_TEMPLATE}>${r}</${TAG_NAME_TEMPLATE}>`,contentStripped:r,tagOpen:`<${TAG_NAME_TEMPLATE}>`,tagClose:`</${TAG_NAME_TEMPLATE}>`},r};const i=e.renderer.rules.html_block;e.renderer.rules.html_block=(e,t,n,o,s)=>{if(!o.sfcBlocks)return i(e,t,n,o,s);const a=e[t].content.match(r);if(!a)return i(e,t,n,o,s);const l=a.groups;return l.type===TAG_NAME_SCRIPT?(o.sfcBlocks.scripts.push(l),SCRIPT_SETUP_TAG_OPEN_REGEXP.test(l.tagOpen)?o.sfcBlocks.scriptSetup=l:o.sfcBlocks.script=l):l.type===TAG_NAME_STYLE?o.sfcBlocks.styles.push(l):o.sfcBlocks.customBlocks.push(l),""}},htmlEscapeMap={"&":"&","<":"<",">":">","'":"'",'"':"""},htmlEscapeRegexp=/[&<>'"]/g,htmlEscape=e=>e.replace(htmlEscapeRegexp,e=>htmlEscapeMap[e]),resolveTitleFromToken=(e,{shouldAllowHtml:t,shouldEscapeText:r})=>{const n=e.children??[],i=["text","emoji","code_inline"];i.push("html_inline");return n.filter(e=>i.includes(e.type)&&!e.meta?.isPermalinkSymbol).reduce((e,t)=>"code_inline"===t.type||"text"===t.type?`${e}${htmlEscape(t.content)}`:`${e}${t.content}`,"").trim()},resolveHeadersFromTokens=(e,{level:t,shouldAllowHtml:r,shouldAllowNested:n,shouldEscapeText:i,slugify:o,format:s})=>{const a=[],l=[],u=e=>{for(;0!==l.length&&e.level<=l[0].level;)l.shift();0===l.length?(a.push(e),l.push(e)):(l[0].children.push(e),l.unshift(e))};for(let c=0;c<e.length;c+=1){const a=e[c];if("heading_open"!==a.type)continue;if(0!==a.level&&!n)continue;const l=Number.parseInt(a.tag.slice(1),10);if(!t.includes(l))continue;const f=e[c+1];if(!f)continue;const p=resolveTitleFromToken(f,{shouldAllowHtml:r,shouldEscapeText:i}),h=a.attrGet("id")??o(p);u({level:l,title:s?.(p)??p,slug:h,link:`#${h}`,children:[]})}return a},rControl=/[\u0000-\u001f]/g,rSpecial=/[\s~`!@#$%^&*()\-_+=[\]{}|\\;:"'“”‘’<>,.?/]+/g,rCombining=/[\u0300-\u036F]/g,slugify=e=>e.normalize("NFKD").replace(rCombining,"").replace(rControl,"").replace(rSpecial,"-").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"").replace(/^(\d)/,"_$1").toLowerCase(),createRenderHeaders=({listTag:e,listClass:t,itemClass:r,linkTag:n,linkClass:i})=>{const o=htmlEscape(e),s=t?` class="${htmlEscape(t)}"`:"",a=r?` class="${htmlEscape(r)}"`:"",l=htmlEscape(n),u=i?` class="${htmlEscape(i)}"`:"",c=e=>`<${o}${s}>${e.map(e=>{return`<li${a}><${l}${u}${t=e.link,"router-link"===n?` to="${t}"`:` href="${t}"`}>${e.title}</${l}>${e.children.length>0?c(e.children):""}</li>`;var t}).join("")}</${o}>`;return c},createTocBlockRule=({pattern:e,containerTag:t,containerClass:r})=>(n,i,o,s)=>{if(n.sCount[i]-n.blkIndent>=4)return!1;const a=n.bMarks[i]+n.tShift[i],l=n.eMarks[i],u=n.src.slice(a,l).split(" ")[0];if(!e.test(u))return!1;if(s)return!0;n.line=i+1;const c=n.push("toc_open",t,1);c.markup="",c.map=[i,n.line],r&&c.attrSet("class",r);const f=n.push("toc_body","",0);f.markup=u,f.map=[i,n.line],f.hidden=!0;return n.push("toc_close",t,-1).markup="",f.map=[i,n.line],!0},tocPlugin=(e,{pattern:t=/^\[\[toc\]\]$/i,slugify:r=slugify,format:n,level:i=[2,3],shouldAllowNested:o=!1,containerTag:s="nav",containerClass:a="table-of-contents",listTag:l="ul",listClass:u="",itemClass:c="",linkTag:f="a",linkClass:p=""}={})=>{e.block.ruler.before("heading","toc",createTocBlockRule({pattern:t,containerTag:s,containerClass:a}),{alt:["paragraph","reference","blockquote"]});const h=createRenderHeaders({listTag:l,listClass:u,itemClass:c,linkTag:f,linkClass:p});e.renderer.rules.toc_body=e=>h(resolveHeadersFromTokens(e,{level:i,shouldAllowHtml:!0,shouldAllowNested:o,shouldEscapeText:!0,slugify:r,format:n}))},e$c=/\\(.)/g,t$f=(e,t,r,n)=>{let i=-1,o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(o+2>=s||42!==e.src.charCodeAt(o++)||91!==e.src.charCodeAt(o++))return!1;let a=o;for(;o<s;){let t=e.src.charCodeAt(o);if(91===t)return!1;if(93===t){i=o;break}92===t&&o++,o++}if(i<0||58!==e.src.charCodeAt(i+1))return!1;if(n)return!0;let l=e.src.slice(a,i).replaceAll(e$c,"$1");o=i+2;let u=e.skipSpaces(o),c=e.skipSpacesBack(s,u),f=e.src.slice(u,c);return 0!==l.length&&0!==f.length&&((e.env.abbreviations??={})[`_${l}`]??=f,e.line=t+1,!0)},n$c=e=>{let{arrayReplaceAt:t,escapeRE:r,lib:n}=e.utils,i=`${n.ucmicro.P.source}|${n.ucmicro.Z.source}|[${" \r\n$+<=>^`|~".split("").map(r).join("")}]`;e.block.ruler.before("reference","abbr_definition",t$f,{alt:["paragraph","reference"]}),e.core.ruler.after("linkify","abbr_replace",e=>{let n=e.tokens,o=e.env.abbreviations;if(!o)return;let s=Object.keys(o).map(e=>e.slice(1)).sort((e,t)=>t.length-e.length).map(r).join("|"),a=RegExp(`(?:${s})`),l=RegExp(`(^|${i})(${s})($|${i})`,"g"),u=n.length;for(let r=0;r<u;r++){let i=n[r];if("inline"!==i.type)continue;let s=i.children;for(let r=s.length-1;r>=0;r--){let n=s[r];if("text"!==n.type)continue;let u=n.content;if(l.lastIndex=0,!a.test(u))continue;let c,f=[],p=0;for(;c=l.exec(u);){let[,t,r,n]=c;if(c.index>0||t.length>0){let r=new e.Token("text","",0);r.content=u.slice(p,c.index+t.length),f.push(r)}let i=new e.Token("abbr_open","abbr",1);i.attrPush(["title",o[`_${r}`]]),f.push(i);let s=new e.Token("text","",0);s.content=r,f.push(s);let a=new e.Token("abbr_close","abbr",-1);f.push(a),l.lastIndex-=n.length,p=l.lastIndex}if(0!==f.length){if(p<u.length){let t=new e.Token("text","",0);t.content=u.slice(p),f.push(t)}i.children=s=t(s,r,f)}}}})},e$b=(e,t)=>{if("object"!=typeof t||!t.name)throw Error("[@mdit/plugin-container]: 'name' option is required.");let{name:r,marker:n=":",validate:i=e=>e.trim().split(" ",2)[0]===r,openRender:o=(e,t,n,i,o)=>(e[t].attrJoin("class",r),o.renderToken(e,t,n)),closeRender:s=(e,t,r,n,i)=>i.renderToken(e,t,r)}=t,a=n[0],l=n.length;e.block.ruler.before("fence",`container_${r}`,(e,t,o,s)=>{let u=e.bMarks[t]+e.tShift[t],c=e.eMarks[t],f=e.sCount[t];if(a!==e.src[u])return!1;let p=u+1;for(;p<=c&&n[(p-u)%l]===e.src[p];)p++;let h=Math.floor((p-u)/l);if(h<3)return!1;p-=(p-u)%l;let d=n.repeat(h),g=e.src.slice(p,c);if(!i(g,d))return!1;if(s)return!0;let m=t+1,y=!1;for(;m<o;m++){let t=e.bMarks[m]+e.tShift[m],r=e.eMarks[m];if(t<r&&e.sCount[m]<f)break;if(e.sCount[m]===f&&a===e.src[t]){for(p=t+1;p<=r&&n[(p-t)%l]===e.src[p];p++);if(Math.floor((p-t)/l)>=h&&(p-=(p-t)%l,p=e.skipSpaces(p),p>=r)){y=!0;break}}}let b=e.parentType,k=e.lineMax,A=e.blkIndent;e.parentType="container",e.lineMax=m,e.blkIndent=f;let w=e.push(`container_${r}_open`,"div",1);w.markup=d,w.block=!0,w.info=g,w.map=[t,m],e.md.block.tokenize(e,t+1,m);let _=e.push(`container_${r}_close`,"div",-1);return _.markup=d,_.block=!0,e.parentType=b,e.lineMax=k,e.blkIndent=A,e.line=m+(y?1:0),!0},{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules[`container_${r}_open`]=o,e.renderer.rules[`container_${r}_close`]=s},t$e=e=>{["left","center","right","justify"].forEach(t=>e.use(e=>e$b(e,{name:t,openRender:()=>`<div style="text-align:${t}">\n`})))},t$d=e=>!(9===e||10===e||12===e||32===e||47===e||62===e||34===e||39===e||61===e),n$b=(e,t,r)=>{let n="",i="",o=!0,s=!1,a=[];for(let l=t[0];l<t[1];l++){let t=e.charCodeAt(l);if(61===t&&o)o=!1;else if(46!==t||""!==n)if(35!==t||""!==n)if(34!==t||""!==i||s)if(34===t&&s)s=!1;else if(32!==t||s){if(!o||t$d(t)){if(o){n+=String.fromCharCode(t);continue}i+=String.fromCharCode(t)}}else{if(""===n)continue;a.push([n,i]),n="",i="",o=!0}else s=!0;else n="id",o=!1;else 46===e.charCodeAt(l+1)?(n="css-module",l++):n="class",o=!1}return""!==n&&a.push([n,i]),r.length>0?a.filter(([e])=>r.some(t=>t instanceof RegExp?t.test(e):t===e)):a},r$8=(e,t,r,n)=>{e&&n$b(t,r,n).forEach(([t,r])=>{switch(t){case"class":e.attrJoin("class",r);break;case"css-module":e.attrJoin("css-module",r);break;default:e.attrPush([t,r])}})},i$4=(e,t)=>{if(!["start","end","only"].includes(t))throw Error(`Invalid 'where' parameter: ${t}. Expected 'start', 'end', or 'only'.`);let r=e.left,n=e.right,i=r.length,o=n.length,s=i+1+o;return e=>{if("string"!=typeof e||e.length<s)return!1;let a,l;if("start"===t){if(!e.startsWith(r)||(a=i,l=e.indexOf(n,i+1),-1===l))return!1;let t=l+o;if(t<e.length&&n.includes(e.charAt(t)))return!1}else if("end"===t){if(a=e.lastIndexOf(r),-1===a||(l=e.indexOf(n,a+i+1),a+=i,-1===l||l+o!==e.length))return!1}else{if(!e.startsWith(r)||!e.endsWith(n))return!1;a=i,l=e.length-o}let u=e.charCodeAt(a),c=l-a;return(46===u||35===u?c>=2:c>=1)&&[a,l]}},a$4=(e,t)=>{let r=e[t];if("softbreak"===r.type)return null;if(0===r.nesting)return r;let n=r.level,i=r.type.replace("_close","_open");for(;t>=0;){let r=e[t];if(r.type===i&&r.level===n)return r;t--}return null},o$5=(e,t)=>t>=0?e[t]:e[e.length+t],s$2=(e,t,r)=>{let n={match:!1,position:null,range:null},i=void 0!==r.shift,o=i?t+r.shift:r.position;if(i&&o<0)return n;let s=o$5(e,o);if(!s)return n;let a=Object.keys(r),l=a.length;for(let u=0;u<l;u++){let e=a[u];if("shift"===e||"position"===e)continue;if(void 0===s[e])return n;if("children"===e&&Array.isArray(r.children)){if(!s.children?.length)return n;let e,t=r.children,i=s.children,o=null;if(t.every(e=>void 0!==e.position)){if(e=t.every(e=>{let t=s$2(i,e.position,e);return!!t.match&&(t.range&&(o=t.range),!0)}),e){let{position:e}=t[t.length-1];n.position=e>=0?e:i.length+e,n.range=o}}else for(let r=0;r<i.length;r++)if(e=t.every(e=>{let t=s$2(i,r,e);return!!t.match&&(t.range&&(o=t.range),!0)}),e){n.position=r,o&&(n.range=o);break}if(!1===e)return n;continue}let t=r[e];switch(typeof t){case"boolean":case"number":case"string":if(s[e]!==t)return n;break;case"function":{let r=t(s[e]);if(!r)return n;Array.isArray(r)&&(n.range=r);break}default:throw Error(`Unknown type of pattern test (key: ${e}). Test should be of type boolean, number, string or function.`)}}return n.match=!0,n},c$2=e=>e,l$3=e=>c$2({name:"end of block",tests:[{shift:0,type:"inline",children:[{position:-1,content:i$4(e,"end"),type:e=>"code_inline"!==e&&"math_inline"!==e}]}],transform:(t,r,n,i)=>{let o=i[0]-e.left.length,s=t[r].children[n],{content:a}=s,l=isSpace(a.charCodeAt(o-1)),u=r+1;for(;-1===t[u+1]?.nesting;)u++;r$8(a$4(t,u),a,i,e.allowed),s.content=a.slice(0,l?o-1:o)}}),u$3=e=>c$2({name:"code-block",tests:[{shift:0,block:!0,info:i$4(e,"end")}],transform:(t,r,n,i)=>{let o=i[0]-e.left.length,s=t[r],{info:a}=s,l=isSpace(a.charCodeAt(o-1));r$8(s,a,i,e.allowed),s.info=a.slice(0,l?o-1:o)}}),d$2=e=>c$2({name:"end of block",tests:[{shift:-1,type:"heading_open"},{shift:0,type:"inline",children:[{position:-1,content:i$4(e,"end"),type:e=>"code_inline"!==e&&"math_inline"!==e}]}],transform:(t,r,n,i)=>{let o=i[0]-e.left.length,s=t[r].children[n],{content:a}=s,l=isSpace(a.charCodeAt(o-1));r$8(a$4(t,r+1),a,i,e.allowed),s.content=a.slice(0,l?o-1:o)}}),f$2=e=>[c$2({name:"inline nesting self-close",tests:[{shift:0,type:"inline",children:[{shift:-1,type:e=>"image"===e||"code_inline"===e},{shift:0,type:"text",content:i$4(e,"start")}]}],transform:(t,r,n,i)=>{let o=t[r].children,s=o[n],a=o[n-1],l=e.right.length+i[1];r$8(a,s.content,i,e.allowed),s.content.length===l?o.splice(n,1):s.content=s.content.slice(l)}}),c$2({name:"inline attributes",tests:[{shift:0,type:"inline",children:[{shift:-1,nesting:-1},{shift:0,type:"text",content:i$4(e,"start")}]}],transform:(t,r,n,i)=>{let o=t[r].children,s=o[n],{content:a}=s,l=e.right.length+i[1];r$8(a$4(o,n-1),a,i,e.allowed),s.content=a.slice(l)}})],p$1=e=>[c$2({name:"list softbreak",tests:[{shift:-2,type:"list_item_open"},{shift:0,type:"inline",children:[{position:-2,type:"softbreak"},{position:-1,type:"text",content:i$4(e,"only")}]}],transform:(t,r,n,i)=>{let o=t[r].children,s=o[n],a=r-2;for(;"ordered_list_open"!==t[a-1]?.type&&"bullet_list_open"!==t[a-1].type;)a--;r$8(t[a-1],s.content,i,e.allowed),t[r].children=o.slice(0,-2)}}),c$2({name:"list double softbreak",tests:[{shift:0,type:e=>"bullet_list_close"===e||"ordered_list_close"===e},{shift:1,type:"paragraph_open"},{shift:2,type:"inline",content:i$4(e,"only"),children:e=>1===e.length},{shift:3,type:"paragraph_close"}],transform:(t,r,n,i)=>{let o=t[r+2];r$8(a$4(t,r),o.content,i,e.allowed),t.splice(r+1,3)}}),c$2({name:"list item end",tests:[{shift:-2,type:"list_item_open"},{shift:0,type:"inline",children:[{position:-1,type:"text",content:i$4(e,"end")}]}],transform:(t,r,n,i)=>{let o=t[r].children[n],s=o.content,a=i[0]-e.left.length,l=isSpace(s.charCodeAt(a-1));r$8(t[r-2],s,i,e.allowed),o.content=s.slice(0,l?a-1:a)}})],m=e=>c$2({name:"\n{.a} softbreak then curly in start",tests:[{shift:0,type:"inline",children:[{position:-2,type:"softbreak"},{position:-1,type:"text",content:i$4(e,"only")}]}],transform:(t,r,n,i)=>{let o=t[r].children,s=o[n],a=r+1;for(;-1===t[a+1]?.nesting;)a++;r$8(a$4(t,a),s.content,i,e.allowed),t[r].children=o.slice(0,-2)}}),h=e=>c$2({name:"horizontal rule",tests:[{shift:0,type:"paragraph_open"},{shift:1,type:"inline",children:e=>1===e.length,content:t=>{let r,n=0,i=t.charCodeAt(n++);if(45!==i&&42!==i&&95!==i)return!1;let o=1;for(;n<t.length&&(r=t.charCodeAt(n++),r===i);)o++;return!(o<3)&&(isSpace(t.charCodeAt(n-1))||n--,i$4(e,"end")(t))}},{shift:2,type:"paragraph_close"}],transform:(t,r,n,i)=>{let o=t[r],{content:s}=t[r+1];o.type="hr",o.tag="hr",o.nesting=0,r$8(o,s,i,e.allowed),o.markup=s,t.splice(r+1,2)}}),g=e=>[c$2({name:"table",tests:[{shift:0,type:"table_close"},{shift:1,type:"paragraph_open"},{shift:2,type:"inline",content:i$4(e,"only")}],transform:(t,r,n,i)=>{let o=t[r+2];r$8(a$4(t,r),o.content,i,e.allowed),t.splice(r+1,3)}}),c$2({name:"table cell attributes",tests:[{shift:-1,type:e=>"td_open"===e||"th_open"===e},{shift:0,type:"inline",children:[{shift:0,type:"text",content:i$4(e,"end")}]}],transform:(t,r,n,i)=>{let o=i[0]-e.left.length,s=t[r].children[n],a=t[r-1],{content:l}=s,u=isSpace(l.charCodeAt(o-1));r$8(a,l,i,e.allowed),s.content=l.slice(0,u?o-1:o)}}),c$2({name:"table thead metadata",tests:[{shift:0,type:"tr_close"},{shift:1,type:"thead_close"},{shift:2,type:"tbody_open"}],transform:(e,t)=>{let r=a$4(e,t),n=e[t-1],i=0,o=t-1;for(;o>0;){let t=e[o];if(t===r){let t=e[o-1];t.meta={...t.meta,columnCount:i};break}t.level===n.level&&t.type===n.type&&i++,o--}let s=e[t+2];s.meta={...s.meta,columnCount:i}}}),c$2({name:"table tbody calculate",tests:[{shift:0,type:"tbody_close",hidden:!1}],transform:(e,t)=>{let r=t-2;for(;r>=0&&"tbody_open"!==e[r].type;)r--;let n=e[r].meta?.columnCount??0;if(n<2)return;let i=Array.from({length:n}).fill(0),o=[],s=r+1;for(;s<t;){let r=s,a=r+1;for(;a<t&&"tr_close"!==e[a].type;)a++;let l=[],u=r+1;for(;u<a;){let t=u+1;for(;t<a&&"td_close"!==e[t].type&&"th_close"!==e[t].type;)t++;l.push([u,t]),u=t+1}let c=0,f=0;for(;f<n;){if(i[f]>0){i[f]--,o.push(l[c]),c++,f++;continue}let t=e[l[c][0]],r=Number(t.attrGet("colspan"))||1,s=Number(t.attrGet("rowspan"))||1;c++;let a=0;for(let e=0;e<r;e++)if(f+e<n){if(0!==i[f+e])break;a++}r>1&&a<r&&t.attrSet("colspan",String(a));for(let e=0;e<a;e++)f+e<n&&(i[f+e]=s-1);let u=a-1;if(u>0)for(let e=0;e<u;e++)o.push(l[c]),c++;f+=a}s=a+1}o.sort((e,t)=>t[0]-e[0]);for(let[a,l]of o)e.splice(a,l-a+1)}})],_=["fence","inline","table","list","heading","hr","softbreak","block"],v=e=>{let t=!1===e.rule?[]:Array.isArray(e.rule)?e.rule.filter(e=>_.includes(e)):_,r=[];return t.includes("fence")&&r.push(u$3(e)),t.includes("inline")&&r.push(...f$2(e)),t.includes("table")&&r.push(...g(e)),t.includes("list")&&r.push(...p$1(e)),t.includes("softbreak")&&r.push(m(e)),t.includes("hr")&&r.push(h(e)),t.includes("block")?r.push(l$3(e)):t.includes("heading")&&r.push(d$2(e)),r},y=(e,{left:t="{",right:r="}",allowed:n=[],rule:i="all"}={})=>{let o=v({left:t,right:r,allowed:n,rule:i});e.core.ruler.before("linkify","attrs",e=>{let t=e.tokens;for(let r=0;r<t.length;r++)for(let e=0;e<o.length;e++){let n=o[e],i=null,s=null;n.tests.every(e=>{let n=s$2(t,r,e);return null!==n.position&&({position:i}=n),n.range&&(s=n.range),n.match})&&(n.transform(t,r,i,s),("inline attributes"===n.name||"inline nesting self-close"===n.name)&&e--)}})},e$a=(e,{name:t="demo",openRender:r=(e,t)=>`<details><summary>${e[t].info}</summary>\n`,closeRender:n=()=>"</details>\n",codeRender:i,contentOpenRender:o,contentCloseRender:s,showCodeFirst:a=!1}={})=>{e.block.ruler.before("fence","demo",(e,r,n,o)=>{let s=e.bMarks[r]+e.tShift[r],l=e.eMarks[r],u=e.sCount[r];if(58!==e.src.charCodeAt(s)||l-s<3+t.length)return!1;let c=s+1;for(;c<=l&&58===e.src.charCodeAt(c);)c++;let f=c-s;if(f<3)return!1;c=e.skipSpaces(c);for(let i=0;i<t.length;i++){if(e.src.charCodeAt(c)!==t.charCodeAt(i))return!1;c++}let p=c,h=e.skipSpacesBack(l,c),d=h>p,g=-1;if(d&&(g=e.skipSpaces(p),g===p))return!1;if(o)return!0;let m=r+1,y=!1;for(;m<n;m++){let t=e.bMarks[m]+e.tShift[m],r=e.eMarks[m];if(t<r&&e.sCount[m]<u)break;if(e.sCount[m]===u&&58===e.src.charCodeAt(t)){for(c=t+1;c<=r&&58===e.src.charCodeAt(c);c++);if(c-t>=f&&(c=e.skipSpaces(c),c>=r)){y=!0;break}}}let b=e.parentType,k=e.lineMax,A=e.blkIndent;e.parentType="demo",e.lineMax=m,e.blkIndent=u;let w=":".repeat(f),_=d?e.src.slice(g,h):"Demo",$=e.push(`${t}_demo_open`,"div",1);$.markup=w,$.block=!0,$.info=_,$.map=[r,m];let E=()=>{let n=e.push(i?`${t}_demo_code`:"fence","code",0),o=e.sCount[r];n.content=e.src.split(/\n\r?/).slice(r+1,m).map(e=>e.slice(o)).filter(e=>!/^<!-- #include-env-(?:start: .*|end) -->$/.test(e)).join("\n").replace(/^\n+/,"").replace(/\n*$/,"\n"),n.map=[r,e.line],(n.meta??={}).title=_,i||(n.info="md")};a&&E();let v=e.push(`${t}_demo_content_open`,"div",1);v.attrPush(["class","demo-content"]),v.block=!0,$.map=[r,m],e.md.block.tokenize(e,r+1,m),e.push(`${t}_demo_content_close`,"div",-1).block=!0,a||E();let C=e.push(`${t}_demo_close`,"div",-1);return C.markup=w,C.block=!0,C.info=_,e.parentType=b,e.lineMax=k,e.blkIndent=A,e.line=m+(y?1:0),!0},{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules[`${t}_demo_open`]=r,e.renderer.rules[`${t}_demo_close`]=n,i&&(e.renderer.rules[`${t}_demo_code`]=i),o&&(e.renderer.rules[`${t}_demo_content_open`]=o),s&&(e.renderer.rules[`${t}_demo_content_close`]=s)},e$9=(e,t)=>{let r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];if(r>=n)return-1;let i=e.src.charCodeAt(r++);if(126!==i&&58!==i)return-1;let o=e.skipSpaces(r);return r===o||o>=n?-1:r},t$c=(e,t)=>{let r=e.level+2;for(let n=t+2,i=e.tokens.length-2;n<i;n++)e.tokens[n].level===r&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)},n$a=(e,t,r,n)=>{if(n)return!(e.ddIndent<0)&&(e$9(e,t)>=0&&e.sCount[t]<e.blkIndent);let i=t+1;if(i>=r)return!1;let o=!1;if(e.isEmpty(i)&&(i++,o=!0,i>=r)||e.sCount[i]<e.blkIndent)return!1;let s=e$9(e,i);if(s<0)return!1;let a=e.tokens.length,l=[t,0];e.push("dl_open","dl",1).map=l;let u=t,c=i,f=!o;e:for(;;){let t=!1;e.push("dt_open","dt",1).map=[u,u];let n=e.push("inline","",0);for(n.map=[u,u],n.content=e.getLines(u,u+1,e.blkIndent,!1).trim(),n.children=[],e.push("dt_close","dt",-1);;){let n=[i,0];e.push("dd_open","dd",1).map=n;let o=s,a=e.eMarks[c],l=e.sCount[c]+s-(e.bMarks[c]+e.tShift[c]);for(;o<a;){let t=e.src.charCodeAt(o);if(9===t)l+=4-l%4;else{if(32!==t)break;l++}o++}s=o;let u=e.tight,p=e.ddIndent,h=e.blkIndent,d=e.tShift[c],g=e.sCount[c],m=e.parentType;if(e.blkIndent=e.ddIndent=e.sCount[c]+2,e.tShift[c]=s-e.bMarks[c],e.sCount[c]=l,e.tight=!0,e.parentType="dl",e.md.block.tokenize(e,c,r,!0),(!e.tight||t)&&(f=!1),t=e.line-c>1&&e.isEmpty(e.line-1),e.tShift[c]=d,e.sCount[c]=g,e.tight=u,e.parentType=m,e.blkIndent=h,e.ddIndent=p,e.push("dd_close","dd",-1),n[1]=i=e.line,i>=r||e.sCount[i]<e.blkIndent)break e;if(s=e$9(e,i),s<0)break;c=i}if(i>=r||(u=i,e.isEmpty(u)||e.sCount[u]<e.blkIndent)||(c=u+1,c>=r)||(e.isEmpty(c)&&c++,c>=r||e.sCount[c]<e.blkIndent)||(s=e$9(e,c),s<0))break}return e.push("dl_close","dl",-1),l[1]=i,e.line=i,f&&t$c(e,a),!0},r$7=e=>{e.block.ruler.before("paragraph","dl",n$a,{alt:["paragraph","reference","blockquote"]})},e$8=(e,t)=>{e.attrs=e.attrs?.filter(([e])=>e!==t)??null},t$b=e=>{let t=e.attrs?.find(([e])=>"title"===e)?.[1];return t?(e$8(e,"title"),t):e.content},n$9=(e,t={})=>{e.core.ruler.before("linkify","figure",r=>{for(let n=1,{length:i}=r.tokens;n<i-1;n++){let i=r.tokens[n];if("inline"!==i.type||!i.children||1!==i.children.length&&3!==i.children.length||1===i.children.length&&"image"!==i.children[0].type)continue;if(3===i.children.length){let[e,t,r]=i.children;if("link_open"!==e.type||"image"!==t.type||"link_close"!==r.type)continue}if("paragraph_open"!==r.tokens[n-1].type||"paragraph_close"!==r.tokens[n+1].type)continue;let o=r.tokens[n-1];o.type="figure_open",o.tag="figure",r.tokens[n+1].type="figure_close",r.tokens[n+1].tag="figure";let s=1===i.children.length?i.children[0]:i.children[1],a=t$b(s),[l]=e.parseInline(a,r.env);i.children.push(new r.Token("figcaption_open","figcaption",1)),i.children.push(...l.children??[]),i.children.push(new r.Token("figcaption_close","figcaption",-1)),!1!==t.focusable&&s.attrPush(["tabindex","0"])}})},e$7=(e,t)=>e[t].meta.subId>0?`:${e[t].meta.subId}`:"",t$a=(e,t,r,n)=>`${"string"==typeof n.docId?`-${n.docId}-`:""}${(e[t].meta.id+1).toString()}`,n$8=(e,t)=>`[${(e[t].meta.id+1).toString()}${e$7(e,t)}]`,r$6=(e,t,r,n,i)=>{let o=i.rules.footnote_anchorName(e,t,r,n,i);return`<sup class="footnote-ref"><a href="#footnote${o}">${i.rules.footnote_caption(e,t,r,n,i)}</a><a class="footnote-anchor" id="footnote-ref${o}${e$7(e,t)}"></a></sup>`},i$3=(e,t,r)=>`<hr class="footnotes-sep"${r.xhtmlOut?" /":""}>\n<section class="footnotes">\n<ol class="footnotes-list">\n`,a$3=()=>"</ol>\n</section>\n",o$4=(e,t,r,n,i)=>`<li id="footnote${i.rules.footnote_anchorName(e,t,r,n,i)}${e$7(e,t)}" class="footnote-item">`,s$1=()=>"</li>\n",c$1=(e,t,r,n,i)=>` <a href="#footnote-ref${i.rules.footnote_anchorName(e,t,r,n,i)}${e$7(e,t)}" class="footnote-backref">↩︎</a>`,l$2=(e,t,r,n)=>{let i,o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(o+4>s||91!==e.src.charCodeAt(o)||94!==e.src.charCodeAt(o+1))return!1;let a=o+2;for(;a<s;){if(i=e.src.charCodeAt(a),32===i)return!1;if(93===i)break;a++}if(a===o+2||a+1>=s||58!==e.src.charCodeAt(++a))return!1;if(n)return!0;a++,(e.env.footnotes??={}).refs??={};let l=e.src.slice(o+2,a-2);e.env.footnotes.refs[`:${l}`]=-1;let u=e.push("footnote_reference_open","",1);u.meta={label:l},u.level=e.level++;let c=e.bMarks[t],f=e.tShift[t],p=e.sCount[t],h=e.parentType,d=a,g=e.sCount[t]+a-(e.bMarks[t]+e.tShift[t]),m=g;for(;a<s;){let t=e.src.charCodeAt(a);if(9===t)m+=4-m%4;else{if(32!==t)break;m++}a++}return e.tShift[t]=a-d,e.sCount[t]=m-g,e.bMarks[t]=d,e.blkIndent+=4,e.parentType="footnote",e.sCount[t]<e.blkIndent&&(e.sCount[t]+=e.blkIndent),e.md.block.tokenize(e,t,r),e.parentType=h,e.blkIndent-=4,e.tShift[t]=f,e.sCount[t]=p,e.bMarks[t]=c,e.push("footnote_reference_close","",-1).level=--e.level,!0},u$2=(e,t)=>{let r=e.posMax,n=e.pos;if(n+2>=r||94!==e.src.charCodeAt(n)||91!==e.src.charCodeAt(n+1))return!1;let i=e.md.helpers.parseLinkLabel(e,n+1);if(i<0)return!1;let o=n+2;if(!t){let t=((e.env.footnotes??={}).list??=[]).length,r=[];e.md.inline.parse(e.src.slice(o,i),e.md,e.env,r),e.push("footnote_ref","",0).meta={id:t},e.env.footnotes.list[t]={content:e.src.slice(o,i),tokens:r}}return e.pos=i+1,e.posMax=r,!0},d$1=(e,t)=>{let r,n=e.pos,i=e.posMax;if(n+3>i||!e.env.footnotes?.refs||91!==e.src.charCodeAt(n)||94!==e.src.charCodeAt(n+1))return!1;let o=n+2;for(;o<i;){if(r=e.src.charCodeAt(o),32===r||10===r)return!1;if(93===r)break;o++}if(o===n+2||o>=i)return!1;o++;let s=e.src.slice(n+2,o-1);if(void 0===e.env.footnotes.refs[`:${s}`])return!1;if(!t){let t,r=e.env.footnotes.list??=[],{refs:n}=e.env.footnotes;n[`:${s}`]<0?(t=r.length,r[t]={label:s,count:0},n[`:${s}`]=t):t=n[`:${s}`];let i=r[t].count;r[t].count+=1,e.push("footnote_ref","",0).meta={id:t,subId:i,label:s}}return e.pos=o,e.posMax=i,!0},f$1=e=>{let t,r,n={},i=!1;if(!e.env.footnotes?.list)return e.tokens=e.tokens.filter(e=>"footnote_reference_open"===e.type?(i=!0,!1):"footnote_reference_close"===e.type?(i=!1,!1):!i),!1;let{list:o}=e.env.footnotes;e.tokens=e.tokens.filter(e=>"footnote_reference_open"===e.type?(i=!0,t=[],r=e.meta.label,!1):"footnote_reference_close"===e.type?(i=!1,n[`:${r}`]=t,!1):(i&&t.push(e),!i));let s=new e.Token("footnote_block_open","",1);e.tokens.push(s);for(let a=0,{length:l}=o;a<l;a++){let t,r=new e.Token("footnote_open","",1);if(r.meta={id:a,label:o[a].label},e.tokens.push(r),o[a].tokens){let t=new e.Token("paragraph_open","p",1);t.block=!0;let r=new e.Token("inline","",0);r.children=o[a].tokens,r.content=o[a].content;let n=new e.Token("paragraph_close","p",-1);n.block=!0,e.tokens.push(t,r,n)}else if(o[a].label){let t=n[`:${o[a].label}`];t&&e.tokens.push(...t)}t="paragraph_close"===e.tokens[e.tokens.length-1].type?e.tokens.pop()??null:null;for(let n=0;n<(Number(o[a].count)>0?o[a].count:1);n++){let t=new e.Token("footnote_anchor","",0);t.meta={id:a,subId:n,label:o[a].label},e.tokens.push(t)}t&&e.tokens.push(t),e.tokens.push(new e.Token("footnote_close","",-1))}return e.tokens.push(new e.Token("footnote_block_close","",-1)),!0},p=e=>{e.renderer.rules.footnote_ref=r$6,e.renderer.rules.footnote_block_open=i$3,e.renderer.rules.footnote_block_close=a$3,e.renderer.rules.footnote_open=o$4,e.renderer.rules.footnote_close=s$1,e.renderer.rules.footnote_anchor=c$1,e.renderer.rules.footnote_caption=n$8,e.renderer.rules.footnote_anchorName=t$a,e.block.ruler.before("reference","footnoteDef",l$2,{alt:["paragraph","reference"]}),e.inline.ruler.after("image","footnoteInline",u$2),e.inline.ruler.after("footnoteInline","footnote_ref",d$1),e.core.ruler.after("inline","footnoteTail",f$1)},r$5=e=>e.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'"),o$3=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/gu,t$9=(e,t)=>{let r=!1,n=e.posMax,i=e.pos;if(58!==e.src.charCodeAt(i)||58!==e.src.charCodeAt(i+1))return!1;let o=e.src.charCodeAt(i+2);if(32===o||58===o||t||n-i<5)return!1;for(e.pos=i+2;e.pos<n;){if(58===e.src.charCodeAt(e.pos)&&58===e.src.charCodeAt(e.pos+1)){r=!0;break}e.md.inline.skipToken(e)}if(!r||i+2===e.pos||32===e.src.charCodeAt(e.pos-1))return e.pos=i,!1;let s=e.src.slice(i+2,e.pos);e.posMax=e.pos,e.pos=i+2;let a=e.push("icon","i",0);return a.markup="::",a.content=s,e.pos=e.posMax+2,e.posMax=n,!0},n$7=(e,{render:t=e=>`<i class="${e}"></i>`}={})=>{e.inline.ruler.before("link","icon",t$9),e.renderer.rules.icon=(e,r,n,i)=>t(e[r].content,i)},e$6=e=>{let t=e.renderer.rules.image;e.renderer.rules.image=(e,r,n,i,o)=>(e[r].attrSet("loading","lazy"),t(e,r,n,i,o))},e$5=/#(.*?)$/,t$8=(e,{light:t=["light"],dark:r=["dark"]}={})=>{let n=e.renderer.rules.image,i=t.map(e=>`#${e}`),o=r.map(e=>`#${e}`);e.renderer.rules.image=(e,t,r,s,a)=>{let l=e[t],u=l.attrGet("src");return u&&(i.some(e=>u.endsWith(e))?(l.attrSet("data-mode","lightmode-only"),l.attrSet("src",u.replace(e$5,""))):o.some(e=>u.endsWith(e))&&(l.attrSet("data-mode","darkmode-only"),l.attrSet("src",u.replace(e$5,"")))),n(e,t,r,s,a)}},l$1=e=>e>=48&&e<=57,u$1=e=>{let t=e.length,r=e.lastIndexOf("=");if(-1===r||r+3>t||0!==r&&!isSpace(e.charCodeAt(r-1)))return null;let n=e.slice(0,r++).trimEnd(),i=null,o=null;if(l$1(e.charCodeAt(r))){let n=r;for(;r<t&&l$1(e.charCodeAt(r));)r++;if(i=e.slice(n,r),120!==e.charCodeAt(r++))return null}else if(120!==e.charCodeAt(r++))return null;if(r<t){let n=r;for(;r<t&&l$1(e.charCodeAt(r));)r++;r>n&&(o=e.slice(n,r))}for(;r<t;){if(!isSpace(e.charCodeAt(r)))return null;r++}return{label:n,width:i,height:o}},d=(e,t)=>{let r=e.env,n=e.pos,i=e.posMax;if(33!==e.src.charCodeAt(e.pos)||91!==e.src.charCodeAt(e.pos+1))return!1;let o=e.pos+2,s=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(s<0)return!1;let a=u$1(e.src.slice(o,s));if(!a)return!1;let{label:l,width:u,height:c}=a,f=s+1,p="",h="";if(f<i&&40===e.src.charCodeAt(f)){for(f++;f<i&&isSpace(e.src.charCodeAt(f));)f++;if(f>=i)return!1;let t;t=e.md.helpers.parseLinkDestination(e.src,f,e.posMax),t.ok&&(p=e.md.normalizeLink(t.str),e.md.validateLink(p)?f=t.pos:p="");let r=f;for(;f<i&&isSpace(e.src.charCodeAt(f));f++);if(t=e.md.helpers.parseLinkTitle(e.src,f,e.posMax),f<i&&r!==f&&t.ok)for(h=t.str,f=t.pos;f<i&&isSpace(e.src.charCodeAt(f));f++);else h="";if(f>=i||41!==e.src.charCodeAt(f))return e.pos=n,!1;f++}else{let t="";if(void 0===r.references)return!1;for(;f<i&&isSpace(e.src.charCodeAt(f));f++);if(f<i&&91===e.src.charCodeAt(f)){let r=f+1;f=e.md.helpers.parseLinkLabel(e,f),f>=0?t=e.src.slice(r,f++):f=s+1}else f=s+1;t||=l;let o=r.references[e.md.utils.normalizeReference(t)];if(!o)return e.pos=n,!1;p=o.href,h=o.title??""}if(!t){let t=e.push("image","img",0),r=[["src",p],["alt",""]];h&&r.push(["title",h]),u&&r.push(["width",u]),c&&r.push(["height",c]);let n=[];e.md.inline.parse(l,e.md,e.env,n),t.attrs=r,t.children=n,t.content=l}return e.pos=f,e.posMax=i,!0},f=e=>{e.inline.ruler.before("image","img-size",d)},e$4=(e,t)=>{let r=e.pos,n=e.src.charCodeAt(r);if(t||43!==n)return!1;let i=e.scanDelims(e.pos,!0),{length:o}=i;if(o<2)return!1;let s=String.fromCharCode(n);if(o%2){e.push("text","",0).content=s,o--}for(let a=0;a<o;a+=2){e.push("text","",0).content=s+s,(i.can_open||i.can_close)&&e.delimiters.push({marker:43,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0},t$7=(e,t)=>{let r,n=[],i=t.length;for(let o=0;o<i;o++){let i=t[o];if(43===i.marker&&-1!==i.end){let o=t[i.end];r=e.tokens[i.token],r.type="ins_open",r.tag="ins",r.nesting=1,r.markup="++",r.content="",r=e.tokens[o.token],r.type="ins_close",r.tag="ins",r.nesting=-1,r.markup="++",r.content="","text"===e.tokens[o.token-1].type&&"+"===e.tokens[o.token-1].content&&n.push(o.token-1)}}for(;n.length>0;){let t=n.pop(),i=t+1;for(;i<e.tokens.length&&"ins_close"===e.tokens[i].type;)i++;i--,t!==i&&(r=e.tokens[i],e.tokens[i]=e.tokens[t],e.tokens[t]=r)}},n$6=e=>{e.inline.ruler.before("emphasis","ins",e$4),e.inline.ruler2.before("emphasis","ins",e=>{t$7(e,e.delimiters);let t=e.tokens_meta,r=t.length;if(0===r)return!0;for(let n=0;n<r;n++){let r=t[n];r?.delimiters.length&&t$7(e,r.delimiters)}return!0})},t$6=String.raw`\[`,n$5=String.raw`\(`,r$4=(e,t,r=0)=>{let n=0,i=t-1;for(;i>=r&&92===e.charCodeAt(i);)n++,i--;return n},i$2=(e,t,r)=>{let n=e.src.charCodeAt(t-1),i=e.src.charCodeAt(t+1);return{canOpen:r||!isSpace(i),canClose:!(i>=48&&i<=57)&&(r||!isSpace(n))}},a$2=e=>(t,r)=>{if("$"!==t.src[t.pos])return!1;let n=i$2(t,t.pos,e);if(!n.canOpen)return r||(t.pending+="$"),t.pos++,!0;let i,o=t.pos+1,s=o,a=t.src.lastIndexOf("$");if(-1===a)return!1;for(;(s=t.src.indexOf("$",s))<=a;){for(i=s-1;92===t.src.charCodeAt(i);)i--;if((s-i)%2==1)break;s++}if(-1===s)return r||(t.pending+="$"),t.pos=o,!0;if(s-o===0)return r||(t.pending+="$$"),t.pos=o+1,!0;if(n=i$2(t,s,e),!n.canClose)return r||(t.pending+="$"),t.pos=o,!0;if(!r){let e=t.push("math_inline","math",0);e.markup="$",e.content=t.src.slice(o,s)}return t.pos=s+1,!0},o$2=()=>(e,t)=>{let r=e.pos;if(92!==e.src.charCodeAt(r)||40!==e.src.charCodeAt(r+1))return!1;let n=r+2,i=!1,o=e.src.length;for(;n<o-1;){if(92===e.src.charCodeAt(n)&&41===e.src.charCodeAt(n+1)){if(r$4(e.src,r)%2==1)return!1;if(r$4(e.src,n,r+2)%2==0){i=!0;break}}n++}if(!i)return!1;if(!t){let t=e.push("math_inline","math",0);t.markup=n$5,t.content=e.src.slice(r+2,n)}return e.pos=n+2,!0},s=(e,t,r,n)=>{let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(i+2>o||36!==e.src.charCodeAt(i)||36!==e.src.charCodeAt(i+1))return!1;if(n)return!0;let s,a=e.skipSpacesBack(o,i),l=i+2,u=!1;a-l>=2&&36===e.src.charCodeAt(a-1)&&36===e.src.charCodeAt(a-2)?(s=e.src.slice(l,a-2),u=!0):s=e.src.slice(l,o);let c=t,f="";for(;!(u||(c++,c>=r||(l=e.bMarks[c]+e.tShift[c],o=e.eMarks[c],l<o&&e.tShift[c]<e.blkIndent)));)a=e.skipSpacesBack(o,l),a-l>=2&&36===e.src.charCodeAt(a-1)&&36===e.src.charCodeAt(a-2)&&(f=e.src.slice(l,a-2),u=!0);e.line=u?c+1:c;let p=e.push("math_block","math",0);return p.block=!0,p.content=(s?`${s}\n`:"")+e.getLines(t+1,c,e.tShift[t],!0)+(f?`${f}\n`:""),p.map=[t,e.line],p.markup="$$",!0},c=()=>(e,t,r,n)=>{let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(i+2>o||92!==e.src.charCodeAt(i)||91!==e.src.charCodeAt(i+1))return!1;if(n)return!0;let s,a=e.skipSpacesBack(o,i),l=i+2,u=!1;a-l>=2&&93===e.src.charCodeAt(a-1)&&92===e.src.charCodeAt(a-2)?(s=e.src.slice(l,a-2),u=!0):s=e.src.slice(l,o);let c=t,f="";for(;!(u||(c++,c>=r||(l=e.bMarks[c]+e.tShift[c],o=e.eMarks[c],l<o&&e.tShift[c]<e.blkIndent)));)a=e.skipSpacesBack(o,l),a-l>=2&&93===e.src.charCodeAt(a-1)&&92===e.src.charCodeAt(a-2)&&(f=e.src.slice(l,a-2).trimEnd(),u=!0);if(!u)return!1;e.line=c+1;let p=e.push("math_block","math",0);return p.block=!0,p.content=(s?`${s}\n`:"")+e.getLines(t+1,c,e.tShift[t],!0)+(f?`${f}\n`:""),p.map=[t,e.line],p.markup=t$6,!0},l={alt:["paragraph","reference","blockquote","list"]},u=(e,t)=>{if("function"!=typeof t?.render)throw TypeError('[@mdit/plugin-tex]: "render" option should be a function');let{allowInlineWithSpace:r=!1,mathFence:n=!1,delimiters:i="dollars",render:o}=t;if(n){let t=e.renderer.rules.fence;e.renderer.rules.fence=(e,r,n,i,s)=>{let a=e[r];return"math"===a.info.trim()?o(a.content,!0,i):t(e,r,n,i,s)}}("dollars"===i||"all"===i)&&(e.inline.ruler.after("escape","math_inline_dollar",a$2(r)),e.block.ruler.after("blockquote","math_block_dollar",s,l)),("brackets"===i||"all"===i)&&(e.inline.ruler.before("escape","math_inline_bracket",o$2()),e.block.ruler.after("blockquote","math_block_bracket",c(),l)),e.renderer.rules.math_inline=(e,t,r,n)=>o(e[t].content,!1,n),e.renderer.rules.math_block=(e,t,r,n)=>o(e[t].content,!0,n)},i$1=(e,t,r)=>{let n;try{n=renderToString(e,t)}catch(i){if(!(i instanceof ParseError))throw i;console.error(i),n=`<span class='katex-error' title='${r$5(i.toString())}'>${r$5(e)}</span>`}return r?.(n,!1)??n},a$1=(e,t,r)=>{let n;try{n=`<p class='katex-block'>${renderToString(e,t)}</p>\n`}catch(i){if(!(i instanceof ParseError))throw i;console.error(i),n=`<p class='katex-block katex-error' title='${r$5(i.toString())}'>${r$5(e)}</p>\n`}return r?.(n,!0)??n},o$1=(e,{allowInlineWithSpace:t=!1,delimiters:r,mathFence:n,logger:i=e=>"newLineInDisplayMode"===e?"ignore":"warn",transformer:o,...s}={})=>{let a=Object.assign({macros:{},throwOnError:!1},s);e.use(u,{allowInlineWithSpace:t,delimiters:r,mathFence:n,render:(e,t,r)=>{let n=Object.assign({},a,{strict:(e,t,n)=>i(e,t,n,r)??"ignore",displayMode:t});return t?a$1(e,n,o):i$1(e,n,o)}})},e$3=(e,t)=>{let r=e.pos,n=e.src.charCodeAt(r);if(t||61!==n)return!1;let i=e.scanDelims(e.pos,!0),o=i.length;if(o<2)return!1;let s=String.fromCharCode(n);if(o%2){e.push("text","",0).content=s,o--}for(let a=0;a<o;a+=2){e.push("text","",0).content=s+s,(i.can_open||i.can_close)&&e.delimiters.push({marker:61,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0},t$5=(e,t)=>{let r,n=[],i=t.length;for(let o=0;o<i;o++){let i=t[o];if(61===i.marker&&-1!==i.end){let o=t[i.end];r=e.tokens[i.token],r.type="mark_open",r.tag="mark",r.nesting=1,r.markup="==",r.content="",r=e.tokens[o.token],r.type="mark_close",r.tag="mark",r.nesting=-1,r.markup="==",r.content="","text"===e.tokens[o.token-1].type&&"="===e.tokens[o.token-1].content&&n.push(o.token-1)}}for(;n.length>0;){let t=n.pop(),i=t+1;for(;i<e.tokens.length&&"mark_close"===e.tokens[i].type;)i++;i--,t!==i&&(r=e.tokens[i],e.tokens[i]=e.tokens[t],e.tokens[t]=r)}},n$4=e=>{e.inline.ruler.before("emphasis","mark",e$3),e.inline.ruler2.before("emphasis","mark",e=>{t$5(e,e.delimiters);let t=e.tokens_meta,r=t.length;if(0===r)return!0;for(let n=0;n<r;n++){let r=t[n];r?.delimiters.length&&t$5(e,r.delimiters)}return!0})},e$2=(e,t)=>{let r,n=e.pos,i=e.posMax;if(t||123!==e.src.charCodeAt(n)||n+4>=i)return!1;e.pos=n+1;let o=0,s=0;for(;e.pos<i;){if(o){if(125===e.src.charCodeAt(e.pos)&&92!==e.src.charCodeAt(e.pos-1)){s=e.pos;break}}else 58===e.src.charCodeAt(e.pos)&&92!==e.src.charCodeAt(e.pos-1)&&(o=e.pos);e.pos++}if(!s||n+1===e.pos)return e.pos=n,!1;e.posMax=e.pos,e.pos=n+1,e.push("ruby_open","ruby",1).markup="{";let a=e.src.slice(n+1,o),l=e.src.slice(o+1,s),u=a.split(""),c=l.split("|");return u.length===c.length?u.forEach((t,n)=>{e.md.inline.parse(t,e.md,e.env,r=[]),e.tokens.push(...r),e.push("rt_open","rt",1),e.md.inline.parse(c[n],e.md,e.env,r=[]),e.tokens.push(...r),e.push("rt_close","rt",-1)}):(e.md.inline.parse(a,e.md,e.env,r=[]),e.tokens.push(...r),e.push("rt_open","rt",1),e.md.inline.parse(l,e.md,e.env,r=[]),e.tokens.push(...r),e.push("rt_close","rt",-1)),e.push("ruby_close","ruby",-1).markup="}",e.pos=e.posMax+1,e.posMax=i,!0},t$4=e=>{e.inline.ruler.before("text","ruby",e$2)},e$1=[["class","spoiler"],["tabindex","-1"]],t$3=(e,t)=>{let r=e.pos,n=e.src.charCodeAt(r);if(t||33!==n)return!1;let i=e.scanDelims(e.pos,!0),o=i.length;if(o<2)return!1;let s=String.fromCharCode(n);if(o%2){e.push("text","",0).content=s,o--}for(let a=0;a<o;a+=2){e.push("text","",0).content=s+s,(i.can_open||i.can_close)&&e.delimiters.push({marker:33,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0},n$3=(e,t,r,n)=>{let i,o=[],s=t.length;for(let a=0;a<s;a++){let s=t[a];if(33===s.marker&&-1!==s.end){let a=t[s.end];i=e.tokens[s.token],i.type="spoiler_open",i.tag=r,i.nesting=1,i.markup="!!",i.attrs=n,i.content="",i=e.tokens[a.token],i.type="spoiler_close",i.tag=r,i.nesting=-1,i.markup="!!",i.content="","text"===e.tokens[a.token-1].type&&"!"===e.tokens[a.token-1].content&&o.push(a.token-1)}}for(;o.length>0;){let t=o.pop(),r=t+1;for(;r<e.tokens.length&&"spoiler_close"===e.tokens[r].type;)r++;r--,t!==r&&(i=e.tokens[r],e.tokens[r]=e.tokens[t],e.tokens[t]=i)}},r$3=(e,t)=>{let{tag:r="span",attrs:n=e$1}=t??{};e.inline.ruler.before("emphasis","spoiler",t$3),e.inline.ruler2.before("emphasis","spoiler",e=>{e.delimiters.length>0&&n$3(e,e.delimiters,r,n);let t=e.tokens_meta,i=t.length;if(0===i)return!0;for(let o=0;o<i;o++){let i=t[o];i?.delimiters.length&&n$3(e,i.delimiters,r,n)}return!0})},t$2=/(^|[^\\])(\\\\)*\s/u,n$2=(e,t)=>{let r=e.posMax,n=e.pos;if(126!==e.src.charCodeAt(n)||t||n+2>=r)return!1;e.pos=n+1;let i=!1;for(;e.pos<r;){if(126===e.src.charCodeAt(e.pos)){i=!0;break}e.md.inline.skipToken(e)}if(!i||n+1===e.pos)return e.pos=n,!1;let o=e.src.slice(n+1,e.pos);return t$2.test(o)?(e.pos=n,!1):(e.posMax=e.pos,e.pos=n+1,e.push("sub_open","sub",1).markup="~",e.push("text","",0).content=o.replace(o$3,"$1"),e.push("sub_close","sub",-1).markup="~",e.pos=e.posMax+1,e.posMax=r,!0)},r$2=e=>{e.inline.ruler.after("emphasis","sub",n$2)},t$1=/(^|[^\\])(\\\\)*\s/u,n$1=(e,t)=>{let r=e.posMax,n=e.pos;if(94!==e.src.charCodeAt(n)||t||n+2>=r)return!1;e.pos=n+1;let i=!1;for(;e.pos<r;){if(94===e.src.charCodeAt(e.pos)){i=!0;break}e.md.inline.skipToken(e)}if(!i||n+1===e.pos)return e.pos=n,!1;let o=e.src.slice(n+1,e.pos);return t$1.test(o)?(e.pos=n,!1):(e.posMax=e.pos,e.pos=n+1,e.push("sup_open","sup",1).markup="^",e.push("text","",0).content=o.replace(o$3,"$1"),e.push("sup_close","sup",-1).markup="^",e.pos=e.posMax+1,e.posMax=r,!0)},r$1=e=>{e.inline.ruler.after("emphasis","sup",n$1)},e=(e,t,r)=>{let n=e.attrIndex(t),i=[t,r];n<0?e.attrPush(i):e.attrs[n]=i},t=(e,t)=>{let r=e[t].level-1;for(let n=t-1;n>=0;n--)if(e[n].level===r)return n;return-1},n=e=>"inline"===e.type,r=e=>"paragraph_open"===e.type,i=e=>"list_item_open"===e.type,a=e=>{let t=e.content;if(t.length<4||91!==t.charCodeAt(0)||93!==t.charCodeAt(2))return!1;let r=t.charCodeAt(3);if(32!==r&&160!==r)return!1;let n=t.charCodeAt(1);return 120===n||88===n?"checked":32===n||160===n},o=(o,{disabled:s=!0,label:l=!0,containerClass:u="task-list-container",itemClass:c="task-list-item",checkboxClass:f="task-list-item-checkbox",labelClass:p="task-list-item-label"}={})=>{o.core.ruler.after("inline","task_list",o=>{let h=o.tokens;o.env.tasklistId||=0;for(let d=2;d<h.length;d++){let g=h[d];if(!n(g)||!r(h[d-1])||!i(h[d-2]))continue;let m=a(g);if(!1===m)continue;g.children??=[],g.children[0].content=g.children[0].content.slice(3);let y="task-item-"+o.env.tasklistId++;if(l){let e=new o.Token("label_open","label",1);e.attrs=[["class",p],["for",y]],g.children.unshift(e),g.children.push(new o.Token("label_close","label",-1))}let b=new o.Token("checkbox_input","input",0);b.attrs=[["type","checkbox"],["class",f],["id",y]],"checked"===m&&b.attrs.push(["checked","checked"]),s&&b.attrs.push(["disabled","disabled"]),g.children.unshift(b),e(h[d-2],"class",c),e(h[t(h,d-2)],"class",u)}return!0})};export{n$9 as a,bufferExports as b,n$7 as c,e$6 as d,e$a as e,t$8 as f,f as g,n$6 as h,n$4 as i,t$4 as j,r$3 as k,r$2 as l,r$1 as m,n$c as n,o$1 as o,p,o as q,r$7 as r,frontmatterPlugin as s,t$e as t,tocPlugin as u,componentPlugin as v,sfcPlugin as w,y};
|
|
1
|
+
import{g as getAugmentedNamespace,a as getDefaultExportFromCjs}from"./ajv-EW6k27gv.js";import{i as isSpace}from"./markdown-I8FIHdDk.js";import{r as renderToString,P as ParseError}from"./katex-v7CqoiPP.js";const attr_name="[a-zA-Z_:@][a-zA-Z0-9:._-]*",attribute="(?:\\s+"+attr_name+"(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)",open_tag="<[A-Za-z][A-Za-z0-9\\-]*"+attribute+"*\\s*\\/?>",HTML_TAG_RE=new RegExp("^(?:"+open_tag+"|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),HTML_OPEN_CLOSE_TAG_RE=new RegExp("^(?:"+open_tag+"|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>)"),HTML_SELF_CLOSING_TAG_RE=new RegExp("^<[A-Za-z][A-Za-z0-9\\-]*"+attribute+"*\\s*\\/>"),HTML_OPEN_AND_CLOSE_TAG_IN_THE_SAME_LINE_RE=new RegExp("^<([A-Za-z][A-Za-z0-9\\-]*)"+attribute+"*\\s*>.*<\\/\\1\\s*>"),TAGS_BLOCK=["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"],TAGS_INLINE=["a","abbr","acronym","audio","b","bdi","bdo","big","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","label","map","mark","meter","noscript","object","output","picture","progress","q","ruby","s","samp","script","select","slot","small","span","strong","sub","sup","svg","template","textarea","time","u","tt","var","video","wbr"],TAGS_VUE_RESERVED=["template","component","transition","transition-group","keep-alive","slot","teleport"],createHtmlSequences=({blockTags:e,inlineTags:t})=>{const r=[...e,...TAGS_BLOCK],n=[...t,...TAGS_INLINE.filter(e=>!TAGS_VUE_RESERVED.includes(e))];return[[/^<(script|pre|style)(?=(\s|>|$))/i,/<\/(script|pre|style)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+r.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp("^</?(?!("+n.join("|")+")(?![\\w-]))[A-Za-z][A-Za-z0-9\\-]*(?=(\\s|/?>|$))"),/^$/,!0],[new RegExp(HTML_OPEN_CLOSE_TAG_RE.source+"\\s*$"),/^$/,!1]]},createHtmlBlockRule=e=>{const t=createHtmlSequences(e);return(e,r,n,i)=>{let o,s,a,u=e.bMarks[r]+e.tShift[r],l=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(u))return!1;for(a=e.src.slice(u,l),o=0;o<t.length&&!t[o][0].test(a);o++);if(o===t.length)return!1;if(i)return t[o][2];if(6===o){const t=a.match(HTML_SELF_CLOSING_TAG_RE)??a.match(HTML_OPEN_AND_CLOSE_TAG_IN_THE_SAME_LINE_RE);if(t){e.line=r+1;let n=e.push("html_inline","",0);return n.content=t[0],n.map=[r,e.line],n=e.push("inline","",0),n.content=a.slice(t[0].length),n.map=[r,e.line],n.children=[],!0}}if(s=r+1,!t[o][1].test(a))for(;s<n&&!(e.sCount[s]<e.blkIndent);s++)if(u=e.bMarks[s]+e.tShift[s],l=e.eMarks[s],a=e.src.slice(u,l),t[o][1].test(a)){0!==a.length&&s++;break}e.line=s;const c=e.push("html_block","",0);return c.map=[r,s],c.content=e.getLines(r,s,e.blkIndent,!0),!0}},isLetter=e=>{const t=32|e;return t>=97&&t<=122},htmlInlineRule=(e,t)=>{const{pos:r}=e;if(!e.md.options.html)return!1;const n=e.posMax;if(60!==e.src.charCodeAt(r)||r+2>=n)return!1;const i=e.src.charCodeAt(r+1);if(33!==i&&63!==i&&47!==i&&!isLetter(i))return!1;const o=e.src.slice(r).match(HTML_TAG_RE);if(!o)return!1;if(!t){e.push("html_inline","",0).content=e.src.slice(r,r+o[0].length)}return e.pos+=o[0].length,!0},componentPlugin=(e,{blockTags:t=[],inlineTags:r=[]}={})=>{const n=createHtmlBlockRule({blockTags:t,inlineTags:r});e.block.ruler.at("html_block",n,{alt:["paragraph","reference","blockquote"]}),e.inline.ruler.at("html_inline",htmlInlineRule)},__viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var kindOf,hasRequiredKindOf,isExtendable,hasRequiredIsExtendable,extendShallow,hasRequiredExtendShallow,sectionMatter,hasRequiredSectionMatter;function requireKindOf(){if(hasRequiredKindOf)return kindOf;hasRequiredKindOf=1;var e=Object.prototype.toString;function t(e){return"function"==typeof e.constructor?e.constructor.name:null}return kindOf=function(r){if(void 0===r)return"undefined";if(null===r)return"null";var n=typeof r;if("boolean"===n)return"boolean";if("string"===n)return"string";if("number"===n)return"number";if("symbol"===n)return"symbol";if("function"===n)return"GeneratorFunction"===t(r)?"generatorfunction":"function";if(function(e){return Array.isArray?Array.isArray(e):e instanceof Array}(r))return"array";if(function(e){if(e.constructor&&"function"==typeof e.constructor.isBuffer)return e.constructor.isBuffer(e);return!1}(r))return"buffer";if(function(e){try{if("number"==typeof e.length&&"function"==typeof e.callee)return!0}catch(t){if(-1!==t.message.indexOf("callee"))return!0}return!1}(r))return"arguments";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(r))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(r))return"error";if(function(e){return e instanceof RegExp||"string"==typeof e.flags&&"boolean"==typeof e.ignoreCase&&"boolean"==typeof e.multiline&&"boolean"==typeof e.global}(r))return"regexp";switch(t(r)){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(function(e){return"function"==typeof e.throw&&"function"==typeof e.return&&"function"==typeof e.next}(r))return"generator";switch(n=e.call(r)){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 n.slice(8,-1).toLowerCase().replace(/\s/g,"")}}function requireIsExtendable(){return hasRequiredIsExtendable?isExtendable:(hasRequiredIsExtendable=1,isExtendable=function(e){return null!=e&&("object"==typeof e||"function"==typeof e)})}function requireExtendShallow(){if(hasRequiredExtendShallow)return extendShallow;hasRequiredExtendShallow=1;var e=requireIsExtendable();function t(e,t){for(var n in t)r(t,n)&&(e[n]=t[n])}function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}return extendShallow=function(r){e(r)||(r={});for(var n=arguments.length,i=1;i<n;i++){var o=arguments[i];e(o)&&t(r,o)}return r},extendShallow}function requireSectionMatter(){if(hasRequiredSectionMatter)return sectionMatter;hasRequiredSectionMatter=1;var e=requireKindOf(),t=requireExtendShallow();function r(e,t){return e.slice(0,t.length)===t&&e.charAt(t.length+1)!==t.slice(-1)}function n(e){return e}return sectionMatter=function(i,o){"function"==typeof o&&(o={parse:o});var s=function(t){"object"!==e(t)&&(t={content:t});if("string"!=typeof t.content&&!function(e){if(e&&e.constructor&&"function"==typeof e.constructor.isBuffer)return e.constructor.isBuffer(e);return!1}(t.content))throw new TypeError("expected a buffer or string");return t.content=t.content.toString(),t.sections=[],t}(i),a=t({},{section_delimiter:"---",parse:n},o),u=a.section_delimiter,l=s.content.split(/\r?\n/),c=null,f={key:"",data:"",content:""},p=[],h=[];function d(e){s.content=e,c=[],p=[]}function g(e){h.length&&(f.key=function(e,t){return e?e.slice(t.length).trim():""}(h[0],u),f.content=e,a.parse(f,c),c.push(f),f={key:"",data:"",content:""},p=[],h=[])}for(var m=0;m<l.length;m++){var y=l[m],b=h.length,k=y.trim();if(r(k,u)){if(3===k.length&&0!==m){if(0===b||2===b){p.push(y);continue}h.push(k),f.data=p.join("\n"),p=[];continue}null===c&&d(p.join("\n")),2===b&&g(p.join("\n")),h.push(k)}else p.push(y)}return null===c?d(p.join("\n")):g(p.join("\n")),s.sections=c,s}}var engines={exports:{}},jsYaml$1={},loader={},common={},hasRequiredCommon,exception,hasRequiredException,mark,hasRequiredMark,type,hasRequiredType,schema,hasRequiredSchema,str,hasRequiredStr,seq,hasRequiredSeq,map,hasRequiredMap,failsafe,hasRequiredFailsafe,_null,hasRequired_null,bool,hasRequiredBool,int,hasRequiredInt,float,hasRequiredFloat,json,hasRequiredJson,core,hasRequiredCore,timestamp,hasRequiredTimestamp,merge,hasRequiredMerge,binary,hasRequiredBinary,omap,hasRequiredOmap,pairs,hasRequiredPairs,set,hasRequiredSet,default_safe,hasRequiredDefault_safe,_undefined,hasRequired_undefined,regexp,hasRequiredRegexp,_function,hasRequired_function,default_full,hasRequiredDefault_full,hasRequiredLoader;function requireCommon(){if(hasRequiredCommon)return common;function e(e){return null==e}return hasRequiredCommon=1,common.isNothing=e,common.isObject=function(e){return"object"==typeof e&&null!==e},common.toArray=function(t){return Array.isArray(t)?t:e(t)?[]:[t]},common.repeat=function(e,t){var r,n="";for(r=0;r<t;r+=1)n+=e;return n},common.isNegativeZero=function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},common.extend=function(e,t){var r,n,i,o;if(t)for(r=0,n=(o=Object.keys(t)).length;r<n;r+=1)e[i=o[r]]=t[i];return e},common}function requireException(){if(hasRequiredException)return exception;function e(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}return hasRequiredException=1,e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e.prototype.toString=function(e){var t=this.name+": ";return t+=this.reason||"(unknown reason)",!e&&this.mark&&(t+=" "+this.mark.toString()),t},exception=e}function requireMark(){if(hasRequiredMark)return mark;hasRequiredMark=1;var e=requireCommon();function t(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}return t.prototype.getSnippet=function(t,r){var n,i,o,s,a;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&-1==="\0\r\n
\u2028\u2029".indexOf(this.buffer.charAt(i-1));)if(i-=1,this.position-i>r/2-1){n=" ... ",i+=5;break}for(o="",s=this.position;s<this.buffer.length&&-1==="\0\r\n
\u2028\u2029".indexOf(this.buffer.charAt(s));)if((s+=1)-this.position>r/2-1){o=" ... ",s-=5;break}return a=this.buffer.slice(i,s),e.repeat(" ",t)+n+a+o+"\n"+e.repeat(" ",t+this.position-i+n.length)+"^"},t.prototype.toString=function(e){var t,r="";return this.name&&(r+='in "'+this.name+'" '),r+="at line "+(this.line+1)+", column "+(this.column+1),e||(t=this.getSnippet())&&(r+=":\n"+t),r},mark=t}function requireType(){if(hasRequiredType)return type;hasRequiredType=1;var e=requireException(),t=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],r=["scalar","sequence","mapping"];return type=function(n,i){var o,s;if(i=i||{},Object.keys(i).forEach(function(r){if(-1===t.indexOf(r))throw new e('Unknown option "'+r+'" is met in definition of "'+n+'" YAML type.')}),this.tag=n,this.kind=i.kind||null,this.resolve=i.resolve||function(){return!0},this.construct=i.construct||function(e){return e},this.instanceOf=i.instanceOf||null,this.predicate=i.predicate||null,this.represent=i.represent||null,this.defaultStyle=i.defaultStyle||null,this.styleAliases=(o=i.styleAliases||null,s={},null!==o&&Object.keys(o).forEach(function(e){o[e].forEach(function(t){s[String(t)]=e})}),s),-1===r.indexOf(this.kind))throw new e('Unknown kind "'+this.kind+'" is specified for "'+n+'" YAML type.')}}function requireSchema(){if(hasRequiredSchema)return schema;hasRequiredSchema=1;var e=requireCommon(),t=requireException(),r=requireType();function n(e,t,r){var i=[];return e.include.forEach(function(e){r=n(e,t,r)}),e[t].forEach(function(e){r.forEach(function(t,r){t.tag===e.tag&&t.kind===e.kind&&i.push(r)}),r.push(e)}),r.filter(function(e,t){return-1===i.indexOf(t)})}function i(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(e){if(e.loadKind&&"scalar"!==e.loadKind)throw new t("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=n(this,"implicit",[]),this.compiledExplicit=n(this,"explicit",[]),this.compiledTypeMap=function(){var e,t,r={scalar:{},sequence:{},mapping:{},fallback:{}};function n(e){r[e.kind][e.tag]=r.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(n);return r}(this.compiledImplicit,this.compiledExplicit)}return i.DEFAULT=null,i.create=function(){var n,o;switch(arguments.length){case 1:n=i.DEFAULT,o=arguments[0];break;case 2:n=arguments[0],o=arguments[1];break;default:throw new t("Wrong number of arguments for Schema.create function")}if(n=e.toArray(n),o=e.toArray(o),!n.every(function(e){return e instanceof i}))throw new t("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!o.every(function(e){return e instanceof r}))throw new t("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new i({include:n,explicit:o})},schema=i}function requireStr(){if(hasRequiredStr)return str;hasRequiredStr=1;var e=requireType();return str=new e("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})}function requireSeq(){if(hasRequiredSeq)return seq;hasRequiredSeq=1;var e=requireType();return seq=new e("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})}function requireMap(){if(hasRequiredMap)return map;hasRequiredMap=1;var e=requireType();return map=new e("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})}function requireFailsafe(){if(hasRequiredFailsafe)return failsafe;hasRequiredFailsafe=1;var e=requireSchema();return failsafe=new e({explicit:[requireStr(),requireSeq(),requireMap()]})}function require_null(){if(hasRequired_null)return _null;hasRequired_null=1;var e=requireType();return _null=new e("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})}function requireBool(){if(hasRequiredBool)return bool;hasRequiredBool=1;var e=requireType();return bool=new e("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})}function requireInt(){if(hasRequiredInt)return int;hasRequiredInt=1;var e=requireCommon(),t=requireType();function r(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function n(e){return 48<=e&&e<=55}function i(e){return 48<=e&&e<=57}return int=new t("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,o=e.length,s=0,a=!1;if(!o)return!1;if("-"!==(t=e[s])&&"+"!==t||(t=e[++s]),"0"===t){if(s+1===o)return!0;if("b"===(t=e[++s])){for(s++;s<o;s++)if("_"!==(t=e[s])){if("0"!==t&&"1"!==t)return!1;a=!0}return a&&"_"!==t}if("x"===t){for(s++;s<o;s++)if("_"!==(t=e[s])){if(!r(e.charCodeAt(s)))return!1;a=!0}return a&&"_"!==t}for(;s<o;s++)if("_"!==(t=e[s])){if(!n(e.charCodeAt(s)))return!1;a=!0}return a&&"_"!==t}if("_"===t)return!1;for(;s<o;s++)if("_"!==(t=e[s])){if(":"===t)break;if(!i(e.charCodeAt(s)))return!1;a=!0}return!(!a||"_"===t)&&(":"!==t||/^(:[0-5]?[0-9])+$/.test(e.slice(s)))},construct:function(e){var t,r,n=e,i=1,o=[];return-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),"-"!==(t=n[0])&&"+"!==t||("-"===t&&(i=-1),t=(n=n.slice(1))[0]),"0"===n?0:"0"===t?"b"===n[1]?i*parseInt(n.slice(2),2):"x"===n[1]?i*parseInt(n,16):i*parseInt(n,8):-1!==n.indexOf(":")?(n.split(":").forEach(function(e){o.unshift(parseInt(e,10))}),n=0,r=1,o.forEach(function(e){n+=e*r,r*=60}),i*n):i*parseInt(n,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!e.isNegativeZero(t)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})}function requireFloat(){if(hasRequiredFloat)return float;hasRequiredFloat=1;var e=requireCommon(),t=requireType(),r=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))$");var n=/^[-+]?[0-9]+e/;return float=new t("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!r.test(e)||"_"===e[e.length-1])},construct:function(e){var t,r,n,i;return r="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(e){i.unshift(parseFloat(e,10))}),t=0,n=1,i.forEach(function(e){t+=e*n,n*=60}),r*t):r*parseFloat(t,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||e.isNegativeZero(t))},represent:function(t,r){var i;if(isNaN(t))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(t))return"-0.0";return i=t.toString(10),n.test(i)?i.replace("e",".e"):i},defaultStyle:"lowercase"})}function requireJson(){if(hasRequiredJson)return json;hasRequiredJson=1;var e=requireSchema();return json=new e({include:[requireFailsafe()],implicit:[require_null(),requireBool(),requireInt(),requireFloat()]})}function requireCore(){if(hasRequiredCore)return core;hasRequiredCore=1;var e=requireSchema();return core=new e({include:[requireJson()]})}function requireTimestamp(){if(hasRequiredTimestamp)return timestamp;hasRequiredTimestamp=1;var e=requireType(),t=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),r=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]))?))?$");return timestamp=new e("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==t.exec(e)||null!==r.exec(e))},construct:function(e){var n,i,o,s,a,u,l,c,f=0,p=null;if(null===(n=t.exec(e))&&(n=r.exec(e)),null===n)throw new Error("Date resolve error");if(i=+n[1],o=+n[2]-1,s=+n[3],!n[4])return new Date(Date.UTC(i,o,s));if(a=+n[4],u=+n[5],l=+n[6],n[7]){for(f=n[7].slice(0,3);f.length<3;)f+="0";f=+f}return n[9]&&(p=6e4*(60*+n[10]+ +(n[11]||0)),"-"===n[9]&&(p=-p)),c=new Date(Date.UTC(i,o,s,a,u,l,f)),p&&c.setTime(c.getTime()-p),c},instanceOf:Date,represent:function(e){return e.toISOString()}})}function requireMerge(){if(hasRequiredMerge)return merge;hasRequiredMerge=1;var e=requireType();return merge=new e("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})}function commonjsRequire(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}function requireBinary(){if(hasRequiredBinary)return binary;var e;hasRequiredBinary=1;try{e=commonjsRequire("buffer").Buffer}catch(n){}var t=requireType(),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";return binary=new t("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,i=0,o=e.length,s=r;for(n=0;n<o;n++)if(!((t=s.indexOf(e.charAt(n)))>64)){if(t<0)return!1;i+=6}return i%8==0},construct:function(t){var n,i,o=t.replace(/[\r\n=]/g,""),s=o.length,a=r,u=0,l=[];for(n=0;n<s;n++)n%4==0&&n&&(l.push(u>>16&255),l.push(u>>8&255),l.push(255&u)),u=u<<6|a.indexOf(o.charAt(n));return 0===(i=s%4*6)?(l.push(u>>16&255),l.push(u>>8&255),l.push(255&u)):18===i?(l.push(u>>10&255),l.push(u>>2&255)):12===i&&l.push(u>>4&255),e?e.from?e.from(l):new e(l):l},predicate:function(t){return e&&e.isBuffer(t)},represent:function(e){var t,n,i="",o=0,s=e.length,a=r;for(t=0;t<s;t++)t%3==0&&t&&(i+=a[o>>18&63],i+=a[o>>12&63],i+=a[o>>6&63],i+=a[63&o]),o=(o<<8)+e[t];return 0===(n=s%3)?(i+=a[o>>18&63],i+=a[o>>12&63],i+=a[o>>6&63],i+=a[63&o]):2===n?(i+=a[o>>10&63],i+=a[o>>4&63],i+=a[o<<2&63],i+=a[64]):1===n&&(i+=a[o>>2&63],i+=a[o<<4&63],i+=a[64],i+=a[64]),i}})}function requireOmap(){if(hasRequiredOmap)return omap;hasRequiredOmap=1;var e=requireType(),t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;return omap=new e("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var n,i,o,s,a,u=[],l=e;for(n=0,i=l.length;n<i;n+=1){if(o=l[n],a=!1,"[object Object]"!==r.call(o))return!1;for(s in o)if(t.call(o,s)){if(a)return!1;a=!0}if(!a)return!1;if(-1!==u.indexOf(s))return!1;u.push(s)}return!0},construct:function(e){return null!==e?e:[]}})}function requirePairs(){if(hasRequiredPairs)return pairs;hasRequiredPairs=1;var e=requireType(),t=Object.prototype.toString;return pairs=new e("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var r,n,i,o,s,a=e;for(s=new Array(a.length),r=0,n=a.length;r<n;r+=1){if(i=a[r],"[object Object]"!==t.call(i))return!1;if(1!==(o=Object.keys(i)).length)return!1;s[r]=[o[0],i[o[0]]]}return!0},construct:function(e){if(null===e)return[];var t,r,n,i,o,s=e;for(o=new Array(s.length),t=0,r=s.length;t<r;t+=1)n=s[t],i=Object.keys(n),o[t]=[i[0],n[i[0]]];return o}})}function requireSet(){if(hasRequiredSet)return set;hasRequiredSet=1;var e=requireType(),t=Object.prototype.hasOwnProperty;return set=new e("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var r,n=e;for(r in n)if(t.call(n,r)&&null!==n[r])return!1;return!0},construct:function(e){return null!==e?e:{}}})}function requireDefault_safe(){if(hasRequiredDefault_safe)return default_safe;hasRequiredDefault_safe=1;var e=requireSchema();return default_safe=new e({include:[requireCore()],implicit:[requireTimestamp(),requireMerge()],explicit:[requireBinary(),requireOmap(),requirePairs(),requireSet()]})}function require_undefined(){if(hasRequired_undefined)return _undefined;hasRequired_undefined=1;var e=requireType();return _undefined=new e("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:function(){return!0},construct:function(){},predicate:function(e){return void 0===e},represent:function(){return""}})}function requireRegexp(){if(hasRequiredRegexp)return regexp;hasRequiredRegexp=1;var e=requireType();return regexp=new e("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:function(e){if(null===e)return!1;if(0===e.length)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";if("/"===t[0]){if(r&&(n=r[1]),n.length>3)return!1;if("/"!==t[t.length-n.length-1])return!1}return!0},construct:function(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return"/"===t[0]&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)},predicate:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},represent:function(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}})}function require_function(){if(hasRequired_function)return _function;var e;hasRequired_function=1;try{e=commonjsRequire("esprima")}catch(r){"undefined"!=typeof window&&(e=window.esprima)}var t=requireType();return _function=new t("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function(t){if(null===t)return!1;try{var r="("+t+")",n=e.parse(r,{range:!0});return"Program"===n.type&&1===n.body.length&&"ExpressionStatement"===n.body[0].type&&("ArrowFunctionExpression"===n.body[0].expression.type||"FunctionExpression"===n.body[0].expression.type)}catch(i){return!1}},construct:function(t){var r,n="("+t+")",i=e.parse(n,{range:!0}),o=[];if("Program"!==i.type||1!==i.body.length||"ExpressionStatement"!==i.body[0].type||"ArrowFunctionExpression"!==i.body[0].expression.type&&"FunctionExpression"!==i.body[0].expression.type)throw new Error("Failed to resolve function");return i.body[0].expression.params.forEach(function(e){o.push(e.name)}),r=i.body[0].expression.body.range,"BlockStatement"===i.body[0].expression.body.type?new Function(o,n.slice(r[0]+1,r[1]-1)):new Function(o,"return "+n.slice(r[0],r[1]))},predicate:function(e){return"[object Function]"===Object.prototype.toString.call(e)},represent:function(e){return e.toString()}})}function requireDefault_full(){if(hasRequiredDefault_full)return default_full;hasRequiredDefault_full=1;var e=requireSchema();return default_full=e.DEFAULT=new e({include:[requireDefault_safe()],explicit:[require_undefined(),requireRegexp(),require_function()]})}function requireLoader(){if(hasRequiredLoader)return loader;hasRequiredLoader=1;var e=requireCommon(),t=requireException(),r=requireMark(),n=requireDefault_safe(),i=requireDefault_full(),o=Object.prototype.hasOwnProperty,s=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,a=/[\x85\u2028\u2029]/,u=/[,\[\]\{\}]/,l=/^(?:!|!!|![a-z\-]+!)$/i,c=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function f(e){return Object.prototype.toString.call(e)}function p(e){return 10===e||13===e}function h(e){return 9===e||32===e}function d(e){return 9===e||32===e||10===e||13===e}function g(e){return 44===e||91===e||93===e||123===e||125===e}function m(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function y(e){return 120===e?2:117===e?4:85===e?8:0}function b(e){return 48<=e&&e<=57?e-48:-1}function k(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"
":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function A(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}function w(e,t,r){"__proto__"===t?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}for(var E=new Array(256),_=new Array(256),q=0;q<256;q++)E[q]=k(q)?1:0,_[q]=k(q);function v(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||i,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function x(e,n){return new t(n,new r(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function C(e,t){throw x(e,t)}function S(e,t){e.onWarning&&e.onWarning.call(null,x(e,t))}var $={YAML:function(e,t,r){var n,i,o;null!==e.version&&C(e,"duplication of %YAML directive"),1!==r.length&&C(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&C(e,"ill-formed argument of the YAML directive"),i=parseInt(n[1],10),o=parseInt(n[2],10),1!==i&&C(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&S(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,i;2!==r.length&&C(e,"TAG directive accepts exactly two arguments"),n=r[0],i=r[1],l.test(n)||C(e,"ill-formed tag handle (first argument) of the TAG directive"),o.call(e.tagMap,n)&&C(e,'there is a previously declared suffix for "'+n+'" tag handle'),c.test(i)||C(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[n]=i}};function R(e,t,r,n){var i,o,a,u;if(t<r){if(u=e.input.slice(t,r),n)for(i=0,o=u.length;i<o;i+=1)9===(a=u.charCodeAt(i))||32<=a&&a<=1114111||C(e,"expected valid JSON character");else s.test(u)&&C(e,"the stream contains non-printable characters");e.result+=u}}function T(t,r,n,i){var s,a,u,l;for(e.isObject(n)||C(t,"cannot merge mappings; the provided source object is unacceptable"),u=0,l=(s=Object.keys(n)).length;u<l;u+=1)a=s[u],o.call(r,a)||(w(r,a,n[a]),i[a]=!0)}function I(e,t,r,n,i,s,a,u){var l,c;if(Array.isArray(i))for(l=0,c=(i=Array.prototype.slice.call(i)).length;l<c;l+=1)Array.isArray(i[l])&&C(e,"nested arrays are not supported inside keys"),"object"==typeof i&&"[object Object]"===f(i[l])&&(i[l]="[object Object]");if("object"==typeof i&&"[object Object]"===f(i)&&(i="[object Object]"),i=String(i),null===t&&(t={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(s))for(l=0,c=s.length;l<c;l+=1)T(e,t,s[l],r);else T(e,t,s,r);else e.json||o.call(r,i)||!o.call(t,i)||(e.line=a||e.line,e.position=u||e.position,C(e,"duplicated mapping key")),w(t,i,s),delete r[i];return t}function B(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):C(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function M(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);0!==i;){for(;h(i);)i=e.input.charCodeAt(++e.position);if(t&&35===i)do{i=e.input.charCodeAt(++e.position)}while(10!==i&&13!==i&&0!==i);if(!p(i))break;for(B(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position)}return-1!==r&&0!==n&&e.lineIndent<r&&S(e,"deficient indentation"),n}function O(e){var t,r=e.position;return!(45!==(t=e.input.charCodeAt(r))&&46!==t||t!==e.input.charCodeAt(r+1)||t!==e.input.charCodeAt(r+2)||(r+=3,0!==(t=e.input.charCodeAt(r))&&!d(t)))}function j(t,r){1===r?t.result+=" ":r>1&&(t.result+=e.repeat("\n",r-1))}function L(e,t){var r,n,i=e.tag,o=e.anchor,s=[],a=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=s),n=e.input.charCodeAt(e.position);0!==n&&45===n&&d(e.input.charCodeAt(e.position+1));)if(a=!0,e.position++,M(e,!0,-1)&&e.lineIndent<=t)s.push(null),n=e.input.charCodeAt(e.position);else if(r=e.line,U(e,t,3,!1,!0),s.push(e.result),M(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)C(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!a&&(e.tag=i,e.anchor=o,e.kind="sequence",e.result=s,!0)}function F(e){var t,r,n,i,s=!1,a=!1;if(33!==(i=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&C(e,"duplication of a tag property"),60===(i=e.input.charCodeAt(++e.position))?(s=!0,i=e.input.charCodeAt(++e.position)):33===i?(a=!0,r="!!",i=e.input.charCodeAt(++e.position)):r="!",t=e.position,s){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&62!==i);e.position<e.length?(n=e.input.slice(t,e.position),i=e.input.charCodeAt(++e.position)):C(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==i&&!d(i);)33===i&&(a?C(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),l.test(r)||C(e,"named tag handle cannot contain such characters"),a=!0,t=e.position+1)),i=e.input.charCodeAt(++e.position);n=e.input.slice(t,e.position),u.test(n)&&C(e,"tag suffix cannot contain flow indicator characters")}return n&&!c.test(n)&&C(e,"tag name cannot contain such characters: "+n),s?e.tag=n:o.call(e.tagMap,r)?e.tag=e.tagMap[r]+n:"!"===r?e.tag="!"+n:"!!"===r?e.tag="tag:yaml.org,2002:"+n:C(e,'undeclared tag handle "'+r+'"'),!0}function N(e){var t,r;if(38!==(r=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&C(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!d(r)&&!g(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&C(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function U(t,r,n,i,s){var a,u,l,c,f,k,w,q,v=1,x=!1,S=!1;if(null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,a=u=l=4===n||3===n,i&&M(t,!0,-1)&&(x=!0,t.lineIndent>r?v=1:t.lineIndent===r?v=0:t.lineIndent<r&&(v=-1)),1===v)for(;F(t)||N(t);)M(t,!0,-1)?(x=!0,l=a,t.lineIndent>r?v=1:t.lineIndent===r?v=0:t.lineIndent<r&&(v=-1)):l=!1;if(l&&(l=x||s),1!==v&&4!==n||(w=1===n||2===n?r:r+1,q=t.position-t.lineStart,1===v?l&&(L(t,q)||function(e,t,r){var n,i,o,s,a,u=e.tag,l=e.anchor,c={},f={},p=null,g=null,m=null,y=!1,b=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=c),a=e.input.charCodeAt(e.position);0!==a;){if(n=e.input.charCodeAt(e.position+1),o=e.line,s=e.position,63!==a&&58!==a||!d(n)){if(!U(e,r,2,!1,!0))break;if(e.line===o){for(a=e.input.charCodeAt(e.position);h(a);)a=e.input.charCodeAt(++e.position);if(58===a)d(a=e.input.charCodeAt(++e.position))||C(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(I(e,c,f,p,g,null),p=g=m=null),b=!0,y=!1,i=!1,p=e.tag,g=e.result;else{if(!b)return e.tag=u,e.anchor=l,!0;C(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!b)return e.tag=u,e.anchor=l,!0;C(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===a?(y&&(I(e,c,f,p,g,null),p=g=m=null),b=!0,y=!0,i=!0):y?(y=!1,i=!0):C(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,a=n;if((e.line===o||e.lineIndent>t)&&(U(e,t,4,!0,i)&&(y?g=e.result:m=e.result),y||(I(e,c,f,p,g,m,o,s),p=g=m=null),M(e,!0,-1),a=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==a)C(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&I(e,c,f,p,g,null),b&&(e.tag=u,e.anchor=l,e.kind="mapping",e.result=c),b}(t,q,w))||function(e,t){var r,n,i,o,s,a,u,l,c,f,p=!0,h=e.tag,g=e.anchor,m={};if(91===(f=e.input.charCodeAt(e.position)))i=93,a=!1,n=[];else{if(123!==f)return!1;i=125,a=!0,n={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=n),f=e.input.charCodeAt(++e.position);0!==f;){if(M(e,!0,t),(f=e.input.charCodeAt(e.position))===i)return e.position++,e.tag=h,e.anchor=g,e.kind=a?"mapping":"sequence",e.result=n,!0;p||C(e,"missed comma between flow collection entries"),c=null,o=s=!1,63===f&&d(e.input.charCodeAt(e.position+1))&&(o=s=!0,e.position++,M(e,!0,t)),r=e.line,U(e,t,1,!1,!0),l=e.tag,u=e.result,M(e,!0,t),f=e.input.charCodeAt(e.position),!s&&e.line!==r||58!==f||(o=!0,f=e.input.charCodeAt(++e.position),M(e,!0,t),U(e,t,1,!1,!0),c=e.result),a?I(e,n,m,l,u,c):o?n.push(I(e,null,m,l,u,c)):n.push(u),M(e,!0,t),44===(f=e.input.charCodeAt(e.position))?(p=!0,f=e.input.charCodeAt(++e.position)):p=!1}C(e,"unexpected end of the stream within a flow collection")}(t,w)?S=!0:(u&&function(t,r){var n,i,o,s,a=1,u=!1,l=!1,c=r,f=0,d=!1;if(124===(s=t.input.charCodeAt(t.position)))i=!1;else{if(62!==s)return!1;i=!0}for(t.kind="scalar",t.result="";0!==s;)if(43===(s=t.input.charCodeAt(++t.position))||45===s)1===a?a=43===s?3:2:C(t,"repeat of a chomping mode identifier");else{if(!((o=b(s))>=0))break;0===o?C(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?C(t,"repeat of an indentation width identifier"):(c=r+o-1,l=!0)}if(h(s)){do{s=t.input.charCodeAt(++t.position)}while(h(s));if(35===s)do{s=t.input.charCodeAt(++t.position)}while(!p(s)&&0!==s)}for(;0!==s;){for(B(t),t.lineIndent=0,s=t.input.charCodeAt(t.position);(!l||t.lineIndent<c)&&32===s;)t.lineIndent++,s=t.input.charCodeAt(++t.position);if(!l&&t.lineIndent>c&&(c=t.lineIndent),p(s))f++;else{if(t.lineIndent<c){3===a?t.result+=e.repeat("\n",u?1+f:f):1===a&&u&&(t.result+="\n");break}for(i?h(s)?(d=!0,t.result+=e.repeat("\n",u?1+f:f)):d?(d=!1,t.result+=e.repeat("\n",f+1)):0===f?u&&(t.result+=" "):t.result+=e.repeat("\n",f):t.result+=e.repeat("\n",u?1+f:f),u=!0,l=!0,f=0,n=t.position;!p(s)&&0!==s;)s=t.input.charCodeAt(++t.position);R(t,n,t.position,!1)}}return!0}(t,w)||function(e,t){var r,n,i;if(39!==(r=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;0!==(r=e.input.charCodeAt(e.position));)if(39===r){if(R(e,n,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;n=e.position,e.position++,i=e.position}else p(r)?(R(e,n,i,!0),j(e,M(e,!1,t)),n=i=e.position):e.position===e.lineStart&&O(e)?C(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);C(e,"unexpected end of the stream within a single quoted scalar")}(t,w)||function(e,t){var r,n,i,o,s,a;if(34!==(a=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;0!==(a=e.input.charCodeAt(e.position));){if(34===a)return R(e,r,e.position,!0),e.position++,!0;if(92===a){if(R(e,r,e.position,!0),p(a=e.input.charCodeAt(++e.position)))M(e,!1,t);else if(a<256&&E[a])e.result+=_[a],e.position++;else if((s=y(a))>0){for(i=s,o=0;i>0;i--)(s=m(a=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+s:C(e,"expected hexadecimal character");e.result+=A(o),e.position++}else C(e,"unknown escape sequence");r=n=e.position}else p(a)?(R(e,r,n,!0),j(e,M(e,!1,t)),r=n=e.position):e.position===e.lineStart&&O(e)?C(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}C(e,"unexpected end of the stream within a double quoted scalar")}(t,w)?S=!0:!function(e){var t,r,n;if(42!==(n=e.input.charCodeAt(e.position)))return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!d(n)&&!g(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&C(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),o.call(e.anchorMap,r)||C(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],M(e,!0,-1),!0}(t)?function(e,t,r){var n,i,o,s,a,u,l,c,f=e.kind,m=e.result;if(d(c=e.input.charCodeAt(e.position))||g(c)||35===c||38===c||42===c||33===c||124===c||62===c||39===c||34===c||37===c||64===c||96===c)return!1;if((63===c||45===c)&&(d(n=e.input.charCodeAt(e.position+1))||r&&g(n)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,s=!1;0!==c;){if(58===c){if(d(n=e.input.charCodeAt(e.position+1))||r&&g(n))break}else if(35===c){if(d(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&O(e)||r&&g(c))break;if(p(c)){if(a=e.line,u=e.lineStart,l=e.lineIndent,M(e,!1,-1),e.lineIndent>=t){s=!0,c=e.input.charCodeAt(e.position);continue}e.position=o,e.line=a,e.lineStart=u,e.lineIndent=l;break}}s&&(R(e,i,o,!1),j(e,e.line-a),i=o=e.position,s=!1),h(c)||(o=e.position+1),c=e.input.charCodeAt(++e.position)}return R(e,i,o,!1),!!e.result||(e.kind=f,e.result=m,!1)}(t,w,1===n)&&(S=!0,null===t.tag&&(t.tag="?")):(S=!0,null===t.tag&&null===t.anchor||C(t,"alias node should not have any properties")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===v&&(S=l&&L(t,q))),null!==t.tag&&"!"!==t.tag)if("?"===t.tag){for(null!==t.result&&"scalar"!==t.kind&&C(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),c=0,f=t.implicitTypes.length;c<f;c+=1)if((k=t.implicitTypes[c]).resolve(t.result)){t.result=k.construct(t.result),t.tag=k.tag,null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);break}}else o.call(t.typeMap[t.kind||"fallback"],t.tag)?(k=t.typeMap[t.kind||"fallback"][t.tag],null!==t.result&&k.kind!==t.kind&&C(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+k.kind+'", not "'+t.kind+'"'),k.resolve(t.result)?(t.result=k.construct(t.result),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):C(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")):C(t,"unknown tag !<"+t.tag+">");return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||S}function D(e){var t,r,n,i,s=e.position,u=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};0!==(i=e.input.charCodeAt(e.position))&&(M(e,!0,-1),i=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==i));){for(u=!0,i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!d(i);)i=e.input.charCodeAt(++e.position);for(n=[],(r=e.input.slice(t,e.position)).length<1&&C(e,"directive name must not be less than one character in length");0!==i;){for(;h(i);)i=e.input.charCodeAt(++e.position);if(35===i){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&!p(i));break}if(p(i))break;for(t=e.position;0!==i&&!d(i);)i=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==i&&B(e),o.call($,r)?$[r](e,r,n):S(e,'unknown document directive "'+r+'"')}M(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,M(e,!0,-1)):u&&C(e,"directives end mark is expected"),U(e,e.lineIndent-1,4,!1,!0),M(e,!0,-1),e.checkLineBreaks&&a.test(e.input.slice(s,e.position))&&S(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&O(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,M(e,!0,-1)):e.position<e.length-1&&C(e,"end of the stream or a document separator is expected")}function P(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var r=new v(e,t),n=e.indexOf("\0");for(-1!==n&&(r.position=n,C(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)D(r);return r.documents}function Y(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);var n=P(e,r);if("function"!=typeof t)return n;for(var i=0,o=n.length;i<o;i+=1)t(n[i])}function G(e,r){var n=P(e,r);if(0!==n.length){if(1===n.length)return n[0];throw new t("expected a single document in the stream, but found more")}}return loader.loadAll=Y,loader.load=G,loader.safeLoadAll=function(t,r,i){return"object"==typeof r&&null!==r&&void 0===i&&(i=r,r=null),Y(t,r,e.extend({schema:n},i))},loader.safeLoad=function(t,r){return G(t,e.extend({schema:n},r))},loader}var dumper={},hasRequiredDumper,hasRequiredJsYaml$1,jsYaml,hasRequiredJsYaml,hasRequiredEngines;function requireDumper(){if(hasRequiredDumper)return dumper;hasRequiredDumper=1;var e=requireCommon(),t=requireException(),r=requireDefault_full(),n=requireDefault_safe(),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,s={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},a=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function u(r){var n,i,o;if(n=r.toString(16).toUpperCase(),r<=255)i="x",o=2;else if(r<=65535)i="u",o=4;else{if(!(r<=4294967295))throw new t("code point within a string may not be greater than 0xFFFFFFFF");i="U",o=8}return"\\"+i+e.repeat("0",o-n.length)+n}function l(t){this.schema=t.schema||r,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=e.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=function(e,t){var r,n,i,s,a,u,l;if(null===t)return{};for(r={},i=0,s=(n=Object.keys(t)).length;i<s;i+=1)a=n[i],u=String(t[a]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),(l=e.compiledTypeMap.fallback[a])&&o.call(l.styleAliases,u)&&(u=l.styleAliases[u]),r[a]=u;return r}(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function c(t,r){for(var n,i=e.repeat(" ",r),o=0,s=-1,a="",u=t.length;o<u;)-1===(s=t.indexOf("\n",o))?(n=t.slice(o),o=u):(n=t.slice(o,s+1),o=s+1),n.length&&"\n"!==n&&(a+=i),a+=n;return a}function f(t,r){return"\n"+e.repeat(" ",t.indent*r)}function p(e){return 32===e||9===e}function h(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&65279!==e||65536<=e&&e<=1114111}function d(e,t){return h(e)&&65279!==e&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e&&58!==e&&(35!==e||t&&function(e){return h(e)&&!p(e)&&65279!==e&&13!==e&&10!==e}(t))}function g(e){return/^\n* /.test(e)}function m(e,t,r,n,i){var o,s,a,u,l=!1,c=!1,f=-1!==n,m=-1,y=h(u=e.charCodeAt(0))&&65279!==u&&!p(u)&&45!==u&&63!==u&&58!==u&&44!==u&&91!==u&&93!==u&&123!==u&&125!==u&&35!==u&&38!==u&&42!==u&&33!==u&&124!==u&&61!==u&&62!==u&&39!==u&&34!==u&&37!==u&&64!==u&&96!==u&&!p(e.charCodeAt(e.length-1));if(t)for(o=0;o<e.length;o++){if(!h(s=e.charCodeAt(o)))return 5;a=o>0?e.charCodeAt(o-1):null,y=y&&d(s,a)}else{for(o=0;o<e.length;o++){if(10===(s=e.charCodeAt(o)))l=!0,f&&(c=c||o-m-1>n&&" "!==e[m+1],m=o);else if(!h(s))return 5;a=o>0?e.charCodeAt(o-1):null,y=y&&d(s,a)}c=c||f&&o-m-1>n&&" "!==e[m+1]}return l||c?r>9&&g(e)?5:c?4:3:y&&!i(e)?1:2}function y(e,r,n,i){e.dump=function(){if(0===r.length)return"''";if(!e.noCompatMode&&-1!==a.indexOf(r))return"'"+r+"'";var o=e.indent*Math.max(1,n),l=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),f=i||e.flowLevel>-1&&n>=e.flowLevel;switch(m(r,f,e.indent,l,function(t){return function(e,t){var r,n;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(e.implicitTypes[r].resolve(t))return!0;return!1}(e,t)})){case 1:return r;case 2:return"'"+r.replace(/'/g,"''")+"'";case 3:return"|"+b(r,e.indent)+k(c(r,o));case 4:return">"+b(r,e.indent)+k(c(function(e,t){var r,n,i=/(\n+)([^\n]*)/g,o=(a=e.indexOf("\n"),a=-1!==a?a:e.length,i.lastIndex=a,A(e.slice(0,a),t)),s="\n"===e[0]||" "===e[0];var a;for(;n=i.exec(e);){var u=n[1],l=n[2];r=" "===l[0],o+=u+(s||r||""===l?"":"\n")+A(l,t),s=r}return o}(r,l),o));case 5:return'"'+function(e){for(var t,r,n,i="",o=0;o<e.length;o++)(t=e.charCodeAt(o))>=55296&&t<=56319&&(r=e.charCodeAt(o+1))>=56320&&r<=57343?(i+=u(1024*(t-55296)+r-56320+65536),o++):i+=!(n=s[t])&&h(t)?e[o]:n||u(t);return i}(r)+'"';default:throw new t("impossible error: invalid scalar style")}}()}function b(e,t){var r=g(e)?String(t):"",n="\n"===e[e.length-1];return r+(n&&("\n"===e[e.length-2]||"\n"===e)?"+":n?"":"-")+"\n"}function k(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function A(e,t){if(""===e||" "===e[0])return e;for(var r,n,i=/ [^ ]/g,o=0,s=0,a=0,u="";r=i.exec(e);)(a=r.index)-o>t&&(n=s>o?s:a,u+="\n"+e.slice(o,n),o=n+1),s=a;return u+="\n",e.length-o>t&&s>o?u+=e.slice(o,s)+"\n"+e.slice(s+1):u+=e.slice(o),u.slice(1)}function w(e,r,n){var s,a,u,l,c,f;for(u=0,l=(a=n?e.explicitTypes:e.implicitTypes).length;u<l;u+=1)if(((c=a[u]).instanceOf||c.predicate)&&(!c.instanceOf||"object"==typeof r&&r instanceof c.instanceOf)&&(!c.predicate||c.predicate(r))){if(e.tag=n?c.tag:"?",c.represent){if(f=e.styleMap[c.tag]||c.defaultStyle,"[object Function]"===i.call(c.represent))s=c.represent(r,f);else{if(!o.call(c.represent,f))throw new t("!<"+c.tag+'> tag resolver accepts not "'+f+'" style');s=c.represent[f](r,f)}e.dump=s}return!0}return!1}function E(e,r,n,o,s,a){e.tag=null,e.dump=n,w(e,n,!1)||w(e,n,!0);var u=i.call(e.dump);o&&(o=e.flowLevel<0||e.flowLevel>r);var l,c,p="[object Object]"===u||"[object Array]"===u;if(p&&(c=-1!==(l=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||c||2!==e.indent&&r>0)&&(s=!1),c&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(p&&c&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),"[object Object]"===u)o&&0!==Object.keys(e.dump).length?(!function(e,r,n,i){var o,s,a,u,l,c,p="",h=e.tag,d=Object.keys(n);if(!0===e.sortKeys)d.sort();else if("function"==typeof e.sortKeys)d.sort(e.sortKeys);else if(e.sortKeys)throw new t("sortKeys must be a boolean or a function");for(o=0,s=d.length;o<s;o+=1)c="",i&&0===o||(c+=f(e,r)),u=n[a=d[o]],E(e,r+1,a,!0,!0,!0)&&((l=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&10===e.dump.charCodeAt(0)?c+="?":c+="? "),c+=e.dump,l&&(c+=f(e,r)),E(e,r+1,u,!0,l)&&(e.dump&&10===e.dump.charCodeAt(0)?c+=":":c+=": ",p+=c+=e.dump));e.tag=h,e.dump=p||"{}"}(e,r,e.dump,s),c&&(e.dump="&ref_"+l+e.dump)):(!function(e,t,r){var n,i,o,s,a,u="",l=e.tag,c=Object.keys(r);for(n=0,i=c.length;n<i;n+=1)a="",0!==n&&(a+=", "),e.condenseFlow&&(a+='"'),s=r[o=c[n]],E(e,t,o,!1,!1)&&(e.dump.length>1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),E(e,t,s,!1,!1)&&(u+=a+=e.dump));e.tag=l,e.dump="{"+u+"}"}(e,r,e.dump),c&&(e.dump="&ref_"+l+" "+e.dump));else if("[object Array]"===u){var h=e.noArrayIndent&&r>0?r-1:r;o&&0!==e.dump.length?(!function(e,t,r,n){var i,o,s="",a=e.tag;for(i=0,o=r.length;i<o;i+=1)E(e,t+1,r[i],!0,!0)&&(n&&0===i||(s+=f(e,t)),e.dump&&10===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump);e.tag=a,e.dump=s||"[]"}(e,h,e.dump,s),c&&(e.dump="&ref_"+l+e.dump)):(!function(e,t,r){var n,i,o="",s=e.tag;for(n=0,i=r.length;n<i;n+=1)E(e,t,r[n],!1,!1)&&(0!==n&&(o+=","+(e.condenseFlow?"":" ")),o+=e.dump);e.tag=s,e.dump="["+o+"]"}(e,h,e.dump),c&&(e.dump="&ref_"+l+" "+e.dump))}else{if("[object String]"!==u){if(e.skipInvalid)return!1;throw new t("unacceptable kind of an object to dump "+u)}"?"!==e.tag&&y(e,e.dump,r,a)}null!==e.tag&&"?"!==e.tag&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function _(e,t){var r,n,i=[],o=[];for(q(e,i,o),r=0,n=o.length;r<n;r+=1)t.duplicates.push(i[o[r]]);t.usedDuplicates=new Array(n)}function q(e,t,r){var n,i,o;if(null!==e&&"object"==typeof e)if(-1!==(i=t.indexOf(e)))-1===r.indexOf(i)&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,o=e.length;i<o;i+=1)q(e[i],t,r);else for(i=0,o=(n=Object.keys(e)).length;i<o;i+=1)q(e[n[i]],t,r)}function v(e,t){var r=new l(t=t||{});return r.noRefs||_(e,r),E(r,0,e,!0,!0)?r.dump+"\n":""}return dumper.dump=v,dumper.safeDump=function(t,r){return v(t,e.extend({schema:n},r))},dumper}function requireJsYaml$1(){if(hasRequiredJsYaml$1)return jsYaml$1;hasRequiredJsYaml$1=1;var e=requireLoader(),t=requireDumper();function r(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}return jsYaml$1.Type=requireType(),jsYaml$1.Schema=requireSchema(),jsYaml$1.FAILSAFE_SCHEMA=requireFailsafe(),jsYaml$1.JSON_SCHEMA=requireJson(),jsYaml$1.CORE_SCHEMA=requireCore(),jsYaml$1.DEFAULT_SAFE_SCHEMA=requireDefault_safe(),jsYaml$1.DEFAULT_FULL_SCHEMA=requireDefault_full(),jsYaml$1.load=e.load,jsYaml$1.loadAll=e.loadAll,jsYaml$1.safeLoad=e.safeLoad,jsYaml$1.safeLoadAll=e.safeLoadAll,jsYaml$1.dump=t.dump,jsYaml$1.safeDump=t.safeDump,jsYaml$1.YAMLException=requireException(),jsYaml$1.MINIMAL_SCHEMA=requireFailsafe(),jsYaml$1.SAFE_SCHEMA=requireDefault_safe(),jsYaml$1.DEFAULT_SCHEMA=requireDefault_full(),jsYaml$1.scan=r("scan"),jsYaml$1.parse=r("parse"),jsYaml$1.compose=r("compose"),jsYaml$1.addConstructor=r("addConstructor"),jsYaml$1}function requireJsYaml(){if(hasRequiredJsYaml)return jsYaml;hasRequiredJsYaml=1;var e=requireJsYaml$1();return jsYaml=e}function requireEngines(){return hasRequiredEngines||(hasRequiredEngines=1,function(module,exports$1){const yaml=requireJsYaml(),engines=module.exports;engines.yaml={parse:yaml.safeLoad.bind(yaml),stringify:yaml.safeDump.bind(yaml)},engines.json={parse:JSON.parse.bind(JSON),stringify:function(e,t){const r=Object.assign({replacer:null,space:2},t);return JSON.stringify(e,r.replacer,r.space)}},engines.javascript={parse:function parse(str,options,wrap){try{return!1!==wrap&&(str="(function() {\nreturn "+str.trim()+";\n}());"),eval(str)||{}}catch(err){if(!1!==wrap&&/(unexpected|identifier)/i.test(err.message))return parse(str,options,!1);throw new SyntaxError(err)}},stringify:function(){throw new Error("stringifying JavaScript is not supported")}}}(engines)),engines.exports}var buffer={},base64Js={},hasRequiredBase64Js;function requireBase64Js(){if(hasRequiredBase64Js)return base64Js;hasRequiredBase64Js=1,base64Js.byteLength=function(e){var t=o(e),r=t[0],n=t[1];return 3*(r+n)/4-n},base64Js.toByteArray=function(e){var n,i,s=o(e),a=s[0],u=s[1],l=new r(function(e,t,r){return 3*(t+r)/4-r}(0,a,u)),c=0,f=u>0?a-4:a;for(i=0;i<f;i+=4)n=t[e.charCodeAt(i)]<<18|t[e.charCodeAt(i+1)]<<12|t[e.charCodeAt(i+2)]<<6|t[e.charCodeAt(i+3)],l[c++]=n>>16&255,l[c++]=n>>8&255,l[c++]=255&n;2===u&&(n=t[e.charCodeAt(i)]<<2|t[e.charCodeAt(i+1)]>>4,l[c++]=255&n);1===u&&(n=t[e.charCodeAt(i)]<<10|t[e.charCodeAt(i+1)]<<4|t[e.charCodeAt(i+2)]>>2,l[c++]=n>>8&255,l[c++]=255&n);return l},base64Js.fromByteArray=function(t){for(var r,n=t.length,i=n%3,o=[],s=16383,u=0,l=n-i;u<l;u+=s)o.push(a(t,u,u+s>l?l:u+s));1===i?(r=t[n-1],o.push(e[r>>2]+e[r<<4&63]+"==")):2===i&&(r=(t[n-2]<<8)+t[n-1],o.push(e[r>>10]+e[r>>4&63]+e[r<<2&63]+"="));return o.join("")};for(var e=[],t=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0;i<64;++i)e[i]=n[i],t[n.charCodeAt(i)]=i;function o(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function s(t){return e[t>>18&63]+e[t>>12&63]+e[t>>6&63]+e[63&t]}function a(e,t,r){for(var n,i=[],o=t;o<r;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(s(n));return i.join("")}return t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63,base64Js}var ieee754={},hasRequiredIeee754,hasRequiredBuffer;function requireIeee754(){return hasRequiredIeee754||(hasRequiredIeee754=1,ieee754.read=function(e,t,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,l=u>>1,c=-7,f=r?i-1:0,p=r?-1:1,h=e[t+f];for(f+=p,o=h&(1<<-c)-1,h>>=-c,c+=a;c>0;o=256*o+e[t+f],f+=p,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;c>0;s=256*s+e[t+f],f+=p,c-=8);if(0===o)o=1-l;else{if(o===u)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,n),o-=l}return(h?-1:1)*s*Math.pow(2,o-n)},ieee754.write=function(e,t,r,n,i,o){var s,a,u,l=8*o-i-1,c=(1<<l)-1,f=c>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,d=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+f>=1?p/u:p*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=c?(a=0,s=c):s+f>=1?(a=(t*u-1)*Math.pow(2,i),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;e[r+h]=255&a,h+=d,a/=256,i-=8);for(s=s<<i|a,l+=i;l>0;e[r+h]=255&s,h+=d,s/=256,l-=8);e[r+h-d]|=128*g}),ieee754}function requireBuffer(){return hasRequiredBuffer||(hasRequiredBuffer=1,function(e){const t=requireBase64Js(),r=requireIeee754(),n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=function(e){+e!=e&&(e=0);return s.alloc(+e)},e.INSPECT_MAX_BYTES=50;const i=2147483647;function o(e){if(e>i)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return l(e)}return a(e,t,r)}function a(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!s.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|h(e,t);let n=o(r);const i=n.write(e,t);i!==r&&(n=n.slice(0,i));return n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(H(e,Uint8Array)){const t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return c(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(H(e,ArrayBuffer)||e&&H(e.buffer,ArrayBuffer))return f(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(H(e,SharedArrayBuffer)||e&&H(e.buffer,SharedArrayBuffer)))return f(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return s.from(n,t,r);const i=function(e){if(s.isBuffer(e)){const t=0|p(e.length),r=o(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||Z(e.length)?o(0):c(e);if("Buffer"===e.type&&Array.isArray(e.data))return c(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return u(e),o(e<0?0:0|p(e))}function c(e){const t=e.length<0?0:0|p(e.length),r=o(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function f(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,s.prototype),n}function p(e){if(e>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function h(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||H(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return J(e).length;default:if(i)return n?-1:G(e).length;t=(""+t).toLowerCase(),i=!0}}function d(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return S(this,t,r);case"utf8":case"utf-8":return q(this,t,r);case"ascii":return x(this,t,r);case"latin1":case"binary":return C(this,t,r);case"base64":return _(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function g(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function m(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Z(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){let o,s=1,a=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,r/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){let n=-1;for(o=r;o<a;o++)if(l(e,o)===l(t,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===u)return n*s}else-1!==n&&(o-=o-n),n=-1}else for(r+u>a&&(r=a-u),o=r;o>=0;o--){let r=!0;for(let n=0;n<u;n++)if(l(e,o+n)!==l(t,n)){r=!1;break}if(r)return o}return-1}function b(e,t,r,n){r=Number(r)||0;const i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;const o=t.length;let s;for(n>o/2&&(n=o/2),s=0;s<n;++s){const n=parseInt(t.substr(2*s,2),16);if(Z(n))return s;e[r+s]=n}return s}function k(e,t,r,n){return z(G(t,e.length-r),e,r,n)}function A(e,t,r,n){return z(function(e){const t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function w(e,t,r,n){return z(J(t),e,r,n)}function E(e,t,r,n){return z(function(e,t){let r,n,i;const o=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)r=e.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function _(e,r,n){return 0===r&&n===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(r,n))}function q(e,t,r){r=Math.min(e.length,r);const n=[];let i=t;for(;i<r;){const t=e[i];let o=null,s=t>239?4:t>223?3:t>191?2:1;if(i+s<=r){let r,n,a,u;switch(s){case 1:t<128&&(o=t);break;case 2:r=e[i+1],128==(192&r)&&(u=(31&t)<<6|63&r,u>127&&(o=u));break;case 3:r=e[i+1],n=e[i+2],128==(192&r)&&128==(192&n)&&(u=(15&t)<<12|(63&r)<<6|63&n,u>2047&&(u<55296||u>57343)&&(o=u));break;case 4:r=e[i+1],n=e[i+2],a=e[i+3],128==(192&r)&&128==(192&n)&&128==(192&a)&&(u=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&a,u>65535&&u<1114112&&(o=u))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=s}return function(e){const t=e.length;if(t<=v)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=v));return r}(n)}e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return a(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return function(e,t,r){return u(e),e<=0?o(e):void 0!==t?"string"==typeof r?o(e).fill(t,r):o(e).fill(t):o(e)}(e,t,r)},s.allocUnsafe=function(e){return l(e)},s.allocUnsafeSlow=function(e){return l(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(H(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),H(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);let r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const n=s.allocUnsafe(t);let i=0;for(r=0;r<e.length;++r){let t=e[r];if(H(t,Uint8Array))i+t.length>n.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else{if(!s.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,i)}i+=t.length}return n},s.byteLength=h,s.prototype._isBuffer=!0,s.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)g(this,t,t+1);return this},s.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},s.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},s.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?q(this,0,e):d.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){let t="";const r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,i){if(H(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;let o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0);const u=Math.min(o,a),l=this.slice(n,i),c=e.slice(t,r);for(let s=0;s<u;++s)if(l[s]!==c[s]){o=l[s],a=c[s];break}return o<a?-1:a<o?1:0},s.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return m(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return m(this,e,t,r,!1)},s.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return b(this,e,t,r);case"utf8":case"utf-8":return k(this,e,t,r);case"ascii":case"latin1":case"binary":return A(this,e,t,r);case"base64":return w(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const v=4096;function x(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function C(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function S(e,t,r){const n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let o=t;o<r;++o)i+=W[e[o]];return i}function $(e,t,r){const n=e.slice(t,r);let i="";for(let o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function R(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function T(e,t,r,n,i,o){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function I(e,t,r,n,i){U(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,r}function B(e,t,r,n,i){U(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=s,s>>=8,e[r+2]=s,s>>=8,e[r+1]=s,s>>=8,e[r]=s,r+8}function M(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function O(e,t,n,i,o){return t=+t,n>>>=0,o||M(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function j(e,t,n,i,o){return t=+t,n>>>=0,o||M(e,0,n,8),r.write(e,t,n,i,52,8),n+8}s.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);const n=this.subarray(e,t);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return n},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=K(function(e){D(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||P(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(i)<<BigInt(32))}),s.prototype.readBigUInt64BE=K(function(e){D(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||P(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)}),s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||R(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||R(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=K(function(e){D(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||P(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)}),s.prototype.readBigInt64BE=K(function(e){D(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||P(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)}),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||R(e,4,this.length),r.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||R(e,4,this.length),r.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||R(e,8,this.length),r.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||R(e,8,this.length),r.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){T(this,e,t,r,Math.pow(2,8*r)-1,0)}let i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){T(this,e,t,r,Math.pow(2,8*r)-1,0)}let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigUInt64LE=K(function(e,t=0){return I(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=K(function(e,t=0){return B(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);T(this,e,t,r,n-1,-n)}let i=0,o=1,s=0;for(this[t]=255&e;++i<r&&(o*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);T(this,e,t,r,n-1,-n)}let i=r-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigInt64LE=K(function(e,t=0){return I(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=K(function(e,t=0){return B(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeFloatLE=function(e,t,r){return O(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return O(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return j(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return j(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);const i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},s.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){const t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;let i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{const o=s.isBuffer(e)?e:s.from(e,n),a=o.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=o[i%a]}return this};const L={};function F(e,t,r){L[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function N(e){let t="",r=e.length;const n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function U(e,t,r,n,i,o){if(e>r||e<t){const r="bigint"==typeof t?"n":"";let n;throw n=0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`,new L.ERR_OUT_OF_RANGE("value",n,e)}!function(e,t,r){D(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||P(t,e.length-(r+1))}(n,i,o)}function D(e,t){if("number"!=typeof e)throw new L.ERR_INVALID_ARG_TYPE(t,"number",e)}function P(e,t,r){if(Math.floor(e)!==e)throw D(e,r),new L.ERR_OUT_OF_RANGE("offset","an integer",e);if(t<0)throw new L.ERR_BUFFER_OUT_OF_BOUNDS;throw new L.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${t}`,e)}F("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),F("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),F("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=N(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=N(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);const Y=/[^+/0-9A-Za-z-_]/g;function G(e,t){let r;t=t||1/0;const n=e.length;let i=null;const o=[];for(let s=0;s<n;++s){if(r=e.charCodeAt(s),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function J(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(Y,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function H(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Z(e){return e!=e}const W=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function K(e){return"undefined"==typeof BigInt?V:e}function V(){throw new Error("BigInt not supported")}}(buffer)),buffer}var bufferExports=requireBuffer(),utils={},stripBomString,hasRequiredStripBomString,hasRequiredUtils,defaults,hasRequiredDefaults,engine,hasRequiredEngine,stringify,hasRequiredStringify,excerpt,hasRequiredExcerpt,toFile,hasRequiredToFile,parse,hasRequiredParse,grayMatter$1,hasRequiredGrayMatter;function requireStripBomString(){return hasRequiredStripBomString?stripBomString:(hasRequiredStripBomString=1,stripBomString=function(e){return"string"==typeof e&&"\ufeff"===e.charAt(0)?e.slice(1):e})}function requireUtils(){return hasRequiredUtils||(hasRequiredUtils=1,function(e){const t=requireStripBomString(),r=requireKindOf();e.define=function(e,t,r){Reflect.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:r})},e.isBuffer=function(e){return"buffer"===r(e)},e.isObject=function(e){return"object"===r(e)},e.toBuffer=function(e){return"string"==typeof e?bufferExports.Buffer.from(e):e},e.toString=function(r){if(e.isBuffer(r))return t(String(r));if("string"!=typeof r)throw new TypeError("expected input to be a string or buffer");return t(r)},e.arrayify=function(e){return e?Array.isArray(e)?e:[e]:[]},e.startsWith=function(e,t,r){return"number"!=typeof r&&(r=t.length),e.slice(0,r)===t}}(utils)),utils}function requireDefaults(){if(hasRequiredDefaults)return defaults;hasRequiredDefaults=1;const e=requireEngines(),t=requireUtils();return defaults=function(r){const n=Object.assign({},r);return n.delimiters=t.arrayify(n.delims||n.delimiters||"---"),1===n.delimiters.length&&n.delimiters.push(n.delimiters[0]),n.language=(n.language||n.lang||"yaml").toLowerCase(),n.engines=Object.assign({},e,n.parsers,n.engines),n}}function requireEngine(){if(hasRequiredEngine)return engine;return hasRequiredEngine=1,engine=function(e,t){let r=t.engines[e]||t.engines[function(e){switch(e.toLowerCase()){case"js":case"javascript":return"javascript";case"coffee":case"coffeescript":case"cson":return"coffee";case"yaml":case"yml":return"yaml";default:return e}}(e)];if(void 0===r)throw new Error('gray-matter engine "'+e+'" is not registered');return"function"==typeof r&&(r={parse:r}),r}}function requireStringify(){if(hasRequiredStringify)return stringify;hasRequiredStringify=1;const e=requireKindOf(),t=requireEngine(),r=requireDefaults();function n(e){return"\n"!==e.slice(-1)?e+"\n":e}return stringify=function(i,o,s){if(null==o&&null==s)switch(e(i)){case"object":o=i.data,s={};break;case"string":return i;default:throw new TypeError("expected file to be a string or object")}const a=i.content,u=r(s);if(null==o){if(!u.data)return i;o=u.data}const l=i.language||u.language,c=t(l,u);if("function"!=typeof c.stringify)throw new TypeError('expected "'+l+'.stringify" to be a function');o=Object.assign({},i.data,o);const f=u.delimiters[0],p=u.delimiters[1],h=c.stringify(o,s).trim();let d="";return"{}"!==h&&(d=n(f)+n(h)+n(p)),"string"==typeof i.excerpt&&""!==i.excerpt&&-1===a.indexOf(i.excerpt.trim())&&(d+=n(i.excerpt)+n(p)),d+n(a)}}function requireExcerpt(){if(hasRequiredExcerpt)return excerpt;hasRequiredExcerpt=1;const e=requireDefaults();return excerpt=function(t,r){const n=e(r);if(null==t.data&&(t.data={}),"function"==typeof n.excerpt)return n.excerpt(t,n);const i=t.data.excerpt_separator||n.excerpt_separator;if(null==i&&(!1===n.excerpt||null==n.excerpt))return t;const o="string"==typeof n.excerpt?n.excerpt:i||n.delimiters[0],s=t.content.indexOf(o);return-1!==s&&(t.excerpt=t.content.slice(0,s)),t}}function requireToFile(){if(hasRequiredToFile)return toFile;hasRequiredToFile=1;const e=requireKindOf(),t=requireStringify(),r=requireUtils();return toFile=function(n){return"object"!==e(n)&&(n={content:n}),"object"!==e(n.data)&&(n.data={}),n.contents&&null==n.content&&(n.content=n.contents),r.define(n,"orig",r.toBuffer(n.content)),r.define(n,"language",n.language||""),r.define(n,"matter",n.matter||""),r.define(n,"stringify",function(e,r){return r&&r.language&&(n.language=r.language),t(n,e,r)}),n.content=r.toString(n.content),n.isEmpty=!1,n.excerpt="",n}}function requireParse(){if(hasRequiredParse)return parse;hasRequiredParse=1;const e=requireEngine(),t=requireDefaults();return parse=function(r,n,i){const o=t(i),s=e(r,o);if("function"!=typeof s.parse)throw new TypeError('expected "'+r+'.parse" to be a function');return s.parse(n,o)}}function requireGrayMatter(){if(hasRequiredGrayMatter)return grayMatter$1;hasRequiredGrayMatter=1;const e=require$$0,t=requireSectionMatter(),r=requireDefaults(),n=requireStringify(),i=requireExcerpt(),o=requireEngines(),s=requireToFile(),a=requireParse(),u=requireUtils();function l(e,n){if(""===e)return{data:{},content:e,excerpt:"",orig:e};let o=s(e);const c=l.cache[o.content];if(!n){if(c)return o=Object.assign({},c),o.orig=c.orig,o;l.cache[o.content]=o}return function(e,n){const o=r(n),s=o.delimiters[0],c="\n"+o.delimiters[1];let f=e.content;o.language&&(e.language=o.language);const p=s.length;if(!u.startsWith(f,s,p))return i(e,o),e;if(f.charAt(p)===s.slice(-1))return e;f=f.slice(p);const h=f.length,d=l.language(f,o);d.name&&(e.language=d.name,f=f.slice(d.raw.length));let g=f.indexOf(c);-1===g&&(g=h);e.matter=f.slice(0,g);const m=e.matter.replace(/^\s*#[^\n]+/gm,"").trim();""===m?(e.isEmpty=!0,e.empty=e.content,e.data={}):e.data=a(e.language,e.matter,o);g===h?e.content="":(e.content=f.slice(g+c.length),"\r"===e.content[0]&&(e.content=e.content.slice(1)),"\n"===e.content[0]&&(e.content=e.content.slice(1)));i(e,o),(!0===o.sections||"function"==typeof o.section)&&t(e,o.section);return e}(o,n)}return l.engines=o,l.stringify=function(e,t,r){return"string"==typeof e&&(e=l(e,r)),n(e,t,r)},l.read=function(t,r){const n=l(e.readFileSync(t,"utf8"),r);return n.path=t,n},l.test=function(e,t){return u.startsWith(e,r(t).delimiters[0])},l.language=function(e,t){const n=r(t).delimiters[0];l.test(e)&&(e=e.slice(n.length));const i=e.slice(0,e.search(/\r?\n/));return{raw:i,name:i?i.trim():""}},l.cache={},l.clearCache=function(){l.cache={}},grayMatter$1=l}var grayMatterExports=requireGrayMatter();const grayMatter=getDefaultExportFromCjs(grayMatterExports),frontmatterPlugin=(e,{grayMatterOptions:t,renderExcerpt:r=!0}={})=>{const n=e.parse.bind(e);e.parse=(i,o={})=>{const{data:s,content:a,excerpt:u=""}=grayMatter(i,t);return o.content=a,o.frontmatter={...o.frontmatter,...s},o.excerpt=r&&u?e.render(u,{...o}):u,n(a,o)}},TAG_NAME_SCRIPT="script",TAG_NAME_STYLE="style",TAG_NAME_TEMPLATE="template",SCRIPT_SETUP_TAG_OPEN_REGEXP=/^<script\s+.*?\bsetup\b.*?>$/is,createSfcRegexp=({customBlocks:e})=>{const t=Array.from(new Set([TAG_NAME_SCRIPT,TAG_NAME_STYLE,...e])).join("|");return new RegExp(`^\\s*(?<content>(?<tagOpen><(?<type>${t})\\s?.*?>)(?<contentStripped>.*)(?<tagClose><\\/\\k<type>\\s*>))\\s*$`,"is")},sfcPlugin=(e,{customBlocks:t=[]}={})=>{const r=createSfcRegexp({customBlocks:t}),n=e.render.bind(e);e.render=(e,t={})=>{t.sfcBlocks={template:null,script:null,scriptSetup:null,scripts:[],styles:[],customBlocks:[]};const r=n(e,t);return t.sfcBlocks.template={type:TAG_NAME_TEMPLATE,content:`<${TAG_NAME_TEMPLATE}>${r}</${TAG_NAME_TEMPLATE}>`,contentStripped:r,tagOpen:`<${TAG_NAME_TEMPLATE}>`,tagClose:`</${TAG_NAME_TEMPLATE}>`},r};const i=e.renderer.rules.html_block;e.renderer.rules.html_block=(e,t,n,o,s)=>{if(!o.sfcBlocks)return i(e,t,n,o,s);const a=e[t].content.match(r);if(!a)return i(e,t,n,o,s);const u=a.groups;return u.type===TAG_NAME_SCRIPT?(o.sfcBlocks.scripts.push(u),SCRIPT_SETUP_TAG_OPEN_REGEXP.test(u.tagOpen)?o.sfcBlocks.scriptSetup=u:o.sfcBlocks.script=u):u.type===TAG_NAME_STYLE?o.sfcBlocks.styles.push(u):o.sfcBlocks.customBlocks.push(u),""}},htmlEscapeMap={"&":"&","<":"<",">":">","'":"'",'"':"""},htmlEscapeRegexp=/[&<>'"]/g,htmlEscape=e=>e.replace(htmlEscapeRegexp,e=>htmlEscapeMap[e]),resolveTitleFromToken=(e,{shouldAllowHtml:t,shouldEscapeText:r})=>{const n=e.children??[],i=["text","emoji","code_inline"];i.push("html_inline");return n.filter(e=>i.includes(e.type)&&!e.meta?.isPermalinkSymbol).reduce((e,t)=>"code_inline"===t.type||"text"===t.type?`${e}${htmlEscape(t.content)}`:`${e}${t.content}`,"").trim()},resolveHeadersFromTokens=(e,{level:t,shouldAllowHtml:r,shouldAllowNested:n,shouldEscapeText:i,slugify:o,format:s})=>{const a=[],u=[],l=e=>{for(;0!==u.length&&e.level<=u[0].level;)u.shift();0===u.length?(a.push(e),u.push(e)):(u[0].children.push(e),u.unshift(e))};for(let c=0;c<e.length;c+=1){const a=e[c];if("heading_open"!==a.type)continue;if(0!==a.level&&!n)continue;const u=Number.parseInt(a.tag.slice(1),10);if(!t.includes(u))continue;const f=e[c+1];if(!f)continue;const p=resolveTitleFromToken(f,{shouldAllowHtml:r,shouldEscapeText:i}),h=a.attrGet("id")??o(p);l({level:u,title:s?.(p)??p,slug:h,link:`#${h}`,children:[]})}return a},rControl=/[\u0000-\u001f]/g,rSpecial=/[\s~`!@#$%^&*()\-_+=[\]{}|\\;:"'“”‘’<>,.?/]+/g,rCombining=/[\u0300-\u036F]/g,slugify=e=>e.normalize("NFKD").replace(rCombining,"").replace(rControl,"").replace(rSpecial,"-").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"").replace(/^(\d)/,"_$1").toLowerCase(),createRenderHeaders=({listTag:e,listClass:t,itemClass:r,linkTag:n,linkClass:i})=>{const o=htmlEscape(e),s=t?` class="${htmlEscape(t)}"`:"",a=r?` class="${htmlEscape(r)}"`:"",u=htmlEscape(n),l=i?` class="${htmlEscape(i)}"`:"",c=e=>`<${o}${s}>${e.map(e=>{return`<li${a}><${u}${l}${t=e.link,"router-link"===n?` to="${t}"`:` href="${t}"`}>${e.title}</${u}>${e.children.length>0?c(e.children):""}</li>`;var t}).join("")}</${o}>`;return c},createTocBlockRule=({pattern:e,containerTag:t,containerClass:r})=>(n,i,o,s)=>{if(n.sCount[i]-n.blkIndent>=4)return!1;const a=n.bMarks[i]+n.tShift[i],u=n.eMarks[i],l=n.src.slice(a,u).split(" ")[0];if(!e.test(l))return!1;if(s)return!0;n.line=i+1;const c=n.push("toc_open",t,1);c.markup="",c.map=[i,n.line],r&&c.attrSet("class",r);const f=n.push("toc_body","",0);f.markup=l,f.map=[i,n.line],f.hidden=!0;return n.push("toc_close",t,-1).markup="",f.map=[i,n.line],!0},tocPlugin=(e,{pattern:t=/^\[\[toc\]\]$/i,slugify:r=slugify,format:n,level:i=[2,3],shouldAllowNested:o=!1,containerTag:s="nav",containerClass:a="table-of-contents",listTag:u="ul",listClass:l="",itemClass:c="",linkTag:f="a",linkClass:p=""}={})=>{e.block.ruler.before("heading","toc",createTocBlockRule({pattern:t,containerTag:s,containerClass:a}),{alt:["paragraph","reference","blockquote"]});const h=createRenderHeaders({listTag:u,listClass:l,itemClass:c,linkTag:f,linkClass:p});e.renderer.rules.toc_body=e=>h(resolveHeadersFromTokens(e,{level:i,shouldAllowHtml:!0,shouldAllowNested:o,shouldEscapeText:!0,slugify:r,format:n}))},e$9=/\\(.)/g,t$b=(e,t,r,n)=>{let i=-1,o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(o+2>=s||42!==e.src.charCodeAt(o++)||91!==e.src.charCodeAt(o++))return!1;let a=o;for(;o<s;){let t=e.src.charCodeAt(o);if(91===t)return!1;if(93===t){i=o;break}92===t&&o++,o++}if(i<0||58!==e.src.charCodeAt(i+1))return!1;if(n)return!0;let u=e.src.slice(a,i).replaceAll(e$9,"$1");o=i+2;let l=e.skipSpaces(o),c=e.skipSpacesBack(s,l),f=e.src.slice(l,c);return 0!==u.length&&0!==f.length&&((e.env.abbreviations??={})[`_${u}`]??=f,e.line=t+1,!0)},n$a=e=>{let{arrayReplaceAt:t,escapeRE:r,lib:n}=e.utils,i=`${n.ucmicro.P.source}|${n.ucmicro.Z.source}|[${" \r\n$+<=>^`|~".split("").map(r).join("")}]`;e.block.ruler.before("reference","abbr_definition",t$b,{alt:["paragraph","reference"]}),e.core.ruler.after("linkify","abbr_replace",e=>{let n=e.tokens,o=e.env.abbreviations;if(!o)return;let s=Object.keys(o).map(e=>e.slice(1)).sort((e,t)=>t.length-e.length).map(r).join("|"),a=RegExp(`(?:${s})`),u=RegExp(`(^|${i})(${s})($|${i})`,"g"),l=n.length;for(let r=0;r<l;r++){let i=n[r];if("inline"!==i.type)continue;let s=i.children;for(let r=s.length-1;r>=0;r--){let n=s[r];if("text"!==n.type)continue;let l=n.content;if(u.lastIndex=0,!a.test(l))continue;let c,f=[],p=0;for(;c=u.exec(l);){let[,t,r,n]=c;if(c.index>0||t.length>0){let r=new e.Token("text","",0);r.content=l.slice(p,c.index+t.length),f.push(r)}let i=new e.Token("abbr_open","abbr",1);i.attrPush(["title",o[`_${r}`]]),f.push(i);let s=new e.Token("text","",0);s.content=r,f.push(s);let a=new e.Token("abbr_close","abbr",-1);f.push(a),u.lastIndex-=n.length,p=u.lastIndex}if(0!==f.length){if(p<l.length){let t=new e.Token("text","",0);t.content=l.slice(p),f.push(t)}i.children=s=t(s,r,f)}}}})},e$8=(e,t)=>{let r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];if(r>=n)return-1;let i=e.src.charCodeAt(r++);if(126!==i&&58!==i)return-1;let o=e.skipSpaces(r);return r===o||o>=n?-1:r},t$a=(e,t)=>{let r=e.level+2;for(let n=t+2,i=e.tokens.length-2;n<i;n++)e.tokens[n].level===r&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)},n$9=(e,t,r,n)=>{if(n)return!(e.ddIndent<0)&&(e$8(e,t)>=0&&e.sCount[t]<e.blkIndent);let i=t+1;if(i>=r)return!1;let o=!1;if(e.isEmpty(i)&&(i++,o=!0,i>=r)||e.sCount[i]<e.blkIndent)return!1;let s=e$8(e,i);if(s<0)return!1;let a=e.tokens.length,u=[t,0];e.push("dl_open","dl",1).map=u;let l=t,c=i,f=!o;e:for(;;){let t=!1;e.push("dt_open","dt",1).map=[l,l];let n=e.push("inline","",0);for(n.map=[l,l],n.content=e.getLines(l,l+1,e.blkIndent,!1).trim(),n.children=[],e.push("dt_close","dt",-1);;){let n=[i,0];e.push("dd_open","dd",1).map=n;let o=s,a=e.eMarks[c],u=e.sCount[c]+s-(e.bMarks[c]+e.tShift[c]);for(;o<a;){let t=e.src.charCodeAt(o);if(9===t)u+=4-u%4;else{if(32!==t)break;u++}o++}s=o;let l=e.tight,p=e.ddIndent,h=e.blkIndent,d=e.tShift[c],g=e.sCount[c],m=e.parentType;if(e.blkIndent=e.ddIndent=e.sCount[c]+2,e.tShift[c]=s-e.bMarks[c],e.sCount[c]=u,e.tight=!0,e.parentType="dl",e.md.block.tokenize(e,c,r,!0),(!e.tight||t)&&(f=!1),t=e.line-c>1&&e.isEmpty(e.line-1),e.tShift[c]=d,e.sCount[c]=g,e.tight=l,e.parentType=m,e.blkIndent=h,e.ddIndent=p,e.push("dd_close","dd",-1),n[1]=i=e.line,i>=r||e.sCount[i]<e.blkIndent)break e;if(s=e$8(e,i),s<0)break;c=i}if(i>=r||(l=i,e.isEmpty(l)||e.sCount[l]<e.blkIndent)||(c=l+1,c>=r)||(e.isEmpty(c)&&c++,c>=r||e.sCount[c]<e.blkIndent)||(s=e$8(e,c),s<0))break}return e.push("dl_close","dl",-1),u[1]=i,e.line=i,f&&t$a(e,a),!0},r$7=e=>{e.block.ruler.before("paragraph","dl",n$9,{alt:["paragraph","reference","blockquote"]})},e$7=(e,t)=>{e.attrs=e.attrs?.filter(([e])=>e!==t)??null},t$9=e=>{let t=e.attrs?.find(([e])=>"title"===e)?.[1];return t?(e$7(e,"title"),t):e.content},n$8=(e,t={})=>{e.core.ruler.before("linkify","figure",r=>{for(let n=1,{length:i}=r.tokens;n<i-1;n++){let i=r.tokens[n];if("inline"!==i.type||!i.children||1!==i.children.length&&3!==i.children.length||1===i.children.length&&"image"!==i.children[0].type)continue;if(3===i.children.length){let[e,t,r]=i.children;if("link_open"!==e.type||"image"!==t.type||"link_close"!==r.type)continue}if("paragraph_open"!==r.tokens[n-1].type||"paragraph_close"!==r.tokens[n+1].type)continue;let o=r.tokens[n-1];o.type="figure_open",o.tag="figure",r.tokens[n+1].type="figure_close",r.tokens[n+1].tag="figure";let s=1===i.children.length?i.children[0]:i.children[1],a=t$9(s),[u]=e.parseInline(a,r.env);i.children.push(new r.Token("figcaption_open","figcaption",1)),i.children.push(...u.children??[]),i.children.push(new r.Token("figcaption_close","figcaption",-1)),!1!==t.focusable&&s.attrPush(["tabindex","0"])}})},e$6=(e,t)=>e[t].meta.subId>0?`:${e[t].meta.subId}`:"",t$8=(e,t,r,n)=>`${"string"==typeof n.docId?`-${n.docId}-`:""}${(e[t].meta.id+1).toString()}`,n$7=(e,t)=>`[${(e[t].meta.id+1).toString()}${e$6(e,t)}]`,r$6=(e,t,r,n,i)=>{let o=i.rules.footnote_anchorName(e,t,r,n,i);return`<sup class="footnote-ref"><a href="#footnote${o}">${i.rules.footnote_caption(e,t,r,n,i)}</a><a class="footnote-anchor" id="footnote-ref${o}${e$6(e,t)}"></a></sup>`},i$3=(e,t,r)=>`<hr class="footnotes-sep"${r.xhtmlOut?" /":""}>\n<section class="footnotes">\n<ol class="footnotes-list">\n`,a$3=()=>"</ol>\n</section>\n",o$4=(e,t,r,n,i)=>`<li id="footnote${i.rules.footnote_anchorName(e,t,r,n,i)}${e$6(e,t)}" class="footnote-item">`,s$1=()=>"</li>\n",c$1=(e,t,r,n,i)=>` <a href="#footnote-ref${i.rules.footnote_anchorName(e,t,r,n,i)}${e$6(e,t)}" class="footnote-backref">↩︎</a>`,l$2=(e,t,r,n)=>{let i,o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(o+4>s||91!==e.src.charCodeAt(o)||94!==e.src.charCodeAt(o+1))return!1;let a=o+2;for(;a<s;){if(i=e.src.charCodeAt(a),32===i)return!1;if(93===i)break;a++}if(a===o+2||a+1>=s||58!==e.src.charCodeAt(++a))return!1;if(n)return!0;a++,(e.env.footnotes??={}).refs??={};let u=e.src.slice(o+2,a-2);e.env.footnotes.refs[`:${u}`]=-1;let l=e.push("footnote_reference_open","",1);l.meta={label:u},l.level=e.level++;let c=e.bMarks[t],f=e.tShift[t],p=e.sCount[t],h=e.parentType,d=a,g=e.sCount[t]+a-(e.bMarks[t]+e.tShift[t]),m=g;for(;a<s;){let t=e.src.charCodeAt(a);if(9===t)m+=4-m%4;else{if(32!==t)break;m++}a++}return e.tShift[t]=a-d,e.sCount[t]=m-g,e.bMarks[t]=d,e.blkIndent+=4,e.parentType="footnote",e.sCount[t]<e.blkIndent&&(e.sCount[t]+=e.blkIndent),e.md.block.tokenize(e,t,r),e.parentType=h,e.blkIndent-=4,e.tShift[t]=f,e.sCount[t]=p,e.bMarks[t]=c,e.push("footnote_reference_close","",-1).level=--e.level,!0},u$2=(e,t)=>{let r=e.posMax,n=e.pos;if(n+2>=r||94!==e.src.charCodeAt(n)||91!==e.src.charCodeAt(n+1))return!1;let i=e.md.helpers.parseLinkLabel(e,n+1);if(i<0)return!1;let o=n+2;if(!t){let t=((e.env.footnotes??={}).list??=[]).length,r=[];e.md.inline.parse(e.src.slice(o,i),e.md,e.env,r),e.push("footnote_ref","",0).meta={id:t},e.env.footnotes.list[t]={content:e.src.slice(o,i),tokens:r}}return e.pos=i+1,e.posMax=r,!0},d$1=(e,t)=>{let r,n=e.pos,i=e.posMax;if(n+3>i||!e.env.footnotes?.refs||91!==e.src.charCodeAt(n)||94!==e.src.charCodeAt(n+1))return!1;let o=n+2;for(;o<i;){if(r=e.src.charCodeAt(o),32===r||10===r)return!1;if(93===r)break;o++}if(o===n+2||o>=i)return!1;o++;let s=e.src.slice(n+2,o-1);if(void 0===e.env.footnotes.refs[`:${s}`])return!1;if(!t){let t,r=e.env.footnotes.list??=[],{refs:n}=e.env.footnotes;n[`:${s}`]<0?(t=r.length,r[t]={label:s,count:0},n[`:${s}`]=t):t=n[`:${s}`];let i=r[t].count;r[t].count+=1,e.push("footnote_ref","",0).meta={id:t,subId:i,label:s}}return e.pos=o,e.posMax=i,!0},f$1=e=>{let t,r,n={},i=!1;if(!e.env.footnotes?.list)return e.tokens=e.tokens.filter(e=>"footnote_reference_open"===e.type?(i=!0,!1):"footnote_reference_close"===e.type?(i=!1,!1):!i),!1;let{list:o}=e.env.footnotes;e.tokens=e.tokens.filter(e=>"footnote_reference_open"===e.type?(i=!0,t=[],r=e.meta.label,!1):"footnote_reference_close"===e.type?(i=!1,n[`:${r}`]=t,!1):(i&&t.push(e),!i));let s=new e.Token("footnote_block_open","",1);e.tokens.push(s);for(let a=0,{length:u}=o;a<u;a++){let t,r=new e.Token("footnote_open","",1);if(r.meta={id:a,label:o[a].label},e.tokens.push(r),o[a].tokens){let t=new e.Token("paragraph_open","p",1);t.block=!0;let r=new e.Token("inline","",0);r.children=o[a].tokens,r.content=o[a].content;let n=new e.Token("paragraph_close","p",-1);n.block=!0,e.tokens.push(t,r,n)}else if(o[a].label){let t=n[`:${o[a].label}`];t&&e.tokens.push(...t)}t="paragraph_close"===e.tokens[e.tokens.length-1].type?e.tokens.pop()??null:null;for(let n=0;n<(Number(o[a].count)>0?o[a].count:1);n++){let t=new e.Token("footnote_anchor","",0);t.meta={id:a,subId:n,label:o[a].label},e.tokens.push(t)}t&&e.tokens.push(t),e.tokens.push(new e.Token("footnote_close","",-1))}return e.tokens.push(new e.Token("footnote_block_close","",-1)),!0},p=e=>{e.renderer.rules.footnote_ref=r$6,e.renderer.rules.footnote_block_open=i$3,e.renderer.rules.footnote_block_close=a$3,e.renderer.rules.footnote_open=o$4,e.renderer.rules.footnote_close=s$1,e.renderer.rules.footnote_anchor=c$1,e.renderer.rules.footnote_caption=n$7,e.renderer.rules.footnote_anchorName=t$8,e.block.ruler.before("reference","footnoteDef",l$2,{alt:["paragraph","reference"]}),e.inline.ruler.after("image","footnoteInline",u$2),e.inline.ruler.after("footnoteInline","footnote_ref",d$1),e.core.ruler.after("inline","footnoteTail",f$1)},e$5=e=>{let t=e.renderer.rules.image;e.renderer.rules.image=(e,r,n,i,o)=>(e[r].attrSet("loading","lazy"),t(e,r,n,i,o))},e$4=/#(.*?)$/,t$7=(e,{light:t=["light"],dark:r=["dark"]}={})=>{let n=e.renderer.rules.image,i=t.map(e=>`#${e}`),o=r.map(e=>`#${e}`);e.renderer.rules.image=(e,t,r,s,a)=>{let u=e[t],l=u.attrGet("src");return l&&(i.some(e=>l.endsWith(e))?(u.attrSet("data-mode","lightmode-only"),u.attrSet("src",l.replace(e$4,""))):o.some(e=>l.endsWith(e))&&(u.attrSet("data-mode","darkmode-only"),u.attrSet("src",l.replace(e$4,"")))),n(e,t,r,s,a)}},l$1=e=>e>=48&&e<=57,u$1=e=>{let t=e.length,r=e.lastIndexOf("=");if(-1===r||r+3>t||0!==r&&!isSpace(e.charCodeAt(r-1)))return null;let n=e.slice(0,r++).trimEnd(),i=null,o=null;if(l$1(e.charCodeAt(r))){let n=r;for(;r<t&&l$1(e.charCodeAt(r));)r++;if(i=e.slice(n,r),120!==e.charCodeAt(r++))return null}else if(120!==e.charCodeAt(r++))return null;if(r<t){let n=r;for(;r<t&&l$1(e.charCodeAt(r));)r++;r>n&&(o=e.slice(n,r))}for(;r<t;){if(!isSpace(e.charCodeAt(r)))return null;r++}return{label:n,width:i,height:o}},d=(e,t)=>{let r=e.env,n=e.pos,i=e.posMax;if(33!==e.src.charCodeAt(e.pos)||91!==e.src.charCodeAt(e.pos+1))return!1;let o=e.pos+2,s=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(s<0)return!1;let a=u$1(e.src.slice(o,s));if(!a)return!1;let{label:u,width:l,height:c}=a,f=s+1,p="",h="";if(f<i&&40===e.src.charCodeAt(f)){for(f++;f<i&&isSpace(e.src.charCodeAt(f));)f++;if(f>=i)return!1;let t;t=e.md.helpers.parseLinkDestination(e.src,f,e.posMax),t.ok&&(p=e.md.normalizeLink(t.str),e.md.validateLink(p)?f=t.pos:p="");let r=f;for(;f<i&&isSpace(e.src.charCodeAt(f));f++);if(t=e.md.helpers.parseLinkTitle(e.src,f,e.posMax),f<i&&r!==f&&t.ok)for(h=t.str,f=t.pos;f<i&&isSpace(e.src.charCodeAt(f));f++);else h="";if(f>=i||41!==e.src.charCodeAt(f))return e.pos=n,!1;f++}else{let t="";if(void 0===r.references)return!1;for(;f<i&&isSpace(e.src.charCodeAt(f));f++);if(f<i&&91===e.src.charCodeAt(f)){let r=f+1;f=e.md.helpers.parseLinkLabel(e,f),f>=0?t=e.src.slice(r,f++):f=s+1}else f=s+1;t||=u;let o=r.references[e.md.utils.normalizeReference(t)];if(!o)return e.pos=n,!1;p=o.href,h=o.title??""}if(!t){let t=e.push("image","img",0),r=[["src",p],["alt",""]];h&&r.push(["title",h]),l&&r.push(["width",l]),c&&r.push(["height",c]);let n=[];e.md.inline.parse(u,e.md,e.env,n),t.attrs=r,t.children=n,t.content=u}return e.pos=f,e.posMax=i,!0},f=e=>{e.inline.ruler.before("image","img-size",d)},e$3=(e,t)=>{let r=e.pos,n=e.src.charCodeAt(r);if(t||43!==n)return!1;let i=e.scanDelims(e.pos,!0),{length:o}=i;if(o<2)return!1;let s=String.fromCharCode(n);if(o%2){e.push("text","",0).content=s,o--}for(let a=0;a<o;a+=2){e.push("text","",0).content=s+s,(i.can_open||i.can_close)&&e.delimiters.push({marker:43,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0},t$6=(e,t)=>{let r,n=[],i=t.length;for(let o=0;o<i;o++){let i=t[o];if(43===i.marker&&-1!==i.end){let o=t[i.end];r=e.tokens[i.token],r.type="ins_open",r.tag="ins",r.nesting=1,r.markup="++",r.content="",r=e.tokens[o.token],r.type="ins_close",r.tag="ins",r.nesting=-1,r.markup="++",r.content="","text"===e.tokens[o.token-1].type&&"+"===e.tokens[o.token-1].content&&n.push(o.token-1)}}for(;n.length>0;){let t=n.pop(),i=t+1;for(;i<e.tokens.length&&"ins_close"===e.tokens[i].type;)i++;i--,t!==i&&(r=e.tokens[i],e.tokens[i]=e.tokens[t],e.tokens[t]=r)}},n$6=e=>{e.inline.ruler.before("emphasis","ins",e$3),e.inline.ruler2.before("emphasis","ins",e=>{t$6(e,e.delimiters);let t=e.tokens_meta,r=t.length;if(0===r)return!0;for(let n=0;n<r;n++){let r=t[n];r?.delimiters.length&&t$6(e,r.delimiters)}return!0})},r$5=e=>e.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'"),o$3=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/gu,t$5=String.raw`\[`,n$5=String.raw`\(`,r$4=(e,t,r=0)=>{let n=0,i=t-1;for(;i>=r&&92===e.charCodeAt(i);)n++,i--;return n},i$2=(e,t,r)=>{let n=e.src.charCodeAt(t-1),i=e.src.charCodeAt(t+1);return{canOpen:r||!isSpace(i),canClose:!(i>=48&&i<=57)&&(r||!isSpace(n))}},a$2=e=>(t,r)=>{if("$"!==t.src[t.pos])return!1;let n=i$2(t,t.pos,e);if(!n.canOpen)return r||(t.pending+="$"),t.pos++,!0;let i,o=t.pos+1,s=o,a=t.src.lastIndexOf("$");if(-1===a)return!1;for(;(s=t.src.indexOf("$",s))<=a;){for(i=s-1;92===t.src.charCodeAt(i);)i--;if((s-i)%2==1)break;s++}if(-1===s)return r||(t.pending+="$"),t.pos=o,!0;if(s-o===0)return r||(t.pending+="$$"),t.pos=o+1,!0;if(n=i$2(t,s,e),!n.canClose)return r||(t.pending+="$"),t.pos=o,!0;if(!r){let e=t.push("math_inline","math",0);e.markup="$",e.content=t.src.slice(o,s)}return t.pos=s+1,!0},o$2=()=>(e,t)=>{let r=e.pos;if(92!==e.src.charCodeAt(r)||40!==e.src.charCodeAt(r+1))return!1;let n=r+2,i=!1,o=e.src.length;for(;n<o-1;){if(92===e.src.charCodeAt(n)&&41===e.src.charCodeAt(n+1)){if(r$4(e.src,r)%2==1)return!1;if(r$4(e.src,n,r+2)%2==0){i=!0;break}}n++}if(!i)return!1;if(!t){let t=e.push("math_inline","math",0);t.markup=n$5,t.content=e.src.slice(r+2,n)}return e.pos=n+2,!0},s=(e,t,r,n)=>{let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(i+2>o||36!==e.src.charCodeAt(i)||36!==e.src.charCodeAt(i+1))return!1;if(n)return!0;let s,a=e.skipSpacesBack(o,i),u=i+2,l=!1;a-u>=2&&36===e.src.charCodeAt(a-1)&&36===e.src.charCodeAt(a-2)?(s=e.src.slice(u,a-2),l=!0):s=e.src.slice(u,o);let c=t,f="";for(;!(l||(c++,c>=r||(u=e.bMarks[c]+e.tShift[c],o=e.eMarks[c],u<o&&e.tShift[c]<e.blkIndent)));)a=e.skipSpacesBack(o,u),a-u>=2&&36===e.src.charCodeAt(a-1)&&36===e.src.charCodeAt(a-2)&&(f=e.src.slice(u,a-2),l=!0);e.line=l?c+1:c;let p=e.push("math_block","math",0);return p.block=!0,p.content=(s?`${s}\n`:"")+e.getLines(t+1,c,e.tShift[t],!0)+(f?`${f}\n`:""),p.map=[t,e.line],p.markup="$$",!0},c=()=>(e,t,r,n)=>{let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(i+2>o||92!==e.src.charCodeAt(i)||91!==e.src.charCodeAt(i+1))return!1;if(n)return!0;let s,a=e.skipSpacesBack(o,i),u=i+2,l=!1;a-u>=2&&93===e.src.charCodeAt(a-1)&&92===e.src.charCodeAt(a-2)?(s=e.src.slice(u,a-2),l=!0):s=e.src.slice(u,o);let c=t,f="";for(;!(l||(c++,c>=r||(u=e.bMarks[c]+e.tShift[c],o=e.eMarks[c],u<o&&e.tShift[c]<e.blkIndent)));)a=e.skipSpacesBack(o,u),a-u>=2&&93===e.src.charCodeAt(a-1)&&92===e.src.charCodeAt(a-2)&&(f=e.src.slice(u,a-2).trimEnd(),l=!0);if(!l)return!1;e.line=c+1;let p=e.push("math_block","math",0);return p.block=!0,p.content=(s?`${s}\n`:"")+e.getLines(t+1,c,e.tShift[t],!0)+(f?`${f}\n`:""),p.map=[t,e.line],p.markup=t$5,!0},l={alt:["paragraph","reference","blockquote","list"]},u=(e,t)=>{if("function"!=typeof t?.render)throw TypeError('[@mdit/plugin-tex]: "render" option should be a function');let{allowInlineWithSpace:r=!1,mathFence:n=!1,delimiters:i="dollars",render:o}=t;if(n){let t=e.renderer.rules.fence;e.renderer.rules.fence=(e,r,n,i,s)=>{let a=e[r];return"math"===a.info.trim()?o(a.content,!0,i):t(e,r,n,i,s)}}("dollars"===i||"all"===i)&&(e.inline.ruler.after("escape","math_inline_dollar",a$2(r)),e.block.ruler.after("blockquote","math_block_dollar",s,l)),("brackets"===i||"all"===i)&&(e.inline.ruler.before("escape","math_inline_bracket",o$2()),e.block.ruler.after("blockquote","math_block_bracket",c(),l)),e.renderer.rules.math_inline=(e,t,r,n)=>o(e[t].content,!1,n),e.renderer.rules.math_block=(e,t,r,n)=>o(e[t].content,!0,n)},i$1=(e,t,r)=>{let n;try{n=renderToString(e,t)}catch(i){if(!(i instanceof ParseError))throw i;console.error(i),n=`<span class='katex-error' title='${r$5(i.toString())}'>${r$5(e)}</span>`}return r?.(n,!1)??n},a$1=(e,t,r)=>{let n;try{n=`<p class='katex-block'>${renderToString(e,t)}</p>\n`}catch(i){if(!(i instanceof ParseError))throw i;console.error(i),n=`<p class='katex-block katex-error' title='${r$5(i.toString())}'>${r$5(e)}</p>\n`}return r?.(n,!0)??n},o$1=(e,{allowInlineWithSpace:t=!1,delimiters:r,mathFence:n,logger:i=e=>"newLineInDisplayMode"===e?"ignore":"warn",transformer:o,...s}={})=>{let a=Object.assign({macros:{},throwOnError:!1},s);e.use(u,{allowInlineWithSpace:t,delimiters:r,mathFence:n,render:(e,t,r)=>{let n=Object.assign({},a,{strict:(e,t,n)=>i(e,t,n,r)??"ignore",displayMode:t});return t?a$1(e,n,o):i$1(e,n,o)}})},e$2=(e,t)=>{let r=e.pos,n=e.src.charCodeAt(r);if(t||61!==n)return!1;let i=e.scanDelims(e.pos,!0),o=i.length;if(o<2)return!1;let s=String.fromCharCode(n);if(o%2){e.push("text","",0).content=s,o--}for(let a=0;a<o;a+=2){e.push("text","",0).content=s+s,(i.can_open||i.can_close)&&e.delimiters.push({marker:61,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0},t$4=(e,t)=>{let r,n=[],i=t.length;for(let o=0;o<i;o++){let i=t[o];if(61===i.marker&&-1!==i.end){let o=t[i.end];r=e.tokens[i.token],r.type="mark_open",r.tag="mark",r.nesting=1,r.markup="==",r.content="",r=e.tokens[o.token],r.type="mark_close",r.tag="mark",r.nesting=-1,r.markup="==",r.content="","text"===e.tokens[o.token-1].type&&"="===e.tokens[o.token-1].content&&n.push(o.token-1)}}for(;n.length>0;){let t=n.pop(),i=t+1;for(;i<e.tokens.length&&"mark_close"===e.tokens[i].type;)i++;i--,t!==i&&(r=e.tokens[i],e.tokens[i]=e.tokens[t],e.tokens[t]=r)}},n$4=e=>{e.inline.ruler.before("emphasis","mark",e$2),e.inline.ruler2.before("emphasis","mark",e=>{t$4(e,e.delimiters);let t=e.tokens_meta,r=t.length;if(0===r)return!0;for(let n=0;n<r;n++){let r=t[n];r?.delimiters.length&&t$4(e,r.delimiters)}return!0})},e$1=[["class","spoiler"],["tabindex","-1"]],t$3=(e,t)=>{let r=e.pos,n=e.src.charCodeAt(r);if(t||33!==n)return!1;let i=e.scanDelims(e.pos,!0),o=i.length;if(o<2)return!1;let s=String.fromCharCode(n);if(o%2){e.push("text","",0).content=s,o--}for(let a=0;a<o;a+=2){e.push("text","",0).content=s+s,(i.can_open||i.can_close)&&e.delimiters.push({marker:33,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0},n$3=(e,t,r,n)=>{let i,o=[],s=t.length;for(let a=0;a<s;a++){let s=t[a];if(33===s.marker&&-1!==s.end){let a=t[s.end];i=e.tokens[s.token],i.type="spoiler_open",i.tag=r,i.nesting=1,i.markup="!!",i.attrs=n,i.content="",i=e.tokens[a.token],i.type="spoiler_close",i.tag=r,i.nesting=-1,i.markup="!!",i.content="","text"===e.tokens[a.token-1].type&&"!"===e.tokens[a.token-1].content&&o.push(a.token-1)}}for(;o.length>0;){let t=o.pop(),r=t+1;for(;r<e.tokens.length&&"spoiler_close"===e.tokens[r].type;)r++;r--,t!==r&&(i=e.tokens[r],e.tokens[r]=e.tokens[t],e.tokens[t]=i)}},r$3=(e,t)=>{let{tag:r="span",attrs:n=e$1}=t??{};e.inline.ruler.before("emphasis","spoiler",t$3),e.inline.ruler2.before("emphasis","spoiler",e=>{e.delimiters.length>0&&n$3(e,e.delimiters,r,n);let t=e.tokens_meta,i=t.length;if(0===i)return!0;for(let o=0;o<i;o++){let i=t[o];i?.delimiters.length&&n$3(e,i.delimiters,r,n)}return!0})},t$2=/(^|[^\\])(\\\\)*\s/u,n$2=(e,t)=>{let r=e.posMax,n=e.pos;if(126!==e.src.charCodeAt(n)||t||n+2>=r)return!1;e.pos=n+1;let i=!1;for(;e.pos<r;){if(126===e.src.charCodeAt(e.pos)){i=!0;break}e.md.inline.skipToken(e)}if(!i||n+1===e.pos)return e.pos=n,!1;let o=e.src.slice(n+1,e.pos);return t$2.test(o)?(e.pos=n,!1):(e.posMax=e.pos,e.pos=n+1,e.push("sub_open","sub",1).markup="~",e.push("text","",0).content=o.replace(o$3,"$1"),e.push("sub_close","sub",-1).markup="~",e.pos=e.posMax+1,e.posMax=r,!0)},r$2=e=>{e.inline.ruler.after("emphasis","sub",n$2)},t$1=/(^|[^\\])(\\\\)*\s/u,n$1=(e,t)=>{let r=e.posMax,n=e.pos;if(94!==e.src.charCodeAt(n)||t||n+2>=r)return!1;e.pos=n+1;let i=!1;for(;e.pos<r;){if(94===e.src.charCodeAt(e.pos)){i=!0;break}e.md.inline.skipToken(e)}if(!i||n+1===e.pos)return e.pos=n,!1;let o=e.src.slice(n+1,e.pos);return t$1.test(o)?(e.pos=n,!1):(e.posMax=e.pos,e.pos=n+1,e.push("sup_open","sup",1).markup="^",e.push("text","",0).content=o.replace(o$3,"$1"),e.push("sup_close","sup",-1).markup="^",e.pos=e.posMax+1,e.posMax=r,!0)},r$1=e=>{e.inline.ruler.after("emphasis","sup",n$1)},e=(e,t,r)=>{let n=e.attrIndex(t),i=[t,r];n<0?e.attrPush(i):e.attrs[n]=i},t=(e,t)=>{let r=e[t].level-1;for(let n=t-1;n>=0;n--)if(e[n].level===r)return n;return-1},n=e=>"inline"===e.type,r=e=>"paragraph_open"===e.type,i=e=>"list_item_open"===e.type,a=e=>{let t=e.content;if(t.length<4||91!==t.charCodeAt(0)||93!==t.charCodeAt(2))return!1;let r=t.charCodeAt(3);if(32!==r&&160!==r)return!1;let n=t.charCodeAt(1);return 120===n||88===n?"checked":32===n||160===n},o=(o,{disabled:s=!0,label:u=!0,containerClass:l="task-list-container",itemClass:c="task-list-item",checkboxClass:f="task-list-item-checkbox",labelClass:p="task-list-item-label"}={})=>{o.core.ruler.after("inline","task_list",o=>{let h=o.tokens;o.env.tasklistId||=0;for(let d=2;d<h.length;d++){let g=h[d];if(!n(g)||!r(h[d-1])||!i(h[d-2]))continue;let m=a(g);if(!1===m)continue;g.children??=[],g.children[0].content=g.children[0].content.slice(3);let y="task-item-"+o.env.tasklistId++;if(u){let e=new o.Token("label_open","label",1);e.attrs=[["class",p],["for",y]],g.children.unshift(e),g.children.push(new o.Token("label_close","label",-1))}let b=new o.Token("checkbox_input","input",0);b.attrs=[["type","checkbox"],["class",f],["id",y]],"checked"===m&&b.attrs.push(["checked","checked"]),s&&b.attrs.push(["disabled","disabled"]),g.children.unshift(b),e(h[d-2],"class",c),e(h[t(h,d-2)],"class",l)}return!0})};export{n$8 as a,bufferExports as b,n$6 as c,n$4 as d,e$5 as e,f,r$3 as g,r$2 as h,r$1 as i,o as j,frontmatterPlugin as k,tocPlugin as l,componentPlugin as m,n$a as n,o$1 as o,p,r$7 as r,sfcPlugin as s,t$7 as t};
|