From 66114f1cc3ed56ed3445ab8ec704df90fa9711d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Tue, 29 Jun 2021 14:45:36 +0200 Subject: [PATCH] feat: support v2.1.0 of spec (#226) --- package-lock.json | 28 ++++++++++++++-------------- package.json | 4 ++-- template/js/asyncapi-ui.min.js | 6 +++--- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/package-lock.json b/package-lock.json index 252b37016..bf41fac1d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -44,12 +44,12 @@ } }, "@asyncapi/parser": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-1.6.0.tgz", - "integrity": "sha512-uLLoDn0Enisp7JgZV6TdK7AfbQF0dxS4j68XGjoslTew/OGfAatchpuP5ARMcxqnygYyhtEFcOd/qzKbmZy2zA==", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-1.7.0.tgz", + "integrity": "sha512-ULL6k+s1zzeLLCUH2l0nsTxtCdiUdnAkMROhXD5XnEAIN+3M3tYO39w9HcbzKHngxFFhr0MsHOrGpw61rcxIsw==", "requires": { "@apidevtools/json-schema-ref-parser": "^9.0.6", - "@asyncapi/specs": "^2.7.8", + "@asyncapi/specs": "2.8.0", "@fmvilas/pseudo-yaml-ast": "^0.3.1", "ajv": "^6.10.1", "js-yaml": "^3.13.1", @@ -60,13 +60,13 @@ } }, "@asyncapi/react-component": { - "version": "1.0.0-next.9", - "resolved": "https://registry.npmjs.org/@asyncapi/react-component/-/react-component-1.0.0-next.9.tgz", - "integrity": "sha512-WgqGb+nuv+k9EG11DSmzorRdXoG8I8BMn5VmZLDt8pxUPDUXfR1a0muhI2KP/rhSrwqhjCwTAJ2HxJXGzjtYsQ==", + "version": "1.0.0-next.10", + "resolved": "https://registry.npmjs.org/@asyncapi/react-component/-/react-component-1.0.0-next.10.tgz", + "integrity": "sha512-jMpWE9N5OeUyqsNdtgF+3L0HtmU59xhFTAZlxL1hqXCR/UD9fF7pA0RYSElUvfFhcQ1pCo4wTCopxzN5QFRmoA==", "requires": { "@asyncapi/avro-schema-parser": "^0.2.0", "@asyncapi/openapi-schema-parser": "^2.0.0", - "@asyncapi/parser": "^1.5.2", + "@asyncapi/parser": "^1.7.0", "highlight.js": "^10.7.2", "isomorphic-dompurify": "^0.13.0", "marked": "^2.1.1", @@ -75,16 +75,16 @@ }, "dependencies": { "marked": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/marked/-/marked-2.1.1.tgz", - "integrity": "sha512-5XFS69o9CzDpQDSpUYC+AN2xvq8yl1EGa5SG/GI1hP78/uTeo3PDfiDNmsUyiahpyhToDDJhQk7fNtJsga+KVw==" + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/marked/-/marked-2.1.3.tgz", + "integrity": "sha512-/Q+7MGzaETqifOMWYEA7HVMaZb4XbcRfaOzcSsHZEith83KGlvaSG33u0SKu89Mj5h+T8V2hM+8O45Qc5XTgwA==" } } }, "@asyncapi/specs": { - "version": "2.7.8", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-2.7.8.tgz", - "integrity": "sha512-GvyUo8rKAY25XdhM2dYqv4yf6gzgiNRazLxbeQfeD5oXu4aEs/rkpcgHPeb3ckA6xXiyzdBnpVYhJOcPvgr46g==" + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-2.8.0.tgz", + "integrity": "sha512-ZVyr1L0Le8Z0mvr2BPriszaDu53rZxevjqVCXt3PqJMPJuiiGMVhkslmclj474nBK0ckygSRe8jAd4smm9XOrg==" }, "@babel/code-frame": { "version": "7.12.13", diff --git a/package.json b/package.json index afed5972b..f9c2b4013 100644 --- a/package.json +++ b/package.json @@ -34,14 +34,14 @@ "access": "public" }, "dependencies": { - "@asyncapi/react-component": "^1.0.0-next.9", + "@asyncapi/react-component": "^1.0.0-next.10", "puppeteer": "^5.3.1", "react": "^17.0.2", "react-dom": "^17.0.2", "rimraf": "^3.0.2" }, "devDependencies": { - "@asyncapi/parser": "^1.6.0", + "@asyncapi/parser": "^1.7.0", "@semantic-release/commit-analyzer": "^8.0.1", "@semantic-release/github": "^7.0.4", "@semantic-release/npm": "^7.0.3", diff --git a/template/js/asyncapi-ui.min.js b/template/js/asyncapi-ui.min.js index c361ad028..080c6b12d 100644 --- a/template/js/asyncapi-ui.min.js +++ b/template/js/asyncapi-ui.min.js @@ -1,9 +1,9 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("AsyncApiStandalone",[],t):"object"==typeof exports?exports.AsyncApiStandalone=t():e.AsyncApiStandalone=t()}("undefined"!=typeof self?self:this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=269)}({0:function(e,t,n){"use strict";e.exports=n(65)},1:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return i})),n.d(t,"j",(function(){return o})),n.d(t,"h",(function(){return l})),n.d(t,"i",(function(){return u})),n.d(t,"d",(function(){return s})),n.d(t,"g",(function(){return c})),n.d(t,"f",(function(){return f})),n.d(t,"e",(function(){return d})),n.d(t,"c",(function(){return p}));var r,a="asyncapi",i="https://www.iana.org/assignments/media-types",o="https://github.com/asyncapi/parser-js/validation-errors",l="Terms of service",u="Support",s="External Docs",c="Servers",f="Operations",d="Messages",p="Error";!function(e){e.INFO="info",e.CHANNELS="channels",e.SERVERS="servers",e.MESSAGES="messages",e.SCHEMAS="schemas"}(r||(r={}));var h;Object.values(r);!function(e){e.CHANNEL="channel",e.SERVER="server",e.MESSAGE="message",e.SCHEMA="schema"}(h||(h={}));Object.values(h)},11:function(e,t,n){"use strict";var r,a,i,o;function l(e){return void 0!==e.url}n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return l})),function(e){e.http="http",e.ws="ws",e.kafka="kafka",e.amqp="amqp",e.amqp1="amqp1",e.mqtt="mqtt",e.mqtt5="mqtt5",e.nats="nats",e.jms="jms",e.sns="sns",e.sqs="sqs",e.stomp="stomp",e.redis="redis"}(r||(r={})),function(e){e.PUBLISH="publish",e.SUBSCRIBE="subscribe"}(a||(a={})),function(e){e.userPassword="User / Password",e.apiKey="API key",e.X509="X509",e.symmetricEncryption="Symmetric Encryption",e.asymmetricEncryption="Asymmetric Encryption",e.httpApiKey="HTTP API key",e.http="HTTP",e.oauth2="OAuth2",e.openIdConnect="Open ID"}(i||(i={})),function(e){e.implicit="Implicit",e.password="Password",e.clientCredentials="Client Credentials",e.authorizationCode="Authorization Code"}(o||(o={}))},12:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},127:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(33),a=n.n(r),i=function(){function e(){}return e.retrieveParsedSpec=function(e){if(e){if(e.constructor&&"AsyncAPIDocument"===e.constructor.name)return e;if("function"==typeof e.version&&e._json&&e._json.asyncapi)return e;if("string"==typeof e)try{e=JSON.parse(e)}catch(e){return}return"object"==typeof e&&!0===e["x-parser-spec-parsed"]?new a.a(e):void 0}},e.containTags=function(e,t){var n="function"==typeof e.tags?e.tags():void 0;return!(void 0===n||!Array.isArray(n))&&(t=Array.isArray(t)?t:[t],n.some((function(e){return t.some((function(t){return t.name()===e.name()}))})))},e.operationsTags=function(e){var t=new Map;return Object.entries(e.channels()).forEach((function(e){e[0];var n=e[1],r=n.publish();r&&r.hasTags()&&r.tags().forEach((function(e){return t.set(e.name(),e)}));var a=n.subscribe();a&&a.hasTags()&&a.tags().forEach((function(e){return t.set(e.name(),e)}))})),Array.from(t.values())},e}()},14:function(e,t){function n(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function(t){var r=e[t];"object"!=typeof r||Object.isFrozen(r)||n(r)})),e}var r=n,a=n;r.default=a;class i{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function o(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function l(e,...t){const n=Object.create(null);for(const t in e)n[t]=e[t];return t.forEach((function(e){for(const t in e)n[t]=e[t]})),n}const u=e=>!!e.kind;class s{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=o(e)}openNode(e){if(!u(e))return;let t=e.kind;e.sublanguage||(t=`${this.classPrefix}${t}`),this.span(t)}closeNode(e){u(e)&&(this.buffer+="")}value(){return this.buffer}span(e){this.buffer+=``}}class c{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t={kind:e,children:[]};this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every(e=>"string"==typeof e)?e.children=[e.children.join("")]:e.children.forEach(e=>{c._collapse(e)}))}}class f extends c{constructor(e){super(),this.options=e}addKeyword(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())}addText(e){""!==e&&this.add(e)}addSublanguage(e,t){const n=e.root;n.kind=t,n.sublanguage=!0,this.add(n)}toHTML(){return new s(this,this.options).value()}finalize(){return!0}}function d(e){return e?"string"==typeof e?e:e.source:null}const p=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;const h="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",m={begin:"\\\\[\\s\\S]",relevance:0},g={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[m]},y={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[m]},b={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},v=function(e,t,n={}){const r=l({className:"comment",begin:e,end:t,contains:[]},n);return r.contains.push(b),r.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),r},x=v("//","$"),E=v("/\\*","\\*/"),w=v("#","$"),D={className:"number",begin:"\\b\\d+(\\.\\d+)?",relevance:0},k={className:"number",begin:h,relevance:0},A={className:"number",begin:"\\b(0b[01]+)",relevance:0},C={className:"number",begin:"\\b\\d+(\\.\\d+)?(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},_={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[m,{begin:/\[/,end:/\]/,relevance:0,contains:[m]}]}]},T={className:"title",begin:"[a-zA-Z]\\w*",relevance:0},S={className:"title",begin:"[a-zA-Z_]\\w*",relevance:0},N={begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0};var O=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:"[a-zA-Z]\\w*",UNDERSCORE_IDENT_RE:"[a-zA-Z_]\\w*",NUMBER_RE:"\\b\\d+(\\.\\d+)?",C_NUMBER_RE:h,BINARY_NUMBER_RE:"\\b(0b[01]+)",RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=function(...e){return e.map(e=>d(e)).join("")}(t,/.*\b/,e.binary,/\b.*/)),l({className:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},BACKSLASH_ESCAPE:m,APOS_STRING_MODE:g,QUOTE_STRING_MODE:y,PHRASAL_WORDS_MODE:b,COMMENT:v,C_LINE_COMMENT_MODE:x,C_BLOCK_COMMENT_MODE:E,HASH_COMMENT_MODE:w,NUMBER_MODE:D,C_NUMBER_MODE:k,BINARY_NUMBER_MODE:A,CSS_NUMBER_MODE:C,REGEXP_MODE:_,TITLE_MODE:T,UNDERSCORE_TITLE_MODE:S,METHOD_GUARD:N,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})}});function F(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function j(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=F,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function P(e,t){Array.isArray(e.illegal)&&(e.illegal=function(...e){return"("+e.map(e=>d(e)).join("|")+")"}(...e.illegal))}function R(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function B(e,t){void 0===e.relevance&&(e.relevance=1)}const I=["of","and","for","in","not","or","if","then","parent","list","value"];function M(e,t){return t?Number(t):function(e){return I.includes(e.toLowerCase())}(e)?0:1}function z(e,{plugins:t}){function n(t,n){return new RegExp(d(t),"m"+(e.case_insensitive?"i":"")+(n?"g":""))}class r{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=function(e){return new RegExp(e.toString()+"|").exec("").length-1}(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map(e=>e[1]);this.matcherRe=n(function(e,t="|"){let n=0;return e.map(e=>{n+=1;const t=n;let r=d(e),a="";for(;r.length>0;){const e=p.exec(r);if(!e){a+=r;break}a+=r.substring(0,e.index),r=r.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?a+="\\"+String(Number(e[1])+t):(a+=e[0],"("===e[0]&&n++)}return a}).map(e=>`(${e})`).join(t)}(e),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const n=t.findIndex((e,t)=>t>0&&void 0!==e),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}class a{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new r;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=l(e.classNameAliases||{}),function t(r,i){const o=r;if(r.isCompiled)return o;[R].forEach(e=>e(r,i)),e.compilerExtensions.forEach(e=>e(r,i)),r.__beforeBegin=null,[j,P,B].forEach(e=>e(r,i)),r.isCompiled=!0;let u=null;if("object"==typeof r.keywords&&(u=r.keywords.$pattern,delete r.keywords.$pattern),r.keywords&&(r.keywords=function e(t,n,r="keyword"){const a={};return"string"==typeof t?i(r,t.split(" ")):Array.isArray(t)?i(r,t):Object.keys(t).forEach((function(r){Object.assign(a,e(t[r],n,r))})),a;function i(e,t){n&&(t=t.map(e=>e.toLowerCase())),t.forEach((function(t){const n=t.split("|");a[n[0]]=[e,M(n[0],n[1])]}))}}(r.keywords,e.case_insensitive)),r.lexemes&&u)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return u=u||r.lexemes||/\w+/,o.keywordPatternRe=n(u,!0),i&&(r.begin||(r.begin=/\B|\b/),o.beginRe=n(r.begin),r.endSameAsBegin&&(r.end=r.begin),r.end||r.endsWithParent||(r.end=/\B|\b/),r.end&&(o.endRe=n(r.end)),o.terminatorEnd=d(r.end)||"",r.endsWithParent&&i.terminatorEnd&&(o.terminatorEnd+=(r.end?"|":"")+i.terminatorEnd)),r.illegal&&(o.illegalRe=n(r.illegal)),r.contains||(r.contains=[]),r.contains=[].concat(...r.contains.map((function(e){return function(e){e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((function(t){return l(e,{variants:null},t)})));if(e.cachedVariants)return e.cachedVariants;if(function e(t){return!!t&&(t.endsWithParent||e(t.starts))}(e))return l(e,{starts:e.starts?l(e.starts):null});if(Object.isFrozen(e))return l(e);return e}("self"===e?r:e)}))),r.contains.forEach((function(e){t(e,o)})),r.starts&&t(r.starts,i),o.matcher=function(e){const t=new a;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:"begin"})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}(o),o}(e)}function L(e){const t={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!e.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,o(this.code);let t={};return this.autoDetect?(t=e.highlightAuto(this.code),this.detectedLanguage=t.language):(t=e.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),t.value},autoDetect(){return!this.language||(e=this.autodetect,Boolean(e||""===e));var e},ignoreIllegals:()=>!0},render(e){return e("pre",{},[e("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:t,VuePlugin:{install(e){e.component("highlightjs",t)}}}}const U={"after:highlightElement":({el:e,result:t,text:n})=>{const r=H(e);if(!r.length)return;const a=document.createElement("div");a.innerHTML=t.value,t.value=function(e,t,n){let r=0,a="";const i=[];function l(){return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset"}function s(e){a+=""}function c(e){("start"===e.event?u:s)(e.node)}for(;e.length||t.length;){let t=l();if(a+=o(n.substring(r,t[0].offset)),r=t[0].offset,t===e){i.reverse().forEach(s);do{c(t.splice(0,1)[0]),t=l()}while(t===e&&t.length&&t[0].offset===r);i.reverse().forEach(u)}else"start"===t[0].event?i.push(t[0].node):i.pop(),c(t.splice(0,1)[0])}return a+o(n.substr(r))}(r,H(a),n)}};function $(e){return e.nodeName.toLowerCase()}function H(e){const t=[];return function e(n,r){for(let a=n.firstChild;a;a=a.nextSibling)3===a.nodeType?r+=a.nodeValue.length:1===a.nodeType&&(t.push({event:"start",offset:r,node:a}),r=e(a,r),$(a).match(/br|hr|img|input/)||t.push({event:"stop",offset:r,node:a}));return r}(e,0),t}const V={},q=e=>{console.error(e)},W=(e,...t)=>{console.log("WARN: "+e,...t)},Y=(e,t)=>{V[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),V[`${e}/${t}`]=!0)},K=o,Q=l,Z=Symbol("nomatch");var G=function(e){const t=Object.create(null),n=Object.create(null),a=[];let o=!0;const l=/(^(<[^>]+>|\t|)+|\n)/gm,u="Could not find the language '{}', did you forget to load/include a language module?",s={disableAutodetect:!0,name:"Plain text",contains:[]};let c={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:f};function d(e){return c.noHighlightRe.test(e)}function p(e,t,n,r){let a="",i="";"object"==typeof t?(a=e,n=t.ignoreIllegals,i=t.language,r=void 0):(Y("10.7.0","highlight(lang, code, ...args) has been deprecated."),Y("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),i=e,a=t);const o={code:a,language:i};C("before:highlight",o);const l=o.result?o.result:h(o.language,o.code,n,r);return l.code=o.code,C("after:highlight",l),l}function h(e,n,r,l){function s(e,t){const n=x.case_insensitive?t[0].toLowerCase():t[0];return Object.prototype.hasOwnProperty.call(e.keywords,n)&&e.keywords[n]}function f(){null!=k.subLanguage?function(){if(""===_)return;let e=null;if("string"==typeof k.subLanguage){if(!t[k.subLanguage])return void C.addText(_);e=h(k.subLanguage,_,!0,A[k.subLanguage]),A[k.subLanguage]=e.top}else e=m(_,k.subLanguage.length?k.subLanguage:null);k.relevance>0&&(T+=e.relevance),C.addSublanguage(e.emitter,e.language)}():function(){if(!k.keywords)return void C.addText(_);let e=0;k.keywordPatternRe.lastIndex=0;let t=k.keywordPatternRe.exec(_),n="";for(;t;){n+=_.substring(e,t.index);const r=s(k,t);if(r){const[e,a]=r;if(C.addText(n),n="",T+=a,e.startsWith("_"))n+=t[0];else{const n=x.classNameAliases[e]||e;C.addKeyword(t[0],n)}}else n+=t[0];e=k.keywordPatternRe.lastIndex,t=k.keywordPatternRe.exec(_)}n+=_.substr(e),C.addText(n)}(),_=""}function d(e){return e.className&&C.openNode(x.classNameAliases[e.className]||e.className),k=Object.create(e,{parent:{value:k}}),k}function p(e){return 0===k.matcher.regexIndex?(_+=e[0],1):(O=!0,0)}function g(e){const t=e[0],n=e.rule,r=new i(n),a=[n.__beforeBegin,n["on:begin"]];for(const n of a)if(n&&(n(e,r),r.isMatchIgnored))return p(t);return n&&n.endSameAsBegin&&(n.endRe=new RegExp(t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")),n.skip?_+=t:(n.excludeBegin&&(_+=t),f(),n.returnBegin||n.excludeBegin||(_=t)),d(n),n.returnBegin?0:t.length}function y(e){const t=e[0],r=n.substr(e.index),a=function e(t,n,r){let a=function(e,t){const n=e&&e.exec(t);return n&&0===n.index}(t.endRe,r);if(a){if(t["on:end"]){const e=new i(t);t["on:end"](n,e),e.isMatchIgnored&&(a=!1)}if(a){for(;t.endsParent&&t.parent;)t=t.parent;return t}}if(t.endsWithParent)return e(t.parent,n,r)}(k,e,r);if(!a)return Z;const o=k;o.skip?_+=t:(o.returnEnd||o.excludeEnd||(_+=t),f(),o.excludeEnd&&(_=t));do{k.className&&C.closeNode(),k.skip||k.subLanguage||(T+=k.relevance),k=k.parent}while(k!==a.parent);return a.starts&&(a.endSameAsBegin&&(a.starts.endRe=a.endRe),d(a.starts)),o.returnEnd?0:t.length}let b={};function v(t,a){const i=a&&a[0];if(_+=t,null==i)return f(),0;if("begin"===b.type&&"end"===a.type&&b.index===a.index&&""===i){if(_+=n.slice(a.index,a.index+1),!o){const t=new Error("0 width match regex");throw t.languageName=e,t.badRule=b.rule,t}return 1}if(b=a,"begin"===a.type)return g(a);if("illegal"===a.type&&!r){const e=new Error('Illegal lexeme "'+i+'" for mode "'+(k.className||"")+'"');throw e.mode=k,e}if("end"===a.type){const e=y(a);if(e!==Z)return e}if("illegal"===a.type&&""===i)return 1;if(N>1e5&&N>3*a.index){throw new Error("potential infinite loop, way more iterations than matches")}return _+=i,i.length}const x=D(e);if(!x)throw q(u.replace("{}",e)),new Error('Unknown language: "'+e+'"');const E=z(x,{plugins:a});let w="",k=l||E;const A={},C=new c.__emitter(c);!function(){const e=[];for(let t=k;t!==x;t=t.parent)t.className&&e.unshift(t.className);e.forEach(e=>C.openNode(e))}();let _="",T=0,S=0,N=0,O=!1;try{for(k.matcher.considerAll();;){N++,O?O=!1:k.matcher.considerAll(),k.matcher.lastIndex=S;const e=k.matcher.exec(n);if(!e)break;const t=v(n.substring(S,e.index),e);S=e.index+t}return v(n.substr(S)),C.closeAllNodes(),C.finalize(),w=C.toHTML(),{relevance:Math.floor(T),value:w,language:e,illegal:!1,emitter:C,top:k}}catch(t){if(t.message&&t.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:t.message,context:n.slice(S-100,S+100),mode:t.mode},sofar:w,relevance:0,value:K(n),emitter:C};if(o)return{illegal:!1,relevance:0,value:K(n),emitter:C,language:e,top:k,errorRaised:t};throw t}}function m(e,n){n=n||c.languages||Object.keys(t);const r=function(e){const t={relevance:0,emitter:new c.__emitter(c),value:K(e),illegal:!1,top:s};return t.emitter.addText(e),t}(e),a=n.filter(D).filter(A).map(t=>h(t,e,!1));a.unshift(r);const i=a.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(D(e.language).supersetOf===t.language)return 1;if(D(t.language).supersetOf===e.language)return-1}return 0}),[o,l]=i,u=o;return u.second_best=l,u}const g={"before:highlightElement":({el:e})=>{c.useBR&&(e.innerHTML=e.innerHTML.replace(/\n/g,"").replace(//g,"\n"))},"after:highlightElement":({result:e})=>{c.useBR&&(e.value=e.value.replace(/\n/g,"
"))}},y=/^(<[^>]+>|\t)+/gm,b={"after:highlightElement":({result:e})=>{c.tabReplace&&(e.value=e.value.replace(y,e=>e.replace(/\t/g,c.tabReplace)))}};function v(e){let t=null;const r=function(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const n=c.languageDetectRe.exec(t);if(n){const t=D(n[1]);return t||(W(u.replace("{}",n[1])),W("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}return t.split(/\s+/).find(e=>d(e)||D(e))}(e);if(d(r))return;C("before:highlightElement",{el:e,language:r}),t=e;const a=t.textContent,i=r?p(a,{language:r,ignoreIllegals:!0}):m(a);C("after:highlightElement",{el:e,result:i,text:a}),e.innerHTML=i.value,function(e,t,r){const a=t?n[t]:r;e.classList.add("hljs"),a&&e.classList.add(a)}(e,r,i.language),e.result={language:i.language,re:i.relevance,relavance:i.relevance},i.second_best&&(e.second_best={language:i.second_best.language,re:i.second_best.relevance,relavance:i.second_best.relevance})}const x=()=>{if(x.called)return;x.called=!0,Y("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead.");document.querySelectorAll("pre code").forEach(v)};let E=!1;function w(){if("loading"===document.readyState)return void(E=!0);document.querySelectorAll("pre code").forEach(v)}function D(e){return e=(e||"").toLowerCase(),t[e]||t[n[e]]}function k(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach(e=>{n[e.toLowerCase()]=t})}function A(e){const t=D(e);return t&&!t.disableAutodetect}function C(e,t){const n=e;a.forEach((function(e){e[n]&&e[n](t)}))}"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(function(){E&&w()}),!1),Object.assign(e,{highlight:p,highlightAuto:m,highlightAll:w,fixMarkup:function(e){return Y("10.2.0","fixMarkup will be removed entirely in v11.0"),Y("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),t=e,c.tabReplace||c.useBR?t.replace(l,e=>"\n"===e?c.useBR?"
":e:c.tabReplace?e.replace(/\t/g,c.tabReplace):e):t;var t},highlightElement:v,highlightBlock:function(e){return Y("10.7.0","highlightBlock will be removed entirely in v12.0"),Y("10.7.0","Please use highlightElement now."),v(e)},configure:function(e){e.useBR&&(Y("10.3.0","'useBR' will be removed entirely in v11.0"),Y("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),c=Q(c,e)},initHighlighting:x,initHighlightingOnLoad:function(){Y("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),E=!0},registerLanguage:function(n,r){let a=null;try{a=r(e)}catch(e){if(q("Language definition for '{}' could not be registered.".replace("{}",n)),!o)throw e;q(e),a=s}a.name||(a.name=n),t[n]=a,a.rawDefinition=r.bind(null,e),a.aliases&&k(a.aliases,{languageName:n})},unregisterLanguage:function(e){delete t[e];for(const t of Object.keys(n))n[t]===e&&delete n[t]},listLanguages:function(){return Object.keys(t)},getLanguage:D,registerAliases:k,requireLanguage:function(e){Y("10.4.0","requireLanguage will be removed entirely in v11."),Y("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const t=D(e);if(t)return t;throw new Error("The '{}' language is required, but not loaded.".replace("{}",e))},autoDetection:A,inherit:Q,addPlugin:function(e){!function(e){e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{e["before:highlightBlock"](Object.assign({block:t.el},t))}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{e["after:highlightBlock"](Object.assign({block:t.el},t))})}(e),a.push(e)},vuePlugin:L(e).VuePlugin}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString="10.7.2";for(const e in O)"object"==typeof O[e]&&r(O[e]);return Object.assign(e,O),e.addPlugin(g),e.addPlugin(U),e.addPlugin(b),e}({});e.exports=G},17:function(e,t,n){const{getMapValueOfType:r}=n(2),a=n(76),i={hasExternalDocs(){return!(!this._json.externalDocs||!Object.keys(this._json.externalDocs).length)},externalDocs(){return r(this._json,"externalDocs",a)}};e.exports=i},2:function(e,t){const n=e.exports,r=(e,t,n)=>{if("string"!=typeof t||!e)return null;const r=e[String(t)];return void 0===r?null:n?new n(r):r};n.createMapOfType=(e,t)=>{const n={};return e?(Object.entries(e).forEach(([e,r])=>{n[String(e)]=new t(r)}),n):n},n.getMapValueOfType=(e,t,n)=>r(e,t,n),n.getMapValueByKey=(e,t)=>r(e,t),n.mix=(e,...t)=>{let n=!1;if(t.some((function(t){return e===t||(n=Object.keys(t).some(t=>e.prototype.hasOwnProperty(t)),n)})))throw n?new Error(`invalid mix function: model ${e.name} has at least one method that it is trying to replace by mixin`):new Error(`invalid mix function: cannot use the model ${e.name} as a mixin`);return t.forEach(t=>Object.assign(e.prototype,t)),e}},21:function(e,t,n){const{getMapValueByKey:r}=n(2),a={hasBindings(){return!(!this._json.bindings||!Object.keys(this._json.bindings).length)},bindings(){return this.hasBindings()?this._json.bindings:{}},bindingProtocols(){return Object.keys(this.bindings())},hasBinding(e){return this.hasBindings()&&!!this._json.bindings[String(e)]},binding(e){return r(this._json.bindings,e)}};e.exports=a},22:function(e,t){const n=(e,t)=>(t.type=e.type.startsWith("https://github.com/asyncapi/parser-js/")?e.type:"https://github.com/asyncapi/parser-js/"+e.type,t.title=e.title,e.detail&&(t.detail=e.detail),e.validationErrors&&(t.validationErrors=e.validationErrors),e.parsedJSON&&(t.parsedJSON=e.parsedJSON),e.location&&(t.location=e.location),e.refs&&(t.refs=e.refs),t);class r extends Error{constructor(e){super(),n(e,this),this.message=e.title}toJS(){return n(this,{})}}e.exports=r},23:function(e,t,n){const r=n(78),a={hasTags(){return!(!Array.isArray(this._json.tags)||!this._json.tags.length)},tags(){return this.hasTags()?this._json.tags.map(e=>new r(e)):[]},tagNames(){return this.hasTags()?this._json.tags.map(e=>e.name):[]},hasTag(e){return this.hasTags()&&this._json.tags.some(t=>t.name===e)},tag(e){const t=this.hasTags()&&this._json.tags.find(t=>t.name===e);return t?new r(t):null}};e.exports=a},26:function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return u}));var r=n(0),a=n.n(r),i=n(27);function o(e){return"undefined"!=typeof document?document.querySelector(e):null}function l(e){return function(t,n,r){null!==(n=n||o("asyncapi"))&&Object(i.render)(a.a.createElement(e,t),n,r)}}function u(e){return function(t,n,r){null!==(n=n||o("asyncapi"))&&Object(i.hydrate)(a.a.createElement(e,t),n,r)}}},269:function(e,t,n){"use strict";n.r(t);var r=n(34),a=n(26),i=n(14),o=n.n(i);t.default={render:Object(a.b)(r.a),hydrate:Object(a.a)(r.a),hljs:o.a}},27:function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(66)},3:function(e,t,n){const r=n(22);e.exports=class{constructor(e){if(null==e)throw new r(`Invalid JSON to instantiate the ${this.constructor.name} object.`);this._json=e}json(e){return void 0===e?this._json:this._json?this._json[String(e)]:void 0}}},33:function(e,t,n){const{createMapOfType:r,getMapValueOfType:a,mix:i}=n(2),o=n(3),l=n(69),u=n(72),s=n(75),c=n(82),f=n(17),d=n(23),p=n(4),{xParserSpecParsed:h,xParserCircle:m,xParserCircleProps:g}=n(42),{assignNameToAnonymousMessages:y,assignNameToComponentMessages:b,assignUidToComponentSchemas:v,assignUidToParameterSchemas:x,assignIdToAnonymousSchemas:E}=n(87),{traverseAsyncApiDocument:w,SchemaIteratorCallbackType:D}=n(43);e.exports=i(class extends o{constructor(...e){super(...e),!0!==this.ext(h)&&(b(this),y(this),function(e){const t=[],n=[];w(e,(e,r,a)=>{switch(a){case D.END_SCHEMA:n.pop(),t.pop();break;case D.NEW_SCHEMA:const a=e.json();if(t.includes(a)){return((e,t)=>{if("array"===e.type())return e.json()[String(m)]=!0;const n=e.json()[String(g)]||[];void 0!==t&&n.push(t),e.json()[String(g)]=n})(n.length>0?n[n.length-1]:e,r),!1}return t.push(a),n.push(e),!0}})}(this),v(this),x(this),E(this),this.json()[String(h)]=!0)}version(){return this._json.asyncapi}info(){return new l(this._json.info)}id(){return this._json.id}hasServers(){return!!this._json.servers}servers(){return r(this._json.servers,u)}serverNames(){return this._json.servers?Object.keys(this._json.servers):[]}server(e){return a(this._json.servers,e,u)}hasDefaultContentType(){return!!this._json.defaultContentType}defaultContentType(){return this._json.defaultContentType||null}hasChannels(){return!!this._json.channels}channels(){return r(this._json.channels,s,this)}channelNames(){return this._json.channels?Object.keys(this._json.channels):[]}channel(e){return a(this._json.channels,e,s,this)}hasComponents(){return!!this._json.components}components(){return this._json.components?new c(this._json.components):null}hasMessages(){return!!this.allMessages().size}allMessages(){const e=new Map;return this.hasChannels()&&this.channelNames().forEach(t=>{const n=this.channel(t);n.hasPublish()&&n.publish().messages().forEach(t=>{e.set(t.uid(),t)}),n.hasSubscribe()&&n.subscribe().messages().forEach(t=>{e.set(t.uid(),t)})}),this.hasComponents()&&Object.values(this.components().messages()).forEach(t=>{e.set(t.uid(),t)}),e}allSchemas(){const e=new Map;return w(this,t=>{t.uid()&&e.set(t.uid(),t)}),e}hasCircular(){return!!this._json[String(m)]}traverseSchemas(e,t){w(this,e,t)}},d,f,p)},34:function(e,t,n){"use strict";var r=n(0),a=n.n(r),i=n(127),o={schemaID:"",show:{sidebar:!1,info:!0,servers:!0,operations:!0,messages:!0,errors:!0},sidebar:{showOperations:"byOperationsTags"}};var l=function(e){void 0===e&&(e={});var t=e.onResize,n=Object(r.useRef)(void 0);n.current=t;var a=Object(r.useRef)(),i=Object(r.useState)({width:void 0,height:void 0}),o=i[0],l=i[1],u=Object(r.useRef)(!1);Object(r.useEffect)((function(){return function(){u.current=!0}}),[]);var s=Object(r.useRef)({width:void 0,height:void 0}),c=function(e,t){var n,a=null,i=Object(r.useRef)(null),o=Object(r.useRef)(null),l=Object(r.useCallback)((function(e){o.current=e,c()}),[]),u=Object(r.useRef)(null),s=Object(r.useRef)(),c=function(){var n=null;o.current?n=o.current:i.current?n=i.current:t instanceof HTMLElement&&(n=t),u.current!==n&&(s.current&&(s.current(),s.current=null),u.current=n,n&&(s.current=e(n)))};return!t||t instanceof HTMLElement||(a=t),Object(r.useEffect)((function(){a&&(i.current=a.current),c()}),[a,null==(n=a)?void 0:n.current,t]),l}((function(e){return a.current||(a.current=new ResizeObserver((function(e){if(Array.isArray(e)&&e.length){var t=e[0],r=Math.round(t.contentRect.width),a=Math.round(t.contentRect.height);if(s.current.width!==r||s.current.height!==a){var i={width:r,height:a};n.current?n.current(i):(s.current.width=r,s.current.height=a,u.current||l(i))}}}))),a.current.observe(e),function(){a.current&&a.current.unobserve(e)}}),e.ref);return Object(r.useMemo)((function(){return{ref:c,width:o.width,height:o.height}}),[c,o?o.width:null,o?o.height:null])},u=function(){return(u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&a.a.createElement("li",{className:"mb-3 mt-9"},a.a.createElement("a",{className:"text-xs uppercase text-gray-700 mt-10 mb-4 font-thin hover:text-gray-900",href:"#messages",onClick:function(){return o(!1)}},"Messages"),a.a.createElement("ul",{className:"text-sm mt-2"},Array.from(f.keys()).map((function(e){return a.a.createElement("li",{key:e},a.a.createElement("a",{className:"flex break-words no-underline text-gray-700 mt-2 hover:text-gray-900",href:"#message-"+e,onClick:function(){return o(!1)}},a.a.createElement("div",{className:"break-all inline-block"},e)))}))))))))))},m=function(){var e=d().channels(),t=[];return Object.entries(e).forEach((function(e){var n=e[0],r=e[1];r.hasPublish()&&t.push(a.a.createElement(v,{channelName:n,key:"pub-"+n})),r.hasSubscribe()&&t.push(a.a.createElement(x,{channelName:n,key:"sub-"+n}))})),a.a.createElement("ul",{className:"text-sm mt-2"},t)},g=function(){var e=d(),t=e.channels(),n=e.tags(),r=function(e){var n=[];return Object.entries(t).forEach((function(t){var r=t[0],o=t[1];o.hasPublish()&&i.a.containTags(o.publish(),e)&&n.push(a.a.createElement(v,{channelName:r,key:"pub-"+r})),o.hasSubscribe()&&i.a.containTags(o.subscribe(),e)&&n.push(a.a.createElement(x,{channelName:r,key:"sub-"+r}))})),n},o=[];return Object.entries(t).forEach((function(e){var t=e[0],r=e[1];!r.hasPublish()||r.publish().hasTags()&&i.a.containTags(r.publish(),n)||o.push(a.a.createElement(v,{channelName:t,key:"pub-"+t})),!r.hasSubscribe()||r.subscribe().hasTags()&&i.a.containTags(r.subscribe(),n)||o.push(a.a.createElement(x,{channelName:t,key:"sub-"+t}))})),a.a.createElement("div",null,a.a.createElement("ul",null,n&&n.map((function(e){return r(e).length>0&&a.a.createElement("li",{key:e.name()},a.a.createElement(b,{tagName:e.name()},r(e)))})),o.length>0&&a.a.createElement("li",null,a.a.createElement(b,{tagName:"Untagged"},o))))},y=function(){var e=d(),t=e.channels(),n=i.a.operationsTags(e),r=function(e){var n=[];return Object.entries(t).forEach((function(t){var r=t[0],o=t[1];o.hasPublish()&&i.a.containTags(o.publish(),e)&&n.push(a.a.createElement(v,{channelName:r,key:"pub-"+r})),o.hasSubscribe()&&i.a.containTags(o.subscribe(),e)&&n.push(a.a.createElement(x,{channelName:r,key:"sub-"+r}))})),n},o=[];return Object.entries(t).forEach((function(e){var t=e[0],r=e[1];!r.hasPublish()||r.publish().hasTags()&&i.a.containTags(r.publish(),n)||o.push(a.a.createElement(v,{channelName:t,key:"pub-"+t})),!r.hasSubscribe()||r.subscribe().hasTags()&&i.a.containTags(r.subscribe(),n)||o.push(a.a.createElement(x,{channelName:t,key:"sub-"+t}))})),a.a.createElement("div",null,a.a.createElement("ul",null,n&&n.map((function(e){return r(e).length>0&&a.a.createElement("li",{key:e.name()},a.a.createElement(b,{tagName:e.name()},r(e)))})),o.length>0&&a.a.createElement("li",null,a.a.createElement(b,{tagName:"Untagged"},o))))},b=function(e){var t=e.tagName,n=e.children,i=Object(r.useState)(!1),o=i[0],l=i[1];return a.a.createElement("div",null,a.a.createElement(c,{onClick:function(){return l((function(e){return!e}))},chevronProps:{className:o?"-rotate-180":"-rotate-90"}},a.a.createElement("span",{className:"text-sm inline-block mt-1 font-extralight"},t)),a.a.createElement("ul",{className:(o?"block":"hidden")+" text-sm mt-2 font-light"},n))},v=function(e){var t=e.channelName,n=Object(r.useContext)(p).setShowSidebar;return a.a.createElement("li",null,a.a.createElement("a",{className:"flex no-underline text-gray-700 mb-2 hover:text-gray-900",href:"#operation-publish-"+t,onClick:function(){return n(!1)}},a.a.createElement("span",{className:"bg-blue-600 font-bold h-6 no-underline text-white uppercase p-1 mr-2 rounded text-xs",title:"Publish"},"Pub"),a.a.createElement("span",{className:"break-all inline-block"},t)))},x=function(e){var t=e.channelName,n=Object(r.useContext)(p).setShowSidebar;return a.a.createElement("li",null,a.a.createElement("a",{className:"flex no-underline text-gray-700 mb-2 hover:text-gray-900",href:"#operation-subscribe-"+t,onClick:function(){return n(!1)}},a.a.createElement("span",{className:"bg-green-600 font-bold h-6 no-underline text-white uppercase p-1 mr-2 rounded text-xs",title:"Subscribe"},"SUB"),a.a.createElement("span",{className:"break-all inline-block"},t)))},E=function(e){var t=e.href,n=e.title,r=e.className,i=e.children;return a.a.createElement("a",{href:t,title:n,className:r,target:"_blank",rel:"nofollow noopener noreferrer"},i)},w=n(51),D=n(52),k=n.n(D),A=n(14),C=n.n(A),_=n(53),T=n.n(_),S=n(54),N=n.n(S),O=n(55),F=n.n(O);C.a.registerLanguage("json",T.a),C.a.registerLanguage("yaml",N.a),C.a.registerLanguage("bash",F.a);var j={langPrefix:"hljs language-",highlight:function(e,t){if(!C.a.getLanguage(t))return e;try{return C.a.highlight(e,{language:t}).value}catch(t){return e}}};var P,R=function(e){var t,n=e.children;return n?"string"!=typeof n?a.a.createElement(a.a.Fragment,null,n):a.a.createElement("div",{className:"prose max-w-full text-sm",dangerouslySetInnerHTML:{__html:Object(w.sanitize)((t=n,k()(t,j)))}}):null},B=function(e){var t=e.tag,n="#"+t.name(),r=t.description()||"",i=t.externalDocs(),o=a.a.createElement("div",{title:r,className:"border border-solid border-blue-300 hover:bg-blue-300 hover:text-blue-600 text-blue-500 font-bold no-underline text-xs rounded px-3 py-1"},a.a.createElement("span",{className:i?"underline":""},n));return i?a.a.createElement(E,{href:i.url(),title:r},o):o},I=function(e){var t=e.tags;return t&&t.length?a.a.createElement("ul",{className:"flex flex-wrap leading-normal"},t.map((function(e){return a.a.createElement("li",{className:"inline-block mt-2 mr-2",key:e.name()},a.a.createElement(B,{tag:e}))}))):null},M=n(1),z=function(){var e=d(),t=e.info();if(!t)return null;var n=e.id(),r=e.externalDocs(),i=t.license(),o=t.termsOfService(),l=e.defaultContentType(),u=t.contact(),s=i||o||l||u||r;return a.a.createElement("div",{className:"panel-item"},a.a.createElement("div",{className:"panel-item--center px-8 text-left",id:"introduction"},a.a.createElement("div",{className:"text-4xl"},t.title()," ",t.version()),s&&a.a.createElement("ul",{className:"flex flex-wrap mt-2 leading-normal"},i&&a.a.createElement("li",{className:"inline-block mt-2 mr-2"},i.url()?a.a.createElement(E,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:i.url()},a.a.createElement("span",null,i.name())):a.a.createElement("span",{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1"},i.name())),o&&a.a.createElement("li",{className:"inline-block mt-2 mr-2"},a.a.createElement(E,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:o},a.a.createElement("span",null,M.h))),l&&a.a.createElement("li",{className:"inline-block mt-2 mr-2"},a.a.createElement(E,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:M.a+"/"+l},a.a.createElement("span",null,l))),r&&a.a.createElement("li",{className:"inline-block mt-2 mr-2"},a.a.createElement(E,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:r.url()},a.a.createElement("span",null,M.d))),u&&a.a.createElement(a.a.Fragment,null,u.url()&&a.a.createElement("li",{className:"inline-block mt-2 mr-2"},a.a.createElement(E,{className:"border border-solid border-purple-300 hover:bg-purple-300 hover:text-purple-600 text-purple-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:u.url()},a.a.createElement("span",null,u.name()||M.i))),u.email()&&a.a.createElement("li",{className:"inline-block mt-2 mr-2"},a.a.createElement(E,{className:"border border-solid border-purple-300 hover:bg-purple-300 hover:text-purple-600 text-purple-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:"mailto:"+u.email()},a.a.createElement("span",null,u.email())))),n&&a.a.createElement("li",{className:"inline-block mt-2 mr-2"},a.a.createElement("span",{className:"border border-solid border-blue-300 hover:bg-blue-300 hover:text-blue-600 text-blue-500 font-bold no-underline text-xs uppercase rounded px-3 py-1"},"ID: ",n))),t.hasDescription()&&a.a.createElement("div",{className:"mt-4"},a.a.createElement(R,null,t.description())),e.hasTags()&&a.a.createElement("div",{className:"mt-4"},a.a.createElement(I,{tags:e.tags()}))),a.a.createElement("div",{className:"panel-item--right"}))},L=function(){function e(){}return e.securityType=function(e){switch(e){case"apiKey":return"API key";case"oauth2":return"OAuth2";case"openIdConnect":return"Open ID";case"http":return"HTTP";case"userPassword":return"User/Password";case"X509":return"X509:";case"symmetricEncryption":return"Symmetric Encription";case"asymmetricEncryption":return"Asymmetric Encription";case"httpApiKey":return"HTTP API key";default:return"API key"}},e.flowName=function(e){switch(e){case"implicit":return"Implicit";case"password":return"Password";case"clientCredentials":return"Client credentials";case"authorizationCode":return"Authorization Code";default:return"Implicit"}},e}(),U=function(e){var t=e.serverRequirements,n=void 0===t?[]:t,r=d(),i=r.hasComponents()&&r.components().securitySchemes();if(!n.length||!i||!Object.keys(i).length)return null;var o=n.map((function(e){var t=i[Object.keys(e.json())[0]];return t?a.a.createElement($,{securitySchema:t,key:t.type()}):null})).filter(Boolean);return o.length?a.a.createElement("div",{className:"text-sm mt-4"},a.a.createElement("h5",{className:"text-gray-700 text-base"},"Security:"),a.a.createElement("ul",null,o.map((function(e,t){return a.a.createElement("li",{className:"mt-2",key:t},e)})))):null},$=function(e){var t=e.securitySchema,n=[];t.name()&&n.push(a.a.createElement("span",null,"Name: ",t.name())),t.in()&&n.push(a.a.createElement("span",null,"In: ",t.in())),t.scheme()&&n.push(a.a.createElement("span",null,"Scheme: ",t.scheme())),t.bearerFormat()&&n.push(a.a.createElement("span",null,"Bearer format: ",t.bearerFormat())),t.openIdConnectUrl()&&n.push(a.a.createElement(E,{href:t.openIdConnectUrl(),className:"underline"},"Connect URL"));var r=t.flows(),i=r&&Object.entries(r).map((function(e){var t=e[0],n=e[1],r=n.authorizationUrl(),i=n.tokenUrl(),o=n.refreshUrl(),l=n.scopes();return a.a.createElement("div",{className:"px-4 py-2 ml-2 mb-2 border border-gray-400 bg-gray-100 rounded",key:t},a.a.createElement("div",null,a.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},"Flow:"),a.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},L.flowName(t))),r&&a.a.createElement("div",{className:"mt-1"},a.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},"Auth URL:"),a.a.createElement(E,{href:r,className:"underline"},r)),i&&a.a.createElement("div",{className:"mt-1"},a.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},"Token URL:"),a.a.createElement(E,{href:i,className:"underline"},i)),o&&a.a.createElement("div",{className:"mt-1"},a.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},"Refresh URL:"),a.a.createElement(E,{href:o,className:"underline"},o)),l&&a.a.createElement("div",{className:"mt-1"},a.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},"Scopes:"),a.a.createElement("ul",{className:"inline-block"},l&&Object.entries(l).map((function(e){var t=e[0],n=e[1];return a.a.createElement("li",{className:"inline-block font-bold no-underline bg-indigo-400 text-white text-xs rounded py-0 px-1 ml-1",title:n,key:t},t)})))))}));return a.a.createElement("div",{className:"ai-security__security__security-schema"},a.a.createElement("div",null,a.a.createElement("span",null,L.securityType(t.type()),n.length>0&&a.a.createElement("ul",{className:"inline-block ml-2"},n.map((function(e,t){return a.a.createElement("li",{className:"inline-block font-bold no-underline bg-blue-400 text-white text-xs uppercase rounded px-2 py-0 ml-1",key:t},e)}))))),t.hasDescription()&&a.a.createElement("div",null,a.a.createElement(R,null,t.description())),i&&i.length>0&&a.a.createElement("ul",{className:"my-2"},a.a.createElement("li",null,i)))},H=n(7),V=n.n(H);!function(e){e.ANY="any",e.RESTRICTED_ANY="restricted any",e.NEVER="never",e.UNKNOWN="unknown"}(P||(P={}));var q=["string","number","integer","boolean","array","object","null"],W=Object.keys({maxLength:"string",minLength:"string",pattern:"string",contentMediaType:"string",contentEncoding:"string",multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",contains:"array",additionalItems:"array",maxProperties:"object",minProperties:"object",required:"object",properties:"object",patternProperties:"object",propertyNames:"object",dependencies:"object",additionalProperties:"object"}),Y=function(){function e(){}return e.toSchemaType=function(e){var t=this;if(!e||"function"!=typeof e.json)return P.UNKNOWN;if(e.isBooleanSchema())return!0===e.json()?P.ANY:P.NEVER;if(0===Object.keys(e.json()).length)return P.ANY;var n=e.not();if(n&&this.inferType(n)===P.ANY)return P.NEVER;var r=this.inferType(e);if(Array.isArray(r))return r.map((function(n){return t.toType(n,e)})).join(" | ");r=this.toType(r,e);var a=this.toCombinedType(e);return r&&a?r+" "+a:a||r},e.prettifyValue=function(e){var t=typeof e;return"string"===t?'"'+e+'"':"number"===t||"bigint"===t||"boolean"===t?e:Array.isArray(e)?"["+e.toString()+"]":JSON.stringify(e)},e.humanizeConstraints=function(e){var t=[],n=this.humanizeNumberRangeConstraint(e.minimum(),e.exclusiveMinimum(),e.maximum(),e.exclusiveMaximum());void 0!==n&&t.push(n);var r=this.humanizeMultipleOfConstraint(e.multipleOf());void 0!==r&&t.push(r);var a=this.humanizeRangeConstraint("characters",e.minLength(),e.maxLength());void 0!==a&&t.push(a);var i=e.uniqueItems(),o=this.humanizeRangeConstraint(i?"unique items":"items",e.minItems(),e.maxItems());void 0!==o&&t.push(o);var l=this.humanizeRangeConstraint("properties",e.minProperties(),e.maxProperties());return void 0!==l&&t.push(l),t},e.isExpandable=function(e){var t=this.inferType(e);if((t=Array.isArray(t)?t:[t]).includes("object")||t.includes("array"))return!0;if(e.oneOf()||e.anyOf()||e.allOf()||e.not()||e.if()||e.then()||e.else())return!0;var n=this.getCustomExtensions(e);return!(!n||!Object.keys(n).length)},e.serverVariablesToSchema=function(e){var t;if(e&&Object.keys(e).length){var n=((t={type:"object",properties:Object.entries(e).reduce((function(e,t){var n=t[0],r=t[1];return e[n]=Object.assign({},r.json()),e[n].type="string",e}),{}),required:Object.keys(e)})[this.extRenderType]=!1,t[this.extRenderAdditionalInfo]=!1,t);return new V.a(n)}},e.parametersToSchema=function(e){var t,n=this;if(e&&Object.keys(e).length){var r=((t={type:"object",properties:Object.entries(e).reduce((function(e,t){var r=t[0],a=t[1];return e[r]=Object.assign({},a.schema().json()),e[r].description=a.description()||e[r].description,e[r][n.extParameterLocation]=a.location(),e}),{}),required:Object.keys(e)})[this.extRenderType]=!1,t[this.extRenderAdditionalInfo]=!1,t);return new V.a(r)}},e.jsonToSchema=function(e){var t=this.jsonFieldToSchema(e);return new V.a(t)},e.getCustomExtensions=function(e){if(e&&"function"==typeof e.extensions)return Object.entries(e.extensions()||{}).reduce((function(e,t){var n=t[0],r=t[1];return n.startsWith("x-parser-")||n.startsWith("x-schema-private-")||(e[n]=r),e}),{})},e.getDependentRequired=function(e,t){var n=[],r=t.dependencies();if(r){for(var a=0,i=Object.entries(r);a>"}return"tuple<"+(a||P.UNKNOWN)+">"}return r?"array<"+(this.toSchemaType(r)||P.UNKNOWN)+">":"array<"+P.ANY+">"}return e},e.toCombinedType=function(e){return e.oneOf()?"oneOf":e.anyOf()?"anyOf":e.allOf()?"allOf":void 0},e.inferType=function(e){var t=e.type();if(void 0!==t)return Array.isArray(t)?(t.includes("integer")&&t.includes("number")&&(t=t.filter((function(e){return"integer"!==e}))),1===t.length?t[0]:t):t;var n=e.const();if(void 0!==n)return typeof n;var r=e.enum();if(Array.isArray(r)&&r.length){var a=Array.from(new Set(r.map((function(e){return typeof e}))));return 1===a.length?a[0]:a}var i=Object.keys(e.json()||{})||[];return!0===W.some((function(e){return i.includes(e)}))?P.RESTRICTED_ANY:this.toCombinedType(e)?"":P.ANY},e.humanizeNumberRangeConstraint=function(e,t,n,r){var a,i=void 0!==t,o=void 0!==e||i,l=void 0!==r,u=void 0!==n||l;return o&&u?(a=i?"( ":"[ ",a+=i?t:e,a+=" .. ",a+=l?r:n,a+=l?" )":" ]"):o?(a=i?"> ":">= ",a+=i?t:e):u&&(a=l?"< ":"<= ",a+=l?r:n),a},e.humanizeMultipleOfConstraint=function(e){if(void 0!==e){var t=e.toString(10);return/^0\.0*1$/.test(t)?"decimal places <= "+t.split(".")[1].length:"multiple of "+t}},e.humanizeRangeConstraint=function(e,t,n){var r;return void 0!==t&&void 0!==n?r=t===n?t+" "+e:"[ "+t+" .. "+n+" ] "+e:void 0!==n?r="<= "+n+" "+e:void 0!==t&&(r=1===t?"non-empty":">= "+t+" "+e),r},e.jsonFieldToSchema=function(e){var t,n,r,a=this;return"object"!=typeof e?((t={type:"string",const:"function"==typeof e.toString?e.toString():e})[this.extRawValue]=!0,t):this.isJSONSchema(e)?e:Array.isArray(e)?((n={type:"array",items:e.map((function(e){return a.jsonFieldToSchema(e)}))})[this.extRenderType]=!1,n[this.extRenderAdditionalInfo]=!1,n):((r={type:"object",properties:Object.entries(e).reduce((function(e,t){var n=t[0],r=t[1];return e[n]=a.jsonFieldToSchema(r),e}),{})})[this.extRenderType]=!1,r[this.extRenderAdditionalInfo]=!1,r)},e.isJSONSchema=function(e){return!(!e||"object"!=typeof e||!(q.includes(e.type)||Array.isArray(e.type)&&e.type.some((function(e){return!q.includes(e)}))))},e.extRenderType="x-schema-private-render-type",e.extRenderAdditionalInfo="x-schema-private-render-additional-info",e.extRawValue="x-schema-private-raw-value",e.extParameterLocation="x-schema-private-parameter-location",e}(),K=function(e){var t=e.name,n=void 0===t?"Extensions":t,r=e.item,i=Y.getCustomExtensions(r);if(!i||!Object.keys(i).length)return null;var o=Y.jsonToSchema(i);return a.a.createElement("div",{className:"mt-2"},a.a.createElement(Z,{schemaName:n,schema:o}))},Q=a.a.createContext({reverse:!1}),Z=function(e){var t=e.schemaName,n=e.schema,i=e.required,o=void 0!==i&&i,l=e.isCircular,u=void 0!==l&&l,s=e.isPatternProperty,f=void 0!==s&&s,d=e.isProperty,p=void 0!==d&&d,h=e.dependentRequired,m=e.expanded,g=void 0!==m&&m,y=Object(r.useContext)(Q).reverse,b=Object(r.useState)(g),v=b[0],x=b[1];if(!n||(null==t?void 0:t.startsWith("x-parser-"))||(null==t?void 0:t.startsWith("x-schema-private-")))return null;var w=Y.getDependentSchemas(n),D=Y.humanizeConstraints(n),k=n.externalDocs(),A=!1!==n.ext(Y.extRenderType),C=!0===n.ext(Y.extRawValue),_=n.ext(Y.extParameterLocation),T=Y.isExpandable(n)||w;u=u||n.ext("x-parser-circular")||!1;var S=n.uid();return u&&!S&&n.items()&&"function"==typeof n.items().uid&&(S=n.items().uid()),a.a.createElement(Q.Provider,{value:{reverse:!y}},a.a.createElement("div",null,a.a.createElement("div",{className:"flex py-2"},a.a.createElement("div",{className:"w-3/12 min-w-min mr-2"},T&&!u?a.a.createElement(c,{onClick:function(){return x((function(e){return!e}))},chevronProps:{className:v?"-rotate-180":"-rotate-90"}},a.a.createElement("span",{className:"break-words text-sm "+(p?"italic":"")},t)):a.a.createElement("span",{className:"break-words text-sm "+(p?"italic":"")},t),f&&a.a.createElement("div",{className:"text-gray-500 text-xs italic"},"(pattern property)"),o&&a.a.createElement("div",{className:"text-red-600 text-xs"},"required"),h&&a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"text-gray-500 text-xs"},"required when defined:"),a.a.createElement("div",{className:"text-red-600 text-xs"},h.join(", "))),n.deprecated()&&a.a.createElement("div",{className:"text-red-600 text-xs"},"deprecated"),n.writeOnly()&&a.a.createElement("div",{className:"text-gray-500 text-xs"},"write-only"),n.readOnly()&&a.a.createElement("div",{className:"text-gray-500 text-xs"},"read-only")),C?a.a.createElement("div",null,a.a.createElement("div",{className:"text-sm"},n.const())):a.a.createElement("div",null,a.a.createElement("div",null,A&&a.a.createElement("div",{className:"capitalize text-sm text-teal-500 font-bold inline-block mr-2"},u?Y.toSchemaType(n)+" [CIRCULAR]":Y.toSchemaType(n)),a.a.createElement("div",{className:"inline-block"},n.format()&&a.a.createElement("span",{className:"bg-yellow-600 font-bold no-underline text-white rounded lowercase mr-2 p-1 text-xs"},"format: ",n.format()),void 0!==n.pattern()&&a.a.createElement("span",{className:"bg-yellow-600 font-bold no-underline text-white rounded lowercase mr-2 p-1 text-xs"},"must match: ",n.pattern()),void 0!==n.contentMediaType()&&a.a.createElement("span",{className:"bg-yellow-600 font-bold no-underline text-white rounded lowercase mr-2 p-1 text-xs"},"media type: ",n.contentMediaType()),void 0!==n.contentEncoding()&&a.a.createElement("span",{className:"bg-yellow-600 font-bold no-underline text-white rounded lowercase mr-2 p-1 text-xs"},"encoding: ",n.contentEncoding()),!!D.length&&D.map((function(e){return a.a.createElement("span",{className:"bg-purple-600 font-bold no-underline text-white rounded lowercase mr-2 p-1 text-xs",key:e},e)})),S&&!S.startsWith("e.length?e.repeat(Math.trunc(t/e.length)+1).substring(0,t):e}function le(...e){const t=e=>e&&"object"==typeof e;return e.reduce((e,n)=>(Object.keys(n).forEach(r=>{const a=e[r],i=n[r];t(a)&&t(i)?e[r]=le(a,i):e[r]=i}),e),Array.isArray(e[e.length-1])?[]:{})}function ue(e){return{value:"object"===e?{}:"array"===e?[]:void 0}}function se(e,t){t&&e.pop()}const ce={multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",maxLength:"string",minLength:"string",pattern:"string",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",additionalItems:"array",maxProperties:"object",minProperties:"object",required:"object",additionalProperties:"object",properties:"object",patternProperties:"object",dependencies:"object"};function fe(e){if(void 0!==e.type)return Array.isArray(e.type)?0===e.type.length?null:e.type[0]:e.type;const t=Object.keys(ce);for(var n=0;nt.maxSampleDepth)return se(me,r),ue(fe(e));if(e.$ref){let a=decodeURIComponent(e.$ref);a.startsWith("#")&&(a=a.substring(1));const i=pe.a.get(n,a);let o;if(!0!==he[a])he[a]=!0,o=ge(i,t,n,r),he[a]=!1;else{o=ue(fe(i))}return se(me,r),o}if(void 0!==e.example)return se(me,r),{value:e.example,readOnly:e.readOnly,writeOnly:e.writeOnly,type:e.type};if(void 0!==e.allOf)return se(me,r),function(e,t,n,r,a){let i=ge(e,n,r);const o=[];for(let e of t){const{type:t,readOnly:l,writeOnly:u,value:s}=ge({type:i.type,...e},n,r,a);i.type&&t&&t!==i.type&&(console.warn("allOf: schemas with different types can't be merged"),i.type=t),i.type=i.type||t,i.readOnly=i.readOnly||l,i.writeOnly=i.writeOnly||u,null!=s&&o.push(s)}if("object"===i.type)return i.value=le(i.value||{},...o.filter(e=>"object"==typeof e)),i;{"array"===i.type&&(n.quiet||console.warn('OpenAPI Sampler: found allOf with "array" type. Result may be incorrect'));const e=o[o.length-1];return i.value=null!=e?e:i.value,i}}({...e,allOf:void 0},e.allOf,t,n,r);if(e.oneOf&&e.oneOf.length)return e.anyOf&&(t.quiet||console.warn("oneOf and anyOf are not supported on the same level. Skipping anyOf")),se(me,r),ge(e.oneOf[0],t,n,r);if(e.anyOf&&e.anyOf.length)return se(me,r),ge(e.anyOf[0],t,n,r);if(e.if&&e.then)return ge(le(e.if,e.then),t,n,r);let a=null,i=null;if(void 0!==e.default)a=e.default;else if(void 0!==e.const)a=e.const;else if(void 0!==e.enum&&e.enum.length)a=e.enum[0];else if(void 0!==e.examples&&e.examples.length)a=e.examples[0];else{i=e.type,Array.isArray(i)&&e.type.length>0&&(i=e.type[0]),i||(i=fe(e));let o=De[i];o&&(a=o(e,t,n,r))}return se(me,r),{value:a,readOnly:e.readOnly,writeOnly:e.writeOnly,type:i}}function ye(e){let t=0;if("boolean"==typeof e.exclusiveMinimum||"boolean"==typeof e.exclusiveMaximum){if(e.maximum&&e.minimum)return t=e.exclusiveMinimum?Math.floor(e.minimum)+1:e.minimum,(e.exclusiveMaximum&&t>=e.maximum||!e.exclusiveMaximum&&t>e.maximum)&&(t=(e.maximum+e.minimum)/2),t;if(e.minimum)return e.exclusiveMinimum?Math.floor(e.minimum)+1:e.minimum;if(e.maximum)return e.exclusiveMaximum?e.maximum>0?0:Math.floor(e.maximum)-1:e.maximum>0?0:e.maximum}else{if(e.minimum)return e.minimum;e.exclusiveMinimum?(t=Math.floor(e.exclusiveMinimum)+1,t===e.exclusiveMaximum&&(t=(t+Math.floor(e.exclusiveMaximum)-1)/2)):e.exclusiveMaximum?t=Math.floor(e.exclusiveMaximum)-1:e.maximum&&(t=e.maximum)}return t}function be(){return"user@example.com"}function ve({min:e,max:t,omitTime:n,omitDate:r}){let a=function(e,t,n,r){var a=n?"":e.getUTCFullYear()+"-"+ie(e.getUTCMonth()+1)+"-"+ie(e.getUTCDate());return t||(a+="T"+ie(e.getUTCHours())+":"+ie(e.getUTCMinutes())+":"+ie(e.getUTCSeconds())+(r?"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5):"")+"Z"),a}(new Date("2019-08-24T14:15:22.123Z"),n,r,!1);return a.lengtht&&console.warn(`Using maxLength = ${t} is incorrect with format "date-time"`),a}function xe(e,t){let n=oe("string",e);return t&&n.length>t&&(n=n.substring(0,t)),n}function Ee(){return"example.com"}const we={email:be,"idn-email":be,password:function(e,t){let n="pa$$word";return e>n.length&&(n+="_",n+=oe("qwerty!@#$%^123456",e-n.length).substring(0,e-n.length)),n},"date-time":function(e,t){return ve({min:e,max:t,omitTime:!1,omitDate:!1})},date:function(e,t){return ve({min:e,max:t,omitTime:!0,omitDate:!1})},time:function(e,t){return ve({min:e,max:t,omitTime:!1,omitDate:!0}).slice(1)},ipv4:function(){return"192.168.0.1"},ipv6:function(){return"2001:0db8:85a3:0000:0000:8a2e:0370:7334"},hostname:Ee,"idn-hostname":Ee,iri:function(){return"http://example.com"},"iri-reference":function(){return"../dictionary"},uri:function(){return"http://example.com"},"uri-reference":function(){return"../dictionary"},"uri-template":function(){return"http://example.com/{endpoint}"},uuid:function(e,t,n){return l=function(e){var t=0;if(0==e.length)return t;for(var n=0;n>>5)|0;return r=a^((i|=0)<<17|i>>>15),a=i+(o|=0)|0,i=o+e|0,((o=r+e|0)>>>0)/4294967296},"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{var t=16*u()%16|0;return("x"==e?t:3&t|8).toString(16)});var r,a,i,o,l,u},default:xe,"json-pointer":function(){return"/json/pointer"},"relative-json-pointer":function(){return"1/relative/json/pointer"},regex:function(){return"/regex/"}};var De={};const ke={skipReadOnly:!1,maxSampleDepth:15};function Ae(e,t,n=e){let r=Object.assign({},ke,t);return he={},me=[],ge(e,r,n).value}function Ce(e,t){De[e]=t}Ce("array",(function(e,t={},n,r){const a=r&&r.depth||1;let i=Math.min("maxItems"in e?e.maxItems:1/0,e.minItems||1);const o=e.items||e.contains;Array.isArray(o)&&(i=Math.max(i,o.length));let l=[];if(!o)return l;for(let r=0;r(e[t]=!0,e),{});Object.keys(e.properties).forEach(o=>{if(t.skipNonRequired&&!r.hasOwnProperty(o))return;const l=ge(e.properties[o],t,n,{propertyName:o,depth:i+1});t.skipReadOnly&&l.readOnly||t.skipWriteOnly&&l.writeOnly||(a[o]=l.value)})}return e&&"object"==typeof e.additionalProperties&&(a.property1=ge(e.additionalProperties,t,n,{depth:i+1}).value,a.property2=ge(e.additionalProperties,t,n,{depth:i+1}).value),a})),Ce("string",(function(e,t,n,r){let a=e.format||"default",i=we[a]||xe,o=r&&r.propertyName;return i(0|e.minLength,e.maxLength,o)}));var _e=function(){function e(){}return e.generateExample=function(e,t){void 0===t&&(t={});try{return this.sanitizeExample(Ae(e,t))||""}catch(e){return""}},e.sanitizeExample=function(e){var t=this;return"object"==typeof e&&e&&!Array.isArray(e)?Object.entries(e).reduce((function(e,n){var r=n[0],a=n[1];return r.startsWith("x-parser-")||r.startsWith("x-schema-private-")||(e[r]=t.sanitizeExample(a)),e}),{}):e},e.getPayloadExamples=function(e){var t=e.examples();if(Array.isArray(t)&&t.some((function(e){return e.payload})))return t.flatMap((function(e){return e.payload})).filter(Boolean);var n=e.payload();return n&&n.examples()?n.examples():void 0},e.getHeadersExamples=function(e){var t=e.examples();if(Array.isArray(t)&&t.some((function(e){return e.headers})))return t.flatMap((function(e){return e.headers})).filter(Boolean);var n=e.headers();return n&&n.examples()?n.examples():void 0},e}(),Te=function(e){var t=e.message;if(!t)return null;var n=t.payload(),r=t.headers();return a.a.createElement("div",{className:"bg-gray-800 px-8 py-4 mt-4 -mx-8 2xl:mx-0 2xl:px-4 2xl:rounded examples"},a.a.createElement("h4",{className:"text-white text-lg"},"Examples"),n&&a.a.createElement(Se,{type:"Payload",schema:n,examples:_e.getPayloadExamples(t)}),r&&a.a.createElement(Se,{type:"Headers",schema:r,examples:_e.getHeadersExamples(t)}))},Se=function(e){var t=e.type,n=void 0===t?"Payload":t,i=e.schema,o=e.examples,l=void 0===o?[]:o,u=Object(r.useState)(!1),s=u[0],f=u[1];return a.a.createElement("div",{className:"mt-4"},a.a.createElement("div",null,a.a.createElement(c,{onClick:function(){return f((function(e){return!e}))},chevronProps:{className:"fill-current text-gray-200 "+(s?"-rotate-180":"-rotate-90")}},a.a.createElement("span",{className:"px-2 py-1 mr-2 text-gray-200 text-sm border rounded focus:outline-none"},n))),a.a.createElement("div",{className:s?"block":"hidden"},l&&l.length>0?a.a.createElement("ul",null,l.map((function(e,t){return a.a.createElement("li",{className:"mt-4",key:t},a.a.createElement("h5",{className:"text-xs font-bold text-gray-700"},"Example #",t+1),a.a.createElement("div",{className:"mt-1"},a.a.createElement(ae,{snippet:_e.sanitizeExample(e)})))}))):a.a.createElement("div",{className:"mt-4"},a.a.createElement(ae,{snippet:_e.generateExample(i.json())}),a.a.createElement("h6",{className:"text-xs font-bold text-gray-700 italic mt-2"},"This example has been generated automatically."))))},Ne=function(e){var t=e.message,n=e.index,r=e.showExamples,i=void 0!==r&&r;if(!t)return null;var o=t.title(),l=t.summary(),u=t.payload(),s=t.headers(),c=t.correlationId(),f=t.contentType(),d=t.externalDocs(),p=f||d;return a.a.createElement("div",{className:"panel-item"},a.a.createElement("div",{className:"panel-item--center px-8"},a.a.createElement("div",{className:"shadow rounded bg-gray-200 p-4 border bg-gray-100"},a.a.createElement("div",null,void 0!==n&&a.a.createElement("span",{className:"text-gray-700 font-bold mr-2"},"#",n),o&&a.a.createElement("span",{className:"text-gray-700 mr-2"},o),a.a.createElement("span",{className:"border text-orange-600 rounded text-xs py-0 px-2"},t.uid())),l&&a.a.createElement("p",{className:"text-gray-600 text-sm"},l),p&&a.a.createElement("ul",{className:"leading-normal mt-2 mb-4 space-x-2 space-y-2"},f&&a.a.createElement("li",{className:"inline-block"},a.a.createElement(E,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:M.a+"/"+f},a.a.createElement("span",null,f))),d&&a.a.createElement("li",{className:"inline-block"},a.a.createElement(E,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:d.url()},a.a.createElement("span",null,M.d)))),c&&a.a.createElement("div",{className:"border bg-gray-100 rounded px-4 py-2 mt-2"},a.a.createElement("div",{className:"text-sm text-gray-700"},"Correlation ID",a.a.createElement("span",{className:"border text-orange-600 rounded text-xs ml-2 py-0 px-2"},c.location())),c.hasDescription()&&a.a.createElement("div",{className:"mt-2"},a.a.createElement(R,null,c.description()))),t.hasDescription()&&a.a.createElement("div",{className:"mt-2"},a.a.createElement(R,null,t.description())),u&&a.a.createElement("div",{className:"mt-2"},a.a.createElement(Z,{schemaName:"Payload",schema:u})),s&&a.a.createElement("div",{className:"mt-2"},a.a.createElement(Z,{schemaName:"Headers",schema:s})),t.hasBindings()&&a.a.createElement("div",{className:"mt-2"},a.a.createElement(te,{bindings:t.bindings()})),a.a.createElement(K,{item:t}),t.hasTags()&&a.a.createElement("div",{className:"mt-2"},a.a.createElement(I,{tags:t.tags()})))),i&&a.a.createElement("div",{className:"panel-item--right px-8"},a.a.createElement(Te,{message:t})))},Oe=n(11),Fe=function(e){var t=e.type,n=void 0===t?Oe.a.PUBLISH:t,r=e.operation,i=e.channelName,o=e.channel;if(!r)return null;var l=r.id(),u=r.externalDocs(),s=Y.parametersToSchema(o.parameters()),c=r.summary();return a.a.createElement("div",{id:"operation-"+n+"-"+i},a.a.createElement("div",{className:"panel-item--center px-8"},a.a.createElement("div",{className:"mb-4"},a.a.createElement("h3",null,a.a.createElement("span",{className:"font-mono border uppercase p-1 rounded mr-2 "+(n===Oe.a.PUBLISH?"border-blue-600 text-blue-500":"border-green-600 text-green-600"),title:n},n===Oe.a.PUBLISH?"PUB":"SUB")," ",a.a.createElement("span",{className:"font-mono text-base"},i))),o.hasDescription()&&a.a.createElement("div",{className:"mt-2"},a.a.createElement(R,null,o.description())),c&&a.a.createElement("p",{className:"text-gray-600 text-sm mt-2"},c),r.hasDescription()&&a.a.createElement("div",{className:"mt-2"},a.a.createElement(R,null,r.description())),u&&a.a.createElement("ul",{className:"leading-normal mt-2 mb-4 space-x-2 space-y-2"},u&&a.a.createElement("li",{className:"inline-block"},a.a.createElement(E,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:u.url()},a.a.createElement("span",null,M.d)))),l&&a.a.createElement("div",{className:"border bg-gray-100 rounded px-4 py-2 mt-2"},a.a.createElement("div",{className:"text-sm text-gray-700"},"Operation ID",a.a.createElement("span",{className:"border text-orange-600 rounded text-xs ml-2 py-0 px-2"},l))),s&&a.a.createElement("div",{className:"mt-2"},a.a.createElement(Z,{schemaName:"Parameters",schema:s,expanded:!0})),r.hasBindings()&&a.a.createElement("div",{className:"mt-2"},a.a.createElement(te,{name:"Operation Bindings",bindings:r.bindings()})),o.hasBindings()&&a.a.createElement("div",{className:"mt-2"},a.a.createElement(te,{name:"Channel Bindings",bindings:o.bindings()})),a.a.createElement(K,{item:r}),r.hasTags()&&a.a.createElement("div",{className:"mt-2"},a.a.createElement(I,{tags:r.tags()}))),a.a.createElement("div",{className:"w-full mt-4"},r.hasMultipleMessages()?a.a.createElement("div",{className:"mt-2"},a.a.createElement("p",{className:"px-8"},"Accepts ",a.a.createElement("strong",null,"one of")," the following messages:"),a.a.createElement("ul",null,r.messages().map((function(e,t){return a.a.createElement("li",{className:"mt-4",key:t},a.a.createElement(Ne,{message:e,index:t,showExamples:!0}))})))):a.a.createElement("div",{className:"mt-2"},a.a.createElement("p",{className:"px-8"},"Accepts the following message:"),a.a.createElement("div",{className:"mt-2"},a.a.createElement(Ne,{message:r.message(0),showExamples:!0})))))},je=function(){var e=d().channels();if(!Object.keys(e).length)return null;var t=[];return Object.entries(e).forEach((function(e){var n=e[0],r=e[1];r.hasPublish()&&t.push(a.a.createElement("li",{className:"mb-12",key:"pub-"+n},a.a.createElement(Fe,{type:Oe.a.PUBLISH,operation:r.publish(),channelName:n,channel:r}))),r.hasSubscribe()&&t.push(a.a.createElement("li",{className:"mb-12",key:"sub-"+n},a.a.createElement(Fe,{type:Oe.a.SUBSCRIBE,operation:r.subscribe(),channelName:n,channel:r})))})),a.a.createElement("section",{id:"operations",className:"mt-16"},a.a.createElement("h2",{className:"2xl:w-7/12 text-3xl font-light mb-4 px-8"},M.f),a.a.createElement("ul",null,t))},Pe=function(){var e=d().allMessages();return e.size?a.a.createElement("section",{id:"messages",className:"mt-16"},a.a.createElement("h2",{className:"2xl:w-7/12 text-3xl font-light mb-4 px-8"},M.e),a.a.createElement("ul",null,Array.from(e).map((function(e,t){var n=e[0],r=e[1];return a.a.createElement("li",{className:"mb-4",key:n,id:"message-"+r.uid()},a.a.createElement(Ne,{message:r,index:t+1,key:n}))})))):null},Re=function(e){var t=e.error;if(!t)return null;var n,r=t.title,i=t.validationErrors;return a.a.createElement("div",{className:"panel-item"},a.a.createElement("div",{className:"panel-item--center p-8"},a.a.createElement("section",{className:"shadow rounded bg-gray-200 border-red-500 border-l-8"},a.a.createElement("h2",{className:"p-2"},r?M.c+": "+r:M.c),i&&i.length?a.a.createElement("div",{className:"bg-gray-800 text-white text-xs p-2"},a.a.createElement("pre",null,(n=i)?n.map((function(e,t){return e&&e.title&&e.location?a.a.createElement("div",{key:t,className:"flex"},a.a.createElement("span",null,e.location.startLine+"."),a.a.createElement("code",{className:"whitespace-pre-wrap break-all ml-2"},e.title)):null})).filter(Boolean):null)):null)),a.a.createElement("div",{className:"panel-item--right"}))};function Be(e){if(!e)return"";var t=e.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g);return t?t.map((function(e){return e.toLowerCase()})).join("-"):e}var Ie,Me=new(function(){function e(){this.schemaID=M.b}return e.prototype.getSchemaID=function(){return this.schemaID},e.prototype.setSchemaID=function(e){this.schemaID=e?Be(e):this.schemaID},e.prototype.element=function(e){return e?M.b+"__"+e:""},e.prototype.modifier=function(e,t){return e?M.b+(t?"__"+t:"")+"--"+e:""},e.prototype.concatenate=function(e){return e.filter(Boolean).join(" ")},e.prototype.identifier=function(e){var t=this,n=e.map((function(e){if(e)return t.isIdentifier(e)?e.toKebabCase?Be(e.id):e.id:e})).filter(Boolean).join("--");return n.startsWith(this.schemaID)?n:this.schemaID+"--"+n},e.prototype.isIdentifier=function(e){return e.hasOwnProperty("id")},e}()),ze=function(e){var t,n,i,o,u,s,c=e.asyncapi,d=e.config,p=e.error,m=void 0===p?null:p,g=Object(r.useState)(1281),y=g[0],b=g[1],v=l({onResize:function(e){var t=e.width;y!==t&&t&&b(t)}}).ref;return Me.setSchemaID(d.schemaID),a.a.createElement(f.Provider,{value:{asyncapi:c}},a.a.createElement("section",{className:(y<=1280?"container:xl":"container:base")+" relative md:flex bg-white",id:Me.getSchemaID(),ref:v},(null===(t=d.show)||void 0===t?void 0:t.sidebar)&&a.a.createElement(h,{config:d.sidebar}),a.a.createElement("div",{className:"panel--center relative py-8 flex-1"},a.a.createElement("div",{className:"relative z-10"},(null===(n=d.show)||void 0===n?void 0:n.errors)&&m&&a.a.createElement(Re,{error:m}),(null===(i=d.show)||void 0===i?void 0:i.info)&&a.a.createElement(z,null),(null===(o=d.show)||void 0===o?void 0:o.servers)&&a.a.createElement(re,null),(null===(u=d.show)||void 0===u?void 0:u.operations)&&a.a.createElement(je,null),(null===(s=d.show)||void 0===s?void 0:s.messages)&&a.a.createElement(Pe,null)),a.a.createElement("div",{className:"panel--right absolute top-0 right-0 h-full bg-gray-800"}))))},Le=(Ie=function(e,t){return(Ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Ie(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ue=function(){return(Ue=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]/g,">").replace(/"/g,""").replace(/'/g,"'")}function l(e,...t){const n=Object.create(null);for(const t in e)n[t]=e[t];return t.forEach((function(e){for(const t in e)n[t]=e[t]})),n}const u=e=>!!e.kind;class s{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=o(e)}openNode(e){if(!u(e))return;let t=e.kind;e.sublanguage||(t=`${this.classPrefix}${t}`),this.span(t)}closeNode(e){u(e)&&(this.buffer+="
")}value(){return this.buffer}span(e){this.buffer+=``}}class c{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t={kind:e,children:[]};this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every(e=>"string"==typeof e)?e.children=[e.children.join("")]:e.children.forEach(e=>{c._collapse(e)}))}}class f extends c{constructor(e){super(),this.options=e}addKeyword(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())}addText(e){""!==e&&this.add(e)}addSublanguage(e,t){const n=e.root;n.kind=t,n.sublanguage=!0,this.add(n)}toHTML(){return new s(this,this.options).value()}finalize(){return!0}}function d(e){return e?"string"==typeof e?e:e.source:null}const p=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;const h="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",m={begin:"\\\\[\\s\\S]",relevance:0},g={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[m]},y={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[m]},b={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},v=function(e,t,n={}){const r=l({className:"comment",begin:e,end:t,contains:[]},n);return r.contains.push(b),r.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),r},x=v("//","$"),E=v("/\\*","\\*/"),w=v("#","$"),D={className:"number",begin:"\\b\\d+(\\.\\d+)?",relevance:0},k={className:"number",begin:h,relevance:0},A={className:"number",begin:"\\b(0b[01]+)",relevance:0},C={className:"number",begin:"\\b\\d+(\\.\\d+)?(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},_={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[m,{begin:/\[/,end:/\]/,relevance:0,contains:[m]}]}]},T={className:"title",begin:"[a-zA-Z]\\w*",relevance:0},S={className:"title",begin:"[a-zA-Z_]\\w*",relevance:0},N={begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0};var O=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:"[a-zA-Z]\\w*",UNDERSCORE_IDENT_RE:"[a-zA-Z_]\\w*",NUMBER_RE:"\\b\\d+(\\.\\d+)?",C_NUMBER_RE:h,BINARY_NUMBER_RE:"\\b(0b[01]+)",RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=function(...e){return e.map(e=>d(e)).join("")}(t,/.*\b/,e.binary,/\b.*/)),l({className:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},BACKSLASH_ESCAPE:m,APOS_STRING_MODE:g,QUOTE_STRING_MODE:y,PHRASAL_WORDS_MODE:b,COMMENT:v,C_LINE_COMMENT_MODE:x,C_BLOCK_COMMENT_MODE:E,HASH_COMMENT_MODE:w,NUMBER_MODE:D,C_NUMBER_MODE:k,BINARY_NUMBER_MODE:A,CSS_NUMBER_MODE:C,REGEXP_MODE:_,TITLE_MODE:T,UNDERSCORE_TITLE_MODE:S,METHOD_GUARD:N,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})}});function F(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function j(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=F,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function P(e,t){Array.isArray(e.illegal)&&(e.illegal=function(...e){return"("+e.map(e=>d(e)).join("|")+")"}(...e.illegal))}function R(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function B(e,t){void 0===e.relevance&&(e.relevance=1)}const I=["of","and","for","in","not","or","if","then","parent","list","value"];function M(e,t){return t?Number(t):function(e){return I.includes(e.toLowerCase())}(e)?0:1}function z(e,{plugins:t}){function n(t,n){return new RegExp(d(t),"m"+(e.case_insensitive?"i":"")+(n?"g":""))}class r{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=function(e){return new RegExp(e.toString()+"|").exec("").length-1}(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map(e=>e[1]);this.matcherRe=n(function(e,t="|"){let n=0;return e.map(e=>{n+=1;const t=n;let r=d(e),a="";for(;r.length>0;){const e=p.exec(r);if(!e){a+=r;break}a+=r.substring(0,e.index),r=r.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?a+="\\"+String(Number(e[1])+t):(a+=e[0],"("===e[0]&&n++)}return a}).map(e=>`(${e})`).join(t)}(e),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const n=t.findIndex((e,t)=>t>0&&void 0!==e),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}class a{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new r;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=l(e.classNameAliases||{}),function t(r,i){const o=r;if(r.isCompiled)return o;[R].forEach(e=>e(r,i)),e.compilerExtensions.forEach(e=>e(r,i)),r.__beforeBegin=null,[j,P,B].forEach(e=>e(r,i)),r.isCompiled=!0;let u=null;if("object"==typeof r.keywords&&(u=r.keywords.$pattern,delete r.keywords.$pattern),r.keywords&&(r.keywords=function e(t,n,r="keyword"){const a={};return"string"==typeof t?i(r,t.split(" ")):Array.isArray(t)?i(r,t):Object.keys(t).forEach((function(r){Object.assign(a,e(t[r],n,r))})),a;function i(e,t){n&&(t=t.map(e=>e.toLowerCase())),t.forEach((function(t){const n=t.split("|");a[n[0]]=[e,M(n[0],n[1])]}))}}(r.keywords,e.case_insensitive)),r.lexemes&&u)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return u=u||r.lexemes||/\w+/,o.keywordPatternRe=n(u,!0),i&&(r.begin||(r.begin=/\B|\b/),o.beginRe=n(r.begin),r.endSameAsBegin&&(r.end=r.begin),r.end||r.endsWithParent||(r.end=/\B|\b/),r.end&&(o.endRe=n(r.end)),o.terminatorEnd=d(r.end)||"",r.endsWithParent&&i.terminatorEnd&&(o.terminatorEnd+=(r.end?"|":"")+i.terminatorEnd)),r.illegal&&(o.illegalRe=n(r.illegal)),r.contains||(r.contains=[]),r.contains=[].concat(...r.contains.map((function(e){return function(e){e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((function(t){return l(e,{variants:null},t)})));if(e.cachedVariants)return e.cachedVariants;if(function e(t){return!!t&&(t.endsWithParent||e(t.starts))}(e))return l(e,{starts:e.starts?l(e.starts):null});if(Object.isFrozen(e))return l(e);return e}("self"===e?r:e)}))),r.contains.forEach((function(e){t(e,o)})),r.starts&&t(r.starts,i),o.matcher=function(e){const t=new a;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:"begin"})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}(o),o}(e)}function L(e){const t={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!e.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,o(this.code);let t={};return this.autoDetect?(t=e.highlightAuto(this.code),this.detectedLanguage=t.language):(t=e.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),t.value},autoDetect(){return!this.language||(e=this.autodetect,Boolean(e||""===e));var e},ignoreIllegals:()=>!0},render(e){return e("pre",{},[e("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:t,VuePlugin:{install(e){e.component("highlightjs",t)}}}}const U={"after:highlightElement":({el:e,result:t,text:n})=>{const r=H(e);if(!r.length)return;const a=document.createElement("div");a.innerHTML=t.value,t.value=function(e,t,n){let r=0,a="";const i=[];function l(){return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset"}function s(e){a+=""}function c(e){("start"===e.event?u:s)(e.node)}for(;e.length||t.length;){let t=l();if(a+=o(n.substring(r,t[0].offset)),r=t[0].offset,t===e){i.reverse().forEach(s);do{c(t.splice(0,1)[0]),t=l()}while(t===e&&t.length&&t[0].offset===r);i.reverse().forEach(u)}else"start"===t[0].event?i.push(t[0].node):i.pop(),c(t.splice(0,1)[0])}return a+o(n.substr(r))}(r,H(a),n)}};function $(e){return e.nodeName.toLowerCase()}function H(e){const t=[];return function e(n,r){for(let a=n.firstChild;a;a=a.nextSibling)3===a.nodeType?r+=a.nodeValue.length:1===a.nodeType&&(t.push({event:"start",offset:r,node:a}),r=e(a,r),$(a).match(/br|hr|img|input/)||t.push({event:"stop",offset:r,node:a}));return r}(e,0),t}const V={},q=e=>{console.error(e)},W=(e,...t)=>{console.log("WARN: "+e,...t)},Y=(e,t)=>{V[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),V[`${e}/${t}`]=!0)},K=o,Q=l,Z=Symbol("nomatch");var G=function(e){const t=Object.create(null),n=Object.create(null),a=[];let o=!0;const l=/(^(<[^>]+>|\t|)+|\n)/gm,u="Could not find the language '{}', did you forget to load/include a language module?",s={disableAutodetect:!0,name:"Plain text",contains:[]};let c={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:f};function d(e){return c.noHighlightRe.test(e)}function p(e,t,n,r){let a="",i="";"object"==typeof t?(a=e,n=t.ignoreIllegals,i=t.language,r=void 0):(Y("10.7.0","highlight(lang, code, ...args) has been deprecated."),Y("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),i=e,a=t);const o={code:a,language:i};C("before:highlight",o);const l=o.result?o.result:h(o.language,o.code,n,r);return l.code=o.code,C("after:highlight",l),l}function h(e,n,r,l){function s(e,t){const n=x.case_insensitive?t[0].toLowerCase():t[0];return Object.prototype.hasOwnProperty.call(e.keywords,n)&&e.keywords[n]}function f(){null!=k.subLanguage?function(){if(""===_)return;let e=null;if("string"==typeof k.subLanguage){if(!t[k.subLanguage])return void C.addText(_);e=h(k.subLanguage,_,!0,A[k.subLanguage]),A[k.subLanguage]=e.top}else e=m(_,k.subLanguage.length?k.subLanguage:null);k.relevance>0&&(T+=e.relevance),C.addSublanguage(e.emitter,e.language)}():function(){if(!k.keywords)return void C.addText(_);let e=0;k.keywordPatternRe.lastIndex=0;let t=k.keywordPatternRe.exec(_),n="";for(;t;){n+=_.substring(e,t.index);const r=s(k,t);if(r){const[e,a]=r;if(C.addText(n),n="",T+=a,e.startsWith("_"))n+=t[0];else{const n=x.classNameAliases[e]||e;C.addKeyword(t[0],n)}}else n+=t[0];e=k.keywordPatternRe.lastIndex,t=k.keywordPatternRe.exec(_)}n+=_.substr(e),C.addText(n)}(),_=""}function d(e){return e.className&&C.openNode(x.classNameAliases[e.className]||e.className),k=Object.create(e,{parent:{value:k}}),k}function p(e){return 0===k.matcher.regexIndex?(_+=e[0],1):(O=!0,0)}function g(e){const t=e[0],n=e.rule,r=new i(n),a=[n.__beforeBegin,n["on:begin"]];for(const n of a)if(n&&(n(e,r),r.isMatchIgnored))return p(t);return n&&n.endSameAsBegin&&(n.endRe=new RegExp(t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")),n.skip?_+=t:(n.excludeBegin&&(_+=t),f(),n.returnBegin||n.excludeBegin||(_=t)),d(n),n.returnBegin?0:t.length}function y(e){const t=e[0],r=n.substr(e.index),a=function e(t,n,r){let a=function(e,t){const n=e&&e.exec(t);return n&&0===n.index}(t.endRe,r);if(a){if(t["on:end"]){const e=new i(t);t["on:end"](n,e),e.isMatchIgnored&&(a=!1)}if(a){for(;t.endsParent&&t.parent;)t=t.parent;return t}}if(t.endsWithParent)return e(t.parent,n,r)}(k,e,r);if(!a)return Z;const o=k;o.skip?_+=t:(o.returnEnd||o.excludeEnd||(_+=t),f(),o.excludeEnd&&(_=t));do{k.className&&C.closeNode(),k.skip||k.subLanguage||(T+=k.relevance),k=k.parent}while(k!==a.parent);return a.starts&&(a.endSameAsBegin&&(a.starts.endRe=a.endRe),d(a.starts)),o.returnEnd?0:t.length}let b={};function v(t,a){const i=a&&a[0];if(_+=t,null==i)return f(),0;if("begin"===b.type&&"end"===a.type&&b.index===a.index&&""===i){if(_+=n.slice(a.index,a.index+1),!o){const t=new Error("0 width match regex");throw t.languageName=e,t.badRule=b.rule,t}return 1}if(b=a,"begin"===a.type)return g(a);if("illegal"===a.type&&!r){const e=new Error('Illegal lexeme "'+i+'" for mode "'+(k.className||"")+'"');throw e.mode=k,e}if("end"===a.type){const e=y(a);if(e!==Z)return e}if("illegal"===a.type&&""===i)return 1;if(N>1e5&&N>3*a.index){throw new Error("potential infinite loop, way more iterations than matches")}return _+=i,i.length}const x=D(e);if(!x)throw q(u.replace("{}",e)),new Error('Unknown language: "'+e+'"');const E=z(x,{plugins:a});let w="",k=l||E;const A={},C=new c.__emitter(c);!function(){const e=[];for(let t=k;t!==x;t=t.parent)t.className&&e.unshift(t.className);e.forEach(e=>C.openNode(e))}();let _="",T=0,S=0,N=0,O=!1;try{for(k.matcher.considerAll();;){N++,O?O=!1:k.matcher.considerAll(),k.matcher.lastIndex=S;const e=k.matcher.exec(n);if(!e)break;const t=v(n.substring(S,e.index),e);S=e.index+t}return v(n.substr(S)),C.closeAllNodes(),C.finalize(),w=C.toHTML(),{relevance:Math.floor(T),value:w,language:e,illegal:!1,emitter:C,top:k}}catch(t){if(t.message&&t.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:t.message,context:n.slice(S-100,S+100),mode:t.mode},sofar:w,relevance:0,value:K(n),emitter:C};if(o)return{illegal:!1,relevance:0,value:K(n),emitter:C,language:e,top:k,errorRaised:t};throw t}}function m(e,n){n=n||c.languages||Object.keys(t);const r=function(e){const t={relevance:0,emitter:new c.__emitter(c),value:K(e),illegal:!1,top:s};return t.emitter.addText(e),t}(e),a=n.filter(D).filter(A).map(t=>h(t,e,!1));a.unshift(r);const i=a.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(D(e.language).supersetOf===t.language)return 1;if(D(t.language).supersetOf===e.language)return-1}return 0}),[o,l]=i,u=o;return u.second_best=l,u}const g={"before:highlightElement":({el:e})=>{c.useBR&&(e.innerHTML=e.innerHTML.replace(/\n/g,"").replace(//g,"\n"))},"after:highlightElement":({result:e})=>{c.useBR&&(e.value=e.value.replace(/\n/g,"
"))}},y=/^(<[^>]+>|\t)+/gm,b={"after:highlightElement":({result:e})=>{c.tabReplace&&(e.value=e.value.replace(y,e=>e.replace(/\t/g,c.tabReplace)))}};function v(e){let t=null;const r=function(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const n=c.languageDetectRe.exec(t);if(n){const t=D(n[1]);return t||(W(u.replace("{}",n[1])),W("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}return t.split(/\s+/).find(e=>d(e)||D(e))}(e);if(d(r))return;C("before:highlightElement",{el:e,language:r}),t=e;const a=t.textContent,i=r?p(a,{language:r,ignoreIllegals:!0}):m(a);C("after:highlightElement",{el:e,result:i,text:a}),e.innerHTML=i.value,function(e,t,r){const a=t?n[t]:r;e.classList.add("hljs"),a&&e.classList.add(a)}(e,r,i.language),e.result={language:i.language,re:i.relevance,relavance:i.relevance},i.second_best&&(e.second_best={language:i.second_best.language,re:i.second_best.relevance,relavance:i.second_best.relevance})}const x=()=>{if(x.called)return;x.called=!0,Y("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead.");document.querySelectorAll("pre code").forEach(v)};let E=!1;function w(){if("loading"===document.readyState)return void(E=!0);document.querySelectorAll("pre code").forEach(v)}function D(e){return e=(e||"").toLowerCase(),t[e]||t[n[e]]}function k(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach(e=>{n[e.toLowerCase()]=t})}function A(e){const t=D(e);return t&&!t.disableAutodetect}function C(e,t){const n=e;a.forEach((function(e){e[n]&&e[n](t)}))}"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(function(){E&&w()}),!1),Object.assign(e,{highlight:p,highlightAuto:m,highlightAll:w,fixMarkup:function(e){return Y("10.2.0","fixMarkup will be removed entirely in v11.0"),Y("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),t=e,c.tabReplace||c.useBR?t.replace(l,e=>"\n"===e?c.useBR?"
":e:c.tabReplace?e.replace(/\t/g,c.tabReplace):e):t;var t},highlightElement:v,highlightBlock:function(e){return Y("10.7.0","highlightBlock will be removed entirely in v12.0"),Y("10.7.0","Please use highlightElement now."),v(e)},configure:function(e){e.useBR&&(Y("10.3.0","'useBR' will be removed entirely in v11.0"),Y("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),c=Q(c,e)},initHighlighting:x,initHighlightingOnLoad:function(){Y("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),E=!0},registerLanguage:function(n,r){let a=null;try{a=r(e)}catch(e){if(q("Language definition for '{}' could not be registered.".replace("{}",n)),!o)throw e;q(e),a=s}a.name||(a.name=n),t[n]=a,a.rawDefinition=r.bind(null,e),a.aliases&&k(a.aliases,{languageName:n})},unregisterLanguage:function(e){delete t[e];for(const t of Object.keys(n))n[t]===e&&delete n[t]},listLanguages:function(){return Object.keys(t)},getLanguage:D,registerAliases:k,requireLanguage:function(e){Y("10.4.0","requireLanguage will be removed entirely in v11."),Y("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const t=D(e);if(t)return t;throw new Error("The '{}' language is required, but not loaded.".replace("{}",e))},autoDetection:A,inherit:Q,addPlugin:function(e){!function(e){e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{e["before:highlightBlock"](Object.assign({block:t.el},t))}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{e["after:highlightBlock"](Object.assign({block:t.el},t))})}(e),a.push(e)},vuePlugin:L(e).VuePlugin}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString="10.7.2";for(const e in O)"object"==typeof O[e]&&r(O[e]);return Object.assign(e,O),e.addPlugin(g),e.addPlugin(U),e.addPlugin(b),e}({});e.exports=G},17:function(e,t,n){const{getMapValueOfType:r}=n(2),a=n(76),i={hasExternalDocs(){return!(!this._json.externalDocs||!Object.keys(this._json.externalDocs).length)},externalDocs(){return r(this._json,"externalDocs",a)}};e.exports=i},2:function(e,t){const n=e.exports,r=(e,t,n)=>{if("string"!=typeof t||!e)return null;const r=e[String(t)];return void 0===r?null:n?new n(r):r};n.createMapOfType=(e,t)=>{const n={};return e?(Object.entries(e).forEach(([e,r])=>{n[String(e)]=new t(r)}),n):n},n.getMapValueOfType=(e,t,n)=>r(e,t,n),n.getMapValueByKey=(e,t)=>r(e,t),n.mix=(e,...t)=>{let n=!1;if(t.some((function(t){return e===t||(n=Object.keys(t).some(t=>e.prototype.hasOwnProperty(t)),n)})))throw n?new Error(`invalid mix function: model ${e.name} has at least one method that it is trying to replace by mixin`):new Error(`invalid mix function: cannot use the model ${e.name} as a mixin`);return t.forEach(t=>Object.assign(e.prototype,t)),e}},21:function(e,t,n){const{getMapValueByKey:r}=n(2),a={hasBindings(){return!(!this._json.bindings||!Object.keys(this._json.bindings).length)},bindings(){return this.hasBindings()?this._json.bindings:{}},bindingProtocols(){return Object.keys(this.bindings())},hasBinding(e){return this.hasBindings()&&!!this._json.bindings[String(e)]},binding(e){return r(this._json.bindings,e)}};e.exports=a},22:function(e,t){const n=(e,t)=>(t.type=e.type.startsWith("https://github.com/asyncapi/parser-js/")?e.type:"https://github.com/asyncapi/parser-js/"+e.type,t.title=e.title,e.detail&&(t.detail=e.detail),e.validationErrors&&(t.validationErrors=e.validationErrors),e.parsedJSON&&(t.parsedJSON=e.parsedJSON),e.location&&(t.location=e.location),e.refs&&(t.refs=e.refs),t);class r extends Error{constructor(e){super(),n(e,this),this.message=e.title}toJS(){return n(this,{})}}e.exports=r},23:function(e,t,n){const r=n(78),a={hasTags(){return!(!Array.isArray(this._json.tags)||!this._json.tags.length)},tags(){return this.hasTags()?this._json.tags.map(e=>new r(e)):[]},tagNames(){return this.hasTags()?this._json.tags.map(e=>e.name):[]},hasTag(e){return this.hasTags()&&this._json.tags.some(t=>t.name===e)},tag(e){const t=this.hasTags()&&this._json.tags.find(t=>t.name===e);return t?new r(t):null}};e.exports=a},26:function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return u}));var r=n(0),a=n.n(r),i=n(27);function o(e){return"undefined"!=typeof document?document.querySelector(e):null}function l(e){return function(t,n,r){null!==(n=n||o("asyncapi"))&&Object(i.render)(a.a.createElement(e,t),n,r)}}function u(e){return function(t,n,r){null!==(n=n||o("asyncapi"))&&Object(i.hydrate)(a.a.createElement(e,t),n,r)}}},27:function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(66)},270:function(e,t,n){"use strict";n.r(t);var r=n(34),a=n(26),i=n(14),o=n.n(i);t.default={render:Object(a.b)(r.a),hydrate:Object(a.a)(r.a),hljs:o.a}},3:function(e,t,n){const r=n(22);e.exports=class{constructor(e){if(null==e)throw new r(`Invalid JSON to instantiate the ${this.constructor.name} object.`);this._json=e}json(e){return void 0===e?this._json:this._json?this._json[String(e)]:void 0}}},33:function(e,t,n){const{createMapOfType:r,getMapValueOfType:a,mix:i}=n(2),o=n(3),l=n(69),u=n(72),s=n(75),c=n(82),f=n(17),d=n(23),p=n(4),{xParserSpecParsed:h,xParserCircle:m,xParserCircleProps:g}=n(42),{assignNameToAnonymousMessages:y,assignNameToComponentMessages:b,assignUidToComponentSchemas:v,assignUidToParameterSchemas:x,assignIdToAnonymousSchemas:E,assignUidToComponentParameterSchemas:w}=n(87),{traverseAsyncApiDocument:D,SchemaIteratorCallbackType:k}=n(43);e.exports=i(class extends o{constructor(...e){super(...e),!0!==this.ext(h)&&(b(this),y(this),function(e){const t=[],n=[];D(e,(e,r,a)=>{switch(a){case k.END_SCHEMA:n.pop(),t.pop();break;case k.NEW_SCHEMA:const a=e.json();if(t.includes(a)){return((e,t)=>{if("array"===e.type())return e.json()[String(m)]=!0;const n=e.json()[String(g)]||[];void 0!==t&&n.push(t),e.json()[String(g)]=n})(n.length>0?n[n.length-1]:e,r),!1}return t.push(a),n.push(e),!0}})}(this),v(this),w(this),x(this),E(this),this.json()[String(h)]=!0)}version(){return this._json.asyncapi}info(){return new l(this._json.info)}id(){return this._json.id}hasServers(){return!!this._json.servers}servers(){return r(this._json.servers,u)}serverNames(){return this._json.servers?Object.keys(this._json.servers):[]}server(e){return a(this._json.servers,e,u)}hasDefaultContentType(){return!!this._json.defaultContentType}defaultContentType(){return this._json.defaultContentType||null}hasChannels(){return!!this._json.channels}channels(){return r(this._json.channels,s,this)}channelNames(){return this._json.channels?Object.keys(this._json.channels):[]}channel(e){return a(this._json.channels,e,s,this)}hasComponents(){return!!this._json.components}components(){return this._json.components?new c(this._json.components):null}hasMessages(){return!!this.allMessages().size}allMessages(){const e=new Map;return this.hasChannels()&&this.channelNames().forEach(t=>{const n=this.channel(t);n.hasPublish()&&n.publish().messages().forEach(t=>{e.set(t.uid(),t)}),n.hasSubscribe()&&n.subscribe().messages().forEach(t=>{e.set(t.uid(),t)})}),this.hasComponents()&&Object.values(this.components().messages()).forEach(t=>{e.set(t.uid(),t)}),e}allSchemas(){const e=new Map;return D(this,t=>{t.uid()&&e.set(t.uid(),t)}),e}hasCircular(){return!!this._json[String(m)]}traverseSchemas(e,t){D(this,e,t)}},d,f,p)},34:function(e,t,n){"use strict";var r=n(0),a=n.n(r),i=n(127),o={schemaID:"",show:{sidebar:!1,info:!0,servers:!0,operations:!0,messages:!0,errors:!0},sidebar:{showOperations:"byOperationsTags"}};var l=function(e){void 0===e&&(e={});var t=e.onResize,n=Object(r.useRef)(void 0);n.current=t;var a=Object(r.useRef)(),i=Object(r.useState)({width:void 0,height:void 0}),o=i[0],l=i[1],u=Object(r.useRef)(!1);Object(r.useEffect)((function(){return function(){u.current=!0}}),[]);var s=Object(r.useRef)({width:void 0,height:void 0}),c=function(e,t){var n,a=null,i=Object(r.useRef)(null),o=Object(r.useRef)(null),l=Object(r.useCallback)((function(e){o.current=e,c()}),[]),u=Object(r.useRef)(null),s=Object(r.useRef)(),c=function(){var n=null;o.current?n=o.current:i.current?n=i.current:t instanceof HTMLElement&&(n=t),u.current!==n&&(s.current&&(s.current(),s.current=null),u.current=n,n&&(s.current=e(n)))};return!t||t instanceof HTMLElement||(a=t),Object(r.useEffect)((function(){a&&(i.current=a.current),c()}),[a,null==(n=a)?void 0:n.current,t]),l}((function(e){return a.current||(a.current=new ResizeObserver((function(e){if(Array.isArray(e)&&e.length){var t=e[0],r=Math.round(t.contentRect.width),a=Math.round(t.contentRect.height);if(s.current.width!==r||s.current.height!==a){var i={width:r,height:a};n.current?n.current(i):(s.current.width=r,s.current.height=a,u.current||l(i))}}}))),a.current.observe(e),function(){a.current&&a.current.unobserve(e)}}),e.ref);return Object(r.useMemo)((function(){return{ref:c,width:o.width,height:o.height}}),[c,o?o.width:null,o?o.height:null])},u=function(){return(u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&a.a.createElement("li",{className:"mb-3 mt-9"},a.a.createElement("a",{className:"text-xs uppercase text-gray-700 mt-10 mb-4 font-thin hover:text-gray-900",href:"#messages",onClick:function(){return o(!1)}},"Messages"),a.a.createElement("ul",{className:"text-sm mt-2"},Array.from(f.keys()).map((function(e){return a.a.createElement("li",{key:e},a.a.createElement("a",{className:"flex break-words no-underline text-gray-700 mt-2 hover:text-gray-900",href:"#message-"+e,onClick:function(){return o(!1)}},a.a.createElement("div",{className:"break-all inline-block"},e)))}))))))))))},m=function(){var e=d().channels(),t=[];return Object.entries(e).forEach((function(e){var n=e[0],r=e[1];r.hasPublish()&&t.push(a.a.createElement(v,{channelName:n,key:"pub-"+n})),r.hasSubscribe()&&t.push(a.a.createElement(x,{channelName:n,key:"sub-"+n}))})),a.a.createElement("ul",{className:"text-sm mt-2"},t)},g=function(){var e=d(),t=e.channels(),n=e.tags(),r=function(e){var n=[];return Object.entries(t).forEach((function(t){var r=t[0],o=t[1];o.hasPublish()&&i.a.containTags(o.publish(),e)&&n.push(a.a.createElement(v,{channelName:r,key:"pub-"+r})),o.hasSubscribe()&&i.a.containTags(o.subscribe(),e)&&n.push(a.a.createElement(x,{channelName:r,key:"sub-"+r}))})),n},o=[];return Object.entries(t).forEach((function(e){var t=e[0],r=e[1];!r.hasPublish()||r.publish().hasTags()&&i.a.containTags(r.publish(),n)||o.push(a.a.createElement(v,{channelName:t,key:"pub-"+t})),!r.hasSubscribe()||r.subscribe().hasTags()&&i.a.containTags(r.subscribe(),n)||o.push(a.a.createElement(x,{channelName:t,key:"sub-"+t}))})),a.a.createElement("div",null,a.a.createElement("ul",null,n&&n.map((function(e){return r(e).length>0&&a.a.createElement("li",{key:e.name()},a.a.createElement(b,{tagName:e.name()},r(e)))})),o.length>0&&a.a.createElement("li",null,a.a.createElement(b,{tagName:"Untagged"},o))))},y=function(){var e=d(),t=e.channels(),n=i.a.operationsTags(e),r=function(e){var n=[];return Object.entries(t).forEach((function(t){var r=t[0],o=t[1];o.hasPublish()&&i.a.containTags(o.publish(),e)&&n.push(a.a.createElement(v,{channelName:r,key:"pub-"+r})),o.hasSubscribe()&&i.a.containTags(o.subscribe(),e)&&n.push(a.a.createElement(x,{channelName:r,key:"sub-"+r}))})),n},o=[];return Object.entries(t).forEach((function(e){var t=e[0],r=e[1];!r.hasPublish()||r.publish().hasTags()&&i.a.containTags(r.publish(),n)||o.push(a.a.createElement(v,{channelName:t,key:"pub-"+t})),!r.hasSubscribe()||r.subscribe().hasTags()&&i.a.containTags(r.subscribe(),n)||o.push(a.a.createElement(x,{channelName:t,key:"sub-"+t}))})),a.a.createElement("div",null,a.a.createElement("ul",null,n&&n.map((function(e){return r(e).length>0&&a.a.createElement("li",{key:e.name()},a.a.createElement(b,{tagName:e.name()},r(e)))})),o.length>0&&a.a.createElement("li",null,a.a.createElement(b,{tagName:"Untagged"},o))))},b=function(e){var t=e.tagName,n=e.children,i=Object(r.useState)(!1),o=i[0],l=i[1];return a.a.createElement("div",null,a.a.createElement(c,{onClick:function(){return l((function(e){return!e}))},chevronProps:{className:o?"-rotate-180":"-rotate-90"}},a.a.createElement("span",{className:"text-sm inline-block mt-1 font-extralight"},t)),a.a.createElement("ul",{className:(o?"block":"hidden")+" text-sm mt-2 font-light"},n))},v=function(e){var t=e.channelName,n=Object(r.useContext)(p).setShowSidebar;return a.a.createElement("li",null,a.a.createElement("a",{className:"flex no-underline text-gray-700 mb-2 hover:text-gray-900",href:"#operation-publish-"+t,onClick:function(){return n(!1)}},a.a.createElement("span",{className:"bg-blue-600 font-bold h-6 no-underline text-white uppercase p-1 mr-2 rounded text-xs",title:"Publish"},"Pub"),a.a.createElement("span",{className:"break-all inline-block"},t)))},x=function(e){var t=e.channelName,n=Object(r.useContext)(p).setShowSidebar;return a.a.createElement("li",null,a.a.createElement("a",{className:"flex no-underline text-gray-700 mb-2 hover:text-gray-900",href:"#operation-subscribe-"+t,onClick:function(){return n(!1)}},a.a.createElement("span",{className:"bg-green-600 font-bold h-6 no-underline text-white uppercase p-1 mr-2 rounded text-xs",title:"Subscribe"},"SUB"),a.a.createElement("span",{className:"break-all inline-block"},t)))},E=function(e){var t=e.href,n=e.title,r=e.className,i=e.children;return a.a.createElement("a",{href:t,title:n,className:r,target:"_blank",rel:"nofollow noopener noreferrer"},i)},w=n(51),D=n(52),k=n.n(D),A=n(14),C=n.n(A),_=n(53),T=n.n(_),S=n(54),N=n.n(S),O=n(55),F=n.n(O);C.a.registerLanguage("json",T.a),C.a.registerLanguage("yaml",N.a),C.a.registerLanguage("bash",F.a);var j={langPrefix:"hljs language-",highlight:function(e,t){if(!C.a.getLanguage(t))return e;try{return C.a.highlight(e,{language:t}).value}catch(t){return e}}};var P,R=function(e){var t,n=e.children;return n?"string"!=typeof n?a.a.createElement(a.a.Fragment,null,n):a.a.createElement("div",{className:"prose max-w-full text-sm",dangerouslySetInnerHTML:{__html:Object(w.sanitize)((t=n,k()(t,j)))}}):null},B=function(e){var t=e.tag,n="#"+t.name(),r=t.description()||"",i=t.externalDocs(),o=a.a.createElement("div",{title:r,className:"border border-solid border-blue-300 hover:bg-blue-300 hover:text-blue-600 text-blue-500 font-bold no-underline text-xs rounded px-3 py-1"},a.a.createElement("span",{className:i?"underline":""},n));return i?a.a.createElement(E,{href:i.url(),title:r},o):o},I=function(e){var t=e.tags;return t&&t.length?a.a.createElement("ul",{className:"flex flex-wrap leading-normal"},t.map((function(e){return a.a.createElement("li",{className:"inline-block mt-2 mr-2",key:e.name()},a.a.createElement(B,{tag:e}))}))):null},M=n(1),z=function(){var e=d(),t=e.info();if(!t)return null;var n=e.id(),r=e.externalDocs(),i=t.license(),o=t.termsOfService(),l=e.defaultContentType(),u=t.contact(),s=i||o||l||u||r;return a.a.createElement("div",{className:"panel-item"},a.a.createElement("div",{className:"panel-item--center px-8 text-left",id:"introduction"},a.a.createElement("div",{className:"text-4xl"},t.title()," ",t.version()),s&&a.a.createElement("ul",{className:"flex flex-wrap mt-2 leading-normal"},i&&a.a.createElement("li",{className:"inline-block mt-2 mr-2"},i.url()?a.a.createElement(E,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:i.url()},a.a.createElement("span",null,i.name())):a.a.createElement("span",{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1"},i.name())),o&&a.a.createElement("li",{className:"inline-block mt-2 mr-2"},a.a.createElement(E,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:o},a.a.createElement("span",null,M.h))),l&&a.a.createElement("li",{className:"inline-block mt-2 mr-2"},a.a.createElement(E,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:M.a+"/"+l},a.a.createElement("span",null,l))),r&&a.a.createElement("li",{className:"inline-block mt-2 mr-2"},a.a.createElement(E,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:r.url()},a.a.createElement("span",null,M.d))),u&&a.a.createElement(a.a.Fragment,null,u.url()&&a.a.createElement("li",{className:"inline-block mt-2 mr-2"},a.a.createElement(E,{className:"border border-solid border-purple-300 hover:bg-purple-300 hover:text-purple-600 text-purple-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:u.url()},a.a.createElement("span",null,u.name()||M.i))),u.email()&&a.a.createElement("li",{className:"inline-block mt-2 mr-2"},a.a.createElement(E,{className:"border border-solid border-purple-300 hover:bg-purple-300 hover:text-purple-600 text-purple-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:"mailto:"+u.email()},a.a.createElement("span",null,u.email())))),n&&a.a.createElement("li",{className:"inline-block mt-2 mr-2"},a.a.createElement("span",{className:"border border-solid border-blue-300 hover:bg-blue-300 hover:text-blue-600 text-blue-500 font-bold no-underline text-xs uppercase rounded px-3 py-1"},"ID: ",n))),t.hasDescription()&&a.a.createElement("div",{className:"mt-4"},a.a.createElement(R,null,t.description())),e.hasTags()&&a.a.createElement("div",{className:"mt-4"},a.a.createElement(I,{tags:e.tags()}))),a.a.createElement("div",{className:"panel-item--right"}))},L=function(){function e(){}return e.securityType=function(e){switch(e){case"apiKey":return"API key";case"oauth2":return"OAuth2";case"openIdConnect":return"Open ID";case"http":return"HTTP";case"userPassword":return"User/Password";case"X509":return"X509:";case"symmetricEncryption":return"Symmetric Encription";case"asymmetricEncryption":return"Asymmetric Encription";case"httpApiKey":return"HTTP API key";case"scramSha256":return"ScramSha256";case"scramSha512":return"ScramSha512";case"gssapi":return"GSSAPI";default:return"API key"}},e.flowName=function(e){switch(e){case"implicit":return"Implicit";case"password":return"Password";case"clientCredentials":return"Client credentials";case"authorizationCode":return"Authorization Code";default:return"Implicit"}},e}(),U=function(e){var t=e.serverRequirements,n=void 0===t?[]:t,r=d(),i=r.hasComponents()&&r.components().securitySchemes();if(!n.length||!i||!Object.keys(i).length)return null;var o=n.map((function(e){var t=i[Object.keys(e.json())[0]];return t?a.a.createElement($,{securitySchema:t,key:t.type()}):null})).filter(Boolean);return o.length?a.a.createElement("div",{className:"text-sm mt-4"},a.a.createElement("h5",{className:"text-gray-700 text-base"},"Security:"),a.a.createElement("ul",null,o.map((function(e,t){return a.a.createElement("li",{className:"mt-2",key:t},e)})))):null},$=function(e){var t=e.securitySchema,n=[];t.name()&&n.push(a.a.createElement("span",null,"Name: ",t.name())),t.in()&&n.push(a.a.createElement("span",null,"In: ",t.in())),t.scheme()&&n.push(a.a.createElement("span",null,"Scheme: ",t.scheme())),t.bearerFormat()&&n.push(a.a.createElement("span",null,"Bearer format: ",t.bearerFormat())),t.openIdConnectUrl()&&n.push(a.a.createElement(E,{href:t.openIdConnectUrl(),className:"underline"},"Connect URL"));var r=t.flows(),i=r&&Object.entries(r).map((function(e){var t=e[0],n=e[1],r=n.authorizationUrl(),i=n.tokenUrl(),o=n.refreshUrl(),l=n.scopes();return a.a.createElement("div",{className:"px-4 py-2 ml-2 mb-2 border border-gray-400 bg-gray-100 rounded",key:t},a.a.createElement("div",null,a.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},"Flow:"),a.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},L.flowName(t))),r&&a.a.createElement("div",{className:"mt-1"},a.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},"Auth URL:"),a.a.createElement(E,{href:r,className:"underline"},r)),i&&a.a.createElement("div",{className:"mt-1"},a.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},"Token URL:"),a.a.createElement(E,{href:i,className:"underline"},i)),o&&a.a.createElement("div",{className:"mt-1"},a.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},"Refresh URL:"),a.a.createElement(E,{href:o,className:"underline"},o)),l&&a.a.createElement("div",{className:"mt-1"},a.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},"Scopes:"),a.a.createElement("ul",{className:"inline-block"},l&&Object.entries(l).map((function(e){var t=e[0],n=e[1];return a.a.createElement("li",{className:"inline-block font-bold no-underline bg-indigo-400 text-white text-xs rounded py-0 px-1 ml-1",title:n,key:t},t)})))))}));return a.a.createElement("div",{className:"ai-security__security__security-schema"},a.a.createElement("div",null,a.a.createElement("span",null,L.securityType(t.type()),n.length>0&&a.a.createElement("ul",{className:"inline-block ml-2"},n.map((function(e,t){return a.a.createElement("li",{className:"inline-block font-bold no-underline bg-blue-400 text-white text-xs uppercase rounded px-2 py-0 ml-1",key:t},e)}))))),t.hasDescription()&&a.a.createElement("div",null,a.a.createElement(R,null,t.description())),i&&i.length>0&&a.a.createElement("ul",{className:"my-2"},a.a.createElement("li",null,i)))},H=n(7),V=n.n(H);!function(e){e.ANY="any",e.RESTRICTED_ANY="restricted any",e.NEVER="never",e.UNKNOWN="unknown"}(P||(P={}));var q=["string","number","integer","boolean","array","object","null"],W=Object.keys({maxLength:"string",minLength:"string",pattern:"string",contentMediaType:"string",contentEncoding:"string",multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",contains:"array",additionalItems:"array",maxProperties:"object",minProperties:"object",required:"object",properties:"object",patternProperties:"object",propertyNames:"object",dependencies:"object",additionalProperties:"object"}),Y=function(){function e(){}return e.toSchemaType=function(e){var t=this;if(!e||"function"!=typeof e.json)return P.UNKNOWN;if(e.isBooleanSchema())return!0===e.json()?P.ANY:P.NEVER;if(0===Object.keys(e.json()).length)return P.ANY;var n=e.not();if(n&&this.inferType(n)===P.ANY)return P.NEVER;var r=this.inferType(e);if(Array.isArray(r))return r.map((function(n){return t.toType(n,e)})).join(" | ");r=this.toType(r,e);var a=this.toCombinedType(e);return r&&a?r+" "+a:a||r},e.prettifyValue=function(e){var t=typeof e;return"string"===t?'"'+e+'"':"number"===t||"bigint"===t||"boolean"===t?e:Array.isArray(e)?"["+e.toString()+"]":JSON.stringify(e)},e.humanizeConstraints=function(e){var t=[],n=this.humanizeNumberRangeConstraint(e.minimum(),e.exclusiveMinimum(),e.maximum(),e.exclusiveMaximum());void 0!==n&&t.push(n);var r=this.humanizeMultipleOfConstraint(e.multipleOf());void 0!==r&&t.push(r);var a=this.humanizeRangeConstraint("characters",e.minLength(),e.maxLength());void 0!==a&&t.push(a);var i=e.uniqueItems(),o=this.humanizeRangeConstraint(i?"unique items":"items",e.minItems(),e.maxItems());void 0!==o&&t.push(o);var l=this.humanizeRangeConstraint("properties",e.minProperties(),e.maxProperties());return void 0!==l&&t.push(l),t},e.isExpandable=function(e){var t=this.inferType(e);if((t=Array.isArray(t)?t:[t]).includes("object")||t.includes("array"))return!0;if(e.oneOf()||e.anyOf()||e.allOf()||Object.keys(e.properties()).length||e.items()||e.not()||e.if()||e.then()||e.else())return!0;var n=this.getCustomExtensions(e);return!(!n||!Object.keys(n).length)},e.serverVariablesToSchema=function(e){var t;if(e&&Object.keys(e).length){var n=((t={type:"object",properties:Object.entries(e).reduce((function(e,t){var n=t[0],r=t[1];return e[n]=Object.assign({},r.json()),e[n].type="string",e}),{}),required:Object.keys(e)})[this.extRenderType]=!1,t[this.extRenderAdditionalInfo]=!1,t);return new V.a(n)}},e.parametersToSchema=function(e){var t,n=this;if(e&&Object.keys(e).length){var r=((t={type:"object",properties:Object.entries(e).reduce((function(e,t){var r=t[0],a=t[1];return e[r]=Object.assign({},a.schema().json()),e[r].description=a.description()||e[r].description,e[r][n.extParameterLocation]=a.location(),e}),{}),required:Object.keys(e)})[this.extRenderType]=!1,t[this.extRenderAdditionalInfo]=!1,t);return new V.a(r)}},e.jsonToSchema=function(e){var t=this.jsonFieldToSchema(e);return new V.a(t)},e.getCustomExtensions=function(e){if(e&&"function"==typeof e.extensions)return Object.entries(e.extensions()||{}).reduce((function(e,t){var n=t[0],r=t[1];return n.startsWith("x-parser-")||n.startsWith("x-schema-private-")||(e[n]=r),e}),{})},e.getDependentRequired=function(e,t){var n=[],r=t.dependencies();if(r){for(var a=0,i=Object.entries(r);a>"}return"tuple<"+(a||P.UNKNOWN)+">"}return r?"array<"+(this.toSchemaType(r)||P.UNKNOWN)+">":"array<"+P.ANY+">"}return e},e.toCombinedType=function(e){return e.oneOf()?"oneOf":e.anyOf()?"anyOf":e.allOf()?"allOf":void 0},e.inferType=function(e){var t=e.type();if(void 0!==t)return Array.isArray(t)?(t.includes("integer")&&t.includes("number")&&(t=t.filter((function(e){return"integer"!==e}))),1===t.length?t[0]:t):t;var n=e.const();if(void 0!==n)return typeof n;var r=e.enum();if(Array.isArray(r)&&r.length){var a=Array.from(new Set(r.map((function(e){return typeof e}))));return 1===a.length?a[0]:a}var i=Object.keys(e.json()||{})||[];return!0===W.some((function(e){return i.includes(e)}))?P.RESTRICTED_ANY:this.toCombinedType(e)?"":P.ANY},e.humanizeNumberRangeConstraint=function(e,t,n,r){var a,i=void 0!==t,o=void 0!==e||i,l=void 0!==r,u=void 0!==n||l;return o&&u?(a=i?"( ":"[ ",a+=i?t:e,a+=" .. ",a+=l?r:n,a+=l?" )":" ]"):o?(a=i?"> ":">= ",a+=i?t:e):u&&(a=l?"< ":"<= ",a+=l?r:n),a},e.humanizeMultipleOfConstraint=function(e){if(void 0!==e){var t=e.toString(10);return/^0\.0*1$/.test(t)?"decimal places <= "+t.split(".")[1].length:"multiple of "+t}},e.humanizeRangeConstraint=function(e,t,n){var r;return void 0!==t&&void 0!==n?r=t===n?t+" "+e:"[ "+t+" .. "+n+" ] "+e:void 0!==n?r="<= "+n+" "+e:void 0!==t&&(r=1===t?"non-empty":">= "+t+" "+e),r},e.jsonFieldToSchema=function(e){var t,n,r,a=this;return"object"!=typeof e?((t={type:"string",const:"function"==typeof e.toString?e.toString():e})[this.extRawValue]=!0,t):this.isJSONSchema(e)?e:Array.isArray(e)?((n={type:"array",items:e.map((function(e){return a.jsonFieldToSchema(e)}))})[this.extRenderType]=!1,n[this.extRenderAdditionalInfo]=!1,n):((r={type:"object",properties:Object.entries(e).reduce((function(e,t){var n=t[0],r=t[1];return e[n]=a.jsonFieldToSchema(r),e}),{})})[this.extRenderType]=!1,r[this.extRenderAdditionalInfo]=!1,r)},e.isJSONSchema=function(e){return!(!e||"object"!=typeof e||!(q.includes(e.type)||Array.isArray(e.type)&&e.type.some((function(e){return!q.includes(e)}))))},e.extRenderType="x-schema-private-render-type",e.extRenderAdditionalInfo="x-schema-private-render-additional-info",e.extRawValue="x-schema-private-raw-value",e.extParameterLocation="x-schema-private-parameter-location",e}(),K=function(e){var t=e.name,n=void 0===t?"Extensions":t,r=e.item,i=Y.getCustomExtensions(r);if(!i||!Object.keys(i).length)return null;var o=Y.jsonToSchema(i);return a.a.createElement("div",{className:"mt-2"},a.a.createElement(Z,{schemaName:n,schema:o}))},Q=a.a.createContext({reverse:!1}),Z=function(e){var t=e.schemaName,n=e.schema,i=e.required,o=void 0!==i&&i,l=e.isCircular,u=void 0!==l&&l,s=e.isPatternProperty,f=void 0!==s&&s,d=e.isProperty,p=void 0!==d&&d,h=e.dependentRequired,m=e.expanded,g=void 0!==m&&m,y=Object(r.useContext)(Q).reverse,b=Object(r.useState)(g),v=b[0],x=b[1];if(!n||(null==t?void 0:t.startsWith("x-parser-"))||(null==t?void 0:t.startsWith("x-schema-private-")))return null;var w=Y.getDependentSchemas(n),D=Y.humanizeConstraints(n),k=n.externalDocs(),A=!1!==n.ext(Y.extRenderType),C=!0===n.ext(Y.extRawValue),_=n.ext(Y.extParameterLocation),T=Y.isExpandable(n)||w;u=u||n.ext("x-parser-circular")||!1;var S=n.uid();return u&&!S&&n.items()&&"function"==typeof n.items().uid&&(S=n.items().uid()),a.a.createElement(Q.Provider,{value:{reverse:!y}},a.a.createElement("div",null,a.a.createElement("div",{className:"flex py-2"},a.a.createElement("div",{className:"w-3/12 min-w-min mr-2"},T&&!u?a.a.createElement(c,{onClick:function(){return x((function(e){return!e}))},chevronProps:{className:v?"-rotate-180":"-rotate-90"}},a.a.createElement("span",{className:"break-words text-sm "+(p?"italic":"")},t)):a.a.createElement("span",{className:"break-words text-sm "+(p?"italic":"")},t),f&&a.a.createElement("div",{className:"text-gray-500 text-xs italic"},"(pattern property)"),o&&a.a.createElement("div",{className:"text-red-600 text-xs"},"required"),h&&a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"text-gray-500 text-xs"},"required when defined:"),a.a.createElement("div",{className:"text-red-600 text-xs"},h.join(", "))),n.deprecated()&&a.a.createElement("div",{className:"text-red-600 text-xs"},"deprecated"),n.writeOnly()&&a.a.createElement("div",{className:"text-gray-500 text-xs"},"write-only"),n.readOnly()&&a.a.createElement("div",{className:"text-gray-500 text-xs"},"read-only")),C?a.a.createElement("div",null,a.a.createElement("div",{className:"text-sm"},n.const())):a.a.createElement("div",null,a.a.createElement("div",null,A&&a.a.createElement("div",{className:"capitalize text-sm text-teal-500 font-bold inline-block mr-2"},u?Y.toSchemaType(n)+" [CIRCULAR]":Y.toSchemaType(n)),a.a.createElement("div",{className:"inline-block"},n.format()&&a.a.createElement("span",{className:"bg-yellow-600 font-bold no-underline text-white rounded lowercase mr-2 p-1 text-xs"},"format: ",n.format()),void 0!==n.pattern()&&a.a.createElement("span",{className:"bg-yellow-600 font-bold no-underline text-white rounded lowercase mr-2 p-1 text-xs"},"must match: ",n.pattern()),void 0!==n.contentMediaType()&&a.a.createElement("span",{className:"bg-yellow-600 font-bold no-underline text-white rounded lowercase mr-2 p-1 text-xs"},"media type: ",n.contentMediaType()),void 0!==n.contentEncoding()&&a.a.createElement("span",{className:"bg-yellow-600 font-bold no-underline text-white rounded lowercase mr-2 p-1 text-xs"},"encoding: ",n.contentEncoding()),!!D.length&&D.map((function(e){return a.a.createElement("span",{className:"bg-purple-600 font-bold no-underline text-white rounded lowercase mr-2 p-1 text-xs",key:e},e)})),S&&!S.startsWith("e.length?e.repeat(Math.trunc(t/e.length)+1).substring(0,t):e}function le(...e){const t=e=>e&&"object"==typeof e;return e.reduce((e,n)=>(Object.keys(n).forEach(r=>{const a=e[r],i=n[r];t(a)&&t(i)?e[r]=le(a,i):e[r]=i}),e),Array.isArray(e[e.length-1])?[]:{})}function ue(e){return{value:"object"===e?{}:"array"===e?[]:void 0}}function se(e,t){t&&e.pop()}const ce={multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",maxLength:"string",minLength:"string",pattern:"string",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",additionalItems:"array",maxProperties:"object",minProperties:"object",required:"object",additionalProperties:"object",properties:"object",patternProperties:"object",dependencies:"object"};function fe(e){if(void 0!==e.type)return Array.isArray(e.type)?0===e.type.length?null:e.type[0]:e.type;const t=Object.keys(ce);for(var n=0;nt.maxSampleDepth)return se(me,r),ue(fe(e));if(e.$ref){let a=decodeURIComponent(e.$ref);a.startsWith("#")&&(a=a.substring(1));const i=pe.a.get(n,a);let o;if(!0!==he[a])he[a]=!0,o=ge(i,t,n,r),he[a]=!1;else{o=ue(fe(i))}return se(me,r),o}if(void 0!==e.example)return se(me,r),{value:e.example,readOnly:e.readOnly,writeOnly:e.writeOnly,type:e.type};if(void 0!==e.allOf)return se(me,r),function(e,t,n,r,a){let i=ge(e,n,r);const o=[];for(let e of t){const{type:t,readOnly:l,writeOnly:u,value:s}=ge({type:i.type,...e},n,r,a);i.type&&t&&t!==i.type&&(console.warn("allOf: schemas with different types can't be merged"),i.type=t),i.type=i.type||t,i.readOnly=i.readOnly||l,i.writeOnly=i.writeOnly||u,null!=s&&o.push(s)}if("object"===i.type)return i.value=le(i.value||{},...o.filter(e=>"object"==typeof e)),i;{"array"===i.type&&(n.quiet||console.warn('OpenAPI Sampler: found allOf with "array" type. Result may be incorrect'));const e=o[o.length-1];return i.value=null!=e?e:i.value,i}}({...e,allOf:void 0},e.allOf,t,n,r);if(e.oneOf&&e.oneOf.length)return e.anyOf&&(t.quiet||console.warn("oneOf and anyOf are not supported on the same level. Skipping anyOf")),se(me,r),ge(e.oneOf[0],t,n,r);if(e.anyOf&&e.anyOf.length)return se(me,r),ge(e.anyOf[0],t,n,r);if(e.if&&e.then)return ge(le(e.if,e.then),t,n,r);let a=null,i=null;if(void 0!==e.default)a=e.default;else if(void 0!==e.const)a=e.const;else if(void 0!==e.enum&&e.enum.length)a=e.enum[0];else if(void 0!==e.examples&&e.examples.length)a=e.examples[0];else{i=e.type,Array.isArray(i)&&e.type.length>0&&(i=e.type[0]),i||(i=fe(e));let o=De[i];o&&(a=o(e,t,n,r))}return se(me,r),{value:a,readOnly:e.readOnly,writeOnly:e.writeOnly,type:i}}function ye(e){let t=0;if("boolean"==typeof e.exclusiveMinimum||"boolean"==typeof e.exclusiveMaximum){if(e.maximum&&e.minimum)return t=e.exclusiveMinimum?Math.floor(e.minimum)+1:e.minimum,(e.exclusiveMaximum&&t>=e.maximum||!e.exclusiveMaximum&&t>e.maximum)&&(t=(e.maximum+e.minimum)/2),t;if(e.minimum)return e.exclusiveMinimum?Math.floor(e.minimum)+1:e.minimum;if(e.maximum)return e.exclusiveMaximum?e.maximum>0?0:Math.floor(e.maximum)-1:e.maximum>0?0:e.maximum}else{if(e.minimum)return e.minimum;e.exclusiveMinimum?(t=Math.floor(e.exclusiveMinimum)+1,t===e.exclusiveMaximum&&(t=(t+Math.floor(e.exclusiveMaximum)-1)/2)):e.exclusiveMaximum?t=Math.floor(e.exclusiveMaximum)-1:e.maximum&&(t=e.maximum)}return t}function be(){return"user@example.com"}function ve({min:e,max:t,omitTime:n,omitDate:r}){let a=function(e,t,n,r){var a=n?"":e.getUTCFullYear()+"-"+ie(e.getUTCMonth()+1)+"-"+ie(e.getUTCDate());return t||(a+="T"+ie(e.getUTCHours())+":"+ie(e.getUTCMinutes())+":"+ie(e.getUTCSeconds())+(r?"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5):"")+"Z"),a}(new Date("2019-08-24T14:15:22.123Z"),n,r,!1);return a.lengtht&&console.warn(`Using maxLength = ${t} is incorrect with format "date-time"`),a}function xe(e,t){let n=oe("string",e);return t&&n.length>t&&(n=n.substring(0,t)),n}function Ee(){return"example.com"}const we={email:be,"idn-email":be,password:function(e,t){let n="pa$$word";return e>n.length&&(n+="_",n+=oe("qwerty!@#$%^123456",e-n.length).substring(0,e-n.length)),n},"date-time":function(e,t){return ve({min:e,max:t,omitTime:!1,omitDate:!1})},date:function(e,t){return ve({min:e,max:t,omitTime:!0,omitDate:!1})},time:function(e,t){return ve({min:e,max:t,omitTime:!1,omitDate:!0}).slice(1)},ipv4:function(){return"192.168.0.1"},ipv6:function(){return"2001:0db8:85a3:0000:0000:8a2e:0370:7334"},hostname:Ee,"idn-hostname":Ee,iri:function(){return"http://example.com"},"iri-reference":function(){return"../dictionary"},uri:function(){return"http://example.com"},"uri-reference":function(){return"../dictionary"},"uri-template":function(){return"http://example.com/{endpoint}"},uuid:function(e,t,n){return l=function(e){var t=0;if(0==e.length)return t;for(var n=0;n>>5)|0;return r=a^((i|=0)<<17|i>>>15),a=i+(o|=0)|0,i=o+e|0,((o=r+e|0)>>>0)/4294967296},"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{var t=16*u()%16|0;return("x"==e?t:3&t|8).toString(16)});var r,a,i,o,l,u},default:xe,"json-pointer":function(){return"/json/pointer"},"relative-json-pointer":function(){return"1/relative/json/pointer"},regex:function(){return"/regex/"}};var De={};const ke={skipReadOnly:!1,maxSampleDepth:15};function Ae(e,t,n=e){let r=Object.assign({},ke,t);return he={},me=[],ge(e,r,n).value}function Ce(e,t){De[e]=t}Ce("array",(function(e,t={},n,r){const a=r&&r.depth||1;let i=Math.min("maxItems"in e?e.maxItems:1/0,e.minItems||1);const o=e.items||e.contains;Array.isArray(o)&&(i=Math.max(i,o.length));let l=[];if(!o)return l;for(let r=0;r(e[t]=!0,e),{});Object.keys(e.properties).forEach(o=>{if(t.skipNonRequired&&!r.hasOwnProperty(o))return;const l=ge(e.properties[o],t,n,{propertyName:o,depth:i+1});t.skipReadOnly&&l.readOnly||t.skipWriteOnly&&l.writeOnly||(a[o]=l.value)})}return e&&"object"==typeof e.additionalProperties&&(a.property1=ge(e.additionalProperties,t,n,{depth:i+1}).value,a.property2=ge(e.additionalProperties,t,n,{depth:i+1}).value),a})),Ce("string",(function(e,t,n,r){let a=e.format||"default",i=we[a]||xe,o=r&&r.propertyName;return i(0|e.minLength,e.maxLength,o)}));var _e=function(){function e(){}return e.generateExample=function(e,t){void 0===t&&(t={});try{return this.sanitizeExample(Ae(e,t))||""}catch(e){return""}},e.sanitizeExample=function(e){var t=this;return"object"==typeof e&&e&&!Array.isArray(e)?Object.entries(e).reduce((function(e,n){var r=n[0],a=n[1];return r.startsWith("x-parser-")||r.startsWith("x-schema-private-")||(e[r]=t.sanitizeExample(a)),e}),{}):e},e.getPayloadExamples=function(e){var t=e.examples();if(Array.isArray(t)&&t.some((function(e){return e.payload}))){var n=t.flatMap((function(e){if(e.payload)return{name:e.name,summary:e.summary,example:e.payload}})).filter(Boolean);if(n.length>0)return n}var r=e.payload();if(r&&r.examples())return r.examples().map((function(e){return{example:e}}))},e.getHeadersExamples=function(e){var t=e.examples();if(Array.isArray(t)&&t.some((function(e){return e.headers}))){var n=t.flatMap((function(e){if(e.headers)return{name:e.name,summary:e.summary,example:e.headers}})).filter(Boolean);if(n.length>0)return n}var r=e.headers();if(r&&r.examples())return r.examples().map((function(e){return{example:e}}))},e}(),Te=function(e){var t=e.message;if(!t)return null;var n=t.payload(),r=t.headers();return a.a.createElement("div",{className:"bg-gray-800 px-8 py-4 mt-4 -mx-8 2xl:mx-0 2xl:px-4 2xl:rounded examples"},a.a.createElement("h4",{className:"text-white text-lg"},"Examples"),n&&a.a.createElement(Se,{type:"Payload",schema:n,examples:_e.getPayloadExamples(t)}),r&&a.a.createElement(Se,{type:"Headers",schema:r,examples:_e.getHeadersExamples(t)}))},Se=function(e){var t=e.type,n=void 0===t?"Payload":t,i=e.schema,o=e.examples,l=void 0===o?[]:o,u=Object(r.useState)(!1),s=u[0],f=u[1];return a.a.createElement("div",{className:"mt-4"},a.a.createElement("div",null,a.a.createElement(c,{onClick:function(){return f((function(e){return!e}))},chevronProps:{className:"fill-current text-gray-200 "+(s?"-rotate-180":"-rotate-90")}},a.a.createElement("span",{className:"px-2 py-1 mr-2 text-gray-200 text-sm border rounded focus:outline-none"},n))),a.a.createElement("div",{className:s?"block":"hidden"},l&&l.length>0?a.a.createElement("ul",null,l.map((function(e,t){return a.a.createElement("li",{className:"mt-4",key:t},a.a.createElement("h5",{className:"text-xs font-bold text-gray-500"},e.name?"#"+(t+1)+" Example - "+e.name:"#"+(t+1)+" Example"),e.summary&&a.a.createElement("p",{className:"text-xs font-bold text-gray-500"},e.summary),a.a.createElement("div",{className:"mt-1"},a.a.createElement(ae,{snippet:_e.sanitizeExample(e.example)})))}))):a.a.createElement("div",{className:"mt-4"},a.a.createElement(ae,{snippet:_e.generateExample(i.json())}),a.a.createElement("h6",{className:"text-xs font-bold text-gray-600 italic mt-2"},"This example has been generated automatically."))))},Ne=function(e){var t=e.message,n=e.index,r=e.showExamples,i=void 0!==r&&r;if(!t)return null;var o=t.title(),l=t.summary(),u=t.payload(),s=t.headers(),c=t.correlationId(),f=t.contentType(),d=t.externalDocs(),p=f||d;return a.a.createElement("div",{className:"panel-item"},a.a.createElement("div",{className:"panel-item--center px-8"},a.a.createElement("div",{className:"shadow rounded bg-gray-200 p-4 border bg-gray-100"},a.a.createElement("div",null,void 0!==n&&a.a.createElement("span",{className:"text-gray-700 font-bold mr-2"},"#",n),o&&a.a.createElement("span",{className:"text-gray-700 mr-2"},o),a.a.createElement("span",{className:"border text-orange-600 rounded text-xs py-0 px-2"},t.uid())),l&&a.a.createElement("p",{className:"text-gray-600 text-sm"},l),p&&a.a.createElement("ul",{className:"leading-normal mt-2 mb-4 space-x-2 space-y-2"},f&&a.a.createElement("li",{className:"inline-block"},a.a.createElement(E,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:M.a+"/"+f},a.a.createElement("span",null,f))),d&&a.a.createElement("li",{className:"inline-block"},a.a.createElement(E,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:d.url()},a.a.createElement("span",null,M.d)))),c&&a.a.createElement("div",{className:"border bg-gray-100 rounded px-4 py-2 mt-2"},a.a.createElement("div",{className:"text-sm text-gray-700"},"Correlation ID",a.a.createElement("span",{className:"border text-orange-600 rounded text-xs ml-2 py-0 px-2"},c.location())),c.hasDescription()&&a.a.createElement("div",{className:"mt-2"},a.a.createElement(R,null,c.description()))),t.hasDescription()&&a.a.createElement("div",{className:"mt-2"},a.a.createElement(R,null,t.description())),u&&a.a.createElement("div",{className:"mt-2"},a.a.createElement(Z,{schemaName:"Payload",schema:u})),s&&a.a.createElement("div",{className:"mt-2"},a.a.createElement(Z,{schemaName:"Headers",schema:s})),t.hasBindings()&&a.a.createElement("div",{className:"mt-2"},a.a.createElement(te,{bindings:t.bindings()})),a.a.createElement(K,{item:t}),t.hasTags()&&a.a.createElement("div",{className:"mt-2"},a.a.createElement(I,{tags:t.tags()})))),i&&a.a.createElement("div",{className:"panel-item--right px-8"},a.a.createElement(Te,{message:t})))},Oe=n(11),Fe=function(e){var t=e.type,n=void 0===t?Oe.a.PUBLISH:t,r=e.operation,i=e.channelName,o=e.channel;if(!r)return null;var l=r.id(),u=r.externalDocs(),s=Y.parametersToSchema(o.parameters()),c=r.summary();return a.a.createElement("div",{id:"operation-"+n+"-"+i},a.a.createElement("div",{className:"panel-item--center px-8"},a.a.createElement("div",{className:"mb-4"},a.a.createElement("h3",null,a.a.createElement("span",{className:"font-mono border uppercase p-1 rounded mr-2 "+(n===Oe.a.PUBLISH?"border-blue-600 text-blue-500":"border-green-600 text-green-600"),title:n},n===Oe.a.PUBLISH?"PUB":"SUB")," ",a.a.createElement("span",{className:"font-mono text-base"},i))),o.hasDescription()&&a.a.createElement("div",{className:"mt-2"},a.a.createElement(R,null,o.description())),c&&a.a.createElement("p",{className:"text-gray-600 text-sm mt-2"},c),r.hasDescription()&&a.a.createElement("div",{className:"mt-2"},a.a.createElement(R,null,r.description())),u&&a.a.createElement("ul",{className:"leading-normal mt-2 mb-4 space-x-2 space-y-2"},u&&a.a.createElement("li",{className:"inline-block"},a.a.createElement(E,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:u.url()},a.a.createElement("span",null,M.d)))),l&&a.a.createElement("div",{className:"border bg-gray-100 rounded px-4 py-2 mt-2"},a.a.createElement("div",{className:"text-sm text-gray-700"},"Operation ID",a.a.createElement("span",{className:"border text-orange-600 rounded text-xs ml-2 py-0 px-2"},l))),s&&a.a.createElement("div",{className:"mt-2"},a.a.createElement(Z,{schemaName:"Parameters",schema:s,expanded:!0})),r.hasBindings()&&a.a.createElement("div",{className:"mt-2"},a.a.createElement(te,{name:"Operation Bindings",bindings:r.bindings()})),o.hasBindings()&&a.a.createElement("div",{className:"mt-2"},a.a.createElement(te,{name:"Channel Bindings",bindings:o.bindings()})),a.a.createElement(K,{item:r}),r.hasTags()&&a.a.createElement("div",{className:"mt-2"},a.a.createElement(I,{tags:r.tags()}))),a.a.createElement("div",{className:"w-full mt-4"},r.hasMultipleMessages()?a.a.createElement("div",{className:"mt-2"},a.a.createElement("p",{className:"px-8"},"Accepts ",a.a.createElement("strong",null,"one of")," the following messages:"),a.a.createElement("ul",null,r.messages().map((function(e,t){return a.a.createElement("li",{className:"mt-4",key:t},a.a.createElement(Ne,{message:e,index:t,showExamples:!0}))})))):a.a.createElement("div",{className:"mt-2"},a.a.createElement("p",{className:"px-8"},"Accepts the following message:"),a.a.createElement("div",{className:"mt-2"},a.a.createElement(Ne,{message:r.message(0),showExamples:!0})))))},je=function(){var e=d().channels();if(!Object.keys(e).length)return null;var t=[];return Object.entries(e).forEach((function(e){var n=e[0],r=e[1];r.hasPublish()&&t.push(a.a.createElement("li",{className:"mb-12",key:"pub-"+n},a.a.createElement(Fe,{type:Oe.a.PUBLISH,operation:r.publish(),channelName:n,channel:r}))),r.hasSubscribe()&&t.push(a.a.createElement("li",{className:"mb-12",key:"sub-"+n},a.a.createElement(Fe,{type:Oe.a.SUBSCRIBE,operation:r.subscribe(),channelName:n,channel:r})))})),a.a.createElement("section",{id:"operations",className:"mt-16"},a.a.createElement("h2",{className:"2xl:w-7/12 text-3xl font-light mb-4 px-8"},M.f),a.a.createElement("ul",null,t))},Pe=function(){var e=d().allMessages();return e.size?a.a.createElement("section",{id:"messages",className:"mt-16"},a.a.createElement("h2",{className:"2xl:w-7/12 text-3xl font-light mb-4 px-8"},M.e),a.a.createElement("ul",null,Array.from(e).map((function(e,t){var n=e[0],r=e[1];return a.a.createElement("li",{className:"mb-4",key:n,id:"message-"+r.uid()},a.a.createElement(Ne,{message:r,index:t+1,key:n}))})))):null},Re=function(e){var t=e.error;if(!t)return null;var n,r=t.title,i=t.validationErrors;return a.a.createElement("div",{className:"panel-item"},a.a.createElement("div",{className:"panel-item--center p-8"},a.a.createElement("section",{className:"shadow rounded bg-gray-200 border-red-500 border-l-8"},a.a.createElement("h2",{className:"p-2"},r?M.c+": "+r:M.c),i&&i.length?a.a.createElement("div",{className:"bg-gray-800 text-white text-xs p-2"},a.a.createElement("pre",null,(n=i)?n.map((function(e,t){return e&&e.title&&e.location?a.a.createElement("div",{key:t,className:"flex"},a.a.createElement("span",null,e.location.startLine+"."),a.a.createElement("code",{className:"whitespace-pre-wrap break-all ml-2"},e.title)):null})).filter(Boolean):null)):null)),a.a.createElement("div",{className:"panel-item--right"}))};function Be(e){if(!e)return"";var t=e.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g);return t?t.map((function(e){return e.toLowerCase()})).join("-"):e}var Ie,Me=new(function(){function e(){this.schemaID=M.b}return e.prototype.getSchemaID=function(){return this.schemaID},e.prototype.setSchemaID=function(e){this.schemaID=e?Be(e):this.schemaID},e.prototype.element=function(e){return e?M.b+"__"+e:""},e.prototype.modifier=function(e,t){return e?M.b+(t?"__"+t:"")+"--"+e:""},e.prototype.concatenate=function(e){return e.filter(Boolean).join(" ")},e.prototype.identifier=function(e){var t=this,n=e.map((function(e){if(e)return t.isIdentifier(e)?e.toKebabCase?Be(e.id):e.id:e})).filter(Boolean).join("--");return n.startsWith(this.schemaID)?n:this.schemaID+"--"+n},e.prototype.isIdentifier=function(e){return e.hasOwnProperty("id")},e}()),ze=function(e){var t,n,i,o,u,s,c=e.asyncapi,d=e.config,p=e.error,m=void 0===p?null:p,g=Object(r.useState)(1281),y=g[0],b=g[1],v=l({onResize:function(e){var t=e.width;y!==t&&t&&b(t)}}).ref;return Me.setSchemaID(d.schemaID),a.a.createElement(f.Provider,{value:{asyncapi:c}},a.a.createElement("section",{className:(y<=1280?"container:xl":"container:base")+" relative md:flex bg-white",id:Me.getSchemaID(),ref:v},(null===(t=d.show)||void 0===t?void 0:t.sidebar)&&a.a.createElement(h,{config:d.sidebar}),a.a.createElement("div",{className:"panel--center relative py-8 flex-1"},a.a.createElement("div",{className:"relative z-10"},(null===(n=d.show)||void 0===n?void 0:n.errors)&&m&&a.a.createElement(Re,{error:m}),(null===(i=d.show)||void 0===i?void 0:i.info)&&a.a.createElement(z,null),(null===(o=d.show)||void 0===o?void 0:o.servers)&&a.a.createElement(re,null),(null===(u=d.show)||void 0===u?void 0:u.operations)&&a.a.createElement(je,null),(null===(s=d.show)||void 0===s?void 0:s.messages)&&a.a.createElement(Pe,null)),a.a.createElement("div",{className:"panel--right absolute top-0 right-0 h-full bg-gray-800"}))))},Le=(Ie=function(e,t){return(Ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Ie(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ue=function(){return(Ue=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]1)||(this._json.message,!1)}messages(){return this._json.message?this._json.message.oneOf?this._json.message.oneOf.map(e=>new a(e)):[new a(this._json.message)]:[]}message(e){return this._json.message?this._json.message.oneOf?"number"!=typeof e||e>this._json.message.oneOf.length-1?null:new a(this._json.message.oneOf[+e]):new a(this._json.message):null}}},38:function(e,t,n){const{mix:r}=n(2),a=n(3),i=n(5),o=n(23),l=n(17),u=n(21),s=n(4);e.exports=r(class extends a{id(){return this._json.operationId}summary(){return this._json.summary}},i,o,l,u,s)},39:function(e,t,n){(function(t){const r=n(40),a=n(7);e.exports=class extends r{uid(){return this.name()||this.ext("x-parser-message-name")||t.from(JSON.stringify(this._json)).toString("base64")}payload(){return this._json.payload?new a(this._json.payload):null}originalPayload(){return this._json["x-parser-original-payload"]||this.payload()}originalSchemaFormat(){return this._json["x-parser-original-schema-format"]||this.schemaFormat()}}}).call(this,n(8).Buffer)},4:function(e,t){const n={hasExtensions(){return!!this.extensionKeys().length},extensions(){const e={};return Object.entries(this._json).forEach(([t,n])=>{/^x-[\w\d\.\-\_]+$/.test(t)&&(e[String(t)]=n)}),e},extensionKeys(){return Object.keys(this.extensions())},extKeys(){return this.extensionKeys()},hasExtension(e){return!!e.startsWith("x-")&&!!this._json[String(e)]},extension(e){return e.startsWith("x-")?this._json[String(e)]:null},hasExt(e){return this.hasExtension(e)},ext(e){return this.extension(e)}};e.exports=n},40:function(e,t,n){const{getMapValueOfType:r,mix:a}=n(2),i=n(3),o=n(7),l=n(41),u=n(5),s=n(17),c=n(23),f=n(21),d=n(4);e.exports=a(class extends i{headers(){return this._json.headers?new o(this._json.headers):null}header(e){return this._json.headers?r(this._json.headers.properties,e,o):null}correlationId(){return this._json.correlationId?new l(this._json.correlationId):null}schemaFormat(){return"application/schema+json;version=draft-07"}contentType(){return this._json.contentType}name(){return this._json.name}title(){return this._json.title}summary(){return this._json.summary}examples(){return this._json.examples}},u,c,s,f,d)},41:function(e,t,n){const{mix:r}=n(2),a=n(3),i=n(5),o=n(4);e.exports=r(class extends a{location(){return this._json.location}},o,i)},42:function(e,t){e.exports={xParserSpecParsed:"x-parser-spec-parsed",xParserMessageName:"x-parser-message-name",xParserSchemaId:"x-parser-schema-id",xParserCircle:"x-parser-circular",xParserCircleProps:"x-parser-circular-props"}},43:function(e,t){const n=Object.freeze({NEW_SCHEMA:"NEW_SCHEMA",END_SCHEMA:"END_SCHEMA"}),r=Object.freeze({parameters:"parameters",payloads:"payloads",headers:"headers",components:"components",objects:"objects",arrays:"arrays",oneOfs:"oneOfs",allOfs:"allOfs",anyOfs:"anyOfs"});function a(e,t,i,o){if(null!==e&&(o.includes(r.arrays)||"array"!==e.type())&&(o.includes(r.objects)||"object"!==e.type())&&!e.isCircular()&&!1!==t(e,i,n.NEW_SCHEMA)){if(void 0!==e.type())switch(e.type()){case"object":l(e,t,o);break;case"array":u(e,t,o)}else!function(e,t,n){const i=e=>{(e||[]).forEach(e=>{a(e,t,null,n)})};n.includes(r.allOfs)&&i(e.allOf());n.includes(r.anyOfs)&&i(e.anyOf());n.includes(r.oneOfs)&&i(e.oneOf())}(e,t,o);t(e,i,n.END_SCHEMA)}}function i(e,t,n){n.includes(r.parameters)&&Object.values(e.parameters()).forEach(e=>{a(e.schema(),t,null,n)}),e.hasPublish()&&e.publish().messages().forEach(e=>{o(e,t,n)}),e.hasSubscribe()&&e.subscribe().messages().forEach(e=>{o(e,t,n)})}function o(e,t,n){null!==e&&(n.includes(r.headers)&&a(e.headers(),t,null,n),n.includes(r.payloads)&&a(e.payload(),t,null,n))}function l(e,t,n){if(void 0!==e.additionalProperties()&&"boolean"!=typeof e.additionalProperties()){a(e.additionalProperties(),t,null,n)}if(null!==e.properties()){const r=e.properties();for(const[i,o]of Object.entries(r)){const r=e.circularProps();void 0!==r&&r.includes(i)||a(o,t,i,n)}}}function u(e,t,n){if(void 0!==e.additionalItems()){a(e.additionalItems(),t,null,n)}null!==e.items()&&(Array.isArray(e.items())?e.items().forEach(e=>{a(e,t,null,n)}):a(e.items(),t,null,n))}e.exports={SchemaIteratorCallbackType:n,SchemaTypesToIterate:r,traverseSchema:a,traverseAsyncApiDocument:function(e,t,n){n||(n=Object.values(r)),e.hasChannels()&&e.channelNames().forEach(r=>{i(e.channel(r),t,n)}),e.hasComponents()&&n.includes(r.components)&&(Object.values(e.components().schemas()).forEach(e=>{a(e,t,null,n)}),Object.values(e.components().messages()).forEach(e=>{o(e,t,n)}))},traverseChannel:i,traverseMessage:o,recursiveSchemaObject:l,recursiveSchemaArray:u}},44:function(e,t,n){ +*/var r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,l,u=o(e),s=1;s1)||(this._json.message,!1)}messages(){return this._json.message?this._json.message.oneOf?this._json.message.oneOf.map(e=>new a(e)):[new a(this._json.message)]:[]}message(e){return this._json.message?this._json.message.oneOf?"number"!=typeof e||e>this._json.message.oneOf.length-1?null:new a(this._json.message.oneOf[+e]):new a(this._json.message):null}}},38:function(e,t,n){const{mix:r}=n(2),a=n(3),i=n(5),o=n(23),l=n(17),u=n(21),s=n(4);e.exports=r(class extends a{id(){return this._json.operationId}summary(){return this._json.summary}},i,o,l,u,s)},39:function(e,t,n){(function(t){const r=n(40),a=n(7);e.exports=class extends r{uid(){return this.name()||this.ext("x-parser-message-name")||t.from(JSON.stringify(this._json)).toString("base64")}payload(){return this._json.payload?new a(this._json.payload):null}originalPayload(){return this._json["x-parser-original-payload"]||this.payload()}originalSchemaFormat(){return this._json["x-parser-original-schema-format"]||this.schemaFormat()}}}).call(this,n(8).Buffer)},4:function(e,t){const n={hasExtensions(){return!!this.extensionKeys().length},extensions(){const e={};return Object.entries(this._json).forEach(([t,n])=>{/^x-[\w\d\.\-\_]+$/.test(t)&&(e[String(t)]=n)}),e},extensionKeys(){return Object.keys(this.extensions())},extKeys(){return this.extensionKeys()},hasExtension(e){return!!e.startsWith("x-")&&!!this._json[String(e)]},extension(e){return e.startsWith("x-")?this._json[String(e)]:null},hasExt(e){return this.hasExtension(e)},ext(e){return this.extension(e)}};e.exports=n},40:function(e,t,n){const{getMapValueOfType:r,mix:a}=n(2),i=n(3),o=n(7),l=n(41),u=n(5),s=n(17),c=n(23),f=n(21),d=n(4);e.exports=a(class extends i{headers(){return this._json.headers?new o(this._json.headers):null}header(e){return this._json.headers?r(this._json.headers.properties,e,o):null}correlationId(){return this._json.correlationId?new l(this._json.correlationId):null}schemaFormat(){return this._json.schemaFormat}contentType(){return this._json.contentType}name(){return this._json.name}title(){return this._json.title}summary(){return this._json.summary}examples(){return this._json.examples}},u,c,s,f,d)},41:function(e,t,n){const{mix:r}=n(2),a=n(3),i=n(5),o=n(4);e.exports=r(class extends a{location(){return this._json.location}},o,i)},42:function(e,t){e.exports={xParserSpecParsed:"x-parser-spec-parsed",xParserMessageName:"x-parser-message-name",xParserSchemaId:"x-parser-schema-id",xParserCircle:"x-parser-circular",xParserCircleProps:"x-parser-circular-props"}},43:function(e,t){const n=Object.freeze({NEW_SCHEMA:"NEW_SCHEMA",END_SCHEMA:"END_SCHEMA"}),r=Object.freeze({parameters:"parameters",payloads:"payloads",headers:"headers",components:"components",objects:"objects",arrays:"arrays",oneOfs:"oneOfs",allOfs:"allOfs",anyOfs:"anyOfs"});function a(e,t,i,o){if(null!==e&&(o.includes(r.arrays)||"array"!==e.type())&&(o.includes(r.objects)||"object"!==e.type())&&!e.isCircular()&&!1!==t(e,i,n.NEW_SCHEMA)){if(void 0!==e.type())switch(e.type()){case"object":l(e,t,o);break;case"array":u(e,t,o)}else!function(e,t,n){const i=e=>{(e||[]).forEach(e=>{a(e,t,null,n)})};n.includes(r.allOfs)&&i(e.allOf());n.includes(r.anyOfs)&&i(e.anyOf());n.includes(r.oneOfs)&&i(e.oneOf())}(e,t,o);t(e,i,n.END_SCHEMA)}}function i(e,t,n){n.includes(r.parameters)&&Object.values(e.parameters()).forEach(e=>{a(e.schema(),t,null,n)}),e.hasPublish()&&e.publish().messages().forEach(e=>{o(e,t,n)}),e.hasSubscribe()&&e.subscribe().messages().forEach(e=>{o(e,t,n)})}function o(e,t,n){null!==e&&(n.includes(r.headers)&&a(e.headers(),t,null,n),n.includes(r.payloads)&&a(e.payload(),t,null,n))}function l(e,t,n){if(void 0!==e.additionalProperties()&&"boolean"!=typeof e.additionalProperties()){a(e.additionalProperties(),t,null,n)}if(null!==e.properties()){const r=e.properties();for(const[i,o]of Object.entries(r)){const r=e.circularProps();void 0!==r&&r.includes(i)||a(o,t,i,n)}}}function u(e,t,n){if(void 0!==e.additionalItems()){a(e.additionalItems(),t,null,n)}null!==e.items()&&(Array.isArray(e.items())?e.items().forEach(e=>{a(e,t,null,n)}):a(e.items(),t,null,n))}e.exports={SchemaIteratorCallbackType:n,SchemaTypesToIterate:r,traverseSchema:a,traverseAsyncApiDocument:function(e,t,n){n||(n=Object.values(r)),e.hasChannels()&&e.channelNames().forEach(r=>{i(e.channel(r),t,n)}),e.hasComponents()&&n.includes(r.components)&&(Object.values(e.components().schemas()).forEach(e=>{a(e,t,null,n)}),Object.values(e.components().messages()).forEach(e=>{o(e,t,n)}))},traverseChannel:i,traverseMessage:o,recursiveSchemaObject:l,recursiveSchemaArray:u}},44:function(e,t,n){ /*! @license DOMPurify | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.2.2/LICENSE */ e.exports=function(){"use strict";var e=Object.hasOwnProperty,t=Object.setPrototypeOf,n=Object.isFrozen,r=Object.getPrototypeOf,a=Object.getOwnPropertyDescriptor,i=Object.freeze,o=Object.seal,l=Object.create,u="undefined"!=typeof Reflect&&Reflect,s=u.apply,c=u.construct;s||(s=function(e,t,n){return e.apply(t,n)}),i||(i=function(e){return e}),o||(o=function(e){return e}),c||(c=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1?n-1:0),a=1;a/gm),z=o(/^data-[\-\w.\u00B7-\uFFFF]/),L=o(/^aria-[\-\w]+$/),U=o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$=o(/^(?:\w+script|data):/i),H=o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function q(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:W(),n=function(t){return e(t)};if(n.version="2.2.7",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,a=t.document,o=t.DocumentFragment,l=t.HTMLTemplateElement,u=t.Node,s=t.Element,c=t.NodeFilter,f=t.NamedNodeMap,w=void 0===f?t.NamedNodeMap||t.MozNamedAttrMap:f,K=t.Text,Q=t.Comment,Z=t.DOMParser,G=t.trustedTypes,X=s.prototype,J=A(X,"cloneNode"),ee=A(X,"nextSibling"),te=A(X,"childNodes"),ne=A(X,"parentNode");if("function"==typeof l){var re=a.createElement("template");re.content&&re.content.ownerDocument&&(a=re.content.ownerDocument)}var ae=Y(G,r),ie=ae&&Ie?ae.createHTML(""):"",oe=a,le=oe.implementation,ue=oe.createNodeIterator,se=oe.getElementsByTagName,ce=oe.createDocumentFragment,fe=r.importNode,de={};try{de=k(a).documentMode?a.documentMode:{}}catch(e){}var pe={};n.isSupported="function"==typeof ne&&le&&void 0!==le.createHTMLDocument&&9!==de;var he=I,me=M,ge=z,ye=L,be=$,ve=H,xe=U,Ee=null,we=D({},[].concat(q(C),q(_),q(T),q(N),q(F))),De=null,ke=D({},[].concat(q(j),q(P),q(R),q(B))),Ae=null,Ce=null,_e=!0,Te=!0,Se=!1,Ne=!1,Oe=!1,Fe=!1,je=!1,Pe=!1,Re=!1,Be=!0,Ie=!1,Me=!0,ze=!0,Le=!1,Ue={},$e=D({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),He=null,Ve=D({},["audio","video","img","source","image","track"]),qe=null,We=D({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Ye=null,Ke=a.createElement("form"),Qe=function(e){Ye&&Ye===e||(e&&"object"===(void 0===e?"undefined":V(e))||(e={}),e=k(e),Ee="ALLOWED_TAGS"in e?D({},e.ALLOWED_TAGS):we,De="ALLOWED_ATTR"in e?D({},e.ALLOWED_ATTR):ke,qe="ADD_URI_SAFE_ATTR"in e?D(k(We),e.ADD_URI_SAFE_ATTR):We,He="ADD_DATA_URI_TAGS"in e?D(k(Ve),e.ADD_DATA_URI_TAGS):Ve,Ae="FORBID_TAGS"in e?D({},e.FORBID_TAGS):{},Ce="FORBID_ATTR"in e?D({},e.FORBID_ATTR):{},Ue="USE_PROFILES"in e&&e.USE_PROFILES,_e=!1!==e.ALLOW_ARIA_ATTR,Te=!1!==e.ALLOW_DATA_ATTR,Se=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ne=e.SAFE_FOR_TEMPLATES||!1,Oe=e.WHOLE_DOCUMENT||!1,Pe=e.RETURN_DOM||!1,Re=e.RETURN_DOM_FRAGMENT||!1,Be=!1!==e.RETURN_DOM_IMPORT,Ie=e.RETURN_TRUSTED_TYPE||!1,je=e.FORCE_BODY||!1,Me=!1!==e.SANITIZE_DOM,ze=!1!==e.KEEP_CONTENT,Le=e.IN_PLACE||!1,xe=e.ALLOWED_URI_REGEXP||xe,Ne&&(Te=!1),Re&&(Pe=!0),Ue&&(Ee=D({},[].concat(q(F))),De=[],!0===Ue.html&&(D(Ee,C),D(De,j)),!0===Ue.svg&&(D(Ee,_),D(De,P),D(De,B)),!0===Ue.svgFilters&&(D(Ee,T),D(De,P),D(De,B)),!0===Ue.mathMl&&(D(Ee,N),D(De,R),D(De,B))),e.ADD_TAGS&&(Ee===we&&(Ee=k(Ee)),D(Ee,e.ADD_TAGS)),e.ADD_ATTR&&(De===ke&&(De=k(De)),D(De,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&D(qe,e.ADD_URI_SAFE_ATTR),ze&&(Ee["#text"]=!0),Oe&&D(Ee,["html","head","body"]),Ee.table&&(D(Ee,["tbody"]),delete Ae.tbody),i&&i(e),Ye=e)},Ze=D({},["mi","mo","mn","ms","mtext"]),Ge=D({},["foreignobject","desc","title","annotation-xml"]),Xe=D({},_);D(Xe,T),D(Xe,S);var Je=D({},N);D(Je,O);var et="http://www.w3.org/1998/Math/MathML",tt="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xhtml",rt=function(e){var t=ne(e);t&&t.tagName||(t={namespaceURI:nt,tagName:"template"});var n=m(e.tagName),r=m(t.tagName);if(e.namespaceURI===tt)return t.namespaceURI===nt?"svg"===n:t.namespaceURI===et?"svg"===n&&("annotation-xml"===r||Ze[r]):Boolean(Xe[n]);if(e.namespaceURI===et)return t.namespaceURI===nt?"math"===n:t.namespaceURI===tt?"math"===n&&Ge[r]:Boolean(Je[n]);if(e.namespaceURI===nt){if(t.namespaceURI===tt&&!Ge[r])return!1;if(t.namespaceURI===et&&!Ze[r])return!1;var a=D({},["title","style","font","a","script"]);return!Je[n]&&(a[n]||!Xe[n])}return!1},at=function(e){h(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},it=function(e,t){try{h(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){h(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!De[e])if(Pe||Re)try{at(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ot=function(e){var t=void 0,n=void 0;if(je)e=""+e;else{var r=g(e,/^[\r\n\t ]+/);n=r&&r[0]}var i=ae?ae.createHTML(e):e;try{t=(new Z).parseFromString(i,"text/html")}catch(e){}if(!t||!t.documentElement){var o=(t=le.createHTMLDocument("")).body;o.parentNode.removeChild(o.parentNode.firstElementChild),o.outerHTML=i}return e&&n&&t.body.insertBefore(a.createTextNode(n),t.body.childNodes[0]||null),se.call(t,Oe?"html":"body")[0]},lt=function(e){return ue.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,(function(){return c.FILTER_ACCEPT}),!1)},ut=function(e){return!(e instanceof K||e instanceof Q||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof w&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI&&"function"==typeof e.insertBefore)},st=function(e){return"object"===(void 0===u?"undefined":V(u))?e instanceof u:e&&"object"===(void 0===e?"undefined":V(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},ct=function(e,t,r){pe[e]&&d(pe[e],(function(e){e.call(n,t,r,Ye)}))},ft=function(e){var t=void 0;if(ct("beforeSanitizeElements",e,null),ut(e))return at(e),!0;if(g(e.nodeName,/[\u0080-\uFFFF]/))return at(e),!0;var r=m(e.nodeName);if(ct("uponSanitizeElement",e,{tagName:r,allowedTags:Ee}),!st(e.firstElementChild)&&(!st(e.content)||!st(e.content.firstElementChild))&&x(/<[/\w]/g,e.innerHTML)&&x(/<[/\w]/g,e.textContent))return at(e),!0;if(!Ee[r]||Ae[r]){if(ze&&!$e[r]){var a=ne(e),i=te(e);if(i&&a)for(var o=i.length-1;o>=0;--o)a.insertBefore(J(i[o],!0),ee(e))}return at(e),!0}return e instanceof s&&!rt(e)?(at(e),!0):"noscript"!==r&&"noembed"!==r||!x(/<\/no(script|embed)/i,e.innerHTML)?(Ne&&3===e.nodeType&&(t=e.textContent,t=y(t,he," "),t=y(t,me," "),e.textContent!==t&&(h(n.removed,{element:e.cloneNode()}),e.textContent=t)),ct("afterSanitizeElements",e,null),!1):(at(e),!0)},dt=function(e,t,n){if(Me&&("id"===t||"name"===t)&&(n in a||n in Ke))return!1;if(Te&&x(ge,t));else if(_e&&x(ye,t));else{if(!De[t]||Ce[t])return!1;if(qe[t]);else if(x(xe,y(n,ve,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==b(n,"data:")||!He[e])if(Se&&!x(be,y(n,ve,"")));else if(n)return!1}return!0},pt=function(e){var t=void 0,r=void 0,a=void 0,i=void 0;ct("beforeSanitizeAttributes",e,null);var o=e.attributes;if(o){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:De};for(i=o.length;i--;){var u=t=o[i],s=u.name,c=u.namespaceURI;if(r=v(t.value),a=m(s),l.attrName=a,l.attrValue=r,l.keepAttr=!0,l.forceKeepAttr=void 0,ct("uponSanitizeAttribute",e,l),r=l.attrValue,!l.forceKeepAttr&&(it(s,e),l.keepAttr))if(x(/\/>/i,r))it(s,e);else{Ne&&(r=y(r,he," "),r=y(r,me," "));var f=e.nodeName.toLowerCase();if(dt(f,a,r))try{c?e.setAttributeNS(c,s,r):e.setAttribute(s,r),p(n.removed)}catch(e){}}}ct("afterSanitizeAttributes",e,null)}},ht=function e(t){var n=void 0,r=lt(t);for(ct("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)ct("uponSanitizeShadowNode",n,null),ft(n)||(n.content instanceof o&&e(n.content),pt(n));ct("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e,a){var i=void 0,l=void 0,s=void 0,c=void 0,f=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!st(e)){if("function"!=typeof e.toString)throw E("toString is not a function");if("string"!=typeof(e=e.toString()))throw E("dirty is not a string, aborting")}if(!n.isSupported){if("object"===V(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(st(e))return t.toStaticHTML(e.outerHTML)}return e}if(Fe||Qe(a),n.removed=[],"string"==typeof e&&(Le=!1),Le);else if(e instanceof u)1===(l=(i=ot("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===l.nodeName||"HTML"===l.nodeName?i=l:i.appendChild(l);else{if(!Pe&&!Ne&&!Oe&&-1===e.indexOf("<"))return ae&&Ie?ae.createHTML(e):e;if(!(i=ot(e)))return Pe?null:ie}i&&je&&at(i.firstChild);for(var d=lt(Le?e:i);s=d.nextNode();)3===s.nodeType&&s===c||ft(s)||(s.content instanceof o&&ht(s.content),pt(s),c=s);if(c=null,Le)return e;if(Pe){if(Re)for(f=ce.call(i.ownerDocument);i.firstChild;)f.appendChild(i.firstChild);else f=i;return Be&&(f=fe.call(r,f,!0)),f}var p=Oe?i.outerHTML:i.innerHTML;return Ne&&(p=y(p,he," "),p=y(p,me," ")),ae&&Ie?ae.createHTML(p):p},n.setConfig=function(e){Qe(e),Fe=!0},n.clearConfig=function(){Ye=null,Fe=!1},n.isValidAttribute=function(e,t,n){Ye||Qe({});var r=m(e),a=m(t);return dt(r,a,n)},n.addHook=function(e,t){"function"==typeof t&&(pe[e]=pe[e]||[],h(pe[e],t))},n.removeHook=function(e){pe[e]&&p(pe[e])},n.removeHooks=function(e){pe[e]&&(pe[e]=[])},n.removeAllHooks=function(){pe={}},n}()}()},5:function(e,t,n){const{getMapValueByKey:r}=n(2),a={hasDescription(){return!!this._json.description},description(){return r(this._json,"description")}};e.exports=a},51:function(e,t,n){e.exports=window.DOMPurify||(window.DOMPurify=n(44).default||n(44))},52:function(e,t,n){e.exports=function(){"use strict";function e(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r={exports:{}};function a(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}r.exports={defaults:{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:a,changeDefaults:function(e){r.exports.defaults=e}};var i=/[&<>"']/,o=/[&<>"']/g,l=/[<>"']|&(?!#?\w+;)/,u=/[<>"']|&(?!#?\w+;)/g,s={"&":"&","<":"<",">":">",'"':""","'":"'"},c=function(e){return s[e]},f=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function d(e){return e.replace(f,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var p=/(^|[^\[])\^/g,h=/[^\w:]/g,m=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,g={},y=/^[^:]+:\/*[^/]*$/,b=/^([^:]+:)[\s\S]*$/,v=/^([^:]+:\/*[^/]*)[\s\S]*$/;function x(e,t){g[" "+e]||(y.test(e)?g[" "+e]=e+"/":g[" "+e]=E(e,"/",!0));var n=-1===(e=g[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(b,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(v,"$1")+t:e+t}function E(e,t,n){var r=e.length;if(0===r)return"";for(var a=0;a=0&&"\\"===n[a];)r=!r;return r?"|":" |"})).split(/ \|/),r=0;if(n.length>t)n.splice(t);else for(;n.length1;)1&t&&(n+=e),t>>=1,e+=e;return n+e},j=r.exports.defaults,P=S,R=T,B=w,I=N;function M(e,t,n){var r=t.href,a=t.title?B(t.title):null,i=e[1].replace(/\\([\[\]])/g,"$1");return"!"!==e[0].charAt(0)?{type:"link",raw:n,href:r,title:a,text:i}:{type:"image",raw:n,href:r,title:a,text:B(i)}}var z=function(){function e(e){this.options=e||j}var t=e.prototype;return t.space=function(e){var t=this.rules.block.newline.exec(e);if(t)return t[0].length>1?{type:"space",raw:t[0]}:{raw:"\n"}},t.code=function(e){var t=this.rules.block.code.exec(e);if(t){var n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:P(n,"\n")}}},t.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],r=function(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var r=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=r.length?e.slice(r.length):e})).join("\n")}(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim():t[2],text:r}}},t.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(/#$/.test(n)){var r=P(n,"#");this.options.pedantic?n=r.trim():r&&!/ $/.test(r)||(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n}}},t.nptable=function(e){var t=this.rules.block.nptable.exec(e);if(t){var n={type:"table",header:R(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[],raw:t[0]};if(n.header.length===n.align.length){var r,a=n.align.length;for(r=0;r ?/gm,"");return{type:"blockquote",raw:t[0],text:n}}},t.list=function(e){var t=this.rules.block.list.exec(e);if(t){var n,r,a,i,o,l,u,s,c,f=t[0],d=t[2],p=d.length>1,h={type:"list",raw:f,ordered:p,start:p?+d.slice(0,-1):"",loose:!1,items:[]},m=t[0].match(this.rules.block.item),g=!1,y=m.length;a=this.rules.block.listItemStart.exec(m[0]);for(var b=0;ba[1].length:i[1].length>=a[0].length||i[1].length>3){m.splice(b,2,m[b]+(!this.options.pedantic&&i[1].length/i.test(r[0])&&(t=!1),!n&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?n=!0:n&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(n=!1),{type:this.options.sanitize?"text":"html",raw:r[0],inLink:t,inRawBlock:n,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):B(r[0]):r[0]}},t.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;var r=P(n.slice(0,-1),"\\");if((n.length-r.length)%2==0)return}else{var a=I(t[2],"()");if(a>-1){var i=(0===t[0].indexOf("!")?5:4)+t[1].length+a;t[2]=t[2].substring(0,a),t[0]=t[0].substring(0,i).trim(),t[3]=""}}var o=t[2],l="";if(this.options.pedantic){var u=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);u&&(o=u[1],l=u[3])}else l=t[3]?t[3].slice(1,-1):"";return o=o.trim(),/^$/.test(n)?o.slice(1):o.slice(1,-1)),M(t,{href:o?o.replace(this.rules.inline._escapes,"$1"):o,title:l?l.replace(this.rules.inline._escapes,"$1"):l},t[0])}},t.reflink=function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var r=(n[2]||n[1]).replace(/\s+/g," ");if(!(r=t[r.toLowerCase()])||!r.href){var a=n[0].charAt(0);return{type:"text",raw:a,text:a}}return M(n,r,n[0])}},t.emStrong=function(e,t,n){void 0===n&&(n="");var r=this.rules.inline.emStrong.lDelim.exec(e);if(r&&(!r[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var a=r[1]||r[2]||"";if(!a||a&&(""===n||this.rules.inline.punctuation.exec(n))){var i,o,l=r[0].length-1,u=l,s=0,c="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+l);null!=(r=c.exec(t));)if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6])if(o=i.length,r[3]||r[4])u+=o;else if(!((r[5]||r[6])&&l%3)||(l+o)%3){if(!((u-=o)>0))return o=Math.min(o,o+u+s),Math.min(l,o)%2?{type:"em",raw:e.slice(0,l+r.index+o+1),text:e.slice(1,l+r.index+o)}:{type:"strong",raw:e.slice(0,l+r.index+o+1),text:e.slice(2,l+r.index+o-1)}}else s+=o}}},t.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),r=/[^ ]/.test(n),a=/^ /.test(n)&&/ $/.test(n);return r&&a&&(n=n.substring(1,n.length-1)),n=B(n,!0),{type:"codespan",raw:t[0],text:n}}},t.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},t.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2]}},t.autolink=function(e,t){var n,r,a=this.rules.inline.autolink.exec(e);if(a)return r="@"===a[2]?"mailto:"+(n=B(this.options.mangle?t(a[1]):a[1])):n=B(a[1]),{type:"link",raw:a[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}},t.url=function(e,t){var n;if(n=this.rules.inline.url.exec(e)){var r,a;if("@"===n[2])a="mailto:"+(r=B(this.options.mangle?t(n[0]):n[0]));else{var i;do{i=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(i!==n[0]);r=B(n[0]),a="www."===n[1]?"http://"+r:r}return{type:"link",raw:n[0],text:r,href:a,tokens:[{type:"text",raw:r,text:r}]}}},t.inlineText=function(e,t,n){var r,a=this.rules.inline.text.exec(e);if(a)return r=t?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(a[0]):B(a[0]):a[0]:B(this.options.smartypants?n(a[0]):a[0]),{type:"text",raw:a[0],text:r}},e}(),L=C,U=k,$=_,H={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:L,table:L,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};H.def=U(H.def).replace("label",H._label).replace("title",H._title).getRegex(),H.bullet=/(?:[*+-]|\d{1,9}[.)])/,H.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,H.item=U(H.item,"gm").replace(/bull/g,H.bullet).getRegex(),H.listItemStart=U(/^( *)(bull) */).replace("bull",H.bullet).getRegex(),H.list=U(H.list).replace(/bull/g,H.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+H.def.source+")").getRegex(),H._tag="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",H._comment=/|$)/,H.html=U(H.html,"i").replace("comment",H._comment).replace("tag",H._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),H.paragraph=U(H._paragraph).replace("hr",H.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",H._tag).getRegex(),H.blockquote=U(H.blockquote).replace("paragraph",H.paragraph).getRegex(),H.normal=$({},H),H.gfm=$({},H.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),H.gfm.nptable=U(H.gfm.nptable).replace("hr",H.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",H._tag).getRegex(),H.gfm.table=U(H.gfm.table).replace("hr",H.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",H._tag).getRegex(),H.pedantic=$({},H.normal,{html:U("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",H._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:L,paragraph:U(H.normal._paragraph).replace("hr",H.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",H.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var V={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:L,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/\_\_[^_*]*?\*[^_*]*?\_\_|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/\*\*[^_*]*?\_[^_*]*?\*\*|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:L,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~"};V.punctuation=U(V.punctuation).replace(/punctuation/g,V._punctuation).getRegex(),V.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,V.escapedEmSt=/\\\*|\\_/g,V._comment=U(H._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),V.emStrong.lDelim=U(V.emStrong.lDelim).replace(/punct/g,V._punctuation).getRegex(),V.emStrong.rDelimAst=U(V.emStrong.rDelimAst,"g").replace(/punct/g,V._punctuation).getRegex(),V.emStrong.rDelimUnd=U(V.emStrong.rDelimUnd,"g").replace(/punct/g,V._punctuation).getRegex(),V._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,V._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,V._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,V.autolink=U(V.autolink).replace("scheme",V._scheme).replace("email",V._email).getRegex(),V._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,V.tag=U(V.tag).replace("comment",V._comment).replace("attribute",V._attribute).getRegex(),V._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,V._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,V._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,V.link=U(V.link).replace("label",V._label).replace("href",V._href).replace("title",V._title).getRegex(),V.reflink=U(V.reflink).replace("label",V._label).getRegex(),V.reflinkSearch=U(V.reflinkSearch,"g").replace("reflink",V.reflink).replace("nolink",V.nolink).getRegex(),V.normal=$({},V),V.pedantic=$({},V.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:U(/^!?\[(label)\]\((.*?)\)/).replace("label",V._label).getRegex(),reflink:U(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",V._label).getRegex()}),V.gfm=$({},V.normal,{escape:U(V.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}var J=function(){function t(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Y,this.options.tokenizer=this.options.tokenizer||new W,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var t={block:K.normal,inline:Q.normal};this.options.pedantic?(t.block=K.pedantic,t.inline=Q.pedantic):this.options.gfm&&(t.block=K.gfm,this.options.breaks?t.inline=Q.breaks:t.inline=Q.gfm),this.tokenizer.rules=t}t.lex=function(e,n){return new t(n).lex(e)},t.lexInline=function(e,n){return new t(n).inlineTokens(e)};var n,r,a,i=t.prototype;return i.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens,!0),this.inline(this.tokens),this.tokens},i.blockTokens=function(e,t,n){var r,a,i,o,l,u,s=this;for(void 0===t&&(t=[]),void 0===n&&(n=!0),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((function(n){return!!(r=n.call(s,e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)}))))if(r=this.tokenizer.space(e))e=e.substring(r.raw.length),r.type&&t.push(r);else if(r=this.tokenizer.code(e))e=e.substring(r.raw.length),(o=t[t.length-1])&&"paragraph"===o.type?(o.raw+="\n"+r.raw,o.text+="\n"+r.text):t.push(r);else if(r=this.tokenizer.fences(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.heading(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.nptable(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.hr(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.blockquote(e))e=e.substring(r.raw.length),r.tokens=this.blockTokens(r.text,[],n),t.push(r);else if(r=this.tokenizer.list(e)){for(e=e.substring(r.raw.length),i=r.items.length,a=0;a=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(l=e.substring(0,t+1))}(),n&&(r=this.tokenizer.paragraph(l)))o=t[t.length-1],u&&"paragraph"===o.type?(o.raw+="\n"+r.raw,o.text+="\n"+r.text):t.push(r),u=l.length!==e.length,e=e.substring(r.raw.length);else if(r=this.tokenizer.text(e))e=e.substring(r.raw.length),(o=t[t.length-1])&&"text"===o.type?(o.raw+="\n"+r.raw,o.text+="\n"+r.text):t.push(r);else if(e){var c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}throw new Error(c)}return t},i.inline=function(e){var t,n,r,a,i,o,l=e.length;for(t=0;t0)for(;null!=(u=this.tokenizer.rules.inline.reflinkSearch.exec(f));)d.includes(u[0].slice(u[0].lastIndexOf("[")+1,-1))&&(f=f.slice(0,u.index)+"["+Z("a",u[0].length-2)+"]"+f.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(u=this.tokenizer.rules.inline.blockSkip.exec(f));)f=f.slice(0,u.index)+"["+Z("a",u[0].length-2)+"]"+f.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(u=this.tokenizer.rules.inline.escapedEmSt.exec(f));)f=f.slice(0,u.index)+"++"+f.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(s||(c=""),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(n){return!!(a=n.call(l,e,t))&&(e=e.substring(a.raw.length),t.push(a),!0)}))))if(a=this.tokenizer.escape(e))e=e.substring(a.raw.length),t.push(a);else if(a=this.tokenizer.tag(e,n,r))e=e.substring(a.raw.length),n=a.inLink,r=a.inRawBlock,(i=t[t.length-1])&&"text"===a.type&&"text"===i.type?(i.raw+=a.raw,i.text+=a.text):t.push(a);else if(a=this.tokenizer.link(e))e=e.substring(a.raw.length),"link"===a.type&&(a.tokens=this.inlineTokens(a.text,[],!0,r)),t.push(a);else if(a=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(a.raw.length),i=t[t.length-1],"link"===a.type?(a.tokens=this.inlineTokens(a.text,[],!0,r),t.push(a)):i&&"text"===a.type&&"text"===i.type?(i.raw+=a.raw,i.text+=a.text):t.push(a);else if(a=this.tokenizer.emStrong(e,f,c))e=e.substring(a.raw.length),a.tokens=this.inlineTokens(a.text,[],n,r),t.push(a);else if(a=this.tokenizer.codespan(e))e=e.substring(a.raw.length),t.push(a);else if(a=this.tokenizer.br(e))e=e.substring(a.raw.length),t.push(a);else if(a=this.tokenizer.del(e))e=e.substring(a.raw.length),a.tokens=this.inlineTokens(a.text,[],n,r),t.push(a);else if(a=this.tokenizer.autolink(e,X))e=e.substring(a.raw.length),t.push(a);else if(n||!(a=this.tokenizer.url(e,X))){if(o=e,this.options.extensions&&this.options.extensions.startInline&&function(){var t=1/0,n=e.slice(1),r=void 0;l.options.extensions.startInline.forEach((function(e){"number"==typeof(r=e.call(this,n))&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}(),a=this.tokenizer.inlineText(o,r,G))e=e.substring(a.raw.length),"_"!==a.raw.slice(-1)&&(c=a.raw.slice(-1)),s=!0,(i=t[t.length-1])&&"text"===i.type?(i.raw+=a.raw,i.text+=a.text):t.push(a);else if(e){var p="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(p);break}throw new Error(p)}}else e=e.substring(a.raw.length),t.push(a);return t},n=t,a=[{key:"rules",get:function(){return{block:K,inline:Q}}}],(r=null)&&e(n.prototype,r),a&&e(n,a),t}(),ee=r.exports.defaults,te=A,ne=w,re=function(){function e(e){this.options=e||ee}var t=e.prototype;return t.code=function(e,t,n){var r=(t||"").match(/\S*/)[0];if(this.options.highlight){var a=this.options.highlight(e,r);null!=a&&a!==e&&(n=!0,e=a)}return e=e.replace(/\n$/,"")+"\n",r?'
'+(n?e:ne(e,!0))+"
\n":"
"+(n?e:ne(e,!0))+"
\n"},t.blockquote=function(e){return"
\n"+e+"
\n"},t.html=function(e){return e},t.heading=function(e,t,n,r){return this.options.headerIds?"'+e+"\n":""+e+"\n"},t.hr=function(){return this.options.xhtml?"
\n":"
\n"},t.list=function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"},t.listitem=function(e){return"
  • "+e+"
  • \n"},t.checkbox=function(e){return" "},t.paragraph=function(e){return"

    "+e+"

    \n"},t.table=function(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"},t.tablerow=function(e){return"\n"+e+"\n"},t.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"\n"},t.strong=function(e){return""+e+""},t.em=function(e){return""+e+""},t.codespan=function(e){return""+e+""},t.br=function(){return this.options.xhtml?"
    ":"
    "},t.del=function(e){return""+e+""},t.link=function(e,t,n){if(null===(e=te(this.options.sanitize,this.options.baseUrl,e)))return n;var r='"},t.image=function(e,t,n){if(null===(e=te(this.options.sanitize,this.options.baseUrl,e)))return n;var r=''+n+'":">"},t.text=function(e){return e},e}(),ae=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,n){return""+n},t.image=function(e,t,n){return""+n},t.br=function(){return""},e}(),ie=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{n=e+"-"+ ++r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n},t.slug=function(e,t){void 0===t&&(t={});var n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)},e}(),oe=re,le=ae,ue=ie,se=r.exports.defaults,ce=D,fe=J,de=function(){function e(e){this.options=e||se,this.options.renderer=this.options.renderer||new oe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new le,this.slugger=new ue}e.parse=function(t,n){return new e(n).parse(t)},e.parseInline=function(t,n){return new e(n).parseInline(t)};var t=e.prototype;return t.parse=function(e,t){void 0===t&&(t=!0);var n,r,a,i,o,l,u,s,c,f,d,p,h,m,g,y,b,v,x,E="",w=e.length;for(n=0;n0&&"text"===g.tokens[0].type?(g.tokens[0].text=v+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=v+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:v}):m+=v),m+=this.parse(g.tokens,h),c+=this.renderer.listitem(m,b,y);E+=this.renderer.list(c,d,p);continue;case"html":E+=this.renderer.html(f.text);continue;case"paragraph":E+=this.renderer.paragraph(this.parseInline(f.tokens));continue;case"text":for(c=f.tokens?this.parseInline(f.tokens):f.text;n+1An error occurred:

    "+ve(e.message+"",!0)+"
    ";throw e}}return De.options=De.setOptions=function(e){return ye(De.defaults,e),Ee(De.defaults),De},De.getDefaults=xe,De.defaults=we,De.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;rAn error occurred:

    "+ve(e.message+"",!0)+"
    ";throw e}},De.Parser=de,De.parser=de.parse,De.Renderer=he,De.TextRenderer=me,De.Lexer=fe,De.lexer=fe.lex,De.Tokenizer=pe,De.Slugger=ge,De.parse=De,De}()},53:function(e,t){e.exports=function(e){const t={literal:"true false null"},n=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],r=[e.QUOTE_STRING_MODE,e.C_NUMBER_MODE],a={end:",",endsWithParent:!0,excludeEnd:!0,contains:r,keywords:t},i={begin:/\{/,end:/\}/,contains:[{className:"attr",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE],illegal:"\\n"},e.inherit(a,{begin:/:/})].concat(n),illegal:"\\S"},o={begin:"\\[",end:"\\]",contains:[e.inherit(a)],illegal:"\\S"};return r.push(i,o),n.forEach((function(e){r.push(e)})),{name:"JSON",contains:r,keywords:t,illegal:"\\S"}}},54:function(e,t){e.exports=function(e){var t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",r={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,{className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]}]},a=e.inherit(r,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),i={className:"number",begin:"\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b"},o={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},l={begin:/\{/,end:/\}/,contains:[o],illegal:"\\n",relevance:0},u={begin:"\\[",end:"\\]",contains:[o],illegal:"\\n",relevance:0},s=[{className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ \t]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ \t]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ \t]|$)"}]},{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},i,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},l,u,r],c=[...s];return c.pop(),c.push(a),o.contains=c,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:s}}},55:function(e,t){function n(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}e.exports=function(e){const t={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[t]}]};Object.assign(t,{className:"variable",variants:[{begin:n(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});const a={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},i={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},o={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t,a]};a.contains.push(o);const l={begin:/\$\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,t]},u=e.SHEBANG({binary:`(${["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"].join("|")})`,relevance:10}),s={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z._-]+\b/,keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp"},contains:[u,e.SHEBANG(),s,l,e.HASH_COMMENT_MODE,i,o,{className:"",begin:/\\"/},{className:"string",begin:/'/,end:/'/},t]}}},56:function(e,t,n){"use strict";var r=n(88);function a(e,t,n){if(3===arguments.length)return a.set(e,t,n);if(2===arguments.length)return a.get(e,t);var r=a.bind(a,e);for(var i in a)a.hasOwnProperty(i)&&(r[i]=a[i].bind(r,e));return r}e.exports=a,a.get=function(e,t){for(var n=Array.isArray(t)?t:a.parse(t),r=0;r=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function h(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return L(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(r)return L(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return S(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return _(this,t,n);case"latin1":case"binary":return T(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,a){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0){if(!a)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,a);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,a);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,a){var i,o=1,l=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,l/=2,u/=2,n/=2}function s(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(a){var c=-1;for(i=n;il&&(n=l-u),i=n;i>=0;i--){for(var f=!0,d=0;da&&(r=a):r=a;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var o=0;o>8,a=n%256,i.push(a),i.push(r);return i}(t,e.length-n),e,n,r)}function A(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);for(var r=[],a=t;a239?4:s>223?3:s>191?2:1;if(a+f<=n)switch(f){case 1:s<128&&(c=s);break;case 2:128==(192&(i=e[a+1]))&&(u=(31&s)<<6|63&i)>127&&(c=u);break;case 3:i=e[a+1],o=e[a+2],128==(192&i)&&128==(192&o)&&(u=(15&s)<<12|(63&i)<<6|63&o)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:i=e[a+1],o=e[a+2],l=e[a+3],128==(192&i)&&128==(192&o)&&128==(192&l)&&(u=(15&s)<<18|(63&i)<<12|(63&o)<<6|63&l)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),a+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,a){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===a&&(a=this.length),t<0||n>e.length||r<0||a>this.length)throw new RangeError("out of range index");if(r>=a&&t>=n)return 0;if(r>=a)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(a>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),l=Math.min(i,o),s=this.slice(r,a),c=e.slice(t,n),f=0;fa)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return x(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return D(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function _(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;ar)&&(n=r);for(var a="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function F(e,t,n,r,a,i){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||te.length)throw new RangeError("Index out of range")}function j(e,t,n,r){t<0&&(t=65535+t+1);for(var a=0,i=Math.min(e.length-n,2);a>>8*(r?a:1-a)}function P(e,t,n,r){t<0&&(t=4294967295+t+1);for(var a=0,i=Math.min(e.length-n,4);a>>8*(r?a:3-a)&255}function R(e,t,n,r,a,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function B(e,t,n,r,i){return i||R(e,0,n,4),a.write(e,t,n,r,23,4),n+4}function I(e,t,n,r,i){return i||R(e,0,n,8),a.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(a*=256);)r+=this[e+--t]*a;return r},u.prototype.readUInt8=function(e,t){return t||O(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||O(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||O(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=this[e],a=1,i=0;++i=(a*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=t,a=1,i=this[e+--r];r>0&&(a*=256);)i+=this[e+--r]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||O(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||O(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||O(e,4,this.length),a.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||O(e,4,this.length),a.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||O(e,8,this.length),a.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||O(e,8,this.length),a.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||F(this,e,t,n,Math.pow(2,8*n)-1,0);var a=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+a]=e/i&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):P(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var a=Math.pow(2,8*n-1);F(this,e,t,n,a-1,-a)}var i=0,o=1,l=0;for(this[t]=255&e;++i>0)-l&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var a=Math.pow(2,8*n-1);F(this,e,t,n,a-1,-a)}var i=n-1,o=1,l=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===l&&0!==this[t+i+1]&&(l=1),this[t+i]=(e/o>>0)-l&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):P(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return B(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return B(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return I(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return I(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--a)e[a+t]=this[a+n];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(a=0;a>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&i.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function U(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(M,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function $(e,t,n,r){for(var a=0;a=t.length||a>=e.length);++a)t[a+n]=e[a];return a}}).call(this,n(12))},80:function(e,t){ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ -t.read=function(e,t,n,r,a){var i,o,l=8*a-r-1,u=(1<>1,c=-7,f=n?a-1:0,d=n?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-c)-1,p>>=-c,c+=l;c>0;i=256*i+e[t+f],f+=d,c-=8);for(o=i&(1<<-c)-1,i>>=-c,c+=r;c>0;o=256*o+e[t+f],f+=d,c-=8);if(0===i)i=1-s;else{if(i===u)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,r),i-=s}return(p?-1:1)*o*Math.pow(2,i-r)},t.write=function(e,t,n,r,a,i){var o,l,u,s=8*i-a-1,c=(1<>1,d=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),(t+=o+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(o++,u/=2),o+f>=c?(l=0,o=c):o+f>=1?(l=(t*u-1)*Math.pow(2,a),o+=f):(l=t*Math.pow(2,f-1)*Math.pow(2,a),o=0));a>=8;e[n+p]=255&l,p+=h,l/=256,a-=8);for(o=o<0;e[n+p]=255&o,p+=h,o/=256,s-=8);e[n+p-h]|=128*m}},81:function(e,t,n){const r=n(37);e.exports=class extends r{isPublish(){return!1}isSubscribe(){return!0}kind(){return"subscribe"}}},82:function(e,t,n){const{createMapOfType:r,getMapValueOfType:a,mix:i}=n(2),o=n(3),l=n(39),u=n(7),s=n(83),c=n(36),f=n(41),d=n(85),p=n(86),h=n(4);e.exports=i(class extends o{messages(){return r(this._json.messages,l)}hasMessages(){return!!this._json.messages}message(e){return a(this._json.messages,e,l)}schemas(){return r(this._json.schemas,u)}hasSchemas(){return!!this._json.schemas}schema(e){return a(this._json.schemas,e,u)}securitySchemes(){return r(this._json.securitySchemes,s)}hasSecuritySchemes(){return!!this._json.securitySchemes}securityScheme(e){return a(this._json.securitySchemes,e,s)}parameters(){return r(this._json.parameters,c)}hasParameters(){return!!this._json.parameters}parameter(e){return a(this._json.parameters,e,c)}correlationIds(){return r(this._json.correlationIds,f)}hasCorrelationIds(){return!!this._json.correlationIds}correlationId(e){return a(this._json.correlationIds,e,f)}operationTraits(){return r(this._json.operationTraits,d)}hasOperationTraits(){return!!this._json.operationTraits}operationTrait(e){return a(this._json.operationTraits,e,d)}messageTraits(){return r(this._json.messageTraits,p)}hasMessageTraits(){return!!this._json.messageTraits}messageTrait(e){return a(this._json.messageTraits,e,p)}},h)},83:function(e,t,n){const{createMapOfType:r,mix:a}=n(2),i=n(3),o=n(84),l=n(5),u=n(4);e.exports=a(class extends i{type(){return this._json.type}name(){return this._json.name}in(){return this._json.in}scheme(){return this._json.scheme}bearerFormat(){return this._json.bearerFormat}openIdConnectUrl(){return this._json.openIdConnectUrl}flows(){return r(this._json.flows,o)}},l,u)},84:function(e,t,n){const{mix:r}=n(2),a=n(3),i=n(4);e.exports=r(class extends a{authorizationUrl(){return this._json.authorizationUrl}tokenUrl(){return this._json.tokenUrl}refreshUrl(){return this._json.refreshUrl}scopes(){return this._json.scopes}},i)},85:function(e,t,n){const r=n(38);e.exports=class extends r{}},86:function(e,t,n){const r=n(40);e.exports=class extends r{}},87:function(e,t,n){const{xParserMessageName:r,xParserSchemaId:a}=n(42),{traverseAsyncApiDocument:i}=n(43);function o(e,t){e.forEach(e=>{void 0===e.name()&&void 0===e.ext(r)&&(e.json()[String(r)]=``)})}e.exports={assignNameToComponentMessages:function(e){if(e.hasComponents())for(const[t,n]of Object.entries(e.components().messages()))void 0===n.name()&&(n.json()[String(r)]=t)},assignUidToParameterSchemas:function(e){e.channelNames().forEach(t=>{const n=e.channel(t);for(const[e,t]of Object.entries(n.parameters()))t.json()[String(a)]=e})},assignUidToComponentSchemas:function(e){if(e.hasComponents())for(const[t,n]of Object.entries(e.components().schemas()))n.json()[String(a)]=t},assignNameToAnonymousMessages:function(e){let t=0;e.hasChannels()&&e.channelNames().forEach(n=>{const r=e.channel(n);r.hasPublish()&&o(r.publish().messages(),++t),r.hasSubscribe()&&o(r.subscribe().messages(),++t)})},assignIdToAnonymousSchemas:function(e){let t=0;i(e,e=>{e.uid()||(e.json()[String(a)]=``)})}}},88:function(e,t){var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,t,a){if("[object Function]"!==r.call(t))throw new TypeError("iterator must be a function");var i=e.length;if(i===+i)for(var o=0;o>1,c=-7,f=n?a-1:0,d=n?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-c)-1,p>>=-c,c+=l;c>0;i=256*i+e[t+f],f+=d,c-=8);for(o=i&(1<<-c)-1,i>>=-c,c+=r;c>0;o=256*o+e[t+f],f+=d,c-=8);if(0===i)i=1-s;else{if(i===u)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,r),i-=s}return(p?-1:1)*o*Math.pow(2,i-r)},t.write=function(e,t,n,r,a,i){var o,l,u,s=8*i-a-1,c=(1<>1,d=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),(t+=o+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(o++,u/=2),o+f>=c?(l=0,o=c):o+f>=1?(l=(t*u-1)*Math.pow(2,a),o+=f):(l=t*Math.pow(2,f-1)*Math.pow(2,a),o=0));a>=8;e[n+p]=255&l,p+=h,l/=256,a-=8);for(o=o<0;e[n+p]=255&o,p+=h,o/=256,s-=8);e[n+p-h]|=128*m}},81:function(e,t,n){const r=n(37);e.exports=class extends r{isPublish(){return!1}isSubscribe(){return!0}kind(){return"subscribe"}}},82:function(e,t,n){const{createMapOfType:r,getMapValueOfType:a,mix:i}=n(2),o=n(3),l=n(39),u=n(7),s=n(83),c=n(36),f=n(41),d=n(85),p=n(86),h=n(4);e.exports=i(class extends o{messages(){return r(this._json.messages,l)}hasMessages(){return!!this._json.messages}message(e){return a(this._json.messages,e,l)}schemas(){return r(this._json.schemas,u)}hasSchemas(){return!!this._json.schemas}schema(e){return a(this._json.schemas,e,u)}securitySchemes(){return r(this._json.securitySchemes,s)}hasSecuritySchemes(){return!!this._json.securitySchemes}securityScheme(e){return a(this._json.securitySchemes,e,s)}parameters(){return r(this._json.parameters,c)}hasParameters(){return!!this._json.parameters}parameter(e){return a(this._json.parameters,e,c)}correlationIds(){return r(this._json.correlationIds,f)}hasCorrelationIds(){return!!this._json.correlationIds}correlationId(e){return a(this._json.correlationIds,e,f)}operationTraits(){return r(this._json.operationTraits,d)}hasOperationTraits(){return!!this._json.operationTraits}operationTrait(e){return a(this._json.operationTraits,e,d)}messageTraits(){return r(this._json.messageTraits,p)}hasMessageTraits(){return!!this._json.messageTraits}messageTrait(e){return a(this._json.messageTraits,e,p)}},h)},83:function(e,t,n){const{createMapOfType:r,mix:a}=n(2),i=n(3),o=n(84),l=n(5),u=n(4);e.exports=a(class extends i{type(){return this._json.type}name(){return this._json.name}in(){return this._json.in}scheme(){return this._json.scheme}bearerFormat(){return this._json.bearerFormat}openIdConnectUrl(){return this._json.openIdConnectUrl}flows(){return r(this._json.flows,o)}},l,u)},84:function(e,t,n){const{mix:r}=n(2),a=n(3),i=n(4);e.exports=r(class extends a{authorizationUrl(){return this._json.authorizationUrl}tokenUrl(){return this._json.tokenUrl}refreshUrl(){return this._json.refreshUrl}scopes(){return this._json.scopes}},i)},85:function(e,t,n){const r=n(38);e.exports=class extends r{}},86:function(e,t,n){const r=n(40);e.exports=class extends r{}},87:function(e,t,n){const{xParserMessageName:r,xParserSchemaId:a}=n(42),{traverseAsyncApiDocument:i}=n(43);function o(e){for(const[t,n]of Object.entries(e))n.schema()&&(n.schema().json()[String(a)]=t)}function l(e,t){e.forEach(e=>{void 0===e.name()&&void 0===e.ext(r)&&(e.json()[String(r)]=``)})}e.exports={assignNameToComponentMessages:function(e){if(e.hasComponents())for(const[t,n]of Object.entries(e.components().messages()))void 0===n.name()&&(n.json()[String(r)]=t)},assignUidToParameterSchemas:function(e){e.channelNames().forEach(t=>{o(e.channel(t).parameters())})},assignUidToComponentSchemas:function(e){if(e.hasComponents())for(const[t,n]of Object.entries(e.components().schemas()))n.json()[String(a)]=t},assignUidToComponentParameterSchemas:function(e){e.hasComponents()&&o(e.components().parameters())},assignNameToAnonymousMessages:function(e){let t=0;e.hasChannels()&&e.channelNames().forEach(n=>{const r=e.channel(n);r.hasPublish()&&l(r.publish().messages(),++t),r.hasSubscribe()&&l(r.subscribe().messages(),++t)})},assignIdToAnonymousSchemas:function(e){let t=0;i(e,e=>{e.uid()||(e.json()[String(a)]=``)})}}},88:function(e,t){var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,t,a){if("[object Function]"!==r.call(t))throw new TypeError("iterator must be a function");var i=e.length;if(i===+i)for(var o=0;o