2023-10-27 10:45:46 +02:00

3896 lines
846 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*! RapiDoc 9.3.5-beta | Author - Mrinmoy Majumdar | License information can be found in rapidoc-min.js.LICENSE.txt */
(()=>{var e,t,r={656:(e,t,r)=>{"use strict";const n=window,s=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),o=new WeakMap;class a{constructor(e,t,r){if(this._$cssResult$=!0,r!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(s&&void 0===e){const r=void 0!==t&&1===t.length;r&&(e=o.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&o.set(t,e))}return e}toString(){return this.cssText}}const l=e=>new a("string"==typeof e?e:e+"",void 0,i),c=(e,...t)=>{const r=1===e.length?e[0]:t.reduce(((t,r,n)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+e[n+1]),e[0]);return new a(r,e,i)},p=s?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return l(t)})(e):e;var u;const d=window,h=d.trustedTypes,f=h?h.emptyScript:"",m=d.reactiveElementPolyfillSupport,y={toAttribute(e,t){switch(t){case Boolean:e=e?f:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},g=(e,t)=>t!==e&&(t==t||e==e),v={attribute:!0,type:String,converter:y,reflect:!1,hasChanged:g},b="finalized";class x extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach(((t,r)=>{const n=this._$Ep(r,t);void 0!==n&&(this._$Ev.set(n,r),e.push(n))})),e}static createProperty(e,t=v){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const r="symbol"==typeof e?Symbol():"__"+e,n=this.getPropertyDescriptor(e,r,t);void 0!==n&&Object.defineProperty(this.prototype,e,n)}}static getPropertyDescriptor(e,t,r){return{get(){return this[t]},set(n){const s=this[e];this[t]=n,this.requestUpdate(e,s,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||v}static finalize(){if(this.hasOwnProperty(b))return!1;this[b]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const r of t)this.createProperty(r,e[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const e of r)t.unshift(p(e))}else void 0!==e&&t.push(p(e));return t}static _$Ep(e,t){const r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,r;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(r=e.hostConnected)||void 0===r||r.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{s?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const r=document.createElement("style"),s=n.litNonce;void 0!==s&&r.setAttribute("nonce",s),r.textContent=t.cssText,e.appendChild(r)}))})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EO(e,t,r=v){var n;const s=this.constructor._$Ep(e,r);if(void 0!==s&&!0===r.reflect){const i=(void 0!==(null===(n=r.converter)||void 0===n?void 0:n.toAttribute)?r.converter:y).toAttribute(t,r.type);this._$El=e,null==i?this.removeAttribute(s):this.setAttribute(s,i),this._$El=null}}_$AK(e,t){var r;const n=this.constructor,s=n._$Ev.get(e);if(void 0!==s&&this._$El!==s){const e=n.getPropertyOptions(s),i="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(r=e.converter)||void 0===r?void 0:r.fromAttribute)?e.converter:y;this._$El=s,this[s]=i.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,r){let n=!0;void 0!==e&&(((r=r||this.constructor.getPropertyOptions(e)).hasChanged||g)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===r.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,r))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((e,t)=>this[t]=e)),this._$Ei=void 0);let t=!1;const r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(r)):this._$Ek()}catch(e){throw t=!1,this._$Ek(),e}t&&this._$AE(r)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$EO(t,this[t],e))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}}var w;x[b]=!0,x.elementProperties=new Map,x.elementStyles=[],x.shadowRootOptions={mode:"open"},null==m||m({ReactiveElement:x}),(null!==(u=d.reactiveElementVersions)&&void 0!==u?u:d.reactiveElementVersions=[]).push("1.6.2");const $=window,S=$.trustedTypes,E=S?S.createPolicy("lit-html",{createHTML:e=>e}):void 0,k="$lit$",O=`lit$${(Math.random()+"").slice(9)}$`,j="?"+O,A=`<${j}>`,P=document,T=()=>P.createComment(""),C=e=>null===e||"object"!=typeof e&&"function"!=typeof e,I=Array.isArray,R=e=>I(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]),_="[ \t\n\f\r]",F=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D=/-->/g,M=/>/g,q=RegExp(`>|${_}(?:([^\\s"'>=/]+)(${_}*=${_}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),L=/'/g,B=/"/g,N=/^(?:script|style|textarea|title)$/i,U=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),z=U(1),H=(U(2),Symbol.for("lit-noChange")),V=Symbol.for("lit-nothing"),W=new WeakMap,G=P.createTreeWalker(P,129,null,!1),J=(e,t)=>{const r=e.length-1,n=[];let s,i=2===t?"<svg>":"",o=F;for(let t=0;t<r;t++){const r=e[t];let a,l,c=-1,p=0;for(;p<r.length&&(o.lastIndex=p,l=o.exec(r),null!==l);)p=o.lastIndex,o===F?"!--"===l[1]?o=D:void 0!==l[1]?o=M:void 0!==l[2]?(N.test(l[2])&&(s=RegExp("</"+l[2],"g")),o=q):void 0!==l[3]&&(o=q):o===q?">"===l[0]?(o=null!=s?s:F,c=-1):void 0===l[1]?c=-2:(c=o.lastIndex-l[2].length,a=l[1],o=void 0===l[3]?q:'"'===l[3]?B:L):o===B||o===L?o=q:o===D||o===M?o=F:(o=q,s=void 0);const u=o===q&&e[t+1].startsWith("/>")?" ":"";i+=o===F?r+A:c>=0?(n.push(a),r.slice(0,c)+k+r.slice(c)+O+u):r+O+(-2===c?(n.push(void 0),t):u)}const a=i+(e[r]||"<?>")+(2===t?"</svg>":"");if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==E?E.createHTML(a):a,n]};class K{constructor({strings:e,_$litType$:t},r){let n;this.parts=[];let s=0,i=0;const o=e.length-1,a=this.parts,[l,c]=J(e,t);if(this.el=K.createElement(l,r),G.currentNode=this.el.content,2===t){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(n=G.nextNode())&&a.length<o;){if(1===n.nodeType){if(n.hasAttributes()){const e=[];for(const t of n.getAttributeNames())if(t.endsWith(k)||t.startsWith(O)){const r=c[i++];if(e.push(t),void 0!==r){const e=n.getAttribute(r.toLowerCase()+k).split(O),t=/([.?@])?(.*)/.exec(r);a.push({type:1,index:s,name:t[2],strings:e,ctor:"."===t[1]?ee:"?"===t[1]?re:"@"===t[1]?ne:Q})}else a.push({type:6,index:s})}for(const t of e)n.removeAttribute(t)}if(N.test(n.tagName)){const e=n.textContent.split(O),t=e.length-1;if(t>0){n.textContent=S?S.emptyScript:"";for(let r=0;r<t;r++)n.append(e[r],T()),G.nextNode(),a.push({type:2,index:++s});n.append(e[t],T())}}}else if(8===n.nodeType)if(n.data===j)a.push({type:2,index:s});else{let e=-1;for(;-1!==(e=n.data.indexOf(O,e+1));)a.push({type:7,index:s}),e+=O.length-1}s++}}static createElement(e,t){const r=P.createElement("template");return r.innerHTML=e,r}}function Y(e,t,r=e,n){var s,i,o,a;if(t===H)return t;let l=void 0!==n?null===(s=r._$Co)||void 0===s?void 0:s[n]:r._$Cl;const c=C(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(i=null==l?void 0:l._$AO)||void 0===i||i.call(l,!1),void 0===c?l=void 0:(l=new c(e),l._$AT(e,r,n)),void 0!==n?(null!==(o=(a=r)._$Co)&&void 0!==o?o:a._$Co=[])[n]=l:r._$Cl=l),void 0!==l&&(t=Y(e,l._$AS(e,t.values),l,n)),t}class Z{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:r},parts:n}=this._$AD,s=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:P).importNode(r,!0);G.currentNode=s;let i=G.nextNode(),o=0,a=0,l=n[0];for(;void 0!==l;){if(o===l.index){let t;2===l.type?t=new X(i,i.nextSibling,this,e):1===l.type?t=new l.ctor(i,l.name,l.strings,this,e):6===l.type&&(t=new se(i,this,e)),this._$AV.push(t),l=n[++a]}o!==(null==l?void 0:l.index)&&(i=G.nextNode(),o++)}return G.currentNode=P,s}v(e){let t=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class X{constructor(e,t,r,n){var s;this.type=2,this._$AH=V,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=n,this._$Cp=null===(s=null==n?void 0:n.isConnected)||void 0===s||s}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Y(this,e,t),C(e)?e===V||null==e||""===e?(this._$AH!==V&&this._$AR(),this._$AH=V):e!==this._$AH&&e!==H&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):R(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==V&&C(this._$AH)?this._$AA.nextSibling.data=e:this.$(P.createTextNode(e)),this._$AH=e}g(e){var t;const{values:r,_$litType$:n}=e,s="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=K.createElement(n.h,this.options)),n);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===s)this._$AH.v(r);else{const e=new Z(s,this),t=e.u(this.options);e.v(r),this.$(t),this._$AH=e}}_$AC(e){let t=W.get(e.strings);return void 0===t&&W.set(e.strings,t=new K(e)),t}T(e){I(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,n=0;for(const s of e)n===t.length?t.push(r=new X(this.k(T()),this.k(T()),this,this.options)):r=t[n],r._$AI(s),n++;n<t.length&&(this._$AR(r&&r._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){var r;for(null===(r=this._$AP)||void 0===r||r.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}class Q{constructor(e,t,r,n,s){this.type=1,this._$AH=V,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=s,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=V}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,r,n){const s=this.strings;let i=!1;if(void 0===s)e=Y(this,e,t,0),i=!C(e)||e!==this._$AH&&e!==H,i&&(this._$AH=e);else{const n=e;let o,a;for(e=s[0],o=0;o<s.length-1;o++)a=Y(this,n[r+o],t,o),a===H&&(a=this._$AH[o]),i||(i=!C(a)||a!==this._$AH[o]),a===V?e=V:e!==V&&(e+=(null!=a?a:"")+s[o+1]),this._$AH[o]=a}i&&!n&&this.j(e)}j(e){e===V?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}class ee extends Q{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===V?void 0:e}}const te=S?S.emptyScript:"";class re extends Q{constructor(){super(...arguments),this.type=4}j(e){e&&e!==V?this.element.setAttribute(this.name,te):this.element.removeAttribute(this.name)}}class ne extends Q{constructor(e,t,r,n,s){super(e,t,r,n,s),this.type=5}_$AI(e,t=this){var r;if((e=null!==(r=Y(this,e,t,0))&&void 0!==r?r:V)===H)return;const n=this._$AH,s=e===V&&n!==V||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==V&&(n===V||s);s&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,r;"function"==typeof this._$AH?this._$AH.call(null!==(r=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==r?r:this.element,e):this._$AH.handleEvent(e)}}class se{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Y(this,e)}}const ie={O:k,P:O,A:j,C:1,M:J,L:Z,D:R,R:Y,I:X,V:Q,H:re,N:ne,U:ee,F:se},oe=$.litHtmlPolyfillSupport;null==oe||oe(K,X),(null!==(w=$.litHtmlVersions)&&void 0!==w?w:$.litHtmlVersions=[]).push("2.7.4");var ae,le;class ce extends x{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const r=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=r.firstChild),r}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,r)=>{var n,s;const i=null!==(n=null==r?void 0:r.renderBefore)&&void 0!==n?n:t;let o=i._$litPart$;if(void 0===o){const e=null!==(s=null==r?void 0:r.renderBefore)&&void 0!==s?s:null;i._$litPart$=o=new X(t.insertBefore(T(),e),e,void 0,null!=r?r:{})}return o._$AI(e),o})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return H}}ce.finalized=!0,ce._$litElement$=!0,null===(ae=globalThis.litElementHydrateSupport)||void 0===ae||ae.call(globalThis,{LitElement:ce});const pe=globalThis.litElementPolyfillSupport;null==pe||pe({LitElement:ce});function ue(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}(null!==(le=globalThis.litElementVersions)&&void 0!==le?le:globalThis.litElementVersions=[]).push("3.3.2");let de={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};function he(e){de=e}const fe=/[&<>"']/,me=new RegExp(fe.source,"g"),ye=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,ge=new RegExp(ye.source,"g"),ve={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},be=e=>ve[e];function xe(e,t){if(t){if(fe.test(e))return e.replace(me,be)}else if(ye.test(e))return e.replace(ge,be);return e}const we=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function $e(e){return e.replace(we,((e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const Se=/(^|[^\[])\^/g;function Ee(e,t){e="string"==typeof e?e:e.source,t=t||"";const r={replace:(t,n)=>(n=(n=n.source||n).replace(Se,"$1"),e=e.replace(t,n),r),getRegex:()=>new RegExp(e,t)};return r}const ke=/[^\w:]/g,Oe=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function je(e,t,r){if(e){let e;try{e=decodeURIComponent($e(r)).replace(ke,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!Oe.test(r)&&(r=function(e,t){Ae[" "+e]||(Pe.test(e)?Ae[" "+e]=e+"/":Ae[" "+e]=_e(e,"/",!0));e=Ae[" "+e];const r=-1===e.indexOf(":");return"//"===t.substring(0,2)?r?t:e.replace(Te,"$1")+t:"/"===t.charAt(0)?r?t:e.replace(Ce,"$1")+t:e+t}(t,r));try{r=encodeURI(r).replace(/%25/g,"%")}catch(e){return null}return r}const Ae={},Pe=/^[^:]+:\/*[^/]*$/,Te=/^([^:]+:)[\s\S]*$/,Ce=/^([^:]+:\/*[^/]*)[\s\S]*$/;const Ie={exec:function(){}};function Re(e,t){const r=e.replace(/\|/g,((e,t,r)=>{let n=!1,s=t;for(;--s>=0&&"\\"===r[s];)n=!n;return n?"|":" |"})).split(/ \|/);let n=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(/\\\|/g,"|");return r}function _e(e,t,r){const n=e.length;if(0===n)return"";let s=0;for(;s<n;){const i=e.charAt(n-s-1);if(i!==t||r){if(i===t||!r)break;s++}else s++}return e.slice(0,n-s)}function Fe(e,t,r,n){const s=t.href,i=t.title?xe(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){n.state.inLink=!0;const e={type:"link",raw:r,href:s,title:i,text:o,tokens:n.inlineTokens(o)};return n.state.inLink=!1,e}return{type:"image",raw:r,href:s,title:i,text:xe(o)}}class De{constructor(e){this.options=e||de}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:_e(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],r=function(e,t){const r=e.match(/^(\s+)(?:```)/);if(null===r)return t;const n=r[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[r]=t;return r.length>=n.length?e.slice(n.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:r}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=_e(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *>[ \t]?/gm,""),r=this.lexer.state.top;this.lexer.state.top=!0;const n=this.lexer.blockTokens(e);return this.lexer.state.top=r,{type:"blockquote",raw:t[0],tokens:n,text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r,n,s,i,o,a,l,c,p,u,d,h,f=t[1].trim();const m=f.length>1,y={type:"list",raw:"",ordered:m,start:m?+f.slice(0,-1):"",loose:!1,items:[]};f=m?`\\d{1,9}\\${f.slice(-1)}`:`\\${f}`,this.options.pedantic&&(f=m?f:"[*+-]");const g=new RegExp(`^( {0,3}${f})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;e&&(h=!1,t=g.exec(e))&&!this.rules.block.hr.test(e);){if(r=t[0],e=e.substring(r.length),c=t[2].split("\n",1)[0].replace(/^\t+/,(e=>" ".repeat(3*e.length))),p=e.split("\n",1)[0],this.options.pedantic?(i=2,d=c.trimLeft()):(i=t[2].search(/[^ ]/),i=i>4?1:i,d=c.slice(i),i+=t[1].length),a=!1,!c&&/^ *$/.test(p)&&(r+=p+"\n",e=e.substring(p.length+1),h=!0),!h){const t=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),n=new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),s=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:\`\`\`|~~~)`),o=new RegExp(`^ {0,${Math.min(3,i-1)}}#`);for(;e&&(u=e.split("\n",1)[0],p=u,this.options.pedantic&&(p=p.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!s.test(p))&&!o.test(p)&&!t.test(p)&&!n.test(e);){if(p.search(/[^ ]/)>=i||!p.trim())d+="\n"+p.slice(i);else{if(a)break;if(c.search(/[^ ]/)>=4)break;if(s.test(c))break;if(o.test(c))break;if(n.test(c))break;d+="\n"+p}a||p.trim()||(a=!0),r+=u+"\n",e=e.substring(u.length+1),c=p.slice(i)}}y.loose||(l?y.loose=!0:/\n *\n *$/.test(r)&&(l=!0)),this.options.gfm&&(n=/^\[[ xX]\] /.exec(d),n&&(s="[ ] "!==n[0],d=d.replace(/^\[[ xX]\] +/,""))),y.items.push({type:"list_item",raw:r,task:!!n,checked:s,loose:!1,text:d}),y.raw+=r}y.items[y.items.length-1].raw=r.trimRight(),y.items[y.items.length-1].text=d.trimRight(),y.raw=y.raw.trimRight();const v=y.items.length;for(o=0;o<v;o++)if(this.lexer.state.top=!1,y.items[o].tokens=this.lexer.blockTokens(y.items[o].text,[]),!y.loose){const e=y.items[o].tokens.filter((e=>"space"===e.type)),t=e.length>0&&e.some((e=>/\n.*\n/.test(e.raw)));y.loose=t}if(y.loose)for(o=0;o<v;o++)y.items[o].loose=!0;return y}}html(e){const t=this.rules.block.html.exec(e);if(t){const e={type:"html",block:!0,raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};if(this.options.sanitize){const r=this.options.sanitizer?this.options.sanitizer(t[0]):xe(t[0]);e.type="paragraph",e.text=r,e.tokens=this.lexer.inline(r)}return e}}def(e){const t=this.rules.block.def.exec(e);if(t){const e=t[1].toLowerCase().replace(/\s+/g," "),r=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",n=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:r,title:n}}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:Re(t[1]).map((e=>({text:e}))),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let r,n,s,i,o=e.align.length;for(r=0;r<o;r++)/^ *-+: *$/.test(e.align[r])?e.align[r]="right":/^ *:-+: *$/.test(e.align[r])?e.align[r]="center":/^ *:-+ *$/.test(e.align[r])?e.align[r]="left":e.align[r]=null;for(o=e.rows.length,r=0;r<o;r++)e.rows[r]=Re(e.rows[r],e.header.length).map((e=>({text:e})));for(o=e.header.length,n=0;n<o;n++)e.header[n].tokens=this.lexer.inline(e.header[n].text);for(o=e.rows.length,n=0;n<o;n++)for(i=e.rows[n],s=0;s<i.length;s++)i[s].tokens=this.lexer.inline(i[s].text);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:xe(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):xe(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=_e(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;const r=e.length;let n=0,s=0;for(;s<r;s++)if("\\"===e[s])s++;else if(e[s]===t[0])n++;else if(e[s]===t[1]&&(n--,n<0))return s;return-1}(t[2],"()");if(e>-1){const r=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,r).trim(),t[3]=""}}let r=t[2],n="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);e&&(r=e[1],n=e[3])}else n=t[3]?t[3].slice(1,-1):"";return r=r.trim(),/^</.test(r)&&(r=this.options.pedantic&&!/>$/.test(e)?r.slice(1):r.slice(1,-1)),Fe(t,{href:r?r.replace(this.rules.inline._escapes,"$1"):r,title:n?n.replace(this.rules.inline._escapes,"$1"):n},t[0],this.lexer)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let e=(r[2]||r[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e){const e=r[0].charAt(0);return{type:"text",raw:e,text:e}}return Fe(r,e,r[0],this.lexer)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrong.lDelim.exec(e);if(!n)return;if(n[3]&&r.match(/[\p{L}\p{N}]/u))return;if(!(n[1]||n[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const r=n[0].length-1;let s,i,o=r,a=0;const l="*"===n[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+r);null!=(n=l.exec(t));){if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!s)continue;if(i=s.length,n[3]||n[4]){o+=i;continue}if((n[5]||n[6])&&r%3&&!((r+i)%3)){a+=i;continue}if(o-=i,o>0)continue;i=Math.min(i,i+o+a);const t=e.slice(0,r+n.index+i+1);if(Math.min(r,i)%2){const e=t.slice(1,-1);return{type:"em",raw:t,text:e,tokens:this.lexer.inlineTokens(e)}}const l=t.slice(2,-2);return{type:"strong",raw:t,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const r=/[^ ]/.test(e),n=/^ /.test(e)&&/ $/.test(e);return r&&n&&(e=e.substring(1,e.length-1)),e=xe(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e,t){const r=this.rules.inline.autolink.exec(e);if(r){let e,n;return"@"===r[2]?(e=xe(this.options.mangle?t(r[1]):r[1]),n="mailto:"+e):(e=xe(r[1]),n=e),{type:"link",raw:r[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let r;if(r=this.rules.inline.url.exec(e)){let e,n;if("@"===r[2])e=xe(this.options.mangle?t(r[0]):r[0]),n="mailto:"+e;else{let t;do{t=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0]}while(t!==r[0]);e=xe(r[0]),n="www."===r[1]?"http://"+r[0]:r[0]}return{type:"link",raw:r[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const r=this.rules.inline.text.exec(e);if(r){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):xe(r[0]):r[0]:xe(this.options.smartypants?t(r[0]):r[0]),{type:"text",raw:r[0],text:e}}}}const Me={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Ie,lheading:/^((?:(?!^bull ).|\n(?!\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Me.def=Ee(Me.def).replace("label",Me._label).replace("title",Me._title).getRegex(),Me.bullet=/(?:[*+-]|\d{1,9}[.)])/,Me.listItemStart=Ee(/^( *)(bull) */).replace("bull",Me.bullet).getRegex(),Me.list=Ee(Me.list).replace(/bull/g,Me.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Me.def.source+")").getRegex(),Me._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Me._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Me.html=Ee(Me.html,"i").replace("comment",Me._comment).replace("tag",Me._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Me.lheading=Ee(Me.lheading).replace(/bull/g,Me.bullet).getRegex(),Me.paragraph=Ee(Me._paragraph).replace("hr",Me.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Me._tag).getRegex(),Me.blockquote=Ee(Me.blockquote).replace("paragraph",Me.paragraph).getRegex(),Me.normal={...Me},Me.gfm={...Me.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},Me.gfm.table=Ee(Me.gfm.table).replace("hr",Me.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Me._tag).getRegex(),Me.gfm.paragraph=Ee(Me._paragraph).replace("hr",Me.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Me.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Me._tag).getRegex(),Me.pedantic={...Me.normal,html:Ee("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Me._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ie,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ee(Me.normal._paragraph).replace("hr",Me.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Me.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const qe={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Ie,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,rDelimAst:/^[^_*]*?__[^_*]*?\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\*)[punct](\*+)(?=[\s]|$)|[^punct\s](\*+)(?!\*)(?=[punct\s]|$)|(?!\*)[punct\s](\*+)(?=[^punct\s])|[\s](\*+)(?!\*)(?=[punct])|(?!\*)[punct](\*+)(?!\*)(?=[punct])|[^punct\s](\*+)(?=[^punct\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\s]|$)|[^punct\s](_+)(?!_)(?=[punct\s]|$)|(?!_)[punct\s](_+)(?=[^punct\s])|[\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Ie,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^((?![*_])[\spunctuation])/};function Le(e){return e.replace(/---/g,"—").replace(/--/g,"").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1").replace(/'/g,"").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function Be(e){let t,r,n="";const s=e.length;for(t=0;t<s;t++)r=e.charCodeAt(t),Math.random()>.5&&(r="x"+r.toString(16)),n+="&#"+r+";";return n}qe._punctuation="\\p{P}$+<=>`^|~",qe.punctuation=Ee(qe.punctuation,"u").replace(/punctuation/g,qe._punctuation).getRegex(),qe.blockSkip=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,qe.anyPunctuation=/\\[punct]/g,qe._escapes=/\\([punct])/g,qe._comment=Ee(Me._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),qe.emStrong.lDelim=Ee(qe.emStrong.lDelim,"u").replace(/punct/g,qe._punctuation).getRegex(),qe.emStrong.rDelimAst=Ee(qe.emStrong.rDelimAst,"gu").replace(/punct/g,qe._punctuation).getRegex(),qe.emStrong.rDelimUnd=Ee(qe.emStrong.rDelimUnd,"gu").replace(/punct/g,qe._punctuation).getRegex(),qe.anyPunctuation=Ee(qe.anyPunctuation,"gu").replace(/punct/g,qe._punctuation).getRegex(),qe._escapes=Ee(qe._escapes,"gu").replace(/punct/g,qe._punctuation).getRegex(),qe._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,qe._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,qe.autolink=Ee(qe.autolink).replace("scheme",qe._scheme).replace("email",qe._email).getRegex(),qe._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,qe.tag=Ee(qe.tag).replace("comment",qe._comment).replace("attribute",qe._attribute).getRegex(),qe._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,qe._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,qe._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,qe.link=Ee(qe.link).replace("label",qe._label).replace("href",qe._href).replace("title",qe._title).getRegex(),qe.reflink=Ee(qe.reflink).replace("label",qe._label).replace("ref",Me._label).getRegex(),qe.nolink=Ee(qe.nolink).replace("ref",Me._label).getRegex(),qe.reflinkSearch=Ee(qe.reflinkSearch,"g").replace("reflink",qe.reflink).replace("nolink",qe.nolink).getRegex(),qe.normal={...qe},qe.pedantic={...qe.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Ee(/^!?\[(label)\]\((.*?)\)/).replace("label",qe._label).getRegex(),reflink:Ee(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",qe._label).getRegex()},qe.gfm={...qe.normal,escape:Ee(qe.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},qe.gfm.url=Ee(qe.gfm.url,"i").replace("email",qe.gfm._extended_email).getRegex(),qe.breaks={...qe.gfm,br:Ee(qe.br).replace("{2,}","*").getRegex(),text:Ee(qe.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};class Ne{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||de,this.options.tokenizer=this.options.tokenizer||new De,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:Me.normal,inline:qe.normal};this.options.pedantic?(t.block=Me.pedantic,t.inline=qe.pedantic):this.options.gfm&&(t.block=Me.gfm,this.options.breaks?t.inline=qe.breaks:t.inline=qe.gfm),this.tokenizer.rules=t}static get rules(){return{block:Me,inline:qe}}static lex(e,t){return new Ne(t).lex(e)}static lexInline(e,t){return new Ne(t).inlineTokens(e)}lex(e){let t;for(e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){let r,n,s,i;for(e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,((e,t,r)=>t+" ".repeat(r.length)));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))))if(r=this.tokenizer.space(e))e=e.substring(r.raw.length),1===r.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(r);else if(r=this.tokenizer.code(e))e=e.substring(r.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?t.push(r):(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(r=this.tokenizer.fences(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.heading(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.hr(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.blockquote(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.list(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.html(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.def(e))e=e.substring(r.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title}):(n.raw+="\n"+r.raw,n.text+="\n"+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(r=this.tokenizer.table(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.lheading(e))e=e.substring(r.raw.length),t.push(r);else{if(s=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const r=e.slice(1);let n;this.options.extensions.startBlock.forEach((function(e){n=e.call({lexer:this},r),"number"==typeof n&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(s=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(s)))n=t[t.length-1],i&&"paragraph"===n.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r),i=s.length!==e.length,e=e.substring(r.raw.length);else if(r=this.tokenizer.text(e))e=e.substring(r.raw.length),n=t[t.length-1],n&&"text"===n.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let r,n,s,i,o,a,l=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(l));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.anyPunctuation.exec(l));)l=l.slice(0,i.index)+"++"+l.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(o||(a=""),o=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))))if(r=this.tokenizer.escape(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.tag(e))e=e.substring(r.raw.length),n=t[t.length-1],n&&"text"===r.type&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(r=this.tokenizer.link(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(r.raw.length),n=t[t.length-1],n&&"text"===r.type&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(r=this.tokenizer.emStrong(e,l,a))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.codespan(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.br(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.del(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.autolink(e,Be))e=e.substring(r.raw.length),t.push(r);else if(this.state.inLink||!(r=this.tokenizer.url(e,Be))){if(s=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const r=e.slice(1);let n;this.options.extensions.startInline.forEach((function(e){n=e.call({lexer:this},r),"number"==typeof n&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(s=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(s,Le))e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(a=r.raw.slice(-1)),o=!0,n=t[t.length-1],n&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(r.raw.length),t.push(r);return t}}class Ue{constructor(e){this.options=e||de}code(e,t,r){const n=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,n);null!=t&&t!==e&&(r=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",n?'<pre><code class="'+this.options.langPrefix+xe(n)+'">'+(r?e:xe(e,!0))+"</code></pre>\n":"<pre><code>"+(r?e:xe(e,!0))+"</code></pre>\n"}blockquote(e){return`<blockquote>\n${e}</blockquote>\n`}html(e,t){return e}heading(e,t,r,n){if(this.options.headerIds){return`<h${t} id="${this.options.headerPrefix+n.slug(r)}">${e}</h${t}>\n`}return`<h${t}>${e}</h${t}>\n`}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,r){const n=t?"ol":"ul";return"<"+n+(t&&1!==r?' start="'+r+'"':"")+">\n"+e+"</"+n+">\n"}listitem(e){return`<li>${e}</li>\n`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return`<p>${e}</p>\n`}table(e,t){return t&&(t=`<tbody>${t}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return`<tr>\n${e}</tr>\n`}tablecell(e,t){const r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+`</${r}>\n`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return`<del>${e}</del>`}link(e,t,r){if(null===(e=je(this.options.sanitize,this.options.baseUrl,e)))return r;let n='<a href="'+e+'"';return t&&(n+=' title="'+t+'"'),n+=">"+r+"</a>",n}image(e,t,r){if(null===(e=je(this.options.sanitize,this.options.baseUrl,e)))return r;let n=`<img src="${e}" alt="${r}"`;return t&&(n+=` title="${t}"`),n+=this.options.xhtml?"/>":">",n}text(e){return e}}class ze{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,r){return""+r}image(e,t,r){return""+r}br(){return""}}class He{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let r=e,n=0;if(this.seen.hasOwnProperty(r)){n=this.seen[e];do{n++,r=e+"-"+n}while(this.seen.hasOwnProperty(r))}return t||(this.seen[e]=n,this.seen[r]=0),r}slug(e,t={}){const r=this.serialize(e);return this.getNextSafeSlug(r,t.dryrun)}}class Ve{constructor(e){this.options=e||de,this.options.renderer=this.options.renderer||new Ue,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ze,this.slugger=new He}static parse(e,t){return new Ve(t).parse(e)}static parseInline(e,t){return new Ve(t).parseInline(e)}parse(e,t=!0){let r,n,s,i,o,a,l,c,p,u,d,h,f,m,y,g,v,b,x,w="";const $=e.length;for(r=0;r<$;r++)if(u=e[r],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[u.type]&&(x=this.options.extensions.renderers[u.type].call({parser:this},u),!1!==x||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(u.type)))w+=x||"";else switch(u.type){case"space":continue;case"hr":w+=this.renderer.hr();continue;case"heading":w+=this.renderer.heading(this.parseInline(u.tokens),u.depth,$e(this.parseInline(u.tokens,this.textRenderer)),this.slugger);continue;case"code":w+=this.renderer.code(u.text,u.lang,u.escaped);continue;case"table":for(c="",l="",i=u.header.length,n=0;n<i;n++)l+=this.renderer.tablecell(this.parseInline(u.header[n].tokens),{header:!0,align:u.align[n]});for(c+=this.renderer.tablerow(l),p="",i=u.rows.length,n=0;n<i;n++){for(a=u.rows[n],l="",o=a.length,s=0;s<o;s++)l+=this.renderer.tablecell(this.parseInline(a[s].tokens),{header:!1,align:u.align[s]});p+=this.renderer.tablerow(l)}w+=this.renderer.table(c,p);continue;case"blockquote":p=this.parse(u.tokens),w+=this.renderer.blockquote(p);continue;case"list":for(d=u.ordered,h=u.start,f=u.loose,i=u.items.length,p="",n=0;n<i;n++)y=u.items[n],g=y.checked,v=y.task,m="",y.task&&(b=this.renderer.checkbox(g),f?y.tokens.length>0&&"paragraph"===y.tokens[0].type?(y.tokens[0].text=b+" "+y.tokens[0].text,y.tokens[0].tokens&&y.tokens[0].tokens.length>0&&"text"===y.tokens[0].tokens[0].type&&(y.tokens[0].tokens[0].text=b+" "+y.tokens[0].tokens[0].text)):y.tokens.unshift({type:"text",text:b}):m+=b),m+=this.parse(y.tokens,f),p+=this.renderer.listitem(m,v,g);w+=this.renderer.list(p,d,h);continue;case"html":w+=this.renderer.html(u.text,u.block);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(u.tokens));continue;case"text":for(p=u.tokens?this.parseInline(u.tokens):u.text;r+1<$&&"text"===e[r+1].type;)u=e[++r],p+="\n"+(u.tokens?this.parseInline(u.tokens):u.text);w+=t?this.renderer.paragraph(p):p;continue;default:{const e='Token with "'+u.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return w}parseInline(e,t){t=t||this.renderer;let r,n,s,i="";const o=e.length;for(r=0;r<o;r++)if(n=e[r],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type]&&(s=this.options.extensions.renderers[n.type].call({parser:this},n),!1!==s||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type)))i+=s||"";else switch(n.type){case"escape":case"text":i+=t.text(n.text);break;case"html":i+=t.html(n.text);break;case"link":i+=t.link(n.href,n.title,this.parseInline(n.tokens,t));break;case"image":i+=t.image(n.href,n.title,n.text);break;case"strong":i+=t.strong(this.parseInline(n.tokens,t));break;case"em":i+=t.em(this.parseInline(n.tokens,t));break;case"codespan":i+=t.codespan(n.text);break;case"br":i+=t.br();break;case"del":i+=t.del(this.parseInline(n.tokens,t));break;default:{const e='Token with "'+n.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return i}}class We{constructor(e){this.options=e||de}static passThroughHooks=new Set(["preprocess","postprocess"]);preprocess(e){return e}postprocess(e){return e}}const Ge=new class{defaults={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};options=this.setOptions;parse=this.#e(Ne.lex,Ve.parse);parseInline=this.#e(Ne.lexInline,Ve.parseInline);Parser=Ve;parser=Ve.parse;Renderer=Ue;TextRenderer=ze;Lexer=Ne;lexer=Ne.lex;Tokenizer=De;Slugger=He;Hooks=We;constructor(...e){this.use(...e)}walkTokens(e,t){let r=[];for(const n of e)switch(r=r.concat(t.call(this,n)),n.type){case"table":for(const e of n.header)r=r.concat(this.walkTokens(e.tokens,t));for(const e of n.rows)for(const n of e)r=r.concat(this.walkTokens(n.tokens,t));break;case"list":r=r.concat(this.walkTokens(n.items,t));break;default:this.defaults.extensions&&this.defaults.extensions.childTokens&&this.defaults.extensions.childTokens[n.type]?this.defaults.extensions.childTokens[n.type].forEach((e=>{r=r.concat(this.walkTokens(n[e],t))})):n.tokens&&(r=r.concat(this.walkTokens(n.tokens,t)))}return r}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach((e=>{const r={...e};if(r.async=this.defaults.async||r.async||!1,e.extensions&&(e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const r=t.renderers[e.name];t.renderers[e.name]=r?function(...t){let n=e.renderer.apply(this,t);return!1===n&&(n=r.apply(this,t)),n}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");t[e.level]?t[e.level].unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}e.childTokens&&(t.childTokens[e.name]=e.childTokens)})),r.extensions=t),e.renderer){const t=this.defaults.renderer||new Ue(this.defaults);for(const r in e.renderer){const n=t[r];t[r]=(...s)=>{let i=e.renderer[r].apply(t,s);return!1===i&&(i=n.apply(t,s)),i}}r.renderer=t}if(e.tokenizer){const t=this.defaults.tokenizer||new De(this.defaults);for(const r in e.tokenizer){const n=t[r];t[r]=(...s)=>{let i=e.tokenizer[r].apply(t,s);return!1===i&&(i=n.apply(t,s)),i}}r.tokenizer=t}if(e.hooks){const t=this.defaults.hooks||new We;for(const r in e.hooks){const n=t[r];We.passThroughHooks.has(r)?t[r]=s=>{if(this.defaults.async)return Promise.resolve(e.hooks[r].call(t,s)).then((e=>n.call(t,e)));const i=e.hooks[r].call(t,s);return n.call(t,i)}:t[r]=(...s)=>{let i=e.hooks[r].apply(t,s);return!1===i&&(i=n.apply(t,s)),i}}r.hooks=t}if(e.walkTokens){const t=this.defaults.walkTokens;r.walkTokens=function(r){let n=[];return n.push(e.walkTokens.call(this,r)),t&&(n=n.concat(t.call(this,r))),n}}this.defaults={...this.defaults,...r}})),this}setOptions(e){return this.defaults={...this.defaults,...e},this}#e(e,t){return(r,n,s)=>{"function"==typeof n&&(s=n,n=null);const i={...n};n={...this.defaults,...i};const o=this.#t(n.silent,n.async,s);if(null==r)return o(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof r)return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(function(e,t){e&&!e.silent&&(t&&console.warn("marked(): callback is deprecated since version 5.0.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/using_pro#async"),(e.sanitize||e.sanitizer)&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options"),(e.highlight||"language-"!==e.langPrefix)&&console.warn("marked(): highlight and langPrefix parameters are deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-highlight."),e.mangle&&console.warn("marked(): mangle parameter is enabled by default, but is deprecated since version 5.0.0, and will be removed in the future. To clear this warning, install https://www.npmjs.com/package/marked-mangle, or disable by setting `{mangle: false}`."),e.baseUrl&&console.warn("marked(): baseUrl parameter is deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-base-url."),e.smartypants&&console.warn("marked(): smartypants parameter is deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-smartypants."),e.xhtml&&console.warn("marked(): xhtml parameter is deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-xhtml."),(e.headerIds||e.headerPrefix)&&console.warn("marked(): headerIds and headerPrefix parameters enabled by default, but are deprecated since version 5.0.0, and will be removed in the future. To clear this warning, install https://www.npmjs.com/package/marked-gfm-heading-id, or disable by setting `{headerIds: false}`."))}(n,s),n.hooks&&(n.hooks.options=n),s){const i=n.highlight;let a;try{n.hooks&&(r=n.hooks.preprocess(r)),a=e(r,n)}catch(e){return o(e)}const l=e=>{let r;if(!e)try{n.walkTokens&&this.walkTokens(a,n.walkTokens),r=t(a,n),n.hooks&&(r=n.hooks.postprocess(r))}catch(t){e=t}return n.highlight=i,e?o(e):s(null,r)};if(!i||i.length<3)return l();if(delete n.highlight,!a.length)return l();let c=0;return this.walkTokens(a,(e=>{"code"===e.type&&(c++,setTimeout((()=>{i(e.text,e.lang,((t,r)=>{if(t)return l(t);null!=r&&r!==e.text&&(e.text=r,e.escaped=!0),c--,0===c&&l()}))}),0))})),void(0===c&&l())}if(n.async)return Promise.resolve(n.hooks?n.hooks.preprocess(r):r).then((t=>e(t,n))).then((e=>n.walkTokens?Promise.all(this.walkTokens(e,n.walkTokens)).then((()=>e)):e)).then((e=>t(e,n))).then((e=>n.hooks?n.hooks.postprocess(e):e)).catch(o);try{n.hooks&&(r=n.hooks.preprocess(r));const s=e(r,n);n.walkTokens&&this.walkTokens(s,n.walkTokens);let i=t(s,n);return n.hooks&&(i=n.hooks.postprocess(i)),i}catch(e){return o(e)}}}#t(e,t,r){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/this.",e){const e="<p>An error occurred:</p><pre>"+xe(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):r?void r(null,e):e}if(t)return Promise.reject(n);if(!r)throw n;r(n)}}}(de);function Je(e,t,r){return Ge.parse(e,t,r)}Je.options=Je.setOptions=function(e){return Ge.setOptions(e),Je.defaults=Ge.defaults,he(Je.defaults),Je},Je.getDefaults=ue,Je.defaults=de,Je.use=function(...e){return Ge.use(...e),Je.defaults=Ge.defaults,he(Je.defaults),Je},Je.walkTokens=function(e,t){return Ge.walkTokens(e,t)},Je.parseInline=Ge.parseInline,Je.Parser=Ve,Je.parser=Ve.parse,Je.Renderer=Ue,Je.TextRenderer=ze,Je.Lexer=Ne,Je.lexer=Ne.lex,Je.Tokenizer=De,Je.Slugger=He,Je.Hooks=We,Je.parse=Je;Je.options,Je.setOptions,Je.use,Je.walkTokens,Je.parseInline;var Ke=r(660),Ye=r.n(Ke);r(251),r(358),r(46),r(503),r(277),r(874),r(366),r(57),r(16);const Ze=c`
.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: normal
}
.sub-title{ font-size: 20px;}
.req-res-title {
font-family: var(--font-regular);
font-size: calc(var(--font-size-small) + 4px);
font-weight:bold;
margin-bottom:8px;
text-align:left;
}
.tiny-title {
font-size:calc(var(--font-size-small) + 1px);
font-weight:bold;
}
.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:bold; }
.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, 400px);
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.options,
.method-fg.head,
.method-fg.patch {
color: var(--yellow);
}
h1{ font-family:var(--font-regular); font-size:28px; padding-top: 10px; letter-spacing:normal; font-weight:normal; }
h2{ font-family:var(--font-regular); font-size:24px; padding-top: 10px; letter-spacing:normal; font-weight:normal; }
h3{ font-family:var(--font-regular); font-size:18px; padding-top: 10px; letter-spacing:normal; font-weight:normal; }
h4{ font-family:var(--font-regular); font-size:16px; padding-top: 10px; letter-spacing:normal; font-weight:normal; }
h5{ font-family:var(--font-regular); font-size:14px; padding-top: 10px; letter-spacing:normal; font-weight:normal; }
h6{ font-family:var(--font-regular); font-size:14px; padding-top: 10px; letter-spacing:normal; font-weight:normal; }
h1,h2,h3,h4,h5,h5{
margin-block-end: 0.2em;
}
p { margin-block-start: 0.5em; }
a { color: var(--blue); cursor:pointer; }
a.inactive-link {
color:var(--fg);
text-decoration: none;
cursor:text;
}
code,
pre {
margin: 0px;
font-family: var(--font-mono);
font-size: calc(var(--font-size-mono) - 1px);
}
.m-markdown,
.m-markdown-small {
display:block;
}
.m-markdown p,
.m-markdown span {
font-size: var(--font-size-regular);
line-height:calc(var(--font-size-regular) + 8px);
}
.m-markdown li {
font-size: var(--font-size-regular);
line-height:calc(var(--font-size-regular) + 10px);
}
.m-markdown-small p,
.m-markdown-small span,
.m-markdown-small li {
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-small code,
.m-markdown 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-small pre,
.m-markdown pre {
white-space: pre-wrap;
overflow-x: auto;
line-height: normal;
border-radius: 2px;
border: 1px solid var(--code-border-color);
}
.m-markdown pre {
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-small pre code,
.m-markdown pre code {
border:none;
padding:0;
}
.m-markdown pre code {
color: var(--code-fg);
background-color: var(--code-bg);
background-color: transparent;
}
.m-markdown-small pre code {
color: var(--fg2);
background-color: var(--bg3);
}
.m-markdown ul,
.m-markdown ol {
padding-inline-start: 30px;
}
.m-markdown-small ul,
.m-markdown-small ol {
padding-inline-start: 20px;
}
.m-markdown-small a,
.m-markdown a {
color:var(--blue);
}
.m-markdown-small img,
.m-markdown img {
max-width: 100%;
}
/* Markdown table */
.m-markdown-small table,
.m-markdown 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-small td,
.m-markdown-small th,
.m-markdown td,
.m-markdown th {
vertical-align: top;
border-top: 1px solid var(--border-color);
line-height: calc(var(--font-size-small) + 4px);
}
.m-markdown-small tr:first-child th,
.m-markdown tr:first-child th {
border-top: 0 none;
}
.m-markdown th,
.m-markdown td {
padding: 10px 12px;
}
.m-markdown-small th,
.m-markdown-small td {
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;
}
.m-markdown hr{
border: 1px solid var(--border-color);
}
`,Xe=c`
/* Button */
.m-btn {
border-radius: var(--border-radius);
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 0.2s;
user-select: none;
cursor: pointer;
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,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: 0.4;
}
.toolbar-btn{
cursor: pointer;
padding: 4px;
margin:0 2px;
font-size: var(--font-size-small);
min-width: 50px;
color: var(--primary-color-invert);
border-radius: 2px;
border: none;
background-color: var(--primary-color);
}
input, textarea, select, button, pre {
color:var(--fg);
outline: none;
background-color: var(--input-bg);
border: 1px solid var(--border-color);
border-radius: var(--border-radius);
}
button {
font-family: var(--font-regular);
}
/* Form Inputs */
pre,
select,
textarea,
input[type="file"],
input[type="text"],
input[type="password"] {
font-family: var(--font-mono);
font-weight: 400;
font-size: var(--font-size-small);
transition: border .2s;
padding: 6px 5px;
}
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);
}
textarea::placeholder,
input[type="text"]::placeholder,
input[type="password"]::placeholder {
color: var(--placeholder-color);
opacity:1;
}
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: none;
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;
}
/* Toggle Body */
input[type="checkbox"] {
appearance: none;
display: inline-block;
background-color: var(--light-bg);
border: 1px solid var(--light-bg);
border-radius: 9px;
cursor: pointer;
height: 18px;
position: relative;
transition: border .25s .15s, box-shadow .25s .3s, padding .25s;
min-width: 36px;
width: 36px;
vertical-align: top;
}
/* Toggle Thumb */
input[type="checkbox"]:after {
position: absolute;
background-color: var(--bg);
border: 1px solid var(--light-bg);
border-radius: 8px;
content: '';
top: 0px;
left: 0px;
right: 16px;
display: block;
height: 16px;
transition: border .25s .15s, left .25s .1s, right .15s .175s;
}
/* Toggle Body - Checked */
input[type="checkbox"]:checked {
background-color: var(--green);
border-color: var(--green);
}
/* Toggle Thumb - Checked*/
input[type="checkbox"]:checked:after {
border: 1px solid var(--green);
left: 16px;
right: 1px;
transition: border .25s, left .15s .25s, right .25s .175s;
}`,Qe=c`
.row, .col{
display:flex;
}
.row {
align-items:center;
flex-direction: row;
}
.col {
align-items:stretch;
flex-direction: column;
}
`,et=c`
.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%;
direction: ltr;
}
.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.padded-12 td,
.m-table.padded-12 th {
padding: 12px;
}
.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:bold;
vertical-align: middle;
margin: 12px 0 4px 0;
}
`,tt=c`
.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:hover,
.m-endpoint > .endpoint-head.put.expanded{
border-color:var(--orange);
background-color:var(--light-orange);
}
.m-endpoint > .endpoint-head.post:hover,
.m-endpoint > .endpoint-head.post.expanded {
border-color:var(--green);
background-color:var(--light-green);
}
.m-endpoint > .endpoint-head.get:hover,
.m-endpoint > .endpoint-head.get.expanded {
border-color:var(--blue);
background-color:var(--light-blue);
}
.m-endpoint > .endpoint-head.delete:hover,
.m-endpoint > .endpoint-head.delete.expanded {
border-color:var(--red);
background-color:var(--light-red);
}
.m-endpoint > .endpoint-head.head:hover,
.m-endpoint > .endpoint-head.head.expanded,
.m-endpoint > .endpoint-head.patch:hover,
.m-endpoint > .endpoint-head.patch.expanded,
.m-endpoint > .endpoint-head.options:hover,
.m-endpoint > .endpoint-head.options.expanded {
border-color:var(--yellow);
background-color:var(--light-yellow);
}
.m-endpoint > .endpoint-head.deprecated:hover,
.m-endpoint > .endpoint-head.deprecated.expanded {
border-color:var(--border-color);
filter:opacity(0.6);
}
.m-endpoint .endpoint-body {
flex-wrap:wrap;
padding:16px 0px 0 0px;
border-width:0px 1px 1px 5px;
border-style:solid;
box-shadow: 0px 4px 3px -3px rgba(0, 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.patch,
.m-endpoint .endpoint-body.options {
border-color:var(--yellow);
}
.m-endpoint .endpoint-body.deprecated{
border-color:var(--border-color);
filter:opacity(0.6);
}
.endpoint-head .deprecated{
color: var(--light-fg);
filter:opacity(0.6);
}
.summary{
padding:8px 8px;
}
.summary .title{
font-size:calc(var(--font-size-regular) + 2px);
margin-bottom: 6px;
word-break: break-all;
}
.endpoint-head .method{
padding:2px 5px;
vertical-align: middle;
font-size:var(--font-size-small);
height: calc(var(--font-size-small) + 16px);
line-height: calc(var(--font-size-small) + 8px);
width: 60px;
border-radius: 2px;
display:inline-block;
text-align: center;
font-weight: bold;
text-transform:uppercase;
margin-right:5px;
}
.endpoint-head .method.delete{ border: 2px solid var(--red);}
.endpoint-head .method.put{ border: 2px solid var(--orange); }
.endpoint-head .method.post{ border: 2px solid var(--green); }
.endpoint-head .method.get{ border: 2px solid var(--blue); }
.endpoint-head .method.get.deprecated{ border: 2px solid var(--border-color); }
.endpoint-head .method.head,
.endpoint-head .method.patch,
.endpoint-head .method.options {
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);
}
.view-mode-request,
api-response.view-mode {
flex:1;
min-height:100px;
padding:16px 8px;
overflow:hidden;
}
.view-mode-request {
border-width:0 0 1px 0;
border-style:dashed;
}
.head .view-mode-request,
.patch .view-mode-request,
.options .view-mode-request {
border-color:var(--yellow);
}
.put .view-mode-request {
border-color:var(--orange);
}
.post .view-mode-request {
border-color:var(--green);
}
.get .view-mode-request {
border-color:var(--blue);
}
.delete .view-mode-request {
border-color:var(--red);
}
@media only screen and (min-width: 1024px) {
.only-large-screen { display:block; }
.endpoint-head .path{
font-size: var(--font-size-regular);
}
.endpoint-head .descr{
display: flex;
}
.endpoint-head .m-markdown-small,
.descr .m-markdown-small{
display:block;
}
.req-resp-container{
flex-direction: var(--layout, row);
flex-wrap: nowrap;
}
api-response.view-mode {
padding:16px;
}
.view-mode-request.row-layout {
border-width:0 1px 0 0;
padding:16px;
}
.summary{
padding:8px 16px;
}
}
`,rt=c`
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;
}
/* Code blocks */
pre[class*="language-"] {
padding: 1em;
margin: .5em 0;
overflow: auto;
}
/* Inline code */
:not(pre) > code[class*="language-"] {
white-space: normal;
}
.token.comment,
.token.block-comment,
.token.prolog,
.token.doctype,
.token.cdata {
color: var(--light-fg)
}
.token.punctuation {
color: var(--fg);
}
.token.tag,
.token.attr-name,
.token.namespace,
.token.deleted {
color:var(--pink);
}
.token.function-name {
color: var(--blue);
}
.token.boolean,
.token.number,
.token.function {
color: var(--red);
}
.token.property,
.token.class-name,
.token.constant,
.token.symbol {
color: var(--code-property-color);
}
.token.selector,
.token.important,
.token.atrule,
.token.keyword,
.token.builtin {
color: var(--code-keyword-color);
}
.token.string,
.token.char,
.token.attr-value,
.token.regex,
.token.variable {
color: var(--green);
}
.token.operator,
.token.entity,
.token.url {
color: var(--code-operator-color);
}
.token.important,
.token.bold {
font-weight: bold;
}
.token.italic {
font-style: italic;
}
.token.entity {
cursor: help;
}
.token.inserted {
color: green;
}
`,nt=c`
.tab-panel {
border: none;
}
.tab-buttons {
height:30px;
padding: 4px 4px 0 4px;
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;
color: var(--light-fg);
background-color: transparent;
white-space: nowrap;
cursor:pointer;
outline:none;
font-family:var(--font-regular);
font-size:var(--font-size-small);
margin-right:16px;
padding:1px;
}
.tab-btn.active {
border-bottom: 3px solid var(--primary-color);
font-weight:bold;
color:var(--primary-color);
}
.tab-btn:hover {
color:var(--primary-color);
}
.tab-content {
margin:-1px 0 0 0;
position:relative;
min-height: 50px;
}
`,st=c`
.nav-bar-info:focus-visible,
.nav-bar-tag:focus-visible,
.nav-bar-path:focus-visible {
outline: 1px solid;
box-shadow: none;
outline-offset: -4px;
}
.nav-bar-expand-all:focus-visible,
.nav-bar-collapse-all:focus-visible,
.nav-bar-tag-icon:focus-visible {
outline: 1px solid;
box-shadow: none;
outline-offset: 2px;
}
.nav-bar {
width:0;
height:100%;
overflow: hidden;
color:var(--nav-text-color);
background-color: var(--nav-bg-color);
background-blend-mode: multiply;
line-height: calc(var(--font-size-small) + 4px);
display:none;
position:relative;
flex-direction:column;
flex-wrap:nowrap;
word-break:break-word;
}
::slotted([slot=nav-logo]){
padding:16px 16px 0 16px;
}
.nav-scroll {
overflow-x: hidden;
overflow-y: auto;
overflow-y: overlay;
scrollbar-width: thin;
scrollbar-color: var(--nav-hover-bg-color) transparent;
}
.nav-bar-tag {
display: flex;
align-items: center;
justify-content: space-between;
flex-direction: row;
}
.nav-bar.read .nav-bar-tag-icon {
display:none;
}
.nav-bar-paths-under-tag {
overflow:hidden;
transition: max-height .2s ease-out, visibility .3s;
}
.collapsed .nav-bar-paths-under-tag {
visibility: hidden;
}
.nav-bar-expand-all {
transform: rotate(90deg);
cursor:pointer;
margin-right:10px;
}
.nav-bar-collapse-all {
transform: rotate(270deg);
cursor:pointer;
}
.nav-bar-expand-all:hover, .nav-bar-collapse-all:hover {
color: var(--primary-color);
}
.nav-bar-tag-icon {
color: var(--nav-text-color);
font-size: 20px;
}
.nav-bar-tag-icon:hover {
color:var(--nav-hover-text-color);
}
.nav-bar.focused .nav-bar-tag-and-paths.collapsed .nav-bar-tag-icon::after {
content: '⌵';
width:16px;
height:16px;
text-align: center;
display: inline-block;
transform: rotate(-90deg);
transition: transform 0.2s ease-out 0s;
}
.nav-bar.focused .nav-bar-tag-and-paths.expanded .nav-bar-tag-icon::after {
content: '⌵';
width:16px;
height:16px;
text-align: center;
display: inline-block;
transition: transform 0.2s ease-out 0s;
}
.nav-scroll::-webkit-scrollbar {
width: var(--scroll-bar-width, 8px);
}
.nav-scroll::-webkit-scrollbar-track {
background:transparent;
}
.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:bold;
padding: 15px 15px 15px 10px;
text-transform: capitalize;
}
.nav-bar-components,
.nav-bar-h1,
.nav-bar-h2,
.nav-bar-info,
.nav-bar-tag,
.nav-bar-path {
display:flex;
cursor: pointer;
width: 100%;
border: none;
border-radius:4px;
color: var(--nav-text-color);
background: transparent;
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:bold;
}
.nav-bar-section {
display: flex;
flex-direction: row;
justify-content: space-between;
font-size: var(--font-size-small);
color: var(--nav-text-color);
padding: var(--nav-item-padding);
font-weight:bold;
}
.nav-bar-section.operations {
cursor:pointer;
}
.nav-bar-section.operations:hover {
color:var(--nav-hover-text-color);
background-color:var(--nav-hover-bg-color);
}
.nav-bar-section:first-child {
display: none;
}
.nav-bar-h2 {margin-left:12px;}
.nav-bar-h1.left-bar.active,
.nav-bar-h2.left-bar.active,
.nav-bar-info.left-bar.active,
.nav-bar-tag.left-bar.active,
.nav-bar-path.left-bar.active,
.nav-bar-section.left-bar.operations.active {
border-left:4px solid var(--nav-accent-color);
color:var(--nav-hover-text-color);
}
.nav-bar-h1.colored-block.active,
.nav-bar-h2.colored-block.active,
.nav-bar-info.colored-block.active,
.nav-bar-tag.colored-block.active,
.nav-bar-path.colored-block.active,
.nav-bar-section.colored-block.operations.active {
background-color: var(--nav-accent-color);
color: var(--nav-accent-text-color);
border-radius: 0;
}
.nav-bar-h1:hover,
.nav-bar-h2:hover,
.nav-bar-info:hover,
.nav-bar-tag:hover,
.nav-bar-path:hover {
color:var(--nav-hover-text-color);
background-color:var(--nav-hover-bg-color);
}
`,it=c`
#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: 0.5;
width: 15px;
text-align: center;
}
#api-info span:first-child:before {
content: "";
width: 0px;
}
`,ot=c`
`;const at=/[\s#:?&={}]/g,lt="_rapidoc_api_key";function ct(e){return new Promise((t=>setTimeout(t,e)))}function pt(e,t){const r=t.target,n=document.createElement("textarea");n.value=e,n.style.position="fixed",document.body.appendChild(n),n.focus(),n.select();try{document.execCommand("copy"),r.innerText="Copied",setTimeout((()=>{r.innerText="Copy"}),5e3)}catch(e){console.error("Unable to copy",e)}document.body.removeChild(n)}function ut(e,t,r="includes"){if("includes"===r){return`${t.method} ${t.path} ${t.summary||t.description||""} ${t.operationId||""}`.toLowerCase().includes(e.toLowerCase())}return new RegExp(e,"i").test(`${t.method} ${t.path}`)}function dt(e,t=new Set){return e?(Object.keys(e).forEach((r=>{var n;if(t.add(r),e[r].properties)dt(e[r].properties,t);else if(null!==(n=e[r].items)&&void 0!==n&&n.properties){var s;dt(null===(s=e[r].items)||void 0===s?void 0:s.properties,t)}})),t):t}function ht(e,t){if(e){const r=document.createElement("a");document.body.appendChild(r),r.style="display: none",r.href=e,r.download=t,r.click(),r.remove()}}function ft(e){if(e){const t=document.createElement("a");document.body.appendChild(t),t.style="display: none",t.href=e,t.target="_blank",t.click(),t.remove()}}function mt(e){return e&&e.t&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yt=function(e){return e&&e.Math==Math&&e},gt=yt("object"==typeof globalThis&&globalThis)||yt("object"==typeof window&&window)||yt("object"==typeof self&&self)||yt("object"==typeof gt&&gt)||function(){return this}()||globalThis||Function("return this")(),vt=function(e){try{return!!e()}catch(e){return!0}},bt=!vt((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),xt=bt,wt=Function.prototype,$t=wt.apply,St=wt.call,Et="object"==typeof Reflect&&Reflect.apply||(xt?St.bind($t):function(){return St.apply($t,arguments)}),kt=bt,Ot=Function.prototype,jt=Ot.call,At=kt&&Ot.bind.bind(jt,jt),Pt=kt?At:function(e){return function(){return jt.apply(e,arguments)}},Tt=Pt,Ct=Tt({}.toString),It=Tt("".slice),Rt=function(e){return It(Ct(e),8,-1)},_t=Rt,Ft=Pt,Dt=function(e){if("Function"===_t(e))return Ft(e)},Mt="object"==typeof document&&document.all,qt={all:Mt,IS_HTMLDDA:void 0===Mt&&void 0!==Mt},Lt=qt.all,Bt=qt.IS_HTMLDDA?function(e){return"function"==typeof e||e===Lt}:function(e){return"function"==typeof e},Nt={},Ut=!vt((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),zt=bt,Ht=Function.prototype.call,Vt=zt?Ht.bind(Ht):function(){return Ht.apply(Ht,arguments)},Wt={},Gt={}.propertyIsEnumerable,Jt=Object.getOwnPropertyDescriptor,Kt=Jt&&!Gt.call({1:2},1);Wt.f=Kt?function(e){var t=Jt(this,e);return!!t&&t.enumerable}:Gt;var Yt,Zt,Xt=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Qt=vt,er=Rt,tr=Object,rr=Pt("".split),nr=Qt((function(){return!tr("z").propertyIsEnumerable(0)}))?function(e){return"String"==er(e)?rr(e,""):tr(e)}:tr,sr=function(e){return null==e},ir=sr,or=TypeError,ar=function(e){if(ir(e))throw or("Can't call method on "+e);return e},lr=nr,cr=ar,pr=function(e){return lr(cr(e))},ur=Bt,dr=qt.all,hr=qt.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:ur(e)||e===dr}:function(e){return"object"==typeof e?null!==e:ur(e)},fr={},mr=fr,yr=gt,gr=Bt,vr=function(e){return gr(e)?e:void 0},br=function(e,t){return arguments.length<2?vr(mr[e])||vr(yr[e]):mr[e]&&mr[e][t]||yr[e]&&yr[e][t]},xr=Pt({}.isPrototypeOf),wr=gt,$r="undefined"!=typeof navigator&&String(navigator.userAgent)||"",Sr=wr.process,Er=wr.Deno,kr=Sr&&Sr.versions||Er&&Er.version,Or=kr&&kr.v8;Or&&(Zt=(Yt=Or.split("."))[0]>0&&Yt[0]<4?1:+(Yt[0]+Yt[1])),!Zt&&$r&&(!(Yt=$r.match(/Edge\/(\d+)/))||Yt[1]>=74)&&(Yt=$r.match(/Chrome\/(\d+)/))&&(Zt=+Yt[1]);var jr=Zt,Ar=jr,Pr=vt,Tr=gt.String,Cr=!!Object.getOwnPropertySymbols&&!Pr((function(){var e=Symbol();return!Tr(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Ar&&Ar<41})),Ir=Cr&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Rr=br,_r=Bt,Fr=xr,Dr=Object,Mr=Ir?function(e){return"symbol"==typeof e}:function(e){var t=Rr("Symbol");return _r(t)&&Fr(t.prototype,Dr(e))},qr=String,Lr=function(e){try{return qr(e)}catch(e){return"Object"}},Br=Bt,Nr=Lr,Ur=TypeError,zr=function(e){if(Br(e))return e;throw Ur(Nr(e)+" is not a function")},Hr=zr,Vr=sr,Wr=Vt,Gr=Bt,Jr=hr,Kr=TypeError,Yr={exports:{}},Zr=gt,Xr=Object.defineProperty,Qr=gt.u||function(e,t){try{Xr(Zr,e,{value:t,configurable:!0,writable:!0})}catch(r){Zr[e]=t}return t}("__core-js_shared__",{}),en=Qr;(Yr.exports=function(e,t){return en[e]||(en[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.31.0",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.0/LICENSE",source:"https://github.com/zloirock/core-js"});var tn=Yr.exports,rn=ar,nn=Object,sn=function(e){return nn(rn(e))},on=sn,an=Pt({}.hasOwnProperty),ln=Object.hasOwn||function(e,t){return an(on(e),t)},cn=Pt,pn=0,un=Math.random(),dn=cn(1..toString),hn=function(e){return"Symbol("+(void 0===e?"":e)+")_"+dn(++pn+un,36)},fn=tn,mn=ln,yn=hn,gn=Cr,vn=Ir,bn=gt.Symbol,xn=fn("wks"),wn=vn?bn.for||bn:bn&&bn.withoutSetter||yn,$n=function(e){return mn(xn,e)||(xn[e]=gn&&mn(bn,e)?bn[e]:wn("Symbol."+e)),xn[e]},Sn=Vt,En=hr,kn=Mr,On=TypeError,jn=$n("toPrimitive"),An=function(e,t){if(!En(e)||kn(e))return e;var r,n=function(e,t){var r=e[t];return Vr(r)?void 0:Hr(r)}(e,jn);if(n){if(void 0===t&&(t="default"),r=Sn(n,e,t),!En(r)||kn(r))return r;throw On("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var r,n;if("string"===t&&Gr(r=e.toString)&&!Jr(n=Wr(r,e)))return n;if(Gr(r=e.valueOf)&&!Jr(n=Wr(r,e)))return n;if("string"!==t&&Gr(r=e.toString)&&!Jr(n=Wr(r,e)))return n;throw Kr("Can't convert object to primitive value")}(e,t)},Pn=Mr,Tn=function(e){var t=An(e,"string");return Pn(t)?t:t+""},Cn=hr,In=gt.document,Rn=Cn(In)&&Cn(In.createElement),_n=function(e){return Rn?In.createElement(e):{}},Fn=_n,Dn=!Ut&&!vt((function(){return 7!=Object.defineProperty(Fn("div"),"a",{get:function(){return 7}}).a})),Mn=Ut,qn=Vt,Ln=Wt,Bn=Xt,Nn=pr,Un=Tn,zn=ln,Hn=Dn,Vn=Object.getOwnPropertyDescriptor;Nt.f=Mn?Vn:function(e,t){if(e=Nn(e),t=Un(t),Hn)try{return Vn(e,t)}catch(e){}if(zn(e,t))return Bn(!qn(Ln.f,e,t),e[t])};var Wn=vt,Gn=Bt,Jn=/#|\.prototype\./,Kn=function(e,t){var r=Zn[Yn(e)];return r==Qn||r!=Xn&&(Gn(t)?Wn(t):!!t)},Yn=Kn.normalize=function(e){return String(e).replace(Jn,".").toLowerCase()},Zn=Kn.data={},Xn=Kn.NATIVE="N",Qn=Kn.POLYFILL="P",es=Kn,ts=zr,rs=bt,ns=Dt(Dt.bind),ss=function(e,t){return ts(e),void 0===t?e:rs?ns(e,t):function(){return e.apply(t,arguments)}},is={},os=Ut&&vt((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),as=hr,ls=String,cs=TypeError,ps=function(e){if(as(e))return e;throw cs(ls(e)+" is not an object")},us=Ut,ds=Dn,hs=os,fs=ps,ms=Tn,ys=TypeError,gs=Object.defineProperty,vs=Object.getOwnPropertyDescriptor;is.f=us?hs?function(e,t,r){if(fs(e),t=ms(t),fs(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable){var n=vs(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return gs(e,t,r)}:gs:function(e,t,r){if(fs(e),t=ms(t),fs(r),ds)try{return gs(e,t,r)}catch(e){}if("get"in r||"set"in r)throw ys("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var bs=is,xs=Xt,ws=Ut?function(e,t,r){return bs.f(e,t,xs(1,r))}:function(e,t,r){return e[t]=r,e},$s=gt,Ss=Et,Es=Dt,ks=Bt,Os=Nt.f,js=es,As=fr,Ps=ss,Ts=ws,Cs=ln,Is=function(e){var t=function(r,n,s){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,s)}return Ss(e,this,arguments)};return t.prototype=e.prototype,t},Rs=function(e,t){var r,n,s,i,o,a,l,c,p,u=e.target,d=e.global,h=e.stat,f=e.proto,m=d?$s:h?$s[u]:($s[u]||{}).prototype,y=d?As:As[u]||Ts(As,u,{})[u],g=y.prototype;for(i in t)n=!(r=js(d?i:u+(h?".":"#")+i,e.forced))&&m&&Cs(m,i),a=y[i],n&&(l=e.dontCallGetSet?(p=Os(m,i))&&p.value:m[i]),o=n&&l?l:t[i],n&&typeof a==typeof o||(c=e.bind&&n?Ps(o,$s):e.wrap&&n?Is(o):f&&ks(o)?Es(o):o,(e.sham||o&&o.sham||a&&a.sham)&&Ts(c,"sham",!0),Ts(y,i,c),f&&(Cs(As,s=u+"Prototype")||Ts(As,s,{}),Ts(As[s],i,o),e.real&&g&&(r||!g[i])&&Ts(g,i,o)))},_s=Math.ceil,Fs=Math.floor,Ds=Math.trunc||function(e){var t=+e;return(t>0?Fs:_s)(t)},Ms=function(e){var t=+e;return t!=t||0===t?0:Ds(t)},qs=Ms,Ls=Math.max,Bs=Math.min,Ns=function(e,t){var r=qs(e);return r<0?Ls(r+t,0):Bs(r,t)},Us=Ms,zs=Math.min,Hs=function(e){return function(e){return e>0?zs(Us(e),9007199254740991):0}(e.length)},Vs=pr,Ws=Ns,Gs=Hs,Js=function(e){return function(t,r,n){var s,i=Vs(t),o=Gs(i),a=Ws(n,o);if(e&&r!=r){for(;o>a;)if((s=i[a++])!=s)return!0}else for(;o>a;a++)if((e||a in i)&&i[a]===r)return e||a||0;return!e&&-1}},Ks={includes:Js(!0),indexOf:Js(!1)},Ys={},Zs=ln,Xs=pr,Qs=Ks.indexOf,ei=Ys,ti=Pt([].push),ri=function(e,t){var r,n=Xs(e),s=0,i=[];for(r in n)!Zs(ei,r)&&Zs(n,r)&&ti(i,r);for(;t.length>s;)Zs(n,r=t[s++])&&(~Qs(i,r)||ti(i,r));return i},ni=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],si=ri,ii=ni,oi=Object.keys||function(e){return si(e,ii)},ai=sn,li=oi;Rs({target:"Object",stat:!0,forced:vt((function(){li(1)}))},{keys:function(e){return li(ai(e))}});const ci=mt(fr.Object.keys);var pi={};pi[$n("toStringTag")]="z";var ui="[object z]"===String(pi),di=ui,hi=Bt,fi=Rt,mi=$n("toStringTag"),yi=Object,gi="Arguments"==fi(function(){return arguments}()),vi=di?fi:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=yi(e),mi))?r:gi?fi(t):"Object"==(n=fi(t))&&hi(t.callee)?"Arguments":n},bi=vi,xi=String,wi=function(e){if("Symbol"===bi(e))throw TypeError("Cannot convert a Symbol value to a string");return xi(e)},$i={},Si=Ut,Ei=os,ki=is,Oi=ps,ji=pr,Ai=oi;$i.f=Si&&!Ei?Object.defineProperties:function(e,t){Oi(e);for(var r,n=ji(t),s=Ai(t),i=s.length,o=0;i>o;)ki.f(e,r=s[o++],n[r]);return e};var Pi,Ti=br("document","documentElement"),Ci=hn,Ii=tn("keys"),Ri=function(e){return Ii[e]||(Ii[e]=Ci(e))},_i=ps,Fi=$i,Di=ni,Mi=Ys,qi=Ti,Li=_n,Bi=Ri("IE_PROTO"),Ni=function(){},Ui=function(e){return"<script>"+e+"<\/script>"},zi=function(e){e.write(Ui("")),e.close();var t=e.parentWindow.Object;return e=null,t},Hi=function(){try{Pi=new ActiveXObject("htmlfile")}catch(e){}var e,t;Hi="undefined"!=typeof document?document.domain&&Pi?zi(Pi):((t=Li("iframe")).style.display="none",qi.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Ui("document.F=Object")),e.close(),e.F):zi(Pi);for(var r=Di.length;r--;)delete Hi.prototype[Di[r]];return Hi()};Mi[Bi]=!0;var Vi=Object.create||function(e,t){var r;return null!==e?(Ni.prototype=_i(e),r=new Ni,Ni.prototype=null,r[Bi]=e):r=Hi(),void 0===t?r:Fi.f(r,t)},Wi={},Gi=ri,Ji=ni.concat("length","prototype");Wi.f=Object.getOwnPropertyNames||function(e){return Gi(e,Ji)};var Ki={},Yi=Tn,Zi=is,Xi=Xt,Qi=function(e,t,r){var n=Yi(t);n in e?Zi.f(e,n,Xi(0,r)):e[n]=r},eo=Ns,to=Hs,ro=Qi,no=Array,so=Math.max,io=Rt,oo=pr,ao=Wi.f,lo="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Ki.f=function(e){return lo&&"Window"==io(e)?function(e){try{return ao(e)}catch(e){return function(e,t,r){for(var n=to(e),s=eo(t,n),i=eo(void 0===r?n:r,n),o=no(so(i-s,0)),a=0;s<i;s++,a++)ro(o,a,e[s]);return o.length=a,o}(lo)}}(e):ao(oo(e))};var co={};co.f=Object.getOwnPropertySymbols;var po=ws,uo=function(e,t,r,n){return n&&n.enumerable?e[t]=r:po(e,t,r),e},ho=is,fo={},mo=$n;fo.f=mo;var yo,go,vo,bo=fr,xo=ln,wo=fo,$o=is.f,So=function(e){var t=bo.Symbol||(bo.Symbol={});xo(t,e)||$o(t,e,{value:wo.f(e)})},Eo=Vt,ko=br,Oo=$n,jo=uo,Ao=function(){var e=ko("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=Oo("toPrimitive");t&&!t[n]&&jo(t,n,(function(e){return Eo(r,this)}),{arity:1})},Po=vi,To=ui?{}.toString:function(){return"[object "+Po(this)+"]"},Co=ui,Io=is.f,Ro=ws,_o=ln,Fo=To,Do=$n("toStringTag"),Mo=function(e,t,r,n){if(e){var s=r?e:e.prototype;_o(s,Do)||Io(s,Do,{configurable:!0,value:t}),n&&!Co&&Ro(s,"toString",Fo)}},qo=Bt,Lo=gt.WeakMap,Bo=qo(Lo)&&/native code/.test(String(Lo)),No=gt,Uo=hr,zo=ws,Ho=ln,Vo=Qr,Wo=Ri,Go=Ys,Jo=No.TypeError,Ko=No.WeakMap;if(Bo||Vo.state){var Yo=Vo.state||(Vo.state=new Ko);Yo.get=Yo.get,Yo.has=Yo.has,Yo.set=Yo.set,yo=function(e,t){if(Yo.has(e))throw Jo("Object already initialized");return t.facade=e,Yo.set(e,t),t},go=function(e){return Yo.get(e)||{}},vo=function(e){return Yo.has(e)}}else{var Zo=Wo("state");Go[Zo]=!0,yo=function(e,t){if(Ho(e,Zo))throw Jo("Object already initialized");return t.facade=e,zo(e,Zo,t),t},go=function(e){return Ho(e,Zo)?e[Zo]:{}},vo=function(e){return Ho(e,Zo)}}var Xo={set:yo,get:go,has:vo,enforce:function(e){return vo(e)?go(e):yo(e,{})},getterFor:function(e){return function(t){var r;if(!Uo(t)||(r=go(t)).type!==e)throw Jo("Incompatible receiver, "+e+" required");return r}}},Qo=Rt,ea=Array.isArray||function(e){return"Array"==Qo(e)},ta=Bt,ra=Qr,na=Pt(Function.toString);ta(ra.inspectSource)||(ra.inspectSource=function(e){return na(e)});var sa=ra.inspectSource,ia=Pt,oa=vt,aa=Bt,la=vi,ca=sa,pa=function(){},ua=[],da=br("Reflect","construct"),ha=/^\s*(?:class|function)\b/,fa=ia(ha.exec),ma=!ha.exec(pa),ya=function(e){if(!aa(e))return!1;try{return da(pa,ua,e),!0}catch(e){return!1}},ga=function(e){if(!aa(e))return!1;switch(la(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ma||!!fa(ha,ca(e))}catch(e){return!0}};ga.sham=!0;var va=!da||oa((function(){var e;return ya(ya.call)||!ya(Object)||!ya((function(){e=!0}))||e}))?ga:ya,ba=ea,xa=va,wa=hr,$a=$n("species"),Sa=Array,Ea=function(e,t){return new(function(e){var t;return ba(e)&&(t=e.constructor,(xa(t)&&(t===Sa||ba(t.prototype))||wa(t)&&null===(t=t[$a]))&&(t=void 0)),void 0===t?Sa:t}(e))(0===t?0:t)},ka=ss,Oa=nr,ja=sn,Aa=Hs,Pa=Ea,Ta=Pt([].push),Ca=function(e){var t=1==e,r=2==e,n=3==e,s=4==e,i=6==e,o=7==e,a=5==e||i;return function(l,c,p,u){for(var d,h,f=ja(l),m=Oa(f),y=ka(c,p),g=Aa(m),v=0,b=u||Pa,x=t?b(l,g):r||o?b(l,0):void 0;g>v;v++)if((a||v in m)&&(h=y(d=m[v],v,f),e))if(t)x[v]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return v;case 2:Ta(x,d)}else switch(e){case 4:return!1;case 7:Ta(x,d)}return i?-1:n||s?s:x}},Ia={forEach:Ca(0),map:Ca(1),filter:Ca(2),some:Ca(3),every:Ca(4),find:Ca(5),findIndex:Ca(6),filterReject:Ca(7)},Ra=Rs,_a=gt,Fa=Vt,Da=Pt,Ma=Ut,qa=Cr,La=vt,Ba=ln,Na=xr,Ua=ps,za=pr,Ha=Tn,Va=wi,Wa=Xt,Ga=Vi,Ja=oi,Ka=Wi,Ya=Ki,Za=co,Xa=Nt,Qa=is,el=$i,tl=Wt,rl=uo,nl=tn,sl=Ys,il=hn,ol=$n,al=fo,ll=So,cl=Ao,pl=Mo,ul=Xo,dl=Ia.forEach,hl=Ri("hidden"),fl=ul.set,ml=ul.getterFor("Symbol"),yl=Object.prototype,gl=_a.Symbol,vl=gl&&gl.prototype,bl=_a.TypeError,xl=_a.QObject,wl=Xa.f,$l=Qa.f,Sl=Ya.f,El=tl.f,kl=Da([].push),Ol=nl("symbols"),jl=nl("op-symbols"),Al=nl("wks"),Pl=!xl||!xl.prototype||!xl.prototype.findChild,Tl=Ma&&La((function(){return 7!=Ga($l({},"a",{get:function(){return $l(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=wl(yl,t);n&&delete yl[t],$l(e,t,r),n&&e!==yl&&$l(yl,t,n)}:$l,Cl=function(e,t){var r=Ol[e]=Ga(vl);return fl(r,{type:"Symbol",tag:e,description:t}),Ma||(r.description=t),r},Il=function(e,t,r){e===yl&&Il(jl,t,r),Ua(e);var n=Ha(t);return Ua(r),Ba(Ol,n)?(r.enumerable?(Ba(e,hl)&&e[hl][n]&&(e[hl][n]=!1),r=Ga(r,{enumerable:Wa(0,!1)})):(Ba(e,hl)||$l(e,hl,Wa(1,{})),e[hl][n]=!0),Tl(e,n,r)):$l(e,n,r)},Rl=function(e,t){Ua(e);var r=za(t),n=Ja(r).concat(Ml(r));return dl(n,(function(t){Ma&&!Fa(_l,r,t)||Il(e,t,r[t])})),e},_l=function(e){var t=Ha(e),r=Fa(El,this,t);return!(this===yl&&Ba(Ol,t)&&!Ba(jl,t))&&(!(r||!Ba(this,t)||!Ba(Ol,t)||Ba(this,hl)&&this[hl][t])||r)},Fl=function(e,t){var r=za(e),n=Ha(t);if(r!==yl||!Ba(Ol,n)||Ba(jl,n)){var s=wl(r,n);return!s||!Ba(Ol,n)||Ba(r,hl)&&r[hl][n]||(s.enumerable=!0),s}},Dl=function(e){var t=Sl(za(e)),r=[];return dl(t,(function(e){Ba(Ol,e)||Ba(sl,e)||kl(r,e)})),r},Ml=function(e){var t=e===yl,r=Sl(t?jl:za(e)),n=[];return dl(r,(function(e){!Ba(Ol,e)||t&&!Ba(yl,e)||kl(n,Ol[e])})),n};qa||(rl(vl=(gl=function(){if(Na(vl,this))throw bl("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?Va(arguments[0]):void 0,t=il(e),r=function(e){this===yl&&Fa(r,jl,e),Ba(this,hl)&&Ba(this[hl],t)&&(this[hl][t]=!1),Tl(this,t,Wa(1,e))};return Ma&&Pl&&Tl(yl,t,{configurable:!0,set:r}),Cl(t,e)}).prototype,"toString",(function(){return ml(this).tag})),rl(gl,"withoutSetter",(function(e){return Cl(il(e),e)})),tl.f=_l,Qa.f=Il,el.f=Rl,Xa.f=Fl,Ka.f=Ya.f=Dl,Za.f=Ml,al.f=function(e){return Cl(ol(e),e)},Ma&&function(e,t,r){ho.f(e,t,r)}(vl,"description",{configurable:!0,get:function(){return ml(this).description}})),Ra({global:!0,constructor:!0,wrap:!0,forced:!qa,sham:!qa},{Symbol:gl}),dl(Ja(Al),(function(e){ll(e)})),Ra({target:"Symbol",stat:!0,forced:!qa},{useSetter:function(){Pl=!0},useSimple:function(){Pl=!1}}),Ra({target:"Object",stat:!0,forced:!qa,sham:!Ma},{create:function(e,t){return void 0===t?Ga(e):Rl(Ga(e),t)},defineProperty:Il,defineProperties:Rl,getOwnPropertyDescriptor:Fl}),Ra({target:"Object",stat:!0,forced:!qa},{getOwnPropertyNames:Dl}),cl(),pl(gl,"Symbol"),sl[hl]=!0;var ql=Cr&&!!Symbol.for&&!!Symbol.keyFor,Ll=Rs,Bl=br,Nl=ln,Ul=wi,zl=tn,Hl=ql,Vl=zl("string-to-symbol-registry"),Wl=zl("symbol-to-string-registry");Ll({target:"Symbol",stat:!0,forced:!Hl},{for:function(e){var t=Ul(e);if(Nl(Vl,t))return Vl[t];var r=Bl("Symbol")(t);return Vl[t]=r,Wl[r]=t,r}});var Gl=Rs,Jl=ln,Kl=Mr,Yl=Lr,Zl=ql,Xl=tn("symbol-to-string-registry");Gl({target:"Symbol",stat:!0,forced:!Zl},{keyFor:function(e){if(!Kl(e))throw TypeError(Yl(e)+" is not a symbol");if(Jl(Xl,e))return Xl[e]}});var Ql=Pt([].slice),ec=ea,tc=Bt,rc=Rt,nc=wi,sc=Pt([].push),ic=Rs,oc=br,ac=Et,lc=Vt,cc=Pt,pc=vt,uc=Bt,dc=Mr,hc=Ql,fc=Cr,mc=String,yc=oc("JSON","stringify"),gc=cc(/./.exec),vc=cc("".charAt),bc=cc("".charCodeAt),xc=cc("".replace),wc=cc(1..toString),$c=/[\uD800-\uDFFF]/g,Sc=/^[\uD800-\uDBFF]$/,Ec=/^[\uDC00-\uDFFF]$/,kc=!fc||pc((function(){var e=oc("Symbol")();return"[null]"!=yc([e])||"{}"!=yc({a:e})||"{}"!=yc(Object(e))})),Oc=pc((function(){return'"\\udf06\\ud834"'!==yc("\udf06\ud834")||'"\\udead"'!==yc("\udead")})),jc=function(e,t){var r=hc(arguments),n=function(e){if(tc(e))return e;if(ec(e)){for(var t=e.length,r=[],n=0;n<t;n++){var s=e[n];"string"==typeof s?sc(r,s):"number"!=typeof s&&"Number"!=rc(s)&&"String"!=rc(s)||sc(r,nc(s))}var i=r.length,o=!0;return function(e,t){if(o)return o=!1,t;if(ec(this))return t;for(var n=0;n<i;n++)if(r[n]===e)return t}}}(t);if(uc(n)||void 0!==e&&!dc(e))return r[1]=function(e,t){if(uc(n)&&(t=lc(n,this,mc(e),t)),!dc(t))return t},ac(yc,null,r)},Ac=function(e,t,r){var n=vc(r,t-1),s=vc(r,t+1);return gc(Sc,e)&&!gc(Ec,s)||gc(Ec,e)&&!gc(Sc,n)?"\\u"+wc(bc(e,0),16):e};yc&&ic({target:"JSON",stat:!0,arity:3,forced:kc||Oc},{stringify:function(e,t,r){var n=hc(arguments),s=ac(kc?jc:yc,null,n);return Oc&&"string"==typeof s?xc(s,$c,Ac):s}});var Pc=co,Tc=sn;Rs({target:"Object",stat:!0,forced:!Cr||vt((function(){Pc.f(1)}))},{getOwnPropertySymbols:function(e){var t=Pc.f;return t?t(Tc(e)):[]}});const Cc=mt(fr.Object.getOwnPropertySymbols);var Ic=vt,Rc=jr,_c=$n("species"),Fc=function(e){return Rc>=51||!Ic((function(){var t=[];return(t.constructor={})[_c]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Dc=Ia.filter;Rs({target:"Array",proto:!0,forced:!Fc("filter")},{filter:function(e){return Dc(this,e,arguments.length>1?arguments[1]:void 0)}});var Mc=fr,qc=function(e){return Mc[e+"Prototype"]},Lc=qc("Array").filter,Bc=xr,Nc=Lc,Uc=Array.prototype;const zc=mt((function(e){var t=e.filter;return e===Uc||Bc(Uc,e)&&t===Uc.filter?Nc:t}));var Hc={exports:{}},Vc=Rs,Wc=vt,Gc=pr,Jc=Nt.f,Kc=Ut;Vc({target:"Object",stat:!0,forced:!Kc||Wc((function(){Jc(1)})),sham:!Kc},{getOwnPropertyDescriptor:function(e,t){return Jc(Gc(e),t)}});var Yc=fr.Object,Zc=Hc.exports=function(e,t){return Yc.getOwnPropertyDescriptor(e,t)};Yc.getOwnPropertyDescriptor.sham&&(Zc.sham=!0);const Xc=mt(Hc.exports);var Qc=Ut,ep=ea,tp=TypeError,rp=Object.getOwnPropertyDescriptor,np=Qc&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),sp=TypeError,ip=function(e){if(e>9007199254740991)throw sp("Maximum allowed index exceeded");return e},op=sn,ap=Hs,lp=np?function(e,t){if(ep(e)&&!rp(e,"length").writable)throw tp("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},cp=ip;Rs({target:"Array",proto:!0,arity:1,forced:vt((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=op(this),r=ap(t),n=arguments.length;cp(r+n);for(var s=0;s<n;s++)t[r]=arguments[s],r++;return lp(t,r),r}});var pp=qc("Array").push,up=xr,dp=pp,hp=Array.prototype;const fp=mt((function(e){var t=e.push;return e===hp||up(hp,e)&&t===hp.push?dp:t}));var mp,yp,gp,vp={},bp=Ut,xp=ln,wp=Function.prototype,$p=bp&&Object.getOwnPropertyDescriptor,Sp=xp(wp,"name"),Ep={EXISTS:Sp,PROPER:Sp&&"something"===function(){}.name,CONFIGURABLE:Sp&&(!bp||bp&&$p(wp,"name").configurable)},kp=!vt((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Op=ln,jp=Bt,Ap=sn,Pp=kp,Tp=Ri("IE_PROTO"),Cp=Object,Ip=Cp.prototype,Rp=Pp?Cp.getPrototypeOf:function(e){var t=Ap(e);if(Op(t,Tp))return t[Tp];var r=t.constructor;return jp(r)&&t instanceof r?r.prototype:t instanceof Cp?Ip:null},_p=vt,Fp=Bt,Dp=hr,Mp=Vi,qp=Rp,Lp=uo,Bp=$n("iterator"),Np=!1;[].keys&&("next"in(gp=[].keys())?(yp=qp(qp(gp)))!==Object.prototype&&(mp=yp):Np=!0);var Up=!Dp(mp)||_p((function(){var e={};return mp[Bp].call(e)!==e}));Fp((mp=Up?{}:Mp(mp))[Bp])||Lp(mp,Bp,(function(){return this}));var zp={IteratorPrototype:mp,BUGGY_SAFARI_ITERATORS:Np},Hp=zp.IteratorPrototype,Vp=Vi,Wp=Xt,Gp=Mo,Jp=vp,Kp=function(){return this},Yp=Rs,Zp=Vt,Xp=Rp,Qp=Mo,eu=uo,tu=vp,ru=Ep.PROPER,nu=zp.BUGGY_SAFARI_ITERATORS,su=$n("iterator"),iu=function(){return this},ou=function(e,t,r,n,s,i,o){!function(e,t,r,n){var s=t+" Iterator";e.prototype=Vp(Hp,{next:Wp(+!n,r)}),Gp(e,s,!1,!0),Jp[s]=Kp}(r,t,n);var a,l,c,p=function(e){if(e===s&&m)return m;if(!nu&&e in h)return h[e];switch(e){case"keys":case"values":case"entries":return function(){return new r(this,e)}}return function(){return new r(this)}},u=t+" Iterator",d=!1,h=e.prototype,f=h[su]||h["@@iterator"]||s&&h[s],m=!nu&&f||p(s),y="Array"==t&&h.entries||f;if(y&&(a=Xp(y.call(new e)))!==Object.prototype&&a.next&&(Qp(a,u,!0,!0),tu[u]=iu),ru&&"values"==s&&f&&"values"!==f.name&&(d=!0,m=function(){return Zp(f,this)}),s)if(l={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},o)for(c in l)(nu||d||!(c in h))&&eu(h,c,l[c]);else Yp({target:t,proto:!0,forced:nu||d},l);return o&&h[su]!==m&&eu(h,su,m,{name:s}),tu[t]=m,l},au=function(e,t){return{value:e,done:t}},lu=pr,cu=vp,pu=Xo;is.f;var uu=ou,du=au,hu=pu.set,fu=pu.getterFor("Array Iterator");uu(Array,"Array",(function(e,t){hu(this,{type:"Array Iterator",target:lu(e),index:0,kind:t})}),(function(){var e=fu(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,du(void 0,!0)):du("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),cu.Arguments=cu.Array;var mu=gt,yu=vi,gu=ws,vu=vp,bu=$n("toStringTag");for(var xu in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var wu=mu[xu],$u=wu&&wu.prototype;$u&&yu($u)!==bu&&gu($u,bu,xu),vu[xu]=vu.Array}var Su=vt,Eu=function(e,t){var r=[][e];return!!r&&Su((function(){r.call(null,t||function(){return 1},1)}))},ku=Ia.forEach,Ou=Eu("forEach")?[].forEach:function(e){return ku(this,e,arguments.length>1?arguments[1]:void 0)};Rs({target:"Array",proto:!0,forced:[].forEach!=Ou},{forEach:Ou});var ju=qc("Array").forEach,Au=vi,Pu=ln,Tu=xr,Cu=ju,Iu=Array.prototype,Ru={DOMTokenList:!0,NodeList:!0};const _u=mt((function(e){var t=e.forEach;return e===Iu||Tu(Iu,e)&&t===Iu.forEach||Pu(Ru,Au(e))?Cu:t}));var Fu=br,Du=Wi,Mu=co,qu=ps,Lu=Pt([].concat),Bu=Fu("Reflect","ownKeys")||function(e){var t=Du.f(qu(e)),r=Mu.f;return r?Lu(t,r(e)):t},Nu=Bu,Uu=pr,zu=Nt,Hu=Qi;Rs({target:"Object",stat:!0,sham:!Ut},{getOwnPropertyDescriptors:function(e){for(var t,r,n=Uu(e),s=zu.f,i=Nu(n),o={},a=0;i.length>a;)void 0!==(r=s(n,t=i[a++]))&&Hu(o,t,r);return o}});const Vu=mt(fr.Object.getOwnPropertyDescriptors);var Wu={exports:{}},Gu=Rs,Ju=Ut,Ku=$i.f;Gu({target:"Object",stat:!0,forced:Object.defineProperties!==Ku,sham:!Ju},{defineProperties:Ku});var Yu=fr.Object,Zu=Wu.exports=function(e,t){return Yu.defineProperties(e,t)};Yu.defineProperties.sham&&(Zu.sham=!0);const Xu=mt(Wu.exports);var Qu={exports:{}},ed=Rs,td=Ut,rd=is.f;ed({target:"Object",stat:!0,forced:Object.defineProperty!==rd,sham:!td},{defineProperty:rd});var nd=fr.Object,sd=Qu.exports=function(e,t,r){return nd.defineProperty(e,t,r)};nd.defineProperty.sham&&(sd.sham=!0);const id=mt(Qu.exports);var od=Rs,ad=vt,ld=ea,cd=hr,pd=sn,ud=Hs,dd=ip,hd=Qi,fd=Ea,md=Fc,yd=jr,gd=$n("isConcatSpreadable"),vd=yd>=51||!ad((function(){var e=[];return e[gd]=!1,e.concat()[0]!==e})),bd=function(e){if(!cd(e))return!1;var t=e[gd];return void 0!==t?!!t:ld(e)};od({target:"Array",proto:!0,arity:1,forced:!vd||!md("concat")},{concat:function(e){var t,r,n,s,i,o=pd(this),a=fd(o,0),l=0;for(t=-1,n=arguments.length;t<n;t++)if(bd(i=-1===t?o:arguments[t]))for(s=ud(i),dd(l+s),r=0;r<s;r++,l++)r in i&&hd(a,l,i[r]);else dd(l+1),hd(a,l++,i);return a.length=l,a}}),So("asyncIterator"),So("hasInstance"),So("isConcatSpreadable"),So("iterator"),So("match"),So("matchAll"),So("replace"),So("search"),So("species"),So("split");var xd=Ao;So("toPrimitive"),xd();var wd=br,$d=Mo;So("toStringTag"),$d(wd("Symbol"),"Symbol"),So("unscopables"),Mo(gt.JSON,"JSON",!0);var Sd=fr.Symbol,Ed=$n,kd=is.f,Od=Ed("metadata"),jd=Function.prototype;void 0===jd[Od]&&kd(jd,Od,{value:null}),So("dispose"),So("metadata");var Ad=Sd;So("asyncDispose");var Pd=Pt,Td=br("Symbol"),Cd=Td.keyFor,Id=Pd(Td.prototype.valueOf),Rd=Td.isRegisteredSymbol||function(e){try{return void 0!==Cd(Id(e))}catch(e){return!1}};Rs({target:"Symbol",stat:!0},{isRegisteredSymbol:Rd});for(var _d=tn,Fd=br,Dd=Pt,Md=Mr,qd=$n,Ld=Fd("Symbol"),Bd=Ld.isWellKnownSymbol,Nd=Fd("Object","getOwnPropertyNames"),Ud=Dd(Ld.prototype.valueOf),zd=_d("wks"),Hd=0,Vd=Nd(Ld),Wd=Vd.length;Hd<Wd;Hd++)try{var Gd=Vd[Hd];Md(Ld[Gd])&&qd(Gd)}catch(s){}var Jd=function(e){if(Bd&&Bd(e))return!0;try{for(var t=Ud(e),r=0,n=Nd(zd),s=n.length;r<s;r++)if(zd[n[r]]==t)return!0}catch(e){}return!1};Rs({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:Jd}),So("matcher"),So("observable"),Rs({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:Rd}),Rs({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:Jd}),So("metadataKey"),So("patternMatch"),So("replaceAll");const Kd=mt(Ad);var Yd=Pt,Zd=Ms,Xd=wi,Qd=ar,eh=Yd("".charAt),th=Yd("".charCodeAt),rh=Yd("".slice),nh=function(e){return function(t,r){var n,s,i=Xd(Qd(t)),o=Zd(r),a=i.length;return o<0||o>=a?e?"":void 0:(n=th(i,o))<55296||n>56319||o+1===a||(s=th(i,o+1))<56320||s>57343?e?eh(i,o):n:e?rh(i,o,o+2):s-56320+(n-55296<<10)+65536}},sh=(nh(!1),nh(!0)),ih=wi,oh=Xo,ah=ou,lh=au,ch=oh.set,ph=oh.getterFor("String Iterator");ah(String,"String",(function(e){ch(this,{type:"String Iterator",string:ih(e),index:0})}),(function(){var e,t=ph(this),r=t.string,n=t.index;return n>=r.length?lh(void 0,!0):(e=sh(r,n),t.index+=e.length,lh(e,!1))}));const uh=mt(fo.f("iterator"));function dh(e){return dh="function"==typeof Kd&&"symbol"==typeof uh?function(e){return typeof e}:function(e){return e&&"function"==typeof Kd&&e.constructor===Kd&&e!==Kd.prototype?"symbol":typeof e},dh(e)}const hh=mt(fo.f("toPrimitive"));function fh(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==dh(e)||null===e)return e;var r=e[hh];if(void 0!==r){var n=r.call(e,"string");if("object"!==dh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===dh(t)?t:String(t)}(t))in e?id(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mh(e,t){var r=ci(e);if(Cc){var n=Cc(e);t&&(n=zc(n).call(n,(function(t){return Xc(e,t).enumerable}))),fp(r).apply(r,n)}return r}function yh(e){for(var t=1;t<arguments.length;t++){var r,n,s=null!=arguments[t]?arguments[t]:{};t%2?_u(r=mh(Object(s),!0)).call(r,(function(t){fh(e,t,s[t])})):Vu?Xu(e,Vu(s)):_u(n=mh(Object(s))).call(n,(function(t){id(e,t,Xc(s,t))}))}return e}var gh={},vh={exports:{}};!function(e,t){!function(r){var n=t&&!t.nodeType&&t,s=e&&!e.nodeType&&e,i="object"==typeof global&&global;i.global!==i&&i.window!==i&&i.self!==i||(r=i);var o,a,l=2147483647,c=36,p=/^xn--/,u=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,h={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},f=Math.floor,m=String.fromCharCode;function y(e){throw RangeError(h[e])}function g(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function v(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+g((e=e.replace(d,".")).split("."),t).join(".")}function b(e){for(var t,r,n=[],s=0,i=e.length;s<i;)(t=e.charCodeAt(s++))>=55296&&t<=56319&&s<i?56320==(64512&(r=e.charCodeAt(s++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),s--):n.push(t);return n}function x(e){return g(e,(function(e){var t="";return e>65535&&(t+=m((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+m(e)})).join("")}function w(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function $(e,t,r){var n=0;for(e=r?f(e/700):e>>1,e+=f(e/t);e>455;n+=c)e=f(e/35);return f(n+36*e/(e+38))}function S(e){var t,r,n,s,i,o,a,p,u,d,h,m=[],g=e.length,v=0,b=128,w=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&y("not-basic"),m.push(e.charCodeAt(n));for(s=r>0?r+1:0;s<g;){for(i=v,o=1,a=c;s>=g&&y("invalid-input"),((p=(h=e.charCodeAt(s++))-48<10?h-22:h-65<26?h-65:h-97<26?h-97:c)>=c||p>f((l-v)/o))&&y("overflow"),v+=p*o,!(p<(u=a<=w?1:a>=w+26?26:a-w));a+=c)o>f(l/(d=c-u))&&y("overflow"),o*=d;w=$(v-i,t=m.length+1,0==i),f(v/t)>l-b&&y("overflow"),b+=f(v/t),v%=t,m.splice(v++,0,b)}return x(m)}function E(e){var t,r,n,s,i,o,a,p,u,d,h,g,v,x,S,E=[];for(g=(e=b(e)).length,t=128,r=0,i=72,o=0;o<g;++o)(h=e[o])<128&&E.push(m(h));for(n=s=E.length,s&&E.push("-");n<g;){for(a=l,o=0;o<g;++o)(h=e[o])>=t&&h<a&&(a=h);for(a-t>f((l-r)/(v=n+1))&&y("overflow"),r+=(a-t)*v,t=a,o=0;o<g;++o)if((h=e[o])<t&&++r>l&&y("overflow"),h==t){for(p=r,u=c;!(p<(d=u<=i?1:u>=i+26?26:u-i));u+=c)S=p-d,x=c-d,E.push(m(w(d+S%x,0))),p=f(S/x);E.push(m(w(p,0))),i=$(r,v,n==s),r=0,++n}++r,++t}return E.join("")}if(o={version:"1.3.2",ucs2:{decode:b,encode:x},decode:S,encode:E,toASCII:function(e){return v(e,(function(e){return u.test(e)?"xn--"+E(e):e}))},toUnicode:function(e){return v(e,(function(e){return p.test(e)?S(e.slice(4).toLowerCase()):e}))}},n&&s)if(e.exports==n)s.exports=o;else for(a in o)o.hasOwnProperty(a)&&(n[a]=o[a]);else r.punycode=o}(this)}(vh,vh.exports);var bh=vh.exports,xh={};function wh(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var $h=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};xh.decode=xh.parse=function(e,t,r,n){t=t||"&",r=r||"=";var s={};if("string"!=typeof e||0===e.length)return s;var i=/\+/g;e=e.split(t);var o=1e3;n&&"number"==typeof n.maxKeys&&(o=n.maxKeys);var a=e.length;o>0&&a>o&&(a=o);for(var l=0;l<a;++l){var c,p,u,d,h=e[l].replace(i,"%20"),f=h.indexOf(r);f>=0?(c=h.substr(0,f),p=h.substr(f+1)):(c=h,p=""),u=decodeURIComponent(c),d=decodeURIComponent(p),wh(s,u)?Array.isArray(s[u])?s[u].push(d):s[u]=[s[u],d]:s[u]=d}return s},xh.encode=xh.stringify=function(e,t,r,n){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(n){var s=encodeURIComponent($h(n))+r;return Array.isArray(e[n])?e[n].map((function(e){return s+encodeURIComponent($h(e))})).join(t):s+encodeURIComponent($h(e[n]))})).join(t):n?encodeURIComponent($h(n))+r+encodeURIComponent($h(e)):""};var Sh=bh,Eh=function(e){return"string"==typeof e},kh=function(e){return"object"==typeof e&&null!==e},Oh=function(e){return null===e},jh=function(e){return null==e};function Ah(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}gh.parse=Uh,gh.resolve=function(e,t){return Uh(e,!1,!0).resolve(t)},gh.resolveObject=function(e,t){return e?Uh(e,!1,!0).resolveObject(t):t},gh.format=function(e){return Eh(e)&&(e=Uh(e)),e instanceof Ah?e.format():Ah.prototype.format.call(e)},gh.Url=Ah;var Ph=/^([a-z0-9.+-]+:)/i,Th=/:[0-9]*$/,Ch=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Ih=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),Rh=["'"].concat(Ih),_h=["%","/","?",";","#"].concat(Rh),Fh=["/","?","#"],Dh=/^[+a-z0-9A-Z_-]{0,63}$/,Mh=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,qh={javascript:!0,"javascript:":!0},Lh={javascript:!0,"javascript:":!0},Bh={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Nh=xh;function Uh(e,t,r){if(e&&kh(e)&&e instanceof Ah)return e;var n=new Ah;return n.parse(e,t,r),n}Ah.prototype.parse=function(e,t,r){if(!Eh(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e.indexOf("?"),s=-1!==n&&n<e.indexOf("#")?"?":"#",i=e.split(s);i[0]=i[0].replace(/\\/g,"/");var o=e=i.join(s);if(o=o.trim(),!r&&1===e.split("#").length){var a=Ch.exec(o);if(a)return this.path=o,this.href=o,this.pathname=a[1],a[2]?(this.search=a[2],this.query=t?Nh.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var l=Ph.exec(o);if(l){var c=(l=l[0]).toLowerCase();this.protocol=c,o=o.substr(l.length)}if(r||l||o.match(/^\/\/[^@\/]+@[^@\/]+/)){var p="//"===o.substr(0,2);!p||l&&Lh[l]||(o=o.substr(2),this.slashes=!0)}if(!Lh[l]&&(p||l&&!Bh[l])){for(var u,d,h=-1,f=0;f<Fh.length;f++)-1!==(m=o.indexOf(Fh[f]))&&(-1===h||m<h)&&(h=m);for(-1!==(d=-1===h?o.lastIndexOf("@"):o.lastIndexOf("@",h))&&(u=o.slice(0,d),o=o.slice(d+1),this.auth=decodeURIComponent(u)),h=-1,f=0;f<_h.length;f++){var m;-1!==(m=o.indexOf(_h[f]))&&(-1===h||m<h)&&(h=m)}-1===h&&(h=o.length),this.host=o.slice(0,h),o=o.slice(h),this.parseHost(),this.hostname=this.hostname||"";var y="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!y)for(var g=this.hostname.split(/\./),v=(f=0,g.length);f<v;f++){var b=g[f];if(b&&!b.match(Dh)){for(var x="",w=0,$=b.length;w<$;w++)b.charCodeAt(w)>127?x+="x":x+=b[w];if(!x.match(Dh)){var S=g.slice(0,f),E=g.slice(f+1),k=b.match(Mh);k&&(S.push(k[1]),E.unshift(k[2])),E.length&&(o="/"+E.join(".")+o),this.hostname=S.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),y||(this.hostname=Sh.toASCII(this.hostname));var O=this.port?":"+this.port:"",j=this.hostname||"";this.host=j+O,this.href+=this.host,y&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==o[0]&&(o="/"+o))}if(!qh[c])for(f=0,v=Rh.length;f<v;f++){var A=Rh[f];if(-1!==o.indexOf(A)){var P=encodeURIComponent(A);P===A&&(P=escape(A)),o=o.split(A).join(P)}}var T=o.indexOf("#");-1!==T&&(this.hash=o.substr(T),o=o.slice(0,T));var C=o.indexOf("?");if(-1!==C?(this.search=o.substr(C),this.query=o.substr(C+1),t&&(this.query=Nh.parse(this.query)),o=o.slice(0,C)):t&&(this.search="",this.query={}),o&&(this.pathname=o),Bh[c]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){O=this.pathname||"";var I=this.search||"";this.path=O+I}return this.href=this.format(),this},Ah.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",s=!1,i="";this.host?s=e+this.host:this.hostname&&(s=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(s+=":"+this.port)),this.query&&kh(this.query)&&Object.keys(this.query).length&&(i=Nh.stringify(this.query));var o=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||Bh[t])&&!1!==s?(s="//"+(s||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):s||(s=""),n&&"#"!==n.charAt(0)&&(n="#"+n),o&&"?"!==o.charAt(0)&&(o="?"+o),r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})),t+s+r+(o=o.replace("#","%23"))+n},Ah.prototype.resolve=function(e){return this.resolveObject(Uh(e,!1,!0)).format()},Ah.prototype.resolveObject=function(e){if(Eh(e)){var t=new Ah;t.parse(e,!1,!0),e=t}for(var r=new Ah,n=Object.keys(this),s=0;s<n.length;s++){var i=n[s];r[i]=this[i]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var o=Object.keys(e),a=0;a<o.length;a++){var l=o[a];"protocol"!==l&&(r[l]=e[l])}return Bh[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!Bh[e.protocol]){for(var c=Object.keys(e),p=0;p<c.length;p++){var u=c[p];r[u]=e[u]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||Lh[e.protocol])r.pathname=e.pathname;else{for(var d=(e.pathname||"").split("/");d.length&&!(e.host=d.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),r.pathname=d.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var h=r.pathname||"",f=r.search||"";r.path=h+f}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var m=r.pathname&&"/"===r.pathname.charAt(0),y=e.host||e.pathname&&"/"===e.pathname.charAt(0),g=y||m||r.host&&e.pathname,v=g,b=r.pathname&&r.pathname.split("/")||[],x=(d=e.pathname&&e.pathname.split("/")||[],r.protocol&&!Bh[r.protocol]);if(x&&(r.hostname="",r.port=null,r.host&&(""===b[0]?b[0]=r.host:b.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===d[0]?d[0]=e.host:d.unshift(e.host)),e.host=null),g=g&&(""===d[0]||""===b[0])),y)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,b=d;else if(d.length)b||(b=[]),b.pop(),b=b.concat(d),r.search=e.search,r.query=e.query;else if(!jh(e.search))return x&&(r.hostname=r.host=b.shift(),(k=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=k.shift(),r.host=r.hostname=k.shift())),r.search=e.search,r.query=e.query,Oh(r.pathname)&&Oh(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!b.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var w=b.slice(-1)[0],$=(r.host||e.host||b.length>1)&&("."===w||".."===w)||""===w,S=0,E=b.length;E>=0;E--)"."===(w=b[E])?b.splice(E,1):".."===w?(b.splice(E,1),S++):S&&(b.splice(E,1),S--);if(!g&&!v)for(;S--;S)b.unshift("..");!g||""===b[0]||b[0]&&"/"===b[0].charAt(0)||b.unshift(""),$&&"/"!==b.join("/").substr(-1)&&b.push("");var k,O=""===b[0]||b[0]&&"/"===b[0].charAt(0);return x&&(r.hostname=r.host=O?"":b.length?b.shift():"",(k=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=k.shift(),r.host=r.hostname=k.shift())),(g=g||r.host&&b.length)&&!O&&b.unshift(""),b.length?r.pathname=b.join("/"):(r.pathname=null,r.path=null),Oh(r.pathname)&&Oh(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},Ah.prototype.parseHost=function(){var e=this.host,t=Th.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},function(){!function(e){!function(t){var r="URLSearchParams"in e,n="Symbol"in e&&"iterator"in Symbol,s="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i="FormData"in e,o="ArrayBuffer"in e;if(o)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&a.indexOf(Object.prototype.toString.call(e))>-1};function c(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function p(e){return"string"!=typeof e&&(e=String(e)),e}function u(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n&&(t[Symbol.iterator]=function(){return t}),t}function d(e){this.map={},e instanceof d?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function h(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function f(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function m(e){var t=new FileReader,r=f(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:s&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:i&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():o&&s&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=y(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},s&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(m)}),this.text=function(){var e,t,r,n=h(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,r=f(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(e,t){e=c(e),t=p(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},d.prototype.delete=function(e){delete this.map[c(e)]},d.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},d.prototype.set=function(e,t){this.map[c(e)]=p(t)},d.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},d.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),u(e)},d.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),u(e)},d.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),u(e)},n&&(d.prototype[Symbol.iterator]=d.prototype.entries);var v=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(e,t){var r=(t=t||{}).body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new d(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new d(t.headers)),this.method=function(e){var t=e.toUpperCase();return v.indexOf(t)>-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function x(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),s=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(s))}})),t}function w(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new d(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},g.call(b.prototype),g.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:""});return e.type="error",e};var $=[301,302,303,307,308];w.redirect=function(e,t){if(-1===$.indexOf(t))throw new RangeError("Invalid status code");return new w(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function S(e,r){return new Promise((function(n,i){var o=new b(e,r);if(o.signal&&o.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function l(){a.abort()}a.onload=function(){var e,t,r={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new d,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var s=r.join(":").trim();t.append(n,s)}})),t)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var s="response"in a?a.response:a.responseText;n(new w(s,r))},a.onerror=function(){i(new TypeError("Network request failed"))},a.ontimeout=function(){i(new TypeError("Network request failed"))},a.onabort=function(){i(new t.DOMException("Aborted","AbortError"))},a.open(o.method,o.url,!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&s&&(a.responseType="blob"),o.headers.forEach((function(e,t){a.setRequestHeader(t,e)})),o.signal&&(o.signal.addEventListener("abort",l),a.onreadystatechange=function(){4===a.readyState&&o.signal.removeEventListener("abort",l)}),a.send(void 0===o._bodyInit?null:o._bodyInit)}))}S.polyfill=!0,e.fetch||(e.fetch=S,e.Headers=d,e.Request=b,e.Response=w),t.Headers=d,t.Request=b,t.Response=w,t.fetch=S,Object.defineProperty(t,"t",{value:!0})}({})}("undefined"!=typeof self?self:this)}();var zh="undefined"!=typeof Symbol&&Symbol,Hh=Array.prototype.slice,Vh=Object.prototype.toString,Wh=Function.prototype.bind||function(e){var t=this;if("function"!=typeof t||"[object Function]"!==Vh.call(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var r,n=Hh.call(arguments,1),s=Math.max(0,t.length-n.length),i=[],o=0;o<s;o++)i.push("$"+o);if(r=Function("binder","return function ("+i.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof r){var s=t.apply(this,n.concat(Hh.call(arguments)));return Object(s)===s?s:this}return t.apply(e,n.concat(Hh.call(arguments)))})),t.prototype){var a=function(){};a.prototype=t.prototype,r.prototype=new a,a.prototype=null}return r},Gh=Wh.call(Function.call,Object.prototype.hasOwnProperty),Jh=SyntaxError,Kh=Function,Yh=TypeError,Zh=function(e){try{return Kh('"use strict"; return ('+e+").constructor;")()}catch(e){}},Xh=Object.getOwnPropertyDescriptor;if(Xh)try{Xh({},"")}catch(s){Xh=null}var Qh=function(){throw new Yh},ef=Xh?function(){try{return Qh}catch(e){try{return Xh(arguments,"callee").get}catch(e){return Qh}}}():Qh,tf="function"==typeof zh&&"function"==typeof Symbol&&"symbol"==typeof zh("foo")&&"symbol"==typeof Symbol("bar")&&function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var s=Object.getOwnPropertyDescriptor(e,t);if(42!==s.value||!0!==s.enumerable)return!1}return!0}(),rf=Object.getPrototypeOf||function(e){return e.__proto__},nf={},sf="undefined"==typeof Uint8Array?void 0:rf(Uint8Array),of={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":tf?rf([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":nf,"%AsyncGenerator%":nf,"%AsyncGeneratorFunction%":nf,"%AsyncIteratorPrototype%":nf,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":Kh,"%GeneratorFunction%":nf,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":tf?rf(rf([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&tf?rf((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&tf?rf((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":tf?rf(""[Symbol.iterator]()):void 0,"%Symbol%":tf?Symbol:void 0,"%SyntaxError%":Jh,"%ThrowTypeError%":ef,"%TypedArray%":sf,"%TypeError%":Yh,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},af=function e(t){var r;if("%AsyncFunction%"===t)r=Zh("async function () {}");else if("%GeneratorFunction%"===t)r=Zh("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=Zh("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var s=e("%AsyncGenerator%");s&&(r=rf(s.prototype))}return of[t]=r,r},lf={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},cf=Wh,pf=Gh,uf=cf.call(Function.call,Array.prototype.concat),df=cf.call(Function.apply,Array.prototype.splice),hf=cf.call(Function.call,String.prototype.replace),ff=cf.call(Function.call,String.prototype.slice),mf=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,yf=/\\(\\)?/g,gf=function(e,t){var r,n=e;if(pf(lf,n)&&(n="%"+(r=lf[n])[0]+"%"),pf(of,n)){var s=of[n];if(s===nf&&(s=af(n)),void 0===s&&!t)throw new Yh("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:s}}throw new Jh("intrinsic "+e+" does not exist!")},vf=function(e,t){if("string"!=typeof e||0===e.length)throw new Yh("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new Yh('"allowMissing" argument must be a boolean');var r=function(e){var t=ff(e,0,1),r=ff(e,-1);if("%"===t&&"%"!==r)throw new Jh("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new Jh("invalid intrinsic syntax, expected opening `%`");var n=[];return hf(e,mf,(function(e,t,r,s){n[n.length]=r?hf(s,yf,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",s=gf("%"+n+"%",t),i=s.name,o=s.value,a=!1,l=s.alias;l&&(n=l[0],df(r,uf([0,1],l)));for(var c=1,p=!0;c<r.length;c+=1){var u=r[c],d=ff(u,0,1),h=ff(u,-1);if(('"'===d||"'"===d||"`"===d||'"'===h||"'"===h||"`"===h)&&d!==h)throw new Jh("property names with quotes must have matching quotes");if("constructor"!==u&&p||(a=!0),pf(of,i="%"+(n+="."+u)+"%"))o=of[i];else if(null!=o){if(!(u in o)){if(!t)throw new Yh("base intrinsic for "+e+" exists, but the property is not available.");return}if(Xh&&c+1>=r.length){var f=Xh(o,u);o=(p=!!f)&&"get"in f&&!("originalValue"in f.get)?f.get:o[u]}else p=pf(o,u),o=o[u];p&&!a&&(of[i]=o)}}return o},bf={exports:{}};!function(e){var t=Wh,r=vf,n=r("%Function.prototype.apply%"),s=r("%Function.prototype.call%"),i=r("%Reflect.apply%",!0)||t.call(s,n),o=r("%Object.getOwnPropertyDescriptor%",!0),a=r("%Object.defineProperty%",!0),l=r("%Math.max%");if(a)try{a({},"a",{value:1})}catch(e){a=null}e.exports=function(e){var r=i(t,s,arguments);o&&a&&(o(r,"length").configurable&&a(r,"length",{value:1+l(0,e.length-(arguments.length-1))}));return r};var c=function(){return i(t,n,arguments)};a?a(e.exports,"apply",{value:c}):e.exports.apply=c}(bf);var xf=vf,wf=bf.exports,$f=wf(xf("String.prototype.indexOf"));const Sf=function(e){if(e.t)return e;var t=e.default;if("function"==typeof t){var r=function e(){if(this instanceof e){var r=[null];return r.push.apply(r,arguments),new(Function.bind.apply(t,r))}return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"t",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Ef="function"==typeof Map&&Map.prototype,kf=Object.getOwnPropertyDescriptor&&Ef?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Of=Ef&&kf&&"function"==typeof kf.get?kf.get:null,jf=Ef&&Map.prototype.forEach,Af="function"==typeof Set&&Set.prototype,Pf=Object.getOwnPropertyDescriptor&&Af?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Tf=Af&&Pf&&"function"==typeof Pf.get?Pf.get:null,Cf=Af&&Set.prototype.forEach,If="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Rf="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,_f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Ff=Boolean.prototype.valueOf,Df=Object.prototype.toString,Mf=Function.prototype.toString,qf=String.prototype.match,Lf=String.prototype.slice,Bf=String.prototype.replace,Nf=String.prototype.toUpperCase,Uf=String.prototype.toLowerCase,zf=RegExp.prototype.test,Hf=Array.prototype.concat,Vf=Array.prototype.join,Wf=Array.prototype.slice,Gf=Math.floor,Jf="function"==typeof BigInt?BigInt.prototype.valueOf:null,Kf=Object.getOwnPropertySymbols,Yf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,Zf="function"==typeof Symbol&&"object"==typeof Symbol.iterator,Xf="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,Qf=Object.prototype.propertyIsEnumerable,em=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function tm(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||zf.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-Gf(-e):Gf(e);if(n!==e){var s=String(n),i=Lf.call(t,s.length+1);return Bf.call(s,r,"$&_")+"."+Bf.call(Bf.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Bf.call(t,r,"$&_")}var rm=Sf.custom,nm=rm&&am(rm)?rm:null;function sm(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function im(e){return Bf.call(String(e),/"/g,"&quot;")}function om(e){return!("[object Array]"!==pm(e)||Xf&&"object"==typeof e&&Xf in e)}function am(e){if(Zf)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!Yf)return!1;try{return Yf.call(e),!0}catch(e){}return!1}var lm=Object.prototype.hasOwnProperty||function(e){return e in this};function cm(e,t){return lm.call(e,t)}function pm(e){return Df.call(e)}function um(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function dm(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return dm(Lf.call(e,0,t.maxStringLength),t)+n}return sm(Bf.call(Bf.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,hm),"single",t)}function hm(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+Nf.call(t.toString(16))}function fm(e){return"Object("+e+")"}function mm(e){return e+" { ? }"}function ym(e,t,r,n){return e+" ("+t+") {"+(n?gm(r,n):Vf.call(r,", "))+"}"}function gm(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+Vf.call(e,","+r)+"\n"+t.prev}function vm(e,t){var r=om(e),n=[];if(r){n.length=e.length;for(var s=0;s<e.length;s++)n[s]=cm(e,s)?t(e[s],e):""}var i,o="function"==typeof Kf?Kf(e):[];if(Zf){i={};for(var a=0;a<o.length;a++)i["$"+o[a]]=o[a]}for(var l in e)cm(e,l)&&(r&&String(Number(l))===l&&l<e.length||Zf&&i["$"+l]instanceof Symbol||(zf.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if("function"==typeof Kf)for(var c=0;c<o.length;c++)Qf.call(e,o[c])&&n.push("["+t(o[c])+"]: "+t(e[o[c]],e));return n}var bm=vf,xm=function(e,t){var r=xf(e,!!t);return"function"==typeof r&&$f(e,".prototype.")>-1?wf(r):r},wm=function e(t,r,n,s){var i=r||{};if(cm(i,"quoteStyle")&&"single"!==i.quoteStyle&&"double"!==i.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(cm(i,"maxStringLength")&&("number"==typeof i.maxStringLength?i.maxStringLength<0&&i.maxStringLength!==1/0:null!==i.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=!cm(i,"customInspect")||i.customInspect;if("boolean"!=typeof o&&"symbol"!==o)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(cm(i,"indent")&&null!==i.indent&&"\t"!==i.indent&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(cm(i,"numericSeparator")&&"boolean"!=typeof i.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return dm(t,i);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var l=String(t);return a?tm(t,l):l}if("bigint"==typeof t){var c=String(t)+"n";return a?tm(t,c):c}var p=void 0===i.depth?5:i.depth;if(void 0===n&&(n=0),n>=p&&p>0&&"object"==typeof t)return om(t)?"[Array]":"[Object]";var u=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=Vf.call(Array(e.indent+1)," ")}return{base:r,prev:Vf.call(Array(t+1),r)}}(i,n);if(void 0===s)s=[];else if(um(s,t)>=0)return"[Circular]";function d(t,r,o){if(r&&(s=Wf.call(s)).push(r),o){var a={depth:i.depth};return cm(i,"quoteStyle")&&(a.quoteStyle=i.quoteStyle),e(t,a,n+1,s)}return e(t,i,n+1,s)}if("function"==typeof t){var h=function(e){if(e.name)return e.name;var t=qf.call(Mf.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),f=vm(t,d);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(f.length>0?" { "+Vf.call(f,", ")+" }":"")}if(am(t)){var m=Zf?Bf.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Yf.call(t);return"object"!=typeof t||Zf?m:fm(m)}if(function(e){return!(!e||"object"!=typeof e)&&("undefined"!=typeof HTMLElement&&e instanceof HTMLElement||"string"==typeof e.nodeName&&"function"==typeof e.getAttribute)}(t)){for(var y="<"+Uf.call(String(t.nodeName)),g=t.attributes||[],v=0;v<g.length;v++)y+=" "+g[v].name+"="+sm(im(g[v].value),"double",i);return y+=">",t.childNodes&&t.childNodes.length&&(y+="..."),y+"</"+Uf.call(String(t.nodeName))+">"}if(om(t)){if(0===t.length)return"[]";var b=vm(t,d);return u&&!function(e){for(var t=0;t<e.length;t++)if(um(e[t],"\n")>=0)return!1;return!0}(b)?"["+gm(b,u)+"]":"[ "+Vf.call(b,", ")+" ]"}if(function(e){return!("[object Error]"!==pm(e)||Xf&&"object"==typeof e&&Xf in e)}(t)){var x=vm(t,d);return"cause"in t&&!Qf.call(t,"cause")?"{ ["+String(t)+"] "+Vf.call(Hf.call("[cause]: "+d(t.cause),x),", ")+" }":0===x.length?"["+String(t)+"]":"{ ["+String(t)+"] "+Vf.call(x,", ")+" }"}if("object"==typeof t&&o){if(nm&&"function"==typeof t[nm])return t[nm]();if("symbol"!==o&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!Of||!e||"object"!=typeof e)return!1;try{Of.call(e);try{Tf.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var w=[];return jf.call(t,(function(e,r){w.push(d(r,t,!0)+" => "+d(e,t))})),ym("Map",Of.call(t),w,u)}if(function(e){if(!Tf||!e||"object"!=typeof e)return!1;try{Tf.call(e);try{Of.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var $=[];return Cf.call(t,(function(e){$.push(d(e,t))})),ym("Set",Tf.call(t),$,u)}if(function(e){if(!If||!e||"object"!=typeof e)return!1;try{If.call(e,If);try{Rf.call(e,Rf)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return mm("WeakMap");if(function(e){if(!Rf||!e||"object"!=typeof e)return!1;try{Rf.call(e,Rf);try{If.call(e,If)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return mm("WeakSet");if(function(e){if(!_f||!e||"object"!=typeof e)return!1;try{return _f.call(e),!0}catch(e){}return!1}(t))return mm("WeakRef");if(function(e){return!("[object Number]"!==pm(e)||Xf&&"object"==typeof e&&Xf in e)}(t))return fm(d(Number(t)));if(function(e){if(!e||"object"!=typeof e||!Jf)return!1;try{return Jf.call(e),!0}catch(e){}return!1}(t))return fm(d(Jf.call(t)));if(function(e){return!("[object Boolean]"!==pm(e)||Xf&&"object"==typeof e&&Xf in e)}(t))return fm(Ff.call(t));if(function(e){return!("[object String]"!==pm(e)||Xf&&"object"==typeof e&&Xf in e)}(t))return fm(d(String(t)));if(!function(e){return!("[object Date]"!==pm(e)||Xf&&"object"==typeof e&&Xf in e)}(t)&&!function(e){return!("[object RegExp]"!==pm(e)||Xf&&"object"==typeof e&&Xf in e)}(t)){var S=vm(t,d),E=em?em(t)===Object.prototype:t instanceof Object||t.constructor===Object,k=t instanceof Object?"":"null prototype",O=!E&&Xf&&Object(t)===t&&Xf in t?Lf.call(pm(t),8,-1):k?"Object":"",j=(E||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(O||k?"["+Vf.call(Hf.call([],O||[],k||[]),": ")+"] ":"");return 0===S.length?j+"{}":u?j+"{"+gm(S,u)+"}":j+"{ "+Vf.call(S,", ")+" }"}return String(t)},$m=bm("%TypeError%"),Sm=bm("%WeakMap%",!0),Em=bm("%Map%",!0),km=xm("WeakMap.prototype.get",!0),Om=xm("WeakMap.prototype.set",!0),jm=xm("WeakMap.prototype.has",!0),Am=xm("Map.prototype.get",!0),Pm=xm("Map.prototype.set",!0),Tm=xm("Map.prototype.has",!0),Cm=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},Im=String.prototype.replace,Rm=/%20/g,_m="RFC3986",Fm={default:_m,formatters:{RFC1738:function(e){return Im.call(e,Rm,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:_m},Dm=Fm,Mm=Object.prototype.hasOwnProperty,qm=Array.isArray,Lm=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Bm=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r},Nm={arrayToObject:Bm,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var s=t[n],i=s.obj[s.prop],o=Object.keys(i),a=0;a<o.length;++a){var l=o[a],c=i[l];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(t.push({obj:i,prop:l}),r.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(qm(r)){for(var n=[],s=0;s<r.length;++s)void 0!==r[s]&&n.push(r[s]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,n,s){if(0===e.length)return e;var i=e;if("symbol"==typeof e?i=Symbol.prototype.toString.call(e):"string"!=typeof e&&(i=String(e)),"iso-8859-1"===r)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var o="",a=0;a<i.length;++a){var l=i.charCodeAt(a);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||s===Dm.RFC1738&&(40===l||41===l)?o+=i.charAt(a):l<128?o+=Lm[l]:l<2048?o+=Lm[192|l>>6]+Lm[128|63&l]:l<55296||l>=57344?o+=Lm[224|l>>12]+Lm[128|l>>6&63]+Lm[128|63&l]:(a+=1,l=65536+((1023&l)<<10|1023&i.charCodeAt(a)),o+=Lm[240|l>>18]+Lm[128|l>>12&63]+Lm[128|l>>6&63]+Lm[128|63&l])}return o},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(qm(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(qm(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!Mm.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var s=t;return qm(t)&&!qm(r)&&(s=Bm(t,n)),qm(t)&&qm(r)?(r.forEach((function(r,s){if(Mm.call(t,s)){var i=t[s];i&&"object"==typeof i&&r&&"object"==typeof r?t[s]=e(i,r,n):t.push(r)}else t[s]=r})),t):Object.keys(r).reduce((function(t,s){var i=r[s];return Mm.call(t,s)?t[s]=e(t[s],i,n):t[s]=i,t}),s)}},Um=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new $m("Side channel does not contain "+wm(e))},get:function(n){if(Sm&&n&&("object"==typeof n||"function"==typeof n)){if(e)return km(e,n)}else if(Em){if(t)return Am(t,n)}else if(r)return function(e,t){var r=Cm(e,t);return r&&r.value}(r,n)},has:function(n){if(Sm&&n&&("object"==typeof n||"function"==typeof n)){if(e)return jm(e,n)}else if(Em){if(t)return Tm(t,n)}else if(r)return function(e,t){return!!Cm(e,t)}(r,n);return!1},set:function(n,s){Sm&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new Sm),Om(e,n,s)):Em?(t||(t=new Em),Pm(t,n,s)):(r||(r={key:{},next:null}),function(e,t,r){var n=Cm(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,s))}};return n},zm=Nm,Hm=Fm,Vm=Object.prototype.hasOwnProperty,Wm={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Gm=Array.isArray,Jm=String.prototype.split,Km=Array.prototype.push,Ym=function(e,t){Km.apply(e,Gm(t)?t:[t])},Zm=Date.prototype.toISOString,Xm=Hm.default,Qm={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:zm.encode,encodeValuesOnly:!1,format:Xm,formatter:Hm.formatters[Xm],indices:!1,serializeDate:function(e){return Zm.call(e)},skipNulls:!1,strictNullHandling:!1},ey={},ty=function e(t,r,n,s,i,o,a,l,c,p,u,d,h,f,m){for(var y,g=t,v=m,b=0,x=!1;void 0!==(v=v.get(ey))&&!x;){var w=v.get(t);if(b+=1,void 0!==w){if(w===b)throw new RangeError("Cyclic object value");x=!0}void 0===v.get(ey)&&(b=0)}if("function"==typeof a?g=a(r,g):g instanceof Date?g=p(g):"comma"===n&&Gm(g)&&(g=zm.maybeMap(g,(function(e){return e instanceof Date?p(e):e}))),null===g){if(s)return o&&!h?o(r,Qm.encoder,f,"key",u):r;g=""}if("string"==typeof(y=g)||"number"==typeof y||"boolean"==typeof y||"symbol"==typeof y||"bigint"==typeof y||zm.isBuffer(g)){if(o){var $=h?r:o(r,Qm.encoder,f,"key",u);if("comma"===n&&h){for(var S=Jm.call(String(g),","),E="",k=0;k<S.length;++k)E+=(0===k?"":",")+d(o(S[k],Qm.encoder,f,"value",u));return[d($)+"="+E]}return[d($)+"="+d(o(g,Qm.encoder,f,"value",u))]}return[d(r)+"="+d(String(g))]}var O,j=[];if(void 0===g)return j;if("comma"===n&&Gm(g))O=[{value:g.length>0?g.join(",")||null:void 0}];else if(Gm(a))O=a;else{var A=Object.keys(g);O=l?A.sort(l):A}for(var P=0;P<O.length;++P){var T=O[P],C="object"==typeof T&&void 0!==T.value?T.value:g[T];if(!i||null!==C){var I=Gm(g)?"function"==typeof n?n(r,T):r:r+(c?"."+T:"["+T+"]");m.set(t,b);var R=Um();R.set(ey,m),Ym(j,e(C,I,n,s,i,o,a,l,c,p,u,d,h,f,R))}}return j},ry=Nm,ny=Object.prototype.hasOwnProperty,sy=Array.isArray,iy={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:ry.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},oy=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},ay=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},ly=function(e,t,r,n){if(e){var s=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,o=r.depth>0&&/(\[[^[\]]*])/.exec(s),a=o?s.slice(0,o.index):s,l=[];if(a){if(!r.plainObjects&&ny.call(Object.prototype,a)&&!r.allowPrototypes)return;l.push(a)}for(var c=0;r.depth>0&&null!==(o=i.exec(s))&&c<r.depth;){if(c+=1,!r.plainObjects&&ny.call(Object.prototype,o[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(o[1])}return o&&l.push("["+s.slice(o.index)+"]"),function(e,t,r,n){for(var s=n?t:ay(t,r),i=e.length-1;i>=0;--i){var o,a=e[i];if("[]"===a&&r.parseArrays)o=[].concat(s);else{o=r.plainObjects?Object.create(null):{};var l="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,c=parseInt(l,10);r.parseArrays||""!==l?!isNaN(c)&&a!==l&&String(c)===l&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(o=[])[c]=s:"__proto__"!==l&&(o[l]=s):o={0:s}}s=o}return s}(l,t,r,n)}};const cy=mt({formats:Fm,parse:function(e,t){var r=function(e){if(!e)return iy;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?iy.charset:e.charset;return{allowDots:void 0===e.allowDots?iy.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:iy.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:iy.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:iy.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:iy.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:iy.comma,decoder:"function"==typeof e.decoder?e.decoder:iy.decoder,delimiter:"string"==typeof e.delimiter||ry.isRegExp(e.delimiter)?e.delimiter:iy.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:iy.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:iy.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:iy.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:iy.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:iy.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var n="string"==typeof e?function(e,t){var r,n={},s=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,o=s.split(t.delimiter,i),a=-1,l=t.charset;if(t.charsetSentinel)for(r=0;r<o.length;++r)0===o[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===o[r]?l="utf-8":"utf8=%26%2310003%3B"===o[r]&&(l="iso-8859-1"),a=r,r=o.length);for(r=0;r<o.length;++r)if(r!==a){var c,p,u=o[r],d=u.indexOf("]="),h=-1===d?u.indexOf("="):d+1;-1===h?(c=t.decoder(u,iy.decoder,l,"key"),p=t.strictNullHandling?null:""):(c=t.decoder(u.slice(0,h),iy.decoder,l,"key"),p=ry.maybeMap(ay(u.slice(h+1),t),(function(e){return t.decoder(e,iy.decoder,l,"value")}))),p&&t.interpretNumericEntities&&"iso-8859-1"===l&&(p=oy(p)),u.indexOf("[]=")>-1&&(p=sy(p)?[p]:p),ny.call(n,c)?n[c]=ry.combine(n[c],p):n[c]=p}return n}(e,r):e,s=r.plainObjects?Object.create(null):{},i=Object.keys(n),o=0;o<i.length;++o){var a=i[o],l=ly(a,n[a],r,"string"==typeof e);s=ry.merge(s,l,r)}return!0===r.allowSparse?s:ry.compact(s)},stringify:function(e,t){var r,n=e,s=function(e){if(!e)return Qm;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||Qm.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=Hm.default;if(void 0!==e.format){if(!Vm.call(Hm.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=Hm.formatters[r],s=Qm.filter;return("function"==typeof e.filter||Gm(e.filter))&&(s=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:Qm.addQueryPrefix,allowDots:void 0===e.allowDots?Qm.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Qm.charsetSentinel,delimiter:void 0===e.delimiter?Qm.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:Qm.encode,encoder:"function"==typeof e.encoder?e.encoder:Qm.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:Qm.encodeValuesOnly,filter:s,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:Qm.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:Qm.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Qm.strictNullHandling}}(t);"function"==typeof s.filter?n=(0,s.filter)("",n):Gm(s.filter)&&(r=s.filter);var i,o=[];if("object"!=typeof n||null===n)return"";i=t&&t.arrayFormat in Wm?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var a=Wm[i];r||(r=Object.keys(n)),s.sort&&r.sort(s.sort);for(var l=Um(),c=0;c<r.length;++c){var p=r[c];s.skipNulls&&null===n[p]||Ym(o,ty(n[p],p,a,s.strictNullHandling,s.skipNulls,s.encode?s.encoder:null,s.filter,s.sort,s.allowDots,s.serializeDate,s.format,s.formatter,s.encodeValuesOnly,s.charset,l))}var u=o.join(s.delimiter),d=!0===s.addQueryPrefix?"?":"";return s.charsetSentinel&&("iso-8859-1"===s.charset?d+="utf8=%26%2310003%3B&":d+="utf8=%E2%9C%93&"),u.length>0?d+u:""}});function py(e){return null==e}var uy={isNothing:py,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:py(e)?[]:[e]},repeat:function(e,t){var r,n="";for(r=0;r<t;r+=1)n+=e;return n},isNegativeZero:function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},extend:function(e,t){var r,n,s,i;if(t)for(r=0,n=(i=Object.keys(t)).length;r<n;r+=1)e[s=i[r]]=t[s];return e}};function dy(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+="\n\n"+e.mark.snippet),n+" "+r):n}function hy(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=dy(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}hy.prototype=Object.create(Error.prototype),hy.prototype.constructor=hy,hy.prototype.toString=function(e){return this.name+": "+dy(this,e)};var fy=hy;function my(e,t,r,n,s){var i="",o="",a=Math.floor(s/2)-1;return n-t>a&&(t=n-a+(i=" ... ").length),r-n>a&&(r=n+a-(o=" ...").length),{str:i+e.slice(t,r).replace(/\t/g,"→")+o,pos:n-t+i.length}}function yy(e,t){return uy.repeat(" ",t-e.length)+e}var gy=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var r,n=/\r?\n|\r|\0/g,s=[0],i=[],o=-1;r=n.exec(e.buffer);)i.push(r.index),s.push(r.index+r[0].length),e.position<=r.index&&o<0&&(o=s.length-2);o<0&&(o=s.length-1);var a,l,c="",p=Math.min(e.line+t.linesAfter,i.length).toString().length,u=t.maxLength-(t.indent+p+3);for(a=1;a<=t.linesBefore&&!(o-a<0);a++)l=my(e.buffer,s[o-a],i[o-a],e.position-(s[o]-s[o-a]),u),c=uy.repeat(" ",t.indent)+yy((e.line-a+1).toString(),p)+" | "+l.str+"\n"+c;for(l=my(e.buffer,s[o],i[o],e.position,u),c+=uy.repeat(" ",t.indent)+yy((e.line+1).toString(),p)+" | "+l.str+"\n",c+=uy.repeat("-",t.indent+p+3+l.pos)+"^\n",a=1;a<=t.linesAfter&&!(o+a>=i.length);a++)l=my(e.buffer,s[o+a],i[o+a],e.position-(s[o]-s[o+a]),u),c+=uy.repeat(" ",t.indent)+yy((e.line+a+1).toString(),p)+" | "+l.str+"\n";return c.replace(/\n$/,"")},vy=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],by=["scalar","sequence","mapping"],xy=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===vy.indexOf(t))throw new fy('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach((function(r){e[r].forEach((function(e){t[String(e)]=r}))})),t}(t.styleAliases||null),-1===by.indexOf(this.kind))throw new fy('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function wy(e,t){var r=[];return e[t].forEach((function(e){var t=r.length;r.forEach((function(r,n){r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi&&(t=n)})),r[t]=e})),r}function $y(e){return this.extend(e)}$y.prototype.extend=function(e){var t=[],r=[];if(e instanceof xy)r.push(e);else if(Array.isArray(e))r=r.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new fy("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit))}t.forEach((function(e){if(!(e instanceof xy))throw new fy("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new fy("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new fy("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),r.forEach((function(e){if(!(e instanceof xy))throw new fy("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var n=Object.create($y.prototype);return n.implicit=(this.implicit||[]).concat(t),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=wy(n,"implicit"),n.compiledExplicit=wy(n,"explicit"),n.compiledTypeMap=function(){var e,t,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function n(e){e.multi?(r.multi[e.kind].push(e),r.multi.fallback.push(e)):r[e.kind][e.tag]=r.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(n);return r}(n.compiledImplicit,n.compiledExplicit),n};var Sy=$y,Ey=new xy("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),ky=new xy("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),Oy=new xy("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}),jy=new Sy({explicit:[Ey,ky,Oy]}),Ay=new xy("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"}),Py=new xy("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function Ty(e){return 48<=e&&e<=55}function Cy(e){return 48<=e&&e<=57}var Iy=new xy("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=e.length,s=0,i=!1;if(!n)return!1;if("-"!==(t=e[s])&&"+"!==t||(t=e[++s]),"0"===t){if(s+1===n)return!0;if("b"===(t=e[++s])){for(s++;s<n;s++)if("_"!==(t=e[s])){if("0"!==t&&"1"!==t)return!1;i=!0}return i&&"_"!==t}if("x"===t){for(s++;s<n;s++)if("_"!==(t=e[s])){if(!(48<=(r=e.charCodeAt(s))&&r<=57||65<=r&&r<=70||97<=r&&r<=102))return!1;i=!0}return i&&"_"!==t}if("o"===t){for(s++;s<n;s++)if("_"!==(t=e[s])){if(!Ty(e.charCodeAt(s)))return!1;i=!0}return i&&"_"!==t}}if("_"===t)return!1;for(;s<n;s++)if("_"!==(t=e[s])){if(!Cy(e.charCodeAt(s)))return!1;i=!0}return!(!i||"_"===t)},construct:function(e){var t,r=e,n=1;if(-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),"-"!==(t=r[0])&&"+"!==t||("-"===t&&(n=-1),t=(r=r.slice(1))[0]),"0"===r)return 0;if("0"===t){if("b"===r[1])return n*parseInt(r.slice(2),2);if("x"===r[1])return n*parseInt(r.slice(2),16);if("o"===r[1])return n*parseInt(r.slice(2),8)}return n*parseInt(r,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!uy.isNegativeZero(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Ry=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),_y=/^[-+]?[0-9]+e/,Fy=new xy("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!Ry.test(e)||"_"===e[e.length-1])},construct:function(e){var t,r;return r="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:r*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||uy.isNegativeZero(e))},represent:function(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(uy.isNegativeZero(e))return"-0.0";return r=e.toString(10),_y.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"}),Dy=jy.extend({implicit:[Ay,Py,Iy,Fy]}),My=Dy,qy=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Ly=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"),By=new xy("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==qy.exec(e)||null!==Ly.exec(e))},construct:function(e){var t,r,n,s,i,o,a,l,c=0,p=null;if(null===(t=qy.exec(e))&&(t=Ly.exec(e)),null===t)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,s=+t[3],!t[4])return new Date(Date.UTC(r,n,s));if(i=+t[4],o=+t[5],a=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(p=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(p=-p)),l=new Date(Date.UTC(r,n,s,i,o,a,c)),p&&l.setTime(l.getTime()-p),l},instanceOf:Date,represent:function(e){return e.toISOString()}}),Ny=new xy("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),Uy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r",zy=new xy("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=0,s=e.length,i=Uy;for(r=0;r<s;r++)if(!((t=i.indexOf(e.charAt(r)))>64)){if(t<0)return!1;n+=6}return n%8==0},construct:function(e){var t,r,n=e.replace(/[\r\n=]/g,""),s=n.length,i=Uy,o=0,a=[];for(t=0;t<s;t++)t%4==0&&t&&(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)),o=o<<6|i.indexOf(n.charAt(t));return 0==(r=s%4*6)?(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)):18===r?(a.push(o>>10&255),a.push(o>>2&255)):12===r&&a.push(o>>4&255),new Uint8Array(a)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,r,n="",s=0,i=e.length,o=Uy;for(t=0;t<i;t++)t%3==0&&t&&(n+=o[s>>18&63],n+=o[s>>12&63],n+=o[s>>6&63],n+=o[63&s]),s=(s<<8)+e[t];return 0==(r=i%3)?(n+=o[s>>18&63],n+=o[s>>12&63],n+=o[s>>6&63],n+=o[63&s]):2===r?(n+=o[s>>10&63],n+=o[s>>4&63],n+=o[s<<2&63],n+=o[64]):1===r&&(n+=o[s>>2&63],n+=o[s<<4&63],n+=o[64],n+=o[64]),n}}),Hy=Object.prototype.hasOwnProperty,Vy=Object.prototype.toString,Wy=new xy("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,s,i,o=[],a=e;for(t=0,r=a.length;t<r;t+=1){if(n=a[t],i=!1,"[object Object]"!==Vy.call(n))return!1;for(s in n)if(Hy.call(n,s)){if(i)return!1;i=!0}if(!i)return!1;if(-1!==o.indexOf(s))return!1;o.push(s)}return!0},construct:function(e){return null!==e?e:[]}}),Gy=Object.prototype.toString,Jy=new xy("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,s,i,o=e;for(i=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(n=o[t],"[object Object]"!==Gy.call(n))return!1;if(1!==(s=Object.keys(n)).length)return!1;i[t]=[s[0],n[s[0]]]}return!0},construct:function(e){if(null===e)return[];var t,r,n,s,i,o=e;for(i=new Array(o.length),t=0,r=o.length;t<r;t+=1)n=o[t],s=Object.keys(n),i[t]=[s[0],n[s[0]]];return i}}),Ky=Object.prototype.hasOwnProperty,Yy=new xy("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,r=e;for(t in r)if(Ky.call(r,t)&&null!==r[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),Zy=My.extend({implicit:[By,Ny],explicit:[zy,Wy,Jy,Yy]}),Xy=Object.prototype.hasOwnProperty,Qy=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,eg=/[\x85\u2028\u2029]/,tg=/[,\[\]\{\}]/,rg=/^(?:!|!!|![a-z\-]+!)$/i,ng=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function sg(e){return Object.prototype.toString.call(e)}function ig(e){return 10===e||13===e}function og(e){return 9===e||32===e}function ag(e){return 9===e||32===e||10===e||13===e}function lg(e){return 44===e||91===e||93===e||123===e||125===e}function cg(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function pg(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"…":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function ug(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var dg=new Array(256),hg=new Array(256),fg=0;fg<256;fg++)dg[fg]=pg(fg)?1:0,hg[fg]=pg(fg);function mg(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Zy,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function yg(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=gy(r),new fy(t,r)}function gg(e,t){throw yg(e,t)}function vg(e,t){e.onWarning&&e.onWarning.call(null,yg(e,t))}var bg={YAML:function(e,t,r){var n,s,i;null!==e.version&&gg(e,"duplication of %YAML directive"),1!==r.length&&gg(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&gg(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),i=parseInt(n[2],10),1!==s&&gg(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&vg(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,s;2!==r.length&&gg(e,"TAG directive accepts exactly two arguments"),n=r[0],s=r[1],rg.test(n)||gg(e,"ill-formed tag handle (first argument) of the TAG directive"),Xy.call(e.tagMap,n)&&gg(e,'there is a previously declared suffix for "'+n+'" tag handle'),ng.test(s)||gg(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch(t){gg(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function xg(e,t,r,n){var s,i,o,a;if(t<r){if(a=e.input.slice(t,r),n)for(s=0,i=a.length;s<i;s+=1)9===(o=a.charCodeAt(s))||32<=o&&o<=1114111||gg(e,"expected valid JSON character");else Qy.test(a)&&gg(e,"the stream contains non-printable characters");e.result+=a}}function wg(e,t,r,n){var s,i,o,a;for(uy.isObject(r)||gg(e,"cannot merge mappings; the provided source object is unacceptable"),o=0,a=(s=Object.keys(r)).length;o<a;o+=1)i=s[o],Xy.call(t,i)||(t[i]=r[i],n[i]=!0)}function $g(e,t,r,n,s,i,o,a,l){var c,p;if(Array.isArray(s))for(c=0,p=(s=Array.prototype.slice.call(s)).length;c<p;c+=1)Array.isArray(s[c])&&gg(e,"nested arrays are not supported inside keys"),"object"==typeof s&&"[object Object]"===sg(s[c])&&(s[c]="[object Object]");if("object"==typeof s&&"[object Object]"===sg(s)&&(s="[object Object]"),s=String(s),null===t&&(t={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(i))for(c=0,p=i.length;c<p;c+=1)wg(e,t,i[c],r);else wg(e,t,i,r);else e.json||Xy.call(r,s)||!Xy.call(t,s)||(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=l||e.position,gg(e,"duplicated mapping key")),"__proto__"===s?Object.defineProperty(t,s,{configurable:!0,enumerable:!0,writable:!0,value:i}):t[s]=i,delete r[s];return t}function Sg(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):gg(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Eg(e,t,r){for(var n=0,s=e.input.charCodeAt(e.position);0!==s;){for(;og(s);)9===s&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),s=e.input.charCodeAt(++e.position);if(t&&35===s)do{s=e.input.charCodeAt(++e.position)}while(10!==s&&13!==s&&0!==s);if(!ig(s))break;for(Sg(e),s=e.input.charCodeAt(e.position),n++,e.lineIndent=0;32===s;)e.lineIndent++,s=e.input.charCodeAt(++e.position)}return-1!==r&&0!==n&&e.lineIndent<r&&vg(e,"deficient indentation"),n}function kg(e){var t,r=e.position;return!(45!==(t=e.input.charCodeAt(r))&&46!==t||t!==e.input.charCodeAt(r+1)||t!==e.input.charCodeAt(r+2)||(r+=3,0!==(t=e.input.charCodeAt(r))&&!ag(t)))}function Og(e,t){1===t?e.result+=" ":t>1&&(e.result+=uy.repeat("\n",t-1))}function jg(e,t){var r,n,s=e.tag,i=e.anchor,o=[],a=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),n=e.input.charCodeAt(e.position);0!==n&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,gg(e,"tab characters must not be used in indentation")),45===n)&&ag(e.input.charCodeAt(e.position+1));)if(a=!0,e.position++,Eg(e,!0,-1)&&e.lineIndent<=t)o.push(null),n=e.input.charCodeAt(e.position);else if(r=e.line,Tg(e,t,3,!1,!0),o.push(e.result),Eg(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)gg(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!a&&(e.tag=s,e.anchor=i,e.kind="sequence",e.result=o,!0)}function Ag(e){var t,r,n,s,i=!1,o=!1;if(33!==(s=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&gg(e,"duplication of a tag property"),60===(s=e.input.charCodeAt(++e.position))?(i=!0,s=e.input.charCodeAt(++e.position)):33===s?(o=!0,r="!!",s=e.input.charCodeAt(++e.position)):r="!",t=e.position,i){do{s=e.input.charCodeAt(++e.position)}while(0!==s&&62!==s);e.position<e.length?(n=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):gg(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==s&&!ag(s);)33===s&&(o?gg(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),rg.test(r)||gg(e,"named tag handle cannot contain such characters"),o=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);n=e.input.slice(t,e.position),tg.test(n)&&gg(e,"tag suffix cannot contain flow indicator characters")}n&&!ng.test(n)&&gg(e,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch(t){gg(e,"tag name is malformed: "+n)}return i?e.tag=n:Xy.call(e.tagMap,r)?e.tag=e.tagMap[r]+n:"!"===r?e.tag="!"+n:"!!"===r?e.tag="tag:yaml.org,2002:"+n:gg(e,'undeclared tag handle "'+r+'"'),!0}function Pg(e){var t,r;if(38!==(r=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&gg(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!ag(r)&&!lg(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&gg(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function Tg(e,t,r,n,s){var i,o,a,l,c,p,u,d,h,f=1,m=!1,y=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=o=a=4===r||3===r,n&&Eg(e,!0,-1)&&(m=!0,e.lineIndent>t?f=1:e.lineIndent===t?f=0:e.lineIndent<t&&(f=-1)),1===f)for(;Ag(e)||Pg(e);)Eg(e,!0,-1)?(m=!0,a=i,e.lineIndent>t?f=1:e.lineIndent===t?f=0:e.lineIndent<t&&(f=-1)):a=!1;if(a&&(a=m||s),1!==f&&4!==r||(d=1===r||2===r?t:t+1,h=e.position-e.lineStart,1===f?a&&(jg(e,h)||function(e,t,r){var n,s,i,o,a,l,c,p=e.tag,u=e.anchor,d={},h=Object.create(null),f=null,m=null,y=null,g=!1,v=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=d),c=e.input.charCodeAt(e.position);0!==c;){if(g||-1===e.firstTabInLine||(e.position=e.firstTabInLine,gg(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),i=e.line,63!==c&&58!==c||!ag(n)){if(o=e.line,a=e.lineStart,l=e.position,!Tg(e,r,2,!1,!0))break;if(e.line===i){for(c=e.input.charCodeAt(e.position);og(c);)c=e.input.charCodeAt(++e.position);if(58===c)ag(c=e.input.charCodeAt(++e.position))||gg(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&($g(e,d,h,f,m,null,o,a,l),f=m=y=null),v=!0,g=!1,s=!1,f=e.tag,m=e.result;else{if(!v)return e.tag=p,e.anchor=u,!0;gg(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!v)return e.tag=p,e.anchor=u,!0;gg(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===c?(g&&($g(e,d,h,f,m,null,o,a,l),f=m=y=null),v=!0,g=!0,s=!0):g?(g=!1,s=!0):gg(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,c=n;if((e.line===i||e.lineIndent>t)&&(g&&(o=e.line,a=e.lineStart,l=e.position),Tg(e,t,4,!0,s)&&(g?m=e.result:y=e.result),g||($g(e,d,h,f,m,y,o,a,l),f=m=y=null),Eg(e,!0,-1),c=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==c)gg(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return g&&$g(e,d,h,f,m,null,o,a,l),v&&(e.tag=p,e.anchor=u,e.kind="mapping",e.result=d),v}(e,h,d))||function(e,t){var r,n,s,i,o,a,l,c,p,u,d,h,f=!0,m=e.tag,y=e.anchor,g=Object.create(null);if(91===(h=e.input.charCodeAt(e.position)))o=93,c=!1,i=[];else{if(123!==h)return!1;o=125,c=!0,i={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),h=e.input.charCodeAt(++e.position);0!==h;){if(Eg(e,!0,t),(h=e.input.charCodeAt(e.position))===o)return e.position++,e.tag=m,e.anchor=y,e.kind=c?"mapping":"sequence",e.result=i,!0;f?44===h&&gg(e,"expected the node content, but found ','"):gg(e,"missed comma between flow collection entries"),d=null,a=l=!1,63===h&&ag(e.input.charCodeAt(e.position+1))&&(a=l=!0,e.position++,Eg(e,!0,t)),r=e.line,n=e.lineStart,s=e.position,Tg(e,t,1,!1,!0),u=e.tag,p=e.result,Eg(e,!0,t),h=e.input.charCodeAt(e.position),!l&&e.line!==r||58!==h||(a=!0,h=e.input.charCodeAt(++e.position),Eg(e,!0,t),Tg(e,t,1,!1,!0),d=e.result),c?$g(e,i,g,u,p,d,r,n,s):a?i.push($g(e,null,g,u,p,d,r,n,s)):i.push(p),Eg(e,!0,t),44===(h=e.input.charCodeAt(e.position))?(f=!0,h=e.input.charCodeAt(++e.position)):f=!1}gg(e,"unexpected end of the stream within a flow collection")}(e,d)?y=!0:(o&&function(e,t){var r,n,s,i,o,a=1,l=!1,c=!1,p=t,u=0,d=!1;if(124===(i=e.input.charCodeAt(e.position)))n=!1;else{if(62!==i)return!1;n=!0}for(e.kind="scalar",e.result="";0!==i;)if(43===(i=e.input.charCodeAt(++e.position))||45===i)1===a?a=43===i?3:2:gg(e,"repeat of a chomping mode identifier");else{if(!((s=48<=(o=i)&&o<=57?o-48:-1)>=0))break;0===s?gg(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?gg(e,"repeat of an indentation width identifier"):(p=t+s-1,c=!0)}if(og(i)){do{i=e.input.charCodeAt(++e.position)}while(og(i));if(35===i)do{i=e.input.charCodeAt(++e.position)}while(!ig(i)&&0!==i)}for(;0!==i;){for(Sg(e),e.lineIndent=0,i=e.input.charCodeAt(e.position);(!c||e.lineIndent<p)&&32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position);if(!c&&e.lineIndent>p&&(p=e.lineIndent),ig(i))u++;else{if(e.lineIndent<p){3===a?e.result+=uy.repeat("\n",l?1+u:u):1===a&&l&&(e.result+="\n");break}for(n?og(i)?(d=!0,e.result+=uy.repeat("\n",l?1+u:u)):d?(d=!1,e.result+=uy.repeat("\n",u+1)):0===u?l&&(e.result+=" "):e.result+=uy.repeat("\n",u):e.result+=uy.repeat("\n",l?1+u:u),l=!0,c=!0,u=0,r=e.position;!ig(i)&&0!==i;)i=e.input.charCodeAt(++e.position);xg(e,r,e.position,!1)}}return!0}(e,d)||function(e,t){var r,n,s;if(39!==(r=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=s=e.position;0!==(r=e.input.charCodeAt(e.position));)if(39===r){if(xg(e,n,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;n=e.position,e.position++,s=e.position}else ig(r)?(xg(e,n,s,!0),Og(e,Eg(e,!1,t)),n=s=e.position):e.position===e.lineStart&&kg(e)?gg(e,"unexpected end of the document within a single quoted scalar"):(e.position++,s=e.position);gg(e,"unexpected end of the stream within a single quoted scalar")}(e,d)||function(e,t){var r,n,s,i,o,a,l;if(34!==(a=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;0!==(a=e.input.charCodeAt(e.position));){if(34===a)return xg(e,r,e.position,!0),e.position++,!0;if(92===a){if(xg(e,r,e.position,!0),ig(a=e.input.charCodeAt(++e.position)))Eg(e,!1,t);else if(a<256&&dg[a])e.result+=hg[a],e.position++;else if((o=120===(l=a)?2:117===l?4:85===l?8:0)>0){for(s=o,i=0;s>0;s--)(o=cg(a=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+o:gg(e,"expected hexadecimal character");e.result+=ug(i),e.position++}else gg(e,"unknown escape sequence");r=n=e.position}else ig(a)?(xg(e,r,n,!0),Og(e,Eg(e,!1,t)),r=n=e.position):e.position===e.lineStart&&kg(e)?gg(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}gg(e,"unexpected end of the stream within a double quoted scalar")}(e,d)?y=!0:function(e){var t,r,n;if(42!==(n=e.input.charCodeAt(e.position)))return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!ag(n)&&!lg(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&gg(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Xy.call(e.anchorMap,r)||gg(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Eg(e,!0,-1),!0}(e)?(y=!0,null===e.tag&&null===e.anchor||gg(e,"alias node should not have any properties")):function(e,t,r){var n,s,i,o,a,l,c,p,u=e.kind,d=e.result;if(ag(p=e.input.charCodeAt(e.position))||lg(p)||35===p||38===p||42===p||33===p||124===p||62===p||39===p||34===p||37===p||64===p||96===p)return!1;if((63===p||45===p)&&(ag(n=e.input.charCodeAt(e.position+1))||r&&lg(n)))return!1;for(e.kind="scalar",e.result="",s=i=e.position,o=!1;0!==p;){if(58===p){if(ag(n=e.input.charCodeAt(e.position+1))||r&&lg(n))break}else if(35===p){if(ag(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&kg(e)||r&&lg(p))break;if(ig(p)){if(a=e.line,l=e.lineStart,c=e.lineIndent,Eg(e,!1,-1),e.lineIndent>=t){o=!0,p=e.input.charCodeAt(e.position);continue}e.position=i,e.line=a,e.lineStart=l,e.lineIndent=c;break}}o&&(xg(e,s,i,!1),Og(e,e.line-a),s=i=e.position,o=!1),og(p)||(i=e.position+1),p=e.input.charCodeAt(++e.position)}return xg(e,s,i,!1),!!e.result||(e.kind=u,e.result=d,!1)}(e,d,1===r)&&(y=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===f&&(y=a&&jg(e,h))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&gg(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,c=e.implicitTypes.length;l<c;l+=1)if((u=e.implicitTypes[l]).resolve(e.result)){e.result=u.construct(e.result),e.tag=u.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(Xy.call(e.typeMap[e.kind||"fallback"],e.tag))u=e.typeMap[e.kind||"fallback"][e.tag];else for(u=null,l=0,c=(p=e.typeMap.multi[e.kind||"fallback"]).length;l<c;l+=1)if(e.tag.slice(0,p[l].tag.length)===p[l].tag){u=p[l];break}u||gg(e,"unknown tag !<"+e.tag+">"),null!==e.result&&u.kind!==e.kind&&gg(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+u.kind+'", not "'+e.kind+'"'),u.resolve(e.result,e.tag)?(e.result=u.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):gg(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||y}function Cg(e){var t,r,n,s,i=e.position,o=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(s=e.input.charCodeAt(e.position))&&(Eg(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==s));){for(o=!0,s=e.input.charCodeAt(++e.position),t=e.position;0!==s&&!ag(s);)s=e.input.charCodeAt(++e.position);for(n=[],(r=e.input.slice(t,e.position)).length<1&&gg(e,"directive name must not be less than one character in length");0!==s;){for(;og(s);)s=e.input.charCodeAt(++e.position);if(35===s){do{s=e.input.charCodeAt(++e.position)}while(0!==s&&!ig(s));break}if(ig(s))break;for(t=e.position;0!==s&&!ag(s);)s=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==s&&Sg(e),Xy.call(bg,r)?bg[r](e,r,n):vg(e,'unknown document directive "'+r+'"')}Eg(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,Eg(e,!0,-1)):o&&gg(e,"directives end mark is expected"),Tg(e,e.lineIndent-1,4,!1,!0),Eg(e,!0,-1),e.checkLineBreaks&&eg.test(e.input.slice(i,e.position))&&vg(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&kg(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,Eg(e,!0,-1)):e.position<e.length-1&&gg(e,"end of the stream or a document separator is expected")}function Ig(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var r=new mg(e,t),n=e.indexOf("\0");for(-1!==n&&(r.position=n,gg(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)Cg(r);return r.documents}var Rg=function(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);var n=Ig(e,r);if("function"!=typeof t)return n;for(var s=0,i=n.length;s<i;s+=1)t(n[s])},_g=function(e,t){var r=Ig(e,t);if(0!==r.length){if(1===r.length)return r[0];throw new fy("expected a single document in the stream, but found more")}},Fg=Object.prototype.toString,Dg=Object.prototype.hasOwnProperty,Mg={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},qg=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Lg=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Bg(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else{if(!(e<=4294967295))throw new fy("code point within a string may not be greater than 0xFFFFFFFF");r="U",n=8}return"\\"+r+uy.repeat("0",n-t.length)+t}function Ng(e){this.schema=e.schema||Zy,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=uy.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var r,n,s,i,o,a,l;if(null===t)return{};for(r={},s=0,i=(n=Object.keys(t)).length;s<i;s+=1)o=n[s],a=String(t[o]),"!!"===o.slice(0,2)&&(o="tag:yaml.org,2002:"+o.slice(2)),(l=e.compiledTypeMap.fallback[o])&&Dg.call(l.styleAliases,a)&&(a=l.styleAliases[a]),r[o]=a;return r}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?2:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Ug(e,t){for(var r,n=uy.repeat(" ",t),s=0,i=-1,o="",a=e.length;s<a;)-1===(i=e.indexOf("\n",s))?(r=e.slice(s),s=a):(r=e.slice(s,i+1),s=i+1),r.length&&"\n"!==r&&(o+=n),o+=r;return o}function zg(e,t){return"\n"+uy.repeat(" ",e.indent*t)}function Hg(e){return 32===e||9===e}function Vg(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&65279!==e||65536<=e&&e<=1114111}function Wg(e){return Vg(e)&&65279!==e&&13!==e&&10!==e}function Gg(e,t,r){var n=Wg(e),s=n&&!Hg(e);return(r?n:n&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!s)||Wg(t)&&!Hg(t)&&35===e||58===t&&s}function Jg(e,t){var r,n=e.charCodeAt(t);return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1))>=56320&&r<=57343?1024*(n-55296)+r-56320+65536:n}function Kg(e){return/^\n* /.test(e)}function Yg(e,t,r,n,s){e.dump=function(){if(0===t.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==qg.indexOf(t)||Lg.test(t)))return 2===e.quotingType?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,r),o=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),a=n||e.flowLevel>-1&&r>=e.flowLevel;switch(function(e,t,r,n,s,i,o,a){var l,c,p=0,u=null,d=!1,h=!1,f=-1!==n,m=-1,y=Vg(c=Jg(e,0))&&65279!==c&&!Hg(c)&&45!==c&&63!==c&&58!==c&&44!==c&&91!==c&&93!==c&&123!==c&&125!==c&&35!==c&&38!==c&&42!==c&&33!==c&&124!==c&&61!==c&&62!==c&&39!==c&&34!==c&&37!==c&&64!==c&&96!==c&&function(e){return!Hg(e)&&58!==e}(Jg(e,e.length-1));if(t||o)for(l=0;l<e.length;p>=65536?l+=2:l++){if(!Vg(p=Jg(e,l)))return 5;y=y&&Gg(p,u,a),u=p}else{for(l=0;l<e.length;p>=65536?l+=2:l++){if(10===(p=Jg(e,l)))d=!0,f&&(h=h||l-m-1>n&&" "!==e[m+1],m=l);else if(!Vg(p))return 5;y=y&&Gg(p,u,a),u=p}h=h||f&&l-m-1>n&&" "!==e[m+1]}return d||h?r>9&&Kg(e)?5:o?2===i?5:2:h?4:3:!y||o||s(e)?2===i?5:2:1}(t,a,e.indent,o,(function(t){return function(e,t){var r,n;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(e.implicitTypes[r].resolve(t))return!0;return!1}(e,t)}),e.quotingType,e.forceQuotes&&!n,s)){case 1:return t;case 2:return"'"+t.replace(/'/g,"''")+"'";case 3:return"|"+Zg(t,e.indent)+Xg(Ug(t,i));case 4:return">"+Zg(t,e.indent)+Xg(Ug(function(e,t){for(var r,n,s,i=/(\n+)([^\n]*)/g,o=(s=-1!==(s=e.indexOf("\n"))?s:e.length,i.lastIndex=s,Qg(e.slice(0,s),t)),a="\n"===e[0]||" "===e[0];n=i.exec(e);){var l=n[1],c=n[2];r=" "===c[0],o+=l+(a||r||""===c?"":"\n")+Qg(c,t),a=r}return o}(t,o),i));case 5:return'"'+function(e){for(var t,r="",n=0,s=0;s<e.length;n>=65536?s+=2:s++)n=Jg(e,s),!(t=Mg[n])&&Vg(n)?(r+=e[s],n>=65536&&(r+=e[s+1])):r+=t||Bg(n);return r}(t)+'"';default:throw new fy("impossible error: invalid scalar style")}}()}function Zg(e,t){var r=Kg(e)?String(t):"",n="\n"===e[e.length-1];return r+(!n||"\n"!==e[e.length-2]&&"\n"!==e?n?"":"-":"+")+"\n"}function Xg(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function Qg(e,t){if(""===e||" "===e[0])return e;for(var r,n,s=/ [^ ]/g,i=0,o=0,a=0,l="";r=s.exec(e);)(a=r.index)-i>t&&(n=o>i?o:a,l+="\n"+e.slice(i,n),i=n+1),o=a;return l+="\n",e.length-i>t&&o>i?l+=e.slice(i,o)+"\n"+e.slice(o+1):l+=e.slice(i),l.slice(1)}function ev(e,t,r,n){var s,i,o,a="",l=e.tag;for(s=0,i=r.length;s<i;s+=1)o=r[s],e.replacer&&(o=e.replacer.call(r,String(s),o)),(rv(e,t+1,o,!0,!0,!1,!0)||void 0===o&&rv(e,t+1,null,!0,!0,!1,!0))&&(n&&""===a||(a+=zg(e,t)),e.dump&&10===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=l,e.dump=a||"[]"}function tv(e,t,r){var n,s,i,o,a,l;for(i=0,o=(s=r?e.explicitTypes:e.implicitTypes).length;i<o;i+=1)if(((a=s[i]).instanceOf||a.predicate)&&(!a.instanceOf||"object"==typeof t&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(r?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){if(l=e.styleMap[a.tag]||a.defaultStyle,"[object Function]"===Fg.call(a.represent))n=a.represent(t,l);else{if(!Dg.call(a.represent,l))throw new fy("!<"+a.tag+'> tag resolver accepts not "'+l+'" style');n=a.represent[l](t,l)}e.dump=n}return!0}return!1}function rv(e,t,r,n,s,i,o){e.tag=null,e.dump=r,tv(e,r,!1)||tv(e,r,!0);var a,l=Fg.call(e.dump),c=n;n&&(n=e.flowLevel<0||e.flowLevel>t);var p,u,d="[object Object]"===l||"[object Array]"===l;if(d&&(u=-1!==(p=e.duplicates.indexOf(r))),(null!==e.tag&&"?"!==e.tag||u||2!==e.indent&&t>0)&&(s=!1),u&&e.usedDuplicates[p])e.dump="*ref_"+p;else{if(d&&u&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),"[object Object]"===l)n&&0!==Object.keys(e.dump).length?(function(e,t,r,n){var s,i,o,a,l,c,p="",u=e.tag,d=Object.keys(r);if(!0===e.sortKeys)d.sort();else if("function"==typeof e.sortKeys)d.sort(e.sortKeys);else if(e.sortKeys)throw new fy("sortKeys must be a boolean or a function");for(s=0,i=d.length;s<i;s+=1)c="",n&&""===p||(c+=zg(e,t)),a=r[o=d[s]],e.replacer&&(a=e.replacer.call(r,o,a)),rv(e,t+1,o,!0,!0,!0)&&((l=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&10===e.dump.charCodeAt(0)?c+="?":c+="? "),c+=e.dump,l&&(c+=zg(e,t)),rv(e,t+1,a,!0,l)&&(e.dump&&10===e.dump.charCodeAt(0)?c+=":":c+=": ",p+=c+=e.dump));e.tag=u,e.dump=p||"{}"}(e,t,e.dump,s),u&&(e.dump="&ref_"+p+e.dump)):(function(e,t,r){var n,s,i,o,a,l="",c=e.tag,p=Object.keys(r);for(n=0,s=p.length;n<s;n+=1)a="",""!==l&&(a+=", "),e.condenseFlow&&(a+='"'),o=r[i=p[n]],e.replacer&&(o=e.replacer.call(r,i,o)),rv(e,t,i,!1,!1)&&(e.dump.length>1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),rv(e,t,o,!1,!1)&&(l+=a+=e.dump));e.tag=c,e.dump="{"+l+"}"}(e,t,e.dump),u&&(e.dump="&ref_"+p+" "+e.dump));else if("[object Array]"===l)n&&0!==e.dump.length?(e.noArrayIndent&&!o&&t>0?ev(e,t-1,e.dump,s):ev(e,t,e.dump,s),u&&(e.dump="&ref_"+p+e.dump)):(function(e,t,r){var n,s,i,o="",a=e.tag;for(n=0,s=r.length;n<s;n+=1)i=r[n],e.replacer&&(i=e.replacer.call(r,String(n),i)),(rv(e,t,i,!1,!1)||void 0===i&&rv(e,t,null,!1,!1))&&(""!==o&&(o+=","+(e.condenseFlow?"":" ")),o+=e.dump);e.tag=a,e.dump="["+o+"]"}(e,t,e.dump),u&&(e.dump="&ref_"+p+" "+e.dump));else{if("[object String]"!==l){if("[object Undefined]"===l)return!1;if(e.skipInvalid)return!1;throw new fy("unacceptable kind of an object to dump "+l)}"?"!==e.tag&&Yg(e,e.dump,t,i,c)}null!==e.tag&&"?"!==e.tag&&(a=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),a="!"===e.tag[0]?"!"+a:"tag:yaml.org,2002:"===a.slice(0,18)?"!!"+a.slice(18):"!<"+a+">",e.dump=a+" "+e.dump)}return!0}function nv(e,t){var r,n,s=[],i=[];for(sv(e,s,i),r=0,n=i.length;r<n;r+=1)t.duplicates.push(s[i[r]]);t.usedDuplicates=new Array(n)}function sv(e,t,r){var n,s,i;if(null!==e&&"object"==typeof e)if(-1!==(s=t.indexOf(e)))-1===r.indexOf(s)&&r.push(s);else if(t.push(e),Array.isArray(e))for(s=0,i=e.length;s<i;s+=1)sv(e[s],t,r);else for(s=0,i=(n=Object.keys(e)).length;s<i;s+=1)sv(e[n[s]],t,r)}function iv(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var ov=xy,av=Sy,lv=jy,cv=Dy,pv=My,uv=Zy,dv=_g,hv=Rg,fv=function(e,t){var r=new Ng(t=t||{});r.noRefs||nv(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),rv(r,0,n,!0,!0)?r.dump+"\n":""},mv=fy,yv={binary:zy,float:Fy,map:Oy,null:Ay,pairs:Jy,set:Yy,timestamp:By,bool:Py,int:Iy,merge:Ny,omap:Wy,seq:ky,str:Ey},gv=iv("safeLoad","load"),vv=iv("safeLoadAll","loadAll"),bv=iv("safeDump","dump"),xv={Type:ov,Schema:av,FAILSAFE_SCHEMA:lv,JSON_SCHEMA:cv,CORE_SCHEMA:pv,DEFAULT_SCHEMA:uv,load:dv,loadAll:hv,dump:fv,YAMLException:mv,types:yv,safeLoad:gv,safeLoadAll:vv,safeDump:bv};const wv="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,{FormData:$v,Blob:Sv,File:Ev}=wv,kv=e=>":/?#[]@!$&'()*+,;=".indexOf(e)>-1,Ov=e=>/^[a-z0-9\-._~]+$/i.test(e);function jv(e){let{escape:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return"number"==typeof e&&(e=e.toString()),"string"==typeof e&&e.length&&t?r?JSON.parse(e):[...e].map((e=>{if(Ov(e))return e;if(kv(e)&&"unsafe"===t)return e;const r=new TextEncoder;return Array.from(r.encode(e)).map((e=>`0${e.toString(16).toUpperCase()}`.slice(-2))).map((e=>`%${e}`)).join("")})).join(""):e}function Av(e){const{value:t}=e;return Array.isArray(t)?function(e){let{key:t,value:r,style:n,explode:s,escape:i}=e;const o=e=>jv(e,{escape:i});if("simple"===n)return r.map((e=>o(e))).join(",");if("label"===n)return`.${r.map((e=>o(e))).join(".")}`;if("matrix"===n)return r.map((e=>o(e))).reduce(((e,r)=>!e||s?`${e||""};${t}=${r}`:`${e},${r}`),"");if("form"===n){const e=s?`&${t}=`:",";return r.map((e=>o(e))).join(e)}if("spaceDelimited"===n){const e=s?`${t}=`:"";return r.map((e=>o(e))).join(` ${e}`)}if("pipeDelimited"===n){const e=s?`${t}=`:"";return r.map((e=>o(e))).join(`|${e}`)}}(e):"object"==typeof t?function(e){let{key:t,value:r,style:n,explode:s,escape:i}=e;const o=e=>jv(e,{escape:i}),a=Object.keys(r);return"simple"===n?a.reduce(((e,t)=>{const n=o(r[t]);return`${e?`${e},`:""}${t}${s?"=":","}${n}`}),""):"label"===n?a.reduce(((e,t)=>{const n=o(r[t]);return`${e?`${e}.`:"."}${t}${s?"=":"."}${n}`}),""):"matrix"===n&&s?a.reduce(((e,t)=>`${e?`${e};`:";"}${t}=${o(r[t])}`),""):"matrix"===n?a.reduce(((e,n)=>{const s=o(r[n]);return`${e?`${e},`:`;${t}=`}${n},${s}`}),""):"form"===n?a.reduce(((e,t)=>{const n=o(r[t]);return`${e?`${e}${s?"&":","}`:""}${t}${s?"=":","}${n}`}),""):void 0}(e):function(e){let{key:t,value:r,style:n,escape:s}=e;const i=e=>jv(e,{escape:s});return"simple"===n?i(r):"label"===n?`.${i(r)}`:"matrix"===n?`;${t}=${i(r)}`:"form"===n||"deepObject"===n?i(r):void 0}(e)}const Pv=(e,t)=>{t.body=e},Tv={serializeRes:Rv,mergeInQueryOrForm:Uv};async function Cv(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"object"==typeof e&&(t=e,e=t.url),t.headers=t.headers||{},Tv.mergeInQueryOrForm(t),t.headers&&Object.keys(t.headers).forEach((e=>{const r=t.headers[e];"string"==typeof r&&(t.headers[e]=r.replace(/\n+/g," "))})),t.requestInterceptor&&(t=await t.requestInterceptor(t)||t);const r=t.headers["content-type"]||t.headers["Content-Type"];let n;/multipart\/form-data/i.test(r)&&t.body instanceof $v&&(delete t.headers["content-type"],delete t.headers["Content-Type"]);try{n=await(t.userFetch||fetch)(t.url,t),n=await Tv.serializeRes(n,e,t),t.responseInterceptor&&(n=await t.responseInterceptor(n)||n)}catch(e){if(!n)throw e;const t=new Error(n.statusText||`response status is ${n.status}`);throw t.status=n.status,t.statusCode=n.status,t.responseError=e,t}if(!n.ok){const e=new Error(n.statusText||`response status is ${n.status}`);throw e.status=n.status,e.statusCode=n.status,e.response=n,e}return n}const Iv=function(){return/(json|xml|yaml|text)\b/.test(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")};function Rv(e,t){let{loadSpec:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:_v(e.headers)},s=n.headers["content-type"],i=r||Iv(s);return(i?e.text:e.blob||e.buffer).call(e).then((e=>{if(n.text=e,n.data=e,i)try{const t=function(e,t){return t&&(0===t.indexOf("application/json")||t.indexOf("+json")>0)?JSON.parse(e):xv.load(e)}(e,s);n.body=t,n.obj=t}catch(e){n.parseError=e}return n}))}function _v(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"function"!=typeof e.entries?{}:Array.from(e.entries()).reduce(((e,t)=>{let[r,n]=t;return e[r]=function(e){return e.includes(", ")?e.split(", "):e}(n),e}),{})}function Fv(e,t){return t||"undefined"==typeof navigator||(t=navigator),t&&"ReactNative"===t.product?!(!e||"object"!=typeof e||"string"!=typeof e.uri):void 0!==Ev&&e instanceof Ev||void 0!==Sv&&e instanceof Sv||!!ArrayBuffer.isView(e)||null!==e&&"object"==typeof e&&"function"==typeof e.pipe}function Dv(e,t){return Array.isArray(e)&&e.some((e=>Fv(e,t)))}const Mv={form:",",spaceDelimited:"%20",pipeDelimited:"|"},qv={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function Lv(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{collectionFormat:n,allowEmptyValue:s,serializationOption:i,encoding:o}=t,a="object"!=typeof t||Array.isArray(t)?t:t.value,l=r?e=>e.toString():e=>encodeURIComponent(e),c=l(e);if(void 0===a&&s)return[[c,""]];if(Fv(a)||Dv(a))return[[c,a]];if(i)return Bv(e,a,r,i);if(o){if([typeof o.style,typeof o.explode,typeof o.allowReserved].some((e=>"undefined"!==e))){const{style:t,explode:n,allowReserved:s}=o;return Bv(e,a,r,{style:t,explode:n,allowReserved:s})}return o.contentType?"application/json"===o.contentType?[[c,l("string"==typeof a?a:JSON.stringify(a))]]:[[c,l(a.toString())]]:"object"!=typeof a?[[c,l(a)]]:Array.isArray(a)&&a.every((e=>"object"!=typeof e))?[[c,a.map(l).join(",")]]:[[c,l(JSON.stringify(a))]]}return"object"!=typeof a?[[c,l(a)]]:Array.isArray(a)?"multi"===n?[[c,a.map(l)]]:[[c,a.map(l).join(qv[n||"csv"])]]:[[c,""]]}function Bv(e,t,r,n){const s=n.style||"form",i=void 0===n.explode?"form"===s:n.explode,o=!r&&(n&&n.allowReserved?"unsafe":"reserved"),a=e=>jv(e,{escape:o}),l=r?e=>e:e=>jv(e,{escape:o});return"object"!=typeof t?[[l(e),a(t)]]:Array.isArray(t)?i?[[l(e),t.map(a)]]:[[l(e),t.map(a).join(Mv[s])]]:"deepObject"===s?Object.keys(t).map((r=>[l(`${e}[${r}]`),a(t[r])])):i?Object.keys(t).map((e=>[l(e),a(t[e])])):[[l(e),Object.keys(t).map((e=>[`${l(e)},${a(t[e])}`])).join(",")]]}function Nv(e){const t=Object.keys(e).reduce(((t,r)=>{for(const[n,s]of Lv(r,e[r]))t[n]=s;return t}),{});return cy.stringify(t,{encode:!1,indices:!1})||""}function Uv(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{url:t="",query:r,form:n}=e;if(n){const t=Object.keys(n).some((e=>{const{value:t}=n[e];return Fv(t)||Dv(t)})),r=e.headers["content-type"]||e.headers["Content-Type"];if(t||/multipart\/form-data/i.test(r)){const t=function(e){return Object.entries(e).reduce(((e,t)=>{let[r,n]=t;for(const[t,s]of Lv(r,n,!0))if(Array.isArray(s))for(const r of s)if(ArrayBuffer.isView(r)){const n=new Sv([r]);e.append(t,n)}else e.append(t,r);else if(ArrayBuffer.isView(s)){const r=new Sv([s]);e.append(t,r)}else e.append(t,s);return e}),new $v)}(e.form);Pv(t,e)}else e.body=Nv(n);delete e.form}if(r){const[n,s]=t.split("?");let i="";if(s){const e=cy.parse(s);Object.keys(r).forEach((t=>delete e[t])),i=cy.stringify(e,{encode:!0})}const o=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const n=t.filter((e=>e)).join("&");return n?`?${n}`:""}(i,Nv(r));e.url=n+o,delete e.query}return e}function zv(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{requestInterceptor:r,responseInterceptor:n}=t,s=e.withCredentials?"include":"same-origin";return t=>e({url:t,loadSpec:!0,requestInterceptor:r,responseInterceptor:n,headers:{Accept:"application/json, application/yaml"},credentials:s}).then((e=>e.body))}const Hv=e=>{const{baseDoc:t,url:r}=e;return t||r||""},Vv=e=>{const{fetch:t,http:r}=e;return t||r||Cv};var Wv,Gv=globalThis&&globalThis.__extends||(Wv=function(e,t){return Wv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},Wv(e,t)},function(e,t){function r(){this.constructor=e}Wv(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),Jv=Object.prototype.hasOwnProperty;function Kv(e,t){return Jv.call(e,t)}function Yv(e){if(Array.isArray(e)){for(var t=new Array(e.length),r=0;r<t.length;r++)t[r]=""+r;return t}if(Object.keys)return Object.keys(e);var n=[];for(var s in e)Kv(e,s)&&n.push(s);return n}function Zv(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function Xv(e){for(var t,r=0,n=e.length;r<n;){if(!((t=e.charCodeAt(r))>=48&&t<=57))return!1;r++}return!0}function Qv(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function eb(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function tb(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,r=e.length;t<r;t++)if(tb(e[t]))return!0}else if("object"==typeof e)for(var n=Yv(e),s=n.length,i=0;i<s;i++)if(tb(e[n[i]]))return!0;return!1}function rb(e,t){var r=[e];for(var n in t){var s="object"==typeof t[n]?JSON.stringify(t[n],null,2):t[n];void 0!==s&&r.push(n+": "+s)}return r.join("\n")}var nb=function(e){function t(t,r,n,s,i){var o=this.constructor,a=e.call(this,rb(t,{name:r,index:n,operation:s,tree:i}))||this;return a.name=r,a.index=n,a.operation=s,a.tree=i,Object.setPrototypeOf(a,o.prototype),a.message=rb(t,{name:r,index:n,operation:s,tree:i}),a}return Gv(t,e),t}(Error),sb=nb,ib=Zv,ob={add:function(e,t,r){return e[t]=this.value,{newDocument:r}},remove:function(e,t,r){var n=e[t];return delete e[t],{newDocument:r,removed:n}},replace:function(e,t,r){var n=e[t];return e[t]=this.value,{newDocument:r,removed:n}},move:function(e,t,r){var n=lb(r,this.path);n&&(n=Zv(n));var s=cb(r,{op:"remove",path:this.from}).removed;return cb(r,{op:"add",path:this.path,value:s}),{newDocument:r,removed:n}},copy:function(e,t,r){var n=lb(r,this.from);return cb(r,{op:"add",path:this.path,value:Zv(n)}),{newDocument:r}},test:function(e,t,r){return{newDocument:r,test:hb(e[t],this.value)}},_get:function(e,t,r){return this.value=e[t],{newDocument:r}}},ab={add:function(e,t,r){return Xv(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:r,index:t}},remove:function(e,t,r){return{newDocument:r,removed:e.splice(t,1)[0]}},replace:function(e,t,r){var n=e[t];return e[t]=this.value,{newDocument:r,removed:n}},move:ob.move,copy:ob.copy,test:ob.test,_get:ob._get};function lb(e,t){if(""==t)return e;var r={op:"_get",path:t};return cb(e,r),r.value}function cb(e,t,r,n,s,i){if(void 0===r&&(r=!1),void 0===n&&(n=!0),void 0===s&&(s=!0),void 0===i&&(i=0),r&&("function"==typeof r?r(t,0,e,t.path):ub(t,0)),""===t.path){var o={newDocument:e};if("add"===t.op)return o.newDocument=t.value,o;if("replace"===t.op)return o.newDocument=t.value,o.removed=e,o;if("move"===t.op||"copy"===t.op)return o.newDocument=lb(e,t.from),"move"===t.op&&(o.removed=e),o;if("test"===t.op){if(o.test=hb(e,t.value),!1===o.test)throw new sb("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o.newDocument=e,o}if("remove"===t.op)return o.removed=e,o.newDocument=null,o;if("_get"===t.op)return t.value=e,o;if(r)throw new sb("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return o}n||(e=Zv(e));var a=(t.path||"").split("/"),l=e,c=1,p=a.length,u=void 0,d=void 0,h=void 0;for(h="function"==typeof r?r:ub;;){if((d=a[c])&&-1!=d.indexOf("~")&&(d=eb(d)),s&&("__proto__"==d||"prototype"==d&&c>0&&"constructor"==a[c-1]))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` 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(r&&void 0===u&&(void 0===l[d]?u=a.slice(0,c).join("/"):c==p-1&&(u=t.path),void 0!==u&&h(t,0,e,u)),c++,Array.isArray(l)){if("-"===d)d=l.length;else{if(r&&!Xv(d))throw new sb("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);Xv(d)&&(d=~~d)}if(c>=p){if(r&&"add"===t.op&&d>l.length)throw new sb("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===(o=ab[t.op].call(t,l,d,e)).test)throw new sb("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}}else if(c>=p){if(!1===(o=ob[t.op].call(t,l,d,e)).test)throw new sb("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}if(l=l[d],r&&c<p&&(!l||"object"!=typeof l))throw new sb("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}function pb(e,t,r,n,s){if(void 0===n&&(n=!0),void 0===s&&(s=!0),r&&!Array.isArray(t))throw new sb("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");n||(e=Zv(e));for(var i=new Array(t.length),o=0,a=t.length;o<a;o++)i[o]=cb(e,t[o],r,!0,s,o),e=i[o].newDocument;return i.newDocument=e,i}function ub(e,t,r,n){if("object"!=typeof e||null===e||Array.isArray(e))throw new sb("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,r);if(!ob[e.op])throw new sb("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,r);if("string"!=typeof e.path)throw new sb("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,r);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new sb('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,r);if(("move"===e.op||"copy"===e.op)&&"string"!=typeof e.from)throw new sb("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,r);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&void 0===e.value)throw new sb("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,r);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&tb(e.value))throw new sb("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,r);if(r)if("add"==e.op){var s=e.path.split("/").length,i=n.split("/").length;if(s!==i+1&&s!==i)throw new sb("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,r)}else if("replace"===e.op||"remove"===e.op||"_get"===e.op){if(e.path!==n)throw new sb("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,r)}else if("move"===e.op||"copy"===e.op){var o=db([{op:"_get",path:e.from,value:void 0}],r);if(o&&"OPERATION_PATH_UNRESOLVABLE"===o.name)throw new sb("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}function db(e,t,r){try{if(!Array.isArray(e))throw new sb("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)pb(Zv(t),Zv(e),r||!0);else{r=r||ub;for(var n=0;n<e.length;n++)r(e[n],n,t,void 0)}}catch(e){if(e instanceof sb)return e;throw e}}function hb(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var r,n,s,i=Array.isArray(e),o=Array.isArray(t);if(i&&o){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!hb(e[r],t[r]))return!1;return!0}if(i!=o)return!1;var a=Object.keys(e);if((n=a.length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!t.hasOwnProperty(a[r]))return!1;for(r=n;0!=r--;)if(!hb(e[s=a[r]],t[s]))return!1;return!0}return e!=e&&t!=t}const fb=Object.freeze(Object.defineProperty({__proto__:null,JsonPatchError:sb,_areEquals:hb,applyOperation:cb,applyPatch:pb,applyReducer:function(e,t,r){var n=cb(e,t);if(!1===n.test)throw new sb("Test operation failed","TEST_OPERATION_FAILED",r,t,e);return n.newDocument},deepClone:ib,getValueByPointer:lb,validate:db,validator:ub},Symbol.toStringTag,{value:"Module"}));var mb=new WeakMap,yb=function(e){this.observers=new Map,this.obj=e},gb=function(e,t){this.callback=e,this.observer=t};function vb(e,t){void 0===t&&(t=!1);var r=mb.get(e.object);bb(r.value,e.object,e.patches,"",t),e.patches.length&&pb(r.value,e.patches);var n=e.patches;return n.length>0&&(e.patches=[],e.callback&&e.callback(n)),n}function bb(e,t,r,n,s){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var i=Yv(t),o=Yv(e),a=!1,l=o.length-1;l>=0;l--){var c=e[u=o[l]];if(!Kv(t,u)||void 0===t[u]&&void 0!==c&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(s&&r.push({op:"test",path:n+"/"+Qv(u),value:Zv(c)}),r.push({op:"remove",path:n+"/"+Qv(u)}),a=!0):(s&&r.push({op:"test",path:n,value:e}),r.push({op:"replace",path:n,value:t}));else{var p=t[u];"object"==typeof c&&null!=c&&"object"==typeof p&&null!=p&&Array.isArray(c)===Array.isArray(p)?bb(c,p,r,n+"/"+Qv(u),s):c!==p&&(s&&r.push({op:"test",path:n+"/"+Qv(u),value:Zv(c)}),r.push({op:"replace",path:n+"/"+Qv(u),value:Zv(p)}))}}if(a||i.length!=o.length)for(l=0;l<i.length;l++){var u;Kv(e,u=i[l])||void 0===t[u]||r.push({op:"add",path:n+"/"+Qv(u),value:Zv(t[u])})}}}const xb=Object.freeze(Object.defineProperty({__proto__:null,compare:function(e,t,r){void 0===r&&(r=!1);var n=[];return bb(e,t,n,"",r),n},generate:vb,observe:function(e,t){var r,n=function(e){return mb.get(e)}(e);if(n){var s=function(e,t){return e.observers.get(t)}(n,t);r=s&&s.observer}else n=new yb(e),mb.set(e,n);if(r)return r;if(r={},n.value=Zv(e),t){r.callback=t,r.next=null;var i=function(){vb(r)},o=function(){clearTimeout(r.next),r.next=setTimeout(i)};"undefined"!=typeof window&&(window.addEventListener("mouseup",o),window.addEventListener("keyup",o),window.addEventListener("mousedown",o),window.addEventListener("keydown",o),window.addEventListener("change",o))}return r.patches=[],r.object=e,r.unobserve=function(){vb(r),clearTimeout(r.next),function(e,t){e.observers.delete(t.callback)}(n,r),"undefined"!=typeof window&&(window.removeEventListener("mouseup",o),window.removeEventListener("keyup",o),window.removeEventListener("mousedown",o),window.removeEventListener("keydown",o),window.removeEventListener("change",o))},n.observers.set(t,new gb(t,r)),r},unobserve:function(e,t){t.unobserve()}},Symbol.toStringTag,{value:"Module"}));Object.assign({},fb,xb,{JsonPatchError:nb,deepClone:Zv,escapePathComponent:Qv,unescapePathComponent:eb});var wb=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===$b}(e)}(e)},$b="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Sb(e,t){return!1!==t.clone&&t.isMergeableObject(e)?jb((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function Eb(e,t,r){return e.concat(t).map((function(e){return Sb(e,r)}))}function kb(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function Ob(e,t){try{return t in e}catch(e){return!1}}function jb(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||Eb,r.isMergeableObject=r.isMergeableObject||wb,r.cloneUnlessOtherwiseSpecified=Sb;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):function(e,t,r){var n={};return r.isMergeableObject(e)&&kb(e).forEach((function(t){n[t]=Sb(e[t],r)})),kb(t).forEach((function(s){(function(e,t){return Ob(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,s)||(Ob(e,s)&&r.isMergeableObject(t[s])?n[s]=function(e,t){if(!t.customMerge)return jb;var r=t.customMerge(e);return"function"==typeof r?r:jb}(s,r)(e[s],t[s],r):n[s]=Sb(t[s],r))})),n}(e,t,r):Sb(t,r)}jb.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return jb(e,r,t)}),{})};const Ab=mt(jb),Pb={add:function(e,t){return{op:"add",path:e,value:t}},replace:Cb,remove:function(e){return{op:"remove",path:e}},merge:function(e,t){return{type:"mutation",op:"merge",path:e,value:t}},mergeDeep:function(e,t){return{type:"mutation",op:"mergeDeep",path:e,value:t}},context:function(e,t){return{type:"context",path:e,value:t}},getIn:function(e,t){return t.reduce(((e,t)=>void 0!==t&&e?e[t]:e),e)},applyPatch:function(e,t,r){if(r=r||{},"merge"===(t=yh(yh({},t),{},{path:t.path&&Tb(t.path)})).op){const r=Hb(e,t.path);Object.assign(r,t.value),pb(e,[Cb(t.path,r)])}else if("mergeDeep"===t.op){const r=Hb(e,t.path),n=Ab(r,t.value);e=pb(e,[Cb(t.path,n)]).newDocument}else if("add"===t.op&&""===t.path&&qb(t.value)){const r=Object.keys(t.value).reduce(((e,r)=>(e.push({op:"add",path:`/${Tb(r)}`,value:t.value[r]}),e)),[]);pb(e,r)}else if("replace"===t.op&&""===t.path){let{value:n}=t;r.allowMetaPatches&&t.meta&&Ub(t)&&(Array.isArray(t.value)||qb(t.value))&&(n=yh(yh({},n),t.meta)),e=n}else if(pb(e,[t]),r.allowMetaPatches&&t.meta&&Ub(t)&&(Array.isArray(t.value)||qb(t.value))){const r=yh(yh({},Hb(e,t.path)),t.meta);pb(e,[Cb(t.path,r)])}return e},parentPathMatch:function(e,t){if(!Array.isArray(t))return!1;for(let r=0,n=t.length;r<n;r+=1)if(t[r]!==e[r])return!1;return!0},flatten:Db,fullyNormalizeArray:function(e){return Mb(Db(Fb(e)))},normalizeArray:Fb,isPromise:function(e){return qb(e)&&Lb(e.then)},forEachNew:function(e,t){try{return Ib(e,_b,t)}catch(e){return e}},forEachNewPrimitive:function(e,t){try{return Ib(e,Rb,t)}catch(e){return e}},isJsonPatch:Bb,isContextPatch:function(e){return zb(e)&&"context"===e.type},isPatch:zb,isMutation:Nb,isAdditiveMutation:Ub,isGenerator:function(e){return"[object GeneratorFunction]"===Object.prototype.toString.call(e)},isFunction:Lb,isObject:qb,isError:function(e){return e instanceof Error}};function Tb(e){return Array.isArray(e)?e.length<1?"":`/${e.map((e=>(e+"").replace(/~/g,"~0").replace(/\//g,"~1"))).join("/")}`:e}function Cb(e,t,r){return{op:"replace",path:e,value:t,meta:r}}function Ib(e,t,r){return Mb(Db(e.filter(Ub).map((e=>t(e.value,r,e.path)))||[]))}function Rb(e,t,r){return r=r||[],Array.isArray(e)?e.map(((e,n)=>Rb(e,t,r.concat(n)))):qb(e)?Object.keys(e).map((n=>Rb(e[n],t,r.concat(n)))):t(e,r[r.length-1],r)}function _b(e,t,r){let n=[];if((r=r||[]).length>0){const s=t(e,r[r.length-1],r);s&&(n=n.concat(s))}if(Array.isArray(e)){const s=e.map(((e,n)=>_b(e,t,r.concat(n))));s&&(n=n.concat(s))}else if(qb(e)){const s=Object.keys(e).map((n=>_b(e[n],t,r.concat(n))));s&&(n=n.concat(s))}return n=Db(n),n}function Fb(e){return Array.isArray(e)?e:[e]}function Db(e){return[].concat(...e.map((e=>Array.isArray(e)?Db(e):e)))}function Mb(e){return e.filter((e=>void 0!==e))}function qb(e){return e&&"object"==typeof e}function Lb(e){return e&&"function"==typeof e}function Bb(e){if(zb(e)){const{op:t}=e;return"add"===t||"remove"===t||"replace"===t}return!1}function Nb(e){return Bb(e)||zb(e)&&"mutation"===e.type}function Ub(e){return Nb(e)&&("add"===e.op||"replace"===e.op||"merge"===e.op||"mergeDeep"===e.op)}function zb(e){return e&&"object"==typeof e}function Hb(e,t){try{return lb(e,t)}catch(e){return console.error(e),{}}}function Vb(e,t){function r(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack;for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];[this.message]=r,t&&t.apply(this,r)}return r.prototype=new Error,r.prototype.name=e,r.prototype.constructor=r,r}var Wb={exports:{}},Gb=Wb.exports=function(e){return new Jb(e)};function Jb(e){this.value=e}function Kb(e,t,r){var n=[],s=[],i=!0;return function e(o){var a=r?Yb(o):o,l={},c=!0,p={node:a,node_:o,path:[].concat(n),parent:s[s.length-1],parents:s,key:n.slice(-1)[0],isRoot:0===n.length,level:n.length,circular:null,update:function(e,t){p.isRoot||(p.parent.node[p.key]=e),p.node=e,t&&(c=!1)},delete:function(e){delete p.parent.node[p.key],e&&(c=!1)},remove:function(e){Qb(p.parent.node)?p.parent.node.splice(p.key,1):delete p.parent.node[p.key],e&&(c=!1)},keys:null,before:function(e){l.before=e},after:function(e){l.after=e},pre:function(e){l.pre=e},post:function(e){l.post=e},stop:function(){i=!1},block:function(){c=!1}};if(!i)return p;function u(){if("object"==typeof p.node&&null!==p.node){p.keys&&p.node_===p.node||(p.keys=Zb(p.node)),p.isLeaf=0==p.keys.length;for(var e=0;e<s.length;e++)if(s[e].node_===o){p.circular=s[e];break}}else p.isLeaf=!0,p.keys=null;p.notLeaf=!p.isLeaf,p.notRoot=!p.isRoot}u();var d=t.call(p,p.node);return void 0!==d&&p.update&&p.update(d),l.before&&l.before.call(p,p.node),c?("object"!=typeof p.node||null===p.node||p.circular||(s.push(p),u(),ex(p.keys,(function(t,s){n.push(t),l.pre&&l.pre.call(p,p.node[t],t);var i=e(p.node[t]);r&&tx.call(p.node,t)&&(p.node[t]=i.node),i.isLast=s==p.keys.length-1,i.isFirst=0==s,l.post&&l.post.call(p,i),n.pop()})),s.pop()),l.after&&l.after.call(p,p.node),p):p}(e).node}function Yb(e){if("object"==typeof e&&null!==e){var t;if(Qb(e))t=[];else if("[object Date]"===Xb(e))t=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===Xb(e)}(e))t=new RegExp(e);else if(function(e){return"[object Error]"===Xb(e)}(e))t={message:e.message};else if(function(e){return"[object Boolean]"===Xb(e)}(e))t=new Boolean(e);else if(function(e){return"[object Number]"===Xb(e)}(e))t=new Number(e);else if(function(e){return"[object String]"===Xb(e)}(e))t=new String(e);else if(Object.create&&Object.getPrototypeOf)t=Object.create(Object.getPrototypeOf(e));else if(e.constructor===Object)t={};else{var r=e.constructor&&e.constructor.prototype||e.__proto__||{},n=function(){};n.prototype=r,t=new n}return ex(Zb(e),(function(r){t[r]=e[r]})),t}return e}Jb.prototype.get=function(e){for(var t=this.value,r=0;r<e.length;r++){var n=e[r];if(!t||!tx.call(t,n)){t=void 0;break}t=t[n]}return t},Jb.prototype.has=function(e){for(var t=this.value,r=0;r<e.length;r++){var n=e[r];if(!t||!tx.call(t,n))return!1;t=t[n]}return!0},Jb.prototype.set=function(e,t){for(var r=this.value,n=0;n<e.length-1;n++){var s=e[n];tx.call(r,s)||(r[s]={}),r=r[s]}return r[e[n]]=t,t},Jb.prototype.map=function(e){return Kb(this.value,e,!0)},Jb.prototype.forEach=function(e){return this.value=Kb(this.value,e,!1),this.value},Jb.prototype.reduce=function(e,t){var r=1===arguments.length,n=r?this.value:t;return this.forEach((function(t){this.isRoot&&r||(n=e.call(this,n,t))})),n},Jb.prototype.paths=function(){var e=[];return this.forEach((function(t){e.push(this.path)})),e},Jb.prototype.nodes=function(){var e=[];return this.forEach((function(t){e.push(this.node)})),e},Jb.prototype.clone=function(){var e=[],t=[];return function r(n){for(var s=0;s<e.length;s++)if(e[s]===n)return t[s];if("object"==typeof n&&null!==n){var i=Yb(n);return e.push(n),t.push(i),ex(Zb(n),(function(e){i[e]=r(n[e])})),e.pop(),t.pop(),i}return n}(this.value)};var Zb=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};function Xb(e){return Object.prototype.toString.call(e)}var Qb=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},ex=function(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)};ex(Zb(Jb.prototype),(function(e){Gb[e]=function(t){var r=[].slice.call(arguments,1),n=new Jb(t);return n[e].apply(n,r)}}));var tx=Object.hasOwnProperty||function(e,t){return t in e};const rx=mt(Wb.exports),nx=["properties"],sx=["properties"],ix=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],ox=["schema/example","items/example"];function ax(e){const t=e[e.length-1],r=e[e.length-2],n=e.join("/");return nx.indexOf(t)>-1&&-1===sx.indexOf(r)||ix.indexOf(n)>-1||ox.some((e=>n.indexOf(e)>-1))}function lx(e,t){const[r,n]=e.split("#"),s=gh.resolve(r||"",t||"");return n?`${s}#${n}`:s}const cx=/^([a-z]+:\/\/|\/\/)/i,px=Vb("JSONRefError",(function(e,t,r){this.originalError=r,Object.assign(this,t||{})})),ux={},dx=new WeakMap,hx=[e=>"paths"===e[0]&&"responses"===e[3]&&"examples"===e[5],e=>"paths"===e[0]&&"responses"===e[3]&&"content"===e[5]&&"example"===e[7],e=>"paths"===e[0]&&"responses"===e[3]&&"content"===e[5]&&"examples"===e[7]&&"value"===e[9],e=>"paths"===e[0]&&"requestBody"===e[3]&&"content"===e[4]&&"example"===e[6],e=>"paths"===e[0]&&"requestBody"===e[3]&&"content"===e[4]&&"examples"===e[6]&&"value"===e[8],e=>"paths"===e[0]&&"parameters"===e[2]&&"example"===e[4],e=>"paths"===e[0]&&"parameters"===e[3]&&"example"===e[5],e=>"paths"===e[0]&&"parameters"===e[2]&&"examples"===e[4]&&"value"===e[6],e=>"paths"===e[0]&&"parameters"===e[3]&&"examples"===e[5]&&"value"===e[7],e=>"paths"===e[0]&&"parameters"===e[2]&&"content"===e[4]&&"example"===e[6],e=>"paths"===e[0]&&"parameters"===e[2]&&"content"===e[4]&&"examples"===e[6]&&"value"===e[8],e=>"paths"===e[0]&&"parameters"===e[3]&&"content"===e[4]&&"example"===e[7],e=>"paths"===e[0]&&"parameters"===e[3]&&"content"===e[5]&&"examples"===e[7]&&"value"===e[9]],fx={key:"$ref",plugin:(e,t,r,n)=>{const s=n.getInstance(),i=r.slice(0,-1);if(ax(i)||(e=>hx.some((t=>t(e))))(i))return;const{baseDoc:o}=n.getContext(r);if("string"!=typeof e)return new px("$ref: must be a string (JSON-Ref)",{$ref:e,baseDoc:o,fullPath:r});const a=vx(e),l=a[0],c=a[1]||"";let p,u,d;try{p=o||l?yx(l,o):null}catch(t){return gx(t,{pointer:c,$ref:e,basePath:p,fullPath:r})}if(function(e,t,r,n){let s=dx.get(n);s||(s={},dx.set(n,s));const i=function(e){return 0===e.length?"":`/${e.map(Ex).join("/")}`}(r),o=`${t||"<specmap-base>"}#${e}`,a=i.replace(/allOf\/\d+\/?/g,"");if(t===n.contextTree.get([]).baseDoc&&kx(a,e))return!0;let l="";const c=r.some((e=>(l=`${l}/${Ex(e)}`,s[l]&&s[l].some((e=>kx(e,o)||kx(o,e))))));if(c)return!0;s[a]=(s[a]||[]).concat(o)}(c,p,i,n)&&!s.useCircularStructures){const t=lx(e,p);return e===t?null:Pb.replace(r,t)}if(null==p?(d=$x(c),u=n.get(d),void 0===u&&(u=new px(`Could not resolve reference: ${e}`,{pointer:c,$ref:e,baseDoc:o,fullPath:r}))):(u=bx(p,c),u=null!=u.l?u.l:u.catch((t=>{throw gx(t,{pointer:c,$ref:e,baseDoc:o,fullPath:r})}))),u instanceof Error)return[Pb.remove(r),u];const h=lx(e,p),f=Pb.replace(i,u,{$$ref:h});if(p&&p!==o)return[f,Pb.context(i,{baseDoc:p})];try{if(!function(e,t){const r=[e];return t.path.reduce(((e,t)=>(r.push(e[t]),e[t])),e),function e(t){return Pb.isObject(t)&&(r.indexOf(t)>=0||Object.keys(t).some((r=>e(t[r]))))}(t.value)}(n.state,f)||s.useCircularStructures)return f}catch(e){return null}}},mx=Object.assign(fx,{docCache:ux,absoluteify:yx,clearCache:function(e){void 0!==e?delete ux[e]:Object.keys(ux).forEach((e=>{delete ux[e]}))},JSONRefError:px,wrapError:gx,getDoc:xx,split:vx,extractFromDoc:bx,fetchJSON:function(e){return fetch(e,{headers:{Accept:"application/json, application/yaml"},loadSpec:!0}).then((e=>e.text())).then((e=>xv.load(e)))},extract:wx,jsonPointerToArray:$x,unescapeJsonPointerToken:Sx});function yx(e,t){if(!cx.test(e)){if(!t)throw new px(`Tried to resolve a relative URL, without having a basePath. path: '${e}' basePath: '${t}'`);return gh.resolve(t,e)}return e}function gx(e,t){let r;return r=e&&e.response&&e.response.body?`${e.response.body.code} ${e.response.body.message}`:e.message,new px(`Could not resolve reference: ${r}`,t,e)}function vx(e){return(e+"").split("#")}function bx(e,t){const r=ux[e];if(r&&!Pb.isPromise(r))try{const e=wx(t,r);return Object.assign(Promise.resolve(e),{l:e})}catch(e){return Promise.reject(e)}return xx(e).then((e=>wx(t,e)))}function xx(e){const t=ux[e];return t?Pb.isPromise(t)?t:Promise.resolve(t):(ux[e]=mx.fetchJSON(e).then((t=>(ux[e]=t,t))),ux[e])}function wx(e,t){const r=$x(e);if(r.length<1)return t;const n=Pb.getIn(t,r);if(void 0===n)throw new px(`Could not resolve pointer: ${e} does not exist in document`,{pointer:e});return n}function $x(e){if("string"!=typeof e)throw new TypeError("Expected a string, got a "+typeof e);return"/"===e[0]&&(e=e.substr(1)),""===e?[]:e.split("/").map(Sx)}function Sx(e){return"string"!=typeof e?e:new URLSearchParams(`=${e.replace(/~1/g,"/").replace(/~0/g,"~")}`).get("")}function Ex(e){return new URLSearchParams([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]).toString().slice(1)}function kx(e,t){if(!(r=t)||"/"===r||"#"===r)return!0;var r;const n=e.charAt(t.length),s=t.slice(-1);return 0===e.indexOf(t)&&(!n||"/"===n||"#"===n)&&"#"!==s}const Ox={key:"allOf",plugin:(e,t,r,n,s)=>{if(s.meta&&s.meta.$$ref)return;const i=r.slice(0,-1);if(ax(i))return;if(!Array.isArray(e)){const e=new TypeError("allOf must be an array");return e.fullPath=r,e}let o=!1,a=s.value;if(i.forEach((e=>{a&&(a=a[e])})),a=yh({},a),0===Object.keys(a).length)return;delete a.allOf;const l=[];return l.push(n.replace(i,{})),e.forEach(((e,t)=>{if(!n.isObject(e)){if(o)return null;o=!0;const e=new TypeError("Elements in allOf must be objects");return e.fullPath=r,l.push(e)}l.push(n.mergeDeep(i,e));const s=function(e,t){let{specmap:r,getBaseUrlForNodePath:n=(e=>r.getContext([...t,...e]).baseDoc),targetKeys:s=["$ref","$$ref"]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=[];return rx(e).forEach((function(){if(s.includes(this.key)&&"string"==typeof this.node){const e=this.path,s=t.concat(this.path),o=lx(this.node,n(e));i.push(r.replace(s,o))}})),i}(e,r.slice(0,-1),{getBaseUrlForNodePath:e=>n.getContext([...r,t,...e]).baseDoc,specmap:n});l.push(...s)})),a.example&&l.push(n.remove([].concat(i,"example"))),l.push(n.mergeDeep(i,a)),a.$$ref||l.push(n.remove([].concat(i,"$$ref"))),l}},jx={key:"parameters",plugin:(e,t,r,n)=>{if(Array.isArray(e)&&e.length){const t=Object.assign([],e),s=r.slice(0,-1),i=yh({},Pb.getIn(n.spec,s));for(let s=0;s<e.length;s+=1){const o=e[s];try{t[s].default=n.parameterMacro(i,o)}catch(e){const t=new Error(e);return t.fullPath=r,t}}return Pb.replace(r,t)}return Pb.replace(r,e)}},Ax={key:"properties",plugin:(e,t,r,n)=>{const s=yh({},e);for(const t in e)try{s[t].default=n.modelPropertyMacro(s[t])}catch(e){const t=new Error(e);return t.fullPath=r,t}return Pb.replace(r,s)}};class Px{constructor(e){this.root=Tx(e||{})}set(e,t){const r=this.getParent(e,!0);if(!r)return void Cx(this.root,t,null);const n=e[e.length-1],{children:s}=r;s[n]?Cx(s[n],t,r):s[n]=Tx(t,r)}get(e){if((e=e||[]).length<1)return this.root.value;let t,r,n=this.root;for(let s=0;s<e.length&&(r=e[s],t=n.children,t[r]);s+=1)n=t[r];return n&&n.protoValue}getParent(e,t){return!e||e.length<1?null:e.length<2?this.root:e.slice(0,-1).reduce(((e,r)=>{if(!e)return e;const{children:n}=e;return!n[r]&&t&&(n[r]=Tx(null,e)),n[r]}),this.root)}}function Tx(e,t){return Cx({children:{}},e,t)}function Cx(e,t,r){return e.value=t||{},e.protoValue=r?yh(yh({},r.protoValue),e.value):e.value,Object.keys(e.children).forEach((t=>{const r=e.children[t];e.children[t]=Cx(r,r.value,e)})),e}const Ix=()=>{};class Rx{static getPluginName(e){return e.pluginName}static getPatchesOfType(e,t){return e.filter(t)}constructor(e){Object.assign(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new Px,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:Object.assign(Object.create(this),Pb,{getInstance:()=>this}),allowMetaPatches:!1},e),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=this.plugins.map(this.wrapPlugin.bind(this)).filter(Pb.isFunction),this.patches.push(Pb.add([],this.spec)),this.patches.push(Pb.context([],this.context)),this.updatePatches(this.patches)}debug(e){if(this.debugLevel===e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];console.log(...r)}}verbose(e){if("verbose"===this.debugLevel){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];console.log(`[${e}] `,...r)}}wrapPlugin(e,t){const{pathDiscriminator:r}=this;let n,s=null;return e[this.pluginProp]?(s=e,n=e[this.pluginProp]):Pb.isFunction(e)?n=e:Pb.isObject(e)&&(n=function(e){const t=(e,t)=>!Array.isArray(e)||e.every(((e,r)=>e===t[r]));return function*(n,s){const i={};for(const e of n.filter(Pb.isAdditiveMutation))yield*o(e.value,e.path,e);function*o(n,a,l){if(Pb.isObject(n)){const c=a.length-1,p=a[c],u=a.indexOf("properties"),d="properties"===p&&c===u,h=s.allowMetaPatches&&i[n.$$ref];for(const c of Object.keys(n)){const p=n[c],u=a.concat(c),f=Pb.isObject(p),m=n.$$ref;if(h||f&&(s.allowMetaPatches&&m&&(i[m]=!0),yield*o(p,u,l)),!d&&c===e.key){const n=t(r,a);r&&!n||(yield e.plugin(p,c,u,s,l))}}}else e.key===a[a.length-1]&&(yield e.plugin(n,e.key,a,s))}}}(e)),Object.assign(n.bind(s),{pluginName:e.name||t,isGenerator:Pb.isGenerator(n)})}nextPlugin(){return this.wrappedPlugins.find((e=>this.getMutationsForPlugin(e).length>0))}nextPromisedPatch(){if(this.promisedPatches.length>0)return Promise.race(this.promisedPatches.map((e=>e.value)))}getPluginHistory(e){const t=this.constructor.getPluginName(e);return this.pluginHistory[t]||[]}getPluginRunCount(e){return this.getPluginHistory(e).length}getPluginHistoryTip(e){const t=this.getPluginHistory(e);return t&&t[t.length-1]||{}}getPluginMutationIndex(e){const t=this.getPluginHistoryTip(e).mutationIndex;return"number"!=typeof t?-1:t}updatePluginHistory(e,t){const r=this.constructor.getPluginName(e);this.pluginHistory[r]=this.pluginHistory[r]||[],this.pluginHistory[r].push(t)}updatePatches(e){Pb.normalizeArray(e).forEach((e=>{if(e instanceof Error)this.errors.push(e);else try{if(!Pb.isObject(e))return void this.debug("updatePatches","Got a non-object patch",e);if(this.showDebug&&this.allPatches.push(e),Pb.isPromise(e.value))return this.promisedPatches.push(e),void this.promisedPatchThen(e);if(Pb.isContextPatch(e))return void this.setContext(e.path,e.value);Pb.isMutation(e)&&this.updateMutations(e)}catch(e){console.error(e),this.errors.push(e)}}))}updateMutations(e){"object"==typeof e.value&&!Array.isArray(e.value)&&this.allowMetaPatches&&(e.value=yh({},e.value));const t=Pb.applyPatch(this.state,e,{allowMetaPatches:this.allowMetaPatches});t&&(this.mutations.push(e),this.state=t)}removePromisedPatch(e){const t=this.promisedPatches.indexOf(e);t<0?this.debug("Tried to remove a promisedPatch that isn't there!"):this.promisedPatches.splice(t,1)}promisedPatchThen(e){return e.value=e.value.then((t=>{const r=yh(yh({},e),{},{value:t});this.removePromisedPatch(e),this.updatePatches(r)})).catch((t=>{this.removePromisedPatch(e),this.updatePatches(t)})),e.value}getMutations(e,t){return e=e||0,"number"!=typeof t&&(t=this.mutations.length),this.mutations.slice(e,t)}getCurrentMutations(){return this.getMutationsForPlugin(this.getCurrentPlugin())}getMutationsForPlugin(e){const t=this.getPluginMutationIndex(e);return this.getMutations(t+1)}getCurrentPlugin(){return this.currentPlugin}getLib(){return this.libMethods}_get(e){return Pb.getIn(this.state,e)}_getContext(e){return this.contextTree.get(e)}setContext(e,t){return this.contextTree.set(e,t)}_hasRun(e){return this.getPluginRunCount(this.getCurrentPlugin())>(e||0)}dispatch(){const e=this,t=this.nextPlugin();if(!t){const e=this.nextPromisedPatch();if(e)return e.then((()=>this.dispatch())).catch((()=>this.dispatch()));const t={spec:this.state,errors:this.errors};return this.showDebug&&(t.patches=this.allPatches),Promise.resolve(t)}if(e.pluginCount=e.pluginCount||{},e.pluginCount[t]=(e.pluginCount[t]||0)+1,e.pluginCount[t]>100)return Promise.resolve({spec:e.state,errors:e.errors.concat(new Error("We've reached a hard limit of 100 plugin runs"))});if(t!==this.currentPlugin&&this.promisedPatches.length){const e=this.promisedPatches.map((e=>e.value));return Promise.all(e.map((e=>e.then(Ix,Ix)))).then((()=>this.dispatch()))}return function(){e.currentPlugin=t;const n=e.getCurrentMutations(),s=e.mutations.length-1;try{if(t.isGenerator)for(const s of t(n,e.getLib()))r(s);else r(t(n,e.getLib()))}catch(e){console.error(e),r([Object.assign(Object.create(e),{plugin:t})])}finally{e.updatePluginHistory(t,{mutationIndex:s})}return e.dispatch()}();function r(r){r&&(r=Pb.fullyNormalizeArray(r),e.updatePatches(r,t))}}}const _x={refs:mx,allOf:Ox,parameters:jx,properties:Ax},Fx=e=>e.replace(/\W/gi,"_");function Dx(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",{v2OperationIdCompatibilityMode:n}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!e||"object"!=typeof e)return null;return(e.operationId||"").replace(/\s/g,"").length?Fx(e.operationId):function(e,t){let{v2OperationIdCompatibilityMode:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(r){let r=`${t.toLowerCase()}_${e}`.replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return r=r||`${e.substring(1)}_${t}`,r.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return`${t.toLowerCase()}${Fx(e)}`}(t,r,{v2OperationIdCompatibilityMode:n})}function Mx(e){const{spec:t}=e,{paths:r}=t,n={};if(!r||t.$$normalized)return e;for(const e in r){const s=r[e];if(null==s||!["object","function"].includes(typeof s))continue;const i=s.parameters;for(const r in s){const o=s[r];if(null==o||!["object","function"].includes(typeof o))continue;const a=Dx(o,e,r);if(a){n[a]?n[a].push(o):n[a]=[o];const e=n[a];if(e.length>1)e.forEach(((e,t)=>{e.h=e.h||e.operationId,e.operationId=`${a}${t+1}`}));else if(void 0!==o.operationId){const t=e[0];t.h=t.h||o.operationId,t.operationId=a}}if("parameters"!==r){const e=[],r={};for(const n in t)"produces"!==n&&"consumes"!==n&&"security"!==n||(r[n]=t[n],e.push(r));if(i&&(r.parameters=i,e.push(r)),e.length)for(const t of e)for(const e in t)if(o[e]){if("parameters"===e)for(const r of t[e])o[e].some((e=>e.name&&e.name===r.name||e.$ref&&e.$ref===r.$ref||e.$$ref&&e.$$ref===r.$$ref||e===r))||o[e].push(r)}else o[e]=t[e]}}}return t.$$normalized=!0,e}async function qx(e){const{spec:t,mode:r,allowMetaPatches:n=!0,pathDiscriminator:s,modelPropertyMacro:i,parameterMacro:o,requestInterceptor:a,responseInterceptor:l,skipNormalization:c,useCircularStructures:p}=e,u=Hv(e),d=Vv(e);return function(e){u&&(_x.refs.docCache[u]=e),_x.refs.fetchJSON=zv(d,{requestInterceptor:a,responseInterceptor:l});const t=[_x.refs];return"function"==typeof o&&t.push(_x.parameters),"function"==typeof i&&t.push(_x.properties),"strict"!==r&&t.push(_x.allOf),(h={spec:e,context:{baseDoc:u},plugins:t,allowMetaPatches:n,pathDiscriminator:s,parameterMacro:o,modelPropertyMacro:i,useCircularStructures:p},new Rx(h).dispatch()).then(c?async e=>e:Mx);var h}(t)}const Lx={name:"generic",match:()=>!0,normalize(e){let{spec:t}=e;const{spec:r}=Mx({spec:t});return r},resolve:async e=>qx(e)},Bx=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.0\.([0123])(?:-rc[012])?$/.test(t)}catch{return!1}},Nx=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},Ux=e=>Bx(e)||Nx(e),zx={name:"openapi-2",match(e){let{spec:t}=e;return(e=>{try{const{swagger:t}=e;return"2.0"===t}catch{return!1}})(t)},normalize(e){let{spec:t}=e;const{spec:r}=Mx({spec:t});return r},resolve:async e=>async function(e){return qx(e)}(e)},Hx={name:"openapi-3-0",match(e){let{spec:t}=e;return Bx(t)},normalize(e){let{spec:t}=e;const{spec:r}=Mx({spec:t});return r},resolve:async e=>async function(e){return qx(e)}(e)},Vx=e=>async t=>(async e=>{const{spec:t,requestInterceptor:r,responseInterceptor:n}=e,s=Hv(e),i=Vv(e),o=t||await zv(i,{requestInterceptor:r,responseInterceptor:n})(s),a=yh(yh({},e),{},{spec:o});return e.strategies.find((e=>e.match(a))).resolve(a)})(yh(yh({},e),t)),Wx=Vx({strategies:[Hx,zx,Lx]});var Gx=Array.isArray,Jx="object"==typeof global&&global&&global.Object===Object&&global,Kx=Jx,Yx="object"==typeof self&&self&&self.Object===Object&&self,Zx=Kx||Yx||Function("return this")(),Xx=Zx.Symbol,Qx=Xx,ew=Object.prototype,tw=ew.hasOwnProperty,rw=ew.toString,nw=Qx?Qx.toStringTag:void 0,sw=Object.prototype.toString,iw=function(e){var t=tw.call(e,nw),r=e[nw];try{e[nw]=void 0;var n=!0}catch(e){}var s=rw.call(e);return n&&(t?e[nw]=r:delete e[nw]),s},ow=Xx?Xx.toStringTag:void 0,aw=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ow&&ow in Object(e)?iw(e):function(e){return sw.call(e)}(e)},lw=function(e){return null!=e&&"object"==typeof e},cw=aw,pw=lw,uw=function(e){return"symbol"==typeof e||pw(e)&&"[object Symbol]"==cw(e)},dw=Gx,hw=uw,fw=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mw=/^\w*$/,yw=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},gw=aw,vw=yw,bw=function(e){if(!vw(e))return!1;var t=gw(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},xw=Zx.u,ww=function(){var e=/[^.]+$/.exec(xw&&xw.keys&&xw.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),$w=Function.prototype.toString,Sw=function(e){if(null!=e){try{return $w.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Ew=bw,kw=function(e){return!!ww&&ww in e},Ow=yw,jw=Sw,Aw=/^\[object .+?Constructor\]$/,Pw=Function.prototype,Tw=Object.prototype,Cw=Pw.toString,Iw=Tw.hasOwnProperty,Rw=RegExp("^"+Cw.call(Iw).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_w=function(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Ow(e)||kw(e))&&(Ew(e)?Rw:Aw).test(jw(e))}(r)?r:void 0},Fw=_w(Object,"create"),Dw=Fw,Mw=Fw,qw=Object.prototype.hasOwnProperty,Lw=Fw,Bw=Object.prototype.hasOwnProperty,Nw=Fw,Uw=function(){this.p=Dw?Dw(null):{},this.size=0},zw=function(e){var t=this.has(e)&&delete this.p[e];return this.size-=t?1:0,t},Hw=function(e){var t=this.p;if(Mw){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return qw.call(t,e)?t[e]:void 0},Vw=function(e){var t=this.p;return Lw?void 0!==t[e]:Bw.call(t,e)},Ww=function(e,t){var r=this.p;return this.size+=this.has(e)?0:1,r[e]=Nw&&void 0===t?"__lodash_hash_undefined__":t,this};function Gw(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Gw.prototype.clear=Uw,Gw.prototype.delete=zw,Gw.prototype.get=Hw,Gw.prototype.has=Vw,Gw.prototype.set=Ww;var Jw=Gw,Kw=function(e,t){return e===t||e!=e&&t!=t},Yw=Kw,Zw=function(e,t){for(var r=e.length;r--;)if(Yw(e[r][0],t))return r;return-1},Xw=Zw,Qw=Array.prototype.splice,e$=Zw,t$=Zw,r$=Zw,n$=function(){this.p=[],this.size=0},s$=function(e){var t=this.p,r=Xw(t,e);return!(r<0||(r==t.length-1?t.pop():Qw.call(t,r,1),--this.size,0))},i$=function(e){var t=this.p,r=e$(t,e);return r<0?void 0:t[r][1]},o$=function(e,t){var r=this.p,n=r$(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function a$(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a$.prototype.clear=n$,a$.prototype.delete=s$,a$.prototype.get=i$,a$.prototype.has=function(e){return t$(this.p,e)>-1},a$.prototype.set=o$;var l$=a$,c$=_w(Zx,"Map"),p$=Jw,u$=l$,d$=c$,h$=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},f$=function(e,t){var r=e.p;return h$(t)?r["string"==typeof t?"string":"hash"]:r.map},m$=f$,y$=f$,g$=f$,v$=f$,b$=function(e,t){var r=v$(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function x$(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}x$.prototype.clear=function(){this.size=0,this.p={hash:new p$,map:new(d$||u$),string:new p$}},x$.prototype.delete=function(e){var t=m$(this,e).delete(e);return this.size-=t?1:0,t},x$.prototype.get=function(e){return y$(this,e).get(e)},x$.prototype.has=function(e){return g$(this,e).has(e)},x$.prototype.set=b$;var w$=x$,$$=w$;function S$(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,s=t?t.apply(this,n):n[0],i=r.cache;if(i.has(s))return i.get(s);var o=e.apply(this,n);return r.cache=i.set(s,o)||i,o};return r.cache=new(S$.Cache||$$),r}S$.Cache=$$;var E$=S$,k$=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,O$=/\\(\\)?/g,j$=function(e){var t=E$((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(k$,(function(e,r,n,s){t.push(n?s.replace(O$,"$1"):r||e)})),t}),(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}(),A$=j$,P$=function(e,t){for(var r=-1,n=null==e?0:e.length,s=Array(n);++r<n;)s[r]=t(e[r],r,e);return s},T$=Gx,C$=uw,I$=Xx?Xx.prototype:void 0,R$=I$?I$.toString:void 0,_$=function e(t){if("string"==typeof t)return t;if(T$(t))return P$(t,e)+"";if(C$(t))return R$?R$.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r},F$=Gx,D$=function(e,t){if(dw(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!hw(e))||mw.test(e)||!fw.test(e)||null!=t&&e in Object(t)},M$=A$,q$=uw,L$=function(e,t){return F$(e)?e:D$(e,t)?[e]:M$(function(e){return null==e?"":_$(e)}(e))},B$=function(e){if("string"==typeof e||q$(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},N$=function(e,t){for(var r=0,n=(t=L$(t,e)).length;null!=e&&r<n;)e=e[B$(t[r++])];return r&&r==n?e:void 0};const U$=mt((function(e,t,r){var n=null==e?void 0:N$(e,t);return void 0===n?r:n})),z$=function(){return!1},H$=function(){return!0};function V$(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function W$(e){return function t(r){return 0===arguments.length||V$(r)?t:e.apply(this,arguments)}}function G$(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return V$(r)?t:W$((function(t){return e(r,t)}));default:return V$(r)&&V$(n)?t:V$(r)?W$((function(t){return e(t,n)})):V$(n)?W$((function(t){return e(r,t)})):e(r,n)}}}function J$(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,r){return t.apply(this,arguments)};case 3:return function(e,r,n){return t.apply(this,arguments)};case 4:return function(e,r,n,s){return t.apply(this,arguments)};case 5:return function(e,r,n,s,i){return t.apply(this,arguments)};case 6:return function(e,r,n,s,i,o){return t.apply(this,arguments)};case 7:return function(e,r,n,s,i,o,a){return t.apply(this,arguments)};case 8:return function(e,r,n,s,i,o,a,l){return t.apply(this,arguments)};case 9:return function(e,r,n,s,i,o,a,l,c){return t.apply(this,arguments)};case 10:return function(e,r,n,s,i,o,a,l,c,p){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function K$(e,t,r){return function(){for(var n=[],s=0,i=e,o=0;o<t.length||s<arguments.length;){var a;o<t.length&&(!V$(t[o])||s>=arguments.length)?a=t[o]:(a=arguments[s],s+=1),n[o]=a,V$(a)||(i-=1),o+=1}return i<=0?r.apply(this,n):J$(i,K$(e,n,r))}}const Y$=G$((function(e,t){return 1===e?W$(t):J$(e,K$(e,[],t))}));function Z$(e){return function t(r,n,s){switch(arguments.length){case 0:return t;case 1:return V$(r)?t:G$((function(t,n){return e(r,t,n)}));case 2:return V$(r)&&V$(n)?t:V$(r)?G$((function(t,r){return e(t,n,r)})):V$(n)?G$((function(t,n){return e(r,t,n)})):W$((function(t){return e(r,n,t)}));default:return V$(r)&&V$(n)&&V$(s)?t:V$(r)&&V$(n)?G$((function(t,r){return e(t,r,s)})):V$(r)&&V$(s)?G$((function(t,r){return e(t,n,r)})):V$(n)&&V$(s)?G$((function(t,n){return e(r,t,n)})):V$(r)?W$((function(t){return e(t,n,s)})):V$(n)?W$((function(t){return e(r,t,s)})):V$(s)?W$((function(t){return e(r,n,t)})):e(r,n,s)}}}const X$=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function Q$(e,t,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!X$(n)){for(var s=0;s<e.length;){if("function"==typeof n[e[s]])return n[e[s]].apply(n,Array.prototype.slice.call(arguments,0,-1));s+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(n))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(n)}return r.apply(this,arguments)}}function eS(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const tS=function(){return this.xf["@@transducer/init"]()},rS=function(e){return this.xf["@@transducer/result"](e)};var nS=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=tS,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=eS(this.xf["@@transducer/step"](e,!1))),e},e}();const sS=G$(Q$(["all"],(function(e){return function(t){return new nS(e,t)}}),(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));function iS(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function oS(e,t,r){for(var n=0,s=r.length;n<s;){if(e(t,r[n]))return!0;n+=1}return!1}function aS(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const lS="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var cS=Object.prototype.toString,pS=function(){return"[object Arguments]"===cS.call(arguments)?function(e){return"[object Arguments]"===cS.call(e)}:function(e){return aS("callee",e)}}(),uS=!{toString:null}.propertyIsEnumerable("toString"),dS=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],hS=function(){return arguments.propertyIsEnumerable("length")}(),fS=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},mS="function"!=typeof Object.keys||hS?W$((function(e){if(Object(e)!==e)return[];var t,r,n=[],s=hS&&pS(e);for(t in e)!aS(t,e)||s&&"length"===t||(n[n.length]=t);if(uS)for(r=dS.length-1;r>=0;)aS(t=dS[r],e)&&!fS(n,t)&&(n[n.length]=t),r-=1;return n})):W$((function(e){return Object(e)!==e?[]:Object.keys(e)}));const yS=W$((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function gS(e,t,r,n){var s=iS(e);function i(e,t){return vS(e,t,r.slice(),n.slice())}return!oS((function(e,t){return!oS(i,t,e)}),iS(t),s)}function vS(e,t,r,n){if(lS(e,t))return!0;var s=yS(e);if(s!==yS(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(s){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===function(e){var t=String(e).match(/^function (\w*)/);return null==t?"":t[1]}(e.constructor))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!lS(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!lS(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var i=r.length-1;i>=0;){if(r[i]===e)return n[i]===t;i-=1}switch(s){case"Map":return e.size===t.size&&gS(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&gS(e.values(),t.values(),r.concat([e]),n.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var o=mS(e);if(o.length!==mS(t).length)return!1;var a=r.concat([e]),l=n.concat([t]);for(i=o.length-1;i>=0;){var c=o[i];if(!aS(c,t)||!vS(t[c],e[c],a,l))return!1;i-=1}return!0}const bS=G$((function(e,t){return vS(e,t,[],[])}));function xS(e,t){return function(e,t,r){var n,s;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(n=1/t;r<e.length;){if(0===(s=e[r])&&1/s===n)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(s=e[r])&&s!=s)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(null===t)return e.indexOf(t,r)}for(;r<e.length;){if(bS(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function wS(e,t){for(var r=0,n=t.length,s=Array(n);r<n;)s[r]=e(t[r]),r+=1;return s}function $S(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var SS=function(e){return(e<10?"0":"")+e},ES="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+SS(e.getUTCMonth()+1)+"-"+SS(e.getUTCDate())+"T"+SS(e.getUTCHours())+":"+SS(e.getUTCMinutes())+":"+SS(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function kS(e){return function(){return!e.apply(this,arguments)}}function OS(e,t,r){for(var n=0,s=r.length;n<s;)t=e(t,r[n]),n+=1;return t}function jS(e){return"[object Object]"===Object.prototype.toString.call(e)}var AS=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=tS,e.prototype["@@transducer/result"]=rS,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();var PS=G$(Q$(["fantasy-land/filter","filter"],(function(e){return function(t){return new AS(e,t)}}),(function(e,t){return jS(t)?OS((function(r,n){return e(t[n])&&(r[n]=t[n]),r}),{},mS(t)):function(e,t){for(var r=0,n=t.length,s=[];r<n;)e(t[r])&&(s[s.length]=t[r]),r+=1;return s}(e,t)}))),TS=G$((function(e,t){return PS(kS(e),t)}));function CS(e,t){var r=function(r){var n=t.concat([e]);return xS(r,n)?"<Circular>":CS(r,n)},n=function(e,t){return wS((function(t){return $S(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+wS(r,e).join(", ")+"))";case"[object Array]":return"["+wS(r,e).concat(n(e,TS((function(e){return/^\d+$/.test(e)}),mS(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+r(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?r(NaN):$S(ES(e)))+")";case"[object Map]":return"new Map("+r(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+r(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+r(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+r(e.valueOf())+")":$S(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var s=e.toString();if("[object Object]"!==s)return s}return"{"+n(e,mS(e)).join(", ")+"}"}}const IS=W$((function(e){return CS(e,[])}));var RS=G$((function(e,t){if(e===t)return t;function r(e,t){if(e>t!=t>e)return t>e?t:e}var n=r(e,t);if(void 0!==n)return n;var s=r(typeof e,typeof t);if(void 0!==s)return s===typeof e?e:t;var i=IS(e),o=r(i,IS(t));return void 0!==o&&o===i?e:t})),_S=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=tS,e.prototype["@@transducer/result"]=rS,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const FS=G$(Q$(["fantasy-land/map","map"],(function(e){return function(t){return new _S(e,t)}}),(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return Y$(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return OS((function(r,n){return r[n]=e(t[n]),r}),{},mS(t));default:return wS(e,t)}}))),DS=Number.isInteger||function(e){return e<<0===e};function MS(e){return"[object String]"===Object.prototype.toString.call(e)}const qS=G$((function(e,t){var r=e<0?t.length+e:e;return MS(t)?t.charAt(r):t[r]}));var LS=G$((function(e,t){if(null!=t)return DS(e)?qS(e,t):t[e]})),BS=G$((function(e,t){return FS(LS(e),t)})),NS=W$((function(e){return!!X$(e)||!!e&&"object"==typeof e&&!MS(e)&&(0===e.length||e.length>0&&e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1))})),US="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function zS(e,t,r){return function(n,s,i){if(NS(i))return e(n,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return t(n,s,i,"fantasy-land/reduce");if(null!=i[US])return r(n,s,i[US]());if("function"==typeof i.next)return r(n,s,i);if("function"==typeof i.reduce)return t(n,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}var HS=G$((function(e,t){return J$(e.length,(function(){return e.apply(t,arguments)}))}));var VS=zS((function(e,t,r){for(var n=0,s=r.length;n<s;){if((t=e["@@transducer/step"](t,r[n]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}),(function(e,t,r,n){return e["@@transducer/result"](r[n](HS(e["@@transducer/step"],e),t))}),(function(e,t,r){for(var n=r.next();!n.done;){if((t=e["@@transducer/step"](t,n.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=r.next()}return e["@@transducer/result"](t)})),WS=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();function GS(e){return new WS(e)}const JS=Z$((function(e,t,r){return VS("function"==typeof e?GS(e):e,t,r)})),KS=W$((function(e){return Y$(JS(RS,0,BS("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))})),YS=W$((function(e){return function(){return e}}));var ZS=G$((function(e,t){return e&&t}));const XS=W$((function(e){return Y$(JS(RS,0,BS("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));var QS=zS(OS,(function(e,t,r,n){return r[n](e,t)}),(function(e,t,r){for(var n=r.next();!n.done;)t=e(t,n.value),n=r.next();return t})),eE=G$((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(r){return e(r)(t(r))}:QS((function(e,r){return function(e,t){var r;t=t||[];var n=(e=e||[]).length,s=t.length,i=[];for(r=0;r<n;)i[i.length]=e[r],r+=1;for(r=0;r<s;)i[i.length]=t[r],r+=1;return i}(e,FS(r,t))}),[],e)}));const tE=G$((function(e,t){return e.apply(this,t)})),rE=W$((function(e){for(var t=mS(e),r=t.length,n=[],s=0;s<r;)n[s]=e[t[s]],s+=1;return n}));var nE=W$((function(e){return null==e})),sE=Z$((function e(t,r,n){if(0===t.length)return r;var s=t[0];if(t.length>1){var i=!nE(n)&&aS(s,n)&&"object"==typeof n[s]?n[s]:DS(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,i)}return function(e,t,r){if(DS(e)&&X$(r)){var n=[].concat(r);return n[e]=t,n}var s={};for(var i in r)s[i]=r[i];return s[e]=t,s}(s,r,n)}));const iE=sE;function oE(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}var aE=G$((function(e,t){var r=Y$(e,t);return Y$(e,(function(){return OS(eE,FS(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const lE=W$((function(e){return aE(e.length,e)})),cE=G$((function(e,t){return oE(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:lE(ZS)(e,t)}));function pE(e){return new RegExp(e.source,e.flags?e.flags:(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":"")+(e.dotAll?"s":""))}function uE(e,t,r){if(r||(r=new dE),function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(e))return e;var n=function(n){var s=r.get(e);if(s)return s;for(var i in r.set(e,n),e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=t?uE(e[i],!0,r):e[i]);return n};switch(yS(e)){case"Object":return n(Object.create(Object.getPrototypeOf(e)));case"Array":return n([]);case"Date":return new Date(e.valueOf());case"RegExp":return pE(e);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return e.slice();default:return e}}var dE=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){const r=this.hash(e);let n=this.map[r];n||(this.map[r]=n=[]),n.push([e,t]),this.length+=1},e.prototype.hash=function(e){let t=[];for(var r in e)t.push(Object.prototype.toString.call(e[r]));return t.join()},e.prototype.get=function(e){if(this.length<=180){for(const t in this.map){const r=this.map[t];for(let t=0;t<r.length;t+=1){const n=r[t];if(n[0]===e)return n[1]}}return}const t=this.hash(e),r=this.map[t];if(r)for(let t=0;t<r.length;t+=1){const n=r[t];if(n[0]===e)return n[1]}},e}();const hE=W$((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}})),fE=lE(W$((function(e){return!e})));function mE(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function yE(e,t){return function(){var r=arguments.length;if(0===r)return t();var n=arguments[r-1];return X$(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}var gE=Z$(yE("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const vE=W$(yE("tail",gE(1,1/0)));function bE(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return J$(arguments[0].length,JS(mE,arguments[0],vE(arguments)))}const xE=qS(0);const wE=W$((function(e){return e})),$E=W$((function(e){return Y$(e.length,e)}));var SE=G$((function(e,t){return Y$(JS(RS,0,BS("length",t)),(function(){var r=arguments,n=this;return e.apply(n,wS((function(e){return e.apply(n,r)}),t))}))}));const EE=SE;var kE=function(){function e(e,t,r,n){this.valueFn=e,this.valueAcc=t,this.keyFn=r,this.xf=n,this.inputs={}}return e.prototype["@@transducer/init"]=tS,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(aS(t,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[t]))["@@transducer/reduced"]){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){var r=this.keyFn(t);return this.inputs[r]=this.inputs[r]||[r,uE(this.valueAcc,!1)],this.inputs[r][1]=this.valueFn(this.inputs[r][1],t),e},e}();var OE=K$(4,[],Q$([],(function(e,t,r){return function(n){return new kE(e,t,r,n)}}),(function(e,t,r,n){var s=GS((function(n,s){var i=r(s),o=e(aS(i,n)?n[i]:uE(t,!1),s);return o&&o["@@transducer/reduced"]?eS(n):(n[i]=o,n)}));return VS(s,{},n)})));const jE=G$((function(e,t){return null==t||t!=t?e:t}));var AE=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!PE(e,!0,this)},e.prototype.has=function(e){return PE(e,!1,this)},e}();function PE(e,t,r){var n,s=typeof e;switch(s){case"string":case"number":return 0===e&&1/e==-1/0?!!r._items["-0"]||(t&&(r._items["-0"]=!0),!1):null!==r._nativeSet?t?(n=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===n):r._nativeSet.has(e):s in r._items?e in r._items[s]||(t&&(r._items[s][e]=!0),!1):(t&&(r._items[s]={},r._items[s][e]=!0),!1);case"boolean":if(s in r._items){var i=e?1:0;return!!r._items[s][i]||(t&&(r._items[s][i]=!0),!1)}return t&&(r._items[s]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==r._nativeSet?t?(n=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===n):r._nativeSet.has(e):s in r._items?!!xS(e,r._items[s])||(t&&r._items[s].push(e),!1):(t&&(r._items[s]=[e]),!1);case"undefined":return!!r._items[s]||(t&&(r._items[s]=!0),!1);case"object":if(null===e)return!!r._items.null||(t&&(r._items.null=!0),!1);default:return(s=Object.prototype.toString.call(e))in r._items?!!xS(e,r._items[s])||(t&&r._items[s].push(e),!1):(t&&(r._items[s]=[e]),!1)}}var TE=G$((function(e,t){for(var r=[],n=0,s=e.length,i=t.length,o=new AE,a=0;a<i;a+=1)o.add(t[a]);for(;n<s;)o.add(e[n])&&(r[r.length]=e[n]),n+=1;return r}));const CE=TE;var IE=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=tS,e.prototype["@@transducer/result"]=rS,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var r=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?eS(r):r},e}();var RE=G$(Q$(["take"],(function(e){return function(t){return new IE(e,t)}}),(function(e,t){return gE(0,e<0?1/0:e,t)})));var _E=function(){function e(e,t){this.f=e,this.retained=[],this.xf=t}return e.prototype["@@transducer/init"]=tS,e.prototype["@@transducer/result"]=function(e){return this.retained=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.retain(e,t):this.flush(e,t)},e.prototype.flush=function(e,t){return e=VS(this.xf,e,this.retained),this.retained=[],this.xf["@@transducer/step"](e,t)},e.prototype.retain=function(e,t){return this.retained.push(t),e},e}();const FE=G$(Q$([],(function(e){return function(t){return new _E(e,t)}}),(function(e,t){for(var r=t.length-1;r>=0&&e(t[r]);)r-=1;return gE(0,r+1,t)}))),DE=qS(-1);var ME=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=tS,e.prototype["@@transducer/result"]=rS,e.prototype["@@transducer/step"]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf["@@transducer/step"](e,t)},e}();const qE=G$(Q$(["dropWhile"],(function(e){return function(t){return new ME(e,t)}}),(function(e,t){for(var r=0,n=t.length;r<n&&e(t[r]);)r+=1;return gE(r,1/0,t)})));var LE=G$((function(e,t){return e||t}));const BE=G$((function(e,t){return oE(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:lE(LE)(e,t)}));var NE=W$((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():X$(e)?[]:MS(e)?"":jS(e)?{}:pS(e)?function(){return arguments}():function(e){var t=Object.prototype.toString.call(e);return"[object Uint8ClampedArray]"===t||"[object Int8Array]"===t||"[object Uint8Array]"===t||"[object Int16Array]"===t||"[object Uint16Array]"===t||"[object Int32Array]"===t||"[object Uint32Array]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object BigInt64Array]"===t||"[object BigUint64Array]"===t}(e)?e.constructor.from(""):void 0}));const UE=W$((function(e){return Y$(e.length,(function(t,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=t,e.apply(this,n)}))})),zE=G$(yE("groupBy",OE((function(e,t){return e.push(t),e}),[])));var HE=G$((function(e,t){if(0===e.length||nE(t))return!1;for(var r=t,n=0;n<e.length;){if(nE(r)||!aS(e[n],r))return!1;r=r[e[n]],n+=1}return!0})),VE=G$((function(e,t){return HE([e],t)}));const WE=VE;var GE=G$((function(e,t){return!nE(t)&&e in t}));const JE=GE;var KE=function(e,t){switch(arguments.length){case 0:return KE;case 1:return function t(r){return 0===arguments.length?t:lS(e,r)};default:return lS(e,t)}};const YE=KE,ZE=Z$((function(e,t,r){return Y$(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))})),XE=G$(xS),QE=gE(0,-1);var ek=G$((function(e,t){return Y$(e+1,(function(){var r=arguments[e];if(null!=r&&oE(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(IS(r)+' does not have a method named "'+t+'"')}))}));const tk=ek,rk=W$((function(e){return null!=e&&bS(e,NE(e))})),nk=tk(1,"join");function sk(e){return"[object Number]"===Object.prototype.toString.call(e)}const ik=G$((function(e,t){return function(r){return function(n){return FS((function(e){return t(e,n)}),r(e(n)))}}}));var ok=G$((function(e,t){return e.map((function(e){for(var r,n=t,s=0;s<e.length;){if(null==n)return;r=e[s],n=DS(r)?qS(r,n):n[r],s+=1}return n}))})),ak=G$((function(e,t){return ok([e],t)[0]}));const lk=G$((function(e,t){return OS((function(r,n){return r[n]=e(t[n],n,t),r}),{},mS(t))}));var ck=Z$((function(e,t,r){var n,s={};for(n in r=r||{},t=t||{})aS(n,t)&&(s[n]=aS(n,r)?e(n,t[n],r[n]):t[n]);for(n in r)aS(n,r)&&!aS(n,s)&&(s[n]=r[n]);return s})),pk=Z$((function e(t,r,n){return ck((function(r,n,s){return jS(n)&&jS(s)?e(t,n,s):t(r,n,s)}),r,n)}));const uk=G$((function(e,t){return pk((function(e,t,r){return r}),e,t)})),dk=G$((function(e,t){return sS(kS(e),t)}));var hk=function(e){return{value:e,map:function(t){return hk(t(e))}}},fk=Z$((function(e,t,r){return e((function(e){return hk(t(e))}))(r).value}));const mk=fk,yk=Z$((function(e,t,r){return jE(e,ak(t,r))})),gk=Z$((function(e,t,r){return e(ak(t,r))})),vk=G$((function(e,t){for(var r={},n=0;n<e.length;)e[n]in t&&(r[e[n]]=t[e[n]]),n+=1;return r})),bk=Z$((function(e,t,r){return bS(e,LS(t,r))})),xk=Z$((function(e,t,r){return jE(e,LS(t,r))})),wk=Z$((function(e,t,r){return e(LS(t,r))}));var $k=G$((function(e,t){if(!sk(e)||!sk(t))throw new TypeError("Both arguments to range must be numbers");for(var r=[],n=e;n<t;)r.push(n),n+=1;return r}));const Sk=$k,Ek=W$(eS);var kk=Z$((function(e,t,r){return r.replace(e,t)}));const Ok=kk;var jk=G$((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const Ak=jk,Pk=tk(1,"split"),Tk=G$((function(e,t){return bS(RE(e.length,t),e)}));var Ck=G$((function(e,t){if(r=e,"[object RegExp]"!==Object.prototype.toString.call(r))throw new TypeError("test requires a value of type RegExp as its first argument; received "+IS(e));var r;return pE(e).test(t)}));const Ik=Ck;var Rk=function(){function e(e,t){this.xf=t,this.pred=e,this.items=[]}return e.prototype["@@transducer/init"]=tS,e.prototype["@@transducer/result"]=rS,e.prototype["@@transducer/step"]=function(e,t){return oS(this.pred,t,this.items)?e:(this.items.push(t),this.xf["@@transducer/step"](e,t))},e}();const _k=G$(Q$([],(function(e){return function(t){return new Rk(e,t)}}),(function(e,t){for(var r,n=0,s=t.length,i=[];n<s;)oS(e,r=t[n],i)||(i[i.length]=r),n+=1;return i}))),Fk=Z$((function(e,t,r){return e(r)?t(r):r})),Dk=YS(void 0),Mk=bS(Dk()),qk=fE(Mk),Lk=bS(null),Bk=fE(Lk),Nk=fE(nE),Uk=Y$(1,bE(yS,YE("GeneratorFunction"))),zk=Y$(1,bE(yS,YE("AsyncFunction"))),Hk=XS([bE(yS,YE("Function")),Uk,zk]),Vk=Y$(1,Hk(Array.isArray)?Array.isArray:bE(yS,YE("Array"))),Wk=cE(Vk,rk),Gk=fE(rk),Jk=cE(Vk,Gk),Kk=Y$(1,bE(yS,YE("String"))),Yk=bS("");function Zk(e){return Zk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zk(e)}const Xk=function(e){return"object"===Zk(e)};var Qk=fE(Y$(1,cE(Bk,BE(Xk,Hk))));const eO=KS([Kk,Qk,Gk]),tO=fE(Hk),rO=Y$(1,cE(Bk,Xk));var nO=bE(yS,YE("Object")),sO=bE(IS,bS(IS(Object))),iO=gk(cE(Hk,sO),["constructor"]);const oO=Y$(1,(function(e){if(!rO(e)||!nO(e))return!1;var t=Object.getPrototypeOf(e);return!!Lk(t)||iO(t)}));var aO=cE(Y$(1,bE(yS,YE("Number"))),isFinite),lO=Y$(1,aO),cO=cE(Hk(Number.isFinite)?Y$(1,HS(Number.isFinite,Number)):lO,EE(bS,[Math.floor,wE])),pO=Y$(1,cO);const uO=Hk(Number.isInteger)?Y$(1,HS(Number.isInteger,Number)):pO,dO=Y$(1,bE(yS,YE("RegExp"))),hO=YS(Dk()),fO=Y$(1,HS(Promise.all,Promise));function mO(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var yO=bE(Ak(hE((function(e,t){return e.length>t.length}))),xE,LS("length")),gO=$E((function(e,t,r){var n=r.apply(void 0,function(e){return function(e){if(Array.isArray(e))return mO(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return mO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mO(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e));return Nk(n)?Ek(n):t}));const vO=ZE(Jk,(function(e){var t=yO(e);return Y$(t,(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return JS(gO(r),void 0,e)}))}),Dk),bO=UE(XE);var xO=Y$(3,(function(e,t,r){var n=ak(e,r),s=ak(QE(e),r);if(!tO(n)&&!Wk(e)){var i=HS(n,s);return tE(i,t)}}));const wO=xO,$O=Fk(Kk,Ok(/[.*+?^${}()|[\]\\-]/g,"\\$&"));var SO=function(e,t){if("string"!=typeof e&&!(e instanceof String))throw TypeError("`".concat(t,"` must be a string"))};var EO=Y$(3,(function(e,t,r){!function(e,t,r){if(null==r||null==e||null==t)throw TypeError("Input values must not be `null` or `undefined`")}(e,t,r),SO(r,"str"),SO(t,"replaceValue"),function(e){if(!("string"==typeof e||e instanceof String||e instanceof RegExp))throw TypeError("`searchValue` must be a string or an regexp")}(e);var n=new RegExp(dO(e)?e:$O(e),"g");return Ok(n,t,r)})),kO=tk(2,"replaceAll");const OO=Hk(String.prototype.replaceAll)?kO:EO,jO=$E((function(e,t){return bE(Pk(""),FE(bO(e)),nk(""))(t)})),AO=$E((function(e,t){return bE(Pk(""),qE(bO(e)),nk(""))(t)}));var PO=aw,TO=Gx,CO=lw,IO=aw,RO=lw,_O=aw,FO=lw,DO=l$,MO=l$,qO=c$,LO=w$,BO=l$,NO=function(e){var t=this.p,r=t.delete(e);return this.size=t.size,r},UO=function(e,t){var r=this.p;if(r instanceof MO){var n=r.p;if(!qO||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.p=new LO(n)}return r.set(e,t),this.size=r.size,this};function zO(e){var t=this.p=new BO(e);this.size=t.size}zO.prototype.clear=function(){this.p=new DO,this.size=0},zO.prototype.delete=NO,zO.prototype.get=function(e){return this.p.get(e)},zO.prototype.has=function(e){return this.p.has(e)},zO.prototype.set=UO;var HO=zO,VO=w$;function WO(e){var t=-1,r=null==e?0:e.length;for(this.p=new VO;++t<r;)this.add(e[t])}WO.prototype.add=WO.prototype.push=function(e){return this.p.set(e,"__lodash_hash_undefined__"),this},WO.prototype.has=function(e){return this.p.has(e)};var GO=WO,JO=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1},KO=function(e,t){return e.has(t)},YO=function(e,t,r,n,s,i){var o=1&r,a=e.length,l=t.length;if(a!=l&&!(o&&l>a))return!1;var c=i.get(e),p=i.get(t);if(c&&p)return c==t&&p==e;var u=-1,d=!0,h=2&r?new GO:void 0;for(i.set(e,t),i.set(t,e);++u<a;){var f=e[u],m=t[u];if(n)var y=o?n(m,f,u,t,e,i):n(f,m,u,e,t,i);if(void 0!==y){if(y)continue;d=!1;break}if(h){if(!JO(t,(function(e,t){if(!KO(h,t)&&(f===e||s(f,e,r,n,i)))return h.push(t)}))){d=!1;break}}else if(f!==m&&!s(f,m,r,n,i)){d=!1;break}}return i.delete(e),i.delete(t),d},ZO=Zx.Uint8Array,XO=Kw,QO=YO,ej=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r},tj=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r},rj=Xx?Xx.prototype:void 0,nj=rj?rj.valueOf:void 0,sj=function(e,t){for(var r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e},ij=Gx,oj=function(e,t){for(var r=-1,n=null==e?0:e.length,s=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[s++]=o)}return i},aj=Object.prototype.propertyIsEnumerable,lj=Object.getOwnPropertySymbols,cj=lj?function(e){return null==e?[]:(e=Object(e),oj(lj(e),(function(t){return aj.call(e,t)})))}:function(){return[]},pj=cj,uj=aw,dj=lw,hj=function(e){return dj(e)&&"[object Arguments]"==uj(e)},fj=lw,mj=Object.prototype,yj=mj.hasOwnProperty,gj=mj.propertyIsEnumerable,vj=hj(function(){return arguments}())?hj:function(e){return fj(e)&&yj.call(e,"callee")&&!gj.call(e,"callee")},bj={exports:{}},xj=function(){return!1};!function(e,t){var r=Zx,n=xj,s=t&&!t.nodeType&&t,i=s&&e&&!e.nodeType&&e,o=i&&i.exports===s?r.Buffer:void 0,a=(o?o.isBuffer:void 0)||n;e.exports=a}(bj,bj.exports);var wj=bj.exports,$j=/^(?:0|[1-9]\d*)$/,Sj=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Ej=aw,kj=Sj,Oj=lw,jj={};jj["[object Float32Array]"]=jj["[object Float64Array]"]=jj["[object Int8Array]"]=jj["[object Int16Array]"]=jj["[object Int32Array]"]=jj["[object Uint8Array]"]=jj["[object Uint8ClampedArray]"]=jj["[object Uint16Array]"]=jj["[object Uint32Array]"]=!0,jj["[object Arguments]"]=jj["[object Array]"]=jj["[object ArrayBuffer]"]=jj["[object Boolean]"]=jj["[object DataView]"]=jj["[object Date]"]=jj["[object Error]"]=jj["[object Function]"]=jj["[object Map]"]=jj["[object Number]"]=jj["[object Object]"]=jj["[object RegExp]"]=jj["[object Set]"]=jj["[object String]"]=jj["[object WeakMap]"]=!1;var Aj={exports:{}};!function(e,t){var r=Jx,n=t&&!t.nodeType&&t,s=n&&e&&!e.nodeType&&e,i=s&&s.exports===n&&r.process,o=function(){try{return s&&s.require&&s.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=o}(Aj,Aj.exports);var Pj=Aj.exports,Tj=function(e){return Oj(e)&&kj(e.length)&&!!jj[Ej(e)]},Cj=function(e){return function(t){return e(t)}},Ij=Pj&&Pj.isTypedArray,Rj=Ij?Cj(Ij):Tj,_j=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},Fj=vj,Dj=Gx,Mj=wj,qj=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&$j.test(e))&&e>-1&&e%1==0&&e<t},Lj=Rj,Bj=Object.prototype.hasOwnProperty,Nj=Object.prototype,Uj=function(e,t){return function(r){return e(t(r))}}(Object.keys,Object),zj=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Nj)},Hj=Uj,Vj=Object.prototype.hasOwnProperty,Wj=bw,Gj=Sj,Jj=function(e,t){var r=Dj(e),n=!r&&Fj(e),s=!r&&!n&&Mj(e),i=!r&&!n&&!s&&Lj(e),o=r||n||s||i,a=o?_j(e.length,String):[],l=a.length;for(var c in e)!t&&!Bj.call(e,c)||o&&("length"==c||s&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||qj(c,l))||a.push(c);return a},Kj=function(e,t,r){var n=t(e);return ij(e)?n:sj(n,r(e))},Yj=pj,Zj=function(e){return function(e){return null!=e&&Gj(e.length)&&!Wj(e)}(e)?Jj(e):function(e){if(!zj(e))return Hj(e);var t=[];for(var r in Object(e))Vj.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)},Xj=function(e){return Kj(e,Zj,Yj)},Qj=Object.prototype.hasOwnProperty,eA=_w(Zx,"DataView"),tA=c$,rA=_w(Zx,"Promise"),nA=_w(Zx,"Set"),sA=_w(Zx,"WeakMap"),iA=aw,oA=Sw,aA=oA(eA),lA=oA(tA),cA=oA(rA),pA=oA(nA),uA=oA(sA),dA=iA;(eA&&"[object DataView]"!=dA(new eA(new ArrayBuffer(1)))||tA&&"[object Map]"!=dA(new tA)||rA&&"[object Promise]"!=dA(rA.resolve())||nA&&"[object Set]"!=dA(new nA)||sA&&"[object WeakMap]"!=dA(new sA))&&(dA=function(e){var t=iA(e),r="[object Object]"==t?e.constructor:void 0,n=r?oA(r):"";if(n)switch(n){case aA:return"[object DataView]";case lA:return"[object Map]";case cA:return"[object Promise]";case pA:return"[object Set]";case uA:return"[object WeakMap]"}return t});var hA=HO,fA=YO,mA=function(e,t,r,n,s,i,o){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new ZO(e),new ZO(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return XO(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var a=ej;case"[object Set]":var l=1&n;if(a||(a=tj),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;n|=2,o.set(e,t);var p=QO(a(e),a(t),n,s,i,o);return o.delete(e),p;case"[object Symbol]":if(nj)return nj.call(e)==nj.call(t)}return!1},yA=function(e,t,r,n,s,i){var o=1&r,a=Xj(e),l=a.length;if(l!=Xj(t).length&&!o)return!1;for(var c=l;c--;){var p=a[c];if(!(o?p in t:Qj.call(t,p)))return!1}var u=i.get(e),d=i.get(t);if(u&&d)return u==t&&d==e;var h=!0;i.set(e,t),i.set(t,e);for(var f=o;++c<l;){var m=e[p=a[c]],y=t[p];if(n)var g=o?n(y,m,p,t,e,i):n(m,y,p,e,t,i);if(!(void 0===g?m===y||s(m,y,r,n,i):g)){h=!1;break}f||(f="constructor"==p)}if(h&&!f){var v=e.constructor,b=t.constructor;v==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(h=!1)}return i.delete(e),i.delete(t),h},gA=dA,vA=Gx,bA=wj,xA=Rj,wA="[object Object]",$A=Object.prototype.hasOwnProperty,SA=lw,EA=function e(t,r,n,s,i){return t===r||(null==t||null==r||!SA(t)&&!SA(r)?t!=t&&r!=r:function(e,t,r,n,s,i){var o=vA(e),a=vA(t),l=o?"[object Array]":gA(e),c=a?"[object Array]":gA(t),p=(l="[object Arguments]"==l?wA:l)==wA,u=(c="[object Arguments]"==c?wA:c)==wA,d=l==c;if(d&&bA(e)){if(!bA(t))return!1;o=!0,p=!1}if(d&&!p)return i||(i=new hA),o||xA(e)?fA(e,t,r,n,s,i):mA(e,t,l,r,n,s,i);if(!(1&r)){var h=p&&$A.call(e,"__wrapped__"),f=u&&$A.call(t,"__wrapped__");if(h||f){var m=h?e.value():e,y=f?t.value():t;return i||(i=new hA),s(m,y,r,n,i)}}return!!d&&(i||(i=new hA),yA(e,t,r,n,s,i))}(t,r,n,s,e,i))},kA=class e{constructor(e,t){this.key=e,this.value=t}clone(){const t=new e;return this.key&&(t.key=this.key.clone()),this.value&&(t.value=this.value.clone()),t}},OA=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}};const jA=OA;function AA(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}let PA=class e{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(t,r){return t=AA(t),new e(this.elements.filter(t,r))}reject(t,r){return t=AA(t),new e(this.elements.filter(jA(t),r))}find(e,t){return e=AA(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}};"undefined"!=typeof Symbol&&(PA.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()});var TA=PA;const CA=function(e,t){return EA(e,t)},IA=kA,RA=TA;var _A=class e{constructor(e,t,r){t&&(this.meta=t),r&&(this.attributes=r),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof e?this.content.toValue():this.content instanceof IA?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let r=new RA;const n=(e,t)=>(e.push(t),e),s=(e,r)=>{r.element===t&&e.push(r);const i=r.findRecursive(t);return i&&i.reduce(n,e),r.content instanceof IA&&(r.content.key&&s(e,r.content.key),r.content.value&&s(e,r.content.value)),e};return this.content&&(this.content.element&&s(r,this.content),Array.isArray(this.content)&&this.content.reduce(s,r)),e.isEmpty||(r=r.filter((t=>{let r=t.parents.map((e=>e.element));for(const t in e){const n=e[t],s=r.indexOf(n);if(-1===s)return!1;r=r.splice(0,s)}return!0}))),r}set(e){return this.content=e,this}equals(e){return CA(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(t){if(t instanceof e)this._content=t;else if(t instanceof RA)this.content=t.elements;else if("string"==typeof t||"number"==typeof t||"boolean"==typeof t||"null"===t||null==t)this._content=t;else if(t instanceof IA)this._content=t;else if(Array.isArray(t))this._content=t.map(this.refract);else{if("object"!=typeof t)throw new Error("Cannot set content to given value");this._content=Object.keys(t).map((e=>new this.MemberElement(e,t[e])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new RA;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new RA(this.content);if(this.content instanceof IA){const e=new RA([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof e?new RA([this.content]):new RA}get recursiveChildren(){const e=new RA;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}};const FA=_A;const DA=_A,MA=_A,qA=_A,LA=OA,BA=_A,NA=TA;let UA=class extends BA{constructor(e,t,r){super(e||[],t,r),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return new NA(this.content.filter(e,t))}reject(e,t){return this.filter(LA(e),t)}reduce(e,t){let r,n;void 0!==t?(r=0,n=this.refract(t)):(r=1,n="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];n="object"===this.primitive()?this.refract(e(n,r.value,r.key,r,this)):this.refract(e(n,r,t,this))}return n}forEach(e,t){this.content.forEach(((r,n)=>{e.bind(t)(r,this.refract(n))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const r=t||{},n=!!r.recursive,s=void 0===r.results?[]:r.results;return this.forEach(((t,r,i)=>{n&&void 0!==t.findElements&&t.findElements(e,{results:s,recursive:n}),e(t,r,i)&&s.push(t)})),s}find(e){return new NA(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}};UA.empty=function(){return new this},UA["fantasy-land/empty"]=UA.empty,"undefined"!=typeof Symbol&&(UA.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()});var zA=UA;const HA=kA,VA=_A;var WA=class extends VA{constructor(e,t,r,n){super(new HA,r,n),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}};const GA=OA,JA=TA;var KA=class e extends JA{map(e,t){return this.elements.map((r=>e.bind(t)(r.value,r.key,r)))}filter(t,r){return new e(this.elements.filter((e=>t.bind(r)(e.value,e.key,e))))}reject(e,t){return this.filter(GA(e.bind(t)))}forEach(e,t){return this.elements.forEach(((r,n)=>{e.bind(t)(r.value,r.key,r,n)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}};const YA=OA,ZA=yw,XA=zA,QA=WA,eP=KA;const tP=_A,rP=_A,nP=_A,sP=class extends FA{constructor(e,t,r){super(e||null,t,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}},iP=class extends DA{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}},oP=class extends MA{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}},aP=class extends qA{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}},lP=zA,cP=WA,pP=class extends XA{constructor(e,t,r){super(e||[],t,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((r=>r.key.toValue()!==e||(t=r,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(ZA(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const r=e,n=this.getMember(r);return n?n.value=t:this.content.push(new QA(r,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((r=>e.bind(t)(r.value,r.key,r)))}compactMap(e,t){const r=[];return this.forEach(((n,s,i)=>{const o=e.bind(t)(n,s,i);o&&r.push(o)})),r}filter(e,t){return new eP(this.content).filter(e,t)}reject(e,t){return this.filter(YA(e),t)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}},uP=class extends rP{constructor(e,t,r){super(e||[],t,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}},dP=TA,hP=KA,fP=kA;function mP(e){return e instanceof nP?e:"string"==typeof e?new iP(e):"number"==typeof e?new oP(e):"boolean"==typeof e?new aP(e):null===e?new sP:Array.isArray(e)?new lP(e.map(mP)):"object"==typeof e?new pP(e):e}nP.prototype.ObjectElement=pP,nP.prototype.RefElement=uP,nP.prototype.MemberElement=cP,nP.prototype.refract=mP,dP.prototype.refract=mP;var yP={Element:nP,NullElement:sP,StringElement:iP,NumberElement:oP,BooleanElement:aP,ArrayElement:lP,MemberElement:cP,ObjectElement:pP,LinkElement:class extends tP{constructor(e,t,r){super(e||[],t,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}},RefElement:uP,refract:mP,ArraySlice:dP,ObjectSlice:hP,KeyValuePair:fP};const gP=function(e){return null===e},vP=function(e){return"string"==typeof e||!TO(e)&&CO(e)&&"[object String]"==PO(e)},bP=function(e){return"number"==typeof e||RO(e)&&"[object Number]"==IO(e)},xP=function(e){return!0===e||!1===e||FO(e)&&"[object Boolean]"==_O(e)},wP=yw,$P=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const r=this.serialiseContent(e.content);return void 0!==r&&(t.content=r),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const r=this.deserialiseContent(e.content);return void 0===r&&null!==t.content||(t.content=r),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,r)=>{e&&(t[r.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}},SP=yP;let EP=class{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=SP.Element,this.KeyValuePair=SP.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",SP.NullElement).register("string",SP.StringElement).register("number",SP.NumberElement).register("boolean",SP.BooleanElement).register("array",SP.ArrayElement).register("object",SP.ObjectElement).register("member",SP.MemberElement).register("ref",SP.RefElement).register("link",SP.LinkElement),this.detect(gP,SP.NullElement,!1).detect(vP,SP.StringElement,!1).detect(bP,SP.NumberElement,!1).detect(xP,SP.BooleanElement,!1).detect(Array.isArray,SP.ArrayElement,!1).detect(wP,SP.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,r){return void 0===r||r?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let r=0;r<this.elementDetection.length;r+=1){const n=this.elementDetection[r][0],s=this.elementDetection[r][1];if(n(e)){t=new s(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new $P(this)}};$P.prototype.Namespace=EP;var kP=EP,OP=yP.ArraySlice,jP=yP.Element,AP=yP.StringElement,PP=yP.NumberElement,TP=yP.BooleanElement,CP=yP.NullElement,IP=yP.ArrayElement,RP=yP.ObjectElement,_P=yP.MemberElement,FP=yP.RefElement,DP=yP.LinkElement,MP=yP.refract;const qP=class extends AP{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}},LP=class extends AP{constructor(e,t,r){super(e,t,r),this.element="comment"}},BP=class extends IP{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(Mk(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}},NP=class extends IP{constructor(e,t,r){super(e,t,r),this.element="sourceMap"}get positionStart(){return this.children.filter((e=>e.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((e=>e.classes.contains("position"))).get(1)}set position(e){if(null===e)return;const t=new IP([e.start.row,e.start.column,e.start.char]),r=new IP([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}};class UP extends kP{constructor(){super(),this.register("annotation",qP),this.register("comment",LP),this.register("parseResult",BP),this.register("sourceMap",NP)}}const zP=new UP,HP=e=>{const t=new UP;return oO(e)&&t.use(e),t};var VP,WP={exports:{}};VP=WP,function(){var e,t,r,n,s,i="properties",o="deepProperties",a="propertyDescriptors",l="staticProperties",c="staticDeepProperties",p="staticPropertyDescriptors",u="configuration",d="deepConfiguration",h="deepProps",f="deepStatics",m="deepConf",y="initializers",g="methods",v="composers",b="compose";function x(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[])}function w(e,t){return Array.prototype.slice.call(arguments,2).reduce(e,t)}var $=w.bind(0,(function(e,t){if(t)for(var r=x(t),n=0;n<r.length;n+=1)Object.defineProperty(e,r[n],Object.getOwnPropertyDescriptor(t,r[n]));return e}));function S(e){return"function"==typeof e}function E(e){return e&&"object"==typeof e||S(e)}function k(e){return e&&"object"==typeof e&&e.__proto__==Object.prototype}var O=w.bind(0,(function t(r,n){if(n===e)return r;if(Array.isArray(n))return(Array.isArray(r)?r:[]).concat(n);if(!k(n))return n;for(var s,i,o=x(n),a=0;a<o.length;)s=o[a++],(i=Object.getOwnPropertyDescriptor(n,s)).hasOwnProperty("value")?i.value!==e&&(r[s]=t(k(r[s])||Array.isArray(n[s])?r[s]:{},n[s])):Object.defineProperty(r,s,i);return r}));function j(){return(t=Array.prototype.concat.apply([],arguments).filter((function(e,t,r){return S(e)&&r.indexOf(e)===t}))).length?t:e}function A(e,r){function n(t,n){E(r[t])&&(E(e[t])||(e[t]={}),(n||$)(e[t],r[t]))}function s(n){(t=j(e[n],r[n]))&&(e[n]=t)}return r&&E(r=r[b]||r)&&(n(g),n(i),n(o,O),n(a),n(l),n(c,O),n(p),n(u),n(d,O),s(y),s(v)),e}function P(){return function(n){return t=function t(r){var n,s,l=t[b]||{},c={__proto__:l[g]},p=l[y],u=Array.prototype.slice.apply(arguments),d=l[o];if(d&&O(c,d),(d=l[i])&&$(c,d),(d=l[a])&&Object.defineProperties(c,d),!p||!p.length)return c;for(r===e&&(r={}),l=0;l<p.length;)S(n=p[l++])&&(c=(s=n.call(c,r,{instance:c,stamp:t,args:u}))===e?c:s);return c},(r=n[c])&&O(t,r),(r=n[l])&&$(t,r),(r=n[p])&&Object.defineProperties(t,r),r=S(t[b])?t[b]:P,$(t[b]=function(){return r.apply(this,arguments)},n),t}(Array.prototype.concat.apply([this],arguments).reduce(A,{}))}function T(e){return S(e)&&S(e[b])}var C={};function I(s,i){return function(){return(n={})[s]=i.apply(e,Array.prototype.concat.apply([{}],arguments)),((t=this)&&t[b]||r).call(t,n)}}C[g]=I(g,$),C[i]=C.props=I(i,$),C[y]=C.init=I(y,j),C[v]=I(v,j),C[o]=C[h]=I(o,O),C[l]=C.statics=I(l,$),C[c]=C[f]=I(c,O),C[u]=C.conf=I(u,$),C[d]=C[m]=I(d,O),C[a]=I(a,$),C[p]=I(p,$),r=C[b]=$((function(){for(var x,w,S=0,k=[],A=arguments,C=this;S<A.length;)E(x=A[S++])&&k.push(T(x)?x:((n={})[g]=(w=x)[g]||e,r=w.props,n[i]=E((t=w[i])||r)?$({},r,t):e,n[y]=j(w.init,w[y]),n[v]=j(w[v]),r=w[h],n[o]=E((t=w[o])||r)?O({},r,t):e,n[a]=w[a],r=w.statics,n[l]=E((t=w[l])||r)?$({},r,t):e,r=w[f],n[c]=E((t=w[c])||r)?O({},r,t):e,t=w[p],n[p]=E((r=w.name&&{name:{value:w.name}})||t)?$({},t,r):e,r=w.conf,n[u]=E((t=w[u])||r)?$({},r,t):e,r=w[m],n[d]=E((t=w[d])||r)?O({},r,t):e,n));if(x=P.apply(C||s,k),C&&k.unshift(C),Array.isArray(A=x[b][v]))for(S=0;S<A.length;)x=T(C=A[S++]({stamp:x,composables:k}))?C:x;return x}),C),C.create=function(){return this.apply(e,arguments)},(n={})[l]=C,s=P(n),r[b]=r.bind(),r.version="4.3.2",VP.exports=r}();const GP=mt(WP.exports);var JP=Rs,KP=Ks.indexOf,YP=Eu,ZP=Dt([].indexOf),XP=!!ZP&&1/ZP([1],1,-0)<0;JP({target:"Array",proto:!0,forced:XP||!YP("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return XP?ZP(this,e,t)||0:KP(this,e,t)}});var QP=qc("Array").indexOf,eT=xr,tT=QP,rT=Array.prototype;const nT=mt((function(e){var t=e.indexOf;return e===rT||eT(rT,e)&&t===rT.indexOf?tT:t}));function sT(e,t){if(null==e)return{};var r,n,s=function(e,t){if(null==e)return{};var r,n,s={},i=ci(e);for(n=0;n<i.length;n++)r=i[n],nT(t).call(t,r)>=0||(s[r]=e[r]);return s}(e,t);if(Cc){var i=Cc(e);for(n=0;n<i.length;n++)r=i[n],nT(t).call(t,r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}const iT=(e,t,r)=>{const n=e[t];if(null!=n){if(!r&&"function"==typeof n)return n;const e=r?n.leave:n.enter;if("function"==typeof e)return e}else{const n=r?e.leave:e.enter;if(null!=n){if("function"==typeof n)return n;const e=n[t];if("function"==typeof e)return e}}return null},oT={},aT=e=>null==e?void 0:e.type,lT=e=>"string"==typeof aT(e),cT=(e,{visitFnGetter:t=iT,nodeTypeGetter:r=aT}={})=>{const n=new Array(e.length);return{enter(s,...i){for(let o=0;o<e.length;o+=1)if(null==n[o]){const a=t(e[o],r(s),!1);if("function"==typeof a){const t=a.call(e[o],s,...i);if(!1===t)n[o]=s;else if(t===oT)n[o]=oT;else if(void 0!==t)return t}}},leave(s,...i){for(let o=0;o<e.length;o+=1)if(null==n[o]){const a=t(e[o],r(s),!0);if("function"==typeof a){const t=a.call(e[o],s,...i);if(t===oT)n[o]=oT;else if(void 0!==t&&!1!==t)return t}}else n[o]===s&&(n[o]=null)}}},pT=(e,t,{keyMap:r=null,state:n={},breakSymbol:s=oT,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=iT,nodeTypeGetter:l=aT,nodePredicate:c=lT,detectCycles:p=!0}={})=>{const u=r||{};let d,h,f=Array.isArray(e),m=[e],y=-1,g=[];const v=[],b=[];let x=e;do{y+=1;const e=y===m.length;let r,w;const $=e&&0!==g.length;if(e){if(r=0===b.length?void 0:v.pop(),w=h,h=b.pop(),$){w=f?w.slice():Object.create(Object.getPrototypeOf(w),Object.getOwnPropertyDescriptors(w));let e=0;for(let t=0;t<g.length;t+=1){let r=g[t][0];const n=g[t][1];f&&(r-=e),f&&n===i?(w.splice(r,1),e+=1):w[r]=n}}y=d.index,m=d.keys,g=d.edits,f=d.inArray,d=d.prev}else{if(r=h?f?y:m[y]:void 0,w=h?h[r]:x,w===i||void 0===w)continue;h&&v.push(r)}if(b.includes(w))continue;let S;if(!Array.isArray(w)){if(!c(w))throw new Error(`Invalid AST Node: ${JSON.stringify(w)}`);if(p&&b.includes(w)){v.pop();continue}const i=a(t,l(w),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;if(S=i.call(t,w,r,h,v,b),S===s)break;if(S===o){if(!e){v.pop();continue}}else if(void 0!==S&&(g.push([r,S]),!e)){if(!c(S)){v.pop();continue}w=S}}}void 0===S&&$&&g.push([r,w]),e||(d={inArray:f,index:y,keys:m,edits:g,prev:d},f=Array.isArray(w),m=f?w:u[l(w)]||[],y=-1,g=[],h&&b.push(h),h=w)}while(void 0!==d);return 0!==g.length&&([,x]=g[g.length-1]),x};pT[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:n={},breakSymbol:s=oT,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=iT,nodeTypeGetter:l=aT,nodePredicate:c=lT,detectCycles:p=!0}={})=>{const u=r||{};let d,h,f=Array.isArray(e),m=[e],y=-1,g=[];const v=[],b=[];let x=e;do{y+=1;const e=y===m.length;let r,w;const $=e&&0!==g.length;if(e){if(r=0===b.length?void 0:v.pop(),w=h,h=b.pop(),$){w=f?w.slice():Object.create(Object.getPrototypeOf(w),Object.getOwnPropertyDescriptors(w));let e=0;for(let t=0;t<g.length;t+=1){let r=g[t][0];const n=g[t][1];f&&(r-=e),f&&n===i?(w.splice(r,1),e+=1):w[r]=n}}y=d.index,m=d.keys,g=d.edits,f=d.inArray,d=d.prev}else{if(r=h?f?y:m[y]:void 0,w=h?h[r]:x,w===i||void 0===w)continue;h&&v.push(r)}let S;if(!Array.isArray(w)){if(!c(w))throw new Error(`Invalid AST Node: ${JSON.stringify(w)}`);if(p&&b.includes(w)){v.pop();continue}const i=a(t,l(w),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;if(S=await i.call(t,w,r,h,v,b),S===s)break;if(S===o){if(!e){v.pop();continue}}else if(void 0!==S&&(g.push([r,S]),!e)){if(!c(S)){v.pop();continue}w=S}}}void 0===S&&$&&g.push([r,w]),e||(d={inArray:f,index:y,keys:m,edits:g,prev:d},f=Array.isArray(w),m=f?w:u[l(w)]||[],y=-1,g=[],h&&b.push(h),h=w)}while(void 0!==d);return 0!==g.length&&([,x]=g[g.length-1]),x};const uT=(e,t)=>"function"==typeof(null==t?void 0:t[e]),dT=e=>null!=e&&Object.prototype.hasOwnProperty.call(e,"_storedElement")&&Object.prototype.hasOwnProperty.call(e,"_content"),hT=(e,t)=>{var r;return(null==t||null===(r=t.primitive)||void 0===r?void 0:r.call(t))===e},fT=(e,t)=>{var r,n;return(null==t||null===(r=t.classes)||void 0===r||null===(n=r.includes)||void 0===n?void 0:n.call(r,e))||!1},mT=(e,t)=>(null==t?void 0:t.element)===e,yT=e=>e({hasMethod:uT,hasBasicElementProps:dT,primitiveEq:hT,isElementType:mT,hasClass:fT}),gT=yT((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof jP||e(r)&&t(void 0,r))),vT=yT((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof AP||e(r)&&t("string",r))),bT=yT((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof PP||e(r)&&t("number",r))),xT=yT((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof CP||e(r)&&t("null",r))),wT=yT((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof TP||e(r)&&t("boolean",r))),$T=yT((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof RP||e(n)&&t("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),ST=yT((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof IP&&!(n instanceof RP)||e(n)&&t("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),ET=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof _P||e(n)&&t("member",n)&&r(void 0,n))),kT=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof DP||e(n)&&t("link",n)&&r(void 0,n))),OT=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof FP||e(n)&&t("ref",n)&&r(void 0,n))),jT=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof qP||e(n)&&t("annotation",n)&&r("array",n))),AT=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof LP||e(n)&&t("comment",n)&&r("string",n))),PT=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof BP||e(n)&&t("parseResult",n)&&r("array",n))),TT=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof NP||e(n)&&t("sourceMap",n)&&r("array",n))),CT=e=>mT("object",e)||mT("array",e)||mT("boolean",e)||mT("number",e)||mT("string",e)||mT("null",e)||mT("member",e),IT=e=>{var t,r;return TT(null==e||null===(t=e.meta)||void 0===t||null===(r=t.get)||void 0===r?void 0:r.call(t,"sourceMap"))},RT=(e,t)=>0===e.length||sS(bO(t.classes.toValue()),e),_T=Object.freeze(Object.defineProperty({__proto__:null,hasElementSourceMap:IT,includesClasses:RT,includesSymbols:(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!ST(r)&&sS(bO(r.toValue()),e)},isAnnotationElement:jT,isArrayElement:ST,isBooleanElement:wT,isCommentElement:AT,isElement:gT,isLinkElement:kT,isMemberElement:ET,isNullElement:xT,isNumberElement:bT,isObjectElement:$T,isParseResultElement:PT,isPrimitiveElement:CT,isRefElement:OT,isSourceMapElement:TT,isStringElement:vT},Symbol.toStringTag,{value:"Module"})),FT=["keyMap"],DT=["keyMap"];function MT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function qT(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?MT(Object(r),!0).forEach((function(t){fh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):MT(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const LT=e=>$T(e)?"ObjectElement":ST(e)?"ArrayElement":ET(e)?"MemberElement":vT(e)?"StringElement":wT(e)?"BooleanElement":bT(e)?"NumberElement":xT(e)?"NullElement":kT(e)?"LinkElement":OT(e)?"RefElement":void 0,BT=bE(LT,Kk),NT={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]},UT=GP({props:{result:[],predicate:z$,returnOnTrue:void 0,returnOnFalse:void 0},init({predicate:e=this.predicate,returnOnTrue:t=this.returnOnTrue,returnOnFalse:r=this.returnOnFalse}={}){this.result=[],this.predicate=e,this.returnOnTrue=t,this.returnOnFalse=r},methods:{enter(e){return this.predicate(e)?(this.result.push(e),this.returnOnTrue):this.returnOnFalse}}}),zT=(e,t,r={})=>{let{keyMap:n=NT}=r,s=sT(r,FT);return pT(e,t,qT({keyMap:n,nodeTypeGetter:LT,nodePredicate:BT},s))};zT[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{let{keyMap:n=NT}=r,s=sT(r,DT);return pT[Symbol.for("nodejs.util.promisify.custom")](e,t,qT({keyMap:n,nodeTypeGetter:LT,nodePredicate:BT},s))};const HT=["keyMap"],VT=["keyMap"];function WT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function GT(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?WT(Object(r),!0).forEach((function(t){fh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):WT(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const JT=e=>"string"==typeof(null==e?void 0:e.type)?e.type:LT(e),KT=GT({EphemeralObject:["content"],EphemeralArray:["content"]},NT),YT=(e,t,r={})=>{let{keyMap:n=KT}=r,s=sT(r,HT);return zT(e,t,GT({keyMap:n,nodeTypeGetter:JT,nodePredicate:H$,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node")},s))};YT[Symbol.for("nodejs.util.promisify.custom")]=async(e,t={})=>{let{keyMap:r=KT}=t,n=sT(t,VT);return zT[Symbol.for("nodejs.util.promisify.custom")](e,visitor,GT({keyMap:r,nodeTypeGetter:JT,nodePredicate:H$,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node")},n))};const ZT=GP.init((function(){const e=new WeakMap;this.BooleanElement=function(e){return e.toValue()},this.NumberElement=function(e){return e.toValue()},this.StringElement=function(e){return e.toValue()},this.NullElement=function(){return null},this.ObjectElement={enter(t){if(e.has(t))return e.get(t).toReference();const r=new class{constructor(e){fh(this,"type","EphemeralObject"),fh(this,"content",[]),fh(this,"reference",void 0),this.content=e,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}}(t.content);return e.set(t,r),r}},this.EphemeralObject={leave:e=>e.toObject()},this.MemberElement={enter:e=>[e.key,e.value]},this.ArrayElement={enter(t){if(e.has(t))return e.get(t).toReference();const r=new class{constructor(e){fh(this,"type","EphemeralArray"),fh(this,"content",[]),fh(this,"reference",void 0),this.content=e,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}}(t.content);return e.set(t,r),r}},this.EphemeralArray={leave:e=>e.toArray()}}));function XT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const QT=()=>{const e=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?XT(Object(r),!0).forEach((function(t){fh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XT(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},_T);return{predicates:e,namespace:zP}},eC=(e,t,r={})=>{if(0===t.length)return e;const n=xk(QT,"toolboxCreator",r),s=xk({},"visitorOptions",r),i=xk(LT,"nodeTypeGetter",s),o=n(),a=t.map((e=>e(o))),l=cT(a.map(xk({},"visitor")),{nodeTypeGetter:i});a.forEach(wO(["pre"],[]));const c=zT(e,l,s);return a.forEach(wO(["post"],[])),c},tC=class extends Array{constructor(...e){super(...e),fh(this,"unknownMediaType","application/octet-stream")}filterByFormat(){throw new Error("Not implemented!")}findBy(){throw new Error("Not implemented")}latest(){throw new Error("Not implemented!")}};function rC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function nC(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rC(Object(r),!0).forEach((function(t){fh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rC(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const sC=e=>(t,r={})=>((e,{Type:t,plugins:r=[]})=>{const n=new t(e);return eC(n,r,{toolboxCreator:QT,visitorOptions:{nodeTypeGetter:LT}})})(t,nC(nC({},r),{},{Type:e}));RP.refract=sC(RP),IP.refract=sC(IP),AP.refract=sC(AP),TP.refract=sC(TP),CP.refract=sC(CP),PP.refract=sC(PP),DP.refract=sC(DP),FP.refract=sC(FP),qP.refract=sC(qP),LP.refract=sC(LP),BP.refract=sC(BP),NP.refract=sC(NP);const iC=(e,t)=>{const r=UT({predicate:e,returnOnTrue:oT});return zT(t,r),yk(void 0,[0],r.result)},oC=(e,t=new WeakMap)=>(ET(e)?(t.set(e.key,e),oC(e.key,t),t.set(e.value,e),oC(e.value,t)):e.children.forEach((r=>{t.set(r,e),oC(r,t)})),t),aC=GP.init((function({element:e}){let t;this.transclude=function(r,n){var s;if(r===e)return n;if(r===n)return e;t=null!==(s=t)&&void 0!==s?s:oC(e);const i=t.get(r);return Mk(i)?void 0:($T(i)?((e,t,r)=>{const n=r.get(e);$T(n)&&(n.content=n.map(((s,i,o)=>o===e?(r.delete(e),r.set(t,n),t):o)))})(r,n,t):ST(i)?((e,t,r)=>{const n=r.get(e);ST(n)&&(n.content=n.map((s=>s===e?(r.delete(e),r.set(t,n),t):s)))})(r,n,t):ET(i)&&((e,t,r)=>{const n=r.get(e);ET(n)&&(n.key===e&&(n.key=t,r.delete(e),r.set(t,n)),n.value===e&&(n.value=t,r.delete(e),r.set(t,n)))})(r,n,t),e)}})),lC=aC,cC=(e,t)=>{const r=jE(e,t);return lk((e=>{if(oO(e)&&WE("$ref",e)&&wk(Kk,"$ref",e)){const t=ak(["$ref"],e),n=AO("#/",t);return ak(n.split("/"),r)}return oO(e)?cC(e,r):e}),e)};function pC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function uC(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pC(Object(r),!0).forEach((function(t){fh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pC(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const dC=e=>{const t=e.meta.clone(),r=e.attributes.clone();return new e.constructor(void 0,t,r)},hC=e=>new _P(e.key,e.value,e.meta.clone(),e.attributes.clone()),fC=(e,t)=>t.clone&&t.isMergeableElement(e)?gC(dC(e),e,t):e,mC=(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>fC(e,r))),yC=(e,t,r)=>{const n=$T(e)?dC(e):dC(t);return $T(e)&&e.forEach(((e,t,s)=>{const i=hC(s);i.value=fC(e,r),n.content.push(i)})),t.forEach(((t,s,i)=>{const o=s.toValue();let a;if($T(e)&&e.hasKey(o)&&r.isMergeableElement(t)){const n=e.get(o);a=hC(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return gC;const r=t.customMerge(e,t);return"function"==typeof r?r:gC})(s,r)(n,t)}else a=hC(i),a.value=fC(t,r);n.remove(o),n.content.push(a)})),n};function gC(e,t,r){var n,s,i;const o={clone:!0,isMergeableElement:e=>$T(e)||ST(e),arrayElementMerge:mC,objectElementMerge:yC,customMerge:void 0},a=uC(uC({},o),r);a.isMergeableElement=null!==(n=a.isMergeableElement)&&void 0!==n?n:o.isMergeableElement,a.arrayElementMerge=null!==(s=a.arrayElementMerge)&&void 0!==s?s:o.arrayElementMerge,a.objectElementMerge=null!==(i=a.objectElementMerge)&&void 0!==i?i:o.objectElementMerge;const l=ST(t);return l===ST(e)?l&&"function"==typeof a.arrayElementMerge?a.arrayElementMerge(e,t,a):a.objectElementMerge(e,t,a):fC(t,a)}gC.all=(e,t)=>{if(!Array.isArray(e))throw new Error("first argument should be an array");return 0===e.length?new RP:e.reduce(((e,r)=>gC(e,r,t)),dC(e[0]))};const vC=(e,t=zP)=>{if(Kk(e))try{return t.fromRefract(JSON.parse(e))}catch{}return oO(e)&&WE("element",e)?t.fromRefract(e):t.toElement(e)},bC=e=>YT(e,ZT());class xC extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}}class wC extends Error{constructor(e){super(`Invalid $ref pointer "${e}". Pointers must begin with "/"`),this.name=this.constructor.name,this.message=`Invalid $ref pointer "${e}". Pointers must begin with "/"`,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(`Invalid $ref pointer "${e}". Pointers must begin with "/"`).stack}}const $C=bE(Ok(/~/g,"~0"),Ok(/\//g,"~1"),encodeURIComponent),SC=bE(Ok(/~1/g,"/"),Ok(/~0/g,"~"),(e=>{try{return decodeURIComponent(e)}catch{return e}})),EC=(e,t)=>{const r=(e=>{if(Yk(e))return[];if(!Tk("/",e))throw new wC(e);const t=bE(Pk("/"),FS(SC))(e);return vE(t)})(e);return r.reduce(((e,t)=>{if($T(e)){if(!e.hasKey(t))throw new xC(`Evaluation failed on token: "${t}"`);return e.get(t)}if(ST(e)){if(!(t in e.content)||!uO(Number(t)))throw new xC(`Evaluation failed on token: "${t}"`);return e.get(Number(t))}throw new xC(`Evaluation failed on token: "${t}"`)}),t)},kC=e=>{const t=(e=>{const t=e.indexOf("#");return-1!==t?e.substring(t):"#"})(e);return AO("#",t)};class OC extends tC{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(e="3.1.0",t="generic"){const r="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(r)))||this.unknownMediaType}latest(e="generic"){return DE(this.filterByFormat(e))}}const jC=new OC("application/vnd.oai.openapi;version=3.1.0","application/vnd.oai.openapi+json;version=3.1.0","application/vnd.oai.openapi+yaml;version=3.1.0"),AC=class extends RP{constructor(e,t,r){super(e,t,r),this.element="callback"}},PC=class extends RP{constructor(e,t,r){super(e,t,r),this.element="components"}get schemas(){return this.get("schemas")}set schemas(e){this.set("schemas",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get requestBodies(){return this.get("requestBodies")}set requestBodies(e){this.set("requestBodies",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(e){this.set("securitySchemes",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}},TC=class extends RP{constructor(e,t,r){super(e,t,r),this.element="contact"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}get email(){return this.get("email")}set email(e){this.set("email",e)}},CC=class extends RP{constructor(e,t,r){super(e,t,r),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(e){this.set("propertyName",e)}get mapping(){return this.get("mapping")}set mapping(e){this.set("mapping",e)}},IC=class extends RP{constructor(e,t,r){super(e,t,r),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(e){this.set("allowedReserved",e)}},RC=class extends RP{constructor(e,t,r){super(e,t,r),this.element="example"}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get value(){return this.get("value")}set value(e){this.set("value",e)}get externalValue(){return this.get("externalValue")}set externalValue(e){this.set("externalValue",e)}},_C=class extends RP{constructor(e,t,r){super(e,t,r),this.element="externalDocumentation"}get description(){return this.get("description")}set description(e){this.set("description",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}};let FC=class extends RP{constructor(e,t,r){super(e,t,r),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new TP(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new TP(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}};Object.defineProperty(FC.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const DC=FC,MC=class extends RP{constructor(e,t,r){super(e,t,r),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get termsOfService(){return this.get("termsOfService")}set termsOfService(e){this.set("termsOfService",e)}get contact(){return this.get("contact")}set contact(e){this.set("contact",e)}get license(){return this.get("license")}set license(e){this.set("license",e)}get version(){return this.get("version")}set version(e){this.set("version",e)}},qC=class extends RP{constructor(e,t,r){super(e,t,r),this.element="license"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}},LC=class extends RP{constructor(e,t,r){super(e,t,r),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(e){this.set("operationRef",e)}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get operation(){var e,t;return vT(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):vT(this.operationId)?null===(t=this.operationId)||void 0===t?void 0:t.meta.get("operation"):void 0}set operation(e){this.set("operation",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get server(){return this.get("server")}set server(e){this.set("server",e)}},BC=class extends RP{constructor(e,t,r){super(e,t,r),this.element="mediaType"}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get encoding(){return this.get("encoding")}set encoding(e){this.set("encoding",e)}},NC=class extends RP{constructor(e,t,r){super(e,t,r),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(e){this.set("authorizationUrl",e)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(e){this.set("tokenUrl",e)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(e){this.set("refreshUrl",e)}get scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}},UC=class extends RP{constructor(e,t,r){super(e,t,r),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(e){this.set("implicit",e)}get password(){return this.get("password")}set password(e){this.set("password",e)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(e){this.set("clientCredentials",e)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(e){this.set("authorizationCode",e)}},zC=class extends AP{constructor(e,t,r){super(e,t,r),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}},HC=class extends RP{constructor(e,t,r){super(e,t,r),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}},VC=class extends RP{constructor(e,t,r){super(e,t,r),this.element="operation"}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}set externalDocs(e){this.set("externalDocs",e)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new TP(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get servers(){return this.get("severs")}set servers(e){this.set("servers",e)}};let WC=class extends RP{constructor(e,t,r){super(e,t,r),this.element="parameter"}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get required(){return this.hasKey("required")?this.get("required"):new TP(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new TP(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}};Object.defineProperty(WC.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const GC=WC,JC=class extends RP{constructor(e,t,r){super(e,t,r),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}},KC=class extends RP{constructor(e,t,r){super(e,t,r),this.element="paths"}},YC=class extends RP{constructor(e,t,r){super(e,t,r),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}},ZC=class extends RP{constructor(e,t,r){super(e,t,r),this.element="requestBody"}get description(){return this.get("description")}set description(e){this.set("description",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get required(){return this.hasKey("required")?this.get("required"):new TP(!1)}set required(e){this.set("required",e)}},XC=class extends RP{constructor(e,t,r){super(e,t,r),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}},QC=class extends RP{constructor(e,t,r){super(e,t,r),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}},eI=class extends RP{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("idProp",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}},tI=class extends RP{constructor(e,t,r){super(e,t,r),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}},rI=class extends RP{constructor(e,t,r){super(e,t,r),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}},nI=class extends RP{constructor(e,t,r){super(e,t,r),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}},sI={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",eI),t.register("jSONReference",tI),t.register("media",rI),t.register("linkDescription",nI),t}};function iI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const oI=e=>{if(gT(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},aI=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?iI(Object(r),!0).forEach((function(t){fh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iI(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"]},NT),lI=GP({props:{element:null},methods:{copyMetaAndAttributes(e,t){IT(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}}),cI=lI,pI=GP(cI,{methods:{enter(e){return this.element=e.clone(),oT}}});function uI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function dI(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?uI(Object(r),!0).forEach((function(t){fh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uI(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const hI=GP(cI,{props:{specObj:null,passingOptionsNames:["specObj"]},init({specObj:e=this.specObj}){this.specObj=e},methods:{retrievePassingOptions(){return vk(this.passingOptionsNames,this)},retrieveFixedFields(e){return bE(ak(["visitors",...e,"fixedFields"]),mS)(this.specObj)},retrieveVisitor(e){return gk(Hk,["visitors",...e],this.specObj)?ak(["visitors",...e],this.specObj):ak(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return this.retrieveVisitor(e)(dI(dI({},r),t))},toRefractedElement(e,t,r={}){const n=this.retrieveVisitorInstance(e,r),s=Object.getPrototypeOf(n);return Mk(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?t.clone():(zT(t,n,dI({keyMap:aI,nodeTypeGetter:oI},r)),n.element)}}}),fI=GP(hI,{props:{specPath:hO,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,n,s)=>{if(vT(n)&&r.includes(n.toValue())&&!this.ignoredFields.includes(n.toValue())){const r=this.toRefractedElement([...t,"fixedFields",n.toValue()],e),i=new _P(n.clone(),r);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(n.toValue())||this.element.content.push(s.clone())})),this.copyMetaAndAttributes(e,this.element),oT}}}),mI=GP(fI,pI,{props:{specPath:YS(["document","objects","JSONSchema"])},init(){this.element=new eI}}),yI=pI,gI=pI,vI=pI,bI=pI,xI=pI,wI=pI,$I=pI,SI=pI,EI=pI,kI=pI,OI=GP({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),jI=OI,AI=e=>$T(e)&&e.hasKey("$ref"),PI=GP(hI,jI,pI,{methods:{ObjectElement(e){const t=AI(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),oT},ArrayElement(e){return this.element=new IP,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=AI(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),oT}}}),TI=pI,CI=pI,II=pI,RI=pI,_I=pI,FI=GP(pI,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-required"),oT}}}),DI=GP(hI,{props:{fieldPatternPredicate:z$,specPath:hO,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){return e.forEach(((e,t,r)=>{if(!this.ignoredFields.includes(t.toValue())&&this.fieldPatternPredicate(t.toValue())){const n=this.specPath(e),s=this.toRefractedElement(n,e),i=new _P(t.clone(),s);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(t.toValue())||this.element.content.push(r.clone())})),this.copyMetaAndAttributes(e,this.element),oT}}}),MI=GP(DI,{props:{fieldPatternPredicate:eO}}),qI=GP(MI,jI,pI,{props:{specPath:e=>AI(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new RP,this.element.classes.push("json-schema-properties")}}),LI=GP(MI,jI,pI,{props:{specPath:e=>AI(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new RP,this.element.classes.push("json-schema-patternProperties")}}),BI=GP(MI,jI,pI,{props:{specPath:e=>AI(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new RP,this.element.classes.push("json-schema-dependencies")}}),NI=GP(pI,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-enum"),oT}}}),UI=GP(pI,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),oT},ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),oT}}}),zI=GP(hI,jI,pI,{init(){this.element=new IP,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=AI(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),oT}}}),HI=GP(hI,jI,pI,{init(){this.element=new IP,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=AI(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),oT}}}),VI=GP(hI,jI,pI,{init(){this.element=new IP,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=AI(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),oT}}}),WI=GP(MI,jI,pI,{props:{specPath:e=>AI(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new RP,this.element.classes.push("json-schema-definitions")}}),GI=pI,JI=pI,KI=pI,YI=pI,ZI=pI,XI=GP(hI,jI,pI,{init(){this.element=new IP,this.element.classes.push("json-schema-links")},methods:{ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),oT}}}),QI=pI,eR=GP(fI,pI,{props:{specPath:YS(["document","objects","JSONReference"])},init(){this.element=new tI},methods:{ObjectElement(e){const t=fI.compose.methods.ObjectElement.call(this,e);return vT(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),tR=GP(pI,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),oT}}}),rR=GP(hI,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>ZE(e,YS(t),Dk))),r=vO(t)(e);return this.element=this.toRefractedElement(r,e),oT}}}),nR=GP(rR,{props:{alternator:[{predicate:AI,specPath:["document","objects","JSONReference"]},{predicate:H$,specPath:["document","objects","JSONSchema"]}]}}),sR={visitors:{value:pI,JSONSchemaOrJSONReferenceVisitor:nR,document:{objects:{JSONSchema:{$visitor:mI,fixedFields:{id:yI,$schema:gI,multipleOf:vI,maximum:bI,exclusiveMaximum:xI,minimum:wI,exclusiveMinimum:$I,maxLength:SI,minLength:EI,pattern:kI,additionalItems:nR,items:PI,maxItems:TI,minItems:CI,uniqueItems:II,maxProperties:RI,minProperties:_I,required:FI,properties:qI,additionalProperties:nR,patternProperties:LI,dependencies:BI,enum:NI,type:UI,allOf:zI,anyOf:HI,oneOf:VI,not:nR,definitions:WI,title:GI,description:JI,default:KI,format:YI,base:ZI,links:XI,media:{$ref:"#/visitors/document/objects/Media"},readOnly:QI}},JSONReference:{$visitor:eR,fixedFields:{$ref:tR}},Media:{$visitor:GP(fI,pI,{props:{specPath:YS(["document","objects","Media"])},init(){this.element=new rI}}),fixedFields:{binaryEncoding:pI,type:pI}},LinkDescription:{$visitor:GP(fI,pI,{props:{specPath:YS(["document","objects","LinkDescription"])},init(){this.element=new nI}}),fixedFields:{href:pI,rel:pI,title:pI,targetSchema:nR,mediaType:pI,method:pI,encType:pI,schema:nR}}}}}},iR=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof eI||e(n)&&t("JSONSchemaDraft4",n)&&r("object",n))),oR=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof tI||e(n)&&t("JSONReference",n)&&r("object",n))),aR=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof rI||e(n)&&t("media",n)&&r("object",n))),lR=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof nI||e(n)&&t("linkDescription",n)&&r("object",n))),cR=Object.freeze(Object.defineProperty({__proto__:null,isJSONReferenceElement:oR,isJSONSchemaElement:iR,isLinkDescriptionElement:lR,isMediaElement:aR},Symbol.toStringTag,{value:"Module"}));function pR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function uR(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pR(Object(r),!0).forEach((function(t){fh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pR(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const dR=()=>{const e=HP(sI);return{predicates:uR(uR({},cR),{},{isStringElement:vT}),namespace:e}};function hR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const fR=e=>(t,r={})=>((e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=sR}={})=>{const s=MP(e),i=cC(n),o=wO(t,[],i);return zT(s,o,{state:{specObj:i}}),eC(o.element,r,{toolboxCreator:dR,visitorOptions:{keyMap:aI,nodeTypeGetter:oI}})})(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hR(Object(r),!0).forEach((function(t){fh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hR(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({specPath:e},r));eI.refract=fR(["visitors","document","objects","JSONSchema","$visitor"]),tI.refract=fR(["visitors","document","objects","JSONReference","$visitor"]),rI.refract=fR(["visitors","document","objects","Media","$visitor"]),nI.refract=fR(["visitors","document","objects","LinkDescription","$visitor"]);const mR=class extends eI{constructor(e,t,r){super(e,t,r),this.element="schema",this.classes.push("json-schema-draft-4")}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get nullable(){return this.get("nullable")}set nullable(e){this.set("nullable",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}},yR=class extends RP{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}},gR=class extends RP{constructor(e,t,r){super(e,t,r),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get scheme(){return this.get("scheme")}set scheme(e){this.set("scheme",e)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(e){this.set("bearerFormat",e)}get flows(){return this.get("flows")}set flows(e){this.set("flows",e)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(e){this.set("openIdConnectUrl",e)}},vR=class extends RP{constructor(e,t,r){super(e,t,r),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get variables(){return this.get("variables")}set variables(e){this.set("variables",e)}},bR=class extends RP{constructor(e,t,r){super(e,t,r),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}},xR=class extends RP{constructor(e,t,r){super(e,t,r),this.element="tag"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}},wR=class extends RP{constructor(e,t,r){super(e,t,r),this.element="xml"}get name(){return this.get("name")}set name(e){this.set("name",e)}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get prefix(){return this.get("prefix")}set prefix(e){this.set("prefix",e)}get attribute(){return this.get("attribute")}set attribute(e){this.set("attribute",e)}get wrapped(){return this.get("wrapped")}set wrapped(e){this.set("wrapped",e)}},$R={namespace:e=>{const{base:t}=e;return t.register("callback",AC),t.register("components",PC),t.register("contact",TC),t.register("discriminator",CC),t.register("encoding",IC),t.register("example",RC),t.register("externalDocumentation",_C),t.register("header",DC),t.register("info",MC),t.register("license",qC),t.register("link",LC),t.register("mediaType",BC),t.register("oAuthFlow",NC),t.register("oAuthFlows",UC),t.register("openapi",zC),t.register("openApi3_0",HC),t.register("operation",VC),t.register("parameter",GC),t.register("pathItem",JC),t.register("paths",KC),t.register("reference",YC),t.register("requestBody",ZC),t.register("response",XC),t.register("responses",QC),t.register("schema",mR),t.register("securityRequirement",yR),t.register("securityScheme",gR),t.register("server",vR),t.register("serverVariable",bR),t.register("tag",xR),t.register("xml",wR),t}};class SR extends IP{constructor(e,t,r){super(e,t,r),this.classes.push(SR.primaryClass)}}fh(SR,"primaryClass","servers");const ER=SR;class kR extends IP{constructor(e,t,r){super(e,t,r),this.classes.push(kR.primaryClass)}}fh(kR,"primaryClass","security");const OR=kR;class jR extends IP{constructor(e,t,r){super(e,t,r),this.classes.push(jR.primaryClass)}}fh(jR,"primaryClass","tags");const AR=jR;class PR extends RP{constructor(e,t,r){super(e,t,r),this.classes.push(PR.primaryClass)}}fh(PR,"primaryClass","server-variables");const TR=PR;class CR extends RP{constructor(e,t,r){super(e,t,r),this.classes.push(CR.primaryClass)}}fh(CR,"primaryClass","components-schemas");const IR=CR;class RR extends RP{constructor(e,t,r){super(e,t,r),this.classes.push(RR.primaryClass)}}fh(RR,"primaryClass","components-responses");const _R=RR;class FR extends RP{constructor(e,t,r){super(e,t,r),this.classes.push(FR.primaryClass),this.classes.push("parameters")}}fh(FR,"primaryClass","components-parameters");const DR=FR;class MR extends RP{constructor(e,t,r){super(e,t,r),this.classes.push(MR.primaryClass),this.classes.push("examples")}}fh(MR,"primaryClass","components-examples");const qR=MR;class LR extends RP{constructor(e,t,r){super(e,t,r),this.classes.push(LR.primaryClass)}}fh(LR,"primaryClass","components-request-bodies");const BR=LR;class NR extends RP{constructor(e,t,r){super(e,t,r),this.classes.push(NR.primaryClass)}}fh(NR,"primaryClass","components-headers");const UR=NR;class zR extends RP{constructor(e,t,r){super(e,t,r),this.classes.push(zR.primaryClass)}}fh(zR,"primaryClass","components-security-schemes");const HR=zR;class VR extends RP{constructor(e,t,r){super(e,t,r),this.classes.push(VR.primaryClass)}}fh(VR,"primaryClass","components-links");const WR=VR;class GR extends RP{constructor(e,t,r){super(e,t,r),this.classes.push(GR.primaryClass)}}fh(GR,"primaryClass","components-callbacks");const JR=GR;class KR extends IP{constructor(e,t,r){super(e,t,r),this.classes.push(KR.primaryClass),this.classes.push("servers")}}fh(KR,"primaryClass","path-item-servers");const YR=KR;class ZR extends IP{constructor(e,t,r){super(e,t,r),this.classes.push(ZR.primaryClass),this.classes.push("parameters")}}fh(ZR,"primaryClass","path-item-parameters");const XR=ZR;class QR extends IP{constructor(e,t,r){super(e,t,r),this.classes.push(QR.primaryClass),this.classes.push("parameters")}}fh(QR,"primaryClass","operation-parameters");const e_=QR;class t_ extends RP{constructor(e,t,r){super(e,t,r),this.classes.push(t_.primaryClass),this.classes.push("examples")}}fh(t_,"primaryClass","parameter-examples");const r_=t_;class n_ extends RP{constructor(e,t,r){super(e,t,r),this.classes.push(n_.primaryClass),this.classes.push("content")}}fh(n_,"primaryClass","parameter-content");const s_=n_;class i_ extends IP{constructor(e,t,r){super(e,t,r),this.classes.push(i_.primaryClass)}}fh(i_,"primaryClass","operation-tags");const o_=i_;class a_ extends RP{constructor(e,t,r){super(e,t,r),this.classes.push(a_.primaryClass)}}fh(a_,"primaryClass","operation-callbacks");const l_=a_;class c_ extends IP{constructor(e,t,r){super(e,t,r),this.classes.push(c_.primaryClass),this.classes.push("security")}}fh(c_,"primaryClass","operation-security");const p_=c_;class u_ extends IP{constructor(e,t,r){super(e,t,r),this.classes.push(u_.primaryClass),this.classes.push("servers")}}fh(u_,"primaryClass","operation-servers");const d_=u_;class h_ extends RP{constructor(e,t,r){super(e,t,r),this.classes.push(h_.primaryClass),this.classes.push("content")}}fh(h_,"primaryClass","request-body-content");const f_=h_;class m_ extends RP{constructor(e,t,r){super(e,t,r),this.classes.push(m_.primaryClass),this.classes.push("examples")}}fh(m_,"primaryClass","media-type-examples");const y_=m_;class g_ extends RP{constructor(e,t,r){super(e,t,r),this.classes.push(g_.primaryClass)}}fh(g_,"primaryClass","media-type-encoding");const v_=g_;class b_ extends RP{constructor(e,t,r){super(e,t,r),this.classes.push(b_.primaryClass)}}fh(b_,"primaryClass","encoding-headers");const x_=b_;class w_ extends RP{constructor(e,t,r){super(e,t,r),this.classes.push(w_.primaryClass)}}fh(w_,"primaryClass","response-headers");const $_=w_;class S_ extends RP{constructor(e,t,r){super(e,t,r),this.classes.push(S_.primaryClass),this.classes.push("content")}}fh(S_,"primaryClass","response-content");const E_=S_;class k_ extends RP{constructor(e,t,r){super(e,t,r),this.classes.push(k_.primaryClass)}}fh(k_,"primaryClass","response-links");const O_=k_;class j_ extends RP{constructor(e,t,r){super(e,t,r),this.classes.push(j_.primaryClass)}}fh(j_,"primaryClass","discriminator-mapping");const A_=j_;class P_ extends RP{constructor(e,t,r){super(e,t,r),this.classes.push(P_.primaryClass)}}fh(P_,"primaryClass","oauth-flow-scopes");const T_=P_;class C_ extends RP{constructor(e,t,r){super(e,t,r),this.classes.push(C_.primaryClass)}}fh(C_,"primaryClass","link-parameters");const I_=C_;class R_ extends RP{constructor(e,t,r){super(e,t,r),this.classes.push(R_.primaryClass),this.classes.push("examples")}}fh(R_,"primaryClass","header-examples");const __=R_;class F_ extends RP{constructor(e,t,r){super(e,t,r),this.classes.push(F_.primaryClass),this.classes.push("content")}}fh(F_,"primaryClass","header-content");const D_=F_;function M_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const q_=e=>{if(gT(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},L_=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?M_(Object(r),!0).forEach((function(t){fh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_0Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"]},NT),B_=GP({props:{element:null},methods:{copyMetaAndAttributes(e,t){IT(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}}),N_=B_;function U_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function z_(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?U_(Object(r),!0).forEach((function(t){fh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const H_=GP(N_,{props:{passingOptionsNames:["specObj","openApiGenericElement","openApiSemanticElement"],specObj:null,openApiGenericElement:null,openApiSemanticElement:null},init({specObj:e=this.specObj,openApiGenericElement:t=this.openApiGenericElement,openApiSemanticElement:r=this.openApiSemanticElement}){this.specObj=e,this.openApiGenericElement=t,this.openApiSemanticElement=r},methods:{retrievePassingOptions(){return vk(this.passingOptionsNames,this)},retrieveFixedFields(e){return bE(ak(["visitors",...e,"fixedFields"]),mS)(this.specObj)},retrieveVisitor(e){return gk(Hk,["visitors",...e],this.specObj)?ak(["visitors",...e],this.specObj):ak(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return this.retrieveVisitor(e)(z_(z_({},r),t))},toRefractedElement(e,t,r={}){const n=this.retrieveVisitorInstance(e,r),s=Object.getPrototypeOf(n);return Mk(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?t.clone():(zT(t,n,z_({keyMap:L_,nodeTypeGetter:q_},r)),n.element)}}}),V_=H_,W_=e=>$T(e)&&e.hasKey("$ref"),G_=$T,J_=$T,K_=e=>vT(e.key)&&Tk("x-",e.key.toValue()),Y_=Object.freeze(Object.defineProperty({__proto__:null,isOpenApi3_0LikeElement:e=>$T(e)&&e.hasKey("openapi")&&e.hasKey("info"),isOpenApiExtension:K_,isParameterLikeElement:e=>$T(e)&&e.hasKey("name")&&e.hasKey("in"),isReferenceLikeElement:W_,isRequestBodyLikeElement:e=>$T(e)&&e.hasKey("content"),isResponseLikeElement:e=>$T(e)&&e.hasKey("description"),isServerLikeElement:G_,isTagLikeElement:J_},Symbol.toStringTag,{value:"Module"})),Z_=GP(V_,{props:{specPath:hO,ignoredFields:[],canSupportSpecificationExtensions:!0,specificationExtensionPredicate:K_},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:r=this.canSupportSpecificationExtensions,specificationExtensionPredicate:n=this.specificationExtensionPredicate}={}){this.specPath=e,this.ignoredFields=t,this.canSupportSpecificationExtensions=r,this.specificationExtensionPredicate=n},methods:{ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,n,s)=>{if(vT(n)&&r.includes(n.toValue())&&!this.ignoredFields.includes(n.toValue())){const r=this.toRefractedElement([...t,"fixedFields",n.toValue()],e),i=new _P(n.clone(),r);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(s)){const e=this.toRefractedElement(["document","extension"],s);this.element.content.push(e)}else this.ignoredFields.includes(n.toValue())||this.element.content.push(s.clone())})),this.copyMetaAndAttributes(e,this.element),oT}}}),X_=Z_,Q_=GP(N_,{methods:{enter(e){return this.element=e.clone(),oT}}}),eF=Q_,tF=GP(X_,eF,{props:{specPath:YS(["document","objects","OpenApi"]),canSupportSpecificationExtensions:!0},init(){this.element=new HC},methods:{ObjectElement(e){return this.unrefractedElement=e,X_.compose.methods.ObjectElement.call(this,e)}}}),rF=tF,nF=GP(V_,eF,{methods:{StringElement(e){const t=new zC(e.toValue());return this.copyMetaAndAttributes(e,t),this.element=t,oT}}}),sF=nF,iF=GP(V_,{methods:{MemberElement(e){return this.element=e.clone(),this.element.classes.push("specification-extension"),oT}}}),oF=iF,aF=GP(X_,eF,{props:{specPath:YS(["document","objects","Info"]),canSupportSpecificationExtensions:!0},init(){this.element=new MC}}),lF=aF,cF=eF,pF=cF,uF=eF,dF=uF,hF=eF,fF=hF,mF=GP(eF,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("api-version"),this.element.classes.push("version"),oT}}}),yF=mF,gF=GP(X_,eF,{props:{specPath:YS(["document","objects","Contact"]),canSupportSpecificationExtensions:!0},init(){this.element=new TC}}),vF=gF,bF=eF,xF=bF,wF=eF,$F=wF,SF=eF,EF=SF,kF=GP(X_,eF,{props:{specPath:YS(["document","objects","License"]),canSupportSpecificationExtensions:!0},init(){this.element=new qC}}),OF=kF,jF=eF,AF=jF,PF=eF,TF=PF,CF=GP(X_,eF,{props:{specPath:YS(["document","objects","Link"]),canSupportSpecificationExtensions:!0},init(){this.element=new LC},methods:{ObjectElement(e){const t=X_.compose.methods.ObjectElement.call(this,e);return(vT(this.element.operationId)||vT(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}}),IF=CF,RF=GP(eF,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),oT}}}),_F=RF,FF=GP(eF,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),oT}}}),DF=FF,MF=GP(V_,{props:{fieldPatternPredicate:z$,specPath:hO,ignoredFields:[],canSupportSpecificationExtensions:!1,specificationExtensionPredicate:K_},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:r=this.canSupportSpecificationExtensions,specificationExtensionPredicate:n=this.specificationExtensionPredicate}={}){this.specPath=e,this.ignoredFields=t,this.canSupportSpecificationExtensions=r,this.specificationExtensionPredicate=n},methods:{ObjectElement(e){return e.forEach(((e,t,r)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(r)){const e=this.toRefractedElement(["document","extension"],r);this.element.content.push(e)}else if(!this.ignoredFields.includes(t.toValue())&&this.fieldPatternPredicate(t.toValue())){const n=this.specPath(e),s=this.toRefractedElement(n,e),i=new _P(t.clone(),s);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(t.toValue())||this.element.content.push(r.clone())})),this.copyMetaAndAttributes(e,this.element),oT}}}),qF=MF,LF=GP(qF,{props:{fieldPatternPredicate:eO}}),BF=LF,NF=GP(BF,eF,{props:{specPath:YS(["value"])},init(){this.element=new I_}}),UF=NF,zF=eF,HF=zF,VF=eF,WF=VF,GF=GP(X_,eF,{props:{specPath:YS(["document","objects","Server"]),canSupportSpecificationExtensions:!0},init(){this.element=new vR}}),JF=GF,KF=GP(eF,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("server-url"),oT}}}),YF=KF,ZF=eF,XF=ZF,QF=GP(V_,eF,{init(){this.element=new ER},methods:{ArrayElement(e){return e.forEach((e=>{const t=G_(e)?["document","objects","Server"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),oT}}}),eD=QF,tD=GP(X_,eF,{props:{specPath:YS(["document","objects","ServerVariable"]),canSupportSpecificationExtensions:!0},init(){this.element=new bR}}),rD=tD,nD=eF,sD=nD,iD=eF,oD=eF,aD=GP(BF,eF,{props:{specPath:YS(["document","objects","ServerVariable"])},init(){this.element=new TR}}),lD=GP(X_,eF,{props:{specPath:YS(["document","objects","MediaType"]),canSupportSpecificationExtensions:!0},init(){this.element=new BC}}),cD=GP(V_,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>ZE(e,YS(t),Dk))),r=vO(t)(e);return this.element=this.toRefractedElement(r,e),oT}}}),pD=cD,uD=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof AC||e(n)&&t("callback",n)&&r("object",n))),dD=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof PC||e(n)&&t("components",n)&&r("object",n))),hD=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof TC||e(n)&&t("contact",n)&&r("object",n))),fD=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof RC||e(n)&&t("example",n)&&r("object",n))),mD=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof _C||e(n)&&t("externalDocumentation",n)&&r("object",n))),yD=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof DC||e(n)&&t("header",n)&&r("object",n))),gD=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof MC||e(n)&&t("info",n)&&r("object",n))),vD=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof qC||e(n)&&t("license",n)&&r("object",n))),bD=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof LC||e(n)&&t("link",n)&&r("object",n))),xD=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof zC||e(n)&&t("openapi",n)&&r("string",n))),wD=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof HC||e(s)&&t("openApi3_0",s)&&r("object",s)&&n("api",s))),$D=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof VC||e(n)&&t("operation",n)&&r("object",n))),SD=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof GC||e(n)&&t("parameter",n)&&r("object",n))),ED=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof JC||e(n)&&t("pathItem",n)&&r("object",n))),kD=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof KC||e(n)&&t("paths",n)&&r("object",n))),OD=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof YC||e(n)&&t("reference",n)&&r("object",n))),jD=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ZC||e(n)&&t("requestBody",n)&&r("object",n))),AD=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof XC||e(n)&&t("response",n)&&r("object",n))),PD=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof QC||e(n)&&t("responses",n)&&r("object",n))),TD=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof mR||e(n)&&t("schema",n)&&r("object",n))),CD=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof yR||e(n)&&t("securityRequirement",n)&&r("object",n))),ID=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof vR||e(n)&&t("server",n)&&r("object",n))),RD=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof bR||e(n)&&t("serverVariable",n)&&r("object",n))),_D=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof BC||e(n)&&t("mediaType",n)&&r("object",n))),FD=Object.freeze(Object.defineProperty({__proto__:null,isBooleanJsonSchemaElement:e=>wT(e)&&e.classes.includes("boolean-json-schema"),isCallbackElement:uD,isComponentsElement:dD,isContactElement:hD,isExampleElement:fD,isExternalDocumentationElement:mD,isHeaderElement:yD,isInfoElement:gD,isLicenseElement:vD,isLinkElement:bD,isLinkElementExternal:e=>{if(!bD(e))return!1;if(!vT(e.operationRef))return!1;const t=e.operationRef.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},isMediaTypeElement:_D,isOpenApi3_0Element:wD,isOpenapiElement:xD,isOperationElement:$D,isParameterElement:SD,isPathItemElement:ED,isPathItemElementExternal:e=>{if(!ED(e))return!1;if(!vT(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},isPathsElement:kD,isReferenceElement:OD,isReferenceElementExternal:e=>{if(!OD(e))return!1;if(!vT(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},isRequestBodyElement:jD,isResponseElement:AD,isResponsesElement:PD,isSchemaElement:TD,isSecurityRequirementElement:CD,isServerElement:ID,isServerVariableElement:RD},Symbol.toStringTag,{value:"Module"})),DD=GP(pD,eF,{props:{alternator:[{predicate:W_,specPath:["document","objects","Reference"]},{predicate:H$,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=pD.compose.methods.enter.call(this,e);return OD(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),MD=DD,qD=eF,LD=GP(BF,eF,{props:{specPath:e=>W_(e)?["document","objects","Reference"]:["document","objects","Example"],canSupportSpecificationExtensions:!0},init(){this.element=new RP,this.element.classes.push("examples")},methods:{ObjectElement(e){const t=BF.compose.methods.ObjectElement.call(this,e);return this.element.filter(OD).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}}),BD=LD,ND=GP(BD,{init(){this.element=new y_}}),UD=GP(BF,eF,{props:{specPath:YS(["document","objects","Encoding"])},init(){this.element=new v_}}),zD=GP(BF,eF,{props:{specPath:YS(["value"])},init(){this.element=new yR}}),HD=GP(V_,eF,{init(){this.element=new OR},methods:{ArrayElement(e){return e.forEach((e=>{if($T(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(e.clone())})),this.copyMetaAndAttributes(e,this.element),oT}}}),VD=HD,WD=GP(X_,eF,{props:{specPath:YS(["document","objects","Components"]),canSupportSpecificationExtensions:!0},init(){this.element=new PC}}),GD=GP(X_,eF,{props:{specPath:YS(["document","objects","Tag"]),canSupportSpecificationExtensions:!0},init(){this.element=new xR}}),JD=eF,KD=eF,YD=GP(X_,eF,{props:{specPath:YS(["document","objects","Reference"]),canSupportSpecificationExtensions:!1},init(){this.element=new YC},methods:{ObjectElement(e){const t=X_.compose.methods.ObjectElement.call(this,e);return vT(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),ZD=YD,XD=GP(eF,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),oT}}}),QD=XD,eM=GP(X_,eF,{props:{specPath:YS(["document","objects","Parameter"]),canSupportSpecificationExtensions:!0},init(){this.element=new GC},methods:{ObjectElement(e){const t=X_.compose.methods.ObjectElement.call(this,e);return $T(this.element.contentProp)&&this.element.contentProp.filter(_D).forEach(((e,t)=>{e.setMetaProperty("media-type",t.toValue())})),t}}}),tM=eM,rM=eF,nM=eF,sM=eF,iM=eF,oM=eF,aM=eF,lM=eF,cM=eF,pM=eF,uM=GP(pD,eF,{props:{alternator:[{predicate:W_,specPath:["document","objects","Reference"]},{predicate:H$,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=pD.compose.methods.enter.call(this,e);return OD(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),dM=uM,hM=GP(X_,eF,{props:{specPath:YS(["document","objects","Header"]),canSupportSpecificationExtensions:!0},init(){this.element=new DC}}),fM=eF,mM=eF,yM=eF,gM=eF,vM=eF,bM=eF,xM=eF,wM=GP(pD,eF,{props:{alternator:[{predicate:W_,specPath:["document","objects","Reference"]},{predicate:H$,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=pD.compose.methods.enter.call(this,e);return OD(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),$M=eF,SM=GP(BD,{init(){this.element=new __}}),EM=GP(BF,eF,{props:{specPath:YS(["document","objects","MediaType"])},init(){this.element=new RP,this.element.classes.push("content")}}),kM=GP(EM,{init(){this.element=new D_}}),OM=GP(X_,eF,{props:{specPath:YS(["document","objects","Schema"]),canSupportSpecificationExtensions:!0},init(){this.element=new mR}}),{items:jM}=sR.visitors.document.objects.JSONSchema.fixedFields,AM=GP(jM,{methods:{ObjectElement(e){const t=jM.compose.methods.ObjectElement.call(this,e);return OD(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t},ArrayElement(e){return this.element=e.clone(),oT}}}),{properties:PM}=sR.visitors.document.objects.JSONSchema.fixedFields,TM=GP(PM,{methods:{ObjectElement(e){const t=PM.compose.methods.ObjectElement.call(this,e);return this.element.filter(OD).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{type:CM}=sR.visitors.document.objects.JSONSchema.fixedFields,IM=GP(CM,{methods:{ArrayElement(e){return this.element=e.clone(),oT}}}),RM=eF,_M=eF,FM=eF,DM=eF,{JSONSchemaOrJSONReferenceVisitor:MM}=sR.visitors,qM=GP(MM,{methods:{ObjectElement(e){const t=MM.compose.methods.enter.call(this,e);return OD(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),LM=Object.fromEntries(Object.entries(sR.visitors.document.objects.JSONSchema.fixedFields).map((([e,t])=>t===sR.visitors.JSONSchemaOrJSONReferenceVisitor?[e,qM]:[e,t]))),BM=GP(X_,eF,{props:{specPath:YS(["document","objects","Discriminator"]),canSupportSpecificationExtensions:!1},init(){this.element=new CC}}),NM=eF,UM=GP(BF,eF,{props:{specPath:YS(["value"])},init(){this.element=new A_}}),zM=GP(X_,eF,{props:{specPath:YS(["document","objects","XML"]),canSupportSpecificationExtensions:!0},init(){this.element=new wR}}),HM=eF,VM=eF,WM=eF,GM=eF,JM=eF,KM=eF,YM=GP(BD,{init(){this.element=new r_}}),ZM=GP(EM,{init(){this.element=new s_}}),XM=GP(BF,eF,{props:{specPath:e=>W_(e)?["document","objects","Reference"]:["document","objects","Schema"]},init(){this.element=new IR},methods:{ObjectElement(e){const t=BF.compose.methods.ObjectElement.call(this,e);return this.element.filter(OD).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),QM=GP(BF,eF,{props:{specPath:e=>W_(e)?["document","objects","Reference"]:["document","objects","Response"]},init(){this.element=new _R},methods:{ObjectElement(e){const t=BF.compose.methods.ObjectElement.call(this,e);return this.element.filter(OD).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(AD).forEach(((e,t)=>{e.setMetaProperty("http-status-code",t.toValue())})),t}}}),eq=GP(BF,eF,{props:{specPath:e=>W_(e)?["document","objects","Reference"]:["document","objects","Parameter"]},init(){this.element=new DR},methods:{ObjectElement(e){const t=BF.compose.methods.ObjectElement.call(this,e);return this.element.filter(OD).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}}),tq=GP(BF,eF,{props:{specPath:e=>W_(e)?["document","objects","Reference"]:["document","objects","Example"]},init(){this.element=new qR},methods:{ObjectElement(e){const t=BF.compose.methods.ObjectElement.call(this,e);return this.element.filter(OD).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}}),rq=GP(BF,eF,{props:{specPath:e=>W_(e)?["document","objects","Reference"]:["document","objects","RequestBody"]},init(){this.element=new BR},methods:{ObjectElement(e){const t=BF.compose.methods.ObjectElement.call(this,e);return this.element.filter(OD).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}}),nq=GP(BF,eF,{props:{specPath:e=>W_(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new UR},methods:{ObjectElement(e){const t=BF.compose.methods.ObjectElement.call(this,e);return this.element.filter(OD).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(yD).forEach(((e,t)=>{e.setMetaProperty("header-name",t.toValue())})),t}}}),sq=GP(BF,eF,{props:{specPath:e=>W_(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]},init(){this.element=new HR},methods:{ObjectElement(e){const t=BF.compose.methods.ObjectElement.call(this,e);return this.element.filter(OD).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}}),iq=GP(BF,eF,{props:{specPath:e=>W_(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new WR},methods:{ObjectElement(e){const t=BF.compose.methods.ObjectElement.call(this,e);return this.element.filter(OD).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}}),oq=GP(BF,eF,{props:{specPath:e=>W_(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new JR},methods:{ObjectElement(e){const t=BF.compose.methods.ObjectElement.call(this,e);return this.element.filter(OD).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}}),aq=GP(X_,eF,{props:{specPath:YS(["document","objects","Example"]),canSupportSpecificationExtensions:!0},init(){this.element=new RC},methods:{ObjectElement(e){const t=X_.compose.methods.ObjectElement.call(this,e);return vT(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}}),lq=eF,cq=eF,pq=eF,uq=GP(eF,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),oT}}}),dq=GP(X_,eF,{props:{specPath:YS(["document","objects","ExternalDocumentation"]),canSupportSpecificationExtensions:!0},init(){this.element=new _C}}),hq=eF,fq=eF,mq=GP(X_,eF,{props:{specPath:YS(["document","objects","Encoding"]),canSupportSpecificationExtensions:!0},init(){this.element=new IC},methods:{ObjectElement(e){const t=X_.compose.methods.ObjectElement.call(this,e);return $T(this.element.headers)&&this.element.headers.filter(yD).forEach(((e,t)=>{e.setMetaProperty("header-name",t.toValue())})),t}}}),yq=eF,gq=GP(BF,eF,{props:{specPath:e=>W_(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new x_},methods:{ObjectElement(e){const t=BF.compose.methods.ObjectElement.call(this,e);return this.element.filter(OD).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!yD(e))return;const r=t.toValue();e.setMetaProperty("headerName",r)})),t}}}),vq=eF,bq=eF,xq=eF,wq=GP(qF,eF,{props:{fieldPatternPredicate:Ik(/^\/(?<path>.*)$/),specPath:YS(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new KC},methods:{ObjectElement(e){const t=qF.compose.methods.ObjectElement.call(this,e);return this.element.filter(ED).forEach(((e,t)=>{e.setMetaProperty("path",t.clone())})),t}}}),$q=GP(X_,eF,{props:{specPath:YS(["document","objects","RequestBody"])},init(){this.element=new ZC},methods:{ObjectElement(e){const t=X_.compose.methods.ObjectElement.call(this,e);return $T(this.element.contentProp)&&this.element.contentProp.filter(_D).forEach(((e,t)=>{e.setMetaProperty("media-type",t.toValue())})),t}}}),Sq=eF,Eq=GP(EM,{init(){this.element=new f_}}),kq=eF,Oq=GP(qF,eF,{props:{fieldPatternPredicate:Ik(/{(?<expression>.*)}/),specPath:YS(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new AC},methods:{ObjectElement(e){const t=BF.compose.methods.ObjectElement.call(this,e);return this.element.filter(ED).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",t.toValue())})),t}}}),jq=GP(X_,eF,{props:{specPath:YS(["document","objects","Response"])},init(){this.element=new XC},methods:{ObjectElement(e){const t=X_.compose.methods.ObjectElement.call(this,e);return $T(this.element.contentProp)&&this.element.contentProp.filter(_D).forEach(((e,t)=>{e.setMetaProperty("media-type",t.toValue())})),$T(this.element.headers)&&this.element.headers.filter(yD).forEach(((e,t)=>{e.setMetaProperty("header-name",t.toValue())})),t}}}),Aq=eF,Pq=GP(BF,eF,{props:{specPath:e=>W_(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new $_},methods:{ObjectElement(e){const t=BF.compose.methods.ObjectElement.call(this,e);return this.element.filter(OD).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!yD(e))return;const r=t.toValue();e.setMetaProperty("header-name",r)})),t}}}),Tq=GP(EM,{init(){this.element=new E_}}),Cq=GP(BF,eF,{props:{specPath:e=>W_(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new O_},methods:{ObjectElement(e){const t=BF.compose.methods.ObjectElement.call(this,e);return this.element.filter(OD).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}}),Iq=GP(X_,qF,{props:{specPathFixedFields:hO,specPathPatternedFields:hO},methods:{ObjectElement(e){const{specPath:t,ignoredFields:r}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...r,...CE(e.keys(),t)],X_.compose.methods.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,qF.compose.methods.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return oT}}}),Rq=GP(Iq,eF,{props:{specPathFixedFields:YS(["document","objects","Responses"]),specPathPatternedFields:e=>W_(e)?["document","objects","Reference"]:["document","objects","Response"],fieldPatternPredicate:Ik(new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${Sk(100,600).join("|")})$`)),canSupportSpecificationExtensions:!0},init(){this.element=new QC},methods:{ObjectElement(e){const t=Iq.compose.methods.ObjectElement.call(this,e);return this.element.filter(OD).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(AD).forEach(((e,t)=>{const r=t.clone();this.fieldPatternPredicate(r.toValue())&&e.setMetaProperty("http-status-code",r)})),t}}}),_q=GP(pD,eF,{props:{alternator:[{predicate:W_,specPath:["document","objects","Reference"]},{predicate:H$,specPath:["document","objects","Response"]}]},methods:{ObjectElement(e){const t=pD.compose.methods.enter.call(this,e);return OD(this.element)?this.element.setMetaProperty("referenced-element","response"):AD(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}}),Fq=GP(X_,eF,{props:{specPath:YS(["document","objects","Operation"])},init(){this.element=new VC}}),Dq=GP(eF,{init(){this.element=new o_},methods:{ArrayElement(e){return this.element=this.element.concat(e.clone()),oT}}}),Mq=eF,qq=eF,Lq=eF,Bq=GP(V_,eF,{init(){this.element=new IP,this.element.classes.push("parameters")},methods:{ArrayElement(e){return e.forEach((e=>{const t=W_(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);OD(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),oT}}}),Nq=GP(Bq,{init(){this.element=new e_}}),Uq=GP(pD,{props:{alternator:[{predicate:W_,specPath:["document","objects","Reference"]},{predicate:H$,specPath:["document","objects","RequestBody"]}]},methods:{ObjectElement(e){const t=pD.compose.methods.enter.call(this,e);return OD(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}}}),zq=GP(BF,eF,{props:{specPath:e=>W_(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new l_},methods:{ObjectElement(e){const t=BF.compose.methods.ObjectElement.call(this,e);return this.element.filter(OD).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}}),Hq=eF,Vq=GP(V_,eF,{init(){this.element=new p_},methods:{ArrayElement(e){return e.forEach((e=>{const t=$T(e)?["document","objects","SecurityRequirement"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),oT}}}),Wq=GP(eD,{init(){this.element=new d_}}),Gq=GP(X_,eF,{props:{specPath:YS(["document","objects","PathItem"])},init(){this.element=new JC},methods:{ObjectElement(e){const t=X_.compose.methods.ObjectElement.call(this,e);return this.element.filter($D).forEach(((e,t)=>{const r=t.clone();r.content=r.toValue().toUpperCase(),e.setMetaProperty("http-method",r)})),vT(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),Jq=GP(eF,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),oT}}}),Kq=eF,Yq=eF,Zq=GP(eD,{init(){this.element=new YR}}),Xq=GP(Bq,{init(){this.element=new XR}}),Qq=GP(X_,eF,{props:{specPath:YS(["document","objects","SecurityScheme"]),canSupportSpecificationExtensions:!0},init(){this.element=new gR}}),eL=eF,tL=eF,rL=eF,nL=eF,sL=eF,iL=eF,oL=eF,aL=GP(X_,eF,{props:{specPath:YS(["document","objects","OAuthFlows"]),canSupportSpecificationExtensions:!0},init(){this.element=new UC}}),lL=GP(X_,eF,{props:{specPath:YS(["document","objects","OAuthFlow"]),canSupportSpecificationExtensions:!0},init(){this.element=new NC}}),cL=eF,pL=eF,uL=eF,dL=GP(BF,eF,{props:{specPath:YS(["value"])},init(){this.element=new T_}}),hL=GP(V_,eF,{init(){this.element=new AR},methods:{ArrayElement(e){return e.forEach((e=>{const t=J_(e)?["document","objects","Tag"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),oT}}});function fL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function mL(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fL(Object(r),!0).forEach((function(t){fh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fL(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const yL={$visitor:ZD,fixedFields:{$ref:QD}},gL={$visitor:OM,fixedFields:mL(mL({},LM),{},{items:AM,properties:TM,type:IM,nullable:RM,discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:_M,xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:FM,deprecated:DM})},vL={visitors:{value:eF,document:{objects:{OpenApi:{$visitor:rF,fixedFields:{openapi:sF,info:{$ref:"#/visitors/document/objects/Info"},servers:eD,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:VD,tags:hL,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:lF,fixedFields:{title:pF,description:dF,termsOfService:fF,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:yF}},Contact:{$visitor:vF,fixedFields:{name:xF,url:$F,email:EF}},License:{$visitor:OF,fixedFields:{name:AF,url:TF}},Server:{$visitor:JF,fixedFields:{url:YF,description:XF,variables:aD}},ServerVariable:{$visitor:rD,fixedFields:{enum:sD,default:iD,description:oD}},Components:{$visitor:WD,fixedFields:{schemas:XM,responses:QM,parameters:eq,examples:tq,requestBodies:rq,headers:nq,securitySchemes:sq,links:iq,callbacks:oq}},Paths:{$visitor:wq},PathItem:{$visitor:Gq,fixedFields:{$ref:Jq,summary:Kq,description:Yq,get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:Zq,parameters:Xq}},Operation:{$visitor:Fq,fixedFields:{tags:Dq,summary:Mq,description:qq,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:Lq,parameters:Nq,requestBody:Uq,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:zq,deprecated:Hq,security:Vq,servers:Wq}},ExternalDocumentation:{$visitor:dq,fixedFields:{description:hq,url:fq}},Parameter:{$visitor:tM,fixedFields:{name:rM,in:nM,description:sM,required:iM,deprecated:oM,allowEmptyValue:aM,style:lM,explode:cM,allowReserved:pM,schema:dM,example:KM,examples:YM,content:ZM}},RequestBody:{$visitor:$q,fixedFields:{description:Sq,content:Eq,required:kq}},MediaType:{$visitor:lD,fixedFields:{schema:MD,example:qD,examples:ND,encoding:UD}},Encoding:{$visitor:mq,fixedFields:{contentType:yq,headers:gq,style:vq,explode:bq,allowReserved:xq}},Responses:{$visitor:Rq,fixedFields:{default:_q}},Response:{$visitor:jq,fixedFields:{description:Aq,headers:Pq,content:Tq,links:Cq}},Callback:{$visitor:Oq},Example:{$visitor:aq,fixedFields:{summary:lq,description:cq,value:pq,externalValue:uq}},Link:{$visitor:IF,fixedFields:{operationRef:_F,operationId:DF,parameters:UF,requestBody:HF,description:WF,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:hM,fixedFields:{description:fM,required:mM,deprecated:yM,allowEmptyValue:gM,style:vM,explode:bM,allowReserved:xM,schema:wM,example:$M,examples:SM,content:kM}},Tag:{$visitor:GD,fixedFields:{name:JD,description:KD,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},JSONReference:yL,Reference:yL,JSONSchema:gL,Schema:gL,LinkDescription:sR.visitors.document.objects.LinkDescription,Media:sR.visitors.document.objects.Media,Discriminator:{$visitor:BM,fixedFields:{propertyName:NM,mapping:UM}},XML:{$visitor:zM,fixedFields:{name:HM,namespace:VM,prefix:WM,attribute:GM,wrapped:JM}},SecurityScheme:{$visitor:Qq,fixedFields:{type:eL,description:tL,name:rL,in:nL,scheme:sL,bearerFormat:iL,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:oL}},OAuthFlows:{$visitor:aL,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:lL,fixedFields:{authorizationUrl:cL,tokenUrl:pL,refreshUrl:uL,scopes:dL}},SecurityRequirement:{$visitor:zD}},extension:{$visitor:oF}}}};function bL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function xL(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?bL(Object(r),!0).forEach((function(t){fh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bL(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const wL=()=>{const e=HP($R);return{predicates:xL(xL(xL({},Y_),FD),{},{isStringElement:vT}),namespace:e}};function $L(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const SL=e=>(t,r={})=>((e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=MP(e),s=cC(vL),i=wO(t,[],s);return zT(n,i,{state:{specObj:s}}),eC(i.element,r,{toolboxCreator:wL,visitorOptions:{keyMap:L_,nodeTypeGetter:q_}})})(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$L(Object(r),!0).forEach((function(t){fh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$L(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({specPath:e},r));AC.refract=SL(["visitors","document","objects","Callback","$visitor"]),PC.refract=SL(["visitors","document","objects","Components","$visitor"]),TC.refract=SL(["visitors","document","objects","Contact","$visitor"]),RC.refract=SL(["visitors","document","objects","Example","$visitor"]),CC.refract=SL(["visitors","document","objects","Discriminator","$visitor"]),IC.refract=SL(["visitors","document","objects","Encoding","$visitor"]),_C.refract=SL(["visitors","document","objects","ExternalDocumentation","$visitor"]),DC.refract=SL(["visitors","document","objects","Header","$visitor"]),MC.refract=SL(["visitors","document","objects","Info","$visitor"]),qC.refract=SL(["visitors","document","objects","License","$visitor"]),LC.refract=SL(["visitors","document","objects","Link","$visitor"]),BC.refract=SL(["visitors","document","objects","MediaType","$visitor"]),NC.refract=SL(["visitors","document","objects","OAuthFlow","$visitor"]),UC.refract=SL(["visitors","document","objects","OAuthFlows","$visitor"]),zC.refract=SL(["visitors","document","objects","OpenApi","fixedFields","openapi"]),HC.refract=SL(["visitors","document","objects","OpenApi","$visitor"]),VC.refract=SL(["visitors","document","objects","Operation","$visitor"]),GC.refract=SL(["visitors","document","objects","Parameter","$visitor"]),JC.refract=SL(["visitors","document","objects","PathItem","$visitor"]),KC.refract=SL(["visitors","document","objects","Paths","$visitor"]),YC.refract=SL(["visitors","document","objects","Reference","$visitor"]),ZC.refract=SL(["visitors","document","objects","RequestBody","$visitor"]),XC.refract=SL(["visitors","document","objects","Response","$visitor"]),QC.refract=SL(["visitors","document","objects","Responses","$visitor"]),mR.refract=SL(["visitors","document","objects","Schema","$visitor"]),yR.refract=SL(["visitors","document","objects","SecurityRequirement","$visitor"]),gR.refract=SL(["visitors","document","objects","SecurityScheme","$visitor"]),vR.refract=SL(["visitors","document","objects","Server","$visitor"]),bR.refract=SL(["visitors","document","objects","ServerVariable","$visitor"]),xR.refract=SL(["visitors","document","objects","Tag","$visitor"]),wR.refract=SL(["visitors","document","objects","XML","$visitor"]);const EL=class extends AC{},kL=class extends PC{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}},OL=class extends TC{},jL=class extends CC{},AL=class extends IC{},PL=class extends RC{},TL=class extends _C{},CL=class extends DC{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}},IL=class extends MC{get license(){return this.get("license")}set license(e){this.set("license",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}};class RL extends AP{constructor(e,t,r){super(e,t,r),this.element="jsonSchemaDialect"}}fh(RL,"default",new RL("https://spec.openapis.org/oas/3.1/dialect/base"));const _L=RL,FL=class extends qC{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}},DL=class extends LC{},ML=class extends BC{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}},qL=class extends NC{},LL=class extends UC{},BL=class extends zC{},NL=class extends RP{constructor(e,t,r){super(e,t,r),this.element="openApi3_1",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get jsonSchemaDialect(){return this.get("jsonSchemaDialect")}set jsonSchemaDialect(e){this.set("jsonSchemaDialect",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get webhooks(){return this.get("webhooks")}set webhooks(e){this.set("webhooks",e)}},UL=class extends VC{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}},zL=class extends GC{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}},HL=class extends JC{get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}},VL=class extends KC{};let WL=class extends YC{};Object.defineProperty(WL.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(WL.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const GL=WL,JL=class extends ZC{},KL=class extends XC{},YL=class extends QC{},ZL=class extends RP{constructor(e,t,r){super(e,t,r),this.element="schema"}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get $vocabulary(){return this.get("$vocabulary")}set $vocabulary(e){this.set("$vocabulary",e)}get $id(){return this.get("$id")}set $id(e){this.set("$id",e)}get $anchor(){return this.get("$anchor")}set $anchor(e){this.set("$anchor",e)}get $dynamicAnchor(){return this.get("$dynamicAnchor")}set $dynamicAnchor(e){this.set("$dynamicAnchor",e)}get $dynamicRef(){return this.get("$dynamicRef")}set $dynamicRef(e){this.set("$dynamicRef",e)}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get $defs(){return this.get("$defs")}set $defs(e){this.set("$defs",e)}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get dependentSchemas(){return this.get("dependentSchemas")}set dependentSchemas(e){this.set("dependentSchemas",e)}get prefixItems(){return this.get("prefixItems")}set prefixItems(e){this.set("prefixItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get unevaluatedItems(){return this.get("unevaluatedItems")}set unevaluatedItems(e){this.set("unevaluatedItems",e)}get unevaluatedProperties(){return this.get("unevaluatedProperties")}set unevaluatedProperties(e){this.set("unevaluatedProperties",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get const(){return this.get("const")}set const(e){this.set("const",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxContains(){return this.get("maxContains")}set maxContains(e){this.set("maxContains",e)}get minContains(){return this.get("minContains")}set minContains(e){this.set("minContains",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get dependentRequired(){return this.get("dependentRequired")}set dependentRequired(e){this.set("dependentRequired",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get contentEncoding(){return this.get("contentEncoding")}set contentEncoding(e){this.set("contentEncoding",e)}get contentMediaType(){return this.get("contentMediaType")}set contentMediaType(e){this.set("contentMediaType",e)}get contentSchema(){return this.get("contentSchema")}set contentSchema(e){this.set("contentSchema",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}},XL=class extends yR{},QL=class extends gR{},eB=class extends vR{},tB=class extends bR{},rB=class extends xR{},nB=class extends wR{},sB={namespace:e=>{const{base:t}=e;return t.register("callback",EL),t.register("components",kL),t.register("contact",OL),t.register("discriminator",jL),t.register("encoding",AL),t.register("example",PL),t.register("externalDocumentation",TL),t.register("header",CL),t.register("info",IL),t.register("jsonSchemaDialect",_L),t.register("license",FL),t.register("link",DL),t.register("mediaType",ML),t.register("oAuthFlow",qL),t.register("oAuthFlows",LL),t.register("openapi",BL),t.register("openApi3_1",NL),t.register("operation",UL),t.register("parameter",zL),t.register("pathItem",HL),t.register("paths",VL),t.register("reference",GL),t.register("requestBody",JL),t.register("response",KL),t.register("responses",YL),t.register("schema",ZL),t.register("securityRequirement",XL),t.register("securityScheme",QL),t.register("server",eB),t.register("serverVariable",tB),t.register("tag",rB),t.register("xml",nB),t}};class iB extends RP{constructor(e,t,r){super(e,t,r),this.classes.push(iB.primaryClass)}}fh(iB,"primaryClass","components-path-items");const oB=iB;class aB extends RP{constructor(e,t,r){super(e,t,r),this.classes.push(aB.primaryClass)}}fh(aB,"primaryClass","webhooks");const lB=aB;function cB(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const pB=e=>{if(gT(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},uB=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cB(Object(r),!0).forEach((function(t){fh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cB(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_1Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"]},NT),dB=e=>e.replace(/\s/g,""),hB=e=>e.replace(/\W/gi,"_"),fB=(e,t,r)=>{const n=dB(e);return n.length>0?hB(n):((e,t)=>`${hB(dB(t.toLowerCase()))}${hB(dB(e))}`)(t,r)},mB=({operationIdNormalizer:e=fB}={})=>({predicates:t,namespace:r})=>{const n=[],s=[],i=[];return{visitor:{OpenApi3_1Element:{leave(){const e=zE((e=>bC(e.operationId)),s);Object.entries(e).forEach((([e,t])=>{t.length<=1||t.forEach(((t,n)=>{const s=`${e}${n+1}`;t.operationId=new r.elements.String(s)}))})),i.forEach((e=>{var t;if(void 0===e.operationId)return;const r=String(bC(e.operationId)),n=s.find((e=>bC(e.meta.get("originalOperationId"))===r));void 0!==n&&(e.operationId=null===(t=n.operationId)||void 0===t?void 0:t.clone(),e.meta.set("originalOperationId",r),e.set("__originalOperationId",r))})),s.length=0,i.length=0}},PathItemElement:{enter(e){const t=jE("path",bC(e.meta.get("path")));n.push(t)},leave(){n.pop()}},OperationElement:{enter(t){if(void 0===t.operationId)return;const i=String(bC(t.operationId)),o=DE(n),a=jE("method",bC(t.meta.get("http-method"))),l=e(i,o,a);i!==l&&(t.operationId=new r.elements.String(l),t.set("__originalOperationId",i),t.meta.set("originalOperationId",i),s.push(t))}},LinkElement:{leave(e){t.isLinkElement(e)&&void 0!==e.operationId&&i.push(e)}}}}},yB=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof EL||e(n)&&t("callback",n)&&r("object",n))),gB=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof kL||e(n)&&t("components",n)&&r("object",n))),vB=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof OL||e(n)&&t("contact",n)&&r("object",n))),bB=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof PL||e(n)&&t("example",n)&&r("object",n))),xB=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof TL||e(n)&&t("externalDocumentation",n)&&r("object",n))),wB=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof CL||e(n)&&t("header",n)&&r("object",n))),$B=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof IL||e(n)&&t("info",n)&&r("object",n))),SB=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof _L||e(n)&&t("jsonSchemaDialect",n)&&r("string",n))),EB=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof FL||e(n)&&t("license",n)&&r("object",n))),kB=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof DL||e(n)&&t("link",n)&&r("object",n))),OB=e=>{if(!kB(e))return!1;if(!vT(e.operationRef))return!1;const t=e.operationRef.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},jB=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof BL||e(n)&&t("openapi",n)&&r("string",n))),AB=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof NL||e(s)&&t("openApi3_1",s)&&r("object",s)&&n("api",s))),PB=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof UL||e(n)&&t("operation",n)&&r("object",n))),TB=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof zL||e(n)&&t("parameter",n)&&r("object",n))),CB=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof HL||e(n)&&t("pathItem",n)&&r("object",n))),IB=e=>{if(!CB(e))return!1;if(!vT(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},RB=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof VL||e(n)&&t("paths",n)&&r("object",n))),_B=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof GL||e(n)&&t("reference",n)&&r("object",n))),FB=e=>{if(!_B(e))return!1;if(!vT(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},DB=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof JL||e(n)&&t("requestBody",n)&&r("object",n))),MB=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof KL||e(n)&&t("response",n)&&r("object",n))),qB=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof YL||e(n)&&t("responses",n)&&r("object",n))),LB=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ZL||e(n)&&t("schema",n)&&r("object",n))),BB=e=>wT(e)&&e.classes.includes("boolean-json-schema"),NB=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof XL||e(n)&&t("securityRequirement",n)&&r("object",n))),UB=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof eB||e(n)&&t("server",n)&&r("object",n))),zB=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof tB||e(n)&&t("serverVariable",n)&&r("object",n))),HB=yT((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ML||e(n)&&t("mediaType",n)&&r("object",n))),VB=Object.freeze(Object.defineProperty({__proto__:null,isBooleanJsonSchemaElement:BB,isCallbackElement:yB,isComponentsElement:gB,isContactElement:vB,isExampleElement:bB,isExternalDocumentationElement:xB,isHeaderElement:wB,isInfoElement:$B,isJsonSchemaDialectElement:SB,isLicenseElement:EB,isLinkElement:kB,isLinkElementExternal:OB,isMediaTypeElement:HB,isOpenApi3_1Element:AB,isOpenapiElement:jB,isOperationElement:PB,isParameterElement:TB,isPathItemElement:CB,isPathItemElementExternal:IB,isPathsElement:RB,isReferenceElement:_B,isReferenceElementExternal:FB,isRequestBodyElement:DB,isResponseElement:MB,isResponsesElement:qB,isSchemaElement:LB,isSecurityRequirementElement:NB,isServerElement:UB,isServerVariableElement:zB},Symbol.toStringTag,{value:"Module"}));function WB(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function GB(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?WB(Object(r),!0).forEach((function(t){fh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):WB(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const JB=()=>{const e=HP(sB);return{predicates:GB(GB({},VB),{},{isStringElement:vT,isArrayElement:ST,isObjectElement:$T,includesClasses:RT}),namespace:e}},KB=GP(X_,eF,{props:{specPath:YS(["document","objects","OpenApi"]),canSupportSpecificationExtensions:!0},init(){this.element=new NL,this.openApiSemanticElement=this.element},methods:{ObjectElement(e){return this.openApiGenericElement=e,X_.compose.methods.ObjectElement.call(this,e)}}}),YB=KB,{visitors:{document:{objects:{Info:{$visitor:ZB}}}}}=vL,XB=GP(ZB,{init(){this.element=new IL}}),QB=eF,{visitors:{document:{objects:{Contact:{$visitor:eN}}}}}=vL,tN=GP(eN,{init(){this.element=new OL}}),{visitors:{document:{objects:{License:{$visitor:rN}}}}}=vL,nN=GP(rN,{init(){this.element=new FL}}),sN=eF,{visitors:{document:{objects:{Link:{$visitor:iN}}}}}=vL,oN=GP(iN,{init(){this.element=new DL}}),aN=GP(V_,eF,{methods:{StringElement(e){const t=new _L(e.toValue());return this.copyMetaAndAttributes(e,t),this.element=t,oT}}}),{visitors:{document:{objects:{Server:{$visitor:lN}}}}}=vL,cN=GP(lN,{init(){this.element=new eB}}),{visitors:{document:{objects:{ServerVariable:{$visitor:pN}}}}}=vL,uN=GP(pN,{init(){this.element=new tB}}),{visitors:{document:{objects:{MediaType:{$visitor:dN}}}}}=vL,hN=GP(dN,{init(){this.element=new ML}}),{visitors:{document:{objects:{SecurityRequirement:{$visitor:fN}}}}}=vL,mN=GP(fN,{init(){this.element=new XL}}),{visitors:{document:{objects:{Components:{$visitor:yN}}}}}=vL,gN=GP(yN,{init(){this.element=new kL}}),{visitors:{document:{objects:{Tag:{$visitor:vN}}}}}=vL,bN=GP(vN,{init(){this.element=new rB}}),{visitors:{document:{objects:{Reference:{$visitor:xN}}}}}=vL,wN=GP(xN,{init(){this.element=new GL}}),$N=eF,SN=eF,{visitors:{document:{objects:{Parameter:{$visitor:EN}}}}}=vL,kN=GP(EN,{init(){this.element=new zL}}),{visitors:{document:{objects:{Header:{$visitor:ON}}}}}=vL,jN=GP(ON,{init(){this.element=new CL}}),AN=GP({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),PN=AN,TN=GP(X_,PN,eF,{props:{specPath:YS(["document","objects","Schema"]),canSupportSpecificationExtensions:!0},init(){const e=()=>{let e;return e=null!==this.openApiSemanticElement&&SB(this.openApiSemanticElement.jsonSchemaDialect)?this.openApiSemanticElement.jsonSchemaDialect.toValue():null!==this.openApiGenericElement&&vT(this.openApiGenericElement.get("jsonSchemaDialect"))?this.openApiGenericElement.get("jsonSchemaDialect").toValue():_L.default.toValue(),e},t=t=>{if(Lk(this.parent)&&!vT(t.get("$schema")))this.element.setMetaProperty("inherited$schema",e());else if(LB(this.parent)&&!vT(t.get("$schema"))){var r,n;const e=jE(null===(r=this.parent.meta.get("inherited$schema"))||void 0===r?void 0:r.toValue(),null===(n=this.parent.$schema)||void 0===n?void 0:n.toValue());this.element.setMetaProperty("inherited$schema",e)}},r=e=>{var t;const r=null!==this.parent?this.parent.getMetaProperty("inherited$id",[]).clone():new IP,n=null===(t=e.get("$id"))||void 0===t?void 0:t.toValue();eO(n)&&r.push(n),this.element.setMetaProperty("inherited$id",r)};this.ObjectElement=function(e){this.element=new ZL,t(e),r(e),this.parent=this.element;const n=X_.compose.methods.ObjectElement.call(this,e);return vT(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),n},this.BooleanElement=function(e){return this.element=e.clone(),this.element.classes.push("boolean-json-schema"),oT}}}),CN=eF,IN=GP(eF,{methods:{ObjectElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-$vocabulary"),oT}}}),RN=eF,_N=eF,FN=eF,DN=eF,MN=GP(eF,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),oT}}}),qN=GP(BF,PN,eF,{props:{specPath:YS(["document","objects","Schema"])},init(){this.element=new RP,this.element.classes.push("json-schema-$defs")}}),LN=eF,BN=GP(V_,PN,eF,{init(){this.element=new IP,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{if($T(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=e.clone();this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),oT}}}),NN=GP(V_,PN,eF,{init(){this.element=new IP,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{if($T(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=e.clone();this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),oT}}}),UN=GP(V_,PN,eF,{init(){this.element=new IP,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{if($T(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=e.clone();this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),oT}}}),zN=GP(BF,PN,eF,{props:{specPath:YS(["document","objects","Schema"])},init(){this.element=new RP,this.element.classes.push("json-schema-dependentSchemas")}}),HN=GP(V_,PN,eF,{init(){this.element=new IP,this.element.classes.push("json-schema-prefixItems")},methods:{ArrayElement(e){return e.forEach((e=>{if($T(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=e.clone();this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),oT}}}),VN=GP(BF,PN,eF,{props:{specPath:YS(["document","objects","Schema"])},init(){this.element=new RP,this.element.classes.push("json-schema-properties")}}),WN=GP(BF,PN,eF,{props:{specPath:YS(["document","objects","Schema"])},init(){this.element=new RP,this.element.classes.push("json-schema-patternProperties")}}),GN=GP(eF,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),oT},ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),oT}}}),JN=GP(eF,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-enum"),oT}}}),KN=eF,YN=eF,ZN=eF,XN=eF,QN=eF,eU=eF,tU=eF,rU=eF,nU=eF,sU=eF,iU=eF,oU=eF,aU=eF,lU=eF,cU=eF,pU=eF,uU=GP(eF,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-required"),oT}}}),dU=GP(eF,{methods:{ObjectElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-dependentRequired"),oT}}}),hU=eF,fU=eF,mU=eF,yU=eF,gU=eF,vU=eF,bU=GP(eF,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-examples"),oT}}}),xU=eF,wU=eF,$U=eF,SU=eF,{visitors:{document:{objects:{Discriminator:{$visitor:EU}}}}}=vL,kU=GP(EU,{props:{canSupportSpecificationExtensions:!0},init(){this.element=new jL}}),{visitors:{document:{objects:{XML:{$visitor:OU}}}}}=vL,jU=GP(OU,{init(){this.element=new nB}}),AU=GP(BF,eF,{props:{specPath:YS(["document","objects","Schema"])},init(){this.element=new IR}}),PU=GP(BF,eF,{props:{specPath:e=>W_(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new oB},methods:{ObjectElement(e){const t=BF.compose.methods.ObjectElement.call(this,e);return this.element.filter(_B).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}}),{visitors:{document:{objects:{Example:{$visitor:TU}}}}}=vL,CU=GP(TU,{init(){this.element=new PL}}),{visitors:{document:{objects:{ExternalDocumentation:{$visitor:IU}}}}}=vL,RU=GP(IU,{init(){this.element=new TL}}),{visitors:{document:{objects:{Encoding:{$visitor:_U}}}}}=vL,FU=GP(_U,{init(){this.element=new AL}}),{visitors:{document:{objects:{Paths:{$visitor:DU}}}}}=vL,MU=GP(DU,{init(){this.element=new VL}}),{visitors:{document:{objects:{RequestBody:{$visitor:qU}}}}}=vL,LU=GP(qU,{init(){this.element=new JL}}),{visitors:{document:{objects:{Callback:{$visitor:BU}}}}}=vL,NU=GP(BU,{props:{specPath:e=>W_(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new EL},methods:{ObjectElement(e){const t=BU.compose.methods.ObjectElement.call(this,e);return this.element.filter(_B).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}}),{visitors:{document:{objects:{Response:{$visitor:UU}}}}}=vL,zU=GP(UU,{init(){this.element=new KL}}),{visitors:{document:{objects:{Responses:{$visitor:HU}}}}}=vL,VU=GP(HU,{init(){this.element=new YL}}),{visitors:{document:{objects:{Operation:{$visitor:WU}}}}}=vL,GU=GP(WU,{init(){this.element=new UL}}),{visitors:{document:{objects:{PathItem:{$visitor:JU}}}}}=vL,KU=GP(JU,{init(){this.element=new HL}}),{visitors:{document:{objects:{SecurityScheme:{$visitor:YU}}}}}=vL,ZU=GP(YU,{init(){this.element=new QL}}),{visitors:{document:{objects:{OAuthFlows:{$visitor:XU}}}}}=vL,QU=GP(XU,{init(){this.element=new LL}}),{visitors:{document:{objects:{OAuthFlow:{$visitor:ez}}}}}=vL,tz=GP(ez,{init(){this.element=new qL}}),rz=GP(BF,eF,{props:{specPath:e=>W_(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new lB},methods:{ObjectElement(e){const t=BF.compose.methods.ObjectElement.call(this,e);return this.element.filter(_B).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(CB).forEach(((e,t)=>{e.setMetaProperty("webhook-name",t.toValue())})),t}}}),nz={visitors:{value:vL.visitors.value,document:{objects:{OpenApi:{$visitor:YB,fixedFields:{openapi:vL.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:aN,servers:vL.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:rz,components:{$ref:"#/visitors/document/objects/Components"},security:vL.visitors.document.objects.OpenApi.fixedFields.security,tags:vL.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:XB,fixedFields:{title:vL.visitors.document.objects.Info.fixedFields.title,description:vL.visitors.document.objects.Info.fixedFields.description,summary:QB,termsOfService:vL.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:vL.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:tN,fixedFields:{name:vL.visitors.document.objects.Contact.fixedFields.name,url:vL.visitors.document.objects.Contact.fixedFields.url,email:vL.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:nN,fixedFields:{name:vL.visitors.document.objects.License.fixedFields.name,identifier:sN,url:vL.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:cN,fixedFields:{url:vL.visitors.document.objects.Server.fixedFields.url,description:vL.visitors.document.objects.Server.fixedFields.description,variables:vL.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:uN,fixedFields:{enum:vL.visitors.document.objects.ServerVariable.fixedFields.enum,default:vL.visitors.document.objects.ServerVariable.fixedFields.default,description:vL.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:gN,fixedFields:{schemas:AU,responses:vL.visitors.document.objects.Components.fixedFields.responses,parameters:vL.visitors.document.objects.Components.fixedFields.parameters,examples:vL.visitors.document.objects.Components.fixedFields.examples,requestBodies:vL.visitors.document.objects.Components.fixedFields.requestBodies,headers:vL.visitors.document.objects.Components.fixedFields.headers,securitySchemes:vL.visitors.document.objects.Components.fixedFields.securitySchemes,links:vL.visitors.document.objects.Components.fixedFields.links,callbacks:vL.visitors.document.objects.Components.fixedFields.callbacks,pathItems:PU}},Paths:{$visitor:MU},PathItem:{$visitor:KU,fixedFields:{$ref:vL.visitors.document.objects.PathItem.fixedFields.$ref,summary:vL.visitors.document.objects.PathItem.fixedFields.summary,description:vL.visitors.document.objects.PathItem.fixedFields.description,get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:vL.visitors.document.objects.PathItem.fixedFields.servers,parameters:vL.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:GU,fixedFields:{tags:vL.visitors.document.objects.Operation.fixedFields.tags,summary:vL.visitors.document.objects.Operation.fixedFields.summary,description:vL.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:vL.visitors.document.objects.Operation.fixedFields.operationId,parameters:vL.visitors.document.objects.Operation.fixedFields.parameters,requestBody:vL.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:vL.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:vL.visitors.document.objects.Operation.fixedFields.deprecated,security:vL.visitors.document.objects.Operation.fixedFields.security,servers:vL.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:RU,fixedFields:{description:vL.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:vL.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:kN,fixedFields:{name:vL.visitors.document.objects.Parameter.fixedFields.name,in:vL.visitors.document.objects.Parameter.fixedFields.in,description:vL.visitors.document.objects.Parameter.fixedFields.description,required:vL.visitors.document.objects.Parameter.fixedFields.required,deprecated:vL.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:vL.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:vL.visitors.document.objects.Parameter.fixedFields.style,explode:vL.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:vL.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:vL.visitors.document.objects.Parameter.fixedFields.example,examples:vL.visitors.document.objects.Parameter.fixedFields.examples,content:vL.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:LU,fixedFields:{description:vL.visitors.document.objects.RequestBody.fixedFields.description,content:vL.visitors.document.objects.RequestBody.fixedFields.content,required:vL.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:hN,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:vL.visitors.document.objects.MediaType.fixedFields.example,examples:vL.visitors.document.objects.MediaType.fixedFields.examples,encoding:vL.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:FU,fixedFields:{contentType:vL.visitors.document.objects.Encoding.fixedFields.contentType,headers:vL.visitors.document.objects.Encoding.fixedFields.headers,style:vL.visitors.document.objects.Encoding.fixedFields.style,explode:vL.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:vL.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:VU,fixedFields:{default:vL.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:zU,fixedFields:{description:vL.visitors.document.objects.Response.fixedFields.description,headers:vL.visitors.document.objects.Response.fixedFields.headers,content:vL.visitors.document.objects.Response.fixedFields.content,links:vL.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:NU},Example:{$visitor:CU,fixedFields:{summary:vL.visitors.document.objects.Example.fixedFields.summary,description:vL.visitors.document.objects.Example.fixedFields.description,value:vL.visitors.document.objects.Example.fixedFields.value,externalValue:vL.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:oN,fixedFields:{operationRef:vL.visitors.document.objects.Link.fixedFields.operationRef,operationId:vL.visitors.document.objects.Link.fixedFields.operationId,parameters:vL.visitors.document.objects.Link.fixedFields.parameters,requestBody:vL.visitors.document.objects.Link.fixedFields.requestBody,description:vL.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:jN,fixedFields:{description:vL.visitors.document.objects.Header.fixedFields.description,required:vL.visitors.document.objects.Header.fixedFields.required,deprecated:vL.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:vL.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:vL.visitors.document.objects.Header.fixedFields.style,explode:vL.visitors.document.objects.Header.fixedFields.explode,allowReserved:vL.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:vL.visitors.document.objects.Header.fixedFields.example,examples:vL.visitors.document.objects.Header.fixedFields.examples,content:vL.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:bN,fixedFields:{name:vL.visitors.document.objects.Tag.fixedFields.name,description:vL.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:wN,fixedFields:{$ref:vL.visitors.document.objects.Reference.fixedFields.$ref,summary:$N,description:SN}},Schema:{$visitor:TN,fixedFields:{$schema:CN,$vocabulary:IN,$id:RN,$anchor:_N,$dynamicAnchor:FN,$dynamicRef:DN,$ref:MN,$defs:qN,$comment:LN,allOf:BN,anyOf:NN,oneOf:UN,not:{$ref:"#/visitors/document/objects/Schema"},if:{$ref:"#/visitors/document/objects/Schema"},then:{$ref:"#/visitors/document/objects/Schema"},else:{$ref:"#/visitors/document/objects/Schema"},dependentSchemas:zN,prefixItems:HN,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:VN,patternProperties:WN,additionalProperties:{$ref:"#/visitors/document/objects/Schema"},propertyNames:{$ref:"#/visitors/document/objects/Schema"},unevaluatedItems:{$ref:"#/visitors/document/objects/Schema"},unevaluatedProperties:{$ref:"#/visitors/document/objects/Schema"},type:GN,enum:JN,const:KN,multipleOf:YN,maximum:ZN,exclusiveMaximum:XN,minimum:QN,exclusiveMinimum:eU,maxLength:tU,minLength:rU,pattern:nU,maxItems:sU,minItems:iU,uniqueItems:oU,maxContains:aU,minContains:lU,maxProperties:cU,minProperties:pU,required:uU,dependentRequired:dU,title:hU,description:fU,default:mU,deprecated:yU,readOnly:gU,writeOnly:vU,examples:bU,format:xU,contentEncoding:wU,contentMediaType:$U,contentSchema:{$ref:"#/visitors/document/objects/Schema"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:SU}},Discriminator:{$visitor:kU,fixedFields:{propertyName:vL.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:vL.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:jU,fixedFields:{name:vL.visitors.document.objects.XML.fixedFields.name,namespace:vL.visitors.document.objects.XML.fixedFields.namespace,prefix:vL.visitors.document.objects.XML.fixedFields.prefix,attribute:vL.visitors.document.objects.XML.fixedFields.attribute,wrapped:vL.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:ZU,fixedFields:{type:vL.visitors.document.objects.SecurityScheme.fixedFields.type,description:vL.visitors.document.objects.SecurityScheme.fixedFields.description,name:vL.visitors.document.objects.SecurityScheme.fixedFields.name,in:vL.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:vL.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:vL.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:vL.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:QU,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:tz,fixedFields:{authorizationUrl:vL.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:vL.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:vL.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:vL.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:mN}},extension:{$visitor:vL.visitors.document.extension.$visitor}}}};function sz(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const iz=e=>(t,r={})=>((e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=MP(e),s=cC(nz),i=wO(t,[],s);return zT(n,i,{state:{specObj:s}}),eC(i.element,r,{toolboxCreator:JB,visitorOptions:{keyMap:uB,nodeTypeGetter:pB}})})(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?sz(Object(r),!0).forEach((function(t){fh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sz(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({specPath:e},r));EL.refract=iz(["visitors","document","objects","Callback","$visitor"]),kL.refract=iz(["visitors","document","objects","Components","$visitor"]),OL.refract=iz(["visitors","document","objects","Contact","$visitor"]),PL.refract=iz(["visitors","document","objects","Example","$visitor"]),jL.refract=iz(["visitors","document","objects","Discriminator","$visitor"]),AL.refract=iz(["visitors","document","objects","Encoding","$visitor"]),TL.refract=iz(["visitors","document","objects","ExternalDocumentation","$visitor"]),CL.refract=iz(["visitors","document","objects","Header","$visitor"]),IL.refract=iz(["visitors","document","objects","Info","$visitor"]),_L.refract=iz(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),FL.refract=iz(["visitors","document","objects","License","$visitor"]),DL.refract=iz(["visitors","document","objects","Link","$visitor"]),ML.refract=iz(["visitors","document","objects","MediaType","$visitor"]),qL.refract=iz(["visitors","document","objects","OAuthFlow","$visitor"]),LL.refract=iz(["visitors","document","objects","OAuthFlows","$visitor"]),BL.refract=iz(["visitors","document","objects","OpenApi","fixedFields","openapi"]),NL.refract=iz(["visitors","document","objects","OpenApi","$visitor"]),UL.refract=iz(["visitors","document","objects","Operation","$visitor"]),zL.refract=iz(["visitors","document","objects","Parameter","$visitor"]),HL.refract=iz(["visitors","document","objects","PathItem","$visitor"]),VL.refract=iz(["visitors","document","objects","Paths","$visitor"]),GL.refract=iz(["visitors","document","objects","Reference","$visitor"]),JL.refract=iz(["visitors","document","objects","RequestBody","$visitor"]),KL.refract=iz(["visitors","document","objects","Response","$visitor"]),YL.refract=iz(["visitors","document","objects","Responses","$visitor"]),ZL.refract=iz(["visitors","document","objects","Schema","$visitor"]),XL.refract=iz(["visitors","document","objects","SecurityRequirement","$visitor"]),QL.refract=iz(["visitors","document","objects","SecurityScheme","$visitor"]),eB.refract=iz(["visitors","document","objects","Server","$visitor"]),tB.refract=iz(["visitors","document","objects","ServerVariable","$visitor"]),rB.refract=iz(["visitors","document","objects","Tag","$visitor"]),nB.refract=iz(["visitors","document","objects","XML","$visitor"]);var oz,az,lz={exports:{}},cz=lz.exports={};function pz(){throw new Error("setTimeout has not been defined")}function uz(){throw new Error("clearTimeout has not been defined")}function dz(e){if(oz===setTimeout)return setTimeout(e,0);if((oz===pz||!oz)&&setTimeout)return oz=setTimeout,setTimeout(e,0);try{return oz(e,0)}catch(t){try{return oz.call(null,e,0)}catch(t){return oz.call(this,e,0)}}}!function(){try{oz="function"==typeof setTimeout?setTimeout:pz}catch(e){oz=pz}try{az="function"==typeof clearTimeout?clearTimeout:uz}catch(e){az=uz}}();var hz,fz=[],mz=!1,yz=-1;function gz(){mz&&hz&&(mz=!1,hz.length?fz=hz.concat(fz):yz=-1,fz.length&&vz())}function vz(){if(!mz){var e=dz(gz);mz=!0;for(var t=fz.length;t;){for(hz=fz,fz=[];++yz<t;)hz&&hz[yz].run();yz=-1,t=fz.length}hz=null,mz=!1,function(e){if(az===clearTimeout)return clearTimeout(e);if((az===uz||!az)&&clearTimeout)return az=clearTimeout,clearTimeout(e);try{az(e)}catch(t){try{return az.call(null,e)}catch(t){return az.call(this,e)}}}(e)}}function bz(e,t){this.fun=e,this.array=t}function xz(){}cz.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];fz.push(new bz(e,t)),1!==fz.length||mz||dz(vz)},bz.prototype.run=function(){this.fun.apply(null,this.array)},cz.title="browser",cz.browser=!0,cz.env={},cz.argv=[],cz.version="",cz.versions={},cz.on=xz,cz.addListener=xz,cz.once=xz,cz.off=xz,cz.removeListener=xz,cz.removeAllListeners=xz,cz.emit=xz,cz.prependListener=xz,cz.prependOnceListener=xz,cz.listeners=function(e){return[]},cz.binding=function(e){throw new Error("process.binding is not supported")},cz.cwd=function(){return"/"},cz.chdir=function(e){throw new Error("process.chdir is not supported")},cz.umask=function(){return 0};const wz=mt(lz.exports),$z=()=>gk(Ik(/^win/),["platform"],wz),Sz=e=>{try{const t=new URL(e);return jO(":",t.protocol)}catch{return}};bE(Sz,qk);const Ez=e=>{if(wz.browser)return!1;const t=Sz(e);return Mk(t)||"file"===t||/^[a-zA-Z]$/.test(t)},kz=e=>{const t=Sz(e);return"http"===t||"https"===t},Oz=(e,t)=>{const r=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],n=xk(!1,"keepFileProtocol",t),s=xk($z,"isWindows",t);let i=decodeURI(e);for(let e=0;e<r.length;e+=2)i=i.replace(r[e],r[e+1]);let o="file://"===i.substr(0,7).toLowerCase();return o&&(i="/"===i[7]?i.substr(8):i.substr(7),s()&&"/"===i[1]&&(i=`${i[0]}:${i.substr(1)}`),n?i=`file:///${i}`:(o=!1,i=s()?i:`/${i}`)),s()&&!o&&(i=OO("/","\\",i),":\\"===i.substr(1,2)&&(i=i[0].toUpperCase()+i.substr(1))),i},jz=e=>{const t=e.indexOf("#");return-1!==t?e.substr(t):"#"},Az=e=>{const t=e.indexOf("#");let r=e;return t>=0&&(r=e.substr(0,t)),r},Pz=()=>{if(wz.browser)return Az(globalThis.location.href);const e=wz.cwd(),t=DE(e);return["/","\\"].includes(t)?e:e+($z()?"\\":"/")},Tz=(e,t)=>{const r=new URL(t,new URL(e,"resolve://"));if("resolve:"===r.protocol){const{pathname:e,search:t,hash:n}=r;return e+t+n}return r.toString()},Cz=e=>Ez(e)?(e=>{const t=[/\?/g,"%3F",/#/g,"%23"];let r=e;$z()&&(r=r.replace(/\\/g,"/")),r=encodeURI(r);for(let e=0;e<t.length;e+=2)r=r.replace(t[e],t[e+1]);return r})(Oz(e)):encodeURI(decodeURI(e)).replace(/%5B/g,"[").replace(/%5D/g,"]"),Iz=e=>Ez(e)?Oz(e):decodeURI(e),Rz=GP({props:{uri:null,mediaType:"text/plain",data:null,parseResult:null},init({uri:e=this.uri,mediaType:t=this.mediaType,data:r=this.data,parseResult:n=this.parseResult}={}){this.uri=e,this.mediaType=t,this.data=r,this.parseResult=n},methods:{get extension(){return Kk(this.uri)?(e=>{const t=e.lastIndexOf(".");return t>=0?e.substr(t).toLowerCase():""})(this.uri):""},toString(){return"string"==typeof this.data?this.data:this.data instanceof ArrayBuffer||["ArrayBuffer"].includes(yS(this.data))||ArrayBuffer.isView(this.data)?new TextDecoder("utf-8").decode(this.data):String(this.data)}}}),_z=Rz,Fz={parse:{mediaType:"text/plain",parsers:[],parserOpts:{}},resolve:{baseURI:"",resolvers:[],resolverOpts:{},strategies:[],external:!0,maxDepth:1/0},dereference:{strategies:[],refSet:null,maxDepth:1/0}},Dz=ik(ak(["resolve","baseURI"]),iE(["resolve","baseURI"])),Mz=e=>Yk(e)?Pz():e;class qz extends Error{constructor(e,t){if(super(e),this.name=this.constructor.name,this.message=e,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,oO(t)&&JE("cause",t)&&!JE("cause",this)){const{cause:e}=t;this.cause=e,JE("stack",e)&&(this.stack=`${this.stack}\nCAUSE: ${null==e?void 0:e.stack}`)}}}const Lz=qz,Bz=class extends Lz{constructor(e="Not Implemented",t){super(e,t)}},Nz=class extends Lz{},Uz=class extends Nz{},zz=class extends Lz{},Hz=class extends Lz{constructor(e,t){super(e,{cause:t.cause}),fh(this,"plugin",void 0),this.plugin=t.plugin}},Vz=class extends Lz{},Wz=class extends Nz{},Gz=class extends Lz{},Jz=class extends zz{},Kz=class extends Gz{},Yz=async(e,t,r)=>{const n=await Promise.all(r.map(wO([e],[t])));return r.filter(((e,t)=>n[t]))},Zz=async(e,t,r)=>{let n;for(const s of r)try{const r=await s[e].call(s,...t);return{plugin:s,result:r}}catch(e){n=new Hz("Error while running plugin",{cause:e,plugin:s})}return Promise.reject(n)};function Xz(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Qz(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xz(Object(r),!0).forEach((function(t){fh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xz(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const eH=async(e,t)=>{const r=_z({uri:Cz(Az(e)),mediaType:t.parse.mediaType}),n=await(async(e,t)=>{const r=t.resolve.resolvers.map((e=>{const r=Object.create(e);return Object.assign(r,t.resolve.resolverOpts)})),n=await Yz("canRead",e,r);if(rk(n))throw new Uz(e.uri);try{const{result:t}=await Zz("read",[e],n);return t}catch(t){throw new Nz(`Error while reading file "${e.uri}"`,{cause:t})}})(r,t);return(async(e,t)=>{const r=t.parse.parsers.map((e=>{const r=Object.create(e);return Object.assign(r,t.parse.parserOpts)})),n=await Yz("canParse",e,r);if(rk(n))throw new Uz(e.uri);try{const{plugin:t,result:r}=await Zz("parse",[e],n);return!t.allowEmpty&&r.isEmpty?Promise.reject(new zz(`Error while parsing file "${e.uri}". File is empty.`)):r}catch(t){throw new zz(`Error while parsing file "${e.uri}"`,{cause:t})}})(_z(Qz(Qz({},r),{},{data:n})),t)},tH=GP({props:{name:"",allowEmpty:!0,sourceMap:!1,fileExtensions:[],mediaTypes:[]},init({allowEmpty:e=this.allowEmpty,sourceMap:t=this.sourceMap,fileExtensions:r=this.fileExtensions,mediaTypes:n=this.mediaTypes}={}){this.allowEmpty=e,this.sourceMap=t,this.fileExtensions=r,this.mediaTypes=n},methods:{async canParse(){throw new Bz},async parse(){throw new Bz}}}),rH=tH,nH=GP({props:{name:null},methods:{canRead:()=>!1,async read(){throw new Bz}}}),sH=GP(nH,{props:{timeout:5e3,redirects:5,withCredentials:!1},init({timeout:e=this.timeout,redirects:t=this.redirects,withCredentials:r=this.withCredentials}={}){this.timeout=e,this.redirects=t,this.withCredentials=r},methods:{canRead:e=>kz(e.uri),async read(){throw new Bz},getHttpClient(){throw new Bz}}}),iH=GP({props:{name:null},methods:{canResolve:()=>!1,async resolve(){throw new Bz}}}),oH=GP({props:{name:null},methods:{canDereference:()=>!1,async dereference(){throw new Bz}}}),aH=GP({props:{uri:"",value:null,depth:0,refSet:null,errors:[]},init({depth:e=this.depth,refSet:t=this.refSet,uri:r=this.uri,value:n=this.value}={}){this.uri=r,this.value=n,this.depth=e,this.refSet=t,this.errors=[]}}),lH=GP({props:{rootRef:null,refs:[],circular:!1},init({refs:e=[]}={}){this.refs=[],e.forEach((e=>this.add(e)))},methods:{get size(){return this.refs.length},add(e){return this.has(e)||(this.refs.push(e),this.rootRef=null===this.rootRef?e:this.rootRef,e.refSet=this),this},merge(e){for(const t of e.values())this.add(t);return this},has(e){const t=Kk(e)?e:e.uri;return qk(this.find(bk(t,"uri")))},find(e){return this.refs.find(e)},*values(){yield*this.refs},clean(){this.refs.forEach((e=>{e.refSet=null})),this.refs=[]}}}),cH=GP(rH,{props:{name:"binary"},methods:{async canParse(e){return 0===this.fileExtensions.length||this.fileExtensions.includes(e.extension)},async parse(e){try{const t=unescape(encodeURIComponent(e.toString())),r=btoa(t),n=new BP;if(0!==r.length){const e=new AP(r);e.classes.push("result"),n.push(e)}return n}catch(t){throw new zz(`Error parsing "${e.uri}"`,{cause:t})}}}});class pH extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}}class uH extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}}class dH extends Vz{constructor(e){super(`Invalid JSON Schema $anchor "${e}".`)}}const hH=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),fH=e=>{const t=jz(e);return AO("#",t)},mH=(e,t)=>{const r=(e=>{if(!hH(e))throw new dH(e);return e})(e),n=iC((e=>{var t;return LB(e)&&(null===(t=e.$anchor)||void 0===t?void 0:t.toValue())===r}),t);if(Mk(n))throw new uH(`Evaluation failed on token: "${r}"`);return n},yH=(e,t)=>{if(void 0===t.$ref)return;const r=jz(t.$ref.toValue()),n=t.meta.get("inherited$id").toValue();return`${JS(((e,t)=>Tz(e,Cz(Az(t)))),e,[...n,t.$ref.toValue()])}${"#"===r?"":r}`},gH=e=>{if(gH.cache.has(e))return gH.cache.get(e);const t=ZL.refract(e);return gH.cache.set(e,t),t};gH.cache=new WeakMap;const vH=e=>CT(e)?gH(e):e,bH=(e,t)=>{const{cache:r}=bH,n=Az(e),s=e=>LB(e)&&void 0!==e.$id;if(!r.has(t)){const e=((e,t)=>{const r=UT({predicate:e});return zT(t,r),new OP(r.result)})(s,t);r.set(t,Array.from(e))}const i=r.get(t).find((e=>((e,t)=>{if(void 0===t.$id)return;const r=t.meta.get("inherited$id").toValue();return JS(((e,t)=>Tz(e,Cz(Az(t)))),e,[...r,t.$id.toValue()])})(n,e)===n));if(Mk(i))throw new pH(`Evaluation failed on URI: "${e}"`);let o,a;return hH(fH(e))?(o=mH,a=fH(e)):(o=EC,a=kC(e)),o(a,i)};function xH(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function wH(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xH(Object(r),!0).forEach((function(t){fh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xH(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}bH.cache=new WeakMap;const $H=zT[Symbol.for("nodejs.util.promisify.custom")],SH=GP({props:{indirections:[],namespace:null,reference:null,crawledElements:null,crawlingMap:null,visited:null,options:null},init({reference:e,namespace:t,indirections:r=[],visited:n=new WeakSet,options:s}){this.indirections=r,this.namespace=t,this.reference=e,this.crawledElements=[],this.crawlingMap={},this.visited=n,this.options=s},methods:{toBaseURI(e){return Tz(this.reference.uri,Cz(Az(e)))},async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new Wz(`Maximum resolution depth of ${this.options.resolve.maxDepth} has been exceeded by file "${this.reference.uri}"`);const t=this.toBaseURI(e),{refSet:r}=this.reference;if(r.has(t))return r.find(bk(t,"uri"));const n=await eH(Iz(t),wH(wH({},this.options),{},{parse:wH(wH({},this.options.parse),{},{mediaType:"text/plain"})})),s=aH({uri:t,value:n,depth:this.reference.depth+1});return r.add(s),s},ReferenceElement(e){var t;if(!this.options.resolve.external&&FB(e))return!1;const r=null===(t=e.$ref)||void 0===t?void 0:t.toValue(),n=this.toBaseURI(r);WE(n,this.crawlingMap)||(this.crawlingMap[n]=this.toReference(r)),this.crawledElements.push(e)},PathItemElement(e){var t;if(!vT(e.$ref))return;if(!this.options.resolve.external&&IB(e))return;const r=null===(t=e.$ref)||void 0===t?void 0:t.toValue(),n=this.toBaseURI(r);WE(n,this.crawlingMap)||(this.crawlingMap[n]=this.toReference(r)),this.crawledElements.push(e)},LinkElement(e){if((vT(e.operationRef)||vT(e.operationId))&&(this.options.resolve.external||!OB(e))){if(vT(e.operationRef)&&vT(e.operationId))throw new Error("LinkElement operationRef and operationId are mutually exclusive.");if(OB(e)){var t;const r=null===(t=e.operationRef)||void 0===t?void 0:t.toValue(),n=this.toBaseURI(r);WE(n,this.crawlingMap)||(this.crawlingMap[n]=this.toReference(r))}}},ExampleElement(e){var t;if(!vT(e.externalValue))return;if(!this.options.resolve.external&&vT(e.externalValue))return;if(e.hasKey("value")&&vT(e.externalValue))throw new Error("ExampleElement value and externalValue fields are mutually exclusive.");const r=null===(t=e.externalValue)||void 0===t?void 0:t.toValue(),n=this.toBaseURI(r);WE(n,this.crawlingMap)||(this.crawlingMap[n]=this.toReference(r))},SchemaElement(e){if(this.visited.has(e))return!1;if(!vT(e.$ref))return void this.visited.add(e);const t=this.reference.uri,r=yH(t,e),n=Az(r),s=_z({uri:n}),i=dk((e=>e.canRead(s)),this.options.resolve.resolvers),o=!i,a=!i&&this.reference.uri!==n;if(this.options.resolve.external||!a){if(!WE(n,this.crawlingMap))try{this.crawlingMap[n]=i||o?this.reference:this.toReference(Iz(r))}catch(e){if(!(o&&e instanceof pH))throw e;this.crawlingMap[n]=this.toReference(Iz(r))}this.crawledElements.push(e)}else this.visited.add(e)},async crawlReferenceElement(e){var t;const r=await this.toReference(e.$ref.toValue());this.indirections.push(e);const n=kC(null===(t=e.$ref)||void 0===t?void 0:t.toValue());let s=EC(n,r.value.result);if(CT(s)){const t=e.meta.get("referenced-element").toValue();W_(s)?(s=GL.refract(s),s.setMetaProperty("referenced-element",t)):s=this.namespace.getElementClass(t).refract(s)}if(this.indirections.includes(s))throw new Error("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Kz(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);const i=SH({reference:r,namespace:this.namespace,indirections:[...this.indirections],options:this.options});await $H(s,i,{keyMap:uB,nodeTypeGetter:pB}),await i.crawl(),this.indirections.pop()},async crawlPathItemElement(e){var t;const r=await this.toReference(e.$ref.toValue());this.indirections.push(e);const n=kC(null===(t=e.$ref)||void 0===t?void 0:t.toValue());let s=EC(n,r.value.result);if(CT(s)&&(s=HL.refract(s)),this.indirections.includes(s))throw new Error("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Kz(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);const i=SH({reference:r,namespace:this.namespace,indirections:[...this.indirections],options:this.options});await $H(s,i,{keyMap:uB,nodeTypeGetter:pB}),await i.crawl(),this.indirections.pop()},async crawlSchemaElement(e){const t=this.reference.uri,r=yH(t,e),n=Az(r),s=_z({uri:n}),i=dk((e=>e.canRead(s)),this.options.resolve.resolvers),o=!i;let a,l;this.indirections.push(e);try{if(i||o)a=this.reference,l=bH(r,vH(a.value.result));else{a=await this.toReference(Iz(r));const e=kC(r);l=vH(EC(e,a.value.result))}}catch(e){if(!(o&&e instanceof pH))throw e;if(hH(fH(r))){a=await this.toReference(Iz(r));const e=fH(r);l=mH(e,vH(a.value.result))}else{a=await this.toReference(Iz(r));const e=kC(r);l=vH(EC(e,a.value.result))}}if(this.visited.add(e),this.indirections.includes(l))throw new Error("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Kz(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);const c=SH({reference:a,namespace:this.namespace,indirections:[...this.indirections],options:this.options,visited:this.visited});await $H(l,c,{keyMap:uB,nodeTypeGetter:pB}),await c.crawl(),this.indirections.pop()},async crawl(){await bE(rE,fO)(this.crawlingMap),this.crawlingMap=null;for(const e of this.crawledElements)_B(e)?await this.crawlReferenceElement(e):LB(e)?await this.crawlSchemaElement(e):CB(e)&&await this.crawlPathItemElement(e)}}}),EH=SH,kH=zT[Symbol.for("nodejs.util.promisify.custom")],OH=GP(iH,{init(){this.name="openapi-3-1"},methods:{canResolve(e){var t;return"text/plain"!==e.mediaType?jC.includes(e.mediaType):AB(null===(t=e.parseResult)||void 0===t?void 0:t.result)},async resolve(e,t){const r=HP(sB),n=aH({uri:e.uri,value:e.parseResult}),s=EH({reference:n,namespace:r,options:t}),i=lH();return i.add(n),await kH(i.rootRef.value,s,{keyMap:uB,nodeTypeGetter:pB}),await s.crawl(),i}}}),jH=OH,AH=e=>{if(!$T(e))return e;if(e.hasKey("$$normalized"))return e;const t=[mB({operationIdNormalizer:(e,t,r)=>Dx({operationId:e},t,r,{v2OperationIdCompatibilityMode:!1})}),({predicates:e})=>{const t=(t,r)=>!!(e.isParameterElement(t)&&e.isParameterElement(r)&&e.isStringElement(t.name)&&e.isStringElement(t.in)&&e.isStringElement(r.name)&&e.isStringElement(r.in)&&bC(t.name)===bC(r.name)&&bC(t.in)===bC(r.in)),r=[];return{visitor:{PathItemElement:{enter(t,n,s,i,o){if(o.some(e.isComponentsElement))return;const{parameters:a}=t;e.isArrayElement(a)?r.push([...a.content]):r.push([])},leave(){r.pop()}},OperationElement:{leave(e){const n=DE(r);if(!Array.isArray(n)||0===n.length)return;const s=yk([],["parameters","content"],e),i=_k(t,[...s,...n]);e.parameters=new e_(i)}}}}},({predicates:e})=>{let t;return{visitor:{OpenApi3_1Element:{enter(r){e.isArrayElement(r.security)&&(t=r.security)},leave(){t=void 0}},OperationElement:{leave(r,n,s,i,o){var a;o.some(e.isComponentsElement)||void 0===r.security&&void 0!==t&&(r.security=new p_(null===(a=t)||void 0===a?void 0:a.content))}}}}},({predicates:e})=>{let t;const r=[];return{visitor:{OpenApi3_1Element:{enter(r){var n;e.isArrayElement(r.servers)&&(t=null===(n=r.servers)||void 0===n?void 0:n.content)},leave(){t=void 0}},PathItemElement:{enter(n,s,i,o,a){if(a.some(e.isComponentsElement))return;void 0===n.servers&&void 0!==t&&(n.servers=new YR(t));const{servers:l}=n;void 0!==l&&e.isArrayElement(l)?r.push([...l.content]):r.push(void 0)},leave(){r.pop()}},OperationElement:{enter(t){const n=DE(r);void 0!==n&&(e.isArrayElement(t.servers)||(t.servers=new d_(n)))}}}}},({predicates:e})=>({visitor:{ParameterElement:{leave(t,r,n,s,i){var o,a;if(!i.some(e.isComponentsElement)&&void 0!==t.schema&&e.isSchemaElement(t.schema)&&(void 0!==(null===(o=t.schema)||void 0===o?void 0:o.example)||void 0!==(null===(a=t.schema)||void 0===a?void 0:a.examples))){if(void 0!==t.examples&&e.isObjectElement(t.examples)){const e=t.examples.map((e=>{var t;return null===(t=e.value)||void 0===t?void 0:t.clone()}));return void 0!==t.schema.examples&&t.schema.set("examples",e),void(void 0!==t.schema.example&&t.schema.set("example",e))}void 0!==t.example&&(void 0!==t.schema.examples&&t.schema.set("examples",[t.example.clone()]),void 0!==t.schema.example&&t.schema.set("example",t.example.clone()))}}}}}),({predicates:e})=>({visitor:{HeaderElement:{leave(t,r,n,s,i){var o,a;if(!i.some(e.isComponentsElement)&&void 0!==t.schema&&e.isSchemaElement(t.schema)&&(void 0!==(null===(o=t.schema)||void 0===o?void 0:o.example)||void 0!==(null===(a=t.schema)||void 0===a?void 0:a.examples))){if(void 0!==t.examples&&e.isObjectElement(t.examples)){const e=t.examples.map((e=>{var t;return null===(t=e.value)||void 0===t?void 0:t.clone()}));return void 0!==t.schema.examples&&t.schema.set("examples",e),void(void 0!==t.schema.example&&t.schema.set("example",e))}void 0!==t.example&&(void 0!==t.schema.examples&&t.schema.set("examples",[t.example.clone()]),void 0!==t.schema.example&&t.schema.set("example",t.example.clone()))}}}}})],r=eC(e,t,{toolboxCreator:JB,visitorOptions:{keyMap:uB,nodeTypeGetter:pB}});return r.set("$$normalized",!0),r},PH=e=>t=>{if(t?.$$normalized)return t;if(PH.cache.has(t))return t;const r=NL.refract(t),n=e(r),s=bC(n);return PH.cache.set(t,s),s};PH.cache=new WeakMap;const TH=sH.compose({props:{name:"http-swagger-client",swaggerHTTPClient:Cv,swaggerHTTPClientConfig:{}},init(){let{swaggerHTTPClient:e=this.swaggerHTTPClient}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.swaggerHTTPClient=e},methods:{getHttpClient(){return this.swaggerHTTPClient},async read(e){const t=this.getHttpClient(),r=new AbortController,{signal:n}=r,s=setTimeout((()=>{r.abort()}),this.timeout),i=this.getHttpClient().withCredentials||this.withCredentials?"include":"same-origin",o=0===this.redirects?"error":"follow",a=this.redirects>0?this.redirects:void 0;try{return(await t(yh({url:e.uri,signal:n,userFetch:async(e,t)=>{let r=await fetch(e,t);try{r.headers.delete("Content-Type")}catch{r=new Response(r.body,yh(yh({},r),{},{headers:new Headers(r.headers)})),r.headers.delete("Content-Type")}return r},credentials:i,redirects:o,follow:a},this.swaggerHTTPClientConfig))).text.arrayBuffer()}catch(t){throw new Nz(`Error downloading "${e.uri}"`,{cause:t})}finally{clearTimeout(s)}}}}),CH=rH.compose({props:{name:"json-swagger-client",fileExtensions:[".json"],mediaTypes:["application/json"]},methods:{async canParse(e){const t=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{return JSON.parse(e.toString()),!0}catch(e){return!1}return!1},async parse(e){if(this.sourceMap)throw new zz("json-swagger-client parser plugin doesn't support sourceMaps option");const t=new BP,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=vC(JSON.parse(r));return e.classes.push("result"),t.push(e),t}catch(t){throw new zz(`Error parsing "${e.uri}"`,{cause:t})}}}}),IH=rH.compose({props:{name:"yaml-1-2-swagger-client",fileExtensions:[".yaml",".yml"],mediaTypes:["text/yaml","application/yaml"]},methods:{async canParse(e){const t=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{return xv.load(e.toString(),{schema:cv}),!0}catch(e){return!1}return!1},async parse(e){if(this.sourceMap)throw new zz("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const t=new BP,r=e.toString();try{const e=xv.load(r,{schema:cv});if(this.allowEmpty&&void 0===e)return t;const n=vC(e);return n.classes.push("result"),t.push(n),t}catch(t){throw new zz(`Error parsing "${e.uri}"`,{cause:t})}}}}),RH=rH.compose({props:{name:"openapi-json-3-1-swagger-client",fileExtensions:[".json"],mediaTypes:new OC(...jC.filterByFormat("generic"),...jC.filterByFormat("json")),detectionRegExp:/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/},methods:{async canParse(e){const t=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{const t=e.toString();return JSON.parse(t),this.detectionRegExp.test(t)}catch(e){return!1}return!1},async parse(e){if(this.sourceMap)throw new zz("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new BP,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=JSON.parse(r),n=NL.refract(e,this.refractorOpts);return n.classes.push("result"),t.push(n),t}catch(t){throw new zz(`Error parsing "${e.uri}"`,{cause:t})}}}}),_H=rH.compose({props:{name:"openapi-yaml-3-1-swagger-client",fileExtensions:[".yaml",".yml"],mediaTypes:new OC(...jC.filterByFormat("generic"),...jC.filterByFormat("yaml")),detectionRegExp:/(?<YAML>^(["']?)openapi\2\s*:\s*(["']?)(?<version_yaml>3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?<JSON>"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))")/m},methods:{async canParse(e){const t=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{const t=e.toString();return xv.load(t),this.detectionRegExp.test(t)}catch(e){return!1}return!1},async parse(e){if(this.sourceMap)throw new zz("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new BP,r=e.toString();try{const e=xv.load(r,{schema:cv});if(this.allowEmpty&&void 0===e)return t;const n=NL.refract(e,this.refractorOpts);return n.classes.push("result"),t.push(n),t}catch(t){throw new zz(`Error parsing "${e.uri}"`,{cause:t})}}}});function FH(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function DH(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?FH(Object(r),!0).forEach((function(t){fh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FH(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const MH=zT[Symbol.for("nodejs.util.promisify.custom")],qH=GP({props:{indirections:null,namespace:null,reference:null,options:null,ancestors:null},init({indirections:e=[],reference:t,namespace:r,options:n,ancestors:s=[]}){this.indirections=e,this.namespace=r,this.reference=t,this.options=n,this.ancestors=[...s]},methods:{toBaseURI(e){return Tz(this.reference.uri,Cz(Az(e)))},toAncestorLineage(e){const t=new WeakSet(e.filter(gT));return[[...this.ancestors,t],t]},async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new Wz(`Maximum resolution depth of ${this.options.resolve.maxDepth} has been exceeded by file "${this.reference.uri}"`);const t=this.toBaseURI(e),{refSet:r}=this.reference;if(r.has(t))return r.find(bk(t,"uri"));const n=await eH(Iz(t),DH(DH({},this.options),{},{parse:DH(DH({},this.options.parse),{},{mediaType:"text/plain"})})),s=aH({uri:t,value:n,depth:this.reference.depth+1});return r.add(s),s},async ReferenceElement(e,t,r,n,s){var i,o,a,l,c;const[p,u]=this.toAncestorLineage([...s,r]);if(p.some((t=>t.has(e))))return!1;if(!this.options.resolve.external&&FB(e))return!1;const d=await this.toReference(null===(i=e.$ref)||void 0===i?void 0:i.toValue()),h=d.uri,f=Tz(h,null===(o=e.$ref)||void 0===o?void 0:o.toValue());this.indirections.push(e);const m=kC(f);let y=EC(m,d.value.result);if(CT(y)){const t=e.meta.get("referenced-element").toValue();W_(y)?(y=GL.refract(y),y.setMetaProperty("referenced-element",t)):y=this.namespace.getElementClass(t).refract(y)}if(this.indirections.includes(y))throw new Error("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Kz(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);u.add(e);const g=qH({reference:d,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:p});y=await MH(y,g,{keyMap:uB,nodeTypeGetter:pB}),u.delete(e),this.indirections.pop(),y=y.clone(),y.setMetaProperty("ref-fields",{$ref:null===(a=e.$ref)||void 0===a?void 0:a.toValue(),description:null===(l=e.description)||void 0===l?void 0:l.toValue(),summary:null===(c=e.summary)||void 0===c?void 0:c.toValue()}),y.setMetaProperty("ref-origin",d.uri);const v=gk(qk,["description"],e),b=gk(qk,["summary"],e);return v&&JE("description",y)&&(y.description=e.description),b&&JE("summary",y)&&(y.summary=e.summary),this.indirections.pop(),y},async PathItemElement(e,t,r,n,s){var i,o,a;const[l,c]=this.toAncestorLineage([...s,r]);if(!vT(e.$ref))return;if(l.some((t=>t.has(e))))return!1;if(!this.options.resolve.external&&IB(e))return;const p=await this.toReference(null===(i=e.$ref)||void 0===i?void 0:i.toValue()),u=p.uri,d=Tz(u,null===(o=e.$ref)||void 0===o?void 0:o.toValue());this.indirections.push(e);const h=kC(d);let f=EC(h,p.value.result);if(CT(f)&&(f=HL.refract(f)),this.indirections.includes(f))throw new Error("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Kz(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);c.add(e);const m=qH({reference:p,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:l});f=await MH(f,m,{keyMap:uB,nodeTypeGetter:pB}),c.delete(e),this.indirections.pop();const y=new HL([...f.content],f.meta.clone(),f.attributes.clone());return e.forEach(((e,t,r)=>{y.remove(t.toValue()),y.content.push(r)})),y.remove("$ref"),y.setMetaProperty("ref-fields",{$ref:null===(a=e.$ref)||void 0===a?void 0:a.toValue()}),y.setMetaProperty("ref-origin",p.uri),y},async LinkElement(e){if(!vT(e.operationRef)&&!vT(e.operationId))return;if(!this.options.resolve.external&&OB(e))return;if(vT(e.operationRef)&&vT(e.operationId))throw new Error("LinkElement operationRef and operationId fields are mutually exclusive.");let t;if(vT(e.operationRef)){var r,n,s;const i=kC(null===(r=e.operationRef)||void 0===r?void 0:r.toValue()),o=await this.toReference(null===(n=e.operationRef)||void 0===n?void 0:n.toValue());t=EC(i,o.value.result),CT(t)&&(t=UL.refract(t)),t=new UL([...t.content],t.meta.clone(),t.attributes.clone()),t.setMetaProperty("ref-origin",o.uri),null===(s=e.operationRef)||void 0===s||s.meta.set("operation",t)}else if(vT(e.operationId)){var i,o;const r=null===(i=e.operationId)||void 0===i?void 0:i.toValue();if(t=iC((e=>PB(e)&&e.operationId.equals(r)),this.reference.value.result),Mk(t))throw new Error(`OperationElement(operationId=${r}) not found.`);null===(o=e.operationId)||void 0===o||o.meta.set("operation",t)}},async ExampleElement(e){var t;if(!vT(e.externalValue))return;if(!this.options.resolve.external&&vT(e.externalValue))return;if(e.hasKey("value")&&vT(e.externalValue))throw new Error("ExampleElement value and externalValue fields are mutually exclusive.");const r=await this.toReference(null===(t=e.externalValue)||void 0===t?void 0:t.toValue()),n=new r.value.result.constructor(r.value.result.content,r.value.result.meta.clone(),r.value.result.attributes.clone());n.setMetaProperty("ref-origin",r.uri),e.value=n},async SchemaElement(e,t,r,n,s){var i;const[o,a]=this.toAncestorLineage([...s,r]);if(!vT(e.$ref))return;if(o.some((t=>t.has(e))))return!1;let{reference:l}=this,{uri:c}=l;const p=yH(c,e),u=Az(p),d=_z({uri:u}),h=dk((e=>e.canRead(d)),this.options.resolve.resolvers),f=!h,m=f&&c!==u;if(!this.options.resolve.external&&m)return;let y;this.indirections.push(e);try{if(h||f)y=bH(p,vH(l.value.result));else{l=await this.toReference(Iz(p));const e=kC(p);y=vH(EC(e,l.value.result))}}catch(e){if(!(f&&e instanceof pH))throw e;if(hH(fH(p))){l=await this.toReference(Iz(p)),c=l.uri;const e=fH(p);y=mH(e,vH(l.value.result))}else{l=await this.toReference(Iz(p)),c=l.uri;const e=kC(p);y=vH(EC(e,l.value.result))}}if(this.indirections.includes(y))throw new Error("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Kz(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);a.add(e);const g=qH({reference:l,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:o});if(y=await MH(y,g,{keyMap:uB,nodeTypeGetter:pB}),a.delete(e),this.indirections.pop(),BB(y)){var v;const t=y.clone();return t.setMetaProperty("ref-fields",{$ref:null===(v=e.$ref)||void 0===v?void 0:v.toValue()}),t.setMetaProperty("ref-origin",l.uri),t}const b=new ZL([...y.content],y.meta.clone(),y.attributes.clone());return e.forEach(((e,t,r)=>{b.remove(t.toValue()),b.content.push(r)})),b.remove("$ref"),b.setMetaProperty("ref-fields",{$ref:null===(i=e.$ref)||void 0===i?void 0:i.toValue()}),b.setMetaProperty("ref-origin",l.uri),b}}}),LH=qH,BH=zT[Symbol.for("nodejs.util.promisify.custom")],NH=GP(oH,{init(){this.name="openapi-3-1"},methods:{canDereference(e){var t;return"text/plain"!==e.mediaType?jC.includes(e.mediaType):AB(null===(t=e.parseResult)||void 0===t?void 0:t.result)},async dereference(e,t){const r=HP(sB),n=jE(lH(),t.dereference.refSet);let s;n.has(e.uri)?s=n.find(bk(e.uri,"uri")):(s=aH({uri:e.uri,value:e.parseResult}),n.add(s));const i=LH({reference:s,namespace:r,options:t}),o=await BH(n.rootRef.value,i,{keyMap:uB,nodeTypeGetter:pB});return null===t.dereference.refSet&&n.clean(),o}}}),UH=NH,zH=e=>{const t=(e=>e.slice(2))(e);return t.reduce(((e,r,n)=>{if(ET(r)){const t=String(r.key.toValue());e.push(t)}else if(ST(t[n-2])){const s=t[n-2].content.indexOf(r);e.push(s)}return e}),[])},HH=e=>{if(null==e.cause)return e;let{cause:t}=e;for(;null!=t.cause;)t=t.cause;return t},VH=Vb("SchemaRefError",(function(e,t,r){this.originalError=r,Object.assign(this,t||{})})),{wrapError:WH}=mx,GH=zT[Symbol.for("nodejs.util.promisify.custom")],JH=LH.compose({props:{useCircularStructures:!0,allowMetaPatches:!1,basePath:null},init(e){let{allowMetaPatches:t=this.allowMetaPatches,useCircularStructures:r=this.useCircularStructures,basePath:n=this.basePath}=e;this.allowMetaPatches=t,this.useCircularStructures=r,this.basePath=n},methods:{async ReferenceElement(e,t,r,n,s){try{const[t,n]=this.toAncestorLineage([...s,r]);if(RT(["cycle"],e.$ref))return!1;if(t.some((t=>t.has(e))))return!1;if(!this.options.resolve.external&&FB(e))return!1;const i=await this.toReference(e.$ref.toValue()),o=i.uri,a=Tz(o,e.$ref.toValue());this.indirections.push(e);const l=kC(a);let c=EC(l,i.value.result);if(CT(c)){const t=e.meta.get("referenced-element").toValue();if(W_(c))c=GL.refract(c),c.setMetaProperty("referenced-element",t);else{const e=this.namespace.getElementClass(t);c=e.refract(c)}}if(this.indirections.includes(c))throw new Error("Recursive JSON Pointer detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Kz(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(!this.useCircularStructures&&t.some((e=>e.has(c)))){if(kz(o)||Ez(o)){const t=new GL({$ref:a},e.meta.clone(),e.attributes.clone());return t.get("$ref").classes.push("cycle"),t}return!1}n.add(e);const p=JH({reference:i,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...zH([...s,r,e]),"$ref"]});c=await GH(c,p,{keyMap:uB,nodeTypeGetter:pB}),n.delete(e),this.indirections.pop(),c=c.clone(),c.setMetaProperty("ref-fields",{$ref:e.$ref?.toValue(),description:e.description?.toValue(),summary:e.summary?.toValue()}),c.setMetaProperty("ref-origin",i.uri);const u=void 0!==e.description,d=void 0!==e.summary;if(u&&"description"in c&&(c.description=e.description),d&&"summary"in c&&(c.summary=e.summary),this.allowMetaPatches&&$T(c)){const e=c;if(void 0===e.get("$$ref")){const t=Tz(o,a);e.set("$$ref",t)}}return c}catch(t){const n=HH(t),i=WH(n,{baseDoc:this.reference.uri,$ref:e.$ref.toValue(),pointer:kC(e.$ref.toValue()),fullPath:this.basePath??[...zH([...s,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}},async PathItemElement(e,t,r,n,s){try{const[t,n]=this.toAncestorLineage([...s,r]);if(!vT(e.$ref))return;if(RT(["cycle"],e.$ref))return!1;if(t.some((t=>t.has(e))))return!1;if(!this.options.resolve.external&&IB(e))return;const i=await this.toReference(e.$ref.toValue()),o=i.uri,a=Tz(o,e.$ref.toValue());this.indirections.push(e);const l=kC(a);let c=EC(l,i.value.result);if(CT(c)&&(c=HL.refract(c)),this.indirections.includes(c))throw new Error("Recursive JSON Pointer detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Kz(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(!this.useCircularStructures&&t.some((e=>e.has(c)))){if(kz(o)||Ez(o)){const t=new HL({$ref:a},e.meta.clone(),e.attributes.clone());return t.get("$ref").classes.push("cycle"),t}return!1}n.add(e);const p=JH({reference:i,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...zH([...s,r,e]),"$ref"]});c=await GH(c,p,{keyMap:uB,nodeTypeGetter:pB}),n.delete(e),this.indirections.pop();const u=new HL([...c.content],c.meta.clone(),c.attributes.clone());if(e.forEach(((e,t,r)=>{u.remove(t.toValue()),u.content.push(r)})),u.remove("$ref"),u.setMetaProperty("ref-fields",{$ref:e.$ref?.toValue()}),u.setMetaProperty("ref-origin",i.uri),this.allowMetaPatches&&void 0===u.get("$$ref")){const e=Tz(o,a);u.set("$$ref",e)}return u}catch(t){const n=HH(t),i=WH(n,{baseDoc:this.reference.uri,$ref:e.$ref.toValue(),pointer:kC(e.$ref.toValue()),fullPath:this.basePath??[...zH([...s,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}},async SchemaElement(e,t,r,n,s){try{const[t,n]=this.toAncestorLineage([...s,r]);if(!vT(e.$ref))return;if(RT(["cycle"],e.$ref))return!1;if(t.some((t=>t.has(e))))return!1;let{reference:i}=this,{uri:o}=i;const a=yH(o,e),l=Az(a),c=_z({uri:l}),p=!this.options.resolve.resolvers.some((e=>e.canRead(c))),u=!p,d=u&&o!==l;if(!this.options.resolve.external&&d)return;let h;this.indirections.push(e);try{if(p||u)h=bH(a,vH(i.value.result));else{i=await this.toReference(Iz(a)),o=i.uri;const e=kC(a);h=vH(EC(e,i.value.result))}}catch(e){if(!(u&&e instanceof pH))throw e;if(hH(fH(a))){i=await this.toReference(Iz(a)),o=i.uri;const e=fH(a);h=mH(e,vH(i.value.result))}else{i=await this.toReference(Iz(a)),o=i.uri;const e=kC(a);h=vH(EC(e,i.value.result))}}if(this.indirections.includes(h))throw new Error("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Kz(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(!this.useCircularStructures&&t.some((e=>e.has(h)))){if(kz(o)||Ez(o)){const t=Tz(o,a),r=new ZL({$ref:t},e.meta.clone(),e.attributes.clone());return r.get("$ref").classes.push("cycle"),r}return!1}n.add(e);const f=JH({reference:i,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:t,basePath:this.basePath??[...zH([...s,r,e]),"$ref"]});if(h=await GH(h,f,{keyMap:uB,nodeTypeGetter:pB}),n.delete(e),this.indirections.pop(),BB(h)){const t=h.clone();return t.setMetaProperty("ref-fields",{$ref:e.$ref?.toValue()}),t.setMetaProperty("ref-origin",o),t}const m=new ZL([...h.content],h.meta.clone(),h.attributes.clone());if(e.forEach(((e,t,r)=>{m.remove(t.toValue()),m.content.push(r)})),m.remove("$ref"),m.setMetaProperty("ref-fields",{$ref:e.$ref?.toValue()}),m.setMetaProperty("ref-origin",o),this.allowMetaPatches&&void 0===m.get("$$ref")){const e=Tz(o,a);m.set("$$ref",e)}return m}catch(t){const n=HH(t),i=new VH(`Could not resolve reference: ${n.message}`,{baseDoc:this.reference.uri,$ref:e.$ref.toValue(),fullPath:this.basePath??[...zH([...s,r,e]),"$ref"]},n);return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}},async LinkElement(){},async ExampleElement(e,t,r,n,s){try{return await LH.compose.methods.ExampleElement.call(this,e,t,r,n,s)}catch(t){const n=HH(t),i=WH(n,{baseDoc:this.reference.uri,externalValue:e.externalValue?.toValue(),fullPath:this.basePath??[...zH([...s,r,e]),"externalValue"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}}}),KH=UH.compose.bind(),YH=KH({init(e){let{parameterMacro:t,options:r}=e;this.parameterMacro=t,this.options=r},props:{parameterMacro:null,options:null,macroOperation:null,OperationElement:{enter(e){this.macroOperation=e},leave(){this.macroOperation=null}},ParameterElement:{leave(e,t,r,n,s){const i=null===this.macroOperation?null:bC(this.macroOperation),o=bC(e);try{const t=this.parameterMacro(i,o);e.set("default",t)}catch(e){const t=new Error(e,{cause:e});t.fullPath=zH([...s,r]),this.options.dereference.dereferenceOpts?.errors?.push?.(t)}}}}}),ZH=KH({init(e){let{modelPropertyMacro:t,options:r}=e;this.modelPropertyMacro=t,this.options=r},props:{modelPropertyMacro:null,options:null,SchemaElement:{leave(e,t,r,n,s){void 0!==e.properties&&$T(e.properties)&&e.properties.forEach((t=>{if($T(t))try{const e=this.modelPropertyMacro(bC(t));t.set("default",e)}catch(t){const n=new Error(t,{cause:t});n.fullPath=[...zH([...s,r,e]),"properties"],this.options.dereference.dereferenceOpts?.errors?.push?.(n)}}))}}}}),XH=KH({init(e){let{options:t}=e;this.options=t},props:{options:null,SchemaElement:{leave(e,t,r,n,s){if(void 0===e.allOf)return;if(!ST(e.allOf)){const t=new TypeError("allOf must be an array");return t.fullPath=[...zH([...s,r,e]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(t)}if(e.allOf.isEmpty)return new ZL(e.content.filter((e=>"allOf"!==e.key.toValue())),e.meta.clone(),e.attributes.clone());if(!e.allOf.content.every(LB)){const t=new TypeError("Elements in allOf must be objects");return t.fullPath=[...zH([...s,r,e]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(t)}const i=gC.all([...e.allOf.content,e]);return e.hasKey("$$ref")||i.remove("$$ref"),e.hasKey("example")&&(i.getMember("example").value=e.get("example")),e.hasKey("examples")&&(i.getMember("examples").value=e.get("examples")),i.remove("allOf"),i}}}}),QH=zT[Symbol.for("nodejs.util.promisify.custom")],eV=UH.compose({props:{useCircularStructures:!0,allowMetaPatches:!1,parameterMacro:null,modelPropertyMacro:null,mode:"non-strict",ancestors:null},init(){let{useCircularStructures:e=this.useCircularStructures,allowMetaPatches:t=this.allowMetaPatches,parameterMacro:r=this.parameterMacro,modelPropertyMacro:n=this.modelPropertyMacro,mode:s=this.mode,ancestors:i=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.name="openapi-3-1-swagger-client",this.useCircularStructures=e,this.allowMetaPatches=t,this.parameterMacro=r,this.modelPropertyMacro=n,this.mode=s,this.ancestors=[...i]},methods:{async dereference(e,t){const r=[],n=HP(sB),s=t.dereference.refSet??lH();let i;s.has(e.uri)?i=s.find((t=>t.uri===e.uri)):(i=aH({uri:e.uri,value:e.parseResult}),s.add(i));const o=JH({reference:i,namespace:n,options:t,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors});if(r.push(o),"function"==typeof this.parameterMacro){const e=YH({parameterMacro:this.parameterMacro,options:t});r.push(e)}if("function"==typeof this.modelPropertyMacro){const e=ZH({modelPropertyMacro:this.modelPropertyMacro,options:t});r.push(e)}if("strict"!==this.mode){const e=XH({options:t});r.push(e)}const a=cT(r,{nodeTypeGetter:pB}),l=await QH(s.rootRef.value,a,{keyMap:uB,nodeTypeGetter:pB});return null===t.dereference.refSet&&s.clean(),l}}}),tV=async e=>{const{spec:t,timeout:r,redirects:n,requestInterceptor:s,responseInterceptor:i,pathDiscriminator:o=[],allowMetaPatches:a=!1,useCircularStructures:l=!1,skipNormalization:c=!1,parameterMacro:p=null,modelPropertyMacro:u=null,mode:d="non-strict"}=e;try{const{cache:f}=tV,m=kz(Pz())?Pz():"https://smartbear.com/",y=Hv(e),g=Tz(m,y);let v;f.has(t)?v=f.get(t):(v=NL.refract(t),v.classes.push("result"),f.set(t,v));const b=new BP([v]),x=0===(h=o).length?"":`/${h.map($C).join("/")}`,w=""===x?"":`#${x}`,$=EC(x,v),S=aH({uri:g,value:b}),E=lH({refs:[S]});""!==x&&(E.rootRef=null);const k=[new WeakSet([$])],O=[],j=((e,t,r)=>lC({element:r}).transclude(e,t))($,await(async(e,t={})=>(async(e,t)=>{let r=e,n=!1;if(!PT(e)){const t=new e.constructor(e.content,e.meta.clone(),e.attributes);t.classes.push("result"),r=new BP([t]),n=!0}const s=_z({uri:t.resolve.baseURI,parseResult:r,mediaType:t.parse.mediaType}),i=await Yz("canDereference",s,t.dereference.strategies);if(rk(i))throw new Jz(s.uri);try{const{result:e}=await Zz("dereference",[s,t],i);return n?e.get(0):e}catch(e){throw new Gz(`Error while dereferencing file "${s.uri}"`,{cause:e})}})(e,((e,t)=>{const r=uk(e,t);return mk(Dz,Mz,r)})(Fz,t)))($,{resolve:{baseURI:`${g}${w}`,resolvers:[TH({timeout:r||1e4,redirects:n||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:s,responseInterceptor:i}},strategies:[jH()]},parse:{mediaType:jC.latest(),parsers:[RH({allowEmpty:!1,sourceMap:!1}),_H({allowEmpty:!1,sourceMap:!1}),CH({allowEmpty:!1,sourceMap:!1}),IH({allowEmpty:!1,sourceMap:!1}),cH({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[eV({allowMetaPatches:a,useCircularStructures:l,parameterMacro:p,modelPropertyMacro:u,mode:d,ancestors:k})],refSet:E,dereferenceOpts:{errors:O}}}),v),A=c?j:AH(j);return{spec:bC(A),errors:O}}catch(e){if(e instanceof wC||e instanceof xC)return{spec:null,errors:[]};throw e}var h};tV.cache=new WeakMap;const rV={name:"openapi-3-1-apidom",match(e){let{spec:t}=e;return Nx(t)},normalize(e){let{spec:t}=e;return PH(AH)(t)},resolve:async e=>tV(e)};function nV(e,t,r){if(!e||"object"!=typeof e||!e.paths||"object"!=typeof e.paths)return null;const{paths:n}=e;for(const s in n)for(const i in n[s]){if("PARAMETERS"===i.toUpperCase())continue;const o=n[s][i];if(!o||"object"!=typeof o)continue;const a={spec:e,pathName:s,method:i.toUpperCase(),operation:o},l=t(a);if(r&&l)return a}}function sV(e,t){return`${t.toLowerCase()}-${e}`}const iV=()=>null,oV=function(e){let{spec:t,cb:r=iV,defaultTag:n="default",v2OperationIdCompatibilityMode:s}=e;const i={},o={};return nV(t,(e=>{let{pathName:a,method:l,operation:c}=e;var p;(c.tags?(p=c.tags,Array.isArray(p)?p:[p]):[n]).forEach((e=>{if("string"!=typeof e)return;o[e]=o[e]||{};const n=o[e],p=Dx(c,a,l,{v2OperationIdCompatibilityMode:s}),u=r({spec:t,pathName:a,method:l,operation:c,operationId:p});if(i[p])i[p]+=1,n[`${p}${i[p]}`]=u;else if(void 0!==n[p]){const e=i[p]||1;i[p]=e+1,n[`${p}${i[p]}`]=u;const t=n[p];delete n[p],n[`${p}${e}`]=t}else n[p]=u}))})),o},aV=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t=>{let{pathName:r,method:n,operationId:s}=t;return function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{requestInterceptor:o,responseInterceptor:a,userFetch:l}=e;return e.execute(yh({spec:e.spec,requestInterceptor:o,responseInterceptor:a,userFetch:l,pathName:r,method:n,parameters:t,operationId:s},i))}}};var lV=function(e,t,r){var n=r||{},s=n.encode||uV;if("function"!=typeof s)throw new TypeError("option encode is invalid");if(!pV.test(e))throw new TypeError("argument name is invalid");var i=s(t);if(i&&!pV.test(i))throw new TypeError("argument val is invalid");var o=e+"="+i;if(null!=n.maxAge){var a=n.maxAge-0;if(isNaN(a)||!isFinite(a))throw new TypeError("option maxAge is invalid");o+="; Max-Age="+Math.floor(a)}if(n.domain){if(!pV.test(n.domain))throw new TypeError("option domain is invalid");o+="; Domain="+n.domain}if(n.path){if(!pV.test(n.path))throw new TypeError("option path is invalid");o+="; Path="+n.path}if(n.expires){var l=n.expires;if(!function(e){return"[object Date]"===cV.call(e)||e instanceof Date}(l)||isNaN(l.valueOf()))throw new TypeError("option expires is invalid");o+="; Expires="+l.toUTCString()}if(n.httpOnly&&(o+="; HttpOnly"),n.secure&&(o+="; Secure"),n.priority)switch("string"==typeof n.priority?n.priority.toLowerCase():n.priority){case"low":o+="; Priority=Low";break;case"medium":o+="; Priority=Medium";break;case"high":o+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}if(n.sameSite)switch("string"==typeof n.sameSite?n.sameSite.toLowerCase():n.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return o},cV=Object.prototype.toString,pV=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function uV(e){return encodeURIComponent(e)}function dV(e){return"[object Object]"===Object.prototype.toString.call(e)}function hV(e){var t,r;return!1!==dV(e)&&(void 0===(t=e.constructor)||!1!==dV(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}const fV={body:function(e){let{req:t,value:r}=e;t.body=r},header:function(e){let{req:t,parameter:r,value:n}=e;t.headers=t.headers||{},void 0!==n&&(t.headers[r.name]=n)},query:function(e){let{req:t,value:r,parameter:n}=e;if(t.query=t.query||{},!1===r&&"boolean"===n.type&&(r="false"),0===r&&["number","integer"].indexOf(n.type)>-1&&(r="0"),r)t.query[n.name]={collectionFormat:n.collectionFormat,value:r};else if(n.allowEmptyValue&&void 0!==r){const e=n.name;t.query[e]=t.query[e]||{},t.query[e].allowEmptyValue=!0}},path:function(e){let{req:t,value:r,parameter:n}=e;t.url=t.url.split(`{${n.name}}`).join(encodeURIComponent(r))},formData:function(e){let{req:t,value:r,parameter:n}=e;(r||n.allowEmptyValue)&&(t.form=t.form||{},t.form[n.name]={value:r,allowEmptyValue:n.allowEmptyValue,collectionFormat:n.collectionFormat})}};function mV(e,t){return t.includes("application/json")?"string"==typeof e?e:JSON.stringify(e):e.toString()}const yV=["accept","authorization","content-type"],gV=Object.freeze(Object.defineProperty({__proto__:null,cookie:function(e){let{req:t,parameter:r,value:n}=e;t.headers=t.headers||{};const s=typeof n;if(r.content){const e=Object.keys(r.content)[0];t.headers.Cookie=`${r.name}=${mV(n,e)}`}else if("undefined"!==s){const e="object"===s&&!Array.isArray(n)&&r.explode?"":`${r.name}=`;t.headers.Cookie=e+Av({key:r.name,value:n,escape:!1,style:r.style||"form",explode:void 0!==r.explode&&r.explode})}},header:function(e){let{req:t,parameter:r,value:n}=e;if(t.headers=t.headers||{},!(yV.indexOf(r.name.toLowerCase())>-1))if(r.content){const e=Object.keys(r.content)[0];t.headers[r.name]=mV(n,e)}else void 0!==n&&(t.headers[r.name]=Av({key:r.name,value:n,style:r.style||"simple",explode:void 0!==r.explode&&r.explode,escape:!1}))},path:function(e){let{req:t,value:r,parameter:n}=e;const{name:s,style:i,explode:o,content:a}=n;if(a){const e=Object.keys(a)[0];return void(t.url=t.url.split(`{${s}}`).join(jv(mV(r,e),{escape:!0})))}const l=Av({key:n.name,value:r,style:i||"simple",explode:o||!1,escape:!0});t.url=t.url.split(`{${s}}`).join(l)},query:function(e){let{req:t,value:r,parameter:n}=e;if(t.query=t.query||{},n.content){const e=mV(r,Object.keys(n.content)[0]);if(e)t.query[n.name]=e;else if(n.allowEmptyValue&&void 0!==r){const e=n.name;t.query[e]=t.query[e]||{},t.query[e].allowEmptyValue=!0}}else if(!1===r&&(r="false"),0===r&&(r="0"),r){const{style:e,explode:s,allowReserved:i}=n;t.query[n.name]={value:r,serializationOption:{style:e,explode:s,allowReserved:i}}}else if(n.allowEmptyValue&&void 0!==r){const e=n.name;t.query[e]=t.query[e]||{},t.query[e].allowEmptyValue=!0}}},Symbol.toStringTag,{value:"Module"})),vV="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,{btoa:bV}=vV;const xV=["http","fetch","spec","operationId","pathName","method","parameters","securities"],wV=e=>Array.isArray(e)?e:[],$V=Vb("OperationNotFoundError",(function(e,t,r){this.originalError=r,Object.assign(this,t||{})})),SV={buildRequest:EV};function EV(e){const{spec:t,operationId:r,responseContentType:n,scheme:s,requestInterceptor:i,responseInterceptor:o,contextUrl:a,userFetch:l,server:c,serverVariables:p,http:u,signal:d}=e;let{parameters:h,parameterBuilders:f}=e;const m=Ux(t);f||(f=m?gV:fV);let y={url:"",credentials:u&&u.withCredentials?"include":"same-origin",headers:{},cookies:{}};d&&(y.signal=d),i&&(y.requestInterceptor=i),o&&(y.responseInterceptor=o),l&&(y.userFetch=l);const g=function(e,t){return e&&e.paths?function(e,t){return nV(e,t,!0)||null}(e,(e=>{let{pathName:r,method:n,operation:s}=e;if(!s||"object"!=typeof s)return!1;const i=s.operationId;return[Dx(s,r,n),sV(r,n),i].some((e=>e&&e===t))})):null}(t,r);if(!g)throw new $V(`Operation ${r} not found`);const{operation:v={},method:b,pathName:x}=g;if(y.url+=OV({spec:t,scheme:s,contextUrl:a,server:c,serverVariables:p,pathName:x,method:b}),!r)return delete y.cookies,y;y.url+=x,y.method=`${b}`.toUpperCase(),h=h||{};const w=t.paths[x]||{};n&&(y.headers.accept=n);const $=(e=>{const t={};e.forEach((e=>{t[e.in]||(t[e.in]={}),t[e.in][e.name]=e}));const r=[];return Object.keys(t).forEach((e=>{Object.keys(t[e]).forEach((n=>{r.push(t[e][n])}))})),r})([].concat(wV(v.parameters)).concat(wV(w.parameters)));$.forEach((e=>{const r=f[e.in];let n;if("body"===e.in&&e.schema&&e.schema.properties&&(n=h),n=e&&e.name&&h[e.name],void 0===n?n=e&&e.name&&h[`${e.in}.${e.name}`]:((e,t)=>t.filter((t=>t.name===e)))(e.name,$).length>1&&console.warn(`Parameter '${e.name}' is ambiguous because the defined spec has more than one parameter with the name: '${e.name}' and the passed-in parameter values did not define an 'in' value.`),null!==n){if(void 0!==e.default&&void 0===n&&(n=e.default),void 0===n&&e.required&&!e.allowEmptyValue)throw new Error(`Required parameter ${e.name} is not provided`);if(m&&e.schema&&"object"===e.schema.type&&"string"==typeof n)try{n=JSON.parse(n)}catch(e){throw new Error("Could not parse object parameter value string as JSON")}r&&r({req:y,parameter:e,value:n,operation:v,spec:t})}}));const S=yh(yh({},e),{},{operation:v});if(y=m?function(e,t){const{operation:r,requestBody:n,securities:s,spec:i,attachContentTypeForEmptyPayload:o}=e;let{requestContentType:a}=e;t=function(e){let{request:t,securities:r={},operation:n={},spec:s}=e;const i=yh({},t),{authorized:o={}}=r,a=n.security||s.security||[],l=o&&!!Object.keys(o).length,c=U$(s,["components","securitySchemes"])||{};return i.headers=i.headers||{},i.query=i.query||{},Object.keys(r).length&&l&&a&&(!Array.isArray(n.security)||n.security.length)?(a.forEach((e=>{Object.keys(e).forEach((e=>{const t=o[e],r=c[e];if(!t)return;const n=t.value||t,{type:s}=r;if(t)if("apiKey"===s)"query"===r.in&&(i.query[r.name]=n),"header"===r.in&&(i.headers[r.name]=n),"cookie"===r.in&&(i.cookies[r.name]=n);else if("http"===s){if(/^basic$/i.test(r.scheme)){const e=n.username||"",t=n.password||"",r=bV(`${e}:${t}`);i.headers.Authorization=`Basic ${r}`}/^bearer$/i.test(r.scheme)&&(i.headers.Authorization=`Bearer ${n}`)}else if("oauth2"===s||"openIdConnect"===s){const e=t.token||{},n=e[r["x-tokenName"]||"access_token"];let s=e.token_type;s&&"bearer"!==s.toLowerCase()||(s="Bearer"),i.headers.Authorization=`${s} ${n}`}}))})),i):t}({request:t,securities:s,operation:r,spec:i});const l=r.requestBody||{},c=Object.keys(l.content||{}),p=a&&c.indexOf(a)>-1;if(n||o){if(a&&p)t.headers["Content-Type"]=a;else if(!a){const e=c[0];e&&(t.headers["Content-Type"]=e,a=e)}}else a&&p&&(t.headers["Content-Type"]=a);if(!e.responseContentType&&r.responses){const e=Object.entries(r.responses).filter((e=>{let[t,r]=e;const n=parseInt(t,10);return n>=200&&n<300&&hV(r.content)})).reduce(((e,t)=>{let[,r]=t;return e.concat(Object.keys(r.content))}),[]);e.length>0&&(t.headers.accept=e.join(", "))}if(n)if(a){if(c.indexOf(a)>-1)if("application/x-www-form-urlencoded"===a||"multipart/form-data"===a)if("object"==typeof n){const e=(l.content[a]||{}).encoding||{};t.form={},Object.keys(n).forEach((r=>{t.form[r]={value:n[r],encoding:e[r]||{}}}))}else t.form=n;else t.body=n}else t.body=n;return t}(S,y):function(e,t){const{spec:r,operation:n,securities:s,requestContentType:i,responseContentType:o,attachContentTypeForEmptyPayload:a}=e;if(t=function(e){let{request:t,securities:r={},operation:n={},spec:s}=e;const i=yh({},t),{authorized:o={},specSecurity:a=[]}=r,l=n.security||a,c=o&&!!Object.keys(o).length,p=s.securityDefinitions;return i.headers=i.headers||{},i.query=i.query||{},Object.keys(r).length&&c&&l&&(!Array.isArray(n.security)||n.security.length)?(l.forEach((e=>{Object.keys(e).forEach((e=>{const t=o[e];if(!t)return;const{token:r}=t,n=t.value||t,s=p[e],{type:a}=s,l=s["x-tokenName"]||"access_token",c=r&&r[l];let u=r&&r.token_type;if(t)if("apiKey"===a){const e="query"===s.in?"query":"headers";i[e]=i[e]||{},i[e][s.name]=n}else if("basic"===a)if(n.header)i.headers.authorization=n.header;else{const e=n.username||"",t=n.password||"";n.base64=bV(`${e}:${t}`),i.headers.authorization=`Basic ${n.base64}`}else"oauth2"===a&&c&&(u=u&&"bearer"!==u.toLowerCase()?u:"Bearer",i.headers.authorization=`${u} ${c}`)}))})),i):t}({request:t,securities:s,operation:n,spec:r}),t.body||t.form||a)i?t.headers["Content-Type"]=i:Array.isArray(n.consumes)?[t.headers["Content-Type"]]=n.consumes:Array.isArray(r.consumes)?[t.headers["Content-Type"]]=r.consumes:n.parameters&&n.parameters.filter((e=>"file"===e.type)).length?t.headers["Content-Type"]="multipart/form-data":n.parameters&&n.parameters.filter((e=>"formData"===e.in)).length&&(t.headers["Content-Type"]="application/x-www-form-urlencoded");else if(i){const e=n.parameters&&n.parameters.filter((e=>"body"===e.in)).length>0,r=n.parameters&&n.parameters.filter((e=>"formData"===e.in)).length>0;(e||r)&&(t.headers["Content-Type"]=i)}return!o&&Array.isArray(n.produces)&&n.produces.length>0&&(t.headers.accept=n.produces.join(", ")),t}(S,y),y.cookies&&Object.keys(y.cookies).length){const e=Object.keys(y.cookies).reduce(((e,t)=>{const r=y.cookies[t];return e+(e?"&":"")+lV(t,r)}),"");y.headers.Cookie=e}return y.cookies&&delete y.cookies,Uv(y),y}const kV=e=>e?e.replace(/\W/g,""):null;function OV(e){return Ux(e.spec)?function(e){let{spec:t,pathName:r,method:n,server:s,contextUrl:i,serverVariables:o={}}=e;const a=U$(t,["paths",r,(n||"").toLowerCase(),"servers"])||U$(t,["paths",r,"servers"])||U$(t,["servers"]);let l="",c=null;if(s&&a&&a.length){const e=a.map((e=>e.url));e.indexOf(s)>-1&&(l=s,c=a[e.indexOf(s)])}if(!l&&a&&a.length&&(l=a[0].url,[c]=a),l.indexOf("{")>-1){const e=function(e){const t=[],r=/{([^}]+)}/g;let n;for(;n=r.exec(e);)t.push(n[1]);return t}(l);e.forEach((e=>{if(c.variables&&c.variables[e]){const t=c.variables[e],r=o[e]||t.default,n=new RegExp(`{${e}}`,"g");l=l.replace(n,r)}}))}return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const r=e&&t?gh.parse(gh.resolve(t,e)):gh.parse(e),n=gh.parse(t),s=kV(r.protocol)||kV(n.protocol)||"",i=r.host||n.host,o=r.pathname||"";let a;return a=s&&i?`${s}://${i+o}`:o,"/"===a[a.length-1]?a.slice(0,-1):a}(l,i)}(e):function(e){let{spec:t,scheme:r,contextUrl:n=""}=e;const s=gh.parse(n),i=Array.isArray(t.schemes)?t.schemes[0]:null,o=r||i||kV(s.protocol)||"http",a=t.host||s.host||"",l=t.basePath||"";let c;return c=o&&a?`${o}://${a+l}`:l,"/"===c[c.length-1]?c.slice(0,-1):c}(e)}function jV(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof e?t.url=e:t=e,!(this instanceof jV))return new jV(t);Object.assign(this,t);const r=this.resolve().then((()=>(this.disableInterfaces||Object.assign(this,jV.makeApisTagOperation(this)),this)));return r.client=this,r}function AV(e){const t=(e=e.replace("[]","Array")).split("/");return t[0]=t[0].replace(/[^A-Za-z0-9_\-\.]+|\s+/gm,"_"),t.join("/")}jV.http=Cv,jV.makeHttp=function(e,t,r){return r=r||(e=>e),t=t||(e=>e),n=>("string"==typeof n&&(n={url:n}),Tv.mergeInQueryOrForm(n),n=t(n),r(e(n)))}.bind(null,jV.http),jV.resolveStrategies={"openapi-3-1-apidom":rV,"openapi-3-0":Hx,"openapi-2-0":zx,generic:Lx},jV.resolve=Vx({strategies:[jV.resolveStrategies["openapi-3-1-apidom"],jV.resolveStrategies["openapi-3-0"],jV.resolveStrategies["openapi-2-0"],jV.resolveStrategies.generic]}),jV.resolveSubtree=(e=>async function(t,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return async function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{returnEntireTree:n,baseDoc:s,requestInterceptor:i,responseInterceptor:o,parameterMacro:a,modelPropertyMacro:l,useCircularStructures:c,strategies:p}=r,u={spec:e,pathDiscriminator:t,baseDoc:s,requestInterceptor:i,responseInterceptor:o,parameterMacro:a,modelPropertyMacro:l,useCircularStructures:c,strategies:p},d=p.find((e=>e.match(u))),h=d.normalize(u),f=await Wx(yh(yh({},u),{},{spec:h,allowMetaPatches:!0,skipNormalization:!0}));return!n&&Array.isArray(t)&&t.length&&(f.spec=U$(f.spec,t)||null),f}(t,r,yh(yh({},e),n))})({strategies:[jV.resolveStrategies["openapi-3-1-apidom"],jV.resolveStrategies["openapi-3-0"],jV.resolveStrategies["openapi-2-0"],jV.resolveStrategies.generic]}),jV.execute=function(e){let{http:t,fetch:r,spec:n,operationId:s,pathName:i,method:o,parameters:a,securities:l}=e,c=sT(e,xV);const p=t||r||Cv;i&&o&&!s&&(s=sV(i,o));const u=SV.buildRequest(yh({spec:n,operationId:s,parameters:a,securities:l,http:p},c));return u.body&&(hV(u.body)||Array.isArray(u.body))&&(u.body=JSON.stringify(u.body)),p(u)},jV.serializeRes=Rv,jV.serializeHeaders=_v,jV.clearCache=function(){_x.refs.clearCache()},jV.makeApisTagOperation=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=aV(e);return{apis:oV({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:t})}},jV.buildRequest=EV,jV.helpers={opId:Dx},jV.getBaseUrl=OV,jV.apidom={resolve:{resolvers:{HttpResolverSwaggerClient:TH}},parse:{parsers:{JsonParser:CH,YamlParser:IH,OpenApiJson3_1Parser:RH,OpenApiYaml3_1Parser:_H}},dereference:{strategies:{OpenApi3_1SwaggerClientDereferenceStrategy:eV}}},jV.prototype={http:Cv,execute(e){return this.applyDefaults(),jV.execute(yh({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(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return jV.resolve(yh({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,skipNormalization:this.skipNormalization||!1},e)).then((e=>(this.originalSpec=this.spec,this.spec=e.spec,this.errors=e.errors,this)))}},jV.prototype.applyDefaults=function(){const{spec:e}=this,t=this.url;if(t&&t.startsWith("http")){const r=gh.parse(t);e.host||(e.host=r.host),e.schemes||(e.schemes=[r.protocol.replace(":","")]),e.basePath||(e.basePath="/")}};const PV={parameterTypeProperties:["format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","minLength","maxLength","multipleOf","minItems","maxItems","uniqueItems","minProperties","maxProperties","additionalProperties","pattern","enum","default"],arrayProperties:["items","minItems","maxItems","uniqueItems"],httpMethods:["get","post","put","delete","patch","head","options","trace"],uniqueOnly:function(e,t,r){return r.indexOf(e)===t},createHash:function(e){let t,r=0;if(0===e.length)return r;for(let n=0;n<e.length;n++)t=e.charCodeAt(n),r=(r<<5)-r+t,r|=0;return r},sanitise:AV,sanitiseAll:function(e){return AV(e.split("/").join("_"))},camelize:function(e){return e.toLowerCase().replace(/[-_ \/\.](.)/g,((e,t)=>t.toUpperCase()))},clone:function(e){return JSON.parse(JSON.stringify(e))},circularClone:function e(t,r=null){if(r||(r=new WeakMap),Object(t)!==t||t instanceof Function)return t;if(r.has(t))return r.get(t);let n;try{n=new t.constructor}catch(e){n=Object.create(Object.getPrototypeOf(t))}return r.set(t,n),Object.assign(n,...Object.keys(t).map((n=>({[n]:e(t[n],r)}))))}};function TV(){return{depth:0,seen:new WeakMap,top:!0,combine:!1,allowRefSiblings:!1}}const CV={getDefaultState:TV,walkSchema:function e(t,r,n,s){if(void 0===n.depth&&(n=TV()),null==t)return t;if(n.combine&&(t.allOf&&Array.isArray(t.allOf)&&1===t.allOf.length&&delete(t={...t.allOf[0],...t})?.allOf,t?.anyOf&&Array.isArray(t.anyOf)&&1===t.anyOf.length&&delete(t={...t.anyOf[0],...t})?.anyOf,t?.oneOf&&Array.isArray(t.oneOf)&&1===t.oneOf.length&&delete(t={...t.oneOf[0],...t})?.oneOf),s(t,r,n),n.seen.has(t))return t;if("object"==typeof t&&null!==t&&n.seen.set(t,!0),n.top=!1,n.depth++,void 0!==t?.items&&(n.property="items",e(t.items,t,n,s)),t?.additionalItems&&"object"==typeof t.additionalItems&&(n.property="additionalItems",e(t.additionalItems,t,n,s)),t?.additionalProperties&&"object"==typeof t.additionalProperties&&(n.property="additionalProperties",e(t.additionalProperties,t,n,s)),t?.properties)for(const r in t.properties){const i=t.properties[r];n.property=`properties/${r}`,e(i,t,n,s)}if(t?.patternProperties)for(const r in t.patternProperties){const i=t.patternProperties[r];n.property=`patternProperties/${r}`,e(i,t,n,s)}if(t?.allOf)for(const r in t.allOf){const i=t.allOf[r];n.property=`allOf/${r}`,e(i,t,n,s)}if(t?.anyOf)for(const r in t.anyOf){const i=t.anyOf[r];n.property=`anyOf/${r}`,e(i,t,n,s)}if(t?.oneOf)for(const r in t.oneOf){const i=t.oneOf[r];n.property=`oneOf/${r}`,e(i,t,n,s)}return t?.not&&(n.property="not",e(t.not,t,n,s)),n.depth--,t}};function IV(e,t,r){if(t||(t={depth:0}),t.depth||(t={path:"#",depth:0,pkey:"",parent:{},payload:{},seen:new WeakMap,identity:!1,identityDetection:!1,...t}),"object"!=typeof e)return;const n=t.path;for(const s in e){if(t.key=s,t.path=`${t.path}/${encodeURIComponent(s)}`,t.identityPath=t.seen.get(e[s]),t.identity=void 0!==t.identityPath,e.hasOwnProperty(s)&&r(e,s,t),"object"==typeof e[s]&&!t.identity){t.identityDetection&&!Array.isArray(e[s])&&null!==e[s]&&t.seen.set(e[s],t.path);const n={};n.parent=e,n.path=t.path,n.depth=t.depth?t.depth+1:1,n.pkey=s,n.payload=t.payload,n.seen=t.seen,n.identity=!1,n.identityDetection=t.identityDetection,IV(e[s],n,r)}t.path=n}}let RV;function _V(e,t){for(const r in e)r.startsWith("x-")&&!r.startsWith("x-s2o")&&(t[r]=e[r])}function FV(e,t){CV.walkSchema(e,{},{},((e,r)=>{!function(e){if(e["x-required"]&&Array.isArray(e["x-required"])&&(e.required||(e.required=[]),e.required=e.required.concat(e["x-required"]),delete e["x-required"]),e["x-anyOf"]&&(e.anyOf=e["x-anyOf"],delete e["x-anyOf"]),e["x-oneOf"]&&(e.oneOf=e["x-oneOf"],delete e["x-oneOf"]),e["x-not"]&&(e.not=e["x-not"],delete e["x-not"]),"boolean"==typeof e["x-nullable"]&&(e.nullable=e["x-nullable"],delete e["x-nullable"]),"object"==typeof e["x-discriminator"]&&"string"==typeof e["x-discriminator"].propertyName){e.discriminator=e["x-discriminator"],delete e["x-discriminator"];for(const t in e.discriminator.mapping){const r=e.discriminator.mapping[t];r.startsWith("#/definitions/")&&(e.discriminator.mapping[t]=r.replace("#/definitions/","#/components/schemas/"))}}}(e),function(e,t,r){if(e.nullable&&r.patches++,e.discriminator&&"string"==typeof e.discriminator&&(e.discriminator={propertyName:e.discriminator}),e.items&&Array.isArray(e.items)&&(0===e.items.length?e.items={}:1===e.items.length?e.items=e.items[0]:e.items={anyOf:e.items}),e.type&&Array.isArray(e.type)){if(r.patches++,r.warnings.push("(Patchable) schema type must not be an array"),0===e.type.length)delete e.type;else{e.oneOf||(e.oneOf=[]);for(const t of e.type){const r={};if("null"===t)e.nullable=!0;else{r.type=t;for(const t of PV.arrayProperties)void 0!==e.prop&&(r[t]=e[t],delete e[t])}r.type&&e.oneOf.push(r)}delete e.type,0===e.oneOf.length?delete e.oneOf:e.oneOf.length<2&&(e.type=e.oneOf[0].type,Object.keys(e.oneOf[0]).length>1&&(r.patches++,r.warnings.push("Lost properties from oneOf")),delete e.oneOf)}e.type&&Array.isArray(e.type)&&1===e.type.length&&(e.type=e.type[0])}e.type&&"null"===e.type&&(delete e.type,e.nullable=!0),"array"!==e.type||e.items||(e.items={}),"file"===e.type&&(e.type="string",e.format="binary"),"boolean"==typeof e.required&&(e.required&&e.name&&(void 0===t.required&&(t.required=[]),Array.isArray(t.required)&&t.required.push(e.name)),delete e.required),e.xml&&"string"==typeof e.xml.namespace&&(e.xml.namespace||delete e.xml.namespace),e.allowEmptyValue&&(delete e.allowEmptyValue,r.patches++,r.warnings.push("(Patchable): deleted schema.allowEmptyValue"))}(e,r,t)}))}function DV(e){for(const t in e)for(const r in e[t]){const n=PV.sanitise(r);r!==n&&(e[t][n]=e[t][r],delete e[t][r])}}function MV(e,t){if("basic"===e.type&&(e.type="http",e.scheme="basic"),"oauth2"===e.type){const r={};let n=e.flow;"application"===e.flow&&(n="clientCredentials"),"accessCode"===e.flow&&(n="authorizationCode"),"string"==typeof e.authorizationUrl&&(r.authorizationUrl=e.authorizationUrl.split("?")[0].trim()||"/"),"string"==typeof e.tokenUrl&&(r.tokenUrl=e.tokenUrl.split("?")[0].trim()||"/"),r.scopes=e.scopes||{},e.flows={},e.flows[n]=r,delete e.flow,delete e.authorizationUrl,delete e.tokenUrl,delete e.scopes,e.name&&(delete e.name,t.patches++,t.warnings.push("(Patchable) oauth2 securitySchemes should not have name property"))}}function qV(e){return e&&!e["x-s2o-delete"]}function LV(e,t){if(e.type&&!e.schema&&(e.schema={}),e.type&&(e.schema.type=e.type),e.items&&"array"!==e.items.type){if(e.items.collectionFormat!==e.collectionFormat)return t.errCount++,void t.errors.push({message:"Nested collectionFormats are not supported",pointer:"/.../responses/header"});delete e.items.collectionFormat}"array"===e.type?("ssv"===e.collectionFormat?(t.patches++,t.warnings.push("collectionFormat:ssv is no longer supported for headers")):"pipes"===e.collectionFormat?(t.patches++,t.warnings.push("collectionFormat:pipes is no longer supported for headers")):"multi"===e.collectionFormat?e.explode=!0:"tsv"===e.collectionFormat?(e["x-collectionFormat"]="tsv",t.patches++,t.warnings.push("collectionFormat:tsv is no longer supported")):e.style="simple",delete e.collectionFormat):e.collectionFormat&&(delete e.collectionFormat,t.patches++,t.warnings.push("(Patchable) collectionFormat is only applicable to header.type array")),delete e.type;for(const t of PV.parameterTypeProperties)void 0!==e[t]&&(e.schema[t]=e[t],delete e[t]);for(const t of PV.arrayProperties)void 0!==e[t]&&(e.schema[t]=e[t],delete e[t])}function BV(e,t,r,n,s,i,o){const a={};let l,c=!0;t&&t.consumes&&"string"==typeof t.consumes&&(t.consumes=[t.consumes],o.patches++,o.warnings.push("(Patchable) operation.consumes must be an array")),Array.isArray(i.consumes)||delete i.consumes;const p=((t?t.consumes:null)||i.consumes||[]).filter(PV.uniqueOnly);if(e&&(e.name||e.in)){"boolean"==typeof e["x-deprecated"]&&(e.deprecated=e["x-deprecated"],delete e["x-deprecated"]),void 0!==e["x-example"]&&(e.example=e["x-example"],delete e["x-example"]),"body"===e.in||e.type||(e.type="string",o.patches++,o.warnings.push("(Patchable) parameter.type is mandatory for non-body parameters")),"file"===e.type&&(e["x-s2o-originalType"]=e.type,l=e.type),null===e.description&&delete e.description;let t=e.collectionFormat;if("array"!==e.type||t||(t="csv"),t&&("array"!==e.type&&(delete e.collectionFormat,o.patches++,o.warnings.push("(Patchable) collectionFormat is only applicable to param.type array")),"csv"!==t||"query"!==e.in&&"cookie"!==e.in||(e.style="form",e.explode=!1),"csv"!==t||"path"!==e.in&&"header"!==e.in||(e.style="simple"),"ssv"===t&&("query"===e.in?e.style="spaceDelimited":o.warnings.push(`${e.name} collectionFormat:ssv is no longer supported except for in:query parameters`)),"pipes"===t&&("query"===e.in?e.style="pipeDelimited":o.warnings.push(`${e.name} collectionFormat:pipes is no longer supported except for in:query parameters`)),"multi"===t&&(e.explode=!0),"tsv"===t&&(o.warnings.push("collectionFormat:tsv is no longer supported"),e["x-collectionFormat"]="tsv"),delete e.collectionFormat),e.type&&"body"!==e.type&&"formData"!==e.in)if(e.items&&e.schema)o.warnings.push(`${e.name} parameter has array,items and schema`);else{e.schema&&o.patches++,e.schema&&"object"==typeof e.schema||(e.schema={}),e.schema.type=e.type,e.items&&(e.schema.items=e.items,delete e.items,IV(e.schema.items,null,((r,n)=>{"collectionFormat"===n&&"string"==typeof r[n]&&(t&&r[n]!==t&&o.warnings.push(`${e.name} Nested collectionFormats are not supported`),delete r[n])})));for(const t of PV.parameterTypeProperties)void 0!==e[t]&&(e.schema[t]=e[t]),delete e[t]}e.schema&&FV(e.schema,o),e["x-ms-skip-url-encoding"]&&"query"===e.in&&(e.allowReserved=!0,delete e["x-ms-skip-url-encoding"])}if(e&&"formData"===e.in){c=!1,a.content={};let t="application/x-www-form-urlencoded";if(p.length&&p.indexOf("multipart/form-data")>=0&&(t="multipart/form-data"),a.content[t]={},e.schema)a.content[t].schema=e.schema;else{a.content[t].schema={},a.content[t].schema.type="object",a.content[t].schema.properties={},a.content[t].schema.properties[e.name]={};const r=a.content[t].schema,n=a.content[t].schema.properties[e.name];e.description&&(n.description=e.description),e.example&&(n.example=e.example),e.type&&(n.type=e.type);for(const t of PV.parameterTypeProperties)void 0!==e[t]&&(n[t]=e[t]);!0===e.required&&(r.required||(r.required=[]),r.required.push(e.name),a.required=!0),void 0!==e.default&&(n.default=e.default),n.properties&&(n.properties=e.properties),e.allOf&&(n.allOf=e.allOf),"array"===e.type&&e.items&&(n.items=e.items,n.items.collectionFormat&&delete n.items.collectionFormat),"file"!==l&&"file"!==e["x-s2o-originalType"]||(n.type="string",n.format="binary"),_V(e,n)}}else e&&"file"===e.type&&(e.required&&(a.required=e.required),a.content={},a.content["application/octet-stream"]={},a.content["application/octet-stream"].schema={},a.content["application/octet-stream"].schema.type="string",a.content["application/octet-stream"].schema.format="binary",_V(e,a));if(e&&"body"===e.in){a.content={},e.name&&(a["x-s2o-name"]=(t&&t.operationId?PV.sanitiseAll(t.operationId):"")+PV.camelize(`_${e.name}`)),e.description&&(a.description=e.description),e.required&&(a.required=e.required),p.length||p.push("application/json");for(const t of p)a.content[t]={},a.content[t].schema=PV.clone(e.schema||{}),FV(a.content[t].schema,o);_V(e,a)}if(Object.keys(a).length>0&&(e["x-s2o-delete"]=!0,t))if(t.requestBody&&c){t.requestBody["x-s2o-overloaded"]=!0;const e=t.operationId||s;o.warnings.push(`Operation ${e} has multiple requestBodies`)}else t.requestBody||(t=function(e,t){const r={};for(const n of Object.keys(e))r[n]=e[n],"parameters"===n&&(r.requestBody={},t.rbname&&(r[t.rbname]=""));return r.requestBody={},r}(t,o),r[n]=t),t.requestBody.content&&t.requestBody.content["multipart/form-data"]&&t.requestBody.content["multipart/form-data"].schema&&t.requestBody.content["multipart/form-data"].schema.properties&&a.content["multipart/form-data"]&&a.content["multipart/form-data"].schema&&a.content["multipart/form-data"].schema.properties?(t.requestBody.content["multipart/form-data"].schema.properties=Object.assign(t.requestBody.content["multipart/form-data"].schema.properties,a.content["multipart/form-data"].schema.properties),t.requestBody.content["multipart/form-data"].schema.required=(t.requestBody.content["multipart/form-data"].schema.required||[]).concat(a.content["multipart/form-data"].schema.required||[]),t.requestBody.content["multipart/form-data"].schema.required.length||delete t.requestBody.content["multipart/form-data"].schema.required):t.requestBody.content&&t.requestBody.content["application/x-www-form-urlencoded"]&&t.requestBody.content["application/x-www-form-urlencoded"].schema&&t.requestBody.content["application/x-www-form-urlencoded"].schema.properties&&a.content["application/x-www-form-urlencoded"]&&a.content["application/x-www-form-urlencoded"].schema&&a.content["application/x-www-form-urlencoded"].schema.properties?(t.requestBody.content["application/x-www-form-urlencoded"].schema.properties=Object.assign(t.requestBody.content["application/x-www-form-urlencoded"].schema.properties,a.content["application/x-www-form-urlencoded"].schema.properties),t.requestBody.content["application/x-www-form-urlencoded"].schema.required=(t.requestBody.content["application/x-www-form-urlencoded"].schema.required||[]).concat(a.content["application/x-www-form-urlencoded"].schema.required||[]),t.requestBody.content["application/x-www-form-urlencoded"].schema.required.length||delete t.requestBody.content["application/x-www-form-urlencoded"].schema.required):(t.requestBody=Object.assign(t.requestBody,a),t.requestBody["x-s2o-name"]||t.operationId&&(t.requestBody["x-s2o-name"]=PV.sanitiseAll(t.operationId)));if(e&&!e["x-s2o-delete"]){delete e.type;for(const t of PV.parameterTypeProperties)delete e[t];"path"!==e.in||void 0!==e.required&&!0===e.required||(e.required=!0,o.patches++,o.warnings.push(`(Patchable) path parameters must be required:true [${e.name} in ${s}]`))}return t}function NV(e,t,r,n){if(!e)return!1;if(e.description||"object"!=typeof e||Array.isArray(e)||(n.patches++,n.warnings.push("(Patchable) response.description is mandatory")),void 0!==e.schema){FV(e.schema,n),t&&t.produces&&"string"==typeof t.produces&&(t.produces=[t.produces],n.patches++,n.warnings.push("(Patchable) operation.produces must be an array")),r.produces&&!Array.isArray(r.produces)&&delete r.produces;const s=((t?t.produces:null)||r.produces||[]).filter(PV.uniqueOnly);s.length||s.push("*/*"),e.content={};for(const t of s){if(e.content[t]={},e.content[t].schema=PV.clone(e.schema),e.examples&&e.examples[t]){const r={};r.value=e.examples[t],e.content[t].examples={},e.content[t].examples.response=r,delete e.examples[t]}"file"===e.content[t].schema.type&&(e.content[t].schema={type:"string",format:"binary"})}delete e.schema}for(const t in e.examples)e.content||(e.content={}),e.content[t]||(e.content[t]={}),e.content[t].examples={},e.content[t].examples.response={},e.content[t].examples.response.value=e.examples[t];if(delete e.examples,e.headers)for(const t in e.headers)"status code"===t.toLowerCase()?(delete e.headers[t],n.patches++,n.warnings.push('(Patchable) "Status Code" is not a valid header')):LV(e.headers[t],n)}function UV(e,t,r,n,s){for(const i in e){const o=e[i];o&&o["x-trace"]&&"object"==typeof o["x-trace"]&&(o.trace=o["x-trace"],delete o["x-trace"]),o&&o["x-summary"]&&"string"==typeof o["x-summary"]&&(o.summary=o["x-summary"],delete o["x-summary"]),o&&o["x-description"]&&"string"==typeof o["x-description"]&&(o.description=o["x-description"],delete o["x-description"]),o&&o["x-servers"]&&Array.isArray(o["x-servers"])&&(o.servers=o["x-servers"],delete o["x-servers"]);for(const e in o)if(PV.httpMethods.indexOf(e)>=0||"x-amazon-apigateway-any-method"===e){let a=o[e];if(a&&a.parameters&&Array.isArray(a.parameters)){if(o.parameters)for(const t of o.parameters)a.parameters.find((e=>e.name===t.name&&e.in===t.in))||"formData"!==t.in&&"body"!==t.in&&"file"!==t.type||(a=BV(t,a,o,e,i,s,r));for(const t of a.parameters)a=BV(t,a,o,e,`${e}: ${i}`,s,r);a.parameters&&(a.parameters=a.parameters.filter(qV))}if(a&&a.security&&DV(a.security),"object"==typeof a){if(!a.responses){const e={description:"Default response"};a.responses={default:e}}for(const e in a.responses)NV(a.responses[e],a,s,r)}if(a&&a["x-servers"]&&Array.isArray(a["x-servers"]))a.servers=a["x-servers"],delete a["x-servers"];else if(a&&a.schemes&&a.schemes.length)for(const e of a.schemes)if((!s.schemes||s.schemes.indexOf(e)<0)&&(a.servers||(a.servers=[]),Array.isArray(s.servers)))for(const e of s.servers){const t=PV.clone(e);a.servers.push(t)}if(a){if(delete a.consumes,delete a.produces,delete a.schemes,a["x-ms-examples"]){for(const e in a["x-ms-examples"]){const t=a["x-ms-examples"][e],r=PV.sanitiseAll(e);if(t.parameters)for(const r in t.parameters){const n=t.parameters[r];for(const t of(a.parameters||[]).concat(o.parameters||[]))t.name!==r||t.example||(t.examples||(t.examples={}),t.examples[e]={value:n})}if(t.responses)for(const n in t.responses){if(t.responses[n].headers)for(const e in t.responses[n].headers){const r=t.responses[n].headers[e];for(const t in a.responses[n].headers)t===e&&(a.responses[n].headers[t].example=r)}if(t.responses[n].body&&(s.components.examples[r]={value:PV.clone(t.responses[n].body)},a.responses[n]&&a.responses[n].content))for(const t in a.responses[n].content){const s=a.responses[n].content[t];s.examples||(s.examples={}),s.examples[e]={$ref:`#/components/examples/${r}`}}}}delete a["x-ms-examples"]}if(a.parameters&&0===a.parameters.length&&delete a.parameters,a.requestBody){const r=a.operationId?PV.sanitiseAll(a.operationId):PV.camelize(PV.sanitiseAll(e+i)),s=PV.sanitise(a.requestBody["x-s2o-name"]||r||"");delete a.requestBody["x-s2o-name"];const o=JSON.stringify(a.requestBody),l=PV.createHash(o);if(!n[l]){const e={};e.name=s,e.body=a.requestBody,e.refs=[],n[l]=e}const c=`#/${t}/${encodeURIComponent(i)}/${e}/requestBody`;n[l].refs.push(c)}}}if(o&&o.parameters){for(const e in o.parameters)BV(o.parameters[e],null,o,null,i,s,r);Array.isArray(o.parameters)&&(o.parameters=o.parameters.filter(qV))}}}function zV(e){return e&&e.url&&"string"==typeof e.url?(e.url=e.url.split("{{").join("{"),e.url=e.url.split("}}").join("}"),e.url.replace(/\{(.+?)\}/g,((t,r)=>{e.variables||(e.variables={}),e.variables[r]={default:"unknown"}})),e):e}function HV(e,t){void 0!==e.info&&null!==e.info||(e.info={version:"",title:""},t.patches++,t.warnings.push("(Patchable) info object is mandatory")),("object"!=typeof e.info||Array.isArray(e.info))&&(t.errCount++,t.errors.push({message:"info must be an object",pointer:"/info"})),e.info&&(void 0===e.info.title&&(t.patches++,e.info.title="",t.warnings.push({message:"(Patchable) info.title cannot be null",pointer:"/info/title",patchable:!0})),void 0===e.info.version?(t.patches++,e.info.version="",t.warnings.push("(Patchable) info.version cannot be null")):"string"!=typeof e.info.version&&(t.patches++,e.info.version=e.info.version.toString(),t.warnings.push("(Patchable) info.version must be a string")))}function VV(e,t){e.paths||(t.patches++,e.paths={},t.warnings.push("(Patchable) paths object is mandatory"))}function WV(e={}){const t={original:e,openapi:{},patches:0,warnings:[],errCount:0,errors:[]};if(e.openapi&&"string"==typeof e.openapi&&e.openapi.startsWith("3."))return t.openapi=PV.circularClone(e),HV(t.openapi,t),VV(t.openapi,t),t;if("2.0"!==e.swagger)return t.errCount++,t.errors.push({message:`Unsupported swagger/OpenAPI version: ${e.openapi?e.openapi:e.swagger}`,pointer:"/swagger"}),t;if(t.openapi=PV.circularClone(e),t.openapi.openapi="3.0.0",delete t.openapi.swagger,IV(t.openapi,{},((e,t,r)=>{null===e[t]&&!t.startsWith("x-")&&"default"!==t&&r.path.indexOf("/example")<0&&delete e[t]})),e.host)(e.schemes||[]).forEach((r=>{const n={},s=(e.basePath||"").replace(/\/$/,"");n.url=`${r?`${r}:`:""}//${e.host}${s}`,zV(n),t.openapi.servers||(t.openapi.servers=[]),t.openapi.servers.push(n)}));else if(e.basePath){const r={};r.url=e.basePath,zV(r),t.openapi.servers||(t.openapi.servers=[]),t.openapi.servers.push(r)}if(delete t.openapi.host,delete t.openapi.basePath,e["x-ms-parameterized-host"]){const r=e["x-ms-parameterized-host"],n={};n.url=r.hostTemplate+(e.basePath?e.basePath:""),n.variables={};const s=n.url.match(/\{\w+\}/g);for(const e in r.parameters){const t=r.parameters[e];e.startsWith("x-")||(delete t.required,delete t.type,delete t.in,void 0===t.default&&(t.enum?t.default=t.enum[0]:t.default="none"),t.name||(t.name=s[e].replace("{","").replace("}","")),n.variables[t.name]=t,delete t.name)}t.openapi.servers||(t.openapi.servers=[]),!1===r.useSchemePrefix?t.openapi.servers.push(n):e.schemes.forEach((e=>{t.openapi.servers.push({...n,url:`${e}://${n.url}`})})),delete t.openapi["x-ms-parameterized-host"]}return HV(t.openapi,t),VV(t.openapi,t),"string"==typeof t.openapi.consumes&&(t.openapi.consumes=[t.openapi.consumes]),"string"==typeof t.openapi.produces&&(t.openapi.produces=[t.openapi.produces]),t.openapi.components={},t.openapi["x-callbacks"]&&(t.openapi.components.callbacks=t.openapi["x-callbacks"],delete t.openapi["x-callbacks"]),t.openapi.components.examples={},t.openapi.components.headers={},t.openapi["x-links"]&&(t.openapi.components.links=t.openapi["x-links"],delete t.openapi["x-links"]),t.openapi.components.parameters=t.openapi.parameters||{},t.openapi.components.responses=t.openapi.responses||{},t.openapi.components.requestBodies={},t.openapi.components.securitySchemes=t.openapi.securityDefinitions||{},t.openapi.components.schemas=t.openapi.definitions||{},delete t.openapi.definitions,delete t.openapi.responses,delete t.openapi.parameters,delete t.openapi.securityDefinitions,function(e){const t=e.openapi,r={};RV={schemas:{}},t.security&&DV(t.security);for(const r in t.components.securitySchemes){const n=PV.sanitise(r);if(r!==n){if(t.components.securitySchemes[n])return e.errCount++,e.errors.push({message:`Duplicate sanitised securityScheme name ${n}`,pointer:`/components/securitySchemes/${n}`}),e;t.components.securitySchemes[n]=t.components.securitySchemes[r],delete t.components.securitySchemes[r]}MV(t.components.securitySchemes[n],e)}for(const r in t.components.schemas){const n=PV.sanitiseAll(r);let s=0;if(r!==n){for(;t.components.schemas[n+s];)s=s?++s:2;t.components.schemas[n+s]=t.components.schemas[r],delete t.components.schemas[r]}RV.schemas[r]=n+s,FV(t.components.schemas[`${n}${s}`],e)}for(const r in t.components.parameters){const n=PV.sanitise(r);if(r!==n){if(t.components.parameters[n])return e.errCount++,e.errors.push({message:`Duplicate sanitised parameter name ${n}`,pointer:`/components/parameters/${n}`}),e;t.components.parameters[n]=t.components.parameters[r],delete t.components.parameters[r]}BV(t.components.parameters[n],null,null,null,n,t,e)}for(const r in t.components.responses){const n=PV.sanitise(r);if(r!==n){if(t.components.responses[n])return e.errCount++,e.errors.push({message:`Duplicate sanitised response name ${n}`,pointer:`/components/responses/${n}`}),e;t.components.responses[n]=t.components.responses[r],delete t.components.responses[r]}const s=t.components.responses[n];if(NV(s,null,t,e),s.headers)for(const t in s.headers)"status code"===t.toLowerCase()?(delete s.headers[t],e.patches++,e.warnings.push('(Patchable) "Status Code" is not a valid header')):LV(s.headers[t],e)}for(const e in t.components.requestBodies){const n=t.components.requestBodies[e],s=JSON.stringify(n),i=PV.createHash(s),o={};o.name=e,o.body=n,o.refs=[],r[i]=o}UV(t.paths,"paths",e,r,t),t["x-ms-paths"]&&UV(t["x-ms-paths"],"x-ms-paths",e,r,t);for(const e in t.components.parameters)t.components.parameters[e]["x-s2o-delete"]&&delete t.components.parameters[e];return delete t.consumes,delete t.produces,delete t.schemes,t.components.requestBodies={},t.components.responses&&0===Object.keys(t.components.responses).length&&delete t.components.responses,t.components.parameters&&0===Object.keys(t.components.parameters).length&&delete t.components.parameters,t.components.examples&&0===Object.keys(t.components.examples).length&&delete t.components.examples,t.components.requestBodies&&0===Object.keys(t.components.requestBodies).length&&delete t.components.requestBodies,t.components.securitySchemes&&0===Object.keys(t.components.securitySchemes).length&&delete t.components.securitySchemes,t.components.headers&&0===Object.keys(t.components.headers).length&&delete t.components.headers,t.components.schemas&&0===Object.keys(t.components.schemas).length&&delete t.components.schemas,t.components&&0===Object.keys(t.components).length&&delete t.components,e}(t)}function GV(e){return e.ok&&e.text&&e.parseError&&"YAMLException"===e.parseError.name&&(!e.headers["content-type"]||e.headers["content-type"].match("text/plain"))&&(e.body=e.text),e}const JV=function(e){return new Promise((async t=>{try{const r=await jV.resolve(e,GV);if(r.errors&&r.errors.length>0)t(r);else{r.spec.openapi&&(r.resolvedSpec=r.spec,t(r));const e=WV(r.spec);e.errors&&e.errors.length>0&&(Array.isArray(r.errors)?r.errors.concat(r.errors):r.errors=e.errors),e.warnings&&e.warnings.length>0&&(r.warnings=e.warnings),r.resolvedSpec=r.spec,r.spec=e.openapi,t(r)}}catch(e){t(e)}}))};async function KV(e,t=!1,r=!1,n="",s="",i="",o="",a=""){var l,c;let p;try{var u,d;let t;if(this.requestUpdate(),t="string"==typeof e?await JV({url:e,allowMetaPatches:!1}):await JV({spec:e,allowMetaPatches:!1}),await ct(0),null!==(u=t.resolvedSpec)&&void 0!==u&&u.jsonSchemaViewer&&null!==(d=t.resolvedSpec)&&void 0!==d&&d.schemaAndExamples){this.dispatchEvent(new CustomEvent("before-render",{detail:{spec:t.resolvedSpec}}));const e=Object.entries(t.resolvedSpec.schemaAndExamples).map((e=>({show:!0,expanded:!0,selectedExample:null,name:e[0],elementId:e[0].replace(at,"-"),...e[1]})));return{specLoadError:!1,isSpecLoading:!1,info:t.resolvedSpec.info,schemaAndExamples:e}}var h,f,m,y;if(!t.spec||!(t.spec.components||t.spec.info||t.spec.servers||t.spec.tags||t.spec.paths))return console.info("RapiDoc: %c There was an issue while parsing the spec %o ","color:orangered",t),{specLoadError:!0,isSpecLoading:!1,info:{title:"Error loading the spec",description:null!==(h=t.response)&&void 0!==h&&h.url?`${null===(f=t.response)||void 0===f?void 0:f.url}${null===(m=t.response)||void 0===m?void 0:m.status} ${null===(y=t.response)||void 0===y?void 0:y.statusText}`:"Unable to load the Spec",version:" "},tags:[]};p=t.spec,this.dispatchEvent(new CustomEvent("before-render",{detail:{spec:p}}))}catch(e){console.info("RapiDoc: %c There was an issue while parsing the spec %o ","color:orangered",e)}const g=function(e,t,r=!1,n=!1){const s=["get","put","post","delete","patch","head","options"],i=e.tags&&Array.isArray(e.tags)?e.tags.map((e=>({show:!0,elementId:`tag--${e.name.replace(at,"-")}`,name:e.name,description:e.description||"",headers:e.description?YV(e.description):[],paths:[],expanded:!1!==e["x-tag-expanded"]}))):[],o=e.paths||{};if(e.webhooks)for(const[t,r]of Object.entries(e.webhooks))r._type="webhook",o[t]=r;for(const t in o){const n=o[t].parameters,a={servers:o[t].servers||[],parameters:o[t].parameters||[]},l="webhook"===o[t]._type;s.forEach((s=>{if(o[t][s]){const o=e.paths[t][s],c=o.tags||[];if(0===c.length)if(r){const e=t.replace(/^\/+|\/+$/g,""),r=e.indexOf("/");-1===r?c.push(e):c.push(e.substr(0,r))}else c.push("General ⦂");c.forEach((r=>{let c,p;var u,d;(e.tags&&(p=e.tags.find((e=>e.name.toLowerCase()===r.toLowerCase()))),c=i.find((e=>e.name===r)),c)||(c={show:!0,elementId:`tag--${r.replace(at,"-")}`,name:r,description:(null===(u=p)||void 0===u?void 0:u.description)||"",headers:null!==(d=p)&&void 0!==d&&d.description?YV(p.description):[],paths:[],expanded:!p||!1!==p["x-tag-expanded"]},i.push(c));let h=(o.summary||o.description||`${s.toUpperCase()} ${t}`).trim();h.length>100&&([h]=h.split(/[.|!|?]\s|[\r?\n]/));let f=[];if(f=n?o.parameters?n.filter((e=>{if(!o.parameters.some((t=>e.name===t.name&&e.in===t.in)))return e})).concat(o.parameters):n.slice(0):o.parameters?o.parameters.slice(0):[],o.callbacks)for(const[e,t]of Object.entries(o.callbacks)){const r=Object.entries(t).filter((e=>"object"==typeof e[1]))||[];o.callbacks[e]=Object.fromEntries(r)}c.paths.push({show:!0,expanded:!1,isWebhook:l,expandedAtLeastOnce:!1,summary:o.summary||"",description:o.description||"",externalDocs:o.externalDocs,shortSummary:h,method:s,path:t,operationId:o.operationId,elementId:`${s}-${t.replace(at,"-")}`,servers:o.servers?a.servers.concat(o.servers):a.servers,parameters:f,requestBody:o.requestBody,responses:o.responses,callbacks:o.callbacks,deprecated:o.deprecated,security:o.security,xBadges:o["x-badges"]||void 0,xCodeSamples:o["x-codeSamples"]||o["x-code-samples"]||""})}))}}))}const a=i.filter((e=>e.paths&&e.paths.length>0));return a.forEach((e=>{"method"===t?e.paths.sort(((e,t)=>s.indexOf(e.method).toString().localeCompare(s.indexOf(t.method)))):"summary"===t?e.paths.sort(((e,t)=>e.shortSummary.localeCompare(t.shortSummary))):"path"===t&&e.paths.sort(((e,t)=>e.path.localeCompare(t.path))),e.firstPathId=e.paths[0].elementId})),n?a.sort(((e,t)=>e.name.localeCompare(t.name))):a}(p,n,t,r),v=function(e){if(!e.components)return[];const t=[];for(const r in e.components){const n=[];for(const t in e.components[r]){const s={show:!0,id:`${r.toLowerCase()}-${t.toLowerCase()}`.replace(at,"-"),name:t,component:e.components[r][t]};n.push(s)}let s=r,i=r;switch(r){case"schemas":i="Schemas",s="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",s="Describes responses from an API Operation, including design-time, static links to operations based on the response.";break;case"parameters":i="Parameters",s="Describes operation parameters. A unique parameter is defined by a combination of a name and location.";break;case"examples":i="Examples",s="List of Examples for operations, can be requests, responses and objects examples.";break;case"requestBodies":i="Request Bodies",s="Describes common request bodies that are used across the API operations.";break;case"headers":i="Headers",s='Headers follows the structure of the Parameters but they are explicitly in "header"';break;case"securitySchemes":i="Security Schemes",s="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",s="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",s="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=r,s=r}const o={show:!0,name:i,description:s,subComponents:n};t.push(o)}return t||[]}(p),b=null!==(l=p.info)&&void 0!==l&&l.description?YV(p.info.description):[],x=[];if(null!==(c=p.components)&&void 0!==c&&c.securitySchemes){const e=new Set;Object.entries(p.components.securitySchemes).forEach((t=>{if(!e.has(t[0])){e.add(t[0]);const r={securitySchemeId:t[0],...t[1]};r.value="",r.finalKeyValue="","apiKey"===t[1].type||"http"===t[1].type?(r.in=t[1].in||"header",r.name=t[1].name||"Authorization",r.user="",r.password=""):"oauth2"===t[1].type&&(r.in="header",r.name="Authorization",r.clientId="",r.clientSecret=""),x.push(r)}}))}s&&i&&o&&x.push({securitySchemeId:lt,description:"api-key provided in rapidoc element attributes",type:"apiKey",oAuthFlow:"",name:s,in:i,value:o,finalKeyValue:o}),x.forEach((e=>{"http"===e.type?e.typeDisplay="basic"===e.scheme?"HTTP Basic":"HTTP Bearer":"apiKey"===e.type?e.typeDisplay=`API Key (${e.name})`:"oauth2"===e.type?e.typeDisplay=`OAuth (${e.securitySchemeId})`:e.typeDisplay=e.type||"None"}));let w=[];p.servers&&Array.isArray(p.servers)?(p.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 r=new RegExp(`{${e[0]}}`,"g");t=t.replace(r,e[1].default||""),e[1].value=e[1].default||""})),e.computedUrl=t})),a&&p.servers.push({url:a,computedUrl:a})):a?p.servers=[{url:a,computedUrl:a}]:window.location.origin.startsWith("http")?p.servers=[{url:window.location.origin,computedUrl:window.location.origin}]:p.servers=[{url:"http://localhost",computedUrl:"http://localhost"}],w=p.servers;return{specLoadError:!1,isSpecLoading:!1,info:p.info,infoDescriptionHeaders:b,tags:g,components:v,externalDocs:p.externalDocs,securitySchemes:x,servers:w}}function YV(e){const t=Je.lexer(e).filter((e=>"heading"===e.type&&e.depth<=2));return t||[]}const ZV=1,XV=2,QV=3,eW=4,tW=e=>(...t)=>({_$litDirective$:e,values:t});class rW{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}class nW extends rW{constructor(e){if(super(e),this.et=V,e.type!==XV)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===V||null==e)return this.ft=void 0,this.et=e;if(e===H)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.ft;this.et=e;const t=[e];return t.raw=t,this.ft={_$litType$:this.constructor.resultType,strings:t,values:[]}}}nW.directiveName="unsafeHTML",nW.resultType=1;const sW=tW(nW);var iW=r(764).lW;const oW="731DB1C3F7EA533B85E29492D26AA-1234567890-1234567890",aW="4FatVDBJKPAo4JgLLaaQFMUcQPn5CrPRvLlaob9PTYc",lW="rapidoc";function cW(e,t="",r="",n=""){var s,i;const o=null===(s=this.resolvedSpec.securitySchemes)||void 0===s?void 0:s.find((t=>t.securitySchemeId===e));if(!o)return!1;let a="";if("basic"===(null===(i=o.scheme)||void 0===i?void 0:i.toLowerCase()))t&&(a=`Basic ${iW.from(`${t}:${r}`,"utf8").toString("base64")}`);else if(n){var l;o.value=n,a=`${"bearer"===(null===(l=o.scheme)||void 0===l?void 0:l.toLowerCase())?"Bearer ":""}${n}`}return!!a&&(o.finalKeyValue=a,this.requestUpdate(),!0)}function pW(){var e;null===(e=this.resolvedSpec.securitySchemes)||void 0===e||e.forEach((e=>{e.user="",e.password="",e.value="",e.finalKeyValue=""})),this.requestUpdate()}function uW(){return JSON.parse(localStorage.getItem(lW))||{}}function dW(e){localStorage.setItem(lW,JSON.stringify(e))}function hW(){const e=uW.call(this);Object.values(e).forEach((e=>{cW.call(this,e.securitySchemeId,e.username,e.password,e.value)}))}function fW(e){let t="";const r=this.resolvedSpec.securitySchemes.find((t=>t.securitySchemeId===e));if(r){const n=this.shadowRoot.getElementById(`security-scheme-${e}`);if(n){if(r.type&&r.scheme&&"http"===r.type&&"basic"===r.scheme.toLowerCase()){const t=n.querySelector(".api-key-user").value.trim(),r=n.querySelector(".api-key-password").value.trim();cW.call(this,e,t,r)}else t=n.querySelector(".api-key-input").value.trim(),cW.call(this,e,"","",t);if("true"===this.persistAuth){const t=uW.call(this);t[e]=r,dW.call(this,t)}}}}function mW(e,t,r="Bearer"){const n=this.resolvedSpec.securitySchemes.find((t=>t.securitySchemeId===e));n.finalKeyValue=`${"bearer"===r.toLowerCase()?"Bearer":"mac"===r.toLowerCase()?"MAC":r} ${t}`,this.requestUpdate()}async function yW(e,t,r,n,s,i,o,a,l="header",c=null,p=null,u=null){const d=a?a.querySelector(".oauth-resp-display"):void 0,h=new URLSearchParams,f=new Headers;h.append("grant_type",s),"authorization_code"===s&&(h.append("client_id",t),h.append("client_secret",r)),"client_credentials"!==s&&"password"!==s&&h.append("redirect_uri",n),i&&(h.append("code",i),h.append("code_verifier",oW)),"header"===l?f.set("Authorization",`Basic ${iW.from(`${t}:${r}`,"utf8").toString("base64")}`):"authorization_code"!==s&&(h.append("client_id",t),h.append("client_secret",r)),"password"===s&&(h.append("username",p),h.append("password",u)),c&&h.append("scope",c);try{const t=await fetch(e,{method:"POST",headers:f,body:h}),r=await t.json();if(!t.ok)return d&&(d.innerHTML=`<span style="color:var(--red)">${r.error_description||r.error_description||"Unable to get access token"}</span>`),!1;if(r.token_type&&r.access_token)return mW.call(this,o,r.access_token,r.token_type),d&&(d.innerHTML='<span style="color:var(--green)">Access Token Received</span>'),!0}catch(e){return d&&(d.innerHTML='<span style="color:var(--red)">Failed to get access token</span>'),!1}}async function gW(e,t,r,n,s,i,o,a,l,c){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?yW.call(this,r,n,s,i,o,e.data.code,l,c,a):"token"===e.data.responseType&&mW.call(this,l,e.data.access_token,e.data.token_type)))}async function vW(e,t,r,n,s){const i=s.target.closest(".oauth-flow"),o=i.querySelector(".oauth-client-id")?i.querySelector(".oauth-client-id").value.trim():"",a=i.querySelector(".oauth-client-secret")?i.querySelector(".oauth-client-secret").value.trim():"",l=i.querySelector(".api-key-user")?i.querySelector(".api-key-user").value.trim():"",c=i.querySelector(".api-key-password")?i.querySelector(".api-key-password").value.trim():"",p=i.querySelector(".oauth-send-client-secret-in")?i.querySelector(".oauth-send-client-secret-in").value.trim():"header",u=[...i.querySelectorAll(".scope-checkbox:checked")],d=i.querySelector(`#${e}-pkce`),h=`${Math.random().toString(36).slice(2,9)}random${Math.random().toString(36).slice(2,9)}`,f=`${Math.random().toString(36).slice(2,9)}random${Math.random().toString(36).slice(2,9)}`,m=new URL(`${window.location.origin}${window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/"))}/${this.oauthReceiver}`);let y,g="",v="";if([...i.parentNode.querySelectorAll(".oauth-resp-display")].forEach((e=>{e.innerHTML=""})),"authorizationCode"===t||"implicit"===t){const s=new URL(r);"authorizationCode"===t?(g="authorization_code",v="code"):"implicit"===t&&(v="token");const l=new URLSearchParams(s.search),c=u.map((e=>e.value)).join(" ");c&&l.set("scope",c),l.set("client_id",o),l.set("redirect_uri",m.toString()),l.set("response_type",v),l.set("state",h),l.set("nonce",f),d&&d.checked&&(l.set("code_challenge",aW),l.set("code_challenge_method","S256")),l.set("show_dialog",!0),s.search=l.toString(),"true"===sessionStorage.getItem("winMessageEventActive")&&window.postMessage({fake:!0},this),setTimeout((()=>{y=window.open(s.toString()),y?(sessionStorage.setItem("winMessageEventActive","true"),window.addEventListener("message",(t=>gW.call(this,t,y,n,o,a,m.toString(),g,p,e,i)),{once:!0})):console.error(`RapiDoc: Unable to open ${s.toString()} in a new window`)}),10)}else if("clientCredentials"===t){g="client_credentials";const t=u.map((e=>e.value)).join(" ");yW.call(this,n,o,a,m.toString(),g,"",e,i,p,t)}else if("password"===t){g="password";const t=u.map((e=>e.value)).join(" ");yW.call(this,n,o,a,m.toString(),g,"",e,i,p,t,l,c)}}function bW(e,t,r,n,s,i=[],o="header",a=void 0){let{authorizationUrl:l,tokenUrl:c,refreshUrl:p}=s;const u=s["x-pkce-only"]||!1,d=e=>e.indexOf("://")>0||0===e.indexOf("//"),h=new URL(this.selectedServer.computedUrl).origin;let f;return p&&!d(p)&&(p=`${h}/${p.replace(/^\//,"")}`),c&&!d(c)&&(c=`${h}/${c.replace(/^\//,"")}`),l&&!d(l)&&(l=`${h}/${l.replace(/^\//,"")}`),f="authorizationCode"===e?"Authorization Code Flow":"clientCredentials"===e?"Client Credentials Flow":"implicit"===e?"Implicit Flow":"password"===e?"Password Flow":e,z`
<div class="oauth-flow ${e}" style="padding: 12px 0; margin-bottom:12px;">
<div class="tiny-title upper" style="margin-bottom:8px;">${f}</div>
${l?z`<div style="margin-bottom:5px"><span style="width:75px; display: inline-block;">Auth URL</span> <span class="mono-font"> ${l} </span></div>`:""}
${c?z`<div style="margin-bottom:5px"><span style="width:75px; display: inline-block;">Token URL</span> <span class="mono-font">${c}</span></div>`:""}
${p?z`<div style="margin-bottom:5px"><span style="width:75px; display: inline-block;">Refresh URL</span> <span class="mono-font">${p}</span></div>`:""}
${"authorizationCode"===e||"clientCredentials"===e||"implicit"===e||"password"===e?z`
${s.scopes?z`
<span> Scopes </span>
<div class= "oauth-scopes" part="section-auth-scopes" style = "width:100%; display:flex; flex-direction:column; flex-wrap:wrap; margin:0 0 10px 24px">
${Object.entries(s.scopes).map(((t,r)=>z`
<div class="m-checkbox" style="display:inline-flex; align-items:center">
<input type="checkbox" part="checkbox checkbox-auth-scope" class="scope-checkbox" id="${n}${e}${r}" ?checked="${i.includes(t[0])}" value="${t[0]}">
<label for="${n}${e}${r}" style="margin-left:5px; cursor:pointer">
<span class="mono-font">${t[0]}</span>
${t[0]!==t[1]?` - ${t[1]||""}`:""}
</label>
</div>
`))}
</div>
`:""}
${"password"===e?z`
<div style="margin:5px 0">
<input type="text" value = "" placeholder="username" spellcheck="false" class="oauth2 ${e} ${n} api-key-user" part="textbox textbox-username">
<input type="password" value = "" placeholder="password" spellcheck="false" class="oauth2 ${e} ${n} api-key-password" style = "margin:0 5px;" part="textbox textbox-password">
</div>`:""}
<div>
${"authorizationCode"===e?z`
<div style="margin: 16px 0 4px">
<input type="checkbox" part="checkbox checkbox-auth-scope" id="${n}-pkce" checked ?disabled=${u}>
<label for="${n}-pkce" style="margin:0 16px 0 4px; line-height:24px; cursor:pointer">
Send Proof Key for Code Exchange (PKCE)
</label>
</div>
`:""}
<input type="text" part="textbox textbox-auth-client-id" value = "${t||""}" placeholder="client-id" spellcheck="false" class="oauth2 ${e} ${n} oauth-client-id">
${"authorizationCode"===e||"clientCredentials"===e||"password"===e?z`
<input
type="password" part="textbox textbox-auth-client-secret"
value = "${r||""}" placeholder="client-secret" spellcheck="false"
class="oauth2 ${e} ${n}
oauth-client-secret"
style = "margin:0 5px;${u?"display:none;":""}"
>
<select style="margin-right:5px;${u?"display:none;":""}" class="${e} ${n} oauth-send-client-secret-in">
${!a||a.includes("header")?z`<option value = 'header' .selected = ${"header"===o} > Authorization Header </option>`:""}
${!a||a.includes("request-body")?z` <option value = 'request-body' .selected = ${"request-body"===o}> Request Body </option>`:""}
</select>`:""}
${"authorizationCode"===e||"clientCredentials"===e||"implicit"===e||"password"===e?z`
<button class="m-btn thin-border" part="btn btn-outline"
@click="${t=>{vW.call(this,n,e,l,c,t)}}"
> GET TOKEN </button>`:""}
</div>
<div class="oauth-resp-display red-text small-font-size"></div>
`:""}
</div>
`}function xW(e){var t;const r=null===(t=this.resolvedSpec.securitySchemes)||void 0===t?void 0:t.find((t=>t.securitySchemeId===e));if(r.user="",r.password="",r.value="",r.finalKeyValue="","true"===this.persistAuth){const e=uW.call(this);delete e[r.securitySchemeId],dW.call(this,e)}this.requestUpdate()}function wW(){var e;if(!this.resolvedSpec)return"";const t=null===(e=this.resolvedSpec.securitySchemes)||void 0===e?void 0:e.filter((e=>e.finalKeyValue));return t?z`
<section id='auth' part="section-auth" style="text-align:left; direction:ltr; margin-top:24px; margin-bottom:24px;" class = 'observe-me ${"read focused".includes(this.renderStyle)?"section-gap--read-mode":"section-gap "}'>
<div class='sub-title regular-font'> AUTHENTICATION </div>
<div class="small-font-size" style="display:flex; align-items: center; min-height:30px">
${t.length>0?z`
<div class="blue-text"> ${t.length} API key applied </div>
<div style="flex:1"></div>
<button class="m-btn thin-border" part="btn btn-outline" @click=${()=>{pW.call(this)}}>CLEAR ALL API KEYS</button>`:z`<div class="red-text">No API key applied</div>`}
</div>
${this.resolvedSpec.securitySchemes&&this.resolvedSpec.securitySchemes.length>0?z`
<table role="presentation" id="auth-table" class='m-table padded-12' style="width:100%;">
${this.resolvedSpec.securitySchemes.map((e=>z`
<tr id="security-scheme-${e.securitySchemeId}" class="${e.type.toLowerCase()}">
<td style="max-width:500px; overflow-wrap: break-word;">
<div style="line-height:28px; margin-bottom:5px;">
<span style="font-weight:bold; font-size:var(--font-size-regular)">${e.typeDisplay}</span>
${e.finalKeyValue?z`
<span class='blue-text'> ${e.finalKeyValue?"Key Applied":""} </span>
<button class="m-btn thin-border small" part="btn btn-outline" @click=${()=>{xW.call(this,e.securitySchemeId)}}>REMOVE</button>
`:""}
</div>
${e.description?z`
<div class="m-markdown">
${sW(Je(e.description||""))}
</div>`:""}
${"apikey"===e.type.toLowerCase()||"http"===e.type.toLowerCase()&&"bearer"===e.scheme.toLowerCase()?z`
<div style="margin-bottom:5px">
${"apikey"===e.type.toLowerCase()?z`Send <code>${e.name}</code> in <code>${e.in}</code>`:z`Send <code>Authorization</code> in <code>header</code> containing the word <code>Bearer</code> followed by a space and a Token String.`}
</div>
<div style="max-height:28px;">
${"cookie"!==e.in?z`
<input type = "text" value = "${e.value}" class="${e.type} ${e.securitySchemeId} api-key-input" placeholder = "api-token" spellcheck = "false">
<button class="m-btn thin-border" style = "margin-left:5px;"
part = "btn btn-outline"
@click="${t=>{fW.call(this,e.securitySchemeId,t)}}">
${e.finalKeyValue?"UPDATE":"SET"}
</button>`:z`<span class="gray-text" style="font-size::var(--font-size-small)"> cookies cannot be set from here</span>`}
</div>`:""}
${"http"===e.type.toLowerCase()&&"basic"===e.scheme.toLowerCase()?z`
<div style="margin-bottom:5px">
Send <code>Authorization</code> in <code>header</code> containing the word <code>Basic</code> followed by a space and a base64 encoded string of <code>username:password</code>.
</div>
<div>
<input type="text" value = "${e.user}" placeholder="username" spellcheck="false" class="${e.type} ${e.securitySchemeId} api-key-user" style="width:100px">
<input type="password" value = "${e.password}" placeholder="password" spellcheck="false" class="${e.type} ${e.securitySchemeId} api-key-password" style = "width:100px; margin:0 5px;">
<button class="m-btn thin-border"
@click="${t=>{fW.call(this,e.securitySchemeId,t)}}"
part = "btn btn-outline"
>
${e.finalKeyValue?"UPDATE":"SET"}
</button>
</div>`:""}
</td>
</tr>
${"oauth2"===e.type.toLowerCase()?z`
<tr>
<td style="border:none; padding-left:48px">
${Object.keys(e.flows).map((t=>bW.call(this,t,e.flows[t]["x-client-id"]||e["x-client-id"]||"",e.flows[t]["x-client-secret"]||e["x-client-secret"]||"",e.securitySchemeId,e.flows[t],e.flows[t]["x-default-scopes"]||e["x-default-scopes"],e.flows[t]["x-receive-token-in"]||e["x-receive-token-in"],e.flows[t]["x-receive-token-in-options"]||e["x-receive-token-in-options"])))}
</td>
</tr>
`:""}
`))}
</table>`:""}
<slot name="auth"></slot>
</section>
`:void 0}function $W(e){if(this.resolvedSpec.securitySchemes&&e){const t=[];return Array.isArray(e)?0===e.length?"":(e.forEach((e=>{const r=[],n=[];0===Object.keys(e).length?t.push({securityTypes:"None",securityDefs:[]}):(Object.keys(e).forEach((t=>{let s="";const i=this.resolvedSpec.securitySchemes.find((e=>e.securitySchemeId===t));e[t]&&Array.isArray(e[t])&&(s=e[t].join(", ")),i&&(n.push(i.typeDisplay),r.push({...i,scopes:s}))})),t.push({securityTypes:n.length>1?`${n[0]} + ${n.length-1} more`:n[0],securityDefs:r}))})),z`<div style="position:absolute; top:3px; right:2px; font-size:var(--font-size-small); line-height: 1.5;">
<div style="position:relative; display:flex; min-width:350px; max-width:700px; justify-content: flex-end;">
<svg width="24" height="24" viewBox="0 0 24 24" stroke-width="1.5" fill="none" style="stroke:var(--fg3)"> <rect x="5" y="11" width="14" height="10" rx="2" /> <circle cx="12" cy="16" r="1" /> <path d="M8 11v-4a4 4 0 0 1 8 0v4" /></svg>
${t.map(((e,t)=>z`
${e.securityTypes?z`
${0!==t?z`<div style="padding:3px 4px;"> OR </div>`:""}
<div class="tooltip">
<div style = "padding:2px 4px; white-space:nowrap; text-overflow:ellipsis;max-width:150px; overflow:hidden;">
${"true"===this.updateRoute&&"true"===this.allowAuthentication?z`<a part="anchor anchor-operation-security" href="#auth"> ${e.securityTypes} </a>`:z`${e.securityTypes}`}
</div>
<div class="tooltip-text" style="position:absolute; color: var(--fg); top:26px; right:0; border:1px solid var(--border-color);padding:2px 4px; display:block;">
${e.securityDefs.length>1?z`<div>Requires <b>all</b> of the following </div>`:""}
<div style="padding-left: 8px">
${e.securityDefs.map(((t,r)=>{const n=z`${""!==t.scopes?z`
<div>
<b>Required scopes:</b>
<br/>
<div style="margin-left:8px">
${t.scopes.split(",").map(((e,t)=>z`${0===t?"":"┃"}<span>${e}</span>`))}
</div>
</div>`:""}`;return z`
${"oauth2"===t.type?z`
<div>
${e.securityDefs.length>1?z`<b>${r+1}.</b> &nbsp;`:"Needs"}
OAuth Token <span style="font-family:var(--font-mono); color:var(--primary-color);">${t.securitySchemeId}</span> in <b>Authorization header</b>
${n}
</div>`:"http"===t.type?z`
<div>
${e.securityDefs.length>1?z`<b>${r+1}.</b> &nbsp;`:z`Requires`}
${"basic"===t.scheme?"Base 64 encoded username:password":"Bearer Token"} in <b>Authorization header</b>
${n}
</div>`:z`
<div>
${e.securityDefs.length>1?z`<b>${r+1}.</b> &nbsp;`:z`Requires`}
Token in <b>${t.name} ${t.in}</b>
${n}
</div>`}`}))}
</div>
</div>
</div>
`:""}
`))}
</div>
`):""}return""}function SW(e){return z`
<section class="table-title" style="margin-top:24px;">CODE SAMPLES</div>
<div class="tab-panel col"
@click="${e=>{if(!e.target.classList.contains("tab-btn"))return;const t=e.target.dataset.tab,r=[...e.currentTarget.querySelectorAll(".tab-btn")],n=[...e.currentTarget.querySelectorAll(".tab-content")];r.forEach((e=>e.classList[e.dataset.tab===t?"add":"remove"]("active"))),n.forEach((e=>{e.style.display=e.dataset.tab===t?"block":"none"}))}}">
<div class="tab-buttons row" style="width:100; overflow">
${e.map(((e,t)=>z`<button class="tab-btn ${0===t?"active":""}" data-tab = '${e.lang}${t}'> ${e.label||e.lang} </button>`))}
</div>
${e.map(((e,t)=>{var r,n,s;return z`
<div class="tab-content m-markdown" style= "display:${0===t?"block":"none"}" data-tab = '${e.lang}${t}'>
<button class="toolbar-btn" style = "position:absolute; top:12px; right:8px" @click='${t=>{pt(e.source,t)}}'> Copy </button>
<pre><code class="language">${Ye().languages[null===(r=e.lang)||void 0===r?void 0:r.toLowerCase()]?sW(Ye().highlight(e.source,Ye().languages[null===(n=e.lang)||void 0===n?void 0:n.toLowerCase()],null===(s=e.lang)||void 0===s?void 0:s.toLowerCase())):e.source}</code></pre>
</div>`}))}
</div>
</section>`}function EW(e){return z`
<div class="req-res-title" style="margin-top:12px">CALLBACKS</div>
${Object.entries(e).map((e=>z`
<div class="tiny-title" style="padding: 12px; border:1px solid var(--light-border-color)">
${e[0]}
${Object.entries(e[1]).map((e=>z`
<div class="mono-font small-font-size" style="display:flex; margin-left:16px;">
<div style="width:100%">
${Object.entries(e[1]).map((t=>{var r,n,s;return z`
<div>
<div style="margin-top:12px;">
<div class="method method-fg ${t[0]}" style="width:70px; border:none; margin:0; padding:0; line-height:20px; vertical-align: baseline;text-align:left">
<span style="font-size:20px;"> &#x2944; </span>
${t[0]}
</div>
<span style="line-height:20px; vertical-align: baseline;">${e[0]} </span>
</div>
<div class='expanded-req-resp-container'>
<api-request
class = "${this.renderStyle}-mode callback"
style = "width:100%;"
callback = "true"
method = "${t[0]||""}",
path = "${e[0]||""}"
.parameters = "${(null===(r=t[1])||void 0===r?void 0:r.parameters)||""}"
.request_body = "${(null===(n=t[1])||void 0===n?void 0:n.requestBody)||""}"
fill-request-fields-with-example = "${this.fillRequestFieldsWithExample}"
allow-try = "false"
render-style="${this.renderStyle}"
schema-style = "${this.schemaStyle}"
active-schema-tab = "${this.defaultSchemaTab}"
schema-expand-level = "${this.schemaExpandLevel}"
schema-description-expanded = "${this.schemaDescriptionExpanded}"
allow-schema-description-expand-toggle = "${this.allowSchemaDescriptionExpandToggle}"
schema-hide-read-only = "false"
schema-hide-write-only = "${"never"===this.schemaHideWriteOnly?"false":"true"}"
fetch-credentials = "${this.fetchCredentials}"
exportparts = "wrap-request-btn:wrap-request-btn, btn:btn, btn-fill:btn-fill, btn-outline:btn-outline, btn-try:btn-try, btn-clear:btn-clear, btn-clear-resp:btn-clear-resp,
file-input:file-input, textbox:textbox, textbox-param:textbox-param, textarea:textarea, textarea-param:textarea-param,
anchor:anchor, anchor-param-example:anchor-param-example, schema-description:schema-description, schema-multiline-toggle:schema-multiline-toggle"
> </api-request>
<api-response
style = "width:100%;"
class = "${this.renderStyle}-mode"
callback = "true"
.responses="${null===(s=t[1])||void 0===s?void 0:s.responses}"
render-style="${this.renderStyle}"
schema-style="${this.schemaStyle}"
active-schema-tab = "${this.defaultSchemaTab}"
schema-expand-level = "${this.schemaExpandLevel}"
schema-description-expanded = "${this.schemaDescriptionExpanded}"
allow-schema-description-expand-toggle = "${this.allowSchemaDescriptionExpandToggle}"
schema-hide-read-only = "${"never"===this.schemaHideReadOnly?"false":"true"}"
schema-hide-write-only = "false"
exportparts = "btn:btn, btn-response-status:btn-response-status, btn-selected-response-status:btn-selected-response-status, btn-fill:btn-fill, btn-copy:btn-copy,
schema-description:schema-description, schema-multiline-toggle:schema-multiline-toggle"
> </api-response>
</div>
</div>
`}))}
</div>
</div>
`))}
</div>
`))}
`}const kW={},OW=tW(class extends rW{constructor(){super(...arguments),this.st=kW}render(e,t){return t()}update(e,[t,r]){if(Array.isArray(t)){if(Array.isArray(this.st)&&this.st.length===t.length&&t.every(((e,t)=>e===this.st[t])))return H}else if(this.st===t)return H;return this.st=Array.isArray(t)?Array.from(t):t,this.render(t,r)}}),{I:jW}=ie,AW={},PW=tW(class extends rW{constructor(e){if(super(e),e.type!==QV&&e.type!==ZV&&e.type!==eW)throw Error("The `live` directive is not allowed on child or event bindings");if(!(e=>void 0===e.strings)(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===H||t===V)return t;const r=e.element,n=e.name;if(e.type===QV){if(t===r[n])return H}else if(e.type===eW){if(!!t===r.hasAttribute(n))return H}else if(e.type===ZV&&r.getAttribute(n)===t+"")return H;return((e,t=AW)=>{e._$AH=t})(e),t}});var TW=r(131),CW=r.n(TW);const IW=c`
.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;
}
`;function RW(e){if(void 0===e)return"";if(null===e)return"null";if(""===e)return"∅";if("boolean"==typeof e||"number"==typeof e)return`${e}`;if(Array.isArray(e))return e.map((e=>null===e?"null":""===e?"∅":e.toString().replace(/^ +| +$/g,(e=>"●".repeat(e.length)))||"")).join(", ");if("object"==typeof e){const t=Object.keys(e);return`{ ${t[0]}:${e[t[0]]}${t.length>1?",":""} ... }`}return e.toString().replace(/^ +| +$/g,(e=>"●".repeat(e.length)))||""}function _W(e){if(!e)return;let t="",r="";if(e.$ref){const r=e.$ref.lastIndexOf("/");t=`{recursive: ${e.$ref.substring(r+1)}} `}else e.type?(t=Array.isArray(e.type)?e.type.join(2===e.length?" or ":"┃"):e.type,(e.format||e.enum||e.const)&&(t=t.replace("string",e.enum?"enum":e.const?"const":e.format)),e.nullable&&(t+="┃null")):t=e.const?"const":0===Object.keys(e).length?"any":"{missing-type-info}";const n={type:t,format:e.format||"",pattern:e.pattern&&!e.enum?e.pattern:"",readOrWriteOnly:e.readOnly?"🆁":e.writeOnly?"🆆":"",deprecated:e.deprecated?"❌":"",examples:e.examples||e.example,default:RW(e.default),description:e.description||"",constrain:"",allowedValues:"",arrayType:"",html:""};if("{recursive}"===n.type?n.description=e.$ref.substring(e.$ref.lastIndexOf("/")+1):"{missing-type-info}"!==n.type&&"any"!==n.type||(n.description=n.description||""),n.allowedValues=e.const?e.const:Array.isArray(e.enum)?e.enum.map((e=>RW(e))).join("┃"):"","array"===t&&e.items){var s,i;const t=null===(s=e.items)||void 0===s?void 0:s.type,r=RW(e.items.default);n.arrayType=`${e.type} of ${Array.isArray(t)?t.join(""):t}`,n.default=r,n.allowedValues=e.items.const?e.const:Array.isArray(null===(i=e.items)||void 0===i?void 0:i.enum)?e.items.enum.map((e=>RW(e))).join("┃"):""}return t.match(/integer|number/g)&&(void 0===e.minimum&&void 0===e.exclusiveMinimum||(r+=void 0!==e.minimum?`Min ${e.minimum}`:`More than ${e.exclusiveMinimum}`),void 0===e.maximum&&void 0===e.exclusiveMaximum||(r+=void 0!==e.maximum?`${r?"┃":""}Max ${e.maximum}`:`${r?"┃":""}Less than ${e.exclusiveMaximum}`),void 0!==e.multipleOf&&(r+=`${r?"┃":""} multiple of ${e.multipleOf}`)),t.match(/string/g)&&(void 0!==e.minLength&&void 0!==e.maxLength?r+=`${r?"┃":""}${e.minLength} to ${e.maxLength} chars`:void 0!==e.minLength?r+=`${r?"┃":""}Min ${e.minLength} chars`:void 0!==e.maxLength&&(r+=`Max ${r?"┃":""}${e.maxLength} chars`)),n.constrain=r,n.html=`${n.type}~|~${n.readOrWriteOnly}~|~${n.constrain}~|~${n.default}~|~${n.allowedValues}~|~${n.pattern}~|~${n.description}~|~${e.title||""}~|~${n.deprecated?"deprecated":""}`,n}function FW(e){return"boolean"==typeof e||"number"==typeof e?{Example:{value:`${e}`}}:""===e?{Example:{value:""}}:e?{Example:{value:e}}:e}function DW(e,t="string"){if(!e)return{exampleVal:"",exampleList:[]};if(e.constructor===Object){const t=Object.values(e).filter((e=>!1!==e["x-example-show-value"])).map((e=>({value:"boolean"==typeof e.value||"number"==typeof e.value?`${e.value}`:e.value||"",printableValue:RW(e.value),summary:e.summary||"",description:e.description||""})));return{exampleVal:t.length>0?t[0].value:"",exampleList:t}}if(Array.isArray(e)||(e=e?[e]:[]),0===e.length)return{exampleVal:"",exampleList:[]};if("array"===t){const[t]=e,r=e.map((e=>({value:e,printableValue:RW(e)})));return{exampleVal:t,exampleList:r}}const r=e[0].toString(),n=e.map((e=>({value:e.toString(),printableValue:RW(e)})));return{exampleVal:r,exampleList:n}}function MW(e){const t=e.examples?e.examples[0]:null===e.example?null:e.example||void 0;if(""===t)return"";if(null===t)return null;if(0===t)return 0;if(!1===t)return!1;if(t instanceof Date)switch(e.format.toLowerCase()){case"date":return t.toISOString().split("T")[0];case"time":return t.toISOString().split("T")[1];default:return t.toISOString()}if(t)return t;if(0===Object.keys(e).length)return null;if(e.$ref)return e.$ref;if(!1===e.const||0===e.const||null===e.const||""===e.const)return e.const;if(e.const)return e.const;const r=Array.isArray(e.type)?e.type[0]:e.type;if(!r)return"?";if(r.match(/^integer|^number/g)){const t=Number.isNaN(Number(e.multipleOf))?void 0:Number(e.multipleOf),n=Number.isNaN(Number(e.maximum))?void 0:Number(e.maximum),s=Number.isNaN(Number(e.minimum))?Number.isNaN(Number(e.exclusiveMinimum))?n||0:Number(e.exclusiveMinimum)+(r.startsWith("integer")?1:.001):Number(e.minimum);return t?t>=s?t:s%t==0?s:Math.ceil(s/t)*t:s}if(r.match(/^boolean/g))return!1;if(r.match(/^null/g))return null;if(r.match(/^string/g)){if(e.enum)return e.enum[0];if(e.const)return e.const;if(e.pattern)return e.pattern;if(!e.format){const t=Number.isNaN(e.minLength)?void 0:Number(e.minLength),r=Number.isNaN(e.maxLength)?void 0:Number(e.maxLength),n=t||(r>6?6:r||void 0);return n?"A".repeat(n):"string"}{const t=`${Date.now().toString(16)}${Math.random().toString(16)}0`.repeat(16);switch(e.format.toLowerCase()){case"url":case"uri":return"http://example.com";case"date":return new Date(0).toISOString().split("T")[0];case"time":return new Date(0).toISOString().split("T")[1];case"date-time":return new Date(0).toISOString();case"duration":return"P3Y6M4DT12H30M5S";case"email":case"idn-email":return"user@example.com";case"hostname":case"idn-hostname":return"www.example.com";case"ipv4":return"198.51.100.42";case"ipv6":return"2001:0db8:5b96:0000:0000:426f:8e17:642a";case"uuid":return[t.substr(0,8),t.substr(8,4),`4000-8${t.substr(13,3)}`,t.substr(16,12)].join("-");case"byte":return"ZXhhbXBsZQ==";default:return""}}}return"?"}function qW(e,t=1){const r=" ".repeat(t);let n="";if(1===t&&"object"!=typeof e)return`\n${r}${e.toString()}`;for(const s in e){const i=e[s]["::XML_TAG"]||s;let o="";o=Array.isArray(e[s])?i[0]["::XML_TAG"]||`${s}`:i,s.startsWith("::")||(n=Array.isArray(e[s])||"object"==typeof e[s]?`${n}\n${r}<${o}>${qW(e[s],t+1)}\n${r}</${o}>`:`${n}\n${r}<${o}>${e[s].toString()}</${o}>`)}return n}function LW(e,t){var r,n;if("object"==typeof t&&null!==t){var s,i;if(e.title&&(t["::TITLE"]=e.title),e.description&&(t["::DESCRIPTION"]=e.description),null!==(r=e.xml)&&void 0!==r&&r.name)t["::XML_TAG"]=null===(s=e.xml)||void 0===s?void 0:s.name;if(null!==(n=e.xml)&&void 0!==n&&n.wrapped)t["::XML_WRAP"]=null===(i=e.xml)||void 0===i?void 0:i.wrapped.toString()}}function BW(e){if("object"==typeof e&&null!==e){delete e["::TITLE"],delete e["::DESCRIPTION"],delete e["::XML_TAG"],delete e["::XML_WRAP"];for(const t in e)BW(e[t])}}function NW(e,t,r){for(const n in t)t[n][r]=e}function UW(e,t,r){let n=0;const s={};for(const i in e){for(const o in r)if(s[`example-${n}`]={...e[i]},s[`example-${n}`][t]=r[o],n++,n>=10)break;if(n>=10)break}return s}function zW(e,t={}){let r={};if(e){if(e.allOf){var n,s;const i={};if(!(1!==e.allOf.length||null!==(n=e.allOf[0])&&void 0!==n&&n.properties||null!==(s=e.allOf[0])&&void 0!==s&&s.items)){if(e.allOf[0].$ref)return"{ }";if(e.allOf[0].readOnly&&t.includeReadOnly){return MW(e.allOf[0])}return}e.allOf.forEach((e=>{if("object"===e.type||e.properties||e.allOf||e.anyOf||e.oneOf){const r=zW(e,t);Object.assign(i,r)}else if("array"===e.type||e.items){const r=[zW(e,t)];Object.assign(i,r)}else{if(!e.type)return"";{const t=`prop${Object.keys(i).length}`;i[t]=MW(e)}}})),r=i}else if(e.oneOf){const n={};if(e.properties)for(const r in e.properties){var i;e.properties[r].properties||null!==(i=e.properties[r].properties)&&void 0!==i&&i.items?n[r]=zW(e.properties[r],t):n[r]=MW(e.properties[r])}if(e.oneOf.length>0){let s=0;for(const i in e.oneOf){const o=zW(e.oneOf[i],t);for(const t in o){let a;if(Object.keys(n).length>0){if(null===o[t]||"object"!=typeof o[t])continue;a=Object.assign(o[t],n)}else a=o[t];r[`example-${s}`]=a,LW(e.oneOf[i],r[`example-${s}`]),s++}}}}else if(e.anyOf){let n;if("object"===e.type||e.properties){n={"example-0":{}};for(const r in e.properties){if(e.example){n=e;break}e.properties[r].deprecated&&!t.includeDeprecated||(e.properties[r].readOnly&&!t.includeReadOnly||e.properties[r].writeOnly&&!t.includeWriteOnly||(n=UW(n,r,zW(e.properties[r],t))))}}let s=0;for(const i in e.anyOf){const o=zW(e.anyOf[i],t);for(const t in o){if(void 0!==n)for(const e in n)r[`example-${s}`]={...n[e],...o[t]};else r[`example-${s}`]=o[t];LW(e.anyOf[i],r[`example-${s}`]),s++}}}else if("object"===e.type||e.properties)if(r["example-0"]={},LW(e,r["example-0"]),e.example)r["example-0"]=e.example;else for(const n in e.properties){var o,a,l,c,p,u,d;if(null===(o=e.properties[n])||void 0===o||!o.deprecated||t.includeDeprecated)if(null===(a=e.properties[n])||void 0===a||!a.readOnly||t.includeReadOnly)if(null===(l=e.properties[n])||void 0===l||!l.writeOnly||t.includeWriteOnly)if("array"===(null===(c=e.properties[n])||void 0===c?void 0:c.type)||null!==(p=e.properties[n])&&void 0!==p&&p.items)if(e.properties[n].example)NW(e.properties[n].example,r,n);else if(null!==(u=e.properties[n])&&void 0!==u&&null!==(d=u.items)&&void 0!==d&&d.example)NW([e.properties[n].items.example],r,n);else{const s=zW(e.properties[n].items,t);if(t.useXmlTagForProp){var h,f;const t=(null===(h=e.properties[n].xml)||void 0===h?void 0:h.name)||n;if(null!==(f=e.properties[n].xml)&&void 0!==f&&f.wrapped){r=UW(r,t,JSON.parse(`{ "${t}" : { "${t}" : ${JSON.stringify(s["example-0"])} } }`))}else r=UW(r,t,s)}else{const e=[];for(const t in s)e[t]=[s[t]];r=UW(r,n,e)}}else r=UW(r,n,zW(e.properties[n],t))}else{if("array"!==e.type&&!e.items)return{"example-0":MW(e)};var m;if(e.items||e.example)if(e.example)r["example-0"]=e.example;else if(null!==(m=e.items)&&void 0!==m&&m.example)r["example-0"]=[e.items.example];else{const n=zW(e.items,t);let s=0;for(const t in n)r[`example-${s}`]=[n[t]],LW(e.items,r[`example-${s}`]),s++}else r["example-0"]=[]}return r}}function HW(e,t=0){var r;let n=(e.description||e.title)&&(e.minItems||e.maxItems)?'<span class="descr-expand-toggle">➔</span>':"";if(e.title?n=e.description?`${n} <b>${e.title}:</b> ${e.description}<br/>`:`${n} ${e.title}<br/>`:e.description&&(n=`${n} ${e.description}<br/>`),e.minItems&&(n=`${n} <b>Min Items:</b> ${e.minItems}`),e.maxItems&&(n=`${n} <b>Max Items:</b> ${e.maxItems}`),t>0&&null!==(r=e.items)&&void 0!==r&&r.description){let t="";e.items.minProperties&&(t=`<b>Min Properties:</b> ${e.items.minProperties}`),e.items.maxProperties&&(t=`${t} <b>Max Properties:</b> ${e.items.maxProperties}`),n=`${n}${t} [ ${e.items.description} ] `}return n}function VW(e,t,r=0,n=""){if(e){if(e.allOf){const n={};if(1===e.allOf.length&&!e.allOf[0].properties&&!e.allOf[0].items){return`${_W(e.allOf[0]).html}`}e.allOf.map(((e,t)=>{if("object"===e.type||e.properties||e.allOf||e.anyOf||e.oneOf){const s=(e.anyOf||e.oneOf)&&t>0?t:"",i=VW(e,{},r+1,s);Object.assign(n,i)}else if("array"===e.type||e.items){const t=VW(e,{},r+1);Object.assign(n,t)}else{if(!e.type)return"";{const t=`prop${Object.keys(n).length}`,r=_W(e);n[t]=`${r.html}`}}})),t=n}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 n in e.properties)e.required&&e.required.includes(n)?t[`${n}*`]=VW(e.properties[n],{},r+1):t[n]=VW(e.properties[n],{},r+1)}const s={},i=e.anyOf?"anyOf":"oneOf";e[i].forEach(((e,t)=>{if("object"===e.type||e.properties||e.allOf||e.anyOf||e.oneOf){const r=VW(e,{});s[`::OPTION~${t+1}${e.title?`~${e.title}`:""}`]=r,s[`::OPTION~${t+1}${e.title?`~${e.title}`:""}`]["::readwrite"]="",s["::type"]="xxx-of-option"}else if("array"===e.type||e.items){const r=VW(e,{});s[`::OPTION~${t+1}${e.title?`~${e.title}`:""}`]=r,s[`::OPTION~${t+1}${e.title?`~${e.title}`:""}`]["::readwrite"]="",s["::type"]="xxx-of-array"}else{const r=`::OPTION~${t+1}${e.title?`~${e.title}`:""}`;s[r]=`${_W(e).html}`,s["::type"]="xxx-of-option"}})),t[e.anyOf?`::ANY~OF ${n}`:`::ONE~OF ${n}`]=s,t["::type"]="object"}else if(Array.isArray(e.type)){const n=JSON.parse(JSON.stringify(e)),o=[],a=[];let l;var s;if(n.type.forEach((e=>{var t,r;e.match(/integer|number|string|null|boolean/g)?o.push(e):"array"===e&&"string"==typeof(null===(t=n.items)||void 0===t?void 0:t.type)&&null!==(r=n.items)&&void 0!==r&&r.type.match(/integer|number|string|null|boolean/g)?"string"===n.items.type&&n.items.format?o.push(`[${n.items.format}]`):o.push(`[${n.items.type}]`):a.push(e)})),o.length>0)if(n.type=o.join(2===o.length?" or ":"┃"),l=_W(n),0===a.length)return`${(null===(s=l)||void 0===s?void 0:s.html)||""}`;if(a.length>0){var i;t["::type"]="object";const s={"::type":"xxx-of-option"};a.forEach(((t,i)=>{if("null"===t)s[`::OPTION~${i+1}`]="NULL~|~~|~~|~~|~~|~~|~~|~~|~";else if("integer, number, string, boolean,".includes(`${t},`)){n.type=Array.isArray(t)?t.join("┃"):t;const e=_W(n);s[`::OPTION~${i+1}`]=e.html}else if("object"===t){const t={"::title":e.title||"","::description":e.description||"","::type":"object","::deprecated":e.deprecated||!1};for(const n in e.properties)e.required&&e.required.includes(n)?t[`${n}*`]=VW(e.properties[n],{},r+1):t[n]=VW(e.properties[n],{},r+1);s[`::OPTION~${i+1}`]=t}else"array"===t&&(s[`::OPTION~${i+1}`]={"::title":e.title||"","::description":e.description||"","::type":"array","::props":VW(e.items,{},r+1)})})),s[`::OPTION~${a.length+1}`]=(null===(i=l)||void 0===i?void 0:i.html)||"",t["::ONE~OF"]=s}}else if("object"===e.type||e.properties){t["::title"]=e.title||"",t["::description"]=HW(e,r),t["::type"]="object",(Array.isArray(e.type)&&e.type.includes("null")||e.nullable)&&(t["::dataTypeLabel"]="object or null",t["::nullable"]=!0),t["::deprecated"]=e.deprecated||!1,t["::readwrite"]=e.readOnly?"readonly":e.writeOnly?"writeonly":"";for(const n in e.properties)e.required&&e.required.includes(n)?t[`${n}*`]=VW(e.properties[n],{},r+1):t[n]=VW(e.properties[n],{},r+1);for(const n in e.patternProperties)t[`[pattern: ${n}]`]=VW(e.patternProperties[n],t,r+1);e.additionalProperties&&(t["[any-key]"]=VW(e.additionalProperties,{}))}else{if("array"!==e.type&&!e.items){const t=_W(e);return null!=t&&t.html?`${t.html}`:""}var o;t["::title"]=e.title||"",t["::description"]=HW(e,r),t["::type"]="array",(Array.isArray(e.type)&&e.type.includes("null")||e.nullable)&&(t["::dataTypeLabel"]="array or null",t["::nullable"]=!0),t["::deprecated"]=e.deprecated||!1,t["::readwrite"]=e.readOnly?"readonly":e.writeOnly?"writeonly":"",null!==(o=e.items)&&void 0!==o&&o.items&&(t["::array-type"]=e.items.items.type),t["::props"]=VW(e.items,{},r+1)}return t}}function WW(e,t,r="",n="",s=!0,i=!0,o="json",a=!1){const l=[];if(r)for(const e in r){let n="",s="json";if(null!=t&&t.toLowerCase().includes("json")){if("text"===o)n="string"==typeof r[e].value?r[e].value:JSON.stringify(r[e].value,void 0,2),s="text";else if(n=r[e].value,"string"==typeof r[e].value)try{const t=r[e].value;n=JSON.parse(t),s="json"}catch(t){s="text",n=r[e].value}}else n=r[e].value,s="text";l.push({exampleId:e,exampleSummary:r[e].summary||e,exampleDescription:r[e].description||"",exampleType:t,exampleValue:n,exampleFormat:s})}else if(n){let e="",r="json";if(null!=t&&t.toLowerCase().includes("json")){if("text"===o)e="string"==typeof n?n:JSON.stringify(n,void 0,2),r="text";else if("object"==typeof n)e=n,r="json";else if("string"==typeof n)try{e=JSON.parse(n),r="json"}catch(t){r="text",e=n}}else e=n,r="text";l.push({exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:t,exampleValue:e,exampleFormat:r})}if(0===l.length||!0===a)if(e)if(e.example)l.push({exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:t,exampleValue:e.example,exampleFormat:null!=t&&t.toLowerCase().includes("json")&&"object"==typeof e.example?"json":"text"});else if(null!=t&&t.toLowerCase().includes("json")||null!=t&&t.toLowerCase().includes("text")||null!=t&&t.toLowerCase().includes("*/*")||null!=t&&t.toLowerCase().includes("xml")){let r="",n="",a="",u="";var c,p;if(null!=t&&t.toLowerCase().includes("xml"))r=null!==(c=e.xml)&&void 0!==c&&c.name?`<${e.xml.name} ${e.xml.namespace?`xmlns="${e.xml.namespace}"`:""}>`:"<root>",n=null!==(p=e.xml)&&void 0!==p&&p.name?`</${e.xml.name}>`:"</root>",a="text";else a=o;const d=zW(e,{includeReadOnly:s,includeWriteOnly:i,deprecated:!0,useXmlTagForProp:null==t?void 0:t.toLowerCase().includes("xml")});let h=0;for(const e in d){if(!d[e])continue;const s=d[e]["::TITLE"]||"Example "+ ++h,i=d[e]["::DESCRIPTION"]||"";null!=t&&t.toLowerCase().includes("xml")?u=`<?xml version="1.0" encoding="UTF-8"?>\n${r}${qW(d[e],1)}\n${n}`:(BW(d[e]),u="text"===o?JSON.stringify(d[e],null,2):d[e]),l.push({exampleId:e,exampleSummary:s,exampleDescription:i,exampleType:t,exampleFormat:a,exampleValue:u})}}else null!=t&&t.toLowerCase().includes("jose")?l.push({exampleId:"Example",exampleSummary:"Base64 Encoded",exampleDescription:"",exampleType:t,exampleValue:e.pattern||"bXJpbg==",exampleFormat:"text"}):l.push({exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:t,exampleValue:"",exampleFormat:"text"});else l.push({exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:t,exampleValue:"",exampleFormat:"text"});return l}function GW(e){return"application/json"===e?"json":"application/xml"===e?"xml":null}function JW(e){if(e.schema)return[e.schema,null,null];if(e.content)for(const t of Object.keys(e.content))if(e.content[t].schema)return[e.content[t].schema,GW(t),e.content[t]];return[null,null,null]}customElements.define("json-tree",class extends ce{static get properties(){return{data:{type:Object},renderStyle:{type:String,attribute:"render-style"}}}static get styles(){return[Ze,IW,Xe,c`
:host{
display:flex;
}
:where(button, input[type="checkbox"], [tabindex="0"]):focus-visible { box-shadow: var(--focus-shadow); }
:where(input[type="text"], input[type="password"], select, textarea):focus-visible { border-color: var(--primary-color); }
.json-tree {
position: relative;
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);
min-height: 40px;
direction: ltr;
text-align: left;
}
.open-bracket {
display:inline-block;
padding: 0 20px 0 0;
cursor:pointer;
border: 1px solid transparent;
border-radius:3px;
}
.close-bracket {
border: 1px solid transparent;
border-radius:3px;
display:inline-block;
}
.open-bracket:hover {
color:var(--primary-color);
background-color:var(--hover-color);
border: 1px solid var(--border-color);
}
.open-bracket.expanded:hover ~ .inside-bracket {
border-left: 1px solid var(--fg3);
}
.open-bracket.expanded:hover ~ .close-bracket {
color:var(--primary-color);
}
.inside-bracket {
padding-left:12px;
overflow: hidden;
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 {
position: absolute;
top:5px;
right:6px;
display:flex;
padding:2px;
align-items: center;
}`,ot]}render(){return z`
<div class = "json-tree" @click='${e=>{e.target.classList.contains("btn-copy")?pt(JSON.stringify(this.data,null,2),e):this.toggleExpand(e)}}'>
<div class='toolbar'>
<button class="toolbar-btn btn-copy" part="btn btn-fill btn-copy"> Copy </button>
</div>
${this.generateTree(this.data,!0)}
</div>
`}generateTree(e,t=!1){if(null===e)return z`<div class="null" style="display:inline;">null</div>`;if("object"==typeof e&&e instanceof Date==!1){const r=Array.isArray(e)?"array":"pure_object";return 0===Object.keys(e).length?z`${Array.isArray(e)?"[ ],":"{ },"}`:z`
<div class="open-bracket expanded ${"array"===r?"array":"object"}" > ${"array"===r?"[":"{"}</div>
<div class="inside-bracket">
${Object.keys(e).map(((t,n,s)=>z`
<div class="item">
${"pure_object"===r?z`"${t}":`:""}
${this.generateTree(e[t],n===s.length-1)}
</div>`))}
</div>
<div class="close-bracket">${"array"===r?"]":"}"}${t?"":","}</div>
`}return"string"==typeof e||e instanceof Date?z`<span class="${typeof e}">"${e}"</span>${t?"":","}`:z`<span class="${typeof e}">${e}</span>${t?"":","}`}toggleExpand(e){const t=e.target;e.target.classList.contains("open-bracket")&&(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")?"[":"{"))}});const KW=c`
*, *:before, *:after { box-sizing: border-box; }
.tr {
display: flex;
flex: none;
width: 100%;
box-sizing: content-box;
border-bottom: 1px dotted transparent;
transition: max-height 0.3s ease-out;
}
.td {
display: block;
flex: 0 0 auto;
}
.key {
font-family: var(--font-mono);
white-space: normal;
word-break: break-all;
}
.collapsed-all-descr .key {
overflow:hidden;
}
.expanded-all-descr .key-descr .descr-expand-toggle {
display:none;
}
.key-descr .descr-expand-toggle {
display:inline-block;
user-select:none;
color: var(--fg);
cursor: pointer;
transform: rotate(45deg);
transition: transform .2s ease;
}
.expanded-descr .key-descr .descr-expand-toggle {
transform: rotate(270deg)
}
.key-descr .descr-expand-toggle:hover {
color: var(--primary-color);
}
.expanded-descr .more-content { display:none; }
.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;
}
.xxx-of-key {
font-size: calc(var(--font-size-small) - 2px);
font-weight:bold;
background-color:var(--primary-color);
color:var(--primary-color-invert);
border-radius:2px;
line-height:calc(var(--font-size-small) + 6px);
padding:0px 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;
}
.stri, .string, .uri, .url, .byte, .bina, .date, .pass, .ipv4, .ipv4, .uuid, .emai, .host {color:var(--green);}
.inte, .numb, .number, .int6, .int3, .floa, .doub, .deci .blue {color:var(--blue);}
.null {color:var(--red);}
.bool, .boolean{color:var(--orange)}
.enum {color:var(--purple)}
.cons {color:var(--purple)}
.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: bold;
text-transform: uppercase;
}
.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;
}
}
`;customElements.define("schema-tree",class extends ce{static get properties(){return{data:{type:Object},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},allowSchemaDescriptionExpandToggle:{type:String,attribute:"allow-schema-description-expand-toggle"},schemaHideReadOnly:{type:String,attribute:"schema-hide-read-only"},schemaHideWriteOnly:{type:String,attribute:"schema-hide-write-only"}}}connectedCallback(){super.connectedCallback(),(!this.schemaExpandLevel||this.schemaExpandLevel<1)&&(this.schemaExpandLevel=99999),this.schemaDescriptionExpanded&&"true false".includes(this.schemaDescriptionExpanded)||(this.schemaDescriptionExpanded="false"),this.schemaHideReadOnly&&"true false".includes(this.schemaHideReadOnly)||(this.schemaHideReadOnly="true"),this.schemaHideWriteOnly&&"true false".includes(this.schemaHideWriteOnly)||(this.schemaHideWriteOnly="true")}static get styles(){return[Ze,KW,IW,c`
.tree {
font-size:var(--font-size-small);
text-align: left;
direction: ltr;
line-height:calc(var(--font-size-small) + 6px);
}
.tree .tr:hover{
background-color:var(--hover-color);
}
.collapsed-all-descr .tr:not(.expanded-descr) {
overflow: hidden;
max-height:calc(var(--font-size-small) + 8px);
}
.tree .key {
max-width: 300px;
}
.key.deprecated .key-label {
color: var(--red);
}
.tr.expanded:hover > .td.key > .open-bracket {
color: var(--primary-color);
}
.tr.expanded:hover + .inside-bracket {
border-left: 1px solid var(--fg3);
}
.tr.expanded:hover + .inside-bracket + .close-bracket {
color: var(--primary-color);
}
.inside-bracket.xxx-of-option {
border-left: 1px solid transparent;
}
.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{
overflow: hidden;
display:none;
}
.inside-bracket.object,
.inside-bracket.array {
border-left: 1px dotted var(--border-color);
}`,ot]}render(){var e,t,r;return z`
<div class="tree ${"true"===this.schemaDescriptionExpanded?"expanded-all-descr":"collapsed-all-descr"}" @click="${e=>this.handleAllEvents(e)}">
<div class="toolbar">
<div class="toolbar-item schema-root-type ${(null===(e=this.data)||void 0===e?void 0:e["::type"])||""} "> ${(null===(t=this.data)||void 0===t?void 0:t["::type"])||""} </div>
${"true"===this.allowSchemaDescriptionExpandToggle?z`
<div style="flex:1"></div>
<div part="schema-toolbar-item schema-multiline-toggle" class='toolbar-item schema-multiline-toggle'>
${"true"===this.schemaDescriptionExpanded?"Single line description":"Multiline description"}
</div>`:""}
</div>
<span part="schema-description" class='m-markdown'> ${sW(Je((null===(r=this.data)||void 0===r?void 0:r["::description"])||""))}</span>
${this.data?z`
${this.generateTree("array"===this.data["::type"]?this.data["::props"]:this.data,this.data["::type"],this.data["::array-type"]||"")}`:z`<span class='mono-font' style='color:var(--red)'> Schema not found </span>`}
</div>
`}generateTree(e,t="object",r="",n="",s="",i=0,o=0,a=""){var l;if("true"===this.schemaHideReadOnly){if("array"===t&&"readonly"===a)return;if("readonly"===(null==e?void 0:e["::readwrite"]))return}if("true"===this.schemaHideWriteOnly){if("array"===t&&"writeonly"===a)return;if("writeonly"===(null==e?void 0:e["::readwrite"]))return}if(!e)return z`<div class="null" style="display:inline;">
<span class="key-label xxx-of-key"> ${n.replace("::OPTION~","")}</span>
${"array"===t?z`<span class='mono-font'> [ ] </span>`:"object"===t?z`<span class='mono-font'> { } </span>`:z`<span class='mono-font'> schema undefined </span>`}
</div>`;if(0===Object.keys(e).length)return z`<span class="key object">${n}:{ }</span>`;let c="",p="";if(n.startsWith("::ONE~OF")||n.startsWith("::ANY~OF"))c=n.replace("::","").replace("~"," ");else if(n.startsWith("::OPTION")){const e=n.split("~");[,c,p]=e}else c=n;const u=400-12*o;let d="",h="";const f=null!==(l=e["::type"])&&void 0!==l&&l.startsWith("xxx-of")?i:i+1,m="xxx-of-option"===t||"xxx-of-option"===e["::type"]||n.startsWith("::OPTION")?o:o+1;if("object"===e["::type"])"array"===t?(d=i<this.schemaExpandLevel?z`<span class="open-bracket array-of-object" >[{</span>`:z`<span class="open-bracket array-of-object">[{...}]</span>`,h="}]"):(d=i<this.schemaExpandLevel?z`<span class="open-bracket object">${e["::nullable"]?"null┃":""}{</span>`:z`<span class="open-bracket object">${e["::nullable"]?"null┃":""}{...}</span>`,h="}");else if("array"===e["::type"])if("array"===t){const e="object"!==r?r:"";d=i<this.schemaExpandLevel?z`<span class="open-bracket array-of-array" data-array-type="${e}">[[ ${e} </span>`:z`<span class="open-bracket array-of-array" data-array-type="${e}">[[...]]</span>`,h="]]"}else d=i<this.schemaExpandLevel?z`<span class="open-bracket array">[</span>`:z`<span class="open-bracket array">[...]</span>`,h="]";var y;if("object"==typeof e)return z`
<div class="tr ${i<this.schemaExpandLevel||null!==(y=e["::type"])&&void 0!==y&&y.startsWith("xxx-of")?"expanded":"collapsed"} ${e["::type"]||"no-type-info"}${e["::nullable"]?" nullable":""}" title="${e["::deprecated"]?"Deprecated":""}">
<div class="td key ${e["::deprecated"]?"deprecated":""}" style='min-width:${u}px'>
${"xxx-of-option"===e["::type"]||"xxx-of-array"===e["::type"]||n.startsWith("::OPTION")?z`<span class='key-label xxx-of-key'> ${c}</span><span class="xxx-of-descr">${p}</span>`:"::props"===c||"::ARRAY~OF"===c?"":i>0?z`<span class="key-label" title="${"readonly"===a?"Read-Only":"writeonly"===a?"Write-Only":""}">
${e["::deprecated"]?"✗":""}
${c.replace(/\*$/,"")}${c.endsWith("*")?z`<span style="color:var(--red)">*</span>`:""}${"readonly"===a?z` 🆁`:"writeonly"===a?z` 🆆`:a}:
</span>`:""}
${d}
</div>
<div class='td key-descr m-markdown-small'>${sW(Je(s||""))}</div>
</div>
<div class='inside-bracket ${e["::type"]||"no-type-info"}' style='padding-left:${"xxx-of-option"===e["::type"]||"xxx-of-array"===e["::type"]?0:12}px;'>
${Array.isArray(e)&&e[0]?z`${this.generateTree(e[0],"xxx-of-option","","::ARRAY~OF","",f,m,e[0]["::readwrite"])}`:z`
${Object.keys(e).map((t=>{var r;return z`
${["::title","::description","::type","::props","::deprecated","::array-type","::readwrite","::dataTypeLabel","::nullable"].includes(t)?"array"===e[t]["::type"]||"object"===e[t]["::type"]?z`${this.generateTree("array"===e[t]["::type"]?e[t]["::props"]:e[t],e[t]["::type"],e[t]["::array-type"]||"",t,e[t]["::description"],f,m,e[t]["::readwrite"]?e[t]["::readwrite"]:"")}`:"":z`${this.generateTree("array"===e[t]["::type"]?e[t]["::props"]:e[t],e[t]["::type"],e[t]["::array-type"]||"",t,(null===(r=e[t])||void 0===r?void 0:r["::description"])||"",f,m,e[t]["::readwrite"]?e[t]["::readwrite"]:"")}`}
`}))}
`}
</div>
${e["::type"]&&e["::type"].includes("xxx-of")?"":z`<div class='close-bracket'> ${h} </div>`}
`;const[g,v,b,x,w,$,S,E,k]=e.split("~|~");if("🆁"===v&&"true"===this.schemaHideReadOnly)return;if("🆆"===v&&"true"===this.schemaHideWriteOnly)return;const O=g.replace(/┃.*/g,"").replace(/[^a-zA-Z0-9+]/g,"").substring(0,4).toLowerCase(),j=""+(b||x||w||$?`<span class="descr-expand-toggle ${"true"===this.schemaDescriptionExpanded?"expanded-descr":""}">➔</span>`:"");let A="",P="";return"array"===t?"readonly"===a?(A="🆁",P="Read-Only"):"writeonly"===a&&(A="🆆",P="Write-Only"):"🆁"===v?(A="🆁",P="Read-Only"):"🆆"===v&&(A="🆆",P="Write-Only"),z`
<div class = "tr primitive" title="${k?"Deprecated":""}">
<div class="td key ${k}" style='min-width:${u}px'>
${k?z`<span style='color:var(--red);'>✗</span>`:""}
${c.endsWith("*")?z`<span class="key-label">${c.substring(0,c.length-1)}</span><span style='color:var(--red);'>*</span>:`:n.startsWith("::OPTION")?z`<span class='key-label xxx-of-key'>${c}</span><span class="xxx-of-descr">${p}</span>`:z`<span class="key-label">${c}:</span>`}
<span class="${O}" title="${P}">
${"array"===t?`[${g}]`:`${g}`}
${A}
</span>
</div>
<div class='td key-descr'>
${s||E||S?z`${z`<span class="m-markdown-small">
${sW(Je("array"===t?`${j} ${s}`:E?`${j} <b>${E}:</b> ${S}`:`${j} ${S}`))}
</span>`}`:""}
${b?z`<div style='display:inline-block; line-break:anywhere; margin-right:8px'><span class='bold-text'>Constraints: </span>${b}</div>`:""}
${x?z`<div style='display:inline-block; line-break:anywhere; margin-right:8px'><span class='bold-text'>Default: </span>${x}</div>`:""}
${w?z`<div style='display:inline-block; line-break:anywhere; margin-right:8px'><span class='bold-text'>${"const"===g?"Value":"Allowed"}: </span>${w}</div>`:""}
${$?z`<div style='display:inline-block; line-break: anywhere; margin-right:8px'><span class='bold-text'>Pattern: </span>${$}</div>`:""}
</div>
</div>
`}handleAllEvents(e){if(e.target.classList.contains("open-bracket"))this.toggleObjectExpand(e);else if(e.target.classList.contains("schema-multiline-toggle"))this.schemaDescriptionExpanded="true"===this.schemaDescriptionExpanded?"false":"true";else if(e.target.classList.contains("descr-expand-toggle")){const t=e.target.closest(".tr");t&&(t.classList.toggle("expanded-descr"),t.style.maxHeight=t.scrollHeight)}}toggleObjectExpand(e){const t=e.target.closest(".tr"),r=t.classList.contains("nullable");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")?"[...]":(r?"null┃":"")+"{...}"):(t.classList.replace("collapsed","expanded"),e.target.innerHTML=e.target.classList.contains("array-of-object")?"[{":e.target.classList.contains("array-of-array")?`[[ ${e.target.dataset.arrayType}`:e.target.classList.contains("object")?(r?"null┃":"")+"{":"[")}});customElements.define("tag-input",class extends ce{render(){let e="";return Array.isArray(this.value)&&(e=z`${this.value.filter((e=>"string"==typeof e&&""!==e.trim())).map((e=>z`<span class='tag'>${e}</span>`))}`),z`
<div class='tags'>
${e}
<input type="text" class='editor' @paste="${e=>this.afterPaste(e)}" @keydown="${this.afterKeyDown}" @blur="${this.onBlur}" placeholder="${this.placeholder||""}">
</div>
`}static get properties(){return{placeholder:{type:String},value:{type:Array,attribute:"value"}}}attributeChangedCallback(e,t,r){"value"===e&&r&&t!==r&&(this.value=r.split(",").filter((e=>""!==e.trim()))),super.attributeChangedCallback(e,t,r)}afterPaste(e){const t=(e.clipboardData||window.clipboardData).getData("Text"),r=t?t.split(",").filter((e=>""!==e.trim())):"";r&&(Array.isArray(this.value)?this.value=[...this.value,...r]:this.value=r),e.preventDefault()}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])}onBlur(e){e.target.value&&(Array.isArray(this.value)?this.value=[...this.value,e.target.value]:this.value=[e.target.value],e.target.value="")}static get styles(){return[c`
.tags {
display:flex;
flex-wrap: wrap;
outline: none;
padding:0;
border-radius:var(--border-radius);
border:1px solid var(--border-color);
cursor:text;
overflow:hidden;
background:var(--input-bg);
}
.tag, .editor {
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: none;
line-height: inherit;
font-family:inherit;
background:transparent;
font-size: calc(var(--font-size-small) + 1px);
}
.editor:focus-visible {
outline: 1px solid;
}
.editor::placeholder {
color: var(--placeholder-color);
opacity:1;
}
`]}});customElements.define("api-request",class extends ce{constructor(){super(),this.responseMessage="",this.responseStatus="success",this.responseHeaders="",this.responseText="",this.responseUrl="",this.curlSyntax="",this.activeResponseTab="response",this.selectedRequestBodyType="",this.selectedRequestBodyExample="",this.activeParameterSchemaTabs={}}static get properties(){return{serverUrl:{type:String,attribute:"server-url"},servers:{type:Array},method:{type:String},path:{type:String},security:{type:Array},parameters:{type:Array},request_body:{type:Object},api_keys:{type:Array},parser:{type:Object},accept:{type:String},callback:{type:String},webhook:{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},curlSyntax:{type:String,attribute:!1},fillRequestFieldsWithExample:{type:String,attribute:"fill-request-fields-with-example"},allowTry:{type:String,attribute:"allow-try"},showCurlBeforeTry:{type:String,attribute:"show-curl-before-try"},renderStyle:{type:String,attribute:"render-style"},schemaStyle:{type:String,attribute:"schema-style"},activeSchemaTab:{type:String,attribute:"active-schema-tab"},activeParameterSchemaTabs:{type:Object,converter:{fromAttribute:e=>JSON.parse(e),toAttribute:e=>JSON.stringify(e)},attribute:"active-parameter-schema-tabs"},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},allowSchemaDescriptionExpandToggle:{type:String,attribute:"allow-schema-description-expand-toggle"},schemaHideReadOnly:{type:String,attribute:"schema-hide-read-only"},schemaHideWriteOnly:{type:String,attribute:"schema-hide-write-only"},fetchCredentials:{type:String,attribute:"fetch-credentials"},activeResponseTab:{type:String},selectedRequestBodyType:{type:String,attribute:"selected-request-body-type"},selectedRequestBodyExample:{type:String,attribute:"selected-request-body-example"}}}static get styles(){return[et,Xe,Ze,Qe,IW,nt,rt,c`
*, *:before, *:after { box-sizing: border-box; }
:where(button, input[type="checkbox"], [tabindex="0"]):focus-visible { box-shadow: var(--focus-shadow); }
:where(input[type="text"], input[type="password"], select, textarea):focus-visible { border-color: var(--primary-color); }
tag-input:focus-within { outline: 1px solid;}
.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-name.deprecated {
color: var(--red);
}
.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;
direction: ltr;
}
.example:first-child {
margin-top: -9px;
}
.response-message{
font-weight:bold;
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: none;
border: none;
background:none;
cursor:pointer;
}
.v-tab-btn {
font-size: var(--smal-font-size);
height:24px;
border:none;
background:none;
opacity: 0.3;
cursor: pointer;
padding: 4px 8px;
}
.v-tab-btn.active {
font-weight: bold;
background: var(--bg);
opacity: 1;
}
@media only screen and (min-width: 768px) {
.textarea {
padding:8px;
}
}
@media only screen and (max-width: 470px) {
.hide-in-small-screen {
display:none;
}
}
`,ot]}render(){return z`
<div class="col regular-font request-panel ${"read focused".includes(this.renderStyle)||"true"===this.callback?"read-mode":"view-mode"}">
<div class=" ${"true"===this.callback?"tiny-title":"req-res-title"} ">
${"true"===this.callback?"CALLBACK REQUEST":"REQUEST"}
</div>
<div>
${OW([this.method,this.path,this.allowTry,this.parameters,this.activeParameterSchemaTabs],(()=>this.inputParametersTemplate("path")))}
${OW([this.method,this.path,this.allowTry,this.parameters,this.activeParameterSchemaTabs],(()=>this.inputParametersTemplate("query")))}
${this.requestBodyTemplate()}
${OW([this.method,this.path,this.allowTry,this.parameters,this.activeParameterSchemaTabs],(()=>this.inputParametersTemplate("header")))}
${OW([this.method,this.path,this.allowTry,this.parameters,this.activeParameterSchemaTabs],(()=>this.inputParametersTemplate("cookie")))}
${"false"===this.allowTry?"":z`${this.apiCallTemplate()}`}
</div>
</div>
`}async updated(){"true"===this.showCurlBeforeTry&&this.applyCURLSyntax(this.shadowRoot),"true"===this.webhook&&(this.allowTry="false")}async saveExampleState(){if("focused"===this.renderStyle){[...this.shadowRoot.querySelectorAll("textarea.request-body-param-user-input")].forEach((e=>{e.dataset.user_example=e.value}));[...this.shadowRoot.querySelectorAll('textarea[data-ptype="form-data"]')].forEach((e=>{e.dataset.user_example=e.value})),this.requestUpdate()}}async updateExamplesFromDataAttr(){if("focused"===this.renderStyle){[...this.shadowRoot.querySelectorAll("textarea.request-body-param-user-input")].forEach((e=>{e.value=e.dataset.user_example||e.dataset.example}));[...this.shadowRoot.querySelectorAll('textarea[data-ptype="form-data"]')].forEach((e=>{e.value=e.dataset.user_example||e.dataset.example})),this.requestUpdate()}}renderExample(e,t,r){var n,s;return z`
${"array"===t?"[":""}
<a
part="anchor anchor-param-example"
style="display:inline-block; min-width:24px; text-align:center"
class="${"true"===this.allowTry?"":"inactive-link"}"
data-example-type="${"array"===t?t:"string"}"
data-example="${e.value&&Array.isArray(e.value)?null===(n=e.value)||void 0===n?void 0:n.join("~|~"):("object"==typeof e.value?JSON.stringify(e.value,null,2):e.value)||""}"
title="${e.value&&Array.isArray(e.value)?null===(s=e.value)||void 0===s?void 0:s.join("~|~"):("object"==typeof e.value?JSON.stringify(e.value,null,2):e.value)||""}"
@click="${e=>{const t=e.target.closest("table").querySelector(`[data-pname="${r}"]`);t&&(t.value="array"===e.target.dataset.exampleType?e.target.dataset.example.split("~|~"):e.target.dataset.example)}}"
> ${e.printableValue||e.value} </a>
${"array"===t?"] ":""}
`}renderShortFormatExamples(e,t,r){return z`${e.map(((e,n)=>z`
${0===n?"":"┃"}
${this.renderExample(e,t,r)}`))}`}renderLongFormatExamples(e,t,r){return z` <ul style="list-style-type: disclosure-closed;">
${e.map((e=>{var n,s;return z`
<li>
${this.renderExample(e,t,r)}
${(null===(n=e.summary)||void 0===n?void 0:n.length)>0?z`<span>&lpar;${e.summary}&rpar;</span>`:""}
${(null===(s=e.description)||void 0===s?void 0:s.length)>0?z`<p>${sW(Je(e.description))}</p>`:""}
</li>
`}))}
</ul>`}exampleListTemplate(e,t,r=[]){return z` ${r.length>0?z`<span style="font-weight:bold">Examples: </span>
${n=r,n.some((e=>{var t,r;return(null===(t=e.summary)||void 0===t?void 0:t.length)>0||(null===(r=e.description)||void 0===r?void 0:r.length)>0}))?this.renderLongFormatExamples(r,t,e):this.renderShortFormatExamples(r,t,e)}`:""}`;var n}inputParametersTemplate(e){const t=this.parameters?this.parameters.filter((t=>t.in===e)):[];if(0===t.length)return"";let r="";"path"===e?r="PATH PARAMETERS":"query"===e?r="QUERY-STRING PARAMETERS":"header"===e?r="REQUEST HEADERS":"cookie"===e&&(r="COOKIES");const n=[];for(const r of t){const[t,s,i]=JW(r);if(!t)continue;const o=_W(t);if(!o)continue;const a=VW(t,{});let l="form",c=!0,p=!1;"query"===e&&(r.style&&"form spaceDelimited pipeDelimited".includes(r.style)?l=r.style:s&&(l=s),"boolean"==typeof r.explode&&(c=r.explode),"boolean"==typeof r.allowReserved&&(p=r.allowReserved));const u=DW(r.examples||FW(r.example)||FW(null==i?void 0:i.example)||(null==i?void 0:i.examples)||FW(o.examples)||FW(o.example),o.type);u.exampleVal||"object"!==o.type||(u.exampleVal=WW(t,s||"json","","","true"===this.callback||"true"===this.webhook,"true"!==this.callback&&"true"!==this.webhook,!0,"text")[0].exampleValue);const d="read focused".includes(this.renderStyle)?"200px":"160px";n.push(z`
<tr title="${r.deprecated?"Deprecated":""}">
<td rowspan="${"true"===this.allowTry?"1":"2"}" style="width:${d}; min-width:100px;">
<div class="param-name ${r.deprecated?"deprecated":""}" >
${r.deprecated?z`<span style='color:var(--red);'>✗</span>`:""}
${r.required?z`<span style='color:var(--red)'>*</span>`:""}
${r.name}
</div>
<div class="param-type">
${"array"===o.type?`${o.arrayType}`:`${o.format?o.format:o.type}`}
</div>
</td>
${"true"===this.allowTry?z`
<td style="min-width:100px;" colspan="${o.default||o.constrain||o.allowedValues||o.pattern?"1":"2"}">
${"array"===o.type?z`
<tag-input class="request-param"
style = "width:100%"
data-ptype = "${e}"
data-pname = "${r.name}"
data-example = "${Array.isArray(u.exampleVal)?u.exampleVal.join("~|~"):u.exampleVal}"
data-param-serialize-style = "${l}"
data-param-serialize-explode = "${c}"
data-param-allow-reserved = "${p}"
data-x-fill-example = "${r["x-fill-example"]||"yes"}"
data-array = "true"
placeholder = "add-multiple &#x21a9;"
.value="${"no"===r["x-fill-example"]?[]:PW("true"===this.fillRequestFieldsWithExample?Array.isArray(u.exampleVal)?u.exampleVal:[u.exampleVal]:[])}"
>
</tag-input>`:"object"===o.type?z`
<div class="tab-panel col" style="border-width:0 0 1px 0;">
<div class="tab-buttons row" @click="${e=>{if("button"===e.target.tagName.toLowerCase()){const t={...this.activeParameterSchemaTabs};t[r.name]=e.target.dataset.tab,this.activeParameterSchemaTabs=t}}}">
<button class="tab-btn ${"example"===this.activeParameterSchemaTabs[r.name]?"active":""}" data-tab = 'example'>EXAMPLE </button>
<button class="tab-btn ${"example"!==this.activeParameterSchemaTabs[r.name]?"active":""}" data-tab = 'schema'>SCHEMA</button>
</div>
${"example"===this.activeParameterSchemaTabs[r.name]?z`<div class="tab-content col">
<textarea
class = "textarea request-param"
part = "textarea textarea-param"
data-ptype = "${e}-object"
data-pname = "${r.name}"
data-example = "${u.exampleVal}"
data-param-serialize-style = "${l}"
data-param-serialize-explode = "${c}"
data-param-allow-reserved = "${p}"
data-x-fill-example = "${r["x-fill-example"]||"yes"}"
spellcheck = "false"
.textContent="${"no"===r["x-fill-example"]?"":PW("true"===this.fillRequestFieldsWithExample?"object"==typeof u.exampleVal?JSON.stringify(u.exampleVal,null,2):u.exampleVal:"")}"
style = "resize:vertical; width:100%; height: ${"read focused".includes(this.renderStyle)?"180px":"120px"};"
@input=${e=>{const t=this.getRequestPanel(e);this.liveCURLSyntaxUpdate(t)}}
></textarea>
</div>`:z`
<div class="tab-content col">
<schema-tree
class = 'json'
style = 'display: block'
.data = '${a}'
schema-expand-level = "${this.schemaExpandLevel}"
schema-description-expanded = "${this.schemaDescriptionExpanded}"
allow-schema-description-expand-toggle = "${this.allowSchemaDescriptionExpandToggle}"
schema-hide-read-only = "${this.schemaHideReadOnly.includes(this.method)}"
schema-hide-write-only = "${this.schemaHideWriteOnly.includes(this.method)}"
exportparts = "wrap-request-btn:wrap-request-btn, btn:btn, btn-fill:btn-fill, btn-outline:btn-outline, btn-try:btn-try, btn-clear:btn-clear, btn-clear-resp:btn-clear-resp,
file-input:file-input, textbox:textbox, textbox-param:textbox-param, textarea:textarea, textarea-param:textarea-param,
anchor:anchor, anchor-param-example:anchor-param-example"
> </schema-tree>
</div>`}
</div>`:z`
<input type="${"password"===o.format?"password":"text"}" spellcheck="false" style="width:100%"
class="request-param"
part="textbox textbox-param"
data-ptype="${e}"
data-pname="${r.name}"
data-example="${Array.isArray(u.exampleVal)?u.exampleVal.join("~|~"):u.exampleVal}"
data-param-allow-reserved = "${p}"
data-x-fill-example = "${r["x-fill-example"]||"yes"}"
data-array="false"
.value="${"no"===r["x-fill-example"]?"":PW("true"===this.fillRequestFieldsWithExample?u.exampleVal:"")}"
@input=${e=>{const t=this.getRequestPanel(e);this.liveCURLSyntaxUpdate(t)}}
/>`}
</td>`:""}
${o.default||o.constrain||o.allowedValues||o.pattern?z`
<td colspan="${"true"===this.allowTry?"1":"2"}">
<div class="param-constraint">
${o.default?z`<span style="font-weight:bold">Default: </span>${o.default}<br/>`:""}
${o.pattern?z`<span style="font-weight:bold">Pattern: </span>${o.pattern}<br/>`:""}
${o.constrain?z`${o.constrain}<br/>`:""}
${o.allowedValues&&o.allowedValues.split("┃").map(((e,t)=>z`
${t>0?"┃":z`<span style="font-weight:bold">Allowed: </span>`}
${z`
<a part="anchor anchor-param-constraint" class = "${"true"===this.allowTry?"":"inactive-link"}"
data-type="${"array"===o.type?o.type:"string"}"
data-enum="${e.trim()}"
@click="${e=>{const t=e.target.closest("table").querySelector(`[data-pname="${r.name}"]`);t&&("array"===e.target.dataset.type?t.value=[e.target.dataset.enum]:t.value=e.target.dataset.enum)}}"
>${e}</a>`}`))}
</div>
</td>`:z`<td></td>`}
</tr>
<tr>
${"true"===this.allowTry?z`<td style="border:none"> </td>`:""}
<td colspan="2" style="border:none">
<span class="m-markdown-small">${sW(Je(r.description||""))}</span>
${this.exampleListTemplate.call(this,r.name,o.type,u.exampleList)}
</td>
</tr>
`)}return z`
<div class="table-title top-gap">${r}</div>
<div style="display:block; overflow-x:auto; max-width:100%;">
<table role="presentation" class="m-table" style="width:100%; word-break:break-word;">
${n}
</table>
</div>`}async beforeNavigationFocusedMode(){}async afterNavigationFocusedMode(){this.selectedRequestBodyType="",this.selectedRequestBodyExample="",this.updateExamplesFromDataAttr(),this.clearResponseData()}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.innerText;const r=this.getRequestPanel({target:e});this.liveCURLSyntaxUpdate(r)}),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.innerText}}),0,t)}requestBodyTemplate(){if(!this.request_body)return"";if(0===Object.keys(this.request_body).length)return"";let e="",t="",r="",n="",s="";const i=[],{content:o}=this.request_body;for(const e in o)i.push({mimeType:e,schema:o[e].schema,example:o[e].example,examples:o[e].examples}),this.selectedRequestBodyType||(this.selectedRequestBodyType=e);return e=1===i.length?"":z`
<select style="min-width:100px; max-width:100%; margin-bottom:-1px;" @change = '${e=>this.onMimeTypeChange(e)}'>
${i.map((e=>z`
<option value = '${e.mimeType}' ?selected = '${e.mimeType===this.selectedRequestBodyType}'>
${e.mimeType}
</option> `))}
</select>
`,i.forEach((e=>{let i,o=[];if(this.selectedRequestBodyType.includes("json")||this.selectedRequestBodyType.includes("xml")||this.selectedRequestBodyType.includes("text")||this.selectedRequestBodyType.includes("jose"))e.mimeType===this.selectedRequestBodyType&&(o=WW(e.schema,e.mimeType,e.examples,e.example,"true"===this.callback||"true"===this.webhook,"true"!==this.callback&&"true"!==this.webhook,"text",!1),this.selectedRequestBodyExample||(this.selectedRequestBodyExample=o.length>0?o[0].exampleId:""),s=z`
${s}
<div class = 'example-panel border-top pad-top-8'>
${1===o.length?"":z`
<select style="min-width:100px; max-width:100%; margin-bottom:-1px;" @change='${e=>this.onSelectExample(e)}'>
${o.map((e=>z`<option value="${e.exampleId}" ?selected=${e.exampleId===this.selectedRequestBodyExample} >
${e.exampleSummary.length>80?e.exampleId:e.exampleSummary?e.exampleSummary:e.exampleId}
</option>`))}
</select>
`}
${o.filter((e=>e.exampleId===this.selectedRequestBodyExample)).map((t=>z`
<div class="example ${t.exampleId===this.selectedRequestBodyExample?"example-selected":""}" data-example = '${t.exampleId}'>
${t.exampleSummary&&t.exampleSummary.length>80?z`<div style="padding: 4px 0"> ${t.exampleSummary} </div>`:""}
${t.exampleDescription?z`<div class="m-markdown-small" style="padding: 4px 0"> ${sW(Je(t.exampleDescription||""))} </div>`:""}
<!-- This pre(hidden) is to store the original example value, this will remain unchanged when users switches from one example to another, its is used to populate the editable textarea -->
<pre
class = "textarea is-hidden request-body-param ${e.mimeType.substring(e.mimeType.indexOf("/")+1)}"
spellcheck = "false"
data-ptype = "${e.mimeType}"
style="width:100%; resize:vertical; display:none"
>${"text"===t.exampleFormat?t.exampleValue:JSON.stringify(t.exampleValue,null,2)}</pre>
<!-- this textarea is for user to edit the example -->
<textarea
class = "textarea request-body-param-user-input"
part = "textarea textarea-param"
spellcheck = "false"
data-ptype = "${e.mimeType}"
data-example = "${"text"===t.exampleFormat?t.exampleValue:JSON.stringify(t.exampleValue,null,2)}"
data-example-format = "${t.exampleFormat}"
style="width:100%; resize:vertical;"
.textContent = "${"true"===this.fillRequestFieldsWithExample?"text"===t.exampleFormat?t.exampleValue:JSON.stringify(t.exampleValue,null,2):""}"
@input=${e=>{const t=this.getRequestPanel(e);this.liveCURLSyntaxUpdate(t)}}
></textarea>
</div>
`))}
</div>
`);else if(this.selectedRequestBodyType.includes("form-urlencoded")||this.selectedRequestBodyType.includes("form-data")){if(e.mimeType===this.selectedRequestBodyType){const t=WW(e.schema,e.mimeType,e.examples,e.example,"true"===this.callback||"true"===this.webhook,"true"!==this.callback&&"true"!==this.webhook,"text",!1);e.schema&&(r=this.formDataTemplate(e.schema,e.mimeType,t[0]?t[0].exampleValue:""))}}else/^audio\/|^image\/|^video\/|^font\/|tar$|zip$|7z$|rtf$|msword$|excel$|\/pdf$|\/octet-stream$/.test(this.selectedRequestBodyType)&&e.mimeType===this.selectedRequestBodyType&&(t=z`
<div class = "small-font-size bold-text row">
<input type="file" part="file-input" style="max-width:100%" class="request-body-param-file" data-ptype="${e.mimeType}" spellcheck="false" />
</div>
`);(e.mimeType.includes("json")||e.mimeType.includes("xml")||e.mimeType.includes("text")||this.selectedRequestBodyType.includes("jose"))&&(i=VW(e.schema,{}),"table"===this.schemaStyle?n=z`
${n}
<schema-table
class = '${e.mimeType.substring(e.mimeType.indexOf("/")+1)}'
style = 'display: ${this.selectedRequestBodyType===e.mimeType?"block":"none"};'
.data = '${i}'
schema-expand-level = "${this.schemaExpandLevel}"
schema-description-expanded = "${this.schemaDescriptionExpanded}"
allow-schema-description-expand-toggle = "${this.allowSchemaDescriptionExpandToggle}"
schema-hide-read-only = "${this.schemaHideReadOnly}"
schema-hide-write-only = "${this.schemaHideWriteOnly}"
exportparts = "schema-description:schema-description, schema-multiline-toggle:schema-multiline-toggle"
> </schema-table>
`:"tree"===this.schemaStyle&&(n=z`
${n}
<schema-tree
class = "${e.mimeType.substring(e.mimeType.indexOf("/")+1)}"
style = "display: ${this.selectedRequestBodyType===e.mimeType?"block":"none"};"
.data = "${i}"
schema-expand-level = "${this.schemaExpandLevel}"
schema-description-expanded = "${this.schemaDescriptionExpanded}"
allow-schema-description-expand-toggle = "${this.allowSchemaDescriptionExpandToggle}"
schema-hide-read-only = "${this.schemaHideReadOnly}"
schema-hide-write-only = "${this.schemaHideWriteOnly}"
exportparts = "schema-description:schema-description, schema-multiline-toggle:schema-multiline-toggle"
> </schema-tree>
`))})),z`
<div class='request-body-container' data-selected-request-body-type="${this.selectedRequestBodyType}">
<div class="table-title top-gap row">
REQUEST BODY ${this.request_body.required?z`<span class="mono-font" style='color:var(--red)'>*</span>`:""}
<span style = "font-weight:normal; margin-left:5px"> ${this.selectedRequestBodyType}</span>
<span style="flex:1"></span>
${e}
</div>
${this.request_body.description?z`<div class="m-markdown" style="margin-bottom:12px">${sW(Je(this.request_body.description))}</div>`:""}
${this.selectedRequestBodyType.includes("json")||this.selectedRequestBodyType.includes("xml")||this.selectedRequestBodyType.includes("text")||this.selectedRequestBodyType.includes("jose")?z`
<div class="tab-panel col" style="border-width:0 0 1px 0;">
<div class="tab-buttons row" @click="${e=>{"button"===e.target.tagName.toLowerCase()&&(this.activeSchemaTab=e.target.dataset.tab)}}">
<button class="tab-btn ${"example"===this.activeSchemaTab?"active":""}" data-tab = 'example'>EXAMPLE</button>
<button class="tab-btn ${"example"!==this.activeSchemaTab?"active":""}" data-tab = 'schema'>SCHEMA</button>
</div>
${z`<div class="tab-content col" style="display:${"example"===this.activeSchemaTab?"block":"none"};"> ${s}</div>`}
${z`<div class="tab-content col" style="display:${"example"===this.activeSchemaTab?"none":"block"};"> ${n}</div>`}
</div>`:z`
${t}
${r}`}
</div>
`}formDataParamAsObjectTemplate(e,t,r){var n;const s=VW(t,{}),i=WW(t,"json",t.examples,t.example,"true"===this.callback||"true"===this.webhook,"true"!==this.callback&&"true"!==this.webhook,"text",!1);return z`
<div class="tab-panel row" style="min-height:220px; border-left: 6px solid var(--light-border-color); align-items: stretch;">
<div style="width:24px; background-color:var(--light-border-color)">
<div class="row" style="flex-direction:row-reverse; width:160px; height:24px; transform:rotate(270deg) translateX(-160px); transform-origin:top left; display:block;" @click="${e=>{if(e.target.classList.contains("v-tab-btn")){const{tab:t}=e.target.dataset;if(t){const r=e.target.closest(".tab-panel"),n=r.querySelector(`.v-tab-btn[data-tab="${t}"]`),s=[...r.querySelectorAll(`.v-tab-btn:not([data-tab="${t}"])`)],i=r.querySelector(`.tab-content[data-tab="${t}"]`),o=[...r.querySelectorAll(`.tab-content:not([data-tab="${t}"])`)];n.classList.add("active"),i.style.display="block",s.forEach((e=>{e.classList.remove("active")})),o.forEach((e=>{e.style.display="none"}))}}"button"===e.target.tagName.toLowerCase()&&(this.activeSchemaTab=e.target.dataset.tab)}}">
<button class="v-tab-btn ${"example"===this.activeSchemaTab?"active":""}" data-tab = 'example'>EXAMPLE</button>
<button class="v-tab-btn ${"example"!==this.activeSchemaTab?"active":""}" data-tab = 'schema'>SCHEMA</button>
</div>
</div>
${z`
<div class="tab-content col" data-tab = 'example' style="display:${"example"===this.activeSchemaTab?"block":"none"}; padding-left:5px; width:100%">
<textarea
class = "textarea"
part = "textarea textarea-param"
style = "width:100%; border:none; resize:vertical;"
data-array = "false"
data-ptype = "${r.includes("form-urlencode")?"form-urlencode":"form-data"}"
data-pname = "${e}"
data-example = "${(null===(n=i[0])||void 0===n?void 0:n.exampleValue)||""}"
.textContent = "${"true"===this.fillRequestFieldsWithExample?i[0].exampleValue:""}"
spellcheck = "false"
></textarea>
</div>`}
${z`
<div class="tab-content col" data-tab = 'schema' style="display:${"example"!==this.activeSchemaTab?"block":"none"}; padding-left:5px; width:100%;">
<schema-tree
.data = '${s}'
schema-expand-level = "${this.schemaExpandLevel}"
schema-description-expanded = "${this.schemaDescriptionExpanded}"
allow-schema-description-expand-toggle = "${this.allowSchemaDescriptionExpandToggle}",
> </schema-tree>
</div>`}
</div>
`}formDataTemplate(e,t,r=""){const n=[];if(e.properties){for(const r in e.properties){var s,i;const o=e.properties[r];if(o.readOnly)continue;const a=o.examples||o.example||"",l=o.type,c=_W(o),p="read focused".includes(this.renderStyle)?"200px":"160px",u=DW(c.examples||c.example,c.type);n.push(z`
<tr title="${o.deprecated?"Deprecated":""}">
<td style="width:${p}; min-width:100px;">
<div class="param-name ${o.deprecated?"deprecated":""}">
${r}${null!==(s=e.required)&&void 0!==s&&s.includes(r)||o.required?z`<span style='color:var(--red);'>*</span>`:""}
</div>
<div class="param-type">${c.type}</div>
</td>
<td
style="${"object"===l?"width:100%; padding:0;":"true"===this.allowTry?"":"display:none;"} min-width:100px;"
colspan="${"object"===l?2:1}">
${"array"===l?"binary"===(null===(i=o.items)||void 0===i?void 0:i.format)?z`
<div class="file-input-container col" style='align-items:flex-end;' @click="${e=>this.onAddRemoveFileInput(e,r,t)}">
<div class='input-set row'>
<input
type = "file"
part = "file-input"
style = "width:100%"
data-pname = "${r}"
data-ptype = "${t.includes("form-urlencode")?"form-urlencode":"form-data"}"
data-array = "false"
data-file-array = "true"
/>
<button class="file-input-remove-btn"> &#x2715; </button>
</div>
<button class="m-btn primary file-input-add-btn" part="btn btn-fill" style="margin:2px 25px 0 0; padding:2px 6px;">ADD</button>
</div>
`:z`
<tag-input
style = "width:100%"
data-ptype = "${t.includes("form-urlencode")?"form-urlencode":"form-data"}"
data-pname = "${r}"
data-example = "${Array.isArray(a)?a.join("~|~"):a}"
data-array = "true"
placeholder = "add-multiple &#x21a9;"
.value = "${Array.isArray(a)?Array.isArray(a[0])?a[0]:[a[0]]:[a]}"
>
</tag-input>
`:z`
${"object"===l?this.formDataParamAsObjectTemplate.call(this,r,o,t):z`
${"true"===this.allowTry?z`<input
.value = "${"true"===this.fillRequestFieldsWithExample?u.exampleVal:""}"
spellcheck = "false"
type = "${"binary"===o.format?"file":"password"===o.format?"password":"text"}"
part = "textbox textbox-param"
style = "width:100%"
data-ptype = "${t.includes("form-urlencode")?"form-urlencode":"form-data"}"
data-pname = "${r}"
data-example = "${Array.isArray(a)?a[0]:a}"
data-array = "false"
/>`:""}
`}`}
</td>
${"object"===l?"":z`
<td>
${c.default||c.constrain||c.allowedValues||c.pattern?z`
<div class="param-constraint">
${c.default?z`<span style="font-weight:bold">Default: </span>${c.default}<br/>`:""}
${c.pattern?z`<span style="font-weight:bold">Pattern: </span>${c.pattern}<br/>`:""}
${c.constrain?z`${c.constrain}<br/>`:""}
${c.allowedValues&&c.allowedValues.split("┃").map(((e,t)=>z`
${t>0?"┃":z`<span style="font-weight:bold">Allowed: </span>`}
${z`
<a part="anchor anchor-param-constraint" class = "${"true"===this.allowTry?"":"inactive-link"}"
data-type="${"array"===c.type?c.type:"string"}"
data-enum="${e.trim()}"
@click="${e=>{const t=e.target.closest("table").querySelector(`[data-pname="${r}"]`);t&&("array"===e.target.dataset.type?t.value=[e.target.dataset.enum]:t.value=e.target.dataset.enum)}}"
>
${e}
</a>`}`))}
</div>`:""}
</td>`}
</tr>
${"object"===l?"":z`
<tr>
<td style="border:none"> </td>
<td colspan="2" style="border:none; margin-top:0; padding:0 5px 8px 5px;">
<span class="m-markdown-small">${sW(Je(o.description||""))}</span>
${this.exampleListTemplate.call(this,r,c.type,u.exampleList)}
</td>
</tr>
`}`)}return z`
<table role="presentation" style="width:100%;" class="m-table">
${n}
</table>
`}return z`
<textarea
class = "textarea dynamic-form-param ${t}"
part = "textarea textarea-param"
spellcheck = "false"
data-pname="dynamic-form"
data-ptype="${t}"
.textContent = "${r}"
style="width:100%"
></textarea>
${e.description?z`<span class="m-markdown-small">${sW(Je(e.description))}</span>`:""}
`}curlSyntaxTemplate(e="flex"){return z`
<div class="col m-markdown" style="flex:1; display:${e}; position:relative; max-width: 100%;">
<button class="toolbar-btn" style = "position:absolute; top:12px; right:8px" @click='${e=>{pt(this.curlSyntax.replace(/\\$/,""),e)}}' part="btn btn-fill"> Copy </button>
<pre style="white-space:pre"><code>${sW(Ye().highlight(this.curlSyntax.trim().replace(/\\$/,""),Ye().languages.shell,"shell"))}</code></pre>
</div>
`}apiResponseTabTemplate(){let e="",t="";if(!this.responseIsBlob)if(this.responseHeaders.includes("application/x-ndjson")){e="json";const r=this.responseText.split("\n").map((t=>Ye().highlight(t,Ye().languages[e],e))).join("\n");t=z`<code>${sW(r)}</code>`}else this.responseHeaders.includes("json")?(e="json",t=z`<code>${sW(Ye().highlight(this.responseText,Ye().languages[e],e))}</code>`):this.responseHeaders.includes("html")||this.responseHeaders.includes("xml")?(e="html",t=z`<code>${sW(Ye().highlight(this.responseText,Ye().languages[e],e))}</code>`):(e="text",t=z`<code>${this.responseText}</code>`);return z`
<div class="row" style="font-size:var(--font-size-small); margin:5px 0">
<div class="response-message ${this.responseStatus}">Response Status: ${this.responseMessage}</div>
<div style="flex:1"></div>
<button class="m-btn" part="btn btn-outline btn-clear-response" @click="${this.clearResponseData}">CLEAR RESPONSE</button>
</div>
<div class="tab-panel col" style="border-width:0 0 1px 0;">
<div id="tab_buttons" class="tab-buttons row" @click="${e=>{!1!==e.target.classList.contains("tab-btn")&&(this.activeResponseTab=e.target.dataset.tab)}}">
<button class="tab-btn ${"response"===this.activeResponseTab?"active":""}" data-tab = 'response' > RESPONSE</button>
<button class="tab-btn ${"headers"===this.activeResponseTab?"active":""}" data-tab = 'headers' > RESPONSE HEADERS</button>
${"true"===this.showCurlBeforeTry?"":z`<button class="tab-btn ${"curl"===this.activeResponseTab?"active":""}" data-tab = 'curl'>CURL</button>`}
</div>
${this.responseIsBlob?z`
<div class="tab-content col" style="flex:1; display:${"response"===this.activeResponseTab?"flex":"none"};">
<button class="m-btn thin-border mar-top-8" style="width:135px" @click='${e=>{ht(this.responseBlobUrl,this.respContentDisposition)}}' part="btn btn-outline">
DOWNLOAD
</button>
${"view"===this.responseBlobType?z`<button class="m-btn thin-border mar-top-8" style="width:135px" @click='${e=>{ft(this.responseBlobUrl)}}' part="btn btn-outline">VIEW (NEW TAB)</button>`:""}
</div>`:z`
<div class="tab-content col m-markdown" style="flex:1; display:${"response"===this.activeResponseTab?"flex":"none"};" >
<button class="toolbar-btn" style="position:absolute; top:12px; right:8px" @click='${e=>{pt(this.responseText,e)}}' part="btn btn-fill"> Copy </button>
<pre style="white-space:pre; min-height:50px; height:var(--resp-area-height, 400px); resize:vertical; overflow:auto">${t}</pre>
</div>`}
<div class="tab-content col m-markdown" style="flex:1; display:${"headers"===this.activeResponseTab?"flex":"none"};" >
<button class="toolbar-btn" style = "position:absolute; top:12px; right:8px" @click='${e=>{pt(this.responseHeaders,e)}}' part="btn btn-fill"> Copy </button>
<pre style="white-space:pre"><code>${sW(Ye().highlight(this.responseHeaders,Ye().languages.css,"css"))}</code></pre>
</div>
${"true"===this.showCurlBeforeTry?"":this.curlSyntaxTemplate("curl"===this.activeResponseTab?"flex":"none")}
</div>`}apiCallTemplate(){var e,t;let r="";this.servers&&this.servers.length>0&&(r=z`
<select style="min-width:100px;" @change='${e=>{this.serverUrl=e.target.value}}'>
${this.servers.map((e=>z`<option value = "${e.url}"> ${e.url} - ${e.description} </option>`))}
</select>
`);const n=z`
<div style="display:flex; flex-direction:column;">
${r}
${this.serverUrl?z`
<div style="display:flex; align-items:baseline;">
<div style="font-weight:bold; padding-right:5px;">API Server</div>
<span class = "gray-text"> ${this.serverUrl} </span>
</div>
`:""}
</div>
`;return z`
<div style="display:flex; align-items:flex-end; margin:16px 0; font-size:var(--font-size-small);" part="wrap-request-btn">
<div class="hide-in-small-screen" style="flex-direction:column; margin:0; width:calc(100% - 60px);">
<div style="display:flex; flex-direction:row; align-items:center; overflow:hidden;">
${n}
</div>
<div style="display:flex;">
<div style="font-weight:bold; padding-right:5px;">Authentication</div>
${(null===(e=this.security)||void 0===e?void 0:e.length)>0?z`
${this.api_keys.length>0?z`<div style="color:var(--blue); overflow:hidden;">
${1===this.api_keys.length?`${null===(t=this.api_keys[0])||void 0===t?void 0:t.typeDisplay} in ${this.api_keys[0].in}`:`${this.api_keys.length} API keys applied`}
</div>`:z`<div class="gray-text">Required <span style="color:var(--red)">(None Applied)</span>`}`:z`<span class="gray-text"> Not Required </span>`}
</div>
</div>
${this.parameters.length>0||this.request_body?z`
<button class="m-btn thin-border" part="btn btn-outline btn-fill" style="margin-right:5px;" @click="${this.onFillRequestData}" title="Fills with example data (if provided)">
FILL EXAMPLE
</button>
<button class="m-btn thin-border" part="btn btn-outline btn-clear" style="margin-right:5px;" @click="${this.onClearRequestData}">
CLEAR
</button>`:""}
<button class="m-btn primary thin-border" part="btn btn-try" @click="${this.onTryClick}">TRY</button>
</div>
<div class="row" style="font-size:var(--font-size-small); margin:5px 0">
${"true"===this.showCurlBeforeTry?this.curlSyntaxTemplate():""}
</div>
${""===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=""}))}buildFetchURL(e){let t;const r=[...e.querySelectorAll("[data-ptype='path']")],n=[...e.querySelectorAll("[data-ptype='query']")],s=[...e.querySelectorAll("[data-ptype='query-object']")];t=this.path,r.map((e=>{t=t.replace(`{${e.dataset.pname}}`,encodeURIComponent(e.value))}));const i=new Map,o=[];n.length>0&&n.forEach((e=>{const t=new URLSearchParams;if("true"===e.dataset.paramAllowReserved&&o.push(e.dataset.pname),"false"===e.dataset.array)""!==e.value&&t.append(e.dataset.pname,e.value);else{const{paramSerializeStyle:r,paramSerializeExplode:n}=e.dataset;let s=e.value&&Array.isArray(e.value)?e.value:[];s=Array.isArray(s)?s.filter((e=>""!==e)):[],s.length>0&&("spaceDelimited"===r?t.append(e.dataset.pname,s.join(" ").replace(/^\s|\s$/g,"")):"pipeDelimited"===r?t.append(e.dataset.pname,s.join("|").replace(/^\||\|$/g,"")):"true"===n?s.forEach((r=>{t.append(e.dataset.pname,r)})):t.append(e.dataset.pname,s.join(",").replace(/^,|,$/g,"")))}t.toString()&&i.set(e.dataset.pname,t)})),s.length>0&&s.map((e=>{const t=new URLSearchParams;try{let r={};const{paramSerializeStyle:n,paramSerializeExplode:s,pname:i}=e.dataset;if(r=Object.assign(r,JSON.parse(e.value.replace(/\s+/g," "))),"true"===e.dataset.paramAllowReserved&&o.push(e.dataset.pname),"json xml".includes(n))"json"===n?t.append(e.dataset.pname,JSON.stringify(r)):"xml"===n&&t.append(e.dataset.pname,qW(r));else for(const e in r){const o=`${i}[${e}]`;"object"==typeof r[e]?Array.isArray(r[e])&&("spaceDelimited"===n?t.append(o,r[e].join(" ")):"pipeDelimited"===n?t.append(o,r[e].join("|")):"true"===s?r[e].forEach((e=>{t.append(o,e)})):t.append(o,r[e])):t.append(o,r[e])}}catch(t){console.error("RapiDoc: unable to parse %s into object",e.value)}t.toString()&&i.set(e.dataset.pname,t)}));let a="";return i.size&&(i.forEach(((e,t)=>{o.includes(t)?(a+=`${t}=`,a+=e.getAll(t).join(`&${t}=`),a+="&"):a+=`${e.toString()}&`})),a=a.slice(0,-1)),0!==a.length&&(t=`${t}${t.includes("?")?"&":"?"}${a}`),this.api_keys.filter((e=>"query"===e.in)).forEach((e=>{t=`${t}${t.includes("?")?"&":"?"}${e.name}=${encodeURIComponent(e.finalKeyValue)}`})),t=`${this.serverUrl.replace(/\/$/,"")}${t}`,t}buildFetchHeaders(e){var t;const r=null===(t=this.closest(".expanded-req-resp-container, .req-resp-container"))||void 0===t?void 0:t.getElementsByTagName("api-response")[0],n=[...e.querySelectorAll("[data-ptype='header']")],s=e.querySelector(".request-body-container"),i=null==r?void 0:r.selectedMimeType,o=new Headers;if(i?o.append("Accept",i):this.accept&&o.append("Accept",this.accept),this.api_keys.filter((e=>"header"===e.in)).forEach((e=>{o.append(e.name,e.finalKeyValue)})),n.map((e=>{e.value&&o.append(e.dataset.pname,e.value)})),s){const e=s.dataset.selectedRequestBodyType;e.includes("form-data")||o.append("Content-Type",e)}return o}buildFetchBodyOptions(e){const t=e.querySelector(".request-body-container"),r={method:this.method.toUpperCase()};if(t){const n=t.dataset.selectedRequestBodyType;if(n.includes("form-urlencoded")){const t=e.querySelector("[data-ptype='dynamic-form']");if(t){const e=t.value,n=new URLSearchParams;let s,i=!0;if(e)try{s=JSON.parse(e)}catch(e){i=!1,console.warn("RapiDoc: Invalid JSON provided",e)}else i=!1;if(i){for(const e in s)n.append(e,JSON.stringify(s[e]));r.body=n}}else{const t=[...e.querySelectorAll("[data-ptype='form-urlencode']")],n=new URLSearchParams;t.filter((e=>"file"!==e.type)).forEach((e=>{if("false"===e.dataset.array)e.value&&n.append(e.dataset.pname,e.value);else{const t=e.value&&Array.isArray(e.value)?e.value.join(","):"";n.append(e.dataset.pname,t)}})),r.body=n}}else if(n.includes("form-data")){const t=new FormData;[...e.querySelectorAll("[data-ptype='form-data']")].forEach((e=>{"false"===e.dataset.array?"file"===e.type&&e.files[0]?t.append(e.dataset.pname,e.files[0],e.files[0].name):e.value&&t.append(e.dataset.pname,e.value):e.value&&Array.isArray(e.value)&&t.append(e.dataset.pname,e.value.join(","))})),r.body=t}else if(/^audio\/|^image\/|^video\/|^font\/|tar$|zip$|7z$|rtf$|msword$|excel$|\/pdf$|\/octet-stream$/.test(n)){const t=e.querySelector(".request-body-param-file");null!=t&&t.files[0]&&(r.body=t.files[0])}else if(n.includes("json")||n.includes("xml")||n.includes("text")){const t=e.querySelector(".request-body-param-user-input");null!=t&&t.value&&(r.body=t.value)}}return r}async onTryClick(e){const t=e.target,r=t.closest(".request-panel"),n=this.buildFetchURL(r),s=this.buildFetchBodyOptions(r),i=this.buildFetchHeaders(r);this.responseUrl="",this.responseHeaders=[],this.curlSyntax=this.generateCURLSyntax(n,i,s,r),this.responseStatus="success",this.responseIsBlob=!1,this.respContentDisposition="",this.responseBlobUrl&&(URL.revokeObjectURL(this.responseBlobUrl),this.responseBlobUrl=""),this.fetchCredentials&&(s.credentials=this.fetchCredentials);const o=new AbortController,{signal:a}=o;s.headers=i;const l={url:n,...s};this.dispatchEvent(new CustomEvent("before-try",{bubbles:!0,composed:!0,detail:{request:l,controller:o}}));const c={method:l.method,headers:l.headers,credentials:l.credentials,body:l.body},p=new Request(l.url,c);let u,d;try{let e,r,n;t.disabled=!0,this.responseText="⌛",this.responseMessage="",this.requestUpdate();const s=performance.now();u=await fetch(p,{signal:a});const i=performance.now();d=u.clone(),t.disabled=!1,this.responseMessage=z`${u.statusText?`${u.statusText}:${u.status}`:u.status} <div style="color:var(--light-fg)"> Took ${Math.round(i-s)} milliseconds </div>`,this.responseUrl=u.url;const o={};u.headers.forEach(((e,t)=>{o[t]=e,this.responseHeaders=`${this.responseHeaders}${t}: ${e}\n`}));const l=u.headers.get("content-type");if(0===(await u.clone().text()).length)this.responseText="";else if(l){if("application/x-ndjson"===l)this.responseText=await u.text();else if(l.includes("json"))if(/charset=[^"']+/.test(l)){const e=l.split("charset=")[1],t=await u.arrayBuffer();try{n=new TextDecoder(e).decode(t)}catch{n=new TextDecoder("utf-8").decode(t)}try{r=JSON.parse(n),this.responseText=JSON.stringify(r,null,2)}catch{this.responseText=n}}else r=await u.json(),this.responseText=JSON.stringify(r,null,2);else/^font\/|tar$|zip$|7z$|rtf$|msword$|excel$|\/pdf$|\/octet-stream$|^application\/vnd\./.test(l)?(this.responseIsBlob=!0,this.responseBlobType="download"):/^audio|^image|^video/.test(l)?(this.responseIsBlob=!0,this.responseBlobType="view"):(n=await u.text(),l.includes("xml")?this.responseText=CW()(n,{textNodesOnSameLine:!0,indentor:" "}):this.responseText=n);if(this.responseIsBlob){const t=u.headers.get("content-disposition");this.respContentDisposition=t?t.split("filename=")[1].replace(/"|'/g,""):"filename",e=await u.blob(),this.responseBlobUrl=URL.createObjectURL(e)}}else n=await u.text(),this.responseText=n;this.dispatchEvent(new CustomEvent("after-try",{bubbles:!0,composed:!0,detail:{request:p,response:d,responseHeaders:o,responseBody:r||n||e,responseStatus:d.ok}}))}catch(e){t.disabled=!1,"AbortError"===e.name?(this.dispatchEvent(new CustomEvent("request-aborted",{bubbles:!0,composed:!0,detail:{err:e,request:p}})),this.responseMessage="Request Aborted",this.responseText="Request Aborted"):(this.dispatchEvent(new CustomEvent("after-try",{bubbles:!0,composed:!0,detail:{err:e,request:p}})),this.responseMessage=`${e.message} (CORS or Network Issue)`)}this.requestUpdate()}liveCURLSyntaxUpdate(e){this.applyCURLSyntax(e),this.requestUpdate()}onGenerateCURLClick(e){const t=this.getRequestPanel(e);this.applyCURLSyntax(t)}getRequestPanel(e){return e.target.closest(".request-panel")}applyCURLSyntax(e){const t=this.buildFetchURL(e),r=this.buildFetchBodyOptions(e),n=this.buildFetchHeaders(e);this.curlSyntax=this.generateCURLSyntax(t,n,r,e)}generateCURLSyntax(e,t,r,n){let s,i="",o="",a="",l="";const c=n.querySelector(".request-body-container");if(!1===e.startsWith("http")){s=new URL(e,window.location.href).href}else s=e;if(i=`curl -X ${this.method.toUpperCase()} "${s}" \\\n`,o=Array.from(t).map((([e,t])=>` -H "${e}: ${t}"`)).join("\\\n"),o&&(o=`${o} \\\n`),r.body instanceof URLSearchParams)a=` -d ${r.body.toString()} \\\n`;else if(r.body instanceof File)a=` --data-binary @${r.body.name} \\\n`;else if(r.body instanceof FormData)l=Array.from(r.body).reduce(((e,[t,r])=>{if(r instanceof File)return[...e,` -F "${t}=@${r.name}"`];const n=r.match(/([^,],)/gm);if(n){const r=n.map((e=>`-F "${t}[]=${e}"`));return[...e,...r]}return[...e,` -F "${t}=${r}"`]}),[]).join("\\\n");else if(c&&c.dataset.selectedRequestBodyType){const e=c.dataset.selectedRequestBodyType,t=n.querySelector(".request-body-param-user-input");if(null!=t&&t.value){if(r.body=t.value,e.includes("json"))try{a=` -d '${JSON.stringify(JSON.parse(t.value))}' \\\n`}catch(e){}a||(a=` -d '${t.value.replace(/'/g,"'\"'\"'")}' \\\n`)}}return`${i}${o}${a}${l}`}onAddRemoveFileInput(e,t,r){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 n=e.target.closest(".file-input-container"),s=document.createElement("div");s.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",r.includes("form-urlencode")?"form-urlencode":"form-data"),i.setAttribute("data-array","false"),i.setAttribute("data-file-array","true");const o=document.createElement("button");o.setAttribute("class","file-input-remove-btn"),o.innerHTML="&#x2715;",s.appendChild(i),s.appendChild(o),n.insertBefore(s,e.target)}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.curlSyntax="",this.responseBlobUrl&&(URL.revokeObjectURL(this.responseBlobUrl),this.responseBlobUrl=""),super.disconnectedCallback()}});customElements.define("schema-table",class extends ce{static get properties(){return{schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},allowSchemaDescriptionExpandToggle:{type:String,attribute:"allow-schema-description-expand-toggle"},schemaHideReadOnly:{type:String,attribute:"schema-hide-read-only"},schemaHideWriteOnly:{type:String,attribute:"schema-hide-write-only"},data:{type:Object}}}connectedCallback(){super.connectedCallback(),(!this.schemaExpandLevel||this.schemaExpandLevel<1)&&(this.schemaExpandLevel=99999),this.schemaDescriptionExpanded&&"true false".includes(this.schemaDescriptionExpanded)||(this.schemaDescriptionExpanded="false"),this.schemaHideReadOnly&&"true false".includes(this.schemaHideReadOnly)||(this.schemaHideReadOnly="true"),this.schemaHideWriteOnly&&"true false".includes(this.schemaHideWriteOnly)||(this.schemaHideWriteOnly="true")}static get styles(){return[Ze,KW,c`
.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 .key-label {
font-size: var(--font-size-mono);
}
.key.deprecated .key-label {
color: var(--red);
}
.table .key-type {
white-space: normal;
width: 150px;
}
.collapsed-all-descr .tr:not(.expanded-descr) {
max-height: calc(var(--font-size-small) + var(--font-size-small));
}
.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;
}`,ot]}render(){var e,t,r;return z`
<div class="table ${"true"===this.schemaDescriptionExpanded?"expanded-all-descr":"collapsed-all-descr"}" @click="${e=>this.handleAllEvents(e)}">
<div class='toolbar'>
<div class="toolbar-item schema-root-type ${(null===(e=this.data)||void 0===e?void 0:e["::type"])||""} "> ${(null===(t=this.data)||void 0===t?void 0:t["::type"])||""} </div>
${"true"===this.allowSchemaDescriptionExpandToggle?z`
<div style="flex:1"></div>
<div part="schema-multiline-toggle" class='toolbar-item schema-multiline-toggle' >
${"true"===this.schemaDescriptionExpanded?"Single line description":"Multiline description"}
</div>
`:""}
</div>
<span part="schema-description" class='m-markdown'> ${sW(Je((null===(r=this.data)||void 0===r?void 0:r["::description"])||""))} </span>
<div style = 'border:1px solid var(--light-border-color)'>
<div style='display:flex; background-color: var(--bg2); padding:8px 4px; border-bottom:1px solid var(--light-border-color);'>
<div class='key' style='font-family:var(--font-regular); font-weight:bold; color:var(--fg);'> Field </div>
<div class='key-type' style='font-family:var(--font-regular); font-weight:bold; color:var(--fg);'> Type </div>
<div class='key-descr' style='font-family:var(--font-regular); font-weight:bold; color:var(--fg);'> Description </div>
</div>
${this.data?z`
${this.generateTree("array"===this.data["::type"]?this.data["::props"]:this.data,this.data["::type"],this.data["::array-type"])}`:""}
</div>
</div>
`}generateTree(e,t="object",r="",n="",s="",i=0,o=0,a=""){var l,c;if("true"===this.schemaHideReadOnly){if("array"===t&&"readonly"===a)return;if(e&&"readonly"===e["::readwrite"])return}if("true"===this.schemaHideWriteOnly){if("array"===t&&"writeonly"===a)return;if(e&&"writeonly"===e["::readwrite"])return}if(!e)return z`<div class="null" style="display:inline;">
<span style='margin-left:${16*(i+1)}px'> &nbsp; </span>
<span class="key-label xxx-of-key"> ${n.replace("::OPTION~","")}</span>
${"array"===t?z`<span class='mono-font'> [ ] </span>`:"object"===t?z`<span class='mono-font'> { } </span>`:z`<span class='mono-font'> schema undefined </span>`}
</div>`;const p=null!==(l=e["::type"])&&void 0!==l&&l.startsWith("xxx-of")?i:i+1,u="xxx-of-option"===t||"xxx-of-option"===e["::type"]||n.startsWith("::OPTION")?o:o+1,d=16*u;if(0===Object.keys(e).length)return z`<span class="td key object" style='padding-left:${d}px'>${n}</span>`;let h="",f="",m=!1;if(n.startsWith("::ONE~OF")||n.startsWith("::ANY~OF"))h=n.replace("::","").replace("~"," "),m=!0;else if(n.startsWith("::OPTION")){const e=n.split("~");h=e[1],f=e[2]}else h=n;let y="";if("object"===e["::type"]?y="array"===t?"array of object":e["::dataTypeLabel"]||e["::type"]:"array"===e["::type"]&&(y="array"===t?"array of array "+("object"!==r?`of ${r}`:""):e["::dataTypeLabel"]||e["::type"]),"object"==typeof e)return z`
${p>=0&&n?z`
<div class='tr ${p<=this.schemaExpandLevel?"expanded":"collapsed"} ${e["::type"]}' data-obj='${h}' title="${e["::deprecated"]?"Deprecated":""}">
<div class="td key ${e["::deprecated"]?"deprecated":""}" style='padding-left:${d}px'>
${h||f?z`
<span class='obj-toggle ${p<this.schemaExpandLevel?"expanded":"collapsed"}' data-obj='${h}'>
${i<this.schemaExpandLevel?"-":"+"}
</span>`:""}
${"xxx-of-option"===e["::type"]||"xxx-of-array"===e["::type"]||n.startsWith("::OPTION")?z`<span class="xxx-of-key" style="margin-left:-6px">${h}</span><span class="${m?"xxx-of-key":"xxx-of-descr"}">${f}</span>`:h.endsWith("*")?z`<span class="key-label" style="display:inline-block; margin-left:-6px;">${e["::deprecated"]?"✗":""} ${h.substring(0,h.length-1)}</span><span style='color:var(--red);'>*</span>`:z`<span class="key-label" style="display:inline-block; margin-left:-6px;">${e["::deprecated"]?"✗":""} ${"::props"===h?"":h}</span>`}
${"xxx-of"===e["::type"]&&"array"===t?z`<span style="color:var(--primary-color)">ARRAY</span>`:""}
</div>
<div class='td key-type' title="${"readonly"===e["::readwrite"]?"Read-Only":"writeonly"===e["::readwrite"]?"Write-Only":""}">
${(e["::type"]||"").includes("xxx-of")?"":y}
${"readonly"===e["::readwrite"]?" 🆁":"writeonly"===e["::readwrite"]?" 🆆":""}
</div>
<div class='td key-descr m-markdown-small' style='line-height:1.7'>${sW(Je(s||""))}</div>
</div>`:z`
${"array"===e["::type"]&&"array"===t?z`
<div class='tr'>
<div class='td key'></div>
<div class='td key-type'>
${r&&"object"!==r?`${t} of ${r}`:t}
</div>
<div class='td key-descr'></div>
</div>`:""}`}
<div class='object-body'>
${Array.isArray(e)&&e[0]?z`${this.generateTree(e[0],"xxx-of-option","","::ARRAY~OF","",p,u,"")}`:z`
${Object.keys(e).map((t=>{var r;return z`
${["::title","::description","::type","::props","::deprecated","::array-type","::readwrite","::dataTypeLabel","::nullable"].includes(t)?"array"===e[t]["::type"]||"object"===e[t]["::type"]?z`${this.generateTree("array"===e[t]["::type"]?e[t]["::props"]:e[t],e[t]["::type"],e[t]["::array-type"]||"",t,e[t]["::description"],p,u,e[t]["::readwrite"]?e[t]["::readwrite"]:"")}`:"":z`${this.generateTree("array"===e[t]["::type"]?e[t]["::props"]:e[t],e[t]["::type"],e[t]["::array-type"]||"",t,(null===(r=e[t])||void 0===r?void 0:r["::description"])||"",p,u,e[t]["::readwrite"]?e[t]["::readwrite"]:"")}`}
`}))}
`}
<div>
`;const[g,v,b,x,w,$,S,E,k]=e.split("~|~");if("🆁"===v&&"true"===this.schemaHideReadOnly)return;if("🆆"===v&&"true"===this.schemaHideWriteOnly)return;const O=g.replace(/┃.*/g,"").replace(/[^a-zA-Z0-9+]/g,"").substring(0,4).toLowerCase(),j=""+(b||x||w||$?'<span class="descr-expand-toggle">➔</span>':"");let A="";return A="array"===t?z`
<div class='td key-type ${O}' title="${"readonly"===a?"Read-Only":"writeonly"===v?"Write-Only":""}">
[${g}] ${"readonly"===a?"🆁":"writeonly"===a?"🆆":""}
</div>`:z`
<div class='td key-type ${O}' title="${"🆁"===v?"Read-Only":"🆆"===v?"Write-Only":""}">
${g} ${v}
</div>`,z`
<div class = "tr primitive" title="${k?"Deprecated":""}">
<div class="td key ${k}" style='padding-left:${d}px'>
${k?z`<span style='color:var(--red);'>✗</span>`:""}
${null!==(c=h)&&void 0!==c&&c.endsWith("*")?z`
<span class="key-label">${h.substring(0,h.length-1)}</span>
<span style='color:var(--red);'>*</span>`:n.startsWith("::OPTION")?z`<span class='xxx-of-key'>${h}</span><span class="xxx-of-descr">${f}</span>`:z`${h?z`<span class="key-label"> ${h}</span>`:z`<span class="xxx-of-descr">${E}</span>`}`}
</div>
${A}
<div class='td key-descr' style='font-size: var(--font-size-small)'>
${z`<span class="m-markdown-small">
${sW(Je("array"===t?`${j} ${s}`:E?`${j} <b>${E}:</b> ${S}`:`${j} ${S}`))}
</span>`}
${b?z`<div class='' style='display:inline-block; line-break:anywhere; margin-right:8px;'> <span class='bold-text'>Constraints: </span> ${b}</div>`:""}
${x?z`<div style='display:inline-block; line-break:anywhere; margin-right:8px;'> <span class='bold-text'>Default: </span>${x}</div>`:""}
${w?z`<div style='display:inline-block; line-break:anywhere; margin-right:8px;'> <span class='bold-text'>${"const"===g?"Value":"Allowed"}: </span>${w}</div>`:""}
${$?z`<div style='display:inline-block; line-break:anywhere; margin-right:8px;'> <span class='bold-text'>Pattern: </span>${$}</div>`:""}
</div>
</div>
`}handleAllEvents(e){if(e.target.classList.contains("obj-toggle"))this.toggleObjectExpand(e);else if(e.target.classList.contains("schema-multiline-toggle"))this.schemaDescriptionExpanded="true"===this.schemaDescriptionExpanded?"false":"true";else if(e.target.classList.contains("descr-expand-toggle")){const t=e.target.closest(".tr");t&&(t.classList.toggle("expanded-descr"),t.style.maxHeight=t.scrollHeight)}}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 YW(e){const t=new Je.Renderer;return t.heading=(t,r,n,s)=>`<h${r} class="observe-me" id="${e}--${s.slug(n)}">${t}</h${r}>`,t}function ZW(e){const t=e.target.closest(".tag-container").querySelector(".tag-description"),r=e.target.closest(".tag-container").querySelector(".tag-icon");if(t&&r){t.classList.contains("expanded")?(t.style.maxHeight=0,t.classList.replace("expanded","collapsed"),r.classList.replace("expanded","collapsed")):(t.style.maxHeight=`${t.scrollHeight}px`,t.classList.replace("collapsed","expanded"),r.classList.replace("collapsed","expanded"))}}function XW(e,t="",r=""){var n,s,i,o,a,l,c,p,u;const d=new Set;for(const t in e.responses)for(const r in null===(h=e.responses[t])||void 0===h?void 0:h.content){var h;d.add(r.trim())}const f=[...d].join(", "),m=this.resolvedSpec.securitySchemes.filter((t=>{var r;return t.finalKeyValue&&(null===(r=e.security)||void 0===r?void 0:r.some((e=>t.securitySchemeId in e)))}))||[],y=this.resolvedSpec.securitySchemes.find((e=>e.securitySchemeId===lt&&"-"!==e.value));y&&m.push(y);const g=e.xCodeSamples?SW.call(this,e.xCodeSamples):"";return z`
${"read"===this.renderStyle?z`<div class='divider' part="operation-divider"></div>`:""}
<div class='expanded-endpoint-body observe-me ${e.method} ${e.deprecated?"deprecated":""} ' part="section-operation ${e.elementId}" id='${e.elementId}'>
${"focused"===this.renderStyle&&"General ⦂"!==t?z`
<div class="tag-container" part="section-operation-tag">
<span class="upper" style="font-weight:bold; font-size:18px;"> ${t} </span>
${r?z`
<svg class="tag-icon collapsed" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" fill="none" style="stroke:var(--primary-color); vertical-align:top; cursor:pointer"
@click="${e=>{ZW.call(this,e)}}"
>
<path d="M12 20h-6a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h8"></path><path d="M18 4v17"></path><path d="M15 18l3 3l3 -3"></path>
</svg>
<div class="tag-description collapsed" style="max-height:0px; overflow:hidden; margin-top:16px; border:1px solid var(--border-color)">
<div class="m-markdown" style="padding:8px"> ${sW(Je(r))}</div>
</div>`:""}
</div>
`:""}
${e.deprecated?z`<div class="bold-text red-text"> DEPRECATED </div>`:""}
${z`
${e.xBadges&&(null===(n=e.xBadges)||void 0===n?void 0:n.length)>0?z`
<div style="display:flex; flex-wrap:wrap; margin-bottom: -24px; font-size: var(--font-size-small);">
${e.xBadges.map((e=>z`<span style="margin:1px; margin-right:5px; padding:1px 8px; font-weight:bold; border-radius:12px; background-color: var(--light-${e.color}, var(--input-bg)); color:var(--${e.color}); border:1px solid var(--${e.color})">${e.label}</span>`))}
</div>
`:""}
<h2 part="section-operation-summary"> ${e.shortSummary||`${e.method.toUpperCase()} ${e.path}`}</h2>
${e.isWebhook?z`<span part="section-operation-webhook" style="color:var(--primary-color); font-weight:bold; font-size: var(--font-size-regular);"> WEBHOOK </span>`:z`
<div part="section-operation-webhook-method" class="mono-font regular-font-size" style="text-align:left; direction:ltr; padding: 8px 0; color:var(--fg3)">
<span part="label-operation-method" class="regular-font upper method-fg bold-text ${e.method}">${e.method}</span>
<span part="label-operation-path">${e.path}</span>
</div>
`}
<slot name="${e.elementId}"></slot>`}
${e.description?z`<div class="m-markdown"> ${sW(Je(e.description))}</div>`:""}
${$W.call(this,e.security)}
${null!==(s=e.externalDocs)&&void 0!==s&&s.url||null!==(i=e.externalDocs)&&void 0!==i&&i.description?z`<div style="background-color:var(--bg3); padding:2px 8px 8px 8px; margin:8px 0; border-radius:var(--border-radius)">
<div class="m-markdown"> ${sW(Je((null===(o=e.externalDocs)||void 0===o?void 0:o.description)||""))} </div>
${null!==(a=e.externalDocs)&&void 0!==a&&a.url?z`<a style="font-family:var(--font-mono); font-size:var(--font-size-small)" href="${null===(l=e.externalDocs)||void 0===l?void 0:l.url}" target="_blank">
${null===(c=e.externalDocs)||void 0===c?void 0:c.url} <div style="transform: rotate(270deg) scale(1.5); display: inline-block; margin-left:5px">⇲</div>
</a>`:""}
</div>`:""}
${g}
<div class='expanded-req-resp-container'>
<api-request
class = "${this.renderStyle}-mode"
style = "width:100%;"
webhook = "${e.isWebhook}"
method = "${e.method}"
path = "${e.path}"
.security = "${e.security}"
.parameters = "${e.parameters}"
.request_body = "${e.requestBody}"
.api_keys = "${m}"
.servers = "${e.servers}"
server-url = "${(null===(p=e.servers)||void 0===p||null===(u=p[0])||void 0===u?void 0:u.url)||this.selectedServer.computedUrl}"
fill-request-fields-with-example = "${this.fillRequestFieldsWithExample}"
allow-try = "${this.allowTry}"
show-curl-before-try = "${this.showCurlBeforeTry}"
accept = "${f}"
render-style="${this.renderStyle}"
schema-style = "${this.schemaStyle}"
active-schema-tab = "${this.defaultSchemaTab}"
schema-expand-level = "${this.schemaExpandLevel}"
schema-description-expanded = "${this.schemaDescriptionExpanded}"
allow-schema-description-expand-toggle = "${this.allowSchemaDescriptionExpandToggle}"
schema-hide-read-only = "${"never"===this.schemaHideReadOnly||e.isWebhook?"false":"true"}"
schema-hide-write-only = "${"never"===this.schemaHideWriteOnly?"false":e.isWebhook?"true":"false"}"
fetch-credentials = "${this.fetchCredentials}"
exportparts = "wrap-request-btn:wrap-request-btn, btn:btn, btn-fill:btn-fill, btn-outline:btn-outline, btn-try:btn-try, btn-clear:btn-clear, btn-clear-resp:btn-clear-resp,
file-input:file-input, textbox:textbox, textbox-param:textbox-param, textarea:textarea, textarea-param:textarea-param,
anchor:anchor, anchor-param-example:anchor-param-example, schema-description:schema-description, schema-multiline-toggle:schema-multiline-toggle"
> </api-request>
${e.callbacks?EW.call(this,e.callbacks):""}
<api-response
class = "${this.renderStyle}-mode"
style = "width:100%;"
webhook = "${e.isWebhook}"
.responses = "${e.responses}"
render-style = "${this.renderStyle}"
schema-style = "${this.schemaStyle}"
active-schema-tab = "${this.defaultSchemaTab}"
schema-expand-level = "${this.schemaExpandLevel}"
schema-description-expanded = "${this.schemaDescriptionExpanded}"
allow-schema-description-expand-toggle = "${this.allowSchemaDescriptionExpandToggle}"
schema-hide-read-only = "${"never"===this.schemaHideReadOnly?"false":e.isWebhook?"true":"false"}"
schema-hide-write-only = "${"never"===this.schemaHideWriteOnly||e.isWebhook?"false":"true"}"
selected-status = "${Object.keys(e.responses||{})[0]||""}"
exportparts = "btn:btn, btn-response-status:btn-response-status, btn-selected-response-status:btn-selected-response-status, btn-fill:btn-fill, btn-copy:btn-copy,
schema-description:schema-description, schema-multiline-toggle:schema-multiline-toggle"
> </api-response>
</div>
</div>
`}function QW(){return this.resolvedSpec?z`
${this.resolvedSpec.tags.map((e=>z`
<section id="${e.elementId}" part="section-tag" class="regular-font section-gap--read-mode observe-me" style="border-top:1px solid var(--primary-color);">
<div class="title tag" part="section-tag-title label-tag-title">${e.name}</div>
<slot name="${e.elementId}"></slot>
<div class="regular-font-size">
${sW(`\n <div class="m-markdown regular-font">\n ${Je(e.description||"","true"===this.infoDescriptionHeadingsInNavBar?{renderer:YW(e.elementId)}:void 0)}\n </div>`)}
</div>
</section>
<section class="regular-font section-gap--read-mode" part="section-operations-in-tag">
${e.paths.map((e=>XW.call(this,e)))}
</section>
`))}
`:""}function eG(e){return z`
<div class='divider'></div>
<div class='expanded-endpoint-body observe-me ${e.name}' id='cmp--${e.id}' >
<div style="font-weight:bold"> ${e.name} <span style="color:var(--light-fg); font-size:var(--font-size-small); font-weight:400;"> Schema </span></div>
${"table"===this.schemaStyle?z`
<schema-table
.data = '${VW(e.component,{})}'
schema-expand-level = "${this.schemaExpandLevel}"
schema-description-expanded = "${this.schemaDescriptionExpanded}"
allow-schema-description-expand-toggle = "${this.allowSchemaDescriptionExpandToggle}"
schema-hide-read-only = "false"
schema-hide-write-only = "${this.schemaHideWriteOnly}"
exportparts = "schema-description:schema-description, schema-multiline-toggle:schema-multiline-toggle"
> </schema-table>`:z`
<schema-tree
.data = '${VW(e.component,{})}'
schema-expand-level = "${this.schemaExpandLevel}"
schema-description-expanded = "${this.schemaDescriptionExpanded}"
allow-schema-description-expand-toggle = "${this.allowSchemaDescriptionExpandToggle}"
schema-hide-read-only = "false"
schema-hide-write-only = "${this.schemaHideWriteOnly}"
exportparts = "schema-description:schema-description, schema-multiline-toggle:schema-multiline-toggle"
> </schema-tree>`}
</div>`}function tG(e,t){return-1!==e.id.indexOf("schemas-")?eG.call(this,e):z`
<div class='divider'></div>
<div class='expanded-endpoint-body observe-me ${e.name}' id='cmp--${e.id}' >
${z`
<div style="font-weight:bold"> ${e.name} <span style="color:var(--light-fg); font-size:var(--font-size-small); font-weight:400"> ${t} </span> </div>
${e.component?z`
<div class='mono-font regular-font-size' style='padding: 8px 0; color:var(--fg2)'>
<json-tree class="border tree" render-style='${this.renderStyle}' .data="${e.component}"> </json-tree>
</div>`:""}
`}
</div>
`}function rG(){return this.resolvedSpec?z`
${this.resolvedSpec.components.map((e=>z`
<div id="cmp--${e.name.toLowerCase()}" class='regular-font section-gap--read-mode observe-me' style="border-top:1px solid var(--primary-color);">
<div class="title tag">${e.name}</div>
<div class="regular-font-size">
${sW(`<div class='m-markdown regular-font'>${Je(e.description?e.description:"")}</div>`)}
</div>
</div>
<div class='regular-font section-gap--read-mode'>
${e.subComponents.filter((e=>!1!==e.expanded)).map((t=>tG.call(this,t,e.name)))}
</div>
`))}
`:""}function nG(){const e=new Je.Renderer;return e.heading=(e,t,r,n)=>`<h${t} class="observe-me" id="overview--${n.slug(r)}">${e}</h${t}>`,e}function sG(){var e,t,r,n;return z`
<section id="overview" part="section-overview"
class="observe-me ${"view"===this.renderStyle?"section-gap":"section-gap--read-mode"}">
${null!==(e=this.resolvedSpec)&&void 0!==e&&e.info?z`
<div id="api-title" part="section-overview-title" style="font-size:32px">
${this.resolvedSpec.info.title}
${this.resolvedSpec.info.version?z`
<span style = 'font-size:var(--font-size-small);font-weight:bold'>
${this.resolvedSpec.info.version}
</span>`:""}
</div>
<div id="api-info" style="font-size:calc(var(--font-size-regular) - 1px); margin-top:8px;">
${null!==(t=this.resolvedSpec.info.contact)&&void 0!==t&&t.email?z`<span>${this.resolvedSpec.info.contact.name||"Email"}:
<a href="mailto:${this.resolvedSpec.info.contact.email}" part="anchor anchor-overview">${this.resolvedSpec.info.contact.email}</a>
</span>`:""}
${null!==(r=this.resolvedSpec.info.contact)&&void 0!==r&&r.url?z`<span>URL: <a href="${this.resolvedSpec.info.contact.url}" part="anchor anchor-overview">${this.resolvedSpec.info.contact.url}</a></span>`:""}
${this.resolvedSpec.info.license?z`<span>License:
${this.resolvedSpec.info.license.url?z`<a href="${this.resolvedSpec.info.license.url}" part="anchor anchor-overview">${this.resolvedSpec.info.license.name}</a>`:this.resolvedSpec.info.license.name} </span>`:""}
${this.resolvedSpec.info.termsOfService?z`<span><a href="${this.resolvedSpec.info.termsOfService}" part="anchor anchor-overview">Terms of Service</a></span>`:""}
${this.specUrl&&"true"===this.allowSpecFileDownload?z`
<div style="display:flex; margin:12px 0; gap:8px; justify-content: start;">
<button class="m-btn thin-border" style="min-width:170px" part="btn btn-outline" @click='${e=>{ht(this.specUrl,"openapi-spec")}}'>Download OpenAPI spec</button>
${null!==(n=this.specUrl)&&void 0!==n&&n.trim().toLowerCase().endsWith("json")?z`<button class="m-btn thin-border" style="width:200px" part="btn btn-outline" @click='${e=>{ft(this.specUrl)}}'>View OpenAPI spec (New Tab)</button>`:""}
</div>`:""}
</div>
<slot name="overview"></slot>
<div id="api-description">
${this.resolvedSpec.info.description?z`${sW(`\n <div class="m-markdown regular-font">\n ${Je(this.resolvedSpec.info.description,"true"===this.infoDescriptionHeadingsInNavBar?{renderer:nG()}:void 0)}\n </div>`)}`:""}
</div>
`:""}
</section>
`}function iG(e){var t;const r=null===(t=this.resolvedSpec)||void 0===t?void 0:t.servers.find((t=>t.url===e));return!!r&&(this.selectedServer=r,this.requestUpdate(),this.dispatchEvent(new CustomEvent("api-server-change",{bubbles:!0,composed:!0,detail:{selectedServer:r}})),!0)}function oG(e,t){const r=[...e.currentTarget.closest("table").querySelectorAll("input, select")];let n=t.url;r.forEach((e=>{const t=new RegExp(`{${e.dataset.var}}`,"g");n=n.replace(t,e.value)})),t.computedUrl=n,this.requestUpdate()}function aG(){return this.selectedServer&&this.selectedServer.variables?z`
<div class="table-title">SERVER VARIABLES</div>
<table class='m-table' role='presentation'>
${Object.entries(this.selectedServer.variables).map((e=>z`
<tr>
<td style="vertical-align: middle;" >${e[0]}</td>
<td>
${e[1].enum?z`
<select
data-var = "${e[0]}"
@input = ${e=>{oG.call(this,e,this.selectedServer)}}
>
${Object.entries(e[1].enum).map((t=>e[1].default===t[1]?z`
<option
selected
label = ${t[1]}
value = ${t[1]}
/>`:z`
<option
label = ${t[1]}
value = ${t[1]}
/>`))}
</select>`:z`
<input
type = "text"
part="textbox textbox-server-var"
spellcheck = "false"
data-var = "${e[0]}"
value = "${e[1].default}"
@input = ${e=>{oG.call(this,e,this.selectedServer)}}
/>`}
</td>
</tr>
${e[1].description?z`<tr><td colspan="2" style="border:none"><span class="m-markdown-small"> ${sW(Je(e[1].description))} </span></td></tr>`:""}
`))}
</table>
`:""}function lG(){var e,t,r;return!this.resolvedSpec||this.resolvedSpec.specLoadError?"":z`
<section id = 'servers' part="section-servers" style="text-align:left; direction:ltr; margin-top:24px; margin-bottom:24px;" class='regular-font observe-me ${"read focused".includes(this.renderStyle)?"section-gap--read-mode":"section-gap"}'>
<div part = "section-servers-title" class = "sub-title">API SERVER</div>
<div class = 'mono-font' style='margin: 12px 0; font-size:calc(var(--font-size-small) + 1px);'>
${this.resolvedSpec.servers&&0!==(null===(e=this.resolvedSpec.servers)||void 0===e?void 0:e.length)?z`
${null===(t=this.resolvedSpec)||void 0===t?void 0:t.servers.map(((e,t)=>z`
<input type = 'radio'
name = 'api_server'
id = 'srvr-opt-${t}'
value = '${e.url}'
@change = ${()=>{iG.call(this,e.url)}}
.checked = '${this.selectedServer.url===e.url}'
style = 'margin:4px 0; cursor:pointer'
/>
<label style='cursor:pointer' for='srvr-opt-${t}'>
${e.url} ${e.description?z`- <span class='regular-font'>${e.description} </span>`:""}
</label>
<br/>
`))}
`:""}
<div class="table-title primary-text" part="label-selected-server"> SELECTED: ${(null===(r=this.selectedServer)||void 0===r?void 0:r.computedUrl)||"none"}</div>
</div>
<slot name="servers"></slot>
${aG.call(this)}
</section>`}function cG(e,t="toggle"){const r=null==e?void 0:e.closest(".nav-bar-tag-and-paths"),n=null==r?void 0:r.querySelector(".nav-bar-paths-under-tag");if(r){const e=r.classList.contains("expanded");!e||"toggle"!==t&&"collapse"!==t?e||"toggle"!==t&&"expand"!==t||(r.classList.replace("collapsed","expanded"),n.style.maxHeight=`${n.scrollHeight}px`):(n.style.maxHeight=0,r.classList.replace("expanded","collapsed"))}}function pG(e){var t,r,n,s;if("click"!==e.type&&("keyup"!==e.type||13!==e.keyCode))return;const i=e.target;e.stopPropagation(),"navigate"===(null===(t=i.dataset)||void 0===t?void 0:t.action)?this.scrollToEventTarget(e,!1):"expand-all"===(null===(r=i.dataset)||void 0===r?void 0:r.action)||"collapse-all"===(null===(n=i.dataset)||void 0===n?void 0:n.action)?function(e,t="expand-all"){if("click"!==e.type&&("keyup"!==e.type||13!==e.keyCode))return;const r=[...e.target.closest(".nav-scroll").querySelectorAll(".nav-bar-tag-and-paths")];"expand-all"===t?r.forEach((e=>{const t=e.querySelector(".nav-bar-paths-under-tag");e.classList.replace("collapsed","expanded"),t.style.maxHeight=`${null==t?void 0:t.scrollHeight}px`})):r.forEach((e=>{e.classList.replace("expanded","collapsed"),e.querySelector(".nav-bar-paths-under-tag").style.maxHeight=0}))}(e,i.dataset.action):"expand-collapse-tag"===(null===(s=i.dataset)||void 0===s?void 0:s.action)&&cG(i,"toggle")}function uG(){var e,t,r,n;return!this.resolvedSpec||this.resolvedSpec.specLoadError?z`
<nav class='nav-bar' part='section-navbar'>
<slot name='nav-logo' class='logo'></slot>
</nav>
`:z`
<nav class='nav-bar ${this.renderStyle}' part='section-navbar'>
<slot name='nav-logo' class='logo'></slot>
${"false"===this.allowSearch&&"false"===this.allowAdvancedSearch?"":z`
<div style='display:flex; flex-direction:row; justify-content:center; align-items:stretch; padding:8px 24px 12px 24px; ${"false"===this.allowAdvancedSearch?"border-bottom: 1px solid var(--nav-hover-bg-color)":""}' part='section-navbar-search'>
${"false"===this.allowSearch?"":z`
<div style = 'display:flex; flex:1; line-height:22px;'>
<input id = 'nav-bar-search'
part = 'textbox textbox-nav-filter'
style = 'width:100%; padding-right:20px; color:var(--nav-hover-text-color); border-color:var(--nav-accent-color); background-color:var(--nav-hover-bg-color)'
type = 'text'
placeholder = 'Filter'
@change = '${this.onSearchChange}'
spellcheck = 'false'
>
<div style='margin: 6px 5px 0 -24px; font-size:var(--font-size-regular); cursor:pointer;'>&#x21a9;</div>
</div>
${this.matchPaths?z`
<button @click = '${this.onClearSearch}' class='m-btn thin-border' style='margin-left:5px; color:var(--nav-text-color); width:75px; padding:6px 8px;' part='btn btn-outline btn-clear-filter'>
CLEAR
</button>`:""}
`}
${"false"===this.allowAdvancedSearch||this.matchPaths?"":z`
<button class='m-btn primary' part='btn btn-fill btn-search' style='margin-left:5px; padding:6px 8px; width:75px' @click='${this.onShowSearchModalClicked}'>
SEARCH
</button>
`}
</div>
`}
${z`<nav class='nav-scroll' tabindex='-1' part='section-navbar-scroll' @click='${e=>pG.call(this,e)}' @keyup='${e=>pG.call(this,e)}' >
${"false"!==this.showInfo&&this.resolvedSpec.info?z`
${"true"===this.infoDescriptionHeadingsInNavBar?z`
${this.resolvedSpec.infoDescriptionHeaders.length>0?z`<div class='nav-bar-info ${this.navActiveItemMarker}' id='link-overview' data-content-id='overview' data-action='navigate' tabindex='0' part='section-navbar-item section-navbar-overview'>
${(null===(e=this.resolvedSpec.info)||void 0===e||null===(t=e.title)||void 0===t?void 0:t.trim())||"Overview"}
</div>`:""}
<div class='overview-headers'>
${this.resolvedSpec.infoDescriptionHeaders.map((e=>z`
<div
class='nav-bar-h${e.depth} ${this.navActiveItemMarker}'
id='link-overview--${(new Je.Slugger).slug(e.text)}'
data-action='navigate'
data-content-id='overview--${(new Je.Slugger).slug(e.text)}'
>
${e.text}
</div>`))}
</div>
${this.resolvedSpec.infoDescriptionHeaders.length>0?z`<hr style='border-top: 1px solid var(--nav-hover-bg-color); border-width:1px 0 0 0; margin: 15px 0 0 0'/>`:""}
`:z`<div class='nav-bar-info ${this.navActiveItemMarker}' id='link-overview' data-action='navigate' data-content-id='overview' tabindex='0'>
${(null===(r=this.resolvedSpec.info)||void 0===r||null===(n=r.title)||void 0===n?void 0:n.trim())||"Overview"}
</div>`}
`:""}
${"false"===this.allowServerSelection?"":z`<div class='nav-bar-info ${this.navActiveItemMarker}' id='link-servers' data-action='navigate' data-content-id='servers' tabindex='0' part='section-navbar-item section-navbar-servers'> API Servers </div>`}
${"false"!==this.allowAuthentication&&this.resolvedSpec.securitySchemes?z`<div class='nav-bar-info ${this.navActiveItemMarker}' id='link-auth' data-action='navigate' data-content-id='auth' tabindex='0' part='section-navbar-item section-navbar-auth'> Authentication </div>`:""}
<div id='link-operations-top' class='nav-bar-section operations' data-action='navigate' data-content-id='${"focused"===this.renderStyle?"":"operations-top"}' part='section-navbar-item section-navbar-operations-top'>
<div style='font-size:16px; display:flex; margin-left:10px;'>
${"focused"===this.renderStyle?z`
<div class='nav-bar-expand-all'
data-action='expand-all'
tabindex='0'
title='Expand all'
>▸</div>
<div class='nav-bar-collapse-all'
data-action='collapse-all'
tabindex='0'
title='Collapse all'
>▸</div>`:""}
</div>
<div class='nav-bar-section-title'> OPERATIONS </div>
</div>
<!-- TAGS AND PATHS-->
${this.resolvedSpec.tags.filter((e=>e.paths.filter((e=>ut(this.matchPaths,e,this.matchType))).length)).map((e=>{var t;return z`
<div class='nav-bar-tag-and-paths ${"read"===this.renderStyle||e.expanded?"expanded":"collapsed"}' >
${"General ⦂"===e.name?z`<hr style='border:none; border-top: 1px dotted var(--nav-text-color); opacity:0.3; margin:-1px 0 0 0;'/>`:z`
<div
class='nav-bar-tag ${this.navActiveItemMarker}'
part='section-navbar-item section-navbar-tag'
id='link-${e.elementId}'
data-action='${"read"===this.renderStyle||"show-description"===this.onNavTagClick?"navigate":"expand-collapse-tag"}'
data-content-id='${("read"===this.renderStyle?`${e.elementId}`:"show-description"===this.onNavTagClick)?`${e.elementId}`:""}'
data-first-path-id='${e.firstPathId}'
tabindex='0'
>
<div style="pointer-events:none;">${e.name}</div>
<div class='nav-bar-tag-icon' tabindex='0' data-action='expand-collapse-tag'></div>
</div>
`}
${"true"===this.infoDescriptionHeadingsInNavBar?z`
${"focused"===this.renderStyle&&"expand-collapse"===this.onNavTagClick?"":z`
<div class='tag-headers'>
${e.headers.map((t=>z`
<div
class='nav-bar-h${t.depth} ${this.navActiveItemMarker}'
part='section-navbar-item section-navbar-h${t.depth}'
id='link-${e.elementId}--${(new Je.Slugger).slug(t.text)}'
data-action='navigate'
data-content-id='${e.elementId}--${(new Je.Slugger).slug(t.text)}'
tabindex='0'
> ${t.text}</div>`))}
</div>`}`:""}
<div class='nav-bar-paths-under-tag' style='max-height:${e.expanded||"read"===this.renderStyle?50*((null===(t=e.paths)||void 0===t?void 0:t.length)||1):0}px;'>
<!-- Paths in each tag (endpoints) -->
${e.paths.filter((e=>!this.matchPaths||ut(this.matchPaths,e,this.matchType))).map((e=>z`
<div
class='nav-bar-path ${this.navActiveItemMarker} ${"true"===this.usePathInNavBar?"small-font":""}'
part='section-navbar-item section-navbar-path'
data-action='navigate'
data-content-id='${e.elementId}'
id='link-${e.elementId}'
tabindex='0'
>
<span style = 'display:flex; pointer-events: none; align-items:start; ${e.deprecated?"filter:opacity(0.5)":""}'>
${z`<span class='nav-method ${this.showMethodInNavBar} ${e.method}' style='pointer-events: none;'>
${"as-colored-block"===this.showMethodInNavBar?e.method.substring(0,3).toUpperCase():e.method.toUpperCase()}
</span>`}
${e.isWebhook?z`<span style='font-weight:bold; pointer-events: none; margin-right:8px; font-size: calc(var(--font-size-small) - 2px)'>WEBHOOK</span>`:""}
${"true"===this.usePathInNavBar?z`<span style='pointer-events: none;' class='mono-font'>${e.path}</span>`:e.summary||e.shortSummary}
</span>
</div>`))}
</div>
</div>
`}))}
<!-- COMPONENTS -->
${this.resolvedSpec.components&&"true"===this.showComponents&&"focused"===this.renderStyle?z`
<div id='link-components' class='nav-bar-section components'>
<div></div>
<div class='nav-bar-section-title'>COMPONENTS</div>
</div>
${this.resolvedSpec.components.map((e=>e.subComponents.length?z`
<div class='nav-bar-tag'
part='section-navbar-item section-navbar-tag'
data-action='navigate'
data-content-id='cmp--${e.name.toLowerCase()}'
id='link-cmp--${e.name.toLowerCase()}'
>
${e.name}
</div>
${e.subComponents.filter((e=>!1!==e.expanded)).map((e=>z`
<div class='nav-bar-path' data-action='navigate' data-content-id='cmp--${e.id}' id='link-cmp--${e.id}'>
<span> ${e.name} </span>
</div>`))}`:""))}`:""}
</nav>`}
</nav>
`}function dG(e){const t=new Je.Renderer;return t.heading=(t,r,n,s)=>`<h${r} class="observe-me" id="${e}--${s.slug(n)}">${t}</h${r}>`,t}function hG(e){return z`
<div class='regular-font section-gap--focused-mode' part="section-operations-in-tag">
${e}
</div>`}function fG(){var e;if("true"===this.showInfo)return hG(sG.call(this));const t=this.resolvedSpec.tags[0],r=null===(e=this.resolvedSpec.tags[0])||void 0===e?void 0:e.paths[0];return hG(t&&r?XW.call(this,r,t.name):"")}function mG(e){return z`
<h1 id="${e.elementId}">${e.name}</h1>
${"show-description"===this.onNavTagClick&&e.description?z`
<div class="m-markdown">
${sW(`\n <div class="m-markdown regular-font">\n ${Je(e.description||"","true"===this.infoDescriptionHeadingsInNavBar?{renderer:dG(e.elementId)}:void 0)}\n </div>`)}
</div>`:""}
`}function yG(){if(!this.focusedElementId||!this.resolvedSpec)return;const e=this.focusedElementId;let t,r=null,n=null,s=0;if(e.startsWith("overview")&&"true"===this.showInfo)t=sG.call(this);else if("auth"===e&&"true"===this.allowAuthentication)t=wW.call(this);else if("servers"===e&&"true"===this.allowServerSelection)t=lG.call(this);else if("operations-top"===e)t=z`
<div id="operations-top" class="observe-me">
<slot name="operations-top"></slot>
</div>`;else if(e.startsWith("cmp--")&&"true"===this.showComponents)t=rG.call(this);else if(e.startsWith("tag--")){const r=e.indexOf("--",4)>0?e.substring(0,e.indexOf("--",5)):e;n=this.resolvedSpec.tags.find((e=>e.elementId===r)),t=n?hG.call(this,mG.call(this,n)):fG.call(this)}else{for(s=0;s<this.resolvedSpec.tags.length&&(n=this.resolvedSpec.tags[s],r=this.resolvedSpec.tags[s].paths.find((t=>`${t.elementId}`===e)),!r);s+=1);if(r){cG(this.shadowRoot.getElementById(`link-${e}`),"expand"),t=hG.call(this,XW.call(this,r,n.name||"",n.description||""))}else t=fG.call(this)}return t}function gG(e){if(e.expanded)e.expanded=!1,"true"===this.updateRoute&&this.replaceHistoryState("");else if(e.expanded=!0,"true"===this.updateRoute){const t=`${this.routePrefix||"#"}${e.elementId}`;window.location.hash!==t&&this.replaceHistoryState(e.elementId)}this.requestUpdate()}function vG(e,t="expand-all"){const r=[...e.querySelectorAll(".section-tag")];"expand-all"===t?r.map((e=>{e.classList.replace("collapsed","expanded")})):r.map((e=>{e.classList.replace("expanded","collapsed")}))}function bG(e,t="expand-all"){vG.call(this,e.target.closest(".operations-root"),t)}function xG(e,t=!1){return z`
<summary @click="${t=>{gG.call(this,e,t)}}" part="section-endpoint-head-${e.expanded?"expanded":"collapsed"}" class='endpoint-head ${e.method} ${e.deprecated?"deprecated":""} ${t||e.expanded?"expanded":"collapsed"}'>
<div part="section-endpoint-head-method" class="method ${e.method} ${e.deprecated?"deprecated":""}"> ${e.method} </div>
<div part="section-endpoint-head-path" class="path ${e.deprecated?"deprecated":""}">
${e.path}
${e.isWebhook?z`<span style="font-family: var(--font-regular); font-size: var(--); font-size: var(--font-size-small); color:var(--primary-color); margin-left: 16px"> Webhook</span>`:""}
</div>
${e.deprecated?z`
<span style="font-size:var(--font-size-small); text-transform:uppercase; font-weight:bold; color:var(--red); margin:2px 0 0 5px;">
deprecated
</span>`:""}
${this.showSummaryWhenCollapsed?z`
<div class="only-large-screen" style="min-width:60px; flex:1"></div>
<div part="section-endpoint-head-description" class="descr">${e.summary||e.shortSummary} </div>`:""}
</summary>
`}function wG(e){var t,r,n,s,i,o,a;const l=new Set;for(const t in e.responses)for(const r in null===(c=e.responses[t])||void 0===c?void 0:c.content){var c;l.add(r.trim())}const p=[...l].join(", "),u=this.resolvedSpec.securitySchemes.filter((t=>{var r;return t.finalKeyValue&&(null===(r=e.security)||void 0===r?void 0:r.some((e=>t.securitySchemeId in e)))}))||[],d=this.resolvedSpec.securitySchemes.find((e=>e.securitySchemeId===lt&&"-"!==e.value));d&&u.push(d);const h=e.xCodeSamples?SW(e.xCodeSamples):"";return z`
<div part="section-endpoint-body-${e.expanded?"expanded":"collapsed"}" class='endpoint-body ${e.method} ${e.deprecated?"deprecated":""}'>
<div class="summary">
${e.summary?z`<div class="title" part="section-endpoint-body-title">${e.summary}<div>`:e.shortSummary!==e.description?z`<div class="title" part="section-endpoint-body-title">${e.shortSummary}</div>`:""}
${e.xBadges&&(null===(t=e.xBadges)||void 0===t?void 0:t.length)>0?z`
<div style="display:flex; flex-wrap:wrap;font-size: var(--font-size-small);">
${e.xBadges.map((e=>z`<span part="endpoint-badge" style="margin:1px; margin-right:5px; padding:1px 8px; font-weight:bold; border-radius:12px; background-color: var(--light-${e.color}, var(--input-bg)); color:var(--${e.color}); border:1px solid var(--${e.color})">${e.label}</span>`))}
</div>
`:""}
${e.description?z`<div part="section-endpoint-body-description" class="m-markdown"> ${sW(Je(e.description))}</div>`:""}
${null!==(r=e.externalDocs)&&void 0!==r&&r.url||null!==(n=e.externalDocs)&&void 0!==n&&n.description?z`<div style="background-color:var(--bg3); padding:2px 8px 8px 8px; margin:8px 0; border-radius:var(--border-radius)">
<div class="m-markdown"> ${sW(Je((null===(s=e.externalDocs)||void 0===s?void 0:s.description)||""))} </div>
${null!==(i=e.externalDocs)&&void 0!==i&&i.url?z`<a style="font-family:var(--font-mono); font-size:var(--font-size-small)" href="${null===(o=e.externalDocs)||void 0===o?void 0:o.url}" target="_blank">
${null===(a=e.externalDocs)||void 0===a?void 0:a.url} <div style="transform: rotate(270deg) scale(1.5); display: inline-block; margin-left:5px">⇲</div>
</a>`:""}
</div>`:""}
<slot name="${e.elementId}"></slot>
${$W.call(this,e.security)}
${h}
</div>
<div class='req-resp-container'>
<div style="display:flex; flex-direction:column" class="view-mode-request ${this.layout}-layout">
<api-request
class = "${this.renderStyle}-mode ${this.layout}-layout"
style = "width:100%;"
webhook = "${e.isWebhook}"
method = "${e.method}"
path = "${e.path}"
.security = "${e.security}"
.parameters = "${e.parameters}"
.request_body = "${e.requestBody}"
.api_keys = "${u}"
.servers = "${e.servers}"
server-url = "${e.servers&&e.servers.length>0?e.servers[0].url:this.selectedServer.computedUrl}"
active-schema-tab = "${this.defaultSchemaTab}"
fill-request-fields-with-example = "${this.fillRequestFieldsWithExample}"
allow-try = "${this.allowTry}"
show-curl-before-try = "${this.showCurlBeforeTry}"
accept = "${p}"
render-style="${this.renderStyle}"
schema-style = "${this.schemaStyle}"
schema-expand-level = "${this.schemaExpandLevel}"
schema-description-expanded = "${this.schemaDescriptionExpanded}"
allow-schema-description-expand-toggle = "${this.allowSchemaDescriptionExpandToggle}"
schema-hide-read-only = "${"never"===this.schemaHideReadOnly||e.isWebhook?"false":"true"}"
schema-hide-write-only = "${"never"===this.schemaHideWriteOnly?"false":e.isWebhook?"true":"false"}"
fetch-credentials = "${this.fetchCredentials}"
exportparts = "wrap-request-btn:wrap-request-btn, btn:btn, btn-fill:btn-fill, btn-outline:btn-outline, btn-try:btn-try, btn-clear:btn-clear, btn-clear-resp:btn-clear-resp,
file-input:file-input, textbox:textbox, textbox-param:textbox-param, textarea:textarea, textarea-param:textarea-param,
anchor:anchor, anchor-param-example:anchor-param-example, schema-description:schema-description, schema-multiline-toggle:schema-multiline-toggle"
> </api-request>
${e.callbacks?EW.call(this,e.callbacks):""}
</div>
<api-response
class = "${this.renderStyle}-mode"
style = "width:100%;"
webhook = "${e.isWebhook}"
.responses="${e.responses}"
active-schema-tab = "${this.defaultSchemaTab}"
render-style="${this.renderStyle}"
schema-style="${this.schemaStyle}"
schema-expand-level = "${this.schemaExpandLevel}"
schema-description-expanded = "${this.schemaDescriptionExpanded}"
allow-schema-description-expand-toggle = "${this.allowSchemaDescriptionExpandToggle}"
schema-hide-read-only = "${"never"===this.schemaHideReadOnly?"false":e.isWebhook?"true":"false"}"
schema-hide-write-only = "${"never"===this.schemaHideWriteOnly||e.isWebhook?"false":"true"}"
selected-status = "${Object.keys(e.responses||{})[0]||""}"
exportparts = "btn:btn, btn-fill:btn-fill, btn-outline:btn-outline, btn-try:btn-try, file-input:file-input,
textbox:textbox, textbox-param:textbox-param, textarea:textarea, textarea-param:textarea-param, anchor:anchor, anchor-param-example:anchor-param-example, btn-clear-resp:btn-clear-resp,
schema-description:schema-description, schema-multiline-toggle:schema-multiline-toggle"
> </api-response>
</div>
</div>`}function $G(e=!0,t=!0,r=!1){return this.resolvedSpec?z`
${e?z`
<div style="display:flex; justify-content:flex-end;">
<span @click="${e=>bG(e,"expand-all")}" style="color:var(--primary-color); cursor:pointer;">
Expand all
</span>
&nbsp;|&nbsp;
<span @click="${e=>bG(e,"collapse-all")}" style="color:var(--primary-color); cursor:pointer;" >
Collapse all
</span>
&nbsp; sections
</div>`:""}
${this.resolvedSpec.tags.map((e=>z`
${t?z`
<div class='regular-font section-gap section-tag ${e.expanded?"expanded":"collapsed"}'>
<div class='section-tag-header' @click="${()=>{e.expanded=!e.expanded,this.requestUpdate()}}">
<div id='${e.elementId}' class="sub-title tag" style="color:var(--primary-color)">${e.name}</div>
</div>
<div class='section-tag-body'>
<slot name="${e.elementId}"></slot>
<div class="regular-font regular-font-size m-markdown" style="padding-bottom:12px">
${sW(Je(e.description||""))}
</div>
${e.paths.filter((e=>!this.matchPaths||ut(this.matchPaths,e,this.matchType))).map((e=>z`
<section part="section-endpoint" id='${e.elementId}' class='m-endpoint regular-font ${e.method} ${r||e.expanded?"expanded":"collapsed"}'>
${xG.call(this,e,r)}
${r||e.expanded?wG.call(this,e):""}
</section>`))}
</div>
</div>`:z`
<div class='section-tag-body'>
${e.paths.filter((e=>!this.matchPaths||ut(this.matchPaths,e,this.matchType))).map((e=>z`
<section id='${e.elementId}' class='m-endpoint regular-font ${e.method} ${r||e.expanded?"expanded":"collapsed"}'>
${xG.call(this,e,r)}
${r||e.expanded?wG.call(this,e):""}
</section>`))}
</div>
`}
`))}`:""}function SG(){return z`
<header class="row main-header regular-font" part="section-header" style="padding:8px 4px 8px 4px;min-height:48px;">
<div class="only-large-screen-flex" style="align-items: center;">
<slot name="logo" class="logo" part="section-logo">
${e="height:36px;width:36px;margin-left:5px",z`
<div style=${e}>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="1 0 511 512">
<path d="M351 411a202 202 0 01-350 0 203 203 0 01333-24 203 203 0 0117 24zm0 0" fill="#adc165"/>
<path d="M334 387a202 202 0 01-216-69 202 202 0 01216 69zm78 32H85a8 8 0 01-8-8 8 8 0 018-8h327a8 8 0 017 8 8 8 0 01-7 8zm0 0" fill="#99aa52"/>
<path d="M374 338l-5 30a202 202 0 01-248-248 203 203 0 01253 218zm0 0" fill="#ffc73b"/>
<path d="M374 338a202 202 0 01-100-197 203 203 0 01100 197zm38 81l-6-2-231-231a8 8 0 0111-11l231 230a8 8 0 01-5 14zm0 0" fill="#efb025"/>
<path d="M311 175c0 75 40 140 101 175a202 202 0 000-350 202 202 0 00-101 175zm0 0" fill="#ff903e"/>
<path d="M412 419a8 8 0 01-8-8V85a8 8 0 0115 0v326a8 8 0 01-7 8zm0 0" fill="#e87425"/>
</svg>
</div>
`}
<!-- m-logo style="height:36px;width:36px;margin-left:5px"></m-logo -->
</slot>
<div class="header-title" part="label-header-title">${this.headingText}</div>
</div>
<div style="margin: 0px 8px;display:flex;flex:1">
${"false"===this.allowSpecUrlLoad?"":z`
<input id="spec-url"
type="text"
style="font-size:var(--font-size-small)"
class="header-input mono-font"
part="textbox textbox-spec-url"
placeholder="Spec URL"
value="${this.specUrl||""}"
@change="${this.onSpecUrlChange}"
spellcheck="false"
>
<div style="margin: 6px 5px 0 -24px; font-size:var(--font-size-regular); cursor:pointer;">&#x21a9;</div>
`}
${"false"===this.allowSpecFileLoad?"":z`
<input id="spec-file"
part = "file-input"
type="file"
style="display:none"
value="${this.specFile||""}"
@change="${this.onSpecFileChange}"
spellcheck="false"
>
<button class="m-btn primary only-large-screen" style="margin-left:10px;" part="btn btn-fill" @click="${this.onFileLoadClick}"> LOCAL JSON FILE </button>
`}
<slot name="header"></slot>
${"false"===this.allowSearch||"read focused".includes(this.renderStyle)?"":z`
<input id="search" class="header-input" type="text" part="textbox textbox-header-filter" placeholder="Filter" @change="${this.onSearchChange}" style="max-width:130px;margin-left:10px;" spellcheck="false" >
<div style="margin: 6px 5px 0 -24px; font-size:var(--font-size-regular); cursor:pointer;">&#x21a9;</div>
`}
${"false"===this.allowAdvancedSearch||"read focused".includes(this.renderStyle)?"":z`
<button class="m-btn primary only-large-screen" part="btn btn-fill btn-search" style="margin-left:10px;" @click="${this.onShowSearchModalClicked}">
Search
</button>
`}
</div>
</header>`;var e}customElements.define("api-response",class extends ce{constructor(){super(),this.selectedStatus="",this.headersForEachRespStatus={},this.mimeResponsesForEachStatus={},this.activeSchemaTab="schema"}static get properties(){return{callback:{type:String},webhook:{type:String},responses:{type:Object},parser:{type:Object},schemaStyle:{type:String,attribute:"schema-style"},renderStyle:{type:String,attribute:"render-style"},selectedStatus:{type:String,attribute:"selected-status"},selectedMimeType:{type:String,attribute:"selected-mime-type"},activeSchemaTab:{type:String,attribute:"active-schema-tab"},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},allowSchemaDescriptionExpandToggle:{type:String,attribute:"allow-schema-description-expand-toggle"},schemaHideReadOnly:{type:String,attribute:"schema-hide-read-only"},schemaHideWriteOnly:{type:String,attribute:"schema-hide-write-only"}}}static get styles(){return[Ze,Qe,nt,et,Xe,IW,c`
:where(button, input[type="checkbox"], [tabindex="0"]):focus-visible { box-shadow: var(--focus-shadow); }
:where(input[type="text"], input[type="password"], select, textarea):focus-visible { border-color: var(--primary-color); }
.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:bold;
font-size:calc(var(--font-size-small) + 1px);
}
.resp-descr{
font-size:calc(var(--font-size-small) + 1px);
color:var(--light-fg);
text-align:left;
}
.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);
}`,ot]}render(){return z`
<div class="col regular-font response-panel ${this.renderStyle}-mode">
<div class=" ${"true"===this.callback?"tiny-title":"req-res-title"} ">
${"true"===this.callback?"CALLBACK RESPONSE":"RESPONSE"}
</div>
<div>
${this.responseTemplate()}
<div>
</div>
`}resetSelection(){this.selectedStatus="",this.selectedMimeType=""}responseTemplate(){if(!this.responses)return"";for(const n in this.responses){this.selectedStatus||(this.selectedStatus=n);const s={};for(const r in null===(e=this.responses[n])||void 0===e?void 0:e.content){var e,t;const i=this.responses[n].content[r];this.selectedMimeType||(this.selectedMimeType=r);const o=VW(i.schema,{}),a=WW(i.schema,r,i.examples,i.example,"true"!==this.callback&&"true"!==this.webhook,"true"===this.callback||"true"===this.webhook,r.includes("json")?"json":"text");s[r]={description:this.responses[n].description,examples:a,selectedExample:(null===(t=a[0])||void 0===t?void 0:t.exampleId)||"",schemaTree:o}}const i=[];for(const e in null===(r=this.responses[n])||void 0===r?void 0:r.headers){var r;i.push({name:e,...this.responses[n].headers[e]})}this.headersForEachRespStatus[n]=i,this.mimeResponsesForEachStatus[n]=s}return z`
${Object.keys(this.responses).length>1?z`<div class='row' style='flex-wrap:wrap'>
${Object.keys(this.responses).map((e=>z`
${"$$ref"===e?"":z`
<button
@click="${()=>{this.selectedStatus=e,this.responses[e].content&&Object.keys(this.responses[e].content)[0]?this.selectedMimeType=Object.keys(this.responses[e].content)[0]:this.selectedMimeType=void 0}}"
class='m-btn small ${this.selectedStatus===e?"primary":""}'
part="btn ${this.selectedStatus===e?"btn-response-status btn-selected-response-status":" btn-response-status"}"
style='margin: 8px 4px 0 0'
>
${e}
</button>`}`))}`:z`<span>${Object.keys(this.responses)[0]}</span>`}
</div>
${Object.keys(this.responses).map((e=>{var t,r;return z`
<div style = 'display: ${e===this.selectedStatus?"block":"none"}' >
<div class="top-gap">
<span class="resp-descr m-markdown ">${sW(Je((null===(t=this.responses[e])||void 0===t?void 0:t.description)||""))}</span>
${this.headersForEachRespStatus[e]&&(null===(r=this.headersForEachRespStatus[e])||void 0===r?void 0:r.length)>0?z`${this.responseHeaderListTemplate(this.headersForEachRespStatus[e])}`:""}
</div>
${0===Object.keys(this.mimeResponsesForEachStatus[e]).length?"":z`
<div class="tab-panel col">
<div class="tab-buttons row" @click="${e=>{"button"===e.target.tagName.toLowerCase()&&(this.activeSchemaTab=e.target.dataset.tab)}}" >
<button class="tab-btn ${"example"===this.activeSchemaTab?"active":""}" data-tab = 'example'>EXAMPLE </button>
<button class="tab-btn ${"example"!==this.activeSchemaTab?"active":""}" data-tab = 'schema' >SCHEMA</button>
<div style="flex:1"></div>
${1===Object.keys(this.mimeResponsesForEachStatus[e]).length?z`<span class='small-font-size gray-text' style='align-self:center; margin-top:8px;'> ${Object.keys(this.mimeResponsesForEachStatus[e])[0]} </span>`:z`${this.mimeTypeDropdownTemplate(Object.keys(this.mimeResponsesForEachStatus[e]))}`}
</div>
${"example"===this.activeSchemaTab?z`<div class ='tab-content col' style = 'flex:1;'>
${this.mimeExampleTemplate(this.mimeResponsesForEachStatus[e][this.selectedMimeType])}
</div>`:z`<div class ='tab-content col' style = 'flex:1;'>
${this.mimeSchemaTemplate(this.mimeResponsesForEachStatus[e][this.selectedMimeType])}
</div>`}
</div>
`}`}))}
`}responseHeaderListTemplate(e){return z`
<div style="padding:16px 0 8px 0" class="resp-headers small-font-size bold-text">RESPONSE HEADERS</div>
<table role="presentation" style="border-collapse: collapse; margin-bottom:16px; border:1px solid var(--border-color); border-radius: var(--border-radius)" class="small-font-size mono-font">
${e.map((e=>{var t,r;return z`
<tr>
<td style="padding:8px; vertical-align: baseline; min-width:120px; border-top: 1px solid var(--light-border-color); text-overflow: ellipsis;">
${e.name||""}
</td>
<td style="padding:4px; vertical-align: baseline; padding:0 5px; border-top: 1px solid var(--light-border-color); text-overflow: ellipsis;">
${(null===(t=e.schema)||void 0===t?void 0:t.type)||""}
</td>
<td style="padding:8px; vertical-align: baseline; border-top: 1px solid var(--light-border-color);text-overflow: ellipsis;">
<div class="m-markdown-small regular-font" >${sW(Je(e.description||""))}</div>
</td>
<td style="padding:8px; vertical-align: baseline; border-top: 1px solid var(--light-border-color); text-overflow: ellipsis;">
${(null===(r=e.schema)||void 0===r?void 0:r.example)||""}
</td>
</tr>
`}))}
</table>`}mimeTypeDropdownTemplate(e){return z`
<select aria-label='mime types' @change="${e=>{this.selectedMimeType=e.target.value}}" style='margin-bottom: -1px; z-index:1'>
${e.map((e=>z`<option value='${e}' ?selected = '${e===this.selectedMimeType}'> ${e} </option>`))}
</select>`}onSelectExample(e){[...e.target.closest(".example-panel").querySelectorAll(".example")].forEach((t=>{t.style.display=t.dataset.example===e.target.value?"block":"none"}))}mimeExampleTemplate(e){return e?z`
${1===e.examples.length?z`
${"json"===e.examples[0].exampleFormat?z`
${e.examples[0].exampleSummary&&e.examples[0].exampleSummary.length>80?z`<div style="padding: 4px 0"> ${e.examples[0].exampleSummary} </div>`:""}
${e.examples[0].exampleDescription?z`<div class="m-markdown-small" style="padding: 4px 0"> ${sW(Je(e.examples[0].exampleDescription||""))} </div>`:""}
<json-tree
render-style = '${this.renderStyle}'
.data="${e.examples[0].exampleValue}"
class = 'example-panel ${"read"===this.renderStyle?"border pad-8-16":"border-top pad-top-8"}'
exportparts = "btn:btn, btn-fill:btn-fill, btn-copy:btn-copy"
></json-tree>`:z`
${e.examples[0].exampleSummary&&e.examples[0].exampleSummary.length>80?z`<div style="padding: 4px 0"> ${e.examples[0].exampleSummary} </div>`:""}
${e.examples[0].exampleDescription?z`<div class="m-markdown-small" style="padding: 4px 0"> ${sW(Je(e.examples[0].exampleDescription||""))} </div>`:""}
<pre class = 'example-panel ${"read"===this.renderStyle?"border pad-8-16":"border-top pad-top-8"}'>${e.examples[0].exampleValue}</pre>
`}`:z`
<span class = 'example-panel ${"read"===this.renderStyle?"border pad-8-16":"border-top pad-top-8"}'>
<select aria-label='response examples' style="min-width:100px; max-width:100%" @change='${e=>this.onSelectExample(e)}'>
${e.examples.map((t=>z`<option value="${t.exampleId}" ?selected=${t.exampleId===e.selectedExample} >
${t.exampleSummary.length>80?t.exampleId:t.exampleSummary}
</option>`))}
</select>
${e.examples.map((t=>z`
<div class="example" data-example = '${t.exampleId}' style = "display: ${t.exampleId===e.selectedExample?"block":"none"}">
${t.exampleSummary&&t.exampleSummary.length>80?z`<div style="padding: 4px 0"> ${t.exampleSummary} </div>`:""}
${t.exampleDescription?z`<div class="m-markdown-small" style="padding: 4px 0"> ${sW(Je(t.exampleDescription||""))} </div>`:""}
${"json"===t.exampleFormat?z`
<json-tree
render-style = '${this.renderStyle}'
.data = '${t.exampleValue}'
exportparts = "btn:btn, btn-fill:btn-fill, btn-copy:btn-copy"
></json-tree>`:z`<pre>${t.exampleValue}</pre>`}
</div>
`))}
</span>
`}
`:z`
<pre style='color:var(--red)' class = '${"read"===this.renderStyle?"read example-panel border pad-8-16":"example-panel border-top"}'> No example provided </pre>
`}mimeSchemaTemplate(e){return e?z`
${"table"===this.schemaStyle?z`
<schema-table
.data = "${e.schemaTree}"
schema-expand-level = "${this.schemaExpandLevel}"
schema-description-expanded = "${this.schemaDescriptionExpanded}"
allow-schema-description-expand-toggle = "${this.allowSchemaDescriptionExpandToggle}"
schema-hide-read-only = "${this.schemaHideReadOnly}"
schema-hide-write-only = "${this.schemaHideWriteOnly}"
exportparts = "schema-description:schema-description, schema-multiline-toggle:schema-multiline-toggle"
> </schema-table> `:z`
<schema-tree
.data = '${e.schemaTree}'
schema-expand-level = "${this.schemaExpandLevel}"
schema-description-expanded = "${this.schemaDescriptionExpanded}"
allow-schema-description-expand-toggle = "${this.allowSchemaDescriptionExpandToggle}"
schema-hide-read-only = "${this.schemaHideReadOnly}"
schema-hide-write-only = "${this.schemaHideWriteOnly}"
exportparts = "schema-description:schema-description, schema-multiline-toggle:schema-multiline-toggle"
> </schema-tree>`}`:z`
<pre style='color:var(--red)' class = '${"read"===this.renderStyle?"border pad-8-16":"border-top"}'> Schema not found</pre>
`}});const EG=c`
*, *:before, *:after { box-sizing: border-box; }
.dialog-box-overlay {
background-color: var(--overlay-bg);
position: fixed;
left: 0;
top: 0;
width: 100vw;
height: 100vh;
overflow: hidden;
z-index: var(--dialog-z-index);
}
.dialog-box {
position: fixed;
top: 100px;
left: 50%;
transform: translate(-50%, 0%);
display: flex;
flex-direction: column;
width: 70vw;
background-color: var(--bg2);
color: var(--fg2);
border-radius: 4px;
max-height: 500px;
overflow: hidden;
border: 1px solid var(--border-color);
box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}
.dialog-box-header {
position: sticky;
top: 0;
align-self: stretch;
display: flex;
align-items: center;
padding: 0px 16px;
min-height: 60px;
max-height: 60px;
border-bottom: 1px solid var(--light-border-color);
overflow: hidden;
}
.dialog-box-header button {
font-size: 1.5rem;
font-weight: 700;
line-height: 1;
color: var(--fg);
border: none;
outline: none;
background-color: transparent;
cursor:pointer;
border: 1px solid transparent;
border-radius: 50%;
margin-right: -8px;
}
.dialog-box-header button:hover {
border-color: var(--primary-color);
}
.dialog-box-content {
padding: 16px;
display:block;
overflow: auto;
height: 100%;
}
.dialog-box-title {
flex-grow: 1;
font-size:24px;
}
`;function kG(){var e;return document.addEventListener("close",(()=>{this.showAdvancedSearchDialog=!1})),document.addEventListener("open",this.onOpenSearchDialog),z`
<dialog-box
heading="Search"
show="${!!this.showAdvancedSearchDialog}"
>
<span class="advanced-search-options">
<input
style="width:100%; padding-right:20px;"
type="text"
part="textbox textbox-search-dialog"
placeholder="search text..."
spellcheck="false"
@keyup = "${e=>this.onAdvancedSearch(e,400)}"
>
<div style="display:flex; margin:8px 0 24px;">
<div>
<input style="cursor:pointer;" type="checkbox" part="checkbox checkbox-search-dialog" id="search-api-path" checked @change = "${e=>this.onAdvancedSearch(e,0)}">
<label for="search-api-path" style="cursor:pointer;"> API Path </label>
</div>
<div style="margin-left: 16px;">
<input style="cursor:pointer;" type="checkbox" part="checkbox checkbox-search-dialog" id="search-api-descr" checked @change = "${e=>this.onAdvancedSearch(e,0)}">
<label style="cursor:pointer;" for="search-api-descr"> API Description </label>
</div>
<div style="margin-left: 16px;">
<input style="cursor:pointer;" type="checkbox" part="checkbox checkbox-search-dialog" id="search-api-params" @change = "${e=>this.onAdvancedSearch(e,0)}">
<label style="cursor:pointer;" for="search-api-params"> API Parameters </label>
</div>
<div style="margin-left: 16px;">
<input style="cursor:pointer;" type="checkbox" part="checkbox checkbox-search-dialog" id="search-api-request-body" @change = "${e=>this.onAdvancedSearch(e,0)}">
<label style="cursor:pointer;" for="search-api-request-body"> Request Body Parameters </label>
</div>
<div style="margin-left: 16px;">
<input style="cursor:pointer;" type="checkbox" part="checkbox checkbox-search-dialog" id="search-api-resp-descr" @change = "${e=>this.onAdvancedSearch(e,0)}">
<label style="cursor:pointer;" for="search-api-resp-descr"> Response Description </label>
</div>
</div>
</span>
${null===(e=this.advancedSearchMatches)||void 0===e?void 0:e.map((e=>z`
<div
class="mono-font small-font-size hover-bg"
style='padding: 5px; cursor: pointer; border-bottom: 1px solid var(--light-border-color); ${e.deprecated?"filter:opacity(0.5);":""}'
data-content-id='${e.elementId}'
tabindex = '0'
@click="${e=>{this.matchPaths="",this.showAdvancedSearchDialog=!1,this.requestUpdate(),this.scrollToEventTarget(e,!0)}}"
>
<span class="upper bold-text method-fg ${e.method}">${e.method}</span>
<span>${e.path}</span>
<span class="regular-font gray-text">${e.summary}</span>
</div>
`))}
</dialog-box>
`}customElements.define("dialog-box",class extends ce{static get properties(){return{heading:{type:String,attribute:"heading"},show:{type:String,attribute:"show"}}}static get styles(){return[EG]}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",(e=>{"Escape"===e.code&&this.onClose()}))}attributeChangedCallback(e,t,r){t!==r&&("heading"===e&&(this.heading=r),"show"===e&&(this.show=r,"true"===r&&document.dispatchEvent(new CustomEvent("open",{bubbles:!0,composed:!0,detail:this})))),super.attributeChangedCallback(e,t,r)}render(){return z`
${"true"===this.show?z`
<div class="dialog-box-overlay">
<div class="dialog-box">
<header class="dialog-box-header">
<span class="dialog-box-title">${this.heading}</span>
<button type="button" @click="${this.onClose}">&times;</button>
</header>
<div class="dialog-box-content">
<slot></slot>
</div>
</div>
</div>`:""}`}onClose(){document.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}});const OG={color:{inputReverseFg:"#fff",inputReverseBg:"#333",headerBg:"#444",getRgb(e){if(0===e.indexOf("#")&&(e=e.slice(1,7)),3!==e.length&&4!==e.length||(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),6!==e.length)throw new Error("Invalid HEX color.");return{r:parseInt(e.slice(0,2),16),g:parseInt(e.slice(2,4),16),b:parseInt(e.slice(4,6),16)}},luminanace(e){const t=this.getRgb(e);return.299*t.r+.587*t.g+.114*t.b},invert(e){return this.luminanace(e)>135?"#000":"#fff"},opacity(e,t){const r=this.getRgb(e);return`rgba(${r.r}, ${r.g}, ${r.b}, ${t})`},brightness(e,t){const r=this.getRgb(e);return r.r+=t,r.g+=t,r.b+=t,r.r>255?r.r=255:r.r<0&&(r.r=0),r.g>255?r.g=255:r.g<0&&(r.g=0),r.b>255?r.b=255:r.b<0&&(r.b=0),`#${r.r.toString(16).padStart(2,"0")}${r.g.toString(16).padStart(2,"0")}${r.b.toString(16).padStart(2,"0")}`},hasGoodContrast(e,t){return this.luminanace(e)-this.luminanace(t)}}};function jG(e){return/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3}|[A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/i.test(e)}function AG(e,t={}){let r={};const n=t.primaryColor?t.primaryColor:"dark"===e?"#f76b39":"#ff591e",s=OG.color.invert(n),i=OG.color.opacity(n,"0.4");if("dark"===e){const e=t.bg1?t.bg1:"#2a2b2c",o=t.fg1?t.fg1:"#bbb",a=t.bg2?t.bg2:OG.color.brightness(e,5),l=t.bg3?t.bg3:OG.color.brightness(e,17),c=t.bg3?t.bg3:OG.color.brightness(e,35),p=t.fg2?t.fg2:OG.color.brightness(o,-15),u=t.fg3?t.fg3:OG.color.brightness(o,-20),d=t.fg3?t.fg3:OG.color.brightness(o,-65),h=t.inlineCodeFg?t.inlineCodeFg:"#aaa",f="#bbb",m="#eee",y=t.headerColor?t.headerColor:OG.color.brightness(e,10),g=t.navBgColor?t.navBgColor:OG.color.brightness(e,10),v=t.navTextColor?t.navTextColor:OG.color.opacity(OG.color.invert(g),"0.50"),b=t.navHoverBgColor?t.navHoverBgColor:OG.color.brightness(g,-15),x=t.navHoverTextColor?t.navHoverTextColor:OG.color.invert(g),w=t.navAccentColor?t.navAccentColor:OG.color.brightness(n,25);r={bg1:e,bg2:a,bg3:l,lightBg:c,fg1:o,fg2:p,fg3:u,lightFg:d,inlineCodeFg:h,primaryColor:n,primaryColorTrans:i,primaryColorInvert:s,selectionBg:f,selectionFg:m,overlayBg:"rgba(80, 80, 80, 0.4)",navBgColor:g,navTextColor:v,navHoverBgColor:b,navHoverTextColor:x,navAccentColor:w,navAccentTextColor:t.navAccentTextColor?t.navAccenttextColor:OG.color.invert(w),headerColor:y,headerColorInvert:OG.color.invert(y),headerColorDarker:OG.color.brightness(y,-20),headerColorBorder:OG.color.brightness(y,10),borderColor:t.borderColor||OG.color.brightness(e,20),lightBorderColor:t.lightBorderColor||OG.color.brightness(e,15),codeBorderColor:t.codeBorderColor||OG.color.brightness(e,30),inputBg:t.inputBg||OG.color.brightness(e,-5),placeHolder:t.placeHolder||OG.color.opacity(o,"0.3"),hoverColor:t.hoverColor||OG.color.brightness(e,-10),red:t.red?t.red:"#F06560",lightRed:t.lightRed?t.lightRed:OG.color.brightness(e,-10),pink:t.pink?t.pink:"#ffb2b2",lightPink:t.lightPink||OG.color.brightness(e,-10),green:t.green||"#7ec699",lightGreen:t.lightGreen||OG.color.brightness(e,-10),blue:t.blue||"#71b7ff",lightBlue:t.lightBlue||OG.color.brightness(e,-10),orange:t.orange?t.orange:"#f08d49",lightOrange:t.lightOrange||OG.color.brightness(e,-10),yellow:t.yellow||"#827717",lightYellow:t.lightYellow||OG.color.brightness(e,-10),purple:t.purple||"#786FF1",brown:t.brown||"#D4AC0D",codeBg:t.codeBg||OG.color.opacity(OG.color.brightness(e,-15),.7),codeFg:t.codeFg||"#aaa",codePropertyColor:t.codePropertyColor||"#f8c555",codeKeywordColor:t.codeKeywordColor||"#cc99cd",codeOperatorColor:t.codeOperatorColor||"#67cdcc"}}else{const e=t.bg1?t.bg1:"#fafbfc",o=t.fg1?t.fg1:"#444444",a=t.bg2?t.bg2:OG.color.brightness(e,-5),l=t.bg3?t.bg3:OG.color.brightness(e,-15),c=t.bg3?t.bg3:OG.color.brightness(e,-45),p=t.fg2?t.fg2:OG.color.brightness(o,17),u=t.fg3?t.fg3:OG.color.brightness(o,30),d=t.fg3?t.fg3:OG.color.brightness(o,70),h=t.inlineCodeFg?t.inlineCodeFg:"brown",f="#444",m="#eee",y=t.headerColor?t.headerColor:OG.color.brightness(e,-180),g=t.navBgColor?t.navBgColor:OG.color.brightness(e,-200),v=t.navTextColor?t.navTextColor:OG.color.opacity(OG.color.invert(g),"0.65"),b=t.navHoverBgColor?t.navHoverBgColor:OG.color.brightness(g,-15),x=t.navHoverTextColor?t.navHoverTextColor:OG.color.invert(g),w=t.navAccentColor?t.navAccentColor:OG.color.brightness(n,25);r={bg1:e,bg2:a,bg3:l,lightBg:c,fg1:o,fg2:p,fg3:u,lightFg:d,inlineCodeFg:h,primaryColor:n,primaryColorTrans:i,primaryColorInvert:s,selectionBg:f,selectionFg:m,overlayBg:"rgba(0, 0, 0, 0.4)",navBgColor:g,navTextColor:v,navHoverBgColor:b,navHoverTextColor:x,navAccentColor:w,navAccentTextColor:t.navAccentTextColor?t.navAccenttextColor:OG.color.invert(w),headerColor:y,headerColorInvert:OG.color.invert(y),headerColorDarker:OG.color.brightness(y,-20),headerColorBorder:OG.color.brightness(y,10),borderColor:t.borderColor||OG.color.brightness(e,-38),lightBorderColor:t.lightBorderColor||OG.color.brightness(e,-23),codeBorderColor:t.codeBorderColor||"transparent",inputBg:t.inputBg||OG.color.brightness(e,10),placeHolder:t.placeHolder||OG.color.brightness(d,20),hoverColor:t.hoverColor||OG.color.brightness(e,-5),red:t.red||"#F06560",lightRed:t.lightRed||"#fff0f0",pink:t.pink?t.pink:"#990055",lightPink:t.lightPink?t.lightPink:"#ffb2b2",green:t.green||"#690",lightGreen:t.lightGreen||"#fbfff0",blue:t.blue||"#47AFE8",lightBlue:t.lightBlue||"#eff8fd",orange:t.orange||"#FF9900",lightOrange:t.lightOrange||"#fff5e6",yellow:t.yellow||"#827717",lightYellow:t.lightYellow||"#fff5cc",purple:t.purple||"#786FF1",brown:t.brown||"#D4AC0D",codeBg:t.codeBg||OG.color.opacity(OG.color.brightness(e,-15),.7),codeFg:t.codeFg||"#666",codePropertyColor:t.codePropertyColor||"#905",codeKeywordColor:t.codeKeywordColor||"#07a",codeOperatorColor:t.codeOperatorColor||"#9a6e3a"}}return z`
<style>
*, *:before, *:after { box-sizing: border-box; }
:host {
/* Common Styles - irrespective of themes */
--border-radius: 2px;
--layout: ${this.layout||"row"};
--font-mono: ${this.monoFont||'Monaco, "Andale Mono", "Roboto Mono", Consolas, monospace'};
--font-regular: ${this.regularFont||'"Open Sans", Avenir, "Segoe UI", Arial, sans-serif'};
--scroll-bar-width: 8px;
--nav-item-padding: ${"relaxed"===this.navItemSpacing?"10px 16px 10px 10px":"compact"===this.navItemSpacing?"5px 16px 5px 10px":"7px 16px 7px 10px"};
--resp-area-height: ${this.responseAreaHeight};
--font-size-small: ${"default"===this.fontSize?"12px":"large"===this.fontSize?"13px":"14px"};
--font-size-mono: ${"default"===this.fontSize?"13px":"large"===this.fontSize?"14px":"15px"};
--font-size-regular: ${"default"===this.fontSize?"14px":"large"===this.fontSize?"15px":"16px"};
--dialog-z-index: 1000;
--focus-shadow: 0 0 0 1px transparent, 0 0 0 3px ${r.primaryColorTrans};
/* Theme specific styles */
--bg:${r.bg1};
--bg2:${r.bg2};
--bg3:${r.bg3};
--light-bg:${r.lightBg};
--fg:${r.fg1};
--fg2:${r.fg2};
--fg3:${r.fg3};
--light-fg:${r.lightFg};
--selection-bg:${r.selectionBg};
--selection-fg:${r.selectionFg};
--overlay-bg:${r.overlayBg};
/* Border Colors */
--border-color:${r.borderColor};
--light-border-color:${r.lightBorderColor};
--code-border-color:${r.codeBorderColor};
--input-bg:${r.inputBg};
--placeholder-color:${r.placeHolder};
--hover-color:${r.hoverColor};
--red:${r.red};
--light-red:${r.lightRed};
--pink:${r.pink};
--light-pink:${r.lightPink};
--green:${r.green};
--light-green:${r.lightGreen};
--blue:${r.blue};
--light-blue:${r.lightBlue};
--orange:${r.orange};
--light-orange:${r.lightOrange};
--yellow:${r.yellow};
--light-yellow:${r.lightYellow};
--purple:${r.purple};
--brown:${r.brown};
/* Header Color */
--header-bg:${r.headerColor};
--header-fg:${r.headerColorInvert};
--header-color-darker:${r.headerColorDarker};
--header-color-border:${r.headerColorBorder};
/* Nav Colors */
--nav-bg-color:${r.navBgColor};
--nav-text-color:${r.navTextColor};
--nav-hover-bg-color:${r.navHoverBgColor};
--nav-hover-text-color:${r.navHoverTextColor};
--nav-accent-color:${r.navAccentColor};
--nav-accent-text-color:${r.navAccentTextColor};
/* Nav API Method Colors*/
--nav-get-color:${r.blue};
--nav-put-color:${r.orange};
--nav-post-color:${r.green};
--nav-delete-color:${r.red};
--nav-head-color:${r.yellow};
/* Primary Colors */
--primary-color:${r.primaryColor};
--primary-color-invert:${r.primaryColorInvert};
--primary-color-trans:${r.primaryColorTrans};
/*Code Syntax Color*/
--code-bg:${r.codeBg};
--code-fg:${r.codeFg};
--inline-code-fg:${r.inlineCodeFg};
--code-property-color:${r.codePropertyColor};
--code-keyword-color:${r.codeKeywordColor};
--code-operator-color:${r.codeOperatorColor};
}
</style>`}function PG(e=!1,t=!0,r=!0,n=!1){if(!this.resolvedSpec)return"";"true"===this.persistAuth&&hW.call(this);const s={bg1:jG(this.bgColor)?this.bgColor:"",fg1:jG(this.textColor)?this.textColor:"",headerColor:jG(this.headerColor)?this.headerColor:"",primaryColor:jG(this.primaryColor)?this.primaryColor:"",navBgColor:jG(this.navBgColor)?this.navBgColor:"",navTextColor:jG(this.navTextColor)?this.navTextColor:"",navHoverBgColor:jG(this.navHoverBgColor)?this.navHoverBgColor:"",navHoverTextColor:jG(this.navHoverTextColor)?this.navHoverTextColor:"",navAccentColor:jG(this.navAccentColor)?this.navAccentColor:"",navAccentTextColor:jG(this.navAccentTextColor)?this.navAccentTextColor:""};return this.resolvedSpec.specLoadError?e?z`
${"dark"===this.theme?AG.call(this,"dark",s):AG.call(this,"light",s)}
<div style='display:flex; align-items:center; border:1px dashed var(--border-color); height:42px; padding:5px; font-size:var(--font-size-small); color:var(--red); font-family:var(--font-mono)'> ${this.resolvedSpec.info.description} </div>
`:z`
${"dark"===this.theme?AG.call(this,"dark",s):AG.call(this,"light",s)}
<!-- Header -->
${SG.call(this)}
<main class='main-content regular-font' part='section-main-content'>
<slot></slot>
<div style='margin:24px; text-align: center;'>
<h1 style='color: var(--red)'> ${this.resolvedSpec.info.title} </h1>
<div style='font-family:var(--font-mono)'> ${this.resolvedSpec.info.description} </div>
</div>
</main>
`:this.resolvedSpec.isSpecLoading?z`
${"dark"===this.theme?AG.call(this,"dark",s):AG.call(this,"light",s)}
<main class='main-content regular-font' part='section-main-content'>
<slot></slot>
<div class='main-content-inner--${this.renderStyle}-mode'>
<div class='loader'></div>
</div>
</main>
`:z`
${"dark"===this.theme?AG.call(this,"dark",s):AG.call(this,"light",s)}
<!-- Header -->
${"false"===this.showHeader?"":SG.call(this)}
<!-- Advanced Search -->
${"false"===this.allowAdvancedSearch?"":kG.call(this)}
<div id='the-main-body' class='body ${this.cssClasses}' dir='${this.pageDirection}' >
<!-- Side Nav -->
${"read"!==this.renderStyle&&"focused"!==this.renderStyle||"true"!==this.showSideNav||!this.resolvedSpec?"":uG.call(this)}
<!-- Main Content -->
<main class='main-content regular-font' tabindex='-1' part='section-main-content'>
<slot></slot>
<div class='main-content-inner--${this.renderStyle}-mode'>
${!0===this.loading?z`<div class='loader'></div>`:z`
${!0===this.loadFailed?z`<div style='text-align: center;margin: 16px;'> Unable to load the Spec</div>`:z`
<div class='operations-root' @click='${e=>{this.handleHref(e)}}'>
${"focused"===this.renderStyle?z`${yG.call(this)}`:z`
${"true"===this.showInfo?sG.call(this):""}
${"true"===this.allowServerSelection?lG.call(this):""}
${"true"===this.allowAuthentication?wW.call(this):""}
<div id='operations-top' class='observe-me'>
<slot name='operations-top'></slot>
</div>
${"read"===this.renderStyle?QW.call(this):$G.call(this,t,r,n)}
`}
</div>
`}`}
</div>
<slot name='footer'></slot>
</main>
</div>
`}class TG extends ce{constructor(){super();const e={root:this.getRootNode().host,rootMargin:"-50px 0px -50px 0px",threshold:0};this.showSummaryWhenCollapsed=!0,this.isIntersectionObserverActive=!1,this.intersectionObserver=new IntersectionObserver((e=>{this.onIntersect(e)}),e)}static get properties(){return{headingText:{type:String,attribute:"heading-text"},gotoPath:{type:String,attribute:"goto-path"},updateRoute:{type:String,attribute:"update-route"},routePrefix:{type:String,attribute:"route-prefix"},specUrl:{type:String,attribute:"spec-url"},sortTags:{type:String,attribute:"sort-tags"},generateMissingTags:{type:String,attribute:"generate-missing-tags"},sortEndpointsBy:{type:String,attribute:"sort-endpoints-by"},specFile:{type:String,attribute:!1},layout:{type:String},renderStyle:{type:String,attribute:"render-style"},defaultSchemaTab:{type:String,attribute:"default-schema-tab"},responseAreaHeight:{type:String,attribute:"response-area-height"},fillRequestFieldsWithExample:{type:String,attribute:"fill-request-fields-with-example"},persistAuth:{type:String,attribute:"persist-auth"},onNavTagClick:{type:String,attribute:"on-nav-tag-click"},schemaStyle:{type:String,attribute:"schema-style"},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},schemaHideReadOnly:{type:String,attribute:"schema-hide-read-only"},schemaHideWriteOnly:{type:String,attribute:"schema-hide-write-only"},apiKeyName:{type:String,attribute:"api-key-name"},apiKeyLocation:{type:String,attribute:"api-key-location"},apiKeyValue:{type:String,attribute:"api-key-value"},defaultApiServerUrl:{type:String,attribute:"default-api-server"},serverUrl:{type:String,attribute:"server-url"},oauthReceiver:{type:String,attribute:"oauth-receiver"},showHeader:{type:String,attribute:"show-header"},showSideNav:{type:String,attribute:"show-side-nav"},showInfo:{type:String,attribute:"show-info"},allowAuthentication:{type:String,attribute:"allow-authentication"},allowTry:{type:String,attribute:"allow-try"},showCurlBeforeTry:{type:String,attribute:"show-curl-before-try"},allowSpecUrlLoad:{type:String,attribute:"allow-spec-url-load"},allowSpecFileLoad:{type:String,attribute:"allow-spec-file-load"},allowSpecFileDownload:{type:String,attribute:"allow-spec-file-download"},allowSearch:{type:String,attribute:"allow-search"},allowAdvancedSearch:{type:String,attribute:"allow-advanced-search"},allowServerSelection:{type:String,attribute:"allow-server-selection"},allowSchemaDescriptionExpandToggle:{type:String,attribute:"allow-schema-description-expand-toggle"},showComponents:{type:String,attribute:"show-components"},pageDirection:{type:String,attribute:"page-direction"},theme:{type:String},bgColor:{type:String,attribute:"bg-color"},textColor:{type:String,attribute:"text-color"},headerColor:{type:String,attribute:"header-color"},primaryColor:{type:String,attribute:"primary-color"},fontSize:{type:String,attribute:"font-size"},regularFont:{type:String,attribute:"regular-font"},monoFont:{type:String,attribute:"mono-font"},loadFonts:{type:String,attribute:"load-fonts"},cssFile:{type:String,attribute:"css-file"},cssClasses:{type:String,attribute:"css-classes"},navBgColor:{type:String,attribute:"nav-bg-color"},navTextColor:{type:String,attribute:"nav-text-color"},navHoverBgColor:{type:String,attribute:"nav-hover-bg-color"},navHoverTextColor:{type:String,attribute:"nav-hover-text-color"},navAccentColor:{type:String,attribute:"nav-accent-color"},navAccentTextColor:{type:String,attribute:"nav-accent-text-color"},navActiveItemMarker:{type:String,attribute:"nav-active-item-marker"},navItemSpacing:{type:String,attribute:"nav-item-spacing"},showMethodInNavBar:{type:String,attribute:"show-method-in-nav-bar"},usePathInNavBar:{type:String,attribute:"use-path-in-nav-bar"},infoDescriptionHeadingsInNavBar:{type:String,attribute:"info-description-headings-in-navbar"},fetchCredentials:{type:String,attribute:"fetch-credentials"},matchPaths:{type:String,attribute:"match-paths"},matchType:{type:String,attribute:"match-type"},loading:{type:Boolean},focusedElementId:{type:String},showAdvancedSearchDialog:{type:Boolean},advancedSearchMatches:{type:Object}}}static get styles(){return[Ze,Xe,Qe,et,tt,rt,nt,st,it,c`
:host {
display:flex;
flex-direction: column;
min-width:360px;
width:100%;
height:100%;
margin:0;
padding:0;
overflow: hidden;
letter-spacing:normal;
color:var(--fg);
background-color:var(--bg);
font-family:var(--font-regular);
}
:where(button, input[type="checkbox"], [tabindex="0"]):focus-visible { box-shadow: var(--focus-shadow); }
:where(input[type="text"], input[type="password"], select, textarea):focus-visible { border-color: var(--primary-color); }
.body {
display:flex;
height:100%;
width:100%;
overflow:hidden;
}
.main-content {
margin:0;
padding: 0;
display:block;
flex:1;
height:100%;
overflow-y: auto;
overflow-x: hidden;
scrollbar-width: thin;
scrollbar-color: var(--border-color) transparent;
}
.main-content-inner--view-mode {
padding: 0 8px;
}
.main-content::-webkit-scrollbar {
width: 8px;
height: 8px;
}
.main-content::-webkit-scrollbar-track {
background:transparent;
}
.main-content::-webkit-scrollbar-thumb {
background-color: var(--border-color);
}
.section-gap.section-tag {
border-bottom:1px solid var(--border-color);
}
.section-gap,
.section-gap--focused-mode,
.section-gap--read-mode {
padding: 0px 4px;
}
.section-tag-header {
position:relative;
cursor: n-resize;
padding: 12px 0;
}
.collapsed .section-tag-header:hover{
cursor: s-resize;
}
.section-tag-header:hover{
background-image: linear-gradient(to right, rgba(0,0,0,0), var(--border-color), rgba(0,0,0,0));
}
.section-tag-header:hover::after {
position:absolute;
margin-left:-24px;
font-size:20px;
top: calc(50% - 14px);
color:var(--primary-color);
content: '⬆';
}
.collapsed .section-tag-header::after {
position:absolute;
margin-left:-24px;
font-size:20px;
top: calc(50% - 14px);
color: var(--border-color);
content: '⬇';
}
.collapsed .section-tag-header:hover::after {
color:var(--primary-color);
}
.collapsed .section-tag-body {
display:none;
}
.logo {
height:36px;
width:36px;
margin-left:5px;
}
.only-large-screen-flex,
.only-large-screen{
display:none;
}
.tag.title {
text-transform: uppercase;
}
.main-header {
background-color:var(--header-bg);
color:var(--header-fg);
width:100%;
}
.header-title {
font-size:calc(var(--font-size-regular) + 8px);
padding:0 8px;
}
input.header-input{
background:var(--header-color-darker);
color:var(--header-fg);
border:1px solid var(--header-color-border);
flex:1;
padding-right:24px;
border-radius:3px;
}
input.header-input::placeholder {
opacity:0.4;
}
.loader {
margin: 16px auto 16px auto;
border: 4px solid var(--bg3);
border-radius: 50%;
border-top: 4px solid var(--primary-color);
width: 36px;
height: 36px;
animation: spin 2s linear infinite;
}
.expanded-endpoint-body {
position: relative;
padding: 6px 0px;
}
.expanded-endpoint-body .tag-description {
background: var(--code-bg);
border-radius: var(--border-radius);
transition: max-height .2s ease-out;
}
.expanded-endpoint-body .tag-icon {
transition: transform .2s ease-out;
}
.expanded-endpoint-body .tag-icon.expanded {
transform: rotate(180deg);
}
.divider {
border-top: 2px solid var(--border-color);
margin: 24px 0;
width:100%;
}
.tooltip {
cursor:pointer;
border: 1px solid var(--border-color);
border-left-width: 4px;
margin-left:2px;
}
.tooltip a {
color: var(--fg2);
text-decoration: none;
}
.tooltip-text {
color: var(--fg2);
max-width: 400px;
position: absolute;
z-index:1;
background-color: var(--bg2);
visibility: hidden;
overflow-wrap: break-word;
}
.tooltip:hover {
color: var(--primary-color);
border-color: var(--primary-color);
}
.tooltip:hover a:hover {
color: var(--primary-color);
}
.tooltip:hover .tooltip-text {
visibility: visible;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.nav-method { font-weight: bold; margin-right: 4px; font-size: calc(var(--font-size-small) - 2px); white-space: nowrap; }
.nav-method.false { display: none; }
.nav-method.as-colored-text.get { color:var(--nav-get-color); }
.nav-method.as-colored-text.put { color:var(--nav-put-color); }
.nav-method.as-colored-text.post { color:var(--nav-post-color); }
.nav-method.as-colored-text.delete { color:var(--nav-delete-color); }
.nav-method.as-colored-text.head, .nav-method.as-colored-text.patch, .nav-method.as-colored-text.options { color:var(--nav-head-color); }
.nav-method.as-colored-block {
padding: 1px 4px;
min-width: 30px;
border-radius: 4px 0 0 4px;
color: #000;
}
.colored-block .nav-method.as-colored-block {
outline: 1px solid;
}
.nav-method.as-colored-block.get { background-color: var(--blue); }
.nav-method.as-colored-block.put { background-color: var(--orange); }
.nav-method.as-colored-block.post { background-color: var(--green); }
.nav-method.as-colored-block.delete { background-color: var(--red); }
.nav-method.as-colored-block.head, .nav-method.as-colored-block.patch , .nav-method.as-colored-block.options {
background-color: var(--yellow);
}
@media only screen and (min-width: 768px) {
.nav-bar {
width: 260px;
display:flex;
}
.only-large-screen{
display:block;
}
.only-large-screen-flex{
display:flex;
}
.section-gap {
padding: 0 0 0 24px;
}
.section-gap--focused-mode {
padding: 24px 8px;
}
.section-gap--read-mode {
padding: 24px 8px;
}
.endpoint-body {
position: relative;
padding:36px 0 48px 0;
}
}
@media only screen and (min-width: 1024px) {
.nav-bar {
width: ${l("default"===this.fontSize?"300px":"large"===this.fontSize?"315px":"330px")};
display:flex;
}
.section-gap--focused-mode {
padding: 12px 80px 12px 80px;
}
.section-gap--read-mode {
padding: 24px 80px 12px 80px;
}
}`,ot]}connectedCallback(){super.connectedCallback();const e=this.parentElement;if(e&&(0===e.offsetWidth&&""===e.style.width&&(e.style.width="100vw"),0===e.offsetHeight&&""===e.style.height&&(e.style.height="100vh"),"BODY"===e.tagName&&(e.style.marginTop||(e.style.marginTop="0"),e.style.marginRight||(e.style.marginRight="0"),e.style.marginBottom||(e.style.marginBottom="0"),e.style.marginLeft||(e.style.marginLeft="0"))),"false"!==this.loadFonts){const e={family:"Open Sans",style:"normal",weight:"300",unicodeRange:"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD"},t=new FontFace("Open Sans","url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OUuhpKKSTjw.woff2) format('woff2')",e);e.weight="600";const r=new FontFace("Open Sans","url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOUuhpKKSTjw.woff2) format('woff2')",e);t.load().then((e=>{document.fonts.add(e)})),r.load().then((e=>{document.fonts.add(e)}))}this.layout&&"row, column,".includes(`${this.layout},`)||(this.layout="row"),this.renderStyle&&"read, view, focused,".includes(`${this.renderStyle},`)||(this.renderStyle="focused"),this.schemaStyle&&"tree, table,".includes(`${this.schemaStyle},`)||(this.schemaStyle="tree"),this.theme&&"light, dark,".includes(`${this.theme},`)||(this.theme=window.matchMedia&&window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"),this.defaultSchemaTab&&"example, schema, model,".includes(`${this.defaultSchemaTab},`)?"model"===this.defaultSchemaTab&&(this.defaultSchemaTab="schema"):this.defaultSchemaTab="example",(!this.schemaExpandLevel||this.schemaExpandLevel<1)&&(this.schemaExpandLevel=99999),this.schemaDescriptionExpanded&&"true, false,".includes(`${this.schemaDescriptionExpanded},`)||(this.schemaDescriptionExpanded="false"),this.schemaHideReadOnly&&"default, never,".includes(`${this.schemaHideReadOnly},`)||(this.schemaHideReadOnly="default"),this.schemaHideWriteOnly&&"default, never,".includes(`${this.schemaHideWriteOnly},`)||(this.schemaHideWriteOnly="default"),this.fillRequestFieldsWithExample&&"true, false,".includes(`${this.fillRequestFieldsWithExample},`)||(this.fillRequestFieldsWithExample="true"),this.persistAuth&&"true, false,".includes(`${this.persistAuth},`)||(this.persistAuth="false"),this.responseAreaHeight||(this.responseAreaHeight="400px"),this.allowSearch&&"true, false,".includes(`${this.allowSearch},`)||(this.allowSearch="true"),this.allowAdvancedSearch&&"true, false,".includes(`${this.allowAdvancedSearch},`)||(this.allowAdvancedSearch="true"),this.allowTry&&"true, false,".includes(`${this.allowTry},`)||(this.allowTry="true"),this.apiKeyValue||(this.apiKeyValue="-"),this.apiKeyLocation||(this.apiKeyLocation="header"),this.apiKeyName||(this.apiKeyName=""),this.oauthReceiver||(this.oauthReceiver="oauth-receiver.html"),this.updateRoute&&"true, false,".includes(`${this.updateRoute},`)||(this.updateRoute="true"),this.routePrefix||(this.routePrefix="#"),this.sortTags&&"true, false,".includes(`${this.sortTags},`)||(this.sortTags="false"),this.generateMissingTags&&"true, false,".includes(`${this.generateMissingTags},`)||(this.generateMissingTags="false"),this.sortEndpointsBy&&"method, path, summary, none,".includes(`${this.sortEndpointsBy},`)||(this.sortEndpointsBy="path"),this.onNavTagClick&&"expand-collapse, show-description,".includes(`${this.onNavTagClick},`)||(this.onNavTagClick="expand-collapse"),this.navItemSpacing&&"compact, relaxed, default,".includes(`${this.navItemSpacing},`)||(this.navItemSpacing="default"),this.showMethodInNavBar&&"false, as-plain-text, as-colored-text, as-colored-block,".includes(`${this.showMethodInNavBar},`)||(this.showMethodInNavBar="false"),this.usePathInNavBar&&"true, false,".includes(`${this.usePathInNavBar},`)||(this.usePathInNavBar="false"),this.navActiveItemMarker&&"left-bar, colored-block".includes(`${this.navActiveItemMarker},`)||(this.navActiveItemMarker="left-bar"),this.fontSize&&"default, large, largest,".includes(`${this.fontSize},`)||(this.fontSize="default"),this.showInfo&&"true, false,".includes(`${this.showInfo},`)||(this.showInfo="true"),this.allowServerSelection&&"true, false,".includes(`${this.allowServerSelection},`)||(this.allowServerSelection="true"),this.allowAuthentication&&"true, false,".includes(`${this.allowAuthentication},`)||(this.allowAuthentication="true"),this.allowSchemaDescriptionExpandToggle&&"true, false,".includes(`${this.allowSchemaDescriptionExpandToggle},`)||(this.allowSchemaDescriptionExpandToggle="true"),this.showSideNav&&"true false".includes(this.showSideNav)||(this.showSideNav="true"),this.showComponents&&"true false".includes(this.showComponents)||(this.showComponents="false"),this.infoDescriptionHeadingsInNavBar&&"true, false,".includes(`${this.infoDescriptionHeadingsInNavBar},`)||(this.infoDescriptionHeadingsInNavBar="false"),this.fetchCredentials&&"omit, same-origin, include,".includes(`${this.fetchCredentials},`)||(this.fetchCredentials=""),this.matchType&&"includes regex".includes(this.matchType)||(this.matchType="includes"),this.showAdvancedSearchDialog||(this.showAdvancedSearchDialog=!1),this.cssFile||(this.cssFile=null),this.cssClasses||(this.cssClasses=""),Je.setOptions({highlight:(e,t)=>Ye().languages[t]?Ye().highlight(e,Ye().languages[t],t):e}),window.addEventListener("hashchange",(()=>{this.scrollToPath(this.getElementIDFromURL())}),!0)}disconnectedCallback(){this.intersectionObserver&&this.intersectionObserver.disconnect(),super.disconnectedCallback()}infoDescriptionHeadingRenderer(){const e=new Je.Renderer;return e.heading=(e,t,r,n)=>`<h${t} class="observe-me" id="${n.slug(r)}">${e}</h${t}>`,e}render(){const e=document.querySelector(`link[href*="${this.cssFile}"]`);return e&&this.shadowRoot.appendChild(e.cloneNode()),PG.call(this)}observeExpandedContent(){this.shadowRoot.querySelectorAll(".observe-me").forEach((e=>{this.intersectionObserver.observe(e)}))}attributeChangedCallback(e,t,r){if("spec-url"===e&&t!==r&&window.setTimeout((async()=>{await this.loadSpec(r),this.gotoPath&&!window.location.hash&&this.scrollToPath(this.gotoPath)}),0),"render-style"===e&&("read"===r?window.setTimeout((()=>{this.observeExpandedContent()}),100):this.intersectionObserver.disconnect()),"api-key-name"===e||"api-key-location"===e||"api-key-value"===e){let t=!1,n="",s="",i="";if("api-key-name"===e?this.getAttribute("api-key-location")&&this.getAttribute("api-key-value")&&(n=r,s=this.getAttribute("api-key-location"),i=this.getAttribute("api-key-value"),t=!0):"api-key-location"===e?this.getAttribute("api-key-name")&&this.getAttribute("api-key-value")&&(s=r,n=this.getAttribute("api-key-name"),i=this.getAttribute("api-key-value"),t=!0):"api-key-value"===e&&this.getAttribute("api-key-name")&&this.getAttribute("api-key-location")&&(i=r,s=this.getAttribute("api-key-location"),n=this.getAttribute("api-key-name"),t=!0),t&&this.resolvedSpec){const e=this.resolvedSpec.securitySchemes.find((e=>e.securitySchemeId===lt));e?(e.name=n,e.in=s,e.value=i,e.finalKeyValue=i):this.resolvedSpec.securitySchemes.push({securitySchemeId:lt,description:"api-key provided in rapidoc element attributes",type:"apiKey",name:n,in:s,value:i,finalKeyValue:i}),this.requestUpdate()}}super.attributeChangedCallback(e,t,r)}onSpecUrlChange(){this.setAttribute("spec-url",this.shadowRoot.getElementById("spec-url").value)}onSpecFileChange(e){this.setAttribute("spec-file",this.shadowRoot.getElementById("spec-file").value);const t=e.target.files[0],r=new FileReader;r.onload=()=>{try{const e=JSON.parse(r.result);this.loadSpec(e),this.shadowRoot.getElementById("spec-url").value=""}catch(e){console.error("RapiDoc: Unable to read or parse json")}},r.readAsText(t)}onFileLoadClick(){this.shadowRoot.getElementById("spec-file").click()}onSearchChange(e){this.matchPaths=e.target.value,this.resolvedSpec.tags.forEach((e=>e.paths.filter((t=>{this.matchPaths&&ut(this.matchPaths,t,this.matchType)&&(e.expanded=!0)})))),this.resolvedSpec.components.forEach((e=>e.subComponents.filter((e=>{e.expanded=!1,this.matchPaths&&!function(e,t){return t.name.toLowerCase().includes(e.toLowerCase())}(this.matchPaths,e)||(e.expanded=!0)})))),this.requestUpdate()}onClearSearch(){this.shadowRoot.getElementById("nav-bar-search").value="",this.matchPaths="",this.resolvedSpec.components.forEach((e=>e.subComponents.filter((e=>{e.expanded=!0}))))}onShowSearchModalClicked(){this.showAdvancedSearchDialog=!0}async onOpenSearchDialog(e){const t=e.detail.querySelector("input");await ct(0),t&&t.focus()}async loadSpec(e){if(e){this.matchPaths="";try{this.resolvedSpec={specLoadError:!1,isSpecLoading:!0,tags:[]},this.loading=!0,this.loadFailed=!1;const t=await KV.call(this,e,"true"===this.generateMissingTags,"true"===this.sortTags,this.getAttribute("sort-endpoints-by"),this.getAttribute("api-key-name"),this.getAttribute("api-key-location"),this.getAttribute("api-key-value"),this.getAttribute("server-url"));this.loading=!1,this.afterSpecParsedAndValidated(t)}catch(e){this.loading=!1,this.loadFailed=!0,this.resolvedSpec=null,console.error(`RapiDoc: Unable to resolve the API spec.. ${e.message}`)}}}async afterSpecParsedAndValidated(e){for(this.resolvedSpec=e,this.selectedServer=void 0,this.defaultApiServerUrl&&(this.defaultApiServerUrl===this.serverUrl?this.selectedServer={url:this.serverUrl,computedUrl:this.serverUrl}:this.resolvedSpec.servers&&(this.selectedServer=this.resolvedSpec.servers.find((e=>e.url===this.defaultApiServerUrl)))),this.selectedServer||this.resolvedSpec.servers&&(this.selectedServer=this.resolvedSpec.servers[0]),this.requestUpdate();!await this.updateComplete;);const t=new CustomEvent("spec-loaded",{detail:e});this.dispatchEvent(t),this.intersectionObserver.disconnect(),"read"===this.renderStyle&&(await ct(100),this.observeExpandedContent()),this.isIntersectionObserverActive=!0;const r=this.getElementIDFromURL();if(r)"view"===this.renderStyle?this.expandAndGotoOperation(r,!0,!0):this.scrollToPath(r);else if("focused"===this.renderStyle&&!this.gotoPath){var n;const e=this.showInfo?"overview":null===(n=this.resolvedSpec.tags[0])||void 0===n?void 0:n.paths[0];this.scrollToPath(e)}}getComponentBaseURL(){const{href:e}=window.location,t=this.routePrefix.replace(/(#|\/)$/,"");if(!t)return e.split("#")[0];const r=e.lastIndexOf(t);return-1===r?e:e.slice(0,r)}getElementIDFromURL(){const e=this.getComponentBaseURL();return window.location.href.replace(e+this.routePrefix,"")}replaceHistoryState(e){const t=this.getComponentBaseURL();window.history.replaceState(null,null,`${t}${this.routePrefix||"#"}${e}`)}expandAndGotoOperation(e,t=!0){if(!this.resolvedSpec)return;let r=!0;const n=-1===e.indexOf("#")?e:e.substring(1);if(n.startsWith("overview")||"servers"===n||"auth"===n)r=!1;else for(let t=0;t<(null===(s=this.resolvedSpec.tags)||void 0===s?void 0:s.length);t++){var s,i;const n=this.resolvedSpec.tags[t],o=null===(i=n.paths)||void 0===i?void 0:i.find((t=>t.elementId===e));o&&(o.expanded&&n.expanded?r=!1:(o.expanded=!0,n.expanded=!0))}t&&(r&&this.requestUpdate(),window.setTimeout((()=>{const e=this.shadowRoot.getElementById(n);e&&(e.scrollIntoView({behavior:"auto",block:"start"}),"true"===this.updateRoute&&this.replaceHistoryState(n))}),r?150:0))}isValidTopId(e){return e.startsWith("overview")||"servers"===e||"auth"===e}isValidPathId(e){var t,r,n,s;return!("overview"!==e||!this.showInfo)||(!("servers"!==e||!this.allowServerSelection)||(!("auth"!==e||!this.allowAuthentication)||(e.startsWith("tag--")?null===(n=this.resolvedSpec)||void 0===n||null===(s=n.tags)||void 0===s?void 0:s.find((t=>t.elementId===e)):null===(t=this.resolvedSpec)||void 0===t||null===(r=t.tags)||void 0===r?void 0:r.find((t=>t.paths.find((t=>t.elementId===e)))))))}onIntersect(e){!1!==this.isIntersectionObserverActive&&e.forEach((e=>{if(e.isIntersecting&&e.intersectionRatio>0){const t=this.shadowRoot.querySelector(".nav-bar-tag.active, .nav-bar-path.active, .nav-bar-info.active, .nav-bar-h1.active, .nav-bar-h2.active, .operations.active"),r=this.shadowRoot.getElementById(`link-${e.target.id}`);r&&("true"===this.updateRoute&&this.replaceHistoryState(e.target.id),r.scrollIntoView({behavior:"auto",block:"center"}),r.classList.add("active"),r.part.add("section-navbar-active-item")),t&&t!==r&&(t.classList.remove("active"),t.part.remove("section-navbar-active-item"))}}))}handleHref(e){if("a"===e.target.tagName.toLowerCase()&&e.target.getAttribute("href").startsWith("#")){const t=this.shadowRoot.getElementById(e.target.getAttribute("href").replace("#",""));t&&t.scrollIntoView({behavior:"auto",block:"start"})}}async scrollToEventTarget(e,t=!0){if("click"!==e.type&&("keyup"!==e.type||13!==e.keyCode))return;const r=e.target;if(r.dataset.contentId){if(this.isIntersectionObserverActive=!1,"focused"===this.renderStyle){const e=this.shadowRoot.querySelector("api-request");e&&e.beforeNavigationFocusedMode()}this.scrollToPath(r.dataset.contentId,!0,t),setTimeout((()=>{this.isIntersectionObserverActive=!0}),300)}}async scrollToPath(e,t=!0,r=!0){if("focused"===this.renderStyle&&(this.focusedElementId=e,await ct(0)),"view"===this.renderStyle)this.expandAndGotoOperation(e,t,!0);else{let t=!1;const n=this.shadowRoot.getElementById(e);if(n?(t=!0,n.scrollIntoView({behavior:"auto",block:"start"})):t=!1,t){if("focused"===this.renderStyle){const e=this.shadowRoot.querySelector("api-request");e&&e.afterNavigationFocusedMode();const t=this.shadowRoot.querySelector("api-response");t&&t.resetSelection()}"true"===this.updateRoute&&this.replaceHistoryState(e);const t=this.shadowRoot.getElementById(`link-${e}`);if(t){r&&t.scrollIntoView({behavior:"auto",block:"center"}),await ct(0);const e=this.shadowRoot.querySelector(".nav-bar-tag.active, .nav-bar-path.active, .nav-bar-info.active, .nav-bar-h1.active, .nav-bar-h2.active, .operations.active");e&&(e.classList.remove("active"),e.part.remove("active"),e.part.remove("section-navbar-active-item")),t.classList.add("active"),t.part.add("section-navbar-active-item")}}}}setHttpUserNameAndPassword(e,t,r){return cW.call(this,e,t,r)}setApiKey(e,t){return cW.call(this,e,"","",t)}removeAllSecurityKeys(){return pW.call(this)}setApiServer(e){return iG.call(this,e)}onAdvancedSearch(e,t){const r=e.target;clearTimeout(this.timeoutId),this.timeoutId=setTimeout((()=>{let e;e="text"===r.type?r:r.closest(".advanced-search-options").querySelector("input[type=text]");const t=[...r.closest(".advanced-search-options").querySelectorAll("input:checked")].map((e=>e.id));this.advancedSearchMatches=function(e,t,r=[]){if(!e.trim()||0===r.length)return;const n=[];return t.forEach((t=>{t.paths.forEach((t=>{let s="";var i;if(r.includes("search-api-path")&&(s=t.path),r.includes("search-api-descr")&&(s=`${s} ${t.summary||t.description||""}`),r.includes("search-api-params")&&(s=`${s} ${(null===(i=t.parameters)||void 0===i?void 0:i.map((e=>e.name)).join(" "))||""}`),r.includes("search-api-request-body")&&t.requestBody){let e=new Set;for(const r in null===(o=t.requestBody)||void 0===o?void 0:o.content){var o,a,l;null!==(a=t.requestBody.content[r].schema)&&void 0!==a&&a.properties&&(e=dt(null===(l=t.requestBody.content[r].schema)||void 0===l?void 0:l.properties)),s=`${s} ${[...e].join(" ")}`}}r.includes("search-api-resp-descr")&&(s=`${s} ${Object.values(t.responses).map((e=>e.description||"")).join(" ")}`),s.toLowerCase().includes(e.trim().toLowerCase())&&n.push({elementId:t.elementId,method:t.method,path:t.path,summary:t.summary||t.description||"",deprecated:t.deprecated})}))})),n}(e.value,this.resolvedSpec.tags,t)}),t)}}customElements.define("rapi-doc",TG);customElements.define("rapi-doc-mini",class extends ce{constructor(){super(),this.isMini=!0,this.updateRoute="false",this.renderStyle="view",this.showHeader="false",this.allowAdvancedSearch="false"}static get properties(){return{specUrl:{type:String,attribute:"spec-url"},sortEndpointsBy:{type:String,attribute:"sort-endpoints-by"},layout:{type:String},pathsExpanded:{type:String,attribute:"paths-expanded"},defaultSchemaTab:{type:String,attribute:"default-schema-tab"},responseAreaHeight:{type:String,attribute:"response-area-height"},showSummaryWhenCollapsed:{type:String,attribute:"show-summary-when-collapsed"},fillRequestFieldsWithExample:{type:String,attribute:"fill-request-fields-with-example"},persistAuth:{type:String,attribute:"persist-auth"},schemaStyle:{type:String,attribute:"schema-style"},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},apiKeyName:{type:String,attribute:"api-key-name"},apiKeyLocation:{type:String,attribute:"api-key-location"},apiKeyValue:{type:String,attribute:"api-key-value"},defaultApiServerUrl:{type:String,attribute:"default-api-server"},serverUrl:{type:String,attribute:"server-url"},oauthReceiver:{type:String,attribute:"oauth-receiver"},allowTry:{type:String,attribute:"allow-try"},theme:{type:String},bgColor:{type:String,attribute:"bg-color"},textColor:{type:String,attribute:"text-color"},primaryColor:{type:String,attribute:"primary-color"},fontSize:{type:String,attribute:"font-size"},regularFont:{type:String,attribute:"regular-font"},monoFont:{type:String,attribute:"mono-font"},loadFonts:{type:String,attribute:"load-fonts"},fetchCredentials:{type:String,attribute:"fetch-credentials"},matchPaths:{type:String,attribute:"match-paths"},matchType:{type:String,attribute:"match-type"},loading:{type:Boolean}}}static get styles(){return[Ze,Xe,Qe,et,tt,rt,nt,st,it,c`
:host {
display:flex;
flex-direction: column;
min-width:360px;
width:100%;
height:100%;
margin:0;
padding:0;
overflow: hidden;
letter-spacing:normal;
color:var(--fg);
background-color:var(--bg);
font-family:var(--font-regular);
}
@media only screen and (min-width: 768px) {
.only-large-screen{
display:block;
}
.only-large-screen-flex{
display:flex;
}
}`]}connectedCallback(){if(super.connectedCallback(),"false"!==this.loadFonts){const e={family:"Open Sans",style:"normal",weight:"300",unicodeRange:"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD"},t=new FontFace("Open Sans","url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OUuhpKKSTjw.woff2) format('woff2')",e);e.weight="600";const r=new FontFace("Open Sans","url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOUuhpKKSTjw.woff2) format('woff2')",e);t.load().then((e=>{document.fonts.add(e)})),r.load().then((e=>{document.fonts.add(e)}))}this.showSummaryWhenCollapsed&&"true, false,".includes(`${this.showSummaryWhenCollapsed},`)||(this.showSummaryWhenCollapsed="true"),this.layout&&"row, column,".includes(`${this.layout},`)||(this.layout="row"),this.schemaStyle&&"tree, table,".includes(`${this.schemaStyle},`)||(this.schemaStyle="tree"),this.theme&&"light, dark,".includes(`${this.theme},`)||(this.theme=window.matchMedia&&window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"),this.defaultSchemaTab&&"example, schema, model,".includes(`${this.defaultSchemaTab},`)?"model"===this.defaultSchemaTab&&(this.defaultSchemaTab="schema"):this.defaultSchemaTab="example",this.pathsExpanded="true"===this.pathsExpanded,(!this.schemaExpandLevel||this.schemaExpandLevel<1)&&(this.schemaExpandLevel=99999),this.schemaDescriptionExpanded&&"true, false,".includes(`${this.schemaDescriptionExpanded},`)||(this.schemaDescriptionExpanded="false"),this.fillRequestFieldsWithExample&&"true, false,".includes(`${this.fillRequestFieldsWithExample},`)||(this.fillRequestFieldsWithExample="true"),this.persistAuth&&"true, false,".includes(`${this.persistAuth},`)||(this.persistAuth="false"),this.responseAreaHeight||(this.responseAreaHeight="300px"),this.allowTry&&"true, false,".includes(`${this.allowTry},`)||(this.allowTry="true"),this.apiKeyValue||(this.apiKeyValue="-"),this.apiKeyLocation||(this.apiKeyLocation="header"),this.apiKeyName||(this.apiKeyName=""),this.oauthReceiver||(this.oauthReceiver="oauth-receiver.html"),this.sortTags&&"true, false,".includes(`${this.sortTags},`)||(this.sortTags="false"),this.sortEndpointsBy&&"method, path, summary,".includes(`${this.sortEndpointsBy},`)||(this.sortEndpointsBy="path"),this.fontSize&&"default, large, largest,".includes(`${this.fontSize},`)||(this.fontSize="default"),this.matchType&&"includes regex".includes(this.matchType)||(this.matchType="includes"),this.allowSchemaDescriptionExpandToggle&&"true, false,".includes(`${this.allowSchemaDescriptionExpandToggle},`)||(this.allowSchemaDescriptionExpandToggle="true"),this.fetchCredentials&&"omit, same-origin, include,".includes(`${this.fetchCredentials},`)||(this.fetchCredentials=""),Je.setOptions({highlight:(e,t)=>Ye().languages[t]?Ye().highlight(e,Ye().languages[t],t):e})}render(){return PG.call(this,!0,!1,!1,this.pathsExpanded)}attributeChangedCallback(e,t,r){if("spec-url"===e&&t!==r&&window.setTimeout((async()=>{await this.loadSpec(r)}),0),"api-key-name"===e||"api-key-location"===e||"api-key-value"===e){let t=!1,n="",s="",i="";if("api-key-name"===e?this.getAttribute("api-key-location")&&this.getAttribute("api-key-value")&&(n=r,s=this.getAttribute("api-key-location"),i=this.getAttribute("api-key-value"),t=!0):"api-key-location"===e?this.getAttribute("api-key-name")&&this.getAttribute("api-key-value")&&(s=r,n=this.getAttribute("api-key-name"),i=this.getAttribute("api-key-value"),t=!0):"api-key-value"===e&&this.getAttribute("api-key-name")&&this.getAttribute("api-key-location")&&(i=r,s=this.getAttribute("api-key-location"),n=this.getAttribute("api-key-name"),t=!0),t&&this.resolvedSpec){const e=this.resolvedSpec.securitySchemes.find((e=>e.securitySchemeId===lt));e?(e.name=n,e.in=s,e.value=i,e.finalKeyValue=i):this.resolvedSpec.securitySchemes.push({apiKeyId:lt,description:"api-key provided in rapidoc element attributes",type:"apiKey",name:n,in:s,value:i,finalKeyValue:i}),this.requestUpdate()}}super.attributeChangedCallback(e,t,r)}onSpecUrlChange(){this.setAttribute("spec-url",this.shadowRoot.getElementById("spec-url").value)}async loadSpec(e){if(e)try{this.resolvedSpec={specLoadError:!1,isSpecLoading:!0,tags:[]},this.loading=!0,this.loadFailed=!1,this.requestUpdate();const t=await KV.call(this,e,"true"===this.generateMissingTags,"true"===this.sortTags,this.getAttribute("sort-endpoints-by"),this.getAttribute("api-key-name"),this.getAttribute("api-key-location"),this.getAttribute("api-key-value"),this.getAttribute("server-url"));this.loading=!1,this.afterSpecParsedAndValidated(t)}catch(e){this.loading=!1,this.loadFailed=!0,this.resolvedSpec=null,console.error(`RapiDoc: Unable to resolve the API spec.. ${e.message}`)}}setHttpUserNameAndPassword(e,t,r){return cW.call(this,e,t,r)}setApiKey(e,t){return cW.call(this,e,"","",t)}removeAllSecurityKeys(){return pW.call(this)}setApiServer(e){return iG.call(this,e)}async afterSpecParsedAndValidated(e){for(this.resolvedSpec=e,this.selectedServer=void 0,this.defaultApiServerUrl&&(this.defaultApiServerUrl===this.serverUrl?this.selectedServer={url:this.serverUrl,computedUrl:this.serverUrl}:this.resolvedSpec.servers&&(this.selectedServer=this.resolvedSpec.servers.find((e=>e.url===this.defaultApiServerUrl)))),this.selectedServer||this.resolvedSpec.servers&&(this.selectedServer=this.resolvedSpec.servers[0]),this.requestUpdate();!await this.updateComplete;);const t=new CustomEvent("spec-loaded",{detail:e});this.dispatchEvent(t)}handleHref(e){if("a"===e.target.tagName.toLowerCase()&&e.target.getAttribute("href").startsWith("#")){const t=this.shadowRoot.getElementById(e.target.getAttribute("href").replace("#",""));t&&t.scrollIntoView({behavior:"auto",block:"start"})}}});class CG extends HTMLElement{connectedCallback(){this.receiveAuthParms(),window.addEventListener("storage",(e=>this.receiveStorage(e)),!0)}receiveAuthParms(){let e={};if(document.location.search){const t=new URLSearchParams(document.location.search);e={code:t.get("code"),error:t.get("error"),state:t.get("state"),responseType:"code"}}else if(window.location.hash){e={token_type:this.parseQueryString(window.location.hash.substring(1),"token_type"),access_token:this.parseQueryString(window.location.hash.substring(1),"access_token"),responseType:"token"}}window.opener?window.opener.postMessage(e,this.target):sessionStorage.setItem("rapidoc-oauth-data",JSON.stringify(e))}relayAuthParams(e){if(window.parent&&"rapidoc-oauth-data"===e.key){const t=JSON.parse(e.newValue);window.parent.postMessage(t,this.target)}}parseQueryString(e,t){const r=e.split("&");for(let e=0;e<r.length;e++){const n=r[e].split("=");if(decodeURIComponent(n[0])===t)return decodeURIComponent(n[1])}}}function IG(){return z`
<nav class='nav-bar' part="section-navbar">
<slot name="nav-logo" class="logo"></slot>
<div style="display:flex;line-height:22px; padding:8px">
<input id="nav-bar-search"
part = "textbox textbox-nav-filter"
style = "width:100%; height: 26px; padding-right:20px; color:var(--nav-hover-text-color); border-color:var(--nav-accent-color); background-color:var(--nav-hover-bg-color)"
type = "text"
placeholder = "Filter"
@change = "${this.onSearchChange}"
spellcheck = "false"
>
<div style="margin: 6px 5px 0 -24px; font-size:var(--font-size-regular); cursor:pointer;">&#x21a9;</div>
</div>
<nav style="flex:1" class='nav-scroll' part="section-navbar-scroll">
${this.resolvedSpec.schemaAndExamples.map((e=>z`
<div class='nav-bar-path' data-content-id='${e.elementId}' id='link-${e.elementId}'
@click = '${e=>{this.scrollToEventTarget(e,!1)}}'
>
${e.name}
</div>`))}
</nav>
</nav>
`}function RG(){return z`
${"true"===this.showInfo?sG.call(this):""}
<div style="font-size:var(--font-size-regular);">
${this.resolvedSpec.schemaAndExamples.map((e=>{var t;const r=WW(e.schema,"json",e.examples,e.example,!0,!1,"json",!0);return e.selectedExample=null===(t=r[0])||void 0===t?void 0:t.exampleId,z`
<section id='${e.elementId}' class='json-schema-and-example regular-font' style="display:flex; flex-direction: column; border:1px solid var(--border-color); margin-bottom:32px; border-top: 5px solid var(--border-color)">
<div style="padding:16px; border-bottom: 1px solid var(--border-color)">
<div style="font-size:var(--font-size-small); font-weight:bold">${e.name}</div>
<span class="json-schema-description m-markdown ">${sW(Je(e.description||""))}</span>
</div>
<div style="display:flex; flex-direction: row; gap:16px;">
<div class="json-schema-def" style="flex:1; padding:16px 0 16px 16px; ">
<schema-tree
.data = "${VW(e.schema,{})}"
schema-expand-level = "${this.schemaExpandLevel}"
schema-description-expanded = "${this.schemaDescriptionExpanded}"
allow-schema-description-expand-toggle = "${this.allowSchemaDescriptionExpandToggle}"
schema-hide-read-only = "false"
schema-hide-write-only = "false"
> </schema-tree>
</div>
<div class="json-schema-example-panel" style="width:400px; background-color: var(--input-bg); padding:16px 0 16px 16px; border-left: 1px dashed var(--border-color);">
${r.length>1?z`<select style="min-width:100px; max-width:100%" @change='${t=>this.onSelectExample(t,e)}'>
${r.map((t=>z`
<option value="${t.exampleId}" ?selected=${t.exampleId===e.selectedExample}>
${t.exampleSummary.length>80?t.exampleId:t.exampleSummary}
</option>`))}
</select>`:z`<div style="font-size: var(--font-size-small);font-weight:700; margin:5px 0"> ${r[0].exampleSummary}</div>`}
${r.map((t=>z`
<json-tree
.data = "${t.exampleValue}"
data-example = "${t.exampleId}"
class = "example"
style = "margin-top:16px; display: ${t.exampleId===e.selectedExample?"flex":"none"}"
></json-tree>`))}
</div>
</div>
</section>`}))}
</div>
`}function _G(e=!1){if(!this.resolvedSpec)return"";const t={bg1:jG(this.bgColor)?this.bgColor:"",fg1:jG(this.textColor)?this.textColor:"",headerColor:jG(this.headerColor)?this.headerColor:"",primaryColor:jG(this.primaryColor)?this.primaryColor:"",navBgColor:jG(this.navBgColor)?this.navBgColor:"",navTextColor:jG(this.navTextColor)?this.navTextColor:"",navHoverBgColor:jG(this.navHoverBgColor)?this.navHoverBgColor:"",navHoverTextColor:jG(this.navHoverTextColor)?this.navHoverTextColor:"",navAccentColor:jG(this.navAccentColor)?this.navAccentColor:"",navAccenttextColor:jG(this.navAccentTextColor)?this.navAccentTextColor:""};return this.resolvedSpec.specLoadError?e?z`
${"dark"===this.theme?AG.call(this,"dark",t):AG.call(this,"light",t)}
<div style="display:flex; align-items:center; border:1px dashed var(--border-color); height:42px; padding:5px; font-size:var(--font-size-small); color:var(--red); font-family:var(--font-mono)"> ${this.resolvedSpec.info.description} </div>
`:z`
${"dark"===this.theme?AG.call(this,"dark",t):AG.call(this,"light",t)}
<!-- Header -->
${SG.call(this)}
<h1> Header </h1>
<main class="main-content regular-font" part="section-main-content">
<slot></slot>
<div style="margin:24px; text-align: center;">
<h1 style="color: var(--red)"> ${this.resolvedSpec.info.title} </h1>
<div style="font-family:var(--font-mono)"> ${this.resolvedSpec.info.description} </div>
</div>
</main>
`:this.resolvedSpec.isSpecLoading?z`
${"dark"===this.theme?AG.call(this,"dark",t):AG.call(this,"light",t)}
<main class="main-content regular-font" part="section-main-content">
<slot></slot>
<div class="main-content-inner--${this.renderStyle}-mode">
<div class="loader"></div>
</div>
</main>
`:z`
${"dark"===this.theme?AG.call(this,"dark",t):AG.call(this,"light",t)}
<!-- Header -->
${"false"===this.showHeader?"":SG.call(this)}
<div id='the-main-body' class="body ${this.cssClasses}" dir= ${this.pageDirection}>
<!-- Side Nav -->
${IG.call(this)}
<!-- Main Content -->
<main class="main-content regular-font" part="section-main-content">
<slot></slot>
<div class="main-content-inner--${this.renderStyle}-mode">
${!0===this.loading?z`<div class="loader"></div>`:z`
${!0===this.loadFailed?z`<div style="text-align: center;margin: 16px;"> Unable to load the Spec</div>`:z`
<div class="operations-root" @click="${e=>{this.handleHref(e)}}">
${RG.call(this)}
</div>
`}`}
</div>
<slot name="footer"></slot>
</main>
</div>
`}customElements.define("oauth-receiver",CG);customElements.define("json-schema-viewer",class extends ce{constructor(){super(),this.isMini=!1,this.updateRoute="false",this.renderStyle="focused",this.showHeader="true",this.allowAdvancedSearch="false",this.selectedExampleForEachSchema={}}static get properties(){return{specUrl:{type:String,attribute:"spec-url"},schemaStyle:{type:String,attribute:"schema-style"},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},allowSchemaDescriptionExpandToggle:{type:String,attribute:"allow-schema-description-expand-toggle"},showHeader:{type:String,attribute:"show-header"},showSideNav:{type:String,attribute:"show-side-nav"},showInfo:{type:String,attribute:"show-info"},allowSpecUrlLoad:{type:String,attribute:"allow-spec-url-load"},allowSpecFileLoad:{type:String,attribute:"allow-spec-file-load"},allowSpecFileDownload:{type:String,attribute:"allow-spec-file-download"},allowSearch:{type:String,attribute:"allow-search"},theme:{type:String},bgColor:{type:String,attribute:"bg-color"},textColor:{type:String,attribute:"text-color"},primaryColor:{type:String,attribute:"primary-color"},fontSize:{type:String,attribute:"font-size"},regularFont:{type:String,attribute:"regular-font"},monoFont:{type:String,attribute:"mono-font"},loadFonts:{type:String,attribute:"load-fonts"},loading:{type:Boolean}}}static get styles(){return[Ze,Xe,Qe,et,tt,rt,nt,st,it,c`
:host {
display:flex;
flex-direction: column;
min-width:360px;
width:100%;
height:100%;
margin:0;
padding:0;
overflow: hidden;
letter-spacing:normal;
color:var(--fg);
background-color:var(--bg);
font-family:var(--font-regular);
}
.body {
display:flex;
height:100%;
width:100%;
overflow:hidden;
}
.nav-bar {
width: 230px;
display:flex;
}
.main-content {
margin:0;
padding: 16px;
display:block;
flex:1;
height:100%;
overflow-y: auto;
overflow-x: hidden;
scrollbar-width: thin;
scrollbar-color: var(--border-color) transparent;
}
.main-content-inner--view-mode {
padding: 0 8px;
}
.main-content::-webkit-scrollbar {
width: 8px;
height: 8px;
}
.main-content::-webkit-scrollbar-track {
background:transparent;
}
.main-content::-webkit-scrollbar-thumb {
background-color: var(--border-color);
}
.main-header {
background-color:var(--header-bg);
color:var(--header-fg);
width:100%;
}
.header-title {
font-size:calc(var(--font-size-regular) + 8px);
padding:0 8px;
}
input.header-input{
background:var(--header-color-darker);
color:var(--header-fg);
border:1px solid var(--header-color-border);
flex:1;
padding-right:24px;
border-radius:3px;
}
input.header-input::placeholder {
opacity:0.4;
}
.loader {
margin: 16px auto 16px auto;
border: 4px solid var(--bg3);
border-radius: 50%;
border-top: 4px solid var(--primary-color);
width: 36px;
height: 36px;
animation: spin 2s linear infinite;
}
@media only screen and (min-width: 768px) {
.only-large-screen{
display:block;
}
.only-large-screen-flex{
display:flex;
}
}`]}connectedCallback(){super.connectedCallback();const e=this.parentElement;if(e&&(0===e.offsetWidth&&""===e.style.width&&(e.style.width="100vw"),0===e.offsetHeight&&""===e.style.height&&(e.style.height="100vh"),"BODY"===e.tagName&&(e.style.marginTop||(e.style.marginTop="0"),e.style.marginRight||(e.style.marginRight="0"),e.style.marginBottom||(e.style.marginBottom="0"),e.style.marginLeft||(e.style.marginLeft="0"))),"false"!==this.loadFonts){const e={family:"Open Sans",style:"normal",weight:"300",unicodeRange:"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD"},t=new FontFace("Open Sans","url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OUuhpKKSTjw.woff2) format('woff2')",e);e.weight="600";const r=new FontFace("Open Sans","url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOUuhpKKSTjw.woff2) format('woff2')",e);t.load().then((e=>{document.fonts.add(e)})),r.load().then((e=>{document.fonts.add(e)}))}this.renderStyle="focused",this.pathsExpanded="true"===this.pathsExpanded,this.showInfo&&"true, false,".includes(`${this.showInfo},`)||(this.showInfo="true"),this.showSideNav&&"true false".includes(this.showSideNav)||(this.showSideNav="true"),this.showHeader&&"true, false,".includes(`${this.showHeader},`)||(this.showHeader="true"),this.schemaStyle&&"tree, table,".includes(`${this.schemaStyle},`)||(this.schemaStyle="tree"),this.theme&&"light, dark,".includes(`${this.theme},`)||(this.theme=window.matchMedia&&window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"),this.allowSearch&&"true, false,".includes(`${this.allowSearch},`)||(this.allowSearch="true"),(!this.schemaExpandLevel||this.schemaExpandLevel<1)&&(this.schemaExpandLevel=99999),this.schemaDescriptionExpanded&&"true, false,".includes(`${this.schemaDescriptionExpanded},`)||(this.schemaDescriptionExpanded="false"),this.fontSize&&"default, large, largest,".includes(`${this.fontSize},`)||(this.fontSize="default"),this.matchType&&"includes regex".includes(this.matchType)||(this.matchType="includes"),this.allowSchemaDescriptionExpandToggle&&"true, false,".includes(`${this.allowSchemaDescriptionExpandToggle},`)||(this.allowSchemaDescriptionExpandToggle="true"),Je.setOptions({highlight:(e,t)=>Ye().languages[t]?Ye().highlight(e,Ye().languages[t],t):e})}render(){return _G.call(this,!0,!1,!1,this.pathsExpanded)}attributeChangedCallback(e,t,r){"spec-url"===e&&t!==r&&window.setTimeout((async()=>{await this.loadSpec(r)}),0),super.attributeChangedCallback(e,t,r)}onSpecUrlChange(){this.setAttribute("spec-url",this.shadowRoot.getElementById("spec-url").value)}onSearchChange(e){this.matchPaths=e.target.value}async loadSpec(e){if(e)try{this.resolvedSpec={specLoadError:!1,isSpecLoading:!0,tags:[]},this.loading=!0,this.loadFailed=!1,this.requestUpdate();const t=await KV.call(this,e,"true"===this.generateMissingTags,"true"===this.sortTags,this.getAttribute("sort-endpoints-by"));this.loading=!1,this.afterSpecParsedAndValidated(t)}catch(e){this.loading=!1,this.loadFailed=!0,this.resolvedSpec=null,console.error(`RapiDoc: Unable to resolve the API spec.. ${e.message}`)}}async afterSpecParsedAndValidated(e){this.resolvedSpec=e;const t=new CustomEvent("spec-loaded",{detail:e});this.dispatchEvent(t)}handleHref(e){if("a"===e.target.tagName.toLowerCase()&&e.target.getAttribute("href").startsWith("#")){const t=this.shadowRoot.getElementById(e.target.getAttribute("href").replace("#",""));t&&t.scrollIntoView({behavior:"auto",block:"start"})}}onSelectExample(e){[...e.target.closest(".json-schema-example-panel").querySelectorAll(".example")].forEach((t=>{t.style.display=t.dataset.example===e.target.value?"flex":"none"}))}async scrollToEventTarget(e){const t=e.currentTarget;if(!t.dataset.contentId)return;const r=this.shadowRoot.getElementById(t.dataset.contentId);r&&r.scrollIntoView({behavior:"auto",block:"start"})}})},742:(e,t)=>{"use strict";t.byteLength=function(e){var t=a(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,i=a(e),o=i[0],l=i[1],c=new s(function(e,t,r){return 3*(t+r)/4-r}(0,o,l)),p=0,u=l>0?o-4:o;for(r=0;r<u;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],c[p++]=t>>16&255,c[p++]=t>>8&255,c[p++]=255&t;2===l&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[p++]=255&t);1===l&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[p++]=t>>8&255,c[p++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,s=n%3,i=[],o=16383,a=0,c=n-s;a<c;a+=o)i.push(l(e,a,a+o>c?c:a+o));1===s?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===s&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],n=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)r[o]=i[o],n[i.charCodeAt(o)]=o;function a(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,n){for(var s,i,o=[],a=t;a<n;a+=3)s=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(r[(i=s)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},764:(e,t,r)=>{"use strict";const n=r(742),s=r(645),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.lW=l,t.h2=50;const o=2147483647;function a(e){if(e>o)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return u(e)}return c(e,t,r)}function c(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|m(e,t);let n=a(r);const s=n.write(e,t);s!==r&&(n=n.slice(0,s));return n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(K(e,Uint8Array)){const t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(K(e,ArrayBuffer)||e&&K(e.buffer,ArrayBuffer))return h(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(K(e,SharedArrayBuffer)||e&&K(e.buffer,SharedArrayBuffer)))return h(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return l.from(n,t,r);const s=function(e){if(l.isBuffer(e)){const t=0|f(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||Y(e.length)?a(0):d(e);if("Buffer"===e.type&&Array.isArray(e.data))return d(e.data)}(e);if(s)return s;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function p(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return p(e),a(e<0?0:0|f(e))}function d(e){const t=e.length<0?0:0|f(e.length),r=a(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function h(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,l.prototype),n}function f(e){if(e>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||K(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let s=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return G(e).length;default:if(s)return n?-1:W(e).length;t=(""+t).toLowerCase(),s=!0}}function y(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,r);case"utf8":case"utf-8":return O(this,t,r);case"ascii":return A(this,t,r);case"latin1":case"binary":return P(this,t,r);case"base64":return k(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function g(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function v(e,t,r,n,s){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Y(r=+r)&&(r=s?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(s)return-1;r=e.length-1}else if(r<0){if(!s)return-1;r=0}if("string"==typeof t&&(t=l.from(t,n)),l.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,s);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?s?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,n,s);throw new TypeError("val must be string, number or Buffer")}function b(e,t,r,n,s){let i,o=1,a=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,a/=2,l/=2,r/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(s){let n=-1;for(i=r;i<a;i++)if(c(e,i)===c(t,-1===n?0:i-n)){if(-1===n&&(n=i),i-n+1===l)return n*o}else-1!==n&&(i-=i-n),n=-1}else for(r+l>a&&(r=a-l),i=r;i>=0;i--){let r=!0;for(let n=0;n<l;n++)if(c(e,i+n)!==c(t,n)){r=!1;break}if(r)return i}return-1}function x(e,t,r,n){r=Number(r)||0;const s=e.length-r;n?(n=Number(n))>s&&(n=s):n=s;const i=t.length;let o;for(n>i/2&&(n=i/2),o=0;o<n;++o){const n=parseInt(t.substr(2*o,2),16);if(Y(n))return o;e[r+o]=n}return o}function w(e,t,r,n){return J(W(t,e.length-r),e,r,n)}function $(e,t,r,n){return J(function(e){const t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function S(e,t,r,n){return J(G(t),e,r,n)}function E(e,t,r,n){return J(function(e,t){let r,n,s;const i=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)r=e.charCodeAt(o),n=r>>8,s=r%256,i.push(s),i.push(n);return i}(t,e.length-r),e,r,n)}function k(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function O(e,t,r){r=Math.min(e.length,r);const n=[];let s=t;for(;s<r;){const t=e[s];let i=null,o=t>239?4:t>223?3:t>191?2:1;if(s+o<=r){let r,n,a,l;switch(o){case 1:t<128&&(i=t);break;case 2:r=e[s+1],128==(192&r)&&(l=(31&t)<<6|63&r,l>127&&(i=l));break;case 3:r=e[s+1],n=e[s+2],128==(192&r)&&128==(192&n)&&(l=(15&t)<<12|(63&r)<<6|63&n,l>2047&&(l<55296||l>57343)&&(i=l));break;case 4:r=e[s+1],n=e[s+2],a=e[s+3],128==(192&r)&&128==(192&n)&&128==(192&a)&&(l=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&a,l>65535&&l<1114112&&(i=l))}}null===i?(i=65533,o=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i),s+=o}return function(e){const t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=j));return r}(n)}l.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,r){return c(e,t,r)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,r){return function(e,t,r){return p(e),e<=0?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)}(e,t,r)},l.allocUnsafe=function(e){return u(e)},l.allocUnsafeSlow=function(e){return u(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(K(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),K(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let s=0,i=Math.min(r,n);s<i;++s)if(e[s]!==t[s]){r=e[s],n=t[s];break}return r<n?-1:n<r?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);let r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const n=l.allocUnsafe(t);let s=0;for(r=0;r<e.length;++r){let t=e[r];if(K(t,Uint8Array))s+t.length>n.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(n,s)):Uint8Array.prototype.set.call(n,t,s);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,s)}s+=t.length}return n},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)g(this,t,t+1);return this},l.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},l.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},l.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?O(this,0,e):y.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){let e="";const r=t.h2;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},i&&(l.prototype[i]=l.prototype.inspect),l.prototype.compare=function(e,t,r,n,s){if(K(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===s&&(s=this.length),t<0||r>e.length||n<0||s>this.length)throw new RangeError("out of range index");if(n>=s&&t>=r)return 0;if(n>=s)return-1;if(t>=r)return 1;if(this===e)return 0;let i=(s>>>=0)-(n>>>=0),o=(r>>>=0)-(t>>>=0);const a=Math.min(i,o),c=this.slice(n,s),p=e.slice(t,r);for(let e=0;e<a;++e)if(c[e]!==p[e]){i=c[e],o=p[e];break}return i<o?-1:o<i?1:0},l.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},l.prototype.indexOf=function(e,t,r){return v(this,e,t,r,!0)},l.prototype.lastIndexOf=function(e,t,r){return v(this,e,t,r,!1)},l.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const s=this.length-t;if((void 0===r||r>s)&&(r=s),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let i=!1;for(;;)switch(n){case"hex":return x(this,e,t,r);case"utf8":case"utf-8":return w(this,e,t,r);case"ascii":case"latin1":case"binary":return $(this,e,t,r);case"base64":return S(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const j=4096;function A(e,t,r){let n="";r=Math.min(e.length,r);for(let s=t;s<r;++s)n+=String.fromCharCode(127&e[s]);return n}function P(e,t,r){let n="";r=Math.min(e.length,r);for(let s=t;s<r;++s)n+=String.fromCharCode(e[s]);return n}function T(e,t,r){const n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let s="";for(let n=t;n<r;++n)s+=Z[e[n]];return s}function C(e,t,r){const n=e.slice(t,r);let s="";for(let e=0;e<n.length-1;e+=2)s+=String.fromCharCode(n[e]+256*n[e+1]);return s}function I(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,r,n,s,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>s||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function _(e,t,r,n,s){U(t,n,s,e,r,7);let i=Number(t&BigInt(4294967295));e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,r}function F(e,t,r,n,s){U(t,n,s,e,r,7);let i=Number(t&BigInt(4294967295));e[r+7]=i,i>>=8,e[r+6]=i,i>>=8,e[r+5]=i,i>>=8,e[r+4]=i;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=o,o>>=8,e[r+2]=o,o>>=8,e[r+1]=o,o>>=8,e[r]=o,r+8}function D(e,t,r,n,s,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function M(e,t,r,n,i){return t=+t,r>>>=0,i||D(e,0,r,4),s.write(e,t,r,n,23,4),r+4}function q(e,t,r,n,i){return t=+t,r>>>=0,i||D(e,0,r,8),s.write(e,t,r,n,52,8),r+8}l.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);const n=this.subarray(e,t);return Object.setPrototypeOf(n,l.prototype),n},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||I(e,t,this.length);let n=this[e],s=1,i=0;for(;++i<t&&(s*=256);)n+=this[e+i]*s;return n},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||I(e,t,this.length);let n=this[e+--t],s=1;for(;t>0&&(s*=256);)n+=this[e+--t]*s;return n},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=X((function(e){z(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||H(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,s=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(s)<<BigInt(32))})),l.prototype.readBigUInt64BE=X((function(e){z(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||H(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],s=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(s)})),l.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||I(e,t,this.length);let n=this[e],s=1,i=0;for(;++i<t&&(s*=256);)n+=this[e+i]*s;return s*=128,n>=s&&(n-=Math.pow(2,8*t)),n},l.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||I(e,t,this.length);let n=t,s=1,i=this[e+--n];for(;n>0&&(s*=256);)i+=this[e+--n]*s;return s*=128,i>=s&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||I(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt16BE=function(e,t){e>>>=0,t||I(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=X((function(e){z(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||H(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),l.prototype.readBigInt64BE=X((function(e){z(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||H(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)})),l.prototype.readFloatLE=function(e,t){return e>>>=0,t||I(e,4,this.length),s.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||I(e,4,this.length),s.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||I(e,8,this.length),s.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||I(e,8,this.length),s.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){R(this,e,t,r,Math.pow(2,8*r)-1,0)}let s=1,i=0;for(this[t]=255&e;++i<r&&(s*=256);)this[t+i]=e/s&255;return t+r},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){R(this,e,t,r,Math.pow(2,8*r)-1,0)}let s=r-1,i=1;for(this[t+s]=255&e;--s>=0&&(i*=256);)this[t+s]=e/i&255;return t+r},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=X((function(e,t=0){return _(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=X((function(e,t=0){return F(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);R(this,e,t,r,n-1,-n)}let s=0,i=1,o=0;for(this[t]=255&e;++s<r&&(i*=256);)e<0&&0===o&&0!==this[t+s-1]&&(o=1),this[t+s]=(e/i>>0)-o&255;return t+r},l.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);R(this,e,t,r,n-1,-n)}let s=r-1,i=1,o=0;for(this[t+s]=255&e;--s>=0&&(i*=256);)e<0&&0===o&&0!==this[t+s+1]&&(o=1),this[t+s]=(e/i>>0)-o&255;return t+r},l.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=X((function(e,t=0){return _(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=X((function(e,t=0){return F(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(e,t,r){return M(this,e,t,!0,r)},l.prototype.writeFloatBE=function(e,t,r){return M(this,e,t,!1,r)},l.prototype.writeDoubleLE=function(e,t,r){return q(this,e,t,!0,r)},l.prototype.writeDoubleBE=function(e,t,r){return q(this,e,t,!1,r)},l.prototype.copy=function(e,t,r,n){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);const s=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),s},l.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!l.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){const t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;let s;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(s=t;s<r;++s)this[s]=e;else{const i=l.isBuffer(e)?e:l.from(e,n),o=i.length;if(0===o)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(s=0;s<r-t;++s)this[s+t]=i[s%o]}return this};const L={};function B(e,t,r){L[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function N(e){let t="",r=e.length;const n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function U(e,t,r,n,s,i){if(e>r||e<t){const n="bigint"==typeof t?"n":"";let s;throw s=i>3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(i+1)}${n}`:`>= -(2${n} ** ${8*(i+1)-1}${n}) and < 2 ** ${8*(i+1)-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new L.ERR_OUT_OF_RANGE("value",s,e)}!function(e,t,r){z(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||H(t,e.length-(r+1))}(n,s,i)}function z(e,t){if("number"!=typeof e)throw new L.ERR_INVALID_ARG_TYPE(t,"number",e)}function H(e,t,r){if(Math.floor(e)!==e)throw z(e,r),new L.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new L.ERR_BUFFER_OUT_OF_BOUNDS;throw new L.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}B("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),B("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),B("ERR_OUT_OF_RANGE",(function(e,t,r){let n=`The value of "${e}" is out of range.`,s=r;return Number.isInteger(r)&&Math.abs(r)>2**32?s=N(String(r)):"bigint"==typeof r&&(s=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(s=N(s)),s+="n"),n+=` It must be ${t}. Received ${s}`,n}),RangeError);const V=/[^+/0-9A-Za-z-_]/g;function W(e,t){let r;t=t||1/0;const n=e.length;let s=null;const i=[];for(let o=0;o<n;++o){if(r=e.charCodeAt(o),r>55295&&r<57344){if(!s){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&i.push(239,191,189);continue}s=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),s=r;continue}r=65536+(s-55296<<10|r-56320)}else s&&(t-=3)>-1&&i.push(239,191,189);if(s=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function G(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(V,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function J(e,t,r,n){let s;for(s=0;s<n&&!(s+r>=t.length||s>=e.length);++s)t[s+r]=e[s];return s}function K(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!=e}const Z=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let s=0;s<16;++s)t[n+s]=e[r]+e[s]}return t}();function X(e){return"undefined"==typeof BigInt?Q:e}function Q(){throw new Error("BigInt not supported")}},645:(e,t)=>{t.read=function(e,t,r,n,s){var i,o,a=8*s-n-1,l=(1<<a)-1,c=l>>1,p=-7,u=r?s-1:0,d=r?-1:1,h=e[t+u];for(u+=d,i=h&(1<<-p)-1,h>>=-p,p+=a;p>0;i=256*i+e[t+u],u+=d,p-=8);for(o=i&(1<<-p)-1,i>>=-p,p+=n;p>0;o=256*o+e[t+u],u+=d,p-=8);if(0===i)i=1-c;else{if(i===l)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,n),i-=c}return(h?-1:1)*o*Math.pow(2,i-n)},t.write=function(e,t,r,n,s,i){var o,a,l,c=8*i-s-1,p=(1<<c)-1,u=p>>1,d=23===s?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,f=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=p):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+u>=1?d/l:d*Math.pow(2,1-u))*l>=2&&(o++,l/=2),o+u>=p?(a=0,o=p):o+u>=1?(a=(t*l-1)*Math.pow(2,s),o+=u):(a=t*Math.pow(2,u-1)*Math.pow(2,s),o=0));s>=8;e[r+h]=255&a,h+=f,a/=256,s-=8);for(o=o<<s|a,c+=s;c>0;e[r+h]=255&o,h+=f,o/=256,c-=8);e[r+h-f]|=128*m}},874:()=>{!function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},n={bash:r,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:n},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:n.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:n.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=e.languages.bash;for(var s=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=n.variable[1].inside,o=0;o<s.length;o++)i[s[o]]=e.languages.bash[s[o]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash}(Prism)},16:()=>{!function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,r){return"(?:"+t[+r]+")"}))}function r(e,r,n){return RegExp(t(e,r),n||"")}function n(e,t){for(var r=0;r<t;r++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}var s="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",o="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",a="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function l(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var c=l(i),p=RegExp(l(s+" "+i+" "+o+" "+a)),u=l(i+" "+o+" "+a),d=l(s+" "+i+" "+a),h=n(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),f=n(/\((?:[^()]|<<self>>)*\)/.source,2),m=/@?\b[A-Za-z_]\w*\b/.source,y=t(/<<0>>(?:\s*<<1>>)?/.source,[m,h]),g=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[u,y]),v=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[g,v]),x=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[h,f,v]),w=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[x]),$=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,g,v]),S={keyword:p,punctuation:/[<>()?,.:[\]]/},E=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,k=/"(?:\\.|[^\\"\r\n])*"/.source,O=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[O]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[k]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[g]),lookbehind:!0,inside:S},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[m,$]),lookbehind:!0,inside:S},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[m]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[c,y]),lookbehind:!0,inside:S},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[g]),lookbehind:!0,inside:S},{pattern:r(/(\bwhere\s+)<<0>>/.source,[m]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:S},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[$,d,m]),inside:S}],keyword:p,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[m]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[m]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[f]),lookbehind:!0,alias:"class-name",inside:S},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[$,g]),inside:S,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[$]),lookbehind:!0,inside:S,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[m,h]),inside:{function:r(/^<<0>>/.source,[m]),generic:{pattern:RegExp(h),alias:"class-name",inside:S}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[c,y,m,$,p.source,f,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[y,f]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:p,"class-name":{pattern:RegExp($),greedy:!0,inside:S},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var j=k+"|"+E,A=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[j]),P=n(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[A]),2),T=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,C=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[g,P]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[T,C]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[T]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[P]),inside:e.languages.csharp},"class-name":{pattern:RegExp(g),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var I=/:[^}\r\n]+/.source,R=n(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[A]),2),_=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[R,I]),F=n(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[j]),2),D=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[F,I]);function M(t,n){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[n,I]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[_]),lookbehind:!0,greedy:!0,inside:M(_,R)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[D]),lookbehind:!0,greedy:!0,inside:M(D,F)}],char:{pattern:RegExp(E),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(Prism)},251:()=>{!function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var r=e.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))}(Prism)},46:()=>{Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Prism.languages.go["class-name"]},57:()=>{!function(e){function t(e){return RegExp("(^(?:"+e+"):[ \t]*(?![ \t]))[^]+","i")}e.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:e.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:t(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:e.languages.csp},{pattern:t(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:e.languages.hpkp},{pattern:t(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:e.languages.hsts},{pattern:t(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var r,n=e.languages,s={"application/javascript":n.javascript,"application/json":n.json||n.javascript,"application/xml":n.xml,"text/xml":n.xml,"text/html":n.html,"text/css":n.css,"text/plain":n.plain},i={"application/json":!0,"application/xml":!0};function o(e){var t=e.replace(/^[a-z]+\//,"");return"(?:"+e+"|"+("\\w+/(?:[\\w.-]+\\+)+"+t+"(?![+\\w.-])")+")"}for(var a in s)if(s[a]){r=r||{};var l=i[a]?o(a):a;r[a.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+l+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:s[a]}}r&&e.languages.insertBefore("http","header",r)}(Prism)},503:()=>{!function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,n={pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[n,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:n.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:n.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":n,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:n.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:n.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism)},277:()=>{Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json},366:()=>{Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python},358:()=>{!function(e){var t=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,n="(?:"+r.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+r.source+")?)",s=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),i=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(e,t){t=(t||"").replace(/m/g,"")+"m";var r=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return n})).replace(/<<value>>/g,(function(){return e}));return RegExp(r,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return n}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return n})).replace(/<<key>>/g,(function(){return"(?:"+s+"|"+i+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(i),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(Prism)},660:(e,t,r)=>{var n=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,r=0,n={},s={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++r}),e.__id},clone:function e(t,r){var n,i;switch(r=r||{},s.util.type(t)){case"Object":if(i=s.util.objId(t),r[i])return r[i];for(var o in n={},r[i]=n,t)t.hasOwnProperty(o)&&(n[o]=e(t[o],r));return n;case"Array":return i=s.util.objId(t),r[i]?r[i]:(n=[],r[i]=n,t.forEach((function(t,s){n[s]=e(t,r)})),n);default:return t}},getLanguage:function(e){for(;e;){var r=t.exec(e.className);if(r)return r[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,r){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+r)},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(n){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(n.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var r in t)if(t[r].src==e)return t[r]}return null}},isActive:function(e,t,r){for(var n="no-"+t;e;){var s=e.classList;if(s.contains(t))return!0;if(s.contains(n))return!1;e=e.parentElement}return!!r}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var r=s.util.clone(s.languages[e]);for(var n in t)r[n]=t[n];return r},insertBefore:function(e,t,r,n){var i=(n=n||s.languages)[e],o={};for(var a in i)if(i.hasOwnProperty(a)){if(a==t)for(var l in r)r.hasOwnProperty(l)&&(o[l]=r[l]);r.hasOwnProperty(a)||(o[a]=i[a])}var c=n[e];return n[e]=o,s.languages.DFS(s.languages,(function(t,r){r===c&&t!=e&&(this[t]=o)})),o},DFS:function e(t,r,n,i){i=i||{};var o=s.util.objId;for(var a in t)if(t.hasOwnProperty(a)){r.call(t,a,t[a],n||a);var l=t[a],c=s.util.type(l);"Object"!==c||i[o(l)]?"Array"!==c||i[o(l)]||(i[o(l)]=!0,e(l,r,a,i)):(i[o(l)]=!0,e(l,r,null,i))}}},plugins:{},highlightAll:function(e,t){s.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,r){var n={callback:r,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",n),n.elements=Array.prototype.slice.apply(n.container.querySelectorAll(n.selector)),s.hooks.run("before-all-elements-highlight",n);for(var i,o=0;i=n.elements[o++];)s.highlightElement(i,!0===t,n.callback)},highlightElement:function(t,r,n){var i=s.util.getLanguage(t),o=s.languages[i];s.util.setLanguage(t,i);var a=t.parentElement;a&&"pre"===a.nodeName.toLowerCase()&&s.util.setLanguage(a,i);var l={element:t,language:i,grammar:o,code:t.textContent};function c(e){l.highlightedCode=e,s.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,s.hooks.run("after-highlight",l),s.hooks.run("complete",l),n&&n.call(l.element)}if(s.hooks.run("before-sanity-check",l),(a=l.element.parentElement)&&"pre"===a.nodeName.toLowerCase()&&!a.hasAttribute("tabindex")&&a.setAttribute("tabindex","0"),!l.code)return s.hooks.run("complete",l),void(n&&n.call(l.element));if(s.hooks.run("before-highlight",l),l.grammar)if(r&&e.Worker){var p=new Worker(s.filename);p.onmessage=function(e){c(e.data)},p.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(s.highlight(l.code,l.grammar,l.language));else c(s.util.encode(l.code))},highlight:function(e,t,r){var n={code:e,grammar:t,language:r};if(s.hooks.run("before-tokenize",n),!n.grammar)throw new Error('The language "'+n.language+'" has no grammar.');return n.tokens=s.tokenize(n.code,n.grammar),s.hooks.run("after-tokenize",n),i.stringify(s.util.encode(n.tokens),n.language)},tokenize:function(e,t){var r=t.rest;if(r){for(var n in r)t[n]=r[n];delete t.rest}var s=new l;return c(s,s.head,e),a(e,s,t,s.head,0),function(e){var t=[],r=e.head.next;for(;r!==e.tail;)t.push(r.value),r=r.next;return t}(s)},hooks:{all:{},add:function(e,t){var r=s.hooks.all;r[e]=r[e]||[],r[e].push(t)},run:function(e,t){var r=s.hooks.all[e];if(r&&r.length)for(var n,i=0;n=r[i++];)n(t)}},Token:i};function i(e,t,r,n){this.type=e,this.content=t,this.alias=r,this.length=0|(n||"").length}function o(e,t,r,n){e.lastIndex=t;var s=e.exec(r);if(s&&n&&s[1]){var i=s[1].length;s.index+=i,s[0]=s[0].slice(i)}return s}function a(e,t,r,n,l,u){for(var d in r)if(r.hasOwnProperty(d)&&r[d]){var h=r[d];h=Array.isArray(h)?h:[h];for(var f=0;f<h.length;++f){if(u&&u.cause==d+","+f)return;var m=h[f],y=m.inside,g=!!m.lookbehind,v=!!m.greedy,b=m.alias;if(v&&!m.pattern.global){var x=m.pattern.toString().match(/[imsuy]*$/)[0];m.pattern=RegExp(m.pattern.source,x+"g")}for(var w=m.pattern||m,$=n.next,S=l;$!==t.tail&&!(u&&S>=u.reach);S+=$.value.length,$=$.next){var E=$.value;if(t.length>e.length)return;if(!(E instanceof i)){var k,O=1;if(v){if(!(k=o(w,S,e,g))||k.index>=e.length)break;var j=k.index,A=k.index+k[0].length,P=S;for(P+=$.value.length;j>=P;)P+=($=$.next).value.length;if(S=P-=$.value.length,$.value instanceof i)continue;for(var T=$;T!==t.tail&&(P<A||"string"==typeof T.value);T=T.next)O++,P+=T.value.length;O--,E=e.slice(S,P),k.index-=S}else if(!(k=o(w,0,E,g)))continue;j=k.index;var C=k[0],I=E.slice(0,j),R=E.slice(j+C.length),_=S+E.length;u&&_>u.reach&&(u.reach=_);var F=$.prev;if(I&&(F=c(t,F,I),S+=I.length),p(t,F,O),$=c(t,F,new i(d,y?s.tokenize(C,y):C,b,C)),R&&c(t,$,R),O>1){var D={cause:d+","+f,reach:_};a(e,t,r,$.prev,S,D),u&&D.reach>u.reach&&(u.reach=D.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,r){var n=t.next,s={value:r,prev:t,next:n};return t.next=s,n.prev=s,e.length++,s}function p(e,t,r){for(var n=t.next,s=0;s<r&&n!==e.tail;s++)n=n.next;t.next=n,n.prev=t,e.length-=s}if(e.Prism=s,i.stringify=function e(t,r){if("string"==typeof t)return t;if(Array.isArray(t)){var n="";return t.forEach((function(t){n+=e(t,r)})),n}var i={type:t.type,content:e(t.content,r),tag:"span",classes:["token",t.type],attributes:{},language:r},o=t.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(i.classes,o):i.classes.push(o)),s.hooks.run("wrap",i);var a="";for(var l in i.attributes)a+=" "+l+'="'+(i.attributes[l]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+a+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(s.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var r=JSON.parse(t.data),n=r.language,i=r.code,o=r.immediateClose;e.postMessage(s.highlight(i,s.languages[n],n)),o&&e.close()}),!1),s):s;var u=s.util.currentScript();function d(){s.manual||s.highlightAll()}if(u&&(s.filename=u.src,u.hasAttribute("data-manual")&&(s.manual=!0)),!s.manual){var h=document.readyState;"loading"===h||"interactive"===h&&u&&u.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return s}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=n),void 0!==r.g&&(r.g.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(e,t){var r={};r["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[t]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};s["language-"+t]={pattern:/[\s\S]+/,inside:n.languages[t]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:s},n.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(e,t){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:n.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var r=e.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(void 0!==n&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},t="data-src-status",r="loading",s="loaded",i="pre[data-src]:not(["+t+'="'+s+'"]):not(['+t+'="'+r+'"])';n.hooks.add("before-highlightall",(function(e){e.selector+=", "+i})),n.hooks.add("before-sanity-check",(function(o){var a=o.element;if(a.matches(i)){o.code="",a.setAttribute(t,r);var l=a.appendChild(document.createElement("CODE"));l.textContent="Loading…";var c=a.getAttribute("data-src"),p=o.language;if("none"===p){var u=(/\.(\w+)$/.exec(c)||[,"none"])[1];p=e[u]||u}n.util.setLanguage(l,p),n.util.setLanguage(a,p);var d=n.plugins.autoloader;d&&d.loadLanguages(p),function(e,t,r){var n=new XMLHttpRequest;n.open("GET",e,!0),n.onreadystatechange=function(){4==n.readyState&&(n.status<400&&n.responseText?t(n.responseText):n.status>=400?r("✖ Error "+n.status+" while fetching file: "+n.statusText):r("✖ Error: File does not exist or is empty"))},n.send(null)}(c,(function(e){a.setAttribute(t,s);var r=function(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var r=Number(t[1]),n=t[2],s=t[3];return n?s?[r,Number(s)]:[r,void 0]:[r,r]}}(a.getAttribute("data-range"));if(r){var i=e.split(/\r\n?|\n/g),o=r[0],c=null==r[1]?i.length:r[1];o<0&&(o+=i.length),o=Math.max(0,Math.min(o-1,i.length)),c<0&&(c+=i.length),c=Math.max(0,Math.min(c,i.length)),e=i.slice(o,c).join("\n"),a.hasAttribute("data-start")||a.setAttribute("data-start",String(o+1))}l.textContent=e,n.highlightElement(l)}),(function(e){a.setAttribute(t,"failed"),l.textContent=e}))}})),n.plugins.fileHighlight={highlight:function(e){for(var t,r=(e||document).querySelectorAll(i),s=0;t=r[s++];)n.highlightElement(t)}};var o=!1;n.fileHighlight=function(){o||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),o=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}}()},464:e=>{"use strict";var t,r="";e.exports=function(e,n){if("string"!=typeof e)throw new TypeError("expected a string");if(1===n)return e;if(2===n)return e+e;var s=e.length*n;if(t!==e||void 0===t)t=e,r="";else if(r.length>=s)return r.substr(0,s);for(;s>r.length&&n>1;)1&n&&(r+=e),n>>=1,e+=e;return r=(r+=e).substr(0,s)}},131:(e,t,r)=>{"use strict";var n=r(464),s=function(e){return/<\/+[^>]+>/.test(e)},i=function(e){return/<[^>]+\/>/.test(e)},o=function(e){return function(e){return/<[^>!]+>/.test(e)}(e)&&!s(e)&&!i(e)};function a(e){return s(e)?"ClosingTag":o(e)?"OpeningTag":i(e)?"SelfClosingTag":"Text"}e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.indentor,s=t.textNodesOnSameLine,i=0,o=[];r=r||" ";var l,c,p=(l=e,(c=l,c.split(/(<\/?[^>]+>)/g).filter((function(e){return""!==e.trim()}))).map((function(e){return{value:e,type:a(e)}}))).map((function(e,t,a){var l=e.value,c=e.type;"ClosingTag"===c&&i--;var p=n(r,i),u=p+l;if("OpeningTag"===c&&i++,s){var d=a[t-1],h=a[t-2];"ClosingTag"===c&&"Text"===d.type&&"OpeningTag"===h.type&&(u=""+p+h.value+d.value+l,o.push(t-2,t-1))}return u}));return o.forEach((function(e){return p[e]=null})),p.filter((function(e){return!!e})).join("\n")}}},n={};function s(e){var t=n[e];if(void 0!==t){if(void 0!==t.error)throw t.error;return t.exports}var i=n[e]={exports:{}};try{var o={id:e,module:i,factory:r[e],require:s};s.i.forEach((function(e){e(o)})),i=o.module,o.factory.call(i.exports,i,i.exports,o.require)}catch(e){throw i.error=e,e}return i.exports}s.m=r,s.c=n,s.i=[],s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.hu=e=>e+"."+s.h()+".hot-update.js",s.hmrF=()=>"main."+s.h()+".hot-update.json",s.h=()=>"373f37ab7534d66db541",s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="rapidoc:",s.l=(r,n,i,o)=>{if(e[r])e[r].push(n);else{var a,l;if(void 0!==i)for(var c=document.getElementsByTagName("script"),p=0;p<c.length;p++){var u=c[p];if(u.getAttribute("src")==r||u.getAttribute("data-webpack")==t+i){a=u;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,s.nc&&a.setAttribute("nonce",s.nc),a.setAttribute("data-webpack",t+i),a.src=r),e[r]=[n];var d=(t,n)=>{a.onerror=a.onload=null,clearTimeout(h);var s=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),s&&s.forEach((e=>e(n))),t)return t(n)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),l&&document.head.appendChild(a)}},(()=>{var e,t,r,n={},i=s.c,o=[],a=[],l="idle",c=0,p=[];function u(e){l=e;for(var t=[],r=0;r<a.length;r++)t[r]=a[r].call(null,e);return Promise.all(t)}function d(){0==--c&&u("ready").then((function(){if(0===c){var e=p;p=[];for(var t=0;t<e.length;t++)e[t]()}}))}function h(e){if("idle"!==l)throw new Error("check() is only allowed in idle status");return u("check").then(s.hmrM).then((function(r){return r?u("prepare").then((function(){var n=[];return t=[],Promise.all(Object.keys(s.hmrC).reduce((function(e,i){return s.hmrC[i](r.c,r.r,r.m,e,t,n),e}),[])).then((function(){return t=function(){return e?m(e):u("ready").then((function(){return n}))},0===c?t():new Promise((function(e){p.push((function(){e(t())}))}));var t}))})):u(y()?"ready":"idle").then((function(){return null}))}))}function f(e){return"ready"!==l?Promise.resolve().then((function(){throw new Error("apply() is only allowed in ready status (state: "+l+")")})):m(e)}function m(e){e=e||{},y();var n=t.map((function(t){return t(e)}));t=void 0;var s=n.map((function(e){return e.error})).filter(Boolean);if(s.length>0)return u("abort").then((function(){throw s[0]}));var i=u("dispose");n.forEach((function(e){e.dispose&&e.dispose()}));var o,a=u("apply"),l=function(e){o||(o=e)},c=[];return n.forEach((function(e){if(e.apply){var t=e.apply(l);if(t)for(var r=0;r<t.length;r++)c.push(t[r])}})),Promise.all([i,a]).then((function(){return o?u("fail").then((function(){throw o})):r?m(e).then((function(e){return c.forEach((function(t){e.indexOf(t)<0&&e.push(t)})),e})):u("idle").then((function(){return c}))}))}function y(){if(r)return t||(t=[]),Object.keys(s.hmrI).forEach((function(e){r.forEach((function(r){s.hmrI[e](r,t)}))})),r=void 0,!0}s.hmrD=n,s.i.push((function(p){var m,y,g,v,b=p.module,x=function(t,r){var n=i[r];if(!n)return t;var s=function(s){if(n.hot.active){if(i[s]){var a=i[s].parents;-1===a.indexOf(r)&&a.push(r)}else o=[r],e=s;-1===n.children.indexOf(s)&&n.children.push(s)}else console.warn("[HMR] unexpected require("+s+") from disposed module "+r),o=[];return t(s)},a=function(e){return{configurable:!0,enumerable:!0,get:function(){return t[e]},set:function(r){t[e]=r}}};for(var p in t)Object.prototype.hasOwnProperty.call(t,p)&&"e"!==p&&Object.defineProperty(s,p,a(p));return s.e=function(e){return function(e){switch(l){case"ready":u("prepare");case"prepare":return c++,e.then(d,d),e;default:return e}}(t.e(e))},s}(p.require,p.id);b.hot=(m=p.id,y=b,v={_acceptedDependencies:{},_acceptedErrorHandlers:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:g=e!==m,_requireSelf:function(){o=y.parents.slice(),e=g?void 0:m,s(m)},active:!0,accept:function(e,t,r){if(void 0===e)v._selfAccepted=!0;else if("function"==typeof e)v._selfAccepted=e;else if("object"==typeof e&&null!==e)for(var n=0;n<e.length;n++)v._acceptedDependencies[e[n]]=t||function(){},v._acceptedErrorHandlers[e[n]]=r;else v._acceptedDependencies[e]=t||function(){},v._acceptedErrorHandlers[e]=r},decline:function(e){if(void 0===e)v._selfDeclined=!0;else if("object"==typeof e&&null!==e)for(var t=0;t<e.length;t++)v._declinedDependencies[e[t]]=!0;else v._declinedDependencies[e]=!0},dispose:function(e){v._disposeHandlers.push(e)},addDisposeHandler:function(e){v._disposeHandlers.push(e)},removeDisposeHandler:function(e){var t=v._disposeHandlers.indexOf(e);t>=0&&v._disposeHandlers.splice(t,1)},invalidate:function(){switch(this._selfInvalidated=!0,l){case"idle":t=[],Object.keys(s.hmrI).forEach((function(e){s.hmrI[e](m,t)})),u("ready");break;case"ready":Object.keys(s.hmrI).forEach((function(e){s.hmrI[e](m,t)}));break;case"prepare":case"check":case"dispose":case"apply":(r=r||[]).push(m)}},check:h,apply:f,status:function(e){if(!e)return l;a.push(e)},addStatusHandler:function(e){a.push(e)},removeStatusHandler:function(e){var t=a.indexOf(e);t>=0&&a.splice(t,1)},data:n[m]},e=void 0,v),b.parents=o,b.children=[],o=[],p.require=x})),s.hmrC={},s.hmrI={}})(),s.p="",(()=>{var e,t,r,n,i,o=s.hmrS_jsonp=s.hmrS_jsonp||{179:0},a={};function l(t,r){return e=r,new Promise(((e,r)=>{a[t]=e;var n=s.p+s.hu(t),i=new Error;s.l(n,(e=>{if(a[t]){a[t]=void 0;var n=e&&("load"===e.type?"missing":e.type),s=e&&e.target&&e.target.src;i.message="Loading hot update chunk "+t+" failed.\n("+n+": "+s+")",i.name="ChunkLoadError",i.type=n,i.request=s,r(i)}}))}))}function c(e){function a(e){for(var t=[e],r={},n=t.map((function(e){return{chain:[e],id:e}}));n.length>0;){var i=n.pop(),o=i.id,a=i.chain,c=s.c[o];if(c&&(!c.hot._selfAccepted||c.hot._selfInvalidated)){if(c.hot._selfDeclined)return{type:"self-declined",chain:a,moduleId:o};if(c.hot._main)return{type:"unaccepted",chain:a,moduleId:o};for(var p=0;p<c.parents.length;p++){var u=c.parents[p],d=s.c[u];if(d){if(d.hot._declinedDependencies[o])return{type:"declined",chain:a.concat([u]),moduleId:o,parentId:u};-1===t.indexOf(u)&&(d.hot._acceptedDependencies[o]?(r[u]||(r[u]=[]),l(r[u],[o])):(delete r[u],t.push(u),n.push({chain:a.concat([u]),id:u})))}}}}return{type:"accepted",moduleId:e,outdatedModules:t,outdatedDependencies:r}}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];-1===e.indexOf(n)&&e.push(n)}}s.f&&delete s.f.jsonpHmr,t=void 0;var c={},p=[],u={},d=function(e){console.warn("[HMR] unexpected require("+e.id+") to disposed module")};for(var h in r)if(s.o(r,h)){var f,m=r[h],y=!1,g=!1,v=!1,b="";switch((f=m?a(h):{type:"disposed",moduleId:h}).chain&&(b="\nUpdate propagation: "+f.chain.join(" -> ")),f.type){case"self-declined":e.onDeclined&&e.onDeclined(f),e.ignoreDeclined||(y=new Error("Aborted because of self decline: "+f.moduleId+b));break;case"declined":e.onDeclined&&e.onDeclined(f),e.ignoreDeclined||(y=new Error("Aborted because of declined dependency: "+f.moduleId+" in "+f.parentId+b));break;case"unaccepted":e.onUnaccepted&&e.onUnaccepted(f),e.ignoreUnaccepted||(y=new Error("Aborted because "+h+" is not accepted"+b));break;case"accepted":e.onAccepted&&e.onAccepted(f),g=!0;break;case"disposed":e.onDisposed&&e.onDisposed(f),v=!0;break;default:throw new Error("Unexception type "+f.type)}if(y)return{error:y};if(g)for(h in u[h]=m,l(p,f.outdatedModules),f.outdatedDependencies)s.o(f.outdatedDependencies,h)&&(c[h]||(c[h]=[]),l(c[h],f.outdatedDependencies[h]));v&&(l(p,[f.moduleId]),u[h]=d)}r=void 0;for(var x,w=[],$=0;$<p.length;$++){var S=p[$],E=s.c[S];E&&(E.hot._selfAccepted||E.hot._main)&&u[S]!==d&&!E.hot._selfInvalidated&&w.push({module:S,require:E.hot._requireSelf,errorHandler:E.hot._selfAccepted})}return{dispose:function(){var e;n.forEach((function(e){delete o[e]})),n=void 0;for(var t,r=p.slice();r.length>0;){var i=r.pop(),a=s.c[i];if(a){var l={},u=a.hot._disposeHandlers;for($=0;$<u.length;$++)u[$].call(null,l);for(s.hmrD[i]=l,a.hot.active=!1,delete s.c[i],delete c[i],$=0;$<a.children.length;$++){var d=s.c[a.children[$]];d&&((e=d.parents.indexOf(i))>=0&&d.parents.splice(e,1))}}}for(var h in c)if(s.o(c,h)&&(a=s.c[h]))for(x=c[h],$=0;$<x.length;$++)t=x[$],(e=a.children.indexOf(t))>=0&&a.children.splice(e,1)},apply:function(t){for(var r in u)s.o(u,r)&&(s.m[r]=u[r]);for(var n=0;n<i.length;n++)i[n](s);for(var o in c)if(s.o(c,o)){var a=s.c[o];if(a){x=c[o];for(var l=[],d=[],h=[],f=0;f<x.length;f++){var m=x[f],y=a.hot._acceptedDependencies[m],g=a.hot._acceptedErrorHandlers[m];if(y){if(-1!==l.indexOf(y))continue;l.push(y),d.push(g),h.push(m)}}for(var v=0;v<l.length;v++)try{l[v].call(null,x)}catch(r){if("function"==typeof d[v])try{d[v](r,{moduleId:o,dependencyId:h[v]})}catch(n){e.onErrored&&e.onErrored({type:"accept-error-handler-errored",moduleId:o,dependencyId:h[v],error:n,originalError:r}),e.ignoreErrored||(t(n),t(r))}else e.onErrored&&e.onErrored({type:"accept-errored",moduleId:o,dependencyId:h[v],error:r}),e.ignoreErrored||t(r)}}}for(var b=0;b<w.length;b++){var $=w[b],S=$.module;try{$.require(S)}catch(r){if("function"==typeof $.errorHandler)try{$.errorHandler(r,{moduleId:S,module:s.c[S]})}catch(n){e.onErrored&&e.onErrored({type:"self-accept-error-handler-errored",moduleId:S,error:n,originalError:r}),e.ignoreErrored||(t(n),t(r))}else e.onErrored&&e.onErrored({type:"self-accept-errored",moduleId:S,error:r}),e.ignoreErrored||t(r)}}return p}}}self.webpackHotUpdaterapidoc=(t,n,o)=>{for(var l in n)s.o(n,l)&&(r[l]=n[l],e&&e.push(l));o&&i.push(o),a[t]&&(a[t](),a[t]=void 0)},s.hmrI.jsonp=function(e,t){r||(r={},i=[],n=[],t.push(c)),s.o(r,e)||(r[e]=s.m[e])},s.hmrC.jsonp=function(e,a,p,u,d,h){d.push(c),t={},n=a,r=p.reduce((function(e,t){return e[t]=!1,e}),{}),i=[],e.forEach((function(e){s.o(o,e)&&void 0!==o[e]?(u.push(l(e,h)),t[e]=!0):t[e]=!1})),s.f&&(s.f.jsonpHmr=function(e,r){t&&s.o(t,e)&&!t[e]&&(r.push(l(e)),t[e]=!0)})},s.hmrM=()=>{if("undefined"==typeof fetch)throw new Error("No browser support: need fetch API");return fetch(s.p+s.hmrF()).then((e=>{if(404!==e.status){if(!e.ok)throw new Error("Failed to fetch update manifest "+e.statusText);return e.json()}}))}})();s(656)})();
//# sourceMappingURL=rapidoc-min.js.map