u;)for(var d,h=l(arguments[u++]),v=p?i(h).concat(p(h)):i(h),m=v.length,g=0;m>g;)d=v[g++],r&&!f.call(h,d)||(n[d]=h[d]);return n}:u},function(e,t,n){var r=n(252),o=n(74),i=n(75);e.exports=function(e){return function(t,n,a){var s=Object(t);if(!o(t)){var c=r(n,3);t=i(t),n=function(e){return c(s[e],e,s)}}var l=e(t,n,a);return l>-1?s[c?t[l]:l]:void 0}}},function(e,t,n){var r=n(578),o=n(599),i=n(260);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(167),o=n(253);e.exports=function(e,t,n,i){var a=n.length,s=a,c=!i;if(null==e)return!s;for(e=Object(e);a--;){var l=n[a];if(c&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a=0||(a[n]=e[n]);return a}},function(e,t,n){"use strict";n.r(t),n.d(t,"OAuthReceiver",(function(){return Af}));var r={};n.r(r),n.d(r,"JsonPatchError",(function(){return rr})),n.d(r,"deepClone",(function(){return or})),n.d(r,"getValueByPointer",(function(){return sr})),n.d(r,"applyOperation",(function(){return cr})),n.d(r,"applyPatch",(function(){return lr})),n.d(r,"applyReducer",(function(){return ur})),n.d(r,"validator",(function(){return pr})),n.d(r,"validate",(function(){return fr})),n.d(r,"_areEquals",(function(){return dr}));var o={};n.r(o),n.d(o,"unobserve",(function(){return gr})),n.d(o,"observe",(function(){return yr})),n.d(o,"generate",(function(){return br})),n.d(o,"compare",(function(){return wr}));var i={};n.r(i),n.d(i,"path",(function(){return ai})),n.d(i,"query",(function(){return si})),n.d(i,"header",(function(){return li})),n.d(i,"cookie",(function(){return ui}));n(286);
-/**
- * @license
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
- * This code may only be used under the BSD style license found at
- * http://polymer.github.io/LICENSE.txt
- * The complete set of authors may be found at
- * http://polymer.github.io/AUTHORS.txt
- * The complete set of contributors may be found at
- * http://polymer.github.io/CONTRIBUTORS.txt
- * Code distributed by Google as part of the polymer project is also
- * subject to an additional IP rights grant found at
- * http://polymer.github.io/PATENTS.txt
- */const a="undefined"!=typeof window&&null!=window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,s=(e,t,n=null)=>{for(;t!==n;){const n=t.nextSibling;e.removeChild(t),t=n}},c=`{{lit-${String(Math.random()).slice(2)}}}`,l=`\x3c!--${c}--\x3e`,u=new RegExp(`${c}|${l}`);class p{constructor(e,t){this.parts=[],this.element=t;const n=[],r=[],o=document.createTreeWalker(t.content,133,null,!1);let i=0,a=-1,s=0;const{strings:l,values:{length:p}}=e;for(;s0;){const t=l[s],n=v.exec(t)[2],r=n.toLowerCase()+"$lit$",o=e.getAttribute(r);e.removeAttribute(r);const i=o.split(u);this.parts.push({type:"attribute",index:a,name:n,strings:i}),s+=i.length-1}}"TEMPLATE"===e.tagName&&(r.push(e),o.currentNode=e.content)}else if(3===e.nodeType){const t=e.data;if(t.indexOf(c)>=0){const r=e.parentNode,o=t.split(u),i=o.length-1;for(let t=0;t{const n=e.length-t.length;return n>=0&&e.slice(n)===t},d=e=>-1!==e.index,h=()=>document.createComment(""),v=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function m(e,t){const{element:{content:n},parts:r}=e,o=document.createTreeWalker(n,133,null,!1);let i=y(r),a=r[i],s=-1,c=0;const l=[];let u=null;for(;o.nextNode();){s++;const e=o.currentNode;for(e.previousSibling===u&&(u=null),t.has(e)&&(l.push(e),null===u&&(u=e)),null!==u&&c++;void 0!==a&&a.index===s;)a.index=null!==u?-1:a.index-c,i=y(r,i),a=r[i]}l.forEach(e=>e.parentNode.removeChild(e))}const g=e=>{let t=11===e.nodeType?0:1;const n=document.createTreeWalker(e,133,null,!1);for(;n.nextNode();)t++;return t},y=(e,t=-1)=>{for(let n=t+1;n"function"==typeof e&&b.has(e),w={},k={};
-/**
- * @license
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
- * This code may only be used under the BSD style license found at
- * http://polymer.github.io/LICENSE.txt
- * The complete set of authors may be found at
- * http://polymer.github.io/AUTHORS.txt
- * The complete set of contributors may be found at
- * http://polymer.github.io/CONTRIBUTORS.txt
- * Code distributed by Google as part of the polymer project is also
- * subject to an additional IP rights grant found at
- * http://polymer.github.io/PATENTS.txt
- */
-class S{constructor(e,t,n){this.__parts=[],this.template=e,this.processor=t,this.options=n}update(e){let t=0;for(const n of this.__parts)void 0!==n&&n.setValue(e[t]),t++;for(const e of this.__parts)void 0!==e&&e.commit()}_clone(){const e=a?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),t=[],n=this.template.parts,r=document.createTreeWalker(e,133,null,!1);let o,i=0,s=0,c=r.nextNode();for(;i-1||n)&&-1===e.indexOf("--\x3e",o+1);const i=v.exec(e);t+=null===i?e+(n?O:l):e.substr(0,i.index)+i[1]+i[2]+"$lit$"+i[3]+c}return t+=this.strings[e],t}getTemplateElement(){const e=document.createElement("template");return e.innerHTML=this.getHTML(),e}}
-/**
- * @license
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
- * This code may only be used under the BSD style license found at
- * http://polymer.github.io/LICENSE.txt
- * The complete set of authors may be found at
- * http://polymer.github.io/AUTHORS.txt
- * The complete set of contributors may be found at
- * http://polymer.github.io/CONTRIBUTORS.txt
- * Code distributed by Google as part of the polymer project is also
- * subject to an additional IP rights grant found at
- * http://polymer.github.io/PATENTS.txt
- */
-const E=e=>null===e||!("object"==typeof e||"function"==typeof e),_=e=>Array.isArray(e)||!(!e||!e[Symbol.iterator]);class j{constructor(e,t,n){this.dirty=!0,this.element=e,this.name=t,this.strings=n,this.parts=[];for(let e=0;e{try{const e={get capture(){return L=!0,!1}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){}})();class N{constructor(e,t,n){this.value=void 0,this.__pendingValue=void 0,this.element=e,this.eventName=t,this.eventContext=n,this.__boundHandleEvent=e=>this.handleEvent(e)}setValue(e){this.__pendingValue=e}commit(){for(;x(this.__pendingValue);){const e=this.__pendingValue;this.__pendingValue=w,e(this)}if(this.__pendingValue===w)return;const e=this.__pendingValue,t=this.value,n=null==e||null!=t&&(e.capture!==t.capture||e.once!==t.once||e.passive!==t.passive),r=null!=e&&(null==t||n);n&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),r&&(this.__options=M(e),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=e,this.__pendingValue=w}handleEvent(e){"function"==typeof this.value?this.value.call(this.eventContext||this.element,e):this.value.handleEvent(e)}}const M=e=>e&&(L?{capture:e.capture,passive:e.passive,once:e.once}:e.capture)
-/**
- * @license
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
- * This code may only be used under the BSD style license found at
- * http://polymer.github.io/LICENSE.txt
- * The complete set of authors may be found at
- * http://polymer.github.io/AUTHORS.txt
- * The complete set of contributors may be found at
- * http://polymer.github.io/CONTRIBUTORS.txt
- * Code distributed by Google as part of the polymer project is also
- * subject to an additional IP rights grant found at
- * http://polymer.github.io/PATENTS.txt
- */;function B(e){let t=D.get(e.type);void 0===t&&(t={stringsArray:new WeakMap,keyString:new Map},D.set(e.type,t));let n=t.stringsArray.get(e.strings);if(void 0!==n)return n;const r=e.strings.join(c);return n=t.keyString.get(r),void 0===n&&(n=new p(e,e.getTemplateElement()),t.keyString.set(r,n)),t.stringsArray.set(e.strings,n),n}const D=new Map,q=new WeakMap;
-/**
- * @license
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
- * This code may only be used under the BSD style license found at
- * http://polymer.github.io/LICENSE.txt
- * The complete set of authors may be found at
- * http://polymer.github.io/AUTHORS.txt
- * The complete set of contributors may be found at
- * http://polymer.github.io/CONTRIBUTORS.txt
- * Code distributed by Google as part of the polymer project is also
- * subject to an additional IP rights grant found at
- * http://polymer.github.io/PATENTS.txt
- */const F=new
-/**
- * @license
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
- * This code may only be used under the BSD style license found at
- * http://polymer.github.io/LICENSE.txt
- * The complete set of authors may be found at
- * http://polymer.github.io/AUTHORS.txt
- * The complete set of contributors may be found at
- * http://polymer.github.io/CONTRIBUTORS.txt
- * Code distributed by Google as part of the polymer project is also
- * subject to an additional IP rights grant found at
- * http://polymer.github.io/PATENTS.txt
- */
-class{handleAttributeExpressions(e,t,n,r){const o=t[0];if("."===o){return new P(e,t.slice(1),n).parts}if("@"===o)return[new N(e,t.slice(1),r.eventContext)];if("?"===o)return[new I(e,t.slice(1),n)];return new j(e,t,n).parts}handleTextExpression(e){return new C(e)}};
-/**
- * @license
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
- * This code may only be used under the BSD style license found at
- * http://polymer.github.io/LICENSE.txt
- * The complete set of authors may be found at
- * http://polymer.github.io/AUTHORS.txt
- * The complete set of contributors may be found at
- * http://polymer.github.io/CONTRIBUTORS.txt
- * Code distributed by Google as part of the polymer project is also
- * subject to an additional IP rights grant found at
- * http://polymer.github.io/PATENTS.txt
- */"undefined"!=typeof window&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.2.1");const z=(e,...t)=>new A(e,t,"html",F),U=(e,t)=>`${e}--${t}`;let $=!0;void 0===window.ShadyCSS?$=!1:void 0===window.ShadyCSS.prepareTemplateDom&&(console.warn("Incompatible ShadyCSS version detected. Please update to at least @webcomponents/webcomponentsjs@2.0.2 and @webcomponents/shadycss@1.3.1."),$=!1);const H=e=>t=>{const n=U(t.type,e);let r=D.get(n);void 0===r&&(r={stringsArray:new WeakMap,keyString:new Map},D.set(n,r));let o=r.stringsArray.get(t.strings);if(void 0!==o)return o;const i=t.strings.join(c);if(o=r.keyString.get(i),void 0===o){const n=t.getTemplateElement();$&&window.ShadyCSS.prepareTemplateDom(n,e),o=new p(t,n),r.keyString.set(i,o)}return r.stringsArray.set(t.strings,o),o},W=["html","svg"],V=new Set,Y=(e,t,n)=>{V.add(e);const r=n?n.element:document.createElement("template"),o=t.querySelectorAll("style"),{length:i}=o;if(0===i)return void window.ShadyCSS.prepareTemplateStyles(r,e);const a=document.createElement("style");for(let e=0;e{W.forEach(t=>{const n=D.get(U(t,e));void 0!==n&&n.keyString.forEach(e=>{const{element:{content:t}}=e,n=new Set;Array.from(t.querySelectorAll("style")).forEach(e=>{n.add(e)}),m(e,n)})})})(e);const s=r.content;n?function(e,t,n=null){const{element:{content:r},parts:o}=e;if(null==n)return void r.appendChild(t);const i=document.createTreeWalker(r,133,null,!1);let a=y(o),s=0,c=-1;for(;i.nextNode();){c++;for(i.currentNode===n&&(s=g(t),n.parentNode.insertBefore(t,n));-1!==a&&o[a].index===c;){if(s>0){for(;-1!==a;)o[a].index+=s,a=y(o,a);return}a=y(o,a)}}}(n,a,s.firstChild):s.insertBefore(a,s.firstChild),window.ShadyCSS.prepareTemplateStyles(r,e);const c=s.querySelector("style");if(window.ShadyCSS.nativeShadow&&null!==c)t.insertBefore(c.cloneNode(!0),t.firstChild);else if(n){s.insertBefore(a,s.firstChild);const e=new Set;e.add(a),m(n,e)}};window.JSCompiler_renameProperty=(e,t)=>e;const K={toAttribute(e,t){switch(t){case Boolean:return e?"":null;case Object:case Array:return null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){switch(t){case Boolean:return null!==e;case Number:return null===e?null:Number(e);case Object:case Array:return JSON.parse(e)}return e}},G=(e,t)=>t!==e&&(t==t||e==e),J={attribute:!0,type:String,converter:K,reflect:!1,hasChanged:G};class Q extends HTMLElement{constructor(){super(),this.initialize()}static get observedAttributes(){this.finalize();const e=[];return this._classProperties.forEach((t,n)=>{const r=this._attributeNameForProperty(n,t);void 0!==r&&(this._attributeToPropertyMap.set(r,n),e.push(r))}),e}static _ensureClassProperties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;const e=Object.getPrototypeOf(this)._classProperties;void 0!==e&&e.forEach((e,t)=>this._classProperties.set(t,e))}}static createProperty(e,t=J){if(this._ensureClassProperties(),this._classProperties.set(e,t),t.noAccessor||this.prototype.hasOwnProperty(e))return;const n="symbol"==typeof e?Symbol():"__"+e,r=this.getPropertyDescriptor(e,n,t);void 0!==r&&Object.defineProperty(this.prototype,e,r)}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(r){const o=this[e];this[t]=r,this.requestUpdateInternal(e,o,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this._classProperties&&this._classProperties.get(e)||J}static finalize(){const e=Object.getPrototypeOf(this);if(e.hasOwnProperty("finalized")||e.finalize(),this.finalized=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this))){const e=this.properties,t=[...Object.getOwnPropertyNames(e),..."function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]];for(const n of t)this.createProperty(n,e[n])}}static _attributeNameForProperty(e,t){const n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}static _valueHasChanged(e,t,n=G){return n(e,t)}static _propertyValueFromAttribute(e,t){const n=t.type,r=t.converter||K,o="function"==typeof r?r:r.fromAttribute;return o?o(e,n):e}static _propertyValueToAttribute(e,t){if(void 0===t.reflect)return;const n=t.type,r=t.converter;return(r&&r.toAttribute||K.toAttribute)(e,n)}initialize(){this._updateState=0,this._updatePromise=new Promise(e=>this._enableUpdatingResolver=e),this._changedProperties=new Map,this._saveInstanceProperties(),this.requestUpdateInternal()}_saveInstanceProperties(){this.constructor._classProperties.forEach((e,t)=>{if(this.hasOwnProperty(t)){const e=this[t];delete this[t],this._instanceProperties||(this._instanceProperties=new Map),this._instanceProperties.set(t,e)}})}_applyInstanceProperties(){this._instanceProperties.forEach((e,t)=>this[t]=e),this._instanceProperties=void 0}connectedCallback(){this.enableUpdating()}enableUpdating(){void 0!==this._enableUpdatingResolver&&(this._enableUpdatingResolver(),this._enableUpdatingResolver=void 0)}disconnectedCallback(){}attributeChangedCallback(e,t,n){t!==n&&this._attributeToProperty(e,n)}_propertyToAttribute(e,t,n=J){const r=this.constructor,o=r._attributeNameForProperty(e,n);if(void 0!==o){const e=r._propertyValueToAttribute(t,n);if(void 0===e)return;this._updateState=8|this._updateState,null==e?this.removeAttribute(o):this.setAttribute(o,e),this._updateState=-9&this._updateState}}_attributeToProperty(e,t){if(8&this._updateState)return;const n=this.constructor,r=n._attributeToPropertyMap.get(e);if(void 0!==r){const e=n.getPropertyOptions(r);this._updateState=16|this._updateState,this[r]=n._propertyValueFromAttribute(t,e),this._updateState=-17&this._updateState}}requestUpdateInternal(e,t,n){let r=!0;if(void 0!==e){const o=this.constructor;n=n||o.getPropertyOptions(e),o._valueHasChanged(this[e],t,n.hasChanged)?(this._changedProperties.has(e)||this._changedProperties.set(e,t),!0!==n.reflect||16&this._updateState||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(e,n))):r=!1}!this._hasRequestedUpdate&&r&&(this._updatePromise=this._enqueueUpdate())}requestUpdate(e,t){return this.requestUpdateInternal(e,t),this.updateComplete}async _enqueueUpdate(){this._updateState=4|this._updateState;try{await this._updatePromise}catch(e){}const e=this.performUpdate();return null!=e&&await e,!this._hasRequestedUpdate}get _hasRequestedUpdate(){return 4&this._updateState}get hasUpdated(){return 1&this._updateState}performUpdate(){if(!this._hasRequestedUpdate)return;this._instanceProperties&&this._applyInstanceProperties();let e=!1;const t=this._changedProperties;try{e=this.shouldUpdate(t),e?this.update(t):this._markUpdated()}catch(t){throw e=!1,this._markUpdated(),t}e&&(1&this._updateState||(this._updateState=1|this._updateState,this.firstUpdated(t)),this.updated(t))}_markUpdated(){this._changedProperties=new Map,this._updateState=-5&this._updateState}get updateComplete(){return this._getUpdateComplete()}_getUpdateComplete(){return this._updatePromise}shouldUpdate(e){return!0}update(e){void 0!==this._reflectingProperties&&this._reflectingProperties.size>0&&(this._reflectingProperties.forEach((e,t)=>this._propertyToAttribute(t,this[t],e)),this._reflectingProperties=void 0),this._markUpdated()}updated(e){}firstUpdated(e){}}Q.finalized=!0;const X=Element.prototype;X.msMatchesSelector||X.webkitMatchesSelector;
-/**
-@license
-Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
-This code may only be used under the BSD style license found at
-http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
-http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
-found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
-part of the polymer project is also subject to an additional IP rights grant
-found at http://polymer.github.io/PATENTS.txt
-*/
-const Z=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ee=Symbol();class te{constructor(e,t){if(t!==ee)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}get styleSheet(){return void 0===this._styleSheet&&(Z?(this._styleSheet=new CSSStyleSheet,this._styleSheet.replaceSync(this.cssText)):this._styleSheet=null),this._styleSheet}toString(){return this.cssText}}const ne=e=>new te(String(e),ee),re=(e,...t)=>{const n=t.reduce((t,n,r)=>t+(e=>{if(e instanceof te)return e.cssText;if("number"==typeof e)return e;throw new Error(`Value passed to 'css' function must be a 'css' function result: ${e}. Use 'unsafeCSS' to pass non-literal values, but\n take care to ensure page security.`)})(n)+e[r+1],e[0]);return new te(n,ee)};
-/**
- * @license
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
- * This code may only be used under the BSD style license found at
- * http://polymer.github.io/LICENSE.txt
- * The complete set of authors may be found at
- * http://polymer.github.io/AUTHORS.txt
- * The complete set of contributors may be found at
- * http://polymer.github.io/CONTRIBUTORS.txt
- * Code distributed by Google as part of the polymer project is also
- * subject to an additional IP rights grant found at
- * http://polymer.github.io/PATENTS.txt
- */
-(window.litElementVersions||(window.litElementVersions=[])).push("2.4.0");const oe={};class ie extends Q{static getStyles(){return this.styles}static _getUniqueStyles(){if(this.hasOwnProperty(JSCompiler_renameProperty("_styles",this)))return;const e=this.getStyles();if(Array.isArray(e)){const t=(e,n)=>e.reduceRight((e,n)=>Array.isArray(n)?t(n,e):(e.add(n),e),n),n=t(e,new Set),r=[];n.forEach(e=>r.unshift(e)),this._styles=r}else this._styles=void 0===e?[]:[e];this._styles=this._styles.map(e=>{if(e instanceof CSSStyleSheet&&!Z){const t=Array.prototype.slice.call(e.cssRules).reduce((e,t)=>e+t.cssText,"");return ne(t)}return e})}initialize(){super.initialize(),this.constructor._getUniqueStyles(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow({mode:"open"})}adoptStyles(){const e=this.constructor._styles;0!==e.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?Z?this.renderRoot.adoptedStyleSheets=e.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(e.map(e=>e.cssText),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(e){const t=this.render();super.update(e),t!==oe&&this.constructor.render(t,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach(e=>{const t=document.createElement("style");t.textContent=e.cssText,this.renderRoot.appendChild(t)}))}render(){return oe}}ie.finalized=!0,ie.render=(e,t,n)=>{if(!n||"object"!=typeof n||!n.scopeName)throw new Error("The `scopeName` option is required.");const r=n.scopeName,o=q.has(t),i=$&&11===t.nodeType&&!!t.host,a=i&&!V.has(r),c=a?document.createDocumentFragment():t;if(((e,t,n)=>{let r=q.get(t);void 0===r&&(s(t,t.firstChild),q.set(t,r=new C(Object.assign({templateFactory:B},n))),r.appendInto(t)),r.setValue(e),r.commit()})(e,c,Object.assign({templateFactory:H(r)},n)),a){const e=q.get(c);q.delete(c);const n=e.value instanceof S?e.value.template:void 0;Y(r,c,n),s(t,t.firstChild),t.appendChild(c),q.set(t,e)}!o&&i&&window.ShadyCSS.styleElement(t.host)};var ae=n(3),se=n.n(ae),ce=n(28),le=n.n(ce);n(287),n(288),n(289),n(290),n(291),n(292),n(293),n(294),n(295);function ue(){const e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([".hover-bg:hover{background:var(--bg3)}::selection{background:var(--selection-bg);color:var(--selection-fg)}.regular-font{font-family:var(--font-regular)}.mono-font{font-family:var(--font-mono)}.title{font-size:calc(var(--font-size-small) + 18px);font-weight:400}.sub-title{font-size:20px}.req-res-title{font-family:var(--font-regular);font-size:calc(var(--font-size-small) + 4px);font-weight:700;margin-bottom:8px}.tiny-title{font-size:calc(var(--font-size-small) + 1px);font-weight:700}.regular-font-size{font-size:var(--font-size-regular)}.small-font-size{font-size:var(--font-size-small)}.upper{text-transform:uppercase}.primary-text{color:var(--primary-color)}.bold-text{font-weight:700}.gray-text{color:var(--light-fg)}.red-text{color:var(--red)}.blue-text{color:var(--blue)}.multiline{overflow:scroll;max-height:var(--resp-area-height,300px);color:var(--fg3)}.method-fg.put{color:var(--orange)}.method-fg.post{color:var(--green)}.method-fg.get{color:var(--blue)}.method-fg.delete{color:var(--red)}.method-fg.head,.method-fg.options,.method-fg.patch{color:var(--yellow)}h1{font-family:var(--font-regular);font-size:28px;padding-top:10px;letter-spacing:normal;font-weight:400}h2{font-family:var(--font-regular);font-size:24px;padding-top:10px;letter-spacing:normal;font-weight:400}h3{font-family:var(--font-regular);font-size:18px;padding-top:10px;letter-spacing:normal;font-weight:400}h4{font-family:var(--font-regular);font-size:16px;padding-top:10px;letter-spacing:normal;font-weight:400}h5{font-family:var(--font-regular);font-size:14px;padding-top:10px;letter-spacing:normal;font-weight:400}h6{font-family:var(--font-regular);font-size:14px;padding-top:10px;letter-spacing:normal;font-weight:400}h1,h2,h3,h4,h5{margin-block-end:.2em}p{margin-block-start:.5em}a{color:var(--blue);cursor:pointer}a.inactive-link{color:var(--fg);text-decoration:none;cursor:text}code,pre{margin:0;font-family:var(--font-mono);font-size:calc(var(--font-size-mono) - 1px)}.m-markdown,.m-markdown-small{display:block}.m-markdown li,.m-markdown p,.m-markdown span{font-size:var(--font-size-regular);line-height:calc(var(--font-size-regular) + 8px)}.m-markdown-small li,.m-markdown-small p,.m-markdown-small span{font-size:var(--font-size-small);line-height:calc(var(--font-size-small) + 6px)}.m-markdown-small li{line-height:calc(var(--font-size-small) + 8px)}.m-markdown p:not(:first-child){margin-block-start:24px}.m-markdown-small p:not(:first-child){margin-block-start:12px}.m-markdown-small p:first-child{margin-block-start:0}.m-markdown p,.m-markdown-small p{margin-block-end:0}.m-markdown code span{font-size:var(--font-size-mono)}.m-markdown code,.m-markdown-small code{padding:1px 6px;border-radius:2px;color:var(--inline-code-fg);background-color:var(--bg3);font-size:calc(var(--font-size-mono));line-height:1.2}.m-markdown-small code{font-size:calc(var(--font-size-mono) - 1px)}.m-markdown pre,.m-markdown-small pre{white-space:pre-wrap;overflow-x:auto;line-height:normal;border-radius:2px;border:1px solid var(--code-border-color)}.m-markdown pre{margin-top:8px;padding:12px;background-color:var(--code-bg);color:var(--code-fg)}.m-markdown-small pre{margin-top:4px;padding:2px 4px;background-color:var(--bg3);color:var(--fg2)}.m-markdown pre code,.m-markdown-small pre code{border:none;padding:0}.m-markdown pre code{color:var(--code-fg);background-color:var(--code-bg)}.m-markdown-small pre code{color:var(--fg2);background-color:var(--bg3)}.m-markdown ol,.m-markdown ul{padding-inline-start:30px}.m-markdown-small ol,.m-markdown-small ul{padding-inline-start:20px}.m-markdown a,.m-markdown-small a{color:var(--blue)}.m-markdown img,.m-markdown-small img{max-width:100%}.m-markdown table,.m-markdown-small table{border-spacing:0;margin:10px 0;border-collapse:separate;border:1px solid var(--border-color);border-radius:var(--border-radius);font-size:calc(var(--font-size-small) + 1px);line-height:calc(var(--font-size-small) + 4px);max-width:100%}.m-markdown-small table{font-size:var(--font-size-small);line-height:calc(var(--font-size-small) + 2px);margin:8px 0}.m-markdown td,.m-markdown th,.m-markdown-small td,.m-markdown-small th{vertical-align:top;border-top:1px solid var(--border-color);line-height:calc(var(--font-size-small) + 4px)}.m-markdown tr:first-child th,.m-markdown-small tr:first-child th{border-top:0 none}.m-markdown td,.m-markdown th{padding:10px 12px}.m-markdown-small td,.m-markdown-small th{padding:8px 8px}.m-markdown th,.m-markdown-small th{font-weight:600;background-color:var(--bg2);vertical-align:middle}.m-markdown-small table code{font-size:calc(var(--font-size-mono) - 2px)}.m-markdown table code{font-size:calc(var(--font-size-mono) - 1px)}.m-markdown blockquote,.m-markdown-small blockquote{margin-inline-start:0;margin-inline-end:0;border-left:3px solid var(--border-color);padding:6px 0 6px 6px}"]);return ue=function(){return e},e}var pe=re(ue());function fe(){const e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([".m-btn{border-radius:var(--border-radius);box-sizing:border-box;font-weight:600;display:inline-block;padding:6px 16px;font-size:var(--font-size-small);outline:0;line-height:1;text-align:center;white-space:nowrap;border:2px solid var(--primary-color);background-color:transparent;transition:background-color .2s;user-select:none;cursor:pointer;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24)}.m-btn.primary{background-color:var(--primary-color);color:var(--primary-color-invert)}.m-btn.thin-border{border-width:1px}.m-btn.large{padding:8px 14px}.m-btn.small{padding:5px 12px}.m-btn.tiny{padding:5px 6px}.m-btn.circle{border-radius:50%}.m-btn:hover{background-color:var(--primary-color);color:var(--primary-color-invert)}.m-btn.nav{border:2px solid var(--nav-accent-color)}.m-btn.nav:hover{background-color:var(--nav-accent-color)}.m-btn:disabled{background-color:var(--bg3);color:var(--fg3);border-color:var(--fg3);cursor:not-allowed;opacity:.4}.toolbar-btn{cursor:pointer;padding:2px 0 4px;margin:0 2px;min-width:50px;color:var(--primary-color-invert);border-radius:2px;border:none;background-color:var(--primary-color)}button,input,pre,select,textarea{color:var(--fg);outline:0;background-color:var(--input-bg);border:1px solid var(--border-color);border-radius:var(--border-radius)}input[type=file],input[type=password],input[type=text],pre,select,textarea{font-family:var(--font-mono);font-weight:400;font-size:var(--font-size-small);transition:border .2s;padding:6px 5px;box-sizing:border-box}select{font-family:var(--font-regular);padding:5px 30px 5px 5px;background-image:url(\"data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%3E%3Cpath%20d%3D%22M10.3%203.3L6%207.6%201.7%203.3A1%201%200%2000.3%204.7l5%205a1%201%200%20001.4%200l5-5a1%201%200%2010-1.4-1.4z%22%20fill%3D%22%23777777%22%2F%3E%3C%2Fsvg%3E\");background-position:calc(100% - 5px) center;background-repeat:no-repeat;background-size:10px;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer}select:hover{border-color:var(--primary-color)}input[type=password]::placeholder,input[type=text]::placeholder,textarea::placeholder{color:var(--placeholder-color);opacity:1}input[type=password]:active,input[type=password]:focus,input[type=text]:active,input[type=text]:focus,select:focus,textarea:active,textarea:focus{border:1px solid var(--primary-color)}input[type=file]{font-family:var(--font-regular);padding:2px;cursor:pointer;border:1px solid var(--primary-color);min-height:calc(var(--font-size-small) + 18px)}input[type=file]::-webkit-file-upload-button{font-family:var(--font-regular);font-size:var(--font-size-small);outline:0;cursor:pointer;padding:3px 8px;border:1px solid var(--primary-color);background-color:var(--primary-color);color:var(--primary-color-invert);border-radius:var(--border-radius);-webkit-appearance:none}pre,textarea{scrollbar-width:thin;scrollbar-color:var(--border-color) var(--input-bg)}pre::-webkit-scrollbar,textarea::-webkit-scrollbar{width:8px;height:8px}pre::-webkit-scrollbar-track,textarea::-webkit-scrollbar-track{background:var(--input-bg)}pre::-webkit-scrollbar-thumb,textarea::-webkit-scrollbar-thumb{border-radius:2px;background-color:var(--border-color)}.link{font-size:var(--font-size-small);text-decoration:underline;color:var(--blue);font-family:var(--font-mono);margin-bottom:2px}input[type=checkbox]:focus{outline:0}input[type=checkbox]{appearance:none;display:inline-block;background-color:var(--light-bg);border:1px solid var(--light-bg);border-radius:10px;cursor:pointer;height:20px;position:relative;transition:border .25s .15s,box-shadow .25s .3s,padding .25s;min-width:36px;width:36px;vertical-align:top}input[type=checkbox]:after{position:absolute;background-color:var(--bg);border:1px solid var(--light-bg);border-radius:8px;content:'';top:0;left:0;right:16px;display:block;height:16px;transition:border .25s .15s,left .25s .1s,right .15s .175s}input[type=checkbox]:checked{box-shadow:inset 0 0 0 13px var(--green);border-color:var(--green)}input[type=checkbox]:checked:after{border:1px solid var(--green);left:16px;right:1px;transition:border .25s,left .15s .25s,right .25s .175s}"]);return fe=function(){return e},e}var de=re(fe());function he(){const e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([".col,.row{display:flex}.row{align-items:center;flex-direction:row}.col{align-items:stretch;flex-direction:column}"]);return he=function(){return e},e}var ve=re(he());function me(){const e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([".m-table{border-spacing:0;border-collapse:separate;border:1px solid var(--light-border-color);border-radius:var(--border-radius);margin:0;max-width:100%}.m-table tr:first-child td,.m-table tr:first-child th{border-top:0 none}.m-table td,.m-table th{font-size:var(--font-size-small);line-height:calc(var(--font-size-small) + 4px);padding:4px 5px 4px;vertical-align:top}.m-table td:not([align]),.m-table th:not([align]){text-align:left}.m-table th{color:var(--fg2);font-size:var(--font-size-small);line-height:calc(var(--font-size-small) + 18px);font-weight:600;letter-spacing:normal;background-color:var(--bg2);vertical-align:bottom;border-bottom:1px solid var(--light-border-color)}.m-table>tbody>tr>td,.m-table>tr>td{border-top:1px solid var(--light-border-color);text-overflow:ellipsis;overflow:hidden}.table-title{font-size:var(--font-size-small);font-weight:700;vertical-align:middle;margin:12px 0 4px 0}"]);return me=function(){return e},e}var ge=re(me());function ye(){const e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([".only-large-screen{display:none}.endpoint-head .path{display:flex;font-family:var(--font-mono);font-size:var(--font-size-small);align-items:center;overflow-wrap:break-word;word-break:break-all}.endpoint-head .descr{font-size:var(--font-size-small);color:var(--light-fg);font-weight:400;align-items:center;overflow-wrap:break-word;word-break:break-all;display:none}.m-endpoint.expanded{margin-bottom:16px}.m-endpoint>.endpoint-head{border-width:1px 1px 1px 5px;border-style:solid;border-color:transparent;border-top-color:var(--light-border-color);display:flex;padding:6px 16px;align-items:center;cursor:pointer}.m-endpoint>.endpoint-head.put.expanded,.m-endpoint>.endpoint-head.put:hover{border-color:var(--orange);background-color:var(--light-orange)}.m-endpoint>.endpoint-head.post.expanded,.m-endpoint>.endpoint-head.post:hover{border-color:var(--green);background-color:var(--light-green)}.m-endpoint>.endpoint-head.get.expanded,.m-endpoint>.endpoint-head.get:hover{border-color:var(--blue);background-color:var(--light-blue)}.m-endpoint>.endpoint-head.delete.expanded,.m-endpoint>.endpoint-head.delete:hover{border-color:var(--red);background-color:var(--light-red)}.m-endpoint>.endpoint-head.head.expanded,.m-endpoint>.endpoint-head.head:hover,.m-endpoint>.endpoint-head.options.expanded,.m-endpoint>.endpoint-head.options:hover,.m-endpoint>.endpoint-head.patch.expanded,.m-endpoint>.endpoint-head.patch:hover{border-color:var(--yellow);background-color:var(--light-yellow)}.m-endpoint>.endpoint-head.deprecated.expanded,.m-endpoint>.endpoint-head.deprecated:hover{border-color:var(--border-color);filter:opacity(.6)}.m-endpoint .endpoint-body{flex-wrap:wrap;padding:16px 0 0 0;border-width:0 1px 1px 5px;border-style:solid;box-shadow:0 4px 3px -3px rgba(0,0,0,.15)}.m-endpoint .endpoint-body.delete{border-color:var(--red)}.m-endpoint .endpoint-body.put{border-color:var(--orange)}.m-endpoint .endpoint-body.post{border-color:var(--green)}.m-endpoint .endpoint-body.get{border-color:var(--blue)}.m-endpoint .endpoint-body.head,.m-endpoint .endpoint-body.options,.m-endpoint .endpoint-body.patch{border-color:var(--yellow)}.m-endpoint .endpoint-body.deprecated{border-color:var(--border-color);filter:opacity(.6)}.endpoint-head .deprecated{color:var(--light-fg);filter:opacity(.6)}.summary{padding:8px 8px}.summary .title{font-size:calc(var(--title-font-size) + 2px);margin-bottom:6px;word-break:break-all}.method{padding:2px 5px;vertical-align:middle;font-size:var(--font-size-small);height:calc(var(--font-size-small) + 8px);line-height:calc(var(--font-size-small) + 8px);min-width:48px;border-radius:2px;display:inline-block;text-align:center;font-weight:700;text-transform:uppercase;margin-right:5px}.method.delete{border:2px solid var(--red)}.method.put{border:2px solid var(--orange)}.method.post{border:2px solid var(--green)}.method.get{border:2px solid var(--blue)}.method.get.deprecated{border:2px solid var(--border-color)}.method.head,.method.options,.method.patch{border:2px solid var(--yellow)}.req-resp-container{display:flex;margin-top:16px;align-items:stretch;flex-wrap:wrap;flex-direction:column;border-top:1px solid var(--light-border-color)}.request,.response{flex:1;min-height:100px;padding:16px 8px;overflow:hidden}.request{border-width:0 0 1px 0;border-style:dashed}.head .request,.options .request,.patch .request{border-color:var(--yellow)}.put .request{border-color:var(--orange)}.post .request{border-color:var(--green)}.get .request{border-color:var(--blue)}.delete .request{border-color:var(--red)}@media only screen and (min-width:768px){.only-large-screen{display:block}.endpoint-head .path{font-size:var(--font-size-regular);min-width:400px}.endpoint-head .descr{display:flex}.descr .m-markdown-small,.endpoint-head .m-markdown-small{display:block}.req-resp-container{flex-direction:var(--layout,row)}.request{border-width:0 1px 0 0;padding:16px 24px}.response{padding:16px 24px}.summary{padding:8px 24px}}"]);return ye=function(){return e},e}var be=re(ye());function xe(){const e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["code[class*=language-],pre[class*=language-]{text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;tab-size:2;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-]{white-space:normal}.token.block-comment,.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#999}.token.punctuation{color:#ccc}.token.attr-name,.token.deleted,.token.namespace,.token.tag{color:#ffb2b2}.token.function-name{color:#71b7ff}.token.boolean,.token.function,.token.number{color:#f08d49}.token.class-name,.token.constant,.token.property,.token.symbol{color:#f8c555}.token.atrule,.token.builtin,.token.important,.token.keyword,.token.selector{color:#cc99cd}.token.attr-value,.token.char,.token.regex,.token.string,.token.variable{color:#7ec699}.token.entity,.token.operator,.token.url{color:#67cdcc}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.token.inserted{color:green}"]);return xe=function(){return e},e}var we=re(xe());function ke(){const e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([".tab-panel{border:none}.tab-buttons{height:30px;border-bottom:1px solid var(--light-border-color);align-items:stretch;overflow-y:hidden;overflow-x:auto;scrollbar-width:thin}.tab-buttons::-webkit-scrollbar{height:1px;background-color:var(--border-color)}.tab-btn{border:none;border-bottom:3px solid transparent;white-space:nowrap;background-color:transparent;cursor:pointer;outline:0;font-size:var(--font-size-small);margin-right:16px;padding:1px}.tab-btn.active{border-bottom:3px solid var(--primary-color);font-weight:700;color:var(--primary-color)}.tab-btn:hover{color:var(--primary-color)}.tab-content{margin:-1px 0 0 0;position:relative}"]);return ke=function(){return e},e}var Se=re(ke());function Oe(){const e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([".nav-bar{width:0;height:100%;overflow:hidden;color:var(--nav-text-color);background-color:var(--nav-bg-color);background-image:var(--nav-bg-image);background-size:var(--nav-bg-image-size);background-repeat:var(--nav-bg-image-repeat, 'no-repeat');background-blend-mode:multiply;box-sizing:border-box;line-height:calc(var(--font-size-small) + 4px);display:none;position:relative;flex-direction:column;flex-wrap:nowrap;word-break:break-word}.nav-scroll{overflow-x:hidden;overflow-y:auto;overflow-y:overlay;scrollbar-width:thin;scrollbar-color:var(--nav-hover-bg-color) transparent}.nav-scroll::-webkit-scrollbar{width:10px}.nav-scroll::-webkit-scrollbar-track{background:0 0}.nav-scroll::-webkit-scrollbar-thumb{background-color:var(--nav-hover-bg-color)}.nav-bar-tag{font-size:var(--font-size-regular);color:var(--nav-accent-color);border-left:4px solid transparent;font-weight:700;padding:15px 30px 15px 10px;text-transform:capitalize}.nav-bar-components,.nav-bar-h1,.nav-bar-h2,.nav-bar-info,.nav-bar-path,.nav-bar-tag{display:flex;cursor:pointer;border-left:4px solid transparent}.nav-bar-h1,.nav-bar-h2,.nav-bar-path{font-size:calc(var(--font-size-small) + 1px);padding:var(--nav-item-padding)}.nav-bar-path.small-font{font-size:var(--font-size-small)}.nav-bar-info{font-size:var(--font-size-regular);padding:16px 10px;font-weight:700}.nav-bar-section{display:block;font-size:var(--font-size-small);color:var(--nav-text-color);text-transform:uppercase;padding:15px 15px 5px 5px;text-align:right;filter:opacity(.5);font-weight:700;border-bottom:1px solid var(--nav-text-color)}.nav-bar-section:first-child{display:none}.nav-bar-h2{margin-left:12px}.nav-bar-h1.active,.nav-bar-h2.active,.nav-bar-info.active,.nav-bar-path.active,.nav-bar-tag.active{border-left:4px solid var(--nav-accent-color);color:var(--nav-hover-text-color)}.nav-bar-h1:hover,.nav-bar-h2:hover,.nav-bar-info:hover,.nav-bar-path:hover,.nav-bar-tag:hover{color:var(--nav-hover-text-color);background-color:var(--nav-hover-bg-color)}"]);return Oe=function(){return e},e}var Ae=re(Oe());function Ee(){const e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['#api-info{font-size:calc(var(--font-size-regular) - 1px);margin-top:8px margin-left: -15px}#api-info span:before{content:"|";display:inline-block;opacity:.5;width:15px;text-align:center}#api-info span:first-child:before{content:"";width:0}']);return Ee=function(){return e},e}var _e=re(Ee());function je(){const e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([""]);return je=function(){return e},e}var Te=re(je());const Ce=new RegExp(/[\s#:?&={}]/,"g");function Ie(e){return new Promise(t=>setTimeout(t,e))}function Pe(e,t){const n=t.currentTarget,r=document.createElement("textarea");r.value=e,r.style.position="fixed",document.body.appendChild(r),r.focus(),r.select();try{document.execCommand("copy"),n.innerText="Copied",setTimeout(()=>{n.innerText="Copy"},5e3)}catch(e){console.error("Unable to copy",e)}document.body.removeChild(r)}function Re(e,t){return"".concat(t.method," ").concat(t.path," ").concat(t.summary||t.description||""," ").concat(t.operationId||"").toLowerCase().includes(e)}function Le(e,t=new Set){return e?(Object.keys(e).forEach(n=>{var r;if(t.add(n),e[n].properties)Le(e[n].properties,t);else if(null!==(r=e[n].items)&&void 0!==r&&r.properties){var o;Le(null===(o=e[n].items)||void 0===o?void 0:o.properties,t)}}),t):t}var Ne=n(267),Me=n.n(Ne),Be=n(8),De=n.n(Be),qe=n(58),Fe=n.n(qe),ze=n(65),Ue=n.n(ze),$e=n(102),He=n.n($e),We=n(34),Ve=n.n(We),Ye=n(33),Ke=n.n(Ye),Ge=n(9),Je=n.n(Ge),Qe=n(19),Xe=n.n(Qe),Ze=n(47),et=n.n(Ze),tt=n(268),nt=n.n(tt),rt=n(2),ot=n.n(rt),it=n(5),at=n.n(it),st=n(6),ct=n.n(st),lt=n(131),ut=n.n(lt),pt=n(66),ft=n.n(pt),dt=n(24),ht=n.n(dt),vt=n(4),mt=n.n(vt),gt=n(10),yt=n.n(gt),bt=n(35),xt=n.n(bt),wt=n(269),kt=n.n(wt),St=n(15),Ot=n.n(St),At=n(173),Et=n.n(At),_t=n(80),jt=n.n(_t),Tt=n(11),Ct=n.n(Tt),It=n(81),Pt=n.n(It),Rt=(n(485),n(57)),Lt=n.n(Rt),Nt=n(132),Mt=n.n(Nt),Bt=n(82),Dt=n.n(Bt),qt=n(51),Ft=n.n(qt),zt=n(32),Ut=n(270),$t=n.n(Ut),Ht=n(83),Wt=n.n(Ht),Vt=n(67),Yt=n.n(Vt),Kt=n(271),Gt=n.n(Kt),Jt=n(130),Qt=n.n(Jt),Xt=n(272),Zt=n.n(Xt),en=n(273),tn=n.n(en),nn=n(274),rn=function(e){var t=function(e,t){return{name:e,value:t}};return Ft()(e.prototype.set)||Ft()(e.prototype.get)||Ft()(e.prototype.getAll)||Ft()(e.prototype.has)?e:function(e){Zt()(r,e);var n=tn()(r);function r(e){var t;return Wt()(this,r),(t=n.call(this,e)).entryList=[],t}return Yt()(r,[{key:"append",value:function(e,n,o){return this.entryList.push(t(e,n)),Gt()(Qt()(r.prototype),"append",this).call(this,e,n,o)}},{key:"set",value:function(e,n){var r,o=t(e,n);this.entryList=Xe()(r=this.entryList).call(r,(function(t){return t.name!==e})),this.entryList.push(o)}},{key:"get",value:function(e){var t,n=$t()(t=this.entryList).call(t,(function(t){return t.name===e}));return void 0===n?null:n}},{key:"getAll",value:function(e){var t,n;return ct()(t=Xe()(n=this.entryList).call(n,(function(t){return t.name===e}))).call(t,(function(e){return e.value}))}},{key:"has",value:function(e){var t;return ht()(t=this.entryList).call(t,(function(t){return t.name===e}))}}]),r}(e)}(n.n(nn).a),on=n(23),an=n.n(on),sn=n(40),cn=n.n(sn),ln=n(32).Buffer,un=function(e){var t;return Ct()(t=":/?#[]@!$&'()*+,;=").call(t,e)>-1},pn=function(e){return/^[a-z0-9\-._~]+$/i.test(e)};function fn(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.escape,o=arguments.length>2?arguments[2]:void 0;return"number"==typeof e&&(e=e.toString()),"string"==typeof e&&e.length&&r?o?JSON.parse(e):ct()(t=cn()(e)).call(t,(function(e){var t,n;return pn(e)||un(e)&&"unsafe"===r?e:ct()(t=ct()(n=ln.from(e).toJSON().data||[]).call(n,(function(e){var t;return an()(t="0".concat(e.toString(16).toUpperCase())).call(t,-2)}))).call(t,(function(e){return"%".concat(e)})).join("")})).join(""):e}function dn(e){var t=e.value;return mt()(t)?function(e){var t,n=e.key,r=e.value,o=e.style,i=e.explode,a=e.escape,s=function(e){return fn(e,{escape:a})};if("simple"===o)return ct()(r).call(r,(function(e){return s(e)})).join(",");if("label"===o)return".".concat(ct()(r).call(r,(function(e){return s(e)})).join("."));if("matrix"===o)return Ot()(t=ct()(r).call(r,(function(e){return s(e)}))).call(t,(function(e,t){var r,o,a;return!e||i?ot()(o=ot()(a="".concat(e||"",";")).call(a,n,"=")).call(o,t):ot()(r="".concat(e,",")).call(r,t)}),"");if("form"===o){var c=i?"&".concat(n,"="):",";return ct()(r).call(r,(function(e){return s(e)})).join(c)}if("spaceDelimited"===o){var l=i?"".concat(n,"="):"";return ct()(r).call(r,(function(e){return s(e)})).join(" ".concat(l))}if("pipeDelimited"===o){var u=i?"".concat(n,"="):"";return ct()(r).call(r,(function(e){return s(e)})).join("|".concat(u))}return}(e):"object"===yt()(t)?function(e){var t=e.key,n=e.value,r=e.style,o=e.explode,i=e.escape,a=function(e){return fn(e,{escape:i})},s=at()(n);if("simple"===r)return Ot()(s).call(s,(function(e,t){var r,i,s,c=a(n[t]),l=o?"=":",",u=e?"".concat(e,","):"";return ot()(r=ot()(i=ot()(s="".concat(u)).call(s,t)).call(i,l)).call(r,c)}),"");if("label"===r)return Ot()(s).call(s,(function(e,t){var r,i,s,c=a(n[t]),l=o?"=":".",u=e?"".concat(e,"."):".";return ot()(r=ot()(i=ot()(s="".concat(u)).call(s,t)).call(i,l)).call(r,c)}),"");if("matrix"===r&&o)return Ot()(s).call(s,(function(e,t){var r,o,i=a(n[t]),s=e?"".concat(e,";"):";";return ot()(r=ot()(o="".concat(s)).call(o,t,"=")).call(r,i)}),"");if("matrix"===r)return Ot()(s).call(s,(function(e,r){var o,i,s=a(n[r]),c=e?"".concat(e,","):";".concat(t,"=");return ot()(o=ot()(i="".concat(c)).call(i,r,",")).call(o,s)}),"");if("form"===r)return Ot()(s).call(s,(function(e,t){var r,i,s,c,l=a(n[t]),u=e?ot()(r="".concat(e)).call(r,o?"&":","):"",p=o?"=":",";return ot()(i=ot()(s=ot()(c="".concat(u)).call(c,t)).call(s,p)).call(i,l)}),"");return}(e):function(e){var t,n=e.key,r=e.value,o=e.style,i=e.escape,a=function(e){return fn(e,{escape:i})};if("simple"===o)return a(r);if("label"===o)return".".concat(a(r));if("matrix"===o)return ot()(t=";".concat(n,"=")).call(t,a(r));if("form"===o)return a(r);if("deepObject"===o)return a(r);return}(e)}var hn={serializeRes:bn,mergeInQueryOrForm:Cn};function vn(e){return mn.apply(this,arguments)}function mn(){return(mn=Pt()(Ke.a.mark((function e(t){var n,r,o,i,a,s,c=arguments;return Ke.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=c.length>1&&void 0!==c[1]?c[1]:{},"object"===yt()(t)&&(t=(n=t).url),n.headers=n.headers||{},hn.mergeInQueryOrForm(n),n.headers&&Je()(r=at()(n.headers)).call(r,(function(e){var t=n.headers[e];"string"==typeof t&&(n.headers[e]=t.replace(/\n+/g," "))})),!n.requestInterceptor){e.next=12;break}return e.next=8,n.requestInterceptor(n);case 8:if(e.t0=e.sent,e.t0){e.next=11;break}e.t0=n;case 11:n=e.t0;case 12:return o=n.headers["content-type"]||n.headers["Content-Type"],/multipart\/form-data/i.test(o)&&(delete n.headers["content-type"],delete n.headers["Content-Type"]),e.prev=14,e.next=17,(n.userFetch||fetch)(n.url,n);case 17:return i=e.sent,e.next=20,hn.serializeRes(i,t,n);case 20:if(i=e.sent,!n.responseInterceptor){e.next=28;break}return e.next=24,n.responseInterceptor(i);case 24:if(e.t1=e.sent,e.t1){e.next=27;break}e.t1=i;case 27:i=e.t1;case 28:e.next=39;break;case 30:if(e.prev=30,e.t2=e.catch(14),i){e.next=34;break}throw e.t2;case 34:throw(a=new Error(i.statusText)).status=i.status,a.statusCode=i.status,a.responseError=e.t2,a;case 39:if(i.ok){e.next=45;break}throw(s=new Error(i.statusText)).status=i.status,s.statusCode=i.status,s.response=i,s;case 45:return e.abrupt("return",i);case 46:case"end":return e.stop()}}),e,null,[[14,30]])})))).apply(this,arguments)}var gn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return/(json|xml|yaml|text)\b/.test(e)};function yn(e,t){return t&&(0===Ct()(t).call(t,"application/json")||Ct()(t).call(t,"+json")>0)?JSON.parse(e):Mt.a.safeLoad(e)}function bn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.loadSpec,o=void 0!==r&&r,i={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:wn(e.headers)},a=i.headers["content-type"],s=o||gn(a),c=s?e.text:e.blob||e.buffer;return c.call(e).then((function(e){if(i.text=e,i.data=e,s)try{var t=yn(e,a);i.body=t,i.obj=t}catch(e){i.parseError=e}return i}))}function xn(e){return jt()(e).call(e,", ")?e.split(", "):e}function wn(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Ft()(Et()(t))?Ot()(e=kt()(Et()(t).call(t))).call(e,(function(e,t){var n=xt()(t,2),r=n[0],o=n[1];return e[r]=xn(o),e}),{}):{}}function kn(e,t){return t||"undefined"==typeof navigator||(t=navigator),t&&"ReactNative"===t.product?!(!e||"object"!==yt()(e)||"string"!=typeof e.uri):"undefined"!=typeof File&&e instanceof File||("undefined"!=typeof Blob&&e instanceof Blob||(void 0!==zt.Buffer&&e instanceof zt.Buffer||null!==e&&"object"===yt()(e)&&"function"==typeof e.pipe))}function Sn(e,t){return mt()(e)&&ht()(e).call(e,(function(e){return kn(e,t)}))}var On={form:",",spaceDelimited:"%20",pipeDelimited:"|"},An={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function En(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.collectionFormat,o=t.allowEmptyValue,i=t.serializationOption,a=t.encoding,s="object"!==yt()(t)||mt()(t)?t:t.value,c=n?function(e){return e.toString()}:function(e){return encodeURIComponent(e)},l=c(e);if(void 0===s&&o)return[[l,""]];if(kn(s)||Sn(s))return[[l,s]];if(i)return _n(e,s,n,i);if(a){var u;if(ht()(u=[yt()(a.style),yt()(a.explode),yt()(a.allowReserved)]).call(u,(function(e){return"undefined"!==e})))return _n(e,s,n,Dt()(a,["style","explode","allowReserved"]));if(a.contentType){if("application/json"===a.contentType){var p="string"==typeof s?s:ft()(s);return[[l,c(p)]]}return[[l,c(s.toString())]]}return"object"!==yt()(s)?[[l,c(s)]]:mt()(s)&&ut()(s).call(s,(function(e){return"object"!==yt()(e)}))?[[l,ct()(s).call(s,c).join(",")]]:[[l,c(ft()(s))]]}return"object"!==yt()(s)?[[l,c(s)]]:mt()(s)?"multi"===r?[[l,ct()(s).call(s,c)]]:[[l,ct()(s).call(s,c).join(An[r||"csv"])]]:[[l,""]]}function _n(e,t,n,r){var o,i,a,s=r.style||"form",c=void 0===r.explode?"form"===s:r.explode,l=!n&&(r&&r.allowReserved?"unsafe":"reserved"),u=function(e){return fn(e,{escape:l})},p=n?function(e){return e}:function(e){return fn(e,{escape:l})};return"object"!==yt()(t)?[[p(e),u(t)]]:mt()(t)?c?[[p(e),ct()(t).call(t,u)]]:[[p(e),ct()(t).call(t,u).join(On[s])]]:"deepObject"===s?ct()(i=at()(t)).call(i,(function(n){var r;return[p(ot()(r="".concat(e,"[")).call(r,n,"]")),u(t[n])]})):c?ct()(a=at()(t)).call(a,(function(e){return[p(e),u(t[e])]})):[[p(e),ct()(o=at()(t)).call(o,(function(e){var n;return[ot()(n="".concat(p(e),",")).call(n,u(t[e]))]})).join(",")]]}function jn(e){var t;return Ot()(t=nt()(e)).call(t,(function(e,t){var n,r=xt()(t,2),o=r[0],i=r[1],a=et()(En(o,i,!0));try{for(a.s();!(n=a.n()).done;){var s=xt()(n.value,2),c=s[0],l=s[1];if(mt()(l)){var u,p=et()(l);try{for(p.s();!(u=p.n()).done;){var f=u.value;e.append(c,f)}}catch(e){p.e(e)}finally{p.f()}}else e.append(c,l)}}catch(e){a.e(e)}finally{a.f()}return e}),new rn)}function Tn(e){var t,n=Ot()(t=at()(e)).call(t,(function(t,n){var r,o=et()(En(n,e[n]));try{for(o.s();!(r=o.n()).done;){var i=xt()(r.value,2),a=i[0],s=i[1];t[a]=s}}catch(e){o.e(e)}finally{o.f()}return t}),{});return Lt.a.stringify(n,{encode:!1,indices:!1})||""}function Cn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n=void 0===t?"":t,r=e.query,o=e.form,i=function(){for(var e=arguments.length,t=new Array(e),n=0;n=48&&t<=57))return!1;n++}return!0}function Zn(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function er(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function tr(e,t){var n=[e];for(var r in t){var o="object"==typeof t[r]?JSON.stringify(t[r],null,2):t[r];void 0!==o&&n.push(r+": "+o)}return n.join("\n")}var nr=function(e){function t(t,n,r,o,i){var a=this.constructor,s=e.call(this,tr(t,{name:n,index:r,operation:o,tree:i}))||this;return s.name=n,s.index=r,s.operation=o,s.tree=i,Object.setPrototypeOf(s,a.prototype),s.message=tr(t,{name:n,index:r,operation:o,tree:i}),s}return Yn(t,e),t}(Error),rr=nr,or=Qn,ir={add:function(e,t,n){return e[t]=this.value,{newDocument:n}},remove:function(e,t,n){var r=e[t];return delete e[t],{newDocument:n,removed:r}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:function(e,t,n){var r=sr(n,this.path);r&&(r=Qn(r));var o=cr(n,{op:"remove",path:this.from}).removed;return cr(n,{op:"add",path:this.path,value:o}),{newDocument:n,removed:r}},copy:function(e,t,n){var r=sr(n,this.from);return cr(n,{op:"add",path:this.path,value:Qn(r)}),{newDocument:n}},test:function(e,t,n){return{newDocument:n,test:dr(e[t],this.value)}},_get:function(e,t,n){return this.value=e[t],{newDocument:n}}},ar={add:function(e,t,n){return Xn(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:n,index:t}},remove:function(e,t,n){return{newDocument:n,removed:e.splice(t,1)[0]}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:ir.move,copy:ir.copy,test:ir.test,_get:ir._get};function sr(e,t){if(""==t)return e;var n={op:"_get",path:t};return cr(e,n),n.value}function cr(e,t,n,r,o,i){if(void 0===n&&(n=!1),void 0===r&&(r=!0),void 0===o&&(o=!0),void 0===i&&(i=0),n&&("function"==typeof n?n(t,0,e,t.path):pr(t,0)),""===t.path){var a={newDocument:e};if("add"===t.op)return a.newDocument=t.value,a;if("replace"===t.op)return a.newDocument=t.value,a.removed=e,a;if("move"===t.op||"copy"===t.op)return a.newDocument=sr(e,t.from),"move"===t.op&&(a.removed=e),a;if("test"===t.op){if(a.test=dr(e,t.value),!1===a.test)throw new rr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a.newDocument=e,a}if("remove"===t.op)return a.removed=e,a.newDocument=null,a;if("_get"===t.op)return t.value=e,a;if(n)throw new rr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return a}r||(e=Qn(e));var s=(t.path||"").split("/"),c=e,l=1,u=s.length,p=void 0,f=void 0,d=void 0;for(d="function"==typeof n?n:pr;;){if(f=s[l],o&&"__proto__"==f)throw new TypeError("JSON-Patch: modifying `__proto__` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&void 0===p&&(void 0===c[f]?p=s.slice(0,l).join("/"):l==u-1&&(p=t.path),void 0!==p&&d(t,0,e,p)),l++,Array.isArray(c)){if("-"===f)f=c.length;else{if(n&&!Xn(f))throw new rr("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",i,t,e);Xn(f)&&(f=~~f)}if(l>=u){if(n&&"add"===t.op&&f>c.length)throw new rr("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",i,t,e);if(!1===(a=ar[t.op].call(t,c,f,e)).test)throw new rr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}}else if(f&&-1!=f.indexOf("~")&&(f=er(f)),l>=u){if(!1===(a=ir[t.op].call(t,c,f,e)).test)throw new rr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}c=c[f]}}function lr(e,t,n,r,o){if(void 0===r&&(r=!0),void 0===o&&(o=!0),n&&!Array.isArray(t))throw new rr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");r||(e=Qn(e));for(var i=new Array(t.length),a=0,s=t.length;a0)throw new rr('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,n);if(("move"===e.op||"copy"===e.op)&&"string"!=typeof e.from)throw new rr("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,n);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&void 0===e.value)throw new rr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,n);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&function e(t){if(void 0===t)return!0;if(t)if(Array.isArray(t)){for(var n=0,r=t.length;n0&&(e.patches=[],e.callback&&e.callback(r)),r}function xr(e,t,n,r,o){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var i=Jn(t),a=Jn(e),s=!1,c=a.length-1;c>=0;c--){var l=e[p=a[c]];if(!Gn(t,p)||void 0===t[p]&&void 0!==l&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(o&&n.push({op:"test",path:r+"/"+Zn(p),value:Qn(l)}),n.push({op:"remove",path:r+"/"+Zn(p)}),s=!0):(o&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}),!0);else{var u=t[p];"object"==typeof l&&null!=l&&"object"==typeof u&&null!=u?xr(l,u,n,r+"/"+Zn(p),o):l!==u&&(!0,o&&n.push({op:"test",path:r+"/"+Zn(p),value:Qn(l)}),n.push({op:"replace",path:r+"/"+Zn(p),value:Qn(u)}))}}if(s||i.length!=a.length)for(c=0;c0){var o=t(e,n[n.length-1],n);o&&(r=ot()(r).call(r,o))}if(mt()(e)){var i=ct()(e).call(e,(function(e,r){return Ir(e,t,ot()(n).call(n,r))}));i&&(r=ot()(r).call(r,i))}else if(Nr(e)){var a,s=ct()(a=at()(e)).call(a,(function(r){return Ir(e[r],t,ot()(n).call(n,r))}));s&&(r=ot()(r).call(r,s))}return r=Rr(r)}function Pr(e){return mt()(e)?e:[e]}function Rr(e){var t,n,r;return(n=ot()(t=[])).call.apply(n,ot()(r=[t]).call(r,cn()(ct()(e).call(e,(function(e){return mt()(e)?Rr(e):e})))))}function Lr(e){return Xe()(e).call(e,(function(e){return void 0!==e}))}function Nr(e){return e&&"object"===yt()(e)}function Mr(e){return e&&"function"==typeof e}function Br(e){if(Fr(e)){var t=e.op;return"add"===t||"remove"===t||"replace"===t}return!1}function Dr(e){return Br(e)||Fr(e)&&"mutation"===e.type}function qr(e){return Dr(e)&&("add"===e.op||"replace"===e.op||"merge"===e.op||"mergeDeep"===e.op)}function Fr(e){return e&&"object"===yt()(e)}function zr(e,t){try{return sr(e,t)}catch(e){return console.error(e),{}}}var Ur=n(279),$r=n.n(Ur),Hr=n(176),Wr=n.n(Hr);function Vr(e,t){function n(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack;for(var e=arguments.length,n=new Array(e),r=0;r-1&&-1===Ct()(Xr).call(Xr,n)||Ct()(Zr).call(Zr,r)>-1||ht()(eo).call(eo,(function(e){return Ct()(r).call(r,e)>-1}))}function no(e,t){var n,r=e.split("#"),o=xt()(r,2),i=o[0],a=o[1],s=Ve.a.resolve(i||"",t||"");return a?ot()(n="".concat(s,"#")).call(n,a):s}var ro=new RegExp("^([a-z]+://|//)","i"),oo=Vr("JSONRefError",(function(e,t,n){this.originalError=n,Fn()(this,t||{})})),io={},ao=new $r.a,so=[function(e){return"paths"===e[0]&&"responses"===e[3]&&"examples"===e[5]},function(e){return"paths"===e[0]&&"responses"===e[3]&&"content"===e[5]&&"example"===e[7]},function(e){return"paths"===e[0]&&"responses"===e[3]&&"content"===e[5]&&"examples"===e[7]&&"value"===e[9]},function(e){return"paths"===e[0]&&"requestBody"===e[3]&&"content"===e[4]&&"example"===e[6]},function(e){return"paths"===e[0]&&"requestBody"===e[3]&&"content"===e[4]&&"examples"===e[6]&&"value"===e[8]},function(e){return"paths"===e[0]&&"parameters"===e[2]&&"example"===e[4]},function(e){return"paths"===e[0]&&"parameters"===e[3]&&"example"===e[5]},function(e){return"paths"===e[0]&&"parameters"===e[2]&&"examples"===e[4]&&"value"===e[6]},function(e){return"paths"===e[0]&&"parameters"===e[3]&&"examples"===e[5]&&"value"===e[7]},function(e){return"paths"===e[0]&&"parameters"===e[2]&&"content"===e[4]&&"example"===e[6]},function(e){return"paths"===e[0]&&"parameters"===e[2]&&"content"===e[4]&&"examples"===e[6]&&"value"===e[8]},function(e){return"paths"===e[0]&&"parameters"===e[3]&&"content"===e[4]&&"example"===e[7]},function(e){return"paths"===e[0]&&"parameters"===e[3]&&"content"===e[5]&&"examples"===e[7]&&"value"===e[9]}],co={key:"$ref",plugin:function(e,t,n,r){var o=r.getInstance(),i=an()(n).call(n,0,-1);if(!to(i)&&(a=i,!ht()(so).call(so,(function(e){return e(a)})))){var a,s=r.getContext(n).baseDoc;if("string"!=typeof e)return new oo("$ref: must be a string (JSON-Ref)",{$ref:e,baseDoc:s,fullPath:n});var c,l,u,p=ho(e),f=p[0],d=p[1]||"";try{c=s||f?po(f,s):null}catch(t){return fo(t,{pointer:d,$ref:e,basePath:c,fullPath:n})}if(function(e,t,n,r){var o,i,a=ao.get(r);a||(a={},ao.set(r,a));var s=function(e){if(0===e.length)return"";return"/".concat(ct()(e).call(e,xo).join("/"))}(n),c=ot()(o="".concat(t||"","#")).call(o,e),l=s.replace(/allOf\/\d+\/?/g,""),u=r.contextTree.get([]).baseDoc;if(t==u&&wo(l,e))return!0;var p="";if(ht()(n).call(n,(function(e){var t,n;return p=ot()(t="".concat(p,"/")).call(t,xo(e)),a[p]&&ht()(n=a[p]).call(n,(function(e){return wo(e,c)||wo(c,e)}))})))return!0;return void(a[l]=ot()(i=a[l]||[]).call(i,c))}(d,c,i,r)&&!o.useCircularStructures){var h=no(e,c);return e===h?null:Er.replace(n,h)}if(null==c?(u=yo(d),void 0===(l=r.get(u))&&(l=new oo("Could not resolve reference: ".concat(e),{pointer:d,$ref:e,baseDoc:s,fullPath:n}))):l=null!=(l=vo(c,d)).__value?l.__value:l.catch((function(t){throw fo(t,{pointer:d,$ref:e,baseDoc:s,fullPath:n})})),l instanceof Error)return[Er.remove(n),l];var v=no(e,c),m=Er.replace(i,l,{$$ref:v});if(c&&c!==s)return[m,Er.context(i,{baseDoc:c})];try{if(!function(e,t){var n,r=[e];return Ot()(n=t.path).call(n,(function(e,t){return r.push(e[t]),e[t]}),e),function e(t){var n;return Er.isObject(t)&&(Ct()(r).call(r,t)>=0||ht()(n=at()(t)).call(n,(function(n){return e(t[n])})))}(t.value)}(r.state,m)||o.useCircularStructures)return m}catch(e){return null}}}},lo=Fn()(co,{docCache:io,absoluteify:po,clearCache:function(e){var t;void 0!==e?delete io[e]:Je()(t=at()(io)).call(t,(function(e){delete io[e]}))},JSONRefError:oo,wrapError:fo,getDoc:mo,split:ho,extractFromDoc:vo,fetchJSON:function(e){return Object(Rt.fetch)(e,{headers:{Accept:"application/json, application/yaml"},loadSpec:!0}).then((function(e){return e.text()})).then((function(e){return Mt.a.safeLoad(e)}))},extract:go,jsonPointerToArray:yo,unescapeJsonPointerToken:bo}),uo=lo;function po(e,t){if(!ro.test(e)){var n;if(!t)throw new oo(ot()(n="Tried to resolve a relative URL, without having a basePath. path: '".concat(e,"' basePath: '")).call(n,t,"'"));return Ve.a.resolve(t,e)}return e}function fo(e,t){var n,r;e&&e.response&&e.response.body?n=ot()(r="".concat(e.response.body.code," ")).call(r,e.response.body.message):n=e.message;return new oo("Could not resolve reference: ".concat(n),t,e)}function ho(e){return(e+"").split("#")}function vo(e,t){var n=io[e];if(n&&!Er.isPromise(n))try{var r=go(t,n);return Fn()(Mn.a.resolve(r),{__value:r})}catch(e){return Mn.a.reject(e)}return mo(e).then((function(e){return go(t,e)}))}function mo(e){var t=io[e];return t?Er.isPromise(t)?t:Mn.a.resolve(t):(io[e]=lo.fetchJSON(e).then((function(t){return io[e]=t,t})),io[e])}function go(e,t){var n=yo(e);if(n.length<1)return t;var r=Er.getIn(t,n);if(void 0===r)throw new oo("Could not resolve pointer: ".concat(e," does not exist in document"),{pointer:e});return r}function yo(e){var t;if("string"!=typeof e)throw new TypeError("Expected a string, got a ".concat(yt()(e)));return"/"===e[0]&&(e=e.substr(1)),""===e?[]:ct()(t=e.split("/")).call(t,bo)}function bo(e){return"string"!=typeof e?e:Wr.a.unescape(e.replace(/~1/g,"/").replace(/~0/g,"~"))}function xo(e){return Wr.a.escape(e.replace(/~/g,"~0").replace(/\//g,"~1"))}function wo(e,t){if(!(n=t)||"/"===n||"#"===n)return!0;var n,r=e.charAt(t.length),o=an()(t).call(t,-1);return 0===Ct()(e).call(e,t)&&(!r||"/"===r||"#"===r)&&"#"!==o}var ko=n(282),So=n.n(ko),Oo={key:"allOf",plugin:function(e,t,n,r,o){if(!o.meta||!o.meta.$$ref){var i=an()(n).call(n,0,-1);if(!to(i)){if(!mt()(e)){var a=new TypeError("allOf must be an array");return a.fullPath=n,a}var s=!1,c=o.value;if(Je()(i).call(i,(function(e){c&&(c=c[e])})),c=De()({},c),!So()(c)){delete c.allOf;var l,u=[];if(u.push(r.replace(i,{})),Je()(e).call(e,(function(e,t){if(!r.isObject(e)){if(s)return null;s=!0;var o=new TypeError("Elements in allOf must be objects");return o.fullPath=n,u.push(o)}u.push(r.mergeDeep(i,e));var a=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.specmap,i=r.getBaseUrlForNodePath,a=void 0===i?function(e){var n;return o.getContext(ot()(n=[]).call(n,cn()(t),cn()(e))).baseDoc}:i,s=r.targetKeys,c=void 0===s?["$ref","$$ref"]:s,l=[];return Je()(n=Kr()(e)).call(n,(function(){if(jt()(c).call(c,this.key)&&Jr()(this.node)){var e=this.path,n=ot()(t).call(t,this.path),r=no(this.node,a(e));l.push(o.replace(n,r))}})),l}(e,an()(n).call(n,0,-1),{getBaseUrlForNodePath:function(e){var o;return r.getContext(ot()(o=[]).call(o,cn()(n),[t],cn()(e))).baseDoc},specmap:r});u.push.apply(u,cn()(a))})),u.push(r.mergeDeep(i,c)),!c.$$ref)u.push(r.remove(ot()(l=[]).call(l,i,"$$ref")));return u}}}}},Ao={key:"parameters",plugin:function(e,t,n,r){if(mt()(e)&&e.length){var o=Fn()([],e),i=an()(n).call(n,0,-1),a=De()({},Er.getIn(r.spec,i));return Je()(e).call(e,(function(e,t){try{o[t].default=r.parameterMacro(a,e)}catch(e){var i=new Error(e);return i.fullPath=n,i}})),Er.replace(n,o)}return Er.replace(n,e)}},Eo={key:"properties",plugin:function(e,t,n,r){var o=De()({},e);for(var i in e)try{o[i].default=r.modelPropertyMacro(o[i])}catch(e){var a=new Error(e);return a.fullPath=n,a}return Er.replace(n,o)}},_o=function(){function e(t){Wt()(this,e),this.root=jo(t||{})}return Yt()(e,[{key:"set",value:function(e,t){var n=this.getParent(e,!0);if(n){var r=e[e.length-1],o=n.children;o[r]?To(o[r],t,n):o[r]=jo(t,n)}else To(this.root,t,null)}},{key:"get",value:function(e){if((e=e||[]).length<1)return this.root.value;for(var t,n,r=this.root,o=0;o1?n-1:0),o=1;o1?r-1:0),i=1;i0}))}},{key:"nextPromisedPatch",value:function(){var e;if(this.promisedPatches.length>0)return Mn.a.race(ct()(e=this.promisedPatches).call(e,(function(e){return e.value})))}},{key:"getPluginHistory",value:function(e){var t=this.constructor.getPluginName(e);return this.pluginHistory[t]||[]}},{key:"getPluginRunCount",value:function(e){return this.getPluginHistory(e).length}},{key:"getPluginHistoryTip",value:function(e){var t=this.getPluginHistory(e);return t&&t[t.length-1]||{}}},{key:"getPluginMutationIndex",value:function(e){var t=this.getPluginHistoryTip(e).mutationIndex;return"number"!=typeof t?-1:t}},{key:"updatePluginHistory",value:function(e,t){var n=this.constructor.getPluginName(e);this.pluginHistory[n]=this.pluginHistory[n]||[],this.pluginHistory[n].push(t)}},{key:"updatePatches",value:function(e){var t,n=this;Je()(t=Er.normalizeArray(e)).call(t,(function(e){if(e instanceof Error)n.errors.push(e);else try{if(!Er.isObject(e))return void n.debug("updatePatches","Got a non-object patch",e);if(n.showDebug&&n.allPatches.push(e),Er.isPromise(e.value))return n.promisedPatches.push(e),void n.promisedPatchThen(e);if(Er.isContextPatch(e))return void n.setContext(e.path,e.value);if(Er.isMutation(e))return void n.updateMutations(e)}catch(e){console.error(e),n.errors.push(e)}}))}},{key:"updateMutations",value:function(e){"object"===yt()(e.value)&&!mt()(e.value)&&this.allowMetaPatches&&(e.value=De()({},e.value));var t=Er.applyPatch(this.state,e,{allowMetaPatches:this.allowMetaPatches});t&&(this.mutations.push(e),this.state=t)}},{key:"removePromisedPatch",value:function(e){var t,n,r=Ct()(t=this.promisedPatches).call(t,e);r<0?this.debug("Tried to remove a promisedPatch that isn't there!"):Ln()(n=this.promisedPatches).call(n,r,1)}},{key:"promisedPatchThen",value:function(e){var t=this;return e.value=e.value.then((function(n){var r=De()(De()({},e),{},{value:n});t.removePromisedPatch(e),t.updatePatches(r)})).catch((function(n){t.removePromisedPatch(e),t.updatePatches(n)})),e.value}},{key:"getMutations",value:function(e,t){var n;return e=e||0,"number"!=typeof t&&(t=this.mutations.length),an()(n=this.mutations).call(n,e,t)}},{key:"getCurrentMutations",value:function(){return this.getMutationsForPlugin(this.getCurrentPlugin())}},{key:"getMutationsForPlugin",value:function(e){var t=this.getPluginMutationIndex(e);return this.getMutations(t+1)}},{key:"getCurrentPlugin",value:function(){return this.currentPlugin}},{key:"getLib",value:function(){return this.libMethods}},{key:"_get",value:function(e){return Er.getIn(this.state,e)}},{key:"_getContext",value:function(e){return this.contextTree.get(e)}},{key:"setContext",value:function(e,t){return this.contextTree.set(e,t)}},{key:"_hasRun",value:function(e){return this.getPluginRunCount(this.getCurrentPlugin())>(e||0)}},{key:"dispatch",value:function(){var e,t=this,n=this,r=this.nextPlugin();if(!r){var o=this.nextPromisedPatch();if(o)return o.then((function(){return t.dispatch()})).catch((function(){return t.dispatch()}));var i={spec:this.state,errors:this.errors};return this.showDebug&&(i.patches=this.allPatches),Mn.a.resolve(i)}if(n.pluginCount=n.pluginCount||{},n.pluginCount[r]=(n.pluginCount[r]||0)+1,n.pluginCount[r]>100)return Mn.a.resolve({spec:n.state,errors:ot()(e=n.errors).call(e,new Error("We've reached a hard limit of ".concat(100," plugin runs")))});if(r!==this.currentPlugin&&this.promisedPatches.length){var a,s=ct()(a=this.promisedPatches).call(a,(function(e){return e.value}));return Mn.a.all(ct()(s).call(s,(function(e){return e.then(Hn.a,Hn.a)}))).then((function(){return t.dispatch()}))}return function(){n.currentPlugin=r;var e=n.getCurrentMutations(),t=n.mutations.length-1;try{if(r.isGenerator){var o,i=et()(r(e,n.getLib()));try{for(i.s();!(o=i.n()).done;){c(o.value)}}catch(e){i.e(e)}finally{i.f()}}else{c(r(e,n.getLib()))}}catch(e){console.error(e),c([Fn()(Dn()(e),{plugin:r})])}finally{n.updatePluginHistory(r,{mutationIndex:t})}return n.dispatch()}();function c(e){e&&(e=Er.fullyNormalizeArray(e),n.updatePatches(e,r))}}}]),e}();var Io={refs:uo,allOf:Oo,parameters:Ao,properties:Eo},Po=n(36),Ro=n.n(Po),Lo=function(e){return String.prototype.toLowerCase.call(e)},No=function(e){return e.replace(/[^\w]/gi,"_")};function Mo(e){var t=e.openapi;return!!t&&He()(t,"3")}function Bo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.v2OperationIdCompatibilityMode;if(!e||"object"!==yt()(e))return null;var i=(e.operationId||"").replace(/\s/g,"");return i.length?No(e.operationId):Do(t,n,{v2OperationIdCompatibilityMode:o})}function Do(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.v2OperationIdCompatibilityMode;if(o){var i,a,s=ot()(i="".concat(t.toLowerCase(),"_")).call(i,e).replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return(s=s||ot()(a="".concat(e.substring(1),"_")).call(a,t)).replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return ot()(n="".concat(Lo(t))).call(n,No(e))}function qo(e,t){var n;return ot()(n="".concat(Lo(t),"-")).call(n,e)}function Fo(e,t){return e&&e.paths?function(e,t){return zo(e,t,!0)||null}(e,(function(e){var n,r=e.pathName,o=e.method,i=e.operation;if(!i||"object"!==yt()(i))return!1;var a=i.operationId,s=Bo(i,r,o),c=qo(r,o);return ht()(n=[s,c,a]).call(n,(function(e){return e&&e===t}))})):null}function zo(e,t,n){if(!e||"object"!==yt()(e)||!e.paths||"object"!==yt()(e.paths))return null;var r=e.paths;for(var o in r)for(var i in r[o])if("PARAMETERS"!==i.toUpperCase()){var a=r[o][i];if(a&&"object"===yt()(a)){var s={spec:e,pathName:o,method:i.toUpperCase(),operation:a},c=t(s);if(n&&c)return s}}}function Uo(e){var t=e.spec,n=t.paths,r={};if(!n||t.$$normalized)return e;for(var o in n){var i=n[o];if(Ro()(i)){var a=i.parameters,s=function(e){var n=i[e];if(!Ro()(n))return"continue";var s=Bo(n,o,e);if(s){r[s]?r[s].push(n):r[s]=[n];var c=r[s];if(c.length>1)Je()(c).call(c,(function(e,t){var n;e.__originalOperationId=e.__originalOperationId||e.operationId,e.operationId=ot()(n="".concat(s)).call(n,t+1)}));else if(void 0!==n.operationId){var l=c[0];l.__originalOperationId=l.__originalOperationId||n.operationId,l.operationId=s}}if("parameters"!==e){var u=[],p={};for(var f in t)"produces"!==f&&"consumes"!==f&&"security"!==f||(p[f]=t[f],u.push(p));if(a&&(p.parameters=a,u.push(p)),u.length){var d,h=et()(u);try{for(h.s();!(d=h.n()).done;){var v=d.value;for(var m in v)if(n[m]){if("parameters"===m){var g,y=et()(v[m]);try{var b=function(){var e,t=g.value;ht()(e=n[m]).call(e,(function(e){return e.name&&e.name===t.name||e.$ref&&e.$ref===t.$ref||e.$$ref&&e.$$ref===t.$$ref||e===t}))||n[m].push(t)};for(y.s();!(g=y.n()).done;)b()}catch(e){y.e(e)}finally{y.f()}}}else n[m]=v[m]}}catch(e){h.e(e)}finally{h.f()}}}};for(var c in i)s(c)}}return t.$$normalized=!0,e}function $o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.requestInterceptor,r=t.responseInterceptor,o=e.withCredentials?"include":"same-origin";return function(t){return e({url:t,loadSpec:!0,requestInterceptor:n,responseInterceptor:r,headers:{Accept:"application/json, application/yaml"},credentials:o}).then((function(e){return e.body}))}}function Ho(e){var t=e.fetch,n=e.spec,r=e.url,o=e.mode,i=e.allowMetaPatches,a=void 0===i||i,s=e.pathDiscriminator,c=e.modelPropertyMacro,l=e.parameterMacro,u=e.requestInterceptor,p=e.responseInterceptor,f=e.skipNormalization,d=e.useCircularStructures,h=e.http,v=e.baseDoc;return v=v||r,h=t||h||vn,n?m(n):$o(h,{requestInterceptor:u,responseInterceptor:p})(v).then(m);function m(e){v&&(Io.refs.docCache[v]=e),Io.refs.fetchJSON=$o(h,{requestInterceptor:u,responseInterceptor:p});var t,n=[Io.refs];return"function"==typeof l&&n.push(Io.parameters),"function"==typeof c&&n.push(Io.properties),"strict"!==o&&n.push(Io.allOf),(t={spec:e,context:{baseDoc:v},plugins:n,allowMetaPatches:a,pathDiscriminator:s,parameterMacro:l,modelPropertyMacro:c,useCircularStructures:d},new Co(t).dispatch()).then(f?function(){var e=Pt()(Ke.a.mark((function e(t){return Ke.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}():Uo)}}var Wo=n(52),Vo=n.n(Wo);function Yo(){return(Yo=Pt()(Ke.a.mark((function e(t,n){var r,o,i,a,s,c,l,u,p,f,d,h,v=arguments;return Ke.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=v.length>2&&void 0!==v[2]?v[2]:{},o=r.returnEntireTree,i=r.baseDoc,a=r.requestInterceptor,s=r.responseInterceptor,c=r.parameterMacro,l=r.modelPropertyMacro,u=r.useCircularStructures,p={pathDiscriminator:n,baseDoc:i,requestInterceptor:a,responseInterceptor:s,parameterMacro:c,modelPropertyMacro:l,useCircularStructures:u},f=Uo({spec:t}),d=f.spec,e.next=6,Ho(De()(De()({},p),{},{spec:d,allowMetaPatches:!0,skipNormalization:!0}));case 6:return h=e.sent,!o&&mt()(n)&&n.length&&(h.spec=Vo()(h.spec,n)||null),e.abrupt("return",h);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Ko=function(){return null},Go={mapTagOperations:function(e){var t=e.spec,n=e.cb,r=void 0===n?Ko:n,o=e.defaultTag,i=void 0===o?"default":o,a=e.v2OperationIdCompatibilityMode,s={},c={};return zo(t,(function(e){var n,o=e.pathName,l=e.method,u=e.operation,p=u.tags?(n=u.tags,mt()(n)?n:[n]):[i];Je()(p).call(p,(function(e){if("string"==typeof e){c[e]=c[e]||{};var n,i=c[e],p=Bo(u,o,l,{v2OperationIdCompatibilityMode:a}),f=r({spec:t,pathName:o,method:l,operation:u,operationId:p});if(s[p])s[p]+=1,i[ot()(n="".concat(p)).call(n,s[p])]=f;else if(void 0!==i[p]){var d,h,v=s[p]||1;s[p]=v+1,i[ot()(d="".concat(p)).call(d,s[p])]=f;var m=i[p];delete i[p],i[ot()(h="".concat(p)).call(h,v)]=m}else i[p]=f}}))})),c},makeExecute:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=t.pathName,r=t.method,o=t.operationId;return function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.execute(De()(De()({spec:e.spec},Dt()(e,"requestInterceptor","responseInterceptor","userFetch")),{},{pathName:n,method:r,parameters:t,operationId:o},i))}}}};var Jo=n(283),Qo=n.n(Jo),Xo=n(284),Zo=n.n(Xo),ei=n(31),ti=n.n(ei),ni=n(285),ri=n.n(ni),oi={body:function(e){var t=e.req,n=e.value;t.body=n},header:function(e){var t=e.req,n=e.parameter,r=e.value;t.headers=t.headers||{},void 0!==r&&(t.headers[n.name]=r)},query:function(e){var t,n=e.req,r=e.value,o=e.parameter;n.query=n.query||{},!1===r&&"boolean"===o.type&&(r="false");0===r&&Ct()(t=["number","integer"]).call(t,o.type)>-1&&(r="0");if(r)n.query[o.name]={collectionFormat:o.collectionFormat,value:r};else if(o.allowEmptyValue&&void 0!==r){var i=o.name;n.query[i]=n.query[i]||{},n.query[i].allowEmptyValue=!0}},path:function(e){var t=e.req,n=e.value,r=e.parameter;t.url=t.url.split("{".concat(r.name,"}")).join(encodeURIComponent(n))},formData:function(e){var t=e.req,n=e.value,r=e.parameter;(n||r.allowEmptyValue)&&(t.form=t.form||{},t.form[r.name]={value:n,allowEmptyValue:r.allowEmptyValue,collectionFormat:r.collectionFormat})}};function ii(e,t){return jt()(t).call(t,"application/json")?"string"==typeof e?e:ft()(e):e.toString()}function ai(e){var t=e.req,n=e.value,r=e.parameter,o=r.name,i=r.style,a=r.explode,s=r.content;if(s){var c=at()(s)[0];t.url=t.url.split("{".concat(o,"}")).join(fn(ii(n,c),{escape:!0}))}else{var l=dn({key:r.name,value:n,style:i||"simple",explode:a||!1,escape:!0});t.url=t.url.split("{".concat(o,"}")).join(l)}}function si(e){var t=e.req,n=e.value,r=e.parameter;if(t.query=t.query||{},r.content){var o=at()(r.content)[0];t.query[r.name]=ii(n,o)}else if(!1===n&&(n="false"),0===n&&(n="0"),n)t.query[r.name]={value:n,serializationOption:Dt()(r,["style","explode","allowReserved"])};else if(r.allowEmptyValue&&void 0!==n){var i=r.name;t.query[i]=t.query[i]||{},t.query[i].allowEmptyValue=!0}}var ci=["accept","authorization","content-type"];function li(e){var t=e.req,n=e.parameter,r=e.value;if(t.headers=t.headers||{},!(Ct()(ci).call(ci,n.name.toLowerCase())>-1))if(n.content){var o=at()(n.content)[0];t.headers[n.name]=ii(r,o)}else void 0!==r&&(t.headers[n.name]=dn({key:n.name,value:r,style:n.style||"simple",explode:void 0!==n.explode&&n.explode,escape:!1}))}function ui(e){var t=e.req,n=e.parameter,r=e.value;t.headers=t.headers||{};var o=yt()(r);if(n.content){var i,a=at()(n.content)[0];t.headers.Cookie=ot()(i="".concat(n.name,"=")).call(i,ii(r,a))}else if("undefined"!==o){var s="object"===o&&!mt()(r)&&n.explode?"":"".concat(n.name,"=");t.headers.Cookie=s+dn({key:n.name,value:r,escape:!1,style:n.style||"form",explode:void 0!==n.explode&&n.explode})}}var pi=n(133),fi=n.n(pi);function di(e,t){var n=e.operation,r=e.requestBody,o=e.securities,i=e.spec,a=e.attachContentTypeForEmptyPayload,s=e.requestContentType;t=function(e){var t=e.request,n=e.securities,r=void 0===n?{}:n,o=e.operation,i=void 0===o?{}:o,a=e.spec,s=Ue()({},t),c=r.authorized,l=void 0===c?{}:c,u=i.security||a.security||[],p=l&&!!at()(l).length,f=Vo()(a,["components","securitySchemes"])||{};if(s.headers=s.headers||{},s.query=s.query||{},!at()(r).length||!p||!u||mt()(i.security)&&!i.security.length)return t;return Je()(u).call(u,(function(e){var t;Je()(t=at()(e)).call(t,(function(e){var t=l[e],n=f[e];if(t){var r=t.value||t,o=n.type;if(t)if("apiKey"===o)"query"===n.in&&(s.query[n.name]=r),"header"===n.in&&(s.headers[n.name]=r),"cookie"===n.in&&(s.cookies[n.name]=r);else if("http"===o){if(/^basic$/i.test(n.scheme)){var i,a=r.username||"",c=r.password||"",u=fi()(ot()(i="".concat(a,":")).call(i,c));s.headers.Authorization="Basic ".concat(u)}/^bearer$/i.test(n.scheme)&&(s.headers.Authorization="Bearer ".concat(r))}else if("oauth2"===o||"openIdConnect"===o){var p,d=t.token||{},h=d[n["x-tokenName"]||"access_token"],v=d.token_type;v&&"bearer"!==v.toLowerCase()||(v="Bearer"),s.headers.Authorization=ot()(p="".concat(v," ")).call(p,h)}}}))})),s}({request:t,securities:o,operation:n,spec:i});var c=n.requestBody||{},l=at()(c.content||{}),u=s&&Ct()(l).call(l,s)>-1;if(r||a){if(s&&u)t.headers["Content-Type"]=s;else if(!s){var p=l[0];p&&(t.headers["Content-Type"]=p,s=p)}}else s&&u&&(t.headers["Content-Type"]=s);if(r)if(s){if(Ct()(l).call(l,s)>-1)if("application/x-www-form-urlencoded"===s||"multipart/form-data"===s)if("object"===yt()(r)){var f,d=(c.content[s]||{}).encoding||{};t.form={},Je()(f=at()(r)).call(f,(function(e){t.form[e]={value:r[e],encoding:d[e]||{}}}))}else t.form=r;else t.body=r}else t.body=r;return t}function hi(e,t){var n,r,o=e.spec,i=e.operation,a=e.securities,s=e.requestContentType,c=e.attachContentTypeForEmptyPayload;if((t=function(e){var t=e.request,n=e.securities,r=void 0===n?{}:n,o=e.operation,i=void 0===o?{}:o,a=e.spec,s=Ue()({},t),c=r.authorized,l=void 0===c?{}:c,u=r.specSecurity,p=void 0===u?[]:u,f=i.security||p,d=l&&!!at()(l).length,h=a.securityDefinitions;if(s.headers=s.headers||{},s.query=s.query||{},!at()(r).length||!d||!f||mt()(i.security)&&!i.security.length)return t;return Je()(f).call(f,(function(e){var t;Je()(t=at()(e)).call(t,(function(e){var t=l[e];if(t){var n=t.token,r=t.value||t,o=h[e],i=o.type,a=o["x-tokenName"]||"access_token",c=n&&n[a],u=n&&n.token_type;if(t)if("apiKey"===i){var p="query"===o.in?"query":"headers";s[p]=s[p]||{},s[p][o.name]=r}else if("basic"===i)if(r.header)s.headers.authorization=r.header;else{var f,d=r.username||"",v=r.password||"";r.base64=fi()(ot()(f="".concat(d,":")).call(f,v)),s.headers.authorization="Basic ".concat(r.base64)}else if("oauth2"===i&&c){var m;u=u&&"bearer"!==u.toLowerCase()?u:"Bearer",s.headers.authorization=ot()(m="".concat(u," ")).call(m,c)}}}))})),s}({request:t,securities:a,operation:i,spec:o})).body||t.form||c)if(s)t.headers["Content-Type"]=s;else if(mt()(i.consumes)){var l=xt()(i.consumes,1);t.headers["Content-Type"]=l[0]}else if(mt()(o.consumes)){var u=xt()(o.consumes,1);t.headers["Content-Type"]=u[0]}else i.parameters&&Xe()(n=i.parameters).call(n,(function(e){return"file"===e.type})).length?t.headers["Content-Type"]="multipart/form-data":i.parameters&&Xe()(r=i.parameters).call(r,(function(e){return"formData"===e.in})).length&&(t.headers["Content-Type"]="application/x-www-form-urlencoded");else if(s){var p,f,d=i.parameters&&Xe()(p=i.parameters).call(p,(function(e){return"body"===e.in})).length>0,h=i.parameters&&Xe()(f=i.parameters).call(f,(function(e){return"formData"===e.in})).length>0;(d||h)&&(t.headers["Content-Type"]=s)}return t}var vi=function(e){return mt()(e)?e:[]},mi=Vr("OperationNotFoundError",(function(e,t,n){this.originalError=n,Fn()(this,t||{})})),gi={buildRequest:yi};function yi(e){var t,n,r=e.spec,o=e.operationId,a=e.responseContentType,s=e.scheme,c=e.requestInterceptor,l=e.responseInterceptor,u=e.contextUrl,p=e.userFetch,f=e.server,d=e.serverVariables,h=e.http,v=e.parameters,m=e.parameterBuilders,g=Mo(r);m||(m=g?i:oi);var y={url:"",credentials:h&&h.withCredentials?"include":"same-origin",headers:{},cookies:{}};c&&(y.requestInterceptor=c),l&&(y.responseInterceptor=l),p&&(y.userFetch=p);var b=Fo(r,o);if(!b)throw new mi("Operation ".concat(o," not found"));var x=b.operation,w=void 0===x?{}:x,k=b.method,S=b.pathName;if(y.url+=xi({spec:r,scheme:s,contextUrl:u,server:f,serverVariables:d,pathName:S,method:k}),!o)return delete y.cookies,y;y.url+=S,y.method="".concat(k).toUpperCase(),v=v||{};var O=r.paths[S]||{};a&&(y.headers.accept=a);var A=function(e){var t,n={};Je()(e).call(e,(function(e){n[e.in]||(n[e.in]={}),n[e.in][e.name]=e}));var r=[];return Je()(t=at()(n)).call(t,(function(e){var t;Je()(t=at()(n[e])).call(t,(function(t){r.push(n[e][t])}))})),r}(ot()(t=ot()(n=[]).call(n,vi(w.parameters))).call(t,vi(O.parameters)));Je()(A).call(A,(function(e){var t,n,o=m[e.in];if("body"===e.in&&e.schema&&e.schema.properties&&(t=v),void 0===(t=e&&e.name&&v[e.name]))t=e&&e.name&&v[ot()(n="".concat(e.in,".")).call(n,e.name)];else if(function(e,t){return Xe()(t).call(t,(function(t){return t.name===e}))}(e.name,A).length>1){var i;console.warn(ot()(i="Parameter '".concat(e.name,"' is ambiguous because the defined spec has more than one parameter with the name: '")).call(i,e.name,"' and the passed-in parameter values did not define an 'in' value."))}if(null!==t){if(void 0!==e.default&&void 0===t&&(t=e.default),void 0===t&&e.required&&!e.allowEmptyValue)throw new Error("Required parameter ".concat(e.name," is not provided"));if(g&&e.schema&&"object"===e.schema.type&&"string"==typeof t)try{t=JSON.parse(t)}catch(e){throw new Error("Could not parse object parameter value string as JSON")}o&&o({req:y,parameter:e,value:t,operation:w,spec:r})}}));var E=De()(De()({},e),{},{operation:w});if((y=g?di(E,y):hi(E,y)).cookies&&at()(y.cookies).length){var _,j=Ot()(_=at()(y.cookies)).call(_,(function(e,t){var n=y.cookies[t];return e+(e?"&":"")+ri.a.serialize(t,n)}),"");y.headers.Cookie=j}return y.cookies&&delete y.cookies,Cn(y),y}var bi=function(e){return e?e.replace(/\W/g,""):null};function xi(e){return Mo(e.spec)?function(e){var t=e.spec,n=e.pathName,r=e.method,o=e.server,i=e.contextUrl,a=e.serverVariables,s=void 0===a?{}:a,c=Vo()(t,["paths",n,(r||"").toLowerCase(),"servers"])||Vo()(t,["paths",n,"servers"])||Vo()(t,["servers"]),l="",u=null;if(o&&c&&c.length){var p=ct()(c).call(c,(function(e){return e.url}));Ct()(p).call(p,o)>-1&&(l=o,u=c[Ct()(p).call(p,o)])}if(!l&&c&&c.length){l=c[0].url;var f=xt()(c,1);u=f[0]}if(Ct()(l).call(l,"{")>-1){var d=function(e){var t,n=[],r=/{([^}]+)}/g;for(;t=r.exec(e);)n.push(t[1]);return n}(l);Je()(d).call(d,(function(e){if(u.variables&&u.variables[e]){var t=u.variables[e],n=s[e]||t.default,r=new RegExp("{".concat(e,"}"),"g");l=l.replace(r,n)}}))}return function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=Ve.a.parse(n),i=Ve.a.parse(r),a=bi(o.protocol)||bi(i.protocol)||"",s=o.host||i.host,c=o.pathname||"";e=a&&s?ot()(t="".concat(a,"://")).call(t,s+c):c;return"/"===e[e.length-1]?an()(e).call(e,0,-1):e}(l,i)}(e):function(e){var t,n,r=e.spec,o=e.scheme,i=e.contextUrl,a=void 0===i?"":i,s=Ve.a.parse(a),c=mt()(r.schemes)?r.schemes[0]:null,l=o||c||bi(s.protocol)||"http",u=r.host||s.host||"",p=r.basePath||"";t=l&&u?ot()(n="".concat(l,"://")).call(n,u+p):p;return"/"===t[t.length-1]?an()(t).call(t,0,-1):t}(e)}function wi(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof e?n.url=e:n=e,!(this instanceof wi))return new wi(n);Ue()(this,n);var r=this.resolve().then((function(){return t.disableInterfaces||Ue()(t,wi.makeApisTagOperation(t)),t}));return r.client=this,r}wi.http=vn,wi.makeHttp=Fe()(In).call(In,null,wi.http),wi.resolve=Ho,wi.resolveSubtree=function(e,t){return Yo.apply(this,arguments)},wi.execute=function(e){var t=e.http,n=e.fetch,r=e.spec,o=e.operationId,i=e.pathName,a=e.method,s=e.parameters,c=e.securities,l=Qo()(e,["http","fetch","spec","operationId","pathName","method","parameters","securities"]),u=t||n||vn;i&&a&&!o&&(o=qo(i,a));var p=gi.buildRequest(De()({spec:r,operationId:o,parameters:s,securities:c,http:u},l));return p.body&&(Zo()(p.body)||ti()(p.body))&&(p.body=ft()(p.body)),u(p)},wi.serializeRes=bn,wi.serializeHeaders=wn,wi.clearCache=function(){Io.refs.clearCache()},wi.makeApisTagOperation=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Go.makeExecute(e);return{apis:Go.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:t})}},wi.buildRequest=yi,wi.helpers={opId:Bo},wi.getBaseUrl=xi,wi.prototype={http:vn,execute:function(e){return this.applyDefaults(),wi.execute(De()({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:"string"==typeof this.url?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},e))},resolve:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return wi.resolve(De()({spec:this.spec,url:this.url,http:this.http||this.fetch,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},t)).then((function(t){return e.originalSpec=e.spec,e.spec=t.spec,e.errors=t.errors,e}))}},wi.prototype.applyDefaults=function(){var e=this.spec,t=this.url;if(t&&He()(t,"http")){var n=Ve.a.parse(t);e.host||(e.host=n.host),e.schemes||(e.schemes=[n.protocol.replace(":","")]),e.basePath||(e.basePath="/")}};wi.helpers;var ki=wi;async function Si(e,t=!1,n="",r="",o="",i="",a=""){let s,c;const l={patch:!0,warnOnly:!0,resolveInternal:!0,anchors:!0};try{let t;t="string"==typeof e?await ki(e):await ki({spec:e}),s=t.spec,t.spec.swagger&&(c=await Me.a.convertObj(t.spec,l),s=c.openapi)}catch(e){console.info("RapiDoc: %c There was an issue while parsing the spec %o ","color:orangered",e)}const u=function(e,t=!1,n){const r=["get","put","post","delete","patch","head","options"],o=e.tags&&Array.isArray(e.tags)?e.tags.map(e=>({show:!0,name:e.name,description:e.description,paths:[],expanded:!1!==e["x-tag-expanded"]})):[];for(const t in e.paths){const n=e.paths[t].parameters,i={summary:e.paths[t].summary,description:e.paths[t].description,servers:e.paths[t].servers?e.paths[t].servers:[],parameters:e.paths[t].parameters?e.paths[t].parameters:[]};r.forEach(r=>{if(e.paths[t][r]){const a=e.paths[t][r],s=a.tags?a.tags:[];if(0===s.length){let e=t.indexOf("/",1);-1===e?e=t.length-1:e-=1,s.push(t.substr(1,e))}s.forEach(s=>{let c,l;e.tags&&(l=e.tags.find(e=>e.name.toLowerCase()===s.toLowerCase())),c=o.find(e=>e.name===s),c||(c={show:!0,name:s,paths:[],description:l?l.description:"",expanded:!l||!1!==l["x-tag-expanded"]},o.push(c));let u=(a.summary||a.description||"".concat(r," ").concat(t)).trim().split("/\r?\n/")[0];u.length>100&&(u=u.split(".")[0]),a.description||(a.description=(a.summary||"-").trim());let p=[];p=n?a.parameters?n.filter(e=>{if(!a.parameters.some(t=>e.name===t.name&&e.in===t.in))return e}).concat(a.parameters):n.slice(0):a.parameters?a.parameters.slice(0):[],c.paths.push({show:!0,expanded:!1,expandedAtLeastOnce:!1,summary:u,method:r,description:a.description,path:t,operationId:a.operationId,servers:a.servers?i.servers.concat(a.servers):i.servers,parameters:p,requestBody:a.requestBody,responses:a.responses,callbacks:a.callbacks,deprecated:a.deprecated,security:a.security,commonSummary:i.summary,commonDescription:i.description,xCodeSamples:a["x-code-samples"]})})}})}const i=o.filter(e=>e.paths&&e.paths.length>0);"method"===n?i.forEach(e=>{e.paths&&e.paths.sort((e,t)=>r.indexOf(e.method).toString().localeCompare(r.indexOf(t.method)))}):"summary"===n?i.forEach(e=>{e.paths&&e.paths.sort((e,t)=>(e.summary||e.description||e.path).localeCompare(t.summary||t.description||t.path))}):i.forEach(e=>{e.paths&&e.paths.sort((e,t)=>e.path.localeCompare(t.path))});return t?i.sort((e,t)=>e.name.localeCompare(t.name)):i}
-/**
- * @license
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
- * This code may only be used under the BSD style license found at
- * http://polymer.github.io/LICENSE.txt
- * The complete set of authors may be found at
- * http://polymer.github.io/AUTHORS.txt
- * The complete set of contributors may be found at
- * http://polymer.github.io/CONTRIBUTORS.txt
- * Code distributed by Google as part of the polymer project is also
- * subject to an additional IP rights grant found at
- * http://polymer.github.io/PATENTS.txt
- */(s,t,n),p=function(e){if(!e.components)return[];const t=[];for(const n in e.components){const r=[];for(const t in e.components[n]){const o={show:!0,id:"".concat(n.toLowerCase(),"-").concat(t.toLowerCase()).replace(Ce,"-"),name:t,component:e.components[n][t]};r.push(o)}let o=n,i=n;switch(n){case"schemas":i="Schemas",o="Schemas allows the definition of input and output data types. These types can be objects, but also primitives and arrays.";break;case"responses":i="Responses",o="Describes responses from an API Operation, including design-time, static links to operations based on the response.";break;case"parameters":i="Parameters",o="Describes operation parameters. A unique parameter is defined by a combination of a name and location.";break;case"examples":i="Examples",o="List of Examples for operations, can be requests, responses and objects examples.";break;case"requestBodies":i="Request Bodies",o="Describes common request bodies that are used across the API operations.";break;case"headers":i="Headers",o='Headers follows the structure of the Parameters but they are explicitly in "header"';break;case"securitySchemes":i="Security Schemes",o="Defines a security scheme that can be used by the operations. Supported schemes are HTTP authentication, an API key (either as a header, a cookie parameter or as a query parameter), OAuth2's common flows(implicit, password, client credentials and authorization code) as defined in RFC6749, and OpenID Connect Discovery.";break;case"links":i="Links",o="Links represent a possible design-time link for a response. The presence of a link does not guarantee the caller's ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between responses and other operations.";break;case"callbacks":i="Callbacks",o="A map of possible out-of band callbacks related to the parent operation. Each value in the map is a Path Item Object that describes a set of requests that may be initiated by the API provider and the expected responses. The key value used to identify the path item object is an expression, evaluated at runtime, that identifies a URL to use for the callback operation.";break;default:i=n,o=n}const a={show:!0,name:i,description:o,subComponents:r};t.push(a)}return t||[]}(s),f=function(e){if(e&&e.info&&e.info.description){const t=se.a.lexer(e.info.description);return t.filter(e=>"heading"===e.type&&e.depth<=2)||[]}return[]}(s),d=[];s.components&&s.components.securitySchemes&&Object.entries(s.components.securitySchemes).forEach(e=>{const t={apiKeyId:e[0],...e[1]};t.value="",t.finalKeyValue="","apiKey"===e[1].type||"http"===e[1].type?(t.in=e[1].in||"header",t.name=e[1].name||"Authorization",t.user="",t.password=""):"oauth2"===e[1].type&&(t.in="header",t.name="Authorization",t.clientId="",t.clientSecret=""),d.push(t)}),r&&o&&i&&d.push({apiKeyId:"_rapidoc_api_key",description:"api-key provided in rapidoc element attributes",type:"apiKey",oAuthFlow:"",name:r,in:o,value:i,finalKeyValue:i}),d.forEach(e=>{"http"===e.type?e.typeDisplay="basic"===e.scheme?"HTTP Basic":"HTTP Bearer":"apiKey"===e.type?e.typeDisplay="API Key (".concat(e.name,")"):"oauth2"===e.type?e.typeDisplay="OAuth (".concat(e.apiKeyId,")"):e.typeDisplay=e.type});let h=[];s.servers&&Array.isArray(s.servers)?(s.servers.forEach(e=>{let t=e.url.trim();t.startsWith("http")||t.startsWith("//")||t.startsWith("{")||window.location.origin.startsWith("http")&&(e.url=window.location.origin+e.url,t=e.url),e.variables&&Object.entries(e.variables).forEach(e=>{const n=new RegExp("{".concat(e[0],"}"),"g");t=t.replace(n,e[1].default||""),e[1].value=e[1].default||""}),e.computedUrl=t}),a&&s.servers.push({url:a,computedUrl:a})):a?s.servers=[{url:a,computedUrl:a}]:window.location.origin.startsWith("http")?s.servers=[{url:window.location.origin,computedUrl:window.location.origin}]:s.servers=[{url:"http://localhost",computedUrl:"http://localhost"}],h=s.servers;return{info:s.info,infoDescriptionHeaders:f,tags:u,components:p,externalDocs:s.externalDocs,securitySchemes:d,servers:h,basePath:s.basePath}}const Oi=new WeakMap,Ai=(Ei=e=>t=>{if(!(t instanceof C))throw new Error("unsafeHTML can only be used in text bindings");const n=Oi.get(t);if(void 0!==n&&E(e)&&e===n.value&&t.value===n.fragment)return;const r=document.createElement("template");r.innerHTML=e;const o=document.importNode(r.content,!0);t.setValue(o),Oi.set(t,{value:e,fragment:o})},(...e)=>{const t=Ei(...e);return b.set(t,!0),t});var Ei;function _i(){const e=fa(["Requires"]);return _i=function(){return e},e}function ji(){const e=fa(["",". "]);return ji=function(){return e},e}function Ti(){const e=fa([" "," Token in "," ","
"]);return Ti=function(){return e},e}function Ci(){const e=fa(["Requires"]);return Ci=function(){return e},e}function Ii(){const e=fa(["",". "]);return Ii=function(){return e},e}function Pi(){const e=fa([" "," "," in Authorization header
"]);return Pi=function(){return e},e}function Ri(){const e=fa(["Requires"]);return Ri=function(){return e},e}function Li(){const e=fa(["",". "]);return Li=function(){return e},e}function Ni(){const e=fa([" "," OAuth Token (",") in Authorization header
"]);return Ni=function(){return e},e}function Mi(){const e=fa([" "," "]);return Mi=function(){return e},e}function Bi(){const e=fa(["Requires all of the following
"]);return Bi=function(){return e},e}function Di(){const e=fa([' OR
']);return Di=function(){return e},e}function qi(){const e=fa([" ",' "]);return qi=function(){return e},e}function Fi(){const e=fa(['"]);return Fi=function(){return e},e}function zi(){const e=fa([' '," |
"]);return zi=function(){return e},e}function Ui(){const e=fa([' Send Authorization
in header
containing the word Basic
followed by a space and a base64 encoded string of username:password
.
"]);return Ui=function(){return e},e}function $i(){const e=fa([' "]);return $i=function(){return e},e}function Hi(){const e=fa(["Send Authorization
in header
containing the word Bearer
followed by a space and a Token String."]);return Hi=function(){return e},e}function Wi(){const e=fa(["Send ","
in ","
with the given value"]);return Wi=function(){return e},e}function Vi(){const e=fa([" ",' ',"
"]);return Vi=function(){return e},e}function Yi(){const e=fa([' ',"
"]);return Yi=function(){return e},e}function Ki(){const e=fa([' ',' ']);return Ki=function(){return e},e}function Gi(){const e=fa([' '," "," "," | "," "," |
"," "]);return Gi=function(){return e},e}function Ji(){const e=fa([' "]);return Ji=function(){return e},e}function Qi(){const e=fa(['No API key applied
']);return Qi=function(){return e},e}function Xi(){const e=fa([' ',' API key applied
']);return Xi=function(){return e},e}function Zi(){const e=fa([' "]);return Zi=function(){return e},e}function ea(){const e=fa(['
']);return ea=function(){return e},e}function ta(){const e=fa([' ']);return ta=function(){return e},e}function na(){const e=fa(['']);return na=function(){return e},e}function ra(){const e=fa([' ']);return ra=function(){return e},e}function oa(){const e=fa([' ',""]);return oa=function(){return e},e}function ia(){const e=fa(['
"]);return ia=function(){return e},e}function aa(){const e=fa([' Scopes ',"
"]);return aa=function(){return e},e}function sa(){const e=fa([" ",' '," ","
",' ']);return sa=function(){return e},e}function ca(){const e=fa(['Refresh URL ',"
"]);return ca=function(){return e},e}function la(){const e=fa(['Token URL ',"
"]);return la=function(){return e},e}function ua(){const e=fa(['Auth URL ',"
"]);return ua=function(){return e},e}function pa(){const e=fa([' "]);return pa=function(){return e},e}function fa(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function da(e,t){let n="";const r=this.resolvedSpec.securitySchemes.find(t=>t.apiKeyId===e);if(r){const e=t.target.closest("tr");if(r.type&&r.scheme&&"http"===r.type&&"basic"===r.scheme.toLowerCase()){const t=e.querySelector(".api-key-user").value.trim(),r=e.querySelector(".api-key-password").value.trim();t&&r&&(n="Basic ".concat(btoa("".concat(t,":").concat(r))))}else n=e.querySelector(".api-key-input").value.trim(),n&&r.scheme&&"bearer"===r.scheme.toLowerCase()&&(n="Bearer ".concat(n));r.finalKeyValue=n}this.requestUpdate()}function ha(){this.resolvedSpec.securitySchemes.forEach(e=>{e.user="",e.password="",e.value="",e.finalKeyValue=""}),this.requestUpdate()}function va(e,t="Bearer",n){this.resolvedSpec.securitySchemes.find(t=>t.apiKeyId===e).finalKeyValue="".concat("bearer"===t.toLowerCase()?"Bearer":"mac"===t.toLowerCase()?"MAC":t," ").concat(n),this.requestUpdate()}async function ma(e,t,n,r,o,i,a="header",s,c,l=null){const u=c?c.querySelector(".oauth-resp-display"):void 0,p=new URLSearchParams,f=new Headers;p.append("grant_type",o),"client_credentials"!==o&&p.append("redirect_uri",r),i&&p.append("code",i),"header"===a?f.set("Authorization","Basic ".concat(btoa("".concat(t,":").concat(n)))):(p.append("client_id",t),p.append("client_secret",n)),l&&p.append("scope",l);try{const t=await fetch(e,{method:"POST",headers:f,body:p}),n=await t.json();if(!t.ok)return u&&(u.innerHTML=''.concat(n.error_description||n.error_description||"Unable to get access token","")),!1;if(n.token_type&&n.access_token)return va.call(this,s,n.token_type,n.access_token),u&&(u.innerHTML='Access Token Received'),!0}catch(e){return u&&(u.innerHTML='Failed to get access token'),!1}}async function ga(e,t,n,r,o,i,a,s,c,l){sessionStorage.removeItem("winMessageEventActive"),t.close(),e.data.fake||(e.data||console.warn("RapiDoc: Received no data with authorization message"),e.data.error&&console.warn("RapiDoc: Error while receiving data"),e.data&&("code"===e.data.responseType?ma.call(this,n,r,o,i,a,e.data.code,s,c,l):"token"===e.data.responseType&&va.call(this,c,e.data.token_type,e.data.access_token)))}async function ya(e,t,n,r,o){const i=o.target.closest(".oauth-flow"),a=i.querySelector(".oauth-client-id")?i.querySelector(".oauth-client-id").value.trim():"",s=i.querySelector(".oauth-client-secret")?i.querySelector(".oauth-client-secret").value.trim():"",c=i.querySelector(".oauth-send-client-secret-in")?i.querySelector(".oauth-send-client-secret-in").value.trim():"header",l=[...i.querySelectorAll('input[type="checkbox"]:checked')],u="".concat(Math.random().toString(36),"random").slice(2,9),p=new URL("".concat(window.location.origin).concat(window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")),"/").concat(this.oauthReceiver));let f,d="",h="";if([...i.parentNode.querySelectorAll(".oauth-resp-display")].forEach(e=>{e.innerHTML=""}),"authorizationCode"===t||"implicit"===t){const o=new URL(n);"authorizationCode"===t?(d="authorization_code",h="code"):"implicit"===t&&(h="token");const v=new URLSearchParams(o.search),m=l.map(e=>e.value).join(" ");m&&v.set("scope",m),v.set("client_id",a),v.set("redirect_uri",p.toString()),v.set("response_type",h),v.set("state",u),v.set("show_dialog",!0),o.search=v.toString(),"true"===sessionStorage.getItem("winMessageEventActive")&&window.postMessage({fake:!0},this),setTimeout(()=>{f=window.open(o.toString()),f?(sessionStorage.setItem("winMessageEventActive","true"),window.addEventListener("message",t=>ga.call(this,t,f,r,a,s,p.toString(),d,c,e,i),{once:!0})):console.error("RapiDoc: Unable to open ".concat(o.toString()," in a new window"))},10)}else if("clientCredentials"===t){d="client_credentials";const t=l.map(e=>e.value).join(" ");ma.call(this,r,a,s,p.toString(),d,"",c,e,i,t)}}function ba(e,t,n,r,o){let i;return i="authorizationCode"===e?"Authorization Code Flow":"clientCredentials"===e?"Client Credentials Flow":"implicit"===e?"Implicit Flow":"password"===e?"Password Flow":e,z(pa(),i,o.authorizationUrl?z(ua(),o.authorizationUrl):"",o.tokenUrl?z(la(),o.tokenUrl):"",o.refreshUrl?z(ca(),o.refreshUrl):"","authorizationCode"===e||"clientCredentials"===e||"implicit"===e||"password"===e?z(sa(),o.scopes?z(aa(),Object.entries(o.scopes).map((t,n)=>z(ia(),e,n,t[0],e,n,t[0],t[0]!==t[1]?" - ".concat(t[1]||""):""))):"",t,"authorizationCode"===e||"clientCredentials"===e||"password"===e?z(oa(),n,"authorizationCode"===e||"clientCredentials"===e?z(ra()):""):z(na()),"authorizationCode"===e||"clientCredentials"===e||"implicit"===e?z(ta(),t=>{ya.call(this,r,e,o.authorizationUrl,o.tokenUrl,t)}):"","password"===e?z(ea()):""):"")}function xa(){const e=this.resolvedSpec.securitySchemes.filter(e=>e.finalKeyValue);return z(Zi(),"read focused".includes(this.renderStyle)?"section-gap--read-mode":"section-gap ",e.length>0?z(Xi(),e.length,()=>{ha.call(this)}):z(Qi()),this.resolvedSpec.securitySchemes&&this.resolvedSpec.securitySchemes.length>0?z(Ji(),this.resolvedSpec.securitySchemes.map(e=>z(Gi(),e.typeDisplay,e.finalKeyValue?z(Ki(),e.finalKeyValue?"Key Applied":"",()=>{e.finalKeyValue="",this.requestUpdate()}):"",e.description?z(Yi(),Ai(se()(e.description||""))):"","apikey"===e.type.toLowerCase()||"http"===e.type.toLowerCase()&&"bearer"===e.scheme.toLowerCase()?z(Vi(),"apikey"===e.type.toLowerCase()?z(Wi(),e.name,e.in):z(Hi()),"cookie"!==e.in?z($i(),e.value,t=>{da.call(this,e.apiKeyId,t)},e.finalKeyValue?"UPDATE":"SET"):""):"","http"===e.type.toLowerCase()&&"basic"===e.scheme.toLowerCase()?z(Ui(),e.user,e.password,t=>{da.call(this,e.apiKeyId,t)},e.finalKeyValue?"UPDATE":"SET"):"","oauth2"===e.type.toLowerCase()?z(zi(),Object.keys(e.flows).map(t=>ba.call(this,t,e.clientId,e.clientSecret,e.apiKeyId,e.flows[t]))):""))):"")}function wa(e){if(this.resolvedSpec.securitySchemes&&e){const t=[];return e.forEach(e=>{const n=[],r=[];let o="";Object.keys(e).forEach(t=>{const i=this.resolvedSpec.securitySchemes.find(e=>e.apiKeyId===t);o||(o=e[t].join(", ")),i&&(r.push(i.typeDisplay),n.push(i))}),t.push({pathScopes:o,securityTypes:r.length>1?"".concat(r[0]," + ").concat(r.length-1," more"):r[0],securityDefs:n})}),z(Fi(),t.map((e,t)=>z(qi(),0!==t?z(Di()):"",e.securityTypes,e.securityDefs.length>1?z(Bi()):"",e.securityDefs.map((t,n)=>z(Mi(),"oauth2"===t.type?z(Ni(),e.securityDefs.length>1?z(Li(),n+1):z(Ri()),t.apiKeyId):"http"===t.type?z(Pi(),e.securityDefs.length>1?z(Ii(),n+1):z(Ci()),"basic"===t.scheme?"Base 64 encoded username:password":"Bearer Token"):z(Ti(),e.securityDefs.length>1?z(ji(),n+1):z(_i()),t.name,t.in))))))}return""}function ka(){const e=Aa([' "]);return ka=function(){return e},e}function Sa(){const e=Aa(['"]);return Sa=function(){return e},e}function Oa(){const e=Aa([' CODE SAMPLES
"]);return Oa=function(){return e},e}function Aa(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Ea(e){return z(Oa(),e=>{if(!e.target.classList.contains("tab-btn"))return;const t=e.target.dataset.tab,n=[...e.currentTarget.querySelectorAll(".tab-btn")],r=[...e.currentTarget.querySelectorAll(".tab-content")];n.forEach(e=>e.classList[e.dataset.tab===t?"add":"remove"]("active")),r.forEach(e=>{e.style.display=e.dataset.tab===t?"block":"none"})},e.map((e,t)=>z(Sa(),0===t?"active":"",e.lang,t,e.label||e.lang)),e.map((e,t)=>z(ka(),0===t?"block":"none",e.lang,t,t=>{Pe(e.source,t)},le.a.languages[e.lang.toLowerCase()]?Ai(le.a.highlight(e.source,le.a.languages[e.lang.toLowerCase()],e.lang.toLowerCase())):e.source)))}function _a(){const e=Ia([' ']);return _a=function(){return e},e}function ja(){const e=Ia([' "]);return ja=function(){return e},e}function Ta(){const e=Ia([' '," ","
"]);return Ta=function(){return e},e}function Ca(){const e=Ia([' CALLBACKS
'," "]);return Ca=function(){return e},e}function Ia(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Pa(e){return z(Ca(),Object.entries(e).map(e=>z(Ta(),e[0],Object.entries(e[1]).map(e=>z(ja(),Object.entries(e[1]).map(t=>{var n,r,o;return z(_a(),t[0],t[0],e[0],t[0]||"",e[0]||"",(null===(n=t[1])||void 0===n?void 0:n.parameters)||"",(null===(r=t[1])||void 0===r?void 0:r.requestBody)||"",this.fillRequestFieldsWithExample,this.renderStyle,this.schemaStyle,this.defaultSchemaTab,this.schemaExpandLevel,this.schemaDescriptionExpanded,null===(o=t[1])||void 0===o?void 0:o.responses,this.renderStyle,this.schemaStyle,this.defaultSchemaTab,this.schemaExpandLevel,this.schemaDescriptionExpanded)}))))))}function Ra(){const e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([".border-top{border-top:1px solid var(--border-color)}.border{border:1px solid var(--border-color);border-radius:var(--border-radius)}.light-border{border:1px solid var(--light-border-color);border-radius:var(--border-radius)}.pad-8-16{padding:8px 16px}.pad-top-8{padding-top:8px}.mar-top-8{margin-top:8px}"]);return Ra=function(){return e},e}var La=re(Ra());function Na(e){if(!e)return;const t={type:e.$ref?"{recursive}":e.enum?"enum":e.format?e.format:e.type?e.type:"{missing-type-info}",format:e.format?e.format:"",pattern:e.pattern&&!e.enum?e.pattern:"",readOrWriteOnly:e.readOnly?"🆁":e.writeOnly?"🆆":"",deprecated:e.deprecated?"❌":"",example:void 0===e.example?"":Array.isArray(e.example)?e.example:"".concat(e.example),default:void 0===e.default?"":"".concat(e.default),description:e.description?e.description:"",constrain:"",allowedValues:"",arrayType:"",html:""};if("{recursive}"===t.type?t.description=e.$ref.substring(e.$ref.lastIndexOf("/")+1):"{missing-type-info}"===t.type&&(t.description=t.description||""),e.enum){let n="";e.enum.map(e=>{n+="".concat(e,", ")}),t.allowedValues=n.slice(0,-2)}if("array"===e.type&&e.items){const n=e.items;if(t.arrayType="".concat(e.type," of ").concat(n.type),t.default=0===n.default?"0 ":n.default?n.default:"",n.enum){let e="";n.enum.map(t=>{e+="".concat(t,", ")}),t.allowedValues=e.slice(0,-2)}}else"integer"===e.type||"number"===e.type?(void 0!==e.minimum&&void 0!==e.maximum?t.constrain="".concat(e.exclusiveMinimum?">":">=").concat(e.minimum," and ").concat(e.exclusiveMaximum?"<":"<="," ").concat(e.maximum):void 0!==e.minimum&&void 0===e.maximum?t.constrain="".concat(e.exclusiveMinimum?">":">=").concat(e.minimum):void 0===e.minimum&&void 0!==e.maximum&&(t.constrain="".concat(e.exclusiveMaximum?"<":"<=").concat(e.maximum)),void 0!==e.multipleOf&&(t.constrain="(multiple of ".concat(e.multipleOf,")"))):"string"===e.type&&(void 0!==e.minLength&&void 0!==e.maxLength?t.constrain="(".concat(e.minLength," to ").concat(e.maxLength," chars)"):void 0!==e.minLength&&void 0===e.maxLength?t.constrain="min ".concat(e.minLength," chars"):void 0===e.minLength&&void 0!==e.maxLength&&(t.constrain="max ".concat(e.maxLength," chars")));return t.html="".concat(t.type,"~|~").concat(t.readOrWriteOnly,"~|~").concat(t.constrain,"~|~").concat(t.default,"~|~").concat(t.allowedValues,"~|~").concat(t.pattern,"~|~").concat(t.description,"~|~").concat(e.title||"","~|~").concat(t.deprecated?"deprecated":""),t}function Ma(e){if(""===e.example)return"";if(null===e.example)return null;if(0===e.example)return 0;if(e.example)return e.example;if(0===Object.keys(e).length)return null;if(e.$ref)return e.$ref;let t=e.format||e.type||(e.enum?"enum":"");switch(t||(e.enum?t="enum":e.anyOf?t="anyOf":e.oneOf&&(t="oneOf")),t.toLowerCase()){case"int32":case"int64":case"integer":return 0;case"float":case"double":case"number":case"decimal":return.5;case"string":return e.enum?e.enum[0]:e.pattern?e.pattern:"string";case"url":case"uri":return"http://example.com";case"byte":return btoa("string");case"binary":return"binary";case"boolean":return!1;case"date":return new Date(0).toISOString().split("T")[0];case"date-time":case"dateTime":return new Date(0).toISOString();case"password":return"password";case"enum":return e.enum[0];case"uuid":return"3fa85f64-5717-4562-b3fc-2c963f66afa6";case"email":return"user@example.com";case"hostname":return"example.com";case"ipv4":return"198.51.100.42";case"ipv6":return"2001:0db8:5b96:0000:0000:426f:8e17:642a";case"null":return null;default:return e.nullable?null:e.$ref?"data of type ".concat(e.$ref):"?"}}function Ba(e,t=1){const n=" ".repeat(t);let r="";if(1===t&&"object"!=typeof e)return"\n".concat(n).concat(e.toString());for(const o in e)r=Array.isArray(e[o])||"object"==typeof e[o]?"".concat(r,"\n").concat(n,"<").concat(o,"> ").concat(Ba(e[o],t+1),"\n").concat(n,"").concat(o,">"):"".concat(r,"\n").concat(n,"<").concat(o,"> ").concat(e[o].toString()," ").concat(o,">");return r}function Da(e,t){"object"==typeof t&&null!==t&&(e.title&&(t["::TITLE"]=e.title),e.description&&(t["::DESCRIPTION"]=e.description))}function qa(e){if("object"==typeof e&&null!==e){delete e["::TITLE"],delete e["::DESCRIPTION"];for(const t in e)qa(e[t])}}function Fa(e,t,n){for(const r in t)t[r][n]=e}function za(e,t,n){let r=0;const o={};for(const i in e)for(const a in n)o["example-".concat(r)]={...e[i]},o["example-".concat(r)][t]=n[a],r++;return o}function Ua(e,t,n=0,r=""){if(e){if(e.allOf){const r={};if(1===e.allOf.length&&!e.allOf[0].properties&&!e.allOf[0].items){const t=e.allOf[0];return"".concat(Na(t).html)}e.allOf.map((e,t)=>{if("object"===e.type||e.properties||e.allOf||e.anyOf||e.oneOf){const o=(e.anyOf||e.oneOf)&&t>0?t:"",i=Ua(e,{},n+1,o);Object.assign(r,i)}else if("array"===e.type||e.items){const t=Ua(e,{},n+1);Object.assign(r,t)}else{if(!e.type)return"";{const t="prop".concat(Object.keys(r).length),n=Na(e);r[t]="".concat(n.html)}}}),t=r}else if(e.anyOf||e.oneOf){if(t["::description"]=e.description||"","object"===e.type||e.properties){t["::description"]=e.description||"",t["::type"]="object";for(const r in e.properties)e.required&&e.required.includes(r)?t["".concat(r,"*")]=Ua(e.properties[r],{},n+1):t[r]=Ua(e.properties[r],{},n+1)}const o={};e[e.anyOf?"anyOf":"oneOf"].forEach((e,t)=>{if("object"===e.type||e.properties||e.allOf||e.anyOf||e.oneOf){const n=Ua(e,{});o["::OPTION~".concat(t+1).concat(e.title?"~".concat(e.title):"")]=n,o["::type"]="xxx-of-option"}else if("array"===e.type||e.items){const n=Ua(e,{});o["::OPTION~".concat(t+1).concat(e.title?"~".concat(e.title):"")]=n,o["::type"]="xxx-of-array"}else{const n="::OPTION~".concat(t+1).concat(e.title?"~".concat(e.title):"");o[n]="".concat(Na(e).html)}}),t[e.anyOf?"::ANY~OF ".concat(r):"::ONE~OF ".concat(r)]=o,t["::type"]="xxx-of"}else if("object"===e.type||e.properties){t["::description"]=e.description||"",t["::type"]="object",t["::deprecated"]=e.deprecated||!1;for(const r in e.properties)e.required&&e.required.includes(r)?t["".concat(r,"*")]=Ua(e.properties[r],{},n+1):t[r]=Ua(e.properties[r],{},n+1);e.additionalProperties&&(t[""]=Ua(e.additionalProperties,{}))}else{if(!e.items){const t=Na(e);return t.html?"".concat(t.html):""}t["::description"]=e.description?e.description:e.items.description?"array<".concat(e.items.description,">"):"",t["::type"]="array",t["::props"]=Ua(e.items,{},n+1)}return t}}function $a(e,t,n,r,o=!0,i){const a=[];if(e)for(const t in e){let n="",o="json";if(r.toLowerCase().includes("json")){if("text"===i)n="string"==typeof e[t].value?e[t].value:JSON.stringify(e[t].value,void 0,2),o="text";else if(n=e[t].value,"string"==typeof e[t].value)try{const r=e[t].value.replace(/([\w]+)(:)/g,'"$1"$2').replace(/'/g,'"');n=JSON.parse(r),o="json"}catch(r){o="text",n=e[t].value}}else n=e[t].value,o="text";a.push({exampleId:t,exampleSummary:e[t].summary||t,exampleDescription:e[t].description||"",exampleType:r,exampleValue:n,exampleFormat:o})}else if(t){let e="",n="json";if(r.toLowerCase().includes("json")){if("text"===i)e="string"==typeof t?t:JSON.stringify(t,void 0,2),n="text";else if("object"==typeof t)e=t,n="json";else if("string"==typeof t)try{e=JSON.parse(t),n="json"}catch(r){n="text",e=t}}else e=t,n="text";a.push({exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:r,exampleValue:e,exampleFormat:n})}if(0===a.length)if(n)if(n.example)a.push({exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:r,exampleValue:n.example,exampleFormat:r.toLowerCase().includes("json")&&"object"==typeof n.example?"json":"text"});else if(r.toLowerCase().includes("json")||r.toLowerCase().includes("text")||r.toLowerCase().includes("*/*")||r.toLowerCase().includes("xml")){let e="",t="",s="",c="";r.toLowerCase().includes("xml")?(e=n.xml&&n.xml.name?"<".concat(n.xml.name,">"):"",t=n.xml&&n.xml.name?"".concat(n.xml.name,">"):"",s="text"):s=i;const l=function e(t,n={}){let r={};if(t){if(t.allOf){const o={};if(1===t.allOf.length&&!t.allOf[0].properties&&!t.allOf[0].items){if(t.allOf[0].$ref)return"{ }";if(t.allOf[0].readOnly&&n.includeReadOnly){return Ma(t.allOf[0])}return}t.allOf.map(t=>{if("object"===t.type||t.properties||t.allOf||t.anyOf||t.oneOf){const r=e(t,n);Object.assign(o,r)}else if("array"===t.type||t.items){const r=[e(t,n)];Object.assign(o,r)}else{if(!t.type)return"";{const e="prop".concat(Object.keys(o).length);o[e]=Ma(t)}}}),r=o}else if(t.oneOf){if(t.oneOf.length>0){let o=0;for(const i in t.oneOf){const a=e(t.oneOf[i],n);for(const e in a)r["example-".concat(o)]=a[e],Da(t.oneOf[i],r["example-".concat(o)]),o++}}}else if(t.anyOf){let o;if("object"===t.type||t.properties){o={"example-0":{}};for(const r in t.properties){if(t.example){o=t;break}t.properties[r].deprecated&&!n.includeDeprecated||(t.properties[r].readOnly&&!n.includeReadOnly||t.properties[r].writeOnly&&!n.includeWriteOnly||(o=za(o,r,e(t.properties[r],n))))}}let i=0;for(const a in t.anyOf){const s=e(t.anyOf[a],n);for(const e in s){if(void 0!==o)for(const t in o)r["example-".concat(i)]={...o[t],...s[e]};else r["example-".concat(i)]=s[e];Da(t.anyOf[a],r["example-".concat(i)]),i++}}}else if("object"===t.type||t.properties)if(r["example-0"]={},Da(t,r["example-0"]),t.example)r["example-0"]=t.example;else for(const a in t.properties){var o,i;if(!t.properties[a].deprecated||n.includeDeprecated)if(!t.properties[a].readOnly||n.includeReadOnly)if(!t.properties[a].writeOnly||n.includeWriteOnly)if("array"===t.properties[a].type||t.properties[a].items)if(t.properties[a].example)Fa(t.properties[a].example,r,a);else if(null!==(o=t.properties[a])&&void 0!==o&&null!==(i=o.items)&&void 0!==i&&i.example)Fa([t.properties[a].items.example],r,a);else{const o=e(t.properties[a].items,n),i=[];for(const e in o)i[e]=[o[e]];r=za(r,a,i)}else r=za(r,a,e(t.properties[a],n))}else{if("array"!==t.type&&!t.items)return{"example-0":Ma(t)};var a;if(t.example)r["example-0"]=t.example;else if(null!==(a=t.items)&&void 0!==a&&a.example)r["example-0"]=[t.items.example];else{const o=e(t.items,n);let i=0;for(const e in o)r["example-".concat(i)]=[o[e]],Da(t.items,r["example-".concat(i)]),i++}}return r}}(n,{includeReadOnly:o,includeWriteOnly:!0,deprecated:!0});let u=0;for(const n in l){if(!l[n])continue;const o=l[n]["::TITLE"]||"Example ".concat(++u),p=l[n]["::DESCRIPTION"]||"";qa(l[n]),c=r.toLowerCase().includes("xml")?"".concat(e).concat(Ba(l[n]),"\n").concat(t):"text"===i?JSON.stringify(l[n],null,2):l[n],a.push({exampleId:n,exampleSummary:o,exampleDescription:p,exampleType:r,exampleFormat:s,exampleValue:c})}}else a.push({exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:r,exampleValue:"",exampleFormat:"text"});else a.push({exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:r,exampleValue:"",exampleFormat:"text"});return a}function Ha(){const e=Za(['',"",""]);return Ha=function(){return e},e}function Wa(){const e=Za(['"','"',""]);return Wa=function(){return e},e}function Va(){const e=Za(["",":"]);return Va=function(){return e},e}function Ya(){const e=Za([' '," ","
"]);return Ya=function(){return e},e}function Ka(){const e=Za([' ','
','
',"","
"]);return Ka=function(){return e},e}function Ga(){const e=Za(["",""]);return Ga=function(){return e},e}function Ja(){const e=Za(['null
']);return Ja=function(){return e},e}function Qa(){const e=Za([' "]);return Qa=function(){return e},e}function Xa(){const e=Za([":host{display:flex}.json-tree{font-family:var(--font-mono);font-size:var(--font-size-small);display:inline-block;overflow:hidden;word-break:break-all;flex:1;line-height:calc(var(--font-size-small) + 6px)}.open-bracket{display:inline-block;padding:0 20px 0 0;cursor:pointer;border:1px solid transparent;border-radius:3px}.open-bracket:hover{color:var(--primary-color);background-color:var(--hover-color);border:1px solid var(--border-color)}.inside-bracket{padding-left:12px;border-left:1px dotted var(--border-color)}.open-bracket.collapsed+.inside-bracket,.open-bracket.collapsed+.inside-bracket+.close-bracket{display:none}.string{color:var(--green)}.number{color:var(--blue)}.null{color:var(--red)}.boolean{color:var(--purple)}.object{color:var(--fg)}.toolbar{display:flex;width:100%;padding:2px 0;color:var(--primary-color);font-family:var(--font-regular);margin-bottom:4px;align-items:center;font-size:calc(var(--font-size-small) - 1px)}"]);return Xa=function(){return e},e}function Za(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function es(){const e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([".tr{display:flex;flex:none;width:100%;border-bottom:1px dotted transparent}.td{display:block;flex:0 0 auto;box-sizing:border-box}.key{font-family:var(--font-mono);white-space:normal;word-break:break-all}.collapsed-descr .key{overflow:hidden}.key-descr{font-family:var(--font-regular);color:var(--light-fg);flex-shrink:1;text-overflow:ellipsis;overflow:hidden;display:none}.expanded-descr .key-descr{max-height:auto;overflow:hidden;display:none}.collapsed-descr .tr{max-height:20px}.tr.xxx-of{border-top:1px dotted var(--primary-color)}.xxx-of-key{font-size:calc(var(--font-size-small) - 2px);font-weight:700;background-color:var(--primary-color);color:var(--primary-color-invert);border-radius:2px;line-height:calc(var(--font-size-small) + 6px);padding:0 5px;margin-bottom:1px;display:inline-block}.xxx-of-descr{font-family:var(--font-regular);color:var(--primary-color);font-size:calc(var(--font-size-small) - 1px);margin-left:2px}.bina,.byte,.date,.emai,.host,.ipv4,.pass,.stri,.string,.uri,.url,.uuid{color:var(--green)}.deci .blue,.doub,.floa,.int3,.int6,.inte,.numb,.number{color:var(--blue)}.null{color:var(--red)}.bool,.boolean{color:var(--purple)}.enum{color:var(--orange)}.recu{color:var(--brown)}.toolbar{display:flex;width:100%;padding:2px 0;color:var(--primary-color)}.toolbar-item{cursor:pointer;padding:5px 0;margin:0 2px}.schema-root-type{cursor:auto;color:var(--fg2);font-weight:700;text-transform:uppercase}.schema-root-type.xxx-of{display:none}.toolbar-item:first-of-type{margin:0 2px 0 0}@media only screen and (min-width:500px){.key-descr{display:block}.expanded-descr .key-descr{display:block}}"]);return es=function(){return e},e}customElements.define("json-tree",class extends ie{static get properties(){return{data:{type:Object},renderStyle:{type:String,attribute:"render-style"},isLast:{type:Boolean}}}static get styles(){return[pe,La,de,re(Xa()),Te]}render(){return z(Qa(),e=>{Pe(JSON.stringify(this.data,null,2),e)},this.generateTree(this.data,this.isLast))}generateTree(e,t=!1){if(null===e)return z(Ja());if("object"==typeof e&&e instanceof Date==!1){const n=Array.isArray(e)?"array":"pure_object";return 0===Object.keys(e).length?z(Ga(),Array.isArray(e)?"[ ],":"{ },"):z(Ka(),"array"===n?"array":"object",this.toggleExpand,"array"===n?"[":"{",Object.keys(e).map((t,r,o)=>z(Ya(),"pure_object"===n?z(Va(),t):"",this.generateTree(e[t],r===o.length-1))),"array"===n?"]":"}",t?"":",")}return"string"==typeof e||e instanceof Date?z(Wa(),typeof e,e,t?"":","):z(Ha(),typeof e,e,t?"":",")}toggleExpand(e){const t=e.target;t.classList.contains("expanded")?(t.classList.replace("expanded","collapsed"),e.target.innerHTML=e.target.classList.contains("array")?"[...]":"{...}"):(t.classList.replace("collapsed","expanded"),e.target.innerHTML=e.target.classList.contains("array")?"[":"{")}});var ts=re(es());function ns(){const e=Ms(['',""]);return ns=function(){return e},e}function rs(){const e=Ms(['Pattern: ',"
"]);return rs=function(){return e},e}function os(){const e=Ms(['Allowed: ',"
"]);return os=function(){return e},e}function is(){const e=Ms(['Default: ',"
"]);return is=function(){return e},e}function as(){const e=Ms(['',"
"]);return as=function(){return e},e}function ss(){const e=Ms(['',":"]);return ss=function(){return e},e}function cs(){const e=Ms(['',""]);return cs=function(){return e},e}function ls(){const e=Ms(['','*:']);return ls=function(){return e},e}function us(){const e=Ms([' ',' '," ",'
'," "," "," "," "," ","
"]);return us=function(){return e},e}function ps(){const e=Ms([' ',"
"]);return ps=function(){return e},e}function fs(){const e=Ms(["",""]);return fs=function(){return e},e}function ds(){const e=Ms(["",""]);return ds=function(){return e},e}function hs(){const e=Ms([" "," "]);return hs=function(){return e},e}function vs(){const e=Ms([" "," "]);return vs=function(){return e},e}function ms(){const e=Ms(["",""]);return ms=function(){return e},e}function gs(){const e=Ms(['ARRAY']);return gs=function(){return e},e}function ys(){const e=Ms(['',""]);return ys=function(){return e},e}function bs(){const e=Ms(['','*']);return bs=function(){return e},e}function xs(){const e=Ms(['','',""]);return xs=function(){return e},e}function ws(){const e=Ms([' ',"
"," "]);return ws=function(){return e},e}function ks(){const e=Ms(['[...]']);return ks=function(){return e},e}function Ss(){const e=Ms(['[']);return Ss=function(){return e},e}function Os(){const e=Ms(['[[...]]']);return Os=function(){return e},e}function As(){const e=Ms(['[[']);return As=function(){return e},e}function Es(){const e=Ms(['{...}']);return Es=function(){return e},e}function _s(){const e=Ms(['{']);return _s=function(){return e},e}function js(){const e=Ms(['[{...}]']);return js=function(){return e},e}function Ts(){const e=Ms(['[{']);return Ts=function(){return e},e}function Cs(){const e=Ms(['',":{ }"]);return Cs=function(){return e},e}function Is(){const e=Ms(['null
']);return Is=function(){return e},e}function Ps(){const e=Ms([' Schema not found ']);return Ps=function(){return e},e}function Rs(){const e=Ms([" ",""]);return Rs=function(){return e},e}function Ls(){const e=Ms([' "]);return Ls=function(){return e},e}function Ns(){const e=Ms([".tree{font-size:var(--font-size-small);text-align:left;line-height:calc(var(--font-size-small) + 6px)}.tree .tr:hover{background-color:var(--hover-color)}.collapsed-descr .tr{max-height:calc(var(--font-size-small) + 8px)}.collapsed-descr .m-markdown-small p{line-height:calc(var(--font-size-small) + 6px)}.tree .key{max-width:300px}.key.deprecated .key-label{text-decoration:line-through}.open-bracket{display:inline-block;padding:0 20px 0 0;cursor:pointer;border:1px solid transparent;border-radius:3px}.open-bracket:hover{color:var(--primary-color);background-color:var(--hover-color);border:1px solid var(--border-color)}.close-bracket{display:inline-block;font-family:var(--font-mono)}.tr.collapsed+.inside-bracket,.tr.collapsed+.inside-bracket+.close-bracket{display:none}.inside-bracket.array,.inside-bracket.object{border-left:1px dotted var(--border-color)}.inside-bracket.xxx-of{padding:5px 0;border-style:dotted;border-width:0 0 1px 0;border-color:var(--primary-color)}"]);return Ns=function(){return e},e}function Ms(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Bs(){const e=zs([".tags{display:flex;flex-wrap:wrap;outline:0;padding:0;border-radius:var(--border-radius);border:1px solid var(--border-color);cursor:text;overflow:hidden;background:var(--input-bg)}.editor,.tag{padding:3px;margin:2px}.tag{border:1px solid var(--border-color);background-color:var(--bg3);color:var(--fg3);border-radius:var(--border-radius);word-break:break-all;font-size:var(--font-size-small)}.tag:hover~#cursor{display:block}.editor{flex:1;border:1px solid transparent;color:var(--fg);min-width:60px;outline:0;line-height:inherit;font-family:inherit;background:0 0;font-size:calc(var(--font-size-small) + 1px)}.editor::placeholder{color:var(--placeholder-color);opacity:1}"]);return Bs=function(){return e},e}function Ds(){const e=zs([' '," "]);return Ds=function(){return e},e}function qs(){const e=zs(["",""]);return qs=function(){return e},e}function Fs(){const e=zs([' ','
']);return Fs=function(){return e},e}function zs(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("schema-tree",class extends ie{static get properties(){return{data:{type:Object},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"}}}connectedCallback(){super.connectedCallback(),(!this.schemaExpandLevel||this.schemaExpandLevel<1)&&(this.schemaExpandLevel=99999),this.schemaDescriptionExpanded&&"true false".includes(this.schemaDescriptionExpanded)||(this.schemaDescriptionExpanded="false")}static get styles(){return[pe,ts,La,re(Ns()),Te]}render(){var e,t;return z(Ls(),"true"===this.schemaDescriptionExpanded?"expanded-descr":"collapsed-descr",(null===(e=this.data)||void 0===e?void 0:e["::type"])||"",(null===(t=this.data)||void 0===t?void 0:t["::type"])||"",()=>{this.schemaDescriptionExpanded="true"===this.schemaDescriptionExpanded?"false":"true"},"true"===this.schemaDescriptionExpanded?"Single line description":"Multiline description",this.data?Ai(se()(this.data["::description"]||"")):"",this.data?z(Rs(),this.generateTree("array"===this.data["::type"]?this.data["::props"]:this.data,this.data["::type"],"","")):z(Ps()))}generateTree(e,t="object",n="",r="",o=0){if(!e)return z(Is());if(0===Object.keys(e).length)return z(Cs(),n);let i="",a="";if(n.startsWith("::ONE~OF")||n.startsWith("::ANY~OF"))i=n.replace("::","").replace("~"," ");else if(n.startsWith("::OPTION")){const e=n.split("~");i=e[1],a=e[2]}else i=n;const s=300-12*o;let c="",l="";if("object"===e["::type"]?"array"===t?(c=o0&&!(n.startsWith("::props")||n.startsWith("::ONE~")||n.startsWith("::ANY~")||n.startsWith("::OPTION~")||n.startsWith("::ARRAY~OF"))?":":"","xxx-of"===e["::type"]&&"array"===t?z(gs()):"",c,Ai(se()(r||"")),e["::type"]||"no-type-info","xxx-of-option"===e["::type"]||"xxx-of-array"===e["::type"]?0:12,Array.isArray(e)&&e[0]?z(ms(),this.generateTree(e[0],"xxx-of-option","::ARRAY~OF","",o)):z(vs(),Object.keys(e).map(t=>z(hs(),["::description","::type","::props","::deprecated"].includes(t)?"array"===e[t]["::type"]||"object"===e[t]["::type"]?z(ds(),this.generateTree("array"===e[t]["::type"]?e[t]["::props"]:e[t],e[t]["::type"],t,e[t]["::description"],o+1)):"":z(fs(),this.generateTree("array"===e[t]["::type"]?e[t]["::props"]:e[t],e[t]["::type"],t,e[t]["::description"],o+1))))),e["::type"]&&e["::type"].includes("xxx-of")?"":z(ps(),l));const u=e.split("~|~"),p=u[0].replace("{","").substring(0,4).toLowerCase();return z(us(),u[8],s,i.endsWith("*")?z(ls(),i.substring(0,i.length-1)):n.startsWith("::OPTION")?z(cs(),i):z(ss(),i),p,"array"===t?"[".concat(u[0],"]"):"".concat(u[0]),u[1],"array"===t?r:"",u[2]?z(as(),u[2]):"",u[3]?z(is(),u[3]):"",u[4]?z(os(),u[4]):"",u[5]?z(rs(),u[5]):"",u[6]?z(ns(),Ai(se()(u[6]))):"")}toggleObjectExpand(e){const t=e.target.closest(".tr");t.classList.contains("expanded")?(t.classList.replace("expanded","collapsed"),e.target.innerHTML=e.target.classList.contains("array-of-object")?"[{...}]":e.target.classList.contains("array-of-array")?"[[...]]":e.target.classList.contains("array")?"[...]":"{...}"):(t.classList.replace("collapsed","expanded"),e.target.innerHTML=e.target.classList.contains("array-of-object")?"[{":e.target.classList.contains("array-of-array")?"[[":e.target.classList.contains("object")?"{":"[")}});function Us(){const e=cl([' ']);return Us=function(){return e},e}function $s(){const e=cl(['No API key applied
']);return $s=function(){return e},e}function Hs(){const e=cl([' ',"
"]);return Hs=function(){return e},e}function Ws(){const e=cl([' '," "]);return Ws=function(){return e},e}function Vs(){const e=cl([' "]);return Vs=function(){return e},e}function Ys(){const e=cl([' '," ","
"]);return Ys=function(){return e},e}function Ks(){const e=cl(['"]);return Ks=function(){return e},e}function Gs(){const e=cl([' "]);return Gs=function(){return e},e}function Js(){const e=cl(["","
"]);return Js=function(){return e},e}function Qs(){const e=cl([' "]);return Qs=function(){return e},e}function Xs(){const e=cl(['']);return Xs=function(){return e},e}function Zs(){const e=cl([' ',"
"]);return Zs=function(){return e},e}function ec(){const e=cl([' Response Status: ','
','
"]);return ec=function(){return e},e}function tc(){const e=cl(['',""]);return tc=function(){return e},e}function nc(){const e=cl([' "," "]);return nc=function(){return e},e}function rc(){const e=cl([' "]);return rc=function(){return e},e}function oc(){const e=cl([' Example: ',' '," "," "]);return oc=function(){return e},e}function ic(){const e=cl([' | '," "," |
"]);return ic=function(){return e},e}function ac(){const e=cl([' '," "]);return ac=function(){return e},e}function sc(){const e=cl([' Allowed: ']);return sc=function(){return e},e}function cc(){const e=cl([" "," ",""]);return cc=function(){return e},e}function lc(){const e=cl(["","
"]);return lc=function(){return e},e}function uc(){const e=cl(['Default: ',"
"]);return uc=function(){return e},e}function pc(){const e=cl([' '," "," ","
"]);return pc=function(){return e},e}function fc(){const e=cl([" "," | "]);return fc=function(){return e},e}function dc(){const e=cl(['']);return dc=function(){return e},e}function hc(){const e=cl([" "," "]);return hc=function(){return e},e}function vc(){const e=cl(['
"]);return vc=function(){return e},e}function mc(){const e=cl(['
']);return mc=function(){return e},e}function gc(){const e=cl([' "]);return gc=function(){return e},e}function yc(){const e=cl([" ",""]);return yc=function(){return e},e}function bc(){const e=cl([' ']);return bc=function(){return e},e}function xc(){const e=cl([' ']);return xc=function(){return e},e}function wc(){const e=cl(["",""]);return wc=function(){return e},e}function kc(){const e=cl(['*',""]);return kc=function(){return e},e}function Sc(){const e=cl([' ',' ',' | '," | ","
",""]);return Sc=function(){return e},e}function Oc(){const e=cl([" "," ",""]);return Oc=function(){return e},e}function Ac(){const e=cl([' ',"
"]);return Ac=function(){return e},e}function Ec(){const e=cl([' ',"
"]);return Ec=function(){return e},e}function _c(){const e=cl([' "]);return _c=function(){return e},e}function jc(){const e=cl(['',"
"]);return jc=function(){return e},e}function Tc(){const e=cl(['*']);return Tc=function(){return e},e}function Cc(){const e=cl([' REQUEST BODY ',' ',' ',"
"," ","
"]);return Cc=function(){return e},e}function Ic(){const e=cl([" ",' ']);return Ic=function(){return e},e}function Pc(){const e=cl([" ",' ']);return Pc=function(){return e},e}function Rc(){const e=cl(['
']);return Rc=function(){return e},e}function Lc(){const e=cl([' ',"
"]);return Lc=function(){return e},e}function Nc(){const e=cl([' ',"
"]);return Nc=function(){return e},e}function Mc(){const e=cl([' '," ",'
"]);return Mc=function(){return e},e}function Bc(){const e=cl(['"]);return Bc=function(){return e},e}function Dc(){const e=cl([' "]);return Dc=function(){return e},e}function qc(){const e=cl([" ",' '," ","
"]);return qc=function(){return e},e}function Fc(){const e=cl([' "]);return Fc=function(){return e},e}function zc(){const e=cl([' "]);return zc=function(){return e},e}function Uc(){const e=cl([' ','
"]);return Uc=function(){return e},e}function $c(){const e=cl([" ◇"]);return $c=function(){return e},e}function Hc(){const e=cl([" "," ",' '," "," "]);return Hc=function(){return e},e}function Wc(){const e=cl([' Example: '," "]);return Wc=function(){return e},e}function Vc(){const e=cl([' | ']);return Vc=function(){return e},e}function Yc(){const e=cl([' '," "]);return Yc=function(){return e},e}function Kc(){const e=cl([' Allowed: ']);return Kc=function(){return e},e}function Gc(){const e=cl([" "," ",""]);return Gc=function(){return e},e}function Jc(){const e=cl(["","
"]);return Jc=function(){return e},e}function Qc(){const e=cl(['Default: ',"
"]);return Qc=function(){return e},e}function Xc(){const e=cl([' '," "," ","
"]);return Xc=function(){return e},e}function Zc(){const e=cl([' ']);return Zc=function(){return e},e}function el(){const e=cl([' "]);return el=function(){return e},e}function tl(){const e=cl([' ']);return tl=function(){return e},e}function nl(){const e=cl([' '," | "]);return nl=function(){return e},e}function rl(){const e=cl(['*']);return rl=function(){return e},e}function ol(){const e=cl([' ',"",' '," | ",' '," |
",' '," "," |
"]);return ol=function(){return e},e}function il(){const e=cl(["",""]);return il=function(){return e},e}function al(){const e=cl([' ',"
"," "," "," "," "," ","
"]);return al=function(){return e},e}function sl(){const e=cl([".read-mode{margin-top:24px}.param-name,.param-type{margin:1px 0;text-align:right;line-height:var(--font-size-small)}.param-name{color:var(--fg);font-family:var(--font-mono)}.param-type{color:var(--light-fg);font-family:var(--font-regular)}.param-constraint{min-width:100px}.param-constraint:empty{display:none}.top-gap{margin-top:24px}.textarea{min-height:220px;padding:5px;resize:vertical}.example:first-child{margin-top:-9px}.response-message{font-weight:700;text-overflow:ellipsis}.response-message.error{color:var(--red)}.response-message.success{color:var(--blue)}.file-input-container{align-items:flex-end}.file-input-container .input-set:first-child .file-input-remove-btn{visibility:hidden}.file-input-remove-btn{font-size:16px;color:var(--red);outline:0;border:none;background:0 0;cursor:pointer}.v-tab-btn{font-size:var(--smal-font-size);height:24px;border:none;background:0 0;opacity:.3;cursor:pointer;padding:4px 8px}.v-tab-btn.active{font-weight:700;background:var(--bg);opacity:1}@media only screen and (min-width:768px){.textarea{padding:8px}}"]);return sl=function(){return e},e}function cl(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("tag-input",class extends ie{render(){return z(Fs(),Array.isArray(this.value)&&this.value.length>0?z(qs(),this.value.map(e=>z(Ds(),e))):"",this.afterPaste,this.afterKeyDown,this.placeholder||"")}static get properties(){return{placeholder:{type:String},value:{type:Array,attribute:"value"}}}attributeChangedCallback(e,t,n){if("value"===e&&n&&t!==n){const e=n.split(",").filter(e=>""!==e.trim());this.value=e||""}}afterPaste(e){const t=(e.clipboardData||window.clipboardData).getData("Text");console.log(t)}afterKeyDown(e){13===e.keyCode?(e.stopPropagation(),e.preventDefault(),e.target.value&&(Array.isArray(this.value)?this.value=[...this.value,e.target.value]:this.value=[e.target.value],e.target.value="")):8===e.keyCode&&0===e.target.value.length&&Array.isArray(this.value)&&this.value.length>0&&(this.value.splice(-1),this.value=[...this.value])}static get styles(){return[re(Bs())]}});function ll(){const e=Rl(['',""]);return ll=function(){return e},e}function ul(){const e=Rl(['Pattern: ',"
"]);return ul=function(){return e},e}function pl(){const e=Rl(['Allowed: ',"
"]);return pl=function(){return e},e}function fl(){const e=Rl(['Default: ',"
"]);return fl=function(){return e},e}function dl(){const e=Rl(['',"
"]);return dl=function(){return e},e}function hl(){const e=Rl(['',""]);return hl=function(){return e},e}function vl(){const e=Rl([' ',""]);return vl=function(){return e},e}function ml(){const e=Rl(["",""]);return ml=function(){return e},e}function gl(){const e=Rl(['','',""]);return gl=function(){return e},e}function yl(){const e=Rl(['','*']);return yl=function(){return e},e}function bl(){const e=Rl([' ','
',' ','
'," "," "," "," "," ","
"]);return bl=function(){return e},e}function xl(){const e=Rl(["",""]);return xl=function(){return e},e}function wl(){const e=Rl([" "," "]);return wl=function(){return e},e}function kl(){const e=Rl(['',""]);return kl=function(){return e},e}function Sl(){const e=Rl([' ','*']);return Sl=function(){return e},e}function Ol(){const e=Rl(['','',""]);return Ol=function(){return e},e}function Al(){const e=Rl([' '," "]);return Al=function(){return e},e}function El(){const e=Rl([' "]);return El=function(){return e},e}function _l(){const e=Rl([" ",' "]);return _l=function(){return e},e}function jl(){const e=Rl(['',""]);return jl=function(){return e},e}function Tl(){const e=Rl(['null
']);return Tl=function(){return e},e}function Cl(){const e=Rl([" ",""]);return Cl=function(){return e},e}function Il(){const e=Rl([' "]);return Il=function(){return e},e}function Pl(){const e=Rl([".table{font-size:var(--font-size-small);text-align:left;line-height:calc(var(--font-size-small) + 6px)}.table .tr{width:calc(100% - 5px);padding:0 0 0 5px;border-bottom:1px dotted var(--light-border-color)}.table .td{padding:4px 0}.table .key{width:240px}.key.deprecated .key-label{text-decoration:line-through}.table .key-type{white-space:normal;width:70px}.collapsed-descr .tr{max-height:calc(var(--font-size-small) + var(--font-size-small) + 4px)}.obj-toggle{padding:0 2px;border-radius:2px;border:1px solid transparent;display:inline-block;margin-left:-16px;color:var(--primary-color);cursor:pointer;font-size:calc(var(--font-size-small) + 4px);font-family:var(--font-mono);background-clip:border-box}.obj-toggle:hover{border-color:var(--primary-color)}.tr.expanded+.object-body{display:block}.tr.collapsed+.object-body{display:none}"]);return Pl=function(){return e},e}function Rl(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("api-request",class extends ie{constructor(){super(),this.responseMessage="",this.responseStatus="success",this.responseHeaders="",this.responseText="",this.responseUrl="",this.curlSyntax="",this.activeResponseTab="response",this.selectedRequestBodyType="",this.selectedRequestBodyExample=""}static get properties(){return{serverUrl:{type:String,attribute:"server-url"},servers:{type:Array},method:{type:String},path:{type:String},parameters:{type:Array},request_body:{type:Object},api_keys:{type:Array},parser:{type:Object},accept:{type:String},callback:{type:String},responseMessage:{type:String,attribute:!1},responseText:{type:String,attribute:!1},responseHeaders:{type:String,attribute:!1},responseStatus:{type:String,attribute:!1},responseUrl:{type:String,attribute:!1},fillRequestFieldsWithExample:{type:String,attribute:"fill-request-fields-with-example"},allowTry:{type:String,attribute:"allow-try"},renderStyle:{type:String,attribute:"render-style"},schemaStyle:{type:String,attribute:"schema-style"},activeSchemaTab:{type:String,attribute:"active-schema-tab"},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},activeResponseTab:{type:String},selectedRequestBodyType:{type:String,attribute:"selected-request-body-type"},selectedRequestBodyExample:{type:String,attribute:"selected-request-body-example"}}}static get styles(){return[ge,de,pe,ve,La,Se,we,re(sl()),Te]}render(){return z(al(),"read focused".includes(this.renderStyle)||"true"===this.callback?"read-mode":"view-mode","true"===this.callback?"tiny-title":"req-res-title","true"===this.callback?"CALLBACK REQUEST":"REQUEST",this.inputParametersTemplate("path"),this.inputParametersTemplate("query"),this.requestBodyTemplate(),this.inputParametersTemplate("header"),this.inputParametersTemplate("cookie"),"false"===this.allowTry?"":z(il(),this.apiCallTemplate()))}updated(e){if("focused"===this.renderStyle)if(1===e.size&&e.has("activeSchemaTab"));else{[...this.shadowRoot.querySelectorAll('textarea[data-ptype="form-data"]')].forEach(e=>{const t=this.shadowRoot.querySelector("textarea[data-pname='hidden-".concat(e.dataset.pname,"']"));t&&(e.value=t.value)})}}inputParametersTemplate(e){const t=this.parameters?this.parameters.filter(t=>t.in===e):[];if(0===t.length)return"";let n="";"path"===e?n="PATH PARAMETERS":"query"===e?n="QUERY-STRING PARAMETERS":"header"===e?n="REQUEST HEADERS":"cookie"===e&&(n="COOKIES");const r=[];for(const n of t){if(!n.schema)continue;const t=Na(n.schema);let i="",a=[],s="form",c=!0;if("query"===e&&(n.style&&"form spaceDelimited pipeDelimited".includes(n.style)&&(s=n.style),"boolean"==typeof n.explode&&(c=n.explode)),n.example=void 0===n.example?"":Array.isArray(n.example)?n.example:"".concat(n.example),n.example)i="array"===t.type?n.example:"".concat(n.example),a=[{value:n.example,description:"".concat(n.example)}];else if(t.example)i="array"===t.type?t.example:"".concat(t.example),a=[{value:t.example,description:"".concat(t.example)}];else if(n.examples&&Object.values(n.examples).length>0)if(Array.isArray(n.examples)){const e=Object.values(n.examples)[0]||"";i="array"===t.type?[e]:e,a=Object.values(n.examples).map(e=>({value:e,description:e}))}else{var o;i=null===(o=Object.values(n.examples)[0])||void 0===o?void 0:o.value,a=Object.values(n.examples).map(e=>({value:e.value,description:e.description||e.summary||e.value}))}r.push(z(ol(),"true"===this.allowTry?"1":"2",n.required?z(rl()):"",n.name,"array"===t.type?"".concat(t.arrayType):"".concat(t.format?t.format:t.type),"true"===this.allowTry?z(nl(),"array"===t.type||"object"===t.type?"read focused".includes(this.renderStyle)?"300px":"220px":"160px","array"===t.type?z(tl(),e,n.name,Array.isArray(i)?i.join("~|~"):i,s,c,Array.isArray(i)?i.join(","):i):"object"===t.type?z(el(),e,n.name,i,s,c,"read focused".includes(this.renderStyle)?"180px":"120px","true"===this.fillRequestFieldsWithExample?i:""):z(Zc(),"password"===t.format?"password":"text",e,n.name,Array.isArray(i)?i.join("~|~"):i,"true"===this.fillRequestFieldsWithExample?i:"")):"","true"===this.allowTry?"1":"2",t.default||t.constrain||t.allowedValues?z(Xc(),t.default?z(Qc(),t.default):"",t.constrain?z(Jc(),t.constrain):"",t.allowedValues&&t.allowedValues.split(",").map((e,r)=>z(Gc(),r>0?" | ":z(Kc()),z(Yc(),"true"===this.allowTry?"":"inactive-link","array"===t.type?t.type:"string",e.trim(),e=>{const t=e.target.closest("table").querySelector('[data-pname="'.concat(n.name,'"]'));t&&("array"===e.target.dataset.type?t.value=[e.target.dataset.enum]:t.value=e.target.dataset.enum)},e)))):"","true"===this.allowTry?z(Vc()):"",Ai(se()(n.description||"")),Array.isArray(a)&&a.length>0?z(Wc(),a.map((e,r)=>{var o;return z(Hc(),0===r?"":z($c()),"array"===t.type?"[":"","true"===this.allowTry?"":"inactive-link","array"===t.type?t.type:"string","array"===t.type?(null===(o=e.value)||void 0===o?void 0:o.join("~|~"))||"":e.value||"",e=>{const t=e.target.closest("table").querySelector('[data-pname="'.concat(n.name,'"]'));t&&("array"===e.target.dataset.exampleType?t.value=e.target.dataset.example.split("~|~"):t.value=e.target.dataset.example)},e.description||"","array"===t.type?"] ":"")})):""))}return z(Uc(),n,r)}resetRequestBodySelection(){this.selectedRequestBodyType="",this.selectedRequestBodyExample=""}onSelectExample(e){this.selectedRequestBodyExample=e.target.value;const t=e.target;window.setTimeout(e=>{const t=e.closest(".example-panel").querySelector(".request-body-param");e.closest(".example-panel").querySelector(".request-body-param-user-input").value=t.value},0,t)}onMimeTypeChange(e){this.selectedRequestBodyType=e.target.value;const t=e.target;this.selectedRequestBodyExample="",window.setTimeout(e=>{const t=e.closest(".request-body-container").querySelector(".request-body-param");if(t){e.closest(".request-body-container").querySelector(".request-body-param-user-input").value=t.value}},0,t)}requestBodyTemplate(){if(!this.request_body)return"";if(0===Object.keys(this.request_body).length)return"";let e="",t="",n="",r="",o="";const i=[],a=this.request_body.content;for(const e in a)i.push({mimeType:e,schema:a[e].schema,example:a[e].example,examples:a[e].examples}),this.selectedRequestBodyType||(this.selectedRequestBodyType=e);return e=1===i.length?"":z(zc(),e=>this.onMimeTypeChange(e),i.map(e=>z(Fc(),e.mimeType,e.mimeType===this.selectedRequestBodyType,e.mimeType))),i.forEach(e=>{let i,a=[];if(this.selectedRequestBodyType.includes("json")||this.selectedRequestBodyType.includes("xml")||this.selectedRequestBodyType.includes("text"))e.mimeType===this.selectedRequestBodyType&&(a=$a(e.examples?e.examples:"",e.example?e.example:"",e.schema,e.mimeType,!1,"text"),this.selectedRequestBodyExample||(this.selectedRequestBodyExample=a.length>0?a[0].exampleId:""),o=z(qc(),o,1===a.length?"":z(Dc(),e=>this.onSelectExample(e),a.map(e=>z(Bc(),e.exampleId,e.exampleId===this.selectedRequestBodyExample,e.exampleSummary.length>80?e.exampleId:e.exampleSummary?e.exampleSummary:e.exampleId))),a.filter(e=>e.exampleId===this.selectedRequestBodyExample).map(t=>z(Mc(),t.exampleId===this.selectedRequestBodyExample?"example-selected":"",t.exampleId,t.exampleSummary&&t.exampleSummary.length>80?z(Nc(),t.exampleSummary):"",t.exampleDescription?z(Lc(),Ai(se()(t.exampleDescription||""))):"",e.mimeType,"text"===t.exampleFormat?t.exampleValue:JSON.stringify(t.exampleValue,null,2),t.exampleFormat,"true"===this.fillRequestFieldsWithExample?"text"===t.exampleFormat?t.exampleValue:JSON.stringify(t.exampleValue,null,2):"",e.mimeType.substring(e.mimeType.indexOf("/")+1),e.mimeType,"text"===t.exampleFormat?t.exampleValue:JSON.stringify(t.exampleValue,null,2)))));else if(this.selectedRequestBodyType.includes("form-urlencoded")||this.selectedRequestBodyType.includes("form-data")){if(e.mimeType===this.selectedRequestBodyType){const t=$a(e.examples?e.examples:"",e.example?e.example:"",e.schema,e.mimeType,!1,"text");e.schema&&(n=this.formDataTemplate(e.schema,e.mimeType,t[0]?t[0].exampleValue:""))}}else RegExp("^audio/|^image/|^video/|^font/|tar$|zip$|7z$|rtf$|msword$|excel$|/pdf$|/octet-stream$").test(this.selectedRequestBodyType)&&e.mimeType===this.selectedRequestBodyType&&(t=z(Rc(),e.mimeType));(e.mimeType.includes("json")||e.mimeType.includes("xml")||e.mimeType.includes("text"))&&(i=Ua(e.schema,{}),"table"===this.schemaStyle?r=z(Pc(),r,e.mimeType.substring(e.mimeType.indexOf("/")+1),this.selectedRequestBodyType===e.mimeType?"block":"none",i,this.schemaExpandLevel,this.schemaDescriptionExpanded):"tree"===this.schemaStyle&&(r=z(Ic(),r,e.mimeType.substring(e.mimeType.indexOf("/")+1),this.selectedRequestBodyType===e.mimeType?"block":"none",i,this.schemaExpandLevel,this.schemaDescriptionExpanded)))}),z(Cc(),this.selectedRequestBodyType,this.request_body.required?z(Tc()):"",this.selectedRequestBodyType,e,this.request_body.description?z(jc(),Ai(se()(this.request_body.description))):"",this.selectedRequestBodyType.includes("json")||this.selectedRequestBodyType.includes("xml")||this.selectedRequestBodyType.includes("text")?z(_c(),e=>{"button"===e.target.tagName.toLowerCase()&&(this.activeSchemaTab=e.target.dataset.tab)},"model"===this.activeSchemaTab?"active":"","example"===this.activeSchemaTab?"active":"",z(Ec(),"model"===this.activeSchemaTab?"block":"none",r),z(Ac(),"model"===this.activeSchemaTab?"none":"block",o)):z(Oc(),t,n))}formDataTemplate(e,t,n=""){const r=[];if(e.properties){for(const n in e.properties){var o,i,a;const s=e.properties[n],c=s.type,l=Ua(s,{}),u=Na(s),p=$a("",s.example?s.example:"",s,"json",!1,"text");r.push(z(Sc(),s.required?z(kc(),n):z(wc(),n),u.type,"object"===c?"width:100%; padding:0;":"true"===this.allowTry?"width:160px;":"display:none;","object"===c?2:1,"array"===c?"binary"===(null===(o=s.items)||void 0===o?void 0:o.format)?z(xc(),e=>this.onAddRemoveFileInput(e,n,t),n,t.includes("form-urlencode")?"form-urlencode":"form-data"):z(bc(),t.includes("form-urlencode")?"form-urlencode":"form-data",n,Array.isArray(s.example)?s.example.join("~|~"):s.example||"",Array.isArray(s.example)?s.example.join(","):s.example):z(yc(),"object"===c?z(gc(),e=>{if(e.target.classList.contains("v-tab-btn")){const t=e.target.dataset.tab;if(t){const n=e.target.closest(".tab-panel"),r=n.querySelector('.v-tab-btn[data-tab="'.concat(t,'"]')),o=[...n.querySelectorAll('.v-tab-btn:not([data-tab="'.concat(t,'"])'))],i=n.querySelector('.tab-content[data-tab="'.concat(t,'"]')),a=[...n.querySelectorAll('.tab-content:not([data-tab="'.concat(t,'"])'))];r.classList.add("active"),i.style.display="block",o.forEach(e=>{e.classList.remove("active")}),a.forEach(e=>{e.style.display="none"})}}"button"===e.target.tagName.toLowerCase()&&(this.activeSchemaTab=e.target.dataset.tab)},"model"===this.activeSchemaTab?"active":"","example"===this.activeSchemaTab?"active":"",z(mc(),"model"===this.activeSchemaTab?"block":"none",l,this.schemaExpandLevel,this.schemaDescriptionExpanded),z(vc(),"example"===this.activeSchemaTab?"block":"none",t.includes("form-urlencode")?"form-urlencode":"form-data",n,(null===(i=p[0])||void 0===i?void 0:i.exampleValue)||"","true"===this.fillRequestFieldsWithExample?p[0].exampleValue:"",n,t.includes("form-urlencode")?"hidden-form-urlencode":"hidden-form-data",p[0].exampleValue)):z(hc(),"true"===this.allowTry?z(dc(),"true"===this.fillRequestFieldsWithExample&&s.example||"","binary"===s.format?"file":"password"===s.format?"password":"text",t.includes("form-urlencode")?"form-urlencode":"form-data",n,s.example||""):"")),"object"===c?"":z(fc(),u.default||u.constrain||u.allowedValues?z(pc(),u.default?z(uc(),u.default):"",u.constrain?z(lc(),u.constrain):"",u.allowedValues&&u.allowedValues.split(",").map((e,t)=>z(cc(),t>0?" | ":z(sc()),z(ac(),"true"===this.allowTry?"":"inactive-link","array"===u.type?u.type:"string",e.trim(),e=>{const t=e.target.closest("table").querySelector('[data-pname="'.concat(n,'"]'));t&&("array"===e.target.dataset.type?t.value=[e.target.dataset.enum]:t.value=e.target.dataset.enum)},e)))):""),"object"===c?"":z(ic(),Ai(se()(s.description||"")),u.example?z(oc(),"array"===u.type?"[ ":"","true"===this.allowTry?"":"inactive-link","array"===u.type?u.type:"string","array"===u.type?(null===(a=u.example)||void 0===a?void 0:a.join("~|~"))||"":u.example,e=>{const t=e.target.closest("table").querySelector('[data-pname="'.concat(n,'"]'));t&&("array"===e.target.dataset.exampleType?t.value=e.target.dataset.example.split("~|~"):t.value=e.target.dataset.example)},"array"===u.type?u.example.join(", "):u.example,"array"===u.type?"] ":""):"")))}return z(rc(),r)}return z(nc(),t,t,n,e.description?z(tc(),Ai(se()(e.description))):"")}apiResponseTabTemplate(){const e=this.responseHeaders.includes("json")?"json":this.responseHeaders.includes("html")||this.responseHeaders.includes("xml")?"html":"";return z(ec(),this.responseStatus,this.responseMessage,this.clearResponseData,e=>{!1!==e.target.classList.contains("tab-btn")&&(this.activeResponseTab=e.target.dataset.tab)},"response"===this.activeResponseTab?"active":"","headers"===this.activeResponseTab?"active":"","curl"===this.activeResponseTab?"active":"",this.responseIsBlob?z(Zs(),"response"===this.activeResponseTab?"flex":"none",this.downloadResponseBlob,"view"===this.responseBlobType?z(Xs(),this.viewResponseBlob):""):z(Qs(),"response"===this.activeResponseTab?"flex":"none",e=>{Pe(this.responseText,e)},e?z(Js(),Ai(le.a.highlight(this.responseText,le.a.languages[e],e))):"".concat(this.responseText)),"headers"===this.activeResponseTab?"flex":"none",e=>{Pe(this.responseHeaders,e)},Ai(le.a.highlight(this.responseHeaders,le.a.languages.css,"css")),"curl"===this.activeResponseTab?"flex":"none",e=>{Pe(this.curlSyntax.replace(/\\$/,""),e)},Ai(le.a.highlight(this.curlSyntax.trim().replace(/\\$/,""),le.a.languages.shell,"shell")))}apiCallTemplate(){var e;let t="";this.servers&&this.servers.length>0&&(t=z(Gs(),e=>{this.serverUrl=e.target.value},this.servers.map(e=>z(Ks(),e.url,e.url,e.description))));const n=z(Ys(),t,this.serverUrl?z(Vs(),this.serverUrl):"");return z(Ws(),n,this.api_keys.length>0?z(Hs(),1===this.api_keys.length?"".concat(null===(e=this.api_keys[0])||void 0===e?void 0:e.typeDisplay," in ").concat(this.api_keys[0].in):"".concat(this.api_keys.length," API keys applied")):z($s()),this.parameters.length>0||this.request_body?z(Us(),this.onFillRequestData,this.onClearRequestData):"",this.onTryClick,""===this.responseMessage?"":this.apiResponseTabTemplate())}async onFillRequestData(e){[...e.target.closest(".request-panel").querySelectorAll("input, tag-input, textarea:not(.is-hidden)")].forEach(e=>{e.dataset.example&&("TAG-INPUT"===e.tagName.toUpperCase()?e.value=e.dataset.example.split("~|~"):e.value=e.dataset.example)})}async onClearRequestData(e){[...e.target.closest(".request-panel").querySelectorAll("input, tag-input, textarea:not(.is-hidden)")].forEach(e=>{e.value=""})}async onTryClick(e){const t=this,n=e.target;let r,o,i="",a="",s="",c="";const l=e.target.closest(".request-panel"),u=[...l.querySelectorAll("[data-ptype='path']")],p=[...l.querySelectorAll("[data-ptype='query']")],f=[...l.querySelectorAll("[data-ptype='query-object']")],d=[...l.querySelectorAll("[data-ptype='header']")],h=l.querySelector(".request-body-container");r=t.path;const v={method:this.method.toUpperCase(),headers:{}};if(u.map(e=>{r=r.replace("{".concat(e.dataset.pname,"}"),encodeURIComponent(e.value))}),p.length>0){const e=new URLSearchParams;p.forEach(t=>{if("false"===t.dataset.array)""!==t.value&&e.append(t.dataset.pname,t.value);else{const n=t.dataset.paramSerializeStyle,r=t.dataset.paramSerializeExplode,o=t.value&&Array.isArray(t.value)?t.value:[];"spaceDelimited"===n?e.append(t.dataset.pname,o.join(" ")):"pipeDelimited"===n?e.append(t.dataset.pname,o.join("|")):"true"===r?o.forEach(n=>{e.append(t.dataset.pname,n)}):e.append(t.dataset.pname,o.join(","))}}),r="".concat(r).concat(e.toString()?"?":"").concat(e.toString())}if(f.length>0){const e=new URLSearchParams;f.map(t=>{try{let n={};const o=t.dataset.paramSerializeStyle,i=t.dataset.paramSerializeExplode;n=Object.assign(n,JSON.parse(t.value.replace(/\s+/g," ")));for(const t in n)"object"==typeof n[t]?Array.isArray(n[t])&&("spaceDelimited"===o?e.append(t,n[t].join(" ")):"pipeDelimited"===o?e.append(t,n[t].join("|")):"true"===i?n[t].forEach(n=>{e.append(t,n)}):e.append(t,n[t])):e.append(t,n[t]);r="".concat(r).concat(e.toString()?"?":"").concat(e.toString())}catch(e){console.log("RapiDoc: unable to parse %s into object",t.value)}})}if(this.api_keys.filter(e=>"query"===e.in).forEach(e=>{r="".concat(r).concat(r.includes("?")?"&":"?").concat(e.name,"=").concat(encodeURIComponent(e.finalKeyValue))}),r="".concat(this.serverUrl.replace(/\/$/,"")).concat(r),!1===r.startsWith("http")){o=new URL(r,window.location.href).href}else o=r;if(i="curl -X ".concat(this.method.toUpperCase(),' "').concat(o,'" \\\n'),this.accept&&(v.headers.Accept=this.accept,a+=' -H "Accept: '.concat(this.accept,'" \\\n')),this.api_keys.filter(e=>"header"===e.in).forEach(e=>{v.headers[e.name]=e.finalKeyValue,a+=' -H "'.concat(e.name,": ").concat(e.finalKeyValue,'" \\\n')}),d.map(e=>{e.value&&(v.headers[e.dataset.pname]=e.value,a+=' -H "'.concat(e.dataset.pname,": ").concat(e.value,'" \\\n'))}),h){const e=h.dataset.selectedRequestBodyType;if(e.includes("form-urlencoded")){const e=l.querySelector("[data-ptype='dynamic-form']");if(e){const t=e.value,n=new URLSearchParams;let r,o=!0;if(t)try{r=JSON.parse(t)}catch(e){o=!1,console.warn("RapiDoc: Invalid JSON provided",e)}else o=!1;if(o){for(const e in r)n.append(e,JSON.stringify(r[e]));v.body=n,s=" -d ".concat(n.toString()," \\\n")}}else{const e=[...l.querySelectorAll("[data-ptype='form-urlencode']")],t=new URLSearchParams;e.filter(e=>"file"!==e.type).forEach(e=>{if("false"===e.dataset.array)e.value&&t.append(e.dataset.pname,e.value);else{const n=e.value&&Array.isArray(e.value)?e.value.join(","):"";t.append(e.dataset.pname,n)}}),v.body=t,s=" -d ".concat(t.toString()," \\\n")}}else if(e.includes("form-data")){const e=new FormData;[...l.querySelectorAll("[data-ptype='form-data']")].forEach(t=>{"false"===t.dataset.array?"file"===t.type&&t.files[0]?(e.append(t.dataset.pname,t.files[0],t.files[0].name),c+=' -F "'.concat(t.dataset.pname,"=@").concat(t.files[0].name,'" \\\n')):t.value&&(e.append(t.dataset.pname,t.value),c+=' -F "'.concat(t.dataset.pname,"=").concat(t.value,'" \\\n')):t.value&&Array.isArray(t.value)&&(t.value.forEach(e=>{c="".concat(c,' -F "').concat(t.dataset.pname,"[]=").concat(e,'" \\\n')}),e.append(t.dataset.pname,t.value.join(",")))}),v.body=e}else if(RegExp("^audio/|^image/|^video/|^font/|tar$|zip$|7z$|rtf$|msword$|excel$|/pdf$|/octet-stream$").test(e)){const e=l.querySelector(".request-body-param-file");e&&e.files[0]&&(v.body=e.files[0],s=" --data-binary @".concat(e.files[0].name," \\\n"))}else if(e.includes("json")||e.includes("xml")||e.includes("text")){const e=l.querySelector(".request-body-param-user-input");if(e&&e.value){v.body=e.value;try{s=" -d '".concat(JSON.stringify(JSON.parse(e.value)),"' \\\n")}catch(t){s=" -d '".concat(e.value.replace(/(\r\n|\n|\r)/gm,""),"' \\\n")}}}e.includes("form-data")||(v.headers["Content-Type"]=e),a+=' -H "Content-Type: '.concat(e,'" \\\n')}t.responseUrl="",t.responseHeaders="",t.curlSyntax="",t.responseStatus="success",t.responseIsBlob=!1,t.respContentDisposition="",t.responseBlobUrl&&(URL.revokeObjectURL(t.responseBlobUrl),t.responseBlobUrl=""),t.curlSyntax="".concat(i).concat(a).concat(s).concat(c);try{n.disabled=!0;const e=await fetch(r,v);n.disabled=!1,t.responseStatus=e.ok?"success":"error",t.responseMessage="".concat(e.statusText,":").concat(e.status),t.responseUrl=e.url,e.headers.forEach((e,n)=>{t.responseHeaders="".concat(t.responseHeaders).concat(n.trim(),": ").concat(e,"\n")});const o=e.headers.get("content-type");if(o){if(o.includes("json")?e.json().then(e=>{t.responseText=JSON.stringify(e,null,2)}):RegExp("^font/|tar$|zip$|7z$|rtf$|msword$|excel$|/pdf$|/octet-stream$").test(o)?(t.responseIsBlob=!0,t.responseBlobType="download"):RegExp("^audio|^image|^video").test(o)?(t.responseIsBlob=!0,t.responseBlobType="view"):e.text().then(e=>{t.responseText=e}),t.responseIsBlob){const n=e.headers.get("content-disposition");t.respContentDisposition=n?n.split("filename=")[1]:"filename",e.blob().then(e=>{t.responseBlobUrl=URL.createObjectURL(e)})}}else e.text().then(e=>{t.responseText=e})}catch(e){n.disabled=!1,t.responseMessage="".concat(e.message," (CORS or Network Issue)")}}onAddRemoveFileInput(e,t,n){if("button"!==e.target.tagName.toLowerCase())return;if(e.target.classList.contains("file-input-remove-btn")){return void e.target.closest(".input-set").remove()}const r=e.target.closest(".file-input-container"),o=document.createElement("div");o.setAttribute("class","input-set row");const i=document.createElement("input");i.type="file",i.style="width:200px; margin-top:2px;",i.setAttribute("data-pname",t),i.setAttribute("data-ptype",n.includes("form-urlencode")?"form-urlencode":"form-data"),i.setAttribute("data-array","false"),i.setAttribute("data-file-array","true");const a=document.createElement("button");a.setAttribute("class","file-input-remove-btn"),a.innerHTML="✕",o.appendChild(i),o.appendChild(a),r.insertBefore(o,e.target)}downloadResponseBlob(){if(this.responseBlobUrl){const e=document.createElement("a");document.body.appendChild(e),e.style="display: none",e.href=this.responseBlobUrl,e.download=this.respContentDisposition,e.click(),e.remove()}}viewResponseBlob(){if(this.responseBlobUrl){const e=document.createElement("a");document.body.appendChild(e),e.style="display: none",e.href=this.responseBlobUrl,e.target="_blank",e.click(),e.remove()}}clearResponseData(){this.responseUrl="",this.responseHeaders="",this.responseText="",this.responseStatus="success",this.responseMessage="",this.responseIsBlob=!1,this.responseBlobType="",this.respContentDisposition="",this.responseBlobUrl&&(URL.revokeObjectURL(this.responseBlobUrl),this.responseBlobUrl="")}disconnectedCallback(){this.responseBlobUrl&&(URL.revokeObjectURL(this.responseBlobUrl),this.responseBlobUrl=""),super.disconnectedCallback()}});function Ll(){const e=hu([' ']);return Ll=function(){return e},e}function Nl(){const e=hu([' ']);return Nl=function(){return e},e}function Ml(){const e=hu([" ",""]);return Ml=function(){return e},e}function Bl(){const e=hu([' Schema not found
']);return Bl=function(){return e},e}function Dl(){const e=hu(["","
"]);return Dl=function(){return e},e}function ql(){const e=hu([' ']);return ql=function(){return e},e}function Fl(){const e=hu([' ',"
"]);return Fl=function(){return e},e}function zl(){const e=hu([' ',"
"]);return zl=function(){return e},e}function Ul(){const e=hu([' '," "," ","
"]);return Ul=function(){return e},e}function $l(){const e=hu(['"]);return $l=function(){return e},e}function Hl(){const e=hu([' "," "]);return Hl=function(){return e},e}function Wl(){const e=hu([' ',"
"]);return Wl=function(){return e},e}function Vl(){const e=hu([' ']);return Vl=function(){return e},e}function Yl(){const e=hu([" ",""]);return Yl=function(){return e},e}function Kl(){const e=hu([" "," "]);return Kl=function(){return e},e}function Gl(){const e=hu([' No example provided
']);return Gl=function(){return e},e}function Jl(){const e=hu(['"]);return Jl=function(){return e},e}function Ql(){const e=hu([' "]);return Ql=function(){return e},e}function Xl(){const e=hu([' ',' | ',' | ',' | '," |
"]);return Xl=function(){return e},e}function Zl(){const e=hu([' "]);return Zl=function(){return e},e}function eu(){const e=hu([' ',"
"]);return eu=function(){return e},e}function tu(){const e=hu([' ',"
"]);return tu=function(){return e},e}function nu(){const e=hu(["",""]);return nu=function(){return e},e}function ru(){const e=hu([' '," "]);return ru=function(){return e},e}function ou(){const e=hu([' "]);return ou=function(){return e},e}function iu(){const e=hu(["",""]);return iu=function(){return e},e}function au(){const e=hu([' "]);return au=function(){return e},e}function su(){const e=hu(["",""]);return su=function(){return e},e}function cu(){const e=hu([' "]);return cu=function(){return e},e}function lu(){const e=hu([" ",""]);return lu=function(){return e},e}function uu(){const e=hu([' ',"
"]);return uu=function(){return e},e}function pu(){const e=hu([" "," "," "]);return pu=function(){return e},e}function fu(){const e=hu([' "]);return fu=function(){return e},e}function du(){const e=hu([".resp-head{vertical-align:middle;padding:16px 0 8px}.resp-head.divider{border-top:1px solid var(--border-color);margin-top:10px}.resp-status{font-weight:700;font-size:calc(var(--font-size-small) + 1px)}.resp-descr{font-size:calc(var(--font-size-small) + 1px);color:var(--light-fg)}.top-gap{margin-top:16px}.example-panel{font-size:var(--font-size-small);margin:0}.focused-mode,.read-mode{padding-top:24px;margin-top:12px;border-top:1px dashed var(--border-color)}"]);return du=function(){return e},e}function hu(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("schema-table",class extends ie{static get properties(){return{schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},data:{type:Object}}}connectedCallback(){super.connectedCallback(),(!this.schemaExpandLevel||this.schemaExpandLevel<1)&&(this.schemaExpandLevel=99999),this.schemaDescriptionExpanded&&"true false".includes(this.schemaDescriptionExpanded)||(this.schemaDescriptionExpanded="false")}static get styles(){return[pe,ts,re(Pl()),Te]}render(){var e,t;return z(Il(),"true"===this.schemaDescriptionExpanded?"expanded-descr":"collapsed-descr",()=>{this.schemaDescriptionExpanded="true"===this.schemaDescriptionExpanded?"false":"true"},"true"===this.schemaDescriptionExpanded?"Single line description":"Multiline description",(null===(e=this.data)||void 0===e?void 0:e["::type"])||"",(null===(t=this.data)||void 0===t?void 0:t["::type"])||"",this.data?Ai(se()(this.data["::description"]||"")):"",this.data?z(Cl(),this.generateTree("array"===this.data["::type"]?this.data["::props"]:this.data,this.data["::type"])):"")}generateTree(e,t="object",n="",r="",o=0){var i;const a=16*o;if(!e)return z(Tl());if(0===Object.keys(e).length)return z(jl(),a,n);let s="",c="",l=!1;if(n.startsWith("::ONE~OF")||n.startsWith("::ANY~OF"))s=n.replace("::","").replace("~"," "),l=!0;else if(n.startsWith("::OPTION")){const e=n.split("~");c=e[1],s=e[2]}else s=n;if("object"==typeof e)return z(_l(),o>0?z(El(),othis.toggleObjectExpand(e,s),oz(wl(),["::description","::type","::props","::deprecated"].includes(t)?"":z(xl(),this.generateTree("array"===e[t]["::type"]?e[t]["::props"]:e[t],e[t]["::type"],t,e[t]["::description"],o+1)))));const u=e.split("~|~"),p=u[0].replace("{","").substring(0,4).toLowerCase();return z(bl(),u[8],a,null!==(i=s)&&void 0!==i&&i.endsWith("*")?z(yl(),s.substring(0,s.length-1)):n.startsWith("::OPTION")?z(gl(),c,s):z(ml(),s?z(vl(),s):z(hl(),u[7])),p,"array"===t?"[".concat(u[0],"]"):u[0],u[1],"array"===t?r:"",u[2]?z(dl(),u[4]):"",u[3]?z(fl(),u[3]):"",u[4]?z(pl(),u[4]):"",u[5]?z(ul(),u[5]):"",u[6]?z(ll(),Ai(se()(u[6]))):"")}toggleObjectExpand(e){const t=e.target.closest(".tr");t.classList.contains("expanded")?(t.classList.add("collapsed"),t.classList.remove("expanded"),e.target.innerText="+"):(t.classList.remove("collapsed"),t.classList.add("expanded"),e.target.innerText="-")}});function vu(){const e=Ou([' ',"
"]);return vu=function(){return e},e}function mu(){const e=Ou([" "," "]);return mu=function(){return e},e}function gu(){const e=Ou([' ',"
"]);return gu=function(){return e},e}function yu(){const e=Ou([' ',' ',"
"]);return yu=function(){return e},e}function bu(){const e=Ou([' '," ",""]);return bu=function(){return e},e}function xu(){const e=Ou([' ',"
",""]);return xu=function(){return e},e}function wu(){const e=Ou([' DEPRECATED
']);return wu=function(){return e},e}function ku(){const e=Ou([' ']);return ku=function(){return e},e}function Su(){const e=Ou([" ",' ']);return Su=function(){return e},e}function Ou(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Au(e){var t,n;const r=new Set;for(const t in e.responses)for(const n in null===(o=e.responses[t])||void 0===o?void 0:o.content){var o;r.add(n.trim())}const i=[...r].join(", "),a=this.resolvedSpec.securitySchemes.filter(t=>{var n;return t.finalKeyValue&&(null===(n=e.security)||void 0===n?void 0:n.some(e=>t.apiKeyId in e))})||[],s=this.resolvedSpec.securitySchemes.find(e=>"_rapidoc_api_key"===e.apiKeyId&&"-"!==e.value);s&&a.push(s);const c=e.xCodeSamples?Ea.call(this,e.xCodeSamples):"";return z(Su(),"read"===this.renderStyle?z(ku()):"",e.method,e.deprecated?"deprecated":"",e.method,e.path.replace(Ce,"-"),e.deprecated?z(wu()):"",z(xu(),e.deprecated?"gray-text":"",e.summary||z(bu(),e.deprecated?" method-fg gray-text":e.method,e.method,e.path),e.summary?z(yu(),e.deprecated?" gray-text":" bold-text ".concat(e.method),e.method,e.deprecated?"gray-text":"",e.path):""),e.description?z(gu(),Ai(se()(e.description||""))):"",wa.call(this,e.security),c,e.method,e.path,e.parameters,e.requestBody,a,e.servers,(null===(t=e.servers)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.url)||this.selectedServer.computedUrl,this.fillRequestFieldsWithExample,this.allowTry,i,this.renderStyle,this.schemaStyle,this.defaultSchemaTab,this.schemaExpandLevel,this.schemaDescriptionExpanded,e.callbacks?Pa.call(this,e.callbacks):"",e.responses,this.renderStyle,this.schemaStyle,this.defaultSchemaTab,this.schemaExpandLevel,this.schemaDescriptionExpanded,Object.keys(e.responses||{})[0]||"")}function Eu(){return z(mu(),this.resolvedSpec.tags.map(e=>z(vu(),e.name.replace(Ce,"-"),e.name,Ai("".concat(se()(e.description?e.description:""),"
")),e.paths.map(e=>Au.call(this,e)))))}function _u(){const e=Iu([' ',"
"]);return _u=function(){return e},e}function ju(){const e=Iu([' ',"
"]);return ju=function(){return e},e}function Tu(){const e=Iu([' ',"
"]);return Tu=function(){return e},e}function Cu(){const e=Iu([' ',"
"," "]);return Cu=function(){return e},e}function Iu(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Pu(e){return z(Cu(),e.name,e.name,e.description?z(Tu(),Ai(se()(e.description||""))):"")}function Ru(){let e="",t={},n={},r=0;if(e=this.selectedContentId?this.selectedContentId:"overview","overview"===e||"authentication"===e||"api-servers"===e)t={},n={};else if(e.startsWith("tag--")){const t=e.replace("tag--","");n=this.resolvedSpec.tags.find(e=>e.name.replace(Ce,"-")===t)}else{for(r=0;r"".concat(t.method,"-").concat(t.path.replace(Ce,"-"))===e),!t);r+=1);var o;if(!t)n=this.resolvedSpec.tags[0],t=null===(o=this.resolvedSpec.tags[0])||void 0===o?void 0:o.paths[0]}return"overview"===e||"authentication"===e||"api-servers"===e?"":e.startsWith("tag--")?z(ju(),Pu.call(this,n)):z(_u(),Au.call(this,t))}function Lu(){const e=Uu([' '," ","
"]);return Lu=function(){return e},e}function Nu(){const e=Uu([' "]);return Nu=function(){return e},e}function Mu(){const e=Uu([" ",""]);return Mu=function(){return e},e}function Bu(){const e=Uu([' ',"
"]);return Bu=function(){return e},e}function Du(){const e=Uu(['',"
"]);return Du=function(){return e},e}function qu(){const e=Uu([' ']);return qu=function(){return e},e}function Fu(){const e=Uu([' deprecated ']);return Fu=function(){return e},e}function zu(){const e=Uu([' "]);return zu=function(){return e},e}function Uu(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function $u(e){if(e.expanded)e.expanded=!1,window.history.replaceState(null,null,"".concat(window.location.href.split("#")[0]));else{e.expanded=!0;const t="#".concat(e.method,"-").concat(e.path.replace(Ce,"-"));window.location.hash!==t&&window.history.replaceState(null,null,"".concat(window.location.href.split("#")[0]).concat(t))}this.requestUpdate()}function Hu(e){return z(zu(),t=>{$u.call(this,e,t)},e.method,e.deprecated?"deprecated":"",e.expanded?"expanded":"collapsed",e.method,e.deprecated?"deprecated":"",e.method,e.deprecated?"deprecated":"",e.path,e.deprecated?z(Fu()):"",Ai(se()(e.summary||"")))}function Wu(e){const t=new Set;for(const r in e.responses)for(const o in null===(n=e.responses[r])||void 0===n?void 0:n.content){var n;t.add(o.trim())}const r=[...t].join(", "),o=this.resolvedSpec.securitySchemes.filter(t=>{var n;return t.finalKeyValue&&(null===(n=e.security)||void 0===n?void 0:n.some(e=>t.apiKeyId in e))})||[],i=this.resolvedSpec.securitySchemes.find(e=>"_rapidoc_api_key"===e.apiKeyId&&"-"!==e.value);i&&o.push(i);const a=e.xCodeSamples?Ea(e.xCodeSamples):"";return z(qu(),e.method,e.deprecated?"deprecated":"",e.summary&&e.summary!==e.description?z(Du(),e.summary):"",e.description?z(Bu(),Ai(se()(e.description))):"",wa.call(this,e.security),a,e.method,e.path,e.parameters,e.requestBody,o,e.servers,e.servers&&e.servers.length>0?e.servers[0].url:this.selectedServer.computedUrl,this.defaultSchemaTab,this.fillRequestFieldsWithExample,this.allowTry,r,this.renderStyle,this.schemaStyle,this.schemaExpandLevel,this.schemaDescriptionExpanded,e.callbacks?Pa.call(this,e.callbacks):"",e.responses,this.defaultSchemaTab,this.renderStyle,this.schemaStyle,this.schemaExpandLevel,this.schemaDescriptionExpanded,Object.keys(e.responses||{})[0]||"")}function Vu(){return z(Mu(),this.resolvedSpec.tags.map(e=>z(Nu(),e.expanded?"expanded":"collapsed",()=>{e.expanded=!e.expanded,this.requestUpdate()},e.name.replace(Ce,"-"),e.name,Ai(se()(e.description||"")),e.paths.filter(e=>!this.matchPaths||Re(this.matchPaths,e)).map(e=>z(Lu(),e.method,e.path.replace(Ce,"-"),e.method,e.expanded?"expanded":"collapsed",Hu.call(this,e),e.expanded?Wu.call(this,e):"")))))}function Yu(){const e=op(['- '," "]);return Yu=function(){return e},e}function Ku(){const e=op(['
"]);return Ku=function(){return e},e}function Gu(){const e=op([" "," "]);return Gu=function(){return e},e}function Ju(){const e=op([' "]);return Ju=function(){return e},e}function Qu(){const e=op([' '," |
"]);return Qu=function(){return e},e}function Xu(){const e=op([' ']);return Xu=function(){return e},e}function Zu(){const e=op(['