templates.openapi-explorer.res.openapi-explorer.min.js Maven / Gradle / Ivy
/*! OpenAPI Explorer 2.2.732 | Author - Authress Developers | License information can be found in openapi-explorer.min.js.LICENSE.txt */
(()=>{var e,t,r={490:(e,t,r)=>{"use strict";const n=window,o=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),a=new WeakMap;class s{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(o&&void 0===e){const r=void 0!==t&&1===t.length;r&&(e=a.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&a.set(t,e))}return e}toString(){return this.cssText}}const l=(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 s(r,e,i)},u=o?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return(e=>new s("string"==typeof e?e:e+"",void 0,i))(t)})(e):e;var c;const p=window,d=p.trustedTypes,h=d?d.emptyScript:"",f=p.reactiveElementPolyfillSupport,g={toAttribute(e,t){switch(t){case Boolean:e=e?h: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}},m=(e,t)=>t!==e&&(t==t||e==e),y={attribute:!0,type:String,converter:g,reflect:!1,hasChanged:m},b="finalized";class v extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}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=y){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 o=this[e];this[t]=n,this.requestUpdate(e,o,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||y}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(u(e))}else void 0!==e&&t.push(u(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}_$Eu(){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)=>{o?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const r=document.createElement("style"),o=n.litNonce;void 0!==o&&r.setAttribute("nonce",o),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=y){var n;const o=this.constructor._$Ep(e,r);if(void 0!==o&&!0===r.reflect){const i=(void 0!==(null===(n=r.converter)||void 0===n?void 0:n.toAttribute)?r.converter:g).toAttribute(t,r.type);this._$El=e,null==i?this.removeAttribute(o):this.setAttribute(o,i),this._$El=null}}_$AK(e,t){var r;const n=this.constructor,o=n._$Ev.get(e);if(void 0!==o&&this._$El!==o){const e=n.getPropertyOptions(o),i="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(r=e.converter)||void 0===r?void 0:r.fromAttribute)?e.converter:g;this._$El=o,this[o]=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||m)(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 x;v[b]=!0,v.elementProperties=new Map,v.elementStyles=[],v.shadowRootOptions={mode:"open"},null==f||f({ReactiveElement:v}),(null!==(c=p.reactiveElementVersions)&&void 0!==c?c:p.reactiveElementVersions=[]).push("1.6.3");const w=window,k=w.trustedTypes,A=k?k.createPolicy("lit-html",{createHTML:e=>e}):void 0,E="$lit$",S=`lit$${(Math.random()+"").slice(9)}$`,D="?"+S,$=`<${D}>`,C=document,_=()=>C.createComment(""),O=e=>null===e||"object"!=typeof e&&"function"!=typeof e,F=Array.isArray,j=e=>F(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]),T="[ \t\n\f\r]",R=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,B=/-->/g,I=/>/g,P=RegExp(`>|${T}(?:([^\\s"'>=/]+)(${T}*=${T}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),L=/'/g,N=/"/g,M=/^(?:script|style|textarea|title)$/i,U=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),z=U(1),q=(U(2),Symbol.for("lit-noChange")),H=Symbol.for("lit-nothing"),W=new WeakMap,V=C.createTreeWalker(C,129,null,!1);function G(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==A?A.createHTML(t):t}const K=(e,t)=>{const r=e.length-1,n=[];let o,i=2===t?"":"")),n]};class J{constructor({strings:e,_$litType$:t},r){let n;this.parts=[];let o=0,i=0;const a=e.length-1,s=this.parts,[l,u]=K(e,t);if(this.el=J.createElement(l,r),V.currentNode=this.el.content,2===t){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(n=V.nextNode())&&s.length0){n.textContent=k?k.emptyScript:"";for(let r=0;r2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=H}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,r,n){const o=this.strings;let i=!1;if(void 0===o)e=Y(this,e,t,0),i=!O(e)||e!==this._$AH&&e!==q,i&&(this._$AH=e);else{const n=e;let a,s;for(e=o[0],a=0;a{var n,o;const i=null!==(n=null==r?void 0:r.renderBefore)&&void 0!==n?n:t;let a=i._$litPart$;if(void 0===a){const e=null!==(o=null==r?void 0:r.renderBefore)&&void 0!==o?o:null;i._$litPart$=a=new Q(t.insertBefore(_(),e),e,void 0,null!=r?r:{})}return a._$AI(e),a})(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 q}}ue.finalized=!0,ue._$litElement$=!0,null===(se=globalThis.litElementHydrateSupport)||void 0===se||se.call(globalThis,{LitElement:ue});const ce=globalThis.litElementPolyfillSupport;null==ce||ce({LitElement:ue});(null!==(le=globalThis.litElementVersions)&&void 0!==le?le:globalThis.litElementVersions=[]).push("3.3.3");const pe=l`.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) + 1rem);font-weight:400}.sub-title{font-size:20px}.req-res-title{font-family:var(--font-regular);font-size:calc(var(--font-size-small) + 4px);font-weight:700}.tiny-title{font-size:calc(var(--font-size-small) + 1px);font-weight:700}.regular-font-size{font-size:var(--font-size-regular)}.small-font-size{font-size:var(--font-size-small)}.upper{text-transform:uppercase}.primary-text{color:var(--primary-color)}.bold-text{font-weight:700}.gray-text{color:var(--light-fg)}.red-text{color:var(--red)}.blue-text{color:var(--blue)}.multiline{overflow:scroll;max-height:var(--resp-area-height,300px);color:var(--fg3)}.method-fg.put{color:var(--orange)}.method-fg.post{color:var(--green)}.method-fg.get,.method-fg.head{color:var(--blue)}.method-fg.delete{color:var(--red)}.method-fg.query{color:var(--purple)}.method-fg.options{color:var(--gray)}.method-fg.patch{color:var(--yellow)}h1{font-family:var(--font-regular);font-size:28px;padding-top:10px;letter-spacing:normal;font-weight:400}h2{font-family:var(--font-regular);font-size:24px;padding-top:10px;letter-spacing:normal;font-weight:400}h3{font-family:var(--font-regular);font-size:18px;padding-top:10px;letter-spacing:normal;font-weight:400}h4{font-family:var(--font-regular);font-size:16px;padding-top:10px;letter-spacing:normal;font-weight:400}h5{font-family:var(--font-regular);font-size:14px;padding-top:10px;letter-spacing:normal;font-weight:400}h6{font-family:var(--font-regular);font-size:14px;padding-top:10px;letter-spacing:normal;font-weight:400}h1,h2,h3,h4,h5{margin-block-end:.2em;margin-block-start:.5em}h3{margin-top:0}p{margin-block-start:.5em}a{color:var(--blue);cursor:pointer}a.inactive-link{color:var(--fg);text-decoration:none;cursor:text}code,pre,syntax-highlighter{margin:0;font-family:var(--font-mono);font-size:calc(var(--font-size-mono) - 1px)}.m-markdown syntax-highlighter{display:block}.m-markdown,.m-markdown-small{display:block}.m-markdown a,.m-markdown li,.m-markdown p,.m-markdown span{font-size:var(--font-size-regular);line-height:calc(var(--font-size-regular) + 6px)}.m-markdown-small a,.m-markdown-small li,.m-markdown-small p,.m-markdown-small span{font-size:var(--font-size-small);line-height:calc(var(--font-size-small) + 6px)}.m-markdown p:not(:first-child){margin-block-start:12px}.m-markdown-small p:not(:first-child){margin-block-start:12px}.m-markdown :first-child,.m-markdown-small :first-child{margin-block-start:0}.m-markdown p,.m-markdown-small p{margin-block-end:0;overflow-wrap:anywhere}.toolbar .m-markdown p,.toolbar .m-markdown-small p{margin-block-start:0}.m-markdown code span{font-size:var(--font-size-mono)}.m-markdown code,.m-markdown syntax-highlighter,.m-markdown-small code{padding:1px 6px;border-radius:2px;color:var(--inline-code-fg);background-color:var(--bg3);font-size:calc(var(--font-size-mono));line-height:1.2}.m-markdown-small code,.m-markdown-small syntax-highlighter{font-size:calc(var(--font-size-mono) - 1px)}.m-markdown pre,.m-markdown syntax-highlighter,.m-markdown-small pre{white-space:pre-wrap;overflow-x:auto;line-height:normal;border-radius:2px;border:1px solid var(--code-border-color)}.m-markdown pre,.m-markdown syntax-highlighter{padding:8px;background-color:var(--bg2);color:var(--code-fg)}.m-markdown-small pre,.m-markdown-small syntax-highlighter{margin-top:4px;padding:2px 4px;background-color:var(--bg3);color:var(--fg2)}.m-markdown pre code,.m-markdown-small pre code{border:none;padding:0}.m-markdown pre code{color:var(--code-fg);background-color:var(--bg2);background-color:transparent}.m-markdown-small pre code,.m-markdown-small syntax-highlighter{color:var(--fg2);background-color:var(--bg3)}.m-markdown ol,.m-markdown ul{padding-inline-start:30px}.m-markdown-small ol,.m-markdown-small ul{padding-inline-start:20px}.m-markdown a,.m-markdown-small a{color:var(--blue)}.m-markdown img,.m-markdown-small img{max-width:100%}.m-markdown table,.m-markdown-small table{border-spacing:0;margin:10px 0;border-collapse:separate;border:1px solid var(--border-color);border-radius:var(--border-radius);font-size:calc(var(--font-size-small) + 1px);line-height:calc(var(--font-size-small) + 4px);max-width:100%}.m-markdown-small table{font-size:var(--font-size-small);line-height:calc(var(--font-size-small) + 2px);margin:8px 0}.m-markdown td,.m-markdown th,.m-markdown-small td,.m-markdown-small th{vertical-align:top;border-top:1px solid var(--border-color);line-height:calc(var(--font-size-small) + 4px)}.m-markdown tr:first-child th,.m-markdown-small tr:first-child th{border-top:0 none}.m-markdown td,.m-markdown th{padding:10px 12px}.m-markdown-small td,.m-markdown-small th{padding:8px 8px}.m-markdown th,.m-markdown-small th{font-weight:600;background-color:var(--bg2);vertical-align:middle}.m-markdown-small table code{font-size:calc(var(--font-size-mono) - 2px)}.m-markdown table code{font-size:calc(var(--font-size-mono) - 1px)}.m-markdown blockquote,.m-markdown-small blockquote{margin-inline-start:0;margin-inline-end:0;border-left:3px solid var(--border-color);padding:6px 0 6px 6px}`,de=l`.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 .2s;user-select:none;cursor:pointer;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24)}.m-btn.primary{background-color:var(--primary-color);color:var(--primary-btn-text-color)}.m-btn.outline-primary{color:var(--primary-color);background-color:var(--bg);border:1px solid var(--bg)}.m-btn.outline-primary:hover{border:1px solid var(--bg)}.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-btn-text-color)}.m-btn.nav{border:2px solid var(--secondary-color)}.m-btn.nav:hover{background-color:var(--secondary-color)}.m-btn:disabled{background-color:var(--bg3);color:var(--fg3);border-color:var(--fg3);cursor:progress;opacity:.4}button,input,select,textarea{color:var(--fg);outline:0;background-color:var(--input-bg);border:1px solid var(--border-color);border-radius:var(--border-radius)}button{font-family:var(--font-regular)}input[type=file],input[type=password],input[type=text],select,textarea{font-family:var(--font-regular);font-weight:400;font-size:var(--font-size-small);transition:border .2s;padding:6px 5px}select{font-family:var(--font-regular);padding-right:30px;background-image:url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%3E%3Cpath%20d%3D%22M10.3%203.3L6%207.6%201.7%203.3A1%201%200%2000.3%204.7l5%205a1%201%200%20001.4%200l5-5a1%201%200%2010-1.4-1.4z%22%20fill%3D%22%23777777%22%2F%3E%3C%2Fsvg%3E");background-position:calc(100% - 5px) center;background-repeat:no-repeat;background-size:10px;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer}select:hover{border-color:var(--primary-color)}input[type=password]::placeholder,input[type=text]::placeholder,textarea::placeholder{color:var(--placeholder-color);opacity:1}input[type=password]:active,input[type=password]:focus,input[type=text]:active,input[type=text]:focus,select:focus,textarea:active,textarea:focus{border:1px solid var(--primary-color)}input[type=file]{font-family:var(--font-regular);padding:2px;cursor:pointer;border:1px solid var(--primary-color);min-height:calc(var(--font-size-small) + 18px)}input[type=file]::-webkit-file-upload-button{font-family:var(--font-regular);font-size:var(--font-size-small);outline:0;cursor:pointer;padding:3px 8px;border:1px solid var(--primary-color);background-color:var(--primary-color);color:var(--primary-btn-text-color);border-radius:var(--border-radius);-webkit-appearance:none}pre,textarea{scrollbar-width:thin;scrollbar-color:var(--border-color) var(--input-bg)}pre::-webkit-scrollbar,textarea::-webkit-scrollbar{width:8px;height:8px}pre::-webkit-scrollbar-track,textarea::-webkit-scrollbar-track{background:var(--input-bg)}pre::-webkit-scrollbar-thumb,textarea::-webkit-scrollbar-thumb{border-radius:2px;background-color:var(--border-color)}.link{font-size:var(--font-size-small);text-decoration:underline;color:var(--blue);font-family:var(--font-mono);margin-bottom:2px}input[type=checkbox]:focus{outline:0}input[type=checkbox]{appearance:none;display:inline-block;background-color:var(--light-bg);border-radius:9px;cursor:pointer;height:18px;position:relative;transition:border .15s,padding .25s;min-width:36px;width:36px;vertical-align:top}input[type=checkbox]:after{position:absolute;background-color:var(--bg);border-radius:8px;content:'';top:0;left:0;right:16px;display:block;height:16px;transition:left .25s .1s,right .15s .175s}input[type=checkbox]:checked{box-shadow:inset 0 0 0 13px var(--primary-color);border-color:var(--primary-color)}input[type=checkbox]:checked:after{border:1px solid var(--primary-color);left:16px;right:1px;transition:border .25s,left .15s .25s,right .25s .175s}.oauth-client-input{display:flex;align-items:center;flex-grow:1;width:300px;max-width:300px;margin-top:1rem}input.oauth-client-secret{flex-grow:1;max-width:300px}`,he=l`*,:after,:before{box-sizing:border-box}.no-select{-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.tr{display:flex;flex:none;width:100%;box-sizing:content-box;border-bottom:1px dotted transparent}.td{display:block;flex:0 0 auto}.key{font-family:var(--font-mono);white-space:normal;word-break:break-all}.key-descr{font-family:var(--font-regular);flex-shrink:1;text-overflow:ellipsis;overflow:hidden;display:none;max-height:auto}.toolbar{display:none}.xxx-of-key{font-size:calc(var(--font-size-small) - 2px);font-weight:700;background-color:var(--primary-color);color:var(--primary-btn-text-color);border-radius:2px;line-height:calc(var(--font-size-small) + 6px);padding:0 5px;display:inline-block}.xxx-of-descr{font-family:var(--font-regular);font-size:calc(var(--font-size-small) - 1px);margin-left:2px}.bina,.binary,.byte,.date,.date-time,.datetime,.emai,.email,.host,.hostname,.ipv4,.pass,.password,.stri,.string,.uri,.url,.uuid{color:var(--green)}.blue,.deci,.decimal,.doub,.double,.floa,.float,.int3,.int32,.int6,.int64,.inte,.integer,.numb,.number{color:var(--blue)}.null{color:var(--red)}.bool,.boolean{color:var(--orange)}.cons,.const,.enum{color:var(--purple)}.tree .toolbar{display:flex;justify-content:space-between}.toolbar{width:100%}.toolbar-item{cursor:pointer;padding:5px 0 5px 1rem;margin:0 1rem!important;color:var(--secondary-color);flex-shrink:0}.tree .toolbar .toolbar-item{display:none}.schema-root-type{cursor:auto;color:var(--fg2);font-weight:700;text-transform:uppercase}.schema-root-type.xxx-of{display:none}.toolbar-item:first-of-type{margin:0 2px 0 0}@media only screen and (min-width:576px){.key-descr{display:block}.tree .toolbar .toolbar-item{display:block}.toolbar{display:flex}}.expanded-endpoint-body>.tag-link:hover,.expanded-endpoint-component>h2:hover,.schema-link:hover{cursor:pointer;text-decoration:underline}.tag-link{margin-top:0;font-weight:700}`,fe=l`.col,.row{display:flex}.row{align-items:center;flex-direction:row}.col{align-items:stretch;flex-direction:column}`,ge=l`.m-table{table-layout:fixed;border-spacing:0;border-collapse:separate;border:1px solid var(--light-border-color);border-radius:var(--border-radius);margin:0;max-width:100%}.m-table tr:first-child td,.m-table tr:first-child th{border-top:0 none}.m-table td,.m-table th{font-size:var(--font-size-small);padding:4px 5px 4px}.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)}.table-title{font-size:var(--font-size-small);font-weight:700;vertical-align:middle;margin:12px 0 4px 0}.request-form-table{border-spacing:0;border-collapse:separate;border:1px solid var(--light-border-color);border-radius:var(--border-radius);margin:0;max-width:100%}.request-form-table td,.request-form-table th{font-size:var(--font-size-small);padding:4px 5px 4px}.request-form-table td:not([align]),.request-form-table th:not([align]){text-align:left}.request-form-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)}.request-form-table>tr:not(.complex-object-display)+tr:not(.form-parameter-description)>td{border-top:1px solid var(--light-border-color)}.request-form-table>tr:not(.complex-object-display)+tr.complex-object-display>td{border-top:1px solid var(--primary-color)!important}.request-form-table .input-set{width:100%;margin-top:2px}.request-form-table .file-input{width:100%;margin-top:2px}`,me=l`@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes expand-height{0%{max-height:0;opacity:0}50%{max-height:100px;opacity:100%}100%{max-height:100lvh}}@keyframes collapse-height{0%{max-height:500lvh;opacity:100%}5%{max-height:50lvh}40%{max-height:100px;opacity:25%}100%{max-height:0;opacity:0}}`,ye=l`.only-large-screen{display:none}.endpoint-head .path{display:flex;font-family:var(--font-mono);font-size:var(--font-size-small);align-items:center;flex-wrap:wrap}.endpoint-head .descr{font-size:var(--font-size-small);color:var(--light-fg);font-weight:400;align-items:center;overflow-wrap:break-word;word-break:break-all;display:none}.m-endpoint.expanded{margin-bottom:16px}.m-endpoint>.endpoint-head{border-width:1px 1px 1px 5px;border-style:solid;border-color:transparent;border-top-color:var(--light-border-color);display:flex;padding:6px 16px;align-items:center;cursor:pointer}.m-endpoint>.endpoint-head.put.expanded,.m-endpoint>.endpoint-head.put:hover{border-color:var(--orange);background-color:var(--light-orange)}.m-endpoint>.endpoint-head.post.expanded,.m-endpoint>.endpoint-head.post:hover{border-color:var(--green);background-color:var(--light-green)}.m-endpoint>.endpoint-head.get.expanded,.m-endpoint>.endpoint-head.get:hover,.m-endpoint>.endpoint-head.head.expanded,.m-endpoint>.endpoint-head.head:hover{border-color:var(--blue);background-color:var(--light-blue)}.m-endpoint>.endpoint-head.delete.expanded,.m-endpoint>.endpoint-head.delete:hover{border-color:var(--red);background-color:var(--light-red)}.m-endpoint>.endpoint-head.patch.expanded,.m-endpoint>.endpoint-head.patch:hover{border-color:var(--yellow);background-color:var(--light-yellow)}.m-endpoint>.endpoint-head.query.expanded,.m-endpoint>.endpoint-head.query:hover{border-color:var(--purple);background-color:var(--light-purple)}.m-endpoint>.endpoint-head.options.expanded,.m-endpoint>.endpoint-head.options:hover{border-color:var(--gray);background-color:var(--light-gray)}.m-endpoint .endpoint-body{word-break:break-word;flex-wrap:wrap;padding:16px 0 0 0;border-width:0 1px 1px 5px;border-style:solid;box-shadow:0 4px 3px -3px rgba(0,0,0,.15)}.m-endpoint .endpoint-body.delete{border-color:var(--red)}.m-endpoint .endpoint-body.put{border-color:var(--orange)}.m-endpoint .endpoint-body.post{border-color:var(--green)}.m-endpoint .endpoint-body.get,.m-endpoint .endpoint-body.head{border-color:var(--blue)}.m-endpoint .endpoint-body.patch{border-color:var(--yellow)}.m-endpoint .endpoint-body.query{border-color:var(--purple)}.m-endpoint .endpoint-body.options{border-color:var(--gray)}.summary{padding:8px 8px}.summary .title{font-size:calc(var(--font-size-regular) + 2px);margin-bottom:6px;word-break:break-word}.method{display:flex;justify-content:center;align-items:center;vertical-align:middle;font-size:calc(var(--font-size-small) - 2px);height:calc(var(--font-size-small) + .75rem);line-height:calc(var(--font-size-small) + .5rem);width:3.5rem;flex-shrink:0;border-radius:2px;text-align:center;font-weight:700;text-transform:uppercase;margin-right:5px}.method.delete{border:1px solid var(--red)}.method.put{border:1px solid var(--orange)}.method.post{border:1px solid var(--green)}.method.get,.method.head{border:1px solid var(--blue)}.method.patch{border:1px solid var(--yellow)}.method.query{border:1px solid var(--purple)}.method.options{border:1px solid var(--gray)}.req-resp-container{display:flex;margin-top:16px;align-items:stretch;flex-wrap:wrap;flex-direction:column}.view-request{flex:1;min-height:100px;max-width:100%;padding:16px 8px;overflow:hidden;border-width:0;border-style:dashed}.request,.response{flex:1;min-height:100px;max-width:100%;padding:16px 8px;overflow:hidden}.request{border-width:0 0 1px 0;border-style:dashed}.patch .request{border-top:1px dashed var(--yellow);border-color:var(--yellow)}.query .request{border-top:1px dashed var(--purple);border-color:var(--purple)}.options .request{border-top:1px dashed var(--gray);border-color:var(--gray)}.put .request{border-top:1px dashed var(--orange);border-color:var(--orange)}.post .request{border-top:1px dashed var(--green);border-color:var(--green)}.get .request,.head .request{border-top:1px dashed var(--blue);border-color:var(--blue)}.delete .request{border-top:1px dashed var(--red);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);min-width:400px}.endpoint-head .descr{display:flex}.descr .m-markdown-small,.endpoint-head .m-markdown-small{display:block}.req-resp-container{flex-direction:var(--layout,row)}.request{border-width:0 1px 0 0;padding:16px}.response{padding:16px}.summary{padding:8px 16px}}.security-info-button{position:absolute;top:3px;right:2px;font-size:var(--font-size-small);line-height:1.5}@media only screen and (max-width:768px){.security-info-button{display:none}}pre.code-sample{padding:8px;min-height:30px;font-family:var(--font-mono);font-size:var(--font-size-small)}`,be=l`code[class*=language-],pre[class*=language-]{text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;tab-size:2;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-]{white-space:normal}.token.block-comment,.token.cdata,.token.comment,.token.doctype,.token.prolog{color:var(--light-fg)}.token.punctuation{color:var(--fg)}.token.attr-name,.token.deleted,.token.namespace,.token.tag{color:var(--pink)}.token.function-name{color:var(--blue)}.token.boolean,.token.function,.token.number{color:var(--red)}.token.class-name,.token.constant,.token.property,.token.symbol,.token.tag{color:var(--code-property-color)}.token.atrule,.token.attr-name,.token.builtin,.token.important,.token.keyword,.token.selector{color:var(--code-keyword-color)}.token.attr-value,.token.char,.token.regex,.token.string{color:var(--green);white-space:pre-wrap;line-break:anywhere}.token.variable{white-space:pre-wrap;line-break:anywhere}.token.entity,.token.operator,.token.url{color:var(--code-operator-color)}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.token.inserted{color:green}.token.header{color:unset;background:unset}`,ve=l`tag-input .tags{display:flex;flex-wrap:wrap;outline:0;padding:0;border-radius:var(--border-radius);border:1px solid var(--border-color);cursor:text;overflow:hidden;background:var(--input-bg)}.editor,tag-input .tag{padding:3px;margin:2px}tag-input .tag{align-self:center;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-input .tag:hover~#cursor{display:block}tag-input .editor{flex:1;border:1px solid transparent;color:var(--fg);min-width:60px;outline:0;line-height:inherit;font-family:inherit;background:0 0;font-size:calc(var(--font-size-small) + 1px)}tag-input .editor::placeholder{color:var(--placeholder-color);opacity:1}`,xe=l`.tab-panel{border:none}.tab-buttons{height:30px;border-bottom:1px solid var(--light-border-color);align-items:stretch;overflow-y:hidden;overflow-x:auto;scrollbar-width:thin}.tab-buttons::-webkit-scrollbar{height:1px;background-color:var(--border-color)}.tab-btn{border:none;border-bottom:3px solid transparent;color:var(--light-fg);background-color:transparent;white-space:nowrap;cursor:pointer;outline:0;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:700;color:var(--primary-color)}.tab-btn:hover{color:var(--primary-color)}.tab-content{position:relative}`,we=l`.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}.nav-scroll{overflow-x:hidden;overflow-y:auto;overflow-y:overlay;scrollbar-width:thin;scrollbar-color:var(--nav-hover-scrollbar-color) transparent}.nav-bar-tag{display:flex;align-items:center;justify-content:space-between;flex-direction:row}.toggle{font-size:16px;cursor:pointer;color:var(--nav-text-color);transform:translate(-5px,0) rotate(0);transition:transform .1s ease}.toggle:hover{color:var(--nav-hover-text-color)}.collapsed .toggle{transform:translate(-6px,0) rotate(-90deg)}.nav-bar-tag-and-paths>.nav-bar-section-wrapper{max-height:5000px;transition:max-height 1.2s ease-in-out;overflow:hidden}.nav-bar-tag-and-paths.collapsed>.nav-bar-section-wrapper{transition:max-height 1.2s ease-in-out -1s;max-height:0}.nav-bar.focused,.nav-scroll{border-top:1px solid var(--secondary-color)}.nav-scroll::-webkit-scrollbar{width:10px}.nav-scroll::-webkit-scrollbar-track{background:0 0}.nav-scroll::-webkit-scrollbar-thumb{background-color:var(--nav-hover-scrollbar-color)}.nav-bar-tag{font-size:var(--font-size-regular);color:var(--secondary-color);border-left:4px solid transparent;font-weight:700;padding:15px 15px 15px 10px}.nav-bar-components,.nav-bar-h1,.nav-bar-h2,.nav-bar-info,.nav-bar-path,.nav-bar-tag,slot[name=nav-section]::slotted(*){display:flex;cursor:pointer;border-left:4px solid transparent}.nav-bar-h1,.nav-bar-h2,.nav-bar-path{font-size:calc(var(--font-size-regular) - 2px);padding:var(--nav-path-padding)}.nav-bar-path.small-font{font-size:var(--font-size-small)}.nav-bar-info,slot[name=nav-section]::slotted(*){font-size:var(--font-size-regular);padding:16px 10px;font-weight:700}.nav-bar-section{display:flex;flex-direction:row;justify-content:space-between;font-size:var(--font-size-small);color:var(--nav-text-color);padding:15px 15px 5px 5px;font-weight:700;border-bottom:1px solid var(--nav-text-color);background:var(--nav-bg-color)}.sticky-scroll-element{position:sticky;top:0;z-index:1;cursor:pointer}.nav-bar-h1{padding-left:20px}.nav-bar-h2{padding-left:30px}.nav-bar-h1.active,.nav-bar-h1.active:hover,.nav-bar-h2.active,.nav-bar-h2.active:hover,.nav-bar-info.active,.nav-bar-info.active:hover,.nav-bar-path.active,.nav-bar-path.active:hover,.nav-bar-tag.active,.nav-bar-tag.active:hover,slot[name=nav-section]::slotted(.active),slot[name=nav-section]::slotted(.active:hover){border-left:4px solid var(--secondary-color);color:var(--secondary-color);background-color:var(--nav-hover-bg-color)}.nav-bar-h1:hover,.nav-bar-h2:hover,.nav-bar-info:hover,.nav-bar-path:hover,.nav-bar-tag:hover,slot[name=nav-section]::slotted(:hover){color:var(--nav-hover-text-color);background-color:var(--nav-hover-bg-color)}.conditional-custom-section.custom-section::slotted(*){display:none}.conditional-custom-section.custom-section::slotted(.active){display:unset!important}`,ke=l`#api-info{font-size:calc(var(--font-size-regular) - 1px);margin-top:8px margin-left: -15px}#api-info span:before{content:"|";display:inline-block;opacity:.5;width:15px;text-align:center}#api-info span:first-child:before{content:"";width:0}`,Ae=l`*,:after,:before{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:50vw;background-color:var(--bg2);color:var(--fg2);border-radius:4px;overflow:hidden;border:1px solid var(--border-color);box-shadow:0 14px 28px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22)}.dialog-box-header{position:sticky;top:0;align-self:stretch;display:flex;align-items:center;padding:0 16px;min-height:60px;max-height:60px;border-bottom:1px solid var(--light-border-color);overflow:hidden}.dialog-box .m-btn{padding:1px 6px}.dialog-box-content{padding:16px;display:block}.dialog-box-title{flex-grow:1;font-size:20px}.advanced-search-dialog-input{width:100%}#advanced-search-dialog-input{width:100%}.advanced-search-locations{display:flex;flex-direction:column;margin:8px 0 24px}.advanced-search-locations label{font-size:var(--font-size-small)}.advanced-search-results{max-height:400px;overflow:auto}`,Ee=l`:not(:defined){display:none}:host{display:flex;flex-direction:column;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}a{text-decoration:none}.main-content{margin:0;padding:0;display:block;flex:1;height:100%;overflow-y:overlay;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:var(--border-color) transparent}.main-content::-webkit-scrollbar{width:8px;height:8px}.main-content::-webkit-scrollbar-track{background:0 0}.main-content::-webkit-scrollbar-thumb{background-color:var(--border-color)}.section-gap.section-tag{border-bottom:1px solid var(--border-color)}.method-section-gap{margin:0;padding:0 8px 0 4px;border-bottom:1px solid var(--border-color)}.section-gap{padding:24px 0 0}.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))}.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,.only-large-screen-flex{display:none}.header-title{font-size:calc(var(--font-size-regular) + 8px);padding:0 8px}.tag.title{margin-bottom:1rem;font-weight:700}.header{background-color:var(--header-bg);color:var(--header-fg);width:100%}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:.4}input:disabled{cursor:not-allowed}.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,.expanded-endpoint-component{position:relative}.divider{border-top:2px solid var(--border-color);margin:24px 0;width:100%}.security-tooltip{border:1px solid var(--border-color);border-left-width:4px;margin-left:2px}.security-tooltip a{color:var(--fg2);text-decoration:none}.tooltip-text{color:var(--fg2);background-color:var(--bg2);visibility:hidden;overflow-wrap:break-word}.tooltip:hover{color:var(--primary-color);border-color:var(--primary-color)}.tooltip-replace:hover{visibility:hidden}.tooltip:hover a:hover{color:var(--primary-color)}.tooltip:hover .tooltip-text{visibility:visible;cursor:text;opacity:1}@media only screen and (max-width:767.98px){.section-padding{margin:1rem}.sub-title.tag{margin-left:1rem}.section-tag-body .description{margin-left:1rem;margin-right:1rem}}@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:24px 24px}.section-gap--read-mode{padding:24px 8px}.section-gap--focused-mode{padding:1.5rem}.endpoint-body{position:relative;padding:36px 0 48px 0}}@media only screen and (min-width:1024px){.nav-bar{width:330px;display:flex}.section-gap--read-mode{padding:24px 24px 12px}.main-content-inner{padding:24px}}`;function Se(){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}}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};const $e=/[&<>"']/,Ce=new RegExp($e.source,"g"),_e=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Oe=new RegExp(_e.source,"g"),Fe={"&":"&","<":"<",">":">",'"':""","'":"'"},je=e=>Fe[e];function Te(e,t){if(t){if($e.test(e))return e.replace(Ce,je)}else if(_e.test(e))return e.replace(Oe,je);return e}const Re=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function Be(e){return e.replace(Re,((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 Ie=/(^|[^\[])\^/g;function Pe(e,t){e="string"==typeof e?e:e.source,t=t||"";const r={replace:(t,n)=>(n=(n=n.source||n).replace(Ie,"$1"),e=e.replace(t,n),r),getRegex:()=>new RegExp(e,t)};return r}const Le=/[^\w:]/g,Ne=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Me(e,t,r){if(e){let e;try{e=decodeURIComponent(Be(r)).replace(Le,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!Ne.test(r)&&(r=function(e,t){Ue[" "+e]||(ze.test(e)?Ue[" "+e]=e+"/":Ue[" "+e]=Ge(e,"/",!0));e=Ue[" "+e];const r=-1===e.indexOf(":");return"//"===t.substring(0,2)?r?t:e.replace(qe,"$1")+t:"/"===t.charAt(0)?r?t:e.replace(He,"$1")+t:e+t}(t,r));try{r=encodeURI(r).replace(/%25/g,"%")}catch(e){return null}return r}const Ue={},ze=/^[^:]+:\/*[^/]*$/,qe=/^([^:]+:)[\s\S]*$/,He=/^([^:]+:\/*[^/]*)[\s\S]*$/;const We={exec:function(){}};function Ve(e,t){const r=e.replace(/\|/g,((e,t,r)=>{let n=!1,o=t;for(;--o>=0&&"\\"===r[o];)n=!n;return n?"|":" |"})).split(/ \|/);let n=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),r.length>t)r.splice(t);else for(;r.length1;)1&t&&(r+=e),t>>=1,e+=e;return r+e}function Je(e,t,r,n){const o=t.href,i=t.title?Te(t.title):null,a=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){n.state.inLink=!0;const e={type:"link",raw:r,href:o,title:i,text:a,tokens:n.inlineTokens(a)};return n.state.inLink=!1,e}return{type:"image",raw:r,href:o,title:i,text:Te(a)}}class Ye{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:Ge(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=Ge(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *>[ \t]?/gm,""),r=this.lexer.state.top;this.lexer.state.top=!0;const n=this.lexer.blockTokens(e);return this.lexer.state.top=r,{type:"blockquote",raw:t[0],tokens:n,text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r,n,o,i,a,s,l,u,c,p,d,h,f=t[1].trim();const g=f.length>1,m={type:"list",raw:"",ordered:g,start:g?+f.slice(0,-1):"",loose:!1,items:[]};f=g?`\\d{1,9}\\${f.slice(-1)}`:`\\${f}`,this.options.pedantic&&(f=g?f:"[*+-]");const y=new RegExp(`^( {0,3}${f})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;e&&(h=!1,t=y.exec(e))&&!this.rules.block.hr.test(e);){if(r=t[0],e=e.substring(r.length),u=t[2].split("\n",1)[0].replace(/^\t+/,(e=>" ".repeat(3*e.length))),c=e.split("\n",1)[0],this.options.pedantic?(i=2,d=u.trimLeft()):(i=t[2].search(/[^ ]/),i=i>4?1:i,d=u.slice(i),i+=t[1].length),s=!1,!u&&/^ *$/.test(c)&&(r+=c+"\n",e=e.substring(c.length+1),h=!0),!h){const t=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),n=new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),o=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:\`\`\`|~~~)`),a=new RegExp(`^ {0,${Math.min(3,i-1)}}#`);for(;e&&(p=e.split("\n",1)[0],c=p,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!o.test(c))&&!a.test(c)&&!t.test(c)&&!n.test(e);){if(c.search(/[^ ]/)>=i||!c.trim())d+="\n"+c.slice(i);else{if(s)break;if(u.search(/[^ ]/)>=4)break;if(o.test(u))break;if(a.test(u))break;if(n.test(u))break;d+="\n"+c}s||c.trim()||(s=!0),r+=p+"\n",e=e.substring(p.length+1),u=c.slice(i)}}m.loose||(l?m.loose=!0:/\n *\n *$/.test(r)&&(l=!0)),this.options.gfm&&(n=/^\[[ xX]\] /.exec(d),n&&(o="[ ] "!==n[0],d=d.replace(/^\[[ xX]\] +/,""))),m.items.push({type:"list_item",raw:r,task:!!n,checked:o,loose:!1,text:d}),m.raw+=r}m.items[m.items.length-1].raw=r.trimRight(),m.items[m.items.length-1].text=d.trimRight(),m.raw=m.raw.trimRight();const b=m.items.length;for(a=0;a"space"===e.type)),t=e.length>0&&e.some((e=>/\n.*\n/.test(e.raw)));m.loose=t}if(m.loose)for(a=0;a$/,"$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:Ve(t[1]).map((e=>({text:e}))),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let r,n,o,i,a=e.align.length;for(r=0;r({text:e})));for(a=e.header.length,n=0;n/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):Te(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))return;const t=Ge(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;const r=e.length;let n=0,o=0;for(;o-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(e)?r.slice(1):r.slice(1,-1)),Je(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 Je(r,e,r[0],this.lexer)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrong.lDelim.exec(e);if(!n)return;if(n[3]&&r.match(/[\p{L}\p{N}]/u))return;const o=n[1]||n[2]||"";if(!o||o&&(""===r||this.rules.inline.punctuation.exec(r))){const r=n[0].length-1;let o,i,a=r,s=0;const l="*"===n[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+r);null!=(n=l.exec(t));){if(o=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!o)continue;if(i=o.length,n[3]||n[4]){a+=i;continue}if((n[5]||n[6])&&r%3&&!((r+i)%3)){s+=i;continue}if(a-=i,a>0)continue;i=Math.min(i,i+a+s);const t=e.slice(0,r+n.index+(n[0].length-o.length)+i);if(Math.min(r,i)%2){const e=t.slice(1,-1);return{type:"em",raw:t,text:e,tokens:this.lexer.inlineTokens(e)}}const l=t.slice(2,-2);return{type:"strong",raw:t,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const r=/[^ ]/.test(e),n=/^ /.test(e)&&/ $/.test(e);return r&&n&&(e=e.substring(1,e.length-1)),e=Te(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=Te(this.options.mangle?t(r[1]):r[1]),n="mailto:"+e):(e=Te(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=Te(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=Te(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]):Te(r[0]):r[0]:Te(this.options.smartypants?t(r[0]):r[0]),{type:"text",raw:r[0],text:e}}}}const Ze={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*|$)|\\n*|$)|\\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:We,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Ze.def=Pe(Ze.def).replace("label",Ze._label).replace("title",Ze._title).getRegex(),Ze.bullet=/(?:[*+-]|\d{1,9}[.)])/,Ze.listItemStart=Pe(/^( *)(bull) */).replace("bull",Ze.bullet).getRegex(),Ze.list=Pe(Ze.list).replace(/bull/g,Ze.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Ze.def.source+")").getRegex(),Ze._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",Ze._comment=/|$)/,Ze.html=Pe(Ze.html,"i").replace("comment",Ze._comment).replace("tag",Ze._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ze.paragraph=Pe(Ze._paragraph).replace("hr",Ze.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",Ze._tag).getRegex(),Ze.blockquote=Pe(Ze.blockquote).replace("paragraph",Ze.paragraph).getRegex(),Ze.normal={...Ze},Ze.gfm={...Ze.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},Ze.gfm.table=Pe(Ze.gfm.table).replace("hr",Ze.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",Ze._tag).getRegex(),Ze.gfm.paragraph=Pe(Ze._paragraph).replace("hr",Ze.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Ze.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",Ze._tag).getRegex(),Ze.pedantic={...Ze.normal,html:Pe("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)| \\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Ze._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:We,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Pe(Ze.normal._paragraph).replace("hr",Ze.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Ze.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const Qe={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:We,tag:"^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\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:We,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(r="x"+r.toString(16)),n+=""+r+";";return n}Qe._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Qe.punctuation=Pe(Qe.punctuation).replace(/punctuation/g,Qe._punctuation).getRegex(),Qe.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Qe.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,Qe._comment=Pe(Ze._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),Qe.emStrong.lDelim=Pe(Qe.emStrong.lDelim).replace(/punct/g,Qe._punctuation).getRegex(),Qe.emStrong.rDelimAst=Pe(Qe.emStrong.rDelimAst,"g").replace(/punct/g,Qe._punctuation).getRegex(),Qe.emStrong.rDelimUnd=Pe(Qe.emStrong.rDelimUnd,"g").replace(/punct/g,Qe._punctuation).getRegex(),Qe._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,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=Pe(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=Pe(Qe.tag).replace("comment",Qe._comment).replace("attribute",Qe._attribute).getRegex(),Qe._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Qe._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Qe._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Qe.link=Pe(Qe.link).replace("label",Qe._label).replace("href",Qe._href).replace("title",Qe._title).getRegex(),Qe.reflink=Pe(Qe.reflink).replace("label",Qe._label).replace("ref",Ze._label).getRegex(),Qe.nolink=Pe(Qe.nolink).replace("ref",Ze._label).getRegex(),Qe.reflinkSearch=Pe(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:Pe(/^!?\[(label)\]\((.*?)\)/).replace("label",Qe._label).getRegex(),reflink:Pe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Qe._label).getRegex()},Qe.gfm={...Qe.normal,escape:Pe(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]*?(?:(?=[\\t+" ".repeat(r.length)));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))))if(r=this.tokenizer.space(e))e=e.substring(r.raw.length),1===r.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(r);else if(r=this.tokenizer.code(e))e=e.substring(r.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?t.push(r):(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(r=this.tokenizer.fences(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.heading(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.hr(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.blockquote(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.list(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.html(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.def(e))e=e.substring(r.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title}):(n.raw+="\n"+r.raw,n.text+="\n"+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(r=this.tokenizer.table(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.lheading(e))e=e.substring(r.raw.length),t.push(r);else{if(o=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const r=e.slice(1);let n;this.options.extensions.startBlock.forEach((function(e){n=e.call({lexer:this},r),"number"==typeof n&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(o)))n=t[t.length-1],i&&"paragraph"===n.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r),i=o.length!==e.length,e=e.substring(r.raw.length);else if(r=this.tokenizer.text(e))e=e.substring(r.raw.length),n=t[t.length-1],n&&"text"===n.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let r,n,o,i,a,s,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)+"["+Ke("a",i[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,i.index)+"["+Ke("a",i[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,i.index+i[0].length-2)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(a||(s=""),a=!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,s))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,et))e=e.substring(r.raw.length),t.push(r);else if(this.state.inLink||!(r=this.tokenizer.url(e,et))){if(o=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const r=e.slice(1);let n;this.options.extensions.startInline.forEach((function(e){n=e.call({lexer:this},r),"number"==typeof n&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(o,Xe))e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(s=r.raw.slice(-1)),a=!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 rt{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?''+(r?e:Te(e,!0))+"
\n":""+(r?e:Te(e,!0))+"
\n"}blockquote(e){return`\n${e}
\n`}html(e){return e}heading(e,t,r,n){if(this.options.headerIds){return`${e} \n`}return`${e} \n`}hr(){return this.options.xhtml?"
\n":"
\n"}list(e,t,r){const n=t?"ol":"ul";return"<"+n+(t&&1!==r?' start="'+r+'"':"")+">\n"+e+""+n+">\n"}listitem(e){return`${e} \n`}checkbox(e){return" "}paragraph(e){return`${e}
\n`}table(e,t){return t&&(t=`${t}`),"\n\n"+e+"\n"+t+"
\n"}tablerow(e){return`\n${e} \n`}tablecell(e,t){const r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+`${r}>\n`}strong(e){return`${e}`}em(e){return`${e}`}codespan(e){return`${e}
`}br(){return this.options.xhtml?"
":"
"}del(e){return`${e}`}link(e,t,r){if(null===(e=Me(this.options.sanitize,this.options.baseUrl,e)))return r;let n='"+r+"",n}image(e,t,r){if(null===(e=Me(this.options.sanitize,this.options.baseUrl,e)))return r;let n=`":">",n}text(e){return e}}class nt{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 ot{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 it{constructor(e){this.options=e||De,this.options.renderer=this.options.renderer||new rt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new nt,this.slugger=new ot}static parse(e,t){return new it(t).parse(e)}static parseInline(e,t){return new it(t).parseInline(e)}parse(e,t=!0){let r,n,o,i,a,s,l,u,c,p,d,h,f,g,m,y,b,v,x,w="";const k=e.length;for(r=0;r0&&"paragraph"===m.tokens[0].type?(m.tokens[0].text=v+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&"text"===m.tokens[0].tokens[0].type&&(m.tokens[0].tokens[0].text=v+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:v}):g+=v),g+=this.parse(m.tokens,f),c+=this.renderer.listitem(g,b,y);w+=this.renderer.list(c,d,h);continue;case"html":w+=this.renderer.html(p.text);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(p.tokens));continue;case"text":for(c=p.tokens?this.parseInline(p.tokens):p.text;r+1{"function"==typeof n&&(o=n,n=null);const i={...n},a=function(e,t,r){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="An error occurred:
"+Te(n.message+"",!0)+"
";return t?Promise.resolve(e):r?void r(null,e):e}if(t)return Promise.reject(n);if(!r)throw n;r(n)}}((n={...lt.defaults,...i}).silent,n.async,o);if(null==r)return a(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof r)return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(function(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}(n),n.hooks&&(n.hooks.options=n),o){const i=n.highlight;let s;try{n.hooks&&(r=n.hooks.preprocess(r)),s=e(r,n)}catch(e){return a(e)}const l=function(e){let r;if(!e)try{n.walkTokens&<.walkTokens(s,n.walkTokens),r=t(s,n),n.hooks&&(r=n.hooks.postprocess(r))}catch(t){e=t}return n.highlight=i,e?a(e):o(null,r)};if(!i||i.length<3)return l();if(delete n.highlight,!s.length)return l();let u=0;return lt.walkTokens(s,(function(e){"code"===e.type&&(u++,setTimeout((()=>{i(e.text,e.lang,(function(t,r){if(t)return l(t);null!=r&&r!==e.text&&(e.text=r,e.escaped=!0),u--,0===u&&l()}))}),0))})),void(0===u&&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(lt.walkTokens(e,n.walkTokens)).then((()=>e)):e)).then((e=>t(e,n))).then((e=>n.hooks?n.hooks.postprocess(e):e)).catch(a);try{n.hooks&&(r=n.hooks.preprocess(r));const o=e(r,n);n.walkTokens&<.walkTokens(o,n.walkTokens);let i=t(o,n);return n.hooks&&(i=n.hooks.postprocess(i)),i}catch(e){return a(e)}}}function lt(e,t,r){return st(tt.lex,it.parse)(e,t,r)}lt.options=lt.setOptions=function(e){var t;return lt.defaults={...lt.defaults,...e},t=lt.defaults,De=t,lt},lt.getDefaults=Se,lt.defaults=De,lt.use=function(...e){const t=lt.defaults.extensions||{renderers:{},childTokens:{}};e.forEach((e=>{const r={...e};if(r.async=lt.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=lt.defaults.renderer||new rt;for(const r in e.renderer){const n=t[r];t[r]=(...o)=>{let i=e.renderer[r].apply(t,o);return!1===i&&(i=n.apply(t,o)),i}}r.renderer=t}if(e.tokenizer){const t=lt.defaults.tokenizer||new Ye;for(const r in e.tokenizer){const n=t[r];t[r]=(...o)=>{let i=e.tokenizer[r].apply(t,o);return!1===i&&(i=n.apply(t,o)),i}}r.tokenizer=t}if(e.hooks){const t=lt.defaults.hooks||new at;for(const r in e.hooks){const n=t[r];at.passThroughHooks.has(r)?t[r]=o=>{if(lt.defaults.async)return Promise.resolve(e.hooks[r].call(t,o)).then((e=>n.call(t,e)));const i=e.hooks[r].call(t,o);return n.call(t,i)}:t[r]=(...o)=>{let i=e.hooks[r].apply(t,o);return!1===i&&(i=n.apply(t,o)),i}}r.hooks=t}if(e.walkTokens){const t=lt.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}}lt.setOptions(r)}))},lt.walkTokens=function(e,t){let r=[];for(const n of e)switch(r=r.concat(t.call(lt,n)),n.type){case"table":for(const e of n.header)r=r.concat(lt.walkTokens(e.tokens,t));for(const e of n.rows)for(const n of e)r=r.concat(lt.walkTokens(n.tokens,t));break;case"list":r=r.concat(lt.walkTokens(n.items,t));break;default:lt.defaults.extensions&<.defaults.extensions.childTokens&<.defaults.extensions.childTokens[n.type]?lt.defaults.extensions.childTokens[n.type].forEach((function(e){r=r.concat(lt.walkTokens(n[e],t))})):n.tokens&&(r=r.concat(lt.walkTokens(n.tokens,t)))}return r},lt.parseInline=st(tt.lexInline,it.parseInline),lt.Parser=it,lt.parser=it.parse,lt.Renderer=rt,lt.TextRenderer=nt,lt.Lexer=tt,lt.lexer=tt.lex,lt.Tokenizer=Ye,lt.Slugger=ot,lt.Hooks=at,lt.parse=lt;lt.options,lt.setOptions,lt.use,lt.walkTokens,lt.parseInline,it.parse,tt.lex;function ut(e){return ut="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},ut(e)}function ct(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pt(e){var t=function(e,t){if("object"!=ut(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ut(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ut(t)?t:String(t)}function dt(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:{};ct(this,e),this.init(t,r)}return ht(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Et,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r1?t-1:0),n=1;n-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=n(i.shift());!e[a]&&r&&(e[a]=new r),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:n(i.shift())}}function Ft(e,t,r){var n=Ot(e,t,Object);n.obj[n.k]=r}function jt(e,t){var r=Ot(e,t),n=r.obj,o=r.k;if(n)return n[o]}function Tt(e,t,r){var n=jt(e,r);return void 0!==n?n:jt(t,r)}function Rt(e,t,r){for(var n in t)"__proto__"!==n&&"constructor"!==n&&(n in e?"string"==typeof e[n]||e[n]instanceof String||"string"==typeof t[n]||t[n]instanceof String?r&&(e[n]=t[n]):Rt(e[n],t[n],r):e[n]=t[n]);return e}function Bt(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var It={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Pt(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return It[e]})):e}var Lt="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,Nt=[" ",",","?","!",";"];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 Ut(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var n=t.split(r),o=e,i=0;ii+a;)a++,l=o[s=n.slice(i,i+a).join(r)];if(void 0===l)return;if(null===l)return null;if(t.endsWith(s)){if("string"==typeof l)return l;if(s&&"string"==typeof l[s])return l[s]}var u=n.slice(i+a).join(r);return u?qt(l,u,r):void 0}o=o[n[i]]}return o}}var Ht=function(e){mt(r,e);var t=zt(r);function r(e){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return ct(this,r),n=t.call(this),Lt&&$t.call(ft(n)),n.data=e||{},n.options=o,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return ht(r,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,i=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];r&&"string"!=typeof r&&(a=a.concat(r)),r&&"string"==typeof r&&(a=a.concat(o?r.split(o):r)),e.indexOf(".")>-1&&(a=e.split("."));var s=jt(this.data,a);return s||!i||"string"!=typeof r?s:qt(this.data&&this.data[e]&&this.data[e][t],r,o)}},{key:"addResource",value:function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];r&&(a=a.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(n=t,t=(a=e.split("."))[1]),this.addNamespaces(t),Ft(this.data,a,n),o.silent||this.emit("added",e,t,r,n)}},{key:"addResources",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in r)"string"!=typeof r[o]&&"[object Array]"!==Object.prototype.toString.apply(r[o])||this.addResource(e,t,o,r[o],{silent:!0});n.silent||this.emit("added",e,t,r)}},{key:"addResourceBundle",value:function(e,t,r,n,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(n=r,r=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var s=jt(this.data,a)||{};n?Rt(s,r,o):s=Ut(Ut({},s),r),Ft(this.data,a,s),i.silent||this.emit("added",e,t,r)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?Ut(Ut({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((function(e){return t[e]&&Object.keys(t[e]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),r}($t),Wt={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,n,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,r,n,o))})),t}};function Vt(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;t1&&void 0!==arguments[1]?arguments[1]:{};return ct(this,r),n=t.call(this),Lt&&$t.call(ft(n)),function(e,t,r){e.forEach((function(e){t[e]&&(r[e]=t[e])}))}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,ft(n)),n.options=o,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=Dt.create("translator"),n}return ht(r,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var r=this.resolve(e,t);return r&&void 0!==r.res}},{key:"extractFromKey",value:function(e,t){var r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");var n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],i=r&&e.indexOf(r)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,r){t=t||"",r=r||"";var n=Nt.filter((function(e){return t.indexOf(e)<0&&r.indexOf(e)<0}));if(0===n.length)return!0;var o=new RegExp("(".concat(n.map((function(e){return"?"===e?"\\?":e})).join("|"),")")),i=!o.test(e);if(!i){var a=e.indexOf(r);a>0&&!o.test(e.substring(0,a))&&(i=!0)}return i}(e,r,n));if(i&&!a){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:o};var l=e.split(r);(r!==n||r===n&&this.options.ns.indexOf(l[0])>-1)&&(o=l.shift()),e=l.join(n)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,t,n){var o=this;if("object"!==ut(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],t),l=s.key,u=s.namespaces,c=u[u.length-1],p=t.lng||this.language,d=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&"cimode"===p.toLowerCase()){if(d){var h=t.nsSeparator||this.options.nsSeparator;return i?(f.res="".concat(c).concat(h).concat(l),f):"".concat(c).concat(h).concat(l)}return i?(f.res=l,f):l}var f=this.resolve(e,t),g=f&&f.res,m=f&&f.usedKey||l,y=f&&f.exactUsedKey||l,b=Object.prototype.toString.apply(g),v=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject;if(x&&g&&("string"!=typeof g&&"boolean"!=typeof g&&"number"!=typeof g)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(b)<0&&("string"!=typeof v||"[object Array]"!==b)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,g,Gt(Gt({},t),{},{ns:u})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");return i?(f.res=w,f):w}if(a){var k="[object Array]"===b,A=k?[]:{},E=k?y:m;for(var S in g)if(Object.prototype.hasOwnProperty.call(g,S)){var D="".concat(E).concat(a).concat(S);A[S]=this.translate(D,Gt(Gt({},t),{joinArrays:!1,ns:u})),A[S]===D&&(A[S]=g[S])}g=A}}else if(x&&"string"==typeof v&&"[object Array]"===b)(g=g.join(v))&&(g=this.extendTranslation(g,e,t,n));else{var $=!1,C=!1,_=void 0!==t.count&&"string"!=typeof t.count,O=r.hasDefaultValue(t),F=_?this.pluralResolver.getSuffix(p,t.count,t):"",j=t["defaultValue".concat(F)]||t.defaultValue;!this.isValidLookup(g)&&O&&($=!0,g=j),this.isValidLookup(g)||(C=!0,g=l);var T=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&C?void 0:g,R=O&&j!==g&&this.options.updateMissing;if(C||$||R){if(this.logger.log(R?"updateKey":"missingKey",p,c,l,R?j:g),a){var B=this.resolve(l,Gt(Gt({},t),{},{keySeparator:!1}));B&&B.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var I=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&P&&P[0])for(var L=0;L1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var l=a.extractFromKey(e,s),u=l.key;r=u;var c=l.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var p=void 0!==s.count&&"string"!=typeof s.count,d=p&&!s.ordinal&&0===s.count&&a.pluralResolver.shouldUseIntlApi(),h=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,f=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(i=e,!Jt["".concat(f[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(Jt["".concat(f[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(r,'" for languages "').concat(f.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach((function(r){if(!a.isValidLookup(t)){o=r;var i,l=[u];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(l,u,r,e,s);else{var c;p&&(c=a.pluralResolver.getSuffix(r,s.count,s));var f="".concat(a.options.pluralSeparator,"zero");if(p&&(l.push(u+c),d&&l.push(u+f)),h){var g="".concat(u).concat(a.options.contextSeparator).concat(s.context);l.push(g),p&&(l.push(g+c),d&&l.push(g+f))}}for(;i=l.pop();)a.isValidLookup(t)||(n=i,t=a.getResource(r,e,i,s))}})))}))}})),{res:t,usedKey:r,exactUsedKey:n,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t===r.substring(0,12)&&void 0!==e[r])return!0;return!1}}]),r}($t);function Zt(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Qt=function(){function e(t){ct(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Dt.create("languageUtils")}return ht(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map((function(e){return e.toLowerCase()})):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=Zt(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=Zt(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=Zt(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,r=this;return e?(e.forEach((function(e){if(!t){var n=r.formatLanguageCode(e);r.options.supportedLngs&&!r.isSupportedCode(n)||(t=n)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var n=r.getLanguagePartFromCode(e);if(r.isSupportedCode(n))return t=n;t=r.options.supportedLngs.find((function(e){if(0===e.indexOf(n))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}},{key:"toResolveHierarchy",value:function(e,t){var r=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(r.isSupportedCode(e)?o.push(e):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),n.forEach((function(e){o.indexOf(e)<0&&i(r.formatLanguageCode(e))})),o}}]),e}(),Xt=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],er={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},tr=["v1","v2","v3"],rr={zero:0,one:1,two:2,few:3,many:4,other:5};var nr=function(){function e(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ct(this,e),this.languageUtils=t,this.options=n,this.logger=Dt.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(r={},Xt.forEach((function(e){e.lngs.forEach((function(t){r[t]={numbers:e.nr,plurals:er[e.fc]}}))})),r)}return ht(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,t);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,r).map((function(e){return"".concat(t).concat(e)}))}},{key:"getSuffixes",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((function(e,t){return rr[e]-rr[t]})).map((function(e){return"".concat(t.options.prepend).concat(e)})):n.numbers.map((function(n){return t.getSuffix(e,n,r)})):[]}},{key:"getSuffix",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRule(e,r);return n?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(n.select(t)):this.getSuffixRetroCompatible(n,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var r=this,n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),o=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var i=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}},{key:"shouldUseIntlApi",value:function(){return!tr.includes(this.options.compatibilityJSON)}}]),e}();function or(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 ir(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};ct(this,e),this.logger=Dt.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return ht(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:Pt,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?Bt(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?Bt(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?Bt(t.nestingPrefix):t.nestingPrefixEscaped||Bt("$t("),this.nestingSuffix=t.nestingSuffix?Bt(t.nestingSuffix):t.nestingSuffixEscaped||Bt(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(e,t,r,n){var o,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(s.formatSeparator)<0){var o=Tt(t,l,e);return s.alwaysFormat?s.format(o,void 0,r,ir(ir(ir({},n),t),{},{interpolationkey:e})):o}var i=e.split(s.formatSeparator),a=i.shift().trim(),u=i.join(s.formatSeparator).trim();return s.format(Tt(t,l,a),u,r,ir(ir(ir({},n),t),{},{interpolationkey:a}))};this.resetRegExp();var p=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,d=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return u(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?u(s.escape(e)):u(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){var r=o[1].trim();if(void 0===(i=c(r)))if("function"==typeof p){var l=p(e,o,n);i="string"==typeof l?l:""}else if(n&&n.hasOwnProperty(r))i="";else{if(d){i=o[0];continue}s.logger.warn("missed to pass in variable ".concat(r," for interpolating ").concat(e)),i=""}else"string"==typeof i||s.useRawValueToEscape||(i=_t(i));var u=t.safeValue(i);if(e=e.replace(o[0],u),d?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var r,n,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=ir({},i);function s(e,t){var r=this.nestingOptionsSeparator;if(e.indexOf(r)<0)return e;var n=e.split(new RegExp("".concat(r,"[ ]*{"))),o="{".concat(n[1]);e=n[0];var i=(o=this.interpolate(o,a)).match(/'/g),s=o.match(/"/g);(i&&i.length%2==0&&!s||s.length%2!=0)&&(o=o.replace(/'/g,'"'));try{a=JSON.parse(o),t&&(a=ir(ir({},t),a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(r).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;r=this.nestingRegexp.exec(e);){var l=[],u=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){var c=r[1].split(this.formatSeparator).map((function(e){return e.trim()}));r[1]=c.shift(),l=c,u=!0}if((n=t(s.call(this,r[1].trim(),a),a))&&r[0]===e&&"string"!=typeof n)return n;"string"!=typeof n&&(n=_t(n)),n||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(e)),n=""),u&&(n=l.reduce((function(e,t){return o.format(e,t,i.lng,ir(ir({},i),{},{interpolationkey:r[1].trim()}))}),n.trim())),e=e.replace(r[0],n),this.regexp.lastIndex=0}return e}}]),e}();function sr(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 lr(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};ct(this,e),this.logger=Dt.create("formatter"),this.options=t,this.formats={number:ur((function(e,t){var r=new Intl.NumberFormat(e,t);return function(e){return r.format(e)}})),currency:ur((function(e,t){var r=new Intl.NumberFormat(e,lr(lr({},t),{},{style:"currency"}));return function(e){return r.format(e)}})),datetime:ur((function(e,t){var r=new Intl.DateTimeFormat(e,lr({},t));return function(e){return r.format(e)}})),relativetime:ur((function(e,t){var r=new Intl.RelativeTimeFormat(e,lr({},t));return function(e){return r.format(e,t.range||"day")}})),list:ur((function(e,t){var r=new Intl.ListFormat(e,lr({},t));return function(e){return r.format(e)}}))},this.init(t)}return ht(e,[{key:"init",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=ur(t)}},{key:"format",value:function(e,t,r,n){var o=this,i=t.split(this.formatSeparator).reduce((function(e,t){var i=function(e){var t=e.toLowerCase().trim(),r={};if(e.indexOf("(")>-1){var n=e.split("(");t=n[0].toLowerCase().trim();var o=n[1].substring(0,n[1].length-1);"currency"===t&&o.indexOf(":")<0?r.currency||(r.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?r.range||(r.range=o.trim()):o.split(";").forEach((function(e){if(e){var t=wt(e.split(":")),n=t[0],o=t.slice(1).join(":").trim().replace(/^'+|'+$/g,"");r[n.trim()]||(r[n.trim()]=o),"false"===o&&(r[n.trim()]=!1),"true"===o&&(r[n.trim()]=!0),isNaN(o)||(r[n.trim()]=parseInt(o,10))}}))}return{formatName:t,formatOptions:r}}(t),a=i.formatName,s=i.formatOptions;if(o.formats[a]){var l=e;try{var u=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},c=u.locale||u.lng||n.locale||n.lng||r;l=o.formats[a](e,c,lr(lr(lr({},s),n),u))}catch(e){o.logger.warn(e)}return l}return o.logger.warn("there was no format function for ".concat(a)),e}),e);return i}}]),e}();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 dr(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:{};return ct(this,r),i=t.call(this),Lt&&$t.call(ft(i)),i.backend=e,i.store=n,i.services=o,i.languageUtils=o.languageUtils,i.options=a,i.logger=Dt.create("backendConnector"),i.waitingReads=[],i.maxParallelReads=a.maxParallelReads||10,i.readingCalls=0,i.maxRetries=a.maxRetries>=0?a.maxRetries:5,i.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(o,a.backend,a),i}return ht(r,[{key:"queueLoad",value:function(e,t,r,n){var o=this,i={},a={},s={},l={};return e.forEach((function(e){var n=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!r.reload&&o.store.hasResourceBundle(e,t)?o.state[s]=2:o.state[s]<0||(1===o.state[s]?void 0===a[s]&&(a[s]=!0):(o.state[s]=1,n=!1,void 0===a[s]&&(a[s]=!0),void 0===i[s]&&(i[s]=!0),void 0===l[t]&&(l[t]=!0)))})),n||(s[e]=!0)})),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}},{key:"loaded",value:function(e,t,r){var n=e.split("|"),o=n[0],i=n[1];t&&this.emit("failedLoading",o,i,t),r&&this.store.addResourceBundle(o,i,r),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(r){!function(e,t,r,n){var o=Ot(e,t,Object),i=o.obj,a=o.k;i[a]=i[a]||[],n&&(i[a]=i[a].concat(r)),n||i[a].push(r)}(r.loaded,[o],i),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(r,e),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach((function(e){a[e]||(a[e]={});var t=r.loaded[e];t.length&&t.forEach((function(t){void 0===a[e][t]&&(a[e][t]=!0)}))})),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,r){var n=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;return e.length?this.readingCalls>=this.maxParallelReads?void this.waitingReads.push({lng:e,ns:t,fcName:r,tried:o,wait:i,callback:a}):(this.readingCalls++,this.backend[r](e,t,(function(s,l){if(n.readingCalls--,n.waitingReads.length>0){var u=n.waitingReads.shift();n.read(u.lng,u.ns,u.fcName,u.tried,u.wait,u.callback)}s&&l&&o2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,n,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){r.loadOne(e)}))}},{key:"load",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:"reload",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:"loadOne",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.split("|"),o=n[0],i=n[1];this.read(o,i,"read",void 0,void 0,(function(n,a){n&&t.logger.warn("".concat(r,"loading namespace ").concat(i," for language ").concat(o," failed"),n),!n&&a&&t.logger.log("".concat(r,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,n,a)}))}},{key:"saveMissing",value:function(e,t,r,n,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=r&&""!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,n,null,dr(dr({},i),{},{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,r,n))}}]),r}($t);function gr(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function mr(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 yr(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(ct(this,r),e=t.call(this),Lt&&$t.call(ft(e)),e.options=gr(o),e.services={},e.logger=Dt,e.modules={external:[]},n=ft(e),Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((function(e){"function"==typeof n[e]&&(n[e]=n[e].bind(n))})),i&&!e.isInitialized&&!o.isClone){if(!e.options.initImmediate)return e.init(o,i),yt(e,ft(e));setTimeout((function(){e.init(o,i)}),0)}return e}return ht(r,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(r=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));var n={debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===ut(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===ut(e[2])||"object"===ut(e[3])){var r=e[3]||e[2];Object.keys(r).forEach((function(e){t[e]=r[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,r,n){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}};function o(e){return e?"function"==typeof e?new e:e:null}if(this.options=yr(yr(yr({},n),this.options),gr(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=yr(yr({},n.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){var i;this.modules.logger?Dt.init(o(this.modules.logger),this.options):Dt.init(null,this.options),this.modules.formatter?i=this.modules.formatter:"undefined"!=typeof Intl&&(i=cr);var a=new Qt(this.options);this.store=new Ht(this.options.resources,this.options);var s=this.services;s.logger=Dt,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new nr(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!i||this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format||(s.formatter=o(i),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new ar(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new fr(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o1?r-1:0),o=1;o0&&"dev"!==l[0]&&(this.options.lng=l[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((function(t){e[t]=function(){var r;return(r=e.store)[t].apply(r,arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(t){e[t]=function(){var r;return(r=e.store)[t].apply(r,arguments),e}}));var u=Ct(),c=function(){var t=function(t,n){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),u.resolve(n),r(t,n)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),u}},{key:"loadResources",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:vr,n="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase())return r();var o=[],i=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};if(n)i(n);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return i(e)}));this.options.preload&&this.options.preload.forEach((function(e){return i(e)})),this.services.backendConnector.load(o,this.options.ns,(function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),r(e)}))}else r(null)}},{key:"reloadResources",value:function(e,t,r){var n=Ct();return e||(e=this.languages),t||(t=this.options.ns),r||(r=vr),this.services.backendConnector.reload(e,t,(function(e){n.resolve(),r(e)})),n}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Wt.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}},{key:"changeLanguage",value:function(e,t){var r=this;this.isLanguageChangingTo=e;var n=Ct();this.emit("languageChanging",e);var o=function(e){r.language=e,r.languages=r.services.languageUtils.toResolveHierarchy(e),r.resolvedLanguage=void 0,r.setResolvedLanguage(e)},i=function(i){e||i||!r.services.languageDetector||(i=[]);var a="string"==typeof i?i:r.services.languageUtils.getBestMatchFromCodes(i);a&&(r.language||o(a),r.translator.language||r.translator.changeLanguage(a),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage(a)),r.loadResources(a,(function(e){!function(e,i){i?(o(i),r.translator.changeLanguage(i),r.isLanguageChangingTo=void 0,r.emit("languageChanged",i),r.logger.log("languageChanged",i)):r.isLanguageChangingTo=void 0,n.resolve((function(){return r.t.apply(r,arguments)})),t&&t(e,(function(){return r.t.apply(r,arguments)}))}(e,a)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),n}},{key:"getFixedT",value:function(e,t,r){var n=this,o=function e(t,o){var i;if("object"!==ut(o)){for(var a=arguments.length,s=new Array(a>2?a-2:0),l=2;l1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var n=this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;var a=function(e,r){var n=t.services.backendConnector.state["".concat(e,"|").concat(r)];return-1===n||2===n};if(r.precheck){var s=r.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!a(n,e)||o&&!a(i,e)))}},{key:"loadNamespaces",value:function(e,t){var r=this,n=Ct();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)})),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var r=Ct();"string"==typeof e&&(e=[e]);var n=this.options.preload||[],o=e.filter((function(e){return n.indexOf(e)<0}));return o.length?(this.options.preload=n.concat(o),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:vr,o=yr(yr(yr({},this.options),t),{isClone:!0}),i=new r(o);void 0===t.debug&&void 0===t.prefix||(i.logger=i.logger.clone(t));return["store","services","language"].forEach((function(t){i[t]=e[t]})),i.services=yr({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new Yt(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}));var wr=xr.createInstance();wr.createInstance=xr.createInstance;wr.createInstance,wr.init,wr.loadResources,wr.reloadResources,wr.use,wr.changeLanguage,wr.getFixedT,wr.t,wr.exists,wr.setDefaultNamespace,wr.hasLoadedNamespace,wr.loadNamespaces,wr.loadLanguages;const kr=wr,Ar={translation:{menu:{filter:"Filter",search:"Search",overview:"Overview","api-servers":"API Servers",authentication:"Authentication",operations:"OPERATIONS",components:"COMPONENTS",schemas:"Schemas"},headers:{"api-servers":"API SERVER",authentication:"AUTHENTICATION"},overview:{email:"Email","terms-of-service":"Terms of Service"},"api-servers":{"server-variables":"SERVER VARIABLES",selected:"SELECTED"},authentication:{"no-api-key-applied":"No API key applied","http-basic":"HTTP Basic","http-basic-desc":"Sends the Authorization header
containing the token type Basic
followed by the base64 encoded username:password
string.",username:"username",password:"password",requires:"Requires","http-basic-note":"Base 64 encoded username:password","in-auth-header":"in Authorization header",set:"SET"},operations:{request:"REQUEST","request-body":"REQUEST BODY",model:"MODEL",body:"BODY",form:"FORM","request-headers":"REQUEST HEADERS",clear:"CLEAR","clear-response":"CLEAR RESPONSE",execute:"EXECUTE",response:"RESPONSE","response-headers":"RESPONSE HEADERS",example:"EXAMPLE","response-status":"Response Status","fetch-fail":"Failed to fetch (Check the browser network tab for more information.)",copy:"Copy",copied:"Copied"},schemas:{"collapse-desc":"Collapse","expand-desc":"Expand","schema-missing":"Schema not found"}}},Er={translation:{menu:{filter:"Filtre",search:"Chercher",overview:"Aperçu","api-servers":"Serveur API",authentication:"Authentification",operations:"OPÉRATIONS",components:"COMPOSANTS",schemas:"Schémas"},headers:{"api-servers":"SERVEUR API",authentication:"AUTHENTIFICATION"},overview:{email:"Courriel","terms-of-service":"Avis"},"api-servers":{"server-variables":"VARIABLES SERVEUR",selected:"CHOISI"},authentication:{"no-api-key-applied":"Aucune clé d'API appliquée","http-basic":"HTTP Basique","http-basic-desc":"Envoyez l'en-tête Authorization contenant
le type Basic
suivi d'un espace et d'une chaîne encodée en base64 de nom d'utilisateur:mot
de passe",username:"nom d'utilisateur",password:"mot de passe",requires:"Nécessite","http-basic-note":"un nom d'utilisateur/mot de passe encodé en base64","in-auth-header":"dans l'en-tête Authorization",set:"DÉFINIR"},operations:{request:"REQUÊTE","request-body":"CORPS DE LA REQUÊTE",model:"MODÈLE",body:"CORPS",form:"FORME","request-headers":"EN-TÊTES DE LA REQUÊTE",clear:"VIDER","clear-response":"VIDER LA RÉPONSE",execute:"EXÉCUTER",response:"RÉPONSE","response-headers":"EN-TÊTES DE LA RÉPONSE",example:"EXEMPLE","response-status":"Statut de réponse","fetch-fail":"Échec d'obtenir (Consultez l'onglet Réseau de navigateur pour plus d'information.)",copy:"Copier",copied:"Copié"},schemas:{"collapse-desc":"Réduire","expand-desc":"Agrandir","schema-missing":"Schéma introuvable"}}};function Sr(e){return kr.t(e)}const Dr=new RegExp(/[\s#:?&={}]/,"g");function $r(e){return new Promise((t=>setTimeout(t,e)))}function Cr(e,t){return!e||t.name.toLowerCase().includes(e.toLowerCase())}function _r(e,t){if(!e)return!0;const r=`${t.method} ${t.path} ${t.summary||""} ${t.description||""} ${t.operationId||""}`;return r.includes(e)||r.toLowerCase().includes(e)||r.normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(e)||r.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(e)}function Or(e,t=new Set){return e?(Object.keys(e).forEach((r=>{t.add(r),e[r].properties?Or(e[r].properties,t):e[r].items&&e[r].items.properties&&Or(e[r].items.properties,t)})),t):t}function Fr(){const e=(window.location.hash||"").split("?")[1],t=new URLSearchParams(e);return decodeURIComponent(t.get("route")||"")}function jr(e){const t=e&&e.replace(/^#/,"")||"",r=(window.location.hash||"").split("?")[0].replace(/^#/,""),n=(window.location.hash||"").split("?")[1],o=new URLSearchParams(n);o.delete("route");const i=o.toString().length>1?`${o.toString()}&route=${t}`:`route=${t}`;window.history.pushState(null,null,`#${r}?${i}`)}function Tr(e){return lt((e||"").replace(/[<]script[^>]*>/gi,"```").replace(/[<][/]script/gi,"```setTimeout(e,100*2**t)))}if(!i){if(a){if(o&&e.toString().match("localhost"))throw Error(`Cannot connect to your localhost running spec because your webserver is blocking requests. To the load the spec from ${e.toString()}, return the following CORS header \`"Access-Control-Allow-Private-Network": "true"\`.`);throw Error(`Failed to resolve the spec: ${a}`)}throw Error("SpecificationNotFound")}const s=function(e){const t=["get","query","put","post","patch","delete","head","options"],r=e.tags&&Array.isArray(e.tags)?e.tags.map((e=>{const t="string"==typeof e?e:e.name;return{elementId:`tag--${t.replace(Dr,"-")}`,name:t,description:e.description||"",headers:e.description?Mr(e.description):[],paths:[],expanded:!0}})):[],n=e.paths||{};if(e.webhooks)for(const[t,r]of Object.entries(e.webhooks))r._type="webhook",n[t]=r;for(const o in n){const i=n[o].servers||[],a="webhook"===n[o]._type;t.forEach((t=>{const s=Lr()(n[o].parameters||[]);if(n[o][t]){const n=e.paths[o][t],l=Array.isArray(n.tags)?n.tags:n.tags&&[n.tags]||[];0===l.length&&l.push("General ⦂"),l.forEach((l=>{var u;let c,p;e.tags&&(p=r.find((e=>e.name.toLowerCase()===l.toLowerCase()))),c=r.find((e=>e.name===l)),c||(c={elementId:`tag--${l.replace(Dr,"-")}`,name:l,description:p&&p.description||"",headers:p&&p.description?Mr(p.description):[],paths:[],expanded:!0},r.push(c));let d=(n.summary||n.description||`${t.toUpperCase()} ${o}`).trim();d.length>100&&(d=d.split(/[.|!|?]\s|[\r?\n]/)[0]);const h=(null===(u=n.parameters)||void 0===u?void 0:u.slice(0))||[];h.push(...s.filter((e=>!h.some((t=>e.name===t.name&&e.in===t.in)))));const f=Object.keys(n.responses||{}).filter((e=>!e.match(/^\d{3}$/i)||e.match(/^[23]\d{2}$/i))),g=f.map((e=>n.responses[e])).reduce(((e,t)=>Object.assign({},e,t.content||{})),{}),m=Object.keys(g).sort(((e,t)=>e.localeCompare(t)));if(!h.some((e=>"header"===e.in&&e.name.match(/^accept$/i)))&&Object.keys(g).length>1&&h.push({in:"header",name:"Accept",description:"Select the response body Content-Type. By default, the service will return a Content-Type that best matches the requested type.",schema:{type:"string",enum:m},default:m[0],example:m[0]}),n.callbacks)for(const[e,t]of Object.entries(n.callbacks)){const r=Object.entries(t),o=r.filter((e=>"object"==typeof e[1]))||[];n.callbacks[e]=Object.fromEntries(o),o.length!==r.length&&console.warn(`OpenAPI Explorer: Invalid Callback found in ${e}`)}const y={expanded:!1,isWebhook:a,summary:n.summary||"",description:n.description||"",shortSummary:d,method:t,path:o,operationId:n.operationId,elementId:`${t}-${o.replace(Dr,"-")}`,servers:n.servers?i.concat(n.servers):i,parameters:h,requestBody:n.requestBody,responses:n.responses,callbacks:n.callbacks,deprecated:n.deprecated,security:n.security||e.security,externalDocs:n.externalDocs,xCodeSamples:n["x-code-samples"]||"",extensions:Object.keys(n).filter((e=>e.startsWith("x-")&&"x-code-samples"!==e)).reduce(((e,t)=>(e[t]=n[t],e)),{})};c.paths.push(y)}))}}))}return r}(i),l=function(e){if(!e.components)return[];const t=[];for(const r in e.components){const n=Object.keys(e.components[r]).map((t=>({expanded:!0,id:`${r.toLowerCase()}-${t.toLowerCase()}`.replace(Dr,"-"),name:t,component:e.components[r][t]}))).sort(((e,t)=>e.name.toLowerCase().localeCompare(t.name.toLowerCase())));"requestBodies"!==r&&"securitySchemes"!==r&&"securitySchemas"!==r&&t.push({expanded:!0,componentKeyId:r,subComponents:n})}return t}(i),u=null!==(r=i.info)&&void 0!==r&&r.description?Mr(i.info.description):[],c=[];null!==(n=i.components)&&void 0!==n&&n.securitySchemes&&Object.entries(i.components.securitySchemes).forEach((e=>{const t={apiKeyId:e[0],...e[1]};t.value="",t.finalKeyValue="","apiKey"===e[1].type||"http"===e[1].type?(t.name=e[1].name||"Authorization",t.user="",t.password=""):"oauth2"===e[1].type&&(t.name="Authorization",t.clientId="",t.clientSecret=""),c.push(t)}));let p=[];if(Array.isArray(i.servers)&&i.servers.length){i.servers.filter((e=>e)).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}));const e=t&&!i.servers.some((e=>e.url===t||e.computedUrl===t))?[{url:t,computedUrl:t}]:[];p=e.concat(i.servers)}else p=t?[{url:t,computedUrl:t}]:o?[{url:new URL(e).origin,computedUrl:new URL(e).origin}]:window.location.origin.startsWith("http")?[{url:window.location.origin,computedUrl:window.location.origin}]:[{url:"http://localhost",computedUrl:"http://localhost"}];return{info:i.info,infoDescriptionHeaders:u,tags:s,components:l,externalDocs:i.externalDocs,securitySchemes:c,servers:p}}function Mr(e){const t=lt.lexer(e).filter((e=>"heading"===e.type&&e.depth<=2));return t||[]}const Ur=2,zr=e=>(...t)=>({_$litDirective$:e,values:t});class qr{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 Hr extends qr{constructor(e){if(super(e),this.et=H,e.type!==Ur)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===H||null==e)return this.ft=void 0,this.et=e;if(e===q)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:[]}}}Hr.directiveName="unsafeHTML",Hr.resultType=1;const Wr=zr(Hr);var Vr=r(772),Gr=r.n(Vr);function Kr(e,t){t.preventDefault();let r="";const n=this.resolvedSpec.securitySchemes.find((t=>t.apiKeyId===e));if(!n)return;const o=t.target.closest("tr");if(n.type&&"http"===n.type&&n.scheme&&"basic"===n.scheme.toLowerCase()){const e=o.querySelector(".api-key-user").value.trim(),t=o.querySelector(".api-key-password").value.trim();t&&(r=`Basic ${btoa(`${e}:${t}`)}`)}else r=o.querySelector(".api-key-input").value.trim(),r&&n.scheme&&"bearer"===n.scheme.toLowerCase()&&(r=`Bearer ${r.replace(/^Bearer\s+/i,"")}`);n.finalKeyValue=r,this.requestUpdate()}function Jr(){this.resolvedSpec.securitySchemes.forEach((e=>{e.user="",e.password="",e.value="",e.finalKeyValue=""})),this.requestUpdate()}function Yr(e,t="Bearer",r){const n=this.resolvedSpec.securitySchemes.find((t=>t.apiKeyId===e)),o=t&&"bearer"===t.toLowerCase()?"Bearer":t;n.finalKeyValue=`${o}${o?" ":""}${r}`,this.requestUpdate()}async function Zr(e,t,r,n,o,i,a="header",s,l,u=null){const c=l?l.querySelector(".oauth-resp-display"):void 0,{codeVerifier:p,clientId:d}=JSON.parse(localStorage.getItem("openapi-explorer-oauth")||"{}");localStorage.removeItem("openapi-explorer-oauth");const h=t||d,f=new URLSearchParams,g=new Headers;f.append("grant_type",o),n&&f.append("redirect_uri",n),i&&f.append("code",i),"header"===a?g.set("Authorization",`Basic ${btoa(`${h}:${r}`)}`):(f.append("client_id",h),r&&f.append("client_secret",r)),u&&f.append("scope",u),p&&f.append("code_verifier",p);try{const t=await fetch(e,{method:"POST",headers:g,body:f}),r=await t.json();if(!t.ok)return void(c&&(c.innerHTML=`${r.error_description||r.error_description||"Unable to get access token"}`));r.token_type&&r.access_token&&(Yr.call(this,s,r.token_type,r.access_token),c&&(c.innerHTML='Access Token Received'))}catch(e){c&&(c.innerHTML='Failed to get access token')}}function Qr(e){const t={},r=e&&e.entries()||[];for(const[e,n]of r)t[e]=n;return t}async function Xr(e){const t=Qr(new URLSearchParams(window.location.search)),r=Qr(new URLSearchParams(window.location.hash.slice(1)));Object.assign(t,r);const n=new URL(window.location);if(n.searchParams.delete("nonce"),n.searchParams.delete("expires_in"),n.searchParams.delete("access_token"),n.searchParams.delete("token_type"),n.searchParams.delete("id_token"),n.searchParams.delete("state"),n.searchParams.delete("code"),n.searchParams.delete("iss"),n.searchParams.delete("scope"),n.searchParams.delete("prompt"),n.searchParams.delete("hd"),n.searchParams.delete("authuser"),n.searchParams.delete("redirect_auth"),!t.state)return;const o=n.toString().replace(/#((code|state|access_token|id_token|authuser|expires_in|hd|prompt|scope|token_type)=[^&]+&?)*$/gi,"");let i;history.replaceState({},void 0,o);try{i=JSON.parse(Gr().decode(t.state.replace(/\?.*$/,"")))}catch(e){return void console.error("The state parameter in the OAuth response is invalid",e,t.state)}const{apiKeyId:a,flowId:s,url:l}=i;if(e&&l&&!t.redirect_auth){const e=new URL(l);return Object.keys(t).forEach((r=>e.searchParams.append(r,t[r]))),e.searchParams.append("redirect_auth",!0),void window.location.replace(e.toString())}if(t.code){var u;const e=this.resolvedSpec.securitySchemes.find((e=>e.apiKeyId===a)),r=e&&e.flows[s]&&new URL(e.flows[s].tokenUrl||"",null===(u=this.selectedServer)||void 0===u?void 0:u.computedUrl);await Zr.call(this,r,e.clientId,e.clientSecret,e.redirectUri||window.location.href,"authorization_code",t.code,null,a)}else Yr.call(this,a,t.token_type,t.access_token)}async function en(e,t,r,n,o){const i=o.target.closest(".oauth-flow"),a=i.querySelector("#oauth-client-id")?i.querySelector("#oauth-client-id").value.trim():"",s=i.querySelector("#oauth-client-secret")?i.querySelector("#oauth-client-secret").value.trim():"",l=i.querySelector("#oauth-send-client-secret-in")?i.querySelector("#oauth-send-client-secret-in").value.trim():"header",u=[...i.querySelectorAll('input[type="checkbox"]:checked')],c=this.resolvedSpec.securitySchemes.find((t=>t.apiKeyId===e));let p="",d="";if([...i.parentNode.querySelectorAll(".oauth-resp-display")].forEach((e=>{e.innerHTML=""})),"authorizationCode"===t||"implicit"===t){const n=new URL(r),o=new URLSearchParams(n.search);let i;if("authorizationCode"===t){const e=new Uint32Array(12);(window.crypto||window.msCrypto).getRandomValues(e),o.set("nonce",e.toString("hex").split(",").join("")),p="authorization_code",d="code",i=e.toString("hex").split(",").join("");const t=await(window.crypto||window.msCrypto).subtle.digest("SHA-256",(new TextEncoder).encode(i)),r=Gr()(t);o.set("code_challenge",r),o.set("code_challenge_method","S256")}else"implicit"===t&&(d="token");localStorage.setItem("openapi-explorer-oauth",JSON.stringify({codeVerifier:i,clientId:a,apiKeyId:e,flowId:t}));const s=u.map((e=>e.value)).join(" ");s&&o.set("scope",s),o.set("client_id",a),o.set("redirect_uri",c.redirectUri||window.location.href),o.set("response_type",d),o.set("state",Gr().encode(JSON.stringify({apiKeyId:e,flowId:t,url:window.location.href}))),n.search=o.toString(),window.location.assign(n.toString())}else if("clientCredentials"===t){p="client_credentials";const t=u.map((e=>e.value)).join(" ");Zr.call(this,n,a,s,"",p,"",l,e,i,t)}}function tn(e,t,r){var n,o,i;const a=t.apiKeyId,s=e=>{var t;return e?new URL(e,null===(t=this.selectedServer)||void 0===t?void 0:t.computedUrl):void 0},l=s(r.authorizationUrl,null===(n=this.selectedServer)||void 0===n||n.computedUrl),u=s(r.tokenUrl,null===(o=this.selectedServer)||void 0===o||o.computedUrl),c=s(r.refreshUrl,null===(i=this.selectedServer)||void 0===i||i.computedUrl);let p;return p="authorizationCode"===e?"Authorization Code Flow":"clientCredentials"===e?"Client Credentials Flow":"implicit"===e?"Implicit Flow":e,z` ${p} ${l?z`Auth URL ${l} `:""} ${u?z`Token URL ${u}`:""} ${c?z`Refresh URL ${c}`:""} ${"authorizationCode"===e||"clientCredentials"===e||"implicit"===e?z` ${r.scopes?z` Scopes ${Object.entries(r.scopes).map(((t,r)=>z` `))} `:""} ${"clientCredentials"===e?z` `:z``} ${"authorizationCode"===e||"clientCredentials"===e||"implicit"===e?z` `:""} `:""} `}function rn(e){return e.type?"apikey"===e.type.toLowerCase()||"http"===e.type.toLowerCase()&&e.scheme&&"bearer"===e.scheme.toLowerCase()?z` ${"apikey"===e.type.toLowerCase()?z`Sends ${e.name||"API key"}
in ${e.in||"the request"}
with the given value:`:z`Sends the Authorization header
containing the token type ${e.scheme||"bearer"}
followed by the ${null!==(t=e.bearerFormat)&&void 0!==t?t:"Token"}
string.`} `:"http"===e.type.toLowerCase()&&e.scheme&&"basic"===e.scheme.toLowerCase()?e.finalKeyValue?z` ${Wr(Sr("authentication.http-basic-desc"))} Key Applied `:z` ${Wr(Sr("authentication.http-basic-desc"))} `:"oauth2"===e.type.toLowerCase()&&Object.keys(e.flows).length?z`${Object.keys(e.flows).map((t=>tn.call(this,t,e,e.flows[t])))}`:"":"";var t,r}function nn(){const e=this.resolvedSpec&&this.resolvedSpec.securitySchemes;if(!e)return;const t=e.filter((e=>e.finalKeyValue));return z` ${Sr("headers.authentication")} ${t.length>0?z` ${t.length} API key applied `:z`${Sr("authentication.no-api-key-applied")}`} ${e.length>0?z` ${e.map((e=>z` ${an(e)} ${e.description?z` ${Wr(Tr(e.description||""))} `:""} ${rn.call(this,e)} `))}
`:""} `}function on(e){const t=Array.isArray(e)?e.map((e=>null==e?void 0:e.trim())).filter((e=>e)):[];return t.length?z` Required scopes:
${t.map((e=>z`${e} `))} `:""}function an(e){return"apiKey"===e.type?`API Key (${e.name})`:"oauth2"===e.type?"OAuth2.0":"http"===e.type?"basic"===e.scheme?Sr("authentication.http-basic"):"HTTP Bearer":e.type}function sn(e){const t=(null==e?void 0:e.filter((e=>e&&Object.keys(e).length)))||[];if(this.resolvedSpec.securitySchemes&&t.length){const e=[];return t.forEach((t=>{const r=[],n=[];Object.keys(t).forEach((e=>{const o=this.resolvedSpec.securitySchemes.find((t=>t.apiKeyId===e));n.push(o?an(o):e),r.push({...o,scopes:t[e]})})),e.push({securityTypes:n.length>1?`${n[0]} + ${n.length-1} more`:n[0],securityDefs:r})})),z` `}return""}function ln(e){return z` CODE SAMPLES {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"}))}}"> `}))} ${e.map(((e,t)=>{const r=Math.min(...e.source.split("\n").slice(1).map((e=>{var t;return null===(t=e.match(/^(\s*).*$/m))||void 0===t?void 0:t[1].length})).filter((e=>void 0!==e))),n=e.source.split("\n").map((e=>e.substring(0,r).match(/^\s+$/)?e.substring(r):e)),o=n.join("\n");return z` `}function un(e){return z` ${Object.entries(e).map((e=>z` CALLBACKS ${e[0]} ${Object.entries(e[1]).map((e=>z` ${Object.entries(e[1]).map((t=>z` ⥄ ${t[0]} ${e[0]} `))} `))} `))} `}const{I:cn}=ie,pn={},dn=zr(class extends qr{constructor(){super(...arguments),this.key=H}render(e,t){return this.key=e,t}update(e,[t,r]){return t!==this.key&&(((e,t=pn)=>{e._$AH=t})(e),this.key=t),r}});var hn=r(131),fn=r.n(hn),gn=r(378),mn=r.n(gn),yn=r(419),bn=r.n(yn);const vn={"&":"&",'"':""","'":"'","<":"<",">":">"};function xn(e){return e&&e.replace?e.replace(/([&"<>'])/g,(function(e,t){return vn[t]})):e}const wn=" ";function kn(e,t){let r=t;"object"!=typeof r&&(r={indent:r});let n="";const o=r.indent?!0===r.indent?wn:r.indent:"";function i(e,t){void 0!==t&&(n+=t)}function a(e,t){En(i,An(e,o,o?1:0),t)}return r.declaration&&function(e){const t={version:"1.0",encoding:e.encoding||"UTF-8"};e.standalone&&(t.standalone=e.standalone),a({"?xml":{_attr:t}}),n=n.replace("/>","?>")}(r.declaration),e&&e.forEach?e.forEach((function(t,r){a(t,r+1===e.length)})):a(e,!0),n}function An(e,t,r){const n=r||0,o=(i=t,new Array(n||0).join(i||""));var i;let a,s=e;if("object"==typeof e){if(a=Object.keys(e)[0],s=e[a],s&&s._elem)return s._elem.name=a,s._elem.icount=n,s._elem.indent=t,s._elem.indents=o,s._elem.interrupt=s,s._elem}const l=[],u=[];let c;function p(e){Object.keys(e).forEach((function(t){l.push(function(e,t){return`${e}="${xn(t)}"`}(t,e[t]))}))}switch(typeof s){case"object":if(null===s)break;s._attr&&p(s._attr),s._cdata&&u.push(`${`/g,"]]]]>")}]]>`),s.forEach&&(c=!1,u.push(""),s.forEach((function(e){if("object"==typeof e){"_attr"===Object.keys(e)[0]?p(e._attr):u.push(An(e,t,n+1))}else u.pop(),c=!0,u.push(xn(e))})),c||u.push(""));break;default:u.push(xn(s))}return{name:a,interrupt:!1,attributes:l,content:u,icount:n,indents:o,indent:t}}function En(e,t,r){if("object"!=typeof t)return void e(!1,t);const n=t.interrupt?1:t.content.length;function o(){for(;t.content.length;){const r=t.content.shift();if(void 0!==r){if(i(r))return;En(e,r)}}e(!1,(n>1?t.indents:"")+(t.name?`${t.name}>`:"")+(t.indent&&!r?"\n":""))}function i(t){return!!t.interrupt&&(t.interrupt.append=e,t.interrupt.end=o,t.interrupt=!1,e(!0),!0)}e(!1,t.indents+(t.name?`<${t.name}`:"")+(t.attributes.length?` ${t.attributes.join(" ")}`:"")+(n?t.name?">":"":t.name?"/>":"")+(t.indent&&n>1?"\n":"")),n?i(t)||o():e(!1,t.indent?"\n":"")}var Sn=r(764).lW;const Dn="",$n="";function Cn(e,t={includeNulls:!1,enableExampleGeneration:!1}){var r,n;if(!e)return;const o=Object.assign({},e,e.schema);let i=Dn,a=o.format||(null===(r=o.items)||void 0===r?void 0:r.format)||"";if(o.circularReference)i=`{recursive: ${o.circularReference.name}} `;else if(o.type){const e=Array.isArray(o.type)?o.type:"string"==typeof o.type?o.type.split("┃"):o.type;i=Array.isArray(e)?e.filter((e=>"null"!==e||t.includeNulls)).join("┃"):o.type,["string","number"].forEach((e=>{i=i.replace(e,(void 0!==o.const?"const":o.enum&&`${e} enum`)||o.format||e)})),o.nullable&&t.includeNulls&&(i+="┃null"),i.includes("┃null")&&o.format&&(a+="┃null")}const s=o.examples||o.example||(null==t?void 0:t.enableExampleGeneration)&&_n(o,null)||"",l={type:i,format:a,cssType:i.replace(/┃.*/g,"").replace(/[^a-zA-Z0-9+\s]/g,"").toLowerCase(),pattern:o.pattern&&!o.enum?o.pattern.replace(/(^\^)|(\$$)/g,""):"",readOrWriteOnly:(o.readOnly?"🆁":o.writeOnly&&"🆆")||"",deprecated:!!o.deprecated,example:s||"",default:null!==(n=o.default)&&void 0!==n?n:"",title:o.title||"",description:o.description||"",constraints:[],allowedValues:void 0!==o.const&&[o.const]||o.enum||null,arrayType:""};if("array"===i&&o.items){var u,c;const e=o.items.type,t=null!==(u=null!==(c=o.items.default)&&void 0!==c?c:o.default)&&void 0!==u?u:"";l.arrayType=`${o.type} of ${Array.isArray(e)?e.join(""):e}`,l.default=t,l.allowedValues=void 0!==o.const&&[o.const]||o.items.enum||null}if(o.uniqueItems&&l.constraints.push("Requires unique items"),i.match(/integer|number/g)){var p,d;const e=null!==(p=o.minimum)&&void 0!==p?p:o.exclusiveMinimum,t=null!==(d=o.maximum)&&void 0!==d?d:o.exclusiveMaximum,r=void 0!==o.minimum?"[":"(",n=void 0!==o.maximum?"]":")";"number"!=typeof e&&"number"!=typeof t||l.constraints.push(`Range: ${r}${null!=e?e:""},${null!=t?t:""}${n}`),void 0!==o.multipleOf&&l.constraints.push(`Multiples: ${o.multipleOf}`)}return i.match(/string/g)&&(void 0!==o.minLength&&void 0!==o.maxLength?l.constraints.push(`Min length: ${o.minLength}, Max length: ${o.maxLength}`):void 0!==o.minLength?l.constraints.push(`Min length: ${o.minLength}`):void 0!==o.maxLength&&l.constraints.push(`Max length: ${o.maxLength}`)),l.html=JSON.stringify({type:l.type,format:l.format,cssType:l.cssType,readOrWriteOnly:l.readOrWriteOnly,constraints:l.constraints,defaultValue:l.default,example:l.example,allowedValues:l.allowedValues,pattern:l.pattern,schemaDescription:l.description,schemaTitle:l.title,deprecated:l.deprecated}),l}function _n(e,t,r){var n;const o=t||"string";if(e.default)return e.default;if(0===Object.keys(e).length)return $n;if(e.circularReference)return e.$ref;const i=Array.isArray(e.type)?e.type.filter((e=>"null"!==e))[0]:null!==(n=e.type)&&void 0!==n?n:"";if(void 0!==e.const)return e.const;if(e.enum)return e.enum[0];if(i.match(/^integer|^number/g)){const t=Number.isNaN(Number(e.multipleOf))?void 0:Number(e.multipleOf),r=Number.isNaN(Number(e.maximum))?void 0:Number(e.maximum),n=Number.isNaN(Number(e.minimum))?Number.isNaN(Number(e.exclusiveMinimum))?r||0:Number(e.exclusiveMinimum)+(i.startsWith("integer")?1:.001):Number(e.minimum);return t?t>=n?t:n%t==0?n:Math.ceil(n/t)*t:n}if(i.match(/^boolean/g))return!1;if(i.match(/^null/g))return null;if(r&&i.match(/^string/g)&&o.match(/id$/i))return"";if(i.match(/^string/g)){if(e.pattern){const t=e.pattern.replace(/[+*](?![^\][]*[\]])/g,"{8}").replace(/\{\d*,(\d+)?\}/g,"{8}");try{return new(bn())(t).gen()||o}catch(e){return o}}if(!e.format)return o;switch(e.format.toLowerCase()){case"url":return"https://example.com";case"uri":return"urn:namespace:type:example/resource";case"date":return(new Date).toISOString().split("T")[0];case"time":return(new Date).toISOString().split("T")[1];case"date-time":return(new Date).toISOString();case"duration":return"P3Y6M4DT12H30M5S";case"email":case"idn-email":return"[email protected]";case"hostname":case"idn-hostname":return"www.example.com";case"ipv4":return"192.168.0.1";case"ipv6":return"2001:0db8:5b96:0000:0000:426f:8e17:642a";case"uuid":return"4e0ba220-9575-11eb-a8b3-0242ac130003";case"byte":return Sn.from("example").toString("base64");default:return e.format}}return $n}function On(e,t={}){var r,n,o;if(!e)return[];const i={},{prefix:a,namespace:s}=e.xml||{};s&&(i[a?`xmlns:${a}`:"xmlns"]=s);const l=(null==e||null===(r=e.items)||void 0===r||null===(n=r.xml)||void 0===n?void 0:n.name)||(null==e||null===(o=e.xml)||void 0===o?void 0:o.name)||t.propertyName||"root",u=a?`${a}:${l}`:l,{allOf:c,oneOf:p,anyOf:d,...h}=e;if(c){return On(mn()({},...c,h),t)}if(p||d){const e=(p||d).map((e=>On(mn()({},h,e),t))).flat(1),r=e=>"object"==typeof e?JSON.stringify(e):e,n=e.reduce(((e,t)=>(e[r(t)]=t,e)),{});return Object.values(n)}return function(e,t,r,n,o,i,a){const s=Array.isArray(e.examples)&&e.examples||e.examples&&"object"==typeof e.examples&&Object.values(e.examples).map((e=>e.value)).filter((e=>e))||e.example&&[e.example]||[];if(t.skipExampleIds&&t.propertyName&&t.propertyName.match(/id$/i))return[""];if(s.length)return s;if("array"===e.type||e.items){if(!t.xml)return[On(e.items||{},t)];if(!e.xml||!e.xml.wrapped){const r=On(e.items||{},t);return i.push({[a]:r[0]},{_attr:o}),[i]}const r=On(e.items||{},{...t,propertyName:a});return i.push({[a]:r[0]},{_attr:o}),[i]}if("object"===e.type||e.properties){let a=[{}];return Object.keys(e.properties||{}).forEach((s=>{const l=e.properties[s]||{};if(l.deprecated)return;if(l.readOnly&&!t.includeReadOnly)return;if(l.writeOnly&&!t.includeWriteOnly)return;const u=On(l,{...t,propertyName:s});a=function(e,t,r){return e.reduce(((e,n)=>{const o=r.slice(0,2).map((e=>({...Lr()(n),[t]:e})));return e.concat(...o)}),[]).slice(0,10)}(a,s,u),l.xml&&l.xml.namespace&&(o[l.xml.prefix?`xmlns:${l.xml.prefix}`:"xmlns"]=r);const c=l.xml&&l.xml.name||s||t.propertyName,p=n?`${n}:${c}`:c;l.xml&&l.xml.attribute?o[p]=u[0]:i.push({[p]:u[0]})})),Object.keys(o).length&&i.push({_attr:o}),t.xml?[i]:a}const l=_n(e,t.propertyName,t.skipExampleIds);return[l]}(h,t,s,a,i,[],u)}function Fn(e){return e.match(/^|{if("object"===n.type||n.properties||n.allOf||n.anyOf||n.oneOf){const i=(n.anyOf||n.oneOf)&&o>0?o:"",a=jn(n,t,r+1,i);Object.assign(e,a)}else if("array"===n.type||n.items){const o=jn(n,t,r+1);Object.assign(e,o)}else if(n.type){const r=`prop${Object.keys(e).length}`,o=Cn(n,t);e[r]=`${o.html}`}}));const n=jn(c,t,0),i="object"!=typeof n||Array.isArray(n)?{}:n;return i["::title"]=c.title||i["::title"],i["::description"]=c.description||i["::description"],Object.assign({},e,i)}if(a||i){const e={"::type":"xxx-of-option"};let r=!0,o=!0;(a||i||[]).forEach(((n,i)=>{if("object"===n.type||n.properties||n.allOf||n.anyOf||n.oneOf||"array"===n.type||n.items){const l=jn(n,t);var a,s;if(l)e[`::OPTION~${i+1}${n.title?`~${n.title}`:""}`]=l,o=o&&(null===(a=l["::flags"])||void 0===a?void 0:a["🆁"]),r=r&&(null===(s=l["::flags"])||void 0===s?void 0:s["🆆"])}else{const a=Cn(n,t);if(null!=a&&a.type){var l,u;const t=`::OPTION~${i+1}${n.title?`~${n.title}`:""}`;e[t]=`${a.html}`,o=o&&(null===(l=e["::flags"])||void 0===l?void 0:l["🆁"]),r=r&&(null===(u=e["::flags"])||void 0===u?void 0:u["🆆"])}}}));const s=jn(c,t,0),l="object"!=typeof s||Array.isArray(s)?{}:s;return Object.keys(e).length&&(l[a?`::ANY~OF ${n}`:`::ONE~OF ${n}`]=e),l["::link"]=c.title||"",l["::type"]=c.title||"object",l["::flags"]={"🆁":o&&"🆁","🆆":r&&"🆆"},l["::title"]=c.title||"",l["::description"]=c.description||"",l["::metadata"]=d,l}if(Array.isArray(p)){const e={"::type":""},n=JSON.parse(JSON.stringify(c)),o=[],i=[];let a;var h;if(n.type.forEach((e=>{e.match(/integer|number|string|null|boolean/g)?o.push(e):"array"===e&&"string"==typeof(n.items&&n.items.type)&&s&&n.items.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}[]`):i.push(e)})),o.length>0)if(n.type=o.join("┃"),a=Cn(n,t),0===i.length)return`${(null===(h=a)||void 0===h?void 0:h.html)||""}`;if(i.length>0){e["::link"]=c.title||"",e["::type"]="object";const o={"::type":"xxx-of-option"};i.forEach(((e,i)=>{if("null"===e)o[`::OPTION~${i+1}`]="NULL~|~~|~~|~~|~~|~~|~~|~~|~";else if("integer, number, string, boolean,".includes(`${e},`)){n.type=Array.isArray(e)?e.join("┃"):e;const r=Cn(n,t);o[`::OPTION~${i+1}`]=r.html}else if("object"===e){const e={"::title":c.title||"","::description":c.description||"","::flags":{"🆁":c.readOnly&&"🆁","🆆":c.writeOnly&&"🆆"},"::link":c.title||"","::type":c.title||"object","::deprecated":c.deprecated||!1,"::metadata":d};for(const n in l){var a;c.deprecated||l[n].deprecated||null===(a=c.required)||void 0===a||!a.includes(n)?e[n]=jn(l[n],t,r+1):e[`${n}*`]=jn(l[n],t,r+1)}o[`::OPTION~${i+1}`]=e}else"array"===e&&(o[`::OPTION~${i+1}`]={"::title":c.title||"","::description":c.description||(null==s?void 0:s.description)||"","::flags":{"🆁":c.readOnly&&"🆁","🆆":c.writeOnly&&"🆆"},"::link":s.title||c.title||"","::type":"array","::props":jn(Object.assign({},c,s,{description:c.description||(null==s?void 0:s.description)}),t,r+1),"::deprecated":c.deprecated||!1,"::metadata":d})})),o[`::OPTION~${i.length+1}`]=a&&a.html||"",e["::ONE~OF"]=o}return e}if("object"===p||l){const e={"::type":""};e["::title"]=c.title||"",e["::description"]=c.description||"",e["::flags"]={"🆁":c.readOnly&&"🆁","🆆":c.writeOnly&&"🆆"},e["::link"]=c.title||"",e["::type"]=c.title||"object",e["::deprecated"]=c.deprecated||!1,e["::metadata"]=d;for(const n in l){var f,g;c.deprecated||null!==(f=l[n])&&void 0!==f&&f.deprecated||null===(g=c.required)||void 0===g||!g.includes(n)?e[n]=jn(l[n],t,r+1):e[`${n}*`]=jn(l[n],t,r+1)}for(const n in u)e[``]=jn(u[n],t,r+1);return c.additionalProperties&&(e[""]=jn(c.additionalProperties,t)),e}if("array"===p||s){const e={"::type":""};return e["::title"]=c.title||"",e["::description"]=c.description||(null==s?void 0:s.description)||"",e["::flags"]={"🆁":c.readOnly&&"🆁","🆆":c.writeOnly&&"🆆"},e["::link"]=(null==s?void 0:s.title)||c.title||"",e["::type"]="array",e["::deprecated"]=c.deprecated||!1,e["::metadata"]=d,e["::props"]=jn(Object.assign({},c,{type:void 0},s,{description:e["::description"]}),t,r+1),null!=s&&s.items&&(e["::array-type"]=s.items.type),e}const m=Cn(c,t);return`${(null==m?void 0:m.html)||""}`}function Tn(e,t,r,n,o=!0,i=!0,a,s=!1){const l=n||"application/json",u=[];if(e)for(const t in e){let r="",n="json";if(l.toLowerCase().includes("json")){if("text"===a)r="string"==typeof e[t].value?e[t].value:JSON.stringify(e[t].value,void 0,2),n="text";else if(r=e[t].value,"string"==typeof e[t].value)try{const o=e[t].value.replace(/([\w]+)(:)/g,'"$1"$2').replace(/'/g,'"');r=JSON.parse(o),n="json"}catch(o){n="text",r=e[t].value}}else r=e[t].value,n="text";u.push({exampleId:t,exampleSummary:e[t].summary||"",exampleDescription:e[t].description||"",exampleType:l,exampleValue:r,exampleFormat:n})}else if(t){let e="",r="json";if(l.toLowerCase().includes("json")){if("text"===a)e="string"==typeof t?t:JSON.stringify(t,void 0,2),r="text";else if("object"==typeof t)e=t,r="json";else if("string"==typeof t)try{e=JSON.parse(t),r="json"}catch(n){r="text",e=t}}else e=t,r="text";u.push({exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:l,exampleValue:e,exampleFormat:r})}if(u.length)return u;if(null!=r&&r.example)return[{exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:l,exampleValue:r.example,exampleFormat:l.toLowerCase().includes("json")&&"object"==typeof r.example?"json":"text"}];const c=function(e,t={}){if(t.xml)return On("object"===(null==e?void 0:e.type)?{properties:{_root:e}}:e,t).map((e=>e[0]));return On(e,t)}(r,{includeReadOnly:o,includeWriteOnly:i,skipExampleIds:s,xml:l.toLowerCase().includes("xml")});return c&&(l.toLowerCase().includes("json")||l.toLowerCase().includes("text")||l.toLowerCase().includes("*/*")||l.toLowerCase().includes("xml"))?c.map(((e,t)=>{let r="";return r=l.toLowerCase().includes("xml")?kn(e,{declaration:!0,indent:" "}):"text"===a?JSON.stringify(e,null,8):e,{exampleId:`Example-${t}`,exampleSummary:"",exampleDescription:"",exampleType:l,exampleFormat:l.toLowerCase().includes("xml")?"text":a,exampleValue:r}})).filter((e=>e)):[{exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:l,exampleValue:"",exampleFormat:"text"}]}const Rn=l`.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}`;class Bn extends ue{static get properties(){return{data:{type:Object},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:Boolean},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=!0,this.schemaHideReadOnly&&"true false".includes(this.schemaHideReadOnly)||(this.schemaHideReadOnly="true"),this.schemaHideWriteOnly&&"true false".includes(this.schemaHideWriteOnly)||(this.schemaHideWriteOnly="true")}update(e){e.has("data")&&(this.interactive=!1),super.update(e)}updated(){this.interactive=!0}static finalizeStyles(){return[pe,he,Rn,me,l`.tree{min-height:30px;background:var(--bg2);padding:12px;font-size:var(--font-size-small);text-align:left;line-height:calc(var(--font-size-small) + 6px)}.tree .key{max-width:300px}.requiredStar::after{content:'*';color:var(--red);font-size:larger}.key.deprecated .key-label{text-decoration:line-through}.open-bracket{display:inline-block;padding:0 20px 0 0;cursor:pointer;border:1px solid transparent;border-radius:3px}.collapsed .open-bracket{padding-right:0}.td.key>.open-bracket:first-child{margin-left:-2px}.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)}.inside-bracket-wrapper{overflow:hidden}.tree:not(.interactive) .inside-bracket-wrapper{animation-duration:0s!important}.tr:not(.collapsed)+.inside-bracket-wrapper{animation:linear .2s expand-height}.tr.collapsed+.inside-bracket-wrapper{animation:linear .2s collapse-height;max-height:0}.inside-bracket.array,.inside-bracket.object{border-left:1px dotted var(--border-color)}.inside-bracket.xxx-of.option{border-left:1px solid transparent}`]}render(){var e,t,r,n,o,i,a;const s=[(null===(e=this.data)||void 0===e?void 0:e["::title"])||"array"===(null===(t=this.data)||void 0===t?void 0:t["::type"])&&(null===(r=this.data)||void 0===r||null===(n=r["::props"])||void 0===n?void 0:n["::title"])&&`[${null===(o=this.data)||void 0===o||null===(i=o["::props"])||void 0===i?void 0:i["::title"]}]`,null===(a=this.data)||void 0===a?void 0:a["::description"]].filter((e=>e)).join(" - ");return z` ${Sr("schemas.schema-missing")} `} `}toggleSchemaDescription(){this.schemaDescriptionExpanded=!this.schemaDescriptionExpanded,this.requestUpdate()}generateTree(e,t="object",r="",n={},o="",i="",a="",s=0,l=0){if(!e)return z` ${this.data?z`${this.generateTree("array"===this.data["::type"]?this.data["::props"]:this.data,this.data["::type"],this.data["::array-type"]||"")}`:z` ${o.replace("::OPTION~","")} ${"array"===t&&z` [ ] `||"object"===t&&z` { } `||z` ${t} `} `;if(0===Object.keys(e).length)return z`${o}:{ }`;let u="",c="";if(o.startsWith("::ONE~OF")||o.startsWith("::ANY~OF"))u=o.replace("::","").replace("~"," ");else if(o.startsWith("::OPTION")){const e=o.split("~");u=e[1],c=e[2]}else u=o;const p=300-16*l;let d="",h="";const f="xxx-of-option"===e["::type"]?s:s+1,g=l+1;if("array"===e["::type"])if("array"===t){const e="object"!==r?r:"";d=s[[ ${e} `:z`[[...]]`,h="]]"}else d=s[`:z`[...]`,h="]";else"xxx-of-option"===e["::type"]?"array"===t&&(d=s[`:z`[...]`,h="]"):e["::type"]&&("array"===t?(d=s[{`:z`[{...}]`,h="}]"):(d=s{`:z`{...}`,h="}"));if("object"==typeof e){var m,y;if(n["🆁"]&&"true"===this.schemaHideReadOnly)return;if(n["🆆"]&&"true"===this.schemaHideWriteOnly)return;const t=[n["🆁"]||n["🆆"],i&&`**${i}${a?":":""}**`,a].filter((e=>e)).join(" ");return z` ${"xxx-of-option"===e["::type"]||o.startsWith("::OPTION")?z`${u}${c}`:"::props"===u||"::ARRAY~OF"===u?"":s>0?z` ${u.replace(/\*$/,"")}${u.endsWith("*")?z``:""}: `:""} ${d} ${Wr(Tr(t))} ${this.schemaDescriptionExpanded?z` ${null!==(m=e["::metadata"])&&void 0!==m&&null!==(y=m.constraints)&&void 0!==y&&y.length?z`Constraints: ${e["::metadata"].constraints.join(", ")}
`:""}`:""} ${Array.isArray(e)&&e[0]?z`${this.generateTree(e[0],"xxx-of-option","",e[0]["::flags"]||{},"::ARRAY~OF",e[0]["::title"],e[0]["::description"],f,g)}`:z` ${Object.keys(e).map((t=>{var r;return!["::metadata","::title","::description","::type","::link","::props","::deprecated","::array-type","::dataTypeLabel","::flags"].includes(t)||null!==(r=e[t])&&void 0!==r&&r["::type"]&&!e[t]["::type"].includes("xxx-of")?z`${this.generateTree("array"===e[t]["::type"]?e[t]["::props"]:e[t],e[t]["::type"],e[t]["::array-type"]||"",e[t]["::flags"],t,e[t]["::title"],e[t]["::description"],f,g)}`:""}))}`} ${e["::type"]&&e["::type"].includes("xxx-of")?"":z` ${h} `} `}const{type:b,cssType:v,format:x,readOrWriteOnly:w,constraints:k,defaultValue:A,example:E,allowedValues:S,pattern:D,schemaDescription:$,schemaTitle:C,deprecated:_}=JSON.parse(e);if("🆁"===w&&"true"===this.schemaHideReadOnly)return;if("🆆"===w&&"true"===this.schemaHideWriteOnly)return;const O=C||i,F=$||a;return z` ${u.endsWith("*")?z`${u.substring(0,u.length-1)}:`:o.startsWith("::OPTION")?z`${u}${c}`:s>0?z`${u}:`:""} ${"array"===t?"[":""}${x||b}${"array"===t?"]":""} ${Wr(Tr(`${w&&`${w} `||""}${`${O?`**${O}${F?":":""}**`:""} ${F}`||""}`))} ${this.schemaDescriptionExpanded?z` ${k.length?z`Constraints: ${k.join(", ")}
`:""} ${""!==A?z`Default: ${A}
`:""} ${S?z`Allowed: ${S.filter((e=>null!=e)).join(" ┃ ")}
`:""} ${D?z`Pattern: ${D}
`:""} ${E?z`Example: ${E}
`:""}`:""} `}toggleObjectExpand(e){const t=e.target.closest(".tr");t.classList.toggle("collapsed"),t.classList.contains("collapsed")?e.target.innerHTML=e.target.classList.contains("array-of-object")?"[{...}]":e.target.classList.contains("array-of-array")?"[[...]]":e.target.classList.contains("array")?"[...]":"{...}":e.target.innerHTML=e.target.classList.contains("array-of-object")?"[{":e.target.classList.contains("array-of-array")?"[[":e.target.classList.contains("object")?"{":"[",this.requestUpdate()}}function In(e,t,r="object",n="",o="",i=0){const a=e["::type"]&&e["::type"].startsWith("xxx-of")?i:i+1;if(!e)return null;if(0===Object.keys(e).length)return null;let s="",l="",u=!1;if(n.startsWith("::ONE~OF")||n.startsWith("::ANY~OF"))s=n.replace("::","").replace("~"," "),u=!0;else if(n.startsWith("::OPTION")){const e=n.split("~");s=e[1],l=e[2]}else s=n;const c=s.replace(/[*]$/,""),p=s.endsWith("*");if("object"==typeof e){if((e["::flags"]||{})["🆁"])return;const i=[o].filter((e=>e)).join(" ");return z` ${a>=0&&n?z` ${"xxx-of-option"===e["::type"]||n.startsWith("::OPTION")?z`${c}${l}`:p?z`${c}`:z`${"::props"===c?"":c}`} ${Wr(Tr(i))} `:z`${"array"===e["::type"]&&"array"===r?z` ${r} `:""}`} ${Array.isArray(e)&&e[0]?z`${In.call(this,e[0],t,"xxx-of-option","::ARRAY~OF","",a)}`:z`${Object.keys(e).map((r=>{var n;return!["::metadata","::title","::description","::type","::link","::props","::deprecated","::array-type","::dataTypeLabel","::flags"].includes(r)||null!==(n=e[r])&&void 0!==n&&n["::type"]&&!e[r]["::type"].includes("xxx-of")?z`${In.call(this,"array"===e[r]["::type"]?e[r]["::props"]:e[r],t,e[r]["::type"],r,e[r]["::description"],a)}`:""}))}`}`}const d=JSON.parse(e);return Pn.call(this,d,{key:n,keyLabel:c,keyDescr:l,description:o,dataType:r,isRequired:p,options:t})}function Pn(e,t){var r;const{type:n,format:o,readOrWriteOnly:i,constraints:a,defaultValue:s,example:l,allowedValues:u,pattern:c,schemaDescription:p,schemaTitle:d,deprecated:h}=e,{key:f,keyLabel:g,keyDescr:m,description:y,dataType:b,isRequired:v,options:x}=t;if("🆁"===i)return;const w=`${this.elementId||`${this.method}-${this.path}`}-${f}`,k=e=>{var t,r;if("pattern-property-key"!==(null===(t=e.target.dataset)||void 0===t?void 0:t.ptype)&&!Fn(null===(r=e.target.dataset)||void 0===r?void 0:r.pname))return;const n=[...this.querySelectorAll("[data-ptype='pattern-property-key']")],o=[...this.querySelectorAll("[data-ptype='form-input']")].filter((e=>Fn(e.dataset.pname)));n.some(((e,t)=>!e.value||!o[t].value))||e.target.value&&(this.duplicatedRowsByKey[w]=(this.duplicatedRowsByKey[w]||1)+1,this.requestUpdate())},A=function*(e,t){if(void 0!==e){let r=0;for(const n of e)yield t(n,r++)}}(function*(e,t,r=1){const n=void 0===t?0:e;null!=t||(t=e);for(let e=n;r>0?ez` ${Ln.call(this,f.startsWith("::OPTION"),g,m,b,h,v,d,o||n,k)} ${"array"===b?Nn.call(this,g,l,s,o,k):""} ${"array"!==b?Mn.call(this,g,l,s,o,x,k):""} ${y?z`${Wr(Tr(y))}`:""} ${s||a||u||c?z` ${c?z`Pattern: ${c}
`:""} ${a.length?z`Constraints: ${a.join(", ")}
`:""} ${null==u?void 0:u.filter((e=>""!==e)).map(((e,t)=>z` ${t>0?"|":z`Allowed: `} ${z` {const t=e.target.closest("table").querySelector(`[data-pname="${g}"]`);t&&(t.value="array"===e.target.dataset.type?[e.target.dataset.enum]:e.target.dataset.enum),this.computeCurlSyntax()}}"> ${null===e?"-":e} `}`))} `:""} ${p||l?z` ${Wr(Tr(p||""))} ${l?z` Example: ${"array"===n?"[ ":""} {const t=e.target.closest("table").querySelector(`[data-pname="${g}"]`);t&&(t.value="array"===e.target.dataset.exampleType?e.target.dataset.example.split("~|~"):e.target.dataset.example),this.computeCurlSyntax()}}"> ${"array"===n?l.join(", "):l} ${"array"===n?"] ":""} `:""} `:""}`));return Array.from(A)}function Ln(e,t,r,n,o,i,a,s,l){return Fn(t)?z` {l(e),this.computeCurlSyntax()}}" .value="${""}" spellcheck="false" type="${"binary"===s?"file":"password"===s?"password":"text"}" part="textbox textbox-param" style="width:100%" data-ptype="pattern-property-key" data-pname="${t}" data-default="${""}" data-array="false"> `:z` ${!o&&i?z`${t}*`:e?z`${t}${r}`:z`${t?z` ${t}`:z`${a}`}`} ${"array"===n?z`[${s}]`:`${s}`} `}function Nn(e,t,r,n,o){return"binary"===n?z` this.onAddRemoveFileInput(t,e)}"> {o(e),this.computeCurlSyntax()}}" type="file" part="file-input" class="file-input" data-pname="${e}" data-ptype="form-input" data-array="false" data-file-array="true"> `:z` {o(e),this.computeCurlSyntax()}}" style="width:100%" data-ptype="form-input" data-pname="${e}" data-default="${r||""}" data-array="true" placeholder="${(Array.isArray(t)?t[0]:t)||r||"add-multiple ↩"}" .value="${r||""}"> `}function Mn(e,t,r,n,o,i){return z` {i(e),this.computeCurlSyntax()}}" .value="${o.fillRequestWithDefault&&r||""}" spellcheck="false" type="${"binary"===n?"file":"password"===n?"password":"text"}" part="textbox textbox-param" style="width:100%" data-ptype="form-input" data-pname="${e}" data-default="${r||""}" data-array="false"> `}function Un(e,t){const r={mimeType:t,fillRequestWithDefault:"true"===this.fillRequestWithDefault};return z` ${e?z`${In.call(this,"array"===e["::type"]?e["::props"]:e,r,e["::type"])}`:""}
`}customElements.get("openapi-explorer")||customElements.define("schema-tree",Bn);class zn extends ue{createRenderRoot(){return this}render(){const e=z`${(this.value||[]).filter((e=>e.trim())).map((e=>z`${e}`))}`;return z` `}static get properties(){return{placeholder:{type:String},value:{type:Array,attribute:"value"}}}connectedCallback(){super.connectedCallback(),Array.isArray(this.value)||(this.value=""!==this.value?[this.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()))||[];this.value=this.value.concat(r),e.preventDefault(),this.emitChanged()}afterKeyDown(e){13===e.keyCode?(e.stopPropagation(),e.preventDefault(),this.value=this.value.concat(e.target.value||[]),e.target.value=""):8===e.keyCode&&0===e.target.value.length&&(this.value=this.value.slice(0,-1)),this.emitChanged()}handleLeave(e){e.stopPropagation(),this.value=this.value.concat((e.target.value||"").split(",")).filter((e=>""!==e)),e.target.value="",this.emitChanged()}emitChanged(){this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value}})),this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value}}))}}customElements.get("openapi-explorer")||customElements.define("tag-input",zn);var qn=r(660),Hn=r.n(qn);class Wn extends ue{static get properties(){return{data:{type:Object},renderStyle:{type:String,attribute:"render-style"}}}update(e){e.has("data")&&(this.interactive=!1),super.update(e)}updated(){this.interactive=!0}static finalizeStyles(){return[pe,Rn,de,me,l`:host{display:flex}.json-tree{background:var(--bg2);padding:12px;min-height:30px;font-family:var(--font-mono);font-size:var(--font-size-small);overflow:hidden;word-break:break-all;flex:1;line-height:calc(var(--font-size-small) + 6px)}.open-bracket{display:inline-block;padding:0 20px 0 0;cursor:pointer;border:1px solid transparent;border-radius:3px}.collapsed.open-bracket{padding-right:0}.tree>.open-bracket{margin-left:-2px}.open-bracket:hover{color:var(--primary-color);background-color:var(--hover-color);border:1px solid var(--border-color)}.inside-bracket-wrapper{overflow:hidden}.tree:not(.interactive) .inside-bracket-wrapper{animation-duration:0s!important}.open-bracket:not(.collapsed)+.inside-bracket-wrapper{animation:linear .2s expand-height}.open-bracket.collapsed+.inside-bracket-wrapper{animation:linear .2s collapse-height;max-height:0}.inside-bracket{padding-left:16px;border-left:1px dotted var(--border-color)}.string{color:var(--green)}.number{color:var(--blue)}.null{color:var(--red)}.boolean{color:var(--orange)}.toolbar{display:none}.tree .toolbar{display:flex;justify-content:space-between;width:100%}.tree .item{border-bottom:1px dotted transparent}.toolbar-item{cursor:pointer;flex-shrink:0}.tree .toolbar .toolbar-item{display:none}.inside-bracket.xxx-of{padding:5px 0;border-style:dotted;border-width:0 0 1px 0;border-color:var(--primary-color)}.schema-root-type.xxx-of{display:none}.toolbar-item:first-of-type{margin:0 2px 0 0}@media only screen and (min-width:576px){.key-descr{display:block}.tree .toolbar .toolbar-item{display:block}.toolbar{display:flex}}.toolbar-backup{position:absolute;right:6px;display:flex;align-items:center}`]}render(){return z` ${this.generateTree(this.data,!0)} `}generateTree(e,t=!1){if(null===e)return z`null`;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` ${"array"===r?"[":"{"} ${Object.keys(e).map(((t,n,o)=>z` ${"pure_object"===r?z`"${t}":`:""} ${this.generateTree(e[t],n===o.length-1)} `))} ${"array"===r?"]":"}"}${t?"":","} `}return"string"==typeof e||e instanceof Date?z`"${e}"${t?"":","}`:z`${e}${t?"":","}`}toggleExpand(e){const t=e.target;t.classList.toggle("collapsed"),t.classList.contains("collapsed")?e.target.innerHTML=e.target.classList.contains("array")?"[...]":"{...}":e.target.innerHTML=e.target.classList.contains("array")?"[":"{",this.requestUpdate()}}customElements.get("openapi-explorer")||customElements.define("json-tree",Wn);r(854),r(251),r(358),r(46),r(385),r(503),r(277),r(874),r(366),r(57),r(16),r(767),r(945);const Vn=[{pattern:/json/,language:"json"},{pattern:/xml/,language:"html"}];class Gn extends ue{static get properties(){return{content:{type:Object},language:{type:String,attribute:"language"},mimeType:{type:String,attribute:"mime-type"}}}static finalizeStyles(){return[be,pe,de,l`:host{font-weight:400}div{position:relative;display:flex;flex-direction:column}.toolbar-copy-btn{position:absolute;top:0;right:0;margin-right:8px}.toolbar-copy-btn+pre{white-space:pre;max-height:400px;overflow:auto;display:flex;padding-right:70px}`]}detectLanguage(){var e;if(this.language)return null===(e=this.language)||void 0===e?void 0:e.toLowerCase();if(this.mimeType){var t,r;const e=null===(t=this.mimeType)||void 0===t?void 0:t.toLowerCase();return null===(r=Vn.find((t=>t.pattern.test(e))))||void 0===r?void 0:r.language}return null}render(){return this.renderCopyWrapper(this.renderHighlight())}renderHighlight(){var e;const t=this.detectLanguage(),r=Hn().languages[t];if("string"!=typeof this.content)return z``;const n=(null===(e=this.content)||void 0===e?void 0:e.toString())||"",o="python"!==t&&"yaml"!==t&&"toml"!==t?n.split("\n").map((e=>e.replace(/^\s{2}/g," "))).join("\n"):n;return r?z`${Wr(Hn().highlight(o,r,t))}
`:z`${o}
`}renderCopyWrapper(e){return z` ${e} `}copyToClipboard(e){var t;!function(e,t){let r=null==e?void 0:e.trim().replace(/\s{8}/g," ");try{"object"==typeof JSON.parse(r)&&(r=JSON.stringify(JSON.parse(r),null,2).trim())}catch(e){}const n=document.createElement("textarea");n.value=r,n.style.position="fixed",document.body.appendChild(n),n.focus(),n.select();try{document.execCommand("copy");const e=null==t?void 0:t.target;e&&(e.innerText=Sr("operations.copied"),setTimeout((()=>{e.innerText=Sr("operations.copy")}),5e3))}catch(e){console.error("Unable to copy",e)}document.body.removeChild(n)}("json"===this.detectLanguage()&&"string"!=typeof this.content?JSON.stringify(this.content,null,2):null===(t=this.content)||void 0===t?void 0:t.toString(),e)}}lt.setOptions({highlight:(e,t)=>Hn().languages[t]?Hn().highlight(e,Hn().languages[t],t):e}),customElements.get("openapi-explorer")||customElements.define("syntax-highlighter",Gn);var Kn=r(142),Jn=r.n(Kn);const Yn=RegExp("^font/|tar$|zip$|7z$|rtf$|msword$|excel$|/pdf$|/octet-stream$|^application/vnd."),Zn=RegExp("^audio/|^image/|^video/");class Qn extends ue{createRenderRoot(){return this}constructor(){super(),this.duplicatedRowsByKey={},this.storedParamValues={},this.responseMessage="",this.responseStatus="",this.responseContentType="",this.responseHeaders="",this.responseText="",this.responseUrl="",this.responseElapsedMs=0,this.curlSyntax="",this.activeResponseTab="curl",this.selectedRequestBodyType="",this.selectedRequestBodyExample=""}static get properties(){return{serverUrl:{type:String,attribute:"server-url"},servers:{type:Array},method:{type:String},path:{type:String},elementId:{type:String,attribute:"element-id"},parameters:{type:Array},request_body:{type:Object},api_keys:{type:Array},parser:{type:Object},callback:{type:String},responseMessage:{type:String,attribute:!1},responseText:{type:String,attribute:!1},responseContentType:{type:String,attribute:!1},responseHeaders:{type:String,attribute:!1},responseStatus:{type:String,attribute:!1},responseUrl:{type:String,attribute:!1},responseElapsedMs:{type:Number,attribute:!1},fillRequestWithDefault:{type:String,attribute:"fill-defaults"},includeNulls:{type:Boolean,attribute:"display-nulls",converter:e=>"true"===e},allowTry:{type:String,attribute:"enable-console"},renderStyle:{type:String,attribute:"render-style"},schemaStyle:{type:String,attribute:"schema-style"},activeSchemaTab:{type:String,attribute:"active-schema-tab"},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaHideReadOnly:{type:String,attribute:"schema-hide-read-only"},fetchCredentials:{type:String,attribute:"fetch-credentials"},duplicatedRowsByKey:{type:Object},activeResponseTab:{type:String},selectedRequestBodyType:{type:String,attribute:"selected-request-body-type"},selectedRequestBodyExample:{type:String,attribute:"selected-request-body-example"},curlSyntax:{type:String}}}render(){const e=this.elementId||`${this.method}-${this.path}`;return dn(e,z` ${"true"===this.callback?"CALLBACK REQUEST":Sr("operations.request")} ${this.inputParametersTemplate("path")} ${this.inputParametersTemplate("query")} ${this.inputParametersTemplate("header")} ${this.inputParametersTemplate("cookie")} ${this.requestBodyTemplate()} ${"false"===this.allowTry?"":z`${this.apiCallTemplate()}`} `)}updated(e){if(e.get("elementId")&&(this.activeResponseTab="curl"),"focused"!==this.renderStyle)return;if(1===e.size&&e.has("activeSchemaTab"))return;[...this.querySelectorAll('textarea[data-ptype="form-data"]')].forEach((e=>{const t=this.querySelector(`textarea[data-pname='hidden-${e.dataset.pname}']`);t&&(e.value=t.value)}))}inputParametersTemplate(e){const t=this.parameters?this.parameters.filter((t=>t.in===e)):[];if(0===t.length)return"";const r={path:"PATH PARAMETERS",query:"QUERY-STRING PARAMETERS",header:"REQUEST HEADERS",cookie:"COOKIES"}[e],n=[];for(const r of t){var o,i;if(!r.schema)continue;const t=Cn(r,{includeNulls:this.includeNulls,enableExampleGeneration:!0});if(!t)continue;const a=Array.isArray(t.default)?t.default:`${t.default}`,s=null!==(o=r.style)&&void 0!==o?o:{query:"form",path:"simple",header:"simple",cookie:"form"}[e],l=null!==(i=r.explode)&&void 0!==i?i:"form"===r.style,u=({name:t,description:n,required:o},i)=>{var u,c;const p=("object"===i.type||"array"===i.type)&&i.allowedValues;return z` ${t}${!i.deprecated&&o?z`*`:""} ${"array"===i.type?`${i.arrayType}`:`${i.format?i.format:i.type}`}${!i.deprecated&&o?z`*`:""} ${"true"===this.allowTry?"array"===i.type&&z` {this.storedParamValues[t]=e.detail.value,this.computeCurlSyntax()}}" .value="${null!==(u=this.storedParamValues[t])&&void 0!==u?u:"true"===this.fillRequestWithDefault&&Array.isArray(a)?a:a.split(",")}"> `||"object"===i.type&&z` `||i.allowedValues&&z` `||z` {this.computeCurlSyntax()}}" placeholder="${i.example||a||""}" class="request-param" part="textbox textbox-param" data-ptype="${e}" data-pname="${t}" data-default="${Array.isArray(a)?a.join("~|~"):a}" data-array="false" @keyup="${this.requestParamFunction}" .value="${"true"===this.fillRequestWithDefault?a:""}">`:""} ${this.exampleListTemplate.call(this,r,i.type)} ${"focused"===this.renderStyle?z` ${n?z` ${Wr(Tr(n))} `:""} ${i.constraints.length||p||i.pattern?z` ${i.constraints.length?z`Constraints: ${i.constraints.join(", ")}
`:""} ${i.pattern?z` Pattern:
${i.pattern} `:""} ${null===(c=i.allowedValues)||void 0===c?void 0:c.map(((e,r)=>z` ${r>0?"|":z`Allowed: `} ${z` {const r=e.target.closest("table").querySelector(`[data-pname="${t}"]`);r&&(r.value="array"===e.target.dataset.type?[e.target.dataset.enum]:e.target.dataset.enum)}}"> ${null===e?"-":e} `}`))} `:""} `:""} `};let c=[];c="form"===s&&l?Object.keys(r.schema.properties).map((e=>{var t,n;const o=r.schema.properties[e],i=Cn(o,{includeNulls:this.includeNulls,enableExampleGeneration:!0});return u({name:e,description:o.description,required:null===(t=r.schema)||void 0===t||null===(n=t.required)||void 0===n?void 0:n.includes(e)},i)})):u(r,t),n.push(c)}return z` ${r}${"path"===e?z`*`:""} ${n}
`}renderExample(e,t,r){var n,o;return z` {const n=e.target.closest("table").querySelector(`[data-pname="${r}"]`);n&&(n.value="array"===t?e.target.dataset.example.split("~|~")||[]:e.target.dataset.example)}}">${Array.isArray(e.exampleValue)?null===(o=e.exampleValue)||void 0===o?void 0:o.join(", "):e.exampleValue} `}renderShortFormatExamples(e,t,r){return z`${e.map(((e,n)=>z` ${0===n?"":"┃"} ${this.renderExample(e,t,r)}`))}`}renderLongFormatExamples(e,t,r){return z` ${e.map((e=>{var n,o;return z` - ${this.renderExample(e,t,r)} ${(null===(n=e.exampleSummary)||void 0===n?void 0:n.length)>0?z`(${e.exampleSummary})`:""} ${(null===(o=e.exampleDescription)||void 0===o?void 0:o.length)>0?z`
${Wr(Tr(e.exampleDescription))}
`:""} `}))}
`}exampleListTemplate(e,t){const r=e.name,n=Cn(e,{includeNulls:this.includeNulls}),o=Tn(e.examples||e.example&&{Example:{value:e.example}}||n.examples||n.example&&{Example:{value:n.example}},null,e.schema,null,!1,!0,"json",!1),i=o.some((e=>{var t,r;return(null===(t=e.exampleSummary)||void 0===t?void 0:t.length)>0||(null===(r=e.exampleDescription)||void 0===r?void 0:r.length)>0}));return o.length&&(1!==o.length||i)?z` Examples: ${i?this.renderLongFormatExamples(o,t,r):this.renderShortFormatExamples(o,t,r)} `:""}resetRequestBodySelection(){this.selectedRequestBodyType="",this.selectedRequestBodyExample="",this.computeCurlSyntax(),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.value,this.computeCurlSyntax()}),0,t)}onMimeTypeChange(e){this.selectedRequestBodyType=e.target.value;const t=e.target;this.selectedRequestBodyExample="",window.setTimeout((e=>{const t=e.closest(".request-body-container").querySelector(".request-body-param");if(t){e.closest(".request-body-container").querySelector(".request-body-param-user-input").value=t.value}this.computeCurlSyntax()}),0,t)}requestBodyTemplate(){var e;if(!this.request_body)return"";if(0===Object.keys(this.request_body).length)return"";if("get"===this.method||"head"===this.method)return"";let t="",r="",n="",o="",i=!0;const a=[],s=this.request_body.content;for(const e in s)a.push({mimeType:e,schema:s[e].schema,example:s[e].example,examples:s[e].examples});var l;s[this.selectedRequestBodyType]||(this.selectedRequestBodyType=null===(l=a[0])||void 0===l?void 0:l.mimeType);t=1===a.length?"":z` `;const u=a.find((e=>e.mimeType===this.selectedRequestBodyType));if(this.selectedRequestBodyType.includes("json")||this.selectedRequestBodyType.includes("xml")||this.selectedRequestBodyType.includes("text")){const e=Tn(u.examples?u.examples:"",u.example?u.example:"",u.schema,u.mimeType,!1,!0,"text",!0);this.selectedRequestBodyExample||(this.selectedRequestBodyExample=e.length>0?e[0].exampleId:"");const t=e.find((e=>e.exampleId===this.selectedRequestBodyExample))||e[0];o=z` ${1===e.length?"":z` `} ${t?z` ${t.exampleSummary&&t.exampleSummary.length>80?z` ${t.exampleSummary} `:""} ${t.exampleDescription?z` ${Wr(Tr(t.exampleDescription||""))} `:""} `:""} `}else if(this.selectedRequestBodyType.includes("form-urlencoded")||this.selectedRequestBodyType.includes("form-data")){i=!1;const e=jn(u.schema,{includeNulls:this.includeNulls});o=Un.call(this,e,this.selectedRequestBodyType)}else(Zn.test(this.selectedRequestBodyType)||Yn.test(this.selectedRequestBodyType))&&(r=z` `);if(u.mimeType.includes("json")||u.mimeType.includes("xml")||u.mimeType.includes("text")||u.mimeType.includes("form-")){const e=jn(u.schema,{includeNulls:this.includeNulls});n="table"===this.schemaStyle?z` ${n} `:z` ${n} `}return(null===(e=this.cachedBodyData)||void 0===e?void 0:e.contentType)===this.selectedRequestBodyType&&this.elementId===this.cachedBodyData.elementId?o=this.cachedBodyData.body:this.cachedBodyData={body:o,contentType:this.selectedRequestBodyType,elementId:this.elementId},z` ${Sr("operations.request-body")} ${this.request_body.required?z`*`:""} ${this.selectedRequestBodyType} ${t} ${this.request_body.description?z`${Wr(Tr(this.request_body.description))}`:""} ${n||o?z` ${n}`} ${z` ${o}`} `:z`${r}`} ${z` `}apiResponseTabTemplate(){const e=this.curlSyntax||this.computeCurlSyntax()||"",t=""!==this.responseMessage;return z` ${this.responseMessage?z` `:""} ${t?z``:""} ${"image"===this.responseBlobType?z``:""} ${"view"===this.responseBlobType||"image"===this.responseBlobType?z``:""} `:z` `} `}apiCallTemplate(){return z` ${this.responseIsBlob?z` ${this.parameters.length>0||this.request_body?z` `:""} ${this.apiResponseTabTemplate()} `}onClearRequestData(e){[...e.target.closest(".request-panel").querySelectorAll("input, tag-input, textarea:not(.is-hidden)")].forEach((e=>{e.value=""}));const t={bubbles:!0,composed:!0,detail:{explorerLocation:this.elementId,operation:{method:this.method,path:this.path},type:"RequestCleared"}};this.dispatchEvent(new CustomEvent("event",t)),this.computeCurlSyntax()}validateAllRequestParameters(){const e=[...this.closest(".request-panel").querySelectorAll("[data-ptype='path']")].find((e=>!e.value));if(e){const t=Error(`All path parameters are required and a valid value was not found for the parameter: '${e.dataset.pname}'.`);throw t.code="MissingPathParameter",t}}recomputeFetchOptions(){const e=this.closest(".request-panel"),t=[...e.querySelectorAll("[data-ptype='path']")],r=[...e.querySelectorAll("[data-ptype='query']")],n=[...e.querySelectorAll("[data-ptype='header']")],o=e.querySelector(".request-body-container");let i=`${this.serverUrl.replace(/\/$/,"")}${this.path.replaceAll(" ","")}`;const a={};if(t.map((e=>{a[e.dataset.pname]=e.value,i=i.replace(`{${e.dataset.pname}}`,encodeURIComponent(e.value)||"-")})),!i.startsWith("http")){const e=new URL(i,window.location.href);i=e.toString()}const s=new URL(i),l={method:this.method.toUpperCase(),headers:new Headers},u={};r.forEach((e=>{if(e.dataset.array&&"false"!==e.dataset.array){const t=e.dataset.paramSerializeStyle,r=e.dataset.paramSerializeExplode,n=Array.isArray(e.value)?e.value.filter((e=>""!==e)):[];u[e.dataset.pname]=n,n.length>0&&("spaceDelimited"===t?s.searchParams.append(e.dataset.pname,n.join(" ").replace(/^\s|\s$/g,"")):"pipeDelimited"===t?s.searchParams.append(e.dataset.pname,n.join("|").replace(/^\||\|$/g,"")):"true"===r||!0===r?n.forEach((t=>{s.searchParams.append(e.dataset.pname,t)})):s.searchParams.append(e.dataset.pname,n.join(",").replace(/^,|,$/g,"")))}else""!==e.value&&(u[e.dataset.pname]=e.value,s.searchParams.append(e.dataset.pname,e.value))})),this.api_keys.filter((e=>e.finalKeyValue)).forEach((e=>{"query"!==e.in?l.headers.append(e.name,e.finalKeyValue):s.searchParams.append(e.name,e.finalKeyValue)})),n.map((e=>{e.value&&l.headers.append(e.dataset.pname,e.value)}));const c=e.querySelector("[data-ptype='dynamic-form']"),p=[...e.querySelectorAll("[data-ptype='form-input']")],d=[...e.querySelectorAll("[data-ptype='pattern-property-key']")],h=p.filter((e=>Fn(e.dataset.pname))),f=p.filter((e=>!Fn(e.dataset.pname)));let g="",m="";if(o){const t=o.dataset.selectedRequestBodyType;if(t.includes("form-urlencoded"))if(c){const e=c.value,t=new URLSearchParams;let r,n=!0;if(e)try{r=JSON.parse(e)}catch(e){n=!1,console.warn("OpenAPI Explorer: Invalid JSON provided",e)}else n=!1;if(n){for(const e in r)t.append(e,JSON.stringify(r[e]));l.body=t,g=` \\\n -d ${t.toString()}`}}else{const e=new URLSearchParams;h.concat(f).forEach(((t,r)=>{var n;const o=(null===(n=d[r])||void 0===n?void 0:n.value)||t.dataset.pname;if("file"!==t.type)if("false"===t.dataset.array)t.value&&e.append(o,t.value);else{const r=t.value&&Array.isArray(t.value)?t.value.join(","):"";e.append(o,r)}})),l.body=e,g=` \\\n -d ${e.toString()}`}else if(t.includes("form-data")){const e=new FormData;h.concat(f).forEach(((t,r)=>{var n;const o=(null===(n=d[r])||void 0===n?void 0:n.value)||t.dataset.pname;"false"===t.dataset.array?"file"===t.type&&t.files[0]?(e.append(o,t.files[0],t.files[0].name),m+=` \\\n -F "${o}=@${t.files[0].name}"`):t.value&&(e.append(o,t.value),m+=` \\\n -F "${o}=${t.value}"`):t.value&&Array.isArray(t.value)&&(t.value.forEach((e=>{m+=` \\\n -F "${o}[]=${e}"`})),e.append(o,t.value.join(",")))})),l.body=e}else if(Zn.test(t)||Yn.test(t)){const t=e.querySelector(".request-body-param-file");t&&t.files[0]&&(l.body=t.files[0],g=` \\\n --data-binary @${t.files[0].name}`)}else if(t.includes("json")||t.includes("xml")||t.includes("text")){const r=e.querySelector(".request-body-param-user-input");if(r&&r.value){if(l.body=r.value,t.includes("json"))try{l.body=JSON.stringify(Jn().parse(r.value),null,4),g=` \\\n -d '${l.body}'`}catch(e){}g||(g=` \\\n -d '${l.body.replace(/'/g,"'\"'\"'")}'`)}}t.includes("form-data")||l.headers.append("Content-Type",t)}return this.fetchCredentials&&(l.credentials=this.fetchCredentials),{fetchOptions:l,fetchUrl:s,path:a,query:u,curlParts:{data:g,form:m}}}computeCurlSyntax(e){try{const{fetchOptions:t,fetchUrl:r,curlParts:n}=this.recomputeFetchOptions(),o=`curl -X ${this.method.toUpperCase()} "${r.toString()}"`,i=[...(null!=e?e:t.headers).entries()].reduce(((e,[t,r])=>`${e} \\\n -H "${t}: ${r.replace(/"/g,'\\"')}"`),"");this.curlSyntax=`${o}${i}${n.data}${n.form}`}catch(e){}}async onTryClick(){const e=this.querySelectorAll(".btn-execute")[0];let t,r,n,o;try{({fetchOptions:t,fetchUrl:r,path:n,query:o}=this.recomputeFetchOptions())}catch(e){return this.responseMessage=e.message,this.responseStatus="error",this.responseUrl="",this.responseHeaders="",this.responseText=e.message,void(this.activeResponseTab="response")}try{this.validateAllRequestParameters()}catch(e){return this.responseMessage=e.message,this.responseStatus="error",this.responseUrl="",this.responseHeaders="",void(this.responseText="")}this.responseIsBlob=!1,this.respContentDisposition="",this.responseBlobUrl&&(URL.revokeObjectURL(this.responseBlobUrl),this.responseBlobUrl="");const i={explorerLocation:this.elementId,url:r.toString(),path:n,query:o,options:t,...t},a={bubbles:!0,composed:!0,detail:{request:i}};this.dispatchEvent(new CustomEvent("before-try",a)),this.dispatchEvent(new CustomEvent("request",a));const s={method:i.method||t.method,headers:i.headers||t.headers,credentials:i.credentials||t.credentials,body:i.body||t.body},l=new Request(i.url,s);let u;this.computeCurlSyntax(s.headers);try{let t,r,n;e.disabled=!0;const o=new Date;this.responseStatus="",this.responseMessage="",this.responseUrl="",this.responseHeaders="",this.responseText="⌛",this.activeResponseTab="response",this.requestUpdate();const a=new Promise((e=>setTimeout(e,200)));u=await fetch(l),this.responseElapsedMs=new Date-o,await a,e.disabled=!1,this.responseStatus=u.ok?"success":"error",this.responseMessage=u.statusText?`${u.statusText} (${u.status})`:u.status,this.responseUrl=u.url,this.responseHeaders="";const s={};u.headers.forEach(((e,t)=>{this.responseHeaders=`${this.responseHeaders}${t.trim()}: ${e}\n`,s[t.trim()]=e&&e.trim()}));const p=u.headers.get("content-type");this.responseContentType=p;if(0===(await u.clone().text()).length)this.responseText="";else if(p){if(p.includes("json"))if(/charset=[^"']+/.test(p)){const e=p.split("charset=")[1],t=await u.arrayBuffer();try{n=new TextDecoder(e).decode(t)}catch(e){n=new TextDecoder("utf-8").decode(t)}try{this.responseText=JSON.stringify(JSON.parse(n),null,8)}catch(e){this.responseText=n}}else r=await u.json(),this.responseText=JSON.stringify(r,null,8);else Yn.test(p)?(this.responseIsBlob=!0,this.responseBlobType="download"):p.match(/^image/)?(this.responseIsBlob=!0,this.responseBlobType="image"):Zn.test(p)?(this.responseIsBlob=!0,this.responseBlobType="view"):(n=await u.text(),p.includes("xml")?this.responseText=fn()(n,{textNodesOnSameLine:!0,indentor:" "}):this.responseText=n);if(this.responseIsBlob){var c;const e=u.headers.get("content-disposition"),r=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(e);this.respContentDisposition=(null==r||null===(c=r[1])||void 0===c?void 0:c.replace(/['"]/g,""))||"download.file",t=await u.blob(),this.responseBlobUrl=URL.createObjectURL(t)}}else n=await u.text(),this.responseText=n;const d={bubbles:!0,composed:!0,detail:{explorerLocation:this.elementId,request:i,response:{headers:s,body:r||n||t||u.body,status:u.status}}};this.dispatchEvent(new CustomEvent("after-try",d)),this.dispatchEvent(new CustomEvent("response",d))}catch(t){e.disabled=!1,this.responseMessage=`${t.message} (Check the browser network tab for more information.)`,this.responseStatus="error";const r={bubbles:!0,composed:!0,detail:{explorerLocation:this.elementId,error:t,request:i}};document.dispatchEvent(new CustomEvent("after-try",r)),document.dispatchEvent(new CustomEvent("response",r))}this.requestUpdate()}onAddRemoveFileInput(e,t){if("button"!==e.target.tagName.toLowerCase())return;if(e.target.classList.contains("file-input-remove-btn")){return void e.target.closest(".input-set").remove()}const r=e.target.closest(".file-input-container"),n=document.createElement("div");n.setAttribute("class","input-set row");const o=document.createElement("input");o.type="file",o.setAttribute("class","file-input"),o.setAttribute("data-pname",t),o.setAttribute("data-ptype","form-input"),o.setAttribute("data-array","false"),o.setAttribute("data-file-array","true");const i=document.createElement("button");i.setAttribute("class","file-input-remove-btn"),i.innerHTML="✕",n.appendChild(o),n.appendChild(i),r.insertBefore(n,e.target),this.computeCurlSyntax()}downloadResponseBlob(){if(this.responseBlobUrl){const e=document.createElement("a");document.body.appendChild(e),e.style="display: none",e.href=this.responseBlobUrl,e.download=this.respContentDisposition,e.click(),e.remove()}}viewResponseBlob(){if(this.responseBlobUrl){const e=document.createElement("a");document.body.appendChild(e),e.style="display: none",e.href=this.responseBlobUrl,e.target="_blank",e.click(),e.remove()}}clearResponseData(){this.responseUrl="",this.responseHeaders="",this.responseText="",this.responseStatus="",this.responseMessage="",this.responseElapsedMs=0,this.responseIsBlob=!1,this.responseBlobType="",this.respContentDisposition="",this.responseBlobUrl&&(URL.revokeObjectURL(this.responseBlobUrl),this.responseBlobUrl="")}requestParamFunction(e){"Enter"===e.key&&(this.onTryClick(),e.preventDefault())}disconnectedCallback(){this.responseBlobUrl&&(URL.revokeObjectURL(this.responseBlobUrl),this.responseBlobUrl=""),super.disconnectedCallback()}}customElements.get("openapi-explorer")||customElements.define("api-request",Qn);class Xn extends ue{static get properties(){return{schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},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.schemaHideReadOnly&&"true false".includes(this.schemaHideReadOnly)||(this.schemaHideReadOnly="true"),this.schemaHideWriteOnly&&"true false".includes(this.schemaHideWriteOnly)||(this.schemaHideWriteOnly="true")}update(e){e.has("data")&&(this.interactive=!1),super.update(e)}updated(){this.interactive=!0}static finalizeStyles(){return[pe,me,he,l`.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}.requiredStar::after{content:'*';color:var(--red);font-size:larger}.key.deprecated .key-label{text-decoration:line-through}.table .key-type{white-space:normal}.key-type{display:flex}.key-type>.attributes{margin:.0625rem 0 0 .25rem}.obj-toggle{display:inline-flex;margin-left:-.8rem;margin-right:.8rem;color:var(--primary-color);cursor:pointer;font-size:calc(var(--font-size-small) + 4px);font-family:var(--font-mono);background-clip:border-box}.tr+.object-body{overflow:hidden}.table:not(.interactive) .object-body{animation-duration:0s!important}.tr:not(.collapsed)+.object-body{animation:linear .2s expand-height}.tr.collapsed+.object-body{animation:linear .2s collapse-height;max-height:0}.obj-toggle{transition:transform .1s ease}.tr.collapsed .obj-toggle{transform:rotate(-90deg)}`]}render(){var e,t,r,n,o,i,a;const s=[(null===(e=this.data)||void 0===e?void 0:e["::title"])||"array"===(null===(t=this.data)||void 0===t?void 0:t["::type"])&&(null===(r=this.data)||void 0===r||null===(n=r["::props"])||void 0===n?void 0:n["::title"])&&`[${null===(o=this.data)||void 0===o||null===(i=o["::props"])||void 0===i?void 0:i["::title"]}]`,null===(a=this.data)||void 0===a?void 0:a["::description"]].filter((e=>e)).join(" - "),{result:l,keyLabelMaxCharacterLength:u,typeMaxCharacterLength:c}=this.data?this.generateTree("array"===this.data["::type"]?this.data["::props"]:this.data,this.data["::type"]):{};return z` ${s?z` ${Wr(Tr(s))}`:""} Field Type Description ${l||""} `}scrollToSchemaComponentByName(e){this.dispatchEvent(new CustomEvent("scrollToSchemaComponentByName",{bubbles:!0,composed:!0,detail:e}))}generateTree(e,t="object",r="",n="",o="",i=0,a=0){var s;const l=e["::type"]&&e["::type"].startsWith("xxx-of")?i:i+1,u=r.startsWith("::OPTION")?a:a+1,c=Math.max(32,16*u);if(!e)return{result:z`null`,keyLabelMaxCharacterLength:u};if(0===Object.keys(e).length)return{result:z`${r}`,keyLabelMaxCharacterLength:u};let p="",d="",h=!1;if(r.startsWith("::ONE~OF")||r.startsWith("::ANY~OF"))p=r.replace("::","").replace("~"," "),h=!0;else if(r.startsWith("::OPTION")){const e=r.split("~");p=e[1],d=e[2]}else p=r;let f="",g=!1;if((e["::type"]||"").includes("xxx-of")?f="":"array"===e["::type"]?f="array"===t?"array of array":"array":e["::type"]&&(g=e["::link"],f="array"===t?e["::link"]||!r.startsWith("::")&&p.replace(/(s|Collection|List)[*]?$/i,"").replace(/[*]$/,"")||"object":(e["::link"]||e["::type"]).replace(/[*]$/,"")),"object"==typeof e){var m,y;const i=e["::flags"]||{};if(i["🆁"]&&"true"===this.schemaHideReadOnly)return{result:void 0,keyLabelMaxCharacterLength:u};if(i["🆆"]&&"true"===this.schemaHideWriteOnly)return{result:void 0,keyLabelMaxCharacterLength:u};let a,s=u,b=0;Array.isArray(e)&&e[0]?({result:a,keyLabelMaxCharacterLength:s,typeMaxCharacterLength:b}=this.generateTree(e[0],"xxx-of-option","::ARRAY~OF",e[0]["::title"],e[0]["::description"],l,u)):a=Object.keys(e).filter((t=>{var r;return!["::metadata","::title","::description","::type","::link","::props","::deprecated","::array-type","::dataTypeLabel","::flags"].includes(t)||(null===(r=e[t])||void 0===r?void 0:r["::type"])&&!e[t]["::type"].includes("xxx-of")})).map((t=>{const{result:r,keyLabelMaxCharacterLength:n,typeMaxCharacterLength:o}=this.generateTree("array"===e[t]["::type"]?e[t]["::props"]:e[t],e[t]["::type"],t,e[t]["::title"],e[t]["::description"],l,u)||{};return s=Math.max(s,n),b=Math.max(b,o),r}));const v=[n&&`**${n}${o?":":""}**`,o].filter((e=>e)).join(" "),x=z` ${l>=0&&r?z` this.toggleObjectExpand(e,p)}"> ${p||d?z`▾`:""} ${"xxx-of-option"===e["::type"]||r.startsWith("::OPTION")?z`${p}${d}`:p.endsWith("*")?z` ${p.substring(0,p.length-1)}`:z`${"::props"===p?"":p}`} ${g?z`${(e["::type"]||"").includes("xxx-of")?"":`${"array"===t?"[":""}${f}${"array"===t?"]":""}`}`} ${i["🆁"]||i["🆆"]||""} `:z` ${Wr(Tr(v))} ${null!==(m=e["::metadata"])&&void 0!==m&&null!==(y=m.constraints)&&void 0!==y&&y.length?z`Constraints: ${e["::metadata"].constraints.join(", ")}
`:""} `:z` ${"array"===e["::type"]&&"array"===t?z` ${t} `:""} `} ${a} `;return{result:x,keyLabelMaxCharacterLength:Math.max(s,(p||d).length),typeMaxCharacterLength:Math.max(b,f.length)}}const{type:b,cssType:v,format:x,readOrWriteOnly:w,constraints:k,defaultValue:A,example:E,allowedValues:S,pattern:D,schemaDescription:$,schemaTitle:C,deprecated:_}=JSON.parse(e);if("🆁"===w&&"true"===this.schemaHideReadOnly)return{result:void 0,keyLabelMaxCharacterLength:u};if("🆆"===w&&"true"===this.schemaHideWriteOnly)return{result:void 0,keyLabelMaxCharacterLength:u};const O=z` ${null!==(s=p)&&void 0!==s&&s.endsWith("*")?z`${p.substring(0,p.length-1)}`:r.startsWith("::OPTION")?z`${p}${d}`:z`${p?z` ${p}`:z`${C}`}`} ${"array"===t?"[":""}${x||b}${"array"===t?"]":""} ${w} ${Wr(Tr(`${`${C||n?`**${C||n}${$||o?":":""}**`:""} ${$||o}`||""}`))} ${k.length?z`Constraints: ${k.join(", ")}
`:""} ${""!==A?z`Default: ${A}
`:""} ${S?z`Allowed: ${S.filter((e=>null!=e)).join(" ┃ ")}
`:""} ${D?z`Pattern: ${D}
`:""} ${E?z`Example: ${E}
`:""} `;return{result:O,keyLabelMaxCharacterLength:p.length+u,typeMaxCharacterLength:(x||b).length}}toggleObjectExpand(e){e.target.closest(".tr").classList.toggle("collapsed")}}customElements.get("openapi-explorer")||customElements.define("schema-table",Xn);class eo extends ue{constructor(){super(),this.selectedStatus="",this.headersForEachRespStatus={},this.mimeResponsesForEachStatus={},this.activeSchemaTab="model"}static get properties(){return{callback:{type:String},responses:{type:Object},parser:{type:Object},includeNulls:{type:Boolean,attribute:"display-nulls",converter:e=>"true"===e},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"},schemaHideWriteOnly:{type:String,attribute:"schema-hide-write-only"}}}static finalizeStyles(){return[he,pe,fe,xe,ge,de,Rn,be,l`.resp-head{vertical-align:middle;padding:16px 0 8px}.resp-head.divider{border-top:1px solid var(--border-color);margin-top:10px}.resp-status{font-weight:700;font-size:calc(var(--font-size-small) + 1px)}.resp-descr{font-size:calc(var(--font-size-small) + 1px)}.top-gap{margin-top:16px}.example-panel{font-size:var(--font-size-small);margin:0}.generic-tree{background:var(--bg2,#333);color:var(--fg,#fff)}.example-panel.generic-tree{margin-top:8px}pre.generic-tree{border:none;padding:8px 10px 10px}.example-panel select{margin-left:8px;padding-top:8px;min-width:100px;max-width:100%}.example-panel .example{padding:0 12px}.focused-mode,.read-mode{padding-top:3rem;margin-top:12px;border-top:1px dashed var(--border-color)}`]}render(){return z` ${"true"===this.callback?"CALLBACK RESPONSE":Sr("operations.response")} ${this.responseTemplate()} `}resetSelection(){this.selectedStatus="",this.selectedMimeType=""}responseTemplate(){if(!this.responses)return"";for(const e in this.responses){this.selectedStatus||(this.selectedStatus=e);const t={};for(const r in this.responses[e]&&this.responses[e].content){const n=this.responses[e].content[r];this.selectedMimeType||(this.selectedMimeType=r);const o=jn(n.schema,{includeNulls:this.includeNulls}),i=Tn(n.examples||"",n.example||"",n.schema,r,!0,!1,r.includes("json")?"json":"text");t[r]={description:this.responses[e].description,examples:i,selectedExample:i[0]&&i[0].exampleId||"",schemaTree:o}}const r=[];for(const t in this.responses[e]&&this.responses[e].headers)r.push({name:t,...this.responses[e].headers[t]});this.headersForEachRespStatus[e]=r,this.mimeResponsesForEachStatus[e]=t}return z` ${Object.keys(this.responses).map((e=>z` ${"$$ref"===e?"":z` `}`))} ${Object.keys(this.responses).map((e=>z` ${Wr(Tr(this.responses[e]&&this.responses[e].description||""))} ${this.headersForEachRespStatus[e]&&this.headersForEachRespStatus[e].length>0?z`${this.responseHeaderListTemplate(this.headersForEachRespStatus[e])}`:""} ${0===Object.keys(this.mimeResponsesForEachStatus[e]).length?"":z` ${this.mimeExampleTemplate(this.mimeResponsesForEachStatus[e][this.selectedMimeType])} `:z` ${this.mimeSchemaTemplate(this.mimeResponsesForEachStatus[e][this.selectedMimeType])} `} `} ${"body"===this.activeSchemaTab?z``))} `}responseHeaderListTemplate(e){return z` ${Sr("operations.response-headers")} ${e.map((e=>{var t,r;const n=Cn(e,{enableExampleGeneration:!0});return z` ${e.name||""} ${(null==n?void 0:n.format)||(null==n?void 0:n.type)||""} ${Wr(Tr(e.description||""))} ${null!==(t=null!==(r=null==n?void 0:n.example)&&void 0!==r?r:null==n?void 0:n.default)&&void 0!==t?t:""} `}))}
`}mimeTypeDropdownTemplate(e){return z` `}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` ${e.examples[0].exampleSummary&&e.examples[0].exampleSummary.length>80?z` ${e.examples[0].exampleSummary} `:""} ${e.examples[0].exampleDescription?z` ${Wr(Tr(e.examples[0].exampleDescription||""))} `:""} `:z` ${e.examples.map((t=>z` ${t.exampleSummary&&t.exampleSummary.length>80?z` ${t.exampleSummary} `:""} ${t.exampleDescription&&t.exampleDescription!==t.exampleSummary?z` ${Wr(Tr(t.exampleDescription||""))} `:""} `))} `} `:z` No example provided
`}mimeSchemaTemplate(e){return e?z` ${"table"===this.schemaStyle?z` `:z` `}`:z` Schema not found
`}}function to(e,t){var r,n,o;const i=this.resolvedSpec.securitySchemes.filter((t=>t.finalKeyValue&&e.security&&e.security.some((e=>e[t.apiKeyId]))))||[],a=e.xCodeSamples?ln.call(this,e.xCodeSamples):"";return z` ${"read"===this.renderStyle?z``:""} `}function ro(e,t){const r=(this.resolvedSpec.tags||[]).find((t=>t.elementId===e)),n=t.replace(`${e}--`,"");return z` ${r.name} ${Wr(`\n \n ${Tr(r.description||"")}\n `)}
Operations `}function no(e){const t=jn(e.component,{includeNulls:this.includeNulls});return z` `}function oo(e){return{schemas:{name:Sr("menu.schemas"),description:""},responses:{name:"Responses",description:"Describes responses from an API Operation, including design-time, static links to operations based on the response."},parameters:{name:"Parameters",description:"Describes operation parameters. A unique parameter is defined by a combination of a name and location."},examples:{name:"Examples",description:"List of Examples for operations, can be requests, responses and objects examples."},headers:{name:"Headers",description:'Headers follows the structure of the Parameters but they are explicitly in "header"'},links:{name:"Links",description:"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."},callbacks:{name:"Callbacks",description:"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."}}[e]||{name:e}}function io(){return this.resolvedSpec.components.map((e=>{const t=oo(e.componentKeyId);return z` ${t.name} ${Wr(`${Tr(t.description?t.description:"")}`)} ${e.subComponents.filter((e=>e.expanded)).map((e=>no.call(this,e)))} `}))}function ao(){return z` ${this.resolvedSpec&&this.resolvedSpec.info?z` ${this.resolvedSpec.info.title} ${this.resolvedSpec.info.version?z` ${this.resolvedSpec.info.version} `:""} ${this.resolvedSpec.info.contact&&this.resolvedSpec.info.contact.email?z`${this.resolvedSpec.info.contact.name||Sr("overview.email")}: ${this.resolvedSpec.info.contact.email} `:""} ${this.resolvedSpec.info.contact&&this.resolvedSpec.info.contact.url?z`URL: ${this.resolvedSpec.info.contact.url}`:""} ${this.resolvedSpec.info.license?z`License: ${this.resolvedSpec.info.license.url?z`${this.resolvedSpec.info.license.name}`:this.resolvedSpec.info.license.name} `:""} ${this.resolvedSpec.info.termsOfService?z`${Sr("overview.terms-of-service")}`:""} ${this.resolvedSpec.info.description?z`${Wr(`${Tr(this.resolvedSpec.info.description)}`)}`:""} `:""} `;var e}function so(e,t){e&&e.target.checked&&(this.selectedServer=t,this.requestUpdate())}function lo(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 uo(){var e;return Object.keys((null===(e=this.selectedServer)||void 0===e?void 0:e.variables)||{}).length?z` ${Sr("api-servers.server-variables")} ${Object.entries(this.selectedServer.variables).map((e=>z` ${e[0]} ${e[1].enum?z` `:z` {lo.call(this,e,this.selectedServer)}}">`} ${e[1].description?z` ${Wr(Tr(e[1].description))} `:""} `))}
`:""}function co(){var e;if(this.resolvedSpec)return z` ${Sr("headers.api-servers")} ${this.resolvedSpec.servers&&this.resolvedSpec.servers.length?z` ${this.resolvedSpec.servers.map(((e,t)=>z` {so.call(this,t,e)}}" .checked="${this.selectedServer.url===e.url}" style="margin:4px 0;cursor:pointer">
`))} `:""} ${Sr("api-servers.selected")}: ${(null===(e=this.selectedServer)||void 0===e?void 0:e.computedUrl)||"none"} ${uo.call(this)} `}function po(e){return z` ${e} `}function ho(){if(!this.hideInfo)return ao.call(this);const e=this.resolvedSpec.tags[0],t=null==e?void 0:e.paths[0];return po(t?to.call(this,t,e):"")}function fo(){if(!this.explorerLocation||!this.resolvedSpec)return;const e=this.explorerLocation;let t,r=null,n=null,o=0;if(e.startsWith("overview")&&!this.hideInfo)t=ao.call(this);else if("auth"!==e||this.hideAuthentication)if("servers"!==e||this.hideServerSelection)if(e.startsWith("section"))t=z` `;else if(e.startsWith("cmp--")&&!this.hideComponents)t=io.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?ro.call(this,r,e):ho.call(this)}else{for(o=0;o`${t.elementId}`===e)),!r);o+=1);t=r?po.call(this,to.call(this,r,n)):ho.call(this)}else t=co.call(this);else t=nn.call(this);return t}function go(e){e.expanded?(e.expanded=!1,jr(null)):(e.expanded=!0,this.emitOperationChangedEvent(e.elementId),this.resolvedSpec.tags.forEach((t=>t.paths.filter((t=>t.elementId!==e.elementId)).forEach((e=>e.expanded=!1)))),e.elementId!==Fr()&&jr(e.elementId)),this.requestUpdate()}function mo(e,t){const r=this.resolvedSpec.tags.find((e=>e.elementId===t));r.expanded=!r.expanded,this.requestUpdate()}function yo(e,t){this.resolvedSpec.tags.forEach((e=>e.expanded=t)),this.requestUpdate()}function bo(e){e.expanded=!e.expanded,this.requestUpdate()}function vo(e){return z` {go.call(this,e,t)}}" class="endpoint-head ${e.method} ${e.expanded?"expanded":"collapsed"}"> ${e.method} ${this.usePathInNavBar?z`${e.path.split("/").filter((e=>e.trim())).map((e=>z`/${e}`))}`:z`${e.summary||e.shortSummary}`} ${e.isWebhook?z` (Webhook) `:""} `}function xo(e){var t,r,n;const o=this.resolvedSpec.securitySchemes.filter((t=>{var r;return t.finalKeyValue&&(null===(r=e.security)||void 0===r?void 0:r.some((e=>e[t.apiKeyId])))}))||[],i=e.xCodeSamples?ln(e.xCodeSamples):"";return z` ${this.usePathInNavBar?e.summary?z`${e.summary}`:e.shortSummary!==e.description?z`${e.shortSummary}`:"":z` ${e.isWebhook?z` WEBHOOK `:""} ${e.method} ${e.path.split("/").filter((e=>e.trim())).map((e=>z`/${e}`))} `} ${e.description?z` ${Wr(Tr(e.description))}`:""} ${sn.call(this,e.security)} ${i} this.scrollToSchemaComponentByName(e)}" exportparts="btn, btn-fill, btn-outline, btn-try, schema-key, schema-type, schema-description, schema-table-header"> ${e.callbacks?un.call(this,e.callbacks):""} this.scrollToSchemaComponentByName(e)}" exportparts="btn--resp, btn-fill--resp, btn-outline--resp, schema-key, schema-type, schema-description, schema-table-header"> `}function wo(){return z` yo.call(this,e,!0)}" style="color:var(--primary-color);cursor:pointer">Expand | yo.call(this,e,!1)}" style="color:var(--primary-color);cursor:pointer">Collapse ${(this.resolvedSpec&&this.resolvedSpec.tags||[]).map((e=>z` `))}`}function ko(e,t){const r=this.resolvedSpec.tags.find((e=>e.elementId===t));r&&(r.expanded=!r.expanded,r.expanded&&this.operationsCollapsed&&this.resolvedSpec.tags.filter((e=>e.elementId!==t)).forEach((e=>e.expanded=!1)),r.description&&this.scrollToEventTarget(e,!1),this.requestUpdate())}function Ao(){const e=this.operationsCollapsed;this.operationsCollapsed=!e,this.resolvedSpec.tags.forEach((t=>{t.expanded=e})),this.requestUpdate()}function Eo(){var e;return z` `}function So(){const e=e=>{"Escape"===(e.detail&&e.detail.code||e.code)&&(this.showAdvancedSearchDialog=!1)},t=()=>{document.dispatchEvent(new CustomEvent("keydown",{detail:{code:"Escape"}})),document.removeEventListener("keydown",e,{once:!0})};return document.addEventListener("keydown",e,{once:!0}),z` ${this.showAdvancedSearchDialog?z` `:""}`}customElements.get("openapi-explorer")||customElements.define("api-response",eo);var Do=r(565),$o=r.n(Do);const Co={color:{inputReverseFg:"#fff",inputReverseBg:"#333",headerBg:"#444",getRgb(e){let t=(e||"").trim();return 0===t.indexOf("#")&&(t=t.slice(1,7)),3!==t.length&&4!==t.length||(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),6!==t.length?(console.error(`Invalid HEX color: '${e}'`),{r:0,g:0,b:0}):{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.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)>149?"#000000":"#ffffff"},selectTextColorFromBackground(e){const{r:t,g:r,b:n}=this.getRgb(e),o=[t/255,r/255,n/255].map((e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4));return.2126*o[0]+.7152*o[1]+.0722*o[2]>.179?"#000000":"#FFFFFF"},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")}`}},isValidHexColor:e=>/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3}|[A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/i.test(e)};function _o(e={}){const t=e.bg1?e.bg1:"#ffffff",r=e.fg1?e.fg1:"#444444",n=e.bg2?e.bg2:Co.color.brightness(t,-5),o=e.bg3?e.bg3:Co.color.brightness(t,-15),i=e.bg3?e.bg3:Co.color.brightness(t,-45),a=e.fg2?e.fg2:Co.color.brightness(r,17),s=e.fg3?e.fg3:Co.color.brightness(r,30),l=e.fg3?e.fg3:Co.color.brightness(r,70),u=e.inlineCodeFg?e.inlineCodeFg:"brown",c=e.headerColor||e.primaryColor||Co.color.brightness(t,-180),p=e.navBgColor||e.primaryColor||Co.color.brightness(t,-180),d=e.navTextColor?e.navTextColor:Co.color.opacity(Co.color.invert(p),"0.65"),h=e.navHoverBgColor?e.navHoverBgColor:Co.color.brightness(p,-25),f=Co.color.brightness(h,-5),g=e.navHoverTextColor?e.navHoverTextColor:Co.color.invert(p),m=[`--purple: ${getComputedStyle(this).getPropertyValue("--purple").trim()||"#6f42c1"}`,`--red: ${getComputedStyle(this).getPropertyValue("--red").trim()||"#dc3545"}`,`--orange: ${getComputedStyle(this).getPropertyValue("--orange").trim()||"#fd7e14"}`,`--yellow: ${getComputedStyle(this).getPropertyValue("--yellow").trim()||"#ffc107"}`,`--green: ${getComputedStyle(this).getPropertyValue("--green").trim()||"#28a745"}`,`--blue: ${getComputedStyle(this).getPropertyValue("--blue").trim()||"#38b3f9"}`,`--gray: ${getComputedStyle(this).getPropertyValue("--gray").trim()||"#465865"}`,"--pink: #e83e8c","--white: #fff",""],y=[`--light-purple: ${$o()(getComputedStyle(this).getPropertyValue("--purple").trim()||"#6f42c1").lightness(96).hex()}`,`--light-red: ${$o()(getComputedStyle(this).getPropertyValue("--red").trim()||"#dc3545").lightness(96).hex()}`,`--light-orange: ${$o()(getComputedStyle(this).getPropertyValue("--orange").trim()||"#fd7e14").lightness(96).hex()}`,`--light-yellow: ${$o()(getComputedStyle(this).getPropertyValue("--yellow").trim()||"#ffc107").lightness(96).hex()}`,`--light-green: ${$o()(getComputedStyle(this).getPropertyValue("--green").trim()||"#28a745").lightness(96).hex()}`,`--light-blue: ${$o()(getComputedStyle(this).getPropertyValue("--blue").trim()||"#38b3f9").lightness(96).hex()}`,`--light-gray: ${$o()(getComputedStyle(this).getPropertyValue("--gray").trim()||"#465865").lightness(96).hex()}`,""],b=t,v=n,x=o,w=i,k=r,A=a,E=s,S=l,D=u,$="#444",C="#eee",_="rgba(0, 0, 0, 0.4)",O=p,F=d,j=h,T=g,R=c,B=Co.color.invert(c),I=Co.color.brightness(c,-20),P=Co.color.brightness(c,10),L=e.bg2||Co.color.brightness(t,-38),N=e.lightBorderColor||Co.color.brightness(t,-23),M=e.codeBorderColor||"transparent",U=e.inputBg||Co.color.brightness(t,10),q=e.placeHolder||Co.color.brightness(l,20),H=e.hoverColor||Co.color.brightness(t,-5),W=e.codeFg||"#666",V=e.codePropertyColor||"#905",G=e.codeKeywordColor||"#07a",K=e.codeOperatorColor||"#9a6e3a";return z` `}function Oo(){const e={bg1:Co.isValidHexColor(this.bgColor)?this.bgColor:"",bg2:Co.isValidHexColor(this.bgHeaderColor)?this.bgHeaderColor:"",fg1:Co.isValidHexColor(this.textColor)?this.textColor:"",primaryColor:Co.isValidHexColor(this.primaryColor)?this.primaryColor:"#3E6077",secondaryColor:Co.isValidHexColor(this.secondaryColor)?this.secondaryColor:"#FBAF0B",headerColor:Co.isValidHexColor(this.headerColor)?this.headerColor:"",navBgColor:Co.isValidHexColor(this.navBgColor)?this.navBgColor:"",navTextColor:Co.isValidHexColor(this.navTextColor)?this.navTextColor:"",navHoverBgColor:Co.isValidHexColor(this.navHoverBgColor)?this.navHoverBgColor:"",navHoverTextColor:Co.isValidHexColor(this.navHoverTextColor)?this.navHoverTextColor:""};return z` ${_o.call(this,e)} ${this.hideSearch?"":So.call(this)} ${"focused"===this.renderStyle&&this.resolvedSpec?Eo.call(this):""} ${!0===this.loading?z` `:z` ${this.loadingFailedError?z` Unable to load the Spec${this.specUrl?": ":""} ${this.specUrl}
${this.loadingFailedError} `:z` {this.handleHref(e)}}"> ${"focused"===this.renderStyle?z`${fo.call(this)}`:z` ${this.hideInfo?"":ao.call(this)} ${this.hideServerSelection?"":co.call(this)} ${this.hideAuthentication?"":nn.call(this)} ${wo.call(this)}`} `} `} `}const Fo=l`.api-request,.api-request *,.api-request :after,.api-request :before,.api-request:after,.api-request:before{box-sizing:border-box}.api-request.focused-mode,.api-request.read-mode{padding-top:3rem;margin-top:12px;border-top:1px dashed var(--border-color)}.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{text-decoration:line-through}.param-type{color:var(--light-fg);font-family:var(--font-regular)}.api-request .param-constraint{min-width:100px}.api-request .param-constraint:empty{display:none}.api-request .param-description{min-width:100px}.api-request .param-description:empty{display:none}.api-request .param-description p{margin-block:0 0}.api-request .param-description+.param-constraint{margin-block-start:.5em}.api-request .top-gap{margin-top:24px}.api-request .textarea:not(.small){padding:5px;resize:vertical}.api-request .textarea:not(.small){min-height:220px}.api-request .response-message{font-weight:700;text-overflow:ellipsis}.api-request .response-message.error{color:var(--red)}.api-request .response-message.success{color:var(--blue)}.api-request .file-input-container{align-items:flex-end}.api-request .file-input-container .input-set:first-child .file-input-remove-btn{visibility:hidden}.api-request .file-input-remove-btn{font-size:16px;color:var(--red);outline:0;border:none;background:0 0;cursor:pointer}.api-request .v-tab-btn{font-size:var(--smal-font-size);height:24px;border:none;background:0 0;opacity:.3;cursor:pointer;padding:4px 8px}.api-request .v-tab-btn.active{font-weight:700;background:var(--bg);opacity:1}.api-request .border-top{border-top:1px solid var(--border-color)}.api-request .border{border:1px solid var(--border-color);border-radius:var(--border-radius)}.api-request .light-border{border:1px solid var(--light-border-color);border-radius:var(--border-radius)}.api-request .pad-8-16{padding:8px 16px}.api-request .pad-top-8{padding-top:8px}.api-request .mar-top-8{margin-top:8px}@media only screen and (min-width:768px){.api-request .textarea{padding:8px}}`;class jo extends ue{connectedCallback(){Xr(!0)}}customElements.get("openapi-explorer-oauth-handler")||customElements.define("openapi-explorer-oauth-handler",jo);class To extends ue{constructor(){super(),this.loading=!0;const e={root:this.getRootNode().host,rootMargin:"-50px 0px -50px 0px",threshold:0};this.isIntersectionObserverActive=!0,"undefined"!=typeof IntersectionObserver?this.intersectionObserver=new IntersectionObserver((e=>{this.onIntersect(e)}),e):this.intersectionObserver={disconnect(){},observe(){}}}static get properties(){return{headingText:{type:String,attribute:"heading-text"},explorerLocation:{type:String,attribute:"explorer-location"},specUrl:{type:String,attribute:"spec-url"},layout:{type:String},collapsed:{type:Boolean,attribute:"collapse",converter:e=>"false"!==e&&!1!==e},operationsCollapsed:{type:Boolean},componentsCollapsed:{type:Boolean},defaultSchemaTab:{type:String,attribute:"default-schema-tab"},responseAreaHeight:{type:String,attribute:"response-area-height"},hideDefaults:{type:Boolean,attribute:"hide-defaults",converter:e=>"false"!==e&&!1!==e},displaySchemaAsTree:{type:Boolean,attribute:"tree",converter:e=>"false"!==e&&!1!==e},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},serverUrl:{type:String,attribute:"server-url"},hideInfo:{type:Boolean,attribute:"hide-info",converter:e=>"false"!==e&&!1!==e},hideAuthentication:{type:Boolean,attribute:"hide-authentication",converter:e=>"false"!==e&&!1!==e},hideExecution:{type:Boolean,attribute:"hide-console",converter:e=>"false"!==e&&!1!==e},includeNulls:{type:Boolean,attribute:"display-nulls",converter:e=>"false"!==e&&!1!==e},hideSearch:{type:Boolean,attribute:"hide-search",converter:e=>"false"!==e&&!1!==e},hideServerSelection:{type:Boolean,attribute:"hide-server-selection",converter:e=>"false"!==e&&!1!==e},hideComponents:{type:Boolean,attribute:"hide-components",converter:e=>"false"!==e&&!1!==e},primaryColor:{type:String,attribute:"primary-color"},secondaryColor:{type:String,attribute:"secondary-color"},bgColor:{type:String,attribute:"bg-color"},bgHeaderColor:{type:String,attribute:"header-bg-color"},textColor:{type:String,attribute:"text-color"},headerColor:{type:String,attribute:"header-color"},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"},usePathInNavBar:{type:Boolean,attribute:"use-path-in-nav-bar",converter:e=>"false"!==e&&!1!==e},fetchCredentials:{type:String,attribute:"fetch-credentials"},matchPaths:{type:String,attribute:"match-paths"},loading:{type:Boolean},showAdvancedSearchDialog:{type:Boolean},advancedSearchMatches:{type:Object}}}static finalizeStyles(){return[pe,he,de,fe,ge,me,ye,be,xe,we,ke,ve,Ae,Fo,Ee]}connectedCallback(){super.connectedCallback(),this.handleResize=this.handleResize.bind(this),window.addEventListener("resize",this.handleResize),this.loading=!0;const e=this.parentElement;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"))),this.renderStyle="focused",this.operationsCollapsed=this.collapsed,this.componentsCollapsed=this.collapsed,this.explorerLocation=this.explorerLocation||Fr(),this.defaultSchemaTab&&"body, model, form,".includes(`${this.defaultSchemaTab},`)||(this.defaultSchemaTab="model"),(!this.schemaExpandLevel||this.schemaExpandLevel<1)&&(this.schemaExpandLevel=99999),this.schemaHideReadOnly=["post","put","patch","query"].join(","),this.schemaHideWriteOnly=!0,this.responseAreaHeight||(this.responseAreaHeight="300px"),this.fetchCredentials&&"omit, same-origin, include,".includes(`${this.fetchCredentials},`)||(this.fetchCredentials=""),this.showAdvancedSearchDialog||(this.showAdvancedSearchDialog=!1),window.addEventListener("hashchange",(()=>{this.scrollTo(Fr())}),!0),this.handleResize()}disconnectedCallback(){this.intersectionObserver.disconnect(),window.removeEventListener("resize",this.handleResize),super.disconnectedCallback()}render(){return Oo.call(this)}observeExpandedContent(){this.shadowRoot.querySelectorAll(".observe-me").forEach((e=>{this.intersectionObserver.observe(e)}))}handleResize(){const e=window.matchMedia("(min-width: 768px)").matches?"focused":"view";this.renderStyle!==e&&(this.renderStyle=e,this.requestUpdate())}attributeChangedCallback(e,t,r){var n;("spec-url"===e&&t!==r&&window.setTimeout((async()=>{await this.loadSpec(r),this.explorerLocation&&this.scrollTo(this.explorerLocation)}),0),"server-url"===e&&r)&&(this.selectedServer=(null===(n=this.resolvedSpec)||void 0===n?void 0:n.servers.find((e=>e.url===r||!r)))||{url:r,computedUrl:r});"render-style"===e&&("read"===r?window.setTimeout((()=>{this.observeExpandedContent()}),100):this.intersectionObserver.disconnect()),"explorer-location"===e&&window.setTimeout((()=>{this.scrollTo(r)}),0),"collapsed"===e&&(this.operationsCollapsed=r,this.componentsCollapsed=r),super.attributeChangedCallback(e,t,r)}onSearchChange(e){var t;this.matchPaths=e.target.value;const r=!(null===(t=this.matchPaths)||void 0===t||!t.trim());this.operationsCollapsed=!r,this.componentsCollapsed=!r,this.resolvedSpec.tags.forEach((e=>{e.expanded=r})),this.resolvedSpec.components.forEach((e=>{e.expanded=r})),this.requestUpdate()}onClearSearch(){this.shadowRoot.getElementById("nav-bar-search").value="",this.matchPaths=""}async onShowSearchModalClicked(){this.showAdvancedSearchDialog=!0,await $r(10);const e=this.shadowRoot.getElementById("advanced-search-dialog-input");e&&e.focus()}async loadSpec(e){if(e){this.matchPaths="";try{var t;this.resolvedSpec=null,this.loading=!0,this.loadingFailedError=null;const o=await Nr(e,this.serverUrl);if(this.loading=!1,null==o)return void console.error("Unable to resolve the API spec. ");var r,n;if(async function(e){const t=(e||window.navigator.language).substring(0,2);await kr.init({lng:t,fallbackLng:"en",debug:!1,ns:["translation"],defaultNS:"translation",resources:{en:Ar,fr:Er}})}(null===(t=o.info)||void 0===t?void 0:t["x-locale"]),!this.serverUrl)this.serverUrl=(null===(r=o.servers[0])||void 0===r?void 0:r.computedUrl)||(null===(n=o.servers[0])||void 0===n?void 0:n.url);this.selectedServer=o.servers.find((e=>e.url===this.serverUrl||!this.serverUrl))||o.servers[0],this.afterSpecParsedAndValidated(o)}catch(e){this.loading=!1,this.loadingFailedError=e.message,this.resolvedSpec=null,console.error("OpenAPI Explorer: Unable to resolve the API spec..",e)}try{await Xr.call(this)}catch(e){console.error("Failed to check for authentication token",e)}}}async setAuthenticationConfiguration(e,{token:t,clientId:r,clientSecret:n,redirectUri:o}){const i=this.resolvedSpec&&this.resolvedSpec.securitySchemes.find((t=>t.apiKeyId===e));if(!i)throw Error("SecuritySchemeNotFound");let a=t&&t.replace(/^(Bearer|Basic)\s+/i,"").trim();a&&i.type&&"http"===i.type&&i.scheme&&"basic"===i.scheme.toLowerCase()?a=`Basic ${btoa(a)}`:a&&i.scheme&&"bearer"===i.scheme.toLowerCase()&&(a=`Bearer ${a}`),i.clientId=r&&r.trim(),i.clientSecret=n&&n.trim(),i.redirectUri=new URL(o&&o.trim()||"",window.location.href).toString(),i.finalKeyValue=a,await Xr.call(this),this.requestUpdate()}afterSpecParsedAndValidated(e){if(this.resolvedSpec=e,this.operationsCollapsed&&this.resolvedSpec.tags.forEach((e=>e.expanded=!1)),this.componentsCollapsed&&this.resolvedSpec.components.forEach((e=>e.expanded=!1)),this.dispatchEvent(new CustomEvent("spec-loaded",{bubbles:!0,detail:e})),this.requestUpdate(),this.intersectionObserver.disconnect(),"focused"===this.renderStyle){const e=this.hideInfo?this.resolvedSpec.tags&&this.resolvedSpec.tags[0]&&this.resolvedSpec.tags[0].paths[0]:"overview";this.scrollTo(this.explorerLocation||e)}"view"===this.renderStyle&&this.explorerLocation&&this.expandAndGotoOperation(this.explorerLocation)}expandAndGotoOperation(e){var t;let r=!1;const n=this.resolvedSpec.tags.find((t=>t.paths&&t.paths.find((t=>t.elementId===e)))),o=null==n||null===(t=n.paths)||void 0===t?void 0:t.find((t=>t.elementId===e));!o||o.expanded&&n.expanded||(r=!0,o.expanded=!0,n.expanded=!0,this.requestUpdate());const i=-1===e.indexOf("#")?e:e.substring(1);window.setTimeout((()=>{const e=this.shadowRoot.getElementById(i);e&&(e.scrollIntoView({behavior:"auto",block:"start"}),jr(i))}),r?150:0)}isValidTopId(e){return e.startsWith("overview")||"servers"===e||"auth"===e}isValidPathId(e){return"overview"===e&&!this.hideInfo||("servers"===e&&!this.hideServerSelection||("auth"===e&&!this.hideAuthentication||(e.startsWith("tag--")?this.resolvedSpec.tags&&this.resolvedSpec.tags.find((t=>t.elementId===e)):this.resolvedSpec.tags&&this.resolvedSpec.tags.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"),r=this.shadowRoot.getElementById(`link-${e.target.id}`);r&&(jr(e.target.id),r.scrollIntoView({behavior:"auto",block:"center"}),r.classList.add("active")),t&&t.classList.remove("active")}}))}handleHref(e){if("a"===e.target.tagName.toLowerCase()){const t=e.target.getAttribute("href");if(t&&t.startsWith("#")){const e=this.shadowRoot.getElementById(t.replace("#",""));e&&e.scrollIntoView({behavior:"auto",block:"start"})}}}scrollToEventTarget(e,t=!0){const r=e.currentTarget;r.dataset.contentId&&(this.isIntersectionObserverActive=!1,this.scrollTo(r.dataset.contentId,t),setTimeout((()=>{this.isIntersectionObserverActive=!0}),300))}scrollToCustomNavSectionTarget(e,t=!0){const r=e.currentTarget;if(!r.dataset.contentId)return;const n=this.shadowRoot.querySelector("slot.custom-nav-section"),o=null==n?void 0:n.assignedNodes(),i=t=>t===e.target||t.children&&[...t.children].some((e=>i(e)));let a=o&&[].findIndex.call(o,(e=>i(e)));-1===a&&r.dataset.contentId.match(/^section--\d+/)&&(a=Number(r.dataset.contentId.split("--")[1])-1),this.isIntersectionObserverActive=!1,this.scrollTo(r.dataset.contentId,t,a),setTimeout((()=>{this.isIntersectionObserverActive=!0}),300)}async scrollToSchemaComponentByName(e){var t,r,n,o;const i=e.detail,a=null===(t=this.resolvedSpec)||void 0===t||null===(r=t.components)||void 0===r||null===(n=r.find((e=>"schemas"===e.componentKeyId)))||void 0===n||null===(o=n.subComponents)||void 0===o?void 0:o.find((e=>e.name===i));a&&await this.scrollTo(`cmp--${a.id}`,!0)}async scrollTo(e,t=!0,r){try{await this.scrollToOrThrowException(e,t,r)}catch(n){throw console.error("Failed to scroll to target",e,t,r,n),n}}async scrollToOrThrowException(e,t=!0,r){if(!this.resolvedSpec)return;if(this.emitOperationChangedEvent(e),"view"===this.renderStyle)return void this.expandAndGotoOperation(e);this.explorerLocation=e;const n=this.resolvedSpec.tags.find((t=>t.paths.some((t=>t.elementId===e))));n&&(n.expanded=!0),await $r(0);const o=this.shadowRoot.getElementById(null!=e&&e.startsWith("section")?"section":e)||this.shadowRoot.getElementById(e.split("--").slice(-1)[0]);if(!o)return;let i,a=!1;const s=r||0===r?r:Number(e.split("--")[1])-1;if(e.match(/^section/)){const e=this.shadowRoot.querySelector("slot.custom-section"),t=null==e?void 0:e.assignedNodes();if(t)try{t.map((e=>{e.classList.remove("active")}));const e=t[s];e&&!e.classList.contains("active")&&e.classList.add("active")}catch(e){console.error("Failed to switch between custom sections, usually happens because the DOM is not ready and has not loaded these sections yet.",e)}const r=this.shadowRoot.querySelector("slot.custom-nav-section"),n=null==r?void 0:r.assignedNodes();i=null==n?void 0:n[s],jr(`section--${s+1}`)}else if(e.match("cmp--")){const t=this.resolvedSpec.components.find((t=>t.subComponents.find((t=>e.includes(t.id)))));t&&!t.expanded&&(a=!0,t.expanded=!0),o.scrollIntoView({behavior:"auto",block:"start"}),jr(e),i=this.shadowRoot.getElementById(`link-${e}`)}else e.match("cmp--")||e.match("tag--")?(o.scrollIntoView({behavior:"auto",block:"start"}),jr(e),i=this.shadowRoot.getElementById(`link-${e}`)):(this.shadowRoot.getElementById("operations-root").scrollIntoView({behavior:"auto",block:"start"}),jr(e),i=this.shadowRoot.getElementById(`link-${e}`));const l=this.shadowRoot.querySelector("api-request");l&&l.resetRequestBodySelection();const u=this.shadowRoot.querySelector("api-response");if(u&&u.resetSelection(),!i)return;t&&(i.scrollIntoView({behavior:"auto",block:"center"}),a&&setTimeout((()=>i.scrollIntoView({behavior:"auto",block:"center"})),600)),await $r(0);const c=this.shadowRoot.querySelector(".nav-bar-tag.active, .nav-bar-path.active, .nav-bar-info.active, .nav-bar-h1.active, .nav-bar-h2.active");c&&c.classList.remove("active");const p=this.shadowRoot.querySelector("slot.custom-nav-section");((null==p?void 0:p.assignedNodes())||[]).filter(((e,t)=>isNaN(s)||t!==s)).forEach((e=>{e.classList.remove("active")})),i.classList.add("active"),this.requestUpdate()}onAdvancedSearch(e){const t=e.target;clearTimeout(this.timeoutId),this.timeoutId=setTimeout((()=>{let e;e="text"===t.type?t:t.closest(".advanced-search-options").querySelector("input[type=text]");const r=[...t.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 o="";if(r.includes("search-api-path")&&(o=t.path),r.includes("search-api-descr")&&(o=`${o} ${t.summary||t.description||""}`),r.includes("search-api-params")&&(o=`${o} ${t.parameters&&t.parameters.map((e=>e.name)).join(" ")||""}`),r.includes("search-api-request-body")&&t.requestBody){let e=new Set;for(const r in t.requestBody&&t.requestBody.content)t.requestBody.content[r].schema&&t.requestBody.content[r].schema.properties&&(e=Or(t.requestBody.content[r].schema.properties)),o=`${o} ${[...e].join(" ")}`}r.includes("search-api-resp-descr")&&(o=`${o} ${Object.values(t.responses).map((e=>e.description||"")).join(" ")}`),o.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,r)}),0)}emitOperationChangedEvent(e){const t=this.resolvedSpec.tags.map((e=>e.paths)).flat(1).find((t=>t.elementId===e)),r={bubbles:!0,composed:!0,detail:{explorerLocation:e,operation:t,type:"OperationChanged"}};this.dispatchEvent(new CustomEvent("event",r))}}customElements.get("openapi-explorer")||customElements.define("openapi-explorer",To)},742:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,i=s(e),a=i[0],l=i[1],u=new o(function(e,t,r){return 3*(t+r)/4-r}(0,a,l)),c=0,p=l>0?a-4:a;for(r=0;r>16&255,u[c++]=t>>8&255,u[c++]=255&t;2===l&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t);1===l&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t);return u},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=16383,s=0,u=n-o;su?u:s+a));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(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=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)r[a]=i[a],n[i.charCodeAt(a)]=a;function s(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 o,i,a=[],s=t;s>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},240:(e,t,r)=>{"use strict";var n=r(764).lW;var o=r(518);function i(e,t){return void 0===t&&(t="utf8"),n.isBuffer(e)?s(e.toString("base64")):s(n.from(e,t).toString("base64"))}function a(e){return e=e.toString(),o.default(e).replace(/\-/g,"+").replace(/_/g,"/")}function s(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}var l=i;l.encode=i,l.decode=function(e,t){return void 0===t&&(t="utf8"),n.from(a(e),"base64").toString(t)},l.toBase64=a,l.fromBase64=s,l.toBuffer=function(e){return n.from(a(e),"base64")},t.default=l},518:(e,t,r)=>{"use strict";var n=r(764).lW;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.length,r=t%4;if(!r)return e;var o=t,i=4-r,a=t+i,s=n.alloc(a);for(s.write(e);i--;)s.write("=",o++);return s.toString()}},772:(e,t,r)=>{e.exports=r(240).default,e.exports.default=e.exports},764:(e,t,r)=>{"use strict";const n=r(742),o=r(645),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.lW=l,t.h2=50;const a=2147483647;function s(e){if(e>a)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 p(e)}return u(e,t,r)}function u(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|g(e,t);let n=s(r);const o=n.write(e,t);o!==r&&(n=n.slice(0,o));return n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(J(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(J(e,ArrayBuffer)||e&&J(e.buffer,ArrayBuffer))return h(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(J(e,SharedArrayBuffer)||e&&J(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 o=function(e){if(l.isBuffer(e)){const t=0|f(e.length),r=s(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)?s(0):d(e);if("Buffer"===e.type&&Array.isArray(e.data))return d(e.data)}(e);if(o)return o;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 c(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 p(e){return c(e),s(e<0?0:0|f(e))}function d(e){const t=e.length<0?0:0|f(e.length),r=s(t);for(let n=0;n=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function g(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||J(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 o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return V(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(o)return n?-1:V(e).length;t=(""+t).toLowerCase(),o=!0}}function m(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 O(this,t,r);case"utf8":case"utf-8":return D(this,t,r);case"ascii":return C(this,t,r);case"latin1":case"binary":return _(this,t,r);case"base64":return S(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function y(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function b(e,t,r,n,o){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=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=l.from(t,n)),l.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):v(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function v(e,t,r,n,o){let i,a=1,s=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;a=2,s/=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){let n=-1;for(i=r;is&&(r=s-l),i=r;i>=0;i--){let r=!0;for(let n=0;no&&(n=o):n=o;const i=t.length;let a;for(n>i/2&&(n=i/2),a=0;a>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function S(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function D(e,t,r){r=Math.min(e.length,r);const n=[];let o=t;for(;o239?4:t>223?3:t>191?2:1;if(o+a<=r){let r,n,s,l;switch(a){case 1:t<128&&(i=t);break;case 2:r=e[o+1],128==(192&r)&&(l=(31&t)<<6|63&r,l>127&&(i=l));break;case 3:r=e[o+1],n=e[o+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[o+1],n=e[o+2],s=e[o+3],128==(192&r)&&128==(192&n)&&128==(192&s)&&(l=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s,l>65535&&l<1114112&&(i=l))}}null===i?(i=65533,a=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i),o+=a}return function(e){const t=e.length;if(t<=$)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(n,o)):Uint8Array.prototype.set.call(n,t,o);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,o)}o+=t.length}return n},l.byteLength=g,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;tr&&(e+=" ... "),""},i&&(l.prototype[i]=l.prototype.inspect),l.prototype.compare=function(e,t,r,n,o){if(J(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===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;let i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0);const s=Math.min(i,a),u=this.slice(n,o),c=e.slice(t,r);for(let e=0;e>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const o=this.length-t;if((void 0===r||r>o)&&(r=o),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 k(this,e,t,r);case"base64":return A(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 $=4096;function C(e,t,r){let n="";r=Math.min(e.length,r);for(let o=t;on)&&(r=n);let o="";for(let n=t;nr)throw new RangeError("Trying to access beyond buffer length")}function T(e,t,r,n,o,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function R(e,t,r,n,o){z(t,n,o,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 a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function B(e,t,r,n,o){z(t,n,o,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 a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function I(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function P(e,t,r,n,i){return t=+t,r>>>=0,i||I(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function L(e,t,r,n,i){return t=+t,r>>>=0,i||I(e,0,r,8),o.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>>=0,t>>>=0,r||j(e,t,this.length);let n=this[e],o=1,i=0;for(;++i>>=0,t>>>=0,r||j(e,t,this.length);let n=this[e+--t],o=1;for(;t>0&&(o*=256);)n+=this[e+--t]*o;return n},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||j(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||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=Q((function(e){q(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,o=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(o)<>>=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],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<>>=0,t>>>=0,r||j(e,t,this.length);let n=this[e],o=1,i=0;for(;++i=o&&(n-=Math.pow(2,8*t)),n},l.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||j(e,t,this.length);let n=t,o=1,i=this[e+--n];for(;n>0&&(o*=256);)i+=this[e+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||j(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||j(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||j(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||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=Q((function(e){q(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)<>>=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)<>>=0,t||j(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||j(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||j(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||j(e,8,this.length),o.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){T(this,e,t,r,Math.pow(2,8*r)-1,0)}let o=1,i=0;for(this[t]=255&e;++i>>=0,r>>>=0,!n){T(this,e,t,r,Math.pow(2,8*r)-1,0)}let o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||T(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||T(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||T(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||T(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||T(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=Q((function(e,t=0){return R(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=Q((function(e,t=0){return B(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);T(this,e,t,r,n-1,-n)}let o=0,i=1,a=0;for(this[t]=255&e;++o>0)-a&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);T(this,e,t,r,n-1,-n)}let o=r-1,i=1,a=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/i>>0)-a&255;return t+r},l.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||T(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||T(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||T(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||T(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||T(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=Q((function(e,t=0){return R(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=Q((function(e,t=0){return B(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(e,t,r){return P(this,e,t,!0,r)},l.prototype.writeFloatBE=function(e,t,r){return P(this,e,t,!1,r)},l.prototype.writeDoubleLE=function(e,t,r){return L(this,e,t,!0,r)},l.prototype.writeDoubleBE=function(e,t,r){return L(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=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>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function z(e,t,r,n,o,i){if(e>r||e3?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 N.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,r){q(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||H(t,e.length-(r+1))}(n,o,i)}function q(e,t){if("number"!=typeof e)throw new N.ERR_INVALID_ARG_TYPE(t,"number",e)}function H(e,t,r){if(Math.floor(e)!==e)throw q(e,r),new N.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new N.ERR_BUFFER_OUT_OF_BOUNDS;throw new N.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}M("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),M("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),M("ERR_OUT_OF_RANGE",(function(e,t,r){let n=`The value of "${e}" is out of range.`,o=r;return Number.isInteger(r)&&Math.abs(r)>2**32?o=U(String(r)):"bigint"==typeof r&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=U(o)),o+="n"),n+=` It must be ${t}. Received ${o}`,n}),RangeError);const W=/[^+/0-9A-Za-z-_]/g;function V(e,t){let r;t=t||1/0;const n=e.length;let o=null;const i=[];for(let a=0;a55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=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(W,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function K(e,t,r,n){let o;for(o=0;o=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function J(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 o=0;o<16;++o)t[n+o]=e[r]+e[o]}return t}();function Q(e){return"undefined"==typeof BigInt?X:e}function X(){throw new Error("BigInt not supported")}},168:(e,t,r)=>{const n=r(515),o={};for(const e of Object.keys(n))o[n[e]]=e;const i={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=i;for(const e of Object.keys(i)){if(!("channels"in i[e]))throw new Error("missing channels property: "+e);if(!("labels"in i[e]))throw new Error("missing channel labels property: "+e);if(i[e].labels.length!==i[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=i[e];delete i[e].channels,delete i[e].labels,Object.defineProperty(i[e],"channels",{value:t}),Object.defineProperty(i[e],"labels",{value:r})}i.rgb.hsl=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=i-o;let s,l;i===o?s=0:t===i?s=(r-n)/a:r===i?s=2+(n-t)/a:n===i&&(s=4+(t-r)/a),s=Math.min(60*s,360),s<0&&(s+=360);const u=(o+i)/2;return l=i===o?0:u<=.5?a/(i+o):a/(2-i-o),[s,100*l,100*u]},i.rgb.hsv=function(e){let t,r,n,o,i;const a=e[0]/255,s=e[1]/255,l=e[2]/255,u=Math.max(a,s,l),c=u-Math.min(a,s,l),p=function(e){return(u-e)/6/c+.5};return 0===c?(o=0,i=0):(i=c/u,t=p(a),r=p(s),n=p(l),a===u?o=n-r:s===u?o=1/3+t-n:l===u&&(o=2/3+r-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*u]},i.rgb.hwb=function(e){const t=e[0],r=e[1];let n=e[2];const o=i.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[o,100*a,100*n]},i.rgb.cmyk=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.min(1-t,1-r,1-n);return[100*((1-t-o)/(1-o)||0),100*((1-r-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*o]},i.rgb.keyword=function(e){const t=o[e];if(t)return t;let r,i=1/0;for(const t of Object.keys(n)){const o=n[t],l=(s=o,((a=e)[0]-s[0])**2+(a[1]-s[1])**2+(a[2]-s[2])**2);l.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;return[100*(.4124*t+.3576*r+.1805*n),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},i.rgb.lab=function(e){const t=i.rgb.xyz(e);let r=t[0],n=t[1],o=t[2];r/=95.047,n/=100,o/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;return[116*n-16,500*(r-n),200*(n-o)]},i.hsl.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;let o,i,a;if(0===r)return a=255*n,[a,a,a];o=n<.5?n*(1+r):n+r-n*r;const s=2*n-o,l=[0,0,0];for(let e=0;e<3;e++)i=t+1/3*-(e-1),i<0&&i++,i>1&&i--,a=6*i<1?s+6*(o-s)*i:2*i<1?o:3*i<2?s+(o-s)*(2/3-i)*6:s,l[e]=255*a;return l},i.hsl.hsv=function(e){const t=e[0];let r=e[1]/100,n=e[2]/100,o=r;const i=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,o*=i<=1?i:2-i;return[t,100*(0===n?2*o/(i+o):2*r/(n+r)),100*((n+r)/2)]},i.hsv.rgb=function(e){const t=e[0]/60,r=e[1]/100;let n=e[2]/100;const o=Math.floor(t)%6,i=t-Math.floor(t),a=255*n*(1-r),s=255*n*(1-r*i),l=255*n*(1-r*(1-i));switch(n*=255,o){case 0:return[n,l,a];case 1:return[s,n,a];case 2:return[a,n,l];case 3:return[a,s,n];case 4:return[l,a,n];case 5:return[n,a,s]}},i.hsv.hsl=function(e){const t=e[0],r=e[1]/100,n=e[2]/100,o=Math.max(n,.01);let i,a;a=(2-r)*n;const s=(2-r)*o;return i=r*o,i/=s<=1?s:2-s,i=i||0,a/=2,[t,100*i,100*a]},i.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100,n=e[2]/100;const o=r+n;let i;o>1&&(r/=o,n/=o);const a=Math.floor(6*t),s=1-n;i=6*t-a,0!=(1&a)&&(i=1-i);const l=r+i*(s-r);let u,c,p;switch(a){default:case 6:case 0:u=s,c=l,p=r;break;case 1:u=l,c=s,p=r;break;case 2:u=r,c=s,p=l;break;case 3:u=r,c=l,p=s;break;case 4:u=l,c=r,p=s;break;case 5:u=s,c=r,p=l}return[255*u,255*c,255*p]},i.cmyk.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o))]},i.xyz.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100;let o,i,a;return o=3.2406*t+-1.5372*r+-.4986*n,i=-.9689*t+1.8758*r+.0415*n,a=.0557*t+-.204*r+1.057*n,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),[255*o,255*i,255*a]},i.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;return[116*r-16,500*(t-r),200*(r-n)]},i.lab.xyz=function(e){let t,r,n;r=(e[0]+16)/116,t=e[1]/500+r,n=r-e[2]/200;const o=r**3,i=t**3,a=n**3;return r=o>.008856?o:(r-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,n=a>.008856?a:(n-16/116)/7.787,t*=95.047,r*=100,n*=108.883,[t,r,n]},i.lab.lch=function(e){const t=e[0],r=e[1],n=e[2];let o;o=360*Math.atan2(n,r)/2/Math.PI,o<0&&(o+=360);return[t,Math.sqrt(r*r+n*n),o]},i.lch.lab=function(e){const t=e[0],r=e[1],n=e[2]/360*2*Math.PI;return[t,r*Math.cos(n),r*Math.sin(n)]},i.rgb.ansi16=function(e,t=null){const[r,n,o]=e;let a=null===t?i.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),0===a)return 30;let s=30+(Math.round(o/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return 2===a&&(s+=60),s},i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])},i.rgb.ansi256=function(e){const t=e[0],r=e[1],n=e[2];if(t===r&&r===n)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;return 16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},i.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},i.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},i.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},i.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];3===t[0].length&&(r=r.split("").map((e=>e+e)).join(""));const n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},i.rgb.hcg=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.max(Math.max(t,r),n),i=Math.min(Math.min(t,r),n),a=o-i;let s,l;return s=a<1?i/(1-a):0,l=a<=0?0:o===t?(r-n)/a%6:o===r?2+(n-t)/a:4+(t-r)/a,l/=6,l%=1,[360*l,100*a,100*s]},i.hsl.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r);let o=0;return n<1&&(o=(r-.5*n)/(1-n)),[e[0],100*n,100*o]},i.hsv.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=t*r;let o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],100*n,100*o]},i.hcg.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;if(0===r)return[255*n,255*n,255*n];const o=[0,0,0],i=t%1*6,a=i%1,s=1-a;let l=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=a,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=a;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=a,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return l=(1-r)*n,[255*(r*o[0]+l),255*(r*o[1]+l),255*(r*o[2]+l)]},i.hcg.hsv=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);let n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},i.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},i.hcg.hwb=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},i.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,n=r-t;let o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],100*n,100*o]},i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},i.gray.hsl=function(e){return[0,0,e[0]]},i.gray.hsv=i.gray.hsl,i.gray.hwb=function(e){return[0,100,e[0]]},i.gray.cmyk=function(e){return[0,0,0,e[0]]},i.gray.lab=function(e){return[e[0],0,0]},i.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},85:(e,t,r)=>{const n=r(168),o=r(111),i={};Object.keys(n).forEach((e=>{i[e]={},Object.defineProperty(i[e],"channels",{value:n[e].channels}),Object.defineProperty(i[e],"labels",{value:n[e].labels});const t=o(e);Object.keys(t).forEach((r=>{const n=t[r];i[e][r]=function(e){const t=function(...t){const r=t[0];if(null==r)return r;r.length>1&&(t=r);const n=e(t);if("object"==typeof n)for(let e=n.length,t=0;t1&&(t=r),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(n)}))})),e.exports=i},111:(e,t,r)=>{const n=r(168);function o(e){const t=function(){const e={},t=Object.keys(n);for(let r=t.length,n=0;n{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},818:(e,t,r)=>{var n=r(515),o=r(851),i=Object.hasOwnProperty,a=Object.create(null);for(var s in n)i.call(n,s)&&(a[n[s]]=s);var l=e.exports={to:{},get:{}};function u(e,t,r){return Math.min(Math.max(t,e),r)}function c(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}l.get=function(e){var t,r;switch(e.substring(0,3).toLowerCase()){case"hsl":t=l.get.hsl(e),r="hsl";break;case"hwb":t=l.get.hwb(e),r="hwb";break;default:t=l.get.rgb(e),r="rgb"}return t?{model:r,value:t}:null},l.get.rgb=function(e){if(!e)return null;var t,r,o,a=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(o=t[2],t=t[1],r=0;r<3;r++){var s=2*r;a[r]=parseInt(t.slice(s,s+2),16)}o&&(a[3]=parseInt(o,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(o=(t=t[1])[3],r=0;r<3;r++)a[r]=parseInt(t[r]+t[r],16);o&&(a[3]=parseInt(o+o,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(r=0;r<3;r++)a[r]=parseInt(t[r+1],0);t[4]&&(t[5]?a[3]=.01*parseFloat(t[4]):a[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:i.call(n,t[1])?((a=n[t[1]])[3]=1,a):null:null;for(r=0;r<3;r++)a[r]=Math.round(2.55*parseFloat(t[r+1]));t[4]&&(t[5]?a[3]=.01*parseFloat(t[4]):a[3]=parseFloat(t[4]))}for(r=0;r<3;r++)a[r]=u(a[r],0,255);return a[3]=u(a[3],0,1),a},l.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var r=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,u(parseFloat(t[2]),0,100),u(parseFloat(t[3]),0,100),u(isNaN(r)?1:r,0,1)]}return null},l.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var r=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,u(parseFloat(t[2]),0,100),u(parseFloat(t[3]),0,100),u(isNaN(r)?1:r,0,1)]}return null},l.to.hex=function(){var e=o(arguments);return"#"+c(e[0])+c(e[1])+c(e[2])+(e[3]<1?c(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=o(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},l.to.rgb.percent=function(){var e=o(arguments),t=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),n=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+r+"%, "+n+"%)":"rgba("+t+"%, "+r+"%, "+n+"%, "+e[3]+")"},l.to.hsl=function(){var e=o(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},l.to.hwb=function(){var e=o(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},l.to.keyword=function(e){return a[e.slice(0,3)]}},565:(e,t,r)=>{const n=r(818),o=r(85),i=["keyword","gray","hex"],a={};for(const e of Object.keys(o))a[[...o[e].labels].sort().join("")]=e;const s={};function l(e,t){if(!(this instanceof l))return new l(e,t);if(t&&t in i&&(t=null),t&&!(t in o))throw new Error("Unknown model: "+t);let r,u;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof l)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const t=n.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,u=o[this.model].channels,this.color=t.value.slice(0,u),this.valpha="number"==typeof t.value[u]?t.value[u]:1}else if(e.length>0){this.model=t||"rgb",u=o[this.model].channels;const r=Array.prototype.slice.call(e,0,u);this.color=d(r,u),this.valpha="number"==typeof e[u]?e[u]:1}else if("number"==typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;const t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);const n=t.sort().join("");if(!(n in a))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=a[n];const{labels:i}=o[this.model],s=[];for(r=0;r(e%360+360)%360)),saturationl:c("hsl",1,p(100)),lightness:c("hsl",2,p(100)),saturationv:c("hsv",1,p(100)),value:c("hsv",2,p(100)),chroma:c("hcg",1,p(100)),gray:c("hcg",2,p(100)),white:c("hwb",1,p(100)),wblack:c("hwb",2,p(100)),cyan:c("cmyk",0,p(100)),magenta:c("cmyk",1,p(100)),yellow:c("cmyk",2,p(100)),black:c("cmyk",3,p(100)),x:c("xyz",0,p(95.047)),y:c("xyz",1,p(100)),z:c("xyz",2,p(108.833)),l:c("lab",0,p(100)),a:c("lab",1),b:c("lab",2),keyword(e){return void 0!==e?new l(e):o[this.model].keyword(this.color)},hex(e){return void 0!==e?new l(e):n.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new l(e);const t=this.rgb().round().color;let r=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===r.length&&(r="0"+r),n.to.hex(t)+r},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,t=[];for(const[r,n]of e.entries()){const e=n/255;t[r]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return l.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let r=t.color[0];return r=(r+e)%360,r=r<0?360+r:r,t.color[0]=r,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const r=e.rgb(),n=this.rgb(),o=void 0===t?.5:t,i=2*o-1,a=r.alpha()-n.alpha(),s=((i*a==-1?i:(i+a)/(1+i*a))+1)/2,u=1-s;return l.rgb(s*r.red()+u*n.red(),s*r.green()+u*n.green(),s*r.blue()+u*n.blue(),r.alpha()*o+n.alpha()*(1-o))}};for(const e of Object.keys(o)){if(i.includes(e))continue;const{channels:t}=o[e];l.prototype[e]=function(...t){return this.model===e?new l(this):t.length>0?new l(t,e):new l([...(r=o[this.model][e].raw(this.color),Array.isArray(r)?r:[r]),this.valpha],e);var r},l[e]=function(...r){let n=r[0];return"number"==typeof n&&(n=d(r,t)),new l(n,e)}}function u(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function c(e,t,r){e=Array.isArray(e)?e:[e];for(const n of e)(s[n]||(s[n]=[]))[t]=r;return e=e[0],function(n){let o;return void 0!==n?(r&&(n=r(n)),o=this[e](),o.color[t]=n,o):(o=this[e]().color[t],r&&(o=r(o)),o)}}function p(e){return function(t){return Math.max(0,Math.min(e,t))}}function d(e,t){for(let r=0;r{"use strict";class t{constructor(e,t){this.low=e,this.high=t,this.length=1+t-e}overlaps(e){return!(this.highe.high)}touches(e){return!(this.high+1e.high)}add(e){return new t(Math.min(this.low,e.low),Math.max(this.high,e.high))}subtract(e){return e.low<=this.low&&e.high>=this.high?[]:e.low>this.low&&e.highe+t.length),0)}add(e,n){var o=e=>{for(var t=0;t{for(var t=0;t{for(var r=0;r{for(var r=t.low;r<=t.high;)e.push(r),r++;return e}),[])}subranges(){return this.ranges.map((e=>({low:e.low,high:e.high,length:1+e.high-e.low})))}}e.exports=r},645:(e,t)=>{t.read=function(e,t,r,n,o){var i,a,s=8*o-n-1,l=(1<>1,c=-7,p=r?o-1:0,d=r?-1:1,h=e[t+p];for(p+=d,i=h&(1<<-c)-1,h>>=-c,c+=s;c>0;i=256*i+e[t+p],p+=d,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=n;c>0;a=256*a+e[t+p],p+=d,c-=8);if(0===i)i=1-u;else{if(i===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),i-=u}return(h?-1:1)*a*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var a,s,l,u=8*i-o-1,c=(1<>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,f=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+p>=1?d/l:d*Math.pow(2,1-p))*l>=2&&(a++,l/=2),a+p>=c?(s=0,a=c):a+p>=1?(s=(t*l-1)*Math.pow(2,o),a+=p):(s=t*Math.pow(2,p-1)*Math.pow(2,o),a=0));o>=8;e[r+h]=255&s,h+=f,s/=256,o-=8);for(a=a<0;e[r+h]=255&a,h+=f,a/=256,u-=8);e[r+h-f]|=128*g}},171:e=>{e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},142:function(e){e.exports=function(){"use strict";function e(e,t){return e(t={exports:{}},t.exports),t.exports}var t=e((function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)})),r=e((function(e){var t=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=t)})),n=(r.version,function(e){return"object"==typeof e?null!==e:"function"==typeof e}),o=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e},i=function(e){try{return!!e()}catch(e){return!0}},a=!i((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),s=t.document,l=n(s)&&n(s.createElement),u=function(e){return l?s.createElement(e):{}},c=!a&&!i((function(){return 7!=Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a})),p=function(e,t){if(!n(e))return e;var r,o;if(t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;if("function"==typeof(r=e.valueOf)&&!n(o=r.call(e)))return o;if(!t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;throw TypeError("Can't convert object to primitive value")},d=Object.defineProperty,h={f:a?Object.defineProperty:function(e,t,r){if(o(e),t=p(t,!0),o(r),c)try{return d(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},f=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},g=a?function(e,t,r){return h.f(e,t,f(1,r))}:function(e,t,r){return e[t]=r,e},m={}.hasOwnProperty,y=function(e,t){return m.call(e,t)},b=0,v=Math.random(),x=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++b+v).toString(36))},w=!1,k=e((function(e){var n="__core-js_shared__",o=t[n]||(t[n]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:w?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),A=k("native-function-to-string",Function.toString),E=e((function(e){var n=x("src"),o="toString",i=(""+A).split(o);r.inspectSource=function(e){return A.call(e)},(e.exports=function(e,r,o,a){var s="function"==typeof o;s&&(y(o,"name")||g(o,"name",r)),e[r]!==o&&(s&&(y(o,n)||g(o,n,e[r]?""+e[r]:i.join(String(r)))),e===t?e[r]=o:a?e[r]?e[r]=o:g(e,r,o):(delete e[r],g(e,r,o)))})(Function.prototype,o,(function(){return"function"==typeof this&&this[n]||A.call(this)}))})),S=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},D=function(e,t,r){if(S(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}},$="prototype",C=function(e,n,o){var i,a,s,l,u=e&C.F,c=e&C.G,p=e&C.S,d=e&C.P,h=e&C.B,f=c?t:p?t[n]||(t[n]={}):(t[n]||{})[$],m=c?r:r[n]||(r[n]={}),y=m[$]||(m[$]={});for(i in c&&(o=n),o)s=((a=!u&&f&&void 0!==f[i])?f:o)[i],l=h&&a?D(s,t):d&&"function"==typeof s?D(Function.call,s):s,f&&E(f,i,s,e&C.U),m[i]!=s&&g(m,i,l),d&&y[i]!=s&&(y[i]=s)};t.core=r,C.F=1,C.G=2,C.S=4,C.P=8,C.B=16,C.W=32,C.U=64,C.R=128;var _,O=C,F=Math.ceil,j=Math.floor,T=function(e){return isNaN(e=+e)?0:(e>0?j:F)(e)},R=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},B=(_=!1,function(e,t){var r,n,o=String(R(e)),i=T(t),a=o.length;return i<0||i>=a?_?"":void 0:(r=o.charCodeAt(i))<55296||r>56319||i+1===a||(n=o.charCodeAt(i+1))<56320||n>57343?_?o.charAt(i):r:_?o.slice(i,i+2):n-56320+(r-55296<<10)+65536});O(O.P,"String",{codePointAt:function(e){return B(this,e)}}),r.String.codePointAt;var I=Math.max,P=Math.min,L=function(e,t){return(e=T(e))<0?I(e+t,0):P(e,t)},N=String.fromCharCode,M=String.fromCodePoint;O(O.S+O.F*(!!M&&1!=M.length),"String",{fromCodePoint:function(e){for(var t,r=arguments,n=[],o=arguments.length,i=0;o>i;){if(t=+r[i++],L(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?N(t):N(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}}),r.String.fromCodePoint;var U,z,q,H,W,V,G,K,J,Y,Z,Q,X,ee,te={Space_Separator:/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,ID_Start:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,ID_Continue:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},re={isSpaceSeparator:function(e){return"string"==typeof e&&te.Space_Separator.test(e)},isIdStartChar:function(e){return"string"==typeof e&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||"$"===e||"_"===e||te.ID_Start.test(e))},isIdContinueChar:function(e){return"string"==typeof e&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"$"===e||"_"===e||""===e||""===e||te.ID_Continue.test(e))},isDigit:function(e){return"string"==typeof e&&/[0-9]/.test(e)},isHexDigit:function(e){return"string"==typeof e&&/[0-9A-Fa-f]/.test(e)}},ne=function(e,t){U=String(e),z="start",q=[],H=0,W=1,V=0,G=void 0,K=void 0,J=void 0;do{G=ie(),fe[z]()}while("eof"!==G.type);return"function"==typeof t?oe({"":J},"",t):J};function oe(e,t,r){var n=e[t];if(null!=n&&"object"==typeof n)if(Array.isArray(n))for(var o=0;o0;){var r=ae();if(!re.isHexDigit(r))throw ye(se());e+=se()}return String.fromCodePoint(parseInt(e,16))}var fe={start:function(){if("eof"===G.type)throw be();ge()},beforePropertyName:function(){switch(G.type){case"identifier":case"string":return K=G.value,void(z="afterPropertyName");case"punctuator":return void me();case"eof":throw be()}},afterPropertyName:function(){if("eof"===G.type)throw be();z="beforePropertyValue"},beforePropertyValue:function(){if("eof"===G.type)throw be();ge()},beforeArrayValue:function(){if("eof"===G.type)throw be();"punctuator"!==G.type||"]"!==G.value?ge():me()},afterPropertyValue:function(){if("eof"===G.type)throw be();switch(G.value){case",":return void(z="beforePropertyName");case"}":me()}},afterArrayValue:function(){if("eof"===G.type)throw be();switch(G.value){case",":return void(z="beforeArrayValue");case"]":me()}},end:function(){}};function ge(){var e;switch(G.type){case"punctuator":switch(G.value){case"{":e={};break;case"[":e=[]}break;case"null":case"boolean":case"numeric":case"string":e=G.value}if(void 0===J)J=e;else{var t=q[q.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,K,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(null!==e&&"object"==typeof e)q.push(e),z=Array.isArray(e)?"beforeArrayValue":"beforePropertyName";else{var r=q[q.length-1];z=null==r?"end":Array.isArray(r)?"afterArrayValue":"afterPropertyValue"}}function me(){q.pop();var e=q[q.length-1];z=null==e?"end":Array.isArray(e)?"afterArrayValue":"afterPropertyValue"}function ye(e){return ke(void 0===e?"JSON5: invalid end of input at "+W+":"+V:"JSON5: invalid character '"+we(e)+"' at "+W+":"+V)}function be(){return ke("JSON5: invalid end of input at "+W+":"+V)}function ve(){return ke("JSON5: invalid identifier character at "+W+":"+(V-=5))}function xe(e){console.warn("JSON5: '"+we(e)+"' in strings is not valid ECMAScript; consider escaping")}function we(e){var t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){var r=e.charCodeAt(0).toString(16);return"\\x"+("00"+r).substring(r.length)}return e}function ke(e){var t=new SyntaxError(e);return t.lineNumber=W,t.columnNumber=V,t}return{parse:ne,stringify:function(e,t,r){var n,o,i,a=[],s="",l="";if(null==t||"object"!=typeof t||Array.isArray(t)||(r=t.space,i=t.quote,t=t.replacer),"function"==typeof t)o=t;else if(Array.isArray(t)){n=[];for(var u=0,c=t;u0&&(r=Math.min(10,Math.floor(r)),l=" ".substr(0,r)):"string"==typeof r&&(l=r.substr(0,10)),h("",{"":e});function h(e,t){var r=t[e];switch(null!=r&&("function"==typeof r.toJSON5?r=r.toJSON5(e):"function"==typeof r.toJSON&&(r=r.toJSON(e))),o&&(r=o.call(t,e,r)),r instanceof Number?r=Number(r):r instanceof String?r=String(r):r instanceof Boolean&&(r=r.valueOf()),r){case null:return"null";case!0:return"true";case!1:return"false"}return"string"==typeof r?f(r,!1):"number"==typeof r?String(r):"object"==typeof r?Array.isArray(r)?y(r):g(r):void 0}function f(e){for(var t={"'":.1,'"':.2},r={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},n="",o=0;o=0)throw TypeError("Converting circular structure to JSON5");a.push(e);var t=s;s+=l;for(var r,o,i=[],u=0,c=n||Object.keys(e);u=0)throw TypeError("Converting circular structure to JSON5");a.push(e);var t=s;s+=l;for(var r,n=[],o=0;o{e=r.nmd(e);var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Boolean]",s="[object Date]",l="[object Function]",u="[object GeneratorFunction]",c="[object Map]",p="[object Number]",d="[object Object]",h="[object Promise]",f="[object RegExp]",g="[object Set]",m="[object String]",y="[object Symbol]",b="[object WeakMap]",v="[object ArrayBuffer]",x="[object DataView]",w="[object Float32Array]",k="[object Float64Array]",A="[object Int8Array]",E="[object Int16Array]",S="[object Int32Array]",D="[object Uint8Array]",$="[object Uint8ClampedArray]",C="[object Uint16Array]",_="[object Uint32Array]",O=/\w*$/,F=/^\[object .+?Constructor\]$/,j=/^(?:0|[1-9]\d*)$/,T={};T[i]=T["[object Array]"]=T[v]=T[x]=T[a]=T[s]=T[w]=T[k]=T[A]=T[E]=T[S]=T[c]=T[p]=T[d]=T[f]=T[g]=T[m]=T[y]=T[D]=T[$]=T[C]=T[_]=!0,T["[object Error]"]=T[l]=T[b]=!1;var R="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,B="object"==typeof self&&self&&self.Object===Object&&self,I=R||B||Function("return this")(),P=t&&!t.nodeType&&t,L=P&&e&&!e.nodeType&&e,N=L&&L.exports===P;function M(e,t){return e.set(t[0],t[1]),e}function U(e,t){return e.add(t),e}function z(e,t,r,n){var o=-1,i=e?e.length:0;for(n&&i&&(r=e[++o]);++o-1},$e.prototype.set=function(e,t){var r=this.__data__,n=je(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},Ce.prototype.clear=function(){this.__data__={hash:new De,map:new(fe||$e),string:new De}},Ce.prototype.delete=function(e){return Pe(this,e).delete(e)},Ce.prototype.get=function(e){return Pe(this,e).get(e)},Ce.prototype.has=function(e){return Pe(this,e).has(e)},Ce.prototype.set=function(e,t){return Pe(this,e).set(e,t),this},_e.prototype.clear=function(){this.__data__=new $e},_e.prototype.delete=function(e){return this.__data__.delete(e)},_e.prototype.get=function(e){return this.__data__.get(e)},_e.prototype.has=function(e){return this.__data__.has(e)},_e.prototype.set=function(e,t){var r=this.__data__;if(r instanceof $e){var n=r.__data__;if(!fe||n.length<199)return n.push([e,t]),this;r=this.__data__=new Ce(n)}return r.set(e,t),this};var Ne=ce?W(ce,Object):function(){return[]},Me=function(e){return te.call(e)};function Ue(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||j.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=o}(e.length)&&!Ke(e)}var Ge=pe||function(){return!1};function Ke(e){var t=Je(e)?te.call(e):"";return t==l||t==u}function Je(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ye(e){return Ve(e)?Oe(e):function(e){if(!ze(e))return de(e);var t=[];for(var r in Object(e))ee.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)}e.exports=function(e){return Te(e,!0,!0)}},378:(e,t,r)=>{e=r.nmd(e);var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object AsyncFunction]",s="[object Function]",l="[object GeneratorFunction]",u="[object Null]",c="[object Object]",p="[object Proxy]",d="[object Undefined]",h=/^\[object .+?Constructor\]$/,f=/^(?:0|[1-9]\d*)$/,g={};g["[object Float32Array]"]=g["[object Float64Array]"]=g["[object Int8Array]"]=g["[object Int16Array]"]=g["[object Int32Array]"]=g["[object Uint8Array]"]=g["[object Uint8ClampedArray]"]=g["[object Uint16Array]"]=g["[object Uint32Array]"]=!0,g[i]=g["[object Array]"]=g["[object ArrayBuffer]"]=g["[object Boolean]"]=g["[object DataView]"]=g["[object Date]"]=g["[object Error]"]=g[s]=g["[object Map]"]=g["[object Number]"]=g[c]=g["[object RegExp]"]=g["[object Set]"]=g["[object String]"]=g["[object WeakMap]"]=!1;var m="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,y="object"==typeof self&&self&&self.Object===Object&&self,b=m||y||Function("return this")(),v=t&&!t.nodeType&&t,x=v&&e&&!e.nodeType&&e,w=x&&x.exports===v,k=w&&m.process,A=function(){try{var e=x&&x.require&&x.require("util").types;return e||k&&k.binding&&k.binding("util")}catch(e){}}(),E=A&&A.isTypedArray;var S,D,$,C=Array.prototype,_=Function.prototype,O=Object.prototype,F=b["__core-js_shared__"],j=_.toString,T=O.hasOwnProperty,R=(S=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||""))?"Symbol(src)_1."+S:"",B=O.toString,I=j.call(Object),P=RegExp("^"+j.call(T).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),L=w?b.Buffer:void 0,N=b.Symbol,M=b.Uint8Array,U=L?L.allocUnsafe:void 0,z=(D=Object.getPrototypeOf,$=Object,function(e){return D($(e))}),q=Object.create,H=O.propertyIsEnumerable,W=C.splice,V=N?N.toStringTag:void 0,G=function(){try{var e=ve(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),K=L?L.isBuffer:void 0,J=Math.max,Y=Date.now,Z=ve(b,"Map"),Q=ve(Object,"create"),X=function(){function e(){}return function(t){if(!Fe(t))return{};if(q)return q(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function ee(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1},te.prototype.set=function(e,t){var r=this.__data__,n=se(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},re.prototype.clear=function(){this.size=0,this.__data__={hash:new ee,map:new(Z||te),string:new ee}},re.prototype.delete=function(e){var t=be(this,e).delete(e);return this.size-=t?1:0,t},re.prototype.get=function(e){return be(this,e).get(e)},re.prototype.has=function(e){return be(this,e).has(e)},re.prototype.set=function(e,t){var r=be(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},ne.prototype.clear=function(){this.__data__=new te,this.size=0},ne.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},ne.prototype.get=function(e){return this.__data__.get(e)},ne.prototype.has=function(e){return this.__data__.has(e)},ne.prototype.set=function(e,t){var r=this.__data__;if(r instanceof te){var n=r.__data__;if(!Z||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new re(n)}return r.set(e,t),this.size=r.size,this};var ue,ce=function(e,t,r){for(var n=-1,o=Object(e),i=r(e),a=i.length;a--;){var s=i[ue?a:++n];if(!1===t(o[s],s,o))break}return e};function pe(e){return null==e?void 0===e?d:u:V&&V in Object(e)?function(e){var t=T.call(e,V),r=e[V];try{e[V]=void 0;var n=!0}catch(e){}var o=B.call(e);n&&(t?e[V]=r:delete e[V]);return o}(e):function(e){return B.call(e)}(e)}function de(e){return je(e)&&pe(e)==i}function he(e){return!(!Fe(e)||function(e){return!!R&&R in e}(e))&&(_e(e)?P:h).test(function(e){if(null!=e){try{return j.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function fe(e){if(!Fe(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=we(e),r=[];for(var n in e)("constructor"!=n||!t&&T.call(e,n))&&r.push(n);return r}function ge(e,t,r,n,o){e!==t&&ce(t,(function(i,a){if(o||(o=new ne),Fe(i))!function(e,t,r,n,o,i,a){var s=ke(e,r),l=ke(t,r),u=a.get(l);if(u)return void ie(e,r,u);var p=i?i(s,l,r+"",e,t,a):void 0,d=void 0===p;if(d){var h=De(l),f=!h&&Ce(l),g=!h&&!f&&Te(l);p=l,h||f||g?De(s)?p=s:je(x=s)&&$e(x)?p=function(e,t){var r=-1,n=e.length;t||(t=Array(n));for(;++r-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ye);function Ee(e,t){return e===t||e!=e&&t!=t}var Se=de(function(){return arguments}())?de:function(e){return je(e)&&T.call(e,"callee")&&!H.call(e,"callee")},De=Array.isArray;function $e(e){return null!=e&&Oe(e.length)&&!_e(e)}var Ce=K||function(){return!1};function _e(e){if(!Fe(e))return!1;var t=pe(e);return t==s||t==l||t==a||t==p}function Oe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function Fe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function je(e){return null!=e&&"object"==typeof e}var Te=E?function(e){return function(t){return e(t)}}(E):function(e){return je(e)&&Oe(e.length)&&!!g[pe(e)]};function Re(e){return $e(e)?oe(e,!0):fe(e)}var Be,Ie=(Be=function(e,t,r){ge(e,t,r)},me((function(e,t){var r=-1,n=t.length,o=n>1?t[n-1]:void 0,i=n>2?t[2]:void 0;for(o=Be.length>3&&"function"==typeof o?(n--,o):void 0,i&&function(e,t,r){if(!Fe(r))return!1;var n=typeof t;return!!("number"==n?$e(r)&&xe(t,r.length):"string"==n&&t in r)&&Ee(r[t],e)}(t[0],t[1],i)&&(o=n<3?void 0:o,n=1),e=Object(e);++r(()=>{var e={8575:(e,t,r)=>{"use strict";const n=r(8316);e.exports=function(e){let t,r,o,i;return"function"==typeof(e=Array.prototype.slice.call(e))[e.length-1]&&(i=e.pop()),"string"==typeof e[0]?(t=e[0],"object"==typeof e[2]?(r=e[1],o=e[2]):(r=void 0,o=e[1])):(t="",r=e[0],o=e[1]),o instanceof n||(o=new n(o)),{path:t,schema:r,options:o,callback:i}}},8316:(e,t,r)=>{"use strict";const n=r(9324),o=r(8015),i=r(4844),a=r(4486),s=r(9571),l=r(6796);function u(e){c(this,u.defaults),c(this,e)}function c(e,t){if(p(t)){let r=Object.keys(t);for(let n=0;n!1}}},3265:(e,t,r)=>{"use strict";var n=r(5851).Buffer;const{ono:o}=r(9978),i=r(6930),a=r(6250),{ResolverError:s,ParserError:l,UnmatchedParserError:u,UnmatchedResolverError:c,isHandledError:p}=r(5554);e.exports=async function(e,t,r){e=i.stripHash(e);let d=t._add(e),h={url:e,extension:i.getExtension(e)};try{const e=await function(e,t,r){return new Promise(((n,i)=>{let l=a.all(t.resolve);function u(r){!r&&t.continueOnError?i(new c(e.url)):r&&"error"in r?r.error instanceof s?i(r.error):i(new s(r,e.url)):i(o.syntax(`Unable to resolve $ref pointer "${e.url}"`))}l=a.filter(l,"canRead",e),a.sort(l),a.run(l,"read",e,r).then(n,u)}))}(h,r,t);d.pathType=e.plugin.name,h.data=e.result;const i=await function(e,t,r){return new Promise(((i,s)=>{let c=a.all(t.parse),p=a.filter(c,"canParse",e),d=p.length>0?p:c;function h(t){var r;!t.plugin.allowEmpty&&(void 0===(r=t.result)||"object"==typeof r&&0===Object.keys(r).length||"string"==typeof r&&0===r.trim().length||n.isBuffer(r)&&0===r.length)?s(o.syntax(`Error parsing "${e.url}" as ${t.plugin.name}. \nParsed value is empty`)):i(t)}function f(r){!r&&t.continueOnError?s(new u(e.url)):r&&"error"in r?r.error instanceof l?s(r.error):s(new l(r.error.message,e.url)):s(o.syntax(`Unable to parse ${e.url}`))}a.sort(d),a.run(d,"parse",e,r).then(h,f)}))}(h,r,t);return d.value=i.result,i.result}catch(e){throw p(e)&&(d.value=e),e}}},4486:(e,t,r)=>{"use strict";var n=r(5851).Buffer;let o=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;e.exports={order:400,allowEmpty:!0,canParse:e=>n.isBuffer(e.data)&&o.test(e.url),parse:e=>n.isBuffer(e.data)?e.data:n.from(e.data)}},9324:(e,t,r)=>{"use strict";var n=r(5851).Buffer;const{ParserError:o}=r(5554);e.exports={order:100,allowEmpty:!0,canParse:".json",async parse(e){let t=e.data;if(n.isBuffer(t)&&(t=t.toString()),"string"!=typeof t)return t;if(0!==t.trim().length)try{return JSON.parse(t)}catch(t){throw new o(t.message,e.url)}}}},4844:(e,t,r)=>{"use strict";var n=r(5851).Buffer;const{ParserError:o}=r(5554);let i=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;e.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse:e=>("string"==typeof e.data||n.isBuffer(e.data))&&i.test(e.url),parse(e){if("string"==typeof e.data)return e.data;if(n.isBuffer(e.data))return e.data.toString(this.encoding);throw new o("data is not text",e.url)}}},8015:(e,t,r)=>{"use strict";var n=r(5851).Buffer;const{ParserError:o}=r(5554),i=r(7949),{JSON_SCHEMA:a}=r(7949);e.exports={order:200,allowEmpty:!0,canParse:[".yaml",".yml",".json"],async parse(e){let t=e.data;if(n.isBuffer(t)&&(t=t.toString()),"string"!=typeof t)return t;try{return i.load(t,{schema:a})}catch(t){throw new o(t.message,e.url)}}}},5860:(e,t,r)=>{"use strict";e.exports=h;const n=r(6654),o=r(6930),{JSONParserError:i,InvalidPointerError:a,MissingPointerError:s,isHandledError:l}=r(5554),u=/\//g,c=/~/g,p=/~1/g,d=/~0/g;function h(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}function f(e,t){if(n.isAllowed$Ref(e.value,t)){let r=o.resolve(e.path,e.value.$ref);if(r!==e.path){let o=e.$ref.$refs._resolve(r,e.path,t);return null!==o&&(e.indirections+=o.indirections+1,n.isExtended$Ref(e.value)?(e.value=n.dereference(e.value,o.value),!1):(e.$ref=o.$ref,e.path=o.path,e.value=o.value,!0))}e.circular=!0}}function g(e,t,r){if(!e.value||"object"!=typeof e.value)throw new i(`Error assigning $ref pointer "${e.path}". \nCannot set "${t}" of a non-object.`);return"-"===t&&Array.isArray(e.value)?e.value.push(r):e.value[t]=r,r}function m(e){if(l(e))throw e;return e}h.prototype.resolve=function(e,t,r){let n=h.parse(this.path,this.originalPath);this.value=m(e);for(let e=0;e{"use strict";e.exports=c;const n=r(5860),{InvalidPointerError:o,isHandledError:i,normalizeError:a}=r(5554),{safePointerToPath:s,stripHash:l,getHash:u}=r(6930);function c(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0,this.errors=void 0}c.prototype.addError=function(e){void 0===this.errors&&(this.errors=[]);const t=this.errors.map((({footprint:e})=>e));Array.isArray(e.errors)?this.errors.push(...e.errors.map(a).filter((({footprint:e})=>!t.includes(e)))):t.includes(e.footprint)||this.errors.push(a(e))},c.prototype.exists=function(e,t){try{return this.resolve(e,t),!0}catch(e){return!1}},c.prototype.get=function(e,t){return this.resolve(e,t).value},c.prototype.resolve=function(e,t,r,a){let c=new n(this,e,r);try{return c.resolve(this.value,t,a)}catch(e){if(!t||!t.continueOnError||!i(e))throw e;return null===e.path&&(e.path=s(u(a))),e instanceof o&&(e.source=decodeURI(l(a))),this.addError(e),null}},c.prototype.set=function(e,t){let r=new n(this,e);this.value=r.set(this.value,t)},c.is$Ref=function(e){return e&&"object"==typeof e&&"string"==typeof e.$ref&&e.$ref.length>0},c.isExternal$Ref=function(e){return c.is$Ref(e)&&"#"!==e.$ref[0]},c.isAllowed$Ref=function(e,t){if(c.is$Ref(e)){if("#/"===e.$ref.substr(0,2)||"#"===e.$ref)return!0;if("#"!==e.$ref[0]&&(!t||t.resolve.external))return!0}},c.isExtended$Ref=function(e){return c.is$Ref(e)&&Object.keys(e).length>1},c.dereference=function(e,t){if(t&&"object"==typeof t&&c.isExtended$Ref(e)){let r={};for(let t of Object.keys(e))"$ref"!==t&&(r[t]=e[t]);for(let e of Object.keys(t))e in r||(r[e]=t[e]);return r}return t}},8031:(e,t,r)=>{"use strict";const{ono:n}=r(9978),o=r(6654),i=r(6930);function a(){this.circular=!1,this._$refs={},this._root$Ref=null}function s(e,t){let r=Object.keys(e);return(t=Array.isArray(t[0])?t[0]:Array.prototype.slice.call(t)).length>0&&t[0]&&(r=r.filter((r=>-1!==t.indexOf(e[r].pathType)))),r.map((t=>({encoded:t,decoded:"file"===e[t].pathType?i.toFileSystemPath(t,!0):t})))}e.exports=a,a.prototype.paths=function(e){return s(this._$refs,arguments).map((e=>e.decoded))},a.prototype.values=function(e){let t=this._$refs;return s(t,arguments).reduce(((e,r)=>(e[r.decoded]=t[r.encoded].value,e)),{})},a.prototype.toJSON=a.prototype.values,a.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch(e){return!1}},a.prototype.get=function(e,t){return this._resolve(e,"",t).value},a.prototype.set=function(e,t){let r=i.resolve(this._root$Ref.path,e),o=i.stripHash(r),a=this._$refs[o];if(!a)throw n(`Error resolving $ref pointer "${e}". \n"${o}" not found.`);a.set(r,t)},a.prototype._add=function(e){let t=i.stripHash(e),r=new o;return r.path=t,r.$refs=this,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r},a.prototype._resolve=function(e,t,r){let o=i.resolve(this._root$Ref.path,e),a=i.stripHash(o),s=this._$refs[a];if(!s)throw n(`Error resolving $ref pointer "${e}". \n"${a}" not found.`);return s.resolve(o,r,e,t)},a.prototype._get$Ref=function(e){e=i.resolve(this._root$Ref.path,e);let t=i.stripHash(e);return this._$refs[t]}},3747:(e,t,r)=>{"use strict";const n=r(6654),o=r(5860),i=r(3265),a=r(6930),{isHandledError:s}=r(5554);function l(e,t,r,i,a){a=a||new Set;let s=[];if(e&&"object"==typeof e&&!ArrayBuffer.isView(e)&&!a.has(e))if(a.add(e),n.isExternal$Ref(e))s.push(u(e,t,r,i));else for(let c of Object.keys(e)){let p=o.join(t,c),d=e[c];n.isExternal$Ref(d)?s.push(u(d,p,r,i)):s=s.concat(l(d,p,r,i,a))}return s}async function u(e,t,r,n){let o=a.resolve(t,e.$ref),u=a.stripHash(o);if(e=r._$refs[u])return Promise.resolve(e.value);try{let e=l(await i(o,r,n),u+"#",r,n);return Promise.all(e)}catch(e){if(!n.continueOnError||!s(e))throw e;return r._$refs[u]&&(e.source=decodeURI(a.stripHash(t)),e.path=a.safePointerToPath(a.getHash(t))),[]}}e.exports=function(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=l(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(e){return Promise.reject(e)}}},9571:(e,t,r)=>{"use strict";const n=r(3471),{ono:o}=r(9978),i=r(6930),{ResolverError:a}=r(5554);e.exports={order:100,canRead:e=>i.isFileSystemPath(e.url),read:e=>new Promise(((t,r)=>{let s;try{s=i.toFileSystemPath(e.url)}catch(t){r(new a(o.uri(t,`Malformed URI: ${e.url}`),e.url))}try{n.readFile(s,((e,n)=>{e?r(new a(o(e,`Error opening file "${s}"`),s)):t(n)}))}catch(e){r(new a(o(e,`Error opening file "${s}"`),s))}}))}},6796:(e,t,r)=>{"use strict";var n=r(2790),o=r(5851).Buffer;const i=r(5262),a=r(9804),{ono:s}=r(9978),l=r(6930),{ResolverError:u}=r(5554);function c(e,t,r){return new Promise(((n,p)=>{e=l.parse(e),(r=r||[]).push(e.href),function(e,t){return new Promise(((r,n)=>{let s=("https:"===e.protocol?a:i).get({hostname:e.hostname,port:e.port,path:e.path,auth:e.auth,protocol:e.protocol,headers:t.headers||{},withCredentials:t.withCredentials});"function"==typeof s.setTimeout&&s.setTimeout(t.timeout),s.on("timeout",(()=>{s.abort()})),s.on("error",n),s.once("response",(e=>{e.body=o.alloc(0),e.on("data",(t=>{e.body=o.concat([e.body,o.from(t)])})),e.on("error",n),e.on("end",(()=>{r(e)}))}))}))}(e,t).then((i=>{if(i.statusCode>=400)throw s({status:i.statusCode},`HTTP ERROR ${i.statusCode}`);if(i.statusCode>=300)if(r.length>t.redirects)p(new u(s({status:i.statusCode},`Error downloading ${r[0]}. \nToo many redirects: \n ${r.join(" \n ")}`)));else{if(!i.headers.location)throw s({status:i.statusCode},`HTTP ${i.statusCode} redirect with no location header`);c(l.resolve(e,i.headers.location),t,r).then(n,p)}else n(i.body||o.alloc(0))})).catch((t=>{p(new u(s(t,`Error downloading ${e.href}`),e.href))}))}))}e.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead:e=>l.isHttp(e.url),read(e){let t=l.parse(e.url);return n.browser&&!t.protocol&&(t.protocol=l.parse(location.href).protocol),c(t,this)}}},5554:(e,t,r)=>{"use strict";const{Ono:n}=r(9978),{stripHash:o,toFileSystemPath:i}=r(6930),a=t.JSONParserError=class extends Error{constructor(e,t){super(),this.code="EUNKNOWN",this.message=e,this.source=t,this.path=null,n.extend(this)}get footprint(){return`${this.path}+${this.source}+${this.code}+${this.message}`}};l(a);const s=t.JSONParserErrorGroup=class e extends Error{constructor(e){super(),this.files=e,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${i(e.$refs._root$Ref.path)}'`,n.extend(this)}static getParserErrors(e){const t=[];for(const r of Object.values(e.$refs._$refs))r.errors&&t.push(...r.errors);return t}get errors(){return e.getParserErrors(this.files)}};function l(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}l(s),l(t.ParserError=class extends a{constructor(e,t){super(`Error parsing ${t}: ${e}`,t),this.code="EPARSER"}}),l(t.UnmatchedParserError=class extends a{constructor(e){super(`Could not find parser for "${e}"`,e),this.code="EUNMATCHEDPARSER"}}),l(t.ResolverError=class extends a{constructor(e,t){super(e.message||`Error reading file "${t}"`,t),this.code="ERESOLVER","code"in e&&(this.ioErrorCode=String(e.code))}}),l(t.UnmatchedResolverError=class extends a{constructor(e){super(`Could not find resolver for "${e}"`,e),this.code="EUNMATCHEDRESOLVER"}}),l(t.MissingPointerError=class extends a{constructor(e,t){super(`Token "${e}" does not exist.`,o(t)),this.code="EMISSINGPOINTER"}}),l(t.InvalidPointerError=class extends a{constructor(e,t){super(`Invalid $ref pointer "${e}". Pointers must begin with "#/"`,o(t)),this.code="EINVALIDPOINTER"}}),t.isHandledError=function(e){return e instanceof a||e instanceof s},t.normalizeError=function(e){return null===e.path&&(e.path=[]),e}},6250:(e,t)=>{"use strict";function r(e,t,r,n,o){let i=e[t];if("function"==typeof i)return i.apply(e,[r,n,o]);if(!n){if(i instanceof RegExp)return i.test(r.url);if("string"==typeof i)return i===r.extension;if(Array.isArray(i))return-1!==i.indexOf(r.extension)}return i}t.all=function(e){return Object.keys(e).filter((t=>"object"==typeof e[t])).map((t=>(e[t].name=t,e[t])))},t.filter=function(e,t,n){return e.filter((e=>!!r(e,t,n)))},t.sort=function(e){for(let t of e)t.order=t.order||Number.MAX_SAFE_INTEGER;return e.sort(((e,t)=>e.order-t.order))},t.run=function(e,t,n,o){let i,a,s=0;return new Promise(((l,u)=>{function c(){if(i=e[s++],!i)return u(a);try{let a=r(i,t,n,p,o);if(a&&"function"==typeof a.then)a.then(d,h);else if(void 0!==a)d(a);else if(s===e.length)throw new Error("No promise has been returned or callback has been called.")}catch(e){h(e)}}function p(e,t){e?h(e):d(t)}function d(e){l({plugin:i,result:e})}function h(e){a={plugin:i,error:e},c()}c()}))}},6930:(e,t,r)=>{"use strict";var n=r(2790);let o=/^win/.test(n.platform),i=/\//g,a=/^(\w{2,}):\/\//i,s=e.exports,l=/~1/g,u=/~0/g,c=[/\?/g,"%3F",/\#/g,"%23"],p=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];t.parse=r(3149).parse,t.resolve=r(3149).resolve,t.cwd=function(){if(n.browser)return location.href;let e=n.cwd(),t=e.slice(-1);return"/"===t||"\\"===t?e:e+"/"},t.getProtocol=function(e){let t=a.exec(e);if(t)return t[1].toLowerCase()},t.getExtension=function(e){let t=e.lastIndexOf(".");return t>=0?s.stripQuery(e.substr(t).toLowerCase()):""},t.stripQuery=function(e){let t=e.indexOf("?");return t>=0&&(e=e.substr(0,t)),e},t.getHash=function(e){let t=e.indexOf("#");return t>=0?e.substr(t):"#"},t.stripHash=function(e){let t=e.indexOf("#");return t>=0&&(e=e.substr(0,t)),e},t.isHttp=function(e){let t=s.getProtocol(e);return"http"===t||"https"===t||void 0===t&&n.browser},t.isFileSystemPath=function(e){if(n.browser)return!1;let t=s.getProtocol(e);return void 0===t||"file"===t},t.fromFileSystemPath=function(e){o&&(e=e.replace(/\\/g,"/")),e=encodeURI(e);for(let t=0;tdecodeURIComponent(e).replace(l,"/").replace(u,"~")))}},5742:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Ono:()=>a});var n=r(3842),o=r(7104),i=r(6795);const a=s;function s(e,t){function r(...r){let{originalError:i,props:a,message:s}=(0,o.normalizeArgs)(r,t),l=new e(s);return(0,n.extendError)(l,i,a)}return t=(0,o.normalizeOptions)(t),r[Symbol.species]=e,r}s.toJSON=function(e){return i.toJSON.call(e)},s.extend=function(e,t,r){return r||t instanceof Error?(0,n.extendError)(e,t,r):t?(0,n.extendError)(e,void 0,t):(0,n.extendError)(e)}},3842:(e,t,r)=>{"use strict";r.r(t),r.d(t,{extendError:()=>s});var n=r(7226),o=r(6442),i=r(6795);const a=["name","message","stack"];function s(e,t,r){let s=e;return function(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");(0,o.isLazyStack)(r)?(0,o.lazyJoinStacks)(r,e,t):(0,o.isWritableStack)(r)&&(e.stack=(0,o.joinStacks)(e,t))}(s,t),t&&"object"==typeof t&&function(e,t){let r=(0,i.getDeepKeys)(t,a),n=e,o=t;for(let e of r)if(void 0===n[e])try{n[e]=o[e]}catch(e){}}(s,t),s.toJSON=i.toJSON,n.addInspectMethod&&(0,n.addInspectMethod)(s),r&&"object"==typeof r&&Object.assign(s,r),s}},9978:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Ono:()=>o.Ono,default:()=>i,ono:()=>n.ono});var n=r(5480),o=r(5742);r(3462),e=r.hmd(e);const i=n.ono;"object"==typeof e.exports&&(e.exports=Object.assign(e.exports.default,e.exports))},7226:(e,t,r)=>{"use strict";r.r(t),r.d(t,{addInspectMethod:()=>o,format:()=>n});const n=!1,o=!1},7104:(e,t,r)=>{"use strict";r.r(t),r.d(t,{normalizeArgs:()=>i,normalizeOptions:()=>o});var n=r(7226);function o(e){return{concatMessages:void 0===(e=e||{}).concatMessages||Boolean(e.concatMessages),format:void 0===e.format?n.format:"function"==typeof e.format&&e.format}}function i(e,t){let r,n,o,i="";return"string"==typeof e[0]?o=e:"string"==typeof e[1]?(e[0]instanceof Error?r=e[0]:n=e[0],o=e.slice(1)):(r=e[0],n=e[1],o=e.slice(2)),o.length>0&&(i=t.format?t.format.apply(void 0,o):o.join(" ")),t.concatMessages&&r&&r.message&&(i+=(i?" \n":"")+r.message),{originalError:r,props:n,message:i}}},5480:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ono:()=>o});var n=r(5742);const o=a;a.error=new n.Ono(Error),a.eval=new n.Ono(EvalError),a.range=new n.Ono(RangeError),a.reference=new n.Ono(ReferenceError),a.syntax=new n.Ono(SyntaxError),a.type=new n.Ono(TypeError),a.uri=new n.Ono(URIError);const i=a;function a(...e){let t=e[0];if("object"==typeof t&&"string"==typeof t.name)for(let r of Object.values(i))if("function"==typeof r&&"ono"===r.name){let n=r[Symbol.species];if(n&&n!==Error&&(t instanceof n||t.name===n.name))return r.apply(void 0,e)}return a.error.apply(void 0,e)}},6442:(e,t,r)=>{"use strict";r.r(t),r.d(t,{isLazyStack:()=>i,isWritableStack:()=>a,joinStacks:()=>s,lazyJoinStacks:()=>l});const n=/\r?\n/,o=/\bono[ @]/;function i(e){return Boolean(e&&e.configurable&&"function"==typeof e.get)}function a(e){return Boolean(!e||e.writable||"function"==typeof e.set)}function s(e,t){let r=u(e.stack),n=t?t.stack:void 0;return r&&n?r+"\n\n"+n:r||n}function l(e,t,r){r?Object.defineProperty(t,"stack",{get:()=>s({stack:e.get.apply(t)},r),enumerable:!1,configurable:!0}):function(e,t){Object.defineProperty(e,"stack",{get:()=>u(t.get.apply(e)),enumerable:!1,configurable:!0})}(t,e)}function u(e){if(e){let t,r=e.split(n);for(let e=0;e0)return r.join("\n")}return e}},6795:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getDeepKeys:()=>s,toJSON:()=>a});const n=["function","symbol","undefined"],o=["constructor","prototype","__proto__"],i=Object.getPrototypeOf({});function a(){let e={},t=this;for(let r of s(t))if("string"==typeof r){let o=t[r],i=typeof o;n.includes(i)||(e[r]=o)}return e}function s(e,t=[]){let r=[];for(;e&&e!==i;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let e of t.concat(o))n.delete(e);return n}},3462:(e,t,r)=>{"use strict";r.r(t),r(3254)},6717:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,i=s(e),a=i[0],l=i[1],u=new o(function(e,t,r){return 3*(t+r)/4-r}(0,a,l)),c=0,p=l>0?a-4:a;for(r=0;r>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===l&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===l&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=16383,s=0,u=n-o;su?u:s+a));return 1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)r[a]=i[a],n[i.charCodeAt(a)]=a;function s(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 o,i,a=[],s=t;s>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},5851:(e,t,r)=>{"use strict";const n=r(6717),o=r(9350),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function s(e){if(e>a)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 p(e)}return u(e,t,r)}function u(e,t,r){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|g(e,t);let n=s(r);const o=n.write(e,t);return o!==r&&(n=n.slice(0,o)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(J(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(J(e,ArrayBuffer)||e&&J(e.buffer,ArrayBuffer))return h(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(J(e,SharedArrayBuffer)||e&&J(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 o=function(e){if(l.isBuffer(e)){const t=0|f(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||Y(e.length)?s(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(o)return o;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 c(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 p(e){return c(e),s(e<0?0:0|f(e))}function d(e){const t=e.length<0?0:0|f(e.length),r=s(t);for(let n=0;n=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function g(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||J(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 o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return V(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(o)return n?-1:V(e).length;t=(""+t).toLowerCase(),o=!0}}function m(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 O(this,t,r);case"utf8":case"utf-8":return D(this,t,r);case"ascii":return C(this,t,r);case"latin1":case"binary":return _(this,t,r);case"base64":return S(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function y(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function b(e,t,r,n,o){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=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=l.from(t,n)),l.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):v(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function v(e,t,r,n,o){let i,a=1,s=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;a=2,s/=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){let n=-1;for(i=r;is&&(r=s-l),i=r;i>=0;i--){let r=!0;for(let n=0;no&&(n=o):n=o;const i=t.length;let a;for(n>i/2&&(n=i/2),a=0;a>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function S(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function D(e,t,r){r=Math.min(e.length,r);const n=[];let o=t;for(;o239?4:t>223?3:t>191?2:1;if(o+a<=r){let r,n,s,l;switch(a){case 1:t<128&&(i=t);break;case 2:r=e[o+1],128==(192&r)&&(l=(31&t)<<6|63&r,l>127&&(i=l));break;case 3:r=e[o+1],n=e[o+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[o+1],n=e[o+2],s=e[o+3],128==(192&r)&&128==(192&n)&&128==(192&s)&&(l=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s,l>65535&&l<1114112&&(i=l))}}null===i?(i=65533,a=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i),o+=a}return function(e){const t=e.length;if(t<=$)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(n,o)):Uint8Array.prototype.set.call(n,t,o);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,o)}o+=t.length}return n},l.byteLength=g,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;tr&&(e+=" ... "),""},i&&(l.prototype[i]=l.prototype.inspect),l.prototype.compare=function(e,t,r,n,o){if(J(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===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;let i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0);const s=Math.min(i,a),u=this.slice(n,o),c=e.slice(t,r);for(let e=0;e>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const o=this.length-t;if((void 0===r||r>o)&&(r=o),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 k(this,e,t,r);case"base64":return A(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 $=4096;function C(e,t,r){let n="";r=Math.min(e.length,r);for(let o=t;on)&&(r=n);let o="";for(let n=t;nr)throw new RangeError("Trying to access beyond buffer length")}function T(e,t,r,n,o,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function R(e,t,r,n,o){z(t,n,o,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 a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function B(e,t,r,n,o){z(t,n,o,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 a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function I(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function P(e,t,r,n,i){return t=+t,r>>>=0,i||I(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function L(e,t,r,n,i){return t=+t,r>>>=0,i||I(e,0,r,8),o.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>>=0,t>>>=0,r||j(e,t,this.length);let n=this[e],o=1,i=0;for(;++i>>=0,t>>>=0,r||j(e,t,this.length);let n=this[e+--t],o=1;for(;t>0&&(o*=256);)n+=this[e+--t]*o;return n},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||j(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||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=Q((function(e){q(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,o=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(o)<>>=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],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<>>=0,t>>>=0,r||j(e,t,this.length);let n=this[e],o=1,i=0;for(;++i=o&&(n-=Math.pow(2,8*t)),n},l.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||j(e,t,this.length);let n=t,o=1,i=this[e+--n];for(;n>0&&(o*=256);)i+=this[e+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||j(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||j(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||j(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||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=Q((function(e){q(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)<>>=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)<>>=0,t||j(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||j(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||j(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||j(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||T(this,e,t,r,Math.pow(2,8*r)-1,0);let o=1,i=0;for(this[t]=255&e;++i>>=0,r>>>=0,n||T(this,e,t,r,Math.pow(2,8*r)-1,0);let o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||T(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||T(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||T(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||T(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||T(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=Q((function(e,t=0){return R(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=Q((function(e,t=0){return B(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);T(this,e,t,r,n-1,-n)}let o=0,i=1,a=0;for(this[t]=255&e;++o>0)-a&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);T(this,e,t,r,n-1,-n)}let o=r-1,i=1,a=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/i>>0)-a&255;return t+r},l.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||T(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||T(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||T(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||T(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||T(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=Q((function(e,t=0){return R(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=Q((function(e,t=0){return B(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(e,t,r){return P(this,e,t,!0,r)},l.prototype.writeFloatBE=function(e,t,r){return P(this,e,t,!1,r)},l.prototype.writeDoubleLE=function(e,t,r){return L(this,e,t,!0,r)},l.prototype.writeDoubleBE=function(e,t,r){return L(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=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>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function z(e,t,r,n,o,i){if(e>r||e3?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 N.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,r){q(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||H(t,e.length-(r+1))}(n,o,i)}function q(e,t){if("number"!=typeof e)throw new N.ERR_INVALID_ARG_TYPE(t,"number",e)}function H(e,t,r){if(Math.floor(e)!==e)throw q(e,r),new N.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new N.ERR_BUFFER_OUT_OF_BOUNDS;throw new N.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}M("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),M("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),M("ERR_OUT_OF_RANGE",(function(e,t,r){let n=`The value of "${e}" is out of range.`,o=r;return Number.isInteger(r)&&Math.abs(r)>2**32?o=U(String(r)):"bigint"==typeof r&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=U(o)),o+="n"),n+=` It must be ${t}. Received ${o}`,n}),RangeError);const W=/[^+/0-9A-Za-z-_]/g;function V(e,t){let r;t=t||1/0;const n=e.length;let o=null;const i=[];for(let a=0;a55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=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(W,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function K(e,t,r,n){let o;for(o=0;o=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function J(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 o=0;o<16;++o)t[n+o]=e[r]+e[o]}return t}();function Q(e){return"undefined"==typeof BigInt?X:e}function X(){throw new Error("BigInt not supported")}},1403:e=>{e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},2648:(e,t,r)=>{"use strict";var n=r(3584),o=r(7257),i=o(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?o(r):r}},7257:(e,t,r)=>{"use strict";var n=r(4597),o=r(3584),i=r(7012),a=o("%TypeError%"),s=o("%Function.prototype.apply%"),l=o("%Function.prototype.call%"),u=o("%Reflect.apply%",!0)||n.call(l,s),c=o("%Object.defineProperty%",!0),p=o("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=u(n,l,arguments);return i(t,1+p(0,e.length-(arguments.length-1)),!0)};var d=function(){return u(n,s,arguments)};c?c(e.exports,"apply",{value:d}):e.exports.apply=d},1314:(e,t,r)=>{"use strict";var n=r(4607)(),o=r(3584),i=n&&o("%Object.defineProperty%",!0);if(i)try{i({},"a",{value:1})}catch(e){i=!1}var a=o("%SyntaxError%"),s=o("%TypeError%"),l=r(1700);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new s("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new s("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new s("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new s("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new s("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new s("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],p=!!l&&l(e,t);if(i)i(e,t,{configurable:null===u&&p?p.configurable:!u,enumerable:null===n&&p?p.enumerable:!n,value:r,writable:null===o&&p?p.writable:!o});else{if(!c&&(n||o||u))throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}},1590:e=>{"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(r,n){function o(r){e.removeListener(t,i),n(r)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),r([].slice.call(arguments))}g(e,t,i,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&g(e,"error",t,r)}(e,o,{once:!0})}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function u(e,t,r,n){var o,i,a,u;if(s(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),a=i[t]),void 0===a)a=i[t]=r,++e._eventsCount;else if("function"==typeof a?a=i[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(o=l(e))>0&&a.length>o&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,u=c,console&&console.warn&&console.warn(u)}return e}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=c.bind(n);return o.listener=r,n.wrapFn=o,o}function d(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(e){for(var t=new Array(e.length),r=0;r0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=i[e];if(void 0===l)return!1;if("function"==typeof l)n(l,this,t);else{var u=l.length,c=f(l,u);for(r=0;r=0;i--)if(r[i]===t||r[i].listener===t){a=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},i.prototype.listeners=function(e){return d(this,e,!0)},i.prototype.rawListeners=function(e){return d(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},i.prototype.listenerCount=h,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},4730:(e,t,r)=>{"use strict";var n=r(9898),o=Object.prototype.toString,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){if(!n(t))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=r),"[object Array]"===o.call(e)?function(e,t,r){for(var n=0,o=e.length;n{"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n{"use strict";var n=r(7193);e.exports=Function.prototype.bind||n},3584:(e,t,r)=>{"use strict";var n,o=SyntaxError,i=Function,a=TypeError,s=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var u=function(){throw new a},c=l?function(){try{return u}catch(e){try{return l(arguments,"callee").get}catch(e){return u}}}():u,p=r(563)(),d=r(7365)(),h=Object.getPrototypeOf||(d?function(e){return e.__proto__}:null),f={},g="undefined"!=typeof Uint8Array&&h?h(Uint8Array):n,m={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":p&&h?h([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":f,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p&&h?h(h([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p&&h?h((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p&&h?h((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p&&h?h(""[Symbol.iterator]()):n,"%Symbol%":p?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":c,"%TypedArray%":g,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(h)try{null.error}catch(e){var y=h(h(e));m["%Error.prototype%"]=y}var b=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&h&&(r=h(o.prototype))}return m[t]=r,r},v={"%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"]},x=r(4597),w=r(4057),k=x.call(Function.call,Array.prototype.concat),A=x.call(Function.apply,Array.prototype.splice),E=x.call(Function.call,String.prototype.replace),S=x.call(Function.call,String.prototype.slice),D=x.call(Function.call,RegExp.prototype.exec),$=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,_=function(e,t){var r,n=e;if(w(v,n)&&(n="%"+(r=v[n])[0]+"%"),w(m,n)){var i=m[n];if(i===f&&(i=b(n)),void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===D(/^%?[^%]*%?$/,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=S(e,0,1),r=S(e,-1);if("%"===t&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return E(e,$,(function(e,t,r,o){n[n.length]=r?E(o,C,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",i=_("%"+n+"%",t),s=i.name,u=i.value,c=!1,p=i.alias;p&&(n=p[0],A(r,k([0,1],p)));for(var d=1,h=!0;d=r.length){var b=l(u,f);u=(h=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:u[f]}else h=w(u,f),u=u[f];h&&!c&&(m[s]=u)}}return u}},1700:(e,t,r)=>{"use strict";var n=r(3584)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},4607:(e,t,r)=>{"use strict";var n=r(3584)("%Object.defineProperty%",!0),o=function(){if(n)try{return n({},"a",{value:1}),!0}catch(e){return!1}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},7365:e=>{"use strict";var t={foo:{}},r=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof r)}},563:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(9956);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},9956:e=>{"use strict";e.exports=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 o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},6323:(e,t,r)=>{"use strict";var n=r(9956);e.exports=function(){return n()&&!!Symbol.toStringTag}},4057:(e,t,r)=>{"use strict";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=r(4597);e.exports=i.call(n,o)},9804:(e,t,r)=>{var n=r(5262),o=r(3149),i=e.exports;for(var a in n)n.hasOwnProperty(a)&&(i[a]=n[a]);function s(e){if("string"==typeof e&&(e=o.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}i.request=function(e,t){return e=s(e),n.request.call(this,e,t)},i.get=function(e,t){return e=s(e),n.get.call(this,e,t)}},9350:(e,t)=>{t.read=function(e,t,r,n,o){var i,a,s=8*o-n-1,l=(1<>1,c=-7,p=r?o-1:0,d=r?-1:1,h=e[t+p];for(p+=d,i=h&(1<<-c)-1,h>>=-c,c+=s;c>0;i=256*i+e[t+p],p+=d,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=n;c>0;a=256*a+e[t+p],p+=d,c-=8);if(0===i)i=1-u;else{if(i===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),i-=u}return(h?-1:1)*a*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var a,s,l,u=8*i-o-1,c=(1<>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,f=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+p>=1?d/l:d*Math.pow(2,1-p))*l>=2&&(a++,l/=2),a+p>=c?(s=0,a=c):a+p>=1?(s=(t*l-1)*Math.pow(2,o),a+=p):(s=t*Math.pow(2,p-1)*Math.pow(2,o),a=0));o>=8;e[r+h]=255&s,h+=f,s/=256,o-=8);for(a=a<0;e[r+h]=255&a,h+=f,a/=256,u-=8);e[r+h-f]|=128*g}},5153:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},5401:(e,t,r)=>{"use strict";var n=r(6323)(),o=r(2648)("Object.prototype.toString"),i=function(e){return!(n&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},a=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"[object Function]"===o(e.callee)},s=function(){return i(arguments)}();i.isLegacyArguments=a,e.exports=s?i:a},9898:e=>{"use strict";var t,r,n=Function.prototype.toString,o="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof o&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},o((function(){throw 42}),null,t)}catch(e){e!==r&&(o=null)}else o=null;var i=/^\s*class\b/,a=function(e){try{var t=n.call(e);return i.test(t)}catch(e){return!1}},s=function(e){try{return!a(e)&&(n.call(e),!0)}catch(e){return!1}},l=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),p=function(){return!1};if("object"==typeof document){var d=document.all;l.call(d)===l.call(document.all)&&(p=function(e){if((c||!e)&&(void 0===e||"object"==typeof e))try{var t=l.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=o?function(e){if(p(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{o(e,null,t)}catch(e){if(e!==r)return!1}return!a(e)&&s(e)}:function(e){if(p(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(u)return s(e);if(a(e))return!1;var t=l.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},3319:(e,t,r)=>{"use strict";var n,o=Object.prototype.toString,i=Function.prototype.toString,a=/^\s*(?:function)?\*/,s=r(6323)(),l=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(a.test(i.call(e)))return!0;if(!s)return"[object GeneratorFunction]"===o.call(e);if(!l)return!1;if(void 0===n){var t=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}}();n=!!t&&l(t)}return l(e)===n}},3513:(e,t,r)=>{"use strict";var n=r(7971);e.exports=function(e){return!!n(e)}},7949:(e,t,r)=>{"use strict";var n=r(7501),o=r(8932);function i(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.")}}e.exports.Type=r(2274),e.exports.Schema=r(9218),e.exports.FAILSAFE_SCHEMA=r(3552),e.exports.JSON_SCHEMA=r(8198),e.exports.CORE_SCHEMA=r(3189),e.exports.DEFAULT_SCHEMA=r(7345),e.exports.load=n.load,e.exports.loadAll=n.loadAll,e.exports.dump=o.dump,e.exports.YAMLException=r(1833),e.exports.types={binary:r(682),float:r(6633),map:r(584),null:r(3328),pairs:r(3006),set:r(8302),timestamp:r(7692),bool:r(2711),int:r(3512),merge:r(1570),omap:r(9272),seq:r(4566),str:r(4035)},e.exports.safeLoad=i("safeLoad","load"),e.exports.safeLoadAll=i("safeLoadAll","loadAll"),e.exports.safeDump=i("safeDump","dump")},9249:e=>{"use strict";function t(e){return null==e}e.exports.isNothing=t,e.exports.isObject=function(e){return"object"==typeof e&&null!==e},e.exports.toArray=function(e){return Array.isArray(e)?e:t(e)?[]:[e]},e.exports.repeat=function(e,t){var r,n="";for(r=0;r{"use strict";var n=r(9249),o=r(1833),i=r(7345),a=Object.prototype.toString,s=Object.prototype.hasOwnProperty,l=65279,u=9,c=10,p=13,d=32,h=33,f=34,g=35,m=37,y=38,b=39,v=42,x=44,w=45,k=58,A=61,E=62,S=63,D=64,$=91,C=93,_=96,O=123,F=124,j=125,T={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"},R=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],B=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function I(e){var t,r,i;if(t=e.toString(16).toUpperCase(),e<=255)r="x",i=2;else if(e<=65535)r="u",i=4;else{if(!(e<=4294967295))throw new o("code point within a string may not be greater than 0xFFFFFFFF");r="U",i=8}return"\\"+r+n.repeat("0",i-t.length)+t}var P=1,L=2;function N(e){this.schema=e.schema||i,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=n.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var r,n,o,i,a,l,u;if(null===t)return{};for(r={},o=0,i=(n=Object.keys(t)).length;o=55296&&n<=56319&&t+1=56320&&r<=57343?1024*(n-55296)+r-56320+65536:n}function G(e){return/^\n* /.test(e)}var K=1,J=2,Y=3,Z=4,Q=5;function X(e,t,r,n,o,i,a,s){var u,p,d=0,T=null,R=!1,B=!1,I=-1!==n,P=-1,N=q(p=V(e,0))&&p!==l&&!z(p)&&p!==w&&p!==S&&p!==k&&p!==x&&p!==$&&p!==C&&p!==O&&p!==j&&p!==g&&p!==y&&p!==v&&p!==h&&p!==F&&p!==A&&p!==E&&p!==b&&p!==f&&p!==m&&p!==D&&p!==_&&function(e){return!z(e)&&e!==k}(V(e,e.length-1));if(t||a)for(u=0;u=65536?u+=2:u++){if(!q(d=V(e,u)))return Q;N=N&&W(d,T,s),T=d}else{for(u=0;u=65536?u+=2:u++){if((d=V(e,u))===c)R=!0,I&&(B=B||u-P-1>n&&" "!==e[P+1],P=u);else if(!q(d))return Q;N=N&&W(d,T,s),T=d}B=B||I&&u-P-1>n&&" "!==e[P+1]}return R||B?r>9&&G(e)?Q:a?i===L?Q:J:B?Z:Y:!N||a||o(e)?i===L?Q:J:K}function ee(e,t,r,n,i){e.dump=function(){if(0===t.length)return e.quotingType===L?'""':"''";if(!e.noCompatMode&&(-1!==R.indexOf(t)||B.test(t)))return e.quotingType===L?'"'+t+'"':"'"+t+"'";var a=e.indent*Math.max(1,r),s=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),l=n||e.flowLevel>-1&&r>=e.flowLevel;switch(X(t,l,e.indent,s,(function(t){return function(e,t){var r,n;for(r=0,n=e.implicitTypes.length;r"+te(t,e.indent)+re(M(function(e,t){for(var r,n,o,i=/(\n+)([^\n]*)/g,a=(o=-1!==(o=e.indexOf("\n"))?o:e.length,i.lastIndex=o,ne(e.slice(0,o),t)),s="\n"===e[0]||" "===e[0];n=i.exec(e);){var l=n[1],u=n[2];r=" "===u[0],a+=l+(s||r||""===u?"":"\n")+ne(u,t),s=r}return a}(t,s),a));case Q:return'"'+function(e){for(var t,r="",n=0,o=0;o=65536?o+=2:o++)n=V(e,o),!(t=T[n])&&q(n)?(r+=e[o],n>=65536&&(r+=e[o+1])):r+=t||I(n);return r}(t)+'"';default:throw new o("impossible error: invalid scalar style")}}()}function te(e,t){var r=G(e)?String(t):"",n="\n"===e[e.length-1];return r+(!n||"\n"!==e[e.length-2]&&"\n"!==e?n?"":"-":"+")+"\n"}function re(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function ne(e,t){if(""===e||" "===e[0])return e;for(var r,n,o=/ [^ ]/g,i=0,a=0,s=0,l="";r=o.exec(e);)(s=r.index)-i>t&&(n=a>i?a:s,l+="\n"+e.slice(i,n),i=n+1),a=s;return l+="\n",e.length-i>t&&a>i?l+=e.slice(i,a)+"\n"+e.slice(a+1):l+=e.slice(i),l.slice(1)}function oe(e,t,r,n){var o,i,a,s="",l=e.tag;for(o=0,i=r.length;o tag resolver accepts not "'+p+'" style');n=c.represent[p](t,p)}e.dump=n}return!0}return!1}function ae(e,t,r,n,i,s,l){e.tag=null,e.dump=r,ie(e,r,!1)||ie(e,r,!0);var u,p=a.call(e.dump),d=n;n&&(n=e.flowLevel<0||e.flowLevel>t);var h,f,g="[object Object]"===p||"[object Array]"===p;if(g&&(f=-1!==(h=e.duplicates.indexOf(r))),(null!==e.tag&&"?"!==e.tag||f||2!==e.indent&&t>0)&&(i=!1),f&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(g&&f&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),"[object Object]"===p)n&&0!==Object.keys(e.dump).length?(function(e,t,r,n){var i,a,s,l,u,p,d="",h=e.tag,f=Object.keys(r);if(!0===e.sortKeys)f.sort();else if("function"==typeof e.sortKeys)f.sort(e.sortKeys);else if(e.sortKeys)throw new o("sortKeys must be a boolean or a function");for(i=0,a=f.length;i1024)&&(e.dump&&c===e.dump.charCodeAt(0)?p+="?":p+="? "),p+=e.dump,u&&(p+=U(e,t)),ae(e,t+1,l,!0,u)&&(e.dump&&c===e.dump.charCodeAt(0)?p+=":":p+=": ",d+=p+=e.dump));e.tag=h,e.dump=d||"{}"}(e,t,e.dump,i),f&&(e.dump="&ref_"+h+e.dump)):(function(e,t,r){var n,o,i,a,s,l="",u=e.tag,c=Object.keys(r);for(n=0,o=c.length;n1024&&(s+="? "),s+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),ae(e,t,a,!1,!1)&&(l+=s+=e.dump));e.tag=u,e.dump="{"+l+"}"}(e,t,e.dump),f&&(e.dump="&ref_"+h+" "+e.dump));else if("[object Array]"===p)n&&0!==e.dump.length?(e.noArrayIndent&&!l&&t>0?oe(e,t-1,e.dump,i):oe(e,t,e.dump,i),f&&(e.dump="&ref_"+h+e.dump)):(function(e,t,r){var n,o,i,a="",s=e.tag;for(n=0,o=r.length;n",e.dump=u+" "+e.dump)}return!0}function se(e,t){var r,n,o=[],i=[];for(le(e,o,i),r=0,n=i.length;r{"use strict";function t(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 r(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=t(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r.prototype.toString=function(e){return this.name+": "+t(this,e)},e.exports=r},7501:(e,t,r)=>{"use strict";var n=r(9249),o=r(1833),i=r(3920),a=r(7345),s=Object.prototype.hasOwnProperty,l=1,u=2,c=3,p=4,d=1,h=2,f=3,g=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,m=/[\x85\u2028\u2029]/,y=/[,\[\]\{\}]/,b=/^(?:!|!!|![a-z\-]+!)$/i,v=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function x(e){return Object.prototype.toString.call(e)}function w(e){return 10===e||13===e}function k(e){return 9===e||32===e}function A(e){return 9===e||32===e||10===e||13===e}function E(e){return 44===e||91===e||93===e||123===e||125===e}function S(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function D(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 $(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var C=new Array(256),_=new Array(256),O=0;O<256;O++)C[O]=D(O)?1:0,_[O]=D(O);function F(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||a,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 j(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=i(r),new o(t,r)}function T(e,t){throw j(e,t)}function R(e,t){e.onWarning&&e.onWarning.call(null,j(e,t))}var B={YAML:function(e,t,r){var n,o,i;null!==e.version&&T(e,"duplication of %YAML directive"),1!==r.length&&T(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&T(e,"ill-formed argument of the YAML directive"),o=parseInt(n[1],10),i=parseInt(n[2],10),1!==o&&T(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&R(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,o;2!==r.length&&T(e,"TAG directive accepts exactly two arguments"),n=r[0],o=r[1],b.test(n)||T(e,"ill-formed tag handle (first argument) of the TAG directive"),s.call(e.tagMap,n)&&T(e,'there is a previously declared suffix for "'+n+'" tag handle'),v.test(o)||T(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch(t){T(e,"tag prefix is malformed: "+o)}e.tagMap[n]=o}};function I(e,t,r,n){var o,i,a,s;if(t1&&(e.result+=n.repeat("\n",t-1))}function q(e,t){var r,n,o=e.tag,i=e.anchor,a=[],s=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),n=e.input.charCodeAt(e.position);0!==n&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,T(e,"tab characters must not be used in indentation")),45===n)&&A(e.input.charCodeAt(e.position+1));)if(s=!0,e.position++,M(e,!0,-1)&&e.lineIndent<=t)a.push(null),n=e.input.charCodeAt(e.position);else if(r=e.line,V(e,t,c,!1,!0),a.push(e.result),M(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)T(e,"bad indentation of a sequence entry");else if(e.lineIndentt?F=1:e.lineIndent===t?F=0:e.lineIndentt?F=1:e.lineIndent===t?F=0:e.lineIndentt)&&(v&&(a=e.line,s=e.lineStart,l=e.position),V(e,t,p,!0,o)&&(v?y=e.result:b=e.result),v||(L(e,f,g,m,y,b,a,s,l),m=y=b=null),M(e,!0,-1),c=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==c)T(e,"bad indentation of a mapping entry");else if(e.lineIndent=0))break;0===i?T(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?T(e,"repeat of an indentation width identifier"):(p=t+i-1,c=!0)}if(k(a)){do{a=e.input.charCodeAt(++e.position)}while(k(a));if(35===a)do{a=e.input.charCodeAt(++e.position)}while(!w(a)&&0!==a)}for(;0!==a;){for(N(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!c||e.lineIndentp&&(p=e.lineIndent),w(a))g++;else{if(e.lineIndent