@scalar/api-reference 1.9.1 → 1.9.2

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.
@@ -13,7 +13,7 @@ read:function(e,t,n,r,i){var o,s,a=8*i-r-1,l=(1<<a)-1,c=l>>1,u=-7,d=n?i-1:0,p=n?
13
13
  * content-type
14
14
  * Copyright(c) 2015 Douglas Christopher Wilson
15
15
  * MIT Licensed
16
- */function fF(e){var t=String(e);if(uF.test(t))return t;if(t.length>0&&!cF.test(t))throw new TypeError("invalid parameter value");return'"'+t.replace(pF,"\\$1")+'"'}function mF(e){this.parameters=Object.create(null),this.type=e}aF.format=function(e){if(!e||"object"!=typeof e)throw new TypeError("argument obj is required");var t=e.parameters,n=e.type;if(!n||!hF.test(n))throw new TypeError("invalid type");var r=n;if(t&&"object"==typeof t)for(var i,o=Object.keys(t).sort(),s=0;s<o.length;s++){if(i=o[s],!uF.test(i))throw new TypeError("invalid parameter name");r+="; "+i+"="+fF(t[i])}return r},aF.parse=function(e){if(!e)throw new TypeError("argument string is required");var t="object"==typeof e?function(e){var t;"function"==typeof e.getHeader?t=e.getHeader("content-type"):"object"==typeof e.headers&&(t=e.headers&&e.headers["content-type"]);if("string"!=typeof t)throw new TypeError("content-type header is missing from object");return t}(e):e;if("string"!=typeof t)throw new TypeError("argument string is required to be a string");var n=t.indexOf(";"),r=-1!==n?t.slice(0,n).trim():t.trim();if(!hF.test(r))throw new TypeError("invalid media type");var i=new mF(r.toLowerCase());if(-1!==n){var o,s,a;for(lF.lastIndex=n;s=lF.exec(t);){if(s.index!==n)throw new TypeError("invalid parameter format");n+=s[0].length,o=s[1].toLowerCase(),34===(a=s[2]).charCodeAt(0)&&-1!==(a=a.slice(1,-1)).indexOf("\\")&&(a=a.replace(dF,"$1")),i.parameters[o]=a}if(n!==t.length)throw new TypeError("invalid parameter format")}return i};const gF={key:1,class:"scalar-api-client__empty-state"},OF={key:1,class:"scalar-api-client__empty-state"},yF=Hr({__name:"ResponseBody",props:{active:{type:Boolean,default:!1},data:{default:null},headers:{}},setup(e){const t=e,n=Is((()=>{const e=t.headers.find((e=>"content-type"===e.name.toLowerCase()));if(!e)return null;try{return aF.parse(e.value).type}catch{return null}})),r=Is((()=>"application/json"===n.value?["json"]:"text/html"===n.value?["html"]:null));return(e,t)=>(Xo(),zo(fn(TM),{title:"Body"},{default:$r((()=>[e.active?(Xo(),Vo(No,{key:0},[r.value?(Xo(),zo(fn(yD),{key:0,content:e.data,languages:r.value,readOnly:""},null,8,["content","languages"])):(Xo(),Vo("div",gF,[n.value?(Xo(),Vo(No,{key:0},[is(" No Preview Available ("+Re(n.value)+") ",1)],64)):(Xo(),Vo(No,{key:1},[is(" Can’t render a preview. The Content-Type header is missing or unknown. ")],64))]))],64)):(Xo(),Vo("div",OF," No Response "))])),_:1}))}}),bF=["href"],vF=bl(Hr({__name:"HelpfulLink",props:{href:{}},setup:e=>(e,t)=>(Xo(),Vo("a",{href:e.href,rel:"noopener noreferrer",target:"_blank"},[xi(e.$slots,"default",{},void 0,!0)],8,bF))}),[["__scopeId","data-v-d11ff062"]]),wF=bl(Hr({__name:"SimpleCell",props:{wrap:{type:Boolean,default:!0},strong:{type:Boolean,default:!1},href:{default:null}},setup:e=>(e,t)=>(Xo(),Vo("td",{class:$e(["simple-cell",{wrap:e.wrap,strong:e.strong}])},[e.href?(Xo(),zo(vF,{key:0,href:e.href},{default:$r((()=>[xi(e.$slots,"default",{},void 0,!0)])),_:3},8,["href"])):xi(e.$slots,"default",{key:1},void 0,!0)],2))}),[["__scopeId","data-v-01fffd78"]]),SF=bl(Hr({__name:"SimpleHeader",setup:e=>(e,t)=>(Xo(),zo(wF,{as:"th",class:"simple-header"},{default:$r((()=>[xi(e.$slots,"default",{},void 0,!0)])),_:3}))}),[["__scopeId","data-v-b2232089"]]),xF={class:"simple-row"};const kF=bl({},[["render",function(e,t){return Xo(),Vo("tr",xF,[xi(e.$slots,"default",{},void 0,!0)])}],["__scopeId","data-v-0982ade4"]]),$F={class:"simple-table"};const _F=bl({},[["render",function(e,t){return Xo(),Vo("table",$F,[xi(e.$slots,"default",{},void 0,!0)])}],["__scopeId","data-v-28fcbcb6"]]),PF={key:1,class:"scalar-api-client__empty-state"},TF=Hr({__name:"ResponseHeaders",props:{headers:{}},setup(e){const t=e=>e.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join("-");return(e,n)=>(Xo(),zo(fn(TM),{title:"Headers"},{default:$r((()=>[e.headers.length>0?(Xo(),zo(fn(_F),{key:0},{default:$r((()=>[Jo(fn(kF),null,{default:$r((()=>[Jo(fn(SF),null,{default:$r((()=>[is("Key")])),_:1}),Jo(fn(SF),null,{default:$r((()=>[is("Value")])),_:1})])),_:1}),(Xo(!0),Vo(No,null,wi(e.headers,(e=>(Xo(),zo(fn(kF),{key:e.name},{default:$r((()=>{return[Jo(fn(wF),{href:(n=e.name,null==(r=qI.find((e=>e.name.toLowerCase()===n.toLowerCase())))?void 0:r.url),strong:!0,wrap:!1},{default:$r((()=>[is(Re(t(e.name)),1)])),_:2},1032,["href"]),Jo(fn(wF),null,{default:$r((()=>[is(Re(e.value),1)])),_:2},1024)];var n,r})),_:2},1024)))),128))])),_:1})):(Xo(),Vo("div",PF,"No Headers"))])),_:1}))}}),EF={class:"meta-item"},QF={class:"meta-item"},CF={class:"meta-item"},AF=Hr({__name:"ResponseMetaInformation",props:{response:{}},setup(e){const t=e,n=e=>{var t;return(null==(t=null==e?void 0:e.headers)?void 0:t["X-API-Client-Content-Length"])?HU(parseFloat(e.headers["X-API-Client-Content-Length"])):HU(0)},r=Is((()=>{const e=t.response.statusCode;if(e)return MI[e]??void 0}));return(e,t)=>{var i,o;return Xo(),Vo(No,null,[Ko("div",EF,[Ko("span",null,Re(fn(GU)(e.response.duration)),1)]),Ko("div",QF,[Ko("span",null,Re(n(e.response)),1)]),Ko("div",CF,[Ko("span",{class:$e(`scalar-api-client__status scalar-api-client__status--${String(e.response.statusCode).charAt(0)}xx`)},[(null==(i=r.value)?void 0:i.url)?(Xo(),zo(vF,{key:0,href:r.value.url},{default:$r((()=>[is(Re(e.response.statusCode)+" "+Re(r.value.name),1)])),_:1},8,["href"])):(Xo(),Vo(No,{key:1},[is(Re(e.response.statusCode)+" "+Re(null==(o=r.value)?void 0:o.name),1)],64))],2)])],64)}}}),RF={class:"scalar-api-client__main__right custom-scroll"},DF={class:"scalar-api-client__main__content"},NF=Ko("label",null,"Response",-1),jF={class:"meta"},IF={key:1,class:"meta-item"},qF=[Ko("span",null,"Send your first request to start",-1)],UF={key:0,class:"scalar-api-client__empty-state"},MF=Ko("div",{class:"scalar-api-client__main__scroll-container"},null,-1),XF=Hr({__name:"Response",setup(e){const{activeResponse:t,activeRequestId:n}=EN(),r=Is((()=>{var e;const n=null==(e=t.value)?void 0:e.headers;return n?Object.keys(n).map((e=>({name:e,value:n[e]}))).filter((e=>!["rest-api-client-content-length","X-API-Client-Content-Length"].includes(e.name))):[]})),i=Is((()=>{var e;const n=null==(e=t.value)?void 0:e.cookies;return n?Object.keys(n).map((e=>({name:e,value:n[e]}))):[]})),o=Is((()=>{var e;const n=null==(e=t.value)?void 0:e.data;return n&&jI(n)?JSON.stringify(JSON.parse(n),null,2):n&&"object"==typeof nn(n)||n&&!jI(n)?JSON.stringify(n,null,2):n}));return(e,s)=>(Xo(),Vo("div",RF,[Ko("div",DF,[NF,Ko("div",jF,[fn(n)&&fn(t)?(Xo(),zo(AF,{key:0,response:fn(t)},null,8,["response"])):(Xo(),Vo("div",IF,qF))])]),Ko("div",null,[Jo(yF,{active:!!fn(t),data:o.value,headers:r.value},null,8,["active","data","headers"]),Jo(TF,{headers:r.value},null,8,["headers"]),Jo(fn(TM),{title:"Cookies"},{default:$r((()=>[Lr(Jo(fn(qX),{items:i.value},null,8,["items"]),[[Wa,i.value.length>0]]),0===i.value.length?(Xo(),Vo("div",UF,"No Cookies")):ss("",!0)])),_:1}),MF])]))}}),FF={class:"scalar-api-client__main"},LF=Hr({__name:"ApiClient",props:{proxyUrl:{},readOnly:{type:Boolean,default:!1},theme:{}},emits:["escapeKeyPress"],setup(e,{emit:t}){const n=e,{activeRequest:r,readOnly:i}=EN(),o=Bu("(max-width: 820px)"),s=un(0),a=1;function l(e){s.value=e}return Ir((()=>n.readOnly),(()=>{i.value=n.readOnly}),{immediate:!0}),uN({keyList:["escape"],handler:()=>t("escapeKeyPress")}),(e,n)=>(Xo(),Vo(No,null,[Jo(fn(ml),{id:e.theme},null,8,["id"]),Ko("div",{class:$e(["scalar-api-client",`scalar-api-client--${fn(r).type.toLowerCase()||"get"}`]),onKeydown:n[1]||(n[1]=za((e=>t("escapeKeyPress")),["esc"]))},[Jo(xM,{proxyUrl:e.proxyUrl,onOnSend:n[0]||(n[0]=e=>l(a))},null,8,["proxyUrl"]),Ko("div",FF,[fn(o)?(Xo(),zo(fn(Pu),{key:1,selectedIndex:s.value,onChange:l},{default:$r((()=>[Jo(fn(Tu),{class:"scalar-api-client__mobile-navigation"},{default:$r((()=>[Jo(fn(Eu),{class:"scalar-api-client__mobile-navigation__toggle"},{default:$r((({selected:e})=>[Ko("span",{class:$e({"scalar-api-client__mobile-navigation--active":e})}," Request ",2)])),_:1}),Jo(fn(Eu),{class:"scalar-api-client__mobile-navigation__toggle"},{default:$r((({selected:e})=>[Ko("span",{class:$e({"scalar-api-client__mobile-navigation--active":e})}," Response ",2)])),_:1})])),_:1}),Jo(fn(Qu),{as:"template"},{default:$r((()=>[Jo(fn(Cu),{as:"template"},{default:$r((()=>[Jo(fn(sF))])),_:1}),Jo(fn(Cu),{as:"template"},{default:$r((()=>[Jo(fn(XF))])),_:1})])),_:1})])),_:1},8,["selectedIndex"])):(Xo(),Vo(No,{key:0},[Jo(fn(sF)),Jo(fn(XF))],64))])],34)],64))}}),ZF=(...e)=>{let t={httpVersion:"1.1",method:"GET",url:"",path:"",headers:[],headersSize:-1,queryString:[],cookies:[],bodySize:-1};e.forEach((e=>{t={...t,...e,headers:[...t.headers,...e.headers??[]],queryString:[...t.queryString,...e.queryString??[]],cookies:[...t.cookies,...e.cookies??[]]}})),t.headers=eW(UU.from(II(t.headers,"name","value")).normalize(!0),"name");const{path:n,...r}=t;return n?{...r,url:`${t.url}${n}`}:r},VF=e=>e.slug?`description/${e.slug}`:"",zF=function(e){if(null==e)return BF;if("string"==typeof e)return function(e){return WF(t);function t(t){return t&&t.type===e}}(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=zF(e[n]);return WF(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].call(this,...e))return!0;return!1}}(e):function(e){return WF(t);function t(t){let n;for(n in e)if(t[n]!==e[n])return!1;return!0}}(e);if("function"==typeof e)return WF(e);throw new Error("Expected function, string, or object as test")};function WF(e){return function(t,...n){return Boolean(t&&"object"==typeof t&&"type"in t&&Boolean(e.call(this,t,...n)))}}function BF(){return!0}const YF=function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null);const i=zF(t),o=r?-1:1;!function e(s,a,l){const c=s&&"object"==typeof s?s:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+s.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,p=[];if((!t||i(s,a,l[l.length-1]||null))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[true,e];return[e]}(n(s,l)),false===p[0]))return p;if(s.children&&"skip"!==p[0])for(u=(r?s.children.length:-1)+o,d=l.concat(s);u>-1&&u<s.children.length;){if(c=e(s.children[u],u,d)(),false===c[0])return c;u="number"==typeof c[1]?c[1]:u+o}return p}}(e,void 0,[])()};const HF={};function GF(e,t){const n=t||HF;return KF(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function KF(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return JF(e.children,t,n)}return Array.isArray(e)?JF(e,t,n):""}function JF(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=KF(e[i],t,n);return r.join("")}const eL=e=>{const t=[];var n,r,i;return r=e=>{const n={depth:e.depth,value:GF(e,{includeImageAlt:!1})},r=null==e?void 0:e.data;r&&(n.data=r),t.push(n)},"function"==typeof(n="heading")&&"function"!=typeof r&&(i=r,r=n,n=null),YF(e,n,(function(e,t){const n=t[t.length-1];return r(e,n?n.children.indexOf(e):null,n)}),i),t};const tL=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,nL=Object.hasOwnProperty;class rL{constructor(){this.occurrences,this.reset()}slug(e,t){const n=this;let r=function(e,t){if("string"!=typeof e)return"";t||(e=e.toLowerCase());return e.replace(tL,"").replace(/ /g,"-")}(e,!0===t);const i=r;for(;nL.call(n.occurrences,r);)n.occurrences[i]++,r=i+"-"+n.occurrences[i];return n.occurrences[r]=0,r}reset(){this.occurrences=Object.create(null)}}const iL={};function oL(e,t){const n=t||iL;return sL(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function sL(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return aL(e.children,t,n)}return Array.isArray(e)?aL(e,t,n):""}function aL(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=sL(e[i],t,n);return r.join("")}const lL=document.createElement("i");function cL(e){const t="&"+e+";";lL.innerHTML=t;const n=lL.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}function uL(e,t,n,r){const i=e.length;let o,s=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);s<r.length;)o=r.slice(s,s+1e4),o.unshift(t,0),e.splice(...o),s+=1e4,t+=1e4}function dL(e,t){return e.length>0?(uL(e,e.length,0,t),e):t}const pL={}.hasOwnProperty;function hL(e){const t={};let n=-1;for(;++n<e.length;)fL(t,e[n]);return t}function fL(e,t){let n;for(n in t){const r=(pL.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){pL.call(r,o)||(r[o]=[]);const e=i[o];mL(r[o],Array.isArray(e)?e:e?[e]:[])}}}function mL(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);uL(e,0,0,r)}function gL(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535==(65535&n)||65534==(65535&n)||n>1114111?"�":String.fromCharCode(n)}function OL(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const yL=CL(/\p{P}/u),bL=CL(/[A-Za-z]/),vL=CL(/[\dA-Za-z]/),wL=CL(/[#-'*+\--9=?A-Z^-~]/);function SL(e){return null!==e&&(e<32||127===e)}const xL=CL(/\d/),kL=CL(/[\dA-Fa-f]/),$L=CL(/[!-/:-@[-`{-~]/);function _L(e){return null!==e&&e<-2}function PL(e){return null!==e&&(e<0||32===e)}function TL(e){return-2===e||-1===e||32===e}function EL(e){return $L(e)||yL(e)}const QL=CL(/\s/);function CL(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function AL(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let s="";if(37===o&&vL(e.charCodeAt(n+1))&&vL(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){const t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(s=String.fromCharCode(o,t),i=1):s="�"}else s=String.fromCharCode(o);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function RL(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){if(TL(r))return e.enter(n),s(r);return t(r)};function s(r){return TL(r)&&o++<i?(e.consume(r),s):(e.exit(n),t(r))}}const DL={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),RL(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),r(t)}));let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,i(t)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):_L(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),i)}}};const NL={tokenize:function(e){const t=this,n=[];let r,i,o,s=0;return a;function a(r){if(s<n.length){const i=n[s];return t.containerState=i[1],e.attempt(i[0].continuation,l,c)(r)}return c(r)}function l(e){if(s++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&y();const n=t.events.length;let i,o=n;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){i=t.events[o][1].end;break}O(s);let a=n;for(;a<t.events.length;)t.events[a][1].end=Object.assign({},i),a++;return uL(t.events,o+1,0,t.events.slice(n)),t.events.length=a,c(e)}return a(e)}function c(i){if(s===n.length){if(!r)return p(i);if(r.currentConstruct&&r.currentConstruct.concrete)return f(i);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(jL,u,d)(i)}function u(e){return r&&y(),O(s),p(e)}function d(e){return t.parser.lazy[t.now().line]=s!==n.length,o=t.now().offset,f(e)}function p(n){return t.containerState={},e.attempt(jL,h,f)(n)}function h(e){return s++,n.push([t.currentConstruct,t.containerState]),p(e)}function f(n){return null===n?(r&&y(),O(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:r}),m(n))}function m(n){return null===n?(g(e.exit("chunkFlow"),!0),O(0),void e.consume(n)):_L(n)?(e.consume(n),g(e.exit("chunkFlow")),s=0,t.interrupt=void 0,a):(e.consume(n),m)}function g(e,n){const a=t.sliceStream(e);if(n&&a.push(null),e.previous=i,i&&(i.next=e),i=e,r.defineSkip(e.start),r.write(a),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<o&&(!r.events[e][1].end||r.events[e][1].end.offset>o))return;const n=t.events.length;let i,a,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(i){a=t.events[l][1].end;break}i=!0}for(O(s),e=n;e<t.events.length;)t.events[e][1].end=Object.assign({},a),e++;uL(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function O(r){let i=n.length;for(;i-- >r;){const r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function y(){r.write([null]),i=void 0,r=void 0,t.containerState._closeFlow=void 0}}},jL={tokenize:function(e,t,n){return RL(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function IL(e){return null===e||PL(e)||QL(e)?1:EL(e)?2:void 0}function qL(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const UL={name:"attention",tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=IL(r);let o;return function(t){return o=t,e.enter("attentionSequence"),s(t)};function s(a){if(a===o)return e.consume(a),s;const l=e.exit("attentionSequence"),c=IL(a),u=!c||2===c&&i||n.includes(a),d=!i||2===i&&c||n.includes(r);return l._open=Boolean(42===o?u:u&&(i||!d)),l._close=Boolean(42===o?d:d&&(c||!u)),t(a)}},resolveAll:function(e,t){let n,r,i,o,s,a,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;a=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d=Object.assign({},e[n][1].end),p=Object.assign({},e[u][1].start);ML(d,-a),ML(p,a),o={type:a>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[n][1].end)},s={type:a>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[u][1].start),end:p},i={type:a>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[u][1].start)},r={type:a>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[n][1].end=Object.assign({},o.start),e[u][1].start=Object.assign({},s.end),l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=dL(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=dL(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),l=dL(l,qL(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=dL(l,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=dL(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,uL(e,n-1,u-n+3,l),u=n+l.length-c-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e}};function ML(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const XL={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return bL(t)?(e.consume(t),o):l(t)}function o(e){return 43===e||45===e||46===e||vL(e)?(r=1,s(e)):l(e)}function s(t){return 58===t?(e.consume(t),r=0,a):(43===t||45===t||46===t||vL(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function a(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||SL(r)?n(r):(e.consume(r),a)}function l(t){return 64===t?(e.consume(t),c):wL(t)?(e.consume(t),l):n(t)}function c(e){return vL(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||vL(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}};const FL={tokenize:function(e,t,n){return function(t){return TL(t)?RL(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||_L(e)?t(e):n(e)}},partial:!0};const LL={name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return TL(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(TL(t))return RL(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return i(t)};function i(r){return e.attempt(LL,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};const ZL={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return $L(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const VL={name:"characterReference",tokenize:function(e,t,n){const r=this;let i,o,s=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),i=31,o=vL,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=kL,c):(e.enter("characterReferenceValue"),i=7,o=xL,c(t))}function c(a){if(59===a&&s){const i=e.exit("characterReferenceValue");return o!==vL||cL(r.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return o(a)&&s++<i?(e.consume(a),c):n(a)}}};const zL={tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},WL={name:"codeFenced",tokenize:function(e,t,n){const r=this,i={tokenize:function(e,t,n){let i=0;return s;function s(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),TL(t)?RL(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===o?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===o?(i++,e.consume(t),u):i>=a?(e.exit("codeFencedFenceSequence"),TL(t)?RL(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||_L(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0};let o,s=0,a=0;return function(t){return function(t){const n=r.events[r.events.length-1];return s=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,o=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===o?(a++,e.consume(t),l):a<3?n(t):(e.exit("codeFencedFenceSequence"),TL(t)?RL(e,c,"whitespace")(t):c(t))}function c(n){return null===n||_L(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(zL,h,y)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||_L(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):TL(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),RL(e,d,"whitespace")(t)):96===t&&t===o?n(t):(e.consume(t),u)}function d(t){return null===t||_L(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||_L(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===o?n(t):(e.consume(t),p)}function h(t){return e.attempt(i,y,f)(t)}function f(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return s>0&&TL(t)?RL(e,g,"linePrefix",s+1)(t):g(t)}function g(t){return null===t||_L(t)?e.check(zL,h,y)(t):(e.enter("codeFlowValue"),O(t))}function O(t){return null===t||_L(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),O)}function y(n){return e.exit("codeFenced"),t(n)}},concrete:!0};const BL={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),RL(e,i,"linePrefix",5)(t)};function i(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?a(t):_L(t)?e.attempt(YL,o,a)(t):(e.enter("codeFlowValue"),s(t))}function s(t){return null===t||_L(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),s)}function a(n){return e.exit("codeIndented"),t(n)}}},YL={tokenize:function(e,t,n){const r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):_L(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):RL(e,o,"linePrefix",5)(t)}function o(e){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):_L(e)?i(e):n(e)}},partial:!0};const HL={name:"codeText",tokenize:function(e,t,n){let r,i,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),s(t)};function s(t){return 96===t?(e.consume(t),o++,s):(e.exit("codeTextSequence"),a(t))}function a(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),a):96===t?(i=e.enter("codeTextSequence"),r=0,c(t)):_L(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||_L(t)?(e.exit("codeTextData"),a(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(i.type="codeTextData",l(n))}},resolve:function(e){let t,n,r=e.length-4,i=3;if(!("lineEnding"!==e[i][1].type&&"space"!==e[i][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}t=i-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}};function GL(e){const t={};let n,r,i,o,s,a,l,c=-1;for(;++c<e.length;){for(;c in t;)c=t[c];if(n=e[c],c&&"chunkFlow"===n[1].type&&"listItemPrefix"===e[c-1][1].type&&(a=n[1]._tokenizer.events,i=0,i<a.length&&"lineEndingBlank"===a[i][1].type&&(i+=2),i<a.length&&"content"===a[i][1].type))for(;++i<a.length&&"content"!==a[i][1].type;)"chunkText"===a[i][1].type&&(a[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,KL(e,c)),c=t[c],l=!0);else if(n[1]._container){for(i=c,r=void 0;i--&&(o=e[i],"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type);)"enter"===o[0]&&(r&&(e[r][1].type="lineEndingBlank"),o[1].type="lineEnding",r=i);r&&(n[1].end=Object.assign({},e[r][1].start),s=e.slice(r,c),s.unshift(n),uL(e,r,c-r+1,s))}}return!l}function KL(e,t){const n=e[t][1],r=e[t][2];let i=t-1;const o=[],s=n._tokenizer||r.parser[n.contentType](n.start),a=s.events,l=[],c={};let u,d,p=-1,h=n,f=0,m=0;const g=[m];for(;h;){for(;e[++i][1]!==h;);o.push(i),h._tokenizer||(u=r.sliceStream(h),h.next||u.push(null),d&&s.defineSkip(h.start),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(u),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=h,h=h.next}for(h=n;++p<a.length;)"exit"===a[p][0]&&"enter"===a[p-1][0]&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(m=p+1,g.push(m),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(s.events=[],h?(h._tokenizer=void 0,h.previous=void 0):g.pop(),p=g.length;p--;){const t=a.slice(g[p],g[p+1]),n=o.pop();l.unshift([n,n+t.length-1]),uL(e,n,2,t)}for(p=-1;++p<l.length;)c[f+l[p][0]]=f+l[p][1],f+=l[p][1]-l[p][0]-1;return c}const JL={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):_L(t)?e.check(eZ,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return GL(e),e}},eZ={tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),RL(e,i,"linePrefix")};function i(i){if(null===i||_L(i))return n(i);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}},partial:!0};function tZ(e,t,n,r,i,o,s,a,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),d;if(null===t||32===t||41===t||SL(t))return n(t);return e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),f(t)};function d(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(a),d(t)):null===t||60===t||_L(t)?n(t):(e.consume(t),92===t?h:p)}function h(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function f(i){return u||null!==i&&41!==i&&!PL(i)?u<c&&40===i?(e.consume(i),u++,f):41===i?(e.consume(i),u--,f):null===i||32===i||40===i||SL(i)?n(i):(e.consume(i),92===i?m:f):(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(r),t(i))}function m(t){return 40===t||41===t||92===t?(e.consume(t),f):f(t)}}function nZ(e,t,n,r,i,o){const s=this;let a,l=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),c};function c(d){return l>999||null===d||91===d||93===d&&!a||94===d&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(d):93===d?(e.exit(o),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):_L(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||_L(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),a||(a=!TL(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function rZ(e,t,n,r,i,o){let s;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(i),e.consume(t),e.exit(i),s=40===t?41:t,a;return n(t)};function a(n){return n===s?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),l(n))}function l(t){return t===s?(e.exit(o),a(s)):null===t?n(t):_L(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),RL(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===s||null===t||_L(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===s||92===t?(e.consume(t),c):c(t)}}function iZ(e,t){let n;return function r(i){if(_L(i))return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r;if(TL(i))return RL(e,r,n?"linePrefix":"lineSuffix")(i);return t(i)}}const oZ={name:"definition",tokenize:function(e,t,n){const r=this;let i;return function(t){return e.enter("definition"),function(t){return nZ.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return i=OL(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s):n(t)}function s(t){return PL(t)?iZ(e,a)(t):a(t)}function a(t){return tZ(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(sZ,c,c)(t)}function c(t){return TL(t)?RL(e,u,"whitespace")(t):u(t)}function u(o){return null===o||_L(o)?(e.exit("definition"),r.parser.defined.push(i),t(o)):n(o)}}},sZ={tokenize:function(e,t,n){return function(t){return PL(t)?iZ(e,r)(t):n(t)};function r(t){return rZ(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return TL(t)?RL(e,o,"whitespace")(t):o(t)}function o(e){return null===e||_L(e)?t(e):n(e)}},partial:!0};const aZ={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return _L(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const lZ={name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),i(t)}(t)};function i(t){return 35===t&&r++<6?(e.consume(t),i):null===t||PL(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),s(n)):null===n||_L(n)?(e.exit("atxHeading"),t(n)):TL(n)?RL(e,o,"whitespace")(n):(e.enter("atxHeadingText"),a(n))}function s(t){return 35===t?(e.consume(t),s):(e.exit("atxHeadingSequence"),o(t))}function a(t){return null===t||35===t||PL(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),a)}},resolve:function(e,t){let n,r,i=e.length-2,o=3;"whitespace"===e[o][1].type&&(o+=2);i-2>o&&"whitespace"===e[i][1].type&&(i-=2);"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4);i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},uL(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e}};const cZ=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],uZ=["pre","script","style","textarea"],dZ={name:"htmlFlow",tokenize:function(e,t,n){const r=this;let i,o,s,a,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(a){return 33===a?(e.consume(a),u):47===a?(e.consume(a),o=!0,h):63===a?(e.consume(a),i=3,r.interrupt?t:D):bL(a)?(e.consume(a),s=String.fromCharCode(a),f):n(a)}function u(o){return 45===o?(e.consume(o),i=2,d):91===o?(e.consume(o),i=5,a=0,p):bL(o)?(e.consume(o),i=4,r.interrupt?t:D):n(o)}function d(i){return 45===i?(e.consume(i),r.interrupt?t:D):n(i)}function p(i){const o="CDATA[";return i===o.charCodeAt(a++)?(e.consume(i),6===a?r.interrupt?t:_:p):n(i)}function h(t){return bL(t)?(e.consume(t),s=String.fromCharCode(t),f):n(t)}function f(a){if(null===a||47===a||62===a||PL(a)){const l=47===a,c=s.toLowerCase();return l||o||!uZ.includes(c)?cZ.includes(s.toLowerCase())?(i=6,l?(e.consume(a),m):r.interrupt?t(a):_(a)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(a):o?g(a):O(a)):(i=1,r.interrupt?t(a):_(a))}return 45===a||vL(a)?(e.consume(a),s+=String.fromCharCode(a),f):n(a)}function m(i){return 62===i?(e.consume(i),r.interrupt?t:_):n(i)}function g(t){return TL(t)?(e.consume(t),g):k(t)}function O(t){return 47===t?(e.consume(t),k):58===t||95===t||bL(t)?(e.consume(t),y):TL(t)?(e.consume(t),O):k(t)}function y(t){return 45===t||46===t||58===t||95===t||vL(t)?(e.consume(t),y):b(t)}function b(t){return 61===t?(e.consume(t),v):TL(t)?(e.consume(t),b):O(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,w):TL(t)?(e.consume(t),v):S(t)}function w(t){return t===l?(e.consume(t),l=null,x):null===t||_L(t)?n(t):(e.consume(t),w)}function S(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||PL(t)?b(t):(e.consume(t),S)}function x(e){return 47===e||62===e||TL(e)?O(e):n(e)}function k(t){return 62===t?(e.consume(t),$):n(t)}function $(t){return null===t||_L(t)?_(t):TL(t)?(e.consume(t),$):n(t)}function _(t){return 45===t&&2===i?(e.consume(t),Q):60===t&&1===i?(e.consume(t),C):62===t&&4===i?(e.consume(t),N):63===t&&3===i?(e.consume(t),D):93===t&&5===i?(e.consume(t),R):!_L(t)||6!==i&&7!==i?null===t||_L(t)?(e.exit("htmlFlowData"),P(t)):(e.consume(t),_):(e.exit("htmlFlowData"),e.check(pZ,j,P)(t))}function P(t){return e.check(hZ,T,j)(t)}function T(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),E}function E(t){return null===t||_L(t)?P(t):(e.enter("htmlFlowData"),_(t))}function Q(t){return 45===t?(e.consume(t),D):_(t)}function C(t){return 47===t?(e.consume(t),s="",A):_(t)}function A(t){if(62===t){const n=s.toLowerCase();return uZ.includes(n)?(e.consume(t),N):_(t)}return bL(t)&&s.length<8?(e.consume(t),s+=String.fromCharCode(t),A):_(t)}function R(t){return 93===t?(e.consume(t),D):_(t)}function D(t){return 62===t?(e.consume(t),N):45===t&&2===i?(e.consume(t),D):_(t)}function N(t){return null===t||_L(t)?(e.exit("htmlFlowData"),j(t)):(e.consume(t),N)}function j(n){return e.exit("htmlFlow"),t(n)}},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},pZ={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(FL,t,n)}},partial:!0},hZ={tokenize:function(e,t,n){const r=this;return function(t){if(_L(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i;return n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0};const fZ={name:"htmlText",tokenize:function(e,t,n){const r=this;let i,o,s;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),v):63===t?(e.consume(t),y):bL(t)?(e.consume(t),x):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),o=0,h):bL(t)?(e.consume(t),O):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):_L(t)?(s=u,A(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?C(e):45===e?d(e):u(e)}function h(t){const r="CDATA[";return t===r.charCodeAt(o++)?(e.consume(t),6===o?f:h):n(t)}function f(t){return null===t?n(t):93===t?(e.consume(t),m):_L(t)?(s=f,A(t)):(e.consume(t),f)}function m(t){return 93===t?(e.consume(t),g):f(t)}function g(t){return 62===t?C(t):93===t?(e.consume(t),g):f(t)}function O(t){return null===t||62===t?C(t):_L(t)?(s=O,A(t)):(e.consume(t),O)}function y(t){return null===t?n(t):63===t?(e.consume(t),b):_L(t)?(s=y,A(t)):(e.consume(t),y)}function b(e){return 62===e?C(e):y(e)}function v(t){return bL(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||vL(t)?(e.consume(t),w):S(t)}function S(t){return _L(t)?(s=S,A(t)):TL(t)?(e.consume(t),S):C(t)}function x(t){return 45===t||vL(t)?(e.consume(t),x):47===t||62===t||PL(t)?k(t):n(t)}function k(t){return 47===t?(e.consume(t),C):58===t||95===t||bL(t)?(e.consume(t),$):_L(t)?(s=k,A(t)):TL(t)?(e.consume(t),k):C(t)}function $(t){return 45===t||46===t||58===t||95===t||vL(t)?(e.consume(t),$):_(t)}function _(t){return 61===t?(e.consume(t),P):_L(t)?(s=_,A(t)):TL(t)?(e.consume(t),_):k(t)}function P(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),i=t,T):_L(t)?(s=P,A(t)):TL(t)?(e.consume(t),P):(e.consume(t),E)}function T(t){return t===i?(e.consume(t),i=void 0,Q):null===t?n(t):_L(t)?(s=T,A(t)):(e.consume(t),T)}function E(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||PL(t)?k(t):(e.consume(t),E)}function Q(e){return 47===e||62===e||PL(e)?k(e):n(e)}function C(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function A(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),R}function R(t){return TL(t)?RL(e,D,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):D(t)}function D(t){return e.enter("htmlTextData"),s(t)}}};const mZ={name:"labelEnd",tokenize:function(e,t,n){const r=this;let i,o,s=r.events.length;for(;s--;)if(("labelImage"===r.events[s][1].type||"labelLink"===r.events[s][1].type)&&!r.events[s][1]._balanced){i=r.events[s][1];break}return function(t){if(!i)return n(t);if(i._inactive)return u(t);return o=r.parser.defined.includes(OL(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),a};function a(t){return 40===t?e.attempt(gZ,c,o?c:u)(t):91===t?e.attempt(OZ,c,o?l:u)(t):o?c(t):u(t)}function l(t){return e.attempt(yZ,c,u)(t)}function c(e){return t(e)}function u(e){return i._balanced=!0,n(e)}},resolveTo:function(e,t){let n,r,i,o,s=e.length,a=0;for(;s--;)if(n=e[s][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[s][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[s][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=s,"labelLink"!==n.type)){a=2;break}}else"labelEnd"===n.type&&(i=s);const l={type:"labelLink"===e[r][1].type?"link":"image",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[r][1].start),end:Object.assign({},e[i][1].end)},u={type:"labelText",start:Object.assign({},e[r+a+2][1].end),end:Object.assign({},e[i-2][1].start)};return o=[["enter",l,t],["enter",c,t]],o=dL(o,e.slice(r+1,r+a+3)),o=dL(o,[["enter",u,t]]),o=dL(o,qL(t.parser.constructs.insideSpan.null,e.slice(r+a+4,i-3),t)),o=dL(o,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),o=dL(o,e.slice(i+1)),o=dL(o,[["exit",l,t]]),uL(e,r,e.length,o),e},resolveAll:function(e){let t=-1;for(;++t<e.length;){const n=e[t][1];"labelImage"!==n.type&&"labelLink"!==n.type&&"labelEnd"!==n.type||(e.splice(t+1,"labelImage"===n.type?4:2),n.type="data",t++)}return e}},gZ={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return PL(t)?iZ(e,i)(t):i(t)}function i(t){return 41===t?c(t):tZ(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return PL(t)?iZ(e,a)(t):c(t)}function s(e){return n(e)}function a(t){return 34===t||39===t||40===t?rZ(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return PL(t)?iZ(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},OZ={tokenize:function(e,t,n){const r=this;return function(t){return nZ.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(OL(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},yZ={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const bZ={name:"labelStartImage",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:mZ.resolveAll};const vZ={name:"labelStartLink",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:mZ.resolveAll};const wZ={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),RL(e,t,"linePrefix")}}};const SZ={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,o(e)}(t)};function o(o){return o===r?(e.enter("thematicBreakSequence"),s(o)):i>=3&&(null===o||_L(o))?(e.exit("thematicBreak"),t(o)):n(o)}function s(t){return t===r?(e.consume(t),i++,s):(e.exit("thematicBreakSequence"),TL(t)?RL(e,o,"whitespace")(t):o(t))}}};const xZ={name:"list",tokenize:function(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,s=0;return function(t){const i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:xL(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(SZ,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(t)}return n(t)};function a(t){return xL(t)&&++s<10?(e.consume(t),a):(!r.interrupt||s<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(FL,r.interrupt?n:c,e.attempt(kZ,d,u))}function c(e){return r.containerState.initialBlankLine=!0,o++,d(e)}function u(t){return TL(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(FL,(function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,RL(e,t,"listItemIndent",r.containerState.size+1)(n)}),(function(n){if(r.containerState.furtherBlankLines||!TL(n))return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n);return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt($Z,t,i)(n)}));function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,RL(e,e.attempt(xZ,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},kZ={tokenize:function(e,t,n){const r=this;return RL(e,(function(e){const i=r.events[r.events.length-1];return!TL(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},$Z={tokenize:function(e,t,n){const r=this;return RL(e,(function(e){const i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0};const _Z={name:"setextUnderline",tokenize:function(e,t,n){const r=this;let i;return function(t){let s,a=r.events.length;for(;a--;)if("lineEnding"!==r.events[a][1].type&&"linePrefix"!==r.events[a][1].type&&"content"!==r.events[a][1].type){s="paragraph"===r.events[a][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||s))return e.enter("setextHeadingLine"),i=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t);return n(t)};function o(t){return t===i?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),TL(t)?RL(e,s,"lineSuffix")(t):s(t))}function s(r){return null===r||_L(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);const s={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",s,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[i][1].end)):e[n][1]=s;return e.push(["exit",s,t]),e}};const PZ={tokenize:function(e){const t=this,n=e.attempt(FL,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,RL(e,e.attempt(this.parser.constructs.flow,r,e.attempt(JL,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const TZ={resolveAll:AZ()},EZ=CZ("string"),QZ=CZ("text");function CZ(e){return{tokenize:function(t){const n=this,r=this.parser.constructs[e],i=t.attempt(r,o,s);return o;function o(e){return l(e)?i(e):s(e)}function s(e){if(null!==e)return t.enter("data"),t.consume(e),a;t.consume(e)}function a(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),a)}function l(e){if(null===e)return!0;const t=r[e];let i=-1;if(t)for(;++i<t.length;){const e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}},resolveAll:AZ("text"===e?RZ:void 0)}}function AZ(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function RZ(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],i=t.sliceStream(r);let o,s=i.length,a=-1,l=0;for(;s--;){const e=i[s];if("string"==typeof e){for(a=e.length;32===e.charCodeAt(a-1);)l++,a--;if(a)break;a=-1}else if(-2===e)o=!0,l++;else if(-1!==e){s++;break}}if(l){const i={type:n===e.length||o||l<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-l,offset:r.end.offset-l,_index:r.start._index+s,_bufferIndex:s?a:r.start._bufferIndex+a},end:Object.assign({},r.end)};r.end=Object.assign({},i.start),r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,["enter",i,t],["exit",i,t]),n+=2)}n++}return e}function DZ(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},o=[];let s=[],a=[];const l={consume:function(e){_L(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,y()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++));c.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=p(),c.events.push(["enter",n,c]),a.push(n),n},exit:function(e){const t=a.pop();return t.end=p(),c.events.push(["exit",t,c]),t},attempt:g((function(e,t){O(e,t.from)})),check:g(m),interrupt:g(m,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:d,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let s;if("string"==typeof o)s=o;else switch(o){case-5:s="\r";break;case-4:s="\n";break;case-3:s="\r\n";break;case-2:s=t?" ":"\t";break;case-1:if(!t&&i)continue;s=" ";break;default:s=String.fromCharCode(o)}i=-2===o,r.push(s)}return r.join("")}(d(e),t)},now:p,defineSkip:function(e){i[e.line]=e.column,y()},write:function(e){if(s=dL(s,e),h(),null!==s[s.length-1])return[];return O(t,0),c.events=qL(o,c.events,c),c.events}};let u=t.tokenize.call(c,l);return t.resolveAll&&o.push(t),c;function d(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let s;if(n===i)s=[e[n].slice(r,o)];else{if(s=e.slice(n,i),r>-1){const e=s[0];"string"==typeof e?s[0]=e.slice(r):s.shift()}o>0&&s.push(e[i].slice(0,o))}return s}(s,e)}function p(){const{line:e,column:t,offset:n,_index:i,_bufferIndex:o}=r;return{line:e,column:t,offset:n,_index:i,_bufferIndex:o}}function h(){let e;for(;r._index<s.length;){const t=s[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)f(t.charCodeAt(r._bufferIndex));else f(t)}}function f(e){u=u(e)}function m(e,t){t.restore()}function g(e,t){return function(n,i,o){let s,u,d,h;return Array.isArray(n)?f(n):"tokenize"in n?f([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function f(e){return s=e,u=0,0===e.length?o:m(e[u])}function m(e){return function(n){h=function(){const e=p(),t=c.previous,n=c.currentConstruct,i=c.events.length,o=Array.from(a);return{restore:s,from:i};function s(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=i,a=o,y()}}(),d=e,e.partial||(c.currentConstruct=e);if(e.name&&c.parser.constructs.disable.null.includes(e.name))return O();return e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,g,O)(n)}}function g(t){return e(d,h),i}function O(e){return h.restore(),++u<s.length?m(s[u]):o}}}function O(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&uL(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function y(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}const NZ={42:xZ,43:xZ,45:xZ,48:xZ,49:xZ,50:xZ,51:xZ,52:xZ,53:xZ,54:xZ,55:xZ,56:xZ,57:xZ,62:LL},jZ={91:oZ},IZ={[-2]:BL,[-1]:BL,32:BL},qZ={35:lZ,42:SZ,45:[_Z,SZ],60:dZ,61:_Z,95:SZ,96:WL,126:WL},UZ={38:VL,92:ZL},MZ={[-5]:wZ,[-4]:wZ,[-3]:wZ,33:bZ,38:VL,42:UL,60:[XL,fZ],91:vZ,92:[aZ,ZL],93:mZ,95:UL,96:HL},XZ={null:[UL,TZ]},FZ=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:jZ,disable:{null:[]},document:NZ,flow:qZ,flowInitial:IZ,insideSpan:XZ,string:UZ,text:MZ},Symbol.toStringTag,{value:"Module"}));const LZ=/[\0\t\n\r]/g;const ZZ=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function VZ(e){return e.replace(ZZ,zZ)}function zZ(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return gL(n.slice(t?2:1),t?16:10)}return cL(n)||e}function WZ(e){return e&&"object"==typeof e?"position"in e||"type"in e?YZ(e.position):"start"in e||"end"in e?YZ(e):"line"in e||"column"in e?BZ(e):"":""}function BZ(e){return HZ(e&&e.line)+":"+HZ(e&&e.column)}function YZ(e){return BZ(e&&e.start)+"-"+BZ(e&&e.end)}function HZ(e){return e&&"number"==typeof e?e:1}const GZ={}.hasOwnProperty;function KZ(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(ee),autolinkProtocol:$,autolinkEmail:$,atxHeading:o(H),blockQuote:o(V),characterEscape:$,characterReference:$,codeFenced:o(z),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(z,s),codeText:o(W,s),codeTextData:$,data:$,codeFlowValue:$,definition:o(B),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(Y),hardBreakEscape:o(G),hardBreakTrailing:o(G),htmlFlow:o(K,s),htmlFlowData:$,htmlText:o(K,s),htmlTextData:$,image:o(J),label:s,link:o(ee),listItem:o(ne),listItemValue:p,listOrdered:o(te,d),listUnordered:o(te),paragraph:o(re),reference:U,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(H),strong:o(ie),thematicBreak:o(se)},exit:{atxHeading:l(),atxHeadingSequence:w,autolink:l(),autolinkEmail:Z,autolinkProtocol:L,blockQuote:l(),characterEscapeValue:_,characterReferenceMarkerHexadecimal:X,characterReferenceMarkerNumeric:X,characterReferenceValue:F,codeFenced:l(g),codeFencedFence:m,codeFencedFenceInfo:h,codeFencedFenceMeta:f,codeFlowValue:_,codeIndented:l(O),codeText:l(C),codeTextData:_,data:_,definition:l(),definitionDestinationString:v,definitionLabelString:y,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(T),hardBreakTrailing:l(T),htmlFlow:l(E),htmlFlowData:_,htmlText:l(Q),htmlTextData:_,image:l(R),label:N,labelText:D,lineEnding:P,link:l(A),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:M,resourceDestinationString:j,resourceTitleString:I,resource:q,setextHeading:l(k),setextHeadingLineSequence:x,setextHeadingText:S,strong:l(),thematicBreak:l()}};eV(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const o={stack:[r],tokenStack:[],config:t,enter:a,exit:c,buffer:s,resume:u,data:n},l=[];let d=-1;for(;++d<e.length;)if("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)if("enter"===e[d][0])l.push(d);else{d=i(e,l.pop(),d)}for(d=-1;++d<e.length;){const n=t[e[d][0]];GZ.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},o),e[d][1])}if(o.tokenStack.length>0){const e=o.tokenStack[o.tokenStack.length-1];(e[1]||nV).call(o,void 0,e[0])}for(r.position={start:JZ(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:JZ(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r,i,o,s,a=t-1,l=-1,c=!1;for(;++a<=n;){const t=e[a];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,s=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||s||l||o||(o=a),s=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:s=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let s=a;for(i=void 0;s--;){const t=e[s];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=s}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||a,0,["exit",r,t[2]]),a++,n++}if("listItemPrefix"===t[1].type){const i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(a,0,["enter",i,t[2]]),a++,n++,o=void 0,s=!0}}}return e[t][1]._spread=c,n}function o(e,t){return n;function n(n){a.call(this,e(n),n),t&&t.call(this,n)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n]),e.position={start:JZ(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),c.call(this,t)}}function c(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+WZ({start:e.start,end:e.end})+"): it’s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||nV).call(this,e,r[0])}n.position.end=JZ(e.end)}function u(){return oL(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function h(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function f(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function O(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function y(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=OL(this.sliceSerialize(e)).toLowerCase()}function b(){const e=this.resume();this.stack[this.stack.length-1].title=e}function v(){const e=this.resume();this.stack[this.stack.length-1].url=e}function w(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function x(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function k(){this.data.setextHeadingSlurpLineEnding=void 0}function $(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=oe(),n.position={start:JZ(e.start),end:void 0},t.push(n)),this.stack.push(n)}function _(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=JZ(e.end)}function P(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=JZ(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&($.call(this,e),_.call(this,e))}function T(){this.data.atHardBreak=!0}function E(){const e=this.resume();this.stack[this.stack.length-1].value=e}function Q(){const e=this.resume();this.stack[this.stack.length-1].value=e}function C(){const e=this.resume();this.stack[this.stack.length-1].value=e}function A(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function R(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function D(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=VZ(t),n.identifier=OL(t).toLowerCase()}function N(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function j(){const e=this.resume();this.stack[this.stack.length-1].url=e}function I(){const e=this.resume();this.stack[this.stack.length-1].title=e}function q(){this.data.inReference=void 0}function U(){this.data.referenceType="collapsed"}function M(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=OL(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function X(e){this.data.characterReferenceType=e.type}function F(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=gL(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=cL(t)}const i=this.stack.pop();i.value+=r,i.position.end=JZ(e.end)}function L(e){_.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function Z(e){_.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function V(){return{type:"blockquote",children:[]}}function z(){return{type:"code",lang:null,meta:null,value:""}}function W(){return{type:"inlineCode",value:""}}function B(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Y(){return{type:"emphasis",children:[]}}function H(){return{type:"heading",depth:0,children:[]}}function G(){return{type:"break"}}function K(){return{type:"html",value:""}}function J(){return{type:"image",title:null,url:"",alt:null}}function ee(){return{type:"link",title:null,url:"",children:[]}}function te(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function ne(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function re(){return{type:"paragraph",children:[]}}function ie(){return{type:"strong",children:[]}}function oe(){return{type:"text",value:""}}function se(){return{type:"thematicBreak"}}}(n)(function(e){for(;!GL(e););return e}(function(e){const t={defined:[],lazy:{},constructs:hL([FZ,...(e||{}).extensions||[]]),content:n(DL),document:n(NL),flow:n(PZ),string:n(EZ),text:n(QZ)};return t;function n(e){return function(n){return DZ(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(i,o,s){const a=[];let l,c,u,d,p;for(i=n+("string"==typeof i?i.toString():new TextDecoder(o||void 0).decode(i)),u=0,n="",r&&(65279===i.charCodeAt(0)&&u++,r=void 0);u<i.length;){if(LZ.lastIndex=u,l=LZ.exec(i),d=l&&void 0!==l.index?l.index:i.length,p=i.charCodeAt(d),!l){n=i.slice(u);break}if(10===p&&u===d&&e)a.push(-3),e=void 0;else switch(e&&(a.push(-5),e=void 0),u<d&&(a.push(i.slice(u,d)),t+=d-u),p){case 0:a.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),a.push(-2);t++<c;)a.push(-1);break;case 10:a.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return s&&(e&&a.push(-5),n&&a.push(n),a.push(null)),a}}()(e,t,!0))))}function JZ(e){return{line:e.line,column:e.column,offset:e.offset}}function eV(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?eV(e,r):tV(e,r)}}function tV(e,t){let n;for(n in t)if(GZ.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function nV(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+WZ({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+WZ({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+WZ({start:t.start,end:t.end})+") is still open")}function rV(e){const t=this;t.parser=function(n){return KZ(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const iV={}.hasOwnProperty;function oV(e,t){const n=t||{};function r(t,...n){let i=r.invalid;const o=r.handlers;if(t&&iV.call(t,e)){const n=String(t[e]);i=iV.call(o,n)?o[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const sV={}.hasOwnProperty;function aV(e,t){let n,r=-1;if(t.extensions)for(;++r<t.extensions.length;)aV(e,t.extensions[r]);for(n in t)if(sV.call(t,n))switch(n){case"extensions":break;case"unsafe":case"join":lV(e[n],t[n]);break;case"handlers":cV(e[n],t[n]);break;default:e.options[n]=t[n]}return e}function lV(e,t){t&&e.push(...t)}function cV(e,t){t&&Object.assign(e,t)}function uV(e,t,n){return">"+(n?"":" ")+e}function dV(e,t){return pV(e,t.inConstruct,!0)&&!pV(e,t.notInConstruct,!1)}function pV(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function hV(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if("\n"===n.unsafe[i].character&&dV(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}function fV(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function mV(e,t,n){return(n?"":" ")+e}function gV(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function OV(e,t,n,r){const i=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),o=n.enter("emphasis"),s=n.createTracker(r);let a=s.move(i);return a+=s.move(n.containerPhrasing(e,{before:a,after:i,...s.current()})),a+=s.move(i),o(),a}OV.peek=function(e,t,n){return n.options.emphasis||"*"};const yV=function(e){if(null==e)return vV;if("function"==typeof e)return bV(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=yV(e[n]);return bV(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return bV(n);function n(n){const r=n;let i;for(i in e)if(r[i]!==t[i])return!1;return!0}}(e);if("string"==typeof e)return function(e){return bV(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function bV(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function vV(){return!0}const wV=[],SV=!0,xV=!1,kV="skip";function $V(e,t,n,r){let i;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):i=t;const o=yV(i),s=r?-1:1;!function e(i,a,l){const c=i&&"object"==typeof i?i:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,p=wV;if((!t||o(i,a,l[l.length-1]||void 0))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[SV,e];return null==e?wV:[e]}(n(i,l)),p[0]===xV))return p;if("children"in i&&i.children){const t=i;if(t.children&&p[0]!==kV)for(u=(r?t.children.length:-1)+s,d=l.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),c[0]===xV)return c;u="number"==typeof c[1]?c[1]:u+s}}return p}}(e,void 0,[])()}function _V(e,t,n,r){let i,o,s;"function"==typeof t&&"function"!=typeof n?(o=void 0,s=t,i=n):(o=t,s=n,i=r),$V(e,o,(function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return s(e,r,n)}),i)}function PV(e,t){let n=!1;return _V(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,xV})),Boolean((!e.depth||e.depth<3)&&oL(e)&&(t.options.setext||n))}function TV(e){return e.value||""}function EV(e,t,n,r){const i=gV(n),o='"'===i?"Quote":"Apostrophe",s=n.enter("image");let a=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(a=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),a()),c+=l.move(")"),s(),c}function QV(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let s=n.enter("label");const a=n.createTracker(r);let l=a.move("![");const c=n.safe(e.alt,{before:l,after:"]",...a.current()});l+=a.move(c+"]["),s();const u=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return s(),n.stack=u,o(),"full"!==i&&c&&c===d?"shortcut"===i?l=l.slice(0,-1):l+=a.move("]"):l+=a.move(d+"]"),l}function CV(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const e=n.unsafe[o],t=n.compilePattern(e);let i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(i.index+1)}}return i+r+i}function AV(e,t){const n=oL(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function RV(e,t,n,r){const i=gV(n),o='"'===i?"Quote":"Apostrophe",s=n.createTracker(r);let a,l;if(AV(e,n)){const t=n.stack;n.stack=[],a=n.enter("autolink");let r=s.move("<");return r+=s.move(n.containerPhrasing(e,{before:r,after:">",...s.current()})),r+=s.move(">"),a(),n.stack=t,r}a=n.enter("link"),l=n.enter("label");let c=s.move("[");return c+=s.move(n.containerPhrasing(e,{before:c,after:"](",...s.current()})),c+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(l=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${o}`),c+=s.move(" "+i),c+=s.move(n.safe(e.title,{before:c,after:i,...s.current()})),c+=s.move(i),l()),c+=s.move(")"),a(),c}function DV(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let s=n.enter("label");const a=n.createTracker(r);let l=a.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...a.current()});l+=a.move(c+"]["),s();const u=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return s(),n.stack=u,o(),"full"!==i&&c&&c===d?"shortcut"===i?l=l.slice(0,-1):l+=a.move("]"):l+=a.move(d+"]"),l}function NV(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function jV(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}TV.peek=function(){return"<"},EV.peek=function(){return"!"},QV.peek=function(){return"!"},CV.peek=function(){return"`"},RV.peek=function(e,t,n){return AV(e,n)?"<":"["},DV.peek=function(){return"["};const IV=yV(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);function qV(e,t,n,r){const i=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),o=n.enter("strong"),s=n.createTracker(r);let a=s.move(i+i);return a+=s.move(n.containerPhrasing(e,{before:a,after:i,...s.current()})),a+=s.move(i+i),o(),a}qV.peek=function(e,t,n){return n.options.strong||"*"};const UV={blockquote:function(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const s=n.indentLines(n.containerFlow(e,o.current()),uV);return i(),s},break:hV,code:function(e,t,n,r){const i=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),o=e.value||"",s="`"===i?"GraveAccent":"Tilde";if(fV(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(o,mV);return e(),t}const a=n.createTracker(r),l=i.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,s=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===i?++o>s&&(s=o):o=1,i=r+t.length,r=n.indexOf(t,i);return s}(o,i)+1,3)),c=n.enter("codeFenced");let u=a.move(l);if(e.lang){const t=n.enter(`codeFencedLang${s}`);u+=a.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...a.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${s}`);u+=a.move(" "),u+=a.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...a.current()})),t()}return u+=a.move("\n"),o&&(u+=a.move(o+"\n")),u+=a.move(l),c(),u},definition:function(e,t,n,r){const i=gV(n),o='"'===i?"Quote":"Apostrophe",s=n.enter("definition");let a=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(a=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),a(),e.title&&(a=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),a()),s(),c},emphasis:OV,hardBreak:hV,heading:function(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(PV(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),s=n.containerPhrasing(e,{...o.current(),before:"\n",after:"\n"});return r(),t(),s+"\n"+(1===i?"=":"-").repeat(s.length-(Math.max(s.lastIndexOf("\r"),s.lastIndexOf("\n"))+1))}const s="#".repeat(i),a=n.enter("headingAtx"),l=n.enter("phrasing");o.move(s+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...o.current()});return/^[\t ]/.test(c)&&(c="&#x"+c.charCodeAt(0).toString(16).toUpperCase()+";"+c.slice(1)),c=c?s+" "+c:s,n.options.closeAtx&&(c+=" "+s),l(),a(),c},html:TV,image:EV,imageReference:QV,inlineCode:CV,link:RV,linkReference:DV,list:function(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let s=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):NV(n);const a=e.ordered?"."===s?")":".":function(e){const t=NV(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let l=!(!t||!n.bulletLastUsed)&&s===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==s&&"-"!==s||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),jV(n)===s&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){l=!0;break}}}}l&&(s=a),n.bulletCurrent=s;const c=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=o,i(),c},listItem:function(e,t,n,r){const i=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let o=n.bulletCurrent||NV(n);t&&"list"===t.type&&t.ordered&&(o=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let s=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(s=4*Math.ceil(s/4));const a=n.createTracker(r);a.move(o+" ".repeat(s-o.length)),a.shift(s);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,a.current()),(function(e,t,n){if(t)return(n?"":" ".repeat(s))+e;return(n?o:o+" ".repeat(s-o.length))+e}));return l(),c},paragraph:function(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),s=n.containerPhrasing(e,r);return o(),i(),s},root:function(e,t,n,r){return(e.children.some((function(e){return IV(e)}))?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:qV,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(jV(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}},MV=[function(e,t,n,r){if("code"===t.type&&fV(t,r)&&("list"===e.type||e.type===t.type&&fV(e,r)))return!1;if("spread"in n&&"boolean"==typeof n.spread){if("paragraph"===e.type&&(e.type===t.type||"definition"===t.type||"heading"===t.type&&PV(t,r)))return;return n.spread?1:0}}];const XV=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],FV=[{character:"\t",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",before:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:"\n",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:XV},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:"(?:[\r\n]|$)"},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:XV},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:"(?:[ \t\r\n*])"},{character:"*",inConstruct:"phrasing",notInConstruct:XV},{atBreak:!0,character:"+",after:"(?:[ \t\r\n])"},{atBreak:!0,character:"-",after:"(?:[ \t\r\n-])"},{atBreak:!0,before:"\\d+",character:".",after:"(?:[ \t\r\n]|$)"},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:XV},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:XV},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:XV},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:XV},{atBreak:!0,character:"~"}];function LV(e){return e.label||!e.identifier?e.label||"":VZ(e.identifier)}function ZV(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function VV(e,t,n,r){let i=r.join.length;for(;i--;){const o=r.join[i](e,t,n,r);if(!0===o||1===o)break;if("number"==typeof o)return"\n".repeat(1+o);if(!1===o)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}const zV=/\r?\n|\r/g;function WV(e,t){const n=[];let r,i=0,o=0;for(;r=zV.exec(e);)s(e.slice(i,r.index)),n.push(r[0]),i=r.index+r[0].length,o++;return s(e.slice(i)),n.join("");function s(e){n.push(t(e,o,!e))}}function BV(e,t){return e-t}function YV(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,r=[],i=[],o=e+t;let s,a=-1,l=0;for(;s=n.exec(o);)r.push(s.index);for(;++a<r.length;)l!==r[a]&&i.push(e.slice(l,r[a])),i.push("\\"),l=r[a];return i.push(e.slice(l)),i.join("")}function HV(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,i=n.line||1,o=n.column||1;return{move:function(e){const t=e||"",n=t.split(/\r?\n|\r/g),s=n[n.length-1];return i+=n.length-1,o=1===n.length?o+s.length:1+s.length+r,t},current:function(){return{now:{line:i,column:o},lineShift:r}},shift:function(e){r+=e}}}function GV(e,t={}){const n={enter:function(e){return n.stack.push(e),function(){n.stack.pop()}},indentLines:WV,associationId:LV,containerPhrasing:tz,containerFlow:nz,createTracker:HV,compilePattern:ZV,safe:rz,stack:[],unsafe:[...FV],join:[...MV],handlers:{...UV},options:{},indexStack:[],handle:void 0};aV(n,t),n.options.tightDefinitions&&n.join.push(ez),n.handle=oV("type",{invalid:KV,unknown:JV,handlers:n.handlers});let r=n.handle(e,void 0,n,{before:"\n",after:"\n",now:{line:1,column:1},lineShift:0});return r&&10!==r.charCodeAt(r.length-1)&&13!==r.charCodeAt(r.length-1)&&(r+="\n"),r}function KV(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function JV(e){throw new Error("Cannot handle unknown node `"+e.type+"`")}function ez(e,t){if("definition"===e.type&&e.type===t.type)return 0}function tz(e,t){return function(e,t,n){const r=t.indexStack,i=e.children||[],o=[];let s=-1,a=n.before;r.push(-1);let l=t.createTracker(n);for(;++s<i.length;){const c=i[s];let u;if(r[r.length-1]=s,s+1<i.length){let n=t.handle.handlers[i[s+1].type];n&&n.peek&&(n=n.peek),u=n?n(i[s+1],e,t,{before:"",after:"",...l.current()}).charAt(0):""}else u=n.after;o.length>0&&("\r"===a||"\n"===a)&&"html"===c.type&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),a=" ",l=t.createTracker(n),l.move(o.join(""))),o.push(l.move(t.handle(c,e,t,{...l.current(),before:a,after:u}))),a=o[o.length-1].slice(-1)}return r.pop(),o.join("")}(e,this,t)}function nz(e,t){return function(e,t,n){const r=t.indexStack,i=e.children||[],o=t.createTracker(n),s=[];let a=-1;for(r.push(-1);++a<i.length;){const n=i[a];r[r.length-1]=a,s.push(o.move(t.handle(n,e,t,{before:"\n",after:"\n",...o.current()}))),"list"!==n.type&&(t.bulletLastUsed=void 0),a<i.length-1&&s.push(o.move(VV(n,i[a+1],e,t)))}return r.pop(),s.join("")}(e,this,t)}function rz(e,t){return function(e,t,n){const r=(n.before||"")+(t||"")+(n.after||""),i=[],o=[],s={};let a=-1;for(;++a<e.unsafe.length;){const t=e.unsafe[a];if(!dV(e.stack,t))continue;const n=e.compilePattern(t);let o;for(;o=n.exec(r);){const e="before"in t||Boolean(t.atBreak),n="after"in t,r=o.index+(e?o[1].length:0);i.includes(r)?(s[r].before&&!e&&(s[r].before=!1),s[r].after&&!n&&(s[r].after=!1)):(i.push(r),s[r]={before:e,after:n})}}i.sort(BV);let l=n.before?n.before.length:0;const c=r.length-(n.after?n.after.length:0);for(a=-1;++a<i.length;){const e=i[a];e<l||e>=c||e+1<c&&i[a+1]===e+1&&s[e].after&&!s[e+1].before&&!s[e+1].after||i[a-1]===e-1&&s[e].before&&!s[e-1].before&&!s[e-1].after||(l!==e&&o.push(YV(r.slice(l,e),"\\")),l=e,!/[!-/:-@[-`{-~]/.test(r.charAt(e))||n.encode&&n.encode.includes(r.charAt(e))?(o.push("&#x"+r.charCodeAt(e).toString(16).toUpperCase()+";"),l++):o.push("\\"))}return o.push(YV(r.slice(l,c),n.after)),o.join("")}(this,e,t)}function iz(e){if(e)throw e}var oz=Object.prototype.hasOwnProperty,sz=Object.prototype.toString,az=Object.defineProperty,lz=Object.getOwnPropertyDescriptor,cz=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===sz.call(e)},uz=function(e){if(!e||"[object Object]"!==sz.call(e))return!1;var t,n=oz.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&oz.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||oz.call(e,t)},dz=function(e,t){az&&"__proto__"===t.name?az(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},pz=function(e,t){if("__proto__"===t){if(!oz.call(e,t))return;if(lz)return lz(e,t).value}return e[t]},hz=function e(){var t,n,r,i,o,s,a=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[1]||{},l=2),(null==a||"object"!=typeof a&&"function"!=typeof a)&&(a={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=pz(a,n),a!==(i=pz(t,n))&&(u&&i&&(uz(i)||(o=cz(i)))?(o?(o=!1,s=r&&cz(r)?r:[]):s=r&&uz(r)?r:{},dz(a,{name:n,newValue:e(u,s,i)})):void 0!==i&&dz(a,{name:n,newValue:i}));return a};const fz=r(hz);function mz(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 gz(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function i(o,...s){const a=e[++n];let l=-1;if(o)r(o);else{for(;++l<t.length;)null!==s[l]&&void 0!==s[l]||(s[l]=t[l]);t=s,a?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let a;r&&t.push(i);try{a=e.apply(this,t)}catch(o){if(r&&n)throw o;return i(o)}r||(a instanceof Promise?a.then(s,i):a instanceof Error?i(a):s(a))}function i(e,...r){n||(n=!0,t(e,...r))}function s(e){i(null,e)}}(a,i)(...s):r(null,...s)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}class Oz extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},o=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(o=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=s?s.line:void 0,this.name=WZ(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}Oz.prototype.file="",Oz.prototype.name="",Oz.prototype.reason="",Oz.prototype.message="",Oz.prototype.stack="",Oz.prototype.column=void 0,Oz.prototype.line=void 0,Oz.prototype.ancestors=void 0,Oz.prototype.cause=void 0,Oz.prototype.fatal=void 0,Oz.prototype.place=void 0,Oz.prototype.ruleId=void 0,Oz.prototype.source=void 0;const yz={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');bz(e);let n,r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let s=-1,a=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else s<0&&(n=!0,s=o+1),a>-1&&(e.codePointAt(o)===t.codePointAt(a--)?a<0&&(i=o):(a=-1,i=s));r===i?i=s:i<0&&(i=e.length);return e.slice(r,i)},dirname:function(e){if(bz(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){bz(e);let t,n=e.length,r=-1,i=0,o=-1,s=0;for(;n--;){const a=e.codePointAt(n);if(47!==a)r<0&&(t=!0,r=n+1),46===a?o<0?o=n:1!==s&&(s=1):o>-1&&(s=-1);else if(t){i=n+1;break}}if(o<0||r<0||0===s||1===s&&o===r-1&&o===i+1)return"";return e.slice(o,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)bz(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){bz(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,i="",o=0,s=-1,a=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(s===l-1||1===a);else if(s!==l-1&&2===a){if(i.length<2||2!==o||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2))if(i.length>2){if(r=i.lastIndexOf("/"),r!==i.length-1){r<0?(i="",o=0):(i=i.slice(0,r),o=i.length-1-i.lastIndexOf("/")),s=l,a=0;continue}}else if(i.length>0){i="",o=0,s=l,a=0;continue}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(s+1,l):i=e.slice(s+1,l),o=l-s-1;s=l,a=0}else 46===n&&a>-1?a++:a=-1}return i}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function bz(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const vz={cwd:function(){return"/"}};function wz(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function Sz(e){if("string"==typeof e)e=new URL(e);else if(!wz(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const xz=["history","path","basename","stem","extname","dirname"];class kz{constructor(e){let t;t=e?wz(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd=vz.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<xz.length;){const e=xz[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)xz.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?yz.basename(this.path):void 0}set basename(e){_z(e,"basename"),$z(e,"basename"),this.path=yz.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?yz.dirname(this.path):void 0}set dirname(e){Pz(this.basename,"dirname"),this.path=yz.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?yz.extname(this.path):void 0}set extname(e){if($z(e,"extname"),Pz(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=yz.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){wz(e)&&(e=Sz(e)),_z(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?yz.basename(this.path,this.extname):void 0}set stem(e){_z(e,"stem"),$z(e,"stem"),this.path=yz.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new Oz(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function $z(e,t){if(e&&e.includes(yz.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+yz.sep+"`")}function _z(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Pz(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const Tz=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};Object.setPrototypeOf(r,t);const i=Object.getOwnPropertyNames(n);for(const o of i){const e=Object.getOwnPropertyDescriptor(n,o);e&&Object.defineProperty(r,o,e)}return r},Ez={}.hasOwnProperty;class Qz extends Tz{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=gz()}copy(){const e=new Qz;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(fz(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(Dz("data",this.frozen),this.namespace[e]=t,this):Ez.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Dz("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=Iz(e),n=this.parser||this.Parser;return Az("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),Az("process",this.parser||this.Parser),Rz("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){const o=Iz(e),s=n.parse(o);function a(e,n){e||!n?i(e):r?r(n):t(void 0,n)}n.run(s,o,(function(e,t,r){if(e||!t||!r)return a(e);const i=t,o=n.stringify(i,r);!function(e){return"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)}(o)?r.result=o:r.value=o,a(e,r)}))}}processSync(e){let t,n=!1;return this.freeze(),Az("processSync",this.parser||this.Parser),Rz("processSync",this.compiler||this.Compiler),this.process(e,(function(e,r){n=!0,iz(e),t=r})),jz("processSync","process",n),t}run(e,t,n){Nz(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,o){const s=Iz(t);r.run(e,s,(function(t,r,s){const a=r||e;t?o(t):i?i(a):n(void 0,a,s)}))}}runSync(e,t){let n,r=!1;return this.run(e,t,(function(e,t){iz(e),n=t,r=!0})),jz("runSync","run",r),n}stringify(e,t){this.freeze();const n=Iz(t),r=this.compiler||this.Compiler;return Rz("stringify",r),Nz(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(Dz("use",this.frozen),null==e);else if("function"==typeof e)a(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?s(e):o(e)}return this;function i(e){if("function"==typeof e)a(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;a(t,n)}else o(e)}}function o(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(e.plugins),e.settings&&(r.settings=fz(!0,r.settings,e.settings))}function s(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;){i(e[t])}}}function a(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...o]=t;const s=n[i][1];mz(s)&&mz(r)&&(r=fz(!0,s,r)),n[i]=[e,r,...o]}}}}const Cz=(new Qz).freeze();function Az(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function Rz(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function Dz(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 Nz(e){if(!mz(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function jz(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Iz(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new kz(e)}const qz=Cz().use(rV).use((function(e){const t=this;t.compiler=function(n){return GV(n,{...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]})}})).use((function(){return(e,t)=>{t.data.headings=eL(e)}})),Uz=async e=>{const t=new rL,{headings:n}=(await qz.process(e)).data;return Mz(n,t)},Mz=(e,t)=>e.map((e=>({...e,slug:t.slug(e.value)}))),Xz=e=>{const t=Math.min(...e.map((e=>e.depth)));return t>=1&&t<=6?t:1},Fz=e=>{if(!e)return"models";return`model/${(new rL).slug(e)}`},Lz=e=>`tag/${(new rL).slug(e.name)}`,Zz=(e,t)=>`${Lz(t)}/[${e.httpVerb}]${e.path}`;function Vz(e,t){var n;return[...e.pathParameters||[],...(null==(n=e.information)?void 0:n.parameters)||[]].filter((e=>e.in===t)).map((e=>({name:e.name,description:e.description??null,value:e.example?e.example:e.schema?cN(e.schema):"",required:e.required??!1})))}function zz(e){var t;const n=[],r=[],i=[];if(e.securitySchemeKey){const s=null==(t=e.securitySchemes)?void 0:t[e.securitySchemeKey];s&&("apiKey"===s.type?"header"===s.in?n.push({name:s.name,value:e.apiKey.token}):"cookie"===s.in?i.push({name:s.name,value:e.apiKey.token}):"query"===s.in&&r.push({name:s.name,value:e.apiKey.token}):"http"!==s.type&&"basic"!==s.type||("basic"===s.type||"basic"===s.scheme?n.push({name:"Authorization",value:`Basic ${o.Buffer.from(`${e.http.basic.username}:${e.http.basic.password}`).toString("base64")}`}):"bearer"===s.scheme&&n.push({name:"Authorization",value:`Bearer ${e.http.bearer.token}`})))}return{headers:n,queryString:r,cookies:i}}function Wz(e,t){const n=function(e,t,r){let i="";if(e instanceof Array)for(let o=0,s=e.length;o<s;o++)i+=r+n(e[o],t,r+"\t")+"\n";else if("object"==typeof e){let o=!1;i+=r+"<"+t;for(const t in e)"@"==t.charAt(0)?i+=" "+t.substr(1)+'="'+e[t].toString()+'"':o=!0;if(i+=o?">":"/>",o){for(const t in e)"#text"==t?i+=e[t]:"#cdata"==t?i+="<![CDATA["+e[t]+"]]>":"@"!=t.charAt(0)&&(i+=n(e[t],t,r+"\t"));i+=("\n"==i.charAt(i.length-1)?r:"")+"</"+t+">"}}else i+=r+"<"+t+">"+e.toString()+"</"+t+">";return i};let r="";for(const i in e)r+=n(e[i],i,"");return t?r.replace(/\t/g,t):r.replace(/\t|\n/g,"")}const Bz=(e,t)=>{let n=e.path;if(!0===(null==t?void 0:t.replaceVariables)){const e=n.match(/{(.*?)}/g);e&&e.forEach((e=>{const t=e.replace(/{|}/g,"");n=n.replace(e,`__${t.toUpperCase()}__`)}))}const r=function(e){var t,n,r;const i=["application/json","application/octet-stream","application/x-www-form-urlencoded","application/xml","multipart/form-data","text/plain"].find((t=>{var n,r,i;return!!(null==(i=null==(r=null==(n=e.information)?void 0:n.requestBody)?void 0:r.content)?void 0:i[t])}));if(!i)return null;const o=null==(r=null==(n=null==(t=e.information)?void 0:t.requestBody)?void 0:n.content)?void 0:r[i],s=[{name:"Content-Type",value:i}],a=(null==o?void 0:o.example)?null==o?void 0:o.example:void 0;if("application/json"===i){const e=(null==o?void 0:o.schema)?cN(null==o?void 0:o.schema):null;return{headers:s,postData:{mimeType:i,text:a??JSON.stringify(e,null,2)}}}if("application/xml"===i){const e=(null==o?void 0:o.schema)?cN(null==o?void 0:o.schema,{xml:!0}):null;return{headers:s,postData:{mimeType:i,text:a??Wz(e," ")}}}if("application/octet-stream"===i)return{headers:s,postData:{mimeType:i,text:"BINARY"}};if("text/plain"===i){const e=(null==o?void 0:o.schema)?cN(null==o?void 0:o.schema,{xml:!0}):null;return{headers:s,postData:{mimeType:i,text:a??e??""}}}if("application/x-www-form-urlencoded"===i)return{headers:s,postData:{mimeType:i}};if("multipart/form-data"===i)return{headers:s,postData:{mimeType:i}};return}(e);return{method:e.httpVerb.toUpperCase(),path:n,headers:[...Vz(e,"header"),...(null==r?void 0:r.headers)??[]],postData:null==r?void 0:r.postData,queryString:Vz(e,"query"),cookies:Vz(e,"cookie")}};function Yz(e,t){const n=(e,n)=>{if("function"==typeof t)return t(n);{const e=null==t?void 0:t.find((e=>e.name===n));return((null==e?void 0:e.value)??"").toString()}};return e.replace(/{{\s*([\w.-]+)\s*}}/g,n).replace(/{\s*([\w.-]+)\s*}/g,n)}function Hz(e){var t,n,r,i;let o=null===e.selectedServer?(null==(n=null==(t=null==e?void 0:e.servers)?void 0:t[0])?void 0:n.url)??void 0:null==(i=null==(r=null==e?void 0:e.servers)?void 0:r[e.selectedServer])?void 0:i.url;return(null==o?void 0:o.startsWith("/"))&&(o=`${window.location.origin}${o.slice(1)}`),o?Yz(o,null==e?void 0:e.variables):void 0}const Gz=e=>{var t;return!!e&&!!Object.keys((null==(t=null==e?void 0:e.components)?void 0:t.schemas)??{}).length},Kz=e=>{var t;return!!Object.keys((null==(t=null==e?void 0:e.components)?void 0:t.securitySchemes)??{}).length},Jz=e=>{if("string"!=typeof e)return!1;try{JSON.parse(e)}catch{return!1}return!0};const eW=(e,t)=>Object.keys(e).map((n=>({[t??n]:n,value:e[n]})));const tW=Bt({securitySchemeKey:null,http:{basic:{username:"",password:""},bearer:{token:""}},apiKey:{token:""}}),nW=e=>{Object.assign(tW,{...tW,...e})},rW=Bt({selectedServer:null,servers:[],variables:[]}),iW=e=>{Object.assign(rW,{...rW,...e})},oW=()=>({authentication:tW,setAuthentication:nW,server:rW,setServer:iW}),{server:sW,authentication:aW}=oW(),{toggleApiClient:lW}=ON(),{setActiveRequest:cW,resetActiveResponse:uW}=EN();function dW(e){const t=lN({serverState:sW,authenticationState:aW,operation:e});uW(),cW(t),lW(t,!0)}const pW=e=>{try{return"string"==typeof e?JSON.stringify(JSON.parse(e),null,2):JSON.stringify(e,null,2)}catch{return console.log("[prettyPrintJson] Error parsing JSON",e),e}},hW=async e=>{var t;null==(t=document.getElementById(e))||t.scrollIntoView()};
16
+ */function fF(e){var t=String(e);if(uF.test(t))return t;if(t.length>0&&!cF.test(t))throw new TypeError("invalid parameter value");return'"'+t.replace(pF,"\\$1")+'"'}function mF(e){this.parameters=Object.create(null),this.type=e}aF.format=function(e){if(!e||"object"!=typeof e)throw new TypeError("argument obj is required");var t=e.parameters,n=e.type;if(!n||!hF.test(n))throw new TypeError("invalid type");var r=n;if(t&&"object"==typeof t)for(var i,o=Object.keys(t).sort(),s=0;s<o.length;s++){if(i=o[s],!uF.test(i))throw new TypeError("invalid parameter name");r+="; "+i+"="+fF(t[i])}return r},aF.parse=function(e){if(!e)throw new TypeError("argument string is required");var t="object"==typeof e?function(e){var t;"function"==typeof e.getHeader?t=e.getHeader("content-type"):"object"==typeof e.headers&&(t=e.headers&&e.headers["content-type"]);if("string"!=typeof t)throw new TypeError("content-type header is missing from object");return t}(e):e;if("string"!=typeof t)throw new TypeError("argument string is required to be a string");var n=t.indexOf(";"),r=-1!==n?t.slice(0,n).trim():t.trim();if(!hF.test(r))throw new TypeError("invalid media type");var i=new mF(r.toLowerCase());if(-1!==n){var o,s,a;for(lF.lastIndex=n;s=lF.exec(t);){if(s.index!==n)throw new TypeError("invalid parameter format");n+=s[0].length,o=s[1].toLowerCase(),34===(a=s[2]).charCodeAt(0)&&-1!==(a=a.slice(1,-1)).indexOf("\\")&&(a=a.replace(dF,"$1")),i.parameters[o]=a}if(n!==t.length)throw new TypeError("invalid parameter format")}return i};const gF={key:1,class:"scalar-api-client__empty-state"},OF={key:1,class:"scalar-api-client__empty-state"},yF=Hr({__name:"ResponseBody",props:{active:{type:Boolean,default:!1},data:{default:null},headers:{}},setup(e){const t=e,n=Is((()=>{const e=t.headers.find((e=>"content-type"===e.name.toLowerCase()));if(!e)return null;try{return aF.parse(e.value).type}catch{return null}})),r=Is((()=>"application/json"===n.value?["json"]:"text/html"===n.value?["html"]:null));return(e,t)=>(Xo(),zo(fn(TM),{title:"Body"},{default:$r((()=>[e.active?(Xo(),Vo(No,{key:0},[r.value?(Xo(),zo(fn(yD),{key:0,content:e.data,languages:r.value,readOnly:""},null,8,["content","languages"])):(Xo(),Vo("div",gF,[n.value?(Xo(),Vo(No,{key:0},[is(" No Preview Available ("+Re(n.value)+") ",1)],64)):(Xo(),Vo(No,{key:1},[is(" Can’t render a preview. The Content-Type header is missing or unknown. ")],64))]))],64)):(Xo(),Vo("div",OF," No Response "))])),_:1}))}}),bF=["href"],vF=bl(Hr({__name:"HelpfulLink",props:{href:{}},setup:e=>(e,t)=>(Xo(),Vo("a",{href:e.href,rel:"noopener noreferrer",target:"_blank"},[xi(e.$slots,"default",{},void 0,!0)],8,bF))}),[["__scopeId","data-v-d11ff062"]]),wF=bl(Hr({__name:"SimpleCell",props:{wrap:{type:Boolean,default:!0},strong:{type:Boolean,default:!1},href:{default:null}},setup:e=>(e,t)=>(Xo(),Vo("td",{class:$e(["simple-cell",{wrap:e.wrap,strong:e.strong}])},[e.href?(Xo(),zo(vF,{key:0,href:e.href},{default:$r((()=>[xi(e.$slots,"default",{},void 0,!0)])),_:3},8,["href"])):xi(e.$slots,"default",{key:1},void 0,!0)],2))}),[["__scopeId","data-v-01fffd78"]]),SF=bl(Hr({__name:"SimpleHeader",setup:e=>(e,t)=>(Xo(),zo(wF,{as:"th",class:"simple-header"},{default:$r((()=>[xi(e.$slots,"default",{},void 0,!0)])),_:3}))}),[["__scopeId","data-v-b2232089"]]),xF={class:"simple-row"};const kF=bl({},[["render",function(e,t){return Xo(),Vo("tr",xF,[xi(e.$slots,"default",{},void 0,!0)])}],["__scopeId","data-v-0982ade4"]]),$F={class:"simple-table"};const _F=bl({},[["render",function(e,t){return Xo(),Vo("table",$F,[xi(e.$slots,"default",{},void 0,!0)])}],["__scopeId","data-v-28fcbcb6"]]),PF={key:1,class:"scalar-api-client__empty-state"},TF=Hr({__name:"ResponseHeaders",props:{headers:{}},setup(e){const t=e=>e.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join("-");return(e,n)=>(Xo(),zo(fn(TM),{title:"Headers"},{default:$r((()=>[e.headers.length>0?(Xo(),zo(fn(_F),{key:0},{default:$r((()=>[Jo(fn(kF),null,{default:$r((()=>[Jo(fn(SF),null,{default:$r((()=>[is("Key")])),_:1}),Jo(fn(SF),null,{default:$r((()=>[is("Value")])),_:1})])),_:1}),(Xo(!0),Vo(No,null,wi(e.headers,(e=>(Xo(),zo(fn(kF),{key:e.name},{default:$r((()=>{return[Jo(fn(wF),{href:(n=e.name,null==(r=qI.find((e=>e.name.toLowerCase()===n.toLowerCase())))?void 0:r.url),strong:!0,wrap:!1},{default:$r((()=>[is(Re(t(e.name)),1)])),_:2},1032,["href"]),Jo(fn(wF),null,{default:$r((()=>[is(Re(e.value),1)])),_:2},1024)];var n,r})),_:2},1024)))),128))])),_:1})):(Xo(),Vo("div",PF,"No Headers"))])),_:1}))}}),EF={class:"meta-item"},QF={class:"meta-item"},CF={class:"meta-item"},AF=Hr({__name:"ResponseMetaInformation",props:{response:{}},setup(e){const t=e,n=e=>{var t;return(null==(t=null==e?void 0:e.headers)?void 0:t["X-API-Client-Content-Length"])?HU(parseFloat(e.headers["X-API-Client-Content-Length"])):HU(0)},r=Is((()=>{const e=t.response.statusCode;if(e)return MI[e]??void 0}));return(e,t)=>{var i,o;return Xo(),Vo(No,null,[Ko("div",EF,[Ko("span",null,Re(fn(GU)(e.response.duration)),1)]),Ko("div",QF,[Ko("span",null,Re(n(e.response)),1)]),Ko("div",CF,[Ko("span",{class:$e(`scalar-api-client__status scalar-api-client__status--${String(e.response.statusCode).charAt(0)}xx`)},[(null==(i=r.value)?void 0:i.url)?(Xo(),zo(vF,{key:0,href:r.value.url},{default:$r((()=>[is(Re(e.response.statusCode)+" "+Re(r.value.name),1)])),_:1},8,["href"])):(Xo(),Vo(No,{key:1},[is(Re(e.response.statusCode)+" "+Re(null==(o=r.value)?void 0:o.name),1)],64))],2)])],64)}}}),RF={class:"scalar-api-client__main__right custom-scroll"},DF={class:"scalar-api-client__main__content"},NF=Ko("label",null,"Response",-1),jF={class:"meta"},IF={key:1,class:"meta-item"},qF=[Ko("span",null,"Send your first request to start",-1)],UF={key:0,class:"scalar-api-client__empty-state"},MF=Ko("div",{class:"scalar-api-client__main__scroll-container"},null,-1),XF=Hr({__name:"Response",setup(e){const{activeResponse:t,activeRequestId:n}=EN(),r=Is((()=>{var e;const n=null==(e=t.value)?void 0:e.headers;return n?Object.keys(n).map((e=>({name:e,value:n[e]}))).filter((e=>!["rest-api-client-content-length","X-API-Client-Content-Length"].includes(e.name))):[]})),i=Is((()=>{var e;const n=null==(e=t.value)?void 0:e.cookies;return n?Object.keys(n).map((e=>({name:e,value:n[e]}))):[]})),o=Is((()=>{var e;const n=null==(e=t.value)?void 0:e.data;return n&&jI(n)?JSON.stringify(JSON.parse(n),null,2):n&&"object"==typeof nn(n)||n&&!jI(n)?JSON.stringify(n,null,2):n}));return(e,s)=>(Xo(),Vo("div",RF,[Ko("div",DF,[NF,Ko("div",jF,[fn(n)&&fn(t)?(Xo(),zo(AF,{key:0,response:fn(t)},null,8,["response"])):(Xo(),Vo("div",IF,qF))])]),Ko("div",null,[Jo(yF,{active:!!fn(t),data:o.value,headers:r.value},null,8,["active","data","headers"]),Jo(TF,{headers:r.value},null,8,["headers"]),Jo(fn(TM),{title:"Cookies"},{default:$r((()=>[Lr(Jo(fn(qX),{items:i.value},null,8,["items"]),[[Wa,i.value.length>0]]),0===i.value.length?(Xo(),Vo("div",UF,"No Cookies")):ss("",!0)])),_:1}),MF])]))}}),FF={class:"scalar-api-client__main"},LF=Hr({__name:"ApiClient",props:{proxyUrl:{},readOnly:{type:Boolean,default:!1},theme:{}},emits:["escapeKeyPress"],setup(e,{emit:t}){const n=e,{activeRequest:r,readOnly:i}=EN(),o=Bu("(max-width: 820px)"),s=un(0),a=1;function l(e){s.value=e}return Ir((()=>n.readOnly),(()=>{i.value=n.readOnly}),{immediate:!0}),uN({keyList:["escape"],handler:()=>t("escapeKeyPress")}),(e,n)=>(Xo(),Vo(No,null,[Jo(fn(ml),{id:e.theme},null,8,["id"]),Ko("div",{class:$e(["scalar-api-client",`scalar-api-client--${fn(r).type.toLowerCase()||"get"}`]),onKeydown:n[1]||(n[1]=za((e=>t("escapeKeyPress")),["esc"]))},[Jo(xM,{proxyUrl:e.proxyUrl,onOnSend:n[0]||(n[0]=e=>l(a))},null,8,["proxyUrl"]),Ko("div",FF,[fn(o)?(Xo(),zo(fn(Pu),{key:1,selectedIndex:s.value,onChange:l},{default:$r((()=>[Jo(fn(Tu),{class:"scalar-api-client__mobile-navigation"},{default:$r((()=>[Jo(fn(Eu),{class:"scalar-api-client__mobile-navigation__toggle"},{default:$r((({selected:e})=>[Ko("span",{class:$e({"scalar-api-client__mobile-navigation--active":e})}," Request ",2)])),_:1}),Jo(fn(Eu),{class:"scalar-api-client__mobile-navigation__toggle"},{default:$r((({selected:e})=>[Ko("span",{class:$e({"scalar-api-client__mobile-navigation--active":e})}," Response ",2)])),_:1})])),_:1}),Jo(fn(Qu),{as:"template"},{default:$r((()=>[Jo(fn(Cu),{as:"template"},{default:$r((()=>[Jo(fn(sF))])),_:1}),Jo(fn(Cu),{as:"template"},{default:$r((()=>[Jo(fn(XF))])),_:1})])),_:1})])),_:1},8,["selectedIndex"])):(Xo(),Vo(No,{key:0},[Jo(fn(sF)),Jo(fn(XF))],64))])],34)],64))}}),ZF=(...e)=>{let t={httpVersion:"1.1",method:"GET",url:"",path:"",headers:[],headersSize:-1,queryString:[],cookies:[],bodySize:-1};e.forEach((e=>{t={...t,...e,headers:[...t.headers,...e.headers??[]],queryString:[...t.queryString,...e.queryString??[]],cookies:[...t.cookies,...e.cookies??[]]}})),t.headers=eW(UU.from(II(t.headers,"name","value")).normalize(!0),"name");const{path:n,...r}=t;return n?{...r,url:`${t.url}${n}`}:r},VF=e=>e.slug?`description/${e.slug}`:"",zF=function(e){if(null==e)return BF;if("string"==typeof e)return function(e){return WF(t);function t(t){return t&&t.type===e}}(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=zF(e[n]);return WF(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].call(this,...e))return!0;return!1}}(e):function(e){return WF(t);function t(t){let n;for(n in e)if(t[n]!==e[n])return!1;return!0}}(e);if("function"==typeof e)return WF(e);throw new Error("Expected function, string, or object as test")};function WF(e){return function(t,...n){return Boolean(t&&"object"==typeof t&&"type"in t&&Boolean(e.call(this,t,...n)))}}function BF(){return!0}const YF=function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null);const i=zF(t),o=r?-1:1;!function e(s,a,l){const c=s&&"object"==typeof s?s:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+s.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,p=[];if((!t||i(s,a,l[l.length-1]||null))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[true,e];return[e]}(n(s,l)),false===p[0]))return p;if(s.children&&"skip"!==p[0])for(u=(r?s.children.length:-1)+o,d=l.concat(s);u>-1&&u<s.children.length;){if(c=e(s.children[u],u,d)(),false===c[0])return c;u="number"==typeof c[1]?c[1]:u+o}return p}}(e,void 0,[])()};const HF={};function GF(e,t){const n=t||HF;return KF(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function KF(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return JF(e.children,t,n)}return Array.isArray(e)?JF(e,t,n):""}function JF(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=KF(e[i],t,n);return r.join("")}const eL=e=>{const t=[];var n,r,i;return r=e=>{const n={depth:e.depth,value:GF(e,{includeImageAlt:!1})},r=null==e?void 0:e.data;r&&(n.data=r),t.push(n)},"function"==typeof(n="heading")&&"function"!=typeof r&&(i=r,r=n,n=null),YF(e,n,(function(e,t){const n=t[t.length-1];return r(e,n?n.children.indexOf(e):null,n)}),i),t};const tL=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,nL=Object.hasOwnProperty;class rL{constructor(){this.occurrences,this.reset()}slug(e,t){const n=this;let r=function(e,t){if("string"!=typeof e)return"";t||(e=e.toLowerCase());return e.replace(tL,"").replace(/ /g,"-")}(e,!0===t);const i=r;for(;nL.call(n.occurrences,r);)n.occurrences[i]++,r=i+"-"+n.occurrences[i];return n.occurrences[r]=0,r}reset(){this.occurrences=Object.create(null)}}const iL={};function oL(e,t){const n=t||iL;return sL(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function sL(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return aL(e.children,t,n)}return Array.isArray(e)?aL(e,t,n):""}function aL(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=sL(e[i],t,n);return r.join("")}const lL=document.createElement("i");function cL(e){const t="&"+e+";";lL.innerHTML=t;const n=lL.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}function uL(e,t,n,r){const i=e.length;let o,s=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);s<r.length;)o=r.slice(s,s+1e4),o.unshift(t,0),e.splice(...o),s+=1e4,t+=1e4}function dL(e,t){return e.length>0?(uL(e,e.length,0,t),e):t}const pL={}.hasOwnProperty;function hL(e){const t={};let n=-1;for(;++n<e.length;)fL(t,e[n]);return t}function fL(e,t){let n;for(n in t){const r=(pL.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){pL.call(r,o)||(r[o]=[]);const e=i[o];mL(r[o],Array.isArray(e)?e:e?[e]:[])}}}function mL(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);uL(e,0,0,r)}function gL(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535==(65535&n)||65534==(65535&n)||n>1114111?"�":String.fromCharCode(n)}function OL(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const yL=CL(/\p{P}/u),bL=CL(/[A-Za-z]/),vL=CL(/[\dA-Za-z]/),wL=CL(/[#-'*+\--9=?A-Z^-~]/);function SL(e){return null!==e&&(e<32||127===e)}const xL=CL(/\d/),kL=CL(/[\dA-Fa-f]/),$L=CL(/[!-/:-@[-`{-~]/);function _L(e){return null!==e&&e<-2}function PL(e){return null!==e&&(e<0||32===e)}function TL(e){return-2===e||-1===e||32===e}function EL(e){return $L(e)||yL(e)}const QL=CL(/\s/);function CL(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function AL(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let s="";if(37===o&&vL(e.charCodeAt(n+1))&&vL(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){const t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(s=String.fromCharCode(o,t),i=1):s="�"}else s=String.fromCharCode(o);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function RL(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){if(TL(r))return e.enter(n),s(r);return t(r)};function s(r){return TL(r)&&o++<i?(e.consume(r),s):(e.exit(n),t(r))}}const DL={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),RL(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),r(t)}));let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,i(t)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):_L(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),i)}}};const NL={tokenize:function(e){const t=this,n=[];let r,i,o,s=0;return a;function a(r){if(s<n.length){const i=n[s];return t.containerState=i[1],e.attempt(i[0].continuation,l,c)(r)}return c(r)}function l(e){if(s++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&y();const n=t.events.length;let i,o=n;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){i=t.events[o][1].end;break}O(s);let a=n;for(;a<t.events.length;)t.events[a][1].end=Object.assign({},i),a++;return uL(t.events,o+1,0,t.events.slice(n)),t.events.length=a,c(e)}return a(e)}function c(i){if(s===n.length){if(!r)return p(i);if(r.currentConstruct&&r.currentConstruct.concrete)return f(i);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(jL,u,d)(i)}function u(e){return r&&y(),O(s),p(e)}function d(e){return t.parser.lazy[t.now().line]=s!==n.length,o=t.now().offset,f(e)}function p(n){return t.containerState={},e.attempt(jL,h,f)(n)}function h(e){return s++,n.push([t.currentConstruct,t.containerState]),p(e)}function f(n){return null===n?(r&&y(),O(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:r}),m(n))}function m(n){return null===n?(g(e.exit("chunkFlow"),!0),O(0),void e.consume(n)):_L(n)?(e.consume(n),g(e.exit("chunkFlow")),s=0,t.interrupt=void 0,a):(e.consume(n),m)}function g(e,n){const a=t.sliceStream(e);if(n&&a.push(null),e.previous=i,i&&(i.next=e),i=e,r.defineSkip(e.start),r.write(a),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<o&&(!r.events[e][1].end||r.events[e][1].end.offset>o))return;const n=t.events.length;let i,a,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(i){a=t.events[l][1].end;break}i=!0}for(O(s),e=n;e<t.events.length;)t.events[e][1].end=Object.assign({},a),e++;uL(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function O(r){let i=n.length;for(;i-- >r;){const r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function y(){r.write([null]),i=void 0,r=void 0,t.containerState._closeFlow=void 0}}},jL={tokenize:function(e,t,n){return RL(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function IL(e){return null===e||PL(e)||QL(e)?1:EL(e)?2:void 0}function qL(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const UL={name:"attention",tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=IL(r);let o;return function(t){return o=t,e.enter("attentionSequence"),s(t)};function s(a){if(a===o)return e.consume(a),s;const l=e.exit("attentionSequence"),c=IL(a),u=!c||2===c&&i||n.includes(a),d=!i||2===i&&c||n.includes(r);return l._open=Boolean(42===o?u:u&&(i||!d)),l._close=Boolean(42===o?d:d&&(c||!u)),t(a)}},resolveAll:function(e,t){let n,r,i,o,s,a,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;a=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d=Object.assign({},e[n][1].end),p=Object.assign({},e[u][1].start);ML(d,-a),ML(p,a),o={type:a>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[n][1].end)},s={type:a>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[u][1].start),end:p},i={type:a>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[u][1].start)},r={type:a>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[n][1].end=Object.assign({},o.start),e[u][1].start=Object.assign({},s.end),l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=dL(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=dL(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),l=dL(l,qL(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=dL(l,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=dL(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,uL(e,n-1,u-n+3,l),u=n+l.length-c-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e}};function ML(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const XL={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return bL(t)?(e.consume(t),o):l(t)}function o(e){return 43===e||45===e||46===e||vL(e)?(r=1,s(e)):l(e)}function s(t){return 58===t?(e.consume(t),r=0,a):(43===t||45===t||46===t||vL(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function a(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||SL(r)?n(r):(e.consume(r),a)}function l(t){return 64===t?(e.consume(t),c):wL(t)?(e.consume(t),l):n(t)}function c(e){return vL(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||vL(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}};const FL={tokenize:function(e,t,n){return function(t){return TL(t)?RL(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||_L(e)?t(e):n(e)}},partial:!0};const LL={name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return TL(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(TL(t))return RL(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return i(t)};function i(r){return e.attempt(LL,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};const ZL={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return $L(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const VL={name:"characterReference",tokenize:function(e,t,n){const r=this;let i,o,s=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),i=31,o=vL,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=kL,c):(e.enter("characterReferenceValue"),i=7,o=xL,c(t))}function c(a){if(59===a&&s){const i=e.exit("characterReferenceValue");return o!==vL||cL(r.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return o(a)&&s++<i?(e.consume(a),c):n(a)}}};const zL={tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},WL={name:"codeFenced",tokenize:function(e,t,n){const r=this,i={tokenize:function(e,t,n){let i=0;return s;function s(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),TL(t)?RL(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===o?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===o?(i++,e.consume(t),u):i>=a?(e.exit("codeFencedFenceSequence"),TL(t)?RL(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||_L(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0};let o,s=0,a=0;return function(t){return function(t){const n=r.events[r.events.length-1];return s=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,o=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===o?(a++,e.consume(t),l):a<3?n(t):(e.exit("codeFencedFenceSequence"),TL(t)?RL(e,c,"whitespace")(t):c(t))}function c(n){return null===n||_L(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(zL,h,y)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||_L(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):TL(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),RL(e,d,"whitespace")(t)):96===t&&t===o?n(t):(e.consume(t),u)}function d(t){return null===t||_L(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||_L(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===o?n(t):(e.consume(t),p)}function h(t){return e.attempt(i,y,f)(t)}function f(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return s>0&&TL(t)?RL(e,g,"linePrefix",s+1)(t):g(t)}function g(t){return null===t||_L(t)?e.check(zL,h,y)(t):(e.enter("codeFlowValue"),O(t))}function O(t){return null===t||_L(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),O)}function y(n){return e.exit("codeFenced"),t(n)}},concrete:!0};const BL={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),RL(e,i,"linePrefix",5)(t)};function i(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?a(t):_L(t)?e.attempt(YL,o,a)(t):(e.enter("codeFlowValue"),s(t))}function s(t){return null===t||_L(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),s)}function a(n){return e.exit("codeIndented"),t(n)}}},YL={tokenize:function(e,t,n){const r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):_L(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):RL(e,o,"linePrefix",5)(t)}function o(e){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):_L(e)?i(e):n(e)}},partial:!0};const HL={name:"codeText",tokenize:function(e,t,n){let r,i,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),s(t)};function s(t){return 96===t?(e.consume(t),o++,s):(e.exit("codeTextSequence"),a(t))}function a(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),a):96===t?(i=e.enter("codeTextSequence"),r=0,c(t)):_L(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||_L(t)?(e.exit("codeTextData"),a(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(i.type="codeTextData",l(n))}},resolve:function(e){let t,n,r=e.length-4,i=3;if(!("lineEnding"!==e[i][1].type&&"space"!==e[i][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}t=i-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}};function GL(e){const t={};let n,r,i,o,s,a,l,c=-1;for(;++c<e.length;){for(;c in t;)c=t[c];if(n=e[c],c&&"chunkFlow"===n[1].type&&"listItemPrefix"===e[c-1][1].type&&(a=n[1]._tokenizer.events,i=0,i<a.length&&"lineEndingBlank"===a[i][1].type&&(i+=2),i<a.length&&"content"===a[i][1].type))for(;++i<a.length&&"content"!==a[i][1].type;)"chunkText"===a[i][1].type&&(a[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,KL(e,c)),c=t[c],l=!0);else if(n[1]._container){for(i=c,r=void 0;i--&&(o=e[i],"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type);)"enter"===o[0]&&(r&&(e[r][1].type="lineEndingBlank"),o[1].type="lineEnding",r=i);r&&(n[1].end=Object.assign({},e[r][1].start),s=e.slice(r,c),s.unshift(n),uL(e,r,c-r+1,s))}}return!l}function KL(e,t){const n=e[t][1],r=e[t][2];let i=t-1;const o=[],s=n._tokenizer||r.parser[n.contentType](n.start),a=s.events,l=[],c={};let u,d,p=-1,h=n,f=0,m=0;const g=[m];for(;h;){for(;e[++i][1]!==h;);o.push(i),h._tokenizer||(u=r.sliceStream(h),h.next||u.push(null),d&&s.defineSkip(h.start),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(u),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=h,h=h.next}for(h=n;++p<a.length;)"exit"===a[p][0]&&"enter"===a[p-1][0]&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(m=p+1,g.push(m),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(s.events=[],h?(h._tokenizer=void 0,h.previous=void 0):g.pop(),p=g.length;p--;){const t=a.slice(g[p],g[p+1]),n=o.pop();l.unshift([n,n+t.length-1]),uL(e,n,2,t)}for(p=-1;++p<l.length;)c[f+l[p][0]]=f+l[p][1],f+=l[p][1]-l[p][0]-1;return c}const JL={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):_L(t)?e.check(eZ,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return GL(e),e}},eZ={tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),RL(e,i,"linePrefix")};function i(i){if(null===i||_L(i))return n(i);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}},partial:!0};function tZ(e,t,n,r,i,o,s,a,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),d;if(null===t||32===t||41===t||SL(t))return n(t);return e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),f(t)};function d(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(a),d(t)):null===t||60===t||_L(t)?n(t):(e.consume(t),92===t?h:p)}function h(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function f(i){return u||null!==i&&41!==i&&!PL(i)?u<c&&40===i?(e.consume(i),u++,f):41===i?(e.consume(i),u--,f):null===i||32===i||40===i||SL(i)?n(i):(e.consume(i),92===i?m:f):(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(r),t(i))}function m(t){return 40===t||41===t||92===t?(e.consume(t),f):f(t)}}function nZ(e,t,n,r,i,o){const s=this;let a,l=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),c};function c(d){return l>999||null===d||91===d||93===d&&!a||94===d&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(d):93===d?(e.exit(o),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):_L(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||_L(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),a||(a=!TL(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function rZ(e,t,n,r,i,o){let s;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(i),e.consume(t),e.exit(i),s=40===t?41:t,a;return n(t)};function a(n){return n===s?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),l(n))}function l(t){return t===s?(e.exit(o),a(s)):null===t?n(t):_L(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),RL(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===s||null===t||_L(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===s||92===t?(e.consume(t),c):c(t)}}function iZ(e,t){let n;return function r(i){if(_L(i))return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r;if(TL(i))return RL(e,r,n?"linePrefix":"lineSuffix")(i);return t(i)}}const oZ={name:"definition",tokenize:function(e,t,n){const r=this;let i;return function(t){return e.enter("definition"),function(t){return nZ.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return i=OL(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s):n(t)}function s(t){return PL(t)?iZ(e,a)(t):a(t)}function a(t){return tZ(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(sZ,c,c)(t)}function c(t){return TL(t)?RL(e,u,"whitespace")(t):u(t)}function u(o){return null===o||_L(o)?(e.exit("definition"),r.parser.defined.push(i),t(o)):n(o)}}},sZ={tokenize:function(e,t,n){return function(t){return PL(t)?iZ(e,r)(t):n(t)};function r(t){return rZ(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return TL(t)?RL(e,o,"whitespace")(t):o(t)}function o(e){return null===e||_L(e)?t(e):n(e)}},partial:!0};const aZ={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return _L(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const lZ={name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),i(t)}(t)};function i(t){return 35===t&&r++<6?(e.consume(t),i):null===t||PL(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),s(n)):null===n||_L(n)?(e.exit("atxHeading"),t(n)):TL(n)?RL(e,o,"whitespace")(n):(e.enter("atxHeadingText"),a(n))}function s(t){return 35===t?(e.consume(t),s):(e.exit("atxHeadingSequence"),o(t))}function a(t){return null===t||35===t||PL(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),a)}},resolve:function(e,t){let n,r,i=e.length-2,o=3;"whitespace"===e[o][1].type&&(o+=2);i-2>o&&"whitespace"===e[i][1].type&&(i-=2);"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4);i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},uL(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e}};const cZ=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],uZ=["pre","script","style","textarea"],dZ={name:"htmlFlow",tokenize:function(e,t,n){const r=this;let i,o,s,a,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(a){return 33===a?(e.consume(a),u):47===a?(e.consume(a),o=!0,h):63===a?(e.consume(a),i=3,r.interrupt?t:D):bL(a)?(e.consume(a),s=String.fromCharCode(a),f):n(a)}function u(o){return 45===o?(e.consume(o),i=2,d):91===o?(e.consume(o),i=5,a=0,p):bL(o)?(e.consume(o),i=4,r.interrupt?t:D):n(o)}function d(i){return 45===i?(e.consume(i),r.interrupt?t:D):n(i)}function p(i){const o="CDATA[";return i===o.charCodeAt(a++)?(e.consume(i),6===a?r.interrupt?t:_:p):n(i)}function h(t){return bL(t)?(e.consume(t),s=String.fromCharCode(t),f):n(t)}function f(a){if(null===a||47===a||62===a||PL(a)){const l=47===a,c=s.toLowerCase();return l||o||!uZ.includes(c)?cZ.includes(s.toLowerCase())?(i=6,l?(e.consume(a),m):r.interrupt?t(a):_(a)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(a):o?g(a):O(a)):(i=1,r.interrupt?t(a):_(a))}return 45===a||vL(a)?(e.consume(a),s+=String.fromCharCode(a),f):n(a)}function m(i){return 62===i?(e.consume(i),r.interrupt?t:_):n(i)}function g(t){return TL(t)?(e.consume(t),g):k(t)}function O(t){return 47===t?(e.consume(t),k):58===t||95===t||bL(t)?(e.consume(t),y):TL(t)?(e.consume(t),O):k(t)}function y(t){return 45===t||46===t||58===t||95===t||vL(t)?(e.consume(t),y):b(t)}function b(t){return 61===t?(e.consume(t),v):TL(t)?(e.consume(t),b):O(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,w):TL(t)?(e.consume(t),v):S(t)}function w(t){return t===l?(e.consume(t),l=null,x):null===t||_L(t)?n(t):(e.consume(t),w)}function S(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||PL(t)?b(t):(e.consume(t),S)}function x(e){return 47===e||62===e||TL(e)?O(e):n(e)}function k(t){return 62===t?(e.consume(t),$):n(t)}function $(t){return null===t||_L(t)?_(t):TL(t)?(e.consume(t),$):n(t)}function _(t){return 45===t&&2===i?(e.consume(t),Q):60===t&&1===i?(e.consume(t),C):62===t&&4===i?(e.consume(t),N):63===t&&3===i?(e.consume(t),D):93===t&&5===i?(e.consume(t),R):!_L(t)||6!==i&&7!==i?null===t||_L(t)?(e.exit("htmlFlowData"),P(t)):(e.consume(t),_):(e.exit("htmlFlowData"),e.check(pZ,j,P)(t))}function P(t){return e.check(hZ,T,j)(t)}function T(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),E}function E(t){return null===t||_L(t)?P(t):(e.enter("htmlFlowData"),_(t))}function Q(t){return 45===t?(e.consume(t),D):_(t)}function C(t){return 47===t?(e.consume(t),s="",A):_(t)}function A(t){if(62===t){const n=s.toLowerCase();return uZ.includes(n)?(e.consume(t),N):_(t)}return bL(t)&&s.length<8?(e.consume(t),s+=String.fromCharCode(t),A):_(t)}function R(t){return 93===t?(e.consume(t),D):_(t)}function D(t){return 62===t?(e.consume(t),N):45===t&&2===i?(e.consume(t),D):_(t)}function N(t){return null===t||_L(t)?(e.exit("htmlFlowData"),j(t)):(e.consume(t),N)}function j(n){return e.exit("htmlFlow"),t(n)}},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},pZ={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(FL,t,n)}},partial:!0},hZ={tokenize:function(e,t,n){const r=this;return function(t){if(_L(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i;return n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0};const fZ={name:"htmlText",tokenize:function(e,t,n){const r=this;let i,o,s;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),v):63===t?(e.consume(t),y):bL(t)?(e.consume(t),x):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),o=0,h):bL(t)?(e.consume(t),O):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):_L(t)?(s=u,A(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?C(e):45===e?d(e):u(e)}function h(t){const r="CDATA[";return t===r.charCodeAt(o++)?(e.consume(t),6===o?f:h):n(t)}function f(t){return null===t?n(t):93===t?(e.consume(t),m):_L(t)?(s=f,A(t)):(e.consume(t),f)}function m(t){return 93===t?(e.consume(t),g):f(t)}function g(t){return 62===t?C(t):93===t?(e.consume(t),g):f(t)}function O(t){return null===t||62===t?C(t):_L(t)?(s=O,A(t)):(e.consume(t),O)}function y(t){return null===t?n(t):63===t?(e.consume(t),b):_L(t)?(s=y,A(t)):(e.consume(t),y)}function b(e){return 62===e?C(e):y(e)}function v(t){return bL(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||vL(t)?(e.consume(t),w):S(t)}function S(t){return _L(t)?(s=S,A(t)):TL(t)?(e.consume(t),S):C(t)}function x(t){return 45===t||vL(t)?(e.consume(t),x):47===t||62===t||PL(t)?k(t):n(t)}function k(t){return 47===t?(e.consume(t),C):58===t||95===t||bL(t)?(e.consume(t),$):_L(t)?(s=k,A(t)):TL(t)?(e.consume(t),k):C(t)}function $(t){return 45===t||46===t||58===t||95===t||vL(t)?(e.consume(t),$):_(t)}function _(t){return 61===t?(e.consume(t),P):_L(t)?(s=_,A(t)):TL(t)?(e.consume(t),_):k(t)}function P(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),i=t,T):_L(t)?(s=P,A(t)):TL(t)?(e.consume(t),P):(e.consume(t),E)}function T(t){return t===i?(e.consume(t),i=void 0,Q):null===t?n(t):_L(t)?(s=T,A(t)):(e.consume(t),T)}function E(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||PL(t)?k(t):(e.consume(t),E)}function Q(e){return 47===e||62===e||PL(e)?k(e):n(e)}function C(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function A(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),R}function R(t){return TL(t)?RL(e,D,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):D(t)}function D(t){return e.enter("htmlTextData"),s(t)}}};const mZ={name:"labelEnd",tokenize:function(e,t,n){const r=this;let i,o,s=r.events.length;for(;s--;)if(("labelImage"===r.events[s][1].type||"labelLink"===r.events[s][1].type)&&!r.events[s][1]._balanced){i=r.events[s][1];break}return function(t){if(!i)return n(t);if(i._inactive)return u(t);return o=r.parser.defined.includes(OL(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),a};function a(t){return 40===t?e.attempt(gZ,c,o?c:u)(t):91===t?e.attempt(OZ,c,o?l:u)(t):o?c(t):u(t)}function l(t){return e.attempt(yZ,c,u)(t)}function c(e){return t(e)}function u(e){return i._balanced=!0,n(e)}},resolveTo:function(e,t){let n,r,i,o,s=e.length,a=0;for(;s--;)if(n=e[s][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[s][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[s][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=s,"labelLink"!==n.type)){a=2;break}}else"labelEnd"===n.type&&(i=s);const l={type:"labelLink"===e[r][1].type?"link":"image",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[r][1].start),end:Object.assign({},e[i][1].end)},u={type:"labelText",start:Object.assign({},e[r+a+2][1].end),end:Object.assign({},e[i-2][1].start)};return o=[["enter",l,t],["enter",c,t]],o=dL(o,e.slice(r+1,r+a+3)),o=dL(o,[["enter",u,t]]),o=dL(o,qL(t.parser.constructs.insideSpan.null,e.slice(r+a+4,i-3),t)),o=dL(o,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),o=dL(o,e.slice(i+1)),o=dL(o,[["exit",l,t]]),uL(e,r,e.length,o),e},resolveAll:function(e){let t=-1;for(;++t<e.length;){const n=e[t][1];"labelImage"!==n.type&&"labelLink"!==n.type&&"labelEnd"!==n.type||(e.splice(t+1,"labelImage"===n.type?4:2),n.type="data",t++)}return e}},gZ={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return PL(t)?iZ(e,i)(t):i(t)}function i(t){return 41===t?c(t):tZ(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return PL(t)?iZ(e,a)(t):c(t)}function s(e){return n(e)}function a(t){return 34===t||39===t||40===t?rZ(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return PL(t)?iZ(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},OZ={tokenize:function(e,t,n){const r=this;return function(t){return nZ.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(OL(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},yZ={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const bZ={name:"labelStartImage",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:mZ.resolveAll};const vZ={name:"labelStartLink",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:mZ.resolveAll};const wZ={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),RL(e,t,"linePrefix")}}};const SZ={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,o(e)}(t)};function o(o){return o===r?(e.enter("thematicBreakSequence"),s(o)):i>=3&&(null===o||_L(o))?(e.exit("thematicBreak"),t(o)):n(o)}function s(t){return t===r?(e.consume(t),i++,s):(e.exit("thematicBreakSequence"),TL(t)?RL(e,o,"whitespace")(t):o(t))}}};const xZ={name:"list",tokenize:function(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,s=0;return function(t){const i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:xL(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(SZ,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(t)}return n(t)};function a(t){return xL(t)&&++s<10?(e.consume(t),a):(!r.interrupt||s<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(FL,r.interrupt?n:c,e.attempt(kZ,d,u))}function c(e){return r.containerState.initialBlankLine=!0,o++,d(e)}function u(t){return TL(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(FL,(function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,RL(e,t,"listItemIndent",r.containerState.size+1)(n)}),(function(n){if(r.containerState.furtherBlankLines||!TL(n))return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n);return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt($Z,t,i)(n)}));function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,RL(e,e.attempt(xZ,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},kZ={tokenize:function(e,t,n){const r=this;return RL(e,(function(e){const i=r.events[r.events.length-1];return!TL(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},$Z={tokenize:function(e,t,n){const r=this;return RL(e,(function(e){const i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0};const _Z={name:"setextUnderline",tokenize:function(e,t,n){const r=this;let i;return function(t){let s,a=r.events.length;for(;a--;)if("lineEnding"!==r.events[a][1].type&&"linePrefix"!==r.events[a][1].type&&"content"!==r.events[a][1].type){s="paragraph"===r.events[a][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||s))return e.enter("setextHeadingLine"),i=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t);return n(t)};function o(t){return t===i?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),TL(t)?RL(e,s,"lineSuffix")(t):s(t))}function s(r){return null===r||_L(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);const s={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",s,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[i][1].end)):e[n][1]=s;return e.push(["exit",s,t]),e}};const PZ={tokenize:function(e){const t=this,n=e.attempt(FL,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,RL(e,e.attempt(this.parser.constructs.flow,r,e.attempt(JL,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const TZ={resolveAll:AZ()},EZ=CZ("string"),QZ=CZ("text");function CZ(e){return{tokenize:function(t){const n=this,r=this.parser.constructs[e],i=t.attempt(r,o,s);return o;function o(e){return l(e)?i(e):s(e)}function s(e){if(null!==e)return t.enter("data"),t.consume(e),a;t.consume(e)}function a(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),a)}function l(e){if(null===e)return!0;const t=r[e];let i=-1;if(t)for(;++i<t.length;){const e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}},resolveAll:AZ("text"===e?RZ:void 0)}}function AZ(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function RZ(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],i=t.sliceStream(r);let o,s=i.length,a=-1,l=0;for(;s--;){const e=i[s];if("string"==typeof e){for(a=e.length;32===e.charCodeAt(a-1);)l++,a--;if(a)break;a=-1}else if(-2===e)o=!0,l++;else if(-1!==e){s++;break}}if(l){const i={type:n===e.length||o||l<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-l,offset:r.end.offset-l,_index:r.start._index+s,_bufferIndex:s?a:r.start._bufferIndex+a},end:Object.assign({},r.end)};r.end=Object.assign({},i.start),r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,["enter",i,t],["exit",i,t]),n+=2)}n++}return e}function DZ(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},o=[];let s=[],a=[];const l={consume:function(e){_L(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,y()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++));c.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=p(),c.events.push(["enter",n,c]),a.push(n),n},exit:function(e){const t=a.pop();return t.end=p(),c.events.push(["exit",t,c]),t},attempt:g((function(e,t){O(e,t.from)})),check:g(m),interrupt:g(m,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:d,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let s;if("string"==typeof o)s=o;else switch(o){case-5:s="\r";break;case-4:s="\n";break;case-3:s="\r\n";break;case-2:s=t?" ":"\t";break;case-1:if(!t&&i)continue;s=" ";break;default:s=String.fromCharCode(o)}i=-2===o,r.push(s)}return r.join("")}(d(e),t)},now:p,defineSkip:function(e){i[e.line]=e.column,y()},write:function(e){if(s=dL(s,e),h(),null!==s[s.length-1])return[];return O(t,0),c.events=qL(o,c.events,c),c.events}};let u=t.tokenize.call(c,l);return t.resolveAll&&o.push(t),c;function d(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let s;if(n===i)s=[e[n].slice(r,o)];else{if(s=e.slice(n,i),r>-1){const e=s[0];"string"==typeof e?s[0]=e.slice(r):s.shift()}o>0&&s.push(e[i].slice(0,o))}return s}(s,e)}function p(){const{line:e,column:t,offset:n,_index:i,_bufferIndex:o}=r;return{line:e,column:t,offset:n,_index:i,_bufferIndex:o}}function h(){let e;for(;r._index<s.length;){const t=s[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)f(t.charCodeAt(r._bufferIndex));else f(t)}}function f(e){u=u(e)}function m(e,t){t.restore()}function g(e,t){return function(n,i,o){let s,u,d,h;return Array.isArray(n)?f(n):"tokenize"in n?f([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function f(e){return s=e,u=0,0===e.length?o:m(e[u])}function m(e){return function(n){h=function(){const e=p(),t=c.previous,n=c.currentConstruct,i=c.events.length,o=Array.from(a);return{restore:s,from:i};function s(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=i,a=o,y()}}(),d=e,e.partial||(c.currentConstruct=e);if(e.name&&c.parser.constructs.disable.null.includes(e.name))return O();return e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,g,O)(n)}}function g(t){return e(d,h),i}function O(e){return h.restore(),++u<s.length?m(s[u]):o}}}function O(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&uL(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function y(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}const NZ={42:xZ,43:xZ,45:xZ,48:xZ,49:xZ,50:xZ,51:xZ,52:xZ,53:xZ,54:xZ,55:xZ,56:xZ,57:xZ,62:LL},jZ={91:oZ},IZ={[-2]:BL,[-1]:BL,32:BL},qZ={35:lZ,42:SZ,45:[_Z,SZ],60:dZ,61:_Z,95:SZ,96:WL,126:WL},UZ={38:VL,92:ZL},MZ={[-5]:wZ,[-4]:wZ,[-3]:wZ,33:bZ,38:VL,42:UL,60:[XL,fZ],91:vZ,92:[aZ,ZL],93:mZ,95:UL,96:HL},XZ={null:[UL,TZ]},FZ=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:jZ,disable:{null:[]},document:NZ,flow:qZ,flowInitial:IZ,insideSpan:XZ,string:UZ,text:MZ},Symbol.toStringTag,{value:"Module"}));const LZ=/[\0\t\n\r]/g;const ZZ=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function VZ(e){return e.replace(ZZ,zZ)}function zZ(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return gL(n.slice(t?2:1),t?16:10)}return cL(n)||e}function WZ(e){return e&&"object"==typeof e?"position"in e||"type"in e?YZ(e.position):"start"in e||"end"in e?YZ(e):"line"in e||"column"in e?BZ(e):"":""}function BZ(e){return HZ(e&&e.line)+":"+HZ(e&&e.column)}function YZ(e){return BZ(e&&e.start)+"-"+BZ(e&&e.end)}function HZ(e){return e&&"number"==typeof e?e:1}const GZ={}.hasOwnProperty;function KZ(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(ee),autolinkProtocol:$,autolinkEmail:$,atxHeading:o(H),blockQuote:o(V),characterEscape:$,characterReference:$,codeFenced:o(z),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(z,s),codeText:o(W,s),codeTextData:$,data:$,codeFlowValue:$,definition:o(B),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(Y),hardBreakEscape:o(G),hardBreakTrailing:o(G),htmlFlow:o(K,s),htmlFlowData:$,htmlText:o(K,s),htmlTextData:$,image:o(J),label:s,link:o(ee),listItem:o(ne),listItemValue:p,listOrdered:o(te,d),listUnordered:o(te),paragraph:o(re),reference:U,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(H),strong:o(ie),thematicBreak:o(se)},exit:{atxHeading:l(),atxHeadingSequence:w,autolink:l(),autolinkEmail:Z,autolinkProtocol:L,blockQuote:l(),characterEscapeValue:_,characterReferenceMarkerHexadecimal:X,characterReferenceMarkerNumeric:X,characterReferenceValue:F,codeFenced:l(g),codeFencedFence:m,codeFencedFenceInfo:h,codeFencedFenceMeta:f,codeFlowValue:_,codeIndented:l(O),codeText:l(C),codeTextData:_,data:_,definition:l(),definitionDestinationString:v,definitionLabelString:y,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(T),hardBreakTrailing:l(T),htmlFlow:l(E),htmlFlowData:_,htmlText:l(Q),htmlTextData:_,image:l(R),label:N,labelText:D,lineEnding:P,link:l(A),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:M,resourceDestinationString:j,resourceTitleString:I,resource:q,setextHeading:l(k),setextHeadingLineSequence:x,setextHeadingText:S,strong:l(),thematicBreak:l()}};eV(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const o={stack:[r],tokenStack:[],config:t,enter:a,exit:c,buffer:s,resume:u,data:n},l=[];let d=-1;for(;++d<e.length;)if("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)if("enter"===e[d][0])l.push(d);else{d=i(e,l.pop(),d)}for(d=-1;++d<e.length;){const n=t[e[d][0]];GZ.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},o),e[d][1])}if(o.tokenStack.length>0){const e=o.tokenStack[o.tokenStack.length-1];(e[1]||nV).call(o,void 0,e[0])}for(r.position={start:JZ(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:JZ(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r,i,o,s,a=t-1,l=-1,c=!1;for(;++a<=n;){const t=e[a];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,s=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||s||l||o||(o=a),s=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:s=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let s=a;for(i=void 0;s--;){const t=e[s];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=s}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||a,0,["exit",r,t[2]]),a++,n++}if("listItemPrefix"===t[1].type){const i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(a,0,["enter",i,t[2]]),a++,n++,o=void 0,s=!0}}}return e[t][1]._spread=c,n}function o(e,t){return n;function n(n){a.call(this,e(n),n),t&&t.call(this,n)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n]),e.position={start:JZ(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),c.call(this,t)}}function c(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+WZ({start:e.start,end:e.end})+"): it’s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||nV).call(this,e,r[0])}n.position.end=JZ(e.end)}function u(){return oL(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function h(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function f(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function O(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function y(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=OL(this.sliceSerialize(e)).toLowerCase()}function b(){const e=this.resume();this.stack[this.stack.length-1].title=e}function v(){const e=this.resume();this.stack[this.stack.length-1].url=e}function w(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function x(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function k(){this.data.setextHeadingSlurpLineEnding=void 0}function $(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=oe(),n.position={start:JZ(e.start),end:void 0},t.push(n)),this.stack.push(n)}function _(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=JZ(e.end)}function P(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=JZ(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&($.call(this,e),_.call(this,e))}function T(){this.data.atHardBreak=!0}function E(){const e=this.resume();this.stack[this.stack.length-1].value=e}function Q(){const e=this.resume();this.stack[this.stack.length-1].value=e}function C(){const e=this.resume();this.stack[this.stack.length-1].value=e}function A(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function R(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function D(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=VZ(t),n.identifier=OL(t).toLowerCase()}function N(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function j(){const e=this.resume();this.stack[this.stack.length-1].url=e}function I(){const e=this.resume();this.stack[this.stack.length-1].title=e}function q(){this.data.inReference=void 0}function U(){this.data.referenceType="collapsed"}function M(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=OL(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function X(e){this.data.characterReferenceType=e.type}function F(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=gL(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=cL(t)}const i=this.stack.pop();i.value+=r,i.position.end=JZ(e.end)}function L(e){_.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function Z(e){_.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function V(){return{type:"blockquote",children:[]}}function z(){return{type:"code",lang:null,meta:null,value:""}}function W(){return{type:"inlineCode",value:""}}function B(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Y(){return{type:"emphasis",children:[]}}function H(){return{type:"heading",depth:0,children:[]}}function G(){return{type:"break"}}function K(){return{type:"html",value:""}}function J(){return{type:"image",title:null,url:"",alt:null}}function ee(){return{type:"link",title:null,url:"",children:[]}}function te(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function ne(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function re(){return{type:"paragraph",children:[]}}function ie(){return{type:"strong",children:[]}}function oe(){return{type:"text",value:""}}function se(){return{type:"thematicBreak"}}}(n)(function(e){for(;!GL(e););return e}(function(e){const t={defined:[],lazy:{},constructs:hL([FZ,...(e||{}).extensions||[]]),content:n(DL),document:n(NL),flow:n(PZ),string:n(EZ),text:n(QZ)};return t;function n(e){return function(n){return DZ(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(i,o,s){const a=[];let l,c,u,d,p;for(i=n+("string"==typeof i?i.toString():new TextDecoder(o||void 0).decode(i)),u=0,n="",r&&(65279===i.charCodeAt(0)&&u++,r=void 0);u<i.length;){if(LZ.lastIndex=u,l=LZ.exec(i),d=l&&void 0!==l.index?l.index:i.length,p=i.charCodeAt(d),!l){n=i.slice(u);break}if(10===p&&u===d&&e)a.push(-3),e=void 0;else switch(e&&(a.push(-5),e=void 0),u<d&&(a.push(i.slice(u,d)),t+=d-u),p){case 0:a.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),a.push(-2);t++<c;)a.push(-1);break;case 10:a.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return s&&(e&&a.push(-5),n&&a.push(n),a.push(null)),a}}()(e,t,!0))))}function JZ(e){return{line:e.line,column:e.column,offset:e.offset}}function eV(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?eV(e,r):tV(e,r)}}function tV(e,t){let n;for(n in t)if(GZ.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function nV(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+WZ({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+WZ({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+WZ({start:t.start,end:t.end})+") is still open")}function rV(e){const t=this;t.parser=function(n){return KZ(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const iV={}.hasOwnProperty;function oV(e,t){const n=t||{};function r(t,...n){let i=r.invalid;const o=r.handlers;if(t&&iV.call(t,e)){const n=String(t[e]);i=iV.call(o,n)?o[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const sV={}.hasOwnProperty;function aV(e,t){let n,r=-1;if(t.extensions)for(;++r<t.extensions.length;)aV(e,t.extensions[r]);for(n in t)if(sV.call(t,n))switch(n){case"extensions":break;case"unsafe":case"join":lV(e[n],t[n]);break;case"handlers":cV(e[n],t[n]);break;default:e.options[n]=t[n]}return e}function lV(e,t){t&&e.push(...t)}function cV(e,t){t&&Object.assign(e,t)}function uV(e,t,n){return">"+(n?"":" ")+e}function dV(e,t){return pV(e,t.inConstruct,!0)&&!pV(e,t.notInConstruct,!1)}function pV(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function hV(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if("\n"===n.unsafe[i].character&&dV(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}function fV(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function mV(e,t,n){return(n?"":" ")+e}function gV(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function OV(e,t,n,r){const i=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),o=n.enter("emphasis"),s=n.createTracker(r);let a=s.move(i);return a+=s.move(n.containerPhrasing(e,{before:a,after:i,...s.current()})),a+=s.move(i),o(),a}OV.peek=function(e,t,n){return n.options.emphasis||"*"};const yV=function(e){if(null==e)return vV;if("function"==typeof e)return bV(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=yV(e[n]);return bV(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return bV(n);function n(n){const r=n;let i;for(i in e)if(r[i]!==t[i])return!1;return!0}}(e);if("string"==typeof e)return function(e){return bV(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function bV(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function vV(){return!0}const wV=[],SV=!0,xV=!1,kV="skip";function $V(e,t,n,r){let i;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):i=t;const o=yV(i),s=r?-1:1;!function e(i,a,l){const c=i&&"object"==typeof i?i:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,p=wV;if((!t||o(i,a,l[l.length-1]||void 0))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[SV,e];return null==e?wV:[e]}(n(i,l)),p[0]===xV))return p;if("children"in i&&i.children){const t=i;if(t.children&&p[0]!==kV)for(u=(r?t.children.length:-1)+s,d=l.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),c[0]===xV)return c;u="number"==typeof c[1]?c[1]:u+s}}return p}}(e,void 0,[])()}function _V(e,t,n,r){let i,o,s;"function"==typeof t&&"function"!=typeof n?(o=void 0,s=t,i=n):(o=t,s=n,i=r),$V(e,o,(function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return s(e,r,n)}),i)}function PV(e,t){let n=!1;return _V(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,xV})),Boolean((!e.depth||e.depth<3)&&oL(e)&&(t.options.setext||n))}function TV(e){return e.value||""}function EV(e,t,n,r){const i=gV(n),o='"'===i?"Quote":"Apostrophe",s=n.enter("image");let a=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(a=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),a()),c+=l.move(")"),s(),c}function QV(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let s=n.enter("label");const a=n.createTracker(r);let l=a.move("![");const c=n.safe(e.alt,{before:l,after:"]",...a.current()});l+=a.move(c+"]["),s();const u=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return s(),n.stack=u,o(),"full"!==i&&c&&c===d?"shortcut"===i?l=l.slice(0,-1):l+=a.move("]"):l+=a.move(d+"]"),l}function CV(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const e=n.unsafe[o],t=n.compilePattern(e);let i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(i.index+1)}}return i+r+i}function AV(e,t){const n=oL(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function RV(e,t,n,r){const i=gV(n),o='"'===i?"Quote":"Apostrophe",s=n.createTracker(r);let a,l;if(AV(e,n)){const t=n.stack;n.stack=[],a=n.enter("autolink");let r=s.move("<");return r+=s.move(n.containerPhrasing(e,{before:r,after:">",...s.current()})),r+=s.move(">"),a(),n.stack=t,r}a=n.enter("link"),l=n.enter("label");let c=s.move("[");return c+=s.move(n.containerPhrasing(e,{before:c,after:"](",...s.current()})),c+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(l=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${o}`),c+=s.move(" "+i),c+=s.move(n.safe(e.title,{before:c,after:i,...s.current()})),c+=s.move(i),l()),c+=s.move(")"),a(),c}function DV(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let s=n.enter("label");const a=n.createTracker(r);let l=a.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...a.current()});l+=a.move(c+"]["),s();const u=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return s(),n.stack=u,o(),"full"!==i&&c&&c===d?"shortcut"===i?l=l.slice(0,-1):l+=a.move("]"):l+=a.move(d+"]"),l}function NV(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function jV(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}TV.peek=function(){return"<"},EV.peek=function(){return"!"},QV.peek=function(){return"!"},CV.peek=function(){return"`"},RV.peek=function(e,t,n){return AV(e,n)?"<":"["},DV.peek=function(){return"["};const IV=yV(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);function qV(e,t,n,r){const i=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),o=n.enter("strong"),s=n.createTracker(r);let a=s.move(i+i);return a+=s.move(n.containerPhrasing(e,{before:a,after:i,...s.current()})),a+=s.move(i+i),o(),a}qV.peek=function(e,t,n){return n.options.strong||"*"};const UV={blockquote:function(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const s=n.indentLines(n.containerFlow(e,o.current()),uV);return i(),s},break:hV,code:function(e,t,n,r){const i=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),o=e.value||"",s="`"===i?"GraveAccent":"Tilde";if(fV(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(o,mV);return e(),t}const a=n.createTracker(r),l=i.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,s=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===i?++o>s&&(s=o):o=1,i=r+t.length,r=n.indexOf(t,i);return s}(o,i)+1,3)),c=n.enter("codeFenced");let u=a.move(l);if(e.lang){const t=n.enter(`codeFencedLang${s}`);u+=a.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...a.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${s}`);u+=a.move(" "),u+=a.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...a.current()})),t()}return u+=a.move("\n"),o&&(u+=a.move(o+"\n")),u+=a.move(l),c(),u},definition:function(e,t,n,r){const i=gV(n),o='"'===i?"Quote":"Apostrophe",s=n.enter("definition");let a=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(a=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),a(),e.title&&(a=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),a()),s(),c},emphasis:OV,hardBreak:hV,heading:function(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(PV(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),s=n.containerPhrasing(e,{...o.current(),before:"\n",after:"\n"});return r(),t(),s+"\n"+(1===i?"=":"-").repeat(s.length-(Math.max(s.lastIndexOf("\r"),s.lastIndexOf("\n"))+1))}const s="#".repeat(i),a=n.enter("headingAtx"),l=n.enter("phrasing");o.move(s+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...o.current()});return/^[\t ]/.test(c)&&(c="&#x"+c.charCodeAt(0).toString(16).toUpperCase()+";"+c.slice(1)),c=c?s+" "+c:s,n.options.closeAtx&&(c+=" "+s),l(),a(),c},html:TV,image:EV,imageReference:QV,inlineCode:CV,link:RV,linkReference:DV,list:function(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let s=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):NV(n);const a=e.ordered?"."===s?")":".":function(e){const t=NV(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let l=!(!t||!n.bulletLastUsed)&&s===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==s&&"-"!==s||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),jV(n)===s&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){l=!0;break}}}}l&&(s=a),n.bulletCurrent=s;const c=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=o,i(),c},listItem:function(e,t,n,r){const i=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let o=n.bulletCurrent||NV(n);t&&"list"===t.type&&t.ordered&&(o=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let s=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(s=4*Math.ceil(s/4));const a=n.createTracker(r);a.move(o+" ".repeat(s-o.length)),a.shift(s);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,a.current()),(function(e,t,n){if(t)return(n?"":" ".repeat(s))+e;return(n?o:o+" ".repeat(s-o.length))+e}));return l(),c},paragraph:function(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),s=n.containerPhrasing(e,r);return o(),i(),s},root:function(e,t,n,r){return(e.children.some((function(e){return IV(e)}))?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:qV,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(jV(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}},MV=[function(e,t,n,r){if("code"===t.type&&fV(t,r)&&("list"===e.type||e.type===t.type&&fV(e,r)))return!1;if("spread"in n&&"boolean"==typeof n.spread){if("paragraph"===e.type&&(e.type===t.type||"definition"===t.type||"heading"===t.type&&PV(t,r)))return;return n.spread?1:0}}];const XV=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],FV=[{character:"\t",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",before:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:"\n",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:XV},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:"(?:[\r\n]|$)"},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:XV},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:"(?:[ \t\r\n*])"},{character:"*",inConstruct:"phrasing",notInConstruct:XV},{atBreak:!0,character:"+",after:"(?:[ \t\r\n])"},{atBreak:!0,character:"-",after:"(?:[ \t\r\n-])"},{atBreak:!0,before:"\\d+",character:".",after:"(?:[ \t\r\n]|$)"},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:XV},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:XV},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:XV},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:XV},{atBreak:!0,character:"~"}];function LV(e){return e.label||!e.identifier?e.label||"":VZ(e.identifier)}function ZV(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function VV(e,t,n,r){let i=r.join.length;for(;i--;){const o=r.join[i](e,t,n,r);if(!0===o||1===o)break;if("number"==typeof o)return"\n".repeat(1+o);if(!1===o)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}const zV=/\r?\n|\r/g;function WV(e,t){const n=[];let r,i=0,o=0;for(;r=zV.exec(e);)s(e.slice(i,r.index)),n.push(r[0]),i=r.index+r[0].length,o++;return s(e.slice(i)),n.join("");function s(e){n.push(t(e,o,!e))}}function BV(e,t){return e-t}function YV(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,r=[],i=[],o=e+t;let s,a=-1,l=0;for(;s=n.exec(o);)r.push(s.index);for(;++a<r.length;)l!==r[a]&&i.push(e.slice(l,r[a])),i.push("\\"),l=r[a];return i.push(e.slice(l)),i.join("")}function HV(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,i=n.line||1,o=n.column||1;return{move:function(e){const t=e||"",n=t.split(/\r?\n|\r/g),s=n[n.length-1];return i+=n.length-1,o=1===n.length?o+s.length:1+s.length+r,t},current:function(){return{now:{line:i,column:o},lineShift:r}},shift:function(e){r+=e}}}function GV(e,t={}){const n={enter:function(e){return n.stack.push(e),function(){n.stack.pop()}},indentLines:WV,associationId:LV,containerPhrasing:tz,containerFlow:nz,createTracker:HV,compilePattern:ZV,safe:rz,stack:[],unsafe:[...FV],join:[...MV],handlers:{...UV},options:{},indexStack:[],handle:void 0};aV(n,t),n.options.tightDefinitions&&n.join.push(ez),n.handle=oV("type",{invalid:KV,unknown:JV,handlers:n.handlers});let r=n.handle(e,void 0,n,{before:"\n",after:"\n",now:{line:1,column:1},lineShift:0});return r&&10!==r.charCodeAt(r.length-1)&&13!==r.charCodeAt(r.length-1)&&(r+="\n"),r}function KV(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function JV(e){throw new Error("Cannot handle unknown node `"+e.type+"`")}function ez(e,t){if("definition"===e.type&&e.type===t.type)return 0}function tz(e,t){return function(e,t,n){const r=t.indexStack,i=e.children||[],o=[];let s=-1,a=n.before;r.push(-1);let l=t.createTracker(n);for(;++s<i.length;){const c=i[s];let u;if(r[r.length-1]=s,s+1<i.length){let n=t.handle.handlers[i[s+1].type];n&&n.peek&&(n=n.peek),u=n?n(i[s+1],e,t,{before:"",after:"",...l.current()}).charAt(0):""}else u=n.after;o.length>0&&("\r"===a||"\n"===a)&&"html"===c.type&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),a=" ",l=t.createTracker(n),l.move(o.join(""))),o.push(l.move(t.handle(c,e,t,{...l.current(),before:a,after:u}))),a=o[o.length-1].slice(-1)}return r.pop(),o.join("")}(e,this,t)}function nz(e,t){return function(e,t,n){const r=t.indexStack,i=e.children||[],o=t.createTracker(n),s=[];let a=-1;for(r.push(-1);++a<i.length;){const n=i[a];r[r.length-1]=a,s.push(o.move(t.handle(n,e,t,{before:"\n",after:"\n",...o.current()}))),"list"!==n.type&&(t.bulletLastUsed=void 0),a<i.length-1&&s.push(o.move(VV(n,i[a+1],e,t)))}return r.pop(),s.join("")}(e,this,t)}function rz(e,t){return function(e,t,n){const r=(n.before||"")+(t||"")+(n.after||""),i=[],o=[],s={};let a=-1;for(;++a<e.unsafe.length;){const t=e.unsafe[a];if(!dV(e.stack,t))continue;const n=e.compilePattern(t);let o;for(;o=n.exec(r);){const e="before"in t||Boolean(t.atBreak),n="after"in t,r=o.index+(e?o[1].length:0);i.includes(r)?(s[r].before&&!e&&(s[r].before=!1),s[r].after&&!n&&(s[r].after=!1)):(i.push(r),s[r]={before:e,after:n})}}i.sort(BV);let l=n.before?n.before.length:0;const c=r.length-(n.after?n.after.length:0);for(a=-1;++a<i.length;){const e=i[a];e<l||e>=c||e+1<c&&i[a+1]===e+1&&s[e].after&&!s[e+1].before&&!s[e+1].after||i[a-1]===e-1&&s[e].before&&!s[e-1].before&&!s[e-1].after||(l!==e&&o.push(YV(r.slice(l,e),"\\")),l=e,!/[!-/:-@[-`{-~]/.test(r.charAt(e))||n.encode&&n.encode.includes(r.charAt(e))?(o.push("&#x"+r.charCodeAt(e).toString(16).toUpperCase()+";"),l++):o.push("\\"))}return o.push(YV(r.slice(l,c),n.after)),o.join("")}(this,e,t)}function iz(e){if(e)throw e}var oz=Object.prototype.hasOwnProperty,sz=Object.prototype.toString,az=Object.defineProperty,lz=Object.getOwnPropertyDescriptor,cz=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===sz.call(e)},uz=function(e){if(!e||"[object Object]"!==sz.call(e))return!1;var t,n=oz.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&oz.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||oz.call(e,t)},dz=function(e,t){az&&"__proto__"===t.name?az(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},pz=function(e,t){if("__proto__"===t){if(!oz.call(e,t))return;if(lz)return lz(e,t).value}return e[t]},hz=function e(){var t,n,r,i,o,s,a=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[1]||{},l=2),(null==a||"object"!=typeof a&&"function"!=typeof a)&&(a={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=pz(a,n),a!==(i=pz(t,n))&&(u&&i&&(uz(i)||(o=cz(i)))?(o?(o=!1,s=r&&cz(r)?r:[]):s=r&&uz(r)?r:{},dz(a,{name:n,newValue:e(u,s,i)})):void 0!==i&&dz(a,{name:n,newValue:i}));return a};const fz=r(hz);function mz(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 gz(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function i(o,...s){const a=e[++n];let l=-1;if(o)r(o);else{for(;++l<t.length;)null!==s[l]&&void 0!==s[l]||(s[l]=t[l]);t=s,a?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let a;r&&t.push(i);try{a=e.apply(this,t)}catch(o){if(r&&n)throw o;return i(o)}r||(a instanceof Promise?a.then(s,i):a instanceof Error?i(a):s(a))}function i(e,...r){n||(n=!0,t(e,...r))}function s(e){i(null,e)}}(a,i)(...s):r(null,...s)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}class Oz extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},o=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(o=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=s?s.line:void 0,this.name=WZ(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}Oz.prototype.file="",Oz.prototype.name="",Oz.prototype.reason="",Oz.prototype.message="",Oz.prototype.stack="",Oz.prototype.column=void 0,Oz.prototype.line=void 0,Oz.prototype.ancestors=void 0,Oz.prototype.cause=void 0,Oz.prototype.fatal=void 0,Oz.prototype.place=void 0,Oz.prototype.ruleId=void 0,Oz.prototype.source=void 0;const yz={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');bz(e);let n,r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let s=-1,a=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else s<0&&(n=!0,s=o+1),a>-1&&(e.codePointAt(o)===t.codePointAt(a--)?a<0&&(i=o):(a=-1,i=s));r===i?i=s:i<0&&(i=e.length);return e.slice(r,i)},dirname:function(e){if(bz(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){bz(e);let t,n=e.length,r=-1,i=0,o=-1,s=0;for(;n--;){const a=e.codePointAt(n);if(47!==a)r<0&&(t=!0,r=n+1),46===a?o<0?o=n:1!==s&&(s=1):o>-1&&(s=-1);else if(t){i=n+1;break}}if(o<0||r<0||0===s||1===s&&o===r-1&&o===i+1)return"";return e.slice(o,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)bz(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){bz(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,i="",o=0,s=-1,a=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(s===l-1||1===a);else if(s!==l-1&&2===a){if(i.length<2||2!==o||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2))if(i.length>2){if(r=i.lastIndexOf("/"),r!==i.length-1){r<0?(i="",o=0):(i=i.slice(0,r),o=i.length-1-i.lastIndexOf("/")),s=l,a=0;continue}}else if(i.length>0){i="",o=0,s=l,a=0;continue}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(s+1,l):i=e.slice(s+1,l),o=l-s-1;s=l,a=0}else 46===n&&a>-1?a++:a=-1}return i}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function bz(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const vz={cwd:function(){return"/"}};function wz(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function Sz(e){if("string"==typeof e)e=new URL(e);else if(!wz(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const xz=["history","path","basename","stem","extname","dirname"];class kz{constructor(e){let t;t=e?wz(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd=vz.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<xz.length;){const e=xz[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)xz.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?yz.basename(this.path):void 0}set basename(e){_z(e,"basename"),$z(e,"basename"),this.path=yz.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?yz.dirname(this.path):void 0}set dirname(e){Pz(this.basename,"dirname"),this.path=yz.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?yz.extname(this.path):void 0}set extname(e){if($z(e,"extname"),Pz(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=yz.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){wz(e)&&(e=Sz(e)),_z(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?yz.basename(this.path,this.extname):void 0}set stem(e){_z(e,"stem"),$z(e,"stem"),this.path=yz.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new Oz(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function $z(e,t){if(e&&e.includes(yz.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+yz.sep+"`")}function _z(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Pz(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const Tz=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};Object.setPrototypeOf(r,t);const i=Object.getOwnPropertyNames(n);for(const o of i){const e=Object.getOwnPropertyDescriptor(n,o);e&&Object.defineProperty(r,o,e)}return r},Ez={}.hasOwnProperty;class Qz extends Tz{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=gz()}copy(){const e=new Qz;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(fz(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(Dz("data",this.frozen),this.namespace[e]=t,this):Ez.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Dz("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=Iz(e),n=this.parser||this.Parser;return Az("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),Az("process",this.parser||this.Parser),Rz("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){const o=Iz(e),s=n.parse(o);function a(e,n){e||!n?i(e):r?r(n):t(void 0,n)}n.run(s,o,(function(e,t,r){if(e||!t||!r)return a(e);const i=t,o=n.stringify(i,r);!function(e){return"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)}(o)?r.result=o:r.value=o,a(e,r)}))}}processSync(e){let t,n=!1;return this.freeze(),Az("processSync",this.parser||this.Parser),Rz("processSync",this.compiler||this.Compiler),this.process(e,(function(e,r){n=!0,iz(e),t=r})),jz("processSync","process",n),t}run(e,t,n){Nz(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,o){const s=Iz(t);r.run(e,s,(function(t,r,s){const a=r||e;t?o(t):i?i(a):n(void 0,a,s)}))}}runSync(e,t){let n,r=!1;return this.run(e,t,(function(e,t){iz(e),n=t,r=!0})),jz("runSync","run",r),n}stringify(e,t){this.freeze();const n=Iz(t),r=this.compiler||this.Compiler;return Rz("stringify",r),Nz(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(Dz("use",this.frozen),null==e);else if("function"==typeof e)a(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?s(e):o(e)}return this;function i(e){if("function"==typeof e)a(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;a(t,n)}else o(e)}}function o(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(e.plugins),e.settings&&(r.settings=fz(!0,r.settings,e.settings))}function s(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;){i(e[t])}}}function a(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...o]=t;const s=n[i][1];mz(s)&&mz(r)&&(r=fz(!0,s,r)),n[i]=[e,r,...o]}}}}const Cz=(new Qz).freeze();function Az(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function Rz(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function Dz(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 Nz(e){if(!mz(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function jz(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Iz(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new kz(e)}const qz=Cz().use(rV).use((function(e){const t=this;t.compiler=function(n){return GV(n,{...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]})}})).use((function(){return(e,t)=>{t.data.headings=eL(e)}})),Uz=async e=>{const t=new rL,{headings:n}=(await qz.process(e)).data;return Mz(n,t)},Mz=(e,t)=>e.map((e=>({...e,slug:t.slug(e.value)}))),Xz=e=>{const t=Math.min(...e.map((e=>e.depth)));return t>=1&&t<=6?t:1},Fz=e=>{if(!e)return"models";return`model/${(new rL).slug(e)}`},Lz=e=>`tag/${(new rL).slug(e.name)}`,Zz=(e,t)=>`${Lz(t)}/[${e.httpVerb}]${e.path}`;function Vz(e,t){var n;return[...e.pathParameters||[],...(null==(n=e.information)?void 0:n.parameters)||[]].filter((e=>e.in===t)).filter((e=>e.required)).map((e=>({name:e.name,description:e.description??null,value:e.example?e.example:e.schema?cN(e.schema):"",required:e.required??!1})))}function zz(e){var t;const n=[],r=[],i=[];if(e.securitySchemeKey){const s=null==(t=e.securitySchemes)?void 0:t[e.securitySchemeKey];s&&("apiKey"===s.type?"header"===s.in?n.push({name:s.name,value:e.apiKey.token}):"cookie"===s.in?i.push({name:s.name,value:e.apiKey.token}):"query"===s.in&&r.push({name:s.name,value:e.apiKey.token}):"http"!==s.type&&"basic"!==s.type||("basic"===s.type||"basic"===s.scheme?n.push({name:"Authorization",value:`Basic ${o.Buffer.from(`${e.http.basic.username}:${e.http.basic.password}`).toString("base64")}`}):"bearer"===s.scheme&&n.push({name:"Authorization",value:`Bearer ${e.http.bearer.token}`})))}return{headers:n,queryString:r,cookies:i}}function Wz(e,t){const n=function(e,t,r){let i="";if(e instanceof Array)for(let o=0,s=e.length;o<s;o++)i+=r+n(e[o],t,r+"\t")+"\n";else if("object"==typeof e){let o=!1;i+=r+"<"+t;for(const t in e)"@"==t.charAt(0)?i+=" "+t.substr(1)+'="'+e[t].toString()+'"':o=!0;if(i+=o?">":"/>",o){for(const t in e)"#text"==t?i+=e[t]:"#cdata"==t?i+="<![CDATA["+e[t]+"]]>":"@"!=t.charAt(0)&&(i+=n(e[t],t,r+"\t"));i+=("\n"==i.charAt(i.length-1)?r:"")+"</"+t+">"}}else i+=r+"<"+t+">"+e.toString()+"</"+t+">";return i};let r="";for(const i in e)r+=n(e[i],i,"");return t?r.replace(/\t/g,t):r.replace(/\t|\n/g,"")}const Bz=(e,t)=>{let n=e.path;if(!0===(null==t?void 0:t.replaceVariables)){const e=n.match(/{(.*?)}/g);e&&e.forEach((e=>{const t=e.replace(/{|}/g,"");n=n.replace(e,`__${t.toUpperCase()}__`)}))}const r=function(e){var t,n,r;const i=["application/json","application/octet-stream","application/x-www-form-urlencoded","application/xml","multipart/form-data","text/plain"].find((t=>{var n,r,i;return!!(null==(i=null==(r=null==(n=e.information)?void 0:n.requestBody)?void 0:r.content)?void 0:i[t])}));if(!i)return null;const o=null==(r=null==(n=null==(t=e.information)?void 0:t.requestBody)?void 0:n.content)?void 0:r[i],s=[{name:"Content-Type",value:i}],a=(null==o?void 0:o.example)?null==o?void 0:o.example:void 0;if("application/json"===i){const e=(null==o?void 0:o.schema)?cN(null==o?void 0:o.schema):null;return{headers:s,postData:{mimeType:i,text:a??JSON.stringify(e,null,2)}}}if("application/xml"===i){const e=(null==o?void 0:o.schema)?cN(null==o?void 0:o.schema,{xml:!0}):null;return{headers:s,postData:{mimeType:i,text:a??Wz(e," ")}}}if("application/octet-stream"===i)return{headers:s,postData:{mimeType:i,text:"BINARY"}};if("text/plain"===i){const e=(null==o?void 0:o.schema)?cN(null==o?void 0:o.schema,{xml:!0}):null;return{headers:s,postData:{mimeType:i,text:a??e??""}}}if("application/x-www-form-urlencoded"===i)return{headers:s,postData:{mimeType:i}};if("multipart/form-data"===i)return{headers:s,postData:{mimeType:i}};return}(e);return{method:e.httpVerb.toUpperCase(),path:n,headers:[...Vz(e,"header"),...(null==r?void 0:r.headers)??[]],postData:null==r?void 0:r.postData,queryString:Vz(e,"query"),cookies:Vz(e,"cookie")}};function Yz(e,t){const n=(e,n)=>{if("function"==typeof t)return t(n);{const e=null==t?void 0:t.find((e=>e.name===n));return((null==e?void 0:e.value)??"").toString()}};return e.replace(/{{\s*([\w.-]+)\s*}}/g,n).replace(/{\s*([\w.-]+)\s*}/g,n)}function Hz(e){var t,n,r,i;let o=null===e.selectedServer?(null==(n=null==(t=null==e?void 0:e.servers)?void 0:t[0])?void 0:n.url)??void 0:null==(i=null==(r=null==e?void 0:e.servers)?void 0:r[e.selectedServer])?void 0:i.url;return(null==o?void 0:o.startsWith("/"))&&(o=`${window.location.origin}${o.slice(1)}`),o?Yz(o,null==e?void 0:e.variables):void 0}const Gz=e=>{var t;return!!e&&!!Object.keys((null==(t=null==e?void 0:e.components)?void 0:t.schemas)??{}).length},Kz=e=>{var t;return!!Object.keys((null==(t=null==e?void 0:e.components)?void 0:t.securitySchemes)??{}).length},Jz=e=>{if("string"!=typeof e)return!1;try{JSON.parse(e)}catch{return!1}return!0};const eW=(e,t)=>Object.keys(e).map((n=>({[t??n]:n,value:e[n]})));const tW=Bt({securitySchemeKey:null,http:{basic:{username:"",password:""},bearer:{token:""}},apiKey:{token:""}}),nW=e=>{Object.assign(tW,{...tW,...e})},rW=Bt({selectedServer:null,servers:[],variables:[]}),iW=e=>{Object.assign(rW,{...rW,...e})},oW=()=>({authentication:tW,setAuthentication:nW,server:rW,setServer:iW}),{server:sW,authentication:aW}=oW(),{toggleApiClient:lW}=ON(),{setActiveRequest:cW,resetActiveResponse:uW}=EN();function dW(e){const t=lN({serverState:sW,authenticationState:aW,operation:e});uW(),cW(t),lW(t,!0)}const pW=e=>{try{return"string"==typeof e?JSON.stringify(JSON.parse(e),null,2):JSON.stringify(e,null,2)}catch{return console.log("[prettyPrintJson] Error parsing JSON",e),e}},hW=async e=>{var t;null==(t=document.getElementById(e))||t.scrollIntoView()};
17
17
  /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
18
18
  function fW(e){return null==e}var mW={isNothing:fW,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:fW(e)?[]:[e]},repeat:function(e,t){var n,r="";for(n=0;n<t;n+=1)r+=e;return r},isNegativeZero:function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},extend:function(e,t){var n,r,i,o;if(t)for(n=0,r=(o=Object.keys(t)).length;n<r;n+=1)e[i=o[n]]=t[i];return e}};function gW(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+="\n\n"+e.mark.snippet),r+" "+n):r}function OW(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=gW(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}OW.prototype=Object.create(Error.prototype),OW.prototype.constructor=OW,OW.prototype.toString=function(e){return this.name+": "+gW(this,e)};var yW=OW;function bW(e,t,n,r,i){var o="",s="",a=Math.floor(i/2)-1;return r-t>a&&(t=r-a+(o=" ... ").length),n-r>a&&(n=r+a-(s=" ...").length),{str:o+e.slice(t,n).replace(/\t/g,"→")+s,pos:r-t+o.length}}function vW(e,t){return mW.repeat(" ",t-e.length)+e}var wW=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var n,r=/\r?\n|\r|\0/g,i=[0],o=[],s=-1;n=r.exec(e.buffer);)o.push(n.index),i.push(n.index+n[0].length),e.position<=n.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);var a,l,c="",u=Math.min(e.line+t.linesAfter,o.length).toString().length,d=t.maxLength-(t.indent+u+3);for(a=1;a<=t.linesBefore&&!(s-a<0);a++)l=bW(e.buffer,i[s-a],o[s-a],e.position-(i[s]-i[s-a]),d),c=mW.repeat(" ",t.indent)+vW((e.line-a+1).toString(),u)+" | "+l.str+"\n"+c;for(l=bW(e.buffer,i[s],o[s],e.position,d),c+=mW.repeat(" ",t.indent)+vW((e.line+1).toString(),u)+" | "+l.str+"\n",c+=mW.repeat("-",t.indent+u+3+l.pos)+"^\n",a=1;a<=t.linesAfter&&!(s+a>=o.length);a++)l=bW(e.buffer,i[s+a],o[s+a],e.position-(i[s]-i[s+a]),d),c+=mW.repeat(" ",t.indent)+vW((e.line+a+1).toString(),u)+" | "+l.str+"\n";return c.replace(/\n$/,"")},SW=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],xW=["scalar","sequence","mapping"];var kW=function(e,t){var n,r;if(t=t||{},Object.keys(t).forEach((function(t){if(-1===SW.indexOf(t))throw new yW('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=(n=t.styleAliases||null,r={},null!==n&&Object.keys(n).forEach((function(e){n[e].forEach((function(t){r[String(t)]=e}))})),r),-1===xW.indexOf(this.kind))throw new yW('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function $W(e,t){var n=[];return e[t].forEach((function(e){var t=n.length;n.forEach((function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)})),n[t]=e})),n}function _W(e){return this.extend(e)}_W.prototype.extend=function(e){var t=[],n=[];if(e instanceof kW)n.push(e);else if(Array.isArray(e))n=n.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new yW("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit))}t.forEach((function(e){if(!(e instanceof kW))throw new yW("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new yW("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new yW("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),n.forEach((function(e){if(!(e instanceof kW))throw new yW("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var r=Object.create(_W.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=$W(r,"implicit"),r.compiledExplicit=$W(r,"explicit"),r.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function r(e){e.multi?(n.multi[e.kind].push(e),n.multi.fallback.push(e)):n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(r);return n}(r.compiledImplicit,r.compiledExplicit),r};var PW=_W,TW=new kW("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),EW=new kW("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),QW=new kW("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}),CW=new PW({explicit:[TW,EW,QW]});var AW=new kW("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});var RW=new kW("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function DW(e){return 48<=e&&e<=55}function NW(e){return 48<=e&&e<=57}var jW=new kW("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=e.length,i=0,o=!1;if(!r)return!1;if("-"!==(t=e[i])&&"+"!==t||(t=e[++i]),"0"===t){if(i+1===r)return!0;if("b"===(t=e[++i])){for(i++;i<r;i++)if("_"!==(t=e[i])){if("0"!==t&&"1"!==t)return!1;o=!0}return o&&"_"!==t}if("x"===t){for(i++;i<r;i++)if("_"!==(t=e[i])){if(!(48<=(n=e.charCodeAt(i))&&n<=57||65<=n&&n<=70||97<=n&&n<=102))return!1;o=!0}return o&&"_"!==t}if("o"===t){for(i++;i<r;i++)if("_"!==(t=e[i])){if(!DW(e.charCodeAt(i)))return!1;o=!0}return o&&"_"!==t}}if("_"===t)return!1;for(;i<r;i++)if("_"!==(t=e[i])){if(!NW(e.charCodeAt(i)))return!1;o=!0}return!(!o||"_"===t)},construct:function(e){var t,n=e,r=1;if(-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),"-"!==(t=n[0])&&"+"!==t||("-"===t&&(r=-1),t=(n=n.slice(1))[0]),"0"===n)return 0;if("0"===t){if("b"===n[1])return r*parseInt(n.slice(2),2);if("x"===n[1])return r*parseInt(n.slice(2),16);if("o"===n[1])return r*parseInt(n.slice(2),8)}return r*parseInt(n,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!mW.isNegativeZero(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),IW=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var qW=/^[-+]?[0-9]+e/;var UW=new kW("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!IW.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||mW.isNegativeZero(e))},represent:function(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(mW.isNegativeZero(e))return"-0.0";return n=e.toString(10),qW.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"}),MW=CW.extend({implicit:[AW,RW,jW,UW]}),XW=MW,FW=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),LW=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");var ZW=new kW("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==FW.exec(e)||null!==LW.exec(e))},construct:function(e){var t,n,r,i,o,s,a,l,c=0,u=null;if(null===(t=FW.exec(e))&&(t=LW.exec(e)),null===t)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(o=+t[4],s=+t[5],a=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(u=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(u=-u)),l=new Date(Date.UTC(n,r,i,o,s,a,c)),u&&l.setTime(l.getTime()-u),l},instanceOf:Date,represent:function(e){return e.toISOString()}});var VW=new kW("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),zW="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var WW=new kW("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=0,i=e.length,o=zW;for(n=0;n<i;n++)if(!((t=o.indexOf(e.charAt(n)))>64)){if(t<0)return!1;r+=6}return r%8==0},construct:function(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,o=zW,s=0,a=[];for(t=0;t<i;t++)t%4==0&&t&&(a.push(s>>16&255),a.push(s>>8&255),a.push(255&s)),s=s<<6|o.indexOf(r.charAt(t));return 0===(n=i%4*6)?(a.push(s>>16&255),a.push(s>>8&255),a.push(255&s)):18===n?(a.push(s>>10&255),a.push(s>>2&255)):12===n&&a.push(s>>4&255),new Uint8Array(a)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,n,r="",i=0,o=e.length,s=zW;for(t=0;t<o;t++)t%3==0&&t&&(r+=s[i>>18&63],r+=s[i>>12&63],r+=s[i>>6&63],r+=s[63&i]),i=(i<<8)+e[t];return 0===(n=o%3)?(r+=s[i>>18&63],r+=s[i>>12&63],r+=s[i>>6&63],r+=s[63&i]):2===n?(r+=s[i>>10&63],r+=s[i>>4&63],r+=s[i<<2&63],r+=s[64]):1===n&&(r+=s[i>>2&63],r+=s[i<<4&63],r+=s[64],r+=s[64]),r}}),BW=Object.prototype.hasOwnProperty,YW=Object.prototype.toString;var HW=new kW("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,i,o,s=[],a=e;for(t=0,n=a.length;t<n;t+=1){if(r=a[t],o=!1,"[object Object]"!==YW.call(r))return!1;for(i in r)if(BW.call(r,i)){if(o)return!1;o=!0}if(!o)return!1;if(-1!==s.indexOf(i))return!1;s.push(i)}return!0},construct:function(e){return null!==e?e:[]}}),GW=Object.prototype.toString;var KW=new kW("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,i,o,s=e;for(o=new Array(s.length),t=0,n=s.length;t<n;t+=1){if(r=s[t],"[object Object]"!==GW.call(r))return!1;if(1!==(i=Object.keys(r)).length)return!1;o[t]=[i[0],r[i[0]]]}return!0},construct:function(e){if(null===e)return[];var t,n,r,i,o,s=e;for(o=new Array(s.length),t=0,n=s.length;t<n;t+=1)r=s[t],i=Object.keys(r),o[t]=[i[0],r[i[0]]];return o}}),JW=Object.prototype.hasOwnProperty;var eB=new kW("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,n=e;for(t in n)if(JW.call(n,t)&&null!==n[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),tB=XW.extend({implicit:[ZW,VW],explicit:[WW,HW,KW,eB]}),nB=Object.prototype.hasOwnProperty,rB=1,iB=2,oB=3,sB=4,aB=1,lB=2,cB=3,uB=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,dB=/[\x85\u2028\u2029]/,pB=/[,\[\]\{\}]/,hB=/^(?:!|!!|![a-z\-]+!)$/i,fB=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function mB(e){return Object.prototype.toString.call(e)}function gB(e){return 10===e||13===e}function OB(e){return 9===e||32===e}function yB(e){return 9===e||32===e||10===e||13===e}function bB(e){return 44===e||91===e||93===e||123===e||125===e}function vB(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function wB(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"…":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function SB(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var xB=new Array(256),kB=new Array(256),$B=0;$B<256;$B++)xB[$B]=wB($B)?1:0,kB[$B]=wB($B);function _B(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||tB,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function PB(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=wW(n),new yW(t,n)}function TB(e,t){throw PB(e,t)}function EB(e,t){e.onWarning&&e.onWarning.call(null,PB(e,t))}var QB={YAML:function(e,t,n){var r,i,o;null!==e.version&&TB(e,"duplication of %YAML directive"),1!==n.length&&TB(e,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&TB(e,"ill-formed argument of the YAML directive"),i=parseInt(r[1],10),o=parseInt(r[2],10),1!==i&&TB(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&EB(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,i;2!==n.length&&TB(e,"TAG directive accepts exactly two arguments"),r=n[0],i=n[1],hB.test(r)||TB(e,"ill-formed tag handle (first argument) of the TAG directive"),nB.call(e.tagMap,r)&&TB(e,'there is a previously declared suffix for "'+r+'" tag handle'),fB.test(i)||TB(e,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch(o){TB(e,"tag prefix is malformed: "+i)}e.tagMap[r]=i}};function CB(e,t,n,r){var i,o,s,a;if(t<n){if(a=e.input.slice(t,n),r)for(i=0,o=a.length;i<o;i+=1)9===(s=a.charCodeAt(i))||32<=s&&s<=1114111||TB(e,"expected valid JSON character");else uB.test(a)&&TB(e,"the stream contains non-printable characters");e.result+=a}}function AB(e,t,n,r){var i,o,s,a;for(mW.isObject(n)||TB(e,"cannot merge mappings; the provided source object is unacceptable"),s=0,a=(i=Object.keys(n)).length;s<a;s+=1)o=i[s],nB.call(t,o)||(t[o]=n[o],r[o]=!0)}function RB(e,t,n,r,i,o,s,a,l){var c,u;if(Array.isArray(i))for(c=0,u=(i=Array.prototype.slice.call(i)).length;c<u;c+=1)Array.isArray(i[c])&&TB(e,"nested arrays are not supported inside keys"),"object"==typeof i&&"[object Object]"===mB(i[c])&&(i[c]="[object Object]");if("object"==typeof i&&"[object Object]"===mB(i)&&(i="[object Object]"),i=String(i),null===t&&(t={}),"tag:yaml.org,2002:merge"===r)if(Array.isArray(o))for(c=0,u=o.length;c<u;c+=1)AB(e,t,o[c],n);else AB(e,t,o,n);else e.json||nB.call(n,i)||!nB.call(t,i)||(e.line=s||e.line,e.lineStart=a||e.lineStart,e.position=l||e.position,TB(e,"duplicated mapping key")),"__proto__"===i?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:o}):t[i]=o,delete n[i];return t}function DB(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):TB(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function NB(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);0!==i;){for(;OB(i);)9===i&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&35===i)do{i=e.input.charCodeAt(++e.position)}while(10!==i&&13!==i&&0!==i);if(!gB(i))break;for(DB(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position)}return-1!==n&&0!==r&&e.lineIndent<n&&EB(e,"deficient indentation"),r}function jB(e){var t,n=e.position;return!(45!==(t=e.input.charCodeAt(n))&&46!==t||t!==e.input.charCodeAt(n+1)||t!==e.input.charCodeAt(n+2)||(n+=3,0!==(t=e.input.charCodeAt(n))&&!yB(t)))}function IB(e,t){1===t?e.result+=" ":t>1&&(e.result+=mW.repeat("\n",t-1))}function qB(e,t){var n,r,i=e.tag,o=e.anchor,s=[],a=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=s),r=e.input.charCodeAt(e.position);0!==r&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,TB(e,"tab characters must not be used in indentation")),45===r)&&yB(e.input.charCodeAt(e.position+1));)if(a=!0,e.position++,NB(e,!0,-1)&&e.lineIndent<=t)s.push(null),r=e.input.charCodeAt(e.position);else if(n=e.line,XB(e,t,oB,!1,!0),s.push(e.result),NB(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==r)TB(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!a&&(e.tag=i,e.anchor=o,e.kind="sequence",e.result=s,!0)}function UB(e){var t,n,r,i,o=!1,s=!1;if(33!==(i=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&TB(e,"duplication of a tag property"),60===(i=e.input.charCodeAt(++e.position))?(o=!0,i=e.input.charCodeAt(++e.position)):33===i?(s=!0,n="!!",i=e.input.charCodeAt(++e.position)):n="!",t=e.position,o){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&62!==i);e.position<e.length?(r=e.input.slice(t,e.position),i=e.input.charCodeAt(++e.position)):TB(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==i&&!yB(i);)33===i&&(s?TB(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),hB.test(n)||TB(e,"named tag handle cannot contain such characters"),s=!0,t=e.position+1)),i=e.input.charCodeAt(++e.position);r=e.input.slice(t,e.position),pB.test(r)&&TB(e,"tag suffix cannot contain flow indicator characters")}r&&!fB.test(r)&&TB(e,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch(a){TB(e,"tag name is malformed: "+r)}return o?e.tag=r:nB.call(e.tagMap,n)?e.tag=e.tagMap[n]+r:"!"===n?e.tag="!"+r:"!!"===n?e.tag="tag:yaml.org,2002:"+r:TB(e,'undeclared tag handle "'+n+'"'),!0}function MB(e){var t,n;if(38!==(n=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&TB(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!yB(n)&&!bB(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&TB(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function XB(e,t,n,r,i){var o,s,a,l,c,u,d,p,h,f=1,m=!1,g=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=s=a=sB===n||oB===n,r&&NB(e,!0,-1)&&(m=!0,e.lineIndent>t?f=1:e.lineIndent===t?f=0:e.lineIndent<t&&(f=-1)),1===f)for(;UB(e)||MB(e);)NB(e,!0,-1)?(m=!0,a=o,e.lineIndent>t?f=1:e.lineIndent===t?f=0:e.lineIndent<t&&(f=-1)):a=!1;if(a&&(a=m||i),1!==f&&sB!==n||(p=rB===n||iB===n?t:t+1,h=e.position-e.lineStart,1===f?a&&(qB(e,h)||function(e,t,n){var r,i,o,s,a,l,c,u=e.tag,d=e.anchor,p={},h=Object.create(null),f=null,m=null,g=null,O=!1,y=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=p),c=e.input.charCodeAt(e.position);0!==c;){if(O||-1===e.firstTabInLine||(e.position=e.firstTabInLine,TB(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),o=e.line,63!==c&&58!==c||!yB(r)){if(s=e.line,a=e.lineStart,l=e.position,!XB(e,n,iB,!1,!0))break;if(e.line===o){for(c=e.input.charCodeAt(e.position);OB(c);)c=e.input.charCodeAt(++e.position);if(58===c)yB(c=e.input.charCodeAt(++e.position))||TB(e,"a whitespace character is expected after the key-value separator within a block mapping"),O&&(RB(e,p,h,f,m,null,s,a,l),f=m=g=null),y=!0,O=!1,i=!1,f=e.tag,m=e.result;else{if(!y)return e.tag=u,e.anchor=d,!0;TB(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!y)return e.tag=u,e.anchor=d,!0;TB(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===c?(O&&(RB(e,p,h,f,m,null,s,a,l),f=m=g=null),y=!0,O=!0,i=!0):O?(O=!1,i=!0):TB(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,c=r;if((e.line===o||e.lineIndent>t)&&(O&&(s=e.line,a=e.lineStart,l=e.position),XB(e,t,sB,!0,i)&&(O?m=e.result:g=e.result),O||(RB(e,p,h,f,m,g,s,a,l),f=m=g=null),NB(e,!0,-1),c=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&0!==c)TB(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return O&&RB(e,p,h,f,m,null,s,a,l),y&&(e.tag=u,e.anchor=d,e.kind="mapping",e.result=p),y}(e,h,p))||function(e,t){var n,r,i,o,s,a,l,c,u,d,p,h,f=!0,m=e.tag,g=e.anchor,O=Object.create(null);if(91===(h=e.input.charCodeAt(e.position)))s=93,c=!1,o=[];else{if(123!==h)return!1;s=125,c=!0,o={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),h=e.input.charCodeAt(++e.position);0!==h;){if(NB(e,!0,t),(h=e.input.charCodeAt(e.position))===s)return e.position++,e.tag=m,e.anchor=g,e.kind=c?"mapping":"sequence",e.result=o,!0;f?44===h&&TB(e,"expected the node content, but found ','"):TB(e,"missed comma between flow collection entries"),p=null,a=l=!1,63===h&&yB(e.input.charCodeAt(e.position+1))&&(a=l=!0,e.position++,NB(e,!0,t)),n=e.line,r=e.lineStart,i=e.position,XB(e,t,rB,!1,!0),d=e.tag,u=e.result,NB(e,!0,t),h=e.input.charCodeAt(e.position),!l&&e.line!==n||58!==h||(a=!0,h=e.input.charCodeAt(++e.position),NB(e,!0,t),XB(e,t,rB,!1,!0),p=e.result),c?RB(e,o,O,d,u,p,n,r,i):a?o.push(RB(e,null,O,d,u,p,n,r,i)):o.push(u),NB(e,!0,t),44===(h=e.input.charCodeAt(e.position))?(f=!0,h=e.input.charCodeAt(++e.position)):f=!1}TB(e,"unexpected end of the stream within a flow collection")}(e,p)?g=!0:(s&&function(e,t){var n,r,i,o,s,a=aB,l=!1,c=!1,u=t,d=0,p=!1;if(124===(o=e.input.charCodeAt(e.position)))r=!1;else{if(62!==o)return!1;r=!0}for(e.kind="scalar",e.result="";0!==o;)if(43===(o=e.input.charCodeAt(++e.position))||45===o)aB===a?a=43===o?cB:lB:TB(e,"repeat of a chomping mode identifier");else{if(!((i=48<=(s=o)&&s<=57?s-48:-1)>=0))break;0===i?TB(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?TB(e,"repeat of an indentation width identifier"):(u=t+i-1,c=!0)}if(OB(o)){do{o=e.input.charCodeAt(++e.position)}while(OB(o));if(35===o)do{o=e.input.charCodeAt(++e.position)}while(!gB(o)&&0!==o)}for(;0!==o;){for(DB(e),e.lineIndent=0,o=e.input.charCodeAt(e.position);(!c||e.lineIndent<u)&&32===o;)e.lineIndent++,o=e.input.charCodeAt(++e.position);if(!c&&e.lineIndent>u&&(u=e.lineIndent),gB(o))d++;else{if(e.lineIndent<u){a===cB?e.result+=mW.repeat("\n",l?1+d:d):a===aB&&l&&(e.result+="\n");break}for(r?OB(o)?(p=!0,e.result+=mW.repeat("\n",l?1+d:d)):p?(p=!1,e.result+=mW.repeat("\n",d+1)):0===d?l&&(e.result+=" "):e.result+=mW.repeat("\n",d):e.result+=mW.repeat("\n",l?1+d:d),l=!0,c=!0,d=0,n=e.position;!gB(o)&&0!==o;)o=e.input.charCodeAt(++e.position);CB(e,n,e.position,!1)}}return!0}(e,p)||function(e,t){var n,r,i;if(39!==(n=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;0!==(n=e.input.charCodeAt(e.position));)if(39===n){if(CB(e,r,e.position,!0),39!==(n=e.input.charCodeAt(++e.position)))return!0;r=e.position,e.position++,i=e.position}else gB(n)?(CB(e,r,i,!0),IB(e,NB(e,!1,t)),r=i=e.position):e.position===e.lineStart&&jB(e)?TB(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);TB(e,"unexpected end of the stream within a single quoted scalar")}(e,p)||function(e,t){var n,r,i,o,s,a,l;if(34!==(a=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;0!==(a=e.input.charCodeAt(e.position));){if(34===a)return CB(e,n,e.position,!0),e.position++,!0;if(92===a){if(CB(e,n,e.position,!0),gB(a=e.input.charCodeAt(++e.position)))NB(e,!1,t);else if(a<256&&xB[a])e.result+=kB[a],e.position++;else if((s=120===(l=a)?2:117===l?4:85===l?8:0)>0){for(i=s,o=0;i>0;i--)(s=vB(a=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+s:TB(e,"expected hexadecimal character");e.result+=SB(o),e.position++}else TB(e,"unknown escape sequence");n=r=e.position}else gB(a)?(CB(e,n,r,!0),IB(e,NB(e,!1,t)),n=r=e.position):e.position===e.lineStart&&jB(e)?TB(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}TB(e,"unexpected end of the stream within a double quoted scalar")}(e,p)?g=!0:!function(e){var t,n,r;if(42!==(r=e.input.charCodeAt(e.position)))return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!yB(r)&&!bB(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&TB(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),nB.call(e.anchorMap,n)||TB(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],NB(e,!0,-1),!0}(e)?function(e,t,n){var r,i,o,s,a,l,c,u,d=e.kind,p=e.result;if(yB(u=e.input.charCodeAt(e.position))||bB(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(yB(r=e.input.charCodeAt(e.position+1))||n&&bB(r)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,s=!1;0!==u;){if(58===u){if(yB(r=e.input.charCodeAt(e.position+1))||n&&bB(r))break}else if(35===u){if(yB(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&jB(e)||n&&bB(u))break;if(gB(u)){if(a=e.line,l=e.lineStart,c=e.lineIndent,NB(e,!1,-1),e.lineIndent>=t){s=!0,u=e.input.charCodeAt(e.position);continue}e.position=o,e.line=a,e.lineStart=l,e.lineIndent=c;break}}s&&(CB(e,i,o,!1),IB(e,e.line-a),i=o=e.position,s=!1),OB(u)||(o=e.position+1),u=e.input.charCodeAt(++e.position)}return CB(e,i,o,!1),!!e.result||(e.kind=d,e.result=p,!1)}(e,p,rB===n)&&(g=!0,null===e.tag&&(e.tag="?")):(g=!0,null===e.tag&&null===e.anchor||TB(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===f&&(g=a&&qB(e,h))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&TB(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,c=e.implicitTypes.length;l<c;l+=1)if((d=e.implicitTypes[l]).resolve(e.result)){e.result=d.construct(e.result),e.tag=d.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(nB.call(e.typeMap[e.kind||"fallback"],e.tag))d=e.typeMap[e.kind||"fallback"][e.tag];else for(d=null,l=0,c=(u=e.typeMap.multi[e.kind||"fallback"]).length;l<c;l+=1)if(e.tag.slice(0,u[l].tag.length)===u[l].tag){d=u[l];break}d||TB(e,"unknown tag !<"+e.tag+">"),null!==e.result&&d.kind!==e.kind&&TB(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result,e.tag)?(e.result=d.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):TB(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||g}function FB(e){var t,n,r,i,o=e.position,s=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(i=e.input.charCodeAt(e.position))&&(NB(e,!0,-1),i=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==i));){for(s=!0,i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!yB(i);)i=e.input.charCodeAt(++e.position);for(r=[],(n=e.input.slice(t,e.position)).length<1&&TB(e,"directive name must not be less than one character in length");0!==i;){for(;OB(i);)i=e.input.charCodeAt(++e.position);if(35===i){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&!gB(i));break}if(gB(i))break;for(t=e.position;0!==i&&!yB(i);)i=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==i&&DB(e),nB.call(QB,n)?QB[n](e,n,r):EB(e,'unknown document directive "'+n+'"')}NB(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,NB(e,!0,-1)):s&&TB(e,"directives end mark is expected"),XB(e,e.lineIndent-1,sB,!1,!0),NB(e,!0,-1),e.checkLineBreaks&&dB.test(e.input.slice(o,e.position))&&EB(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&jB(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,NB(e,!0,-1)):e.position<e.length-1&&TB(e,"end of the stream or a document separator is expected")}function LB(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var n=new _B(e,t),r=e.indexOf("\0");for(-1!==r&&(n.position=r,TB(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)FB(n);return n.documents}var ZB=function(e,t,n){null!==t&&"object"==typeof t&&void 0===n&&(n=t,t=null);var r=LB(e,n);if("function"!=typeof t)return r;for(var i=0,o=r.length;i<o;i+=1)t(r[i])},VB=function(e,t){var n=LB(e,t);if(0!==n.length){if(1===n.length)return n[0];throw new yW("expected a single document in the stream, but found more")}},zB={loadAll:ZB,load:VB},WB=Object.prototype.toString,BB=Object.prototype.hasOwnProperty,YB=65279,HB=9,GB=10,KB=13,JB=32,eY=33,tY=34,nY=35,rY=37,iY=38,oY=39,sY=42,aY=44,lY=45,cY=58,uY=61,dY=62,pY=63,hY=64,fY=91,mY=93,gY=96,OY=123,yY=124,bY=125,vY={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},wY=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],SY=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function xY(e){var t,n,r;if(t=e.toString(16).toUpperCase(),e<=255)n="x",r=2;else if(e<=65535)n="u",r=4;else{if(!(e<=4294967295))throw new yW("code point within a string may not be greater than 0xFFFFFFFF");n="U",r=8}return"\\"+n+mW.repeat("0",r-t.length)+t}var kY=1,$Y=2;function _Y(e){this.schema=e.schema||tB,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=mW.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var n,r,i,o,s,a,l;if(null===t)return{};for(n={},i=0,o=(r=Object.keys(t)).length;i<o;i+=1)s=r[i],a=String(t[s]),"!!"===s.slice(0,2)&&(s="tag:yaml.org,2002:"+s.slice(2)),(l=e.compiledTypeMap.fallback[s])&&BB.call(l.styleAliases,a)&&(a=l.styleAliases[a]),n[s]=a;return n}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?$Y:kY,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function PY(e,t){for(var n,r=mW.repeat(" ",t),i=0,o=-1,s="",a=e.length;i<a;)-1===(o=e.indexOf("\n",i))?(n=e.slice(i),i=a):(n=e.slice(i,o+1),i=o+1),n.length&&"\n"!==n&&(s+=r),s+=n;return s}function TY(e,t){return"\n"+mW.repeat(" ",e.indent*t)}function EY(e){return e===JB||e===HB}function QY(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==YB||65536<=e&&e<=1114111}function CY(e){return QY(e)&&e!==YB&&e!==KB&&e!==GB}function AY(e,t,n){var r=CY(e),i=r&&!EY(e);return(n?r:r&&e!==aY&&e!==fY&&e!==mY&&e!==OY&&e!==bY)&&e!==nY&&!(t===cY&&!i)||CY(t)&&!EY(t)&&e===nY||t===cY&&i}function RY(e,t){var n,r=e.charCodeAt(t);return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1))>=56320&&n<=57343?1024*(r-55296)+n-56320+65536:r}function DY(e){return/^\n* /.test(e)}var NY=1,jY=2,IY=3,qY=4,UY=5;function MY(e,t,n,r,i,o,s,a){var l,c,u=0,d=null,p=!1,h=!1,f=-1!==r,m=-1,g=QY(c=RY(e,0))&&c!==YB&&!EY(c)&&c!==lY&&c!==pY&&c!==cY&&c!==aY&&c!==fY&&c!==mY&&c!==OY&&c!==bY&&c!==nY&&c!==iY&&c!==sY&&c!==eY&&c!==yY&&c!==uY&&c!==dY&&c!==oY&&c!==tY&&c!==rY&&c!==hY&&c!==gY&&function(e){return!EY(e)&&e!==cY}(RY(e,e.length-1));if(t||s)for(l=0;l<e.length;u>=65536?l+=2:l++){if(!QY(u=RY(e,l)))return UY;g=g&&AY(u,d,a),d=u}else{for(l=0;l<e.length;u>=65536?l+=2:l++){if((u=RY(e,l))===GB)p=!0,f&&(h=h||l-m-1>r&&" "!==e[m+1],m=l);else if(!QY(u))return UY;g=g&&AY(u,d,a),d=u}h=h||f&&l-m-1>r&&" "!==e[m+1]}return p||h?n>9&&DY(e)?UY:s?o===$Y?UY:jY:h?qY:IY:!g||s||i(e)?o===$Y?UY:jY:NY}function XY(e,t,n,r,i){e.dump=function(){if(0===t.length)return e.quotingType===$Y?'""':"''";if(!e.noCompatMode&&(-1!==wY.indexOf(t)||SY.test(t)))return e.quotingType===$Y?'"'+t+'"':"'"+t+"'";var o=e.indent*Math.max(1,n),s=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),a=r||e.flowLevel>-1&&n>=e.flowLevel;switch(MY(t,a,e.indent,s,(function(t){return function(e,t){var n,r;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}(e,t)}),e.quotingType,e.forceQuotes&&!r,i)){case NY:return t;case jY:return"'"+t.replace(/'/g,"''")+"'";case IY:return"|"+FY(t,e.indent)+LY(PY(t,o));case qY:return">"+FY(t,e.indent)+LY(PY(function(e,t){var n,r,i=/(\n+)([^\n]*)/g,o=(a=e.indexOf("\n"),a=-1!==a?a:e.length,i.lastIndex=a,ZY(e.slice(0,a),t)),s="\n"===e[0]||" "===e[0];var a;for(;r=i.exec(e);){var l=r[1],c=r[2];n=" "===c[0],o+=l+(s||n||""===c?"":"\n")+ZY(c,t),s=n}return o}(t,s),o));case UY:return'"'+function(e){for(var t,n="",r=0,i=0;i<e.length;r>=65536?i+=2:i++)r=RY(e,i),!(t=vY[r])&&QY(r)?(n+=e[i],r>=65536&&(n+=e[i+1])):n+=t||xY(r);return n}(t)+'"';default:throw new yW("impossible error: invalid scalar style")}}()}function FY(e,t){var n=DY(e)?String(t):"",r="\n"===e[e.length-1];return n+(r&&("\n"===e[e.length-2]||"\n"===e)?"+":r?"":"-")+"\n"}function LY(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function ZY(e,t){if(""===e||" "===e[0])return e;for(var n,r,i=/ [^ ]/g,o=0,s=0,a=0,l="";n=i.exec(e);)(a=n.index)-o>t&&(r=s>o?s:a,l+="\n"+e.slice(o,r),o=r+1),s=a;return l+="\n",e.length-o>t&&s>o?l+=e.slice(o,s)+"\n"+e.slice(s+1):l+=e.slice(o),l.slice(1)}function VY(e,t,n,r){var i,o,s,a="",l=e.tag;for(i=0,o=n.length;i<o;i+=1)s=n[i],e.replacer&&(s=e.replacer.call(n,String(i),s)),(WY(e,t+1,s,!0,!0,!1,!0)||void 0===s&&WY(e,t+1,null,!0,!0,!1,!0))&&(r&&""===a||(a+=TY(e,t)),e.dump&&GB===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=l,e.dump=a||"[]"}function zY(e,t,n){var r,i,o,s,a,l;for(o=0,s=(i=n?e.explicitTypes:e.implicitTypes).length;o<s;o+=1)if(((a=i[o]).instanceOf||a.predicate)&&(!a.instanceOf||"object"==typeof t&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(n?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){if(l=e.styleMap[a.tag]||a.defaultStyle,"[object Function]"===WB.call(a.represent))r=a.represent(t,l);else{if(!BB.call(a.represent,l))throw new yW("!<"+a.tag+'> tag resolver accepts not "'+l+'" style');r=a.represent[l](t,l)}e.dump=r}return!0}return!1}function WY(e,t,n,r,i,o,s){e.tag=null,e.dump=n,zY(e,n,!1)||zY(e,n,!0);var a,l=WB.call(e.dump),c=r;r&&(r=e.flowLevel<0||e.flowLevel>t);var u,d,p="[object Object]"===l||"[object Array]"===l;if(p&&(d=-1!==(u=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||d||2!==e.indent&&t>0)&&(i=!1),d&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(p&&d&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),"[object Object]"===l)r&&0!==Object.keys(e.dump).length?(!function(e,t,n,r){var i,o,s,a,l,c,u="",d=e.tag,p=Object.keys(n);if(!0===e.sortKeys)p.sort();else if("function"==typeof e.sortKeys)p.sort(e.sortKeys);else if(e.sortKeys)throw new yW("sortKeys must be a boolean or a function");for(i=0,o=p.length;i<o;i+=1)c="",r&&""===u||(c+=TY(e,t)),a=n[s=p[i]],e.replacer&&(a=e.replacer.call(n,s,a)),WY(e,t+1,s,!0,!0,!0)&&((l=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&GB===e.dump.charCodeAt(0)?c+="?":c+="? "),c+=e.dump,l&&(c+=TY(e,t)),WY(e,t+1,a,!0,l)&&(e.dump&&GB===e.dump.charCodeAt(0)?c+=":":c+=": ",u+=c+=e.dump));e.tag=d,e.dump=u||"{}"}(e,t,e.dump,i),d&&(e.dump="&ref_"+u+e.dump)):(!function(e,t,n){var r,i,o,s,a,l="",c=e.tag,u=Object.keys(n);for(r=0,i=u.length;r<i;r+=1)a="",""!==l&&(a+=", "),e.condenseFlow&&(a+='"'),s=n[o=u[r]],e.replacer&&(s=e.replacer.call(n,o,s)),WY(e,t,o,!1,!1)&&(e.dump.length>1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),WY(e,t,s,!1,!1)&&(l+=a+=e.dump));e.tag=c,e.dump="{"+l+"}"}(e,t,e.dump),d&&(e.dump="&ref_"+u+" "+e.dump));else if("[object Array]"===l)r&&0!==e.dump.length?(e.noArrayIndent&&!s&&t>0?VY(e,t-1,e.dump,i):VY(e,t,e.dump,i),d&&(e.dump="&ref_"+u+e.dump)):(!function(e,t,n){var r,i,o,s="",a=e.tag;for(r=0,i=n.length;r<i;r+=1)o=n[r],e.replacer&&(o=e.replacer.call(n,String(r),o)),(WY(e,t,o,!1,!1)||void 0===o&&WY(e,t,null,!1,!1))&&(""!==s&&(s+=","+(e.condenseFlow?"":" ")),s+=e.dump);e.tag=a,e.dump="["+s+"]"}(e,t,e.dump),d&&(e.dump="&ref_"+u+" "+e.dump));else{if("[object String]"!==l){if("[object Undefined]"===l)return!1;if(e.skipInvalid)return!1;throw new yW("unacceptable kind of an object to dump "+l)}"?"!==e.tag&&XY(e,e.dump,t,o,c)}null!==e.tag&&"?"!==e.tag&&(a=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),a="!"===e.tag[0]?"!"+a:"tag:yaml.org,2002:"===a.slice(0,18)?"!!"+a.slice(18):"!<"+a+">",e.dump=a+" "+e.dump)}return!0}function BY(e,t){var n,r,i=[],o=[];for(YY(e,i,o),n=0,r=o.length;n<r;n+=1)t.duplicates.push(i[o[n]]);t.usedDuplicates=new Array(r)}function YY(e,t,n){var r,i,o;if(null!==e&&"object"==typeof e)if(-1!==(i=t.indexOf(e)))-1===n.indexOf(i)&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,o=e.length;i<o;i+=1)YY(e[i],t,n);else for(i=0,o=(r=Object.keys(e)).length;i<o;i+=1)YY(e[r[i]],t,n)}var HY=function(e,t){var n=new _Y(t=t||{});n.noRefs||BY(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},"",r)),WY(n,0,r,!0,!0)?n.dump+"\n":""};function GY(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var KY={Type:kW,Schema:PW,FAILSAFE_SCHEMA:CW,JSON_SCHEMA:MW,CORE_SCHEMA:XW,DEFAULT_SCHEMA:tB,load:zB.load,loadAll:zB.loadAll,dump:{dump:HY}.dump,YAMLException:yW,types:{binary:WW,float:UW,map:QW,null:AW,pairs:KW,set:eB,timestamp:ZW,bool:RW,int:jW,merge:VW,omap:HW,seq:EW,str:TW},safeLoad:GY("safeLoad","load"),safeLoadAll:GY("safeLoadAll","loadAll"),safeDump:GY("safeDump","dump")};const JY=un(!1);function eH(){return JY.value=(()=>{var e,t;const n="undefined"!=typeof window?null==(e=window.localStorage)?void 0:e.getItem("isDark"):null;return"string"==typeof n?!!JSON.parse(n):!("undefined"==typeof window||!(null==(t=null==window?void 0:window.matchMedia("(prefers-color-scheme: dark)"))?void 0:t.matches))})(),Ir(JY,(e=>{"undefined"!=typeof document&&(document.body.classList.toggle("dark-mode",e),document.body.classList.toggle("light-mode",!e))}),{immediate:!0}),{isDark:JY,toggleDarkMode:()=>{var e;JY.value=!JY.value,"undefined"!=typeof window&&(null==(e=null==window?void 0:window.localStorage)||e.setItem("isDark",JSON.stringify(JY.value)))}}}const tH=un(void 0),nH=Bt({});function rH(e,t){nH[e]=t}const iH=Bt({});function oH(e){iH[e]=!iH[e]}function sH(e,t){iH[e]=t}const aH=un([]),lH=Is((()=>{var e,t,n,r,i,o,s,a,l;const{state:c}=ON(),u=aH.value.map((e=>({id:VF(e),title:e.value.toUpperCase(),type:"Page",show:!c.showApiClient}))),d=null==(t=null==(e=tH.value)?void 0:e.tags)?void 0:t[0],p=d&&(1!==(null==(h=null==(n=tH.value)?void 0:n.tags)?void 0:h.length)||"default"!==h[0].name||""!==h[0].description)&&(null==(r=d.operations)?void 0:r.length)>0?null==(o=null==(i=tH.value)?void 0:i.tags)?void 0:o.map((e=>{var t;return{id:Lz(e),title:e.name.toUpperCase(),type:"Folder",show:!0,children:null==(t=e.operations)?void 0:t.map((t=>{var n;return{id:Zz(t,e),title:t.name??t.path,type:"Page",httpVerb:t.httpVerb,deprecated:(null==(n=t.information)?void 0:n.deprecated)??!1,show:!0,select:()=>{c.showApiClient&&dW(t)}}}))}})):null==(s=null==d?void 0:d.operations)?void 0:s.map((e=>{var t;return{id:Zz(e,d),title:e.name??e.path,type:"Page",httpVerb:e.httpVerb,deprecated:(null==(t=e.information)?void 0:t.deprecated)??!1,show:!0,select:()=>{c.showApiClient&&dW(e)}}}));var h;const f=Gz(tH.value)?[{id:Fz(),title:"MODELS",type:"Folder",show:!c.showApiClient,children:Object.keys((null==(l=null==(a=tH.value)?void 0:a.components)?void 0:l.schemas)??{}).map((e=>({id:Fz(e),title:e,type:"Page",show:!c.showApiClient})))}]:[];return[...u,...p??[],...f]})),cH=Is((()=>{var e;return(null==(e=lH.value.reduce(((e,t)=>(e.push(t),t.children&&e.push(...t.children),e)),[]).find((e=>{return t=e.id,nH[t]??!1;var t})))?void 0:e.id)??null}));function uH(e){return(null==e?void 0:e.parsedSpec)&&(tH.value=e.parsedSpec,Ir(tH,(()=>{var e,t;const n=null==(t=null==(e=tH.value)?void 0:e.tags)?void 0:t[0];n&&sH(Lz(n),!0)}),{immediate:!0,deep:!0}),Ir((()=>{var e,t;return null==(t=null==(e=tH.value)?void 0:e.info)?void 0:t.description}),(async()=>{var e,t;const n=null==(t=null==(e=tH.value)?void 0:e.info)?void 0:t.description;return n?aH.value=await(async e=>{const t=await Uz(e),n=Xz(t);return t.filter((e=>e.depth===n))})(n):[]})),Ir(cH,(e=>{if(e){const t=`${window.location.origin}${window.location.pathname}#${e}`;window.history.replaceState({},"",t)}}))),{items:lH,activeItemId:cH,sidebarIdVisibility:nH,setItemIdVisibility:rH,collapsedSidebarItems:iH,toggleCollapsedSidebarItem:oH,setCollapsedSidebarItem:sH}}function dH(e){return{parameterMap:Is((()=>{var t;const n=(null==(t=e.operation.information)?void 0:t.parameters)??[],r={path:[],query:[],header:[]};return e.operation.pathParameters&&e.operation.pathParameters.forEach((e=>{"path"===e.in?r.path.push(e):"query"===e.in?r.query.push(e):"header"===e.in&&r.header.push(e)})),n&&n.forEach((e=>{"path"===e.in?r.path.push(e):"query"===e.in?r.query.push(e):"header"===e.in&&r.header.push(e)})),r}))}}function pH(e){return{responses:Is((()=>{if(!e.information)return[];const{responses:t}=e.information,n=[];return t&&Object.keys(t).forEach((e=>{n.push({name:e,description:t[e].description})})),n}))}}"undefined"!=typeof window&&(window.process=window.process||{platform:"browser",browser:!0});var hH,fH={},mH={},gH={},OH=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0},yH=OH,bH=function(){return yH()&&!!Symbol.toStringTag},vH="undefined"!=typeof Symbol&&Symbol,wH=OH,SH={foo:{}},xH=Object,kH=Array.prototype.slice,$H=Object.prototype.toString,_H=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==$H.call(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n,r=kH.call(arguments,1),i=Math.max(0,t.length-r.length),o=[],s=0;s<i;s++)o.push("$"+s);if(n=Function("binder","return function ("+o.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof n){var i=t.apply(this,r.concat(kH.call(arguments)));return Object(i)===i?i:this}return t.apply(e,r.concat(kH.call(arguments)))})),t.prototype){var a=function(){};a.prototype=t.prototype,n.prototype=new a,a.prototype=null}return n},PH=Function.prototype.bind||_H,TH=PH.call(Function.call,Object.prototype.hasOwnProperty),EH=SyntaxError,QH=Function,CH=TypeError,AH=function(e){try{return QH('"use strict"; return ('+e+").constructor;")()}catch(Sl){}},RH=Object.getOwnPropertyDescriptor;if(RH)try{RH({},"")}catch(Sl){RH=null}var DH=function(){throw new CH},NH=RH?function(){try{return DH}catch(e){try{return RH(arguments,"callee").get}catch(t){return DH}}}():DH,jH="function"==typeof vH&&"function"==typeof Symbol&&"symbol"==typeof vH("foo")&&"symbol"==typeof Symbol("bar")&&wH(),IH={__proto__:SH}.foo===SH.foo&&!({__proto__:null}instanceof xH),qH=Object.getPrototypeOf||(IH?function(e){return e.__proto__}:null),UH={},MH="undefined"!=typeof Uint8Array&&qH?qH(Uint8Array):hH,XH={"%AggregateError%":"undefined"==typeof AggregateError?hH:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?hH:ArrayBuffer,"%ArrayIteratorPrototype%":jH&&qH?qH([][Symbol.iterator]()):hH,"%AsyncFromSyncIteratorPrototype%":hH,"%AsyncFunction%":UH,"%AsyncGenerator%":UH,"%AsyncGeneratorFunction%":UH,"%AsyncIteratorPrototype%":UH,"%Atomics%":"undefined"==typeof Atomics?hH:Atomics,"%BigInt%":"undefined"==typeof BigInt?hH:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?hH:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?hH:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?hH:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?hH:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?hH:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?hH:FinalizationRegistry,"%Function%":QH,"%GeneratorFunction%":UH,"%Int8Array%":"undefined"==typeof Int8Array?hH:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?hH:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?hH:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":jH&&qH?qH(qH([][Symbol.iterator]())):hH,"%JSON%":"object"==typeof JSON?JSON:hH,"%Map%":"undefined"==typeof Map?hH:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&jH&&qH?qH((new Map)[Symbol.iterator]()):hH,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?hH:Promise,"%Proxy%":"undefined"==typeof Proxy?hH:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?hH:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?hH:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&jH&&qH?qH((new Set)[Symbol.iterator]()):hH,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?hH:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":jH&&qH?qH(""[Symbol.iterator]()):hH,"%Symbol%":jH?Symbol:hH,"%SyntaxError%":EH,"%ThrowTypeError%":NH,"%TypedArray%":MH,"%TypeError%":CH,"%Uint8Array%":"undefined"==typeof Uint8Array?hH:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?hH:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?hH:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?hH:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?hH:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?hH:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?hH:WeakSet};if(qH)try{null.error}catch(Sl){var FH=qH(qH(Sl));XH["%Error.prototype%"]=FH}var LH=function e(t){var n;if("%AsyncFunction%"===t)n=AH("async function () {}");else if("%GeneratorFunction%"===t)n=AH("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=AH("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&qH&&(n=qH(i.prototype))}return XH[t]=n,n},ZH={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},VH=PH,zH=TH,WH=VH.call(Function.call,Array.prototype.concat),BH=VH.call(Function.apply,Array.prototype.splice),YH=VH.call(Function.call,String.prototype.replace),HH=VH.call(Function.call,String.prototype.slice),GH=VH.call(Function.call,RegExp.prototype.exec),KH=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,JH=/\\(\\)?/g,eG=function(e,t){var n,r=e;if(zH(ZH,r)&&(r="%"+(n=ZH[r])[0]+"%"),zH(XH,r)){var i=XH[r];if(i===UH&&(i=LH(r)),void 0===i&&!t)throw new CH("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new EH("intrinsic "+e+" does not exist!")},tG=function(e,t){if("string"!=typeof e||0===e.length)throw new CH("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new CH('"allowMissing" argument must be a boolean');if(null===GH(/^%?[^%]*%?$/,e))throw new EH("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=HH(e,0,1),n=HH(e,-1);if("%"===t&&"%"!==n)throw new EH("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new EH("invalid intrinsic syntax, expected opening `%`");var r=[];return YH(e,KH,(function(e,t,n,i){r[r.length]=n?YH(i,JH,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",i=eG("%"+r+"%",t),o=i.name,s=i.value,a=!1,l=i.alias;l&&(r=l[0],BH(n,WH([0,1],l)));for(var c=1,u=!0;c<n.length;c+=1){var d=n[c],p=HH(d,0,1),h=HH(d,-1);if(('"'===p||"'"===p||"`"===p||'"'===h||"'"===h||"`"===h)&&p!==h)throw new EH("property names with quotes must have matching quotes");if("constructor"!==d&&u||(a=!0),zH(XH,o="%"+(r+="."+d)+"%"))s=XH[o];else if(null!=s){if(!(d in s)){if(!t)throw new CH("base intrinsic for "+e+" exists, but the property is not available.");return}if(RH&&c+1>=n.length){var f=RH(s,d);s=(u=!!f)&&"get"in f&&!("originalValue"in f.get)?f.get:s[d]}else u=zH(s,d),s=s[d];u&&!a&&(XH[o]=s)}}return s},nG={exports:{}};!function(e){var t=PH,n=tG,r=n("%Function.prototype.apply%"),i=n("%Function.prototype.call%"),o=n("%Reflect.apply%",!0)||t.call(i,r),s=n("%Object.getOwnPropertyDescriptor%",!0),a=n("%Object.defineProperty%",!0),l=n("%Math.max%");if(a)try{a({},"a",{value:1})}catch(Sl){a=null}e.exports=function(e){var n=o(t,i,arguments);s&&a&&(s(n,"length").configurable&&a(n,"length",{value:1+l(0,e.length-(arguments.length-1))}));return n};var c=function(){return o(t,r,arguments)};a?a(e.exports,"apply",{value:c}):e.exports.apply=c}(nG);var rG=nG.exports,iG=tG,oG=rG,sG=oG(iG("String.prototype.indexOf")),aG=function(e,t){var n=iG(e,!!t);return"function"==typeof n&&sG(e,".prototype.")>-1?oG(n):n},lG=bH(),cG=aG("Object.prototype.toString"),uG=function(e){return!(lG&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===cG(e)},dG=function(e){return!!uG(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==cG(e)&&"[object Function]"===cG(e.callee)},pG=function(){return uG(arguments)}();uG.isLegacyArguments=dG;var hG,fG,mG,gG=pG?uG:dG,OG=Object.prototype.toString,yG=Function.prototype.toString,bG=/^\s*(?:function)?\*/,vG=bH(),wG=Object.getPrototypeOf,SG=function(e){if("function"!=typeof e)return!1;if(bG.test(yG.call(e)))return!0;if(!vG)return"[object GeneratorFunction]"===OG.call(e);if(!wG)return!1;if(void 0===hG){var t=function(){if(!vG)return!1;try{return Function("return function*() {}")()}catch(Sl){}}();hG=!!t&&wG(t)}return wG(e)===hG},xG=Function.prototype.toString,kG="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof kG&&"function"==typeof Object.defineProperty)try{fG=Object.defineProperty({},"length",{get:function(){throw mG}}),mG={},kG((function(){throw 42}),null,fG)}catch(rxe){rxe!==mG&&(kG=null)}else kG=null;var $G=/^\s*class\b/,_G=function(e){try{var t=xG.call(e);return $G.test(t)}catch(Sl){return!1}},PG=function(e){try{return!_G(e)&&(xG.call(e),!0)}catch(Sl){return!1}},TG=Object.prototype.toString,EG="function"==typeof Symbol&&!!Symbol.toStringTag,QG=!(0 in[,]),CG=function(){return!1};if("object"==typeof document){var AG=document.all;TG.call(AG)===TG.call(document.all)&&(CG=function(e){if((QG||!e)&&(void 0===e||"object"==typeof e))try{var t=TG.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(Sl){}return!1})}var RG=kG?function(e){if(CG(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{kG(e,null,fG)}catch(Sl){if(Sl!==mG)return!1}return!_G(e)&&PG(e)}:function(e){if(CG(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(EG)return PG(e);if(_G(e))return!1;var t=TG.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&PG(e)},DG=RG,NG=Object.prototype.toString,jG=Object.prototype.hasOwnProperty,IG=function(e,t,n){if(!DG(t))throw new TypeError("iterator must be a function");var r;arguments.length>=3&&(r=n),"[object Array]"===NG.call(e)?function(e,t,n){for(var r=0,i=e.length;r<i;r++)jG.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,r):"string"==typeof e?function(e,t,n){for(var r=0,i=e.length;r<i;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)}(e,t,r):function(e,t,n){for(var r in e)jG.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,r)},qG=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],UG="undefined"==typeof globalThis?n:globalThis,MG=tG("%Object.getOwnPropertyDescriptor%",!0);if(MG)try{MG([],"length")}catch(Sl){MG=null}var XG=IG,FG=function(){for(var e=[],t=0;t<qG.length;t++)"function"==typeof UG[qG[t]]&&(e[e.length]=qG[t]);return e},LG=rG,ZG=aG,VG=MG,zG=ZG("Object.prototype.toString"),WG=bH(),BG="undefined"==typeof globalThis?n:globalThis,YG=FG(),HG=ZG("String.prototype.slice"),GG=Object.getPrototypeOf,KG=ZG("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},JG={__proto__:null};XG(YG,WG&&VG&&GG?function(e){var t=new BG[e];if(Symbol.toStringTag in t){var n=GG(t),r=VG(n,Symbol.toStringTag);if(!r){var i=GG(n);r=VG(i,Symbol.toStringTag)}JG["$"+e]=LG(r.get)}}:function(e){var t=new BG[e];JG["$"+e]=LG(t.slice)});var eK=function(e){if(!e||"object"!=typeof e)return!1;if(!WG){var t=HG(zG(e),8,-1);return KG(YG,t)>-1?t:"Object"===t&&function(e){var t=!1;return XG(JG,(function(n,r){if(!t)try{n(e),t=HG(r,1)}catch(Sl){}})),t}(e)}return VG?function(e){var t=!1;return XG(JG,(function(n,r){if(!t)try{"$"+n(e)===r&&(t=HG(r,1))}catch(Sl){}})),t}(e):null},tK=eK,nK=function(e){return!!tK(e)};!function(e){var t=gG,n=SG,r=eK,i=nK;function o(e){return e.call.bind(e)}var s="undefined"!=typeof BigInt,a="undefined"!=typeof Symbol,l=o(Object.prototype.toString),c=o(Number.prototype.valueOf),u=o(String.prototype.valueOf),d=o(Boolean.prototype.valueOf);if(s)var p=o(BigInt.prototype.valueOf);if(a)var h=o(Symbol.prototype.valueOf);function f(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(Sl){return!1}}function m(e){return"[object Map]"===l(e)}function g(e){return"[object Set]"===l(e)}function O(e){return"[object WeakMap]"===l(e)}function y(e){return"[object WeakSet]"===l(e)}function b(e){return"[object ArrayBuffer]"===l(e)}function v(e){return"undefined"!=typeof ArrayBuffer&&(b.working?b(e):e instanceof ArrayBuffer)}function w(e){return"[object DataView]"===l(e)}function S(e){return"undefined"!=typeof DataView&&(w.working?w(e):e instanceof DataView)}e.isArgumentsObject=t,e.isGeneratorFunction=n,e.isTypedArray=i,e.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},e.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):i(e)||S(e)},e.isUint8Array=function(e){return"Uint8Array"===r(e)},e.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===r(e)},e.isUint16Array=function(e){return"Uint16Array"===r(e)},e.isUint32Array=function(e){return"Uint32Array"===r(e)},e.isInt8Array=function(e){return"Int8Array"===r(e)},e.isInt16Array=function(e){return"Int16Array"===r(e)},e.isInt32Array=function(e){return"Int32Array"===r(e)},e.isFloat32Array=function(e){return"Float32Array"===r(e)},e.isFloat64Array=function(e){return"Float64Array"===r(e)},e.isBigInt64Array=function(e){return"BigInt64Array"===r(e)},e.isBigUint64Array=function(e){return"BigUint64Array"===r(e)},m.working="undefined"!=typeof Map&&m(new Map),e.isMap=function(e){return"undefined"!=typeof Map&&(m.working?m(e):e instanceof Map)},g.working="undefined"!=typeof Set&&g(new Set),e.isSet=function(e){return"undefined"!=typeof Set&&(g.working?g(e):e instanceof Set)},O.working="undefined"!=typeof WeakMap&&O(new WeakMap),e.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(O.working?O(e):e instanceof WeakMap)},y.working="undefined"!=typeof WeakSet&&y(new WeakSet),e.isWeakSet=function(e){return y(e)},b.working="undefined"!=typeof ArrayBuffer&&b(new ArrayBuffer),e.isArrayBuffer=v,w.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&w(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=S;var x="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function k(e){return"[object SharedArrayBuffer]"===l(e)}function $(e){return void 0!==x&&(void 0===k.working&&(k.working=k(new x)),k.working?k(e):e instanceof x)}function _(e){return f(e,c)}function P(e){return f(e,u)}function T(e){return f(e,d)}function E(e){return s&&f(e,p)}function Q(e){return a&&f(e,h)}e.isSharedArrayBuffer=$,e.isAsyncFunction=function(e){return"[object AsyncFunction]"===l(e)},e.isMapIterator=function(e){return"[object Map Iterator]"===l(e)},e.isSetIterator=function(e){return"[object Set Iterator]"===l(e)},e.isGeneratorObject=function(e){return"[object Generator]"===l(e)},e.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===l(e)},e.isNumberObject=_,e.isStringObject=P,e.isBooleanObject=T,e.isBigIntObject=E,e.isSymbolObject=Q,e.isBoxedPrimitive=function(e){return _(e)||P(e)||T(e)||E(e)||Q(e)},e.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(v(e)||$(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})}))}(gH);var rK=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8},iK={exports:{}};"function"==typeof Object.create?iK.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:iK.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}};var oK=iK.exports;!function(e){var t=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},n=/%[sdj%]/g;e.format=function(e){if(!O(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(a(arguments[r]));return t.join(" ")}r=1;for(var i=arguments,o=i.length,s=String(e).replace(n,(function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(rxe){return"[Circular]"}default:return e}})),l=i[r];r<o;l=i[++r])m(l)||!v(l)?s+=" "+l:s+=" "+a(l);return s},e.deprecate=function(t,n){if(void 0!==o.process&&!0===o.process.noDeprecation)return t;if(void 0===o.process)return function(){return e.deprecate(t,n).apply(this,arguments)};var r=!1;return function(){if(!r){if(o.process.throwDeprecation)throw new Error(n);o.process.traceDeprecation?console.trace(n):console.error(n),r=!0}return t.apply(this,arguments)}};var r={},i=/^$/;if(o.process.env.NODE_DEBUG){var s=o.process.env.NODE_DEBUG;s=s.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),i=new RegExp("^"+s+"$","i")}function a(t,n){var r={seen:[],stylize:c};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),f(n)?r.showHidden=n:n&&e._extend(r,n),y(r.showHidden)&&(r.showHidden=!1),y(r.depth)&&(r.depth=2),y(r.colors)&&(r.colors=!1),y(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),u(r,t,r.depth)}function l(e,t){var n=a.styles[t];return n?"["+a.colors[n][0]+"m"+e+"["+a.colors[n][1]+"m":e}function c(e,t){return e}function u(t,n,r){if(t.customInspect&&n&&x(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,t);return O(i)||(i=u(t,i,r)),i}var o=function(e,t){if(y(t))return e.stylize("undefined","undefined");if(O(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(g(t))return e.stylize(""+t,"number");if(f(t))return e.stylize(""+t,"boolean");if(m(t))return e.stylize("null","null")}(t,n);if(o)return o;var s=Object.keys(n),a=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(s);if(t.showHidden&&(s=Object.getOwnPropertyNames(n)),S(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return d(n);if(0===s.length){if(x(n)){var l=n.name?": "+n.name:"";return t.stylize("[Function"+l+"]","special")}if(b(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(w(n))return t.stylize(Date.prototype.toString.call(n),"date");if(S(n))return d(n)}var c,v="",k=!1,$=["{","}"];(h(n)&&(k=!0,$=["[","]"]),x(n))&&(v=" [Function"+(n.name?": "+n.name:"")+"]");return b(n)&&(v=" "+RegExp.prototype.toString.call(n)),w(n)&&(v=" "+Date.prototype.toUTCString.call(n)),S(n)&&(v=" "+d(n)),0!==s.length||k&&0!=n.length?r<0?b(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),c=k?function(e,t,n,r,i){for(var o=[],s=0,a=t.length;s<a;++s)P(t,String(s))?o.push(p(e,t,n,r,String(s),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(p(e,t,n,r,i,!0))})),o}(t,n,r,a,s):s.map((function(e){return p(t,n,r,a,e,k)})),t.seen.pop(),function(e,t,n){var r=e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(r>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(c,v,$)):$[0]+v+$[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,i,o){var s,a,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(a=e.stylize("[Setter]","special")),P(r,i)||(s="["+i+"]"),a||(e.seen.indexOf(l.value)<0?(a=m(n)?u(e,l.value,null):u(e,l.value,n-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),y(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function h(e){return Array.isArray(e)}function f(e){return"boolean"==typeof e}function m(e){return null===e}function g(e){return"number"==typeof e}function O(e){return"string"==typeof e}function y(e){return void 0===e}function b(e){return v(e)&&"[object RegExp]"===k(e)}function v(e){return"object"==typeof e&&null!==e}function w(e){return v(e)&&"[object Date]"===k(e)}function S(e){return v(e)&&("[object Error]"===k(e)||e instanceof Error)}function x(e){return"function"==typeof e}function k(e){return Object.prototype.toString.call(e)}function $(e){return e<10?"0"+e.toString(10):e.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!r[t])if(i.test(t)){var n=o.process.pid;r[t]=function(){var r=e.format.apply(e,arguments);console.error("%s %d: %s",t,n,r)}}else r[t]=function(){};return r[t]},e.inspect=a,a.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]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=gH,e.isArray=h,e.isBoolean=f,e.isNull=m,e.isNullOrUndefined=function(e){return null==e},e.isNumber=g,e.isString=O,e.isSymbol=function(e){return"symbol"==typeof e},e.isUndefined=y,e.isRegExp=b,e.types.isRegExp=b,e.isObject=v,e.isDate=w,e.types.isDate=w,e.isError=S,e.types.isNativeError=S,e.isFunction=x,e.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},e.isBuffer=rK;var _=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.log=function(){var t,n;console.log("%s - %s",(n=[$((t=new Date).getHours()),$(t.getMinutes()),$(t.getSeconds())].join(":"),[t.getDate(),_[t.getMonth()],n].join(" ")),e.format.apply(e,arguments))},e.inherits=oK,e._extend=function(e,t){if(!t||!v(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var T="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function E(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}e.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(T&&e[T]){var n;if("function"!=typeof(n=e[T]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(n,T,{value:n,enumerable:!1,writable:!1,configurable:!0}),n}function n(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,i)}catch(s){n(s)}return r}return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),T&&Object.defineProperty(n,T,{value:n,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(n,t(e))},e.promisify.custom=T,e.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function n(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var r=t.pop();if("function"!=typeof r)throw new TypeError("The last argument must be of type Function");var i=this,s=function(){return r.apply(i,arguments)};e.apply(this,t).then((function(e){o.process.nextTick(s.bind(null,null,e))}),(function(e){o.process.nextTick(E.bind(null,e,s))}))}return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),Object.defineProperties(n,t(e)),n}}(mH);var sK,aK,lK={exports:{}},cK={exports:{}};sK=cK,aK=cK.exports,function(e){var t=aK&&!aK.nodeType&&aK,r=sK&&!sK.nodeType&&sK,i="object"==typeof n&&n;i.global!==i&&i.window!==i&&i.self!==i||(e=i);var o,s,a=2147483647,l=36,c=1,u=26,d=38,p=700,h=72,f=128,m="-",g=/^xn--/,O=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,b={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},v=l-c,w=Math.floor,S=String.fromCharCode;function x(e){throw new RangeError(b[e])}function k(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function $(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+k((e=e.replace(y,".")).split("."),t).join(".")}function _(e){for(var t,n,r=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function P(e){return k(e,(function(e){var t="";return e>65535&&(t+=S((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=S(e)})).join("")}function T(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function E(e,t,n){var r=0;for(e=n?w(e/p):e>>1,e+=w(e/t);e>v*u>>1;r+=l)e=w(e/v);return w(r+(v+1)*e/(e+d))}function Q(e){var t,n,r,i,o,s,d,p,g,O,y,b=[],v=e.length,S=0,k=f,$=h;for((n=e.lastIndexOf(m))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&x("not-basic"),b.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<v;){for(o=S,s=1,d=l;i>=v&&x("invalid-input"),((p=(y=e.charCodeAt(i++))-48<10?y-22:y-65<26?y-65:y-97<26?y-97:l)>=l||p>w((a-S)/s))&&x("overflow"),S+=p*s,!(p<(g=d<=$?c:d>=$+u?u:d-$));d+=l)s>w(a/(O=l-g))&&x("overflow"),s*=O;$=E(S-o,t=b.length+1,0==o),w(S/t)>a-k&&x("overflow"),k+=w(S/t),S%=t,b.splice(S++,0,k)}return P(b)}function C(e){var t,n,r,i,o,s,d,p,g,O,y,b,v,k,$,P=[];for(b=(e=_(e)).length,t=f,n=0,o=h,s=0;s<b;++s)(y=e[s])<128&&P.push(S(y));for(r=i=P.length,i&&P.push(m);r<b;){for(d=a,s=0;s<b;++s)(y=e[s])>=t&&y<d&&(d=y);for(d-t>w((a-n)/(v=r+1))&&x("overflow"),n+=(d-t)*v,t=d,s=0;s<b;++s)if((y=e[s])<t&&++n>a&&x("overflow"),y==t){for(p=n,g=l;!(p<(O=g<=o?c:g>=o+u?u:g-o));g+=l)$=p-O,k=l-O,P.push(S(T(O+$%k,0))),p=w($/k);P.push(S(T(p,0))),o=E(n,v,r==i),n=0,++r}++n,++t}return P.join("")}if(o={version:"1.4.1",ucs2:{decode:_,encode:P},decode:Q,encode:C,toASCII:function(e){return $(e,(function(e){return O.test(e)?"xn--"+C(e):e}))},toUnicode:function(e){return $(e,(function(e){return g.test(e)?Q(e.slice(4).toLowerCase()):e}))}},t&&r)if(sK.exports==t)r.exports=o;else for(s in o)o.hasOwnProperty(s)&&(t[s]=o[s]);else e.punycode=o}(n);const uK=r(cK.exports);function dK(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var pK=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},hK=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},fK=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function mK(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var gK,OK,yK=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},bK=OK=function(e,t,n,r){t=t||"&",n=n||"=";var i={};if("string"!=typeof e||0===e.length)return i;var o=/\+/g;e=e.split(t);var s=1e3;r&&"number"==typeof r.maxKeys&&(s=r.maxKeys);var a=e.length;s>0&&a>s&&(a=s);for(var l=0;l<a;++l){var c,u,d,p,h=e[l].replace(o,"%20"),f=h.indexOf(n);f>=0?(c=h.substr(0,f),u=h.substr(f+1)):(c=h,u=""),d=decodeURIComponent(c),p=decodeURIComponent(u),dK(i,d)?pK(i[d])?i[d].push(p):i[d]=[i[d],p]:i[d]=p}return i},vK=gK=function(e,t,n,r){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?mK(yK(e),(function(r){var i=encodeURIComponent(hK(r))+n;return fK(e[r])?mK(e[r],(function(e){return i+encodeURIComponent(hK(e))})).join(t):i+encodeURIComponent(hK(e[r]))})).join(t):r?encodeURIComponent(hK(r))+n+encodeURIComponent(hK(e)):""};var wK={decode:bK,encode:vK,parse:OK,stringify:gK,escape:function(e){return encodeURIComponent(e)},unescape:function(e){return decodeURIComponent(e)}},SK=uK,xK={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}},kK=LK,$K=function(e,t){return LK(e,!1,!0).resolve(t)},_K=function(e,t){return e?LK(e,!1,!0).resolveObject(t):t},PK=function(e){xK.isString(e)&&(e=LK(e));return e instanceof EK?e.format():EK.prototype.format.call(e)},TK=EK;function EK(){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}var QK=/^([a-z0-9.+-]+:)/i,CK=/:[0-9]*$/,AK=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,RK=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),DK=["'"].concat(RK),NK=["%","/","?",";","#"].concat(DK),jK=["/","?","#"],IK=/^[+a-z0-9A-Z_-]{0,63}$/,qK=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,UK={javascript:!0,"javascript:":!0},MK={javascript:!0,"javascript:":!0},XK={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},FK=wK;function LK(e,t,n){if(e&&xK.isObject(e)&&e instanceof EK)return e;var r=new EK;return r.parse(e,t,n),r}EK.prototype.parse=function(e,t,n){if(!xK.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),i=-1!==r&&r<e.indexOf("#")?"?":"#",o=e.split(i);o[0]=o[0].replace(/\\/g,"/");var s=e=o.join(i);if(s=s.trim(),!n&&1===e.split("#").length){var a=AK.exec(s);if(a)return this.path=s,this.href=s,this.pathname=a[1],a[2]?(this.search=a[2],this.query=t?FK.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var l=QK.exec(s);if(l){var c=(l=l[0]).toLowerCase();this.protocol=c,s=s.substr(l.length)}if(n||l||s.match(/^\/\/[^@\/]+@[^@\/]+/)){var u="//"===s.substr(0,2);!u||l&&MK[l]||(s=s.substr(2),this.slashes=!0)}if(!MK[l]&&(u||l&&!XK[l])){for(var d,p,h=-1,f=0;f<jK.length;f++){-1!==(m=s.indexOf(jK[f]))&&(-1===h||m<h)&&(h=m)}-1!==(p=-1===h?s.lastIndexOf("@"):s.lastIndexOf("@",h))&&(d=s.slice(0,p),s=s.slice(p+1),this.auth=decodeURIComponent(d)),h=-1;for(f=0;f<NK.length;f++){var m;-1!==(m=s.indexOf(NK[f]))&&(-1===h||m<h)&&(h=m)}-1===h&&(h=s.length),this.host=s.slice(0,h),s=s.slice(h),this.parseHost(),this.hostname=this.hostname||"";var g="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!g)for(var O=this.hostname.split(/\./),y=(f=0,O.length);f<y;f++){var b=O[f];if(b&&!b.match(IK)){for(var v="",w=0,S=b.length;w<S;w++)b.charCodeAt(w)>127?v+="x":v+=b[w];if(!v.match(IK)){var x=O.slice(0,f),k=O.slice(f+1),$=b.match(qK);$&&(x.push($[1]),k.unshift($[2])),k.length&&(s="/"+k.join(".")+s),this.hostname=x.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),g||(this.hostname=SK.toASCII(this.hostname));var _=this.port?":"+this.port:"",P=this.hostname||"";this.host=P+_,this.href+=this.host,g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==s[0]&&(s="/"+s))}if(!UK[c])for(f=0,y=DK.length;f<y;f++){var T=DK[f];if(-1!==s.indexOf(T)){var E=encodeURIComponent(T);E===T&&(E=escape(T)),s=s.split(T).join(E)}}var Q=s.indexOf("#");-1!==Q&&(this.hash=s.substr(Q),s=s.slice(0,Q));var C=s.indexOf("?");if(-1!==C?(this.search=s.substr(C),this.query=s.substr(C+1),t&&(this.query=FK.parse(this.query)),s=s.slice(0,C)):t&&(this.search="",this.query={}),s&&(this.pathname=s),XK[c]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){_=this.pathname||"";var A=this.search||"";this.path=_+A}return this.href=this.format(),this},EK.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,o="";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&&xK.isObject(this.query)&&Object.keys(this.query).length&&(o=FK.stringify(this.query));var s=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||XK[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),t+i+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+r},EK.prototype.resolve=function(e){return this.resolveObject(LK(e,!1,!0)).format()},EK.prototype.resolveObject=function(e){if(xK.isString(e)){var t=new EK;t.parse(e,!1,!0),e=t}for(var n=new EK,r=Object.keys(this),i=0;i<r.length;i++){var o=r[i];n[o]=this[o]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),a=0;a<s.length;a++){var l=s[a];"protocol"!==l&&(n[l]=e[l])}return XK[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!XK[e.protocol]){for(var c=Object.keys(e),u=0;u<c.length;u++){var d=c[u];n[d]=e[d]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||MK[e.protocol])n.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),n.pathname=p.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var h=n.pathname||"",f=n.search||"";n.path=h+f}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var m=n.pathname&&"/"===n.pathname.charAt(0),g=e.host||e.pathname&&"/"===e.pathname.charAt(0),O=g||m||n.host&&e.pathname,y=O,b=n.pathname&&n.pathname.split("/")||[],v=(p=e.pathname&&e.pathname.split("/")||[],n.protocol&&!XK[n.protocol]);if(v&&(n.hostname="",n.port=null,n.host&&(""===b[0]?b[0]=n.host:b.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),O=O&&(""===p[0]||""===b[0])),g)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,b=p;else if(p.length)b||(b=[]),b.pop(),b=b.concat(p),n.search=e.search,n.query=e.query;else if(!xK.isNullOrUndefined(e.search)){if(v)n.hostname=n.host=b.shift(),($=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=$.shift(),n.host=n.hostname=$.shift());return n.search=e.search,n.query=e.query,xK.isNull(n.pathname)&&xK.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!b.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var w=b.slice(-1)[0],S=(n.host||e.host||b.length>1)&&("."===w||".."===w)||""===w,x=0,k=b.length;k>=0;k--)"."===(w=b[k])?b.splice(k,1):".."===w?(b.splice(k,1),x++):x&&(b.splice(k,1),x--);if(!O&&!y)for(;x--;x)b.unshift("..");!O||""===b[0]||b[0]&&"/"===b[0].charAt(0)||b.unshift(""),S&&"/"!==b.join("/").substr(-1)&&b.push("");var $,_=""===b[0]||b[0]&&"/"===b[0].charAt(0);v&&(n.hostname=n.host=_?"":b.length?b.shift():"",($=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=$.shift(),n.host=n.hostname=$.shift()));return(O=O||n.host&&b.length)&&!_&&b.unshift(""),b.length?n.pathname=b.join("/"):(n.pathname=null,n.path=null),xK.isNull(n.pathname)&&xK.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},EK.prototype.parseHost=function(){var e=this.host,t=CK.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var ZK=function(e){function t(){var t=this||self;return delete e.prototype.__magic__,t}return"object"==typeof globalThis?globalThis:this?t():(e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:t}),__magic__)}(Object),VK=PK,zK=kK,WK=$K,BK=TK,YK=ZK.URL,HK=ZK.URLSearchParams,GK=/%/g,KK=/\\/g,JK=/\n/g,eJ=/\r/g,tJ=/\t/g;var nJ=function(e){if(void 0===e)throw new TypeError('The "domain" argument must be specified');return new YK("http://"+e).hostname},rJ=function(e){if(void 0===e)throw new TypeError('The "domain" argument must be specified');return new YK("http://"+e).hostname},iJ=function(e){var t=new YK("file://"),n=function(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var r=n>=0?arguments[n]:"/";if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");r&&(e=r+"/"+e,t="/"===r.charAt(0))}return e=function(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}(function(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}(e.split("/"),(function(e){return!!e})),!t).join("/"),(t?"/":"")+e||"."}(e);return 47===e.charCodeAt(e.length-1)&&"/"!==n[n.length-1]&&(n+="/"),t.pathname=function(e){return e.includes("%")&&(e=e.replace(GK,"%25")),e.includes("\\")&&(e=e.replace(KK,"%5C")),e.includes("\n")&&(e=e.replace(JK,"%0A")),e.includes("\r")&&(e=e.replace(eJ,"%0D")),e.includes("\t")&&(e=e.replace(tJ,"%09")),e}(n),t},oJ=function(e){if(!function(e){var t=null!=e?e:null;return Boolean(null!==t&&(null==t?void 0:t.href)&&(null==t?void 0:t.origin))}(e)&&"string"!=typeof e)throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof e+" ("+e+")");var t=new YK(e);if("file:"!==t.protocol)throw new TypeError("The URL must be of scheme file");return function(e){if(""!==e.hostname)throw new TypeError('File URL host must be "localhost" or empty on browser');for(var t=e.pathname,n=0;n<t.length;n++)if("%"===t[n]){var r=32|t.codePointAt(n+2);if("2"===t[n+1]&&102===r)throw new TypeError("File URL path must not include encoded / characters")}return decodeURIComponent(t)}(t)},sJ=function(e,t){var n,r,i;if(void 0===t&&(t={}),!(e instanceof YK))return VK(e);if("object"!=typeof t||null===t)throw new TypeError('The "options" argument must be of type object.');var o=null==(n=t.auth)||n,s=null==(r=t.fragment)||r,a=null==(i=t.search)||i,l=new YK(e.toString());return o||(l.username="",l.password=""),s||(l.hash=""),a||(l.search=""),l.toString()},aJ={format:sJ,parse:zK,resolve:WK,resolveObject:_K,Url:BK,URL:YK,URLSearchParams:HK,domainToASCII:nJ,domainToUnicode:rJ,pathToFileURL:iJ,fileURLToPath:oJ};const lJ=i(Object.freeze(Object.defineProperty({__proto__:null,URL:YK,URLSearchParams:HK,Url:BK,default:aJ,domainToASCII:nJ,domainToUnicode:rJ,fileURLToPath:oJ,format:sJ,parse:zK,pathToFileURL:iJ,resolve:WK,resolveObject:_K},Symbol.toStringTag,{value:"Module"})));!function(e,t){let n=/^win/.test(o.process.platform),r=/\//g,i=/^(\w{2,}):\/\//i,s=e.exports,a=/~1/g,l=/~0/g,c=[/\?/g,"%3F",/\#/g,"%23"],u=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];t.parse=lJ.parse,t.resolve=lJ.resolve,t.cwd=function(){if(o.process.browser)return location.href;let e=o.process.cwd(),t=e.slice(-1);return"/"===t||"\\"===t?e:e+"/"},t.getProtocol=function(e){let t=i.exec(e);if(t)return t[1].toLowerCase()},t.getExtension=function(e){let t=e.lastIndexOf(".");return t>=0?e.substr(t).toLowerCase():""},t.getHash=function(e){let t=e.indexOf("#");return t>=0?e.substr(t):"#"},t.stripHash=function(e){let t=e.indexOf("#");return t>=0&&(e=e.substr(0,t)),e},t.isHttp=function(e){let t=s.getProtocol(e);return"http"===t||"https"===t||void 0===t&&o.process.browser},t.isFileSystemPath=function(e){if(o.process.browser)return!1;let t=s.getProtocol(e);return void 0===t||"file"===t},t.fromFileSystemPath=function(e){n&&(e=e.replace(/\\/g,"/")),e=encodeURI(e);for(let t=0;t<c.length;t+=2)e=e.replace(c[t],c[t+1]);return e},t.toFileSystemPath=function(e,t){e=decodeURI(e);for(let n=0;n<u.length;n+=2)e=e.replace(u[n],u[n+1]);let i="file://"===e.substr(0,7).toLowerCase();return i&&(e="/"===e[7]?e.substr(8):e.substr(7),n&&"/"===e[1]&&(e=e[0]+":"+e.substr(1)),t?e="file:///"+e:(i=!1,e=n?e:"/"+e)),n&&!i&&":\\"===(e=e.replace(r,"\\")).substr(1,2)&&(e=e[0].toUpperCase()+e.substr(1)),e},t.safePointerToPath=function(e){return e.length<=1||"#"!==e[0]||"/"!==e[1]?[]:e.slice(2).split("/").map((e=>decodeURIComponent(e).replace(a,"/").replace(l,"~")))}}(lK,lK.exports);var cJ=lK.exports;const uJ=mH,dJ=cJ;fH.format=uJ.format,fH.inherits=uJ.inherits,fH.swaggerParamRegExp=/\{([^/}]+)}/g;const pJ=["get","post","put","delete","patch","options","head","trace"];function hJ(e,t){if(e.url&&e.url.startsWith("/")){const n=dJ.parse(t),r=n.protocol+"//"+n.hostname+e.url;return e.url=r,e}}fH.fixOasRelativeServers=function(e,t){e.openapi&&t&&(t.startsWith("http:")||t.startsWith("https:"))&&(e.servers&&e.servers.map((e=>hJ(e,t))),["paths","webhooks"].forEach((n=>{Object.keys(e[n]||[]).forEach((r=>{const i=e[n][r];Object.keys(i).forEach((e=>{"servers"===e?i[e].map((e=>hJ(e,t))):pJ.includes(e)&&i[e].servers&&i[e].servers.map((e=>hJ(e,t)))}))}))})))};const fJ=!1,mJ=/\r?\n/,gJ=/\bono[ @]/;function OJ(e,t){let n=bJ(e.stack),r=t?t.stack:void 0;return n&&r?n+"\n\n"+r:n||r}function yJ(e,t,n){n?Object.defineProperty(t,"stack",{get:()=>OJ({stack:e.get.apply(t)},n),enumerable:!1,configurable:!0}):function(e,t){Object.defineProperty(e,"stack",{get:()=>bJ(t.get.apply(e)),enumerable:!1,configurable:!0})}(t,e)}function bJ(e){if(e){let t,n=e.split(mJ);for(let e=0;e<n.length;e++){let r=n[e];if(gJ.test(r))void 0===t&&(t=e);else if(void 0!==t){n.splice(t,e-t);break}}if(n.length>0)return n.join("\n")}return e}const vJ=["function","symbol","undefined"],wJ=["constructor","prototype","__proto__"],SJ=Object.getPrototypeOf({});function xJ(){let e={},t=this;for(let n of kJ(t))if("string"==typeof n){let r=t[n],i=typeof r;vJ.includes(i)||(e[n]=r)}return e}function kJ(e,t=[]){let n=[];for(;e&&e!==SJ;)n=n.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let r=new Set(n);for(let i of t.concat(wJ))r.delete(i);return r}const $J=["name","message","stack"];function _J(e,t,n){let r=e;return function(e,t){let n=Object.getOwnPropertyDescriptor(e,"stack");!function(e){return Boolean(e&&e.configurable&&"function"==typeof e.get)}(n)?function(e){return Boolean(!e||e.writable||"function"==typeof e.set)}(n)&&(e.stack=OJ(e,t)):yJ(n,e,t)}(r,t),t&&"object"==typeof t&&function(e,t){let n=kJ(t,$J),r=e,i=t;for(let o of n)if(void 0===r[o])try{r[o]=i[o]}catch(Sl){}}(r,t),r.toJSON=xJ,n&&"object"==typeof n&&Object.assign(r,n),r}const PJ=TJ;function TJ(e,t){function n(...n){let{originalError:r,props:i,message:o}=function(e,t){let n,r,i,o="";return"string"==typeof e[0]?i=e:"string"==typeof e[1]?(e[0]instanceof Error?n=e[0]:r=e[0],i=e.slice(1)):(n=e[0],r=e[1],i=e.slice(2)),i.length>0&&(o=t.format?t.format.apply(void 0,i):i.join(" ")),t.concatMessages&&n&&n.message&&(o+=(o?" \n":"")+n.message),{originalError:n,props:r,message:o}}(n,t);return _J(new e(o),r,i)}return t=function(e){return{concatMessages:void 0===(e=e||{}).concatMessages||Boolean(e.concatMessages),format:void 0===e.format?fJ:"function"==typeof e.format&&e.format}}(t),n[Symbol.species]=e,n}TJ.toJSON=function(e){return xJ.call(e)},TJ.extend=function(e,t,n){return n||t instanceof Error?_J(e,t,n):t?_J(e,void 0,t):_J(e)};const EJ=CJ;CJ.error=new PJ(Error),CJ.eval=new PJ(EvalError),CJ.range=new PJ(RangeError),CJ.reference=new PJ(ReferenceError),CJ.syntax=new PJ(SyntaxError),CJ.type=new PJ(TypeError),CJ.uri=new PJ(URIError);const QJ=CJ;function CJ(...e){let t=e[0];if("object"==typeof t&&"string"==typeof t.name)for(let n of Object.values(QJ))if("function"==typeof n&&"ono"===n.name){let r=n[Symbol.species];if(r&&r!==Error&&(t instanceof r||t.name===r.name))return n.apply(void 0,e)}return CJ.error.apply(void 0,e)}"object"==typeof module&&"object"==typeof module.exports&&(module.exports.default=module.exports.default||{},module.exports=Object.assign(module.exports.default,module.exports));const AJ=i(Object.freeze(Object.defineProperty({__proto__:null,Ono:PJ,default:EJ,ono:EJ},Symbol.toStringTag,{value:"Module"})));var RJ={exports:{}},DJ={},NJ={},jJ={},IJ={},qJ={},UJ={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class n extends t{constructor(t){if(super(),!e.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=n;class r extends t{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof n&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function i(e,...t){const n=[e[0]];let i=0;for(;i<t.length;)a(n,t[i]),n.push(e[++i]);return new r(n)}e._Code=r,e.nil=new r(""),e._=i;const o=new r("+");function s(e,...t){const n=[c(e[0])];let i=0;for(;i<t.length;)n.push(o),a(n,t[i]),n.push(o,c(e[++i]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===o){const n=l(e[t-1],e[t+1]);if(void 0!==n){e.splice(t-1,3,n);continue}e[t++]="+"}t++}}(n),new r(n)}function a(e,t){var i;t instanceof r?e.push(...t._items):t instanceof n?e.push(t):e.push("number"==typeof(i=t)||"boolean"==typeof i||null===i?i:c(Array.isArray(i)?i.join(","):i))}function l(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof n||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof n?void 0:`"${e}${t.slice(1)}`}function c(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.str=s,e.addCodeArg=a,e.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:s`${e}${t}`},e.stringify=function(e){return new r(c(e))},e.safeStringify=c,e.getProperty=function(t){return"string"==typeof t&&e.IDENTIFIER.test(t)?new r(`.${t}`):i`[${t}]`},e.getEsmExportName=function(t){if("string"==typeof t&&e.IDENTIFIER.test(t))return new r(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)},e.regexpCode=function(e){return new r(e.toString())}}(UJ);var MJ={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=UJ;class n extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var r,i;(i=r=e.UsedValueState||(e.UsedValueState={}))[i.Started=0]="Started",i[i.Completed=1]="Completed",e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class o{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof t.Name?e:this.name(e)}name(e){return new t.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,n;if((null===(n=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===n?void 0:n.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}e.Scope=o;class s extends t.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:n,itemIndex:r}){this.value=e,this.scopePath=t._`.${new t.Name(n)}[${r}]`}}e.ValueScopeName=s;const a=t._`\n`;e.ValueScope=class extends o{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?a:t.nil}}get(){return this._scope}name(e){return new s(e,this._newName(e))}value(e,t){var n;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const r=this.toName(e),{prefix:i}=r,o=null!==(n=t.key)&&void 0!==n?n:t.ref;let s=this._values[i];if(s){const e=s.get(o);if(e)return e}else s=this._values[i]=new Map;s.set(o,r);const a=this._scope[i]||(this._scope[i]=[]),l=a.length;return a[l]=t.ref,r.setValue(t,{property:i,itemIndex:l}),r}getValue(e,t){const n=this._values[e];if(n)return n.get(t)}scopeRefs(e,n=this._values){return this._reduceValues(n,(n=>{if(void 0===n.scopePath)throw new Error(`CodeGen: name "${n}" has no value`);return t._`${e}${n.scopePath}`}))}scopeCode(e=this._values,t,n){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,n)}_reduceValues(i,o,s={},a){let l=t.nil;for(const c in i){const u=i[c];if(!u)continue;const d=s[c]=s[c]||new Map;u.forEach((i=>{if(d.has(i))return;d.set(i,r.Started);let s=o(i);if(s){const n=this.opts.es5?e.varKinds.var:e.varKinds.const;l=t._`${l}${n} ${i} = ${s};${this.opts._n}`}else{if(!(s=null==a?void 0:a(i)))throw new n(i);l=t._`${l}${s}${this.opts._n}`}d.set(i,r.Completed)}))}return l}}}(MJ),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=UJ,n=MJ;var r=UJ;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var i=MJ;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class o{optimizeNodes(){return this}optimizeNames(e,t){return this}}class s extends o{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){const r=e?n.varKinds.var:this.varKind,i=void 0===this.rhs?"":` = ${this.rhs}`;return`${r} ${this.name}${i};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=E(this.rhs,e,t)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class a extends o{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,n){if(!(this.lhs instanceof t.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=E(this.rhs,e,n),this}get names(){return T(this.lhs instanceof t.Name?{}:{...this.lhs.names},this.rhs)}}class l extends a{constructor(e,t,n,r){super(e,n,r),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class c extends o{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class u extends o{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class d extends o{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class p extends o{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=E(this.code,e,t),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class h extends o{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,n)=>t+n.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:n}=this;let r=n.length;for(;r--;){const i=n[r];i.optimizeNames(e,t)||(Q(e,i.names),n.splice(r,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>P(e,t.names)),{})}}class f extends h{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class m extends h{}class g extends f{}g.kind="else";class O extends f{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new g(e):e}return t?!1===e?t instanceof O?t:t.nodes:this.nodes.length?this:new O(C(e),t instanceof O?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var n;if(this.else=null===(n=this.else)||void 0===n?void 0:n.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=E(this.condition,e,t),this}get names(){const e=super.names;return T(e,this.condition),this.else&&P(e,this.else.names),e}}O.kind="if";class y extends f{}y.kind="for";class b extends y{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=E(this.iteration,e,t),this}get names(){return P(super.names,this.iteration.names)}}class v extends y{constructor(e,t,n,r){super(),this.varKind=e,this.name=t,this.from=n,this.to=r}render(e){const t=e.es5?n.varKinds.var:this.varKind,{name:r,from:i,to:o}=this;return`for(${t} ${r}=${i}; ${r}<${o}; ${r}++)`+super.render(e)}get names(){const e=T(super.names,this.from);return T(e,this.to)}}class w extends y{constructor(e,t,n,r){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=r}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=E(this.iterable,e,t),this}get names(){return P(super.names,this.iterable.names)}}class S extends f{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}S.kind="func";class x extends h{render(e){return"return "+super.render(e)}}x.kind="return";class k extends f{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var n,r;return super.optimizeNames(e,t),null===(n=this.catch)||void 0===n||n.optimizeNames(e,t),null===(r=this.finally)||void 0===r||r.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&P(e,this.catch.names),this.finally&&P(e,this.finally.names),e}}class $ extends f{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}$.kind="catch";class _ extends f{render(e){return"finally"+super.render(e)}}_.kind="finally";function P(e,t){for(const n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function T(e,n){return n instanceof t._CodeOrName?P(e,n.names):e}function E(e,n,r){return e instanceof t.Name?i(e):function(e){return e instanceof t._Code&&e._items.some((e=>e instanceof t.Name&&1===n[e.str]&&void 0!==r[e.str]))}(e)?new t._Code(e._items.reduce(((e,n)=>(n instanceof t.Name&&(n=i(n)),n instanceof t._Code?e.push(...n._items):e.push(n),e)),[])):e;function i(e){const t=r[e.str];return void 0===t||1!==n[e.str]?e:(delete n[e.str],t)}}function Q(e,t){for(const n in t)e[n]=(e[n]||0)-(t[n]||0)}function C(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:t._`!${N(e)}`}e.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new n.Scope({parent:e}),this._nodes=[new m]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,r){const i=this._scope.toName(t);return void 0!==n&&r&&(this._constants[i.str]=n),this._leafNode(new s(e,i,n)),i}const(e,t,r){return this._def(n.varKinds.const,e,t,r)}let(e,t,r){return this._def(n.varKinds.let,e,t,r)}var(e,t,r){return this._def(n.varKinds.var,e,t,r)}assign(e,t,n){return this._leafNode(new a(e,t,n))}add(t,n){return this._leafNode(new l(t,e.operators.ADD,n))}code(e){return"function"==typeof e?e():e!==t.nil&&this._leafNode(new p(e)),this}object(...e){const n=["{"];for(const[r,i]of e)n.length>1&&n.push(","),n.push(r),(r!==i||this.opts.es5)&&(n.push(":"),(0,t.addCodeArg)(n,i));return n.push("}"),new t._Code(n)}if(e,t,n){if(this._blockNode(new O(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new O(e))}else(){return this._elseNode(new g)}endIf(){return this._endBlockNode(O,g)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new b(e),t)}forRange(e,t,r,i,o=(this.opts.es5?n.varKinds.var:n.varKinds.let)){const s=this._scope.toName(e);return this._for(new v(o,s,t,r),(()=>i(s)))}forOf(e,r,i,o=n.varKinds.const){const s=this._scope.toName(e);if(this.opts.es5){const e=r instanceof t.Name?r:this.var("_arr",r);return this.forRange("_i",0,t._`${e}.length`,(n=>{this.var(s,t._`${e}[${n}]`),i(s)}))}return this._for(new w("of",o,s,r),(()=>i(s)))}forIn(e,r,i,o=(this.opts.es5?n.varKinds.var:n.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,t._`Object.keys(${r})`,i);const s=this._scope.toName(e);return this._for(new w("in",o,s,r),(()=>i(s)))}endFor(){return this._endBlockNode(y)}label(e){return this._leafNode(new c(e))}break(e){return this._leafNode(new u(e))}return(e){const t=new x;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(x)}try(e,t,n){if(!t&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');const r=new k;if(this._blockNode(r),this.code(e),t){const e=this.name("e");this._currNode=r.catch=new $(e),t(e)}return n&&(this._currNode=r.finally=new _,this.code(n)),this._endBlockNode($,_)}throw(e){return this._leafNode(new d(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const n=this._nodes.length-t;if(n<0||void 0!==e&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,n=t.nil,r,i){return this._blockNode(new S(e,n,r)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(S)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof O))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},e.not=C;const A=D(e.operators.AND);e.and=function(...e){return e.reduce(A)};const R=D(e.operators.OR);function D(e){return(n,r)=>n===t.nil?r:r===t.nil?n:t._`${N(n)} ${e} ${N(r)}`}function N(e){return e instanceof t.Name?e:t._`(${e})`}e.or=function(...e){return e.reduce(R)}}(qJ);var XJ={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=qJ,n=UJ;function r(e,t=e.schema){const{opts:n,self:r}=e;if(!n.strictSchema)return;if("boolean"==typeof t)return;const i=r.RULES.keywords;for(const o in t)i[o]||h(e,`unknown keyword: "${o}"`)}function i(e,t){if("boolean"==typeof e)return!e;for(const n in e)if(t[n])return!0;return!1}function o(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function s(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function a({mergeNames:e,mergeToName:n,mergeValues:r,resultToName:i}){return(o,s,a,l)=>{const c=void 0===a?s:a instanceof t.Name?(s instanceof t.Name?e(o,s,a):n(o,s,a),a):s instanceof t.Name?(n(o,a,s),s):r(s,a);return l!==t.Name||c instanceof t.Name?c:i(o,c)}}function l(e,n){if(!0===n)return e.var("props",!0);const r=e.var("props",t._`{}`);return void 0!==n&&c(e,r,n),r}function c(e,n,r){Object.keys(r).forEach((r=>e.assign(t._`${n}${(0,t.getProperty)(r)}`,!0)))}e.toHash=function(e){const t={};for(const n of e)t[n]=!0;return t},e.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(r(e,t),!i(t,e.self.RULES.all))},e.checkUnknownRules=r,e.schemaHasRules=i,e.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const n in e)if("$ref"!==n&&t.all[n])return!0;return!1},e.schemaRefOrVal=function({topSchemaRef:e,schemaPath:n},r,i,o){if(!o){if("number"==typeof r||"boolean"==typeof r)return r;if("string"==typeof r)return t._`${r}`}return t._`${e}${n}${(0,t.getProperty)(i)}`},e.unescapeFragment=function(e){return s(decodeURIComponent(e))},e.escapeFragment=function(e){return encodeURIComponent(o(e))},e.escapeJsonPointer=o,e.unescapeJsonPointer=s,e.eachItem=function(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)},e.mergeEvaluated={props:a({mergeNames:(e,n,r)=>e.if(t._`${r} !== true && ${n} !== undefined`,(()=>{e.if(t._`${n} === true`,(()=>e.assign(r,!0)),(()=>e.assign(r,t._`${r} || {}`).code(t._`Object.assign(${r}, ${n})`)))})),mergeToName:(e,n,r)=>e.if(t._`${r} !== true`,(()=>{!0===n?e.assign(r,!0):(e.assign(r,t._`${r} || {}`),c(e,r,n))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:l}),items:a({mergeNames:(e,n,r)=>e.if(t._`${r} !== true && ${n} !== undefined`,(()=>e.assign(r,t._`${n} === true ? true : ${r} > ${n} ? ${r} : ${n}`))),mergeToName:(e,n,r)=>e.if(t._`${r} !== true`,(()=>e.assign(r,!0===n||t._`${r} > ${n} ? ${r} : ${n}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},e.evaluatedPropsToName=l,e.setEvaluated=c;const u={};var d,p;function h(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,!0===n)throw new Error(t);e.self.logger.warn(t)}}e.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:u[t.code]||(u[t.code]=new n._Code(t.code))})},(p=d=e.Type||(e.Type={}))[p.Num=0]="Num",p[p.Str=1]="Str",e.getErrorPath=function(e,n,r){if(e instanceof t.Name){const i=n===d.Num;return r?i?t._`"[" + ${e} + "]"`:t._`"['" + ${e} + "']"`:i?t._`"/" + ${e}`:t._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,t.getProperty)(e).toString():"/"+o(e)},e.checkStrictMode=h}(XJ);var FJ={};Object.defineProperty(FJ,"__esModule",{value:!0});const LJ=qJ,ZJ={data:new LJ.Name("data"),valCxt:new LJ.Name("valCxt"),instancePath:new LJ.Name("instancePath"),parentData:new LJ.Name("parentData"),parentDataProperty:new LJ.Name("parentDataProperty"),rootData:new LJ.Name("rootData"),dynamicAnchors:new LJ.Name("dynamicAnchors"),vErrors:new LJ.Name("vErrors"),errors:new LJ.Name("errors"),this:new LJ.Name("this"),self:new LJ.Name("self"),scope:new LJ.Name("scope"),json:new LJ.Name("json"),jsonPos:new LJ.Name("jsonPos"),jsonLen:new LJ.Name("jsonLen"),jsonPart:new LJ.Name("jsonPart")};FJ.default=ZJ,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=qJ,n=XJ,r=FJ;function i(e,n){const i=e.const("err",n);e.if(t._`${r.default.vErrors} === null`,(()=>e.assign(r.default.vErrors,t._`[${i}]`)),t._`${r.default.vErrors}.push(${i})`),e.code(t._`${r.default.errors}++`)}function o(e,n){const{gen:r,validateName:i,schemaEnv:o}=e;o.$async?r.throw(t._`new ${e.ValidationError}(${n})`):(r.assign(t._`${i}.errors`,n),r.return(!1))}e.keywordError={message:({keyword:e})=>t.str`must pass "${e}" keyword validation`},e.keyword$DataError={message:({keyword:e,schemaType:n})=>n?t.str`"${e}" keyword must be ${n} ($data)`:t.str`"${e}" keyword is invalid ($data)`},e.reportError=function(n,r=e.keywordError,s,l){const{it:c}=n,{gen:u,compositeRule:d,allErrors:p}=c,h=a(n,r,s);(null!=l?l:d||p)?i(u,h):o(c,t._`[${h}]`)},e.reportExtraError=function(t,n=e.keywordError,s){const{it:l}=t,{gen:c,compositeRule:u,allErrors:d}=l;i(c,a(t,n,s)),u||d||o(l,r.default.vErrors)},e.resetErrorsCount=function(e,n){e.assign(r.default.errors,n),e.if(t._`${r.default.vErrors} !== null`,(()=>e.if(n,(()=>e.assign(t._`${r.default.vErrors}.length`,n)),(()=>e.assign(r.default.vErrors,null)))))},e.extendErrors=function({gen:e,keyword:n,schemaValue:i,data:o,errsCount:s,it:a}){if(void 0===s)throw new Error("ajv implementation error");const l=e.name("err");e.forRange("i",s,r.default.errors,(s=>{e.const(l,t._`${r.default.vErrors}[${s}]`),e.if(t._`${l}.instancePath === undefined`,(()=>e.assign(t._`${l}.instancePath`,(0,t.strConcat)(r.default.instancePath,a.errorPath)))),e.assign(t._`${l}.schemaPath`,t.str`${a.errSchemaPath}/${n}`),a.opts.verbose&&(e.assign(t._`${l}.schema`,i),e.assign(t._`${l}.data`,o))}))};const s={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function a(e,n,i){const{createErrors:o}=e.it;return!1===o?t._`{}`:function(e,n,i={}){const{gen:o,it:a}=e,u=[l(a,i),c(e,i)];return function(e,{params:n,message:i},o){const{keyword:a,data:l,schemaValue:c,it:u}=e,{opts:d,propertyName:p,topSchemaRef:h,schemaPath:f}=u;o.push([s.keyword,a],[s.params,"function"==typeof n?n(e):n||t._`{}`]),d.messages&&o.push([s.message,"function"==typeof i?i(e):i]);d.verbose&&o.push([s.schema,c],[s.parentSchema,t._`${h}${f}`],[r.default.data,l]);p&&o.push([s.propertyName,p])}(e,n,u),o.object(...u)}(e,n,i)}function l({errorPath:e},{instancePath:i}){const o=i?t.str`${e}${(0,n.getErrorPath)(i,n.Type.Str)}`:e;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,o)]}function c({keyword:e,it:{errSchemaPath:r}},{schemaPath:i,parentSchema:o}){let a=o?r:t.str`${r}/${e}`;return i&&(a=t.str`${a}${(0,n.getErrorPath)(i,n.Type.Str)}`),[s.schemaPath,a]}}(IJ),Object.defineProperty(jJ,"__esModule",{value:!0}),jJ.boolOrEmptySchema=jJ.topBoolOrEmptySchema=void 0;const VJ=IJ,zJ=qJ,WJ=FJ,BJ={message:"boolean schema is false"};function YJ(e,t){const{gen:n,data:r}=e,i={gen:n,keyword:"false schema",data:r,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,VJ.reportError)(i,BJ,void 0,t)}jJ.topBoolOrEmptySchema=function(e){const{gen:t,schema:n,validateName:r}=e;!1===n?YJ(e,!1):"object"==typeof n&&!0===n.$async?t.return(WJ.default.data):(t.assign(zJ._`${r}.errors`,null),t.return(!0))},jJ.boolOrEmptySchema=function(e,t){const{gen:n,schema:r}=e;!1===r?(n.var(t,!1),YJ(e)):n.var(t,!0)};var HJ={},GJ={};Object.defineProperty(GJ,"__esModule",{value:!0}),GJ.getRules=GJ.isJSONType=void 0;const KJ=new Set(["string","number","integer","boolean","null","object","array"]);GJ.isJSONType=function(e){return"string"==typeof e&&KJ.has(e)},GJ.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}};var JJ={};function e0(e,t){return t.rules.some((t=>t0(e,t)))}function t0(e,t){var n;return void 0!==e[t.keyword]||(null===(n=t.definition.implements)||void 0===n?void 0:n.some((t=>void 0!==e[t])))}Object.defineProperty(JJ,"__esModule",{value:!0}),JJ.shouldUseRule=JJ.shouldUseGroup=JJ.schemaHasRulesForType=void 0,JJ.schemaHasRulesForType=function({schema:e,self:t},n){const r=t.RULES.types[n];return r&&!0!==r&&e0(e,r)},JJ.shouldUseGroup=e0,JJ.shouldUseRule=t0,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=GJ,n=JJ,r=IJ,i=qJ,o=XJ;var s,a;function l(e){const n=Array.isArray(e)?e:e?[e]:[];if(n.every(t.isJSONType))return n;throw new Error("type must be JSONType or JSONType[]: "+n.join(","))}(a=s=e.DataType||(e.DataType={}))[a.Correct=0]="Correct",a[a.Wrong=1]="Wrong",e.getSchemaTypes=function(e){const t=l(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},e.getJSONTypes=l,e.coerceAndCheckDataType=function(e,t){const{gen:r,data:o,opts:a}=e,l=function(e,t){return t?e.filter((e=>c.has(e)||"array"===t&&"array"===e)):[]}(t,a.coerceTypes),u=t.length>0&&!(0===l.length&&1===t.length&&(0,n.schemaHasRulesForType)(e,t[0]));if(u){const n=d(t,o,a.strictNumbers,s.Wrong);r.if(n,(()=>{l.length?function(e,t,n){const{gen:r,data:o,opts:s}=e,a=r.let("dataType",i._`typeof ${o}`),l=r.let("coerced",i._`undefined`);"array"===s.coerceTypes&&r.if(i._`${a} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,(()=>r.assign(o,i._`${o}[0]`).assign(a,i._`typeof ${o}`).if(d(t,o,s.strictNumbers),(()=>r.assign(l,o)))));r.if(i._`${l} !== undefined`);for(const i of n)(c.has(i)||"array"===i&&"array"===s.coerceTypes)&&u(i);function u(e){switch(e){case"string":return void r.elseIf(i._`${a} == "number" || ${a} == "boolean"`).assign(l,i._`"" + ${o}`).elseIf(i._`${o} === null`).assign(l,i._`""`);case"number":return void r.elseIf(i._`${a} == "boolean" || ${o} === null
19
19
  || (${a} == "string" && ${o} && ${o} == +${o})`).assign(l,i._`+${o}`);case"integer":return void r.elseIf(i._`${a} === "boolean" || ${o} === null