redoc 2.5.2 → 2.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -6
- package/bundles/{cfb294d7f6536ffa8d42.worker.js.LICENSE.txt → d87bcbdbea8f8f5aa26f.worker.js.LICENSE.txt} +1 -1
- package/bundles/d87bcbdbea8f8f5aa26f.worker.js.map +1 -0
- package/bundles/redoc.browser.lib.js +212 -199
- package/bundles/redoc.browser.lib.js.LICENSE.txt +1 -1
- package/bundles/redoc.browser.lib.js.map +1 -1
- package/bundles/redoc.lib.js +212 -199
- package/bundles/redoc.lib.js.LICENSE.txt +1 -1
- package/bundles/redoc.lib.js.map +1 -1
- package/bundles/redoc.standalone.js +280 -261
- package/bundles/redoc.standalone.js.LICENSE.txt +2 -2
- package/bundles/redoc.standalone.js.map +1 -1
- package/package.json +14 -9
- package/CHANGELOG.md +0 -2354
- package/bundles/cfb294d7f6536ffa8d42.worker.js.map +0 -1
package/bundles/redoc.lib.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! For license information please see redoc.lib.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Redoc=t():e.Redoc=t()}(this,(function(){return function(){var e={997:function(e,t,r){"use strict";var n=r(991),o=r.n(n),i=r(314),s=r.n(i)()(o());s.push([e.id,".ps{overflow:hidden!important;overflow-anchor:none;-ms-overflow-style:none;touch-action:auto;-ms-touch-action:auto}.ps__rail-x{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;height:15px;bottom:0;position:absolute}.ps__rail-y{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;width:15px;right:0;position:absolute}.ps--active-x>.ps__rail-x,.ps--active-y>.ps__rail-y{display:block;background-color:transparent}.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y,.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y{opacity:.6}.ps .ps__rail-x:hover,.ps .ps__rail-y:hover,.ps .ps__rail-x:focus,.ps .ps__rail-y:focus,.ps .ps__rail-x.ps--clicking,.ps .ps__rail-y.ps--clicking{background-color:#eee;opacity:.9}.ps__thumb-x{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,height .2s ease-in-out;-webkit-transition:background-color .2s linear,height .2s ease-in-out;height:6px;bottom:2px;position:absolute}.ps__thumb-y{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out;width:6px;right:2px;position:absolute}.ps__rail-x:hover>.ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x.ps--clicking .ps__thumb-x{background-color:#999;height:11px}.ps__rail-y:hover>.ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y.ps--clicking .ps__thumb-y{background-color:#999;width:11px}@supports (-ms-overflow-style: none){.ps{overflow:auto!important}}@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){.ps{overflow:auto!important}}\n","",{version:3,sources:["webpack://./node_modules/perfect-scrollbar/css/perfect-scrollbar.css"],names:[],mappings:"AAGA,IACE,yBAAU,CACV,oBAAiB,CACjB,uBAAoB,CACpB,iBAAc,CACd,qBACF,CAKA,YACE,YAAS,CACT,SAAS,CACT,yDAAqD,CACrD,iEAA6D,CAC7D,WAAQ,CAER,QAAQ,CAER,iBACF,CAEA,YACE,YAAS,CACT,SAAS,CACT,yDAAqD,CACrD,iEAA6D,CAC7D,UAAO,CAEP,OAAO,CAEP,iBACF,CAEA,oDAEE,aAAS,CACT,4BACF,CAEA,oJAME,UACF,CAEA,kJAME,qBAAkB,CAClB,UACF,CAKA,aACE,qBAAkB,CAnEpB,iBAoEiB,CACf,6DAAoD,CACpD,qEAA4D,CAC5D,UAAQ,CAER,UAAQ,CAER,iBACF,CAEA,aACE,qBAAkB,CA/EpB,iBAgFiB,CACf,4DAAmD,CACnD,oEAA2D,CAC3D,SAAO,CAEP,SAAO,CAEP,iBACF,CAEA,oGAGE,qBAAkB,CAClB,WACF,CAEA,oGAGE,qBAAkB,CAClB,UACF,CAGA,qCACE,IACE,uBACF,CACF,CAEA,wEACE,IACE,uBACF,CACF",sourcesContent:["/*\n * Container style\n */\n.ps {\n overflow: hidden !important;\n overflow-anchor: none;\n -ms-overflow-style: none;\n touch-action: auto;\n -ms-touch-action: auto;\n}\n\n/*\n * Scrollbar rail styles\n */\n.ps__rail-x {\n display: none;\n opacity: 0;\n transition: background-color .2s linear, opacity .2s linear;\n -webkit-transition: background-color .2s linear, opacity .2s linear;\n height: 15px;\n /* there must be 'bottom' or 'top' for ps__rail-x */\n bottom: 0px;\n /* please don't change 'position' */\n position: absolute;\n}\n\n.ps__rail-y {\n display: none;\n opacity: 0;\n transition: background-color .2s linear, opacity .2s linear;\n -webkit-transition: background-color .2s linear, opacity .2s linear;\n width: 15px;\n /* there must be 'right' or 'left' for ps__rail-y */\n right: 0;\n /* please don't change 'position' */\n position: absolute;\n}\n\n.ps--active-x > .ps__rail-x,\n.ps--active-y > .ps__rail-y {\n display: block;\n background-color: transparent;\n}\n\n.ps:hover > .ps__rail-x,\n.ps:hover > .ps__rail-y,\n.ps--focus > .ps__rail-x,\n.ps--focus > .ps__rail-y,\n.ps--scrolling-x > .ps__rail-x,\n.ps--scrolling-y > .ps__rail-y {\n opacity: 0.6;\n}\n\n.ps .ps__rail-x:hover,\n.ps .ps__rail-y:hover,\n.ps .ps__rail-x:focus,\n.ps .ps__rail-y:focus,\n.ps .ps__rail-x.ps--clicking,\n.ps .ps__rail-y.ps--clicking {\n background-color: #eee;\n opacity: 0.9;\n}\n\n/*\n * Scrollbar thumb styles\n */\n.ps__thumb-x {\n background-color: #aaa;\n border-radius: 6px;\n transition: background-color .2s linear, height .2s ease-in-out;\n -webkit-transition: background-color .2s linear, height .2s ease-in-out;\n height: 6px;\n /* there must be 'bottom' for ps__thumb-x */\n bottom: 2px;\n /* please don't change 'position' */\n position: absolute;\n}\n\n.ps__thumb-y {\n background-color: #aaa;\n border-radius: 6px;\n transition: background-color .2s linear, width .2s ease-in-out;\n -webkit-transition: background-color .2s linear, width .2s ease-in-out;\n width: 6px;\n /* there must be 'right' for ps__thumb-y */\n right: 2px;\n /* please don't change 'position' */\n position: absolute;\n}\n\n.ps__rail-x:hover > .ps__thumb-x,\n.ps__rail-x:focus > .ps__thumb-x,\n.ps__rail-x.ps--clicking .ps__thumb-x {\n background-color: #999;\n height: 11px;\n}\n\n.ps__rail-y:hover > .ps__thumb-y,\n.ps__rail-y:focus > .ps__thumb-y,\n.ps__rail-y.ps--clicking .ps__thumb-y {\n background-color: #999;\n width: 11px;\n}\n\n/* MS supports */\n@supports (-ms-overflow-style: none) {\n .ps {\n overflow: auto !important;\n }\n}\n\n@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n .ps {\n overflow: auto !important;\n }\n}\n"],sourceRoot:""}]),t.A=s},314:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=e(t);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var i=0;i<this.length;i++){var s=this[i][0];null!=s&&(o[s]=!0)}for(var a=0;a<e.length;a++){var l=[].concat(e[a]);n&&o[l[0]]||(r&&(l[2]?l[2]="".concat(r," and ").concat(l[2]):l[2]=r),t.push(l))}},t}},991:function(e){"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}e.exports=function(e){var r,n,o=(n=4,function(e){if(Array.isArray(e))return e}(r=e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,o,i=[],s=!0,a=!1;try{for(r=r.call(e);!(s=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==r.return||r.return()}finally{if(a)throw o}}return i}}(r,n)||function(e,r){if(e){if("string"==typeof e)return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,r):void 0}}(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[1],s=o[3];if("function"==typeof btoa){var a=btoa(unescape(encodeURIComponent(JSON.stringify(s)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),c="/*# ".concat(l," */"),p=s.sources.map((function(e){return"/*# sourceURL=".concat(s.sourceRoot||"").concat(e," */")}));return[i].concat(p).concat([c]).join("\n")}return[i].join("\n")}},353:function(e,t,r){"use strict";r.d(t,{Ay:function(){return i}});var n=require("lunr"),o=(e,t,r)=>new Promise(((n,o)=>{var i=e=>{try{a(r.next(e))}catch(e){o(e)}},s=e=>{try{a(r.throw(e))}catch(e){o(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(i,s);a((r=r.apply(e,t)).next())}));class i{constructor(){this.add=d,this.done=h,this.search=b,this.toJS=m,this.load=y,this.dispose=g,this.fromExternalJS=f}}let s,a,l,c=[];function p(){s=new n.Builder,s.field("title"),s.field("description"),s.ref("ref"),s.pipeline.add(n.trimmer,n.stopWordFilter,n.stemmer),l=new Promise((e=>{a=e}))}n.tokenizer.separator=/\s+/,p();const u=e=>{const t=n.trimmer(new n.Token(e,{}));return"*"+n.stemmer(t)+"*"};function d(e,t,r){const n=c.push(r)-1,o={title:e.toLowerCase(),description:t.toLowerCase(),ref:n};s.add(o)}function h(){return o(this,null,(function*(){a(s.build())}))}function m(){return o(this,null,(function*(){return{store:c,index:(yield l).toJSON()}}))}function f(e,t){return o(this,null,(function*(){try{if(importScripts(e),!self[t])throw new Error("Broken index file format");y(self[t])}catch(e){console.error("Failed to load search index: "+e.message)}}))}function y(e){return o(this,null,(function*(){c=e.store,a(n.Index.load(e.index))}))}function g(){return o(this,null,(function*(){c=[],p()}))}function b(e,t=0){return o(this,null,(function*(){if(0===e.trim().length)return[];let r=(yield l).query((t=>{e.trim().toLowerCase().split(/\s+/).forEach((e=>{if(1===e.length)return;const r=u(e);t.term(r,{})}))}));return t>0&&(r=r.slice(0,t)),r.map((e=>({meta:c[e.ref],score:e.score})))}))}},435:function(e,t,r){"use strict";const n=r(648),o={}.NODE_DISABLE_COLORS?{red:"",yellow:"",green:"",normal:""}:{red:"[31m",yellow:"[33;1m",green:"[32m",normal:"[0m"};function i(e,t){function r(e,t){return n.stringify(e)===n.stringify(Object.assign({},e,t))}return r(e,t)&&r(t,e)}function s(e){let t=(e=e.replace("[]","Array")).split("/");return t[0]=t[0].replace(/[^A-Za-z0-9_\-\.]+|\s+/gm,"_"),t.join("/")}String.prototype.toCamelCase=function(){return this.toLowerCase().replace(/[-_ \/\.](.)/g,(function(e,t){return t.toUpperCase()}))},e.exports={colour:o,uniqueOnly:function(e,t,r){return r.indexOf(e)===t},hasDuplicates:function(e){return new Set(e).size!==e.length},allSame:function(e){return new Set(e).size<=1},distinctArray:function(e){return e.length===function(e){let t=[];for(let r of e)t.find((function(e,t,n){return i(e,r)}))||t.push(r);return t}(e).length},firstDupe:function(e){return e.find((function(t,r,n){return e.indexOf(t)<r}))},hash:function(e){let t,r=0;if(0===e.length)return r;for(let n=0;n<e.length;n++)t=e.charCodeAt(n),r=(r<<5)-r+t,r|=0;return r},parameterTypeProperties:["format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","minLength","maxLength","multipleOf","minItems","maxItems","uniqueItems","minProperties","maxProperties","additionalProperties","pattern","enum","default"],arrayProperties:["items","minItems","maxItems","uniqueItems"],httpMethods:["get","post","put","delete","patch","head","options","trace"],sanitise:s,sanitiseAll:function(e){return s(e.split("/").join("_"))}}},751:function(e,t,r){"use strict";const n=r(896),o=r(928),i=r(725),s=r(725),a=r(115),l=r(33).jptr,c=r(880).recurse,p=r(920).clone,u=r(737).dereference,d=r(264).isRef,h=r(435);function m(e,t,r,n,o,s){let a=s.externalRefs[r+n].paths[0],u=i.parse(o),m={},f=1;for(;f;)f=0,c(e,{identityDetection:!0},(function(e,r,n){if(d(e,r))if(e[r].startsWith("#"))if(m[e[r]]||e.$fixed){if(!e.$fixed){let t=(a+"/"+m[e[r]]).split("/#/").join("/");n.parent[n.pkey]={$ref:t,"x-miro":e[r],$fixed:!0},s.verbose>1&&console.warn("Replacing with",t),f++}}else{let o=p(l(t,e[r]));if(s.verbose>1&&console.warn((!1===o?h.colour.red:h.colour.green)+"Fragment resolution",e[r],h.colour.normal),!1===o){if(n.parent[n.pkey]={},s.fatal){let t=new Error("Fragment $ref resolution failed "+e[r]);if(!s.promise)throw t;s.promise.reject(t)}}else f++,n.parent[n.pkey]=o,m[e[r]]=n.path.replace("/%24ref","")}else if(u.protocol){let t=i.resolve(o,e[r]).toString();s.verbose>1&&console.warn(h.colour.yellow+"Rewriting external url ref",e[r],"as",t,h.colour.normal),e["x-miro"]=e[r],s.externalRefs[e[r]]&&(s.externalRefs[t]||(s.externalRefs[t]=s.externalRefs[e[r]]),s.externalRefs[t].failed=s.externalRefs[e[r]].failed),e[r]=t}else if(!e["x-miro"]){let t=i.resolve(o,e[r]).toString(),n=!1;s.externalRefs[e[r]]&&(n=s.externalRefs[e[r]].failed),n||(s.verbose>1&&console.warn(h.colour.yellow+"Rewriting external ref",e[r],"as",t,h.colour.normal),e["x-miro"]=e[r],e[r]=t)}}));return c(e,{},(function(e,t,r){d(e,t)&&void 0!==e.$fixed&&delete e.$fixed})),s.verbose>1&&console.warn("Finished fragment resolution"),e}function f(e,t){if(!t.filters||!t.filters.length)return e;for(let r of t.filters)e=r(e,t);return e}function y(e,t,r,s){var c=i.parse(r.source),u=r.source.split("\\").join("/").split("/");u.pop()||u.pop();let d="",h=t.split("#");h.length>1&&(d="#"+h[1],t=h[0]),u=u.join("/");let y=(g=i.parse(t).protocol,b=c.protocol,g&&g.length>2?g:b&&b.length>2?b:"file:");var g,b;let x;if(x="file:"===y?o.resolve(u?u+"/":"",t):i.resolve(u?u+"/":"",t),r.cache[x]){r.verbose&&console.warn("CACHED",x,d);let e=p(r.cache[x]),n=r.externalRef=e;if(d&&(n=l(n,d),!1===n&&(n={},r.fatal))){let e=new Error("Cached $ref resolution failed "+x+d);if(!r.promise)throw e;r.promise.reject(e)}return n=m(n,e,t,d,x,r),n=f(n,r),s(p(n),x,r),Promise.resolve(n)}if(r.verbose&&console.warn("GET",x,d),r.handlers&&r.handlers[y])return r.handlers[y](u,t,d,r).then((function(e){return r.externalRef=e,e=f(e,r),r.cache[x]=e,s(e,x,r),e})).catch((function(e){throw r.verbose&&console.warn(e),e}));if(y&&y.startsWith("http")){const e=Object.assign({},r.fetchOptions,{agent:r.agent});return r.fetch(x,e).then((function(e){if(200!==e.status){if(r.ignoreIOErrors)return r.verbose&&console.warn("FAILED",t),r.externalRefs[t].failed=!0,'{"$ref":"'+t+'"}';throw new Error(`Received status code ${e.status}: ${x}`)}return e.text()})).then((function(e){try{let n=a.parse(e,{schema:"core",prettyErrors:!0});if(e=r.externalRef=n,r.cache[x]=p(e),d&&!1===(e=l(e,d))&&(e={},r.fatal)){let e=new Error("Remote $ref resolution failed "+x+d);if(!r.promise)throw e;r.promise.reject(e)}e=f(e=m(e,n,t,d,x,r),r)}catch(e){if(r.verbose&&console.warn(e),!r.promise||!r.fatal)throw e;r.promise.reject(e)}return s(e,x,r),e})).catch((function(e){if(r.verbose&&console.warn(e),r.cache[x]={},!r.promise||!r.fatal)throw e;r.promise.reject(e)}))}{const e='{"$ref":"'+t+'"}';return function(e,t,r,o,i){return new Promise((function(s,a){n.readFile(e,t,(function(e,t){e?r.ignoreIOErrors&&i?(r.verbose&&console.warn("FAILED",o),r.externalRefs[o].failed=!0,s(i)):a(e):s(t)}))}))}(x,r.encoding||"utf8",r,t,e).then((function(e){try{let n=a.parse(e,{schema:"core",prettyErrors:!0});if(e=r.externalRef=n,r.cache[x]=p(e),d&&!1===(e=l(e,d))&&(e={},r.fatal)){let e=new Error("File $ref resolution failed "+x+d);if(!r.promise)throw e;r.promise.reject(e)}e=f(e=m(e,n,t,d,x,r),r)}catch(e){if(r.verbose&&console.warn(e),!r.promise||!r.fatal)throw e;r.promise.reject(e)}return s(e,x,r),e})).catch((function(e){if(r.verbose&&console.warn(e),!r.promise||!r.fatal)throw e;r.promise.reject(e)}))}}function g(e){return new Promise((function(t,r){(function(e){return new Promise((function(t,r){function n(t,r,n){if(t[r]&&d(t[r],"$ref")){let i=t[r].$ref;if(!i.startsWith("#")){let s="";if(!o[i]){let t=Object.keys(o).find((function(e,t,r){return i.startsWith(e+"/")}));t&&(e.verbose&&console.warn("Found potential subschema at",t),s="/"+(i.split("#")[1]||"").replace(t.split("#")[1]||""),s=s.split("/undefined").join(""),i=t)}if(o[i]||(o[i]={resolved:!1,paths:[],extras:{},description:t[r].description}),o[i].resolved)if(o[i].failed);else if(e.rewriteRefs){let n=o[i].resolvedAt;e.verbose>1&&console.warn("Rewriting ref",i,n),t[r]["x-miro"]=i,t[r].$ref=n+s}else t[r]=p(o[i].data);else o[i].paths.push(n.path),o[i].extras[n.path]=s}}}let o=e.externalRefs;if(e.resolver.depth>0&&e.source===e.resolver.base)return t(o);c(e.openapi.definitions,{identityDetection:!0,path:"#/definitions"},n),c(e.openapi.components,{identityDetection:!0,path:"#/components"},n),c(e.openapi,{identityDetection:!0},n),t(o)}))})(e).then((function(t){for(let r in t)if(!t[r].resolved){let n=e.resolver.depth;n>0&&n++,e.resolver.actions[n].push((function(){return y(e.openapi,r,e,(function(e,n,o){if(!t[r].resolved){let i={};i.context=t[r],i.$ref=r,i.original=p(e),i.updated=e,i.source=n,o.externals.push(i),t[r].resolved=!0}let i=Object.assign({},o,{source:"",resolver:{actions:o.resolver.actions,depth:o.resolver.actions.length-1,base:o.resolver.base}});o.patch&&t[r].description&&!e.description&&"object"==typeof e&&(e.description=t[r].description),t[r].data=e;let s=(a=t[r].paths,[...new Set(a)]);var a;s=s.sort((function(e,t){const r=e.startsWith("#/components/")||e.startsWith("#/definitions/"),n=t.startsWith("#/components/")||t.startsWith("#/definitions/");return r&&!n?-1:n&&!r?1:0}));for(let n of s)if(t[r].resolvedAt&&n!==t[r].resolvedAt&&n.indexOf("x-ms-examples/")<0)o.verbose>1&&console.warn("Creating pointer to data at",n),l(o.openapi,n,{$ref:t[r].resolvedAt+t[r].extras[n],"x-miro":r+t[r].extras[n]});else{t[r].resolvedAt?o.verbose>1&&console.warn("Avoiding circular reference"):(t[r].resolvedAt=n,o.verbose>1&&console.warn("Creating initial clone of data at",n));let i=p(e);l(o.openapi,n,i)}0===o.resolver.actions[i.resolver.depth].length&&o.resolver.actions[i.resolver.depth].push((function(){return g(i)}))}))}))}})).catch((function(t){e.verbose&&console.warn(t),r(t)}));let n={options:e};n.actions=e.resolver.actions[e.resolver.depth],t(n)}))}function b(e,t,r){e.resolver.actions.push([]),g(e).then((function(n){var o;(o=n.actions,o.reduce(((e,t)=>e.then((e=>t().then(Array.prototype.concat.bind(e))))),Promise.resolve([]))).then((function(){if(e.resolver.depth>=e.resolver.actions.length)return console.warn("Ran off the end of resolver actions"),t(!0);e.resolver.depth++,e.resolver.actions[e.resolver.depth].length?setTimeout((function(){b(n.options,t,r)}),0):(e.verbose>1&&console.warn(h.colour.yellow+"Finished external resolution!",h.colour.normal),e.resolveInternal&&(e.verbose>1&&console.warn(h.colour.yellow+"Starting internal resolution!",h.colour.normal),e.openapi=u(e.openapi,e.original,{verbose:e.verbose-1}),e.verbose>1&&console.warn(h.colour.yellow+"Finished internal resolution!",h.colour.normal)),c(e.openapi,{},(function(t,r,n){d(t,r)&&(e.preserveMiro||delete t["x-miro"])})),t(e))})).catch((function(t){e.verbose&&console.warn(t),r(t)}))})).catch((function(t){e.verbose&&console.warn(t),r(t)}))}function x(e){if(e.cache||(e.cache={}),e.fetch||(e.fetch=s),e.source){let t=i.parse(e.source);(!t.protocol||t.protocol.length<=2)&&(e.source=o.resolve(e.source))}e.externals=[],e.externalRefs={},e.rewriteRefs=!0,e.resolver={},e.resolver.depth=0,e.resolver.base=e.source,e.resolver.actions=[[]]}e.exports={optionalResolve:function(e){return x(e),new Promise((function(t,r){e.resolve?b(e,t,r):t(e)}))},resolve:function(e,t,r){return r||(r={}),r.openapi=e,r.source=t,r.resolve=!0,x(r),new Promise((function(e,t){b(r,e,t)}))}}},319:function(e){"use strict";function t(){return{depth:0,seen:new WeakMap,top:!0,combine:!1,allowRefSiblings:!1}}e.exports={getDefaultState:t,walkSchema:function e(r,n,o,i){if(void 0===o.depth&&(o=t()),null==r)return r;if(void 0!==r.$ref){let e={$ref:r.$ref};return o.allowRefSiblings&&r.description&&(e.description=r.description),i(e,n,o),e}if(o.combine&&(r.allOf&&Array.isArray(r.allOf)&&1===r.allOf.length&&delete(r=Object.assign({},r.allOf[0],r)).allOf,r.anyOf&&Array.isArray(r.anyOf)&&1===r.anyOf.length&&delete(r=Object.assign({},r.anyOf[0],r)).anyOf,r.oneOf&&Array.isArray(r.oneOf)&&1===r.oneOf.length&&delete(r=Object.assign({},r.oneOf[0],r)).oneOf),i(r,n,o),o.seen.has(r))return r;if("object"==typeof r&&null!==r&&o.seen.set(r,!0),o.top=!1,o.depth++,void 0!==r.items&&(o.property="items",e(r.items,r,o,i)),r.additionalItems&&"object"==typeof r.additionalItems&&(o.property="additionalItems",e(r.additionalItems,r,o,i)),r.additionalProperties&&"object"==typeof r.additionalProperties&&(o.property="additionalProperties",e(r.additionalProperties,r,o,i)),r.properties)for(let t in r.properties){let n=r.properties[t];o.property="properties/"+t,e(n,r,o,i)}if(r.patternProperties)for(let t in r.patternProperties){let n=r.patternProperties[t];o.property="patternProperties/"+t,e(n,r,o,i)}if(r.allOf)for(let t in r.allOf){let n=r.allOf[t];o.property="allOf/"+t,e(n,r,o,i)}if(r.anyOf)for(let t in r.anyOf){let n=r.anyOf[t];o.property="anyOf/"+t,e(n,r,o,i)}if(r.oneOf)for(let t in r.oneOf){let n=r.oneOf[t];o.property="oneOf/"+t,e(n,r,o,i)}return r.not&&(o.property="not",e(r.not,r,o,i)),o.depth--,r}}},920:function(e){"use strict";e.exports={nop:function(e){return e},clone:function(e){return JSON.parse(JSON.stringify(e))},shallowClone:function(e){let t={};for(let r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t},deepClone:function e(t){let r=Array.isArray(t)?[]:{};for(let n in t)(t.hasOwnProperty(n)||Array.isArray(t))&&(r[n]="object"==typeof t[n]?e(t[n]):t[n]);return r},fastClone:function(e){return Object.assign({},e)},circularClone:function e(t,r){if(r||(r=new WeakMap),Object(t)!==t||t instanceof Function)return t;if(r.has(t))return r.get(t);try{var n=new t.constructor}catch(e){n=Object.create(Object.getPrototypeOf(t))}return r.set(t,n),Object.assign(n,...Object.keys(t).map((n=>({[n]:e(t[n],r)}))))}}},737:function(e,t,r){"use strict";const n=r(880).recurse,o=r(920).shallowClone,i=r(33).jptr,s=r(264).isRef;e.exports={dereference:function e(t,r,a){a||(a={}),a.cache||(a.cache={}),a.state||(a.state={}),a.state.identityDetection=!0,a.depth=a.depth?a.depth+1:1;let l=a.depth>1?t:o(t),c={data:l},p=a.depth>1?r:o(r);a.master||(a.master=l);let u=function(e){return e&&e.verbose?{warn:function(){var e=Array.prototype.slice.call(arguments);console.warn.apply(console,e)}}:{warn:function(){}}}(a),d=1;for(;d>0;)d=0,n(c,a.state,(function(t,r,n){if(s(t,r)){let o=t[r];if(d++,a.cache[o]){let e=a.cache[o];if(e.resolved)u.warn("Patching %s for %s",o,e.path),n.parent[n.pkey]=e.data,a.$ref&&"object"==typeof n.parent[n.pkey]&&null!==n.parent[n.pkey]&&(n.parent[n.pkey][a.$ref]=o);else{if(o===e.path)throw new Error(`Tight circle at ${e.path}`);u.warn("Unresolved ref"),n.parent[n.pkey]=i(e.source,e.path),!1===n.parent[n.pkey]&&(n.parent[n.pkey]=i(e.source,e.key)),a.$ref&&"object"==typeof n.parent[n.pkey]&&null!==n.parent[n.pkey]&&(n.parent[a.$ref]=o)}}else{let t={};t.path=n.path.split("/$ref")[0],t.key=o,u.warn("Dereffing %s at %s",o,t.path),t.source=p,t.data=i(t.source,t.key),!1===t.data&&(t.data=i(a.master,t.key),t.source=a.master),!1===t.data&&u.warn("Missing $ref target",t.key),a.cache[o]=t,t.data=n.parent[n.pkey]=e(i(t.source,t.key),t.source,a),a.$ref&&"object"==typeof n.parent[n.pkey]&&null!==n.parent[n.pkey]&&(n.parent[n.pkey][a.$ref]=o),t.resolved=!0}}}));return c.data}}},264:function(e){"use strict";e.exports={isRef:function(e,t){return"$ref"===t&&!!e&&"string"==typeof e[t]}}},33:function(e){"use strict";function t(e){return e.replace(/\~1/g,"/").replace(/~0/g,"~")}e.exports={jptr:function(e,r,n){if(void 0===e)return!1;if(!r||"string"!=typeof r||"#"===r)return void 0!==n?n:e;if(r.indexOf("#")>=0){let e=r.split("#");if(e[0])return!1;r=e[1],r=decodeURIComponent(r.slice(1).split("+").join(" "))}r.startsWith("/")&&(r=r.slice(1));let o=r.split("/");for(let r=0;r<o.length;r++){o[r]=t(o[r]);let i=void 0!==n&&r==o.length-1,s=parseInt(o[r],10);if(!Array.isArray(e)||isNaN(s)||s.toString()!==o[r]?s=Array.isArray(e)&&"-"===o[r]?-2:-1:o[r]=r>0?o[r-1]:"",-1!=s||e&&e.hasOwnProperty(o[r]))if(s>=0)i&&(e[s]=n),e=e[s];else{if(-2===s)return i?(Array.isArray(e)&&e.push(n),n):void 0;i&&(e[o[r]]=n),e=e[o[r]]}else{if(void 0===n||"object"!=typeof e||Array.isArray(e))return!1;e[o[r]]=i?n:"0"===o[r+1]||"-"===o[r+1]?[]:{},e=e[o[r]]}}return e},jpescape:function(e){return e.replace(/\~/g,"~0").replace(/\//g,"~1")},jpunescape:t}},880:function(e,t,r){"use strict";const n=r(33).jpescape;e.exports={recurse:function e(t,r,o){if(r||(r={depth:0}),r.depth||(r=Object.assign({},{path:"#",depth:0,pkey:"",parent:{},payload:{},seen:new WeakMap,identity:!1,identityDetection:!1},r)),"object"!=typeof t)return;let i=r.path;for(let s in t){if(r.key=s,r.path=r.path+"/"+encodeURIComponent(n(s)),r.identityPath=r.seen.get(t[s]),r.identity=void 0!==r.identityPath,t.hasOwnProperty(s)&&o(t,s,r),"object"==typeof t[s]&&!r.identity){r.identityDetection&&!Array.isArray(t[s])&&null!==t[s]&&r.seen.set(t[s],r.path);let n={};n.parent=t,n.path=r.path,n.depth=r.depth?r.depth+1:1,n.pkey=s,n.payload=r.payload,n.seen=r.seen,n.identity=!1,n.identityDetection=r.identityDetection,e(t[s],n,o)}r.path=i}}}},494:function(e,t,r){"use strict";r.r(t);var n=r(72),o=r.n(n),i=r(825),s=r.n(i),a=r(659),l=r.n(a),c=r(56),p=r.n(c),u=r(540),d=r.n(u),h=r(113),m=r.n(h),f=r(997),y={};y.styleTagTransform=m(),y.setAttributes=p(),y.insert=l().bind(null,"head"),y.domAPI=s(),y.insertStyleElement=d(),o()(f.A,y),t.default=f.A&&f.A.locals?f.A.locals:void 0},72:function(e){"use strict";var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var i={},s=[],a=0;a<e.length;a++){var l=e[a],c=n.base?l[0]+n.base:l[0],p=i[c]||0,u="".concat(c," ").concat(p);i[c]=p+1;var d=r(u),h={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)t[d].references++,t[d].updater(h);else{var m=o(h,n);n.byIndex=a,t.splice(a,0,{identifier:u,updater:m,references:1})}s.push(u)}return s}function o(e,t){var r=t.domAPI(t);return r.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,o){var i=n(e=e||[],o=o||{});return function(e){e=e||[];for(var s=0;s<i.length;s++){var a=r(i[s]);t[a].references--}for(var l=n(e,o),c=0;c<i.length;c++){var p=r(i[c]);0===t[p].references&&(t[p].updater(),t.splice(p,1))}i=l}}},659:function(e){"use strict";var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},540:function(e){"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},56:function(e,t,r){"use strict";e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},825:function(e){"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var o=void 0!==r.layer;o&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,o&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var i=r.sourceMap;i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},113:function(e){"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},65:function(e,t,r){"use strict";const n=r(896),o=r(725),i=(r(928),r(884)),s=r(725),a=r(115),l=r(33),c=l.jptr,p=r(264).isRef,u=r(920).clone,d=r(920).circularClone,h=r(880).recurse,m=r(751),f=r(319),y=r(435),g=r(665).statusCodes,b=r(430).rE,x="3.0.0";let v;class w extends Error{constructor(e){super(e),this.name="S2OError"}}function k(e,t){let r=new w(e);if(r.options=t,!t.promise)throw r;t.promise.reject(r)}function E(e,t,r){r.warnOnly?t[r.warnProperty||"x-s2o-warning"]=e:k(e,r)}function O(e,t){f.walkSchema(e,{},{},(function(e,r,n){!function(e){if(e["x-required"]&&Array.isArray(e["x-required"])&&(e.required||(e.required=[]),e.required=e.required.concat(e["x-required"]),delete e["x-required"]),e["x-anyOf"]&&(e.anyOf=e["x-anyOf"],delete e["x-anyOf"]),e["x-oneOf"]&&(e.oneOf=e["x-oneOf"],delete e["x-oneOf"]),e["x-not"]&&(e.not=e["x-not"],delete e["x-not"]),"boolean"==typeof e["x-nullable"]&&(e.nullable=e["x-nullable"],delete e["x-nullable"]),"object"==typeof e["x-discriminator"]&&"string"==typeof e["x-discriminator"].propertyName){e.discriminator=e["x-discriminator"],delete e["x-discriminator"];for(let t in e.discriminator.mapping){let r=e.discriminator.mapping[t];r.startsWith("#/definitions/")&&(e.discriminator.mapping[t]=r.replace("#/definitions/","#/components/schemas/"))}}}(e),function(e,t,r){if(e.nullable&&r.patches++,e.discriminator&&"string"==typeof e.discriminator&&(e.discriminator={propertyName:e.discriminator}),e.items&&Array.isArray(e.items)&&(0===e.items.length?e.items={}:1===e.items.length?e.items=e.items[0]:e.items={anyOf:e.items}),e.type&&Array.isArray(e.type))if(r.patch){if(r.patches++,0===e.type.length)delete e.type;else{e.oneOf||(e.oneOf=[]);for(let t of e.type){let r={};if("null"===t)e.nullable=!0;else{r.type=t;for(let t of y.arrayProperties)void 0!==e.prop&&(r[t]=e[t],delete e[t])}r.type&&e.oneOf.push(r)}delete e.type,0===e.oneOf.length?delete e.oneOf:e.oneOf.length<2&&(e.type=e.oneOf[0].type,Object.keys(e.oneOf[0]).length>1&&E("Lost properties from oneOf",e,r),delete e.oneOf)}e.type&&Array.isArray(e.type)&&1===e.type.length&&(e.type=e.type[0])}else k("(Patchable) schema type must not be an array",r);e.type&&"null"===e.type&&(delete e.type,e.nullable=!0),"array"!==e.type||e.items||(e.items={}),"file"===e.type&&(e.type="string",e.format="binary"),"boolean"==typeof e.required&&(e.required&&e.name&&(void 0===t.required&&(t.required=[]),Array.isArray(t.required)&&t.required.push(e.name)),delete e.required),e.xml&&"string"==typeof e.xml.namespace&&(e.xml.namespace||delete e.xml.namespace),void 0!==e.allowEmptyValue&&(r.patches++,delete e.allowEmptyValue)}(e,r,t)}))}function j(e,t,r){let n=r.payload.options;if(p(e,t)){if(e[t].startsWith("#/components/"));else if("#/consumes"===e[t])delete e[t],r.parent[r.pkey]=u(n.openapi.consumes);else if("#/produces"===e[t])delete e[t],r.parent[r.pkey]=u(n.openapi.produces);else if(e[t].startsWith("#/definitions/")){let r=e[t].replace("#/definitions/","").split("/");const o=l.jpunescape(r[0]);let i=v.schemas[decodeURIComponent(o)];i?r[0]=i:E("Could not resolve reference "+e[t],e,n),e[t]="#/components/schemas/"+r.join("/")}else if(e[t].startsWith("#/parameters/"))e[t]="#/components/parameters/"+y.sanitise(e[t].replace("#/parameters/",""));else if(e[t].startsWith("#/responses/"))e[t]="#/components/responses/"+y.sanitise(e[t].replace("#/responses/",""));else if(e[t].startsWith("#")){let r=u(l.jptr(n.openapi,e[t]));if(!1===r)E("direct $ref not found "+e[t],e,n);else if(n.refmap[e[t]])e[t]=n.refmap[e[t]];else{let i=e[t];i=i.replace("/properties/headers/",""),i=i.replace("/properties/responses/",""),i=i.replace("/properties/parameters/",""),i=i.replace("/properties/schemas/","");let s="schemas",a=i.lastIndexOf("/schema");if(s=i.indexOf("/headers/")>a?"headers":i.indexOf("/responses/")>a?"responses":i.indexOf("/example")>a?"examples":i.indexOf("/x-")>a?"extensions":i.indexOf("/parameters/")>a?"parameters":"schemas","schemas"===s&&O(r,n),"responses"!==s&&"extensions"!==s){let i=s.substr(0,s.length-1);"parameter"===i&&r.name&&r.name===y.sanitise(r.name)&&(i=encodeURIComponent(r.name));let a=1;for(e["x-miro"]&&(o=(o=e["x-miro"]).indexOf("#")>=0?o.split("#")[1].split("/").pop():o.split("/").pop().split(".")[0],i=encodeURIComponent(y.sanitise(o)),a="");l.jptr(n.openapi,"#/components/"+s+"/"+i+a);)a=""===a?2:++a;let c="#/components/"+s+"/"+i+a,p="";"examples"===s&&(r={value:r},p="/value"),l.jptr(n.openapi,c,r),n.refmap[e[t]]=c+p,e[t]=c+p}}}if(delete e["x-miro"],Object.keys(e).length>1){const o=e[t],i=r.path.indexOf("/schema")>=0;"preserve"===n.refSiblings||(i&&"allOf"===n.refSiblings?(delete e.$ref,r.parent[r.pkey]={allOf:[{$ref:o},e]}):r.parent[r.pkey]={$ref:o})}}var o;if("x-ms-odata"===t&&"string"==typeof e[t]&&e[t].startsWith("#/")){let r=e[t].replace("#/definitions/","").replace("#/components/schemas/","").split("/"),o=v.schemas[decodeURIComponent(r[0])];o?r[0]=o:E("Could not resolve reference "+e[t],e,n),e[t]="#/components/schemas/"+r.join("/")}}function $(e){for(let t in e)for(let r in e[t]){let n=y.sanitise(r);r!==n&&(e[t][n]=e[t][r],delete e[t][r])}}function S(e,t){if("basic"===e.type&&(e.type="http",e.scheme="basic"),"oauth2"===e.type){let r={},n=e.flow;"application"===e.flow&&(n="clientCredentials"),"accessCode"===e.flow&&(n="authorizationCode"),void 0!==e.authorizationUrl&&(r.authorizationUrl=e.authorizationUrl.split("?")[0].trim()||"/"),"string"==typeof e.tokenUrl&&(r.tokenUrl=e.tokenUrl.split("?")[0].trim()||"/"),r.scopes=e.scopes||{},e.flows={},e.flows[n]=r,delete e.flow,delete e.authorizationUrl,delete e.tokenUrl,delete e.scopes,void 0!==e.name&&(t.patch?(t.patches++,delete e.name):k("(Patchable) oauth2 securitySchemes should not have name property",t))}}function P(e){return e&&!e["x-s2o-delete"]}function C(e,t){if(e.$ref)e.$ref=e.$ref.replace("#/responses/","#/components/responses/");else{e.type&&!e.schema&&(e.schema={}),e.type&&(e.schema.type=e.type),e.items&&"array"!==e.items.type&&(e.items.collectionFormat!==e.collectionFormat&&E("Nested collectionFormats are not supported",e,t),delete e.items.collectionFormat),"array"===e.type?("ssv"===e.collectionFormat?E("collectionFormat:ssv is no longer supported for headers",e,t):"pipes"===e.collectionFormat?E("collectionFormat:pipes is no longer supported for headers",e,t):"multi"===e.collectionFormat?e.explode=!0:"tsv"===e.collectionFormat?(E("collectionFormat:tsv is no longer supported",e,t),e["x-collectionFormat"]="tsv"):e.style="simple",delete e.collectionFormat):e.collectionFormat&&(t.patch?(t.patches++,delete e.collectionFormat):k("(Patchable) collectionFormat is only applicable to header.type array",t)),delete e.type;for(let t of y.parameterTypeProperties)void 0!==e[t]&&(e.schema[t]=e[t],delete e[t]);for(let t of y.arrayProperties)void 0!==e[t]&&(e.schema[t]=e[t],delete e[t])}}function I(e,t){if(e.$ref.indexOf("#/parameters/")>=0){let t=e.$ref.split("#/parameters/");e.$ref=t[0]+"#/components/parameters/"+y.sanitise(t[1])}e.$ref.indexOf("#/definitions/")>=0&&E("Definition used as parameter",e,t)}function A(e,t,r,n,o,i,s){let a,l={},p=!0;if(t&&t.consumes&&"string"==typeof t.consumes){if(!s.patch)return k("(Patchable) operation.consumes must be an array",s);s.patches++,t.consumes=[t.consumes]}Array.isArray(i.consumes)||delete i.consumes;let d=((t?t.consumes:null)||i.consumes||[]).filter(y.uniqueOnly);if(e&&e.$ref&&"string"==typeof e.$ref){I(e,s);let t=decodeURIComponent(e.$ref.replace("#/components/parameters/","")),r=!1,n=i.components.parameters[t];if(n&&!n["x-s2o-delete"]||!e.$ref.startsWith("#/")||(e["x-s2o-delete"]=!0,r=!0),r){let t=e.$ref,r=c(i,e.$ref);!r&&t.startsWith("#/")?E("Could not resolve reference "+t,e,s):r&&(e=r)}}if(e&&(e.name||e.in)){"boolean"==typeof e["x-deprecated"]&&(e.deprecated=e["x-deprecated"],delete e["x-deprecated"]),void 0!==e["x-example"]&&(e.example=e["x-example"],delete e["x-example"]),"body"===e.in||e.type||(s.patch?(s.patches++,e.type="string"):k("(Patchable) parameter.type is mandatory for non-body parameters",s)),e.type&&"object"==typeof e.type&&e.type.$ref&&(e.type=c(i,e.type.$ref)),"file"===e.type&&(e["x-s2o-originalType"]=e.type,a=e.type),e.description&&"object"==typeof e.description&&e.description.$ref&&(e.description=c(i,e.description.$ref)),null===e.description&&delete e.description;let t=e.collectionFormat;if("array"!==e.type||t||(t="csv"),t&&("array"!==e.type&&(s.patch?(s.patches++,delete e.collectionFormat):k("(Patchable) collectionFormat is only applicable to param.type array",s)),"csv"!==t||"query"!==e.in&&"cookie"!==e.in||(e.style="form",e.explode=!1),"csv"!==t||"path"!==e.in&&"header"!==e.in||(e.style="simple"),"ssv"===t&&("query"===e.in?e.style="spaceDelimited":E("collectionFormat:ssv is no longer supported except for in:query parameters",e,s)),"pipes"===t&&("query"===e.in?e.style="pipeDelimited":E("collectionFormat:pipes is no longer supported except for in:query parameters",e,s)),"multi"===t&&(e.explode=!0),"tsv"===t&&(E("collectionFormat:tsv is no longer supported",e,s),e["x-collectionFormat"]="tsv"),delete e.collectionFormat),e.type&&"body"!==e.type&&"formData"!==e.in)if(e.items&&e.schema)E("parameter has array,items and schema",e,s);else{e.schema&&s.patches++,e.schema&&"object"==typeof e.schema||(e.schema={}),e.schema.type=e.type,e.items&&(e.schema.items=e.items,delete e.items,h(e.schema.items,null,(function(r,n,o){"collectionFormat"===n&&"string"==typeof r[n]&&(t&&r[n]!==t&&E("Nested collectionFormats are not supported",e,s),delete r[n])})));for(let t of y.parameterTypeProperties)void 0!==e[t]&&(e.schema[t]=e[t]),delete e[t]}e.schema&&O(e.schema,s),e["x-ms-skip-url-encoding"]&&"query"===e.in&&(e.allowReserved=!0,delete e["x-ms-skip-url-encoding"])}if(e&&"formData"===e.in){p=!1,l.content={};let t="application/x-www-form-urlencoded";if(d.length&&d.indexOf("multipart/form-data")>=0&&(t="multipart/form-data"),l.content[t]={},e.schema)l.content[t].schema=e.schema,e.schema.$ref&&(l["x-s2o-name"]=decodeURIComponent(e.schema.$ref.replace("#/components/schemas/","")));else{l.content[t].schema={},l.content[t].schema.type="object",l.content[t].schema.properties={},l.content[t].schema.properties[e.name]={};let r=l.content[t].schema,n=l.content[t].schema.properties[e.name];e.description&&(n.description=e.description),e.example&&(n.example=e.example),e.type&&(n.type=e.type);for(let t of y.parameterTypeProperties)void 0!==e[t]&&(n[t]=e[t]);!0===e.required&&(r.required||(r.required=[]),r.required.push(e.name),l.required=!0),void 0!==e.default&&(n.default=e.default),n.properties&&(n.properties=e.properties),e.allOf&&(n.allOf=e.allOf),"array"===e.type&&e.items&&(n.items=e.items,n.items.collectionFormat&&delete n.items.collectionFormat),"file"!==a&&"file"!==e["x-s2o-originalType"]||(n.type="string",n.format="binary"),T(e,n)}}else e&&"file"===e.type&&(e.required&&(l.required=e.required),l.content={},l.content["application/octet-stream"]={},l.content["application/octet-stream"].schema={},l.content["application/octet-stream"].schema.type="string",l.content["application/octet-stream"].schema.format="binary",T(e,l));if(e&&"body"===e.in){l.content={},e.name&&(l["x-s2o-name"]=(t&&t.operationId?y.sanitiseAll(t.operationId):"")+("_"+e.name).toCamelCase()),e.description&&(l.description=e.description),e.required&&(l.required=e.required),t&&s.rbname&&e.name&&(t[s.rbname]=e.name),e.schema&&e.schema.$ref?l["x-s2o-name"]=decodeURIComponent(e.schema.$ref.replace("#/components/schemas/","")):e.schema&&"array"===e.schema.type&&e.schema.items&&e.schema.items.$ref&&(l["x-s2o-name"]=decodeURIComponent(e.schema.items.$ref.replace("#/components/schemas/",""))+"Array"),d.length||d.push("application/json");for(let t of d)l.content[t]={},l.content[t].schema=u(e.schema||{}),O(l.content[t].schema,s);T(e,l)}if(Object.keys(l).length>0&&(e["x-s2o-delete"]=!0,t)&&(t.requestBody&&p?(t.requestBody["x-s2o-overloaded"]=!0,E("Operation "+(t.operationId||o)+" has multiple requestBodies",t,s)):(t.requestBody||(t=r[n]=function(e,t){let r={};for(let n of Object.keys(e))r[n]=e[n],"parameters"===n&&(r.requestBody={},t.rbname&&(r[t.rbname]=""));return r.requestBody={},r}(t,s)),t.requestBody.content&&t.requestBody.content["multipart/form-data"]&&t.requestBody.content["multipart/form-data"].schema&&t.requestBody.content["multipart/form-data"].schema.properties&&l.content["multipart/form-data"]&&l.content["multipart/form-data"].schema&&l.content["multipart/form-data"].schema.properties?(t.requestBody.content["multipart/form-data"].schema.properties=Object.assign(t.requestBody.content["multipart/form-data"].schema.properties,l.content["multipart/form-data"].schema.properties),t.requestBody.content["multipart/form-data"].schema.required=(t.requestBody.content["multipart/form-data"].schema.required||[]).concat(l.content["multipart/form-data"].schema.required||[]),t.requestBody.content["multipart/form-data"].schema.required.length||delete t.requestBody.content["multipart/form-data"].schema.required):t.requestBody.content&&t.requestBody.content["application/x-www-form-urlencoded"]&&t.requestBody.content["application/x-www-form-urlencoded"].schema&&t.requestBody.content["application/x-www-form-urlencoded"].schema.properties&&l.content["application/x-www-form-urlencoded"]&&l.content["application/x-www-form-urlencoded"].schema&&l.content["application/x-www-form-urlencoded"].schema.properties?(t.requestBody.content["application/x-www-form-urlencoded"].schema.properties=Object.assign(t.requestBody.content["application/x-www-form-urlencoded"].schema.properties,l.content["application/x-www-form-urlencoded"].schema.properties),t.requestBody.content["application/x-www-form-urlencoded"].schema.required=(t.requestBody.content["application/x-www-form-urlencoded"].schema.required||[]).concat(l.content["application/x-www-form-urlencoded"].schema.required||[]),t.requestBody.content["application/x-www-form-urlencoded"].schema.required.length||delete t.requestBody.content["application/x-www-form-urlencoded"].schema.required):(t.requestBody=Object.assign(t.requestBody,l),t.requestBody["x-s2o-name"]||(t.requestBody.schema&&t.requestBody.schema.$ref?t.requestBody["x-s2o-name"]=decodeURIComponent(t.requestBody.schema.$ref.replace("#/components/schemas/","")).split("/").join(""):t.operationId&&(t.requestBody["x-s2o-name"]=y.sanitiseAll(t.operationId)))))),e&&!e["x-s2o-delete"]){delete e.type;for(let t of y.parameterTypeProperties)delete e[t];"path"!==e.in||void 0!==e.required&&!0===e.required||(s.patch?(s.patches++,e.required=!0):k("(Patchable) path parameters must be required:true ["+e.name+" in "+o+"]",s))}return t}function T(e,t){for(let r in e)r.startsWith("x-")&&!r.startsWith("x-s2o")&&(t[r]=e[r])}function _(e,t,r,n,o){if(!e)return!1;if(e.$ref&&"string"==typeof e.$ref)e.$ref.indexOf("#/definitions/")>=0?E("definition used as response: "+e.$ref,e,o):e.$ref.startsWith("#/responses/")&&(e.$ref="#/components/responses/"+y.sanitise(decodeURIComponent(e.$ref.replace("#/responses/",""))));else{if((void 0===e.description||null===e.description||""===e.description&&o.patch)&&(o.patch?"object"!=typeof e||Array.isArray(e)||(o.patches++,e.description=g[e]||""):k("(Patchable) response.description is mandatory",o)),void 0!==e.schema){if(O(e.schema,o),e.schema.$ref&&"string"==typeof e.schema.$ref&&e.schema.$ref.startsWith("#/responses/")&&(e.schema.$ref="#/components/responses/"+y.sanitise(decodeURIComponent(e.schema.$ref.replace("#/responses/","")))),r&&r.produces&&"string"==typeof r.produces){if(!o.patch)return k("(Patchable) operation.produces must be an array",o);o.patches++,r.produces=[r.produces]}n.produces&&!Array.isArray(n.produces)&&delete n.produces;let t=((r?r.produces:null)||n.produces||[]).filter(y.uniqueOnly);t.length||t.push("*/*"),e.content={};for(let r of t){if(e.content[r]={},e.content[r].schema=u(e.schema),e.examples&&e.examples[r]){let t={};t.value=e.examples[r],e.content[r].examples={},e.content[r].examples.response=t,delete e.examples[r]}"file"===e.content[r].schema.type&&(e.content[r].schema={type:"string",format:"binary"})}delete e.schema}for(let t in e.examples)e.content||(e.content={}),e.content[t]||(e.content[t]={}),e.content[t].examples={},e.content[t].examples.response={},e.content[t].examples.response.value=e.examples[t];if(delete e.examples,e.headers)for(let t in e.headers)"status code"===t.toLowerCase()?o.patch?(o.patches++,delete e.headers[t]):k('(Patchable) "Status Code" is not a valid header',o):C(e.headers[t],o)}}function R(e,t,r,n,i){for(let s in e){let a=e[s];a&&a["x-trace"]&&"object"==typeof a["x-trace"]&&(a.trace=a["x-trace"],delete a["x-trace"]),a&&a["x-summary"]&&"string"==typeof a["x-summary"]&&(a.summary=a["x-summary"],delete a["x-summary"]),a&&a["x-description"]&&"string"==typeof a["x-description"]&&(a.description=a["x-description"],delete a["x-description"]),a&&a["x-servers"]&&Array.isArray(a["x-servers"])&&(a.servers=a["x-servers"],delete a["x-servers"]);for(let e in a)if(y.httpMethods.indexOf(e)>=0||"x-amazon-apigateway-any-method"===e){let p=a[e];if(p&&p.parameters&&Array.isArray(p.parameters)){if(a.parameters)for(let t of a.parameters)"string"==typeof t.$ref&&(I(t,r),t=c(i,t.$ref)),p.parameters.find((function(e,r,n){return e.name===t.name&&e.in===t.in}))||"formData"!==t.in&&"body"!==t.in&&"file"!==t.type||(p=A(t,p,a,e,s,i,r),r.rbname&&""===p[r.rbname]&&delete p[r.rbname]);for(let t of p.parameters)p=A(t,p,a,e,e+":"+s,i,r);r.rbname&&""===p[r.rbname]&&delete p[r.rbname],r.debug||p.parameters&&(p.parameters=p.parameters.filter(P))}if(p&&p.security&&$(p.security),"object"==typeof p){if(!p.responses){let e={description:"Default response"};p.responses={default:e}}for(let e in p.responses)_(p.responses[e],0,p,i,r)}if(p&&p["x-servers"]&&Array.isArray(p["x-servers"]))p.servers=p["x-servers"],delete p["x-servers"];else if(p&&p.schemes&&p.schemes.length)for(let e of p.schemes)if((!i.schemes||i.schemes.indexOf(e)<0)&&(p.servers||(p.servers=[]),Array.isArray(i.servers)))for(let t of i.servers){let r=u(t),n=o.parse(r.url);n.protocol=e,r.url=n.format(),p.servers.push(r)}if(r.debug&&(p["x-s2o-consumes"]=p.consumes||[],p["x-s2o-produces"]=p.produces||[]),p){if(delete p.consumes,delete p.produces,delete p.schemes,p["x-ms-examples"]){for(let e in p["x-ms-examples"]){let t=p["x-ms-examples"][e],r=y.sanitiseAll(e);if(t.parameters)for(let r in t.parameters){let n=t.parameters[r];for(let t of(p.parameters||[]).concat(a.parameters||[]))t.$ref&&(t=l.jptr(i,t.$ref)),t.name!==r||t.example||(t.examples||(t.examples={}),t.examples[e]={value:n})}if(t.responses)for(let n in t.responses){if(t.responses[n].headers)for(let e in t.responses[n].headers){let r=t.responses[n].headers[e];for(let t in p.responses[n].headers)t===e&&(p.responses[n].headers[t].example=r)}if(t.responses[n].body&&(i.components.examples[r]={value:u(t.responses[n].body)},p.responses[n]&&p.responses[n].content))for(let t in p.responses[n].content){let o=p.responses[n].content[t];o.examples||(o.examples={}),o.examples[e]={$ref:"#/components/examples/"+r}}}}delete p["x-ms-examples"]}if(p.parameters&&0===p.parameters.length&&delete p.parameters,p.requestBody){let r=p.operationId?y.sanitiseAll(p.operationId):y.sanitiseAll(e+s).toCamelCase(),o=y.sanitise(p.requestBody["x-s2o-name"]||r||"");delete p.requestBody["x-s2o-name"];let i=JSON.stringify(p.requestBody),a=y.hash(i);if(!n[a]){let e={};e.name=o,e.body=p.requestBody,e.refs=[],n[a]=e}let c="#/"+t+"/"+encodeURIComponent(l.jpescape(s))+"/"+e+"/requestBody";n[a].refs.push(c)}}}if(a&&a.parameters){for(let e in a.parameters)A(a.parameters[e],null,a,null,s,i,r);!r.debug&&Array.isArray(a.parameters)&&(a.parameters=a.parameters.filter(P))}}}function D(e){return e&&e.url&&"string"==typeof e.url?(e.url=e.url.split("{{").join("{"),e.url=e.url.split("}}").join("}"),e.url.replace(/\{(.+?)\}/g,(function(t,r){e.variables||(e.variables={}),e.variables[r]={default:"unknown"}})),e):e}function z(e,t,r){if(void 0===e.info||null===e.info){if(!t.patch)return r(new w("(Patchable) info object is mandatory"));t.patches++,e.info={version:"",title:""}}if("object"!=typeof e.info||Array.isArray(e.info))return r(new w("info must be an object"));if(void 0===e.info.title||null===e.info.title){if(!t.patch)return r(new w("(Patchable) info.title cannot be null"));t.patches++,e.info.title=""}if(void 0===e.info.version||null===e.info.version){if(!t.patch)return r(new w("(Patchable) info.version cannot be null"));t.patches++,e.info.version=""}if("string"!=typeof e.info.version){if(!t.patch)return r(new w("(Patchable) info.version must be a string"));t.patches++,e.info.version=e.info.version.toString()}if(void 0!==e.info.logo){if(!t.patch)return r(new w("(Patchable) info should not have logo property"));t.patches++,e.info["x-logo"]=e.info.logo,delete e.info.logo}if(void 0!==e.info.termsOfService){if(null===e.info.termsOfService){if(!t.patch)return r(new w("(Patchable) info.termsOfService cannot be null"));t.patches++,e.info.termsOfService=""}try{new URL(e.info.termsOfService)}catch(n){if(!t.patch)return r(new w("(Patchable) info.termsOfService must be a URL"));t.patches++,delete e.info.termsOfService}}}function L(e,t,r){if(void 0===e.paths){if(!t.patch)return r(new w("(Patchable) paths object is mandatory"));t.patches++,e.paths={}}}function N(e,t,r){return i(r,new Promise((function(r,n){if(e||(e={}),t.original=e,t.text||(t.text=a.stringify(e)),t.externals=[],t.externalRefs={},t.rewriteRefs=!0,t.preserveMiro=!0,t.promise={},t.promise.resolve=r,t.promise.reject=n,t.patches=0,t.cache||(t.cache={}),t.source&&(t.cache[t.source]=t.original),function(e,t){const r=new WeakSet;h(e,{identityDetection:!0},(function(e,n,o){"object"==typeof e[n]&&null!==e[n]&&(r.has(e[n])?t.anchors?e[n]=u(e[n]):k("YAML anchor or merge key at "+o.path,t):r.add(e[n]))}))}(e,t),e.openapi&&"string"==typeof e.openapi&&e.openapi.startsWith("3."))return t.openapi=d(e),z(t.openapi,t,n),L(t.openapi,t,n),void m.optionalResolve(t).then((function(){return t.direct?r(t.openapi):r(t)})).catch((function(e){console.warn(e),n(e)}));if(!e.swagger||"2.0"!=e.swagger)return n(new w("Unsupported swagger/OpenAPI version: "+(e.openapi?e.openapi:e.swagger)));let o=t.openapi={};if(o.openapi="string"==typeof t.targetVersion&&t.targetVersion.startsWith("3.")?t.targetVersion:x,t.origin){o["x-origin"]||(o["x-origin"]=[]);let r={};r.url=t.source||t.origin,r.format="swagger",r.version=e.swagger,r.converter={},r.converter.url="https://github.com/mermade/oas-kit",r.converter.version=b,o["x-origin"].push(r)}if(o=Object.assign(o,d(e)),delete o.swagger,h(o,{},(function(e,t,r){null===e[t]&&!t.startsWith("x-")&&"default"!==t&&r.path.indexOf("/example")<0&&delete e[t]})),e.host)for(let t of Array.isArray(e.schemes)?e.schemes:[""]){let r={},n=(e.basePath||"").replace(/\/$/,"");r.url=(t?t+":":"")+"//"+e.host+n,D(r),o.servers||(o.servers=[]),o.servers.push(r)}else if(e.basePath){let t={};t.url=e.basePath,D(t),o.servers||(o.servers=[]),o.servers.push(t)}if(delete o.host,delete o.basePath,o["x-servers"]&&Array.isArray(o["x-servers"])&&(o.servers=o["x-servers"],delete o["x-servers"]),e["x-ms-parameterized-host"]){let t=e["x-ms-parameterized-host"],r={};r.url=t.hostTemplate+(e.basePath?e.basePath:""),r.variables={};const n=r.url.match(/\{\w+\}/g);for(let e in t.parameters){let i=t.parameters[e];i.$ref&&(i=u(c(o,i.$ref))),e.startsWith("x-")||(delete i.required,delete i.type,delete i.in,void 0===i.default&&(i.enum?i.default=i.enum[0]:i.default="none"),i.name||(i.name=n[e].replace("{","").replace("}","")),r.variables[i.name]=i,delete i.name)}o.servers||(o.servers=[]),!1===t.useSchemePrefix?o.servers.push(r):e.schemes.forEach((e=>{o.servers.push(Object.assign({},r,{url:e+"://"+r.url}))})),delete o["x-ms-parameterized-host"]}z(o,t,n),L(o,t,n),"string"==typeof o.consumes&&(o.consumes=[o.consumes]),"string"==typeof o.produces&&(o.produces=[o.produces]),o.components={},o["x-callbacks"]&&(o.components.callbacks=o["x-callbacks"],delete o["x-callbacks"]),o.components.examples={},o.components.headers={},o["x-links"]&&(o.components.links=o["x-links"],delete o["x-links"]),o.components.parameters=o.parameters||{},o.components.responses=o.responses||{},o.components.requestBodies={},o.components.securitySchemes=o.securityDefinitions||{},o.components.schemas=o.definitions||{},delete o.definitions,delete o.responses,delete o.parameters,delete o.securityDefinitions,m.optionalResolve(t).then((function(){(function(e,t){let r={};v={schemas:{}},e.security&&$(e.security);for(let r in e.components.securitySchemes){let n=y.sanitise(r);r!==n&&(e.components.securitySchemes[n]&&k("Duplicate sanitised securityScheme name "+n,t),e.components.securitySchemes[n]=e.components.securitySchemes[r],delete e.components.securitySchemes[r]),S(e.components.securitySchemes[n],t)}for(let r in e.components.schemas){let n=y.sanitiseAll(r),o="";if(r!==n){for(;e.components.schemas[n+o];)o=o?++o:2;e.components.schemas[n+o]=e.components.schemas[r],delete e.components.schemas[r]}v.schemas[r]=n+o,O(e.components.schemas[n+o],t)}t.refmap={},h(e,{payload:{options:t}},j),function(e,t){for(let r in t.refmap)l.jptr(e,r,{$ref:t.refmap[r]})}(e,t);for(let r in e.components.parameters){let n=y.sanitise(r);r!==n&&(e.components.parameters[n]&&k("Duplicate sanitised parameter name "+n,t),e.components.parameters[n]=e.components.parameters[r],delete e.components.parameters[r]),A(e.components.parameters[n],null,null,null,n,e,t)}for(let r in e.components.responses){let n=y.sanitise(r);r!==n&&(e.components.responses[n]&&k("Duplicate sanitised response name "+n,t),e.components.responses[n]=e.components.responses[r],delete e.components.responses[r]);let o=e.components.responses[n];if(_(o,0,null,e,t),o.headers)for(let e in o.headers)"status code"===e.toLowerCase()?t.patch?(t.patches++,delete o.headers[e]):k('(Patchable) "Status Code" is not a valid header',t):C(o.headers[e],t)}for(let t in e.components.requestBodies){let n=e.components.requestBodies[t],o=JSON.stringify(n),i=y.hash(o),s={};s.name=t,s.body=n,s.refs=[],r[i]=s}if(R(e.paths,"paths",t,r,e),e["x-ms-paths"]&&R(e["x-ms-paths"],"x-ms-paths",t,r,e),!t.debug)for(let t in e.components.parameters)e.components.parameters[t]["x-s2o-delete"]&&delete e.components.parameters[t];t.debug&&(e["x-s2o-consumes"]=e.consumes||[],e["x-s2o-produces"]=e.produces||[]),delete e.consumes,delete e.produces,delete e.schemes;let n=[];if(e.components.requestBodies={},!t.resolveInternal){let t=1;for(let o in r){let i=r[o];if(i.refs.length>1){let r="";for(i.name||(i.name="requestBody",r=t++);n.indexOf(i.name+r)>=0;)r=r?++r:2;i.name=i.name+r,n.push(i.name),e.components.requestBodies[i.name]=u(i.body);for(let t in i.refs){let r={};r.$ref="#/components/requestBodies/"+i.name,l.jptr(e,i.refs[t],r)}}}}e.components.responses&&0===Object.keys(e.components.responses).length&&delete e.components.responses,e.components.parameters&&0===Object.keys(e.components.parameters).length&&delete e.components.parameters,e.components.examples&&0===Object.keys(e.components.examples).length&&delete e.components.examples,e.components.requestBodies&&0===Object.keys(e.components.requestBodies).length&&delete e.components.requestBodies,e.components.securitySchemes&&0===Object.keys(e.components.securitySchemes).length&&delete e.components.securitySchemes,e.components.headers&&0===Object.keys(e.components.headers).length&&delete e.components.headers,e.components.schemas&&0===Object.keys(e.components.schemas).length&&delete e.components.schemas,e.components&&0===Object.keys(e.components).length&&delete e.components})(t.openapi,t),t.direct?r(t.openapi):r(t)})).catch((function(e){console.warn(e),n(e)}))})))}function M(e,t,r){return i(r,new Promise((function(r,n){let o=null,i=null;try{o=JSON.parse(e),t.text=JSON.stringify(o,null,2)}catch(r){i=r;try{o=a.parse(e,{schema:"core",prettyErrors:!0}),t.sourceYaml=!0,t.text=e}catch(e){i=e}}o?N(o,t).then((e=>r(e))).catch((e=>n(e))):n(new w(i?i.message:"Could not parse string"))})))}e.exports={S2OError:w,targetVersion:x,convert:N,convertObj:N,convertUrl:function(e,t,r){return i(r,new Promise((function(r,n){t.origin=!0,t.source||(t.source=e),t.verbose&&console.warn("GET "+e),t.fetch||(t.fetch=s);const o=Object.assign({},t.fetchOptions,{agent:t.agent});t.fetch(e,o).then((function(t){if(200!==t.status)throw new w(`Received status code ${t.status}: ${e}`);return t.text()})).then((function(e){M(e,t).then((e=>r(e))).catch((e=>n(e)))})).catch((function(e){n(e)}))})))},convertStr:M,convertFile:function(e,t,r){return i(r,new Promise((function(r,o){n.readFile(e,t.encoding||"utf8",(function(n,i){n?o(n):(t.sourceFile=e,M(i,t).then((e=>r(e))).catch((e=>o(e))))}))})))},convertStream:function(e,t,r){return i(r,new Promise((function(r,n){let o="";e.on("data",(function(e){o+=e})).on("end",(function(){M(o,t).then((e=>r(e))).catch((e=>n(e)))}))})))}}},665:function(e,t,r){"use strict";const n=r(611);e.exports={statusCodes:Object.assign({},{default:"Default response","1XX":"Informational",103:"Early hints","2XX":"Successful","3XX":"Redirection","4XX":"Client Error","5XX":"Server Error","7XX":"Developer Error"},n.STATUS_CODES)}},988:function(e,t,r){var n=r(7),o=["add","done","toJS","fromExternalJS","load","dispose","search","Worker"];e.exports=function(){var e=new Worker(URL.createObjectURL(new Blob(['/*! For license information please see cfb294d7f6536ffa8d42.worker.js.LICENSE.txt */\n!function(){var e={291:function(e,t,r){var n,i;!function(){var s,o,a,u,l,c,h,d,f,p,y,m,g,x,v,w,Q,k,S,E,L,P,b,T,O,I,R,F,C,N,j=function(e){var t=new j.Builder;return t.pipeline.add(j.trimmer,j.stopWordFilter,j.stemmer),t.searchPipeline.add(j.stemmer),e.call(t,t),t.build()};j.version="2.3.9",j.utils={},j.utils.warn=(s=this,function(e){s.console&&console.warn&&console.warn(e)}),j.utils.asString=function(e){return null==e?"":e.toString()},j.utils.clone=function(e){if(null==e)return e;for(var t=Object.create(null),r=Object.keys(e),n=0;n<r.length;n++){var i=r[n],s=e[i];if(Array.isArray(s))t[i]=s.slice();else{if("string"!=typeof s&&"number"!=typeof s&&"boolean"!=typeof s)throw new TypeError("clone is not deep and does not support nested objects");t[i]=s}}return t},j.FieldRef=function(e,t,r){this.docRef=e,this.fieldName=t,this._stringValue=r},j.FieldRef.joiner="/",j.FieldRef.fromString=function(e){var t=e.indexOf(j.FieldRef.joiner);if(-1===t)throw"malformed field ref string";var r=e.slice(0,t),n=e.slice(t+1);return new j.FieldRef(n,r,e)},j.FieldRef.prototype.toString=function(){return null==this._stringValue&&(this._stringValue=this.fieldName+j.FieldRef.joiner+this.docRef),this._stringValue},j.Set=function(e){if(this.elements=Object.create(null),e){this.length=e.length;for(var t=0;t<this.length;t++)this.elements[e[t]]=!0}else this.length=0},j.Set.complete={intersect:function(e){return e},union:function(){return this},contains:function(){return!0}},j.Set.empty={intersect:function(){return this},union:function(e){return e},contains:function(){return!1}},j.Set.prototype.contains=function(e){return!!this.elements[e]},j.Set.prototype.intersect=function(e){var t,r,n,i=[];if(e===j.Set.complete)return this;if(e===j.Set.empty)return e;this.length<e.length?(t=this,r=e):(t=e,r=this),n=Object.keys(t.elements);for(var s=0;s<n.length;s++){var o=n[s];o in r.elements&&i.push(o)}return new j.Set(i)},j.Set.prototype.union=function(e){return e===j.Set.complete?j.Set.complete:e===j.Set.empty?this:new j.Set(Object.keys(this.elements).concat(Object.keys(e.elements)))},j.idf=function(e,t){var r=0;for(var n in e)"_index"!=n&&(r+=Object.keys(e[n]).length);var i=(t-r+.5)/(r+.5);return Math.log(1+Math.abs(i))},j.Token=function(e,t){this.str=e||"",this.metadata=t||{}},j.Token.prototype.toString=function(){return this.str},j.Token.prototype.update=function(e){return this.str=e(this.str,this.metadata),this},j.Token.prototype.clone=function(e){return e=e||function(e){return e},new j.Token(e(this.str,this.metadata),this.metadata)},j.tokenizer=function(e,t){if(null==e||null==e)return[];if(Array.isArray(e))return e.map((function(e){return new j.Token(j.utils.asString(e).toLowerCase(),j.utils.clone(t))}));for(var r=e.toString().toLowerCase(),n=r.length,i=[],s=0,o=0;s<=n;s++){var a=s-o;if(r.charAt(s).match(j.tokenizer.separator)||s==n){if(a>0){var u=j.utils.clone(t)||{};u.position=[o,a],u.index=i.length,i.push(new j.Token(r.slice(o,s),u))}o=s+1}}return i},j.tokenizer.separator=/[\\s\\-]+/,j.Pipeline=function(){this._stack=[]},j.Pipeline.registeredFunctions=Object.create(null),j.Pipeline.registerFunction=function(e,t){t in this.registeredFunctions&&j.utils.warn("Overwriting existing registered function: "+t),e.label=t,j.Pipeline.registeredFunctions[e.label]=e},j.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||j.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\\n",e)},j.Pipeline.load=function(e){var t=new j.Pipeline;return e.forEach((function(e){var r=j.Pipeline.registeredFunctions[e];if(!r)throw new Error("Cannot load unregistered function: "+e);t.add(r)})),t},j.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach((function(e){j.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)}),this)},j.Pipeline.prototype.after=function(e,t){j.Pipeline.warnIfFunctionNotRegistered(t);var r=this._stack.indexOf(e);if(-1==r)throw new Error("Cannot find existingFn");r+=1,this._stack.splice(r,0,t)},j.Pipeline.prototype.before=function(e,t){j.Pipeline.warnIfFunctionNotRegistered(t);var r=this._stack.indexOf(e);if(-1==r)throw new Error("Cannot find existingFn");this._stack.splice(r,0,t)},j.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);-1!=t&&this._stack.splice(t,1)},j.Pipeline.prototype.run=function(e){for(var t=this._stack.length,r=0;r<t;r++){for(var n=this._stack[r],i=[],s=0;s<e.length;s++){var o=n(e[s],s,e);if(null!=o&&""!==o)if(Array.isArray(o))for(var a=0;a<o.length;a++)i.push(o[a]);else i.push(o)}e=i}return e},j.Pipeline.prototype.runString=function(e,t){var r=new j.Token(e,t);return this.run([r]).map((function(e){return e.toString()}))},j.Pipeline.prototype.reset=function(){this._stack=[]},j.Pipeline.prototype.toJSON=function(){return this._stack.map((function(e){return j.Pipeline.warnIfFunctionNotRegistered(e),e.label}))},j.Vector=function(e){this._magnitude=0,this.elements=e||[]},j.Vector.prototype.positionForIndex=function(e){if(0==this.elements.length)return 0;for(var t=0,r=this.elements.length/2,n=r-t,i=Math.floor(n/2),s=this.elements[2*i];n>1&&(s<e&&(t=i),s>e&&(r=i),s!=e);)n=r-t,i=t+Math.floor(n/2),s=this.elements[2*i];return s==e||s>e?2*i:s<e?2*(i+1):void 0},j.Vector.prototype.insert=function(e,t){this.upsert(e,t,(function(){throw"duplicate index"}))},j.Vector.prototype.upsert=function(e,t,r){this._magnitude=0;var n=this.positionForIndex(e);this.elements[n]==e?this.elements[n+1]=r(this.elements[n+1],t):this.elements.splice(n,0,e,t)},j.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var e=0,t=this.elements.length,r=1;r<t;r+=2){var n=this.elements[r];e+=n*n}return this._magnitude=Math.sqrt(e)},j.Vector.prototype.dot=function(e){for(var t=0,r=this.elements,n=e.elements,i=r.length,s=n.length,o=0,a=0,u=0,l=0;u<i&&l<s;)(o=r[u])<(a=n[l])?u+=2:o>a?l+=2:o==a&&(t+=r[u+1]*n[l+1],u+=2,l+=2);return t},j.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},j.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),t=1,r=0;t<this.elements.length;t+=2,r++)e[r]=this.elements[t];return e},j.Vector.prototype.toJSON=function(){return this.elements},j.stemmer=(o={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},a={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},h="^("+(l="[^aeiou][^aeiouy]*")+")?"+(c=(u="[aeiouy]")+"[aeiou]*")+l+"("+c+")?$",d="^("+l+")?"+c+l+c+l,f="^("+l+")?"+u,p=new RegExp("^("+l+")?"+c+l),y=new RegExp(d),m=new RegExp(h),g=new RegExp(f),x=/^(.+?)(ss|i)es$/,v=/^(.+?)([^s])s$/,w=/^(.+?)eed$/,Q=/^(.+?)(ed|ing)$/,k=/.$/,S=/(at|bl|iz)$/,E=new RegExp("([^aeiouylsz])\\\\1$"),L=new RegExp("^"+l+u+"[^aeiouwxy]$"),P=/^(.+?[^aeiou])y$/,b=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,T=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,O=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,I=/^(.+?)(s|t)(ion)$/,R=/^(.+?)e$/,F=/ll$/,C=new RegExp("^"+l+u+"[^aeiouwxy]$"),N=function(e){var t,r,n,i,s,u,l;if(e.length<3)return e;if("y"==(n=e.substr(0,1))&&(e=n.toUpperCase()+e.substr(1)),s=v,(i=x).test(e)?e=e.replace(i,"$1$2"):s.test(e)&&(e=e.replace(s,"$1$2")),s=Q,(i=w).test(e)){var c=i.exec(e);(i=p).test(c[1])&&(i=k,e=e.replace(i,""))}else s.test(e)&&(t=(c=s.exec(e))[1],(s=g).test(t)&&(u=E,l=L,(s=S).test(e=t)?e+="e":u.test(e)?(i=k,e=e.replace(i,"")):l.test(e)&&(e+="e")));return(i=P).test(e)&&(e=(t=(c=i.exec(e))[1])+"i"),(i=b).test(e)&&(t=(c=i.exec(e))[1],r=c[2],(i=p).test(t)&&(e=t+o[r])),(i=T).test(e)&&(t=(c=i.exec(e))[1],r=c[2],(i=p).test(t)&&(e=t+a[r])),s=I,(i=O).test(e)?(t=(c=i.exec(e))[1],(i=y).test(t)&&(e=t)):s.test(e)&&(t=(c=s.exec(e))[1]+c[2],(s=y).test(t)&&(e=t)),(i=R).test(e)&&(t=(c=i.exec(e))[1],s=m,u=C,((i=y).test(t)||s.test(t)&&!u.test(t))&&(e=t)),s=y,(i=F).test(e)&&s.test(e)&&(i=k,e=e.replace(i,"")),"y"==n&&(e=n.toLowerCase()+e.substr(1)),e},function(e){return e.update(N)}),j.Pipeline.registerFunction(j.stemmer,"stemmer"),j.generateStopWordFilter=function(e){var t=e.reduce((function(e,t){return e[t]=t,e}),{});return function(e){if(e&&t[e.toString()]!==e.toString())return e}},j.stopWordFilter=j.generateStopWordFilter(["a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"]),j.Pipeline.registerFunction(j.stopWordFilter,"stopWordFilter"),j.trimmer=function(e){return e.update((function(e){return e.replace(/^\\W+/,"").replace(/\\W+$/,"")}))},j.Pipeline.registerFunction(j.trimmer,"trimmer"),j.TokenSet=function(){this.final=!1,this.edges={},this.id=j.TokenSet._nextId,j.TokenSet._nextId+=1},j.TokenSet._nextId=1,j.TokenSet.fromArray=function(e){for(var t=new j.TokenSet.Builder,r=0,n=e.length;r<n;r++)t.insert(e[r]);return t.finish(),t.root},j.TokenSet.fromClause=function(e){return"editDistance"in e?j.TokenSet.fromFuzzyString(e.term,e.editDistance):j.TokenSet.fromString(e.term)},j.TokenSet.fromFuzzyString=function(e,t){for(var r=new j.TokenSet,n=[{node:r,editsRemaining:t,str:e}];n.length;){var i=n.pop();if(i.str.length>0){var s,o=i.str.charAt(0);o in i.node.edges?s=i.node.edges[o]:(s=new j.TokenSet,i.node.edges[o]=s),1==i.str.length&&(s.final=!0),n.push({node:s,editsRemaining:i.editsRemaining,str:i.str.slice(1)})}if(0!=i.editsRemaining){if("*"in i.node.edges)var a=i.node.edges["*"];else a=new j.TokenSet,i.node.edges["*"]=a;if(0==i.str.length&&(a.final=!0),n.push({node:a,editsRemaining:i.editsRemaining-1,str:i.str}),i.str.length>1&&n.push({node:i.node,editsRemaining:i.editsRemaining-1,str:i.str.slice(1)}),1==i.str.length&&(i.node.final=!0),i.str.length>=1){if("*"in i.node.edges)var u=i.node.edges["*"];else u=new j.TokenSet,i.node.edges["*"]=u;1==i.str.length&&(u.final=!0),n.push({node:u,editsRemaining:i.editsRemaining-1,str:i.str.slice(1)})}if(i.str.length>1){var l,c=i.str.charAt(0),h=i.str.charAt(1);h in i.node.edges?l=i.node.edges[h]:(l=new j.TokenSet,i.node.edges[h]=l),1==i.str.length&&(l.final=!0),n.push({node:l,editsRemaining:i.editsRemaining-1,str:c+i.str.slice(2)})}}}return r},j.TokenSet.fromString=function(e){for(var t=new j.TokenSet,r=t,n=0,i=e.length;n<i;n++){var s=e[n],o=n==i-1;if("*"==s)t.edges[s]=t,t.final=o;else{var a=new j.TokenSet;a.final=o,t.edges[s]=a,t=a}}return r},j.TokenSet.prototype.toArray=function(){for(var e=[],t=[{prefix:"",node:this}];t.length;){var r=t.pop(),n=Object.keys(r.node.edges),i=n.length;r.node.final&&(r.prefix.charAt(0),e.push(r.prefix));for(var s=0;s<i;s++){var o=n[s];t.push({prefix:r.prefix.concat(o),node:r.node.edges[o]})}}return e},j.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var e=this.final?"1":"0",t=Object.keys(this.edges).sort(),r=t.length,n=0;n<r;n++){var i=t[n];e=e+i+this.edges[i].id}return e},j.TokenSet.prototype.intersect=function(e){for(var t=new j.TokenSet,r=void 0,n=[{qNode:e,output:t,node:this}];n.length;){r=n.pop();for(var i=Object.keys(r.qNode.edges),s=i.length,o=Object.keys(r.node.edges),a=o.length,u=0;u<s;u++)for(var l=i[u],c=0;c<a;c++){var h=o[c];if(h==l||"*"==l){var d=r.node.edges[h],f=r.qNode.edges[l],p=d.final&&f.final,y=void 0;h in r.output.edges?(y=r.output.edges[h]).final=y.final||p:((y=new j.TokenSet).final=p,r.output.edges[h]=y),n.push({qNode:f,output:y,node:d})}}}return t},j.TokenSet.Builder=function(){this.previousWord="",this.root=new j.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},j.TokenSet.Builder.prototype.insert=function(e){var t,r=0;if(e<this.previousWord)throw new Error("Out of order word insertion");for(var n=0;n<e.length&&n<this.previousWord.length&&e[n]==this.previousWord[n];n++)r++;for(this.minimize(r),t=0==this.uncheckedNodes.length?this.root:this.uncheckedNodes[this.uncheckedNodes.length-1].child,n=r;n<e.length;n++){var i=new j.TokenSet,s=e[n];t.edges[s]=i,this.uncheckedNodes.push({parent:t,char:s,child:i}),t=i}t.final=!0,this.previousWord=e},j.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},j.TokenSet.Builder.prototype.minimize=function(e){for(var t=this.uncheckedNodes.length-1;t>=e;t--){var r=this.uncheckedNodes[t],n=r.child.toString();n in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[n]:(r.child._str=n,this.minimizedNodes[n]=r.child),this.uncheckedNodes.pop()}},j.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},j.Index.prototype.search=function(e){return this.query((function(t){new j.QueryParser(e,t).parse()}))},j.Index.prototype.query=function(e){for(var t=new j.Query(this.fields),r=Object.create(null),n=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=0;a<this.fields.length;a++)n[this.fields[a]]=new j.Vector;for(e.call(t,t),a=0;a<t.clauses.length;a++){var u,l=t.clauses[a],c=j.Set.empty;u=l.usePipeline?this.pipeline.runString(l.term,{fields:l.fields}):[l.term];for(var h=0;h<u.length;h++){var d=u[h];l.term=d;var f=j.TokenSet.fromClause(l),p=this.tokenSet.intersect(f).toArray();if(0===p.length&&l.presence===j.Query.presence.REQUIRED){for(var y=0;y<l.fields.length;y++)s[R=l.fields[y]]=j.Set.empty;break}for(var m=0;m<p.length;m++){var g=p[m],x=this.invertedIndex[g],v=x._index;for(y=0;y<l.fields.length;y++){var w=x[R=l.fields[y]],Q=Object.keys(w),k=g+"/"+R,S=new j.Set(Q);if(l.presence==j.Query.presence.REQUIRED&&(c=c.union(S),void 0===s[R]&&(s[R]=j.Set.complete)),l.presence!=j.Query.presence.PROHIBITED){if(n[R].upsert(v,l.boost,(function(e,t){return e+t})),!i[k]){for(var E=0;E<Q.length;E++){var L,P=Q[E],b=new j.FieldRef(P,R),T=w[P];void 0===(L=r[b])?r[b]=new j.MatchData(g,R,T):L.add(g,R,T)}i[k]=!0}}else void 0===o[R]&&(o[R]=j.Set.empty),o[R]=o[R].union(S)}}}if(l.presence===j.Query.presence.REQUIRED)for(y=0;y<l.fields.length;y++)s[R=l.fields[y]]=s[R].intersect(c)}var O=j.Set.complete,I=j.Set.empty;for(a=0;a<this.fields.length;a++){var R;s[R=this.fields[a]]&&(O=O.intersect(s[R])),o[R]&&(I=I.union(o[R]))}var F=Object.keys(r),C=[],N=Object.create(null);if(t.isNegated())for(F=Object.keys(this.fieldVectors),a=0;a<F.length;a++){b=F[a];var _=j.FieldRef.fromString(b);r[b]=new j.MatchData}for(a=0;a<F.length;a++){var D=(_=j.FieldRef.fromString(F[a])).docRef;if(O.contains(D)&&!I.contains(D)){var A,B=this.fieldVectors[_],z=n[_.fieldName].similarity(B);if(void 0!==(A=N[D]))A.score+=z,A.matchData.combine(r[_]);else{var V={ref:D,score:z,matchData:r[_]};N[D]=V,C.push(V)}}}return C.sort((function(e,t){return t.score-e.score}))},j.Index.prototype.toJSON=function(){var e=Object.keys(this.invertedIndex).sort().map((function(e){return[e,this.invertedIndex[e]]}),this),t=Object.keys(this.fieldVectors).map((function(e){return[e,this.fieldVectors[e].toJSON()]}),this);return{version:j.version,fields:this.fields,fieldVectors:t,invertedIndex:e,pipeline:this.pipeline.toJSON()}},j.Index.load=function(e){var t={},r={},n=e.fieldVectors,i=Object.create(null),s=e.invertedIndex,o=new j.TokenSet.Builder,a=j.Pipeline.load(e.pipeline);e.version!=j.version&&j.utils.warn("Version mismatch when loading serialised index. Current version of lunr \'"+j.version+"\' does not match serialized index \'"+e.version+"\'");for(var u=0;u<n.length;u++){var l=(h=n[u])[0],c=h[1];r[l]=new j.Vector(c)}for(u=0;u<s.length;u++){var h,d=(h=s[u])[0],f=h[1];o.insert(d),i[d]=f}return o.finish(),t.fields=e.fields,t.fieldVectors=r,t.invertedIndex=i,t.tokenSet=o.root,t.pipeline=a,new j.Index(t)},j.Builder=function(){this._ref="id",this._fields=Object.create(null),this._documents=Object.create(null),this.invertedIndex=Object.create(null),this.fieldTermFrequencies={},this.fieldLengths={},this.tokenizer=j.tokenizer,this.pipeline=new j.Pipeline,this.searchPipeline=new j.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},j.Builder.prototype.ref=function(e){this._ref=e},j.Builder.prototype.field=function(e,t){if(/\\//.test(e))throw new RangeError("Field \'"+e+"\' contains illegal character \'/\'");this._fields[e]=t||{}},j.Builder.prototype.b=function(e){this._b=e<0?0:e>1?1:e},j.Builder.prototype.k1=function(e){this._k1=e},j.Builder.prototype.add=function(e,t){var r=e[this._ref],n=Object.keys(this._fields);this._documents[r]=t||{},this.documentCount+=1;for(var i=0;i<n.length;i++){var s=n[i],o=this._fields[s].extractor,a=o?o(e):e[s],u=this.tokenizer(a,{fields:[s]}),l=this.pipeline.run(u),c=new j.FieldRef(r,s),h=Object.create(null);this.fieldTermFrequencies[c]=h,this.fieldLengths[c]=0,this.fieldLengths[c]+=l.length;for(var d=0;d<l.length;d++){var f=l[d];if(null==h[f]&&(h[f]=0),h[f]+=1,null==this.invertedIndex[f]){var p=Object.create(null);p._index=this.termIndex,this.termIndex+=1;for(var y=0;y<n.length;y++)p[n[y]]=Object.create(null);this.invertedIndex[f]=p}null==this.invertedIndex[f][s][r]&&(this.invertedIndex[f][s][r]=Object.create(null));for(var m=0;m<this.metadataWhitelist.length;m++){var g=this.metadataWhitelist[m],x=f.metadata[g];null==this.invertedIndex[f][s][r][g]&&(this.invertedIndex[f][s][r][g]=[]),this.invertedIndex[f][s][r][g].push(x)}}}},j.Builder.prototype.calculateAverageFieldLengths=function(){for(var e=Object.keys(this.fieldLengths),t=e.length,r={},n={},i=0;i<t;i++){var s=j.FieldRef.fromString(e[i]),o=s.fieldName;n[o]||(n[o]=0),n[o]+=1,r[o]||(r[o]=0),r[o]+=this.fieldLengths[s]}var a=Object.keys(this._fields);for(i=0;i<a.length;i++){var u=a[i];r[u]=r[u]/n[u]}this.averageFieldLength=r},j.Builder.prototype.createFieldVectors=function(){for(var e={},t=Object.keys(this.fieldTermFrequencies),r=t.length,n=Object.create(null),i=0;i<r;i++){for(var s=j.FieldRef.fromString(t[i]),o=s.fieldName,a=this.fieldLengths[s],u=new j.Vector,l=this.fieldTermFrequencies[s],c=Object.keys(l),h=c.length,d=this._fields[o].boost||1,f=this._documents[s.docRef].boost||1,p=0;p<h;p++){var y,m,g,x=c[p],v=l[x],w=this.invertedIndex[x]._index;void 0===n[x]?(y=j.idf(this.invertedIndex[x],this.documentCount),n[x]=y):y=n[x],m=y*((this._k1+1)*v)/(this._k1*(1-this._b+this._b*(a/this.averageFieldLength[o]))+v),m*=d,m*=f,g=Math.round(1e3*m)/1e3,u.insert(w,g)}e[s]=u}this.fieldVectors=e},j.Builder.prototype.createTokenSet=function(){this.tokenSet=j.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},j.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new j.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},j.Builder.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},j.MatchData=function(e,t,r){for(var n=Object.create(null),i=Object.keys(r||{}),s=0;s<i.length;s++){var o=i[s];n[o]=r[o].slice()}this.metadata=Object.create(null),void 0!==e&&(this.metadata[e]=Object.create(null),this.metadata[e][t]=n)},j.MatchData.prototype.combine=function(e){for(var t=Object.keys(e.metadata),r=0;r<t.length;r++){var n=t[r],i=Object.keys(e.metadata[n]);null==this.metadata[n]&&(this.metadata[n]=Object.create(null));for(var s=0;s<i.length;s++){var o=i[s],a=Object.keys(e.metadata[n][o]);null==this.metadata[n][o]&&(this.metadata[n][o]=Object.create(null));for(var u=0;u<a.length;u++){var l=a[u];null==this.metadata[n][o][l]?this.metadata[n][o][l]=e.metadata[n][o][l]:this.metadata[n][o][l]=this.metadata[n][o][l].concat(e.metadata[n][o][l])}}}},j.MatchData.prototype.add=function(e,t,r){if(!(e in this.metadata))return this.metadata[e]=Object.create(null),void(this.metadata[e][t]=r);if(t in this.metadata[e])for(var n=Object.keys(r),i=0;i<n.length;i++){var s=n[i];s in this.metadata[e][t]?this.metadata[e][t][s]=this.metadata[e][t][s].concat(r[s]):this.metadata[e][t][s]=r[s]}else this.metadata[e][t]=r},j.Query=function(e){this.clauses=[],this.allFields=e},j.Query.wildcard=new String("*"),j.Query.wildcard.NONE=0,j.Query.wildcard.LEADING=1,j.Query.wildcard.TRAILING=2,j.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},j.Query.prototype.clause=function(e){return"fields"in e||(e.fields=this.allFields),"boost"in e||(e.boost=1),"usePipeline"in e||(e.usePipeline=!0),"wildcard"in e||(e.wildcard=j.Query.wildcard.NONE),e.wildcard&j.Query.wildcard.LEADING&&e.term.charAt(0)!=j.Query.wildcard&&(e.term="*"+e.term),e.wildcard&j.Query.wildcard.TRAILING&&e.term.slice(-1)!=j.Query.wildcard&&(e.term=e.term+"*"),"presence"in e||(e.presence=j.Query.presence.OPTIONAL),this.clauses.push(e),this},j.Query.prototype.isNegated=function(){for(var e=0;e<this.clauses.length;e++)if(this.clauses[e].presence!=j.Query.presence.PROHIBITED)return!1;return!0},j.Query.prototype.term=function(e,t){if(Array.isArray(e))return e.forEach((function(e){this.term(e,j.utils.clone(t))}),this),this;var r=t||{};return r.term=e.toString(),this.clause(r),this},j.QueryParseError=function(e,t,r){this.name="QueryParseError",this.message=e,this.start=t,this.end=r},j.QueryParseError.prototype=new Error,j.QueryLexer=function(e){this.lexemes=[],this.str=e,this.length=e.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},j.QueryLexer.prototype.run=function(){for(var e=j.QueryLexer.lexText;e;)e=e(this)},j.QueryLexer.prototype.sliceString=function(){for(var e=[],t=this.start,r=this.pos,n=0;n<this.escapeCharPositions.length;n++)r=this.escapeCharPositions[n],e.push(this.str.slice(t,r)),t=r+1;return e.push(this.str.slice(t,this.pos)),this.escapeCharPositions.length=0,e.join("")},j.QueryLexer.prototype.emit=function(e){this.lexemes.push({type:e,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},j.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},j.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return j.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},j.QueryLexer.prototype.width=function(){return this.pos-this.start},j.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},j.QueryLexer.prototype.backup=function(){this.pos-=1},j.QueryLexer.prototype.acceptDigitRun=function(){var e,t;do{t=(e=this.next()).charCodeAt(0)}while(t>47&&t<58);e!=j.QueryLexer.EOS&&this.backup()},j.QueryLexer.prototype.more=function(){return this.pos<this.length},j.QueryLexer.EOS="EOS",j.QueryLexer.FIELD="FIELD",j.QueryLexer.TERM="TERM",j.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",j.QueryLexer.BOOST="BOOST",j.QueryLexer.PRESENCE="PRESENCE",j.QueryLexer.lexField=function(e){return e.backup(),e.emit(j.QueryLexer.FIELD),e.ignore(),j.QueryLexer.lexText},j.QueryLexer.lexTerm=function(e){if(e.width()>1&&(e.backup(),e.emit(j.QueryLexer.TERM)),e.ignore(),e.more())return j.QueryLexer.lexText},j.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(j.QueryLexer.EDIT_DISTANCE),j.QueryLexer.lexText},j.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(j.QueryLexer.BOOST),j.QueryLexer.lexText},j.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(j.QueryLexer.TERM)},j.QueryLexer.termSeparator=j.tokenizer.separator,j.QueryLexer.lexText=function(e){for(;;){var t=e.next();if(t==j.QueryLexer.EOS)return j.QueryLexer.lexEOS;if(92!=t.charCodeAt(0)){if(":"==t)return j.QueryLexer.lexField;if("~"==t)return e.backup(),e.width()>0&&e.emit(j.QueryLexer.TERM),j.QueryLexer.lexEditDistance;if("^"==t)return e.backup(),e.width()>0&&e.emit(j.QueryLexer.TERM),j.QueryLexer.lexBoost;if("+"==t&&1===e.width())return e.emit(j.QueryLexer.PRESENCE),j.QueryLexer.lexText;if("-"==t&&1===e.width())return e.emit(j.QueryLexer.PRESENCE),j.QueryLexer.lexText;if(t.match(j.QueryLexer.termSeparator))return j.QueryLexer.lexTerm}else e.escapeCharacter()}},j.QueryParser=function(e,t){this.lexer=new j.QueryLexer(e),this.query=t,this.currentClause={},this.lexemeIdx=0},j.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=j.QueryParser.parseClause;e;)e=e(this);return this.query},j.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},j.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},j.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},j.QueryParser.parseClause=function(e){var t=e.peekLexeme();if(null!=t)switch(t.type){case j.QueryLexer.PRESENCE:return j.QueryParser.parsePresence;case j.QueryLexer.FIELD:return j.QueryParser.parseField;case j.QueryLexer.TERM:return j.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+t.type;throw t.str.length>=1&&(r+=" with value \'"+t.str+"\'"),new j.QueryParseError(r,t.start,t.end)}},j.QueryParser.parsePresence=function(e){var t=e.consumeLexeme();if(null!=t){switch(t.str){case"-":e.currentClause.presence=j.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=j.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator\'"+t.str+"\'";throw new j.QueryParseError(r,t.start,t.end)}var n=e.peekLexeme();if(null==n)throw r="expecting term or field, found nothing",new j.QueryParseError(r,t.start,t.end);switch(n.type){case j.QueryLexer.FIELD:return j.QueryParser.parseField;case j.QueryLexer.TERM:return j.QueryParser.parseTerm;default:throw r="expecting term or field, found \'"+n.type+"\'",new j.QueryParseError(r,n.start,n.end)}}},j.QueryParser.parseField=function(e){var t=e.consumeLexeme();if(null!=t){if(-1==e.query.allFields.indexOf(t.str)){var r=e.query.allFields.map((function(e){return"\'"+e+"\'"})).join(", "),n="unrecognised field \'"+t.str+"\', possible fields: "+r;throw new j.QueryParseError(n,t.start,t.end)}e.currentClause.fields=[t.str];var i=e.peekLexeme();if(null==i)throw n="expecting term, found nothing",new j.QueryParseError(n,t.start,t.end);if(i.type===j.QueryLexer.TERM)return j.QueryParser.parseTerm;throw n="expecting term, found \'"+i.type+"\'",new j.QueryParseError(n,i.start,i.end)}},j.QueryParser.parseTerm=function(e){var t=e.consumeLexeme();if(null!=t){e.currentClause.term=t.str.toLowerCase(),-1!=t.str.indexOf("*")&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(null!=r)switch(r.type){case j.QueryLexer.TERM:return e.nextClause(),j.QueryParser.parseTerm;case j.QueryLexer.FIELD:return e.nextClause(),j.QueryParser.parseField;case j.QueryLexer.EDIT_DISTANCE:return j.QueryParser.parseEditDistance;case j.QueryLexer.BOOST:return j.QueryParser.parseBoost;case j.QueryLexer.PRESENCE:return e.nextClause(),j.QueryParser.parsePresence;default:var n="Unexpected lexeme type \'"+r.type+"\'";throw new j.QueryParseError(n,r.start,r.end)}else e.nextClause()}},j.QueryParser.parseEditDistance=function(e){var t=e.consumeLexeme();if(null!=t){var r=parseInt(t.str,10);if(isNaN(r)){var n="edit distance must be numeric";throw new j.QueryParseError(n,t.start,t.end)}e.currentClause.editDistance=r;var i=e.peekLexeme();if(null!=i)switch(i.type){case j.QueryLexer.TERM:return e.nextClause(),j.QueryParser.parseTerm;case j.QueryLexer.FIELD:return e.nextClause(),j.QueryParser.parseField;case j.QueryLexer.EDIT_DISTANCE:return j.QueryParser.parseEditDistance;case j.QueryLexer.BOOST:return j.QueryParser.parseBoost;case j.QueryLexer.PRESENCE:return e.nextClause(),j.QueryParser.parsePresence;default:throw n="Unexpected lexeme type \'"+i.type+"\'",new j.QueryParseError(n,i.start,i.end)}else e.nextClause()}},j.QueryParser.parseBoost=function(e){var t=e.consumeLexeme();if(null!=t){var r=parseInt(t.str,10);if(isNaN(r)){var n="boost must be numeric";throw new j.QueryParseError(n,t.start,t.end)}e.currentClause.boost=r;var i=e.peekLexeme();if(null!=i)switch(i.type){case j.QueryLexer.TERM:return e.nextClause(),j.QueryParser.parseTerm;case j.QueryLexer.FIELD:return e.nextClause(),j.QueryParser.parseField;case j.QueryLexer.EDIT_DISTANCE:return j.QueryParser.parseEditDistance;case j.QueryLexer.BOOST:return j.QueryParser.parseBoost;case j.QueryLexer.PRESENCE:return e.nextClause(),j.QueryParser.parsePresence;default:throw n="Unexpected lexeme type \'"+i.type+"\'",new j.QueryParseError(n,i.start,i.end)}else e.nextClause()}},void 0===(i="function"==typeof(n=function(){return j})?n.call(t,r,t,e):n)||(e.exports=i)}()}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var s=t[n]={exports:{}};return e[n](s,s.exports,r),s.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var n={};!function(){"use strict";r.d(n,{add:function(){return c},dispose:function(){return y},done:function(){return h},fromExternalJS:function(){return f},load:function(){return p},search:function(){return m},toJS:function(){return d}});var e=r(291),t=(e,t,r)=>new Promise(((n,i)=>{var s=e=>{try{a(r.next(e))}catch(e){i(e)}},o=e=>{try{a(r.throw(e))}catch(e){i(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(s,o);a((r=r.apply(e,t)).next())}));let i,s,o,a=[];function u(){i=new e.Builder,i.field("title"),i.field("description"),i.ref("ref"),i.pipeline.add(e.trimmer,e.stopWordFilter,e.stemmer),o=new Promise((e=>{s=e}))}e.tokenizer.separator=/\\s+/,u();const l=t=>{const r=e.trimmer(new e.Token(t,{}));return"*"+e.stemmer(r)+"*"};function c(e,t,r){const n=a.push(r)-1,s={title:e.toLowerCase(),description:t.toLowerCase(),ref:n};i.add(s)}function h(){return t(this,null,(function*(){s(i.build())}))}function d(){return t(this,null,(function*(){return{store:a,index:(yield o).toJSON()}}))}function f(e,r){return t(this,null,(function*(){try{if(importScripts(e),!self[r])throw new Error("Broken index file format");p(self[r])}catch(e){console.error("Failed to load search index: "+e.message)}}))}function p(r){return t(this,null,(function*(){a=r.store,s(e.Index.load(r.index))}))}function y(){return t(this,null,(function*(){a=[],u()}))}function m(e,r=0){return t(this,null,(function*(){if(0===e.trim().length)return[];let t=(yield o).query((t=>{e.trim().toLowerCase().split(/\\s+/).forEach((e=>{if(1===e.length)return;const r=l(e);t.term(r,{})}))}));return r>0&&(t=t.slice(0,r)),t.map((e=>({meta:a[e.ref],score:e.score})))}))}addEventListener("message",(function(e){var t,r=e.data,i=r.type,s=r.method,o=r.id,a=r.params;"RPC"===i&&s&&((t=n[s])?Promise.resolve().then((function(){return t.apply(n,a)})):Promise.reject("No such method")).then((function(e){postMessage({type:"RPC",id:o,result:e})})).catch((function(e){var t={message:e};e.stack&&(t.message=e.message,t.stack=e.stack,t.name=e.name),postMessage({type:"RPC",id:o,error:t})}))})),postMessage({type:"RPC",method:"ready"})}()}();\n//# sourceMappingURL=cfb294d7f6536ffa8d42.worker.js.map'])),{name:"[fullhash].worker.js"});return n(e,o),e}},7:function(e){e.exports=function(e,t){var r=0,n={};e.addEventListener("message",(function(t){var r=t.data;if("RPC"===r.type)if(r.id){var o=n[r.id];o&&(delete n[r.id],r.error?o[1](Object.assign(Error(r.error.message),r.error)):o[0](r.result))}else{var i=document.createEvent("Event");i.initEvent(r.method,!1,!1),i.data=r.params,e.dispatchEvent(i)}})),t.forEach((function(t){e[t]=function(){var o=arguments;return new Promise((function(i,s){var a=++r;n[a]=[i,s],e.postMessage({type:"RPC",id:a,method:t,params:[].slice.call(o)})}))}}))}},884:function(e){"use strict";e.exports=require("call-me-maybe")},648:function(e){"use strict";e.exports=require("fast-safe-stringify")},230:function(e){"use strict";e.exports=require("stickyfill")},115:function(e){"use strict";e.exports=require("yaml")},896:function(e){"use strict";e.exports=require("fs")},611:function(e){"use strict";e.exports=require("http")},928:function(e){"use strict";e.exports=require("path")},725:function(e){"use strict";e.exports=void 0},430:function(e){"use strict";e.exports={rE:"7.0.8"}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,exports:{}};return e[n](i,i.exports,r),i.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nc=void 0;var n={};return function(){"use strict";r.r(n),r.d(n,{AUTH_TYPES:function(){return pc},ApiContentWrap:function(){return od},ApiInfo:function(){return wc},ApiInfoModel:function(){return Vr},ApiLogo:function(){return jc},AppStore:function(){return mc},ArraySchema:function(){return gl},BackgroundStub:function(){return id},BodyContent:function(){return mp},COMPONENT_REGEXP:function(){return Br},CallbackModel:function(){return dn},ClipboardService:function(){return Us},ContentItem:function(){return Pu},ContentItems:function(){return Su},DiscriminatorDropdown:function(){return il},Dropdown:function(){return ds},DropdownLabel:function(){return ca},DropdownOrLabel:function(){return ws},DropdownWrapper:function(){return pa},ErrorBoundary:function(){return ne},Example:function(){return sa},ExampleModel:function(){return Bn},ExternalExample:function(){return aa},FieldModel:function(){return Hn},GROUP_DEPTH:function(){return Yo},GroupModel:function(){return Mo},HistoryService:function(){return Ut},IS_BROWSER:function(){return s},InvertedSimpleDropdown:function(){return ua},JsonPointer:function(){return Ee},JsonViewer:function(){return ta},LEGACY_REGEXP:function(){return qr},Loading:function(){return ae},MDX_COMPONENT_REGEXP:function(){return Fr},Markdown:function(){return zs},MarkdownRenderer:function(){return Ur},MarkerService:function(){return Ht},MediaContentModel:function(){return Kn},MediaTypeModel:function(){return Yn},MediaTypesSwitch:function(){return np},MenuBuilder:function(){return Go},MenuItem:function(){return Mu},MenuItemLabel:function(){return Mc},MenuItemLi:function(){return Lc},MenuItemTitle:function(){return qc},MenuItemUl:function(){return zc},MenuItems:function(){return Vu},MenuStore:function(){return ti},MiddlePanel:function(){return ai},MimeLabel:function(){return la},NoSampleLabel:function(){return da},OLD_SECURITY_DEFINITIONS_JSX_NAME:function(){return ht},ObjectSchema:function(){return sl},OneOfButton:function(){return Sl},OneOfSchema:function(){return Pl},OpenAPIParser:function(){return jn},Operation:function(){return xu},OperationBadge:function(){return Rc},OperationItem:function(){return Au},OperationMenuItemContent:function(){return qu},OperationModel:function(){return go},OptionsConsumer:function(){return ue},OptionsContext:function(){return ce},OptionsProvider:function(){return pe},Parameters:function(){return dp},PayloadSamples:function(){return Zp},Redoc:function(){return md},RedocAttribution:function(){return Fc},RedocNormalizedOptions:function(){return W},RedocStandalone:function(){return wd},RedocWrap:function(){return nd},RequestBodyModel:function(){return eo},ResponseDetails:function(){return Cp},ResponseHeaders:function(){return Ep},ResponseModel:function(){return po},ResponseSamples:function(){return pu},ResponseTitle:function(){return bp},ResponseView:function(){return Ip},ResponsesList:function(){return Tp},RightPanel:function(){return ci},Row:function(){return ui},SCHEMA_DEFINITION_JSX_NAME:function(){return mt},SECTION_ATTR:function(){return ei},SECURITY_DEFINITIONS_JSX_NAME:function(){return dt},SECURITY_SCHEMES_SECTION_PREFIX:function(){return ft},Schema:function(){return Ml},SchemaDefinition:function(){return Hl},SchemaModel:function(){return Nn},ScrollService:function(){return ii},SearchBox:function(){return hd},SearchStore:function(){return si},Section:function(){return li},SectionItem:function(){return Iu},SecurityDefs:function(){return uc},SecuritySchemeModel:function(){return So},SecuritySchemesModel:function(){return Po},SideMenu:function(){return Ju},SideNavStyleEnum:function(){return R},SimpleDropdown:function(){return hs},SourceCode:function(){return ra},SourceCodeWithCopy:function(){return na},SpecStore:function(){return Do},StickyResponsiveSidebar:function(){return rd},StoreBuilder:function(){return Ei},StoreConsumer:function(){return ki},StoreContext:function(){return vi},StoreProvider:function(){return wi},StyledMarkdownBlock:function(){return js},ThemeProvider:function(){return X},Throttle:function(){return $t},alphabeticallyByProp:function(){return qt},appendToMdHeading:function(){return g},argValueToBoolean:function(){return Q},buildComponentComment:function(){return Qr},concatRefStacks:function(){return On},convertSwagger2OpenAPI:function(){return be},createGlobalStyle:function(){return G},createStore:function(){return hc},css:function(){return Y},debugTime:function(){return St},debugTimeEnd:function(){return Pt},detectType:function(){return Be},escapeHTMLAttrChars:function(){return P},expandDefaultServerVariables:function(){return pt},extensionsHook:function(){return te},extractExtensions:function(){return xt},flattenByProp:function(){return m},getBasePath:function(){return O},getContentWithLegacyExamples:function(){return wt},getDefinitionName:function(){return rt},getOperationSummary:function(){return qe},getSerializedValue:function(){return Xe},getStatusCodeType:function(){return Le},highlight:function(){return jt},history:function(){return Wt},html2Str:function(){return l},humanizeConstraints:function(){return it},humanizeNumberRange:function(){return ot},isAbsoluteUrl:function(){return k},isArray:function(){return I},isBoolean:function(){return A},isFormUrlEncoded:function(){return We},isJsonLike:function(){return Ue},isNamedDefinition:function(){return tt},isNumeric:function(){return y},isObject:function(){return x},isOperationName:function(){return Me},isPayloadSample:function(){return fo},isPrimitiveType:function(){return Qe},isRedocExtension:function(){return bt},isStatusCode:function(){return ze},keyframes:function(){return Z},langFromMime:function(){return Ke},loadAndBundleSpec:function(){return ge},mapLang:function(){return Ot},mapValues:function(){return h},mapWithLast:function(){return d},media:function(){return K},memoize:function(){return Mt},menuItemDepth:function(){return Nc},mergeObjects:function(){return b},mergeParams:function(){return lt},mergeSimilarMediaTypes:function(){return ct},normalizeServers:function(){return ut},pluralizeType:function(){return vt},pushRef:function(){return En},querySelector:function(){return a},removeQueryStringAndHash:function(){return $},resolveUrl:function(){return E},safeSlugify:function(){return w},scrollIntoViewIfNeeded:function(){return c},serializeParameterValue:function(){return Ze},serializeParameterValueWithMime:function(){return Ge},setSecuritySchemePrefix:function(){return yt},shortenHTTPVerb:function(){return gt},sortByField:function(){return at},sortByRequired:function(){return st},stripTrailingSlash:function(){return f},styled:function(){return ee},titleize:function(){return j},unescapeHTMLChars:function(){return C},urlFormEncodePayload:function(){return Ye},useStore:function(){return Oi}});var e=require("react"),t=require("polished");const o={spacing:{unit:5,sectionHorizontal:({spacing:e})=>8*e.unit,sectionVertical:({spacing:e})=>8*e.unit},breakpoints:{small:"50rem",medium:"75rem",large:"105rem"},colors:{tonalOffset:.2,primary:{main:"#32329f",light:({colors:e})=>(0,t.lighten)(e.tonalOffset,e.primary.main),dark:({colors:e})=>(0,t.darken)(e.tonalOffset,e.primary.main),contrastText:({colors:e})=>(0,t.readableColor)(e.primary.main)},success:{main:"#1d8127",light:({colors:e})=>(0,t.lighten)(2*e.tonalOffset,e.success.main),dark:({colors:e})=>(0,t.darken)(e.tonalOffset,e.success.main),contrastText:({colors:e})=>(0,t.readableColor)(e.success.main)},warning:{main:"#ffa500",light:({colors:e})=>(0,t.lighten)(e.tonalOffset,e.warning.main),dark:({colors:e})=>(0,t.darken)(e.tonalOffset,e.warning.main),contrastText:"#ffffff"},error:{main:"#d41f1c",light:({colors:e})=>(0,t.lighten)(e.tonalOffset,e.error.main),dark:({colors:e})=>(0,t.darken)(e.tonalOffset,e.error.main),contrastText:({colors:e})=>(0,t.readableColor)(e.error.main)},gray:{50:"#FAFAFA",100:"#F5F5F5"},text:{primary:"#333333",secondary:({colors:e})=>(0,t.lighten)(e.tonalOffset,e.text.primary)},border:{dark:"rgba(0,0,0, 0.1)",light:"#ffffff"},responses:{success:{color:({colors:e})=>e.success.main,backgroundColor:({colors:e})=>(0,t.transparentize)(.93,e.success.main),tabTextColor:({colors:e})=>e.responses.success.color},error:{color:({colors:e})=>e.error.main,backgroundColor:({colors:e})=>(0,t.transparentize)(.93,e.error.main),tabTextColor:({colors:e})=>e.responses.error.color},redirect:{color:({colors:e})=>e.warning.main,backgroundColor:({colors:e})=>(0,t.transparentize)(.9,e.responses.redirect.color),tabTextColor:({colors:e})=>e.responses.redirect.color},info:{color:"#87ceeb",backgroundColor:({colors:e})=>(0,t.transparentize)(.9,e.responses.info.color),tabTextColor:({colors:e})=>e.responses.info.color}},http:{get:"#2F8132",post:"#186FAF",put:"#95507c",options:"#947014",patch:"#bf581d",delete:"#cc3333",basic:"#707070",link:"#07818F",head:"#A23DAD"}},schema:{linesColor:e=>(0,t.lighten)(e.colors.tonalOffset,(0,t.desaturate)(e.colors.tonalOffset,e.colors.primary.main)),defaultDetailsWidth:"75%",typeNameColor:e=>e.colors.text.secondary,typeTitleColor:e=>e.schema.typeNameColor,requireLabelColor:e=>e.colors.error.main,labelsTextSize:"0.9em",nestingSpacing:"1em",nestedBackground:"#fafafa",arrow:{size:"1.1em",color:e=>e.colors.text.secondary}},typography:{fontSize:"14px",lineHeight:"1.5em",fontWeightRegular:"400",fontWeightBold:"600",fontWeightLight:"300",fontFamily:"Roboto, sans-serif",smoothing:"antialiased",optimizeSpeed:!0,headings:{fontFamily:"Montserrat, sans-serif",fontWeight:"400",lineHeight:"1.6em"},code:{fontSize:"13px",fontFamily:"Courier, monospace",lineHeight:({typography:e})=>e.lineHeight,fontWeight:({typography:e})=>e.fontWeightRegular,color:"#e53935",backgroundColor:"rgba(38, 50, 56, 0.05)",wrap:!1},links:{color:({colors:e})=>e.primary.main,visited:({typography:e})=>e.links.color,hover:({typography:e})=>(0,t.lighten)(.2,e.links.color),textDecoration:"auto",hoverTextDecoration:"auto"}},sidebar:{width:"260px",backgroundColor:"#fafafa",textColor:"#333333",activeTextColor:e=>e.sidebar.textColor!==o.sidebar.textColor?e.sidebar.textColor:e.colors.primary.main,groupItems:{activeBackgroundColor:e=>(0,t.darken)(.1,e.sidebar.backgroundColor),activeTextColor:e=>e.sidebar.activeTextColor,textTransform:"uppercase"},level1Items:{activeBackgroundColor:e=>(0,t.darken)(.05,e.sidebar.backgroundColor),activeTextColor:e=>e.sidebar.activeTextColor,textTransform:"none"},arrow:{size:"1.5em",color:e=>e.sidebar.textColor}},logo:{maxHeight:({sidebar:e})=>e.width,maxWidth:({sidebar:e})=>e.width,gutter:"2px"},rightPanel:{backgroundColor:"#263238",width:"40%",textColor:"#ffffff",servers:{overlay:{backgroundColor:"#fafafa",textColor:"#263238"},url:{backgroundColor:"#fff"}}},codeBlock:{backgroundColor:({rightPanel:e})=>(0,t.darken)(.1,e.backgroundColor)},fab:{backgroundColor:"#f2f2f2",color:"#0065FB"}};var i=o;const s="undefined"!=typeof window&&"HTMLElement"in window;function a(e){return"undefined"!=typeof document?document.querySelector(e):null}function l(e){return e.split(/<[^>]+>/).map((e=>e.trim())).filter((e=>e.length>0)).join(" ")}function c(e,t=!0){const r=e.parentNode;if(!r)return;const n=window.getComputedStyle(r,void 0),o=parseInt(n.getPropertyValue("border-top-width"),10),i=parseInt(n.getPropertyValue("border-left-width"),10),s=e.offsetTop-r.offsetTop<r.scrollTop,a=e.offsetTop-r.offsetTop+e.clientHeight-o>r.scrollTop+r.clientHeight,l=e.offsetLeft-r.offsetLeft<r.scrollLeft,c=e.offsetLeft-r.offsetLeft+e.clientWidth-i>r.scrollLeft+r.clientWidth,p=s&&!a;(s||a)&&t&&(r.scrollTop=e.offsetTop-r.offsetTop-r.clientHeight/2-o+e.clientHeight/2),(l||c)&&t&&(r.scrollLeft=e.offsetLeft-r.offsetLeft-r.clientWidth/2-i+e.clientWidth/2),(s||a||l||c)&&!t&&e.scrollIntoView(p)}var p=require("slugify"),u=r.n(p);function d(e,t){const r=[];for(let n=0;n<e.length-1;n++)r.push(t(e[n],!1));return 0!==e.length&&r.push(t(e[e.length-1],!0)),r}function h(e,t){const r={};for(const n in e)e.hasOwnProperty(n)&&(r[n]=t(e[n],n,e));return r}function m(e,t){const r=[],n=e=>{for(const o of e)r.push(o),o[t]&&n(o[t])};return n(e),r}function f(e){return e.endsWith("/")?e.substring(0,e.length-1):e}function y(e){return!isNaN(parseFloat(e))&&isFinite(e)}function g(e,t,r){const n=new RegExp(`(^|\\n)#\\s?${t}\\s*\\n`,"i"),o=new RegExp(`((\\n|^)#\\s*${t}\\s*(\\n|$)(?:.|\\n)*?)(\\n#|$)`,"i");if(n.test(e))return e.replace(o,`$1\n\n${r}\n$4`);{const n=""===e||e.endsWith("\n\n")?"":e.endsWith("\n")?"\n":"\n\n";return`${e}${n}# ${t}\n\n${r}`}}const b=(e,...t)=>{if(!t.length)return e;const r=t.shift();return void 0===r?e:(v(e)&&v(r)&&Object.keys(r).forEach((t=>{Object.prototype.hasOwnProperty.call(r,t)&&"__proto__"!==t&&(v(r[t])?(e[t]||(e[t]={}),b(e[t],r[t])):e[t]=r[t])})),b(e,...t))},x=e=>null!==e&&"object"==typeof e,v=e=>x(e)&&!I(e);function w(e){return u()(e)||e.toString().toLowerCase().replace(/\s+/g,"-").replace(/&/g,"-and-").replace(/\--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}function k(e){return/(?:^[a-z][a-z0-9+.-]*:|\/\/)/i.test(e)}function E(e,t){let r;if(t.startsWith("//"))try{r=`${new URL(e).protocol||"https:"}${t}`}catch(e){r=`https:${t}`}else if(k(t))r=t;else if(t.startsWith("/"))try{const n=new URL(e);n.pathname=t,r=n.href}catch(e){r=t}else r=f(e)+"/"+t;return f(r)}function O(e){try{return S(e).pathname}catch(t){return e}}function j(e){return e.charAt(0).toUpperCase()+e.slice(1)}function $(e){try{const t=S(e);return t.search="",t.hash="",t.toString()}catch(t){return e}}function S(e){return"undefined"==typeof URL?new(r(725).URL)(e):new URL(e)}function P(e){return e.replace(/["\\]/g,"\\$&")}function C(e){return e.replace(/&#(\d+);/g,((e,t)=>String.fromCharCode(parseInt(t,10)))).replace(/&/g,"&").replace(/"/g,'"')}function I(e){return Array.isArray(e)}function A(e){return"boolean"==typeof e}const T={enum:"Enum",enumSingleValue:"Value",enumArray:"Items",default:"Default",deprecated:"Deprecated",example:"Example",examples:"Examples",recursive:"Recursive",arrayOf:"Array of ",webhook:"Event",const:"Value",noResultsFound:"No results found",download:"Download",downloadSpecification:"Download OpenAPI specification",responses:"Responses",callbackResponses:"Callback responses",requestSamples:"Request samples",responseSamples:"Response samples"};function _(e,t){const r=T[e];return void 0!==t?r[t]:r}var R=(e=>(e.SummaryOnly="summary-only",e.PathOnly="path-only",e.IdOnly="id-only",e))(R||{}),D=Object.defineProperty,z=Object.defineProperties,L=Object.getOwnPropertyDescriptors,N=Object.getOwnPropertySymbols,M=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,F=(e,t,r)=>t in e?D(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,B=(e,t)=>{for(var r in t||(t={}))M.call(t,r)&&F(e,r,t[r]);if(N)for(var r of N(t))q.call(t,r)&&F(e,r,t[r]);return e};function Q(e,t){return void 0===e?t||!1:"string"==typeof e?"false"!==e:e}function U(e){return"string"==typeof e?parseInt(e,10):"number"==typeof e?e:void 0}class W{static normalizeExpandResponses(e){if("all"===e)return"all";if("string"==typeof e){const t={};return e.split(",").forEach((e=>{t[e.trim()]=!0})),t}return void 0!==e&&console.warn(`expandResponses must be a string but received value "${e}" of type ${typeof e}`),{}}static normalizeHideHostname(e){return!!e}static normalizeScrollYOffset(e){if("string"==typeof e&&!y(e)){const t=a(e);t||console.warn("scrollYOffset value is a selector to non-existing element. Using offset 0 by default");const r=t&&t.getBoundingClientRect().bottom||0;return()=>r}return"number"==typeof e||y(e)?()=>"number"==typeof e?e:parseFloat(e):"function"==typeof e?()=>{const t=e();return"number"!=typeof t&&console.warn(`scrollYOffset should return number but returned value "${t}" of type ${typeof t}`),t}:(void 0!==e&&console.warn("Wrong value for scrollYOffset ReDoc option: should be string, number or function"),()=>0)}static normalizeShowExtensions(e){if(void 0===e)return!1;if(""===e)return!0;if("string"!=typeof e)return e;switch(e){case"true":return!0;case"false":return!1;default:return e.split(",").map((e=>e.trim()))}}static normalizeSideNavStyle(e){const t=R.SummaryOnly;if("string"!=typeof e)return t;switch(e){case t:return e;case R.PathOnly:return R.PathOnly;case R.IdOnly:return R.IdOnly;default:return t}}static normalizePayloadSampleIdx(e){return"number"==typeof e?Math.max(0,e):"string"==typeof e&&isFinite(e)?parseInt(e,10):0}static normalizeJsonSampleExpandLevel(e){return"all"===e?1/0:isNaN(Number(e))?2:Math.ceil(Number(e))}static normalizeGeneratedPayloadSamplesMaxDepth(e){return isNaN(Number(e))?10:Math.max(0,Number(e))}constructor(e,t={}){var r,n,o,s,a;const l=(e=B(B({},t),e)).theme&&e.theme.extensionsHook;var c,p;(null==(r=e.theme)?void 0:r.menu)&&!(null==(n=e.theme)?void 0:n.sidebar)&&(console.warn('Theme setting "menu" is deprecated. Rename to "sidebar"'),e.theme.sidebar=e.theme.menu),(null==(o=e.theme)?void 0:o.codeSample)&&!(null==(s=e.theme)?void 0:s.codeBlock)&&(console.warn('Theme setting "codeSample" is deprecated. Rename to "codeBlock"'),e.theme.codeBlock=e.theme.codeSample),this.theme=function(e){const t={};let r=0;const n=(o,i)=>{Object.keys(o).forEach((s=>{const a=(i?i+".":"")+s,l=o[s];"function"==typeof l?Object.defineProperty(o,s,{get(){if(!t[a]){if(r++,r>1e3)throw new Error(`Theme probably contains circular dependency at ${a}: ${l.toString()}`);t[a]=l(e)}return t[a]},enumerable:!0}):"object"==typeof l&&n(l,a)}))};return n(e,""),JSON.parse(JSON.stringify(e))}(b({},i,(c=B({},e.theme),z(c,L({extensionsHook:void 0}))))),this.theme.extensionsHook=l,p=e.labels,Object.assign(T,p),this.scrollYOffset=W.normalizeScrollYOffset(e.scrollYOffset),this.hideHostname=W.normalizeHideHostname(e.hideHostname),this.expandResponses=W.normalizeExpandResponses(e.expandResponses),this.sortRequiredPropsFirst=Q(e.sortRequiredPropsFirst||e.requiredPropsFirst),this.sortPropsAlphabetically=Q(e.sortPropsAlphabetically),this.sortEnumValuesAlphabetically=Q(e.sortEnumValuesAlphabetically),this.sortOperationsAlphabetically=Q(e.sortOperationsAlphabetically),this.sortTagsAlphabetically=Q(e.sortTagsAlphabetically),this.nativeScrollbars=Q(e.nativeScrollbars),this.pathInMiddlePanel=Q(e.pathInMiddlePanel),this.sanitize=Q(e.sanitize||e.untrustedSpec),this.hideDownloadButtons=Q(e.hideDownloadButtons||e.hideDownloadButton),this.downloadFileName=e.downloadFileName,this.downloadDefinitionUrl=e.downloadDefinitionUrl,this.downloadUrls=e.downloadUrls,this.disableSearch=Q(e.disableSearch),this.onlyRequiredInSamples=Q(e.onlyRequiredInSamples),this.showExtensions=W.normalizeShowExtensions(e.showExtensions),this.sideNavStyle=W.normalizeSideNavStyle(e.sideNavStyle),this.hideSingleRequestSampleTab=Q(e.hideSingleRequestSampleTab),this.hideRequestPayloadSample=Q(e.hideRequestPayloadSample),this.menuToggle=Q(e.menuToggle,!0),this.jsonSamplesExpandLevel=W.normalizeJsonSampleExpandLevel(e.jsonSamplesExpandLevel||e.jsonSampleExpandLevel),this.enumSkipQuotes=Q(e.enumSkipQuotes),this.hideSchemaTitles=Q(e.hideSchemaTitles),this.simpleOneOfTypeLabel=Q(e.simpleOneOfTypeLabel),this.payloadSampleIdx=W.normalizePayloadSampleIdx(e.payloadSampleIdx),this.expandSingleSchemaField=Q(e.expandSingleSchemaField),this.schemasExpansionLevel=function(e,t=0){return"all"===e?1/0:U(e)||t}(e.schemasExpansionLevel||e.schemaExpansionLevel),this.schemaDefinitionsTagName=e.schemaDefinitionsTagName,this.showObjectSchemaExamples=Q(e.showObjectSchemaExamples),this.showSecuritySchemeType=Q(e.showSecuritySchemeType),this.hideSecuritySection=Q(e.hideSecuritySection),this.unstable_ignoreMimeParameters=Q(e.unstable_ignoreMimeParameters),this.allowedMdComponents=e.allowedMdComponents||{},this.expandDefaultServerVariables=Q(e.expandDefaultServerVariables),this.maxDisplayedEnumValues=U(e.maxDisplayedEnumValues);const u=I(e.ignoreNamedSchemas)?e.ignoreNamedSchemas:null==(a=e.ignoreNamedSchemas)?void 0:a.split(",").map((e=>e.trim()));this.ignoreNamedSchemas=new Set(u),this.hideSchemaPattern=Q(e.hideSchemaPattern),this.generatedSamplesMaxDepth=W.normalizeGeneratedPayloadSamplesMaxDepth(e.generatedSamplesMaxDepth||e.generatedPayloadSamplesMaxDepth),this.nonce=e.nonce,this.hideFab=Q(e.hideFab),this.minCharacterLengthToInitSearch=U(e.minCharacterLengthToInitSearch)||3,this.showWebhookVerb=Q(e.showWebhookVerb),this.hidePropertiesPrefix=Q(e.hidePropertiesPrefix,!0)}}var V=require("styled-components"),H=r.n(V);const{default:J,css:Y,createGlobalStyle:G,keyframes:Z,ThemeProvider:X}=V,K={lessThan(e,t,r){return(...n)=>Y`
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Redoc=t():e.Redoc=t()}(this,function(){return function(){var e={303:function(e,t,r){var n=r(224),o=["add","done","toJS","fromExternalJS","load","dispose","search","Worker"];e.exports=function(){var e=new Worker(URL.createObjectURL(new Blob(['/*! For license information please see d87bcbdbea8f8f5aa26f.worker.js.LICENSE.txt */\n!function(){var e={291:function(e,t,r){var n,i;!function(){var s,o,a,u,l,c,h,d,f,p,y,m,g,x,v,w,Q,k,S,E,L,P,b,T,O,I,R,F,C,N,j=function(e){var t=new j.Builder;return t.pipeline.add(j.trimmer,j.stopWordFilter,j.stemmer),t.searchPipeline.add(j.stemmer),e.call(t,t),t.build()};j.version="2.3.9",j.utils={},j.utils.warn=(s=this,function(e){s.console&&console.warn&&console.warn(e)}),j.utils.asString=function(e){return null==e?"":e.toString()},j.utils.clone=function(e){if(null==e)return e;for(var t=Object.create(null),r=Object.keys(e),n=0;n<r.length;n++){var i=r[n],s=e[i];if(Array.isArray(s))t[i]=s.slice();else{if("string"!=typeof s&&"number"!=typeof s&&"boolean"!=typeof s)throw new TypeError("clone is not deep and does not support nested objects");t[i]=s}}return t},j.FieldRef=function(e,t,r){this.docRef=e,this.fieldName=t,this._stringValue=r},j.FieldRef.joiner="/",j.FieldRef.fromString=function(e){var t=e.indexOf(j.FieldRef.joiner);if(-1===t)throw"malformed field ref string";var r=e.slice(0,t),n=e.slice(t+1);return new j.FieldRef(n,r,e)},j.FieldRef.prototype.toString=function(){return null==this._stringValue&&(this._stringValue=this.fieldName+j.FieldRef.joiner+this.docRef),this._stringValue},j.Set=function(e){if(this.elements=Object.create(null),e){this.length=e.length;for(var t=0;t<this.length;t++)this.elements[e[t]]=!0}else this.length=0},j.Set.complete={intersect:function(e){return e},union:function(){return this},contains:function(){return!0}},j.Set.empty={intersect:function(){return this},union:function(e){return e},contains:function(){return!1}},j.Set.prototype.contains=function(e){return!!this.elements[e]},j.Set.prototype.intersect=function(e){var t,r,n,i=[];if(e===j.Set.complete)return this;if(e===j.Set.empty)return e;this.length<e.length?(t=this,r=e):(t=e,r=this),n=Object.keys(t.elements);for(var s=0;s<n.length;s++){var o=n[s];o in r.elements&&i.push(o)}return new j.Set(i)},j.Set.prototype.union=function(e){return e===j.Set.complete?j.Set.complete:e===j.Set.empty?this:new j.Set(Object.keys(this.elements).concat(Object.keys(e.elements)))},j.idf=function(e,t){var r=0;for(var n in e)"_index"!=n&&(r+=Object.keys(e[n]).length);var i=(t-r+.5)/(r+.5);return Math.log(1+Math.abs(i))},j.Token=function(e,t){this.str=e||"",this.metadata=t||{}},j.Token.prototype.toString=function(){return this.str},j.Token.prototype.update=function(e){return this.str=e(this.str,this.metadata),this},j.Token.prototype.clone=function(e){return e=e||function(e){return e},new j.Token(e(this.str,this.metadata),this.metadata)},j.tokenizer=function(e,t){if(null==e||null==e)return[];if(Array.isArray(e))return e.map(function(e){return new j.Token(j.utils.asString(e).toLowerCase(),j.utils.clone(t))});for(var r=e.toString().toLowerCase(),n=r.length,i=[],s=0,o=0;s<=n;s++){var a=s-o;if(r.charAt(s).match(j.tokenizer.separator)||s==n){if(a>0){var u=j.utils.clone(t)||{};u.position=[o,a],u.index=i.length,i.push(new j.Token(r.slice(o,s),u))}o=s+1}}return i},j.tokenizer.separator=/[\\s\\-]+/,j.Pipeline=function(){this._stack=[]},j.Pipeline.registeredFunctions=Object.create(null),j.Pipeline.registerFunction=function(e,t){t in this.registeredFunctions&&j.utils.warn("Overwriting existing registered function: "+t),e.label=t,j.Pipeline.registeredFunctions[e.label]=e},j.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||j.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\\n",e)},j.Pipeline.load=function(e){var t=new j.Pipeline;return e.forEach(function(e){var r=j.Pipeline.registeredFunctions[e];if(!r)throw new Error("Cannot load unregistered function: "+e);t.add(r)}),t},j.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach(function(e){j.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)},this)},j.Pipeline.prototype.after=function(e,t){j.Pipeline.warnIfFunctionNotRegistered(t);var r=this._stack.indexOf(e);if(-1==r)throw new Error("Cannot find existingFn");r+=1,this._stack.splice(r,0,t)},j.Pipeline.prototype.before=function(e,t){j.Pipeline.warnIfFunctionNotRegistered(t);var r=this._stack.indexOf(e);if(-1==r)throw new Error("Cannot find existingFn");this._stack.splice(r,0,t)},j.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);-1!=t&&this._stack.splice(t,1)},j.Pipeline.prototype.run=function(e){for(var t=this._stack.length,r=0;r<t;r++){for(var n=this._stack[r],i=[],s=0;s<e.length;s++){var o=n(e[s],s,e);if(null!=o&&""!==o)if(Array.isArray(o))for(var a=0;a<o.length;a++)i.push(o[a]);else i.push(o)}e=i}return e},j.Pipeline.prototype.runString=function(e,t){var r=new j.Token(e,t);return this.run([r]).map(function(e){return e.toString()})},j.Pipeline.prototype.reset=function(){this._stack=[]},j.Pipeline.prototype.toJSON=function(){return this._stack.map(function(e){return j.Pipeline.warnIfFunctionNotRegistered(e),e.label})},j.Vector=function(e){this._magnitude=0,this.elements=e||[]},j.Vector.prototype.positionForIndex=function(e){if(0==this.elements.length)return 0;for(var t=0,r=this.elements.length/2,n=r-t,i=Math.floor(n/2),s=this.elements[2*i];n>1&&(s<e&&(t=i),s>e&&(r=i),s!=e);)n=r-t,i=t+Math.floor(n/2),s=this.elements[2*i];return s==e||s>e?2*i:s<e?2*(i+1):void 0},j.Vector.prototype.insert=function(e,t){this.upsert(e,t,function(){throw"duplicate index"})},j.Vector.prototype.upsert=function(e,t,r){this._magnitude=0;var n=this.positionForIndex(e);this.elements[n]==e?this.elements[n+1]=r(this.elements[n+1],t):this.elements.splice(n,0,e,t)},j.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var e=0,t=this.elements.length,r=1;r<t;r+=2){var n=this.elements[r];e+=n*n}return this._magnitude=Math.sqrt(e)},j.Vector.prototype.dot=function(e){for(var t=0,r=this.elements,n=e.elements,i=r.length,s=n.length,o=0,a=0,u=0,l=0;u<i&&l<s;)(o=r[u])<(a=n[l])?u+=2:o>a?l+=2:o==a&&(t+=r[u+1]*n[l+1],u+=2,l+=2);return t},j.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},j.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),t=1,r=0;t<this.elements.length;t+=2,r++)e[r]=this.elements[t];return e},j.Vector.prototype.toJSON=function(){return this.elements},j.stemmer=(o={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},a={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},h="^("+(l="[^aeiou][^aeiouy]*")+")?"+(c=(u="[aeiouy]")+"[aeiou]*")+l+"("+c+")?$",d="^("+l+")?"+c+l+c+l,f="^("+l+")?"+u,p=new RegExp("^("+l+")?"+c+l),y=new RegExp(d),m=new RegExp(h),g=new RegExp(f),x=/^(.+?)(ss|i)es$/,v=/^(.+?)([^s])s$/,w=/^(.+?)eed$/,Q=/^(.+?)(ed|ing)$/,k=/.$/,S=/(at|bl|iz)$/,E=new RegExp("([^aeiouylsz])\\\\1$"),L=new RegExp("^"+l+u+"[^aeiouwxy]$"),P=/^(.+?[^aeiou])y$/,b=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,T=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,O=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,I=/^(.+?)(s|t)(ion)$/,R=/^(.+?)e$/,F=/ll$/,C=new RegExp("^"+l+u+"[^aeiouwxy]$"),N=function(e){var t,r,n,i,s,u,l;if(e.length<3)return e;if("y"==(n=e.substr(0,1))&&(e=n.toUpperCase()+e.substr(1)),s=v,(i=x).test(e)?e=e.replace(i,"$1$2"):s.test(e)&&(e=e.replace(s,"$1$2")),s=Q,(i=w).test(e)){var c=i.exec(e);(i=p).test(c[1])&&(i=k,e=e.replace(i,""))}else s.test(e)&&(t=(c=s.exec(e))[1],(s=g).test(t)&&(u=E,l=L,(s=S).test(e=t)?e+="e":u.test(e)?(i=k,e=e.replace(i,"")):l.test(e)&&(e+="e")));return(i=P).test(e)&&(e=(t=(c=i.exec(e))[1])+"i"),(i=b).test(e)&&(t=(c=i.exec(e))[1],r=c[2],(i=p).test(t)&&(e=t+o[r])),(i=T).test(e)&&(t=(c=i.exec(e))[1],r=c[2],(i=p).test(t)&&(e=t+a[r])),s=I,(i=O).test(e)?(t=(c=i.exec(e))[1],(i=y).test(t)&&(e=t)):s.test(e)&&(t=(c=s.exec(e))[1]+c[2],(s=y).test(t)&&(e=t)),(i=R).test(e)&&(t=(c=i.exec(e))[1],s=m,u=C,((i=y).test(t)||s.test(t)&&!u.test(t))&&(e=t)),s=y,(i=F).test(e)&&s.test(e)&&(i=k,e=e.replace(i,"")),"y"==n&&(e=n.toLowerCase()+e.substr(1)),e},function(e){return e.update(N)}),j.Pipeline.registerFunction(j.stemmer,"stemmer"),j.generateStopWordFilter=function(e){var t=e.reduce(function(e,t){return e[t]=t,e},{});return function(e){if(e&&t[e.toString()]!==e.toString())return e}},j.stopWordFilter=j.generateStopWordFilter(["a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"]),j.Pipeline.registerFunction(j.stopWordFilter,"stopWordFilter"),j.trimmer=function(e){return e.update(function(e){return e.replace(/^\\W+/,"").replace(/\\W+$/,"")})},j.Pipeline.registerFunction(j.trimmer,"trimmer"),j.TokenSet=function(){this.final=!1,this.edges={},this.id=j.TokenSet._nextId,j.TokenSet._nextId+=1},j.TokenSet._nextId=1,j.TokenSet.fromArray=function(e){for(var t=new j.TokenSet.Builder,r=0,n=e.length;r<n;r++)t.insert(e[r]);return t.finish(),t.root},j.TokenSet.fromClause=function(e){return"editDistance"in e?j.TokenSet.fromFuzzyString(e.term,e.editDistance):j.TokenSet.fromString(e.term)},j.TokenSet.fromFuzzyString=function(e,t){for(var r=new j.TokenSet,n=[{node:r,editsRemaining:t,str:e}];n.length;){var i=n.pop();if(i.str.length>0){var s,o=i.str.charAt(0);o in i.node.edges?s=i.node.edges[o]:(s=new j.TokenSet,i.node.edges[o]=s),1==i.str.length&&(s.final=!0),n.push({node:s,editsRemaining:i.editsRemaining,str:i.str.slice(1)})}if(0!=i.editsRemaining){if("*"in i.node.edges)var a=i.node.edges["*"];else a=new j.TokenSet,i.node.edges["*"]=a;if(0==i.str.length&&(a.final=!0),n.push({node:a,editsRemaining:i.editsRemaining-1,str:i.str}),i.str.length>1&&n.push({node:i.node,editsRemaining:i.editsRemaining-1,str:i.str.slice(1)}),1==i.str.length&&(i.node.final=!0),i.str.length>=1){if("*"in i.node.edges)var u=i.node.edges["*"];else u=new j.TokenSet,i.node.edges["*"]=u;1==i.str.length&&(u.final=!0),n.push({node:u,editsRemaining:i.editsRemaining-1,str:i.str.slice(1)})}if(i.str.length>1){var l,c=i.str.charAt(0),h=i.str.charAt(1);h in i.node.edges?l=i.node.edges[h]:(l=new j.TokenSet,i.node.edges[h]=l),1==i.str.length&&(l.final=!0),n.push({node:l,editsRemaining:i.editsRemaining-1,str:c+i.str.slice(2)})}}}return r},j.TokenSet.fromString=function(e){for(var t=new j.TokenSet,r=t,n=0,i=e.length;n<i;n++){var s=e[n],o=n==i-1;if("*"==s)t.edges[s]=t,t.final=o;else{var a=new j.TokenSet;a.final=o,t.edges[s]=a,t=a}}return r},j.TokenSet.prototype.toArray=function(){for(var e=[],t=[{prefix:"",node:this}];t.length;){var r=t.pop(),n=Object.keys(r.node.edges),i=n.length;r.node.final&&(r.prefix.charAt(0),e.push(r.prefix));for(var s=0;s<i;s++){var o=n[s];t.push({prefix:r.prefix.concat(o),node:r.node.edges[o]})}}return e},j.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var e=this.final?"1":"0",t=Object.keys(this.edges).sort(),r=t.length,n=0;n<r;n++){var i=t[n];e=e+i+this.edges[i].id}return e},j.TokenSet.prototype.intersect=function(e){for(var t=new j.TokenSet,r=void 0,n=[{qNode:e,output:t,node:this}];n.length;){r=n.pop();for(var i=Object.keys(r.qNode.edges),s=i.length,o=Object.keys(r.node.edges),a=o.length,u=0;u<s;u++)for(var l=i[u],c=0;c<a;c++){var h=o[c];if(h==l||"*"==l){var d=r.node.edges[h],f=r.qNode.edges[l],p=d.final&&f.final,y=void 0;h in r.output.edges?(y=r.output.edges[h]).final=y.final||p:((y=new j.TokenSet).final=p,r.output.edges[h]=y),n.push({qNode:f,output:y,node:d})}}}return t},j.TokenSet.Builder=function(){this.previousWord="",this.root=new j.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},j.TokenSet.Builder.prototype.insert=function(e){var t,r=0;if(e<this.previousWord)throw new Error("Out of order word insertion");for(var n=0;n<e.length&&n<this.previousWord.length&&e[n]==this.previousWord[n];n++)r++;for(this.minimize(r),t=0==this.uncheckedNodes.length?this.root:this.uncheckedNodes[this.uncheckedNodes.length-1].child,n=r;n<e.length;n++){var i=new j.TokenSet,s=e[n];t.edges[s]=i,this.uncheckedNodes.push({parent:t,char:s,child:i}),t=i}t.final=!0,this.previousWord=e},j.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},j.TokenSet.Builder.prototype.minimize=function(e){for(var t=this.uncheckedNodes.length-1;t>=e;t--){var r=this.uncheckedNodes[t],n=r.child.toString();n in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[n]:(r.child._str=n,this.minimizedNodes[n]=r.child),this.uncheckedNodes.pop()}},j.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},j.Index.prototype.search=function(e){return this.query(function(t){new j.QueryParser(e,t).parse()})},j.Index.prototype.query=function(e){for(var t=new j.Query(this.fields),r=Object.create(null),n=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=0;a<this.fields.length;a++)n[this.fields[a]]=new j.Vector;for(e.call(t,t),a=0;a<t.clauses.length;a++){var u,l=t.clauses[a],c=j.Set.empty;u=l.usePipeline?this.pipeline.runString(l.term,{fields:l.fields}):[l.term];for(var h=0;h<u.length;h++){var d=u[h];l.term=d;var f=j.TokenSet.fromClause(l),p=this.tokenSet.intersect(f).toArray();if(0===p.length&&l.presence===j.Query.presence.REQUIRED){for(var y=0;y<l.fields.length;y++)s[R=l.fields[y]]=j.Set.empty;break}for(var m=0;m<p.length;m++){var g=p[m],x=this.invertedIndex[g],v=x._index;for(y=0;y<l.fields.length;y++){var w=x[R=l.fields[y]],Q=Object.keys(w),k=g+"/"+R,S=new j.Set(Q);if(l.presence==j.Query.presence.REQUIRED&&(c=c.union(S),void 0===s[R]&&(s[R]=j.Set.complete)),l.presence!=j.Query.presence.PROHIBITED){if(n[R].upsert(v,l.boost,function(e,t){return e+t}),!i[k]){for(var E=0;E<Q.length;E++){var L,P=Q[E],b=new j.FieldRef(P,R),T=w[P];void 0===(L=r[b])?r[b]=new j.MatchData(g,R,T):L.add(g,R,T)}i[k]=!0}}else void 0===o[R]&&(o[R]=j.Set.empty),o[R]=o[R].union(S)}}}if(l.presence===j.Query.presence.REQUIRED)for(y=0;y<l.fields.length;y++)s[R=l.fields[y]]=s[R].intersect(c)}var O=j.Set.complete,I=j.Set.empty;for(a=0;a<this.fields.length;a++){var R;s[R=this.fields[a]]&&(O=O.intersect(s[R])),o[R]&&(I=I.union(o[R]))}var F=Object.keys(r),C=[],N=Object.create(null);if(t.isNegated())for(F=Object.keys(this.fieldVectors),a=0;a<F.length;a++){b=F[a];var _=j.FieldRef.fromString(b);r[b]=new j.MatchData}for(a=0;a<F.length;a++){var D=(_=j.FieldRef.fromString(F[a])).docRef;if(O.contains(D)&&!I.contains(D)){var A,B=this.fieldVectors[_],z=n[_.fieldName].similarity(B);if(void 0!==(A=N[D]))A.score+=z,A.matchData.combine(r[_]);else{var V={ref:D,score:z,matchData:r[_]};N[D]=V,C.push(V)}}}return C.sort(function(e,t){return t.score-e.score})},j.Index.prototype.toJSON=function(){var e=Object.keys(this.invertedIndex).sort().map(function(e){return[e,this.invertedIndex[e]]},this),t=Object.keys(this.fieldVectors).map(function(e){return[e,this.fieldVectors[e].toJSON()]},this);return{version:j.version,fields:this.fields,fieldVectors:t,invertedIndex:e,pipeline:this.pipeline.toJSON()}},j.Index.load=function(e){var t={},r={},n=e.fieldVectors,i=Object.create(null),s=e.invertedIndex,o=new j.TokenSet.Builder,a=j.Pipeline.load(e.pipeline);e.version!=j.version&&j.utils.warn("Version mismatch when loading serialised index. Current version of lunr \'"+j.version+"\' does not match serialized index \'"+e.version+"\'");for(var u=0;u<n.length;u++){var l=(h=n[u])[0],c=h[1];r[l]=new j.Vector(c)}for(u=0;u<s.length;u++){var h,d=(h=s[u])[0],f=h[1];o.insert(d),i[d]=f}return o.finish(),t.fields=e.fields,t.fieldVectors=r,t.invertedIndex=i,t.tokenSet=o.root,t.pipeline=a,new j.Index(t)},j.Builder=function(){this._ref="id",this._fields=Object.create(null),this._documents=Object.create(null),this.invertedIndex=Object.create(null),this.fieldTermFrequencies={},this.fieldLengths={},this.tokenizer=j.tokenizer,this.pipeline=new j.Pipeline,this.searchPipeline=new j.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},j.Builder.prototype.ref=function(e){this._ref=e},j.Builder.prototype.field=function(e,t){if(/\\//.test(e))throw new RangeError("Field \'"+e+"\' contains illegal character \'/\'");this._fields[e]=t||{}},j.Builder.prototype.b=function(e){this._b=e<0?0:e>1?1:e},j.Builder.prototype.k1=function(e){this._k1=e},j.Builder.prototype.add=function(e,t){var r=e[this._ref],n=Object.keys(this._fields);this._documents[r]=t||{},this.documentCount+=1;for(var i=0;i<n.length;i++){var s=n[i],o=this._fields[s].extractor,a=o?o(e):e[s],u=this.tokenizer(a,{fields:[s]}),l=this.pipeline.run(u),c=new j.FieldRef(r,s),h=Object.create(null);this.fieldTermFrequencies[c]=h,this.fieldLengths[c]=0,this.fieldLengths[c]+=l.length;for(var d=0;d<l.length;d++){var f=l[d];if(null==h[f]&&(h[f]=0),h[f]+=1,null==this.invertedIndex[f]){var p=Object.create(null);p._index=this.termIndex,this.termIndex+=1;for(var y=0;y<n.length;y++)p[n[y]]=Object.create(null);this.invertedIndex[f]=p}null==this.invertedIndex[f][s][r]&&(this.invertedIndex[f][s][r]=Object.create(null));for(var m=0;m<this.metadataWhitelist.length;m++){var g=this.metadataWhitelist[m],x=f.metadata[g];null==this.invertedIndex[f][s][r][g]&&(this.invertedIndex[f][s][r][g]=[]),this.invertedIndex[f][s][r][g].push(x)}}}},j.Builder.prototype.calculateAverageFieldLengths=function(){for(var e=Object.keys(this.fieldLengths),t=e.length,r={},n={},i=0;i<t;i++){var s=j.FieldRef.fromString(e[i]),o=s.fieldName;n[o]||(n[o]=0),n[o]+=1,r[o]||(r[o]=0),r[o]+=this.fieldLengths[s]}var a=Object.keys(this._fields);for(i=0;i<a.length;i++){var u=a[i];r[u]=r[u]/n[u]}this.averageFieldLength=r},j.Builder.prototype.createFieldVectors=function(){for(var e={},t=Object.keys(this.fieldTermFrequencies),r=t.length,n=Object.create(null),i=0;i<r;i++){for(var s=j.FieldRef.fromString(t[i]),o=s.fieldName,a=this.fieldLengths[s],u=new j.Vector,l=this.fieldTermFrequencies[s],c=Object.keys(l),h=c.length,d=this._fields[o].boost||1,f=this._documents[s.docRef].boost||1,p=0;p<h;p++){var y,m,g,x=c[p],v=l[x],w=this.invertedIndex[x]._index;void 0===n[x]?(y=j.idf(this.invertedIndex[x],this.documentCount),n[x]=y):y=n[x],m=y*((this._k1+1)*v)/(this._k1*(1-this._b+this._b*(a/this.averageFieldLength[o]))+v),m*=d,m*=f,g=Math.round(1e3*m)/1e3,u.insert(w,g)}e[s]=u}this.fieldVectors=e},j.Builder.prototype.createTokenSet=function(){this.tokenSet=j.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},j.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new j.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},j.Builder.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},j.MatchData=function(e,t,r){for(var n=Object.create(null),i=Object.keys(r||{}),s=0;s<i.length;s++){var o=i[s];n[o]=r[o].slice()}this.metadata=Object.create(null),void 0!==e&&(this.metadata[e]=Object.create(null),this.metadata[e][t]=n)},j.MatchData.prototype.combine=function(e){for(var t=Object.keys(e.metadata),r=0;r<t.length;r++){var n=t[r],i=Object.keys(e.metadata[n]);null==this.metadata[n]&&(this.metadata[n]=Object.create(null));for(var s=0;s<i.length;s++){var o=i[s],a=Object.keys(e.metadata[n][o]);null==this.metadata[n][o]&&(this.metadata[n][o]=Object.create(null));for(var u=0;u<a.length;u++){var l=a[u];null==this.metadata[n][o][l]?this.metadata[n][o][l]=e.metadata[n][o][l]:this.metadata[n][o][l]=this.metadata[n][o][l].concat(e.metadata[n][o][l])}}}},j.MatchData.prototype.add=function(e,t,r){if(!(e in this.metadata))return this.metadata[e]=Object.create(null),void(this.metadata[e][t]=r);if(t in this.metadata[e])for(var n=Object.keys(r),i=0;i<n.length;i++){var s=n[i];s in this.metadata[e][t]?this.metadata[e][t][s]=this.metadata[e][t][s].concat(r[s]):this.metadata[e][t][s]=r[s]}else this.metadata[e][t]=r},j.Query=function(e){this.clauses=[],this.allFields=e},j.Query.wildcard=new String("*"),j.Query.wildcard.NONE=0,j.Query.wildcard.LEADING=1,j.Query.wildcard.TRAILING=2,j.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},j.Query.prototype.clause=function(e){return"fields"in e||(e.fields=this.allFields),"boost"in e||(e.boost=1),"usePipeline"in e||(e.usePipeline=!0),"wildcard"in e||(e.wildcard=j.Query.wildcard.NONE),e.wildcard&j.Query.wildcard.LEADING&&e.term.charAt(0)!=j.Query.wildcard&&(e.term="*"+e.term),e.wildcard&j.Query.wildcard.TRAILING&&e.term.slice(-1)!=j.Query.wildcard&&(e.term=e.term+"*"),"presence"in e||(e.presence=j.Query.presence.OPTIONAL),this.clauses.push(e),this},j.Query.prototype.isNegated=function(){for(var e=0;e<this.clauses.length;e++)if(this.clauses[e].presence!=j.Query.presence.PROHIBITED)return!1;return!0},j.Query.prototype.term=function(e,t){if(Array.isArray(e))return e.forEach(function(e){this.term(e,j.utils.clone(t))},this),this;var r=t||{};return r.term=e.toString(),this.clause(r),this},j.QueryParseError=function(e,t,r){this.name="QueryParseError",this.message=e,this.start=t,this.end=r},j.QueryParseError.prototype=new Error,j.QueryLexer=function(e){this.lexemes=[],this.str=e,this.length=e.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},j.QueryLexer.prototype.run=function(){for(var e=j.QueryLexer.lexText;e;)e=e(this)},j.QueryLexer.prototype.sliceString=function(){for(var e=[],t=this.start,r=this.pos,n=0;n<this.escapeCharPositions.length;n++)r=this.escapeCharPositions[n],e.push(this.str.slice(t,r)),t=r+1;return e.push(this.str.slice(t,this.pos)),this.escapeCharPositions.length=0,e.join("")},j.QueryLexer.prototype.emit=function(e){this.lexemes.push({type:e,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},j.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},j.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return j.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},j.QueryLexer.prototype.width=function(){return this.pos-this.start},j.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},j.QueryLexer.prototype.backup=function(){this.pos-=1},j.QueryLexer.prototype.acceptDigitRun=function(){var e,t;do{t=(e=this.next()).charCodeAt(0)}while(t>47&&t<58);e!=j.QueryLexer.EOS&&this.backup()},j.QueryLexer.prototype.more=function(){return this.pos<this.length},j.QueryLexer.EOS="EOS",j.QueryLexer.FIELD="FIELD",j.QueryLexer.TERM="TERM",j.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",j.QueryLexer.BOOST="BOOST",j.QueryLexer.PRESENCE="PRESENCE",j.QueryLexer.lexField=function(e){return e.backup(),e.emit(j.QueryLexer.FIELD),e.ignore(),j.QueryLexer.lexText},j.QueryLexer.lexTerm=function(e){if(e.width()>1&&(e.backup(),e.emit(j.QueryLexer.TERM)),e.ignore(),e.more())return j.QueryLexer.lexText},j.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(j.QueryLexer.EDIT_DISTANCE),j.QueryLexer.lexText},j.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(j.QueryLexer.BOOST),j.QueryLexer.lexText},j.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(j.QueryLexer.TERM)},j.QueryLexer.termSeparator=j.tokenizer.separator,j.QueryLexer.lexText=function(e){for(;;){var t=e.next();if(t==j.QueryLexer.EOS)return j.QueryLexer.lexEOS;if(92!=t.charCodeAt(0)){if(":"==t)return j.QueryLexer.lexField;if("~"==t)return e.backup(),e.width()>0&&e.emit(j.QueryLexer.TERM),j.QueryLexer.lexEditDistance;if("^"==t)return e.backup(),e.width()>0&&e.emit(j.QueryLexer.TERM),j.QueryLexer.lexBoost;if("+"==t&&1===e.width())return e.emit(j.QueryLexer.PRESENCE),j.QueryLexer.lexText;if("-"==t&&1===e.width())return e.emit(j.QueryLexer.PRESENCE),j.QueryLexer.lexText;if(t.match(j.QueryLexer.termSeparator))return j.QueryLexer.lexTerm}else e.escapeCharacter()}},j.QueryParser=function(e,t){this.lexer=new j.QueryLexer(e),this.query=t,this.currentClause={},this.lexemeIdx=0},j.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=j.QueryParser.parseClause;e;)e=e(this);return this.query},j.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},j.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},j.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},j.QueryParser.parseClause=function(e){var t=e.peekLexeme();if(null!=t)switch(t.type){case j.QueryLexer.PRESENCE:return j.QueryParser.parsePresence;case j.QueryLexer.FIELD:return j.QueryParser.parseField;case j.QueryLexer.TERM:return j.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+t.type;throw t.str.length>=1&&(r+=" with value \'"+t.str+"\'"),new j.QueryParseError(r,t.start,t.end)}},j.QueryParser.parsePresence=function(e){var t=e.consumeLexeme();if(null!=t){switch(t.str){case"-":e.currentClause.presence=j.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=j.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator\'"+t.str+"\'";throw new j.QueryParseError(r,t.start,t.end)}var n=e.peekLexeme();if(null==n)throw r="expecting term or field, found nothing",new j.QueryParseError(r,t.start,t.end);switch(n.type){case j.QueryLexer.FIELD:return j.QueryParser.parseField;case j.QueryLexer.TERM:return j.QueryParser.parseTerm;default:throw r="expecting term or field, found \'"+n.type+"\'",new j.QueryParseError(r,n.start,n.end)}}},j.QueryParser.parseField=function(e){var t=e.consumeLexeme();if(null!=t){if(-1==e.query.allFields.indexOf(t.str)){var r=e.query.allFields.map(function(e){return"\'"+e+"\'"}).join(", "),n="unrecognised field \'"+t.str+"\', possible fields: "+r;throw new j.QueryParseError(n,t.start,t.end)}e.currentClause.fields=[t.str];var i=e.peekLexeme();if(null==i)throw n="expecting term, found nothing",new j.QueryParseError(n,t.start,t.end);if(i.type===j.QueryLexer.TERM)return j.QueryParser.parseTerm;throw n="expecting term, found \'"+i.type+"\'",new j.QueryParseError(n,i.start,i.end)}},j.QueryParser.parseTerm=function(e){var t=e.consumeLexeme();if(null!=t){e.currentClause.term=t.str.toLowerCase(),-1!=t.str.indexOf("*")&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(null!=r)switch(r.type){case j.QueryLexer.TERM:return e.nextClause(),j.QueryParser.parseTerm;case j.QueryLexer.FIELD:return e.nextClause(),j.QueryParser.parseField;case j.QueryLexer.EDIT_DISTANCE:return j.QueryParser.parseEditDistance;case j.QueryLexer.BOOST:return j.QueryParser.parseBoost;case j.QueryLexer.PRESENCE:return e.nextClause(),j.QueryParser.parsePresence;default:var n="Unexpected lexeme type \'"+r.type+"\'";throw new j.QueryParseError(n,r.start,r.end)}else e.nextClause()}},j.QueryParser.parseEditDistance=function(e){var t=e.consumeLexeme();if(null!=t){var r=parseInt(t.str,10);if(isNaN(r)){var n="edit distance must be numeric";throw new j.QueryParseError(n,t.start,t.end)}e.currentClause.editDistance=r;var i=e.peekLexeme();if(null!=i)switch(i.type){case j.QueryLexer.TERM:return e.nextClause(),j.QueryParser.parseTerm;case j.QueryLexer.FIELD:return e.nextClause(),j.QueryParser.parseField;case j.QueryLexer.EDIT_DISTANCE:return j.QueryParser.parseEditDistance;case j.QueryLexer.BOOST:return j.QueryParser.parseBoost;case j.QueryLexer.PRESENCE:return e.nextClause(),j.QueryParser.parsePresence;default:throw n="Unexpected lexeme type \'"+i.type+"\'",new j.QueryParseError(n,i.start,i.end)}else e.nextClause()}},j.QueryParser.parseBoost=function(e){var t=e.consumeLexeme();if(null!=t){var r=parseInt(t.str,10);if(isNaN(r)){var n="boost must be numeric";throw new j.QueryParseError(n,t.start,t.end)}e.currentClause.boost=r;var i=e.peekLexeme();if(null!=i)switch(i.type){case j.QueryLexer.TERM:return e.nextClause(),j.QueryParser.parseTerm;case j.QueryLexer.FIELD:return e.nextClause(),j.QueryParser.parseField;case j.QueryLexer.EDIT_DISTANCE:return j.QueryParser.parseEditDistance;case j.QueryLexer.BOOST:return j.QueryParser.parseBoost;case j.QueryLexer.PRESENCE:return e.nextClause(),j.QueryParser.parsePresence;default:throw n="Unexpected lexeme type \'"+i.type+"\'",new j.QueryParseError(n,i.start,i.end)}else e.nextClause()}},void 0===(i="function"==typeof(n=function(){return j})?n.call(t,r,t,e):n)||(e.exports=i)}()}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var s=t[n]={exports:{}};return e[n](s,s.exports,r),s.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var n={};!function(){"use strict";r.d(n,{add:function(){return c},dispose:function(){return y},done:function(){return h},fromExternalJS:function(){return f},load:function(){return p},search:function(){return m},toJS:function(){return d}});var e=r(291),t=(e,t,r)=>new Promise((n,i)=>{var s=e=>{try{a(r.next(e))}catch(e){i(e)}},o=e=>{try{a(r.throw(e))}catch(e){i(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(s,o);a((r=r.apply(e,t)).next())});let i,s,o,a=[];function u(){i=new e.Builder,i.field("title"),i.field("description"),i.ref("ref"),i.pipeline.add(e.trimmer,e.stopWordFilter,e.stemmer),o=new Promise(e=>{s=e})}e.tokenizer.separator=/\\s+/,u();const l=t=>{const r=e.trimmer(new e.Token(t,{}));return"*"+e.stemmer(r)+"*"};function c(e,t,r){const n=a.push(r)-1,s={title:e.toLowerCase(),description:t.toLowerCase(),ref:n};i.add(s)}function h(){return t(this,null,function*(){s(i.build())})}function d(){return t(this,null,function*(){return{store:a,index:(yield o).toJSON()}})}function f(e,r){return t(this,null,function*(){try{if(importScripts(e),!self[r])throw new Error("Broken index file format");p(self[r])}catch(e){console.error("Failed to load search index: "+e.message)}})}function p(r){return t(this,null,function*(){a=r.store,s(e.Index.load(r.index))})}function y(){return t(this,null,function*(){a=[],u()})}function m(e,r=0){return t(this,null,function*(){if(0===e.trim().length)return[];let t=(yield o).query(t=>{e.trim().toLowerCase().split(/\\s+/).forEach(e=>{if(1===e.length)return;const r=l(e);t.term(r,{})})});return r>0&&(t=t.slice(0,r)),t.map(e=>({meta:a[e.ref],score:e.score}))})}addEventListener("message",function(e){var t,r=e.data,i=r.type,s=r.method,o=r.id,a=r.params;"RPC"===i&&s&&((t=n[s])?Promise.resolve().then(function(){return t.apply(n,a)}):Promise.reject("No such method")).then(function(e){postMessage({type:"RPC",id:o,result:e})}).catch(function(e){var t={message:e};e.stack&&(t.message=e.message,t.stack=e.stack,t.name=e.name),postMessage({type:"RPC",id:o,error:t})})}),postMessage({type:"RPC",method:"ready"})}()}();\n//# sourceMappingURL=d87bcbdbea8f8f5aa26f.worker.js.map'])),{name:"[fullhash].worker.js"});return n(e,o),e}},224:function(e){e.exports=function(e,t){var r=0,n={};e.addEventListener("message",function(t){var r=t.data;if("RPC"===r.type)if(r.id){var o=n[r.id];o&&(delete n[r.id],r.error?o[1](Object.assign(Error(r.error.message),r.error)):o[0](r.result))}else{var i=document.createEvent("Event");i.initEvent(r.method,!1,!1),i.data=r.params,e.dispatchEvent(i)}}),t.forEach(function(t){e[t]=function(){var o=arguments;return new Promise(function(i,s){var a=++r;n[a]=[i,s],e.postMessage({type:"RPC",id:a,method:t,params:[].slice.call(o)})})}})}},997:function(e,t,r){"use strict";var n=r(991),o=r.n(n),i=r(314),s=r.n(i)()(o());s.push([e.id,".ps{overflow:hidden!important;overflow-anchor:none;-ms-overflow-style:none;touch-action:auto;-ms-touch-action:auto}.ps__rail-x{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;height:15px;bottom:0;position:absolute}.ps__rail-y{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;width:15px;right:0;position:absolute}.ps--active-x>.ps__rail-x,.ps--active-y>.ps__rail-y{display:block;background-color:transparent}.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y,.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y{opacity:.6}.ps .ps__rail-x:hover,.ps .ps__rail-y:hover,.ps .ps__rail-x:focus,.ps .ps__rail-y:focus,.ps .ps__rail-x.ps--clicking,.ps .ps__rail-y.ps--clicking{background-color:#eee;opacity:.9}.ps__thumb-x{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,height .2s ease-in-out;-webkit-transition:background-color .2s linear,height .2s ease-in-out;height:6px;bottom:2px;position:absolute}.ps__thumb-y{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out;width:6px;right:2px;position:absolute}.ps__rail-x:hover>.ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x.ps--clicking .ps__thumb-x{background-color:#999;height:11px}.ps__rail-y:hover>.ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y.ps--clicking .ps__thumb-y{background-color:#999;width:11px}@supports (-ms-overflow-style: none){.ps{overflow:auto!important}}@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){.ps{overflow:auto!important}}\n","",{version:3,sources:["webpack://./node_modules/perfect-scrollbar/css/perfect-scrollbar.css"],names:[],mappings:"AAGA,IACE,yBAAU,CACV,oBAAiB,CACjB,uBAAoB,CACpB,iBAAc,CACd,qBACF,CAKA,YACE,YAAS,CACT,SAAS,CACT,yDAAqD,CACrD,iEAA6D,CAC7D,WAAQ,CAER,QAAQ,CAER,iBACF,CAEA,YACE,YAAS,CACT,SAAS,CACT,yDAAqD,CACrD,iEAA6D,CAC7D,UAAO,CAEP,OAAO,CAEP,iBACF,CAEA,oDAEE,aAAS,CACT,4BACF,CAEA,oJAME,UACF,CAEA,kJAME,qBAAkB,CAClB,UACF,CAKA,aACE,qBAAkB,CAnEpB,iBAoEiB,CACf,6DAAoD,CACpD,qEAA4D,CAC5D,UAAQ,CAER,UAAQ,CAER,iBACF,CAEA,aACE,qBAAkB,CA/EpB,iBAgFiB,CACf,4DAAmD,CACnD,oEAA2D,CAC3D,SAAO,CAEP,SAAO,CAEP,iBACF,CAEA,oGAGE,qBAAkB,CAClB,WACF,CAEA,oGAGE,qBAAkB,CAClB,UACF,CAGA,qCACE,IACE,uBACF,CACF,CAEA,wEACE,IACE,uBACF,CACF",sourcesContent:["/*\n * Container style\n */\n.ps {\n overflow: hidden !important;\n overflow-anchor: none;\n -ms-overflow-style: none;\n touch-action: auto;\n -ms-touch-action: auto;\n}\n\n/*\n * Scrollbar rail styles\n */\n.ps__rail-x {\n display: none;\n opacity: 0;\n transition: background-color .2s linear, opacity .2s linear;\n -webkit-transition: background-color .2s linear, opacity .2s linear;\n height: 15px;\n /* there must be 'bottom' or 'top' for ps__rail-x */\n bottom: 0px;\n /* please don't change 'position' */\n position: absolute;\n}\n\n.ps__rail-y {\n display: none;\n opacity: 0;\n transition: background-color .2s linear, opacity .2s linear;\n -webkit-transition: background-color .2s linear, opacity .2s linear;\n width: 15px;\n /* there must be 'right' or 'left' for ps__rail-y */\n right: 0;\n /* please don't change 'position' */\n position: absolute;\n}\n\n.ps--active-x > .ps__rail-x,\n.ps--active-y > .ps__rail-y {\n display: block;\n background-color: transparent;\n}\n\n.ps:hover > .ps__rail-x,\n.ps:hover > .ps__rail-y,\n.ps--focus > .ps__rail-x,\n.ps--focus > .ps__rail-y,\n.ps--scrolling-x > .ps__rail-x,\n.ps--scrolling-y > .ps__rail-y {\n opacity: 0.6;\n}\n\n.ps .ps__rail-x:hover,\n.ps .ps__rail-y:hover,\n.ps .ps__rail-x:focus,\n.ps .ps__rail-y:focus,\n.ps .ps__rail-x.ps--clicking,\n.ps .ps__rail-y.ps--clicking {\n background-color: #eee;\n opacity: 0.9;\n}\n\n/*\n * Scrollbar thumb styles\n */\n.ps__thumb-x {\n background-color: #aaa;\n border-radius: 6px;\n transition: background-color .2s linear, height .2s ease-in-out;\n -webkit-transition: background-color .2s linear, height .2s ease-in-out;\n height: 6px;\n /* there must be 'bottom' for ps__thumb-x */\n bottom: 2px;\n /* please don't change 'position' */\n position: absolute;\n}\n\n.ps__thumb-y {\n background-color: #aaa;\n border-radius: 6px;\n transition: background-color .2s linear, width .2s ease-in-out;\n -webkit-transition: background-color .2s linear, width .2s ease-in-out;\n width: 6px;\n /* there must be 'right' for ps__thumb-y */\n right: 2px;\n /* please don't change 'position' */\n position: absolute;\n}\n\n.ps__rail-x:hover > .ps__thumb-x,\n.ps__rail-x:focus > .ps__thumb-x,\n.ps__rail-x.ps--clicking .ps__thumb-x {\n background-color: #999;\n height: 11px;\n}\n\n.ps__rail-y:hover > .ps__thumb-y,\n.ps__rail-y:focus > .ps__thumb-y,\n.ps__rail-y.ps--clicking .ps__thumb-y {\n background-color: #999;\n width: 11px;\n}\n\n/* MS supports */\n@supports (-ms-overflow-style: none) {\n .ps {\n overflow: auto !important;\n }\n}\n\n@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n .ps {\n overflow: auto !important;\n }\n}\n"],sourceRoot:""}]),t.A=s},314:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r=e(t);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r}).join("")},t.i=function(e,r,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var i=0;i<this.length;i++){var s=this[i][0];null!=s&&(o[s]=!0)}for(var a=0;a<e.length;a++){var l=[].concat(e[a]);n&&o[l[0]]||(r&&(l[2]?l[2]="".concat(r," and ").concat(l[2]):l[2]=r),t.push(l))}},t}},991:function(e){"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}e.exports=function(e){var r,n,o=(n=4,function(e){if(Array.isArray(e))return e}(r=e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,o,i=[],s=!0,a=!1;try{for(r=r.call(e);!(s=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==r.return||r.return()}finally{if(a)throw o}}return i}}(r,n)||function(e,r){if(e){if("string"==typeof e)return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,r):void 0}}(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[1],s=o[3];if("function"==typeof btoa){var a=btoa(unescape(encodeURIComponent(JSON.stringify(s)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),c="/*# ".concat(l," */"),p=s.sources.map(function(e){return"/*# sourceURL=".concat(s.sourceRoot||"").concat(e," */")});return[i].concat(p).concat([c]).join("\n")}return[i].join("\n")}},353:function(e,t,r){"use strict";r.d(t,{Ay:function(){return i}});var n=require("lunr"),o=(e,t,r)=>new Promise((n,o)=>{var i=e=>{try{a(r.next(e))}catch(e){o(e)}},s=e=>{try{a(r.throw(e))}catch(e){o(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(i,s);a((r=r.apply(e,t)).next())});class i{constructor(){this.add=d,this.done=h,this.search=b,this.toJS=m,this.load=y,this.dispose=g,this.fromExternalJS=f}}let s,a,l,c=[];function p(){s=new n.Builder,s.field("title"),s.field("description"),s.ref("ref"),s.pipeline.add(n.trimmer,n.stopWordFilter,n.stemmer),l=new Promise(e=>{a=e})}n.tokenizer.separator=/\s+/,p();const u=e=>{const t=n.trimmer(new n.Token(e,{}));return"*"+n.stemmer(t)+"*"};function d(e,t,r){const n=c.push(r)-1,o={title:e.toLowerCase(),description:t.toLowerCase(),ref:n};s.add(o)}function h(){return o(this,null,function*(){a(s.build())})}function m(){return o(this,null,function*(){return{store:c,index:(yield l).toJSON()}})}function f(e,t){return o(this,null,function*(){try{if(importScripts(e),!self[t])throw new Error("Broken index file format");y(self[t])}catch(e){console.error("Failed to load search index: "+e.message)}})}function y(e){return o(this,null,function*(){c=e.store,a(n.Index.load(e.index))})}function g(){return o(this,null,function*(){c=[],p()})}function b(e,t=0){return o(this,null,function*(){if(0===e.trim().length)return[];let r=(yield l).query(t=>{e.trim().toLowerCase().split(/\s+/).forEach(e=>{if(1===e.length)return;const r=u(e);t.term(r,{})})});return t>0&&(r=r.slice(0,t)),r.map(e=>({meta:c[e.ref],score:e.score}))})}},435:function(e,t,r){"use strict";const n=r(648),o={}.NODE_DISABLE_COLORS?{red:"",yellow:"",green:"",normal:""}:{red:"[31m",yellow:"[33;1m",green:"[32m",normal:"[0m"};function i(e,t){function r(e,t){return n.stringify(e)===n.stringify(Object.assign({},e,t))}return r(e,t)&&r(t,e)}function s(e){let t=(e=e.replace("[]","Array")).split("/");return t[0]=t[0].replace(/[^A-Za-z0-9_\-\.]+|\s+/gm,"_"),t.join("/")}String.prototype.toCamelCase=function(){return this.toLowerCase().replace(/[-_ \/\.](.)/g,function(e,t){return t.toUpperCase()})},e.exports={colour:o,uniqueOnly:function(e,t,r){return r.indexOf(e)===t},hasDuplicates:function(e){return new Set(e).size!==e.length},allSame:function(e){return new Set(e).size<=1},distinctArray:function(e){return e.length===function(e){let t=[];for(let r of e)t.find(function(e,t,n){return i(e,r)})||t.push(r);return t}(e).length},firstDupe:function(e){return e.find(function(t,r,n){return e.indexOf(t)<r})},hash:function(e){let t,r=0;if(0===e.length)return r;for(let n=0;n<e.length;n++)t=e.charCodeAt(n),r=(r<<5)-r+t,r|=0;return r},parameterTypeProperties:["format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","minLength","maxLength","multipleOf","minItems","maxItems","uniqueItems","minProperties","maxProperties","additionalProperties","pattern","enum","default"],arrayProperties:["items","minItems","maxItems","uniqueItems"],httpMethods:["get","post","put","delete","patch","head","options","trace"],sanitise:s,sanitiseAll:function(e){return s(e.split("/").join("_"))}}},751:function(e,t,r){"use strict";const n=r(896),o=r(928),i=r(725),s=r(725),a=r(115),l=r(33).jptr,c=r(880).recurse,p=r(920).clone,u=r(737).dereference,d=r(264).isRef,h=r(435);function m(e,t,r,n,o,s){let a=s.externalRefs[r+n].paths[0],u=i.parse(o),m={},f=1;for(;f;)f=0,c(e,{identityDetection:!0},function(e,r,n){if(d(e,r))if(e[r].startsWith("#"))if(m[e[r]]||e.$fixed){if(!e.$fixed){let t=(a+"/"+m[e[r]]).split("/#/").join("/");n.parent[n.pkey]={$ref:t,"x-miro":e[r],$fixed:!0},s.verbose>1&&console.warn("Replacing with",t),f++}}else{let o=p(l(t,e[r]));if(s.verbose>1&&console.warn((!1===o?h.colour.red:h.colour.green)+"Fragment resolution",e[r],h.colour.normal),!1===o){if(n.parent[n.pkey]={},s.fatal){let t=new Error("Fragment $ref resolution failed "+e[r]);if(!s.promise)throw t;s.promise.reject(t)}}else f++,n.parent[n.pkey]=o,m[e[r]]=n.path.replace("/%24ref","")}else if(u.protocol){let t=i.resolve(o,e[r]).toString();s.verbose>1&&console.warn(h.colour.yellow+"Rewriting external url ref",e[r],"as",t,h.colour.normal),e["x-miro"]=e[r],s.externalRefs[e[r]]&&(s.externalRefs[t]||(s.externalRefs[t]=s.externalRefs[e[r]]),s.externalRefs[t].failed=s.externalRefs[e[r]].failed),e[r]=t}else if(!e["x-miro"]){let t=i.resolve(o,e[r]).toString(),n=!1;s.externalRefs[e[r]]&&(n=s.externalRefs[e[r]].failed),n||(s.verbose>1&&console.warn(h.colour.yellow+"Rewriting external ref",e[r],"as",t,h.colour.normal),e["x-miro"]=e[r],e[r]=t)}});return c(e,{},function(e,t,r){d(e,t)&&void 0!==e.$fixed&&delete e.$fixed}),s.verbose>1&&console.warn("Finished fragment resolution"),e}function f(e,t){if(!t.filters||!t.filters.length)return e;for(let r of t.filters)e=r(e,t);return e}function y(e,t,r,s){var c=i.parse(r.source),u=r.source.split("\\").join("/").split("/");u.pop()||u.pop();let d="",h=t.split("#");h.length>1&&(d="#"+h[1],t=h[0]),u=u.join("/");let y=(g=i.parse(t).protocol,b=c.protocol,g&&g.length>2?g:b&&b.length>2?b:"file:");var g,b;let x;if(x="file:"===y?o.resolve(u?u+"/":"",t):i.resolve(u?u+"/":"",t),r.cache[x]){r.verbose&&console.warn("CACHED",x,d);let e=p(r.cache[x]),n=r.externalRef=e;if(d&&(n=l(n,d),!1===n&&(n={},r.fatal))){let e=new Error("Cached $ref resolution failed "+x+d);if(!r.promise)throw e;r.promise.reject(e)}return n=m(n,e,t,d,x,r),n=f(n,r),s(p(n),x,r),Promise.resolve(n)}if(r.verbose&&console.warn("GET",x,d),r.handlers&&r.handlers[y])return r.handlers[y](u,t,d,r).then(function(e){return r.externalRef=e,e=f(e,r),r.cache[x]=e,s(e,x,r),e}).catch(function(e){throw r.verbose&&console.warn(e),e});if(y&&y.startsWith("http")){const e=Object.assign({},r.fetchOptions,{agent:r.agent});return r.fetch(x,e).then(function(e){if(200!==e.status){if(r.ignoreIOErrors)return r.verbose&&console.warn("FAILED",t),r.externalRefs[t].failed=!0,'{"$ref":"'+t+'"}';throw new Error(`Received status code ${e.status}: ${x}`)}return e.text()}).then(function(e){try{let n=a.parse(e,{schema:"core",prettyErrors:!0});if(e=r.externalRef=n,r.cache[x]=p(e),d&&!1===(e=l(e,d))&&(e={},r.fatal)){let e=new Error("Remote $ref resolution failed "+x+d);if(!r.promise)throw e;r.promise.reject(e)}e=f(e=m(e,n,t,d,x,r),r)}catch(e){if(r.verbose&&console.warn(e),!r.promise||!r.fatal)throw e;r.promise.reject(e)}return s(e,x,r),e}).catch(function(e){if(r.verbose&&console.warn(e),r.cache[x]={},!r.promise||!r.fatal)throw e;r.promise.reject(e)})}{const e='{"$ref":"'+t+'"}';return function(e,t,r,o,i){return new Promise(function(s,a){n.readFile(e,t,function(e,t){e?r.ignoreIOErrors&&i?(r.verbose&&console.warn("FAILED",o),r.externalRefs[o].failed=!0,s(i)):a(e):s(t)})})}(x,r.encoding||"utf8",r,t,e).then(function(e){try{let n=a.parse(e,{schema:"core",prettyErrors:!0});if(e=r.externalRef=n,r.cache[x]=p(e),d&&!1===(e=l(e,d))&&(e={},r.fatal)){let e=new Error("File $ref resolution failed "+x+d);if(!r.promise)throw e;r.promise.reject(e)}e=f(e=m(e,n,t,d,x,r),r)}catch(e){if(r.verbose&&console.warn(e),!r.promise||!r.fatal)throw e;r.promise.reject(e)}return s(e,x,r),e}).catch(function(e){if(r.verbose&&console.warn(e),!r.promise||!r.fatal)throw e;r.promise.reject(e)})}}function g(e){return new Promise(function(t,r){(function(e){return new Promise(function(t,r){function n(t,r,n){if(t[r]&&d(t[r],"$ref")){let i=t[r].$ref;if(!i.startsWith("#")){let s="";if(!o[i]){let t=Object.keys(o).find(function(e,t,r){return i.startsWith(e+"/")});t&&(e.verbose&&console.warn("Found potential subschema at",t),s="/"+(i.split("#")[1]||"").replace(t.split("#")[1]||""),s=s.split("/undefined").join(""),i=t)}if(o[i]||(o[i]={resolved:!1,paths:[],extras:{},description:t[r].description}),o[i].resolved)if(o[i].failed);else if(e.rewriteRefs){let n=o[i].resolvedAt;e.verbose>1&&console.warn("Rewriting ref",i,n),t[r]["x-miro"]=i,t[r].$ref=n+s}else t[r]=p(o[i].data);else o[i].paths.push(n.path),o[i].extras[n.path]=s}}}let o=e.externalRefs;if(e.resolver.depth>0&&e.source===e.resolver.base)return t(o);c(e.openapi.definitions,{identityDetection:!0,path:"#/definitions"},n),c(e.openapi.components,{identityDetection:!0,path:"#/components"},n),c(e.openapi,{identityDetection:!0},n),t(o)})})(e).then(function(t){for(let r in t)if(!t[r].resolved){let n=e.resolver.depth;n>0&&n++,e.resolver.actions[n].push(function(){return y(e.openapi,r,e,function(e,n,o){if(!t[r].resolved){let i={};i.context=t[r],i.$ref=r,i.original=p(e),i.updated=e,i.source=n,o.externals.push(i),t[r].resolved=!0}let i=Object.assign({},o,{source:"",resolver:{actions:o.resolver.actions,depth:o.resolver.actions.length-1,base:o.resolver.base}});o.patch&&t[r].description&&!e.description&&"object"==typeof e&&(e.description=t[r].description),t[r].data=e;let s=(a=t[r].paths,[...new Set(a)]);var a;s=s.sort(function(e,t){const r=e.startsWith("#/components/")||e.startsWith("#/definitions/"),n=t.startsWith("#/components/")||t.startsWith("#/definitions/");return r&&!n?-1:n&&!r?1:0});for(let n of s)if(t[r].resolvedAt&&n!==t[r].resolvedAt&&n.indexOf("x-ms-examples/")<0)o.verbose>1&&console.warn("Creating pointer to data at",n),l(o.openapi,n,{$ref:t[r].resolvedAt+t[r].extras[n],"x-miro":r+t[r].extras[n]});else{t[r].resolvedAt?o.verbose>1&&console.warn("Avoiding circular reference"):(t[r].resolvedAt=n,o.verbose>1&&console.warn("Creating initial clone of data at",n));let i=p(e);l(o.openapi,n,i)}0===o.resolver.actions[i.resolver.depth].length&&o.resolver.actions[i.resolver.depth].push(function(){return g(i)})})})}}).catch(function(t){e.verbose&&console.warn(t),r(t)});let n={options:e};n.actions=e.resolver.actions[e.resolver.depth],t(n)})}function b(e,t,r){e.resolver.actions.push([]),g(e).then(function(n){var o;(o=n.actions,o.reduce((e,t)=>e.then(e=>t().then(Array.prototype.concat.bind(e))),Promise.resolve([]))).then(function(){if(e.resolver.depth>=e.resolver.actions.length)return console.warn("Ran off the end of resolver actions"),t(!0);e.resolver.depth++,e.resolver.actions[e.resolver.depth].length?setTimeout(function(){b(n.options,t,r)},0):(e.verbose>1&&console.warn(h.colour.yellow+"Finished external resolution!",h.colour.normal),e.resolveInternal&&(e.verbose>1&&console.warn(h.colour.yellow+"Starting internal resolution!",h.colour.normal),e.openapi=u(e.openapi,e.original,{verbose:e.verbose-1}),e.verbose>1&&console.warn(h.colour.yellow+"Finished internal resolution!",h.colour.normal)),c(e.openapi,{},function(t,r,n){d(t,r)&&(e.preserveMiro||delete t["x-miro"])}),t(e))}).catch(function(t){e.verbose&&console.warn(t),r(t)})}).catch(function(t){e.verbose&&console.warn(t),r(t)})}function x(e){if(e.cache||(e.cache={}),e.fetch||(e.fetch=s),e.source){let t=i.parse(e.source);(!t.protocol||t.protocol.length<=2)&&(e.source=o.resolve(e.source))}e.externals=[],e.externalRefs={},e.rewriteRefs=!0,e.resolver={},e.resolver.depth=0,e.resolver.base=e.source,e.resolver.actions=[[]]}e.exports={optionalResolve:function(e){return x(e),new Promise(function(t,r){e.resolve?b(e,t,r):t(e)})},resolve:function(e,t,r){return r||(r={}),r.openapi=e,r.source=t,r.resolve=!0,x(r),new Promise(function(e,t){b(r,e,t)})}}},319:function(e){"use strict";function t(){return{depth:0,seen:new WeakMap,top:!0,combine:!1,allowRefSiblings:!1}}e.exports={getDefaultState:t,walkSchema:function e(r,n,o,i){if(void 0===o.depth&&(o=t()),null==r)return r;if(void 0!==r.$ref){let e={$ref:r.$ref};return o.allowRefSiblings&&r.description&&(e.description=r.description),i(e,n,o),e}if(o.combine&&(r.allOf&&Array.isArray(r.allOf)&&1===r.allOf.length&&delete(r=Object.assign({},r.allOf[0],r)).allOf,r.anyOf&&Array.isArray(r.anyOf)&&1===r.anyOf.length&&delete(r=Object.assign({},r.anyOf[0],r)).anyOf,r.oneOf&&Array.isArray(r.oneOf)&&1===r.oneOf.length&&delete(r=Object.assign({},r.oneOf[0],r)).oneOf),i(r,n,o),o.seen.has(r))return r;if("object"==typeof r&&null!==r&&o.seen.set(r,!0),o.top=!1,o.depth++,void 0!==r.items&&(o.property="items",e(r.items,r,o,i)),r.additionalItems&&"object"==typeof r.additionalItems&&(o.property="additionalItems",e(r.additionalItems,r,o,i)),r.additionalProperties&&"object"==typeof r.additionalProperties&&(o.property="additionalProperties",e(r.additionalProperties,r,o,i)),r.properties)for(let t in r.properties){let n=r.properties[t];o.property="properties/"+t,e(n,r,o,i)}if(r.patternProperties)for(let t in r.patternProperties){let n=r.patternProperties[t];o.property="patternProperties/"+t,e(n,r,o,i)}if(r.allOf)for(let t in r.allOf){let n=r.allOf[t];o.property="allOf/"+t,e(n,r,o,i)}if(r.anyOf)for(let t in r.anyOf){let n=r.anyOf[t];o.property="anyOf/"+t,e(n,r,o,i)}if(r.oneOf)for(let t in r.oneOf){let n=r.oneOf[t];o.property="oneOf/"+t,e(n,r,o,i)}return r.not&&(o.property="not",e(r.not,r,o,i)),o.depth--,r}}},920:function(e){"use strict";e.exports={nop:function(e){return e},clone:function(e){return JSON.parse(JSON.stringify(e))},shallowClone:function(e){let t={};for(let r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t},deepClone:function e(t){let r=Array.isArray(t)?[]:{};for(let n in t)(t.hasOwnProperty(n)||Array.isArray(t))&&(r[n]="object"==typeof t[n]?e(t[n]):t[n]);return r},fastClone:function(e){return Object.assign({},e)},circularClone:function e(t,r){if(r||(r=new WeakMap),Object(t)!==t||t instanceof Function)return t;if(r.has(t))return r.get(t);try{var n=new t.constructor}catch(e){n=Object.create(Object.getPrototypeOf(t))}return r.set(t,n),Object.assign(n,...Object.keys(t).map(n=>({[n]:e(t[n],r)})))}}},737:function(e,t,r){"use strict";const n=r(880).recurse,o=r(920).shallowClone,i=r(33).jptr,s=r(264).isRef;e.exports={dereference:function e(t,r,a){a||(a={}),a.cache||(a.cache={}),a.state||(a.state={}),a.state.identityDetection=!0,a.depth=a.depth?a.depth+1:1;let l=a.depth>1?t:o(t),c={data:l},p=a.depth>1?r:o(r);a.master||(a.master=l);let u=function(e){return e&&e.verbose?{warn:function(){var e=Array.prototype.slice.call(arguments);console.warn.apply(console,e)}}:{warn:function(){}}}(a),d=1;for(;d>0;)d=0,n(c,a.state,function(t,r,n){if(s(t,r)){let o=t[r];if(d++,a.cache[o]){let e=a.cache[o];if(e.resolved)u.warn("Patching %s for %s",o,e.path),n.parent[n.pkey]=e.data,a.$ref&&"object"==typeof n.parent[n.pkey]&&null!==n.parent[n.pkey]&&(n.parent[n.pkey][a.$ref]=o);else{if(o===e.path)throw new Error(`Tight circle at ${e.path}`);u.warn("Unresolved ref"),n.parent[n.pkey]=i(e.source,e.path),!1===n.parent[n.pkey]&&(n.parent[n.pkey]=i(e.source,e.key)),a.$ref&&"object"==typeof n.parent[n.pkey]&&null!==n.parent[n.pkey]&&(n.parent[a.$ref]=o)}}else{let t={};t.path=n.path.split("/$ref")[0],t.key=o,u.warn("Dereffing %s at %s",o,t.path),t.source=p,t.data=i(t.source,t.key),!1===t.data&&(t.data=i(a.master,t.key),t.source=a.master),!1===t.data&&u.warn("Missing $ref target",t.key),a.cache[o]=t,t.data=n.parent[n.pkey]=e(i(t.source,t.key),t.source,a),a.$ref&&"object"==typeof n.parent[n.pkey]&&null!==n.parent[n.pkey]&&(n.parent[n.pkey][a.$ref]=o),t.resolved=!0}}});return c.data}}},264:function(e){"use strict";e.exports={isRef:function(e,t){return"$ref"===t&&!!e&&"string"==typeof e[t]}}},33:function(e){"use strict";function t(e){return e.replace(/\~1/g,"/").replace(/~0/g,"~")}e.exports={jptr:function(e,r,n){if(void 0===e)return!1;if(!r||"string"!=typeof r||"#"===r)return void 0!==n?n:e;if(r.indexOf("#")>=0){let e=r.split("#");if(e[0])return!1;r=e[1],r=decodeURIComponent(r.slice(1).split("+").join(" "))}r.startsWith("/")&&(r=r.slice(1));let o=r.split("/");for(let r=0;r<o.length;r++){o[r]=t(o[r]);let i=void 0!==n&&r==o.length-1,s=parseInt(o[r],10);if(!Array.isArray(e)||isNaN(s)||s.toString()!==o[r]?s=Array.isArray(e)&&"-"===o[r]?-2:-1:o[r]=r>0?o[r-1]:"",-1!=s||e&&e.hasOwnProperty(o[r]))if(s>=0)i&&(e[s]=n),e=e[s];else{if(-2===s)return i?(Array.isArray(e)&&e.push(n),n):void 0;i&&(e[o[r]]=n),e=e[o[r]]}else{if(void 0===n||"object"!=typeof e||Array.isArray(e))return!1;e[o[r]]=i?n:"0"===o[r+1]||"-"===o[r+1]?[]:{},e=e[o[r]]}}return e},jpescape:function(e){return e.replace(/\~/g,"~0").replace(/\//g,"~1")},jpunescape:t}},880:function(e,t,r){"use strict";const n=r(33).jpescape;e.exports={recurse:function e(t,r,o){if(r||(r={depth:0}),r.depth||(r=Object.assign({},{path:"#",depth:0,pkey:"",parent:{},payload:{},seen:new WeakMap,identity:!1,identityDetection:!1},r)),"object"!=typeof t)return;let i=r.path;for(let s in t){if(r.key=s,r.path=r.path+"/"+encodeURIComponent(n(s)),r.identityPath=r.seen.get(t[s]),r.identity=void 0!==r.identityPath,t.hasOwnProperty(s)&&o(t,s,r),"object"==typeof t[s]&&!r.identity){r.identityDetection&&!Array.isArray(t[s])&&null!==t[s]&&r.seen.set(t[s],r.path);let n={};n.parent=t,n.path=r.path,n.depth=r.depth?r.depth+1:1,n.pkey=s,n.payload=r.payload,n.seen=r.seen,n.identity=!1,n.identityDetection=r.identityDetection,e(t[s],n,o)}r.path=i}}}},494:function(e,t,r){"use strict";r.r(t);var n=r(72),o=r.n(n),i=r(825),s=r.n(i),a=r(659),l=r.n(a),c=r(56),p=r.n(c),u=r(540),d=r.n(u),h=r(113),m=r.n(h),f=r(997),y={};y.styleTagTransform=m(),y.setAttributes=p(),y.insert=l().bind(null,"head"),y.domAPI=s(),y.insertStyleElement=d(),o()(f.A,y),t.default=f.A&&f.A.locals?f.A.locals:void 0},72:function(e){"use strict";var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var i={},s=[],a=0;a<e.length;a++){var l=e[a],c=n.base?l[0]+n.base:l[0],p=i[c]||0,u="".concat(c," ").concat(p);i[c]=p+1;var d=r(u),h={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)t[d].references++,t[d].updater(h);else{var m=o(h,n);n.byIndex=a,t.splice(a,0,{identifier:u,updater:m,references:1})}s.push(u)}return s}function o(e,t){var r=t.domAPI(t);return r.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,o){var i=n(e=e||[],o=o||{});return function(e){e=e||[];for(var s=0;s<i.length;s++){var a=r(i[s]);t[a].references--}for(var l=n(e,o),c=0;c<i.length;c++){var p=r(i[c]);0===t[p].references&&(t[p].updater(),t.splice(p,1))}i=l}}},659:function(e){"use strict";var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},540:function(e){"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},56:function(e,t,r){"use strict";e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},825:function(e){"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var o=void 0!==r.layer;o&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,o&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var i=r.sourceMap;i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},113:function(e){"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},65:function(e,t,r){"use strict";const n=r(896),o=r(725),i=(r(928),r(884)),s=r(725),a=r(115),l=r(33),c=l.jptr,p=r(264).isRef,u=r(920).clone,d=r(920).circularClone,h=r(880).recurse,m=r(751),f=r(319),y=r(435),g=r(665).statusCodes,b=r(430).rE,x="3.0.0";let v;class w extends Error{constructor(e){super(e),this.name="S2OError"}}function k(e,t){let r=new w(e);if(r.options=t,!t.promise)throw r;t.promise.reject(r)}function E(e,t,r){r.warnOnly?t[r.warnProperty||"x-s2o-warning"]=e:k(e,r)}function O(e,t){f.walkSchema(e,{},{},function(e,r,n){!function(e){if(e["x-required"]&&Array.isArray(e["x-required"])&&(e.required||(e.required=[]),e.required=e.required.concat(e["x-required"]),delete e["x-required"]),e["x-anyOf"]&&(e.anyOf=e["x-anyOf"],delete e["x-anyOf"]),e["x-oneOf"]&&(e.oneOf=e["x-oneOf"],delete e["x-oneOf"]),e["x-not"]&&(e.not=e["x-not"],delete e["x-not"]),"boolean"==typeof e["x-nullable"]&&(e.nullable=e["x-nullable"],delete e["x-nullable"]),"object"==typeof e["x-discriminator"]&&"string"==typeof e["x-discriminator"].propertyName){e.discriminator=e["x-discriminator"],delete e["x-discriminator"];for(let t in e.discriminator.mapping){let r=e.discriminator.mapping[t];r.startsWith("#/definitions/")&&(e.discriminator.mapping[t]=r.replace("#/definitions/","#/components/schemas/"))}}}(e),function(e,t,r){if(e.nullable&&r.patches++,e.discriminator&&"string"==typeof e.discriminator&&(e.discriminator={propertyName:e.discriminator}),e.items&&Array.isArray(e.items)&&(0===e.items.length?e.items={}:1===e.items.length?e.items=e.items[0]:e.items={anyOf:e.items}),e.type&&Array.isArray(e.type))if(r.patch){if(r.patches++,0===e.type.length)delete e.type;else{e.oneOf||(e.oneOf=[]);for(let t of e.type){let r={};if("null"===t)e.nullable=!0;else{r.type=t;for(let t of y.arrayProperties)void 0!==e.prop&&(r[t]=e[t],delete e[t])}r.type&&e.oneOf.push(r)}delete e.type,0===e.oneOf.length?delete e.oneOf:e.oneOf.length<2&&(e.type=e.oneOf[0].type,Object.keys(e.oneOf[0]).length>1&&E("Lost properties from oneOf",e,r),delete e.oneOf)}e.type&&Array.isArray(e.type)&&1===e.type.length&&(e.type=e.type[0])}else k("(Patchable) schema type must not be an array",r);e.type&&"null"===e.type&&(delete e.type,e.nullable=!0),"array"!==e.type||e.items||(e.items={}),"file"===e.type&&(e.type="string",e.format="binary"),"boolean"==typeof e.required&&(e.required&&e.name&&(void 0===t.required&&(t.required=[]),Array.isArray(t.required)&&t.required.push(e.name)),delete e.required),e.xml&&"string"==typeof e.xml.namespace&&(e.xml.namespace||delete e.xml.namespace),void 0!==e.allowEmptyValue&&(r.patches++,delete e.allowEmptyValue)}(e,r,t)})}function j(e,t,r){let n=r.payload.options;if(p(e,t)){if(e[t].startsWith("#/components/"));else if("#/consumes"===e[t])delete e[t],r.parent[r.pkey]=u(n.openapi.consumes);else if("#/produces"===e[t])delete e[t],r.parent[r.pkey]=u(n.openapi.produces);else if(e[t].startsWith("#/definitions/")){let r=e[t].replace("#/definitions/","").split("/");const o=l.jpunescape(r[0]);let i=v.schemas[decodeURIComponent(o)];i?r[0]=i:E("Could not resolve reference "+e[t],e,n),e[t]="#/components/schemas/"+r.join("/")}else if(e[t].startsWith("#/parameters/"))e[t]="#/components/parameters/"+y.sanitise(e[t].replace("#/parameters/",""));else if(e[t].startsWith("#/responses/"))e[t]="#/components/responses/"+y.sanitise(e[t].replace("#/responses/",""));else if(e[t].startsWith("#")){let r=u(l.jptr(n.openapi,e[t]));if(!1===r)E("direct $ref not found "+e[t],e,n);else if(n.refmap[e[t]])e[t]=n.refmap[e[t]];else{let i=e[t];i=i.replace("/properties/headers/",""),i=i.replace("/properties/responses/",""),i=i.replace("/properties/parameters/",""),i=i.replace("/properties/schemas/","");let s="schemas",a=i.lastIndexOf("/schema");if(s=i.indexOf("/headers/")>a?"headers":i.indexOf("/responses/")>a?"responses":i.indexOf("/example")>a?"examples":i.indexOf("/x-")>a?"extensions":i.indexOf("/parameters/")>a?"parameters":"schemas","schemas"===s&&O(r,n),"responses"!==s&&"extensions"!==s){let i=s.substr(0,s.length-1);"parameter"===i&&r.name&&r.name===y.sanitise(r.name)&&(i=encodeURIComponent(r.name));let a=1;for(e["x-miro"]&&(o=(o=e["x-miro"]).indexOf("#")>=0?o.split("#")[1].split("/").pop():o.split("/").pop().split(".")[0],i=encodeURIComponent(y.sanitise(o)),a="");l.jptr(n.openapi,"#/components/"+s+"/"+i+a);)a=""===a?2:++a;let c="#/components/"+s+"/"+i+a,p="";"examples"===s&&(r={value:r},p="/value"),l.jptr(n.openapi,c,r),n.refmap[e[t]]=c+p,e[t]=c+p}}}if(delete e["x-miro"],Object.keys(e).length>1){const o=e[t],i=r.path.indexOf("/schema")>=0;"preserve"===n.refSiblings||(i&&"allOf"===n.refSiblings?(delete e.$ref,r.parent[r.pkey]={allOf:[{$ref:o},e]}):r.parent[r.pkey]={$ref:o})}}var o;if("x-ms-odata"===t&&"string"==typeof e[t]&&e[t].startsWith("#/")){let r=e[t].replace("#/definitions/","").replace("#/components/schemas/","").split("/"),o=v.schemas[decodeURIComponent(r[0])];o?r[0]=o:E("Could not resolve reference "+e[t],e,n),e[t]="#/components/schemas/"+r.join("/")}}function $(e){for(let t in e)for(let r in e[t]){let n=y.sanitise(r);r!==n&&(e[t][n]=e[t][r],delete e[t][r])}}function S(e,t){if("basic"===e.type&&(e.type="http",e.scheme="basic"),"oauth2"===e.type){let r={},n=e.flow;"application"===e.flow&&(n="clientCredentials"),"accessCode"===e.flow&&(n="authorizationCode"),void 0!==e.authorizationUrl&&(r.authorizationUrl=e.authorizationUrl.split("?")[0].trim()||"/"),"string"==typeof e.tokenUrl&&(r.tokenUrl=e.tokenUrl.split("?")[0].trim()||"/"),r.scopes=e.scopes||{},e.flows={},e.flows[n]=r,delete e.flow,delete e.authorizationUrl,delete e.tokenUrl,delete e.scopes,void 0!==e.name&&(t.patch?(t.patches++,delete e.name):k("(Patchable) oauth2 securitySchemes should not have name property",t))}}function C(e){return e&&!e["x-s2o-delete"]}function P(e,t){if(e.$ref)e.$ref=e.$ref.replace("#/responses/","#/components/responses/");else{e.type&&!e.schema&&(e.schema={}),e.type&&(e.schema.type=e.type),e.items&&"array"!==e.items.type&&(e.items.collectionFormat!==e.collectionFormat&&E("Nested collectionFormats are not supported",e,t),delete e.items.collectionFormat),"array"===e.type?("ssv"===e.collectionFormat?E("collectionFormat:ssv is no longer supported for headers",e,t):"pipes"===e.collectionFormat?E("collectionFormat:pipes is no longer supported for headers",e,t):"multi"===e.collectionFormat?e.explode=!0:"tsv"===e.collectionFormat?(E("collectionFormat:tsv is no longer supported",e,t),e["x-collectionFormat"]="tsv"):e.style="simple",delete e.collectionFormat):e.collectionFormat&&(t.patch?(t.patches++,delete e.collectionFormat):k("(Patchable) collectionFormat is only applicable to header.type array",t)),delete e.type;for(let t of y.parameterTypeProperties)void 0!==e[t]&&(e.schema[t]=e[t],delete e[t]);for(let t of y.arrayProperties)void 0!==e[t]&&(e.schema[t]=e[t],delete e[t])}}function I(e,t){if(e.$ref.indexOf("#/parameters/")>=0){let t=e.$ref.split("#/parameters/");e.$ref=t[0]+"#/components/parameters/"+y.sanitise(t[1])}e.$ref.indexOf("#/definitions/")>=0&&E("Definition used as parameter",e,t)}function A(e,t,r,n,o,i,s){let a,l={},p=!0;if(t&&t.consumes&&"string"==typeof t.consumes){if(!s.patch)return k("(Patchable) operation.consumes must be an array",s);s.patches++,t.consumes=[t.consumes]}Array.isArray(i.consumes)||delete i.consumes;let d=((t?t.consumes:null)||i.consumes||[]).filter(y.uniqueOnly);if(e&&e.$ref&&"string"==typeof e.$ref){I(e,s);let t=decodeURIComponent(e.$ref.replace("#/components/parameters/","")),r=!1,n=i.components.parameters[t];if(n&&!n["x-s2o-delete"]||!e.$ref.startsWith("#/")||(e["x-s2o-delete"]=!0,r=!0),r){let t=e.$ref,r=c(i,e.$ref);!r&&t.startsWith("#/")?E("Could not resolve reference "+t,e,s):r&&(e=r)}}if(e&&(e.name||e.in)){"boolean"==typeof e["x-deprecated"]&&(e.deprecated=e["x-deprecated"],delete e["x-deprecated"]),void 0!==e["x-example"]&&(e.example=e["x-example"],delete e["x-example"]),"body"===e.in||e.type||(s.patch?(s.patches++,e.type="string"):k("(Patchable) parameter.type is mandatory for non-body parameters",s)),e.type&&"object"==typeof e.type&&e.type.$ref&&(e.type=c(i,e.type.$ref)),"file"===e.type&&(e["x-s2o-originalType"]=e.type,a=e.type),e.description&&"object"==typeof e.description&&e.description.$ref&&(e.description=c(i,e.description.$ref)),null===e.description&&delete e.description;let t=e.collectionFormat;if("array"!==e.type||t||(t="csv"),t&&("array"!==e.type&&(s.patch?(s.patches++,delete e.collectionFormat):k("(Patchable) collectionFormat is only applicable to param.type array",s)),"csv"!==t||"query"!==e.in&&"cookie"!==e.in||(e.style="form",e.explode=!1),"csv"!==t||"path"!==e.in&&"header"!==e.in||(e.style="simple"),"ssv"===t&&("query"===e.in?e.style="spaceDelimited":E("collectionFormat:ssv is no longer supported except for in:query parameters",e,s)),"pipes"===t&&("query"===e.in?e.style="pipeDelimited":E("collectionFormat:pipes is no longer supported except for in:query parameters",e,s)),"multi"===t&&(e.explode=!0),"tsv"===t&&(E("collectionFormat:tsv is no longer supported",e,s),e["x-collectionFormat"]="tsv"),delete e.collectionFormat),e.type&&"body"!==e.type&&"formData"!==e.in)if(e.items&&e.schema)E("parameter has array,items and schema",e,s);else{e.schema&&s.patches++,e.schema&&"object"==typeof e.schema||(e.schema={}),e.schema.type=e.type,e.items&&(e.schema.items=e.items,delete e.items,h(e.schema.items,null,function(r,n,o){"collectionFormat"===n&&"string"==typeof r[n]&&(t&&r[n]!==t&&E("Nested collectionFormats are not supported",e,s),delete r[n])}));for(let t of y.parameterTypeProperties)void 0!==e[t]&&(e.schema[t]=e[t]),delete e[t]}e.schema&&O(e.schema,s),e["x-ms-skip-url-encoding"]&&"query"===e.in&&(e.allowReserved=!0,delete e["x-ms-skip-url-encoding"])}if(e&&"formData"===e.in){p=!1,l.content={};let t="application/x-www-form-urlencoded";if(d.length&&d.indexOf("multipart/form-data")>=0&&(t="multipart/form-data"),l.content[t]={},e.schema)l.content[t].schema=e.schema,e.schema.$ref&&(l["x-s2o-name"]=decodeURIComponent(e.schema.$ref.replace("#/components/schemas/","")));else{l.content[t].schema={},l.content[t].schema.type="object",l.content[t].schema.properties={},l.content[t].schema.properties[e.name]={};let r=l.content[t].schema,n=l.content[t].schema.properties[e.name];e.description&&(n.description=e.description),e.example&&(n.example=e.example),e.type&&(n.type=e.type);for(let t of y.parameterTypeProperties)void 0!==e[t]&&(n[t]=e[t]);!0===e.required&&(r.required||(r.required=[]),r.required.push(e.name),l.required=!0),void 0!==e.default&&(n.default=e.default),n.properties&&(n.properties=e.properties),e.allOf&&(n.allOf=e.allOf),"array"===e.type&&e.items&&(n.items=e.items,n.items.collectionFormat&&delete n.items.collectionFormat),"file"!==a&&"file"!==e["x-s2o-originalType"]||(n.type="string",n.format="binary"),T(e,n)}}else e&&"file"===e.type&&(e.required&&(l.required=e.required),l.content={},l.content["application/octet-stream"]={},l.content["application/octet-stream"].schema={},l.content["application/octet-stream"].schema.type="string",l.content["application/octet-stream"].schema.format="binary",T(e,l));if(e&&"body"===e.in){l.content={},e.name&&(l["x-s2o-name"]=(t&&t.operationId?y.sanitiseAll(t.operationId):"")+("_"+e.name).toCamelCase()),e.description&&(l.description=e.description),e.required&&(l.required=e.required),t&&s.rbname&&e.name&&(t[s.rbname]=e.name),e.schema&&e.schema.$ref?l["x-s2o-name"]=decodeURIComponent(e.schema.$ref.replace("#/components/schemas/","")):e.schema&&"array"===e.schema.type&&e.schema.items&&e.schema.items.$ref&&(l["x-s2o-name"]=decodeURIComponent(e.schema.items.$ref.replace("#/components/schemas/",""))+"Array"),d.length||d.push("application/json");for(let t of d)l.content[t]={},l.content[t].schema=u(e.schema||{}),O(l.content[t].schema,s);T(e,l)}if(Object.keys(l).length>0&&(e["x-s2o-delete"]=!0,t)&&(t.requestBody&&p?(t.requestBody["x-s2o-overloaded"]=!0,E("Operation "+(t.operationId||o)+" has multiple requestBodies",t,s)):(t.requestBody||(t=r[n]=function(e,t){let r={};for(let n of Object.keys(e))r[n]=e[n],"parameters"===n&&(r.requestBody={},t.rbname&&(r[t.rbname]=""));return r.requestBody={},r}(t,s)),t.requestBody.content&&t.requestBody.content["multipart/form-data"]&&t.requestBody.content["multipart/form-data"].schema&&t.requestBody.content["multipart/form-data"].schema.properties&&l.content["multipart/form-data"]&&l.content["multipart/form-data"].schema&&l.content["multipart/form-data"].schema.properties?(t.requestBody.content["multipart/form-data"].schema.properties=Object.assign(t.requestBody.content["multipart/form-data"].schema.properties,l.content["multipart/form-data"].schema.properties),t.requestBody.content["multipart/form-data"].schema.required=(t.requestBody.content["multipart/form-data"].schema.required||[]).concat(l.content["multipart/form-data"].schema.required||[]),t.requestBody.content["multipart/form-data"].schema.required.length||delete t.requestBody.content["multipart/form-data"].schema.required):t.requestBody.content&&t.requestBody.content["application/x-www-form-urlencoded"]&&t.requestBody.content["application/x-www-form-urlencoded"].schema&&t.requestBody.content["application/x-www-form-urlencoded"].schema.properties&&l.content["application/x-www-form-urlencoded"]&&l.content["application/x-www-form-urlencoded"].schema&&l.content["application/x-www-form-urlencoded"].schema.properties?(t.requestBody.content["application/x-www-form-urlencoded"].schema.properties=Object.assign(t.requestBody.content["application/x-www-form-urlencoded"].schema.properties,l.content["application/x-www-form-urlencoded"].schema.properties),t.requestBody.content["application/x-www-form-urlencoded"].schema.required=(t.requestBody.content["application/x-www-form-urlencoded"].schema.required||[]).concat(l.content["application/x-www-form-urlencoded"].schema.required||[]),t.requestBody.content["application/x-www-form-urlencoded"].schema.required.length||delete t.requestBody.content["application/x-www-form-urlencoded"].schema.required):(t.requestBody=Object.assign(t.requestBody,l),t.requestBody["x-s2o-name"]||(t.requestBody.schema&&t.requestBody.schema.$ref?t.requestBody["x-s2o-name"]=decodeURIComponent(t.requestBody.schema.$ref.replace("#/components/schemas/","")).split("/").join(""):t.operationId&&(t.requestBody["x-s2o-name"]=y.sanitiseAll(t.operationId)))))),e&&!e["x-s2o-delete"]){delete e.type;for(let t of y.parameterTypeProperties)delete e[t];"path"!==e.in||void 0!==e.required&&!0===e.required||(s.patch?(s.patches++,e.required=!0):k("(Patchable) path parameters must be required:true ["+e.name+" in "+o+"]",s))}return t}function T(e,t){for(let r in e)r.startsWith("x-")&&!r.startsWith("x-s2o")&&(t[r]=e[r])}function _(e,t,r,n,o){if(!e)return!1;if(e.$ref&&"string"==typeof e.$ref)e.$ref.indexOf("#/definitions/")>=0?E("definition used as response: "+e.$ref,e,o):e.$ref.startsWith("#/responses/")&&(e.$ref="#/components/responses/"+y.sanitise(decodeURIComponent(e.$ref.replace("#/responses/",""))));else{if((void 0===e.description||null===e.description||""===e.description&&o.patch)&&(o.patch?"object"!=typeof e||Array.isArray(e)||(o.patches++,e.description=g[e]||""):k("(Patchable) response.description is mandatory",o)),void 0!==e.schema){if(O(e.schema,o),e.schema.$ref&&"string"==typeof e.schema.$ref&&e.schema.$ref.startsWith("#/responses/")&&(e.schema.$ref="#/components/responses/"+y.sanitise(decodeURIComponent(e.schema.$ref.replace("#/responses/","")))),r&&r.produces&&"string"==typeof r.produces){if(!o.patch)return k("(Patchable) operation.produces must be an array",o);o.patches++,r.produces=[r.produces]}n.produces&&!Array.isArray(n.produces)&&delete n.produces;let t=((r?r.produces:null)||n.produces||[]).filter(y.uniqueOnly);t.length||t.push("*/*"),e.content={};for(let r of t){if(e.content[r]={},e.content[r].schema=u(e.schema),e.examples&&e.examples[r]){let t={};t.value=e.examples[r],e.content[r].examples={},e.content[r].examples.response=t,delete e.examples[r]}"file"===e.content[r].schema.type&&(e.content[r].schema={type:"string",format:"binary"})}delete e.schema}for(let t in e.examples)e.content||(e.content={}),e.content[t]||(e.content[t]={}),e.content[t].examples={},e.content[t].examples.response={},e.content[t].examples.response.value=e.examples[t];if(delete e.examples,e.headers)for(let t in e.headers)"status code"===t.toLowerCase()?o.patch?(o.patches++,delete e.headers[t]):k('(Patchable) "Status Code" is not a valid header',o):P(e.headers[t],o)}}function R(e,t,r,n,i){for(let s in e){let a=e[s];a&&a["x-trace"]&&"object"==typeof a["x-trace"]&&(a.trace=a["x-trace"],delete a["x-trace"]),a&&a["x-summary"]&&"string"==typeof a["x-summary"]&&(a.summary=a["x-summary"],delete a["x-summary"]),a&&a["x-description"]&&"string"==typeof a["x-description"]&&(a.description=a["x-description"],delete a["x-description"]),a&&a["x-servers"]&&Array.isArray(a["x-servers"])&&(a.servers=a["x-servers"],delete a["x-servers"]);for(let e in a)if(y.httpMethods.indexOf(e)>=0||"x-amazon-apigateway-any-method"===e){let p=a[e];if(p&&p.parameters&&Array.isArray(p.parameters)){if(a.parameters)for(let t of a.parameters)"string"==typeof t.$ref&&(I(t,r),t=c(i,t.$ref)),p.parameters.find(function(e,r,n){return e.name===t.name&&e.in===t.in})||"formData"!==t.in&&"body"!==t.in&&"file"!==t.type||(p=A(t,p,a,e,s,i,r),r.rbname&&""===p[r.rbname]&&delete p[r.rbname]);for(let t of p.parameters)p=A(t,p,a,e,e+":"+s,i,r);r.rbname&&""===p[r.rbname]&&delete p[r.rbname],r.debug||p.parameters&&(p.parameters=p.parameters.filter(C))}if(p&&p.security&&$(p.security),"object"==typeof p){if(!p.responses){let e={description:"Default response"};p.responses={default:e}}for(let e in p.responses)_(p.responses[e],0,p,i,r)}if(p&&p["x-servers"]&&Array.isArray(p["x-servers"]))p.servers=p["x-servers"],delete p["x-servers"];else if(p&&p.schemes&&p.schemes.length)for(let e of p.schemes)if((!i.schemes||i.schemes.indexOf(e)<0)&&(p.servers||(p.servers=[]),Array.isArray(i.servers)))for(let t of i.servers){let r=u(t),n=o.parse(r.url);n.protocol=e,r.url=n.format(),p.servers.push(r)}if(r.debug&&(p["x-s2o-consumes"]=p.consumes||[],p["x-s2o-produces"]=p.produces||[]),p){if(delete p.consumes,delete p.produces,delete p.schemes,p["x-ms-examples"]){for(let e in p["x-ms-examples"]){let t=p["x-ms-examples"][e],r=y.sanitiseAll(e);if(t.parameters)for(let r in t.parameters){let n=t.parameters[r];for(let t of(p.parameters||[]).concat(a.parameters||[]))t.$ref&&(t=l.jptr(i,t.$ref)),t.name!==r||t.example||(t.examples||(t.examples={}),t.examples[e]={value:n})}if(t.responses)for(let n in t.responses){if(t.responses[n].headers)for(let e in t.responses[n].headers){let r=t.responses[n].headers[e];for(let t in p.responses[n].headers)t===e&&(p.responses[n].headers[t].example=r)}if(t.responses[n].body&&(i.components.examples[r]={value:u(t.responses[n].body)},p.responses[n]&&p.responses[n].content))for(let t in p.responses[n].content){let o=p.responses[n].content[t];o.examples||(o.examples={}),o.examples[e]={$ref:"#/components/examples/"+r}}}}delete p["x-ms-examples"]}if(p.parameters&&0===p.parameters.length&&delete p.parameters,p.requestBody){let r=p.operationId?y.sanitiseAll(p.operationId):y.sanitiseAll(e+s).toCamelCase(),o=y.sanitise(p.requestBody["x-s2o-name"]||r||"");delete p.requestBody["x-s2o-name"];let i=JSON.stringify(p.requestBody),a=y.hash(i);if(!n[a]){let e={};e.name=o,e.body=p.requestBody,e.refs=[],n[a]=e}let c="#/"+t+"/"+encodeURIComponent(l.jpescape(s))+"/"+e+"/requestBody";n[a].refs.push(c)}}}if(a&&a.parameters){for(let e in a.parameters)A(a.parameters[e],null,a,null,s,i,r);!r.debug&&Array.isArray(a.parameters)&&(a.parameters=a.parameters.filter(C))}}}function D(e){return e&&e.url&&"string"==typeof e.url?(e.url=e.url.split("{{").join("{"),e.url=e.url.split("}}").join("}"),e.url.replace(/\{(.+?)\}/g,function(t,r){e.variables||(e.variables={}),e.variables[r]={default:"unknown"}}),e):e}function L(e,t,r){if(void 0===e.info||null===e.info){if(!t.patch)return r(new w("(Patchable) info object is mandatory"));t.patches++,e.info={version:"",title:""}}if("object"!=typeof e.info||Array.isArray(e.info))return r(new w("info must be an object"));if(void 0===e.info.title||null===e.info.title){if(!t.patch)return r(new w("(Patchable) info.title cannot be null"));t.patches++,e.info.title=""}if(void 0===e.info.version||null===e.info.version){if(!t.patch)return r(new w("(Patchable) info.version cannot be null"));t.patches++,e.info.version=""}if("string"!=typeof e.info.version){if(!t.patch)return r(new w("(Patchable) info.version must be a string"));t.patches++,e.info.version=e.info.version.toString()}if(void 0!==e.info.logo){if(!t.patch)return r(new w("(Patchable) info should not have logo property"));t.patches++,e.info["x-logo"]=e.info.logo,delete e.info.logo}if(void 0!==e.info.termsOfService){if(null===e.info.termsOfService){if(!t.patch)return r(new w("(Patchable) info.termsOfService cannot be null"));t.patches++,e.info.termsOfService=""}try{new URL(e.info.termsOfService)}catch(n){if(!t.patch)return r(new w("(Patchable) info.termsOfService must be a URL"));t.patches++,delete e.info.termsOfService}}}function z(e,t,r){if(void 0===e.paths){if(!t.patch)return r(new w("(Patchable) paths object is mandatory"));t.patches++,e.paths={}}}function N(e,t,r){return i(r,new Promise(function(r,n){if(e||(e={}),t.original=e,t.text||(t.text=a.stringify(e)),t.externals=[],t.externalRefs={},t.rewriteRefs=!0,t.preserveMiro=!0,t.promise={},t.promise.resolve=r,t.promise.reject=n,t.patches=0,t.cache||(t.cache={}),t.source&&(t.cache[t.source]=t.original),function(e,t){const r=new WeakSet;h(e,{identityDetection:!0},function(e,n,o){"object"==typeof e[n]&&null!==e[n]&&(r.has(e[n])?t.anchors?e[n]=u(e[n]):k("YAML anchor or merge key at "+o.path,t):r.add(e[n]))})}(e,t),e.openapi&&"string"==typeof e.openapi&&e.openapi.startsWith("3."))return t.openapi=d(e),L(t.openapi,t,n),z(t.openapi,t,n),void m.optionalResolve(t).then(function(){return t.direct?r(t.openapi):r(t)}).catch(function(e){console.warn(e),n(e)});if(!e.swagger||"2.0"!=e.swagger)return n(new w("Unsupported swagger/OpenAPI version: "+(e.openapi?e.openapi:e.swagger)));let o=t.openapi={};if(o.openapi="string"==typeof t.targetVersion&&t.targetVersion.startsWith("3.")?t.targetVersion:x,t.origin){o["x-origin"]||(o["x-origin"]=[]);let r={};r.url=t.source||t.origin,r.format="swagger",r.version=e.swagger,r.converter={},r.converter.url="https://github.com/mermade/oas-kit",r.converter.version=b,o["x-origin"].push(r)}if(o=Object.assign(o,d(e)),delete o.swagger,h(o,{},function(e,t,r){null===e[t]&&!t.startsWith("x-")&&"default"!==t&&r.path.indexOf("/example")<0&&delete e[t]}),e.host)for(let t of Array.isArray(e.schemes)?e.schemes:[""]){let r={},n=(e.basePath||"").replace(/\/$/,"");r.url=(t?t+":":"")+"//"+e.host+n,D(r),o.servers||(o.servers=[]),o.servers.push(r)}else if(e.basePath){let t={};t.url=e.basePath,D(t),o.servers||(o.servers=[]),o.servers.push(t)}if(delete o.host,delete o.basePath,o["x-servers"]&&Array.isArray(o["x-servers"])&&(o.servers=o["x-servers"],delete o["x-servers"]),e["x-ms-parameterized-host"]){let t=e["x-ms-parameterized-host"],r={};r.url=t.hostTemplate+(e.basePath?e.basePath:""),r.variables={};const n=r.url.match(/\{\w+\}/g);for(let e in t.parameters){let i=t.parameters[e];i.$ref&&(i=u(c(o,i.$ref))),e.startsWith("x-")||(delete i.required,delete i.type,delete i.in,void 0===i.default&&(i.enum?i.default=i.enum[0]:i.default="none"),i.name||(i.name=n[e].replace("{","").replace("}","")),r.variables[i.name]=i,delete i.name)}o.servers||(o.servers=[]),!1===t.useSchemePrefix?o.servers.push(r):e.schemes.forEach(e=>{o.servers.push(Object.assign({},r,{url:e+"://"+r.url}))}),delete o["x-ms-parameterized-host"]}L(o,t,n),z(o,t,n),"string"==typeof o.consumes&&(o.consumes=[o.consumes]),"string"==typeof o.produces&&(o.produces=[o.produces]),o.components={},o["x-callbacks"]&&(o.components.callbacks=o["x-callbacks"],delete o["x-callbacks"]),o.components.examples={},o.components.headers={},o["x-links"]&&(o.components.links=o["x-links"],delete o["x-links"]),o.components.parameters=o.parameters||{},o.components.responses=o.responses||{},o.components.requestBodies={},o.components.securitySchemes=o.securityDefinitions||{},o.components.schemas=o.definitions||{},delete o.definitions,delete o.responses,delete o.parameters,delete o.securityDefinitions,m.optionalResolve(t).then(function(){(function(e,t){let r={};v={schemas:{}},e.security&&$(e.security);for(let r in e.components.securitySchemes){let n=y.sanitise(r);r!==n&&(e.components.securitySchemes[n]&&k("Duplicate sanitised securityScheme name "+n,t),e.components.securitySchemes[n]=e.components.securitySchemes[r],delete e.components.securitySchemes[r]),S(e.components.securitySchemes[n],t)}for(let r in e.components.schemas){let n=y.sanitiseAll(r),o="";if(r!==n){for(;e.components.schemas[n+o];)o=o?++o:2;e.components.schemas[n+o]=e.components.schemas[r],delete e.components.schemas[r]}v.schemas[r]=n+o,O(e.components.schemas[n+o],t)}t.refmap={},h(e,{payload:{options:t}},j),function(e,t){for(let r in t.refmap)l.jptr(e,r,{$ref:t.refmap[r]})}(e,t);for(let r in e.components.parameters){let n=y.sanitise(r);r!==n&&(e.components.parameters[n]&&k("Duplicate sanitised parameter name "+n,t),e.components.parameters[n]=e.components.parameters[r],delete e.components.parameters[r]),A(e.components.parameters[n],null,null,null,n,e,t)}for(let r in e.components.responses){let n=y.sanitise(r);r!==n&&(e.components.responses[n]&&k("Duplicate sanitised response name "+n,t),e.components.responses[n]=e.components.responses[r],delete e.components.responses[r]);let o=e.components.responses[n];if(_(o,0,null,e,t),o.headers)for(let e in o.headers)"status code"===e.toLowerCase()?t.patch?(t.patches++,delete o.headers[e]):k('(Patchable) "Status Code" is not a valid header',t):P(o.headers[e],t)}for(let t in e.components.requestBodies){let n=e.components.requestBodies[t],o=JSON.stringify(n),i=y.hash(o),s={};s.name=t,s.body=n,s.refs=[],r[i]=s}if(R(e.paths,"paths",t,r,e),e["x-ms-paths"]&&R(e["x-ms-paths"],"x-ms-paths",t,r,e),!t.debug)for(let t in e.components.parameters)e.components.parameters[t]["x-s2o-delete"]&&delete e.components.parameters[t];t.debug&&(e["x-s2o-consumes"]=e.consumes||[],e["x-s2o-produces"]=e.produces||[]),delete e.consumes,delete e.produces,delete e.schemes;let n=[];if(e.components.requestBodies={},!t.resolveInternal){let t=1;for(let o in r){let i=r[o];if(i.refs.length>1){let r="";for(i.name||(i.name="requestBody",r=t++);n.indexOf(i.name+r)>=0;)r=r?++r:2;i.name=i.name+r,n.push(i.name),e.components.requestBodies[i.name]=u(i.body);for(let t in i.refs){let r={};r.$ref="#/components/requestBodies/"+i.name,l.jptr(e,i.refs[t],r)}}}}e.components.responses&&0===Object.keys(e.components.responses).length&&delete e.components.responses,e.components.parameters&&0===Object.keys(e.components.parameters).length&&delete e.components.parameters,e.components.examples&&0===Object.keys(e.components.examples).length&&delete e.components.examples,e.components.requestBodies&&0===Object.keys(e.components.requestBodies).length&&delete e.components.requestBodies,e.components.securitySchemes&&0===Object.keys(e.components.securitySchemes).length&&delete e.components.securitySchemes,e.components.headers&&0===Object.keys(e.components.headers).length&&delete e.components.headers,e.components.schemas&&0===Object.keys(e.components.schemas).length&&delete e.components.schemas,e.components&&0===Object.keys(e.components).length&&delete e.components})(t.openapi,t),t.direct?r(t.openapi):r(t)}).catch(function(e){console.warn(e),n(e)})}))}function M(e,t,r){return i(r,new Promise(function(r,n){let o=null,i=null;try{o=JSON.parse(e),t.text=JSON.stringify(o,null,2)}catch(r){i=r;try{o=a.parse(e,{schema:"core",prettyErrors:!0}),t.sourceYaml=!0,t.text=e}catch(e){i=e}}o?N(o,t).then(e=>r(e)).catch(e=>n(e)):n(new w(i?i.message:"Could not parse string"))}))}e.exports={S2OError:w,targetVersion:x,convert:N,convertObj:N,convertUrl:function(e,t,r){return i(r,new Promise(function(r,n){t.origin=!0,t.source||(t.source=e),t.verbose&&console.warn("GET "+e),t.fetch||(t.fetch=s);const o=Object.assign({},t.fetchOptions,{agent:t.agent});t.fetch(e,o).then(function(t){if(200!==t.status)throw new w(`Received status code ${t.status}: ${e}`);return t.text()}).then(function(e){M(e,t).then(e=>r(e)).catch(e=>n(e))}).catch(function(e){n(e)})}))},convertStr:M,convertFile:function(e,t,r){return i(r,new Promise(function(r,o){n.readFile(e,t.encoding||"utf8",function(n,i){n?o(n):(t.sourceFile=e,M(i,t).then(e=>r(e)).catch(e=>o(e)))})}))},convertStream:function(e,t,r){return i(r,new Promise(function(r,n){let o="";e.on("data",function(e){o+=e}).on("end",function(){M(o,t).then(e=>r(e)).catch(e=>n(e))})}))}}},665:function(e,t,r){"use strict";const n=r(611);e.exports={statusCodes:Object.assign({},{default:"Default response","1XX":"Informational",103:"Early hints","2XX":"Successful","3XX":"Redirection","4XX":"Client Error","5XX":"Server Error","7XX":"Developer Error"},n.STATUS_CODES)}},884:function(e){"use strict";e.exports=require("call-me-maybe")},648:function(e){"use strict";e.exports=require("fast-safe-stringify")},230:function(e){"use strict";e.exports=require("stickyfill")},115:function(e){"use strict";e.exports=require("yaml")},896:function(e){"use strict";e.exports=require("fs")},611:function(e){"use strict";e.exports=require("http")},928:function(e){"use strict";e.exports=require("path")},725:function(e){"use strict";e.exports=void 0},430:function(e){"use strict";e.exports={rE:"7.0.8"}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,exports:{}};return e[n](i,i.exports,r),i.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nc=void 0;var n={};return function(){"use strict";r.r(n),r.d(n,{AUTH_TYPES:function(){return dc},ApiContentWrap:function(){return Ku},ApiInfo:function(){return Ec},ApiInfoModel:function(){return Hr},ApiLogo:function(){return Sc},AppStore:function(){return yc},ArraySchema:function(){return xl},BackgroundStub:function(){return ed},BodyContent:function(){return yp},COMPONENT_REGEXP:function(){return Qr},CallbackModel:function(){return mn},ClipboardService:function(){return Hs},ContentItem:function(){return Cu},ContentItems:function(){return Su},DiscriminatorDropdown:function(){return al},Dropdown:function(){return fs},DropdownLabel:function(){return da},DropdownOrLabel:function(){return Os},DropdownWrapper:function(){return ha},ErrorBoundary:function(){return ne},Example:function(){return ca},ExampleModel:function(){return Un},ExternalExample:function(){return pa},FieldModel:function(){return Yn},GROUP_DEPTH:function(){return Xo},GroupModel:function(){return Bo},HistoryService:function(){return Ut},IS_BROWSER:function(){return s},InvertedSimpleDropdown:function(){return ma},JsonPointer:function(){return Ee},JsonViewer:function(){return oa},LEGACY_REGEXP:function(){return Fr},Loading:function(){return ae},MDX_COMPONENT_REGEXP:function(){return Br},Markdown:function(){return Ms},MarkdownRenderer:function(){return Wr},MarkerService:function(){return Ht},MediaContentModel:function(){return to},MediaTypeModel:function(){return Zn},MediaTypesSwitch:function(){return ip},MenuBuilder:function(){return Ko},MenuItem:function(){return Mu},MenuItemLabel:function(){return Fc},MenuItemLi:function(){return Mc},MenuItemTitle:function(){return Bc},MenuItemUl:function(){return Nc},MenuItems:function(){return Fu},MenuStore:function(){return oi},MiddlePanel:function(){return pi},MimeLabel:function(){return ua},NoSampleLabel:function(){return fa},OLD_SECURITY_DEFINITIONS_JSX_NAME:function(){return ht},ObjectSchema:function(){return ll},OneOfButton:function(){return Pl},OneOfSchema:function(){return Il},OpenAPIParser:function(){return Sn},Operation:function(){return xu},OperationBadge:function(){return Lc},OperationItem:function(){return Au},OperationMenuItemContent:function(){return qu},OperationModel:function(){return xo},OptionsConsumer:function(){return ue},OptionsContext:function(){return ce},OptionsProvider:function(){return pe},Parameters:function(){return mp},PayloadSamples:function(){return Kp},Redoc:function(){return cd},RedocAttribution:function(){return Qc},RedocNormalizedOptions:function(){return W},RedocStandalone:function(){return yd},RedocWrap:function(){return Xu},RequestBodyModel:function(){return ro},ResponseDetails:function(){return Ap},ResponseHeaders:function(){return jp},ResponseModel:function(){return ho},ResponseSamples:function(){return du},ResponseTitle:function(){return vp},ResponseView:function(){return Tp},ResponsesList:function(){return Rp},RightPanel:function(){return di},Row:function(){return mi},SCHEMA_DEFINITION_JSX_NAME:function(){return mt},SECTION_ATTR:function(){return ni},SECURITY_DEFINITIONS_JSX_NAME:function(){return dt},SECURITY_SCHEMES_SECTION_PREFIX:function(){return ft},Schema:function(){return Fl},SchemaDefinition:function(){return Yl},SchemaModel:function(){return qn},ScrollService:function(){return li},SearchBox:function(){return ld},SearchStore:function(){return ci},Section:function(){return ui},SectionItem:function(){return Iu},SecurityDefs:function(){return hc},SecuritySchemeModel:function(){return Io},SecuritySchemesModel:function(){return Ao},SideMenu:function(){return Qu},SideNavStyleEnum:function(){return R},SimpleDropdown:function(){return ys},SourceCode:function(){return ia},SourceCodeWithCopy:function(){return sa},SpecStore:function(){return No},StickyResponsiveSidebar:function(){return Zu},StoreBuilder:function(){return $i},StoreConsumer:function(){return ji},StoreContext:function(){return Ei},StoreProvider:function(){return Oi},StyledMarkdownBlock:function(){return Cs},ThemeProvider:function(){return X},Throttle:function(){return $t},alphabeticallyByProp:function(){return qt},appendToMdHeading:function(){return g},argValueToBoolean:function(){return Q},buildComponentComment:function(){return Ur},concatRefStacks:function(){return $n},convertSwagger2OpenAPI:function(){return be},createGlobalStyle:function(){return G},createStore:function(){return fc},css:function(){return Y},debugTime:function(){return St},debugTimeEnd:function(){return Ct},detectType:function(){return Be},escapeHTMLAttrChars:function(){return C},expandDefaultServerVariables:function(){return pt},extensionsHook:function(){return te},extractExtensions:function(){return xt},flattenByProp:function(){return m},getBasePath:function(){return O},getContentWithLegacyExamples:function(){return wt},getDefinitionName:function(){return rt},getOperationSummary:function(){return qe},getSerializedValue:function(){return Xe},getStatusCodeType:function(){return ze},highlight:function(){return jt},history:function(){return Wt},html2Str:function(){return l},humanizeConstraints:function(){return it},humanizeNumberRange:function(){return ot},isAbsoluteUrl:function(){return k},isArray:function(){return I},isBoolean:function(){return A},isFormUrlEncoded:function(){return We},isJsonLike:function(){return Ue},isNamedDefinition:function(){return tt},isNumeric:function(){return y},isObject:function(){return x},isOperationName:function(){return Me},isPayloadSample:function(){return go},isPrimitiveType:function(){return Qe},isRedocExtension:function(){return bt},isStatusCode:function(){return Le},keyframes:function(){return Z},langFromMime:function(){return Ke},loadAndBundleSpec:function(){return ge},mapLang:function(){return Ot},mapValues:function(){return h},mapWithLast:function(){return d},media:function(){return K},memoize:function(){return Mt},menuItemDepth:function(){return qc},mergeObjects:function(){return b},mergeParams:function(){return lt},mergeSimilarMediaTypes:function(){return ct},normalizeServers:function(){return ut},pluralizeType:function(){return vt},pushRef:function(){return jn},querySelector:function(){return a},removeQueryStringAndHash:function(){return $},resolveUrl:function(){return E},safeSlugify:function(){return w},scrollIntoViewIfNeeded:function(){return c},serializeParameterValue:function(){return Ze},serializeParameterValueWithMime:function(){return Ge},setSecuritySchemePrefix:function(){return yt},shortenHTTPVerb:function(){return gt},sortByField:function(){return at},sortByRequired:function(){return st},stripTrailingSlash:function(){return f},styled:function(){return ee},titleize:function(){return j},unescapeHTMLChars:function(){return P},urlFormEncodePayload:function(){return Ye},useStore:function(){return Si}});var e=require("react"),t=require("polished");const o={spacing:{unit:5,sectionHorizontal:({spacing:e})=>8*e.unit,sectionVertical:({spacing:e})=>8*e.unit},breakpoints:{small:"50rem",medium:"75rem",large:"105rem"},colors:{tonalOffset:.2,primary:{main:"#32329f",light:({colors:e})=>(0,t.lighten)(e.tonalOffset,e.primary.main),dark:({colors:e})=>(0,t.darken)(e.tonalOffset,e.primary.main),contrastText:({colors:e})=>(0,t.readableColor)(e.primary.main)},success:{main:"#1d8127",light:({colors:e})=>(0,t.lighten)(2*e.tonalOffset,e.success.main),dark:({colors:e})=>(0,t.darken)(e.tonalOffset,e.success.main),contrastText:({colors:e})=>(0,t.readableColor)(e.success.main)},warning:{main:"#ffa500",light:({colors:e})=>(0,t.lighten)(e.tonalOffset,e.warning.main),dark:({colors:e})=>(0,t.darken)(e.tonalOffset,e.warning.main),contrastText:({colors:e})=>(0,t.readableColor)(e.warning.main)},error:{main:"#d41f1c",light:({colors:e})=>(0,t.lighten)(e.tonalOffset,e.error.main),dark:({colors:e})=>(0,t.darken)(e.tonalOffset,e.error.main),contrastText:({colors:e})=>(0,t.readableColor)(e.error.main)},gray:{50:"#FAFAFA",100:"#F5F5F5"},text:{primary:"#333333",secondary:({colors:e})=>(0,t.lighten)(e.tonalOffset,e.text.primary)},border:{dark:"rgba(0,0,0, 0.1)",light:"#ffffff"},responses:{success:{color:({colors:e})=>e.success.main,backgroundColor:({colors:e})=>(0,t.transparentize)(.93,e.success.main),tabTextColor:({colors:e})=>(0,t.lighten)(e.tonalOffset,e.responses.success.color)},error:{color:({colors:e})=>e.error.main,backgroundColor:({colors:e})=>(0,t.transparentize)(.93,e.error.main),tabTextColor:({colors:e})=>(0,t.lighten)(e.tonalOffset,e.responses.error.color)},redirect:{color:({colors:e})=>e.warning.dark,backgroundColor:({colors:e})=>(0,t.transparentize)(.93,e.responses.redirect.color),tabTextColor:({colors:e})=>(0,t.lighten)(e.tonalOffset,e.responses.redirect.color)},info:{color:"#186c8e",backgroundColor:({colors:e})=>(0,t.transparentize)(.93,e.responses.info.color),tabTextColor:({colors:e})=>(0,t.lighten)(e.tonalOffset,e.responses.info.color)}},http:{get:"#2F8132",post:"#186FAF",put:"#95507c",options:"#947014",patch:"#bf581d",delete:"#cc3333",basic:"#707070",link:"#07818F",head:"#A23DAD"}},schema:{linesColor:e=>(0,t.lighten)(e.colors.tonalOffset,(0,t.desaturate)(e.colors.tonalOffset,e.colors.primary.main)),defaultDetailsWidth:"75%",typeNameColor:e=>e.colors.text.secondary,typeTitleColor:e=>e.schema.typeNameColor,requireLabelColor:e=>e.colors.error.main,labelsTextSize:"0.9em",nestingSpacing:"1em",nestedBackground:"#fafafa",arrow:{size:"1.1em",color:e=>e.colors.text.secondary}},typography:{fontSize:"14px",lineHeight:"1.5em",fontWeightRegular:"400",fontWeightBold:"600",fontWeightLight:"300",fontFamily:"Roboto, sans-serif",smoothing:"antialiased",optimizeSpeed:!0,headings:{fontFamily:"Montserrat, sans-serif",fontWeight:"400",lineHeight:"1.6em"},code:{fontSize:"13px",fontFamily:"Courier, monospace",lineHeight:({typography:e})=>e.lineHeight,fontWeight:({typography:e})=>e.fontWeightRegular,color:"#c62828",backgroundColor:"rgba(38, 50, 56, 0.05)",wrap:!1},links:{color:({colors:e})=>e.primary.main,visited:({typography:e})=>e.links.color,hover:({typography:e})=>(0,t.lighten)(.2,e.links.color),textDecoration:"underline",hoverTextDecoration:"underline"}},sidebar:{width:"260px",backgroundColor:"#fafafa",textColor:"#333333",activeTextColor:e=>e.sidebar.textColor!==o.sidebar.textColor?e.sidebar.textColor:e.colors.primary.main,groupItems:{activeBackgroundColor:e=>(0,t.darken)(.1,e.sidebar.backgroundColor),activeTextColor:e=>e.sidebar.activeTextColor,textTransform:"uppercase"},level1Items:{activeBackgroundColor:e=>(0,t.darken)(.05,e.sidebar.backgroundColor),activeTextColor:e=>e.sidebar.activeTextColor,textTransform:"none"},arrow:{size:"1.5em",color:e=>e.sidebar.textColor}},logo:{maxHeight:({sidebar:e})=>e.width,maxWidth:({sidebar:e})=>e.width,gutter:"2px"},rightPanel:{backgroundColor:"#263238",width:"40%",textColor:"#ffffff",servers:{overlay:{backgroundColor:"#fafafa",textColor:"#263238"},url:{backgroundColor:"#fff"}}},codeBlock:{backgroundColor:({rightPanel:e})=>(0,t.darken)(.1,e.backgroundColor)},fab:{backgroundColor:"#f2f2f2",color:"#0065FB"}};var i=o;const s="undefined"!=typeof window&&"HTMLElement"in window;function a(e){return"undefined"!=typeof document?document.querySelector(e):null}function l(e){return e.split(/<[^>]+>/).map(e=>e.trim()).filter(e=>e.length>0).join(" ")}function c(e,t=!0){const r=e.parentNode;if(!r)return;const n=window.getComputedStyle(r,void 0),o=parseInt(n.getPropertyValue("border-top-width"),10),i=parseInt(n.getPropertyValue("border-left-width"),10),s=e.offsetTop-r.offsetTop<r.scrollTop,a=e.offsetTop-r.offsetTop+e.clientHeight-o>r.scrollTop+r.clientHeight,l=e.offsetLeft-r.offsetLeft<r.scrollLeft,c=e.offsetLeft-r.offsetLeft+e.clientWidth-i>r.scrollLeft+r.clientWidth,p=s&&!a;(s||a)&&t&&(r.scrollTop=e.offsetTop-r.offsetTop-r.clientHeight/2-o+e.clientHeight/2),(l||c)&&t&&(r.scrollLeft=e.offsetLeft-r.offsetLeft-r.clientWidth/2-i+e.clientWidth/2),(s||a||l||c)&&!t&&e.scrollIntoView(p)}var p=require("slugify"),u=r.n(p);function d(e,t){const r=[];for(let n=0;n<e.length-1;n++)r.push(t(e[n],!1));return 0!==e.length&&r.push(t(e[e.length-1],!0)),r}function h(e,t){const r={};for(const n in e)e.hasOwnProperty(n)&&(r[n]=t(e[n],n,e));return r}function m(e,t){const r=[],n=e=>{for(const o of e)r.push(o),o[t]&&n(o[t])};return n(e),r}function f(e){return e.endsWith("/")?e.substring(0,e.length-1):e}function y(e){return!isNaN(parseFloat(e))&&isFinite(e)}function g(e,t,r){const n=new RegExp(`(^|\\n)#\\s?${t}\\s*\\n`,"i"),o=new RegExp(`((\\n|^)#\\s*${t}\\s*(\\n|$)(?:.|\\n)*?)(\\n#|$)`,"i");if(n.test(e))return e.replace(o,`$1\n\n${r}\n$4`);{const n=""===e||e.endsWith("\n\n")?"":e.endsWith("\n")?"\n":"\n\n";return`${e}${n}# ${t}\n\n${r}`}}const b=(e,...t)=>{if(!t.length)return e;const r=t.shift();return void 0===r?e:(v(e)&&v(r)&&Object.keys(r).forEach(t=>{Object.prototype.hasOwnProperty.call(r,t)&&"__proto__"!==t&&(v(r[t])?(e[t]||(e[t]={}),b(e[t],r[t])):e[t]=r[t])}),b(e,...t))},x=e=>null!==e&&"object"==typeof e,v=e=>x(e)&&!I(e);function w(e){return u()(e)||e.toString().toLowerCase().replace(/\s+/g,"-").replace(/&/g,"-and-").replace(/\--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}function k(e){return/(?:^[a-z][a-z0-9+.-]*:|\/\/)/i.test(e)}function E(e,t){let r;if(t.startsWith("//"))try{r=`${new URL(e).protocol||"https:"}${t}`}catch(e){r=`https:${t}`}else if(k(t))r=t;else if(t.startsWith("/"))try{const n=new URL(e);n.pathname=t,r=n.href}catch(e){r=t}else r=f(e)+"/"+t;return f(r)}function O(e){try{return S(e).pathname}catch(t){return e}}function j(e){return e.charAt(0).toUpperCase()+e.slice(1)}function $(e){try{const t=S(e);return t.search="",t.hash="",t.toString()}catch(t){return e}}function S(e){return"undefined"==typeof URL?new(r(725).URL)(e):new URL(e)}function C(e){return e.replace(/["\\]/g,"\\$&")}function P(e){return e.replace(/&#(\d+);/g,(e,t)=>String.fromCharCode(parseInt(t,10))).replace(/&/g,"&").replace(/"/g,'"')}function I(e){return Array.isArray(e)}function A(e){return"boolean"==typeof e}const T={enum:"Enum",enumSingleValue:"Value",enumArray:"Items",default:"Default",deprecated:"Deprecated",example:"Example",examples:"Examples",recursive:"Recursive",arrayOf:"Array of ",webhook:"Event",const:"Value",noResultsFound:"No results found",download:"Download",downloadSpecification:"Download OpenAPI specification",responses:"Responses",callbackResponses:"Callback responses",requestSamples:"Request samples",responseSamples:"Response samples"};function _(e,t){const r=T[e];return void 0!==t?r[t]:r}var R=(e=>(e.SummaryOnly="summary-only",e.PathOnly="path-only",e.IdOnly="id-only",e))(R||{}),D=Object.defineProperty,L=Object.defineProperties,z=Object.getOwnPropertyDescriptors,N=Object.getOwnPropertySymbols,M=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,F=(e,t,r)=>t in e?D(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,B=(e,t)=>{for(var r in t||(t={}))M.call(t,r)&&F(e,r,t[r]);if(N)for(var r of N(t))q.call(t,r)&&F(e,r,t[r]);return e};function Q(e,t){return void 0===e?t||!1:"string"==typeof e?"false"!==e:e}function U(e){return"string"==typeof e?parseInt(e,10):"number"==typeof e?e:void 0}class W{static normalizeExpandResponses(e){if("all"===e)return"all";if("string"==typeof e){const t={};return e.split(",").forEach(e=>{t[e.trim()]=!0}),t}return void 0!==e&&console.warn(`expandResponses must be a string but received value "${e}" of type ${typeof e}`),{}}static normalizeHideHostname(e){return!!e}static normalizeScrollYOffset(e){if("string"==typeof e&&!y(e)){const t=a(e);t||console.warn("scrollYOffset value is a selector to non-existing element. Using offset 0 by default");const r=t&&t.getBoundingClientRect().bottom||0;return()=>r}return"number"==typeof e||y(e)?()=>"number"==typeof e?e:parseFloat(e):"function"==typeof e?()=>{const t=e();return"number"!=typeof t&&console.warn(`scrollYOffset should return number but returned value "${t}" of type ${typeof t}`),t}:(void 0!==e&&console.warn("Wrong value for scrollYOffset ReDoc option: should be string, number or function"),()=>0)}static normalizeShowExtensions(e){if(void 0===e)return!1;if(""===e)return!0;if("string"!=typeof e)return e;switch(e){case"true":return!0;case"false":return!1;default:return e.split(",").map(e=>e.trim())}}static normalizeSideNavStyle(e){const t=R.SummaryOnly;if("string"!=typeof e)return t;switch(e){case t:return e;case R.PathOnly:return R.PathOnly;case R.IdOnly:return R.IdOnly;default:return t}}static normalizePayloadSampleIdx(e){return"number"==typeof e?Math.max(0,e):"string"==typeof e&&isFinite(e)?parseInt(e,10):0}static normalizeJsonSampleExpandLevel(e){return"all"===e?1/0:isNaN(Number(e))?2:Math.ceil(Number(e))}static normalizeGeneratedPayloadSamplesMaxDepth(e){return isNaN(Number(e))?10:Math.max(0,Number(e))}constructor(e,t={}){var r,n,o,s,a;const l=(e=B(B({},t),e)).theme&&e.theme.extensionsHook;var c,p;(null==(r=e.theme)?void 0:r.menu)&&!(null==(n=e.theme)?void 0:n.sidebar)&&(console.warn('Theme setting "menu" is deprecated. Rename to "sidebar"'),e.theme.sidebar=e.theme.menu),(null==(o=e.theme)?void 0:o.codeSample)&&!(null==(s=e.theme)?void 0:s.codeBlock)&&(console.warn('Theme setting "codeSample" is deprecated. Rename to "codeBlock"'),e.theme.codeBlock=e.theme.codeSample),this.theme=function(e){const t={};let r=0;const n=(o,i)=>{Object.keys(o).forEach(s=>{const a=(i?i+".":"")+s,l=o[s];"function"==typeof l?Object.defineProperty(o,s,{get(){if(!t[a]){if(r++,r>1e3)throw new Error(`Theme probably contains circular dependency at ${a}: ${l.toString()}`);t[a]=l(e)}return t[a]},enumerable:!0}):"object"==typeof l&&n(l,a)})};return n(e,""),JSON.parse(JSON.stringify(e))}(b({},i,(c=B({},e.theme),L(c,z({extensionsHook:void 0}))))),this.theme.extensionsHook=l,p=e.labels,Object.assign(T,p),this.scrollYOffset=W.normalizeScrollYOffset(e.scrollYOffset),this.hideHostname=W.normalizeHideHostname(e.hideHostname),this.expandResponses=W.normalizeExpandResponses(e.expandResponses),this.sortRequiredPropsFirst=Q(e.sortRequiredPropsFirst||e.requiredPropsFirst),this.sortPropsAlphabetically=Q(e.sortPropsAlphabetically),this.sortEnumValuesAlphabetically=Q(e.sortEnumValuesAlphabetically),this.sortOperationsAlphabetically=Q(e.sortOperationsAlphabetically),this.sortTagsAlphabetically=Q(e.sortTagsAlphabetically),this.nativeScrollbars=Q(e.nativeScrollbars),this.pathInMiddlePanel=Q(e.pathInMiddlePanel),this.sanitize=Q(e.sanitize||e.untrustedSpec),this.hideDownloadButtons=Q(e.hideDownloadButtons||e.hideDownloadButton),this.downloadFileName=e.downloadFileName,this.downloadDefinitionUrl=e.downloadDefinitionUrl,this.downloadUrls=e.downloadUrls,this.disableSearch=Q(e.disableSearch),this.onlyRequiredInSamples=Q(e.onlyRequiredInSamples),this.showExtensions=W.normalizeShowExtensions(e.showExtensions),this.sideNavStyle=W.normalizeSideNavStyle(e.sideNavStyle),this.hideSingleRequestSampleTab=Q(e.hideSingleRequestSampleTab),this.hideRequestPayloadSample=Q(e.hideRequestPayloadSample),this.menuToggle=Q(e.menuToggle,!0),this.jsonSamplesExpandLevel=W.normalizeJsonSampleExpandLevel(e.jsonSamplesExpandLevel||e.jsonSampleExpandLevel),this.enumSkipQuotes=Q(e.enumSkipQuotes),this.hideSchemaTitles=Q(e.hideSchemaTitles),this.simpleOneOfTypeLabel=Q(e.simpleOneOfTypeLabel),this.payloadSampleIdx=W.normalizePayloadSampleIdx(e.payloadSampleIdx),this.expandSingleSchemaField=Q(e.expandSingleSchemaField),this.schemasExpansionLevel=function(e,t=0){return"all"===e?1/0:U(e)||t}(e.schemasExpansionLevel||e.schemaExpansionLevel),this.schemaDefinitionsTagName=e.schemaDefinitionsTagName,this.showObjectSchemaExamples=Q(e.showObjectSchemaExamples),this.showSecuritySchemeType=Q(e.showSecuritySchemeType),this.hideSecuritySection=Q(e.hideSecuritySection),this.unstable_ignoreMimeParameters=Q(e.unstable_ignoreMimeParameters),this.allowedMdComponents=e.allowedMdComponents||{},this.expandDefaultServerVariables=Q(e.expandDefaultServerVariables),this.maxDisplayedEnumValues=U(e.maxDisplayedEnumValues);const u=I(e.ignoreNamedSchemas)?e.ignoreNamedSchemas:null==(a=e.ignoreNamedSchemas)?void 0:a.split(",").map(e=>e.trim());this.ignoreNamedSchemas=new Set(u),this.hideSchemaPattern=Q(e.hideSchemaPattern),this.generatedSamplesMaxDepth=W.normalizeGeneratedPayloadSamplesMaxDepth(e.generatedSamplesMaxDepth||e.generatedPayloadSamplesMaxDepth),this.nonce=e.nonce,this.hideFab=Q(e.hideFab),this.minCharacterLengthToInitSearch=U(e.minCharacterLengthToInitSearch)||3,this.showWebhookVerb=Q(e.showWebhookVerb),this.hidePropertiesPrefix=Q(e.hidePropertiesPrefix,!0)}}var V=require("styled-components"),H=r.n(V);const{default:J,css:Y,createGlobalStyle:G,keyframes:Z,ThemeProvider:X}=V,K={lessThan(e,t,r){return(...n)=>Y`
|
|
3
3
|
@media ${t?"print, ":""} screen and (max-width: ${t=>t.theme.breakpoints[e]}) ${r||""} {
|
|
4
4
|
${Y(...n)};
|
|
5
5
|
}
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
`}};var ee=J;function te(e){return t=>{if(t.theme.extensionsHook)return t.theme.extensionsHook(e,t)}}const re=ee.div`
|
|
15
15
|
padding: 20px;
|
|
16
16
|
color: red;
|
|
17
|
-
`;class ne extends e.Component{constructor(e){super(e),this.state={error:void 0}}componentDidCatch(e){return this.setState({error:e}),!1}render(){return this.state.error?e.createElement(re,null,e.createElement("h1",null,"Something went wrong..."),e.createElement("small",null," ",this.state.error.message," "),e.createElement("p",null,e.createElement("details",null,e.createElement("summary",null,"Stack trace"),e.createElement("pre",null,this.state.error.stack))),e.createElement("small",null," ReDoc Version: ","2.5.
|
|
17
|
+
`;class ne extends e.Component{constructor(e){super(e),this.state={error:void 0}}componentDidCatch(e){return this.setState({error:e}),!1}render(){return this.state.error?e.createElement(re,null,e.createElement("h1",null,"Something went wrong..."),e.createElement("small",null," ",this.state.error.message," "),e.createElement("p",null,e.createElement("details",null,e.createElement("summary",null,"Stack trace"),e.createElement("pre",null,this.state.error.stack))),e.createElement("small",null," ReDoc Version: ","2.5.4")," ",e.createElement("br",null),e.createElement("small",null," Commit: ","7a9ec49")):e.createElement(e.Fragment,null,e.Children.only(this.props.children))}}const oe=Z`
|
|
18
18
|
0% {
|
|
19
19
|
transform: rotate(0deg); }
|
|
20
20
|
100% {
|
|
21
21
|
transform: rotate(360deg);
|
|
22
22
|
}
|
|
23
|
-
`,ie=ee(
|
|
23
|
+
`,ie=ee(t=>e.createElement("svg",{className:t.className,version:"1.1",width:"512",height:"512",viewBox:"0 0 512 512"},e.createElement("path",{d:"M275.682 147.999c0 10.864-8.837 19.661-19.682 19.661v0c-10.875 0-19.681-8.796-19.681-19.661v-96.635c0-10.885 8.806-19.661 19.681-19.661v0c10.844 0 19.682 8.776 19.682 19.661v96.635z"}),e.createElement("path",{d:"M275.682 460.615c0 10.865-8.837 19.682-19.682 19.682v0c-10.875 0-19.681-8.817-19.681-19.682v-96.604c0-10.885 8.806-19.681 19.681-19.681v0c10.844 0 19.682 8.796 19.682 19.682v96.604z"}),e.createElement("path",{d:"M147.978 236.339c10.885 0 19.681 8.755 19.681 19.641v0c0 10.885-8.796 19.702-19.681 19.702h-96.624c-10.864 0-19.661-8.817-19.661-19.702v0c0-10.885 8.796-19.641 19.661-19.641h96.624z"}),e.createElement("path",{d:"M460.615 236.339c10.865 0 19.682 8.755 19.682 19.641v0c0 10.885-8.817 19.702-19.682 19.702h-96.584c-10.885 0-19.722-8.817-19.722-19.702v0c0-10.885 8.837-19.641 19.722-19.641h96.584z"}),e.createElement("path",{d:"M193.546 165.703c7.69 7.66 7.68 20.142 0 27.822v0c-7.701 7.701-20.162 7.701-27.853 0.020l-68.311-68.322c-7.68-7.701-7.68-20.142 0-27.863v0c7.68-7.68 20.121-7.68 27.822 0l68.342 68.342z"}),e.createElement("path",{d:"M414.597 386.775c7.7 7.68 7.7 20.163 0.021 27.863v0c-7.7 7.659-20.142 7.659-27.843-0.062l-68.311-68.26c-7.68-7.7-7.68-20.204 0-27.863v0c7.68-7.7 20.163-7.7 27.842 0l68.291 68.322z"}),e.createElement("path",{d:"M165.694 318.464c7.69-7.7 20.153-7.7 27.853 0v0c7.68 7.659 7.69 20.163 0 27.863l-68.342 68.322c-7.67 7.659-20.142 7.659-27.822-0.062v0c-7.68-7.68-7.68-20.122 0-27.801l68.311-68.322z"}),e.createElement("path",{d:"M386.775 97.362c7.7-7.68 20.142-7.68 27.822 0v0c7.7 7.68 7.7 20.183 0.021 27.863l-68.322 68.311c-7.68 7.68-20.163 7.68-27.843-0.020v0c-7.68-7.68-7.68-20.162 0-27.822l68.322-68.332z"})))`
|
|
24
24
|
animation: 2s ${oe} linear infinite;
|
|
25
25
|
width: 50px;
|
|
26
26
|
height: 50px;
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
font-size: 25px;
|
|
39
39
|
margin: 30px 0 20px 0;
|
|
40
40
|
color: ${e=>e.color};
|
|
41
|
-
`;class ae extends e.PureComponent{render(){return e.createElement("div",{style:{textAlign:"center"}},e.createElement(se,{color:this.props.color},"Loading ..."),e.createElement(ie,{color:this.props.color}))}}var le=require("prop-types");const ce=e.createContext(new W({})),pe=ce.Provider,ue=ce.Consumer;var de=require("mobx"),he=require("@redocly/openapi-core/lib/bundle"),me=require("@redocly/openapi-core/lib/config/config"),fe=r(65),ye=(e,t,r)=>new Promise(((n,o)=>{var i=e=>{try{a(r.next(e))}catch(e){o(e)}},s=e=>{try{a(r.throw(e))}catch(e){o(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(i,s);a((r=r.apply(e,t)).next())}));function ge(e){return ye(this,null,(function*(){const t=new me.Config({}),n={config:t,base:s?window.location.href:process.cwd()};s&&(t.resolve.http.customFetch=r.g.fetch),"object"==typeof e&&null!==e?n.doc={source:{absoluteRef:""},parsed:e}:n.ref=e;const{bundle:{parsed:o}}=yield(0,he.bundle)(n);return void 0!==o.swagger?be(o):o}))}function be(e){return console.warn("[ReDoc Compatibility mode]: Converting OpenAPI 2.0 to OpenAPI 3.0"),new Promise(((t,r)=>(0,fe.convertObj)(e,{patch:!0,warnOnly:!0,text:"{}",anchors:!0},((e,n)=>{if(e)return r(e);t(n&&n.openapi)}))))}var xe=require("decko"),ve=require("eventemitter3"),we=require("json-pointer");const ke=we.parse;class Ee{static baseName(e,t=1){const r=Ee.parse(e);return r[r.length-t]}static dirName(e,t=1){const r=Ee.parse(e);return we.compile(r.slice(0,r.length-t))}static relative(e,t){const r=Ee.parse(e);return Ee.parse(t).slice(r.length)}static parse(e){let t=e;return"#"===t.charAt(0)&&(t=t.substring(1)),ke(t)}static join(e,t){const r=Ee.parse(e).concat(t);return we.compile(r)}static get(e,t){return we.get(e,t)}static compile(e){return we.compile(e)}static escape(e){return we.escape(e)}}we.parse=Ee.parse,Object.assign(Ee,we);var Oe=r(928),je=require("url-template"),$e=Object.defineProperty,Se=Object.defineProperties,Pe=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,Te=(e,t,r)=>t in e?$e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_e=(e,t)=>{for(var r in t||(t={}))Ie.call(t,r)&&Te(e,r,t[r]);if(Ce)for(var r of Ce(t))Ae.call(t,r)&&Te(e,r,t[r]);return e},Re=(e,t)=>Se(e,Pe(t));function De(e){return"string"==typeof e&&/\dxx/i.test(e)}function ze(e){return"default"===e||y(e)||De(e)}function Le(e,t=!1){if("default"===e)return t?"error":"success";let r="string"==typeof e?parseInt(e,10):e;if(De(e)&&(r*=100),r<100||r>599)throw new Error("invalid HTTP code");let n="success";return r>=300&&r<400?n="redirect":r>=400?n="error":r<200&&(n="info"),n}const Ne={get:!0,post:!0,put:!0,head:!0,patch:!0,delete:!0,options:!0,$ref:!0};function Me(e){return e in Ne}function qe(e){return e.summary||e.operationId||e.description&&e.description.substring(0,50)||e.pathName||"<no summary>"}const Fe={multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",maxLength:"string",minLength:"string",pattern:"string",contentEncoding:"string",contentMediaType:"string",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",maxProperties:"object",minProperties:"object",required:"object",additionalProperties:"object",unevaluatedProperties:"object",properties:"object",patternProperties:"object"};function Be(e){if(void 0!==e.type&&!I(e.type))return e.type;const t=Object.keys(Fe);for(const r of t){const t=Fe[r];if(void 0!==e[r])return t}return"any"}function Qe(e,t=e.type){if(e["x-circular-ref"])return!0;if(void 0!==e.oneOf||void 0!==e.anyOf)return!1;if(e.if&&e.then||e.if&&e.else)return!1;let r=!0;const n=I(t);return("object"===t||n&&(null==t?void 0:t.includes("object")))&&(r=void 0!==e.properties?0===Object.keys(e.properties).length:void 0===e.additionalProperties&&void 0===e.unevaluatedProperties&&void 0===e.patternProperties),!I(e.items)&&!I(e.prefixItems)&&(void 0!==e.items&&!A(e.items)&&("array"===t||n&&(null==t?void 0:t.includes("array")))&&(r=Qe(e.items,e.items.type)),r)}function Ue(e){return-1!==e.search(/json/i)}function We(e){return"application/x-www-form-urlencoded"===e}function Ve(e,t,r){return I(e)?e.map((e=>e.toString())).join(r):"object"==typeof e?Object.keys(e).map((t=>`${t}${r}${e[t]}`)).join(r):t+"="+e.toString()}function He(e,t){return I(e)?(console.warn("deepObject style cannot be used with array value:"+e.toString()),""):"object"==typeof e?Object.keys(e).map((r=>`${t}[${r}]=${e[r]}`)).join("&"):(console.warn("deepObject style cannot be used with non-object value:"+e.toString()),"")}function Je(e,t,r){const n="__redoc_param_name__",o=t?"*":"";return je.parse(`{?${n}${o}}`).expand({[n]:r}).substring(1).replace(/__redoc_param_name__/g,e)}function Ye(e,t={}){if(I(e))throw new Error("Payload must have fields: "+e.toString());return Object.keys(e).map((r=>{const n=e[r],{style:o="form",explode:i=!0}=t[r]||{};switch(o){case"form":return Je(r,i,n);case"spaceDelimited":return Ve(n,r,"%20");case"pipeDelimited":return Ve(n,r,"|");case"deepObject":return He(n,r);default:return console.warn("Incorrect or unsupported encoding style: "+o),""}})).join("&")}function Ge(e,t){return Ue(t)?JSON.stringify(e):(console.warn(`Parameter serialization as ${t} is not supported`),"")}function Ze(e,t){const{name:r,style:n,explode:o=!1,serializationMime:i}=e;if(i)switch(e.in){case"path":case"header":return Ge(t,i);case"cookie":case"query":return`${r}=${Ge(t,i)}`;default:return console.warn("Unexpected parameter location: "+e.in),""}if(!n)return console.warn(`Missing style attribute or content for parameter ${r}`),"";switch(e.in){case"path":return function(e,t,r,n){const o=r?"*":"";let i="";"label"===t?i=".":"matrix"===t&&(i=";");const s="__redoc_param_name__";return je.parse(`{${i}${s}${o}}`).expand({[s]:n}).replace(/__redoc_param_name__/g,e)}(r,n,o,t);case"query":return function(e,t,r,n){switch(t){case"form":return Je(e,r,n);case"spaceDelimited":return I(n)?r?Je(e,r,n):`${e}=${n.join("%20")}`:(console.warn("The style spaceDelimited is only applicable to arrays"),"");case"pipeDelimited":return I(n)?r?Je(e,r,n):`${e}=${n.join("|")}`:(console.warn("The style pipeDelimited is only applicable to arrays"),"");case"deepObject":return!r||I(n)||"object"!=typeof n?(console.warn("The style deepObject is only applicable for objects with explode=true"),""):He(n,e);default:return console.warn("Unexpected style for query: "+t),""}}(r,n,o,t);case"header":return function(e,t,r){if("simple"===e){const e=t?"*":"",n="__redoc_param_name__",o=je.parse(`{${n}${e}}`);return decodeURIComponent(o.expand({[n]:r}))}return console.warn("Unexpected style for header: "+e),""}(n,o,t);case"cookie":return function(e,t,r,n){return"form"===t?Je(e,r,n):(console.warn("Unexpected style for cookie: "+t),"")}(r,n,o,t);default:return console.warn("Unexpected parameter location: "+e.in),""}}function Xe(e,t){return e.in?decodeURIComponent(Ze(e,t)):"object"==typeof t?t:String(t)}function Ke(e){return-1!==e.search(/xml/i)?"xml":-1!==e.search(/csv/i)?"csv":-1!==e.search(/plain/i)?"tex":"clike"}const et=/^#\/components\/(schemas|pathItems)\/([^/]+)$/;function tt(e){return et.test(e||"")}function rt(e){var t;const[r]=(null==(t=null==e?void 0:e.match(et))?void 0:t.reverse())||[];return r}function nt(e,t,r){let n;return void 0!==t&&void 0!==r?n=t===r?`= ${t} ${e}`:`[ ${t} .. ${r} ] ${e}`:void 0!==r?n=`<= ${r} ${e}`:void 0!==t&&(n=1===t?"non-empty":`>= ${t} ${e}`),n}function ot(e){var t,r;const n="number"==typeof e.exclusiveMinimum?Math.min(e.exclusiveMinimum,null!=(t=e.minimum)?t:1/0):e.minimum,o="number"==typeof e.exclusiveMaximum?Math.max(e.exclusiveMaximum,null!=(r=e.maximum)?r:-1/0):e.maximum,i="number"==typeof e.exclusiveMinimum||e.exclusiveMinimum,s="number"==typeof e.exclusiveMaximum||e.exclusiveMaximum;return void 0!==n&&void 0!==o?`${i?"( ":"[ "}${n} .. ${o}${s?" )":" ]"}`:void 0!==o?`${s?"< ":"<= "}${o}`:void 0!==n?`${i?"> ":">= "}${n}`:void 0}function it(e){const t=[],r=nt("characters",e.minLength,e.maxLength);void 0!==r&&t.push(r);const n=nt("items",e.minItems,e.maxItems);void 0!==n&&t.push(n);const o=nt("properties",e.minProperties,e.maxProperties);void 0!==o&&t.push(o);const i=function(e){if(void 0===e)return;const t=e.toString(10);return/^0\.0*1$/.test(t)?`decimal places <= ${t.split(".")[1].length}`:`multiple of ${t}`}(e.multipleOf);void 0!==i&&t.push(i);const s=ot(e);return void 0!==s&&t.push(s),e.uniqueItems&&t.push("unique"),t}function st(e,t=[]){const r=[],n=[],o=[];return e.forEach((e=>{e.required?t.includes(e.name)?n.push(e):o.push(e):r.push(e)})),n.sort(((e,r)=>t.indexOf(e.name)-t.indexOf(r.name))),[...n,...o,...r]}function at(e,t){return[...e].sort(((e,r)=>e[t].localeCompare(r[t])))}function lt(e,t=[],r=[]){const n={};return r.forEach((t=>{({resolved:t}=e.deref(t)),n[t.name+"_"+t.in]=!0})),(t=t.filter((t=>(({resolved:t}=e.deref(t)),!n[t.name+"_"+t.in])))).concat(r)}function ct(e){const t={};return Object.keys(e).forEach((r=>{const n=e[r],o=r.split(";")[0].trim();t[o]?t[o]=_e(_e({},t[o]),n):t[o]=n})),t}function pt(e,t={}){return e.replace(/(?:{)([\w-.]+)(?:})/g,((e,r)=>t[r]&&t[r].default||e))}function ut(e,t){const r=void 0===e?$((()=>{if(!s)return"";const e=window.location.href;return e.endsWith(".html")?(0,Oe.dirname)(e):e})()):(0,Oe.dirname)(e);return 0===t.length&&(t=[{url:"/"}]),t.map((e=>{return Re(_e({},e),{url:(t=e.url,E(r,t)),description:e.description||""});var t}))}const dt="SecurityDefinitions",ht="security-definitions",mt="SchemaDefinition";let ft="section/Authentication/";function yt(e){ft=e}const gt=e=>({delete:"del",options:"opts"}[e]||e);function bt(e){return e in{"x-circular-ref":!0,"x-parentRefs":!0,"x-refsStack":!0,"x-code-samples":!0,"x-codeSamples":!0,"x-displayName":!0,"x-examples":!0,"x-enumDescriptions":!0,"x-logo":!0,"x-nullable":!0,"x-servers":!0,"x-tagGroups":!0,"x-traitTag":!0,"x-badges":!0,"x-additionalPropertiesName":!0,"x-explicitMappingOnly":!0}}function xt(e,t){return Object.keys(e).filter((e=>!0===t?e.startsWith("x-")&&!bt(e):e.startsWith("x-")&&t.indexOf(e)>-1)).reduce(((t,r)=>(t[r]=e[r],t)),{})}function vt(e){return e.split(" or ").map((e=>e.replace(/^(string|object|number|integer|array|boolean)s?( ?.*)/,"$1s$2"))).join(" or ")}function wt(e){let t=e.content;const r=e["x-examples"],n=e["x-example"];if(r){t=_e({},t);for(const e of Object.keys(r)){const n=r[e];t[e]=Re(_e({},t[e]),{examples:n})}}else if(n){t=_e({},t);for(const e of Object.keys(n)){const r=n[e];t[e]=Re(_e({},t[e]),{example:r})}}return t}var kt=require("prismjs");require("prismjs/components/prism-bash.js"),require("prismjs/components/prism-c.js"),require("prismjs/components/prism-clike.js"),require("prismjs/components/prism-coffeescript.js"),require("prismjs/components/prism-cpp.js"),require("prismjs/components/prism-csharp.js"),require("prismjs/components/prism-go.js"),require("prismjs/components/prism-http.js"),require("prismjs/components/prism-java.js"),require("prismjs/components/prism-lua.js"),require("prismjs/components/prism-markup-templating.js"),require("prismjs/components/prism-markup.js"),require("prismjs/components/prism-objectivec.js"),require("prismjs/components/prism-perl.js"),require("prismjs/components/prism-php.js"),require("prismjs/components/prism-python.js"),require("prismjs/components/prism-q.js"),require("prismjs/components/prism-ruby.js"),require("prismjs/components/prism-scala.js"),require("prismjs/components/prism-sql.js"),require("prismjs/components/prism-swift.js"),require("prismjs/components/prism-yaml.js"),require("prismjs/components/prism-csv.js");const Et="clike";function Ot(e){return{json:"js","c++":"cpp","c#":"csharp","objective-c":"objectivec",shell:"bash",viml:"vim"}[e]||Et}function jt(e,t=Et){t=t.toLowerCase();let r=kt.languages[t];return r||(r=kt.languages[Ot(t)]),kt.highlight(e.toString(),r,t)}function $t(e){return(t,r,n)=>{n.value=function(e,t){let r,n,o,i=null,s=0;const a=()=>{s=(new Date).getTime(),i=null,o=e.apply(r,n),i||(r=n=null)};return function(){const l=(new Date).getTime(),c=t-(l-s);return r=this,n=arguments,c<=0||c>t?(i&&(clearTimeout(i),i=null),s=l,o=e.apply(r,n),i||(r=n=null)):i||(i=setTimeout(a,c)),o}}(n.value,e)}}function St(e){}function Pt(e){}kt.languages.insertBefore("javascript","string",{"property string":{pattern:/([{,]\s*)"(?:\\.|[^\\"\r\n])*"(?=\s*:)/i,lookbehind:!0}},void 0),kt.languages.insertBefore("javascript","punctuation",{property:{pattern:/([{,]\s*)[a-z]\w*(?=\s*:)/i,lookbehind:!0}},void 0);var Ct=Object.defineProperty,It=Object.defineProperties,At=Object.getOwnPropertyDescriptors,Tt=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,Rt=Object.prototype.propertyIsEnumerable,Dt=(e,t,r)=>t in e?Ct(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zt=(e,t)=>{for(var r in t||(t={}))_t.call(t,r)&&Dt(e,r,t[r]);if(Tt)for(var r of Tt(t))Rt.call(t,r)&&Dt(e,r,t[r]);return e},Lt=(e,t)=>It(e,At(t));const Nt={};function Mt(e,t,r){if("function"==typeof r.value)return function(e,t,r){if(!r.value||r.value.length>0)throw new Error("@memoize decorator can only be applied to methods of zero arguments");const n=`_memoized_${t}`,o=r.value;return e[n]=Nt,Lt(zt({},r),{value(){return this[n]===Nt&&(this[n]=o.call(this)),this[n]}})}(e,t,r);if("function"==typeof r.get)return function(e,t,r){const n=`_memoized_${t}`,o=r.get;return e[n]=Nt,Lt(zt({},r),{get(){return this[n]===Nt&&(this[n]=o.call(this)),this[n]}})}(e,t,r);throw new Error("@memoize decorator can be applied to methods or getters, got "+String(r.value)+" instead")}function qt(e){let t=1;return"-"===e[0]&&(t=-1,e=e.substr(1)),(r,n)=>-1==t?n[e].localeCompare(r[e]):r[e].localeCompare(n[e])}var Ft=Object.defineProperty,Bt=Object.getOwnPropertyDescriptor;const Qt="hashchange";class Ut{constructor(){this.emit=()=>{this._emiter.emit(Qt,this.currentId)},this._emiter=new ve.EventEmitter,this.bind()}get currentId(){return s?decodeURIComponent(window.location.hash.substring(1)):""}linkForId(e){return e?"#"+e:""}subscribe(e){const t=this._emiter.addListener(Qt,e);return()=>t.removeListener(Qt,e)}bind(){s&&window.addEventListener("hashchange",this.emit,!1)}dispose(){s&&window.removeEventListener("hashchange",this.emit)}replace(e,t=!1){s&&null!=e&&e!==this.currentId&&(t?window.history.replaceState(null,"",window.location.href.split("#")[0]+this.linkForId(e)):(window.history.pushState(null,"",window.location.href.split("#")[0]+this.linkForId(e)),this.emit()))}}((e,t,r)=>{for(var n,o=Bt(t,r),i=e.length-1;i>=0;i--)(n=e[i])&&(o=n(t,r,o)||o);o&&Ft(t,r,o)})([xe.bind,xe.debounce],Ut.prototype,"replace");const Wt=new Ut;var Vt=require("mark.js");class Ht{constructor(){this.map=new Map,this.prevTerm=""}add(e){this.map.set(e,new Vt(e))}delete(e){this.map.delete(e)}addOnly(e){this.map.forEach(((t,r)=>{-1===e.indexOf(r)&&(t.unmark(),this.map.delete(r))}));for(const t of e)this.map.has(t)||this.map.set(t,new Vt(t))}clearAll(){this.unmark(),this.map.clear()}mark(e){(e||this.prevTerm)&&(this.map.forEach((t=>{t.unmark(),t.mark(e||this.prevTerm)})),this.prevTerm=e||this.prevTerm)}unmark(){this.map.forEach((e=>e.unmark())),this.prevTerm=""}}let Jt={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const Yt=/[&<>"']/,Gt=new RegExp(Yt.source,"g"),Zt=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Xt=new RegExp(Zt.source,"g"),Kt={"&":"&","<":"<",">":">",'"':""","'":"'"},er=e=>Kt[e];function tr(e,t){if(t){if(Yt.test(e))return e.replace(Gt,er)}else if(Zt.test(e))return e.replace(Xt,er);return e}const rr=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function nr(e){return e.replace(rr,((e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const or=/(^|[^\[])\^/g;function ir(e,t){e="string"==typeof e?e:e.source,t=t||"";const r={replace:(t,n)=>(n=(n=n.source||n).replace(or,"$1"),e=e.replace(t,n),r),getRegex:()=>new RegExp(e,t)};return r}const sr=/[^\w:]/g,ar=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function lr(e,t,r){if(e){let e;try{e=decodeURIComponent(nr(r)).replace(sr,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!ar.test(r)&&(r=function(e,t){cr[" "+e]||(pr.test(e)?cr[" "+e]=e+"/":cr[" "+e]=fr(e,"/",!0));const r=-1===(e=cr[" "+e]).indexOf(":");return"//"===t.substring(0,2)?r?t:e.replace(ur,"$1")+t:"/"===t.charAt(0)?r?t:e.replace(dr,"$1")+t:e+t}(t,r));try{r=encodeURI(r).replace(/%25/g,"%")}catch(e){return null}return r}const cr={},pr=/^[^:]+:\/*[^/]*$/,ur=/^([^:]+:)[\s\S]*$/,dr=/^([^:]+:\/*[^/]*)[\s\S]*$/,hr={exec:function(){}};function mr(e,t){const r=e.replace(/\|/g,((e,t,r)=>{let n=!1,o=t;for(;--o>=0&&"\\"===r[o];)n=!n;return n?"|":" |"})).split(/ \|/);let n=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(/\\\|/g,"|");return r}function fr(e,t,r){const n=e.length;if(0===n)return"";let o=0;for(;o<n;){const i=e.charAt(n-o-1);if(i!==t||r){if(i===t||!r)break;o++}else o++}return e.slice(0,n-o)}function yr(e,t){if(t<1)return"";let r="";for(;t>1;)1&t&&(r+=e),t>>=1,e+=e;return r+e}function gr(e,t,r,n){const o=t.href,i=t.title?tr(t.title):null,s=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){n.state.inLink=!0;const e={type:"link",raw:r,href:o,title:i,text:s,tokens:n.inlineTokens(s)};return n.state.inLink=!1,e}return{type:"image",raw:r,href:o,title:i,text:tr(s)}}class br{constructor(e){this.options=e||Jt}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:fr(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],r=function(e,t){const r=e.match(/^(\s+)(?:```)/);if(null===r)return t;const n=r[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[r]=t;return r.length>=n.length?e.slice(n.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:r}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=fr(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *>[ \t]?/gm,""),r=this.lexer.state.top;this.lexer.state.top=!0;const n=this.lexer.blockTokens(e);return this.lexer.state.top=r,{type:"blockquote",raw:t[0],tokens:n,text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r,n,o,i,s,a,l,c,p,u,d,h,m=t[1].trim();const f=m.length>1,y={type:"list",raw:"",ordered:f,start:f?+m.slice(0,-1):"",loose:!1,items:[]};m=f?`\\d{1,9}\\${m.slice(-1)}`:`\\${m}`,this.options.pedantic&&(m=f?m:"[*+-]");const g=new RegExp(`^( {0,3}${m})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;e&&(h=!1,t=g.exec(e))&&!this.rules.block.hr.test(e);){if(r=t[0],e=e.substring(r.length),c=t[2].split("\n",1)[0].replace(/^\t+/,(e=>" ".repeat(3*e.length))),p=e.split("\n",1)[0],this.options.pedantic?(i=2,d=c.trimLeft()):(i=t[2].search(/[^ ]/),i=i>4?1:i,d=c.slice(i),i+=t[1].length),a=!1,!c&&/^ *$/.test(p)&&(r+=p+"\n",e=e.substring(p.length+1),h=!0),!h){const t=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),n=new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),o=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:\`\`\`|~~~)`),s=new RegExp(`^ {0,${Math.min(3,i-1)}}#`);for(;e&&(u=e.split("\n",1)[0],p=u,this.options.pedantic&&(p=p.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!o.test(p))&&!s.test(p)&&!t.test(p)&&!n.test(e);){if(p.search(/[^ ]/)>=i||!p.trim())d+="\n"+p.slice(i);else{if(a)break;if(c.search(/[^ ]/)>=4)break;if(o.test(c))break;if(s.test(c))break;if(n.test(c))break;d+="\n"+p}a||p.trim()||(a=!0),r+=u+"\n",e=e.substring(u.length+1),c=p.slice(i)}}y.loose||(l?y.loose=!0:/\n *\n *$/.test(r)&&(l=!0)),this.options.gfm&&(n=/^\[[ xX]\] /.exec(d),n&&(o="[ ] "!==n[0],d=d.replace(/^\[[ xX]\] +/,""))),y.items.push({type:"list_item",raw:r,task:!!n,checked:o,loose:!1,text:d}),y.raw+=r}y.items[y.items.length-1].raw=r.trimRight(),y.items[y.items.length-1].text=d.trimRight(),y.raw=y.raw.trimRight();const b=y.items.length;for(s=0;s<b;s++)if(this.lexer.state.top=!1,y.items[s].tokens=this.lexer.blockTokens(y.items[s].text,[]),!y.loose){const e=y.items[s].tokens.filter((e=>"space"===e.type)),t=e.length>0&&e.some((e=>/\n.*\n/.test(e.raw)));y.loose=t}if(y.loose)for(s=0;s<b;s++)y.items[s].loose=!0;return y}}html(e){const t=this.rules.block.html.exec(e);if(t){const e={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};if(this.options.sanitize){const r=this.options.sanitizer?this.options.sanitizer(t[0]):tr(t[0]);e.type="paragraph",e.text=r,e.tokens=this.lexer.inline(r)}return e}}def(e){const t=this.rules.block.def.exec(e);if(t){const e=t[1].toLowerCase().replace(/\s+/g," "),r=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",n=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:r,title:n}}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:mr(t[1]).map((e=>({text:e}))),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let r,n,o,i,s=e.align.length;for(r=0;r<s;r++)/^ *-+: *$/.test(e.align[r])?e.align[r]="right":/^ *:-+: *$/.test(e.align[r])?e.align[r]="center":/^ *:-+ *$/.test(e.align[r])?e.align[r]="left":e.align[r]=null;for(s=e.rows.length,r=0;r<s;r++)e.rows[r]=mr(e.rows[r],e.header.length).map((e=>({text:e})));for(s=e.header.length,n=0;n<s;n++)e.header[n].tokens=this.lexer.inline(e.header[n].text);for(s=e.rows.length,n=0;n<s;n++)for(i=e.rows[n],o=0;o<i.length;o++)i[o].tokens=this.lexer.inline(i[o].text);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:tr(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):tr(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=fr(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;const r=e.length;let n=0,o=0;for(;o<r;o++)if("\\"===e[o])o++;else if(e[o]===t[0])n++;else if(e[o]===t[1]&&(n--,n<0))return o;return-1}(t[2],"()");if(e>-1){const r=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,r).trim(),t[3]=""}}let r=t[2],n="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);e&&(r=e[1],n=e[3])}else n=t[3]?t[3].slice(1,-1):"";return r=r.trim(),/^</.test(r)&&(r=this.options.pedantic&&!/>$/.test(e)?r.slice(1):r.slice(1,-1)),gr(t,{href:r?r.replace(this.rules.inline._escapes,"$1"):r,title:n?n.replace(this.rules.inline._escapes,"$1"):n},t[0],this.lexer)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let e=(r[2]||r[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e){const e=r[0].charAt(0);return{type:"text",raw:e,text:e}}return gr(r,e,r[0],this.lexer)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrong.lDelim.exec(e);if(!n)return;if(n[3]&&r.match(/[\p{L}\p{N}]/u))return;const o=n[1]||n[2]||"";if(!o||o&&(""===r||this.rules.inline.punctuation.exec(r))){const r=n[0].length-1;let o,i,s=r,a=0;const l="*"===n[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+r);null!=(n=l.exec(t));){if(o=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!o)continue;if(i=o.length,n[3]||n[4]){s+=i;continue}if((n[5]||n[6])&&r%3&&!((r+i)%3)){a+=i;continue}if(s-=i,s>0)continue;i=Math.min(i,i+s+a);const t=e.slice(0,r+n.index+(n[0].length-o.length)+i);if(Math.min(r,i)%2){const e=t.slice(1,-1);return{type:"em",raw:t,text:e,tokens:this.lexer.inlineTokens(e)}}const l=t.slice(2,-2);return{type:"strong",raw:t,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const r=/[^ ]/.test(e),n=/^ /.test(e)&&/ $/.test(e);return r&&n&&(e=e.substring(1,e.length-1)),e=tr(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e,t){const r=this.rules.inline.autolink.exec(e);if(r){let e,n;return"@"===r[2]?(e=tr(this.options.mangle?t(r[1]):r[1]),n="mailto:"+e):(e=tr(r[1]),n=e),{type:"link",raw:r[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let r;if(r=this.rules.inline.url.exec(e)){let e,n;if("@"===r[2])e=tr(this.options.mangle?t(r[0]):r[0]),n="mailto:"+e;else{let t;do{t=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0]}while(t!==r[0]);e=tr(r[0]),n="www."===r[1]?"http://"+r[0]:r[0]}return{type:"link",raw:r[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const r=this.rules.inline.text.exec(e);if(r){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):tr(r[0]):r[0]:tr(this.options.smartypants?t(r[0]):r[0]),{type:"text",raw:r[0],text:e}}}}const xr={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}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:hr,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};xr.def=ir(xr.def).replace("label",xr._label).replace("title",xr._title).getRegex(),xr.bullet=/(?:[*+-]|\d{1,9}[.)])/,xr.listItemStart=ir(/^( *)(bull) */).replace("bull",xr.bullet).getRegex(),xr.list=ir(xr.list).replace(/bull/g,xr.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+xr.def.source+")").getRegex(),xr._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",xr._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,xr.html=ir(xr.html,"i").replace("comment",xr._comment).replace("tag",xr._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),xr.paragraph=ir(xr._paragraph).replace("hr",xr.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",xr._tag).getRegex(),xr.blockquote=ir(xr.blockquote).replace("paragraph",xr.paragraph).getRegex(),xr.normal={...xr},xr.gfm={...xr.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},xr.gfm.table=ir(xr.gfm.table).replace("hr",xr.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","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",xr._tag).getRegex(),xr.gfm.paragraph=ir(xr._paragraph).replace("hr",xr.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",xr.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",xr._tag).getRegex(),xr.pedantic={...xr.normal,html:ir("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",xr._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:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:hr,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ir(xr.normal._paragraph).replace("hr",xr.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",xr.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const vr={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:hr,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,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:hr,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function wr(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function kr(e){let t,r,n="";const o=e.length;for(t=0;t<o;t++)r=e.charCodeAt(t),Math.random()>.5&&(r="x"+r.toString(16)),n+="&#"+r+";";return n}vr._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",vr.punctuation=ir(vr.punctuation).replace(/punctuation/g,vr._punctuation).getRegex(),vr.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,vr.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,vr._comment=ir(xr._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),vr.emStrong.lDelim=ir(vr.emStrong.lDelim).replace(/punct/g,vr._punctuation).getRegex(),vr.emStrong.rDelimAst=ir(vr.emStrong.rDelimAst,"g").replace(/punct/g,vr._punctuation).getRegex(),vr.emStrong.rDelimUnd=ir(vr.emStrong.rDelimUnd,"g").replace(/punct/g,vr._punctuation).getRegex(),vr._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,vr._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,vr._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])?)+(?![-_])/,vr.autolink=ir(vr.autolink).replace("scheme",vr._scheme).replace("email",vr._email).getRegex(),vr._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,vr.tag=ir(vr.tag).replace("comment",vr._comment).replace("attribute",vr._attribute).getRegex(),vr._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,vr._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,vr._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,vr.link=ir(vr.link).replace("label",vr._label).replace("href",vr._href).replace("title",vr._title).getRegex(),vr.reflink=ir(vr.reflink).replace("label",vr._label).replace("ref",xr._label).getRegex(),vr.nolink=ir(vr.nolink).replace("ref",xr._label).getRegex(),vr.reflinkSearch=ir(vr.reflinkSearch,"g").replace("reflink",vr.reflink).replace("nolink",vr.nolink).getRegex(),vr.normal={...vr},vr.pedantic={...vr.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:ir(/^!?\[(label)\]\((.*?)\)/).replace("label",vr._label).getRegex(),reflink:ir(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",vr._label).getRegex()},vr.gfm={...vr.normal,escape:ir(vr.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]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},vr.gfm.url=ir(vr.gfm.url,"i").replace("email",vr.gfm._extended_email).getRegex(),vr.breaks={...vr.gfm,br:ir(vr.br).replace("{2,}","*").getRegex(),text:ir(vr.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};class Er{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Jt,this.options.tokenizer=this.options.tokenizer||new br,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:xr.normal,inline:vr.normal};this.options.pedantic?(t.block=xr.pedantic,t.inline=vr.pedantic):this.options.gfm&&(t.block=xr.gfm,this.options.breaks?t.inline=vr.breaks:t.inline=vr.gfm),this.tokenizer.rules=t}static get rules(){return{block:xr,inline:vr}}static lex(e,t){return new Er(t).lex(e)}static lexInline(e,t){return new Er(t).inlineTokens(e)}lex(e){let t;for(e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){let r,n,o,i;for(e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,((e,t,r)=>t+" ".repeat(r.length)));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))))if(r=this.tokenizer.space(e))e=e.substring(r.raw.length),1===r.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(r);else if(r=this.tokenizer.code(e))e=e.substring(r.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?t.push(r):(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);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.hr(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.blockquote(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.list(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.html(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.def(e))e=e.substring(r.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title}):(n.raw+="\n"+r.raw,n.text+="\n"+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(r=this.tokenizer.table(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.lheading(e))e=e.substring(r.raw.length),t.push(r);else{if(o=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const r=e.slice(1);let n;this.options.extensions.startBlock.forEach((function(e){n=e.call({lexer:this},r),"number"==typeof n&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(o)))n=t[t.length-1],i&&"paragraph"===n.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r),i=o.length!==e.length,e=e.substring(r.raw.length);else if(r=this.tokenizer.text(e))e=e.substring(r.raw.length),n=t[t.length-1],n&&"text"===n.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let r,n,o,i,s,a,l=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(l));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,i.index)+"["+yr("a",i[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,i.index)+"["+yr("a",i[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,i.index+i[0].length-2)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(s||(a=""),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))))if(r=this.tokenizer.escape(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.tag(e))e=e.substring(r.raw.length),n=t[t.length-1],n&&"text"===r.type&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(r=this.tokenizer.link(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(r.raw.length),n=t[t.length-1],n&&"text"===r.type&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(r=this.tokenizer.emStrong(e,l,a))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.codespan(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.br(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.del(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.autolink(e,kr))e=e.substring(r.raw.length),t.push(r);else if(this.state.inLink||!(r=this.tokenizer.url(e,kr))){if(o=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const r=e.slice(1);let n;this.options.extensions.startInline.forEach((function(e){n=e.call({lexer:this},r),"number"==typeof n&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(o,wr))e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(a=r.raw.slice(-1)),s=!0,n=t[t.length-1],n&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(r.raw.length),t.push(r);return t}}class Or{constructor(e){this.options=e||Jt}code(e,t,r){const n=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,n);null!=t&&t!==e&&(r=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",n?'<pre><code class="'+this.options.langPrefix+tr(n)+'">'+(r?e:tr(e,!0))+"</code></pre>\n":"<pre><code>"+(r?e:tr(e,!0))+"</code></pre>\n"}blockquote(e){return`<blockquote>\n${e}</blockquote>\n`}html(e){return e}heading(e,t,r,n){return this.options.headerIds?`<h${t} id="${this.options.headerPrefix+n.slug(r)}">${e}</h${t}>\n`:`<h${t}>${e}</h${t}>\n`}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,r){const n=t?"ol":"ul";return"<"+n+(t&&1!==r?' start="'+r+'"':"")+">\n"+e+"</"+n+">\n"}listitem(e){return`<li>${e}</li>\n`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return`<p>${e}</p>\n`}table(e,t){return t&&(t=`<tbody>${t}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return`<tr>\n${e}</tr>\n`}tablecell(e,t){const r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+`</${r}>\n`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return`<del>${e}</del>`}link(e,t,r){if(null===(e=lr(this.options.sanitize,this.options.baseUrl,e)))return r;let n='<a href="'+e+'"';return t&&(n+=' title="'+t+'"'),n+=">"+r+"</a>",n}image(e,t,r){if(null===(e=lr(this.options.sanitize,this.options.baseUrl,e)))return r;let n=`<img src="${e}" alt="${r}"`;return t&&(n+=` title="${t}"`),n+=this.options.xhtml?"/>":">",n}text(e){return e}}class jr{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,r){return""+r}image(e,t,r){return""+r}br(){return""}}class $r{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let r=e,n=0;if(this.seen.hasOwnProperty(r)){n=this.seen[e];do{n++,r=e+"-"+n}while(this.seen.hasOwnProperty(r))}return t||(this.seen[e]=n,this.seen[r]=0),r}slug(e,t={}){const r=this.serialize(e);return this.getNextSafeSlug(r,t.dryrun)}}class Sr{constructor(e){this.options=e||Jt,this.options.renderer=this.options.renderer||new Or,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new jr,this.slugger=new $r}static parse(e,t){return new Sr(t).parse(e)}static parseInline(e,t){return new Sr(t).parseInline(e)}parse(e,t=!0){let r,n,o,i,s,a,l,c,p,u,d,h,m,f,y,g,b,x,v,w="";const k=e.length;for(r=0;r<k;r++)if(u=e[r],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[u.type]&&(v=this.options.extensions.renderers[u.type].call({parser:this},u),!1!==v||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(u.type)))w+=v||"";else switch(u.type){case"space":continue;case"hr":w+=this.renderer.hr();continue;case"heading":w+=this.renderer.heading(this.parseInline(u.tokens),u.depth,nr(this.parseInline(u.tokens,this.textRenderer)),this.slugger);continue;case"code":w+=this.renderer.code(u.text,u.lang,u.escaped);continue;case"table":for(c="",l="",i=u.header.length,n=0;n<i;n++)l+=this.renderer.tablecell(this.parseInline(u.header[n].tokens),{header:!0,align:u.align[n]});for(c+=this.renderer.tablerow(l),p="",i=u.rows.length,n=0;n<i;n++){for(a=u.rows[n],l="",s=a.length,o=0;o<s;o++)l+=this.renderer.tablecell(this.parseInline(a[o].tokens),{header:!1,align:u.align[o]});p+=this.renderer.tablerow(l)}w+=this.renderer.table(c,p);continue;case"blockquote":p=this.parse(u.tokens),w+=this.renderer.blockquote(p);continue;case"list":for(d=u.ordered,h=u.start,m=u.loose,i=u.items.length,p="",n=0;n<i;n++)y=u.items[n],g=y.checked,b=y.task,f="",y.task&&(x=this.renderer.checkbox(g),m?y.tokens.length>0&&"paragraph"===y.tokens[0].type?(y.tokens[0].text=x+" "+y.tokens[0].text,y.tokens[0].tokens&&y.tokens[0].tokens.length>0&&"text"===y.tokens[0].tokens[0].type&&(y.tokens[0].tokens[0].text=x+" "+y.tokens[0].tokens[0].text)):y.tokens.unshift({type:"text",text:x}):f+=x),f+=this.parse(y.tokens,m),p+=this.renderer.listitem(f,b,g);w+=this.renderer.list(p,d,h);continue;case"html":w+=this.renderer.html(u.text);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(u.tokens));continue;case"text":for(p=u.tokens?this.parseInline(u.tokens):u.text;r+1<k&&"text"===e[r+1].type;)u=e[++r],p+="\n"+(u.tokens?this.parseInline(u.tokens):u.text);w+=t?this.renderer.paragraph(p):p;continue;default:{const e='Token with "'+u.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return w}parseInline(e,t){t=t||this.renderer;let r,n,o,i="";const s=e.length;for(r=0;r<s;r++)if(n=e[r],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type]&&(o=this.options.extensions.renderers[n.type].call({parser:this},n),!1!==o||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type)))i+=o||"";else switch(n.type){case"escape":case"text":i+=t.text(n.text);break;case"html":i+=t.html(n.text);break;case"link":i+=t.link(n.href,n.title,this.parseInline(n.tokens,t));break;case"image":i+=t.image(n.href,n.title,n.text);break;case"strong":i+=t.strong(this.parseInline(n.tokens,t));break;case"em":i+=t.em(this.parseInline(n.tokens,t));break;case"codespan":i+=t.codespan(n.text);break;case"br":i+=t.br();break;case"del":i+=t.del(this.parseInline(n.tokens,t));break;default:{const e='Token with "'+n.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return i}}class Pr{constructor(e){this.options=e||Jt}static passThroughHooks=new Set(["preprocess","postprocess"]);preprocess(e){return e}postprocess(e){return e}}function Cr(e,t){return(r,n,o)=>{"function"==typeof n&&(o=n,n=null);const i={...n},s=function(e,t,r){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="<p>An error occurred:</p><pre>"+tr(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):r?void r(null,e):e}if(t)return Promise.reject(n);if(!r)throw n;r(n)}}((n={...Ir.defaults,...i}).silent,n.async,o);if(null==r)return s(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof r)return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(function(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}(n),n.hooks&&(n.hooks.options=n),o){const i=n.highlight;let a;try{n.hooks&&(r=n.hooks.preprocess(r)),a=e(r,n)}catch(e){return s(e)}const l=function(e){let r;if(!e)try{n.walkTokens&&Ir.walkTokens(a,n.walkTokens),r=t(a,n),n.hooks&&(r=n.hooks.postprocess(r))}catch(t){e=t}return n.highlight=i,e?s(e):o(null,r)};if(!i||i.length<3)return l();if(delete n.highlight,!a.length)return l();let c=0;return Ir.walkTokens(a,(function(e){"code"===e.type&&(c++,setTimeout((()=>{i(e.text,e.lang,(function(t,r){if(t)return l(t);null!=r&&r!==e.text&&(e.text=r,e.escaped=!0),c--,0===c&&l()}))}),0))})),void(0===c&&l())}if(n.async)return Promise.resolve(n.hooks?n.hooks.preprocess(r):r).then((t=>e(t,n))).then((e=>n.walkTokens?Promise.all(Ir.walkTokens(e,n.walkTokens)).then((()=>e)):e)).then((e=>t(e,n))).then((e=>n.hooks?n.hooks.postprocess(e):e)).catch(s);try{n.hooks&&(r=n.hooks.preprocess(r));const o=e(r,n);n.walkTokens&&Ir.walkTokens(o,n.walkTokens);let i=t(o,n);return n.hooks&&(i=n.hooks.postprocess(i)),i}catch(e){return s(e)}}}function Ir(e,t,r){return Cr(Er.lex,Sr.parse)(e,t,r)}Ir.options=Ir.setOptions=function(e){var t;return Ir.defaults={...Ir.defaults,...e},t=Ir.defaults,Jt=t,Ir},Ir.getDefaults=function(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},Ir.defaults=Jt,Ir.use=function(...e){const t=Ir.defaults.extensions||{renderers:{},childTokens:{}};e.forEach((e=>{const r={...e};if(r.async=Ir.defaults.async||r.async||!1,e.extensions&&(e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const r=t.renderers[e.name];t.renderers[e.name]=r?function(...t){let n=e.renderer.apply(this,t);return!1===n&&(n=r.apply(this,t)),n}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");t[e.level]?t[e.level].unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}e.childTokens&&(t.childTokens[e.name]=e.childTokens)})),r.extensions=t),e.renderer){const t=Ir.defaults.renderer||new Or;for(const r in e.renderer){const n=t[r];t[r]=(...o)=>{let i=e.renderer[r].apply(t,o);return!1===i&&(i=n.apply(t,o)),i}}r.renderer=t}if(e.tokenizer){const t=Ir.defaults.tokenizer||new br;for(const r in e.tokenizer){const n=t[r];t[r]=(...o)=>{let i=e.tokenizer[r].apply(t,o);return!1===i&&(i=n.apply(t,o)),i}}r.tokenizer=t}if(e.hooks){const t=Ir.defaults.hooks||new Pr;for(const r in e.hooks){const n=t[r];Pr.passThroughHooks.has(r)?t[r]=o=>{if(Ir.defaults.async)return Promise.resolve(e.hooks[r].call(t,o)).then((e=>n.call(t,e)));const i=e.hooks[r].call(t,o);return n.call(t,i)}:t[r]=(...o)=>{let i=e.hooks[r].apply(t,o);return!1===i&&(i=n.apply(t,o)),i}}r.hooks=t}if(e.walkTokens){const t=Ir.defaults.walkTokens;r.walkTokens=function(r){let n=[];return n.push(e.walkTokens.call(this,r)),t&&(n=n.concat(t.call(this,r))),n}}Ir.setOptions(r)}))},Ir.walkTokens=function(e,t){let r=[];for(const n of e)switch(r=r.concat(t.call(Ir,n)),n.type){case"table":for(const e of n.header)r=r.concat(Ir.walkTokens(e.tokens,t));for(const e of n.rows)for(const n of e)r=r.concat(Ir.walkTokens(n.tokens,t));break;case"list":r=r.concat(Ir.walkTokens(n.items,t));break;default:Ir.defaults.extensions&&Ir.defaults.extensions.childTokens&&Ir.defaults.extensions.childTokens[n.type]?Ir.defaults.extensions.childTokens[n.type].forEach((function(e){r=r.concat(Ir.walkTokens(n[e],t))})):n.tokens&&(r=r.concat(Ir.walkTokens(n.tokens,t)))}return r},Ir.parseInline=Cr(Er.lexInline,Sr.parseInline),Ir.Parser=Sr,Ir.parser=Sr.parse,Ir.Renderer=Or,Ir.TextRenderer=jr,Ir.Lexer=Er,Ir.lexer=Er.lex,Ir.Tokenizer=br,Ir.Slugger=$r,Ir.Hooks=Pr,Ir.parse=Ir,Ir.options,Ir.setOptions,Ir.use,Ir.walkTokens,Ir.parseInline,Sr.parse,Er.lex;var Ar=Object.defineProperty,Tr=Object.defineProperties,_r=Object.getOwnPropertyDescriptors,Rr=Object.getOwnPropertySymbols,Dr=Object.prototype.hasOwnProperty,zr=Object.prototype.propertyIsEnumerable,Lr=(e,t,r)=>t in e?Ar(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Nr=(e,t)=>{for(var r in t||(t={}))Dr.call(t,r)&&Lr(e,r,t[r]);if(Rr)for(var r of Rr(t))zr.call(t,r)&&Lr(e,r,t[r]);return e};const Mr=new Ir.Renderer;Ir.setOptions({renderer:Mr,highlight:(e,t)=>jt(e,t)});const qr="^ {0,3}\x3c!-- ReDoc-Inject:\\s+?<({component}).*?/?>\\s+?--\x3e\\s*$",Fr="(?:^ {0,3}<({component})([\\s\\S]*?)>([\\s\\S]*?)</\\2>|^ {0,3}<({component})([\\s\\S]*?)(?:/>|\\n{2,}))",Br="(?:"+qr+"|"+Fr+")";function Qr(e){return`\x3c!-- ReDoc-Inject: <${e}> --\x3e`}class Ur{constructor(e,t){this.options=e,this.parentId=t,this.headings=[],this.headingRule=(e,t,r,n)=>(1===t?this.currentTopHeading=this.saveHeading(e,t):2===t&&this.saveHeading(e,t,this.currentTopHeading&&this.currentTopHeading.items,this.currentTopHeading&&this.currentTopHeading.id),this.originalHeadingRule(e,t,r,n)),this.parentId=t,this.parser=new Ir.Parser,this.headingEnhanceRenderer=new Ir.Renderer,this.originalHeadingRule=this.headingEnhanceRenderer.heading.bind(this.headingEnhanceRenderer),this.headingEnhanceRenderer.heading=this.headingRule}static containsComponent(e,t){return new RegExp(Br.replace(/{component}/g,t),"gmi").test(e)}static getTextBeforeHading(e,t){const r=e.search(new RegExp(`^##?\\s+${t}`,"m"));return r>-1?e.substring(0,r):e}saveHeading(e,t,r=this.headings,n){e=C(e);const o={id:n?`${n}/${w(e)}`:`${this.parentId||"section"}/${w(e)}`,name:e,level:t,items:[]};return r.push(o),o}flattenHeadings(e){if(void 0===e)return[];const t=[];for(const r of e)t.push(r),t.push(...this.flattenHeadings(r.items));return t}attachHeadingsDescriptions(e){const t=e=>new RegExp(`##?\\s+${e.name.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}s*(\n|\r\n|$|s*)`),r=this.flattenHeadings(this.headings);if(r.length<1)return;let n=r[0],o=t(n),i=e.search(o);for(let s=1;s<r.length;s++){const a=r[s],l=t(a),c=e.substr(i+1).search(l)+i+1;n.description=e.substring(i,c).replace(o,"").trim(),n=a,o=l,i=c}n.description=e.substring(i).replace(o,"").trim()}renderMd(e,t=!1){const r=t?{renderer:this.headingEnhanceRenderer}:void 0;return Ir(e.toString(),r)}extractHeadings(e){this.renderMd(e,!0),this.attachHeadingsDescriptions(e);const t=this.headings;return this.headings=[],t}renderMdWithComponents(e){const t=this.options&&this.options.allowedMdComponents;if(!t||0===Object.keys(t).length)return[this.renderMd(e)];const r=Object.keys(t).join("|"),n=new RegExp(Br.replace(/{component}/g,r),"mig"),o=[],i=[];let s=n.exec(e),a=0;for(;s;){o.push(e.substring(a,s.index)),a=n.lastIndex;const r=t[s[1]||s[2]||s[5]],p=s[3]||s[6],u=s[4];r&&i.push({component:r.component,propsSelector:r.propsSelector,props:(l=Nr(Nr({},Wr(p)),r.props),c={children:u},Tr(l,_r(c)))}),s=n.exec(e)}var l,c;o.push(e.substring(a));const p=[];for(let e=0;e<o.length;e++){const t=o[e];t&&p.push(this.renderMd(t)),i[e]&&p.push(i[e])}return p}}function Wr(e){if(!e)return{};const t=/([\w-]+)\s*=\s*(?:{([^}]+?)}|"([^"]+?)")/gim,r={};let n;for(;null!==(n=t.exec(e));)if(n[3])r[n[1]]=n[3];else if(n[2]){let e;try{e=JSON.parse(n[2])}catch(e){}r[n[1]]=e}return r}class Vr{constructor(e,t=new W({})){this.parser=e,this.options=t,Object.assign(this,e.spec.info),this.description=e.spec.info.description||"",this.summary=e.spec.info.summary||"";const r=this.description.search(/^\s*##?\s+/m);r>-1&&(this.description=this.description.substring(0,r)),this.downloadUrls=this.getDownloadUrls(),this.downloadFileName=this.getDownloadFileName()}getDownloadUrls(){return(this.options.downloadUrls?this.options.downloadUrls.map((({title:e,url:t})=>({title:e||_("download"),url:this.getDownloadLink(t)}))):[{title:_("download"),url:this.getDownloadLink(this.options.downloadDefinitionUrl)}]).filter((({title:e,url:t})=>e&&t))}getDownloadLink(e){if(e)return e;if(this.parser.specUrl)return this.parser.specUrl;if(s&&window.Blob&&window.URL&&window.URL.createObjectURL){const e=new Blob([JSON.stringify(this.parser.spec,null,2)],{type:"application/json"});return window.URL.createObjectURL(e)}}getDownloadFileName(){return this.parser.specUrl||this.options.downloadDefinitionUrl?this.options.downloadFileName:this.options.downloadFileName||"openapi.json"}}var Hr=Object.defineProperty,Jr=Object.defineProperties,Yr=Object.getOwnPropertyDescriptors,Gr=Object.getOwnPropertySymbols,Zr=Object.prototype.hasOwnProperty,Xr=Object.prototype.propertyIsEnumerable,Kr=(e,t,r)=>t in e?Hr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;class en{constructor(e,t){const r=t.spec.components&&t.spec.components.securitySchemes||{};this.schemes=Object.keys(e||{}).map((n=>{const{resolved:o}=t.deref(r[n]),i=e[n]||[];if(!o)return void console.warn(`Non existing security scheme referenced: ${n}. Skipping`);const s=o["x-displayName"]||n;return a=((e,t)=>{for(var r in t||(t={}))Zr.call(t,r)&&Kr(e,r,t[r]);if(Gr)for(var r of Gr(t))Xr.call(t,r)&&Kr(e,r,t[r]);return e})({},o),Jr(a,Yr({id:n,sectionId:n,displayName:s,scopes:i}));var a})).filter((e=>void 0!==e))}}var tn=Object.defineProperty,rn=Object.defineProperties,nn=Object.getOwnPropertyDescriptor,on=Object.getOwnPropertyDescriptors,sn=Object.getOwnPropertySymbols,an=Object.prototype.hasOwnProperty,ln=Object.prototype.propertyIsEnumerable,cn=(e,t,r)=>t in e?tn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,pn=(e,t)=>{for(var r in t||(t={}))an.call(t,r)&&cn(e,r,t[r]);if(sn)for(var r of sn(t))ln.call(t,r)&&cn(e,r,t[r]);return e},un=(e,t,r,n)=>{for(var o,i=n>1?void 0:n?nn(t,r):t,s=e.length-1;s>=0;s--)(o=e[s])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&tn(t,r,i),i};class dn{constructor(e,t,r,n,o){this.expanded=!1,this.operations=[],(0,de.makeObservable)(this),this.name=t;const{resolved:i}=e.deref(r);for(const r of Object.keys(i)){const l=i[r],c=Object.keys(l).filter(Me);for(const i of c){const c=l[i],p=new go(e,(s=pn({},c),a={pathName:r,pointer:Ee.compile([n,t,r,i]),httpVerb:i,pathParameters:l.parameters||[],pathServers:l.servers},rn(s,on(a))),void 0,o,!0);this.operations.push(p)}}var s,a}toggle(){this.expanded=!this.expanded}}un([de.observable],dn.prototype,"expanded",2),un([de.action],dn.prototype,"toggle",1);var hn=Object.defineProperty,mn=Object.defineProperties,fn=Object.getOwnPropertyDescriptors,yn=Object.getOwnPropertySymbols,gn=Object.prototype.hasOwnProperty,bn=Object.prototype.propertyIsEnumerable,xn=(e,t,r)=>t in e?hn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,vn=(e,t)=>{for(var r in t||(t={}))gn.call(t,r)&&xn(e,r,t[r]);if(yn)for(var r of yn(t))bn.call(t,r)&&xn(e,r,t[r]);return e},wn=(e,t)=>mn(e,fn(t)),kn=(e,t)=>{var r={};for(var n in e)gn.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&yn)for(var n of yn(e))t.indexOf(n)<0&&bn.call(e,n)&&(r[n]=e[n]);return r};function En(e,t){return t&&e[e.length-1]!==t?[...e,t]:e}function On(e,t){return t?e.concat(t):e}class jn{constructor(e,t,r=new W({})){this.options=r,this.allowMergeRefs=!1,this.byRef=e=>{let t;if(this.spec){"#"!==e.charAt(0)&&(e="#"+e),e=decodeURIComponent(e);try{t=Ee.get(this.spec,e)}catch(e){}return t||{}}},this.validate(e),this.spec=e,this.allowMergeRefs=e.openapi.startsWith("3.1");const n=s?window.location.href:"";"string"==typeof t&&(this.specUrl=n?new URL(t,n).href:t)}validate(e){if(void 0===e.openapi)throw new Error("Document must be valid OpenAPI 3.0.0 definition")}isRef(e){return!!e&&void 0!==e.$ref&&null!==e.$ref}deref(e,t=[],r=!1){const n=null==e?void 0:e["x-refsStack"];if(t=On(t,n),this.isRef(e)){const n=rt(e.$ref);if(n&&this.options.ignoreNamedSchemas.has(n))return{resolved:{type:"object",title:n},refsStack:t};let o=this.byRef(e.$ref);if(!o)throw new Error(`Failed to resolve $ref "${e.$ref}"`);let i=t;if(t.includes(e.$ref)||t.length>999)o=Object.assign({},o,{"x-circular-ref":!0});else if(this.isRef(o)){const e=this.deref(o,t,r);i=e.refsStack,o=e.resolved}return i=En(t,e.$ref),o=this.allowMergeRefs?this.mergeRefs(e,o,r):o,{resolved:o,refsStack:i}}return{resolved:e,refsStack:On(t,n)}}mergeRefs(e,t,r){const n=e,{$ref:o}=n,i=kn(n,["$ref"]),s=Object.keys(i);if(0===s.length)return t;if(r&&s.some((e=>!["description","title","externalDocs","x-refsStack","x-parentRefs","readOnly","writeOnly"].includes(e)))){const e=i,{description:r,title:n,readOnly:o,writeOnly:s}=e;return{allOf:[{description:r,title:n,readOnly:o,writeOnly:s},t,kn(e,["description","title","readOnly","writeOnly"])]}}return vn(vn({},t),i)}mergeAllOf(e,t,r){var n;if(e["x-circular-ref"])return e;if(void 0===(e=this.hoistOneOfs(e,r)).allOf)return e;let o=wn(vn({},e),{"x-parentRefs":[],allOf:void 0,title:e.title||rt(t)});void 0!==o.properties&&"object"==typeof o.properties&&(o.properties=vn({},o.properties)),void 0!==o.items&&"object"==typeof o.items&&(o.items=vn({},o.items));const i=function(e){const t=new Set;return e.filter((e=>{const r=e.$ref;return!r||r&&!t.has(r)&&t.add(r)}))}(e.allOf.map((e=>{var t;const{resolved:n,refsStack:i}=this.deref(e,r,!0),s=e.$ref||void 0,a=this.mergeAllOf(n,s,i);if(!a["x-circular-ref"]||!a.allOf)return s&&(null==(t=o["x-parentRefs"])||t.push(...a["x-parentRefs"]||[],s)),{$ref:s,refsStack:En(i,s),schema:a}})).filter((e=>void 0!==e)));for(const{schema:e,refsStack:r}of i){const i=e,{type:s,enum:a,properties:l,items:c,required:p,title:u,description:d,readOnly:h,writeOnly:m,oneOf:f,anyOf:y,"x-circular-ref":g}=i,b=kn(i,["type","enum","properties","items","required","title","description","readOnly","writeOnly","oneOf","anyOf","x-circular-ref"]);if(o.type!==s&&void 0!==o.type&&void 0!==s&&console.warn(`Incompatible types in allOf at "${t}": "${o.type}" and "${s}"`),void 0!==s&&(Array.isArray(s)&&Array.isArray(o.type)?o.type=[...s,...o.type]:o.type=s),void 0!==a&&(Array.isArray(a)&&Array.isArray(o.enum)?o.enum=Array.from(new Set([...a,...o.enum])):o.enum=a),void 0!==l&&"object"==typeof l){o.properties=o.properties||{};for(const e in l){const i=On(r,null==(n=l[e])?void 0:n["x-refsStack"]);if(o.properties[e]){if(!g){const r=this.mergeAllOf({allOf:[o.properties[e],wn(vn({},l[e]),{"x-refsStack":i})],"x-refsStack":i},t+"/properties/"+e,i);o.properties[e]=r}}else o.properties[e]=wn(vn({},l[e]),{"x-refsStack":i})}}if(void 0!==c&&!g){const n="boolean"==typeof o.items?{}:Object.assign({},o.items),i="boolean"==typeof e.items?{}:Object.assign({},e.items);o.items=this.mergeAllOf({allOf:[n,i]},t+"/items",r)}void 0!==f&&(o.oneOf=f),void 0!==y&&(o.anyOf=y),void 0!==p&&(o.required=[...o.required||[],...p]),o=vn(wn(vn({},o),{title:o.title||u,description:o.description||d,readOnly:void 0!==o.readOnly?o.readOnly:h,writeOnly:void 0!==o.writeOnly?o.writeOnly:m,"x-circular-ref":o["x-circular-ref"]||g}),b)}return o}findDerived(e){const t={},r=this.spec.components&&this.spec.components.schemas||{};for(const n in r){const{resolved:o}=this.deref(r[n]);void 0!==o.allOf&&o.allOf.find((t=>void 0!==t.$ref&&e.indexOf(t.$ref)>-1))&&(t["#/components/schemas/"+n]=[o["x-discriminator-value"]||n])}return t}hoistOneOfs(e,t){if(void 0===e.allOf)return e;const r=e.allOf;for(let e=0;e<r.length;e++){const n=r[e],{oneOf:o}=n,i=kn(n,["oneOf"]);if(o&&Array.isArray(o)){const n=r.slice(0,e),s=r.slice(e+1),a=Object.keys(i).length>0?[i]:[];return{oneOf:o.map((e=>({allOf:[...n,...a,e,...s],"x-refsStack":t})))}}}return e}}var $n=Object.defineProperty,Sn=Object.defineProperties,Pn=Object.getOwnPropertyDescriptor,Cn=Object.getOwnPropertyDescriptors,In=Object.getOwnPropertySymbols,An=Object.prototype.hasOwnProperty,Tn=Object.prototype.propertyIsEnumerable,_n=(e,t,r)=>t in e?$n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Rn=(e,t)=>{for(var r in t||(t={}))An.call(t,r)&&_n(e,r,t[r]);if(In)for(var r of In(t))Tn.call(t,r)&&_n(e,r,t[r]);return e},Dn=(e,t)=>Sn(e,Cn(t)),zn=(e,t,r,n)=>{for(var o,i=n>1?void 0:n?Pn(t,r):t,s=e.length-1;s>=0;s--)(o=e[s])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&$n(t,r,i),i};const Ln=class e{constructor(e,t,r,n,o=!1,i=[]){this.options=n,this.refsStack=i,this.typePrefix="",this.isCircular=!1,this.activeOneOf=0,(0,de.makeObservable)(this),this.pointer=t.$ref||r||"";const{resolved:s,refsStack:a}=e.deref(t,i,!0);this.refsStack=En(a,this.pointer),this.rawSchema=s,this.schema=e.mergeAllOf(this.rawSchema,this.pointer,this.refsStack),this.init(e,o),n.showExtensions&&(this.extensions=xt(this.schema,n.showExtensions))}activateOneOf(e){this.activeOneOf=e}hasType(e){return this.type===e||I(this.type)&&this.type.includes(e)}init(t,r){var n,o,i,s,a,l,c,p;const u=this.schema;if(this.isCircular=!!u["x-circular-ref"],this.title=u.title||tt(this.pointer)&&Ee.baseName(this.pointer)||"",this.description=u.description||"",this.type=u.type||Be(u),this.format=u.format,this.enum=u.enum||[],this["x-enumDescriptions"]=u["x-enumDescriptions"],this.example=u.example,this.examples=u.examples,this.deprecated=!!u.deprecated,this.pattern=u.pattern,this.externalDocs=u.externalDocs,this.constraints=it(u),this.displayFormat=this.format,this.isPrimitive=Qe(u,this.type),this.default=u.default,this.readOnly=!!u.readOnly,this.writeOnly=!!u.writeOnly,this.const=u.const||"",this.contentEncoding=u.contentEncoding,this.contentMediaType=u.contentMediaType,this.minItems=u.minItems,this.maxItems=u.maxItems,(u.nullable||u["x-nullable"])&&(I(this.type)&&!this.type.some((e=>null===e||"null"===e))?this.type=[...this.type,"null"]:I(this.type)||null===this.type&&"null"===this.type||(this.type=[this.type,"null"])),this.displayType=I(this.type)?this.type.map((e=>null===e?"null":e)).join(" or "):this.type,!this.isCircular)if(u.if&&u.then||u.if&&u.else)this.initConditionalOperators(u,t);else if(r||void 0===qn(u)){if(r&&I(u.oneOf)&&u.oneOf.find((e=>e.$ref===this.pointer))&&delete u.oneOf,void 0!==u.oneOf)return this.initOneOf(u.oneOf,t),this.oneOfType="One of",void(void 0!==u.anyOf&&console.warn(`oneOf and anyOf are not supported on the same level. Skipping anyOf at ${this.pointer}`));if(void 0!==u.anyOf)return this.initOneOf(u.anyOf,t),void(this.oneOfType="Any of");if(this.hasType("object"))this.fields=Mn(t,u,this.pointer,this.options,this.refsStack);else if(this.hasType("array")&&(I(u.items)||I(u.prefixItems)?this.fields=Mn(t,u,this.pointer,this.options,this.refsStack):u.items&&(this.items=new e(t,u.items,this.pointer+"/items",this.options,!1,this.refsStack)),this.displayType=u.prefixItems||I(u.items)?"items":vt((null==(n=this.items)?void 0:n.displayType)||this.displayType),this.displayFormat=(null==(o=this.items)?void 0:o.format)||"",this.typePrefix=(null==(i=this.items)?void 0:i.typePrefix)||""+_("arrayOf"),this.title=this.title||(null==(s=this.items)?void 0:s.title)||"",this.isPrimitive=void 0!==(null==(a=this.items)?void 0:a.isPrimitive)?null==(l=this.items)?void 0:l.isPrimitive:this.isPrimitive,void 0===this.example&&void 0!==(null==(c=this.items)?void 0:c.example)&&(this.example=[this.items.example]),(null==(p=this.items)?void 0:p.isPrimitive)&&(this.enum=this.items.enum,this["x-enumDescriptions"]=this.items["x-enumDescriptions"]),I(this.type))){const e=this.type.filter((e=>"array"!==e));e.length&&(this.displayType+=` or ${e.join(" or ")}`)}this.enum.length&&this.options.sortEnumValuesAlphabetically&&this.enum.sort()}else this.initDiscriminator(u,t)}initOneOf(t,r){if(this.oneOf=t.map(((t,n)=>{const{resolved:o,refsStack:i}=r.deref(t,this.refsStack,!0),s=r.mergeAllOf(o,this.pointer+"/oneOf/"+n,i),a=tt(t.$ref)&&!s.title?Ee.baseName(t.$ref):`${s.title||""}${void 0!==s.const&&JSON.stringify(s.const)||""}`;return new e(r,Dn(Rn({},s),{title:a,allOf:[Dn(Rn({},this.schema),{oneOf:void 0,anyOf:void 0})],discriminator:o.allOf?void 0:s.discriminator}),t.$ref||this.pointer+"/oneOf/"+n,this.options,!1,i)})),this.options.simpleOneOfTypeLabel){const e=function(e){const t=new Set;return function e(r){for(const n of r.oneOf||[])n.oneOf?e(n):n.type&&t.add(n.type)}(e),Array.from(t.values())}(this);this.displayType=e.join(" or ")}else this.displayType=this.oneOf.map((e=>{let t=e.typePrefix+(e.title?`${e.title} (${e.displayType})`:e.displayType);return t.indexOf(" or ")>-1&&(t=`(${t})`),t})).join(" or ")}initDiscriminator(t,r){const n=qn(t);this.discriminatorProp=n.propertyName;const o=r.findDerived([...this.schema["x-parentRefs"]||[],this.pointer]);if(t.oneOf)for(const e of t.oneOf){if(void 0===e.$ref)continue;const t=Ee.baseName(e.$ref);o[e.$ref]=t}const i=n.mapping||{};let s=n["x-explicitMappingOnly"]||!1;0===Object.keys(i).length&&(s=!1);const a={};for(const e in i){const t=i[e];I(a[t])?a[t].push(e):a[t]=[e]}const l=Rn(s?{}:Rn({},o),a);let c=[];for(const e of Object.keys(l)){const t=l[e];if(I(t))for(const r of t)c.push({$ref:e,name:r});else c.push({$ref:e,name:t})}const p=Object.keys(i);0!==p.length&&(c=c.sort(((e,t)=>{const r=p.indexOf(e.name),n=p.indexOf(t.name);return r<0&&n<0?e.name.localeCompare(t.name):r<0?1:n<0?-1:r-n}))),this.oneOf=c.map((({$ref:t,name:n})=>{const o=new e(r,{$ref:t},t,this.options,!0,this.refsStack.slice(0,-1));return o.title=n,o}))}initConditionalOperators(t,r){const n=t,{if:o,else:i={},then:s={}}=n,a=((e,t)=>{var r={};for(var n in e)An.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&In)for(var n of In(e))t.indexOf(n)<0&&Tn.call(e,n)&&(r[n]=e[n]);return r})(n,["if","else","then"]),l=[{allOf:[a,s,o],title:o&&o["x-displayName"]||(null==o?void 0:o.title)||"case 1"},{allOf:[a,i],title:i&&i["x-displayName"]||(null==i?void 0:i.title)||"case 2"}];this.oneOf=l.map(((t,n)=>new e(r,Rn({},t),this.pointer+"/oneOf/"+n,this.options,!1,this.refsStack))),this.oneOfType="One of"}};zn([de.observable],Ln.prototype,"activeOneOf",2),zn([de.action],Ln.prototype,"activateOneOf",1);let Nn=Ln;function Mn(e,t,r,n,o){const i=t.properties||t.prefixItems||t.items||{},s=t.patternProperties||{},a=t.additionalProperties||t.unevaluatedProperties,l=t.prefixItems?t.items:t.additionalItems,c=t.default;let p=Object.keys(i||[]).map((s=>{let a=i[s];a||(console.warn(`Field "${s}" is invalid, skipping.\n Field must be an object but got ${typeof a} at "${r}"`),a={});const l=void 0!==t.required&&t.required.indexOf(s)>-1;return new Hn(e,{name:t.properties?s:`[${s}]`,required:l,schema:Dn(Rn({},a),{default:void 0===a.default&&c?c[s]:a.default})},r+"/properties/"+s,n,o)}));return n.sortPropsAlphabetically&&(p=at(p,"name")),n.sortRequiredPropsFirst&&(p=st(p,n.sortPropsAlphabetically?void 0:t.required)),p.push(...Object.keys(s).map((t=>{let i=s[t];return i||(console.warn(`Field "${t}" is invalid, skipping.\n Field must be an object but got ${typeof i} at "${r}"`),i={}),new Hn(e,{name:t,required:!1,schema:i,kind:"patternProperties"},`${r}/patternProperties/${t}`,n,o)}))),"object"!=typeof a&&!0!==a||p.push(new Hn(e,{name:("object"==typeof a&&a["x-additionalPropertiesName"]||"property name").concat("*"),required:!1,schema:!0===a?{}:a,kind:"additionalProperties"},r+"/additionalProperties",n,o)),p.push(...function({parser:e,schema:t=!1,fieldsCount:r,$ref:n,options:o,refsStack:i}){return A(t)?t?[new Hn(e,{name:`[${r}...]`,schema:{}},`${n}/additionalItems`,o,i)]:[]:I(t)?[...t.map(((t,s)=>new Hn(e,{name:`[${r+s}]`,schema:t},`${n}/additionalItems`,o,i)))]:x(t)?[new Hn(e,{name:`[${r}...]`,schema:t},`${n}/additionalItems`,o,i)]:[]}({parser:e,schema:l,fieldsCount:p.length,$ref:r,options:n,refsStack:o})),p}function qn(e){return e.discriminator||e["x-discriminator"]}const Fn={};class Bn{constructor(e,t,r,n){this.mime=r;const{resolved:o}=e.deref(t);this.value=o.value,this.summary=o.summary,this.description=o.description,o.externalValue&&(this.externalValueUrl=new URL(o.externalValue,e.specUrl).href),We(r)&&this.value&&"object"==typeof this.value&&(this.value=Ye(this.value,n))}getExternalValue(e){return this.externalValueUrl?(this.externalValueUrl in Fn||(Fn[this.externalValueUrl]=fetch(this.externalValueUrl).then((t=>t.text().then((r=>{if(!t.ok)return Promise.reject(new Error(r));if(!Ue(e))return r;try{return JSON.parse(r)}catch(e){return r}}))))),Fn[this.externalValueUrl]):Promise.resolve(void 0)}}var Qn=Object.defineProperty,Un=Object.getOwnPropertyDescriptor,Wn=(e,t,r,n)=>{for(var o,i=n>1?void 0:n?Un(t,r):t,s=e.length-1;s>=0;s--)(o=e[s])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&Qn(t,r,i),i};const Vn={path:{style:"simple",explode:!1},query:{style:"form",explode:!0},header:{style:"simple",explode:!1},cookie:{style:"form",explode:!0}};class Hn{constructor(e,t,r,n,o){var i,s,a,l,c;this.expanded=void 0,(0,de.makeObservable)(this);const{resolved:p}=e.deref(t);this.kind=t.kind||"field",this.name=t.name||p.name,this.in=p.in,this.required=!!p.required;let u=p.schema,d="";if(!u&&p.in&&p.content&&(d=Object.keys(p.content)[0],u=p.content[d]&&p.content[d].schema),this.schema=new Nn(e,u||{},r,n,!1,o),this.description=void 0===p.description?this.schema.description||"":p.description,this.example=p.example||this.schema.example,void 0!==p.examples||void 0!==this.schema.examples){const t=p.examples||this.schema.examples;this.examples=I(t)?t:h(t,((t,r)=>new Bn(e,t,r,p.encoding)))}d?this.serializationMime=d:p.style?this.style=p.style:this.in&&(this.style=null!=(s=null==(i=Vn[this.in])?void 0:i.style)?s:"form"),void 0===p.explode&&this.in?this.explode=null==(l=null==(a=Vn[this.in])?void 0:a.explode)||l:this.explode=!!p.explode,this.deprecated=void 0===p.deprecated?!!this.schema.deprecated:p.deprecated,n.showExtensions&&(this.extensions=xt(p,n.showExtensions)),this.const=(null==(c=this.schema)?void 0:c.const)||(null==p?void 0:p.const)||""}toggle(){this.expanded=!this.expanded}collapse(){this.expanded=!1}expand(){this.expanded=!0}}Wn([de.observable],Hn.prototype,"expanded",2),Wn([de.action],Hn.prototype,"toggle",1),Wn([de.action],Hn.prototype,"collapse",1),Wn([de.action],Hn.prototype,"expand",1);var Jn=require("openapi-sampler");class Yn{constructor(e,t,r,n,o){this.name=t,this.isRequestType=r,this.schema=n.schema&&new Nn(e,n.schema,"",o),this.onlyRequiredInSamples=o.onlyRequiredInSamples,this.generatedSamplesMaxDepth=o.generatedSamplesMaxDepth,void 0!==n.examples?this.examples=h(n.examples,(r=>new Bn(e,r,t,n.encoding))):void 0!==n.example?this.examples={default:new Bn(e,{value:e.deref(n.example).resolved},t,n.encoding)}:Ue(t)&&this.generateExample(e,n)}generateExample(e,t){const r={skipReadOnly:this.isRequestType,skipWriteOnly:!this.isRequestType,skipNonRequired:this.isRequestType&&this.onlyRequiredInSamples,maxSampleDepth:this.generatedSamplesMaxDepth};if(this.schema&&this.schema.oneOf){this.examples={};for(const n of this.schema.oneOf){const o=Jn.sample(n.rawSchema,r,e.spec);this.schema.discriminatorProp&&"object"==typeof o&&o&&(o[this.schema.discriminatorProp]=n.title),this.examples[n.title]=new Bn(e,{value:o},this.name,t.encoding)}}else this.schema&&(this.examples={default:new Bn(e,{value:Jn.sample(t.schema,r,e.spec)},this.name,t.encoding)})}}var Gn=Object.defineProperty,Zn=Object.getOwnPropertyDescriptor,Xn=(e,t,r,n)=>{for(var o,i=n>1?void 0:n?Zn(t,r):t,s=e.length-1;s>=0;s--)(o=e[s])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&Gn(t,r,i),i};class Kn{constructor(e,t,r,n){this.isRequestType=r,this.activeMimeIdx=0,(0,de.makeObservable)(this),n.unstable_ignoreMimeParameters&&(t=ct(t)),this.mediaTypes=Object.keys(t).map((o=>{const i=t[o];return new Yn(e,o,r,i,n)}))}activate(e){this.activeMimeIdx=e}get active(){return this.mediaTypes[this.activeMimeIdx]}get hasSample(){return this.mediaTypes.filter((e=>!!e.examples)).length>0}}Xn([de.observable],Kn.prototype,"activeMimeIdx",2),Xn([de.action],Kn.prototype,"activate",1),Xn([de.computed],Kn.prototype,"active",1);class eo{constructor({parser:e,infoOrRef:t,options:r,isEvent:n}){const o=!n,{resolved:i}=e.deref(t);this.description=i.description||"",this.required=i.required;const s=wt(i);void 0!==s&&(this.content=new Kn(e,s,o,r))}}var to=Object.defineProperty,ro=Object.defineProperties,no=Object.getOwnPropertyDescriptor,oo=Object.getOwnPropertyDescriptors,io=Object.getOwnPropertySymbols,so=Object.prototype.hasOwnProperty,ao=Object.prototype.propertyIsEnumerable,lo=(e,t,r)=>t in e?to(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,co=(e,t,r,n)=>{for(var o,i=n>1?void 0:n?no(t,r):t,s=e.length-1;s>=0;s--)(o=e[s])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&to(t,r,i),i};class po{constructor({parser:e,code:t,defaultAsError:r,infoOrRef:n,options:o,isEvent:i}){this.expanded=!1,this.headers=[],(0,de.makeObservable)(this),this.expanded="all"===o.expandResponses||o.expandResponses[t];const{resolved:s}=e.deref(n);this.code=t,void 0!==s.content&&(this.content=new Kn(e,s.content,i,o)),void 0!==s["x-summary"]?(this.summary=s["x-summary"],this.description=s.description||""):(this.summary=s.description||"",this.description=""),this.type=Le(t,r);const a=s.headers;void 0!==a&&(this.headers=Object.keys(a).map((t=>{const r=a[t];return new Hn(e,(n=((e,t)=>{for(var r in t||(t={}))so.call(t,r)&&lo(e,r,t[r]);if(io)for(var r of io(t))ao.call(t,r)&&lo(e,r,t[r]);return e})({},r),ro(n,oo({name:t}))),"",o);var n}))),o.showExtensions&&(this.extensions=xt(s,o.showExtensions))}toggle(){this.expanded=!this.expanded}}co([de.observable],po.prototype,"expanded",2),co([de.action],po.prototype,"toggle",1);var uo=Object.defineProperty,ho=Object.getOwnPropertyDescriptor,mo=(e,t,r,n)=>{for(var o,i=n>1?void 0:n?ho(t,r):t,s=e.length-1;s>=0;s--)(o=e[s])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&uo(t,r,i),i};function fo(e){return"payload"===e.lang&&e.requestBodyContent}let yo=!1;class go{constructor(e,t,r,n,o=!1){var i;this.parser=e,this.operationSpec=t,this.options=n,this.type="operation",this.items=[],this.ready=!0,this.active=!1,this.expanded=!1,(0,de.makeObservable)(this),this.pointer=t.pointer,this.description=t.description,this.parent=r,this.externalDocs=t.externalDocs,this.deprecated=!!t.deprecated,this.httpVerb=t.httpVerb,this.deprecated=!!t.deprecated,this.operationId=t.operationId,this.path=t.pathName,this.isCallback=o,this.isWebhook=t.isWebhook,this.isEvent=this.isCallback||this.isWebhook,this.name=qe(t),this.sidebarLabel=n.sideNavStyle===R.IdOnly?this.operationId||this.path:n.sideNavStyle===R.PathOnly?this.path:this.name,this.badges=(null==(i=t["x-badges"])?void 0:i.map((({name:e,color:t,position:r})=>({name:e,color:t,position:r||"after"}))))||[],this.isCallback?(this.security=(t.security||[]).map((t=>new en(t,e))),this.servers=ut("",t.servers||t.pathServers||[])):(this.operationHash=t.operationId&&"operation/"+t.operationId,this.id=void 0!==t.operationId?(r?r.id+"/":"")+this.operationHash:void 0!==r?r.id+this.pointer:this.pointer,this.security=(t.security||e.spec.security||[]).map((t=>new en(t,e))),this.servers=ut(e.specUrl,t.servers||t.pathServers||e.spec.servers||[])),n.showExtensions&&(this.extensions=xt(t,n.showExtensions))}activate(){this.active=!0}deactivate(){this.active=!1}toggle(){this.expanded=!this.expanded}expand(){this.parent&&this.parent.expand()}collapse(){}get requestBody(){return this.operationSpec.requestBody&&new eo({parser:this.parser,infoOrRef:this.operationSpec.requestBody,options:this.options,isEvent:this.isEvent})}get codeSamples(){const{payloadSampleIdx:e,hideRequestPayloadSample:t}=this.options;let r=this.operationSpec["x-codeSamples"]||this.operationSpec["x-code-samples"]||[];this.operationSpec["x-code-samples"]&&!yo&&(yo=!0,console.warn('"x-code-samples" is deprecated. Use "x-codeSamples" instead'));const n=this.requestBody&&this.requestBody.content;if(n&&n.hasSample&&!t){const t=Math.min(r.length,e);r=[...r.slice(0,t),{lang:"payload",label:"Payload",source:"",requestBodyContent:n},...r.slice(t)]}return r}get parameters(){const e=lt(this.parser,this.operationSpec.pathParameters,this.operationSpec.parameters).map((e=>new Hn(this.parser,e,this.pointer,this.options)));return this.options.sortPropsAlphabetically?at(e,"name"):this.options.sortRequiredPropsFirst?st(e):e}get responses(){let e=!1;return Object.keys(this.operationSpec.responses||[]).filter((t=>"default"===t||("success"===Le(t)&&(e=!0),ze(t)))).map((t=>new po({parser:this.parser,code:t,defaultAsError:e,infoOrRef:this.operationSpec.responses[t],options:this.options,isEvent:this.isEvent})))}get callbacks(){return Object.keys(this.operationSpec.callbacks||[]).map((e=>new dn(this.parser,e,this.operationSpec.callbacks[e],this.pointer,this.options)))}}mo([de.observable],go.prototype,"ready",2),mo([de.observable],go.prototype,"active",2),mo([de.observable],go.prototype,"expanded",2),mo([de.action],go.prototype,"activate",1),mo([de.action],go.prototype,"deactivate",1),mo([de.action],go.prototype,"toggle",1),mo([Mt],go.prototype,"requestBody",1),mo([Mt],go.prototype,"codeSamples",1),mo([Mt],go.prototype,"parameters",1),mo([Mt],go.prototype,"responses",1),mo([Mt],go.prototype,"callbacks",1);var bo=Object.defineProperty,xo=Object.defineProperties,vo=Object.getOwnPropertyDescriptors,wo=Object.getOwnPropertySymbols,ko=Object.prototype.hasOwnProperty,Eo=Object.prototype.propertyIsEnumerable,Oo=(e,t,r)=>t in e?bo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jo=(e,t)=>{for(var r in t||(t={}))ko.call(t,r)&&Oo(e,r,t[r]);if(wo)for(var r of wo(t))Eo.call(t,r)&&Oo(e,r,t[r]);return e};class $o{constructor(e,t,r){this.operations=[];const{resolved:n}=e.deref(r||{});this.initWebhooks(e,n,t)}initWebhooks(e,t,r){for(const o of Object.keys(t)){const i=t[o],s=Object.keys(i).filter(Me);for(const t of s){const o=i[t];if(i.$ref){const n=e.deref(i||{});this.initWebhooks(e,{[t]:n},r)}if(!o)continue;const s=new go(e,(n=jo({},o),xo(n,vo({httpVerb:t}))),void 0,r,!1);this.operations.push(s)}}var n}}class So{constructor(e,t,r){const{resolved:n}=e.deref(r);this.id=t,this.sectionId=ft+t,this.type=n.type,this.displayName=n["x-displayName"]||t,this.description=n.description||"","apiKey"===n.type&&(this.apiKey={name:n.name,in:n.in}),"http"===n.type&&(this.http={scheme:n.scheme,bearerFormat:n.bearerFormat}),"openIdConnect"===n.type&&(this.openId={connectUrl:n.openIdConnectUrl}),"oauth2"===n.type&&n.flows&&(this.flows=n.flows)}}class Po{constructor(e){const t=e.spec.components&&e.spec.components.securitySchemes||{};this.schemes=Object.keys(t).map((r=>new So(e,r,t[r])))}}var Co=Object.defineProperty,Io=Object.getOwnPropertySymbols,Ao=Object.prototype.hasOwnProperty,To=Object.prototype.propertyIsEnumerable,_o=(e,t,r)=>t in e?Co(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ro=(e,t)=>{for(var r in t||(t={}))Ao.call(t,r)&&_o(e,r,t[r]);if(Io)for(var r of Io(t))To.call(t,r)&&_o(e,r,t[r]);return e};class Do{constructor(e,t,r){var n,o,i;this.options=r,this.parser=new jn(e,t,r),this.info=new Vr(this.parser,this.options),this.externalDocs=this.parser.spec.externalDocs,this.contentItems=Go.buildStructure(this.parser,this.options),this.securitySchemes=new Po(this.parser);const s=Ro(Ro({},null==(o=null==(n=this.parser)?void 0:n.spec)?void 0:o["x-webhooks"]),null==(i=this.parser)?void 0:i.spec.webhooks);this.webhooks=new $o(this.parser,r,s)}}var zo=Object.defineProperty,Lo=Object.getOwnPropertyDescriptor,No=(e,t,r,n)=>{for(var o,i=n>1?void 0:n?Lo(t,r):t,s=e.length-1;s>=0;s--)(o=e[s])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&zo(t,r,i),i};class Mo{constructor(e,t,r){this.items=[],this.active=!1,this.expanded=!1,(0,de.makeObservable)(this),this.id=t.id||e+"/"+w(t.name),this.type=e,this.name=t["x-displayName"]||t.name,this.level=t.level||1,this.sidebarLabel=this.name,this.description=t.description||"";const n=t.items;n&&n.length&&(this.description=Ur.getTextBeforeHading(this.description,n[0].name)),this.parent=r,this.externalDocs=t.externalDocs,"group"===this.type&&(this.expanded=!0)}activate(){this.active=!0}expand(){this.parent&&this.parent.expand(),this.expanded=!0}collapse(){"group"!==this.type&&(this.expanded=!1)}deactivate(){this.active=!1}}No([de.observable],Mo.prototype,"active",2),No([de.observable],Mo.prototype,"expanded",2),No([de.action],Mo.prototype,"activate",1),No([de.action],Mo.prototype,"expand",1),No([de.action],Mo.prototype,"collapse",1),No([de.action],Mo.prototype,"deactivate",1);var qo=Object.defineProperty,Fo=Object.defineProperties,Bo=Object.getOwnPropertyDescriptors,Qo=Object.getOwnPropertySymbols,Uo=Object.prototype.hasOwnProperty,Wo=Object.prototype.propertyIsEnumerable,Vo=(e,t,r)=>t in e?qo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ho=(e,t)=>{for(var r in t||(t={}))Uo.call(t,r)&&Vo(e,r,t[r]);if(Qo)for(var r of Qo(t))Wo.call(t,r)&&Vo(e,r,t[r]);return e},Jo=(e,t)=>Fo(e,Bo(t));const Yo=0;class Go{static buildStructure(e,t){const r=e.spec,{schemaDefinitionsTagName:n}=t,o=[],i=[...r.tags||[]];!i.find((e=>(null==e?void 0:e.name)===n))&&n&&i.push({name:n});const s=Go.getTagsWithOperations(e,i);return o.push(...Go.addMarkdownItems(r.info.description||"",void 0,1,t)),r["x-tagGroups"]&&r["x-tagGroups"].length>0?o.push(...Go.getTagGroupsItems(e,void 0,r["x-tagGroups"],s,t)):o.push(...Go.getTagsItems(e,s,void 0,void 0,t)),o}static addMarkdownItems(e,t,r,n){const o=new Ur(n,null==t?void 0:t.id).extractHeadings(e||"");o.length&&t&&t.description&&(t.description=Ur.getTextBeforeHading(t.description,o[0].name));const i=(e,t,r=1)=>t.map((t=>{const n=new Mo("section",t,e);return n.depth=r,t.items&&(n.items=i(n,t.items,r+1)),n}));return i(t,o,r)}static getTagGroupsItems(e,t,r,n,o){const i=[];for(const s of r){const r=new Mo("group",s,t);r.depth=Yo,r.items=Go.getTagsItems(e,n,r,s,o),i.push(r)}return i}static getTagsItems(e,t,r,n,o){let i;i=void 0===n?Object.keys(t):n.tags;const s=i.map((e=>t[e]?(t[e].used=!0,t[e]):(console.warn(`Non-existing tag "${e}" is added to the group "${n.name}"`),null))),a=[];for(const t of s){if(!t)continue;const n=new Mo("tag",t,r);if(n.depth=Yo+1,""===t.name){const r=[...Go.addMarkdownItems(t.description||"",n,n.depth+1,o),...this.getOperationsItems(e,void 0,t,n.depth+1,o)];a.push(...r);continue}const i=this.getTagRelatedSchema({parser:e,tag:t,parent:n,schemaDefinitionsTagName:o.schemaDefinitionsTagName});n.items=[...i,...Go.addMarkdownItems(t.description||"",n,n.depth+1,o),...this.getOperationsItems(e,n,t,n.depth+1,o)],a.push(n)}return o.sortTagsAlphabetically&&a.sort(qt("name")),a}static getOperationsItems(e,t,r,n,o){if(0===r.operations.length)return[];const i=[];for(const s of r.operations){const r=new go(e,s,t,o);r.depth=n,i.push(r)}return o.sortOperationsAlphabetically&&i.sort(qt("name")),i}static getTagsWithOperations(e,t){const{spec:r}=e,n={},o=r["x-webhooks"]||r.webhooks;for(const e of t||[])n[e.name]=Jo(Ho({},e),{operations:[]});function i(e,t,r){for(const o of Object.keys(t)){const s=t[o],a=Object.keys(s).filter(Me);for(const t of a){const a=s[t];if(s.$ref){const{resolved:t}=e.deref(s);i(e,{[o]:t},r);continue}let l=null==a?void 0:a.tags;l&&l.length||(l=[""]);for(const e of l){let i=n[e];void 0===i&&(i={name:e,operations:[]},n[e]=i),i["x-traitTag"]||i.operations.push(Jo(Ho({},a),{pathName:o,pointer:Ee.compile(["paths",o,t]),httpVerb:t,pathParameters:s.parameters||[],pathServers:s.servers,isWebhook:!!r}))}}}}return o&&i(e,o,!0),r.paths&&i(e,r.paths),n}static getTagRelatedSchema({parser:e,tag:t,parent:r,schemaDefinitionsTagName:n}){var o;const i=n?[n]:[];return Object.entries((null==(o=e.spec.components)?void 0:o.schemas)||{}).map((([e,n])=>{const o=n["x-tags"]||i;if(!(null==o?void 0:o.includes(t.name)))return null;const s=new Mo("schema",{name:e,"x-displayName":`${n.title||e}`,description:`<SchemaDefinition showWriteOnly={true} schemaRef="#/components/schemas/${e}" />`},r);return s.depth=r.depth+1,s})).filter(Boolean)}}var Zo=Object.defineProperty,Xo=Object.getOwnPropertyDescriptor,Ko=(e,t,r,n)=>{for(var o,i=n>1?void 0:n?Xo(t,r):t,s=e.length-1;s>=0;s--)(o=e[s])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&Zo(t,r,i),i};const ei="data-section-id";class ti{constructor(e,t,r){this.scroll=t,this.history=r,this.activeItemIdx=-1,this.sideBarOpened=!1,this.updateOnScroll=e=>{const t=e?1:-1;let r=this.activeItemIdx;for(;(-1!==r||e)&&!(r>=this.flatItems.length-1&&e);){if(e){const e=this.getElementAtOrFirstChild(r+1);if(this.scroll.isElementBellow(e))break}else{const e=this.getElementAt(r);if(this.scroll.isElementAbove(e))break}r+=t}this.activate(this.flatItems[r],!0,!0)},this.updateOnHistory=(e=this.history.currentId)=>{if(!e)return;let t;t=this.flatItems.find((t=>t.id===e)),t?this.activateAndScroll(t,!1):(e.startsWith(ft)&&(t=this.flatItems.find((e=>ft.startsWith(e.id))),this.activateAndScroll(t,!1)),this.scroll.scrollIntoViewBySelector(`[${ei}="${P(e)}"]`))},this.getItemById=e=>this.flatItems.find((t=>t.id===e)),(0,de.makeObservable)(this),this.items=e.contentItems,this.flatItems=m(this.items||[],"items"),this.flatItems.forEach(((e,t)=>e.absoluteIdx=t)),this.subscribe()}static updateOnHistory(e=Wt.currentId,t){e&&t.scrollIntoViewBySelector(`[${ei}="${P(e)}"]`)}subscribe(){this._unsubscribe=this.scroll.subscribe(this.updateOnScroll),this._hashUnsubscribe=this.history.subscribe(this.updateOnHistory)}toggleSidebar(){this.sideBarOpened=!this.sideBarOpened}closeSidebar(){this.sideBarOpened=!1}getElementAt(e){const t=this.flatItems[e];return t&&a(`[${ei}="${P(t.id)}"]`)||null}getElementAtOrFirstChild(e){let t=this.flatItems[e];return t&&"group"===t.type&&(t=t.items[0]),t&&a(`[${ei}="${P(t.id)}"]`)||null}get activeItem(){return this.flatItems[this.activeItemIdx]||void 0}activate(e,t=!0,r=!1){if((this.activeItem&&this.activeItem.id)!==(e&&e.id)&&(!e||"group"!==e.type)){if(this.deactivate(this.activeItem),!e)return this.activeItemIdx=-1,void this.history.replace("",r);e.depth<=Yo||(this.activeItemIdx=e.absoluteIdx,t&&this.history.replace(encodeURI(e.id),r),e.activate(),e.expand())}}deactivate(e){if(void 0!==e)for(e.deactivate();void 0!==e;)e.collapse(),e=e.parent}activateAndScroll(e,t,r){const n=e&&this.getItemById(e.id)||e;this.activate(n,t,r),this.scrollToActive(),n&&n.items.length||this.closeSidebar()}scrollToActive(){this.scroll.scrollIntoView(this.getElementAt(this.activeItemIdx))}dispose(){this._unsubscribe(),this._hashUnsubscribe()}}Ko([de.observable],ti.prototype,"activeItemIdx",2),Ko([de.observable],ti.prototype,"sideBarOpened",2),Ko([de.action],ti.prototype,"toggleSidebar",1),Ko([de.action],ti.prototype,"closeSidebar",1),Ko([de.action],ti.prototype,"activate",1),Ko([de.action.bound],ti.prototype,"activateAndScroll",1);var ri=Object.defineProperty,ni=Object.getOwnPropertyDescriptor;const oi="scroll";class ii{constructor(e){this.options=e,this._prevOffsetY=0,this._scrollParent=s?window:void 0,this._emiter=new ve.EventEmitter,this.bind()}bind(){this._prevOffsetY=this.scrollY(),this._scrollParent&&this._scrollParent.addEventListener("scroll",this.handleScroll)}dispose(){this._scrollParent&&this._scrollParent.removeEventListener("scroll",this.handleScroll),this._emiter.removeAllListeners(oi)}scrollY(){return"undefined"!=typeof HTMLElement&&this._scrollParent instanceof HTMLElement?this._scrollParent.scrollTop:void 0!==this._scrollParent?this._scrollParent.pageYOffset:0}isElementBellow(e){if(null!==e)return e.getBoundingClientRect().top>this.options.scrollYOffset()}isElementAbove(e){if(null===e)return;const t=e.getBoundingClientRect().top;return(t>0?Math.floor(t):Math.ceil(t))<=this.options.scrollYOffset()}subscribe(e){const t=this._emiter.addListener(oi,e);return()=>t.removeListener(oi,e)}scrollIntoView(e){null!==e&&(e.scrollIntoView(),this._scrollParent&&this._scrollParent.scrollBy&&this._scrollParent.scrollBy(0,1-this.options.scrollYOffset()))}scrollIntoViewBySelector(e){const t=a(e);this.scrollIntoView(t)}handleScroll(){const e=this.scrollY()-this._prevOffsetY>0;this._prevOffsetY=this.scrollY(),this._emiter.emit(oi,e)}}((e,t,r)=>{for(var n,o=ni(t,r),i=e.length-1;i>=0;i--)(n=e[i])&&(o=n(t,r,o)||o);o&&ri(t,r,o)})([xe.bind,$t(100)],ii.prototype,"handleScroll");class si{constructor(){this.searchWorker=function(){let e;if(s)try{e=r(988)}catch(t){e=r(353).Ay}else e=r(353).Ay;return new e}()}indexItems(e){const t=e=>{e.forEach((e=>{"group"!==e.type&&this.add(e.name,(e.description||"").concat(" ",e.path||""),e.id),t(e.items)}))};t(e),this.searchWorker.done()}add(e,t,r){this.searchWorker.add(e,t,r)}dispose(){this.searchWorker.terminate(),this.searchWorker.dispose()}search(e){return this.searchWorker.search(e)}toJS(){return e=this,t=function*(){return this.searchWorker.toJS()},new Promise(((r,n)=>{var o=e=>{try{s(t.next(e))}catch(e){n(e)}},i=e=>{try{s(t.throw(e))}catch(e){n(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,i);s((t=t.apply(e,null)).next())}));var e,t}load(e){this.searchWorker.load(e)}fromExternalJS(e,t){e&&t&&this.searchWorker.fromExternalJS(e,t)}}const ai=ee.div`
|
|
41
|
+
`;class ae extends e.PureComponent{render(){return e.createElement("div",{style:{textAlign:"center"}},e.createElement(se,{color:this.props.color},"Loading ..."),e.createElement(ie,{color:this.props.color}))}}var le=require("prop-types");const ce=e.createContext(new W({})),pe=ce.Provider,ue=ce.Consumer;var de=require("mobx"),he=require("@redocly/openapi-core/lib/bundle"),me=require("@redocly/openapi-core/lib/config/config"),fe=r(65),ye=(e,t,r)=>new Promise((n,o)=>{var i=e=>{try{a(r.next(e))}catch(e){o(e)}},s=e=>{try{a(r.throw(e))}catch(e){o(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(i,s);a((r=r.apply(e,t)).next())});function ge(e){return ye(this,null,function*(){const t=new me.Config({}),n={config:t,base:s?window.location.href:process.cwd()};s&&(t.resolve.http.customFetch=r.g.fetch),"object"==typeof e&&null!==e?n.doc={source:{absoluteRef:""},parsed:e}:n.ref=e;const{bundle:{parsed:o}}=yield(0,he.bundle)(n);return void 0!==o.swagger?be(o):o})}function be(e){return console.warn("[ReDoc Compatibility mode]: Converting OpenAPI 2.0 to OpenAPI 3.0"),new Promise((t,r)=>(0,fe.convertObj)(e,{patch:!0,warnOnly:!0,text:"{}",anchors:!0},(e,n)=>{if(e)return r(e);t(n&&n.openapi)}))}var xe=require("decko"),ve=require("eventemitter3"),we=require("json-pointer");const ke=we.parse;class Ee{static baseName(e,t=1){const r=Ee.parse(e);return r[r.length-t]}static dirName(e,t=1){const r=Ee.parse(e);return we.compile(r.slice(0,r.length-t))}static relative(e,t){const r=Ee.parse(e);return Ee.parse(t).slice(r.length)}static parse(e){let t=e;return"#"===t.charAt(0)&&(t=t.substring(1)),ke(t)}static join(e,t){const r=Ee.parse(e).concat(t);return we.compile(r)}static get(e,t){return we.get(e,t)}static compile(e){return we.compile(e)}static escape(e){return we.escape(e)}}we.parse=Ee.parse,Object.assign(Ee,we);var Oe=r(928),je=require("url-template"),$e=Object.defineProperty,Se=Object.defineProperties,Ce=Object.getOwnPropertyDescriptors,Pe=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,Te=(e,t,r)=>t in e?$e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_e=(e,t)=>{for(var r in t||(t={}))Ie.call(t,r)&&Te(e,r,t[r]);if(Pe)for(var r of Pe(t))Ae.call(t,r)&&Te(e,r,t[r]);return e},Re=(e,t)=>Se(e,Ce(t));function De(e){return"string"==typeof e&&/\dxx/i.test(e)}function Le(e){return"default"===e||y(e)||De(e)}function ze(e,t=!1){if("default"===e)return t?"error":"success";let r="string"==typeof e?parseInt(e,10):e;if(De(e)&&(r*=100),r<100||r>599)throw new Error("invalid HTTP code");let n="success";return r>=300&&r<400?n="redirect":r>=400?n="error":r<200&&(n="info"),n}const Ne={get:!0,post:!0,put:!0,head:!0,patch:!0,delete:!0,options:!0,$ref:!0};function Me(e){return e in Ne}function qe(e){return e.summary||e.operationId||e.description&&e.description.substring(0,50)||e.pathName||"<no summary>"}const Fe={multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",maxLength:"string",minLength:"string",pattern:"string",contentEncoding:"string",contentMediaType:"string",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",maxProperties:"object",minProperties:"object",required:"object",additionalProperties:"object",unevaluatedProperties:"object",properties:"object",patternProperties:"object"};function Be(e){if(void 0!==e.type&&!I(e.type))return e.type;const t=Object.keys(Fe);for(const r of t){const t=Fe[r];if(void 0!==e[r])return t}return"any"}function Qe(e,t=e.type){if(e["x-circular-ref"])return!0;if(void 0!==e.oneOf||void 0!==e.anyOf)return!1;if(e.if&&e.then||e.if&&e.else)return!1;let r=!0;const n=I(t);return("object"===t||n&&(null==t?void 0:t.includes("object")))&&(r=void 0!==e.properties?0===Object.keys(e.properties).length:void 0===e.additionalProperties&&void 0===e.unevaluatedProperties&&void 0===e.patternProperties),!I(e.items)&&!I(e.prefixItems)&&(void 0!==e.items&&!A(e.items)&&("array"===t||n&&(null==t?void 0:t.includes("array")))&&(r=Qe(e.items,e.items.type)),r)}function Ue(e){return-1!==e.search(/json/i)}function We(e){return"application/x-www-form-urlencoded"===e}function Ve(e,t,r){return I(e)?e.map(e=>e.toString()).join(r):"object"==typeof e?Object.keys(e).map(t=>`${t}${r}${e[t]}`).join(r):t+"="+e.toString()}function He(e,t){return I(e)?(console.warn("deepObject style cannot be used with array value:"+e.toString()),""):"object"==typeof e?Object.keys(e).map(r=>`${t}[${r}]=${e[r]}`).join("&"):(console.warn("deepObject style cannot be used with non-object value:"+e.toString()),"")}function Je(e,t,r){const n="__redoc_param_name__",o=t?"*":"";return je.parse(`{?${n}${o}}`).expand({[n]:r}).substring(1).replace(/__redoc_param_name__/g,e)}function Ye(e,t={}){if(I(e))throw new Error("Payload must have fields: "+e.toString());return Object.keys(e).map(r=>{const n=e[r],{style:o="form",explode:i=!0}=t[r]||{};switch(o){case"form":return Je(r,i,n);case"spaceDelimited":return Ve(n,r,"%20");case"pipeDelimited":return Ve(n,r,"|");case"deepObject":return He(n,r);default:return console.warn("Incorrect or unsupported encoding style: "+o),""}}).join("&")}function Ge(e,t){return Ue(t)?JSON.stringify(e):(console.warn(`Parameter serialization as ${t} is not supported`),"")}function Ze(e,t){const{name:r,style:n,explode:o=!1,serializationMime:i}=e;if(i)switch(e.in){case"path":case"header":return Ge(t,i);case"cookie":case"query":return`${r}=${Ge(t,i)}`;default:return console.warn("Unexpected parameter location: "+e.in),""}if(!n)return console.warn(`Missing style attribute or content for parameter ${r}`),"";switch(e.in){case"path":return function(e,t,r,n){const o=r?"*":"";let i="";"label"===t?i=".":"matrix"===t&&(i=";");const s="__redoc_param_name__";return je.parse(`{${i}${s}${o}}`).expand({[s]:n}).replace(/__redoc_param_name__/g,e)}(r,n,o,t);case"query":return function(e,t,r,n){switch(t){case"form":return Je(e,r,n);case"spaceDelimited":return I(n)?r?Je(e,r,n):`${e}=${n.join("%20")}`:(console.warn("The style spaceDelimited is only applicable to arrays"),"");case"pipeDelimited":return I(n)?r?Je(e,r,n):`${e}=${n.join("|")}`:(console.warn("The style pipeDelimited is only applicable to arrays"),"");case"deepObject":return!r||I(n)||"object"!=typeof n?(console.warn("The style deepObject is only applicable for objects with explode=true"),""):He(n,e);default:return console.warn("Unexpected style for query: "+t),""}}(r,n,o,t);case"header":return function(e,t,r){if("simple"===e){const e=t?"*":"",n="__redoc_param_name__",o=je.parse(`{${n}${e}}`);return decodeURIComponent(o.expand({[n]:r}))}return console.warn("Unexpected style for header: "+e),""}(n,o,t);case"cookie":return function(e,t,r,n){return"form"===t?Je(e,r,n):(console.warn("Unexpected style for cookie: "+t),"")}(r,n,o,t);default:return console.warn("Unexpected parameter location: "+e.in),""}}function Xe(e,t){return e.in?decodeURIComponent(Ze(e,t)):"object"==typeof t?t:String(t)}function Ke(e){return-1!==e.search(/xml/i)?"xml":-1!==e.search(/csv/i)?"csv":-1!==e.search(/plain/i)?"tex":"clike"}const et=/^#\/components\/(schemas|pathItems)\/([^/]+)$/;function tt(e){return et.test(e||"")}function rt(e){var t;const[r]=(null==(t=null==e?void 0:e.match(et))?void 0:t.reverse())||[];return r}function nt(e,t,r){let n;return void 0!==t&&void 0!==r?n=t===r?`= ${t} ${e}`:`[ ${t} .. ${r} ] ${e}`:void 0!==r?n=`<= ${r} ${e}`:void 0!==t&&(n=1===t?"non-empty":`>= ${t} ${e}`),n}function ot(e){var t,r;const n="number"==typeof e.exclusiveMinimum?Math.min(e.exclusiveMinimum,null!=(t=e.minimum)?t:1/0):e.minimum,o="number"==typeof e.exclusiveMaximum?Math.max(e.exclusiveMaximum,null!=(r=e.maximum)?r:-1/0):e.maximum,i="number"==typeof e.exclusiveMinimum||e.exclusiveMinimum,s="number"==typeof e.exclusiveMaximum||e.exclusiveMaximum;return void 0!==n&&void 0!==o?`${i?"( ":"[ "}${n} .. ${o}${s?" )":" ]"}`:void 0!==o?`${s?"< ":"<= "}${o}`:void 0!==n?`${i?"> ":">= "}${n}`:void 0}function it(e){const t=[],r=nt("characters",e.minLength,e.maxLength);void 0!==r&&t.push(r);const n=nt("items",e.minItems,e.maxItems);void 0!==n&&t.push(n);const o=nt("properties",e.minProperties,e.maxProperties);void 0!==o&&t.push(o);const i=function(e){if(void 0===e)return;const t=e.toString(10);return/^0\.0*1$/.test(t)?`decimal places <= ${t.split(".")[1].length}`:`multiple of ${t}`}(e.multipleOf);void 0!==i&&t.push(i);const s=ot(e);return void 0!==s&&t.push(s),e.uniqueItems&&t.push("unique"),t}function st(e,t=[]){const r=[],n=[],o=[];return e.forEach(e=>{e.required?t.includes(e.name)?n.push(e):o.push(e):r.push(e)}),n.sort((e,r)=>t.indexOf(e.name)-t.indexOf(r.name)),[...n,...o,...r]}function at(e,t){return[...e].sort((e,r)=>e[t].localeCompare(r[t]))}function lt(e,t=[],r=[]){const n={};return r.forEach(t=>{({resolved:t}=e.deref(t)),n[t.name+"_"+t.in]=!0}),(t=t.filter(t=>(({resolved:t}=e.deref(t)),!n[t.name+"_"+t.in]))).concat(r)}function ct(e){const t={};return Object.keys(e).forEach(r=>{const n=e[r],o=r.split(";")[0].trim();t[o]?t[o]=_e(_e({},t[o]),n):t[o]=n}),t}function pt(e,t={}){return e.replace(/(?:{)([\w-.]+)(?:})/g,(e,r)=>t[r]&&t[r].default||e)}function ut(e,t){const r=void 0===e?$((()=>{if(!s)return"";const e=window.location.href;return e.endsWith(".html")?(0,Oe.dirname)(e):e})()):(0,Oe.dirname)(e);return 0===t.length&&(t=[{url:"/"}]),t.map(e=>{return Re(_e({},e),{url:(t=e.url,E(r,t)),description:e.description||""});var t})}const dt="SecurityDefinitions",ht="security-definitions",mt="SchemaDefinition";let ft="section/Authentication/";function yt(e){ft=e}const gt=e=>({delete:"del",options:"opts"}[e]||e);function bt(e){return e in{"x-circular-ref":!0,"x-parentRefs":!0,"x-refsStack":!0,"x-code-samples":!0,"x-codeSamples":!0,"x-displayName":!0,"x-examples":!0,"x-enumDescriptions":!0,"x-logo":!0,"x-nullable":!0,"x-servers":!0,"x-tagGroups":!0,"x-traitTag":!0,"x-badges":!0,"x-additionalPropertiesName":!0,"x-explicitMappingOnly":!0}}function xt(e,t){return Object.keys(e).filter(e=>!0===t?e.startsWith("x-")&&!bt(e):e.startsWith("x-")&&t.indexOf(e)>-1).reduce((t,r)=>(t[r]=e[r],t),{})}function vt(e){return e.split(" or ").map(e=>e.replace(/^(string|object|number|integer|array|boolean)s?( ?.*)/,"$1s$2")).join(" or ")}function wt(e){let t=e.content;const r=e["x-examples"],n=e["x-example"];if(r){t=_e({},t);for(const e of Object.keys(r)){const n=r[e];t[e]=Re(_e({},t[e]),{examples:n})}}else if(n){t=_e({},t);for(const e of Object.keys(n)){const r=n[e];t[e]=Re(_e({},t[e]),{example:r})}}return t}var kt=require("prismjs");require("prismjs/components/prism-bash.js"),require("prismjs/components/prism-c.js"),require("prismjs/components/prism-clike.js"),require("prismjs/components/prism-coffeescript.js"),require("prismjs/components/prism-cpp.js"),require("prismjs/components/prism-csharp.js"),require("prismjs/components/prism-go.js"),require("prismjs/components/prism-http.js"),require("prismjs/components/prism-java.js"),require("prismjs/components/prism-lua.js"),require("prismjs/components/prism-markup-templating.js"),require("prismjs/components/prism-markup.js"),require("prismjs/components/prism-objectivec.js"),require("prismjs/components/prism-perl.js"),require("prismjs/components/prism-php.js"),require("prismjs/components/prism-python.js"),require("prismjs/components/prism-q.js"),require("prismjs/components/prism-ruby.js"),require("prismjs/components/prism-scala.js"),require("prismjs/components/prism-sql.js"),require("prismjs/components/prism-swift.js"),require("prismjs/components/prism-yaml.js"),require("prismjs/components/prism-csv.js");const Et="clike";function Ot(e){return{json:"js","c++":"cpp","c#":"csharp","objective-c":"objectivec",shell:"bash",viml:"vim"}[e]||Et}function jt(e,t=Et){t=t.toLowerCase();let r=kt.languages[t];return r||(r=kt.languages[Ot(t)]),kt.highlight(e.toString(),r,t)}function $t(e){return(t,r,n)=>{n.value=function(e,t){let r,n,o,i=null,s=0;const a=()=>{s=(new Date).getTime(),i=null,o=e.apply(r,n),i||(r=n=null)};return function(){const l=(new Date).getTime(),c=t-(l-s);return r=this,n=arguments,c<=0||c>t?(i&&(clearTimeout(i),i=null),s=l,o=e.apply(r,n),i||(r=n=null)):i||(i=setTimeout(a,c)),o}}(n.value,e)}}function St(e){}function Ct(e){}kt.languages.insertBefore("javascript","string",{"property string":{pattern:/([{,]\s*)"(?:\\.|[^\\"\r\n])*"(?=\s*:)/i,lookbehind:!0}},void 0),kt.languages.insertBefore("javascript","punctuation",{property:{pattern:/([{,]\s*)[a-z]\w*(?=\s*:)/i,lookbehind:!0}},void 0);var Pt=Object.defineProperty,It=Object.defineProperties,At=Object.getOwnPropertyDescriptors,Tt=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,Rt=Object.prototype.propertyIsEnumerable,Dt=(e,t,r)=>t in e?Pt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Lt=(e,t)=>{for(var r in t||(t={}))_t.call(t,r)&&Dt(e,r,t[r]);if(Tt)for(var r of Tt(t))Rt.call(t,r)&&Dt(e,r,t[r]);return e},zt=(e,t)=>It(e,At(t));const Nt={};function Mt(e,t,r){if("function"==typeof r.value)return function(e,t,r){if(!r.value||r.value.length>0)throw new Error("@memoize decorator can only be applied to methods of zero arguments");const n=`_memoized_${t}`,o=r.value;return e[n]=Nt,zt(Lt({},r),{value(){return this[n]===Nt&&(this[n]=o.call(this)),this[n]}})}(e,t,r);if("function"==typeof r.get)return function(e,t,r){const n=`_memoized_${t}`,o=r.get;return e[n]=Nt,zt(Lt({},r),{get(){return this[n]===Nt&&(this[n]=o.call(this)),this[n]}})}(e,t,r);throw new Error("@memoize decorator can be applied to methods or getters, got "+String(r.value)+" instead")}function qt(e){let t=1;return"-"===e[0]&&(t=-1,e=e.substr(1)),(r,n)=>-1==t?n[e].localeCompare(r[e]):r[e].localeCompare(n[e])}var Ft=Object.defineProperty,Bt=Object.getOwnPropertyDescriptor;const Qt="hashchange";class Ut{constructor(){this.emit=()=>{this._emiter.emit(Qt,this.currentId)},this._emiter=new ve.EventEmitter,this.bind()}get currentId(){return s?decodeURIComponent(window.location.hash.substring(1)):""}linkForId(e){return e?"#"+e:""}subscribe(e){const t=this._emiter.addListener(Qt,e);return()=>t.removeListener(Qt,e)}bind(){s&&window.addEventListener("hashchange",this.emit,!1)}dispose(){s&&window.removeEventListener("hashchange",this.emit)}replace(e,t=!1){s&&null!=e&&e!==this.currentId&&(t?window.history.replaceState(null,"",window.location.href.split("#")[0]+this.linkForId(e)):(window.history.pushState(null,"",window.location.href.split("#")[0]+this.linkForId(e)),this.emit()))}}((e,t,r)=>{for(var n,o=Bt(t,r),i=e.length-1;i>=0;i--)(n=e[i])&&(o=n(t,r,o)||o);o&&Ft(t,r,o)})([xe.bind,xe.debounce],Ut.prototype,"replace");const Wt=new Ut;var Vt=require("mark.js");class Ht{constructor(){this.map=new Map,this.prevTerm=""}add(e){this.map.set(e,new Vt(e))}delete(e){this.map.delete(e)}addOnly(e){this.map.forEach((t,r)=>{-1===e.indexOf(r)&&(t.unmark(),this.map.delete(r))});for(const t of e)this.map.has(t)||this.map.set(t,new Vt(t))}clearAll(){this.unmark(),this.map.clear()}mark(e){(e||this.prevTerm)&&(this.map.forEach(t=>{t.unmark(),t.mark(e||this.prevTerm)}),this.prevTerm=e||this.prevTerm)}unmark(){this.map.forEach(e=>e.unmark()),this.prevTerm=""}}let Jt={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const Yt=/[&<>"']/,Gt=new RegExp(Yt.source,"g"),Zt=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Xt=new RegExp(Zt.source,"g"),Kt={"&":"&","<":"<",">":">",'"':""","'":"'"},er=e=>Kt[e];function tr(e,t){if(t){if(Yt.test(e))return e.replace(Gt,er)}else if(Zt.test(e))return e.replace(Xt,er);return e}const rr=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function nr(e){return e.replace(rr,(e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):"")}const or=/(^|[^\[])\^/g;function ir(e,t){e="string"==typeof e?e:e.source,t=t||"";const r={replace:(t,n)=>(n=(n=n.source||n).replace(or,"$1"),e=e.replace(t,n),r),getRegex:()=>new RegExp(e,t)};return r}const sr=/[^\w:]/g,ar=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function lr(e,t,r){if(e){let e;try{e=decodeURIComponent(nr(r)).replace(sr,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!ar.test(r)&&(r=function(e,t){cr[" "+e]||(pr.test(e)?cr[" "+e]=e+"/":cr[" "+e]=fr(e,"/",!0));const r=-1===(e=cr[" "+e]).indexOf(":");return"//"===t.substring(0,2)?r?t:e.replace(ur,"$1")+t:"/"===t.charAt(0)?r?t:e.replace(dr,"$1")+t:e+t}(t,r));try{r=encodeURI(r).replace(/%25/g,"%")}catch(e){return null}return r}const cr={},pr=/^[^:]+:\/*[^/]*$/,ur=/^([^:]+:)[\s\S]*$/,dr=/^([^:]+:\/*[^/]*)[\s\S]*$/,hr={exec:function(){}};function mr(e,t){const r=e.replace(/\|/g,(e,t,r)=>{let n=!1,o=t;for(;--o>=0&&"\\"===r[o];)n=!n;return n?"|":" |"}).split(/ \|/);let n=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(/\\\|/g,"|");return r}function fr(e,t,r){const n=e.length;if(0===n)return"";let o=0;for(;o<n;){const i=e.charAt(n-o-1);if(i!==t||r){if(i===t||!r)break;o++}else o++}return e.slice(0,n-o)}function yr(e,t){if(t<1)return"";let r="";for(;t>1;)1&t&&(r+=e),t>>=1,e+=e;return r+e}function gr(e,t,r,n){const o=t.href,i=t.title?tr(t.title):null,s=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){n.state.inLink=!0;const e={type:"link",raw:r,href:o,title:i,text:s,tokens:n.inlineTokens(s)};return n.state.inLink=!1,e}return{type:"image",raw:r,href:o,title:i,text:tr(s)}}class br{constructor(e){this.options=e||Jt}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:fr(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],r=function(e,t){const r=e.match(/^(\s+)(?:```)/);if(null===r)return t;const n=r[1];return t.split("\n").map(e=>{const t=e.match(/^\s+/);if(null===t)return e;const[r]=t;return r.length>=n.length?e.slice(n.length):e}).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:r}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=fr(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *>[ \t]?/gm,""),r=this.lexer.state.top;this.lexer.state.top=!0;const n=this.lexer.blockTokens(e);return this.lexer.state.top=r,{type:"blockquote",raw:t[0],tokens:n,text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r,n,o,i,s,a,l,c,p,u,d,h,m=t[1].trim();const f=m.length>1,y={type:"list",raw:"",ordered:f,start:f?+m.slice(0,-1):"",loose:!1,items:[]};m=f?`\\d{1,9}\\${m.slice(-1)}`:`\\${m}`,this.options.pedantic&&(m=f?m:"[*+-]");const g=new RegExp(`^( {0,3}${m})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;e&&(h=!1,t=g.exec(e))&&!this.rules.block.hr.test(e);){if(r=t[0],e=e.substring(r.length),c=t[2].split("\n",1)[0].replace(/^\t+/,e=>" ".repeat(3*e.length)),p=e.split("\n",1)[0],this.options.pedantic?(i=2,d=c.trimLeft()):(i=t[2].search(/[^ ]/),i=i>4?1:i,d=c.slice(i),i+=t[1].length),a=!1,!c&&/^ *$/.test(p)&&(r+=p+"\n",e=e.substring(p.length+1),h=!0),!h){const t=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),n=new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),o=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:\`\`\`|~~~)`),s=new RegExp(`^ {0,${Math.min(3,i-1)}}#`);for(;e&&(u=e.split("\n",1)[0],p=u,this.options.pedantic&&(p=p.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!o.test(p))&&!s.test(p)&&!t.test(p)&&!n.test(e);){if(p.search(/[^ ]/)>=i||!p.trim())d+="\n"+p.slice(i);else{if(a)break;if(c.search(/[^ ]/)>=4)break;if(o.test(c))break;if(s.test(c))break;if(n.test(c))break;d+="\n"+p}a||p.trim()||(a=!0),r+=u+"\n",e=e.substring(u.length+1),c=p.slice(i)}}y.loose||(l?y.loose=!0:/\n *\n *$/.test(r)&&(l=!0)),this.options.gfm&&(n=/^\[[ xX]\] /.exec(d),n&&(o="[ ] "!==n[0],d=d.replace(/^\[[ xX]\] +/,""))),y.items.push({type:"list_item",raw:r,task:!!n,checked:o,loose:!1,text:d}),y.raw+=r}y.items[y.items.length-1].raw=r.trimRight(),y.items[y.items.length-1].text=d.trimRight(),y.raw=y.raw.trimRight();const b=y.items.length;for(s=0;s<b;s++)if(this.lexer.state.top=!1,y.items[s].tokens=this.lexer.blockTokens(y.items[s].text,[]),!y.loose){const e=y.items[s].tokens.filter(e=>"space"===e.type),t=e.length>0&&e.some(e=>/\n.*\n/.test(e.raw));y.loose=t}if(y.loose)for(s=0;s<b;s++)y.items[s].loose=!0;return y}}html(e){const t=this.rules.block.html.exec(e);if(t){const e={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};if(this.options.sanitize){const r=this.options.sanitizer?this.options.sanitizer(t[0]):tr(t[0]);e.type="paragraph",e.text=r,e.tokens=this.lexer.inline(r)}return e}}def(e){const t=this.rules.block.def.exec(e);if(t){const e=t[1].toLowerCase().replace(/\s+/g," "),r=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",n=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:r,title:n}}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:mr(t[1]).map(e=>({text:e})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let r,n,o,i,s=e.align.length;for(r=0;r<s;r++)/^ *-+: *$/.test(e.align[r])?e.align[r]="right":/^ *:-+: *$/.test(e.align[r])?e.align[r]="center":/^ *:-+ *$/.test(e.align[r])?e.align[r]="left":e.align[r]=null;for(s=e.rows.length,r=0;r<s;r++)e.rows[r]=mr(e.rows[r],e.header.length).map(e=>({text:e}));for(s=e.header.length,n=0;n<s;n++)e.header[n].tokens=this.lexer.inline(e.header[n].text);for(s=e.rows.length,n=0;n<s;n++)for(i=e.rows[n],o=0;o<i.length;o++)i[o].tokens=this.lexer.inline(i[o].text);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:tr(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):tr(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=fr(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;const r=e.length;let n=0,o=0;for(;o<r;o++)if("\\"===e[o])o++;else if(e[o]===t[0])n++;else if(e[o]===t[1]&&(n--,n<0))return o;return-1}(t[2],"()");if(e>-1){const r=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,r).trim(),t[3]=""}}let r=t[2],n="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);e&&(r=e[1],n=e[3])}else n=t[3]?t[3].slice(1,-1):"";return r=r.trim(),/^</.test(r)&&(r=this.options.pedantic&&!/>$/.test(e)?r.slice(1):r.slice(1,-1)),gr(t,{href:r?r.replace(this.rules.inline._escapes,"$1"):r,title:n?n.replace(this.rules.inline._escapes,"$1"):n},t[0],this.lexer)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let e=(r[2]||r[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e){const e=r[0].charAt(0);return{type:"text",raw:e,text:e}}return gr(r,e,r[0],this.lexer)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrong.lDelim.exec(e);if(!n)return;if(n[3]&&r.match(/[\p{L}\p{N}]/u))return;const o=n[1]||n[2]||"";if(!o||o&&(""===r||this.rules.inline.punctuation.exec(r))){const r=n[0].length-1;let o,i,s=r,a=0;const l="*"===n[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+r);null!=(n=l.exec(t));){if(o=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!o)continue;if(i=o.length,n[3]||n[4]){s+=i;continue}if((n[5]||n[6])&&r%3&&!((r+i)%3)){a+=i;continue}if(s-=i,s>0)continue;i=Math.min(i,i+s+a);const t=e.slice(0,r+n.index+(n[0].length-o.length)+i);if(Math.min(r,i)%2){const e=t.slice(1,-1);return{type:"em",raw:t,text:e,tokens:this.lexer.inlineTokens(e)}}const l=t.slice(2,-2);return{type:"strong",raw:t,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const r=/[^ ]/.test(e),n=/^ /.test(e)&&/ $/.test(e);return r&&n&&(e=e.substring(1,e.length-1)),e=tr(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e,t){const r=this.rules.inline.autolink.exec(e);if(r){let e,n;return"@"===r[2]?(e=tr(this.options.mangle?t(r[1]):r[1]),n="mailto:"+e):(e=tr(r[1]),n=e),{type:"link",raw:r[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let r;if(r=this.rules.inline.url.exec(e)){let e,n;if("@"===r[2])e=tr(this.options.mangle?t(r[0]):r[0]),n="mailto:"+e;else{let t;do{t=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0]}while(t!==r[0]);e=tr(r[0]),n="www."===r[1]?"http://"+r[0]:r[0]}return{type:"link",raw:r[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const r=this.rules.inline.text.exec(e);if(r){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):tr(r[0]):r[0]:tr(this.options.smartypants?t(r[0]):r[0]),{type:"text",raw:r[0],text:e}}}}const xr={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}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:hr,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};xr.def=ir(xr.def).replace("label",xr._label).replace("title",xr._title).getRegex(),xr.bullet=/(?:[*+-]|\d{1,9}[.)])/,xr.listItemStart=ir(/^( *)(bull) */).replace("bull",xr.bullet).getRegex(),xr.list=ir(xr.list).replace(/bull/g,xr.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+xr.def.source+")").getRegex(),xr._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",xr._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,xr.html=ir(xr.html,"i").replace("comment",xr._comment).replace("tag",xr._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),xr.paragraph=ir(xr._paragraph).replace("hr",xr.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",xr._tag).getRegex(),xr.blockquote=ir(xr.blockquote).replace("paragraph",xr.paragraph).getRegex(),xr.normal={...xr},xr.gfm={...xr.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},xr.gfm.table=ir(xr.gfm.table).replace("hr",xr.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","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",xr._tag).getRegex(),xr.gfm.paragraph=ir(xr._paragraph).replace("hr",xr.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",xr.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",xr._tag).getRegex(),xr.pedantic={...xr.normal,html:ir("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",xr._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:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:hr,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ir(xr.normal._paragraph).replace("hr",xr.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",xr.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const vr={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:hr,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,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:hr,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function wr(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function kr(e){let t,r,n="";const o=e.length;for(t=0;t<o;t++)r=e.charCodeAt(t),Math.random()>.5&&(r="x"+r.toString(16)),n+="&#"+r+";";return n}vr._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",vr.punctuation=ir(vr.punctuation).replace(/punctuation/g,vr._punctuation).getRegex(),vr.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,vr.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,vr._comment=ir(xr._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),vr.emStrong.lDelim=ir(vr.emStrong.lDelim).replace(/punct/g,vr._punctuation).getRegex(),vr.emStrong.rDelimAst=ir(vr.emStrong.rDelimAst,"g").replace(/punct/g,vr._punctuation).getRegex(),vr.emStrong.rDelimUnd=ir(vr.emStrong.rDelimUnd,"g").replace(/punct/g,vr._punctuation).getRegex(),vr._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,vr._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,vr._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])?)+(?![-_])/,vr.autolink=ir(vr.autolink).replace("scheme",vr._scheme).replace("email",vr._email).getRegex(),vr._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,vr.tag=ir(vr.tag).replace("comment",vr._comment).replace("attribute",vr._attribute).getRegex(),vr._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,vr._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,vr._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,vr.link=ir(vr.link).replace("label",vr._label).replace("href",vr._href).replace("title",vr._title).getRegex(),vr.reflink=ir(vr.reflink).replace("label",vr._label).replace("ref",xr._label).getRegex(),vr.nolink=ir(vr.nolink).replace("ref",xr._label).getRegex(),vr.reflinkSearch=ir(vr.reflinkSearch,"g").replace("reflink",vr.reflink).replace("nolink",vr.nolink).getRegex(),vr.normal={...vr},vr.pedantic={...vr.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:ir(/^!?\[(label)\]\((.*?)\)/).replace("label",vr._label).getRegex(),reflink:ir(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",vr._label).getRegex()},vr.gfm={...vr.normal,escape:ir(vr.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]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},vr.gfm.url=ir(vr.gfm.url,"i").replace("email",vr.gfm._extended_email).getRegex(),vr.breaks={...vr.gfm,br:ir(vr.br).replace("{2,}","*").getRegex(),text:ir(vr.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};class Er{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Jt,this.options.tokenizer=this.options.tokenizer||new br,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:xr.normal,inline:vr.normal};this.options.pedantic?(t.block=xr.pedantic,t.inline=vr.pedantic):this.options.gfm&&(t.block=xr.gfm,this.options.breaks?t.inline=vr.breaks:t.inline=vr.gfm),this.tokenizer.rules=t}static get rules(){return{block:xr,inline:vr}}static lex(e,t){return new Er(t).lex(e)}static lexInline(e,t){return new Er(t).inlineTokens(e)}lex(e){let t;for(e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){let r,n,o,i;for(e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,(e,t,r)=>t+" ".repeat(r.length));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0))))if(r=this.tokenizer.space(e))e=e.substring(r.raw.length),1===r.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(r);else if(r=this.tokenizer.code(e))e=e.substring(r.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?t.push(r):(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);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.hr(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.blockquote(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.list(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.html(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.def(e))e=e.substring(r.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title}):(n.raw+="\n"+r.raw,n.text+="\n"+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(r=this.tokenizer.table(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.lheading(e))e=e.substring(r.raw.length),t.push(r);else{if(o=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const r=e.slice(1);let n;this.options.extensions.startBlock.forEach(function(e){n=e.call({lexer:this},r),"number"==typeof n&&n>=0&&(t=Math.min(t,n))}),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(o)))n=t[t.length-1],i&&"paragraph"===n.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r),i=o.length!==e.length,e=e.substring(r.raw.length);else if(r=this.tokenizer.text(e))e=e.substring(r.raw.length),n=t[t.length-1],n&&"text"===n.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let r,n,o,i,s,a,l=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(l));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,i.index)+"["+yr("a",i[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,i.index)+"["+yr("a",i[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,i.index+i[0].length-2)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(s||(a=""),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0))))if(r=this.tokenizer.escape(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.tag(e))e=e.substring(r.raw.length),n=t[t.length-1],n&&"text"===r.type&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(r=this.tokenizer.link(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(r.raw.length),n=t[t.length-1],n&&"text"===r.type&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(r=this.tokenizer.emStrong(e,l,a))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.codespan(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.br(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.del(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.autolink(e,kr))e=e.substring(r.raw.length),t.push(r);else if(this.state.inLink||!(r=this.tokenizer.url(e,kr))){if(o=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const r=e.slice(1);let n;this.options.extensions.startInline.forEach(function(e){n=e.call({lexer:this},r),"number"==typeof n&&n>=0&&(t=Math.min(t,n))}),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(o,wr))e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(a=r.raw.slice(-1)),s=!0,n=t[t.length-1],n&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(r.raw.length),t.push(r);return t}}class Or{constructor(e){this.options=e||Jt}code(e,t,r){const n=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,n);null!=t&&t!==e&&(r=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",n?'<pre><code class="'+this.options.langPrefix+tr(n)+'">'+(r?e:tr(e,!0))+"</code></pre>\n":"<pre><code>"+(r?e:tr(e,!0))+"</code></pre>\n"}blockquote(e){return`<blockquote>\n${e}</blockquote>\n`}html(e){return e}heading(e,t,r,n){return this.options.headerIds?`<h${t} id="${this.options.headerPrefix+n.slug(r)}">${e}</h${t}>\n`:`<h${t}>${e}</h${t}>\n`}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,r){const n=t?"ol":"ul";return"<"+n+(t&&1!==r?' start="'+r+'"':"")+">\n"+e+"</"+n+">\n"}listitem(e){return`<li>${e}</li>\n`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return`<p>${e}</p>\n`}table(e,t){return t&&(t=`<tbody>${t}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return`<tr>\n${e}</tr>\n`}tablecell(e,t){const r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+`</${r}>\n`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return`<del>${e}</del>`}link(e,t,r){if(null===(e=lr(this.options.sanitize,this.options.baseUrl,e)))return r;let n='<a href="'+e+'"';return t&&(n+=' title="'+t+'"'),n+=">"+r+"</a>",n}image(e,t,r){if(null===(e=lr(this.options.sanitize,this.options.baseUrl,e)))return r;let n=`<img src="${e}" alt="${r}"`;return t&&(n+=` title="${t}"`),n+=this.options.xhtml?"/>":">",n}text(e){return e}}class jr{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,r){return""+r}image(e,t,r){return""+r}br(){return""}}class $r{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let r=e,n=0;if(this.seen.hasOwnProperty(r)){n=this.seen[e];do{n++,r=e+"-"+n}while(this.seen.hasOwnProperty(r))}return t||(this.seen[e]=n,this.seen[r]=0),r}slug(e,t={}){const r=this.serialize(e);return this.getNextSafeSlug(r,t.dryrun)}}class Sr{constructor(e){this.options=e||Jt,this.options.renderer=this.options.renderer||new Or,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new jr,this.slugger=new $r}static parse(e,t){return new Sr(t).parse(e)}static parseInline(e,t){return new Sr(t).parseInline(e)}parse(e,t=!0){let r,n,o,i,s,a,l,c,p,u,d,h,m,f,y,g,b,x,v,w="";const k=e.length;for(r=0;r<k;r++)if(u=e[r],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[u.type]&&(v=this.options.extensions.renderers[u.type].call({parser:this},u),!1!==v||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(u.type)))w+=v||"";else switch(u.type){case"space":continue;case"hr":w+=this.renderer.hr();continue;case"heading":w+=this.renderer.heading(this.parseInline(u.tokens),u.depth,nr(this.parseInline(u.tokens,this.textRenderer)),this.slugger);continue;case"code":w+=this.renderer.code(u.text,u.lang,u.escaped);continue;case"table":for(c="",l="",i=u.header.length,n=0;n<i;n++)l+=this.renderer.tablecell(this.parseInline(u.header[n].tokens),{header:!0,align:u.align[n]});for(c+=this.renderer.tablerow(l),p="",i=u.rows.length,n=0;n<i;n++){for(a=u.rows[n],l="",s=a.length,o=0;o<s;o++)l+=this.renderer.tablecell(this.parseInline(a[o].tokens),{header:!1,align:u.align[o]});p+=this.renderer.tablerow(l)}w+=this.renderer.table(c,p);continue;case"blockquote":p=this.parse(u.tokens),w+=this.renderer.blockquote(p);continue;case"list":for(d=u.ordered,h=u.start,m=u.loose,i=u.items.length,p="",n=0;n<i;n++)y=u.items[n],g=y.checked,b=y.task,f="",y.task&&(x=this.renderer.checkbox(g),m?y.tokens.length>0&&"paragraph"===y.tokens[0].type?(y.tokens[0].text=x+" "+y.tokens[0].text,y.tokens[0].tokens&&y.tokens[0].tokens.length>0&&"text"===y.tokens[0].tokens[0].type&&(y.tokens[0].tokens[0].text=x+" "+y.tokens[0].tokens[0].text)):y.tokens.unshift({type:"text",text:x}):f+=x),f+=this.parse(y.tokens,m),p+=this.renderer.listitem(f,b,g);w+=this.renderer.list(p,d,h);continue;case"html":w+=this.renderer.html(u.text);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(u.tokens));continue;case"text":for(p=u.tokens?this.parseInline(u.tokens):u.text;r+1<k&&"text"===e[r+1].type;)u=e[++r],p+="\n"+(u.tokens?this.parseInline(u.tokens):u.text);w+=t?this.renderer.paragraph(p):p;continue;default:{const e='Token with "'+u.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return w}parseInline(e,t){t=t||this.renderer;let r,n,o,i="";const s=e.length;for(r=0;r<s;r++)if(n=e[r],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type]&&(o=this.options.extensions.renderers[n.type].call({parser:this},n),!1!==o||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type)))i+=o||"";else switch(n.type){case"escape":case"text":i+=t.text(n.text);break;case"html":i+=t.html(n.text);break;case"link":i+=t.link(n.href,n.title,this.parseInline(n.tokens,t));break;case"image":i+=t.image(n.href,n.title,n.text);break;case"strong":i+=t.strong(this.parseInline(n.tokens,t));break;case"em":i+=t.em(this.parseInline(n.tokens,t));break;case"codespan":i+=t.codespan(n.text);break;case"br":i+=t.br();break;case"del":i+=t.del(this.parseInline(n.tokens,t));break;default:{const e='Token with "'+n.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return i}}class Cr{constructor(e){this.options=e||Jt}static passThroughHooks=new Set(["preprocess","postprocess"]);preprocess(e){return e}postprocess(e){return e}}function Pr(e,t){return(r,n,o)=>{"function"==typeof n&&(o=n,n=null);const i={...n},s=function(e,t,r){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="<p>An error occurred:</p><pre>"+tr(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):r?void r(null,e):e}if(t)return Promise.reject(n);if(!r)throw n;r(n)}}((n={...Ir.defaults,...i}).silent,n.async,o);if(null==r)return s(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof r)return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(function(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}(n),n.hooks&&(n.hooks.options=n),o){const i=n.highlight;let a;try{n.hooks&&(r=n.hooks.preprocess(r)),a=e(r,n)}catch(e){return s(e)}const l=function(e){let r;if(!e)try{n.walkTokens&&Ir.walkTokens(a,n.walkTokens),r=t(a,n),n.hooks&&(r=n.hooks.postprocess(r))}catch(t){e=t}return n.highlight=i,e?s(e):o(null,r)};if(!i||i.length<3)return l();if(delete n.highlight,!a.length)return l();let c=0;return Ir.walkTokens(a,function(e){"code"===e.type&&(c++,setTimeout(()=>{i(e.text,e.lang,function(t,r){if(t)return l(t);null!=r&&r!==e.text&&(e.text=r,e.escaped=!0),c--,0===c&&l()})},0))}),void(0===c&&l())}if(n.async)return Promise.resolve(n.hooks?n.hooks.preprocess(r):r).then(t=>e(t,n)).then(e=>n.walkTokens?Promise.all(Ir.walkTokens(e,n.walkTokens)).then(()=>e):e).then(e=>t(e,n)).then(e=>n.hooks?n.hooks.postprocess(e):e).catch(s);try{n.hooks&&(r=n.hooks.preprocess(r));const o=e(r,n);n.walkTokens&&Ir.walkTokens(o,n.walkTokens);let i=t(o,n);return n.hooks&&(i=n.hooks.postprocess(i)),i}catch(e){return s(e)}}}function Ir(e,t,r){return Pr(Er.lex,Sr.parse)(e,t,r)}Ir.options=Ir.setOptions=function(e){var t;return Ir.defaults={...Ir.defaults,...e},t=Ir.defaults,Jt=t,Ir},Ir.getDefaults=function(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},Ir.defaults=Jt,Ir.use=function(...e){const t=Ir.defaults.extensions||{renderers:{},childTokens:{}};e.forEach(e=>{const r={...e};if(r.async=Ir.defaults.async||r.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const r=t.renderers[e.name];t.renderers[e.name]=r?function(...t){let n=e.renderer.apply(this,t);return!1===n&&(n=r.apply(this,t)),n}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");t[e.level]?t[e.level].unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),r.extensions=t),e.renderer){const t=Ir.defaults.renderer||new Or;for(const r in e.renderer){const n=t[r];t[r]=(...o)=>{let i=e.renderer[r].apply(t,o);return!1===i&&(i=n.apply(t,o)),i}}r.renderer=t}if(e.tokenizer){const t=Ir.defaults.tokenizer||new br;for(const r in e.tokenizer){const n=t[r];t[r]=(...o)=>{let i=e.tokenizer[r].apply(t,o);return!1===i&&(i=n.apply(t,o)),i}}r.tokenizer=t}if(e.hooks){const t=Ir.defaults.hooks||new Cr;for(const r in e.hooks){const n=t[r];Cr.passThroughHooks.has(r)?t[r]=o=>{if(Ir.defaults.async)return Promise.resolve(e.hooks[r].call(t,o)).then(e=>n.call(t,e));const i=e.hooks[r].call(t,o);return n.call(t,i)}:t[r]=(...o)=>{let i=e.hooks[r].apply(t,o);return!1===i&&(i=n.apply(t,o)),i}}r.hooks=t}if(e.walkTokens){const t=Ir.defaults.walkTokens;r.walkTokens=function(r){let n=[];return n.push(e.walkTokens.call(this,r)),t&&(n=n.concat(t.call(this,r))),n}}Ir.setOptions(r)})},Ir.walkTokens=function(e,t){let r=[];for(const n of e)switch(r=r.concat(t.call(Ir,n)),n.type){case"table":for(const e of n.header)r=r.concat(Ir.walkTokens(e.tokens,t));for(const e of n.rows)for(const n of e)r=r.concat(Ir.walkTokens(n.tokens,t));break;case"list":r=r.concat(Ir.walkTokens(n.items,t));break;default:Ir.defaults.extensions&&Ir.defaults.extensions.childTokens&&Ir.defaults.extensions.childTokens[n.type]?Ir.defaults.extensions.childTokens[n.type].forEach(function(e){r=r.concat(Ir.walkTokens(n[e],t))}):n.tokens&&(r=r.concat(Ir.walkTokens(n.tokens,t)))}return r},Ir.parseInline=Pr(Er.lexInline,Sr.parseInline),Ir.Parser=Sr,Ir.parser=Sr.parse,Ir.Renderer=Or,Ir.TextRenderer=jr,Ir.Lexer=Er,Ir.lexer=Er.lex,Ir.Tokenizer=br,Ir.Slugger=$r,Ir.Hooks=Cr,Ir.parse=Ir,Ir.options,Ir.setOptions,Ir.use,Ir.walkTokens,Ir.parseInline;var Ar=Object.defineProperty,Tr=Object.defineProperties,_r=Object.getOwnPropertyDescriptors,Rr=Object.getOwnPropertySymbols,Dr=Object.prototype.hasOwnProperty,Lr=Object.prototype.propertyIsEnumerable,zr=(e,t,r)=>t in e?Ar(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Nr=(e,t)=>{for(var r in t||(t={}))Dr.call(t,r)&&zr(e,r,t[r]);if(Rr)for(var r of Rr(t))Lr.call(t,r)&&zr(e,r,t[r]);return e},Mr=(e,t)=>Tr(e,_r(t));const qr=new Ir.Renderer;Ir.setOptions({renderer:qr,highlight:(e,t)=>jt(e,t)});const Fr="^ {0,3}\x3c!-- ReDoc-Inject:\\s+?<({component}).*?/?>\\s+?--\x3e\\s*$",Br="(?:^ {0,3}<({component})([\\s\\S]*?)>([\\s\\S]*?)</\\2>|^ {0,3}<({component})([\\s\\S]*?)(?:/>|\\n{2,}))",Qr="(?:"+Fr+"|"+Br+")";function Ur(e){return`\x3c!-- ReDoc-Inject: <${e}> --\x3e`}class Wr{constructor(e,t){this.options=e,this.parentId=t,this.headings=[],this.headingRule=(e,t,r,n)=>(1===t?this.currentTopHeading=this.saveHeading(e,t):2===t&&this.saveHeading(e,t,this.currentTopHeading&&this.currentTopHeading.items,this.currentTopHeading&&this.currentTopHeading.id),this.originalHeadingRule(e,t,r,n)),this.parentId=t,this.parser=new Ir.Parser,this.headingEnhanceRenderer=new Ir.Renderer,this.originalHeadingRule=this.headingEnhanceRenderer.heading.bind(this.headingEnhanceRenderer),this.headingEnhanceRenderer.heading=this.headingRule}static containsComponent(e,t){return new RegExp(Qr.replace(/{component}/g,t),"gmi").test(e)}static getTextBeforeHading(e,t){const r=e.search(new RegExp(`^##?\\s+${t}`,"m"));return r>-1?e.substring(0,r):e}saveHeading(e,t,r=this.headings,n){e=P(e);const o={id:n?`${n}/${w(e)}`:`${this.parentId||"section"}/${w(e)}`,name:e,level:t,items:[]};return r.push(o),o}flattenHeadings(e){if(void 0===e)return[];const t=[];for(const r of e)t.push(r),t.push(...this.flattenHeadings(r.items));return t}attachHeadingsDescriptions(e){const t=e=>new RegExp(`##?\\s+${e.name.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}s*(\n|\r\n|$|s*)`),r=this.flattenHeadings(this.headings);if(r.length<1)return;let n=r[0],o=t(n),i=e.search(o);for(let s=1;s<r.length;s++){const a=r[s],l=t(a),c=e.substr(i+1).search(l)+i+1;n.description=e.substring(i,c).replace(o,"").trim(),n=a,o=l,i=c}n.description=e.substring(i).replace(o,"").trim()}renderMd(e,t=!1){const r=t?{renderer:this.headingEnhanceRenderer}:void 0;return Ir(e.toString(),r)}extractHeadings(e){this.renderMd(e,!0),this.attachHeadingsDescriptions(e);const t=this.headings;return this.headings=[],t}renderMdWithComponents(e){const t=this.options&&this.options.allowedMdComponents;if(!t||0===Object.keys(t).length)return[this.renderMd(e)];const r=Object.keys(t).join("|"),n=new RegExp(Qr.replace(/{component}/g,r),"mig"),o=[],i=[];let s=n.exec(e),a=0;for(;s;){o.push(e.substring(a,s.index)),a=n.lastIndex;const r=t[s[1]||s[2]||s[5]],l=s[3]||s[6],c=s[4];r&&i.push({component:r.component,propsSelector:r.propsSelector,props:Mr(Nr(Nr({},Vr(l)),r.props),{children:c})}),s=n.exec(e)}o.push(e.substring(a));const l=[];for(let e=0;e<o.length;e++){const t=o[e];t&&l.push(this.renderMd(t)),i[e]&&l.push(i[e])}return l}}function Vr(e){if(!e)return{};const t=/([\w-]+)\s*=\s*(?:{([^}]+?)}|"([^"]+?)")/gim,r={};let n;for(;null!==(n=t.exec(e));)if(n[3])r[n[1]]=n[3];else if(n[2]){let e;try{e=JSON.parse(n[2])}catch(e){}r[n[1]]=e}return r}class Hr{constructor(e,t=new W({})){this.parser=e,this.options=t,Object.assign(this,e.spec.info),this.description=e.spec.info.description||"",this.summary=e.spec.info.summary||"";const r=this.description.search(/^\s*##?\s+/m);r>-1&&(this.description=this.description.substring(0,r)),this.downloadUrls=this.getDownloadUrls(),this.downloadFileName=this.getDownloadFileName()}getDownloadUrls(){return(this.options.downloadUrls?this.options.downloadUrls.map(({title:e,url:t})=>({title:e||_("download"),url:this.getDownloadLink(t)})):[{title:_("download"),url:this.getDownloadLink(this.options.downloadDefinitionUrl)}]).filter(({title:e,url:t})=>e&&t)}getDownloadLink(e){if(e)return e;if(this.parser.specUrl)return this.parser.specUrl;if(s&&window.Blob&&window.URL&&window.URL.createObjectURL){const e=new Blob([JSON.stringify(this.parser.spec,null,2)],{type:"application/json"});return window.URL.createObjectURL(e)}}getDownloadFileName(){return this.parser.specUrl||this.options.downloadDefinitionUrl?this.options.downloadFileName:this.options.downloadFileName||"openapi.json"}}var Jr=Object.defineProperty,Yr=Object.defineProperties,Gr=Object.getOwnPropertyDescriptors,Zr=Object.getOwnPropertySymbols,Xr=Object.prototype.hasOwnProperty,Kr=Object.prototype.propertyIsEnumerable,en=(e,t,r)=>t in e?Jr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;class tn{constructor(e,t){const r=t.spec.components&&t.spec.components.securitySchemes||{};this.schemes=Object.keys(e||{}).map(n=>{const{resolved:o}=t.deref(r[n]),i=e[n]||[];if(!o)return void console.warn(`Non existing security scheme referenced: ${n}. Skipping`);const s=o["x-displayName"]||n;return a=((e,t)=>{for(var r in t||(t={}))Xr.call(t,r)&&en(e,r,t[r]);if(Zr)for(var r of Zr(t))Kr.call(t,r)&&en(e,r,t[r]);return e})({},o),Yr(a,Gr({id:n,sectionId:n,displayName:s,scopes:i}));var a}).filter(e=>void 0!==e)}}var rn=Object.defineProperty,nn=Object.defineProperties,on=Object.getOwnPropertyDescriptor,sn=Object.getOwnPropertyDescriptors,an=Object.getOwnPropertySymbols,ln=Object.prototype.hasOwnProperty,cn=Object.prototype.propertyIsEnumerable,pn=(e,t,r)=>t in e?rn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,un=(e,t)=>{for(var r in t||(t={}))ln.call(t,r)&&pn(e,r,t[r]);if(an)for(var r of an(t))cn.call(t,r)&&pn(e,r,t[r]);return e},dn=(e,t)=>nn(e,sn(t)),hn=(e,t,r,n)=>{for(var o,i=n>1?void 0:n?on(t,r):t,s=e.length-1;s>=0;s--)(o=e[s])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&rn(t,r,i),i};class mn{constructor(e,t,r,n,o){this.expanded=!1,this.operations=[],(0,de.makeObservable)(this),this.name=t;const{resolved:i}=e.deref(r);for(const r of Object.keys(i)){const s=i[r],a=Object.keys(s).filter(Me);for(const i of a){const a=s[i],l=new xo(e,dn(un({},a),{pathName:r,pointer:Ee.compile([n,t,r,i]),httpVerb:i,pathParameters:s.parameters||[],pathServers:s.servers}),void 0,o,!0);this.operations.push(l)}}}toggle(){this.expanded=!this.expanded}}hn([de.observable],mn.prototype,"expanded",2),hn([de.action],mn.prototype,"toggle",1);var fn=Object.defineProperty,yn=Object.defineProperties,gn=Object.getOwnPropertyDescriptors,bn=Object.getOwnPropertySymbols,xn=Object.prototype.hasOwnProperty,vn=Object.prototype.propertyIsEnumerable,wn=(e,t,r)=>t in e?fn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,kn=(e,t)=>{for(var r in t||(t={}))xn.call(t,r)&&wn(e,r,t[r]);if(bn)for(var r of bn(t))vn.call(t,r)&&wn(e,r,t[r]);return e},En=(e,t)=>yn(e,gn(t)),On=(e,t)=>{var r={};for(var n in e)xn.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&bn)for(var n of bn(e))t.indexOf(n)<0&&vn.call(e,n)&&(r[n]=e[n]);return r};function jn(e,t){return t&&e[e.length-1]!==t?[...e,t]:e}function $n(e,t){return t?e.concat(t):e}class Sn{constructor(e,t,r=new W({})){this.options=r,this.allowMergeRefs=!1,this.byRef=e=>{let t;if(this.spec){"#"!==e.charAt(0)&&(e="#"+e),e=decodeURIComponent(e);try{t=Ee.get(this.spec,e)}catch(e){}return t||{}}},this.validate(e),this.spec=e,this.allowMergeRefs=e.openapi.startsWith("3.1");const n=s?window.location.href:"";"string"==typeof t&&(this.specUrl=n?new URL(t,n).href:t)}validate(e){if(void 0===e.openapi)throw new Error("Document must be valid OpenAPI 3.0.0 definition")}isRef(e){return!!e&&void 0!==e.$ref&&null!==e.$ref}deref(e,t=[],r=!1){const n=null==e?void 0:e["x-refsStack"];if(t=$n(t,n),this.isRef(e)){const n=rt(e.$ref);if(n&&this.options.ignoreNamedSchemas.has(n))return{resolved:{type:"object",title:n},refsStack:t};let o=this.byRef(e.$ref);if(!o)throw new Error(`Failed to resolve $ref "${e.$ref}"`);let i=t;if(t.includes(e.$ref)||t.length>999)o=Object.assign({},o,{"x-circular-ref":!0});else if(this.isRef(o)){const e=this.deref(o,t,r);i=e.refsStack,o=e.resolved}return i=jn(t,e.$ref),o=this.allowMergeRefs?this.mergeRefs(e,o,r):o,{resolved:o,refsStack:i}}return{resolved:e,refsStack:$n(t,n)}}mergeRefs(e,t,r){const n=e,{$ref:o}=n,i=On(n,["$ref"]),s=Object.keys(i);if(0===s.length)return t;if(r&&s.some(e=>!["description","title","externalDocs","x-refsStack","x-parentRefs","readOnly","writeOnly"].includes(e))){const e=i,{description:r,title:n,readOnly:o,writeOnly:s}=e;return{allOf:[{description:r,title:n,readOnly:o,writeOnly:s},t,On(e,["description","title","readOnly","writeOnly"])]}}return kn(kn({},t),i)}mergeAllOf(e,t,r){var n;if(e["x-circular-ref"])return e;if(void 0===(e=this.hoistOneOfs(e,r)).allOf)return e;let o=En(kn({},e),{"x-parentRefs":[],allOf:void 0,title:e.title||rt(t)});void 0!==o.properties&&"object"==typeof o.properties&&(o.properties=kn({},o.properties)),void 0!==o.items&&"object"==typeof o.items&&(o.items=kn({},o.items));const i=function(e){const t=new Set;return e.filter(e=>{const r=e.$ref;return!r||r&&!t.has(r)&&t.add(r)})}(e.allOf.map(e=>{var t;const{resolved:n,refsStack:i}=this.deref(e,r,!0),s=e.$ref||void 0,a=this.mergeAllOf(n,s,i);if(!a["x-circular-ref"]||!a.allOf)return s&&(null==(t=o["x-parentRefs"])||t.push(...a["x-parentRefs"]||[],s)),{$ref:s,refsStack:jn(i,s),schema:a}}).filter(e=>void 0!==e));for(const{schema:e,refsStack:r}of i){const i=e,{type:s,enum:a,properties:l,items:c,required:p,title:u,description:d,readOnly:h,writeOnly:m,oneOf:f,anyOf:y,"x-circular-ref":g}=i,b=On(i,["type","enum","properties","items","required","title","description","readOnly","writeOnly","oneOf","anyOf","x-circular-ref"]);if(o.type!==s&&void 0!==o.type&&void 0!==s&&console.warn(`Incompatible types in allOf at "${t}": "${o.type}" and "${s}"`),void 0!==s&&(Array.isArray(s)&&Array.isArray(o.type)?o.type=[...s,...o.type]:o.type=s),void 0!==a&&(Array.isArray(a)&&Array.isArray(o.enum)?o.enum=Array.from(new Set([...a,...o.enum])):o.enum=a),void 0!==l&&"object"==typeof l){o.properties=o.properties||{};for(const e in l){const i=$n(r,null==(n=l[e])?void 0:n["x-refsStack"]);if(o.properties[e]){if(!g){const r=this.mergeAllOf({allOf:[o.properties[e],En(kn({},l[e]),{"x-refsStack":i})],"x-refsStack":i},t+"/properties/"+e,i);o.properties[e]=r}}else o.properties[e]=En(kn({},l[e]),{"x-refsStack":i})}}if(void 0!==c&&!g){const n="boolean"==typeof o.items?{}:Object.assign({},o.items),i="boolean"==typeof e.items?{}:Object.assign({},e.items);o.items=this.mergeAllOf({allOf:[n,i]},t+"/items",r)}void 0!==f&&(o.oneOf=f),void 0!==y&&(o.anyOf=y),void 0!==p&&(o.required=[...o.required||[],...p]),o=kn(En(kn({},o),{title:o.title||u,description:o.description||d,readOnly:void 0!==o.readOnly?o.readOnly:h,writeOnly:void 0!==o.writeOnly?o.writeOnly:m,"x-circular-ref":o["x-circular-ref"]||g}),b)}return o}findDerived(e){const t={},r=this.spec.components&&this.spec.components.schemas||{};for(const n in r){const{resolved:o}=this.deref(r[n]);void 0!==o.allOf&&o.allOf.find(t=>void 0!==t.$ref&&e.indexOf(t.$ref)>-1)&&(t["#/components/schemas/"+n]=[o["x-discriminator-value"]||n])}return t}hoistOneOfs(e,t){if(void 0===e.allOf)return e;const r=e.allOf;for(let e=0;e<r.length;e++){const n=r[e],{oneOf:o}=n,i=On(n,["oneOf"]);if(o&&Array.isArray(o)){const n=r.slice(0,e),s=r.slice(e+1),a=Object.keys(i).length>0?[i]:[];return{oneOf:o.map(e=>({allOf:[...n,...a,e,...s],"x-refsStack":t}))}}}return e}}var Cn=Object.defineProperty,Pn=Object.defineProperties,In=Object.getOwnPropertyDescriptor,An=Object.getOwnPropertyDescriptors,Tn=Object.getOwnPropertySymbols,_n=Object.prototype.hasOwnProperty,Rn=Object.prototype.propertyIsEnumerable,Dn=(e,t,r)=>t in e?Cn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ln=(e,t)=>{for(var r in t||(t={}))_n.call(t,r)&&Dn(e,r,t[r]);if(Tn)for(var r of Tn(t))Rn.call(t,r)&&Dn(e,r,t[r]);return e},zn=(e,t)=>Pn(e,An(t)),Nn=(e,t,r,n)=>{for(var o,i=n>1?void 0:n?In(t,r):t,s=e.length-1;s>=0;s--)(o=e[s])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&Cn(t,r,i),i};const Mn=class e{constructor(e,t,r,n,o=!1,i=[]){this.options=n,this.refsStack=i,this.typePrefix="",this.isCircular=!1,this.activeOneOf=0,(0,de.makeObservable)(this),this.pointer=t.$ref||r||"";const{resolved:s,refsStack:a}=e.deref(t,i,!0);this.refsStack=jn(a,this.pointer),this.rawSchema=s,this.schema=e.mergeAllOf(this.rawSchema,this.pointer,this.refsStack),this.init(e,o),n.showExtensions&&(this.extensions=xt(this.schema,n.showExtensions))}activateOneOf(e){this.activeOneOf=e}hasType(e){return this.type===e||I(this.type)&&this.type.includes(e)}init(t,r){var n,o,i,s,a,l,c,p;const u=this.schema;if(this.isCircular=!!u["x-circular-ref"],this.title=u.title||tt(this.pointer)&&Ee.baseName(this.pointer)||"",this.description=u.description||"",this.type=u.type||Be(u),this.format=u.format,this.enum=u.enum||[],this["x-enumDescriptions"]=u["x-enumDescriptions"],this.example=u.example,this.examples=u.examples,this.deprecated=!!u.deprecated,this.pattern=u.pattern,this.externalDocs=u.externalDocs,this.constraints=it(u),this.displayFormat=this.format,this.isPrimitive=Qe(u,this.type),this.default=u.default,this.readOnly=!!u.readOnly,this.writeOnly=!!u.writeOnly,this.const=u.const||"",this.contentEncoding=u.contentEncoding,this.contentMediaType=u.contentMediaType,this.minItems=u.minItems,this.maxItems=u.maxItems,(u.nullable||u["x-nullable"])&&(I(this.type)&&!this.type.some(e=>null===e||"null"===e)?this.type=[...this.type,"null"]:I(this.type)||null===this.type&&"null"===this.type||(this.type=[this.type,"null"])),this.displayType=I(this.type)?this.type.map(e=>null===e?"null":e).join(" or "):this.type,!this.isCircular)if(u.if&&u.then||u.if&&u.else)this.initConditionalOperators(u,t);else if(r||void 0===Bn(u)){if(r&&I(u.oneOf)&&u.oneOf.find(e=>e.$ref===this.pointer)&&delete u.oneOf,void 0!==u.oneOf)return this.initOneOf(u.oneOf,t),this.oneOfType="One of",void(void 0!==u.anyOf&&console.warn(`oneOf and anyOf are not supported on the same level. Skipping anyOf at ${this.pointer}`));if(void 0!==u.anyOf)return this.initOneOf(u.anyOf,t),void(this.oneOfType="Any of");if(this.hasType("object"))this.fields=Fn(t,u,this.pointer,this.options,this.refsStack);else if(this.hasType("array")&&(I(u.items)||I(u.prefixItems)?this.fields=Fn(t,u,this.pointer,this.options,this.refsStack):u.items&&(this.items=new e(t,u.items,this.pointer+"/items",this.options,!1,this.refsStack)),this.displayType=u.prefixItems||I(u.items)?"items":vt((null==(n=this.items)?void 0:n.displayType)||this.displayType),this.displayFormat=(null==(o=this.items)?void 0:o.format)||"",this.typePrefix=(null==(i=this.items)?void 0:i.typePrefix)||""+_("arrayOf"),this.title=this.title||(null==(s=this.items)?void 0:s.title)||"",this.isPrimitive=void 0!==(null==(a=this.items)?void 0:a.isPrimitive)?null==(l=this.items)?void 0:l.isPrimitive:this.isPrimitive,void 0===this.example&&void 0!==(null==(c=this.items)?void 0:c.example)&&(this.example=[this.items.example]),(null==(p=this.items)?void 0:p.isPrimitive)&&(this.enum=this.items.enum,this["x-enumDescriptions"]=this.items["x-enumDescriptions"]),I(this.type))){const e=this.type.filter(e=>"array"!==e);e.length&&(this.displayType+=` or ${e.join(" or ")}`)}this.enum.length&&this.options.sortEnumValuesAlphabetically&&this.enum.sort()}else this.initDiscriminator(u,t)}initOneOf(t,r){if(this.oneOf=t.map((t,n)=>{const{resolved:o,refsStack:i}=r.deref(t,this.refsStack,!0),s=r.mergeAllOf(o,this.pointer+"/oneOf/"+n,i),a=tt(t.$ref)&&!s.title?Ee.baseName(t.$ref):`${s.title||""}${void 0!==s.const&&JSON.stringify(s.const)||""}`;return new e(r,zn(Ln({},s),{title:a,allOf:[zn(Ln({},this.schema),{oneOf:void 0,anyOf:void 0})],discriminator:o.allOf?void 0:s.discriminator}),t.$ref||this.pointer+"/oneOf/"+n,this.options,!1,i)}),this.options.simpleOneOfTypeLabel){const e=function(e){const t=new Set;return function e(r){for(const n of r.oneOf||[])n.oneOf?e(n):n.type&&t.add(n.type)}(e),Array.from(t.values())}(this);this.displayType=e.join(" or ")}else this.displayType=this.oneOf.map(e=>{let t=e.typePrefix+(e.title?`${e.title} (${e.displayType})`:e.displayType);return t.indexOf(" or ")>-1&&(t=`(${t})`),t}).join(" or ")}initDiscriminator(t,r){const n=Bn(t);this.discriminatorProp=n.propertyName;const o=r.findDerived([...this.schema["x-parentRefs"]||[],this.pointer]);if(t.oneOf)for(const e of t.oneOf){if(void 0===e.$ref)continue;const t=Ee.baseName(e.$ref);o[e.$ref]=t}const i=n.mapping||{};let s=n["x-explicitMappingOnly"]||!1;0===Object.keys(i).length&&(s=!1);const a={};for(const e in i){const t=i[e];I(a[t])?a[t].push(e):a[t]=[e]}const l=Ln(s?{}:Ln({},o),a);let c=[];for(const e of Object.keys(l)){const t=l[e];if(I(t))for(const r of t)c.push({$ref:e,name:r});else c.push({$ref:e,name:t})}const p=Object.keys(i);0!==p.length&&(c=c.sort((e,t)=>{const r=p.indexOf(e.name),n=p.indexOf(t.name);return r<0&&n<0?e.name.localeCompare(t.name):r<0?1:n<0?-1:r-n})),this.oneOf=c.map(({$ref:t,name:n})=>{const o=new e(r,{$ref:t},t,this.options,!0,this.refsStack.slice(0,-1));return o.title=n,o})}initConditionalOperators(t,r){const n=t,{if:o,else:i={},then:s={}}=n,a=((e,t)=>{var r={};for(var n in e)_n.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&Tn)for(var n of Tn(e))t.indexOf(n)<0&&Rn.call(e,n)&&(r[n]=e[n]);return r})(n,["if","else","then"]),l=[{allOf:[a,s,o],title:o&&o["x-displayName"]||(null==o?void 0:o.title)||"case 1"},{allOf:[a,i],title:i&&i["x-displayName"]||(null==i?void 0:i.title)||"case 2"}];this.oneOf=l.map((t,n)=>new e(r,Ln({},t),this.pointer+"/oneOf/"+n,this.options,!1,this.refsStack)),this.oneOfType="One of"}};Nn([de.observable],Mn.prototype,"activeOneOf",2),Nn([de.action],Mn.prototype,"activateOneOf",1);let qn=Mn;function Fn(e,t,r,n,o){const i=t.properties||t.prefixItems||t.items||{},s=t.patternProperties||{},a=t.additionalProperties||t.unevaluatedProperties,l=t.prefixItems?t.items:t.additionalItems,c=t.default;let p=Object.keys(i||[]).map(s=>{let a=i[s];a||(console.warn(`Field "${s}" is invalid, skipping.\n Field must be an object but got ${typeof a} at "${r}"`),a={});const l=void 0!==t.required&&t.required.indexOf(s)>-1;return new Yn(e,{name:t.properties?s:`[${s}]`,required:l,schema:zn(Ln({},a),{default:void 0===a.default&&c?c[s]:a.default})},r+"/properties/"+s,n,o)});return n.sortPropsAlphabetically&&(p=at(p,"name")),n.sortRequiredPropsFirst&&(p=st(p,n.sortPropsAlphabetically?void 0:t.required)),p.push(...Object.keys(s).map(t=>{let i=s[t];return i||(console.warn(`Field "${t}" is invalid, skipping.\n Field must be an object but got ${typeof i} at "${r}"`),i={}),new Yn(e,{name:t,required:!1,schema:i,kind:"patternProperties"},`${r}/patternProperties/${t}`,n,o)})),"object"!=typeof a&&!0!==a||p.push(new Yn(e,{name:("object"==typeof a&&a["x-additionalPropertiesName"]||"property name").concat("*"),required:!1,schema:!0===a?{}:a,kind:"additionalProperties"},r+"/additionalProperties",n,o)),p.push(...function({parser:e,schema:t=!1,fieldsCount:r,$ref:n,options:o,refsStack:i}){return A(t)?t?[new Yn(e,{name:`[${r}...]`,schema:{}},`${n}/additionalItems`,o,i)]:[]:I(t)?[...t.map((t,s)=>new Yn(e,{name:`[${r+s}]`,schema:t},`${n}/additionalItems`,o,i))]:x(t)?[new Yn(e,{name:`[${r}...]`,schema:t},`${n}/additionalItems`,o,i)]:[]}({parser:e,schema:l,fieldsCount:p.length,$ref:r,options:n,refsStack:o})),p}function Bn(e){return e.discriminator||e["x-discriminator"]}const Qn={};class Un{constructor(e,t,r,n){this.mime=r;const{resolved:o}=e.deref(t);this.value=o.value,this.summary=o.summary,this.description=o.description,o.externalValue&&(this.externalValueUrl=new URL(o.externalValue,e.specUrl).href),We(r)&&this.value&&"object"==typeof this.value&&(this.value=Ye(this.value,n))}getExternalValue(e){return this.externalValueUrl?(this.externalValueUrl in Qn||(Qn[this.externalValueUrl]=fetch(this.externalValueUrl).then(t=>t.text().then(r=>{if(!t.ok)return Promise.reject(new Error(r));if(!Ue(e))return r;try{return JSON.parse(r)}catch(e){return r}}))),Qn[this.externalValueUrl]):Promise.resolve(void 0)}}var Wn=Object.defineProperty,Vn=Object.getOwnPropertyDescriptor,Hn=(e,t,r,n)=>{for(var o,i=n>1?void 0:n?Vn(t,r):t,s=e.length-1;s>=0;s--)(o=e[s])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&Wn(t,r,i),i};const Jn={path:{style:"simple",explode:!1},query:{style:"form",explode:!0},header:{style:"simple",explode:!1},cookie:{style:"form",explode:!0}};class Yn{constructor(e,t,r,n,o){var i,s,a,l,c;this.expanded=void 0,(0,de.makeObservable)(this);const{resolved:p}=e.deref(t);this.kind=t.kind||"field",this.name=t.name||p.name,this.in=p.in,this.required=!!p.required;let u=p.schema,d="";if(!u&&p.in&&p.content&&(d=Object.keys(p.content)[0],u=p.content[d]&&p.content[d].schema),this.schema=new qn(e,u||{},r,n,!1,o),this.description=void 0===p.description?this.schema.description||"":p.description,this.example=p.example||this.schema.example,void 0!==p.examples||void 0!==this.schema.examples){const t=p.examples||this.schema.examples;this.examples=I(t)?t:h(t,(t,r)=>new Un(e,t,r,p.encoding))}d?this.serializationMime=d:p.style?this.style=p.style:this.in&&(this.style=null!=(s=null==(i=Jn[this.in])?void 0:i.style)?s:"form"),void 0===p.explode&&this.in?this.explode=null==(l=null==(a=Jn[this.in])?void 0:a.explode)||l:this.explode=!!p.explode,this.deprecated=void 0===p.deprecated?!!this.schema.deprecated:p.deprecated,n.showExtensions&&(this.extensions=xt(p,n.showExtensions)),this.const=(null==(c=this.schema)?void 0:c.const)||(null==p?void 0:p.const)||""}toggle(){this.expanded=!this.expanded}collapse(){this.expanded=!1}expand(){this.expanded=!0}}Hn([de.observable],Yn.prototype,"expanded",2),Hn([de.action],Yn.prototype,"toggle",1),Hn([de.action],Yn.prototype,"collapse",1),Hn([de.action],Yn.prototype,"expand",1);var Gn=require("openapi-sampler");class Zn{constructor(e,t,r,n,o){this.name=t,this.isRequestType=r,this.schema=n.schema&&new qn(e,n.schema,"",o),this.onlyRequiredInSamples=o.onlyRequiredInSamples,this.generatedSamplesMaxDepth=o.generatedSamplesMaxDepth,void 0!==n.examples?this.examples=h(n.examples,r=>new Un(e,r,t,n.encoding)):void 0!==n.example?this.examples={default:new Un(e,{value:e.deref(n.example).resolved},t,n.encoding)}:Ue(t)&&this.generateExample(e,n)}generateExample(e,t){const r={skipReadOnly:this.isRequestType,skipWriteOnly:!this.isRequestType,skipNonRequired:this.isRequestType&&this.onlyRequiredInSamples,maxSampleDepth:this.generatedSamplesMaxDepth};if(this.schema&&this.schema.oneOf){this.examples={};for(const n of this.schema.oneOf){const o=Gn.sample(n.rawSchema,r,e.spec);this.schema.discriminatorProp&&"object"==typeof o&&o&&(o[this.schema.discriminatorProp]=n.title),this.examples[n.title]=new Un(e,{value:o},this.name,t.encoding)}}else this.schema&&(this.examples={default:new Un(e,{value:Gn.sample(t.schema,r,e.spec)},this.name,t.encoding)})}}var Xn=Object.defineProperty,Kn=Object.getOwnPropertyDescriptor,eo=(e,t,r,n)=>{for(var o,i=n>1?void 0:n?Kn(t,r):t,s=e.length-1;s>=0;s--)(o=e[s])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&Xn(t,r,i),i};class to{constructor(e,t,r,n){this.isRequestType=r,this.activeMimeIdx=0,(0,de.makeObservable)(this),n.unstable_ignoreMimeParameters&&(t=ct(t)),this.mediaTypes=Object.keys(t).map(o=>{const i=t[o];return new Zn(e,o,r,i,n)})}activate(e){this.activeMimeIdx=e}get active(){return this.mediaTypes[this.activeMimeIdx]}get hasSample(){return this.mediaTypes.filter(e=>!!e.examples).length>0}}eo([de.observable],to.prototype,"activeMimeIdx",2),eo([de.action],to.prototype,"activate",1),eo([de.computed],to.prototype,"active",1);class ro{constructor({parser:e,infoOrRef:t,options:r,isEvent:n}){const o=!n,{resolved:i}=e.deref(t);this.description=i.description||"",this.required=i.required;const s=wt(i);void 0!==s&&(this.content=new to(e,s,o,r))}}var no=Object.defineProperty,oo=Object.defineProperties,io=Object.getOwnPropertyDescriptor,so=Object.getOwnPropertyDescriptors,ao=Object.getOwnPropertySymbols,lo=Object.prototype.hasOwnProperty,co=Object.prototype.propertyIsEnumerable,po=(e,t,r)=>t in e?no(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,uo=(e,t,r,n)=>{for(var o,i=n>1?void 0:n?io(t,r):t,s=e.length-1;s>=0;s--)(o=e[s])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&no(t,r,i),i};class ho{constructor({parser:e,code:t,defaultAsError:r,infoOrRef:n,options:o,isEvent:i}){this.expanded=!1,this.headers=[],(0,de.makeObservable)(this),this.expanded="all"===o.expandResponses||o.expandResponses[t];const{resolved:s}=e.deref(n);this.code=t,void 0!==s.content&&(this.content=new to(e,s.content,i,o)),void 0!==s["x-summary"]?(this.summary=s["x-summary"],this.description=s.description||""):(this.summary=s.description||"",this.description=""),this.type=ze(t,r);const a=s.headers;void 0!==a&&(this.headers=Object.keys(a).map(t=>{const r=a[t];return new Yn(e,(n=((e,t)=>{for(var r in t||(t={}))lo.call(t,r)&&po(e,r,t[r]);if(ao)for(var r of ao(t))co.call(t,r)&&po(e,r,t[r]);return e})({},r),oo(n,so({name:t}))),"",o);var n})),o.showExtensions&&(this.extensions=xt(s,o.showExtensions))}toggle(){this.expanded=!this.expanded}}uo([de.observable],ho.prototype,"expanded",2),uo([de.action],ho.prototype,"toggle",1);var mo=Object.defineProperty,fo=Object.getOwnPropertyDescriptor,yo=(e,t,r,n)=>{for(var o,i=n>1?void 0:n?fo(t,r):t,s=e.length-1;s>=0;s--)(o=e[s])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&mo(t,r,i),i};function go(e){return"payload"===e.lang&&e.requestBodyContent}let bo=!1;class xo{constructor(e,t,r,n,o=!1){var i;this.parser=e,this.operationSpec=t,this.options=n,this.type="operation",this.items=[],this.ready=!0,this.active=!1,this.expanded=!1,(0,de.makeObservable)(this),this.pointer=t.pointer,this.description=t.description,this.parent=r,this.externalDocs=t.externalDocs,this.deprecated=!!t.deprecated,this.httpVerb=t.httpVerb,this.deprecated=!!t.deprecated,this.operationId=t.operationId,this.path=t.pathName,this.isCallback=o,this.isWebhook=t.isWebhook,this.isEvent=this.isCallback||this.isWebhook,this.name=qe(t),this.sidebarLabel=n.sideNavStyle===R.IdOnly?this.operationId||this.path:n.sideNavStyle===R.PathOnly?this.path:this.name,this.badges=(null==(i=t["x-badges"])?void 0:i.map(({name:e,color:t,position:r})=>({name:e,color:t,position:r||"after"})))||[],this.isCallback?(this.security=(t.security||[]).map(t=>new tn(t,e)),this.servers=ut("",t.servers||t.pathServers||[])):(this.operationHash=t.operationId&&"operation/"+t.operationId,this.id=void 0!==t.operationId?(r?r.id+"/":"")+this.operationHash:void 0!==r?r.id+this.pointer:this.pointer,this.security=(t.security||e.spec.security||[]).map(t=>new tn(t,e)),this.servers=ut(e.specUrl,t.servers||t.pathServers||e.spec.servers||[])),n.showExtensions&&(this.extensions=xt(t,n.showExtensions))}activate(){this.active=!0}deactivate(){this.active=!1}toggle(){this.expanded=!this.expanded}expand(){this.parent&&this.parent.expand()}collapse(){}get requestBody(){return this.operationSpec.requestBody&&new ro({parser:this.parser,infoOrRef:this.operationSpec.requestBody,options:this.options,isEvent:this.isEvent})}get codeSamples(){const{payloadSampleIdx:e,hideRequestPayloadSample:t}=this.options;let r=this.operationSpec["x-codeSamples"]||this.operationSpec["x-code-samples"]||[];this.operationSpec["x-code-samples"]&&!bo&&(bo=!0,console.warn('"x-code-samples" is deprecated. Use "x-codeSamples" instead'));const n=this.requestBody&&this.requestBody.content;if(n&&n.hasSample&&!t){const t=Math.min(r.length,e);r=[...r.slice(0,t),{lang:"payload",label:"Payload",source:"",requestBodyContent:n},...r.slice(t)]}return r}get parameters(){const e=lt(this.parser,this.operationSpec.pathParameters,this.operationSpec.parameters).map(e=>new Yn(this.parser,e,this.pointer,this.options));return this.options.sortPropsAlphabetically?at(e,"name"):this.options.sortRequiredPropsFirst?st(e):e}get responses(){let e=!1;return Object.keys(this.operationSpec.responses||[]).filter(t=>"default"===t||("success"===ze(t)&&(e=!0),Le(t))).map(t=>new ho({parser:this.parser,code:t,defaultAsError:e,infoOrRef:this.operationSpec.responses[t],options:this.options,isEvent:this.isEvent}))}get callbacks(){return Object.keys(this.operationSpec.callbacks||[]).map(e=>new mn(this.parser,e,this.operationSpec.callbacks[e],this.pointer,this.options))}}yo([de.observable],xo.prototype,"ready",2),yo([de.observable],xo.prototype,"active",2),yo([de.observable],xo.prototype,"expanded",2),yo([de.action],xo.prototype,"activate",1),yo([de.action],xo.prototype,"deactivate",1),yo([de.action],xo.prototype,"toggle",1),yo([Mt],xo.prototype,"requestBody",1),yo([Mt],xo.prototype,"codeSamples",1),yo([Mt],xo.prototype,"parameters",1),yo([Mt],xo.prototype,"responses",1),yo([Mt],xo.prototype,"callbacks",1);var vo=Object.defineProperty,wo=Object.defineProperties,ko=Object.getOwnPropertyDescriptors,Eo=Object.getOwnPropertySymbols,Oo=Object.prototype.hasOwnProperty,jo=Object.prototype.propertyIsEnumerable,$o=(e,t,r)=>t in e?vo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,So=(e,t)=>{for(var r in t||(t={}))Oo.call(t,r)&&$o(e,r,t[r]);if(Eo)for(var r of Eo(t))jo.call(t,r)&&$o(e,r,t[r]);return e},Co=(e,t)=>wo(e,ko(t));class Po{constructor(e,t,r){this.operations=[];const{resolved:n}=e.deref(r||{});this.initWebhooks(e,n,t)}initWebhooks(e,t,r){for(const n of Object.keys(t)){const o=t[n],i=Object.keys(o).filter(Me);for(const t of i){const n=o[t];if(o.$ref){const n=e.deref(o||{});this.initWebhooks(e,{[t]:n},r)}if(!n)continue;const i=new xo(e,Co(So({},n),{httpVerb:t}),void 0,r,!1);this.operations.push(i)}}}}class Io{constructor(e,t,r){const{resolved:n}=e.deref(r);this.id=t,this.sectionId=ft+t,this.type=n.type,this.displayName=n["x-displayName"]||t,this.description=n.description||"","apiKey"===n.type&&(this.apiKey={name:n.name,in:n.in}),"http"===n.type&&(this.http={scheme:n.scheme,bearerFormat:n.bearerFormat}),"openIdConnect"===n.type&&(this.openId={connectUrl:n.openIdConnectUrl}),"oauth2"===n.type&&n.flows&&(this.flows=n.flows)}}class Ao{constructor(e){const t=e.spec.components&&e.spec.components.securitySchemes||{};this.schemes=Object.keys(t).map(r=>new Io(e,r,t[r]))}}var To=Object.defineProperty,_o=Object.getOwnPropertySymbols,Ro=Object.prototype.hasOwnProperty,Do=Object.prototype.propertyIsEnumerable,Lo=(e,t,r)=>t in e?To(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zo=(e,t)=>{for(var r in t||(t={}))Ro.call(t,r)&&Lo(e,r,t[r]);if(_o)for(var r of _o(t))Do.call(t,r)&&Lo(e,r,t[r]);return e};class No{constructor(e,t,r){var n,o,i;this.options=r,this.parser=new Sn(e,t,r),this.info=new Hr(this.parser,this.options),this.externalDocs=this.parser.spec.externalDocs,this.contentItems=Ko.buildStructure(this.parser,this.options),this.securitySchemes=new Ao(this.parser);const s=zo(zo({},null==(o=null==(n=this.parser)?void 0:n.spec)?void 0:o["x-webhooks"]),null==(i=this.parser)?void 0:i.spec.webhooks);this.webhooks=new Po(this.parser,r,s)}}var Mo=Object.defineProperty,qo=Object.getOwnPropertyDescriptor,Fo=(e,t,r,n)=>{for(var o,i=n>1?void 0:n?qo(t,r):t,s=e.length-1;s>=0;s--)(o=e[s])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&Mo(t,r,i),i};class Bo{constructor(e,t,r){this.items=[],this.active=!1,this.expanded=!1,(0,de.makeObservable)(this),this.id=t.id||e+"/"+w(t.name),this.type=e,this.name=t["x-displayName"]||t.name,this.level=t.level||1,this.sidebarLabel=this.name,this.description=t.description||"";const n=t.items;n&&n.length&&(this.description=Wr.getTextBeforeHading(this.description,n[0].name)),this.parent=r,this.externalDocs=t.externalDocs,"group"===this.type&&(this.expanded=!0)}activate(){this.active=!0}expand(){this.parent&&this.parent.expand(),this.expanded=!0}collapse(){"group"!==this.type&&(this.expanded=!1)}deactivate(){this.active=!1}}Fo([de.observable],Bo.prototype,"active",2),Fo([de.observable],Bo.prototype,"expanded",2),Fo([de.action],Bo.prototype,"activate",1),Fo([de.action],Bo.prototype,"expand",1),Fo([de.action],Bo.prototype,"collapse",1),Fo([de.action],Bo.prototype,"deactivate",1);var Qo=Object.defineProperty,Uo=Object.defineProperties,Wo=Object.getOwnPropertyDescriptors,Vo=Object.getOwnPropertySymbols,Ho=Object.prototype.hasOwnProperty,Jo=Object.prototype.propertyIsEnumerable,Yo=(e,t,r)=>t in e?Qo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Go=(e,t)=>{for(var r in t||(t={}))Ho.call(t,r)&&Yo(e,r,t[r]);if(Vo)for(var r of Vo(t))Jo.call(t,r)&&Yo(e,r,t[r]);return e},Zo=(e,t)=>Uo(e,Wo(t));const Xo=0;class Ko{static buildStructure(e,t){const r=e.spec,{schemaDefinitionsTagName:n}=t,o=[],i=[...r.tags||[]];!i.find(e=>(null==e?void 0:e.name)===n)&&n&&i.push({name:n});const s=Ko.getTagsWithOperations(e,i);return o.push(...Ko.addMarkdownItems(r.info.description||"",void 0,1,t)),r["x-tagGroups"]&&r["x-tagGroups"].length>0?o.push(...Ko.getTagGroupsItems(e,void 0,r["x-tagGroups"],s,t)):o.push(...Ko.getTagsItems(e,s,void 0,void 0,t)),o}static addMarkdownItems(e,t,r,n){const o=new Wr(n,null==t?void 0:t.id).extractHeadings(e||"");o.length&&t&&t.description&&(t.description=Wr.getTextBeforeHading(t.description,o[0].name));const i=(e,t,r=1)=>t.map(t=>{const n=new Bo("section",t,e);return n.depth=r,t.items&&(n.items=i(n,t.items,r+1)),n});return i(t,o,r)}static getTagGroupsItems(e,t,r,n,o){const i=[];for(const s of r){const r=new Bo("group",s,t);r.depth=Xo,r.items=Ko.getTagsItems(e,n,r,s,o),i.push(r)}return i}static getTagsItems(e,t,r,n,o){let i;i=void 0===n?Object.keys(t):n.tags;const s=i.map(e=>t[e]?(t[e].used=!0,t[e]):(console.warn(`Non-existing tag "${e}" is added to the group "${n.name}"`),null)),a=[];for(const t of s){if(!t)continue;const n=new Bo("tag",t,r);if(n.depth=Xo+1,""===t.name){const r=[...Ko.addMarkdownItems(t.description||"",n,n.depth+1,o),...this.getOperationsItems(e,void 0,t,n.depth+1,o)];a.push(...r);continue}const i=this.getTagRelatedSchema({parser:e,tag:t,parent:n,schemaDefinitionsTagName:o.schemaDefinitionsTagName});n.items=[...i,...Ko.addMarkdownItems(t.description||"",n,n.depth+1,o),...this.getOperationsItems(e,n,t,n.depth+1,o)],a.push(n)}return o.sortTagsAlphabetically&&a.sort(qt("name")),a}static getOperationsItems(e,t,r,n,o){if(0===r.operations.length)return[];const i=[];for(const s of r.operations){const r=new xo(e,s,t,o);r.depth=n,i.push(r)}return o.sortOperationsAlphabetically&&i.sort(qt("name")),i}static getTagsWithOperations(e,t){const{spec:r}=e,n={},o=r["x-webhooks"]||r.webhooks;for(const e of t||[])n[e.name]=Zo(Go({},e),{operations:[]});function i(e,t,r){for(const o of Object.keys(t)){const s=t[o],a=Object.keys(s).filter(Me);for(const t of a){const a=s[t];if(s.$ref){const{resolved:t}=e.deref(s);i(e,{[o]:t},r);continue}let l=null==a?void 0:a.tags;l&&l.length||(l=[""]);for(const e of l){let i=n[e];void 0===i&&(i={name:e,operations:[]},n[e]=i),i["x-traitTag"]||i.operations.push(Zo(Go({},a),{pathName:o,pointer:Ee.compile(["paths",o,t]),httpVerb:t,pathParameters:s.parameters||[],pathServers:s.servers,isWebhook:!!r}))}}}}return o&&i(e,o,!0),r.paths&&i(e,r.paths),n}static getTagRelatedSchema({parser:e,tag:t,parent:r,schemaDefinitionsTagName:n}){var o;const i=n?[n]:[];return Object.entries((null==(o=e.spec.components)?void 0:o.schemas)||{}).map(([e,n])=>{const o=n["x-tags"]||i;if(!(null==o?void 0:o.includes(t.name)))return null;const s=new Bo("schema",{name:e,"x-displayName":`${n.title||e}`,description:`<SchemaDefinition showWriteOnly={true} schemaRef="#/components/schemas/${e}" />`},r);return s.depth=r.depth+1,s}).filter(Boolean)}}var ei=Object.defineProperty,ti=Object.getOwnPropertyDescriptor,ri=(e,t,r,n)=>{for(var o,i=n>1?void 0:n?ti(t,r):t,s=e.length-1;s>=0;s--)(o=e[s])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&ei(t,r,i),i};const ni="data-section-id";class oi{constructor(e,t,r){this.scroll=t,this.history=r,this.activeItemIdx=-1,this.sideBarOpened=!1,this.updateOnScroll=e=>{const t=e?1:-1;let r=this.activeItemIdx;for(;(-1!==r||e)&&!(r>=this.flatItems.length-1&&e);){if(e){const e=this.getElementAtOrFirstChild(r+1);if(this.scroll.isElementBellow(e))break}else{const e=this.getElementAt(r);if(this.scroll.isElementAbove(e))break}r+=t}this.activate(this.flatItems[r],!0,!0)},this.updateOnHistory=(e=this.history.currentId)=>{if(!e)return;let t;t=this.flatItems.find(t=>t.id===e),t?this.activateAndScroll(t,!1):(e.startsWith(ft)&&(t=this.flatItems.find(e=>ft.startsWith(e.id)),this.activateAndScroll(t,!1)),this.scroll.scrollIntoViewBySelector(`[${ni}="${C(e)}"]`))},this.getItemById=e=>this.flatItems.find(t=>t.id===e),(0,de.makeObservable)(this),this.items=e.contentItems,this.flatItems=m(this.items||[],"items"),this.flatItems.forEach((e,t)=>e.absoluteIdx=t),this.subscribe()}static updateOnHistory(e=Wt.currentId,t){e&&t.scrollIntoViewBySelector(`[${ni}="${C(e)}"]`)}subscribe(){this._unsubscribe=this.scroll.subscribe(this.updateOnScroll),this._hashUnsubscribe=this.history.subscribe(this.updateOnHistory)}toggleSidebar(){this.sideBarOpened=!this.sideBarOpened}closeSidebar(){this.sideBarOpened=!1}getElementAt(e){const t=this.flatItems[e];return t&&a(`[${ni}="${C(t.id)}"]`)||null}getElementAtOrFirstChild(e){let t=this.flatItems[e];return t&&"group"===t.type&&(t=t.items[0]),t&&a(`[${ni}="${C(t.id)}"]`)||null}get activeItem(){return this.flatItems[this.activeItemIdx]||void 0}activate(e,t=!0,r=!1){if((this.activeItem&&this.activeItem.id)!==(e&&e.id)&&(!e||"group"!==e.type)){if(this.deactivate(this.activeItem),!e)return this.activeItemIdx=-1,void this.history.replace("",r);e.depth<=Xo||(this.activeItemIdx=e.absoluteIdx,t&&this.history.replace(encodeURI(e.id),r),e.activate(),e.expand())}}deactivate(e){if(void 0!==e)for(e.deactivate();void 0!==e;)e.collapse(),e=e.parent}activateAndScroll(e,t,r){const n=e&&this.getItemById(e.id)||e;this.activate(n,t,r),this.scrollToActive(),n&&n.items.length||this.closeSidebar()}scrollToActive(){this.scroll.scrollIntoView(this.getElementAt(this.activeItemIdx))}dispose(){this._unsubscribe(),this._hashUnsubscribe()}}ri([de.observable],oi.prototype,"activeItemIdx",2),ri([de.observable],oi.prototype,"sideBarOpened",2),ri([de.action],oi.prototype,"toggleSidebar",1),ri([de.action],oi.prototype,"closeSidebar",1),ri([de.action],oi.prototype,"activate",1),ri([de.action.bound],oi.prototype,"activateAndScroll",1);var ii=Object.defineProperty,si=Object.getOwnPropertyDescriptor;const ai="scroll";class li{constructor(e){this.options=e,this._prevOffsetY=0,this._scrollParent=s?window:void 0,this._emiter=new ve.EventEmitter,this.bind()}bind(){this._prevOffsetY=this.scrollY(),this._scrollParent&&this._scrollParent.addEventListener("scroll",this.handleScroll)}dispose(){this._scrollParent&&this._scrollParent.removeEventListener("scroll",this.handleScroll),this._emiter.removeAllListeners(ai)}scrollY(){return"undefined"!=typeof HTMLElement&&this._scrollParent instanceof HTMLElement?this._scrollParent.scrollTop:void 0!==this._scrollParent?this._scrollParent.pageYOffset:0}isElementBellow(e){if(null!==e)return e.getBoundingClientRect().top>this.options.scrollYOffset()}isElementAbove(e){if(null===e)return;const t=e.getBoundingClientRect().top;return(t>0?Math.floor(t):Math.ceil(t))<=this.options.scrollYOffset()}subscribe(e){const t=this._emiter.addListener(ai,e);return()=>t.removeListener(ai,e)}scrollIntoView(e){null!==e&&(e.scrollIntoView(),this._scrollParent&&this._scrollParent.scrollBy&&this._scrollParent.scrollBy(0,1-this.options.scrollYOffset()))}scrollIntoViewBySelector(e){const t=a(e);this.scrollIntoView(t)}handleScroll(){const e=this.scrollY()-this._prevOffsetY>0;this._prevOffsetY=this.scrollY(),this._emiter.emit(ai,e)}}((e,t,r)=>{for(var n,o=si(t,r),i=e.length-1;i>=0;i--)(n=e[i])&&(o=n(t,r,o)||o);o&&ii(t,r,o)})([xe.bind,$t(100)],li.prototype,"handleScroll");class ci{constructor(){this.searchWorker=function(){let e;if(s)try{e=r(303)}catch(t){e=r(353).Ay}else e=r(353).Ay;return new e}()}indexItems(e){const t=e=>{e.forEach(e=>{"group"!==e.type&&this.add(e.name,(e.description||"").concat(" ",e.path||""),e.id),t(e.items)})};t(e),this.searchWorker.done()}add(e,t,r){this.searchWorker.add(e,t,r)}dispose(){this.searchWorker.terminate(),this.searchWorker.dispose()}search(e){return this.searchWorker.search(e)}toJS(){return e=this,t=function*(){return this.searchWorker.toJS()},new Promise((r,n)=>{var o=e=>{try{s(t.next(e))}catch(e){n(e)}},i=e=>{try{s(t.throw(e))}catch(e){n(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,i);s((t=t.apply(e,null)).next())});var e,t}load(e){this.searchWorker.load(e)}fromExternalJS(e,t){e&&t&&this.searchWorker.fromExternalJS(e,t)}}const pi=ee.div`
|
|
42
42
|
width: calc(100% - ${e=>e.theme.rightPanel.width});
|
|
43
43
|
padding: 0 ${e=>e.theme.spacing.sectionHorizontal}px;
|
|
44
44
|
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
width: 100%;
|
|
47
47
|
padding: ${`${e?0:t.spacing.sectionVertical}px ${t.spacing.sectionHorizontal}px`};
|
|
48
48
|
`};
|
|
49
|
-
`,
|
|
49
|
+
`,ui=ee.div.attrs(e=>({[ni]:e.id}))`
|
|
50
50
|
padding: ${e=>e.theme.spacing.sectionVertical}px 0;
|
|
51
51
|
|
|
52
52
|
&:last-child {
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
padding: 0;
|
|
62
62
|
`}
|
|
63
63
|
${({$underlined:e})=>e?"\n position: relative;\n\n &:not(:last-of-type):after {\n position: absolute;\n bottom: 0;\n width: 100%;\n display: block;\n content: '';\n border-bottom: 1px solid rgba(0, 0, 0, 0.2);\n }\n ":""}
|
|
64
|
-
`,
|
|
64
|
+
`,di=ee.div`
|
|
65
65
|
width: ${e=>e.theme.rightPanel.width};
|
|
66
66
|
color: ${({theme:e})=>e.rightPanel.textColor};
|
|
67
67
|
background-color: ${e=>e.theme.rightPanel.backgroundColor};
|
|
@@ -71,9 +71,9 @@
|
|
|
71
71
|
width: 100%;
|
|
72
72
|
padding: ${e=>`${e.theme.spacing.sectionVertical}px ${e.theme.spacing.sectionHorizontal}px`};
|
|
73
73
|
`};
|
|
74
|
-
`,
|
|
74
|
+
`,hi=ee(di)`
|
|
75
75
|
background-color: ${e=>e.theme.rightPanel.backgroundColor};
|
|
76
|
-
`,
|
|
76
|
+
`,mi=ee.div`
|
|
77
77
|
display: flex;
|
|
78
78
|
width: 100%;
|
|
79
79
|
padding: 0;
|
|
@@ -81,42 +81,42 @@
|
|
|
81
81
|
${K.lessThan("medium",!0)`
|
|
82
82
|
flex-direction: column;
|
|
83
83
|
`};
|
|
84
|
-
`,
|
|
84
|
+
`,fi={1:"1.85714em",2:"1.57143em",3:"1.27em"},yi=e=>Y`
|
|
85
85
|
font-family: ${({theme:e})=>e.typography.headings.fontFamily};
|
|
86
86
|
font-weight: ${({theme:e})=>e.typography.headings.fontWeight};
|
|
87
|
-
font-size: ${
|
|
87
|
+
font-size: ${fi[e]};
|
|
88
88
|
line-height: ${({theme:e})=>e.typography.headings.lineHeight};
|
|
89
|
-
`,
|
|
90
|
-
${
|
|
89
|
+
`,gi=ee.h1`
|
|
90
|
+
${yi(1)};
|
|
91
91
|
color: ${({theme:e})=>e.colors.text.primary};
|
|
92
92
|
|
|
93
93
|
${te("H1")};
|
|
94
|
-
`,
|
|
95
|
-
${
|
|
94
|
+
`,bi=ee.h2`
|
|
95
|
+
${yi(2)};
|
|
96
96
|
color: ${({theme:e})=>e.colors.text.primary};
|
|
97
97
|
margin: 0 0 20px;
|
|
98
98
|
|
|
99
99
|
${te("H2")};
|
|
100
|
-
`,
|
|
101
|
-
${
|
|
100
|
+
`,xi=ee.h2`
|
|
101
|
+
${yi(3)};
|
|
102
102
|
color: ${({theme:e})=>e.colors.text.primary};
|
|
103
103
|
|
|
104
104
|
${te("H3")};
|
|
105
|
-
`,
|
|
105
|
+
`,vi=ee.h3`
|
|
106
106
|
color: ${({theme:e})=>e.rightPanel.textColor};
|
|
107
107
|
|
|
108
108
|
${te("RightPanelHeader")};
|
|
109
|
-
`,
|
|
109
|
+
`,wi=ee.h5`
|
|
110
110
|
border-bottom: 1px solid rgba(38, 50, 56, 0.3);
|
|
111
111
|
margin: 1em 0 1em 0;
|
|
112
|
-
color: rgba(38, 50, 56, 0.
|
|
112
|
+
color: rgba(38, 50, 56, 0.7);
|
|
113
113
|
font-weight: normal;
|
|
114
114
|
text-transform: uppercase;
|
|
115
115
|
font-size: 0.929em;
|
|
116
116
|
line-height: 20px;
|
|
117
117
|
|
|
118
118
|
${te("UnderlinedHeader")};
|
|
119
|
-
`;var
|
|
119
|
+
`;var ki=(e,t,r)=>new Promise((n,o)=>{var i=e=>{try{a(r.next(e))}catch(e){o(e)}},s=e=>{try{a(r.throw(e))}catch(e){o(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(i,s);a((r=r.apply(e,t)).next())});const Ei=(0,e.createContext)(void 0),{Provider:Oi,Consumer:ji}=Ei;function $i(t){const{spec:r,specUrl:n,options:o,onLoaded:i,children:s}=t,[a,l]=e.useState(null),[c,p]=e.useState(null);if(c)throw c;e.useEffect(()=>{!function(){ki(this,null,function*(){if(r||n){l(null);try{const e=yield ge(r||n);l(e)}catch(e){throw i&&i(e),p(e),e}}})}()},[r,n]);const u=e.useMemo(()=>{if(!a)return null;try{return new yc(a,n,o)}catch(e){throw i&&i(e),e}},[a,n,o]);return e.useEffect(()=>{u&&i&&i()},[u,i]),s({loading:!u,store:u})}function Si(){return(0,e.useContext)(Ei)}const Ci=e=>Y`
|
|
120
120
|
${e} {
|
|
121
121
|
cursor: pointer;
|
|
122
122
|
margin-left: -20px;
|
|
@@ -141,21 +141,21 @@
|
|
|
141
141
|
h1:hover > ${e}::before, h2:hover > ${e}::before, ${e}:hover::before {
|
|
142
142
|
visibility: visible;
|
|
143
143
|
}
|
|
144
|
-
|
|
145
|
-
${
|
|
146
|
-
`;function
|
|
144
|
+
`,Pi=ee(function(t){const r=e.useContext(Ei),n=e.useCallback(e=>{r&&function(e,t,r){t.defaultPrevented||0!==t.button||(e=>!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey))(t)||(t.preventDefault(),e.replace(encodeURI(r)))}(r.menu.history,e,t.to)},[r,t.to]);return r?e.createElement("a",{className:t.className,href:r.menu.history.linkForId(t.to),onClick:n,"aria-label":t.to},t.children):null})`
|
|
145
|
+
${Ci("&")};
|
|
146
|
+
`;function Ii(t){return e.createElement(Pi,{to:t.to})}const Ai={left:"90deg",right:"-90deg",up:"-180deg",down:"0"},Ti=ee(t=>e.createElement("svg",{className:t.className,style:t.style,version:"1.1",viewBox:"0 0 24 24",x:"0",xmlns:"http://www.w3.org/2000/svg",y:"0","aria-hidden":"true"},e.createElement("polygon",{points:"17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "})))`
|
|
147
147
|
height: ${e=>e.size||"18px"};
|
|
148
148
|
width: ${e=>e.size||"18px"};
|
|
149
149
|
min-width: ${e=>e.size||"18px"};
|
|
150
150
|
vertical-align: middle;
|
|
151
151
|
float: ${e=>e.float||""};
|
|
152
152
|
transition: transform 0.2s ease-out;
|
|
153
|
-
transform: rotateZ(${e=>
|
|
153
|
+
transform: rotateZ(${e=>Ai[e.direction||"down"]});
|
|
154
154
|
|
|
155
155
|
polygon {
|
|
156
156
|
fill: ${({color:e,theme:t})=>e&&t.colors.responses[e]&&t.colors.responses[e].color||e};
|
|
157
157
|
}
|
|
158
|
-
`,
|
|
158
|
+
`,_i=ee.span`
|
|
159
159
|
display: inline-block;
|
|
160
160
|
padding: 2px 8px;
|
|
161
161
|
margin: 0;
|
|
@@ -170,15 +170,15 @@
|
|
|
170
170
|
+ span[type] {
|
|
171
171
|
margin-left: 4px;
|
|
172
172
|
}
|
|
173
|
-
`,
|
|
173
|
+
`,Ri=Y`
|
|
174
174
|
text-decoration: line-through;
|
|
175
175
|
color: #707070;
|
|
176
|
-
`,
|
|
176
|
+
`,Di=ee.caption`
|
|
177
177
|
text-align: right;
|
|
178
178
|
font-size: 0.9em;
|
|
179
179
|
font-weight: normal;
|
|
180
180
|
color: ${e=>e.theme.colors.text.secondary};
|
|
181
|
-
`,
|
|
181
|
+
`,Li=ee.td`
|
|
182
182
|
border-left: 1px solid ${e=>e.theme.schema.linesColor};
|
|
183
183
|
box-sizing: border-box;
|
|
184
184
|
position: relative;
|
|
@@ -225,9 +225,9 @@
|
|
|
225
225
|
background: none;
|
|
226
226
|
border-left-color: transparent;
|
|
227
227
|
}
|
|
228
|
-
`,
|
|
228
|
+
`,zi=ee(Li)`
|
|
229
229
|
padding: 0;
|
|
230
|
-
`,
|
|
230
|
+
`,Ni=ee(Li)`
|
|
231
231
|
vertical-align: top;
|
|
232
232
|
line-height: 20px;
|
|
233
233
|
white-space: nowrap;
|
|
@@ -235,7 +235,7 @@
|
|
|
235
235
|
font-family: ${e=>e.theme.typography.code.fontFamily};
|
|
236
236
|
|
|
237
237
|
&.deprecated {
|
|
238
|
-
${
|
|
238
|
+
${Ri};
|
|
239
239
|
}
|
|
240
240
|
|
|
241
241
|
${({kind:e})=>"patternProperties"===e&&Y`
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
${({kind:e=""})=>["field","additionalProperties","patternProperties"].includes(e)?"":"font-style: italic"};
|
|
256
256
|
|
|
257
257
|
${te("PropertyNameCell")};
|
|
258
|
-
`,
|
|
258
|
+
`,Mi=ee.td`
|
|
259
259
|
border-bottom: 1px solid #9fb4be;
|
|
260
260
|
padding: 10px 0;
|
|
261
261
|
width: ${e=>e.theme.schema.defaultDetailsWidth};
|
|
@@ -276,7 +276,7 @@
|
|
|
276
276
|
`}
|
|
277
277
|
|
|
278
278
|
${te("PropertyDetailsCell")};
|
|
279
|
-
`,
|
|
279
|
+
`,qi=ee.span`
|
|
280
280
|
color: ${e=>e.theme.schema.linesColor};
|
|
281
281
|
font-family: ${e=>e.theme.typography.code.fontFamily};
|
|
282
282
|
margin-right: 10px;
|
|
@@ -298,9 +298,9 @@
|
|
|
298
298
|
background: ${e=>e.theme.schema.linesColor};
|
|
299
299
|
height: 7px;
|
|
300
300
|
}
|
|
301
|
-
`,
|
|
301
|
+
`,Fi=ee.div`
|
|
302
302
|
padding: ${({theme:e})=>e.schema.nestingSpacing};
|
|
303
|
-
`,
|
|
303
|
+
`,Bi=ee.table`
|
|
304
304
|
border-collapse: separate;
|
|
305
305
|
border-radius: 3px;
|
|
306
306
|
font-size: ${e=>e.theme.typography.fontSize};
|
|
@@ -327,49 +327,49 @@
|
|
|
327
327
|
`}
|
|
328
328
|
|
|
329
329
|
&
|
|
330
|
-
${
|
|
330
|
+
${Fi},
|
|
331
331
|
&
|
|
332
|
-
${
|
|
333
|
-
${
|
|
334
|
-
${
|
|
332
|
+
${Fi}
|
|
333
|
+
${Fi}
|
|
334
|
+
${Fi},
|
|
335
335
|
&
|
|
336
|
-
${
|
|
337
|
-
${
|
|
338
|
-
${
|
|
339
|
-
${
|
|
340
|
-
${
|
|
336
|
+
${Fi}
|
|
337
|
+
${Fi}
|
|
338
|
+
${Fi}
|
|
339
|
+
${Fi}
|
|
340
|
+
${Fi} {
|
|
341
341
|
margin: ${({theme:e})=>e.schema.nestingSpacing};
|
|
342
342
|
margin-right: 0;
|
|
343
343
|
background: ${({theme:e})=>e.schema.nestedBackground};
|
|
344
344
|
}
|
|
345
345
|
|
|
346
346
|
&
|
|
347
|
-
${
|
|
348
|
-
${
|
|
347
|
+
${Fi}
|
|
348
|
+
${Fi},
|
|
349
349
|
&
|
|
350
|
-
${
|
|
351
|
-
${
|
|
352
|
-
${
|
|
353
|
-
${
|
|
350
|
+
${Fi}
|
|
351
|
+
${Fi}
|
|
352
|
+
${Fi}
|
|
353
|
+
${Fi},
|
|
354
354
|
&
|
|
355
|
-
${
|
|
356
|
-
${
|
|
357
|
-
${
|
|
358
|
-
${
|
|
359
|
-
${
|
|
360
|
-
${
|
|
355
|
+
${Fi}
|
|
356
|
+
${Fi}
|
|
357
|
+
${Fi}
|
|
358
|
+
${Fi}
|
|
359
|
+
${Fi}
|
|
360
|
+
${Fi} {
|
|
361
361
|
background: #ffffff;
|
|
362
362
|
}
|
|
363
|
-
`,
|
|
363
|
+
`,Qi=ee.div`
|
|
364
364
|
margin: 0 0 3px 0;
|
|
365
365
|
display: inline-block;
|
|
366
|
-
`,
|
|
366
|
+
`,Ui=ee.span`
|
|
367
367
|
font-size: 0.9em;
|
|
368
368
|
margin-right: 10px;
|
|
369
369
|
color: ${e=>e.theme.colors.primary.main};
|
|
370
370
|
font-family: ${e=>e.theme.typography.headings.fontFamily};
|
|
371
371
|
}
|
|
372
|
-
`,
|
|
372
|
+
`,Wi=ee.button`
|
|
373
373
|
display: inline-block;
|
|
374
374
|
margin-right: 10px;
|
|
375
375
|
margin-bottom: 5px;
|
|
@@ -383,22 +383,22 @@
|
|
|
383
383
|
box-shadow: 0 0 0 1px ${e=>e.theme.colors.primary.main};
|
|
384
384
|
}
|
|
385
385
|
|
|
386
|
-
${({$deprecated:e})=>e&&
|
|
386
|
+
${({$deprecated:e})=>e&&Ri||""};
|
|
387
387
|
|
|
388
388
|
${e=>e.$active?`\n color: white;\n background-color: ${e.theme.colors.primary.main};\n &:focus {\n box-shadow: none;\n background-color: ${(0,t.darken)(.15,e.theme.colors.primary.main)};\n }\n `:`\n color: ${e.theme.colors.primary.main};\n background-color: white;\n `}
|
|
389
|
-
`,
|
|
389
|
+
`,Vi=ee.div`
|
|
390
390
|
font-size: 0.9em;
|
|
391
391
|
font-family: ${e=>e.theme.typography.code.fontFamily};
|
|
392
392
|
&::after {
|
|
393
393
|
content: ' [';
|
|
394
394
|
}
|
|
395
|
-
`,
|
|
395
|
+
`,Hi=ee.div`
|
|
396
396
|
font-size: 0.9em;
|
|
397
397
|
font-family: ${e=>e.theme.typography.code.fontFamily};
|
|
398
398
|
&::after {
|
|
399
399
|
content: ']';
|
|
400
400
|
}
|
|
401
|
-
`;var
|
|
401
|
+
`;var Ji=require("react-tabs");const Yi=ee(Ji.Tabs)`
|
|
402
402
|
> ul {
|
|
403
403
|
list-style: none;
|
|
404
404
|
padding: 0;
|
|
@@ -438,18 +438,30 @@
|
|
|
438
438
|
|
|
439
439
|
&.tab-success {
|
|
440
440
|
color: ${e=>e.theme.colors.responses.success.tabTextColor};
|
|
441
|
+
&.react-tabs__tab--selected {
|
|
442
|
+
color: ${e=>e.theme.colors.responses.success.color};
|
|
443
|
+
}
|
|
441
444
|
}
|
|
442
445
|
|
|
443
446
|
&.tab-redirect {
|
|
444
447
|
color: ${e=>e.theme.colors.responses.redirect.tabTextColor};
|
|
448
|
+
&.react-tabs__tab--selected {
|
|
449
|
+
color: ${e=>e.theme.colors.responses.redirect.color};
|
|
450
|
+
}
|
|
445
451
|
}
|
|
446
452
|
|
|
447
453
|
&.tab-info {
|
|
448
454
|
color: ${e=>e.theme.colors.responses.info.tabTextColor};
|
|
455
|
+
&.react-tabs__tab--selected {
|
|
456
|
+
color: ${e=>e.theme.colors.responses.info.color};
|
|
457
|
+
}
|
|
449
458
|
}
|
|
450
459
|
|
|
451
460
|
&.tab-error {
|
|
452
461
|
color: ${e=>e.theme.colors.responses.error.tabTextColor};
|
|
462
|
+
&.react-tabs__tab--selected {
|
|
463
|
+
color: ${e=>e.theme.colors.responses.error.color};
|
|
464
|
+
}
|
|
453
465
|
}
|
|
454
466
|
}
|
|
455
467
|
}
|
|
@@ -465,7 +477,7 @@
|
|
|
465
477
|
padding: 0;
|
|
466
478
|
}
|
|
467
479
|
}
|
|
468
|
-
`,
|
|
480
|
+
`,Gi=(ee(Yi)`
|
|
469
481
|
> ul {
|
|
470
482
|
display: block;
|
|
471
483
|
> li {
|
|
@@ -616,7 +628,7 @@
|
|
|
616
628
|
}
|
|
617
629
|
|
|
618
630
|
${te("Prism")};
|
|
619
|
-
`),
|
|
631
|
+
`),Zi=ee.div`
|
|
620
632
|
opacity: 0.7;
|
|
621
633
|
transition: opacity 0.3s ease;
|
|
622
634
|
text-align: right;
|
|
@@ -639,20 +651,20 @@
|
|
|
639
651
|
background: rgba(255, 255, 255, 0.1);
|
|
640
652
|
}
|
|
641
653
|
}
|
|
642
|
-
`,
|
|
643
|
-
&:hover ${
|
|
654
|
+
`,Xi=ee.div`
|
|
655
|
+
&:hover ${Zi} {
|
|
644
656
|
opacity: 1;
|
|
645
657
|
}
|
|
646
|
-
`,
|
|
658
|
+
`,Ki=ee(Gi).attrs({as:"pre"})`
|
|
647
659
|
font-family: ${e=>e.theme.typography.code.fontFamily};
|
|
648
660
|
font-size: ${e=>e.theme.typography.code.fontSize};
|
|
649
661
|
overflow-x: auto;
|
|
650
662
|
margin: 0;
|
|
651
663
|
|
|
652
664
|
white-space: ${({theme:e})=>e.typography.code.wrap?"pre-wrap":"pre"};
|
|
653
|
-
`;var
|
|
665
|
+
`;var es=require("perfect-scrollbar"),ts=r.n(es),rs=Object.defineProperty,ns=Object.getOwnPropertySymbols,os=Object.prototype.hasOwnProperty,is=Object.prototype.propertyIsEnumerable,ss=(e,t,r)=>t in e?rs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;const as=ts()||es;let ls="";s&&(ls=r(494),ls="function"==typeof ls.toString&&ls.toString()||"",ls="[object Object]"===ls?"":ls);const cs=G`${ls}`,ps=ee.div`
|
|
654
666
|
position: relative;
|
|
655
|
-
`;class
|
|
667
|
+
`;class us extends e.Component{constructor(){super(...arguments),this.handleRef=e=>{this._container=e}}componentDidMount(){const e=this._container.parentElement&&this._container.parentElement.scrollTop||0;this.inst=new as(this._container,this.props.options||{}),this._container.scrollTo&&this._container.scrollTo(0,e)}componentDidUpdate(){this.inst.update()}componentWillUnmount(){this.inst.destroy()}render(){const{children:t,className:r,updateFn:n}=this.props;return n&&n(this.componentDidUpdate.bind(this)),e.createElement(e.Fragment,null,ls&&e.createElement(cs,null),e.createElement(ps,{className:`scrollbar-container ${r}`,ref:this.handleRef},t))}}function ds(t){return e.createElement(ce.Consumer,null,r=>r.nativeScrollbars?e.createElement("div",{style:{overflow:"auto",overscrollBehavior:"contain",msOverflowStyle:"-ms-autohiding-scrollbar"}},t.children):e.createElement(us,((e,t)=>{for(var r in t||(t={}))os.call(t,r)&&ss(e,r,t[r]);if(ns)for(var r of ns(t))is.call(t,r)&&ss(e,r,t[r]);return e})({},t),t.children))}const hs=ee(({className:t,style:r})=>e.createElement("svg",{className:t,style:r,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},e.createElement("polyline",{points:"6 9 12 15 18 9"})))`
|
|
656
668
|
position: absolute;
|
|
657
669
|
pointer-events: none;
|
|
658
670
|
z-index: 1;
|
|
@@ -666,7 +678,7 @@
|
|
|
666
678
|
polyline {
|
|
667
679
|
color: ${e=>"dark"===e.variant&&"white"};
|
|
668
680
|
}
|
|
669
|
-
`,
|
|
681
|
+
`,ms=e.memo(t=>{const{options:r,onChange:n,placeholder:o,value:i="",variant:s,className:a,ariaLabel:l}=t;return e.createElement("div",{className:a},e.createElement(hs,{variant:s}),e.createElement("select",{onChange:e=>{const{selectedIndex:t}=e.target;n(r[o?t-1:t])},value:i,className:"dropdown-select","aria-label":l},o&&e.createElement("option",{disabled:!0,hidden:!0,value:o},o),r.map(({idx:t,value:r,title:n},o)=>e.createElement("option",{key:t||r+o,value:r},n||r))),e.createElement("label",null,i))}),fs=H()(ms)`
|
|
670
682
|
label {
|
|
671
683
|
box-sizing: border-box;
|
|
672
684
|
min-width: 100px;
|
|
@@ -725,7 +737,7 @@
|
|
|
725
737
|
color: ${e=>e.theme.colors.primary.main};
|
|
726
738
|
box-shadow: 0px 0px 0px 1px ${e=>e.theme.colors.primary.main};
|
|
727
739
|
}
|
|
728
|
-
`,
|
|
740
|
+
`,ys=H()(fs)`
|
|
729
741
|
margin-left: 10px;
|
|
730
742
|
text-transform: none;
|
|
731
743
|
font-size: 0.969em;
|
|
@@ -744,12 +756,12 @@
|
|
|
744
756
|
text-shadow: 0px 0px 0px ${e=>e.theme.colors.primary.main};
|
|
745
757
|
}
|
|
746
758
|
}
|
|
747
|
-
`,
|
|
759
|
+
`,gs=H().span`
|
|
748
760
|
margin-left: 10px;
|
|
749
761
|
text-transform: none;
|
|
750
762
|
font-size: 0.929em;
|
|
751
763
|
color: black;
|
|
752
|
-
`;var
|
|
764
|
+
`;var bs=Object.defineProperty,xs=Object.getOwnPropertySymbols,vs=Object.prototype.hasOwnProperty,ws=Object.prototype.propertyIsEnumerable,ks=(e,t,r)=>t in e?bs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Es=(e,t)=>{for(var r in t||(t={}))vs.call(t,r)&&ks(e,r,t[r]);if(xs)for(var r of xs(t))ws.call(t,r)&&ks(e,r,t[r]);return e};function Os(t){const{Label:r=gs,Dropdown:n=ys}=t;return 1===t.options.length?e.createElement(r,null,t.options[0].value):e.createElement(n,Es({},t))}var js=require("dompurify"),$s=r.n(js);const Ss=Y`
|
|
753
765
|
a {
|
|
754
766
|
text-decoration: ${e=>e.theme.typography.links.textDecoration};
|
|
755
767
|
color: ${e=>e.theme.typography.links.color};
|
|
@@ -763,7 +775,7 @@
|
|
|
763
775
|
text-decoration: ${e=>e.theme.typography.links.hoverTextDecoration};
|
|
764
776
|
}
|
|
765
777
|
}
|
|
766
|
-
`,
|
|
778
|
+
`,Cs=ee(Gi)`
|
|
767
779
|
font-family: ${e=>e.theme.typography.fontFamily};
|
|
768
780
|
font-weight: ${e=>e.theme.typography.fontWeightRegular};
|
|
769
781
|
line-height: ${e=>e.theme.typography.lineHeight};
|
|
@@ -779,13 +791,13 @@
|
|
|
779
791
|
${({$inline:e})=>e&&" p {\n display: inline-block;\n }"}
|
|
780
792
|
|
|
781
793
|
h1 {
|
|
782
|
-
${
|
|
794
|
+
${yi(1)};
|
|
783
795
|
color: ${e=>e.theme.colors.primary.main};
|
|
784
796
|
margin-top: 0;
|
|
785
797
|
}
|
|
786
798
|
|
|
787
799
|
h2 {
|
|
788
|
-
${
|
|
800
|
+
${yi(2)};
|
|
789
801
|
color: ${e=>e.theme.colors.text.primary};
|
|
790
802
|
}
|
|
791
803
|
|
|
@@ -884,16 +896,16 @@
|
|
|
884
896
|
font-weight: bold;
|
|
885
897
|
}
|
|
886
898
|
|
|
887
|
-
${
|
|
899
|
+
${Ci(".share-link")};
|
|
888
900
|
|
|
889
|
-
${
|
|
901
|
+
${Ss}
|
|
890
902
|
|
|
891
903
|
${te("Markdown")};
|
|
892
|
-
`;var
|
|
904
|
+
`;var Ps=Object.defineProperty,Is=Object.defineProperties,As=Object.getOwnPropertyDescriptors,Ts=Object.getOwnPropertySymbols,_s=Object.prototype.hasOwnProperty,Rs=Object.prototype.propertyIsEnumerable,Ds=(e,t,r)=>t in e?Ps(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;const Ls=$s(),zs=H()(Cs)`
|
|
893
905
|
display: inline;
|
|
894
|
-
`;function
|
|
906
|
+
`;function Ns(t){var r=t,{inline:n,compact:o}=r,i=((e,t)=>{var r={};for(var n in e)_s.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&Ts)for(var n of Ts(e))t.indexOf(n)<0&&Rs.call(e,n)&&(r[n]=e[n]);return r})(r,["inline","compact"]);const s=n?zs:Cs;return e.createElement(ue,null,t=>{return e.createElement(s,(r=((e,t)=>{for(var r in t||(t={}))_s.call(t,r)&&Ds(e,r,t[r]);if(Ts)for(var r of Ts(t))Rs.call(t,r)&&Ds(e,r,t[r]);return e})({className:"redoc-markdown "+(i.className||""),dangerouslySetInnerHTML:{__html:(a=t.sanitize,l=i.html,a?Ls.sanitize(l):l)},"data-role":i["data-role"]},i),Is(r,As({$inline:n,$compact:o}))));var r,a,l})}class Ms extends e.Component{render(){const{source:t,inline:r,compact:n,className:o,"data-role":i}=this.props,s=new Wr;return e.createElement(Ns,{html:s.renderMd(t),inline:r,compact:n,className:o,"data-role":i})}}const qs=ee.div`
|
|
895
907
|
position: relative;
|
|
896
|
-
`,
|
|
908
|
+
`,Fs=ee.div`
|
|
897
909
|
position: absolute;
|
|
898
910
|
min-width: 80px;
|
|
899
911
|
max-width: 500px;
|
|
@@ -907,13 +919,13 @@
|
|
|
907
919
|
padding: 0.3em 0.6em;
|
|
908
920
|
text-align: center;
|
|
909
921
|
box-shadow: 0px 0px 5px 0px rgba(204, 204, 204, 1);
|
|
910
|
-
`,
|
|
922
|
+
`,Bs=ee.div`
|
|
911
923
|
background: #fff;
|
|
912
924
|
color: #000;
|
|
913
925
|
display: inline;
|
|
914
926
|
font-size: 0.85em;
|
|
915
927
|
white-space: nowrap;
|
|
916
|
-
`,
|
|
928
|
+
`,Qs=ee.div`
|
|
917
929
|
position: absolute;
|
|
918
930
|
width: 0;
|
|
919
931
|
height: 0;
|
|
@@ -923,12 +935,12 @@
|
|
|
923
935
|
border-left: solid transparent 5px;
|
|
924
936
|
border-right: solid transparent 5px;
|
|
925
937
|
border-top: solid #fff 5px;
|
|
926
|
-
`,
|
|
938
|
+
`,Us=ee.div`
|
|
927
939
|
position: absolute;
|
|
928
940
|
width: 100%;
|
|
929
941
|
height: 20px;
|
|
930
942
|
bottom: -20px;
|
|
931
|
-
`;class
|
|
943
|
+
`;class Ws extends e.Component{render(){const{open:t,title:r,children:n}=this.props;return e.createElement(qs,null,n,t&&e.createElement(Fs,null,e.createElement(Bs,null,r),e.createElement(Qs,null),e.createElement(Us,null)))}}const Vs="undefined"!=typeof document&&document.queryCommandSupported&&document.queryCommandSupported("copy");class Hs{static isSupported(){return Vs}static selectElement(e){let t,r;document.body.createTextRange?(t=document.body.createTextRange(),t.moveToElementText(e),t.select()):document.createRange&&window.getSelection&&(r=window.getSelection(),t=document.createRange(),t.selectNodeContents(e),r.removeAllRanges(),r.addRange(t))}static deselect(){if(document.selection)document.selection.empty();else if(window.getSelection){const e=window.getSelection();e&&e.removeAllRanges()}}static copySelected(){let e;try{e=document.execCommand("copy")}catch(t){e=!1}return e}static copyElement(e){Hs.selectElement(e);const t=Hs.copySelected();return t&&Hs.deselect(),t}static copyCustom(e){const t=document.createElement("textarea");t.style.position="fixed",t.style.top="0",t.style.left="0",t.style.width="2em",t.style.height="2em",t.style.padding="0",t.style.border="none",t.style.outline="none",t.style.boxShadow="none",t.style.background="transparent",t.value=e,document.body.appendChild(t),t.select();const r=Hs.copySelected();return document.body.removeChild(t),r}}const Js=t=>{const[r,n]=e.useState(!1),o=()=>{const e="string"==typeof t.data?t.data:JSON.stringify(t.data,null,2);Hs.copyCustom(e),i()},i=()=>{n(!0),setTimeout(()=>{n(!1)},1500)};return t.children({renderCopyButton:()=>e.createElement("button",{onClick:o},e.createElement(Ws,{title:Hs.isSupported()?"Copied":"Not supported in your browser",open:r},"Copy"))})};let Ys=1;function Gs(e,t){Ys=1;let r="";return r+='<div class="redoc-json">',r+="<code>",r+=ta(e,t),r+="</code>",r+="</div>",r}function Zs(e){return void 0!==e?e.toString().replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">"):""}function Xs(e){return JSON.stringify(e).slice(1,-1)}function Ks(e,t){return'<span class="'+t+'">'+Zs(e)+"</span>"}function ea(e){return'<span class="token punctuation">'+e+"</span>"}function ta(e,t){const r=typeof e;let n="";return null==e?n+=Ks("null","token keyword"):e&&e.constructor===Array?(Ys++,n+=function(e,t){const r=Ys>t?"collapsed":"";let n=`<button class="collapser" aria-label="${Ys>t+1?"expand":"collapse"}"></button>${ea("[")}<span class="ellipsis"></span><ul class="array collapsible">`,o=!1;const i=e.length;for(let s=0;s<i;s++)o=!0,n+='<li><div class="hoverable '+r+'">',n+=ta(e[s],t),s<i-1&&(n+=","),n+="</div></li>";return n+=`</ul>${ea("]")}`,o||(n=ea("[ ]")),n}(e,t),Ys--):e&&e.constructor===Date?n+=Ks('"'+e.toISOString()+'"',"token string"):"object"===r?(Ys++,n+=function(e,t){const r=Ys>t?"collapsed":"",n=Object.keys(e),o=n.length;let i=`<button class="collapser" aria-label="${Ys>t+1?"expand":"collapse"}"></button>${ea("{")}<span class="ellipsis"></span><ul class="obj collapsible">`,s=!1;for(let a=0;a<o;a++){const l=n[a];s=!0,i+='<li><div class="hoverable '+r+'">',i+='<span class="property token string">"'+Zs(l)+'"</span>: ',i+=ta(e[l],t),a<o-1&&(i+=ea(",")),i+="</div></li>"}return i+=`</ul>${ea("}")}`,s||(i=ea("{ }")),i}(e,t),Ys--):"number"===r?n+=Ks(e,"token number"):"string"===r?/^(http|https):\/\/[^\s]+$/.test(e)?n+=Ks('"',"token string")+'<a href="'+encodeURI(e)+'">'+Zs(Xs(e))+"</a>"+Ks('"',"token string"):n+=Ks('"'+Xs(e)+'"',"token string"):"boolean"===r&&(n+=Ks(e,"token boolean")),n}const ra=Y`
|
|
932
944
|
.redoc-json code > .collapser {
|
|
933
945
|
display: none;
|
|
934
946
|
pointer-events: none;
|
|
@@ -1036,13 +1048,13 @@
|
|
|
1036
1048
|
.collapsed > .ellipsis {
|
|
1037
1049
|
display: inherit;
|
|
1038
1050
|
}
|
|
1039
|
-
`,
|
|
1040
|
-
&:hover > ${
|
|
1051
|
+
`,na=ee.div`
|
|
1052
|
+
&:hover > ${Zi} {
|
|
1041
1053
|
opacity: 1;
|
|
1042
1054
|
}
|
|
1043
|
-
`,
|
|
1044
|
-
${
|
|
1045
|
-
`,
|
|
1055
|
+
`,oa=ee(t=>{const[r,n]=e.useState(),o=({renderCopyButton:r})=>{const o=t.data&&Object.values(t.data).some(e=>"object"==typeof e&&null!==e);return e.createElement(na,null,e.createElement(Zi,null,r(),o&&e.createElement(e.Fragment,null,e.createElement("button",{onClick:i}," Expand all "),e.createElement("button",{onClick:s}," Collapse all "))),e.createElement(ce.Consumer,null,r=>e.createElement(Gi,{tabIndex:0,className:t.className,ref:e=>n(e),dangerouslySetInnerHTML:{__html:Gs(t.data,r.jsonSamplesExpandLevel)}})))},i=()=>{const e=null==r?void 0:r.getElementsByClassName("collapsible");for(const t of Array.prototype.slice.call(e)){const e=t.parentNode;e.classList.remove("collapsed"),e.querySelector(".collapser").setAttribute("aria-label","collapse")}},s=()=>{const e=null==r?void 0:r.getElementsByClassName("collapsible"),t=Array.prototype.slice.call(e,1);for(const e of t){const t=e.parentNode;t.classList.add("collapsed"),t.querySelector(".collapser").setAttribute("aria-label","expand")}},a=e=>{let t;"collapser"===e.className&&(t=e.parentElement.getElementsByClassName("collapsible")[0],t.parentElement.classList.contains("collapsed")?(t.parentElement.classList.remove("collapsed"),e.setAttribute("aria-label","collapse")):(t.parentElement.classList.add("collapsed"),e.setAttribute("aria-label","expand")))},l=e.useCallback(e=>{a(e.target)},[]),c=e.useCallback(e=>{"Enter"===e.key&&a(e.target)},[]);return e.useEffect(()=>(null==r||r.addEventListener("click",l),null==r||r.addEventListener("focus",c),()=>{null==r||r.removeEventListener("click",l),null==r||r.removeEventListener("focus",c)}),[l,c,r]),e.createElement(Js,{data:t.data},o)})`
|
|
1056
|
+
${ra};
|
|
1057
|
+
`,ia=t=>{const{source:r,lang:n}=t;return e.createElement(Ki,{dangerouslySetInnerHTML:{__html:jt(r,n)}})},sa=t=>{const{source:r,lang:n}=t;return e.createElement(Js,{data:r},({renderCopyButton:t})=>e.createElement(Xi,null,e.createElement(Zi,null,t()),e.createElement(ia,{lang:n,source:r})))};function aa({value:t,mimeType:r}){return Ue(r)?e.createElement(oa,{data:t}):("object"==typeof t&&(t=JSON.stringify(t,null,2)),e.createElement(sa,{lang:Ke(r),source:t}))}var la=(e,t,r)=>new Promise((n,o)=>{var i=e=>{try{a(r.next(e))}catch(e){o(e)}},s=e=>{try{a(r.throw(e))}catch(e){o(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(i,s);a((r=r.apply(e,t)).next())});function ca({example:t,mimeType:r}){return void 0===t.value&&t.externalValueUrl?e.createElement(pa,{example:t,mimeType:r}):e.createElement(aa,{value:t.value,mimeType:r})}function pa({example:t,mimeType:r}){const n=function(t,r){const[,n]=(0,e.useState)(!0),o=(0,e.useRef)(void 0),i=(0,e.useRef)(void 0);return i.current!==t&&(o.current=void 0),i.current=t,(0,e.useEffect)(()=>{(()=>{la(this,null,function*(){n(!0);try{o.current=yield t.getExternalValue(r)}catch(e){o.current=e}n(!1)})})()},[t,r]),o.current}(t,r);return void 0===n?e.createElement("span",null,"Loading..."):n instanceof Error?e.createElement(Ki,null,"Error loading external example: ",e.createElement("br",null),e.createElement("a",{className:"token string",href:t.externalValueUrl,target:"_blank",rel:"noopener noreferrer"},t.externalValueUrl)):e.createElement(aa,{value:n,mimeType:r})}const ua=ee.div`
|
|
1046
1058
|
padding: 0.9em;
|
|
1047
1059
|
background-color: ${({theme:e})=>(0,t.transparentize)(.6,e.rightPanel.backgroundColor)};
|
|
1048
1060
|
margin: 0 0 10px 0;
|
|
@@ -1050,7 +1062,7 @@
|
|
|
1050
1062
|
font-family: ${({theme:e})=>e.typography.headings.fontFamily};
|
|
1051
1063
|
font-size: 0.929em;
|
|
1052
1064
|
line-height: 1.5em;
|
|
1053
|
-
`,
|
|
1065
|
+
`,da=ee.span`
|
|
1054
1066
|
font-family: ${({theme:e})=>e.typography.headings.fontFamily};
|
|
1055
1067
|
font-size: 12px;
|
|
1056
1068
|
position: absolute;
|
|
@@ -1059,9 +1071,9 @@
|
|
|
1059
1071
|
left: 12px;
|
|
1060
1072
|
font-weight: ${({theme:e})=>e.typography.fontWeightBold};
|
|
1061
1073
|
color: ${({theme:e})=>(0,t.transparentize)(.3,e.rightPanel.textColor)};
|
|
1062
|
-
`,
|
|
1074
|
+
`,ha=ee.div`
|
|
1063
1075
|
position: relative;
|
|
1064
|
-
`,
|
|
1076
|
+
`,ma=ee(fs)`
|
|
1065
1077
|
label {
|
|
1066
1078
|
color: ${({theme:e})=>e.rightPanel.textColor};
|
|
1067
1079
|
text-overflow: ellipsis;
|
|
@@ -1083,16 +1095,16 @@
|
|
|
1083
1095
|
box-shadow: none;
|
|
1084
1096
|
background-color: ${({theme:e})=>(0,t.transparentize)(.3,e.rightPanel.backgroundColor)};
|
|
1085
1097
|
}
|
|
1086
|
-
`,
|
|
1098
|
+
`,fa=ee.div`
|
|
1087
1099
|
font-family: ${e=>e.theme.typography.code.fontFamily};
|
|
1088
1100
|
font-size: 12px;
|
|
1089
1101
|
color: #ee807f;
|
|
1090
|
-
`;class
|
|
1102
|
+
`;class ya extends e.Component{constructor(){super(...arguments),this.state={activeIdx:0},this.switchMedia=({idx:e})=>{void 0!==e&&this.setState({activeIdx:e})}}render(){const{activeIdx:t}=this.state,r=this.props.mediaType.examples||{},n=this.props.mediaType.name,o=e.createElement(fa,null,"No sample"),i=Object.keys(r);if(0===i.length)return o;if(i.length>1){const o=i.map((e,t)=>({value:r[e].summary||e,idx:t})),s=r[i[t]],a=s.description;return e.createElement(ga,null,e.createElement(ha,null,e.createElement(da,null,"Example"),this.props.renderDropdown({value:o[t].value,options:o,onChange:this.switchMedia,ariaLabel:"Example"})),e.createElement("div",null,a&&e.createElement(Ms,{source:a}),e.createElement(ca,{example:s,mimeType:n})))}{const t=r[i[0]];return e.createElement(ga,null,t.description&&e.createElement(Ms,{source:t.description}),e.createElement(ca,{example:t,mimeType:n}))}}}const ga=ee.div`
|
|
1091
1103
|
margin-top: 15px;
|
|
1092
|
-
`;var
|
|
1104
|
+
`;var ba=require("mobx-react");const xa=ee(Ni)`
|
|
1093
1105
|
&.deprecated {
|
|
1094
1106
|
span.property-name {
|
|
1095
|
-
${
|
|
1107
|
+
${Ri}
|
|
1096
1108
|
}
|
|
1097
1109
|
}
|
|
1098
1110
|
|
|
@@ -1128,36 +1140,36 @@
|
|
|
1128
1140
|
}
|
|
1129
1141
|
`}
|
|
1130
1142
|
}
|
|
1131
|
-
${
|
|
1143
|
+
${Ti} {
|
|
1132
1144
|
height: ${({theme:e})=>e.schema.arrow.size};
|
|
1133
1145
|
width: ${({theme:e})=>e.schema.arrow.size};
|
|
1134
1146
|
polygon {
|
|
1135
1147
|
fill: ${({theme:e})=>e.schema.arrow.color};
|
|
1136
1148
|
}
|
|
1137
1149
|
}
|
|
1138
|
-
`,
|
|
1150
|
+
`,va=ee.span`
|
|
1139
1151
|
vertical-align: middle;
|
|
1140
1152
|
font-size: ${({theme:e})=>e.typography.code.fontSize};
|
|
1141
1153
|
line-height: 20px;
|
|
1142
|
-
`,
|
|
1154
|
+
`,wa=ee(va)`
|
|
1143
1155
|
color: ${e=>(0,t.transparentize)(.1,e.theme.schema.typeNameColor)};
|
|
1144
|
-
`,
|
|
1156
|
+
`,ka=ee(va)`
|
|
1145
1157
|
color: ${e=>e.theme.schema.typeNameColor};
|
|
1146
|
-
`,
|
|
1158
|
+
`,Ea=ee(va)`
|
|
1147
1159
|
color: ${e=>e.theme.schema.typeTitleColor};
|
|
1148
1160
|
word-break: break-word;
|
|
1149
|
-
`,
|
|
1161
|
+
`,Oa=ka,ja=ee(va).attrs({as:"div"})`
|
|
1150
1162
|
color: ${e=>e.theme.schema.requireLabelColor};
|
|
1151
1163
|
font-size: ${e=>e.theme.schema.labelsTextSize};
|
|
1152
1164
|
font-weight: normal;
|
|
1153
1165
|
margin-left: 20px;
|
|
1154
1166
|
line-height: 1;
|
|
1155
|
-
|
|
1167
|
+
`,$a=ee(ja)`
|
|
1156
1168
|
color: ${e=>e.theme.colors.primary.light};
|
|
1157
|
-
`,
|
|
1158
|
-
color: ${({theme:e})=>e.colors.warning.
|
|
1169
|
+
`,Sa=ee(va)`
|
|
1170
|
+
color: ${({theme:e})=>e.colors.warning.dark};
|
|
1159
1171
|
font-size: 13px;
|
|
1160
|
-
`,
|
|
1172
|
+
`,Ca=ee(va)`
|
|
1161
1173
|
color: #0e7c86;
|
|
1162
1174
|
font-family: ${e=>e.theme.typography.code.fontFamily};
|
|
1163
1175
|
font-size: 12px;
|
|
@@ -1165,7 +1177,7 @@
|
|
|
1165
1177
|
&::after {
|
|
1166
1178
|
content: ' ';
|
|
1167
1179
|
}
|
|
1168
|
-
|
|
1180
|
+
`,Pa=ee(va)`
|
|
1169
1181
|
border-radius: 2px;
|
|
1170
1182
|
word-break: break-word;
|
|
1171
1183
|
${({theme:e})=>`\n background-color: ${(0,t.transparentize)(.95,e.colors.text.primary)};\n color: ${(0,t.transparentize)(.1,e.colors.text.primary)};\n\n padding: 0 ${e.spacing.unit}px;\n border: 1px solid ${(0,t.transparentize)(.9,e.colors.text.primary)};\n font-family: ${e.typography.code.fontFamily};\n}`};
|
|
@@ -1173,14 +1185,14 @@
|
|
|
1173
1185
|
margin-left: 0;
|
|
1174
1186
|
}
|
|
1175
1187
|
${te("ExampleValue")};
|
|
1176
|
-
`,
|
|
1188
|
+
`,Ia=ee(Pa)``,Aa=ee(va)`
|
|
1177
1189
|
border-radius: 2px;
|
|
1178
1190
|
${({theme:e})=>`\n background-color: ${(0,t.transparentize)(.95,e.colors.primary.light)};\n color: ${(0,t.transparentize)(.1,e.colors.primary.main)};\n\n margin: 0 ${e.spacing.unit}px;\n padding: 0 ${e.spacing.unit}px;\n border: 1px solid ${(0,t.transparentize)(.9,e.colors.primary.main)};\n}`};
|
|
1179
1191
|
& + & {
|
|
1180
1192
|
margin-left: 0;
|
|
1181
1193
|
}
|
|
1182
1194
|
${te("ConstraintItem")};
|
|
1183
|
-
`,
|
|
1195
|
+
`,Ta=ee.button`
|
|
1184
1196
|
background-color: transparent;
|
|
1185
1197
|
border: 0;
|
|
1186
1198
|
color: ${({theme:e})=>e.colors.text.secondary};
|
|
@@ -1189,31 +1201,31 @@
|
|
|
1189
1201
|
cursor: pointer;
|
|
1190
1202
|
outline-color: ${({theme:e})=>e.colors.text.secondary};
|
|
1191
1203
|
font-size: 12px;
|
|
1192
|
-
`;Object.defineProperty,Object.getOwnPropertyDescriptor;const
|
|
1193
|
-
${
|
|
1204
|
+
`;Object.defineProperty,Object.getOwnPropertyDescriptor;const _a=ee.div`
|
|
1205
|
+
${Ss};
|
|
1194
1206
|
${({$compact:e})=>e?"":"margin: 1em 0"}
|
|
1195
|
-
`;let
|
|
1207
|
+
`;let Ra=class extends e.Component{render(){const{externalDocs:t}=this.props;return t&&t.url?e.createElement(_a,{$compact:this.props.compact},e.createElement("a",{href:t.url},t.description||t.url)):null}};Ra=((e,t)=>{for(var r,n=t,o=e.length-1;o>=0;o--)(r=e[o])&&(n=r(n)||n);return n})([ba.observer],Ra);const Da=ee(Cs)`
|
|
1196
1208
|
table {
|
|
1197
1209
|
margin-bottom: 0.2em;
|
|
1198
1210
|
}
|
|
1199
|
-
`;class
|
|
1211
|
+
`;class La extends e.PureComponent{constructor(e){super(e),this.state={collapsed:!0},this.toggle=this.toggle.bind(this)}toggle(){this.setState({collapsed:!this.state.collapsed})}render(){const{values:t,type:r}=this.props,{collapsed:n}=this.state,o=!Array.isArray(t),i=Array.isArray(t)&&t||Object.entries(t||{}).map(([e,t])=>({value:e,description:t})),{enumSkipQuotes:s,maxDisplayedEnumValues:a}=this.context;if(!i.length)return null;const l=this.state.collapsed&&a?i.slice(0,a):i,c=!!a&&i.length>a,p=a?n?`… ${i.length-a} more`:"Hide":"";return e.createElement("div",null,o?e.createElement(e.Fragment,null,e.createElement(Da,null,e.createElement("table",null,e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",null,e.createElement(va,null,"array"===r?_("enumArray"):""," ",1===i.length?_("enumSingleValue"):_("enum"))," "),e.createElement("th",null,e.createElement("strong",null,"Description")))),e.createElement("tbody",null,l.map(({description:t,value:r})=>e.createElement("tr",{key:r},e.createElement("td",null,r),e.createElement("td",null,e.createElement(Ms,{source:t,compact:!0,inline:!0}))))))),c?e.createElement(za,{onClick:this.toggle},p):null):e.createElement(e.Fragment,null,e.createElement(va,null,"array"===r?_("enumArray"):""," ",1===t.length?_("enumSingleValue"):_("enum"),":")," ",l.map((t,r)=>{const n=s?String(t):JSON.stringify(t);return e.createElement(e.Fragment,{key:r},e.createElement(Pa,null,n)," ")}),c?e.createElement(za,{onClick:this.toggle},p):null))}}La.contextType=ce;const za=ee.span`
|
|
1200
1212
|
color: ${e=>e.theme.colors.primary.main};
|
|
1201
1213
|
vertical-align: middle;
|
|
1202
1214
|
font-size: 13px;
|
|
1203
1215
|
line-height: 20px;
|
|
1204
1216
|
padding: 0 5px;
|
|
1205
1217
|
cursor: pointer;
|
|
1206
|
-
`,
|
|
1218
|
+
`,Na=ee(Cs)`
|
|
1207
1219
|
margin: 2px 0;
|
|
1208
|
-
`;class
|
|
1220
|
+
`;class Ma extends e.PureComponent{render(){const t=this.props.extensions;return e.createElement(ce.Consumer,null,r=>e.createElement(e.Fragment,null,r.showExtensions&&Object.keys(t).map(r=>e.createElement(Na,{key:r},e.createElement(va,null," ",r.substring(2),": ")," ",e.createElement(Ia,null,"string"==typeof t[r]?t[r]:JSON.stringify(t[r]))))))}}function qa({field:t}){return t.examples?e.createElement(e.Fragment,null,e.createElement(va,null," ",_("examples"),": "),I(t.examples)?t.examples.map((r,n)=>{const o=Xe(t,r),i=t.in?String(o):JSON.stringify(o);return e.createElement(e.Fragment,{key:n},e.createElement(Pa,null,i)," ")}):e.createElement(Fa,null,Object.values(t.examples).map((r,n)=>e.createElement("li",{key:n+r.value},e.createElement(Pa,null,Xe(t,r.value))," -"," ",r.summary||r.description)))):null}const Fa=ee.ul`
|
|
1209
1221
|
margin-top: 1em;
|
|
1210
1222
|
list-style-position: outside;
|
|
1211
|
-
`;class
|
|
1223
|
+
`;class Ba extends e.PureComponent{render(){return 0===this.props.constraints.length?null:e.createElement("span",null," ",this.props.constraints.map(t=>e.createElement(Aa,{key:t}," ",t," ")))}}const Qa=e.memo(function({value:t,label:r,raw:n}){if(void 0===t)return null;const o=n?String(t):JSON.stringify(t);return e.createElement("div",null,e.createElement(va,null," ",r," ")," ",e.createElement(Pa,null,o))});function Ua(t){const r=t.schema.pattern,{hideSchemaPattern:n}=e.useContext(ce),[o,i]=e.useState(!1),s=e.useCallback(()=>i(!o),[o]);return!r||n?null:e.createElement(e.Fragment,null,e.createElement(Ca,null,o||r.length<45?r:`${r.substr(0,45)}...`),r.length>45&&e.createElement(Ta,{onClick:s},o?"Hide pattern":"Show pattern"))}function Wa({schema:t}){var r;const{hideSchemaPattern:n}=e.useContext(ce);return t&&((null==t?void 0:t.pattern)&&!n||t.items||t.displayFormat||(null==(r=t.constraints)?void 0:r.length))?e.createElement(Va,null,"[ items",t.displayFormat&&e.createElement(Oa,null," <",t.displayFormat," >"),e.createElement(Ba,{constraints:t.constraints}),e.createElement(Ua,{schema:t}),t.items&&e.createElement(Wa,{schema:t.items})," ]"):null}const Va=ee(wa)`
|
|
1212
1224
|
margin: 0 5px;
|
|
1213
1225
|
vertical-align: text-top;
|
|
1214
|
-
`;var
|
|
1226
|
+
`;var Ha=Object.defineProperty,Ja=Object.getOwnPropertySymbols,Ya=Object.prototype.hasOwnProperty,Ga=Object.prototype.propertyIsEnumerable,Za=(e,t,r)=>t in e?Ha(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Xa=(e,t)=>{for(var r in t||(t={}))Ya.call(t,r)&&Za(e,r,t[r]);if(Ja)for(var r of Ja(t))Ga.call(t,r)&&Za(e,r,t[r]);return e};const Ka=(0,ba.observer)(t=>{const{enumSkipQuotes:r,hideSchemaTitles:n}=e.useContext(ce),{showExamples:o,field:i,renderDiscriminatorSwitch:s}=t,{schema:a,description:l,deprecated:c,extensions:p,in:u,const:d}=i,h="array"===a.type||I(a.type)&&a.type.includes("array"),m=r||"header"===u,f=e.useMemo(()=>!o||void 0===i.example&&void 0===i.examples?null:void 0!==i.examples?e.createElement(qa,{field:i}):e.createElement(Qa,{label:_("example")+":",value:Xe(i,i.example),raw:Boolean(i.in)}),[i,o]),y=x(a.default)&&i.in?Xe(i,a.default).replace(`${i.name}=`,""):a.default;return e.createElement("div",null,e.createElement("div",null,e.createElement(wa,null,a.typePrefix),e.createElement(ka,null,a.displayType),a.displayFormat&&e.createElement(Oa,null," ","<",a.displayFormat,">"," "),a.contentEncoding&&e.createElement(Oa,null," ","<",a.contentEncoding,">"," "),a.contentMediaType&&e.createElement(Oa,null," ","<",a.contentMediaType,">"," "),a.title&&!n&&e.createElement(Ea,null," (",a.title,") "),e.createElement(Ba,{constraints:a.constraints}),e.createElement(Ua,{schema:a}),a.isCircular&&e.createElement(Sa,null," ",_("recursive")," "),h&&a.items&&e.createElement(Wa,{schema:a.items})),c&&e.createElement("div",null,e.createElement(_i,{type:"warning"}," ",_("deprecated")," ")),e.createElement(Qa,{raw:m,label:_("default")+":",value:y}),!s&&e.createElement(La,{type:a.type,values:a["x-enumDescriptions"]||a.enum})," ",f,e.createElement(Ma,{extensions:Xa(Xa({},p),a.extensions)}),e.createElement("div",null,e.createElement(Ms,{compact:!0,source:l})),a.externalDocs&&e.createElement(Ra,{externalDocs:a.externalDocs,compact:!0}),s&&s(t)||null,d&&e.createElement(Qa,{label:_("const")+":",value:d})||null)}),el=e.memo(Ka);var tl=Object.defineProperty,rl=(Object.getOwnPropertyDescriptor,Object.getOwnPropertySymbols),nl=Object.prototype.hasOwnProperty,ol=Object.prototype.propertyIsEnumerable,il=(e,t,r)=>t in e?tl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let sl=class extends e.Component{constructor(){super(...arguments),this.toggle=()=>{void 0===this.props.field.expanded&&this.props.expandByDefault?this.props.field.collapse():this.props.field.toggle()},this.handleKeyPress=e=>{"Enter"===e.key&&(e.preventDefault(),this.toggle())}}render(){const{hidePropertiesPrefix:t}=this.context,{className:r="",field:n,isLast:o,expandByDefault:i,fieldParentsName:s=[]}=this.props,{name:a,deprecated:l,required:c,kind:p}=n,u=!n.schema.isPrimitive&&!n.schema.isCircular,d=void 0===n.expanded?i:n.expanded,h=e.createElement(e.Fragment,null,"additionalProperties"===p&&e.createElement($a,null,"additional property"),"patternProperties"===p&&e.createElement($a,null,"pattern property"),c&&e.createElement(ja,null,"required")),m=u?e.createElement(xa,{className:l?"deprecated":"",kind:p,title:a},e.createElement(qi,null),e.createElement("button",{onClick:this.toggle,onKeyPress:this.handleKeyPress,"aria-label":`expand ${a}`},!t&&s.map(e=>e+"."),e.createElement("span",{className:"property-name"},a),e.createElement(Ti,{direction:d?"down":"right"})),h):e.createElement(Ni,{className:l?"deprecated":void 0,kind:p,title:a},e.createElement(qi,null),!t&&s.map(e=>e+"."),e.createElement("span",{className:"property-name"},a),h);return e.createElement(e.Fragment,null,e.createElement("tr",{className:o?"last "+r:r},m,e.createElement(Mi,null,e.createElement(el,((e,t)=>{for(var r in t||(t={}))nl.call(t,r)&&il(e,r,t[r]);if(rl)for(var r of rl(t))ol.call(t,r)&&il(e,r,t[r]);return e})({},this.props)))),d&&u&&e.createElement("tr",{key:n.name+"inner"},e.createElement(zi,{colSpan:2},e.createElement(Fi,null,e.createElement(Fl,{schema:n.schema,fieldParentsName:[...s||[],n.name],skipReadOnly:this.props.skipReadOnly,skipWriteOnly:this.props.skipWriteOnly,showTitle:this.props.showTitle,level:this.props.level})))))}};sl.contextType=ce,sl=((e,t)=>{for(var r,n=t,o=e.length-1;o>=0;o--)(r=e[o])&&(n=r(n)||n);return n})([ba.observer],sl);Object.defineProperty,Object.getOwnPropertyDescriptor;let al=class extends e.Component{constructor(){super(...arguments),this.changeActiveChild=e=>{void 0!==e.idx&&this.props.parent.activateOneOf(e.idx)}}sortOptions(e,t){if(0===t.length)return;const r={};t.forEach((e,t)=>{r[e]=t}),e.sort((e,t)=>r[e.value]>r[t.value]?1:-1)}render(){const{parent:t,enumValues:r}=this.props;if(void 0===t.oneOf)return null;const n=t.oneOf.map((e,t)=>({value:e.title,idx:t})),o=n[t.activeOneOf].value;return this.sortOptions(n,r),e.createElement(fs,{value:o,options:n,onChange:this.changeActiveChild,ariaLabel:t.discriminatorProp})}};al=((e,t)=>{for(var r,n=t,o=e.length-1;o>=0;o--)(r=e[o])&&(n=r(n)||n);return n})([ba.observer],al);const ll=(0,ba.observer)(({schema:{fields:t=[],title:r},showTitle:n,discriminator:o,skipReadOnly:i,skipWriteOnly:s,level:a,fieldParentsName:l})=>{const{expandSingleSchemaField:c,showObjectSchemaExamples:p,schemasExpansionLevel:u}=e.useContext(ce),h=e.useMemo(()=>i||s?t.filter(e=>!(i&&e.schema.readOnly||s&&e.schema.writeOnly)):t,[i,s,t]),m=c&&1===h.length||u>=a;return e.createElement(Bi,null,n&&e.createElement(Di,null,r),e.createElement("tbody",null,d(h,(t,r)=>e.createElement(sl,{key:t.name,isLast:r,field:t,expandByDefault:m,fieldParentsName:Number(a)>1?l:[],renderDiscriminatorSwitch:(null==o?void 0:o.fieldName)===t.name?()=>e.createElement(al,{parent:o.parentSchema,enumValues:t.schema.enum}):void 0,className:t.expanded?"expanded":void 0,showExamples:p,skipReadOnly:i,skipWriteOnly:s,showTitle:n,level:a}))))});var cl=Object.defineProperty,pl=Object.defineProperties,ul=Object.getOwnPropertyDescriptors,dl=Object.getOwnPropertySymbols,hl=Object.prototype.hasOwnProperty,ml=Object.prototype.propertyIsEnumerable,fl=(e,t,r)=>t in e?cl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yl=(e,t)=>{for(var r in t||(t={}))hl.call(t,r)&&fl(e,r,t[r]);if(dl)for(var r of dl(t))ml.call(t,r)&&fl(e,r,t[r]);return e},gl=(e,t)=>pl(e,ul(t));const bl=ee.div`
|
|
1215
1227
|
padding-left: ${({theme:e})=>2*e.spacing.unit}px;
|
|
1216
|
-
`;class
|
|
1228
|
+
`;class xl extends e.PureComponent{render(){const t=this.props.schema,r=t.items,n=this.props.fieldParentsName,o=void 0===t.minItems&&void 0===t.maxItems?"":`(${it(t)})`,i=n?[...n.slice(0,-1),n[n.length-1]+"[]"]:n;return t.fields?e.createElement(ll,gl(yl({},this.props),{level:this.props.level,fieldParentsName:i})):!t.displayType||r||o.length?e.createElement("div",null,e.createElement(Vi,null," Array ",o),e.createElement(bl,null,e.createElement(Fl,gl(yl({},this.props),{schema:r,fieldParentsName:i}))),e.createElement(Hi,null)):e.createElement("div",null,e.createElement(ka,null,t.displayType))}}var vl=Object.defineProperty,wl=Object.defineProperties,kl=Object.getOwnPropertyDescriptor,El=Object.getOwnPropertyDescriptors,Ol=Object.getOwnPropertySymbols,jl=Object.prototype.hasOwnProperty,$l=Object.prototype.propertyIsEnumerable,Sl=(e,t,r)=>t in e?vl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Cl=(e,t,r,n)=>{for(var o,i=n>1?void 0:n?kl(t,r):t,s=e.length-1;s>=0;s--)(o=e[s])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&vl(t,r,i),i};let Pl=class extends e.Component{constructor(){super(...arguments),this.activateOneOf=()=>{this.props.schema.activateOneOf(this.props.idx)}}render(){const{idx:t,schema:r,subSchema:n}=this.props;return e.createElement(Wi,{$deprecated:n.deprecated,$active:t===r.activeOneOf,onClick:this.activateOneOf},n.title||n.typePrefix+n.displayType)}};Pl=Cl([ba.observer],Pl);let Il=class extends e.Component{render(){const{schema:{oneOf:t},schema:r}=this.props;if(void 0===t)return null;const n=t[r.activeOneOf];return e.createElement("div",null,e.createElement(Ui,null," ",r.oneOfType," "),e.createElement(Qi,null,t.map((t,n)=>e.createElement(Pl,{key:t.pointer,schema:r,subSchema:t,idx:n}))),e.createElement("div",null,t[r.activeOneOf].deprecated&&e.createElement(_i,{type:"warning"},"Deprecated")),e.createElement(Ba,{constraints:n.constraints}),e.createElement(Fl,(o=((e,t)=>{for(var r in t||(t={}))jl.call(t,r)&&Sl(e,r,t[r]);if(Ol)for(var r of Ol(t))$l.call(t,r)&&Sl(e,r,t[r]);return e})({},this.props),wl(o,El({schema:n})))));var o}};Il=Cl([ba.observer],Il);const Al=(0,ba.observer)(({schema:t})=>e.createElement("div",null,e.createElement(ka,null,t.displayType),t.title&&e.createElement(Ea,null," ",t.title," "),e.createElement(Sa,null," ",_("recursive")," ")));var Tl=Object.defineProperty,_l=Object.defineProperties,Rl=(Object.getOwnPropertyDescriptor,Object.getOwnPropertyDescriptors),Dl=Object.getOwnPropertySymbols,Ll=Object.prototype.hasOwnProperty,zl=Object.prototype.propertyIsEnumerable,Nl=(e,t,r)=>t in e?Tl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ml=(e,t)=>{for(var r in t||(t={}))Ll.call(t,r)&&Nl(e,r,t[r]);if(Dl)for(var r of Dl(t))zl.call(t,r)&&Nl(e,r,t[r]);return e},ql=(e,t)=>_l(e,Rl(t));let Fl=class extends e.Component{render(){var t;const r=this.props,{schema:n}=r,o=((e,t)=>{var r={};for(var n in e)Ll.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&Dl)for(var n of Dl(e))t.indexOf(n)<0&&zl.call(e,n)&&(r[n]=e[n]);return r})(r,["schema"]),i=(o.level||0)+1;if(!n)return e.createElement("em",null," Schema not provided ");const{type:s,oneOf:a,discriminatorProp:l,isCircular:c}=n;if(c)return e.createElement(Al,{schema:n});if(void 0!==l){if(!a||!a.length)return console.warn(`Looks like you are using discriminator wrong: you don't have any definition inherited from the ${n.title}`),null;const t=a[n.activeOneOf];return t.isCircular?e.createElement(Al,{schema:t}):e.createElement(ll,ql(Ml({},o),{level:i,schema:t,discriminator:{fieldName:l,parentSchema:n}}))}if(void 0!==a)return e.createElement(Il,Ml({schema:n},o));const p=I(s)?s:[s];if(p.includes("object")){if(null==(t=n.fields)?void 0:t.length)return e.createElement(ll,ql(Ml({},this.props),{level:i}))}else if(p.includes("array"))return e.createElement(xl,ql(Ml({},this.props),{level:i}));const u={schema:n,name:"",required:!1,description:n.description,externalDocs:n.externalDocs,deprecated:!1,toggle:()=>null,expanded:!1};return e.createElement("div",null,e.createElement(el,{field:u}))}};Fl=((e,t)=>{for(var r,n=t,o=e.length-1;o>=0;o--)(r=e[o])&&(n=r(n)||n);return n})([ba.observer],Fl);var Bl=Object.defineProperty,Ql=Object.defineProperties,Ul=Object.getOwnPropertyDescriptors,Wl=Object.getOwnPropertySymbols,Vl=Object.prototype.hasOwnProperty,Hl=Object.prototype.propertyIsEnumerable,Jl=(e,t,r)=>t in e?Bl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;class Yl extends e.PureComponent{constructor(){super(...arguments),this.renderDropdown=t=>{return e.createElement(Os,(r=((e,t)=>{for(var r in t||(t={}))Vl.call(t,r)&&Jl(e,r,t[r]);if(Wl)for(var r of Wl(t))Hl.call(t,r)&&Jl(e,r,t[r]);return e})({Label:gs,Dropdown:ma},t),Ql(r,Ul({variant:"dark"}))));var r}}static getMediaType(e,t){if(!e)return{};const r={schema:{$ref:e}};return t&&(r.examples={example:{$ref:t}}),r}get mediaModel(){const{parser:e,schemaRef:t,exampleRef:r,options:n}=this.props;return this._mediaModel||(this._mediaModel=new Zn(e,"json",!1,Yl.getMediaType(t,r),n)),this._mediaModel}render(){const{showReadOnly:t=!0,showWriteOnly:r=!1,showExample:n=!0}=this.props;return e.createElement(ui,null,e.createElement(mi,null,e.createElement(pi,null,e.createElement(Fl,{skipWriteOnly:!r,skipReadOnly:!t,schema:this.mediaModel.schema})),n&&e.createElement(hi,null,e.createElement(Gl,null,e.createElement(ya,{renderDropdown:this.renderDropdown,mediaType:this.mediaModel})))))}}const Gl=ee.div`
|
|
1217
1229
|
background: ${({theme:e})=>e.codeBlock.backgroundColor};
|
|
1218
1230
|
& > div,
|
|
1219
1231
|
& > pre {
|
|
@@ -1224,7 +1236,7 @@
|
|
|
1224
1236
|
& > div > pre {
|
|
1225
1237
|
padding: 0;
|
|
1226
1238
|
}
|
|
1227
|
-
`,
|
|
1239
|
+
`,Zl=(H().div`
|
|
1228
1240
|
background-color: #e4e7eb;
|
|
1229
1241
|
`,H().ul`
|
|
1230
1242
|
display: inline;
|
|
@@ -1257,7 +1269,7 @@
|
|
|
1257
1269
|
&:last-child:after {
|
|
1258
1270
|
content: none;
|
|
1259
1271
|
}
|
|
1260
|
-
`),
|
|
1272
|
+
`),Xl=H().span`
|
|
1261
1273
|
&:after {
|
|
1262
1274
|
content: ' and ';
|
|
1263
1275
|
font-weight: normal;
|
|
@@ -1267,8 +1279,8 @@
|
|
|
1267
1279
|
content: none;
|
|
1268
1280
|
}
|
|
1269
1281
|
|
|
1270
|
-
${
|
|
1271
|
-
`,
|
|
1282
|
+
${Ss};
|
|
1283
|
+
`,Kl=H().span`
|
|
1272
1284
|
${e=>!e.$expanded&&"white-space: nowrap;"}
|
|
1273
1285
|
&:after {
|
|
1274
1286
|
content: ' or ';
|
|
@@ -1281,11 +1293,11 @@
|
|
|
1281
1293
|
content: none;
|
|
1282
1294
|
}
|
|
1283
1295
|
|
|
1284
|
-
${
|
|
1285
|
-
`,
|
|
1296
|
+
${Ss};
|
|
1297
|
+
`,ec=H().div`
|
|
1286
1298
|
flex: 1 1 auto;
|
|
1287
1299
|
cursor: pointer;
|
|
1288
|
-
`,
|
|
1300
|
+
`,tc=H().div`
|
|
1289
1301
|
width: ${e=>e.theme.schema.defaultDetailsWidth};
|
|
1290
1302
|
text-overflow: ellipsis;
|
|
1291
1303
|
border-radius: 4px;
|
|
@@ -1294,10 +1306,10 @@
|
|
|
1294
1306
|
${K.lessThan("small")`
|
|
1295
1307
|
margin-top: 10px;
|
|
1296
1308
|
`}
|
|
1297
|
-
`,
|
|
1309
|
+
`,rc=H()(wi)`
|
|
1298
1310
|
display: inline-block;
|
|
1299
1311
|
margin: 0;
|
|
1300
|
-
`,
|
|
1312
|
+
`,nc=H().div`
|
|
1301
1313
|
width: 100%;
|
|
1302
1314
|
display: flex;
|
|
1303
1315
|
margin: 1em 0;
|
|
@@ -1305,9 +1317,9 @@
|
|
|
1305
1317
|
${K.lessThan("small")`
|
|
1306
1318
|
flex-direction: column;
|
|
1307
1319
|
`}
|
|
1308
|
-
`,
|
|
1320
|
+
`,oc=H().div`
|
|
1309
1321
|
margin: 0.5em 0;
|
|
1310
|
-
`,
|
|
1322
|
+
`,ic=H().div`
|
|
1311
1323
|
border-bottom: 1px solid ${({theme:e})=>e.colors.border.dark};
|
|
1312
1324
|
margin-bottom: 1.5em;
|
|
1313
1325
|
padding-bottom: 0.7em;
|
|
@@ -1321,20 +1333,20 @@
|
|
|
1321
1333
|
.redoc-markdown p:first-child {
|
|
1322
1334
|
display: inline;
|
|
1323
1335
|
}
|
|
1324
|
-
`;function
|
|
1336
|
+
`;function sc({children:t,height:r}){const n=e.createRef(),[o,i]=e.useState(!1),[s,a]=e.useState(!1);return e.useEffect(()=>{n.current&&n.current.clientHeight+20<n.current.scrollHeight&&a(!0)},[n]),e.createElement(e.Fragment,null,e.createElement(ac,{ref:n,className:o?"":"container",style:{height:o?"auto":r}},t),e.createElement(lc,{$dimmed:!o},s&&e.createElement(cc,{onClick:()=>{i(!o)}},o?"See less":"See more")))}const ac=H().div`
|
|
1325
1337
|
overflow-y: hidden;
|
|
1326
|
-
`,
|
|
1338
|
+
`,lc=H().div`
|
|
1327
1339
|
text-align: center;
|
|
1328
1340
|
line-height: 1.5em;
|
|
1329
1341
|
${({$dimmed:e})=>e&&"background-image: linear-gradient(to bottom, transparent,rgb(255 255 255));\n position: relative;\n top: -0.5em;\n padding-top: 0.5em;\n background-position-y: -1em;\n "}
|
|
1330
|
-
`,
|
|
1342
|
+
`,cc=H().a`
|
|
1331
1343
|
cursor: pointer;
|
|
1332
|
-
`,
|
|
1344
|
+
`,pc=e.memo(function(t){const{type:r,flow:n,RequiredScopes:o}=t,i=Object.keys((null==n?void 0:n.scopes)||{});return e.createElement(e.Fragment,null,e.createElement(oc,null,e.createElement("b",null,"Flow type: "),e.createElement("code",null,r," ")),("implicit"===r||"authorizationCode"===r)&&e.createElement(oc,null,e.createElement("strong",null," Authorization URL: "),e.createElement("code",null,e.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:n.authorizationUrl},n.authorizationUrl))),("password"===r||"clientCredentials"===r||"authorizationCode"===r)&&e.createElement(oc,null,e.createElement("b",null," Token URL: "),e.createElement("code",null,n.tokenUrl)),n.refreshUrl&&e.createElement(oc,null,e.createElement("strong",null," Refresh URL: "),e.createElement("code",null,n.refreshUrl)),!!i.length&&e.createElement(e.Fragment,null,o||null,e.createElement(oc,null,e.createElement("b",null," Scopes: ")),e.createElement(sc,{height:"4em"},e.createElement("ul",null,i.map(t=>e.createElement("li",{key:t},e.createElement("code",null,t)," -"," ",e.createElement(Ms,{className:"redoc-markdown",inline:!0,source:n.scopes[t]||""})))))))});function uc(t){const{RequiredScopes:r,scheme:n}=t;return e.createElement(Cs,null,n.apiKey?e.createElement(e.Fragment,null,e.createElement(oc,null,e.createElement("b",null,j(n.apiKey.in||"")," parameter name: "),e.createElement("code",null,n.apiKey.name)),r):n.http?e.createElement(e.Fragment,null,e.createElement(oc,null,e.createElement("b",null,"HTTP Authorization Scheme: "),e.createElement("code",null,n.http.scheme)),e.createElement(oc,null,"bearer"===n.http.scheme&&n.http.bearerFormat&&e.createElement(e.Fragment,null,e.createElement("b",null,"Bearer format: "),e.createElement("code",null,n.http.bearerFormat))),r):n.openId?e.createElement(e.Fragment,null,e.createElement(oc,null,e.createElement("b",null,"Connect URL: "),e.createElement("code",null,e.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:n.openId.connectUrl},n.openId.connectUrl))),r):n.flows?Object.keys(n.flows).map(t=>e.createElement(pc,{key:t,type:t,RequiredScopes:r,flow:n.flows[t]})):null)}const dc={oauth2:"OAuth2",apiKey:"API Key",http:"HTTP",openIdConnect:"OpenID Connect"};class hc extends e.PureComponent{render(){return this.props.securitySchemes.schemes.map(t=>e.createElement(ui,{id:t.sectionId,key:t.id},e.createElement(mi,null,e.createElement(pi,null,e.createElement(bi,null,e.createElement(Ii,{to:t.sectionId}),t.displayName),e.createElement(Ms,{source:t.description||""}),e.createElement(ic,null,e.createElement(oc,null,e.createElement("b",null,"Security Scheme Type: "),e.createElement("span",null,dc[t.type]||t.type)),e.createElement(uc,{scheme:t}))))))}}var mc=(e,t,r)=>new Promise((n,o)=>{var i=e=>{try{a(r.next(e))}catch(e){o(e)}},s=e=>{try{a(r.throw(e))}catch(e){o(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(i,s);a((r=r.apply(e,t)).next())});function fc(e,t){return mc(this,arguments,function*(e,t,r={}){const n=yield ge(e||t);return new yc(n,t,r)})}class yc{constructor(e,t,r={},n=!0){this.marker=new Ht,this.disposer=null,this.rawOptions=r,this.options=new W(r,gc),this.scroll=new li(this.options),oi.updateOnHistory(Wt.currentId,this.scroll),this.spec=new No(e,t,this.options),this.menu=new oi(this.spec,this.scroll,Wt),this.options.disableSearch||(this.search=new ci,n&&this.search.indexItems(this.menu.items),this.disposer=(0,de.observe)(this.menu,"activeItemIdx",e=>{this.updateMarkOnMenu(e.newValue)}))}static fromJS(e){const t=new yc(e.spec.data,e.spec.url,e.options,!1);return t.menu.activeItemIdx=e.menu.activeItemIdx||0,t.menu.activate(t.menu.flatItems[t.menu.activeItemIdx]),t.options.disableSearch||t.search.load(e.searchIndex),t}onDidMount(){this.menu.updateOnHistory(),this.updateMarkOnMenu(this.menu.activeItemIdx)}dispose(){this.scroll.dispose(),this.menu.dispose(),this.search&&this.search.dispose(),null!=this.disposer&&this.disposer()}toJS(){return mc(this,null,function*(){return{menu:{activeItemIdx:this.menu.activeItemIdx},spec:{url:this.spec.parser.specUrl,data:this.spec.parser.spec},searchIndex:this.search?yield this.search.toJS():void 0,options:this.rawOptions}})}updateMarkOnMenu(e){const t=Math.max(0,e),r=Math.min(this.menu.flatItems.length,t+5),n=[];for(let e=t;e<r;e++){const t=this.menu.getElementAt(e);t&&n.push(t)}if(-1===e&&s){const e=document.querySelector('[data-role="redoc-description"]'),t=document.querySelector('[data-role="redoc-summary"]');e&&n.push(e),t&&n.push(t)}this.marker.addOnly(n),this.marker.mark()}}const gc={allowedMdComponents:{[dt]:{component:hc,propsSelector:e=>({securitySchemes:e.spec.securitySchemes})},[ht]:{component:hc,propsSelector:e=>({securitySchemes:e.spec.securitySchemes})},[mt]:{component:Yl,propsSelector:e=>({parser:e.spec.parser,options:e.options})}}},bc=ee(gi)`
|
|
1333
1345
|
margin-top: 0;
|
|
1334
1346
|
margin-bottom: 0.5em;
|
|
1335
1347
|
|
|
1336
1348
|
${te("ApiHeader")};
|
|
1337
|
-
`,
|
|
1349
|
+
`,xc=ee.a`
|
|
1338
1350
|
border: 1px solid ${e=>e.theme.colors.primary.main};
|
|
1339
1351
|
color: ${e=>e.theme.colors.primary.main};
|
|
1340
1352
|
font-weight: normal;
|
|
@@ -1345,7 +1357,7 @@
|
|
|
1345
1357
|
cursor: pointer;
|
|
1346
1358
|
|
|
1347
1359
|
${te("DownloadButton")};
|
|
1348
|
-
`,
|
|
1360
|
+
`,vc=ee.span`
|
|
1349
1361
|
&::before {
|
|
1350
1362
|
content: '|';
|
|
1351
1363
|
display: inline-block;
|
|
@@ -1357,24 +1369,24 @@
|
|
|
1357
1369
|
&:last-child::after {
|
|
1358
1370
|
display: none;
|
|
1359
1371
|
}
|
|
1360
|
-
`,
|
|
1372
|
+
`,wc=ee.div`
|
|
1361
1373
|
overflow: hidden;
|
|
1362
|
-
`,
|
|
1374
|
+
`,kc=ee.div`
|
|
1363
1375
|
display: flex;
|
|
1364
1376
|
flex-wrap: wrap;
|
|
1365
1377
|
// hide separator on new lines: idea from https://stackoverflow.com/a/31732902/1749888
|
|
1366
1378
|
margin-left: -${15}px;
|
|
1367
|
-
`;Object.defineProperty,Object.getOwnPropertyDescriptor;let
|
|
1379
|
+
`;Object.defineProperty,Object.getOwnPropertyDescriptor;let Ec=class extends e.Component{render(){const{store:t}=this.props,{info:r,externalDocs:n}=t.spec,o=t.options.hideDownloadButtons,i=r.downloadUrls,s=r.downloadFileName,a=r.license&&e.createElement(vc,null,"License:"," ",r.license.identifier?r.license.identifier:e.createElement("a",{href:r.license.url},r.license.name))||null,l=r.contact&&r.contact.url&&e.createElement(vc,null,"URL: ",e.createElement("a",{href:r.contact.url},r.contact.url))||null,c=r.contact&&r.contact.email&&e.createElement(vc,null,r.contact.name||"E-mail",":"," ",e.createElement("a",{href:"mailto:"+r.contact.email},r.contact.email))||null,p=r.termsOfService&&e.createElement(vc,null,e.createElement("a",{href:r.termsOfService},"Terms of Service"))||null,u=r.version&&e.createElement("span",null,"(",r.version,")")||null;return e.createElement(ui,null,e.createElement(mi,null,e.createElement(pi,{className:"api-info"},e.createElement(bc,null,r.title," ",u),!o&&e.createElement("p",null,_("downloadSpecification"),":",null==i?void 0:i.map(({title:t,url:r})=>e.createElement(xc,{download:s||!0,target:"_blank",href:r,rel:"noreferrer",key:r},t))),e.createElement(Cs,null,(r.license||r.contact||r.termsOfService)&&e.createElement(wc,null,e.createElement(kc,null,c," ",l," ",a," ",p))||null),e.createElement(Ms,{source:t.spec.info.summary,"data-role":"redoc-summary"}),e.createElement(Ms,{source:t.spec.info.description,"data-role":"redoc-description"}),n&&e.createElement(Ra,{externalDocs:n}))))}};Ec=((e,t)=>{for(var r,n=t,o=e.length-1;o>=0;o--)(r=e[o])&&(n=r(n)||n);return n})([ba.observer],Ec);const Oc=ee.img`
|
|
1368
1380
|
max-height: ${e=>e.theme.logo.maxHeight};
|
|
1369
1381
|
max-width: ${e=>e.theme.logo.maxWidth};
|
|
1370
1382
|
padding: ${e=>e.theme.logo.gutter};
|
|
1371
1383
|
width: 100%;
|
|
1372
1384
|
display: block;
|
|
1373
|
-
`,
|
|
1385
|
+
`,jc=ee.div`
|
|
1374
1386
|
text-align: center;
|
|
1375
|
-
|
|
1387
|
+
`,$c=ee.a`
|
|
1376
1388
|
display: inline-block;
|
|
1377
|
-
`;Object.defineProperty,Object.getOwnPropertyDescriptor;let
|
|
1389
|
+
`;Object.defineProperty,Object.getOwnPropertyDescriptor;let Sc=class extends e.Component{render(){const{info:t}=this.props,r=t["x-logo"];if(!r||!r.url)return null;const n=r.href||t.contact&&t.contact.url,o=r.altText?r.altText:"logo",i=e.createElement(Oc,{src:r.url,alt:o});return e.createElement(jc,{style:{backgroundColor:r.backgroundColor}},n?(s=n,t=>e.createElement($c,{href:s},t))(i):i);var s}};Sc=((e,t)=>{for(var r,n=t,o=e.length-1;o>=0;o--)(r=e[o])&&(n=r(n)||n);return n})([ba.observer],Sc);var Cc=Object.defineProperty,Pc=Object.getOwnPropertySymbols,Ic=Object.prototype.hasOwnProperty,Ac=Object.prototype.propertyIsEnumerable,Tc=(e,t,r)=>t in e?Cc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_c=(e,t)=>{for(var r in t||(t={}))Ic.call(t,r)&&Tc(e,r,t[r]);if(Pc)for(var r of Pc(t))Ac.call(t,r)&&Tc(e,r,t[r]);return e};class Rc extends e.Component{render(){return e.createElement(ue,null,t=>e.createElement(ji,null,e=>this.renderWithOptionsAndStore(t,e)))}renderWithOptionsAndStore(t,r){const{source:n,htmlWrap:o=e=>e}=this.props;if(!r)throw new Error("When using components in markdown, store prop must be provided");const i=new Wr(t,this.props.parentId).renderMdWithComponents(n);return i.length?i.map((t,n)=>{if("string"==typeof t)return e.cloneElement(o(e.createElement(Ns,{html:t,inline:!1,compact:!1})),{key:n});const i=t.component;return e.createElement(i,_c({key:n},_c(_c({},t.props),t.propsSelector(r))))}):null}}var Dc=require("classnames");const Lc=ee.span.attrs(e=>({className:`operation-type ${e.type}`}))`
|
|
1378
1390
|
width: 9ex;
|
|
1379
1391
|
display: inline-block;
|
|
1380
1392
|
height: ${e=>e.theme.typography.code.fontSize};
|
|
@@ -1436,7 +1448,7 @@
|
|
|
1436
1448
|
&.schema {
|
|
1437
1449
|
background-color: ${({theme:e})=>e.colors.http.basic};
|
|
1438
1450
|
}
|
|
1439
|
-
`;function
|
|
1451
|
+
`;function zc(e,{theme:t},r){return e>1?t.sidebar.level1Items[r]:1===e?t.sidebar.groupItems[r]:""}const Nc=ee.ul`
|
|
1440
1452
|
margin: 0;
|
|
1441
1453
|
padding: 0;
|
|
1442
1454
|
|
|
@@ -1449,13 +1461,13 @@
|
|
|
1449
1461
|
}
|
|
1450
1462
|
|
|
1451
1463
|
${e=>e.$expanded?"":"display: none;"};
|
|
1452
|
-
`,
|
|
1464
|
+
`,Mc=ee.li`
|
|
1453
1465
|
list-style: none inside none;
|
|
1454
1466
|
overflow: hidden;
|
|
1455
1467
|
text-overflow: ellipsis;
|
|
1456
1468
|
padding: 0;
|
|
1457
1469
|
${e=>0===e.depth?"margin-top: 15px":""};
|
|
1458
|
-
`,
|
|
1470
|
+
`,qc={0:Y`
|
|
1459
1471
|
opacity: 0.7;
|
|
1460
1472
|
text-transform: ${({theme:e})=>e.sidebar.groupItems.textTransform};
|
|
1461
1473
|
font-size: 0.8em;
|
|
@@ -1464,39 +1476,39 @@
|
|
|
1464
1476
|
`,1:Y`
|
|
1465
1477
|
font-size: 0.929em;
|
|
1466
1478
|
text-transform: ${({theme:e})=>e.sidebar.level1Items.textTransform};
|
|
1467
|
-
`},
|
|
1479
|
+
`},Fc=ee.label.attrs(e=>({className:Dc("-depth"+e.$depth,{active:e.$active})}))`
|
|
1468
1480
|
cursor: pointer;
|
|
1469
|
-
color: ${e=>e.$active?
|
|
1481
|
+
color: ${e=>e.$active?zc(e.$depth,e,"activeTextColor"):e.theme.sidebar.textColor};
|
|
1470
1482
|
margin: 0;
|
|
1471
1483
|
padding: 12.5px ${e=>4*e.theme.spacing.unit}px;
|
|
1472
1484
|
${({$depth:e,$type:t,theme:r})=>"section"===t&&e>1&&"padding-left: "+8*r.spacing.unit+"px;"||""}
|
|
1473
1485
|
display: flex;
|
|
1474
1486
|
justify-content: space-between;
|
|
1475
1487
|
font-family: ${e=>e.theme.typography.headings.fontFamily};
|
|
1476
|
-
${e=>
|
|
1477
|
-
background-color: ${e=>e.$active?
|
|
1488
|
+
${e=>qc[e.$depth]};
|
|
1489
|
+
background-color: ${e=>e.$active?zc(e.$depth,e,"activeBackgroundColor"):e.theme.sidebar.backgroundColor};
|
|
1478
1490
|
|
|
1479
|
-
${e=>e.$deprecated&&
|
|
1491
|
+
${e=>e.$deprecated&&Ri||""};
|
|
1480
1492
|
|
|
1481
1493
|
&:hover {
|
|
1482
|
-
color: ${e=>
|
|
1483
|
-
background-color: ${e=>
|
|
1494
|
+
color: ${e=>zc(e.$depth,e,"activeTextColor")};
|
|
1495
|
+
background-color: ${e=>zc(e.$depth,e,"activeBackgroundColor")};
|
|
1484
1496
|
}
|
|
1485
1497
|
|
|
1486
|
-
${
|
|
1498
|
+
${Ti} {
|
|
1487
1499
|
height: ${({theme:e})=>e.sidebar.arrow.size};
|
|
1488
1500
|
width: ${({theme:e})=>e.sidebar.arrow.size};
|
|
1489
1501
|
polygon {
|
|
1490
1502
|
fill: ${({theme:e})=>e.sidebar.arrow.color};
|
|
1491
1503
|
}
|
|
1492
1504
|
}
|
|
1493
|
-
`,
|
|
1505
|
+
`,Bc=ee.span`
|
|
1494
1506
|
display: inline-block;
|
|
1495
1507
|
vertical-align: middle;
|
|
1496
1508
|
width: ${e=>e.width?e.width:"auto"};
|
|
1497
1509
|
overflow: hidden;
|
|
1498
1510
|
text-overflow: ellipsis;
|
|
1499
|
-
`,
|
|
1511
|
+
`,Qc=ee.div`
|
|
1500
1512
|
${({theme:e})=>Y`
|
|
1501
1513
|
font-size: 0.8em;
|
|
1502
1514
|
margin-top: ${2*e.spacing.unit}px;
|
|
@@ -1526,7 +1538,7 @@
|
|
|
1526
1538
|
${K.lessThan("small")`
|
|
1527
1539
|
width: 100%;
|
|
1528
1540
|
`};
|
|
1529
|
-
`,
|
|
1541
|
+
`,Uc=ee.button`
|
|
1530
1542
|
border: 0;
|
|
1531
1543
|
width: 100%;
|
|
1532
1544
|
text-align: left;
|
|
@@ -1534,17 +1546,17 @@
|
|
|
1534
1546
|
vertical-align: middle;
|
|
1535
1547
|
}
|
|
1536
1548
|
|
|
1537
|
-
${
|
|
1549
|
+
${Ti} {
|
|
1538
1550
|
polygon {
|
|
1539
1551
|
fill: ${({theme:e})=>(0,t.darken)(e.colors.tonalOffset,e.colors.gray[100])};
|
|
1540
1552
|
}
|
|
1541
1553
|
}
|
|
1542
|
-
`,
|
|
1554
|
+
`,Wc=ee.span`
|
|
1543
1555
|
text-decoration: ${e=>e.$deprecated?"line-through":"none"};
|
|
1544
1556
|
margin-right: 8px;
|
|
1545
|
-
`,
|
|
1557
|
+
`,Vc=ee(Lc)`
|
|
1546
1558
|
margin: 0 5px 0 0;
|
|
1547
|
-
`,
|
|
1559
|
+
`,Hc=ee(t=>{const{name:r,opened:n,className:o,onClick:i,httpVerb:s,deprecated:a}=t;return e.createElement(Uc,{className:o,onClick:i||void 0},e.createElement(Vc,{type:s},gt(s)),e.createElement(Ti,{size:"1.5em",direction:n?"down":"right",float:"left"}),e.createElement(Wc,{$deprecated:a},r),a?e.createElement(_i,{type:"warning"}," ",_("deprecated")," "):null)})`
|
|
1548
1560
|
padding: 10px;
|
|
1549
1561
|
border-radius: 2px;
|
|
1550
1562
|
margin-bottom: 4px;
|
|
@@ -1552,22 +1564,22 @@
|
|
|
1552
1564
|
background-color: ${({theme:e})=>e.colors.gray[100]};
|
|
1553
1565
|
cursor: pointer;
|
|
1554
1566
|
outline-color: ${({theme:e})=>(0,t.darken)(e.colors.tonalOffset,e.colors.gray[100])};
|
|
1555
|
-
`,
|
|
1567
|
+
`,Jc=ee.div`
|
|
1556
1568
|
padding: 10px 25px;
|
|
1557
1569
|
background-color: ${({theme:e})=>e.colors.gray[50]};
|
|
1558
1570
|
margin-bottom: 5px;
|
|
1559
1571
|
margin-top: 5px;
|
|
1560
|
-
`;class
|
|
1572
|
+
`;class Yc extends e.PureComponent{constructor(){super(...arguments),this.selectElement=()=>{Hs.selectElement(this.child)}}render(){const{children:t}=this.props;return e.createElement("div",{ref:e=>this.child=e,onClick:this.selectElement,onFocus:this.selectElement,tabIndex:0,role:"button"},t)}}const Gc=ee.div`
|
|
1561
1573
|
cursor: pointer;
|
|
1562
1574
|
position: relative;
|
|
1563
1575
|
margin-bottom: 5px;
|
|
1564
|
-
`,
|
|
1576
|
+
`,Zc=ee.span`
|
|
1565
1577
|
font-family: ${e=>e.theme.typography.code.fontFamily};
|
|
1566
1578
|
margin-left: 10px;
|
|
1567
1579
|
flex: 1;
|
|
1568
1580
|
overflow-x: hidden;
|
|
1569
1581
|
text-overflow: ellipsis;
|
|
1570
|
-
`,
|
|
1582
|
+
`,Xc=ee.button`
|
|
1571
1583
|
outline: 0;
|
|
1572
1584
|
color: inherit;
|
|
1573
1585
|
width: 100%;
|
|
@@ -1585,13 +1597,13 @@
|
|
|
1585
1597
|
|
|
1586
1598
|
${e=>e.$expanded&&!e.$inverted&&`border-color: ${e.theme.colors.border.dark};`||""}
|
|
1587
1599
|
|
|
1588
|
-
.${
|
|
1600
|
+
.${Zc} {
|
|
1589
1601
|
color: ${e=>e.$inverted?e.theme.colors.text.primary:"#ffffff"};
|
|
1590
1602
|
}
|
|
1591
1603
|
&:focus {
|
|
1592
1604
|
box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.45), 0 2px 0 rgba(128, 128, 128, 0.25);
|
|
1593
1605
|
}
|
|
1594
|
-
`,
|
|
1606
|
+
`,Kc=ee.span.attrs(e=>({className:`http-verb ${e.type}`}))`
|
|
1595
1607
|
font-size: ${e=>e.$compact?"0.8em":"0.929em"};
|
|
1596
1608
|
line-height: ${e=>e.$compact?"18px":"20px"};
|
|
1597
1609
|
background-color: ${e=>e.theme.colors.http[e.type]||"#999999"};
|
|
@@ -1600,7 +1612,7 @@
|
|
|
1600
1612
|
text-transform: uppercase;
|
|
1601
1613
|
font-family: ${e=>e.theme.typography.headings.fontFamily};
|
|
1602
1614
|
margin: 0;
|
|
1603
|
-
`,
|
|
1615
|
+
`,ep=ee.div`
|
|
1604
1616
|
position: absolute;
|
|
1605
1617
|
width: 100%;
|
|
1606
1618
|
z-index: 100;
|
|
@@ -1614,9 +1626,9 @@
|
|
|
1614
1626
|
transition: all 0.25s ease;
|
|
1615
1627
|
visibility: hidden;
|
|
1616
1628
|
${e=>e.$expanded?"visibility: visible;":"transform: translateY(-50%) scaleY(0);"}
|
|
1617
|
-
`,
|
|
1629
|
+
`,tp=ee.div`
|
|
1618
1630
|
padding: 10px;
|
|
1619
|
-
`,
|
|
1631
|
+
`,rp=ee.div`
|
|
1620
1632
|
padding: 5px;
|
|
1621
1633
|
border: 1px solid #ccc;
|
|
1622
1634
|
background: ${e=>e.theme.rightPanel.servers.url.backgroundColor};
|
|
@@ -1625,13 +1637,13 @@
|
|
|
1625
1637
|
> span {
|
|
1626
1638
|
color: ${e=>e.theme.colors.text.primary};
|
|
1627
1639
|
}
|
|
1628
|
-
`;class
|
|
1629
|
-
${
|
|
1630
|
-
`,
|
|
1631
|
-
${
|
|
1640
|
+
`;class np extends e.Component{constructor(e){super(e),this.toggle=()=>{this.setState({expanded:!this.state.expanded})},this.state={expanded:!1}}render(){const{operation:t,inverted:r,hideHostname:n}=this.props,{expanded:o}=this.state;return e.createElement(ce.Consumer,null,i=>e.createElement(Gc,null,e.createElement(Xc,{onClick:this.toggle,$expanded:o,$inverted:r},e.createElement(Kc,{type:t.httpVerb,$compact:this.props.compact},t.httpVerb),e.createElement(Zc,null,t.path),e.createElement(Ti,{float:"right",color:r?"black":"white",size:"20px",direction:o?"up":"down",style:{marginRight:"-25px"}})),e.createElement(ep,{$expanded:o,"aria-hidden":!o},t.servers.map(r=>{const o=i.expandDefaultServerVariables?pt(r.url,r.variables):r.url,s=O(o);return e.createElement(tp,{key:o},e.createElement(Ms,{source:r.description||"",compact:!0}),e.createElement(Yc,null,e.createElement(rp,null,e.createElement("span",null,n||i.hideHostname?"/"===s?"":s:o),t.path)))}))))}}class op extends e.PureComponent{render(){const{place:t,parameters:r}=this.props;return r&&r.length?e.createElement("div",{key:t},e.createElement(wi,null,t," Parameters"),e.createElement(Bi,null,e.createElement("tbody",null,d(r,(t,r)=>e.createElement(sl,{key:t.name,isLast:r,field:t,showExamples:!0}))))):null}}Object.defineProperty,Object.getOwnPropertyDescriptor;let ip=class extends e.Component{constructor(){super(...arguments),this.switchMedia=({idx:e})=>{this.props.content&&void 0!==e&&this.props.content.activate(e)}}render(){const{content:t}=this.props;if(!t||!t.mediaTypes||!t.mediaTypes.length)return null;const r=t.activeMimeIdx,n=t.mediaTypes.map((e,t)=>({value:e.name,idx:t})),o=({children:t})=>this.props.withLabel?e.createElement(ha,null,e.createElement(da,null,"Content type"),t):t;return e.createElement(e.Fragment,null,e.createElement(o,null,this.props.renderDropdown({value:n[r].value,options:n,onChange:this.switchMedia,ariaLabel:"Content type"})),this.props.children(t.active))}};ip=((e,t)=>{for(var r,n=t,o=e.length-1;o>=0;o--)(r=e[o])&&(n=r(n)||n);return n})([ba.observer],ip);var sp=Object.defineProperty,ap=Object.getOwnPropertySymbols,lp=Object.prototype.hasOwnProperty,cp=Object.prototype.propertyIsEnumerable,pp=(e,t,r)=>t in e?sp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,up=(e,t)=>{for(var r in t||(t={}))lp.call(t,r)&&pp(e,r,t[r]);if(ap)for(var r of ap(t))cp.call(t,r)&&pp(e,r,t[r]);return e},dp=(e,t)=>{var r={};for(var n in e)lp.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&ap)for(var n of ap(e))t.indexOf(n)<0&&cp.call(e,n)&&(r[n]=e[n]);return r};const hp=["path","query","cookie","header"];class mp extends e.PureComponent{orderParams(e){const t={};return e.forEach(e=>{var r,n,o;o=e,(r=t)[n=e.in]||(r[n]=[]),r[n].push(o)}),t}render(){const{body:t,parameters:r=[]}=this.props;if(void 0===t&&void 0===r)return null;const n=this.orderParams(r),o=r.length>0?hp:[],i=t&&t.content,s=t&&t.description,a=t&&t.required;return e.createElement(e.Fragment,null,o.map(t=>e.createElement(op,{key:t,place:t,parameters:n[t]})),i&&e.createElement(yp,{content:i,description:s,bodyRequired:a}))}}function fp(t){var r=t,{bodyRequired:n}=r,o=dp(r,["bodyRequired"]);const i="boolean"==typeof n&&!!n,s="boolean"==typeof n&&!n;return e.createElement(wi,{key:"header"},"Request Body schema: ",e.createElement(Os,up({},o)),i&&e.createElement(bp,null,"required"),s&&e.createElement(xp,null,"optional"))}function yp(t){const{content:r,description:n,bodyRequired:o}=t,{isRequestType:i}=r;return e.createElement(ip,{content:r,renderDropdown:t=>e.createElement(fp,up({bodyRequired:o},t))},({schema:t})=>e.createElement(e.Fragment,null,void 0!==n&&e.createElement(Ms,{source:n}),"object"===(null==t?void 0:t.type)&&e.createElement(Ba,{constraints:(null==t?void 0:t.constraints)||[]}),e.createElement(Fl,{skipReadOnly:i,skipWriteOnly:!i,key:"schema",schema:t})))}const gp="\n text-transform: lowercase;\n margin-left: 0;\n line-height: 1.5em;\n",bp=ee(ja)`
|
|
1641
|
+
${gp}
|
|
1642
|
+
`,xp=ee("div")`
|
|
1643
|
+
${gp}
|
|
1632
1644
|
color: ${({theme:e})=>e.colors.text.secondary};
|
|
1633
1645
|
font-size: ${e=>e.theme.schema.labelsTextSize};
|
|
1634
|
-
`,
|
|
1646
|
+
`,vp=e.memo(function({title:t,type:r,empty:n,code:o,opened:i,className:s,onClick:a}){return e.createElement("button",{className:s,onClick:!n&&a||void 0,"aria-expanded":i,disabled:n},!n&&e.createElement(Ti,{size:"1.5em",color:r,direction:i?"down":"right",float:"left"}),e.createElement(Op,null,o," "),e.createElement(Ms,{compact:!0,inline:!0,source:t}))}),wp=ee(vp)`
|
|
1635
1647
|
display: block;
|
|
1636
1648
|
border: 0;
|
|
1637
1649
|
width: 100%;
|
|
@@ -1648,36 +1660,36 @@
|
|
|
1648
1660
|
outline: auto ${e=>e.theme.colors.responses[e.type].color};
|
|
1649
1661
|
}
|
|
1650
1662
|
${e=>e.empty?'\ncursor: default;\n&::before {\n content: "—";\n font-weight: bold;\n width: 1.5em;\n text-align: center;\n display: inline-block;\n vertical-align: top;\n}\n&:focus {\n outline: 0;\n}\n':""};
|
|
1651
|
-
`,
|
|
1663
|
+
`,kp=ee.div`
|
|
1652
1664
|
padding: 10px;
|
|
1653
|
-
`,
|
|
1665
|
+
`,Ep=ee(wi).attrs({as:"caption"})`
|
|
1654
1666
|
text-align: left;
|
|
1655
1667
|
margin-top: 1em;
|
|
1656
1668
|
caption-side: top;
|
|
1657
|
-
`,
|
|
1669
|
+
`,Op=ee.strong`
|
|
1658
1670
|
vertical-align: top;
|
|
1659
|
-
`;class
|
|
1671
|
+
`;class jp extends e.PureComponent{render(){const{headers:t}=this.props;return void 0===t||0===t.length?null:e.createElement(Bi,null,e.createElement(Ep,null," Response Headers "),e.createElement("tbody",null,d(t,(t,r)=>e.createElement(sl,{isLast:r,key:t.name,field:t,showExamples:!0}))))}}var $p=Object.defineProperty,Sp=Object.getOwnPropertySymbols,Cp=Object.prototype.hasOwnProperty,Pp=Object.prototype.propertyIsEnumerable,Ip=(e,t,r)=>t in e?$p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;class Ap extends e.PureComponent{constructor(){super(...arguments),this.renderDropdown=t=>e.createElement(wi,{key:"header"},"Response Schema: ",e.createElement(Os,((e,t)=>{for(var r in t||(t={}))Cp.call(t,r)&&Ip(e,r,t[r]);if(Sp)for(var r of Sp(t))Pp.call(t,r)&&Ip(e,r,t[r]);return e})({},t)))}render(){const{description:t,extensions:r,headers:n,content:o}=this.props.response;return e.createElement(e.Fragment,null,t&&e.createElement(Ms,{source:t}),e.createElement(Ma,{extensions:r}),e.createElement(jp,{headers:n}),e.createElement(ip,{content:o,renderDropdown:this.renderDropdown},({schema:t})=>e.createElement(e.Fragment,null,"object"===(null==t?void 0:t.type)&&e.createElement(Ba,{constraints:(null==t?void 0:t.constraints)||[]}),e.createElement(Fl,{skipWriteOnly:!0,key:"schema",schema:t}))))}}const Tp=(0,ba.observer)(({response:t})=>{const{extensions:r,headers:n,type:o,summary:i,description:s,code:a,expanded:l,content:c}=t,p=e.useMemo(()=>void 0===c?[]:c.mediaTypes.filter(e=>void 0!==e.schema),[c]),u=e.useMemo(()=>!(r&&0!==Object.keys(r).length||0!==n.length||0!==p.length||s),[r,n,p,s]);return e.createElement("div",null,e.createElement(wp,{onClick:()=>t.toggle(),type:o,empty:u,title:i||"",code:a,opened:l}),l&&!u&&e.createElement(kp,null,e.createElement(Ap,{response:t})))}),_p=ee.h3`
|
|
1660
1672
|
font-size: 1.3em;
|
|
1661
1673
|
padding: 0.2em 0;
|
|
1662
1674
|
margin: 3em 0 1.1em;
|
|
1663
1675
|
color: ${({theme:e})=>e.colors.text.primary};
|
|
1664
1676
|
font-weight: normal;
|
|
1665
|
-
`;class
|
|
1677
|
+
`;class Rp extends e.PureComponent{render(){const{responses:t,isCallback:r}=this.props;return t&&0!==t.length?e.createElement("div",null,e.createElement(_p,null,_(r?"callbackResponses":"responses")),t.map(t=>e.createElement(Tp,{key:t.code,response:t}))):null}}function Dp(t){const{security:r,showSecuritySchemeType:n,expanded:o}=t,i=r.schemes.length>1;return 0===r.schemes.length?e.createElement(Kl,{$expanded:o},"None"):e.createElement(Kl,{$expanded:o},i&&"(",r.schemes.map(t=>e.createElement(Xl,{key:t.id},n&&`${dc[t.type]||t.type}: `,e.createElement("i",null,t.displayName),o&&t.scopes.length?[" (",t.scopes.map(t=>e.createElement(Zl,{key:t},t)),") "]:null)),i&&") ")}const Lp=({scopes:t})=>t.length?e.createElement("div",null,e.createElement("b",null,"Required scopes: "),t.map((t,r)=>e.createElement(e.Fragment,{key:r},e.createElement("code",null,t)," "))):null;function zp(t){const r=Si(),n=null==r?void 0:r.options.showSecuritySchemeType,[o,i]=(0,e.useState)(!1),{securities:s}=t;if(!(null==s?void 0:s.length)||(null==r?void 0:r.options.hideSecuritySection))return null;const a=null==r?void 0:r.spec.securitySchemes.schemes.filter(({id:e})=>s.find(t=>t.schemes.find(t=>t.id===e)));return e.createElement(e.Fragment,null,e.createElement(nc,{$expanded:o},e.createElement(ec,{onClick:()=>i(!o)},e.createElement(rc,null,"Authorizations:"),e.createElement(Ti,{size:"1.3em",direction:o?"down":"right"})),e.createElement(tc,{$expanded:o},s.map((t,r)=>e.createElement(Dp,{key:r,expanded:o,showSecuritySchemeType:n,security:t})))),o&&!!(null==a?void 0:a.length)&&a.map((t,r)=>e.createElement(ic,{key:r},e.createElement("h5",null,e.createElement(Np,null)," ",dc[t.type]||t.type,": ",t.id),e.createElement(Ms,{source:t.description||""}),e.createElement(uc,{key:t.id,scheme:t,RequiredScopes:e.createElement(Lp,{scopes:Mp(t.id,s)})}))))}const Np=()=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"11",height:"11"},e.createElement("path",{fill:"currentColor",d:"M18 10V6A6 6 0 0 0 6 6v4H3v14h18V10h-3zM8 6c0-2.206 1.794-4 4-4s4 1.794 4 4v4H8V6zm11 16H5V12h14v10z"}));function Mp(e,t){const r=[];let n=t.length;for(;n--;){const o=t[n];let i=o.schemes.length;for(;i--;){const t=o.schemes[i];t.id===e&&Array.isArray(t.scopes)&&r.push(...t.scopes)}}return Array.from(new Set(r))}Object.defineProperty,Object.getOwnPropertyDescriptor;let qp=class extends e.Component{render(){const{operation:t}=this.props,{description:r,externalDocs:n}=t,o=!(!r&&!n);return e.createElement(Jc,null,o&&e.createElement(Fp,null,void 0!==r&&e.createElement(Ms,{source:r}),n&&e.createElement(Ra,{externalDocs:n})),e.createElement(np,{operation:this.props.operation,inverted:!0,compact:!0}),e.createElement(Ma,{extensions:t.extensions}),e.createElement(zp,{securities:t.security}),e.createElement(mp,{parameters:t.parameters,body:t.requestBody}),e.createElement(Rp,{responses:t.responses,isCallback:t.isCallback}))}};qp=((e,t)=>{for(var r,n=t,o=e.length-1;o>=0;o--)(r=e[o])&&(n=r(n)||n);return n})([ba.observer],qp);const Fp=ee.div`
|
|
1666
1678
|
margin-bottom: ${({theme:e})=>3*e.spacing.unit}px;
|
|
1667
|
-
`;Object.defineProperty,Object.getOwnPropertyDescriptor;let
|
|
1679
|
+
`;Object.defineProperty,Object.getOwnPropertyDescriptor;let Bp=class extends e.Component{constructor(){super(...arguments),this.toggle=()=>{this.props.callbackOperation.toggle()}}render(){const{name:t,expanded:r,httpVerb:n,deprecated:o}=this.props.callbackOperation;return e.createElement(e.Fragment,null,e.createElement(Hc,{onClick:this.toggle,name:t,opened:r,httpVerb:n,deprecated:o}),r&&e.createElement(qp,{operation:this.props.callbackOperation}))}};Bp=((e,t)=>{for(var r,n=t,o=e.length-1;o>=0;o--)(r=e[o])&&(n=r(n)||n);return n})([ba.observer],Bp);class Qp extends e.PureComponent{render(){const{callbacks:t}=this.props;return t&&0!==t.length?e.createElement("div",null,e.createElement(Up,null," Callbacks "),t.map(t=>t.operations.map((r,n)=>e.createElement(Bp,{key:`${t.name}_${n}`,callbackOperation:r})))):null}}const Up=ee.h3`
|
|
1668
1680
|
font-size: 1.3em;
|
|
1669
1681
|
padding: 0.2em 0;
|
|
1670
1682
|
margin: 3em 0 1.1em;
|
|
1671
1683
|
color: ${({theme:e})=>e.colors.text.primary};
|
|
1672
1684
|
font-weight: normal;
|
|
1673
|
-
`;Object.defineProperty,Object.getOwnPropertyDescriptor;let
|
|
1685
|
+
`;Object.defineProperty,Object.getOwnPropertyDescriptor;let Wp=class extends e.Component{constructor(e){super(e),this.switchItem=({idx:e})=>{this.props.items&&void 0!==e&&this.setState({activeItemIdx:e})},this.state={activeItemIdx:0}}render(){const{items:t}=this.props;if(!t||!t.length)return null;const r=({children:t})=>this.props.label?e.createElement(ha,null,e.createElement(da,null,this.props.label),t):t;return e.createElement(e.Fragment,null,e.createElement(r,null,this.props.renderDropdown({value:this.props.options[this.state.activeItemIdx].value,options:this.props.options,onChange:this.switchItem,ariaLabel:this.props.label||"Callback"})),this.props.children(t[this.state.activeItemIdx]))}};Wp=((e,t)=>{for(var r,n=t,o=e.length-1;o>=0;o--)(r=e[o])&&(n=r(n)||n);return n})([ba.observer],Wp);var Vp=Object.defineProperty,Hp=Object.defineProperties,Jp=(Object.getOwnPropertyDescriptor,Object.getOwnPropertyDescriptors),Yp=Object.getOwnPropertySymbols,Gp=Object.prototype.hasOwnProperty,Zp=Object.prototype.propertyIsEnumerable,Xp=(e,t,r)=>t in e?Vp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let Kp=class extends e.Component{constructor(){super(...arguments),this.renderDropdown=t=>{return e.createElement(Os,(r=((e,t)=>{for(var r in t||(t={}))Gp.call(t,r)&&Xp(e,r,t[r]);if(Yp)for(var r of Yp(t))Zp.call(t,r)&&Xp(e,r,t[r]);return e})({Label:ua,Dropdown:ma},t),Hp(r,Jp({variant:"dark"}))));var r}}render(){const t=this.props.content;return void 0===t?null:e.createElement(ip,{content:t,renderDropdown:this.renderDropdown,withLabel:!0},t=>e.createElement(ya,{key:"samples",mediaType:t,renderDropdown:this.renderDropdown}))}};Kp=((e,t)=>{for(var r,n=t,o=e.length-1;o>=0;o--)(r=e[o])&&(n=r(n)||n);return n})([ba.observer],Kp);class eu extends e.Component{render(){const t=this.props.callback.codeSamples.find(e=>go(e));return t?e.createElement(tu,null,e.createElement(Kp,{content:t.requestBodyContent})):null}}const tu=ee.div`
|
|
1674
1686
|
margin-top: 15px;
|
|
1675
|
-
`;var
|
|
1687
|
+
`;var ru=Object.defineProperty,nu=Object.defineProperties,ou=(Object.getOwnPropertyDescriptor,Object.getOwnPropertyDescriptors),iu=Object.getOwnPropertySymbols,su=Object.prototype.hasOwnProperty,au=Object.prototype.propertyIsEnumerable,lu=(e,t,r)=>t in e?ru(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let cu=class extends e.Component{constructor(){super(...arguments),this.renderDropdown=t=>{return e.createElement(Os,(r=((e,t)=>{for(var r in t||(t={}))su.call(t,r)&&lu(e,r,t[r]);if(iu)for(var r of iu(t))au.call(t,r)&&lu(e,r,t[r]);return e})({Label:ua,Dropdown:ma},t),nu(r,ou({variant:"dark"}))));var r}}render(){const{callbacks:t}=this.props;if(!t||0===t.length)return null;const r=t.map(e=>e.operations.map(e=>e)).reduce((e,t)=>e.concat(t),[]);if(!r.some(e=>e.codeSamples.length>0))return null;const n=r.map((e,t)=>({value:`${e.httpVerb.toUpperCase()}: ${e.name}`,idx:t}));return e.createElement("div",null,e.createElement(vi,null," Callback payload samples "),e.createElement(pu,null,e.createElement(Wp,{items:r,renderDropdown:this.renderDropdown,label:"Callback",options:n},t=>e.createElement(eu,{key:"callbackPayloadSample",callback:t,renderDropdown:this.renderDropdown}))))}};cu.contextType=ce,cu=((e,t)=>{for(var r,n=t,o=e.length-1;o>=0;o--)(r=e[o])&&(n=r(n)||n);return n})([ba.observer],cu);const pu=ee.div`
|
|
1676
1688
|
background: ${({theme:e})=>e.codeBlock.backgroundColor};
|
|
1677
1689
|
padding: ${e=>4*e.theme.spacing.unit}px;
|
|
1678
|
-
`;Object.defineProperty,Object.getOwnPropertyDescriptor;let
|
|
1690
|
+
`;Object.defineProperty,Object.getOwnPropertyDescriptor;let uu=class extends e.Component{render(){const{operation:t}=this.props,r=t.codeSamples,n=r.length>0,o=1===r.length&&this.context.hideSingleRequestSampleTab;return n&&e.createElement("div",null,e.createElement(vi,null," ",_("requestSamples")," "),e.createElement(Yi,{defaultIndex:0},e.createElement(Ji.TabList,{hidden:o},r.map(t=>e.createElement(Ji.Tab,{key:t.lang+"_"+(t.label||"")},void 0!==t.label?t.label:t.lang))),r.map(t=>e.createElement(Ji.TabPanel,{key:t.lang+"_"+(t.label||"")},go(t)?e.createElement("div",null,e.createElement(Kp,{content:t.requestBodyContent})):e.createElement(sa,{lang:t.lang,source:t.source})))))||null}};uu.contextType=ce,uu=((e,t)=>{for(var r,n=t,o=e.length-1;o>=0;o--)(r=e[o])&&(n=r(n)||n);return n})([ba.observer],uu);Object.defineProperty,Object.getOwnPropertyDescriptor;let du=class extends e.Component{render(){const{operation:t}=this.props,r=t.responses.filter(e=>e.content&&e.content.hasSample);return r.length>0&&e.createElement("div",null,e.createElement(vi,null," ",_("responseSamples")," "),e.createElement(Yi,{defaultIndex:0},e.createElement(Ji.TabList,null,r.map(t=>e.createElement(Ji.Tab,{className:"tab-"+t.type,key:t.code},t.code))),r.map(t=>e.createElement(Ji.TabPanel,{key:t.code},e.createElement("div",null,e.createElement(Kp,{content:t.content}))))))||null}};du=((e,t)=>{for(var r,n=t,o=e.length-1;o>=0;o--)(r=e[o])&&(n=r(n)||n);return n})([ba.observer],du);var hu=Object.defineProperty,mu=Object.getOwnPropertySymbols,fu=Object.prototype.hasOwnProperty,yu=Object.prototype.propertyIsEnumerable,gu=(e,t,r)=>t in e?hu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;const bu=ee.div`
|
|
1679
1691
|
margin-bottom: ${({theme:e})=>6*e.spacing.unit}px;
|
|
1680
|
-
`,xu=(0,
|
|
1692
|
+
`,xu=(0,ba.observer)(({operation:t})=>{const{name:r,description:n,deprecated:o,externalDocs:i,isWebhook:s,httpVerb:a,badges:l}=t,c=!(!n&&!i),{showWebhookVerb:p}=e.useContext(ce),u=l.filter(({position:e})=>"before"===e),d=l.filter(({position:e})=>"after"===e),h=t.operationHash&&t.operationHash!==t.id?{[ni]:t.operationHash,id:t.operationHash}:{};return e.createElement(ce.Consumer,null,l=>e.createElement(mi,((e,t)=>{for(var r in t||(t={}))fu.call(t,r)&&gu(e,r,t[r]);if(mu)for(var r of mu(t))yu.call(t,r)&&gu(e,r,t[r]);return e})({},h),e.createElement(pi,null,e.createElement(bi,null,e.createElement(Ii,{to:t.id}),u.map(({name:t,color:r})=>e.createElement(_i,{type:"primary",key:t,color:r},t)),r," ",o&&e.createElement(_i,{type:"warning"}," Deprecated "),s&&e.createElement(_i,{type:"primary"}," ","Webhook ",p&&a&&"| "+a.toUpperCase()),d.map(({name:t,color:r})=>e.createElement(_i,{type:"primary",key:t,color:r},t))),l.pathInMiddlePanel&&!s&&e.createElement(np,{operation:t,inverted:!0}),c&&e.createElement(bu,null,void 0!==n&&e.createElement(Ms,{source:n}),i&&e.createElement(Ra,{externalDocs:i})),e.createElement(Ma,{extensions:t.extensions}),e.createElement(zp,{securities:t.security}),e.createElement(mp,{parameters:t.parameters,body:t.requestBody}),e.createElement(Rp,{responses:t.responses}),e.createElement(Qp,{callbacks:t.callbacks})),e.createElement(hi,null,!l.pathInMiddlePanel&&!s&&e.createElement(np,{operation:t}),e.createElement(uu,{operation:t}),e.createElement(du,{operation:t}),e.createElement(cu,{callbacks:t.callbacks}))))});var vu=Object.defineProperty,wu=Object.getOwnPropertyDescriptor,ku=Object.getOwnPropertySymbols,Eu=Object.prototype.hasOwnProperty,Ou=Object.prototype.propertyIsEnumerable,ju=(e,t,r)=>t in e?vu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$u=(e,t,r,n)=>{for(var o,i=n>1?void 0:n?wu(t,r):t,s=e.length-1;s>=0;s--)(o=e[s])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&vu(t,r,i),i};let Su=class extends e.Component{render(){const t=this.props.items;return 0===t.length?null:t.map(t=>e.createElement(Cu,{key:t.id,item:t}))}};Su=$u([ba.observer],Su);let Cu=class extends e.Component{render(){const t=this.props.item;let r;const{type:n}=t;switch(n){case"group":r=null;break;case"tag":case"section":default:r=e.createElement(Iu,((e,t)=>{for(var r in t||(t={}))Eu.call(t,r)&&ju(e,r,t[r]);if(ku)for(var r of ku(t))Ou.call(t,r)&&ju(e,r,t[r]);return e})({},this.props));break;case"operation":r=e.createElement(Au,{item:t})}return e.createElement(e.Fragment,null,r&&e.createElement(ui,{id:t.id,$underlined:"operation"===t.type},r),t.items&&e.createElement(Su,{items:t.items}))}};Cu=$u([ba.observer],Cu);const Pu=t=>e.createElement(pi,{$compact:!0},t);let Iu=class extends e.Component{render(){const{name:t,description:r,externalDocs:n,level:o}=this.props.item,i=2===o?xi:bi;return e.createElement(e.Fragment,null,e.createElement(mi,null,e.createElement(pi,{$compact:!1},e.createElement(i,null,e.createElement(Ii,{to:this.props.item.id}),t))),e.createElement(Rc,{parentId:this.props.item.id,source:r||"",htmlWrap:Pu}),n&&e.createElement(mi,null,e.createElement(pi,null,e.createElement(Ra,{externalDocs:n}))))}};Iu=$u([ba.observer],Iu);let Au=class extends e.Component{render(){return e.createElement(xu,{operation:this.props.item})}};Au=$u([ba.observer],Au);var Tu=Object.defineProperty,_u=Object.defineProperties,Ru=(Object.getOwnPropertyDescriptor,Object.getOwnPropertyDescriptors),Du=Object.getOwnPropertySymbols,Lu=Object.prototype.hasOwnProperty,zu=Object.prototype.propertyIsEnumerable,Nu=(e,t,r)=>t in e?Tu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let Mu=class extends e.Component{constructor(){super(...arguments),this.ref=e.createRef(),this.activate=e=>{this.props.onActivate(this.props.item),e.stopPropagation()}}componentDidMount(){this.scrollIntoViewIfActive()}componentDidUpdate(){this.scrollIntoViewIfActive()}scrollIntoViewIfActive(){this.props.item.active&&this.ref.current&&c(this.ref.current)}render(){const{item:t,withoutChildren:r}=this.props;return e.createElement(Mc,{tabIndex:0,onClick:this.activate,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(this.props.onActivate(this.props.item),e.stopPropagation())},depth:t.depth,"data-item-id":t.id,role:"menuitem","aria-label":t.sidebarLabel,"aria-expanded":t.expanded},"operation"===t.type?e.createElement(qu,(n=((e,t)=>{for(var r in t||(t={}))Lu.call(t,r)&&Nu(e,r,t[r]);if(Du)for(var r of Du(t))zu.call(t,r)&&Nu(e,r,t[r]);return e})({},this.props),_u(n,Ru({item:t})))):e.createElement(Fc,{$depth:t.depth,$active:t.active,$type:t.type,ref:this.ref},"schema"===t.type&&e.createElement(Lc,{type:"schema"},"schema"),e.createElement(Bc,{width:"calc(100% - 38px)",title:t.sidebarLabel},t.sidebarLabel,this.props.children),t.depth>0&&t.items.length>0&&e.createElement(Ti,{float:"right",direction:t.expanded?"down":"right"})||null),!r&&t.items&&t.items.length>0&&e.createElement(Fu,{expanded:t.expanded,items:t.items,onActivate:this.props.onActivate}));var n}};Mu=((e,t)=>{for(var r,n=t,o=e.length-1;o>=0;o--)(r=e[o])&&(n=r(n)||n);return n})([ba.observer],Mu);const qu=(0,ba.observer)(t=>{var r;const{item:n}=t,o=e.createRef(),{showWebhookVerb:i}=e.useContext(ce);return e.useEffect(()=>{t.item.active&&o.current&&c(o.current)},[t.item.active,o]),e.createElement(Fc,{$depth:n.depth,$active:n.active,$deprecated:n.deprecated,ref:o},n.badges&&(null==(r=n.badges)?void 0:r.map(({name:t,color:r})=>e.createElement(Lc,{type:"badge",color:r,key:t},t))),n.isWebhook?e.createElement(Lc,{type:"hook"},i?n.httpVerb:_("webhook")):e.createElement(Lc,{type:n.httpVerb},gt(n.httpVerb)),e.createElement(Bc,{tabIndex:0,width:"calc(100% - 38px)"},n.sidebarLabel,t.children))});Object.defineProperty,Object.getOwnPropertyDescriptor;let Fu=class extends e.Component{render(){const{items:t,className:r}=this.props,n=null==this.props.expanded||this.props.expanded;return e.createElement(Nc,{className:r,style:this.props.style,$expanded:n,role:"menu"},t.map((t,r)=>e.createElement(Mu,{key:r,item:t,onActivate:this.props.onActivate})))}};function Bu(){const[t,r]=(0,e.useState)(!1);return(0,e.useEffect)(()=>{r(!0)},[]),t?e.createElement("img",{alt:"redocly logo",onError:()=>r(!1),src:"https://cdn.redoc.ly/redoc/logo-mini.svg"}):null}Fu=((e,t)=>{for(var r,n=t,o=e.length-1;o>=0;o--)(r=e[o])&&(n=r(n)||n);return n})([ba.observer],Fu);Object.defineProperty,Object.getOwnPropertyDescriptor;let Qu=class extends e.Component{constructor(){super(...arguments),this.activate=e=>{if(e&&e.active&&this.context.menuToggle)return e.expanded?e.collapse():e.expand();this.props.menu.activateAndScroll(e,!0),setTimeout(()=>{this._updateScroll&&this._updateScroll()})},this.saveScrollUpdate=e=>{this._updateScroll=e}}render(){const t=this.props.menu;return e.createElement(ds,{updateFn:this.saveScrollUpdate,className:this.props.className,options:{wheelPropagation:!1}},e.createElement(Fu,{items:t.items,onActivate:this.activate,root:!0}),e.createElement(Qc,null,e.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://redocly.com/redoc/"},e.createElement(Bu,null),"API docs by Redocly")))}};Qu.contextType=ce,Qu=((e,t)=>{for(var r,n=t,o=e.length-1;o>=0;o--)(r=e[o])&&(n=r(n)||n);return n})([ba.observer],Qu);const Uu=({open:t})=>{const r=t?8:-4;return e.createElement(Vu,null,e.createElement(Wu,{size:15,style:{transform:`translate(2px, ${r}px) rotate(180deg)`,transition:"transform 0.2s ease"}}),e.createElement(Wu,{size:15,style:{transform:`translate(2px, ${0-r}px)`,transition:"transform 0.2s ease"}}))},Wu=({size:t=10,className:r="",style:n})=>e.createElement("svg",{className:r,style:n||{},viewBox:"0 0 926.23699 573.74994",version:"1.1",x:"0px",y:"0px",width:t,height:t},e.createElement("g",{transform:"translate(904.92214,-879.1482)"},e.createElement("path",{d:"\n m -673.67664,1221.6502 -231.2455,-231.24803 55.6165,\n -55.627 c 30.5891,-30.59485 56.1806,-55.627 56.8701,-55.627 0.6894,\n 0 79.8637,78.60862 175.9427,174.68583 l 174.6892,174.6858 174.6892,\n -174.6858 c 96.079,-96.07721 175.253196,-174.68583 175.942696,\n -174.68583 0.6895,0 26.281,25.03215 56.8701,\n 55.627 l 55.6165,55.627 -231.245496,231.24803 c -127.185,127.1864\n -231.5279,231.248 -231.873,231.248 -0.3451,0 -104.688,\n -104.0616 -231.873,-231.248 z\n ",fill:"currentColor"}))),Vu=ee.div`
|
|
1681
1693
|
user-select: none;
|
|
1682
1694
|
width: 20px;
|
|
1683
1695
|
height: 20px;
|
|
@@ -1685,7 +1697,7 @@
|
|
|
1685
1697
|
display: flex;
|
|
1686
1698
|
flex-direction: column;
|
|
1687
1699
|
color: ${e=>e.theme.colors.primary.main};
|
|
1688
|
-
`;Object.defineProperty,Object.getOwnPropertyDescriptor;let
|
|
1700
|
+
`;Object.defineProperty,Object.getOwnPropertyDescriptor;let Hu;s&&(Hu=r(230));const Ju=Hu&&Hu(),Yu=ee.div`
|
|
1689
1701
|
width: ${e=>e.theme.sidebar.width};
|
|
1690
1702
|
background-color: ${e=>e.theme.sidebar.backgroundColor};
|
|
1691
1703
|
overflow: hidden;
|
|
@@ -1711,7 +1723,7 @@
|
|
|
1711
1723
|
@media print {
|
|
1712
1724
|
display: none;
|
|
1713
1725
|
}
|
|
1714
|
-
`,
|
|
1726
|
+
`,Gu=ee.div`
|
|
1715
1727
|
outline: none;
|
|
1716
1728
|
user-select: none;
|
|
1717
1729
|
background-color: ${({theme:e})=>e.fab.backgroundColor};
|
|
@@ -1739,9 +1751,9 @@
|
|
|
1739
1751
|
@media print {
|
|
1740
1752
|
display: none;
|
|
1741
1753
|
}
|
|
1742
|
-
`;let
|
|
1754
|
+
`;let Zu=class extends e.Component{constructor(){super(...arguments),this.state={offsetTop:"0px"},this.toggleNavMenu=()=>{this.props.menu.toggleSidebar()}}componentDidMount(){Ju&&Ju.add(this.stickyElement),this.setState({offsetTop:this.getScrollYOffset(this.context)})}componentWillUnmount(){Ju&&Ju.remove(this.stickyElement)}getScrollYOffset(e){let t;return t=void 0!==this.props.scrollYOffset?W.normalizeScrollYOffset(this.props.scrollYOffset)():e.scrollYOffset(),t+"px"}render(){const t=this.props.menu.sideBarOpened,r=this.state.offsetTop;return e.createElement(e.Fragment,null,e.createElement(Yu,{$open:t,className:this.props.className,style:{top:r,height:`calc(100vh - ${r})`},ref:e=>{this.stickyElement=e}},this.props.children),!this.context.hideFab&&e.createElement(Gu,{onClick:this.toggleNavMenu},e.createElement(Uu,{open:t})))}};Zu.contextType=ce,Zu=((e,t)=>{for(var r,n=t,o=e.length-1;o>=0;o--)(r=e[o])&&(n=r(n)||n);return n})([ba.observer],Zu);const Xu=ee.div`
|
|
1743
1755
|
${({theme:e})=>`\n font-family: ${e.typography.fontFamily};\n font-size: ${e.typography.fontSize};\n font-weight: ${e.typography.fontWeightRegular};\n line-height: ${e.typography.lineHeight};\n color: ${e.colors.text.primary};\n display: flex;\n position: relative;\n text-align: left;\n\n -webkit-font-smoothing: ${e.typography.smoothing};\n font-smoothing: ${e.typography.smoothing};\n ${e.typography.optimizeSpeed?"text-rendering: optimizeSpeed !important":""};\n\n tap-highlight-color: rgba(0, 0, 0, 0);\n text-size-adjust: 100%;\n\n * {\n box-sizing: border-box;\n -webkit-tap-highlight-color: rgba(255, 255, 255, 0);\n }\n`};
|
|
1744
|
-
`,
|
|
1756
|
+
`,Ku=ee.div`
|
|
1745
1757
|
z-index: 1;
|
|
1746
1758
|
position: relative;
|
|
1747
1759
|
overflow: hidden;
|
|
@@ -1751,7 +1763,7 @@
|
|
|
1751
1763
|
`};
|
|
1752
1764
|
|
|
1753
1765
|
contain: layout;
|
|
1754
|
-
`,
|
|
1766
|
+
`,ed=ee.div`
|
|
1755
1767
|
background: ${({theme:e})=>e.rightPanel.backgroundColor};
|
|
1756
1768
|
position: absolute;
|
|
1757
1769
|
top: 0;
|
|
@@ -1761,9 +1773,9 @@
|
|
|
1761
1773
|
${K.lessThan("medium",!0)`
|
|
1762
1774
|
display: none;
|
|
1763
1775
|
`};
|
|
1764
|
-
`,
|
|
1776
|
+
`,td=ee.div`
|
|
1765
1777
|
padding: 5px 0;
|
|
1766
|
-
`,
|
|
1778
|
+
`,rd=ee.input.attrs(()=>({className:"search-input"}))`
|
|
1767
1779
|
width: calc(100% - ${e=>8*e.theme.spacing.unit}px);
|
|
1768
1780
|
box-sizing: border-box;
|
|
1769
1781
|
margin: 0 ${e=>4*e.theme.spacing.unit}px;
|
|
@@ -1778,7 +1790,7 @@
|
|
|
1778
1790
|
color: ${e=>e.theme.sidebar.textColor};
|
|
1779
1791
|
background-color: transparent;
|
|
1780
1792
|
outline: none;
|
|
1781
|
-
`,
|
|
1793
|
+
`,nd=ee(t=>e.createElement("svg",{className:t.className,version:"1.1",viewBox:"0 0 1000 1000",x:"0px",xmlns:"http://www.w3.org/2000/svg",y:"0px"},e.createElement("path",{d:"M968.2,849.4L667.3,549c83.9-136.5,66.7-317.4-51.7-435.6C477.1-25,252.5-25,113.9,113.4c-138.5,138.3-138.5,362.6,0,501C219.2,730.1,413.2,743,547.6,666.5l301.9,301.4c43.6,43.6,76.9,14.9,104.2-12.4C981,928.3,1011.8,893,968.2,849.4z M524.5,522c-88.9,88.7-233,88.7-321.8,0c-88.9-88.7-88.9-232.6,0-321.3c88.9-88.7,233-88.7,321.8,0C613.4,289.4,613.4,433.3,524.5,522z"}))).attrs({className:"search-icon"})`
|
|
1782
1794
|
position: absolute;
|
|
1783
1795
|
left: ${e=>4*e.theme.spacing.unit}px;
|
|
1784
1796
|
height: 1.8em;
|
|
@@ -1787,7 +1799,7 @@
|
|
|
1787
1799
|
path {
|
|
1788
1800
|
fill: ${e=>e.theme.sidebar.textColor};
|
|
1789
1801
|
}
|
|
1790
|
-
`,
|
|
1802
|
+
`,od=ee.div`
|
|
1791
1803
|
padding: ${e=>e.theme.spacing.unit}px 0;
|
|
1792
1804
|
background-color: ${({theme:e})=>(0,t.darken)(.05,e.sidebar.backgroundColor)}};
|
|
1793
1805
|
color: ${e=>e.theme.sidebar.textColor};
|
|
@@ -1795,15 +1807,16 @@
|
|
|
1795
1807
|
max-height: 250px;
|
|
1796
1808
|
border-top: ${({theme:e})=>(0,t.darken)(.1,e.sidebar.backgroundColor)}};
|
|
1797
1809
|
border-bottom: ${({theme:e})=>(0,t.darken)(.1,e.sidebar.backgroundColor)}};
|
|
1798
|
-
margin
|
|
1810
|
+
margin: 10px 0 0;
|
|
1799
1811
|
line-height: 1.4;
|
|
1800
1812
|
font-size: 0.9em;
|
|
1801
|
-
|
|
1813
|
+
list-style: none;
|
|
1814
|
+
|
|
1802
1815
|
li {
|
|
1803
1816
|
background-color: inherit;
|
|
1804
1817
|
}
|
|
1805
1818
|
|
|
1806
|
-
${
|
|
1819
|
+
${Fc} {
|
|
1807
1820
|
padding-top: 6px;
|
|
1808
1821
|
padding-bottom: 6px;
|
|
1809
1822
|
|
|
@@ -1816,7 +1829,7 @@
|
|
|
1816
1829
|
display: none;
|
|
1817
1830
|
}
|
|
1818
1831
|
}
|
|
1819
|
-
`,
|
|
1832
|
+
`,id=ee.i`
|
|
1820
1833
|
position: absolute;
|
|
1821
1834
|
display: inline-block;
|
|
1822
1835
|
width: ${e=>2*e.theme.spacing.unit}px;
|
|
@@ -1828,5 +1841,5 @@
|
|
|
1828
1841
|
cursor: pointer;
|
|
1829
1842
|
font-style: normal;
|
|
1830
1843
|
color: '#666';
|
|
1831
|
-
`;var
|
|
1844
|
+
`;var sd=Object.defineProperty,ad=Object.getOwnPropertyDescriptor;class ld extends e.PureComponent{constructor(e){super(e),this.activeItemRef=null,this.clear=()=>{this.setState({results:[],noResults:!1,term:"",activeItemIdx:-1}),this.props.marker.unmark()},this.handleKeyDown=e=>{if(27===e.keyCode&&this.clear(),40===e.keyCode&&(this.setState({activeItemIdx:Math.min(this.state.activeItemIdx+1,this.state.results.length-1)}),e.preventDefault()),38===e.keyCode&&(this.setState({activeItemIdx:Math.max(0,this.state.activeItemIdx-1)}),e.preventDefault()),13===e.keyCode){const e=this.state.results[this.state.activeItemIdx];if(e){const t=this.props.getItemById(e.meta);t&&this.props.onActivate(t)}}},this.search=e=>{const{minCharacterLengthToInitSearch:t}=this.context,r=e.target.value;r.length<t?this.clearResults(r):this.setState({term:r},()=>this.searchCallback(this.state.term))},this.state={results:[],noResults:!1,term:"",activeItemIdx:-1}}clearResults(e){this.setState({results:[],noResults:!1,term:e}),this.props.marker.unmark()}setResults(e,t){this.setState({results:e,noResults:0===e.length}),this.props.marker.mark(t)}searchCallback(e){this.props.search.search(e).then(t=>{this.setResults(t,e)})}render(){const{activeItemIdx:t}=this.state,r=this.state.results.filter(e=>this.props.getItemById(e.meta)).map(e=>({item:this.props.getItemById(e.meta),score:e.score})).sort((e,t)=>t.score-e.score);return e.createElement(td,{role:"search"},this.state.term&&e.createElement(id,{onClick:this.clear},"×"),e.createElement(nd,null),e.createElement(rd,{value:this.state.term,onKeyDown:this.handleKeyDown,placeholder:"Search...","aria-label":"Search",type:"text",onChange:this.search}),r.length>0&&e.createElement(ds,{options:{wheelPropagation:!1}},e.createElement(od,{as:"ul",role:"menu","data-role":"search:results"},r.map((r,n)=>e.createElement(Mu,{item:Object.create(r.item,{active:{value:n===t}}),onActivate:this.props.onActivate,withoutChildren:!0,key:r.item.id,"data-role":"search:result"})))),this.state.term&&this.state.noResults?e.createElement(od,{"data-role":"search:results"},_("noResultsFound")):null)}}ld.contextType=ce,((e,t,r)=>{for(var n,o=ad(t,r),i=e.length-1;i>=0;i--)(n=e[i])&&(o=n(t,r,o)||o);o&&sd(t,r,o)})([xe.bind,(0,xe.debounce)(400)],ld.prototype,"searchCallback");class cd extends e.Component{componentDidMount(){this.props.store.onDidMount()}componentWillUnmount(){this.props.store.dispose()}render(){const{store:{spec:t,menu:r,options:n,search:o,marker:i}}=this.props,s=this.props.store;return e.createElement(X,{theme:n.theme},e.createElement(Oi,{value:s},e.createElement(pe,{value:n},e.createElement(Xu,{className:"redoc-wrap"},e.createElement(Zu,{menu:r,className:"menu-content"},e.createElement(Sc,{info:t.info}),!n.disableSearch&&e.createElement(ld,{search:o,marker:i,getItemById:r.getItemById,onActivate:r.activateAndScroll})||null,e.createElement(Qu,{menu:r})),e.createElement(Ku,{className:"api-content"},e.createElement(Ec,{store:s}),e.createElement(Su,{items:r.items})),e.createElement(ed,null)))))}}cd.propTypes={store:le.instanceOf(yc).isRequired};var pd=Object.defineProperty,ud=Object.getOwnPropertySymbols,dd=Object.prototype.hasOwnProperty,hd=Object.prototype.propertyIsEnumerable,md=(e,t,r)=>t in e?pd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fd=(e,t)=>{for(var r in t||(t={}))dd.call(t,r)&&md(e,r,t[r]);if(ud)for(var r of ud(t))hd.call(t,r)&&md(e,r,t[r]);return e};const yd=function(t){const{spec:n,specUrl:o,options:i={},onLoaded:s}=t,a=Q(i.hideLoading,!1),l=new W(i);if(void 0!==l.nonce)try{r.nc=l.nonce}catch(e){}return e.createElement(ne,null,e.createElement($i,{spec:n?fd({},n):void 0,specUrl:o,options:i,onLoaded:s},({loading:t,store:r})=>t?a?null:e.createElement(ae,{color:l.theme.colors.primary.main}):e.createElement(cd,{store:r})))}}(),n}()});
|
|
1832
1845
|
//# sourceMappingURL=redoc.lib.js.map
|