/*! For license information please see ai-react-markdown.6230542471e5145001f3.bundle.min.js.LICENSE.txt */ (self.webpackChunkelementor=self.webpackChunkelementor||[]).push([[2895],{44:e=>{e.exports=function isBuffer(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},7738:e=>{e.exports=function isBuffer(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},18453:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>ReactMarkdown,uriTransformer:()=>uriTransformer});var r={};t.r(r),t.d(r,{attentionMarkers:()=>we,contentInitial:()=>ge,disable:()=>Se,document:()=>me,flow:()=>ke,flowInitial:()=>ye,insideSpan:()=>ve,string:()=>xe,text:()=>be});var o={};t.r(o),t.d(o,{boolean:()=>Ne,booleanish:()=>Me,commaOrSpaceSeparated:()=>Ve,commaSeparated:()=>Ue,number:()=>_e,overloadedBoolean:()=>Re,spaceSeparated:()=>je});const i=["http","https","mailto","tel"];function uriTransformer(e){const n=(e||"").trim(),t=n.charAt(0);if("#"===t||"/"===t)return n;const r=n.indexOf(":");if(-1===r)return n;let o=-1;for(;++oo?n:(o=n.indexOf("#"),-1!==o&&r>o?n:"javascript:void(0)")}var l=t(41594),a=t(44);function stringifyPosition(e){return e&&"object"==typeof e?"position"in e||"type"in e?position(e.position):"start"in e||"end"in e?position(e):"line"in e||"column"in e?point(e):"":""}function point(e){return index(e&&e.line)+":"+index(e&&e.column)}function position(e){return point(e&&e.start)+"-"+point(e&&e.end)}function index(e){return e&&"number"==typeof e?e:1}class VFileMessage extends Error{constructor(e,n,t){const r=[null,null];let o={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof n&&(t=n,n=void 0),"string"==typeof t){const e=t.indexOf(":");-1===e?r[1]=t:(r[0]=t.slice(0,e),r[1]=t.slice(e+1))}n&&("type"in n||"position"in n?n.position&&(o=n.position):"start"in n||"end"in n?o=n:("line"in n||"column"in n)&&(o.start=n)),this.name=stringifyPosition(n)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="","object"==typeof e&&e.stack&&(this.stack=e.stack),this.reason=this.message,this.fatal,this.line=o.start.line,this.column=o.start.column,this.position=o,this.source=r[0],this.ruleId=r[1],this.file,this.actual,this.expected,this.url,this.note}}VFileMessage.prototype.file="",VFileMessage.prototype.name="",VFileMessage.prototype.reason="",VFileMessage.prototype.message="",VFileMessage.prototype.stack="",VFileMessage.prototype.fatal=null,VFileMessage.prototype.column=null,VFileMessage.prototype.line=null,VFileMessage.prototype.source=null,VFileMessage.prototype.ruleId=null,VFileMessage.prototype.position=null;const s={basename:function basename(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');assertPath(e);let t,r=0,o=-1,i=e.length;if(void 0===n||0===n.length||n.length>e.length){for(;i--;)if(47===e.charCodeAt(i)){if(t){r=i+1;break}}else o<0&&(t=!0,o=i+1);return o<0?"":e.slice(r,o)}if(n===e)return"";let l=-1,a=n.length-1;for(;i--;)if(47===e.charCodeAt(i)){if(t){r=i+1;break}}else l<0&&(t=!0,l=i+1),a>-1&&(e.charCodeAt(i)===n.charCodeAt(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 dirname(e){if(assertPath(e),0===e.length)return".";let n,t=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(n){t=r;break}}else n||(n=!0);return t<0?47===e.charCodeAt(0)?"/":".":1===t&&47===e.charCodeAt(0)?"//":e.slice(0,t)},extname:function extname(e){assertPath(e);let n,t=e.length,r=-1,o=0,i=-1,l=0;for(;t--;){const a=e.charCodeAt(t);if(47!==a)r<0&&(n=!0,r=t+1),46===a?i<0?i=t:1!==l&&(l=1):i>-1&&(l=-1);else if(n){o=t+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 join(...e){let n,t=-1;for(;++t2){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}n&&(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===t&&a>-1?a++:a=-1}return o}(e,!n);0!==t.length||n||(t=".");t.length>0&&47===e.charCodeAt(e.length-1)&&(t+="/");return n?"/"+t:t}(n)},sep:"/"};function assertPath(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const c={cwd:function cwd(){return"/"}};function isUrl(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}function urlToPath(e){if("string"==typeof e)e=new URL(e);else if(!isUrl(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}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 getPathFromURLPosix(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 n=e.pathname;let t=-1;for(;++tn.length;let o;r&&n.push(done);try{o=e.apply(this,n)}catch(e){if(r&&t)throw e;return done(e)}r||(o&&o.then&&"function"==typeof o.then?o.then(then,done):o instanceof Error?done(o):then(o))}function done(e,...r){t||(t=!0,n(e,...r))}function then(e){done(null,e)}}(l,next)(...i):r(null,...i)}}(null,...n)},use:function use(t){if("function"!=typeof t)throw new TypeError("Expected `middelware` to be a function, not "+t);return e.push(t),n}};return n}const p=function base(){const e=trough(),n=[];let t,r={},o=-1;return processor.data=function data(e,n){if("string"==typeof e)return 2===arguments.length?(assertUnfrozen("data",t),r[e]=n,processor):h.call(r,e)&&r[e]||null;if(e)return assertUnfrozen("data",t),r=e,processor;return r},processor.Parser=void 0,processor.Compiler=void 0,processor.freeze=function freeze(){if(t)return processor;for(;++o{if(!e&&n&&t){const r=processor.stringify(n,t);null==r||(!function looksLikeAVFileValue(e){return"string"==typeof e||f(e)}(r)?t.result=r:t.value=r),done(e,t)}else done(e)})}executor(null,n)},processor.processSync=function processSync(e){let n;processor.freeze(),assertParser("processSync",processor.Parser),assertCompiler("processSync",processor.Compiler);const t=vfile(e);return processor.process(t,done),assertDone("processSync","process",n),t;function done(e){n=!0,bail(e)}},processor;function processor(){const e=base();let t=-1;for(;++to?0:o+n:n>o?o:n,t=t>0?t:0,r.length<1e4)i=Array.from(r),i.unshift(n,t),e.splice(...i);else for(t&&e.splice(n,t);l0?(splice(e,e.length,0,n),e):n}const g={}.hasOwnProperty;function syntaxExtension(e,n){let t;for(t in n){const r=(g.call(e,t)?e[t]:void 0)||(e[t]={}),o=n[t];let i;if(o)for(i in o){g.call(r,i)||(r[i]=[]);const e=o[i];constructs(r[i],Array.isArray(e)?e:e?[e]:[])}}}function constructs(e,n){let t=-1;const r=[];for(;++ti))return;const t=n.events.length;let o,a,s=t;for(;s--;)if("exit"===n.events[s][0]&&"chunkFlow"===n.events[s][1].type){if(o){a=n.events[s][1].end;break}o=!0}for(exitContainers(l),e=t;er;){const r=t[o];n.containerState=r[1],r[0].exit.call(n,e)}t.length=r}function closeFlow(){r.write([null]),o=void 0,r=void 0,n.containerState._closeFlow=void 0}}},O={tokenize:function tokenizeContainer(e,n,t){return factorySpace(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const L={tokenize:function tokenizeBlankLine(e,n,t){return function start(n){return markdownSpace(n)?factorySpace(e,after,"linePrefix")(n):after(n)};function after(e){return null===e||markdownLineEnding(e)?n(e):t(e)}},partial:!0};function subtokenize(e){const n={};let t,r,o,i,l,a,s,c=-1;for(;++c=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}},partial:!0};const D={tokenize:function initializeFlow(e){const n=this,t=e.attempt(L,function atBlankEnding(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t},e.attempt(this.parser.constructs.flowInitial,afterConstruct,factorySpace(e,e.attempt(this.parser.constructs.flow,afterConstruct,e.attempt(P,afterConstruct)),"linePrefix")));return t;function afterConstruct(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n.currentConstruct=void 0,t;e.consume(r)}}};const T={resolveAll:createResolver()},B=initializeFactory("string"),z=initializeFactory("text");function initializeFactory(e){return{tokenize:function initializeText(n){const t=this,r=this.parser.constructs[e],o=n.attempt(r,start,notText);return start;function start(e){return atBreak(e)?o(e):notText(e)}function notText(e){if(null!==e)return n.enter("data"),n.consume(e),data;n.consume(e)}function data(e){return atBreak(e)?(n.exit("data"),o(e)):(n.consume(e),data)}function atBreak(e){if(null===e)return!0;const n=r[e];let o=-1;if(n)for(;++o-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 now(){const{line:e,column:n,offset:t,_index:o,_bufferIndex:i}=r;return{line:e,column:n,offset:t,_index:o,_bufferIndex:i}}function main(){let e;for(;r._index=3&&(null===i||markdownLineEnding(i))?(e.exit("thematicBreak"),n(i)):t(i)}function sequence(n){return n===r?(e.consume(n),o++,sequence):(e.exit("thematicBreakSequence"),markdownSpace(n)?factorySpace(e,atBreak,"whitespace")(n):atBreak(n))}}};const M={name:"list",tokenize:function tokenizeListStart(e,n,t){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 start(n){const o=r.containerState.type||(42===n||43===n||45===n?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||n===r.containerState.marker:b(n)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===n||45===n?e.check(N,t,atMarker)(n):atMarker(n);if(!r.interrupt||49===n)return e.enter("listItemPrefix"),e.enter("listItemValue"),inside(n)}return t(n)};function inside(n){return b(n)&&++l<10?(e.consume(n),inside):(!r.interrupt||l<2)&&(r.containerState.marker?n===r.containerState.marker:41===n||46===n)?(e.exit("listItemValue"),atMarker(n)):t(n)}function atMarker(n){return e.enter("listItemMarker"),e.consume(n),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||n,e.check(L,r.interrupt?t:onBlank,e.attempt(R,endOfPrefix,otherPrefix))}function onBlank(e){return r.containerState.initialBlankLine=!0,i++,endOfPrefix(e)}function otherPrefix(n){return markdownSpace(n)?(e.enter("listItemPrefixWhitespace"),e.consume(n),e.exit("listItemPrefixWhitespace"),endOfPrefix):t(n)}function endOfPrefix(t){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(t)}},continuation:{tokenize:function tokenizeListContinuation(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(L,onBlank,notBlank);function onBlank(t){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,factorySpace(e,n,"listItemIndent",r.containerState.size+1)(t)}function notBlank(t){return r.containerState.furtherBlankLines||!markdownSpace(t)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,notInCurrentItem(t)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(_,n,notInCurrentItem)(t))}function notInCurrentItem(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,factorySpace(e,e.attempt(M,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function tokenizeListEnd(e){e.exit(this.containerState.type)}},R={tokenize:function tokenizeListItemPrefixWhitespace(e,n,t){const r=this;return factorySpace(e,function afterPrefix(e){const o=r.events[r.events.length-1];return!markdownSpace(e)&&o&&"listItemPrefixWhitespace"===o[1].type?n(e):t(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},_={tokenize:function tokenizeIndent(e,n,t){const r=this;return factorySpace(e,function afterPrefix(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?n(e):t(e)},"listItemIndent",r.containerState.size+1)},partial:!0};const j={name:"blockQuote",tokenize:function tokenizeBlockQuoteStart(e,n,t){const r=this;return function start(n){if(62===n){const t=r.containerState;return t.open||(e.enter("blockQuote",{_container:!0}),t.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(n),e.exit("blockQuoteMarker"),after}return t(n)};function after(t){return markdownSpace(t)?(e.enter("blockQuotePrefixWhitespace"),e.consume(t),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(t))}},continuation:{tokenize:function tokenizeBlockQuoteContinuation(e,n,t){const r=this;return function contStart(n){if(markdownSpace(n))return factorySpace(e,contBefore,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(n);return contBefore(n)};function contBefore(r){return e.attempt(j,n,t)(r)}}},exit:function exit(e){e.exit("blockQuote")}};function factoryDestination(e,n,t,r,o,i,l,a,s){const c=s||Number.POSITIVE_INFINITY;let u=0;return function start(n){if(60===n)return e.enter(r),e.enter(o),e.enter(i),e.consume(n),e.exit(i),enclosedBefore;if(null===n||32===n||41===n||asciiControl(n))return t(n);return e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),raw(n)};function enclosedBefore(t){return 62===t?(e.enter(i),e.consume(t),e.exit(i),e.exit(o),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),enclosed(t))}function enclosed(n){return 62===n?(e.exit("chunkString"),e.exit(a),enclosedBefore(n)):null===n||60===n||markdownLineEnding(n)?t(n):(e.consume(n),92===n?enclosedEscape:enclosed)}function enclosedEscape(n){return 60===n||62===n||92===n?(e.consume(n),enclosed):enclosed(n)}function raw(o){return u||null!==o&&41!==o&&!markdownLineEndingOrSpace(o)?u999||null===c||91===c||93===c&&!a||94===c&&!s&&"_hiddenFootnoteSupport"in l.parser.constructs?t(c):93===c?(e.exit(i),e.enter(o),e.consume(c),e.exit(o),e.exit(r),n):markdownLineEnding(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),atBreak):(e.enter("chunkString",{contentType:"string"}),labelInside(c))}function labelInside(n){return null===n||91===n||93===n||markdownLineEnding(n)||s++>999?(e.exit("chunkString"),atBreak(n)):(e.consume(n),a||(a=!markdownSpace(n)),92===n?labelEscape:labelInside)}function labelEscape(n){return 91===n||92===n||93===n?(e.consume(n),s++,labelInside):labelInside(n)}}function factoryTitle(e,n,t,r,o,i){let l;return function start(n){if(34===n||39===n||40===n)return e.enter(r),e.enter(o),e.consume(n),e.exit(o),l=40===n?41:n,begin;return t(n)};function begin(t){return t===l?(e.enter(o),e.consume(t),e.exit(o),e.exit(r),n):(e.enter(i),atBreak(t))}function atBreak(n){return n===l?(e.exit(i),begin(l)):null===n?t(n):markdownLineEnding(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),factorySpace(e,atBreak,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),inside(n))}function inside(n){return n===l||null===n||markdownLineEnding(n)?(e.exit("chunkString"),atBreak(n)):(e.consume(n),92===n?escape:inside)}function escape(n){return n===l||92===n?(e.consume(n),inside):inside(n)}}function factoryWhitespace(e,n){let t;return function start(r){if(markdownLineEnding(r))return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t=!0,start;if(markdownSpace(r))return factorySpace(e,start,t?"linePrefix":"lineSuffix")(r);return n(r)}}function normalizeIdentifier(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const U={name:"definition",tokenize:function tokenizeDefinition(e,n,t){const r=this;let o;return function start(n){return e.enter("definition"),function before(n){return factoryLabel.call(r,e,labelAfter,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(n)}(n)};function labelAfter(n){return o=normalizeIdentifier(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===n?(e.enter("definitionMarker"),e.consume(n),e.exit("definitionMarker"),markerAfter):t(n)}function markerAfter(n){return markdownLineEndingOrSpace(n)?factoryWhitespace(e,destinationBefore)(n):destinationBefore(n)}function destinationBefore(n){return factoryDestination(e,destinationAfter,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(n)}function destinationAfter(n){return e.attempt(V,after,after)(n)}function after(n){return markdownSpace(n)?factorySpace(e,afterWhitespace,"whitespace")(n):afterWhitespace(n)}function afterWhitespace(i){return null===i||markdownLineEnding(i)?(e.exit("definition"),r.parser.defined.push(o),n(i)):t(i)}}},V={tokenize:function tokenizeTitleBefore(e,n,t){return function titleBefore(n){return markdownLineEndingOrSpace(n)?factoryWhitespace(e,beforeMarker)(n):t(n)};function beforeMarker(n){return factoryTitle(e,titleAfter,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(n)}function titleAfter(n){return markdownSpace(n)?factorySpace(e,titleAfterOptionalWhitespace,"whitespace")(n):titleAfterOptionalWhitespace(n)}function titleAfterOptionalWhitespace(e){return null===e||markdownLineEnding(e)?n(e):t(e)}},partial:!0};const H={name:"codeIndented",tokenize:function tokenizeCodeIndented(e,n,t){const r=this;return function start(n){return e.enter("codeIndented"),factorySpace(e,afterPrefix,"linePrefix",5)(n)};function afterPrefix(e){const n=r.events[r.events.length-1];return n&&"linePrefix"===n[1].type&&n[2].sliceSerialize(n[1],!0).length>=4?atBreak(e):t(e)}function atBreak(n){return null===n?after(n):markdownLineEnding(n)?e.attempt(q,atBreak,after)(n):(e.enter("codeFlowValue"),inside(n))}function inside(n){return null===n||markdownLineEnding(n)?(e.exit("codeFlowValue"),atBreak(n)):(e.consume(n),inside)}function after(t){return e.exit("codeIndented"),n(t)}}},q={tokenize:function tokenizeFurtherStart(e,n,t){const r=this;return furtherStart;function furtherStart(n){return r.parser.lazy[r.now().line]?t(n):markdownLineEnding(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),furtherStart):factorySpace(e,afterPrefix,"linePrefix",5)(n)}function afterPrefix(e){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?n(e):markdownLineEnding(e)?furtherStart(e):t(e)}},partial:!0};const W={name:"headingAtx",tokenize:function tokenizeHeadingAtx(e,n,t){let r=0;return function start(n){return e.enter("atxHeading"),function before(n){return e.enter("atxHeadingSequence"),sequenceOpen(n)}(n)};function sequenceOpen(n){return 35===n&&r++<6?(e.consume(n),sequenceOpen):null===n||markdownLineEndingOrSpace(n)?(e.exit("atxHeadingSequence"),atBreak(n)):t(n)}function atBreak(t){return 35===t?(e.enter("atxHeadingSequence"),sequenceFurther(t)):null===t||markdownLineEnding(t)?(e.exit("atxHeading"),n(t)):markdownSpace(t)?factorySpace(e,atBreak,"whitespace")(t):(e.enter("atxHeadingText"),data(t))}function sequenceFurther(n){return 35===n?(e.consume(n),sequenceFurther):(e.exit("atxHeadingSequence"),atBreak(n))}function data(n){return null===n||35===n||markdownLineEndingOrSpace(n)?(e.exit("atxHeadingText"),atBreak(n)):(e.consume(n),data)}},resolve:function resolveHeadingAtx(e,n){let t,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&&(t={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"},splice(e,i,o-i+1,[["enter",t,n],["enter",r,n],["exit",r,n],["exit",t,n]]));return e}};const $={name:"setextUnderline",tokenize:function tokenizeSetextUnderline(e,n,t){const r=this;let o;return function start(n){let i,l=r.events.length;for(;l--;)if("lineEnding"!==r.events[l][1].type&&"linePrefix"!==r.events[l][1].type&&"content"!==r.events[l][1].type){i="paragraph"===r.events[l][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||i))return e.enter("setextHeadingLine"),o=n,function before(n){return e.enter("setextHeadingLineSequence"),inside(n)}(n);return t(n)};function inside(n){return n===o?(e.consume(n),inside):(e.exit("setextHeadingLineSequence"),markdownSpace(n)?factorySpace(e,after,"lineSuffix")(n):after(n))}function after(r){return null===r||markdownLineEnding(r)?(e.exit("setextHeadingLine"),n(r)):t(r)}},resolveTo:function resolveToSetextUnderline(e,n){let t,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){t=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:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",l,n]),e.splice(o+1,0,["exit",e[t][1],n]),e[t][1].end=Object.assign({},e[o][1].end)):e[t][1]=l;return e.push(["exit",l,n]),e}};const Q=["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"],Y=["pre","script","style","textarea"],K={name:"htmlFlow",tokenize:function tokenizeHtmlFlow(e,n,t){const r=this;let o,i,l,a,s;return function start(n){return function before(n){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),open}(n)};function open(a){return 33===a?(e.consume(a),declarationOpen):47===a?(e.consume(a),i=!0,tagCloseStart):63===a?(e.consume(a),o=3,r.interrupt?n:continuationDeclarationInside):y(a)?(e.consume(a),l=String.fromCharCode(a),tagName):t(a)}function declarationOpen(i){return 45===i?(e.consume(i),o=2,commentOpenInside):91===i?(e.consume(i),o=5,a=0,cdataOpenInside):y(i)?(e.consume(i),o=4,r.interrupt?n:continuationDeclarationInside):t(i)}function commentOpenInside(o){return 45===o?(e.consume(o),r.interrupt?n:continuationDeclarationInside):t(o)}function cdataOpenInside(o){const i="CDATA[";return o===i.charCodeAt(a++)?(e.consume(o),6===a?r.interrupt?n:continuation:cdataOpenInside):t(o)}function tagCloseStart(n){return y(n)?(e.consume(n),l=String.fromCharCode(n),tagName):t(n)}function tagName(a){if(null===a||47===a||62===a||markdownLineEndingOrSpace(a)){const s=47===a,c=l.toLowerCase();return s||i||!Y.includes(c)?Q.includes(l.toLowerCase())?(o=6,s?(e.consume(a),basicSelfClosing):r.interrupt?n(a):continuation(a)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(a):i?completeClosingTagAfter(a):completeAttributeNameBefore(a)):(o=1,r.interrupt?n(a):continuation(a))}return 45===a||k(a)?(e.consume(a),l+=String.fromCharCode(a),tagName):t(a)}function basicSelfClosing(o){return 62===o?(e.consume(o),r.interrupt?n:continuation):t(o)}function completeClosingTagAfter(n){return markdownSpace(n)?(e.consume(n),completeClosingTagAfter):completeEnd(n)}function completeAttributeNameBefore(n){return 47===n?(e.consume(n),completeEnd):58===n||95===n||y(n)?(e.consume(n),completeAttributeName):markdownSpace(n)?(e.consume(n),completeAttributeNameBefore):completeEnd(n)}function completeAttributeName(n){return 45===n||46===n||58===n||95===n||k(n)?(e.consume(n),completeAttributeName):completeAttributeNameAfter(n)}function completeAttributeNameAfter(n){return 61===n?(e.consume(n),completeAttributeValueBefore):markdownSpace(n)?(e.consume(n),completeAttributeNameAfter):completeAttributeNameBefore(n)}function completeAttributeValueBefore(n){return null===n||60===n||61===n||62===n||96===n?t(n):34===n||39===n?(e.consume(n),s=n,completeAttributeValueQuoted):markdownSpace(n)?(e.consume(n),completeAttributeValueBefore):completeAttributeValueUnquoted(n)}function completeAttributeValueQuoted(n){return n===s?(e.consume(n),s=null,completeAttributeValueQuotedAfter):null===n||markdownLineEnding(n)?t(n):(e.consume(n),completeAttributeValueQuoted)}function completeAttributeValueUnquoted(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||markdownLineEndingOrSpace(n)?completeAttributeNameAfter(n):(e.consume(n),completeAttributeValueUnquoted)}function completeAttributeValueQuotedAfter(e){return 47===e||62===e||markdownSpace(e)?completeAttributeNameBefore(e):t(e)}function completeEnd(n){return 62===n?(e.consume(n),completeAfter):t(n)}function completeAfter(n){return null===n||markdownLineEnding(n)?continuation(n):markdownSpace(n)?(e.consume(n),completeAfter):t(n)}function continuation(n){return 45===n&&2===o?(e.consume(n),continuationCommentInside):60===n&&1===o?(e.consume(n),continuationRawTagOpen):62===n&&4===o?(e.consume(n),continuationClose):63===n&&3===o?(e.consume(n),continuationDeclarationInside):93===n&&5===o?(e.consume(n),continuationCdataInside):!markdownLineEnding(n)||6!==o&&7!==o?null===n||markdownLineEnding(n)?(e.exit("htmlFlowData"),continuationStart(n)):(e.consume(n),continuation):(e.exit("htmlFlowData"),e.check(X,continuationAfter,continuationStart)(n))}function continuationStart(n){return e.check(Z,continuationStartNonLazy,continuationAfter)(n)}function continuationStartNonLazy(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),continuationBefore}function continuationBefore(n){return null===n||markdownLineEnding(n)?continuationStart(n):(e.enter("htmlFlowData"),continuation(n))}function continuationCommentInside(n){return 45===n?(e.consume(n),continuationDeclarationInside):continuation(n)}function continuationRawTagOpen(n){return 47===n?(e.consume(n),l="",continuationRawEndTag):continuation(n)}function continuationRawEndTag(n){if(62===n){const t=l.toLowerCase();return Y.includes(t)?(e.consume(n),continuationClose):continuation(n)}return y(n)&&l.length<8?(e.consume(n),l+=String.fromCharCode(n),continuationRawEndTag):continuation(n)}function continuationCdataInside(n){return 93===n?(e.consume(n),continuationDeclarationInside):continuation(n)}function continuationDeclarationInside(n){return 62===n?(e.consume(n),continuationClose):45===n&&2===o?(e.consume(n),continuationDeclarationInside):continuation(n)}function continuationClose(n){return null===n||markdownLineEnding(n)?(e.exit("htmlFlowData"),continuationAfter(n)):(e.consume(n),continuationClose)}function continuationAfter(t){return e.exit("htmlFlow"),n(t)}},resolveTo:function resolveToHtmlFlow(e){let n=e.length;for(;n--&&("enter"!==e[n][0]||"htmlFlow"!==e[n][1].type););n>1&&"linePrefix"===e[n-2][1].type&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2));return e},concrete:!0},X={tokenize:function tokenizeBlankLineBefore(e,n,t){return function start(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(L,n,t)}},partial:!0},Z={tokenize:function tokenizeNonLazyContinuationStart(e,n,t){const r=this;return function start(n){if(markdownLineEnding(n))return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),after;return t(n)};function after(e){return r.parser.lazy[r.now().line]?t(e):n(e)}},partial:!0};const J={tokenize:function tokenizeNonLazyContinuation(e,n,t){const r=this;return function start(n){if(null===n)return t(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),lineStart};function lineStart(e){return r.parser.lazy[r.now().line]?t(e):n(e)}},partial:!0},G={name:"codeFenced",tokenize:function tokenizeCodeFenced(e,n,t){const r=this,o={tokenize:function tokenizeCloseStart(e,n,t){let o=0;return startBefore;function startBefore(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),start}function start(n){return e.enter("codeFencedFence"),markdownSpace(n)?factorySpace(e,beforeSequenceClose,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(n):beforeSequenceClose(n)}function beforeSequenceClose(n){return n===i?(e.enter("codeFencedFenceSequence"),sequenceClose(n)):t(n)}function sequenceClose(n){return n===i?(o++,e.consume(n),sequenceClose):o>=a?(e.exit("codeFencedFenceSequence"),markdownSpace(n)?factorySpace(e,sequenceCloseAfter,"whitespace")(n):sequenceCloseAfter(n)):t(n)}function sequenceCloseAfter(r){return null===r||markdownLineEnding(r)?(e.exit("codeFencedFence"),n(r)):t(r)}},partial:!0};let i,l=0,a=0;return function start(n){return function beforeSequenceOpen(n){const t=r.events[r.events.length-1];return l=t&&"linePrefix"===t[1].type?t[2].sliceSerialize(t[1],!0).length:0,i=n,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),sequenceOpen(n)}(n)};function sequenceOpen(n){return n===i?(a++,e.consume(n),sequenceOpen):a<3?t(n):(e.exit("codeFencedFenceSequence"),markdownSpace(n)?factorySpace(e,infoBefore,"whitespace")(n):infoBefore(n))}function infoBefore(t){return null===t||markdownLineEnding(t)?(e.exit("codeFencedFence"),r.interrupt?n(t):e.check(J,atNonLazyBreak,after)(t)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),info(t))}function info(n){return null===n||markdownLineEnding(n)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),infoBefore(n)):markdownSpace(n)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),factorySpace(e,metaBefore,"whitespace")(n)):96===n&&n===i?t(n):(e.consume(n),info)}function metaBefore(n){return null===n||markdownLineEnding(n)?infoBefore(n):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),meta(n))}function meta(n){return null===n||markdownLineEnding(n)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),infoBefore(n)):96===n&&n===i?t(n):(e.consume(n),meta)}function atNonLazyBreak(n){return e.attempt(o,after,contentBefore)(n)}function contentBefore(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),contentStart}function contentStart(n){return l>0&&markdownSpace(n)?factorySpace(e,beforeContentChunk,"linePrefix",l+1)(n):beforeContentChunk(n)}function beforeContentChunk(n){return null===n||markdownLineEnding(n)?e.check(J,atNonLazyBreak,after)(n):(e.enter("codeFlowValue"),contentChunk(n))}function contentChunk(n){return null===n||markdownLineEnding(n)?(e.exit("codeFlowValue"),beforeContentChunk(n)):(e.consume(n),contentChunk)}function after(t){return e.exit("codeFenced"),n(t)}},concrete:!0};const ee=document.createElement("i");function decodeNamedCharacterReference(e){const n="&"+e+";";ee.innerHTML=n;const t=ee.textContent;return(59!==t.charCodeAt(t.length-1)||"semi"===e)&&(t!==n&&t)}const ne={name:"characterReference",tokenize:function tokenizeCharacterReference(e,n,t){const r=this;let o,i,l=0;return function start(n){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(n),e.exit("characterReferenceMarker"),open};function open(n){return 35===n?(e.enter("characterReferenceMarkerNumeric"),e.consume(n),e.exit("characterReferenceMarkerNumeric"),numeric):(e.enter("characterReferenceValue"),o=31,i=k,value(n))}function numeric(n){return 88===n||120===n?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(n),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=w,value):(e.enter("characterReferenceValue"),o=7,i=b,value(n))}function value(a){if(59===a&&l){const o=e.exit("characterReferenceValue");return i!==k||decodeNamedCharacterReference(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),n):t(a)}return i(a)&&l++1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const f=Object.assign({},e[t][1].end),d=Object.assign({},e[u][1].start);movePoint(f,-a),movePoint(d,a),i={type:a>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[t][1].end)},l={type:a>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[u][1].start),end:d},o={type:a>1?"strongText":"emphasisText",start:Object.assign({},e[t][1].end),end:Object.assign({},e[u][1].start)},r={type:a>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},l.end)},e[t][1].end=Object.assign({},i.start),e[u][1].start=Object.assign({},l.end),s=[],e[t][1].end.offset-e[t][1].start.offset&&(s=push(s,[["enter",e[t][1],n],["exit",e[t][1],n]])),s=push(s,[["enter",r,n],["enter",i,n],["exit",i,n],["enter",o,n]]),s=push(s,resolveAll(n.parser.constructs.insideSpan.null,e.slice(t+1,u),n)),s=push(s,[["exit",o,n],["enter",l,n],["exit",l,n],["exit",r,n]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,s=push(s,[["enter",e[u][1],n],["exit",e[u][1],n]])):c=0,splice(e,t-1,u-t+3,s),u=t+s.length-c-2;break}u=-1;for(;++u13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||!(65535&~t)||65534==(65535&t)||t>1114111?"�":String.fromCharCode(t)}const Ee=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function decode(e,n,t){if(n)return n;if(35===t.charCodeAt(0)){const e=t.charCodeAt(1),n=120===e||88===e;return decodeNumericCharacterReference(t.slice(n?2:1),n?16:10)}return decodeNamedCharacterReference(t)||e}const Ae={}.hasOwnProperty,fromMarkdown=function(e,n,t){return"string"!=typeof n&&(t=n,n=void 0),function compiler(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:opener(link),autolinkProtocol:onenterdata,autolinkEmail:onenterdata,atxHeading:opener(heading),blockQuote:opener(blockQuote),characterEscape:onenterdata,characterReference:onenterdata,codeFenced:opener(codeFlow),codeFencedFenceInfo:buffer,codeFencedFenceMeta:buffer,codeIndented:opener(codeFlow,buffer),codeText:opener(codeText,buffer),codeTextData:onenterdata,data:onenterdata,codeFlowValue:onenterdata,definition:opener(definition),definitionDestinationString:buffer,definitionLabelString:buffer,definitionTitleString:buffer,emphasis:opener(emphasis),hardBreakEscape:opener(hardBreak),hardBreakTrailing:opener(hardBreak),htmlFlow:opener(html,buffer),htmlFlowData:onenterdata,htmlText:opener(html,buffer),htmlTextData:onenterdata,image:opener(image),label:buffer,link:opener(link),listItem:opener(listItem),listItemValue:onenterlistitemvalue,listOrdered:opener(list,onenterlistordered),listUnordered:opener(list),paragraph:opener(paragraph),reference:onenterreference,referenceString:buffer,resourceDestinationString:buffer,resourceTitleString:buffer,setextHeading:opener(heading),strong:opener(strong),thematicBreak:opener(thematicBreak)},exit:{atxHeading:closer(),atxHeadingSequence:onexitatxheadingsequence,autolink:closer(),autolinkEmail:onexitautolinkemail,autolinkProtocol:onexitautolinkprotocol,blockQuote:closer(),characterEscapeValue:onexitdata,characterReferenceMarkerHexadecimal:onexitcharacterreferencemarker,characterReferenceMarkerNumeric:onexitcharacterreferencemarker,characterReferenceValue:onexitcharacterreferencevalue,codeFenced:closer(onexitcodefenced),codeFencedFence:onexitcodefencedfence,codeFencedFenceInfo:onexitcodefencedfenceinfo,codeFencedFenceMeta:onexitcodefencedfencemeta,codeFlowValue:onexitdata,codeIndented:closer(onexitcodeindented),codeText:closer(onexitcodetext),codeTextData:onexitdata,data:onexitdata,definition:closer(),definitionDestinationString:onexitdefinitiondestinationstring,definitionLabelString:onexitdefinitionlabelstring,definitionTitleString:onexitdefinitiontitlestring,emphasis:closer(),hardBreakEscape:closer(onexithardbreak),hardBreakTrailing:closer(onexithardbreak),htmlFlow:closer(onexithtmlflow),htmlFlowData:onexitdata,htmlText:closer(onexithtmltext),htmlTextData:onexitdata,image:closer(onexitimage),label:onexitlabel,labelText:onexitlabeltext,lineEnding:onexitlineending,link:closer(onexitlink),listItem:closer(),listOrdered:closer(),listUnordered:closer(),paragraph:closer(),referenceString:onexitreferencestring,resourceDestinationString:onexitresourcedestinationstring,resourceTitleString:onexitresourcetitlestring,resource:onexitresource,setextHeading:closer(onexitsetextheading),setextHeadingLineSequence:onexitsetextheadinglinesequence,setextHeadingText:onexitsetextheadingtext,strong:closer(),thematicBreak:closer()}};configure(n,(e||{}).mdastExtensions||[]);const t={};return compile;function compile(e){let t={type:"root",children:[]};const r={stack:[t],tokenStack:[],config:n,enter,exit,buffer,resume,setData,getData},o=[];let i=-1;for(;++i0){const e=r.tokenStack[r.tokenStack.length-1];(e[1]||defaultOnError).call(r,void 0,e[0])}for(t.position={start:lib_point(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:lib_point(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},i=-1;++i{const t=this.data("settings");return fromMarkdown(n,Object.assign({},t,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function normalizeUri(e){const n=[];let t=-1,r=0,o=0;for(;++t55295&&i<57344){const n=e.charCodeAt(t+1);i<56320&&n>56319&&n<57344?(l=String.fromCharCode(i,n),o=1):l="�"}else l=String.fromCharCode(i);l&&(n.push(e.slice(r,t),encodeURIComponent(l)),r=t+o+1,l=""),o&&(t+=o,o=0)}return n.join("")+e.slice(r)}const convert=function(e){if(null==e)return ok;if("string"==typeof e)return function typeFactory(e){return castFactory(type);function type(n){return n&&n.type===e}}(e);if("object"==typeof e)return Array.isArray(e)?function anyFactory(e){const n=[];let t=-1;for(;++t":"")+")"})}return visit;function visit(){let s,c,u,f=[];if((!n||o(e,l,a[a.length-1]||null))&&(f=function toResult(e){if(Array.isArray(e))return e;if("number"==typeof e)return[Fe,e];return[e]}(t(e,a)),f[0]===Oe))return f;if(e.children&&"skip"!==f[0])for(c=(r?e.children.length:-1)+i,u=a.concat(e);c>-1&&c-1?t.offset:null}}}const Ie={}.hasOwnProperty;function clean(e){return String(e||"").toUpperCase()}function footnoteReference(e,n){const t=String(n.identifier).toUpperCase(),r=normalizeUri(t.toLowerCase()),o=e.footnoteOrder.indexOf(t);let i;-1===o?(e.footnoteOrder.push(t),e.footnoteCounts[t]=1,i=e.footnoteOrder.length):(e.footnoteCounts[t]++,i=o+1);const l=e.footnoteCounts[t],a={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(n,a);const s={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(n,s),e.applyData(n,s)}function revert(e,n){const t=n.referenceType;let r="]";if("collapsed"===t?r+="[]":"full"===t&&(r+="["+(n.label||n.identifier)+"]"),"imageReference"===n.type)return{type:"text",value:"!["+n.alt+r};const o=e.all(n),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 listItemLoose(e){const n=e.spread;return null==n?e.children.length>1:n}function trimLines(e){const n=String(e),t=/\r?\n|\r/g;let r=t.exec(n),o=0;const i=[];for(;r;)i.push(trimLine(n.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=t.exec(n);return i.push(trimLine(n.slice(o),o>0,!1)),i.join("")}function trimLine(e,n,t){let r=0,o=e.length;if(n){let n=e.codePointAt(r);for(;9===n||32===n;)r++,n=e.codePointAt(r)}if(t){let n=e.codePointAt(o-1);for(;9===n||32===n;)o--,n=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const De={blockquote:function blockquote(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)},break:function hardBreak(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:"\n"}]},code:function code(e,n){const t=n.value?n.value+"\n":"",r=n.lang?n.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,o={};r&&(o.className=["language-"+r]);let i={type:"element",tagName:"code",properties:o,children:[{type:"text",value:t}]};return n.meta&&(i.data={meta:n.meta}),e.patch(n,i),i=e.applyData(n,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(n,i),i},delete:function strikethrough(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)},emphasis:function emphasis(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)},footnoteReference,footnote:function footnote(e,n){const t=e.footnoteById;let r=1;for(;r in t;)r++;const o=String(r);return t[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:n.children}],position:n.position},footnoteReference(e,{type:"footnoteReference",identifier:o,position:n.position})},heading:function heading(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)},html:function html(e,n){if(e.dangerous){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}return null},imageReference:function imageReference(e,n){const t=e.definition(n.identifier);if(!t)return revert(e,n);const r={src:normalizeUri(t.url||""),alt:n.alt};null!==t.title&&void 0!==t.title&&(r.title=t.title);const o={type:"element",tagName:"img",properties:r,children:[]};return e.patch(n,o),e.applyData(n,o)},image:function image_image(e,n){const t={src:normalizeUri(n.url)};null!==n.alt&&void 0!==n.alt&&(t.alt=n.alt),null!==n.title&&void 0!==n.title&&(t.title=n.title);const r={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,r),e.applyData(n,r)},inlineCode:function inlineCode(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const r={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,r),e.applyData(n,r)},linkReference:function linkReference(e,n){const t=e.definition(n.identifier);if(!t)return revert(e,n);const r={href:normalizeUri(t.url||"")};null!==t.title&&void 0!==t.title&&(r.title=t.title);const o={type:"element",tagName:"a",properties:r,children:e.all(n)};return e.patch(n,o),e.applyData(n,o)},link:function link_link(e,n){const t={href:normalizeUri(n.url)};null!==n.title&&void 0!==n.title&&(t.title=n.title);const r={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)},listItem:function listItem(e,n,t){const r=e.all(n),o=t?function listLoose(e){let n=!1;if("list"===e.type){n=e.spread||!1;const t=e.children;let r=-1;for(;!n&&++r0&&t.children.unshift({type:"text",value:" "}),t.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let a=-1;for(;++a0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},i=Le(n.children[1]),l=Pe(n.children[n.children.length-1]);i.line&&l.line&&(r.position={start:i,end:l}),o.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(n,i),e.applyData(n,i)},tableCell:function tableCell(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)},tableRow:function tableRow(e,n,t){const r=t?t.children:void 0,o=0===(r?r.indexOf(n):1)?"th":"td",i=t&&"table"===t.type?t.align:void 0,l=i?i.length:n.children.length;let a=-1;const s=[];for(;++a{const t=clean(e.identifier);t&&!Ie.call(n,t)&&(n[t]=e)}),function definition(e){const t=clean(e);return t&&Ie.call(n,t)?n[t]:null}}(e),state.footnoteById=o,state.footnoteOrder=[],state.footnoteCounts={},state.patch=patch,state.applyData=applyData,state.one=function oneBound(e,n){return state_one(state,e,n)},state.all=function allBound(e){return state_all(state,e)},state.wrap=state_wrap,state.augment=augment,visit(e,"footnoteDefinition",e=>{const n=String(e.identifier).toUpperCase();Te.call(o,n)||(o[n]=e)}),state;function augment(e,n){if(e&&"data"in e&&e.data){const t=e.data;t.hName&&("element"!==n.type&&(n={type:"element",tagName:"",properties:{},children:[]}),n.tagName=t.hName),"element"===n.type&&t.hProperties&&(n.properties={...n.properties,...t.hProperties}),"children"in n&&n.children&&t.hChildren&&(n.children=t.hChildren)}if(e){const t="type"in e?e:{position:e};(function generated(e){return!(e&&e.position&&e.position.start&&e.position.start.line&&e.position.start.column&&e.position.end&&e.position.end.line&&e.position.end.column)})(t)||(n.position={start:Le(t),end:Pe(t)})}return n}function state(e,n,t,r){return Array.isArray(t)&&(r=t,t={}),augment(e,{type:"element",tagName:n,properties:t||{},children:r||[]})}}function patch(e,n){e.position&&(n.position=function lib_position(e){return{start:Le(e),end:Pe(e)}}(e))}function applyData(e,n){let t=n;if(e&&e.data){const n=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;"string"==typeof n&&("element"===t.type?t.tagName=n:t={type:"element",tagName:n,properties:{},children:[]}),"element"===t.type&&o&&(t.properties={...t.properties,...o}),"children"in t&&t.children&&null!=r&&(t.children=r)}return t}function state_one(e,n,t){const r=n&&n.type;if(!r)throw new Error("Expected node, got `"+n+"`");return Te.call(e.handlers,r)?e.handlers[r](e,n,t):e.passThrough&&e.passThrough.includes(r)?"children"in n?{...n,children:state_all(e,n)}:n:e.unknownHandler?e.unknownHandler(e,n,t):function defaultUnknownHandler(e,n){const t=n.data||{},r=!("value"in n)||Te.call(t,"hProperties")||Te.call(t,"hChildren")?{type:"element",tagName:"div",properties:{},children:state_all(e,n)}:{type:"text",value:n.value};return e.patch(n,r),e.applyData(n,r)}(e,n)}function state_all(e,n){const t=[];if("children"in n){const r=n.children;let o=-1;for(;++o0&&t.push({type:"text",value:"\n"}),t}function toHast(e,n){const t=createState(e,n),r=t.one(e,null),o=function footer(e){const n=[];let t=-1;for(;++t1?"-"+a:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};a>1&&n.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(a)}]}),s.length>0&&s.push({type:"text",value:" "}),s.push(n)}const c=o[o.length-1];if(c&&"element"===c.type&&"p"===c.tagName){const e=c.children[c.children.length-1];e&&"text"===e.type?e.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...s)}else o.push(...s);const u={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+l},children:e.wrap(o,!0)};e.patch(r,u),n.push(u)}if(0!==n.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(n,!0)},{type:"text",value:"\n"}]}}(t);return o&&r.children.push({type:"text",value:"\n"},o),Array.isArray(r)?{type:"root",children:r}:r}const lib=function(e,n){return e&&"run"in e?function bridge(e,n){return(t,r,o)=>{e.run(toHast(t,n),r,e=>{o(e)})}}(e,n):function mutate(e){return n=>toHast(n,e)}(e||n)};var Be=t(62688);class Schema{constructor(e,n,t){this.property=e,this.normal=n,t&&(this.space=t)}}function merge(e,n){const t={},r={};let o=-1;for(;++o"xlink:"+n.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),$e=create({space:"xml",transform:(e,n)=>"xml:"+n.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function caseSensitiveTransform(e,n){return n in e?e[n]:n}function caseInsensitiveTransform(e,n){return caseSensitiveTransform(e,n.toLowerCase())}const Qe=create({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:caseInsensitiveTransform,properties:{xmlns:null,xmlnsXLink:null}}),Ye=create({transform:(e,n)=>"role"===n?n:"aria-"+n.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Me,ariaAutoComplete:null,ariaBusy:Me,ariaChecked:Me,ariaColCount:_e,ariaColIndex:_e,ariaColSpan:_e,ariaControls:je,ariaCurrent:null,ariaDescribedBy:je,ariaDetails:null,ariaDisabled:Me,ariaDropEffect:je,ariaErrorMessage:null,ariaExpanded:Me,ariaFlowTo:je,ariaGrabbed:Me,ariaHasPopup:null,ariaHidden:Me,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:je,ariaLevel:_e,ariaLive:null,ariaModal:Me,ariaMultiLine:Me,ariaMultiSelectable:Me,ariaOrientation:null,ariaOwns:je,ariaPlaceholder:null,ariaPosInSet:_e,ariaPressed:Me,ariaReadOnly:Me,ariaRelevant:null,ariaRequired:Me,ariaRoleDescription:je,ariaRowCount:_e,ariaRowIndex:_e,ariaRowSpan:_e,ariaSelected:Me,ariaSetSize:_e,ariaSort:null,ariaValueMax:_e,ariaValueMin:_e,ariaValueNow:_e,ariaValueText:null,role:null}}),Ke=create({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:caseInsensitiveTransform,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ue,acceptCharset:je,accessKey:je,action:null,allow:null,allowFullScreen:Ne,allowPaymentRequest:Ne,allowUserMedia:Ne,alt:null,as:null,async:Ne,autoCapitalize:null,autoComplete:je,autoFocus:Ne,autoPlay:Ne,blocking:je,capture:null,charSet:null,checked:Ne,cite:null,className:je,cols:_e,colSpan:null,content:null,contentEditable:Me,controls:Ne,controlsList:je,coords:_e|Ue,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ne,defer:Ne,dir:null,dirName:null,disabled:Ne,download:Re,draggable:Me,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ne,formTarget:null,headers:je,height:_e,hidden:Ne,high:_e,href:null,hrefLang:null,htmlFor:je,httpEquiv:je,id:null,imageSizes:null,imageSrcSet:null,inert:Ne,inputMode:null,integrity:null,is:null,isMap:Ne,itemId:null,itemProp:je,itemRef:je,itemScope:Ne,itemType:je,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ne,low:_e,manifest:null,max:null,maxLength:_e,media:null,method:null,min:null,minLength:_e,multiple:Ne,muted:Ne,name:null,nonce:null,noModule:Ne,noValidate:Ne,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:Ne,optimum:_e,pattern:null,ping:je,placeholder:null,playsInline:Ne,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ne,referrerPolicy:null,rel:je,required:Ne,reversed:Ne,rows:_e,rowSpan:_e,sandbox:je,scope:null,scoped:Ne,seamless:Ne,selected:Ne,shadowRootClonable:Ne,shadowRootDelegatesFocus:Ne,shadowRootMode:null,shape:null,size:_e,sizes:null,slot:null,span:_e,spellCheck:Me,src:null,srcDoc:null,srcLang:null,srcSet:null,start:_e,step:null,style:null,tabIndex:_e,target:null,title:null,translate:null,type:null,typeMustMatch:Ne,useMap:null,value:Me,width:_e,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:je,axis:null,background:null,bgColor:null,border:_e,borderColor:null,bottomMargin:_e,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ne,declare:Ne,event:null,face:null,frame:null,frameBorder:null,hSpace:_e,leftMargin:_e,link:null,longDesc:null,lowSrc:null,marginHeight:_e,marginWidth:_e,noResize:Ne,noHref:Ne,noShade:Ne,noWrap:Ne,object:null,profile:null,prompt:null,rev:null,rightMargin:_e,rules:null,scheme:null,scrolling:Me,standby:null,summary:null,text:null,topMargin:_e,valueType:null,version:null,vAlign:null,vLink:null,vSpace:_e,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ne,disableRemotePlayback:Ne,prefix:null,property:null,results:_e,security:null,unselectable:null}}),Xe=create({space:"svg",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"},transform:caseSensitiveTransform,properties:{about:Ve,accentHeight:_e,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:_e,amplitude:_e,arabicForm:null,ascent:_e,attributeName:null,attributeType:null,azimuth:_e,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:_e,by:null,calcMode:null,capHeight:_e,className:je,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:_e,diffuseConstant:_e,direction:null,display:null,dur:null,divisor:_e,dominantBaseline:null,download:Ne,dx:null,dy:null,edgeMode:null,editable:null,elevation:_e,enableBackground:null,end:null,event:null,exponent:_e,externalResourcesRequired:null,fill:null,fillOpacity:_e,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:Ue,g2:Ue,glyphName:Ue,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:_e,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:_e,horizOriginX:_e,horizOriginY:_e,id:null,ideographic:_e,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:_e,k:_e,k1:_e,k2:_e,k3:_e,k4:_e,kernelMatrix:Ve,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:_e,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:_e,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:_e,overlineThickness:_e,paintOrder:null,panose1:null,path:null,pathLength:_e,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:je,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:_e,pointsAtY:_e,pointsAtZ:_e,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ve,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ve,rev:Ve,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ve,requiredFeatures:Ve,requiredFonts:Ve,requiredFormats:Ve,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:_e,specularExponent:_e,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:_e,strikethroughThickness:_e,string:null,stroke:null,strokeDashArray:Ve,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:_e,strokeOpacity:_e,strokeWidth:null,style:null,surfaceScale:_e,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ve,tabIndex:_e,tableValues:null,target:null,targetX:_e,targetY:_e,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ve,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:_e,underlineThickness:_e,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:_e,values:null,vAlphabetic:_e,vMathematical:_e,vectorEffect:null,vHanging:_e,vIdeographic:_e,version:null,vertAdvY:_e,vertOriginX:_e,vertOriginY:_e,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:_e,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Ze=merge([$e,We,Qe,Ye,Ke],"html"),Je=merge([$e,We,Qe,Ye,Xe],"svg");function rehypeFilter(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return n=>{visit(n,"element",(n,t,r)=>{const o=r;let i;if(e.allowedElements?i=!e.allowedElements.includes(n.tagName):e.disallowedElements&&(i=e.disallowedElements.includes(n.tagName)),!i&&e.allowElement&&"number"==typeof t&&(i=!e.allowElement(n,t,o)),i&&"number"==typeof t)return e.unwrapDisallowed&&n.children?o.children.splice(t,1,...n.children):o.children.splice(t,1),t})}}var Ge=t(84271);function whitespace(e){const n=e&&"object"==typeof e&&"text"===e.type?e.value||"":e;return"string"==typeof n&&""===n.replace(/[ \t\n\f\r]/g,"")}const en=/^data[-\w.:]+$/i,nn=/-[a-z]/g,tn=/[A-Z]/g;function kebab(e){return"-"+e.toLowerCase()}function camelcase(e){return e.charAt(1).toUpperCase()}const rn={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};const on=t(24120),ln={}.hasOwnProperty,an=new Set(["table","thead","tbody","tfoot","tr"]);function childrenToReact(e,n){const t=[];let r,o=-1;for(;++o0?l.createElement(h,c,d):l.createElement(h,c)}function getElementsBeforeCount(e,n){let t=-1,r=0;for(;++t4&&"data"===t.slice(0,4)&&en.test(n)){if("-"===n.charAt(4)){const e=n.slice(5).replace(nn,camelcase);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=n.slice(4);if(!nn.test(e)){let t=e.replace(tn,kebab);"-"!==t.charAt(0)&&(t="-"+t),n="data"+t}}o=DefinedInfo}return new o(r,n)}(r.schema,n);let i=t;null!=i&&i==i&&(Array.isArray(i)&&(i=o.commaSeparated?function comma_separated_tokens_stringify(e,n){const t=n||{};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(i):function stringify(e){return e.join(" ").trim()}(i)),"style"===o.property&&"string"==typeof i&&(i=function parseStyle(e){const n={};try{on(e,iterator)}catch{}return n;function iterator(e,t){const r="-ms-"===e.slice(0,4)?`ms-${e.slice(4)}`:e;n[r.replace(/-([a-z])/g,styleReplacer)]=t}}(i)),o.space&&o.property?e[ln.call(rn,o.property)?rn[o.property]:o.property]=i:o.attribute&&(e[o.attribute]=i))}function styleReplacer(e,n){return n.toUpperCase()}const sn={}.hasOwnProperty,cn="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",un={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function ReactMarkdown(e){for(const n in un)if(sn.call(un,n)&&sn.call(e,n)){const e=un[n];console.warn(`[react-markdown] Warning: please ${e.to?`use \`${e.to}\` instead of`:"remove"} \`${n}\` (see <${cn}#${e.id}> for more info)`),delete un[n]}const n=p().use(remarkParse).use(e.remarkPlugins||[]).use(lib,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(rehypeFilter,e),t=new VFile;"string"==typeof e.children?t.value=e.children:void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=n.runSync(n.parse(t),t);if("root"!==r.type)throw new TypeError("Expected a `root` node");let o=l.createElement(l.Fragment,{},childrenToReact({options:e,schema:Ze,listDepth:0},r));return e.className&&(o=l.createElement("div",{className:e.className},o)),o}ReactMarkdown.propTypes={children:Be.string,className:Be.string,allowElement:Be.func,allowedElements:Be.arrayOf(Be.string),disallowedElements:Be.arrayOf(Be.string),unwrapDisallowed:Be.bool,remarkPlugins:Be.arrayOf(Be.oneOfType([Be.object,Be.func,Be.arrayOf(Be.oneOfType([Be.bool,Be.string,Be.object,Be.func,Be.arrayOf(Be.any)]))])),rehypePlugins:Be.arrayOf(Be.oneOfType([Be.object,Be.func,Be.arrayOf(Be.oneOfType([Be.bool,Be.string,Be.object,Be.func,Be.arrayOf(Be.any)]))])),sourcePos:Be.bool,rawSourcePos:Be.bool,skipHtml:Be.bool,includeElementIndex:Be.bool,transformLinkUri:Be.oneOfType([Be.func,Be.bool]),linkTarget:Be.oneOfType([Be.func,Be.string]),transformImageUri:Be.func,components:Be.object}},24120:(e,n,t)=>{var r=t(40848);function StyleToObject(e,n){var t,o=null;if(!e||"string"!=typeof e)return o;for(var i,l,a=r(e),s="function"==typeof n,c=0,u=a.length;c{"use strict";var t,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function v(e){if("object"==typeof e&&null!==e){var n=e.$$typeof;switch(n){case r:switch(e=e.type){case i:case a:case l:case d:case p:return e;default:switch(e=e&&e.$$typeof){case u:case c:case f:case m:case h:case s:return e;default:return n}}case o:return n}}}t=Symbol.for("react.module.reference"),n.ContextConsumer=c,n.ContextProvider=s,n.Element=r,n.ForwardRef=f,n.Fragment=i,n.Lazy=m,n.Memo=h,n.Portal=o,n.Profiler=a,n.StrictMode=l,n.Suspense=d,n.SuspenseList=p,n.isAsyncMode=function(){return!1},n.isConcurrentMode=function(){return!1},n.isContextConsumer=function(e){return v(e)===c},n.isContextProvider=function(e){return v(e)===s},n.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},n.isForwardRef=function(e){return v(e)===f},n.isFragment=function(e){return v(e)===i},n.isLazy=function(e){return v(e)===m},n.isMemo=function(e){return v(e)===h},n.isPortal=function(e){return v(e)===o},n.isProfiler=function(e){return v(e)===a},n.isStrictMode=function(e){return v(e)===l},n.isSuspense=function(e){return v(e)===d},n.isSuspenseList=function(e){return v(e)===p},n.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===a||e===l||e===d||e===p||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===s||e.$$typeof===c||e.$$typeof===f||e.$$typeof===t||void 0!==e.getModuleId)},n.typeOf=v},40848:e=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g,c="";function trim(e){return e?e.replace(s,c):c}e.exports=function(e,s){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];s=s||{};var u=1,f=1;function updatePosition(e){var n=e.match(t);n&&(u+=n.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function position(){var e={line:u,column:f};return function(n){return n.position=new Position(e),whitespace(),n}}function Position(e){this.start=e,this.end={line:u,column:f},this.source=s.source}Position.prototype.content=e;var d=[];function error(n){var t=new Error(s.source+":"+u+":"+f+": "+n);if(t.reason=n,t.filename=s.source,t.line=u,t.column=f,t.source=e,!s.silent)throw t;d.push(t)}function match(n){var t=n.exec(e);if(t){var r=t[0];return updatePosition(r),e=e.slice(r.length),t}}function whitespace(){match(r)}function comments(e){var n;for(e=e||[];n=comment();)!1!==n&&e.push(n);return e}function comment(){var n=position();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var t=2;c!=e.charAt(t)&&("*"!=e.charAt(t)||"/"!=e.charAt(t+1));)++t;if(t+=2,c===e.charAt(t-1))return error("End of comment missing");var r=e.slice(2,t-2);return f+=2,updatePosition(r),e=e.slice(t),f+=2,n({type:"comment",comment:r})}}function declaration(){var e=position(),t=match(o);if(t){if(comment(),!match(i))return error("property missing ':'");var r=match(l),s=e({type:"declaration",property:trim(t[0].replace(n,c)),value:r?trim(r[0].replace(n,c)):c});return match(a),s}}return whitespace(),function declarations(){var e,n=[];for(comments(n);e=declaration();)!1!==e&&(n.push(e),comments(n));return n}()}},49909:e=>{"use strict";var n=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function isArray(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},l=function isPlainObject(e){if(!e||"[object Object]"!==t.call(e))return!1;var r,o=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||n.call(e,r)},a=function setProperty(e,n){r&&"__proto__"===n.name?r(e,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):e[n.name]=n.newValue},s=function getProperty(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(o)return o(e,t).value}return e[t]};e.exports=function extend(){var e,n,t,r,o,c,u=arguments[0],f=1,d=arguments.length,p=!1;for("boolean"==typeof u&&(p=u,u=arguments[1]||{},f=2),(null==u||"object"!=typeof u&&"function"!=typeof u)&&(u={});f{"use strict";e.exports=t(38299)}}]);