@scalar/api-reference 1.12.2 → 1.12.3

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,o){var i,a,s=8*o-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?o-1:0,p=n?
13
13
  * content-type
14
14
  * Copyright(c) 2015 Douglas Christopher Wilson
15
15
  * MIT Licensed
16
- */function Yj(e){var t=String(e);if(Lj.test(t))return t;if(t.length>0&&!Vj.test(t))throw new TypeError("invalid parameter value");return'"'+t.replace(Wj,"\\$1")+'"'}function Hj(e){this.parameters=Object.create(null),this.type=e}Fj.format=function(e){if(!e||"object"!=typeof e)throw new TypeError("argument obj is required");var t=e.parameters,n=e.type;if(!n||!Bj.test(n))throw new TypeError("invalid type");var r=n;if(t&&"object"==typeof t)for(var o,i=Object.keys(t).sort(),a=0;a<i.length;a++){if(o=i[a],!Lj.test(o))throw new TypeError("invalid parameter name");r+="; "+o+"="+Yj(t[o])}return r},Fj.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(!Bj.test(r))throw new TypeError("invalid media type");var o=new Hj(r.toLowerCase());if(-1!==n){var i,a,s;for(Zj.lastIndex=n;a=Zj.exec(t);){if(a.index!==n)throw new TypeError("invalid parameter format");n+=a[0].length,i=a[1].toLowerCase(),34===(s=a[2]).charCodeAt(0)&&-1!==(s=s.slice(1,-1)).indexOf("\\")&&(s=s.replace(zj,"$1")),o.parameters[i]=s}if(n!==t.length)throw new TypeError("invalid parameter format")}return o};const Gj={key:1,class:"scalar-api-client__empty-state"},Kj={key:1,class:"scalar-api-client__empty-state"},Jj=Gr({__name:"ResponseBody",props:{active:{type:Boolean,default:!1},data:{default:null},headers:{}},setup(e){const t=e,n=Ua((()=>{const e=t.headers.find((e=>"content-type"===e.name.toLowerCase()));if(!e)return null;try{return Fj.parse(e.value).type}catch{return null}})),r=Ua((()=>"application/json"===n.value?["json"]:"text/html"===n.value?["html"]:null));return(e,t)=>(Zi(),Bi(mn(sD),{title:"Body"},{default:Pr((()=>[e.active?(Zi(),Wi(qi,{key:0},[r.value?(Zi(),Bi(mn(tT),{key:0,content:e.data,languages:r.value,readOnly:""},null,8,["content","languages"])):(Zi(),Wi("div",Gj,[n.value?(Zi(),Wi(qi,{key:0},[aa(" No Preview Available ("+Re(n.value)+") ",1)],64)):(Zi(),Wi(qi,{key:1},[aa(" Can’t render a preview. The Content-Type header is missing or unknown. ")],64))]))],64)):(Zi(),Wi("div",Kj," No Response "))])),_:1}))}}),eq=["href"],tq=bl(Gr({__name:"HelpfulLink",props:{href:{}},setup:e=>(e,t)=>(Zi(),Wi("a",{href:e.href,rel:"noopener noreferrer",target:"_blank"},[$o(e.$slots,"default",{},void 0,!0)],8,eq))}),[["__scopeId","data-v-d11ff062"]]),nq=bl(Gr({__name:"SimpleCell",props:{wrap:{type:Boolean,default:!0},strong:{type:Boolean,default:!1},href:{default:null}},setup:e=>(e,t)=>(Zi(),Wi("td",{class:$e(["simple-cell",{wrap:e.wrap,strong:e.strong}])},[e.href?(Zi(),Bi(tq,{key:0,href:e.href},{default:Pr((()=>[$o(e.$slots,"default",{},void 0,!0)])),_:3},8,["href"])):$o(e.$slots,"default",{key:1},void 0,!0)],2))}),[["__scopeId","data-v-01fffd78"]]),rq=bl(Gr({__name:"SimpleHeader",setup:e=>(e,t)=>(Zi(),Bi(nq,{as:"th",class:"simple-header"},{default:Pr((()=>[$o(e.$slots,"default",{},void 0,!0)])),_:3}))}),[["__scopeId","data-v-b2232089"]]),oq={class:"simple-row"};const iq=bl({},[["render",function(e,t){return Zi(),Wi("tr",oq,[$o(e.$slots,"default",{},void 0,!0)])}],["__scopeId","data-v-0982ade4"]]),aq={class:"simple-table"};const sq=bl({},[["render",function(e,t){return Zi(),Wi("table",aq,[$o(e.$slots,"default",{},void 0,!0)])}],["__scopeId","data-v-28fcbcb6"]]),lq={key:1,class:"scalar-api-client__empty-state"},cq=Gr({__name:"ResponseHeaders",props:{headers:{}},setup(e){const t=e=>e.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join("-");return(e,n)=>(Zi(),Bi(mn(sD),{title:"Headers"},{default:Pr((()=>[e.headers.length>0?(Zi(),Bi(mn(sq),{key:0},{default:Pr((()=>[ta(mn(iq),null,{default:Pr((()=>[ta(mn(rq),null,{default:Pr((()=>[aa("Key")])),_:1}),ta(mn(rq),null,{default:Pr((()=>[aa("Value")])),_:1})])),_:1}),(Zi(!0),Wi(qi,null,xo(e.headers,(e=>(Zi(),Bi(mn(iq),{key:e.name},{default:Pr((()=>{return[ta(mn(nq),{href:(n=e.name,null==(r=vA.find((e=>e.name.toLowerCase()===n.toLowerCase())))?void 0:r.url),strong:!0,wrap:!1},{default:Pr((()=>[aa(Re(t(e.name)),1)])),_:2},1032,["href"]),ta(mn(nq),null,{default:Pr((()=>[aa(Re(e.value),1)])),_:2},1024)];var n,r})),_:2},1024)))),128))])),_:1})):(Zi(),Wi("div",lq,"No Headers"))])),_:1}))}}),uq={class:"meta-item"},dq={class:"meta-item"},pq={class:"meta-item"},fq=Gr({__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"])?QN(parseFloat(e.headers["X-API-Client-Content-Length"])):QN(0)},r=Ua((()=>{const e=t.response.statusCode;if(e)return wA[e]??void 0}));return(e,t)=>{var o,i;return Zi(),Wi(qi,null,[ea("div",uq,[ea("span",null,Re(mn(CN)(e.response.duration)),1)]),ea("div",dq,[ea("span",null,Re(n(e.response)),1)]),ea("div",pq,[ea("span",{class:$e(`scalar-api-client__status scalar-api-client__status--${String(e.response.statusCode).charAt(0)}xx`)},[(null==(o=r.value)?void 0:o.url)?(Zi(),Bi(tq,{key:0,href:r.value.url},{default:Pr((()=>[aa(Re(e.response.statusCode)+" "+Re(r.value.name),1)])),_:1},8,["href"])):(Zi(),Wi(qi,{key:1},[aa(Re(e.response.statusCode)+" "+Re(null==(i=r.value)?void 0:i.name),1)],64))],2)])],64)}}}),hq={class:"scalar-api-client__main__right custom-scroll"},mq={class:"scalar-api-client__main__content"},gq=ea("label",null,"Response",-1),Oq={class:"meta"},yq={key:1,class:"meta-item"},vq=[ea("span",null,"Send your first request to start",-1)],bq={key:0,class:"scalar-api-client__empty-state"},wq=ea("div",{class:"scalar-api-client__main__scroll-container"},null,-1),Sq=Gr({__name:"Response",setup(e){const{activeResponse:t,activeRequestId:n}=uQ(),r=Ua((()=>{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))):[]})),o=Ua((()=>{var e;const n=null==(e=t.value)?void 0:e.cookies;return n?Object.keys(n).map((e=>({name:e,value:n[e]}))):[]})),i=Ua((()=>{var e;const n=null==(e=t.value)?void 0:e.data;return n&&OA(n)?JSON.stringify(JSON.parse(n),null,2):n&&"object"==typeof rn(n)||n&&!OA(n)?JSON.stringify(n,null,2):n}));return(e,a)=>(Zi(),Wi("div",hq,[ea("div",mq,[gq,ea("div",Oq,[mn(n)&&mn(t)?(Zi(),Bi(fq,{key:0,response:mn(t)},null,8,["response"])):(Zi(),Wi("div",yq,vq))])]),ea("div",null,[ta(Jj,{active:!!mn(t),data:i.value,headers:r.value},null,8,["active","data","headers"]),ta(cq,{headers:r.value},null,8,["headers"]),ta(mn(sD),{title:"Cookies"},{default:Pr((()=>[Vr(ta(mn(vj),{items:o.value},null,8,["items"]),[[Ys,o.value.length>0]]),0===o.value.length?(Zi(),Wi("div",bq,"No Cookies")):la("",!0)])),_:1}),wq])]))}}),xq={class:"scalar-api-client__main"},kq=Gr({__name:"ApiClient",props:{proxyUrl:{},readOnly:{type:Boolean,default:!1},theme:{}},emits:["escapeKeyPress"],setup(e,{emit:t}){const n=e,{activeRequest:r,readOnly:o}=uQ(),i=Md("(max-width: 820px)"),a=dn(0),s=1;function l(e){a.value=e}return Ir((()=>n.readOnly),(()=>{o.value=n.readOnly}),{immediate:!0}),LE({keyList:["escape"],handler:()=>t("escapeKeyPress")}),(e,n)=>(Zi(),Wi(qi,null,[ta(mn(Ol),{id:e.theme},null,8,["id"]),ea("div",{class:$e(["scalar-api-client",`scalar-api-client--${mn(r).type.toLowerCase()||"get"}`]),onKeydown:n[1]||(n[1]=Bs((e=>t("escapeKeyPress")),["esc"]))},[ta(nD,{proxyUrl:e.proxyUrl,onOnSend:n[0]||(n[0]=e=>l(s))},null,8,["proxyUrl"]),ea("div",xq,[mn(i)?(Zi(),Bi(mn(Sd),{key:1,selectedIndex:a.value,onChange:l},{default:Pr((()=>[ta(mn(xd),{class:"scalar-api-client__mobile-navigation"},{default:Pr((()=>[ta(mn(kd),{class:"scalar-api-client__mobile-navigation__toggle"},{default:Pr((({selected:e})=>[ea("span",{class:$e({"scalar-api-client__mobile-navigation--active":e})}," Request ",2)])),_:1}),ta(mn(kd),{class:"scalar-api-client__mobile-navigation__toggle"},{default:Pr((({selected:e})=>[ea("span",{class:$e({"scalar-api-client__mobile-navigation--active":e})}," Response ",2)])),_:1})])),_:1}),ta(mn($d),{as:"template"},{default:Pr((()=>[ta(mn(Pd),{as:"template"},{default:Pr((()=>[ta(mn(Xj))])),_:1}),ta(mn(Pd),{as:"template"},{default:Pr((()=>[ta(mn(Sq))])),_:1})])),_:1})])),_:1},8,["selectedIndex"])):(Zi(),Wi(qi,{key:0},[ta(mn(Xj)),ta(mn(Sq))],64))])],34)],64))}}),$q=(...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=DX(vN.from(yA(t.headers,"name","value")).normalize(!0),"name");const{path:n,...r}=t;return n?{...r,url:`${t.url}${n}`}:r},Pq=e=>e.slug?`description/${e.slug}`:"",_q=function(e){if(null==e)return Eq;if("string"==typeof e)return function(e){return Tq(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]=_q(e[n]);return Tq(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 Tq(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 Tq(e);throw new Error("Expected function, string, or object as test")};function Tq(e){return function(t,...n){return Boolean(t&&"object"==typeof t&&"type"in t&&Boolean(e.call(this,t,...n)))}}function Eq(){return!0}const Qq=function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null);const o=_q(t),i=r?-1:1;!function e(a,s,l){const c=a&&"object"==typeof a?a:{};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 ("+a.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,p=[];if((!t||o(a,s,l[l.length-1]||null))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[true,e];return[e]}(n(a,l)),false===p[0]))return p;if(a.children&&"skip"!==p[0])for(u=(r?a.children.length:-1)+i,d=l.concat(a);u>-1&&u<a.children.length;){if(c=e(a.children[u],u,d)(),false===c[0])return c;u="number"==typeof c[1]?c[1]:u+i}return p}}(e,void 0,[])()};const Cq={};function Aq(e,t){const n=t||Cq;return Rq(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function Rq(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 Nq(e.children,t,n)}return Array.isArray(e)?Nq(e,t,n):""}function Nq(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=Rq(e[o],t,n);return r.join("")}const Dq=e=>{const t=[];var n,r,o;return r=e=>{const n={depth:e.depth,value:Aq(e,{includeImageAlt:!1})},r=null==e?void 0:e.data;r&&(n.data=r),t.push(n)},"function"==typeof(n="heading")&&"function"!=typeof r&&(o=r,r=n,n=null),Qq(e,n,(function(e,t){const n=t[t.length-1];return r(e,n?n.children.indexOf(e):null,n)}),o),t};const jq=/[\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,qq=Object.hasOwnProperty;class Iq{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(jq,"").replace(/ /g,"-")}(e,!0===t);const o=r;for(;qq.call(n.occurrences,r);)n.occurrences[o]++,r=o+"-"+n.occurrences[o];return n.occurrences[r]=0,r}reset(){this.occurrences=Object.create(null)}}const Uq={};function Mq(e,t){const n=t||Uq;return Xq(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function Xq(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 Fq(e.children,t,n)}return Array.isArray(e)?Fq(e,t,n):""}function Fq(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=Xq(e[o],t,n);return r.join("")}const Zq=document.createElement("i");function Vq(e){const t="&"+e+";";Zq.innerHTML=t;const n=Zq.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}function Lq(e,t,n,r){const o=e.length;let i,a=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a<r.length;)i=r.slice(a,a+1e4),i.unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function zq(e,t){return e.length>0?(Lq(e,e.length,0,t),e):t}const Wq={}.hasOwnProperty;function Bq(e){const t={};let n=-1;for(;++n<e.length;)Yq(t,e[n]);return t}function Yq(e,t){let n;for(n in t){const r=(Wq.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){Wq.call(r,i)||(r[i]=[]);const e=o[i];Hq(r[i],Array.isArray(e)?e:e?[e]:[])}}}function Hq(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);Lq(e,0,0,r)}function Gq(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 Kq(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Jq=pI(/\p{P}/u),eI=pI(/[A-Za-z]/),tI=pI(/[\dA-Za-z]/),nI=pI(/[#-'*+\--9=?A-Z^-~]/);function rI(e){return null!==e&&(e<32||127===e)}const oI=pI(/\d/),iI=pI(/[\dA-Fa-f]/),aI=pI(/[!-/:-@[-`{-~]/);function sI(e){return null!==e&&e<-2}function lI(e){return null!==e&&(e<0||32===e)}function cI(e){return-2===e||-1===e||32===e}function uI(e){return aI(e)||Jq(e)}const dI=pI(/\s/);function pI(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function fI(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let a="";if(37===i&&tI(e.charCodeAt(n+1))&&tI(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t),o=1):a="�"}else a=String.fromCharCode(i);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+o+1,a=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function hI(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){if(cI(r))return e.enter(n),a(r);return t(r)};function a(r){return cI(r)&&i++<o?(e.consume(r),a):(e.exit(n),t(r))}}const mI={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"),hI(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),r(t)}));let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):sI(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}};const gI={tokenize:function(e){const t=this,n=[];let r,o,i,a=0;return s;function s(r){if(a<n.length){const o=n[a];return t.containerState=o[1],e.attempt(o[0].continuation,l,c)(r)}return c(r)}function l(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&y();const n=t.events.length;let o,i=n;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){o=t.events[i][1].end;break}O(a);let s=n;for(;s<t.events.length;)t.events[s][1].end=Object.assign({},o),s++;return Lq(t.events,i+1,0,t.events.slice(n)),t.events.length=s,c(e)}return s(e)}function c(o){if(a===n.length){if(!r)return p(o);if(r.currentConstruct&&r.currentConstruct.concrete)return h(o);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(OI,u,d)(o)}function u(e){return r&&y(),O(a),p(e)}function d(e){return t.parser.lazy[t.now().line]=a!==n.length,i=t.now().offset,h(e)}function p(n){return t.containerState={},e.attempt(OI,f,h)(n)}function f(e){return a++,n.push([t.currentConstruct,t.containerState]),p(e)}function h(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:o,_tokenizer:r}),m(n))}function m(n){return null===n?(g(e.exit("chunkFlow"),!0),O(0),void e.consume(n)):sI(n)?(e.consume(n),g(e.exit("chunkFlow")),a=0,t.interrupt=void 0,s):(e.consume(n),m)}function g(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=o,o&&(o.next=e),o=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<i&&(!r.events[e][1].end||r.events[e][1].end.offset>i))return;const n=t.events.length;let o,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(o){s=t.events[l][1].end;break}o=!0}for(O(a),e=n;e<t.events.length;)t.events[e][1].end=Object.assign({},s),e++;Lq(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function O(r){let o=n.length;for(;o-- >r;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function y(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},OI={tokenize:function(e,t,n){return hI(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function yI(e){return null===e||lI(e)||dI(e)?1:uI(e)?2:void 0}function vI(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const bI={name:"attention",tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=yI(r);let i;return function(t){return i=t,e.enter("attentionSequence"),a(t)};function a(s){if(s===i)return e.consume(s),a;const l=e.exit("attentionSequence"),c=yI(s),u=!c||2===c&&o||n.includes(s),d=!o||2===o&&c||n.includes(r);return l._open=Boolean(42===i?u:u&&(o||!d)),l._close=Boolean(42===i?d:d&&(c||!u)),t(s)}},resolveAll:function(e,t){let n,r,o,i,a,s,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;s=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);wI(d,-s),wI(p,s),i={type:s>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[n][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[u][1].start),end:p},o={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[u][1].start)},r={type:s>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},a.end)},e[n][1].end=Object.assign({},i.start),e[u][1].start=Object.assign({},a.end),l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=zq(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=zq(l,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),l=zq(l,vI(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=zq(l,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=zq(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,Lq(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 wI(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const SI={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return eI(t)?(e.consume(t),i):l(t)}function i(e){return 43===e||45===e||46===e||tI(e)?(r=1,a(e)):l(e)}function a(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||tI(t))&&r++<32?(e.consume(t),a):(r=0,l(t))}function s(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||rI(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),c):nI(t)?(e.consume(t),l):n(t)}function c(e){return tI(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||tI(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}};const xI={tokenize:function(e,t,n){return function(t){return cI(t)?hI(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||sI(e)?t(e):n(e)}},partial:!0};const kI={name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return cI(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(cI(t))return hI(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(r){return e.attempt(kI,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};const $I={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 aI(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const PI={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),o=31,i=tI,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=iI,c):(e.enter("characterReferenceValue"),o=7,i=oI,c(t))}function c(s){if(59===s&&a){const o=e.exit("characterReferenceValue");return i!==tI||Vq(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&a++<o?(e.consume(s),c):n(s)}}};const _I={tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},TI={name:"codeFenced",tokenize:function(e,t,n){const r=this,o={tokenize:function(e,t,n){let o=0;return a;function a(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),cI(t)?hI(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===i?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===i?(o++,e.consume(t),u):o>=s?(e.exit("codeFencedFenceSequence"),cI(t)?hI(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||sI(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0};let i,a=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===i?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),cI(t)?hI(e,c,"whitespace")(t):c(t))}function c(n){return null===n||sI(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(_I,f,y)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||sI(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):cI(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),hI(e,d,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),u)}function d(t){return null===t||sI(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||sI(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===i?n(t):(e.consume(t),p)}function f(t){return e.attempt(o,y,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return a>0&&cI(t)?hI(e,g,"linePrefix",a+1)(t):g(t)}function g(t){return null===t||sI(t)?e.check(_I,f,y)(t):(e.enter("codeFlowValue"),O(t))}function O(t){return null===t||sI(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),O)}function y(n){return e.exit("codeFenced"),t(n)}},concrete:!0};const EI={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),hI(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?s(t):sI(t)?e.attempt(QI,i,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||sI(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),a)}function s(n){return e.exit("codeIndented"),t(n)}}},QI={tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):sI(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):hI(e,i,"linePrefix",5)(t)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):sI(e)?o(e):n(e)}},partial:!0};const CI={name:"codeText",tokenize:function(e,t,n){let r,o,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),i++,a):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(o=e.enter("codeTextSequence"),r=0,c(t)):sI(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||sI(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",l(n))}},resolve:function(e){let t,n,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}t=o-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}};function AI(e){const t={};let n,r,o,i,a,s,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&&(s=n[1]._tokenizer.events,o=0,o<s.length&&"lineEndingBlank"===s[o][1].type&&(o+=2),o<s.length&&"content"===s[o][1].type))for(;++o<s.length&&"content"!==s[o][1].type;)"chunkText"===s[o][1].type&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,RI(e,c)),c=t[c],l=!0);else if(n[1]._container){for(o=c,r=void 0;o--&&(i=e[o],"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type);)"enter"===i[0]&&(r&&(e[r][1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);r&&(n[1].end=Object.assign({},e[r][1].start),a=e.slice(r,c),a.unshift(n),Lq(e,r,c-r+1,a))}}return!l}function RI(e,t){const n=e[t][1],r=e[t][2];let o=t-1;const i=[],a=n._tokenizer||r.parser[n.contentType](n.start),s=a.events,l=[],c={};let u,d,p=-1,f=n,h=0,m=0;const g=[m];for(;f;){for(;e[++o][1]!==f;);i.push(o),f._tokenizer||(u=r.sliceStream(f),f.next||u.push(null),d&&a.defineSkip(f.start),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=n;++p<s.length;)"exit"===s[p][0]&&"enter"===s[p-1][0]&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(m=p+1,g.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(a.events=[],f?(f._tokenizer=void 0,f.previous=void 0):g.pop(),p=g.length;p--;){const t=s.slice(g[p],g[p+1]),n=i.pop();l.unshift([n,n+t.length-1]),Lq(e,n,2,t)}for(p=-1;++p<l.length;)c[h+l[p][0]]=h+l[p][1],h+=l[p][1]-l[p][0]-1;return c}const NI={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):sI(t)?e.check(DI,i,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return AI(e),e}},DI={tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),hI(e,o,"linePrefix")};function o(o){if(null===o||sI(o))return n(o);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}},partial:!0};function jI(e,t,n,r,o,i,a,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),d;if(null===t||32===t||41===t||rI(t))return n(t);return e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),h(t)};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||sI(t)?n(t):(e.consume(t),92===t?f:p)}function f(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function h(o){return u||null!==o&&41!==o&&!lI(o)?u<c&&40===o?(e.consume(o),u++,h):41===o?(e.consume(o),u--,h):null===o||32===o||40===o||rI(o)?n(o):(e.consume(o),92===o?m:h):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(o))}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function qI(e,t,n,r,o,i){const a=this;let s,l=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(i),c};function c(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(i),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):sI(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||sI(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!cI(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function II(e,t,n,r,o,i){let a;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(o),e.consume(t),e.exit(o),a=40===t?41:t,s;return n(t)};function s(n){return n===a?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),l(n))}function l(t){return t===a?(e.exit(i),s(a)):null===t?n(t):sI(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),hI(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||sI(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===a||92===t?(e.consume(t),c):c(t)}}function UI(e,t){let n;return function r(o){if(sI(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r;if(cI(o))return hI(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}const MI={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return qI.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=Kq(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return lI(t)?UI(e,s)(t):s(t)}function s(t){return jI(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(XI,c,c)(t)}function c(t){return cI(t)?hI(e,u,"whitespace")(t):u(t)}function u(i){return null===i||sI(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)}}},XI={tokenize:function(e,t,n){return function(t){return lI(t)?UI(e,r)(t):n(t)};function r(t){return II(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return cI(t)?hI(e,i,"whitespace")(t):i(t)}function i(e){return null===e||sI(e)?t(e):n(e)}},partial:!0};const FI={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return sI(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const ZI={name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||lI(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||sI(n)?(e.exit("atxHeading"),t(n)):cI(n)?hI(e,i,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),i(t))}function s(t){return null===t||35===t||lI(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),s)}},resolve:function(e,t){let n,r,o=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);o-2>i&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},Lq(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e}};const VI=["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"],LI=["pre","script","style","textarea"],zI={name:"htmlFlow",tokenize:function(e,t,n){const r=this;let o,i,a,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),i=!0,f):63===s?(e.consume(s),o=3,r.interrupt?t:N):eI(s)?(e.consume(s),a=String.fromCharCode(s),h):n(s)}function u(i){return 45===i?(e.consume(i),o=2,d):91===i?(e.consume(i),o=5,s=0,p):eI(i)?(e.consume(i),o=4,r.interrupt?t:N):n(i)}function d(o){return 45===o?(e.consume(o),r.interrupt?t:N):n(o)}function p(o){const i="CDATA[";return o===i.charCodeAt(s++)?(e.consume(o),6===s?r.interrupt?t:P:p):n(o)}function f(t){return eI(t)?(e.consume(t),a=String.fromCharCode(t),h):n(t)}function h(s){if(null===s||47===s||62===s||lI(s)){const l=47===s,c=a.toLowerCase();return l||i||!LI.includes(c)?VI.includes(a.toLowerCase())?(o=6,l?(e.consume(s),m):r.interrupt?t(s):P(s)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):i?g(s):O(s)):(o=1,r.interrupt?t(s):P(s))}return 45===s||tI(s)?(e.consume(s),a+=String.fromCharCode(s),h):n(s)}function m(o){return 62===o?(e.consume(o),r.interrupt?t:P):n(o)}function g(t){return cI(t)?(e.consume(t),g):k(t)}function O(t){return 47===t?(e.consume(t),k):58===t||95===t||eI(t)?(e.consume(t),y):cI(t)?(e.consume(t),O):k(t)}function y(t){return 45===t||46===t||58===t||95===t||tI(t)?(e.consume(t),y):v(t)}function v(t){return 61===t?(e.consume(t),b):cI(t)?(e.consume(t),v):O(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,w):cI(t)?(e.consume(t),b):S(t)}function w(t){return t===l?(e.consume(t),l=null,x):null===t||sI(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||lI(t)?v(t):(e.consume(t),S)}function x(e){return 47===e||62===e||cI(e)?O(e):n(e)}function k(t){return 62===t?(e.consume(t),$):n(t)}function $(t){return null===t||sI(t)?P(t):cI(t)?(e.consume(t),$):n(t)}function P(t){return 45===t&&2===o?(e.consume(t),Q):60===t&&1===o?(e.consume(t),C):62===t&&4===o?(e.consume(t),D):63===t&&3===o?(e.consume(t),N):93===t&&5===o?(e.consume(t),R):!sI(t)||6!==o&&7!==o?null===t||sI(t)?(e.exit("htmlFlowData"),_(t)):(e.consume(t),P):(e.exit("htmlFlowData"),e.check(WI,j,_)(t))}function _(t){return e.check(BI,T,j)(t)}function T(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),E}function E(t){return null===t||sI(t)?_(t):(e.enter("htmlFlowData"),P(t))}function Q(t){return 45===t?(e.consume(t),N):P(t)}function C(t){return 47===t?(e.consume(t),a="",A):P(t)}function A(t){if(62===t){const n=a.toLowerCase();return LI.includes(n)?(e.consume(t),D):P(t)}return eI(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),A):P(t)}function R(t){return 93===t?(e.consume(t),N):P(t)}function N(t){return 62===t?(e.consume(t),D):45===t&&2===o?(e.consume(t),N):P(t)}function D(t){return null===t||sI(t)?(e.exit("htmlFlowData"),j(t)):(e.consume(t),D)}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},WI={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(xI,t,n)}},partial:!0},BI={tokenize:function(e,t,n){const r=this;return function(t){if(sI(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o;return n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0};const YI={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,i,a;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),b):63===t?(e.consume(t),y):eI(t)?(e.consume(t),x):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,f):eI(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):sI(t)?(a=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 f(t){const r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),6===i?h:f):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):sI(t)?(a=h,A(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?C(t):93===t?(e.consume(t),g):h(t)}function O(t){return null===t||62===t?C(t):sI(t)?(a=O,A(t)):(e.consume(t),O)}function y(t){return null===t?n(t):63===t?(e.consume(t),v):sI(t)?(a=y,A(t)):(e.consume(t),y)}function v(e){return 62===e?C(e):y(e)}function b(t){return eI(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||tI(t)?(e.consume(t),w):S(t)}function S(t){return sI(t)?(a=S,A(t)):cI(t)?(e.consume(t),S):C(t)}function x(t){return 45===t||tI(t)?(e.consume(t),x):47===t||62===t||lI(t)?k(t):n(t)}function k(t){return 47===t?(e.consume(t),C):58===t||95===t||eI(t)?(e.consume(t),$):sI(t)?(a=k,A(t)):cI(t)?(e.consume(t),k):C(t)}function $(t){return 45===t||46===t||58===t||95===t||tI(t)?(e.consume(t),$):P(t)}function P(t){return 61===t?(e.consume(t),_):sI(t)?(a=P,A(t)):cI(t)?(e.consume(t),P):k(t)}function _(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,T):sI(t)?(a=_,A(t)):cI(t)?(e.consume(t),_):(e.consume(t),E)}function T(t){return t===o?(e.consume(t),o=void 0,Q):null===t?n(t):sI(t)?(a=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||lI(t)?k(t):(e.consume(t),E)}function Q(e){return 47===e||62===e||lI(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 cI(t)?hI(e,N,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):N(t)}function N(t){return e.enter("htmlTextData"),a(t)}}};const HI={name:"labelEnd",tokenize:function(e,t,n){const r=this;let o,i,a=r.events.length;for(;a--;)if(("labelImage"===r.events[a][1].type||"labelLink"===r.events[a][1].type)&&!r.events[a][1]._balanced){o=r.events[a][1];break}return function(t){if(!o)return n(t);if(o._inactive)return u(t);return i=r.parser.defined.includes(Kq(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s};function s(t){return 40===t?e.attempt(GI,c,i?c:u)(t):91===t?e.attempt(KI,c,i?l:u)(t):i?c(t):u(t)}function l(t){return e.attempt(JI,c,u)(t)}function c(e){return t(e)}function u(e){return o._balanced=!0,n(e)}},resolveTo:function(e,t){let n,r,o,i,a=e.length,s=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(o=a);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[o][1].end)},u={type:"labelText",start:Object.assign({},e[r+s+2][1].end),end:Object.assign({},e[o-2][1].start)};return i=[["enter",l,t],["enter",c,t]],i=zq(i,e.slice(r+1,r+s+3)),i=zq(i,[["enter",u,t]]),i=zq(i,vI(t.parser.constructs.insideSpan.null,e.slice(r+s+4,o-3),t)),i=zq(i,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]),i=zq(i,e.slice(o+1)),i=zq(i,[["exit",l,t]]),Lq(e,r,e.length,i),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}},GI={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 lI(t)?UI(e,o)(t):o(t)}function o(t){return 41===t?c(t):jI(e,i,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return lI(t)?UI(e,s)(t):c(t)}function a(e){return n(e)}function s(t){return 34===t||39===t||40===t?II(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return lI(t)?UI(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)}}},KI={tokenize:function(e,t,n){const r=this;return function(t){return qI.call(r,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(Kq(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},JI={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 eU={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"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:HI.resolveAll};const tU={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"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:HI.resolveAll};const nU={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),hI(e,t,"linePrefix")}}};const rU={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,i(e)}(t)};function i(i){return i===r?(e.enter("thematicBreakSequence"),a(i)):o>=3&&(null===i||sI(i))?(e.exit("thematicBreak"),t(i)):n(i)}function a(t){return t===r?(e.consume(t),o++,a):(e.exit("thematicBreakSequence"),cI(t)?hI(e,i,"whitespace")(t):i(t))}}};const oU={name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,a=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:oI(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(rU,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return oI(t)&&++a<10?(e.consume(t),s):(!r.interrupt||a<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(xI,r.interrupt?n:c,e.attempt(iU,d,u))}function c(e){return r.containerState.initialBlankLine=!0,i++,d(e)}function u(t){return cI(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=i+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(xI,(function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,hI(e,t,"listItemIndent",r.containerState.size+1)(n)}),(function(n){if(r.containerState.furtherBlankLines||!cI(n))return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n);return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(aU,t,o)(n)}));function o(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,hI(e,e.attempt(oU,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)}},iU={tokenize:function(e,t,n){const r=this;return hI(e,(function(e){const o=r.events[r.events.length-1];return!cI(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},aU={tokenize:function(e,t,n){const r=this;return hI(e,(function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0};const sU={name:"setextUnderline",tokenize:function(e,t,n){const r=this;let o;return function(t){let a,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){a="paragraph"===r.events[s][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||a))return e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t);return n(t)};function i(t){return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),cI(t)?hI(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||sI(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const a={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[o][1].end)):e[n][1]=a;return e.push(["exit",a,t]),e}};const lU={tokenize:function(e){const t=this,n=e.attempt(xI,(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,hI(e,e.attempt(this.parser.constructs.flow,r,e.attempt(NI,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 cU={resolveAll:fU()},uU=pU("string"),dU=pU("text");function pU(e){return{tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,a);return i;function i(e){return l(e)?o(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),o(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}},resolveAll:fU("text"===e?hU:void 0)}}function fU(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function hU(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],o=t.sliceStream(r);let i,a=o.length,s=-1,l=0;for(;a--;){const e=o[a];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)i=!0,l++;else if(-1!==e){a++;break}}if(l){const o={type:n===e.length||i||l<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-l,offset:r.end.offset-l,_index:r.start._index+a,_bufferIndex:a?s:r.start._bufferIndex+s},end:Object.assign({},r.end)};r.end=Object.assign({},o.start),r.start.offset===r.end.offset?Object.assign(r,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}function mU(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const o={},i=[];let a=[],s=[];const l={consume:function(e){sI(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===a[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]),s.push(n),n},exit:function(e){const t=s.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 o;for(;++n<e.length;){const i=e[n];let a;if("string"==typeof i)a=i;else switch(i){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&o)continue;a=" ";break;default:a=String.fromCharCode(i)}o=-2===i,r.push(a)}return r.join("")}(d(e),t)},now:p,defineSkip:function(e){o[e.line]=e.column,y()},write:function(e){if(a=zq(a,e),f(),null!==a[a.length-1])return[];return O(t,0),c.events=vI(i,c.events,c),c.events}};let u=t.tokenize.call(c,l);return t.resolveAll&&i.push(t),c;function d(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let a;if(n===o)a=[e[n].slice(r,i)];else{if(a=e.slice(n,o),r>-1){const e=a[0];"string"==typeof e?a[0]=e.slice(r):a.shift()}i>0&&a.push(e[o].slice(0,i))}return a}(a,e)}function p(){const{line:e,column:t,offset:n,_index:o,_bufferIndex:i}=r;return{line:e,column:t,offset:n,_index:o,_bufferIndex:i}}function f(){let e;for(;r._index<a.length;){const t=a[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)h(t.charCodeAt(r._bufferIndex));else h(t)}}function h(e){u=u(e)}function m(e,t){t.restore()}function g(e,t){return function(n,o,i){let a,u,d,f;return Array.isArray(n)?h(n):"tokenize"in n?h([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return h([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function h(e){return a=e,u=0,0===e.length?i:m(e[u])}function m(e){return function(n){f=function(){const e=p(),t=c.previous,n=c.currentConstruct,o=c.events.length,i=Array.from(s);return{restore:a,from:o};function a(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=o,s=i,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,f),o}function O(e){return f.restore(),++u<a.length?m(a[u]):i}}}function O(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&Lq(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 o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const gU={42:oU,43:oU,45:oU,48:oU,49:oU,50:oU,51:oU,52:oU,53:oU,54:oU,55:oU,56:oU,57:oU,62:kI},OU={91:MI},yU={[-2]:EI,[-1]:EI,32:EI},vU={35:ZI,42:rU,45:[sU,rU],60:zI,61:sU,95:rU,96:TI,126:TI},bU={38:PI,92:$I},wU={[-5]:nU,[-4]:nU,[-3]:nU,33:eU,38:PI,42:bI,60:[SI,YI],91:tU,92:[FI,$I],93:HI,95:bI,96:CI},SU={null:[bI,cU]},xU=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:OU,disable:{null:[]},document:gU,flow:vU,flowInitial:yU,insideSpan:SU,string:bU,text:wU},Symbol.toStringTag,{value:"Module"}));const kU=/[\0\t\n\r]/g;const $U=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function PU(e){return e.replace($U,_U)}function _U(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return Gq(n.slice(t?2:1),t?16:10)}return Vq(n)||e}function TU(e){return e&&"object"==typeof e?"position"in e||"type"in e?QU(e.position):"start"in e||"end"in e?QU(e):"line"in e||"column"in e?EU(e):"":""}function EU(e){return CU(e&&e.line)+":"+CU(e&&e.column)}function QU(e){return EU(e&&e.start)+"-"+EU(e&&e.end)}function CU(e){return e&&"number"==typeof e?e:1}const AU={}.hasOwnProperty;function RU(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:i(ee),autolinkProtocol:$,autolinkEmail:$,atxHeading:i(H),blockQuote:i(L),characterEscape:$,characterReference:$,codeFenced:i(z),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:i(z,a),codeText:i(W,a),codeTextData:$,data:$,codeFlowValue:$,definition:i(B),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:i(Y),hardBreakEscape:i(G),hardBreakTrailing:i(G),htmlFlow:i(K,a),htmlFlowData:$,htmlText:i(K,a),htmlTextData:$,image:i(J),label:a,link:i(ee),listItem:i(ne),listItemValue:p,listOrdered:i(te,d),listUnordered:i(te),paragraph:i(re),reference:U,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:i(H),strong:i(oe),thematicBreak:i(ae)},exit:{atxHeading:l(),atxHeadingSequence:w,autolink:l(),autolinkEmail:V,autolinkProtocol:Z,blockQuote:l(),characterEscapeValue:P,characterReferenceMarkerHexadecimal:X,characterReferenceMarkerNumeric:X,characterReferenceValue:F,codeFenced:l(g),codeFencedFence:m,codeFencedFenceInfo:f,codeFencedFenceMeta:h,codeFlowValue:P,codeIndented:l(O),codeText:l(C),codeTextData:P,data:P,definition:l(),definitionDestinationString:b,definitionLabelString:y,definitionTitleString:v,emphasis:l(),hardBreakEscape:l(T),hardBreakTrailing:l(T),htmlFlow:l(E),htmlFlowData:P,htmlText:l(Q),htmlTextData:P,image:l(R),label:D,labelText:N,lineEnding:_,link:l(A),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:M,resourceDestinationString:j,resourceTitleString:q,resource:I,setextHeading:l(k),setextHeadingLineSequence:x,setextHeadingText:S,strong:l(),thematicBreak:l()}};DU(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const i={stack:[r],tokenStack:[],config:t,enter:s,exit:c,buffer:a,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=o(e,l.pop(),d)}for(d=-1;++d<e.length;){const n=t[e[d][0]];AU.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},i),e[d][1])}if(i.tokenStack.length>0){const e=i.tokenStack[i.tokenStack.length-1];(e[1]||qU).call(i,void 0,e[0])}for(r.position={start:NU(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:NU(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 o(e,t,n){let r,o,i,a,s=t-1,l=-1,c=!1;for(;++s<=n;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||a||l||i||(i=s),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=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 a=s;for(o=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",o=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}i&&(!o||i<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){const o={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=o,e.splice(s,0,["enter",o,t[2]]),s++,n++,i=void 0,a=!0}}}return e[t][1]._spread=c,n}function i(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function a(){this.stack.push({type:"fragment",children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n]),e.position={start:NU(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+"` ("+TU({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]||qU).call(this,e,r[0])}n.position.end=NU(e.end)}function u(){return Mq(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 f(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function h(){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=Kq(this.sliceSerialize(e)).toLowerCase()}function v(){const e=this.resume();this.stack[this.stack.length-1].title=e}function b(){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=ie(),n.position={start:NU(e.start),end:void 0},t.push(n)),this.stack.push(n)}function P(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=NU(e.end)}function _(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=NU(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&($.call(this,e),P.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 N(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=PU(t),n.identifier=Kq(t).toLowerCase()}function D(){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 q(){const e=this.resume();this.stack[this.stack.length-1].title=e}function I(){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=Kq(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=Gq(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=Vq(t)}const o=this.stack.pop();o.value+=r,o.position.end=NU(e.end)}function Z(e){P.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function V(e){P.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function L(){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 oe(){return{type:"strong",children:[]}}function ie(){return{type:"text",value:""}}function ae(){return{type:"thematicBreak"}}}(n)(function(e){for(;!AI(e););return e}(function(e){const t={defined:[],lazy:{},constructs:Bq([xU,...(e||{}).extensions||[]]),content:n(mI),document:n(gI),flow:n(lU),string:n(uU),text:n(dU)};return t;function n(e){return function(n){return mU(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(o,i,a){const s=[];let l,c,u,d,p;for(o=n+("string"==typeof o?o.toString():new TextDecoder(i||void 0).decode(o)),u=0,n="",r&&(65279===o.charCodeAt(0)&&u++,r=void 0);u<o.length;){if(kU.lastIndex=u,l=kU.exec(o),d=l&&void 0!==l.index?l.index:o.length,p=o.charCodeAt(d),!l){n=o.slice(u);break}if(10===p&&u===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<d&&(s.push(o.slice(u,d)),t+=d-u),p){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return a&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(e,t,!0))))}function NU(e){return{line:e.line,column:e.column,offset:e.offset}}function DU(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?DU(e,r):jU(e,r)}}function jU(e,t){let n;for(n in t)if(AU.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 qU(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+TU({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+TU({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+TU({start:t.start,end:t.end})+") is still open")}function IU(e){const t=this;t.parser=function(n){return RU(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const UU={}.hasOwnProperty;function MU(e,t){const n=t||{};function r(t,...n){let o=r.invalid;const i=r.handlers;if(t&&UU.call(t,e)){const n=String(t[e]);o=UU.call(i,n)?i[n]:r.unknown}if(o)return o.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const XU={}.hasOwnProperty;function FU(e,t){let n,r=-1;if(t.extensions)for(;++r<t.extensions.length;)FU(e,t.extensions[r]);for(n in t)if(XU.call(t,n))switch(n){case"extensions":break;case"unsafe":case"join":ZU(e[n],t[n]);break;case"handlers":VU(e[n],t[n]);break;default:e.options[n]=t[n]}return e}function ZU(e,t){t&&e.push(...t)}function VU(e,t){t&&Object.assign(e,t)}function LU(e,t,n){return">"+(n?"":" ")+e}function zU(e,t){return WU(e,t.inConstruct,!0)&&!WU(e,t.notInConstruct,!1)}function WU(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 BU(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;)if("\n"===n.unsafe[o].character&&zU(n.stack,n.unsafe[o]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}function YU(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 HU(e,t,n){return(n?"":" ")+e}function GU(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 KU(e,t,n,r){const o=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),i=n.enter("emphasis"),a=n.createTracker(r);let s=a.move(o);return s+=a.move(n.containerPhrasing(e,{before:s,after:o,...a.current()})),s+=a.move(o),i(),s}KU.peek=function(e,t,n){return n.options.emphasis||"*"};const JU=function(e){if(null==e)return tM;if("function"==typeof e)return eM(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=JU(e[n]);return eM(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 eM(n);function n(n){const r=n;let o;for(o in e)if(r[o]!==t[o])return!1;return!0}}(e);if("string"==typeof e)return function(e){return eM(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function eM(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 tM(){return!0}const nM=[],rM=!0,oM=!1,iM="skip";function aM(e,t,n,r){let o;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):o=t;const i=JU(o),a=r?-1:1;!function e(o,s,l){const c=o&&"object"==typeof o?o:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,p=nM;if((!t||i(o,s,l[l.length-1]||void 0))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[rM,e];return null==e?nM:[e]}(n(o,l)),p[0]===oM))return p;if("children"in o&&o.children){const t=o;if(t.children&&p[0]!==iM)for(u=(r?t.children.length:-1)+a,d=l.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),c[0]===oM)return c;u="number"==typeof c[1]?c[1]:u+a}}return p}}(e,void 0,[])()}function sM(e,t,n,r){let o,i,a;"function"==typeof t&&"function"!=typeof n?(i=void 0,a=t,o=n):(i=t,a=n,o=r),aM(e,i,(function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)}),o)}function lM(e,t){let n=!1;return sM(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,oM})),Boolean((!e.depth||e.depth<3)&&Mq(e)&&(t.options.setext||n))}function cM(e){return e.value||""}function uM(e,t,n,r){const o=GU(n),i='"'===o?"Quote":"Apostrophe",a=n.enter("image");let s=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("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=l.move(" "+o),c+=l.move(n.safe(e.title,{before:c,after:o,...l.current()})),c+=l.move(o),s()),c+=l.move(")"),a(),c}function dM(e,t,n,r){const o=e.referenceType,i=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=u,i(),"full"!==o&&c&&c===d?"shortcut"===o?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function pM(e,t,n){let r=e.value||"",o="`",i=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const e=n.unsafe[i],t=n.compilePattern(e);let o;if(e.atBreak)for(;o=t.exec(r);){let e=o.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(o.index+1)}}return o+r+o}function fM(e,t){const n=Mq(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 hM(e,t,n,r){const o=GU(n),i='"'===o?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(fM(e,n)){const t=n.stack;n.stack=[],s=n.enter("autolink");let r=a.move("<");return r+=a.move(n.containerPhrasing(e,{before:r,after:">",...a.current()})),r+=a.move(">"),s(),n.stack=t,r}s=n.enter("link"),l=n.enter("label");let c=a.move("[");return c+=a.move(n.containerPhrasing(e,{before:c,after:"](",...a.current()})),c+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(l=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${i}`),c+=a.move(" "+o),c+=a.move(n.safe(e.title,{before:c,after:o,...a.current()})),c+=a.move(o),l()),c+=a.move(")"),s(),c}function mM(e,t,n,r){const o=e.referenceType,i=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=u,i(),"full"!==o&&c&&c===d?"shortcut"===o?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function gM(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 OM(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}cM.peek=function(){return"<"},uM.peek=function(){return"!"},dM.peek=function(){return"!"},pM.peek=function(){return"`"},hM.peek=function(e,t,n){return fM(e,n)?"<":"["},mM.peek=function(){return"["};const yM=JU(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);function vM(e,t,n,r){const o=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),i=n.enter("strong"),a=n.createTracker(r);let s=a.move(o+o);return s+=a.move(n.containerPhrasing(e,{before:s,after:o,...a.current()})),s+=a.move(o+o),i(),s}vM.peek=function(e,t,n){return n.options.strong||"*"};const bM={blockquote:function(e,t,n,r){const o=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const a=n.indentLines(n.containerFlow(e,i.current()),LU);return o(),a},break:BU,code:function(e,t,n,r){const o=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),i=e.value||"",a="`"===o?"GraveAccent":"Tilde";if(YU(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(i,HU);return e(),t}const s=n.createTracker(r),l=o.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),o=r,i=0,a=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===o?++i>a&&(a=i):i=1,o=r+t.length,r=n.indexOf(t,o);return a}(i,o)+1,3)),c=n.enter("codeFenced");let u=s.move(l);if(e.lang){const t=n.enter(`codeFencedLang${a}`);u+=s.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${a}`);u+=s.move(" "),u+=s.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),i&&(u+=s.move(i+"\n")),u+=s.move(l),c(),u},definition:function(e,t,n,r){const o=GU(n),i='"'===o?"Quote":"Apostrophe",a=n.enter("definition");let s=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("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=l.move(" "+o),c+=l.move(n.safe(e.title,{before:c,after:o,...l.current()})),c+=l.move(o),s()),a(),c},emphasis:KU,hardBreak:BU,heading:function(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(lM(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),a=n.containerPhrasing(e,{...i.current(),before:"\n",after:"\n"});return r(),t(),a+"\n"+(1===o?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}const a="#".repeat(o),s=n.enter("headingAtx"),l=n.enter("phrasing");i.move(a+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...i.current()});return/^[\t ]/.test(c)&&(c="&#x"+c.charCodeAt(0).toString(16).toUpperCase()+";"+c.slice(1)),c=c?a+" "+c:a,n.options.closeAtx&&(c+=" "+a),l(),s(),c},html:cM,image:uM,imageReference:dM,inlineCode:pM,link:hM,linkReference:mM,list:function(e,t,n,r){const o=n.enter("list"),i=n.bulletCurrent;let a=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):gM(n);const s=e.ordered?"."===a?")":".":function(e){const t=gM(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)&&a===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==a&&"-"!==a||!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),OM(n)===a&&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&&(a=s),n.bulletCurrent=a;const c=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=i,o(),c},listItem:function(e,t,n,r){const o=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let i=n.bulletCurrent||gM(n);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i);let a=i.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const s=n.createTracker(r);s.move(i+" ".repeat(a-i.length)),s.shift(a);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),(function(e,t,n){if(t)return(n?"":" ".repeat(a))+e;return(n?i:i+" ".repeat(a-i.length))+e}));return l(),c},paragraph:function(e,t,n,r){const o=n.enter("paragraph"),i=n.enter("phrasing"),a=n.containerPhrasing(e,r);return i(),o(),a},root:function(e,t,n,r){return(e.children.some((function(e){return yM(e)}))?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:vM,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(OM(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}},wM=[function(e,t,n,r){if("code"===t.type&&YU(t,r)&&("list"===e.type||e.type===t.type&&YU(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&&lM(t,r)))return;return n.spread?1:0}}];const SM=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],xM=[{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:SM},{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:SM},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:"(?:[ \t\r\n*])"},{character:"*",inConstruct:"phrasing",notInConstruct:SM},{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:SM},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:SM},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:SM},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:SM},{atBreak:!0,character:"~"}];function kM(e){return e.label||!e.identifier?e.label||"":PU(e.identifier)}function $M(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 PM(e,t,n,r){let o=r.join.length;for(;o--;){const i=r.join[o](e,t,n,r);if(!0===i||1===i)break;if("number"==typeof i)return"\n".repeat(1+i);if(!1===i)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}const _M=/\r?\n|\r/g;function TM(e,t){const n=[];let r,o=0,i=0;for(;r=_M.exec(e);)a(e.slice(o,r.index)),n.push(r[0]),o=r.index+r[0].length,i++;return a(e.slice(o)),n.join("");function a(e){n.push(t(e,i,!e))}}function EM(e,t){return e-t}function QM(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,r=[],o=[],i=e+t;let a,s=-1,l=0;for(;a=n.exec(i);)r.push(a.index);for(;++s<r.length;)l!==r[s]&&o.push(e.slice(l,r[s])),o.push("\\"),l=r[s];return o.push(e.slice(l)),o.join("")}function CM(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,o=n.line||1,i=n.column||1;return{move:function(e){const t=e||"",n=t.split(/\r?\n|\r/g),a=n[n.length-1];return o+=n.length-1,i=1===n.length?i+a.length:1+a.length+r,t},current:function(){return{now:{line:o,column:i},lineShift:r}},shift:function(e){r+=e}}}function AM(e,t={}){const n={enter:function(e){return n.stack.push(e),function(){n.stack.pop()}},indentLines:TM,associationId:kM,containerPhrasing:jM,containerFlow:qM,createTracker:CM,compilePattern:$M,safe:IM,stack:[],unsafe:[...xM],join:[...wM],handlers:{...bM},options:{},indexStack:[],handle:void 0};FU(n,t),n.options.tightDefinitions&&n.join.push(DM),n.handle=MU("type",{invalid:RM,unknown:NM,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 RM(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function NM(e){throw new Error("Cannot handle unknown node `"+e.type+"`")}function DM(e,t){if("definition"===e.type&&e.type===t.type)return 0}function jM(e,t){return function(e,t,n){const r=t.indexStack,o=e.children||[],i=[];let a=-1,s=n.before;r.push(-1);let l=t.createTracker(n);for(;++a<o.length;){const c=o[a];let u;if(r[r.length-1]=a,a+1<o.length){let n=t.handle.handlers[o[a+1].type];n&&n.peek&&(n=n.peek),u=n?n(o[a+1],e,t,{before:"",after:"",...l.current()}).charAt(0):""}else u=n.after;i.length>0&&("\r"===s||"\n"===s)&&"html"===c.type&&(i[i.length-1]=i[i.length-1].replace(/(\r?\n|\r)$/," "),s=" ",l=t.createTracker(n),l.move(i.join(""))),i.push(l.move(t.handle(c,e,t,{...l.current(),before:s,after:u}))),s=i[i.length-1].slice(-1)}return r.pop(),i.join("")}(e,this,t)}function qM(e,t){return function(e,t,n){const r=t.indexStack,o=e.children||[],i=t.createTracker(n),a=[];let s=-1;for(r.push(-1);++s<o.length;){const n=o[s];r[r.length-1]=s,a.push(i.move(t.handle(n,e,t,{before:"\n",after:"\n",...i.current()}))),"list"!==n.type&&(t.bulletLastUsed=void 0),s<o.length-1&&a.push(i.move(PM(n,o[s+1],e,t)))}return r.pop(),a.join("")}(e,this,t)}function IM(e,t){return function(e,t,n){const r=(n.before||"")+(t||"")+(n.after||""),o=[],i=[],a={};let s=-1;for(;++s<e.unsafe.length;){const t=e.unsafe[s];if(!zU(e.stack,t))continue;const n=e.compilePattern(t);let i;for(;i=n.exec(r);){const e="before"in t||Boolean(t.atBreak),n="after"in t,r=i.index+(e?i[1].length:0);o.includes(r)?(a[r].before&&!e&&(a[r].before=!1),a[r].after&&!n&&(a[r].after=!1)):(o.push(r),a[r]={before:e,after:n})}}o.sort(EM);let l=n.before?n.before.length:0;const c=r.length-(n.after?n.after.length:0);for(s=-1;++s<o.length;){const e=o[s];e<l||e>=c||e+1<c&&o[s+1]===e+1&&a[e].after&&!a[e+1].before&&!a[e+1].after||o[s-1]===e-1&&a[e].before&&!a[e-1].before&&!a[e-1].after||(l!==e&&i.push(QM(r.slice(l,e),"\\")),l=e,!/[!-/:-@[-`{-~]/.test(r.charAt(e))||n.encode&&n.encode.includes(r.charAt(e))?(i.push("&#x"+r.charCodeAt(e).toString(16).toUpperCase()+";"),l++):i.push("\\"))}return i.push(QM(r.slice(l,c),n.after)),i.join("")}(this,e,t)}function UM(e){if(e)throw e}var MM=Object.prototype.hasOwnProperty,XM=Object.prototype.toString,FM=Object.defineProperty,ZM=Object.getOwnPropertyDescriptor,VM=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===XM.call(e)},LM=function(e){if(!e||"[object Object]"!==XM.call(e))return!1;var t,n=MM.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&MM.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||MM.call(e,t)},zM=function(e,t){FM&&"__proto__"===t.name?FM(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},WM=function(e,t){if("__proto__"===t){if(!MM.call(e,t))return;if(ZM)return ZM(e,t).value}return e[t]},BM=function e(){var t,n,r,o,i,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=WM(s,n),s!==(o=WM(t,n))&&(u&&o&&(LM(o)||(i=VM(o)))?(i?(i=!1,a=r&&VM(r)?r:[]):a=r&&LM(r)?r:{},zM(s,{name:n,newValue:e(u,a,o)})):void 0!==o&&zM(s,{name:n,newValue:o}));return s};const YM=r(BM);function HM(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 GM(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(i,...a){const s=e[++n];let l=-1;if(i)r(i);else{for(;++l<t.length;)null!==a[l]&&void 0!==a[l]||(a[l]=t[l]);t=a,s?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let s;r&&t.push(o);try{s=e.apply(this,t)}catch(i){if(r&&n)throw i;return o(i)}r||(s instanceof Promise?s.then(a,o):s instanceof Error?o(s):a(s))}function o(e,...r){n||(n=!0,t(e,...r))}function a(e){o(null,e)}}(s,o)(...a):r(null,...a)}}(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 KM extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",o={},i=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!o.cause&&e&&(i=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=a?a.line:void 0,this.name=TU(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=i&&o.cause&&"string"==typeof o.cause.stack?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}KM.prototype.file="",KM.prototype.name="",KM.prototype.reason="",KM.prototype.message="",KM.prototype.stack="",KM.prototype.column=void 0,KM.prototype.line=void 0,KM.prototype.ancestors=void 0,KM.prototype.cause=void 0,KM.prototype.fatal=void 0,KM.prototype.place=void 0,KM.prototype.ruleId=void 0,KM.prototype.source=void 0;const JM={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');eX(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(o=i):(s=-1,o=a));r===o?o=a:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(eX(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){eX(e);let t,n=e.length,r=-1,o=0,i=-1,a=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?i<0?i=n:1!==a&&(a=1):i>-1&&(a=-1);else if(t){o=n+1;break}}if(i<0||r<0||0===a||1===a&&i===r-1&&i===o+1)return"";return e.slice(i,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)eX(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){eX(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,o="",i=0,a=-1,s=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(a===l-1||1===s);else if(a!==l-1&&2===s){if(o.length<2||2!==i||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),a=l,s=0;continue}}else if(o.length>0){o="",i=0,a=l,s=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(a+1,l):o=e.slice(a+1,l),i=l-a-1;a=l,s=0}else 46===n&&s>-1?s++:s=-1}return o}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function eX(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const tX={cwd:function(){return"/"}};function nX(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function rX(e){if("string"==typeof e)e=new URL(e);else if(!nX(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 oX=["history","path","basename","stem","extname","dirname"];class iX{constructor(e){let t;t=e?nX(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=tX.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<oX.length;){const e=oX[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)oX.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?JM.basename(this.path):void 0}set basename(e){sX(e,"basename"),aX(e,"basename"),this.path=JM.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?JM.dirname(this.path):void 0}set dirname(e){lX(this.basename,"dirname"),this.path=JM.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?JM.extname(this.path):void 0}set extname(e){if(aX(e,"extname"),lX(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=JM.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){nX(e)&&(e=rX(e)),sX(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?JM.basename(this.path,this.extname):void 0}set stem(e){sX(e,"stem"),aX(e,"stem"),this.path=JM.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 KM(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 aX(e,t){if(e&&e.includes(JM.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+JM.sep+"`")}function sX(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function lX(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const cX=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};Object.setPrototypeOf(r,t);const o=Object.getOwnPropertyNames(n);for(const i of o){const e=Object.getOwnPropertyDescriptor(n,i);e&&Object.defineProperty(r,i,e)}return r},uX={}.hasOwnProperty;class dX extends cX{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=GM()}copy(){const e=new dX;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(YM(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(mX("data",this.frozen),this.namespace[e]=t,this):uX.call(this.namespace,e)&&this.namespace[e]||void 0:e?(mX("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=yX(e),n=this.parser||this.Parser;return fX("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),fX("process",this.parser||this.Parser),hX("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const i=yX(e),a=n.parse(i);function s(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(a,i,(function(e,t,r){if(e||!t||!r)return s(e);const o=t,i=n.stringify(o,r);var a;"string"==typeof(a=i)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(a)?r.value=i:r.result=i,s(e,r)}))}}processSync(e){let t,n=!1;return this.freeze(),fX("processSync",this.parser||this.Parser),hX("processSync",this.compiler||this.Compiler),this.process(e,(function(e,r){n=!0,UM(e),t=r})),OX("processSync","process",n),t}run(e,t,n){gX(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?o(void 0,n):new Promise(o);function o(o,i){const a=yX(t);r.run(e,a,(function(t,r,a){const s=r||e;t?i(t):o?o(s):n(void 0,s,a)}))}}runSync(e,t){let n,r=!1;return this.run(e,t,(function(e,t){UM(e),n=t,r=!0})),OX("runSync","run",r),n}stringify(e,t){this.freeze();const n=yX(t),r=this.compiler||this.Compiler;return hX("stringify",r),gX(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(mX("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?a(e):i(e)}return this;function o(e){if("function"==typeof e)s(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;s(t,n)}else i(e)}}function i(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(e.plugins),e.settings&&(r.settings=YM(!0,r.settings,e.settings))}function a(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){o(e[t])}}}function s(e,t){let r=-1,o=-1;for(;++r<n.length;)if(n[r][0]===e){o=r;break}if(-1===o)n.push([e,...t]);else if(t.length>0){let[r,...i]=t;const a=n[o][1];HM(a)&&HM(r)&&(r=YM(!0,a,r)),n[o]=[e,r,...i]}}}}const pX=(new dX).freeze();function fX(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function hX(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function mX(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 gX(e){if(!HM(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function OX(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function yX(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new iX(e)}const vX=pX().use(IU).use((function(e){const t=this;t.compiler=function(n){return AM(n,{...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]})}})).use((function(){return(e,t)=>{t.data.headings=Dq(e)}})),bX=async e=>{const t=new Iq,{headings:n}=(await vX.process(e)).data;return wX(n,t)},wX=(e,t)=>e.map((e=>({...e,slug:t.slug(e.value)}))),SX=e=>{const t=Math.min(...e.map((e=>e.depth)));return t>=1&&t<=6?t:1},xX=e=>{if(!e)return"models";return`model/${(new Iq).slug(e)}`},kX=e=>`tag/${(new Iq).slug(e.name)}`,$X=(e,t)=>`${kX(t)}/[${e.httpVerb}]${e.path}`;function PX(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?VE(e.schema):"",required:e.required??!1,enabled:!0})))}function _X(e){var t;const n=[],r=[],o=[];if(e.securitySchemeKey){const a=null==(t=e.securitySchemes)?void 0:t[e.securitySchemeKey];a&&("apiKey"===a.type?"header"===a.in?n.push({name:a.name,value:e.apiKey.token}):"cookie"===a.in?o.push({name:a.name,value:e.apiKey.token}):"query"===a.in&&r.push({name:a.name,value:e.apiKey.token}):"http"!==a.type&&"basic"!==a.type||("basic"===a.type||"basic"===a.scheme?n.push({name:"Authorization",value:`Basic ${i.Buffer.from(`${e.http.basic.username}:${e.http.basic.password}`).toString("base64")}`}):"bearer"===a.scheme&&n.push({name:"Authorization",value:`Bearer ${e.http.bearer.token}`})))}return{headers:n,queryString:r,cookies:o}}function TX(e,t){const n=function(e,t,r){let o="";if(e instanceof Array)for(let i=0,a=e.length;i<a;i++)o+=r+n(e[i],t,r+"\t")+"\n";else if("object"==typeof e){let i=!1;o+=r+"<"+t;for(const t in e)"@"==t.charAt(0)?o+=" "+t.substr(1)+'="'+e[t].toString()+'"':i=!0;if(o+=i?">":"/>",i){for(const t in e)"#text"==t?o+=e[t]:"#cdata"==t?o+="<![CDATA["+e[t]+"]]>":"@"!=t.charAt(0)&&(o+=n(e[t],t,r+"\t"));o+=("\n"==o.charAt(o.length-1)?r:"")+"</"+t+">"}}else o+=r+"<"+t+">"+e.toString()+"</"+t+">";return o};let r="";for(const o in e)r+=n(e[o],o,"");return t?r.replace(/\t/g,t):r.replace(/\t|\n/g,"")}const EX=(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 o=["application/json","application/octet-stream","application/x-www-form-urlencoded","application/xml","multipart/form-data","text/plain"].find((t=>{var n,r,o;return!!(null==(o=null==(r=null==(n=e.information)?void 0:n.requestBody)?void 0:r.content)?void 0:o[t])}));if(!o)return null;const i=null==(r=null==(n=null==(t=e.information)?void 0:t.requestBody)?void 0:n.content)?void 0:r[o],a=[{name:"Content-Type",value:o}],s=(null==i?void 0:i.example)?null==i?void 0:i.example:void 0;if("application/json"===o){const e=(null==i?void 0:i.schema)?VE(null==i?void 0:i.schema):null;return{headers:a,postData:{mimeType:o,text:s??JSON.stringify(e,null,2)}}}if("application/xml"===o){const e=(null==i?void 0:i.schema)?VE(null==i?void 0:i.schema,{xml:!0}):null;return{headers:a,postData:{mimeType:o,text:s??TX(e," ")}}}if("application/octet-stream"===o)return{headers:a,postData:{mimeType:o,text:"BINARY"}};if("text/plain"===o){const e=(null==i?void 0:i.schema)?VE(null==i?void 0:i.schema,{xml:!0}):null;return{headers:a,postData:{mimeType:o,text:s??e??""}}}if("application/x-www-form-urlencoded"===o)return{headers:a,postData:{mimeType:o}};if("multipart/form-data"===o)return{headers:a,postData:{mimeType:o}};return}(e);return{method:e.httpVerb.toUpperCase(),path:n,headers:[...PX(e,"header"),...(null==r?void 0:r.headers)??[]],postData:null==r?void 0:r.postData,queryString:PX(e,"query"),cookies:PX(e,"cookie")}};function QX(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 CX(e){var t,n,r,o;let i=null===e.selectedServer?(null==(n=null==(t=null==e?void 0:e.servers)?void 0:t[0])?void 0:n.url)??void 0:null==(o=null==(r=null==e?void 0:e.servers)?void 0:r[e.selectedServer])?void 0:o.url;return(null==i?void 0:i.startsWith("/"))&&(i=`${window.location.origin}${i.slice(1)}`),i?QX(i,null==e?void 0:e.variables):void 0}const AX=e=>{var t;return!!e&&!!Object.keys((null==(t=null==e?void 0:e.components)?void 0:t.schemas)??{}).length},RX=e=>{var t;return!!Object.keys((null==(t=null==e?void 0:e.components)?void 0:t.securitySchemes)??{}).length},NX=e=>{if("string"!=typeof e)return!1;try{JSON.parse(e)}catch{return!1}return!0};const DX=(e,t)=>Object.keys(e).map((n=>({[t??n]:n,value:e[n]})));const jX=Yt({securitySchemeKey:null,http:{basic:{username:"",password:""},bearer:{token:""}},apiKey:{token:""},oAuth2:{clientId:"",scopes:[]}}),qX=e=>{Object.assign(jX,{...jX,...e})},IX=Yt({selectedServer:null,servers:[],variables:[]}),UX=e=>{Object.assign(IX,{...IX,...e})},MX=()=>({authentication:jX,setAuthentication:qX,server:IX,setServer:UX}),{server:XX,authentication:FX}=MX(),{toggleApiClient:ZX}=KE(),{setActiveRequest:VX,resetActiveResponse:LX}=uQ();function zX(e){const t=CT({serverState:XX,authenticationState:FX,operation:e});LX(),VX(t),ZX(t,!0)}const WX=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}},BX=async e=>{var t;null==(t=document.getElementById(e))||t.scrollIntoView()};
16
+ */function Yj(e){var t=String(e);if(Lj.test(t))return t;if(t.length>0&&!Vj.test(t))throw new TypeError("invalid parameter value");return'"'+t.replace(Wj,"\\$1")+'"'}function Hj(e){this.parameters=Object.create(null),this.type=e}Fj.format=function(e){if(!e||"object"!=typeof e)throw new TypeError("argument obj is required");var t=e.parameters,n=e.type;if(!n||!Bj.test(n))throw new TypeError("invalid type");var r=n;if(t&&"object"==typeof t)for(var o,i=Object.keys(t).sort(),a=0;a<i.length;a++){if(o=i[a],!Lj.test(o))throw new TypeError("invalid parameter name");r+="; "+o+"="+Yj(t[o])}return r},Fj.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(!Bj.test(r))throw new TypeError("invalid media type");var o=new Hj(r.toLowerCase());if(-1!==n){var i,a,s;for(Zj.lastIndex=n;a=Zj.exec(t);){if(a.index!==n)throw new TypeError("invalid parameter format");n+=a[0].length,i=a[1].toLowerCase(),34===(s=a[2]).charCodeAt(0)&&-1!==(s=s.slice(1,-1)).indexOf("\\")&&(s=s.replace(zj,"$1")),o.parameters[i]=s}if(n!==t.length)throw new TypeError("invalid parameter format")}return o};const Gj={key:1,class:"scalar-api-client__empty-state"},Kj={key:1,class:"scalar-api-client__empty-state"},Jj=Gr({__name:"ResponseBody",props:{active:{type:Boolean,default:!1},data:{default:null},headers:{}},setup(e){const t=e,n=Ua((()=>{const e=t.headers.find((e=>"content-type"===e.name.toLowerCase()));if(!e)return null;try{return Fj.parse(e.value).type}catch{return null}})),r=Ua((()=>"application/json"===n.value?["json"]:"text/html"===n.value||"text/plain"===n.value?["html"]:null));return(e,t)=>(Zi(),Bi(mn(sD),{title:"Body"},{default:Pr((()=>[e.active?(Zi(),Wi(qi,{key:0},[r.value?(Zi(),Bi(mn(tT),{key:0,content:e.data,languages:r.value,readOnly:""},null,8,["content","languages"])):(Zi(),Wi("div",Gj,[n.value?(Zi(),Wi(qi,{key:0},[aa(" No Preview Available ("+Re(n.value)+") ",1)],64)):(Zi(),Wi(qi,{key:1},[aa(" Can’t render a preview. The Content-Type header is missing or unknown. ")],64))]))],64)):(Zi(),Wi("div",Kj," No Response "))])),_:1}))}}),eq=["href"],tq=bl(Gr({__name:"HelpfulLink",props:{href:{}},setup:e=>(e,t)=>(Zi(),Wi("a",{href:e.href,rel:"noopener noreferrer",target:"_blank"},[$o(e.$slots,"default",{},void 0,!0)],8,eq))}),[["__scopeId","data-v-d11ff062"]]),nq=bl(Gr({__name:"SimpleCell",props:{wrap:{type:Boolean,default:!0},strong:{type:Boolean,default:!1},href:{default:null}},setup:e=>(e,t)=>(Zi(),Wi("td",{class:$e(["simple-cell",{wrap:e.wrap,strong:e.strong}])},[e.href?(Zi(),Bi(tq,{key:0,href:e.href},{default:Pr((()=>[$o(e.$slots,"default",{},void 0,!0)])),_:3},8,["href"])):$o(e.$slots,"default",{key:1},void 0,!0)],2))}),[["__scopeId","data-v-01fffd78"]]),rq=bl(Gr({__name:"SimpleHeader",setup:e=>(e,t)=>(Zi(),Bi(nq,{as:"th",class:"simple-header"},{default:Pr((()=>[$o(e.$slots,"default",{},void 0,!0)])),_:3}))}),[["__scopeId","data-v-b2232089"]]),oq={class:"simple-row"};const iq=bl({},[["render",function(e,t){return Zi(),Wi("tr",oq,[$o(e.$slots,"default",{},void 0,!0)])}],["__scopeId","data-v-0982ade4"]]),aq={class:"simple-table"};const sq=bl({},[["render",function(e,t){return Zi(),Wi("table",aq,[$o(e.$slots,"default",{},void 0,!0)])}],["__scopeId","data-v-28fcbcb6"]]),lq={key:1,class:"scalar-api-client__empty-state"},cq=Gr({__name:"ResponseHeaders",props:{headers:{}},setup(e){const t=e=>e.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join("-");return(e,n)=>(Zi(),Bi(mn(sD),{title:"Headers"},{default:Pr((()=>[e.headers.length>0?(Zi(),Bi(mn(sq),{key:0},{default:Pr((()=>[ta(mn(iq),null,{default:Pr((()=>[ta(mn(rq),null,{default:Pr((()=>[aa("Key")])),_:1}),ta(mn(rq),null,{default:Pr((()=>[aa("Value")])),_:1})])),_:1}),(Zi(!0),Wi(qi,null,xo(e.headers,(e=>(Zi(),Bi(mn(iq),{key:e.name},{default:Pr((()=>{return[ta(mn(nq),{href:(n=e.name,null==(r=vA.find((e=>e.name.toLowerCase()===n.toLowerCase())))?void 0:r.url),strong:!0,wrap:!1},{default:Pr((()=>[aa(Re(t(e.name)),1)])),_:2},1032,["href"]),ta(mn(nq),null,{default:Pr((()=>[aa(Re(e.value),1)])),_:2},1024)];var n,r})),_:2},1024)))),128))])),_:1})):(Zi(),Wi("div",lq,"No Headers"))])),_:1}))}}),uq={class:"meta-item"},dq={class:"meta-item"},pq={class:"meta-item"},fq=Gr({__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"])?QN(parseFloat(e.headers["X-API-Client-Content-Length"])):QN(0)},r=Ua((()=>{const e=t.response.statusCode;if(e)return wA[e]??void 0}));return(e,t)=>{var o,i;return Zi(),Wi(qi,null,[ea("div",uq,[ea("span",null,Re(mn(CN)(e.response.duration)),1)]),ea("div",dq,[ea("span",null,Re(n(e.response)),1)]),ea("div",pq,[ea("span",{class:$e(`scalar-api-client__status scalar-api-client__status--${String(e.response.statusCode).charAt(0)}xx`)},[(null==(o=r.value)?void 0:o.url)?(Zi(),Bi(tq,{key:0,href:r.value.url},{default:Pr((()=>[aa(Re(e.response.statusCode)+" "+Re(r.value.name),1)])),_:1},8,["href"])):(Zi(),Wi(qi,{key:1},[aa(Re(e.response.statusCode)+" "+Re(null==(i=r.value)?void 0:i.name),1)],64))],2)])],64)}}}),hq={class:"scalar-api-client__main__right custom-scroll"},mq={class:"scalar-api-client__main__content"},gq=ea("label",null,"Response",-1),Oq={class:"meta"},yq={key:1,class:"meta-item"},vq=[ea("span",null,"Send your first request to start",-1)],bq={key:0,class:"scalar-api-client__empty-state"},wq=ea("div",{class:"scalar-api-client__main__scroll-container"},null,-1),Sq=Gr({__name:"Response",setup(e){const{activeResponse:t,activeRequestId:n}=uQ(),r=Ua((()=>{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))):[]})),o=Ua((()=>{var e;const n=null==(e=t.value)?void 0:e.cookies;return n?Object.keys(n).map((e=>({name:e,value:n[e]}))):[]})),i=Ua((()=>{var e;const n=null==(e=t.value)?void 0:e.data;return n&&OA(n)?JSON.stringify(JSON.parse(n),null,2):n&&"object"==typeof rn(n)||n&&!OA(n)?JSON.stringify(n,null,2):n}));return(e,a)=>(Zi(),Wi("div",hq,[ea("div",mq,[gq,ea("div",Oq,[mn(n)&&mn(t)?(Zi(),Bi(fq,{key:0,response:mn(t)},null,8,["response"])):(Zi(),Wi("div",yq,vq))])]),ea("div",null,[ta(Jj,{active:!!mn(t),data:i.value,headers:r.value},null,8,["active","data","headers"]),ta(cq,{headers:r.value},null,8,["headers"]),ta(mn(sD),{title:"Cookies"},{default:Pr((()=>[Vr(ta(mn(vj),{items:o.value},null,8,["items"]),[[Ys,o.value.length>0]]),0===o.value.length?(Zi(),Wi("div",bq,"No Cookies")):la("",!0)])),_:1}),wq])]))}}),xq={class:"scalar-api-client__main"},kq=Gr({__name:"ApiClient",props:{proxyUrl:{},readOnly:{type:Boolean,default:!1},theme:{}},emits:["escapeKeyPress"],setup(e,{emit:t}){const n=e,{activeRequest:r,readOnly:o}=uQ(),i=Md("(max-width: 820px)"),a=dn(0),s=1;function l(e){a.value=e}return Ir((()=>n.readOnly),(()=>{o.value=n.readOnly}),{immediate:!0}),LE({keyList:["escape"],handler:()=>t("escapeKeyPress")}),(e,n)=>(Zi(),Wi(qi,null,[ta(mn(Ol),{id:e.theme},null,8,["id"]),ea("div",{class:$e(["scalar-api-client",`scalar-api-client--${mn(r).type.toLowerCase()||"get"}`]),onKeydown:n[1]||(n[1]=Bs((e=>t("escapeKeyPress")),["esc"]))},[ta(nD,{proxyUrl:e.proxyUrl,onOnSend:n[0]||(n[0]=e=>l(s))},null,8,["proxyUrl"]),ea("div",xq,[mn(i)?(Zi(),Bi(mn(Sd),{key:1,selectedIndex:a.value,onChange:l},{default:Pr((()=>[ta(mn(xd),{class:"scalar-api-client__mobile-navigation"},{default:Pr((()=>[ta(mn(kd),{class:"scalar-api-client__mobile-navigation__toggle"},{default:Pr((({selected:e})=>[ea("span",{class:$e({"scalar-api-client__mobile-navigation--active":e})}," Request ",2)])),_:1}),ta(mn(kd),{class:"scalar-api-client__mobile-navigation__toggle"},{default:Pr((({selected:e})=>[ea("span",{class:$e({"scalar-api-client__mobile-navigation--active":e})}," Response ",2)])),_:1})])),_:1}),ta(mn($d),{as:"template"},{default:Pr((()=>[ta(mn(Pd),{as:"template"},{default:Pr((()=>[ta(mn(Xj))])),_:1}),ta(mn(Pd),{as:"template"},{default:Pr((()=>[ta(mn(Sq))])),_:1})])),_:1})])),_:1},8,["selectedIndex"])):(Zi(),Wi(qi,{key:0},[ta(mn(Xj)),ta(mn(Sq))],64))])],34)],64))}}),$q=(...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=DX(vN.from(yA(t.headers,"name","value")).normalize(!0),"name");const{path:n,...r}=t;return n?{...r,url:`${t.url}${n}`}:r},Pq=e=>e.slug?`description/${e.slug}`:"",_q=function(e){if(null==e)return Eq;if("string"==typeof e)return function(e){return Tq(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]=_q(e[n]);return Tq(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 Tq(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 Tq(e);throw new Error("Expected function, string, or object as test")};function Tq(e){return function(t,...n){return Boolean(t&&"object"==typeof t&&"type"in t&&Boolean(e.call(this,t,...n)))}}function Eq(){return!0}const Qq=function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null);const o=_q(t),i=r?-1:1;!function e(a,s,l){const c=a&&"object"==typeof a?a:{};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 ("+a.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,p=[];if((!t||o(a,s,l[l.length-1]||null))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[true,e];return[e]}(n(a,l)),false===p[0]))return p;if(a.children&&"skip"!==p[0])for(u=(r?a.children.length:-1)+i,d=l.concat(a);u>-1&&u<a.children.length;){if(c=e(a.children[u],u,d)(),false===c[0])return c;u="number"==typeof c[1]?c[1]:u+i}return p}}(e,void 0,[])()};const Cq={};function Aq(e,t){const n=t||Cq;return Rq(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function Rq(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 Nq(e.children,t,n)}return Array.isArray(e)?Nq(e,t,n):""}function Nq(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=Rq(e[o],t,n);return r.join("")}const Dq=e=>{const t=[];var n,r,o;return r=e=>{const n={depth:e.depth,value:Aq(e,{includeImageAlt:!1})},r=null==e?void 0:e.data;r&&(n.data=r),t.push(n)},"function"==typeof(n="heading")&&"function"!=typeof r&&(o=r,r=n,n=null),Qq(e,n,(function(e,t){const n=t[t.length-1];return r(e,n?n.children.indexOf(e):null,n)}),o),t};const jq=/[\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,qq=Object.hasOwnProperty;class Iq{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(jq,"").replace(/ /g,"-")}(e,!0===t);const o=r;for(;qq.call(n.occurrences,r);)n.occurrences[o]++,r=o+"-"+n.occurrences[o];return n.occurrences[r]=0,r}reset(){this.occurrences=Object.create(null)}}const Uq={};function Mq(e,t){const n=t||Uq;return Xq(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function Xq(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 Fq(e.children,t,n)}return Array.isArray(e)?Fq(e,t,n):""}function Fq(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=Xq(e[o],t,n);return r.join("")}const Zq=document.createElement("i");function Vq(e){const t="&"+e+";";Zq.innerHTML=t;const n=Zq.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}function Lq(e,t,n,r){const o=e.length;let i,a=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a<r.length;)i=r.slice(a,a+1e4),i.unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function zq(e,t){return e.length>0?(Lq(e,e.length,0,t),e):t}const Wq={}.hasOwnProperty;function Bq(e){const t={};let n=-1;for(;++n<e.length;)Yq(t,e[n]);return t}function Yq(e,t){let n;for(n in t){const r=(Wq.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){Wq.call(r,i)||(r[i]=[]);const e=o[i];Hq(r[i],Array.isArray(e)?e:e?[e]:[])}}}function Hq(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);Lq(e,0,0,r)}function Gq(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 Kq(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Jq=pI(/\p{P}/u),eI=pI(/[A-Za-z]/),tI=pI(/[\dA-Za-z]/),nI=pI(/[#-'*+\--9=?A-Z^-~]/);function rI(e){return null!==e&&(e<32||127===e)}const oI=pI(/\d/),iI=pI(/[\dA-Fa-f]/),aI=pI(/[!-/:-@[-`{-~]/);function sI(e){return null!==e&&e<-2}function lI(e){return null!==e&&(e<0||32===e)}function cI(e){return-2===e||-1===e||32===e}function uI(e){return aI(e)||Jq(e)}const dI=pI(/\s/);function pI(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function fI(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let a="";if(37===i&&tI(e.charCodeAt(n+1))&&tI(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t),o=1):a="�"}else a=String.fromCharCode(i);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+o+1,a=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function hI(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){if(cI(r))return e.enter(n),a(r);return t(r)};function a(r){return cI(r)&&i++<o?(e.consume(r),a):(e.exit(n),t(r))}}const mI={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"),hI(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),r(t)}));let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):sI(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}};const gI={tokenize:function(e){const t=this,n=[];let r,o,i,a=0;return s;function s(r){if(a<n.length){const o=n[a];return t.containerState=o[1],e.attempt(o[0].continuation,l,c)(r)}return c(r)}function l(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&y();const n=t.events.length;let o,i=n;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){o=t.events[i][1].end;break}O(a);let s=n;for(;s<t.events.length;)t.events[s][1].end=Object.assign({},o),s++;return Lq(t.events,i+1,0,t.events.slice(n)),t.events.length=s,c(e)}return s(e)}function c(o){if(a===n.length){if(!r)return p(o);if(r.currentConstruct&&r.currentConstruct.concrete)return h(o);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(OI,u,d)(o)}function u(e){return r&&y(),O(a),p(e)}function d(e){return t.parser.lazy[t.now().line]=a!==n.length,i=t.now().offset,h(e)}function p(n){return t.containerState={},e.attempt(OI,f,h)(n)}function f(e){return a++,n.push([t.currentConstruct,t.containerState]),p(e)}function h(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:o,_tokenizer:r}),m(n))}function m(n){return null===n?(g(e.exit("chunkFlow"),!0),O(0),void e.consume(n)):sI(n)?(e.consume(n),g(e.exit("chunkFlow")),a=0,t.interrupt=void 0,s):(e.consume(n),m)}function g(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=o,o&&(o.next=e),o=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<i&&(!r.events[e][1].end||r.events[e][1].end.offset>i))return;const n=t.events.length;let o,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(o){s=t.events[l][1].end;break}o=!0}for(O(a),e=n;e<t.events.length;)t.events[e][1].end=Object.assign({},s),e++;Lq(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function O(r){let o=n.length;for(;o-- >r;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function y(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},OI={tokenize:function(e,t,n){return hI(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function yI(e){return null===e||lI(e)||dI(e)?1:uI(e)?2:void 0}function vI(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const bI={name:"attention",tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=yI(r);let i;return function(t){return i=t,e.enter("attentionSequence"),a(t)};function a(s){if(s===i)return e.consume(s),a;const l=e.exit("attentionSequence"),c=yI(s),u=!c||2===c&&o||n.includes(s),d=!o||2===o&&c||n.includes(r);return l._open=Boolean(42===i?u:u&&(o||!d)),l._close=Boolean(42===i?d:d&&(c||!u)),t(s)}},resolveAll:function(e,t){let n,r,o,i,a,s,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;s=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);wI(d,-s),wI(p,s),i={type:s>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[n][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[u][1].start),end:p},o={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[u][1].start)},r={type:s>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},a.end)},e[n][1].end=Object.assign({},i.start),e[u][1].start=Object.assign({},a.end),l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=zq(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=zq(l,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),l=zq(l,vI(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=zq(l,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=zq(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,Lq(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 wI(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const SI={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return eI(t)?(e.consume(t),i):l(t)}function i(e){return 43===e||45===e||46===e||tI(e)?(r=1,a(e)):l(e)}function a(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||tI(t))&&r++<32?(e.consume(t),a):(r=0,l(t))}function s(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||rI(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),c):nI(t)?(e.consume(t),l):n(t)}function c(e){return tI(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||tI(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}};const xI={tokenize:function(e,t,n){return function(t){return cI(t)?hI(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||sI(e)?t(e):n(e)}},partial:!0};const kI={name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return cI(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(cI(t))return hI(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(r){return e.attempt(kI,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};const $I={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 aI(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const PI={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),o=31,i=tI,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=iI,c):(e.enter("characterReferenceValue"),o=7,i=oI,c(t))}function c(s){if(59===s&&a){const o=e.exit("characterReferenceValue");return i!==tI||Vq(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&a++<o?(e.consume(s),c):n(s)}}};const _I={tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},TI={name:"codeFenced",tokenize:function(e,t,n){const r=this,o={tokenize:function(e,t,n){let o=0;return a;function a(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),cI(t)?hI(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===i?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===i?(o++,e.consume(t),u):o>=s?(e.exit("codeFencedFenceSequence"),cI(t)?hI(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||sI(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0};let i,a=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===i?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),cI(t)?hI(e,c,"whitespace")(t):c(t))}function c(n){return null===n||sI(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(_I,f,y)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||sI(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):cI(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),hI(e,d,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),u)}function d(t){return null===t||sI(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||sI(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===i?n(t):(e.consume(t),p)}function f(t){return e.attempt(o,y,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return a>0&&cI(t)?hI(e,g,"linePrefix",a+1)(t):g(t)}function g(t){return null===t||sI(t)?e.check(_I,f,y)(t):(e.enter("codeFlowValue"),O(t))}function O(t){return null===t||sI(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),O)}function y(n){return e.exit("codeFenced"),t(n)}},concrete:!0};const EI={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),hI(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?s(t):sI(t)?e.attempt(QI,i,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||sI(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),a)}function s(n){return e.exit("codeIndented"),t(n)}}},QI={tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):sI(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):hI(e,i,"linePrefix",5)(t)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):sI(e)?o(e):n(e)}},partial:!0};const CI={name:"codeText",tokenize:function(e,t,n){let r,o,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),i++,a):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(o=e.enter("codeTextSequence"),r=0,c(t)):sI(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||sI(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",l(n))}},resolve:function(e){let t,n,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}t=o-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}};function AI(e){const t={};let n,r,o,i,a,s,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&&(s=n[1]._tokenizer.events,o=0,o<s.length&&"lineEndingBlank"===s[o][1].type&&(o+=2),o<s.length&&"content"===s[o][1].type))for(;++o<s.length&&"content"!==s[o][1].type;)"chunkText"===s[o][1].type&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,RI(e,c)),c=t[c],l=!0);else if(n[1]._container){for(o=c,r=void 0;o--&&(i=e[o],"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type);)"enter"===i[0]&&(r&&(e[r][1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);r&&(n[1].end=Object.assign({},e[r][1].start),a=e.slice(r,c),a.unshift(n),Lq(e,r,c-r+1,a))}}return!l}function RI(e,t){const n=e[t][1],r=e[t][2];let o=t-1;const i=[],a=n._tokenizer||r.parser[n.contentType](n.start),s=a.events,l=[],c={};let u,d,p=-1,f=n,h=0,m=0;const g=[m];for(;f;){for(;e[++o][1]!==f;);i.push(o),f._tokenizer||(u=r.sliceStream(f),f.next||u.push(null),d&&a.defineSkip(f.start),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=n;++p<s.length;)"exit"===s[p][0]&&"enter"===s[p-1][0]&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(m=p+1,g.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(a.events=[],f?(f._tokenizer=void 0,f.previous=void 0):g.pop(),p=g.length;p--;){const t=s.slice(g[p],g[p+1]),n=i.pop();l.unshift([n,n+t.length-1]),Lq(e,n,2,t)}for(p=-1;++p<l.length;)c[h+l[p][0]]=h+l[p][1],h+=l[p][1]-l[p][0]-1;return c}const NI={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):sI(t)?e.check(DI,i,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return AI(e),e}},DI={tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),hI(e,o,"linePrefix")};function o(o){if(null===o||sI(o))return n(o);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}},partial:!0};function jI(e,t,n,r,o,i,a,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),d;if(null===t||32===t||41===t||rI(t))return n(t);return e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),h(t)};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||sI(t)?n(t):(e.consume(t),92===t?f:p)}function f(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function h(o){return u||null!==o&&41!==o&&!lI(o)?u<c&&40===o?(e.consume(o),u++,h):41===o?(e.consume(o),u--,h):null===o||32===o||40===o||rI(o)?n(o):(e.consume(o),92===o?m:h):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(o))}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function qI(e,t,n,r,o,i){const a=this;let s,l=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(i),c};function c(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(i),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):sI(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||sI(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!cI(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function II(e,t,n,r,o,i){let a;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(o),e.consume(t),e.exit(o),a=40===t?41:t,s;return n(t)};function s(n){return n===a?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),l(n))}function l(t){return t===a?(e.exit(i),s(a)):null===t?n(t):sI(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),hI(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||sI(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===a||92===t?(e.consume(t),c):c(t)}}function UI(e,t){let n;return function r(o){if(sI(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r;if(cI(o))return hI(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}const MI={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return qI.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=Kq(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return lI(t)?UI(e,s)(t):s(t)}function s(t){return jI(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(XI,c,c)(t)}function c(t){return cI(t)?hI(e,u,"whitespace")(t):u(t)}function u(i){return null===i||sI(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)}}},XI={tokenize:function(e,t,n){return function(t){return lI(t)?UI(e,r)(t):n(t)};function r(t){return II(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return cI(t)?hI(e,i,"whitespace")(t):i(t)}function i(e){return null===e||sI(e)?t(e):n(e)}},partial:!0};const FI={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return sI(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const ZI={name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||lI(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||sI(n)?(e.exit("atxHeading"),t(n)):cI(n)?hI(e,i,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),i(t))}function s(t){return null===t||35===t||lI(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),s)}},resolve:function(e,t){let n,r,o=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);o-2>i&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},Lq(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e}};const VI=["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"],LI=["pre","script","style","textarea"],zI={name:"htmlFlow",tokenize:function(e,t,n){const r=this;let o,i,a,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),i=!0,f):63===s?(e.consume(s),o=3,r.interrupt?t:N):eI(s)?(e.consume(s),a=String.fromCharCode(s),h):n(s)}function u(i){return 45===i?(e.consume(i),o=2,d):91===i?(e.consume(i),o=5,s=0,p):eI(i)?(e.consume(i),o=4,r.interrupt?t:N):n(i)}function d(o){return 45===o?(e.consume(o),r.interrupt?t:N):n(o)}function p(o){const i="CDATA[";return o===i.charCodeAt(s++)?(e.consume(o),6===s?r.interrupt?t:P:p):n(o)}function f(t){return eI(t)?(e.consume(t),a=String.fromCharCode(t),h):n(t)}function h(s){if(null===s||47===s||62===s||lI(s)){const l=47===s,c=a.toLowerCase();return l||i||!LI.includes(c)?VI.includes(a.toLowerCase())?(o=6,l?(e.consume(s),m):r.interrupt?t(s):P(s)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):i?g(s):O(s)):(o=1,r.interrupt?t(s):P(s))}return 45===s||tI(s)?(e.consume(s),a+=String.fromCharCode(s),h):n(s)}function m(o){return 62===o?(e.consume(o),r.interrupt?t:P):n(o)}function g(t){return cI(t)?(e.consume(t),g):k(t)}function O(t){return 47===t?(e.consume(t),k):58===t||95===t||eI(t)?(e.consume(t),y):cI(t)?(e.consume(t),O):k(t)}function y(t){return 45===t||46===t||58===t||95===t||tI(t)?(e.consume(t),y):v(t)}function v(t){return 61===t?(e.consume(t),b):cI(t)?(e.consume(t),v):O(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,w):cI(t)?(e.consume(t),b):S(t)}function w(t){return t===l?(e.consume(t),l=null,x):null===t||sI(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||lI(t)?v(t):(e.consume(t),S)}function x(e){return 47===e||62===e||cI(e)?O(e):n(e)}function k(t){return 62===t?(e.consume(t),$):n(t)}function $(t){return null===t||sI(t)?P(t):cI(t)?(e.consume(t),$):n(t)}function P(t){return 45===t&&2===o?(e.consume(t),Q):60===t&&1===o?(e.consume(t),C):62===t&&4===o?(e.consume(t),D):63===t&&3===o?(e.consume(t),N):93===t&&5===o?(e.consume(t),R):!sI(t)||6!==o&&7!==o?null===t||sI(t)?(e.exit("htmlFlowData"),_(t)):(e.consume(t),P):(e.exit("htmlFlowData"),e.check(WI,j,_)(t))}function _(t){return e.check(BI,T,j)(t)}function T(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),E}function E(t){return null===t||sI(t)?_(t):(e.enter("htmlFlowData"),P(t))}function Q(t){return 45===t?(e.consume(t),N):P(t)}function C(t){return 47===t?(e.consume(t),a="",A):P(t)}function A(t){if(62===t){const n=a.toLowerCase();return LI.includes(n)?(e.consume(t),D):P(t)}return eI(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),A):P(t)}function R(t){return 93===t?(e.consume(t),N):P(t)}function N(t){return 62===t?(e.consume(t),D):45===t&&2===o?(e.consume(t),N):P(t)}function D(t){return null===t||sI(t)?(e.exit("htmlFlowData"),j(t)):(e.consume(t),D)}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},WI={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(xI,t,n)}},partial:!0},BI={tokenize:function(e,t,n){const r=this;return function(t){if(sI(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o;return n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0};const YI={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,i,a;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),b):63===t?(e.consume(t),y):eI(t)?(e.consume(t),x):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,f):eI(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):sI(t)?(a=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 f(t){const r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),6===i?h:f):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):sI(t)?(a=h,A(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?C(t):93===t?(e.consume(t),g):h(t)}function O(t){return null===t||62===t?C(t):sI(t)?(a=O,A(t)):(e.consume(t),O)}function y(t){return null===t?n(t):63===t?(e.consume(t),v):sI(t)?(a=y,A(t)):(e.consume(t),y)}function v(e){return 62===e?C(e):y(e)}function b(t){return eI(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||tI(t)?(e.consume(t),w):S(t)}function S(t){return sI(t)?(a=S,A(t)):cI(t)?(e.consume(t),S):C(t)}function x(t){return 45===t||tI(t)?(e.consume(t),x):47===t||62===t||lI(t)?k(t):n(t)}function k(t){return 47===t?(e.consume(t),C):58===t||95===t||eI(t)?(e.consume(t),$):sI(t)?(a=k,A(t)):cI(t)?(e.consume(t),k):C(t)}function $(t){return 45===t||46===t||58===t||95===t||tI(t)?(e.consume(t),$):P(t)}function P(t){return 61===t?(e.consume(t),_):sI(t)?(a=P,A(t)):cI(t)?(e.consume(t),P):k(t)}function _(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,T):sI(t)?(a=_,A(t)):cI(t)?(e.consume(t),_):(e.consume(t),E)}function T(t){return t===o?(e.consume(t),o=void 0,Q):null===t?n(t):sI(t)?(a=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||lI(t)?k(t):(e.consume(t),E)}function Q(e){return 47===e||62===e||lI(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 cI(t)?hI(e,N,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):N(t)}function N(t){return e.enter("htmlTextData"),a(t)}}};const HI={name:"labelEnd",tokenize:function(e,t,n){const r=this;let o,i,a=r.events.length;for(;a--;)if(("labelImage"===r.events[a][1].type||"labelLink"===r.events[a][1].type)&&!r.events[a][1]._balanced){o=r.events[a][1];break}return function(t){if(!o)return n(t);if(o._inactive)return u(t);return i=r.parser.defined.includes(Kq(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s};function s(t){return 40===t?e.attempt(GI,c,i?c:u)(t):91===t?e.attempt(KI,c,i?l:u)(t):i?c(t):u(t)}function l(t){return e.attempt(JI,c,u)(t)}function c(e){return t(e)}function u(e){return o._balanced=!0,n(e)}},resolveTo:function(e,t){let n,r,o,i,a=e.length,s=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(o=a);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[o][1].end)},u={type:"labelText",start:Object.assign({},e[r+s+2][1].end),end:Object.assign({},e[o-2][1].start)};return i=[["enter",l,t],["enter",c,t]],i=zq(i,e.slice(r+1,r+s+3)),i=zq(i,[["enter",u,t]]),i=zq(i,vI(t.parser.constructs.insideSpan.null,e.slice(r+s+4,o-3),t)),i=zq(i,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]),i=zq(i,e.slice(o+1)),i=zq(i,[["exit",l,t]]),Lq(e,r,e.length,i),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}},GI={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 lI(t)?UI(e,o)(t):o(t)}function o(t){return 41===t?c(t):jI(e,i,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return lI(t)?UI(e,s)(t):c(t)}function a(e){return n(e)}function s(t){return 34===t||39===t||40===t?II(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return lI(t)?UI(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)}}},KI={tokenize:function(e,t,n){const r=this;return function(t){return qI.call(r,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(Kq(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},JI={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 eU={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"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:HI.resolveAll};const tU={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"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:HI.resolveAll};const nU={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),hI(e,t,"linePrefix")}}};const rU={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,i(e)}(t)};function i(i){return i===r?(e.enter("thematicBreakSequence"),a(i)):o>=3&&(null===i||sI(i))?(e.exit("thematicBreak"),t(i)):n(i)}function a(t){return t===r?(e.consume(t),o++,a):(e.exit("thematicBreakSequence"),cI(t)?hI(e,i,"whitespace")(t):i(t))}}};const oU={name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,a=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:oI(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(rU,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return oI(t)&&++a<10?(e.consume(t),s):(!r.interrupt||a<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(xI,r.interrupt?n:c,e.attempt(iU,d,u))}function c(e){return r.containerState.initialBlankLine=!0,i++,d(e)}function u(t){return cI(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=i+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(xI,(function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,hI(e,t,"listItemIndent",r.containerState.size+1)(n)}),(function(n){if(r.containerState.furtherBlankLines||!cI(n))return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n);return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(aU,t,o)(n)}));function o(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,hI(e,e.attempt(oU,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)}},iU={tokenize:function(e,t,n){const r=this;return hI(e,(function(e){const o=r.events[r.events.length-1];return!cI(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},aU={tokenize:function(e,t,n){const r=this;return hI(e,(function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0};const sU={name:"setextUnderline",tokenize:function(e,t,n){const r=this;let o;return function(t){let a,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){a="paragraph"===r.events[s][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||a))return e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t);return n(t)};function i(t){return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),cI(t)?hI(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||sI(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const a={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[o][1].end)):e[n][1]=a;return e.push(["exit",a,t]),e}};const lU={tokenize:function(e){const t=this,n=e.attempt(xI,(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,hI(e,e.attempt(this.parser.constructs.flow,r,e.attempt(NI,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 cU={resolveAll:fU()},uU=pU("string"),dU=pU("text");function pU(e){return{tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,a);return i;function i(e){return l(e)?o(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),o(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}},resolveAll:fU("text"===e?hU:void 0)}}function fU(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function hU(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],o=t.sliceStream(r);let i,a=o.length,s=-1,l=0;for(;a--;){const e=o[a];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)i=!0,l++;else if(-1!==e){a++;break}}if(l){const o={type:n===e.length||i||l<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-l,offset:r.end.offset-l,_index:r.start._index+a,_bufferIndex:a?s:r.start._bufferIndex+s},end:Object.assign({},r.end)};r.end=Object.assign({},o.start),r.start.offset===r.end.offset?Object.assign(r,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}function mU(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const o={},i=[];let a=[],s=[];const l={consume:function(e){sI(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===a[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]),s.push(n),n},exit:function(e){const t=s.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 o;for(;++n<e.length;){const i=e[n];let a;if("string"==typeof i)a=i;else switch(i){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&o)continue;a=" ";break;default:a=String.fromCharCode(i)}o=-2===i,r.push(a)}return r.join("")}(d(e),t)},now:p,defineSkip:function(e){o[e.line]=e.column,y()},write:function(e){if(a=zq(a,e),f(),null!==a[a.length-1])return[];return O(t,0),c.events=vI(i,c.events,c),c.events}};let u=t.tokenize.call(c,l);return t.resolveAll&&i.push(t),c;function d(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let a;if(n===o)a=[e[n].slice(r,i)];else{if(a=e.slice(n,o),r>-1){const e=a[0];"string"==typeof e?a[0]=e.slice(r):a.shift()}i>0&&a.push(e[o].slice(0,i))}return a}(a,e)}function p(){const{line:e,column:t,offset:n,_index:o,_bufferIndex:i}=r;return{line:e,column:t,offset:n,_index:o,_bufferIndex:i}}function f(){let e;for(;r._index<a.length;){const t=a[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)h(t.charCodeAt(r._bufferIndex));else h(t)}}function h(e){u=u(e)}function m(e,t){t.restore()}function g(e,t){return function(n,o,i){let a,u,d,f;return Array.isArray(n)?h(n):"tokenize"in n?h([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return h([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function h(e){return a=e,u=0,0===e.length?i:m(e[u])}function m(e){return function(n){f=function(){const e=p(),t=c.previous,n=c.currentConstruct,o=c.events.length,i=Array.from(s);return{restore:a,from:o};function a(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=o,s=i,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,f),o}function O(e){return f.restore(),++u<a.length?m(a[u]):i}}}function O(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&Lq(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 o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const gU={42:oU,43:oU,45:oU,48:oU,49:oU,50:oU,51:oU,52:oU,53:oU,54:oU,55:oU,56:oU,57:oU,62:kI},OU={91:MI},yU={[-2]:EI,[-1]:EI,32:EI},vU={35:ZI,42:rU,45:[sU,rU],60:zI,61:sU,95:rU,96:TI,126:TI},bU={38:PI,92:$I},wU={[-5]:nU,[-4]:nU,[-3]:nU,33:eU,38:PI,42:bI,60:[SI,YI],91:tU,92:[FI,$I],93:HI,95:bI,96:CI},SU={null:[bI,cU]},xU=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:OU,disable:{null:[]},document:gU,flow:vU,flowInitial:yU,insideSpan:SU,string:bU,text:wU},Symbol.toStringTag,{value:"Module"}));const kU=/[\0\t\n\r]/g;const $U=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function PU(e){return e.replace($U,_U)}function _U(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return Gq(n.slice(t?2:1),t?16:10)}return Vq(n)||e}function TU(e){return e&&"object"==typeof e?"position"in e||"type"in e?QU(e.position):"start"in e||"end"in e?QU(e):"line"in e||"column"in e?EU(e):"":""}function EU(e){return CU(e&&e.line)+":"+CU(e&&e.column)}function QU(e){return EU(e&&e.start)+"-"+EU(e&&e.end)}function CU(e){return e&&"number"==typeof e?e:1}const AU={}.hasOwnProperty;function RU(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:i(ee),autolinkProtocol:$,autolinkEmail:$,atxHeading:i(H),blockQuote:i(L),characterEscape:$,characterReference:$,codeFenced:i(z),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:i(z,a),codeText:i(W,a),codeTextData:$,data:$,codeFlowValue:$,definition:i(B),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:i(Y),hardBreakEscape:i(G),hardBreakTrailing:i(G),htmlFlow:i(K,a),htmlFlowData:$,htmlText:i(K,a),htmlTextData:$,image:i(J),label:a,link:i(ee),listItem:i(ne),listItemValue:p,listOrdered:i(te,d),listUnordered:i(te),paragraph:i(re),reference:U,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:i(H),strong:i(oe),thematicBreak:i(ae)},exit:{atxHeading:l(),atxHeadingSequence:w,autolink:l(),autolinkEmail:V,autolinkProtocol:Z,blockQuote:l(),characterEscapeValue:P,characterReferenceMarkerHexadecimal:X,characterReferenceMarkerNumeric:X,characterReferenceValue:F,codeFenced:l(g),codeFencedFence:m,codeFencedFenceInfo:f,codeFencedFenceMeta:h,codeFlowValue:P,codeIndented:l(O),codeText:l(C),codeTextData:P,data:P,definition:l(),definitionDestinationString:b,definitionLabelString:y,definitionTitleString:v,emphasis:l(),hardBreakEscape:l(T),hardBreakTrailing:l(T),htmlFlow:l(E),htmlFlowData:P,htmlText:l(Q),htmlTextData:P,image:l(R),label:D,labelText:N,lineEnding:_,link:l(A),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:M,resourceDestinationString:j,resourceTitleString:q,resource:I,setextHeading:l(k),setextHeadingLineSequence:x,setextHeadingText:S,strong:l(),thematicBreak:l()}};DU(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const i={stack:[r],tokenStack:[],config:t,enter:s,exit:c,buffer:a,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=o(e,l.pop(),d)}for(d=-1;++d<e.length;){const n=t[e[d][0]];AU.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},i),e[d][1])}if(i.tokenStack.length>0){const e=i.tokenStack[i.tokenStack.length-1];(e[1]||qU).call(i,void 0,e[0])}for(r.position={start:NU(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:NU(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 o(e,t,n){let r,o,i,a,s=t-1,l=-1,c=!1;for(;++s<=n;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||a||l||i||(i=s),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=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 a=s;for(o=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",o=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}i&&(!o||i<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){const o={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=o,e.splice(s,0,["enter",o,t[2]]),s++,n++,i=void 0,a=!0}}}return e[t][1]._spread=c,n}function i(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function a(){this.stack.push({type:"fragment",children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n]),e.position={start:NU(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+"` ("+TU({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]||qU).call(this,e,r[0])}n.position.end=NU(e.end)}function u(){return Mq(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 f(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function h(){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=Kq(this.sliceSerialize(e)).toLowerCase()}function v(){const e=this.resume();this.stack[this.stack.length-1].title=e}function b(){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=ie(),n.position={start:NU(e.start),end:void 0},t.push(n)),this.stack.push(n)}function P(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=NU(e.end)}function _(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=NU(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&($.call(this,e),P.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 N(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=PU(t),n.identifier=Kq(t).toLowerCase()}function D(){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 q(){const e=this.resume();this.stack[this.stack.length-1].title=e}function I(){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=Kq(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=Gq(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=Vq(t)}const o=this.stack.pop();o.value+=r,o.position.end=NU(e.end)}function Z(e){P.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function V(e){P.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function L(){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 oe(){return{type:"strong",children:[]}}function ie(){return{type:"text",value:""}}function ae(){return{type:"thematicBreak"}}}(n)(function(e){for(;!AI(e););return e}(function(e){const t={defined:[],lazy:{},constructs:Bq([xU,...(e||{}).extensions||[]]),content:n(mI),document:n(gI),flow:n(lU),string:n(uU),text:n(dU)};return t;function n(e){return function(n){return mU(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(o,i,a){const s=[];let l,c,u,d,p;for(o=n+("string"==typeof o?o.toString():new TextDecoder(i||void 0).decode(o)),u=0,n="",r&&(65279===o.charCodeAt(0)&&u++,r=void 0);u<o.length;){if(kU.lastIndex=u,l=kU.exec(o),d=l&&void 0!==l.index?l.index:o.length,p=o.charCodeAt(d),!l){n=o.slice(u);break}if(10===p&&u===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<d&&(s.push(o.slice(u,d)),t+=d-u),p){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return a&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(e,t,!0))))}function NU(e){return{line:e.line,column:e.column,offset:e.offset}}function DU(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?DU(e,r):jU(e,r)}}function jU(e,t){let n;for(n in t)if(AU.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 qU(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+TU({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+TU({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+TU({start:t.start,end:t.end})+") is still open")}function IU(e){const t=this;t.parser=function(n){return RU(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const UU={}.hasOwnProperty;function MU(e,t){const n=t||{};function r(t,...n){let o=r.invalid;const i=r.handlers;if(t&&UU.call(t,e)){const n=String(t[e]);o=UU.call(i,n)?i[n]:r.unknown}if(o)return o.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const XU={}.hasOwnProperty;function FU(e,t){let n,r=-1;if(t.extensions)for(;++r<t.extensions.length;)FU(e,t.extensions[r]);for(n in t)if(XU.call(t,n))switch(n){case"extensions":break;case"unsafe":case"join":ZU(e[n],t[n]);break;case"handlers":VU(e[n],t[n]);break;default:e.options[n]=t[n]}return e}function ZU(e,t){t&&e.push(...t)}function VU(e,t){t&&Object.assign(e,t)}function LU(e,t,n){return">"+(n?"":" ")+e}function zU(e,t){return WU(e,t.inConstruct,!0)&&!WU(e,t.notInConstruct,!1)}function WU(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 BU(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;)if("\n"===n.unsafe[o].character&&zU(n.stack,n.unsafe[o]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}function YU(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 HU(e,t,n){return(n?"":" ")+e}function GU(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 KU(e,t,n,r){const o=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),i=n.enter("emphasis"),a=n.createTracker(r);let s=a.move(o);return s+=a.move(n.containerPhrasing(e,{before:s,after:o,...a.current()})),s+=a.move(o),i(),s}KU.peek=function(e,t,n){return n.options.emphasis||"*"};const JU=function(e){if(null==e)return tM;if("function"==typeof e)return eM(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=JU(e[n]);return eM(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 eM(n);function n(n){const r=n;let o;for(o in e)if(r[o]!==t[o])return!1;return!0}}(e);if("string"==typeof e)return function(e){return eM(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function eM(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 tM(){return!0}const nM=[],rM=!0,oM=!1,iM="skip";function aM(e,t,n,r){let o;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):o=t;const i=JU(o),a=r?-1:1;!function e(o,s,l){const c=o&&"object"==typeof o?o:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,p=nM;if((!t||i(o,s,l[l.length-1]||void 0))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[rM,e];return null==e?nM:[e]}(n(o,l)),p[0]===oM))return p;if("children"in o&&o.children){const t=o;if(t.children&&p[0]!==iM)for(u=(r?t.children.length:-1)+a,d=l.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),c[0]===oM)return c;u="number"==typeof c[1]?c[1]:u+a}}return p}}(e,void 0,[])()}function sM(e,t,n,r){let o,i,a;"function"==typeof t&&"function"!=typeof n?(i=void 0,a=t,o=n):(i=t,a=n,o=r),aM(e,i,(function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)}),o)}function lM(e,t){let n=!1;return sM(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,oM})),Boolean((!e.depth||e.depth<3)&&Mq(e)&&(t.options.setext||n))}function cM(e){return e.value||""}function uM(e,t,n,r){const o=GU(n),i='"'===o?"Quote":"Apostrophe",a=n.enter("image");let s=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("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=l.move(" "+o),c+=l.move(n.safe(e.title,{before:c,after:o,...l.current()})),c+=l.move(o),s()),c+=l.move(")"),a(),c}function dM(e,t,n,r){const o=e.referenceType,i=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=u,i(),"full"!==o&&c&&c===d?"shortcut"===o?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function pM(e,t,n){let r=e.value||"",o="`",i=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const e=n.unsafe[i],t=n.compilePattern(e);let o;if(e.atBreak)for(;o=t.exec(r);){let e=o.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(o.index+1)}}return o+r+o}function fM(e,t){const n=Mq(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 hM(e,t,n,r){const o=GU(n),i='"'===o?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(fM(e,n)){const t=n.stack;n.stack=[],s=n.enter("autolink");let r=a.move("<");return r+=a.move(n.containerPhrasing(e,{before:r,after:">",...a.current()})),r+=a.move(">"),s(),n.stack=t,r}s=n.enter("link"),l=n.enter("label");let c=a.move("[");return c+=a.move(n.containerPhrasing(e,{before:c,after:"](",...a.current()})),c+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(l=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${i}`),c+=a.move(" "+o),c+=a.move(n.safe(e.title,{before:c,after:o,...a.current()})),c+=a.move(o),l()),c+=a.move(")"),s(),c}function mM(e,t,n,r){const o=e.referenceType,i=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=u,i(),"full"!==o&&c&&c===d?"shortcut"===o?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function gM(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 OM(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}cM.peek=function(){return"<"},uM.peek=function(){return"!"},dM.peek=function(){return"!"},pM.peek=function(){return"`"},hM.peek=function(e,t,n){return fM(e,n)?"<":"["},mM.peek=function(){return"["};const yM=JU(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);function vM(e,t,n,r){const o=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),i=n.enter("strong"),a=n.createTracker(r);let s=a.move(o+o);return s+=a.move(n.containerPhrasing(e,{before:s,after:o,...a.current()})),s+=a.move(o+o),i(),s}vM.peek=function(e,t,n){return n.options.strong||"*"};const bM={blockquote:function(e,t,n,r){const o=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const a=n.indentLines(n.containerFlow(e,i.current()),LU);return o(),a},break:BU,code:function(e,t,n,r){const o=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),i=e.value||"",a="`"===o?"GraveAccent":"Tilde";if(YU(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(i,HU);return e(),t}const s=n.createTracker(r),l=o.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),o=r,i=0,a=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===o?++i>a&&(a=i):i=1,o=r+t.length,r=n.indexOf(t,o);return a}(i,o)+1,3)),c=n.enter("codeFenced");let u=s.move(l);if(e.lang){const t=n.enter(`codeFencedLang${a}`);u+=s.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${a}`);u+=s.move(" "),u+=s.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),i&&(u+=s.move(i+"\n")),u+=s.move(l),c(),u},definition:function(e,t,n,r){const o=GU(n),i='"'===o?"Quote":"Apostrophe",a=n.enter("definition");let s=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("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=l.move(" "+o),c+=l.move(n.safe(e.title,{before:c,after:o,...l.current()})),c+=l.move(o),s()),a(),c},emphasis:KU,hardBreak:BU,heading:function(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(lM(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),a=n.containerPhrasing(e,{...i.current(),before:"\n",after:"\n"});return r(),t(),a+"\n"+(1===o?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}const a="#".repeat(o),s=n.enter("headingAtx"),l=n.enter("phrasing");i.move(a+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...i.current()});return/^[\t ]/.test(c)&&(c="&#x"+c.charCodeAt(0).toString(16).toUpperCase()+";"+c.slice(1)),c=c?a+" "+c:a,n.options.closeAtx&&(c+=" "+a),l(),s(),c},html:cM,image:uM,imageReference:dM,inlineCode:pM,link:hM,linkReference:mM,list:function(e,t,n,r){const o=n.enter("list"),i=n.bulletCurrent;let a=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):gM(n);const s=e.ordered?"."===a?")":".":function(e){const t=gM(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)&&a===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==a&&"-"!==a||!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),OM(n)===a&&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&&(a=s),n.bulletCurrent=a;const c=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=i,o(),c},listItem:function(e,t,n,r){const o=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let i=n.bulletCurrent||gM(n);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i);let a=i.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const s=n.createTracker(r);s.move(i+" ".repeat(a-i.length)),s.shift(a);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),(function(e,t,n){if(t)return(n?"":" ".repeat(a))+e;return(n?i:i+" ".repeat(a-i.length))+e}));return l(),c},paragraph:function(e,t,n,r){const o=n.enter("paragraph"),i=n.enter("phrasing"),a=n.containerPhrasing(e,r);return i(),o(),a},root:function(e,t,n,r){return(e.children.some((function(e){return yM(e)}))?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:vM,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(OM(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}},wM=[function(e,t,n,r){if("code"===t.type&&YU(t,r)&&("list"===e.type||e.type===t.type&&YU(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&&lM(t,r)))return;return n.spread?1:0}}];const SM=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],xM=[{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:SM},{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:SM},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:"(?:[ \t\r\n*])"},{character:"*",inConstruct:"phrasing",notInConstruct:SM},{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:SM},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:SM},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:SM},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:SM},{atBreak:!0,character:"~"}];function kM(e){return e.label||!e.identifier?e.label||"":PU(e.identifier)}function $M(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 PM(e,t,n,r){let o=r.join.length;for(;o--;){const i=r.join[o](e,t,n,r);if(!0===i||1===i)break;if("number"==typeof i)return"\n".repeat(1+i);if(!1===i)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}const _M=/\r?\n|\r/g;function TM(e,t){const n=[];let r,o=0,i=0;for(;r=_M.exec(e);)a(e.slice(o,r.index)),n.push(r[0]),o=r.index+r[0].length,i++;return a(e.slice(o)),n.join("");function a(e){n.push(t(e,i,!e))}}function EM(e,t){return e-t}function QM(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,r=[],o=[],i=e+t;let a,s=-1,l=0;for(;a=n.exec(i);)r.push(a.index);for(;++s<r.length;)l!==r[s]&&o.push(e.slice(l,r[s])),o.push("\\"),l=r[s];return o.push(e.slice(l)),o.join("")}function CM(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,o=n.line||1,i=n.column||1;return{move:function(e){const t=e||"",n=t.split(/\r?\n|\r/g),a=n[n.length-1];return o+=n.length-1,i=1===n.length?i+a.length:1+a.length+r,t},current:function(){return{now:{line:o,column:i},lineShift:r}},shift:function(e){r+=e}}}function AM(e,t={}){const n={enter:function(e){return n.stack.push(e),function(){n.stack.pop()}},indentLines:TM,associationId:kM,containerPhrasing:jM,containerFlow:qM,createTracker:CM,compilePattern:$M,safe:IM,stack:[],unsafe:[...xM],join:[...wM],handlers:{...bM},options:{},indexStack:[],handle:void 0};FU(n,t),n.options.tightDefinitions&&n.join.push(DM),n.handle=MU("type",{invalid:RM,unknown:NM,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 RM(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function NM(e){throw new Error("Cannot handle unknown node `"+e.type+"`")}function DM(e,t){if("definition"===e.type&&e.type===t.type)return 0}function jM(e,t){return function(e,t,n){const r=t.indexStack,o=e.children||[],i=[];let a=-1,s=n.before;r.push(-1);let l=t.createTracker(n);for(;++a<o.length;){const c=o[a];let u;if(r[r.length-1]=a,a+1<o.length){let n=t.handle.handlers[o[a+1].type];n&&n.peek&&(n=n.peek),u=n?n(o[a+1],e,t,{before:"",after:"",...l.current()}).charAt(0):""}else u=n.after;i.length>0&&("\r"===s||"\n"===s)&&"html"===c.type&&(i[i.length-1]=i[i.length-1].replace(/(\r?\n|\r)$/," "),s=" ",l=t.createTracker(n),l.move(i.join(""))),i.push(l.move(t.handle(c,e,t,{...l.current(),before:s,after:u}))),s=i[i.length-1].slice(-1)}return r.pop(),i.join("")}(e,this,t)}function qM(e,t){return function(e,t,n){const r=t.indexStack,o=e.children||[],i=t.createTracker(n),a=[];let s=-1;for(r.push(-1);++s<o.length;){const n=o[s];r[r.length-1]=s,a.push(i.move(t.handle(n,e,t,{before:"\n",after:"\n",...i.current()}))),"list"!==n.type&&(t.bulletLastUsed=void 0),s<o.length-1&&a.push(i.move(PM(n,o[s+1],e,t)))}return r.pop(),a.join("")}(e,this,t)}function IM(e,t){return function(e,t,n){const r=(n.before||"")+(t||"")+(n.after||""),o=[],i=[],a={};let s=-1;for(;++s<e.unsafe.length;){const t=e.unsafe[s];if(!zU(e.stack,t))continue;const n=e.compilePattern(t);let i;for(;i=n.exec(r);){const e="before"in t||Boolean(t.atBreak),n="after"in t,r=i.index+(e?i[1].length:0);o.includes(r)?(a[r].before&&!e&&(a[r].before=!1),a[r].after&&!n&&(a[r].after=!1)):(o.push(r),a[r]={before:e,after:n})}}o.sort(EM);let l=n.before?n.before.length:0;const c=r.length-(n.after?n.after.length:0);for(s=-1;++s<o.length;){const e=o[s];e<l||e>=c||e+1<c&&o[s+1]===e+1&&a[e].after&&!a[e+1].before&&!a[e+1].after||o[s-1]===e-1&&a[e].before&&!a[e-1].before&&!a[e-1].after||(l!==e&&i.push(QM(r.slice(l,e),"\\")),l=e,!/[!-/:-@[-`{-~]/.test(r.charAt(e))||n.encode&&n.encode.includes(r.charAt(e))?(i.push("&#x"+r.charCodeAt(e).toString(16).toUpperCase()+";"),l++):i.push("\\"))}return i.push(QM(r.slice(l,c),n.after)),i.join("")}(this,e,t)}function UM(e){if(e)throw e}var MM=Object.prototype.hasOwnProperty,XM=Object.prototype.toString,FM=Object.defineProperty,ZM=Object.getOwnPropertyDescriptor,VM=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===XM.call(e)},LM=function(e){if(!e||"[object Object]"!==XM.call(e))return!1;var t,n=MM.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&MM.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||MM.call(e,t)},zM=function(e,t){FM&&"__proto__"===t.name?FM(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},WM=function(e,t){if("__proto__"===t){if(!MM.call(e,t))return;if(ZM)return ZM(e,t).value}return e[t]},BM=function e(){var t,n,r,o,i,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=WM(s,n),s!==(o=WM(t,n))&&(u&&o&&(LM(o)||(i=VM(o)))?(i?(i=!1,a=r&&VM(r)?r:[]):a=r&&LM(r)?r:{},zM(s,{name:n,newValue:e(u,a,o)})):void 0!==o&&zM(s,{name:n,newValue:o}));return s};const YM=r(BM);function HM(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 GM(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(i,...a){const s=e[++n];let l=-1;if(i)r(i);else{for(;++l<t.length;)null!==a[l]&&void 0!==a[l]||(a[l]=t[l]);t=a,s?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let s;r&&t.push(o);try{s=e.apply(this,t)}catch(i){if(r&&n)throw i;return o(i)}r||(s instanceof Promise?s.then(a,o):s instanceof Error?o(s):a(s))}function o(e,...r){n||(n=!0,t(e,...r))}function a(e){o(null,e)}}(s,o)(...a):r(null,...a)}}(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 KM extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",o={},i=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!o.cause&&e&&(i=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=a?a.line:void 0,this.name=TU(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=i&&o.cause&&"string"==typeof o.cause.stack?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}KM.prototype.file="",KM.prototype.name="",KM.prototype.reason="",KM.prototype.message="",KM.prototype.stack="",KM.prototype.column=void 0,KM.prototype.line=void 0,KM.prototype.ancestors=void 0,KM.prototype.cause=void 0,KM.prototype.fatal=void 0,KM.prototype.place=void 0,KM.prototype.ruleId=void 0,KM.prototype.source=void 0;const JM={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');eX(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(o=i):(s=-1,o=a));r===o?o=a:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(eX(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){eX(e);let t,n=e.length,r=-1,o=0,i=-1,a=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?i<0?i=n:1!==a&&(a=1):i>-1&&(a=-1);else if(t){o=n+1;break}}if(i<0||r<0||0===a||1===a&&i===r-1&&i===o+1)return"";return e.slice(i,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)eX(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){eX(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,o="",i=0,a=-1,s=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(a===l-1||1===s);else if(a!==l-1&&2===s){if(o.length<2||2!==i||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),a=l,s=0;continue}}else if(o.length>0){o="",i=0,a=l,s=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(a+1,l):o=e.slice(a+1,l),i=l-a-1;a=l,s=0}else 46===n&&s>-1?s++:s=-1}return o}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function eX(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const tX={cwd:function(){return"/"}};function nX(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function rX(e){if("string"==typeof e)e=new URL(e);else if(!nX(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 oX=["history","path","basename","stem","extname","dirname"];class iX{constructor(e){let t;t=e?nX(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=tX.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<oX.length;){const e=oX[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)oX.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?JM.basename(this.path):void 0}set basename(e){sX(e,"basename"),aX(e,"basename"),this.path=JM.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?JM.dirname(this.path):void 0}set dirname(e){lX(this.basename,"dirname"),this.path=JM.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?JM.extname(this.path):void 0}set extname(e){if(aX(e,"extname"),lX(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=JM.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){nX(e)&&(e=rX(e)),sX(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?JM.basename(this.path,this.extname):void 0}set stem(e){sX(e,"stem"),aX(e,"stem"),this.path=JM.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 KM(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 aX(e,t){if(e&&e.includes(JM.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+JM.sep+"`")}function sX(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function lX(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const cX=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};Object.setPrototypeOf(r,t);const o=Object.getOwnPropertyNames(n);for(const i of o){const e=Object.getOwnPropertyDescriptor(n,i);e&&Object.defineProperty(r,i,e)}return r},uX={}.hasOwnProperty;class dX extends cX{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=GM()}copy(){const e=new dX;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(YM(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(mX("data",this.frozen),this.namespace[e]=t,this):uX.call(this.namespace,e)&&this.namespace[e]||void 0:e?(mX("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=yX(e),n=this.parser||this.Parser;return fX("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),fX("process",this.parser||this.Parser),hX("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const i=yX(e),a=n.parse(i);function s(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(a,i,(function(e,t,r){if(e||!t||!r)return s(e);const o=t,i=n.stringify(o,r);var a;"string"==typeof(a=i)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(a)?r.value=i:r.result=i,s(e,r)}))}}processSync(e){let t,n=!1;return this.freeze(),fX("processSync",this.parser||this.Parser),hX("processSync",this.compiler||this.Compiler),this.process(e,(function(e,r){n=!0,UM(e),t=r})),OX("processSync","process",n),t}run(e,t,n){gX(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?o(void 0,n):new Promise(o);function o(o,i){const a=yX(t);r.run(e,a,(function(t,r,a){const s=r||e;t?i(t):o?o(s):n(void 0,s,a)}))}}runSync(e,t){let n,r=!1;return this.run(e,t,(function(e,t){UM(e),n=t,r=!0})),OX("runSync","run",r),n}stringify(e,t){this.freeze();const n=yX(t),r=this.compiler||this.Compiler;return hX("stringify",r),gX(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(mX("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?a(e):i(e)}return this;function o(e){if("function"==typeof e)s(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;s(t,n)}else i(e)}}function i(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(e.plugins),e.settings&&(r.settings=YM(!0,r.settings,e.settings))}function a(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){o(e[t])}}}function s(e,t){let r=-1,o=-1;for(;++r<n.length;)if(n[r][0]===e){o=r;break}if(-1===o)n.push([e,...t]);else if(t.length>0){let[r,...i]=t;const a=n[o][1];HM(a)&&HM(r)&&(r=YM(!0,a,r)),n[o]=[e,r,...i]}}}}const pX=(new dX).freeze();function fX(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function hX(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function mX(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 gX(e){if(!HM(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function OX(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function yX(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new iX(e)}const vX=pX().use(IU).use((function(e){const t=this;t.compiler=function(n){return AM(n,{...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]})}})).use((function(){return(e,t)=>{t.data.headings=Dq(e)}})),bX=async e=>{const t=new Iq,{headings:n}=(await vX.process(e)).data;return wX(n,t)},wX=(e,t)=>e.map((e=>({...e,slug:t.slug(e.value)}))),SX=e=>{const t=Math.min(...e.map((e=>e.depth)));return t>=1&&t<=6?t:1},xX=e=>{if(!e)return"models";return`model/${(new Iq).slug(e)}`},kX=e=>`tag/${(new Iq).slug(e.name)}`,$X=(e,t)=>`${kX(t)}/[${e.httpVerb}]${e.path}`;function PX(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?VE(e.schema):"",required:e.required??!1,enabled:!0})))}function _X(e){var t;const n=[],r=[],o=[];if(e.securitySchemeKey){const a=null==(t=e.securitySchemes)?void 0:t[e.securitySchemeKey];a&&("apiKey"===a.type?"header"===a.in?n.push({name:a.name,value:e.apiKey.token}):"cookie"===a.in?o.push({name:a.name,value:e.apiKey.token}):"query"===a.in&&r.push({name:a.name,value:e.apiKey.token}):"http"!==a.type&&"basic"!==a.type||("basic"===a.type||"basic"===a.scheme?n.push({name:"Authorization",value:`Basic ${i.Buffer.from(`${e.http.basic.username}:${e.http.basic.password}`).toString("base64")}`}):"bearer"===a.scheme&&n.push({name:"Authorization",value:`Bearer ${e.http.bearer.token}`})))}return{headers:n,queryString:r,cookies:o}}function TX(e,t){const n=function(e,t,r){let o="";if(e instanceof Array)for(let i=0,a=e.length;i<a;i++)o+=r+n(e[i],t,r+"\t")+"\n";else if("object"==typeof e){let i=!1;o+=r+"<"+t;for(const t in e)"@"==t.charAt(0)?o+=" "+t.substr(1)+'="'+e[t].toString()+'"':i=!0;if(o+=i?">":"/>",i){for(const t in e)"#text"==t?o+=e[t]:"#cdata"==t?o+="<![CDATA["+e[t]+"]]>":"@"!=t.charAt(0)&&(o+=n(e[t],t,r+"\t"));o+=("\n"==o.charAt(o.length-1)?r:"")+"</"+t+">"}}else o+=r+"<"+t+">"+e.toString()+"</"+t+">";return o};let r="";for(const o in e)r+=n(e[o],o,"");return t?r.replace(/\t/g,t):r.replace(/\t|\n/g,"")}const EX=(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 o=["application/json","application/octet-stream","application/x-www-form-urlencoded","application/xml","multipart/form-data","text/plain"].find((t=>{var n,r,o;return!!(null==(o=null==(r=null==(n=e.information)?void 0:n.requestBody)?void 0:r.content)?void 0:o[t])}));if(!o)return null;const i=null==(r=null==(n=null==(t=e.information)?void 0:t.requestBody)?void 0:n.content)?void 0:r[o],a=[{name:"Content-Type",value:o}],s=(null==i?void 0:i.example)?null==i?void 0:i.example:void 0;if("application/json"===o){const e=(null==i?void 0:i.schema)?VE(null==i?void 0:i.schema):null;return{headers:a,postData:{mimeType:o,text:s??JSON.stringify(e,null,2)}}}if("application/xml"===o){const e=(null==i?void 0:i.schema)?VE(null==i?void 0:i.schema,{xml:!0}):null;return{headers:a,postData:{mimeType:o,text:s??TX(e," ")}}}if("application/octet-stream"===o)return{headers:a,postData:{mimeType:o,text:"BINARY"}};if("text/plain"===o){const e=(null==i?void 0:i.schema)?VE(null==i?void 0:i.schema,{xml:!0}):null;return{headers:a,postData:{mimeType:o,text:s??e??""}}}if("application/x-www-form-urlencoded"===o)return{headers:a,postData:{mimeType:o}};if("multipart/form-data"===o)return{headers:a,postData:{mimeType:o}};return}(e);return{method:e.httpVerb.toUpperCase(),path:n,headers:[...PX(e,"header"),...(null==r?void 0:r.headers)??[]],postData:null==r?void 0:r.postData,queryString:PX(e,"query"),cookies:PX(e,"cookie")}};function QX(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 CX(e){var t,n,r,o;let i=null===e.selectedServer?(null==(n=null==(t=null==e?void 0:e.servers)?void 0:t[0])?void 0:n.url)??void 0:null==(o=null==(r=null==e?void 0:e.servers)?void 0:r[e.selectedServer])?void 0:o.url;return(null==i?void 0:i.startsWith("/"))&&(i=`${window.location.origin}${i.slice(1)}`),i?QX(i,null==e?void 0:e.variables):void 0}const AX=e=>{var t;return!!e&&!!Object.keys((null==(t=null==e?void 0:e.components)?void 0:t.schemas)??{}).length},RX=e=>{var t;return!!Object.keys((null==(t=null==e?void 0:e.components)?void 0:t.securitySchemes)??{}).length},NX=e=>{if("string"!=typeof e)return!1;try{JSON.parse(e)}catch{return!1}return!0};const DX=(e,t)=>Object.keys(e).map((n=>({[t??n]:n,value:e[n]})));const jX=Yt({securitySchemeKey:null,http:{basic:{username:"",password:""},bearer:{token:""}},apiKey:{token:""},oAuth2:{clientId:"",scopes:[]}}),qX=e=>{Object.assign(jX,{...jX,...e})},IX=Yt({selectedServer:null,servers:[],variables:[]}),UX=e=>{Object.assign(IX,{...IX,...e})},MX=()=>({authentication:jX,setAuthentication:qX,server:IX,setServer:UX}),{server:XX,authentication:FX}=MX(),{toggleApiClient:ZX}=KE(),{setActiveRequest:VX,resetActiveResponse:LX}=uQ();function zX(e){const t=CT({serverState:XX,authenticationState:FX,operation:e});LX(),VX(t),ZX(t,!0)}const WX=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}},BX=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 YX(e){return null==e}var HX={isNothing:YX,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:YX(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,o,i;if(t)for(n=0,r=(i=Object.keys(t)).length;n<r;n+=1)e[o=i[n]]=t[o];return e}};function GX(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 KX(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=GX(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}KX.prototype=Object.create(Error.prototype),KX.prototype.constructor=KX,KX.prototype.toString=function(e){return this.name+": "+GX(this,e)};var JX=KX;function eF(e,t,n,r,o){var i="",a="",s=Math.floor(o/2)-1;return r-t>s&&(t=r-s+(i=" ... ").length),n-r>s&&(n=r+s-(a=" ...").length),{str:i+e.slice(t,n).replace(/\t/g,"→")+a,pos:r-t+i.length}}function tF(e,t){return HX.repeat(" ",t-e.length)+e}var nF=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,o=[0],i=[],a=-1;n=r.exec(e.buffer);)i.push(n.index),o.push(n.index+n[0].length),e.position<=n.index&&a<0&&(a=o.length-2);a<0&&(a=o.length-1);var s,l,c="",u=Math.min(e.line+t.linesAfter,i.length).toString().length,d=t.maxLength-(t.indent+u+3);for(s=1;s<=t.linesBefore&&!(a-s<0);s++)l=eF(e.buffer,o[a-s],i[a-s],e.position-(o[a]-o[a-s]),d),c=HX.repeat(" ",t.indent)+tF((e.line-s+1).toString(),u)+" | "+l.str+"\n"+c;for(l=eF(e.buffer,o[a],i[a],e.position,d),c+=HX.repeat(" ",t.indent)+tF((e.line+1).toString(),u)+" | "+l.str+"\n",c+=HX.repeat("-",t.indent+u+3+l.pos)+"^\n",s=1;s<=t.linesAfter&&!(a+s>=i.length);s++)l=eF(e.buffer,o[a+s],i[a+s],e.position-(o[a]-o[a+s]),d),c+=HX.repeat(" ",t.indent)+tF((e.line+s+1).toString(),u)+" | "+l.str+"\n";return c.replace(/\n$/,"")},rF=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],oF=["scalar","sequence","mapping"];var iF=function(e,t){var n,r;if(t=t||{},Object.keys(t).forEach((function(t){if(-1===rF.indexOf(t))throw new JX('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===oF.indexOf(this.kind))throw new JX('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function aF(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 sF(e){return this.extend(e)}sF.prototype.extend=function(e){var t=[],n=[];if(e instanceof iF)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 JX("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 iF))throw new JX("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new JX("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 JX("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 iF))throw new JX("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var r=Object.create(sF.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=aF(r,"implicit"),r.compiledExplicit=aF(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 lF=sF,cF=new iF("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),uF=new iF("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),dF=new iF("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}),pF=new lF({explicit:[cF,uF,dF]});var fF=new iF("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 hF=new iF("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 mF(e){return 48<=e&&e<=55}function gF(e){return 48<=e&&e<=57}var OF=new iF("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=e.length,o=0,i=!1;if(!r)return!1;if("-"!==(t=e[o])&&"+"!==t||(t=e[++o]),"0"===t){if(o+1===r)return!0;if("b"===(t=e[++o])){for(o++;o<r;o++)if("_"!==(t=e[o])){if("0"!==t&&"1"!==t)return!1;i=!0}return i&&"_"!==t}if("x"===t){for(o++;o<r;o++)if("_"!==(t=e[o])){if(!(48<=(n=e.charCodeAt(o))&&n<=57||65<=n&&n<=70||97<=n&&n<=102))return!1;i=!0}return i&&"_"!==t}if("o"===t){for(o++;o<r;o++)if("_"!==(t=e[o])){if(!mF(e.charCodeAt(o)))return!1;i=!0}return i&&"_"!==t}}if("_"===t)return!1;for(;o<r;o++)if("_"!==(t=e[o])){if(!gF(e.charCodeAt(o)))return!1;i=!0}return!(!i||"_"===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&&!HX.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"]}}),yF=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var vF=/^[-+]?[0-9]+e/;var bF=new iF("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!yF.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||HX.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(HX.isNegativeZero(e))return"-0.0";return n=e.toString(10),vF.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"}),wF=pF.extend({implicit:[fF,hF,OF,bF]}),SF=wF,xF=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),kF=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 $F=new iF("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==xF.exec(e)||null!==kF.exec(e))},construct:function(e){var t,n,r,o,i,a,s,l,c=0,u=null;if(null===(t=xF.exec(e))&&(t=kF.exec(e)),null===t)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,o=+t[3],!t[4])return new Date(Date.UTC(n,r,o));if(i=+t[4],a=+t[5],s=+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,o,i,a,s,c)),u&&l.setTime(l.getTime()-u),l},instanceOf:Date,represent:function(e){return e.toISOString()}});var PF=new iF("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),_F="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var TF=new iF("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=0,o=e.length,i=_F;for(n=0;n<o;n++)if(!((t=i.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,""),o=r.length,i=_F,a=0,s=[];for(t=0;t<o;t++)t%4==0&&t&&(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)),a=a<<6|i.indexOf(r.charAt(t));return 0===(n=o%4*6)?(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)):18===n?(s.push(a>>10&255),s.push(a>>2&255)):12===n&&s.push(a>>4&255),new Uint8Array(s)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,n,r="",o=0,i=e.length,a=_F;for(t=0;t<i;t++)t%3==0&&t&&(r+=a[o>>18&63],r+=a[o>>12&63],r+=a[o>>6&63],r+=a[63&o]),o=(o<<8)+e[t];return 0===(n=i%3)?(r+=a[o>>18&63],r+=a[o>>12&63],r+=a[o>>6&63],r+=a[63&o]):2===n?(r+=a[o>>10&63],r+=a[o>>4&63],r+=a[o<<2&63],r+=a[64]):1===n&&(r+=a[o>>2&63],r+=a[o<<4&63],r+=a[64],r+=a[64]),r}}),EF=Object.prototype.hasOwnProperty,QF=Object.prototype.toString;var CF=new iF("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,o,i,a=[],s=e;for(t=0,n=s.length;t<n;t+=1){if(r=s[t],i=!1,"[object Object]"!==QF.call(r))return!1;for(o in r)if(EF.call(r,o)){if(i)return!1;i=!0}if(!i)return!1;if(-1!==a.indexOf(o))return!1;a.push(o)}return!0},construct:function(e){return null!==e?e:[]}}),AF=Object.prototype.toString;var RF=new iF("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,o,i,a=e;for(i=new Array(a.length),t=0,n=a.length;t<n;t+=1){if(r=a[t],"[object Object]"!==AF.call(r))return!1;if(1!==(o=Object.keys(r)).length)return!1;i[t]=[o[0],r[o[0]]]}return!0},construct:function(e){if(null===e)return[];var t,n,r,o,i,a=e;for(i=new Array(a.length),t=0,n=a.length;t<n;t+=1)r=a[t],o=Object.keys(r),i[t]=[o[0],r[o[0]]];return i}}),NF=Object.prototype.hasOwnProperty;var DF=new iF("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,n=e;for(t in n)if(NF.call(n,t)&&null!==n[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),jF=SF.extend({implicit:[$F,PF],explicit:[TF,CF,RF,DF]}),qF=Object.prototype.hasOwnProperty,IF=1,UF=2,MF=3,XF=4,FF=1,ZF=2,VF=3,LF=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,zF=/[\x85\u2028\u2029]/,WF=/[,\[\]\{\}]/,BF=/^(?:!|!!|![a-z\-]+!)$/i,YF=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function HF(e){return Object.prototype.toString.call(e)}function GF(e){return 10===e||13===e}function KF(e){return 9===e||32===e}function JF(e){return 9===e||32===e||10===e||13===e}function eZ(e){return 44===e||91===e||93===e||123===e||125===e}function tZ(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function nZ(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 rZ(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var oZ=new Array(256),iZ=new Array(256),aZ=0;aZ<256;aZ++)oZ[aZ]=nZ(aZ)?1:0,iZ[aZ]=nZ(aZ);function sZ(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||jF,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 lZ(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=nF(n),new JX(t,n)}function cZ(e,t){throw lZ(e,t)}function uZ(e,t){e.onWarning&&e.onWarning.call(null,lZ(e,t))}var dZ={YAML:function(e,t,n){var r,o,i;null!==e.version&&cZ(e,"duplication of %YAML directive"),1!==n.length&&cZ(e,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&cZ(e,"ill-formed argument of the YAML directive"),o=parseInt(r[1],10),i=parseInt(r[2],10),1!==o&&cZ(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&uZ(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,o;2!==n.length&&cZ(e,"TAG directive accepts exactly two arguments"),r=n[0],o=n[1],BF.test(r)||cZ(e,"ill-formed tag handle (first argument) of the TAG directive"),qF.call(e.tagMap,r)&&cZ(e,'there is a previously declared suffix for "'+r+'" tag handle'),YF.test(o)||cZ(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch(i){cZ(e,"tag prefix is malformed: "+o)}e.tagMap[r]=o}};function pZ(e,t,n,r){var o,i,a,s;if(t<n){if(s=e.input.slice(t,n),r)for(o=0,i=s.length;o<i;o+=1)9===(a=s.charCodeAt(o))||32<=a&&a<=1114111||cZ(e,"expected valid JSON character");else LF.test(s)&&cZ(e,"the stream contains non-printable characters");e.result+=s}}function fZ(e,t,n,r){var o,i,a,s;for(HX.isObject(n)||cZ(e,"cannot merge mappings; the provided source object is unacceptable"),a=0,s=(o=Object.keys(n)).length;a<s;a+=1)i=o[a],qF.call(t,i)||(t[i]=n[i],r[i]=!0)}function hZ(e,t,n,r,o,i,a,s,l){var c,u;if(Array.isArray(o))for(c=0,u=(o=Array.prototype.slice.call(o)).length;c<u;c+=1)Array.isArray(o[c])&&cZ(e,"nested arrays are not supported inside keys"),"object"==typeof o&&"[object Object]"===HF(o[c])&&(o[c]="[object Object]");if("object"==typeof o&&"[object Object]"===HF(o)&&(o="[object Object]"),o=String(o),null===t&&(t={}),"tag:yaml.org,2002:merge"===r)if(Array.isArray(i))for(c=0,u=i.length;c<u;c+=1)fZ(e,t,i[c],n);else fZ(e,t,i,n);else e.json||qF.call(n,o)||!qF.call(t,o)||(e.line=a||e.line,e.lineStart=s||e.lineStart,e.position=l||e.position,cZ(e,"duplicated mapping key")),"__proto__"===o?Object.defineProperty(t,o,{configurable:!0,enumerable:!0,writable:!0,value:i}):t[o]=i,delete n[o];return t}function mZ(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):cZ(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function gZ(e,t,n){for(var r=0,o=e.input.charCodeAt(e.position);0!==o;){for(;KF(o);)9===o&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),o=e.input.charCodeAt(++e.position);if(t&&35===o)do{o=e.input.charCodeAt(++e.position)}while(10!==o&&13!==o&&0!==o);if(!GF(o))break;for(mZ(e),o=e.input.charCodeAt(e.position),r++,e.lineIndent=0;32===o;)e.lineIndent++,o=e.input.charCodeAt(++e.position)}return-1!==n&&0!==r&&e.lineIndent<n&&uZ(e,"deficient indentation"),r}function OZ(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))&&!JF(t)))}function yZ(e,t){1===t?e.result+=" ":t>1&&(e.result+=HX.repeat("\n",t-1))}function vZ(e,t){var n,r,o=e.tag,i=e.anchor,a=[],s=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),r=e.input.charCodeAt(e.position);0!==r&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,cZ(e,"tab characters must not be used in indentation")),45===r)&&JF(e.input.charCodeAt(e.position+1));)if(s=!0,e.position++,gZ(e,!0,-1)&&e.lineIndent<=t)a.push(null),r=e.input.charCodeAt(e.position);else if(n=e.line,SZ(e,t,MF,!1,!0),a.push(e.result),gZ(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==r)cZ(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!s&&(e.tag=o,e.anchor=i,e.kind="sequence",e.result=a,!0)}function bZ(e){var t,n,r,o,i=!1,a=!1;if(33!==(o=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&cZ(e,"duplication of a tag property"),60===(o=e.input.charCodeAt(++e.position))?(i=!0,o=e.input.charCodeAt(++e.position)):33===o?(a=!0,n="!!",o=e.input.charCodeAt(++e.position)):n="!",t=e.position,i){do{o=e.input.charCodeAt(++e.position)}while(0!==o&&62!==o);e.position<e.length?(r=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):cZ(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==o&&!JF(o);)33===o&&(a?cZ(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),BF.test(n)||cZ(e,"named tag handle cannot contain such characters"),a=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);r=e.input.slice(t,e.position),WF.test(r)&&cZ(e,"tag suffix cannot contain flow indicator characters")}r&&!YF.test(r)&&cZ(e,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch(s){cZ(e,"tag name is malformed: "+r)}return i?e.tag=r:qF.call(e.tagMap,n)?e.tag=e.tagMap[n]+r:"!"===n?e.tag="!"+r:"!!"===n?e.tag="tag:yaml.org,2002:"+r:cZ(e,'undeclared tag handle "'+n+'"'),!0}function wZ(e){var t,n;if(38!==(n=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&cZ(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!JF(n)&&!eZ(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&cZ(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function SZ(e,t,n,r,o){var i,a,s,l,c,u,d,p,f,h=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,i=a=s=XF===n||MF===n,r&&gZ(e,!0,-1)&&(m=!0,e.lineIndent>t?h=1:e.lineIndent===t?h=0:e.lineIndent<t&&(h=-1)),1===h)for(;bZ(e)||wZ(e);)gZ(e,!0,-1)?(m=!0,s=i,e.lineIndent>t?h=1:e.lineIndent===t?h=0:e.lineIndent<t&&(h=-1)):s=!1;if(s&&(s=m||o),1!==h&&XF!==n||(p=IF===n||UF===n?t:t+1,f=e.position-e.lineStart,1===h?s&&(vZ(e,f)||function(e,t,n){var r,o,i,a,s,l,c,u=e.tag,d=e.anchor,p={},f=Object.create(null),h=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,cZ(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),i=e.line,63!==c&&58!==c||!JF(r)){if(a=e.line,s=e.lineStart,l=e.position,!SZ(e,n,UF,!1,!0))break;if(e.line===i){for(c=e.input.charCodeAt(e.position);KF(c);)c=e.input.charCodeAt(++e.position);if(58===c)JF(c=e.input.charCodeAt(++e.position))||cZ(e,"a whitespace character is expected after the key-value separator within a block mapping"),O&&(hZ(e,p,f,h,m,null,a,s,l),h=m=g=null),y=!0,O=!1,o=!1,h=e.tag,m=e.result;else{if(!y)return e.tag=u,e.anchor=d,!0;cZ(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!y)return e.tag=u,e.anchor=d,!0;cZ(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===c?(O&&(hZ(e,p,f,h,m,null,a,s,l),h=m=g=null),y=!0,O=!0,o=!0):O?(O=!1,o=!0):cZ(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===i||e.lineIndent>t)&&(O&&(a=e.line,s=e.lineStart,l=e.position),SZ(e,t,XF,!0,o)&&(O?m=e.result:g=e.result),O||(hZ(e,p,f,h,m,g,a,s,l),h=m=g=null),gZ(e,!0,-1),c=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==c)cZ(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return O&&hZ(e,p,f,h,m,null,a,s,l),y&&(e.tag=u,e.anchor=d,e.kind="mapping",e.result=p),y}(e,f,p))||function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h=!0,m=e.tag,g=e.anchor,O=Object.create(null);if(91===(f=e.input.charCodeAt(e.position)))a=93,c=!1,i=[];else{if(123!==f)return!1;a=125,c=!0,i={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),f=e.input.charCodeAt(++e.position);0!==f;){if(gZ(e,!0,t),(f=e.input.charCodeAt(e.position))===a)return e.position++,e.tag=m,e.anchor=g,e.kind=c?"mapping":"sequence",e.result=i,!0;h?44===f&&cZ(e,"expected the node content, but found ','"):cZ(e,"missed comma between flow collection entries"),p=null,s=l=!1,63===f&&JF(e.input.charCodeAt(e.position+1))&&(s=l=!0,e.position++,gZ(e,!0,t)),n=e.line,r=e.lineStart,o=e.position,SZ(e,t,IF,!1,!0),d=e.tag,u=e.result,gZ(e,!0,t),f=e.input.charCodeAt(e.position),!l&&e.line!==n||58!==f||(s=!0,f=e.input.charCodeAt(++e.position),gZ(e,!0,t),SZ(e,t,IF,!1,!0),p=e.result),c?hZ(e,i,O,d,u,p,n,r,o):s?i.push(hZ(e,null,O,d,u,p,n,r,o)):i.push(u),gZ(e,!0,t),44===(f=e.input.charCodeAt(e.position))?(h=!0,f=e.input.charCodeAt(++e.position)):h=!1}cZ(e,"unexpected end of the stream within a flow collection")}(e,p)?g=!0:(a&&function(e,t){var n,r,o,i,a,s=FF,l=!1,c=!1,u=t,d=0,p=!1;if(124===(i=e.input.charCodeAt(e.position)))r=!1;else{if(62!==i)return!1;r=!0}for(e.kind="scalar",e.result="";0!==i;)if(43===(i=e.input.charCodeAt(++e.position))||45===i)FF===s?s=43===i?VF:ZF:cZ(e,"repeat of a chomping mode identifier");else{if(!((o=48<=(a=i)&&a<=57?a-48:-1)>=0))break;0===o?cZ(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?cZ(e,"repeat of an indentation width identifier"):(u=t+o-1,c=!0)}if(KF(i)){do{i=e.input.charCodeAt(++e.position)}while(KF(i));if(35===i)do{i=e.input.charCodeAt(++e.position)}while(!GF(i)&&0!==i)}for(;0!==i;){for(mZ(e),e.lineIndent=0,i=e.input.charCodeAt(e.position);(!c||e.lineIndent<u)&&32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position);if(!c&&e.lineIndent>u&&(u=e.lineIndent),GF(i))d++;else{if(e.lineIndent<u){s===VF?e.result+=HX.repeat("\n",l?1+d:d):s===FF&&l&&(e.result+="\n");break}for(r?KF(i)?(p=!0,e.result+=HX.repeat("\n",l?1+d:d)):p?(p=!1,e.result+=HX.repeat("\n",d+1)):0===d?l&&(e.result+=" "):e.result+=HX.repeat("\n",d):e.result+=HX.repeat("\n",l?1+d:d),l=!0,c=!0,d=0,n=e.position;!GF(i)&&0!==i;)i=e.input.charCodeAt(++e.position);pZ(e,n,e.position,!1)}}return!0}(e,p)||function(e,t){var n,r,o;if(39!==(n=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=o=e.position;0!==(n=e.input.charCodeAt(e.position));)if(39===n){if(pZ(e,r,e.position,!0),39!==(n=e.input.charCodeAt(++e.position)))return!0;r=e.position,e.position++,o=e.position}else GF(n)?(pZ(e,r,o,!0),yZ(e,gZ(e,!1,t)),r=o=e.position):e.position===e.lineStart&&OZ(e)?cZ(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);cZ(e,"unexpected end of the stream within a single quoted scalar")}(e,p)||function(e,t){var n,r,o,i,a,s,l;if(34!==(s=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;0!==(s=e.input.charCodeAt(e.position));){if(34===s)return pZ(e,n,e.position,!0),e.position++,!0;if(92===s){if(pZ(e,n,e.position,!0),GF(s=e.input.charCodeAt(++e.position)))gZ(e,!1,t);else if(s<256&&oZ[s])e.result+=iZ[s],e.position++;else if((a=120===(l=s)?2:117===l?4:85===l?8:0)>0){for(o=a,i=0;o>0;o--)(a=tZ(s=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+a:cZ(e,"expected hexadecimal character");e.result+=rZ(i),e.position++}else cZ(e,"unknown escape sequence");n=r=e.position}else GF(s)?(pZ(e,n,r,!0),yZ(e,gZ(e,!1,t)),n=r=e.position):e.position===e.lineStart&&OZ(e)?cZ(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}cZ(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&&!JF(r)&&!eZ(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&cZ(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),qF.call(e.anchorMap,n)||cZ(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],gZ(e,!0,-1),!0}(e)?function(e,t,n){var r,o,i,a,s,l,c,u,d=e.kind,p=e.result;if(JF(u=e.input.charCodeAt(e.position))||eZ(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)&&(JF(r=e.input.charCodeAt(e.position+1))||n&&eZ(r)))return!1;for(e.kind="scalar",e.result="",o=i=e.position,a=!1;0!==u;){if(58===u){if(JF(r=e.input.charCodeAt(e.position+1))||n&&eZ(r))break}else if(35===u){if(JF(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&OZ(e)||n&&eZ(u))break;if(GF(u)){if(s=e.line,l=e.lineStart,c=e.lineIndent,gZ(e,!1,-1),e.lineIndent>=t){a=!0,u=e.input.charCodeAt(e.position);continue}e.position=i,e.line=s,e.lineStart=l,e.lineIndent=c;break}}a&&(pZ(e,o,i,!1),yZ(e,e.line-s),o=i=e.position,a=!1),KF(u)||(i=e.position+1),u=e.input.charCodeAt(++e.position)}return pZ(e,o,i,!1),!!e.result||(e.kind=d,e.result=p,!1)}(e,p,IF===n)&&(g=!0,null===e.tag&&(e.tag="?")):(g=!0,null===e.tag&&null===e.anchor||cZ(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===h&&(g=s&&vZ(e,f))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&cZ(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(qF.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||cZ(e,"unknown tag !<"+e.tag+">"),null!==e.result&&d.kind!==e.kind&&cZ(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)):cZ(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 xZ(e){var t,n,r,o,i=e.position,a=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(o=e.input.charCodeAt(e.position))&&(gZ(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==o));){for(a=!0,o=e.input.charCodeAt(++e.position),t=e.position;0!==o&&!JF(o);)o=e.input.charCodeAt(++e.position);for(r=[],(n=e.input.slice(t,e.position)).length<1&&cZ(e,"directive name must not be less than one character in length");0!==o;){for(;KF(o);)o=e.input.charCodeAt(++e.position);if(35===o){do{o=e.input.charCodeAt(++e.position)}while(0!==o&&!GF(o));break}if(GF(o))break;for(t=e.position;0!==o&&!JF(o);)o=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==o&&mZ(e),qF.call(dZ,n)?dZ[n](e,n,r):uZ(e,'unknown document directive "'+n+'"')}gZ(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,gZ(e,!0,-1)):a&&cZ(e,"directives end mark is expected"),SZ(e,e.lineIndent-1,XF,!1,!0),gZ(e,!0,-1),e.checkLineBreaks&&zF.test(e.input.slice(i,e.position))&&uZ(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&OZ(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,gZ(e,!0,-1)):e.position<e.length-1&&cZ(e,"end of the stream or a document separator is expected")}function kZ(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 sZ(e,t),r=e.indexOf("\0");for(-1!==r&&(n.position=r,cZ(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;)xZ(n);return n.documents}var $Z={loadAll:function(e,t,n){null!==t&&"object"==typeof t&&void 0===n&&(n=t,t=null);var r=kZ(e,n);if("function"!=typeof t)return r;for(var o=0,i=r.length;o<i;o+=1)t(r[o])},load:function(e,t){var n=kZ(e,t);if(0!==n.length){if(1===n.length)return n[0];throw new JX("expected a single document in the stream, but found more")}}},PZ=Object.prototype.toString,_Z=Object.prototype.hasOwnProperty,TZ=65279,EZ=9,QZ=10,CZ=13,AZ=32,RZ=33,NZ=34,DZ=35,jZ=37,qZ=38,IZ=39,UZ=42,MZ=44,XZ=45,FZ=58,ZZ=61,VZ=62,LZ=63,zZ=64,WZ=91,BZ=93,YZ=96,HZ=123,GZ=124,KZ=125,JZ={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"},eV=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],tV=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function nV(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 JX("code point within a string may not be greater than 0xFFFFFFFF");n="U",r=8}return"\\"+n+HX.repeat("0",r-t.length)+t}var rV=1,oV=2;function iV(e){this.schema=e.schema||jF,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=HX.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var n,r,o,i,a,s,l;if(null===t)return{};for(n={},o=0,i=(r=Object.keys(t)).length;o<i;o+=1)a=r[o],s=String(t[a]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),(l=e.compiledTypeMap.fallback[a])&&_Z.call(l.styleAliases,s)&&(s=l.styleAliases[s]),n[a]=s;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?oV:rV,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 aV(e,t){for(var n,r=HX.repeat(" ",t),o=0,i=-1,a="",s=e.length;o<s;)-1===(i=e.indexOf("\n",o))?(n=e.slice(o),o=s):(n=e.slice(o,i+1),o=i+1),n.length&&"\n"!==n&&(a+=r),a+=n;return a}function sV(e,t){return"\n"+HX.repeat(" ",e.indent*t)}function lV(e){return e===AZ||e===EZ}function cV(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==TZ||65536<=e&&e<=1114111}function uV(e){return cV(e)&&e!==TZ&&e!==CZ&&e!==QZ}function dV(e,t,n){var r=uV(e),o=r&&!lV(e);return(n?r:r&&e!==MZ&&e!==WZ&&e!==BZ&&e!==HZ&&e!==KZ)&&e!==DZ&&!(t===FZ&&!o)||uV(t)&&!lV(t)&&e===DZ||t===FZ&&o}function pV(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 fV(e){return/^\n* /.test(e)}var hV=1,mV=2,gV=3,OV=4,yV=5;function vV(e,t,n,r,o,i,a,s){var l,c,u=0,d=null,p=!1,f=!1,h=-1!==r,m=-1,g=cV(c=pV(e,0))&&c!==TZ&&!lV(c)&&c!==XZ&&c!==LZ&&c!==FZ&&c!==MZ&&c!==WZ&&c!==BZ&&c!==HZ&&c!==KZ&&c!==DZ&&c!==qZ&&c!==UZ&&c!==RZ&&c!==GZ&&c!==ZZ&&c!==VZ&&c!==IZ&&c!==NZ&&c!==jZ&&c!==zZ&&c!==YZ&&function(e){return!lV(e)&&e!==FZ}(pV(e,e.length-1));if(t||a)for(l=0;l<e.length;u>=65536?l+=2:l++){if(!cV(u=pV(e,l)))return yV;g=g&&dV(u,d,s),d=u}else{for(l=0;l<e.length;u>=65536?l+=2:l++){if((u=pV(e,l))===QZ)p=!0,h&&(f=f||l-m-1>r&&" "!==e[m+1],m=l);else if(!cV(u))return yV;g=g&&dV(u,d,s),d=u}f=f||h&&l-m-1>r&&" "!==e[m+1]}return p||f?n>9&&fV(e)?yV:a?i===oV?yV:mV:f?OV:gV:!g||a||o(e)?i===oV?yV:mV:hV}function bV(e,t,n,r,o){e.dump=function(){if(0===t.length)return e.quotingType===oV?'""':"''";if(!e.noCompatMode&&(-1!==eV.indexOf(t)||tV.test(t)))return e.quotingType===oV?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,n),a=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),s=r||e.flowLevel>-1&&n>=e.flowLevel;switch(vV(t,s,e.indent,a,(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,o)){case hV:return t;case mV:return"'"+t.replace(/'/g,"''")+"'";case gV:return"|"+wV(t,e.indent)+SV(aV(t,i));case OV:return">"+wV(t,e.indent)+SV(aV(function(e,t){var n,r,o=/(\n+)([^\n]*)/g,i=(s=e.indexOf("\n"),s=-1!==s?s:e.length,o.lastIndex=s,xV(e.slice(0,s),t)),a="\n"===e[0]||" "===e[0];var s;for(;r=o.exec(e);){var l=r[1],c=r[2];n=" "===c[0],i+=l+(a||n||""===c?"":"\n")+xV(c,t),a=n}return i}(t,a),i));case yV:return'"'+function(e){for(var t,n="",r=0,o=0;o<e.length;r>=65536?o+=2:o++)r=pV(e,o),!(t=JZ[r])&&cV(r)?(n+=e[o],r>=65536&&(n+=e[o+1])):n+=t||nV(r);return n}(t)+'"';default:throw new JX("impossible error: invalid scalar style")}}()}function wV(e,t){var n=fV(e)?String(t):"",r="\n"===e[e.length-1];return n+(r&&("\n"===e[e.length-2]||"\n"===e)?"+":r?"":"-")+"\n"}function SV(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function xV(e,t){if(""===e||" "===e[0])return e;for(var n,r,o=/ [^ ]/g,i=0,a=0,s=0,l="";n=o.exec(e);)(s=n.index)-i>t&&(r=a>i?a:s,l+="\n"+e.slice(i,r),i=r+1),a=s;return l+="\n",e.length-i>t&&a>i?l+=e.slice(i,a)+"\n"+e.slice(a+1):l+=e.slice(i),l.slice(1)}function kV(e,t,n,r){var o,i,a,s="",l=e.tag;for(o=0,i=n.length;o<i;o+=1)a=n[o],e.replacer&&(a=e.replacer.call(n,String(o),a)),(PV(e,t+1,a,!0,!0,!1,!0)||void 0===a&&PV(e,t+1,null,!0,!0,!1,!0))&&(r&&""===s||(s+=sV(e,t)),e.dump&&QZ===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump);e.tag=l,e.dump=s||"[]"}function $V(e,t,n){var r,o,i,a,s,l;for(i=0,a=(o=n?e.explicitTypes:e.implicitTypes).length;i<a;i+=1)if(((s=o[i]).instanceOf||s.predicate)&&(!s.instanceOf||"object"==typeof t&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(n?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag="?",s.represent){if(l=e.styleMap[s.tag]||s.defaultStyle,"[object Function]"===PZ.call(s.represent))r=s.represent(t,l);else{if(!_Z.call(s.represent,l))throw new JX("!<"+s.tag+'> tag resolver accepts not "'+l+'" style');r=s.represent[l](t,l)}e.dump=r}return!0}return!1}function PV(e,t,n,r,o,i,a){e.tag=null,e.dump=n,$V(e,n,!1)||$V(e,n,!0);var s,l=PZ.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)&&(o=!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 o,i,a,s,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 JX("sortKeys must be a boolean or a function");for(o=0,i=p.length;o<i;o+=1)c="",r&&""===u||(c+=sV(e,t)),s=n[a=p[o]],e.replacer&&(s=e.replacer.call(n,a,s)),PV(e,t+1,a,!0,!0,!0)&&((l=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&QZ===e.dump.charCodeAt(0)?c+="?":c+="? "),c+=e.dump,l&&(c+=sV(e,t)),PV(e,t+1,s,!0,l)&&(e.dump&&QZ===e.dump.charCodeAt(0)?c+=":":c+=": ",u+=c+=e.dump));e.tag=d,e.dump=u||"{}"}(e,t,e.dump,o),d&&(e.dump="&ref_"+u+e.dump)):(!function(e,t,n){var r,o,i,a,s,l="",c=e.tag,u=Object.keys(n);for(r=0,o=u.length;r<o;r+=1)s="",""!==l&&(s+=", "),e.condenseFlow&&(s+='"'),a=n[i=u[r]],e.replacer&&(a=e.replacer.call(n,i,a)),PV(e,t,i,!1,!1)&&(e.dump.length>1024&&(s+="? "),s+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),PV(e,t,a,!1,!1)&&(l+=s+=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&&!a&&t>0?kV(e,t-1,e.dump,o):kV(e,t,e.dump,o),d&&(e.dump="&ref_"+u+e.dump)):(!function(e,t,n){var r,o,i,a="",s=e.tag;for(r=0,o=n.length;r<o;r+=1)i=n[r],e.replacer&&(i=e.replacer.call(n,String(r),i)),(PV(e,t,i,!1,!1)||void 0===i&&PV(e,t,null,!1,!1))&&(""!==a&&(a+=","+(e.condenseFlow?"":" ")),a+=e.dump);e.tag=s,e.dump="["+a+"]"}(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 JX("unacceptable kind of an object to dump "+l)}"?"!==e.tag&&bV(e,e.dump,t,i,c)}null!==e.tag&&"?"!==e.tag&&(s=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),s="!"===e.tag[0]?"!"+s:"tag:yaml.org,2002:"===s.slice(0,18)?"!!"+s.slice(18):"!<"+s+">",e.dump=s+" "+e.dump)}return!0}function _V(e,t){var n,r,o=[],i=[];for(TV(e,o,i),n=0,r=i.length;n<r;n+=1)t.duplicates.push(o[i[n]]);t.usedDuplicates=new Array(r)}function TV(e,t,n){var r,o,i;if(null!==e&&"object"==typeof e)if(-1!==(o=t.indexOf(e)))-1===n.indexOf(o)&&n.push(o);else if(t.push(e),Array.isArray(e))for(o=0,i=e.length;o<i;o+=1)TV(e[o],t,n);else for(o=0,i=(r=Object.keys(e)).length;o<i;o+=1)TV(e[r[o]],t,n)}function EV(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 QV={Type:iF,Schema:lF,FAILSAFE_SCHEMA:pF,JSON_SCHEMA:wF,CORE_SCHEMA:SF,DEFAULT_SCHEMA:jF,load:$Z.load,loadAll:$Z.loadAll,dump:{dump:function(e,t){var n=new iV(t=t||{});n.noRefs||_V(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},"",r)),PV(n,0,r,!0,!0)?n.dump+"\n":""}}.dump,YAMLException:JX,types:{binary:TF,float:bF,map:dF,null:fF,pairs:RF,set:DF,timestamp:$F,bool:hF,int:OF,merge:PF,omap:CF,seq:uF,str:cF},safeLoad:EV("safeLoad","load"),safeLoadAll:EV("safeLoadAll","loadAll"),safeDump:EV("safeDump","dump")};const CV=dn(!1);function AV(){return CV.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(CV,(e=>{"undefined"!=typeof document&&(document.body.classList.toggle("dark-mode",e),document.body.classList.toggle("light-mode",!e))}),{immediate:!0}),{isDark:CV,toggleDarkMode:()=>{var e;CV.value=!CV.value,"undefined"!=typeof window&&(null==(e=null==window?void 0:window.localStorage)||e.setItem("isDark",JSON.stringify(CV.value)))}}}const RV=dn(void 0),NV=Yt({});function DV(e,t){NV[e]=t}const jV=Yt({});function qV(e){jV[e]=!jV[e]}function IV(e,t){jV[e]=t}const UV=dn([]),MV=Ua((()=>{var e,t,n,r,o,i,a,s,l;const{state:c}=KE(),u=UV.value.map((e=>({id:Pq(e),title:e.value.toUpperCase(),type:"Page",show:!c.showApiClient}))),d=null==(t=null==(e=RV.value)?void 0:e.tags)?void 0:t[0];var p;return[...u,...(d&&(1!==(null==(p=null==(n=RV.value)?void 0:n.tags)?void 0:p.length)||"default"!==p[0].name||""!==p[0].description)&&(null==(r=d.operations)?void 0:r.length)>0?null==(i=null==(o=RV.value)?void 0:o.tags)?void 0:i.map((e=>{var t;return{id:kX(e),title:e.name.toUpperCase(),type:"Folder",show:!0,children:null==(t=e.operations)?void 0:t.map((t=>{var n;return{id:$X(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&&zX(t)}}}))}})):null==(a=null==d?void 0:d.operations)?void 0:a.map((e=>{var t;return{id:$X(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&&zX(e)}}})))??[],...AX(RV.value)?[{id:xX(),title:"MODELS",type:"Folder",show:!c.showApiClient,children:Object.keys((null==(l=null==(s=RV.value)?void 0:s.components)?void 0:l.schemas)??{}).map((e=>({id:xX(e),title:e,type:"Page",show:!c.showApiClient})))}]:[]]})),XV=Ua((()=>{var e;return(null==(e=MV.value.reduce(((e,t)=>(e.push(t),t.children&&e.push(...t.children),e)),[]).find((e=>{return t=e.id,NV[t]??!1;var t})))?void 0:e.id)??null}));function FV(e){return(null==e?void 0:e.parsedSpec)&&(RV.value=e.parsedSpec,Ir(RV,(()=>{var e,t;const n=null==(t=null==(e=RV.value)?void 0:e.tags)?void 0:t[0];n&&IV(kX(n),!0)}),{immediate:!0,deep:!0}),Ir((()=>{var e,t;return null==(t=null==(e=RV.value)?void 0:e.info)?void 0:t.description}),(async()=>{var e,t;const n=null==(t=null==(e=RV.value)?void 0:e.info)?void 0:t.description;return n?UV.value=await(async e=>{const t=await bX(e),n=SX(t);return t.filter((e=>e.depth===n))})(n):[]})),Ir(XV,(e=>{if(e){const t=`${window.location.origin}${window.location.pathname}#${e}`;window.history.replaceState({},"",t)}}))),{items:MV,activeItemId:XV,sidebarIdVisibility:NV,setItemIdVisibility:DV,collapsedSidebarItems:jV,toggleCollapsedSidebarItem:qV,setCollapsedSidebarItem:IV}}function ZV(e){return{parameterMap:Ua((()=>{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 VV(e){return{responses:Ua((()=>{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 LV,zV={},WV={},BV={},YV=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 o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0},HV=YV,GV=function(){return HV()&&!!Symbol.toStringTag},KV="undefined"!=typeof Symbol&&Symbol,JV=YV,eL={foo:{}},tL=Object,nL=Object.prototype.toString,rL=Math.max,oL=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n},iL=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==nL.apply(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n,r=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n}(arguments,1),o=rL(0,t.length-r.length),i=[],a=0;a<o;a++)i[a]="$"+a;if(n=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(i,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof n){var o=t.apply(this,oL(r,arguments));return Object(o)===o?o:this}return t.apply(e,oL(r,arguments))})),t.prototype){var s=function(){};s.prototype=t.prototype,n.prototype=new s,s.prototype=null}return n},aL=Function.prototype.bind||iL,sL=Function.prototype.call,lL=Object.prototype.hasOwnProperty,cL=aL.call(sL,lL),uL=SyntaxError,dL=Function,pL=TypeError,fL=function(e){try{return dL('"use strict"; return ('+e+").constructor;")()}catch(Oc){}},hL=Object.getOwnPropertyDescriptor;if(hL)try{hL({},"")}catch(Oc){hL=null}var mL=function(){throw new pL},gL=hL?function(){try{return mL}catch(e){try{return hL(arguments,"callee").get}catch(t){return mL}}}():mL,OL="function"==typeof KV&&"function"==typeof Symbol&&"symbol"==typeof KV("foo")&&"symbol"==typeof Symbol("bar")&&JV(),yL={__proto__:eL}.foo===eL.foo&&!({__proto__:null}instanceof tL),vL=Object.getPrototypeOf||(yL?function(e){return e.__proto__}:null),bL={},wL="undefined"!=typeof Uint8Array&&vL?vL(Uint8Array):LV,SL={"%AggregateError%":"undefined"==typeof AggregateError?LV:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?LV:ArrayBuffer,"%ArrayIteratorPrototype%":OL&&vL?vL([][Symbol.iterator]()):LV,"%AsyncFromSyncIteratorPrototype%":LV,"%AsyncFunction%":bL,"%AsyncGenerator%":bL,"%AsyncGeneratorFunction%":bL,"%AsyncIteratorPrototype%":bL,"%Atomics%":"undefined"==typeof Atomics?LV:Atomics,"%BigInt%":"undefined"==typeof BigInt?LV:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?LV:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?LV:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?LV:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?LV:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?LV:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?LV:FinalizationRegistry,"%Function%":dL,"%GeneratorFunction%":bL,"%Int8Array%":"undefined"==typeof Int8Array?LV:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?LV:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?LV:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":OL&&vL?vL(vL([][Symbol.iterator]())):LV,"%JSON%":"object"==typeof JSON?JSON:LV,"%Map%":"undefined"==typeof Map?LV:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&OL&&vL?vL((new Map)[Symbol.iterator]()):LV,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?LV:Promise,"%Proxy%":"undefined"==typeof Proxy?LV:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?LV:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?LV:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&OL&&vL?vL((new Set)[Symbol.iterator]()):LV,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?LV:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":OL&&vL?vL(""[Symbol.iterator]()):LV,"%Symbol%":OL?Symbol:LV,"%SyntaxError%":uL,"%ThrowTypeError%":gL,"%TypedArray%":wL,"%TypeError%":pL,"%Uint8Array%":"undefined"==typeof Uint8Array?LV:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?LV:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?LV:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?LV:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?LV:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?LV:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?LV:WeakSet};if(vL)try{null.error}catch(Oc){var xL=vL(vL(Oc));SL["%Error.prototype%"]=xL}var kL=function e(t){var n;if("%AsyncFunction%"===t)n=fL("async function () {}");else if("%GeneratorFunction%"===t)n=fL("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=fL("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&vL&&(n=vL(o.prototype))}return SL[t]=n,n},$L={"%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"]},PL=aL,_L=cL,TL=PL.call(Function.call,Array.prototype.concat),EL=PL.call(Function.apply,Array.prototype.splice),QL=PL.call(Function.call,String.prototype.replace),CL=PL.call(Function.call,String.prototype.slice),AL=PL.call(Function.call,RegExp.prototype.exec),RL=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,NL=/\\(\\)?/g,DL=function(e,t){var n,r=e;if(_L($L,r)&&(r="%"+(n=$L[r])[0]+"%"),_L(SL,r)){var o=SL[r];if(o===bL&&(o=kL(r)),void 0===o&&!t)throw new pL("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new uL("intrinsic "+e+" does not exist!")},jL=function(e,t){if("string"!=typeof e||0===e.length)throw new pL("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new pL('"allowMissing" argument must be a boolean');if(null===AL(/^%?[^%]*%?$/,e))throw new uL("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=CL(e,0,1),n=CL(e,-1);if("%"===t&&"%"!==n)throw new uL("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new uL("invalid intrinsic syntax, expected opening `%`");var r=[];return QL(e,RL,(function(e,t,n,o){r[r.length]=n?QL(o,NL,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=DL("%"+r+"%",t),i=o.name,a=o.value,s=!1,l=o.alias;l&&(r=l[0],EL(n,TL([0,1],l)));for(var c=1,u=!0;c<n.length;c+=1){var d=n[c],p=CL(d,0,1),f=CL(d,-1);if(('"'===p||"'"===p||"`"===p||'"'===f||"'"===f||"`"===f)&&p!==f)throw new uL("property names with quotes must have matching quotes");if("constructor"!==d&&u||(s=!0),_L(SL,i="%"+(r+="."+d)+"%"))a=SL[i];else if(null!=a){if(!(d in a)){if(!t)throw new pL("base intrinsic for "+e+" exists, but the property is not available.");return}if(hL&&c+1>=n.length){var h=hL(a,d);a=(u=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:a[d]}else u=_L(a,d),a=a[d];u&&!s&&(SL[i]=a)}}return a},qL={exports:{}},IL=jL("%Object.defineProperty%",!0),UL=function(){if(IL)try{return IL({},"a",{value:1}),!0}catch(Oc){return!1}return!1};UL.hasArrayLengthDefineBug=function(){if(!UL())return null;try{return 1!==IL([],"length",{value:1}).length}catch(Oc){return!0}};var ML=UL,XL=jL("%Object.getOwnPropertyDescriptor%",!0);if(XL)try{XL([],"length")}catch(Oc){XL=null}var FL=XL,ZL=ML(),VL=jL,LL=ZL&&VL("%Object.defineProperty%",!0);if(LL)try{LL({},"a",{value:1})}catch(Oc){LL=!1}var zL=VL("%SyntaxError%"),WL=VL("%TypeError%"),BL=FL,YL=jL,HL=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new WL("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new WL("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new WL("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new WL("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new WL("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new WL("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,a=arguments.length>6&&arguments[6],s=!!BL&&BL(e,t);if(LL)LL(e,t,{configurable:null===i&&s?s.configurable:!i,enumerable:null===r&&s?s.enumerable:!r,value:n,writable:null===o&&s?s.writable:!o});else{if(!a&&(r||o||i))throw new zL("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}},GL=ML(),KL=FL,JL=YL("%TypeError%"),ez=YL("%Math.floor%"),tz=function(e,t){if("function"!=typeof e)throw new JL("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||ez(t)!==t)throw new JL("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,o=!0;if("length"in e&&KL){var i=KL(e,"length");i&&!i.configurable&&(r=!1),i&&!i.writable&&(o=!1)}return(r||o||!n)&&(GL?HL(e,"length",t,!0,!0):HL(e,"length",t)),e};!function(e){var t=aL,n=jL,r=tz,o=n("%TypeError%"),i=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),s=n("%Reflect.apply%",!0)||t.call(a,i),l=n("%Object.defineProperty%",!0),c=n("%Math.max%");if(l)try{l({},"a",{value:1})}catch(Oc){l=null}e.exports=function(e){if("function"!=typeof e)throw new o("a function is required");var n=s(t,a,arguments);return r(n,1+c(0,e.length-(arguments.length-1)),!0)};var u=function(){return s(t,i,arguments)};l?l(e.exports,"apply",{value:u}):e.exports.apply=u}(qL);var nz=qL.exports,rz=jL,oz=nz,iz=oz(rz("String.prototype.indexOf")),az=function(e,t){var n=rz(e,!!t);return"function"==typeof n&&iz(e,".prototype.")>-1?oz(n):n},sz=GV(),lz=az("Object.prototype.toString"),cz=function(e){return!(sz&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===lz(e)},uz=function(e){return!!cz(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==lz(e)&&"[object Function]"===lz(e.callee)},dz=function(){return cz(arguments)}();cz.isLegacyArguments=uz;var pz,fz,hz,mz=dz?cz:uz,gz=Object.prototype.toString,Oz=Function.prototype.toString,yz=/^\s*(?:function)?\*/,vz=GV(),bz=Object.getPrototypeOf,wz=function(e){if("function"!=typeof e)return!1;if(yz.test(Oz.call(e)))return!0;if(!vz)return"[object GeneratorFunction]"===gz.call(e);if(!bz)return!1;if(void 0===pz){var t=function(){if(!vz)return!1;try{return Function("return function*() {}")()}catch(Oc){}}();pz=!!t&&bz(t)}return bz(e)===pz},Sz=Function.prototype.toString,xz="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof xz&&"function"==typeof Object.defineProperty)try{fz=Object.defineProperty({},"length",{get:function(){throw hz}}),hz={},xz((function(){throw 42}),null,fz)}catch(_ge){_ge!==hz&&(xz=null)}else xz=null;var kz=/^\s*class\b/,$z=function(e){try{var t=Sz.call(e);return kz.test(t)}catch(Oc){return!1}},Pz=function(e){try{return!$z(e)&&(Sz.call(e),!0)}catch(Oc){return!1}},_z=Object.prototype.toString,Tz="function"==typeof Symbol&&!!Symbol.toStringTag,Ez=!(0 in[,]),Qz=function(){return!1};if("object"==typeof document){var Cz=document.all;_z.call(Cz)===_z.call(document.all)&&(Qz=function(e){if((Ez||!e)&&(void 0===e||"object"==typeof e))try{var t=_z.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(Oc){}return!1})}var Az=xz?function(e){if(Qz(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{xz(e,null,fz)}catch(Oc){if(Oc!==hz)return!1}return!$z(e)&&Pz(e)}:function(e){if(Qz(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(Tz)return Pz(e);if($z(e))return!1;var t=_z.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&Pz(e)},Rz=Az,Nz=Object.prototype.toString,Dz=Object.prototype.hasOwnProperty,jz=function(e,t,n){if(!Rz(t))throw new TypeError("iterator must be a function");var r;arguments.length>=3&&(r=n),"[object Array]"===Nz.call(e)?function(e,t,n){for(var r=0,o=e.length;r<o;r++)Dz.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,o=e.length;r<o;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)Dz.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,r)},qz=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],Iz="undefined"==typeof globalThis?n:globalThis,Uz=jz,Mz=function(){for(var e=[],t=0;t<qz.length;t++)"function"==typeof Iz[qz[t]]&&(e[e.length]=qz[t]);return e},Xz=nz,Fz=az,Zz=FL,Vz=Fz("Object.prototype.toString"),Lz=GV(),zz="undefined"==typeof globalThis?n:globalThis,Wz=Mz(),Bz=Fz("String.prototype.slice"),Yz=Object.getPrototypeOf,Hz=Fz("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},Gz={__proto__:null};Uz(Wz,Lz&&Zz&&Yz?function(e){var t=new zz[e];if(Symbol.toStringTag in t){var n=Yz(t),r=Zz(n,Symbol.toStringTag);if(!r){var o=Yz(n);r=Zz(o,Symbol.toStringTag)}Gz["$"+e]=Xz(r.get)}}:function(e){var t=new zz[e];Gz["$"+e]=Xz(t.slice)});var Kz=function(e){if(!e||"object"!=typeof e)return!1;if(!Lz){var t=Bz(Vz(e),8,-1);return Hz(Wz,t)>-1?t:"Object"===t&&function(e){var t=!1;return Uz(Gz,(function(n,r){if(!t)try{n(e),t=Bz(r,1)}catch(Oc){}})),t}(e)}return Zz?function(e){var t=!1;return Uz(Gz,(function(n,r){if(!t)try{"$"+n(e)===r&&(t=Bz(r,1))}catch(Oc){}})),t}(e):null},Jz=Kz,eW=function(e){return!!Jz(e)};!function(e){var t=mz,n=wz,r=Kz,o=eW;function i(e){return e.call.bind(e)}var a="undefined"!=typeof BigInt,s="undefined"!=typeof Symbol,l=i(Object.prototype.toString),c=i(Number.prototype.valueOf),u=i(String.prototype.valueOf),d=i(Boolean.prototype.valueOf);if(a)var p=i(BigInt.prototype.valueOf);if(s)var f=i(Symbol.prototype.valueOf);function h(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(Oc){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 v(e){return"[object ArrayBuffer]"===l(e)}function b(e){return"undefined"!=typeof ArrayBuffer&&(v.working?v(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=o,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):o(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)},v.working="undefined"!=typeof ArrayBuffer&&v(new ArrayBuffer),e.isArrayBuffer=b,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 P(e){return h(e,c)}function _(e){return h(e,u)}function T(e){return h(e,d)}function E(e){return a&&h(e,p)}function Q(e){return s&&h(e,f)}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=P,e.isStringObject=_,e.isBooleanObject=T,e.isBigIntObject=E,e.isSymbolObject=Q,e.isBoxedPrimitive=function(e){return P(e)||_(e)||T(e)||E(e)||Q(e)},e.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(b(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")}})}))}(BV);var tW=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8},nW={exports:{}};"function"==typeof Object.create?nW.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:nW.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 rW=nW.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(s(arguments[r]));return t.join(" ")}r=1;for(var o=arguments,i=o.length,a=String(e).replace(n,(function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(o[r++]);case"%d":return Number(o[r++]);case"%j":try{return JSON.stringify(o[r++])}catch(_ge){return"[Circular]"}default:return e}})),l=o[r];r<i;l=o[++r])m(l)||!b(l)?a+=" "+l:a+=" "+s(l);return a},e.deprecate=function(t,n){if(void 0!==i.process&&!0===i.process.noDeprecation)return t;if(void 0===i.process)return function(){return e.deprecate(t,n).apply(this,arguments)};var r=!1;return function(){if(!r){if(i.process.throwDeprecation)throw new Error(n);i.process.traceDeprecation?console.trace(n):console.error(n),r=!0}return t.apply(this,arguments)}};var r={},o=/^$/;if(i.process.env.NODE_DEBUG){var a=i.process.env.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),o=new RegExp("^"+a+"$","i")}function s(t,n){var r={seen:[],stylize:c};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(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=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.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 o=n.inspect(r,t);return O(o)||(o=u(t,o,r)),o}var i=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(h(t))return e.stylize(""+t,"boolean");if(m(t))return e.stylize("null","null")}(t,n);if(i)return i;var a=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(n)),S(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(n);if(0===a.length){if(x(n)){var l=n.name?": "+n.name:"";return t.stylize("[Function"+l+"]","special")}if(v(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,b="",k=!1,$=["{","}"];(f(n)&&(k=!0,$=["[","]"]),x(n))&&(b=" [Function"+(n.name?": "+n.name:"")+"]");return v(n)&&(b=" "+RegExp.prototype.toString.call(n)),w(n)&&(b=" "+Date.prototype.toUTCString.call(n)),S(n)&&(b=" "+d(n)),0!==a.length||k&&0!=n.length?r<0?v(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),c=k?function(e,t,n,r,o){for(var i=[],a=0,s=t.length;a<s;++a)_(t,String(a))?i.push(p(e,t,n,r,String(a),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(p(e,t,n,r,o,!0))})),i}(t,n,r,s,a):a.map((function(e){return p(t,n,r,s,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,b,$)):$[0]+b+$[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,o,i){var a,s,l;if((l=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),_(r,o)||(a="["+o+"]"),s||(e.seen.indexOf(l.value)<0?(s=m(n)?u(e,l.value,null):u(e,l.value,n-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),y(a)){if(i&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function f(e){return Array.isArray(e)}function h(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 v(e){return b(e)&&"[object RegExp]"===k(e)}function b(e){return"object"==typeof e&&null!==e}function w(e){return b(e)&&"[object Date]"===k(e)}function S(e){return b(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(o.test(t)){var n=i.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=s,s.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]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=BV,e.isArray=f,e.isBoolean=h,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=v,e.types.isRegExp=v,e.isObject=b,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=tW;var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function _(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(),P[t.getMonth()],n].join(" ")),e.format.apply(e,arguments))},e.inherits=rW,e._extend=function(e,t){if(!t||!b(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})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,o)}catch(a){n(a)}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 o=this,a=function(){return r.apply(o,arguments)};e.apply(this,t).then((function(e){i.process.nextTick(a.bind(null,null,e))}),(function(e){i.process.nextTick(E.bind(null,e,a))}))}return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),Object.defineProperties(n,t(e)),n}}(WV);var oW,iW,aW={exports:{}},sW={exports:{}};oW=sW,iW=sW.exports,function(e){var t=iW&&!iW.nodeType&&iW,r=oW&&!oW.nodeType&&oW,o="object"==typeof n&&n;o.global!==o&&o.window!==o&&o.self!==o||(e=o);var i,a,s=2147483647,l=36,c=1,u=26,d=38,p=700,f=72,h=128,m="-",g=/^xn--/,O=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,v={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},b=l-c,w=Math.floor,S=String.fromCharCode;function x(e){throw new RangeError(v[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 P(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function _(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>b*u>>1;r+=l)e=w(e/b);return w(r+(b+1)*e/(e+d))}function Q(e){var t,n,r,o,i,a,d,p,g,O,y,v=[],b=e.length,S=0,k=h,$=f;for((n=e.lastIndexOf(m))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&x("not-basic"),v.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<b;){for(i=S,a=1,d=l;o>=b&&x("invalid-input"),((p=(y=e.charCodeAt(o++))-48<10?y-22:y-65<26?y-65:y-97<26?y-97:l)>=l||p>w((s-S)/a))&&x("overflow"),S+=p*a,!(p<(g=d<=$?c:d>=$+u?u:d-$));d+=l)a>w(s/(O=l-g))&&x("overflow"),a*=O;$=E(S-i,t=v.length+1,0==i),w(S/t)>s-k&&x("overflow"),k+=w(S/t),S%=t,v.splice(S++,0,k)}return _(v)}function C(e){var t,n,r,o,i,a,d,p,g,O,y,v,b,k,$,_=[];for(v=(e=P(e)).length,t=h,n=0,i=f,a=0;a<v;++a)(y=e[a])<128&&_.push(S(y));for(r=o=_.length,o&&_.push(m);r<v;){for(d=s,a=0;a<v;++a)(y=e[a])>=t&&y<d&&(d=y);for(d-t>w((s-n)/(b=r+1))&&x("overflow"),n+=(d-t)*b,t=d,a=0;a<v;++a)if((y=e[a])<t&&++n>s&&x("overflow"),y==t){for(p=n,g=l;!(p<(O=g<=i?c:g>=i+u?u:g-i));g+=l)$=p-O,k=l-O,_.push(S(T(O+$%k,0))),p=w($/k);_.push(S(T(p,0))),i=E(n,b,r==o),n=0,++r}++n,++t}return _.join("")}if(i={version:"1.4.1",ucs2:{decode:P,encode:_},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(oW.exports==t)r.exports=i;else for(a in i)i.hasOwnProperty(a)&&(t[a]=i[a]);else e.punycode=i}(n);const lW=r(sW.exports);function cW(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var uW=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},dW=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},pW=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function fW(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 hW,mW,gW=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},OW=mW=function(e,t,n,r){t=t||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var i=/\+/g;e=e.split(t);var a=1e3;r&&"number"==typeof r.maxKeys&&(a=r.maxKeys);var s=e.length;a>0&&s>a&&(s=a);for(var l=0;l<s;++l){var c,u,d,p,f=e[l].replace(i,"%20"),h=f.indexOf(n);h>=0?(c=f.substr(0,h),u=f.substr(h+1)):(c=f,u=""),d=decodeURIComponent(c),p=decodeURIComponent(u),cW(o,d)?uW(o[d])?o[d].push(p):o[d]=[o[d],p]:o[d]=p}return o};var yW={decode:OW,encode:hW=function(e,t,n,r){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?fW(gW(e),(function(r){var o=encodeURIComponent(dW(r))+n;return pW(e[r])?fW(e[r],(function(e){return o+encodeURIComponent(dW(e))})).join(t):o+encodeURIComponent(dW(e[r]))})).join(t):r?encodeURIComponent(dW(r))+n+encodeURIComponent(dW(e)):""},parse:mW,stringify:hW,escape:function(e){return encodeURIComponent(e)},unescape:function(e){return decodeURIComponent(e)}},vW=lW,bW={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}},wW=MW,SW=function(e,t){return MW(e,!1,!0).resolve(t)},xW=function(e,t){return e?MW(e,!1,!0).resolveObject(t):t},kW=function(e){bW.isString(e)&&(e=MW(e));return e instanceof PW?e.format():PW.prototype.format.call(e)},$W=PW;function PW(){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 _W=/^([a-z0-9.+-]+:)/i,TW=/:[0-9]*$/,EW=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,QW=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),CW=["'"].concat(QW),AW=["%","/","?",";","#"].concat(CW),RW=["/","?","#"],NW=/^[+a-z0-9A-Z_-]{0,63}$/,DW=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,jW={javascript:!0,"javascript:":!0},qW={javascript:!0,"javascript:":!0},IW={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},UW=yW;function MW(e,t,n){if(e&&bW.isObject(e)&&e instanceof PW)return e;var r=new PW;return r.parse(e,t,n),r}PW.prototype.parse=function(e,t,n){if(!bW.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),o=-1!==r&&r<e.indexOf("#")?"?":"#",i=e.split(o);i[0]=i[0].replace(/\\/g,"/");var a=e=i.join(o);if(a=a.trim(),!n&&1===e.split("#").length){var s=EW.exec(a);if(s)return this.path=a,this.href=a,this.pathname=s[1],s[2]?(this.search=s[2],this.query=t?UW.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var l=_W.exec(a);if(l){var c=(l=l[0]).toLowerCase();this.protocol=c,a=a.substr(l.length)}if(n||l||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var u="//"===a.substr(0,2);!u||l&&qW[l]||(a=a.substr(2),this.slashes=!0)}if(!qW[l]&&(u||l&&!IW[l])){for(var d,p,f=-1,h=0;h<RW.length;h++){-1!==(m=a.indexOf(RW[h]))&&(-1===f||m<f)&&(f=m)}-1!==(p=-1===f?a.lastIndexOf("@"):a.lastIndexOf("@",f))&&(d=a.slice(0,p),a=a.slice(p+1),this.auth=decodeURIComponent(d)),f=-1;for(h=0;h<AW.length;h++){var m;-1!==(m=a.indexOf(AW[h]))&&(-1===f||m<f)&&(f=m)}-1===f&&(f=a.length),this.host=a.slice(0,f),a=a.slice(f),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=(h=0,O.length);h<y;h++){var v=O[h];if(v&&!v.match(NW)){for(var b="",w=0,S=v.length;w<S;w++)v.charCodeAt(w)>127?b+="x":b+=v[w];if(!b.match(NW)){var x=O.slice(0,h),k=O.slice(h+1),$=v.match(DW);$&&(x.push($[1]),k.unshift($[2])),k.length&&(a="/"+k.join(".")+a),this.hostname=x.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),g||(this.hostname=vW.toASCII(this.hostname));var P=this.port?":"+this.port:"",_=this.hostname||"";this.host=_+P,this.href+=this.host,g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!jW[c])for(h=0,y=CW.length;h<y;h++){var T=CW[h];if(-1!==a.indexOf(T)){var E=encodeURIComponent(T);E===T&&(E=escape(T)),a=a.split(T).join(E)}}var Q=a.indexOf("#");-1!==Q&&(this.hash=a.substr(Q),a=a.slice(0,Q));var C=a.indexOf("?");if(-1!==C?(this.search=a.substr(C),this.query=a.substr(C+1),t&&(this.query=UW.parse(this.query)),a=a.slice(0,C)):t&&(this.search="",this.query={}),a&&(this.pathname=a),IW[c]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){P=this.pathname||"";var A=this.search||"";this.path=P+A}return this.href=this.format(),this},PW.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||"",o=!1,i="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&bW.isObject(this.query)&&Object.keys(this.query).length&&(i=UW.stringify(this.query));var a=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||IW[t])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),a&&"?"!==a.charAt(0)&&(a="?"+a),t+o+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(a=a.replace("#","%23"))+r},PW.prototype.resolve=function(e){return this.resolveObject(MW(e,!1,!0)).format()},PW.prototype.resolveObject=function(e){if(bW.isString(e)){var t=new PW;t.parse(e,!1,!0),e=t}for(var n=new PW,r=Object.keys(this),o=0;o<r.length;o++){var i=r[o];n[i]=this[i]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),s=0;s<a.length;s++){var l=a[s];"protocol"!==l&&(n[l]=e[l])}return IW[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!IW[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||qW[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 f=n.pathname||"",h=n.search||"";n.path=f+h}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,v=n.pathname&&n.pathname.split("/")||[],b=(p=e.pathname&&e.pathname.split("/")||[],n.protocol&&!IW[n.protocol]);if(b&&(n.hostname="",n.port=null,n.host&&(""===v[0]?v[0]=n.host:v.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]||""===v[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,v=p;else if(p.length)v||(v=[]),v.pop(),v=v.concat(p),n.search=e.search,n.query=e.query;else if(!bW.isNullOrUndefined(e.search)){if(b)n.hostname=n.host=v.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,bW.isNull(n.pathname)&&bW.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!v.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var w=v.slice(-1)[0],S=(n.host||e.host||v.length>1)&&("."===w||".."===w)||""===w,x=0,k=v.length;k>=0;k--)"."===(w=v[k])?v.splice(k,1):".."===w?(v.splice(k,1),x++):x&&(v.splice(k,1),x--);if(!O&&!y)for(;x--;x)v.unshift("..");!O||""===v[0]||v[0]&&"/"===v[0].charAt(0)||v.unshift(""),S&&"/"!==v.join("/").substr(-1)&&v.push("");var $,P=""===v[0]||v[0]&&"/"===v[0].charAt(0);b&&(n.hostname=n.host=P?"":v.length?v.shift():"",($=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=$.shift(),n.host=n.hostname=$.shift()));return(O=O||n.host&&v.length)&&!P&&v.unshift(""),v.length?n.pathname=v.join("/"):(n.pathname=null,n.path=null),bW.isNull(n.pathname)&&bW.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},PW.prototype.parseHost=function(){var e=this.host,t=TW.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var XW=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),FW=kW,ZW=wW,VW=SW,LW=$W,zW=XW.URL,WW=XW.URLSearchParams,BW=/%/g,YW=/\\/g,HW=/\n/g,GW=/\r/g,KW=/\t/g;var JW=function(e){if(void 0===e)throw new TypeError('The "domain" argument must be specified');return new zW("http://"+e).hostname},eB=function(e){if(void 0===e)throw new TypeError('The "domain" argument must be specified');return new zW("http://"+e).hostname},tB=function(e){var t=new zW("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 o=e[r];"."===o?e.splice(r,1):".."===o?(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(BW,"%25")),e.includes("\\")&&(e=e.replace(YW,"%5C")),e.includes("\n")&&(e=e.replace(HW,"%0A")),e.includes("\r")&&(e=e.replace(GW,"%0D")),e.includes("\t")&&(e=e.replace(KW,"%09")),e}(n),t},nB=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 zW(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)},rB=function(e,t){var n,r,o;if(void 0===t&&(t={}),!(e instanceof zW))return FW(e);if("object"!=typeof t||null===t)throw new TypeError('The "options" argument must be of type object.');var i=null==(n=t.auth)||n,a=null==(r=t.fragment)||r,s=null==(o=t.search)||o,l=new zW(e.toString());return i||(l.username="",l.password=""),a||(l.hash=""),s||(l.search=""),l.toString()},oB={format:rB,parse:ZW,resolve:VW,resolveObject:xW,Url:LW,URL:zW,URLSearchParams:WW,domainToASCII:JW,domainToUnicode:eB,pathToFileURL:tB,fileURLToPath:nB};const iB=o(Object.freeze(Object.defineProperty({__proto__:null,URL:zW,URLSearchParams:WW,Url:LW,default:oB,domainToASCII:JW,domainToUnicode:eB,fileURLToPath:nB,format:rB,parse:ZW,pathToFileURL:tB,resolve:VW,resolveObject:xW},Symbol.toStringTag,{value:"Module"})));!function(e,t){let n=/^win/.test(i.process.platform),r=/\//g,o=/^(\w{2,}):\/\//i,a=e.exports,s=/~1/g,l=/~0/g,c=[/\?/g,"%3F",/\#/g,"%23"],u=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];t.parse=iB.parse,t.resolve=iB.resolve,t.cwd=function(){if(i.process.browser)return location.href;let e=i.process.cwd(),t=e.slice(-1);return"/"===t||"\\"===t?e:e+"/"},t.getProtocol=function(e){let t=o.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=a.getProtocol(e);return"http"===t||"https"===t||void 0===t&&i.process.browser},t.isFileSystemPath=function(e){if(i.process.browser)return!1;let t=a.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 o="file://"===e.substr(0,7).toLowerCase();return o&&(e="/"===e[7]?e.substr(8):e.substr(7),n&&"/"===e[1]&&(e=e[0]+":"+e.substr(1)),t?e="file:///"+e:(o=!1,e=n?e:"/"+e)),n&&!o&&":\\"===(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(s,"/").replace(l,"~")))}}(aW,aW.exports);var aB=aW.exports;const sB=WV,lB=aB;zV.format=sB.format,zV.inherits=sB.inherits,zV.swaggerParamRegExp=/\{([^/}]+)}/g;const cB=["get","post","put","delete","patch","options","head","trace"];function uB(e,t){if(e.url&&e.url.startsWith("/")){const n=lB.parse(t),r=n.protocol+"//"+n.hostname+e.url;return e.url=r,e}}zV.fixOasRelativeServers=function(e,t){e.openapi&&t&&(t.startsWith("http:")||t.startsWith("https:"))&&(e.servers&&e.servers.map((e=>uB(e,t))),["paths","webhooks"].forEach((n=>{Object.keys(e[n]||[]).forEach((r=>{const o=e[n][r];Object.keys(o).forEach((e=>{"servers"===e?o[e].map((e=>uB(e,t))):cB.includes(e)&&o[e].servers&&o[e].servers.map((e=>uB(e,t)))}))}))})))};const dB=!1,pB=/\r?\n/,fB=/\bono[ @]/;function hB(e,t){let n=gB(e.stack),r=t?t.stack:void 0;return n&&r?n+"\n\n"+r:n||r}function mB(e,t,n){n?Object.defineProperty(t,"stack",{get:()=>hB({stack:e.get.apply(t)},n),enumerable:!1,configurable:!0}):function(e,t){Object.defineProperty(e,"stack",{get:()=>gB(t.get.apply(e)),enumerable:!1,configurable:!0})}(t,e)}function gB(e){if(e){let t,n=e.split(pB);for(let e=0;e<n.length;e++){let r=n[e];if(fB.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 OB=["function","symbol","undefined"],yB=["constructor","prototype","__proto__"],vB=Object.getPrototypeOf({});function bB(){let e={},t=this;for(let n of wB(t))if("string"==typeof n){let r=t[n],o=typeof r;OB.includes(o)||(e[n]=r)}return e}function wB(e,t=[]){let n=[];for(;e&&e!==vB;)n=n.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let r=new Set(n);for(let o of t.concat(yB))r.delete(o);return r}const SB=["name","message","stack"];function xB(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=hB(e,t)):mB(n,e,t)}(r,t),t&&"object"==typeof t&&function(e,t){let n=wB(t,SB),r=e,o=t;for(let i of n)if(void 0===r[i])try{r[i]=o[i]}catch(Oc){}}(r,t),r.toJSON=bB,n&&"object"==typeof n&&Object.assign(r,n),r}const kB=$B;function $B(e,t){function n(...n){let{originalError:r,props:o,message:i}=function(e,t){let n,r,o,i="";return"string"==typeof e[0]?o=e:"string"==typeof e[1]?(e[0]instanceof Error?n=e[0]:r=e[0],o=e.slice(1)):(n=e[0],r=e[1],o=e.slice(2)),o.length>0&&(i=t.format?t.format.apply(void 0,o):o.join(" ")),t.concatMessages&&n&&n.message&&(i+=(i?" \n":"")+n.message),{originalError:n,props:r,message:i}}(n,t);return xB(new e(i),r,o)}return t=function(e){return{concatMessages:void 0===(e=e||{}).concatMessages||Boolean(e.concatMessages),format:void 0===e.format?dB:"function"==typeof e.format&&e.format}}(t),n[Symbol.species]=e,n}$B.toJSON=function(e){return bB.call(e)},$B.extend=function(e,t,n){return n||t instanceof Error?xB(e,t,n):t?xB(e,void 0,t):xB(e)};const PB=TB;TB.error=new kB(Error),TB.eval=new kB(EvalError),TB.range=new kB(RangeError),TB.reference=new kB(ReferenceError),TB.syntax=new kB(SyntaxError),TB.type=new kB(TypeError),TB.uri=new kB(URIError);const _B=TB;function TB(...e){let t=e[0];if("object"==typeof t&&"string"==typeof t.name)for(let n of Object.values(_B))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 TB.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 EB=o(Object.freeze(Object.defineProperty({__proto__:null,Ono:kB,default:PB,ono:PB},Symbol.toStringTag,{value:"Module"})));var QB={exports:{}},CB={},AB={},RB={},NB={},DB={},jB={};!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 o(e,...t){const n=[e[0]];let o=0;for(;o<t.length;)s(n,t[o]),n.push(e[++o]);return new r(n)}e._Code=r,e.nil=new r(""),e._=o;const i=new r("+");function a(e,...t){const n=[c(e[0])];let o=0;for(;o<t.length;)n.push(i),s(n,t[o]),n.push(i,c(e[++o]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===i){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 s(e,t){var o;t instanceof r?e.push(...t._items):t instanceof n?e.push(t):e.push("number"==typeof(o=t)||"boolean"==typeof o||null===o?o:c(Array.isArray(o)?o.join(","):o))}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=a,e.addCodeArg=s,e.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:a`${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}`):o`[${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())}}(jB);var qB={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=jB;class n extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var r,o;(o=r=e.UsedValueState||(e.UsedValueState={}))[o.Started=0]="Started",o[o.Completed=1]="Completed",e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class i{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=i;class a 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=a;const s=t._`\n`;e.ValueScope=class extends i{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?s:t.nil}}get(){return this._scope}name(e){return new a(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:o}=r,i=null!==(n=t.key)&&void 0!==n?n:t.ref;let a=this._values[o];if(a){const e=a.get(i);if(e)return e}else a=this._values[o]=new Map;a.set(i,r);const s=this._scope[o]||(this._scope[o]=[]),l=s.length;return s[l]=t.ref,r.setValue(t,{property:o,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(o,i,a={},s){let l=t.nil;for(const c in o){const u=o[c];if(!u)continue;const d=a[c]=a[c]||new Map;u.forEach((o=>{if(d.has(o))return;d.set(o,r.Started);let a=i(o);if(a){const n=this.opts.es5?e.varKinds.var:e.varKinds.const;l=t._`${l}${n} ${o} = ${a};${this.opts._n}`}else{if(!(a=null==s?void 0:s(o)))throw new n(o);l=t._`${l}${a}${this.opts._n}`}d.set(o,r.Completed)}))}return l}}}(qB),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=jB,n=qB;var r=jB;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 o=qB;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.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 i{optimizeNodes(){return this}optimizeNames(e,t){return this}}class a extends i{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,o=void 0===this.rhs?"":` = ${this.rhs}`;return`${r} ${this.name}${o};`+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 s extends i{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 s{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 i{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class u extends i{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class d extends i{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class p extends i{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 f extends i{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 o=n[r];o.optimizeNames(e,t)||(Q(e,o.names),n.splice(r,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>_(e,t.names)),{})}}class h extends f{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class m extends f{}class g extends h{}g.kind="else";class O extends h{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&&_(e,this.else.names),e}}O.kind="if";class y extends h{}y.kind="for";class v 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 _(super.names,this.iteration.names)}}class b 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:o,to:i}=this;return`for(${t} ${r}=${o}; ${r}<${i}; ${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 _(super.names,this.iterable.names)}}class S extends h{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 f{render(e){return"return "+super.render(e)}}x.kind="return";class k extends h{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&&_(e,this.catch.names),this.finally&&_(e,this.finally.names),e}}class $ extends h{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}$.kind="catch";class P extends h{render(e){return"finally"+super.render(e)}}P.kind="finally";function _(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?_(e,n.names):e}function E(e,n,r){return e instanceof t.Name?o(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=o(n)),n instanceof t._Code?e.push(...n._items):e.push(n),e)),[])):e;function o(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._`!${D(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 o=this._scope.toName(t);return void 0!==n&&r&&(this._constants[o.str]=n),this._leafNode(new a(e,o,n)),o}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 s(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,o]of e)n.length>1&&n.push(","),n.push(r),(r!==o||this.opts.es5)&&(n.push(":"),(0,t.addCodeArg)(n,o));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 v(e),t)}forRange(e,t,r,o,i=(this.opts.es5?n.varKinds.var:n.varKinds.let)){const a=this._scope.toName(e);return this._for(new b(i,a,t,r),(()=>o(a)))}forOf(e,r,o,i=n.varKinds.const){const a=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(a,t._`${e}[${n}]`),o(a)}))}return this._for(new w("of",i,a,r),(()=>o(a)))}forIn(e,r,o,i=(this.opts.es5?n.varKinds.var:n.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,t._`Object.keys(${r})`,o);const a=this._scope.toName(e);return this._for(new w("in",i,a,r),(()=>o(a)))}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 P,this.code(n)),this._endBlockNode($,P)}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,o){return this._blockNode(new S(e,n,r)),o&&this.code(o).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=N(e.operators.AND);e.and=function(...e){return e.reduce(A)};const R=N(e.operators.OR);function N(e){return(n,r)=>n===t.nil?r:r===t.nil?n:t._`${D(n)} ${e} ${D(r)}`}function D(e){return e instanceof t.Name?e:t._`(${e})`}e.or=function(...e){return e.reduce(R)}}(DB);var IB={};!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=DB,n=jB;function r(e,t=e.schema){const{opts:n,self:r}=e;if(!n.strictSchema)return;if("boolean"==typeof t)return;const o=r.RULES.keywords;for(const i in t)o[i]||f(e,`unknown keyword: "${i}"`)}function o(e,t){if("boolean"==typeof e)return!e;for(const n in e)if(t[n])return!0;return!1}function i(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function a(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function s({mergeNames:e,mergeToName:n,mergeValues:r,resultToName:o}){return(i,a,s,l)=>{const c=void 0===s?a:s instanceof t.Name?(a instanceof t.Name?e(i,a,s):n(i,a,s),s):a instanceof t.Name?(n(i,s,a),a):r(a,s);return l!==t.Name||c instanceof t.Name?c:o(i,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),!o(t,e.self.RULES.all))},e.checkUnknownRules=r,e.schemaHasRules=o,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,o,i){if(!i){if("number"==typeof r||"boolean"==typeof r)return r;if("string"==typeof r)return t._`${r}`}return t._`${e}${n}${(0,t.getProperty)(o)}`},e.unescapeFragment=function(e){return a(decodeURIComponent(e))},e.escapeFragment=function(e){return encodeURIComponent(i(e))},e.escapeJsonPointer=i,e.unescapeJsonPointer=a,e.eachItem=function(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)},e.mergeEvaluated={props:s({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:s({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 f(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 o=n===d.Num;return r?o?t._`"[" + ${e} + "]"`:t._`"['" + ${e} + "']"`:o?t._`"/" + ${e}`:t._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,t.getProperty)(e).toString():"/"+i(e)},e.checkStrictMode=f}(IB);var UB={};Object.defineProperty(UB,"__esModule",{value:!0});const MB=DB,XB={data:new MB.Name("data"),valCxt:new MB.Name("valCxt"),instancePath:new MB.Name("instancePath"),parentData:new MB.Name("parentData"),parentDataProperty:new MB.Name("parentDataProperty"),rootData:new MB.Name("rootData"),dynamicAnchors:new MB.Name("dynamicAnchors"),vErrors:new MB.Name("vErrors"),errors:new MB.Name("errors"),this:new MB.Name("this"),self:new MB.Name("self"),scope:new MB.Name("scope"),json:new MB.Name("json"),jsonPos:new MB.Name("jsonPos"),jsonLen:new MB.Name("jsonLen"),jsonPart:new MB.Name("jsonPart")};UB.default=XB,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=DB,n=IB,r=UB;function o(e,n){const o=e.const("err",n);e.if(t._`${r.default.vErrors} === null`,(()=>e.assign(r.default.vErrors,t._`[${o}]`)),t._`${r.default.vErrors}.push(${o})`),e.code(t._`${r.default.errors}++`)}function i(e,n){const{gen:r,validateName:o,schemaEnv:i}=e;i.$async?r.throw(t._`new ${e.ValidationError}(${n})`):(r.assign(t._`${o}.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,a,l){const{it:c}=n,{gen:u,compositeRule:d,allErrors:p}=c,f=s(n,r,a);(null!=l?l:d||p)?o(u,f):i(c,t._`[${f}]`)},e.reportExtraError=function(t,n=e.keywordError,a){const{it:l}=t,{gen:c,compositeRule:u,allErrors:d}=l;o(c,s(t,n,a)),u||d||i(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:o,data:i,errsCount:a,it:s}){if(void 0===a)throw new Error("ajv implementation error");const l=e.name("err");e.forRange("i",a,r.default.errors,(a=>{e.const(l,t._`${r.default.vErrors}[${a}]`),e.if(t._`${l}.instancePath === undefined`,(()=>e.assign(t._`${l}.instancePath`,(0,t.strConcat)(r.default.instancePath,s.errorPath)))),e.assign(t._`${l}.schemaPath`,t.str`${s.errSchemaPath}/${n}`),s.opts.verbose&&(e.assign(t._`${l}.schema`,o),e.assign(t._`${l}.data`,i))}))};const a={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 s(e,n,o){const{createErrors:i}=e.it;return!1===i?t._`{}`:function(e,n,o={}){const{gen:i,it:s}=e,u=[l(s,o),c(e,o)];return function(e,{params:n,message:o},i){const{keyword:s,data:l,schemaValue:c,it:u}=e,{opts:d,propertyName:p,topSchemaRef:f,schemaPath:h}=u;i.push([a.keyword,s],[a.params,"function"==typeof n?n(e):n||t._`{}`]),d.messages&&i.push([a.message,"function"==typeof o?o(e):o]);d.verbose&&i.push([a.schema,c],[a.parentSchema,t._`${f}${h}`],[r.default.data,l]);p&&i.push([a.propertyName,p])}(e,n,u),i.object(...u)}(e,n,o)}function l({errorPath:e},{instancePath:o}){const i=o?t.str`${e}${(0,n.getErrorPath)(o,n.Type.Str)}`:e;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,i)]}function c({keyword:e,it:{errSchemaPath:r}},{schemaPath:o,parentSchema:i}){let s=i?r:t.str`${r}/${e}`;return o&&(s=t.str`${s}${(0,n.getErrorPath)(o,n.Type.Str)}`),[a.schemaPath,s]}}(NB),Object.defineProperty(RB,"__esModule",{value:!0}),RB.boolOrEmptySchema=RB.topBoolOrEmptySchema=void 0;const FB=NB,ZB=DB,VB=UB,LB={message:"boolean schema is false"};function zB(e,t){const{gen:n,data:r}=e,o={gen:n,keyword:"false schema",data:r,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,FB.reportError)(o,LB,void 0,t)}RB.topBoolOrEmptySchema=function(e){const{gen:t,schema:n,validateName:r}=e;!1===n?zB(e,!1):"object"==typeof n&&!0===n.$async?t.return(VB.default.data):(t.assign(ZB._`${r}.errors`,null),t.return(!0))},RB.boolOrEmptySchema=function(e,t){const{gen:n,schema:r}=e;!1===r?(n.var(t,!1),zB(e)):n.var(t,!0)};var WB={},BB={};Object.defineProperty(BB,"__esModule",{value:!0}),BB.getRules=BB.isJSONType=void 0;const YB=new Set(["string","number","integer","boolean","null","object","array"]);BB.isJSONType=function(e){return"string"==typeof e&&YB.has(e)},BB.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 HB={};function GB(e,t){return t.rules.some((t=>KB(e,t)))}function KB(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(HB,"__esModule",{value:!0}),HB.shouldUseRule=HB.shouldUseGroup=HB.schemaHasRulesForType=void 0,HB.schemaHasRulesForType=function({schema:e,self:t},n){const r=t.RULES.types[n];return r&&!0!==r&&GB(e,r)},HB.shouldUseGroup=GB,HB.shouldUseRule=KB,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=BB,n=HB,r=NB,o=DB,i=IB;var a,s;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(","))}(s=a=e.DataType||(e.DataType={}))[s.Correct=0]="Correct",s[s.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:i,opts:s}=e,l=function(e,t){return t?e.filter((e=>c.has(e)||"array"===t&&"array"===e)):[]}(t,s.coerceTypes),u=t.length>0&&!(0===l.length&&1===t.length&&(0,n.schemaHasRulesForType)(e,t[0]));if(u){const n=d(t,i,s.strictNumbers,a.Wrong);r.if(n,(()=>{l.length?function(e,t,n){const{gen:r,data:i,opts:a}=e,s=r.let("dataType",o._`typeof ${i}`),l=r.let("coerced",o._`undefined`);"array"===a.coerceTypes&&r.if(o._`${s} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,(()=>r.assign(i,o._`${i}[0]`).assign(s,o._`typeof ${i}`).if(d(t,i,a.strictNumbers),(()=>r.assign(l,i)))));r.if(o._`${l} !== undefined`);for(const o of n)(c.has(o)||"array"===o&&"array"===a.coerceTypes)&&u(o);function u(e){switch(e){case"string":return void r.elseIf(o._`${s} == "number" || ${s} == "boolean"`).assign(l,o._`"" + ${i}`).elseIf(o._`${i} === null`).assign(l,o._`""`);case"number":return void r.elseIf(o._`${s} == "boolean" || ${i} === null
19
19
  || (${s} == "string" && ${i} && ${i} == +${i})`).assign(l,o._`+${i}`);case"integer":return void r.elseIf(o._`${s} === "boolean" || ${i} === null