@ckeditor/ckeditor5-markdown-gfm 46.0.0-alpha.8 → 46.0.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md.
4
- */(()=>{var e={237:e=>{"use strict";e.exports=CKEditor5.dll},331:(e,t,n)=>{e.exports=n(237)("./src/clipboard.js")},710:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},l=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,c,u,f=arguments[0],p=1,h=arguments.length,d=!1;for("boolean"==typeof f&&(d=f,f=arguments[1]||{},p=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});p<h;++p)if(null!=(t=arguments[p]))for(n in t)r=s(f,n),f!==(o=s(t,n))&&(d&&o&&(l(o)||(c=i(o)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&l(r)?r:{},a(f,{name:n,newValue:e(d,u,o)})):void 0!==o&&a(f,{name:n,newValue:o}));return f}},782:(e,t,n)=>{e.exports=n(237)("./src/core.js")},783:(e,t,n)=>{e.exports=n(237)("./src/engine.js")}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{"use strict";n.r(r),n.d(r,{Markdown:()=>Es,MarkdownGfmDataProcessor:()=>Ts,MarkdownGfmHtmlToMd:()=>Cs,MarkdownGfmMdToHtml:()=>hl,PasteFromMarkdownExperimental:()=>Ps});var e={};n.r(e),n.d(e,{attentionMarkers:()=>Sr,contentInitial:()=>yr,disable:()=>Cr,document:()=>mr,flow:()=>br,flowInitial:()=>kr,insideSpan:()=>wr,string:()=>vr,text:()=>xr});var t={};n.r(t),n.d(t,{boolean:()=>So,booleanish:()=>Co,commaOrSpaceSeparated:()=>Io,commaSeparated:()=>No,number:()=>To,overloadedBoolean:()=>Ao,spaceSeparated:()=>Eo});var o=n(782),i=n(783);function l(e){if(e)throw e}var a=n(710);function s(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function c(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(i,...l){const a=e[++n];let s=-1;if(i)r(i);else{for(;++s<t.length;)null!==l[s]&&void 0!==l[s]||(l[s]=t[s]);t=l,a?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let l;r&&t.push(o);try{l=e.apply(this,t)}catch(e){if(r&&n)throw e;return o(e)}r||(l&&l.then&&"function"==typeof l.then?l.then(i,o):l instanceof Error?o(l):i(l))}function o(e,...r){n||(n=!0,t(e,...r))}function i(e){o(null,e)}}(a,o)(...l):r(null,...l)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}function u(e){return e&&"object"==typeof e?"position"in e||"type"in e?p(e.position):"start"in e||"end"in e?p(e):"line"in e||"column"in e?f(e):"":""}function f(e){return h(e&&e.line)+":"+h(e&&e.column)}function p(e){return f(e&&e.start)+"-"+f(e&&e.end)}function h(e){return e&&"number"==typeof e?e:1}class d extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",o={},i=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!o.cause&&e&&(i=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.position)}const l=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=l?l.line:void 0,this.name=u(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=i&&o.cause&&"string"==typeof o.cause.stack?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}d.prototype.file="",d.prototype.name="",d.prototype.reason="",d.prototype.message="",d.prototype.stack="",d.prototype.column=void 0,d.prototype.line=void 0,d.prototype.ancestors=void 0,d.prototype.cause=void 0,d.prototype.fatal=void 0,d.prototype.place=void 0,d.prototype.ruleId=void 0,d.prototype.source=void 0;const g={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');m(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let l=-1,a=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else l<0&&(n=!0,l=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(o=i):(a=-1,o=l));r===o?o=l:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(m(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){m(e);let t,n=e.length,r=-1,o=0,i=-1,l=0;for(;n--;){const a=e.codePointAt(n);if(47!==a)r<0&&(t=!0,r=n+1),46===a?i<0?i=n:1!==l&&(l=1):i>-1&&(l=-1);else if(t){o=n+1;break}}if(i<0||r<0||0===l||1===l&&i===r-1&&i===o+1)return"";return e.slice(i,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)m(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){m(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,o="",i=0,l=-1,a=0,s=-1;for(;++s<=e.length;){if(s<e.length)n=e.codePointAt(s);else{if(47===n)break;n=47}if(47===n){if(l===s-1||1===a);else if(l!==s-1&&2===a){if(o.length<2||2!==i||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),l=s,a=0;continue}}else if(o.length>0){o="",i=0,l=s,a=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(l+1,s):o=e.slice(l+1,s),i=s-l-1;l=s,a=0}else 46===n&&a>-1?a++:a=-1}return o}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function m(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const y={cwd:function(){return"/"}};function k(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function b(e){if("string"==typeof e)e=new URL(e);else if(!k(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const v=["history","path","basename","stem","extname","dirname"];class x{constructor(e){let t;t=e?k(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":y.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<v.length;){const e=v[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)v.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?g.basename(this.path):void 0}set basename(e){S(e,"basename"),w(e,"basename"),this.path=g.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?g.dirname(this.path):void 0}set dirname(e){C(this.basename,"dirname"),this.path=g.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?g.extname(this.path):void 0}set extname(e){if(w(e,"extname"),C(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=g.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){k(e)&&(e=b(e)),S(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?g.basename(this.path,this.extname):void 0}set stem(e){S(e,"stem"),w(e,"stem"),this.path=g.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new d(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function w(e,t){if(e&&e.includes(g.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+g.sep+"`")}function S(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function C(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const A=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},T={}.hasOwnProperty;class E extends A{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=c()}copy(){const e=new E;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(a(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(D("data",this.frozen),this.namespace[e]=t,this):T.call(this.namespace,e)&&this.namespace[e]||void 0:e?(D("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=L(e),n=this.parser||this.Parser;return I("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),I("process",this.parser||this.Parser),P("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const i=L(e),l=n.parse(i);function a(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(l,i,function(e,t,r){if(e||!t||!r)return a(e);const o=t,i=n.stringify(o,r);var l;"string"==typeof(l=i)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(l)?r.value=i:r.result=i,a(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),I("processSync",this.parser||this.Parser),P("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,l(e),t=r}),F("processSync","process",n),t}run(e,t,n){O(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?o(void 0,n):new Promise(o);function o(o,i){const l=L(t);r.run(e,l,function(t,r,l){const a=r||e;t?i(t):o?o(a):n(void 0,a,l)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){l(e),n=t,r=!0}),F("runSync","run",r),n}stringify(e,t){this.freeze();const n=L(t),r=this.compiler||this.Compiler;return P("stringify",r),O(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(D("use",this.frozen),null==e);else if("function"==typeof e)c(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?l(e):i(e)}return this;function o(e){if("function"==typeof e)c(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;c(t,n)}else i(e)}}function i(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(e.plugins),e.settings&&(r.settings=a(!0,r.settings,e.settings))}function l(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){o(e[t])}}}function c(e,t){let r=-1,o=-1;for(;++r<n.length;)if(n[r][0]===e){o=r;break}if(-1===o)n.push([e,...t]);else if(t.length>0){let[r,...i]=t;const l=n[o][1];s(l)&&s(r)&&(r=a(!0,l,r)),n[o]=[e,r,...i]}}}}const N=(new E).freeze();function I(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function P(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function D(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function O(e){if(!s(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function F(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function L(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new x(e)}function M(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}const R=G(/[A-Za-z]/),z=G(/[\dA-Za-z]/),_=G(/[#-'*+\--9=?A-Z^-~]/);function B(e){return null!==e&&(e<32||127===e)}const j=G(/\d/),H=G(/[\dA-Fa-f]/),U=G(/[!-/:-@[-`{-~]/);function q(e){return null!==e&&e<-2}function V(e){return null!==e&&(e<0||32===e)}function W(e){return-2===e||-1===e||32===e}const $=G(/\p{P}|\p{S}/u),Y=G(/\s/);function G(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}const Q=function(e){if(null==e)return Z;if("function"==typeof e)return K(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Q(e[n]);return K(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return K(n);function n(n){const r=n;let o;for(o in e)if(r[o]!==t[o])return!1;return!0}}(e);if("string"==typeof e)return function(e){return K(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function K(e){return function(t,n,r){return Boolean(X(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function Z(){return!0}function X(e){return null!==e&&"object"==typeof e&&"type"in e}const J=[],ee=!0,te=!1,ne="skip";function re(e,t,n,r){let o;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):o=t;const i=Q(o),l=r?-1:1;!function e(o,a,s){const c=o&&"object"==typeof o?o:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,f,p=J;if((!t||i(o,a,s[s.length-1]||void 0))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[ee,e];return null==e?J:[e]}(n(o,s)),p[0]===te))return p;if("children"in o&&o.children){const t=o;if(t.children&&p[0]!==ne)for(u=(r?t.children.length:-1)+l,f=s.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,f)(),c[0]===te)return c;u="number"==typeof c[1]?c[1]:u+l}}return p}}(e,void 0,[])()}function oe(e,t,n){const r=Q((n||{}).ignore||[]),o=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([ie(e[0]),le(e[1])])}return t}(t);let i=-1;for(;++i<o.length;)re(e,"text",l);function l(e,t){let n,l=-1;for(;++l<t.length;){const e=t[l],o=n?n.children:void 0;if(r(e,o?o.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=o[i][0],l=o[i][1];let a=0;const s=n.children,c=s.indexOf(e);let u=!1,f=[];r.lastIndex=0;let p=r.exec(e.value);for(;p;){const n=p.index,o={index:p.index,input:p.input,stack:[...t,e]};let i=l(...p,o);if("string"==typeof i&&(i=i.length>0?{type:"text",value:i}:void 0),!1===i?r.lastIndex=n+1:(a!==n&&f.push({type:"text",value:e.value.slice(a,n)}),Array.isArray(i)?f.push(...i):i&&f.push(i),a=n+p[0].length,u=!0),!r.global)break;p=r.exec(e.value)}u?(a<e.value.length&&f.push({type:"text",value:e.value.slice(a)}),n.children.splice(c,1,...f)):f=[e];return c+f.length}(e,t)}}function ie(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function le(e){return"function"==typeof e?e:function(){return e}}const ae="phrasing",se=["autolink","link","image","label"];function ce(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function ue(e){this.config.enter.autolinkProtocol.call(this,e)}function fe(e){this.config.exit.autolinkProtocol.call(this,e)}function pe(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function he(e){this.config.exit.autolinkEmail.call(this,e)}function de(e){this.exit(e)}function ge(e){oe(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,me],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,ye]],{ignore:["link","linkReference"]})}function me(e,t,n,r,o){let i="";if(!ke(o))return!1;if(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const l=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const o=M(e,"(");let i=M(e,")");for(;-1!==r&&o>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}(n+r);if(!l[0])return!1;const a={type:"link",title:null,url:i+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[a,{type:"text",value:l[1]}]:a}function ye(e,t,n,r){return!(!ke(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function ke(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||Y(n)||$(n))&&(!t||47!==n)}function be(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function ve(){this.buffer()}function xe(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function we(){this.buffer()}function Se(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Ce(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=be(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Ae(e){this.exit(e)}function Te(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=be(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Ee(e){this.exit(e)}function Ne(e,t,n,r){const o=n.createTracker(r);let i=o.move("[^");const l=n.enter("footnoteReference"),a=n.enter("reference");return i+=o.move(n.safe(n.associationId(e),{after:"]",before:i})),a(),l(),i+=o.move("]"),i}function Ie(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,o){const i=r.createTracker(o);let l=i.move("[^");const a=r.enter("footnoteDefinition"),s=r.enter("label");l+=i.move(r.safe(r.associationId(e),{before:l,after:"]"})),s(),l+=i.move("]:"),e.children&&e.children.length>0&&(i.shift(4),l+=i.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,i.current()),t?De:Pe)));return a(),l},footnoteReference:Ne},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function Pe(e,t,n){return 0===t?e:De(e,t,n)}function De(e,t,n){return(n?"":" ")+e}Ne.peek=function(){return"["};const Oe=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function Fe(e){this.enter({type:"delete",children:[]},e)}function Le(e){this.exit(e)}function Me(e,t,n,r){const o=n.createTracker(r),i=n.enter("strikethrough");let l=o.move("~~");return l+=n.containerPhrasing(e,{...o.current(),before:l,after:"~"}),l+=o.move("~~"),i(),l}function Re(e){return e.length}function ze(e){return null==e?"":String(e)}function _e(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function Be(e,t,n){return">"+(n?"":" ")+e}function je(e,t){return He(e,t.inConstruct,!0)&&!He(e,t.notInConstruct,!1)}function He(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Ue(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;)if("\n"===n.unsafe[o].character&&je(n.stack,n.unsafe[o]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}function qe(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Ve(e,t,n){return(n?"":" ")+e}function We(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function $e(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Ye(e){return null===e||V(e)||Y(e)?1:$(e)?2:void 0}function Ge(e,t,n){const r=Ye(e),o=Ye(t);return void 0===r?void 0===o?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===o?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===o?{inside:!1,outside:!1}:1===o?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===o?{inside:!1,outside:!1}:1===o?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function Qe(e,t,n,r){const o=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),i=n.enter("emphasis"),l=n.createTracker(r),a=l.move(o);let s=l.move(n.containerPhrasing(e,{after:o,before:a,...l.current()}));const c=s.charCodeAt(0),u=Ge(r.before.charCodeAt(r.before.length-1),c,o);u.inside&&(s=$e(c)+s.slice(1));const f=s.charCodeAt(s.length-1),p=Ge(r.after.charCodeAt(0),f,o);p.inside&&(s=s.slice(0,-1)+$e(f));const h=l.move(o);return i(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},a+s+h}function Ke(e,t,n,r){let o,i,l;"function"==typeof t&&"function"!=typeof n?(i=void 0,l=t,o=n):(i=t,l=n,o=r),re(e,i,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return l(e,r,n)},o)}Me.peek=function(){return"~"},Qe.peek=function(e,t,n){return n.options.emphasis||"*"};const Ze={};function Xe(e,t){const n=t||Ze;return Je(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function Je(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return et(e.children,t,n)}return Array.isArray(e)?et(e,t,n):""}function et(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=Je(e[o],t,n);return r.join("")}function tt(e,t){let n=!1;return Ke(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,te}),Boolean((!e.depth||e.depth<3)&&Xe(e)&&(t.options.setext||n))}function nt(e){return e.value||""}function rt(e,t,n,r){const o=We(n),i='"'===o?"Quote":"Apostrophe",l=n.enter("image");let a=n.enter("label");const s=n.createTracker(r);let c=s.move("![");return c+=s.move(n.safe(e.alt,{before:c,after:"]",...s.current()})),c+=s.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(a=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),a(),e.title&&(a=n.enter(`title${i}`),c+=s.move(" "+o),c+=s.move(n.safe(e.title,{before:c,after:o,...s.current()})),c+=s.move(o),a()),c+=s.move(")"),l(),c}function ot(e,t,n,r){const o=e.referenceType,i=n.enter("imageReference");let l=n.enter("label");const a=n.createTracker(r);let s=a.move("![");const c=n.safe(e.alt,{before:s,after:"]",...a.current()});s+=a.move(c+"]["),l();const u=n.stack;n.stack=[],l=n.enter("reference");const f=n.safe(n.associationId(e),{before:s,after:"]",...a.current()});return l(),n.stack=u,i(),"full"!==o&&c&&c===f?"shortcut"===o?s=s.slice(0,-1):s+=a.move("]"):s+=a.move(f+"]"),s}function it(e,t,n){let r=e.value||"",o="`",i=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const e=n.unsafe[i],t=n.compilePattern(e);let o;if(e.atBreak)for(;o=t.exec(r);){let e=o.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(o.index+1)}}return o+r+o}function lt(e,t){const n=Xe(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function at(e,t,n,r){const o=We(n),i='"'===o?"Quote":"Apostrophe",l=n.createTracker(r);let a,s;if(lt(e,n)){const t=n.stack;n.stack=[],a=n.enter("autolink");let r=l.move("<");return r+=l.move(n.containerPhrasing(e,{before:r,after:">",...l.current()})),r+=l.move(">"),a(),n.stack=t,r}a=n.enter("link"),s=n.enter("label");let c=l.move("[");return c+=l.move(n.containerPhrasing(e,{before:c,after:"](",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=l.move(" "+o),c+=l.move(n.safe(e.title,{before:c,after:o,...l.current()})),c+=l.move(o),s()),c+=l.move(")"),a(),c}function st(e,t,n,r){const o=e.referenceType,i=n.enter("linkReference");let l=n.enter("label");const a=n.createTracker(r);let s=a.move("[");const c=n.containerPhrasing(e,{before:s,after:"]",...a.current()});s+=a.move(c+"]["),l();const u=n.stack;n.stack=[],l=n.enter("reference");const f=n.safe(n.associationId(e),{before:s,after:"]",...a.current()});return l(),n.stack=u,i(),"full"!==o&&c&&c===f?"shortcut"===o?s=s.slice(0,-1):s+=a.move("]"):s+=a.move(f+"]"),s}function ct(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function ut(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}nt.peek=function(){return"<"},rt.peek=function(){return"!"},ot.peek=function(){return"!"},it.peek=function(){return"`"},at.peek=function(e,t,n){return lt(e,n)?"<":"["},st.peek=function(){return"["};const ft=Q(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function pt(e,t,n,r){const o=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),i=n.enter("strong"),l=n.createTracker(r),a=l.move(o+o);let s=l.move(n.containerPhrasing(e,{after:o,before:a,...l.current()}));const c=s.charCodeAt(0),u=Ge(r.before.charCodeAt(r.before.length-1),c,o);u.inside&&(s=$e(c)+s.slice(1));const f=s.charCodeAt(s.length-1),p=Ge(r.after.charCodeAt(0),f,o);p.inside&&(s=s.slice(0,-1)+$e(f));const h=l.move(o+o);return i(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},a+s+h}pt.peek=function(e,t,n){return n.options.strong||"*"};const ht={blockquote:function(e,t,n,r){const o=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const l=n.indentLines(n.containerFlow(e,i.current()),Be);return o(),l},break:Ue,code:function(e,t,n,r){const o=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),i=e.value||"",l="`"===o?"GraveAccent":"Tilde";if(qe(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(i,Ve);return e(),t}const a=n.createTracker(r),s=o.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),o=r,i=0,l=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===o?++i>l&&(l=i):i=1,o=r+t.length,r=n.indexOf(t,o);return l}(i,o)+1,3)),c=n.enter("codeFenced");let u=a.move(s);if(e.lang){const t=n.enter(`codeFencedLang${l}`);u+=a.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...a.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${l}`);u+=a.move(" "),u+=a.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...a.current()})),t()}return u+=a.move("\n"),i&&(u+=a.move(i+"\n")),u+=a.move(s),c(),u},definition:function(e,t,n,r){const o=We(n),i='"'===o?"Quote":"Apostrophe",l=n.enter("definition");let a=n.enter("label");const s=n.createTracker(r);let c=s.move("[");return c+=s.move(n.safe(n.associationId(e),{before:c,after:"]",...s.current()})),c+=s.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(a=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...s.current()}))),a(),e.title&&(a=n.enter(`title${i}`),c+=s.move(" "+o),c+=s.move(n.safe(e.title,{before:c,after:o,...s.current()})),c+=s.move(o),a()),l(),c},emphasis:Qe,hardBreak:Ue,heading:function(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(tt(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),l=n.containerPhrasing(e,{...i.current(),before:"\n",after:"\n"});return r(),t(),l+"\n"+(1===o?"=":"-").repeat(l.length-(Math.max(l.lastIndexOf("\r"),l.lastIndexOf("\n"))+1))}const l="#".repeat(o),a=n.enter("headingAtx"),s=n.enter("phrasing");i.move(l+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...i.current()});return/^[\t ]/.test(c)&&(c=$e(c.charCodeAt(0))+c.slice(1)),c=c?l+" "+c:l,n.options.closeAtx&&(c+=" "+l),s(),a(),c},html:nt,image:rt,imageReference:ot,inlineCode:it,link:at,linkReference:st,list:function(e,t,n,r){const o=n.enter("list"),i=n.bulletCurrent;let l=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):ct(n);const a=e.ordered?"."===l?")":".":function(e){const t=ct(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let s=!(!t||!n.bulletLastUsed)&&l===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==l&&"-"!==l||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(s=!0),ut(n)===l&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){s=!0;break}}}}s&&(l=a),n.bulletCurrent=l;const c=n.containerFlow(e,r);return n.bulletLastUsed=l,n.bulletCurrent=i,o(),c},listItem:function(e,t,n,r){const o=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let i=n.bulletCurrent||ct(n);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i);let l=i.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(l=4*Math.ceil(l/4));const a=n.createTracker(r);a.move(i+" ".repeat(l-i.length)),a.shift(l);const s=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,a.current()),function(e,t,n){if(t)return(n?"":" ".repeat(l))+e;return(n?i:i+" ".repeat(l-i.length))+e});return s(),c},paragraph:function(e,t,n,r){const o=n.enter("paragraph"),i=n.enter("phrasing"),l=n.containerPhrasing(e,r);return i(),o(),l},root:function(e,t,n,r){return(e.children.some(function(e){return ft(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:pt,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(ut(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function dt(e){const t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function gt(e){this.exit(e),this.data.inTable=void 0}function mt(e){this.enter({type:"tableRow",children:[]},e)}function yt(e){this.exit(e)}function kt(e){this.enter({type:"tableCell",children:[]},e)}function bt(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,vt));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function vt(e,t){return"|"===t?t:e}function xt(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=ht.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return a(function(e,t,n){const r=e.children;let o=-1;const i=[],l=t.enter("table");for(;++o<r.length;)i[o]=s(r[o],t,n);return l(),i}(e,n,r),e.align)},tableCell:l,tableRow:function(e,t,n,r){const o=s(e,n,r),i=a([o]);return i.slice(0,i.indexOf("\n"))}}};function l(e,t,n,r){const o=n.enter("tableCell"),l=n.enter("phrasing"),a=n.containerPhrasing(e,{...r,before:i,after:i});return l(),o(),a}function a(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),o=n.stringLength||Re,i=[],l=[],a=[],s=[];let c=0,u=-1;for(;++u<e.length;){const t=[],r=[];let i=-1;for(e[u].length>c&&(c=e[u].length);++i<e[u].length;){const l=ze(e[u][i]);if(!1!==n.alignDelimiters){const e=o(l);r[i]=e,(void 0===s[i]||e>s[i])&&(s[i]=e)}t.push(l)}l[u]=t,a[u]=r}let f=-1;if("object"==typeof r&&"length"in r)for(;++f<c;)i[f]=_e(r[f]);else{const e=_e(r);for(;++f<c;)i[f]=e}f=-1;const p=[],h=[];for(;++f<c;){const e=i[f];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let o=!1===n.alignDelimiters?1:Math.max(1,s[f]-t.length-r.length);const l=t+"-".repeat(o)+r;!1!==n.alignDelimiters&&(o=t.length+o+r.length,o>s[f]&&(s[f]=o),h[f]=o),p[f]=l}l.splice(1,0,p),a.splice(1,0,h),u=-1;const d=[];for(;++u<l.length;){const e=l[u],t=a[u];f=-1;const r=[];for(;++f<c;){const o=e[f]||"";let l="",a="";if(!1!==n.alignDelimiters){const e=s[f]-(t[f]||0),n=i[f];114===n?l=" ".repeat(e):99===n?e%2?(l=" ".repeat(e/2+.5),a=" ".repeat(e/2-.5)):(l=" ".repeat(e/2),a=l):a=" ".repeat(e)}!1===n.delimiterStart||f||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===o||!1===n.delimiterStart&&!f||r.push(" "),!1!==n.alignDelimiters&&r.push(l),r.push(o),!1!==n.alignDelimiters&&r.push(a),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&f===c-1||r.push("|")}d.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return d.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:o})}function s(e,t,n){const r=e.children;let o=-1;const i=[],a=t.enter("tableRow");for(;++o<r.length;)i[o]=l(r[o],0,t,n);return a(),i}}function wt(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function St(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const n=e.children[0];if(n&&"text"===n.type){const r=t.children;let o,i=-1;for(;++i<r.length;){const e=r[i];if("paragraph"===e.type){o=e;break}}o===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function Ct(e,t,n,r){const o=e.children[0],i="boolean"==typeof e.checked&&o&&"paragraph"===o.type,l="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);i&&a.move(l);let s=ht.listItem(e,t,n,{...r,...a.current()});return i&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+l})),s}function At(e,t,n,r){const o=e.length;let i,l=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);l<r.length;)i=r.slice(l,l+1e4),i.unshift(t,0),e.splice(...i),l+=1e4,t+=1e4}function Tt(e,t){return e.length>0?(At(e,e.length,0,t),e):t}const Et={}.hasOwnProperty;function Nt(e){const t={};let n=-1;for(;++n<e.length;)It(t,e[n]);return t}function It(e,t){let n;for(n in t){const r=(Et.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){Et.call(r,i)||(r[i]=[]);const e=o[i];Pt(r[i],Array.isArray(e)?e:e?[e]:[])}}}function Pt(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);At(e,0,0,r)}const Dt={tokenize:function(e,t,n){let r=0;return function t(i){if((87===i||119===i)&&r<3)return r++,e.consume(i),t;if(46===i&&3===r)return e.consume(i),o;return n(i)};function o(e){return null===e?n(e):t(e)}},partial:!0},Ot={tokenize:function(e,t,n){let r,o,i;return l;function l(t){return 46===t||95===t?e.check(Lt,s,a)(t):null===t||V(t)||Y(t)||45!==t&&$(t)?s(t):(i=!0,e.consume(t),l)}function a(t){return 95===t?r=!0:(o=r,r=void 0),e.consume(t),l}function s(e){return o||r||!i?n(e):t(e)}},partial:!0},Ft={tokenize:function(e,t){let n=0,r=0;return o;function o(l){return 40===l?(n++,e.consume(l),o):41===l&&r<n?i(l):33===l||34===l||38===l||39===l||41===l||42===l||44===l||46===l||58===l||59===l||60===l||63===l||93===l||95===l||126===l?e.check(Lt,t,i)(l):null===l||V(l)||Y(l)?t(l):(e.consume(l),o)}function i(t){return 41===t&&r++,e.consume(t),o}},partial:!0},Lt={tokenize:function(e,t,n){return r;function r(l){return 33===l||34===l||39===l||41===l||42===l||44===l||46===l||58===l||59===l||63===l||95===l||126===l?(e.consume(l),r):38===l?(e.consume(l),i):93===l?(e.consume(l),o):60===l||null===l||V(l)||Y(l)?t(l):n(l)}function o(e){return null===e||40===e||91===e||V(e)||Y(e)?t(e):r(e)}function i(e){return R(e)?l(e):n(e)}function l(t){return 59===t?(e.consume(t),r):R(t)?(e.consume(t),l):n(t)}},partial:!0},Mt={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return z(e)?n(e):t(e)}},partial:!0},Rt={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!Ht.call(r,r.previous)||Wt(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Dt,e.attempt(Ot,e.attempt(Ft,o),n),n)(t)};function o(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:Ht},zt={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let o="",i=!1;return function(t){if((72===t||104===t)&&Ut.call(r,r.previous)&&!Wt(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(t),e.consume(t),l;return n(t)};function l(t){if(R(t)&&o.length<5)return o+=String.fromCodePoint(t),e.consume(t),l;if(58===t){const n=o.toLowerCase();if("http"===n||"https"===n)return e.consume(t),a}return n(t)}function a(t){return 47===t?(e.consume(t),i?s:(i=!0,a)):n(t)}function s(t){return null===t||B(t)||V(t)||Y(t)||$(t)?n(t):e.attempt(Ot,e.attempt(Ft,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:Ut},_t={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let o,i;return function(t){if(!Vt(t)||!qt.call(r,r.previous)||Wt(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(t)};function l(t){return Vt(t)?(e.consume(t),l):64===t?(e.consume(t),a):n(t)}function a(t){return 46===t?e.check(Mt,c,s)(t):45===t||95===t||z(t)?(i=!0,e.consume(t),a):c(t)}function s(t){return e.consume(t),o=!0,a}function c(l){return i&&o&&R(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(l)):n(l)}},previous:qt},Bt={};let jt=48;for(;jt<123;)Bt[jt]=_t,jt++,58===jt?jt=65:91===jt&&(jt=97);function Ht(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||V(e)}function Ut(e){return!R(e)}function qt(e){return!(47===e||Vt(e))}function Vt(e){return 43===e||45===e||46===e||95===e||z(e)}function Wt(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function $t(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){if(W(r))return e.enter(n),l(r);return t(r)};function l(r){return W(r)&&i++<o?(e.consume(r),l):(e.exit(n),t(r))}}Bt[43]=_t,Bt[45]=_t,Bt[46]=_t,Bt[95]=_t,Bt[72]=[_t,zt],Bt[104]=[_t,zt],Bt[87]=[_t,Rt],Bt[119]=[_t,Rt];const Yt={partial:!0,tokenize:function(e,t,n){return function(t){return W(t)?$t(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||q(e)?t(e):n(e)}}};const Gt={tokenize:function(e,t,n){const r=this;return $t(e,function(e){const o=r.events[r.events.length-1];return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function Qt(e,t,n){const r=this;let o=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;o--;){const e=r.events[o][1];if("labelImage"===e.type){l=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!l||!l._balanced)return n(o);const a=be(r.sliceSerialize({start:l.end,end:r.now()}));if(94!==a.codePointAt(0)||!i.includes(a.slice(1)))return n(o);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)}}function Kt(e,t){let n,r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){n=e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},s=[e[r+1],e[r+2],["enter",o,t],e[r+3],e[r+4],["enter",i,t],["exit",i,t],["enter",l,t],["enter",a,t],["exit",a,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",o,t]];return e.splice(r,e.length-r+1,...s),e}function Zt(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,l=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),a};function a(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(a){if(l>999||93===a&&!i||null===a||91===a||V(a))return n(a);if(93===a){e.exit("chunkString");const i=e.exit("gfmFootnoteCallString");return o.includes(be(r.sliceSerialize(i)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(a)}return V(a)||(i=!0),l++,e.consume(a),92===a?c:s}function c(t){return 91===t||92===t||93===t?(e.consume(t),l++,s):s(t)}}function Xt(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,l,a=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),s};function s(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(a>999||93===t&&!l||null===t||91===t||V(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return i=be(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return V(t)||(l=!0),a++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),a++,c):c(t)}function f(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(i)||o.push(i),$t(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function Jt(e,t,n){return e.check(Yt,t,e.attempt(Gt,t,n))}function en(e){e.exit("gfmFootnoteDefinition")}function tn(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}function nn(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const o=this.previous,i=this.events;let l=0;return function(t){if(126===o&&"characterEscape"!==i[i.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),a(t)};function a(i){const s=Ye(o);if(126===i)return l>1?r(i):(e.consume(i),l++,a);if(l<2&&!t)return r(i);const c=e.exit("strikethroughSequenceTemporary"),u=Ye(i);return c._open=!u||2===u&&Boolean(s),c._close=!s||2===s&&Boolean(u),n(i)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const o={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},i={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},l=[["enter",o,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",i,t]],a=t.parser.constructs.insideSpan.null;a&&At(l,l.length,0,tn(a,e.slice(r+1,n),t)),At(l,l.length,0,[["exit",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",o,t]]),At(e,r-1,n-r+3,l),n=r+l.length-2;break}}n=-1;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class rn{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let o=0;if(0===n&&0===r.length)return;for(;o<e.map.length;){if(e.map[o][0]===t)return e.map[o][1]+=n,void e.map[o][2].push(...r);o+=1}e.map.push([t,n,r])}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0}}function on(e,t){let n=!1;const r=[];for(;t<e.length;){const o=e[t];if(n){if("enter"===o[0])"tableContent"===o[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===o[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===o[1].type)break}else"enter"===o[0]&&"tableDelimiterRow"===o[1].type&&(n=!0);t+=1}return r}function ln(e,t,n){const r=this;let o,i=0,l=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const o=t>-1?r.events[t][1].type:null,i="tableHead"===o||"tableRow"===o?v:a;if(i===v&&r.parser.lazy[r.now().line])return n(e);return i(e)};function a(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return s(e);return o=!0,l+=1,s(e)}(t)}function s(t){return null===t?n(t):q(t)?l>1?(l=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f):n(t):W(t)?$t(e,s,"whitespace")(t):(l+=1,o&&(o=!1,i+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),o=!0,s):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||V(t)?(e.exit("data"),s(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function f(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),o=!1,W(t)?$t(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))}function p(t){return 45===t||58===t?d(t):124===t?(o=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),h):b(t)}function h(t){return W(t)?$t(e,d,"whitespace")(t):d(t)}function d(t){return 58===t?(l+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),g):45===t?(l+=1,g(t)):null===t||q(t)?k(t):b(t)}function g(t){return 45===t?(e.enter("tableDelimiterFiller"),m(t)):b(t)}function m(t){return 45===t?(e.consume(t),m):58===t?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(t))}function y(t){return W(t)?$t(e,k,"whitespace")(t):k(t)}function k(n){return 124===n?p(n):(null===n||q(n))&&o&&i===l?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):b(n)}function b(e){return n(e)}function v(t){return e.enter("tableRow"),x(t)}function x(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),x):null===n||q(n)?(e.exit("tableRow"),t(n)):W(n)?$t(e,x,"whitespace")(n):(e.enter("data"),w(n))}function w(t){return null===t||124===t||V(t)?(e.exit("data"),x(t)):(e.consume(t),92===t?S:w)}function S(t){return 92===t||124===t?(e.consume(t),w):w(t)}}function an(e,t){let n,r,o,i=-1,l=!0,a=0,s=[0,0,0,0],c=[0,0,0,0],u=!1,f=0;const p=new rn;for(;++i<e.length;){const h=e[i],d=h[1];"enter"===h[0]?"tableHead"===d.type?(u=!1,0!==f&&(cn(p,t,f,n,r),r=void 0,f=0),n={type:"table",start:Object.assign({},d.start),end:Object.assign({},d.end)},p.add(i,0,[["enter",n,t]])):"tableRow"===d.type||"tableDelimiterRow"===d.type?(l=!0,o=void 0,s=[0,0,0,0],c=[0,i+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},d.start),end:Object.assign({},d.end)},p.add(i,0,[["enter",r,t]])),a="tableDelimiterRow"===d.type?2:r?3:1):!a||"data"!==d.type&&"tableDelimiterMarker"!==d.type&&"tableDelimiterFiller"!==d.type?"tableCellDivider"===d.type&&(l?l=!1:(0!==s[1]&&(c[0]=c[1],o=sn(p,t,s,a,void 0,o)),s=c,c=[s[1],i,0,0])):(l=!1,0===c[2]&&(0!==s[1]&&(c[0]=c[1],o=sn(p,t,s,a,void 0,o),s=[0,0,0,0]),c[2]=i)):"tableHead"===d.type?(u=!0,f=i):"tableRow"===d.type||"tableDelimiterRow"===d.type?(f=i,0!==s[1]?(c[0]=c[1],o=sn(p,t,s,a,i,o)):0!==c[1]&&(o=sn(p,t,c,a,i,o)),a=0):!a||"data"!==d.type&&"tableDelimiterMarker"!==d.type&&"tableDelimiterFiller"!==d.type||(c[3]=i)}for(0!==f&&cn(p,t,f,n,r),p.consume(t.events),i=-1;++i<t.events.length;){const e=t.events[i];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=on(t.events,i))}return e}function sn(e,t,n,r,o,i){const l=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(i.end=Object.assign({},un(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const a=un(t.events,n[1]);if(i={type:l,start:Object.assign({},a),end:Object.assign({},a)},e.add(n[1],0,[["enter",i,t]]),0!==n[2]){const o=un(t.events,n[2]),i=un(t.events,n[3]),l={type:"tableContent",start:Object.assign({},o),end:Object.assign({},i)};if(e.add(n[2],0,[["enter",l,t]]),2!==r){const r=t.events[n[2]],o=t.events[n[3]];if(r[1].end=Object.assign({},o[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",l,t]])}return void 0!==o&&(i.end=Object.assign({},un(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function cn(e,t,n,r,o){const i=[],l=un(t.events,n);o&&(o.end=Object.assign({},l),i.push(["exit",o,t])),r.end=Object.assign({},l),i.push(["exit",r,t]),e.add(n+1,0,i)}function un(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const fn={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o};function o(t){return V(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),i):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),i):n(t)}function i(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):n(t)}function l(r){return q(r)?t(r):W(r)?e.check({tokenize:pn},t,n)(r):n(r)}}};function pn(e,t,n){return $t(e,function(e){return null===e?n(e):t(e)},"whitespace")}const hn={};function dn(e){const t=e||hn,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return Nt([{text:Bt},{document:{91:{name:"gfmFootnoteDefinition",tokenize:Xt,continuation:{tokenize:Jt},exit:en}},text:{91:{name:"gfmFootnoteCall",tokenize:Zt},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Qt,resolveTo:Kt}}},nn(e),{flow:{null:{name:"table",tokenize:ln,resolveAll:an}}},{text:{91:fn}}])}(t)),o.push([{transforms:[ge],enter:{literalAutolink:ce,literalAutolinkEmail:ue,literalAutolinkHttp:ue,literalAutolinkWww:ue},exit:{literalAutolink:de,literalAutolinkEmail:he,literalAutolinkHttp:fe,literalAutolinkWww:pe}},{enter:{gfmFootnoteCallString:ve,gfmFootnoteCall:xe,gfmFootnoteDefinitionLabelString:we,gfmFootnoteDefinition:Se},exit:{gfmFootnoteCallString:Ce,gfmFootnoteCall:Ae,gfmFootnoteDefinitionLabelString:Te,gfmFootnoteDefinition:Ee}},{canContainEols:["delete"],enter:{strikethrough:Fe},exit:{strikethrough:Le}},{enter:{table:dt,tableData:kt,tableHeader:kt,tableRow:mt},exit:{codeText:bt,table:gt,tableData:yt,tableHeader:yt,tableRow:yt}},{exit:{taskListCheckValueChecked:wt,taskListCheckValueUnchecked:wt,paragraph:St}}]),i.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ae,notInConstruct:se},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ae,notInConstruct:se},{character:":",before:"[ps]",after:"\\/",inConstruct:ae,notInConstruct:se}]},Ie(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Oe}],handlers:{delete:Me}},xt(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Ct}}]}}(t))}class gn{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&mn(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),mn(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),mn(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);mn(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);mn(this.left,t.reverse())}}}function mn(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function yn(e){const t={};let n,r,o,i,l,a,s,c=-1;const u=new gn(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(a=n[1]._tokenizer.events,o=0,o<a.length&&"lineEndingBlank"===a[o][1].type&&(o+=2),o<a.length&&"content"===a[o][1].type))for(;++o<a.length&&"content"!==a[o][1].type;)"chunkText"===a[o][1].type&&(a[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,kn(u,c)),c=t[c],s=!0);else if(n[1]._container){for(o=c,r=void 0;o--;)if(i=u.get(o),"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);else if("linePrefix"!==i[1].type&&"listItemIndent"!==i[1].type)break;r&&(n[1].end={...u.get(r)[1].start},l=u.slice(r,c),l.unshift(n),u.splice(r,c-r+1,l))}}return At(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!s}function kn(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const a=l.events,s=[],c={};let u,f,p=-1,h=n,d=0,g=0;const m=[g];for(;h;){for(;e.get(++o)[1]!==h;);i.push(o),h._tokenizer||(u=r.sliceStream(h),h.next||u.push(null),f&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(u),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=n;++p<a.length;)"exit"===a[p][0]&&"enter"===a[p-1][0]&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(g=p+1,m.push(g),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):m.pop(),p=m.length;p--;){const t=a.slice(m[p],m[p+1]),n=i.pop();s.push([n,n+t.length-1]),e.splice(n,2,t)}for(s.reverse(),p=-1;++p<s.length;)c[d+s[p][0]]=d+s[p][1],d+=s[p][1]-s[p][0]-1;return c}const bn={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),$t(e,t,"linePrefix")},function(t){return e.enter("paragraph"),r(t)});let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):q(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}};const vn={tokenize:function(e){const t=this,n=[];let r,o,i,l=0;return a;function a(r){if(l<n.length){const o=n[l];return t.containerState=o[1],e.attempt(o[0].continuation,s,c)(r)}return c(r)}function s(e){if(l++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&k();const n=t.events.length;let o,i=n;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){o=t.events[i][1].end;break}y(l);let a=n;for(;a<t.events.length;)t.events[a][1].end={...o},a++;return At(t.events,i+1,0,t.events.slice(n)),t.events.length=a,c(e)}return a(e)}function c(o){if(l===n.length){if(!r)return p(o);if(r.currentConstruct&&r.currentConstruct.concrete)return d(o);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(xn,u,f)(o)}function u(e){return r&&k(),y(l),p(e)}function f(e){return t.parser.lazy[t.now().line]=l!==n.length,i=t.now().offset,d(e)}function p(n){return t.containerState={},e.attempt(xn,h,d)(n)}function h(e){return l++,n.push([t.currentConstruct,t.containerState]),p(e)}function d(n){return null===n?(r&&k(),y(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),g(n))}function g(n){return null===n?(m(e.exit("chunkFlow"),!0),y(0),void e.consume(n)):q(n)?(e.consume(n),m(e.exit("chunkFlow")),l=0,t.interrupt=void 0,a):(e.consume(n),g)}function m(e,n){const a=t.sliceStream(e);if(n&&a.push(null),e.previous=o,o&&(o.next=e),o=e,r.defineSkip(e.start),r.write(a),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<i&&(!r.events[e][1].end||r.events[e][1].end.offset>i))return;const n=t.events.length;let o,a,s=n;for(;s--;)if("exit"===t.events[s][0]&&"chunkFlow"===t.events[s][1].type){if(o){a=t.events[s][1].end;break}o=!0}for(y(l),e=n;e<t.events.length;)t.events[e][1].end={...a},e++;At(t.events,s+1,0,t.events.slice(n)),t.events.length=e}}function y(r){let o=n.length;for(;o-- >r;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function k(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},xn={tokenize:function(e,t,n){return $t(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const wn={resolve:function(e){return yn(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):q(t)?e.check(Sn,i,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},Sn={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),$t(e,o,"linePrefix")};function o(o){if(null===o||q(o))return n(o);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}};const Cn={tokenize:function(e){const t=this,n=e.attempt(Yt,function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,$t(e,e.attempt(this.parser.constructs.flow,r,e.attempt(wn,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const An={resolveAll:In()},Tn=Nn("string"),En=Nn("text");function Nn(e){return{resolveAll:In("text"===e?Pn:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,l);return i;function i(e){return s(e)?o(e):l(e)}function l(e){if(null!==e)return t.enter("data"),t.consume(e),a;t.consume(e)}function a(e){return s(e)?(t.exit("data"),o(e)):(t.consume(e),a)}function s(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function In(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function Pn(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],o=t.sliceStream(r);let i,l=o.length,a=-1,s=0;for(;l--;){const e=o[l];if("string"==typeof e){for(a=e.length;32===e.charCodeAt(a-1);)s++,a--;if(a)break;a=-1}else if(-2===e)i=!0,s++;else if(-1!==e){l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const o={type:n===e.length||i||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?a:r.start._bufferIndex+a,_index:r.start._index+l,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...o.start},r.start.offset===r.end.offset?Object.assign(r,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}const Dn={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,i(e)}(t)};function i(i){return i===r?(e.enter("thematicBreakSequence"),l(i)):o>=3&&(null===i||q(i))?(e.exit("thematicBreak"),t(i)):n(i)}function l(t){return t===r?(e.consume(t),o++,l):(e.exit("thematicBreakSequence"),W(t)?$t(e,i,"whitespace")(t):i(t))}}};const On={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Yt,o,i);function o(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,$t(e,t,"listItemIndent",r.containerState.size+1)(n)}function i(n){return r.containerState.furtherBlankLines||!W(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ln,t,l)(n))}function l(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,$t(e,e.attempt(On,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,l=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:j(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(Dn,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(t)}return n(t)};function a(t){return j(t)&&++l<10?(e.consume(t),a):(!r.interrupt||l<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),s(t)):n(t)}function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(Yt,r.interrupt?n:c,e.attempt(Fn,f,u))}function c(e){return r.containerState.initialBlankLine=!0,i++,f(e)}function u(t){return W(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),f):n(t)}function f(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},Fn={partial:!0,tokenize:function(e,t,n){const r=this;return $t(e,function(e){const o=r.events[r.events.length-1];return!W(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},Ln={partial:!0,tokenize:function(e,t,n){const r=this;return $t(e,function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}};const Mn={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(W(t))return $t(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(r){return e.attempt(Mn,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return W(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function Rn(e,t,n,r,o,i,l,a,s){const c=s||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),f;if(null===t||32===t||41===t||B(t))return n(t);return e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),d(t)};function f(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(a),f(t)):null===t||60===t||q(t)?n(t):(e.consume(t),92===t?h:p)}function h(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function d(o){return u||null!==o&&41!==o&&!V(o)?u<c&&40===o?(e.consume(o),u++,d):41===o?(e.consume(o),u--,d):null===o||32===o||40===o||B(o)?n(o):(e.consume(o),92===o?g:d):(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),t(o))}function g(t){return 40===t||41===t||92===t?(e.consume(t),d):d(t)}}function zn(e,t,n,r,o,i){const l=this;let a,s=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(i),c};function c(f){return s>999||null===f||91===f||93===f&&!a||94===f&&!s&&"_hiddenFootnoteSupport"in l.parser.constructs?n(f):93===f?(e.exit(i),e.enter(o),e.consume(f),e.exit(o),e.exit(r),t):q(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(f))}function u(t){return null===t||91===t||93===t||q(t)||s++>999?(e.exit("chunkString"),c(t)):(e.consume(t),a||(a=!W(t)),92===t?f:u)}function f(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}}function _n(e,t,n,r,o,i){let l;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(o),e.consume(t),e.exit(o),l=40===t?41:t,a;return n(t)};function a(n){return n===l?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),s(n))}function s(t){return t===l?(e.exit(i),a(l)):null===t?n(t):q(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),$t(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===l||null===t||q(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?u:c)}function u(t){return t===l||92===t?(e.consume(t),c):c(t)}}function Bn(e,t){let n;return function r(o){if(q(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r;if(W(o))return $t(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}const jn={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return zn.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=be(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),l):n(t)}function l(t){return V(t)?Bn(e,a)(t):a(t)}function a(t){return Rn(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(Hn,c,c)(t)}function c(t){return W(t)?$t(e,u,"whitespace")(t):u(t)}function u(i){return null===i||q(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)}}},Hn={partial:!0,tokenize:function(e,t,n){return function(t){return V(t)?Bn(e,r)(t):n(t)};function r(t){return _n(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return W(t)?$t(e,i,"whitespace")(t):i(t)}function i(e){return null===e||q(e)?t(e):n(e)}}};const Un={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),$t(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?a(t):q(t)?e.attempt(qn,i,a)(t):(e.enter("codeFlowValue"),l(t))}function l(t){return null===t||q(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),l)}function a(n){return e.exit("codeIndented"),t(n)}}},qn={partial:!0,tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):q(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):$t(e,i,"linePrefix",5)(t)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):q(e)?o(e):n(e)}}};const Vn={name:"headingAtx",resolve:function(e,t){let n,r,o=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);o-2>i&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},At(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||V(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),l(n)):null===n||q(n)?(e.exit("atxHeading"),t(n)):W(n)?$t(e,i,"whitespace")(n):(e.enter("atxHeadingText"),a(n))}function l(t){return 35===t?(e.consume(t),l):(e.exit("atxHeadingSequence"),i(t))}function a(t){return null===t||35===t||V(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),a)}}};const Wn={name:"setextUnderline",resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const l={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",l,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=l;return e.push(["exit",l,t]),e},tokenize:function(e,t,n){const r=this;let o;return function(t){let l,a=r.events.length;for(;a--;)if("lineEnding"!==r.events[a][1].type&&"linePrefix"!==r.events[a][1].type&&"content"!==r.events[a][1].type){l="paragraph"===r.events[a][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||l))return e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t);return n(t)};function i(t){return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),W(t)?$t(e,l,"lineSuffix")(t):l(t))}function l(r){return null===r||q(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const $n=["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"],Yn=["pre","script","style","textarea"],Gn={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,n){const r=this;let o,i,l,a,s;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(a){return 33===a?(e.consume(a),u):47===a?(e.consume(a),i=!0,h):63===a?(e.consume(a),o=3,r.interrupt?t:L):R(a)?(e.consume(a),l=String.fromCharCode(a),d):n(a)}function u(i){return 45===i?(e.consume(i),o=2,f):91===i?(e.consume(i),o=5,a=0,p):R(i)?(e.consume(i),o=4,r.interrupt?t:L):n(i)}function f(o){return 45===o?(e.consume(o),r.interrupt?t:L):n(o)}function p(o){const i="CDATA[";return o===i.charCodeAt(a++)?(e.consume(o),6===a?r.interrupt?t:T:p):n(o)}function h(t){return R(t)?(e.consume(t),l=String.fromCharCode(t),d):n(t)}function d(a){if(null===a||47===a||62===a||V(a)){const s=47===a,c=l.toLowerCase();return s||i||!Yn.includes(c)?$n.includes(l.toLowerCase())?(o=6,s?(e.consume(a),g):r.interrupt?t(a):T(a)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(a):i?m(a):y(a)):(o=1,r.interrupt?t(a):T(a))}return 45===a||z(a)?(e.consume(a),l+=String.fromCharCode(a),d):n(a)}function g(o){return 62===o?(e.consume(o),r.interrupt?t:T):n(o)}function m(t){return W(t)?(e.consume(t),m):C(t)}function y(t){return 47===t?(e.consume(t),C):58===t||95===t||R(t)?(e.consume(t),k):W(t)?(e.consume(t),y):C(t)}function k(t){return 45===t||46===t||58===t||95===t||z(t)?(e.consume(t),k):b(t)}function b(t){return 61===t?(e.consume(t),v):W(t)?(e.consume(t),b):y(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,x):W(t)?(e.consume(t),v):w(t)}function x(t){return t===s?(e.consume(t),s=null,S):null===t||q(t)?n(t):(e.consume(t),x)}function w(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||V(t)?b(t):(e.consume(t),w)}function S(e){return 47===e||62===e||W(e)?y(e):n(e)}function C(t){return 62===t?(e.consume(t),A):n(t)}function A(t){return null===t||q(t)?T(t):W(t)?(e.consume(t),A):n(t)}function T(t){return 45===t&&2===o?(e.consume(t),P):60===t&&1===o?(e.consume(t),D):62===t&&4===o?(e.consume(t),M):63===t&&3===o?(e.consume(t),L):93===t&&5===o?(e.consume(t),F):!q(t)||6!==o&&7!==o?null===t||q(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),T):(e.exit("htmlFlowData"),e.check(Qn,_,E)(t))}function E(t){return e.check(Kn,N,_)(t)}function N(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return null===t||q(t)?E(t):(e.enter("htmlFlowData"),T(t))}function P(t){return 45===t?(e.consume(t),L):T(t)}function D(t){return 47===t?(e.consume(t),l="",O):T(t)}function O(t){if(62===t){const n=l.toLowerCase();return Yn.includes(n)?(e.consume(t),M):T(t)}return R(t)&&l.length<8?(e.consume(t),l+=String.fromCharCode(t),O):T(t)}function F(t){return 93===t?(e.consume(t),L):T(t)}function L(t){return 62===t?(e.consume(t),M):45===t&&2===o?(e.consume(t),L):T(t)}function M(t){return null===t||q(t)?(e.exit("htmlFlowData"),_(t)):(e.consume(t),M)}function _(n){return e.exit("htmlFlow"),t(n)}}},Qn={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Yt,t,n)}}},Kn={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(q(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o;return n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const Zn={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},Xn={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return l;function l(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s}function s(t){return e.enter("codeFencedFence"),W(t)?$t(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===i?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===i?(o++,e.consume(t),u):o>=a?(e.exit("codeFencedFenceSequence"),W(t)?$t(e,f,"whitespace")(t):f(t)):n(t)}function f(r){return null===r||q(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let i,l=0,a=0;return function(t){return function(t){const n=r.events[r.events.length-1];return l=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(t)}(t)};function s(t){return t===i?(a++,e.consume(t),s):a<3?n(t):(e.exit("codeFencedFenceSequence"),W(t)?$t(e,c,"whitespace")(t):c(t))}function c(n){return null===n||q(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(Zn,h,k)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||q(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):W(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),$t(e,f,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),u)}function f(t){return null===t||q(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||q(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===i?n(t):(e.consume(t),p)}function h(t){return e.attempt(o,k,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),g}function g(t){return l>0&&W(t)?$t(e,m,"linePrefix",l+1)(t):m(t)}function m(t){return null===t||q(t)?e.check(Zn,h,k)(t):(e.enter("codeFlowValue"),y(t))}function y(t){return null===t||q(t)?(e.exit("codeFlowValue"),m(t)):(e.consume(t),y)}function k(n){return e.exit("codeFenced"),t(n)}}};const Jn=document.createElement("i");function er(e){const t="&"+e+";";Jn.innerHTML=t;const n=Jn.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}const tr={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,l=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,i=z,c(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=H,c):(e.enter("characterReferenceValue"),o=7,i=j,c(t))}function c(a){if(59===a&&l){const o=e.exit("characterReferenceValue");return i!==z||er(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return i(a)&&l++<o?(e.consume(a),c):n(a)}}};const nr={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return U(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const rr={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),$t(e,t,"linePrefix")}}};const or={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}e.length!==n.length&&At(e,0,e.length,n);return e},resolveTo:function(e,t){let n,r,o,i,l=e.length,a=0;for(;l--;)if(n=e[l][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[l][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[l][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=l,"labelLink"!==n.type)){a=2;break}}else"labelEnd"===n.type&&(o=l);const s={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[o][1].end}},u={type:"labelText",start:{...e[r+a+2][1].end},end:{...e[o-2][1].start}};return i=[["enter",s,t],["enter",c,t]],i=Tt(i,e.slice(r+1,r+a+3)),i=Tt(i,[["enter",u,t]]),i=Tt(i,tn(t.parser.constructs.insideSpan.null,e.slice(r+a+4,o-3),t)),i=Tt(i,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]),i=Tt(i,e.slice(o+1)),i=Tt(i,[["exit",s,t]]),At(e,r,e.length,i),e},tokenize:function(e,t,n){const r=this;let o,i,l=r.events.length;for(;l--;)if(("labelImage"===r.events[l][1].type||"labelLink"===r.events[l][1].type)&&!r.events[l][1]._balanced){o=r.events[l][1];break}return function(t){if(!o)return n(t);if(o._inactive)return u(t);return i=r.parser.defined.includes(be(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),a};function a(t){return 40===t?e.attempt(ir,c,i?c:u)(t):91===t?e.attempt(lr,c,i?s:u)(t):i?c(t):u(t)}function s(t){return e.attempt(ar,c,u)(t)}function c(e){return t(e)}function u(e){return o._balanced=!0,n(e)}}},ir={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return V(t)?Bn(e,o)(t):o(t)}function o(t){return 41===t?c(t):Rn(e,i,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return V(t)?Bn(e,a)(t):c(t)}function l(e){return n(e)}function a(t){return 34===t||39===t||40===t?_n(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function s(t){return V(t)?Bn(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},lr={tokenize:function(e,t,n){const r=this;return function(t){return zn.call(r,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(be(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},ar={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const sr={name:"labelStartImage",resolveAll:or.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const cr={name:"attention",resolveAll:function(e,t){let n,r,o,i,l,a,s,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;a=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const f={...e[n][1].end},p={...e[u][1].start};ur(f,-a),ur(p,a),i={type:a>1?"strongSequence":"emphasisSequence",start:f,end:{...e[n][1].end}},l={type:a>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:p},o={type:a>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:a>1?"strong":"emphasis",start:{...i.start},end:{...l.end}},e[n][1].end={...i.start},e[u][1].start={...l.end},s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=Tt(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=Tt(s,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),s=Tt(s,tn(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),s=Tt(s,[["exit",o,t],["enter",l,t],["exit",l,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,s=Tt(s,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,At(e,n-1,u-n+3,s),u=n+s.length-c-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=Ye(r);let i;return function(t){return i=t,e.enter("attentionSequence"),l(t)};function l(a){if(a===i)return e.consume(a),l;const s=e.exit("attentionSequence"),c=Ye(a),u=!c||2===c&&o||n.includes(a),f=!o||2===o&&c||n.includes(r);return s._open=Boolean(42===i?u:u&&(o||!f)),s._close=Boolean(42===i?f:f&&(c||!u)),t(a)}}};function ur(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const fr={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return R(t)?(e.consume(t),i):64===t?n(t):s(t)}function i(e){return 43===e||45===e||46===e||z(e)?(r=1,l(e)):s(e)}function l(t){return 58===t?(e.consume(t),r=0,a):(43===t||45===t||46===t||z(t))&&r++<32?(e.consume(t),l):(r=0,s(t))}function a(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||B(r)?n(r):(e.consume(r),a)}function s(t){return 64===t?(e.consume(t),c):_(t)?(e.consume(t),s):n(t)}function c(e){return z(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):f(n)}function f(t){if((45===t||z(t))&&r++<63){const n=45===t?f:u;return e.consume(t),n}return n(t)}}};const pr={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,i,l;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),v):63===t?(e.consume(t),k):R(t)?(e.consume(t),S):n(t)}function s(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,h):R(t)?(e.consume(t),y):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),f):q(t)?(l=u,O(t)):(e.consume(t),u)}function f(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?D(e):45===e?f(e):u(e)}function h(t){const r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),6===i?d:h):n(t)}function d(t){return null===t?n(t):93===t?(e.consume(t),g):q(t)?(l=d,O(t)):(e.consume(t),d)}function g(t){return 93===t?(e.consume(t),m):d(t)}function m(t){return 62===t?D(t):93===t?(e.consume(t),m):d(t)}function y(t){return null===t||62===t?D(t):q(t)?(l=y,O(t)):(e.consume(t),y)}function k(t){return null===t?n(t):63===t?(e.consume(t),b):q(t)?(l=k,O(t)):(e.consume(t),k)}function b(e){return 62===e?D(e):k(e)}function v(t){return R(t)?(e.consume(t),x):n(t)}function x(t){return 45===t||z(t)?(e.consume(t),x):w(t)}function w(t){return q(t)?(l=w,O(t)):W(t)?(e.consume(t),w):D(t)}function S(t){return 45===t||z(t)?(e.consume(t),S):47===t||62===t||V(t)?C(t):n(t)}function C(t){return 47===t?(e.consume(t),D):58===t||95===t||R(t)?(e.consume(t),A):q(t)?(l=C,O(t)):W(t)?(e.consume(t),C):D(t)}function A(t){return 45===t||46===t||58===t||95===t||z(t)?(e.consume(t),A):T(t)}function T(t){return 61===t?(e.consume(t),E):q(t)?(l=T,O(t)):W(t)?(e.consume(t),T):C(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,N):q(t)?(l=E,O(t)):W(t)?(e.consume(t),E):(e.consume(t),I)}function N(t){return t===o?(e.consume(t),o=void 0,P):null===t?n(t):q(t)?(l=N,O(t)):(e.consume(t),N)}function I(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||V(t)?C(t):(e.consume(t),I)}function P(e){return 47===e||62===e||V(e)?C(e):n(e)}function D(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function O(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),F}function F(t){return W(t)?$t(e,L,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):L(t)}function L(t){return e.enter("htmlTextData"),l(t)}}};const hr={name:"labelStartLink",resolveAll:or.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const dr={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return q(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const gr={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}t=o-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,o,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),l(t)};function l(t){return 96===t?(e.consume(t),i++,l):(e.exit("codeTextSequence"),a(t))}function a(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),a):96===t?(o=e.enter("codeTextSequence"),r=0,c(t)):q(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):(e.enter("codeTextData"),s(t))}function s(t){return null===t||32===t||96===t||q(t)?(e.exit("codeTextData"),a(t)):(e.consume(t),s)}function c(n){return 96===n?(e.consume(n),r++,c):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",s(n))}}};const mr={42:On,43:On,45:On,48:On,49:On,50:On,51:On,52:On,53:On,54:On,55:On,56:On,57:On,62:Mn},yr={91:jn},kr={[-2]:Un,[-1]:Un,32:Un},br={35:Vn,42:Dn,45:[Wn,Dn],60:Gn,61:Wn,95:Dn,96:Xn,126:Xn},vr={38:tr,92:nr},xr={[-5]:rr,[-4]:rr,[-3]:rr,33:sr,38:tr,42:cr,60:[fr,pr],91:hr,92:[dr,nr],93:or,95:cr,96:gr},wr={null:[cr,An]},Sr={null:[42,95]},Cr={null:[]};function Ar(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},i=[];let l=[],a=[],s=!0;const c={attempt:k(function(e,t){b(e,t.from)}),check:k(y),consume:function(e){q(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,v()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++));u.previous=e,s=!0},enter:function(e,t){const n=t||{};return n.type=e,n.start=d(),u.events.push(["enter",n,u]),a.push(n),n},exit:function(e){const t=a.pop();return t.end=d(),u.events.push(["exit",t,u]),t},interrupt:k(y,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){o[e.line]=e.column,v()},events:[],now:d,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let l;if("string"==typeof i)l=i;else switch(i){case-5:l="\r";break;case-4:l="\n";break;case-3:l="\r\n";break;case-2:l=t?" ":"\t";break;case-1:if(!t&&o)continue;l=" ";break;default:l=String.fromCharCode(i)}o=-2===i,r.push(l)}return r.join("")}(h(e),t)},sliceStream:h,write:function(e){if(l=Tt(l,e),g(),null!==l[l.length-1])return[];return b(t,0),u.events=tn(i,u.events,u),u.events}};let f,p=t.tokenize.call(u,c);return t.resolveAll&&i.push(t),u;function h(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let l;if(n===o)l=[e[n].slice(r,i)];else{if(l=e.slice(n,o),r>-1){const e=l[0];"string"==typeof e?l[0]=e.slice(r):l.shift()}i>0&&l.push(e[o].slice(0,i))}return l}(l,e)}function d(){const{_bufferIndex:e,_index:t,line:n,column:o,offset:i}=r;return{_bufferIndex:e,_index:t,line:n,column:o,offset:i}}function g(){let e;for(;r._index<l.length;){const t=l[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)m(t.charCodeAt(r._bufferIndex));else m(t)}}function m(e){s=void 0,f=e,p=p(e)}function y(e,t){t.restore()}function k(e,t){return function(n,o,i){let l,f,p,h;return Array.isArray(n)?g(n):"tokenize"in n?g([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return g([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function g(e){return l=e,f=0,0===e.length?i:m(e[f])}function m(e){return function(n){h=function(){const e=d(),t=u.previous,n=u.currentConstruct,o=u.events.length,i=Array.from(a);return{from:o,restore:l};function l(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=o,a=i,v()}}(),p=e,e.partial||(u.currentConstruct=e);if(e.name&&u.parser.constructs.disable.null.includes(e.name))return k(n);return e.tokenize.call(t?Object.assign(Object.create(u),t):u,c,y,k)(n)}}function y(t){return s=!0,e(p,h),o}function k(e){return s=!0,h.restore(),++f<l.length?m(l[f]):i}}}function b(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&At(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function v(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const Tr=/[\0\t\n\r]/g;function Er(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}const Nr=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ir(e){return e.replace(Nr,Pr)}function Pr(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return Er(n.slice(t?2:1),t?16:10)}return er(n)||e}const Dr={}.hasOwnProperty;function Or(t,n,r){return"string"!=typeof n&&(r=n,n=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(ne),autolinkProtocol:T,autolinkEmail:T,atxHeading:i(X),blockQuote:i(Y),characterEscape:T,characterReference:T,codeFenced:i(G),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:i(G,l),codeText:i(Q,l),codeTextData:T,data:T,codeFlowValue:T,definition:i(K),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:i(Z),hardBreakEscape:i(J),hardBreakTrailing:i(J),htmlFlow:i(ee,l),htmlFlowData:T,htmlText:i(ee,l),htmlTextData:T,image:i(te),label:l,link:i(ne),listItem:i(oe),listItemValue:h,listOrdered:i(re,p),listUnordered:i(re),paragraph:i(ie),reference:j,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:i(X),strong:i(le),thematicBreak:i(se)},exit:{atxHeading:s(),atxHeadingSequence:w,autolink:s(),autolinkEmail:$,autolinkProtocol:W,blockQuote:s(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:U,characterReferenceMarkerNumeric:U,characterReferenceValue:q,characterReference:V,codeFenced:s(y),codeFencedFence:m,codeFencedFenceInfo:d,codeFencedFenceMeta:g,codeFlowValue:E,codeIndented:s(k),codeText:s(O),codeTextData:E,data:E,definition:s(),definitionDestinationString:x,definitionLabelString:b,definitionTitleString:v,emphasis:s(),hardBreakEscape:s(I),hardBreakTrailing:s(I),htmlFlow:s(P),htmlFlowData:E,htmlText:s(D),htmlTextData:E,image:s(L),label:R,labelText:M,lineEnding:N,link:s(F),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:H,resourceDestinationString:z,resourceTitleString:_,resource:B,setextHeading:s(A),setextHeadingLineSequence:C,setextHeadingText:S,strong:s(),thematicBreak:s()}};Lr(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const i={stack:[r],tokenStack:[],config:t,enter:a,exit:c,buffer:l,resume:f,data:n},s=[];let u=-1;for(;++u<e.length;)if("listOrdered"===e[u][1].type||"listUnordered"===e[u][1].type)if("enter"===e[u][0])s.push(u);else{u=o(e,s.pop(),u)}for(u=-1;++u<e.length;){const n=t[e[u][0]];Dr.call(n,e[u][1].type)&&n[e[u][1].type].call(Object.assign({sliceSerialize:e[u][2].sliceSerialize},i),e[u][1])}if(i.tokenStack.length>0){const e=i.tokenStack[i.tokenStack.length-1];(e[1]||Rr).call(i,void 0,e[0])}for(r.position={start:Fr(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Fr(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u<t.transforms.length;)r=t.transforms[u](r)||r;return r}function o(e,t,n){let r,o,i,l,a=t-1,s=-1,c=!1;for(;++a<=n;){const t=e[a];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?s++:s--,l=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||l||s||i||(i=a),l=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:l=void 0}if(!s&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===s&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let l=a;for(o=void 0;l--;){const t=e[l];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",o=l}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}i&&(!o||i<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||a,0,["exit",r,t[2]]),a++,n++}if("listItemPrefix"===t[1].type){const o={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=o,e.splice(a,0,["enter",o,t[2]]),a++,n++,i=void 0,l=!0}}}return e[t][1]._spread=c,n}function i(e,t){return n;function n(n){a.call(this,e(n),n),t&&t.call(this,n)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:Fr(t.start),end:void 0}}function s(e){return t;function t(t){e&&e.call(this,t),c.call(this,t)}}function c(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+u({start:e.start,end:e.end})+"): it’s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||Rr).call(this,e,r[0])}n.position.end=Fr(e.end)}function f(){return Xe(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function h(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function d(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function g(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function b(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=be(this.sliceSerialize(e)).toLowerCase()}function v(){const e=this.resume();this.stack[this.stack.length-1].title=e}function x(){const e=this.resume();this.stack[this.stack.length-1].url=e}function w(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function A(){this.data.setextHeadingSlurpLineEnding=void 0}function T(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=ae(),n.position={start:Fr(e.start),end:void 0},t.push(n)),this.stack.push(n)}function E(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Fr(e.end)}function N(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=Fr(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(T.call(this,e),E.call(this,e))}function I(){this.data.atHardBreak=!0}function P(){const e=this.resume();this.stack[this.stack.length-1].value=e}function D(){const e=this.resume();this.stack[this.stack.length-1].value=e}function O(){const e=this.resume();this.stack[this.stack.length-1].value=e}function F(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function L(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function M(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=Ir(t),n.identifier=be(t).toLowerCase()}function R(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function z(){const e=this.resume();this.stack[this.stack.length-1].url=e}function _(){const e=this.resume();this.stack[this.stack.length-1].title=e}function B(){this.data.inReference=void 0}function j(){this.data.referenceType="collapsed"}function H(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=be(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function U(e){this.data.characterReferenceType=e.type}function q(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=Er(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=er(t)}this.stack[this.stack.length-1].value+=r}function V(e){this.stack.pop().position.end=Fr(e.end)}function W(e){E.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function $(e){E.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function Y(){return{type:"blockquote",children:[]}}function G(){return{type:"code",lang:null,meta:null,value:""}}function Q(){return{type:"inlineCode",value:""}}function K(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Z(){return{type:"emphasis",children:[]}}function X(){return{type:"heading",depth:0,children:[]}}function J(){return{type:"break"}}function ee(){return{type:"html",value:""}}function te(){return{type:"image",title:null,url:"",alt:null}}function ne(){return{type:"link",title:null,url:"",children:[]}}function re(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function oe(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function ie(){return{type:"paragraph",children:[]}}function le(){return{type:"strong",children:[]}}function ae(){return{type:"text",value:""}}function se(){return{type:"thematicBreak"}}}(r)(function(e){for(;!yn(e););return e}(function(t){const n={constructs:Nt([e,...(t||{}).extensions||[]]),content:r(bn),defined:[],document:r(vn),flow:r(Cn),lazy:{},string:r(Tn),text:r(En)};return n;function r(e){return function(t){return Ar(n,e,t)}}}(r).document().write(function(){let e,t=1,n="",r=!0;return function(o,i,l){const a=[];let s,c,u,f,p;for(o=n+("string"==typeof o?o.toString():new TextDecoder(i||void 0).decode(o)),u=0,n="",r&&(65279===o.charCodeAt(0)&&u++,r=void 0);u<o.length;){if(Tr.lastIndex=u,s=Tr.exec(o),f=s&&void 0!==s.index?s.index:o.length,p=o.charCodeAt(f),!s){n=o.slice(u);break}if(10===p&&u===f&&e)a.push(-3),e=void 0;else switch(e&&(a.push(-5),e=void 0),u<f&&(a.push(o.slice(u,f)),t+=f-u),p){case 0:a.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),a.push(-2);t++<c;)a.push(-1);break;case 10:a.push(-4),t=1;break;default:e=!0,t=1}u=f+1}return l&&(e&&a.push(-5),n&&a.push(n),a.push(null)),a}}()(t,n,!0))))}function Fr(e){return{line:e.line,column:e.column,offset:e.offset}}function Lr(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Lr(e,r):Mr(e,r)}}function Mr(e,t){let n;for(n in t)if(Dr.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Rr(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+u({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+u({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+u({start:t.start,end:t.end})+") is still open")}function zr(e){const t=this;t.parser=function(n){return Or(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const _r="object"==typeof self?self:globalThis,Br=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=o=>{if(e.has(o))return e.get(o);const[i,l]=t[o];switch(i){case 0:case-1:return n(l,o);case 1:{const e=n([],o);for(const t of l)e.push(r(t));return e}case 2:{const e=n({},o);for(const[t,n]of l)e[r(t)]=r(n);return e}case 3:return n(new Date(l),o);case 4:{const{source:e,flags:t}=l;return n(new RegExp(e,t),o)}case 5:{const e=n(new Map,o);for(const[t,n]of l)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,o);for(const t of l)e.add(r(t));return e}case 7:{const{name:e,message:t}=l;return n(new _r[e](t),o)}case 8:return n(BigInt(l),o);case"BigInt":return n(Object(BigInt(l)),o);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:e}=new Uint8Array(l);return n(new DataView(e),l)}}return n(new _r[i](l),o)};return r})(new Map,e)(0),jr="",{toString:Hr}={},{keys:Ur}=Object,qr=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=Hr.call(e).slice(8,-1);switch(n){case"Array":return[1,jr];case"Object":return[2,jr];case"Date":return[3,jr];case"RegExp":return[4,jr];case"Map":return[5,jr];case"Set":return[6,jr];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},Vr=([e,t])=>0===e&&("function"===t||"symbol"===t),Wr=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const o=(e,t)=>{const o=r.push(e)-1;return n.set(t,o),o},i=r=>{if(n.has(r))return n.get(r);let[l,a]=qr(r);switch(l){case 0:{let t=r;switch(a){case"bigint":l=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);t=null;break;case"undefined":return o([-1],r)}return o([l,t],r)}case 1:{if(a){let e=r;return"DataView"===a?e=new Uint8Array(r.buffer):"ArrayBuffer"===a&&(e=new Uint8Array(r)),o([a,[...e]],r)}const e=[],t=o([l,e],r);for(const t of r)e.push(i(t));return t}case 2:{if(a)switch(a){case"BigInt":return o([a,r.toString()],r);case"Boolean":case"Number":case"String":return o([a,r.valueOf()],r)}if(t&&"toJSON"in r)return i(r.toJSON());const n=[],s=o([l,n],r);for(const t of Ur(r))!e&&Vr(qr(r[t]))||n.push([i(t),i(r[t])]);return s}case 3:return o([l,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return o([l,{source:e,flags:t}],r)}case 5:{const t=[],n=o([l,t],r);for(const[n,o]of r)(e||!Vr(qr(n))&&!Vr(qr(o)))&&t.push([i(n),i(o)]);return n}case 6:{const t=[],n=o([l,t],r);for(const n of r)!e&&Vr(qr(n))||t.push(i(n));return n}}const{message:s}=r;return o([l,{name:a,message:s}],r)};return i})(!(t||n),!!t,new Map,r)(e),r},$r="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Br(Wr(e,t)):structuredClone(e):(e,t)=>Br(Wr(e,t));function Yr(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let l="";if(37===i&&z(e.charCodeAt(n+1))&&z(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(l=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(l=String.fromCharCode(i,t),o=1):l="�"}else l=String.fromCharCode(i);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+o+1,l=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function Gr(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Qr(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const Kr=Xr("end"),Zr=Xr("start");function Xr(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function Jr(e){const t=Zr(e),n=Kr(e);if(t&&n)return{start:t,end:n}}function eo(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift({type:"text",value:"["});const l=o[o.length-1];return l&&"text"===l.type?l.value+=r:o.push({type:"text",value:r}),o}function to(e){const t=e.spread;return null==t?e.children.length>1:t}function no(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(ro(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(ro(t.slice(o),o>0,!1)),i.join("")}function ro(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const oo={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=Yr(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let l,a=e.footnoteCounts.get(r);void 0===a?(a=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=i+1,a+=1,e.footnoteCounts.set(r,a);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,s);const c={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return eo(e,t);const o={src:Yr(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:Yr(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return eo(e,t);const o={href:Yr(r.url||"")};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:Yr(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=to(n[r])}return t}(n):to(t),i={},l=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const e=r[a];(o||0!==a||"element"!==e.type||"p"!==e.tagName)&&l.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?l.push(e):l.push(...e.children)}const s=r[r.length-1];s&&(o||"element"!==s.type||"p"!==s.tagName)&&l.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:i,children:l};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let o=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;){const e=r[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),o.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=Zr(t.children[1]),l=Kr(t.children[t.children.length-1]);i&&l&&(r.position={start:i,end:l}),o.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,l=i?i.length:t.children.length;let a=-1;const s=[];for(;++a<l;){const n=t.children[a],r={},l=i?i[a]:void 0;l&&(r.align=l);let c={type:"element",tagName:o,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),s.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:no(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:io,yaml:io,definition:io,footnoteDefinition:io};function io(){}const lo={}.hasOwnProperty,ao={};function so(e,t){e.position&&(t.position=Jr(e))}function co(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;if("string"==typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&o&&Object.assign(n.properties,$r(o)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function uo(e,t){const n=t.data||{},r=!("value"in t)||lo.call(n,"hProperties")||lo.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function fo(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function po(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function ho(e,t){const n=function(e,t){const n=t||ao,r=new Map,o=new Map,i=new Map,l={...oo,...n.handlers},a={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const o=a.one(n[r],e);if(o){if(r&&"break"===n[r-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=po(o.value)),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=po(e.value))}Array.isArray(o)?t.push(...o):t.push(o)}}}return t},applyData:co,definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:l,one:function(e,t){const n=e.type,r=a.handlers[n];if(lo.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=$r(n);return r.children=a.all(e),r}return $r(e)}return(a.options.unknownHandler||uo)(a,e,t)},options:n,patch:so,wrap:fo};return Ke(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:o,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a}(e,t),r=n.one(e,void 0),o=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Gr,r=e.options.footnoteBackLabel||Qr,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let s=-1;for(;++s<e.footnoteOrder.length;){const o=e.footnoteById.get(e.footnoteOrder[s]);if(!o)continue;const i=e.all(o),l=String(o.identifier).toUpperCase(),c=Yr(l.toLowerCase());let u=0;const f=[],p=e.footnoteCounts.get(l);for(;void 0!==p&&++u<=p;){f.length>0&&f.push({type:"text",value:" "});let e="string"==typeof n?n:n(s,u);"string"==typeof e&&(e={type:"text",value:e}),f.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(s,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const h=i[i.length-1];if(h&&"element"===h.type&&"p"===h.tagName){const e=h.children[h.children.length-1];e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...f)}else i.push(...f);const d={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(i,!0)};e.patch(o,d),a.push(d)}if(0!==a.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...$r(l),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:"\n"}]}}(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:"\n"},o),i}function go(e,t){return e&&"run"in e?async function(n,r){const o=ho(n,{file:r,...t});await e.run(o,r)}:function(n,r){return ho(n,{file:r,...e||t})}}function mo(){return{type:"break"}}function yo(){return function(e){!function(e){oe(e,[/\r?\n|\r/g,mo])}(e)}}class ko{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function bo(e,t){const n={},r={};for(const t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new ko(n,r,t)}function vo(e){return e.toLowerCase()}ko.prototype.normal={},ko.prototype.property={},ko.prototype.space=void 0;class xo{constructor(e,t){this.attribute=t,this.property=e}}xo.prototype.attribute="",xo.prototype.booleanish=!1,xo.prototype.boolean=!1,xo.prototype.commaOrSpaceSeparated=!1,xo.prototype.commaSeparated=!1,xo.prototype.defined=!1,xo.prototype.mustUseProperty=!1,xo.prototype.number=!1,xo.prototype.overloadedBoolean=!1,xo.prototype.property="",xo.prototype.spaceSeparated=!1,xo.prototype.space=void 0;let wo=0;const So=Po(),Co=Po(),Ao=Po(),To=Po(),Eo=Po(),No=Po(),Io=Po();function Po(){return 2**++wo}const Do=Object.keys(t);class Oo extends xo{constructor(e,n,r,o){let i=-1;if(super(e,n),Fo(this,"space",o),"number"==typeof r)for(;++i<Do.length;){const e=Do[i];Fo(this,Do[i],(r&t[e])===t[e])}}}function Fo(e,t,n){n&&(e[t]=n)}function Lo(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const i=new Oo(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[vo(r)]=r,n[vo(i.attribute)]=r}return new ko(t,n,e.space)}Oo.prototype.defined=!0;const Mo=Lo({properties:{ariaActiveDescendant:null,ariaAtomic:Co,ariaAutoComplete:null,ariaBusy:Co,ariaChecked:Co,ariaColCount:To,ariaColIndex:To,ariaColSpan:To,ariaControls:Eo,ariaCurrent:null,ariaDescribedBy:Eo,ariaDetails:null,ariaDisabled:Co,ariaDropEffect:Eo,ariaErrorMessage:null,ariaExpanded:Co,ariaFlowTo:Eo,ariaGrabbed:Co,ariaHasPopup:null,ariaHidden:Co,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Eo,ariaLevel:To,ariaLive:null,ariaModal:Co,ariaMultiLine:Co,ariaMultiSelectable:Co,ariaOrientation:null,ariaOwns:Eo,ariaPlaceholder:null,ariaPosInSet:To,ariaPressed:Co,ariaReadOnly:Co,ariaRelevant:null,ariaRequired:Co,ariaRoleDescription:Eo,ariaRowCount:To,ariaRowIndex:To,ariaRowSpan:To,ariaSelected:Co,ariaSetSize:To,ariaSort:null,ariaValueMax:To,ariaValueMin:To,ariaValueNow:To,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function Ro(e,t){return t in e?e[t]:t}function zo(e,t){return Ro(e,t.toLowerCase())}const _o=Lo({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:No,acceptCharset:Eo,accessKey:Eo,action:null,allow:null,allowFullScreen:So,allowPaymentRequest:So,allowUserMedia:So,alt:null,as:null,async:So,autoCapitalize:null,autoComplete:Eo,autoFocus:So,autoPlay:So,blocking:Eo,capture:null,charSet:null,checked:So,cite:null,className:Eo,cols:To,colSpan:null,content:null,contentEditable:Co,controls:So,controlsList:Eo,coords:To|No,crossOrigin:null,data:null,dateTime:null,decoding:null,default:So,defer:So,dir:null,dirName:null,disabled:So,download:Ao,draggable:Co,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:So,formTarget:null,headers:Eo,height:To,hidden:Ao,high:To,href:null,hrefLang:null,htmlFor:Eo,httpEquiv:Eo,id:null,imageSizes:null,imageSrcSet:null,inert:So,inputMode:null,integrity:null,is:null,isMap:So,itemId:null,itemProp:Eo,itemRef:Eo,itemScope:So,itemType:Eo,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:So,low:To,manifest:null,max:null,maxLength:To,media:null,method:null,min:null,minLength:To,multiple:So,muted:So,name:null,nonce:null,noModule:So,noValidate:So,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:So,optimum:To,pattern:null,ping:Eo,placeholder:null,playsInline:So,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:So,referrerPolicy:null,rel:Eo,required:So,reversed:So,rows:To,rowSpan:To,sandbox:Eo,scope:null,scoped:So,seamless:So,selected:So,shadowRootClonable:So,shadowRootDelegatesFocus:So,shadowRootMode:null,shape:null,size:To,sizes:null,slot:null,span:To,spellCheck:Co,src:null,srcDoc:null,srcLang:null,srcSet:null,start:To,step:null,style:null,tabIndex:To,target:null,title:null,translate:null,type:null,typeMustMatch:So,useMap:null,value:Co,width:To,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Eo,axis:null,background:null,bgColor:null,border:To,borderColor:null,bottomMargin:To,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:So,declare:So,event:null,face:null,frame:null,frameBorder:null,hSpace:To,leftMargin:To,link:null,longDesc:null,lowSrc:null,marginHeight:To,marginWidth:To,noResize:So,noHref:So,noShade:So,noWrap:So,object:null,profile:null,prompt:null,rev:null,rightMargin:To,rules:null,scheme:null,scrolling:Co,standby:null,summary:null,text:null,topMargin:To,valueType:null,version:null,vAlign:null,vLink:null,vSpace:To,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:So,disableRemotePlayback:So,prefix:null,property:null,results:To,security:null,unselectable:null},space:"html",transform:zo}),Bo=Lo({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Io,accentHeight:To,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:To,amplitude:To,arabicForm:null,ascent:To,attributeName:null,attributeType:null,azimuth:To,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:To,by:null,calcMode:null,capHeight:To,className:Eo,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:To,diffuseConstant:To,direction:null,display:null,dur:null,divisor:To,dominantBaseline:null,download:So,dx:null,dy:null,edgeMode:null,editable:null,elevation:To,enableBackground:null,end:null,event:null,exponent:To,externalResourcesRequired:null,fill:null,fillOpacity:To,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:No,g2:No,glyphName:No,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:To,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:To,horizOriginX:To,horizOriginY:To,id:null,ideographic:To,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:To,k:To,k1:To,k2:To,k3:To,k4:To,kernelMatrix:Io,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:To,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:To,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:To,overlineThickness:To,paintOrder:null,panose1:null,path:null,pathLength:To,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Eo,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:To,pointsAtY:To,pointsAtZ:To,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Io,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Io,rev:Io,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Io,requiredFeatures:Io,requiredFonts:Io,requiredFormats:Io,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:To,specularExponent:To,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:To,strikethroughThickness:To,string:null,stroke:null,strokeDashArray:Io,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:To,strokeOpacity:To,strokeWidth:null,style:null,surfaceScale:To,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Io,tabIndex:To,tableValues:null,target:null,targetX:To,targetY:To,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Io,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:To,underlineThickness:To,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:To,values:null,vAlphabetic:To,vMathematical:To,vectorEffect:null,vHanging:To,vIdeographic:To,version:null,vertAdvY:To,vertOriginX:To,vertOriginY:To,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:To,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ro}),jo=Lo({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),Ho=Lo({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:zo}),Uo=Lo({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),qo=bo([Mo,_o,jo,Ho,Uo],"html"),Vo=bo([Mo,Bo,jo,Ho,Uo],"svg"),Wo=/[A-Z]/g,$o=/-[a-z]/g,Yo=/^data[-\w.:]+$/i;function Go(e,t){const n=vo(t);let r=t,o=xo;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Yo.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace($o,Ko);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!$o.test(e)){let n=e.replace(Wo,Qo);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=Oo}return new o(r,t)}function Qo(e){return"-"+e.toLowerCase()}function Ko(e){return e.charAt(1).toUpperCase()}const Zo="http://www.w3.org/1999/xhtml",Xo="http://www.w3.org/2000/svg",Jo={}.hasOwnProperty;function ei(e,t){const n=function(e,t){switch(e.type){case"root":return function(e,t){const n=e.children||[];let r,o=0===n.length,i=-1;for(;++i<n.length;){const e=n[i];if("element"===e.type&&"html"===e.tagName){o=!0,r=String(e.properties&&e.properties.xmlns||"")||Zo;break}}const l=t.namespace||r;let a;a=o?t.doc.implementation.createDocument(l||null,""):t.fragment?t.doc.createDocumentFragment():t.doc.createElement("html");return ti(a,n,{...t,namespace:l,impliedNamespace:l}),a}(e,t);case"text":return function(e,t){return t.doc.createTextNode(e.value)}(e,t);case"doctype":return function(e,t){return t.doc.implementation.createDocumentType("html","","")}(0,t);case"comment":return function(e,t){return t.doc.createComment(e.value)}(e,t);default:return function(e,t){let n=t.impliedNamespace||t.namespace;const r=e.tagName||(n===Xo?"g":"div"),o=e.properties||{},i=e.children||[];void 0!==n&&n!==Zo||"svg"!==r||(n=Xo);const l=n?t.doc.createElementNS(n,r):t.doc.createElement(r);!function(e,t,n){let r;for(r in t)if(Jo.call(t,r)){const o=Go(n,r);let i=t[r];Array.isArray(i)&&(i=i.join(o.commaSeparated?", ":" ")),o.mustUseProperty&&(e[o.property]=i),o.boolean||o.overloadedBoolean&&"boolean"==typeof i?i&&e.setAttribute(o.attribute,""):o.booleanish?e.setAttribute(o.attribute,String(i)):!0===i?e.setAttribute(o.attribute,""):(i||0===i||""===i)&&e.setAttribute(o.attribute,String(i))}}(l,o,n===Xo?Vo:qo);const a=t.impliedNamespace;return t.impliedNamespace=n,ti(l,i,t),t.impliedNamespace=a,l}(e,t)}}(e,t);return t.afterTransform&&t.afterTransform(e,n),n}function ti(e,t,n){let r=-1;for(;++r<t.length;)e.append(ei(t[r],n))}function ni(e){const t={...this.data("settings"),...e};!1!==t.fragment&&(t.fragment=!0),this.compiler=function(e){return ri(function(e,t){const n=t||{};return ei(e,{doc:n.document||document,fragment:n.fragment||!1,namespace:n.namespace||void 0,impliedNamespace:void 0,afterTransform:n.afterTransform||void 0})}(e,t))}}function ri(e){if("doctype"in e){return(e.doctype?ri(e.doctype):"")+(e.documentElement?ri(e.documentElement):"")}if("publicId"in e)return"<DOCTYPE html>";const t=document.createElement("template");return t.content.append(e),t.innerHTML}const oi=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],ii={}.hasOwnProperty;function li(e,t){const n=t||{};function r(t,...n){let o=r.invalid;const i=r.handlers;if(t&&ii.call(t,e)){const n=String(t[e]);o=ii.call(i,n)?i[n]:r.unknown}if(o)return o.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const ai=/["&'<>`]/g,si=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ci=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,ui=/[|\\{}()[\]^$+*?.]/g,fi=new WeakMap;function pi(e,t){return e=e.replace(t.subset?function(e){let t=fi.get(e);t||(t=function(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(ui,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}(e),fi.set(e,t));return t}(t.subset):ai,n),t.subset||t.escapeOnly?e:e.replace(si,function(e,n,r){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}).replace(ci,n);function n(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}const hi=/[\dA-Fa-f]/;const di=/\d/;const gi=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],mi={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},yi=["cent","copy","divide","gt","lt","not","para","times"],ki={}.hasOwnProperty,bi={};let vi;for(vi in mi)ki.call(mi,vi)&&(bi[mi[vi]]=vi);const xi=/[^\dA-Za-z]/;function wi(e,t,n){let r,o=function(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!hi.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(r=function(e,t,n,r){const o=String.fromCharCode(e);if(ki.call(bi,o)){const e=bi[o],i="&"+e;return n&&gi.includes(e)&&!yi.includes(e)&&(!r||t&&61!==t&&xi.test(String.fromCharCode(t)))?i:i+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){const r=function(e,t,n){const r="&#"+String(e);return n&&t&&!di.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);r.length<o.length&&(o=r)}return r&&(!n.useShortestReferences||r.length<o.length)?r:o}function Si(e,t){return pi(e,Object.assign({format:wi},t))}const Ci=/^>|^->|<!--|-->|--!>|<!-$/g,Ai=[">"],Ti=["<",">"];function Ei(e){const t=[],n=String(e||"");let r=n.indexOf(","),o=0,i=!1;for(;!i;){-1===r&&(r=n.length,i=!0);const e=n.slice(o,r).trim();!e&&i||t.push(e),o=r+1,r=n.indexOf(",",o)}return t}function Ni(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}function Ii(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Pi(e){return e.join(" ").trim()}const Di=/[ \t\n\f\r]/g;function Oi(e){return"object"==typeof e?"text"===e.type&&Fi(e.value):Fi(e)}function Fi(e){return""===e.replace(Di,"")}const Li=zi(1),Mi=zi(-1),Ri=[];function zi(e){return function(t,n,r){const o=t?t.children:Ri;let i=(n||0)+e,l=o[i];if(!r)for(;l&&Oi(l);)i+=e,l=o[i];return l}}const _i={}.hasOwnProperty;function Bi(e){return function(t,n,r){return _i.call(e,t.tagName)&&e[t.tagName](t,n,r)}}const ji=Bi({body:function(e,t,n){const r=Li(n,t);return!r||"comment"!==r.type},caption:Hi,colgroup:Hi,dd:function(e,t,n){const r=Li(n,t);return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)},dt:function(e,t,n){const r=Li(n,t);return Boolean(r&&"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName))},head:Hi,html:function(e,t,n){const r=Li(n,t);return!r||"comment"!==r.type},li:function(e,t,n){const r=Li(n,t);return!r||"element"===r.type&&"li"===r.tagName},optgroup:function(e,t,n){const r=Li(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName},option:function(e,t,n){const r=Li(n,t);return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)},p:function(e,t,n){const r=Li(n,t);return r?"element"===r.type&&("address"===r.tagName||"article"===r.tagName||"aside"===r.tagName||"blockquote"===r.tagName||"details"===r.tagName||"div"===r.tagName||"dl"===r.tagName||"fieldset"===r.tagName||"figcaption"===r.tagName||"figure"===r.tagName||"footer"===r.tagName||"form"===r.tagName||"h1"===r.tagName||"h2"===r.tagName||"h3"===r.tagName||"h4"===r.tagName||"h5"===r.tagName||"h6"===r.tagName||"header"===r.tagName||"hgroup"===r.tagName||"hr"===r.tagName||"main"===r.tagName||"menu"===r.tagName||"nav"===r.tagName||"ol"===r.tagName||"p"===r.tagName||"pre"===r.tagName||"section"===r.tagName||"table"===r.tagName||"ul"===r.tagName):!n||!("element"===n.type&&("a"===n.tagName||"audio"===n.tagName||"del"===n.tagName||"ins"===n.tagName||"map"===n.tagName||"noscript"===n.tagName||"video"===n.tagName))},rp:Ui,rt:Ui,tbody:function(e,t,n){const r=Li(n,t);return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},td:qi,tfoot:function(e,t,n){return!Li(n,t)},th:qi,thead:function(e,t,n){const r=Li(n,t);return Boolean(r&&"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName))},tr:function(e,t,n){const r=Li(n,t);return!r||"element"===r.type&&"tr"===r.tagName}});function Hi(e,t,n){const r=Li(n,t,!0);return!r||"comment"!==r.type&&!("text"===r.type&&Oi(r.value.charAt(0)))}function Ui(e,t,n){const r=Li(n,t);return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}function qi(e,t,n){const r=Li(n,t);return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}const Vi=Bi({body:function(e){const t=Li(e,-1,!0);return!(t&&("comment"===t.type||"text"===t.type&&Oi(t.value.charAt(0))||"element"===t.type&&("meta"===t.tagName||"link"===t.tagName||"script"===t.tagName||"style"===t.tagName||"template"===t.tagName)))},colgroup:function(e,t,n){const r=Mi(n,t),o=Li(e,-1,!0);if(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&ji(r,n.children.indexOf(r),n))return!1;return Boolean(o&&"element"===o.type&&"col"===o.tagName)},head:function(e){const t=new Set;for(const n of e.children)if("element"===n.type&&("base"===n.tagName||"title"===n.tagName)){if(t.has(n.tagName))return!1;t.add(n.tagName)}const n=e.children[0];return!n||"element"===n.type},html:function(e){const t=Li(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){const r=Mi(n,t),o=Li(e,-1);if(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&ji(r,n.children.indexOf(r),n))return!1;return Boolean(o&&"element"===o.type&&"tr"===o.tagName)}});const Wi={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function $i(e,t,n){const r=Go(e.schema,t),o=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,i=e.settings.allowDangerousCharacters?0:1;let l,a=e.quote;if(!r.overloadedBoolean||n!==r.attribute&&""!==n?!r.boolean&&!r.overloadedBoolean||"string"==typeof n&&n!==r.attribute&&""!==n||(n=Boolean(n)):n=!0,null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";const s=Si(r.attribute,Object.assign({},e.settings.characterReferences,{subset:Wi.name[o][i]}));return!0===n?s:(n=Array.isArray(n)?(r.commaSeparated?Ni:Pi)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n?s:(e.settings.preferUnquoted&&(l=Si(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Wi.unquoted[o][i]}))),l!==n&&(e.settings.quoteSmart&&M(n,a)>M(n,e.alternative)&&(a=e.alternative),l=a+Si(n,Object.assign({},e.settings.characterReferences,{subset:("'"===a?Wi.single:Wi.double)[o][i],attribute:!0}))+a),s+(l?"="+l:l)))}const Yi=["<","&"];function Gi(e,t,n,r){return!n||"element"!==n.type||"script"!==n.tagName&&"style"!==n.tagName?Si(e.value,Object.assign({},r.settings.characterReferences,{subset:Yi})):e.value}const Qi=li("type",{invalid:function(e){throw new Error("Expected node, not `"+e+"`")},unknown:function(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")},handlers:{comment:function(e,t,n,r){return r.settings.bogusComments?"<?"+Si(e.value,Object.assign({},r.settings.characterReferences,{subset:Ai}))+">":"\x3c!--"+e.value.replace(Ci,function(e){return Si(e,Object.assign({},r.settings.characterReferences,{subset:Ti}))})+"--\x3e"},doctype:function(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,n,r){const o=r.schema,i="svg"!==o.space&&r.settings.omitOptionalTags;let l="svg"===o.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const a=[];let s;"html"===o.space&&"svg"===e.tagName&&(r.schema=Vo);const c=function(e,t){const n=[];let r,o=-1;if(t)for(r in t)if(null!==t[r]&&void 0!==t[r]){const o=$i(e,r,t[r]);o&&n.push(o)}for(;++o<n.length;){const t=e.settings.tightAttributes?n[o].charAt(n[o].length-1):void 0;o!==n.length-1&&'"'!==t&&"'"!==t&&(n[o]+=" ")}return n.join("")}(r,e.properties),u=r.all("html"===o.space&&"template"===e.tagName?e.content:e);return r.schema=o,u&&(l=!1),!c&&i&&Vi(e,t,n)||(a.push("<",e.tagName,c?" "+c:""),l&&("svg"===o.space||r.settings.closeSelfClosing)&&(s=c.charAt(c.length-1),(!r.settings.tightSelfClosing||"/"===s||s&&'"'!==s&&"'"!==s)&&a.push(" "),a.push("/")),a.push(">")),a.push(u),l||i&&ji(e,t,n)||a.push("</"+e.tagName+">"),a.join("")},raw:function(e,t,n,r){return r.settings.allowDangerousHtml?e.value:Gi(e,0,n,r)},root:function(e,t,n,r){return r.all(e)},text:Gi}});const Ki={},Zi={},Xi=[];function Ji(e,t){const n=t||Ki,r=n.quote||'"',o='"'===r?"'":'"';if('"'!==r&&"'"!==r)throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:el,all:tl,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||oi,characterReferences:n.characterReferences||Zi,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?Vo:qo,quote:r,alternative:o}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function el(e,t,n){return Qi(e,t,n,this)}function tl(e){const t=[],n=e&&e.children||Xi;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}const nl=/[#.]/g;function rl(e,t,n){const r=n?function(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}(n):void 0;return function(n,o,...i){let l;if(null==n){l={type:"root",children:[]};const e=o;i.unshift(e)}else{l=function(e,t){const n=e||"",r={};let o,i,l=0;for(;l<n.length;){nl.lastIndex=l;const e=nl.exec(n),t=n.slice(l,e?e.index:n.length);t&&(o?"#"===o?r.id=t:Array.isArray(r.className)?r.className.push(t):r.className=[t]:i=t,l+=t.length),e&&(o=e[0],l++)}return{type:"element",tagName:i||t||"div",properties:r,children:[]}}(n,t);const a=l.tagName.toLowerCase(),s=r?r.get(a):void 0;if(l.tagName=s||a,function(e){if(null===e||"object"!=typeof e||Array.isArray(e))return!0;if("string"!=typeof e.type)return!1;const t=e,n=Object.keys(e);for(const e of n){const n=t[e];if(n&&"object"==typeof n){if(!Array.isArray(n))return!0;const e=n;for(const t of e)if("number"!=typeof t&&"string"!=typeof t)return!0}}if("children"in e&&Array.isArray(e.children))return!0;return!1}(o))i.unshift(o);else for(const[t,n]of Object.entries(o))ol(e,l.properties,t,n)}for(const e of i)il(l.children,e);return"element"===l.type&&"template"===l.tagName&&(l.content={type:"root",children:l.children},l.children=[]),l}}function ol(e,t,n,r){const o=Go(e,n);let i;if(null!=r){if("number"==typeof r){if(Number.isNaN(r))return;i=r}else i="boolean"==typeof r?r:"string"==typeof r?o.spaceSeparated?Ii(r):o.commaSeparated?Ei(r):o.commaOrSpaceSeparated?Ii(Ei(r).join(" ")):ll(o,o.property,r):Array.isArray(r)?[...r]:"style"===o.property?function(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}(r):String(r);if(Array.isArray(i)){const e=[];for(const t of i)e.push(ll(o,o.property,t));i=e}"className"===o.property&&Array.isArray(t.className)&&(i=t.className.concat(i)),t[o.property]=i}}function il(e,t){if(null==t);else if("number"==typeof t||"string"==typeof t)e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)il(e,n);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");"root"===t.type?il(e,t.children):e.push(t)}}function ll(e,t,n){if("string"==typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||vo(n)===vo(t)))return!0}return n}const al=rl(qo,"div"),sl=rl(Vo,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]);function cl(e,t){return ul(e,t||{})||{type:"root",children:[]}}function ul(e,t){const n=function(e,t){switch(e.nodeType){case 1:return function(e,t){const n=e.namespaceURI,r=n===Xo?sl:al,o=n===Zo?e.tagName.toLowerCase():e.tagName,i=n===Zo&&"template"===o?e.content:e,l=e.getAttributeNames(),a={};let s=-1;for(;++s<l.length;)a[l[s]]=e.getAttribute(l[s])||"";return r(o,a,pl(i,t))}(e,t);case 3:return function(e){return{type:"text",value:e.nodeValue||""}}(e);case 8:return function(e){return{type:"comment",value:e.nodeValue||""}}(e);case 9:return fl(e,t);case 10:return{type:"doctype"};case 11:return fl(e,t);default:return}}(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function fl(e,t){return{type:"root",children:pl(e,t)}}function pl(e,t){const n=e.childNodes,r=[];let o=-1;for(;++o<n.length;){const e=ul(n[o],t);void 0!==e&&r.push(e)}return r}class hl{_processor;constructor(){this._processor=N().use(zr).use(dn,{singleTilde:!0}).use(yo).use(go,{allowDangerousHtml:!0}).use(gl).use(dl).use(ni)}parse(e){return this._processor.processSync(e).toString().replaceAll("\n</code>","</code>")}}function dl(){return e=>{Ke(e,"element",e=>{"ul"!==e.tagName&&"ol"!==e.tagName&&"li"!==e.tagName||(e.children=e.children.filter(e=>"text"!==e.type||!!e.value.trim()),delete e.properties.className)})}}function gl(){return e=>{Ke(e,["root","element"],e=>{if(!function(e){return("root"===e.type||"element"===e.type)&&e.children}(e))return;if(!e.children.some(e=>"raw"===e.type))return;const t=document.createElement("template");t.innerHTML=Ji({type:"root",children:e.children},{allowDangerousHtml:!0}),e.children=Array.from(t.content.childNodes).map(e=>cl(e))})}}function ml(e){const t={...this.data("settings"),...e};this.parser=function(e){const n=!1===t.fragment?yl:kl;return cl(n(e))}}function yl(e){return(new DOMParser).parseFromString(e,"text/html")}function kl(e){const t=document.createElement("template");return t.innerHTML=e,t.content}const bl=function(e,t,n,r,o){const i=vl(t);if(null!=n&&("number"!=typeof n||n<0||n===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite `index`");if(!(null==r||r.type&&r.children))throw new Error("Expected valid `parent`");if(null==n!=(null==r))throw new Error("Expected both `index` and `parent`");return!!Sl(e)&&i.call(o,e,n,r)},vl=function(e){if(null==e)return wl;if("string"==typeof e)return function(e){return xl(t);function t(t){return t.tagName===e}}(e);if("object"==typeof e)return function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=vl(e[n]);return xl(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e);if("function"==typeof e)return xl(e);throw new Error("Expected function, string, or array as `test`")};function xl(e){return function(t,n,r){return Boolean(Sl(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function wl(e){return Boolean(e&&"object"==typeof e&&"type"in e&&"element"===e.type&&"tagName"in e&&"string"==typeof e.tagName)}function Sl(e){return null!==e&&"object"==typeof e&&"type"in e&&"tagName"in e}const Cl=vl(function(e){return"audio"===e.tagName||"canvas"===e.tagName||"embed"===e.tagName||"iframe"===e.tagName||"img"===e.tagName||"math"===e.tagName||"object"===e.tagName||"picture"===e.tagName||"svg"===e.tagName||"video"===e.tagName}),Al=["address","article","aside","blockquote","body","br","caption","center","col","colgroup","dd","dialog","dir","div","dl","dt","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","legend","li","li","listing","main","menu","nav","ol","optgroup","option","p","plaintext","pre","section","summary","table","tbody","td","td","tfoot","th","th","thead","tr","ul","wbr","xmp"],Tl=["button","input","select","textarea"],El=["area","base","basefont","dialog","datalist","head","link","meta","noembed","noframes","param","rp","script","source","style","template","track","title"],Nl={},Il=Q(["comment","doctype"]);function Pl(e,t){if("children"in e){const n={...t};return("root"===e.type||Ll(e))&&(n.before=!0,n.after=!0),n.whitespace=function(e,t){if("tagName"in e&&e.properties)switch(e.tagName){case"listing":case"plaintext":case"script":case"style":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return e.properties.wrap?"pre-wrap":"pre";case"td":case"th":return e.properties.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}return t.whitespace}(e,t),function(e,t){let n=t.before;const r=t.after,o=e.children;let i=o.length,l=-1;for(;++l<i;){const e=Pl(o[l],{...t,after:Dl(o,l,r),before:n});e.remove?(o.splice(l,1),l--,i--):e.ignore||(n=e.stripAtStart),Fl(o[l])&&(n=!1)}return{ignore:!1,stripAtStart:Boolean(n||r),remove:!1}}(e,n)}if("text"===e.type){if("normal"===t.whitespace)return function(e,t){const n=t.collapse(e.value),r={ignore:!1,stripAtStart:!1,remove:!1};let o=0,i=n.length;t.before&&Rl(n.charAt(0))&&o++;o!==i&&Rl(n.charAt(i-1))&&(t.after?i--:r.stripAtStart=!0);o===i?r.remove=!0:e.value=n.slice(o,i);return r}(e,t);"nowrap"===t.whitespace&&(e.value=t.collapse(e.value))}return{ignore:Il(e),stripAtStart:!1,remove:!1}}function Dl(e,t,n){for(;++t<e.length;){const n=e[t];let r=Ol(n);if(void 0===r&&"children"in n&&!Ml(n)&&(r=Dl(n.children,-1)),"boolean"==typeof r)return r}return n}function Ol(e){if("element"===e.type){if(Fl(e))return!1;if(Ll(e))return!0}else if("text"===e.type){if(!Oi(e))return!1}else if(!Il(e))return!1}function Fl(e){return Cl(e)||bl(e,Tl)}function Ll(e){return bl(e,Al)}function Ml(e){return Boolean("element"===e.type&&e.properties.hidden)||Il(e)||bl(e,El)}function Rl(e){return" "===e||"\n"===e}function zl(e){const t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function _l(){return" "}function Bl(e){return function(t){return String(t).replace(/[\t\n\v\f\r ]+/g,e)}}function jl(e){return function(t){!function(e,t){Pl(e,{collapse:Bl((t||Nl).newlines?zl:_l),whitespace:"normal"})}(t,e)}}const Hl=function(e,t,n){const r=Q(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if("number"==typeof t){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if((t=e.children.indexOf(t))<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]},Ul=/\n/g,ql=/[\t ]+/g,Vl=vl("br"),Wl=vl(function(e){return"td"===e.tagName||"th"===e.tagName}),$l=vl("p"),Yl=vl("tr"),Gl=vl(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(e){return Boolean((e.properties||{}).hidden)},function(e){return"dialog"===e.tagName&&!(e.properties||{}).open}]),Ql=vl(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function Kl(e,t){const n=t||{},r="children"in e?e.children:[],o=Ql(e),i=ea(e,{whitespace:n.whitespace||"normal",breakBefore:!1,breakAfter:!1}),l=[];"text"!==e.type&&"comment"!==e.type||l.push(...Xl(e,{whitespace:i,breakBefore:!0,breakAfter:!0}));let a=-1;for(;++a<r.length;)l.push(...Zl(r[a],e,{whitespace:i,breakBefore:a?void 0:o,breakAfter:a<r.length-1?Vl(r[a+1]):o}));const s=[];let c;for(a=-1;++a<l.length;){const e=l[a];"number"==typeof e?void 0!==c&&e>c&&(c=e):e&&(void 0!==c&&c>-1&&s.push("\n".repeat(c)||" "),c=-1,s.push(e))}return s.join("")}function Zl(e,t,n){return"element"===e.type?function(e,t,n){const r=ea(e,n),o=e.children||[];let i,l,a=-1,s=[];if(Gl(e))return s;Vl(e)||Yl(e)&&Hl(t,e,Yl)?l="\n":$l(e)?(i=2,l=2):Ql(e)&&(i=1,l=1);for(;++a<o.length;)s=s.concat(Zl(o[a],e,{whitespace:r,breakBefore:a?void 0:i,breakAfter:a<o.length-1?Vl(o[a+1]):l}));Wl(e)&&Hl(t,e,Wl)&&s.push("\t");i&&s.unshift(i);l&&s.push(l);return s}(e,t,n):"text"===e.type?"normal"===n.whitespace?Xl(e,n):function(e){return[String(e.value)]}(e):[]}function Xl(e,t){const n=String(e.value),r=[],o=[];let i=0;for(;i<=n.length;){Ul.lastIndex=i;const e=Ul.exec(n),o=e&&"index"in e?e.index:n.length;r.push(Jl(n.slice(i,o).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),0!==i||t.breakBefore,o!==n.length||t.breakAfter)),i=o+1}let l,a=-1;for(;++a<r.length;)8203===r[a].charCodeAt(r[a].length-1)||a<r.length-1&&8203===r[a+1].charCodeAt(0)?(o.push(r[a]),l=void 0):r[a]?("number"==typeof l&&o.push(l),o.push(r[a]),l=0):0!==a&&a!==r.length-1||o.push(0);return o}function Jl(e,t,n){const r=[];let o,i=0;for(;i<e.length;){ql.lastIndex=i;const n=ql.exec(e);o=n?n.index:e.length,i||o||!n||t||r.push(""),i!==o&&r.push(e.slice(i,o)),i=n?o+n[0].length:o}return i===o||n||r.push(""),r.join(" ")}function ea(e,t){if("element"===e.type){const n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function ta(e){const t=String(e);let n=t.length;for(;n>0;){const e=t.codePointAt(n-1);if(void 0===e||10!==e&&13!==e)break;n--}return t.slice(0,n)}const na="language-";function ra(e,t){const n=t.children;let r,o,i=-1;if("pre"===t.tagName)for(;++i<n.length;){const e=n[i];if("element"===e.type&&"code"===e.tagName&&e.properties&&e.properties.className&&Array.isArray(e.properties.className)){r=e.properties.className;break}}if(r)for(i=-1;++i<r.length;)if(String(r[i]).slice(0,9)===na){o=String(r[i]).slice(9);break}const l={type:"code",lang:o||null,meta:null,value:ta(Kl(t))};return e.patch(t,l),l}function oa(e,t){const n={type:"delete",children:e.all(t)};return e.patch(t,n),n}function ia(e){let t=-1;if(e.length>1)for(;++t<e.length;)if(e[t].spread)return!0;return!1}function la(e,t){const n=e.all({type:"root",children:t}),r=e.toSpecificContent(n,aa);return 0===r.length?[]:1===r.length?r[0].children:[{type:"list",ordered:!1,start:null,spread:ia(r),children:r}]}function aa(){return{type:"listItem",spread:!1,checked:null,children:[]}}function sa(e,t){const n={type:"emphasis",children:e.all(t)};return e.patch(t,n),n}function ca(e){let t=0,n=e.length;for(;t<n&&"break"===e[t].type;)t++;for(;n>t&&"break"===e[n-1].type;)n--;return 0===t&&n===e.length?e:e.slice(t,n)}function ua(e,t){const n={type:"heading",depth:Number(t.tagName.charAt(1))||1,children:ca(e.all(t))};return e.patch(t,n),n}function fa(e,t){const n=t.properties||{},r={type:"image",url:e.resolve(String(n.src||"")||null),title:n.title?String(n.title):null,alt:n.alt?String(n.alt):""};return e.patch(t,r),r}function pa(e,t){const n={type:"inlineCode",value:Kl(t)};return e.patch(t,n),n}function ha(e,t){const n=[],r=[],o=t||e.properties||{},i=da(e),l=Math.min(Number.parseInt(String(o.size),10),0)||(o.multiple?4:1);let a=-1;for(;++a<i.length;){const e=i[a];e&&e.properties&&e.properties.selected&&n.push(e)}const s=n.length>0?n:i,c=Math.min(s.length,l);for(a=-1;++a<c;){const e=s[a],t=e.properties||{},n=Kl(e),o=n||String(t.label||""),i=String(t.value||"")||n;r.push([i,o===i?void 0:o])}return r}function da(e){const t=[];let n=-1;for(;++n<e.children.length;){const r=e.children[n];"children"in r&&Array.isArray(r.children)&&t.push(...da(r)),"element"!==r.type||"option"!==r.tagName||r.properties&&r.properties.disabled||t.push(r)}return t}const ga={}.hasOwnProperty;const ma=new Set(["pingback","prefetch","stylesheet"]);const ya=vl(["a","abbr","area","b","bdi","bdo","br","button","cite","code","data","datalist","del","dfn","em","i","input","ins","kbd","keygen","label","map","mark","meter","noscript","output","progress","q","ruby","s","samp","script","select","small","span","strong","sub","sup","template","textarea","time","u","var","wbr"]),ka=vl("meta");function ba(e){return Boolean("text"===e.type||ya(e)||Cl(e)||function(e){if("element"!==e.type||"link"!==e.tagName)return!1;if(e.properties.itemProp)return!0;const t=e.properties.rel;let n=-1;if(!Array.isArray(t)||0===t.length)return!1;for(;++n<t.length;)if(!ma.has(String(t[n])))return!1;return!0}(e)||ka(e)&&function(e,t){const n="element"===e.type&&ga.call(e.properties,t)&&e.properties[t];return null!=n&&!1!==n}(e,"itemProp"))}function va(e,t){const{rest:n,checkbox:r}=wa(t),o=r?Boolean(r.properties.checked):null,i={type:"listItem",spread:xa(n),checked:o,children:e.toFlow(e.all(n))};return e.patch(t,i),i}function xa(e){let t=-1,n=!1;for(;++t<e.children.length;){const r=e.children[t];if("element"===r.type){if(ba(r))continue;if("p"===r.tagName||n||xa(r))return!0;n=!0}}return!1}function wa(e){const t=e.children[0];if(t&&"element"===t.type&&"input"===t.tagName&&t.properties&&("checkbox"===t.properties.type||"radio"===t.properties.type)){return{checkbox:t,rest:{...e,children:e.children.slice(1)}}}if(t&&"element"===t.type&&"p"===t.tagName){const{checkbox:n,rest:r}=wa(t);if(n){return{checkbox:n,rest:{...e,children:[r,...e.children.slice(1)]}}}}return{checkbox:void 0,rest:e}}function Sa(e,t){const n="ol"===t.tagName,r=e.toSpecificContent(e.all(t),Ca);let o=null;n&&(o=t.properties&&t.properties.start?Number.parseInt(String(t.properties.start),10):1);const i={type:"list",ordered:n,start:o,spread:ia(r),children:r};return e.patch(t,i),i}function Ca(){return{type:"listItem",spread:!1,checked:null,children:[]}}function Aa(e){let t=-1;for(;++t<e.length;){const n=e[t];if(!Ia(n)||"children"in n&&Aa(n.children))return!0}return!1}function Ta(e){return Na(e,function(e){return e.every(function(e){return"text"===e.type&&Oi(e.value)})?[]:[{type:"paragraph",children:ca(e)}]},function(e){return e})}function Ea(e){return Na(e.children,function(t){const n=Pa(e);return n.children=t,[n]},function(t){if("children"in t&&"children"in e){const n=Pa(e),r=Pa(t);return n.children=t.children,r.children.push(n),r}return{...t}})}function Na(e,t,n){const r=function(e){const t=[];let n=-1;for(;++n<e.length;){const r=e[n];"delete"!==r.type&&"link"!==r.type||!Aa(r.children)?t.push(r):t.push(...Ea(r))}return t}(e),o=[];let i=[],l=-1;for(;++l<r.length;){const e=r[l];Ia(e)?i.push(e):(i.length>0&&(o.push(...t(i)),i=[]),o.push(n(e)))}return i.length>0&&(o.push(...t(i)),i=[]),o}function Ia(e){const t=e.data&&e.data.hName;return t?ba({type:"element",tagName:t,properties:{},children:[]}):ft(e)}function Pa(e){return $r({...e,children:[]})}function Da(e,t){const n=t.properties||{},r="video"===t.tagName?String(n.poster||""):"";let o=String(n.src||""),i=-1,l=!1,a=e.all(t);if(Ke({type:"root",children:a},function(e){if("link"===e.type)return l=!0,te}),l||Aa(a))return a;for(;!o&&++i<t.children.length;){const e=t.children[i];"element"===e.type&&"source"===e.tagName&&e.properties&&(o=String(e.properties.src||""))}if(r){const n={type:"image",title:null,url:e.resolve(r),alt:Xe(a)};e.patch(t,n),a=[n]}const s=a,c={type:"link",title:n.title?String(n.title):null,url:e.resolve(o),children:s};return e.patch(t,c),c}function Oa(e,t){const n=ca(e.all(t));if(n.length>0){const r={type:"paragraph",children:n};return e.patch(t,r),r}}const Fa=['"'];function La(e,t){const n={type:"strong",children:e.all(t)};return e.patch(t,n),n}function Ma(e,t){const n={type:"tableCell",children:e.all(t)};if(e.patch(t,n),t.properties){const e=t.properties.rowSpan,r=t.properties.colSpan;if(e||r){const t=n.data||(n.data={});e&&(t.hastUtilToMdastTemporaryRowSpan=e),r&&(t.hastUtilToMdastTemporaryColSpan=r)}}return n}function Ra(){return{type:"tableCell",children:[]}}function za(){return{type:"tableCell",children:[]}}function _a(){return{type:"tableRow",children:[]}}const Ba={comment:function(e,t){const n={type:"html",value:"\x3c!--"+t.value+"--\x3e"};return e.patch(t,n),n},doctype:qa,root:function(e,t){let n=e.all(t);(e.options.document||Aa(n))&&(n=Ta(n));const r={type:"root",children:n};return e.patch(t,r),r},text:function(e,t){const n={type:"text",value:t.value};return e.patch(t,n),n}},ja={applet:qa,area:qa,basefont:qa,bgsound:qa,caption:qa,col:qa,colgroup:qa,command:qa,content:qa,datalist:qa,dialog:qa,element:qa,embed:qa,frame:qa,frameset:qa,isindex:qa,keygen:qa,link:qa,math:qa,menu:qa,menuitem:qa,meta:qa,nextid:qa,noembed:qa,noframes:qa,optgroup:qa,option:qa,param:qa,script:qa,shadow:qa,source:qa,spacer:qa,style:qa,svg:qa,template:qa,title:qa,track:qa,abbr:Ha,acronym:Ha,bdi:Ha,bdo:Ha,big:Ha,blink:Ha,button:Ha,canvas:Ha,cite:Ha,data:Ha,details:Ha,dfn:Ha,font:Ha,ins:Ha,label:Ha,map:Ha,marquee:Ha,meter:Ha,nobr:Ha,noscript:Ha,object:Ha,output:Ha,progress:Ha,rb:Ha,rbc:Ha,rp:Ha,rt:Ha,rtc:Ha,ruby:Ha,slot:Ha,small:Ha,span:Ha,sup:Ha,sub:Ha,tbody:Ha,tfoot:Ha,thead:Ha,time:Ha,address:Ua,article:Ua,aside:Ua,body:Ua,center:Ua,div:Ua,fieldset:Ua,figcaption:Ua,figure:Ua,form:Ua,footer:Ua,header:Ua,hgroup:Ua,html:Ua,legend:Ua,main:Ua,multicol:Ua,nav:Ua,picture:Ua,section:Ua,a:function(e,t){const n=t.properties||{},r=e.all(t),o={type:"link",url:e.resolve(String(n.href||"")||null),title:n.title?String(n.title):null,children:r};return e.patch(t,o),o},audio:Da,b:La,base:function(e,t){e.baseFound||(e.frozenBaseUrl=String(t.properties&&t.properties.href||"")||void 0,e.baseFound=!0)},blockquote:function(e,t){const n={type:"blockquote",children:e.toFlow(e.all(t))};return e.patch(t,n),n},br:function(e,t){const n={type:"break"};return e.patch(t,n),n},code:pa,dir:Sa,dl:function(e,t){const n=[],r=[];let o=-1;for(;++o<t.children.length;){const e=t.children[o];"element"===e.type&&"div"===e.tagName?n.push(...e.children):n.push(e)}let i={definitions:[],titles:[]};for(o=-1;++o<n.length;){const e=n[o];if("element"===e.type&&"dt"===e.tagName){const t=n[o-1];t&&"element"===t.type&&"dd"===t.tagName&&(r.push(i),i={definitions:[],titles:[]}),i.titles.push(e)}else i.definitions.push(e)}r.push(i),o=-1;const l=[];for(;++o<r.length;){const t=[...la(e,r[o].titles),...la(e,r[o].definitions)];t.length>0&&l.push({type:"listItem",spread:t.length>1,checked:null,children:t})}if(l.length>0){const n={type:"list",ordered:!1,start:null,spread:ia(l),children:l};return e.patch(t,n),n}},dt:va,dd:va,del:oa,em:sa,h1:ua,h2:ua,h3:ua,h4:ua,h5:ua,h6:ua,hr:function(e,t){const n={type:"thematicBreak"};return e.patch(t,n),n},i:sa,iframe:function(e,t){const n=t.properties||{},r=String(n.src||""),o=String(n.title||"");if(r&&o){const n={type:"link",title:null,url:e.resolve(r),children:[{type:"text",value:o}]};return e.patch(t,n),n}},img:fa,image:fa,input:function(e,t){const n=t.properties||{},r=String(n.value||n.placeholder||"");if(n.disabled||"hidden"===n.type||"file"===n.type)return;if("checkbox"===n.type||"radio"===n.type){const r={type:"text",value:n.checked?e.options.checked||"[x]":e.options.unchecked||"[ ]"};return e.patch(t,r),r}if("image"===n.type){const o=n.alt||r;if(o){const r={type:"image",url:e.resolve(String(n.src||"")||null),title:String(n.title||"")||null,alt:String(o)};return e.patch(t,r),r}return}let o=[];if(r)o=[[r,void 0]];else if("button"!==n.type&&"file"!==n.type&&"password"!==n.type&&"reset"!==n.type&&"submit"!==n.type&&n.list){const t=String(n.list),r=e.elementById.get(t);r&&"datalist"===r.tagName&&(o=ha(r,n))}if(0===o.length)return;if("password"===n.type&&(o[0]=["•".repeat(o[0][0].length),void 0]),"email"===n.type||"url"===n.type){const t=[];let r=-1;for(;++r<o.length;){const i=e.resolve(o[r][0]),l={type:"link",title:null,url:"email"===n.type?"mailto:"+i:i,children:[{type:"text",value:o[r][1]||i}]};t.push(l),r!==o.length-1&&t.push({type:"text",value:", "})}return t}const i=[];let l=-1;for(;++l<o.length;)i.push(o[l][1]?o[l][1]+" ("+o[l][0]+")":o[l][0]);const a={type:"text",value:i.join(", ")};return e.patch(t,a),a},kbd:pa,li:va,listing:ra,mark:sa,ol:Sa,p:Oa,plaintext:ra,pre:ra,q:function(e,t){const n=e.options.quotes||Fa;e.qNesting++;const r=e.all(t);e.qNesting--;const o=n[e.qNesting%n.length],i=r[0],l=r[r.length-1],a=o.charAt(0),s=o.length>1?o.charAt(1):o;return i&&"text"===i.type?i.value=a+i.value:r.unshift({type:"text",value:a}),l&&"text"===l.type?l.value+=s:r.push({type:"text",value:s}),r},s:oa,samp:pa,select:function(e,t){const n=ha(t);let r=-1;const o=[];for(;++r<n.length;){const e=n[r];o.push(e[1]?e[1]+" ("+e[0]+")":e[0])}if(o.length>0){const n={type:"text",value:o.join(", ")};return e.patch(t,n),n}},strike:oa,strong:La,summary:Oa,table:function(e,t){if(e.inTable){const n={type:"text",value:Kl(t)};return e.patch(t,n),n}e.inTable=!0;const{align:n,headless:r}=function(e){const t={align:[null],headless:!0};let n=0,r=0;return Ke(e,function(o){if("element"===o.type){if("table"===o.tagName&&e!==o)return ne;if("th"!==o.tagName&&"td"!==o.tagName||!o.properties)"thead"===o.tagName?t.headless=!1:"tr"===o.tagName&&(n++,r=0);else{if(!t.align[r]){const e=String(o.properties.align||"")||null;"center"!==e&&"left"!==e&&"right"!==e&&null!==e||(t.align[r]=e)}t.headless&&n<2&&"th"===o.tagName&&(t.headless=!1),r++}}}),t}(t),o=e.toSpecificContent(e.all(t),_a);r&&o.unshift({type:"tableRow",children:[]});let i=-1;for(;++i<o.length;){const t=o[i],n=e.toSpecificContent(t.children,za);t.children=n}let l=1;for(i=-1;++i<o.length;){const e=o[i].children;let t=-1;for(;++t<e.length;){const n=e[t];if(n.data){const e=n.data,r=Number.parseInt(String(e.hastUtilToMdastTemporaryColSpan),10)||1,l=Number.parseInt(String(e.hastUtilToMdastTemporaryRowSpan),10)||1;if(r>1||l>1){let e=i-1;for(;++e<i+l;){let n=t-1;for(;++n<t+r&&o[e];){const r=[];e===i&&n===t||r.push({type:"tableCell",children:[]}),o[e].children.splice(n,0,...r)}}}"hastUtilToMdastTemporaryColSpan"in n.data&&delete n.data.hastUtilToMdastTemporaryColSpan,"hastUtilToMdastTemporaryRowSpan"in n.data&&delete n.data.hastUtilToMdastTemporaryRowSpan,0===Object.keys(n.data).length&&delete n.data}}e.length>l&&(l=e.length)}for(i=-1;++i<o.length;){const e=o[i].children;let t=e.length-1;for(;++t<l;)e.push({type:"tableCell",children:[]})}let a=n.length-1;for(;++a<l;)n.push(null);e.inTable=!1;const s={type:"table",align:n,children:o};return e.patch(t,s),s},td:Ma,textarea:function(e,t){const n={type:"text",value:Kl(t)};return e.patch(t,n),n},th:Ma,tr:function(e,t){const n={type:"tableRow",children:e.toSpecificContent(e.all(t),Ra)};return e.patch(t,n),n},tt:pa,u:sa,ul:Sa,var:pa,video:Da,wbr:function(e,t){const n={type:"text",value:"​"};return e.patch(t,n),n},xmp:ra};function Ha(e,t){return e.all(t)}function Ua(e,t){return e.toFlow(e.all(t))}function qa(){}const Va={}.hasOwnProperty;function Wa(e){const t=e.children||[],n=[];let r=-1;for(;++r<t.length;){const o=t[r],i=this.one(o,e);Array.isArray(i)?n.push(...i):i&&n.push(i)}return n}function $a(e,t){if("element"===e.type){if(e.properties&&"ignore"===e.properties.dataMdast)return;if(Va.call(this.handlers,e.tagName))return this.handlers[e.tagName](this,e,t)||void 0}else if(Va.call(this.nodeHandlers,e.type))return this.nodeHandlers[e.type](this,e,t)||void 0;if("value"in e&&"string"==typeof e.value){const t={type:"text",value:e.value};return this.patch(e,t),t}if("children"in e)return this.all(e)}function Ya(e,t){e.position&&(t.position=Jr(e))}function Ga(e){const t=this.frozenBaseUrl;return null==e?"":t?String(new URL(e,t)):e}function Qa(e){return Ta(e)}function Ka(e,t){const n=t(),r=[];let o=[],i=-1;for(;++i<e.length;){const t=e[i];if(l(t))o.length>0&&(t.children.unshift(...o),o=[]),r.push(t);else{const e=t;o.push(e)}}if(o.length>0){let e=r[r.length-1];e||(e=t(),r.push(e)),e.children.push(...o),o=[]}return r;function l(e){return e.type===n.type}}const Za={};function Xa(e,t){const n=$r(e),r=t||Za,o=jl({newlines:!0===r.newlines}),i=function(e){return{all:Wa,baseFound:!1,elementById:new Map,frozenBaseUrl:void 0,handlers:{...ja,...e.handlers},inTable:!1,nodeHandlers:{...Ba,...e.nodeHandlers},one:$a,options:e,patch:Ya,qNesting:0,resolve:Ga,toFlow:Qa,toSpecificContent:Ka}}(r);let l;o(n),Ke(n,function(e){if(e&&"element"===e.type&&e.properties){const t=String(e.properties.id||"")||void 0;t&&!i.elementById.has(t)&&i.elementById.set(t,e)}});const a=i.one(n,void 0);if(a)if(Array.isArray(a)){l={type:"root",children:a}}else l=a;else l={type:"root",children:[]};return Ke(l,function(e,t,n){if("text"===e.type&&void 0!==t&&n){const r=n.children[t-1];if(r&&r.type===e.type)return r.value+=e.value,n.children.splice(t,1),r.position&&e.position&&(r.position.end=e.position.end),t-1;if(e.value=e.value.replace(/[\t ]*(\r?\n|\r)[\t ]*/,"$1"),!n||"heading"!==n.type&&"paragraph"!==n.type&&"root"!==n.type||(t||(e.value=e.value.replace(/^[\t ]+/,"")),t===n.children.length-1&&(e.value=e.value.replace(/[\t ]+$/,""))),!e.value)return n.children.splice(t,1),t}}),l}const Ja={document:!0};function es(e,t){return e&&"run"in e?async function(n,r){const o=Xa(n,{...Ja,...t});await e.run(o,r)}:function(t){return Xa(t,{...Ja,...e})}}const ts={}.hasOwnProperty;function ns(e,t){let n,r=-1;if(t.extensions)for(;++r<t.extensions.length;)ns(e,t.extensions[r]);for(n in t)if(ts.call(t,n))switch(n){case"extensions":break;case"unsafe":case"join":rs(e[n],t[n]);break;case"handlers":os(e[n],t[n]);break;default:e.options[n]=t[n]}return e}function rs(e,t){t&&e.push(...t)}function os(e,t){t&&Object.assign(e,t)}const is=[function(e,t,n,r){if("code"===t.type&&qe(t,r)&&("list"===e.type||e.type===t.type&&qe(e,r)))return!1;if("spread"in n&&"boolean"==typeof n.spread){if("paragraph"===e.type&&(e.type===t.type||"definition"===t.type||"heading"===t.type&&tt(t,r)))return;return n.spread?1:0}}];const ls=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],as=[{character:"\t",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",before:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:"\n",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:ls},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:"(?:[\r\n]|$)"},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:ls},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:"(?:[ \t\r\n*])"},{character:"*",inConstruct:"phrasing",notInConstruct:ls},{atBreak:!0,character:"+",after:"(?:[ \t\r\n])"},{atBreak:!0,character:"-",after:"(?:[ \t\r\n-])"},{atBreak:!0,before:"\\d+",character:".",after:"(?:[ \t\r\n]|$)"},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:ls},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:ls},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:ls},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:ls},{atBreak:!0,character:"~"}];function ss(e){return e.label||!e.identifier?e.label||"":Ir(e.identifier)}function cs(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function us(e,t,n,r){let o=r.join.length;for(;o--;){const i=r.join[o](e,t,n,r);if(!0===i||1===i)break;if("number"==typeof i)return"\n".repeat(1+i);if(!1===i)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}const fs=/\r?\n|\r/g;function ps(e,t){const n=[];let r,o=0,i=0;for(;r=fs.exec(e);)l(e.slice(o,r.index)),n.push(r[0]),o=r.index+r[0].length,i++;return l(e.slice(o)),n.join("");function l(e){n.push(t(e,i,!e))}}function hs(e,t){return e-t}function ds(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,r=[],o=[],i=e+t;let l,a=-1,s=0;for(;l=n.exec(i);)r.push(l.index);for(;++a<r.length;)s!==r[a]&&o.push(e.slice(s,r[a])),o.push("\\"),s=r[a];return o.push(e.slice(s)),o.join("")}function gs(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,o=n.line||1,i=n.column||1;return{move:function(e){const t=e||"",n=t.split(/\r?\n|\r/g),l=n[n.length-1];return o+=n.length-1,i=1===n.length?i+l.length:1+l.length+r,t},current:function(){return{now:{line:o,column:i},lineShift:r}},shift:function(e){r+=e}}}function ms(e,t){const n=t||{},r={associationId:ss,containerPhrasing:vs,containerFlow:xs,createTracker:gs,compilePattern:cs,enter:function(e){return r.stack.push(e),function(){r.stack.pop()}},handlers:{...ht},handle:void 0,indentLines:ps,indexStack:[],join:[...is],options:{},safe:ws,stack:[],unsafe:[...as]};ns(r,n),r.options.tightDefinitions&&r.join.push(bs),r.handle=li("type",{invalid:ys,unknown:ks,handlers:r.handlers});let o=r.handle(e,void 0,r,{before:"\n",after:"\n",now:{line:1,column:1},lineShift:0});return o&&10!==o.charCodeAt(o.length-1)&&13!==o.charCodeAt(o.length-1)&&(o+="\n"),o}function ys(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function ks(e){throw new Error("Cannot handle unknown node `"+e.type+"`")}function bs(e,t){if("definition"===e.type&&e.type===t.type)return 0}function vs(e,t){return function(e,t,n){const r=t.indexStack,o=e.children||[],i=[];let l,a=-1,s=n.before;r.push(-1);let c=t.createTracker(n);for(;++a<o.length;){const u=o[a];let f;if(r[r.length-1]=a,a+1<o.length){let n=t.handle.handlers[o[a+1].type];n&&n.peek&&(n=n.peek),f=n?n(o[a+1],e,t,{before:"",after:"",...c.current()}).charAt(0):""}else f=n.after;i.length>0&&("\r"===s||"\n"===s)&&"html"===u.type&&(i[i.length-1]=i[i.length-1].replace(/(\r?\n|\r)$/," "),s=" ",c=t.createTracker(n),c.move(i.join("")));let p=t.handle(u,e,t,{...c.current(),after:f,before:s});l&&l===p.slice(0,1)&&(p=$e(l.charCodeAt(0))+p.slice(1));const h=t.attentionEncodeSurroundingInfo;t.attentionEncodeSurroundingInfo=void 0,l=void 0,h&&(i.length>0&&h.before&&s===i[i.length-1].slice(-1)&&(i[i.length-1]=i[i.length-1].slice(0,-1)+$e(s.charCodeAt(0))),h.after&&(l=f)),c.move(p),i.push(p),s=p.slice(-1)}return r.pop(),i.join("")}(e,this,t)}function xs(e,t){return function(e,t,n){const r=t.indexStack,o=e.children||[],i=t.createTracker(n),l=[];let a=-1;for(r.push(-1);++a<o.length;){const n=o[a];r[r.length-1]=a,l.push(i.move(t.handle(n,e,t,{before:"\n",after:"\n",...i.current()}))),"list"!==n.type&&(t.bulletLastUsed=void 0),a<o.length-1&&l.push(i.move(us(n,o[a+1],e,t)))}return r.pop(),l.join("")}(e,this,t)}function ws(e,t){return function(e,t,n){const r=(n.before||"")+(t||"")+(n.after||""),o=[],i=[],l={};let a=-1;for(;++a<e.unsafe.length;){const t=e.unsafe[a];if(!je(e.stack,t))continue;const n=e.compilePattern(t);let i;for(;i=n.exec(r);){const e="before"in t||Boolean(t.atBreak),n="after"in t,r=i.index+(e?i[1].length:0);o.includes(r)?(l[r].before&&!e&&(l[r].before=!1),l[r].after&&!n&&(l[r].after=!1)):(o.push(r),l[r]={before:e,after:n})}}o.sort(hs);let s=n.before?n.before.length:0;const c=r.length-(n.after?n.after.length:0);for(a=-1;++a<o.length;){const e=o[a];e<s||e>=c||e+1<c&&o[a+1]===e+1&&l[e].after&&!l[e+1].before&&!l[e+1].after||o[a-1]===e-1&&l[e].before&&!l[e-1].before&&!l[e-1].after||(s!==e&&i.push(ds(r.slice(s,e),"\\")),s=e,!/[!-/:-@[-`{-~]/.test(r.charAt(e))||n.encode&&n.encode.includes(r.charAt(e))?(i.push($e(r.charCodeAt(e))),s++):i.push("\\"))}return i.push(ds(r.slice(s,c),n.after)),i.join("")}(this,e,t)}function Ss(e){const t=this;t.compiler=function(n){return ms(n,{...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]})}}class Cs{_processor;_keepRawTags=[];constructor(){this._buildProcessor()}keep(e){this._keepRawTags.push(e.toLowerCase()),this._buildProcessor()}parse(e){return this._processor.processSync(e).toString().trim()}_getRawTagsHandlers(){return this._keepRawTags.reduce((e,t)=>(e[t]=(e,t)=>{const n=Ji(al(t.tagName,t.properties),{allowDangerousHtml:!0,closeSelfClosing:!0}),r=n.indexOf(">"),o=n.slice(0,r+1),i=n.slice(r+1);return[{type:"html",value:o},...e.all(t),{type:"html",value:i}]},e),{})}_buildProcessor(){this._processor=N().use(ml).use(As).use(es,{handlers:this._getRawTagsHandlers()}).use(dn,{singleTilde:!0}).use(yo).use(Ss,{resourceLink:!0,emphasis:"_",rule:"-",handlers:{break:()=>"\n"},unsafe:[{character:"<"}]})}}function As(){return function(e){Ke(e,"element",(e,t,n)=>{null!==t&&"label"===e.tagName&&"element"===n.type&&"li"===n.tagName&&n.children.splice(t,1,...e.children)})}}class Ts{_htmlDP;_markdown2html;_html2markdown;constructor(e){this._htmlDP=new i.HtmlDataProcessor(e),this._markdown2html=new hl,this._html2markdown=new Cs}keepHtml(e){this._html2markdown.keep(e)}toView(e){const t=this._markdown2html.parse(e);return this._htmlDP.toView(t)}toData(e){const t=this._htmlDP.toData(e);return this._html2markdown.parse(t)}registerRawContentMatcher(e){this._htmlDP.registerRawContentMatcher(e)}useFillerType(){}}class Es extends o.Plugin{constructor(e){super(e),e.data.processor=new Ts(e.data.viewDocument)}static get pluginName(){return"Markdown"}static get isOfficialPlugin(){return!0}}var Ns=n(331);const Is=["SPAN","BR","PRE","CODE"];class Ps extends o.Plugin{_gfmDataProcessor;constructor(e){super(e),this._gfmDataProcessor=new Ts(e.data.viewDocument)}static get pluginName(){return"PasteFromMarkdownExperimental"}static get isOfficialPlugin(){return!0}static get requires(){return[Ns.ClipboardPipeline]}init(){const e=this.editor,t=e.editing.view.document,n=e.plugins.get("ClipboardPipeline");let r=!1;this.listenTo(t,"keydown",(e,t)=>{r=t.shiftKey}),this.listenTo(n,"inputTransformation",(e,t)=>{if(r)return;const n=t.dataTransfer.getData("text/html");if(!n){const e=t.dataTransfer.getData("text/plain");return void(t.content=this._gfmDataProcessor.toView(e))}const o=this._parseMarkdownFromHtml(n);o&&(t.content=this._gfmDataProcessor.toView(o))})}_parseMarkdownFromHtml(e){const t=this._removeOsSpecificTags(e);if(!this._containsOnlyAllowedFirstLevelTags(t))return null;const n=this._removeFirstLevelWrapperTagsAndBrs(t);return this._containsAnyRemainingHtmlTags(n)?null:this._replaceHtmlReservedEntitiesWithCharacters(n)}_removeOsSpecificTags(e){return e.replace(/^<meta\b[^>]*>/,"").trim().replace(/^<html>/,"").replace(/<\/html>$/,"").trim().replace(/^<body>/,"").replace(/<\/body>$/,"").trim().replace(/^<!--StartFragment-->/,"").replace(/<!--EndFragment-->$/,"").trim()}_containsOnlyAllowedFirstLevelTags(e){const t=new DOMParser,{body:n}=t.parseFromString(e,"text/html");return Array.from(n.children).map(e=>e.tagName).every(e=>Is.includes(e))}_removeFirstLevelWrapperTagsAndBrs(e){const t=new DOMParser,{body:n}=t.parseFromString(e,"text/html"),r=n.querySelectorAll("br");for(const e of r)e.replaceWith("\n");const o=n.querySelectorAll(":scope > *");for(const e of o){const t=e.cloneNode(!0);e.replaceWith(...t.childNodes)}return n.innerHTML}_containsAnyRemainingHtmlTags(e){return e.includes("<")}_replaceHtmlReservedEntitiesWithCharacters(e){return e.replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&nbsp;/g," ")}}})(),(window.CKEditor5=window.CKEditor5||{}).markdownGfm=r})();
4
+ */(()=>{var e={237:e=>{"use strict";e.exports=CKEditor5.dll},331:(e,t,n)=>{e.exports=n(237)("./src/clipboard.js")},710:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},l=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,c,u,f=arguments[0],p=1,h=arguments.length,d=!1;for("boolean"==typeof f&&(d=f,f=arguments[1]||{},p=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});p<h;++p)if(null!=(t=arguments[p]))for(n in t)r=s(f,n),f!==(o=s(t,n))&&(d&&o&&(l(o)||(c=i(o)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&l(r)?r:{},a(f,{name:n,newValue:e(d,u,o)})):void 0!==o&&a(f,{name:n,newValue:o}));return f}},782:(e,t,n)=>{e.exports=n(237)("./src/core.js")},783:(e,t,n)=>{e.exports=n(237)("./src/engine.js")}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{"use strict";n.r(r),n.d(r,{Markdown:()=>Es,MarkdownGfmDataProcessor:()=>Ts,MarkdownGfmHtmlToMd:()=>Cs,MarkdownGfmMdToHtml:()=>hl,PasteFromMarkdownExperimental:()=>Ps});var e={};n.r(e),n.d(e,{attentionMarkers:()=>Sr,contentInitial:()=>yr,disable:()=>Cr,document:()=>mr,flow:()=>br,flowInitial:()=>kr,insideSpan:()=>wr,string:()=>vr,text:()=>xr});var t={};n.r(t),n.d(t,{boolean:()=>So,booleanish:()=>Co,commaOrSpaceSeparated:()=>Io,commaSeparated:()=>No,number:()=>To,overloadedBoolean:()=>Ao,spaceSeparated:()=>Eo});var o=n(782),i=n(783);function l(e){if(e)throw e}var a=n(710);function s(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function c(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(i,...l){const a=e[++n];let s=-1;if(i)r(i);else{for(;++s<t.length;)null!==l[s]&&void 0!==l[s]||(l[s]=t[s]);t=l,a?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let l;r&&t.push(o);try{l=e.apply(this,t)}catch(e){if(r&&n)throw e;return o(e)}r||(l&&l.then&&"function"==typeof l.then?l.then(i,o):l instanceof Error?o(l):i(l))}function o(e,...r){n||(n=!0,t(e,...r))}function i(e){o(null,e)}}(a,o)(...l):r(null,...l)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}function u(e){return e&&"object"==typeof e?"position"in e||"type"in e?p(e.position):"start"in e||"end"in e?p(e):"line"in e||"column"in e?f(e):"":""}function f(e){return h(e&&e.line)+":"+h(e&&e.column)}function p(e){return f(e&&e.start)+"-"+f(e&&e.end)}function h(e){return e&&"number"==typeof e?e:1}class d extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",o={},i=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!o.cause&&e&&(i=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.position)}const l=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=l?l.line:void 0,this.name=u(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=i&&o.cause&&"string"==typeof o.cause.stack?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}d.prototype.file="",d.prototype.name="",d.prototype.reason="",d.prototype.message="",d.prototype.stack="",d.prototype.column=void 0,d.prototype.line=void 0,d.prototype.ancestors=void 0,d.prototype.cause=void 0,d.prototype.fatal=void 0,d.prototype.place=void 0,d.prototype.ruleId=void 0,d.prototype.source=void 0;const g={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');m(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let l=-1,a=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else l<0&&(n=!0,l=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(o=i):(a=-1,o=l));r===o?o=l:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(m(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){m(e);let t,n=e.length,r=-1,o=0,i=-1,l=0;for(;n--;){const a=e.codePointAt(n);if(47!==a)r<0&&(t=!0,r=n+1),46===a?i<0?i=n:1!==l&&(l=1):i>-1&&(l=-1);else if(t){o=n+1;break}}if(i<0||r<0||0===l||1===l&&i===r-1&&i===o+1)return"";return e.slice(i,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)m(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){m(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,o="",i=0,l=-1,a=0,s=-1;for(;++s<=e.length;){if(s<e.length)n=e.codePointAt(s);else{if(47===n)break;n=47}if(47===n){if(l===s-1||1===a);else if(l!==s-1&&2===a){if(o.length<2||2!==i||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),l=s,a=0;continue}}else if(o.length>0){o="",i=0,l=s,a=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(l+1,s):o=e.slice(l+1,s),i=s-l-1;l=s,a=0}else 46===n&&a>-1?a++:a=-1}return o}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function m(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const y={cwd:function(){return"/"}};function k(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function b(e){if("string"==typeof e)e=new URL(e);else if(!k(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const v=["history","path","basename","stem","extname","dirname"];class x{constructor(e){let t;t=e?k(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":y.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<v.length;){const e=v[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)v.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?g.basename(this.path):void 0}set basename(e){S(e,"basename"),w(e,"basename"),this.path=g.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?g.dirname(this.path):void 0}set dirname(e){C(this.basename,"dirname"),this.path=g.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?g.extname(this.path):void 0}set extname(e){if(w(e,"extname"),C(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=g.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){k(e)&&(e=b(e)),S(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?g.basename(this.path,this.extname):void 0}set stem(e){S(e,"stem"),w(e,"stem"),this.path=g.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new d(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function w(e,t){if(e&&e.includes(g.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+g.sep+"`")}function S(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function C(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const A=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},T={}.hasOwnProperty;class E extends A{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=c()}copy(){const e=new E;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(a(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(D("data",this.frozen),this.namespace[e]=t,this):T.call(this.namespace,e)&&this.namespace[e]||void 0:e?(D("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=L(e),n=this.parser||this.Parser;return I("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),I("process",this.parser||this.Parser),P("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const i=L(e),l=n.parse(i);function a(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(l,i,function(e,t,r){if(e||!t||!r)return a(e);const o=t,i=n.stringify(o,r);var l;"string"==typeof(l=i)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(l)?r.value=i:r.result=i,a(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),I("processSync",this.parser||this.Parser),P("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,l(e),t=r}),F("processSync","process",n),t}run(e,t,n){O(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?o(void 0,n):new Promise(o);function o(o,i){const l=L(t);r.run(e,l,function(t,r,l){const a=r||e;t?i(t):o?o(a):n(void 0,a,l)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){l(e),n=t,r=!0}),F("runSync","run",r),n}stringify(e,t){this.freeze();const n=L(t),r=this.compiler||this.Compiler;return P("stringify",r),O(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(D("use",this.frozen),null==e);else if("function"==typeof e)c(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?l(e):i(e)}return this;function o(e){if("function"==typeof e)c(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;c(t,n)}else i(e)}}function i(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(e.plugins),e.settings&&(r.settings=a(!0,r.settings,e.settings))}function l(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){o(e[t])}}}function c(e,t){let r=-1,o=-1;for(;++r<n.length;)if(n[r][0]===e){o=r;break}if(-1===o)n.push([e,...t]);else if(t.length>0){let[r,...i]=t;const l=n[o][1];s(l)&&s(r)&&(r=a(!0,l,r)),n[o]=[e,r,...i]}}}}const N=(new E).freeze();function I(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function P(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function D(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function O(e){if(!s(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function F(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function L(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new x(e)}function M(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}const R=G(/[A-Za-z]/),z=G(/[\dA-Za-z]/),_=G(/[#-'*+\--9=?A-Z^-~]/);function B(e){return null!==e&&(e<32||127===e)}const j=G(/\d/),H=G(/[\dA-Fa-f]/),U=G(/[!-/:-@[-`{-~]/);function q(e){return null!==e&&e<-2}function V(e){return null!==e&&(e<0||32===e)}function W(e){return-2===e||-1===e||32===e}const $=G(/\p{P}|\p{S}/u),Y=G(/\s/);function G(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}const Q=function(e){if(null==e)return Z;if("function"==typeof e)return K(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Q(e[n]);return K(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return K(n);function n(n){const r=n;let o;for(o in e)if(r[o]!==t[o])return!1;return!0}}(e);if("string"==typeof e)return function(e){return K(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function K(e){return function(t,n,r){return Boolean(X(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function Z(){return!0}function X(e){return null!==e&&"object"==typeof e&&"type"in e}const J=[],ee=!0,te=!1,ne="skip";function re(e,t,n,r){let o;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):o=t;const i=Q(o),l=r?-1:1;!function e(o,a,s){const c=o&&"object"==typeof o?o:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,f,p=J;if((!t||i(o,a,s[s.length-1]||void 0))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[ee,e];return null==e?J:[e]}(n(o,s)),p[0]===te))return p;if("children"in o&&o.children){const t=o;if(t.children&&p[0]!==ne)for(u=(r?t.children.length:-1)+l,f=s.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,f)(),c[0]===te)return c;u="number"==typeof c[1]?c[1]:u+l}}return p}}(e,void 0,[])()}function oe(e,t,n){const r=Q((n||{}).ignore||[]),o=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([ie(e[0]),le(e[1])])}return t}(t);let i=-1;for(;++i<o.length;)re(e,"text",l);function l(e,t){let n,l=-1;for(;++l<t.length;){const e=t[l],o=n?n.children:void 0;if(r(e,o?o.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=o[i][0],l=o[i][1];let a=0;const s=n.children,c=s.indexOf(e);let u=!1,f=[];r.lastIndex=0;let p=r.exec(e.value);for(;p;){const n=p.index,o={index:p.index,input:p.input,stack:[...t,e]};let i=l(...p,o);if("string"==typeof i&&(i=i.length>0?{type:"text",value:i}:void 0),!1===i?r.lastIndex=n+1:(a!==n&&f.push({type:"text",value:e.value.slice(a,n)}),Array.isArray(i)?f.push(...i):i&&f.push(i),a=n+p[0].length,u=!0),!r.global)break;p=r.exec(e.value)}u?(a<e.value.length&&f.push({type:"text",value:e.value.slice(a)}),n.children.splice(c,1,...f)):f=[e];return c+f.length}(e,t)}}function ie(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function le(e){return"function"==typeof e?e:function(){return e}}const ae="phrasing",se=["autolink","link","image","label"];function ce(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function ue(e){this.config.enter.autolinkProtocol.call(this,e)}function fe(e){this.config.exit.autolinkProtocol.call(this,e)}function pe(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function he(e){this.config.exit.autolinkEmail.call(this,e)}function de(e){this.exit(e)}function ge(e){oe(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,me],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,ye]],{ignore:["link","linkReference"]})}function me(e,t,n,r,o){let i="";if(!ke(o))return!1;if(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const l=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const o=M(e,"(");let i=M(e,")");for(;-1!==r&&o>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}(n+r);if(!l[0])return!1;const a={type:"link",title:null,url:i+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[a,{type:"text",value:l[1]}]:a}function ye(e,t,n,r){return!(!ke(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function ke(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||Y(n)||$(n))&&(!t||47!==n)}function be(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function ve(){this.buffer()}function xe(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function we(){this.buffer()}function Se(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Ce(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=be(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Ae(e){this.exit(e)}function Te(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=be(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Ee(e){this.exit(e)}function Ne(e,t,n,r){const o=n.createTracker(r);let i=o.move("[^");const l=n.enter("footnoteReference"),a=n.enter("reference");return i+=o.move(n.safe(n.associationId(e),{after:"]",before:i})),a(),l(),i+=o.move("]"),i}function Ie(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,o){const i=r.createTracker(o);let l=i.move("[^");const a=r.enter("footnoteDefinition"),s=r.enter("label");l+=i.move(r.safe(r.associationId(e),{before:l,after:"]"})),s(),l+=i.move("]:"),e.children&&e.children.length>0&&(i.shift(4),l+=i.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,i.current()),t?De:Pe)));return a(),l},footnoteReference:Ne},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function Pe(e,t,n){return 0===t?e:De(e,t,n)}function De(e,t,n){return(n?"":" ")+e}Ne.peek=function(){return"["};const Oe=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function Fe(e){this.enter({type:"delete",children:[]},e)}function Le(e){this.exit(e)}function Me(e,t,n,r){const o=n.createTracker(r),i=n.enter("strikethrough");let l=o.move("~~");return l+=n.containerPhrasing(e,{...o.current(),before:l,after:"~"}),l+=o.move("~~"),i(),l}function Re(e){return e.length}function ze(e){return null==e?"":String(e)}function _e(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function Be(e,t,n){return">"+(n?"":" ")+e}function je(e,t){return He(e,t.inConstruct,!0)&&!He(e,t.notInConstruct,!1)}function He(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Ue(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;)if("\n"===n.unsafe[o].character&&je(n.stack,n.unsafe[o]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}function qe(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Ve(e,t,n){return(n?"":" ")+e}function We(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function $e(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Ye(e){return null===e||V(e)||Y(e)?1:$(e)?2:void 0}function Ge(e,t,n){const r=Ye(e),o=Ye(t);return void 0===r?void 0===o?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===o?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===o?{inside:!1,outside:!1}:1===o?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===o?{inside:!1,outside:!1}:1===o?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function Qe(e,t,n,r){const o=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),i=n.enter("emphasis"),l=n.createTracker(r),a=l.move(o);let s=l.move(n.containerPhrasing(e,{after:o,before:a,...l.current()}));const c=s.charCodeAt(0),u=Ge(r.before.charCodeAt(r.before.length-1),c,o);u.inside&&(s=$e(c)+s.slice(1));const f=s.charCodeAt(s.length-1),p=Ge(r.after.charCodeAt(0),f,o);p.inside&&(s=s.slice(0,-1)+$e(f));const h=l.move(o);return i(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},a+s+h}function Ke(e,t,n,r){let o,i,l;"function"==typeof t&&"function"!=typeof n?(i=void 0,l=t,o=n):(i=t,l=n,o=r),re(e,i,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return l(e,r,n)},o)}Me.peek=function(){return"~"},Qe.peek=function(e,t,n){return n.options.emphasis||"*"};const Ze={};function Xe(e,t){const n=t||Ze;return Je(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function Je(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return et(e.children,t,n)}return Array.isArray(e)?et(e,t,n):""}function et(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=Je(e[o],t,n);return r.join("")}function tt(e,t){let n=!1;return Ke(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,te}),Boolean((!e.depth||e.depth<3)&&Xe(e)&&(t.options.setext||n))}function nt(e){return e.value||""}function rt(e,t,n,r){const o=We(n),i='"'===o?"Quote":"Apostrophe",l=n.enter("image");let a=n.enter("label");const s=n.createTracker(r);let c=s.move("![");return c+=s.move(n.safe(e.alt,{before:c,after:"]",...s.current()})),c+=s.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(a=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),a(),e.title&&(a=n.enter(`title${i}`),c+=s.move(" "+o),c+=s.move(n.safe(e.title,{before:c,after:o,...s.current()})),c+=s.move(o),a()),c+=s.move(")"),l(),c}function ot(e,t,n,r){const o=e.referenceType,i=n.enter("imageReference");let l=n.enter("label");const a=n.createTracker(r);let s=a.move("![");const c=n.safe(e.alt,{before:s,after:"]",...a.current()});s+=a.move(c+"]["),l();const u=n.stack;n.stack=[],l=n.enter("reference");const f=n.safe(n.associationId(e),{before:s,after:"]",...a.current()});return l(),n.stack=u,i(),"full"!==o&&c&&c===f?"shortcut"===o?s=s.slice(0,-1):s+=a.move("]"):s+=a.move(f+"]"),s}function it(e,t,n){let r=e.value||"",o="`",i=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const e=n.unsafe[i],t=n.compilePattern(e);let o;if(e.atBreak)for(;o=t.exec(r);){let e=o.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(o.index+1)}}return o+r+o}function lt(e,t){const n=Xe(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function at(e,t,n,r){const o=We(n),i='"'===o?"Quote":"Apostrophe",l=n.createTracker(r);let a,s;if(lt(e,n)){const t=n.stack;n.stack=[],a=n.enter("autolink");let r=l.move("<");return r+=l.move(n.containerPhrasing(e,{before:r,after:">",...l.current()})),r+=l.move(">"),a(),n.stack=t,r}a=n.enter("link"),s=n.enter("label");let c=l.move("[");return c+=l.move(n.containerPhrasing(e,{before:c,after:"](",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=l.move(" "+o),c+=l.move(n.safe(e.title,{before:c,after:o,...l.current()})),c+=l.move(o),s()),c+=l.move(")"),a(),c}function st(e,t,n,r){const o=e.referenceType,i=n.enter("linkReference");let l=n.enter("label");const a=n.createTracker(r);let s=a.move("[");const c=n.containerPhrasing(e,{before:s,after:"]",...a.current()});s+=a.move(c+"]["),l();const u=n.stack;n.stack=[],l=n.enter("reference");const f=n.safe(n.associationId(e),{before:s,after:"]",...a.current()});return l(),n.stack=u,i(),"full"!==o&&c&&c===f?"shortcut"===o?s=s.slice(0,-1):s+=a.move("]"):s+=a.move(f+"]"),s}function ct(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function ut(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}nt.peek=function(){return"<"},rt.peek=function(){return"!"},ot.peek=function(){return"!"},it.peek=function(){return"`"},at.peek=function(e,t,n){return lt(e,n)?"<":"["},st.peek=function(){return"["};const ft=Q(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function pt(e,t,n,r){const o=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),i=n.enter("strong"),l=n.createTracker(r),a=l.move(o+o);let s=l.move(n.containerPhrasing(e,{after:o,before:a,...l.current()}));const c=s.charCodeAt(0),u=Ge(r.before.charCodeAt(r.before.length-1),c,o);u.inside&&(s=$e(c)+s.slice(1));const f=s.charCodeAt(s.length-1),p=Ge(r.after.charCodeAt(0),f,o);p.inside&&(s=s.slice(0,-1)+$e(f));const h=l.move(o+o);return i(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},a+s+h}pt.peek=function(e,t,n){return n.options.strong||"*"};const ht={blockquote:function(e,t,n,r){const o=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const l=n.indentLines(n.containerFlow(e,i.current()),Be);return o(),l},break:Ue,code:function(e,t,n,r){const o=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),i=e.value||"",l="`"===o?"GraveAccent":"Tilde";if(qe(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(i,Ve);return e(),t}const a=n.createTracker(r),s=o.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),o=r,i=0,l=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===o?++i>l&&(l=i):i=1,o=r+t.length,r=n.indexOf(t,o);return l}(i,o)+1,3)),c=n.enter("codeFenced");let u=a.move(s);if(e.lang){const t=n.enter(`codeFencedLang${l}`);u+=a.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...a.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${l}`);u+=a.move(" "),u+=a.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...a.current()})),t()}return u+=a.move("\n"),i&&(u+=a.move(i+"\n")),u+=a.move(s),c(),u},definition:function(e,t,n,r){const o=We(n),i='"'===o?"Quote":"Apostrophe",l=n.enter("definition");let a=n.enter("label");const s=n.createTracker(r);let c=s.move("[");return c+=s.move(n.safe(n.associationId(e),{before:c,after:"]",...s.current()})),c+=s.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(a=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...s.current()}))),a(),e.title&&(a=n.enter(`title${i}`),c+=s.move(" "+o),c+=s.move(n.safe(e.title,{before:c,after:o,...s.current()})),c+=s.move(o),a()),l(),c},emphasis:Qe,hardBreak:Ue,heading:function(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(tt(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),l=n.containerPhrasing(e,{...i.current(),before:"\n",after:"\n"});return r(),t(),l+"\n"+(1===o?"=":"-").repeat(l.length-(Math.max(l.lastIndexOf("\r"),l.lastIndexOf("\n"))+1))}const l="#".repeat(o),a=n.enter("headingAtx"),s=n.enter("phrasing");i.move(l+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...i.current()});return/^[\t ]/.test(c)&&(c=$e(c.charCodeAt(0))+c.slice(1)),c=c?l+" "+c:l,n.options.closeAtx&&(c+=" "+l),s(),a(),c},html:nt,image:rt,imageReference:ot,inlineCode:it,link:at,linkReference:st,list:function(e,t,n,r){const o=n.enter("list"),i=n.bulletCurrent;let l=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):ct(n);const a=e.ordered?"."===l?")":".":function(e){const t=ct(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let s=!(!t||!n.bulletLastUsed)&&l===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==l&&"-"!==l||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(s=!0),ut(n)===l&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){s=!0;break}}}}s&&(l=a),n.bulletCurrent=l;const c=n.containerFlow(e,r);return n.bulletLastUsed=l,n.bulletCurrent=i,o(),c},listItem:function(e,t,n,r){const o=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let i=n.bulletCurrent||ct(n);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i);let l=i.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(l=4*Math.ceil(l/4));const a=n.createTracker(r);a.move(i+" ".repeat(l-i.length)),a.shift(l);const s=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,a.current()),function(e,t,n){if(t)return(n?"":" ".repeat(l))+e;return(n?i:i+" ".repeat(l-i.length))+e});return s(),c},paragraph:function(e,t,n,r){const o=n.enter("paragraph"),i=n.enter("phrasing"),l=n.containerPhrasing(e,r);return i(),o(),l},root:function(e,t,n,r){return(e.children.some(function(e){return ft(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:pt,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(ut(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function dt(e){const t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function gt(e){this.exit(e),this.data.inTable=void 0}function mt(e){this.enter({type:"tableRow",children:[]},e)}function yt(e){this.exit(e)}function kt(e){this.enter({type:"tableCell",children:[]},e)}function bt(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,vt));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function vt(e,t){return"|"===t?t:e}function xt(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=ht.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return a(function(e,t,n){const r=e.children;let o=-1;const i=[],l=t.enter("table");for(;++o<r.length;)i[o]=s(r[o],t,n);return l(),i}(e,n,r),e.align)},tableCell:l,tableRow:function(e,t,n,r){const o=s(e,n,r),i=a([o]);return i.slice(0,i.indexOf("\n"))}}};function l(e,t,n,r){const o=n.enter("tableCell"),l=n.enter("phrasing"),a=n.containerPhrasing(e,{...r,before:i,after:i});return l(),o(),a}function a(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),o=n.stringLength||Re,i=[],l=[],a=[],s=[];let c=0,u=-1;for(;++u<e.length;){const t=[],r=[];let i=-1;for(e[u].length>c&&(c=e[u].length);++i<e[u].length;){const l=ze(e[u][i]);if(!1!==n.alignDelimiters){const e=o(l);r[i]=e,(void 0===s[i]||e>s[i])&&(s[i]=e)}t.push(l)}l[u]=t,a[u]=r}let f=-1;if("object"==typeof r&&"length"in r)for(;++f<c;)i[f]=_e(r[f]);else{const e=_e(r);for(;++f<c;)i[f]=e}f=-1;const p=[],h=[];for(;++f<c;){const e=i[f];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let o=!1===n.alignDelimiters?1:Math.max(1,s[f]-t.length-r.length);const l=t+"-".repeat(o)+r;!1!==n.alignDelimiters&&(o=t.length+o+r.length,o>s[f]&&(s[f]=o),h[f]=o),p[f]=l}l.splice(1,0,p),a.splice(1,0,h),u=-1;const d=[];for(;++u<l.length;){const e=l[u],t=a[u];f=-1;const r=[];for(;++f<c;){const o=e[f]||"";let l="",a="";if(!1!==n.alignDelimiters){const e=s[f]-(t[f]||0),n=i[f];114===n?l=" ".repeat(e):99===n?e%2?(l=" ".repeat(e/2+.5),a=" ".repeat(e/2-.5)):(l=" ".repeat(e/2),a=l):a=" ".repeat(e)}!1===n.delimiterStart||f||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===o||!1===n.delimiterStart&&!f||r.push(" "),!1!==n.alignDelimiters&&r.push(l),r.push(o),!1!==n.alignDelimiters&&r.push(a),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&f===c-1||r.push("|")}d.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return d.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:o})}function s(e,t,n){const r=e.children;let o=-1;const i=[],a=t.enter("tableRow");for(;++o<r.length;)i[o]=l(r[o],0,t,n);return a(),i}}function wt(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function St(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const n=e.children[0];if(n&&"text"===n.type){const r=t.children;let o,i=-1;for(;++i<r.length;){const e=r[i];if("paragraph"===e.type){o=e;break}}o===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function Ct(e,t,n,r){const o=e.children[0],i="boolean"==typeof e.checked&&o&&"paragraph"===o.type,l="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);i&&a.move(l);let s=ht.listItem(e,t,n,{...r,...a.current()});return i&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+l})),s}function At(e,t,n,r){const o=e.length;let i,l=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);l<r.length;)i=r.slice(l,l+1e4),i.unshift(t,0),e.splice(...i),l+=1e4,t+=1e4}function Tt(e,t){return e.length>0?(At(e,e.length,0,t),e):t}const Et={}.hasOwnProperty;function Nt(e){const t={};let n=-1;for(;++n<e.length;)It(t,e[n]);return t}function It(e,t){let n;for(n in t){const r=(Et.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){Et.call(r,i)||(r[i]=[]);const e=o[i];Pt(r[i],Array.isArray(e)?e:e?[e]:[])}}}function Pt(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);At(e,0,0,r)}const Dt={tokenize:function(e,t,n){let r=0;return function t(i){if((87===i||119===i)&&r<3)return r++,e.consume(i),t;if(46===i&&3===r)return e.consume(i),o;return n(i)};function o(e){return null===e?n(e):t(e)}},partial:!0},Ot={tokenize:function(e,t,n){let r,o,i;return l;function l(t){return 46===t||95===t?e.check(Lt,s,a)(t):null===t||V(t)||Y(t)||45!==t&&$(t)?s(t):(i=!0,e.consume(t),l)}function a(t){return 95===t?r=!0:(o=r,r=void 0),e.consume(t),l}function s(e){return o||r||!i?n(e):t(e)}},partial:!0},Ft={tokenize:function(e,t){let n=0,r=0;return o;function o(l){return 40===l?(n++,e.consume(l),o):41===l&&r<n?i(l):33===l||34===l||38===l||39===l||41===l||42===l||44===l||46===l||58===l||59===l||60===l||63===l||93===l||95===l||126===l?e.check(Lt,t,i)(l):null===l||V(l)||Y(l)?t(l):(e.consume(l),o)}function i(t){return 41===t&&r++,e.consume(t),o}},partial:!0},Lt={tokenize:function(e,t,n){return r;function r(l){return 33===l||34===l||39===l||41===l||42===l||44===l||46===l||58===l||59===l||63===l||95===l||126===l?(e.consume(l),r):38===l?(e.consume(l),i):93===l?(e.consume(l),o):60===l||null===l||V(l)||Y(l)?t(l):n(l)}function o(e){return null===e||40===e||91===e||V(e)||Y(e)?t(e):r(e)}function i(e){return R(e)?l(e):n(e)}function l(t){return 59===t?(e.consume(t),r):R(t)?(e.consume(t),l):n(t)}},partial:!0},Mt={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return z(e)?n(e):t(e)}},partial:!0},Rt={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!Ht.call(r,r.previous)||Wt(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Dt,e.attempt(Ot,e.attempt(Ft,o),n),n)(t)};function o(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:Ht},zt={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let o="",i=!1;return function(t){if((72===t||104===t)&&Ut.call(r,r.previous)&&!Wt(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(t),e.consume(t),l;return n(t)};function l(t){if(R(t)&&o.length<5)return o+=String.fromCodePoint(t),e.consume(t),l;if(58===t){const n=o.toLowerCase();if("http"===n||"https"===n)return e.consume(t),a}return n(t)}function a(t){return 47===t?(e.consume(t),i?s:(i=!0,a)):n(t)}function s(t){return null===t||B(t)||V(t)||Y(t)||$(t)?n(t):e.attempt(Ot,e.attempt(Ft,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:Ut},_t={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let o,i;return function(t){if(!Vt(t)||!qt.call(r,r.previous)||Wt(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(t)};function l(t){return Vt(t)?(e.consume(t),l):64===t?(e.consume(t),a):n(t)}function a(t){return 46===t?e.check(Mt,c,s)(t):45===t||95===t||z(t)?(i=!0,e.consume(t),a):c(t)}function s(t){return e.consume(t),o=!0,a}function c(l){return i&&o&&R(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(l)):n(l)}},previous:qt},Bt={};let jt=48;for(;jt<123;)Bt[jt]=_t,jt++,58===jt?jt=65:91===jt&&(jt=97);function Ht(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||V(e)}function Ut(e){return!R(e)}function qt(e){return!(47===e||Vt(e))}function Vt(e){return 43===e||45===e||46===e||95===e||z(e)}function Wt(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function $t(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){if(W(r))return e.enter(n),l(r);return t(r)};function l(r){return W(r)&&i++<o?(e.consume(r),l):(e.exit(n),t(r))}}Bt[43]=_t,Bt[45]=_t,Bt[46]=_t,Bt[95]=_t,Bt[72]=[_t,zt],Bt[104]=[_t,zt],Bt[87]=[_t,Rt],Bt[119]=[_t,Rt];const Yt={partial:!0,tokenize:function(e,t,n){return function(t){return W(t)?$t(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||q(e)?t(e):n(e)}}};const Gt={tokenize:function(e,t,n){const r=this;return $t(e,function(e){const o=r.events[r.events.length-1];return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function Qt(e,t,n){const r=this;let o=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;o--;){const e=r.events[o][1];if("labelImage"===e.type){l=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!l||!l._balanced)return n(o);const a=be(r.sliceSerialize({start:l.end,end:r.now()}));if(94!==a.codePointAt(0)||!i.includes(a.slice(1)))return n(o);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)}}function Kt(e,t){let n,r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){n=e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},s=[e[r+1],e[r+2],["enter",o,t],e[r+3],e[r+4],["enter",i,t],["exit",i,t],["enter",l,t],["enter",a,t],["exit",a,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",o,t]];return e.splice(r,e.length-r+1,...s),e}function Zt(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,l=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),a};function a(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(a){if(l>999||93===a&&!i||null===a||91===a||V(a))return n(a);if(93===a){e.exit("chunkString");const i=e.exit("gfmFootnoteCallString");return o.includes(be(r.sliceSerialize(i)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(a)}return V(a)||(i=!0),l++,e.consume(a),92===a?c:s}function c(t){return 91===t||92===t||93===t?(e.consume(t),l++,s):s(t)}}function Xt(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,l,a=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),s};function s(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(a>999||93===t&&!l||null===t||91===t||V(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return i=be(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return V(t)||(l=!0),a++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),a++,c):c(t)}function f(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(i)||o.push(i),$t(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function Jt(e,t,n){return e.check(Yt,t,e.attempt(Gt,t,n))}function en(e){e.exit("gfmFootnoteDefinition")}function tn(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}function nn(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const o=this.previous,i=this.events;let l=0;return function(t){if(126===o&&"characterEscape"!==i[i.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),a(t)};function a(i){const s=Ye(o);if(126===i)return l>1?r(i):(e.consume(i),l++,a);if(l<2&&!t)return r(i);const c=e.exit("strikethroughSequenceTemporary"),u=Ye(i);return c._open=!u||2===u&&Boolean(s),c._close=!s||2===s&&Boolean(u),n(i)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const o={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},i={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},l=[["enter",o,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",i,t]],a=t.parser.constructs.insideSpan.null;a&&At(l,l.length,0,tn(a,e.slice(r+1,n),t)),At(l,l.length,0,[["exit",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",o,t]]),At(e,r-1,n-r+3,l),n=r+l.length-2;break}}n=-1;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class rn{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let o=0;if(0===n&&0===r.length)return;for(;o<e.map.length;){if(e.map[o][0]===t)return e.map[o][1]+=n,void e.map[o][2].push(...r);o+=1}e.map.push([t,n,r])}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0}}function on(e,t){let n=!1;const r=[];for(;t<e.length;){const o=e[t];if(n){if("enter"===o[0])"tableContent"===o[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===o[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===o[1].type)break}else"enter"===o[0]&&"tableDelimiterRow"===o[1].type&&(n=!0);t+=1}return r}function ln(e,t,n){const r=this;let o,i=0,l=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const o=t>-1?r.events[t][1].type:null,i="tableHead"===o||"tableRow"===o?v:a;if(i===v&&r.parser.lazy[r.now().line])return n(e);return i(e)};function a(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return s(e);return o=!0,l+=1,s(e)}(t)}function s(t){return null===t?n(t):q(t)?l>1?(l=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f):n(t):W(t)?$t(e,s,"whitespace")(t):(l+=1,o&&(o=!1,i+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),o=!0,s):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||V(t)?(e.exit("data"),s(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function f(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),o=!1,W(t)?$t(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))}function p(t){return 45===t||58===t?d(t):124===t?(o=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),h):b(t)}function h(t){return W(t)?$t(e,d,"whitespace")(t):d(t)}function d(t){return 58===t?(l+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),g):45===t?(l+=1,g(t)):null===t||q(t)?k(t):b(t)}function g(t){return 45===t?(e.enter("tableDelimiterFiller"),m(t)):b(t)}function m(t){return 45===t?(e.consume(t),m):58===t?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(t))}function y(t){return W(t)?$t(e,k,"whitespace")(t):k(t)}function k(n){return 124===n?p(n):(null===n||q(n))&&o&&i===l?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):b(n)}function b(e){return n(e)}function v(t){return e.enter("tableRow"),x(t)}function x(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),x):null===n||q(n)?(e.exit("tableRow"),t(n)):W(n)?$t(e,x,"whitespace")(n):(e.enter("data"),w(n))}function w(t){return null===t||124===t||V(t)?(e.exit("data"),x(t)):(e.consume(t),92===t?S:w)}function S(t){return 92===t||124===t?(e.consume(t),w):w(t)}}function an(e,t){let n,r,o,i=-1,l=!0,a=0,s=[0,0,0,0],c=[0,0,0,0],u=!1,f=0;const p=new rn;for(;++i<e.length;){const h=e[i],d=h[1];"enter"===h[0]?"tableHead"===d.type?(u=!1,0!==f&&(cn(p,t,f,n,r),r=void 0,f=0),n={type:"table",start:Object.assign({},d.start),end:Object.assign({},d.end)},p.add(i,0,[["enter",n,t]])):"tableRow"===d.type||"tableDelimiterRow"===d.type?(l=!0,o=void 0,s=[0,0,0,0],c=[0,i+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},d.start),end:Object.assign({},d.end)},p.add(i,0,[["enter",r,t]])),a="tableDelimiterRow"===d.type?2:r?3:1):!a||"data"!==d.type&&"tableDelimiterMarker"!==d.type&&"tableDelimiterFiller"!==d.type?"tableCellDivider"===d.type&&(l?l=!1:(0!==s[1]&&(c[0]=c[1],o=sn(p,t,s,a,void 0,o)),s=c,c=[s[1],i,0,0])):(l=!1,0===c[2]&&(0!==s[1]&&(c[0]=c[1],o=sn(p,t,s,a,void 0,o),s=[0,0,0,0]),c[2]=i)):"tableHead"===d.type?(u=!0,f=i):"tableRow"===d.type||"tableDelimiterRow"===d.type?(f=i,0!==s[1]?(c[0]=c[1],o=sn(p,t,s,a,i,o)):0!==c[1]&&(o=sn(p,t,c,a,i,o)),a=0):!a||"data"!==d.type&&"tableDelimiterMarker"!==d.type&&"tableDelimiterFiller"!==d.type||(c[3]=i)}for(0!==f&&cn(p,t,f,n,r),p.consume(t.events),i=-1;++i<t.events.length;){const e=t.events[i];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=on(t.events,i))}return e}function sn(e,t,n,r,o,i){const l=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(i.end=Object.assign({},un(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const a=un(t.events,n[1]);if(i={type:l,start:Object.assign({},a),end:Object.assign({},a)},e.add(n[1],0,[["enter",i,t]]),0!==n[2]){const o=un(t.events,n[2]),i=un(t.events,n[3]),l={type:"tableContent",start:Object.assign({},o),end:Object.assign({},i)};if(e.add(n[2],0,[["enter",l,t]]),2!==r){const r=t.events[n[2]],o=t.events[n[3]];if(r[1].end=Object.assign({},o[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",l,t]])}return void 0!==o&&(i.end=Object.assign({},un(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function cn(e,t,n,r,o){const i=[],l=un(t.events,n);o&&(o.end=Object.assign({},l),i.push(["exit",o,t])),r.end=Object.assign({},l),i.push(["exit",r,t]),e.add(n+1,0,i)}function un(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const fn={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o};function o(t){return V(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),i):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),i):n(t)}function i(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):n(t)}function l(r){return q(r)?t(r):W(r)?e.check({tokenize:pn},t,n)(r):n(r)}}};function pn(e,t,n){return $t(e,function(e){return null===e?n(e):t(e)},"whitespace")}const hn={};function dn(e){const t=e||hn,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return Nt([{text:Bt},{document:{91:{name:"gfmFootnoteDefinition",tokenize:Xt,continuation:{tokenize:Jt},exit:en}},text:{91:{name:"gfmFootnoteCall",tokenize:Zt},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Qt,resolveTo:Kt}}},nn(e),{flow:{null:{name:"table",tokenize:ln,resolveAll:an}}},{text:{91:fn}}])}(t)),o.push([{transforms:[ge],enter:{literalAutolink:ce,literalAutolinkEmail:ue,literalAutolinkHttp:ue,literalAutolinkWww:ue},exit:{literalAutolink:de,literalAutolinkEmail:he,literalAutolinkHttp:fe,literalAutolinkWww:pe}},{enter:{gfmFootnoteCallString:ve,gfmFootnoteCall:xe,gfmFootnoteDefinitionLabelString:we,gfmFootnoteDefinition:Se},exit:{gfmFootnoteCallString:Ce,gfmFootnoteCall:Ae,gfmFootnoteDefinitionLabelString:Te,gfmFootnoteDefinition:Ee}},{canContainEols:["delete"],enter:{strikethrough:Fe},exit:{strikethrough:Le}},{enter:{table:dt,tableData:kt,tableHeader:kt,tableRow:mt},exit:{codeText:bt,table:gt,tableData:yt,tableHeader:yt,tableRow:yt}},{exit:{taskListCheckValueChecked:wt,taskListCheckValueUnchecked:wt,paragraph:St}}]),i.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ae,notInConstruct:se},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ae,notInConstruct:se},{character:":",before:"[ps]",after:"\\/",inConstruct:ae,notInConstruct:se}]},Ie(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Oe}],handlers:{delete:Me}},xt(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Ct}}]}}(t))}class gn{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&mn(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),mn(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),mn(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);mn(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);mn(this.left,t.reverse())}}}function mn(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function yn(e){const t={};let n,r,o,i,l,a,s,c=-1;const u=new gn(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(a=n[1]._tokenizer.events,o=0,o<a.length&&"lineEndingBlank"===a[o][1].type&&(o+=2),o<a.length&&"content"===a[o][1].type))for(;++o<a.length&&"content"!==a[o][1].type;)"chunkText"===a[o][1].type&&(a[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,kn(u,c)),c=t[c],s=!0);else if(n[1]._container){for(o=c,r=void 0;o--;)if(i=u.get(o),"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);else if("linePrefix"!==i[1].type&&"listItemIndent"!==i[1].type)break;r&&(n[1].end={...u.get(r)[1].start},l=u.slice(r,c),l.unshift(n),u.splice(r,c-r+1,l))}}return At(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!s}function kn(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const a=l.events,s=[],c={};let u,f,p=-1,h=n,d=0,g=0;const m=[g];for(;h;){for(;e.get(++o)[1]!==h;);i.push(o),h._tokenizer||(u=r.sliceStream(h),h.next||u.push(null),f&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(u),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=n;++p<a.length;)"exit"===a[p][0]&&"enter"===a[p-1][0]&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(g=p+1,m.push(g),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):m.pop(),p=m.length;p--;){const t=a.slice(m[p],m[p+1]),n=i.pop();s.push([n,n+t.length-1]),e.splice(n,2,t)}for(s.reverse(),p=-1;++p<s.length;)c[d+s[p][0]]=d+s[p][1],d+=s[p][1]-s[p][0]-1;return c}const bn={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),$t(e,t,"linePrefix")},function(t){return e.enter("paragraph"),r(t)});let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):q(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}};const vn={tokenize:function(e){const t=this,n=[];let r,o,i,l=0;return a;function a(r){if(l<n.length){const o=n[l];return t.containerState=o[1],e.attempt(o[0].continuation,s,c)(r)}return c(r)}function s(e){if(l++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&k();const n=t.events.length;let o,i=n;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){o=t.events[i][1].end;break}y(l);let a=n;for(;a<t.events.length;)t.events[a][1].end={...o},a++;return At(t.events,i+1,0,t.events.slice(n)),t.events.length=a,c(e)}return a(e)}function c(o){if(l===n.length){if(!r)return p(o);if(r.currentConstruct&&r.currentConstruct.concrete)return d(o);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(xn,u,f)(o)}function u(e){return r&&k(),y(l),p(e)}function f(e){return t.parser.lazy[t.now().line]=l!==n.length,i=t.now().offset,d(e)}function p(n){return t.containerState={},e.attempt(xn,h,d)(n)}function h(e){return l++,n.push([t.currentConstruct,t.containerState]),p(e)}function d(n){return null===n?(r&&k(),y(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),g(n))}function g(n){return null===n?(m(e.exit("chunkFlow"),!0),y(0),void e.consume(n)):q(n)?(e.consume(n),m(e.exit("chunkFlow")),l=0,t.interrupt=void 0,a):(e.consume(n),g)}function m(e,n){const a=t.sliceStream(e);if(n&&a.push(null),e.previous=o,o&&(o.next=e),o=e,r.defineSkip(e.start),r.write(a),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<i&&(!r.events[e][1].end||r.events[e][1].end.offset>i))return;const n=t.events.length;let o,a,s=n;for(;s--;)if("exit"===t.events[s][0]&&"chunkFlow"===t.events[s][1].type){if(o){a=t.events[s][1].end;break}o=!0}for(y(l),e=n;e<t.events.length;)t.events[e][1].end={...a},e++;At(t.events,s+1,0,t.events.slice(n)),t.events.length=e}}function y(r){let o=n.length;for(;o-- >r;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function k(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},xn={tokenize:function(e,t,n){return $t(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const wn={resolve:function(e){return yn(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):q(t)?e.check(Sn,i,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},Sn={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),$t(e,o,"linePrefix")};function o(o){if(null===o||q(o))return n(o);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}};const Cn={tokenize:function(e){const t=this,n=e.attempt(Yt,function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,$t(e,e.attempt(this.parser.constructs.flow,r,e.attempt(wn,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const An={resolveAll:In()},Tn=Nn("string"),En=Nn("text");function Nn(e){return{resolveAll:In("text"===e?Pn:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,l);return i;function i(e){return s(e)?o(e):l(e)}function l(e){if(null!==e)return t.enter("data"),t.consume(e),a;t.consume(e)}function a(e){return s(e)?(t.exit("data"),o(e)):(t.consume(e),a)}function s(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function In(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function Pn(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],o=t.sliceStream(r);let i,l=o.length,a=-1,s=0;for(;l--;){const e=o[l];if("string"==typeof e){for(a=e.length;32===e.charCodeAt(a-1);)s++,a--;if(a)break;a=-1}else if(-2===e)i=!0,s++;else if(-1!==e){l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const o={type:n===e.length||i||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?a:r.start._bufferIndex+a,_index:r.start._index+l,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...o.start},r.start.offset===r.end.offset?Object.assign(r,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}const Dn={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,i(e)}(t)};function i(i){return i===r?(e.enter("thematicBreakSequence"),l(i)):o>=3&&(null===i||q(i))?(e.exit("thematicBreak"),t(i)):n(i)}function l(t){return t===r?(e.consume(t),o++,l):(e.exit("thematicBreakSequence"),W(t)?$t(e,i,"whitespace")(t):i(t))}}};const On={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Yt,o,i);function o(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,$t(e,t,"listItemIndent",r.containerState.size+1)(n)}function i(n){return r.containerState.furtherBlankLines||!W(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ln,t,l)(n))}function l(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,$t(e,e.attempt(On,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,l=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:j(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(Dn,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(t)}return n(t)};function a(t){return j(t)&&++l<10?(e.consume(t),a):(!r.interrupt||l<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),s(t)):n(t)}function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(Yt,r.interrupt?n:c,e.attempt(Fn,f,u))}function c(e){return r.containerState.initialBlankLine=!0,i++,f(e)}function u(t){return W(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),f):n(t)}function f(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},Fn={partial:!0,tokenize:function(e,t,n){const r=this;return $t(e,function(e){const o=r.events[r.events.length-1];return!W(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},Ln={partial:!0,tokenize:function(e,t,n){const r=this;return $t(e,function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}};const Mn={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(W(t))return $t(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(r){return e.attempt(Mn,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return W(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function Rn(e,t,n,r,o,i,l,a,s){const c=s||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),f;if(null===t||32===t||41===t||B(t))return n(t);return e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),d(t)};function f(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(a),f(t)):null===t||60===t||q(t)?n(t):(e.consume(t),92===t?h:p)}function h(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function d(o){return u||null!==o&&41!==o&&!V(o)?u<c&&40===o?(e.consume(o),u++,d):41===o?(e.consume(o),u--,d):null===o||32===o||40===o||B(o)?n(o):(e.consume(o),92===o?g:d):(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),t(o))}function g(t){return 40===t||41===t||92===t?(e.consume(t),d):d(t)}}function zn(e,t,n,r,o,i){const l=this;let a,s=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(i),c};function c(f){return s>999||null===f||91===f||93===f&&!a||94===f&&!s&&"_hiddenFootnoteSupport"in l.parser.constructs?n(f):93===f?(e.exit(i),e.enter(o),e.consume(f),e.exit(o),e.exit(r),t):q(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(f))}function u(t){return null===t||91===t||93===t||q(t)||s++>999?(e.exit("chunkString"),c(t)):(e.consume(t),a||(a=!W(t)),92===t?f:u)}function f(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}}function _n(e,t,n,r,o,i){let l;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(o),e.consume(t),e.exit(o),l=40===t?41:t,a;return n(t)};function a(n){return n===l?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),s(n))}function s(t){return t===l?(e.exit(i),a(l)):null===t?n(t):q(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),$t(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===l||null===t||q(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?u:c)}function u(t){return t===l||92===t?(e.consume(t),c):c(t)}}function Bn(e,t){let n;return function r(o){if(q(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r;if(W(o))return $t(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}const jn={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return zn.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=be(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),l):n(t)}function l(t){return V(t)?Bn(e,a)(t):a(t)}function a(t){return Rn(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(Hn,c,c)(t)}function c(t){return W(t)?$t(e,u,"whitespace")(t):u(t)}function u(i){return null===i||q(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)}}},Hn={partial:!0,tokenize:function(e,t,n){return function(t){return V(t)?Bn(e,r)(t):n(t)};function r(t){return _n(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return W(t)?$t(e,i,"whitespace")(t):i(t)}function i(e){return null===e||q(e)?t(e):n(e)}}};const Un={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),$t(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?a(t):q(t)?e.attempt(qn,i,a)(t):(e.enter("codeFlowValue"),l(t))}function l(t){return null===t||q(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),l)}function a(n){return e.exit("codeIndented"),t(n)}}},qn={partial:!0,tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):q(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):$t(e,i,"linePrefix",5)(t)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):q(e)?o(e):n(e)}}};const Vn={name:"headingAtx",resolve:function(e,t){let n,r,o=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);o-2>i&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},At(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||V(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),l(n)):null===n||q(n)?(e.exit("atxHeading"),t(n)):W(n)?$t(e,i,"whitespace")(n):(e.enter("atxHeadingText"),a(n))}function l(t){return 35===t?(e.consume(t),l):(e.exit("atxHeadingSequence"),i(t))}function a(t){return null===t||35===t||V(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),a)}}};const Wn={name:"setextUnderline",resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const l={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",l,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=l;return e.push(["exit",l,t]),e},tokenize:function(e,t,n){const r=this;let o;return function(t){let l,a=r.events.length;for(;a--;)if("lineEnding"!==r.events[a][1].type&&"linePrefix"!==r.events[a][1].type&&"content"!==r.events[a][1].type){l="paragraph"===r.events[a][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||l))return e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t);return n(t)};function i(t){return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),W(t)?$t(e,l,"lineSuffix")(t):l(t))}function l(r){return null===r||q(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const $n=["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"],Yn=["pre","script","style","textarea"],Gn={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,n){const r=this;let o,i,l,a,s;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(a){return 33===a?(e.consume(a),u):47===a?(e.consume(a),i=!0,h):63===a?(e.consume(a),o=3,r.interrupt?t:L):R(a)?(e.consume(a),l=String.fromCharCode(a),d):n(a)}function u(i){return 45===i?(e.consume(i),o=2,f):91===i?(e.consume(i),o=5,a=0,p):R(i)?(e.consume(i),o=4,r.interrupt?t:L):n(i)}function f(o){return 45===o?(e.consume(o),r.interrupt?t:L):n(o)}function p(o){const i="CDATA[";return o===i.charCodeAt(a++)?(e.consume(o),6===a?r.interrupt?t:T:p):n(o)}function h(t){return R(t)?(e.consume(t),l=String.fromCharCode(t),d):n(t)}function d(a){if(null===a||47===a||62===a||V(a)){const s=47===a,c=l.toLowerCase();return s||i||!Yn.includes(c)?$n.includes(l.toLowerCase())?(o=6,s?(e.consume(a),g):r.interrupt?t(a):T(a)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(a):i?m(a):y(a)):(o=1,r.interrupt?t(a):T(a))}return 45===a||z(a)?(e.consume(a),l+=String.fromCharCode(a),d):n(a)}function g(o){return 62===o?(e.consume(o),r.interrupt?t:T):n(o)}function m(t){return W(t)?(e.consume(t),m):C(t)}function y(t){return 47===t?(e.consume(t),C):58===t||95===t||R(t)?(e.consume(t),k):W(t)?(e.consume(t),y):C(t)}function k(t){return 45===t||46===t||58===t||95===t||z(t)?(e.consume(t),k):b(t)}function b(t){return 61===t?(e.consume(t),v):W(t)?(e.consume(t),b):y(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,x):W(t)?(e.consume(t),v):w(t)}function x(t){return t===s?(e.consume(t),s=null,S):null===t||q(t)?n(t):(e.consume(t),x)}function w(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||V(t)?b(t):(e.consume(t),w)}function S(e){return 47===e||62===e||W(e)?y(e):n(e)}function C(t){return 62===t?(e.consume(t),A):n(t)}function A(t){return null===t||q(t)?T(t):W(t)?(e.consume(t),A):n(t)}function T(t){return 45===t&&2===o?(e.consume(t),P):60===t&&1===o?(e.consume(t),D):62===t&&4===o?(e.consume(t),M):63===t&&3===o?(e.consume(t),L):93===t&&5===o?(e.consume(t),F):!q(t)||6!==o&&7!==o?null===t||q(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),T):(e.exit("htmlFlowData"),e.check(Qn,_,E)(t))}function E(t){return e.check(Kn,N,_)(t)}function N(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return null===t||q(t)?E(t):(e.enter("htmlFlowData"),T(t))}function P(t){return 45===t?(e.consume(t),L):T(t)}function D(t){return 47===t?(e.consume(t),l="",O):T(t)}function O(t){if(62===t){const n=l.toLowerCase();return Yn.includes(n)?(e.consume(t),M):T(t)}return R(t)&&l.length<8?(e.consume(t),l+=String.fromCharCode(t),O):T(t)}function F(t){return 93===t?(e.consume(t),L):T(t)}function L(t){return 62===t?(e.consume(t),M):45===t&&2===o?(e.consume(t),L):T(t)}function M(t){return null===t||q(t)?(e.exit("htmlFlowData"),_(t)):(e.consume(t),M)}function _(n){return e.exit("htmlFlow"),t(n)}}},Qn={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Yt,t,n)}}},Kn={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(q(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o;return n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const Zn={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},Xn={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return l;function l(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s}function s(t){return e.enter("codeFencedFence"),W(t)?$t(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===i?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===i?(o++,e.consume(t),u):o>=a?(e.exit("codeFencedFenceSequence"),W(t)?$t(e,f,"whitespace")(t):f(t)):n(t)}function f(r){return null===r||q(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let i,l=0,a=0;return function(t){return function(t){const n=r.events[r.events.length-1];return l=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(t)}(t)};function s(t){return t===i?(a++,e.consume(t),s):a<3?n(t):(e.exit("codeFencedFenceSequence"),W(t)?$t(e,c,"whitespace")(t):c(t))}function c(n){return null===n||q(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(Zn,h,k)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||q(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):W(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),$t(e,f,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),u)}function f(t){return null===t||q(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||q(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===i?n(t):(e.consume(t),p)}function h(t){return e.attempt(o,k,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),g}function g(t){return l>0&&W(t)?$t(e,m,"linePrefix",l+1)(t):m(t)}function m(t){return null===t||q(t)?e.check(Zn,h,k)(t):(e.enter("codeFlowValue"),y(t))}function y(t){return null===t||q(t)?(e.exit("codeFlowValue"),m(t)):(e.consume(t),y)}function k(n){return e.exit("codeFenced"),t(n)}}};const Jn=document.createElement("i");function er(e){const t="&"+e+";";Jn.innerHTML=t;const n=Jn.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}const tr={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,l=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,i=z,c(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=H,c):(e.enter("characterReferenceValue"),o=7,i=j,c(t))}function c(a){if(59===a&&l){const o=e.exit("characterReferenceValue");return i!==z||er(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return i(a)&&l++<o?(e.consume(a),c):n(a)}}};const nr={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return U(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const rr={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),$t(e,t,"linePrefix")}}};const or={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}e.length!==n.length&&At(e,0,e.length,n);return e},resolveTo:function(e,t){let n,r,o,i,l=e.length,a=0;for(;l--;)if(n=e[l][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[l][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[l][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=l,"labelLink"!==n.type)){a=2;break}}else"labelEnd"===n.type&&(o=l);const s={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[o][1].end}},u={type:"labelText",start:{...e[r+a+2][1].end},end:{...e[o-2][1].start}};return i=[["enter",s,t],["enter",c,t]],i=Tt(i,e.slice(r+1,r+a+3)),i=Tt(i,[["enter",u,t]]),i=Tt(i,tn(t.parser.constructs.insideSpan.null,e.slice(r+a+4,o-3),t)),i=Tt(i,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]),i=Tt(i,e.slice(o+1)),i=Tt(i,[["exit",s,t]]),At(e,r,e.length,i),e},tokenize:function(e,t,n){const r=this;let o,i,l=r.events.length;for(;l--;)if(("labelImage"===r.events[l][1].type||"labelLink"===r.events[l][1].type)&&!r.events[l][1]._balanced){o=r.events[l][1];break}return function(t){if(!o)return n(t);if(o._inactive)return u(t);return i=r.parser.defined.includes(be(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),a};function a(t){return 40===t?e.attempt(ir,c,i?c:u)(t):91===t?e.attempt(lr,c,i?s:u)(t):i?c(t):u(t)}function s(t){return e.attempt(ar,c,u)(t)}function c(e){return t(e)}function u(e){return o._balanced=!0,n(e)}}},ir={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return V(t)?Bn(e,o)(t):o(t)}function o(t){return 41===t?c(t):Rn(e,i,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return V(t)?Bn(e,a)(t):c(t)}function l(e){return n(e)}function a(t){return 34===t||39===t||40===t?_n(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function s(t){return V(t)?Bn(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},lr={tokenize:function(e,t,n){const r=this;return function(t){return zn.call(r,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(be(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},ar={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const sr={name:"labelStartImage",resolveAll:or.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const cr={name:"attention",resolveAll:function(e,t){let n,r,o,i,l,a,s,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;a=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const f={...e[n][1].end},p={...e[u][1].start};ur(f,-a),ur(p,a),i={type:a>1?"strongSequence":"emphasisSequence",start:f,end:{...e[n][1].end}},l={type:a>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:p},o={type:a>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:a>1?"strong":"emphasis",start:{...i.start},end:{...l.end}},e[n][1].end={...i.start},e[u][1].start={...l.end},s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=Tt(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=Tt(s,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),s=Tt(s,tn(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),s=Tt(s,[["exit",o,t],["enter",l,t],["exit",l,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,s=Tt(s,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,At(e,n-1,u-n+3,s),u=n+s.length-c-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=Ye(r);let i;return function(t){return i=t,e.enter("attentionSequence"),l(t)};function l(a){if(a===i)return e.consume(a),l;const s=e.exit("attentionSequence"),c=Ye(a),u=!c||2===c&&o||n.includes(a),f=!o||2===o&&c||n.includes(r);return s._open=Boolean(42===i?u:u&&(o||!f)),s._close=Boolean(42===i?f:f&&(c||!u)),t(a)}}};function ur(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const fr={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return R(t)?(e.consume(t),i):64===t?n(t):s(t)}function i(e){return 43===e||45===e||46===e||z(e)?(r=1,l(e)):s(e)}function l(t){return 58===t?(e.consume(t),r=0,a):(43===t||45===t||46===t||z(t))&&r++<32?(e.consume(t),l):(r=0,s(t))}function a(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||B(r)?n(r):(e.consume(r),a)}function s(t){return 64===t?(e.consume(t),c):_(t)?(e.consume(t),s):n(t)}function c(e){return z(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):f(n)}function f(t){if((45===t||z(t))&&r++<63){const n=45===t?f:u;return e.consume(t),n}return n(t)}}};const pr={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,i,l;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),v):63===t?(e.consume(t),k):R(t)?(e.consume(t),S):n(t)}function s(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,h):R(t)?(e.consume(t),y):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),f):q(t)?(l=u,O(t)):(e.consume(t),u)}function f(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?D(e):45===e?f(e):u(e)}function h(t){const r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),6===i?d:h):n(t)}function d(t){return null===t?n(t):93===t?(e.consume(t),g):q(t)?(l=d,O(t)):(e.consume(t),d)}function g(t){return 93===t?(e.consume(t),m):d(t)}function m(t){return 62===t?D(t):93===t?(e.consume(t),m):d(t)}function y(t){return null===t||62===t?D(t):q(t)?(l=y,O(t)):(e.consume(t),y)}function k(t){return null===t?n(t):63===t?(e.consume(t),b):q(t)?(l=k,O(t)):(e.consume(t),k)}function b(e){return 62===e?D(e):k(e)}function v(t){return R(t)?(e.consume(t),x):n(t)}function x(t){return 45===t||z(t)?(e.consume(t),x):w(t)}function w(t){return q(t)?(l=w,O(t)):W(t)?(e.consume(t),w):D(t)}function S(t){return 45===t||z(t)?(e.consume(t),S):47===t||62===t||V(t)?C(t):n(t)}function C(t){return 47===t?(e.consume(t),D):58===t||95===t||R(t)?(e.consume(t),A):q(t)?(l=C,O(t)):W(t)?(e.consume(t),C):D(t)}function A(t){return 45===t||46===t||58===t||95===t||z(t)?(e.consume(t),A):T(t)}function T(t){return 61===t?(e.consume(t),E):q(t)?(l=T,O(t)):W(t)?(e.consume(t),T):C(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,N):q(t)?(l=E,O(t)):W(t)?(e.consume(t),E):(e.consume(t),I)}function N(t){return t===o?(e.consume(t),o=void 0,P):null===t?n(t):q(t)?(l=N,O(t)):(e.consume(t),N)}function I(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||V(t)?C(t):(e.consume(t),I)}function P(e){return 47===e||62===e||V(e)?C(e):n(e)}function D(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function O(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),F}function F(t){return W(t)?$t(e,L,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):L(t)}function L(t){return e.enter("htmlTextData"),l(t)}}};const hr={name:"labelStartLink",resolveAll:or.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const dr={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return q(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const gr={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}t=o-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,o,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),l(t)};function l(t){return 96===t?(e.consume(t),i++,l):(e.exit("codeTextSequence"),a(t))}function a(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),a):96===t?(o=e.enter("codeTextSequence"),r=0,c(t)):q(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):(e.enter("codeTextData"),s(t))}function s(t){return null===t||32===t||96===t||q(t)?(e.exit("codeTextData"),a(t)):(e.consume(t),s)}function c(n){return 96===n?(e.consume(n),r++,c):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",s(n))}}};const mr={42:On,43:On,45:On,48:On,49:On,50:On,51:On,52:On,53:On,54:On,55:On,56:On,57:On,62:Mn},yr={91:jn},kr={[-2]:Un,[-1]:Un,32:Un},br={35:Vn,42:Dn,45:[Wn,Dn],60:Gn,61:Wn,95:Dn,96:Xn,126:Xn},vr={38:tr,92:nr},xr={[-5]:rr,[-4]:rr,[-3]:rr,33:sr,38:tr,42:cr,60:[fr,pr],91:hr,92:[dr,nr],93:or,95:cr,96:gr},wr={null:[cr,An]},Sr={null:[42,95]},Cr={null:[]};function Ar(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},i=[];let l=[],a=[],s=!0;const c={attempt:k(function(e,t){b(e,t.from)}),check:k(y),consume:function(e){q(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,v()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++));u.previous=e,s=!0},enter:function(e,t){const n=t||{};return n.type=e,n.start=d(),u.events.push(["enter",n,u]),a.push(n),n},exit:function(e){const t=a.pop();return t.end=d(),u.events.push(["exit",t,u]),t},interrupt:k(y,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){o[e.line]=e.column,v()},events:[],now:d,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let l;if("string"==typeof i)l=i;else switch(i){case-5:l="\r";break;case-4:l="\n";break;case-3:l="\r\n";break;case-2:l=t?" ":"\t";break;case-1:if(!t&&o)continue;l=" ";break;default:l=String.fromCharCode(i)}o=-2===i,r.push(l)}return r.join("")}(h(e),t)},sliceStream:h,write:function(e){if(l=Tt(l,e),g(),null!==l[l.length-1])return[];return b(t,0),u.events=tn(i,u.events,u),u.events}};let f,p=t.tokenize.call(u,c);return t.resolveAll&&i.push(t),u;function h(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let l;if(n===o)l=[e[n].slice(r,i)];else{if(l=e.slice(n,o),r>-1){const e=l[0];"string"==typeof e?l[0]=e.slice(r):l.shift()}i>0&&l.push(e[o].slice(0,i))}return l}(l,e)}function d(){const{_bufferIndex:e,_index:t,line:n,column:o,offset:i}=r;return{_bufferIndex:e,_index:t,line:n,column:o,offset:i}}function g(){let e;for(;r._index<l.length;){const t=l[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)m(t.charCodeAt(r._bufferIndex));else m(t)}}function m(e){s=void 0,f=e,p=p(e)}function y(e,t){t.restore()}function k(e,t){return function(n,o,i){let l,f,p,h;return Array.isArray(n)?g(n):"tokenize"in n?g([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return g([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function g(e){return l=e,f=0,0===e.length?i:m(e[f])}function m(e){return function(n){h=function(){const e=d(),t=u.previous,n=u.currentConstruct,o=u.events.length,i=Array.from(a);return{from:o,restore:l};function l(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=o,a=i,v()}}(),p=e,e.partial||(u.currentConstruct=e);if(e.name&&u.parser.constructs.disable.null.includes(e.name))return k(n);return e.tokenize.call(t?Object.assign(Object.create(u),t):u,c,y,k)(n)}}function y(t){return s=!0,e(p,h),o}function k(e){return s=!0,h.restore(),++f<l.length?m(l[f]):i}}}function b(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&At(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function v(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const Tr=/[\0\t\n\r]/g;function Er(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}const Nr=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ir(e){return e.replace(Nr,Pr)}function Pr(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return Er(n.slice(t?2:1),t?16:10)}return er(n)||e}const Dr={}.hasOwnProperty;function Or(t,n,r){return"string"!=typeof n&&(r=n,n=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(ne),autolinkProtocol:T,autolinkEmail:T,atxHeading:i(X),blockQuote:i(Y),characterEscape:T,characterReference:T,codeFenced:i(G),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:i(G,l),codeText:i(Q,l),codeTextData:T,data:T,codeFlowValue:T,definition:i(K),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:i(Z),hardBreakEscape:i(J),hardBreakTrailing:i(J),htmlFlow:i(ee,l),htmlFlowData:T,htmlText:i(ee,l),htmlTextData:T,image:i(te),label:l,link:i(ne),listItem:i(oe),listItemValue:h,listOrdered:i(re,p),listUnordered:i(re),paragraph:i(ie),reference:j,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:i(X),strong:i(le),thematicBreak:i(se)},exit:{atxHeading:s(),atxHeadingSequence:w,autolink:s(),autolinkEmail:$,autolinkProtocol:W,blockQuote:s(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:U,characterReferenceMarkerNumeric:U,characterReferenceValue:q,characterReference:V,codeFenced:s(y),codeFencedFence:m,codeFencedFenceInfo:d,codeFencedFenceMeta:g,codeFlowValue:E,codeIndented:s(k),codeText:s(O),codeTextData:E,data:E,definition:s(),definitionDestinationString:x,definitionLabelString:b,definitionTitleString:v,emphasis:s(),hardBreakEscape:s(I),hardBreakTrailing:s(I),htmlFlow:s(P),htmlFlowData:E,htmlText:s(D),htmlTextData:E,image:s(L),label:R,labelText:M,lineEnding:N,link:s(F),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:H,resourceDestinationString:z,resourceTitleString:_,resource:B,setextHeading:s(A),setextHeadingLineSequence:C,setextHeadingText:S,strong:s(),thematicBreak:s()}};Lr(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const i={stack:[r],tokenStack:[],config:t,enter:a,exit:c,buffer:l,resume:f,data:n},s=[];let u=-1;for(;++u<e.length;)if("listOrdered"===e[u][1].type||"listUnordered"===e[u][1].type)if("enter"===e[u][0])s.push(u);else{u=o(e,s.pop(),u)}for(u=-1;++u<e.length;){const n=t[e[u][0]];Dr.call(n,e[u][1].type)&&n[e[u][1].type].call(Object.assign({sliceSerialize:e[u][2].sliceSerialize},i),e[u][1])}if(i.tokenStack.length>0){const e=i.tokenStack[i.tokenStack.length-1];(e[1]||Rr).call(i,void 0,e[0])}for(r.position={start:Fr(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Fr(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u<t.transforms.length;)r=t.transforms[u](r)||r;return r}function o(e,t,n){let r,o,i,l,a=t-1,s=-1,c=!1;for(;++a<=n;){const t=e[a];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?s++:s--,l=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||l||s||i||(i=a),l=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:l=void 0}if(!s&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===s&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let l=a;for(o=void 0;l--;){const t=e[l];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",o=l}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}i&&(!o||i<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||a,0,["exit",r,t[2]]),a++,n++}if("listItemPrefix"===t[1].type){const o={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=o,e.splice(a,0,["enter",o,t[2]]),a++,n++,i=void 0,l=!0}}}return e[t][1]._spread=c,n}function i(e,t){return n;function n(n){a.call(this,e(n),n),t&&t.call(this,n)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:Fr(t.start),end:void 0}}function s(e){return t;function t(t){e&&e.call(this,t),c.call(this,t)}}function c(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+u({start:e.start,end:e.end})+"): it’s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||Rr).call(this,e,r[0])}n.position.end=Fr(e.end)}function f(){return Xe(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function h(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function d(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function g(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function b(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=be(this.sliceSerialize(e)).toLowerCase()}function v(){const e=this.resume();this.stack[this.stack.length-1].title=e}function x(){const e=this.resume();this.stack[this.stack.length-1].url=e}function w(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function A(){this.data.setextHeadingSlurpLineEnding=void 0}function T(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=ae(),n.position={start:Fr(e.start),end:void 0},t.push(n)),this.stack.push(n)}function E(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Fr(e.end)}function N(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=Fr(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(T.call(this,e),E.call(this,e))}function I(){this.data.atHardBreak=!0}function P(){const e=this.resume();this.stack[this.stack.length-1].value=e}function D(){const e=this.resume();this.stack[this.stack.length-1].value=e}function O(){const e=this.resume();this.stack[this.stack.length-1].value=e}function F(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function L(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function M(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=Ir(t),n.identifier=be(t).toLowerCase()}function R(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function z(){const e=this.resume();this.stack[this.stack.length-1].url=e}function _(){const e=this.resume();this.stack[this.stack.length-1].title=e}function B(){this.data.inReference=void 0}function j(){this.data.referenceType="collapsed"}function H(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=be(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function U(e){this.data.characterReferenceType=e.type}function q(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=Er(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=er(t)}this.stack[this.stack.length-1].value+=r}function V(e){this.stack.pop().position.end=Fr(e.end)}function W(e){E.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function $(e){E.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function Y(){return{type:"blockquote",children:[]}}function G(){return{type:"code",lang:null,meta:null,value:""}}function Q(){return{type:"inlineCode",value:""}}function K(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Z(){return{type:"emphasis",children:[]}}function X(){return{type:"heading",depth:0,children:[]}}function J(){return{type:"break"}}function ee(){return{type:"html",value:""}}function te(){return{type:"image",title:null,url:"",alt:null}}function ne(){return{type:"link",title:null,url:"",children:[]}}function re(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function oe(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function ie(){return{type:"paragraph",children:[]}}function le(){return{type:"strong",children:[]}}function ae(){return{type:"text",value:""}}function se(){return{type:"thematicBreak"}}}(r)(function(e){for(;!yn(e););return e}(function(t){const n={constructs:Nt([e,...(t||{}).extensions||[]]),content:r(bn),defined:[],document:r(vn),flow:r(Cn),lazy:{},string:r(Tn),text:r(En)};return n;function r(e){return function(t){return Ar(n,e,t)}}}(r).document().write(function(){let e,t=1,n="",r=!0;return function(o,i,l){const a=[];let s,c,u,f,p;for(o=n+("string"==typeof o?o.toString():new TextDecoder(i||void 0).decode(o)),u=0,n="",r&&(65279===o.charCodeAt(0)&&u++,r=void 0);u<o.length;){if(Tr.lastIndex=u,s=Tr.exec(o),f=s&&void 0!==s.index?s.index:o.length,p=o.charCodeAt(f),!s){n=o.slice(u);break}if(10===p&&u===f&&e)a.push(-3),e=void 0;else switch(e&&(a.push(-5),e=void 0),u<f&&(a.push(o.slice(u,f)),t+=f-u),p){case 0:a.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),a.push(-2);t++<c;)a.push(-1);break;case 10:a.push(-4),t=1;break;default:e=!0,t=1}u=f+1}return l&&(e&&a.push(-5),n&&a.push(n),a.push(null)),a}}()(t,n,!0))))}function Fr(e){return{line:e.line,column:e.column,offset:e.offset}}function Lr(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Lr(e,r):Mr(e,r)}}function Mr(e,t){let n;for(n in t)if(Dr.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Rr(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+u({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+u({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+u({start:t.start,end:t.end})+") is still open")}function zr(e){const t=this;t.parser=function(n){return Or(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const _r="object"==typeof self?self:globalThis,Br=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=o=>{if(e.has(o))return e.get(o);const[i,l]=t[o];switch(i){case 0:case-1:return n(l,o);case 1:{const e=n([],o);for(const t of l)e.push(r(t));return e}case 2:{const e=n({},o);for(const[t,n]of l)e[r(t)]=r(n);return e}case 3:return n(new Date(l),o);case 4:{const{source:e,flags:t}=l;return n(new RegExp(e,t),o)}case 5:{const e=n(new Map,o);for(const[t,n]of l)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,o);for(const t of l)e.add(r(t));return e}case 7:{const{name:e,message:t}=l;return n(new _r[e](t),o)}case 8:return n(BigInt(l),o);case"BigInt":return n(Object(BigInt(l)),o);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:e}=new Uint8Array(l);return n(new DataView(e),l)}}return n(new _r[i](l),o)};return r})(new Map,e)(0),jr="",{toString:Hr}={},{keys:Ur}=Object,qr=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=Hr.call(e).slice(8,-1);switch(n){case"Array":return[1,jr];case"Object":return[2,jr];case"Date":return[3,jr];case"RegExp":return[4,jr];case"Map":return[5,jr];case"Set":return[6,jr];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},Vr=([e,t])=>0===e&&("function"===t||"symbol"===t),Wr=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const o=(e,t)=>{const o=r.push(e)-1;return n.set(t,o),o},i=r=>{if(n.has(r))return n.get(r);let[l,a]=qr(r);switch(l){case 0:{let t=r;switch(a){case"bigint":l=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);t=null;break;case"undefined":return o([-1],r)}return o([l,t],r)}case 1:{if(a){let e=r;return"DataView"===a?e=new Uint8Array(r.buffer):"ArrayBuffer"===a&&(e=new Uint8Array(r)),o([a,[...e]],r)}const e=[],t=o([l,e],r);for(const t of r)e.push(i(t));return t}case 2:{if(a)switch(a){case"BigInt":return o([a,r.toString()],r);case"Boolean":case"Number":case"String":return o([a,r.valueOf()],r)}if(t&&"toJSON"in r)return i(r.toJSON());const n=[],s=o([l,n],r);for(const t of Ur(r))!e&&Vr(qr(r[t]))||n.push([i(t),i(r[t])]);return s}case 3:return o([l,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return o([l,{source:e,flags:t}],r)}case 5:{const t=[],n=o([l,t],r);for(const[n,o]of r)(e||!Vr(qr(n))&&!Vr(qr(o)))&&t.push([i(n),i(o)]);return n}case 6:{const t=[],n=o([l,t],r);for(const n of r)!e&&Vr(qr(n))||t.push(i(n));return n}}const{message:s}=r;return o([l,{name:a,message:s}],r)};return i})(!(t||n),!!t,new Map,r)(e),r},$r="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Br(Wr(e,t)):structuredClone(e):(e,t)=>Br(Wr(e,t));function Yr(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let l="";if(37===i&&z(e.charCodeAt(n+1))&&z(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(l=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(l=String.fromCharCode(i,t),o=1):l="�"}else l=String.fromCharCode(i);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+o+1,l=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function Gr(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Qr(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const Kr=Xr("end"),Zr=Xr("start");function Xr(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function Jr(e){const t=Zr(e),n=Kr(e);if(t&&n)return{start:t,end:n}}function eo(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift({type:"text",value:"["});const l=o[o.length-1];return l&&"text"===l.type?l.value+=r:o.push({type:"text",value:r}),o}function to(e){const t=e.spread;return null==t?e.children.length>1:t}function no(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(ro(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(ro(t.slice(o),o>0,!1)),i.join("")}function ro(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const oo={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=Yr(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let l,a=e.footnoteCounts.get(r);void 0===a?(a=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=i+1,a+=1,e.footnoteCounts.set(r,a);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,s);const c={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return eo(e,t);const o={src:Yr(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:Yr(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return eo(e,t);const o={href:Yr(r.url||"")};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:Yr(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=to(n[r])}return t}(n):to(t),i={},l=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const e=r[a];(o||0!==a||"element"!==e.type||"p"!==e.tagName)&&l.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?l.push(e):l.push(...e.children)}const s=r[r.length-1];s&&(o||"element"!==s.type||"p"!==s.tagName)&&l.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:i,children:l};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let o=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;){const e=r[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),o.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=Zr(t.children[1]),l=Kr(t.children[t.children.length-1]);i&&l&&(r.position={start:i,end:l}),o.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,l=i?i.length:t.children.length;let a=-1;const s=[];for(;++a<l;){const n=t.children[a],r={},l=i?i[a]:void 0;l&&(r.align=l);let c={type:"element",tagName:o,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),s.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:no(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:io,yaml:io,definition:io,footnoteDefinition:io};function io(){}const lo={}.hasOwnProperty,ao={};function so(e,t){e.position&&(t.position=Jr(e))}function co(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;if("string"==typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&o&&Object.assign(n.properties,$r(o)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function uo(e,t){const n=t.data||{},r=!("value"in t)||lo.call(n,"hProperties")||lo.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function fo(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function po(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function ho(e,t){const n=function(e,t){const n=t||ao,r=new Map,o=new Map,i=new Map,l={...oo,...n.handlers},a={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const o=a.one(n[r],e);if(o){if(r&&"break"===n[r-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=po(o.value)),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=po(e.value))}Array.isArray(o)?t.push(...o):t.push(o)}}}return t},applyData:co,definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:l,one:function(e,t){const n=e.type,r=a.handlers[n];if(lo.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=$r(n);return r.children=a.all(e),r}return $r(e)}return(a.options.unknownHandler||uo)(a,e,t)},options:n,patch:so,wrap:fo};return Ke(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:o,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a}(e,t),r=n.one(e,void 0),o=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Gr,r=e.options.footnoteBackLabel||Qr,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let s=-1;for(;++s<e.footnoteOrder.length;){const o=e.footnoteById.get(e.footnoteOrder[s]);if(!o)continue;const i=e.all(o),l=String(o.identifier).toUpperCase(),c=Yr(l.toLowerCase());let u=0;const f=[],p=e.footnoteCounts.get(l);for(;void 0!==p&&++u<=p;){f.length>0&&f.push({type:"text",value:" "});let e="string"==typeof n?n:n(s,u);"string"==typeof e&&(e={type:"text",value:e}),f.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(s,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const h=i[i.length-1];if(h&&"element"===h.type&&"p"===h.tagName){const e=h.children[h.children.length-1];e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...f)}else i.push(...f);const d={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(i,!0)};e.patch(o,d),a.push(d)}if(0!==a.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...$r(l),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:"\n"}]}}(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:"\n"},o),i}function go(e,t){return e&&"run"in e?async function(n,r){const o=ho(n,{file:r,...t});await e.run(o,r)}:function(n,r){return ho(n,{file:r,...e||t})}}function mo(){return{type:"break"}}function yo(){return function(e){!function(e){oe(e,[/\r?\n|\r/g,mo])}(e)}}class ko{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function bo(e,t){const n={},r={};for(const t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new ko(n,r,t)}function vo(e){return e.toLowerCase()}ko.prototype.normal={},ko.prototype.property={},ko.prototype.space=void 0;class xo{constructor(e,t){this.attribute=t,this.property=e}}xo.prototype.attribute="",xo.prototype.booleanish=!1,xo.prototype.boolean=!1,xo.prototype.commaOrSpaceSeparated=!1,xo.prototype.commaSeparated=!1,xo.prototype.defined=!1,xo.prototype.mustUseProperty=!1,xo.prototype.number=!1,xo.prototype.overloadedBoolean=!1,xo.prototype.property="",xo.prototype.spaceSeparated=!1,xo.prototype.space=void 0;let wo=0;const So=Po(),Co=Po(),Ao=Po(),To=Po(),Eo=Po(),No=Po(),Io=Po();function Po(){return 2**++wo}const Do=Object.keys(t);class Oo extends xo{constructor(e,n,r,o){let i=-1;if(super(e,n),Fo(this,"space",o),"number"==typeof r)for(;++i<Do.length;){const e=Do[i];Fo(this,Do[i],(r&t[e])===t[e])}}}function Fo(e,t,n){n&&(e[t]=n)}function Lo(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const i=new Oo(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[vo(r)]=r,n[vo(i.attribute)]=r}return new ko(t,n,e.space)}Oo.prototype.defined=!0;const Mo=Lo({properties:{ariaActiveDescendant:null,ariaAtomic:Co,ariaAutoComplete:null,ariaBusy:Co,ariaChecked:Co,ariaColCount:To,ariaColIndex:To,ariaColSpan:To,ariaControls:Eo,ariaCurrent:null,ariaDescribedBy:Eo,ariaDetails:null,ariaDisabled:Co,ariaDropEffect:Eo,ariaErrorMessage:null,ariaExpanded:Co,ariaFlowTo:Eo,ariaGrabbed:Co,ariaHasPopup:null,ariaHidden:Co,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Eo,ariaLevel:To,ariaLive:null,ariaModal:Co,ariaMultiLine:Co,ariaMultiSelectable:Co,ariaOrientation:null,ariaOwns:Eo,ariaPlaceholder:null,ariaPosInSet:To,ariaPressed:Co,ariaReadOnly:Co,ariaRelevant:null,ariaRequired:Co,ariaRoleDescription:Eo,ariaRowCount:To,ariaRowIndex:To,ariaRowSpan:To,ariaSelected:Co,ariaSetSize:To,ariaSort:null,ariaValueMax:To,ariaValueMin:To,ariaValueNow:To,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function Ro(e,t){return t in e?e[t]:t}function zo(e,t){return Ro(e,t.toLowerCase())}const _o=Lo({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:No,acceptCharset:Eo,accessKey:Eo,action:null,allow:null,allowFullScreen:So,allowPaymentRequest:So,allowUserMedia:So,alt:null,as:null,async:So,autoCapitalize:null,autoComplete:Eo,autoFocus:So,autoPlay:So,blocking:Eo,capture:null,charSet:null,checked:So,cite:null,className:Eo,cols:To,colSpan:null,content:null,contentEditable:Co,controls:So,controlsList:Eo,coords:To|No,crossOrigin:null,data:null,dateTime:null,decoding:null,default:So,defer:So,dir:null,dirName:null,disabled:So,download:Ao,draggable:Co,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:So,formTarget:null,headers:Eo,height:To,hidden:Ao,high:To,href:null,hrefLang:null,htmlFor:Eo,httpEquiv:Eo,id:null,imageSizes:null,imageSrcSet:null,inert:So,inputMode:null,integrity:null,is:null,isMap:So,itemId:null,itemProp:Eo,itemRef:Eo,itemScope:So,itemType:Eo,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:So,low:To,manifest:null,max:null,maxLength:To,media:null,method:null,min:null,minLength:To,multiple:So,muted:So,name:null,nonce:null,noModule:So,noValidate:So,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:So,optimum:To,pattern:null,ping:Eo,placeholder:null,playsInline:So,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:So,referrerPolicy:null,rel:Eo,required:So,reversed:So,rows:To,rowSpan:To,sandbox:Eo,scope:null,scoped:So,seamless:So,selected:So,shadowRootClonable:So,shadowRootDelegatesFocus:So,shadowRootMode:null,shape:null,size:To,sizes:null,slot:null,span:To,spellCheck:Co,src:null,srcDoc:null,srcLang:null,srcSet:null,start:To,step:null,style:null,tabIndex:To,target:null,title:null,translate:null,type:null,typeMustMatch:So,useMap:null,value:Co,width:To,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Eo,axis:null,background:null,bgColor:null,border:To,borderColor:null,bottomMargin:To,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:So,declare:So,event:null,face:null,frame:null,frameBorder:null,hSpace:To,leftMargin:To,link:null,longDesc:null,lowSrc:null,marginHeight:To,marginWidth:To,noResize:So,noHref:So,noShade:So,noWrap:So,object:null,profile:null,prompt:null,rev:null,rightMargin:To,rules:null,scheme:null,scrolling:Co,standby:null,summary:null,text:null,topMargin:To,valueType:null,version:null,vAlign:null,vLink:null,vSpace:To,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:So,disableRemotePlayback:So,prefix:null,property:null,results:To,security:null,unselectable:null},space:"html",transform:zo}),Bo=Lo({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Io,accentHeight:To,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:To,amplitude:To,arabicForm:null,ascent:To,attributeName:null,attributeType:null,azimuth:To,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:To,by:null,calcMode:null,capHeight:To,className:Eo,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:To,diffuseConstant:To,direction:null,display:null,dur:null,divisor:To,dominantBaseline:null,download:So,dx:null,dy:null,edgeMode:null,editable:null,elevation:To,enableBackground:null,end:null,event:null,exponent:To,externalResourcesRequired:null,fill:null,fillOpacity:To,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:No,g2:No,glyphName:No,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:To,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:To,horizOriginX:To,horizOriginY:To,id:null,ideographic:To,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:To,k:To,k1:To,k2:To,k3:To,k4:To,kernelMatrix:Io,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:To,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:To,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:To,overlineThickness:To,paintOrder:null,panose1:null,path:null,pathLength:To,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Eo,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:To,pointsAtY:To,pointsAtZ:To,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Io,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Io,rev:Io,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Io,requiredFeatures:Io,requiredFonts:Io,requiredFormats:Io,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:To,specularExponent:To,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:To,strikethroughThickness:To,string:null,stroke:null,strokeDashArray:Io,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:To,strokeOpacity:To,strokeWidth:null,style:null,surfaceScale:To,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Io,tabIndex:To,tableValues:null,target:null,targetX:To,targetY:To,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Io,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:To,underlineThickness:To,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:To,values:null,vAlphabetic:To,vMathematical:To,vectorEffect:null,vHanging:To,vIdeographic:To,version:null,vertAdvY:To,vertOriginX:To,vertOriginY:To,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:To,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ro}),jo=Lo({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),Ho=Lo({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:zo}),Uo=Lo({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),qo=bo([Mo,_o,jo,Ho,Uo],"html"),Vo=bo([Mo,Bo,jo,Ho,Uo],"svg"),Wo=/[A-Z]/g,$o=/-[a-z]/g,Yo=/^data[-\w.:]+$/i;function Go(e,t){const n=vo(t);let r=t,o=xo;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Yo.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace($o,Ko);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!$o.test(e)){let n=e.replace(Wo,Qo);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=Oo}return new o(r,t)}function Qo(e){return"-"+e.toLowerCase()}function Ko(e){return e.charAt(1).toUpperCase()}const Zo="http://www.w3.org/1999/xhtml",Xo="http://www.w3.org/2000/svg",Jo={}.hasOwnProperty;function ei(e,t){const n=function(e,t){switch(e.type){case"root":return function(e,t){const n=e.children||[];let r,o=0===n.length,i=-1;for(;++i<n.length;){const e=n[i];if("element"===e.type&&"html"===e.tagName){o=!0,r=String(e.properties&&e.properties.xmlns||"")||Zo;break}}const l=t.namespace||r;let a;a=o?t.doc.implementation.createDocument(l||null,""):t.fragment?t.doc.createDocumentFragment():t.doc.createElement("html");return ti(a,n,{...t,namespace:l,impliedNamespace:l}),a}(e,t);case"text":return function(e,t){return t.doc.createTextNode(e.value)}(e,t);case"doctype":return function(e,t){return t.doc.implementation.createDocumentType("html","","")}(0,t);case"comment":return function(e,t){return t.doc.createComment(e.value)}(e,t);default:return function(e,t){let n=t.impliedNamespace||t.namespace;const r=e.tagName||(n===Xo?"g":"div"),o=e.properties||{},i=e.children||[];void 0!==n&&n!==Zo||"svg"!==r||(n=Xo);const l=n?t.doc.createElementNS(n,r):t.doc.createElement(r);!function(e,t,n){let r;for(r in t)if(Jo.call(t,r)){const o=Go(n,r);let i=t[r];Array.isArray(i)&&(i=i.join(o.commaSeparated?", ":" ")),o.mustUseProperty&&(e[o.property]=i),o.boolean||o.overloadedBoolean&&"boolean"==typeof i?i&&e.setAttribute(o.attribute,""):o.booleanish?e.setAttribute(o.attribute,String(i)):!0===i?e.setAttribute(o.attribute,""):(i||0===i||""===i)&&e.setAttribute(o.attribute,String(i))}}(l,o,n===Xo?Vo:qo);const a=t.impliedNamespace;return t.impliedNamespace=n,ti(l,i,t),t.impliedNamespace=a,l}(e,t)}}(e,t);return t.afterTransform&&t.afterTransform(e,n),n}function ti(e,t,n){let r=-1;for(;++r<t.length;)e.append(ei(t[r],n))}function ni(e){const t={...this.data("settings"),...e};!1!==t.fragment&&(t.fragment=!0),this.compiler=function(e){return ri(function(e,t){const n=t||{};return ei(e,{doc:n.document||document,fragment:n.fragment||!1,namespace:n.namespace||void 0,impliedNamespace:void 0,afterTransform:n.afterTransform||void 0})}(e,t))}}function ri(e){if("doctype"in e){return(e.doctype?ri(e.doctype):"")+(e.documentElement?ri(e.documentElement):"")}if("publicId"in e)return"<DOCTYPE html>";const t=document.createElement("template");return t.content.append(e),t.innerHTML}const oi=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],ii={}.hasOwnProperty;function li(e,t){const n=t||{};function r(t,...n){let o=r.invalid;const i=r.handlers;if(t&&ii.call(t,e)){const n=String(t[e]);o=ii.call(i,n)?i[n]:r.unknown}if(o)return o.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const ai=/["&'<>`]/g,si=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ci=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,ui=/[|\\{}()[\]^$+*?.]/g,fi=new WeakMap;function pi(e,t){return e=e.replace(t.subset?function(e){let t=fi.get(e);t||(t=function(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(ui,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}(e),fi.set(e,t));return t}(t.subset):ai,n),t.subset||t.escapeOnly?e:e.replace(si,function(e,n,r){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}).replace(ci,n);function n(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}const hi=/[\dA-Fa-f]/;const di=/\d/;const gi=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],mi={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},yi=["cent","copy","divide","gt","lt","not","para","times"],ki={}.hasOwnProperty,bi={};let vi;for(vi in mi)ki.call(mi,vi)&&(bi[mi[vi]]=vi);const xi=/[^\dA-Za-z]/;function wi(e,t,n){let r,o=function(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!hi.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(r=function(e,t,n,r){const o=String.fromCharCode(e);if(ki.call(bi,o)){const e=bi[o],i="&"+e;return n&&gi.includes(e)&&!yi.includes(e)&&(!r||t&&61!==t&&xi.test(String.fromCharCode(t)))?i:i+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){const r=function(e,t,n){const r="&#"+String(e);return n&&t&&!di.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);r.length<o.length&&(o=r)}return r&&(!n.useShortestReferences||r.length<o.length)?r:o}function Si(e,t){return pi(e,Object.assign({format:wi},t))}const Ci=/^>|^->|<!--|-->|--!>|<!-$/g,Ai=[">"],Ti=["<",">"];function Ei(e){const t=[],n=String(e||"");let r=n.indexOf(","),o=0,i=!1;for(;!i;){-1===r&&(r=n.length,i=!0);const e=n.slice(o,r).trim();!e&&i||t.push(e),o=r+1,r=n.indexOf(",",o)}return t}function Ni(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}function Ii(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Pi(e){return e.join(" ").trim()}const Di=/[ \t\n\f\r]/g;function Oi(e){return"object"==typeof e?"text"===e.type&&Fi(e.value):Fi(e)}function Fi(e){return""===e.replace(Di,"")}const Li=zi(1),Mi=zi(-1),Ri=[];function zi(e){return function(t,n,r){const o=t?t.children:Ri;let i=(n||0)+e,l=o[i];if(!r)for(;l&&Oi(l);)i+=e,l=o[i];return l}}const _i={}.hasOwnProperty;function Bi(e){return function(t,n,r){return _i.call(e,t.tagName)&&e[t.tagName](t,n,r)}}const ji=Bi({body:function(e,t,n){const r=Li(n,t);return!r||"comment"!==r.type},caption:Hi,colgroup:Hi,dd:function(e,t,n){const r=Li(n,t);return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)},dt:function(e,t,n){const r=Li(n,t);return Boolean(r&&"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName))},head:Hi,html:function(e,t,n){const r=Li(n,t);return!r||"comment"!==r.type},li:function(e,t,n){const r=Li(n,t);return!r||"element"===r.type&&"li"===r.tagName},optgroup:function(e,t,n){const r=Li(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName},option:function(e,t,n){const r=Li(n,t);return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)},p:function(e,t,n){const r=Li(n,t);return r?"element"===r.type&&("address"===r.tagName||"article"===r.tagName||"aside"===r.tagName||"blockquote"===r.tagName||"details"===r.tagName||"div"===r.tagName||"dl"===r.tagName||"fieldset"===r.tagName||"figcaption"===r.tagName||"figure"===r.tagName||"footer"===r.tagName||"form"===r.tagName||"h1"===r.tagName||"h2"===r.tagName||"h3"===r.tagName||"h4"===r.tagName||"h5"===r.tagName||"h6"===r.tagName||"header"===r.tagName||"hgroup"===r.tagName||"hr"===r.tagName||"main"===r.tagName||"menu"===r.tagName||"nav"===r.tagName||"ol"===r.tagName||"p"===r.tagName||"pre"===r.tagName||"section"===r.tagName||"table"===r.tagName||"ul"===r.tagName):!n||!("element"===n.type&&("a"===n.tagName||"audio"===n.tagName||"del"===n.tagName||"ins"===n.tagName||"map"===n.tagName||"noscript"===n.tagName||"video"===n.tagName))},rp:Ui,rt:Ui,tbody:function(e,t,n){const r=Li(n,t);return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},td:qi,tfoot:function(e,t,n){return!Li(n,t)},th:qi,thead:function(e,t,n){const r=Li(n,t);return Boolean(r&&"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName))},tr:function(e,t,n){const r=Li(n,t);return!r||"element"===r.type&&"tr"===r.tagName}});function Hi(e,t,n){const r=Li(n,t,!0);return!r||"comment"!==r.type&&!("text"===r.type&&Oi(r.value.charAt(0)))}function Ui(e,t,n){const r=Li(n,t);return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}function qi(e,t,n){const r=Li(n,t);return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}const Vi=Bi({body:function(e){const t=Li(e,-1,!0);return!(t&&("comment"===t.type||"text"===t.type&&Oi(t.value.charAt(0))||"element"===t.type&&("meta"===t.tagName||"link"===t.tagName||"script"===t.tagName||"style"===t.tagName||"template"===t.tagName)))},colgroup:function(e,t,n){const r=Mi(n,t),o=Li(e,-1,!0);if(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&ji(r,n.children.indexOf(r),n))return!1;return Boolean(o&&"element"===o.type&&"col"===o.tagName)},head:function(e){const t=new Set;for(const n of e.children)if("element"===n.type&&("base"===n.tagName||"title"===n.tagName)){if(t.has(n.tagName))return!1;t.add(n.tagName)}const n=e.children[0];return!n||"element"===n.type},html:function(e){const t=Li(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){const r=Mi(n,t),o=Li(e,-1);if(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&ji(r,n.children.indexOf(r),n))return!1;return Boolean(o&&"element"===o.type&&"tr"===o.tagName)}});const Wi={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function $i(e,t,n){const r=Go(e.schema,t),o=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,i=e.settings.allowDangerousCharacters?0:1;let l,a=e.quote;if(!r.overloadedBoolean||n!==r.attribute&&""!==n?!r.boolean&&!r.overloadedBoolean||"string"==typeof n&&n!==r.attribute&&""!==n||(n=Boolean(n)):n=!0,null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";const s=Si(r.attribute,Object.assign({},e.settings.characterReferences,{subset:Wi.name[o][i]}));return!0===n?s:(n=Array.isArray(n)?(r.commaSeparated?Ni:Pi)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n?s:(e.settings.preferUnquoted&&(l=Si(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Wi.unquoted[o][i]}))),l!==n&&(e.settings.quoteSmart&&M(n,a)>M(n,e.alternative)&&(a=e.alternative),l=a+Si(n,Object.assign({},e.settings.characterReferences,{subset:("'"===a?Wi.single:Wi.double)[o][i],attribute:!0}))+a),s+(l?"="+l:l)))}const Yi=["<","&"];function Gi(e,t,n,r){return!n||"element"!==n.type||"script"!==n.tagName&&"style"!==n.tagName?Si(e.value,Object.assign({},r.settings.characterReferences,{subset:Yi})):e.value}const Qi=li("type",{invalid:function(e){throw new Error("Expected node, not `"+e+"`")},unknown:function(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")},handlers:{comment:function(e,t,n,r){return r.settings.bogusComments?"<?"+Si(e.value,Object.assign({},r.settings.characterReferences,{subset:Ai}))+">":"\x3c!--"+e.value.replace(Ci,function(e){return Si(e,Object.assign({},r.settings.characterReferences,{subset:Ti}))})+"--\x3e"},doctype:function(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,n,r){const o=r.schema,i="svg"!==o.space&&r.settings.omitOptionalTags;let l="svg"===o.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const a=[];let s;"html"===o.space&&"svg"===e.tagName&&(r.schema=Vo);const c=function(e,t){const n=[];let r,o=-1;if(t)for(r in t)if(null!==t[r]&&void 0!==t[r]){const o=$i(e,r,t[r]);o&&n.push(o)}for(;++o<n.length;){const t=e.settings.tightAttributes?n[o].charAt(n[o].length-1):void 0;o!==n.length-1&&'"'!==t&&"'"!==t&&(n[o]+=" ")}return n.join("")}(r,e.properties),u=r.all("html"===o.space&&"template"===e.tagName?e.content:e);return r.schema=o,u&&(l=!1),!c&&i&&Vi(e,t,n)||(a.push("<",e.tagName,c?" "+c:""),l&&("svg"===o.space||r.settings.closeSelfClosing)&&(s=c.charAt(c.length-1),(!r.settings.tightSelfClosing||"/"===s||s&&'"'!==s&&"'"!==s)&&a.push(" "),a.push("/")),a.push(">")),a.push(u),l||i&&ji(e,t,n)||a.push("</"+e.tagName+">"),a.join("")},raw:function(e,t,n,r){return r.settings.allowDangerousHtml?e.value:Gi(e,0,n,r)},root:function(e,t,n,r){return r.all(e)},text:Gi}});const Ki={},Zi={},Xi=[];function Ji(e,t){const n=t||Ki,r=n.quote||'"',o='"'===r?"'":'"';if('"'!==r&&"'"!==r)throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:el,all:tl,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||oi,characterReferences:n.characterReferences||Zi,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?Vo:qo,quote:r,alternative:o}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function el(e,t,n){return Qi(e,t,n,this)}function tl(e){const t=[],n=e&&e.children||Xi;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}const nl=/[#.]/g;function rl(e,t,n){const r=n?function(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}(n):void 0;return function(n,o,...i){let l;if(null==n){l={type:"root",children:[]};const e=o;i.unshift(e)}else{l=function(e,t){const n=e||"",r={};let o,i,l=0;for(;l<n.length;){nl.lastIndex=l;const e=nl.exec(n),t=n.slice(l,e?e.index:n.length);t&&(o?"#"===o?r.id=t:Array.isArray(r.className)?r.className.push(t):r.className=[t]:i=t,l+=t.length),e&&(o=e[0],l++)}return{type:"element",tagName:i||t||"div",properties:r,children:[]}}(n,t);const a=l.tagName.toLowerCase(),s=r?r.get(a):void 0;if(l.tagName=s||a,function(e){if(null===e||"object"!=typeof e||Array.isArray(e))return!0;if("string"!=typeof e.type)return!1;const t=e,n=Object.keys(e);for(const e of n){const n=t[e];if(n&&"object"==typeof n){if(!Array.isArray(n))return!0;const e=n;for(const t of e)if("number"!=typeof t&&"string"!=typeof t)return!0}}if("children"in e&&Array.isArray(e.children))return!0;return!1}(o))i.unshift(o);else for(const[t,n]of Object.entries(o))ol(e,l.properties,t,n)}for(const e of i)il(l.children,e);return"element"===l.type&&"template"===l.tagName&&(l.content={type:"root",children:l.children},l.children=[]),l}}function ol(e,t,n,r){const o=Go(e,n);let i;if(null!=r){if("number"==typeof r){if(Number.isNaN(r))return;i=r}else i="boolean"==typeof r?r:"string"==typeof r?o.spaceSeparated?Ii(r):o.commaSeparated?Ei(r):o.commaOrSpaceSeparated?Ii(Ei(r).join(" ")):ll(o,o.property,r):Array.isArray(r)?[...r]:"style"===o.property?function(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}(r):String(r);if(Array.isArray(i)){const e=[];for(const t of i)e.push(ll(o,o.property,t));i=e}"className"===o.property&&Array.isArray(t.className)&&(i=t.className.concat(i)),t[o.property]=i}}function il(e,t){if(null==t);else if("number"==typeof t||"string"==typeof t)e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)il(e,n);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");"root"===t.type?il(e,t.children):e.push(t)}}function ll(e,t,n){if("string"==typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||vo(n)===vo(t)))return!0}return n}const al=rl(qo,"div"),sl=rl(Vo,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]);function cl(e,t){return ul(e,t||{})||{type:"root",children:[]}}function ul(e,t){const n=function(e,t){switch(e.nodeType){case 1:return function(e,t){const n=e.namespaceURI,r=n===Xo?sl:al,o=n===Zo?e.tagName.toLowerCase():e.tagName,i=n===Zo&&"template"===o?e.content:e,l=e.getAttributeNames(),a={};let s=-1;for(;++s<l.length;)a[l[s]]=e.getAttribute(l[s])||"";return r(o,a,pl(i,t))}(e,t);case 3:return function(e){return{type:"text",value:e.nodeValue||""}}(e);case 8:return function(e){return{type:"comment",value:e.nodeValue||""}}(e);case 9:return fl(e,t);case 10:return{type:"doctype"};case 11:return fl(e,t);default:return}}(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function fl(e,t){return{type:"root",children:pl(e,t)}}function pl(e,t){const n=e.childNodes,r=[];let o=-1;for(;++o<n.length;){const e=ul(n[o],t);void 0!==e&&r.push(e)}return r}class hl{_processor;constructor(){this._processor=N().use(zr).use(dn,{singleTilde:!0}).use(yo).use(go,{allowDangerousHtml:!0}).use(gl).use(dl).use(ni)}parse(e){return this._processor.processSync(e).toString().replaceAll("\n</code>","</code>")}}function dl(){return e=>{Ke(e,"element",e=>{"ul"!==e.tagName&&"ol"!==e.tagName&&"li"!==e.tagName||(e.children=e.children.filter(e=>"text"!==e.type||!!e.value.trim()),delete e.properties.className)})}}function gl(){return e=>{Ke(e,["root","element"],e=>{if(!function(e){return("root"===e.type||"element"===e.type)&&e.children}(e))return;if(!e.children.some(e=>"raw"===e.type))return;const t=document.createElement("template");t.innerHTML=Ji({type:"root",children:e.children},{allowDangerousHtml:!0}),e.children=Array.from(t.content.childNodes).map(e=>cl(e))})}}function ml(e){const t={...this.data("settings"),...e};this.parser=function(e){const n=!1===t.fragment?yl:kl;return cl(n(e))}}function yl(e){return(new DOMParser).parseFromString(e,"text/html")}function kl(e){const t=document.createElement("template");return t.innerHTML=e,t.content}const bl=function(e,t,n,r,o){const i=vl(t);if(null!=n&&("number"!=typeof n||n<0||n===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite `index`");if(!(null==r||r.type&&r.children))throw new Error("Expected valid `parent`");if(null==n!=(null==r))throw new Error("Expected both `index` and `parent`");return!!Sl(e)&&i.call(o,e,n,r)},vl=function(e){if(null==e)return wl;if("string"==typeof e)return function(e){return xl(t);function t(t){return t.tagName===e}}(e);if("object"==typeof e)return function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=vl(e[n]);return xl(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e);if("function"==typeof e)return xl(e);throw new Error("Expected function, string, or array as `test`")};function xl(e){return function(t,n,r){return Boolean(Sl(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function wl(e){return Boolean(e&&"object"==typeof e&&"type"in e&&"element"===e.type&&"tagName"in e&&"string"==typeof e.tagName)}function Sl(e){return null!==e&&"object"==typeof e&&"type"in e&&"tagName"in e}const Cl=vl(function(e){return"audio"===e.tagName||"canvas"===e.tagName||"embed"===e.tagName||"iframe"===e.tagName||"img"===e.tagName||"math"===e.tagName||"object"===e.tagName||"picture"===e.tagName||"svg"===e.tagName||"video"===e.tagName}),Al=["address","article","aside","blockquote","body","br","caption","center","col","colgroup","dd","dialog","dir","div","dl","dt","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","legend","li","li","listing","main","menu","nav","ol","optgroup","option","p","plaintext","pre","section","summary","table","tbody","td","td","tfoot","th","th","thead","tr","ul","wbr","xmp"],Tl=["button","input","select","textarea"],El=["area","base","basefont","dialog","datalist","head","link","meta","noembed","noframes","param","rp","script","source","style","template","track","title"],Nl={},Il=Q(["comment","doctype"]);function Pl(e,t){if("children"in e){const n={...t};return("root"===e.type||Ll(e))&&(n.before=!0,n.after=!0),n.whitespace=function(e,t){if("tagName"in e&&e.properties)switch(e.tagName){case"listing":case"plaintext":case"script":case"style":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return e.properties.wrap?"pre-wrap":"pre";case"td":case"th":return e.properties.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}return t.whitespace}(e,t),function(e,t){let n=t.before;const r=t.after,o=e.children;let i=o.length,l=-1;for(;++l<i;){const e=Pl(o[l],{...t,after:Dl(o,l,r),before:n});e.remove?(o.splice(l,1),l--,i--):e.ignore||(n=e.stripAtStart),Fl(o[l])&&(n=!1)}return{ignore:!1,stripAtStart:Boolean(n||r),remove:!1}}(e,n)}if("text"===e.type){if("normal"===t.whitespace)return function(e,t){const n=t.collapse(e.value),r={ignore:!1,stripAtStart:!1,remove:!1};let o=0,i=n.length;t.before&&Rl(n.charAt(0))&&o++;o!==i&&Rl(n.charAt(i-1))&&(t.after?i--:r.stripAtStart=!0);o===i?r.remove=!0:e.value=n.slice(o,i);return r}(e,t);"nowrap"===t.whitespace&&(e.value=t.collapse(e.value))}return{ignore:Il(e),stripAtStart:!1,remove:!1}}function Dl(e,t,n){for(;++t<e.length;){const n=e[t];let r=Ol(n);if(void 0===r&&"children"in n&&!Ml(n)&&(r=Dl(n.children,-1)),"boolean"==typeof r)return r}return n}function Ol(e){if("element"===e.type){if(Fl(e))return!1;if(Ll(e))return!0}else if("text"===e.type){if(!Oi(e))return!1}else if(!Il(e))return!1}function Fl(e){return Cl(e)||bl(e,Tl)}function Ll(e){return bl(e,Al)}function Ml(e){return Boolean("element"===e.type&&e.properties.hidden)||Il(e)||bl(e,El)}function Rl(e){return" "===e||"\n"===e}function zl(e){const t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function _l(){return" "}function Bl(e){return function(t){return String(t).replace(/[\t\n\v\f\r ]+/g,e)}}function jl(e){return function(t){!function(e,t){Pl(e,{collapse:Bl((t||Nl).newlines?zl:_l),whitespace:"normal"})}(t,e)}}const Hl=function(e,t,n){const r=Q(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if("number"==typeof t){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if((t=e.children.indexOf(t))<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]},Ul=/\n/g,ql=/[\t ]+/g,Vl=vl("br"),Wl=vl(function(e){return"td"===e.tagName||"th"===e.tagName}),$l=vl("p"),Yl=vl("tr"),Gl=vl(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(e){return Boolean((e.properties||{}).hidden)},function(e){return"dialog"===e.tagName&&!(e.properties||{}).open}]),Ql=vl(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function Kl(e,t){const n=t||{},r="children"in e?e.children:[],o=Ql(e),i=ea(e,{whitespace:n.whitespace||"normal",breakBefore:!1,breakAfter:!1}),l=[];"text"!==e.type&&"comment"!==e.type||l.push(...Xl(e,{whitespace:i,breakBefore:!0,breakAfter:!0}));let a=-1;for(;++a<r.length;)l.push(...Zl(r[a],e,{whitespace:i,breakBefore:a?void 0:o,breakAfter:a<r.length-1?Vl(r[a+1]):o}));const s=[];let c;for(a=-1;++a<l.length;){const e=l[a];"number"==typeof e?void 0!==c&&e>c&&(c=e):e&&(void 0!==c&&c>-1&&s.push("\n".repeat(c)||" "),c=-1,s.push(e))}return s.join("")}function Zl(e,t,n){return"element"===e.type?function(e,t,n){const r=ea(e,n),o=e.children||[];let i,l,a=-1,s=[];if(Gl(e))return s;Vl(e)||Yl(e)&&Hl(t,e,Yl)?l="\n":$l(e)?(i=2,l=2):Ql(e)&&(i=1,l=1);for(;++a<o.length;)s=s.concat(Zl(o[a],e,{whitespace:r,breakBefore:a?void 0:i,breakAfter:a<o.length-1?Vl(o[a+1]):l}));Wl(e)&&Hl(t,e,Wl)&&s.push("\t");i&&s.unshift(i);l&&s.push(l);return s}(e,t,n):"text"===e.type?"normal"===n.whitespace?Xl(e,n):function(e){return[String(e.value)]}(e):[]}function Xl(e,t){const n=String(e.value),r=[],o=[];let i=0;for(;i<=n.length;){Ul.lastIndex=i;const e=Ul.exec(n),o=e&&"index"in e?e.index:n.length;r.push(Jl(n.slice(i,o).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),0!==i||t.breakBefore,o!==n.length||t.breakAfter)),i=o+1}let l,a=-1;for(;++a<r.length;)8203===r[a].charCodeAt(r[a].length-1)||a<r.length-1&&8203===r[a+1].charCodeAt(0)?(o.push(r[a]),l=void 0):r[a]?("number"==typeof l&&o.push(l),o.push(r[a]),l=0):0!==a&&a!==r.length-1||o.push(0);return o}function Jl(e,t,n){const r=[];let o,i=0;for(;i<e.length;){ql.lastIndex=i;const n=ql.exec(e);o=n?n.index:e.length,i||o||!n||t||r.push(""),i!==o&&r.push(e.slice(i,o)),i=n?o+n[0].length:o}return i===o||n||r.push(""),r.join(" ")}function ea(e,t){if("element"===e.type){const n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function ta(e){const t=String(e);let n=t.length;for(;n>0;){const e=t.codePointAt(n-1);if(void 0===e||10!==e&&13!==e)break;n--}return t.slice(0,n)}const na="language-";function ra(e,t){const n=t.children;let r,o,i=-1;if("pre"===t.tagName)for(;++i<n.length;){const e=n[i];if("element"===e.type&&"code"===e.tagName&&e.properties&&e.properties.className&&Array.isArray(e.properties.className)){r=e.properties.className;break}}if(r)for(i=-1;++i<r.length;)if(String(r[i]).slice(0,9)===na){o=String(r[i]).slice(9);break}const l={type:"code",lang:o||null,meta:null,value:ta(Kl(t))};return e.patch(t,l),l}function oa(e,t){const n={type:"delete",children:e.all(t)};return e.patch(t,n),n}function ia(e){let t=-1;if(e.length>1)for(;++t<e.length;)if(e[t].spread)return!0;return!1}function la(e,t){const n=e.all({type:"root",children:t}),r=e.toSpecificContent(n,aa);return 0===r.length?[]:1===r.length?r[0].children:[{type:"list",ordered:!1,start:null,spread:ia(r),children:r}]}function aa(){return{type:"listItem",spread:!1,checked:null,children:[]}}function sa(e,t){const n={type:"emphasis",children:e.all(t)};return e.patch(t,n),n}function ca(e){let t=0,n=e.length;for(;t<n&&"break"===e[t].type;)t++;for(;n>t&&"break"===e[n-1].type;)n--;return 0===t&&n===e.length?e:e.slice(t,n)}function ua(e,t){const n={type:"heading",depth:Number(t.tagName.charAt(1))||1,children:ca(e.all(t))};return e.patch(t,n),n}function fa(e,t){const n=t.properties||{},r={type:"image",url:e.resolve(String(n.src||"")||null),title:n.title?String(n.title):null,alt:n.alt?String(n.alt):""};return e.patch(t,r),r}function pa(e,t){const n={type:"inlineCode",value:Kl(t)};return e.patch(t,n),n}function ha(e,t){const n=[],r=[],o=t||e.properties||{},i=da(e),l=Math.min(Number.parseInt(String(o.size),10),0)||(o.multiple?4:1);let a=-1;for(;++a<i.length;){const e=i[a];e&&e.properties&&e.properties.selected&&n.push(e)}const s=n.length>0?n:i,c=Math.min(s.length,l);for(a=-1;++a<c;){const e=s[a],t=e.properties||{},n=Kl(e),o=n||String(t.label||""),i=String(t.value||"")||n;r.push([i,o===i?void 0:o])}return r}function da(e){const t=[];let n=-1;for(;++n<e.children.length;){const r=e.children[n];"children"in r&&Array.isArray(r.children)&&t.push(...da(r)),"element"!==r.type||"option"!==r.tagName||r.properties&&r.properties.disabled||t.push(r)}return t}const ga={}.hasOwnProperty;const ma=new Set(["pingback","prefetch","stylesheet"]);const ya=vl(["a","abbr","area","b","bdi","bdo","br","button","cite","code","data","datalist","del","dfn","em","i","input","ins","kbd","keygen","label","map","mark","meter","noscript","output","progress","q","ruby","s","samp","script","select","small","span","strong","sub","sup","template","textarea","time","u","var","wbr"]),ka=vl("meta");function ba(e){return Boolean("text"===e.type||ya(e)||Cl(e)||function(e){if("element"!==e.type||"link"!==e.tagName)return!1;if(e.properties.itemProp)return!0;const t=e.properties.rel;let n=-1;if(!Array.isArray(t)||0===t.length)return!1;for(;++n<t.length;)if(!ma.has(String(t[n])))return!1;return!0}(e)||ka(e)&&function(e,t){const n="element"===e.type&&ga.call(e.properties,t)&&e.properties[t];return null!=n&&!1!==n}(e,"itemProp"))}function va(e,t){const{rest:n,checkbox:r}=wa(t),o=r?Boolean(r.properties.checked):null,i={type:"listItem",spread:xa(n),checked:o,children:e.toFlow(e.all(n))};return e.patch(t,i),i}function xa(e){let t=-1,n=!1;for(;++t<e.children.length;){const r=e.children[t];if("element"===r.type){if(ba(r))continue;if("p"===r.tagName||n||xa(r))return!0;n=!0}}return!1}function wa(e){const t=e.children[0];if(t&&"element"===t.type&&"input"===t.tagName&&t.properties&&("checkbox"===t.properties.type||"radio"===t.properties.type)){return{checkbox:t,rest:{...e,children:e.children.slice(1)}}}if(t&&"element"===t.type&&"p"===t.tagName){const{checkbox:n,rest:r}=wa(t);if(n){return{checkbox:n,rest:{...e,children:[r,...e.children.slice(1)]}}}}return{checkbox:void 0,rest:e}}function Sa(e,t){const n="ol"===t.tagName,r=e.toSpecificContent(e.all(t),Ca);let o=null;n&&(o=t.properties&&t.properties.start?Number.parseInt(String(t.properties.start),10):1);const i={type:"list",ordered:n,start:o,spread:ia(r),children:r};return e.patch(t,i),i}function Ca(){return{type:"listItem",spread:!1,checked:null,children:[]}}function Aa(e){let t=-1;for(;++t<e.length;){const n=e[t];if(!Ia(n)||"children"in n&&Aa(n.children))return!0}return!1}function Ta(e){return Na(e,function(e){return e.every(function(e){return"text"===e.type&&Oi(e.value)})?[]:[{type:"paragraph",children:ca(e)}]},function(e){return e})}function Ea(e){return Na(e.children,function(t){const n=Pa(e);return n.children=t,[n]},function(t){if("children"in t&&"children"in e){const n=Pa(e),r=Pa(t);return n.children=t.children,r.children.push(n),r}return{...t}})}function Na(e,t,n){const r=function(e){const t=[];let n=-1;for(;++n<e.length;){const r=e[n];"delete"!==r.type&&"link"!==r.type||!Aa(r.children)?t.push(r):t.push(...Ea(r))}return t}(e),o=[];let i=[],l=-1;for(;++l<r.length;){const e=r[l];Ia(e)?i.push(e):(i.length>0&&(o.push(...t(i)),i=[]),o.push(n(e)))}return i.length>0&&(o.push(...t(i)),i=[]),o}function Ia(e){const t=e.data&&e.data.hName;return t?ba({type:"element",tagName:t,properties:{},children:[]}):ft(e)}function Pa(e){return $r({...e,children:[]})}function Da(e,t){const n=t.properties||{},r="video"===t.tagName?String(n.poster||""):"";let o=String(n.src||""),i=-1,l=!1,a=e.all(t);if(Ke({type:"root",children:a},function(e){if("link"===e.type)return l=!0,te}),l||Aa(a))return a;for(;!o&&++i<t.children.length;){const e=t.children[i];"element"===e.type&&"source"===e.tagName&&e.properties&&(o=String(e.properties.src||""))}if(r){const n={type:"image",title:null,url:e.resolve(r),alt:Xe(a)};e.patch(t,n),a=[n]}const s=a,c={type:"link",title:n.title?String(n.title):null,url:e.resolve(o),children:s};return e.patch(t,c),c}function Oa(e,t){const n=ca(e.all(t));if(n.length>0){const r={type:"paragraph",children:n};return e.patch(t,r),r}}const Fa=['"'];function La(e,t){const n={type:"strong",children:e.all(t)};return e.patch(t,n),n}function Ma(e,t){const n={type:"tableCell",children:e.all(t)};if(e.patch(t,n),t.properties){const e=t.properties.rowSpan,r=t.properties.colSpan;if(e||r){const t=n.data||(n.data={});e&&(t.hastUtilToMdastTemporaryRowSpan=e),r&&(t.hastUtilToMdastTemporaryColSpan=r)}}return n}function Ra(){return{type:"tableCell",children:[]}}function za(){return{type:"tableCell",children:[]}}function _a(){return{type:"tableRow",children:[]}}const Ba={comment:function(e,t){const n={type:"html",value:"\x3c!--"+t.value+"--\x3e"};return e.patch(t,n),n},doctype:qa,root:function(e,t){let n=e.all(t);(e.options.document||Aa(n))&&(n=Ta(n));const r={type:"root",children:n};return e.patch(t,r),r},text:function(e,t){const n={type:"text",value:t.value};return e.patch(t,n),n}},ja={applet:qa,area:qa,basefont:qa,bgsound:qa,caption:qa,col:qa,colgroup:qa,command:qa,content:qa,datalist:qa,dialog:qa,element:qa,embed:qa,frame:qa,frameset:qa,isindex:qa,keygen:qa,link:qa,math:qa,menu:qa,menuitem:qa,meta:qa,nextid:qa,noembed:qa,noframes:qa,optgroup:qa,option:qa,param:qa,script:qa,shadow:qa,source:qa,spacer:qa,style:qa,svg:qa,template:qa,title:qa,track:qa,abbr:Ha,acronym:Ha,bdi:Ha,bdo:Ha,big:Ha,blink:Ha,button:Ha,canvas:Ha,cite:Ha,data:Ha,details:Ha,dfn:Ha,font:Ha,ins:Ha,label:Ha,map:Ha,marquee:Ha,meter:Ha,nobr:Ha,noscript:Ha,object:Ha,output:Ha,progress:Ha,rb:Ha,rbc:Ha,rp:Ha,rt:Ha,rtc:Ha,ruby:Ha,slot:Ha,small:Ha,span:Ha,sup:Ha,sub:Ha,tbody:Ha,tfoot:Ha,thead:Ha,time:Ha,address:Ua,article:Ua,aside:Ua,body:Ua,center:Ua,div:Ua,fieldset:Ua,figcaption:Ua,figure:Ua,form:Ua,footer:Ua,header:Ua,hgroup:Ua,html:Ua,legend:Ua,main:Ua,multicol:Ua,nav:Ua,picture:Ua,section:Ua,a:function(e,t){const n=t.properties||{},r=e.all(t),o={type:"link",url:e.resolve(String(n.href||"")||null),title:n.title?String(n.title):null,children:r};return e.patch(t,o),o},audio:Da,b:La,base:function(e,t){e.baseFound||(e.frozenBaseUrl=String(t.properties&&t.properties.href||"")||void 0,e.baseFound=!0)},blockquote:function(e,t){const n={type:"blockquote",children:e.toFlow(e.all(t))};return e.patch(t,n),n},br:function(e,t){const n={type:"break"};return e.patch(t,n),n},code:pa,dir:Sa,dl:function(e,t){const n=[],r=[];let o=-1;for(;++o<t.children.length;){const e=t.children[o];"element"===e.type&&"div"===e.tagName?n.push(...e.children):n.push(e)}let i={definitions:[],titles:[]};for(o=-1;++o<n.length;){const e=n[o];if("element"===e.type&&"dt"===e.tagName){const t=n[o-1];t&&"element"===t.type&&"dd"===t.tagName&&(r.push(i),i={definitions:[],titles:[]}),i.titles.push(e)}else i.definitions.push(e)}r.push(i),o=-1;const l=[];for(;++o<r.length;){const t=[...la(e,r[o].titles),...la(e,r[o].definitions)];t.length>0&&l.push({type:"listItem",spread:t.length>1,checked:null,children:t})}if(l.length>0){const n={type:"list",ordered:!1,start:null,spread:ia(l),children:l};return e.patch(t,n),n}},dt:va,dd:va,del:oa,em:sa,h1:ua,h2:ua,h3:ua,h4:ua,h5:ua,h6:ua,hr:function(e,t){const n={type:"thematicBreak"};return e.patch(t,n),n},i:sa,iframe:function(e,t){const n=t.properties||{},r=String(n.src||""),o=String(n.title||"");if(r&&o){const n={type:"link",title:null,url:e.resolve(r),children:[{type:"text",value:o}]};return e.patch(t,n),n}},img:fa,image:fa,input:function(e,t){const n=t.properties||{},r=String(n.value||n.placeholder||"");if(n.disabled||"hidden"===n.type||"file"===n.type)return;if("checkbox"===n.type||"radio"===n.type){const r={type:"text",value:n.checked?e.options.checked||"[x]":e.options.unchecked||"[ ]"};return e.patch(t,r),r}if("image"===n.type){const o=n.alt||r;if(o){const r={type:"image",url:e.resolve(String(n.src||"")||null),title:String(n.title||"")||null,alt:String(o)};return e.patch(t,r),r}return}let o=[];if(r)o=[[r,void 0]];else if("button"!==n.type&&"file"!==n.type&&"password"!==n.type&&"reset"!==n.type&&"submit"!==n.type&&n.list){const t=String(n.list),r=e.elementById.get(t);r&&"datalist"===r.tagName&&(o=ha(r,n))}if(0===o.length)return;if("password"===n.type&&(o[0]=["•".repeat(o[0][0].length),void 0]),"email"===n.type||"url"===n.type){const t=[];let r=-1;for(;++r<o.length;){const i=e.resolve(o[r][0]),l={type:"link",title:null,url:"email"===n.type?"mailto:"+i:i,children:[{type:"text",value:o[r][1]||i}]};t.push(l),r!==o.length-1&&t.push({type:"text",value:", "})}return t}const i=[];let l=-1;for(;++l<o.length;)i.push(o[l][1]?o[l][1]+" ("+o[l][0]+")":o[l][0]);const a={type:"text",value:i.join(", ")};return e.patch(t,a),a},kbd:pa,li:va,listing:ra,mark:sa,ol:Sa,p:Oa,plaintext:ra,pre:ra,q:function(e,t){const n=e.options.quotes||Fa;e.qNesting++;const r=e.all(t);e.qNesting--;const o=n[e.qNesting%n.length],i=r[0],l=r[r.length-1],a=o.charAt(0),s=o.length>1?o.charAt(1):o;return i&&"text"===i.type?i.value=a+i.value:r.unshift({type:"text",value:a}),l&&"text"===l.type?l.value+=s:r.push({type:"text",value:s}),r},s:oa,samp:pa,select:function(e,t){const n=ha(t);let r=-1;const o=[];for(;++r<n.length;){const e=n[r];o.push(e[1]?e[1]+" ("+e[0]+")":e[0])}if(o.length>0){const n={type:"text",value:o.join(", ")};return e.patch(t,n),n}},strike:oa,strong:La,summary:Oa,table:function(e,t){if(e.inTable){const n={type:"text",value:Kl(t)};return e.patch(t,n),n}e.inTable=!0;const{align:n,headless:r}=function(e){const t={align:[null],headless:!0};let n=0,r=0;return Ke(e,function(o){if("element"===o.type){if("table"===o.tagName&&e!==o)return ne;if("th"!==o.tagName&&"td"!==o.tagName||!o.properties)"thead"===o.tagName?t.headless=!1:"tr"===o.tagName&&(n++,r=0);else{if(!t.align[r]){const e=String(o.properties.align||"")||null;"center"!==e&&"left"!==e&&"right"!==e&&null!==e||(t.align[r]=e)}t.headless&&n<2&&"th"===o.tagName&&(t.headless=!1),r++}}}),t}(t),o=e.toSpecificContent(e.all(t),_a);r&&o.unshift({type:"tableRow",children:[]});let i=-1;for(;++i<o.length;){const t=o[i],n=e.toSpecificContent(t.children,za);t.children=n}let l=1;for(i=-1;++i<o.length;){const e=o[i].children;let t=-1;for(;++t<e.length;){const n=e[t];if(n.data){const e=n.data,r=Number.parseInt(String(e.hastUtilToMdastTemporaryColSpan),10)||1,l=Number.parseInt(String(e.hastUtilToMdastTemporaryRowSpan),10)||1;if(r>1||l>1){let e=i-1;for(;++e<i+l;){let n=t-1;for(;++n<t+r&&o[e];){const r=[];e===i&&n===t||r.push({type:"tableCell",children:[]}),o[e].children.splice(n,0,...r)}}}"hastUtilToMdastTemporaryColSpan"in n.data&&delete n.data.hastUtilToMdastTemporaryColSpan,"hastUtilToMdastTemporaryRowSpan"in n.data&&delete n.data.hastUtilToMdastTemporaryRowSpan,0===Object.keys(n.data).length&&delete n.data}}e.length>l&&(l=e.length)}for(i=-1;++i<o.length;){const e=o[i].children;let t=e.length-1;for(;++t<l;)e.push({type:"tableCell",children:[]})}let a=n.length-1;for(;++a<l;)n.push(null);e.inTable=!1;const s={type:"table",align:n,children:o};return e.patch(t,s),s},td:Ma,textarea:function(e,t){const n={type:"text",value:Kl(t)};return e.patch(t,n),n},th:Ma,tr:function(e,t){const n={type:"tableRow",children:e.toSpecificContent(e.all(t),Ra)};return e.patch(t,n),n},tt:pa,u:sa,ul:Sa,var:pa,video:Da,wbr:function(e,t){const n={type:"text",value:"​"};return e.patch(t,n),n},xmp:ra};function Ha(e,t){return e.all(t)}function Ua(e,t){return e.toFlow(e.all(t))}function qa(){}const Va={}.hasOwnProperty;function Wa(e){const t=e.children||[],n=[];let r=-1;for(;++r<t.length;){const o=t[r],i=this.one(o,e);Array.isArray(i)?n.push(...i):i&&n.push(i)}return n}function $a(e,t){if("element"===e.type){if(e.properties&&"ignore"===e.properties.dataMdast)return;if(Va.call(this.handlers,e.tagName))return this.handlers[e.tagName](this,e,t)||void 0}else if(Va.call(this.nodeHandlers,e.type))return this.nodeHandlers[e.type](this,e,t)||void 0;if("value"in e&&"string"==typeof e.value){const t={type:"text",value:e.value};return this.patch(e,t),t}if("children"in e)return this.all(e)}function Ya(e,t){e.position&&(t.position=Jr(e))}function Ga(e){const t=this.frozenBaseUrl;return null==e?"":t?String(new URL(e,t)):e}function Qa(e){return Ta(e)}function Ka(e,t){const n=t(),r=[];let o=[],i=-1;for(;++i<e.length;){const t=e[i];if(l(t))o.length>0&&(t.children.unshift(...o),o=[]),r.push(t);else{const e=t;o.push(e)}}if(o.length>0){let e=r[r.length-1];e||(e=t(),r.push(e)),e.children.push(...o),o=[]}return r;function l(e){return e.type===n.type}}const Za={};function Xa(e,t){const n=$r(e),r=t||Za,o=jl({newlines:!0===r.newlines}),i=function(e){return{all:Wa,baseFound:!1,elementById:new Map,frozenBaseUrl:void 0,handlers:{...ja,...e.handlers},inTable:!1,nodeHandlers:{...Ba,...e.nodeHandlers},one:$a,options:e,patch:Ya,qNesting:0,resolve:Ga,toFlow:Qa,toSpecificContent:Ka}}(r);let l;o(n),Ke(n,function(e){if(e&&"element"===e.type&&e.properties){const t=String(e.properties.id||"")||void 0;t&&!i.elementById.has(t)&&i.elementById.set(t,e)}});const a=i.one(n,void 0);if(a)if(Array.isArray(a)){l={type:"root",children:a}}else l=a;else l={type:"root",children:[]};return Ke(l,function(e,t,n){if("text"===e.type&&void 0!==t&&n){const r=n.children[t-1];if(r&&r.type===e.type)return r.value+=e.value,n.children.splice(t,1),r.position&&e.position&&(r.position.end=e.position.end),t-1;if(e.value=e.value.replace(/[\t ]*(\r?\n|\r)[\t ]*/,"$1"),!n||"heading"!==n.type&&"paragraph"!==n.type&&"root"!==n.type||(t||(e.value=e.value.replace(/^[\t ]+/,"")),t===n.children.length-1&&(e.value=e.value.replace(/[\t ]+$/,""))),!e.value)return n.children.splice(t,1),t}}),l}const Ja={document:!0};function es(e,t){return e&&"run"in e?async function(n,r){const o=Xa(n,{...Ja,...t});await e.run(o,r)}:function(t){return Xa(t,{...Ja,...e})}}const ts={}.hasOwnProperty;function ns(e,t){let n,r=-1;if(t.extensions)for(;++r<t.extensions.length;)ns(e,t.extensions[r]);for(n in t)if(ts.call(t,n))switch(n){case"extensions":break;case"unsafe":case"join":rs(e[n],t[n]);break;case"handlers":os(e[n],t[n]);break;default:e.options[n]=t[n]}return e}function rs(e,t){t&&e.push(...t)}function os(e,t){t&&Object.assign(e,t)}const is=[function(e,t,n,r){if("code"===t.type&&qe(t,r)&&("list"===e.type||e.type===t.type&&qe(e,r)))return!1;if("spread"in n&&"boolean"==typeof n.spread){if("paragraph"===e.type&&(e.type===t.type||"definition"===t.type||"heading"===t.type&&tt(t,r)))return;return n.spread?1:0}}];const ls=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],as=[{character:"\t",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",before:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:"\n",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:ls},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:"(?:[\r\n]|$)"},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:ls},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:"(?:[ \t\r\n*])"},{character:"*",inConstruct:"phrasing",notInConstruct:ls},{atBreak:!0,character:"+",after:"(?:[ \t\r\n])"},{atBreak:!0,character:"-",after:"(?:[ \t\r\n-])"},{atBreak:!0,before:"\\d+",character:".",after:"(?:[ \t\r\n]|$)"},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:ls},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:ls},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:ls},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:ls},{atBreak:!0,character:"~"}];function ss(e){return e.label||!e.identifier?e.label||"":Ir(e.identifier)}function cs(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function us(e,t,n,r){let o=r.join.length;for(;o--;){const i=r.join[o](e,t,n,r);if(!0===i||1===i)break;if("number"==typeof i)return"\n".repeat(1+i);if(!1===i)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}const fs=/\r?\n|\r/g;function ps(e,t){const n=[];let r,o=0,i=0;for(;r=fs.exec(e);)l(e.slice(o,r.index)),n.push(r[0]),o=r.index+r[0].length,i++;return l(e.slice(o)),n.join("");function l(e){n.push(t(e,i,!e))}}function hs(e,t){return e-t}function ds(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,r=[],o=[],i=e+t;let l,a=-1,s=0;for(;l=n.exec(i);)r.push(l.index);for(;++a<r.length;)s!==r[a]&&o.push(e.slice(s,r[a])),o.push("\\"),s=r[a];return o.push(e.slice(s)),o.join("")}function gs(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,o=n.line||1,i=n.column||1;return{move:function(e){const t=e||"",n=t.split(/\r?\n|\r/g),l=n[n.length-1];return o+=n.length-1,i=1===n.length?i+l.length:1+l.length+r,t},current:function(){return{now:{line:o,column:i},lineShift:r}},shift:function(e){r+=e}}}function ms(e,t){const n=t||{},r={associationId:ss,containerPhrasing:vs,containerFlow:xs,createTracker:gs,compilePattern:cs,enter:function(e){return r.stack.push(e),function(){r.stack.pop()}},handlers:{...ht},handle:void 0,indentLines:ps,indexStack:[],join:[...is],options:{},safe:ws,stack:[],unsafe:[...as]};ns(r,n),r.options.tightDefinitions&&r.join.push(bs),r.handle=li("type",{invalid:ys,unknown:ks,handlers:r.handlers});let o=r.handle(e,void 0,r,{before:"\n",after:"\n",now:{line:1,column:1},lineShift:0});return o&&10!==o.charCodeAt(o.length-1)&&13!==o.charCodeAt(o.length-1)&&(o+="\n"),o}function ys(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function ks(e){throw new Error("Cannot handle unknown node `"+e.type+"`")}function bs(e,t){if("definition"===e.type&&e.type===t.type)return 0}function vs(e,t){return function(e,t,n){const r=t.indexStack,o=e.children||[],i=[];let l,a=-1,s=n.before;r.push(-1);let c=t.createTracker(n);for(;++a<o.length;){const u=o[a];let f;if(r[r.length-1]=a,a+1<o.length){let n=t.handle.handlers[o[a+1].type];n&&n.peek&&(n=n.peek),f=n?n(o[a+1],e,t,{before:"",after:"",...c.current()}).charAt(0):""}else f=n.after;i.length>0&&("\r"===s||"\n"===s)&&"html"===u.type&&(i[i.length-1]=i[i.length-1].replace(/(\r?\n|\r)$/," "),s=" ",c=t.createTracker(n),c.move(i.join("")));let p=t.handle(u,e,t,{...c.current(),after:f,before:s});l&&l===p.slice(0,1)&&(p=$e(l.charCodeAt(0))+p.slice(1));const h=t.attentionEncodeSurroundingInfo;t.attentionEncodeSurroundingInfo=void 0,l=void 0,h&&(i.length>0&&h.before&&s===i[i.length-1].slice(-1)&&(i[i.length-1]=i[i.length-1].slice(0,-1)+$e(s.charCodeAt(0))),h.after&&(l=f)),c.move(p),i.push(p),s=p.slice(-1)}return r.pop(),i.join("")}(e,this,t)}function xs(e,t){return function(e,t,n){const r=t.indexStack,o=e.children||[],i=t.createTracker(n),l=[];let a=-1;for(r.push(-1);++a<o.length;){const n=o[a];r[r.length-1]=a,l.push(i.move(t.handle(n,e,t,{before:"\n",after:"\n",...i.current()}))),"list"!==n.type&&(t.bulletLastUsed=void 0),a<o.length-1&&l.push(i.move(us(n,o[a+1],e,t)))}return r.pop(),l.join("")}(e,this,t)}function ws(e,t){return function(e,t,n){const r=(n.before||"")+(t||"")+(n.after||""),o=[],i=[],l={};let a=-1;for(;++a<e.unsafe.length;){const t=e.unsafe[a];if(!je(e.stack,t))continue;const n=e.compilePattern(t);let i;for(;i=n.exec(r);){const e="before"in t||Boolean(t.atBreak),n="after"in t,r=i.index+(e?i[1].length:0);o.includes(r)?(l[r].before&&!e&&(l[r].before=!1),l[r].after&&!n&&(l[r].after=!1)):(o.push(r),l[r]={before:e,after:n})}}o.sort(hs);let s=n.before?n.before.length:0;const c=r.length-(n.after?n.after.length:0);for(a=-1;++a<o.length;){const e=o[a];e<s||e>=c||e+1<c&&o[a+1]===e+1&&l[e].after&&!l[e+1].before&&!l[e+1].after||o[a-1]===e-1&&l[e].before&&!l[e-1].before&&!l[e-1].after||(s!==e&&i.push(ds(r.slice(s,e),"\\")),s=e,!/[!-/:-@[-`{-~]/.test(r.charAt(e))||n.encode&&n.encode.includes(r.charAt(e))?(i.push($e(r.charCodeAt(e))),s++):i.push("\\"))}return i.push(ds(r.slice(s,c),n.after)),i.join("")}(this,e,t)}function Ss(e){const t=this;t.compiler=function(n){return ms(n,{...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]})}}class Cs{_processor;_keepRawTags=[];constructor(){this._buildProcessor()}keep(e){this._keepRawTags.push(e.toLowerCase()),this._buildProcessor()}parse(e){return this._processor.processSync(e).toString().trim()}_getRawTagsHandlers(){return this._keepRawTags.reduce((e,t)=>(e[t]=(e,t)=>{const n=Ji(al(t.tagName,t.properties),{allowDangerousHtml:!0,closeSelfClosing:!0}),r=n.indexOf(">"),o=n.slice(0,r+1),i=n.slice(r+1);return[{type:"html",value:o},...e.all(t),{type:"html",value:i}]},e),{})}_buildProcessor(){this._processor=N().use(ml).use(As).use(es,{handlers:this._getRawTagsHandlers()}).use(dn,{singleTilde:!0}).use(yo).use(Ss,{resourceLink:!0,emphasis:"_",rule:"-",handlers:{break:()=>"\n"},unsafe:[{character:"<"}]})}}function As(){return function(e){Ke(e,"element",(e,t,n)=>{null!==t&&"label"===e.tagName&&"element"===n.type&&"li"===n.tagName&&n.children.splice(t,1,...e.children)})}}class Ts{_htmlDP;_markdown2html;_html2markdown;constructor(e){this._htmlDP=new i.HtmlDataProcessor(e),this._markdown2html=new hl,this._html2markdown=new Cs}keepHtml(e){this._html2markdown.keep(e)}toView(e){const t=this._markdown2html.parse(e);return this._htmlDP.toView(t)}toData(e){const t=this._htmlDP.toData(e);return this._html2markdown.parse(t)}registerRawContentMatcher(e){this._htmlDP.registerRawContentMatcher(e)}useFillerType(){}}class Es extends o.Plugin{constructor(e){super(e),e.data.processor=new Ts(e.data.viewDocument)}static get pluginName(){return"Markdown"}static get isOfficialPlugin(){return!0}}var Ns=n(331);const Is=["SPAN","BR","PRE","CODE"];class Ps extends o.Plugin{_gfmDataProcessor;constructor(e){super(e),this._gfmDataProcessor=new Ts(e.data.viewDocument)}static get pluginName(){return"PasteFromMarkdownExperimental"}static get isOfficialPlugin(){return!0}static get requires(){return[Ns.ClipboardPipeline]}init(){const e=this.editor,t=e.editing.view.document,n=e.plugins.get("ClipboardPipeline");let r=!1;this.listenTo(t,"keydown",(e,t)=>{r=t.shiftKey}),this.listenTo(n,"inputTransformation",(e,t)=>{if(r)return;const n=t.dataTransfer.getData("text/html");if(!n){const e=t.dataTransfer.getData("text/plain");return void(t.content=this._gfmDataProcessor.toView(e))}const o=this._parseMarkdownFromHtml(n);o&&(t.content=this._gfmDataProcessor.toView(o))})}_parseMarkdownFromHtml(e){const t=this._removeOsSpecificTags(e);if(!this._containsOnlyAllowedFirstLevelTags(t))return null;const n=this._removeFirstLevelWrapperTagsAndBrs(t);return this._containsAnyRemainingHtmlTags(n)?null:this._replaceHtmlReservedEntitiesWithCharacters(n)}_removeOsSpecificTags(e){return e.replace(/^<meta\b[^>]*>/,"").trim().replace(/^<html>/,"").replace(/<\/html>$/,"").trim().replace(/^<body>/,"").replace(/<\/body>$/,"").trim().replace(/^<!--StartFragment-->/,"").replace(/<!--EndFragment-->$/,"").trim()}_containsOnlyAllowedFirstLevelTags(e){const t=new DOMParser,{body:n}=t.parseFromString(e,"text/html");return Array.from(n.children).map(e=>e.tagName).every(e=>Is.includes(e))}_removeFirstLevelWrapperTagsAndBrs(e){const t=new DOMParser,{body:n}=t.parseFromString(e,"text/html"),r=n.querySelectorAll("br");for(const e of r)e.replaceWith("\n");const o=n.querySelectorAll(":scope > *");for(const e of o){const t=e.cloneNode(!0);e.replaceWith(...t.childNodes)}return n.innerHTML}_containsAnyRemainingHtmlTags(e){return e.includes("<")}_replaceHtmlReservedEntitiesWithCharacters(e){return e.replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&nbsp;/g," ")}}})(),(window.CKEditor5=window.CKEditor5||{}).markdownGfm=r})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-markdown-gfm",
3
- "version": "46.0.0-alpha.8",
3
+ "version": "46.0.1-alpha.0",
4
4
  "description": "GitHub Flavored Markdown data processor for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -18,11 +18,11 @@
18
18
  "type": "module",
19
19
  "main": "src/index.js",
20
20
  "dependencies": {
21
- "@ckeditor/ckeditor5-clipboard": "46.0.0-alpha.8",
22
- "@ckeditor/ckeditor5-core": "46.0.0-alpha.8",
23
- "@ckeditor/ckeditor5-engine": "46.0.0-alpha.8",
21
+ "@ckeditor/ckeditor5-clipboard": "46.0.1-alpha.0",
22
+ "@ckeditor/ckeditor5-core": "46.0.1-alpha.0",
23
+ "@ckeditor/ckeditor5-engine": "46.0.1-alpha.0",
24
24
  "@types/hast": "3.0.4",
25
- "ckeditor5": "46.0.0-alpha.8",
25
+ "ckeditor5": "46.0.1-alpha.0",
26
26
  "hast-util-from-dom": "5.0.1",
27
27
  "hast-util-to-html": "9.0.5",
28
28
  "hast-util-to-mdast": "10.1.2",