@topwrite/reader 1.0.35-alpha.3 → 1.0.35-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;r=b("react.element"),n=b("react.portal"),o=b("react.fragment"),i=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),c=b("react.context"),u=b("react.forward_ref"),l=b("react.suspense"),f=b("react.suspense_list"),h=b("react.memo"),p=b("react.lazy"),d=b("react.block"),m=b("react.server.block"),g=b("react.fundamental"),y=b("react.debug_trace_mode"),v=b("react.legacy_hidden")}function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case a:case i:case l:case f:return e;default:switch(e=e&&e.$$typeof){case c:case u:case p:case h:case s:return e;default:return t}}case n:return t}}}t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===a||e===y||e===i||e===l||e===f||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===h||e.$$typeof===s||e.$$typeof===c||e.$$typeof===u||e.$$typeof===g||e.$$typeof===d||e[0]===m)},t.typeOf=E},2348:(e,t,r)=>{"use strict";e.exports=r(7007)},3440:(e,t,r)=>{"use strict";var n=r(2611),o=r(4174),i=r(6725),a=r(6287),s=r(7425),c=r(907),u=r(3085),l=r(7265),f=r(4382),h=r(469),p=r(9762),d=r(8627),m=r(9531),g=r(58),y=r(7605),v=r(480),b=r(9619),E=r(2493),w=r(6096),x=r(917),S=r(488),A=r(7504),k=r(1559),D=r(3428),C=r(2848),F=r(6156),P=r(4014),O=r(2268),T=r(9715),j=r(7327),I=r(8056),_=r(213),R=r(4206),B=r(1311),L=r(4678);function N(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var M=N(o),H=N(i),z=N(a),U=N(s),$=N(l),q=N(f),V=N(h),G=N(b),W=N(T),Q=N(j),K=N(R),Z=N(B),Y=N(L);class X{constructor(e,t,r){this.id=void 0,this.summary=void 0,this._config=void 0,this.id=e,this.summary=r,this.config=t}get config(){return this._config}set config(e){e.setKey(this.id+":config"),this._config=e}}X.style=".topwrite/style.css",X.logo="logo.png";function J(e){return"string"==typeof e&&e.startsWith("@encrypted:")}function ee(e,t){return H.default.encrypt(e,t).toString()}function te(e,t){try{return H.default.decrypt(e,t).toString(z.default)}catch{return""}}var re=Object.freeze({__proto__:null,encrypt:ee,decrypt:te});class ne{constructor(e,t,r){this.key=void 0,this.values=void 0,this.schema=void 0,this.values=e,this.schema=t,this.key=r}setKey(e){this.key=e}getValues(){return this.values}setValues(e){const t=new M.default({removeAdditional:!0,useDefaults:!0,allErrors:!0}).compile(this.schema);if(!t(e=n.cloneDeep(e)))for(const r of t.errors)e=n.omit(e,r.dataPath.substr(1).split("/"));this.values=e}getValue(e,t){return n.get(this.values,e,t)}setValue(e,t){return n.set(this.values,e,t)}toObject(){const e=new M.default({removeAdditional:!0,useDefaults:!0,allErrors:!0});e.removeKeyword("default"),e.addKeyword("default",{validate:(e,t,r,o,i,a,s)=>(n.isEqual(e,t)&&(delete i[a],n.isEmpty(i)&&function(e,t){const r=[];let o=e;for(let e=0;e<t.length-1;e++)r.push(o),o=o[t[e]];for(let e=t.length-2;e>=0;e--)n.isEmpty(r[e][t[e]])&&delete r[e][t[e]]}(s,n.toPath(o.substr(1)))),!0),modifying:!0,errors:!1}),e.addKeyword("encrypt",{validate:(e,t,r,o,i,a)=>(this.key&&e&&!J(t)&&i&&a&&n.set(i,a,"@encrypted:"+ee(t,this.key)),!0),modifying:!0,errors:!1});const t=e.compile(this.schema),r=n.cloneDeep(this.values);return t(r),r}static createFromObject(e,t,r){const o=new M.default({removeAdditional:!0,useDefaults:!0,allErrors:!0});o.addKeyword("encrypt",{validate:(e,t,o,i,a,s)=>(r&&e&&J(t)&&a&&s&&n.set(a,s,te(t.substr(11),r)),!0),modifying:!0,errors:!1});const i=o.compile(t);if(!i(e))for(const t of i.errors)e=n.omit(e,t.dataPath.substr(1).split("/"));return new this(e,t,r)}}class oe extends ne{constructor(){super(...arguments),this.pluginsConfig={},this.presetPlugins={}}setPresetPlugins(e){this.presetPlugins=e}getStructure(e){return this.getValue(["structure",e])}getPluginConfig(e,t){if(!this.pluginsConfig[e]){const r=this.presetPlugins[e]?this.presetPlugins[e]:this.getValue(["pluginsConfig",e],{});this.pluginsConfig[e]=ne.createFromObject(n.cloneDeep(r),t,this.key+":"+e)}return this.pluginsConfig[e]}setPluginConfig(e,t){const r=t.toObject();n.isEmpty(r)?n.unset(this.values,["pluginsConfig",e]):this.setValue(["pluginsConfig",e],r),delete this.pluginsConfig[e]}static createFromObject(e){return super.createFromObject(e,oe.schema)}}oe.file="book.json",oe.schema={title:"TopWrite Configuration",type:"object",properties:{root:{type:"string",title:"Path from the root folder containing the book's content"},title:{type:"string",title:"Title of the book"},author:{type:"object",title:"attr of the author",properties:{name:{type:"string"},email:{type:"string"},home:{type:"string"}}},theme:{type:"string",title:"Name of the theme",default:"default"},themeConfig:{type:"object",title:"Configuration for theme",properties:{defaultMode:{type:"string",title:"Default mode form theme",default:"light"},primaryColor:{type:"string",title:"Primary Color form theme",default:"#3c60ff"}},default:{}},plugins:{type:"array",items:{type:"string"},default:[]},pluginsConfig:{type:"object",title:"Configuration for plugins",default:{}},pdf:{type:"object",title:"PDF specific configurations",properties:{fontFamily:{type:"string",default:"Microsoft Yahei",title:"Font family for the PDF output"},margin:{type:"object",title:"Margins (unit: pt)",properties:{right:{type:"integer",title:"Right Margin",minimum:0,maximum:100,default:30},left:{type:"integer",title:"Left Margin",minimum:0,maximum:100,default:30},top:{type:"integer",title:"Top Margin",minimum:0,maximum:100,default:40},bottom:{type:"integer",title:"Bottom Margin",minimum:0,maximum:100,default:40}},default:{}},paperSize:{type:"string",enum:["a0","a1","a2","a3","a4","a5","a6","b0","b1","b2","b3","b4","b5","b6","legal","letter"],default:"a4",title:"Paper size for the PDF"},chapterMark:{type:"string",enum:["pagebreak","rule","both","none"],default:"pagebreak",title:"How to mark detected chapters"},pageBreaksBefore:{type:"string",default:"/",title:'An XPath expression. Page breaks are inserted before the specified elements. To disable use the expression: "/"'},pageNumbers:{type:"boolean",default:!0,title:"Add page numbers to the bottom of every page"}},default:{}}},required:[]};class ie{constructor(e){void 0===e&&(e=[]),this.data=void 0,this.data="string"==typeof e?e.split(".").map((e=>parseInt(e,10))):e}getRoot(){return new ie(this.data.slice(0,1))}getParent(){return new ie(this.data.slice(0,-1))}createChild(e){return new ie(this.data.concat(e))}isDescendant(e){return e.toString().startsWith(this.toString()+".")}getNext(){const e=[...this.data];return e[e.length-1]++,new ie(e)}getDepth(){return this.data.length-1}eq(e){return this.toString()===e.toString()}getLeafIndex(){return this.data[this.data.length-1]-1}toString(e){return e?this.data.slice(e.data.length).join("."):this.data.join(".")}static compare(e,t){for(let r=0;r<Math.max(e.data.length,t.data.length);r++){let n=e.data[r]||0,o=t.data[r]||0;if(n>o)return 1;if(o>n)return-1}return 0}}class ae{constructor(e){let{title:t,ref:r,path:n,children:o=[],metadata:i}=e;this.level=void 0,this.title=void 0,this.ref=void 0,this.path=void 0,this.children=void 0,this.metadata=void 0,this.hasPath=!1,this.title=t,this.ref=r,n?(this.hasPath=!0,this.path=n):this.path=s.posix.format({...s.posix.parse(this.ref),ext:".html",base:""}),this.children=o,this.level=new ie,this.metadata=i}getMetadata(e,t){return this.metadata?n.get(this.metadata,e,t):t}getLevel(){return this.level}getTitle(){return this.title}getRef(){return this.ref}getPath(){return this.path}getArticles(){return this.children}getDescendants(){const e=[];return ae.findArticle(this,(t=>(e.push(t),!1))),e}getDepth(){return this.getLevel().getDepth()}createChildLevel(){return this.level.createChild(this.children.length+1)}indexLevels(e){e?this.level=e:e=this.level;for(const[t,r]of this.children.entries())r.indexLevels(e.createChild(t+1))}toObject(){const e=this.children.map((function(e){return e.toObject()}));return{title:this.title,ref:this.ref,path:this.hasPath?this.path:void 0,metadata:this.metadata,children:n.isEmpty(e)?void 0:e}}static findArticle(e,t){return e.getArticles().reduce(((e,r)=>e||(t(r)?r:ae.findArticle(r,t))),void 0)}static createFromObject(e){var t;const r=null==(t=e.children)?void 0:t.map((e=>ae.createFromObject(e)));return new ae({...e,children:r})}}class se{constructor(e,t,r){void 0===t&&(t=[]),this.level=void 0,this.title=void 0,this.articles=void 0,this.metadata=void 0,this.level=new ie,this.title=e,this.articles=t,this.metadata=r}getMetadata(e,t){return this.metadata?n.get(this.metadata,e,t):t}getLevel(){return this.level}getTitle(){return this.title}getArticles(){return this.articles}getFirstArticle(){return ae.findArticle(this,(()=>!0))}getDescendants(){const e=[];return ae.findArticle(this,(t=>(e.push(t),!1))),e}createChildLevel(){return this.level.createChild(this.articles.length+1)}indexLevels(e){e?this.level=e:e=this.level;for(const[t,r]of this.articles.entries())r.indexLevels(e.createChild(t+1))}toObject(){const e=this.articles.map((function(e){return e.toObject()}));return{title:this.title,metadata:this.metadata,articles:n.isEmpty(e)?void 0:e}}static createFormObject(e){var t;return new se(e.title,null==(t=e.articles)?void 0:t.map((e=>ae.createFromObject(e))),e.metadata)}}const ce={tokenize:function(e,t,r){function n(t){return t===y.codes.rightParenthesis?f(t):x.factoryDestination(e,o,r,g.types.resourceDestination,g.types.resourceDestinationLiteral,g.types.resourceDestinationLiteralMarker,g.types.resourceDestinationRaw,g.types.resourceDestinationString,v.constants.linkResourceDestinationBalanceMax)(t)}function o(t){return S.markdownLineEndingOrSpace(t)?w.factoryWhitespace(e,i)(t):f(t)}function i(t){return t===y.codes.quotationMark||t===y.codes.apostrophe||t===y.codes.leftParenthesis?k.factoryTitle(e,w.factoryWhitespace(e,a),r,g.types.resourceTitle,g.types.resourceTitleMarker,g.types.resourceTitleString)(t):a(t)}function a(t){return t===y.codes.equalsTo?(e.enter("resourceSize"),e.enter("resourceSizeMarker"),e.consume(t),e.exit("resourceSizeMarker"),s):f(t)}function s(t){return t===y.codes.lowercaseX?(e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),u):t===y.codes.rightParenthesis||S.markdownLineEndingOrSpace(t)?(e.exit("resourceSize"),w.factoryWhitespace(e,f)(t)):(e.enter("resourceSizeWidth"),e.enter(g.types.chunkString,{contentType:"string"}),c(t))}function c(t){return t===y.codes.rightParenthesis||S.markdownLineEndingOrSpace(t)?(e.exit(g.types.chunkString),e.exit("resourceSizeWidth"),e.exit("resourceSize"),w.factoryWhitespace(e,f)(t)):t===y.codes.lowercaseX?(e.exit(g.types.chunkString),e.exit("resourceSizeWidth"),e.enter("resourceSizeMarker"),e.consume(t),e.exit("resourceSizeMarker"),u):(e.consume(t),c)}function u(t){return t===y.codes.rightParenthesis||S.markdownLineEndingOrSpace(t)?(e.exit("resourceSize"),w.factoryWhitespace(e,f)(t)):(e.enter("resourceSizeHeight"),e.enter(g.types.chunkString,{contentType:"string"}),l(t))}function l(t){return t===y.codes.rightParenthesis||S.markdownLineEndingOrSpace(t)?(e.exit(g.types.chunkString),e.exit("resourceSizeHeight"),e.exit("resourceSize"),w.factoryWhitespace(e,f)(t)):(e.consume(t),l)}function f(n){return n===y.codes.rightParenthesis?(e.enter(g.types.resourceMarker),e.consume(n),e.exit(g.types.resourceMarker),e.exit(g.types.resource),t):r(n)}return function(t){return e.enter(g.types.resource),e.enter(g.types.resourceMarker),e.consume(t),e.exit(g.types.resourceMarker),w.factoryWhitespace(e,n)}}},ue={tokenize:function(e,t,r){const n=this;function o(e){return n.parser.defined.includes(E.normalizeIdentifier(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}return function(t){return G.default.strictEqual(t,y.codes.leftSquareBracket,"expected left bracket"),A.factoryLabel.call(n,e,o,r,g.types.reference,g.types.referenceMarker,g.types.referenceString)(t)}}},le={tokenize:function(e,t,r){function n(n){return 93===n?(e.enter(g.types.referenceMarker),e.consume(n),e.exit(g.types.referenceMarker),e.exit(g.types.reference),t):r(n)}return function(t){return e.enter(g.types.reference),e.enter(g.types.referenceMarker),e.consume(t),e.exit(g.types.referenceMarker),n}}};var fe={name:"labelEnd",tokenize:function(e,t,r){const n=this;let o,i,a=n.events.length;for(;a--;)if((n.events[a][1].type===g.types.labelImage||n.events[a][1].type===g.types.labelLink)&&!n.events[a][1]._balanced){o=n.events[a][1];break}function s(e){return o._balanced=!0,r(e)}function c(r){return r===y.codes.leftParenthesis?e.attempt(ce,t,i?t:s)(r):r===y.codes.leftSquareBracket?e.attempt(ue,t,i?e.attempt(le,t,s):s)(r):i?t(r):s(r)}return function(t){return G.default(t===y.codes.rightSquareBracket,"expected `]`"),o?o._inactive?s(t):(i=n.parser.defined.indexOf(E.normalizeIdentifier(n.sliceSerialize({start:o.end,end:n.now()})))>-1,e.enter(g.types.labelEnd),e.enter(g.types.labelMarker),e.consume(t),e.exit(g.types.labelMarker),e.exit(g.types.labelEnd),c):r(t)}},resolveTo:m.labelEnd.resolveTo,resolveAll:m.labelEnd.resolveAll};const he=(e,t,r,n)=>{const o=d.image(e,t,r,n);return e.width||e.height?o.replace(/\)$/," ="+(e.width||"")+(e.height?"x"+e.height:"")+")"):o};he.peek=d.image.peek;const pe=e=>{let t;switch(e){case"right":t="--: ";break;case"center":t=":-: ";break;default:t=""}return t},de={name:"blockQuote",tokenize:function(e,t,r){const n=this;return function(t){if(t===y.codes.greaterThan){const r=n.containerState;return G.default(r,"expected `containerState` to be defined in container"),r.open||(e.enter(g.types.blockQuote,{_container:!0}),r.open=!0),e.enter(g.types.blockQuotePrefix),e.enter(g.types.blockQuoteMarker),e.consume(t),e.exit(g.types.blockQuoteMarker),P.factorySpace(e,o,g.types.whitespace)}return r(t)};function o(t){return t===y.codes.leftSquareBracket?(e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),i):s(t)}function i(t){return t===y.codes.rightSquareBracket||S.markdownLineEndingOrSpace(t)?(e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),s):(e.enter("blockQuoteType"),e.enter(g.types.chunkString,{contentType:"string"}),a(t))}function a(t){return t===y.codes.rightSquareBracket||S.markdownLineEndingOrSpace(t)?(e.exit(g.types.chunkString),e.exit("blockQuoteType"),e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),s):(e.consume(t),a)}function s(r){return S.markdownSpace(r)?(e.enter(g.types.blockQuotePrefixWhitespace),e.consume(r),e.exit(g.types.blockQuotePrefixWhitespace),e.exit(g.types.blockQuotePrefix),t):(e.exit(g.types.blockQuotePrefix),t(r))}},continuation:{tokenize:function(e,t,r){return P.factorySpace(e,e.attempt(de,t,r),g.types.linePrefix,this.parser.constructs.disable.null.includes("codeIndented")?void 0:v.constants.tabSize)}},exit:m.blockQuote.exit},me=function(e,t){void 0===t&&(t="text");let r="";return D.visit(e,t,(function(e){r+=e.value})),r},ge=/^\[toc(?:=(\d)(?:,(\d))?)?]$/im,ye=u.unified().use($.default).use((function(){const e=this.data();e.micromarkExtensions=[],e.fromMarkdownExtensions=[],e.toMarkdownExtensions=[],e.toHastExtensions=[]})).use(Q.default).use(W.default,["yaml"]).use(q.default).use(V.default).use(I.remarkHeadingId).use((function(){return this.data().toHastExtensions.push({xBlock:(e,t)=>e({},"x-block",{name:t.name,value:t.value,parameter:t.parameter}),xInline:(e,t)=>e({},"x-inline",{name:t.name,value:t.value})}),function(e){D.visit(e,((e,t,r)=>{if(null!==t&&null!==r)if((e=>"code"===e.type)(e)&&e.lang){const n=/\[([\w-_]+)(:([\w-_]+))?]/g.exec(e.lang);if(n){const o={type:"xBlock",name:n[1],parameter:n[3]||"",value:e.value,position:e.position};r.children.splice(t,1,o)}}else if((e=>"inlineCode"===e.type)(e)){const n=/^([^\s]+)\s(.*?)\s\1$/.exec(e.value);if(n){const o={type:"xInline",name:n[1],value:n[2],position:e.position};r.children.splice(t,1,o)}}}))}})).use((function(){const e=this.data();e.micromarkExtensions.push({text:{[y.codes.rightSquareBracket]:fe}}),e.fromMarkdownExtensions.push({enter:{resourceSizeWidth:function(){this.buffer()},resourceSizeHeight:function(){this.buffer()}},exit:{resourceSizeWidth:function(){const e=this.resume();this.stack[this.stack.length-1].width=e},resourceSizeHeight:function(){const e=this.resume();this.stack[this.stack.length-1].height=e}}}),e.toMarkdownExtensions.push({handlers:{image:he}}),e.toHastExtensions.push({image:(e,t)=>{const r={src:p.encode(t.url),alt:t.alt};return null!==t.title&&void 0!==t.title&&(r.title=t.title),r.width=t.width,r.height=t.height,e(t,"img",r)}})})).use((function(){return this.data().toMarkdownExtensions.push({handlers:{paragraph:(e,t,r,n)=>{const o=C.paragraph(e,t,r,n);return pe(e.align)+o},heading:(e,t,r,n)=>F.heading(e,t,r,n).replace(/^#+\s/,"$&"+pe(e.align))}}),function(e){D.visit(e,((e,t,r)=>{if((e=>"paragraph"===e.type||"heading"===e.type)(e)){const t=c.select("text",e);if(t){const n=t.value;n.startsWith("--: ")?e.align="right":n.startsWith(":-: ")?e.align="center":n.startsWith(":-- ")&&(e.align="left"),e.align&&(t.value=n.substr(4),r&&"listItem"===r.type?r.data={...r.data,hProperties:{className:"align-"+e.align}}:e.data={...e.data,hProperties:{className:"align-"+e.align}})}}}))}})).use((function(){const e=this.data();return e.toMarkdownExtensions.push({handlers:{blockquote:(e,t,r,n)=>{const o=O.blockquote(e,t,r,n);return e.variant?o.replace(/(^|\s+)>\s/,"$1> ["+e.variant+"] "):o}}}),e.micromarkExtensions.push({document:{[y.codes.greaterThan]:de}}),e.fromMarkdownExtensions.push({enter:{blockQuoteType:function(){this.buffer()}},exit:{blockQuoteType:function(){const e=this.resume();this.stack[this.stack.length-1].variant=e}}}),function(e){D.visit(e,"blockquote",(e=>{e.variant&&(e.data={...e.data,hProperties:{className:e.variant}})}))}})).use((function(){return function(e){D.visit(e,((e,t,r)=>{if(r&&"root"===r.type&&null!==t&&me(e).match(ge))return r.children.splice(t,1),[D.SKIP,t]}))}}));function ve(e){const t=[];for(const r of e.children){const e=r.children,n=c.select("paragraph:first-child>*",r);if(!n||!n.url)continue;const o=me(n);if(!o)continue;const i=decodeURI(n.url);if(i&&i.match(/[\\:*?"<>|]/))continue;let a={title:o,ref:i};if(e.length>1){const t=e[e.length-1];_.is(t,"list")&&(a.children=ve(t))}t.push(a)}return t}const be=ye();class Ee{constructor(e,t){void 0===e&&(e=[]),void 0===t&&(t=!1),this.parts=void 0,this.json=void 0,this.parts=e,this.json=t,this.indexLevels()}hasMetadata(){let e=!1;return this.getArticle((t=>!!e||!n.isEmpty(t.metadata)&&(e=!0,!0)),(t=>(n.isEmpty(t.metadata)||(e=!0),!0))),e}isJson(){return this.json}getParts(){return this.parts}getPart(e){return this.parts[e]}getLastPart(){return this.parts[this.parts.length-1]}getArticles(){const e=[];return this.getArticle((t=>(e.push(t),!1))),e}getArticle(e,t){return this.parts.reduce(((r,n)=>r||(!t||t(n)?ae.findArticle(n,e):void 0)),void 0)}getArticlePart(e){const t=e.getLevel().getRoot();return this.getByLevel(t)}getFirstPath(){const e=this.getArticle((e=>!!e.getPath()));if(e)return e.getPath()}getByLevel(e){const t=t=>t.getLevel().eq(e);return this.parts.reduce(((e,r)=>e||(t(r)?r:ae.findArticle(r,t))),void 0)}getFirstArticle(){return this.getArticle((()=>!0))}getNextArticle(e){const t=e instanceof ae?e.getLevel():e;let r=!1;return this.getArticle((e=>!!r||(r=e.getLevel()==t,!1)))}getPrevArticle(e){const t=e instanceof ae?e.getLevel():e;let r;return this.getArticle((e=>e.getLevel()==t||(r=e,!1))),r}getParent(e){const t=(e instanceof ae?e.getLevel():e).getParent();if(t)return this.getByLevel(t)}indexLevels(){for(const[e,t]of this.parts.entries()){const r=new ie(String(e+1));t.indexLevels(r)}}isSinglePart(){return 1===this.parts.length&&!this.parts[0].title}isEmpty(){return this.isSinglePart()?0===this.parts[0].articles.length:0===this.parts.length}toObject(){return this.parts.map((function(e){return e.toObject()}))}static createFromObject(e){return new Ee(e.map((e=>se.createFormObject(e))),!0)}static createFromText(e){const t=function(e){const t=be.parse(e),r=[];let n;for(const e of t.children)if(_.is(e,"heading")&&[2,3].includes(e.depth)&&(n&&r.push(n),n={title:me(e).trim()}),_.is(e,"list")){const t=ve(e);n?n.articles=(n.articles||[]).concat(t):n={title:"",articles:t}}return n?r.push(n):r.push({title:""}),r}(e);return new Ee(t.map((e=>se.createFormObject(e))))}static create(e){return"object"==typeof e?Ee.createFromObject(e):Ee.createFromText(e)}}Ee.file={json:"SUMMARY.json",markdown:"SUMMARY.md"};class we{constructor(e){let{host:t,preset:r}=e;this.host=void 0,this.preset=void 0,this.host=t,this.preset=r}getBuyUrl(e,t){return this.host+"/api/buy?book="+e.id+"&plugin="+t.name}async bought(e,t){try{return await K.default.get(this.host+"/api/bought?book="+e.id+"&plugin="+t.name),!0}catch{return!1}}async queryPlugins(e){let{page:t=1,...r}=e;const{data:n}=await K.default.get(this.host+"/api/query",{params:{...r,page:t}});return n}async getInstalled(e){const{config:t}=e,r=["theme-"+t.getValue("theme"),...t.getValue("plugins")];this.preset&&(r.push(...Object.keys(this.preset)),t.setPresetPlugins(this.preset));const{data:n}=await K.default.get(this.host+"/api/installed",{params:{book:e.id,plugins:r.join(",")}}).catch((e=>{throw new Error("Plugins Check Failed:"+e.message)}));return n.filter((e=>!e.builtin||this.preset&&this.preset[e.name]))}}t.YB=void 0;class xe{constructor(e,t,r){this.flatColors=["#1abc9c","#2ecc71","#3498db","#9b59b6","#34495e","#16a085","#27ae60","#2980b9","#8e44ad","#2c3e50","#f1c40f","#e67e22","#e74c3c","#f39c12","#d35400","#c0392b"],this.letter=void 0,this.size=void 0,this.canvas=void 0,this.letter=e,this.size=t,this.canvas=r,this.generate()}toDataUrl(){return this.canvas.toDataURL()}generate(){const e=this.canvas.getContext("2d");if(!e)throw new Error("getContext failed");const t=this.size/10;e.beginPath(),e.arc(this.size-t,this.size-t,t,0,Math.PI/2),e.lineTo(t,this.size),e.arc(t,this.size-t,t,Math.PI/2,Math.PI),e.lineTo(0,t),e.arc(t,t,t,Math.PI,3*Math.PI/2),e.lineTo(this.size-t,0),e.arc(this.size-t,t,t,3*Math.PI/2,2*Math.PI),e.lineTo(this.size,this.size-t),e.closePath();const r=this.letter[0].toUpperCase();e.fillStyle=this.flatColors[r.charCodeAt(0)%this.flatColors.length],e.fill(),e.restore(),e.font=Math.round(this.size/2)+"px Roboto",e.textAlign="center",e.fillStyle="#FFFFFF",e.fillText(this.letter[0].toUpperCase(),this.size/2,this.size/1.5)}static create(e,t,r){return r||(r=function(e){const t=window.document.createElement("canvas");return t.width=e,t.height=e,t}(t)),new xe(e,t,r)}}const Se=/^(?:\w+:)?\/\/(\S+)$/,Ae=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,ke=/^[^\s\.]+\.\S{2,}$/;Z.default.attach(),K.default.defaults.maxContentLength=1/0,K.default.defaults.maxBodyLength=1/0,Object.defineProperty(t,"WY",{enumerable:!0,get:function(){return K.default}}),t.l_=ne,t.fy=X,t.De=oe,t.$B=class{constructor(e){let{path:t,content:r,meta:n={}}=e;this.path=void 0,this.content=void 0,this.meta=void 0,this.path=t,this.content=r,this.meta=n}getMeta(e,t){return n.get(this.meta,e,t)}relative(e){const t="/"===e.slice(-1);return(e=U.default.posix.relative(U.default.posix.dirname(this.path),e)||".")+(t?"/":"")}resolve(e){return U.default.posix.join(U.default.posix.dirname(this.path),e)}},t.$q=xe,t.aC=ie,t.ER=Ee,t.oI=ae,t.Lj=se,t.rK=re,t.NC=function(e){return t.YB=new we(e)},t.oe=J,t.CB=function(e){const t=e.match(Se);if(!t)return!1;const r=t[1];return!!r&&(Ae.test(r)||ke.test(r))},t.JH=ye,t.FB=function(e){return Y.default(e).toString()}},4174:(e,t,r)=>{"use strict";var n=r(1251),o=r(29),i=r(4390),a=r(8969),s=r(6440),c=r(8506),u=r(1077),l=r(3244),f=r(5117);e.exports=y,y.prototype.validate=function(e,t){var r;if("string"==typeof e){if(!(r=this.getSchema(e)))throw new Error('no schema with key or ref "'+e+'"')}else{var n=this._addSchema(e);r=n.validate||this._compile(n)}var o=r(t);!0!==r.$async&&(this.errors=r.errors);return o},y.prototype.compile=function(e,t){var r=this._addSchema(e,void 0,t);return r.validate||this._compile(r)},y.prototype.addSchema=function(e,t,r,n){if(Array.isArray(e)){for(var i=0;i<e.length;i++)this.addSchema(e[i],void 0,r,n);return this}var a=this._getId(e);if(void 0!==a&&"string"!=typeof a)throw new Error("schema id must be string");return S(this,t=o.normalizeId(t||a)),this._schemas[t]=this._addSchema(e,r,n,!0),this},y.prototype.addMetaSchema=function(e,t,r){return this.addSchema(e,t,r,!0),this},y.prototype.validateSchema=function(e,t){var r=e.$schema;if(void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(!(r=r||this._opts.defaultMeta||function(e){var t=e._opts.meta;return e._opts.defaultMeta="object"==typeof t?e._getId(t)||t:e.getSchema(d)?d:void 0,e._opts.defaultMeta}(this)))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var n=this.validate(r,e);if(!n&&t){var o="schema is invalid: "+this.errorsText();if("log"!=this._opts.validateSchema)throw new Error(o);this.logger.error(o)}return n},y.prototype.getSchema=function(e){var t=v(this,e);switch(typeof t){case"object":return t.validate||this._compile(t);case"string":return this.getSchema(t);case"undefined":return function(e,t){var r=o.schema.call(e,{schema:{}},t);if(r){var i=r.schema,s=r.root,c=r.baseId,u=n.call(e,i,s,void 0,c);return e._fragments[t]=new a({ref:t,fragment:!0,schema:i,root:s,baseId:c,validate:u}),u}}(this,e)}},y.prototype.removeSchema=function(e){if(e instanceof RegExp)return b(this,this._schemas,e),b(this,this._refs,e),this;switch(typeof e){case"undefined":return b(this,this._schemas),b(this,this._refs),this._cache.clear(),this;case"string":var t=v(this,e);return t&&this._cache.del(t.cacheKey),delete this._schemas[e],delete this._refs[e],this;case"object":var r=this._opts.serialize,n=r?r(e):e;this._cache.del(n);var i=this._getId(e);i&&(i=o.normalizeId(i),delete this._schemas[i],delete this._refs[i])}return this},y.prototype.addFormat=function(e,t){"string"==typeof t&&(t=new RegExp(t));return this._formats[e]=t,this},y.prototype.errorsText=function(e,t){if(!(e=e||this.errors))return"No errors";for(var r=void 0===(t=t||{}).separator?", ":t.separator,n=void 0===t.dataVar?"data":t.dataVar,o="",i=0;i<e.length;i++){var a=e[i];a&&(o+=n+a.dataPath+" "+a.message+r)}return o.slice(0,-r.length)},y.prototype._addSchema=function(e,t,r,n){if("object"!=typeof e&&"boolean"!=typeof e)throw new Error("schema should be object or boolean");var i=this._opts.serialize,s=i?i(e):e,c=this._cache.get(s);if(c)return c;n=n||!1!==this._opts.addUsedSchema;var u=o.normalizeId(this._getId(e));u&&n&&S(this,u);var l,f=!1!==this._opts.validateSchema&&!t;f&&!(l=u&&u==o.normalizeId(e.$schema))&&this.validateSchema(e,!0);var h=o.ids.call(this,e),p=new a({id:u,schema:e,localRefs:h,cacheKey:s,meta:r});"#"!=u[0]&&n&&(this._refs[u]=p);this._cache.put(s,p),f&&l&&this.validateSchema(e,!0);return p},y.prototype._compile=function(e,t){if(e.compiling)return e.validate=i,i.schema=e.schema,i.errors=null,i.root=t||i,!0===e.schema.$async&&(i.$async=!0),i;var r,o;e.compiling=!0,e.meta&&(r=this._opts,this._opts=this._metaOpts);try{o=n.call(this,e.schema,t,e.localRefs)}catch(t){throw delete e.validate,t}finally{e.compiling=!1,e.meta&&(this._opts=r)}return e.validate=o,e.refs=o.refs,e.refVal=o.refVal,e.root=o.root,o;function i(){var t=e.validate,r=t.apply(this,arguments);return i.errors=t.errors,r}},y.prototype.compileAsync=r(1101);var h=r(7587);y.prototype.addKeyword=h.add,y.prototype.getKeyword=h.get,y.prototype.removeKeyword=h.remove,y.prototype.validateKeyword=h.validate;var p=r(24);y.ValidationError=p.Validation,y.MissingRefError=p.MissingRef,y.$dataMetaSchema=l;var d="http://json-schema.org/draft-07/schema",m=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],g=["/properties"];function y(e){if(!(this instanceof y))return new y(e);e=this._opts=f.copy(e)||{},function(e){var t=e._opts.logger;if(!1===t)e.logger={log:A,warn:A,error:A};else{if(void 0===t&&(t=console),!("object"==typeof t&&t.log&&t.warn&&t.error))throw new Error("logger must implement log, warn and error methods");e.logger=t}}(this),this._schemas={},this._refs={},this._fragments={},this._formats=c(e.format),this._cache=e.cache||new i,this._loadingSchemas={},this._compilations=[],this.RULES=u(),this._getId=function(e){switch(e.schemaId){case"auto":return x;case"id":return E;default:return w}}(e),e.loopRequired=e.loopRequired||1/0,"property"==e.errorDataPath&&(e._errorDataPathProperty=!0),void 0===e.serialize&&(e.serialize=s),this._metaOpts=function(e){for(var t=f.copy(e._opts),r=0;r<m.length;r++)delete t[m[r]];return t}(this),e.formats&&function(e){for(var t in e._opts.formats){var r=e._opts.formats[t];e.addFormat(t,r)}}(this),e.keywords&&function(e){for(var t in e._opts.keywords){var r=e._opts.keywords[t];e.addKeyword(t,r)}}(this),function(e){var t;e._opts.$data&&(t=r(3633),e.addMetaSchema(t,t.$id,!0));if(!1===e._opts.meta)return;var n=r(4222);e._opts.$data&&(n=l(n,g));e.addMetaSchema(n,d,!0),e._refs["http://json-schema.org/schema"]=d}(this),"object"==typeof e.meta&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),function(e){var t=e._opts.schemas;if(!t)return;if(Array.isArray(t))e.addSchema(t);else for(var r in t)e.addSchema(t[r],r)}(this)}function v(e,t){return t=o.normalizeId(t),e._schemas[t]||e._refs[t]||e._fragments[t]}function b(e,t,r){for(var n in t){var o=t[n];o.meta||r&&!r.test(n)||(e._cache.del(o.cacheKey),delete t[n])}}function E(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}function w(e){return e.id&&this.logger.warn("schema id ignored",e.id),e.$id}function x(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}function S(e,t){if(e._schemas[t]||e._refs[t])throw new Error('schema with key or id "'+t+'" already exists')}function A(){}},4390:e=>{"use strict";var t=e.exports=function(){this._cache={}};t.prototype.put=function(e,t){this._cache[e]=t},t.prototype.get=function(e){return this._cache[e]},t.prototype.del=function(e){delete this._cache[e]},t.prototype.clear=function(){this._cache={}}},1101:(e,t,r)=>{"use strict";var n=r(24).MissingRef;e.exports=function e(t,r,o){var i=this;if("function"!=typeof this._opts.loadSchema)throw new Error("options.loadSchema should be a function");"function"==typeof r&&(o=r,r=void 0);var a=s(t).then((function(){var e=i._addSchema(t,void 0,r);return e.validate||c(e)}));o&&a.then((function(e){o(null,e)}),o);return a;function s(t){var r=t.$schema;return r&&!i.getSchema(r)?e.call(i,{$ref:r},!0):Promise.resolve()}function c(e){try{return i._compile(e)}catch(t){if(t instanceof n)return function(t){var n=t.missingSchema;if(u(n))throw new Error("Schema "+n+" is loaded but "+t.missingRef+" cannot be resolved");var o=i._loadingSchemas[n];o||(o=i._loadingSchemas[n]=i._opts.loadSchema(n)).then(a,a);return o.then((function(e){if(!u(n))return s(e).then((function(){u(n)||i.addSchema(e,n,void 0,r)}))})).then((function(){return c(e)}));function a(){delete i._loadingSchemas[n]}function u(e){return i._refs[e]||i._schemas[e]}}(t);throw t}}}},24:(e,t,r)=>{"use strict";var n=r(29);function o(e,t,r){this.message=r||o.message(e,t),this.missingRef=n.url(e,t),this.missingSchema=n.normalizeId(n.fullPath(this.missingRef))}function i(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}e.exports={Validation:i((function(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0})),MissingRef:i(o)},o.message=function(e,t){return"can't resolve reference "+t+" from id "+e}},8506:(e,t,r)=>{"use strict";var n=r(5117),o=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31],a=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,s=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,c=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,u=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,l=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,f=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,h=/^(?:\/(?:[^~/]|~0|~1)*)*$/,p=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,d=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function m(e){return e="full"==e?"full":"fast",n.copy(m[e])}function g(e){var t=e.match(o);if(!t)return!1;var r=+t[1],n=+t[2],a=+t[3];return n>=1&&n<=12&&a>=1&&a<=(2==n&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(r)?29:i[n])}function y(e,t){var r=e.match(a);if(!r)return!1;var n=r[1],o=r[2],i=r[3],s=r[5];return(n<=23&&o<=59&&i<=59||23==n&&59==o&&60==i)&&(!t||s)}e.exports=m,m.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":u,url:l,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:f,"json-pointer":h,"json-pointer-uri-fragment":p,"relative-json-pointer":d},m.full={date:g,time:y,"date-time":function(e){var t=e.split(v);return 2==t.length&&g(t[0])&&y(t[1],!0)},uri:function(e){return b.test(e)&&c.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":u,url:l,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:f,"json-pointer":h,"json-pointer-uri-fragment":p,"relative-json-pointer":d};var v=/t|\s/i;var b=/\/|:/;var E=/[^\\]\\Z/;function w(e){if(E.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}}},1251:(e,t,r)=>{"use strict";var n=r(29),o=r(5117),i=r(24),a=r(6440),s=r(805),c=o.ucs2length,u=r(6471),l=i.Validation;function f(e,t,r){var n=p.call(this,e,t,r);return n>=0?{index:n,compiling:!0}:(n=this._compilations.length,this._compilations[n]={schema:e,root:t,baseId:r},{index:n,compiling:!1})}function h(e,t,r){var n=p.call(this,e,t,r);n>=0&&this._compilations.splice(n,1)}function p(e,t,r){for(var n=0;n<this._compilations.length;n++){var o=this._compilations[n];if(o.schema==e&&o.root==t&&o.baseId==r)return n}return-1}function d(e,t){return"var pattern"+e+" = new RegExp("+o.toQuotedString(t[e])+");"}function m(e){return"var default"+e+" = defaults["+e+"];"}function g(e,t){return void 0===t[e]?"":"var refVal"+e+" = refVal["+e+"];"}function y(e){return"var customRule"+e+" = customRules["+e+"];"}function v(e,t){if(!e.length)return"";for(var r="",n=0;n<e.length;n++)r+=t(n,e);return r}e.exports=function e(t,r,p,b){var E=this,w=this._opts,x=[void 0],S={},A=[],k={},D=[],C={},F=[];r=r||{schema:t,refVal:x,refs:S};var P=f.call(this,t,r,b),O=this._compilations[P.index];if(P.compiling)return O.callValidate=function e(){var t=O.validate,r=t.apply(this,arguments);return e.errors=t.errors,r};var T=this._formats,j=this.RULES;try{var I=R(t,r,p,b);O.validate=I;var _=O.callValidate;return _&&(_.schema=I.schema,_.errors=null,_.refs=I.refs,_.refVal=I.refVal,_.root=I.root,_.$async=I.$async,w.sourceCode&&(_.source=I.source)),I}finally{h.call(this,t,r,b)}function R(t,a,f,h){var p=!a||a&&a.schema==t;if(a.schema!=r.schema)return e.call(E,t,a,f,h);var b,k=!0===t.$async,C=s({isTop:!0,schema:t,isRoot:p,baseId:h,root:a,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:i.MissingRef,RULES:j,validate:s,util:o,resolve:n,resolveRef:B,usePattern:M,useDefault:H,useCustomRule:z,opts:w,formats:T,logger:E.logger,self:E});C=v(x,g)+v(A,d)+v(D,m)+v(F,y)+C,w.processCode&&(C=w.processCode(C,t));try{b=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",C)(E,j,T,r,x,D,F,u,c,l),x[0]=b}catch(e){throw E.logger.error("Error compiling schema, function code:",C),e}return b.schema=t,b.errors=null,b.refs=S,b.refVal=x,b.root=p?b:a,k&&(b.$async=!0),!0===w.sourceCode&&(b.source={code:C,patterns:A,defaults:D}),b}function B(t,o,i){o=n.url(t,o);var a,s,c=S[o];if(void 0!==c)return N(a=x[c],s="refVal["+c+"]");if(!i&&r.refs){var u=r.refs[o];if(void 0!==u)return N(a=r.refVal[u],s=L(o,a))}s=L(o);var l=n.call(E,R,r,o);if(void 0===l){var f=p&&p[o];f&&(l=n.inlineRef(f,w.inlineRefs)?f:e.call(E,f,r,p,t))}if(void 0!==l)return function(e,t){var r=S[e];x[r]=t}(o,l),N(l,s);!function(e){delete S[e]}(o)}function L(e,t){var r=x.length;return x[r]=t,S[e]=r,"refVal"+r}function N(e,t){return"object"==typeof e||"boolean"==typeof e?{code:t,schema:e,inline:!0}:{code:t,$async:e&&!!e.$async}}function M(e){var t=k[e];return void 0===t&&(t=k[e]=A.length,A[t]=e),"pattern"+t}function H(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return o.toQuotedString(e);case"object":if(null===e)return"null";var t=a(e),r=C[t];return void 0===r&&(r=C[t]=D.length,D[r]=e),"default"+r}}function z(e,t,r,n){if(!1!==E._opts.validateSchema){var o=e.definition.dependencies;if(o&&!o.every((function(e){return Object.prototype.hasOwnProperty.call(r,e)})))throw new Error("parent schema must have all required keywords: "+o.join(","));var i=e.definition.validateSchema;if(i)if(!i(t)){var a="keyword schema is invalid: "+E.errorsText(i.errors);if("log"!=E._opts.validateSchema)throw new Error(a);E.logger.error(a)}}var s,c=e.definition.compile,u=e.definition.inline,l=e.definition.macro;if(c)s=c.call(E,t,r,n);else if(l)s=l.call(E,t,r,n),!1!==w.validateSchema&&E.validateSchema(s,!0);else if(u)s=u.call(E,n,e.keyword,t,r);else if(!(s=e.definition.validate))return;if(void 0===s)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var f=F.length;return F[f]=s,{code:"customRule"+f,validate:s}}}},29:(e,t,r)=>{"use strict";var n=r(2371),o=r(6471),i=r(5117),a=r(8969),s=r(5127);function c(e,t,r){var n=this._refs[r];if("string"==typeof n){if(!this._refs[n])return c.call(this,e,t,n);n=this._refs[n]}if((n=n||this._schemas[r])instanceof a)return d(n.schema,this._opts.inlineRefs)?n.schema:n.validate||this._compile(n);var o,i,s,l=u.call(this,t,r);return l&&(o=l.schema,t=l.root,s=l.baseId),o instanceof a?i=o.validate||e.call(this,o.schema,t,void 0,s):void 0!==o&&(i=d(o,this._opts.inlineRefs)?o:e.call(this,o,t,void 0,s)),i}function u(e,t){var r=n.parse(t),o=v(r),i=y(this._getId(e.schema));if(0===Object.keys(e.schema).length||o!==i){var s=E(o),c=this._refs[s];if("string"==typeof c)return l.call(this,e,c,r);if(c instanceof a)c.validate||this._compile(c),e=c;else{if(!((c=this._schemas[s])instanceof a))return;if(c.validate||this._compile(c),s==E(t))return{schema:c,root:e,baseId:i};e=c}if(!e.schema)return;i=y(this._getId(e.schema))}return h.call(this,r,i,e.schema,e)}function l(e,t,r){var n=u.call(this,e,t);if(n){var o=n.schema,i=n.baseId;e=n.root;var a=this._getId(o);return a&&(i=w(i,a)),h.call(this,r,i,o,e)}}e.exports=c,c.normalizeId=E,c.fullPath=y,c.url=w,c.ids=function(e){var t=E(this._getId(e)),r={"":t},a={"":y(t,!1)},c={},u=this;return s(e,{allKeys:!0},(function(e,t,s,l,f,h,p){if(""!==t){var d=u._getId(e),m=r[l],g=a[l]+"/"+f;if(void 0!==p&&(g+="/"+("number"==typeof p?p:i.escapeFragment(p))),"string"==typeof d){d=m=E(m?n.resolve(m,d):d);var y=u._refs[d];if("string"==typeof y&&(y=u._refs[y]),y&&y.schema){if(!o(e,y.schema))throw new Error('id "'+d+'" resolves to more than one schema')}else if(d!=E(g))if("#"==d[0]){if(c[d]&&!o(e,c[d]))throw new Error('id "'+d+'" resolves to more than one schema');c[d]=e}else u._refs[d]=g}r[t]=m,a[t]=g}})),c},c.inlineRef=d,c.schema=u;var f=i.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function h(e,t,r,n){if(e.fragment=e.fragment||"","/"==e.fragment.slice(0,1)){for(var o=e.fragment.split("/"),a=1;a<o.length;a++){var s=o[a];if(s){if(void 0===(r=r[s=i.unescapeFragment(s)]))break;var c;if(!f[s]&&((c=this._getId(r))&&(t=w(t,c)),r.$ref)){var l=w(t,r.$ref),h=u.call(this,n,l);h&&(r=h.schema,n=h.root,t=h.baseId)}}}return void 0!==r&&r!==n.schema?{schema:r,root:n,baseId:t}:void 0}}var p=i.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function d(e,t){return!1!==t&&(void 0===t||!0===t?m(e):t?g(e)<=t:void 0)}function m(e){var t;if(Array.isArray(e)){for(var r=0;r<e.length;r++)if("object"==typeof(t=e[r])&&!m(t))return!1}else for(var n in e){if("$ref"==n)return!1;if("object"==typeof(t=e[n])&&!m(t))return!1}return!0}function g(e){var t,r=0;if(Array.isArray(e)){for(var n=0;n<e.length;n++)if("object"==typeof(t=e[n])&&(r+=g(t)),r==1/0)return 1/0}else for(var o in e){if("$ref"==o)return 1/0;if(p[o])r++;else if("object"==typeof(t=e[o])&&(r+=g(t)+1),r==1/0)return 1/0}return r}function y(e,t){return!1!==t&&(e=E(e)),v(n.parse(e))}function v(e){return n.serialize(e).split("#")[0]+"#"}var b=/#\/?$/;function E(e){return e?e.replace(b,""):""}function w(e,t){return t=E(t),n.resolve(e,t)}},1077:(e,t,r)=>{"use strict";var n=r(9784),o=r(5117).toHash;e.exports=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],t=["type","$comment"];return e.all=o(t),e.types=o(["number","integer","string","array","object","boolean","null"]),e.forEach((function(r){r.rules=r.rules.map((function(r){var o;if("object"==typeof r){var i=Object.keys(r)[0];o=r[i],r=i,o.forEach((function(r){t.push(r),e.all[r]=!0}))}return t.push(r),e.all[r]={keyword:r,code:n[r],implements:o}})),e.all.$comment={keyword:"$comment",code:n.$comment},r.type&&(e.types[r.type]=r)})),e.keywords=o(t.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),e.custom={},e}},8969:(e,t,r)=>{"use strict";var n=r(5117);e.exports=function(e){n.copy(e,this)}},7959:e=>{"use strict";e.exports=function(e){for(var t,r=0,n=e.length,o=0;o<n;)r++,(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<n&&56320==(64512&(t=e.charCodeAt(o)))&&o++;return r}},5117:(e,t,r)=>{"use strict";function n(e,t,r,n){var o=n?" !== ":" === ",i=n?" || ":" && ",a=n?"!":"",s=n?"":"!";switch(e){case"null":return t+o+"null";case"array":return a+"Array.isArray("+t+")";case"object":return"("+a+t+i+"typeof "+t+o+'"object"'+i+s+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+o+'"number"'+i+s+"("+t+" % 1)"+i+t+o+t+(r?i+a+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+o+'"'+e+'"'+(r?i+a+"isFinite("+t+")":"")+")";default:return"typeof "+t+o+'"'+e+'"'}}e.exports={copy:function(e,t){for(var r in t=t||{},e)t[r]=e[r];return t},checkDataType:n,checkDataTypes:function(e,t,r){if(1===e.length)return n(e[0],t,r,!0);var o="",a=i(e);for(var s in a.array&&a.object&&(o=a.null?"(":"(!"+t+" || ",o+="typeof "+t+' !== "object")',delete a.null,delete a.array,delete a.object),a.number&&delete a.integer,a)o+=(o?" && ":"")+n(s,t,r,!0);return o},coerceToTypes:function(e,t){if(Array.isArray(t)){for(var r=[],n=0;n<t.length;n++){var i=t[n];(o[i]||"array"===e&&"array"===i)&&(r[r.length]=i)}if(r.length)return r}else{if(o[t])return[t];if("array"===e&&"array"===t)return["array"]}},toHash:i,getProperty:c,escapeQuotes:u,equal:r(6471),ucs2length:r(7959),varOccurences:function(e,t){t+="[^0-9]";var r=e.match(new RegExp(t,"g"));return r?r.length:0},varReplace:function(e,t,r){return t+="([^0-9])",r=r.replace(/\$/g,"$$$$"),e.replace(new RegExp(t,"g"),r+"$1")},schemaHasRules:function(e,t){if("boolean"==typeof e)return!e;for(var r in e)if(t[r])return!0},schemaHasRulesExcept:function(e,t,r){if("boolean"==typeof e)return!e&&"not"!=r;for(var n in e)if(n!=r&&t[n])return!0},schemaUnknownRules:function(e,t){if("boolean"==typeof e)return;for(var r in e)if(!t[r])return r},toQuotedString:l,getPathExpr:function(e,t,r,n){return p(e,r?"'/' + "+t+(n?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):n?"'[' + "+t+" + ']'":"'[\\'' + "+t+" + '\\']'")},getPath:function(e,t,r){var n=l(r?"/"+d(t):c(t));return p(e,n)},getData:function(e,t,r){var n,o,i,a;if(""===e)return"rootData";if("/"==e[0]){if(!f.test(e))throw new Error("Invalid JSON-pointer: "+e);o=e,i="rootData"}else{if(!(a=e.match(h)))throw new Error("Invalid JSON-pointer: "+e);if(n=+a[1],"#"==(o=a[2])){if(n>=t)throw new Error("Cannot access property/index "+n+" levels up, current level is "+t);return r[t-n]}if(n>t)throw new Error("Cannot access data "+n+" levels up, current level is "+t);if(i="data"+(t-n||""),!o)return i}for(var s=i,u=o.split("/"),l=0;l<u.length;l++){var p=u[l];p&&(i+=c(m(p)),s+=" && "+i)}return s},unescapeFragment:function(e){return m(decodeURIComponent(e))},unescapeJsonPointer:m,escapeFragment:function(e){return encodeURIComponent(d(e))},escapeJsonPointer:d};var o=i(["string","number","integer","boolean","null"]);function i(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=!0;return t}var a=/^[a-z$_][a-z$_0-9]*$/i,s=/'|\\/g;function c(e){return"number"==typeof e?"["+e+"]":a.test(e)?"."+e:"['"+u(e)+"']"}function u(e){return e.replace(s,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function l(e){return"'"+u(e)+"'"}var f=/^\/(?:[^~]|~0|~1)*$/,h=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function p(e,t){return'""'==e?t:(e+" + "+t).replace(/([^\\])' \+ '/g,"$1")}function d(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function m(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}},3244:e=>{"use strict";var t=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];e.exports=function(e,r){for(var n=0;n<r.length;n++){e=JSON.parse(JSON.stringify(e));var o,i=r[n].split("/"),a=e;for(o=1;o<i.length;o++)a=a[i[o]];for(o=0;o<t.length;o++){var s=t[o],c=a[s];c&&(a[s]={anyOf:[c,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e}},6152:(e,t,r)=>{"use strict";var n=r(4222);e.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:n.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:n.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}},1510:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;h?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s;var p="maximum"==t,d=p?"exclusiveMaximum":"exclusiveMinimum",m=e.schema[d],g=e.opts.$data&&m&&m.$data,y=p?"<":">",v=p?">":"<",b=void 0;if(!h&&"number"!=typeof s&&void 0!==s)throw new Error(t+" must be number");if(!g&&void 0!==m&&"number"!=typeof m&&"boolean"!=typeof m)throw new Error(d+" must be number or boolean");if(g){var E=e.util.getData(m.$data,a,e.dataPathArr),w="exclusive"+i,x="exclType"+i,S="exclIsNumber"+i,A="' + "+(C="op"+i)+" + '";o+=" var schemaExcl"+i+" = "+E+"; ",o+=" var "+w+"; var "+x+" = typeof "+(E="schemaExcl"+i)+"; if ("+x+" != 'boolean' && "+x+" != 'undefined' && "+x+" != 'number') { ";var k;b=d;(k=k||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(b||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",!1!==e.opts.messages&&(o+=" , message: '"+d+" should be boolean' "),e.opts.verbose&&(o+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var D=o;o=k.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+D+"]); ":o+=" validate.errors = ["+D+"]; return false; ":o+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } else if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" "+x+" == 'number' ? ( ("+w+" = "+n+" === undefined || "+E+" "+y+"= "+n+") ? "+f+" "+v+"= "+E+" : "+f+" "+v+" "+n+" ) : ( ("+w+" = "+E+" === true) ? "+f+" "+v+"= "+n+" : "+f+" "+v+" "+n+" ) || "+f+" !== "+f+") { var op"+i+" = "+w+" ? '"+y+"' : '"+y+"='; ",void 0===s&&(b=d,u=e.errSchemaPath+"/"+d,n=E,h=g)}else{A=y;if((S="number"==typeof m)&&h){var C="'"+A+"'";o+=" if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" ( "+n+" === undefined || "+m+" "+y+"= "+n+" ? "+f+" "+v+"= "+m+" : "+f+" "+v+" "+n+" ) || "+f+" !== "+f+") { "}else{S&&void 0===s?(w=!0,b=d,u=e.errSchemaPath+"/"+d,n=m,v+="="):(S&&(n=Math[p?"min":"max"](m,s)),m===(!S||n)?(w=!0,b=d,u=e.errSchemaPath+"/"+d,v+="="):(w=!1,A+="="));C="'"+A+"'";o+=" if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" "+f+" "+v+" "+n+" || "+f+" !== "+f+") { "}}b=b||t,(k=k||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(b||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { comparison: "+C+", limit: "+n+", exclusive: "+w+" } ",!1!==e.opts.messages&&(o+=" , message: 'should be "+A+" ",o+=h?"' + "+n:n+"'"),e.opts.verbose&&(o+=" , schema: ",o+=h?"validate.schema"+c:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";D=o;return o=k.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+D+"]); ":o+=" validate.errors = ["+D+"]; return false; ":o+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } ",l&&(o+=" else { "),o}},1978:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;if(h?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s,!h&&"number"!=typeof s)throw new Error(t+" must be number");o+="if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" "+f+".length "+("maxItems"==t?">":"<")+" "+n+") { ";var p=t,d=d||[];d.push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(p||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(o+=" , message: 'should NOT have ",o+="maxItems"==t?"more":"fewer",o+=" than ",o+=h?"' + "+n+" + '":""+s,o+=" items' "),e.opts.verbose&&(o+=" , schema: ",o+=h?"validate.schema"+c:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var m=o;return o=d.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+m+"]); ":o+=" validate.errors = ["+m+"]; return false; ":o+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",l&&(o+=" else { "),o}},6179:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;if(h?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s,!h&&"number"!=typeof s)throw new Error(t+" must be number");var p="maxLength"==t?">":"<";o+="if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),!1===e.opts.unicode?o+=" "+f+".length ":o+=" ucs2length("+f+") ",o+=" "+p+" "+n+") { ";var d=t,m=m||[];m.push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(d||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(o+=" , message: 'should NOT be ",o+="maxLength"==t?"longer":"shorter",o+=" than ",o+=h?"' + "+n+" + '":""+s,o+=" characters' "),e.opts.verbose&&(o+=" , schema: ",o+=h?"validate.schema"+c:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var g=o;return o=m.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+g+"]); ":o+=" validate.errors = ["+g+"]; return false; ":o+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",l&&(o+=" else { "),o}},206:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;if(h?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s,!h&&"number"!=typeof s)throw new Error(t+" must be number");o+="if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" Object.keys("+f+").length "+("maxProperties"==t?">":"<")+" "+n+") { ";var p=t,d=d||[];d.push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(p||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(o+=" , message: 'should NOT have ",o+="maxProperties"==t?"more":"fewer",o+=" than ",o+=h?"' + "+n+" + '":""+s,o+=" properties' "),e.opts.verbose&&(o+=" , schema: ",o+=h?"validate.schema"+c:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var m=o;return o=d.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+m+"]); ":o+=" validate.errors = ["+m+"]; return false; ":o+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",l&&(o+=" else { "),o}},3137:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.schema[t],i=e.schemaPath+e.util.getProperty(t),a=e.errSchemaPath+"/"+t,s=!e.opts.allErrors,c=e.util.copy(e),u="";c.level++;var l="valid"+c.level,f=c.baseId,h=!0,p=o;if(p)for(var d,m=-1,g=p.length-1;m<g;)d=p[m+=1],(e.opts.strictKeywords?"object"==typeof d&&Object.keys(d).length>0||!1===d:e.util.schemaHasRules(d,e.RULES.all))&&(h=!1,c.schema=d,c.schemaPath=i+"["+m+"]",c.errSchemaPath=a+"/"+m,n+=" "+e.validate(c)+" ",c.baseId=f,s&&(n+=" if ("+l+") { ",u+="}"));return s&&(n+=h?" if (true) { ":" "+u.slice(0,-1)+" "),n}},3229:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h="errs__"+o,p=e.util.copy(e),d="";p.level++;var m="valid"+p.level,g=a.every((function(t){return e.opts.strictKeywords?"object"==typeof t&&Object.keys(t).length>0||!1===t:e.util.schemaHasRules(t,e.RULES.all)}));if(g){var y=p.baseId;n+=" var "+h+" = errors; var "+f+" = false; ";var v=e.compositeRule;e.compositeRule=p.compositeRule=!0;var b=a;if(b)for(var E,w=-1,x=b.length-1;w<x;)E=b[w+=1],p.schema=E,p.schemaPath=s+"["+w+"]",p.errSchemaPath=c+"/"+w,n+=" "+e.validate(p)+" ",p.baseId=y,n+=" "+f+" = "+f+" || "+m+"; if (!"+f+") { ",d+="}";e.compositeRule=p.compositeRule=v,n+=" "+d+" if (!"+f+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else u&&(n+=" if (true) { ");return n}},3159:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.schema[t],i=e.errSchemaPath+"/"+t,a=(e.opts.allErrors,e.util.toQuotedString(o));return!0===e.opts.$comment?n+=" console.log("+a+");":"function"==typeof e.opts.$comment&&(n+=" self._opts.$comment("+a+", "+e.util.toQuotedString(i)+", validate.root.schema);"),n}},2267:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h=e.opts.$data&&a&&a.$data;h&&(n+=" var schema"+o+" = "+e.util.getData(a.$data,i,e.dataPathArr)+"; "),h||(n+=" var schema"+o+" = validate.schema"+s+";"),n+="var "+f+" = equal("+l+", schema"+o+"); if (!"+f+") { ";var p=p||[];p.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { allowedValue: schema"+o+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to constant' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var d=n;return n=p.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+d+"]); ":n+=" validate.errors = ["+d+"]; return false; ":n+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",u&&(n+=" else { "),n}},9629:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h="errs__"+o,p=e.util.copy(e);p.level++;var d="valid"+p.level,m="i"+o,g=p.dataLevel=e.dataLevel+1,y="data"+g,v=e.baseId,b=e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all);if(n+="var "+h+" = errors;var "+f+";",b){var E=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.schema=a,p.schemaPath=s,p.errSchemaPath=c,n+=" var "+d+" = false; for (var "+m+" = 0; "+m+" < "+l+".length; "+m+"++) { ",p.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers,!0);var w=l+"["+m+"]";p.dataPathArr[g]=m;var x=e.validate(p);p.baseId=v,e.util.varOccurences(x,y)<2?n+=" "+e.util.varReplace(x,y,w)+" ":n+=" var "+y+" = "+w+"; "+x+" ",n+=" if ("+d+") break; } ",e.compositeRule=p.compositeRule=E,n+=" if (!"+d+") {"}else n+=" if ("+l+".length == 0) {";var S=S||[];S.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should contain a valid item' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var A=n;return n=S.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+A+"]); ":n+=" validate.errors = ["+A+"]; return false; ":n+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { ",b&&(n+=" errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } "),e.opts.allErrors&&(n+=" } "),n}},5554:e=>{"use strict";e.exports=function(e,t,r){var n,o,i=" ",a=e.level,s=e.dataLevel,c=e.schema[t],u=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,f=!e.opts.allErrors,h="data"+(s||""),p="valid"+a,d="errs__"+a,m=e.opts.$data&&c&&c.$data;m?(i+=" var schema"+a+" = "+e.util.getData(c.$data,s,e.dataPathArr)+"; ",o="schema"+a):o=c;var g,y,v,b,E,w=this,x="definition"+a,S=w.definition,A="";if(m&&S.$data){E="keywordValidate"+a;var k=S.validateSchema;i+=" var "+x+" = RULES.custom['"+t+"'].definition; var "+E+" = "+x+".validate;"}else{if(!(b=e.useCustomRule(w,c,e.schema,e)))return;o="validate.schema"+u,E=b.code,g=S.compile,y=S.inline,v=S.macro}var D=E+".errors",C="i"+a,F="ruleErr"+a,P=S.async;if(P&&!e.async)throw new Error("async keyword in sync schema");if(y||v||(i+=D+" = null;"),i+="var "+d+" = errors;var "+p+";",m&&S.$data&&(A+="}",i+=" if ("+o+" === undefined) { "+p+" = true; } else { ",k&&(A+="}",i+=" "+p+" = "+x+".validateSchema("+o+"); if ("+p+") { ")),y)S.statements?i+=" "+b.validate+" ":i+=" "+p+" = "+b.validate+"; ";else if(v){var O=e.util.copy(e);A="";O.level++;var T="valid"+O.level;O.schema=b.validate,O.schemaPath="";var j=e.compositeRule;e.compositeRule=O.compositeRule=!0;var I=e.validate(O).replace(/validate\.schema/g,E);e.compositeRule=O.compositeRule=j,i+=" "+I}else{(L=L||[]).push(i),i="",i+=" "+E+".call( ",e.opts.passContext?i+="this":i+="self",g||!1===S.schema?i+=" , "+h+" ":i+=" , "+o+" , "+h+" , validate.schema"+e.schemaPath+" ",i+=" , (dataPath || '')",'""'!=e.errorPath&&(i+=" + "+e.errorPath);var _=s?"data"+(s-1||""):"parentData",R=s?e.dataPathArr[s]:"parentDataProperty",B=i+=" , "+_+" , "+R+" , rootData ) ";i=L.pop(),!1===S.errors?(i+=" "+p+" = ",P&&(i+="await "),i+=B+"; "):i+=P?" var "+(D="customErrors"+a)+" = null; try { "+p+" = await "+B+"; } catch (e) { "+p+" = false; if (e instanceof ValidationError) "+D+" = e.errors; else throw e; } ":" "+D+" = null; "+p+" = "+B+"; "}if(S.modifying&&(i+=" if ("+_+") "+h+" = "+_+"["+R+"];"),i+=""+A,S.valid)f&&(i+=" if (true) { ");else{var L;i+=" if ( ",void 0===S.valid?(i+=" !",i+=v?""+T:""+p):i+=" "+!S.valid+" ",i+=") { ",n=w.keyword,(L=L||[]).push(i),i="",(L=L||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { keyword: '"+w.keyword+"' } ",!1!==e.opts.messages&&(i+=" , message: 'should pass \""+w.keyword+"\" keyword validation' "),e.opts.verbose&&(i+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var N=i;i=L.pop(),!e.compositeRule&&f?e.async?i+=" throw new ValidationError(["+N+"]); ":i+=" validate.errors = ["+N+"]; return false; ":i+=" var err = "+N+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var M=i;i=L.pop(),y?S.errors?"full"!=S.errors&&(i+=" for (var "+C+"="+d+"; "+C+"<errors; "+C+"++) { var "+F+" = vErrors["+C+"]; if ("+F+".dataPath === undefined) "+F+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+F+".schemaPath === undefined) { "+F+'.schemaPath = "'+l+'"; } ',e.opts.verbose&&(i+=" "+F+".schema = "+o+"; "+F+".data = "+h+"; "),i+=" } "):!1===S.errors?i+=" "+M+" ":(i+=" if ("+d+" == errors) { "+M+" } else { for (var "+C+"="+d+"; "+C+"<errors; "+C+"++) { var "+F+" = vErrors["+C+"]; if ("+F+".dataPath === undefined) "+F+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+F+".schemaPath === undefined) { "+F+'.schemaPath = "'+l+'"; } ',e.opts.verbose&&(i+=" "+F+".schema = "+o+"; "+F+".data = "+h+"; "),i+=" } } "):v?(i+=" var err = ",!1!==e.createErrors?(i+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { keyword: '"+w.keyword+"' } ",!1!==e.opts.messages&&(i+=" , message: 'should pass \""+w.keyword+"\" keyword validation' "),e.opts.verbose&&(i+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&f&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; ")):!1===S.errors?i+=" "+M+" ":(i+=" if (Array.isArray("+D+")) { if (vErrors === null) vErrors = "+D+"; else vErrors = vErrors.concat("+D+"); errors = vErrors.length; for (var "+C+"="+d+"; "+C+"<errors; "+C+"++) { var "+F+" = vErrors["+C+"]; if ("+F+".dataPath === undefined) "+F+".dataPath = (dataPath || '') + "+e.errorPath+"; "+F+'.schemaPath = "'+l+'"; ',e.opts.verbose&&(i+=" "+F+".schema = "+o+"; "+F+".data = "+h+"; "),i+=" } } else { "+M+" } "),i+=" } ",f&&(i+=" else { ")}return i}},1915:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="errs__"+o,h=e.util.copy(e),p="";h.level++;var d="valid"+h.level,m={},g={},y=e.opts.ownProperties;for(w in a)if("__proto__"!=w){var v=a[w],b=Array.isArray(v)?g:m;b[w]=v}n+="var "+f+" = errors;";var E=e.errorPath;for(var w in n+="var missing"+o+";",g)if((b=g[w]).length){if(n+=" if ( "+l+e.util.getProperty(w)+" !== undefined ",y&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(w)+"') "),u){n+=" && ( ";var x=b;if(x)for(var S=-1,A=x.length-1;S<A;){O=x[S+=1],S&&(n+=" || "),n+=" ( ( "+(_=l+(I=e.util.getProperty(O)))+" === undefined ",y&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(O)+"') "),n+=") && (missing"+o+" = "+e.util.toQuotedString(e.opts.jsonPointers?O:I)+") ) "}n+=")) { ";var k="missing"+o,D="' + "+k+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(E,k,!0):E+" + "+k);var C=C||[];C.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(w)+"', missingProperty: '"+D+"', depsCount: "+b.length+", deps: '"+e.util.escapeQuotes(1==b.length?b[0]:b.join(", "))+"' } ",!1!==e.opts.messages&&(n+=" , message: 'should have ",1==b.length?n+="property "+e.util.escapeQuotes(b[0]):n+="properties "+e.util.escapeQuotes(b.join(", ")),n+=" when property "+e.util.escapeQuotes(w)+" is present' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var F=n;n=C.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+F+"]); ":n+=" validate.errors = ["+F+"]; return false; ":n+=" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{n+=" ) { ";var P=b;if(P)for(var O,T=-1,j=P.length-1;T<j;){O=P[T+=1];var I=e.util.getProperty(O),_=(D=e.util.escapeQuotes(O),l+I);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(E,O,e.opts.jsonPointers)),n+=" if ( "+_+" === undefined ",y&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(O)+"') "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(w)+"', missingProperty: '"+D+"', depsCount: "+b.length+", deps: '"+e.util.escapeQuotes(1==b.length?b[0]:b.join(", "))+"' } ",!1!==e.opts.messages&&(n+=" , message: 'should have ",1==b.length?n+="property "+e.util.escapeQuotes(b[0]):n+="properties "+e.util.escapeQuotes(b.join(", ")),n+=" when property "+e.util.escapeQuotes(w)+" is present' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}n+=" } ",u&&(p+="}",n+=" else { ")}e.errorPath=E;var R=h.baseId;for(var w in m){v=m[w];(e.opts.strictKeywords?"object"==typeof v&&Object.keys(v).length>0||!1===v:e.util.schemaHasRules(v,e.RULES.all))&&(n+=" "+d+" = true; if ( "+l+e.util.getProperty(w)+" !== undefined ",y&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(w)+"') "),n+=") { ",h.schema=v,h.schemaPath=s+e.util.getProperty(w),h.errSchemaPath=c+"/"+e.util.escapeFragment(w),n+=" "+e.validate(h)+" ",h.baseId=R,n+=" } ",u&&(n+=" if ("+d+") { ",p+="}"))}return u&&(n+=" "+p+" if ("+f+" == errors) {"),n}},734:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h=e.opts.$data&&a&&a.$data;h&&(n+=" var schema"+o+" = "+e.util.getData(a.$data,i,e.dataPathArr)+"; ");var p="i"+o,d="schema"+o;h||(n+=" var "+d+" = validate.schema"+s+";"),n+="var "+f+";",h&&(n+=" if (schema"+o+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+o+")) "+f+" = false; else {"),n+=f+" = false;for (var "+p+"=0; "+p+"<"+d+".length; "+p+"++) if (equal("+l+", "+d+"["+p+"])) { "+f+" = true; break; }",h&&(n+=" } "),n+=" if (!"+f+") { ";var m=m||[];m.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { allowedValues: schema"+o+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var g=n;return n=m.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+g+"]); ":n+=" validate.errors = ["+g+"]; return false; ":n+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",u&&(n+=" else { "),n}},22:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||"");if(!1===e.opts.format)return u&&(n+=" if (true) { "),n;var f,h=e.opts.$data&&a&&a.$data;h?(n+=" var schema"+o+" = "+e.util.getData(a.$data,i,e.dataPathArr)+"; ",f="schema"+o):f=a;var p=e.opts.unknownFormats,d=Array.isArray(p);if(h){n+=" var "+(m="format"+o)+" = formats["+f+"]; var "+(g="isObject"+o)+" = typeof "+m+" == 'object' && !("+m+" instanceof RegExp) && "+m+".validate; var "+(y="formatType"+o)+" = "+g+" && "+m+".type || 'string'; if ("+g+") { ",e.async&&(n+=" var async"+o+" = "+m+".async; "),n+=" "+m+" = "+m+".validate; } if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'string') || "),n+=" (","ignore"!=p&&(n+=" ("+f+" && !"+m+" ",d&&(n+=" && self._opts.unknownFormats.indexOf("+f+") == -1 "),n+=") || "),n+=" ("+m+" && "+y+" == '"+r+"' && !(typeof "+m+" == 'function' ? ",e.async?n+=" (async"+o+" ? await "+m+"("+l+") : "+m+"("+l+")) ":n+=" "+m+"("+l+") ",n+=" : "+m+".test("+l+"))))) {"}else{var m;if(!(m=e.formats[a])){if("ignore"==p)return e.logger.warn('unknown format "'+a+'" ignored in schema at path "'+e.errSchemaPath+'"'),u&&(n+=" if (true) { "),n;if(d&&p.indexOf(a)>=0)return u&&(n+=" if (true) { "),n;throw new Error('unknown format "'+a+'" is used in schema at path "'+e.errSchemaPath+'"')}var g,y=(g="object"==typeof m&&!(m instanceof RegExp)&&m.validate)&&m.type||"string";if(g){var v=!0===m.async;m=m.validate}if(y!=r)return u&&(n+=" if (true) { "),n;if(v){if(!e.async)throw new Error("async format in sync schema");n+=" if (!(await "+(b="formats"+e.util.getProperty(a)+".validate")+"("+l+"))) { "}else{n+=" if (! ";var b="formats"+e.util.getProperty(a);g&&(b+=".validate"),n+="function"==typeof m?" "+b+"("+l+") ":" "+b+".test("+l+") ",n+=") { "}}var E=E||[];E.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { format: ",n+=h?""+f:""+e.util.toQuotedString(a),n+=" } ",!1!==e.opts.messages&&(n+=" , message: 'should match format \"",n+=h?"' + "+f+" + '":""+e.util.escapeQuotes(a),n+="\"' "),e.opts.verbose&&(n+=" , schema: ",n+=h?"validate.schema"+s:""+e.util.toQuotedString(a),n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var w=n;return n=E.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+w+"]); ":n+=" validate.errors = ["+w+"]; return false; ":n+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",u&&(n+=" else { "),n}},220:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h="errs__"+o,p=e.util.copy(e);p.level++;var d="valid"+p.level,m=e.schema.then,g=e.schema.else,y=void 0!==m&&(e.opts.strictKeywords?"object"==typeof m&&Object.keys(m).length>0||!1===m:e.util.schemaHasRules(m,e.RULES.all)),v=void 0!==g&&(e.opts.strictKeywords?"object"==typeof g&&Object.keys(g).length>0||!1===g:e.util.schemaHasRules(g,e.RULES.all)),b=p.baseId;if(y||v){var E;p.createErrors=!1,p.schema=a,p.schemaPath=s,p.errSchemaPath=c,n+=" var "+h+" = errors; var "+f+" = true; ";var w=e.compositeRule;e.compositeRule=p.compositeRule=!0,n+=" "+e.validate(p)+" ",p.baseId=b,p.createErrors=!0,n+=" errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",e.compositeRule=p.compositeRule=w,y?(n+=" if ("+d+") { ",p.schema=e.schema.then,p.schemaPath=e.schemaPath+".then",p.errSchemaPath=e.errSchemaPath+"/then",n+=" "+e.validate(p)+" ",p.baseId=b,n+=" "+f+" = "+d+"; ",y&&v?n+=" var "+(E="ifClause"+o)+" = 'then'; ":E="'then'",n+=" } ",v&&(n+=" else { ")):n+=" if (!"+d+") { ",v&&(p.schema=e.schema.else,p.schemaPath=e.schemaPath+".else",p.errSchemaPath=e.errSchemaPath+"/else",n+=" "+e.validate(p)+" ",p.baseId=b,n+=" "+f+" = "+d+"; ",y&&v?n+=" var "+(E="ifClause"+o)+" = 'else'; ":E="'else'",n+=" } "),n+=" if (!"+f+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { failingKeyword: "+E+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match \"' + "+E+" + '\" schema' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } ",u&&(n+=" else { ")}else u&&(n+=" if (true) { ");return n}},9784:(e,t,r)=>{"use strict";e.exports={$ref:r(1618),allOf:r(3137),anyOf:r(3229),$comment:r(3159),const:r(2267),contains:r(9629),dependencies:r(1915),enum:r(734),format:r(22),if:r(220),items:r(4787),maximum:r(1510),minimum:r(1510),maxItems:r(1978),minItems:r(1978),maxLength:r(6179),minLength:r(6179),maxProperties:r(206),minProperties:r(206),multipleOf:r(7086),not:r(4734),oneOf:r(3942),pattern:r(8741),properties:r(1221),propertyNames:r(1874),required:r(6262),uniqueItems:r(7392),validate:r(805)}},4787:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h="errs__"+o,p=e.util.copy(e),d="";p.level++;var m="valid"+p.level,g="i"+o,y=p.dataLevel=e.dataLevel+1,v="data"+y,b=e.baseId;if(n+="var "+h+" = errors;var "+f+";",Array.isArray(a)){var E=e.schema.additionalItems;if(!1===E){n+=" "+f+" = "+l+".length <= "+a.length+"; ";var w=c;c=e.errSchemaPath+"/additionalItems",n+=" if (!"+f+") { ";var x=x||[];x.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+a.length+" } ",!1!==e.opts.messages&&(n+=" , message: 'should NOT have more than "+a.length+" items' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var S=n;n=x.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+S+"]); ":n+=" validate.errors = ["+S+"]; return false; ":n+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c=w,u&&(d+="}",n+=" else { ")}var A=a;if(A)for(var k,D=-1,C=A.length-1;D<C;)if(k=A[D+=1],e.opts.strictKeywords?"object"==typeof k&&Object.keys(k).length>0||!1===k:e.util.schemaHasRules(k,e.RULES.all)){n+=" "+m+" = true; if ("+l+".length > "+D+") { ";var F=l+"["+D+"]";p.schema=k,p.schemaPath=s+"["+D+"]",p.errSchemaPath=c+"/"+D,p.errorPath=e.util.getPathExpr(e.errorPath,D,e.opts.jsonPointers,!0),p.dataPathArr[y]=D;var P=e.validate(p);p.baseId=b,e.util.varOccurences(P,v)<2?n+=" "+e.util.varReplace(P,v,F)+" ":n+=" var "+v+" = "+F+"; "+P+" ",n+=" } ",u&&(n+=" if ("+m+") { ",d+="}")}if("object"==typeof E&&(e.opts.strictKeywords?"object"==typeof E&&Object.keys(E).length>0||!1===E:e.util.schemaHasRules(E,e.RULES.all))){p.schema=E,p.schemaPath=e.schemaPath+".additionalItems",p.errSchemaPath=e.errSchemaPath+"/additionalItems",n+=" "+m+" = true; if ("+l+".length > "+a.length+") { for (var "+g+" = "+a.length+"; "+g+" < "+l+".length; "+g+"++) { ",p.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);F=l+"["+g+"]";p.dataPathArr[y]=g;P=e.validate(p);p.baseId=b,e.util.varOccurences(P,v)<2?n+=" "+e.util.varReplace(P,v,F)+" ":n+=" var "+v+" = "+F+"; "+P+" ",u&&(n+=" if (!"+m+") break; "),n+=" } } ",u&&(n+=" if ("+m+") { ",d+="}")}}else if(e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all)){p.schema=a,p.schemaPath=s,p.errSchemaPath=c,n+=" for (var "+g+" = 0; "+g+" < "+l+".length; "+g+"++) { ",p.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);F=l+"["+g+"]";p.dataPathArr[y]=g;P=e.validate(p);p.baseId=b,e.util.varOccurences(P,v)<2?n+=" "+e.util.varReplace(P,v,F)+" ":n+=" var "+v+" = "+F+"; "+P+" ",u&&(n+=" if (!"+m+") break; "),n+=" }"}return u&&(n+=" "+d+" if ("+h+" == errors) {"),n}},7086:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;if(h?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s,!h&&"number"!=typeof s)throw new Error(t+" must be number");o+="var division"+i+";if (",h&&(o+=" "+n+" !== undefined && ( typeof "+n+" != 'number' || "),o+=" (division"+i+" = "+f+" / "+n+", ",e.opts.multipleOfPrecision?o+=" Math.abs(Math.round(division"+i+") - division"+i+") > 1e-"+e.opts.multipleOfPrecision+" ":o+=" division"+i+" !== parseInt(division"+i+") ",o+=" ) ",h&&(o+=" ) "),o+=" ) { ";var p=p||[];p.push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { multipleOf: "+n+" } ",!1!==e.opts.messages&&(o+=" , message: 'should be multiple of ",o+=h?"' + "+n:n+"'"),e.opts.verbose&&(o+=" , schema: ",o+=h?"validate.schema"+c:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var d=o;return o=p.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+d+"]); ":o+=" validate.errors = ["+d+"]; return false; ":o+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",l&&(o+=" else { "),o}},4734:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="errs__"+o,h=e.util.copy(e);h.level++;var p="valid"+h.level;if(e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all)){h.schema=a,h.schemaPath=s,h.errSchemaPath=c,n+=" var "+f+" = errors; ";var d,m=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.createErrors=!1,h.opts.allErrors&&(d=h.opts.allErrors,h.opts.allErrors=!1),n+=" "+e.validate(h)+" ",h.createErrors=!0,d&&(h.opts.allErrors=d),e.compositeRule=h.compositeRule=m,n+=" if ("+p+") { ";var g=g||[];g.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var y=n;n=g.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else n+=" var err = ",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(n+=" if (false) { ");return n}},3942:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h="errs__"+o,p=e.util.copy(e),d="";p.level++;var m="valid"+p.level,g=p.baseId,y="prevValid"+o,v="passingSchemas"+o;n+="var "+h+" = errors , "+y+" = false , "+f+" = false , "+v+" = null; ";var b=e.compositeRule;e.compositeRule=p.compositeRule=!0;var E=a;if(E)for(var w,x=-1,S=E.length-1;x<S;)w=E[x+=1],(e.opts.strictKeywords?"object"==typeof w&&Object.keys(w).length>0||!1===w:e.util.schemaHasRules(w,e.RULES.all))?(p.schema=w,p.schemaPath=s+"["+x+"]",p.errSchemaPath=c+"/"+x,n+=" "+e.validate(p)+" ",p.baseId=g):n+=" var "+m+" = true; ",x&&(n+=" if ("+m+" && "+y+") { "+f+" = false; "+v+" = ["+v+", "+x+"]; } else { ",d+="}"),n+=" if ("+m+") { "+f+" = "+y+" = true; "+v+" = "+x+"; }";return e.compositeRule=p.compositeRule=b,n+=d+"if (!"+f+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { passingSchemas: "+v+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+="} else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; }",e.opts.allErrors&&(n+=" } "),n}},8741:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;h?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s,o+="if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'string') || "),o+=" !"+(h?"(new RegExp("+n+"))":e.usePattern(s))+".test("+f+") ) { ";var p=p||[];p.push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { pattern: ",o+=h?""+n:""+e.util.toQuotedString(s),o+=" } ",!1!==e.opts.messages&&(o+=" , message: 'should match pattern \"",o+=h?"' + "+n+" + '":""+e.util.escapeQuotes(s),o+="\"' "),e.opts.verbose&&(o+=" , schema: ",o+=h?"validate.schema"+c:""+e.util.toQuotedString(s),o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var d=o;return o=p.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+d+"]); ":o+=" validate.errors = ["+d+"]; return false; ":o+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",l&&(o+=" else { "),o}},1221:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="errs__"+o,h=e.util.copy(e),p="";h.level++;var d="valid"+h.level,m="key"+o,g="idx"+o,y=h.dataLevel=e.dataLevel+1,v="data"+y,b="dataProperties"+o,E=Object.keys(a||{}).filter(I),w=e.schema.patternProperties||{},x=Object.keys(w).filter(I),S=e.schema.additionalProperties,A=E.length||x.length,k=!1===S,D="object"==typeof S&&Object.keys(S).length,C=e.opts.removeAdditional,F=k||D||C,P=e.opts.ownProperties,O=e.baseId,T=e.schema.required;if(T&&(!e.opts.$data||!T.$data)&&T.length<e.opts.loopRequired)var j=e.util.toHash(T);function I(e){return"__proto__"!==e}if(n+="var "+f+" = errors;var "+d+" = true;",P&&(n+=" var "+b+" = undefined;"),F){if(n+=P?" "+b+" = "+b+" || Object.keys("+l+"); for (var "+g+"=0; "+g+"<"+b+".length; "+g+"++) { var "+m+" = "+b+"["+g+"]; ":" for (var "+m+" in "+l+") { ",A){if(n+=" var isAdditional"+o+" = !(false ",E.length)if(E.length>8)n+=" || validate.schema"+s+".hasOwnProperty("+m+") ";else{var _=E;if(_)for(var R=-1,B=_.length-1;R<B;)K=_[R+=1],n+=" || "+m+" == "+e.util.toQuotedString(K)+" "}if(x.length){var L=x;if(L)for(var N=-1,M=L.length-1;N<M;)ie=L[N+=1],n+=" || "+e.usePattern(ie)+".test("+m+") "}n+=" ); if (isAdditional"+o+") { "}if("all"==C)n+=" delete "+l+"["+m+"]; ";else{var H=e.errorPath,z="' + "+m+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers)),k)if(C)n+=" delete "+l+"["+m+"]; ";else{n+=" "+d+" = false; ";var U=c;c=e.errSchemaPath+"/additionalProperties",(re=re||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { additionalProperty: '"+z+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is an invalid additional property":n+="should NOT have additional properties",n+="' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var $=n;n=re.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+$+"]); ":n+=" validate.errors = ["+$+"]; return false; ":n+=" var err = "+$+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c=U,u&&(n+=" break; ")}else if(D)if("failing"==C){n+=" var "+f+" = errors; ";var q=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.schema=S,h.schemaPath=e.schemaPath+".additionalProperties",h.errSchemaPath=e.errSchemaPath+"/additionalProperties",h.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var V=l+"["+m+"]";h.dataPathArr[y]=m;var G=e.validate(h);h.baseId=O,e.util.varOccurences(G,v)<2?n+=" "+e.util.varReplace(G,v,V)+" ":n+=" var "+v+" = "+V+"; "+G+" ",n+=" if (!"+d+") { errors = "+f+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+l+"["+m+"]; } ",e.compositeRule=h.compositeRule=q}else{h.schema=S,h.schemaPath=e.schemaPath+".additionalProperties",h.errSchemaPath=e.errSchemaPath+"/additionalProperties",h.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);V=l+"["+m+"]";h.dataPathArr[y]=m;G=e.validate(h);h.baseId=O,e.util.varOccurences(G,v)<2?n+=" "+e.util.varReplace(G,v,V)+" ":n+=" var "+v+" = "+V+"; "+G+" ",u&&(n+=" if (!"+d+") break; ")}e.errorPath=H}A&&(n+=" } "),n+=" } ",u&&(n+=" if ("+d+") { ",p+="}")}var W=e.opts.useDefaults&&!e.compositeRule;if(E.length){var Q=E;if(Q)for(var K,Z=-1,Y=Q.length-1;Z<Y;){var X=a[K=Q[Z+=1]];if(e.opts.strictKeywords?"object"==typeof X&&Object.keys(X).length>0||!1===X:e.util.schemaHasRules(X,e.RULES.all)){var J=e.util.getProperty(K),ee=(V=l+J,W&&void 0!==X.default);h.schema=X,h.schemaPath=s+J,h.errSchemaPath=c+"/"+e.util.escapeFragment(K),h.errorPath=e.util.getPath(e.errorPath,K,e.opts.jsonPointers),h.dataPathArr[y]=e.util.toQuotedString(K);G=e.validate(h);if(h.baseId=O,e.util.varOccurences(G,v)<2){G=e.util.varReplace(G,v,V);var te=V}else{te=v;n+=" var "+v+" = "+V+"; "}if(ee)n+=" "+G+" ";else{if(j&&j[K]){n+=" if ( "+te+" === undefined ",P&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(K)+"') "),n+=") { "+d+" = false; ";H=e.errorPath,U=c;var re,ne=e.util.escapeQuotes(K);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(H,K,e.opts.jsonPointers)),c=e.errSchemaPath+"/required",(re=re||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+ne+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+ne+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";$=n;n=re.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+$+"]); ":n+=" validate.errors = ["+$+"]; return false; ":n+=" var err = "+$+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c=U,e.errorPath=H,n+=" } else { "}else u?(n+=" if ( "+te+" === undefined ",P&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(K)+"') "),n+=") { "+d+" = true; } else { "):(n+=" if ("+te+" !== undefined ",P&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(K)+"') "),n+=" ) { ");n+=" "+G+" } "}}u&&(n+=" if ("+d+") { ",p+="}")}}if(x.length){var oe=x;if(oe)for(var ie,ae=-1,se=oe.length-1;ae<se;){X=w[ie=oe[ae+=1]];if(e.opts.strictKeywords?"object"==typeof X&&Object.keys(X).length>0||!1===X:e.util.schemaHasRules(X,e.RULES.all)){h.schema=X,h.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(ie),h.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(ie),n+=P?" "+b+" = "+b+" || Object.keys("+l+"); for (var "+g+"=0; "+g+"<"+b+".length; "+g+"++) { var "+m+" = "+b+"["+g+"]; ":" for (var "+m+" in "+l+") { ",n+=" if ("+e.usePattern(ie)+".test("+m+")) { ",h.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);V=l+"["+m+"]";h.dataPathArr[y]=m;G=e.validate(h);h.baseId=O,e.util.varOccurences(G,v)<2?n+=" "+e.util.varReplace(G,v,V)+" ":n+=" var "+v+" = "+V+"; "+G+" ",u&&(n+=" if (!"+d+") break; "),n+=" } ",u&&(n+=" else "+d+" = true; "),n+=" } ",u&&(n+=" if ("+d+") { ",p+="}")}}}return u&&(n+=" "+p+" if ("+f+" == errors) {"),n}},1874:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="errs__"+o,h=e.util.copy(e);h.level++;var p="valid"+h.level;if(n+="var "+f+" = errors;",e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all)){h.schema=a,h.schemaPath=s,h.errSchemaPath=c;var d="key"+o,m="idx"+o,g="i"+o,y="' + "+d+" + '",v="data"+(h.dataLevel=e.dataLevel+1),b="dataProperties"+o,E=e.opts.ownProperties,w=e.baseId;E&&(n+=" var "+b+" = undefined; "),n+=E?" "+b+" = "+b+" || Object.keys("+l+"); for (var "+m+"=0; "+m+"<"+b+".length; "+m+"++) { var "+d+" = "+b+"["+m+"]; ":" for (var "+d+" in "+l+") { ",n+=" var startErrs"+o+" = errors; ";var x=d,S=e.compositeRule;e.compositeRule=h.compositeRule=!0;var A=e.validate(h);h.baseId=w,e.util.varOccurences(A,v)<2?n+=" "+e.util.varReplace(A,v,x)+" ":n+=" var "+v+" = "+x+"; "+A+" ",e.compositeRule=h.compositeRule=S,n+=" if (!"+p+") { for (var "+g+"=startErrs"+o+"; "+g+"<errors; "+g+"++) { vErrors["+g+"].propertyName = "+d+"; } var err = ",!1!==e.createErrors?(n+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { propertyName: '"+y+"' } ",!1!==e.opts.messages&&(n+=" , message: 'property name \\'"+y+"\\' is invalid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),u&&(n+=" break; "),n+=" } }"}return u&&(n+=" if ("+f+" == errors) {"),n}},1618:e=>{"use strict";e.exports=function(e,t,r){var n,o,i=" ",a=e.level,s=e.dataLevel,c=e.schema[t],u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(s||""),h="valid"+a;if("#"==c||"#/"==c)e.isRoot?(n=e.async,o="validate"):(n=!0===e.root.schema.$async,o="root.refVal[0]");else{var p=e.resolveRef(e.baseId,c,e.isRoot);if(void 0===p){var d=e.MissingRefError.message(e.baseId,c);if("fail"==e.opts.missingRefs){e.logger.error(d),(v=v||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { ref: '"+e.util.escapeQuotes(c)+"' } ",!1!==e.opts.messages&&(i+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(c)+"' "),e.opts.verbose&&(i+=" , schema: "+e.util.toQuotedString(c)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var m=i;i=v.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+m+"]); ":i+=" validate.errors = ["+m+"]; return false; ":i+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l&&(i+=" if (false) { ")}else{if("ignore"!=e.opts.missingRefs)throw new e.MissingRefError(e.baseId,c,d);e.logger.warn(d),l&&(i+=" if (true) { ")}}else if(p.inline){var g=e.util.copy(e);g.level++;var y="valid"+g.level;g.schema=p.schema,g.schemaPath="",g.errSchemaPath=c,i+=" "+e.validate(g).replace(/validate\.schema/g,p.code)+" ",l&&(i+=" if ("+y+") { ")}else n=!0===p.$async||e.async&&!1!==p.$async,o=p.code}if(o){var v;(v=v||[]).push(i),i="",e.opts.passContext?i+=" "+o+".call(this, ":i+=" "+o+"( ",i+=" "+f+", (dataPath || '')",'""'!=e.errorPath&&(i+=" + "+e.errorPath);var b=i+=" , "+(s?"data"+(s-1||""):"parentData")+" , "+(s?e.dataPathArr[s]:"parentDataProperty")+", rootData) ";if(i=v.pop(),n){if(!e.async)throw new Error("async schema referenced by sync schema");l&&(i+=" var "+h+"; "),i+=" try { await "+b+"; ",l&&(i+=" "+h+" = true; "),i+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",l&&(i+=" "+h+" = false; "),i+=" } ",l&&(i+=" if ("+h+") { ")}else i+=" if (!"+b+") { if (vErrors === null) vErrors = "+o+".errors; else vErrors = vErrors.concat("+o+".errors); errors = vErrors.length; } ",l&&(i+=" else { ")}return i}},6262:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h=e.opts.$data&&a&&a.$data;h&&(n+=" var schema"+o+" = "+e.util.getData(a.$data,i,e.dataPathArr)+"; ");var p="schema"+o;if(!h)if(a.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var d=[],m=a;if(m)for(var g,y=-1,v=m.length-1;y<v;){g=m[y+=1];var b=e.schema.properties[g];b&&(e.opts.strictKeywords?"object"==typeof b&&Object.keys(b).length>0||!1===b:e.util.schemaHasRules(b,e.RULES.all))||(d[d.length]=g)}}else d=a;if(h||d.length){var E=e.errorPath,w=h||d.length>=e.opts.loopRequired,x=e.opts.ownProperties;if(u)if(n+=" var missing"+o+"; ",w){h||(n+=" var "+p+" = validate.schema"+s+"; ");var S="' + "+(P="schema"+o+"["+(D="i"+o)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(E,P,e.opts.jsonPointers)),n+=" var "+f+" = true; ",h&&(n+=" if (schema"+o+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+o+")) "+f+" = false; else {"),n+=" for (var "+D+" = 0; "+D+" < "+p+".length; "+D+"++) { "+f+" = "+l+"["+p+"["+D+"]] !== undefined ",x&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", "+p+"["+D+"]) "),n+="; if (!"+f+") break; } ",h&&(n+=" } "),n+=" if (!"+f+") { ",(F=F||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var A=n;n=F.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+A+"]); ":n+=" validate.errors = ["+A+"]; return false; ":n+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else{n+=" if ( ";var k=d;if(k)for(var D=-1,C=k.length-1;D<C;){T=k[D+=1],D&&(n+=" || "),n+=" ( ( "+(R=l+(_=e.util.getProperty(T)))+" === undefined ",x&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(T)+"') "),n+=") && (missing"+o+" = "+e.util.toQuotedString(e.opts.jsonPointers?T:_)+") ) "}n+=") { ";var F;S="' + "+(P="missing"+o)+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(E,P,!0):E+" + "+P),(F=F||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";A=n;n=F.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+A+"]); ":n+=" validate.errors = ["+A+"]; return false; ":n+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else if(w){h||(n+=" var "+p+" = validate.schema"+s+"; ");var P;S="' + "+(P="schema"+o+"["+(D="i"+o)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(E,P,e.opts.jsonPointers)),h&&(n+=" if ("+p+" && !Array.isArray("+p+")) { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+p+" !== undefined) { "),n+=" for (var "+D+" = 0; "+D+" < "+p+".length; "+D+"++) { if ("+l+"["+p+"["+D+"]] === undefined ",x&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", "+p+"["+D+"]) "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",h&&(n+=" } ")}else{var O=d;if(O)for(var T,j=-1,I=O.length-1;j<I;){T=O[j+=1];var _=e.util.getProperty(T),R=(S=e.util.escapeQuotes(T),l+_);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(E,T,e.opts.jsonPointers)),n+=" if ( "+R+" === undefined ",x&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(T)+"') "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=E}else u&&(n+=" if (true) {");return n}},7392:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h="valid"+i,p=e.opts.$data&&s&&s.$data;if(p?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s,(s||p)&&!1!==e.opts.uniqueItems){p&&(o+=" var "+h+"; if ("+n+" === false || "+n+" === undefined) "+h+" = true; else if (typeof "+n+" != 'boolean') "+h+" = false; else { "),o+=" var i = "+f+".length , "+h+" = true , j; if (i > 1) { ";var d=e.schema.items&&e.schema.items.type,m=Array.isArray(d);if(!d||"object"==d||"array"==d||m&&(d.indexOf("object")>=0||d.indexOf("array")>=0))o+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+f+"[i], "+f+"[j])) { "+h+" = false; break outer; } } } ";else{o+=" var itemIndices = {}, item; for (;i--;) { var item = "+f+"[i]; ";var g="checkDataType"+(m?"s":"");o+=" if ("+e.util[g](d,"item",e.opts.strictNumbers,!0)+") continue; ",m&&(o+=" if (typeof item == 'string') item = '\"' + item; "),o+=" if (typeof itemIndices[item] == 'number') { "+h+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}o+=" } ",p&&(o+=" } "),o+=" if (!"+h+") { ";var y=y||[];y.push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { i: i, j: j } ",!1!==e.opts.messages&&(o+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(o+=" , schema: ",o+=p?"validate.schema"+c:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var v=o;o=y.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+v+"]); ":o+=" validate.errors = ["+v+"]; return false; ":o+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } ",l&&(o+=" else { ")}else l&&(o+=" if (true) { ");return o}},805:e=>{"use strict";e.exports=function(e,t,r){var n="",o=!0===e.schema.$async,i=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),a=e.self._getId(e.schema);if(e.opts.strictKeywords){var s=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(s){var c="unknown keyword: "+s;if("log"!==e.opts.strictKeywords)throw new Error(c);e.logger.warn(c)}}if(e.isTop&&(n+=" var validate = ",o&&(e.async=!0,n+="async "),n+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",a&&(e.opts.sourceCode||e.opts.processCode)&&(n+=" /*# sourceURL="+a+" */ ")),"boolean"==typeof e.schema||!i&&!e.schema.$ref){t="false schema";var u=e.level,l=e.dataLevel,f=e.schema[t],h=e.schemaPath+e.util.getProperty(t),p=e.errSchemaPath+"/"+t,d=!e.opts.allErrors,m="data"+(l||""),g="valid"+u;if(!1===e.schema){e.isTop?d=!0:n+=" var "+g+" = false; ",(Z=Z||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'boolean schema is false' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";var y=n;n=Z.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?n+=o?" return data; ":" validate.errors = null; return true; ":n+=" var "+g+" = true; ";return e.isTop&&(n+=" }; return validate; "),n}if(e.isTop){var v=e.isTop;u=e.level=0,l=e.dataLevel=0,m="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],void 0!==e.schema.default&&e.opts.useDefaults&&e.opts.strictDefaults){var b="default is ignored in the schema root";if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}n+=" var vErrors = null; ",n+=" var errors = 0; ",n+=" if (rootData === undefined) rootData = data; "}else{u=e.level,m="data"+((l=e.dataLevel)||"");if(a&&(e.baseId=e.resolve.url(e.baseId,a)),o&&!e.async)throw new Error("async schema in sync schema");n+=" var errs_"+u+" = errors;"}g="valid"+u,d=!e.opts.allErrors;var E="",w="",x=e.schema.type,S=Array.isArray(x);if(x&&e.opts.nullable&&!0===e.schema.nullable&&(S?-1==x.indexOf("null")&&(x=x.concat("null")):"null"!=x&&(x=[x,"null"],S=!0)),S&&1==x.length&&(x=x[0],S=!1),e.schema.$ref&&i){if("fail"==e.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');!0!==e.opts.extendRefs&&(i=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(n+=" "+e.RULES.all.$comment.code(e,"$comment")),x){if(e.opts.coerceTypes)var A=e.util.coerceToTypes(e.opts.coerceTypes,x);var k=e.RULES.types[x];if(A||S||!0===k||k&&!Y(k)){h=e.schemaPath+".type",p=e.errSchemaPath+"/type",h=e.schemaPath+".type",p=e.errSchemaPath+"/type";var D=S?"checkDataTypes":"checkDataType";if(n+=" if ("+e.util[D](x,m,e.opts.strictNumbers,!0)+") { ",A){var C="dataType"+u,F="coerced"+u;n+=" var "+C+" = typeof "+m+"; var "+F+" = undefined; ","array"==e.opts.coerceTypes&&(n+=" if ("+C+" == 'object' && Array.isArray("+m+") && "+m+".length == 1) { "+m+" = "+m+"[0]; "+C+" = typeof "+m+"; if ("+e.util.checkDataType(e.schema.type,m,e.opts.strictNumbers)+") "+F+" = "+m+"; } "),n+=" if ("+F+" !== undefined) ; ";var P=A;if(P)for(var O,T=-1,j=P.length-1;T<j;)"string"==(O=P[T+=1])?n+=" else if ("+C+" == 'number' || "+C+" == 'boolean') "+F+" = '' + "+m+"; else if ("+m+" === null) "+F+" = ''; ":"number"==O||"integer"==O?(n+=" else if ("+C+" == 'boolean' || "+m+" === null || ("+C+" == 'string' && "+m+" && "+m+" == +"+m+" ","integer"==O&&(n+=" && !("+m+" % 1)"),n+=")) "+F+" = +"+m+"; "):"boolean"==O?n+=" else if ("+m+" === 'false' || "+m+" === 0 || "+m+" === null) "+F+" = false; else if ("+m+" === 'true' || "+m+" === 1) "+F+" = true; ":"null"==O?n+=" else if ("+m+" === '' || "+m+" === 0 || "+m+" === false) "+F+" = null; ":"array"==e.opts.coerceTypes&&"array"==O&&(n+=" else if ("+C+" == 'string' || "+C+" == 'number' || "+C+" == 'boolean' || "+m+" == null) "+F+" = ["+m+"]; ");n+=" else { ",(Z=Z||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { type: '",n+=S?""+x.join(","):""+x,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=S?""+x.join(","):""+x,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";y=n;n=Z.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } if ("+F+" !== undefined) { ";var I=l?"data"+(l-1||""):"parentData";n+=" "+m+" = "+F+"; ",l||(n+="if ("+I+" !== undefined)"),n+=" "+I+"["+(l?e.dataPathArr[l]:"parentDataProperty")+"] = "+F+"; } "}else{(Z=Z||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { type: '",n+=S?""+x.join(","):""+x,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=S?""+x.join(","):""+x,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";y=n;n=Z.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } "}}if(e.schema.$ref&&!i)n+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",d&&(n+=" } if (errors === ",n+=v?"0":"errs_"+u,n+=") { ",w+="}");else{var _=e.RULES;if(_)for(var R=-1,B=_.length-1;R<B;)if(Y(k=_[R+=1])){if(k.type&&(n+=" if ("+e.util.checkDataType(k.type,m,e.opts.strictNumbers)+") { "),e.opts.useDefaults)if("object"==k.type&&e.schema.properties){f=e.schema.properties;var L=Object.keys(f);if(L)for(var N,M=-1,H=L.length-1;M<H;){if(void 0!==($=f[N=L[M+=1]]).default){var z=m+e.util.getProperty(N);if(e.compositeRule){if(e.opts.strictDefaults){b="default is ignored for: "+z;if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}}else n+=" if ("+z+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+z+" === null || "+z+" === '' "),n+=" ) "+z+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault($.default)+" ":n+=" "+JSON.stringify($.default)+" ",n+="; "}}}else if("array"==k.type&&Array.isArray(e.schema.items)){var U=e.schema.items;if(U){T=-1;for(var $,q=U.length-1;T<q;)if(void 0!==($=U[T+=1]).default){z=m+"["+T+"]";if(e.compositeRule){if(e.opts.strictDefaults){b="default is ignored for: "+z;if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}}else n+=" if ("+z+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+z+" === null || "+z+" === '' "),n+=" ) "+z+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault($.default)+" ":n+=" "+JSON.stringify($.default)+" ",n+="; "}}}var V=k.rules;if(V)for(var G,W=-1,Q=V.length-1;W<Q;)if(X(G=V[W+=1])){var K=G.code(e,G.keyword,k.type);K&&(n+=" "+K+" ",d&&(E+="}"))}if(d&&(n+=" "+E+" ",E=""),k.type&&(n+=" } ",x&&x===k.type&&!A)){n+=" else { ";var Z;h=e.schemaPath+".type",p=e.errSchemaPath+"/type";(Z=Z||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { type: '",n+=S?""+x.join(","):""+x,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=S?""+x.join(","):""+x,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";y=n;n=Z.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } "}d&&(n+=" if (errors === ",n+=v?"0":"errs_"+u,n+=") { ",w+="}")}}function Y(e){for(var t=e.rules,r=0;r<t.length;r++)if(X(t[r]))return!0}function X(t){return void 0!==e.schema[t.keyword]||t.implements&&function(t){for(var r=t.implements,n=0;n<r.length;n++)if(void 0!==e.schema[r[n]])return!0}(t)}return d&&(n+=" "+w+" "),v?(o?(n+=" if (errors === 0) return data; ",n+=" else throw new ValidationError(vErrors); "):(n+=" validate.errors = vErrors; ",n+=" return errors === 0; "),n+=" }; return validate;"):n+=" var "+g+" = errors === errs_"+u+";",n}},7587:(e,t,r)=>{"use strict";var n=/^[a-z_$][a-z0-9_$-]*$/i,o=r(5554),i=r(6152);e.exports={add:function(e,t){var r=this.RULES;if(r.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!n.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(t){this.validateKeyword(t,!0);var i=t.type;if(Array.isArray(i))for(var a=0;a<i.length;a++)c(e,i[a],t);else c(e,i,t);var s=t.metaSchema;s&&(t.$data&&this._opts.$data&&(s={anyOf:[s,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),t.validateSchema=this.compile(s,!0))}function c(e,t,n){for(var i,a=0;a<r.length;a++){var s=r[a];if(s.type==t){i=s;break}}i||(i={type:t,rules:[]},r.push(i));var c={keyword:e,definition:n,custom:!0,code:o,implements:n.implements};i.rules.push(c),r.custom[e]=c}return r.keywords[e]=r.all[e]=!0,this},get:function(e){var t=this.RULES.custom[e];return t?t.definition:this.RULES.keywords[e]||!1},remove:function(e){var t=this.RULES;delete t.keywords[e],delete t.all[e],delete t.custom[e];for(var r=0;r<t.length;r++)for(var n=t[r].rules,o=0;o<n.length;o++)if(n[o].keyword==e){n.splice(o,1);break}return this},validate:function e(t,r){e.errors=null;var n=this._validateKeyword=this._validateKeyword||this.compile(i,!0);if(n(t))return!0;if(e.errors=n.errors,r)throw new Error("custom keyword definition is invalid: "+this.errorsText(n.errors));return!1}}},9619:(e,t,r)=>{"use strict";var n=r(7061);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var i,a,s=r(1404).codes,c=s.ERR_AMBIGUOUS_ARGUMENT,u=s.ERR_INVALID_ARG_TYPE,l=s.ERR_INVALID_ARG_VALUE,f=s.ERR_INVALID_RETURN_VALUE,h=s.ERR_MISSING_ARGS,p=r(7366),d=r(1323).inspect,m=r(1323).types,g=m.isPromise,y=m.isRegExp,v=Object.assign?Object.assign:r(2098).assign,b=Object.is?Object.is:r(3822);new Map;function E(){var e=r(118);i=e.isDeepEqual,a=e.isDeepStrictEqual}var w=!1,x=e.exports=D,S={};function A(e){if(e.message instanceof Error)throw e.message;throw new p(e)}function k(e,t,r,n){if(!r){var o=!1;if(0===t)o=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var i=new p({actual:r,expected:!0,message:n,operator:"==",stackStartFn:e});throw i.generatedMessage=o,i}}function D(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];k.apply(void 0,[D,t.length].concat(t))}x.fail=function e(t,r,o,i,a){var s,c=arguments.length;if(0===c)s="Failed";else if(1===c)o=t,t=void 0;else{if(!1===w){w=!0;var u=n.emitWarning?n.emitWarning:console.warn.bind(console);u("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}2===c&&(i="!=")}if(o instanceof Error)throw o;var l={actual:t,expected:r,operator:void 0===i?"fail":i,stackStartFn:a||e};void 0!==o&&(l.message=o);var f=new p(l);throw s&&(f.message=s,f.generatedMessage=!0),f},x.AssertionError=p,x.ok=D,x.equal=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");t!=r&&A({actual:t,expected:r,message:n,operator:"==",stackStartFn:e})},x.notEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");t==r&&A({actual:t,expected:r,message:n,operator:"!=",stackStartFn:e})},x.deepEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");void 0===i&&E(),i(t,r)||A({actual:t,expected:r,message:n,operator:"deepEqual",stackStartFn:e})},x.notDeepEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");void 0===i&&E(),i(t,r)&&A({actual:t,expected:r,message:n,operator:"notDeepEqual",stackStartFn:e})},x.deepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");void 0===i&&E(),a(t,r)||A({actual:t,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:e})},x.notDeepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");void 0===i&&E();a(t,r)&&A({actual:t,expected:r,message:n,operator:"notDeepStrictEqual",stackStartFn:e})},x.strictEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");b(t,r)||A({actual:t,expected:r,message:n,operator:"strictEqual",stackStartFn:e})},x.notStrictEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");b(t,r)&&A({actual:t,expected:r,message:n,operator:"notStrictEqual",stackStartFn:e})};var C=function e(t,r,n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r.forEach((function(e){e in t&&(void 0!==n&&"string"==typeof n[e]&&y(t[e])&&t[e].test(n[e])?o[e]=n[e]:o[e]=t[e])}))};function F(e,t,r,n,o,i){if(!(r in e)||!a(e[r],t[r])){if(!n){var s=new C(e,o),c=new C(t,o,e),u=new p({actual:s,expected:c,operator:"deepStrictEqual",stackStartFn:i});throw u.actual=e,u.expected=t,u.operator=i.name,u}A({actual:e,expected:t,message:n,operator:i.name,stackStartFn:i})}}function P(e,t,r,n){if("function"!=typeof t){if(y(t))return t.test(e);if(2===arguments.length)throw new u("expected",["Function","RegExp"],t);if("object"!==o(e)||null===e){var a=new p({actual:e,expected:t,message:r,operator:"deepStrictEqual",stackStartFn:n});throw a.operator=n.name,a}var s=Object.keys(t);if(t instanceof Error)s.push("name","message");else if(0===s.length)throw new l("error",t,"may not be an empty object");return void 0===i&&E(),s.forEach((function(o){"string"==typeof e[o]&&y(t[o])&&t[o].test(e[o])||F(e,t,o,r,s,n)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function O(e){if("function"!=typeof e)throw new u("fn","Function",e);try{e()}catch(e){return e}return S}function T(e){return g(e)||null!==e&&"object"===o(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function j(e){return Promise.resolve().then((function(){var t;if("function"==typeof e){if(!T(t=e()))throw new f("instance of Promise","promiseFn",t)}else{if(!T(e))throw new u("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return S})).catch((function(e){return e}))}))}function I(e,t,r,n){if("string"==typeof r){if(4===arguments.length)throw new u("error",["Object","Error","Function","RegExp"],r);if("object"===o(t)&&null!==t){if(t.message===r)throw new c("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===r)throw new c("error/message",'The error "'.concat(t,'" is identical to the message.'));n=r,r=void 0}else if(null!=r&&"object"!==o(r)&&"function"!=typeof r)throw new u("error",["Object","Error","Function","RegExp"],r);if(t===S){var i="";r&&r.name&&(i+=" (".concat(r.name,")")),i+=n?": ".concat(n):".";var a="rejects"===e.name?"rejection":"exception";A({actual:void 0,expected:r,operator:e.name,message:"Missing expected ".concat(a).concat(i),stackStartFn:e})}if(r&&!P(t,r,n,e))throw t}function _(e,t,r,n){if(t!==S){if("string"==typeof r&&(n=r,r=void 0),!r||P(t,r)){var o=n?": ".concat(n):".",i="doesNotReject"===e.name?"rejection":"exception";A({actual:t,expected:r,operator:e.name,message:"Got unwanted ".concat(i).concat(o,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function R(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];k.apply(void 0,[R,t.length].concat(t))}x.throws=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];I.apply(void 0,[e,O(t)].concat(n))},x.rejects=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return j(t).then((function(t){return I.apply(void 0,[e,t].concat(n))}))},x.doesNotThrow=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];_.apply(void 0,[e,O(t)].concat(n))},x.doesNotReject=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return j(t).then((function(t){return _.apply(void 0,[e,t].concat(n))}))},x.ifError=function e(t){if(null!=t){var r="ifError got unwanted exception: ";"object"===o(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?r+=t.constructor.name:r+=t.message:r+=d(t);var n=new p({actual:t,expected:null,operator:"ifError",message:r,stackStartFn:e}),i=t.stack;if("string"==typeof i){var a=i.split("\n");a.shift();for(var s=n.stack.split("\n"),c=0;c<a.length;c++){var u=s.indexOf(a[c]);if(-1!==u){s=s.slice(0,u);break}}n.stack="".concat(s.join("\n"),"\n").concat(a.join("\n"))}throw n}},x.strict=v(R,x,{equal:x.strictEqual,deepEqual:x.deepStrictEqual,notEqual:x.notStrictEqual,notDeepEqual:x.notDeepStrictEqual}),x.strict.strict=x.strict},7366:(e,t,r)=>{"use strict";var n=r(7061);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?s(e):t}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e){var t="function"==typeof Map?new Map:void 0;return c=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return l(e,arguments,h(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),f(n,e)},c(e)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function l(e,t,r){return l=u()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&f(o,r.prototype),o},l.apply(null,arguments)}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}var d=r(1323).inspect,m=r(1404).codes.ERR_INVALID_ARG_TYPE;function g(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}var y="",v="",b="",E="",w={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function x(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){r[t]=e[t]})),Object.defineProperty(r,"message",{value:e.message}),r}function S(e){return d(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function A(e,t,r){var o="",i="",a=0,s="",c=!1,u=S(e),l=u.split("\n"),f=S(t).split("\n"),h=0,d="";if("strictEqual"===r&&"object"===p(e)&&"object"===p(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===l.length&&1===f.length&&l[0]!==f[0]){var m=l[0].length+f[0].length;if(m<=10){if(!("object"===p(e)&&null!==e||"object"===p(t)&&null!==t||0===e&&0===t))return"".concat(w[r],"\n\n")+"".concat(l[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==r){if(m<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;l[0][h]===f[0][h];)h++;h>2&&(d="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,r-e.length)}(" ",h),"^"),h=0)}}}for(var x=l[l.length-1],A=f[f.length-1];x===A&&(h++<2?s="\n ".concat(x).concat(s):o=x,l.pop(),f.pop(),0!==l.length&&0!==f.length);)x=l[l.length-1],A=f[f.length-1];var k=Math.max(l.length,f.length);if(0===k){var D=u.split("\n");if(D.length>30)for(D[26]="".concat(y,"...").concat(E);D.length>27;)D.pop();return"".concat(w.notIdentical,"\n\n").concat(D.join("\n"),"\n")}h>3&&(s="\n".concat(y,"...").concat(E).concat(s),c=!0),""!==o&&(s="\n ".concat(o).concat(s),o="");var C=0,F=w[r]+"\n".concat(v,"+ actual").concat(E," ").concat(b,"- expected").concat(E),P=" ".concat(y,"...").concat(E," Lines skipped");for(h=0;h<k;h++){var O=h-a;if(l.length<h+1)O>1&&h>2&&(O>4?(i+="\n".concat(y,"...").concat(E),c=!0):O>3&&(i+="\n ".concat(f[h-2]),C++),i+="\n ".concat(f[h-1]),C++),a=h,o+="\n".concat(b,"-").concat(E," ").concat(f[h]),C++;else if(f.length<h+1)O>1&&h>2&&(O>4?(i+="\n".concat(y,"...").concat(E),c=!0):O>3&&(i+="\n ".concat(l[h-2]),C++),i+="\n ".concat(l[h-1]),C++),a=h,i+="\n".concat(v,"+").concat(E," ").concat(l[h]),C++;else{var T=f[h],j=l[h],I=j!==T&&(!g(j,",")||j.slice(0,-1)!==T);I&&g(T,",")&&T.slice(0,-1)===j&&(I=!1,j+=","),I?(O>1&&h>2&&(O>4?(i+="\n".concat(y,"...").concat(E),c=!0):O>3&&(i+="\n ".concat(l[h-2]),C++),i+="\n ".concat(l[h-1]),C++),a=h,i+="\n".concat(v,"+").concat(E," ").concat(j),o+="\n".concat(b,"-").concat(E," ").concat(T),C+=2):(i+=o,o="",1!==O&&0!==h||(i+="\n ".concat(j),C++))}if(C>20&&h<k-2)return"".concat(F).concat(P,"\n").concat(i,"\n").concat(y,"...").concat(E).concat(o,"\n")+"".concat(y,"...").concat(E)}return"".concat(F).concat(c?P:"","\n").concat(i).concat(o).concat(s).concat(d)}var k=function(e){function t(e){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),"object"!==p(e)||null===e)throw new m("options","Object",e);var o=e.message,i=e.operator,c=e.stackStartFn,u=e.actual,l=e.expected,f=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=o)r=a(this,h(t).call(this,String(o)));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(y="",v="",E="",b=""):(y="",v="",E="",b="")),"object"===p(u)&&null!==u&&"object"===p(l)&&null!==l&&"stack"in u&&u instanceof Error&&"stack"in l&&l instanceof Error&&(u=x(u),l=x(l)),"deepStrictEqual"===i||"strictEqual"===i)r=a(this,h(t).call(this,A(u,l,i)));else if("notDeepStrictEqual"===i||"notStrictEqual"===i){var d=w[i],g=S(u).split("\n");if("notStrictEqual"===i&&"object"===p(u)&&null!==u&&(d=w.notStrictEqualObject),g.length>30)for(g[26]="".concat(y,"...").concat(E);g.length>27;)g.pop();r=1===g.length?a(this,h(t).call(this,"".concat(d," ").concat(g[0]))):a(this,h(t).call(this,"".concat(d,"\n\n").concat(g.join("\n"),"\n")))}else{var k=S(u),D="",C=w[i];"notDeepEqual"===i||"notEqual"===i?(k="".concat(w[i],"\n\n").concat(k)).length>1024&&(k="".concat(k.slice(0,1021),"...")):(D="".concat(S(l)),k.length>512&&(k="".concat(k.slice(0,509),"...")),D.length>512&&(D="".concat(D.slice(0,509),"...")),"deepEqual"===i||"equal"===i?k="".concat(C,"\n\n").concat(k,"\n\nshould equal\n\n"):D=" ".concat(i," ").concat(D)),r=a(this,h(t).call(this,"".concat(k).concat(D)))}return Error.stackTraceLimit=f,r.generatedMessage=!o,Object.defineProperty(s(r),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),r.code="ERR_ASSERTION",r.actual=u,r.expected=l,r.operator=i,Error.captureStackTrace&&Error.captureStackTrace(s(r),c),r.stack,r.name="AssertionError",a(r)}var r,c,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,e),r=t,c=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:d.custom,value:function(e,t){return d(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){o(e,t,r[t])}))}return e}({},t,{customInspect:!1,depth:0}))}}],c&&i(r.prototype,c),u&&i(r,u),t}(c(Error));e.exports=k},1404:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}var s,c,u={};function l(e,t,r){r||(r=Error);var n=function(r){function n(r,a,s){var c;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),c=o(this,i(n).call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,a,s))),c.code=e,c}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(n,r),n}(r);u[e]=n}function f(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}l("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),l("ERR_INVALID_ARG_TYPE",(function(e,t,o){var i,a,c,u;if(void 0===s&&(s=r(9619)),s("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(a="not ",t.substr(!c||c<0?0:+c,a.length)===a)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))u="The ".concat(e," ").concat(i," ").concat(f(t,"type"));else{var l=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";u='The "'.concat(e,'" ').concat(l," ").concat(i," ").concat(f(t,"type"))}return u+=". Received type ".concat(n(o))}),TypeError),l("ERR_INVALID_ARG_VALUE",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===c&&(c=r(1323));var o=c.inspect(t);return o.length>128&&(o="".concat(o.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(n,". Received ").concat(o)}),TypeError,RangeError),l("ERR_INVALID_RETURN_VALUE",(function(e,t,r){var o;return o=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(o,".")}),TypeError),l("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];void 0===s&&(s=r(9619)),s(t.length>0,"At least one arg needs to be specified");var o="The ",i=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),i){case 1:o+="".concat(t[0]," argument");break;case 2:o+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:o+=t.slice(0,i-1).join(", "),o+=", and ".concat(t[i-1]," arguments")}return"".concat(o," must be specified")}),TypeError),e.exports.codes=u},118:(e,t,r)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var i=void 0!==/a/g.flags,a=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},s=function(e){var t=[];return e.forEach((function(e,r){return t.push([r,e])})),t},c=Object.is?Object.is:r(3822),u=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},l=Number.isNaN?Number.isNaN:r(4866);function f(e){return e.call.bind(e)}var h=f(Object.prototype.hasOwnProperty),p=f(Object.prototype.propertyIsEnumerable),d=f(Object.prototype.toString),m=r(1323).types,g=m.isAnyArrayBuffer,y=m.isArrayBufferView,v=m.isDate,b=m.isMap,E=m.isRegExp,w=m.isSet,x=m.isNativeError,S=m.isBoxedPrimitive,A=m.isNumberObject,k=m.isStringObject,D=m.isBooleanObject,C=m.isBigIntObject,F=m.isSymbolObject,P=m.isFloat32Array,O=m.isFloat64Array;function T(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<48||r>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function j(e){return Object.keys(e).filter(T).concat(u(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}
9
+ */if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;r=b("react.element"),n=b("react.portal"),o=b("react.fragment"),i=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),c=b("react.context"),u=b("react.forward_ref"),l=b("react.suspense"),f=b("react.suspense_list"),h=b("react.memo"),p=b("react.lazy"),d=b("react.block"),m=b("react.server.block"),g=b("react.fundamental"),y=b("react.debug_trace_mode"),v=b("react.legacy_hidden")}function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case a:case i:case l:case f:return e;default:switch(e=e&&e.$$typeof){case c:case u:case p:case h:case s:return e;default:return t}}case n:return t}}}t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===a||e===y||e===i||e===l||e===f||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===h||e.$$typeof===s||e.$$typeof===c||e.$$typeof===u||e.$$typeof===g||e.$$typeof===d||e[0]===m)},t.typeOf=E},2348:(e,t,r)=>{"use strict";e.exports=r(7007)},3440:(e,t,r)=>{"use strict";var n=r(2611),o=r(4174),i=r(6725),a=r(6287),s=r(7425),c=r(907),u=r(3085),l=r(7265),f=r(4382),h=r(469),p=r(9762),d=r(8627),m=r(9531),g=r(58),y=r(7605),v=r(480),b=r(9619),E=r(2493),w=r(6096),x=r(917),S=r(488),A=r(7504),k=r(1559),D=r(3428),C=r(2848),F=r(6156),P=r(4014),O=r(2268),T=r(9715),j=r(7327),I=r(8056),_=r(213),R=r(4206),B=r(1311),L=r(4678);function N(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var M=N(o),H=N(i),z=N(a),U=N(s),$=N(l),q=N(f),V=N(h),G=N(b),W=N(T),Q=N(j),K=N(R),Z=N(B),Y=N(L);class X{constructor(e,t,r){this.id=void 0,this.summary=void 0,this._config=void 0,this.id=e,this.summary=r,this.config=t}get config(){return this._config}set config(e){e.setKey(this.id+":config"),this._config=e}}X.style=".topwrite/style.css",X.logo="logo.png",X.readme="README.md";function J(e){return"string"==typeof e&&e.startsWith("@encrypted:")}function ee(e,t){return H.default.encrypt(e,t).toString()}function te(e,t){try{return H.default.decrypt(e,t).toString(z.default)}catch{return""}}var re=Object.freeze({__proto__:null,encrypt:ee,decrypt:te});class ne{constructor(e,t,r){this.key=void 0,this.values=void 0,this.schema=void 0,this.values=e,this.schema=t,this.key=r}setKey(e){this.key=e}getValues(){return this.values}setValues(e){const t=new M.default({removeAdditional:!0,useDefaults:!0,allErrors:!0}).compile(this.schema);if(!t(e=n.cloneDeep(e)))for(const r of t.errors)e=n.omit(e,r.dataPath.substr(1).split("/"));this.values=e}getValue(e,t){return n.get(this.values,e,t)}setValue(e,t){return n.set(this.values,e,t)}toObject(){const e=new M.default({removeAdditional:!0,useDefaults:!0,allErrors:!0});e.removeKeyword("default"),e.addKeyword("default",{validate:(e,t,r,o,i,a,s)=>(n.isEqual(e,t)&&(delete i[a],n.isEmpty(i)&&function(e,t){const r=[];let o=e;for(let e=0;e<t.length-1;e++)r.push(o),o=o[t[e]];for(let e=t.length-2;e>=0;e--)n.isEmpty(r[e][t[e]])&&delete r[e][t[e]]}(s,n.toPath(o.substr(1)))),!0),modifying:!0,errors:!1}),e.addKeyword("encrypt",{validate:(e,t,r,o,i,a)=>(this.key&&e&&!J(t)&&i&&a&&n.set(i,a,"@encrypted:"+ee(t,this.key)),!0),modifying:!0,errors:!1});const t=e.compile(this.schema),r=n.cloneDeep(this.values);return t(r),r}static createFromObject(e,t,r){const o=new M.default({removeAdditional:!0,useDefaults:!0,allErrors:!0});o.addKeyword("encrypt",{validate:(e,t,o,i,a,s)=>(r&&e&&J(t)&&a&&s&&n.set(a,s,te(t.substr(11),r)),!0),modifying:!0,errors:!1});const i=o.compile(t);if(!i(e))for(const t of i.errors)e=n.omit(e,t.dataPath.substr(1).split("/"));return new this(e,t,r)}}class oe extends ne{constructor(){super(...arguments),this.pluginsConfig={},this.presetPlugins={}}setPresetPlugins(e){this.presetPlugins=e}getPluginConfig(e,t){if(!this.pluginsConfig[e]){const r=this.presetPlugins[e]?this.presetPlugins[e]:this.getValue(["pluginsConfig",e],{});this.pluginsConfig[e]=ne.createFromObject(n.cloneDeep(r),t,this.key+":"+e)}return this.pluginsConfig[e]}setPluginConfig(e,t){const r=t.toObject();n.isEmpty(r)?n.unset(this.values,["pluginsConfig",e]):this.setValue(["pluginsConfig",e],r),delete this.pluginsConfig[e]}static createFromObject(e){return super.createFromObject(e,oe.schema)}}oe.file="book.json",oe.schema={title:"TopWrite Configuration",type:"object",properties:{root:{type:"string",title:"Path from the root folder containing the book's content"},title:{type:"string",title:"Title of the book"},author:{type:"object",title:"attr of the author",properties:{name:{type:"string"},email:{type:"string"},home:{type:"string"}}},theme:{type:"string",title:"Name of the theme",default:"default"},themeConfig:{type:"object",title:"Configuration for theme",properties:{defaultMode:{type:"string",title:"Default mode form theme",default:"light"},primaryColor:{type:"string",title:"Primary Color form theme",default:"#3c60ff"}},default:{}},plugins:{type:"array",items:{type:"string"},default:[]},pluginsConfig:{type:"object",title:"Configuration for plugins",default:{}},pdf:{type:"object",title:"PDF specific configurations",properties:{fontFamily:{type:"string",default:"Microsoft Yahei",title:"Font family for the PDF output"},margin:{type:"object",title:"Margins (unit: pt)",properties:{right:{type:"integer",title:"Right Margin",minimum:0,maximum:100,default:30},left:{type:"integer",title:"Left Margin",minimum:0,maximum:100,default:30},top:{type:"integer",title:"Top Margin",minimum:0,maximum:100,default:40},bottom:{type:"integer",title:"Bottom Margin",minimum:0,maximum:100,default:40}},default:{}},paperSize:{type:"string",enum:["a0","a1","a2","a3","a4","a5","a6","b0","b1","b2","b3","b4","b5","b6","legal","letter"],default:"a4",title:"Paper size for the PDF"},chapterMark:{type:"string",enum:["pagebreak","rule","both","none"],default:"pagebreak",title:"How to mark detected chapters"},pageBreaksBefore:{type:"string",default:"/",title:'An XPath expression. Page breaks are inserted before the specified elements. To disable use the expression: "/"'},pageNumbers:{type:"boolean",default:!0,title:"Add page numbers to the bottom of every page"}},default:{}}},required:[]};class ie{constructor(e){void 0===e&&(e=[]),this.data=void 0,this.data="string"==typeof e?e.split(".").map((e=>parseInt(e,10))):e}getRoot(){return new ie(this.data.slice(0,1))}getParent(){return new ie(this.data.slice(0,-1))}createChild(e){return new ie(this.data.concat(e))}isDescendant(e){return e.toString().startsWith(this.toString()+".")}getNext(){const e=[...this.data];return e[e.length-1]++,new ie(e)}getDepth(){return this.data.length-1}eq(e){return this.toString()===e.toString()}getLeafIndex(){return this.data[this.data.length-1]-1}toString(e){return e?this.data.slice(e.data.length).join("."):this.data.join(".")}static compare(e,t){for(let r=0;r<Math.max(e.data.length,t.data.length);r++){let n=e.data[r]||0,o=t.data[r]||0;if(n>o)return 1;if(o>n)return-1}return 0}}class ae{constructor(e){let{title:t,ref:r,path:n,children:o=[],metadata:i}=e;this.level=void 0,this.title=void 0,this.ref=void 0,this.path=void 0,this.children=void 0,this.metadata=void 0,this.hasPath=!1,this.title=t,this.ref=r,n?(this.hasPath=!0,this.path=n):this.path=s.posix.format({...s.posix.parse(this.ref),ext:".html",base:""}),this.children=o,this.level=new ie,this.metadata=i}getMetadata(e,t){return this.metadata?n.get(this.metadata,e,t):t}getLevel(){return this.level}getTitle(){return this.title}getRef(){return this.ref}getPath(){return this.path}getArticles(){return this.children}getDescendants(){const e=[];return ae.findArticle(this,(t=>(e.push(t),!1))),e}getDepth(){return this.getLevel().getDepth()}createChildLevel(){return this.level.createChild(this.children.length+1)}indexLevels(e){e?this.level=e:e=this.level;for(const[t,r]of this.children.entries())r.indexLevels(e.createChild(t+1))}toObject(){const e=this.children.map((function(e){return e.toObject()}));return{title:this.title,ref:this.ref,path:this.hasPath?this.path:void 0,metadata:this.metadata,children:n.isEmpty(e)?void 0:e}}static findArticle(e,t){return e.getArticles().reduce(((e,r)=>e||(t(r)?r:ae.findArticle(r,t))),void 0)}static createFromObject(e){var t;const r=null==(t=e.children)?void 0:t.map((e=>ae.createFromObject(e)));return new ae({...e,children:r})}}class se{constructor(e,t,r){void 0===t&&(t=[]),this.level=void 0,this.title=void 0,this.articles=void 0,this.metadata=void 0,this.level=new ie,this.title=e,this.articles=t,this.metadata=r}getMetadata(e,t){return this.metadata?n.get(this.metadata,e,t):t}getLevel(){return this.level}getTitle(){return this.title}getArticles(){return this.articles}getFirstArticle(){return ae.findArticle(this,(()=>!0))}getDescendants(){const e=[];return ae.findArticle(this,(t=>(e.push(t),!1))),e}createChildLevel(){return this.level.createChild(this.articles.length+1)}indexLevels(e){e?this.level=e:e=this.level;for(const[t,r]of this.articles.entries())r.indexLevels(e.createChild(t+1))}toObject(){const e=this.articles.map((function(e){return e.toObject()}));return{title:this.title,metadata:this.metadata,articles:n.isEmpty(e)?void 0:e}}static createFormObject(e){var t;return new se(e.title,null==(t=e.articles)?void 0:t.map((e=>ae.createFromObject(e))),e.metadata)}}const ce={tokenize:function(e,t,r){function n(t){return t===y.codes.rightParenthesis?f(t):x.factoryDestination(e,o,r,g.types.resourceDestination,g.types.resourceDestinationLiteral,g.types.resourceDestinationLiteralMarker,g.types.resourceDestinationRaw,g.types.resourceDestinationString,v.constants.linkResourceDestinationBalanceMax)(t)}function o(t){return S.markdownLineEndingOrSpace(t)?w.factoryWhitespace(e,i)(t):f(t)}function i(t){return t===y.codes.quotationMark||t===y.codes.apostrophe||t===y.codes.leftParenthesis?k.factoryTitle(e,w.factoryWhitespace(e,a),r,g.types.resourceTitle,g.types.resourceTitleMarker,g.types.resourceTitleString)(t):a(t)}function a(t){return t===y.codes.equalsTo?(e.enter("resourceSize"),e.enter("resourceSizeMarker"),e.consume(t),e.exit("resourceSizeMarker"),s):f(t)}function s(t){return t===y.codes.lowercaseX?(e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),u):t===y.codes.rightParenthesis||S.markdownLineEndingOrSpace(t)?(e.exit("resourceSize"),w.factoryWhitespace(e,f)(t)):(e.enter("resourceSizeWidth"),e.enter(g.types.chunkString,{contentType:"string"}),c(t))}function c(t){return t===y.codes.rightParenthesis||S.markdownLineEndingOrSpace(t)?(e.exit(g.types.chunkString),e.exit("resourceSizeWidth"),e.exit("resourceSize"),w.factoryWhitespace(e,f)(t)):t===y.codes.lowercaseX?(e.exit(g.types.chunkString),e.exit("resourceSizeWidth"),e.enter("resourceSizeMarker"),e.consume(t),e.exit("resourceSizeMarker"),u):(e.consume(t),c)}function u(t){return t===y.codes.rightParenthesis||S.markdownLineEndingOrSpace(t)?(e.exit("resourceSize"),w.factoryWhitespace(e,f)(t)):(e.enter("resourceSizeHeight"),e.enter(g.types.chunkString,{contentType:"string"}),l(t))}function l(t){return t===y.codes.rightParenthesis||S.markdownLineEndingOrSpace(t)?(e.exit(g.types.chunkString),e.exit("resourceSizeHeight"),e.exit("resourceSize"),w.factoryWhitespace(e,f)(t)):(e.consume(t),l)}function f(n){return n===y.codes.rightParenthesis?(e.enter(g.types.resourceMarker),e.consume(n),e.exit(g.types.resourceMarker),e.exit(g.types.resource),t):r(n)}return function(t){return e.enter(g.types.resource),e.enter(g.types.resourceMarker),e.consume(t),e.exit(g.types.resourceMarker),w.factoryWhitespace(e,n)}}},ue={tokenize:function(e,t,r){const n=this;function o(e){return n.parser.defined.includes(E.normalizeIdentifier(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}return function(t){return G.default.strictEqual(t,y.codes.leftSquareBracket,"expected left bracket"),A.factoryLabel.call(n,e,o,r,g.types.reference,g.types.referenceMarker,g.types.referenceString)(t)}}},le={tokenize:function(e,t,r){function n(n){return 93===n?(e.enter(g.types.referenceMarker),e.consume(n),e.exit(g.types.referenceMarker),e.exit(g.types.reference),t):r(n)}return function(t){return e.enter(g.types.reference),e.enter(g.types.referenceMarker),e.consume(t),e.exit(g.types.referenceMarker),n}}};var fe={name:"labelEnd",tokenize:function(e,t,r){const n=this;let o,i,a=n.events.length;for(;a--;)if((n.events[a][1].type===g.types.labelImage||n.events[a][1].type===g.types.labelLink)&&!n.events[a][1]._balanced){o=n.events[a][1];break}function s(e){return o._balanced=!0,r(e)}function c(r){return r===y.codes.leftParenthesis?e.attempt(ce,t,i?t:s)(r):r===y.codes.leftSquareBracket?e.attempt(ue,t,i?e.attempt(le,t,s):s)(r):i?t(r):s(r)}return function(t){return G.default(t===y.codes.rightSquareBracket,"expected `]`"),o?o._inactive?s(t):(i=n.parser.defined.indexOf(E.normalizeIdentifier(n.sliceSerialize({start:o.end,end:n.now()})))>-1,e.enter(g.types.labelEnd),e.enter(g.types.labelMarker),e.consume(t),e.exit(g.types.labelMarker),e.exit(g.types.labelEnd),c):r(t)}},resolveTo:m.labelEnd.resolveTo,resolveAll:m.labelEnd.resolveAll};const he=(e,t,r,n)=>{const o=d.image(e,t,r,n);return e.width||e.height?o.replace(/\)$/," ="+(e.width||"")+(e.height?"x"+e.height:"")+")"):o};he.peek=d.image.peek;const pe=e=>{let t;switch(e){case"right":t="--: ";break;case"center":t=":-: ";break;default:t=""}return t},de={name:"blockQuote",tokenize:function(e,t,r){const n=this;return function(t){if(t===y.codes.greaterThan){const r=n.containerState;return G.default(r,"expected `containerState` to be defined in container"),r.open||(e.enter(g.types.blockQuote,{_container:!0}),r.open=!0),e.enter(g.types.blockQuotePrefix),e.enter(g.types.blockQuoteMarker),e.consume(t),e.exit(g.types.blockQuoteMarker),P.factorySpace(e,o,g.types.whitespace)}return r(t)};function o(t){return t===y.codes.leftSquareBracket?(e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),i):s(t)}function i(t){return t===y.codes.rightSquareBracket||S.markdownLineEndingOrSpace(t)?(e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),s):(e.enter("blockQuoteType"),e.enter(g.types.chunkString,{contentType:"string"}),a(t))}function a(t){return t===y.codes.rightSquareBracket||S.markdownLineEndingOrSpace(t)?(e.exit(g.types.chunkString),e.exit("blockQuoteType"),e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),s):(e.consume(t),a)}function s(r){return S.markdownSpace(r)?(e.enter(g.types.blockQuotePrefixWhitespace),e.consume(r),e.exit(g.types.blockQuotePrefixWhitespace),e.exit(g.types.blockQuotePrefix),t):(e.exit(g.types.blockQuotePrefix),t(r))}},continuation:{tokenize:function(e,t,r){return P.factorySpace(e,e.attempt(de,t,r),g.types.linePrefix,this.parser.constructs.disable.null.includes("codeIndented")?void 0:v.constants.tabSize)}},exit:m.blockQuote.exit},me=function(e,t){void 0===t&&(t="text");let r="";return D.visit(e,t,(function(e){r+=e.value})),r},ge=/^\[toc(?:=(\d)(?:,(\d))?)?]$/im,ye=u.unified().use($.default).use((function(){const e=this.data();e.micromarkExtensions=[],e.fromMarkdownExtensions=[],e.toMarkdownExtensions=[],e.toHastExtensions=[]})).use(Q.default).use(W.default,["yaml"]).use(q.default).use(V.default).use(I.remarkHeadingId).use((function(){return this.data().toHastExtensions.push({xBlock:(e,t)=>e({},"x-block",{name:t.name,value:t.value,parameter:t.parameter}),xInline:(e,t)=>e({},"x-inline",{name:t.name,value:t.value})}),function(e){D.visit(e,((e,t,r)=>{if(null!==t&&null!==r)if((e=>"code"===e.type)(e)&&e.lang){const n=/\[([\w-_]+)(:([\w-_]+))?]/g.exec(e.lang);if(n){const o={type:"xBlock",name:n[1],parameter:n[3]||"",value:e.value,position:e.position};r.children.splice(t,1,o)}}else if((e=>"inlineCode"===e.type)(e)){const n=/^([^\s]+)\s(.*?)\s\1$/.exec(e.value);if(n){const o={type:"xInline",name:n[1],value:n[2],position:e.position};r.children.splice(t,1,o)}}}))}})).use((function(){const e=this.data();e.micromarkExtensions.push({text:{[y.codes.rightSquareBracket]:fe}}),e.fromMarkdownExtensions.push({enter:{resourceSizeWidth:function(){this.buffer()},resourceSizeHeight:function(){this.buffer()}},exit:{resourceSizeWidth:function(){const e=this.resume();this.stack[this.stack.length-1].width=e},resourceSizeHeight:function(){const e=this.resume();this.stack[this.stack.length-1].height=e}}}),e.toMarkdownExtensions.push({handlers:{image:he}}),e.toHastExtensions.push({image:(e,t)=>{const r={src:p.encode(t.url),alt:t.alt};return null!==t.title&&void 0!==t.title&&(r.title=t.title),r.width=t.width,r.height=t.height,e(t,"img",r)}})})).use((function(){return this.data().toMarkdownExtensions.push({handlers:{paragraph:(e,t,r,n)=>{const o=C.paragraph(e,t,r,n);return pe(e.align)+o},heading:(e,t,r,n)=>F.heading(e,t,r,n).replace(/^#+\s/,"$&"+pe(e.align))}}),function(e){D.visit(e,((e,t,r)=>{if((e=>"paragraph"===e.type||"heading"===e.type)(e)){const t=c.select("text",e);if(t){const n=t.value;n.startsWith("--: ")?e.align="right":n.startsWith(":-: ")?e.align="center":n.startsWith(":-- ")&&(e.align="left"),e.align&&(t.value=n.substr(4),r&&"listItem"===r.type?r.data={...r.data,hProperties:{className:"align-"+e.align}}:e.data={...e.data,hProperties:{className:"align-"+e.align}})}}}))}})).use((function(){const e=this.data();return e.toMarkdownExtensions.push({handlers:{blockquote:(e,t,r,n)=>{const o=O.blockquote(e,t,r,n);return e.variant?o.replace(/(^|\s+)>\s/,"$1> ["+e.variant+"] "):o}}}),e.micromarkExtensions.push({document:{[y.codes.greaterThan]:de}}),e.fromMarkdownExtensions.push({enter:{blockQuoteType:function(){this.buffer()}},exit:{blockQuoteType:function(){const e=this.resume();this.stack[this.stack.length-1].variant=e}}}),function(e){D.visit(e,"blockquote",(e=>{e.variant&&(e.data={...e.data,hProperties:{className:e.variant}})}))}})).use((function(){return function(e){D.visit(e,((e,t,r)=>{if(r&&"root"===r.type&&null!==t&&me(e).match(ge))return r.children.splice(t,1),[D.SKIP,t]}))}}));function ve(e){const t=[];for(const r of e.children){const e=r.children,n=c.select("paragraph:first-child>*",r);if(!n||!n.url)continue;const o=me(n);if(!o)continue;const i=decodeURI(n.url);if(i&&i.match(/[\\:*?"<>|]/))continue;let a={title:o,ref:i};if(e.length>1){const t=e[e.length-1];_.is(t,"list")&&(a.children=ve(t))}t.push(a)}return t}const be=ye();class Ee{constructor(e,t){void 0===e&&(e=[]),void 0===t&&(t=!1),this.parts=void 0,this.json=void 0,this.parts=e,this.json=t,this.indexLevels()}hasMetadata(){let e=!1;return this.getArticle((t=>!!e||!n.isEmpty(t.metadata)&&(e=!0,!0)),(t=>(n.isEmpty(t.metadata)||(e=!0),!0))),e}isJson(){return this.json}getParts(){return this.parts}getPart(e){return this.parts[e]}getLastPart(){return this.parts[this.parts.length-1]}getArticles(){const e=[];return this.getArticle((t=>(e.push(t),!1))),e}getArticle(e,t){return this.parts.reduce(((r,n)=>r||(!t||t(n)?ae.findArticle(n,e):void 0)),void 0)}getArticlePart(e){const t=e.getLevel().getRoot();return this.getByLevel(t)}getFirstPath(){const e=this.getArticle((e=>!!e.getPath()));if(e)return e.getPath()}getByLevel(e){const t=t=>t.getLevel().eq(e);return this.parts.reduce(((e,r)=>e||(t(r)?r:ae.findArticle(r,t))),void 0)}getFirstArticle(){return this.getArticle((()=>!0))}getNextArticle(e){const t=e instanceof ae?e.getLevel():e;let r=!1;return this.getArticle((e=>!!r||(r=e.getLevel()==t,!1)))}getPrevArticle(e){const t=e instanceof ae?e.getLevel():e;let r;return this.getArticle((e=>e.getLevel()==t||(r=e,!1))),r}getParent(e){const t=(e instanceof ae?e.getLevel():e).getParent();if(t)return this.getByLevel(t)}indexLevels(){for(const[e,t]of this.parts.entries()){const r=new ie(String(e+1));t.indexLevels(r)}}isSinglePart(){return 1===this.parts.length&&!this.parts[0].title}isEmpty(){return this.isSinglePart()?0===this.parts[0].articles.length:0===this.parts.length}toObject(){return this.parts.map((function(e){return e.toObject()}))}static createFromObject(e){return new Ee(e.map((e=>se.createFormObject(e))),!0)}static createFromText(e){const t=function(e){const t=be.parse(e),r=[];let n;for(const e of t.children)if(_.is(e,"heading")&&[2,3].includes(e.depth)&&(n&&r.push(n),n={title:me(e).trim()}),_.is(e,"list")){const t=ve(e);n?n.articles=(n.articles||[]).concat(t):n={title:"",articles:t}}return n?r.push(n):r.push({title:""}),r}(e);return new Ee(t.map((e=>se.createFormObject(e))))}static create(e){return"object"==typeof e?Ee.createFromObject(e):Ee.createFromText(e)}}Ee.file={json:"SUMMARY.json",markdown:"SUMMARY.md"};class we{constructor(e){let{host:t,preset:r}=e;this.host=void 0,this.preset=void 0,this.host=t,this.preset=r}getBuyUrl(e,t){return this.host+"/api/buy?book="+e.id+"&plugin="+t.name}async bought(e,t){try{return await K.default.get(this.host+"/api/bought?book="+e.id+"&plugin="+t.name),!0}catch{return!1}}async queryPlugins(e){let{page:t=1,...r}=e;const{data:n}=await K.default.get(this.host+"/api/query",{params:{...r,page:t}});return n}async getInstalled(e){const{config:t}=e,r=["theme-"+t.getValue("theme"),...t.getValue("plugins")];this.preset&&(r.push(...Object.keys(this.preset)),t.setPresetPlugins(this.preset));const{data:n}=await K.default.get(this.host+"/api/installed",{params:{book:e.id,plugins:r.join(",")}}).catch((e=>{throw new Error("Plugins Check Failed:"+e.message)}));return n.filter((e=>!e.builtin||this.preset&&this.preset[e.name]))}}t.YB=void 0;class xe{constructor(e,t,r){this.flatColors=["#1abc9c","#2ecc71","#3498db","#9b59b6","#34495e","#16a085","#27ae60","#2980b9","#8e44ad","#2c3e50","#f1c40f","#e67e22","#e74c3c","#f39c12","#d35400","#c0392b"],this.letter=void 0,this.size=void 0,this.canvas=void 0,this.letter=e,this.size=t,this.canvas=r,this.generate()}toDataUrl(){return this.canvas.toDataURL()}generate(){const e=this.canvas.getContext("2d");if(!e)throw new Error("getContext failed");const t=this.size/10;e.beginPath(),e.arc(this.size-t,this.size-t,t,0,Math.PI/2),e.lineTo(t,this.size),e.arc(t,this.size-t,t,Math.PI/2,Math.PI),e.lineTo(0,t),e.arc(t,t,t,Math.PI,3*Math.PI/2),e.lineTo(this.size-t,0),e.arc(this.size-t,t,t,3*Math.PI/2,2*Math.PI),e.lineTo(this.size,this.size-t),e.closePath();const r=this.letter[0].toUpperCase();e.fillStyle=this.flatColors[r.charCodeAt(0)%this.flatColors.length],e.fill(),e.restore(),e.font=Math.round(this.size/2)+"px Roboto",e.textAlign="center",e.fillStyle="#FFFFFF",e.fillText(this.letter[0].toUpperCase(),this.size/2,this.size/1.5)}static create(e,t,r){return r||(r=function(e){const t=window.document.createElement("canvas");return t.width=e,t.height=e,t}(t)),new xe(e,t,r)}}const Se=/^(?:\w+:)?\/\/(\S+)$/,Ae=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,ke=/^[^\s\.]+\.\S{2,}$/;Z.default.attach(),K.default.defaults.maxContentLength=1/0,K.default.defaults.maxBodyLength=1/0,Object.defineProperty(t,"WY",{enumerable:!0,get:function(){return K.default}}),t.l_=ne,t.fy=X,t.De=oe,t.$B=class{constructor(e){let{path:t,content:r,meta:n={}}=e;this.path=void 0,this.content=void 0,this.meta=void 0,this.path=t,this.content=r,this.meta=n}getMeta(e,t){return n.get(this.meta,e,t)}relative(e){const t="/"===e.slice(-1);return(e=U.default.posix.relative(U.default.posix.dirname(this.path),e)||".")+(t?"/":"")}resolve(e){return U.default.posix.join(U.default.posix.dirname(this.path),e)}},t.$q=xe,t.aC=ie,t.ER=Ee,t.oI=ae,t.Lj=se,t.rK=re,t.NC=function(e){return t.YB=new we(e)},t.oe=J,t.CB=function(e){const t=e.match(Se);if(!t)return!1;const r=t[1];return!!r&&(Ae.test(r)||ke.test(r))},t.JH=ye,t.FB=function(e){return Y.default(e).toString()}},4174:(e,t,r)=>{"use strict";var n=r(1251),o=r(29),i=r(4390),a=r(8969),s=r(6440),c=r(8506),u=r(1077),l=r(3244),f=r(5117);e.exports=y,y.prototype.validate=function(e,t){var r;if("string"==typeof e){if(!(r=this.getSchema(e)))throw new Error('no schema with key or ref "'+e+'"')}else{var n=this._addSchema(e);r=n.validate||this._compile(n)}var o=r(t);!0!==r.$async&&(this.errors=r.errors);return o},y.prototype.compile=function(e,t){var r=this._addSchema(e,void 0,t);return r.validate||this._compile(r)},y.prototype.addSchema=function(e,t,r,n){if(Array.isArray(e)){for(var i=0;i<e.length;i++)this.addSchema(e[i],void 0,r,n);return this}var a=this._getId(e);if(void 0!==a&&"string"!=typeof a)throw new Error("schema id must be string");return S(this,t=o.normalizeId(t||a)),this._schemas[t]=this._addSchema(e,r,n,!0),this},y.prototype.addMetaSchema=function(e,t,r){return this.addSchema(e,t,r,!0),this},y.prototype.validateSchema=function(e,t){var r=e.$schema;if(void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(!(r=r||this._opts.defaultMeta||function(e){var t=e._opts.meta;return e._opts.defaultMeta="object"==typeof t?e._getId(t)||t:e.getSchema(d)?d:void 0,e._opts.defaultMeta}(this)))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var n=this.validate(r,e);if(!n&&t){var o="schema is invalid: "+this.errorsText();if("log"!=this._opts.validateSchema)throw new Error(o);this.logger.error(o)}return n},y.prototype.getSchema=function(e){var t=v(this,e);switch(typeof t){case"object":return t.validate||this._compile(t);case"string":return this.getSchema(t);case"undefined":return function(e,t){var r=o.schema.call(e,{schema:{}},t);if(r){var i=r.schema,s=r.root,c=r.baseId,u=n.call(e,i,s,void 0,c);return e._fragments[t]=new a({ref:t,fragment:!0,schema:i,root:s,baseId:c,validate:u}),u}}(this,e)}},y.prototype.removeSchema=function(e){if(e instanceof RegExp)return b(this,this._schemas,e),b(this,this._refs,e),this;switch(typeof e){case"undefined":return b(this,this._schemas),b(this,this._refs),this._cache.clear(),this;case"string":var t=v(this,e);return t&&this._cache.del(t.cacheKey),delete this._schemas[e],delete this._refs[e],this;case"object":var r=this._opts.serialize,n=r?r(e):e;this._cache.del(n);var i=this._getId(e);i&&(i=o.normalizeId(i),delete this._schemas[i],delete this._refs[i])}return this},y.prototype.addFormat=function(e,t){"string"==typeof t&&(t=new RegExp(t));return this._formats[e]=t,this},y.prototype.errorsText=function(e,t){if(!(e=e||this.errors))return"No errors";for(var r=void 0===(t=t||{}).separator?", ":t.separator,n=void 0===t.dataVar?"data":t.dataVar,o="",i=0;i<e.length;i++){var a=e[i];a&&(o+=n+a.dataPath+" "+a.message+r)}return o.slice(0,-r.length)},y.prototype._addSchema=function(e,t,r,n){if("object"!=typeof e&&"boolean"!=typeof e)throw new Error("schema should be object or boolean");var i=this._opts.serialize,s=i?i(e):e,c=this._cache.get(s);if(c)return c;n=n||!1!==this._opts.addUsedSchema;var u=o.normalizeId(this._getId(e));u&&n&&S(this,u);var l,f=!1!==this._opts.validateSchema&&!t;f&&!(l=u&&u==o.normalizeId(e.$schema))&&this.validateSchema(e,!0);var h=o.ids.call(this,e),p=new a({id:u,schema:e,localRefs:h,cacheKey:s,meta:r});"#"!=u[0]&&n&&(this._refs[u]=p);this._cache.put(s,p),f&&l&&this.validateSchema(e,!0);return p},y.prototype._compile=function(e,t){if(e.compiling)return e.validate=i,i.schema=e.schema,i.errors=null,i.root=t||i,!0===e.schema.$async&&(i.$async=!0),i;var r,o;e.compiling=!0,e.meta&&(r=this._opts,this._opts=this._metaOpts);try{o=n.call(this,e.schema,t,e.localRefs)}catch(t){throw delete e.validate,t}finally{e.compiling=!1,e.meta&&(this._opts=r)}return e.validate=o,e.refs=o.refs,e.refVal=o.refVal,e.root=o.root,o;function i(){var t=e.validate,r=t.apply(this,arguments);return i.errors=t.errors,r}},y.prototype.compileAsync=r(1101);var h=r(7587);y.prototype.addKeyword=h.add,y.prototype.getKeyword=h.get,y.prototype.removeKeyword=h.remove,y.prototype.validateKeyword=h.validate;var p=r(24);y.ValidationError=p.Validation,y.MissingRefError=p.MissingRef,y.$dataMetaSchema=l;var d="http://json-schema.org/draft-07/schema",m=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],g=["/properties"];function y(e){if(!(this instanceof y))return new y(e);e=this._opts=f.copy(e)||{},function(e){var t=e._opts.logger;if(!1===t)e.logger={log:A,warn:A,error:A};else{if(void 0===t&&(t=console),!("object"==typeof t&&t.log&&t.warn&&t.error))throw new Error("logger must implement log, warn and error methods");e.logger=t}}(this),this._schemas={},this._refs={},this._fragments={},this._formats=c(e.format),this._cache=e.cache||new i,this._loadingSchemas={},this._compilations=[],this.RULES=u(),this._getId=function(e){switch(e.schemaId){case"auto":return x;case"id":return E;default:return w}}(e),e.loopRequired=e.loopRequired||1/0,"property"==e.errorDataPath&&(e._errorDataPathProperty=!0),void 0===e.serialize&&(e.serialize=s),this._metaOpts=function(e){for(var t=f.copy(e._opts),r=0;r<m.length;r++)delete t[m[r]];return t}(this),e.formats&&function(e){for(var t in e._opts.formats){var r=e._opts.formats[t];e.addFormat(t,r)}}(this),e.keywords&&function(e){for(var t in e._opts.keywords){var r=e._opts.keywords[t];e.addKeyword(t,r)}}(this),function(e){var t;e._opts.$data&&(t=r(3633),e.addMetaSchema(t,t.$id,!0));if(!1===e._opts.meta)return;var n=r(4222);e._opts.$data&&(n=l(n,g));e.addMetaSchema(n,d,!0),e._refs["http://json-schema.org/schema"]=d}(this),"object"==typeof e.meta&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),function(e){var t=e._opts.schemas;if(!t)return;if(Array.isArray(t))e.addSchema(t);else for(var r in t)e.addSchema(t[r],r)}(this)}function v(e,t){return t=o.normalizeId(t),e._schemas[t]||e._refs[t]||e._fragments[t]}function b(e,t,r){for(var n in t){var o=t[n];o.meta||r&&!r.test(n)||(e._cache.del(o.cacheKey),delete t[n])}}function E(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}function w(e){return e.id&&this.logger.warn("schema id ignored",e.id),e.$id}function x(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}function S(e,t){if(e._schemas[t]||e._refs[t])throw new Error('schema with key or id "'+t+'" already exists')}function A(){}},4390:e=>{"use strict";var t=e.exports=function(){this._cache={}};t.prototype.put=function(e,t){this._cache[e]=t},t.prototype.get=function(e){return this._cache[e]},t.prototype.del=function(e){delete this._cache[e]},t.prototype.clear=function(){this._cache={}}},1101:(e,t,r)=>{"use strict";var n=r(24).MissingRef;e.exports=function e(t,r,o){var i=this;if("function"!=typeof this._opts.loadSchema)throw new Error("options.loadSchema should be a function");"function"==typeof r&&(o=r,r=void 0);var a=s(t).then((function(){var e=i._addSchema(t,void 0,r);return e.validate||c(e)}));o&&a.then((function(e){o(null,e)}),o);return a;function s(t){var r=t.$schema;return r&&!i.getSchema(r)?e.call(i,{$ref:r},!0):Promise.resolve()}function c(e){try{return i._compile(e)}catch(t){if(t instanceof n)return function(t){var n=t.missingSchema;if(u(n))throw new Error("Schema "+n+" is loaded but "+t.missingRef+" cannot be resolved");var o=i._loadingSchemas[n];o||(o=i._loadingSchemas[n]=i._opts.loadSchema(n)).then(a,a);return o.then((function(e){if(!u(n))return s(e).then((function(){u(n)||i.addSchema(e,n,void 0,r)}))})).then((function(){return c(e)}));function a(){delete i._loadingSchemas[n]}function u(e){return i._refs[e]||i._schemas[e]}}(t);throw t}}}},24:(e,t,r)=>{"use strict";var n=r(29);function o(e,t,r){this.message=r||o.message(e,t),this.missingRef=n.url(e,t),this.missingSchema=n.normalizeId(n.fullPath(this.missingRef))}function i(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}e.exports={Validation:i((function(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0})),MissingRef:i(o)},o.message=function(e,t){return"can't resolve reference "+t+" from id "+e}},8506:(e,t,r)=>{"use strict";var n=r(5117),o=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31],a=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,s=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,c=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,u=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,l=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,f=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,h=/^(?:\/(?:[^~/]|~0|~1)*)*$/,p=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,d=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function m(e){return e="full"==e?"full":"fast",n.copy(m[e])}function g(e){var t=e.match(o);if(!t)return!1;var r=+t[1],n=+t[2],a=+t[3];return n>=1&&n<=12&&a>=1&&a<=(2==n&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(r)?29:i[n])}function y(e,t){var r=e.match(a);if(!r)return!1;var n=r[1],o=r[2],i=r[3],s=r[5];return(n<=23&&o<=59&&i<=59||23==n&&59==o&&60==i)&&(!t||s)}e.exports=m,m.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":u,url:l,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:f,"json-pointer":h,"json-pointer-uri-fragment":p,"relative-json-pointer":d},m.full={date:g,time:y,"date-time":function(e){var t=e.split(v);return 2==t.length&&g(t[0])&&y(t[1],!0)},uri:function(e){return b.test(e)&&c.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":u,url:l,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:f,"json-pointer":h,"json-pointer-uri-fragment":p,"relative-json-pointer":d};var v=/t|\s/i;var b=/\/|:/;var E=/[^\\]\\Z/;function w(e){if(E.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}}},1251:(e,t,r)=>{"use strict";var n=r(29),o=r(5117),i=r(24),a=r(6440),s=r(805),c=o.ucs2length,u=r(6471),l=i.Validation;function f(e,t,r){var n=p.call(this,e,t,r);return n>=0?{index:n,compiling:!0}:(n=this._compilations.length,this._compilations[n]={schema:e,root:t,baseId:r},{index:n,compiling:!1})}function h(e,t,r){var n=p.call(this,e,t,r);n>=0&&this._compilations.splice(n,1)}function p(e,t,r){for(var n=0;n<this._compilations.length;n++){var o=this._compilations[n];if(o.schema==e&&o.root==t&&o.baseId==r)return n}return-1}function d(e,t){return"var pattern"+e+" = new RegExp("+o.toQuotedString(t[e])+");"}function m(e){return"var default"+e+" = defaults["+e+"];"}function g(e,t){return void 0===t[e]?"":"var refVal"+e+" = refVal["+e+"];"}function y(e){return"var customRule"+e+" = customRules["+e+"];"}function v(e,t){if(!e.length)return"";for(var r="",n=0;n<e.length;n++)r+=t(n,e);return r}e.exports=function e(t,r,p,b){var E=this,w=this._opts,x=[void 0],S={},A=[],k={},D=[],C={},F=[];r=r||{schema:t,refVal:x,refs:S};var P=f.call(this,t,r,b),O=this._compilations[P.index];if(P.compiling)return O.callValidate=function e(){var t=O.validate,r=t.apply(this,arguments);return e.errors=t.errors,r};var T=this._formats,j=this.RULES;try{var I=R(t,r,p,b);O.validate=I;var _=O.callValidate;return _&&(_.schema=I.schema,_.errors=null,_.refs=I.refs,_.refVal=I.refVal,_.root=I.root,_.$async=I.$async,w.sourceCode&&(_.source=I.source)),I}finally{h.call(this,t,r,b)}function R(t,a,f,h){var p=!a||a&&a.schema==t;if(a.schema!=r.schema)return e.call(E,t,a,f,h);var b,k=!0===t.$async,C=s({isTop:!0,schema:t,isRoot:p,baseId:h,root:a,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:i.MissingRef,RULES:j,validate:s,util:o,resolve:n,resolveRef:B,usePattern:M,useDefault:H,useCustomRule:z,opts:w,formats:T,logger:E.logger,self:E});C=v(x,g)+v(A,d)+v(D,m)+v(F,y)+C,w.processCode&&(C=w.processCode(C,t));try{b=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",C)(E,j,T,r,x,D,F,u,c,l),x[0]=b}catch(e){throw E.logger.error("Error compiling schema, function code:",C),e}return b.schema=t,b.errors=null,b.refs=S,b.refVal=x,b.root=p?b:a,k&&(b.$async=!0),!0===w.sourceCode&&(b.source={code:C,patterns:A,defaults:D}),b}function B(t,o,i){o=n.url(t,o);var a,s,c=S[o];if(void 0!==c)return N(a=x[c],s="refVal["+c+"]");if(!i&&r.refs){var u=r.refs[o];if(void 0!==u)return N(a=r.refVal[u],s=L(o,a))}s=L(o);var l=n.call(E,R,r,o);if(void 0===l){var f=p&&p[o];f&&(l=n.inlineRef(f,w.inlineRefs)?f:e.call(E,f,r,p,t))}if(void 0!==l)return function(e,t){var r=S[e];x[r]=t}(o,l),N(l,s);!function(e){delete S[e]}(o)}function L(e,t){var r=x.length;return x[r]=t,S[e]=r,"refVal"+r}function N(e,t){return"object"==typeof e||"boolean"==typeof e?{code:t,schema:e,inline:!0}:{code:t,$async:e&&!!e.$async}}function M(e){var t=k[e];return void 0===t&&(t=k[e]=A.length,A[t]=e),"pattern"+t}function H(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return o.toQuotedString(e);case"object":if(null===e)return"null";var t=a(e),r=C[t];return void 0===r&&(r=C[t]=D.length,D[r]=e),"default"+r}}function z(e,t,r,n){if(!1!==E._opts.validateSchema){var o=e.definition.dependencies;if(o&&!o.every((function(e){return Object.prototype.hasOwnProperty.call(r,e)})))throw new Error("parent schema must have all required keywords: "+o.join(","));var i=e.definition.validateSchema;if(i)if(!i(t)){var a="keyword schema is invalid: "+E.errorsText(i.errors);if("log"!=E._opts.validateSchema)throw new Error(a);E.logger.error(a)}}var s,c=e.definition.compile,u=e.definition.inline,l=e.definition.macro;if(c)s=c.call(E,t,r,n);else if(l)s=l.call(E,t,r,n),!1!==w.validateSchema&&E.validateSchema(s,!0);else if(u)s=u.call(E,n,e.keyword,t,r);else if(!(s=e.definition.validate))return;if(void 0===s)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var f=F.length;return F[f]=s,{code:"customRule"+f,validate:s}}}},29:(e,t,r)=>{"use strict";var n=r(2371),o=r(6471),i=r(5117),a=r(8969),s=r(5127);function c(e,t,r){var n=this._refs[r];if("string"==typeof n){if(!this._refs[n])return c.call(this,e,t,n);n=this._refs[n]}if((n=n||this._schemas[r])instanceof a)return d(n.schema,this._opts.inlineRefs)?n.schema:n.validate||this._compile(n);var o,i,s,l=u.call(this,t,r);return l&&(o=l.schema,t=l.root,s=l.baseId),o instanceof a?i=o.validate||e.call(this,o.schema,t,void 0,s):void 0!==o&&(i=d(o,this._opts.inlineRefs)?o:e.call(this,o,t,void 0,s)),i}function u(e,t){var r=n.parse(t),o=v(r),i=y(this._getId(e.schema));if(0===Object.keys(e.schema).length||o!==i){var s=E(o),c=this._refs[s];if("string"==typeof c)return l.call(this,e,c,r);if(c instanceof a)c.validate||this._compile(c),e=c;else{if(!((c=this._schemas[s])instanceof a))return;if(c.validate||this._compile(c),s==E(t))return{schema:c,root:e,baseId:i};e=c}if(!e.schema)return;i=y(this._getId(e.schema))}return h.call(this,r,i,e.schema,e)}function l(e,t,r){var n=u.call(this,e,t);if(n){var o=n.schema,i=n.baseId;e=n.root;var a=this._getId(o);return a&&(i=w(i,a)),h.call(this,r,i,o,e)}}e.exports=c,c.normalizeId=E,c.fullPath=y,c.url=w,c.ids=function(e){var t=E(this._getId(e)),r={"":t},a={"":y(t,!1)},c={},u=this;return s(e,{allKeys:!0},(function(e,t,s,l,f,h,p){if(""!==t){var d=u._getId(e),m=r[l],g=a[l]+"/"+f;if(void 0!==p&&(g+="/"+("number"==typeof p?p:i.escapeFragment(p))),"string"==typeof d){d=m=E(m?n.resolve(m,d):d);var y=u._refs[d];if("string"==typeof y&&(y=u._refs[y]),y&&y.schema){if(!o(e,y.schema))throw new Error('id "'+d+'" resolves to more than one schema')}else if(d!=E(g))if("#"==d[0]){if(c[d]&&!o(e,c[d]))throw new Error('id "'+d+'" resolves to more than one schema');c[d]=e}else u._refs[d]=g}r[t]=m,a[t]=g}})),c},c.inlineRef=d,c.schema=u;var f=i.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function h(e,t,r,n){if(e.fragment=e.fragment||"","/"==e.fragment.slice(0,1)){for(var o=e.fragment.split("/"),a=1;a<o.length;a++){var s=o[a];if(s){if(void 0===(r=r[s=i.unescapeFragment(s)]))break;var c;if(!f[s]&&((c=this._getId(r))&&(t=w(t,c)),r.$ref)){var l=w(t,r.$ref),h=u.call(this,n,l);h&&(r=h.schema,n=h.root,t=h.baseId)}}}return void 0!==r&&r!==n.schema?{schema:r,root:n,baseId:t}:void 0}}var p=i.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function d(e,t){return!1!==t&&(void 0===t||!0===t?m(e):t?g(e)<=t:void 0)}function m(e){var t;if(Array.isArray(e)){for(var r=0;r<e.length;r++)if("object"==typeof(t=e[r])&&!m(t))return!1}else for(var n in e){if("$ref"==n)return!1;if("object"==typeof(t=e[n])&&!m(t))return!1}return!0}function g(e){var t,r=0;if(Array.isArray(e)){for(var n=0;n<e.length;n++)if("object"==typeof(t=e[n])&&(r+=g(t)),r==1/0)return 1/0}else for(var o in e){if("$ref"==o)return 1/0;if(p[o])r++;else if("object"==typeof(t=e[o])&&(r+=g(t)+1),r==1/0)return 1/0}return r}function y(e,t){return!1!==t&&(e=E(e)),v(n.parse(e))}function v(e){return n.serialize(e).split("#")[0]+"#"}var b=/#\/?$/;function E(e){return e?e.replace(b,""):""}function w(e,t){return t=E(t),n.resolve(e,t)}},1077:(e,t,r)=>{"use strict";var n=r(9784),o=r(5117).toHash;e.exports=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],t=["type","$comment"];return e.all=o(t),e.types=o(["number","integer","string","array","object","boolean","null"]),e.forEach((function(r){r.rules=r.rules.map((function(r){var o;if("object"==typeof r){var i=Object.keys(r)[0];o=r[i],r=i,o.forEach((function(r){t.push(r),e.all[r]=!0}))}return t.push(r),e.all[r]={keyword:r,code:n[r],implements:o}})),e.all.$comment={keyword:"$comment",code:n.$comment},r.type&&(e.types[r.type]=r)})),e.keywords=o(t.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),e.custom={},e}},8969:(e,t,r)=>{"use strict";var n=r(5117);e.exports=function(e){n.copy(e,this)}},7959:e=>{"use strict";e.exports=function(e){for(var t,r=0,n=e.length,o=0;o<n;)r++,(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<n&&56320==(64512&(t=e.charCodeAt(o)))&&o++;return r}},5117:(e,t,r)=>{"use strict";function n(e,t,r,n){var o=n?" !== ":" === ",i=n?" || ":" && ",a=n?"!":"",s=n?"":"!";switch(e){case"null":return t+o+"null";case"array":return a+"Array.isArray("+t+")";case"object":return"("+a+t+i+"typeof "+t+o+'"object"'+i+s+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+o+'"number"'+i+s+"("+t+" % 1)"+i+t+o+t+(r?i+a+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+o+'"'+e+'"'+(r?i+a+"isFinite("+t+")":"")+")";default:return"typeof "+t+o+'"'+e+'"'}}e.exports={copy:function(e,t){for(var r in t=t||{},e)t[r]=e[r];return t},checkDataType:n,checkDataTypes:function(e,t,r){if(1===e.length)return n(e[0],t,r,!0);var o="",a=i(e);for(var s in a.array&&a.object&&(o=a.null?"(":"(!"+t+" || ",o+="typeof "+t+' !== "object")',delete a.null,delete a.array,delete a.object),a.number&&delete a.integer,a)o+=(o?" && ":"")+n(s,t,r,!0);return o},coerceToTypes:function(e,t){if(Array.isArray(t)){for(var r=[],n=0;n<t.length;n++){var i=t[n];(o[i]||"array"===e&&"array"===i)&&(r[r.length]=i)}if(r.length)return r}else{if(o[t])return[t];if("array"===e&&"array"===t)return["array"]}},toHash:i,getProperty:c,escapeQuotes:u,equal:r(6471),ucs2length:r(7959),varOccurences:function(e,t){t+="[^0-9]";var r=e.match(new RegExp(t,"g"));return r?r.length:0},varReplace:function(e,t,r){return t+="([^0-9])",r=r.replace(/\$/g,"$$$$"),e.replace(new RegExp(t,"g"),r+"$1")},schemaHasRules:function(e,t){if("boolean"==typeof e)return!e;for(var r in e)if(t[r])return!0},schemaHasRulesExcept:function(e,t,r){if("boolean"==typeof e)return!e&&"not"!=r;for(var n in e)if(n!=r&&t[n])return!0},schemaUnknownRules:function(e,t){if("boolean"==typeof e)return;for(var r in e)if(!t[r])return r},toQuotedString:l,getPathExpr:function(e,t,r,n){return p(e,r?"'/' + "+t+(n?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):n?"'[' + "+t+" + ']'":"'[\\'' + "+t+" + '\\']'")},getPath:function(e,t,r){var n=l(r?"/"+d(t):c(t));return p(e,n)},getData:function(e,t,r){var n,o,i,a;if(""===e)return"rootData";if("/"==e[0]){if(!f.test(e))throw new Error("Invalid JSON-pointer: "+e);o=e,i="rootData"}else{if(!(a=e.match(h)))throw new Error("Invalid JSON-pointer: "+e);if(n=+a[1],"#"==(o=a[2])){if(n>=t)throw new Error("Cannot access property/index "+n+" levels up, current level is "+t);return r[t-n]}if(n>t)throw new Error("Cannot access data "+n+" levels up, current level is "+t);if(i="data"+(t-n||""),!o)return i}for(var s=i,u=o.split("/"),l=0;l<u.length;l++){var p=u[l];p&&(i+=c(m(p)),s+=" && "+i)}return s},unescapeFragment:function(e){return m(decodeURIComponent(e))},unescapeJsonPointer:m,escapeFragment:function(e){return encodeURIComponent(d(e))},escapeJsonPointer:d};var o=i(["string","number","integer","boolean","null"]);function i(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=!0;return t}var a=/^[a-z$_][a-z$_0-9]*$/i,s=/'|\\/g;function c(e){return"number"==typeof e?"["+e+"]":a.test(e)?"."+e:"['"+u(e)+"']"}function u(e){return e.replace(s,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function l(e){return"'"+u(e)+"'"}var f=/^\/(?:[^~]|~0|~1)*$/,h=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function p(e,t){return'""'==e?t:(e+" + "+t).replace(/([^\\])' \+ '/g,"$1")}function d(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function m(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}},3244:e=>{"use strict";var t=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];e.exports=function(e,r){for(var n=0;n<r.length;n++){e=JSON.parse(JSON.stringify(e));var o,i=r[n].split("/"),a=e;for(o=1;o<i.length;o++)a=a[i[o]];for(o=0;o<t.length;o++){var s=t[o],c=a[s];c&&(a[s]={anyOf:[c,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e}},6152:(e,t,r)=>{"use strict";var n=r(4222);e.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:n.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:n.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}},1510:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;h?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s;var p="maximum"==t,d=p?"exclusiveMaximum":"exclusiveMinimum",m=e.schema[d],g=e.opts.$data&&m&&m.$data,y=p?"<":">",v=p?">":"<",b=void 0;if(!h&&"number"!=typeof s&&void 0!==s)throw new Error(t+" must be number");if(!g&&void 0!==m&&"number"!=typeof m&&"boolean"!=typeof m)throw new Error(d+" must be number or boolean");if(g){var E=e.util.getData(m.$data,a,e.dataPathArr),w="exclusive"+i,x="exclType"+i,S="exclIsNumber"+i,A="' + "+(C="op"+i)+" + '";o+=" var schemaExcl"+i+" = "+E+"; ",o+=" var "+w+"; var "+x+" = typeof "+(E="schemaExcl"+i)+"; if ("+x+" != 'boolean' && "+x+" != 'undefined' && "+x+" != 'number') { ";var k;b=d;(k=k||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(b||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",!1!==e.opts.messages&&(o+=" , message: '"+d+" should be boolean' "),e.opts.verbose&&(o+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var D=o;o=k.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+D+"]); ":o+=" validate.errors = ["+D+"]; return false; ":o+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } else if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" "+x+" == 'number' ? ( ("+w+" = "+n+" === undefined || "+E+" "+y+"= "+n+") ? "+f+" "+v+"= "+E+" : "+f+" "+v+" "+n+" ) : ( ("+w+" = "+E+" === true) ? "+f+" "+v+"= "+n+" : "+f+" "+v+" "+n+" ) || "+f+" !== "+f+") { var op"+i+" = "+w+" ? '"+y+"' : '"+y+"='; ",void 0===s&&(b=d,u=e.errSchemaPath+"/"+d,n=E,h=g)}else{A=y;if((S="number"==typeof m)&&h){var C="'"+A+"'";o+=" if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" ( "+n+" === undefined || "+m+" "+y+"= "+n+" ? "+f+" "+v+"= "+m+" : "+f+" "+v+" "+n+" ) || "+f+" !== "+f+") { "}else{S&&void 0===s?(w=!0,b=d,u=e.errSchemaPath+"/"+d,n=m,v+="="):(S&&(n=Math[p?"min":"max"](m,s)),m===(!S||n)?(w=!0,b=d,u=e.errSchemaPath+"/"+d,v+="="):(w=!1,A+="="));C="'"+A+"'";o+=" if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" "+f+" "+v+" "+n+" || "+f+" !== "+f+") { "}}b=b||t,(k=k||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(b||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { comparison: "+C+", limit: "+n+", exclusive: "+w+" } ",!1!==e.opts.messages&&(o+=" , message: 'should be "+A+" ",o+=h?"' + "+n:n+"'"),e.opts.verbose&&(o+=" , schema: ",o+=h?"validate.schema"+c:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";D=o;return o=k.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+D+"]); ":o+=" validate.errors = ["+D+"]; return false; ":o+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } ",l&&(o+=" else { "),o}},1978:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;if(h?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s,!h&&"number"!=typeof s)throw new Error(t+" must be number");o+="if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" "+f+".length "+("maxItems"==t?">":"<")+" "+n+") { ";var p=t,d=d||[];d.push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(p||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(o+=" , message: 'should NOT have ",o+="maxItems"==t?"more":"fewer",o+=" than ",o+=h?"' + "+n+" + '":""+s,o+=" items' "),e.opts.verbose&&(o+=" , schema: ",o+=h?"validate.schema"+c:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var m=o;return o=d.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+m+"]); ":o+=" validate.errors = ["+m+"]; return false; ":o+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",l&&(o+=" else { "),o}},6179:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;if(h?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s,!h&&"number"!=typeof s)throw new Error(t+" must be number");var p="maxLength"==t?">":"<";o+="if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),!1===e.opts.unicode?o+=" "+f+".length ":o+=" ucs2length("+f+") ",o+=" "+p+" "+n+") { ";var d=t,m=m||[];m.push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(d||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(o+=" , message: 'should NOT be ",o+="maxLength"==t?"longer":"shorter",o+=" than ",o+=h?"' + "+n+" + '":""+s,o+=" characters' "),e.opts.verbose&&(o+=" , schema: ",o+=h?"validate.schema"+c:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var g=o;return o=m.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+g+"]); ":o+=" validate.errors = ["+g+"]; return false; ":o+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",l&&(o+=" else { "),o}},206:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;if(h?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s,!h&&"number"!=typeof s)throw new Error(t+" must be number");o+="if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" Object.keys("+f+").length "+("maxProperties"==t?">":"<")+" "+n+") { ";var p=t,d=d||[];d.push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(p||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(o+=" , message: 'should NOT have ",o+="maxProperties"==t?"more":"fewer",o+=" than ",o+=h?"' + "+n+" + '":""+s,o+=" properties' "),e.opts.verbose&&(o+=" , schema: ",o+=h?"validate.schema"+c:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var m=o;return o=d.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+m+"]); ":o+=" validate.errors = ["+m+"]; return false; ":o+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",l&&(o+=" else { "),o}},3137:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.schema[t],i=e.schemaPath+e.util.getProperty(t),a=e.errSchemaPath+"/"+t,s=!e.opts.allErrors,c=e.util.copy(e),u="";c.level++;var l="valid"+c.level,f=c.baseId,h=!0,p=o;if(p)for(var d,m=-1,g=p.length-1;m<g;)d=p[m+=1],(e.opts.strictKeywords?"object"==typeof d&&Object.keys(d).length>0||!1===d:e.util.schemaHasRules(d,e.RULES.all))&&(h=!1,c.schema=d,c.schemaPath=i+"["+m+"]",c.errSchemaPath=a+"/"+m,n+=" "+e.validate(c)+" ",c.baseId=f,s&&(n+=" if ("+l+") { ",u+="}"));return s&&(n+=h?" if (true) { ":" "+u.slice(0,-1)+" "),n}},3229:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h="errs__"+o,p=e.util.copy(e),d="";p.level++;var m="valid"+p.level,g=a.every((function(t){return e.opts.strictKeywords?"object"==typeof t&&Object.keys(t).length>0||!1===t:e.util.schemaHasRules(t,e.RULES.all)}));if(g){var y=p.baseId;n+=" var "+h+" = errors; var "+f+" = false; ";var v=e.compositeRule;e.compositeRule=p.compositeRule=!0;var b=a;if(b)for(var E,w=-1,x=b.length-1;w<x;)E=b[w+=1],p.schema=E,p.schemaPath=s+"["+w+"]",p.errSchemaPath=c+"/"+w,n+=" "+e.validate(p)+" ",p.baseId=y,n+=" "+f+" = "+f+" || "+m+"; if (!"+f+") { ",d+="}";e.compositeRule=p.compositeRule=v,n+=" "+d+" if (!"+f+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else u&&(n+=" if (true) { ");return n}},3159:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.schema[t],i=e.errSchemaPath+"/"+t,a=(e.opts.allErrors,e.util.toQuotedString(o));return!0===e.opts.$comment?n+=" console.log("+a+");":"function"==typeof e.opts.$comment&&(n+=" self._opts.$comment("+a+", "+e.util.toQuotedString(i)+", validate.root.schema);"),n}},2267:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h=e.opts.$data&&a&&a.$data;h&&(n+=" var schema"+o+" = "+e.util.getData(a.$data,i,e.dataPathArr)+"; "),h||(n+=" var schema"+o+" = validate.schema"+s+";"),n+="var "+f+" = equal("+l+", schema"+o+"); if (!"+f+") { ";var p=p||[];p.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { allowedValue: schema"+o+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to constant' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var d=n;return n=p.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+d+"]); ":n+=" validate.errors = ["+d+"]; return false; ":n+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",u&&(n+=" else { "),n}},9629:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h="errs__"+o,p=e.util.copy(e);p.level++;var d="valid"+p.level,m="i"+o,g=p.dataLevel=e.dataLevel+1,y="data"+g,v=e.baseId,b=e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all);if(n+="var "+h+" = errors;var "+f+";",b){var E=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.schema=a,p.schemaPath=s,p.errSchemaPath=c,n+=" var "+d+" = false; for (var "+m+" = 0; "+m+" < "+l+".length; "+m+"++) { ",p.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers,!0);var w=l+"["+m+"]";p.dataPathArr[g]=m;var x=e.validate(p);p.baseId=v,e.util.varOccurences(x,y)<2?n+=" "+e.util.varReplace(x,y,w)+" ":n+=" var "+y+" = "+w+"; "+x+" ",n+=" if ("+d+") break; } ",e.compositeRule=p.compositeRule=E,n+=" if (!"+d+") {"}else n+=" if ("+l+".length == 0) {";var S=S||[];S.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should contain a valid item' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var A=n;return n=S.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+A+"]); ":n+=" validate.errors = ["+A+"]; return false; ":n+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { ",b&&(n+=" errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } "),e.opts.allErrors&&(n+=" } "),n}},5554:e=>{"use strict";e.exports=function(e,t,r){var n,o,i=" ",a=e.level,s=e.dataLevel,c=e.schema[t],u=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,f=!e.opts.allErrors,h="data"+(s||""),p="valid"+a,d="errs__"+a,m=e.opts.$data&&c&&c.$data;m?(i+=" var schema"+a+" = "+e.util.getData(c.$data,s,e.dataPathArr)+"; ",o="schema"+a):o=c;var g,y,v,b,E,w=this,x="definition"+a,S=w.definition,A="";if(m&&S.$data){E="keywordValidate"+a;var k=S.validateSchema;i+=" var "+x+" = RULES.custom['"+t+"'].definition; var "+E+" = "+x+".validate;"}else{if(!(b=e.useCustomRule(w,c,e.schema,e)))return;o="validate.schema"+u,E=b.code,g=S.compile,y=S.inline,v=S.macro}var D=E+".errors",C="i"+a,F="ruleErr"+a,P=S.async;if(P&&!e.async)throw new Error("async keyword in sync schema");if(y||v||(i+=D+" = null;"),i+="var "+d+" = errors;var "+p+";",m&&S.$data&&(A+="}",i+=" if ("+o+" === undefined) { "+p+" = true; } else { ",k&&(A+="}",i+=" "+p+" = "+x+".validateSchema("+o+"); if ("+p+") { ")),y)S.statements?i+=" "+b.validate+" ":i+=" "+p+" = "+b.validate+"; ";else if(v){var O=e.util.copy(e);A="";O.level++;var T="valid"+O.level;O.schema=b.validate,O.schemaPath="";var j=e.compositeRule;e.compositeRule=O.compositeRule=!0;var I=e.validate(O).replace(/validate\.schema/g,E);e.compositeRule=O.compositeRule=j,i+=" "+I}else{(L=L||[]).push(i),i="",i+=" "+E+".call( ",e.opts.passContext?i+="this":i+="self",g||!1===S.schema?i+=" , "+h+" ":i+=" , "+o+" , "+h+" , validate.schema"+e.schemaPath+" ",i+=" , (dataPath || '')",'""'!=e.errorPath&&(i+=" + "+e.errorPath);var _=s?"data"+(s-1||""):"parentData",R=s?e.dataPathArr[s]:"parentDataProperty",B=i+=" , "+_+" , "+R+" , rootData ) ";i=L.pop(),!1===S.errors?(i+=" "+p+" = ",P&&(i+="await "),i+=B+"; "):i+=P?" var "+(D="customErrors"+a)+" = null; try { "+p+" = await "+B+"; } catch (e) { "+p+" = false; if (e instanceof ValidationError) "+D+" = e.errors; else throw e; } ":" "+D+" = null; "+p+" = "+B+"; "}if(S.modifying&&(i+=" if ("+_+") "+h+" = "+_+"["+R+"];"),i+=""+A,S.valid)f&&(i+=" if (true) { ");else{var L;i+=" if ( ",void 0===S.valid?(i+=" !",i+=v?""+T:""+p):i+=" "+!S.valid+" ",i+=") { ",n=w.keyword,(L=L||[]).push(i),i="",(L=L||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { keyword: '"+w.keyword+"' } ",!1!==e.opts.messages&&(i+=" , message: 'should pass \""+w.keyword+"\" keyword validation' "),e.opts.verbose&&(i+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var N=i;i=L.pop(),!e.compositeRule&&f?e.async?i+=" throw new ValidationError(["+N+"]); ":i+=" validate.errors = ["+N+"]; return false; ":i+=" var err = "+N+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var M=i;i=L.pop(),y?S.errors?"full"!=S.errors&&(i+=" for (var "+C+"="+d+"; "+C+"<errors; "+C+"++) { var "+F+" = vErrors["+C+"]; if ("+F+".dataPath === undefined) "+F+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+F+".schemaPath === undefined) { "+F+'.schemaPath = "'+l+'"; } ',e.opts.verbose&&(i+=" "+F+".schema = "+o+"; "+F+".data = "+h+"; "),i+=" } "):!1===S.errors?i+=" "+M+" ":(i+=" if ("+d+" == errors) { "+M+" } else { for (var "+C+"="+d+"; "+C+"<errors; "+C+"++) { var "+F+" = vErrors["+C+"]; if ("+F+".dataPath === undefined) "+F+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+F+".schemaPath === undefined) { "+F+'.schemaPath = "'+l+'"; } ',e.opts.verbose&&(i+=" "+F+".schema = "+o+"; "+F+".data = "+h+"; "),i+=" } } "):v?(i+=" var err = ",!1!==e.createErrors?(i+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { keyword: '"+w.keyword+"' } ",!1!==e.opts.messages&&(i+=" , message: 'should pass \""+w.keyword+"\" keyword validation' "),e.opts.verbose&&(i+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&f&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; ")):!1===S.errors?i+=" "+M+" ":(i+=" if (Array.isArray("+D+")) { if (vErrors === null) vErrors = "+D+"; else vErrors = vErrors.concat("+D+"); errors = vErrors.length; for (var "+C+"="+d+"; "+C+"<errors; "+C+"++) { var "+F+" = vErrors["+C+"]; if ("+F+".dataPath === undefined) "+F+".dataPath = (dataPath || '') + "+e.errorPath+"; "+F+'.schemaPath = "'+l+'"; ',e.opts.verbose&&(i+=" "+F+".schema = "+o+"; "+F+".data = "+h+"; "),i+=" } } else { "+M+" } "),i+=" } ",f&&(i+=" else { ")}return i}},1915:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="errs__"+o,h=e.util.copy(e),p="";h.level++;var d="valid"+h.level,m={},g={},y=e.opts.ownProperties;for(w in a)if("__proto__"!=w){var v=a[w],b=Array.isArray(v)?g:m;b[w]=v}n+="var "+f+" = errors;";var E=e.errorPath;for(var w in n+="var missing"+o+";",g)if((b=g[w]).length){if(n+=" if ( "+l+e.util.getProperty(w)+" !== undefined ",y&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(w)+"') "),u){n+=" && ( ";var x=b;if(x)for(var S=-1,A=x.length-1;S<A;){O=x[S+=1],S&&(n+=" || "),n+=" ( ( "+(_=l+(I=e.util.getProperty(O)))+" === undefined ",y&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(O)+"') "),n+=") && (missing"+o+" = "+e.util.toQuotedString(e.opts.jsonPointers?O:I)+") ) "}n+=")) { ";var k="missing"+o,D="' + "+k+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(E,k,!0):E+" + "+k);var C=C||[];C.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(w)+"', missingProperty: '"+D+"', depsCount: "+b.length+", deps: '"+e.util.escapeQuotes(1==b.length?b[0]:b.join(", "))+"' } ",!1!==e.opts.messages&&(n+=" , message: 'should have ",1==b.length?n+="property "+e.util.escapeQuotes(b[0]):n+="properties "+e.util.escapeQuotes(b.join(", ")),n+=" when property "+e.util.escapeQuotes(w)+" is present' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var F=n;n=C.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+F+"]); ":n+=" validate.errors = ["+F+"]; return false; ":n+=" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{n+=" ) { ";var P=b;if(P)for(var O,T=-1,j=P.length-1;T<j;){O=P[T+=1];var I=e.util.getProperty(O),_=(D=e.util.escapeQuotes(O),l+I);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(E,O,e.opts.jsonPointers)),n+=" if ( "+_+" === undefined ",y&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(O)+"') "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(w)+"', missingProperty: '"+D+"', depsCount: "+b.length+", deps: '"+e.util.escapeQuotes(1==b.length?b[0]:b.join(", "))+"' } ",!1!==e.opts.messages&&(n+=" , message: 'should have ",1==b.length?n+="property "+e.util.escapeQuotes(b[0]):n+="properties "+e.util.escapeQuotes(b.join(", ")),n+=" when property "+e.util.escapeQuotes(w)+" is present' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}n+=" } ",u&&(p+="}",n+=" else { ")}e.errorPath=E;var R=h.baseId;for(var w in m){v=m[w];(e.opts.strictKeywords?"object"==typeof v&&Object.keys(v).length>0||!1===v:e.util.schemaHasRules(v,e.RULES.all))&&(n+=" "+d+" = true; if ( "+l+e.util.getProperty(w)+" !== undefined ",y&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(w)+"') "),n+=") { ",h.schema=v,h.schemaPath=s+e.util.getProperty(w),h.errSchemaPath=c+"/"+e.util.escapeFragment(w),n+=" "+e.validate(h)+" ",h.baseId=R,n+=" } ",u&&(n+=" if ("+d+") { ",p+="}"))}return u&&(n+=" "+p+" if ("+f+" == errors) {"),n}},734:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h=e.opts.$data&&a&&a.$data;h&&(n+=" var schema"+o+" = "+e.util.getData(a.$data,i,e.dataPathArr)+"; ");var p="i"+o,d="schema"+o;h||(n+=" var "+d+" = validate.schema"+s+";"),n+="var "+f+";",h&&(n+=" if (schema"+o+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+o+")) "+f+" = false; else {"),n+=f+" = false;for (var "+p+"=0; "+p+"<"+d+".length; "+p+"++) if (equal("+l+", "+d+"["+p+"])) { "+f+" = true; break; }",h&&(n+=" } "),n+=" if (!"+f+") { ";var m=m||[];m.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { allowedValues: schema"+o+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var g=n;return n=m.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+g+"]); ":n+=" validate.errors = ["+g+"]; return false; ":n+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",u&&(n+=" else { "),n}},22:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||"");if(!1===e.opts.format)return u&&(n+=" if (true) { "),n;var f,h=e.opts.$data&&a&&a.$data;h?(n+=" var schema"+o+" = "+e.util.getData(a.$data,i,e.dataPathArr)+"; ",f="schema"+o):f=a;var p=e.opts.unknownFormats,d=Array.isArray(p);if(h){n+=" var "+(m="format"+o)+" = formats["+f+"]; var "+(g="isObject"+o)+" = typeof "+m+" == 'object' && !("+m+" instanceof RegExp) && "+m+".validate; var "+(y="formatType"+o)+" = "+g+" && "+m+".type || 'string'; if ("+g+") { ",e.async&&(n+=" var async"+o+" = "+m+".async; "),n+=" "+m+" = "+m+".validate; } if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'string') || "),n+=" (","ignore"!=p&&(n+=" ("+f+" && !"+m+" ",d&&(n+=" && self._opts.unknownFormats.indexOf("+f+") == -1 "),n+=") || "),n+=" ("+m+" && "+y+" == '"+r+"' && !(typeof "+m+" == 'function' ? ",e.async?n+=" (async"+o+" ? await "+m+"("+l+") : "+m+"("+l+")) ":n+=" "+m+"("+l+") ",n+=" : "+m+".test("+l+"))))) {"}else{var m;if(!(m=e.formats[a])){if("ignore"==p)return e.logger.warn('unknown format "'+a+'" ignored in schema at path "'+e.errSchemaPath+'"'),u&&(n+=" if (true) { "),n;if(d&&p.indexOf(a)>=0)return u&&(n+=" if (true) { "),n;throw new Error('unknown format "'+a+'" is used in schema at path "'+e.errSchemaPath+'"')}var g,y=(g="object"==typeof m&&!(m instanceof RegExp)&&m.validate)&&m.type||"string";if(g){var v=!0===m.async;m=m.validate}if(y!=r)return u&&(n+=" if (true) { "),n;if(v){if(!e.async)throw new Error("async format in sync schema");n+=" if (!(await "+(b="formats"+e.util.getProperty(a)+".validate")+"("+l+"))) { "}else{n+=" if (! ";var b="formats"+e.util.getProperty(a);g&&(b+=".validate"),n+="function"==typeof m?" "+b+"("+l+") ":" "+b+".test("+l+") ",n+=") { "}}var E=E||[];E.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { format: ",n+=h?""+f:""+e.util.toQuotedString(a),n+=" } ",!1!==e.opts.messages&&(n+=" , message: 'should match format \"",n+=h?"' + "+f+" + '":""+e.util.escapeQuotes(a),n+="\"' "),e.opts.verbose&&(n+=" , schema: ",n+=h?"validate.schema"+s:""+e.util.toQuotedString(a),n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var w=n;return n=E.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+w+"]); ":n+=" validate.errors = ["+w+"]; return false; ":n+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",u&&(n+=" else { "),n}},220:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h="errs__"+o,p=e.util.copy(e);p.level++;var d="valid"+p.level,m=e.schema.then,g=e.schema.else,y=void 0!==m&&(e.opts.strictKeywords?"object"==typeof m&&Object.keys(m).length>0||!1===m:e.util.schemaHasRules(m,e.RULES.all)),v=void 0!==g&&(e.opts.strictKeywords?"object"==typeof g&&Object.keys(g).length>0||!1===g:e.util.schemaHasRules(g,e.RULES.all)),b=p.baseId;if(y||v){var E;p.createErrors=!1,p.schema=a,p.schemaPath=s,p.errSchemaPath=c,n+=" var "+h+" = errors; var "+f+" = true; ";var w=e.compositeRule;e.compositeRule=p.compositeRule=!0,n+=" "+e.validate(p)+" ",p.baseId=b,p.createErrors=!0,n+=" errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",e.compositeRule=p.compositeRule=w,y?(n+=" if ("+d+") { ",p.schema=e.schema.then,p.schemaPath=e.schemaPath+".then",p.errSchemaPath=e.errSchemaPath+"/then",n+=" "+e.validate(p)+" ",p.baseId=b,n+=" "+f+" = "+d+"; ",y&&v?n+=" var "+(E="ifClause"+o)+" = 'then'; ":E="'then'",n+=" } ",v&&(n+=" else { ")):n+=" if (!"+d+") { ",v&&(p.schema=e.schema.else,p.schemaPath=e.schemaPath+".else",p.errSchemaPath=e.errSchemaPath+"/else",n+=" "+e.validate(p)+" ",p.baseId=b,n+=" "+f+" = "+d+"; ",y&&v?n+=" var "+(E="ifClause"+o)+" = 'else'; ":E="'else'",n+=" } "),n+=" if (!"+f+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { failingKeyword: "+E+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match \"' + "+E+" + '\" schema' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } ",u&&(n+=" else { ")}else u&&(n+=" if (true) { ");return n}},9784:(e,t,r)=>{"use strict";e.exports={$ref:r(1618),allOf:r(3137),anyOf:r(3229),$comment:r(3159),const:r(2267),contains:r(9629),dependencies:r(1915),enum:r(734),format:r(22),if:r(220),items:r(4787),maximum:r(1510),minimum:r(1510),maxItems:r(1978),minItems:r(1978),maxLength:r(6179),minLength:r(6179),maxProperties:r(206),minProperties:r(206),multipleOf:r(7086),not:r(4734),oneOf:r(3942),pattern:r(8741),properties:r(1221),propertyNames:r(1874),required:r(6262),uniqueItems:r(7392),validate:r(805)}},4787:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h="errs__"+o,p=e.util.copy(e),d="";p.level++;var m="valid"+p.level,g="i"+o,y=p.dataLevel=e.dataLevel+1,v="data"+y,b=e.baseId;if(n+="var "+h+" = errors;var "+f+";",Array.isArray(a)){var E=e.schema.additionalItems;if(!1===E){n+=" "+f+" = "+l+".length <= "+a.length+"; ";var w=c;c=e.errSchemaPath+"/additionalItems",n+=" if (!"+f+") { ";var x=x||[];x.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+a.length+" } ",!1!==e.opts.messages&&(n+=" , message: 'should NOT have more than "+a.length+" items' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var S=n;n=x.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+S+"]); ":n+=" validate.errors = ["+S+"]; return false; ":n+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c=w,u&&(d+="}",n+=" else { ")}var A=a;if(A)for(var k,D=-1,C=A.length-1;D<C;)if(k=A[D+=1],e.opts.strictKeywords?"object"==typeof k&&Object.keys(k).length>0||!1===k:e.util.schemaHasRules(k,e.RULES.all)){n+=" "+m+" = true; if ("+l+".length > "+D+") { ";var F=l+"["+D+"]";p.schema=k,p.schemaPath=s+"["+D+"]",p.errSchemaPath=c+"/"+D,p.errorPath=e.util.getPathExpr(e.errorPath,D,e.opts.jsonPointers,!0),p.dataPathArr[y]=D;var P=e.validate(p);p.baseId=b,e.util.varOccurences(P,v)<2?n+=" "+e.util.varReplace(P,v,F)+" ":n+=" var "+v+" = "+F+"; "+P+" ",n+=" } ",u&&(n+=" if ("+m+") { ",d+="}")}if("object"==typeof E&&(e.opts.strictKeywords?"object"==typeof E&&Object.keys(E).length>0||!1===E:e.util.schemaHasRules(E,e.RULES.all))){p.schema=E,p.schemaPath=e.schemaPath+".additionalItems",p.errSchemaPath=e.errSchemaPath+"/additionalItems",n+=" "+m+" = true; if ("+l+".length > "+a.length+") { for (var "+g+" = "+a.length+"; "+g+" < "+l+".length; "+g+"++) { ",p.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);F=l+"["+g+"]";p.dataPathArr[y]=g;P=e.validate(p);p.baseId=b,e.util.varOccurences(P,v)<2?n+=" "+e.util.varReplace(P,v,F)+" ":n+=" var "+v+" = "+F+"; "+P+" ",u&&(n+=" if (!"+m+") break; "),n+=" } } ",u&&(n+=" if ("+m+") { ",d+="}")}}else if(e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all)){p.schema=a,p.schemaPath=s,p.errSchemaPath=c,n+=" for (var "+g+" = 0; "+g+" < "+l+".length; "+g+"++) { ",p.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);F=l+"["+g+"]";p.dataPathArr[y]=g;P=e.validate(p);p.baseId=b,e.util.varOccurences(P,v)<2?n+=" "+e.util.varReplace(P,v,F)+" ":n+=" var "+v+" = "+F+"; "+P+" ",u&&(n+=" if (!"+m+") break; "),n+=" }"}return u&&(n+=" "+d+" if ("+h+" == errors) {"),n}},7086:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;if(h?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s,!h&&"number"!=typeof s)throw new Error(t+" must be number");o+="var division"+i+";if (",h&&(o+=" "+n+" !== undefined && ( typeof "+n+" != 'number' || "),o+=" (division"+i+" = "+f+" / "+n+", ",e.opts.multipleOfPrecision?o+=" Math.abs(Math.round(division"+i+") - division"+i+") > 1e-"+e.opts.multipleOfPrecision+" ":o+=" division"+i+" !== parseInt(division"+i+") ",o+=" ) ",h&&(o+=" ) "),o+=" ) { ";var p=p||[];p.push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { multipleOf: "+n+" } ",!1!==e.opts.messages&&(o+=" , message: 'should be multiple of ",o+=h?"' + "+n:n+"'"),e.opts.verbose&&(o+=" , schema: ",o+=h?"validate.schema"+c:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var d=o;return o=p.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+d+"]); ":o+=" validate.errors = ["+d+"]; return false; ":o+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",l&&(o+=" else { "),o}},4734:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="errs__"+o,h=e.util.copy(e);h.level++;var p="valid"+h.level;if(e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all)){h.schema=a,h.schemaPath=s,h.errSchemaPath=c,n+=" var "+f+" = errors; ";var d,m=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.createErrors=!1,h.opts.allErrors&&(d=h.opts.allErrors,h.opts.allErrors=!1),n+=" "+e.validate(h)+" ",h.createErrors=!0,d&&(h.opts.allErrors=d),e.compositeRule=h.compositeRule=m,n+=" if ("+p+") { ";var g=g||[];g.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var y=n;n=g.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else n+=" var err = ",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(n+=" if (false) { ");return n}},3942:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h="errs__"+o,p=e.util.copy(e),d="";p.level++;var m="valid"+p.level,g=p.baseId,y="prevValid"+o,v="passingSchemas"+o;n+="var "+h+" = errors , "+y+" = false , "+f+" = false , "+v+" = null; ";var b=e.compositeRule;e.compositeRule=p.compositeRule=!0;var E=a;if(E)for(var w,x=-1,S=E.length-1;x<S;)w=E[x+=1],(e.opts.strictKeywords?"object"==typeof w&&Object.keys(w).length>0||!1===w:e.util.schemaHasRules(w,e.RULES.all))?(p.schema=w,p.schemaPath=s+"["+x+"]",p.errSchemaPath=c+"/"+x,n+=" "+e.validate(p)+" ",p.baseId=g):n+=" var "+m+" = true; ",x&&(n+=" if ("+m+" && "+y+") { "+f+" = false; "+v+" = ["+v+", "+x+"]; } else { ",d+="}"),n+=" if ("+m+") { "+f+" = "+y+" = true; "+v+" = "+x+"; }";return e.compositeRule=p.compositeRule=b,n+=d+"if (!"+f+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { passingSchemas: "+v+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+="} else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; }",e.opts.allErrors&&(n+=" } "),n}},8741:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;h?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s,o+="if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'string') || "),o+=" !"+(h?"(new RegExp("+n+"))":e.usePattern(s))+".test("+f+") ) { ";var p=p||[];p.push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { pattern: ",o+=h?""+n:""+e.util.toQuotedString(s),o+=" } ",!1!==e.opts.messages&&(o+=" , message: 'should match pattern \"",o+=h?"' + "+n+" + '":""+e.util.escapeQuotes(s),o+="\"' "),e.opts.verbose&&(o+=" , schema: ",o+=h?"validate.schema"+c:""+e.util.toQuotedString(s),o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var d=o;return o=p.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+d+"]); ":o+=" validate.errors = ["+d+"]; return false; ":o+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",l&&(o+=" else { "),o}},1221:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="errs__"+o,h=e.util.copy(e),p="";h.level++;var d="valid"+h.level,m="key"+o,g="idx"+o,y=h.dataLevel=e.dataLevel+1,v="data"+y,b="dataProperties"+o,E=Object.keys(a||{}).filter(I),w=e.schema.patternProperties||{},x=Object.keys(w).filter(I),S=e.schema.additionalProperties,A=E.length||x.length,k=!1===S,D="object"==typeof S&&Object.keys(S).length,C=e.opts.removeAdditional,F=k||D||C,P=e.opts.ownProperties,O=e.baseId,T=e.schema.required;if(T&&(!e.opts.$data||!T.$data)&&T.length<e.opts.loopRequired)var j=e.util.toHash(T);function I(e){return"__proto__"!==e}if(n+="var "+f+" = errors;var "+d+" = true;",P&&(n+=" var "+b+" = undefined;"),F){if(n+=P?" "+b+" = "+b+" || Object.keys("+l+"); for (var "+g+"=0; "+g+"<"+b+".length; "+g+"++) { var "+m+" = "+b+"["+g+"]; ":" for (var "+m+" in "+l+") { ",A){if(n+=" var isAdditional"+o+" = !(false ",E.length)if(E.length>8)n+=" || validate.schema"+s+".hasOwnProperty("+m+") ";else{var _=E;if(_)for(var R=-1,B=_.length-1;R<B;)K=_[R+=1],n+=" || "+m+" == "+e.util.toQuotedString(K)+" "}if(x.length){var L=x;if(L)for(var N=-1,M=L.length-1;N<M;)ie=L[N+=1],n+=" || "+e.usePattern(ie)+".test("+m+") "}n+=" ); if (isAdditional"+o+") { "}if("all"==C)n+=" delete "+l+"["+m+"]; ";else{var H=e.errorPath,z="' + "+m+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers)),k)if(C)n+=" delete "+l+"["+m+"]; ";else{n+=" "+d+" = false; ";var U=c;c=e.errSchemaPath+"/additionalProperties",(re=re||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { additionalProperty: '"+z+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is an invalid additional property":n+="should NOT have additional properties",n+="' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var $=n;n=re.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+$+"]); ":n+=" validate.errors = ["+$+"]; return false; ":n+=" var err = "+$+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c=U,u&&(n+=" break; ")}else if(D)if("failing"==C){n+=" var "+f+" = errors; ";var q=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.schema=S,h.schemaPath=e.schemaPath+".additionalProperties",h.errSchemaPath=e.errSchemaPath+"/additionalProperties",h.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var V=l+"["+m+"]";h.dataPathArr[y]=m;var G=e.validate(h);h.baseId=O,e.util.varOccurences(G,v)<2?n+=" "+e.util.varReplace(G,v,V)+" ":n+=" var "+v+" = "+V+"; "+G+" ",n+=" if (!"+d+") { errors = "+f+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+l+"["+m+"]; } ",e.compositeRule=h.compositeRule=q}else{h.schema=S,h.schemaPath=e.schemaPath+".additionalProperties",h.errSchemaPath=e.errSchemaPath+"/additionalProperties",h.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);V=l+"["+m+"]";h.dataPathArr[y]=m;G=e.validate(h);h.baseId=O,e.util.varOccurences(G,v)<2?n+=" "+e.util.varReplace(G,v,V)+" ":n+=" var "+v+" = "+V+"; "+G+" ",u&&(n+=" if (!"+d+") break; ")}e.errorPath=H}A&&(n+=" } "),n+=" } ",u&&(n+=" if ("+d+") { ",p+="}")}var W=e.opts.useDefaults&&!e.compositeRule;if(E.length){var Q=E;if(Q)for(var K,Z=-1,Y=Q.length-1;Z<Y;){var X=a[K=Q[Z+=1]];if(e.opts.strictKeywords?"object"==typeof X&&Object.keys(X).length>0||!1===X:e.util.schemaHasRules(X,e.RULES.all)){var J=e.util.getProperty(K),ee=(V=l+J,W&&void 0!==X.default);h.schema=X,h.schemaPath=s+J,h.errSchemaPath=c+"/"+e.util.escapeFragment(K),h.errorPath=e.util.getPath(e.errorPath,K,e.opts.jsonPointers),h.dataPathArr[y]=e.util.toQuotedString(K);G=e.validate(h);if(h.baseId=O,e.util.varOccurences(G,v)<2){G=e.util.varReplace(G,v,V);var te=V}else{te=v;n+=" var "+v+" = "+V+"; "}if(ee)n+=" "+G+" ";else{if(j&&j[K]){n+=" if ( "+te+" === undefined ",P&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(K)+"') "),n+=") { "+d+" = false; ";H=e.errorPath,U=c;var re,ne=e.util.escapeQuotes(K);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(H,K,e.opts.jsonPointers)),c=e.errSchemaPath+"/required",(re=re||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+ne+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+ne+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";$=n;n=re.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+$+"]); ":n+=" validate.errors = ["+$+"]; return false; ":n+=" var err = "+$+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c=U,e.errorPath=H,n+=" } else { "}else u?(n+=" if ( "+te+" === undefined ",P&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(K)+"') "),n+=") { "+d+" = true; } else { "):(n+=" if ("+te+" !== undefined ",P&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(K)+"') "),n+=" ) { ");n+=" "+G+" } "}}u&&(n+=" if ("+d+") { ",p+="}")}}if(x.length){var oe=x;if(oe)for(var ie,ae=-1,se=oe.length-1;ae<se;){X=w[ie=oe[ae+=1]];if(e.opts.strictKeywords?"object"==typeof X&&Object.keys(X).length>0||!1===X:e.util.schemaHasRules(X,e.RULES.all)){h.schema=X,h.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(ie),h.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(ie),n+=P?" "+b+" = "+b+" || Object.keys("+l+"); for (var "+g+"=0; "+g+"<"+b+".length; "+g+"++) { var "+m+" = "+b+"["+g+"]; ":" for (var "+m+" in "+l+") { ",n+=" if ("+e.usePattern(ie)+".test("+m+")) { ",h.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);V=l+"["+m+"]";h.dataPathArr[y]=m;G=e.validate(h);h.baseId=O,e.util.varOccurences(G,v)<2?n+=" "+e.util.varReplace(G,v,V)+" ":n+=" var "+v+" = "+V+"; "+G+" ",u&&(n+=" if (!"+d+") break; "),n+=" } ",u&&(n+=" else "+d+" = true; "),n+=" } ",u&&(n+=" if ("+d+") { ",p+="}")}}}return u&&(n+=" "+p+" if ("+f+" == errors) {"),n}},1874:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="errs__"+o,h=e.util.copy(e);h.level++;var p="valid"+h.level;if(n+="var "+f+" = errors;",e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all)){h.schema=a,h.schemaPath=s,h.errSchemaPath=c;var d="key"+o,m="idx"+o,g="i"+o,y="' + "+d+" + '",v="data"+(h.dataLevel=e.dataLevel+1),b="dataProperties"+o,E=e.opts.ownProperties,w=e.baseId;E&&(n+=" var "+b+" = undefined; "),n+=E?" "+b+" = "+b+" || Object.keys("+l+"); for (var "+m+"=0; "+m+"<"+b+".length; "+m+"++) { var "+d+" = "+b+"["+m+"]; ":" for (var "+d+" in "+l+") { ",n+=" var startErrs"+o+" = errors; ";var x=d,S=e.compositeRule;e.compositeRule=h.compositeRule=!0;var A=e.validate(h);h.baseId=w,e.util.varOccurences(A,v)<2?n+=" "+e.util.varReplace(A,v,x)+" ":n+=" var "+v+" = "+x+"; "+A+" ",e.compositeRule=h.compositeRule=S,n+=" if (!"+p+") { for (var "+g+"=startErrs"+o+"; "+g+"<errors; "+g+"++) { vErrors["+g+"].propertyName = "+d+"; } var err = ",!1!==e.createErrors?(n+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { propertyName: '"+y+"' } ",!1!==e.opts.messages&&(n+=" , message: 'property name \\'"+y+"\\' is invalid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),u&&(n+=" break; "),n+=" } }"}return u&&(n+=" if ("+f+" == errors) {"),n}},1618:e=>{"use strict";e.exports=function(e,t,r){var n,o,i=" ",a=e.level,s=e.dataLevel,c=e.schema[t],u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(s||""),h="valid"+a;if("#"==c||"#/"==c)e.isRoot?(n=e.async,o="validate"):(n=!0===e.root.schema.$async,o="root.refVal[0]");else{var p=e.resolveRef(e.baseId,c,e.isRoot);if(void 0===p){var d=e.MissingRefError.message(e.baseId,c);if("fail"==e.opts.missingRefs){e.logger.error(d),(v=v||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { ref: '"+e.util.escapeQuotes(c)+"' } ",!1!==e.opts.messages&&(i+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(c)+"' "),e.opts.verbose&&(i+=" , schema: "+e.util.toQuotedString(c)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var m=i;i=v.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+m+"]); ":i+=" validate.errors = ["+m+"]; return false; ":i+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l&&(i+=" if (false) { ")}else{if("ignore"!=e.opts.missingRefs)throw new e.MissingRefError(e.baseId,c,d);e.logger.warn(d),l&&(i+=" if (true) { ")}}else if(p.inline){var g=e.util.copy(e);g.level++;var y="valid"+g.level;g.schema=p.schema,g.schemaPath="",g.errSchemaPath=c,i+=" "+e.validate(g).replace(/validate\.schema/g,p.code)+" ",l&&(i+=" if ("+y+") { ")}else n=!0===p.$async||e.async&&!1!==p.$async,o=p.code}if(o){var v;(v=v||[]).push(i),i="",e.opts.passContext?i+=" "+o+".call(this, ":i+=" "+o+"( ",i+=" "+f+", (dataPath || '')",'""'!=e.errorPath&&(i+=" + "+e.errorPath);var b=i+=" , "+(s?"data"+(s-1||""):"parentData")+" , "+(s?e.dataPathArr[s]:"parentDataProperty")+", rootData) ";if(i=v.pop(),n){if(!e.async)throw new Error("async schema referenced by sync schema");l&&(i+=" var "+h+"; "),i+=" try { await "+b+"; ",l&&(i+=" "+h+" = true; "),i+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",l&&(i+=" "+h+" = false; "),i+=" } ",l&&(i+=" if ("+h+") { ")}else i+=" if (!"+b+") { if (vErrors === null) vErrors = "+o+".errors; else vErrors = vErrors.concat("+o+".errors); errors = vErrors.length; } ",l&&(i+=" else { ")}return i}},6262:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h=e.opts.$data&&a&&a.$data;h&&(n+=" var schema"+o+" = "+e.util.getData(a.$data,i,e.dataPathArr)+"; ");var p="schema"+o;if(!h)if(a.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var d=[],m=a;if(m)for(var g,y=-1,v=m.length-1;y<v;){g=m[y+=1];var b=e.schema.properties[g];b&&(e.opts.strictKeywords?"object"==typeof b&&Object.keys(b).length>0||!1===b:e.util.schemaHasRules(b,e.RULES.all))||(d[d.length]=g)}}else d=a;if(h||d.length){var E=e.errorPath,w=h||d.length>=e.opts.loopRequired,x=e.opts.ownProperties;if(u)if(n+=" var missing"+o+"; ",w){h||(n+=" var "+p+" = validate.schema"+s+"; ");var S="' + "+(P="schema"+o+"["+(D="i"+o)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(E,P,e.opts.jsonPointers)),n+=" var "+f+" = true; ",h&&(n+=" if (schema"+o+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+o+")) "+f+" = false; else {"),n+=" for (var "+D+" = 0; "+D+" < "+p+".length; "+D+"++) { "+f+" = "+l+"["+p+"["+D+"]] !== undefined ",x&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", "+p+"["+D+"]) "),n+="; if (!"+f+") break; } ",h&&(n+=" } "),n+=" if (!"+f+") { ",(F=F||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var A=n;n=F.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+A+"]); ":n+=" validate.errors = ["+A+"]; return false; ":n+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else{n+=" if ( ";var k=d;if(k)for(var D=-1,C=k.length-1;D<C;){T=k[D+=1],D&&(n+=" || "),n+=" ( ( "+(R=l+(_=e.util.getProperty(T)))+" === undefined ",x&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(T)+"') "),n+=") && (missing"+o+" = "+e.util.toQuotedString(e.opts.jsonPointers?T:_)+") ) "}n+=") { ";var F;S="' + "+(P="missing"+o)+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(E,P,!0):E+" + "+P),(F=F||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";A=n;n=F.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+A+"]); ":n+=" validate.errors = ["+A+"]; return false; ":n+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else if(w){h||(n+=" var "+p+" = validate.schema"+s+"; ");var P;S="' + "+(P="schema"+o+"["+(D="i"+o)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(E,P,e.opts.jsonPointers)),h&&(n+=" if ("+p+" && !Array.isArray("+p+")) { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+p+" !== undefined) { "),n+=" for (var "+D+" = 0; "+D+" < "+p+".length; "+D+"++) { if ("+l+"["+p+"["+D+"]] === undefined ",x&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", "+p+"["+D+"]) "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",h&&(n+=" } ")}else{var O=d;if(O)for(var T,j=-1,I=O.length-1;j<I;){T=O[j+=1];var _=e.util.getProperty(T),R=(S=e.util.escapeQuotes(T),l+_);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(E,T,e.opts.jsonPointers)),n+=" if ( "+R+" === undefined ",x&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(T)+"') "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=E}else u&&(n+=" if (true) {");return n}},7392:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h="valid"+i,p=e.opts.$data&&s&&s.$data;if(p?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s,(s||p)&&!1!==e.opts.uniqueItems){p&&(o+=" var "+h+"; if ("+n+" === false || "+n+" === undefined) "+h+" = true; else if (typeof "+n+" != 'boolean') "+h+" = false; else { "),o+=" var i = "+f+".length , "+h+" = true , j; if (i > 1) { ";var d=e.schema.items&&e.schema.items.type,m=Array.isArray(d);if(!d||"object"==d||"array"==d||m&&(d.indexOf("object")>=0||d.indexOf("array")>=0))o+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+f+"[i], "+f+"[j])) { "+h+" = false; break outer; } } } ";else{o+=" var itemIndices = {}, item; for (;i--;) { var item = "+f+"[i]; ";var g="checkDataType"+(m?"s":"");o+=" if ("+e.util[g](d,"item",e.opts.strictNumbers,!0)+") continue; ",m&&(o+=" if (typeof item == 'string') item = '\"' + item; "),o+=" if (typeof itemIndices[item] == 'number') { "+h+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}o+=" } ",p&&(o+=" } "),o+=" if (!"+h+") { ";var y=y||[];y.push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { i: i, j: j } ",!1!==e.opts.messages&&(o+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(o+=" , schema: ",o+=p?"validate.schema"+c:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var v=o;o=y.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+v+"]); ":o+=" validate.errors = ["+v+"]; return false; ":o+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } ",l&&(o+=" else { ")}else l&&(o+=" if (true) { ");return o}},805:e=>{"use strict";e.exports=function(e,t,r){var n="",o=!0===e.schema.$async,i=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),a=e.self._getId(e.schema);if(e.opts.strictKeywords){var s=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(s){var c="unknown keyword: "+s;if("log"!==e.opts.strictKeywords)throw new Error(c);e.logger.warn(c)}}if(e.isTop&&(n+=" var validate = ",o&&(e.async=!0,n+="async "),n+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",a&&(e.opts.sourceCode||e.opts.processCode)&&(n+=" /*# sourceURL="+a+" */ ")),"boolean"==typeof e.schema||!i&&!e.schema.$ref){t="false schema";var u=e.level,l=e.dataLevel,f=e.schema[t],h=e.schemaPath+e.util.getProperty(t),p=e.errSchemaPath+"/"+t,d=!e.opts.allErrors,m="data"+(l||""),g="valid"+u;if(!1===e.schema){e.isTop?d=!0:n+=" var "+g+" = false; ",(Z=Z||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'boolean schema is false' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";var y=n;n=Z.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?n+=o?" return data; ":" validate.errors = null; return true; ":n+=" var "+g+" = true; ";return e.isTop&&(n+=" }; return validate; "),n}if(e.isTop){var v=e.isTop;u=e.level=0,l=e.dataLevel=0,m="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],void 0!==e.schema.default&&e.opts.useDefaults&&e.opts.strictDefaults){var b="default is ignored in the schema root";if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}n+=" var vErrors = null; ",n+=" var errors = 0; ",n+=" if (rootData === undefined) rootData = data; "}else{u=e.level,m="data"+((l=e.dataLevel)||"");if(a&&(e.baseId=e.resolve.url(e.baseId,a)),o&&!e.async)throw new Error("async schema in sync schema");n+=" var errs_"+u+" = errors;"}g="valid"+u,d=!e.opts.allErrors;var E="",w="",x=e.schema.type,S=Array.isArray(x);if(x&&e.opts.nullable&&!0===e.schema.nullable&&(S?-1==x.indexOf("null")&&(x=x.concat("null")):"null"!=x&&(x=[x,"null"],S=!0)),S&&1==x.length&&(x=x[0],S=!1),e.schema.$ref&&i){if("fail"==e.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');!0!==e.opts.extendRefs&&(i=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(n+=" "+e.RULES.all.$comment.code(e,"$comment")),x){if(e.opts.coerceTypes)var A=e.util.coerceToTypes(e.opts.coerceTypes,x);var k=e.RULES.types[x];if(A||S||!0===k||k&&!Y(k)){h=e.schemaPath+".type",p=e.errSchemaPath+"/type",h=e.schemaPath+".type",p=e.errSchemaPath+"/type";var D=S?"checkDataTypes":"checkDataType";if(n+=" if ("+e.util[D](x,m,e.opts.strictNumbers,!0)+") { ",A){var C="dataType"+u,F="coerced"+u;n+=" var "+C+" = typeof "+m+"; var "+F+" = undefined; ","array"==e.opts.coerceTypes&&(n+=" if ("+C+" == 'object' && Array.isArray("+m+") && "+m+".length == 1) { "+m+" = "+m+"[0]; "+C+" = typeof "+m+"; if ("+e.util.checkDataType(e.schema.type,m,e.opts.strictNumbers)+") "+F+" = "+m+"; } "),n+=" if ("+F+" !== undefined) ; ";var P=A;if(P)for(var O,T=-1,j=P.length-1;T<j;)"string"==(O=P[T+=1])?n+=" else if ("+C+" == 'number' || "+C+" == 'boolean') "+F+" = '' + "+m+"; else if ("+m+" === null) "+F+" = ''; ":"number"==O||"integer"==O?(n+=" else if ("+C+" == 'boolean' || "+m+" === null || ("+C+" == 'string' && "+m+" && "+m+" == +"+m+" ","integer"==O&&(n+=" && !("+m+" % 1)"),n+=")) "+F+" = +"+m+"; "):"boolean"==O?n+=" else if ("+m+" === 'false' || "+m+" === 0 || "+m+" === null) "+F+" = false; else if ("+m+" === 'true' || "+m+" === 1) "+F+" = true; ":"null"==O?n+=" else if ("+m+" === '' || "+m+" === 0 || "+m+" === false) "+F+" = null; ":"array"==e.opts.coerceTypes&&"array"==O&&(n+=" else if ("+C+" == 'string' || "+C+" == 'number' || "+C+" == 'boolean' || "+m+" == null) "+F+" = ["+m+"]; ");n+=" else { ",(Z=Z||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { type: '",n+=S?""+x.join(","):""+x,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=S?""+x.join(","):""+x,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";y=n;n=Z.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } if ("+F+" !== undefined) { ";var I=l?"data"+(l-1||""):"parentData";n+=" "+m+" = "+F+"; ",l||(n+="if ("+I+" !== undefined)"),n+=" "+I+"["+(l?e.dataPathArr[l]:"parentDataProperty")+"] = "+F+"; } "}else{(Z=Z||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { type: '",n+=S?""+x.join(","):""+x,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=S?""+x.join(","):""+x,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";y=n;n=Z.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } "}}if(e.schema.$ref&&!i)n+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",d&&(n+=" } if (errors === ",n+=v?"0":"errs_"+u,n+=") { ",w+="}");else{var _=e.RULES;if(_)for(var R=-1,B=_.length-1;R<B;)if(Y(k=_[R+=1])){if(k.type&&(n+=" if ("+e.util.checkDataType(k.type,m,e.opts.strictNumbers)+") { "),e.opts.useDefaults)if("object"==k.type&&e.schema.properties){f=e.schema.properties;var L=Object.keys(f);if(L)for(var N,M=-1,H=L.length-1;M<H;){if(void 0!==($=f[N=L[M+=1]]).default){var z=m+e.util.getProperty(N);if(e.compositeRule){if(e.opts.strictDefaults){b="default is ignored for: "+z;if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}}else n+=" if ("+z+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+z+" === null || "+z+" === '' "),n+=" ) "+z+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault($.default)+" ":n+=" "+JSON.stringify($.default)+" ",n+="; "}}}else if("array"==k.type&&Array.isArray(e.schema.items)){var U=e.schema.items;if(U){T=-1;for(var $,q=U.length-1;T<q;)if(void 0!==($=U[T+=1]).default){z=m+"["+T+"]";if(e.compositeRule){if(e.opts.strictDefaults){b="default is ignored for: "+z;if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}}else n+=" if ("+z+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+z+" === null || "+z+" === '' "),n+=" ) "+z+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault($.default)+" ":n+=" "+JSON.stringify($.default)+" ",n+="; "}}}var V=k.rules;if(V)for(var G,W=-1,Q=V.length-1;W<Q;)if(X(G=V[W+=1])){var K=G.code(e,G.keyword,k.type);K&&(n+=" "+K+" ",d&&(E+="}"))}if(d&&(n+=" "+E+" ",E=""),k.type&&(n+=" } ",x&&x===k.type&&!A)){n+=" else { ";var Z;h=e.schemaPath+".type",p=e.errSchemaPath+"/type";(Z=Z||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { type: '",n+=S?""+x.join(","):""+x,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=S?""+x.join(","):""+x,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";y=n;n=Z.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } "}d&&(n+=" if (errors === ",n+=v?"0":"errs_"+u,n+=") { ",w+="}")}}function Y(e){for(var t=e.rules,r=0;r<t.length;r++)if(X(t[r]))return!0}function X(t){return void 0!==e.schema[t.keyword]||t.implements&&function(t){for(var r=t.implements,n=0;n<r.length;n++)if(void 0!==e.schema[r[n]])return!0}(t)}return d&&(n+=" "+w+" "),v?(o?(n+=" if (errors === 0) return data; ",n+=" else throw new ValidationError(vErrors); "):(n+=" validate.errors = vErrors; ",n+=" return errors === 0; "),n+=" }; return validate;"):n+=" var "+g+" = errors === errs_"+u+";",n}},7587:(e,t,r)=>{"use strict";var n=/^[a-z_$][a-z0-9_$-]*$/i,o=r(5554),i=r(6152);e.exports={add:function(e,t){var r=this.RULES;if(r.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!n.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(t){this.validateKeyword(t,!0);var i=t.type;if(Array.isArray(i))for(var a=0;a<i.length;a++)c(e,i[a],t);else c(e,i,t);var s=t.metaSchema;s&&(t.$data&&this._opts.$data&&(s={anyOf:[s,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),t.validateSchema=this.compile(s,!0))}function c(e,t,n){for(var i,a=0;a<r.length;a++){var s=r[a];if(s.type==t){i=s;break}}i||(i={type:t,rules:[]},r.push(i));var c={keyword:e,definition:n,custom:!0,code:o,implements:n.implements};i.rules.push(c),r.custom[e]=c}return r.keywords[e]=r.all[e]=!0,this},get:function(e){var t=this.RULES.custom[e];return t?t.definition:this.RULES.keywords[e]||!1},remove:function(e){var t=this.RULES;delete t.keywords[e],delete t.all[e],delete t.custom[e];for(var r=0;r<t.length;r++)for(var n=t[r].rules,o=0;o<n.length;o++)if(n[o].keyword==e){n.splice(o,1);break}return this},validate:function e(t,r){e.errors=null;var n=this._validateKeyword=this._validateKeyword||this.compile(i,!0);if(n(t))return!0;if(e.errors=n.errors,r)throw new Error("custom keyword definition is invalid: "+this.errorsText(n.errors));return!1}}},9619:(e,t,r)=>{"use strict";var n=r(7061);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var i,a,s=r(1404).codes,c=s.ERR_AMBIGUOUS_ARGUMENT,u=s.ERR_INVALID_ARG_TYPE,l=s.ERR_INVALID_ARG_VALUE,f=s.ERR_INVALID_RETURN_VALUE,h=s.ERR_MISSING_ARGS,p=r(7366),d=r(1323).inspect,m=r(1323).types,g=m.isPromise,y=m.isRegExp,v=Object.assign?Object.assign:r(2098).assign,b=Object.is?Object.is:r(3822);new Map;function E(){var e=r(118);i=e.isDeepEqual,a=e.isDeepStrictEqual}var w=!1,x=e.exports=D,S={};function A(e){if(e.message instanceof Error)throw e.message;throw new p(e)}function k(e,t,r,n){if(!r){var o=!1;if(0===t)o=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var i=new p({actual:r,expected:!0,message:n,operator:"==",stackStartFn:e});throw i.generatedMessage=o,i}}function D(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];k.apply(void 0,[D,t.length].concat(t))}x.fail=function e(t,r,o,i,a){var s,c=arguments.length;if(0===c)s="Failed";else if(1===c)o=t,t=void 0;else{if(!1===w){w=!0;var u=n.emitWarning?n.emitWarning:console.warn.bind(console);u("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}2===c&&(i="!=")}if(o instanceof Error)throw o;var l={actual:t,expected:r,operator:void 0===i?"fail":i,stackStartFn:a||e};void 0!==o&&(l.message=o);var f=new p(l);throw s&&(f.message=s,f.generatedMessage=!0),f},x.AssertionError=p,x.ok=D,x.equal=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");t!=r&&A({actual:t,expected:r,message:n,operator:"==",stackStartFn:e})},x.notEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");t==r&&A({actual:t,expected:r,message:n,operator:"!=",stackStartFn:e})},x.deepEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");void 0===i&&E(),i(t,r)||A({actual:t,expected:r,message:n,operator:"deepEqual",stackStartFn:e})},x.notDeepEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");void 0===i&&E(),i(t,r)&&A({actual:t,expected:r,message:n,operator:"notDeepEqual",stackStartFn:e})},x.deepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");void 0===i&&E(),a(t,r)||A({actual:t,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:e})},x.notDeepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");void 0===i&&E();a(t,r)&&A({actual:t,expected:r,message:n,operator:"notDeepStrictEqual",stackStartFn:e})},x.strictEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");b(t,r)||A({actual:t,expected:r,message:n,operator:"strictEqual",stackStartFn:e})},x.notStrictEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");b(t,r)&&A({actual:t,expected:r,message:n,operator:"notStrictEqual",stackStartFn:e})};var C=function e(t,r,n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r.forEach((function(e){e in t&&(void 0!==n&&"string"==typeof n[e]&&y(t[e])&&t[e].test(n[e])?o[e]=n[e]:o[e]=t[e])}))};function F(e,t,r,n,o,i){if(!(r in e)||!a(e[r],t[r])){if(!n){var s=new C(e,o),c=new C(t,o,e),u=new p({actual:s,expected:c,operator:"deepStrictEqual",stackStartFn:i});throw u.actual=e,u.expected=t,u.operator=i.name,u}A({actual:e,expected:t,message:n,operator:i.name,stackStartFn:i})}}function P(e,t,r,n){if("function"!=typeof t){if(y(t))return t.test(e);if(2===arguments.length)throw new u("expected",["Function","RegExp"],t);if("object"!==o(e)||null===e){var a=new p({actual:e,expected:t,message:r,operator:"deepStrictEqual",stackStartFn:n});throw a.operator=n.name,a}var s=Object.keys(t);if(t instanceof Error)s.push("name","message");else if(0===s.length)throw new l("error",t,"may not be an empty object");return void 0===i&&E(),s.forEach((function(o){"string"==typeof e[o]&&y(t[o])&&t[o].test(e[o])||F(e,t,o,r,s,n)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function O(e){if("function"!=typeof e)throw new u("fn","Function",e);try{e()}catch(e){return e}return S}function T(e){return g(e)||null!==e&&"object"===o(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function j(e){return Promise.resolve().then((function(){var t;if("function"==typeof e){if(!T(t=e()))throw new f("instance of Promise","promiseFn",t)}else{if(!T(e))throw new u("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return S})).catch((function(e){return e}))}))}function I(e,t,r,n){if("string"==typeof r){if(4===arguments.length)throw new u("error",["Object","Error","Function","RegExp"],r);if("object"===o(t)&&null!==t){if(t.message===r)throw new c("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===r)throw new c("error/message",'The error "'.concat(t,'" is identical to the message.'));n=r,r=void 0}else if(null!=r&&"object"!==o(r)&&"function"!=typeof r)throw new u("error",["Object","Error","Function","RegExp"],r);if(t===S){var i="";r&&r.name&&(i+=" (".concat(r.name,")")),i+=n?": ".concat(n):".";var a="rejects"===e.name?"rejection":"exception";A({actual:void 0,expected:r,operator:e.name,message:"Missing expected ".concat(a).concat(i),stackStartFn:e})}if(r&&!P(t,r,n,e))throw t}function _(e,t,r,n){if(t!==S){if("string"==typeof r&&(n=r,r=void 0),!r||P(t,r)){var o=n?": ".concat(n):".",i="doesNotReject"===e.name?"rejection":"exception";A({actual:t,expected:r,operator:e.name,message:"Got unwanted ".concat(i).concat(o,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function R(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];k.apply(void 0,[R,t.length].concat(t))}x.throws=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];I.apply(void 0,[e,O(t)].concat(n))},x.rejects=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return j(t).then((function(t){return I.apply(void 0,[e,t].concat(n))}))},x.doesNotThrow=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];_.apply(void 0,[e,O(t)].concat(n))},x.doesNotReject=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return j(t).then((function(t){return _.apply(void 0,[e,t].concat(n))}))},x.ifError=function e(t){if(null!=t){var r="ifError got unwanted exception: ";"object"===o(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?r+=t.constructor.name:r+=t.message:r+=d(t);var n=new p({actual:t,expected:null,operator:"ifError",message:r,stackStartFn:e}),i=t.stack;if("string"==typeof i){var a=i.split("\n");a.shift();for(var s=n.stack.split("\n"),c=0;c<a.length;c++){var u=s.indexOf(a[c]);if(-1!==u){s=s.slice(0,u);break}}n.stack="".concat(s.join("\n"),"\n").concat(a.join("\n"))}throw n}},x.strict=v(R,x,{equal:x.strictEqual,deepEqual:x.deepStrictEqual,notEqual:x.notStrictEqual,notDeepEqual:x.notDeepStrictEqual}),x.strict.strict=x.strict},7366:(e,t,r)=>{"use strict";var n=r(7061);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?s(e):t}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e){var t="function"==typeof Map?new Map:void 0;return c=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return l(e,arguments,h(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),f(n,e)},c(e)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function l(e,t,r){return l=u()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&f(o,r.prototype),o},l.apply(null,arguments)}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}var d=r(1323).inspect,m=r(1404).codes.ERR_INVALID_ARG_TYPE;function g(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}var y="",v="",b="",E="",w={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function x(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){r[t]=e[t]})),Object.defineProperty(r,"message",{value:e.message}),r}function S(e){return d(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function A(e,t,r){var o="",i="",a=0,s="",c=!1,u=S(e),l=u.split("\n"),f=S(t).split("\n"),h=0,d="";if("strictEqual"===r&&"object"===p(e)&&"object"===p(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===l.length&&1===f.length&&l[0]!==f[0]){var m=l[0].length+f[0].length;if(m<=10){if(!("object"===p(e)&&null!==e||"object"===p(t)&&null!==t||0===e&&0===t))return"".concat(w[r],"\n\n")+"".concat(l[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==r){if(m<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;l[0][h]===f[0][h];)h++;h>2&&(d="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,r-e.length)}(" ",h),"^"),h=0)}}}for(var x=l[l.length-1],A=f[f.length-1];x===A&&(h++<2?s="\n ".concat(x).concat(s):o=x,l.pop(),f.pop(),0!==l.length&&0!==f.length);)x=l[l.length-1],A=f[f.length-1];var k=Math.max(l.length,f.length);if(0===k){var D=u.split("\n");if(D.length>30)for(D[26]="".concat(y,"...").concat(E);D.length>27;)D.pop();return"".concat(w.notIdentical,"\n\n").concat(D.join("\n"),"\n")}h>3&&(s="\n".concat(y,"...").concat(E).concat(s),c=!0),""!==o&&(s="\n ".concat(o).concat(s),o="");var C=0,F=w[r]+"\n".concat(v,"+ actual").concat(E," ").concat(b,"- expected").concat(E),P=" ".concat(y,"...").concat(E," Lines skipped");for(h=0;h<k;h++){var O=h-a;if(l.length<h+1)O>1&&h>2&&(O>4?(i+="\n".concat(y,"...").concat(E),c=!0):O>3&&(i+="\n ".concat(f[h-2]),C++),i+="\n ".concat(f[h-1]),C++),a=h,o+="\n".concat(b,"-").concat(E," ").concat(f[h]),C++;else if(f.length<h+1)O>1&&h>2&&(O>4?(i+="\n".concat(y,"...").concat(E),c=!0):O>3&&(i+="\n ".concat(l[h-2]),C++),i+="\n ".concat(l[h-1]),C++),a=h,i+="\n".concat(v,"+").concat(E," ").concat(l[h]),C++;else{var T=f[h],j=l[h],I=j!==T&&(!g(j,",")||j.slice(0,-1)!==T);I&&g(T,",")&&T.slice(0,-1)===j&&(I=!1,j+=","),I?(O>1&&h>2&&(O>4?(i+="\n".concat(y,"...").concat(E),c=!0):O>3&&(i+="\n ".concat(l[h-2]),C++),i+="\n ".concat(l[h-1]),C++),a=h,i+="\n".concat(v,"+").concat(E," ").concat(j),o+="\n".concat(b,"-").concat(E," ").concat(T),C+=2):(i+=o,o="",1!==O&&0!==h||(i+="\n ".concat(j),C++))}if(C>20&&h<k-2)return"".concat(F).concat(P,"\n").concat(i,"\n").concat(y,"...").concat(E).concat(o,"\n")+"".concat(y,"...").concat(E)}return"".concat(F).concat(c?P:"","\n").concat(i).concat(o).concat(s).concat(d)}var k=function(e){function t(e){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),"object"!==p(e)||null===e)throw new m("options","Object",e);var o=e.message,i=e.operator,c=e.stackStartFn,u=e.actual,l=e.expected,f=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=o)r=a(this,h(t).call(this,String(o)));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(y="",v="",E="",b=""):(y="",v="",E="",b="")),"object"===p(u)&&null!==u&&"object"===p(l)&&null!==l&&"stack"in u&&u instanceof Error&&"stack"in l&&l instanceof Error&&(u=x(u),l=x(l)),"deepStrictEqual"===i||"strictEqual"===i)r=a(this,h(t).call(this,A(u,l,i)));else if("notDeepStrictEqual"===i||"notStrictEqual"===i){var d=w[i],g=S(u).split("\n");if("notStrictEqual"===i&&"object"===p(u)&&null!==u&&(d=w.notStrictEqualObject),g.length>30)for(g[26]="".concat(y,"...").concat(E);g.length>27;)g.pop();r=1===g.length?a(this,h(t).call(this,"".concat(d," ").concat(g[0]))):a(this,h(t).call(this,"".concat(d,"\n\n").concat(g.join("\n"),"\n")))}else{var k=S(u),D="",C=w[i];"notDeepEqual"===i||"notEqual"===i?(k="".concat(w[i],"\n\n").concat(k)).length>1024&&(k="".concat(k.slice(0,1021),"...")):(D="".concat(S(l)),k.length>512&&(k="".concat(k.slice(0,509),"...")),D.length>512&&(D="".concat(D.slice(0,509),"...")),"deepEqual"===i||"equal"===i?k="".concat(C,"\n\n").concat(k,"\n\nshould equal\n\n"):D=" ".concat(i," ").concat(D)),r=a(this,h(t).call(this,"".concat(k).concat(D)))}return Error.stackTraceLimit=f,r.generatedMessage=!o,Object.defineProperty(s(r),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),r.code="ERR_ASSERTION",r.actual=u,r.expected=l,r.operator=i,Error.captureStackTrace&&Error.captureStackTrace(s(r),c),r.stack,r.name="AssertionError",a(r)}var r,c,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,e),r=t,c=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:d.custom,value:function(e,t){return d(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){o(e,t,r[t])}))}return e}({},t,{customInspect:!1,depth:0}))}}],c&&i(r.prototype,c),u&&i(r,u),t}(c(Error));e.exports=k},1404:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}var s,c,u={};function l(e,t,r){r||(r=Error);var n=function(r){function n(r,a,s){var c;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),c=o(this,i(n).call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,a,s))),c.code=e,c}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(n,r),n}(r);u[e]=n}function f(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}l("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),l("ERR_INVALID_ARG_TYPE",(function(e,t,o){var i,a,c,u;if(void 0===s&&(s=r(9619)),s("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(a="not ",t.substr(!c||c<0?0:+c,a.length)===a)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))u="The ".concat(e," ").concat(i," ").concat(f(t,"type"));else{var l=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";u='The "'.concat(e,'" ').concat(l," ").concat(i," ").concat(f(t,"type"))}return u+=". Received type ".concat(n(o))}),TypeError),l("ERR_INVALID_ARG_VALUE",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===c&&(c=r(1323));var o=c.inspect(t);return o.length>128&&(o="".concat(o.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(n,". Received ").concat(o)}),TypeError,RangeError),l("ERR_INVALID_RETURN_VALUE",(function(e,t,r){var o;return o=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(o,".")}),TypeError),l("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];void 0===s&&(s=r(9619)),s(t.length>0,"At least one arg needs to be specified");var o="The ",i=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),i){case 1:o+="".concat(t[0]," argument");break;case 2:o+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:o+=t.slice(0,i-1).join(", "),o+=", and ".concat(t[i-1]," arguments")}return"".concat(o," must be specified")}),TypeError),e.exports.codes=u},118:(e,t,r)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var i=void 0!==/a/g.flags,a=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},s=function(e){var t=[];return e.forEach((function(e,r){return t.push([r,e])})),t},c=Object.is?Object.is:r(3822),u=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},l=Number.isNaN?Number.isNaN:r(4866);function f(e){return e.call.bind(e)}var h=f(Object.prototype.hasOwnProperty),p=f(Object.prototype.propertyIsEnumerable),d=f(Object.prototype.toString),m=r(1323).types,g=m.isAnyArrayBuffer,y=m.isArrayBufferView,v=m.isDate,b=m.isMap,E=m.isRegExp,w=m.isSet,x=m.isNativeError,S=m.isBoxedPrimitive,A=m.isNumberObject,k=m.isStringObject,D=m.isBooleanObject,C=m.isBigIntObject,F=m.isSymbolObject,P=m.isFloat32Array,O=m.isFloat64Array;function T(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<48||r>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function j(e){return Object.keys(e).filter(T).concat(u(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}
10
10
  /*!
11
11
  * The buffer module from node.js, for the browser.
12
12
  *
@@ -50,5 +50,5 @@ object-assign
50
50
  * LICENSE file in the root directory of this source tree.
51
51
  */r(2525);var n=r(7363),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,r){var n,i={},u=null,l=null;for(n in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(l=t.ref),t)s.call(t,n)&&!c.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:u,ref:l,props:i,_owner:a.current}}t.jsx=u,t.jsxs=u},4246:(e,t,r)=>{"use strict";e.exports=r(1426)},1311:(e,t,r)=>{"use strict";r.r(t),r.d(t,{attach:()=>i,detach:()=>a,getConfig:()=>f,shouldRetryRequest:()=>l});var n=r(4206),o=r.n(n);function i(e){return(e=e||o()).interceptors.response.use(s,u)}function a(e,t){(t=t||o()).interceptors.response.eject(e)}function s(e){return e}function c(e){var t=[];if(e)return Array.isArray(e)?e:("object"==typeof e&&Object.keys(e).forEach((function(r){"number"==typeof r&&(t[r]=e[r])})),t)}function u(e){if(o().isCancel(e))return Promise.reject(e);var t=f(e)||{};if(t.currentRetryAttempt=t.currentRetryAttempt||0,t.retry="number"==typeof t.retry?t.retry:3,t.retryDelay="number"==typeof t.retryDelay?t.retryDelay:100,t.instance=t.instance||o(),t.backoffType=t.backoffType||"exponential",t.httpMethodsToRetry=c(t.httpMethodsToRetry)||["GET","HEAD","PUT","OPTIONS","DELETE"],t.noResponseRetries="number"==typeof t.noResponseRetries?t.noResponseRetries:2,t.checkRetryAfter="boolean"!=typeof t.checkRetryAfter||t.checkRetryAfter,t.maxRetryAfter="number"==typeof t.maxRetryAfter?t.maxRetryAfter:3e5,t.statusCodesToRetry=c(t.statusCodesToRetry)||[[100,199],[429,429],[500,599]],e.config=e.config||{},e.config.raxConfig=Object.assign({},t),!(t.shouldRetry||l)(e))return Promise.reject(e);var r=new Promise((function(r,n){var o=0;if(t.checkRetryAfter&&e.response&&e.response.headers["retry-after"]){var i=function(e){var t=Number(e);if(!Number.isNaN(t))return 1e3*t;var r=Date.parse(e);return Number.isNaN(r)?void 0:r-Date.now()}(e.response.headers["retry-after"]);if(!(i&&i>0&&i<=t.maxRetryAfter))return n(e);o=i}e.config.raxConfig.currentRetryAttempt+=1;var a=e.config.raxConfig.currentRetryAttempt;0===o&&(o="linear"===t.backoffType?1e3*a:"static"===t.backoffType?t.retryDelay:(Math.pow(2,a)-1)/2*1e3,"number"==typeof t.maxRetryDelay&&(o=Math.min(o,t.maxRetryDelay))),setTimeout(r,o)})),n=t.onRetryAttempt?Promise.resolve(t.onRetryAttempt(e)):Promise.resolve();return Promise.resolve().then((function(){return r})).then((function(){return n})).then((function(){return t.instance.request(e.config)}))}function l(e){var t=e.config.raxConfig;if(!t||0===t.retry)return!1;if(!e.response&&(t.currentRetryAttempt||0)>=t.noResponseRetries)return!1;if(!e.config.method||t.httpMethodsToRetry.indexOf(e.config.method.toUpperCase())<0)return!1;if(e.response&&e.response.status){for(var r=!1,n=0,o=t.statusCodesToRetry;n<o.length;n+=1){var i=o[n],a=e.response.status;if(a>=i[0]&&a<=i[1]){r=!0;break}}if(!r)return!1}return t.currentRetryAttempt=t.currentRetryAttempt||0,!(t.currentRetryAttempt>=t.retry)}function f(e){if(e&&e.config)return e.config.raxConfig}},4445:e=>{e.exports=function(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<i.length;c++){var u=i[c];if(!s(u))return!1;var l=e[u],f=t[u];if(!1===(o=r?r.call(n,l,f,u):void 0)||void 0===o&&l!==f)return!1}return!0}},9400:e=>{"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},9742:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},2371:function(e,t){
52
52
  /** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
53
- !function(e){"use strict";function t(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.length>1){t[0]=t[0].slice(0,-1);for(var n=t.length-1,o=1;o<n;++o)t[o]=t[o].slice(1,-1);return t[n]=t[n].slice(1),t.join("")}return t[0]}function r(e){return"(?:"+e+")"}function n(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function o(e){return e.toUpperCase()}function i(e){return null!=e?e instanceof Array?e:"number"!=typeof e.length||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function a(e,t){var r=e;if(t)for(var n in t)r[n]=t[n];return r}function s(e){var n="[A-Za-z]",o="[0-9]",i=t(o,"[A-Fa-f]"),a=r(r("%[EFef]"+i+"%"+i+i+"%"+i+i)+"|"+r("%[89A-Fa-f]"+i+"%"+i+i)+"|"+r("%"+i+i)),s="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",c=t("[\\:\\/\\?\\#\\[\\]\\@]",s),u=e?"[\\uE000-\\uF8FF]":"[]",l=t(n,o,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]"),f=r(n+t(n,o,"[\\+\\-\\.]")+"*"),h=r(r(a+"|"+t(l,s,"[\\:]"))+"*"),p=(r(r("25[0-5]")+"|"+r("2[0-4]"+o)+"|"+r("1"+o+o)+"|"+r("[1-9]"+o)+"|"+o),r(r("25[0-5]")+"|"+r("2[0-4]"+o)+"|"+r("1"+o+o)+"|"+r("0?[1-9]"+o)+"|0?0?"+o)),d=r(p+"\\."+p+"\\."+p+"\\."+p),m=r(i+"{1,4}"),g=r(r(m+"\\:"+m)+"|"+d),y=r(r(m+"\\:")+"{6}"+g),v=r("\\:\\:"+r(m+"\\:")+"{5}"+g),b=r(r(m)+"?\\:\\:"+r(m+"\\:")+"{4}"+g),E=r(r(r(m+"\\:")+"{0,1}"+m)+"?\\:\\:"+r(m+"\\:")+"{3}"+g),w=r(r(r(m+"\\:")+"{0,2}"+m)+"?\\:\\:"+r(m+"\\:")+"{2}"+g),x=r(r(r(m+"\\:")+"{0,3}"+m)+"?\\:\\:"+m+"\\:"+g),S=r(r(r(m+"\\:")+"{0,4}"+m)+"?\\:\\:"+g),A=r(r(r(m+"\\:")+"{0,5}"+m)+"?\\:\\:"+m),k=r(r(r(m+"\\:")+"{0,6}"+m)+"?\\:\\:"),D=r([y,v,b,E,w,x,S,A,k].join("|")),C=r(r(l+"|"+a)+"+"),F=(r(D+"\\%25"+C),r(D+r("\\%25|\\%(?!"+i+"{2})")+C)),P=r("[vV]"+i+"+\\."+t(l,s,"[\\:]")+"+"),O=r("\\["+r(F+"|"+D+"|"+P)+"\\]"),T=r(r(a+"|"+t(l,s))+"*"),j=r(O+"|"+d+"(?!"+T+")|"+T),I=r(o+"*"),_=r(r(h+"@")+"?"+j+r("\\:"+I)+"?"),R=r(a+"|"+t(l,s,"[\\:\\@]")),B=r(R+"*"),L=r(R+"+"),N=r(r(a+"|"+t(l,s,"[\\@]"))+"+"),M=r(r("\\/"+B)+"*"),H=r("\\/"+r(L+M)+"?"),z=r(N+M),U=r(L+M),$="(?!"+R+")",q=(r(M+"|"+H+"|"+z+"|"+U+"|"+$),r(r(R+"|"+t("[\\/\\?]",u))+"*")),V=r(r(R+"|[\\/\\?]")+"*"),G=r(r("\\/\\/"+_+M)+"|"+H+"|"+U+"|"+$),W=r(f+"\\:"+G+r("\\?"+q)+"?"+r("\\#"+V)+"?"),Q=r(r("\\/\\/"+_+M)+"|"+H+"|"+z+"|"+$),K=r(Q+r("\\?"+q)+"?"+r("\\#"+V)+"?");return r(W+"|"+K),r(f+"\\:"+G+r("\\?"+q)+"?"),r(r("\\/\\/("+r("("+h+")@")+"?("+j+")"+r("\\:("+I+")")+"?)")+"?("+M+"|"+H+"|"+U+"|"+$+")"),r("\\?("+q+")"),r("\\#("+V+")"),r(r("\\/\\/("+r("("+h+")@")+"?("+j+")"+r("\\:("+I+")")+"?)")+"?("+M+"|"+H+"|"+z+"|"+$+")"),r("\\?("+q+")"),r("\\#("+V+")"),r(r("\\/\\/("+r("("+h+")@")+"?("+j+")"+r("\\:("+I+")")+"?)")+"?("+M+"|"+H+"|"+U+"|"+$+")"),r("\\?("+q+")"),r("\\#("+V+")"),r("("+h+")@"),r("\\:("+I+")"),{NOT_SCHEME:new RegExp(t("[^]",n,o,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",l,s),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",l,s),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",l,s),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",l,s),"g"),NOT_QUERY:new RegExp(t("[^\\%]",l,s,"[\\:\\@\\/\\?]",u),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",l,s,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",l,s),"g"),UNRESERVED:new RegExp(l,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",l,c),"g"),PCT_ENCODED:new RegExp(a,"g"),IPV4ADDRESS:new RegExp("^("+d+")$"),IPV6ADDRESS:new RegExp("^\\[?("+D+")"+r(r("\\%25|\\%(?!"+i+"{2})")+"("+C+")")+"?\\]?$")}}var c=s(!1),u=s(!0),l=function(){function e(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw i}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)},h=2147483647,p=36,d=1,m=26,g=38,y=700,v=72,b=128,E="-",w=/^xn--/,x=/[^\0-\x7E]/,S=/[\x2E\u3002\uFF0E\uFF61]/g,A={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},k=p-d,D=Math.floor,C=String.fromCharCode;function F(e){throw new RangeError(A[e])}function P(e,t){for(var r=[],n=e.length;n--;)r[n]=t(e[n]);return r}function O(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+P((e=e.replace(S,".")).split("."),t).join(".")}function T(e){for(var t=[],r=0,n=e.length;r<n;){var o=e.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){var i=e.charCodeAt(r++);56320==(64512&i)?t.push(((1023&o)<<10)+(1023&i)+65536):(t.push(o),r--)}else t.push(o)}return t}var j=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:p},I=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},_=function(e,t,r){var n=0;for(e=r?D(e/y):e>>1,e+=D(e/t);e>k*m>>1;n+=p)e=D(e/k);return D(n+(k+1)*e/(e+g))},R=function(e){var t=[],r=e.length,n=0,o=b,i=v,a=e.lastIndexOf(E);a<0&&(a=0);for(var s=0;s<a;++s)e.charCodeAt(s)>=128&&F("not-basic"),t.push(e.charCodeAt(s));for(var c=a>0?a+1:0;c<r;){for(var u=n,l=1,f=p;;f+=p){c>=r&&F("invalid-input");var g=j(e.charCodeAt(c++));(g>=p||g>D((h-n)/l))&&F("overflow"),n+=g*l;var y=f<=i?d:f>=i+m?m:f-i;if(g<y)break;var w=p-y;l>D(h/w)&&F("overflow"),l*=w}var x=t.length+1;i=_(n-u,x,0==u),D(n/x)>h-o&&F("overflow"),o+=D(n/x),n%=x,t.splice(n++,0,o)}return String.fromCodePoint.apply(String,t)},B=function(e){var t=[],r=(e=T(e)).length,n=b,o=0,i=v,a=!0,s=!1,c=void 0;try{for(var u,l=e[Symbol.iterator]();!(a=(u=l.next()).done);a=!0){var f=u.value;f<128&&t.push(C(f))}}catch(e){s=!0,c=e}finally{try{!a&&l.return&&l.return()}finally{if(s)throw c}}var g=t.length,y=g;for(g&&t.push(E);y<r;){var w=h,x=!0,S=!1,A=void 0;try{for(var k,P=e[Symbol.iterator]();!(x=(k=P.next()).done);x=!0){var O=k.value;O>=n&&O<w&&(w=O)}}catch(e){S=!0,A=e}finally{try{!x&&P.return&&P.return()}finally{if(S)throw A}}var j=y+1;w-n>D((h-o)/j)&&F("overflow"),o+=(w-n)*j,n=w;var R=!0,B=!1,L=void 0;try{for(var N,M=e[Symbol.iterator]();!(R=(N=M.next()).done);R=!0){var H=N.value;if(H<n&&++o>h&&F("overflow"),H==n){for(var z=o,U=p;;U+=p){var $=U<=i?d:U>=i+m?m:U-i;if(z<$)break;var q=z-$,V=p-$;t.push(C(I($+q%V,0))),z=D(q/V)}t.push(C(I(z,0))),i=_(o,j,y==g),o=0,++y}}}catch(e){B=!0,L=e}finally{try{!R&&M.return&&M.return()}finally{if(B)throw L}}++o,++n}return t.join("")},L=function(e){return O(e,(function(e){return w.test(e)?R(e.slice(4).toLowerCase()):e}))},N=function(e){return O(e,(function(e){return x.test(e)?"xn--"+B(e):e}))},M={version:"2.1.0",ucs2:{decode:T,encode:function(e){return String.fromCodePoint.apply(String,f(e))}},decode:R,encode:B,toASCII:N,toUnicode:L},H={};function z(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function U(e){for(var t="",r=0,n=e.length;r<n;){var o=parseInt(e.substr(r+1,2),16);if(o<128)t+=String.fromCharCode(o),r+=3;else if(o>=194&&o<224){if(n-r>=6){var i=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((31&o)<<6|63&i)}else t+=e.substr(r,6);r+=6}else if(o>=224){if(n-r>=9){var a=parseInt(e.substr(r+4,2),16),s=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((15&o)<<12|(63&a)<<6|63&s)}else t+=e.substr(r,9);r+=9}else t+=e.substr(r,3),r+=3}return t}function $(e,t){function r(e){var r=U(e);return r.match(t.UNRESERVED)?r:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,r).replace(t.NOT_USERINFO,z).replace(t.PCT_ENCODED,o)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,z).replace(t.PCT_ENCODED,o)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,r).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,z).replace(t.PCT_ENCODED,o)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,z).replace(t.PCT_ENCODED,o)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,z).replace(t.PCT_ENCODED,o)),e}function q(e){return e.replace(/^0*(.*)/,"$1")||"0"}function V(e,t){var r=e.match(t.IPV4ADDRESS)||[],n=l(r,2)[1];return n?n.split(".").map(q).join("."):e}function G(e,t){var r=e.match(t.IPV6ADDRESS)||[],n=l(r,3),o=n[1],i=n[2];if(o){for(var a=o.toLowerCase().split("::").reverse(),s=l(a,2),c=s[0],u=s[1],f=u?u.split(":").map(q):[],h=c.split(":").map(q),p=t.IPV4ADDRESS.test(h[h.length-1]),d=p?7:8,m=h.length-d,g=Array(d),y=0;y<d;++y)g[y]=f[y]||h[m+y]||"";p&&(g[d-1]=V(g[d-1],t));var v=g.reduce((function(e,t,r){if(!t||"0"===t){var n=e[e.length-1];n&&n.index+n.length===r?n.length++:e.push({index:r,length:1})}return e}),[]).sort((function(e,t){return t.length-e.length}))[0],b=void 0;if(v&&v.length>1){var E=g.slice(0,v.index),w=g.slice(v.index+v.length);b=E.join(":")+"::"+w.join(":")}else b=g.join(":");return i&&(b+="%"+i),b}return e}var W=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Q=void 0==="".match(/(){0}/)[1];function K(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==t.iri?u:c;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var o=e.match(W);if(o){Q?(r.scheme=o[1],r.userinfo=o[3],r.host=o[4],r.port=parseInt(o[5],10),r.path=o[6]||"",r.query=o[7],r.fragment=o[8],isNaN(r.port)&&(r.port=o[5])):(r.scheme=o[1]||void 0,r.userinfo=-1!==e.indexOf("@")?o[3]:void 0,r.host=-1!==e.indexOf("//")?o[4]:void 0,r.port=parseInt(o[5],10),r.path=o[6]||"",r.query=-1!==e.indexOf("?")?o[7]:void 0,r.fragment=-1!==e.indexOf("#")?o[8]:void 0,isNaN(r.port)&&(r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?o[4]:void 0)),r.host&&(r.host=G(V(r.host,n),n)),void 0!==r.scheme||void 0!==r.userinfo||void 0!==r.host||void 0!==r.port||r.path||void 0!==r.query?void 0===r.scheme?r.reference="relative":void 0===r.fragment?r.reference="absolute":r.reference="uri":r.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==r.reference&&(r.error=r.error||"URI is not a "+t.reference+" reference.");var i=H[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||i&&i.unicodeSupport)$(r,n);else{if(r.host&&(t.domainHost||i&&i.domainHost))try{r.host=M.toASCII(r.host.replace(n.PCT_ENCODED,U).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}$(r,c)}i&&i.parse&&i.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}function Z(e,t){var r=!1!==t.iri?u:c,n=[];return void 0!==e.userinfo&&(n.push(e.userinfo),n.push("@")),void 0!==e.host&&n.push(G(V(String(e.host),r),r).replace(r.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(n.push(":"),n.push(String(e.port))),n.length?n.join(""):void 0}var Y=/^\.\.?\//,X=/^\/\.(\/|$)/,J=/^\/\.\.(\/|$)/,ee=/^\/?(?:.|\n)*?(?=\/|$)/;function te(e){for(var t=[];e.length;)if(e.match(Y))e=e.replace(Y,"");else if(e.match(X))e=e.replace(X,"/");else if(e.match(J))e=e.replace(J,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(ee);if(!r)throw new Error("Unexpected dot segment condition");var n=r[0];e=e.slice(n.length),t.push(n)}return t.join("")}function re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.iri?u:c,n=[],o=H[(t.scheme||e.scheme||"").toLowerCase()];if(o&&o.serialize&&o.serialize(e,t),e.host)if(r.IPV6ADDRESS.test(e.host));else if(t.domainHost||o&&o.domainHost)try{e.host=t.iri?M.toUnicode(e.host):M.toASCII(e.host.replace(r.PCT_ENCODED,U).toLowerCase())}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+r}$(e,r),"suffix"!==t.reference&&e.scheme&&(n.push(e.scheme),n.push(":"));var i=Z(e,t);if(void 0!==i&&("suffix"!==t.reference&&n.push("//"),n.push(i),e.path&&"/"!==e.path.charAt(0)&&n.push("/")),void 0!==e.path){var a=e.path;t.absolutePath||o&&o.absolutePath||(a=te(a)),void 0===i&&(a=a.replace(/^\/\//,"/%2F")),n.push(a)}return void 0!==e.query&&(n.push("?"),n.push(e.query)),void 0!==e.fragment&&(n.push("#"),n.push(e.fragment)),n.join("")}function ne(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={};return arguments[3]||(e=K(re(e,r),r),t=K(re(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(n.scheme=t.scheme,n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(t.path?("/"===t.path.charAt(0)?n.path=te(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:n.path=t.path:n.path="/"+t.path,n.path=te(n.path)),n.query=t.query):(n.path=e.path,void 0!==t.query?n.query=t.query:n.query=e.query),n.userinfo=e.userinfo,n.host=e.host,n.port=e.port),n.scheme=e.scheme),n.fragment=t.fragment,n}function oe(e,t,r){var n=a({scheme:"null"},r);return re(ne(K(e,n),K(t,n),n,!0),n)}function ie(e,t){return"string"==typeof e?e=re(K(e,t),t):"object"===n(e)&&(e=K(re(e,t),t)),e}function ae(e,t,r){return"string"==typeof e?e=re(K(e,r),r):"object"===n(e)&&(e=re(e,r)),"string"==typeof t?t=re(K(t,r),r):"object"===n(t)&&(t=re(t,r)),e===t}function se(e,t){return e&&e.toString().replace(t&&t.iri?u.ESCAPE:c.ESCAPE,z)}function ce(e,t){return e&&e.toString().replace(t&&t.iri?u.PCT_ENCODED:c.PCT_ENCODED,U)}var ue={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var r="https"===String(e.scheme).toLowerCase();return e.port!==(r?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},le={scheme:"https",domainHost:ue.domainHost,parse:ue.parse,serialize:ue.serialize};function fe(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var he={scheme:"ws",domainHost:!0,parse:function(e,t){var r=e;return r.secure=fe(r),r.resourceName=(r.path||"/")+(r.query?"?"+r.query:""),r.path=void 0,r.query=void 0,r},serialize:function(e,t){if(e.port!==(fe(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var r=e.resourceName.split("?"),n=l(r,2),o=n[0],i=n[1];e.path=o&&"/"!==o?o:void 0,e.query=i,e.resourceName=void 0}return e.fragment=void 0,e}},pe={scheme:"wss",domainHost:he.domainHost,parse:he.parse,serialize:he.serialize},de={},me="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ge="[0-9A-Fa-f]",ye=r(r("%[EFef]"+ge+"%"+ge+ge+"%"+ge+ge)+"|"+r("%[89A-Fa-f]"+ge+"%"+ge+ge)+"|"+r("%"+ge+ge)),ve="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",be=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),Ee="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",we=new RegExp(me,"g"),xe=new RegExp(ye,"g"),Se=new RegExp(t("[^]",ve,"[\\.]",'[\\"]',be),"g"),Ae=new RegExp(t("[^]",me,Ee),"g"),ke=Ae;function De(e){var t=U(e);return t.match(we)?t:e}var Ce={scheme:"mailto",parse:function(e,t){var r=e,n=r.to=r.path?r.path.split(","):[];if(r.path=void 0,r.query){for(var o=!1,i={},a=r.query.split("&"),s=0,c=a.length;s<c;++s){var u=a[s].split("=");switch(u[0]){case"to":for(var l=u[1].split(","),f=0,h=l.length;f<h;++f)n.push(l[f]);break;case"subject":r.subject=ce(u[1],t);break;case"body":r.body=ce(u[1],t);break;default:o=!0,i[ce(u[0],t)]=ce(u[1],t)}}o&&(r.headers=i)}r.query=void 0;for(var p=0,d=n.length;p<d;++p){var m=n[p].split("@");if(m[0]=ce(m[0]),t.unicodeSupport)m[1]=ce(m[1],t).toLowerCase();else try{m[1]=M.toASCII(ce(m[1],t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}n[p]=m.join("@")}return r},serialize:function(e,t){var r=e,n=i(e.to);if(n){for(var a=0,s=n.length;a<s;++a){var c=String(n[a]),u=c.lastIndexOf("@"),l=c.slice(0,u).replace(xe,De).replace(xe,o).replace(Se,z),f=c.slice(u+1);try{f=t.iri?M.toUnicode(f):M.toASCII(ce(f,t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}n[a]=l+"@"+f}r.path=n.join(",")}var h=e.headers=e.headers||{};e.subject&&(h.subject=e.subject),e.body&&(h.body=e.body);var p=[];for(var d in h)h[d]!==de[d]&&p.push(d.replace(xe,De).replace(xe,o).replace(Ae,z)+"="+h[d].replace(xe,De).replace(xe,o).replace(ke,z));return p.length&&(r.query=p.join("&")),r}},Fe=/^([^\:]+)\:(.*)/,Pe={scheme:"urn",parse:function(e,t){var r=e.path&&e.path.match(Fe),n=e;if(r){var o=t.scheme||n.scheme||"urn",i=r[1].toLowerCase(),a=r[2],s=o+":"+(t.nid||i),c=H[s];n.nid=i,n.nss=a,n.path=void 0,c&&(n=c.parse(n,t))}else n.error=n.error||"URN can not be parsed.";return n},serialize:function(e,t){var r=t.scheme||e.scheme||"urn",n=e.nid,o=r+":"+(t.nid||n),i=H[o];i&&(e=i.serialize(e,t));var a=e,s=e.nss;return a.path=(n||t.nid)+":"+s,a}},Oe=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Te={scheme:"urn:uuid",parse:function(e,t){var r=e;return r.uuid=r.nss,r.nss=void 0,t.tolerant||r.uuid&&r.uuid.match(Oe)||(r.error=r.error||"UUID is not valid."),r},serialize:function(e,t){var r=e;return r.nss=(e.uuid||"").toLowerCase(),r}};H[ue.scheme]=ue,H[le.scheme]=le,H[he.scheme]=he,H[pe.scheme]=pe,H[Ce.scheme]=Ce,H[Pe.scheme]=Pe,H[Te.scheme]=Te,e.SCHEMES=H,e.pctEncChar=z,e.pctDecChars=U,e.parse=K,e.removeDotSegments=te,e.serialize=re,e.resolveComponents=ne,e.resolve=oe,e.normalize=ie,e.equal=ae,e.escapeComponent=se,e.unescapeComponent=ce,Object.defineProperty(e,"__esModule",{value:!0})}(t)},8884:function(e,t,r){var n;/*! https://mths.be/punycode v1.3.2 by @mathias */e=r.nmd(e),function(o){t&&t.nodeType,e&&e.nodeType;var i="object"==typeof r.g&&r.g;i.global!==i&&i.window!==i&&i.self;var a,s=2147483647,c=36,u=/^xn--/,l=/[^\x20-\x7E]/,f=/[\x2E\u3002\uFF0E\uFF61]/g,h={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,d=String.fromCharCode;function m(e){throw RangeError(h[e])}function g(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function y(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+g((e=e.replace(f,".")).split("."),t).join(".")}function v(e){for(var t,r,n=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(r=e.charCodeAt(o++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),o--):n.push(t);return n}function b(e){return g(e,(function(e){var t="";return e>65535&&(t+=d((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=d(e)})).join("")}function E(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function w(e,t,r){var n=0;for(e=r?p(e/700):e>>1,e+=p(e/t);e>455;n+=c)e=p(e/35);return p(n+36*e/(e+38))}function x(e){var t,r,n,o,i,a,u,l,f,h,d,g=[],y=e.length,v=0,E=128,x=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&m("not-basic"),g.push(e.charCodeAt(n));for(o=r>0?r+1:0;o<y;){for(i=v,a=1,u=c;o>=y&&m("invalid-input"),((l=(d=e.charCodeAt(o++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:c)>=c||l>p((s-v)/a))&&m("overflow"),v+=l*a,!(l<(f=u<=x?1:u>=x+26?26:u-x));u+=c)a>p(s/(h=c-f))&&m("overflow"),a*=h;x=w(v-i,t=g.length+1,0==i),p(v/t)>s-E&&m("overflow"),E+=p(v/t),v%=t,g.splice(v++,0,E)}return b(g)}function S(e){var t,r,n,o,i,a,u,l,f,h,g,y,b,x,S,A=[];for(y=(e=v(e)).length,t=128,r=0,i=72,a=0;a<y;++a)(g=e[a])<128&&A.push(d(g));for(n=o=A.length,o&&A.push("-");n<y;){for(u=s,a=0;a<y;++a)(g=e[a])>=t&&g<u&&(u=g);for(u-t>p((s-r)/(b=n+1))&&m("overflow"),r+=(u-t)*b,t=u,a=0;a<y;++a)if((g=e[a])<t&&++r>s&&m("overflow"),g==t){for(l=r,f=c;!(l<(h=f<=i?1:f>=i+26?26:f-i));f+=c)S=l-h,x=c-h,A.push(d(E(h+S%x,0))),l=p(S/x);A.push(d(E(l,0))),i=w(r,b,n==o),r=0,++n}++r,++t}return A.join("")}a={version:"1.3.2",ucs2:{decode:v,encode:b},decode:x,encode:S,toASCII:function(e){return y(e,(function(e){return l.test(e)?"xn--"+S(e):e}))},toUnicode:function(e){return y(e,(function(e){return u.test(e)?x(e.slice(4).toLowerCase()):e}))}},void 0===(n=function(){return a}.call(t,r,t,e))||(e.exports=n)}()},4760:(e,t,r)=>{"use strict";var n=r(8884),o=r(569);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){o.isString(e)&&(e=b(e));return e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(u),f=["%","/","?",";","#"].concat(l),h=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=r(6541);function b(e,t,r){if(e&&o.isObject(e)&&e instanceof i)return e;var n=new i;return n.parse(e,t,r),n}i.prototype.parse=function(e,t,r){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),s=-1!==i&&i<e.indexOf("#")?"?":"#",u=e.split(s);u[0]=u[0].replace(/\\/g,"/");var b=e=u.join(s);if(b=b.trim(),!r&&1===e.split("#").length){var E=c.exec(b);if(E)return this.path=b,this.href=b,this.pathname=E[1],E[2]?(this.search=E[2],this.query=t?v.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=a.exec(b);if(w){var x=(w=w[0]).toLowerCase();this.protocol=x,b=b.substr(w.length)}if(r||w||b.match(/^\/\/[^@\/]+@[^@\/]+/)){var S="//"===b.substr(0,2);!S||w&&g[w]||(b=b.substr(2),this.slashes=!0)}if(!g[w]&&(S||w&&!y[w])){for(var A,k,D=-1,C=0;C<h.length;C++){-1!==(F=b.indexOf(h[C]))&&(-1===D||F<D)&&(D=F)}-1!==(k=-1===D?b.lastIndexOf("@"):b.lastIndexOf("@",D))&&(A=b.slice(0,k),b=b.slice(k+1),this.auth=decodeURIComponent(A)),D=-1;for(C=0;C<f.length;C++){var F;-1!==(F=b.indexOf(f[C]))&&(-1===D||F<D)&&(D=F)}-1===D&&(D=b.length),this.host=b.slice(0,D),b=b.slice(D),this.parseHost(),this.hostname=this.hostname||"";var P="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!P)for(var O=this.hostname.split(/\./),T=(C=0,O.length);C<T;C++){var j=O[C];if(j&&!j.match(p)){for(var I="",_=0,R=j.length;_<R;_++)j.charCodeAt(_)>127?I+="x":I+=j[_];if(!I.match(p)){var B=O.slice(0,C),L=O.slice(C+1),N=j.match(d);N&&(B.push(N[1]),L.unshift(N[2])),L.length&&(b="/"+L.join(".")+b),this.hostname=B.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=n.toASCII(this.hostname));var M=this.port?":"+this.port:"",H=this.hostname||"";this.host=H+M,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!m[x])for(C=0,T=l.length;C<T;C++){var z=l[C];if(-1!==b.indexOf(z)){var U=encodeURIComponent(z);U===z&&(U=escape(z)),b=b.split(z).join(U)}}var $=b.indexOf("#");-1!==$&&(this.hash=b.substr($),b=b.slice(0,$));var q=b.indexOf("?");if(-1!==q?(this.search=b.substr(q),this.query=b.substr(q+1),t&&(this.query=v.parse(this.query)),b=b.slice(0,q)):t&&(this.search="",this.query={}),b&&(this.pathname=b),y[x]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){M=this.pathname||"";var V=this.search||"";this.path=M+V}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,a="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(a=v.stringify(this.query));var s=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||y[t])&&!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),s&&"?"!==s.charAt(0)&&(s="?"+s),t+i+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+n},i.prototype.resolve=function(e){return this.resolveObject(b(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if(o.isString(e)){var t=new i;t.parse(e,!1,!0),e=t}for(var r=new i,n=Object.keys(this),a=0;a<n.length;a++){var s=n[a];r[s]=this[s]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var c=Object.keys(e),u=0;u<c.length;u++){var l=c[u];"protocol"!==l&&(r[l]=e[l])}return y[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!y[e.protocol]){for(var f=Object.keys(e),h=0;h<f.length;h++){var p=f[h];r[p]=e[p]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||g[e.protocol])r.pathname=e.pathname;else{for(var d=(e.pathname||"").split("/");d.length&&!(e.host=d.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),r.pathname=d.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var m=r.pathname||"",v=r.search||"";r.path=m+v}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var b=r.pathname&&"/"===r.pathname.charAt(0),E=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=E||b||r.host&&e.pathname,x=w,S=r.pathname&&r.pathname.split("/")||[],A=(d=e.pathname&&e.pathname.split("/")||[],r.protocol&&!y[r.protocol]);if(A&&(r.hostname="",r.port=null,r.host&&(""===S[0]?S[0]=r.host:S.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===d[0]?d[0]=e.host:d.unshift(e.host)),e.host=null),w=w&&(""===d[0]||""===S[0])),E)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,S=d;else if(d.length)S||(S=[]),S.pop(),S=S.concat(d),r.search=e.search,r.query=e.query;else if(!o.isNullOrUndefined(e.search)){if(A)r.hostname=r.host=S.shift(),(P=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=P.shift(),r.host=r.hostname=P.shift());return r.search=e.search,r.query=e.query,o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!S.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var k=S.slice(-1)[0],D=(r.host||e.host||S.length>1)&&("."===k||".."===k)||""===k,C=0,F=S.length;F>=0;F--)"."===(k=S[F])?S.splice(F,1):".."===k?(S.splice(F,1),C++):C&&(S.splice(F,1),C--);if(!w&&!x)for(;C--;C)S.unshift("..");!w||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),D&&"/"!==S.join("/").substr(-1)&&S.push("");var P,O=""===S[0]||S[0]&&"/"===S[0].charAt(0);A&&(r.hostname=r.host=O?"":S.length?S.shift():"",(P=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=P.shift(),r.host=r.hostname=P.shift()));return(w=w||r.host&&S.length)&&!O&&S.unshift(""),S.length?r.pathname=S.join("/"):(r.pathname=null,r.path=null),o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},i.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},569:e=>{"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},6579:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},7673:(e,t,r)=>{"use strict";var n=r(7740),o=r(8265),i=r(2505),a=r(387);function s(e){return e.call.bind(e)}var c="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,l=s(Object.prototype.toString),f=s(Number.prototype.valueOf),h=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(c)var d=s(BigInt.prototype.valueOf);if(u)var m=s(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"[object Map]"===l(e)}function v(e){return"[object Set]"===l(e)}function b(e){return"[object WeakMap]"===l(e)}function E(e){return"[object WeakSet]"===l(e)}function w(e){return"[object ArrayBuffer]"===l(e)}function x(e){return"undefined"!=typeof ArrayBuffer&&(w.working?w(e):e instanceof ArrayBuffer)}function S(e){return"[object DataView]"===l(e)}function A(e){return"undefined"!=typeof DataView&&(S.working?S(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=o,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||A(e)},t.isUint8Array=function(e){return"Uint8Array"===i(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===i(e)},t.isUint16Array=function(e){return"Uint16Array"===i(e)},t.isUint32Array=function(e){return"Uint32Array"===i(e)},t.isInt8Array=function(e){return"Int8Array"===i(e)},t.isInt16Array=function(e){return"Int16Array"===i(e)},t.isInt32Array=function(e){return"Int32Array"===i(e)},t.isFloat32Array=function(e){return"Float32Array"===i(e)},t.isFloat64Array=function(e){return"Float64Array"===i(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===i(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===i(e)},y.working="undefined"!=typeof Map&&y(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(y.working?y(e):e instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(v.working?v(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},E.working="undefined"!=typeof WeakSet&&E(new WeakSet),t.isWeakSet=function(e){return E(e)},w.working="undefined"!=typeof ArrayBuffer&&w(new ArrayBuffer),t.isArrayBuffer=x,S.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&S(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=A;var k="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function D(e){return"[object SharedArrayBuffer]"===l(e)}function C(e){return void 0!==k&&(void 0===D.working&&(D.working=D(new k)),D.working?D(e):e instanceof k)}function F(e){return g(e,f)}function P(e){return g(e,h)}function O(e){return g(e,p)}function T(e){return c&&g(e,d)}function j(e){return u&&g(e,m)}t.isSharedArrayBuffer=C,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===l(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===l(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===l(e)},t.isGeneratorObject=function(e){return"[object Generator]"===l(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===l(e)},t.isNumberObject=F,t.isStringObject=P,t.isBooleanObject=O,t.isBigIntObject=T,t.isSymbolObject=j,t.isBoxedPrimitive=function(e){return F(e)||P(e)||O(e)||T(e)||j(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(x(e)||C(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},1323:(e,t,r)=>{var n=r(7061),o=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},i=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(u(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,o=n.length,a=String(e).replace(i,(function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),s=n[r];r<o;s=n[++r])y(s)||!x(s)?a+=" "+s:a+=" "+u(s);return a},t.deprecate=function(e,r){if(void 0!==n&&!0===n.noDeprecation)return e;if(void 0===n)return function(){return t.deprecate(e,r).apply(this,arguments)};var o=!1;return function(){if(!o){if(n.throwDeprecation)throw new Error(r);n.traceDeprecation?console.trace(r):console.error(r),o=!0}return e.apply(this,arguments)}};var a={},s=/^$/;if(n.env.NODE_DEBUG){var c=n.env.NODE_DEBUG;c=c.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+c+"$","i")}function u(e,r){var n={seen:[],stylize:f};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(r)?n.showHidden=r:r&&t._extend(n,r),E(n.showHidden)&&(n.showHidden=!1),E(n.depth)&&(n.depth=2),E(n.colors)&&(n.colors=!1),E(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),h(n,e,n.depth)}function l(e,t){var r=u.styles[t];return r?"["+u.colors[r][0]+"m"+e+"["+u.colors[r][1]+"m":e}function f(e,t){return e}function h(e,r,n){if(e.customInspect&&r&&k(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var o=r.inspect(n,e);return b(o)||(o=h(e,o,n)),o}var i=function(e,t){if(E(t))return e.stylize("undefined","undefined");if(b(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(v(t))return e.stylize(""+t,"number");if(g(t))return e.stylize(""+t,"boolean");if(y(t))return e.stylize("null","null")}(e,r);if(i)return i;var a=Object.keys(r),s=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),A(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return p(r);if(0===a.length){if(k(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(w(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(S(r))return e.stylize(Date.prototype.toString.call(r),"date");if(A(r))return p(r)}var u,l="",f=!1,x=["{","}"];(m(r)&&(f=!0,x=["[","]"]),k(r))&&(l=" [Function"+(r.name?": "+r.name:"")+"]");return w(r)&&(l=" "+RegExp.prototype.toString.call(r)),S(r)&&(l=" "+Date.prototype.toUTCString.call(r)),A(r)&&(l=" "+p(r)),0!==a.length||f&&0!=r.length?n<0?w(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),u=f?function(e,t,r,n,o){for(var i=[],a=0,s=t.length;a<s;++a)O(t,String(a))?i.push(d(e,t,r,n,String(a),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(d(e,t,r,n,o,!0))})),i}(e,r,n,s,a):a.map((function(t){return d(e,r,n,s,t,f)})),e.seen.pop(),function(e,t,r){if(e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(u,l,x)):x[0]+l+x[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,n,o,i){var a,s,c;if((c=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),O(n,o)||(a="["+o+"]"),s||(e.seen.indexOf(c.value)<0?(s=y(r)?h(e,c.value,null):h(e,c.value,r-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),E(a)){if(i&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function m(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function y(e){return null===e}function v(e){return"number"==typeof e}function b(e){return"string"==typeof e}function E(e){return void 0===e}function w(e){return x(e)&&"[object RegExp]"===D(e)}function x(e){return"object"==typeof e&&null!==e}function S(e){return x(e)&&"[object Date]"===D(e)}function A(e){return x(e)&&("[object Error]"===D(e)||e instanceof Error)}function k(e){return"function"==typeof e}function D(e){return Object.prototype.toString.call(e)}function C(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!a[e])if(s.test(e)){var r=n.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){};return a[e]},t.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(7673),t.isArray=m,t.isBoolean=g,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=b,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=E,t.isRegExp=w,t.types.isRegExp=w,t.isObject=x,t.isDate=S,t.types.isDate=S,t.isError=A,t.types.isNativeError=A,t.isFunction=k,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(6579);var F=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(){var e=new Date,t=[C(e.getHours()),C(e.getMinutes()),C(e.getSeconds())].join(":");return[e.getDate(),F[e.getMonth()],t].join(" ")}function O(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",P(),t.format.apply(t,arguments))},t.inherits=r(87),t._extend=function(e,t){if(!t||!x(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var T="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function j(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(T&&e[T]){var t;if("function"!=typeof(t=e[T]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,T,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(e,n){e?r(e):t(n)}));try{e.apply(this,o)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),T&&Object.defineProperty(t,T,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,o(e))},t.promisify.custom=T,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var o=t.pop();if("function"!=typeof o)throw new TypeError("The last argument must be of type Function");var i=this,a=function(){return o.apply(i,arguments)};e.apply(this,t).then((function(e){n.nextTick(a.bind(null,null,e))}),(function(e){n.nextTick(j.bind(null,e,a))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,o(e)),t}},2505:(e,t,r)=>{"use strict";var n=r(5278),o=r(973),i=r(2737),a=i("Object.prototype.toString"),s=r(698)(),c="undefined"==typeof globalThis?r.g:globalThis,u=o(),l=i("String.prototype.slice"),f={},h=r(8828),p=Object.getPrototypeOf;s&&h&&p&&n(u,(function(e){if("function"==typeof c[e]){var t=new c[e];if(Symbol.toStringTag in t){var r=p(t),n=h(r,Symbol.toStringTag);if(!n){var o=p(r);n=h(o,Symbol.toStringTag)}f[e]=n.get}}}));var d=r(387);e.exports=function(e){return!!d(e)&&(s&&Symbol.toStringTag in e?function(e){var t=!1;return n(f,(function(r,n){if(!t)try{var o=r.call(e);o===n&&(t=o)}catch(e){}})),t}(e):l(a(e),8,-1))}},7363:e=>{"use strict";e.exports=React},1533:e=>{"use strict";e.exports=ReactDOM},2611:e=>{"use strict";e.exports=_},134:e=>{"use strict";e.exports=_.isEqual},429:()=>{},973:(e,t,r)=>{"use strict";var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],o="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t<n.length;t++)"function"==typeof o[n[t]]&&(e[e.length]=n[t]);return e}},8828:(e,t,r)=>{"use strict";var n=r(8750)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},4649:(e,t,r)=>{"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{Z:()=>n})},5773:(e,t,r)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}r.d(t,{Z:()=>n})},189:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(4649);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}},669:(e,t,r)=>{"use strict";function n(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}r.d(t,{Z:()=>n})},9477:(e,t,r)=>{"use strict";r.d(t,{T:()=>o});const n=document.createElement("i");function o(e){const t="&"+e+";";n.innerHTML=t;const r=n.textContent;return(59!==r.charCodeAt(r.length-1)||"semi"===e)&&(r!==t&&r)}},2268:(e,t,r)=>{"use strict";r.r(t),r.d(t,{blockquote:()=>a});var n=r(5471),o=r(4671),i=r(2343);function a(e,t,r,a){const c=r.enter("blockquote"),u=(0,i.j)(a);u.move("> "),u.shift(2);const l=(0,o.Q)((0,n.K)(e,r,u.current()),s);return c(),l}function s(e,t,r){return">"+(r?"":" ")+e}},6156:(e,t,r)=>{"use strict";r.r(t),r.d(t,{heading:()=>c});var n=r(3428),o=r(7918),i=r(8717);var a=r(7567),s=r(2343);function c(e,t,r,c){const u=Math.max(Math.min(6,e.depth||1),1),l=(0,s.j)(c);if(function(e,t){let r=!1;return(0,n.visit)(e,(e=>{if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return r=!0,o.BK})),Boolean((!e.depth||e.depth<3)&&(0,i.B)(e)&&(t.options.setext||r))}(e,r)){const t=r.enter("headingSetext"),n=r.enter("phrasing"),o=(0,a.p)(e,r,{...l.current(),before:"\n",after:"\n"});return n(),t(),o+"\n"+(1===u?"=":"-").repeat(o.length-(Math.max(o.lastIndexOf("\r"),o.lastIndexOf("\n"))+1))}const f="#".repeat(u),h=r.enter("headingAtx"),p=r.enter("phrasing");l.move(f+" ");let d=(0,a.p)(e,r,{before:"# ",after:"\n",...l.current()});return/^[\t ]/.test(d)&&(d="&#x"+d.charCodeAt(0).toString(16).toUpperCase()+";"+d.slice(1)),d=d?f+" "+d:f,r.options.closeAtx&&(d+=" "+f),p(),h(),d}},8627:(e,t,r)=>{"use strict";r.r(t),r.d(t,{image:()=>a});var n=r(1481),o=r(3316),i=r(2343);function a(e,t,r,a){const s=(0,n.l)(r),c='"'===s?"Quote":"Apostrophe",u=r.enter("image");let l=r.enter("label");const f=(0,i.j)(a);let h=f.move("![");return h+=f.move((0,o.T)(r,e.alt,{before:h,after:"]",...f.current()})),h+=f.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),h+=f.move("<"),h+=f.move((0,o.T)(r,e.url,{before:h,after:">",...f.current()})),h+=f.move(">")):(l=r.enter("destinationRaw"),h+=f.move((0,o.T)(r,e.url,{before:h,after:e.title?" ":")",...f.current()}))),l(),e.title&&(l=r.enter("title"+c),h+=f.move(" "+s),h+=f.move((0,o.T)(r,e.title,{before:h,after:s,...f.current()})),h+=f.move(s),l()),h+=f.move(")"),u(),h}a.peek=function(){return"!"}},2848:(e,t,r)=>{"use strict";r.r(t),r.d(t,{paragraph:()=>o});var n=r(7567);function o(e,t,r,o){const i=r.enter("paragraph"),a=r.enter("phrasing"),s=(0,n.p)(e,r,o);return a(),i(),s}},1481:(e,t,r)=>{"use strict";function n(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}r.d(t,{l:()=>n})},5471:(e,t,r)=>{"use strict";r.d(t,{K:()=>o});var n=r(2343);function o(e,t,r){const o=t.indexStack,i=e.children||[],a=(0,n.j)(r),s=[];let c=-1;for(o.push(-1);++c<i.length;){const r=i[c];o[o.length-1]=c,s.push(a.move(t.handle(r,e,t,{before:"\n",after:"\n",...a.current()}))),"list"!==r.type&&(t.bulletLastUsed=void 0),c<i.length-1&&s.push(a.move(u(r,i[c+1])))}return o.pop(),s.join("");function u(r,n){let o=t.join.length;for(;o--;){const i=t.join[o](r,n,e,t);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"}}},7567:(e,t,r)=>{"use strict";r.d(t,{p:()=>o});var n=r(2343);function o(e,t,r){const o=t.indexStack,i=e.children||[],a=[];let s=-1,c=r.before;o.push(-1);let u=(0,n.j)(r);for(;++s<i.length;){const l=i[s];let f;if(o[o.length-1]=s,s+1<i.length){let r=t.handle.handlers[i[s+1].type];r&&r.peek&&(r=r.peek),f=r?r(i[s+1],e,t,{before:"",after:"",...u.current()}).charAt(0):""}else f=r.after;a.length>0&&("\r"===c||"\n"===c)&&"html"===l.type&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/," "),c=" ",u=(0,n.j)(r),u.move(a.join(""))),a.push(u.move(t.handle(l,e,t,{...u.current(),before:c,after:f}))),c=a[a.length-1].slice(-1)}return o.pop(),a.join("")}},4671:(e,t,r)=>{"use strict";r.d(t,{Q:()=>o});const n=/\r?\n|\r/g;function o(e,t){const r=[];let o,i=0,a=0;for(;o=n.exec(e);)s(e.slice(i,o.index)),r.push(o[0]),i=o.index+o[0].length,a++;return s(e.slice(i)),r.join("");function s(e){r.push(t(e,a,!e))}}},7866:(e,t,r)=>{"use strict";function n(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}r.d(t,{T:()=>n})},3316:(e,t,r)=>{"use strict";r.d(t,{T:()=>a});var n=r(7866);function o(e,t){return i(e,t.inConstruct,!0)&&!i(e,t.notInConstruct,!1)}function i(e,t,r){if(!t)return r;"string"==typeof t&&(t=[t]);let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function a(e,t,r){const i=(r.before||"")+(t||"")+(r.after||""),a=[],u=[],l={};let f=-1;for(;++f<e.unsafe.length;){const t=e.unsafe[f];if(!o(e.stack,t))continue;const r=(0,n.T)(t);let s;for(;s=r.exec(i);){const e="before"in t||Boolean(t.atBreak),r="after"in t,n=s.index+(e?s[1].length:0);a.includes(n)?(l[n].before&&!e&&(l[n].before=!1),l[n].after&&!r&&(l[n].after=!1)):(a.push(n),l[n]={before:e,after:r})}}a.sort(s);let h=r.before?r.before.length:0;const p=i.length-(r.after?r.after.length:0);for(f=-1;++f<a.length;){const e=a[f];e<h||e>=p||(e+1<p&&a[f+1]===e+1&&l[e].after&&!l[e+1].before&&!l[e+1].after||a[f-1]===e-1&&l[e].before&&!l[e-1].before&&!l[e-1].after||(h!==e&&u.push(c(i.slice(h,e),"\\")),h=e,!/[!-/:-@[-`{-~]/.test(i.charAt(e))||r.encode&&r.encode.includes(i.charAt(e))?(u.push("&#x"+i.charCodeAt(e).toString(16).toUpperCase()+";"),h++):u.push("\\")))}return u.push(c(i.slice(h,p),r.after)),u.join("")}function s(e,t){return e-t}function c(e,t){const r=/\\(?=[!-/:-@[-`{-~])/g,n=[],o=[],i=e+t;let a,s=-1,c=0;for(;a=r.exec(i);)n.push(a.index);for(;++s<n.length;)c!==n[s]&&o.push(e.slice(c,n[s])),o.push("\\"),c=n[s];return o.push(e.slice(c)),o.join("")}},2343:(e,t,r)=>{"use strict";function n(e){const t=e||{},r=t.now||{};let n=t.lineShift||0,o=r.line||1,i=r.column||1;return{move:function(e=""){const t=e.split(/\r?\n|\r/g),r=t[t.length-1];return o+=t.length-1,i=1===t.length?i+r.length:1+r.length+n,e},current:function(){return{now:{line:o,column:i},lineShift:n}},shift:function(e){n+=e}}}r.d(t,{j:()=>n})},8717:(e,t,r)=>{"use strict";function n(e,t){var{includeImageAlt:r=!0}=t||{};return o(e,r)}function o(e,t){return e&&"object"==typeof e&&(e.value||(t?e.alt:"")||"children"in e&&i(e.children,t)||Array.isArray(e)&&i(e,t))||""}function i(e,t){for(var r=[],n=-1;++n<e.length;)r[n]=o(e[n],t);return r.join("")}r.d(t,{B:()=>n})},9531:(e,t,r)=>{"use strict";r.r(t),r.d(t,{attention:()=>n.v,autolink:()=>o.j,blankLine:()=>i.w,blockQuote:()=>a.m,characterEscape:()=>s.L,characterReference:()=>c.u,codeFenced:()=>u._,codeIndented:()=>l.S,codeText:()=>f.h,content:()=>h.k,definition:()=>p.D,hardBreakEscape:()=>d.R,headingAtx:()=>m.Z,htmlFlow:()=>g.P,htmlText:()=>y.L,labelEnd:()=>v.Z,labelStartImage:()=>b.C,labelStartLink:()=>E.F,lineEnding:()=>w.g,list:()=>x.p,setextUnderline:()=>S.C,thematicBreak:()=>A.C});var n=r(8415),o=r(7444),i=r(2929),a=r(7207),s=r(1687),c=r(2810),u=r(4897),l=r(2535),f=r(5180),h=r(6814),p=r(4882),d=r(6100),m=r(5528),g=r(5198),y=r(5890),v=r(8966),b=r(5365),E=r(5856),w=r(890),x=r(4618),S=r(6263),A=r(8038)},8415:(e,t,r)=>{"use strict";r.d(t,{v:()=>a});var n=r(8300),o=r(3886),i=r(3879);const a={name:"attention",tokenize:function(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=(0,o.r)(n);let a;return function(t){return e.enter("attentionSequence"),a=t,s(t)};function s(c){if(c===a)return e.consume(c),s;const u=e.exit("attentionSequence"),l=(0,o.r)(c),f=!l||2===l&&i||r.includes(c),h=!i||2===i&&l||r.includes(n);return u._open=Boolean(42===a?f:f&&(i||!h)),u._close=Boolean(42===a?h:h&&(l||!f)),t(c)}},resolveAll:function(e,t){let r,o,a,c,u,l,f,h,p=-1;for(;++p<e.length;)if("enter"===e[p][0]&&"attentionSequence"===e[p][1].type&&e[p][1]._close)for(r=p;r--;)if("exit"===e[r][0]&&"attentionSequence"===e[r][1].type&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[p][1]).charCodeAt(0)){if((e[r][1]._close||e[p][1]._open)&&(e[p][1].end.offset-e[p][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[p][1].end.offset-e[p][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[p][1].end.offset-e[p][1].start.offset>1?2:1;const d=Object.assign({},e[r][1].end),m=Object.assign({},e[p][1].start);s(d,-l),s(m,l),c={type:l>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},u={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[p][1].start),end:m},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[p][1].start)},o={type:l>1?"strong":"emphasis",start:Object.assign({},c.start),end:Object.assign({},u.end)},e[r][1].end=Object.assign({},c.start),e[p][1].start=Object.assign({},u.end),f=[],e[r][1].end.offset-e[r][1].start.offset&&(f=(0,n.V)(f,[["enter",e[r][1],t],["exit",e[r][1],t]])),f=(0,n.V)(f,[["enter",o,t],["enter",c,t],["exit",c,t],["enter",a,t]]),f=(0,n.V)(f,(0,i.C)(t.parser.constructs.insideSpan.null,e.slice(r+1,p),t)),f=(0,n.V)(f,[["exit",a,t],["enter",u,t],["exit",u,t],["exit",o,t]]),e[p][1].end.offset-e[p][1].start.offset?(h=2,f=(0,n.V)(f,[["enter",e[p][1],t],["exit",e[p][1],t]])):h=0,(0,n.d)(e,r-1,p-r+3,f),p=r+f.length-h-2;break}p=-1;for(;++p<e.length;)"attentionSequence"===e[p][1].type&&(e[p][1].type="data");return e}};function s(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}},7444:(e,t,r)=>{"use strict";r.d(t,{j:()=>o});var n=r(488);const o={name:"autolink",tokenize:function(e,t,r){let o=1;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return(0,n.asciiAlpha)(t)?(e.consume(t),a):(0,n.asciiAtext)(t)?u(t):r(t)}function a(e){return 43===e||45===e||46===e||(0,n.asciiAlphanumeric)(e)?s(e):u(e)}function s(t){return 58===t?(e.consume(t),c):(43===t||45===t||46===t||(0,n.asciiAlphanumeric)(t))&&o++<32?(e.consume(t),s):u(t)}function c(t){return 62===t?(e.exit("autolinkProtocol"),p(t)):null===t||32===t||60===t||(0,n.asciiControl)(t)?r(t):(e.consume(t),c)}function u(t){return 64===t?(e.consume(t),o=0,l):(0,n.asciiAtext)(t)?(e.consume(t),u):r(t)}function l(e){return(0,n.asciiAlphanumeric)(e)?f(e):r(e)}function f(t){return 46===t?(e.consume(t),o=0,l):62===t?(e.exit("autolinkProtocol").type="autolinkEmail",p(t)):h(t)}function h(t){return(45===t||(0,n.asciiAlphanumeric)(t))&&o++<63?(e.consume(t),45===t?h:f):r(t)}function p(r){return e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t}}}},2929:(e,t,r)=>{"use strict";r.d(t,{w:()=>i});var n=r(4014),o=r(488);const i={tokenize:function(e,t,r){return(0,n.factorySpace)(e,(function(e){return null===e||(0,o.markdownLineEnding)(e)?t(e):r(e)}),"linePrefix")},partial:!0}},7207:(e,t,r)=>{"use strict";r.d(t,{m:()=>i});var n=r(4014),o=r(488);const i={name:"blockQuote",tokenize:function(e,t,r){const n=this;return function(t){if(62===t){const r=n.containerState;return r.open||(e.enter("blockQuote",{_container:!0}),r.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return r(t)};function i(r){return(0,o.markdownSpace)(r)?(e.enter("blockQuotePrefixWhitespace"),e.consume(r),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(r))}},continuation:{tokenize:function(e,t,r){return(0,n.factorySpace)(e,e.attempt(i,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},exit:function(e){e.exit("blockQuote")}}},1687:(e,t,r)=>{"use strict";r.d(t,{L:()=>o});var n=r(488);const o={name:"characterEscape",tokenize:function(e,t,r){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),o};function o(o){return(0,n.asciiPunctuation)(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(o)}}}},2810:(e,t,r)=>{"use strict";r.d(t,{u:()=>i});var n=r(9477),o=r(488);const i={name:"characterReference",tokenize:function(e,t,r){const i=this;let a,s,c=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),u};function u(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),a=31,s=o.asciiAlphanumeric,f(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=o.asciiHexDigit,f):(e.enter("characterReferenceValue"),a=7,s=o.asciiDigit,f(t))}function f(u){let l;return 59===u&&c?(l=e.exit("characterReferenceValue"),s!==o.asciiAlphanumeric||(0,n.T)(i.sliceSerialize(l))?(e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):r(u)):s(u)&&c++<a?(e.consume(u),f):r(u)}}}},4897:(e,t,r)=>{"use strict";r.d(t,{_:()=>i});var n=r(4014),o=r(488);const i={name:"codeFenced",tokenize:function(e,t,r){const i=this,a={tokenize:function(e,t,r){let i=0;return(0,n.factorySpace)(e,a,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function a(t){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(t)}function s(t){return t===l?(e.consume(t),i++,s):i<f?r(t):(e.exit("codeFencedFenceSequence"),(0,n.factorySpace)(e,c,"whitespace")(t))}function c(n){return null===n||(0,o.markdownLineEnding)(n)?(e.exit("codeFencedFence"),t(n)):r(n)}},partial:!0},s={tokenize:function(e,t,r){const n=this;return o;function o(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i}function i(e){return n.parser.lazy[n.now().line]?r(e):t(e)}},partial:!0},c=this.events[this.events.length-1],u=c&&"linePrefix"===c[1].type?c[2].sliceSerialize(c[1],!0).length:0;let l,f=0;return function(t){return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l=t,h(t)};function h(t){return t===l?(e.consume(t),f++,h):(e.exit("codeFencedFenceSequence"),f<3?r(t):(0,n.factorySpace)(e,p,"whitespace")(t))}function p(t){return null===t||(0,o.markdownLineEnding)(t)?y(t):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return null===t||(0,o.markdownLineEndingOrSpace)(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),(0,n.factorySpace)(e,m,"whitespace")(t)):96===t&&t===l?r(t):(e.consume(t),d)}function m(t){return null===t||(0,o.markdownLineEnding)(t)?y(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(t))}function g(t){return null===t||(0,o.markdownLineEnding)(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),y(t)):96===t&&t===l?r(t):(e.consume(t),g)}function y(r){return e.exit("codeFencedFence"),i.interrupt?t(r):v(r)}function v(t){return null===t?E(t):(0,o.markdownLineEnding)(t)?e.attempt(s,e.attempt(a,E,u?(0,n.factorySpace)(e,v,"linePrefix",u+1):v),E)(t):(e.enter("codeFlowValue"),b(t))}function b(t){return null===t||(0,o.markdownLineEnding)(t)?(e.exit("codeFlowValue"),v(t)):(e.consume(t),b)}function E(r){return e.exit("codeFenced"),t(r)}},concrete:!0}},2535:(e,t,r)=>{"use strict";r.d(t,{S:()=>i});var n=r(4014),o=r(488);const i={name:"codeIndented",tokenize:function(e,t,r){const i=this;return function(t){return e.enter("codeIndented"),(0,n.factorySpace)(e,s,"linePrefix",5)(t)};function s(e){const t=i.events[i.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?c(e):r(e)}function c(t){return null===t?l(t):(0,o.markdownLineEnding)(t)?e.attempt(a,c,l)(t):(e.enter("codeFlowValue"),u(t))}function u(t){return null===t||(0,o.markdownLineEnding)(t)?(e.exit("codeFlowValue"),c(t)):(e.consume(t),u)}function l(r){return e.exit("codeIndented"),t(r)}}},a={tokenize:function(e,t,r){const i=this;return a;function a(t){return i.parser.lazy[i.now().line]?r(t):(0,o.markdownLineEnding)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):(0,n.factorySpace)(e,s,"linePrefix",5)(t)}function s(e){const n=i.events[i.events.length-1];return n&&"linePrefix"===n[1].type&&n[2].sliceSerialize(n[1],!0).length>=4?t(e):(0,o.markdownLineEnding)(e)?a(e):r(e)}},partial:!0}},5180:(e,t,r)=>{"use strict";r.d(t,{h:()=>o});var n=r(488);const o={name:"codeText",tokenize:function(e,t,r){let o,i,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),s(t)};function s(t){return 96===t?(e.consume(t),a++,s):(e.exit("codeTextSequence"),c(t))}function c(t){return null===t?r(t):96===t?(i=e.enter("codeTextSequence"),o=0,l(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),c):(0,n.markdownLineEnding)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),c):(e.enter("codeTextData"),u(t))}function u(t){return null===t||32===t||96===t||(0,n.markdownLineEnding)(t)?(e.exit("codeTextData"),c(t)):(e.consume(t),u)}function l(r){return 96===r?(e.consume(r),o++,l):o===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(r)):(i.type="codeTextData",u(r))}},resolve:function(e){let t,r,n=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[n][1].type&&"space"!==e[n][1].type))for(t=o;++t<n;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[n][1].type="codeTextPadding",o+=2,n-=2;break}t=o-1,n++;for(;++t<=n;)void 0===r?t!==n&&"lineEnding"!==e[t][1].type&&(r=t):t!==n&&"lineEnding"!==e[t][1].type||(e[r][1].type="codeTextData",t!==r+2&&(e[r][1].end=e[t-1][1].end,e.splice(r+2,t-r-2),n-=t-r-2,t=r+2),r=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}}},6814:(e,t,r)=>{"use strict";r.d(t,{k:()=>a});var n=r(4014),o=r(488),i=r(2988);const a={tokenize:function(e,t){let r;return function(t){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),n(t)};function n(t){return null===t?i(t):(0,o.markdownLineEnding)(t)?e.check(s,a,i)(t):(e.consume(t),n)}function i(r){return e.exit("chunkContent"),e.exit("content"),t(r)}function a(t){return e.consume(t),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,n}},resolve:function(e){return(0,i._)(e),e}},s={tokenize:function(e,t,r){const i=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,n.factorySpace)(e,a,"linePrefix")};function a(n){if(null===n||(0,o.markdownLineEnding)(n))return r(n);const a=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(n):e.interrupt(i.parser.constructs.flow,r,t)(n)}},partial:!0}},4882:(e,t,r)=>{"use strict";r.d(t,{D:()=>l});var n=r(917),o=r(7504),i=r(4014),a=r(1559),s=r(6096),c=r(2493),u=r(488);const l={name:"definition",tokenize:function(e,t,r){const a=this;let l;return function(t){return e.enter("definition"),o.factoryLabel.call(a,e,h,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function h(t){return l=(0,c.normalizeIdentifier)(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),(0,s.factoryWhitespace)(e,(0,n.factoryDestination)(e,e.attempt(f,(0,i.factorySpace)(e,p,"whitespace"),(0,i.factorySpace)(e,p,"whitespace")),r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):r(t)}function p(n){return null===n||(0,u.markdownLineEnding)(n)?(e.exit("definition"),a.parser.defined.includes(l)||a.parser.defined.push(l),t(n)):r(n)}}},f={tokenize:function(e,t,r){return function(t){return(0,u.markdownLineEndingOrSpace)(t)?(0,s.factoryWhitespace)(e,n)(t):r(t)};function n(t){return 34===t||39===t||40===t?(0,a.factoryTitle)(e,(0,i.factorySpace)(e,o,"whitespace"),r,"definitionTitle","definitionTitleMarker","definitionTitleString")(t):r(t)}function o(e){return null===e||(0,u.markdownLineEnding)(e)?t(e):r(e)}},partial:!0}},6100:(e,t,r)=>{"use strict";r.d(t,{R:()=>o});var n=r(488);const o={name:"hardBreakEscape",tokenize:function(e,t,r){return function(t){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(t),o};function o(o){return(0,n.markdownLineEnding)(o)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(o)):r(o)}}}},5528:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(4014),o=r(488),i=r(8300);const a={name:"headingAtx",tokenize:function(e,t,r){const i=this;let a=0;return function(t){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),s(t)};function s(n){return 35===n&&a++<6?(e.consume(n),s):null===n||(0,o.markdownLineEndingOrSpace)(n)?(e.exit("atxHeadingSequence"),i.interrupt?t(n):c(n)):r(n)}function c(r){return 35===r?(e.enter("atxHeadingSequence"),u(r)):null===r||(0,o.markdownLineEnding)(r)?(e.exit("atxHeading"),t(r)):(0,o.markdownSpace)(r)?(0,n.factorySpace)(e,c,"whitespace")(r):(e.enter("atxHeadingText"),l(r))}function u(t){return 35===t?(e.consume(t),u):(e.exit("atxHeadingSequence"),c(t))}function l(t){return null===t||35===t||(0,o.markdownLineEndingOrSpace)(t)?(e.exit("atxHeadingText"),c(t)):(e.consume(t),l)}},resolve:function(e,t){let r,n,o=e.length-2,a=3;"whitespace"===e[a][1].type&&(a+=2);o-2>a&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(a===o-1||o-4>a&&"whitespace"===e[o-2][1].type)&&(o-=a+1===o?2:4);o>a&&(r={type:"atxHeadingText",start:e[a][1].start,end:e[o][1].end},n={type:"chunkText",start:e[a][1].start,end:e[o][1].end,contentType:"text"},(0,i.d)(e,a,o-a+1,[["enter",r,t],["enter",n,t],["exit",n,t],["exit",r,t]]));return e}}},5198:(e,t,r)=>{"use strict";r.d(t,{P:()=>s});var n=r(488);const o=["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","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],i=["pre","script","style","textarea"];var a=r(2929);const s={name:"htmlFlow",tokenize:function(e,t,r){const a=this;let s,u,l,f,h;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),p};function p(o){return 33===o?(e.consume(o),d):47===o?(e.consume(o),y):63===o?(e.consume(o),s=3,a.interrupt?t:N):(0,n.asciiAlpha)(o)?(e.consume(o),l=String.fromCharCode(o),u=!0,v):r(o)}function d(o){return 45===o?(e.consume(o),s=2,m):91===o?(e.consume(o),s=5,l="CDATA[",f=0,g):(0,n.asciiAlpha)(o)?(e.consume(o),s=4,a.interrupt?t:N):r(o)}function m(n){return 45===n?(e.consume(n),a.interrupt?t:N):r(n)}function g(n){return n===l.charCodeAt(f++)?(e.consume(n),f===l.length?a.interrupt?t:O:g):r(n)}function y(t){return(0,n.asciiAlpha)(t)?(e.consume(t),l=String.fromCharCode(t),v):r(t)}function v(c){return null===c||47===c||62===c||(0,n.markdownLineEndingOrSpace)(c)?47!==c&&u&&i.includes(l.toLowerCase())?(s=1,a.interrupt?t(c):O(c)):o.includes(l.toLowerCase())?(s=6,47===c?(e.consume(c),b):a.interrupt?t(c):O(c)):(s=7,a.interrupt&&!a.parser.lazy[a.now().line]?r(c):u?w(c):E(c)):45===c||(0,n.asciiAlphanumeric)(c)?(e.consume(c),l+=String.fromCharCode(c),v):r(c)}function b(n){return 62===n?(e.consume(n),a.interrupt?t:O):r(n)}function E(t){return(0,n.markdownSpace)(t)?(e.consume(t),E):F(t)}function w(t){return 47===t?(e.consume(t),F):58===t||95===t||(0,n.asciiAlpha)(t)?(e.consume(t),x):(0,n.markdownSpace)(t)?(e.consume(t),w):F(t)}function x(t){return 45===t||46===t||58===t||95===t||(0,n.asciiAlphanumeric)(t)?(e.consume(t),x):S(t)}function S(t){return 61===t?(e.consume(t),A):(0,n.markdownSpace)(t)?(e.consume(t),S):w(t)}function A(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),h=t,k):(0,n.markdownSpace)(t)?(e.consume(t),A):(h=null,D(t))}function k(t){return null===t||(0,n.markdownLineEnding)(t)?r(t):t===h?(e.consume(t),C):(e.consume(t),k)}function D(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t||(0,n.markdownLineEndingOrSpace)(t)?S(t):(e.consume(t),D)}function C(e){return 47===e||62===e||(0,n.markdownSpace)(e)?w(e):r(e)}function F(t){return 62===t?(e.consume(t),P):r(t)}function P(t){return(0,n.markdownSpace)(t)?(e.consume(t),P):null===t||(0,n.markdownLineEnding)(t)?O(t):r(t)}function O(t){return 45===t&&2===s?(e.consume(t),_):60===t&&1===s?(e.consume(t),R):62===t&&4===s?(e.consume(t),M):63===t&&3===s?(e.consume(t),N):93===t&&5===s?(e.consume(t),L):!(0,n.markdownLineEnding)(t)||6!==s&&7!==s?null===t||(0,n.markdownLineEnding)(t)?T(t):(e.consume(t),O):e.check(c,M,T)(t)}function T(t){return e.exit("htmlFlowData"),j(t)}function j(t){return null===t?H(t):(0,n.markdownLineEnding)(t)?e.attempt({tokenize:I,partial:!0},j,H)(t):(e.enter("htmlFlowData"),O(t))}function I(e,t,r){return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),n};function n(e){return a.parser.lazy[a.now().line]?r(e):t(e)}}function _(t){return 45===t?(e.consume(t),N):O(t)}function R(t){return 47===t?(e.consume(t),l="",B):O(t)}function B(t){return 62===t&&i.includes(l.toLowerCase())?(e.consume(t),M):(0,n.asciiAlpha)(t)&&l.length<8?(e.consume(t),l+=String.fromCharCode(t),B):O(t)}function L(t){return 93===t?(e.consume(t),N):O(t)}function N(t){return 62===t?(e.consume(t),M):45===t&&2===s?(e.consume(t),N):O(t)}function M(t){return null===t||(0,n.markdownLineEnding)(t)?(e.exit("htmlFlowData"),H(t)):(e.consume(t),M)}function H(r){return e.exit("htmlFlow"),t(r)}},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},concrete:!0},c={tokenize:function(e,t,r){return function(n){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),e.attempt(a.w,t,r)}},partial:!0}},5890:(e,t,r)=>{"use strict";r.d(t,{L:()=>i});var n=r(4014),o=r(488);const i={name:"htmlText",tokenize:function(e,t,r){const i=this;let a,s,c,u;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),l};function l(t){return 33===t?(e.consume(t),f):47===t?(e.consume(t),A):63===t?(e.consume(t),x):(0,o.asciiAlpha)(t)?(e.consume(t),C):r(t)}function f(t){return 45===t?(e.consume(t),h):91===t?(e.consume(t),s="CDATA[",c=0,y):(0,o.asciiAlpha)(t)?(e.consume(t),w):r(t)}function h(t){return 45===t?(e.consume(t),p):r(t)}function p(t){return null===t||62===t?r(t):45===t?(e.consume(t),d):m(t)}function d(e){return null===e||62===e?r(e):m(e)}function m(t){return null===t?r(t):45===t?(e.consume(t),g):(0,o.markdownLineEnding)(t)?(u=m,R(t)):(e.consume(t),m)}function g(t){return 45===t?(e.consume(t),L):m(t)}function y(t){return t===s.charCodeAt(c++)?(e.consume(t),c===s.length?v:y):r(t)}function v(t){return null===t?r(t):93===t?(e.consume(t),b):(0,o.markdownLineEnding)(t)?(u=v,R(t)):(e.consume(t),v)}function b(t){return 93===t?(e.consume(t),E):v(t)}function E(t){return 62===t?L(t):93===t?(e.consume(t),E):v(t)}function w(t){return null===t||62===t?L(t):(0,o.markdownLineEnding)(t)?(u=w,R(t)):(e.consume(t),w)}function x(t){return null===t?r(t):63===t?(e.consume(t),S):(0,o.markdownLineEnding)(t)?(u=x,R(t)):(e.consume(t),x)}function S(e){return 62===e?L(e):x(e)}function A(t){return(0,o.asciiAlpha)(t)?(e.consume(t),k):r(t)}function k(t){return 45===t||(0,o.asciiAlphanumeric)(t)?(e.consume(t),k):D(t)}function D(t){return(0,o.markdownLineEnding)(t)?(u=D,R(t)):(0,o.markdownSpace)(t)?(e.consume(t),D):L(t)}function C(t){return 45===t||(0,o.asciiAlphanumeric)(t)?(e.consume(t),C):47===t||62===t||(0,o.markdownLineEndingOrSpace)(t)?F(t):r(t)}function F(t){return 47===t?(e.consume(t),L):58===t||95===t||(0,o.asciiAlpha)(t)?(e.consume(t),P):(0,o.markdownLineEnding)(t)?(u=F,R(t)):(0,o.markdownSpace)(t)?(e.consume(t),F):L(t)}function P(t){return 45===t||46===t||58===t||95===t||(0,o.asciiAlphanumeric)(t)?(e.consume(t),P):O(t)}function O(t){return 61===t?(e.consume(t),T):(0,o.markdownLineEnding)(t)?(u=O,R(t)):(0,o.markdownSpace)(t)?(e.consume(t),O):F(t)}function T(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),a=t,j):(0,o.markdownLineEnding)(t)?(u=T,R(t)):(0,o.markdownSpace)(t)?(e.consume(t),T):(e.consume(t),a=void 0,_)}function j(t){return t===a?(e.consume(t),I):null===t?r(t):(0,o.markdownLineEnding)(t)?(u=j,R(t)):(e.consume(t),j)}function I(e){return 62===e||47===e||(0,o.markdownLineEndingOrSpace)(e)?F(e):r(e)}function _(t){return null===t||34===t||39===t||60===t||61===t||96===t?r(t):62===t||(0,o.markdownLineEndingOrSpace)(t)?F(t):(e.consume(t),_)}function R(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,n.factorySpace)(e,B,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function B(t){return e.enter("htmlTextData"),u(t)}function L(n){return 62===n?(e.consume(n),e.exit("htmlTextData"),e.exit("htmlText"),t):r(n)}}}},8966:(e,t,r)=>{"use strict";r.d(t,{Z:()=>f});var n=r(917),o=r(7504),i=r(1559),a=r(6096),s=r(488),c=r(8300),u=r(2493),l=r(3879);const f={name:"labelEnd",tokenize:function(e,t,r){const n=this;let o,i,a=n.events.length;for(;a--;)if(("labelImage"===n.events[a][1].type||"labelLink"===n.events[a][1].type)&&!n.events[a][1]._balanced){o=n.events[a][1];break}return function(t){if(!o)return r(t);return o._inactive?c(t):(i=n.parser.defined.includes((0,u.normalizeIdentifier)(n.sliceSerialize({start:o.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s)};function s(r){return 40===r?e.attempt(h,t,i?t:c)(r):91===r?e.attempt(p,t,i?e.attempt(d,t,c):c)(r):i?t(r):c(r)}function c(e){return o._balanced=!0,r(e)}},resolveTo:function(e,t){let r,n,o,i,a=e.length,s=0;for(;a--;)if(r=e[a][1],n){if("link"===r.type||"labelLink"===r.type&&r._inactive)break;"enter"===e[a][0]&&"labelLink"===r.type&&(r._inactive=!0)}else if(o){if("enter"===e[a][0]&&("labelImage"===r.type||"labelLink"===r.type)&&!r._balanced&&(n=a,"labelLink"!==r.type)){s=2;break}}else"labelEnd"===r.type&&(o=a);const u={type:"labelLink"===e[n][1].type?"link":"image",start:Object.assign({},e[n][1].start),end:Object.assign({},e[e.length-1][1].end)},f={type:"label",start:Object.assign({},e[n][1].start),end:Object.assign({},e[o][1].end)},h={type:"labelText",start:Object.assign({},e[n+s+2][1].end),end:Object.assign({},e[o-2][1].start)};return i=[["enter",u,t],["enter",f,t]],i=(0,c.V)(i,e.slice(n+1,n+s+3)),i=(0,c.V)(i,[["enter",h,t]]),i=(0,c.V)(i,(0,l.C)(t.parser.constructs.insideSpan.null,e.slice(n+s+4,o-3),t)),i=(0,c.V)(i,[["exit",h,t],e[o-2],e[o-1],["exit",f,t]]),i=(0,c.V)(i,e.slice(o+1)),i=(0,c.V)(i,[["exit",u,t]]),(0,c.d)(e,n,e.length,i),e},resolveAll:function(e){let t,r=-1;for(;++r<e.length;)t=e[r][1],"labelImage"!==t.type&&"labelLink"!==t.type&&"labelEnd"!==t.type||(e.splice(r+1,"labelImage"===t.type?4:2),t.type="data",r++);return e}},h={tokenize:function(e,t,r){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),(0,a.factoryWhitespace)(e,o)};function o(t){return 41===t?l(t):(0,n.factoryDestination)(e,c,r,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function c(t){return(0,s.markdownLineEndingOrSpace)(t)?(0,a.factoryWhitespace)(e,u)(t):l(t)}function u(t){return 34===t||39===t||40===t?(0,i.factoryTitle)(e,(0,a.factoryWhitespace)(e,l),r,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):l(t)}function l(n){return 41===n?(e.enter("resourceMarker"),e.consume(n),e.exit("resourceMarker"),e.exit("resource"),t):r(n)}}},p={tokenize:function(e,t,r){const n=this;return function(t){return o.factoryLabel.call(n,e,i,r,"reference","referenceMarker","referenceString")(t)};function i(e){return n.parser.defined.includes((0,u.normalizeIdentifier)(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}}},d={tokenize:function(e,t,r){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),n};function n(n){return 93===n?(e.enter("referenceMarker"),e.consume(n),e.exit("referenceMarker"),e.exit("reference"),t):r(n)}}}},5365:(e,t,r)=>{"use strict";r.d(t,{C:()=>n});const n={name:"labelStartImage",tokenize:function(e,t,r){const n=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):r(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in n.parser.constructs?r(e):t(e)}},resolveAll:r(8966).Z.resolveAll}},5856:(e,t,r)=>{"use strict";r.d(t,{F:()=>n});const n={name:"labelStartLink",tokenize:function(e,t,r){const n=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 n.parser.constructs?r(e):t(e)}},resolveAll:r(8966).Z.resolveAll}},890:(e,t,r)=>{"use strict";r.d(t,{g:()=>o});var n=r(4014);const o={name:"lineEnding",tokenize:function(e,t){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),(0,n.factorySpace)(e,t,"linePrefix")}}}},4618:(e,t,r)=>{"use strict";r.d(t,{p:()=>s});var n=r(4014),o=r(488),i=r(2929),a=r(8038);const s={name:"list",tokenize:function(e,t,r){const n=this,s=n.events[n.events.length-1];let u=s&&"linePrefix"===s[1].type?s[2].sliceSerialize(s[1],!0).length:0,l=0;return function(t){const i=n.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!n.containerState.marker||t===n.containerState.marker:(0,o.asciiDigit)(t)){if(n.containerState.type||(n.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(a.C,r,h)(t):h(t);if(!n.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(t)}return r(t)};function f(t){return(0,o.asciiDigit)(t)&&++l<10?(e.consume(t),f):(!n.interrupt||l<2)&&(n.containerState.marker?t===n.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),h(t)):r(t)}function h(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||t,e.check(i.w,n.interrupt?r:p,e.attempt(c,m,d))}function p(e){return n.containerState.initialBlankLine=!0,u++,m(e)}function d(t){return(0,o.markdownSpace)(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),m):r(t)}function m(r){return n.containerState.size=u+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(r)}},continuation:{tokenize:function(e,t,r){const a=this;return a.containerState._closeFlow=void 0,e.check(i.w,(function(r){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,(0,n.factorySpace)(e,t,"listItemIndent",a.containerState.size+1)(r)}),(function(r){if(a.containerState.furtherBlankLines||!(0,o.markdownSpace)(r))return a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,c(r);return a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(u,t,c)(r)}));function c(o){return a.containerState._closeFlow=!0,a.interrupt=void 0,(0,n.factorySpace)(e,e.attempt(s,t,r),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)}},c={tokenize:function(e,t,r){const i=this;return(0,n.factorySpace)(e,(function(e){const n=i.events[i.events.length-1];return!(0,o.markdownSpace)(e)&&n&&"listItemPrefixWhitespace"===n[1].type?t(e):r(e)}),"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},u={tokenize:function(e,t,r){const o=this;return(0,n.factorySpace)(e,(function(e){const n=o.events[o.events.length-1];return n&&"listItemIndent"===n[1].type&&n[2].sliceSerialize(n[1],!0).length===o.containerState.size?t(e):r(e)}),"listItemIndent",o.containerState.size+1)},partial:!0}},6263:(e,t,r)=>{"use strict";r.d(t,{C:()=>i});var n=r(4014),o=r(488);const i={name:"setextUnderline",tokenize:function(e,t,r){const i=this;let a,s,c=i.events.length;for(;c--;)if("lineEnding"!==i.events[c][1].type&&"linePrefix"!==i.events[c][1].type&&"content"!==i.events[c][1].type){s="paragraph"===i.events[c][1].type;break}return function(t){if(!i.parser.lazy[i.now().line]&&(i.interrupt||s))return e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),a=t,u(t);return r(t)};function u(t){return t===a?(e.consume(t),u):(e.exit("setextHeadingLineSequence"),(0,n.factorySpace)(e,l,"lineSuffix")(t))}function l(n){return null===n||(0,o.markdownLineEnding)(n)?(e.exit("setextHeadingLine"),t(n)):r(n)}},resolveTo:function(e,t){let r,n,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){r=i;break}"paragraph"===e[i][1].type&&(n=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const a={type:"setextHeading",start:Object.assign({},e[n][1].start),end:Object.assign({},e[e.length-1][1].end)};e[n][1].type="setextHeadingText",o?(e.splice(n,0,["enter",a,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[o][1].end)):e[r][1]=a;return e.push(["exit",a,t]),e}}},8038:(e,t,r)=>{"use strict";r.d(t,{C:()=>i});var n=r(4014),o=r(488);const i={name:"thematicBreak",tokenize:function(e,t,r){let i,a=0;return function(t){return e.enter("thematicBreak"),i=t,s(t)};function s(u){return u===i?(e.enter("thematicBreakSequence"),c(u)):(0,o.markdownSpace)(u)?(0,n.factorySpace)(e,s,"whitespace")(u):a<3||null!==u&&!(0,o.markdownLineEnding)(u)?r(u):(e.exit("thematicBreak"),t(u))}function c(t){return t===i?(e.consume(t),a++,c):(e.exit("thematicBreakSequence"),s(t))}}}},917:(e,t,r)=>{"use strict";r.r(t),r.d(t,{factoryDestination:()=>o});var n=r(488);function o(e,t,r,o,i,a,s,c,u){const l=u||Number.POSITIVE_INFINITY;let f=0;return function(t){if(60===t)return e.enter(o),e.enter(i),e.enter(a),e.consume(t),e.exit(a),h;if(null===t||41===t||(0,n.asciiControl)(t))return r(t);return e.enter(o),e.enter(s),e.enter(c),e.enter("chunkString",{contentType:"string"}),m(t)};function h(r){return 62===r?(e.enter(a),e.consume(r),e.exit(a),e.exit(i),e.exit(o),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),p(r))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(c),h(t)):null===t||60===t||(0,n.markdownLineEnding)(t)?r(t):(e.consume(t),92===t?d:p)}function d(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function m(i){return 40===i?++f>l?r(i):(e.consume(i),m):41===i?f--?(e.consume(i),m):(e.exit("chunkString"),e.exit(c),e.exit(s),e.exit(o),t(i)):null===i||(0,n.markdownLineEndingOrSpace)(i)?f?r(i):(e.exit("chunkString"),e.exit(c),e.exit(s),e.exit(o),t(i)):(0,n.asciiControl)(i)?r(i):(e.consume(i),92===i?g:m)}function g(t){return 40===t||41===t||92===t?(e.consume(t),m):m(t)}}},7504:(e,t,r)=>{"use strict";r.r(t),r.d(t,{factoryLabel:()=>o});var n=r(488);function o(e,t,r,o,i,a){const s=this;let c,u=0;return function(t){return e.enter(o),e.enter(i),e.consume(t),e.exit(i),e.enter(a),l};function l(h){return null===h||91===h||93===h&&!c||94===h&&!u&&"_hiddenFootnoteSupport"in s.parser.constructs||u>999?r(h):93===h?(e.exit(a),e.enter(i),e.consume(h),e.exit(i),e.exit(o),t):(0,n.markdownLineEnding)(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),l):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(t){return null===t||91===t||93===t||(0,n.markdownLineEnding)(t)||u++>999?(e.exit("chunkString"),l(t)):(e.consume(t),c=c||!(0,n.markdownSpace)(t),92===t?h:f)}function h(t){return 91===t||92===t||93===t?(e.consume(t),u++,f):f(t)}}},4014:(e,t,r)=>{"use strict";r.r(t),r.d(t,{factorySpace:()=>o});var n=r(488);function o(e,t,r,o){const i=o?o-1:Number.POSITIVE_INFINITY;let a=0;return function(o){if((0,n.markdownSpace)(o))return e.enter(r),s(o);return t(o)};function s(o){return(0,n.markdownSpace)(o)&&a++<i?(e.consume(o),s):(e.exit(r),t(o))}}},1559:(e,t,r)=>{"use strict";r.r(t),r.d(t,{factoryTitle:()=>i});var n=r(4014),o=r(488);function i(e,t,r,i,a,s){let c;return function(t){return e.enter(i),e.enter(a),e.consume(t),e.exit(a),c=40===t?41:t,u};function u(r){return r===c?(e.enter(a),e.consume(r),e.exit(a),e.exit(i),t):(e.enter(s),l(r))}function l(t){return t===c?(e.exit(s),u(c)):null===t?r(t):(0,o.markdownLineEnding)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,n.factorySpace)(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return t===c||null===t||(0,o.markdownLineEnding)(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?h:f)}function h(t){return t===c||92===t?(e.consume(t),f):f(t)}}},6096:(e,t,r)=>{"use strict";r.r(t),r.d(t,{factoryWhitespace:()=>i});var n=r(4014),o=r(488);function i(e,t){let r;return function i(a){if((0,o.markdownLineEnding)(a))return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),r=!0,i;if((0,o.markdownSpace)(a))return(0,n.factorySpace)(e,i,r?"linePrefix":"lineSuffix")(a);return t(a)}}},488:(e,t,r)=>{"use strict";r.r(t),r.d(t,{asciiAlpha:()=>n,asciiAlphanumeric:()=>a,asciiAtext:()=>c,asciiControl:()=>u,asciiDigit:()=>o,asciiHexDigit:()=>i,asciiPunctuation:()=>s,markdownLineEnding:()=>f,markdownLineEndingOrSpace:()=>l,markdownSpace:()=>h,unicodePunctuation:()=>d,unicodeWhitespace:()=>p});const n=m(/[A-Za-z]/),o=m(/\d/),i=m(/[\dA-Fa-f]/),a=m(/[\dA-Za-z]/),s=m(/[!-/:-@[-`{-~]/),c=m(/[#-'*+\--9=?A-Z^-~]/);function u(e){return null!==e&&(e<32||127===e)}function l(e){return null!==e&&(e<0||32===e)}function f(e){return null!==e&&e<-2}function h(e){return-2===e||-1===e||32===e}const p=m(/\s/),d=m(/[!-/:-@[-`{-~\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/);function m(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}},8300:(e,t,r)=>{"use strict";function n(e,t,r,n){const o=e.length;let i,a=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,r=r>0?r:0,n.length<1e4)i=Array.from(n),i.unshift(t,r),[].splice.apply(e,i);else for(r&&[].splice.apply(e,[t,r]);a<n.length;)i=n.slice(a,a+1e4),i.unshift(t,0),[].splice.apply(e,i),a+=1e4,t+=1e4}function o(e,t){return e.length>0?(n(e,e.length,0,t),e):t}r.d(t,{V:()=>o,d:()=>n})},3886:(e,t,r)=>{"use strict";r.d(t,{r:()=>o});var n=r(488);function o(e){return null===e||(0,n.markdownLineEndingOrSpace)(e)||(0,n.unicodeWhitespace)(e)?1:(0,n.unicodePunctuation)(e)?2:void 0}},4666:(e,t,r)=>{"use strict";r.d(t,{W:()=>i});var n=r(8300);const o={}.hasOwnProperty;function i(e){const t={};let r=-1;for(;++r<e.length;)a(t,e[r]);return t}function a(e,t){let r;for(r in t){const n=(o.call(e,r)?e[r]:void 0)||(e[r]={}),i=t[r];let a;for(a in i){o.call(n,a)||(n[a]=[]);const e=i[a];s(n[a],Array.isArray(e)?e:e?[e]:[])}}}function s(e,t){let r=-1;const o=[];for(;++r<t.length;)("after"===t[r].add?e:o).push(t[r]);(0,n.d)(e,0,0,o)}},8031:(e,t,r)=>{"use strict";function n(e,t){const r=Number.parseInt(e,t);return r<9||11===r||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||65535==(65535&r)||65534==(65535&r)||r>1114111?"�":String.fromCharCode(r)}r.d(t,{o:()=>n})},2116:(e,t,r)=>{"use strict";r.d(t,{v:()=>a});var n=r(9477),o=r(8031);const i=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function a(e){return e.replace(i,s)}function s(e,t,r){if(t)return t;if(35===r.charCodeAt(0)){const e=r.charCodeAt(1),t=120===e||88===e;return(0,o.o)(r.slice(t?2:1),t?16:10)}return(0,n.T)(r)||e}},2493:(e,t,r)=>{"use strict";function n(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}r.r(t),r.d(t,{normalizeIdentifier:()=>n})},3879:(e,t,r)=>{"use strict";function n(e,t,r){const n=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!n.includes(i)&&(t=i(t,r),n.push(i))}return t}r.d(t,{C:()=>n})},2988:(e,t,r)=>{"use strict";r.d(t,{_:()=>o});var n=r(8300);function o(e){const t={};let r,o,a,s,c,u,l,f=-1;for(;++f<e.length;){for(;f in t;)f=t[f];if(r=e[f],f&&"chunkFlow"===r[1].type&&"listItemPrefix"===e[f-1][1].type&&(u=r[1]._tokenizer.events,a=0,a<u.length&&"lineEndingBlank"===u[a][1].type&&(a+=2),a<u.length&&"content"===u[a][1].type))for(;++a<u.length&&"content"!==u[a][1].type;)"chunkText"===u[a][1].type&&(u[a][1]._isInFirstContentOfListItem=!0,a++);if("enter"===r[0])r[1].contentType&&(Object.assign(t,i(e,f)),f=t[f],l=!0);else if(r[1]._container){for(a=f,o=void 0;a--&&(s=e[a],"lineEnding"===s[1].type||"lineEndingBlank"===s[1].type);)"enter"===s[0]&&(o&&(e[o][1].type="lineEndingBlank"),s[1].type="lineEnding",o=a);o&&(r[1].end=Object.assign({},e[o][1].start),c=e.slice(o,f),c.unshift(r),(0,n.d)(e,o,f-o+1,c))}}return!l}function i(e,t){const r=e[t][1],o=e[t][2];let i=t-1;const a=[],s=r._tokenizer||o.parser[r.contentType](r.start),c=s.events,u=[],l={};let f,h,p=-1,d=r,m=0,g=0;const y=[g];for(;d;){for(;e[++i][1]!==d;);a.push(i),d._tokenizer||(f=o.sliceStream(d),d.next||f.push(null),h&&s.defineSkip(d.start),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(f),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),h=d,d=d.next}for(d=r;++p<c.length;)"exit"===c[p][0]&&"enter"===c[p-1][0]&&c[p][1].type===c[p-1][1].type&&c[p][1].start.line!==c[p][1].end.line&&(g=p+1,y.push(g),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(s.events=[],d?(d._tokenizer=void 0,d.previous=void 0):y.pop(),p=y.length;p--;){const t=c.slice(y[p],y[p+1]),r=a.pop();u.unshift([r,r+t.length-1]),(0,n.d)(e,r,2,t)}for(p=-1;++p<u.length;)l[m+u[p][0]]=m+u[p][1],m+=u[p][1]-u[p][0]-1;return l}},7605:(e,t,r)=>{"use strict";r.r(t),r.d(t,{codes:()=>n});const n={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533}},480:(e,t,r)=>{"use strict";r.r(t),r.d(t,{constants:()=>n});const n={attentionSideBefore:1,attentionSideAfter:2,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:"CDATA[",characterGroupWhitespace:1,characterGroupPunctuation:2,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeDocument:"document",contentTypeFlow:"flow",contentTypeContent:"content",contentTypeString:"string",contentTypeText:"text",hardBreakPrefixSizeMin:2,htmlRaw:1,htmlComment:2,htmlInstruction:3,htmlDeclaration:4,htmlCdata:5,htmlBasic:6,htmlComplete:7,htmlRawSizeMax:8,linkResourceDestinationBalanceMax:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4}},58:(e,t,r)=>{"use strict";r.r(t),r.d(t,{types:()=>n});const n={data:"data",whitespace:"whitespace",lineEnding:"lineEnding",lineEndingBlank:"lineEndingBlank",linePrefix:"linePrefix",lineSuffix:"lineSuffix",atxHeading:"atxHeading",atxHeadingSequence:"atxHeadingSequence",atxHeadingText:"atxHeadingText",autolink:"autolink",autolinkEmail:"autolinkEmail",autolinkMarker:"autolinkMarker",autolinkProtocol:"autolinkProtocol",characterEscape:"characterEscape",characterEscapeValue:"characterEscapeValue",characterReference:"characterReference",characterReferenceMarker:"characterReferenceMarker",characterReferenceMarkerNumeric:"characterReferenceMarkerNumeric",characterReferenceMarkerHexadecimal:"characterReferenceMarkerHexadecimal",characterReferenceValue:"characterReferenceValue",codeFenced:"codeFenced",codeFencedFence:"codeFencedFence",codeFencedFenceSequence:"codeFencedFenceSequence",codeFencedFenceInfo:"codeFencedFenceInfo",codeFencedFenceMeta:"codeFencedFenceMeta",codeFlowValue:"codeFlowValue",codeIndented:"codeIndented",codeText:"codeText",codeTextData:"codeTextData",codeTextPadding:"codeTextPadding",codeTextSequence:"codeTextSequence",content:"content",definition:"definition",definitionDestination:"definitionDestination",definitionDestinationLiteral:"definitionDestinationLiteral",definitionDestinationLiteralMarker:"definitionDestinationLiteralMarker",definitionDestinationRaw:"definitionDestinationRaw",definitionDestinationString:"definitionDestinationString",definitionLabel:"definitionLabel",definitionLabelMarker:"definitionLabelMarker",definitionLabelString:"definitionLabelString",definitionMarker:"definitionMarker",definitionTitle:"definitionTitle",definitionTitleMarker:"definitionTitleMarker",definitionTitleString:"definitionTitleString",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",escapeMarker:"escapeMarker",hardBreakEscape:"hardBreakEscape",hardBreakTrailing:"hardBreakTrailing",htmlFlow:"htmlFlow",htmlFlowData:"htmlFlowData",htmlText:"htmlText",htmlTextData:"htmlTextData",image:"image",label:"label",labelText:"labelText",labelLink:"labelLink",labelImage:"labelImage",labelMarker:"labelMarker",labelImageMarker:"labelImageMarker",labelEnd:"labelEnd",link:"link",paragraph:"paragraph",reference:"reference",referenceMarker:"referenceMarker",referenceString:"referenceString",resource:"resource",resourceDestination:"resourceDestination",resourceDestinationLiteral:"resourceDestinationLiteral",resourceDestinationLiteralMarker:"resourceDestinationLiteralMarker",resourceDestinationRaw:"resourceDestinationRaw",resourceDestinationString:"resourceDestinationString",resourceMarker:"resourceMarker",resourceTitle:"resourceTitle",resourceTitleMarker:"resourceTitleMarker",resourceTitleString:"resourceTitleString",setextHeading:"setextHeading",setextHeadingText:"setextHeadingText",setextHeadingLine:"setextHeadingLine",setextHeadingLineSequence:"setextHeadingLineSequence",strong:"strong",strongSequence:"strongSequence",strongText:"strongText",thematicBreak:"thematicBreak",thematicBreakSequence:"thematicBreakSequence",blockQuote:"blockQuote",blockQuotePrefix:"blockQuotePrefix",blockQuoteMarker:"blockQuoteMarker",blockQuotePrefixWhitespace:"blockQuotePrefixWhitespace",listOrdered:"listOrdered",listUnordered:"listUnordered",listItemIndent:"listItemIndent",listItemMarker:"listItemMarker",listItemPrefix:"listItemPrefix",listItemPrefixWhitespace:"listItemPrefixWhitespace",listItemValue:"listItemValue",chunkDocument:"chunkDocument",chunkContent:"chunkContent",chunkFlow:"chunkFlow",chunkText:"chunkText",chunkString:"chunkString"}},469:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(3428);const o=/[\t ]*(?:\r?\n|\r)/g;function i(){return e=>{(0,n.visit)(e,"text",((e,t,r)=>{const n=[];let i=0;o.lastIndex=0;let a=o.exec(e.value);for(;a;){const t=a.index;i!==t&&n.push({type:"text",value:e.value.slice(i,t)}),n.push({type:"break"}),i=t+a[0].length,a=o.exec(e.value)}if(n.length>0&&r&&"number"==typeof t)return i<e.value.length&&n.push({type:"text",value:e.value.slice(i)}),r.children.splice(t,1,...n),t+n.length}))}}},8056:(e,t,r)=>{"use strict";r.r(t),r.d(t,{remarkHeadingId:()=>i});var n=r(3428),o=r(7605);function i(){const e=this.data();function t(t,r){(e[t]||(e[t]=[])).push(r)}return t("micromarkExtensions",{text:{[o.codes.leftCurlyBrace]:{name:"headingIdMaybeStart",tokenize:(e,t,r)=>function(n){return e.attempt({tokenize(e,t,r){return function(t){if(t!==o.codes.leftCurlyBrace)throw new Error(`Unexpected code ${t}`);return e.enter("id"),e.enter("idMarker"),e.consume(t),n};function n(t){return t!==o.codes.numberSign?r(t):(e.consume(t),e.exit("idMarker"),e.enter("idString"),e.enter("chunkString",{contentType:"string"}),i)}function i(n){return[o.codes.carriageReturn,o.codes.lineFeed,o.codes.carriageReturnLineFeed,null,o.codes.backslash,o.codes.leftCurlyBrace].includes(n)?r(n):n===o.codes.rightCurlyBrace?(e.exit("chunkString"),e.exit("idString"),e.enter("idMarker"),e.consume(n),e.exit("idMarker"),e.exit("id"),t):(e.consume(n),i)}}},t,r)(n)}}}}),t("fromMarkdownExtensions",{enter:{idString(e){this.enter({type:"idString",value:null},e),this.buffer()}},exit:{idString(e){const t=this.resume();this.exit(e).value=t}}}),function(e){(0,n.visit)(e,"idString",((e,t,r)=>{if(!r)throw new Error("Unexpected idString under no parent.");if("heading"!==r.type)throw new Error(`Unexpected node ${e} under ${r}`)})),(0,n.visit)(e,"heading",(e=>{const t=e.children.filter((e=>"idString"===e.type));if(0==t.length)return;if(t.length>1)throw new Error(`Found ${t.length} ids under heading ${e}.`);const r=t[0];if(r.value&&r.value.length>0){e.data||(e.data={}),e.data.hProperties||(e.data.hProperties={}),e.data.id=e.data.hProperties.id=r.value,r.value="";const t=e.children.indexOf(r);if(t>=1){const r=e.children[t-1];"text"===r.type&&(r.value=r.value.trimEnd())}e.children.splice(t,1)}}))}}},7327:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>Y});var n=r(4014),o=r(488),i=r(6096);function a(e,t,r,a,s,c,u,l,f,h,p,d,m,g,y){let v,b;return function(t){return e.enter(a),e.enter(s),e.consume(t),e.exit(s),E};function E(t){return 35===t?(v=u,w(t)):46===t?(v=l,w(t)):58===t||95===t||(0,o.asciiAlpha)(t)?(e.enter(c),e.enter(f),e.consume(t),A):y&&(0,o.markdownSpace)(t)?(0,n.factorySpace)(e,E,"whitespace")(t):!y&&(0,o.markdownLineEndingOrSpace)(t)?(0,i.factoryWhitespace)(e,E)(t):j(t)}function w(t){return e.enter(c),e.enter(v),e.enter(v+"Marker"),e.consume(t),e.exit(v+"Marker"),x}function x(t){return null===t||34===t||35===t||39===t||46===t||60===t||61===t||62===t||96===t||125===t||(0,o.markdownLineEndingOrSpace)(t)?r(t):(e.enter(v+"Value"),e.consume(t),S)}function S(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t?r(t):35===t||46===t||125===t||(0,o.markdownLineEndingOrSpace)(t)?(e.exit(v+"Value"),e.exit(v),e.exit(c),E(t)):(e.consume(t),S)}function A(t){return 45===t||46===t||58===t||95===t||(0,o.asciiAlphanumeric)(t)?(e.consume(t),A):(e.exit(f),y&&(0,o.markdownSpace)(t)?(0,n.factorySpace)(e,k,"whitespace")(t):!y&&(0,o.markdownLineEndingOrSpace)(t)?(0,i.factoryWhitespace)(e,k)(t):k(t))}function k(t){return 61===t?(e.enter(h),e.consume(t),e.exit(h),D):(e.exit(c),E(t))}function D(t){return null===t||60===t||61===t||62===t||96===t||125===t||y&&(0,o.markdownLineEnding)(t)?r(t):34===t||39===t?(e.enter(p),e.enter(m),e.consume(t),e.exit(m),b=t,F):y&&(0,o.markdownSpace)(t)?(0,n.factorySpace)(e,D,"whitespace")(t):!y&&(0,o.markdownLineEndingOrSpace)(t)?(0,i.factoryWhitespace)(e,D)(t):(e.enter(d),e.enter(g),e.consume(t),b=void 0,C)}function C(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t?r(t):125===t||(0,o.markdownLineEndingOrSpace)(t)?(e.exit(g),e.exit(d),e.exit(c),E(t)):(e.consume(t),C)}function F(t){return t===b?(e.enter(m),e.consume(t),e.exit(m),e.exit(p),e.exit(c),T):(e.enter(d),P(t))}function P(t){return t===b?(e.exit(d),F(t)):null===t?r(t):(0,o.markdownLineEnding)(t)?y?r(t):(0,i.factoryWhitespace)(e,P)(t):(e.enter(g),e.consume(t),O)}function O(t){return t===b||null===t||(0,o.markdownLineEnding)(t)?(e.exit(g),P(t)):(e.consume(t),O)}function T(e){return 125===e||(0,o.markdownLineEndingOrSpace)(e)?E(e):j(e)}function j(n){return 125===n?(e.enter(s),e.consume(n),e.exit(s),e.exit(a),t):r(n)}}function s(e,t,r,n,i,a,s){let c,u=0,l=0;return function(t){return e.enter(n),e.enter(i),e.consume(t),e.exit(i),f};function f(r){return 93===r?(e.enter(i),e.consume(r),e.exit(i),e.exit(n),t):(e.enter(a),h(r))}function h(t){if(93===t&&!l)return m(t);const r=e.enter("chunkText",{contentType:"text",previous:c});return c&&(c.next=r),c=r,p(t)}function p(t){return null===t||u>999||91===t&&++l>32?r(t):93!==t||l--?(0,o.markdownLineEnding)(t)?s?r(t):(e.consume(t),e.exit("chunkText"),h):(e.consume(t),92===t?d:p):(e.exit("chunkText"),m(t))}function d(t){return 91===t||92===t||93===t?(e.consume(t),u++,p):p(t)}function m(r){return e.exit(a),e.enter(i),e.consume(r),e.exit(i),e.exit(n),t}}function c(e,t,r,n){const i=this;return function(t){if((0,o.asciiAlpha)(t))return e.enter(n),e.consume(t),a;return r(t)};function a(s){return 45===s||95===s||(0,o.asciiAlphanumeric)(s)?(e.consume(s),a):(e.exit(n),45===i.previous||95===i.previous?r(s):t(s))}}const u={tokenize:function(e,t,r){const i=this,a=i.events[i.events.length-1],s=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0;let u,p=0;return function(t){return e.enter("directiveContainer"),e.enter("directiveContainerFence"),e.enter("directiveContainerSequence"),d(t)};function d(t){return 58===t?(e.consume(t),p++,d):p<3?r(t):(e.exit("directiveContainerSequence"),c.call(i,e,m,r,"directiveContainerName")(t))}function m(t){return 91===t?e.attempt(l,g,g)(t):g(t)}function g(t){return 123===t?e.attempt(f,y,y)(t):y(t)}function y(t){return(0,n.factorySpace)(e,v,"whitespace")(t)}function v(n){return e.exit("directiveContainerFence"),null===n?b(n):(0,o.markdownLineEnding)(n)?i.interrupt?t(n):e.attempt(h,E,b)(n):r(n)}function b(r){return e.exit("directiveContainer"),t(r)}function E(r){return null===r?(e.exit("directiveContainer"),t(r)):(e.enter("directiveContainerContent"),w(r))}function w(t){return null===t?D(t):e.attempt({tokenize:C,partial:!0},D,s?(0,n.factorySpace)(e,x,"linePrefix",s+1):x)(t)}function x(t){if(null===t)return D(t);const r=e.enter("chunkDocument",{contentType:"document",previous:u});return u&&(u.next=r),u=r,S(t)}function S(t){if(null===t){const r=e.exit("chunkDocument");return i.parser.lazy[r.start.line]=!1,D(t)}return(0,o.markdownLineEnding)(t)?e.check(h,A,k)(t):(e.consume(t),S)}function A(t){e.consume(t);const r=e.exit("chunkDocument");return i.parser.lazy[r.start.line]=!1,w}function k(t){const r=e.exit("chunkDocument");return i.parser.lazy[r.start.line]=!1,D(t)}function D(r){return e.exit("directiveContainerContent"),e.exit("directiveContainer"),t(r)}function C(e,t,r){let i=0;return(0,n.factorySpace)(e,(function(t){return e.enter("directiveContainerFence"),e.enter("directiveContainerSequence"),a(t)}),"linePrefix",4);function a(t){return 58===t?(e.consume(t),i++,a):i<p?r(t):(e.exit("directiveContainerSequence"),(0,n.factorySpace)(e,s,"whitespace")(t))}function s(n){return null===n||(0,o.markdownLineEnding)(n)?(e.exit("directiveContainerFence"),t(n)):r(n)}}},concrete:!0},l={tokenize:function(e,t,r){return s(e,t,r,"directiveContainerLabel","directiveContainerLabelMarker","directiveContainerLabelString",!0)},partial:!0},f={tokenize:function(e,t,r){return a(e,t,r,"directiveContainerAttributes","directiveContainerAttributesMarker","directiveContainerAttribute","directiveContainerAttributeId","directiveContainerAttributeClass","directiveContainerAttributeName","directiveContainerAttributeInitializerMarker","directiveContainerAttributeValueLiteral","directiveContainerAttributeValue","directiveContainerAttributeValueMarker","directiveContainerAttributeValueData",!0)},partial:!0},h={tokenize:function(e,t,r){const n=this;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(e){return n.parser.lazy[n.now().line]?r(e):t(e)}},partial:!0};const p={tokenize:function(e,t,r){const i=this;return function(t){return e.enter("directiveLeaf"),e.enter("directiveLeafSequence"),e.consume(t),a};function a(t){return 58===t?(e.consume(t),e.exit("directiveLeafSequence"),c.call(i,e,s,r,"directiveLeafName")):r(t)}function s(t){return 91===t?e.attempt(d,u,u)(t):u(t)}function u(t){return 123===t?e.attempt(m,l,l)(t):l(t)}function l(t){return(0,n.factorySpace)(e,f,"whitespace")(t)}function f(n){return null===n||(0,o.markdownLineEnding)(n)?(e.exit("directiveLeaf"),t(n)):r(n)}}},d={tokenize:function(e,t,r){return s(e,t,r,"directiveLeafLabel","directiveLeafLabelMarker","directiveLeafLabelString",!0)},partial:!0},m={tokenize:function(e,t,r){return a(e,t,r,"directiveLeafAttributes","directiveLeafAttributesMarker","directiveLeafAttribute","directiveLeafAttributeId","directiveLeafAttributeClass","directiveLeafAttributeName","directiveLeafAttributeInitializerMarker","directiveLeafAttributeValueLiteral","directiveLeafAttributeValue","directiveLeafAttributeValueMarker","directiveLeafAttributeValueData",!0)},partial:!0};const g={tokenize:function(e,t,r){const n=this;return function(t){return e.enter("directiveText"),e.enter("directiveTextMarker"),e.consume(t),e.exit("directiveTextMarker"),c.call(n,e,o,r,"directiveTextName")};function o(t){return 58===t?r(t):91===t?e.attempt(y,i,i)(t):i(t)}function i(t){return 123===t?e.attempt(v,a,a)(t):a(t)}function a(r){return e.exit("directiveText"),t(r)}},previous:function(e){return 58!==e||"characterEscape"===this.events[this.events.length-1][1].type}},y={tokenize:function(e,t,r){return s(e,t,r,"directiveTextLabel","directiveTextLabelMarker","directiveTextLabelString")},partial:!0},v={tokenize:function(e,t,r){return a(e,t,r,"directiveTextAttributes","directiveTextAttributesMarker","directiveTextAttribute","directiveTextAttributeId","directiveTextAttributeClass","directiveTextAttributeName","directiveTextAttributeInitializerMarker","directiveTextAttributeValueLiteral","directiveTextAttributeValue","directiveTextAttributeValueMarker","directiveTextAttributeValueData")},partial:!0};const b=["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"],E={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function w(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function x(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function S(e){return function(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||w(e)}var A=r(9477);const k=String.fromCharCode,D=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function C(e,t={}){const r="string"==typeof t.additional?t.additional.charCodeAt(0):t.additional,n=[];let o,i,a=0,s=-1,c="";t.position&&("start"in t.position||"indent"in t.position?(i=t.position.indent,o=t.position.start):o=t.position);let u,l=(o?o.line:0)||1,f=(o?o.column:0)||1,h=d();for(a--;++a<=e.length;)if(10===u&&(f=(i?i[s]:0)||1),u=e.charCodeAt(a),38===u){const o=e.charCodeAt(a+1);if(9===o||10===o||12===o||32===o||38===o||60===o||Number.isNaN(o)||r&&o===r){c+=k(u),f++;continue}const i=a+1;let s,l=i,y=i;if(35===o){y=++l;const t=e.charCodeAt(y);88===t||120===t?(s="hexadecimal",y=++l):s="decimal"}else s="named";let v="",D="",C="";const P="named"===s?S:"decimal"===s?w:x;for(y--;++y<=e.length;){const t=e.charCodeAt(y);if(!P(t))break;C+=k(t),"named"===s&&b.includes(C)&&(v=C,D=(0,A.T)(C))}let O=59===e.charCodeAt(y);if(O){y++;const e="named"===s&&(0,A.T)(C);e&&(v=C,D=e)}let T=1+y-i,j="";if(O||!1!==t.nonTerminated)if(C)if("named"===s){if(O&&!D)m(5,1);else if(v!==C&&(y=l+v.length,T=1+y-l,O=!1),!O){const r=v?1:3;if(t.attribute){const t=e.charCodeAt(y);61===t?(m(r,T),D=""):S(t)?D="":m(r,T)}else m(r,T)}j=D}else{O||m(2,T);let e=Number.parseInt(C,"hexadecimal"===s?16:10);if((p=e)>=55296&&p<=57343||p>1114111)m(7,T),j=k(65533);else if(e in E)m(6,T),j=E[e];else{let t="";F(e)&&m(6,T),e>65535&&(e-=65536,t+=k(e>>>10|55296),e=56320|1023&e),j=t+k(e)}}else"named"!==s&&m(4,T);else;if(j){g(),h=d(),a=y-1,f+=y-i+1,n.push(j);const r=d();r.offset++,t.reference&&t.reference.call(t.referenceContext,j,{start:h,end:r},e.slice(i-1,y)),h=r}else C=e.slice(i-1,y),c+=C,f+=C.length,a=y-1}else 10===u&&(l++,s++,f=0),Number.isNaN(u)?g():(c+=k(u),f++);var p;return n.join("");function d(){return{line:l,column:f,offset:a+((o?o.offset:0)||0)}}function m(e,r){let n;t.warning&&(n=d(),n.column+=r,n.offset+=r,t.warning.call(t.warningContext,D[e],n,e))}function g(){c&&(n.push(c),t.text&&t.text.call(t.textContext,c,{start:h,end:d()}),c="")}}function F(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)}function P(e,t){return e=e.replace(t.subset?function(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}(t.subset):/["&'<>`]/g,r),t.subset||t.escapeOnly?e:e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,(function(e,r,n){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,n.charCodeAt(r+2),t)})).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,r);function r(e,r,n){return t.format(e.charCodeAt(0),n.charCodeAt(r+1),t)}}function O(e){return"&#x"+e.toString(16).toUpperCase()+";"}var T=r(7918),j=r(5471),I=r(7567),_=r(1481),R=r(2343);const B={}.hasOwnProperty,L=/^[^\t\n\r "#'.<=>`}]+$/;K.peek=function(){return":"};const N={canContainEols:["textDirective"],enter:{directiveContainer:function(e){H.call(this,"containerDirective",e)},directiveContainerAttributes:U,directiveContainerLabel:function(e){this.enter({type:"paragraph",data:{directiveLabel:!0},children:[]},e)},directiveLeaf:function(e){H.call(this,"leafDirective",e)},directiveLeafAttributes:U,directiveText:function(e){H.call(this,"textDirective",e)},directiveTextAttributes:U},exit:{directiveContainer:Q,directiveContainerAttributeClassValue:q,directiveContainerAttributeIdValue:$,directiveContainerAttributeName:G,directiveContainerAttributeValue:V,directiveContainerAttributes:W,directiveContainerLabel:function(e){this.exit(e)},directiveContainerName:z,directiveLeaf:Q,directiveLeafAttributeClassValue:q,directiveLeafAttributeIdValue:$,directiveLeafAttributeName:G,directiveLeafAttributeValue:V,directiveLeafAttributes:W,directiveLeafName:z,directiveText:Q,directiveTextAttributeClassValue:q,directiveTextAttributeIdValue:$,directiveTextAttributeName:G,directiveTextAttributeValue:V,directiveTextAttributes:W,directiveTextName:z}},M={unsafe:[{character:"\r",inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{character:"\n",inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{before:"[^:]",character:":",after:"[A-Za-z]",inConstruct:["phrasing"]},{atBreak:!0,character:":",after:":"}],handlers:{containerDirective:K,leafDirective:K,textDirective:K}};function H(e,t){this.enter({type:e,name:"",attributes:{},children:[]},t)}function z(e){this.stack[this.stack.length-1].name=this.sliceSerialize(e)}function U(){this.setData("directiveAttributes",[]),this.buffer()}function $(e){this.getData("directiveAttributes").push(["id",C(this.sliceSerialize(e))])}function q(e){this.getData("directiveAttributes").push(["class",C(this.sliceSerialize(e))])}function V(e){const t=this.getData("directiveAttributes");t[t.length-1][1]=C(this.sliceSerialize(e))}function G(e){this.getData("directiveAttributes").push([this.sliceSerialize(e),""])}function W(){const e=this.getData("directiveAttributes"),t={};let r=-1;for(;++r<e.length;){const n=e[r];"class"===n[0]&&t.class?t.class+=" "+n[1]:t[n[0]]=n[1]}this.setData("directiveAttributes"),this.resume();this.stack[this.stack.length-1].attributes=t}function Q(e){this.exit(e)}function K(e,t,r,n){const o=(0,R.j)(n),i=function(e){let t=0;"containerDirective"===e.type?((0,T.S4)(e,"containerDirective",r),t+=3):t="leafDirective"===e.type?2:1;return":".repeat(t);function r(e,r){let n=r.length,o=0;for(;n--;)"containerDirective"===r[n].type&&o++;o>t&&(t=o)}}(e),a=r.enter(e.type);let s=o.move(i+(e.name||"")),c=e;if("containerDirective"===e.type){const t=(e.children||[])[0];c=Z(t)?t:void 0}if(c&&c.children&&c.children.length>0){const t=r.enter("label"),n=r.enter(e.type+"Label");s+=o.move("["),s+=o.move((0,I.p)(c,r,{...o.current(),before:s,after:"]"})),s+=o.move("]"),n(),t()}if(s+=o.move(function(e,t){const r=(0,_.l)(t),n="textDirective"===e.type?[r]:[r,"\n","\r"],o=e.attributes||{},i=[];let a,s,c,u;for(u in o)if(B.call(o,u)&&void 0!==o[u]&&null!==o[u]){const e=String(o[u]);if("id"===u)c=L.test(e)?"#"+e:l("id",e);else if("class"===u){const t=e.split(/[\t\n\r ]+/g),r=[],n=[];let o=-1;for(;++o<t.length;)(L.test(t[o])?n:r).push(t[o]);a=r.length>0?l("class",r.join(" ")):"",s=n.length>0?"."+n.join("."):""}else i.push(l(u,e))}a&&i.unshift(a);s&&i.unshift(s);c&&i.unshift(c);return i.length>0?"{"+i.join(" ")+"}":"";function l(e,t){return e+(t?"="+r+function(e,t){return P(e,Object.assign({format:O},t))}(t,{subset:n})+r:"")}}(e,r)),"containerDirective"===e.type){let t=e;Z((e.children||[])[0])&&(t=Object.assign({},e,{children:e.children.slice(1)})),t&&t.children&&t.children.length>0&&(s+=o.move("\n"),s+=o.move((0,j.K)(t,r,o.current()))),s+=o.move("\n"+i)}return a(),s}function Z(e){return Boolean(e&&"paragraph"===e.type&&e.data&&e.data.directiveLabel)}function Y(){const e=this.data();function t(t,r){(e[t]?e[t]:e[t]=[]).push(r)}t("micromarkExtensions",{text:{58:g},flow:{58:[u,p]}}),t("fromMarkdownExtensions",N),t("toMarkdownExtensions",M)}},9715:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>E});var n=r(488),o=r(8326);const i=Object.assign(a(Error),{eval:a(EvalError),range:a(RangeError),reference:a(ReferenceError),syntax:a(SyntaxError),type:a(TypeError),uri:a(URIError)});function a(e){return t.displayName=e.displayName||e.name,t;function t(t,...r){const n=t?o(t,...r):t;return new e(n)}}const s={}.hasOwnProperty,c={yaml:"-",toml:"+"};function u(e="yaml"){const t=[];let r=-1;for(Array.isArray(e)||(e=[e]);++r<e.length;)t[r]=l(e[r]);return t}function l(e){let t=e;if("string"==typeof t){if(!s.call(c,t))throw i("Missing matter definition for `%s`",t);t={type:t,marker:c[t]}}else if("object"!=typeof t)throw i("Expected matter to be an object, not `%j`",t);if(!s.call(t,"type"))throw i("Missing `type` in matter `%j`",t);if(!s.call(t,"fence")&&!s.call(t,"marker"))throw i("Missing `marker` or `fence` in matter `%j`",t);return t}function f(e){const t=e.type,r=e.anywhere,o=t+"Value",i=t+"Fence",a=i+"Sequence",s={tokenize:function(e,t,r){let o=0;return function(t){if(t===c.charCodeAt(o))return e.enter(i),e.enter(a),s(t);return r(t)};function s(t){return o===c.length?(e.exit(a),(0,n.markdownSpace)(t)?(e.enter("whitespace"),u(t)):l(t)):t===c.charCodeAt(o++)?(e.consume(t),s):r(t)}function u(t){return(0,n.markdownSpace)(t)?(e.consume(t),u):(e.exit("whitespace"),l(t))}function l(o){return null===o||(0,n.markdownLineEnding)(o)?(e.exit(i),t(o)):r(o)}},partial:!0};let c;return{tokenize:function(i,a,u){const l=this;return function(n){const o=l.now();if(1!==o.column||!r&&1!==o.line)return u(n);return i.enter(t),c=h(e,"open"),i.attempt(s,f,u)(n)};function f(t){return c=h(e,"close"),m(t)}function p(e){return null===e||(0,n.markdownLineEnding)(e)?m(e):(i.enter(o),d(e))}function d(e){return null===e||(0,n.markdownLineEnding)(e)?(i.exit(o),m(e)):(i.consume(e),d)}function m(e){return null===e?u(e):(i.enter("lineEnding"),i.consume(e),i.exit("lineEnding"),i.attempt(s,g,p))}function g(e){return i.exit(t),a(e)}},concrete:!0}}function h(e,t){return e.marker?p(e.marker,t).repeat(3):p(e.fence,t)}function p(e,t){return"string"==typeof e?e:e[t]}function d(e){return function(t){this.enter({type:e.type,value:""},t),this.buffer()}}function m(e){const t=this.resume();this.exit(e).value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function g(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function y(e){const t=v(e,"open"),r=v(e,"close");return function(e){return t+(e.value?"\n"+e.value:"")+"\n"+r}}function v(e,t){return e.marker?b(e.marker,t).repeat(3):b(e.fence,t)}function b(e,t){return"string"==typeof e?e:e[t]}function E(e="yaml"){const t=this.data();function r(e,r){(t[e]?t[e]:t[e]=[]).push(r)}r("micromarkExtensions",function(e){const t=u(e),r={};let n,o,i=-1;for(;++i<t.length;)n=t[i],o=h(n,"open").charCodeAt(0),o in r?r[o].push(f(n)):r[o]=[f(n)];return{flow:r}}(e)),r("fromMarkdownExtensions",function(e){const t=u(e),r={},n={};let o=-1;for(;++o<t.length;){const e=t[o];r[e.type]=d(e),n[e.type]=m,n[e.type+"Value"]=g}return{enter:r,exit:n}}(e)),r("toMarkdownExtensions",function(e){const t=[],r={},n=u(e);let o=-1;for(;++o<n.length;){const e=n[o];r[e.type]=y(e),t.push({atBreak:!0,character:v(e,"open").charAt(0)})}return{unsafe:t,handlers:r}}(e))}},4382:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>Fe});var n=r(4666),o=r(488);const i={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(t){return 87===t||119===t?(e.consume(t),i):r(t)}function i(t){return 87===t||119===t?(e.consume(t),a):r(t)}function a(t){return 46===t?(e.consume(t),s):r(t)}function s(e){return null===e||(0,o.markdownLineEnding)(e)?r(e):t(e)}},partial:!0},a={tokenize:function(e,t,r){let n,i;return a;function a(t){return 38===t?e.check(u,l,s)(t):46===t||95===t?e.check(c,l,s)(t):null===t||(0,o.asciiControl)(t)||(0,o.unicodeWhitespace)(t)||45!==t&&(0,o.unicodePunctuation)(t)?l(t):(e.consume(t),a)}function s(t){return 46===t?(i=n,n=void 0,e.consume(t),a):(95===t&&(n=!0),e.consume(t),a)}function l(e){return i||n?r(e):t(e)}},partial:!0},s={tokenize:function(e,t){let r=0;return n;function n(a){return 38===a?e.check(u,t,o)(a):(40===a&&r++,41===a?e.check(c,i,o)(a):y(a)?t(a):g(a)?e.check(c,t,o)(a):(e.consume(a),n))}function o(t){return e.consume(t),n}function i(e){return r--,r<0?t(e):o(e)}},partial:!0},c={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(o){return g(o)?(e.consume(o),n):y(o)?t(o):r(o)}},partial:!0},u={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(t){return(0,o.asciiAlpha)(t)?(e.consume(t),n):59===t?(e.consume(t),i):r(t)}function i(e){return y(e)?t(e):r(e)}},partial:!0},l={tokenize:function(e,t,r){const n=this;return function(t){if(87!==t&&119!==t||!b(n.previous)||x(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(i,e.attempt(a,e.attempt(s,o),r),r)(t)};function o(r){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(r)}},previous:b},f={tokenize:function(e,t,r){const n=this;return function(t){if(72!==t&&104!==t||!E(n.previous)||x(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),e.consume(t),i};function i(t){return 84===t||116===t?(e.consume(t),c):r(t)}function c(t){return 84===t||116===t?(e.consume(t),u):r(t)}function u(t){return 80===t||112===t?(e.consume(t),l):r(t)}function l(t){return 83===t||115===t?(e.consume(t),f):f(t)}function f(t){return 58===t?(e.consume(t),h):r(t)}function h(t){return 47===t?(e.consume(t),p):r(t)}function p(t){return 47===t?(e.consume(t),d):r(t)}function d(t){return null===t||(0,o.asciiControl)(t)||(0,o.unicodeWhitespace)(t)||(0,o.unicodePunctuation)(t)?r(t):e.attempt(a,e.attempt(s,m),r)(t)}function m(r){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(r)}},previous:E},h={tokenize:function(e,t,r){const n=this;let i,a;return function(t){if(!v(t)||!w(n.previous)||x(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(t)};function s(t){return v(t)?(e.consume(t),s):64===t?(e.consume(t),u):r(t)}function u(t){return 46===t?e.check(c,p,l)(t):45===t||95===t?e.check(c,r,f)(t):(0,o.asciiAlphanumeric)(t)?(!a&&(0,o.asciiDigit)(t)&&(a=!0),e.consume(t),u):p(t)}function l(t){return e.consume(t),i=!0,a=void 0,u}function f(t){return e.consume(t),h}function h(t){return 46===t?e.check(c,r,l)(t):u(t)}function p(n){return i&&!a?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(n)):r(n)}},previous:w},p={},d={text:p};let m=48;for(;m<123;)p[m]=h,m++,58===m?m=65:91===m&&(m=97);function g(e){return 33===e||34===e||39===e||41===e||42===e||44===e||46===e||58===e||59===e||60===e||63===e||95===e||126===e}function y(e){return null===e||60===e||(0,o.markdownLineEndingOrSpace)(e)}function v(e){return 43===e||45===e||46===e||95===e||(0,o.asciiAlphanumeric)(e)}function b(e){return null===e||40===e||42===e||95===e||126===e||(0,o.markdownLineEndingOrSpace)(e)}function E(e){return null===e||!(0,o.asciiAlpha)(e)}function w(e){return 47!==e&&E(e)}function x(e){let t=e.length,r=!1;for(;t--;){const n=e[t][1];if(("labelLink"===n.type||"labelImage"===n.type)&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}p[43]=h,p[45]=h,p[46]=h,p[95]=h,p[72]=[h,f],p[104]=[h,f],p[87]=[h,l],p[119]=[h,l];var S=r(2929),A=r(4014),k=r(2493);const D={tokenize:function(e,t,r){const n=this;return(0,A.factorySpace)(e,(function(e){const o=n.events[n.events.length-1];return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?t(e):r(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function C(e,t,r){const n=this;let o=n.events.length;const i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a;for(;o--;){const e=n.events[o][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!a||!a._balanced)return r(o);const s=(0,k.normalizeIdentifier)(n.sliceSerialize({start:a.end,end:n.now()}));if(94!==s.charCodeAt(0)||!i.includes(s.slice(1)))return r(o);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)}}function F(e,t){let r,n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){r=e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},c=[e[n+1],e[n+2],["enter",o,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",o,t]];return e.splice(n,e.length-n+1,...c),e}function P(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a,s=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),c};function c(t){return 94!==t?r(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(c){let f;return null===c||91===c||s++>999?r(c):93===c?a?(e.exit("chunkString"),f=e.exit("gfmFootnoteCallString"),i.includes((0,k.normalizeIdentifier)(n.sliceSerialize(f)))?function(r){return e.enter("gfmFootnoteCallLabelMarker"),e.consume(r),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t}(c):r(c)):r(c):(e.consume(c),(0,o.markdownLineEndingOrSpace)(c)||(a=!0),92===c?l:u)}function l(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}}function O(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a,s,c=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),u};function u(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),l):r(t)}function l(t){let i;return null===t||91===t||c>999?r(t):93===t?s?(i=e.exit("gfmFootnoteDefinitionLabelString"),a=(0,k.normalizeIdentifier)(n.sliceSerialize(i)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p):r(t):(0,o.markdownLineEnding)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),c++,l):(e.enter("chunkString").contentType="string",f(t))}function f(t){return null===t||(0,o.markdownLineEnding)(t)||91===t||93===t||c>999?(e.exit("chunkString"),l(t)):((0,o.markdownLineEndingOrSpace)(t)||(s=!0),c++,e.consume(t),92===t?h:f)}function h(t){return 91===t||92===t||93===t?(e.consume(t),c++,f):f(t)}function p(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),(0,A.factorySpace)(e,d,"gfmFootnoteDefinitionWhitespace")):r(t)}function d(e){return i.includes(a)||i.push(a),t(e)}}function T(e,t,r){return e.check(S.w,t,e.attempt(D,t,r))}function j(e){e.exit("gfmFootnoteDefinition")}var I=r(8300),_=r(3886),R=r(3879);function B(e={}){let t=e.singleTilde;const r={tokenize:function(e,r,n){const o=this.previous,i=this.events;let a=0;return function(t){if(126===o&&"characterEscape"!==i[i.length-1][1].type)return n(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(i){const c=(0,_.r)(o);if(126===i)return a>1?n(i):(e.consume(i),a++,s);if(a<2&&!t)return n(i);const u=e.exit("strikethroughSequenceTemporary"),l=(0,_.r)(i);return u._open=!l||2===l&&Boolean(c),u._close=!c||2===c&&Boolean(l),r(i)}},resolveAll:function(e,t){let r=-1;for(;++r<e.length;)if("enter"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._close){let n=r;for(;n--;)if("exit"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._open&&e[r][1].end.offset-e[r][1].start.offset==e[n][1].end.offset-e[n][1].start.offset){e[r][1].type="strikethroughSequence",e[n][1].type="strikethroughSequence";const o={type:"strikethrough",start:Object.assign({},e[n][1].start),end:Object.assign({},e[r][1].end)},i={type:"strikethroughText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[r][1].start)},a=[["enter",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["enter",i,t]];(0,I.d)(a,a.length,0,(0,R.C)(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),(0,I.d)(a,a.length,0,[["exit",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["exit",o,t]]),(0,I.d)(e,n-1,r-n+3,a),r=n+a.length-2;break}}r=-1;for(;++r<e.length;)"strikethroughSequenceTemporary"===e[r][1].type&&(e[r][1].type="data");return e}};return null==t&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}}}const L={flow:{null:{tokenize:function(e,t,r){const n=this,i=[];let a,s,c=0;return function(t){if(e.enter("table")._align=i,e.enter("tableHead"),e.enter("tableRow"),124===t)return u(t);return c++,e.enter("temporaryTableCellContent"),h(t)};function u(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),a=!0,l}function l(t){return null===t||(0,o.markdownLineEnding)(t)?function(t){if(null===t)return r(t);e.exit("tableRow"),e.exit("tableHead");const o=n.interrupt;return n.interrupt=!0,e.attempt({tokenize:O,partial:!0},(function(t){return n.interrupt=o,e.enter("tableDelimiterRow"),d(t)}),(function(e){return n.interrupt=o,r(e)}))(t)}(t):(0,o.markdownSpace)(t)?(e.enter("whitespace"),e.consume(t),f):(a&&(a=void 0,c++),124===t?u(t):(e.enter("temporaryTableCellContent"),h(t)))}function f(t){return(0,o.markdownSpace)(t)?(e.consume(t),f):(e.exit("whitespace"),l(t))}function h(t){return null===t||124===t||(0,o.markdownLineEndingOrSpace)(t)?(e.exit("temporaryTableCellContent"),l(t)):(e.consume(t),92===t?p:h)}function p(t){return 92===t||124===t?(e.consume(t),h):h(t)}function d(t){return null===t||(0,o.markdownLineEnding)(t)?b(t):(0,o.markdownSpace)(t)?(e.enter("whitespace"),e.consume(t),m):45===t?(e.enter("tableDelimiterFiller"),e.consume(t),s=!0,i.push("none"),g):58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),i.push("left"),y):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),d):r(t)}function m(t){return(0,o.markdownSpace)(t)?(e.consume(t),m):(e.exit("whitespace"),d(t))}function g(t){return 45===t?(e.consume(t),g):(e.exit("tableDelimiterFiller"),58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),i[i.length-1]="left"===i[i.length-1]?"center":"right",v):d(t))}function y(t){return 45===t?(e.enter("tableDelimiterFiller"),e.consume(t),s=!0,g):r(t)}function v(t){return null===t||(0,o.markdownLineEnding)(t)?b(t):(0,o.markdownSpace)(t)?(e.enter("whitespace"),e.consume(t),m):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),d):r(t)}function b(t){return e.exit("tableDelimiterRow"),s&&c===i.length?null===t?E(t):e.check(N,E,e.attempt({tokenize:O,partial:!0},(0,A.factorySpace)(e,w,"linePrefix",4),E))(t):r(t)}function E(r){return e.exit("table"),t(r)}function w(t){return e.enter("tableBody"),x(t)}function x(t){return e.enter("tableRow"),124===t?S(t):(e.enter("temporaryTableCellContent"),C(t))}function S(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),k}function k(t){return null===t||(0,o.markdownLineEnding)(t)?function(t){if(e.exit("tableRow"),null===t)return P(t);return e.check(N,P,e.attempt({tokenize:O,partial:!0},(0,A.factorySpace)(e,x,"linePrefix",4),P))(t)}(t):(0,o.markdownSpace)(t)?(e.enter("whitespace"),e.consume(t),D):124===t?S(t):(e.enter("temporaryTableCellContent"),C(t))}function D(t){return(0,o.markdownSpace)(t)?(e.consume(t),D):(e.exit("whitespace"),k(t))}function C(t){return null===t||124===t||(0,o.markdownLineEndingOrSpace)(t)?(e.exit("temporaryTableCellContent"),k(t)):(e.consume(t),92===t?F:C)}function F(t){return 92===t||124===t?(e.consume(t),C):C(t)}function P(t){return e.exit("tableBody"),E(t)}function O(e,t,r){return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,A.factorySpace)(e,i,"linePrefix")};function i(i){if(n.parser.lazy[n.now().line]||null===i||(0,o.markdownLineEnding)(i))return r(i);const a=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?r(i):(n._gfmTableDynamicInterruptHack=!0,e.check(n.parser.constructs.flow,(function(e){return n._gfmTableDynamicInterruptHack=!1,r(e)}),(function(e){return n._gfmTableDynamicInterruptHack=!1,t(e)}))(i))}}},resolve:function(e,t){let r,n,o,i,a,s,c,u=-1;for(;++u<e.length;){const l=e[u][1];if(o&&("temporaryTableCellContent"===l.type&&(i=i||u,a=u),("tableCellDivider"===l.type||"tableRow"===l.type)&&a)){const r={type:"tableContent",start:e[i][1].start,end:e[a][1].end},n={type:"chunkText",start:r.start,end:r.end,contentType:"text"};e.splice(i,a-i+1,["enter",r,t],["enter",n,t],["exit",n,t],["exit",r,t]),u-=a-i-3,i=void 0,a=void 0}if("exit"===e[u][0]&&void 0!==s&&s+(c?0:1)<u&&("tableCellDivider"===l.type||"tableRow"===l.type&&(s+3<u||"whitespace"!==e[s][1].type))){const o={type:n?"tableDelimiter":r?"tableHeader":"tableData",start:e[s][1].start,end:e[u][1].end};e.splice(u+("tableCellDivider"===l.type?1:0),0,["exit",o,t]),e.splice(s,0,["enter",o,t]),u+=2,s=u+1,c=!0}"tableRow"===l.type&&(o="enter"===e[u][0],o&&(s=u+1,c=!1)),"tableDelimiterRow"===l.type&&(n="enter"===e[u][0],n&&(s=u+1,c=!1)),"tableHead"===l.type&&(r="enter"===e[u][0])}return e}}}},N={tokenize:function(e,t,r){let n=0;return function(t){return e.enter("check"),e.consume(t),i};function i(a){return-1===a||32===a?(e.consume(a),n++,4===n?t:i):null===a||(0,o.markdownLineEndingOrSpace)(a)?t(a):r(a)}},partial:!0};const M={tokenize:function(e,t,r){const n=this;return function(t){if(null!==n.previous||!n._gfmTasklistFirstContentOfListItem)return r(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i};function i(t){return(0,o.markdownLineEndingOrSpace)(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),a):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),a):r(t)}function a(n){return 93===n?(e.enter("taskListCheckMarker"),e.consume(n),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),e.check({tokenize:z},t,r)):r(n)}}},H={text:{91:M}};function z(e,t,r){const n=this;return(0,A.factorySpace)(e,(function(e){const i=n.events[n.events.length-1];return(i&&"whitespace"===i[1].type||(0,o.markdownLineEnding)(e))&&null!==e?t(e):r(e)}),"whitespace")}function U(e,t){const r=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let n=0,o=r.indexOf(t);for(;-1!==o;)n++,o=r.indexOf(t,o+t.length);return n}var $=r(7918),q=r(213);const V={}.hasOwnProperty,G=function(e,t,r,n){let o,i;"string"==typeof t||t instanceof RegExp?(i=[[t,r]],o=n):(i=t,o=r),o||(o={});const a=(0,q.convert)(o.ignore||[]),s=function(e){const t=[];if("object"!=typeof e)throw new TypeError("Expected array or object as schema");if(Array.isArray(e)){let r=-1;for(;++r<e.length;)t.push([W(e[r][0]),Q(e[r][1])])}else{let r;for(r in e)V.call(e,r)&&t.push([W(r),Q(e[r])])}return t}(i);let c=-1;for(;++c<s.length;)(0,$.S4)(e,"text",u);return e;function u(e,t){let r,n=-1;for(;++n<t.length;){const e=t[n];if(a(e,r?r.children.indexOf(e):void 0,r))return;r=e}if(r)return function(e,t){const r=t[t.length-1],n=s[c][0],o=s[c][1];let i=0;const a=r.children.indexOf(e);let u,l=[];n.lastIndex=0;let f=n.exec(e.value);for(;f;){u=f.index;const r={index:f.index,input:f.input,stack:[...t,e]};let a=o(...f,r);if("string"==typeof a&&(a=a.length>0?{type:"text",value:a}:void 0),!1===a?u=void 0:(i!==u&&l.push({type:"text",value:e.value.slice(i,u)}),Array.isArray(a)?l.push(...a):a&&l.push(a),i=u+f[0].length),!n.global)break;f=n.exec(e.value)}void 0===u?l=[e]:(i<e.value.length&&l.push({type:"text",value:e.value.slice(i)}),r.children.splice(a,1,...l));return a+l.length}(e,t)}};function W(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 Q(e){return"function"==typeof e?e:()=>e}const K="phrasing",Z=["autolink","link","image","label"],Y={transforms:[function(e){G(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ee],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,te]],{ignore:["link","linkReference"]})}],enter:{literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:J,literalAutolinkHttp:J,literalAutolinkWww:J},exit:{literalAutolink:function(e){this.exit(e)},literalAutolinkEmail:function(e){this.config.exit.autolinkEmail.call(this,e)},literalAutolinkHttp:function(e){this.config.exit.autolinkProtocol.call(this,e)},literalAutolinkWww:function(e){this.config.exit.data.call(this,e);this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}}},X={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:K,notInConstruct:Z},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:K,notInConstruct:Z},{character:":",before:"[ps]",after:"\\/",inConstruct:K,notInConstruct:Z}]};function J(e){this.config.enter.autolinkProtocol.call(this,e)}function ee(e,t,r,n,o){let i="";if(!re(o))return!1;if(/^w/i.test(t)&&(r=t+r,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}(r))return!1;const a=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);let r,n,o,i;if(t)for(e=e.slice(0,t.index),i=t[0],r=i.indexOf(")"),n=U(e,"("),o=U(e,")");-1!==r&&n>o;)e+=i.slice(0,r+1),i=i.slice(r+1),r=i.indexOf(")"),o++;return[e,i]}(r+n);if(!a[0])return!1;const s={type:"link",title:null,url:i+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function te(e,t,r,n){return!(!re(n,!0)||/[_-\d]$/.test(r))&&{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function re(e,t){const r=e.input.charCodeAt(e.index-1);return(0===e.index||(0,o.unicodeWhitespace)(r)||(0,o.unicodePunctuation)(r))&&(!t||47!==r)}var ne=r(2116);function oe(e){return e.label||!e.identifier?e.label||"":(0,ne.v)(e.identifier)}var ie=r(5471),ae=r(4671),se=r(3316),ce=r(2343);function ue(){return e.peek=function(){return"["},{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:function(e,t,r,n){const o=(0,ce.j)(n);let i=o.move("[^");const a=r.enter("footnoteDefinition"),s=r.enter("label");return i+=o.move((0,se.T)(r,oe(e),{...o.current(),before:i,after:"]"})),s(),i+=o.move("]:"+(e.children&&e.children.length>0?" ":"")),o.shift(4),i+=o.move((0,ae.Q)((0,ie.K)(e,r,o.current()),(function(e,t,r){if(t)return(r?"":" ")+e;return e}))),a(),i},footnoteReference:e}};function e(e,t,r,n){const o=(0,ce.j)(n);let i=o.move("[^");const a=r.enter("footnoteReference"),s=r.enter("reference");return i+=o.move((0,se.T)(r,oe(e),{...o.current(),before:i,after:"]"})),s(),a(),i+=o.move("]"),i}}var le=r(7567);const fe={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},he={unsafe:[{character:"~",inConstruct:"phrasing"}],handlers:{delete:pe}};function pe(e,t,r,n){const o=(0,ce.j)(n),i=r.enter("emphasis");let a=o.move("~~");return a+=(0,le.p)(e,r,{...o.current(),before:a,after:"~"}),a+=o.move("~~"),i(),a}pe.peek=function(){return"~"};var de=r(7866);function me(e,t,r){let n=e.value||"",o="`",i=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(n);)o+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++i<r.unsafe.length;){const e=r.unsafe[i],t=(0,de.T)(e);let o;if(e.atBreak)for(;o=t.exec(n);){let e=o.index;10===n.charCodeAt(e)&&13===n.charCodeAt(e-1)&&e--,n=n.slice(0,e)+" "+n.slice(o.index+1)}}return o+n+o}function ge(e){return null==e?"":String(e)}function ye(e){return e.length}function ve(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}me.peek=function(){return"`"};const be={enter:{table:function(e){const t=e._align;this.enter({type:"table",align:t.map((e=>"none"===e?null:e)),children:[]},e),this.setData("inTable",!0)},tableData:we,tableHeader:we,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},exit:{codeText:function(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,xe));this.stack[this.stack.length-1].value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:Ee,tableHeader:Ee,tableRow:Ee}};function Ee(e){this.exit(e)}function we(e){this.enter({type:"tableCell",children:[]},e)}function xe(e,t){return"|"===t?t:e}function Se(e){const t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,o=t.stringLength,i=r?" ":"|";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:{table:function(e,t,r,n){return s(function(e,t,r){const n=e.children;let o=-1;const i=[],a=t.enter("table");for(;++o<n.length;)i[o]=c(n[o],t,r);return a(),i}(e,r,n),e.align)},tableRow:function(e,t,r,n){const o=s([c(e,r,n)]);return o.slice(0,o.indexOf("\n"))},tableCell:a,inlineCode:function(e,t,r){let n=me(e,0,r);r.stack.includes("tableCell")&&(n=n.replace(/\|/g,"\\$&"));return n}}};function a(e,t,r,n){const o=r.enter("tableCell"),a=r.enter("phrasing"),s=(0,le.p)(e,r,{...n,before:i,after:i});return a(),o(),s}function s(e,t){return function(e,t={}){const r=(t.align||[]).concat(),n=t.stringLength||ye,o=[],i=[],a=[],s=[];let c=0,u=-1;for(;++u<e.length;){const r=[],o=[];let l=-1;for(e[u].length>c&&(c=e[u].length);++l<e[u].length;){const i=ge(e[u][l]);if(!1!==t.alignDelimiters){const e=n(i);o[l]=e,(void 0===s[l]||e>s[l])&&(s[l]=e)}r.push(i)}i[u]=r,a[u]=o}let l=-1;if("object"==typeof r&&"length"in r)for(;++l<c;)o[l]=ve(r[l]);else{const e=ve(r);for(;++l<c;)o[l]=e}l=-1;const f=[],h=[];for(;++l<c;){const e=o[l];let r="",n="";99===e?(r=":",n=":"):108===e?r=":":114===e&&(n=":");let i=!1===t.alignDelimiters?1:Math.max(1,s[l]-r.length-n.length);const a=r+"-".repeat(i)+n;!1!==t.alignDelimiters&&(i=r.length+i+n.length,i>s[l]&&(s[l]=i),h[l]=i),f[l]=a}i.splice(1,0,f),a.splice(1,0,h),u=-1;const p=[];for(;++u<i.length;){const e=i[u],r=a[u];l=-1;const n=[];for(;++l<c;){const i=e[l]||"";let a="",u="";if(!1!==t.alignDelimiters){const e=s[l]-(r[l]||0),t=o[l];114===t?a=" ".repeat(e):99===t?e%2?(a=" ".repeat(e/2+.5),u=" ".repeat(e/2-.5)):(a=" ".repeat(e/2),u=a):u=" ".repeat(e)}!1===t.delimiterStart||l||n.push("|"),!1===t.padding||!1===t.alignDelimiters&&""===i||!1===t.delimiterStart&&!l||n.push(" "),!1!==t.alignDelimiters&&n.push(a),n.push(i),!1!==t.alignDelimiters&&n.push(u),!1!==t.padding&&n.push(" "),!1===t.delimiterEnd&&l===c-1||n.push("|")}p.push(!1===t.delimiterEnd?n.join("").replace(/ +$/,""):n.join(""))}return p.join("\n")}(e,{align:t,alignDelimiters:n,padding:r,stringLength:o})}function c(e,t,r){const n=e.children;let o=-1;const i=[],s=t.enter("tableRow");for(;++o<n.length;)i[o]=a(n[o],0,t,r);return s(),i}}function Ae(e,t,r,n){const o=function(e){const t=e.options.listItemIndent||"tab";if(1===t||"1"===t)return"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}(r);let i=r.bulletCurrent||function(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}(r);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===r.options.incrementListMarker?0:t.children.indexOf(e))+i);let a=i.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const s=(0,ce.j)(n);s.move(i+" ".repeat(a-i.length)),s.shift(a);const c=r.enter("listItem"),u=(0,ae.Q)((0,ie.K)(e,r,s.current()),(function(e,t,r){if(t)return(r?"":" ".repeat(a))+e;return(r?i:i+" ".repeat(a-i.length))+e}));return c(),u}const ke={exit:{taskListCheckValueChecked:Ce,taskListCheckValueUnchecked:Ce,paragraph:function(e){const t=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1],n=t.children,o=r.children[0];let i,a=-1;if(t&&"listItem"===t.type&&"boolean"==typeof t.checked&&o&&"text"===o.type){for(;++a<n.length;){const e=n[a];if("paragraph"===e.type){i=e;break}}i===r&&(o.value=o.value.slice(1),0===o.value.length?r.children.shift():r.position&&o.position&&"number"==typeof o.position.start.offset&&(o.position.start.column++,o.position.start.offset++,r.position.start=Object.assign({},o.position.start)))}this.exit(e)}}},De={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:function(e,t,r,n){const o=e.children[0],i="boolean"==typeof e.checked&&o&&"paragraph"===o.type,a="["+(e.checked?"x":" ")+"] ",s=(0,ce.j)(n);i&&s.move(a);let c=Ae(e,t,r,{...n,...s.current()});i&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+a})));return c}}};function Ce(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}function Fe(e={}){const t=this.data();function r(e,r){(t[e]?t[e]:t[e]=[]).push(r)}r("micromarkExtensions",function(e){return(0,n.W)([d,{document:{91:{tokenize:O,continuation:{tokenize:T},exit:j}},text:{91:{tokenize:P},93:{add:"after",tokenize:C,resolveTo:F}}},B(e),L,H])}(e)),r("fromMarkdownExtensions",[Y,{enter:{gfmFootnoteDefinition:function(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)},gfmFootnoteDefinitionLabelString:function(){this.buffer()},gfmFootnoteCall:function(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)},gfmFootnoteCallString:function(){this.buffer()}},exit:{gfmFootnoteDefinition:function(e){this.exit(e)},gfmFootnoteDefinitionLabelString:function(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=(0,k.normalizeIdentifier)(this.sliceSerialize(e)).toLowerCase()},gfmFootnoteCall:function(e){this.exit(e)},gfmFootnoteCallString:function(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=(0,k.normalizeIdentifier)(this.sliceSerialize(e)).toLowerCase()}}},fe,be,ke]),r("toMarkdownExtensions",function(e){return{extensions:[X,ue(),he,Se(e),De]}}(e))}},7265:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>le});var n={};r.r(n),r.d(n,{attentionMarkers:()=>Z,contentInitial:()=>q,disable:()=>Y,document:()=>$,flow:()=>G,flowInitial:()=>V,insideSpan:()=>K,string:()=>W,text:()=>Q});var o=r(8717),i=r(4666),a=r(4014),s=r(488);const c={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),(0,a.factorySpace)(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),n(t)}));let r;return t;function n(t){const n=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=n),r=n,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):(0,s.markdownLineEnding)(t)?(e.consume(t),e.exit("chunkText"),n):(e.consume(t),o)}}};var u=r(8300);const l={tokenize:function(e){const t=this,r=[];let n,o,i,a=0;return c;function c(n){if(a<r.length){const o=r[a];return t.containerState=o[1],e.attempt(o[0].continuation,l,h)(n)}return h(n)}function l(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,n&&w();const r=t.events.length;let o,i=r;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){o=t.events[i][1].end;break}E(a);let s=r;for(;s<t.events.length;)t.events[s][1].end=Object.assign({},o),s++;return(0,u.d)(t.events,i+1,0,t.events.slice(r)),t.events.length=s,h(e)}return c(e)}function h(o){if(a===r.length){if(!n)return m(o);if(n.currentConstruct&&n.currentConstruct.concrete)return y(o);t.interrupt=Boolean(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(f,p,d)(o)}function p(e){return n&&w(),E(a),m(e)}function d(e){return t.parser.lazy[t.now().line]=a!==r.length,i=t.now().offset,y(e)}function m(r){return t.containerState={},e.attempt(f,g,y)(r)}function g(e){return a++,r.push([t.currentConstruct,t.containerState]),m(e)}function y(r){return null===r?(n&&w(),E(0),void e.consume(r)):(n=n||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:n}),v(r))}function v(r){return null===r?(b(e.exit("chunkFlow"),!0),E(0),void e.consume(r)):(0,s.markdownLineEnding)(r)?(e.consume(r),b(e.exit("chunkFlow")),a=0,t.interrupt=void 0,c):(e.consume(r),v)}function b(e,r){const s=t.sliceStream(e);if(r&&s.push(null),e.previous=o,o&&(o.next=e),o=e,n.defineSkip(e.start),n.write(s),t.parser.lazy[e.start.line]){let e=n.events.length;for(;e--;)if(n.events[e][1].start.offset<i&&(!n.events[e][1].end||n.events[e][1].end.offset>i))return;const r=t.events.length;let o,s,c=r;for(;c--;)if("exit"===t.events[c][0]&&"chunkFlow"===t.events[c][1].type){if(o){s=t.events[c][1].end;break}o=!0}for(E(a),e=r;e<t.events.length;)t.events[e][1].end=Object.assign({},s),e++;(0,u.d)(t.events,c+1,0,t.events.slice(r)),t.events.length=e}}function E(n){let o=r.length;for(;o-- >n;){const n=r[o];t.containerState=n[1],n[0].exit.call(t,e)}r.length=n}function w(){n.write([null]),o=void 0,n=void 0,t.containerState._closeFlow=void 0}}},f={tokenize:function(e,t,r){return(0,a.factorySpace)(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var h=r(2929),p=r(6814);const d={tokenize:function(e){const t=this,r=e.attempt(h.w,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}),e.attempt(this.parser.constructs.flowInitial,n,(0,a.factorySpace)(e,e.attempt(this.parser.constructs.flow,n,e.attempt(p.k,n)),"linePrefix")));return r;function n(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),t.currentConstruct=void 0,r;e.consume(n)}}};const m={resolveAll:b()},g=v("string"),y=v("text");function v(e){return{tokenize:function(t){const r=this,n=this.parser.constructs[e],o=t.attempt(n,i,a);return i;function i(e){return c(e)?o(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return c(e)?(t.exit("data"),o(e)):(t.consume(e),s)}function c(e){if(null===e)return!0;const t=n[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(r,r.previous))return!0}return!1}},resolveAll:b("text"===e?E:void 0)}}function b(e){return function(t,r){let n,o=-1;for(;++o<=t.length;)void 0===n?t[o]&&"data"===t[o][1].type&&(n=o,o++):t[o]&&"data"===t[o][1].type||(o!==n+2&&(t[n][1].end=t[o-1][1].end,t.splice(n+2,o-n-2),o=n+2),n=void 0);return e?e(t,r):t}}function E(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||"lineEnding"===e[r][1].type)&&"data"===e[r-1][1].type){const n=e[r-1][1],o=t.sliceStream(n);let i,a=o.length,s=-1,c=0;for(;a--;){const e=o[a];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)c++,s--;if(s)break;s=-1}else if(-2===e)i=!0,c++;else if(-1!==e){a++;break}}if(c){const o={type:r===e.length||i||c<2?"lineSuffix":"hardBreakTrailing",start:{line:n.end.line,column:n.end.column-c,offset:n.end.offset-c,_index:n.start._index+a,_bufferIndex:a?s:n.start._bufferIndex+s},end:Object.assign({},n.end)};n.end=Object.assign({},o.start),n.start.offset===n.end.offset?Object.assign(n,o):(e.splice(r,0,["enter",o,t],["exit",o,t]),r+=2)}r++}return e}var w=r(3879);function x(e,t,r){let n=Object.assign(r?Object.assign({},r):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const o={},i=[];let a=[],c=[],l=!0;const f={consume:function(e){(0,s.markdownLineEnding)(e)?(n.line++,n.column=1,n.offset+=-3===e?2:1,S()):-1!==e&&(n.column++,n.offset++);n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===a[n._index].length&&(n._bufferIndex=-1,n._index++));h.previous=e,l=!0},enter:function(e,t){const r=t||{};return r.type=e,r.start=g(),h.events.push(["enter",r,h]),c.push(r),r},exit:function(e){const t=c.pop();return t.end=g(),h.events.push(["exit",t,h]),t},attempt:E((function(e,t){x(e,t.from)})),check:E(b),interrupt:E(b,{interrupt:!0})},h={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:m,sliceSerialize:function(e,t){return function(e,t){let r=-1;const n=[];let o;for(;++r<e.length;){const i=e[r];let a;if("string"==typeof i)a=i;else switch(i){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&o)continue;a=" ";break;default:a=String.fromCharCode(i)}o=-2===i,n.push(a)}return n.join("")}(m(e),t)},now:g,defineSkip:function(e){o[e.line]=e.column,S()},write:function(e){if(a=(0,u.V)(a,e),y(),null!==a[a.length-1])return[];return x(t,0),h.events=(0,w.C)(i,h.events,h),h.events}};let p,d=t.tokenize.call(h,f);return t.resolveAll&&i.push(t),h;function m(e){return function(e,t){const r=t.start._index,n=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let a;r===o?a=[e[r].slice(n,i)]:(a=e.slice(r,o),n>-1&&(a[0]=a[0].slice(n)),i>0&&a.push(e[o].slice(0,i)));return a}(a,e)}function g(){return Object.assign({},n)}function y(){let e;for(;n._index<a.length;){const t=a[n._index];if("string"==typeof t)for(e=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===e&&n._bufferIndex<t.length;)v(t.charCodeAt(n._bufferIndex));else v(t)}}function v(e){l=void 0,p=e,d=d(e)}function b(e,t){t.restore()}function E(e,t){return function(r,o,i){let a,s,u,p;return Array.isArray(r)?d(r):"tokenize"in r?d([r]):function(e){return t;function t(t){const r=null!==t&&e[t],n=null!==t&&e.null;return d([...Array.isArray(r)?r:r?[r]:[],...Array.isArray(n)?n:n?[n]:[]])(t)}}(r);function d(e){return a=e,s=0,0===e.length?i:m(e[s])}function m(e){return function(r){p=function(){const e=g(),t=h.previous,r=h.currentConstruct,o=h.events.length,i=Array.from(c);return{restore:a,from:o};function a(){n=e,h.previous=t,h.currentConstruct=r,h.events.length=o,c=i,S()}}(),u=e,e.partial||(h.currentConstruct=e);if(e.name&&h.parser.constructs.disable.null.includes(e.name))return v(r);return e.tokenize.call(t?Object.assign(Object.create(h),t):h,f,y,v)(r)}}function y(t){return l=!0,e(u,p),o}function v(e){return l=!0,p.restore(),++s<a.length?m(a[s]):i}}}function x(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&(0,u.d)(h.events,t,h.events.length-t,e.resolve(h.events.slice(t),h)),e.resolveTo&&(h.events=e.resolveTo(h.events,h))}function S(){n.line in o&&n.column<2&&(n.column=o[n.line],n.offset+=o[n.line]-1)}}var S=r(4618),A=r(7207),k=r(4882),D=r(2535),C=r(5528),F=r(8038),P=r(6263),O=r(5198),T=r(4897),j=r(2810),I=r(1687),_=r(890),R=r(5365),B=r(8415),L=r(7444),N=r(5890),M=r(5856),H=r(6100),z=r(8966),U=r(5180);const $={42:S.p,43:S.p,45:S.p,48:S.p,49:S.p,50:S.p,51:S.p,52:S.p,53:S.p,54:S.p,55:S.p,56:S.p,57:S.p,62:A.m},q={91:k.D},V={[-2]:D.S,[-1]:D.S,32:D.S},G={35:C.Z,42:F.C,45:[P.C,F.C],60:O.P,61:P.C,95:F.C,96:T._,126:T._},W={38:j.u,92:I.L},Q={[-5]:_.g,[-4]:_.g,[-3]:_.g,33:R.C,38:j.u,42:B.v,60:[L.j,N.L],91:M.F,92:[H.R,I.L],93:z.Z,95:B.v,96:U.h},K={null:[B.v,m]},Z={null:[42,95]},Y={null:[]};const X=/[\0\t\n\r]/g;var J=r(2988);var ee=r(8031),te=r(2116),re=r(2493),ne=r(9477),oe=r(1513);const ie={}.hasOwnProperty,ae=function(e,t,r){return"string"!=typeof t&&(r=t,t=void 0),function(e={}){const t=se({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(he),autolinkProtocol:P,autolinkEmail:P,atxHeading:u(ae),blockQuote:u(K),characterEscape:P,characterReference:P,codeFenced:u(Z),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:u(Z,l),codeText:u(Y,l),codeTextData:P,data:P,codeFlowValue:P,definition:u(X),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:u(J),hardBreakEscape:u(ce),hardBreakTrailing:u(ce),htmlFlow:u(le,l),htmlFlowData:P,htmlText:u(le,l),htmlTextData:P,image:u(fe),label:l,link:u(he),listItem:u(de),listItemValue:g,listOrdered:u(pe,m),listUnordered:u(pe),paragraph:u(me),reference:$,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:u(ae),strong:u(ge),thematicBreak:u(ve)},exit:{atxHeading:h(),atxHeadingSequence:k,autolink:h(),autolinkEmail:Q,autolinkProtocol:W,blockQuote:h(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:V,characterReferenceMarkerNumeric:V,characterReferenceValue:G,codeFenced:h(E),codeFencedFence:b,codeFencedFenceInfo:y,codeFencedFenceMeta:v,codeFlowValue:O,codeIndented:h(w),codeText:h(R),codeTextData:O,data:O,definition:h(),definitionDestinationString:A,definitionLabelString:x,definitionTitleString:S,emphasis:h(),hardBreakEscape:h(j),hardBreakTrailing:h(j),htmlFlow:h(I),htmlFlowData:O,htmlText:h(_),htmlTextData:O,image:h(L),label:M,labelText:N,lineEnding:T,link:h(B),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:q,resourceDestinationString:H,resourceTitleString:z,resource:U,setextHeading:h(F),setextHeadingLineSequence:C,setextHeadingText:D,strong:h(),thematicBreak:h()}},e.mdastExtensions||[]),r={};return n;function n(e){let r={type:"root",children:[]};const n=[],o=[],u={stack:[r],tokenStack:n,config:t,enter:f,exit:p,buffer:l,resume:d,setData:a,getData:s};let h=-1;for(;++h<e.length;)if("listOrdered"===e[h][1].type||"listUnordered"===e[h][1].type)if("enter"===e[h][0])o.push(h);else{h=i(e,o.pop(),h)}for(h=-1;++h<e.length;){const r=t[e[h][0]];ie.call(r,e[h][1].type)&&r[e[h][1].type].call(Object.assign({sliceSerialize:e[h][2].sliceSerialize},u),e[h][1])}if(n.length>0){const e=n[n.length-1];(e[1]||ue).call(u,void 0,e[0])}for(r.position={start:c(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:c(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},h=-1;++h<t.transforms.length;)r=t.transforms[h](r)||r;return r}function i(e,t,r){let n,o,i,a,s=t-1,c=-1,u=!1;for(;++s<=r;){const t=e[s];if("listUnordered"===t[1].type||"listOrdered"===t[1].type||"blockQuote"===t[1].type?("enter"===t[0]?c++:c--,a=void 0):"lineEndingBlank"===t[1].type?"enter"===t[0]&&(!n||a||c||i||(i=s),a=void 0):"linePrefix"===t[1].type||"listItemValue"===t[1].type||"listItemMarker"===t[1].type||"listItemPrefix"===t[1].type||"listItemPrefixWhitespace"===t[1].type||(a=void 0),!c&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===c&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(n){let a=s;for(o=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",o=a}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)&&(n._spread=!0),n.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||s,0,["exit",n,t[2]]),s++,r++}"listItemPrefix"===t[1].type&&(n={type:"listItem",_spread:!1,start:Object.assign({},t[1].start)},e.splice(s,0,["enter",n,t[2]]),s++,r++,i=void 0,a=!0)}}return e[t][1]._spread=u,r}function a(e,t){r[e]=t}function s(e){return r[e]}function c(e){return{line:e.line,column:e.column,offset:e.offset}}function u(e,t){return r;function r(r){f.call(this,e(r),r),t&&t.call(this,r)}}function l(){this.stack.push({type:"fragment",children:[]})}function f(e,t,r){return this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,r]),e.position={start:c(t.start)},e}function h(e){return t;function t(t){e&&e.call(this,t),p.call(this,t)}}function p(e,t){const r=this.stack.pop(),n=this.tokenStack.pop();if(!n)throw new Error("Cannot close `"+e.type+"` ("+(0,oe.y)({start:e.start,end:e.end})+"): it’s not open");if(n[0].type!==e.type)if(t)t.call(this,e,n[0]);else{(n[1]||ue).call(this,e,n[0])}return r.position.end=c(e.end),r}function d(){return(0,o.B)(this.stack.pop())}function m(){a("expectingFirstListItemValue",!0)}function g(e){if(s("expectingFirstListItemValue")){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),a("expectingFirstListItemValue")}}function y(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function v(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function b(){s("flowCodeInside")||(this.buffer(),a("flowCodeInside",!0))}function E(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),a("flowCodeInside")}function w(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function x(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=(0,re.normalizeIdentifier)(this.sliceSerialize(e)).toLowerCase()}function S(){const e=this.resume();this.stack[this.stack.length-1].title=e}function A(){const e=this.resume();this.stack[this.stack.length-1].url=e}function k(e){const t=this.stack[this.stack.length-1];if(!t.depth){const r=this.sliceSerialize(e).length;t.depth=r}}function D(){a("setextHeadingSlurpLineEnding",!0)}function C(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2}function F(){a("setextHeadingSlurpLineEnding")}function P(e){const t=this.stack[this.stack.length-1];let r=t.children[t.children.length-1];r&&"text"===r.type||(r=ye(),r.position={start:c(e.start)},t.children.push(r)),this.stack.push(r)}function O(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=c(e.end)}function T(e){const r=this.stack[this.stack.length-1];if(s("atHardBreak")){return r.children[r.children.length-1].position.end=c(e.end),void a("atHardBreak")}!s("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(r.type)&&(P.call(this,e),O.call(this,e))}function j(){a("atHardBreak",!0)}function I(){const e=this.resume();this.stack[this.stack.length-1].value=e}function _(){const e=this.resume();this.stack[this.stack.length-1].value=e}function R(){const e=this.resume();this.stack[this.stack.length-1].value=e}function B(){const e=this.stack[this.stack.length-1];s("inReference")?(e.type+="Reference",e.referenceType=s("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label),a("referenceType")}function L(){const e=this.stack[this.stack.length-1];s("inReference")?(e.type+="Reference",e.referenceType=s("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label),a("referenceType")}function N(e){const t=this.stack[this.stack.length-2],r=this.sliceSerialize(e);t.label=(0,te.v)(r),t.identifier=(0,re.normalizeIdentifier)(r).toLowerCase()}function M(){const e=this.stack[this.stack.length-1],t=this.resume(),r=this.stack[this.stack.length-1];a("inReference",!0),"link"===r.type?r.children=e.children:r.alt=t}function H(){const e=this.resume();this.stack[this.stack.length-1].url=e}function z(){const e=this.resume();this.stack[this.stack.length-1].title=e}function U(){a("inReference")}function $(){a("referenceType","collapsed")}function q(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=(0,re.normalizeIdentifier)(this.sliceSerialize(e)).toLowerCase(),a("referenceType","full")}function V(e){a("characterReferenceType",e.type)}function G(e){const t=this.sliceSerialize(e),r=s("characterReferenceType");let n;r?(n=(0,ee.o)(t,"characterReferenceMarkerNumeric"===r?10:16),a("characterReferenceType")):n=(0,ne.T)(t);const o=this.stack.pop();o.value+=n,o.position.end=c(e.end)}function W(e){O.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function Q(e){O.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function K(){return{type:"blockquote",children:[]}}function Z(){return{type:"code",lang:null,meta:null,value:""}}function Y(){return{type:"inlineCode",value:""}}function X(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function J(){return{type:"emphasis",children:[]}}function ae(){return{type:"heading",depth:void 0,children:[]}}function ce(){return{type:"break"}}function le(){return{type:"html",value:""}}function fe(){return{type:"image",title:null,url:"",alt:null}}function he(){return{type:"link",title:null,url:"",children:[]}}function pe(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function de(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function me(){return{type:"paragraph",children:[]}}function ge(){return{type:"strong",children:[]}}function ye(){return{type:"text",value:""}}function ve(){return{type:"thematicBreak"}}}(r)(function(e){for(;!(0,J._)(e););return e}(function(e={}){const t={defined:[],lazy:{},constructs:(0,i.W)([n].concat(e.extensions||[])),content:r(c),document:r(l),flow:r(d),string:r(g),text:r(y)};return t;function r(e){return function(r){return x(t,e,r)}}}(r).document().write(function(){let e,t=1,r="",n=!0;return function(o,i,a){const s=[];let c,u,l,f,h;for(o=r+o.toString(i),l=0,r="",n&&(65279===o.charCodeAt(0)&&l++,n=void 0);l<o.length;){if(X.lastIndex=l,c=X.exec(o),f=c&&void 0!==c.index?c.index:o.length,h=o.charCodeAt(f),!c){r=o.slice(l);break}if(10===h&&l===f&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),l<f&&(s.push(o.slice(l,f)),t+=f-l),h){case 0:s.push(65533),t++;break;case 9:for(u=4*Math.ceil(t/4),s.push(-2);t++<u;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}l=f+1}return a&&(e&&s.push(-5),r&&s.push(r),s.push(null)),s}}()(e,t,!0))))};function se(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?se(e,n):ce(e,n)}return e}function ce(e,t){let r;for(r in t)if(ie.call(t,r)){const n="canContainEols"===r||"transforms"===r,o=(ie.call(e,r)?e[r]:void 0)||(e[r]=n?[]:{}),i=t[r];i&&(n?e[r]=[...o,...i]:Object.assign(o,i))}}function ue(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+(0,oe.y)({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+(0,oe.y)({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+(0,oe.y)({start:t.start,end:t.end})+") is still open")}const le=function(e){Object.assign(this,{Parser:t=>{const r=this.data("settings");return ae(t,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}},3085:(e,t,r)=>{"use strict";function n(e){if(e)throw e}r.r(t),r.d(t,{unified:()=>E});var o=r(8809),i=r(229);function a(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 s(){const e=[],t={run:function(...t){let r=-1;const n=t.pop();if("function"!=typeof n)throw new TypeError("Expected function as last argument, not "+n);!function o(i,...a){const s=e[++r];let c=-1;if(i)n(i);else{for(;++c<t.length;)null!==a[c]&&void 0!==a[c]||(a[c]=t[c]);t=a,s?function(e,t){let r;return n;function n(...t){const n=e.length>t.length;let a;n&&t.push(o);try{a=e.apply(this,t)}catch(e){const t=e;if(n&&r)throw t;return o(t)}n||(a instanceof Promise?a.then(i,o):a instanceof Error?o(a):i(a))}function o(e,...n){r||(r=!0,t(e,...n))}function i(e){o(null,e)}}(s,o)(...a):n(null,...a)}}(null,...t)},use:function(r){if("function"!=typeof r)throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}};return t}var c=r(1513);class u extends Error{constructor(e,t,r){const n=[null,null];let o={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof t&&(r=t,t=void 0),"string"==typeof r){const e=r.indexOf(":");-1===e?n[1]=r:(n[0]=r.slice(0,e),n[1]=r.slice(e+1))}t&&("type"in t||"position"in t?t.position&&(o=t.position):"start"in t||"end"in t?o=t:("line"in t||"column"in t)&&(o.start=t)),this.name=(0,c.y)(t)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="object"==typeof e?e.stack:"",this.reason=this.message,this.fatal,this.line=o.start.line,this.column=o.start.column,this.source=n[0],this.ruleId=n[1],this.position=o,this.actual,this.expected,this.file,this.url,this.note}}u.prototype.file="",u.prototype.name="",u.prototype.reason="",u.prototype.message="",u.prototype.stack="",u.prototype.fatal=null,u.prototype.column=null,u.prototype.line=null,u.prototype.source=null,u.prototype.ruleId=null,u.prototype.position=null;const l={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');f(e);let r,n=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.charCodeAt(i)){if(r){n=i+1;break}}else o<0&&(r=!0,o=i+1);return o<0?"":e.slice(n,o)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(47===e.charCodeAt(i)){if(r){n=i+1;break}}else a<0&&(r=!0,a=i+1),s>-1&&(e.charCodeAt(i)===t.charCodeAt(s--)?s<0&&(o=i):(s=-1,o=a));n===o?o=a:o<0&&(o=e.length);return e.slice(n,o)},dirname:function(e){if(f(e),0===e.length)return".";let t,r=-1,n=e.length;for(;--n;)if(47===e.charCodeAt(n)){if(t){r=n;break}}else t||(t=!0);return r<0?47===e.charCodeAt(0)?"/":".":1===r&&47===e.charCodeAt(0)?"//":e.slice(0,r)},extname:function(e){f(e);let t,r=e.length,n=-1,o=0,i=-1,a=0;for(;r--;){const s=e.charCodeAt(r);if(47!==s)n<0&&(t=!0,n=r+1),46===s?i<0?i=r:1!==a&&(a=1):i>-1&&(a=-1);else if(t){o=r+1;break}}if(i<0||n<0||0===a||1===a&&i===n-1&&i===o+1)return"";return e.slice(i,n)},join:function(...e){let t,r=-1;for(;++r<e.length;)f(e[r]),e[r]&&(t=void 0===t?e[r]:t+"/"+e[r]);return void 0===t?".":function(e){f(e);const t=47===e.charCodeAt(0);let r=function(e,t){let r,n,o="",i=0,a=-1,s=0,c=-1;for(;++c<=e.length;){if(c<e.length)r=e.charCodeAt(c);else{if(47===r)break;r=47}if(47===r){if(a===c-1||1===s);else if(a!==c-1&&2===s){if(o.length<2||2!==i||46!==o.charCodeAt(o.length-1)||46!==o.charCodeAt(o.length-2))if(o.length>2){if(n=o.lastIndexOf("/"),n!==o.length-1){n<0?(o="",i=0):(o=o.slice(0,n),i=o.length-1-o.lastIndexOf("/")),a=c,s=0;continue}}else if(o.length>0){o="",i=0,a=c,s=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(a+1,c):o=e.slice(a+1,c),i=c-a-1;a=c,s=0}else 46===r&&s>-1?s++:s=-1}return o}(e,!t);0!==r.length||t||(r=".");r.length>0&&47===e.charCodeAt(e.length-1)&&(r+="/");return t?"/"+r:r}(t)},sep:"/"};function f(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const h={cwd:function(){return"/"}};function p(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}function d(e){if("string"==typeof e)e=new URL(e);else if(!p(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 r=-1;for(;++r<t.length;)if(37===t.charCodeAt(r)&&50===t.charCodeAt(r+1)){const e=t.charCodeAt(r+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 m=["history","path","basename","stem","extname","dirname"];class g{constructor(e){let t;t=e?"string"==typeof e||o(e)?{value:e}:p(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=h.cwd(),this.value,this.stored,this.result,this.map;let r,n=-1;for(;++n<m.length;){const e=m[n];e in t&&void 0!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(r in t)m.includes(r)||(this[r]=t[r])}get path(){return this.history[this.history.length-1]}set path(e){p(e)&&(e=d(e)),v(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return"string"==typeof this.path?l.dirname(this.path):void 0}set dirname(e){b(this.basename,"dirname"),this.path=l.join(e||"",this.basename)}get basename(){return"string"==typeof this.path?l.basename(this.path):void 0}set basename(e){v(e,"basename"),y(e,"basename"),this.path=l.join(this.dirname||"",e)}get extname(){return"string"==typeof this.path?l.extname(this.path):void 0}set extname(e){if(y(e,"extname"),b(this.dirname,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=l.join(this.dirname,this.stem+(e||""))}get stem(){return"string"==typeof this.path?l.basename(this.path,this.extname):void 0}set stem(e){v(e,"stem"),y(e,"stem"),this.path=l.join(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e)}message(e,t,r){const n=new u(e,t,r);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}info(e,t,r){const n=this.message(e,t,r);return n.fatal=null,n}fail(e,t,r){const n=this.message(e,t,r);throw n.fatal=!0,n}}function y(e,t){if(e&&e.includes(l.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+l.sep+"`")}function v(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function b(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const E=function e(){const t=s(),r=[];let c,u={},l=-1;return f.data=function(e,t){if("string"==typeof e)return 2===arguments.length?(k("data",c),u[e]=t,f):w.call(u,e)&&u[e]||null;if(e)return k("data",c),u=e,f;return u},f.Parser=void 0,f.Compiler=void 0,f.freeze=function(){if(c)return f;for(;++l<r.length;){const[e,...n]=r[l];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const o=e.call(f,...n);"function"==typeof o&&t.use(o)}return c=!0,l=Number.POSITIVE_INFINITY,f},f.attachers=r,f.use=function(e,...t){let n;if(k("use",c),null==e);else if("function"==typeof e)h(e,...t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?l(e):s(e)}n&&(u.settings=Object.assign(u.settings||{},n));return f;function o(e){if("function"==typeof e)h(e);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...r]=e;h(t,...r)}else s(e)}}function s(e){l(e.plugins),e.settings&&(n=Object.assign(n||{},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 h(e,t){let n,o=-1;for(;++o<r.length;)if(r[o][0]===e){n=r[o];break}n?(a(n[1])&&a(t)&&(t=i(!0,n[1],t)),n[1]=t):r.push([...arguments])}},f.parse=function(e){f.freeze();const t=F(e),r=f.Parser;if(S("parse",r),x(r,"parse"))return new r(String(t),t).parse();return r(String(t),t)},f.stringify=function(e,t){f.freeze();const r=F(t),n=f.Compiler;if(A("stringify",n),D(e),x(n,"compile"))return new n(e,r).compile();return n(e,r)},f.run=function(e,r,n){D(e),f.freeze(),n||"function"!=typeof r||(n=r,r=void 0);if(!n)return new Promise(o);function o(o,i){function a(t,r,a){r=r||e,t?i(t):o?o(r):n(null,r,a)}t.run(e,F(r),a)}o(null,n)},f.runSync=function(e,t){let r,o;return f.run(e,t,i),C("runSync","run",o),r;function i(e,t){n(e),r=t,o=!0}},f.process=function(e,t){if(f.freeze(),S("process",f.Parser),A("process",f.Compiler),!t)return new Promise(r);function r(r,n){const i=F(e);function a(e,o){e||!o?n(e):r?r(o):t(null,o)}f.run(f.parse(i),i,((e,t,r)=>{if(!e&&t&&r){const n=f.stringify(t,r);null==n||(!function(e){return"string"==typeof e||o(e)}(n)?r.result=n:r.value=n),a(e,r)}else a(e)}))}r(null,t)},f.processSync=function(e){let t;f.freeze(),S("processSync",f.Parser),A("processSync",f.Compiler);const r=F(e);return f.process(r,o),C("processSync","process",t),r;function o(e){t=!0,n(e)}},f;function f(){const t=e();let n=-1;for(;++n<r.length;)t.use(...r[n]);return t.data(i(!0,{},u)),t}}().freeze(),w={}.hasOwnProperty;function x(e,t){return"function"==typeof e&&e.prototype&&(function(e){let t;for(t in e)if(w.call(e,t))return!0;return!1}(e.prototype)||t in e.prototype)}function S(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Parser`")}function A(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Compiler`")}function k(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 D(e){if(!a(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function C(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function F(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new g(e)}},213:(e,t,r)=>{"use strict";r.r(t),r.d(t,{convert:()=>o,is:()=>n});const n=function e(t,r,n,i,a){const s=o(r);if(null!=n&&("number"!=typeof n||n<0||n===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(!(null==i||e(i)&&i.children))throw new Error("Expected parent node");if(null==i!=(null==n))throw new Error("Expected both parent and index");return!(!t||!t.type||"string"!=typeof t.type)&&Boolean(s.call(a,t,n,i))},o=function(e){if(null==e)return a;if("string"==typeof e)return function(e){return i(t);function t(t){return t&&t.type===e}}(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=o(e[r]);return i(n);function n(...e){let r=-1;for(;++r<t.length;)if(t[r].call(this,...e))return!0;return!1}}(e):function(e){return i(t);function t(t){let r;for(r in e)if(t[r]!==e[r])return!1;return!0}}(e);if("function"==typeof e)return i(e);throw new Error("Expected function, string, or object as test")};function i(e){return function(...t){return Boolean(e.call(this,...t))}}function a(){return!0}},907:(e,t,r)=>{"use strict";r.r(t),r.d(t,{matches:()=>N,select:()=>M,selectAll:()=>H});var n={}.hasOwnProperty;function o(e,t){var r=t||{};function o(t){var r=o.invalid,i=o.handlers;if(t&&n.call(t,e)&&(r=n.call(i,t[e])?i[t[e]]:o.unknown),r)return r.apply(this,arguments)}return o.handlers=r.handlers||{},o.invalid=r.invalid,o.unknown=r.unknown,o}function i(e){return Array.isArray(e.children)}const a={}.hasOwnProperty,s=o("nestingOperator",{unknown:function(e){throw new Error("Unexpected nesting `"+e.nestingOperator+"`")},invalid:function(e,t,r,n,o){if(n)throw new Error("topScan is supposed to be called from the root node");if(!o.iterator)throw new Error("Expected `iterator` to be defined");if("number"!=typeof r)throw new TypeError("Expected `index` to be defined");o.iterator(e,t,r,n,o),o.shallow||c(e,t,r,n,o)},handlers:{null:c,">":u,"+":function(e,t,r,n,o){if("number"!=typeof r)throw new TypeError("Expected `index` to be defined");if(!n)return;new l(e,n,o).prefillTypeIndex(0,++r).each(r,++r).prefillTypeIndex(r).done()},"~":function(e,t,r,n,o){if("number"!=typeof r)throw new TypeError("Expected `index` to be defined");if(!n)return;new l(e,n,o).prefillTypeIndex(0,++r).each(r).done()}}});function c(e,t,r,n,o){if(!o.iterator)throw new Error("Expected `iterator` to be defined");const i=o.iterator;o.iterator=function e(t,r,n,o,a){if(a.iterator=i,i(t,r,n,o,a),a.iterator=e,a.one&&a.found)return;u(t,r,n,o,a)},u(e,t,r,n,o)}function u(e,t,r,n,o){i(t)&&0!==t.children.length&&new l(e,t,o).each().done()}class l{constructor(e,t,r){this.query=e,this.parent=t,this.state=r,this.typeIndex=r.index?new f:void 0,this.delayed=[]}prefillTypeIndex(e,t){let[r,n]=this.defaults(e,t);if(this.typeIndex)for(;r<n;)this.typeIndex.index(this.parent.children[r]),r++;return this}each(e,t){const[r,n]=this.defaults(e,t),o=this.parent.children[r];let i,a;if(r>=n)return this;if(this.typeIndex)a=this.typeIndex.nodes,i=this.typeIndex.index(o),this.delayed.push((function(){if(!this.typeIndex)throw new TypeError("Expected `typeIndex` to be defined");if(!this.state.iterator)throw new Error("Expected `iterator` to be defined");this.state.typeIndex=i,this.state.nodeIndex=a,this.state.typeCount=this.typeIndex.count(o),this.state.nodeCount=this.typeIndex.nodes,this.state.iterator(this.query,o,r,this.parent,this.state)}));else{if(!this.state.iterator)throw new Error("Expected `iterator` to be defined");this.state.iterator(this.query,o,r,this.parent,this.state)}return this.state.one&&this.state.found?this:this.each(r+1,n)}done(){let e=-1;for(;++e<this.delayed.length&&(this.delayed[e].call(this),!this.state.one||!this.state.found););return this}defaults(e,t){return(null==e||e<0)&&(e=0),(null==t||t>this.parent.children.length)&&(t=this.parent.children.length),[e,t]}}class f{constructor(){this.counts={},this.nodes=0}index(e){const t=e.type;return this.nodes++,a.call(this.counts,t)||(this.counts[t]=0),this.counts[t]++}count(e){return this.counts[e.type]}}const h=(0,r(213).convert)(),p=o("name",{unknown:function(e){if(e.name)throw new Error("Unknown pseudo-selector `"+e.name+"`");throw new Error("Unexpected pseudo-element or empty pseudo-class")},invalid:function(){throw new Error("Invalid pseudo-selector")},handlers:{any:m,blank:g,empty:g,"first-child":function(e,t,r,n,o){return y(o,e),0===o.nodeIndex},"first-of-type":function(e,t,r,n,o){return y(o,e),0===o.typeIndex},has:function(e,t,r,n,o){const i=o.shallow,a=o.one,s=o.scopeNodes,c=function(e){const t="ruleSet"===e.type?{type:"selectors",selectors:[e]}:e;let r,n=-1;for(;++n<t.selectors.length;)r=t.selectors[n].rule,r.nestingOperator=null,r.pseudos&&1===r.pseudos.length&&"scope"===r.pseudos[0].name||(t.selectors[n]={type:"ruleSet",rule:{type:"rule",rule:r,pseudos:[{name:"scope"}]}});return t}(e.value),u=o.any;o.shallow=!1,o.one=!0,o.scopeNodes=[t];const l=Boolean(u(c,t,o)[0]);return o.shallow=i,o.one=a,o.scopeNodes=s,l},"last-child":function(e,t,r,n,o){return y(o,e),"number"==typeof o.nodeCount&&o.nodeIndex===o.nodeCount-1},"last-of-type":function(e,t,r,n,o){return y(o,e),"number"==typeof o.typeCount&&o.typeIndex===o.typeCount-1},matches:m,not:function(e,t,r,n,o){return!m(e,t,r,n,o)},"nth-child":function(e,t,r,n,o){return y(o,e),"number"==typeof o.nodeIndex&&e.value(o.nodeIndex)},"nth-last-child":function(e,t,r,n,o){return y(o,e),"number"==typeof o.nodeCount&&"number"==typeof o.nodeIndex&&e.value(o.nodeCount-o.nodeIndex-1)},"nth-of-type":function(e,t,r,n,o){return y(o,e),"number"==typeof o.typeIndex&&e.value(o.typeIndex)},"nth-last-of-type":function(e,t,r,n,o){return y(o,e),"number"==typeof o.typeIndex&&"number"==typeof o.typeCount&&e.value(o.typeCount-1-o.typeIndex)},"only-child":function(e,t,r,n,o){return y(o,e),1===o.nodeCount},"only-of-type":function(e,t,r,n,o){return y(o,e),1===o.typeCount},root:function(e,t,r,n){return h(t)&&!n},scope:function(e,t,r,n,o){return h(t)&&void 0!==o.scopeNodes&&o.scopeNodes.includes(t)}}});function d(e,t,r,n,o){const i=e.pseudos;let a=-1;for(;++a<i.length;)if(!p(i[a],t,r,n,o))return!1;return!0}function m(e,t,r,n,o){const i=o.shallow,a=o.one;o.one=!0,o.shallow=!0;const s=o.any(e.value,t,o)[0]===t;return o.shallow=i,o.one=a,s}function g(e,t){return i(t)?0===t.children.length:!("value"in t)}function y(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}d.needsIndex=["first-child","first-of-type","last-child","last-of-type","nth-child","nth-last-child","nth-of-type","nth-last-of-type","only-child","only-of-type"];const v=o("operator",{unknown:function(e){throw new Error("Unknown operator `"+e.operator+"`")},invalid:b,handlers:{"=":function(e,t){return b(e,t)&&String(t[e.name])===e.value},"^=":function(e,t){const r=t[e.name];return e.value&&"string"==typeof r&&r.slice(0,e.value.length)===e.value},"$=":function(e,t){const r=t[e.name];return e.value&&"string"==typeof r&&r.slice(-e.value.length)===e.value},"*=":function(e,t){const r=t[e.name];return e.value&&"string"==typeof r&&r.includes(e.value)},"~=":function(e,t){const r=t[e.name];if(null==r)return!1;if(Array.isArray(r)&&r.includes(e.value))return!0;return String(r)===e.value}}});function b(e,t){return null!==t[e.name]&&void 0!==t[e.name]}function E(e,t,r,n,o){if(e.id)throw new Error("Invalid selector: id");if(e.classNames)throw new Error("Invalid selector: class");return Boolean(t&&(!e.tagName||function(e,t){return"*"===e.tagName||e.tagName===t.type}(e,t))&&(!e.attrs||function(e,t){let r=-1;for(;++r<e.attrs.length;)if(!v(e.attrs[r],t))return!1;return!0}(e,t))&&(!e.pseudos||d(e,t,r,n,o)))}const w=o("type",{unknown:function(e){throw new Error("Unknown type `"+e.type+"`")},invalid:function(){throw new Error("Invalid type")},handlers:{selectors:function(e,t,r){const n=D(r.one);let o=-1;for(;++o<e.selectors.length;)n(S(e.selectors[o],t,r));return n.result},ruleSet:S,rule:A}});function x(e,t,r){return e&&t?w(e,t,r):[]}function S(e,t,r){return A(e.rule,t,r)}function A(e,t,r){const n=D(r.one);if(r.shallow&&e.rule)throw new Error("Expected selector without nesting");var o;return s(e,t,0,null,k(e,{scopeNodes:(o=t,"RootNode"===o.type||"root"===o.type?t.children:[t]),index:!1,iterator:function(e,t,r,o,i){E(e,t,r,o,i)&&(e.rule?s(e.rule,t,r,o,k(e.rule,i)):(n(t),i.found=!0))},one:r.one,shallow:r.shallow,any:r.any})),n.result}function k(e,t){const r=e.pseudos||[];let n=-1;for(;++n<r.length;)if(d.needsIndex.includes(r[n].name)){t.index=!0;break}return t}function D(e){const t=[];let r;return n.result=t,n;function n(e){let t=-1;if("length"in e)for(;++t<e.length;)o(e[t]);else o(e)}function o(n){if(e){if(r)throw new Error("Cannot collect multiple nodes");r=!0}t.includes(n)||t.push(n)}}var C=r(301);const F=new Set([9,10,12,13,32]),P="0".charCodeAt(0),O="9".charCodeAt(0);var T=r(9377);const j=function(e){return function(e){const t=e[0],r=e[1]-1;if(r<0&&t<=0)return T.falseFunc;if(-1===t)return e=>e<=r;if(0===t)return e=>e===r;if(1===t)return r<0?T.trueFunc:e=>e>=r;const n=Math.abs(t),o=(r%n+n)%n;return t>1?e=>e>=r&&e%n===o:e=>e<=r&&e%n===o}(function(e){if("even"===(e=e.trim().toLowerCase()))return[2,0];if("odd"===e)return[2,1];let t=0,r=0,n=i(),o=a();if(t<e.length&&"n"===e.charAt(t)&&(t++,r=n*(null!=o?o:1),s(),t<e.length?(n=i(),s(),o=a()):n=o=0),null===o||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[r,n*o];function i(){return"-"===e.charAt(t)?(t++,-1):("+"===e.charAt(t)&&t++,1)}function a(){const r=t;let n=0;for(;t<e.length&&e.charCodeAt(t)>=P&&e.charCodeAt(t)<=O;)n=10*n+(e.charCodeAt(t)-P),t++;return t===r?null:n}function s(){for(;t<e.length&&F.has(e.charCodeAt(t));)t++}}(e))}.default,I=new Set(["nth-child","nth-last-child","nth-of-type","nth-last-of-type"]),_=new C.N;_.registerAttrEqualityMods("~","^","$","*"),_.registerSelectorPseudos("any","matches","not","has"),_.registerNestingOperators(">","+","~");const R=o("type",{handlers:{selectors:function(e){const t=e.selectors;let r=-1;for(;++r<t.length;)R(t[r]);return e},ruleSet:function(e){return L(e.rule)},rule:L}});function B(e){if("string"!=typeof e)throw new TypeError("Expected `string` as selector, not `"+e+"`");return R(_.parse(e))}function L(e){const t=e.pseudos||[];let r,n=-1;for(;++n<t.length;)r=t[n],I.has(r.name)&&(r.value=j(r.value),r.valueType="function");return R(e.rule),e}function N(e,t){return Boolean(x(B(e),t,{one:!0,shallow:!0,any:x})[0])}function M(e,t){return x(B(e),t,{one:!0,any:x})[0]||null}function H(e,t){return x(B(e),t,{any:x})}},1513:(e,t,r)=>{"use strict";function n(e){return e&&"object"==typeof e?"position"in e||"type"in e?i(e.position):"start"in e||"end"in e?i(e):"line"in e||"column"in e?o(e):"":""}function o(e){return a(e&&e.line)+":"+a(e&&e.column)}function i(e){return o(e&&e.start)+"-"+o(e&&e.end)}function a(e){return e&&"number"==typeof e?e:1}r.d(t,{y:()=>n})},7918:(e,t,r)=>{"use strict";r.d(t,{dR:()=>o,BK:()=>a,AM:()=>i,S4:()=>s});var n=r(213);const o=!0,i="skip",a=!1,s=function(e,t,r,s){"function"==typeof t&&"function"!=typeof r&&(s=r,r=t,t=null);const c=(0,n.convert)(t),u=s?-1:1;!function e(n,l,f){const h="object"==typeof n&&null!==n?n:{};let p;"string"==typeof h.type&&(p="string"==typeof h.tagName?h.tagName:"string"==typeof h.name?h.name:void 0,Object.defineProperty(d,"name",{value:"node ("+h.type+(p?"<"+p+">":"")+")"}));return d;function d(){let h,p,d,m=[];if((!t||c(n,l,f[f.length-1]||null))&&(m=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[o,e];return[e]}(r(n,f)),m[0]===a))return m;if(n.children&&m[0]!==i)for(p=(s?n.children.length:-1)+u,d=f.concat(n);p>-1&&p<n.children.length;){if(h=e(n.children[p],p,d)(),h[0]===a)return h;p="number"==typeof h[1]?h[1]:p+u}return m}}(e,null,[])()}},3428:(e,t,r)=>{"use strict";r.r(t),r.d(t,{CONTINUE:()=>n.dR,EXIT:()=>n.BK,SKIP:()=>n.AM,visit:()=>o});var n=r(7918);const o=function(e,t,r,o){"function"==typeof t&&"function"!=typeof r&&(o=r,r=t,t=null),(0,n.S4)(e,t,(function(e,t){const n=t[t.length-1];return r(e,n?n.children.indexOf(e):null,n)}),o)}},3633:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON Schema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},4222:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},9354:e=>{"use strict";e.exports=JSON.parse('["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"]')}},s={};function c(e){var t=s[e];if(void 0!==t)return t.exports;var r=s[e]={id:e,loaded:!1,exports:{}};return a[e].call(r.exports,r,r.exports,c),r.loaded=!0,r.exports}c.m=a,c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var o=Object.create(null);c.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var a=2&n&&r;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>i[e]=()=>r[e]));return i.default=()=>r,c.d(o,i),o},c.d=(e,t)=>{for(var r in t)c.o(t,r)&&!c.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce(((t,r)=>(c.f[r](e,t),t)),[])),c.u=e=>e+"-"+{7:"7d6f45",267:"b5c5b0",363:"a6af82",812:"edff19"}[e]+".js",c.miniCssF=e=>e+".css",c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},n="@topwrite/reader:",c.l=(e,t,o,i)=>{if(r[e])r[e].push(t);else{var a,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var f=u[l];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==n+o){a=f;break}}a||(s=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,c.nc&&a.setAttribute("nonce",c.nc),a.setAttribute("data-webpack",n+o),a.src=e),r[e]=[t];var h=(t,n)=>{a.onerror=a.onload=null,clearTimeout(p);var o=r[e];if(delete r[e],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((e=>e(n))),t)return t(n)},p=setTimeout(h.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=h.bind(null,a.onerror),a.onload=h.bind(null,a.onload),s&&document.head.appendChild(a)}},c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;c.g.importScripts&&(e=c.g.location+"");var t=c.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),c.p=e})(),o=e=>new Promise(((t,r)=>{var n=c.miniCssF(e),o=c.p+n;if(((e,t)=>{for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var o=(a=r[n]).getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(o===e||o===t))return a}var i=document.getElementsByTagName("style");for(n=0;n<i.length;n++){var a;if((o=(a=i[n]).getAttribute("data-href"))===e||o===t)return a}})(n,o))return t();((e,t,r,n)=>{var o=document.createElement("link");o.rel="stylesheet",o.type="text/css",o.onerror=o.onload=i=>{if(o.onerror=o.onload=null,"load"===i.type)r();else{var a=i&&("load"===i.type?"missing":i.type),s=i&&i.target&&i.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+s+")");c.code="CSS_CHUNK_LOAD_FAILED",c.type=a,c.request=s,o.parentNode.removeChild(o),n(c)}},o.href=t,document.head.appendChild(o)})(e,o,t,r)})),i={826:0},c.f.miniCss=(e,t)=>{i[e]?t.push(i[e]):0!==i[e]&&{363:1}[e]&&t.push(i[e]=o(e).then((()=>{i[e]=0}),(t=>{throw delete i[e],t})))},(()=>{var e={826:0};c.f.j=(t,r)=>{var n=c.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise(((r,o)=>n=e[t]=[r,o]));r.push(n[2]=o);var i=c.p+c.u(t),a=new Error;c.l(i,(r=>{if(c.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,n[1](a)}}),"chunk-"+t,t)}};var t=(t,r)=>{var n,o,[i,a,s]=r,u=0;if(i.some((t=>0!==e[t]))){for(n in a)c.o(a,n)&&(c.m[n]=a[n]);if(s)s(c)}for(t&&t(r);u<i.length;u++)o=i[u],c.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=self.webpackChunk_topwrite_reader=self.webpackChunk_topwrite_reader||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var u={};(()=>{"use strict";c.r(u),c.d(u,{Anchor:()=>ce,Article:()=>ge,BaseConfig:()=>t.l_,Book:()=>t.fy,Breadcrumb:()=>Ae,Catalog:()=>Se,CatalogItems:()=>Ee,Config:()=>t.De,File:()=>t.$B,Helmet:()=>t.ql,InjectedComponent:()=>t.cu,InjectedComponentSet:()=>t.IA,IntlContext:()=>t.fH,LetterAvatar:()=>t.$q,Level:()=>t.aC,Link:()=>ie,Logo:()=>oe,Markdown:()=>de,Model:()=>t.Hn,Plugin:()=>t.Sy,PoweredBy:()=>ne,Summary:()=>t.ER,SummaryArticle:()=>t.oI,SummaryPart:()=>t.Lj,ToFirstArticle:()=>ke,VERSION:()=>t.q4,aes:()=>t.rK,base64:()=>t.US,bootstrap:()=>J,createApplication:()=>t.W3,createComponentDescriptor:()=>t.nC,createGlobalStyle:()=>t.vJ,createStorageSlot:()=>t.WA,css:()=>t.iv,getPayload:()=>t.He,getPublicPath:()=>t.Ak,history:()=>A,isEncryptedData:()=>t.oe,isMac:()=>t.V5,isUrl:()=>t.CB,keyframes:()=>t.F4,listStorageKeys:()=>t._f,loadjs:()=>t.j0,markdown:()=>t.JH,md5:()=>t.FB,pluginCenter:()=>t.YB,request:()=>t.WY,styled:()=>t.zo,useActions:()=>t.ol,useArticle:()=>$,useAsync:()=>t.r5,useAsyncCallback:()=>t.UK,useAsyncEffect:()=>t.bd,useAsyncFetchMore:()=>t.r3,useBook:()=>t.CQ,useDebounce:()=>t.Nr,useDocumentTitle:()=>t.jr,useEvent:()=>t.zX,useEventTarget:()=>t.Rs,useFile:()=>N,useHotkeys:()=>t.y1,useInPreview:()=>re,useIntl:()=>t.cw,useLockBodyScroll:()=>te,useLogo:()=>Q,useModel:()=>t.tT,useNextArticle:()=>q,useOptions:()=>t.D2,usePrevArticle:()=>V,usePrevious:()=>t.D9,useSelector:()=>t.v9,useStateWithCallback:()=>t.CM,useThemeConfig:()=>t.LU,useThemeContext:()=>t.TC,useThrottle:()=>t.fB,useTitle:()=>z,useWindowSize:()=>ee.Z,windowSizes:()=>ee.D});var e={};c.r(e),c.d(e,{book:()=>D,page:()=>F,search:()=>O}),Date.prototype.format=function(e){const t={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length)));for(const r in t)new RegExp("("+r+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?t[r]:("00"+t[r]).substr((""+t[r]).length)));return e};var t=c(8924),r=c(4246),n=c(1533),o=c.n(n),i=c(8907);t.$B.prototype[i.sc]=!0;var a,s=c(7363),l=c.n(s),f=c(4649),h=c(5773);!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(a||(a={}));var p=function(e){return e};var d="beforeunload",m="popstate";function g(e,t,r){return Math.min(Math.max(e,t),r)}function y(e){e.preventDefault(),e.returnValue=""}function v(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function b(){return Math.random().toString(36).substr(2,8)}function E(e){var t=e.pathname,r=void 0===t?"/":t,n=e.search,o=void 0===n?"":n,i=e.hash,a=void 0===i?"":i;return o&&"?"!==o&&(r+="?"===o.charAt(0)?o:"?"+o),a&&"#"!==a&&(r+="#"===a.charAt(0)?a:"#"+a),r}function w(e){var t={};if(e){var r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));var n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}const x="undefined"!=typeof window&&window.history&&!navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]\D|WebApps\/.+CFNetwork)/)&&"file:"!==window.location.protocol;class S{constructor(){(0,f.Z)(this,"history",void 0),this.history=x?function(e){void 0===e&&(e={});var t=e.window,r=void 0===t?document.defaultView:t,n=r.history;function o(){var e=r.location,t=e.pathname,o=e.search,i=e.hash,a=n.state||{};return[a.idx,p({pathname:t,search:o,hash:i,state:a.usr||null,key:a.key||"default"})]}var i=null;r.addEventListener(m,(function(){if(i)g.call(i),i=null;else{var e=a.Pop,t=o(),r=t[0],n=t[1];if(g.length){if(null!=r){var s=u-r;s&&(i={action:e,location:n,retry:function(){C(-1*s)}},C(s))}}else D(e)}}));var s=a.Pop,c=o(),u=c[0],l=c[1],f=v(),g=v();function x(e){return"string"==typeof e?e:E(e)}function S(e,t){return void 0===t&&(t=null),p((0,h.Z)({pathname:l.pathname,hash:"",search:""},"string"==typeof e?w(e):e,{state:t,key:b()}))}function A(e,t){return[{usr:e.state,key:e.key,idx:t},x(e)]}function k(e,t,r){return!g.length||(g.call({action:e,location:t,retry:r}),!1)}function D(e){s=e;var t=o();u=t[0],l=t[1],f.call({action:s,location:l})}function C(e){n.go(e)}return null==u&&(u=0,n.replaceState((0,h.Z)({},n.state,{idx:u}),"")),{get action(){return s},get location(){return l},createHref:x,push:function e(t,o){var i=a.Push,s=S(t,o);if(k(i,s,(function(){e(t,o)}))){var c=A(s,u+1),l=c[0],f=c[1];try{n.pushState(l,"",f)}catch(e){r.location.assign(f)}D(i)}},replace:function e(t,r){var o=a.Replace,i=S(t,r);if(k(o,i,(function(){e(t,r)}))){var s=A(i,u),c=s[0],l=s[1];n.replaceState(c,"",l),D(o)}},go:C,back:function(){C(-1)},forward:function(){C(1)},listen:function(e){return f.push(e)},block:function(e){var t=g.push(e);return 1===g.length&&r.addEventListener(d,y),function(){t(),g.length||r.removeEventListener(d,y)}}}}():function(e){void 0===e&&(e={});var t=e,r=t.initialEntries,n=void 0===r?["/"]:r,o=t.initialIndex,i=n.map((function(e){return p((0,h.Z)({pathname:"/",search:"",hash:"",state:null,key:b()},"string"==typeof e?w(e):e))})),s=g(null==o?i.length-1:o,0,i.length-1),c=a.Pop,u=i[s],l=v(),f=v();function d(e,t){return void 0===t&&(t=null),p((0,h.Z)({pathname:u.pathname,search:"",hash:""},"string"==typeof e?w(e):e,{state:t,key:b()}))}function m(e,t,r){return!f.length||(f.call({action:e,location:t,retry:r}),!1)}function y(e,t){c=e,u=t,l.call({action:c,location:u})}function x(e){var t=g(s+e,0,i.length-1),r=a.Pop,n=i[t];m(r,n,(function(){x(e)}))&&(s=t,y(r,n))}return{get index(){return s},get action(){return c},get location(){return u},createHref:function(e){return"string"==typeof e?e:E(e)},push:function e(t,r){var n=a.Push,o=d(t,r);m(n,o,(function(){e(t,r)}))&&(s+=1,i.splice(s,i.length,o),y(n,o))},replace:function e(t,r){var n=a.Replace,o=d(t,r);m(n,o,(function(){e(t,r)}))&&(i[s]=o,y(n,o))},go:x,back:function(){x(-1)},forward:function(){x(1)},listen:function(e){return l.push(e)},block:function(e){return f.push(e)}}}({initialEntries:[window.location]})}get location(){const e=this.history.location;return{...e,toString:()=>E(e)}}listen(e){this.history.listen(e)}replace(e){return this.history.replace(e)}push(e){return this.history.push(e)}}let A;class k extends t.Hn{}const D=new k;class C extends t.Hn{constructor(){super(...arguments),(0,f.Z)(this,"initialState",{loading:!1,request:t.WY.create(),config:{}})}subscription(e){let{fetch:t}=e,r=A.location;A.listen((async e=>{let{location:n}=e;r.pathname!==n.pathname&&(t(n.pathname),requestAnimationFrame((()=>{window.scrollTo(0,0)}))),r=n}))}async*fetch(e){yield this.setState((e=>{e.loading=!0}));const{request:r,config:n}=yield*this.getState("page");try{const o=decodeURI(e);let{data:i}=await r.get(o,n);"string"==typeof i&&(i=(0,t.He)(i));const{file:a,lfs:s}=i;yield this.setState((e=>{e.file=new t.$B(a),e.lfs=s}))}catch(e){yield this.setState((t=>{t.error=e}))}finally{yield this.setState((e=>{e.loading=!1}))}}*intercept(e){const{request:t}=yield*this.getState("page");e(t.interceptors)}*updateConfig(e){yield this.setState((t=>{e(t.config)}))}}const F=new C;class P extends t.Hn{constructor(){super(...arguments),(0,f.Z)(this,"initialState",{status:"idle",results:[],query:""})}async*fetch(e){if(e=e.trim()){yield this.setState((t=>{t.query=e,t.status="loading"}));let{handler:t}=yield*this.getState("search");if(!t){const{summary:r}=yield*this.getState("book");t=()=>{const t=[];return r.getArticle((r=>{const n=r.getPath();return r.title.includes(e)&&n&&t.push({title:r.title,path:n}),!1})),t}}try{const r=await t(e);yield this.setState((e=>{e.results=r,e.status="idle"}))}catch{yield this.setState((e=>{e.results=[],e.status="error"}))}}else yield this.setState((t=>{t.query=e,t.status="idle",t.results=[]}))}*setHandler(e){yield this.setState((t=>{t.handler=e}))}}const O=new P;var T,j,I=c(8891),_=c(669);function R(){return(0,r.jsx)(L,{children:(0,r.jsx)(B,{})})}const B=t.zo.div(T||(T=(0,_.Z)(["\n @keyframes spinner-border {\n to {\n transform: rotate(360deg)\n }\n }\n\n display: inline-block;\n width: 2rem;\n height: 2rem;\n vertical-align: -0.125em;\n border: 0.25em solid #3c60ff;\n border-right-color: transparent;\n border-radius: 50%;\n animation: 0.75s linear infinite spinner-border;\n"]))),L=t.zo.div(j||(j=(0,_.Z)(["\n position: fixed;\n top: 0;\n left: 0;\n height: 100vh;\n width: 100vw;\n display: flex;\n align-items: center;\n justify-content: center;\n"])));function N(){const{file:e}=(0,t.v9)("page");return e}const M=(0,s.createContext)(void 0);function H(e){let{children:n}=e;const o=N(),{result:i,loading:a}=(0,t.r5)((async()=>{const{data:e}=await(0,t.WY)(o.relative(t.fy.style));return e}),[]);return a?null:(0,r.jsx)(M.Provider,{value:i,children:n})}function z(){const e=(0,t.cw)(),{config:r}=(0,t.CQ)();return r.getValue("title",e.formatMessage({id:"n24ytq",defaultMessage:[{type:0,value:"未命名文档"}]}))}const U=(0,s.createContext)(void 0);function $(){return(0,s.useContext)(U)}function q(){const{summary:e}=(0,t.CQ)(),r=$();if(r)return(0,s.useMemo)((()=>{const t=r.getLevel();let n=!1;return e.getArticle((e=>n?!!e.getPath():(n=e.getLevel()==t,!1)))}),[e,r])}function V(){const{summary:e}=(0,t.CQ)(),r=$();if(r)return(0,s.useMemo)((()=>{const t=r.getLevel();let n;return e.getArticle((e=>e.getLevel()==t||(e.getPath()&&(n=e),!1))),n}),[e,r])}const G=(0,s.createContext)(void 0);function W(e){let{children:n}=e;const[o,i]=(0,s.useState)((()=>"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=")),a=N();return(0,s.useEffect)((()=>{const e=a.relative(t.fy.logo),r=new Image;r.addEventListener("load",(function(){const e=document.createElement("canvas");e.height=this.height,e.width=this.width;const t=e.getContext("2d");t&&(t.drawImage(this,0,0),e.toBlob((e=>{e&&i(window.URL.createObjectURL(e))})))})),r.src=e}),[]),(0,r.jsx)(G.Provider,{value:o,children:n})}function Q(){return(0,s.useContext)(G)}const K=l().lazy((()=>Promise.all([c.e(812),c.e(363)]).then(c.bind(c,4363))));function Z(){const{summary:e}=(0,t.CQ)(),n=z(),o=N(),i=(0,s.useMemo)((()=>e.getArticle((e=>e.getPath()===o.path))),[e,o]);(0,s.useEffect)((()=>{window.dispatchEvent(new Event("bootstrapped"))}),[]);const a=Q();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(t.ql,{children:[(0,r.jsx)("title",{children:"".concat(i?"".concat(i.title," - "):"").concat(n)}),(0,r.jsx)("link",{rel:"shortcut icon",href:a,type:"image/png"})]}),(0,r.jsxs)(U.Provider,{value:i,children:[(0,r.jsx)(t.cu,{role:"app"}),(0,r.jsx)(t.cu,{role:"page"}),(0,r.jsx)(l().Suspense,{fallback:null,children:(0,r.jsx)(t.cu,{role:"page:menu",component:K})})]})]})}async function Y(e){return"en"===e?c.e(7).then(c.t.bind(c,2007,19)):c.e(267).then(c.t.bind(c,3267,19))}function X(){const[n,o]=(0,s.useState)();return(0,t.bd)((async()=>{try{const{location:n}=A=new S;let i=(0,t.He)();if(!i){i=(await t.WY.get(n.toString())).data}let{id:a,summary:s,file:c,config:u={},options:l={},lfs:f,pluginsCenter:h}=i;u=t.De.createFromObject(u),s=t.ER.create(s);const p=new t.fy(a,u,s),d={page:{config:{params:I.parse(n.search)},file:new t.$B(c),lfs:f},options:l},m=await(0,t.W3)("reader",p,e,d,Y,h),g=(0,r.jsx)(m,{children:(0,r.jsx)(W,{children:(0,r.jsx)(H,{children:(0,r.jsx)(Z,{})})})});o(g)}catch(e){var n;if(console.error(e),t.WY.isAxiosError(e))o((null===(n=e.response)||void 0===n?void 0:n.data)||e.message);else o(e.message)}}),[]),n||(0,r.jsx)(R,{})}const J=()=>{o().render((0,r.jsx)(X,{}),document.getElementById("root"))};var ee=c(9958);function te(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];(0,s.useEffect)((()=>(document.body.style.overflow=e?"hidden":"visible",window.scrollTo(0,0),()=>{document.body.style.overflow="visible"})),[e])}function re(){const{preview:e=!1}=(0,t.v9)("options");return e}function ne(e){let{className:n}=e;const o=(0,t.cw)(),{poweredBy:i}=(0,t.v9)("options");return i?(0,r.jsx)("div",{className:n,children:o.formatMessage({id:"IHXx7d",defaultMessage:[{type:0,value:"本文档使用 "},{type:1,value:"link"},{type:0,value:" 构建"}]},{link:(0,r.jsx)("a",{href:i.link,target:"_blank",children:i.name})})}):null}function oe(e){let{size:t=60,className:n}=e;const o=Q();return(0,r.jsx)("img",{className:n,src:o,width:t,height:t,alt:"logo"})}function ie(e){let{children:n,to:o,className:i,...a}=e;const c=N(),{loading:u}=(0,t.v9)("page");let l;o instanceof t.oI?(l=o.getPath(),n||(n=o.getTitle())):l=o;const f=l?c.relative(l):"#!",h=(0,s.useCallback)((e=>{if(e.preventDefault(),l&&!u){const t={pathname:"",search:"",hash:"",...w(e.currentTarget.pathname)};A.push(t)}}),[l,u]);return(0,r.jsx)("a",{...a,onClick:h,className:i,href:f,children:n})}var ae=c(7425),se=c.n(ae);const ce=e=>{let{base:n,href:o,...i}=e;const{summary:a}=(0,t.CQ)();if(o){if(!(0,t.CB)(o)){let e=o;if(".md"===se().extname(o)){let t;t=n?decodeURIComponent(se().join(se().dirname(n),o)):o;const r=a.getArticle((e=>e.ref===t));r&&(e=r)}return(0,r.jsx)(ie,{to:e,...i})}i.target="_blank"}return(0,r.jsx)("a",{href:o,...i,rel:"noopener noreferrer"})};var ue,le=c(3440);function fe(e){let{element:n,src:o,...i}=e;const{lfs:a,file:s}=(0,t.v9)("page");if(o&&a&&!(0,le.CB)(o)&&s){const{url:e,files:t}=a,r=t[s.resolve(decodeURIComponent(o))];r&&(o=e.replace("{oid}",r))}return(0,r.jsx)(t.cu,{role:"page:asset",props:{src:o,...i},component:n})}const he=t.zo.a(ue||(ue=(0,_.Z)(["\n display: block;\n position: relative;\n top: -.5rem;\n"]))),pe={a:function(e){const t=N();return(0,r.jsx)(ce,{...e,base:t.path})},img:function(e){return(0,r.jsx)(fe,{element:"img",...e})},attachment:function(e){return(0,r.jsx)(fe,{element:"t-attachment",...e})},video:function(e){return(0,r.jsx)(fe,{element:"video",...e})},audio:function(e){return(0,r.jsx)(fe,{element:"audio",...e})},heading:function(e){let{depth:t,id:n,children:o,...i}=e;return n&&(o=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(he,{tabIndex:-1,id:n}),o]})),(0,s.createElement)("h".concat(t),i,o)}};function de(e){let{children:n,...o}=e;(0,s.useEffect)((()=>{const e=A.location.hash;if(e){const t=document.getElementById(decodeURIComponent(e).substr(1));t&&window.scrollTo(0,t.offsetTop)}}),[]);const i=(0,s.useContext)(M);return(0,r.jsx)(t.UG,{css:i,...o,components:pe,children:n})}var me;function ge(e){let{className:n,header:o,footer:i,...a}=e;const s=N(),c=$();void 0===o&&c&&(o=(0,r.jsx)(ye,{children:c.title})),o=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.IA,{role:"page:article:before"}),o]}),i=(0,r.jsxs)(r.Fragment,{children:[i,(0,r.jsx)(t.IA,{role:"page:article:after"})]});const u=(0,r.jsx)(t.cu,{role:"page:article:markdown",component:de,props:{header:o,footer:i,children:s.content,...a}});return(0,r.jsx)("div",{className:n,children:u})}const ye=t.zo.h1(me||(me=(0,_.Z)(["\n border-bottom: 1px solid #eee;\n font-size: 2em;\n line-height: 1.2;\n padding: 0 0 .5em;\n margin: 0 0 1em;\n font-weight: 400;\n"]))),ve=e=>{let{item:n,itemComponent:o,itemsComponent:i}=e;const{path:a}=N(),c=$(),u=(0,s.useMemo)((()=>Boolean(c&&n.getLevel().isDescendant(c.getLevel()))),[n,c]),l=a===n.getPath(),f=n.children.length>0,h=!n.getPath(),p=f?(0,r.jsx)(Ee,{itemsComponent:i,itemComponent:o,items:n.children}):null;return(0,r.jsx)(t.cu,{role:"catalog:item",props:{item:n,active:l,disabled:h,activeDescendant:u,children:p},component:o})},be=e=>{let{children:t}=e;return(0,r.jsx)("ul",{children:t})},Ee=e=>{let{items:n,part:o,itemsComponent:i=be,itemComponent:a}=e;const s=(0,r.jsx)(r.Fragment,{children:n.map((e=>(0,r.jsx)(ve,{itemsComponent:i,itemComponent:a,item:e},e.level.toString())))});return(0,r.jsx)(t.cu,{role:"catalog:items",props:{part:o,children:s},component:i})},we=e=>{let{part:n,component:o,itemsComponent:i,itemComponent:a}=e;const s=(0,r.jsx)(Ee,{itemsComponent:i,itemComponent:a,items:n.articles,part:n});return(0,r.jsx)(t.cu,{role:"catalog:part",props:{part:n,children:s},component:o})},xe=e=>{let{summary:t,partComponent:n,itemsComponent:o,itemComponent:i}=e;return t.isSinglePart()?(0,r.jsx)(Ee,{itemsComponent:o,itemComponent:i,items:t.getLastPart().getArticles()}):(0,r.jsx)(r.Fragment,{children:t.parts.map((e=>(0,r.jsx)(we,{component:n,itemsComponent:o,itemComponent:i,part:e},e.level.toString())))})};function Se(e){let{...n}=e;const{summary:o}=(0,t.v9)("book"),{renderItem:i,renderPart:a}=n;i&&(console.warn("renderItem deprecated"),n.itemComponent=i),a&&(console.warn("renderPart deprecated"),n.partComponent=a);const{partComponent:s,itemsComponent:c,itemComponent:u}=n;return(0,r.jsx)(xe,{summary:o,partComponent:s,itemsComponent:c,itemComponent:u})}function Ae(e){let{className:n}=e;const{summary:o}=(0,t.CQ)(),i=$(),a=(0,t.cw)(),s=[(0,r.jsx)("li",{children:(0,r.jsx)(ie,{to:".",children:a.formatMessage({id:"4R5GEq",defaultMessage:[{type:0,value:"首页"}]})})},"0")];if(i){const e=i.getLevel();e.data.reduce(((n,i)=>{n.push(i);const a=new t.aC(n),c=o.getByLevel(a);return c&&(c instanceof t.oI&&!a.eq(e)?s.push((0,r.jsx)("li",{children:(0,r.jsx)(ie,{to:c})},a.toString())):c.title&&s.push((0,r.jsx)("li",{children:c.title},a.toString()))),n}),[])}return(0,r.jsx)("ol",{className:n,children:s})}function ke(e){let{children:r}=e;const{summary:n}=(0,t.CQ)(),o=$(),i=N();return(0,s.useEffect)((()=>{if(!o){const e=n.getFirstArticle();e&&A.replace(i.relative(e.path))}}),[o]),o?r:null}})(),window.TopWrite=u})();
53
+ !function(e){"use strict";function t(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.length>1){t[0]=t[0].slice(0,-1);for(var n=t.length-1,o=1;o<n;++o)t[o]=t[o].slice(1,-1);return t[n]=t[n].slice(1),t.join("")}return t[0]}function r(e){return"(?:"+e+")"}function n(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function o(e){return e.toUpperCase()}function i(e){return null!=e?e instanceof Array?e:"number"!=typeof e.length||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function a(e,t){var r=e;if(t)for(var n in t)r[n]=t[n];return r}function s(e){var n="[A-Za-z]",o="[0-9]",i=t(o,"[A-Fa-f]"),a=r(r("%[EFef]"+i+"%"+i+i+"%"+i+i)+"|"+r("%[89A-Fa-f]"+i+"%"+i+i)+"|"+r("%"+i+i)),s="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",c=t("[\\:\\/\\?\\#\\[\\]\\@]",s),u=e?"[\\uE000-\\uF8FF]":"[]",l=t(n,o,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]"),f=r(n+t(n,o,"[\\+\\-\\.]")+"*"),h=r(r(a+"|"+t(l,s,"[\\:]"))+"*"),p=(r(r("25[0-5]")+"|"+r("2[0-4]"+o)+"|"+r("1"+o+o)+"|"+r("[1-9]"+o)+"|"+o),r(r("25[0-5]")+"|"+r("2[0-4]"+o)+"|"+r("1"+o+o)+"|"+r("0?[1-9]"+o)+"|0?0?"+o)),d=r(p+"\\."+p+"\\."+p+"\\."+p),m=r(i+"{1,4}"),g=r(r(m+"\\:"+m)+"|"+d),y=r(r(m+"\\:")+"{6}"+g),v=r("\\:\\:"+r(m+"\\:")+"{5}"+g),b=r(r(m)+"?\\:\\:"+r(m+"\\:")+"{4}"+g),E=r(r(r(m+"\\:")+"{0,1}"+m)+"?\\:\\:"+r(m+"\\:")+"{3}"+g),w=r(r(r(m+"\\:")+"{0,2}"+m)+"?\\:\\:"+r(m+"\\:")+"{2}"+g),x=r(r(r(m+"\\:")+"{0,3}"+m)+"?\\:\\:"+m+"\\:"+g),S=r(r(r(m+"\\:")+"{0,4}"+m)+"?\\:\\:"+g),A=r(r(r(m+"\\:")+"{0,5}"+m)+"?\\:\\:"+m),k=r(r(r(m+"\\:")+"{0,6}"+m)+"?\\:\\:"),D=r([y,v,b,E,w,x,S,A,k].join("|")),C=r(r(l+"|"+a)+"+"),F=(r(D+"\\%25"+C),r(D+r("\\%25|\\%(?!"+i+"{2})")+C)),P=r("[vV]"+i+"+\\."+t(l,s,"[\\:]")+"+"),O=r("\\["+r(F+"|"+D+"|"+P)+"\\]"),T=r(r(a+"|"+t(l,s))+"*"),j=r(O+"|"+d+"(?!"+T+")|"+T),I=r(o+"*"),_=r(r(h+"@")+"?"+j+r("\\:"+I)+"?"),R=r(a+"|"+t(l,s,"[\\:\\@]")),B=r(R+"*"),L=r(R+"+"),N=r(r(a+"|"+t(l,s,"[\\@]"))+"+"),M=r(r("\\/"+B)+"*"),H=r("\\/"+r(L+M)+"?"),z=r(N+M),U=r(L+M),$="(?!"+R+")",q=(r(M+"|"+H+"|"+z+"|"+U+"|"+$),r(r(R+"|"+t("[\\/\\?]",u))+"*")),V=r(r(R+"|[\\/\\?]")+"*"),G=r(r("\\/\\/"+_+M)+"|"+H+"|"+U+"|"+$),W=r(f+"\\:"+G+r("\\?"+q)+"?"+r("\\#"+V)+"?"),Q=r(r("\\/\\/"+_+M)+"|"+H+"|"+z+"|"+$),K=r(Q+r("\\?"+q)+"?"+r("\\#"+V)+"?");return r(W+"|"+K),r(f+"\\:"+G+r("\\?"+q)+"?"),r(r("\\/\\/("+r("("+h+")@")+"?("+j+")"+r("\\:("+I+")")+"?)")+"?("+M+"|"+H+"|"+U+"|"+$+")"),r("\\?("+q+")"),r("\\#("+V+")"),r(r("\\/\\/("+r("("+h+")@")+"?("+j+")"+r("\\:("+I+")")+"?)")+"?("+M+"|"+H+"|"+z+"|"+$+")"),r("\\?("+q+")"),r("\\#("+V+")"),r(r("\\/\\/("+r("("+h+")@")+"?("+j+")"+r("\\:("+I+")")+"?)")+"?("+M+"|"+H+"|"+U+"|"+$+")"),r("\\?("+q+")"),r("\\#("+V+")"),r("("+h+")@"),r("\\:("+I+")"),{NOT_SCHEME:new RegExp(t("[^]",n,o,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",l,s),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",l,s),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",l,s),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",l,s),"g"),NOT_QUERY:new RegExp(t("[^\\%]",l,s,"[\\:\\@\\/\\?]",u),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",l,s,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",l,s),"g"),UNRESERVED:new RegExp(l,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",l,c),"g"),PCT_ENCODED:new RegExp(a,"g"),IPV4ADDRESS:new RegExp("^("+d+")$"),IPV6ADDRESS:new RegExp("^\\[?("+D+")"+r(r("\\%25|\\%(?!"+i+"{2})")+"("+C+")")+"?\\]?$")}}var c=s(!1),u=s(!0),l=function(){function e(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw i}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)},h=2147483647,p=36,d=1,m=26,g=38,y=700,v=72,b=128,E="-",w=/^xn--/,x=/[^\0-\x7E]/,S=/[\x2E\u3002\uFF0E\uFF61]/g,A={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},k=p-d,D=Math.floor,C=String.fromCharCode;function F(e){throw new RangeError(A[e])}function P(e,t){for(var r=[],n=e.length;n--;)r[n]=t(e[n]);return r}function O(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+P((e=e.replace(S,".")).split("."),t).join(".")}function T(e){for(var t=[],r=0,n=e.length;r<n;){var o=e.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){var i=e.charCodeAt(r++);56320==(64512&i)?t.push(((1023&o)<<10)+(1023&i)+65536):(t.push(o),r--)}else t.push(o)}return t}var j=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:p},I=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},_=function(e,t,r){var n=0;for(e=r?D(e/y):e>>1,e+=D(e/t);e>k*m>>1;n+=p)e=D(e/k);return D(n+(k+1)*e/(e+g))},R=function(e){var t=[],r=e.length,n=0,o=b,i=v,a=e.lastIndexOf(E);a<0&&(a=0);for(var s=0;s<a;++s)e.charCodeAt(s)>=128&&F("not-basic"),t.push(e.charCodeAt(s));for(var c=a>0?a+1:0;c<r;){for(var u=n,l=1,f=p;;f+=p){c>=r&&F("invalid-input");var g=j(e.charCodeAt(c++));(g>=p||g>D((h-n)/l))&&F("overflow"),n+=g*l;var y=f<=i?d:f>=i+m?m:f-i;if(g<y)break;var w=p-y;l>D(h/w)&&F("overflow"),l*=w}var x=t.length+1;i=_(n-u,x,0==u),D(n/x)>h-o&&F("overflow"),o+=D(n/x),n%=x,t.splice(n++,0,o)}return String.fromCodePoint.apply(String,t)},B=function(e){var t=[],r=(e=T(e)).length,n=b,o=0,i=v,a=!0,s=!1,c=void 0;try{for(var u,l=e[Symbol.iterator]();!(a=(u=l.next()).done);a=!0){var f=u.value;f<128&&t.push(C(f))}}catch(e){s=!0,c=e}finally{try{!a&&l.return&&l.return()}finally{if(s)throw c}}var g=t.length,y=g;for(g&&t.push(E);y<r;){var w=h,x=!0,S=!1,A=void 0;try{for(var k,P=e[Symbol.iterator]();!(x=(k=P.next()).done);x=!0){var O=k.value;O>=n&&O<w&&(w=O)}}catch(e){S=!0,A=e}finally{try{!x&&P.return&&P.return()}finally{if(S)throw A}}var j=y+1;w-n>D((h-o)/j)&&F("overflow"),o+=(w-n)*j,n=w;var R=!0,B=!1,L=void 0;try{for(var N,M=e[Symbol.iterator]();!(R=(N=M.next()).done);R=!0){var H=N.value;if(H<n&&++o>h&&F("overflow"),H==n){for(var z=o,U=p;;U+=p){var $=U<=i?d:U>=i+m?m:U-i;if(z<$)break;var q=z-$,V=p-$;t.push(C(I($+q%V,0))),z=D(q/V)}t.push(C(I(z,0))),i=_(o,j,y==g),o=0,++y}}}catch(e){B=!0,L=e}finally{try{!R&&M.return&&M.return()}finally{if(B)throw L}}++o,++n}return t.join("")},L=function(e){return O(e,(function(e){return w.test(e)?R(e.slice(4).toLowerCase()):e}))},N=function(e){return O(e,(function(e){return x.test(e)?"xn--"+B(e):e}))},M={version:"2.1.0",ucs2:{decode:T,encode:function(e){return String.fromCodePoint.apply(String,f(e))}},decode:R,encode:B,toASCII:N,toUnicode:L},H={};function z(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function U(e){for(var t="",r=0,n=e.length;r<n;){var o=parseInt(e.substr(r+1,2),16);if(o<128)t+=String.fromCharCode(o),r+=3;else if(o>=194&&o<224){if(n-r>=6){var i=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((31&o)<<6|63&i)}else t+=e.substr(r,6);r+=6}else if(o>=224){if(n-r>=9){var a=parseInt(e.substr(r+4,2),16),s=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((15&o)<<12|(63&a)<<6|63&s)}else t+=e.substr(r,9);r+=9}else t+=e.substr(r,3),r+=3}return t}function $(e,t){function r(e){var r=U(e);return r.match(t.UNRESERVED)?r:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,r).replace(t.NOT_USERINFO,z).replace(t.PCT_ENCODED,o)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,z).replace(t.PCT_ENCODED,o)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,r).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,z).replace(t.PCT_ENCODED,o)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,z).replace(t.PCT_ENCODED,o)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,z).replace(t.PCT_ENCODED,o)),e}function q(e){return e.replace(/^0*(.*)/,"$1")||"0"}function V(e,t){var r=e.match(t.IPV4ADDRESS)||[],n=l(r,2)[1];return n?n.split(".").map(q).join("."):e}function G(e,t){var r=e.match(t.IPV6ADDRESS)||[],n=l(r,3),o=n[1],i=n[2];if(o){for(var a=o.toLowerCase().split("::").reverse(),s=l(a,2),c=s[0],u=s[1],f=u?u.split(":").map(q):[],h=c.split(":").map(q),p=t.IPV4ADDRESS.test(h[h.length-1]),d=p?7:8,m=h.length-d,g=Array(d),y=0;y<d;++y)g[y]=f[y]||h[m+y]||"";p&&(g[d-1]=V(g[d-1],t));var v=g.reduce((function(e,t,r){if(!t||"0"===t){var n=e[e.length-1];n&&n.index+n.length===r?n.length++:e.push({index:r,length:1})}return e}),[]).sort((function(e,t){return t.length-e.length}))[0],b=void 0;if(v&&v.length>1){var E=g.slice(0,v.index),w=g.slice(v.index+v.length);b=E.join(":")+"::"+w.join(":")}else b=g.join(":");return i&&(b+="%"+i),b}return e}var W=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Q=void 0==="".match(/(){0}/)[1];function K(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==t.iri?u:c;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var o=e.match(W);if(o){Q?(r.scheme=o[1],r.userinfo=o[3],r.host=o[4],r.port=parseInt(o[5],10),r.path=o[6]||"",r.query=o[7],r.fragment=o[8],isNaN(r.port)&&(r.port=o[5])):(r.scheme=o[1]||void 0,r.userinfo=-1!==e.indexOf("@")?o[3]:void 0,r.host=-1!==e.indexOf("//")?o[4]:void 0,r.port=parseInt(o[5],10),r.path=o[6]||"",r.query=-1!==e.indexOf("?")?o[7]:void 0,r.fragment=-1!==e.indexOf("#")?o[8]:void 0,isNaN(r.port)&&(r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?o[4]:void 0)),r.host&&(r.host=G(V(r.host,n),n)),void 0!==r.scheme||void 0!==r.userinfo||void 0!==r.host||void 0!==r.port||r.path||void 0!==r.query?void 0===r.scheme?r.reference="relative":void 0===r.fragment?r.reference="absolute":r.reference="uri":r.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==r.reference&&(r.error=r.error||"URI is not a "+t.reference+" reference.");var i=H[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||i&&i.unicodeSupport)$(r,n);else{if(r.host&&(t.domainHost||i&&i.domainHost))try{r.host=M.toASCII(r.host.replace(n.PCT_ENCODED,U).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}$(r,c)}i&&i.parse&&i.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}function Z(e,t){var r=!1!==t.iri?u:c,n=[];return void 0!==e.userinfo&&(n.push(e.userinfo),n.push("@")),void 0!==e.host&&n.push(G(V(String(e.host),r),r).replace(r.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(n.push(":"),n.push(String(e.port))),n.length?n.join(""):void 0}var Y=/^\.\.?\//,X=/^\/\.(\/|$)/,J=/^\/\.\.(\/|$)/,ee=/^\/?(?:.|\n)*?(?=\/|$)/;function te(e){for(var t=[];e.length;)if(e.match(Y))e=e.replace(Y,"");else if(e.match(X))e=e.replace(X,"/");else if(e.match(J))e=e.replace(J,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(ee);if(!r)throw new Error("Unexpected dot segment condition");var n=r[0];e=e.slice(n.length),t.push(n)}return t.join("")}function re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.iri?u:c,n=[],o=H[(t.scheme||e.scheme||"").toLowerCase()];if(o&&o.serialize&&o.serialize(e,t),e.host)if(r.IPV6ADDRESS.test(e.host));else if(t.domainHost||o&&o.domainHost)try{e.host=t.iri?M.toUnicode(e.host):M.toASCII(e.host.replace(r.PCT_ENCODED,U).toLowerCase())}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+r}$(e,r),"suffix"!==t.reference&&e.scheme&&(n.push(e.scheme),n.push(":"));var i=Z(e,t);if(void 0!==i&&("suffix"!==t.reference&&n.push("//"),n.push(i),e.path&&"/"!==e.path.charAt(0)&&n.push("/")),void 0!==e.path){var a=e.path;t.absolutePath||o&&o.absolutePath||(a=te(a)),void 0===i&&(a=a.replace(/^\/\//,"/%2F")),n.push(a)}return void 0!==e.query&&(n.push("?"),n.push(e.query)),void 0!==e.fragment&&(n.push("#"),n.push(e.fragment)),n.join("")}function ne(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={};return arguments[3]||(e=K(re(e,r),r),t=K(re(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(n.scheme=t.scheme,n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(t.path?("/"===t.path.charAt(0)?n.path=te(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:n.path=t.path:n.path="/"+t.path,n.path=te(n.path)),n.query=t.query):(n.path=e.path,void 0!==t.query?n.query=t.query:n.query=e.query),n.userinfo=e.userinfo,n.host=e.host,n.port=e.port),n.scheme=e.scheme),n.fragment=t.fragment,n}function oe(e,t,r){var n=a({scheme:"null"},r);return re(ne(K(e,n),K(t,n),n,!0),n)}function ie(e,t){return"string"==typeof e?e=re(K(e,t),t):"object"===n(e)&&(e=K(re(e,t),t)),e}function ae(e,t,r){return"string"==typeof e?e=re(K(e,r),r):"object"===n(e)&&(e=re(e,r)),"string"==typeof t?t=re(K(t,r),r):"object"===n(t)&&(t=re(t,r)),e===t}function se(e,t){return e&&e.toString().replace(t&&t.iri?u.ESCAPE:c.ESCAPE,z)}function ce(e,t){return e&&e.toString().replace(t&&t.iri?u.PCT_ENCODED:c.PCT_ENCODED,U)}var ue={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var r="https"===String(e.scheme).toLowerCase();return e.port!==(r?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},le={scheme:"https",domainHost:ue.domainHost,parse:ue.parse,serialize:ue.serialize};function fe(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var he={scheme:"ws",domainHost:!0,parse:function(e,t){var r=e;return r.secure=fe(r),r.resourceName=(r.path||"/")+(r.query?"?"+r.query:""),r.path=void 0,r.query=void 0,r},serialize:function(e,t){if(e.port!==(fe(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var r=e.resourceName.split("?"),n=l(r,2),o=n[0],i=n[1];e.path=o&&"/"!==o?o:void 0,e.query=i,e.resourceName=void 0}return e.fragment=void 0,e}},pe={scheme:"wss",domainHost:he.domainHost,parse:he.parse,serialize:he.serialize},de={},me="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ge="[0-9A-Fa-f]",ye=r(r("%[EFef]"+ge+"%"+ge+ge+"%"+ge+ge)+"|"+r("%[89A-Fa-f]"+ge+"%"+ge+ge)+"|"+r("%"+ge+ge)),ve="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",be=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),Ee="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",we=new RegExp(me,"g"),xe=new RegExp(ye,"g"),Se=new RegExp(t("[^]",ve,"[\\.]",'[\\"]',be),"g"),Ae=new RegExp(t("[^]",me,Ee),"g"),ke=Ae;function De(e){var t=U(e);return t.match(we)?t:e}var Ce={scheme:"mailto",parse:function(e,t){var r=e,n=r.to=r.path?r.path.split(","):[];if(r.path=void 0,r.query){for(var o=!1,i={},a=r.query.split("&"),s=0,c=a.length;s<c;++s){var u=a[s].split("=");switch(u[0]){case"to":for(var l=u[1].split(","),f=0,h=l.length;f<h;++f)n.push(l[f]);break;case"subject":r.subject=ce(u[1],t);break;case"body":r.body=ce(u[1],t);break;default:o=!0,i[ce(u[0],t)]=ce(u[1],t)}}o&&(r.headers=i)}r.query=void 0;for(var p=0,d=n.length;p<d;++p){var m=n[p].split("@");if(m[0]=ce(m[0]),t.unicodeSupport)m[1]=ce(m[1],t).toLowerCase();else try{m[1]=M.toASCII(ce(m[1],t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}n[p]=m.join("@")}return r},serialize:function(e,t){var r=e,n=i(e.to);if(n){for(var a=0,s=n.length;a<s;++a){var c=String(n[a]),u=c.lastIndexOf("@"),l=c.slice(0,u).replace(xe,De).replace(xe,o).replace(Se,z),f=c.slice(u+1);try{f=t.iri?M.toUnicode(f):M.toASCII(ce(f,t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}n[a]=l+"@"+f}r.path=n.join(",")}var h=e.headers=e.headers||{};e.subject&&(h.subject=e.subject),e.body&&(h.body=e.body);var p=[];for(var d in h)h[d]!==de[d]&&p.push(d.replace(xe,De).replace(xe,o).replace(Ae,z)+"="+h[d].replace(xe,De).replace(xe,o).replace(ke,z));return p.length&&(r.query=p.join("&")),r}},Fe=/^([^\:]+)\:(.*)/,Pe={scheme:"urn",parse:function(e,t){var r=e.path&&e.path.match(Fe),n=e;if(r){var o=t.scheme||n.scheme||"urn",i=r[1].toLowerCase(),a=r[2],s=o+":"+(t.nid||i),c=H[s];n.nid=i,n.nss=a,n.path=void 0,c&&(n=c.parse(n,t))}else n.error=n.error||"URN can not be parsed.";return n},serialize:function(e,t){var r=t.scheme||e.scheme||"urn",n=e.nid,o=r+":"+(t.nid||n),i=H[o];i&&(e=i.serialize(e,t));var a=e,s=e.nss;return a.path=(n||t.nid)+":"+s,a}},Oe=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Te={scheme:"urn:uuid",parse:function(e,t){var r=e;return r.uuid=r.nss,r.nss=void 0,t.tolerant||r.uuid&&r.uuid.match(Oe)||(r.error=r.error||"UUID is not valid."),r},serialize:function(e,t){var r=e;return r.nss=(e.uuid||"").toLowerCase(),r}};H[ue.scheme]=ue,H[le.scheme]=le,H[he.scheme]=he,H[pe.scheme]=pe,H[Ce.scheme]=Ce,H[Pe.scheme]=Pe,H[Te.scheme]=Te,e.SCHEMES=H,e.pctEncChar=z,e.pctDecChars=U,e.parse=K,e.removeDotSegments=te,e.serialize=re,e.resolveComponents=ne,e.resolve=oe,e.normalize=ie,e.equal=ae,e.escapeComponent=se,e.unescapeComponent=ce,Object.defineProperty(e,"__esModule",{value:!0})}(t)},8884:function(e,t,r){var n;/*! https://mths.be/punycode v1.3.2 by @mathias */e=r.nmd(e),function(o){t&&t.nodeType,e&&e.nodeType;var i="object"==typeof r.g&&r.g;i.global!==i&&i.window!==i&&i.self;var a,s=2147483647,c=36,u=/^xn--/,l=/[^\x20-\x7E]/,f=/[\x2E\u3002\uFF0E\uFF61]/g,h={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,d=String.fromCharCode;function m(e){throw RangeError(h[e])}function g(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function y(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+g((e=e.replace(f,".")).split("."),t).join(".")}function v(e){for(var t,r,n=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(r=e.charCodeAt(o++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),o--):n.push(t);return n}function b(e){return g(e,(function(e){var t="";return e>65535&&(t+=d((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=d(e)})).join("")}function E(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function w(e,t,r){var n=0;for(e=r?p(e/700):e>>1,e+=p(e/t);e>455;n+=c)e=p(e/35);return p(n+36*e/(e+38))}function x(e){var t,r,n,o,i,a,u,l,f,h,d,g=[],y=e.length,v=0,E=128,x=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&m("not-basic"),g.push(e.charCodeAt(n));for(o=r>0?r+1:0;o<y;){for(i=v,a=1,u=c;o>=y&&m("invalid-input"),((l=(d=e.charCodeAt(o++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:c)>=c||l>p((s-v)/a))&&m("overflow"),v+=l*a,!(l<(f=u<=x?1:u>=x+26?26:u-x));u+=c)a>p(s/(h=c-f))&&m("overflow"),a*=h;x=w(v-i,t=g.length+1,0==i),p(v/t)>s-E&&m("overflow"),E+=p(v/t),v%=t,g.splice(v++,0,E)}return b(g)}function S(e){var t,r,n,o,i,a,u,l,f,h,g,y,b,x,S,A=[];for(y=(e=v(e)).length,t=128,r=0,i=72,a=0;a<y;++a)(g=e[a])<128&&A.push(d(g));for(n=o=A.length,o&&A.push("-");n<y;){for(u=s,a=0;a<y;++a)(g=e[a])>=t&&g<u&&(u=g);for(u-t>p((s-r)/(b=n+1))&&m("overflow"),r+=(u-t)*b,t=u,a=0;a<y;++a)if((g=e[a])<t&&++r>s&&m("overflow"),g==t){for(l=r,f=c;!(l<(h=f<=i?1:f>=i+26?26:f-i));f+=c)S=l-h,x=c-h,A.push(d(E(h+S%x,0))),l=p(S/x);A.push(d(E(l,0))),i=w(r,b,n==o),r=0,++n}++r,++t}return A.join("")}a={version:"1.3.2",ucs2:{decode:v,encode:b},decode:x,encode:S,toASCII:function(e){return y(e,(function(e){return l.test(e)?"xn--"+S(e):e}))},toUnicode:function(e){return y(e,(function(e){return u.test(e)?x(e.slice(4).toLowerCase()):e}))}},void 0===(n=function(){return a}.call(t,r,t,e))||(e.exports=n)}()},4760:(e,t,r)=>{"use strict";var n=r(8884),o=r(569);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){o.isString(e)&&(e=b(e));return e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(u),f=["%","/","?",";","#"].concat(l),h=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=r(6541);function b(e,t,r){if(e&&o.isObject(e)&&e instanceof i)return e;var n=new i;return n.parse(e,t,r),n}i.prototype.parse=function(e,t,r){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),s=-1!==i&&i<e.indexOf("#")?"?":"#",u=e.split(s);u[0]=u[0].replace(/\\/g,"/");var b=e=u.join(s);if(b=b.trim(),!r&&1===e.split("#").length){var E=c.exec(b);if(E)return this.path=b,this.href=b,this.pathname=E[1],E[2]?(this.search=E[2],this.query=t?v.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=a.exec(b);if(w){var x=(w=w[0]).toLowerCase();this.protocol=x,b=b.substr(w.length)}if(r||w||b.match(/^\/\/[^@\/]+@[^@\/]+/)){var S="//"===b.substr(0,2);!S||w&&g[w]||(b=b.substr(2),this.slashes=!0)}if(!g[w]&&(S||w&&!y[w])){for(var A,k,D=-1,C=0;C<h.length;C++){-1!==(F=b.indexOf(h[C]))&&(-1===D||F<D)&&(D=F)}-1!==(k=-1===D?b.lastIndexOf("@"):b.lastIndexOf("@",D))&&(A=b.slice(0,k),b=b.slice(k+1),this.auth=decodeURIComponent(A)),D=-1;for(C=0;C<f.length;C++){var F;-1!==(F=b.indexOf(f[C]))&&(-1===D||F<D)&&(D=F)}-1===D&&(D=b.length),this.host=b.slice(0,D),b=b.slice(D),this.parseHost(),this.hostname=this.hostname||"";var P="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!P)for(var O=this.hostname.split(/\./),T=(C=0,O.length);C<T;C++){var j=O[C];if(j&&!j.match(p)){for(var I="",_=0,R=j.length;_<R;_++)j.charCodeAt(_)>127?I+="x":I+=j[_];if(!I.match(p)){var B=O.slice(0,C),L=O.slice(C+1),N=j.match(d);N&&(B.push(N[1]),L.unshift(N[2])),L.length&&(b="/"+L.join(".")+b),this.hostname=B.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=n.toASCII(this.hostname));var M=this.port?":"+this.port:"",H=this.hostname||"";this.host=H+M,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!m[x])for(C=0,T=l.length;C<T;C++){var z=l[C];if(-1!==b.indexOf(z)){var U=encodeURIComponent(z);U===z&&(U=escape(z)),b=b.split(z).join(U)}}var $=b.indexOf("#");-1!==$&&(this.hash=b.substr($),b=b.slice(0,$));var q=b.indexOf("?");if(-1!==q?(this.search=b.substr(q),this.query=b.substr(q+1),t&&(this.query=v.parse(this.query)),b=b.slice(0,q)):t&&(this.search="",this.query={}),b&&(this.pathname=b),y[x]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){M=this.pathname||"";var V=this.search||"";this.path=M+V}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,a="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(a=v.stringify(this.query));var s=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||y[t])&&!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),s&&"?"!==s.charAt(0)&&(s="?"+s),t+i+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+n},i.prototype.resolve=function(e){return this.resolveObject(b(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if(o.isString(e)){var t=new i;t.parse(e,!1,!0),e=t}for(var r=new i,n=Object.keys(this),a=0;a<n.length;a++){var s=n[a];r[s]=this[s]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var c=Object.keys(e),u=0;u<c.length;u++){var l=c[u];"protocol"!==l&&(r[l]=e[l])}return y[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!y[e.protocol]){for(var f=Object.keys(e),h=0;h<f.length;h++){var p=f[h];r[p]=e[p]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||g[e.protocol])r.pathname=e.pathname;else{for(var d=(e.pathname||"").split("/");d.length&&!(e.host=d.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),r.pathname=d.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var m=r.pathname||"",v=r.search||"";r.path=m+v}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var b=r.pathname&&"/"===r.pathname.charAt(0),E=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=E||b||r.host&&e.pathname,x=w,S=r.pathname&&r.pathname.split("/")||[],A=(d=e.pathname&&e.pathname.split("/")||[],r.protocol&&!y[r.protocol]);if(A&&(r.hostname="",r.port=null,r.host&&(""===S[0]?S[0]=r.host:S.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===d[0]?d[0]=e.host:d.unshift(e.host)),e.host=null),w=w&&(""===d[0]||""===S[0])),E)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,S=d;else if(d.length)S||(S=[]),S.pop(),S=S.concat(d),r.search=e.search,r.query=e.query;else if(!o.isNullOrUndefined(e.search)){if(A)r.hostname=r.host=S.shift(),(P=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=P.shift(),r.host=r.hostname=P.shift());return r.search=e.search,r.query=e.query,o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!S.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var k=S.slice(-1)[0],D=(r.host||e.host||S.length>1)&&("."===k||".."===k)||""===k,C=0,F=S.length;F>=0;F--)"."===(k=S[F])?S.splice(F,1):".."===k?(S.splice(F,1),C++):C&&(S.splice(F,1),C--);if(!w&&!x)for(;C--;C)S.unshift("..");!w||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),D&&"/"!==S.join("/").substr(-1)&&S.push("");var P,O=""===S[0]||S[0]&&"/"===S[0].charAt(0);A&&(r.hostname=r.host=O?"":S.length?S.shift():"",(P=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=P.shift(),r.host=r.hostname=P.shift()));return(w=w||r.host&&S.length)&&!O&&S.unshift(""),S.length?r.pathname=S.join("/"):(r.pathname=null,r.path=null),o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},i.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},569:e=>{"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},6579:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},7673:(e,t,r)=>{"use strict";var n=r(7740),o=r(8265),i=r(2505),a=r(387);function s(e){return e.call.bind(e)}var c="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,l=s(Object.prototype.toString),f=s(Number.prototype.valueOf),h=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(c)var d=s(BigInt.prototype.valueOf);if(u)var m=s(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"[object Map]"===l(e)}function v(e){return"[object Set]"===l(e)}function b(e){return"[object WeakMap]"===l(e)}function E(e){return"[object WeakSet]"===l(e)}function w(e){return"[object ArrayBuffer]"===l(e)}function x(e){return"undefined"!=typeof ArrayBuffer&&(w.working?w(e):e instanceof ArrayBuffer)}function S(e){return"[object DataView]"===l(e)}function A(e){return"undefined"!=typeof DataView&&(S.working?S(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=o,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||A(e)},t.isUint8Array=function(e){return"Uint8Array"===i(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===i(e)},t.isUint16Array=function(e){return"Uint16Array"===i(e)},t.isUint32Array=function(e){return"Uint32Array"===i(e)},t.isInt8Array=function(e){return"Int8Array"===i(e)},t.isInt16Array=function(e){return"Int16Array"===i(e)},t.isInt32Array=function(e){return"Int32Array"===i(e)},t.isFloat32Array=function(e){return"Float32Array"===i(e)},t.isFloat64Array=function(e){return"Float64Array"===i(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===i(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===i(e)},y.working="undefined"!=typeof Map&&y(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(y.working?y(e):e instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(v.working?v(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},E.working="undefined"!=typeof WeakSet&&E(new WeakSet),t.isWeakSet=function(e){return E(e)},w.working="undefined"!=typeof ArrayBuffer&&w(new ArrayBuffer),t.isArrayBuffer=x,S.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&S(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=A;var k="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function D(e){return"[object SharedArrayBuffer]"===l(e)}function C(e){return void 0!==k&&(void 0===D.working&&(D.working=D(new k)),D.working?D(e):e instanceof k)}function F(e){return g(e,f)}function P(e){return g(e,h)}function O(e){return g(e,p)}function T(e){return c&&g(e,d)}function j(e){return u&&g(e,m)}t.isSharedArrayBuffer=C,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===l(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===l(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===l(e)},t.isGeneratorObject=function(e){return"[object Generator]"===l(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===l(e)},t.isNumberObject=F,t.isStringObject=P,t.isBooleanObject=O,t.isBigIntObject=T,t.isSymbolObject=j,t.isBoxedPrimitive=function(e){return F(e)||P(e)||O(e)||T(e)||j(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(x(e)||C(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},1323:(e,t,r)=>{var n=r(7061),o=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},i=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(u(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,o=n.length,a=String(e).replace(i,(function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),s=n[r];r<o;s=n[++r])y(s)||!x(s)?a+=" "+s:a+=" "+u(s);return a},t.deprecate=function(e,r){if(void 0!==n&&!0===n.noDeprecation)return e;if(void 0===n)return function(){return t.deprecate(e,r).apply(this,arguments)};var o=!1;return function(){if(!o){if(n.throwDeprecation)throw new Error(r);n.traceDeprecation?console.trace(r):console.error(r),o=!0}return e.apply(this,arguments)}};var a={},s=/^$/;if(n.env.NODE_DEBUG){var c=n.env.NODE_DEBUG;c=c.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+c+"$","i")}function u(e,r){var n={seen:[],stylize:f};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(r)?n.showHidden=r:r&&t._extend(n,r),E(n.showHidden)&&(n.showHidden=!1),E(n.depth)&&(n.depth=2),E(n.colors)&&(n.colors=!1),E(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),h(n,e,n.depth)}function l(e,t){var r=u.styles[t];return r?"["+u.colors[r][0]+"m"+e+"["+u.colors[r][1]+"m":e}function f(e,t){return e}function h(e,r,n){if(e.customInspect&&r&&k(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var o=r.inspect(n,e);return b(o)||(o=h(e,o,n)),o}var i=function(e,t){if(E(t))return e.stylize("undefined","undefined");if(b(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(v(t))return e.stylize(""+t,"number");if(g(t))return e.stylize(""+t,"boolean");if(y(t))return e.stylize("null","null")}(e,r);if(i)return i;var a=Object.keys(r),s=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),A(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return p(r);if(0===a.length){if(k(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(w(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(S(r))return e.stylize(Date.prototype.toString.call(r),"date");if(A(r))return p(r)}var u,l="",f=!1,x=["{","}"];(m(r)&&(f=!0,x=["[","]"]),k(r))&&(l=" [Function"+(r.name?": "+r.name:"")+"]");return w(r)&&(l=" "+RegExp.prototype.toString.call(r)),S(r)&&(l=" "+Date.prototype.toUTCString.call(r)),A(r)&&(l=" "+p(r)),0!==a.length||f&&0!=r.length?n<0?w(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),u=f?function(e,t,r,n,o){for(var i=[],a=0,s=t.length;a<s;++a)O(t,String(a))?i.push(d(e,t,r,n,String(a),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(d(e,t,r,n,o,!0))})),i}(e,r,n,s,a):a.map((function(t){return d(e,r,n,s,t,f)})),e.seen.pop(),function(e,t,r){if(e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(u,l,x)):x[0]+l+x[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,n,o,i){var a,s,c;if((c=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),O(n,o)||(a="["+o+"]"),s||(e.seen.indexOf(c.value)<0?(s=y(r)?h(e,c.value,null):h(e,c.value,r-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),E(a)){if(i&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function m(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function y(e){return null===e}function v(e){return"number"==typeof e}function b(e){return"string"==typeof e}function E(e){return void 0===e}function w(e){return x(e)&&"[object RegExp]"===D(e)}function x(e){return"object"==typeof e&&null!==e}function S(e){return x(e)&&"[object Date]"===D(e)}function A(e){return x(e)&&("[object Error]"===D(e)||e instanceof Error)}function k(e){return"function"==typeof e}function D(e){return Object.prototype.toString.call(e)}function C(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!a[e])if(s.test(e)){var r=n.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){};return a[e]},t.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(7673),t.isArray=m,t.isBoolean=g,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=b,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=E,t.isRegExp=w,t.types.isRegExp=w,t.isObject=x,t.isDate=S,t.types.isDate=S,t.isError=A,t.types.isNativeError=A,t.isFunction=k,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(6579);var F=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(){var e=new Date,t=[C(e.getHours()),C(e.getMinutes()),C(e.getSeconds())].join(":");return[e.getDate(),F[e.getMonth()],t].join(" ")}function O(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",P(),t.format.apply(t,arguments))},t.inherits=r(87),t._extend=function(e,t){if(!t||!x(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var T="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function j(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(T&&e[T]){var t;if("function"!=typeof(t=e[T]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,T,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(e,n){e?r(e):t(n)}));try{e.apply(this,o)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),T&&Object.defineProperty(t,T,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,o(e))},t.promisify.custom=T,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var o=t.pop();if("function"!=typeof o)throw new TypeError("The last argument must be of type Function");var i=this,a=function(){return o.apply(i,arguments)};e.apply(this,t).then((function(e){n.nextTick(a.bind(null,null,e))}),(function(e){n.nextTick(j.bind(null,e,a))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,o(e)),t}},2505:(e,t,r)=>{"use strict";var n=r(5278),o=r(973),i=r(2737),a=i("Object.prototype.toString"),s=r(698)(),c="undefined"==typeof globalThis?r.g:globalThis,u=o(),l=i("String.prototype.slice"),f={},h=r(8828),p=Object.getPrototypeOf;s&&h&&p&&n(u,(function(e){if("function"==typeof c[e]){var t=new c[e];if(Symbol.toStringTag in t){var r=p(t),n=h(r,Symbol.toStringTag);if(!n){var o=p(r);n=h(o,Symbol.toStringTag)}f[e]=n.get}}}));var d=r(387);e.exports=function(e){return!!d(e)&&(s&&Symbol.toStringTag in e?function(e){var t=!1;return n(f,(function(r,n){if(!t)try{var o=r.call(e);o===n&&(t=o)}catch(e){}})),t}(e):l(a(e),8,-1))}},7363:e=>{"use strict";e.exports=React},1533:e=>{"use strict";e.exports=ReactDOM},2611:e=>{"use strict";e.exports=_},134:e=>{"use strict";e.exports=_.isEqual},429:()=>{},973:(e,t,r)=>{"use strict";var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],o="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t<n.length;t++)"function"==typeof o[n[t]]&&(e[e.length]=n[t]);return e}},8828:(e,t,r)=>{"use strict";var n=r(8750)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},4649:(e,t,r)=>{"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{Z:()=>n})},5773:(e,t,r)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}r.d(t,{Z:()=>n})},189:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(4649);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}},669:(e,t,r)=>{"use strict";function n(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}r.d(t,{Z:()=>n})},9477:(e,t,r)=>{"use strict";r.d(t,{T:()=>o});const n=document.createElement("i");function o(e){const t="&"+e+";";n.innerHTML=t;const r=n.textContent;return(59!==r.charCodeAt(r.length-1)||"semi"===e)&&(r!==t&&r)}},2268:(e,t,r)=>{"use strict";r.r(t),r.d(t,{blockquote:()=>a});var n=r(5471),o=r(4671),i=r(2343);function a(e,t,r,a){const c=r.enter("blockquote"),u=(0,i.j)(a);u.move("> "),u.shift(2);const l=(0,o.Q)((0,n.K)(e,r,u.current()),s);return c(),l}function s(e,t,r){return">"+(r?"":" ")+e}},6156:(e,t,r)=>{"use strict";r.r(t),r.d(t,{heading:()=>c});var n=r(3428),o=r(7918),i=r(8717);var a=r(7567),s=r(2343);function c(e,t,r,c){const u=Math.max(Math.min(6,e.depth||1),1),l=(0,s.j)(c);if(function(e,t){let r=!1;return(0,n.visit)(e,(e=>{if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return r=!0,o.BK})),Boolean((!e.depth||e.depth<3)&&(0,i.B)(e)&&(t.options.setext||r))}(e,r)){const t=r.enter("headingSetext"),n=r.enter("phrasing"),o=(0,a.p)(e,r,{...l.current(),before:"\n",after:"\n"});return n(),t(),o+"\n"+(1===u?"=":"-").repeat(o.length-(Math.max(o.lastIndexOf("\r"),o.lastIndexOf("\n"))+1))}const f="#".repeat(u),h=r.enter("headingAtx"),p=r.enter("phrasing");l.move(f+" ");let d=(0,a.p)(e,r,{before:"# ",after:"\n",...l.current()});return/^[\t ]/.test(d)&&(d="&#x"+d.charCodeAt(0).toString(16).toUpperCase()+";"+d.slice(1)),d=d?f+" "+d:f,r.options.closeAtx&&(d+=" "+f),p(),h(),d}},8627:(e,t,r)=>{"use strict";r.r(t),r.d(t,{image:()=>a});var n=r(1481),o=r(3316),i=r(2343);function a(e,t,r,a){const s=(0,n.l)(r),c='"'===s?"Quote":"Apostrophe",u=r.enter("image");let l=r.enter("label");const f=(0,i.j)(a);let h=f.move("![");return h+=f.move((0,o.T)(r,e.alt,{before:h,after:"]",...f.current()})),h+=f.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),h+=f.move("<"),h+=f.move((0,o.T)(r,e.url,{before:h,after:">",...f.current()})),h+=f.move(">")):(l=r.enter("destinationRaw"),h+=f.move((0,o.T)(r,e.url,{before:h,after:e.title?" ":")",...f.current()}))),l(),e.title&&(l=r.enter("title"+c),h+=f.move(" "+s),h+=f.move((0,o.T)(r,e.title,{before:h,after:s,...f.current()})),h+=f.move(s),l()),h+=f.move(")"),u(),h}a.peek=function(){return"!"}},2848:(e,t,r)=>{"use strict";r.r(t),r.d(t,{paragraph:()=>o});var n=r(7567);function o(e,t,r,o){const i=r.enter("paragraph"),a=r.enter("phrasing"),s=(0,n.p)(e,r,o);return a(),i(),s}},1481:(e,t,r)=>{"use strict";function n(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}r.d(t,{l:()=>n})},5471:(e,t,r)=>{"use strict";r.d(t,{K:()=>o});var n=r(2343);function o(e,t,r){const o=t.indexStack,i=e.children||[],a=(0,n.j)(r),s=[];let c=-1;for(o.push(-1);++c<i.length;){const r=i[c];o[o.length-1]=c,s.push(a.move(t.handle(r,e,t,{before:"\n",after:"\n",...a.current()}))),"list"!==r.type&&(t.bulletLastUsed=void 0),c<i.length-1&&s.push(a.move(u(r,i[c+1])))}return o.pop(),s.join("");function u(r,n){let o=t.join.length;for(;o--;){const i=t.join[o](r,n,e,t);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"}}},7567:(e,t,r)=>{"use strict";r.d(t,{p:()=>o});var n=r(2343);function o(e,t,r){const o=t.indexStack,i=e.children||[],a=[];let s=-1,c=r.before;o.push(-1);let u=(0,n.j)(r);for(;++s<i.length;){const l=i[s];let f;if(o[o.length-1]=s,s+1<i.length){let r=t.handle.handlers[i[s+1].type];r&&r.peek&&(r=r.peek),f=r?r(i[s+1],e,t,{before:"",after:"",...u.current()}).charAt(0):""}else f=r.after;a.length>0&&("\r"===c||"\n"===c)&&"html"===l.type&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/," "),c=" ",u=(0,n.j)(r),u.move(a.join(""))),a.push(u.move(t.handle(l,e,t,{...u.current(),before:c,after:f}))),c=a[a.length-1].slice(-1)}return o.pop(),a.join("")}},4671:(e,t,r)=>{"use strict";r.d(t,{Q:()=>o});const n=/\r?\n|\r/g;function o(e,t){const r=[];let o,i=0,a=0;for(;o=n.exec(e);)s(e.slice(i,o.index)),r.push(o[0]),i=o.index+o[0].length,a++;return s(e.slice(i)),r.join("");function s(e){r.push(t(e,a,!e))}}},7866:(e,t,r)=>{"use strict";function n(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}r.d(t,{T:()=>n})},3316:(e,t,r)=>{"use strict";r.d(t,{T:()=>a});var n=r(7866);function o(e,t){return i(e,t.inConstruct,!0)&&!i(e,t.notInConstruct,!1)}function i(e,t,r){if(!t)return r;"string"==typeof t&&(t=[t]);let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function a(e,t,r){const i=(r.before||"")+(t||"")+(r.after||""),a=[],u=[],l={};let f=-1;for(;++f<e.unsafe.length;){const t=e.unsafe[f];if(!o(e.stack,t))continue;const r=(0,n.T)(t);let s;for(;s=r.exec(i);){const e="before"in t||Boolean(t.atBreak),r="after"in t,n=s.index+(e?s[1].length:0);a.includes(n)?(l[n].before&&!e&&(l[n].before=!1),l[n].after&&!r&&(l[n].after=!1)):(a.push(n),l[n]={before:e,after:r})}}a.sort(s);let h=r.before?r.before.length:0;const p=i.length-(r.after?r.after.length:0);for(f=-1;++f<a.length;){const e=a[f];e<h||e>=p||(e+1<p&&a[f+1]===e+1&&l[e].after&&!l[e+1].before&&!l[e+1].after||a[f-1]===e-1&&l[e].before&&!l[e-1].before&&!l[e-1].after||(h!==e&&u.push(c(i.slice(h,e),"\\")),h=e,!/[!-/:-@[-`{-~]/.test(i.charAt(e))||r.encode&&r.encode.includes(i.charAt(e))?(u.push("&#x"+i.charCodeAt(e).toString(16).toUpperCase()+";"),h++):u.push("\\")))}return u.push(c(i.slice(h,p),r.after)),u.join("")}function s(e,t){return e-t}function c(e,t){const r=/\\(?=[!-/:-@[-`{-~])/g,n=[],o=[],i=e+t;let a,s=-1,c=0;for(;a=r.exec(i);)n.push(a.index);for(;++s<n.length;)c!==n[s]&&o.push(e.slice(c,n[s])),o.push("\\"),c=n[s];return o.push(e.slice(c)),o.join("")}},2343:(e,t,r)=>{"use strict";function n(e){const t=e||{},r=t.now||{};let n=t.lineShift||0,o=r.line||1,i=r.column||1;return{move:function(e=""){const t=e.split(/\r?\n|\r/g),r=t[t.length-1];return o+=t.length-1,i=1===t.length?i+r.length:1+r.length+n,e},current:function(){return{now:{line:o,column:i},lineShift:n}},shift:function(e){n+=e}}}r.d(t,{j:()=>n})},8717:(e,t,r)=>{"use strict";function n(e,t){var{includeImageAlt:r=!0}=t||{};return o(e,r)}function o(e,t){return e&&"object"==typeof e&&(e.value||(t?e.alt:"")||"children"in e&&i(e.children,t)||Array.isArray(e)&&i(e,t))||""}function i(e,t){for(var r=[],n=-1;++n<e.length;)r[n]=o(e[n],t);return r.join("")}r.d(t,{B:()=>n})},9531:(e,t,r)=>{"use strict";r.r(t),r.d(t,{attention:()=>n.v,autolink:()=>o.j,blankLine:()=>i.w,blockQuote:()=>a.m,characterEscape:()=>s.L,characterReference:()=>c.u,codeFenced:()=>u._,codeIndented:()=>l.S,codeText:()=>f.h,content:()=>h.k,definition:()=>p.D,hardBreakEscape:()=>d.R,headingAtx:()=>m.Z,htmlFlow:()=>g.P,htmlText:()=>y.L,labelEnd:()=>v.Z,labelStartImage:()=>b.C,labelStartLink:()=>E.F,lineEnding:()=>w.g,list:()=>x.p,setextUnderline:()=>S.C,thematicBreak:()=>A.C});var n=r(8415),o=r(7444),i=r(2929),a=r(7207),s=r(1687),c=r(2810),u=r(4897),l=r(2535),f=r(5180),h=r(6814),p=r(4882),d=r(6100),m=r(5528),g=r(5198),y=r(5890),v=r(8966),b=r(5365),E=r(5856),w=r(890),x=r(4618),S=r(6263),A=r(8038)},8415:(e,t,r)=>{"use strict";r.d(t,{v:()=>a});var n=r(8300),o=r(3886),i=r(3879);const a={name:"attention",tokenize:function(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=(0,o.r)(n);let a;return function(t){return e.enter("attentionSequence"),a=t,s(t)};function s(c){if(c===a)return e.consume(c),s;const u=e.exit("attentionSequence"),l=(0,o.r)(c),f=!l||2===l&&i||r.includes(c),h=!i||2===i&&l||r.includes(n);return u._open=Boolean(42===a?f:f&&(i||!h)),u._close=Boolean(42===a?h:h&&(l||!f)),t(c)}},resolveAll:function(e,t){let r,o,a,c,u,l,f,h,p=-1;for(;++p<e.length;)if("enter"===e[p][0]&&"attentionSequence"===e[p][1].type&&e[p][1]._close)for(r=p;r--;)if("exit"===e[r][0]&&"attentionSequence"===e[r][1].type&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[p][1]).charCodeAt(0)){if((e[r][1]._close||e[p][1]._open)&&(e[p][1].end.offset-e[p][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[p][1].end.offset-e[p][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[p][1].end.offset-e[p][1].start.offset>1?2:1;const d=Object.assign({},e[r][1].end),m=Object.assign({},e[p][1].start);s(d,-l),s(m,l),c={type:l>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},u={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[p][1].start),end:m},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[p][1].start)},o={type:l>1?"strong":"emphasis",start:Object.assign({},c.start),end:Object.assign({},u.end)},e[r][1].end=Object.assign({},c.start),e[p][1].start=Object.assign({},u.end),f=[],e[r][1].end.offset-e[r][1].start.offset&&(f=(0,n.V)(f,[["enter",e[r][1],t],["exit",e[r][1],t]])),f=(0,n.V)(f,[["enter",o,t],["enter",c,t],["exit",c,t],["enter",a,t]]),f=(0,n.V)(f,(0,i.C)(t.parser.constructs.insideSpan.null,e.slice(r+1,p),t)),f=(0,n.V)(f,[["exit",a,t],["enter",u,t],["exit",u,t],["exit",o,t]]),e[p][1].end.offset-e[p][1].start.offset?(h=2,f=(0,n.V)(f,[["enter",e[p][1],t],["exit",e[p][1],t]])):h=0,(0,n.d)(e,r-1,p-r+3,f),p=r+f.length-h-2;break}p=-1;for(;++p<e.length;)"attentionSequence"===e[p][1].type&&(e[p][1].type="data");return e}};function s(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}},7444:(e,t,r)=>{"use strict";r.d(t,{j:()=>o});var n=r(488);const o={name:"autolink",tokenize:function(e,t,r){let o=1;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return(0,n.asciiAlpha)(t)?(e.consume(t),a):(0,n.asciiAtext)(t)?u(t):r(t)}function a(e){return 43===e||45===e||46===e||(0,n.asciiAlphanumeric)(e)?s(e):u(e)}function s(t){return 58===t?(e.consume(t),c):(43===t||45===t||46===t||(0,n.asciiAlphanumeric)(t))&&o++<32?(e.consume(t),s):u(t)}function c(t){return 62===t?(e.exit("autolinkProtocol"),p(t)):null===t||32===t||60===t||(0,n.asciiControl)(t)?r(t):(e.consume(t),c)}function u(t){return 64===t?(e.consume(t),o=0,l):(0,n.asciiAtext)(t)?(e.consume(t),u):r(t)}function l(e){return(0,n.asciiAlphanumeric)(e)?f(e):r(e)}function f(t){return 46===t?(e.consume(t),o=0,l):62===t?(e.exit("autolinkProtocol").type="autolinkEmail",p(t)):h(t)}function h(t){return(45===t||(0,n.asciiAlphanumeric)(t))&&o++<63?(e.consume(t),45===t?h:f):r(t)}function p(r){return e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t}}}},2929:(e,t,r)=>{"use strict";r.d(t,{w:()=>i});var n=r(4014),o=r(488);const i={tokenize:function(e,t,r){return(0,n.factorySpace)(e,(function(e){return null===e||(0,o.markdownLineEnding)(e)?t(e):r(e)}),"linePrefix")},partial:!0}},7207:(e,t,r)=>{"use strict";r.d(t,{m:()=>i});var n=r(4014),o=r(488);const i={name:"blockQuote",tokenize:function(e,t,r){const n=this;return function(t){if(62===t){const r=n.containerState;return r.open||(e.enter("blockQuote",{_container:!0}),r.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return r(t)};function i(r){return(0,o.markdownSpace)(r)?(e.enter("blockQuotePrefixWhitespace"),e.consume(r),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(r))}},continuation:{tokenize:function(e,t,r){return(0,n.factorySpace)(e,e.attempt(i,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},exit:function(e){e.exit("blockQuote")}}},1687:(e,t,r)=>{"use strict";r.d(t,{L:()=>o});var n=r(488);const o={name:"characterEscape",tokenize:function(e,t,r){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),o};function o(o){return(0,n.asciiPunctuation)(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(o)}}}},2810:(e,t,r)=>{"use strict";r.d(t,{u:()=>i});var n=r(9477),o=r(488);const i={name:"characterReference",tokenize:function(e,t,r){const i=this;let a,s,c=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),u};function u(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),a=31,s=o.asciiAlphanumeric,f(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=o.asciiHexDigit,f):(e.enter("characterReferenceValue"),a=7,s=o.asciiDigit,f(t))}function f(u){let l;return 59===u&&c?(l=e.exit("characterReferenceValue"),s!==o.asciiAlphanumeric||(0,n.T)(i.sliceSerialize(l))?(e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):r(u)):s(u)&&c++<a?(e.consume(u),f):r(u)}}}},4897:(e,t,r)=>{"use strict";r.d(t,{_:()=>i});var n=r(4014),o=r(488);const i={name:"codeFenced",tokenize:function(e,t,r){const i=this,a={tokenize:function(e,t,r){let i=0;return(0,n.factorySpace)(e,a,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function a(t){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(t)}function s(t){return t===l?(e.consume(t),i++,s):i<f?r(t):(e.exit("codeFencedFenceSequence"),(0,n.factorySpace)(e,c,"whitespace")(t))}function c(n){return null===n||(0,o.markdownLineEnding)(n)?(e.exit("codeFencedFence"),t(n)):r(n)}},partial:!0},s={tokenize:function(e,t,r){const n=this;return o;function o(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i}function i(e){return n.parser.lazy[n.now().line]?r(e):t(e)}},partial:!0},c=this.events[this.events.length-1],u=c&&"linePrefix"===c[1].type?c[2].sliceSerialize(c[1],!0).length:0;let l,f=0;return function(t){return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l=t,h(t)};function h(t){return t===l?(e.consume(t),f++,h):(e.exit("codeFencedFenceSequence"),f<3?r(t):(0,n.factorySpace)(e,p,"whitespace")(t))}function p(t){return null===t||(0,o.markdownLineEnding)(t)?y(t):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return null===t||(0,o.markdownLineEndingOrSpace)(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),(0,n.factorySpace)(e,m,"whitespace")(t)):96===t&&t===l?r(t):(e.consume(t),d)}function m(t){return null===t||(0,o.markdownLineEnding)(t)?y(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(t))}function g(t){return null===t||(0,o.markdownLineEnding)(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),y(t)):96===t&&t===l?r(t):(e.consume(t),g)}function y(r){return e.exit("codeFencedFence"),i.interrupt?t(r):v(r)}function v(t){return null===t?E(t):(0,o.markdownLineEnding)(t)?e.attempt(s,e.attempt(a,E,u?(0,n.factorySpace)(e,v,"linePrefix",u+1):v),E)(t):(e.enter("codeFlowValue"),b(t))}function b(t){return null===t||(0,o.markdownLineEnding)(t)?(e.exit("codeFlowValue"),v(t)):(e.consume(t),b)}function E(r){return e.exit("codeFenced"),t(r)}},concrete:!0}},2535:(e,t,r)=>{"use strict";r.d(t,{S:()=>i});var n=r(4014),o=r(488);const i={name:"codeIndented",tokenize:function(e,t,r){const i=this;return function(t){return e.enter("codeIndented"),(0,n.factorySpace)(e,s,"linePrefix",5)(t)};function s(e){const t=i.events[i.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?c(e):r(e)}function c(t){return null===t?l(t):(0,o.markdownLineEnding)(t)?e.attempt(a,c,l)(t):(e.enter("codeFlowValue"),u(t))}function u(t){return null===t||(0,o.markdownLineEnding)(t)?(e.exit("codeFlowValue"),c(t)):(e.consume(t),u)}function l(r){return e.exit("codeIndented"),t(r)}}},a={tokenize:function(e,t,r){const i=this;return a;function a(t){return i.parser.lazy[i.now().line]?r(t):(0,o.markdownLineEnding)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):(0,n.factorySpace)(e,s,"linePrefix",5)(t)}function s(e){const n=i.events[i.events.length-1];return n&&"linePrefix"===n[1].type&&n[2].sliceSerialize(n[1],!0).length>=4?t(e):(0,o.markdownLineEnding)(e)?a(e):r(e)}},partial:!0}},5180:(e,t,r)=>{"use strict";r.d(t,{h:()=>o});var n=r(488);const o={name:"codeText",tokenize:function(e,t,r){let o,i,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),s(t)};function s(t){return 96===t?(e.consume(t),a++,s):(e.exit("codeTextSequence"),c(t))}function c(t){return null===t?r(t):96===t?(i=e.enter("codeTextSequence"),o=0,l(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),c):(0,n.markdownLineEnding)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),c):(e.enter("codeTextData"),u(t))}function u(t){return null===t||32===t||96===t||(0,n.markdownLineEnding)(t)?(e.exit("codeTextData"),c(t)):(e.consume(t),u)}function l(r){return 96===r?(e.consume(r),o++,l):o===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(r)):(i.type="codeTextData",u(r))}},resolve:function(e){let t,r,n=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[n][1].type&&"space"!==e[n][1].type))for(t=o;++t<n;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[n][1].type="codeTextPadding",o+=2,n-=2;break}t=o-1,n++;for(;++t<=n;)void 0===r?t!==n&&"lineEnding"!==e[t][1].type&&(r=t):t!==n&&"lineEnding"!==e[t][1].type||(e[r][1].type="codeTextData",t!==r+2&&(e[r][1].end=e[t-1][1].end,e.splice(r+2,t-r-2),n-=t-r-2,t=r+2),r=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}}},6814:(e,t,r)=>{"use strict";r.d(t,{k:()=>a});var n=r(4014),o=r(488),i=r(2988);const a={tokenize:function(e,t){let r;return function(t){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),n(t)};function n(t){return null===t?i(t):(0,o.markdownLineEnding)(t)?e.check(s,a,i)(t):(e.consume(t),n)}function i(r){return e.exit("chunkContent"),e.exit("content"),t(r)}function a(t){return e.consume(t),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,n}},resolve:function(e){return(0,i._)(e),e}},s={tokenize:function(e,t,r){const i=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,n.factorySpace)(e,a,"linePrefix")};function a(n){if(null===n||(0,o.markdownLineEnding)(n))return r(n);const a=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(n):e.interrupt(i.parser.constructs.flow,r,t)(n)}},partial:!0}},4882:(e,t,r)=>{"use strict";r.d(t,{D:()=>l});var n=r(917),o=r(7504),i=r(4014),a=r(1559),s=r(6096),c=r(2493),u=r(488);const l={name:"definition",tokenize:function(e,t,r){const a=this;let l;return function(t){return e.enter("definition"),o.factoryLabel.call(a,e,h,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function h(t){return l=(0,c.normalizeIdentifier)(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),(0,s.factoryWhitespace)(e,(0,n.factoryDestination)(e,e.attempt(f,(0,i.factorySpace)(e,p,"whitespace"),(0,i.factorySpace)(e,p,"whitespace")),r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):r(t)}function p(n){return null===n||(0,u.markdownLineEnding)(n)?(e.exit("definition"),a.parser.defined.includes(l)||a.parser.defined.push(l),t(n)):r(n)}}},f={tokenize:function(e,t,r){return function(t){return(0,u.markdownLineEndingOrSpace)(t)?(0,s.factoryWhitespace)(e,n)(t):r(t)};function n(t){return 34===t||39===t||40===t?(0,a.factoryTitle)(e,(0,i.factorySpace)(e,o,"whitespace"),r,"definitionTitle","definitionTitleMarker","definitionTitleString")(t):r(t)}function o(e){return null===e||(0,u.markdownLineEnding)(e)?t(e):r(e)}},partial:!0}},6100:(e,t,r)=>{"use strict";r.d(t,{R:()=>o});var n=r(488);const o={name:"hardBreakEscape",tokenize:function(e,t,r){return function(t){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(t),o};function o(o){return(0,n.markdownLineEnding)(o)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(o)):r(o)}}}},5528:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(4014),o=r(488),i=r(8300);const a={name:"headingAtx",tokenize:function(e,t,r){const i=this;let a=0;return function(t){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),s(t)};function s(n){return 35===n&&a++<6?(e.consume(n),s):null===n||(0,o.markdownLineEndingOrSpace)(n)?(e.exit("atxHeadingSequence"),i.interrupt?t(n):c(n)):r(n)}function c(r){return 35===r?(e.enter("atxHeadingSequence"),u(r)):null===r||(0,o.markdownLineEnding)(r)?(e.exit("atxHeading"),t(r)):(0,o.markdownSpace)(r)?(0,n.factorySpace)(e,c,"whitespace")(r):(e.enter("atxHeadingText"),l(r))}function u(t){return 35===t?(e.consume(t),u):(e.exit("atxHeadingSequence"),c(t))}function l(t){return null===t||35===t||(0,o.markdownLineEndingOrSpace)(t)?(e.exit("atxHeadingText"),c(t)):(e.consume(t),l)}},resolve:function(e,t){let r,n,o=e.length-2,a=3;"whitespace"===e[a][1].type&&(a+=2);o-2>a&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(a===o-1||o-4>a&&"whitespace"===e[o-2][1].type)&&(o-=a+1===o?2:4);o>a&&(r={type:"atxHeadingText",start:e[a][1].start,end:e[o][1].end},n={type:"chunkText",start:e[a][1].start,end:e[o][1].end,contentType:"text"},(0,i.d)(e,a,o-a+1,[["enter",r,t],["enter",n,t],["exit",n,t],["exit",r,t]]));return e}}},5198:(e,t,r)=>{"use strict";r.d(t,{P:()=>s});var n=r(488);const o=["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","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],i=["pre","script","style","textarea"];var a=r(2929);const s={name:"htmlFlow",tokenize:function(e,t,r){const a=this;let s,u,l,f,h;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),p};function p(o){return 33===o?(e.consume(o),d):47===o?(e.consume(o),y):63===o?(e.consume(o),s=3,a.interrupt?t:N):(0,n.asciiAlpha)(o)?(e.consume(o),l=String.fromCharCode(o),u=!0,v):r(o)}function d(o){return 45===o?(e.consume(o),s=2,m):91===o?(e.consume(o),s=5,l="CDATA[",f=0,g):(0,n.asciiAlpha)(o)?(e.consume(o),s=4,a.interrupt?t:N):r(o)}function m(n){return 45===n?(e.consume(n),a.interrupt?t:N):r(n)}function g(n){return n===l.charCodeAt(f++)?(e.consume(n),f===l.length?a.interrupt?t:O:g):r(n)}function y(t){return(0,n.asciiAlpha)(t)?(e.consume(t),l=String.fromCharCode(t),v):r(t)}function v(c){return null===c||47===c||62===c||(0,n.markdownLineEndingOrSpace)(c)?47!==c&&u&&i.includes(l.toLowerCase())?(s=1,a.interrupt?t(c):O(c)):o.includes(l.toLowerCase())?(s=6,47===c?(e.consume(c),b):a.interrupt?t(c):O(c)):(s=7,a.interrupt&&!a.parser.lazy[a.now().line]?r(c):u?w(c):E(c)):45===c||(0,n.asciiAlphanumeric)(c)?(e.consume(c),l+=String.fromCharCode(c),v):r(c)}function b(n){return 62===n?(e.consume(n),a.interrupt?t:O):r(n)}function E(t){return(0,n.markdownSpace)(t)?(e.consume(t),E):F(t)}function w(t){return 47===t?(e.consume(t),F):58===t||95===t||(0,n.asciiAlpha)(t)?(e.consume(t),x):(0,n.markdownSpace)(t)?(e.consume(t),w):F(t)}function x(t){return 45===t||46===t||58===t||95===t||(0,n.asciiAlphanumeric)(t)?(e.consume(t),x):S(t)}function S(t){return 61===t?(e.consume(t),A):(0,n.markdownSpace)(t)?(e.consume(t),S):w(t)}function A(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),h=t,k):(0,n.markdownSpace)(t)?(e.consume(t),A):(h=null,D(t))}function k(t){return null===t||(0,n.markdownLineEnding)(t)?r(t):t===h?(e.consume(t),C):(e.consume(t),k)}function D(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t||(0,n.markdownLineEndingOrSpace)(t)?S(t):(e.consume(t),D)}function C(e){return 47===e||62===e||(0,n.markdownSpace)(e)?w(e):r(e)}function F(t){return 62===t?(e.consume(t),P):r(t)}function P(t){return(0,n.markdownSpace)(t)?(e.consume(t),P):null===t||(0,n.markdownLineEnding)(t)?O(t):r(t)}function O(t){return 45===t&&2===s?(e.consume(t),_):60===t&&1===s?(e.consume(t),R):62===t&&4===s?(e.consume(t),M):63===t&&3===s?(e.consume(t),N):93===t&&5===s?(e.consume(t),L):!(0,n.markdownLineEnding)(t)||6!==s&&7!==s?null===t||(0,n.markdownLineEnding)(t)?T(t):(e.consume(t),O):e.check(c,M,T)(t)}function T(t){return e.exit("htmlFlowData"),j(t)}function j(t){return null===t?H(t):(0,n.markdownLineEnding)(t)?e.attempt({tokenize:I,partial:!0},j,H)(t):(e.enter("htmlFlowData"),O(t))}function I(e,t,r){return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),n};function n(e){return a.parser.lazy[a.now().line]?r(e):t(e)}}function _(t){return 45===t?(e.consume(t),N):O(t)}function R(t){return 47===t?(e.consume(t),l="",B):O(t)}function B(t){return 62===t&&i.includes(l.toLowerCase())?(e.consume(t),M):(0,n.asciiAlpha)(t)&&l.length<8?(e.consume(t),l+=String.fromCharCode(t),B):O(t)}function L(t){return 93===t?(e.consume(t),N):O(t)}function N(t){return 62===t?(e.consume(t),M):45===t&&2===s?(e.consume(t),N):O(t)}function M(t){return null===t||(0,n.markdownLineEnding)(t)?(e.exit("htmlFlowData"),H(t)):(e.consume(t),M)}function H(r){return e.exit("htmlFlow"),t(r)}},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},concrete:!0},c={tokenize:function(e,t,r){return function(n){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),e.attempt(a.w,t,r)}},partial:!0}},5890:(e,t,r)=>{"use strict";r.d(t,{L:()=>i});var n=r(4014),o=r(488);const i={name:"htmlText",tokenize:function(e,t,r){const i=this;let a,s,c,u;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),l};function l(t){return 33===t?(e.consume(t),f):47===t?(e.consume(t),A):63===t?(e.consume(t),x):(0,o.asciiAlpha)(t)?(e.consume(t),C):r(t)}function f(t){return 45===t?(e.consume(t),h):91===t?(e.consume(t),s="CDATA[",c=0,y):(0,o.asciiAlpha)(t)?(e.consume(t),w):r(t)}function h(t){return 45===t?(e.consume(t),p):r(t)}function p(t){return null===t||62===t?r(t):45===t?(e.consume(t),d):m(t)}function d(e){return null===e||62===e?r(e):m(e)}function m(t){return null===t?r(t):45===t?(e.consume(t),g):(0,o.markdownLineEnding)(t)?(u=m,R(t)):(e.consume(t),m)}function g(t){return 45===t?(e.consume(t),L):m(t)}function y(t){return t===s.charCodeAt(c++)?(e.consume(t),c===s.length?v:y):r(t)}function v(t){return null===t?r(t):93===t?(e.consume(t),b):(0,o.markdownLineEnding)(t)?(u=v,R(t)):(e.consume(t),v)}function b(t){return 93===t?(e.consume(t),E):v(t)}function E(t){return 62===t?L(t):93===t?(e.consume(t),E):v(t)}function w(t){return null===t||62===t?L(t):(0,o.markdownLineEnding)(t)?(u=w,R(t)):(e.consume(t),w)}function x(t){return null===t?r(t):63===t?(e.consume(t),S):(0,o.markdownLineEnding)(t)?(u=x,R(t)):(e.consume(t),x)}function S(e){return 62===e?L(e):x(e)}function A(t){return(0,o.asciiAlpha)(t)?(e.consume(t),k):r(t)}function k(t){return 45===t||(0,o.asciiAlphanumeric)(t)?(e.consume(t),k):D(t)}function D(t){return(0,o.markdownLineEnding)(t)?(u=D,R(t)):(0,o.markdownSpace)(t)?(e.consume(t),D):L(t)}function C(t){return 45===t||(0,o.asciiAlphanumeric)(t)?(e.consume(t),C):47===t||62===t||(0,o.markdownLineEndingOrSpace)(t)?F(t):r(t)}function F(t){return 47===t?(e.consume(t),L):58===t||95===t||(0,o.asciiAlpha)(t)?(e.consume(t),P):(0,o.markdownLineEnding)(t)?(u=F,R(t)):(0,o.markdownSpace)(t)?(e.consume(t),F):L(t)}function P(t){return 45===t||46===t||58===t||95===t||(0,o.asciiAlphanumeric)(t)?(e.consume(t),P):O(t)}function O(t){return 61===t?(e.consume(t),T):(0,o.markdownLineEnding)(t)?(u=O,R(t)):(0,o.markdownSpace)(t)?(e.consume(t),O):F(t)}function T(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),a=t,j):(0,o.markdownLineEnding)(t)?(u=T,R(t)):(0,o.markdownSpace)(t)?(e.consume(t),T):(e.consume(t),a=void 0,_)}function j(t){return t===a?(e.consume(t),I):null===t?r(t):(0,o.markdownLineEnding)(t)?(u=j,R(t)):(e.consume(t),j)}function I(e){return 62===e||47===e||(0,o.markdownLineEndingOrSpace)(e)?F(e):r(e)}function _(t){return null===t||34===t||39===t||60===t||61===t||96===t?r(t):62===t||(0,o.markdownLineEndingOrSpace)(t)?F(t):(e.consume(t),_)}function R(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,n.factorySpace)(e,B,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function B(t){return e.enter("htmlTextData"),u(t)}function L(n){return 62===n?(e.consume(n),e.exit("htmlTextData"),e.exit("htmlText"),t):r(n)}}}},8966:(e,t,r)=>{"use strict";r.d(t,{Z:()=>f});var n=r(917),o=r(7504),i=r(1559),a=r(6096),s=r(488),c=r(8300),u=r(2493),l=r(3879);const f={name:"labelEnd",tokenize:function(e,t,r){const n=this;let o,i,a=n.events.length;for(;a--;)if(("labelImage"===n.events[a][1].type||"labelLink"===n.events[a][1].type)&&!n.events[a][1]._balanced){o=n.events[a][1];break}return function(t){if(!o)return r(t);return o._inactive?c(t):(i=n.parser.defined.includes((0,u.normalizeIdentifier)(n.sliceSerialize({start:o.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s)};function s(r){return 40===r?e.attempt(h,t,i?t:c)(r):91===r?e.attempt(p,t,i?e.attempt(d,t,c):c)(r):i?t(r):c(r)}function c(e){return o._balanced=!0,r(e)}},resolveTo:function(e,t){let r,n,o,i,a=e.length,s=0;for(;a--;)if(r=e[a][1],n){if("link"===r.type||"labelLink"===r.type&&r._inactive)break;"enter"===e[a][0]&&"labelLink"===r.type&&(r._inactive=!0)}else if(o){if("enter"===e[a][0]&&("labelImage"===r.type||"labelLink"===r.type)&&!r._balanced&&(n=a,"labelLink"!==r.type)){s=2;break}}else"labelEnd"===r.type&&(o=a);const u={type:"labelLink"===e[n][1].type?"link":"image",start:Object.assign({},e[n][1].start),end:Object.assign({},e[e.length-1][1].end)},f={type:"label",start:Object.assign({},e[n][1].start),end:Object.assign({},e[o][1].end)},h={type:"labelText",start:Object.assign({},e[n+s+2][1].end),end:Object.assign({},e[o-2][1].start)};return i=[["enter",u,t],["enter",f,t]],i=(0,c.V)(i,e.slice(n+1,n+s+3)),i=(0,c.V)(i,[["enter",h,t]]),i=(0,c.V)(i,(0,l.C)(t.parser.constructs.insideSpan.null,e.slice(n+s+4,o-3),t)),i=(0,c.V)(i,[["exit",h,t],e[o-2],e[o-1],["exit",f,t]]),i=(0,c.V)(i,e.slice(o+1)),i=(0,c.V)(i,[["exit",u,t]]),(0,c.d)(e,n,e.length,i),e},resolveAll:function(e){let t,r=-1;for(;++r<e.length;)t=e[r][1],"labelImage"!==t.type&&"labelLink"!==t.type&&"labelEnd"!==t.type||(e.splice(r+1,"labelImage"===t.type?4:2),t.type="data",r++);return e}},h={tokenize:function(e,t,r){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),(0,a.factoryWhitespace)(e,o)};function o(t){return 41===t?l(t):(0,n.factoryDestination)(e,c,r,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function c(t){return(0,s.markdownLineEndingOrSpace)(t)?(0,a.factoryWhitespace)(e,u)(t):l(t)}function u(t){return 34===t||39===t||40===t?(0,i.factoryTitle)(e,(0,a.factoryWhitespace)(e,l),r,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):l(t)}function l(n){return 41===n?(e.enter("resourceMarker"),e.consume(n),e.exit("resourceMarker"),e.exit("resource"),t):r(n)}}},p={tokenize:function(e,t,r){const n=this;return function(t){return o.factoryLabel.call(n,e,i,r,"reference","referenceMarker","referenceString")(t)};function i(e){return n.parser.defined.includes((0,u.normalizeIdentifier)(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}}},d={tokenize:function(e,t,r){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),n};function n(n){return 93===n?(e.enter("referenceMarker"),e.consume(n),e.exit("referenceMarker"),e.exit("reference"),t):r(n)}}}},5365:(e,t,r)=>{"use strict";r.d(t,{C:()=>n});const n={name:"labelStartImage",tokenize:function(e,t,r){const n=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):r(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in n.parser.constructs?r(e):t(e)}},resolveAll:r(8966).Z.resolveAll}},5856:(e,t,r)=>{"use strict";r.d(t,{F:()=>n});const n={name:"labelStartLink",tokenize:function(e,t,r){const n=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 n.parser.constructs?r(e):t(e)}},resolveAll:r(8966).Z.resolveAll}},890:(e,t,r)=>{"use strict";r.d(t,{g:()=>o});var n=r(4014);const o={name:"lineEnding",tokenize:function(e,t){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),(0,n.factorySpace)(e,t,"linePrefix")}}}},4618:(e,t,r)=>{"use strict";r.d(t,{p:()=>s});var n=r(4014),o=r(488),i=r(2929),a=r(8038);const s={name:"list",tokenize:function(e,t,r){const n=this,s=n.events[n.events.length-1];let u=s&&"linePrefix"===s[1].type?s[2].sliceSerialize(s[1],!0).length:0,l=0;return function(t){const i=n.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!n.containerState.marker||t===n.containerState.marker:(0,o.asciiDigit)(t)){if(n.containerState.type||(n.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(a.C,r,h)(t):h(t);if(!n.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(t)}return r(t)};function f(t){return(0,o.asciiDigit)(t)&&++l<10?(e.consume(t),f):(!n.interrupt||l<2)&&(n.containerState.marker?t===n.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),h(t)):r(t)}function h(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||t,e.check(i.w,n.interrupt?r:p,e.attempt(c,m,d))}function p(e){return n.containerState.initialBlankLine=!0,u++,m(e)}function d(t){return(0,o.markdownSpace)(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),m):r(t)}function m(r){return n.containerState.size=u+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(r)}},continuation:{tokenize:function(e,t,r){const a=this;return a.containerState._closeFlow=void 0,e.check(i.w,(function(r){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,(0,n.factorySpace)(e,t,"listItemIndent",a.containerState.size+1)(r)}),(function(r){if(a.containerState.furtherBlankLines||!(0,o.markdownSpace)(r))return a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,c(r);return a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(u,t,c)(r)}));function c(o){return a.containerState._closeFlow=!0,a.interrupt=void 0,(0,n.factorySpace)(e,e.attempt(s,t,r),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)}},c={tokenize:function(e,t,r){const i=this;return(0,n.factorySpace)(e,(function(e){const n=i.events[i.events.length-1];return!(0,o.markdownSpace)(e)&&n&&"listItemPrefixWhitespace"===n[1].type?t(e):r(e)}),"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},u={tokenize:function(e,t,r){const o=this;return(0,n.factorySpace)(e,(function(e){const n=o.events[o.events.length-1];return n&&"listItemIndent"===n[1].type&&n[2].sliceSerialize(n[1],!0).length===o.containerState.size?t(e):r(e)}),"listItemIndent",o.containerState.size+1)},partial:!0}},6263:(e,t,r)=>{"use strict";r.d(t,{C:()=>i});var n=r(4014),o=r(488);const i={name:"setextUnderline",tokenize:function(e,t,r){const i=this;let a,s,c=i.events.length;for(;c--;)if("lineEnding"!==i.events[c][1].type&&"linePrefix"!==i.events[c][1].type&&"content"!==i.events[c][1].type){s="paragraph"===i.events[c][1].type;break}return function(t){if(!i.parser.lazy[i.now().line]&&(i.interrupt||s))return e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),a=t,u(t);return r(t)};function u(t){return t===a?(e.consume(t),u):(e.exit("setextHeadingLineSequence"),(0,n.factorySpace)(e,l,"lineSuffix")(t))}function l(n){return null===n||(0,o.markdownLineEnding)(n)?(e.exit("setextHeadingLine"),t(n)):r(n)}},resolveTo:function(e,t){let r,n,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){r=i;break}"paragraph"===e[i][1].type&&(n=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const a={type:"setextHeading",start:Object.assign({},e[n][1].start),end:Object.assign({},e[e.length-1][1].end)};e[n][1].type="setextHeadingText",o?(e.splice(n,0,["enter",a,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[o][1].end)):e[r][1]=a;return e.push(["exit",a,t]),e}}},8038:(e,t,r)=>{"use strict";r.d(t,{C:()=>i});var n=r(4014),o=r(488);const i={name:"thematicBreak",tokenize:function(e,t,r){let i,a=0;return function(t){return e.enter("thematicBreak"),i=t,s(t)};function s(u){return u===i?(e.enter("thematicBreakSequence"),c(u)):(0,o.markdownSpace)(u)?(0,n.factorySpace)(e,s,"whitespace")(u):a<3||null!==u&&!(0,o.markdownLineEnding)(u)?r(u):(e.exit("thematicBreak"),t(u))}function c(t){return t===i?(e.consume(t),a++,c):(e.exit("thematicBreakSequence"),s(t))}}}},917:(e,t,r)=>{"use strict";r.r(t),r.d(t,{factoryDestination:()=>o});var n=r(488);function o(e,t,r,o,i,a,s,c,u){const l=u||Number.POSITIVE_INFINITY;let f=0;return function(t){if(60===t)return e.enter(o),e.enter(i),e.enter(a),e.consume(t),e.exit(a),h;if(null===t||41===t||(0,n.asciiControl)(t))return r(t);return e.enter(o),e.enter(s),e.enter(c),e.enter("chunkString",{contentType:"string"}),m(t)};function h(r){return 62===r?(e.enter(a),e.consume(r),e.exit(a),e.exit(i),e.exit(o),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),p(r))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(c),h(t)):null===t||60===t||(0,n.markdownLineEnding)(t)?r(t):(e.consume(t),92===t?d:p)}function d(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function m(i){return 40===i?++f>l?r(i):(e.consume(i),m):41===i?f--?(e.consume(i),m):(e.exit("chunkString"),e.exit(c),e.exit(s),e.exit(o),t(i)):null===i||(0,n.markdownLineEndingOrSpace)(i)?f?r(i):(e.exit("chunkString"),e.exit(c),e.exit(s),e.exit(o),t(i)):(0,n.asciiControl)(i)?r(i):(e.consume(i),92===i?g:m)}function g(t){return 40===t||41===t||92===t?(e.consume(t),m):m(t)}}},7504:(e,t,r)=>{"use strict";r.r(t),r.d(t,{factoryLabel:()=>o});var n=r(488);function o(e,t,r,o,i,a){const s=this;let c,u=0;return function(t){return e.enter(o),e.enter(i),e.consume(t),e.exit(i),e.enter(a),l};function l(h){return null===h||91===h||93===h&&!c||94===h&&!u&&"_hiddenFootnoteSupport"in s.parser.constructs||u>999?r(h):93===h?(e.exit(a),e.enter(i),e.consume(h),e.exit(i),e.exit(o),t):(0,n.markdownLineEnding)(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),l):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(t){return null===t||91===t||93===t||(0,n.markdownLineEnding)(t)||u++>999?(e.exit("chunkString"),l(t)):(e.consume(t),c=c||!(0,n.markdownSpace)(t),92===t?h:f)}function h(t){return 91===t||92===t||93===t?(e.consume(t),u++,f):f(t)}}},4014:(e,t,r)=>{"use strict";r.r(t),r.d(t,{factorySpace:()=>o});var n=r(488);function o(e,t,r,o){const i=o?o-1:Number.POSITIVE_INFINITY;let a=0;return function(o){if((0,n.markdownSpace)(o))return e.enter(r),s(o);return t(o)};function s(o){return(0,n.markdownSpace)(o)&&a++<i?(e.consume(o),s):(e.exit(r),t(o))}}},1559:(e,t,r)=>{"use strict";r.r(t),r.d(t,{factoryTitle:()=>i});var n=r(4014),o=r(488);function i(e,t,r,i,a,s){let c;return function(t){return e.enter(i),e.enter(a),e.consume(t),e.exit(a),c=40===t?41:t,u};function u(r){return r===c?(e.enter(a),e.consume(r),e.exit(a),e.exit(i),t):(e.enter(s),l(r))}function l(t){return t===c?(e.exit(s),u(c)):null===t?r(t):(0,o.markdownLineEnding)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,n.factorySpace)(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return t===c||null===t||(0,o.markdownLineEnding)(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?h:f)}function h(t){return t===c||92===t?(e.consume(t),f):f(t)}}},6096:(e,t,r)=>{"use strict";r.r(t),r.d(t,{factoryWhitespace:()=>i});var n=r(4014),o=r(488);function i(e,t){let r;return function i(a){if((0,o.markdownLineEnding)(a))return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),r=!0,i;if((0,o.markdownSpace)(a))return(0,n.factorySpace)(e,i,r?"linePrefix":"lineSuffix")(a);return t(a)}}},488:(e,t,r)=>{"use strict";r.r(t),r.d(t,{asciiAlpha:()=>n,asciiAlphanumeric:()=>a,asciiAtext:()=>c,asciiControl:()=>u,asciiDigit:()=>o,asciiHexDigit:()=>i,asciiPunctuation:()=>s,markdownLineEnding:()=>f,markdownLineEndingOrSpace:()=>l,markdownSpace:()=>h,unicodePunctuation:()=>d,unicodeWhitespace:()=>p});const n=m(/[A-Za-z]/),o=m(/\d/),i=m(/[\dA-Fa-f]/),a=m(/[\dA-Za-z]/),s=m(/[!-/:-@[-`{-~]/),c=m(/[#-'*+\--9=?A-Z^-~]/);function u(e){return null!==e&&(e<32||127===e)}function l(e){return null!==e&&(e<0||32===e)}function f(e){return null!==e&&e<-2}function h(e){return-2===e||-1===e||32===e}const p=m(/\s/),d=m(/[!-/:-@[-`{-~\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/);function m(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}},8300:(e,t,r)=>{"use strict";function n(e,t,r,n){const o=e.length;let i,a=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,r=r>0?r:0,n.length<1e4)i=Array.from(n),i.unshift(t,r),[].splice.apply(e,i);else for(r&&[].splice.apply(e,[t,r]);a<n.length;)i=n.slice(a,a+1e4),i.unshift(t,0),[].splice.apply(e,i),a+=1e4,t+=1e4}function o(e,t){return e.length>0?(n(e,e.length,0,t),e):t}r.d(t,{V:()=>o,d:()=>n})},3886:(e,t,r)=>{"use strict";r.d(t,{r:()=>o});var n=r(488);function o(e){return null===e||(0,n.markdownLineEndingOrSpace)(e)||(0,n.unicodeWhitespace)(e)?1:(0,n.unicodePunctuation)(e)?2:void 0}},4666:(e,t,r)=>{"use strict";r.d(t,{W:()=>i});var n=r(8300);const o={}.hasOwnProperty;function i(e){const t={};let r=-1;for(;++r<e.length;)a(t,e[r]);return t}function a(e,t){let r;for(r in t){const n=(o.call(e,r)?e[r]:void 0)||(e[r]={}),i=t[r];let a;for(a in i){o.call(n,a)||(n[a]=[]);const e=i[a];s(n[a],Array.isArray(e)?e:e?[e]:[])}}}function s(e,t){let r=-1;const o=[];for(;++r<t.length;)("after"===t[r].add?e:o).push(t[r]);(0,n.d)(e,0,0,o)}},8031:(e,t,r)=>{"use strict";function n(e,t){const r=Number.parseInt(e,t);return r<9||11===r||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||65535==(65535&r)||65534==(65535&r)||r>1114111?"�":String.fromCharCode(r)}r.d(t,{o:()=>n})},2116:(e,t,r)=>{"use strict";r.d(t,{v:()=>a});var n=r(9477),o=r(8031);const i=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function a(e){return e.replace(i,s)}function s(e,t,r){if(t)return t;if(35===r.charCodeAt(0)){const e=r.charCodeAt(1),t=120===e||88===e;return(0,o.o)(r.slice(t?2:1),t?16:10)}return(0,n.T)(r)||e}},2493:(e,t,r)=>{"use strict";function n(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}r.r(t),r.d(t,{normalizeIdentifier:()=>n})},3879:(e,t,r)=>{"use strict";function n(e,t,r){const n=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!n.includes(i)&&(t=i(t,r),n.push(i))}return t}r.d(t,{C:()=>n})},2988:(e,t,r)=>{"use strict";r.d(t,{_:()=>o});var n=r(8300);function o(e){const t={};let r,o,a,s,c,u,l,f=-1;for(;++f<e.length;){for(;f in t;)f=t[f];if(r=e[f],f&&"chunkFlow"===r[1].type&&"listItemPrefix"===e[f-1][1].type&&(u=r[1]._tokenizer.events,a=0,a<u.length&&"lineEndingBlank"===u[a][1].type&&(a+=2),a<u.length&&"content"===u[a][1].type))for(;++a<u.length&&"content"!==u[a][1].type;)"chunkText"===u[a][1].type&&(u[a][1]._isInFirstContentOfListItem=!0,a++);if("enter"===r[0])r[1].contentType&&(Object.assign(t,i(e,f)),f=t[f],l=!0);else if(r[1]._container){for(a=f,o=void 0;a--&&(s=e[a],"lineEnding"===s[1].type||"lineEndingBlank"===s[1].type);)"enter"===s[0]&&(o&&(e[o][1].type="lineEndingBlank"),s[1].type="lineEnding",o=a);o&&(r[1].end=Object.assign({},e[o][1].start),c=e.slice(o,f),c.unshift(r),(0,n.d)(e,o,f-o+1,c))}}return!l}function i(e,t){const r=e[t][1],o=e[t][2];let i=t-1;const a=[],s=r._tokenizer||o.parser[r.contentType](r.start),c=s.events,u=[],l={};let f,h,p=-1,d=r,m=0,g=0;const y=[g];for(;d;){for(;e[++i][1]!==d;);a.push(i),d._tokenizer||(f=o.sliceStream(d),d.next||f.push(null),h&&s.defineSkip(d.start),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(f),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),h=d,d=d.next}for(d=r;++p<c.length;)"exit"===c[p][0]&&"enter"===c[p-1][0]&&c[p][1].type===c[p-1][1].type&&c[p][1].start.line!==c[p][1].end.line&&(g=p+1,y.push(g),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(s.events=[],d?(d._tokenizer=void 0,d.previous=void 0):y.pop(),p=y.length;p--;){const t=c.slice(y[p],y[p+1]),r=a.pop();u.unshift([r,r+t.length-1]),(0,n.d)(e,r,2,t)}for(p=-1;++p<u.length;)l[m+u[p][0]]=m+u[p][1],m+=u[p][1]-u[p][0]-1;return l}},7605:(e,t,r)=>{"use strict";r.r(t),r.d(t,{codes:()=>n});const n={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533}},480:(e,t,r)=>{"use strict";r.r(t),r.d(t,{constants:()=>n});const n={attentionSideBefore:1,attentionSideAfter:2,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:"CDATA[",characterGroupWhitespace:1,characterGroupPunctuation:2,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeDocument:"document",contentTypeFlow:"flow",contentTypeContent:"content",contentTypeString:"string",contentTypeText:"text",hardBreakPrefixSizeMin:2,htmlRaw:1,htmlComment:2,htmlInstruction:3,htmlDeclaration:4,htmlCdata:5,htmlBasic:6,htmlComplete:7,htmlRawSizeMax:8,linkResourceDestinationBalanceMax:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4}},58:(e,t,r)=>{"use strict";r.r(t),r.d(t,{types:()=>n});const n={data:"data",whitespace:"whitespace",lineEnding:"lineEnding",lineEndingBlank:"lineEndingBlank",linePrefix:"linePrefix",lineSuffix:"lineSuffix",atxHeading:"atxHeading",atxHeadingSequence:"atxHeadingSequence",atxHeadingText:"atxHeadingText",autolink:"autolink",autolinkEmail:"autolinkEmail",autolinkMarker:"autolinkMarker",autolinkProtocol:"autolinkProtocol",characterEscape:"characterEscape",characterEscapeValue:"characterEscapeValue",characterReference:"characterReference",characterReferenceMarker:"characterReferenceMarker",characterReferenceMarkerNumeric:"characterReferenceMarkerNumeric",characterReferenceMarkerHexadecimal:"characterReferenceMarkerHexadecimal",characterReferenceValue:"characterReferenceValue",codeFenced:"codeFenced",codeFencedFence:"codeFencedFence",codeFencedFenceSequence:"codeFencedFenceSequence",codeFencedFenceInfo:"codeFencedFenceInfo",codeFencedFenceMeta:"codeFencedFenceMeta",codeFlowValue:"codeFlowValue",codeIndented:"codeIndented",codeText:"codeText",codeTextData:"codeTextData",codeTextPadding:"codeTextPadding",codeTextSequence:"codeTextSequence",content:"content",definition:"definition",definitionDestination:"definitionDestination",definitionDestinationLiteral:"definitionDestinationLiteral",definitionDestinationLiteralMarker:"definitionDestinationLiteralMarker",definitionDestinationRaw:"definitionDestinationRaw",definitionDestinationString:"definitionDestinationString",definitionLabel:"definitionLabel",definitionLabelMarker:"definitionLabelMarker",definitionLabelString:"definitionLabelString",definitionMarker:"definitionMarker",definitionTitle:"definitionTitle",definitionTitleMarker:"definitionTitleMarker",definitionTitleString:"definitionTitleString",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",escapeMarker:"escapeMarker",hardBreakEscape:"hardBreakEscape",hardBreakTrailing:"hardBreakTrailing",htmlFlow:"htmlFlow",htmlFlowData:"htmlFlowData",htmlText:"htmlText",htmlTextData:"htmlTextData",image:"image",label:"label",labelText:"labelText",labelLink:"labelLink",labelImage:"labelImage",labelMarker:"labelMarker",labelImageMarker:"labelImageMarker",labelEnd:"labelEnd",link:"link",paragraph:"paragraph",reference:"reference",referenceMarker:"referenceMarker",referenceString:"referenceString",resource:"resource",resourceDestination:"resourceDestination",resourceDestinationLiteral:"resourceDestinationLiteral",resourceDestinationLiteralMarker:"resourceDestinationLiteralMarker",resourceDestinationRaw:"resourceDestinationRaw",resourceDestinationString:"resourceDestinationString",resourceMarker:"resourceMarker",resourceTitle:"resourceTitle",resourceTitleMarker:"resourceTitleMarker",resourceTitleString:"resourceTitleString",setextHeading:"setextHeading",setextHeadingText:"setextHeadingText",setextHeadingLine:"setextHeadingLine",setextHeadingLineSequence:"setextHeadingLineSequence",strong:"strong",strongSequence:"strongSequence",strongText:"strongText",thematicBreak:"thematicBreak",thematicBreakSequence:"thematicBreakSequence",blockQuote:"blockQuote",blockQuotePrefix:"blockQuotePrefix",blockQuoteMarker:"blockQuoteMarker",blockQuotePrefixWhitespace:"blockQuotePrefixWhitespace",listOrdered:"listOrdered",listUnordered:"listUnordered",listItemIndent:"listItemIndent",listItemMarker:"listItemMarker",listItemPrefix:"listItemPrefix",listItemPrefixWhitespace:"listItemPrefixWhitespace",listItemValue:"listItemValue",chunkDocument:"chunkDocument",chunkContent:"chunkContent",chunkFlow:"chunkFlow",chunkText:"chunkText",chunkString:"chunkString"}},469:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(3428);const o=/[\t ]*(?:\r?\n|\r)/g;function i(){return e=>{(0,n.visit)(e,"text",((e,t,r)=>{const n=[];let i=0;o.lastIndex=0;let a=o.exec(e.value);for(;a;){const t=a.index;i!==t&&n.push({type:"text",value:e.value.slice(i,t)}),n.push({type:"break"}),i=t+a[0].length,a=o.exec(e.value)}if(n.length>0&&r&&"number"==typeof t)return i<e.value.length&&n.push({type:"text",value:e.value.slice(i)}),r.children.splice(t,1,...n),t+n.length}))}}},8056:(e,t,r)=>{"use strict";r.r(t),r.d(t,{remarkHeadingId:()=>i});var n=r(3428),o=r(7605);function i(){const e=this.data();function t(t,r){(e[t]||(e[t]=[])).push(r)}return t("micromarkExtensions",{text:{[o.codes.leftCurlyBrace]:{name:"headingIdMaybeStart",tokenize:(e,t,r)=>function(n){return e.attempt({tokenize(e,t,r){return function(t){if(t!==o.codes.leftCurlyBrace)throw new Error(`Unexpected code ${t}`);return e.enter("id"),e.enter("idMarker"),e.consume(t),n};function n(t){return t!==o.codes.numberSign?r(t):(e.consume(t),e.exit("idMarker"),e.enter("idString"),e.enter("chunkString",{contentType:"string"}),i)}function i(n){return[o.codes.carriageReturn,o.codes.lineFeed,o.codes.carriageReturnLineFeed,null,o.codes.backslash,o.codes.leftCurlyBrace].includes(n)?r(n):n===o.codes.rightCurlyBrace?(e.exit("chunkString"),e.exit("idString"),e.enter("idMarker"),e.consume(n),e.exit("idMarker"),e.exit("id"),t):(e.consume(n),i)}}},t,r)(n)}}}}),t("fromMarkdownExtensions",{enter:{idString(e){this.enter({type:"idString",value:null},e),this.buffer()}},exit:{idString(e){const t=this.resume();this.exit(e).value=t}}}),function(e){(0,n.visit)(e,"idString",((e,t,r)=>{if(!r)throw new Error("Unexpected idString under no parent.");if("heading"!==r.type)throw new Error(`Unexpected node ${e} under ${r}`)})),(0,n.visit)(e,"heading",(e=>{const t=e.children.filter((e=>"idString"===e.type));if(0==t.length)return;if(t.length>1)throw new Error(`Found ${t.length} ids under heading ${e}.`);const r=t[0];if(r.value&&r.value.length>0){e.data||(e.data={}),e.data.hProperties||(e.data.hProperties={}),e.data.id=e.data.hProperties.id=r.value,r.value="";const t=e.children.indexOf(r);if(t>=1){const r=e.children[t-1];"text"===r.type&&(r.value=r.value.trimEnd())}e.children.splice(t,1)}}))}}},7327:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>Y});var n=r(4014),o=r(488),i=r(6096);function a(e,t,r,a,s,c,u,l,f,h,p,d,m,g,y){let v,b;return function(t){return e.enter(a),e.enter(s),e.consume(t),e.exit(s),E};function E(t){return 35===t?(v=u,w(t)):46===t?(v=l,w(t)):58===t||95===t||(0,o.asciiAlpha)(t)?(e.enter(c),e.enter(f),e.consume(t),A):y&&(0,o.markdownSpace)(t)?(0,n.factorySpace)(e,E,"whitespace")(t):!y&&(0,o.markdownLineEndingOrSpace)(t)?(0,i.factoryWhitespace)(e,E)(t):j(t)}function w(t){return e.enter(c),e.enter(v),e.enter(v+"Marker"),e.consume(t),e.exit(v+"Marker"),x}function x(t){return null===t||34===t||35===t||39===t||46===t||60===t||61===t||62===t||96===t||125===t||(0,o.markdownLineEndingOrSpace)(t)?r(t):(e.enter(v+"Value"),e.consume(t),S)}function S(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t?r(t):35===t||46===t||125===t||(0,o.markdownLineEndingOrSpace)(t)?(e.exit(v+"Value"),e.exit(v),e.exit(c),E(t)):(e.consume(t),S)}function A(t){return 45===t||46===t||58===t||95===t||(0,o.asciiAlphanumeric)(t)?(e.consume(t),A):(e.exit(f),y&&(0,o.markdownSpace)(t)?(0,n.factorySpace)(e,k,"whitespace")(t):!y&&(0,o.markdownLineEndingOrSpace)(t)?(0,i.factoryWhitespace)(e,k)(t):k(t))}function k(t){return 61===t?(e.enter(h),e.consume(t),e.exit(h),D):(e.exit(c),E(t))}function D(t){return null===t||60===t||61===t||62===t||96===t||125===t||y&&(0,o.markdownLineEnding)(t)?r(t):34===t||39===t?(e.enter(p),e.enter(m),e.consume(t),e.exit(m),b=t,F):y&&(0,o.markdownSpace)(t)?(0,n.factorySpace)(e,D,"whitespace")(t):!y&&(0,o.markdownLineEndingOrSpace)(t)?(0,i.factoryWhitespace)(e,D)(t):(e.enter(d),e.enter(g),e.consume(t),b=void 0,C)}function C(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t?r(t):125===t||(0,o.markdownLineEndingOrSpace)(t)?(e.exit(g),e.exit(d),e.exit(c),E(t)):(e.consume(t),C)}function F(t){return t===b?(e.enter(m),e.consume(t),e.exit(m),e.exit(p),e.exit(c),T):(e.enter(d),P(t))}function P(t){return t===b?(e.exit(d),F(t)):null===t?r(t):(0,o.markdownLineEnding)(t)?y?r(t):(0,i.factoryWhitespace)(e,P)(t):(e.enter(g),e.consume(t),O)}function O(t){return t===b||null===t||(0,o.markdownLineEnding)(t)?(e.exit(g),P(t)):(e.consume(t),O)}function T(e){return 125===e||(0,o.markdownLineEndingOrSpace)(e)?E(e):j(e)}function j(n){return 125===n?(e.enter(s),e.consume(n),e.exit(s),e.exit(a),t):r(n)}}function s(e,t,r,n,i,a,s){let c,u=0,l=0;return function(t){return e.enter(n),e.enter(i),e.consume(t),e.exit(i),f};function f(r){return 93===r?(e.enter(i),e.consume(r),e.exit(i),e.exit(n),t):(e.enter(a),h(r))}function h(t){if(93===t&&!l)return m(t);const r=e.enter("chunkText",{contentType:"text",previous:c});return c&&(c.next=r),c=r,p(t)}function p(t){return null===t||u>999||91===t&&++l>32?r(t):93!==t||l--?(0,o.markdownLineEnding)(t)?s?r(t):(e.consume(t),e.exit("chunkText"),h):(e.consume(t),92===t?d:p):(e.exit("chunkText"),m(t))}function d(t){return 91===t||92===t||93===t?(e.consume(t),u++,p):p(t)}function m(r){return e.exit(a),e.enter(i),e.consume(r),e.exit(i),e.exit(n),t}}function c(e,t,r,n){const i=this;return function(t){if((0,o.asciiAlpha)(t))return e.enter(n),e.consume(t),a;return r(t)};function a(s){return 45===s||95===s||(0,o.asciiAlphanumeric)(s)?(e.consume(s),a):(e.exit(n),45===i.previous||95===i.previous?r(s):t(s))}}const u={tokenize:function(e,t,r){const i=this,a=i.events[i.events.length-1],s=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0;let u,p=0;return function(t){return e.enter("directiveContainer"),e.enter("directiveContainerFence"),e.enter("directiveContainerSequence"),d(t)};function d(t){return 58===t?(e.consume(t),p++,d):p<3?r(t):(e.exit("directiveContainerSequence"),c.call(i,e,m,r,"directiveContainerName")(t))}function m(t){return 91===t?e.attempt(l,g,g)(t):g(t)}function g(t){return 123===t?e.attempt(f,y,y)(t):y(t)}function y(t){return(0,n.factorySpace)(e,v,"whitespace")(t)}function v(n){return e.exit("directiveContainerFence"),null===n?b(n):(0,o.markdownLineEnding)(n)?i.interrupt?t(n):e.attempt(h,E,b)(n):r(n)}function b(r){return e.exit("directiveContainer"),t(r)}function E(r){return null===r?(e.exit("directiveContainer"),t(r)):(e.enter("directiveContainerContent"),w(r))}function w(t){return null===t?D(t):e.attempt({tokenize:C,partial:!0},D,s?(0,n.factorySpace)(e,x,"linePrefix",s+1):x)(t)}function x(t){if(null===t)return D(t);const r=e.enter("chunkDocument",{contentType:"document",previous:u});return u&&(u.next=r),u=r,S(t)}function S(t){if(null===t){const r=e.exit("chunkDocument");return i.parser.lazy[r.start.line]=!1,D(t)}return(0,o.markdownLineEnding)(t)?e.check(h,A,k)(t):(e.consume(t),S)}function A(t){e.consume(t);const r=e.exit("chunkDocument");return i.parser.lazy[r.start.line]=!1,w}function k(t){const r=e.exit("chunkDocument");return i.parser.lazy[r.start.line]=!1,D(t)}function D(r){return e.exit("directiveContainerContent"),e.exit("directiveContainer"),t(r)}function C(e,t,r){let i=0;return(0,n.factorySpace)(e,(function(t){return e.enter("directiveContainerFence"),e.enter("directiveContainerSequence"),a(t)}),"linePrefix",4);function a(t){return 58===t?(e.consume(t),i++,a):i<p?r(t):(e.exit("directiveContainerSequence"),(0,n.factorySpace)(e,s,"whitespace")(t))}function s(n){return null===n||(0,o.markdownLineEnding)(n)?(e.exit("directiveContainerFence"),t(n)):r(n)}}},concrete:!0},l={tokenize:function(e,t,r){return s(e,t,r,"directiveContainerLabel","directiveContainerLabelMarker","directiveContainerLabelString",!0)},partial:!0},f={tokenize:function(e,t,r){return a(e,t,r,"directiveContainerAttributes","directiveContainerAttributesMarker","directiveContainerAttribute","directiveContainerAttributeId","directiveContainerAttributeClass","directiveContainerAttributeName","directiveContainerAttributeInitializerMarker","directiveContainerAttributeValueLiteral","directiveContainerAttributeValue","directiveContainerAttributeValueMarker","directiveContainerAttributeValueData",!0)},partial:!0},h={tokenize:function(e,t,r){const n=this;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(e){return n.parser.lazy[n.now().line]?r(e):t(e)}},partial:!0};const p={tokenize:function(e,t,r){const i=this;return function(t){return e.enter("directiveLeaf"),e.enter("directiveLeafSequence"),e.consume(t),a};function a(t){return 58===t?(e.consume(t),e.exit("directiveLeafSequence"),c.call(i,e,s,r,"directiveLeafName")):r(t)}function s(t){return 91===t?e.attempt(d,u,u)(t):u(t)}function u(t){return 123===t?e.attempt(m,l,l)(t):l(t)}function l(t){return(0,n.factorySpace)(e,f,"whitespace")(t)}function f(n){return null===n||(0,o.markdownLineEnding)(n)?(e.exit("directiveLeaf"),t(n)):r(n)}}},d={tokenize:function(e,t,r){return s(e,t,r,"directiveLeafLabel","directiveLeafLabelMarker","directiveLeafLabelString",!0)},partial:!0},m={tokenize:function(e,t,r){return a(e,t,r,"directiveLeafAttributes","directiveLeafAttributesMarker","directiveLeafAttribute","directiveLeafAttributeId","directiveLeafAttributeClass","directiveLeafAttributeName","directiveLeafAttributeInitializerMarker","directiveLeafAttributeValueLiteral","directiveLeafAttributeValue","directiveLeafAttributeValueMarker","directiveLeafAttributeValueData",!0)},partial:!0};const g={tokenize:function(e,t,r){const n=this;return function(t){return e.enter("directiveText"),e.enter("directiveTextMarker"),e.consume(t),e.exit("directiveTextMarker"),c.call(n,e,o,r,"directiveTextName")};function o(t){return 58===t?r(t):91===t?e.attempt(y,i,i)(t):i(t)}function i(t){return 123===t?e.attempt(v,a,a)(t):a(t)}function a(r){return e.exit("directiveText"),t(r)}},previous:function(e){return 58!==e||"characterEscape"===this.events[this.events.length-1][1].type}},y={tokenize:function(e,t,r){return s(e,t,r,"directiveTextLabel","directiveTextLabelMarker","directiveTextLabelString")},partial:!0},v={tokenize:function(e,t,r){return a(e,t,r,"directiveTextAttributes","directiveTextAttributesMarker","directiveTextAttribute","directiveTextAttributeId","directiveTextAttributeClass","directiveTextAttributeName","directiveTextAttributeInitializerMarker","directiveTextAttributeValueLiteral","directiveTextAttributeValue","directiveTextAttributeValueMarker","directiveTextAttributeValueData")},partial:!0};const b=["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"],E={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function w(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function x(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function S(e){return function(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||w(e)}var A=r(9477);const k=String.fromCharCode,D=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function C(e,t={}){const r="string"==typeof t.additional?t.additional.charCodeAt(0):t.additional,n=[];let o,i,a=0,s=-1,c="";t.position&&("start"in t.position||"indent"in t.position?(i=t.position.indent,o=t.position.start):o=t.position);let u,l=(o?o.line:0)||1,f=(o?o.column:0)||1,h=d();for(a--;++a<=e.length;)if(10===u&&(f=(i?i[s]:0)||1),u=e.charCodeAt(a),38===u){const o=e.charCodeAt(a+1);if(9===o||10===o||12===o||32===o||38===o||60===o||Number.isNaN(o)||r&&o===r){c+=k(u),f++;continue}const i=a+1;let s,l=i,y=i;if(35===o){y=++l;const t=e.charCodeAt(y);88===t||120===t?(s="hexadecimal",y=++l):s="decimal"}else s="named";let v="",D="",C="";const P="named"===s?S:"decimal"===s?w:x;for(y--;++y<=e.length;){const t=e.charCodeAt(y);if(!P(t))break;C+=k(t),"named"===s&&b.includes(C)&&(v=C,D=(0,A.T)(C))}let O=59===e.charCodeAt(y);if(O){y++;const e="named"===s&&(0,A.T)(C);e&&(v=C,D=e)}let T=1+y-i,j="";if(O||!1!==t.nonTerminated)if(C)if("named"===s){if(O&&!D)m(5,1);else if(v!==C&&(y=l+v.length,T=1+y-l,O=!1),!O){const r=v?1:3;if(t.attribute){const t=e.charCodeAt(y);61===t?(m(r,T),D=""):S(t)?D="":m(r,T)}else m(r,T)}j=D}else{O||m(2,T);let e=Number.parseInt(C,"hexadecimal"===s?16:10);if((p=e)>=55296&&p<=57343||p>1114111)m(7,T),j=k(65533);else if(e in E)m(6,T),j=E[e];else{let t="";F(e)&&m(6,T),e>65535&&(e-=65536,t+=k(e>>>10|55296),e=56320|1023&e),j=t+k(e)}}else"named"!==s&&m(4,T);else;if(j){g(),h=d(),a=y-1,f+=y-i+1,n.push(j);const r=d();r.offset++,t.reference&&t.reference.call(t.referenceContext,j,{start:h,end:r},e.slice(i-1,y)),h=r}else C=e.slice(i-1,y),c+=C,f+=C.length,a=y-1}else 10===u&&(l++,s++,f=0),Number.isNaN(u)?g():(c+=k(u),f++);var p;return n.join("");function d(){return{line:l,column:f,offset:a+((o?o.offset:0)||0)}}function m(e,r){let n;t.warning&&(n=d(),n.column+=r,n.offset+=r,t.warning.call(t.warningContext,D[e],n,e))}function g(){c&&(n.push(c),t.text&&t.text.call(t.textContext,c,{start:h,end:d()}),c="")}}function F(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)}function P(e,t){return e=e.replace(t.subset?function(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}(t.subset):/["&'<>`]/g,r),t.subset||t.escapeOnly?e:e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,(function(e,r,n){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,n.charCodeAt(r+2),t)})).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,r);function r(e,r,n){return t.format(e.charCodeAt(0),n.charCodeAt(r+1),t)}}function O(e){return"&#x"+e.toString(16).toUpperCase()+";"}var T=r(7918),j=r(5471),I=r(7567),_=r(1481),R=r(2343);const B={}.hasOwnProperty,L=/^[^\t\n\r "#'.<=>`}]+$/;K.peek=function(){return":"};const N={canContainEols:["textDirective"],enter:{directiveContainer:function(e){H.call(this,"containerDirective",e)},directiveContainerAttributes:U,directiveContainerLabel:function(e){this.enter({type:"paragraph",data:{directiveLabel:!0},children:[]},e)},directiveLeaf:function(e){H.call(this,"leafDirective",e)},directiveLeafAttributes:U,directiveText:function(e){H.call(this,"textDirective",e)},directiveTextAttributes:U},exit:{directiveContainer:Q,directiveContainerAttributeClassValue:q,directiveContainerAttributeIdValue:$,directiveContainerAttributeName:G,directiveContainerAttributeValue:V,directiveContainerAttributes:W,directiveContainerLabel:function(e){this.exit(e)},directiveContainerName:z,directiveLeaf:Q,directiveLeafAttributeClassValue:q,directiveLeafAttributeIdValue:$,directiveLeafAttributeName:G,directiveLeafAttributeValue:V,directiveLeafAttributes:W,directiveLeafName:z,directiveText:Q,directiveTextAttributeClassValue:q,directiveTextAttributeIdValue:$,directiveTextAttributeName:G,directiveTextAttributeValue:V,directiveTextAttributes:W,directiveTextName:z}},M={unsafe:[{character:"\r",inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{character:"\n",inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{before:"[^:]",character:":",after:"[A-Za-z]",inConstruct:["phrasing"]},{atBreak:!0,character:":",after:":"}],handlers:{containerDirective:K,leafDirective:K,textDirective:K}};function H(e,t){this.enter({type:e,name:"",attributes:{},children:[]},t)}function z(e){this.stack[this.stack.length-1].name=this.sliceSerialize(e)}function U(){this.setData("directiveAttributes",[]),this.buffer()}function $(e){this.getData("directiveAttributes").push(["id",C(this.sliceSerialize(e))])}function q(e){this.getData("directiveAttributes").push(["class",C(this.sliceSerialize(e))])}function V(e){const t=this.getData("directiveAttributes");t[t.length-1][1]=C(this.sliceSerialize(e))}function G(e){this.getData("directiveAttributes").push([this.sliceSerialize(e),""])}function W(){const e=this.getData("directiveAttributes"),t={};let r=-1;for(;++r<e.length;){const n=e[r];"class"===n[0]&&t.class?t.class+=" "+n[1]:t[n[0]]=n[1]}this.setData("directiveAttributes"),this.resume();this.stack[this.stack.length-1].attributes=t}function Q(e){this.exit(e)}function K(e,t,r,n){const o=(0,R.j)(n),i=function(e){let t=0;"containerDirective"===e.type?((0,T.S4)(e,"containerDirective",r),t+=3):t="leafDirective"===e.type?2:1;return":".repeat(t);function r(e,r){let n=r.length,o=0;for(;n--;)"containerDirective"===r[n].type&&o++;o>t&&(t=o)}}(e),a=r.enter(e.type);let s=o.move(i+(e.name||"")),c=e;if("containerDirective"===e.type){const t=(e.children||[])[0];c=Z(t)?t:void 0}if(c&&c.children&&c.children.length>0){const t=r.enter("label"),n=r.enter(e.type+"Label");s+=o.move("["),s+=o.move((0,I.p)(c,r,{...o.current(),before:s,after:"]"})),s+=o.move("]"),n(),t()}if(s+=o.move(function(e,t){const r=(0,_.l)(t),n="textDirective"===e.type?[r]:[r,"\n","\r"],o=e.attributes||{},i=[];let a,s,c,u;for(u in o)if(B.call(o,u)&&void 0!==o[u]&&null!==o[u]){const e=String(o[u]);if("id"===u)c=L.test(e)?"#"+e:l("id",e);else if("class"===u){const t=e.split(/[\t\n\r ]+/g),r=[],n=[];let o=-1;for(;++o<t.length;)(L.test(t[o])?n:r).push(t[o]);a=r.length>0?l("class",r.join(" ")):"",s=n.length>0?"."+n.join("."):""}else i.push(l(u,e))}a&&i.unshift(a);s&&i.unshift(s);c&&i.unshift(c);return i.length>0?"{"+i.join(" ")+"}":"";function l(e,t){return e+(t?"="+r+function(e,t){return P(e,Object.assign({format:O},t))}(t,{subset:n})+r:"")}}(e,r)),"containerDirective"===e.type){let t=e;Z((e.children||[])[0])&&(t=Object.assign({},e,{children:e.children.slice(1)})),t&&t.children&&t.children.length>0&&(s+=o.move("\n"),s+=o.move((0,j.K)(t,r,o.current()))),s+=o.move("\n"+i)}return a(),s}function Z(e){return Boolean(e&&"paragraph"===e.type&&e.data&&e.data.directiveLabel)}function Y(){const e=this.data();function t(t,r){(e[t]?e[t]:e[t]=[]).push(r)}t("micromarkExtensions",{text:{58:g},flow:{58:[u,p]}}),t("fromMarkdownExtensions",N),t("toMarkdownExtensions",M)}},9715:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>E});var n=r(488),o=r(8326);const i=Object.assign(a(Error),{eval:a(EvalError),range:a(RangeError),reference:a(ReferenceError),syntax:a(SyntaxError),type:a(TypeError),uri:a(URIError)});function a(e){return t.displayName=e.displayName||e.name,t;function t(t,...r){const n=t?o(t,...r):t;return new e(n)}}const s={}.hasOwnProperty,c={yaml:"-",toml:"+"};function u(e="yaml"){const t=[];let r=-1;for(Array.isArray(e)||(e=[e]);++r<e.length;)t[r]=l(e[r]);return t}function l(e){let t=e;if("string"==typeof t){if(!s.call(c,t))throw i("Missing matter definition for `%s`",t);t={type:t,marker:c[t]}}else if("object"!=typeof t)throw i("Expected matter to be an object, not `%j`",t);if(!s.call(t,"type"))throw i("Missing `type` in matter `%j`",t);if(!s.call(t,"fence")&&!s.call(t,"marker"))throw i("Missing `marker` or `fence` in matter `%j`",t);return t}function f(e){const t=e.type,r=e.anywhere,o=t+"Value",i=t+"Fence",a=i+"Sequence",s={tokenize:function(e,t,r){let o=0;return function(t){if(t===c.charCodeAt(o))return e.enter(i),e.enter(a),s(t);return r(t)};function s(t){return o===c.length?(e.exit(a),(0,n.markdownSpace)(t)?(e.enter("whitespace"),u(t)):l(t)):t===c.charCodeAt(o++)?(e.consume(t),s):r(t)}function u(t){return(0,n.markdownSpace)(t)?(e.consume(t),u):(e.exit("whitespace"),l(t))}function l(o){return null===o||(0,n.markdownLineEnding)(o)?(e.exit(i),t(o)):r(o)}},partial:!0};let c;return{tokenize:function(i,a,u){const l=this;return function(n){const o=l.now();if(1!==o.column||!r&&1!==o.line)return u(n);return i.enter(t),c=h(e,"open"),i.attempt(s,f,u)(n)};function f(t){return c=h(e,"close"),m(t)}function p(e){return null===e||(0,n.markdownLineEnding)(e)?m(e):(i.enter(o),d(e))}function d(e){return null===e||(0,n.markdownLineEnding)(e)?(i.exit(o),m(e)):(i.consume(e),d)}function m(e){return null===e?u(e):(i.enter("lineEnding"),i.consume(e),i.exit("lineEnding"),i.attempt(s,g,p))}function g(e){return i.exit(t),a(e)}},concrete:!0}}function h(e,t){return e.marker?p(e.marker,t).repeat(3):p(e.fence,t)}function p(e,t){return"string"==typeof e?e:e[t]}function d(e){return function(t){this.enter({type:e.type,value:""},t),this.buffer()}}function m(e){const t=this.resume();this.exit(e).value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function g(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function y(e){const t=v(e,"open"),r=v(e,"close");return function(e){return t+(e.value?"\n"+e.value:"")+"\n"+r}}function v(e,t){return e.marker?b(e.marker,t).repeat(3):b(e.fence,t)}function b(e,t){return"string"==typeof e?e:e[t]}function E(e="yaml"){const t=this.data();function r(e,r){(t[e]?t[e]:t[e]=[]).push(r)}r("micromarkExtensions",function(e){const t=u(e),r={};let n,o,i=-1;for(;++i<t.length;)n=t[i],o=h(n,"open").charCodeAt(0),o in r?r[o].push(f(n)):r[o]=[f(n)];return{flow:r}}(e)),r("fromMarkdownExtensions",function(e){const t=u(e),r={},n={};let o=-1;for(;++o<t.length;){const e=t[o];r[e.type]=d(e),n[e.type]=m,n[e.type+"Value"]=g}return{enter:r,exit:n}}(e)),r("toMarkdownExtensions",function(e){const t=[],r={},n=u(e);let o=-1;for(;++o<n.length;){const e=n[o];r[e.type]=y(e),t.push({atBreak:!0,character:v(e,"open").charAt(0)})}return{unsafe:t,handlers:r}}(e))}},4382:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>Fe});var n=r(4666),o=r(488);const i={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(t){return 87===t||119===t?(e.consume(t),i):r(t)}function i(t){return 87===t||119===t?(e.consume(t),a):r(t)}function a(t){return 46===t?(e.consume(t),s):r(t)}function s(e){return null===e||(0,o.markdownLineEnding)(e)?r(e):t(e)}},partial:!0},a={tokenize:function(e,t,r){let n,i;return a;function a(t){return 38===t?e.check(u,l,s)(t):46===t||95===t?e.check(c,l,s)(t):null===t||(0,o.asciiControl)(t)||(0,o.unicodeWhitespace)(t)||45!==t&&(0,o.unicodePunctuation)(t)?l(t):(e.consume(t),a)}function s(t){return 46===t?(i=n,n=void 0,e.consume(t),a):(95===t&&(n=!0),e.consume(t),a)}function l(e){return i||n?r(e):t(e)}},partial:!0},s={tokenize:function(e,t){let r=0;return n;function n(a){return 38===a?e.check(u,t,o)(a):(40===a&&r++,41===a?e.check(c,i,o)(a):y(a)?t(a):g(a)?e.check(c,t,o)(a):(e.consume(a),n))}function o(t){return e.consume(t),n}function i(e){return r--,r<0?t(e):o(e)}},partial:!0},c={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(o){return g(o)?(e.consume(o),n):y(o)?t(o):r(o)}},partial:!0},u={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(t){return(0,o.asciiAlpha)(t)?(e.consume(t),n):59===t?(e.consume(t),i):r(t)}function i(e){return y(e)?t(e):r(e)}},partial:!0},l={tokenize:function(e,t,r){const n=this;return function(t){if(87!==t&&119!==t||!b(n.previous)||x(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(i,e.attempt(a,e.attempt(s,o),r),r)(t)};function o(r){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(r)}},previous:b},f={tokenize:function(e,t,r){const n=this;return function(t){if(72!==t&&104!==t||!E(n.previous)||x(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),e.consume(t),i};function i(t){return 84===t||116===t?(e.consume(t),c):r(t)}function c(t){return 84===t||116===t?(e.consume(t),u):r(t)}function u(t){return 80===t||112===t?(e.consume(t),l):r(t)}function l(t){return 83===t||115===t?(e.consume(t),f):f(t)}function f(t){return 58===t?(e.consume(t),h):r(t)}function h(t){return 47===t?(e.consume(t),p):r(t)}function p(t){return 47===t?(e.consume(t),d):r(t)}function d(t){return null===t||(0,o.asciiControl)(t)||(0,o.unicodeWhitespace)(t)||(0,o.unicodePunctuation)(t)?r(t):e.attempt(a,e.attempt(s,m),r)(t)}function m(r){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(r)}},previous:E},h={tokenize:function(e,t,r){const n=this;let i,a;return function(t){if(!v(t)||!w(n.previous)||x(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(t)};function s(t){return v(t)?(e.consume(t),s):64===t?(e.consume(t),u):r(t)}function u(t){return 46===t?e.check(c,p,l)(t):45===t||95===t?e.check(c,r,f)(t):(0,o.asciiAlphanumeric)(t)?(!a&&(0,o.asciiDigit)(t)&&(a=!0),e.consume(t),u):p(t)}function l(t){return e.consume(t),i=!0,a=void 0,u}function f(t){return e.consume(t),h}function h(t){return 46===t?e.check(c,r,l)(t):u(t)}function p(n){return i&&!a?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(n)):r(n)}},previous:w},p={},d={text:p};let m=48;for(;m<123;)p[m]=h,m++,58===m?m=65:91===m&&(m=97);function g(e){return 33===e||34===e||39===e||41===e||42===e||44===e||46===e||58===e||59===e||60===e||63===e||95===e||126===e}function y(e){return null===e||60===e||(0,o.markdownLineEndingOrSpace)(e)}function v(e){return 43===e||45===e||46===e||95===e||(0,o.asciiAlphanumeric)(e)}function b(e){return null===e||40===e||42===e||95===e||126===e||(0,o.markdownLineEndingOrSpace)(e)}function E(e){return null===e||!(0,o.asciiAlpha)(e)}function w(e){return 47!==e&&E(e)}function x(e){let t=e.length,r=!1;for(;t--;){const n=e[t][1];if(("labelLink"===n.type||"labelImage"===n.type)&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}p[43]=h,p[45]=h,p[46]=h,p[95]=h,p[72]=[h,f],p[104]=[h,f],p[87]=[h,l],p[119]=[h,l];var S=r(2929),A=r(4014),k=r(2493);const D={tokenize:function(e,t,r){const n=this;return(0,A.factorySpace)(e,(function(e){const o=n.events[n.events.length-1];return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?t(e):r(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function C(e,t,r){const n=this;let o=n.events.length;const i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a;for(;o--;){const e=n.events[o][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!a||!a._balanced)return r(o);const s=(0,k.normalizeIdentifier)(n.sliceSerialize({start:a.end,end:n.now()}));if(94!==s.charCodeAt(0)||!i.includes(s.slice(1)))return r(o);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)}}function F(e,t){let r,n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){r=e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},c=[e[n+1],e[n+2],["enter",o,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",o,t]];return e.splice(n,e.length-n+1,...c),e}function P(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a,s=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),c};function c(t){return 94!==t?r(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(c){let f;return null===c||91===c||s++>999?r(c):93===c?a?(e.exit("chunkString"),f=e.exit("gfmFootnoteCallString"),i.includes((0,k.normalizeIdentifier)(n.sliceSerialize(f)))?function(r){return e.enter("gfmFootnoteCallLabelMarker"),e.consume(r),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t}(c):r(c)):r(c):(e.consume(c),(0,o.markdownLineEndingOrSpace)(c)||(a=!0),92===c?l:u)}function l(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}}function O(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a,s,c=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),u};function u(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),l):r(t)}function l(t){let i;return null===t||91===t||c>999?r(t):93===t?s?(i=e.exit("gfmFootnoteDefinitionLabelString"),a=(0,k.normalizeIdentifier)(n.sliceSerialize(i)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p):r(t):(0,o.markdownLineEnding)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),c++,l):(e.enter("chunkString").contentType="string",f(t))}function f(t){return null===t||(0,o.markdownLineEnding)(t)||91===t||93===t||c>999?(e.exit("chunkString"),l(t)):((0,o.markdownLineEndingOrSpace)(t)||(s=!0),c++,e.consume(t),92===t?h:f)}function h(t){return 91===t||92===t||93===t?(e.consume(t),c++,f):f(t)}function p(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),(0,A.factorySpace)(e,d,"gfmFootnoteDefinitionWhitespace")):r(t)}function d(e){return i.includes(a)||i.push(a),t(e)}}function T(e,t,r){return e.check(S.w,t,e.attempt(D,t,r))}function j(e){e.exit("gfmFootnoteDefinition")}var I=r(8300),_=r(3886),R=r(3879);function B(e={}){let t=e.singleTilde;const r={tokenize:function(e,r,n){const o=this.previous,i=this.events;let a=0;return function(t){if(126===o&&"characterEscape"!==i[i.length-1][1].type)return n(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(i){const c=(0,_.r)(o);if(126===i)return a>1?n(i):(e.consume(i),a++,s);if(a<2&&!t)return n(i);const u=e.exit("strikethroughSequenceTemporary"),l=(0,_.r)(i);return u._open=!l||2===l&&Boolean(c),u._close=!c||2===c&&Boolean(l),r(i)}},resolveAll:function(e,t){let r=-1;for(;++r<e.length;)if("enter"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._close){let n=r;for(;n--;)if("exit"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._open&&e[r][1].end.offset-e[r][1].start.offset==e[n][1].end.offset-e[n][1].start.offset){e[r][1].type="strikethroughSequence",e[n][1].type="strikethroughSequence";const o={type:"strikethrough",start:Object.assign({},e[n][1].start),end:Object.assign({},e[r][1].end)},i={type:"strikethroughText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[r][1].start)},a=[["enter",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["enter",i,t]];(0,I.d)(a,a.length,0,(0,R.C)(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),(0,I.d)(a,a.length,0,[["exit",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["exit",o,t]]),(0,I.d)(e,n-1,r-n+3,a),r=n+a.length-2;break}}r=-1;for(;++r<e.length;)"strikethroughSequenceTemporary"===e[r][1].type&&(e[r][1].type="data");return e}};return null==t&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}}}const L={flow:{null:{tokenize:function(e,t,r){const n=this,i=[];let a,s,c=0;return function(t){if(e.enter("table")._align=i,e.enter("tableHead"),e.enter("tableRow"),124===t)return u(t);return c++,e.enter("temporaryTableCellContent"),h(t)};function u(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),a=!0,l}function l(t){return null===t||(0,o.markdownLineEnding)(t)?function(t){if(null===t)return r(t);e.exit("tableRow"),e.exit("tableHead");const o=n.interrupt;return n.interrupt=!0,e.attempt({tokenize:O,partial:!0},(function(t){return n.interrupt=o,e.enter("tableDelimiterRow"),d(t)}),(function(e){return n.interrupt=o,r(e)}))(t)}(t):(0,o.markdownSpace)(t)?(e.enter("whitespace"),e.consume(t),f):(a&&(a=void 0,c++),124===t?u(t):(e.enter("temporaryTableCellContent"),h(t)))}function f(t){return(0,o.markdownSpace)(t)?(e.consume(t),f):(e.exit("whitespace"),l(t))}function h(t){return null===t||124===t||(0,o.markdownLineEndingOrSpace)(t)?(e.exit("temporaryTableCellContent"),l(t)):(e.consume(t),92===t?p:h)}function p(t){return 92===t||124===t?(e.consume(t),h):h(t)}function d(t){return null===t||(0,o.markdownLineEnding)(t)?b(t):(0,o.markdownSpace)(t)?(e.enter("whitespace"),e.consume(t),m):45===t?(e.enter("tableDelimiterFiller"),e.consume(t),s=!0,i.push("none"),g):58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),i.push("left"),y):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),d):r(t)}function m(t){return(0,o.markdownSpace)(t)?(e.consume(t),m):(e.exit("whitespace"),d(t))}function g(t){return 45===t?(e.consume(t),g):(e.exit("tableDelimiterFiller"),58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),i[i.length-1]="left"===i[i.length-1]?"center":"right",v):d(t))}function y(t){return 45===t?(e.enter("tableDelimiterFiller"),e.consume(t),s=!0,g):r(t)}function v(t){return null===t||(0,o.markdownLineEnding)(t)?b(t):(0,o.markdownSpace)(t)?(e.enter("whitespace"),e.consume(t),m):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),d):r(t)}function b(t){return e.exit("tableDelimiterRow"),s&&c===i.length?null===t?E(t):e.check(N,E,e.attempt({tokenize:O,partial:!0},(0,A.factorySpace)(e,w,"linePrefix",4),E))(t):r(t)}function E(r){return e.exit("table"),t(r)}function w(t){return e.enter("tableBody"),x(t)}function x(t){return e.enter("tableRow"),124===t?S(t):(e.enter("temporaryTableCellContent"),C(t))}function S(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),k}function k(t){return null===t||(0,o.markdownLineEnding)(t)?function(t){if(e.exit("tableRow"),null===t)return P(t);return e.check(N,P,e.attempt({tokenize:O,partial:!0},(0,A.factorySpace)(e,x,"linePrefix",4),P))(t)}(t):(0,o.markdownSpace)(t)?(e.enter("whitespace"),e.consume(t),D):124===t?S(t):(e.enter("temporaryTableCellContent"),C(t))}function D(t){return(0,o.markdownSpace)(t)?(e.consume(t),D):(e.exit("whitespace"),k(t))}function C(t){return null===t||124===t||(0,o.markdownLineEndingOrSpace)(t)?(e.exit("temporaryTableCellContent"),k(t)):(e.consume(t),92===t?F:C)}function F(t){return 92===t||124===t?(e.consume(t),C):C(t)}function P(t){return e.exit("tableBody"),E(t)}function O(e,t,r){return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,A.factorySpace)(e,i,"linePrefix")};function i(i){if(n.parser.lazy[n.now().line]||null===i||(0,o.markdownLineEnding)(i))return r(i);const a=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?r(i):(n._gfmTableDynamicInterruptHack=!0,e.check(n.parser.constructs.flow,(function(e){return n._gfmTableDynamicInterruptHack=!1,r(e)}),(function(e){return n._gfmTableDynamicInterruptHack=!1,t(e)}))(i))}}},resolve:function(e,t){let r,n,o,i,a,s,c,u=-1;for(;++u<e.length;){const l=e[u][1];if(o&&("temporaryTableCellContent"===l.type&&(i=i||u,a=u),("tableCellDivider"===l.type||"tableRow"===l.type)&&a)){const r={type:"tableContent",start:e[i][1].start,end:e[a][1].end},n={type:"chunkText",start:r.start,end:r.end,contentType:"text"};e.splice(i,a-i+1,["enter",r,t],["enter",n,t],["exit",n,t],["exit",r,t]),u-=a-i-3,i=void 0,a=void 0}if("exit"===e[u][0]&&void 0!==s&&s+(c?0:1)<u&&("tableCellDivider"===l.type||"tableRow"===l.type&&(s+3<u||"whitespace"!==e[s][1].type))){const o={type:n?"tableDelimiter":r?"tableHeader":"tableData",start:e[s][1].start,end:e[u][1].end};e.splice(u+("tableCellDivider"===l.type?1:0),0,["exit",o,t]),e.splice(s,0,["enter",o,t]),u+=2,s=u+1,c=!0}"tableRow"===l.type&&(o="enter"===e[u][0],o&&(s=u+1,c=!1)),"tableDelimiterRow"===l.type&&(n="enter"===e[u][0],n&&(s=u+1,c=!1)),"tableHead"===l.type&&(r="enter"===e[u][0])}return e}}}},N={tokenize:function(e,t,r){let n=0;return function(t){return e.enter("check"),e.consume(t),i};function i(a){return-1===a||32===a?(e.consume(a),n++,4===n?t:i):null===a||(0,o.markdownLineEndingOrSpace)(a)?t(a):r(a)}},partial:!0};const M={tokenize:function(e,t,r){const n=this;return function(t){if(null!==n.previous||!n._gfmTasklistFirstContentOfListItem)return r(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i};function i(t){return(0,o.markdownLineEndingOrSpace)(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),a):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),a):r(t)}function a(n){return 93===n?(e.enter("taskListCheckMarker"),e.consume(n),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),e.check({tokenize:z},t,r)):r(n)}}},H={text:{91:M}};function z(e,t,r){const n=this;return(0,A.factorySpace)(e,(function(e){const i=n.events[n.events.length-1];return(i&&"whitespace"===i[1].type||(0,o.markdownLineEnding)(e))&&null!==e?t(e):r(e)}),"whitespace")}function U(e,t){const r=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let n=0,o=r.indexOf(t);for(;-1!==o;)n++,o=r.indexOf(t,o+t.length);return n}var $=r(7918),q=r(213);const V={}.hasOwnProperty,G=function(e,t,r,n){let o,i;"string"==typeof t||t instanceof RegExp?(i=[[t,r]],o=n):(i=t,o=r),o||(o={});const a=(0,q.convert)(o.ignore||[]),s=function(e){const t=[];if("object"!=typeof e)throw new TypeError("Expected array or object as schema");if(Array.isArray(e)){let r=-1;for(;++r<e.length;)t.push([W(e[r][0]),Q(e[r][1])])}else{let r;for(r in e)V.call(e,r)&&t.push([W(r),Q(e[r])])}return t}(i);let c=-1;for(;++c<s.length;)(0,$.S4)(e,"text",u);return e;function u(e,t){let r,n=-1;for(;++n<t.length;){const e=t[n];if(a(e,r?r.children.indexOf(e):void 0,r))return;r=e}if(r)return function(e,t){const r=t[t.length-1],n=s[c][0],o=s[c][1];let i=0;const a=r.children.indexOf(e);let u,l=[];n.lastIndex=0;let f=n.exec(e.value);for(;f;){u=f.index;const r={index:f.index,input:f.input,stack:[...t,e]};let a=o(...f,r);if("string"==typeof a&&(a=a.length>0?{type:"text",value:a}:void 0),!1===a?u=void 0:(i!==u&&l.push({type:"text",value:e.value.slice(i,u)}),Array.isArray(a)?l.push(...a):a&&l.push(a),i=u+f[0].length),!n.global)break;f=n.exec(e.value)}void 0===u?l=[e]:(i<e.value.length&&l.push({type:"text",value:e.value.slice(i)}),r.children.splice(a,1,...l));return a+l.length}(e,t)}};function W(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 Q(e){return"function"==typeof e?e:()=>e}const K="phrasing",Z=["autolink","link","image","label"],Y={transforms:[function(e){G(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ee],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,te]],{ignore:["link","linkReference"]})}],enter:{literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:J,literalAutolinkHttp:J,literalAutolinkWww:J},exit:{literalAutolink:function(e){this.exit(e)},literalAutolinkEmail:function(e){this.config.exit.autolinkEmail.call(this,e)},literalAutolinkHttp:function(e){this.config.exit.autolinkProtocol.call(this,e)},literalAutolinkWww:function(e){this.config.exit.data.call(this,e);this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}}},X={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:K,notInConstruct:Z},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:K,notInConstruct:Z},{character:":",before:"[ps]",after:"\\/",inConstruct:K,notInConstruct:Z}]};function J(e){this.config.enter.autolinkProtocol.call(this,e)}function ee(e,t,r,n,o){let i="";if(!re(o))return!1;if(/^w/i.test(t)&&(r=t+r,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}(r))return!1;const a=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);let r,n,o,i;if(t)for(e=e.slice(0,t.index),i=t[0],r=i.indexOf(")"),n=U(e,"("),o=U(e,")");-1!==r&&n>o;)e+=i.slice(0,r+1),i=i.slice(r+1),r=i.indexOf(")"),o++;return[e,i]}(r+n);if(!a[0])return!1;const s={type:"link",title:null,url:i+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function te(e,t,r,n){return!(!re(n,!0)||/[_-\d]$/.test(r))&&{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function re(e,t){const r=e.input.charCodeAt(e.index-1);return(0===e.index||(0,o.unicodeWhitespace)(r)||(0,o.unicodePunctuation)(r))&&(!t||47!==r)}var ne=r(2116);function oe(e){return e.label||!e.identifier?e.label||"":(0,ne.v)(e.identifier)}var ie=r(5471),ae=r(4671),se=r(3316),ce=r(2343);function ue(){return e.peek=function(){return"["},{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:function(e,t,r,n){const o=(0,ce.j)(n);let i=o.move("[^");const a=r.enter("footnoteDefinition"),s=r.enter("label");return i+=o.move((0,se.T)(r,oe(e),{...o.current(),before:i,after:"]"})),s(),i+=o.move("]:"+(e.children&&e.children.length>0?" ":"")),o.shift(4),i+=o.move((0,ae.Q)((0,ie.K)(e,r,o.current()),(function(e,t,r){if(t)return(r?"":" ")+e;return e}))),a(),i},footnoteReference:e}};function e(e,t,r,n){const o=(0,ce.j)(n);let i=o.move("[^");const a=r.enter("footnoteReference"),s=r.enter("reference");return i+=o.move((0,se.T)(r,oe(e),{...o.current(),before:i,after:"]"})),s(),a(),i+=o.move("]"),i}}var le=r(7567);const fe={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},he={unsafe:[{character:"~",inConstruct:"phrasing"}],handlers:{delete:pe}};function pe(e,t,r,n){const o=(0,ce.j)(n),i=r.enter("emphasis");let a=o.move("~~");return a+=(0,le.p)(e,r,{...o.current(),before:a,after:"~"}),a+=o.move("~~"),i(),a}pe.peek=function(){return"~"};var de=r(7866);function me(e,t,r){let n=e.value||"",o="`",i=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(n);)o+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++i<r.unsafe.length;){const e=r.unsafe[i],t=(0,de.T)(e);let o;if(e.atBreak)for(;o=t.exec(n);){let e=o.index;10===n.charCodeAt(e)&&13===n.charCodeAt(e-1)&&e--,n=n.slice(0,e)+" "+n.slice(o.index+1)}}return o+n+o}function ge(e){return null==e?"":String(e)}function ye(e){return e.length}function ve(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}me.peek=function(){return"`"};const be={enter:{table:function(e){const t=e._align;this.enter({type:"table",align:t.map((e=>"none"===e?null:e)),children:[]},e),this.setData("inTable",!0)},tableData:we,tableHeader:we,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},exit:{codeText:function(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,xe));this.stack[this.stack.length-1].value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:Ee,tableHeader:Ee,tableRow:Ee}};function Ee(e){this.exit(e)}function we(e){this.enter({type:"tableCell",children:[]},e)}function xe(e,t){return"|"===t?t:e}function Se(e){const t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,o=t.stringLength,i=r?" ":"|";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:{table:function(e,t,r,n){return s(function(e,t,r){const n=e.children;let o=-1;const i=[],a=t.enter("table");for(;++o<n.length;)i[o]=c(n[o],t,r);return a(),i}(e,r,n),e.align)},tableRow:function(e,t,r,n){const o=s([c(e,r,n)]);return o.slice(0,o.indexOf("\n"))},tableCell:a,inlineCode:function(e,t,r){let n=me(e,0,r);r.stack.includes("tableCell")&&(n=n.replace(/\|/g,"\\$&"));return n}}};function a(e,t,r,n){const o=r.enter("tableCell"),a=r.enter("phrasing"),s=(0,le.p)(e,r,{...n,before:i,after:i});return a(),o(),s}function s(e,t){return function(e,t={}){const r=(t.align||[]).concat(),n=t.stringLength||ye,o=[],i=[],a=[],s=[];let c=0,u=-1;for(;++u<e.length;){const r=[],o=[];let l=-1;for(e[u].length>c&&(c=e[u].length);++l<e[u].length;){const i=ge(e[u][l]);if(!1!==t.alignDelimiters){const e=n(i);o[l]=e,(void 0===s[l]||e>s[l])&&(s[l]=e)}r.push(i)}i[u]=r,a[u]=o}let l=-1;if("object"==typeof r&&"length"in r)for(;++l<c;)o[l]=ve(r[l]);else{const e=ve(r);for(;++l<c;)o[l]=e}l=-1;const f=[],h=[];for(;++l<c;){const e=o[l];let r="",n="";99===e?(r=":",n=":"):108===e?r=":":114===e&&(n=":");let i=!1===t.alignDelimiters?1:Math.max(1,s[l]-r.length-n.length);const a=r+"-".repeat(i)+n;!1!==t.alignDelimiters&&(i=r.length+i+n.length,i>s[l]&&(s[l]=i),h[l]=i),f[l]=a}i.splice(1,0,f),a.splice(1,0,h),u=-1;const p=[];for(;++u<i.length;){const e=i[u],r=a[u];l=-1;const n=[];for(;++l<c;){const i=e[l]||"";let a="",u="";if(!1!==t.alignDelimiters){const e=s[l]-(r[l]||0),t=o[l];114===t?a=" ".repeat(e):99===t?e%2?(a=" ".repeat(e/2+.5),u=" ".repeat(e/2-.5)):(a=" ".repeat(e/2),u=a):u=" ".repeat(e)}!1===t.delimiterStart||l||n.push("|"),!1===t.padding||!1===t.alignDelimiters&&""===i||!1===t.delimiterStart&&!l||n.push(" "),!1!==t.alignDelimiters&&n.push(a),n.push(i),!1!==t.alignDelimiters&&n.push(u),!1!==t.padding&&n.push(" "),!1===t.delimiterEnd&&l===c-1||n.push("|")}p.push(!1===t.delimiterEnd?n.join("").replace(/ +$/,""):n.join(""))}return p.join("\n")}(e,{align:t,alignDelimiters:n,padding:r,stringLength:o})}function c(e,t,r){const n=e.children;let o=-1;const i=[],s=t.enter("tableRow");for(;++o<n.length;)i[o]=a(n[o],0,t,r);return s(),i}}function Ae(e,t,r,n){const o=function(e){const t=e.options.listItemIndent||"tab";if(1===t||"1"===t)return"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}(r);let i=r.bulletCurrent||function(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}(r);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===r.options.incrementListMarker?0:t.children.indexOf(e))+i);let a=i.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const s=(0,ce.j)(n);s.move(i+" ".repeat(a-i.length)),s.shift(a);const c=r.enter("listItem"),u=(0,ae.Q)((0,ie.K)(e,r,s.current()),(function(e,t,r){if(t)return(r?"":" ".repeat(a))+e;return(r?i:i+" ".repeat(a-i.length))+e}));return c(),u}const ke={exit:{taskListCheckValueChecked:Ce,taskListCheckValueUnchecked:Ce,paragraph:function(e){const t=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1],n=t.children,o=r.children[0];let i,a=-1;if(t&&"listItem"===t.type&&"boolean"==typeof t.checked&&o&&"text"===o.type){for(;++a<n.length;){const e=n[a];if("paragraph"===e.type){i=e;break}}i===r&&(o.value=o.value.slice(1),0===o.value.length?r.children.shift():r.position&&o.position&&"number"==typeof o.position.start.offset&&(o.position.start.column++,o.position.start.offset++,r.position.start=Object.assign({},o.position.start)))}this.exit(e)}}},De={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:function(e,t,r,n){const o=e.children[0],i="boolean"==typeof e.checked&&o&&"paragraph"===o.type,a="["+(e.checked?"x":" ")+"] ",s=(0,ce.j)(n);i&&s.move(a);let c=Ae(e,t,r,{...n,...s.current()});i&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+a})));return c}}};function Ce(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}function Fe(e={}){const t=this.data();function r(e,r){(t[e]?t[e]:t[e]=[]).push(r)}r("micromarkExtensions",function(e){return(0,n.W)([d,{document:{91:{tokenize:O,continuation:{tokenize:T},exit:j}},text:{91:{tokenize:P},93:{add:"after",tokenize:C,resolveTo:F}}},B(e),L,H])}(e)),r("fromMarkdownExtensions",[Y,{enter:{gfmFootnoteDefinition:function(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)},gfmFootnoteDefinitionLabelString:function(){this.buffer()},gfmFootnoteCall:function(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)},gfmFootnoteCallString:function(){this.buffer()}},exit:{gfmFootnoteDefinition:function(e){this.exit(e)},gfmFootnoteDefinitionLabelString:function(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=(0,k.normalizeIdentifier)(this.sliceSerialize(e)).toLowerCase()},gfmFootnoteCall:function(e){this.exit(e)},gfmFootnoteCallString:function(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=(0,k.normalizeIdentifier)(this.sliceSerialize(e)).toLowerCase()}}},fe,be,ke]),r("toMarkdownExtensions",function(e){return{extensions:[X,ue(),he,Se(e),De]}}(e))}},7265:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>le});var n={};r.r(n),r.d(n,{attentionMarkers:()=>Z,contentInitial:()=>q,disable:()=>Y,document:()=>$,flow:()=>G,flowInitial:()=>V,insideSpan:()=>K,string:()=>W,text:()=>Q});var o=r(8717),i=r(4666),a=r(4014),s=r(488);const c={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),(0,a.factorySpace)(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),n(t)}));let r;return t;function n(t){const n=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=n),r=n,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):(0,s.markdownLineEnding)(t)?(e.consume(t),e.exit("chunkText"),n):(e.consume(t),o)}}};var u=r(8300);const l={tokenize:function(e){const t=this,r=[];let n,o,i,a=0;return c;function c(n){if(a<r.length){const o=r[a];return t.containerState=o[1],e.attempt(o[0].continuation,l,h)(n)}return h(n)}function l(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,n&&w();const r=t.events.length;let o,i=r;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){o=t.events[i][1].end;break}E(a);let s=r;for(;s<t.events.length;)t.events[s][1].end=Object.assign({},o),s++;return(0,u.d)(t.events,i+1,0,t.events.slice(r)),t.events.length=s,h(e)}return c(e)}function h(o){if(a===r.length){if(!n)return m(o);if(n.currentConstruct&&n.currentConstruct.concrete)return y(o);t.interrupt=Boolean(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(f,p,d)(o)}function p(e){return n&&w(),E(a),m(e)}function d(e){return t.parser.lazy[t.now().line]=a!==r.length,i=t.now().offset,y(e)}function m(r){return t.containerState={},e.attempt(f,g,y)(r)}function g(e){return a++,r.push([t.currentConstruct,t.containerState]),m(e)}function y(r){return null===r?(n&&w(),E(0),void e.consume(r)):(n=n||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:n}),v(r))}function v(r){return null===r?(b(e.exit("chunkFlow"),!0),E(0),void e.consume(r)):(0,s.markdownLineEnding)(r)?(e.consume(r),b(e.exit("chunkFlow")),a=0,t.interrupt=void 0,c):(e.consume(r),v)}function b(e,r){const s=t.sliceStream(e);if(r&&s.push(null),e.previous=o,o&&(o.next=e),o=e,n.defineSkip(e.start),n.write(s),t.parser.lazy[e.start.line]){let e=n.events.length;for(;e--;)if(n.events[e][1].start.offset<i&&(!n.events[e][1].end||n.events[e][1].end.offset>i))return;const r=t.events.length;let o,s,c=r;for(;c--;)if("exit"===t.events[c][0]&&"chunkFlow"===t.events[c][1].type){if(o){s=t.events[c][1].end;break}o=!0}for(E(a),e=r;e<t.events.length;)t.events[e][1].end=Object.assign({},s),e++;(0,u.d)(t.events,c+1,0,t.events.slice(r)),t.events.length=e}}function E(n){let o=r.length;for(;o-- >n;){const n=r[o];t.containerState=n[1],n[0].exit.call(t,e)}r.length=n}function w(){n.write([null]),o=void 0,n=void 0,t.containerState._closeFlow=void 0}}},f={tokenize:function(e,t,r){return(0,a.factorySpace)(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var h=r(2929),p=r(6814);const d={tokenize:function(e){const t=this,r=e.attempt(h.w,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}),e.attempt(this.parser.constructs.flowInitial,n,(0,a.factorySpace)(e,e.attempt(this.parser.constructs.flow,n,e.attempt(p.k,n)),"linePrefix")));return r;function n(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),t.currentConstruct=void 0,r;e.consume(n)}}};const m={resolveAll:b()},g=v("string"),y=v("text");function v(e){return{tokenize:function(t){const r=this,n=this.parser.constructs[e],o=t.attempt(n,i,a);return i;function i(e){return c(e)?o(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return c(e)?(t.exit("data"),o(e)):(t.consume(e),s)}function c(e){if(null===e)return!0;const t=n[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(r,r.previous))return!0}return!1}},resolveAll:b("text"===e?E:void 0)}}function b(e){return function(t,r){let n,o=-1;for(;++o<=t.length;)void 0===n?t[o]&&"data"===t[o][1].type&&(n=o,o++):t[o]&&"data"===t[o][1].type||(o!==n+2&&(t[n][1].end=t[o-1][1].end,t.splice(n+2,o-n-2),o=n+2),n=void 0);return e?e(t,r):t}}function E(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||"lineEnding"===e[r][1].type)&&"data"===e[r-1][1].type){const n=e[r-1][1],o=t.sliceStream(n);let i,a=o.length,s=-1,c=0;for(;a--;){const e=o[a];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)c++,s--;if(s)break;s=-1}else if(-2===e)i=!0,c++;else if(-1!==e){a++;break}}if(c){const o={type:r===e.length||i||c<2?"lineSuffix":"hardBreakTrailing",start:{line:n.end.line,column:n.end.column-c,offset:n.end.offset-c,_index:n.start._index+a,_bufferIndex:a?s:n.start._bufferIndex+s},end:Object.assign({},n.end)};n.end=Object.assign({},o.start),n.start.offset===n.end.offset?Object.assign(n,o):(e.splice(r,0,["enter",o,t],["exit",o,t]),r+=2)}r++}return e}var w=r(3879);function x(e,t,r){let n=Object.assign(r?Object.assign({},r):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const o={},i=[];let a=[],c=[],l=!0;const f={consume:function(e){(0,s.markdownLineEnding)(e)?(n.line++,n.column=1,n.offset+=-3===e?2:1,S()):-1!==e&&(n.column++,n.offset++);n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===a[n._index].length&&(n._bufferIndex=-1,n._index++));h.previous=e,l=!0},enter:function(e,t){const r=t||{};return r.type=e,r.start=g(),h.events.push(["enter",r,h]),c.push(r),r},exit:function(e){const t=c.pop();return t.end=g(),h.events.push(["exit",t,h]),t},attempt:E((function(e,t){x(e,t.from)})),check:E(b),interrupt:E(b,{interrupt:!0})},h={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:m,sliceSerialize:function(e,t){return function(e,t){let r=-1;const n=[];let o;for(;++r<e.length;){const i=e[r];let a;if("string"==typeof i)a=i;else switch(i){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&o)continue;a=" ";break;default:a=String.fromCharCode(i)}o=-2===i,n.push(a)}return n.join("")}(m(e),t)},now:g,defineSkip:function(e){o[e.line]=e.column,S()},write:function(e){if(a=(0,u.V)(a,e),y(),null!==a[a.length-1])return[];return x(t,0),h.events=(0,w.C)(i,h.events,h),h.events}};let p,d=t.tokenize.call(h,f);return t.resolveAll&&i.push(t),h;function m(e){return function(e,t){const r=t.start._index,n=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let a;r===o?a=[e[r].slice(n,i)]:(a=e.slice(r,o),n>-1&&(a[0]=a[0].slice(n)),i>0&&a.push(e[o].slice(0,i)));return a}(a,e)}function g(){return Object.assign({},n)}function y(){let e;for(;n._index<a.length;){const t=a[n._index];if("string"==typeof t)for(e=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===e&&n._bufferIndex<t.length;)v(t.charCodeAt(n._bufferIndex));else v(t)}}function v(e){l=void 0,p=e,d=d(e)}function b(e,t){t.restore()}function E(e,t){return function(r,o,i){let a,s,u,p;return Array.isArray(r)?d(r):"tokenize"in r?d([r]):function(e){return t;function t(t){const r=null!==t&&e[t],n=null!==t&&e.null;return d([...Array.isArray(r)?r:r?[r]:[],...Array.isArray(n)?n:n?[n]:[]])(t)}}(r);function d(e){return a=e,s=0,0===e.length?i:m(e[s])}function m(e){return function(r){p=function(){const e=g(),t=h.previous,r=h.currentConstruct,o=h.events.length,i=Array.from(c);return{restore:a,from:o};function a(){n=e,h.previous=t,h.currentConstruct=r,h.events.length=o,c=i,S()}}(),u=e,e.partial||(h.currentConstruct=e);if(e.name&&h.parser.constructs.disable.null.includes(e.name))return v(r);return e.tokenize.call(t?Object.assign(Object.create(h),t):h,f,y,v)(r)}}function y(t){return l=!0,e(u,p),o}function v(e){return l=!0,p.restore(),++s<a.length?m(a[s]):i}}}function x(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&(0,u.d)(h.events,t,h.events.length-t,e.resolve(h.events.slice(t),h)),e.resolveTo&&(h.events=e.resolveTo(h.events,h))}function S(){n.line in o&&n.column<2&&(n.column=o[n.line],n.offset+=o[n.line]-1)}}var S=r(4618),A=r(7207),k=r(4882),D=r(2535),C=r(5528),F=r(8038),P=r(6263),O=r(5198),T=r(4897),j=r(2810),I=r(1687),_=r(890),R=r(5365),B=r(8415),L=r(7444),N=r(5890),M=r(5856),H=r(6100),z=r(8966),U=r(5180);const $={42:S.p,43:S.p,45:S.p,48:S.p,49:S.p,50:S.p,51:S.p,52:S.p,53:S.p,54:S.p,55:S.p,56:S.p,57:S.p,62:A.m},q={91:k.D},V={[-2]:D.S,[-1]:D.S,32:D.S},G={35:C.Z,42:F.C,45:[P.C,F.C],60:O.P,61:P.C,95:F.C,96:T._,126:T._},W={38:j.u,92:I.L},Q={[-5]:_.g,[-4]:_.g,[-3]:_.g,33:R.C,38:j.u,42:B.v,60:[L.j,N.L],91:M.F,92:[H.R,I.L],93:z.Z,95:B.v,96:U.h},K={null:[B.v,m]},Z={null:[42,95]},Y={null:[]};const X=/[\0\t\n\r]/g;var J=r(2988);var ee=r(8031),te=r(2116),re=r(2493),ne=r(9477),oe=r(1513);const ie={}.hasOwnProperty,ae=function(e,t,r){return"string"!=typeof t&&(r=t,t=void 0),function(e={}){const t=se({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(he),autolinkProtocol:P,autolinkEmail:P,atxHeading:u(ae),blockQuote:u(K),characterEscape:P,characterReference:P,codeFenced:u(Z),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:u(Z,l),codeText:u(Y,l),codeTextData:P,data:P,codeFlowValue:P,definition:u(X),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:u(J),hardBreakEscape:u(ce),hardBreakTrailing:u(ce),htmlFlow:u(le,l),htmlFlowData:P,htmlText:u(le,l),htmlTextData:P,image:u(fe),label:l,link:u(he),listItem:u(de),listItemValue:g,listOrdered:u(pe,m),listUnordered:u(pe),paragraph:u(me),reference:$,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:u(ae),strong:u(ge),thematicBreak:u(ve)},exit:{atxHeading:h(),atxHeadingSequence:k,autolink:h(),autolinkEmail:Q,autolinkProtocol:W,blockQuote:h(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:V,characterReferenceMarkerNumeric:V,characterReferenceValue:G,codeFenced:h(E),codeFencedFence:b,codeFencedFenceInfo:y,codeFencedFenceMeta:v,codeFlowValue:O,codeIndented:h(w),codeText:h(R),codeTextData:O,data:O,definition:h(),definitionDestinationString:A,definitionLabelString:x,definitionTitleString:S,emphasis:h(),hardBreakEscape:h(j),hardBreakTrailing:h(j),htmlFlow:h(I),htmlFlowData:O,htmlText:h(_),htmlTextData:O,image:h(L),label:M,labelText:N,lineEnding:T,link:h(B),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:q,resourceDestinationString:H,resourceTitleString:z,resource:U,setextHeading:h(F),setextHeadingLineSequence:C,setextHeadingText:D,strong:h(),thematicBreak:h()}},e.mdastExtensions||[]),r={};return n;function n(e){let r={type:"root",children:[]};const n=[],o=[],u={stack:[r],tokenStack:n,config:t,enter:f,exit:p,buffer:l,resume:d,setData:a,getData:s};let h=-1;for(;++h<e.length;)if("listOrdered"===e[h][1].type||"listUnordered"===e[h][1].type)if("enter"===e[h][0])o.push(h);else{h=i(e,o.pop(),h)}for(h=-1;++h<e.length;){const r=t[e[h][0]];ie.call(r,e[h][1].type)&&r[e[h][1].type].call(Object.assign({sliceSerialize:e[h][2].sliceSerialize},u),e[h][1])}if(n.length>0){const e=n[n.length-1];(e[1]||ue).call(u,void 0,e[0])}for(r.position={start:c(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:c(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},h=-1;++h<t.transforms.length;)r=t.transforms[h](r)||r;return r}function i(e,t,r){let n,o,i,a,s=t-1,c=-1,u=!1;for(;++s<=r;){const t=e[s];if("listUnordered"===t[1].type||"listOrdered"===t[1].type||"blockQuote"===t[1].type?("enter"===t[0]?c++:c--,a=void 0):"lineEndingBlank"===t[1].type?"enter"===t[0]&&(!n||a||c||i||(i=s),a=void 0):"linePrefix"===t[1].type||"listItemValue"===t[1].type||"listItemMarker"===t[1].type||"listItemPrefix"===t[1].type||"listItemPrefixWhitespace"===t[1].type||(a=void 0),!c&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===c&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(n){let a=s;for(o=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",o=a}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)&&(n._spread=!0),n.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||s,0,["exit",n,t[2]]),s++,r++}"listItemPrefix"===t[1].type&&(n={type:"listItem",_spread:!1,start:Object.assign({},t[1].start)},e.splice(s,0,["enter",n,t[2]]),s++,r++,i=void 0,a=!0)}}return e[t][1]._spread=u,r}function a(e,t){r[e]=t}function s(e){return r[e]}function c(e){return{line:e.line,column:e.column,offset:e.offset}}function u(e,t){return r;function r(r){f.call(this,e(r),r),t&&t.call(this,r)}}function l(){this.stack.push({type:"fragment",children:[]})}function f(e,t,r){return this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,r]),e.position={start:c(t.start)},e}function h(e){return t;function t(t){e&&e.call(this,t),p.call(this,t)}}function p(e,t){const r=this.stack.pop(),n=this.tokenStack.pop();if(!n)throw new Error("Cannot close `"+e.type+"` ("+(0,oe.y)({start:e.start,end:e.end})+"): it’s not open");if(n[0].type!==e.type)if(t)t.call(this,e,n[0]);else{(n[1]||ue).call(this,e,n[0])}return r.position.end=c(e.end),r}function d(){return(0,o.B)(this.stack.pop())}function m(){a("expectingFirstListItemValue",!0)}function g(e){if(s("expectingFirstListItemValue")){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),a("expectingFirstListItemValue")}}function y(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function v(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function b(){s("flowCodeInside")||(this.buffer(),a("flowCodeInside",!0))}function E(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),a("flowCodeInside")}function w(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function x(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=(0,re.normalizeIdentifier)(this.sliceSerialize(e)).toLowerCase()}function S(){const e=this.resume();this.stack[this.stack.length-1].title=e}function A(){const e=this.resume();this.stack[this.stack.length-1].url=e}function k(e){const t=this.stack[this.stack.length-1];if(!t.depth){const r=this.sliceSerialize(e).length;t.depth=r}}function D(){a("setextHeadingSlurpLineEnding",!0)}function C(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2}function F(){a("setextHeadingSlurpLineEnding")}function P(e){const t=this.stack[this.stack.length-1];let r=t.children[t.children.length-1];r&&"text"===r.type||(r=ye(),r.position={start:c(e.start)},t.children.push(r)),this.stack.push(r)}function O(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=c(e.end)}function T(e){const r=this.stack[this.stack.length-1];if(s("atHardBreak")){return r.children[r.children.length-1].position.end=c(e.end),void a("atHardBreak")}!s("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(r.type)&&(P.call(this,e),O.call(this,e))}function j(){a("atHardBreak",!0)}function I(){const e=this.resume();this.stack[this.stack.length-1].value=e}function _(){const e=this.resume();this.stack[this.stack.length-1].value=e}function R(){const e=this.resume();this.stack[this.stack.length-1].value=e}function B(){const e=this.stack[this.stack.length-1];s("inReference")?(e.type+="Reference",e.referenceType=s("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label),a("referenceType")}function L(){const e=this.stack[this.stack.length-1];s("inReference")?(e.type+="Reference",e.referenceType=s("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label),a("referenceType")}function N(e){const t=this.stack[this.stack.length-2],r=this.sliceSerialize(e);t.label=(0,te.v)(r),t.identifier=(0,re.normalizeIdentifier)(r).toLowerCase()}function M(){const e=this.stack[this.stack.length-1],t=this.resume(),r=this.stack[this.stack.length-1];a("inReference",!0),"link"===r.type?r.children=e.children:r.alt=t}function H(){const e=this.resume();this.stack[this.stack.length-1].url=e}function z(){const e=this.resume();this.stack[this.stack.length-1].title=e}function U(){a("inReference")}function $(){a("referenceType","collapsed")}function q(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=(0,re.normalizeIdentifier)(this.sliceSerialize(e)).toLowerCase(),a("referenceType","full")}function V(e){a("characterReferenceType",e.type)}function G(e){const t=this.sliceSerialize(e),r=s("characterReferenceType");let n;r?(n=(0,ee.o)(t,"characterReferenceMarkerNumeric"===r?10:16),a("characterReferenceType")):n=(0,ne.T)(t);const o=this.stack.pop();o.value+=n,o.position.end=c(e.end)}function W(e){O.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function Q(e){O.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function K(){return{type:"blockquote",children:[]}}function Z(){return{type:"code",lang:null,meta:null,value:""}}function Y(){return{type:"inlineCode",value:""}}function X(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function J(){return{type:"emphasis",children:[]}}function ae(){return{type:"heading",depth:void 0,children:[]}}function ce(){return{type:"break"}}function le(){return{type:"html",value:""}}function fe(){return{type:"image",title:null,url:"",alt:null}}function he(){return{type:"link",title:null,url:"",children:[]}}function pe(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function de(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function me(){return{type:"paragraph",children:[]}}function ge(){return{type:"strong",children:[]}}function ye(){return{type:"text",value:""}}function ve(){return{type:"thematicBreak"}}}(r)(function(e){for(;!(0,J._)(e););return e}(function(e={}){const t={defined:[],lazy:{},constructs:(0,i.W)([n].concat(e.extensions||[])),content:r(c),document:r(l),flow:r(d),string:r(g),text:r(y)};return t;function r(e){return function(r){return x(t,e,r)}}}(r).document().write(function(){let e,t=1,r="",n=!0;return function(o,i,a){const s=[];let c,u,l,f,h;for(o=r+o.toString(i),l=0,r="",n&&(65279===o.charCodeAt(0)&&l++,n=void 0);l<o.length;){if(X.lastIndex=l,c=X.exec(o),f=c&&void 0!==c.index?c.index:o.length,h=o.charCodeAt(f),!c){r=o.slice(l);break}if(10===h&&l===f&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),l<f&&(s.push(o.slice(l,f)),t+=f-l),h){case 0:s.push(65533),t++;break;case 9:for(u=4*Math.ceil(t/4),s.push(-2);t++<u;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}l=f+1}return a&&(e&&s.push(-5),r&&s.push(r),s.push(null)),s}}()(e,t,!0))))};function se(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?se(e,n):ce(e,n)}return e}function ce(e,t){let r;for(r in t)if(ie.call(t,r)){const n="canContainEols"===r||"transforms"===r,o=(ie.call(e,r)?e[r]:void 0)||(e[r]=n?[]:{}),i=t[r];i&&(n?e[r]=[...o,...i]:Object.assign(o,i))}}function ue(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+(0,oe.y)({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+(0,oe.y)({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+(0,oe.y)({start:t.start,end:t.end})+") is still open")}const le=function(e){Object.assign(this,{Parser:t=>{const r=this.data("settings");return ae(t,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}},3085:(e,t,r)=>{"use strict";function n(e){if(e)throw e}r.r(t),r.d(t,{unified:()=>E});var o=r(8809),i=r(229);function a(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 s(){const e=[],t={run:function(...t){let r=-1;const n=t.pop();if("function"!=typeof n)throw new TypeError("Expected function as last argument, not "+n);!function o(i,...a){const s=e[++r];let c=-1;if(i)n(i);else{for(;++c<t.length;)null!==a[c]&&void 0!==a[c]||(a[c]=t[c]);t=a,s?function(e,t){let r;return n;function n(...t){const n=e.length>t.length;let a;n&&t.push(o);try{a=e.apply(this,t)}catch(e){const t=e;if(n&&r)throw t;return o(t)}n||(a instanceof Promise?a.then(i,o):a instanceof Error?o(a):i(a))}function o(e,...n){r||(r=!0,t(e,...n))}function i(e){o(null,e)}}(s,o)(...a):n(null,...a)}}(null,...t)},use:function(r){if("function"!=typeof r)throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}};return t}var c=r(1513);class u extends Error{constructor(e,t,r){const n=[null,null];let o={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof t&&(r=t,t=void 0),"string"==typeof r){const e=r.indexOf(":");-1===e?n[1]=r:(n[0]=r.slice(0,e),n[1]=r.slice(e+1))}t&&("type"in t||"position"in t?t.position&&(o=t.position):"start"in t||"end"in t?o=t:("line"in t||"column"in t)&&(o.start=t)),this.name=(0,c.y)(t)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="object"==typeof e?e.stack:"",this.reason=this.message,this.fatal,this.line=o.start.line,this.column=o.start.column,this.source=n[0],this.ruleId=n[1],this.position=o,this.actual,this.expected,this.file,this.url,this.note}}u.prototype.file="",u.prototype.name="",u.prototype.reason="",u.prototype.message="",u.prototype.stack="",u.prototype.fatal=null,u.prototype.column=null,u.prototype.line=null,u.prototype.source=null,u.prototype.ruleId=null,u.prototype.position=null;const l={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');f(e);let r,n=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.charCodeAt(i)){if(r){n=i+1;break}}else o<0&&(r=!0,o=i+1);return o<0?"":e.slice(n,o)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(47===e.charCodeAt(i)){if(r){n=i+1;break}}else a<0&&(r=!0,a=i+1),s>-1&&(e.charCodeAt(i)===t.charCodeAt(s--)?s<0&&(o=i):(s=-1,o=a));n===o?o=a:o<0&&(o=e.length);return e.slice(n,o)},dirname:function(e){if(f(e),0===e.length)return".";let t,r=-1,n=e.length;for(;--n;)if(47===e.charCodeAt(n)){if(t){r=n;break}}else t||(t=!0);return r<0?47===e.charCodeAt(0)?"/":".":1===r&&47===e.charCodeAt(0)?"//":e.slice(0,r)},extname:function(e){f(e);let t,r=e.length,n=-1,o=0,i=-1,a=0;for(;r--;){const s=e.charCodeAt(r);if(47!==s)n<0&&(t=!0,n=r+1),46===s?i<0?i=r:1!==a&&(a=1):i>-1&&(a=-1);else if(t){o=r+1;break}}if(i<0||n<0||0===a||1===a&&i===n-1&&i===o+1)return"";return e.slice(i,n)},join:function(...e){let t,r=-1;for(;++r<e.length;)f(e[r]),e[r]&&(t=void 0===t?e[r]:t+"/"+e[r]);return void 0===t?".":function(e){f(e);const t=47===e.charCodeAt(0);let r=function(e,t){let r,n,o="",i=0,a=-1,s=0,c=-1;for(;++c<=e.length;){if(c<e.length)r=e.charCodeAt(c);else{if(47===r)break;r=47}if(47===r){if(a===c-1||1===s);else if(a!==c-1&&2===s){if(o.length<2||2!==i||46!==o.charCodeAt(o.length-1)||46!==o.charCodeAt(o.length-2))if(o.length>2){if(n=o.lastIndexOf("/"),n!==o.length-1){n<0?(o="",i=0):(o=o.slice(0,n),i=o.length-1-o.lastIndexOf("/")),a=c,s=0;continue}}else if(o.length>0){o="",i=0,a=c,s=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(a+1,c):o=e.slice(a+1,c),i=c-a-1;a=c,s=0}else 46===r&&s>-1?s++:s=-1}return o}(e,!t);0!==r.length||t||(r=".");r.length>0&&47===e.charCodeAt(e.length-1)&&(r+="/");return t?"/"+r:r}(t)},sep:"/"};function f(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const h={cwd:function(){return"/"}};function p(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}function d(e){if("string"==typeof e)e=new URL(e);else if(!p(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 r=-1;for(;++r<t.length;)if(37===t.charCodeAt(r)&&50===t.charCodeAt(r+1)){const e=t.charCodeAt(r+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 m=["history","path","basename","stem","extname","dirname"];class g{constructor(e){let t;t=e?"string"==typeof e||o(e)?{value:e}:p(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=h.cwd(),this.value,this.stored,this.result,this.map;let r,n=-1;for(;++n<m.length;){const e=m[n];e in t&&void 0!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(r in t)m.includes(r)||(this[r]=t[r])}get path(){return this.history[this.history.length-1]}set path(e){p(e)&&(e=d(e)),v(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return"string"==typeof this.path?l.dirname(this.path):void 0}set dirname(e){b(this.basename,"dirname"),this.path=l.join(e||"",this.basename)}get basename(){return"string"==typeof this.path?l.basename(this.path):void 0}set basename(e){v(e,"basename"),y(e,"basename"),this.path=l.join(this.dirname||"",e)}get extname(){return"string"==typeof this.path?l.extname(this.path):void 0}set extname(e){if(y(e,"extname"),b(this.dirname,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=l.join(this.dirname,this.stem+(e||""))}get stem(){return"string"==typeof this.path?l.basename(this.path,this.extname):void 0}set stem(e){v(e,"stem"),y(e,"stem"),this.path=l.join(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e)}message(e,t,r){const n=new u(e,t,r);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}info(e,t,r){const n=this.message(e,t,r);return n.fatal=null,n}fail(e,t,r){const n=this.message(e,t,r);throw n.fatal=!0,n}}function y(e,t){if(e&&e.includes(l.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+l.sep+"`")}function v(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function b(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const E=function e(){const t=s(),r=[];let c,u={},l=-1;return f.data=function(e,t){if("string"==typeof e)return 2===arguments.length?(k("data",c),u[e]=t,f):w.call(u,e)&&u[e]||null;if(e)return k("data",c),u=e,f;return u},f.Parser=void 0,f.Compiler=void 0,f.freeze=function(){if(c)return f;for(;++l<r.length;){const[e,...n]=r[l];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const o=e.call(f,...n);"function"==typeof o&&t.use(o)}return c=!0,l=Number.POSITIVE_INFINITY,f},f.attachers=r,f.use=function(e,...t){let n;if(k("use",c),null==e);else if("function"==typeof e)h(e,...t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?l(e):s(e)}n&&(u.settings=Object.assign(u.settings||{},n));return f;function o(e){if("function"==typeof e)h(e);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...r]=e;h(t,...r)}else s(e)}}function s(e){l(e.plugins),e.settings&&(n=Object.assign(n||{},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 h(e,t){let n,o=-1;for(;++o<r.length;)if(r[o][0]===e){n=r[o];break}n?(a(n[1])&&a(t)&&(t=i(!0,n[1],t)),n[1]=t):r.push([...arguments])}},f.parse=function(e){f.freeze();const t=F(e),r=f.Parser;if(S("parse",r),x(r,"parse"))return new r(String(t),t).parse();return r(String(t),t)},f.stringify=function(e,t){f.freeze();const r=F(t),n=f.Compiler;if(A("stringify",n),D(e),x(n,"compile"))return new n(e,r).compile();return n(e,r)},f.run=function(e,r,n){D(e),f.freeze(),n||"function"!=typeof r||(n=r,r=void 0);if(!n)return new Promise(o);function o(o,i){function a(t,r,a){r=r||e,t?i(t):o?o(r):n(null,r,a)}t.run(e,F(r),a)}o(null,n)},f.runSync=function(e,t){let r,o;return f.run(e,t,i),C("runSync","run",o),r;function i(e,t){n(e),r=t,o=!0}},f.process=function(e,t){if(f.freeze(),S("process",f.Parser),A("process",f.Compiler),!t)return new Promise(r);function r(r,n){const i=F(e);function a(e,o){e||!o?n(e):r?r(o):t(null,o)}f.run(f.parse(i),i,((e,t,r)=>{if(!e&&t&&r){const n=f.stringify(t,r);null==n||(!function(e){return"string"==typeof e||o(e)}(n)?r.result=n:r.value=n),a(e,r)}else a(e)}))}r(null,t)},f.processSync=function(e){let t;f.freeze(),S("processSync",f.Parser),A("processSync",f.Compiler);const r=F(e);return f.process(r,o),C("processSync","process",t),r;function o(e){t=!0,n(e)}},f;function f(){const t=e();let n=-1;for(;++n<r.length;)t.use(...r[n]);return t.data(i(!0,{},u)),t}}().freeze(),w={}.hasOwnProperty;function x(e,t){return"function"==typeof e&&e.prototype&&(function(e){let t;for(t in e)if(w.call(e,t))return!0;return!1}(e.prototype)||t in e.prototype)}function S(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Parser`")}function A(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Compiler`")}function k(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 D(e){if(!a(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function C(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function F(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new g(e)}},213:(e,t,r)=>{"use strict";r.r(t),r.d(t,{convert:()=>o,is:()=>n});const n=function e(t,r,n,i,a){const s=o(r);if(null!=n&&("number"!=typeof n||n<0||n===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(!(null==i||e(i)&&i.children))throw new Error("Expected parent node");if(null==i!=(null==n))throw new Error("Expected both parent and index");return!(!t||!t.type||"string"!=typeof t.type)&&Boolean(s.call(a,t,n,i))},o=function(e){if(null==e)return a;if("string"==typeof e)return function(e){return i(t);function t(t){return t&&t.type===e}}(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=o(e[r]);return i(n);function n(...e){let r=-1;for(;++r<t.length;)if(t[r].call(this,...e))return!0;return!1}}(e):function(e){return i(t);function t(t){let r;for(r in e)if(t[r]!==e[r])return!1;return!0}}(e);if("function"==typeof e)return i(e);throw new Error("Expected function, string, or object as test")};function i(e){return function(...t){return Boolean(e.call(this,...t))}}function a(){return!0}},907:(e,t,r)=>{"use strict";r.r(t),r.d(t,{matches:()=>N,select:()=>M,selectAll:()=>H});var n={}.hasOwnProperty;function o(e,t){var r=t||{};function o(t){var r=o.invalid,i=o.handlers;if(t&&n.call(t,e)&&(r=n.call(i,t[e])?i[t[e]]:o.unknown),r)return r.apply(this,arguments)}return o.handlers=r.handlers||{},o.invalid=r.invalid,o.unknown=r.unknown,o}function i(e){return Array.isArray(e.children)}const a={}.hasOwnProperty,s=o("nestingOperator",{unknown:function(e){throw new Error("Unexpected nesting `"+e.nestingOperator+"`")},invalid:function(e,t,r,n,o){if(n)throw new Error("topScan is supposed to be called from the root node");if(!o.iterator)throw new Error("Expected `iterator` to be defined");if("number"!=typeof r)throw new TypeError("Expected `index` to be defined");o.iterator(e,t,r,n,o),o.shallow||c(e,t,r,n,o)},handlers:{null:c,">":u,"+":function(e,t,r,n,o){if("number"!=typeof r)throw new TypeError("Expected `index` to be defined");if(!n)return;new l(e,n,o).prefillTypeIndex(0,++r).each(r,++r).prefillTypeIndex(r).done()},"~":function(e,t,r,n,o){if("number"!=typeof r)throw new TypeError("Expected `index` to be defined");if(!n)return;new l(e,n,o).prefillTypeIndex(0,++r).each(r).done()}}});function c(e,t,r,n,o){if(!o.iterator)throw new Error("Expected `iterator` to be defined");const i=o.iterator;o.iterator=function e(t,r,n,o,a){if(a.iterator=i,i(t,r,n,o,a),a.iterator=e,a.one&&a.found)return;u(t,r,n,o,a)},u(e,t,r,n,o)}function u(e,t,r,n,o){i(t)&&0!==t.children.length&&new l(e,t,o).each().done()}class l{constructor(e,t,r){this.query=e,this.parent=t,this.state=r,this.typeIndex=r.index?new f:void 0,this.delayed=[]}prefillTypeIndex(e,t){let[r,n]=this.defaults(e,t);if(this.typeIndex)for(;r<n;)this.typeIndex.index(this.parent.children[r]),r++;return this}each(e,t){const[r,n]=this.defaults(e,t),o=this.parent.children[r];let i,a;if(r>=n)return this;if(this.typeIndex)a=this.typeIndex.nodes,i=this.typeIndex.index(o),this.delayed.push((function(){if(!this.typeIndex)throw new TypeError("Expected `typeIndex` to be defined");if(!this.state.iterator)throw new Error("Expected `iterator` to be defined");this.state.typeIndex=i,this.state.nodeIndex=a,this.state.typeCount=this.typeIndex.count(o),this.state.nodeCount=this.typeIndex.nodes,this.state.iterator(this.query,o,r,this.parent,this.state)}));else{if(!this.state.iterator)throw new Error("Expected `iterator` to be defined");this.state.iterator(this.query,o,r,this.parent,this.state)}return this.state.one&&this.state.found?this:this.each(r+1,n)}done(){let e=-1;for(;++e<this.delayed.length&&(this.delayed[e].call(this),!this.state.one||!this.state.found););return this}defaults(e,t){return(null==e||e<0)&&(e=0),(null==t||t>this.parent.children.length)&&(t=this.parent.children.length),[e,t]}}class f{constructor(){this.counts={},this.nodes=0}index(e){const t=e.type;return this.nodes++,a.call(this.counts,t)||(this.counts[t]=0),this.counts[t]++}count(e){return this.counts[e.type]}}const h=(0,r(213).convert)(),p=o("name",{unknown:function(e){if(e.name)throw new Error("Unknown pseudo-selector `"+e.name+"`");throw new Error("Unexpected pseudo-element or empty pseudo-class")},invalid:function(){throw new Error("Invalid pseudo-selector")},handlers:{any:m,blank:g,empty:g,"first-child":function(e,t,r,n,o){return y(o,e),0===o.nodeIndex},"first-of-type":function(e,t,r,n,o){return y(o,e),0===o.typeIndex},has:function(e,t,r,n,o){const i=o.shallow,a=o.one,s=o.scopeNodes,c=function(e){const t="ruleSet"===e.type?{type:"selectors",selectors:[e]}:e;let r,n=-1;for(;++n<t.selectors.length;)r=t.selectors[n].rule,r.nestingOperator=null,r.pseudos&&1===r.pseudos.length&&"scope"===r.pseudos[0].name||(t.selectors[n]={type:"ruleSet",rule:{type:"rule",rule:r,pseudos:[{name:"scope"}]}});return t}(e.value),u=o.any;o.shallow=!1,o.one=!0,o.scopeNodes=[t];const l=Boolean(u(c,t,o)[0]);return o.shallow=i,o.one=a,o.scopeNodes=s,l},"last-child":function(e,t,r,n,o){return y(o,e),"number"==typeof o.nodeCount&&o.nodeIndex===o.nodeCount-1},"last-of-type":function(e,t,r,n,o){return y(o,e),"number"==typeof o.typeCount&&o.typeIndex===o.typeCount-1},matches:m,not:function(e,t,r,n,o){return!m(e,t,r,n,o)},"nth-child":function(e,t,r,n,o){return y(o,e),"number"==typeof o.nodeIndex&&e.value(o.nodeIndex)},"nth-last-child":function(e,t,r,n,o){return y(o,e),"number"==typeof o.nodeCount&&"number"==typeof o.nodeIndex&&e.value(o.nodeCount-o.nodeIndex-1)},"nth-of-type":function(e,t,r,n,o){return y(o,e),"number"==typeof o.typeIndex&&e.value(o.typeIndex)},"nth-last-of-type":function(e,t,r,n,o){return y(o,e),"number"==typeof o.typeIndex&&"number"==typeof o.typeCount&&e.value(o.typeCount-1-o.typeIndex)},"only-child":function(e,t,r,n,o){return y(o,e),1===o.nodeCount},"only-of-type":function(e,t,r,n,o){return y(o,e),1===o.typeCount},root:function(e,t,r,n){return h(t)&&!n},scope:function(e,t,r,n,o){return h(t)&&void 0!==o.scopeNodes&&o.scopeNodes.includes(t)}}});function d(e,t,r,n,o){const i=e.pseudos;let a=-1;for(;++a<i.length;)if(!p(i[a],t,r,n,o))return!1;return!0}function m(e,t,r,n,o){const i=o.shallow,a=o.one;o.one=!0,o.shallow=!0;const s=o.any(e.value,t,o)[0]===t;return o.shallow=i,o.one=a,s}function g(e,t){return i(t)?0===t.children.length:!("value"in t)}function y(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}d.needsIndex=["first-child","first-of-type","last-child","last-of-type","nth-child","nth-last-child","nth-of-type","nth-last-of-type","only-child","only-of-type"];const v=o("operator",{unknown:function(e){throw new Error("Unknown operator `"+e.operator+"`")},invalid:b,handlers:{"=":function(e,t){return b(e,t)&&String(t[e.name])===e.value},"^=":function(e,t){const r=t[e.name];return e.value&&"string"==typeof r&&r.slice(0,e.value.length)===e.value},"$=":function(e,t){const r=t[e.name];return e.value&&"string"==typeof r&&r.slice(-e.value.length)===e.value},"*=":function(e,t){const r=t[e.name];return e.value&&"string"==typeof r&&r.includes(e.value)},"~=":function(e,t){const r=t[e.name];if(null==r)return!1;if(Array.isArray(r)&&r.includes(e.value))return!0;return String(r)===e.value}}});function b(e,t){return null!==t[e.name]&&void 0!==t[e.name]}function E(e,t,r,n,o){if(e.id)throw new Error("Invalid selector: id");if(e.classNames)throw new Error("Invalid selector: class");return Boolean(t&&(!e.tagName||function(e,t){return"*"===e.tagName||e.tagName===t.type}(e,t))&&(!e.attrs||function(e,t){let r=-1;for(;++r<e.attrs.length;)if(!v(e.attrs[r],t))return!1;return!0}(e,t))&&(!e.pseudos||d(e,t,r,n,o)))}const w=o("type",{unknown:function(e){throw new Error("Unknown type `"+e.type+"`")},invalid:function(){throw new Error("Invalid type")},handlers:{selectors:function(e,t,r){const n=D(r.one);let o=-1;for(;++o<e.selectors.length;)n(S(e.selectors[o],t,r));return n.result},ruleSet:S,rule:A}});function x(e,t,r){return e&&t?w(e,t,r):[]}function S(e,t,r){return A(e.rule,t,r)}function A(e,t,r){const n=D(r.one);if(r.shallow&&e.rule)throw new Error("Expected selector without nesting");var o;return s(e,t,0,null,k(e,{scopeNodes:(o=t,"RootNode"===o.type||"root"===o.type?t.children:[t]),index:!1,iterator:function(e,t,r,o,i){E(e,t,r,o,i)&&(e.rule?s(e.rule,t,r,o,k(e.rule,i)):(n(t),i.found=!0))},one:r.one,shallow:r.shallow,any:r.any})),n.result}function k(e,t){const r=e.pseudos||[];let n=-1;for(;++n<r.length;)if(d.needsIndex.includes(r[n].name)){t.index=!0;break}return t}function D(e){const t=[];let r;return n.result=t,n;function n(e){let t=-1;if("length"in e)for(;++t<e.length;)o(e[t]);else o(e)}function o(n){if(e){if(r)throw new Error("Cannot collect multiple nodes");r=!0}t.includes(n)||t.push(n)}}var C=r(301);const F=new Set([9,10,12,13,32]),P="0".charCodeAt(0),O="9".charCodeAt(0);var T=r(9377);const j=function(e){return function(e){const t=e[0],r=e[1]-1;if(r<0&&t<=0)return T.falseFunc;if(-1===t)return e=>e<=r;if(0===t)return e=>e===r;if(1===t)return r<0?T.trueFunc:e=>e>=r;const n=Math.abs(t),o=(r%n+n)%n;return t>1?e=>e>=r&&e%n===o:e=>e<=r&&e%n===o}(function(e){if("even"===(e=e.trim().toLowerCase()))return[2,0];if("odd"===e)return[2,1];let t=0,r=0,n=i(),o=a();if(t<e.length&&"n"===e.charAt(t)&&(t++,r=n*(null!=o?o:1),s(),t<e.length?(n=i(),s(),o=a()):n=o=0),null===o||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[r,n*o];function i(){return"-"===e.charAt(t)?(t++,-1):("+"===e.charAt(t)&&t++,1)}function a(){const r=t;let n=0;for(;t<e.length&&e.charCodeAt(t)>=P&&e.charCodeAt(t)<=O;)n=10*n+(e.charCodeAt(t)-P),t++;return t===r?null:n}function s(){for(;t<e.length&&F.has(e.charCodeAt(t));)t++}}(e))}.default,I=new Set(["nth-child","nth-last-child","nth-of-type","nth-last-of-type"]),_=new C.N;_.registerAttrEqualityMods("~","^","$","*"),_.registerSelectorPseudos("any","matches","not","has"),_.registerNestingOperators(">","+","~");const R=o("type",{handlers:{selectors:function(e){const t=e.selectors;let r=-1;for(;++r<t.length;)R(t[r]);return e},ruleSet:function(e){return L(e.rule)},rule:L}});function B(e){if("string"!=typeof e)throw new TypeError("Expected `string` as selector, not `"+e+"`");return R(_.parse(e))}function L(e){const t=e.pseudos||[];let r,n=-1;for(;++n<t.length;)r=t[n],I.has(r.name)&&(r.value=j(r.value),r.valueType="function");return R(e.rule),e}function N(e,t){return Boolean(x(B(e),t,{one:!0,shallow:!0,any:x})[0])}function M(e,t){return x(B(e),t,{one:!0,any:x})[0]||null}function H(e,t){return x(B(e),t,{any:x})}},1513:(e,t,r)=>{"use strict";function n(e){return e&&"object"==typeof e?"position"in e||"type"in e?i(e.position):"start"in e||"end"in e?i(e):"line"in e||"column"in e?o(e):"":""}function o(e){return a(e&&e.line)+":"+a(e&&e.column)}function i(e){return o(e&&e.start)+"-"+o(e&&e.end)}function a(e){return e&&"number"==typeof e?e:1}r.d(t,{y:()=>n})},7918:(e,t,r)=>{"use strict";r.d(t,{dR:()=>o,BK:()=>a,AM:()=>i,S4:()=>s});var n=r(213);const o=!0,i="skip",a=!1,s=function(e,t,r,s){"function"==typeof t&&"function"!=typeof r&&(s=r,r=t,t=null);const c=(0,n.convert)(t),u=s?-1:1;!function e(n,l,f){const h="object"==typeof n&&null!==n?n:{};let p;"string"==typeof h.type&&(p="string"==typeof h.tagName?h.tagName:"string"==typeof h.name?h.name:void 0,Object.defineProperty(d,"name",{value:"node ("+h.type+(p?"<"+p+">":"")+")"}));return d;function d(){let h,p,d,m=[];if((!t||c(n,l,f[f.length-1]||null))&&(m=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[o,e];return[e]}(r(n,f)),m[0]===a))return m;if(n.children&&m[0]!==i)for(p=(s?n.children.length:-1)+u,d=f.concat(n);p>-1&&p<n.children.length;){if(h=e(n.children[p],p,d)(),h[0]===a)return h;p="number"==typeof h[1]?h[1]:p+u}return m}}(e,null,[])()}},3428:(e,t,r)=>{"use strict";r.r(t),r.d(t,{CONTINUE:()=>n.dR,EXIT:()=>n.BK,SKIP:()=>n.AM,visit:()=>o});var n=r(7918);const o=function(e,t,r,o){"function"==typeof t&&"function"!=typeof r&&(o=r,r=t,t=null),(0,n.S4)(e,t,(function(e,t){const n=t[t.length-1];return r(e,n?n.children.indexOf(e):null,n)}),o)}},3633:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON Schema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},4222:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},9354:e=>{"use strict";e.exports=JSON.parse('["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"]')}},s={};function c(e){var t=s[e];if(void 0!==t)return t.exports;var r=s[e]={id:e,loaded:!1,exports:{}};return a[e].call(r.exports,r,r.exports,c),r.loaded=!0,r.exports}c.m=a,c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var o=Object.create(null);c.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var a=2&n&&r;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>i[e]=()=>r[e]));return i.default=()=>r,c.d(o,i),o},c.d=(e,t)=>{for(var r in t)c.o(t,r)&&!c.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce(((t,r)=>(c.f[r](e,t),t)),[])),c.u=e=>e+"-"+{7:"7d6f45",267:"b5c5b0",363:"a6af82",812:"edff19"}[e]+".js",c.miniCssF=e=>e+".css",c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},n="@topwrite/reader:",c.l=(e,t,o,i)=>{if(r[e])r[e].push(t);else{var a,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var f=u[l];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==n+o){a=f;break}}a||(s=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,c.nc&&a.setAttribute("nonce",c.nc),a.setAttribute("data-webpack",n+o),a.src=e),r[e]=[t];var h=(t,n)=>{a.onerror=a.onload=null,clearTimeout(p);var o=r[e];if(delete r[e],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((e=>e(n))),t)return t(n)},p=setTimeout(h.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=h.bind(null,a.onerror),a.onload=h.bind(null,a.onload),s&&document.head.appendChild(a)}},c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;c.g.importScripts&&(e=c.g.location+"");var t=c.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),c.p=e})(),o=e=>new Promise(((t,r)=>{var n=c.miniCssF(e),o=c.p+n;if(((e,t)=>{for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var o=(a=r[n]).getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(o===e||o===t))return a}var i=document.getElementsByTagName("style");for(n=0;n<i.length;n++){var a;if((o=(a=i[n]).getAttribute("data-href"))===e||o===t)return a}})(n,o))return t();((e,t,r,n)=>{var o=document.createElement("link");o.rel="stylesheet",o.type="text/css",o.onerror=o.onload=i=>{if(o.onerror=o.onload=null,"load"===i.type)r();else{var a=i&&("load"===i.type?"missing":i.type),s=i&&i.target&&i.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+s+")");c.code="CSS_CHUNK_LOAD_FAILED",c.type=a,c.request=s,o.parentNode.removeChild(o),n(c)}},o.href=t,document.head.appendChild(o)})(e,o,t,r)})),i={826:0},c.f.miniCss=(e,t)=>{i[e]?t.push(i[e]):0!==i[e]&&{363:1}[e]&&t.push(i[e]=o(e).then((()=>{i[e]=0}),(t=>{throw delete i[e],t})))},(()=>{var e={826:0};c.f.j=(t,r)=>{var n=c.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise(((r,o)=>n=e[t]=[r,o]));r.push(n[2]=o);var i=c.p+c.u(t),a=new Error;c.l(i,(r=>{if(c.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,n[1](a)}}),"chunk-"+t,t)}};var t=(t,r)=>{var n,o,[i,a,s]=r,u=0;if(i.some((t=>0!==e[t]))){for(n in a)c.o(a,n)&&(c.m[n]=a[n]);if(s)s(c)}for(t&&t(r);u<i.length;u++)o=i[u],c.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=self.webpackChunk_topwrite_reader=self.webpackChunk_topwrite_reader||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var u={};(()=>{"use strict";c.r(u),c.d(u,{Anchor:()=>ue,Article:()=>ye,BaseConfig:()=>t.l_,Book:()=>t.fy,Breadcrumb:()=>ke,Catalog:()=>Ae,CatalogItems:()=>we,Config:()=>t.De,File:()=>t.$B,Helmet:()=>t.ql,InjectedComponent:()=>t.cu,InjectedComponentSet:()=>t.IA,IntlContext:()=>t.fH,LetterAvatar:()=>t.$q,Level:()=>t.aC,Link:()=>ae,Logo:()=>ie,Markdown:()=>me,Model:()=>t.Hn,Plugin:()=>t.Sy,PoweredBy:()=>oe,Summary:()=>t.ER,SummaryArticle:()=>t.oI,SummaryPart:()=>t.Lj,ToFirstArticle:()=>De,VERSION:()=>t.q4,aes:()=>t.rK,base64:()=>t.US,bootstrap:()=>J,createApplication:()=>t.W3,createComponentDescriptor:()=>t.nC,createGlobalStyle:()=>t.vJ,createStorageSlot:()=>t.WA,css:()=>t.iv,getPayload:()=>t.He,getPublicPath:()=>t.Ak,history:()=>A,isEncryptedData:()=>t.oe,isMac:()=>t.V5,isUrl:()=>t.CB,keyframes:()=>t.F4,listStorageKeys:()=>t._f,loadjs:()=>t.j0,markdown:()=>t.JH,md5:()=>t.FB,pluginCenter:()=>t.YB,request:()=>t.WY,styled:()=>t.zo,useActions:()=>t.ol,useArticle:()=>$,useAssetUrl:()=>ee,useAsync:()=>t.r5,useAsyncCallback:()=>t.UK,useAsyncEffect:()=>t.bd,useAsyncFetchMore:()=>t.r3,useBook:()=>t.CQ,useDebounce:()=>t.Nr,useDocumentTitle:()=>t.jr,useEvent:()=>t.zX,useEventTarget:()=>t.Rs,useFile:()=>N,useHotkeys:()=>t.y1,useInPreview:()=>ne,useIntl:()=>t.cw,useLockBodyScroll:()=>re,useLogo:()=>Q,useModel:()=>t.tT,useNextArticle:()=>q,useOptions:()=>t.D2,usePrevArticle:()=>V,usePrevious:()=>t.D9,useSelector:()=>t.v9,useStateWithCallback:()=>t.CM,useThemeConfig:()=>t.LU,useThemeContext:()=>t.TC,useThrottle:()=>t.fB,useTitle:()=>z,useWindowSize:()=>te.Z,windowSizes:()=>te.D});var e={};c.r(e),c.d(e,{book:()=>D,page:()=>F,search:()=>O}),Date.prototype.format=function(e){const t={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length)));for(const r in t)new RegExp("("+r+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?t[r]:("00"+t[r]).substr((""+t[r]).length)));return e};var t=c(8924),r=c(4246),n=c(1533),o=c.n(n),i=c(8907);t.$B.prototype[i.sc]=!0;var a,s=c(7363),l=c.n(s),f=c(4649),h=c(5773);!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(a||(a={}));var p=function(e){return e};var d="beforeunload",m="popstate";function g(e,t,r){return Math.min(Math.max(e,t),r)}function y(e){e.preventDefault(),e.returnValue=""}function v(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function b(){return Math.random().toString(36).substr(2,8)}function E(e){var t=e.pathname,r=void 0===t?"/":t,n=e.search,o=void 0===n?"":n,i=e.hash,a=void 0===i?"":i;return o&&"?"!==o&&(r+="?"===o.charAt(0)?o:"?"+o),a&&"#"!==a&&(r+="#"===a.charAt(0)?a:"#"+a),r}function w(e){var t={};if(e){var r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));var n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}const x="undefined"!=typeof window&&window.history&&!navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]\D|WebApps\/.+CFNetwork)/)&&"file:"!==window.location.protocol;class S{constructor(){(0,f.Z)(this,"history",void 0),this.history=x?function(e){void 0===e&&(e={});var t=e.window,r=void 0===t?document.defaultView:t,n=r.history;function o(){var e=r.location,t=e.pathname,o=e.search,i=e.hash,a=n.state||{};return[a.idx,p({pathname:t,search:o,hash:i,state:a.usr||null,key:a.key||"default"})]}var i=null;r.addEventListener(m,(function(){if(i)g.call(i),i=null;else{var e=a.Pop,t=o(),r=t[0],n=t[1];if(g.length){if(null!=r){var s=u-r;s&&(i={action:e,location:n,retry:function(){C(-1*s)}},C(s))}}else D(e)}}));var s=a.Pop,c=o(),u=c[0],l=c[1],f=v(),g=v();function x(e){return"string"==typeof e?e:E(e)}function S(e,t){return void 0===t&&(t=null),p((0,h.Z)({pathname:l.pathname,hash:"",search:""},"string"==typeof e?w(e):e,{state:t,key:b()}))}function A(e,t){return[{usr:e.state,key:e.key,idx:t},x(e)]}function k(e,t,r){return!g.length||(g.call({action:e,location:t,retry:r}),!1)}function D(e){s=e;var t=o();u=t[0],l=t[1],f.call({action:s,location:l})}function C(e){n.go(e)}return null==u&&(u=0,n.replaceState((0,h.Z)({},n.state,{idx:u}),"")),{get action(){return s},get location(){return l},createHref:x,push:function e(t,o){var i=a.Push,s=S(t,o);if(k(i,s,(function(){e(t,o)}))){var c=A(s,u+1),l=c[0],f=c[1];try{n.pushState(l,"",f)}catch(e){r.location.assign(f)}D(i)}},replace:function e(t,r){var o=a.Replace,i=S(t,r);if(k(o,i,(function(){e(t,r)}))){var s=A(i,u),c=s[0],l=s[1];n.replaceState(c,"",l),D(o)}},go:C,back:function(){C(-1)},forward:function(){C(1)},listen:function(e){return f.push(e)},block:function(e){var t=g.push(e);return 1===g.length&&r.addEventListener(d,y),function(){t(),g.length||r.removeEventListener(d,y)}}}}():function(e){void 0===e&&(e={});var t=e,r=t.initialEntries,n=void 0===r?["/"]:r,o=t.initialIndex,i=n.map((function(e){return p((0,h.Z)({pathname:"/",search:"",hash:"",state:null,key:b()},"string"==typeof e?w(e):e))})),s=g(null==o?i.length-1:o,0,i.length-1),c=a.Pop,u=i[s],l=v(),f=v();function d(e,t){return void 0===t&&(t=null),p((0,h.Z)({pathname:u.pathname,search:"",hash:""},"string"==typeof e?w(e):e,{state:t,key:b()}))}function m(e,t,r){return!f.length||(f.call({action:e,location:t,retry:r}),!1)}function y(e,t){c=e,u=t,l.call({action:c,location:u})}function x(e){var t=g(s+e,0,i.length-1),r=a.Pop,n=i[t];m(r,n,(function(){x(e)}))&&(s=t,y(r,n))}return{get index(){return s},get action(){return c},get location(){return u},createHref:function(e){return"string"==typeof e?e:E(e)},push:function e(t,r){var n=a.Push,o=d(t,r);m(n,o,(function(){e(t,r)}))&&(s+=1,i.splice(s,i.length,o),y(n,o))},replace:function e(t,r){var n=a.Replace,o=d(t,r);m(n,o,(function(){e(t,r)}))&&(i[s]=o,y(n,o))},go:x,back:function(){x(-1)},forward:function(){x(1)},listen:function(e){return l.push(e)},block:function(e){return f.push(e)}}}({initialEntries:[window.location]})}get location(){const e=this.history.location;return{...e,toString:()=>E(e)}}listen(e){this.history.listen(e)}replace(e){return this.history.replace(e)}push(e){return this.history.push(e)}}let A;class k extends t.Hn{}const D=new k;class C extends t.Hn{constructor(){super(...arguments),(0,f.Z)(this,"initialState",{loading:!1,request:t.WY.create(),config:{}})}subscription(e){let{fetch:t}=e,r=A.location;A.listen((async e=>{let{location:n}=e;r.pathname!==n.pathname&&(t(n.pathname),requestAnimationFrame((()=>{window.scrollTo(0,0)}))),r=n}))}async*fetch(e){yield this.setState((e=>{e.loading=!0}));const{request:r,config:n}=yield*this.getState("page");try{const o=decodeURI(e);let{data:i}=await r.get(o,n);"string"==typeof i&&(i=(0,t.He)(i));const{file:a,lfs:s}=i;yield this.setState((e=>{e.file=new t.$B(a),e.lfs=s}))}catch(e){yield this.setState((t=>{t.error=e}))}finally{yield this.setState((e=>{e.loading=!1}))}}*intercept(e){const{request:t}=yield*this.getState("page");e(t.interceptors)}*updateConfig(e){yield this.setState((t=>{e(t.config)}))}}const F=new C;class P extends t.Hn{constructor(){super(...arguments),(0,f.Z)(this,"initialState",{status:"idle",results:[],query:""})}async*fetch(e){if(e=e.trim()){yield this.setState((t=>{t.query=e,t.status="loading"}));let{handler:t}=yield*this.getState("search");if(!t){const{summary:r}=yield*this.getState("book");t=()=>{const t=[];return r.getArticle((r=>{const n=r.getPath();return r.title.includes(e)&&n&&t.push({title:r.title,path:n}),!1})),t}}try{const r=await t(e);yield this.setState((e=>{e.results=r,e.status="idle"}))}catch{yield this.setState((e=>{e.results=[],e.status="error"}))}}else yield this.setState((t=>{t.query=e,t.status="idle",t.results=[]}))}*setHandler(e){yield this.setState((t=>{t.handler=e}))}}const O=new P;var T,j,I=c(8891),_=c(669);function R(){return(0,r.jsx)(L,{children:(0,r.jsx)(B,{})})}const B=t.zo.div(T||(T=(0,_.Z)(["\n @keyframes spinner-border {\n to {\n transform: rotate(360deg)\n }\n }\n\n display: inline-block;\n width: 2rem;\n height: 2rem;\n vertical-align: -0.125em;\n border: 0.25em solid #3c60ff;\n border-right-color: transparent;\n border-radius: 50%;\n animation: 0.75s linear infinite spinner-border;\n"]))),L=t.zo.div(j||(j=(0,_.Z)(["\n position: fixed;\n top: 0;\n left: 0;\n height: 100vh;\n width: 100vw;\n display: flex;\n align-items: center;\n justify-content: center;\n"])));function N(){const{file:e}=(0,t.v9)("page");return e}const M=(0,s.createContext)(void 0);function H(e){let{children:n}=e;const o=N(),{result:i,loading:a}=(0,t.r5)((async()=>{const{data:e}=await(0,t.WY)(o.relative(t.fy.style));return e}),[]);return a?null:(0,r.jsx)(M.Provider,{value:i,children:n})}function z(){const e=(0,t.cw)(),{config:r}=(0,t.CQ)();return r.getValue("title",e.formatMessage({id:"n24ytq",defaultMessage:[{type:0,value:"未命名文档"}]}))}const U=(0,s.createContext)(void 0);function $(){return(0,s.useContext)(U)}function q(){const{summary:e}=(0,t.CQ)(),r=$();if(r)return(0,s.useMemo)((()=>{const t=r.getLevel();let n=!1;return e.getArticle((e=>n?!!e.getPath():(n=e.getLevel()==t,!1)))}),[e,r])}function V(){const{summary:e}=(0,t.CQ)(),r=$();if(r)return(0,s.useMemo)((()=>{const t=r.getLevel();let n;return e.getArticle((e=>e.getLevel()==t||(e.getPath()&&(n=e),!1))),n}),[e,r])}const G=(0,s.createContext)(void 0);function W(e){let{children:n}=e;const[o,i]=(0,s.useState)((()=>"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=")),a=N();return(0,s.useEffect)((()=>{const e=a.relative(t.fy.logo),r=new Image;r.addEventListener("load",(function(){const e=document.createElement("canvas");e.height=this.height,e.width=this.width;const t=e.getContext("2d");t&&(t.drawImage(this,0,0),e.toBlob((e=>{e&&i(window.URL.createObjectURL(e))})))})),r.src=e}),[]),(0,r.jsx)(G.Provider,{value:o,children:n})}function Q(){return(0,s.useContext)(G)}const K=l().lazy((()=>Promise.all([c.e(812),c.e(363)]).then(c.bind(c,4363))));function Z(){const{summary:e}=(0,t.CQ)(),n=z(),o=N(),i=(0,s.useMemo)((()=>e.getArticle((e=>e.getPath()===o.path))),[e,o]);(0,s.useEffect)((()=>{window.dispatchEvent(new Event("bootstrapped"))}),[]);const a=Q();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(t.ql,{children:[(0,r.jsx)("title",{children:"".concat(i?"".concat(i.title," - "):"").concat(n)}),(0,r.jsx)("link",{rel:"shortcut icon",href:a,type:"image/png"})]}),(0,r.jsxs)(U.Provider,{value:i,children:[(0,r.jsx)(t.cu,{role:"app"}),(0,r.jsx)(t.cu,{role:"page"}),(0,r.jsx)(l().Suspense,{fallback:null,children:(0,r.jsx)(t.cu,{role:"page:menu",component:K})})]})]})}async function Y(e){return"en"===e?c.e(7).then(c.t.bind(c,2007,19)):c.e(267).then(c.t.bind(c,3267,19))}function X(){const[n,o]=(0,s.useState)();return(0,t.bd)((async()=>{try{const{location:n}=A=new S;let i=(0,t.He)();if(!i){i=(await t.WY.get(n.toString())).data}let{id:a,summary:s,file:c,config:u={},options:l={},lfs:f,pluginsCenter:h}=i;u=t.De.createFromObject(u),s=t.ER.create(s);const p=new t.fy(a,u,s),d={page:{config:{params:I.parse(n.search)},file:new t.$B(c),lfs:f},options:l},m=await(0,t.W3)("reader",p,e,d,Y,h),g=(0,r.jsx)(m,{children:(0,r.jsx)(W,{children:(0,r.jsx)(H,{children:(0,r.jsx)(Z,{})})})});o(g)}catch(e){var n;if(console.error(e),t.WY.isAxiosError(e))o((null===(n=e.response)||void 0===n?void 0:n.data)||e.message);else o(e.message)}}),[]),n||(0,r.jsx)(R,{})}const J=()=>{o().render((0,r.jsx)(X,{}),document.getElementById("root"))};function ee(e){const{lfs:r,file:n}=(0,t.v9)("page");if(!r)return n.relative(e);{const{url:t,files:n}=r,o=n[e];if(o)return t.replace("{oid}",o)}}var te=c(9958);function re(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];(0,s.useEffect)((()=>(document.body.style.overflow=e?"hidden":"visible",window.scrollTo(0,0),()=>{document.body.style.overflow="visible"})),[e])}function ne(){const{preview:e=!1}=(0,t.v9)("options");return e}function oe(e){let{className:n}=e;const o=(0,t.cw)(),{poweredBy:i}=(0,t.v9)("options");return i?(0,r.jsx)("div",{className:n,children:o.formatMessage({id:"IHXx7d",defaultMessage:[{type:0,value:"本文档使用 "},{type:1,value:"link"},{type:0,value:" 构建"}]},{link:(0,r.jsx)("a",{href:i.link,target:"_blank",children:i.name})})}):null}function ie(e){let{size:t=60,className:n}=e;const o=Q();return(0,r.jsx)("img",{className:n,src:o,width:t,height:t,alt:"logo"})}function ae(e){let{children:n,to:o,className:i,...a}=e;const c=N(),{loading:u}=(0,t.v9)("page");let l;o instanceof t.oI?(l=o.getPath(),n||(n=o.getTitle())):l=o;const f=l?c.relative(l):"#!",h=(0,s.useCallback)((e=>{if(e.preventDefault(),l&&!u){const t={pathname:"",search:"",hash:"",...w(e.currentTarget.pathname)};A.push(t)}}),[l,u]);return(0,r.jsx)("a",{...a,onClick:h,className:i,href:f,children:n})}var se=c(7425),ce=c.n(se);const ue=e=>{let{base:n,href:o,...i}=e;const{summary:a}=(0,t.CQ)();if(o){if(!(0,t.CB)(o)){let e=o;if(".md"===ce().extname(o)){let t;t=n?decodeURIComponent(ce().join(ce().dirname(n),o)):o;const r=a.getArticle((e=>e.ref===t));r&&(e=r)}return(0,r.jsx)(ae,{to:e,...i})}i.target="_blank"}return(0,r.jsx)("a",{href:o,...i,rel:"noopener noreferrer"})};var le,fe=c(3440);function he(e){let{element:n,src:o,...i}=e;const{lfs:a,file:s}=(0,t.v9)("page");if(o&&a&&!(0,fe.CB)(o)&&s){const{url:e,files:t}=a,r=t[s.resolve(decodeURIComponent(o))];r&&(o=e.replace("{oid}",r))}return(0,r.jsx)(t.cu,{role:"page:asset",props:{src:o,...i},component:n})}const pe=t.zo.a(le||(le=(0,_.Z)(["\n display: block;\n position: relative;\n top: -.5rem;\n"]))),de={a:function(e){const t=N();return(0,r.jsx)(ue,{...e,base:t.path})},img:function(e){return(0,r.jsx)(he,{element:"img",...e})},attachment:function(e){return(0,r.jsx)(he,{element:"t-attachment",...e})},video:function(e){return(0,r.jsx)(he,{element:"video",...e})},audio:function(e){return(0,r.jsx)(he,{element:"audio",...e})},heading:function(e){let{depth:t,id:n,children:o,...i}=e;return n&&(o=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(pe,{tabIndex:-1,id:n}),o]})),(0,s.createElement)("h".concat(t),i,o)}};function me(e){let{children:n,...o}=e;(0,s.useEffect)((()=>{const e=A.location.hash;if(e){const t=document.getElementById(decodeURIComponent(e).substr(1));t&&window.scrollTo(0,t.offsetTop)}}),[]);const i=(0,s.useContext)(M);return(0,r.jsx)(t.UG,{css:i,...o,components:de,children:n})}var ge;function ye(e){let{className:n,header:o,footer:i,...a}=e;const s=N(),c=$();void 0===o&&c&&(o=(0,r.jsx)(ve,{children:c.title})),o=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.IA,{role:"page:article:before"}),o]}),i=(0,r.jsxs)(r.Fragment,{children:[i,(0,r.jsx)(t.IA,{role:"page:article:after"})]});const u=(0,r.jsx)(t.cu,{role:"page:article:markdown",component:me,props:{header:o,footer:i,children:s.content,...a}});return(0,r.jsx)("div",{className:n,children:u})}const ve=t.zo.h1(ge||(ge=(0,_.Z)(["\n border-bottom: 1px solid #eee;\n font-size: 2em;\n line-height: 1.2;\n padding: 0 0 .5em;\n margin: 0 0 1em;\n font-weight: 400;\n"]))),be=e=>{let{item:n,itemComponent:o,itemsComponent:i}=e;const{path:a}=N(),c=$(),u=(0,s.useMemo)((()=>Boolean(c&&n.getLevel().isDescendant(c.getLevel()))),[n,c]),l=a===n.getPath(),f=n.children.length>0,h=!n.getPath(),p=f?(0,r.jsx)(we,{itemsComponent:i,itemComponent:o,items:n.children}):null;return(0,r.jsx)(t.cu,{role:"catalog:item",props:{item:n,active:l,disabled:h,activeDescendant:u,children:p},component:o})},Ee=e=>{let{children:t}=e;return(0,r.jsx)("ul",{children:t})},we=e=>{let{items:n,part:o,itemsComponent:i=Ee,itemComponent:a}=e;const s=(0,r.jsx)(r.Fragment,{children:n.map((e=>(0,r.jsx)(be,{itemsComponent:i,itemComponent:a,item:e},e.level.toString())))});return(0,r.jsx)(t.cu,{role:"catalog:items",props:{part:o,children:s},component:i})},xe=e=>{let{part:n,component:o,itemsComponent:i,itemComponent:a}=e;const s=(0,r.jsx)(we,{itemsComponent:i,itemComponent:a,items:n.articles,part:n});return(0,r.jsx)(t.cu,{role:"catalog:part",props:{part:n,children:s},component:o})},Se=e=>{let{summary:t,partComponent:n,itemsComponent:o,itemComponent:i}=e;return t.isSinglePart()?(0,r.jsx)(we,{itemsComponent:o,itemComponent:i,items:t.getLastPart().getArticles()}):(0,r.jsx)(r.Fragment,{children:t.parts.map((e=>(0,r.jsx)(xe,{component:n,itemsComponent:o,itemComponent:i,part:e},e.level.toString())))})};function Ae(e){let{...n}=e;const{summary:o}=(0,t.v9)("book"),{renderItem:i,renderPart:a}=n;i&&(console.warn("renderItem deprecated"),n.itemComponent=i),a&&(console.warn("renderPart deprecated"),n.partComponent=a);const{partComponent:s,itemsComponent:c,itemComponent:u}=n;return(0,r.jsx)(Se,{summary:o,partComponent:s,itemsComponent:c,itemComponent:u})}function ke(e){let{className:n}=e;const{summary:o}=(0,t.CQ)(),i=$(),a=(0,t.cw)(),s=[(0,r.jsx)("li",{children:(0,r.jsx)(ae,{to:".",children:a.formatMessage({id:"4R5GEq",defaultMessage:[{type:0,value:"首页"}]})})},"0")];if(i){const e=i.getLevel();e.data.reduce(((n,i)=>{n.push(i);const a=new t.aC(n),c=o.getByLevel(a);return c&&(c instanceof t.oI&&!a.eq(e)?s.push((0,r.jsx)("li",{children:(0,r.jsx)(ae,{to:c})},a.toString())):c.title&&s.push((0,r.jsx)("li",{children:c.title},a.toString()))),n}),[])}return(0,r.jsx)("ol",{className:n,children:s})}function De(e){let{children:r}=e;const{summary:n}=(0,t.CQ)(),o=$(),i=N();return(0,s.useEffect)((()=>{if(!o){const e=n.getFirstArticle();e&&A.replace(i.relative(e.path))}}),[o]),o?r:null}})(),window.TopWrite=u})();
54
54
  //# sourceMappingURL=index.js.map