@redocly/reference-docs 2.45.13 → 2.45.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli/commands/redocly-docs-cli.min.js +2 -2
- package/bin/cli/commands/redocly-docs-cli.min.js.LICENSE.txt +1 -1
- package/dist/console.redocly-reference-docs.min.js +1 -1
- package/dist/oauth2-redirect.js +1 -1
- package/dist/redocly-reference-docs.min.js +4 -4
- package/lib/redoc-lib/src/utils/url.js +1 -1
- package/lib-browser/redoc-lib/src/utils/url.js +1 -1
- package/lib-esm/redoc-lib/src/utils/url.js +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ var P7=Object.defineProperty,k7=Object.defineProperties;var j7=Object.getOwnProp
|
|
|
2
2
|
* Redocly Reference Docs
|
|
3
3
|
* (c) Copyright 2018 Redocly LLC, all rights reserved.
|
|
4
4
|
* -------------------------------------------------------------
|
|
5
|
-
* Version: "2.45.
|
|
5
|
+
* Version: "2.45.14"
|
|
6
6
|
*/(this.webpackChunkRedoclyReferenceDocs=this.webpackChunkRedoclyReferenceDocs||[]).push([[782],{659:(k,$,p)=>{var b=p(51873),T=Object.prototype,w=T.hasOwnProperty,M=T.toString,I=b?b.toStringTag:void 0;function P(L){var J=w.call(L,I),ee=L[I];try{L[I]=void 0;var q=!0}catch(te){}var K=M.call(L);return q&&(J?L[I]=ee:delete L[I]),K}k.exports=P},694:(k,$,p)=>{"use strict";p(91599);var b=p(37257);p(12560),k.exports=b},1756:()=>{},1882:(k,$,p)=>{var b=p(72552),T=p(23805),w="[object AsyncFunction]",M="[object Function]",I="[object GeneratorFunction]",P="[object Proxy]";function L(J){if(!T(J))return!1;var ee=b(J);return ee==M||ee==I||ee==w||ee==P}k.exports=L},1907:(k,$,p)=>{"use strict";var b=p(41505),T=Function.prototype,w=T.call,M=b&&T.bind.bind(w,w);k.exports=b?M:function(I){return function(){return w.apply(I,arguments)}}},2404:(k,$,p)=>{var b=p(60270);function T(w,M){return b(w,M)}k.exports=T},2532:(k,$,p)=>{"use strict";var b=p(45951),T=Object.defineProperty;k.exports=function(w,M){try{T(b,w,{value:M,configurable:!0,writable:!0})}catch(I){b[w]=M}return M}},2875:(k,$,p)=>{"use strict";var b=p(23045),T=p(80376);k.exports=Object.keys||function(M){return b(M,T)}},3110:(k,$,p)=>{const b=p(5187),T=p(85015),w=p(98023),M=p(53812),I=p(23805),P=p(85105),L=p(86804);class J{constructor(q){this.elementMap={},this.elementDetection=[],this.Element=L.Element,this.KeyValuePair=L.KeyValuePair,(!q||!q.noDefault)&&this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(q){return q.namespace&&q.namespace({base:this}),q.load&&q.load({base:this}),this}useDefault(){return this.register("null",L.NullElement).register("string",L.StringElement).register("number",L.NumberElement).register("boolean",L.BooleanElement).register("array",L.ArrayElement).register("object",L.ObjectElement).register("member",L.MemberElement).register("ref",L.RefElement).register("link",L.LinkElement),this.detect(b,L.NullElement,!1).detect(T,L.StringElement,!1).detect(w,L.NumberElement,!1).detect(M,L.BooleanElement,!1).detect(Array.isArray,L.ArrayElement,!1).detect(I,L.ObjectElement,!1),this}register(q,K){return this._elements=void 0,this.elementMap[q]=K,this}unregister(q){return this._elements=void 0,delete this.elementMap[q],this}detect(q,K,te){return(te===void 0?!0:te)?this.elementDetection.unshift([q,K]):this.elementDetection.push([q,K]),this}toElement(q){if(q instanceof this.Element)return q;let K;for(let te=0;te<this.elementDetection.length;te+=1){const j=this.elementDetection[te][0],C=this.elementDetection[te][1];if(j(q)){K=new C(q);break}}return K}getElementClass(q){const K=this.elementMap[q];return K===void 0?this.Element:K}fromRefract(q){return this.serialiser.deserialise(q)}toRefract(q){return this.serialiser.serialise(q)}get elements(){return this._elements===void 0&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach(q=>{const K=q[0].toUpperCase()+q.substr(1);this._elements[K]=this.elementMap[q]})),this._elements}get serialiser(){return new P(this)}}P.prototype.Namespace=J,k.exports=J},3121:(k,$,p)=>{"use strict";var b=p(65482),T=Math.min;k.exports=function(w){var M=b(w);return M>0?T(M,9007199254740991):0}},3604:k=>{"use strict";k.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII="},3650:(k,$,p)=>{var b=p(96716),T=b(Object.keys,Object);k.exports=T},3656:(k,$,p)=>{k=p.nmd(k);var b=p(9325),T=p(89935),w=$&&!$.nodeType&&$,M=w&&!0&&k&&!k.nodeType&&k,I=M&&M.exports===w,P=I?b.Buffer:void 0,L=P?P.isBuffer:void 0,J=L||T;k.exports=J},4417:k=>{"use strict";k.exports=function($,p){return p||(p={}),$&&($=String($.__esModule?$.default:$),/^['"].*['"]$/.test($)&&($=$.slice(1,-1)),p.hash&&($+=p.hash),/["'() \t\n]|(%20)/.test($)||p.needQuotes?'"'.concat($.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):$)}},4509:(k,$,p)=>{var b=p(12651);function T(w){return b(this,w).has(w)}k.exports=T},4640:k=>{"use strict";var $=String;k.exports=function(p){try{return $(p)}catch(b){return"Object"}}},4664:(k,$,p)=>{var b=p(79770),T=p(63345),w=Object.prototype,M=w.propertyIsEnumerable,I=Object.getOwnPropertySymbols,P=I?function(L){return L==null?[]:(L=Object(L),b(I(L),function(J){return M.call(L,J)}))}:T;k.exports=P},4901:(k,$,p)=>{var b=p(72552),T=p(30294),w=p(40346),M="[object Arguments]",I="[object Array]",P="[object Boolean]",L="[object Date]",J="[object Error]",ee="[object Function]",q="[object Map]",K="[object Number]",te="[object Object]",j="[object RegExp]",C="[object Set]",oe="[object String]",W="[object WeakMap]",B="[object ArrayBuffer]",G="[object DataView]",z="[object Float32Array]",fe="[object Float64Array]",ae="[object Int8Array]",X="[object Int16Array]",de="[object Int32Array]",be="[object Uint8Array]",ve="[object Uint8ClampedArray]",xe="[object Uint16Array]",pe="[object Uint32Array]",le={};le[z]=le[fe]=le[ae]=le[X]=le[de]=le[be]=le[ve]=le[xe]=le[pe]=!0,le[M]=le[I]=le[B]=le[P]=le[G]=le[L]=le[J]=le[ee]=le[q]=le[K]=le[te]=le[j]=le[C]=le[oe]=le[W]=!1;function Oe(re){return w(re)&&T(re.length)&&!!le[b(re)]}k.exports=Oe},5187:k=>{function $(p){return p===null}k.exports=$},5861:(k,$,p)=>{var b=p(55580),T=p(68223),w=p(32804),M=p(76545),I=p(28303),P=p(72552),L=p(47473),J="[object Map]",ee="[object Object]",q="[object Promise]",K="[object Set]",te="[object WeakMap]",j="[object DataView]",C=L(b),oe=L(T),W=L(w),B=L(M),G=L(I),z=P;(b&&z(new b(new ArrayBuffer(1)))!=j||T&&z(new T)!=J||w&&z(w.resolve())!=q||M&&z(new M)!=K||I&&z(new I)!=te)&&(z=function(fe){var ae=P(fe),X=ae==ee?fe.constructor:void 0,de=X?L(X):"";if(de)switch(de){case C:return j;case oe:return J;case W:return q;case B:return K;case G:return te}return ae}),k.exports=z},6048:k=>{var $="Expected a function";function p(b){if(typeof b!="function")throw new TypeError($);return function(){var T=arguments;switch(T.length){case 0:return!b.call(this);case 1:return!b.call(this,T[0]);case 2:return!b.call(this,T[0],T[1]);case 3:return!b.call(this,T[0],T[1],T[2])}return!b.apply(this,T)}}k.exports=p},6233:(k,$,p)=>{const b=p(6048),T=p(10316),w=p(92340);class M extends T{constructor(P,L,J){super(P||[],L,J),this.element="array"}primitive(){return"array"}get(P){return this.content[P]}getValue(P){const L=this.get(P);if(L)return L.toValue()}getIndex(P){return this.content[P]}set(P,L){return this.content[P]=this.refract(L),this}remove(P){const L=this.content.splice(P,1);return L.length?L[0]:null}map(P,L){return this.content.map(P,L)}flatMap(P,L){return this.map(P,L).reduce((J,ee)=>J.concat(ee),[])}compactMap(P,L){const J=[];return this.forEach(ee=>{const q=P.bind(L)(ee);q&&J.push(q)}),J}filter(P,L){return new w(this.content.filter(P,L))}reject(P,L){return this.filter(b(P),L)}reduce(P,L){let J,ee;L!==void 0?(J=0,ee=this.refract(L)):(J=1,ee=this.primitive()==="object"?this.first.value:this.first);for(let q=J;q<this.length;q+=1){const K=this.content[q];this.primitive()==="object"?ee=this.refract(P(ee,K.value,K.key,K,this)):ee=this.refract(P(ee,K,q,this))}return ee}forEach(P,L){this.content.forEach((J,ee)=>{P.bind(L)(J,this.refract(ee))})}shift(){return this.content.shift()}unshift(P){this.content.unshift(this.refract(P))}push(P){return this.content.push(this.refract(P)),this}add(P){this.push(P)}findElements(P,L){const J=L||{},ee=!!J.recursive,q=J.results===void 0?[]:J.results;return this.forEach((K,te,j)=>{ee&&K.findElements!==void 0&&K.findElements(P,{results:q,recursive:ee}),P(K,te,j)&&q.push(K)}),q}find(P){return new w(this.findElements(P,{recursive:!0}))}findByElement(P){return this.find(L=>L.element===P)}findByClass(P){return this.find(L=>L.classes.includes(P))}getById(P){return this.find(L=>L.id.toValue()===P).first}includes(P){return this.content.some(L=>L.equals(P))}contains(P){return this.includes(P)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(P){return new this.constructor(this.content.concat(P.content))}"fantasy-land/concat"(P){return this.concat(P)}"fantasy-land/map"(P){return new this.constructor(this.map(P))}"fantasy-land/chain"(P){return this.map(L=>P(L),this).reduce((L,J)=>L.concat(J),this.empty())}"fantasy-land/filter"(P){return new this.constructor(this.content.filter(P))}"fantasy-land/reduce"(P,L){return this.content.reduce(P,L)}get length(){return this.content.length}get isEmpty(){return this.content.length===0}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}M.empty=function(){return new this},M["fantasy-land/empty"]=M.empty,typeof Symbol!="undefined"&&(M.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),k.exports=M},6499:(k,$,p)=>{"use strict";var b=p(1907),T=0,w=Math.random(),M=b(1 .toString);k.exports=function(I){return"Symbol("+(I===void 0?"":I)+")_"+M(++T+w,36)}},7057:(k,$,p)=>{"use strict";var b=p(11470).charAt,T=p(90160),w=p(64932),M=p(60183),I=p(59550),P="String Iterator",L=w.set,J=w.getterFor(P);M(String,"String",function(ee){L(this,{type:P,string:T(ee),index:0})},function(){var q=J(this),K=q.string,te=q.index,j;return te>=K.length?I(void 0,!0):(j=b(K,te),q.index+=j.length,I(j,!1))})},7376:k=>{"use strict";k.exports=!0},8068:k=>{"use strict";var $=(()=>{var p=Object.defineProperty,b=Object.getOwnPropertyDescriptor,T=Object.getOwnPropertyNames,w=Object.getOwnPropertySymbols,M=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,P=(G,z,fe)=>z in G?p(G,z,{enumerable:!0,configurable:!0,writable:!0,value:fe}):G[z]=fe,L=(G,z)=>{for(var fe in z||(z={}))M.call(z,fe)&&P(G,fe,z[fe]);if(w)for(var fe of w(z))I.call(z,fe)&&P(G,fe,z[fe]);return G},J=(G,z)=>{for(var fe in z)p(G,fe,{get:z[fe],enumerable:!0})},ee=(G,z,fe,ae)=>{if(z&&typeof z=="object"||typeof z=="function")for(let X of T(z))!M.call(G,X)&&X!==fe&&p(G,X,{get:()=>z[X],enumerable:!(ae=b(z,X))||ae.enumerable});return G},q=G=>ee(p({},"__esModule",{value:!0}),G),K=(G,z,fe)=>(P(G,typeof z!="symbol"?z+"":z,fe),fe),te={};J(te,{DEFAULT_OPTIONS:()=>oe,DEFAULT_UUID_LENGTH:()=>C,default:()=>B});var j="5.2.0",C=6,oe={dictionary:"alphanum",shuffle:!0,debug:!1,length:C,counter:0},W=class{constructor(z={}){K(this,"counter"),K(this,"debug"),K(this,"dict"),K(this,"version"),K(this,"dictIndex",0),K(this,"dictRange",[]),K(this,"lowerBound",0),K(this,"upperBound",0),K(this,"dictLength",0),K(this,"uuidLength"),K(this,"_digit_first_ascii",48),K(this,"_digit_last_ascii",58),K(this,"_alpha_lower_first_ascii",97),K(this,"_alpha_lower_last_ascii",123),K(this,"_hex_last_ascii",103),K(this,"_alpha_upper_first_ascii",65),K(this,"_alpha_upper_last_ascii",91),K(this,"_number_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii]}),K(this,"_alpha_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),K(this,"_alpha_lower_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),K(this,"_alpha_upper_dict_ranges",{upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),K(this,"_alphanum_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),K(this,"_alphanum_lower_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),K(this,"_alphanum_upper_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),K(this,"_hex_dict_ranges",{decDigits:[this._digit_first_ascii,this._digit_last_ascii],alphaDigits:[this._alpha_lower_first_ascii,this._hex_last_ascii]}),K(this,"_dict_ranges",{_number_dict_ranges:this._number_dict_ranges,_alpha_dict_ranges:this._alpha_dict_ranges,_alpha_lower_dict_ranges:this._alpha_lower_dict_ranges,_alpha_upper_dict_ranges:this._alpha_upper_dict_ranges,_alphanum_dict_ranges:this._alphanum_dict_ranges,_alphanum_lower_dict_ranges:this._alphanum_lower_dict_ranges,_alphanum_upper_dict_ranges:this._alphanum_upper_dict_ranges,_hex_dict_ranges:this._hex_dict_ranges}),K(this,"log",(...ve)=>{const xe=[...ve];if(xe[0]=`[short-unique-id] ${ve[0]}`,this.debug===!0&&typeof console!="undefined"&&console!==null)return console.log(...xe)}),K(this,"_normalizeDictionary",(ve,xe)=>{let pe;if(ve&&Array.isArray(ve)&&ve.length>1)pe=ve;else{pe=[];let le;this.dictIndex=le=0;const Oe=`_${ve}_dict_ranges`,re=this._dict_ranges[Oe];Object.keys(re).forEach(He=>{const Ke=He;for(this.dictRange=re[Ke],this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1],this.dictIndex=le=this.lowerBound;this.lowerBound<=this.upperBound?le<this.upperBound:le>this.upperBound;this.dictIndex=this.lowerBound<=this.upperBound?le+=1:le-=1)pe.push(String.fromCharCode(this.dictIndex))})}return xe&&(pe=pe.sort(()=>Math.random()-.5)),pe}),K(this,"setDictionary",(ve,xe)=>{this.dict=this._normalizeDictionary(ve,xe),this.dictLength=this.dict.length,this.setCounter(0)}),K(this,"seq",()=>this.sequentialUUID()),K(this,"sequentialUUID",()=>{let ve,xe,pe="";ve=this.counter;do xe=ve%this.dictLength,ve=Math.trunc(ve/this.dictLength),pe+=this.dict[xe];while(ve!==0);return this.counter+=1,pe}),K(this,"rnd",(ve=this.uuidLength||C)=>this.randomUUID(ve)),K(this,"randomUUID",(ve=this.uuidLength||C)=>{let xe,pe,le;if(ve===null||typeof ve=="undefined"||ve<1)throw new Error("Invalid UUID Length Provided");const Oe=ve>=0;for(xe="",le=0;le<ve;le+=1)pe=parseInt((Math.random()*this.dictLength).toFixed(0),10)%this.dictLength,xe+=this.dict[pe];return xe}),K(this,"fmt",(ve,xe)=>this.formattedUUID(ve,xe)),K(this,"formattedUUID",(ve,xe)=>{const pe={$r:this.randomUUID,$s:this.sequentialUUID,$t:this.stamp};return ve.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,Oe=>{const re=Oe.slice(0,2),He=parseInt(Oe.slice(2),10);return re==="$s"?pe[re]().padStart(He,"0"):re==="$t"&&xe?pe[re](He,xe):pe[re](He)})}),K(this,"availableUUIDs",(ve=this.uuidLength)=>parseFloat(Math.pow([...new Set(this.dict)].length,ve).toFixed(0))),K(this,"approxMaxBeforeCollision",(ve=this.availableUUIDs(this.uuidLength))=>parseFloat(Math.sqrt(Math.PI/2*ve).toFixed(20))),K(this,"collisionProbability",(ve=this.availableUUIDs(this.uuidLength),xe=this.uuidLength)=>parseFloat((this.approxMaxBeforeCollision(ve)/this.availableUUIDs(xe)).toFixed(20))),K(this,"uniqueness",(ve=this.availableUUIDs(this.uuidLength))=>{const xe=parseFloat((1-this.approxMaxBeforeCollision(ve)/ve).toFixed(20));return xe>1?1:xe<0?0:xe}),K(this,"getVersion",()=>this.version),K(this,"stamp",(ve,xe)=>{const pe=Math.floor(+(xe||new Date)/1e3).toString(16);if(typeof ve=="number"&&ve===0)return pe;if(typeof ve!="number"||ve<10)throw new Error(["Param finalLength must be a number greater than or equal to 10,","or 0 if you want the raw hexadecimal timestamp"].join(`
|
|
7
7
|
`));const le=ve-9,Oe=Math.round(Math.random()*(le>15?15:le)),re=this.randomUUID(le);return`${re.substring(0,Oe)}${pe}${re.substring(Oe)}${Oe.toString(16)}`}),K(this,"parseStamp",(ve,xe)=>{if(xe&&!/t0|t[1-9]\d{1,}/.test(xe))throw new Error("Cannot extract date from a formated UUID with no timestamp in the format");const pe=xe?xe.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,Oe=>{const re={$r:St=>[...Array(St)].map(()=>"r").join(""),$s:St=>[...Array(St)].map(()=>"s").join(""),$t:St=>[...Array(St)].map(()=>"t").join("")},He=Oe.slice(0,2),Ke=parseInt(Oe.slice(2),10);return re[He](Ke)}).replace(/^(.*?)(t{8,})(.*)$/g,(Oe,re,He)=>ve.substring(re.length,re.length+He.length)):ve;if(pe.length===8)return new Date(parseInt(pe,16)*1e3);if(pe.length<10)throw new Error("Stamp length invalid");const le=parseInt(pe.substring(pe.length-1),16);return new Date(parseInt(pe.substring(le,le+8),16)*1e3)}),K(this,"setCounter",ve=>{this.counter=ve}),K(this,"validate",(ve,xe)=>{const pe=xe?this._normalizeDictionary(xe):this.dict;return ve.split("").every(le=>pe.includes(le))});const fe=L(L({},oe),z);this.counter=0,this.debug=!1,this.dict=[],this.version=j;const{dictionary:ae,shuffle:X,length:de,counter:be}=fe;return this.uuidLength=de,this.setDictionary(ae,X),this.setCounter(be),this.debug=fe.debug,this.log(this.dict),this.log(`Generator instantiated with Dictionary Size ${this.dictLength} and counter set to ${this.counter}`),this.log=this.log.bind(this),this.setDictionary=this.setDictionary.bind(this),this.setCounter=this.setCounter.bind(this),this.seq=this.seq.bind(this),this.sequentialUUID=this.sequentialUUID.bind(this),this.rnd=this.rnd.bind(this),this.randomUUID=this.randomUUID.bind(this),this.fmt=this.fmt.bind(this),this.formattedUUID=this.formattedUUID.bind(this),this.availableUUIDs=this.availableUUIDs.bind(this),this.approxMaxBeforeCollision=this.approxMaxBeforeCollision.bind(this),this.collisionProbability=this.collisionProbability.bind(this),this.uniqueness=this.uniqueness.bind(this),this.getVersion=this.getVersion.bind(this),this.stamp=this.stamp.bind(this),this.parseStamp=this.parseStamp.bind(this),this}};K(W,"default",W);var B=W;return q(te)})();k.exports=$.default,typeof window!="undefined"&&($=$.default)},9325:(k,$,p)=>{var b=p(34840),T=typeof self=="object"&&self&&self.Object===Object&&self,w=b||T||Function("return this")();k.exports=w},9751:(k,$,p)=>{(function(b){b(p(15237))})(function(b){"use strict";var T="CodeMirror-hint",w="CodeMirror-hint-active";b.showHint=function(W,B,G){if(!B)return W.showHint(G);G&&G.async&&(B.async=!0);var z={hint:B};if(G)for(var fe in G)z[fe]=G[fe];return W.showHint(z)},b.defineExtension("showHint",function(W){W=L(this,this.getCursor("start"),W);var B=this.listSelections();if(!(B.length>1)){if(this.somethingSelected()){if(!W.hint.supportsSelection)return;for(var G=0;G<B.length;G++)if(B[G].head.line!=B[G].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var z=this.state.completionActive=new M(this,W);z.options.hint&&(b.signal(this,"startCompletion",this),z.update(!0))}}),b.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function M(W,B){if(this.cm=W,this.options=B,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var G=this;W.on("cursorActivity",this.activityFunc=function(){G.cursorActivity()})}}var I=window.requestAnimationFrame||function(W){return setTimeout(W,1e3/60)},P=window.cancelAnimationFrame||clearTimeout;M.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&b.signal(this.data,"close"),this.widget&&this.widget.close(),b.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(W,B){var G=W.list[B],z=this;this.cm.operation(function(){G.hint?G.hint(z.cm,W,G):z.cm.replaceRange(J(G),G.from||W.from,G.to||W.to,"complete"),b.signal(W,"pick",G),z.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(P(this.debounce),this.debounce=0);var W=this.startPos;this.data&&(W=this.data.from);var B=this.cm.getCursor(),G=this.cm.getLine(B.line);if(B.line!=this.startPos.line||G.length-B.ch!=this.startLen-this.startPos.ch||B.ch<W.ch||this.cm.somethingSelected()||!B.ch||this.options.closeCharacters.test(G.charAt(B.ch-1)))this.close();else{var z=this;this.debounce=I(function(){z.update()}),this.widget&&this.widget.disable()}},update:function(W){if(this.tick!=null){var B=this,G=++this.tick;j(this.options.hint,this.cm,this.options,function(z){B.tick==G&&B.finishUpdate(z,W)})}},finishUpdate:function(W,B){this.data&&b.signal(this.data,"update");var G=this.widget&&this.widget.picked||B&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=W,W&&W.list.length&&(G&&W.list.length==1?this.pick(W,0):(this.widget=new K(this,W),b.signal(W,"shown")))}};function L(W,B,G){var z=W.options.hintOptions,fe={};for(var ae in oe)fe[ae]=oe[ae];if(z)for(var ae in z)z[ae]!==void 0&&(fe[ae]=z[ae]);if(G)for(var ae in G)G[ae]!==void 0&&(fe[ae]=G[ae]);return fe.hint.resolve&&(fe.hint=fe.hint.resolve(W,B)),fe}function J(W){return typeof W=="string"?W:W.text}function ee(W,B){var G={Up:function(){B.moveFocus(-1)},Down:function(){B.moveFocus(1)},PageUp:function(){B.moveFocus(-B.menuSize()+1,!0)},PageDown:function(){B.moveFocus(B.menuSize()-1,!0)},Home:function(){B.setFocus(0)},End:function(){B.setFocus(B.length-1)},Enter:B.pick,Tab:B.pick,Esc:B.close},z=/Mac/.test(navigator.platform);z&&(G["Ctrl-P"]=function(){B.moveFocus(-1)},G["Ctrl-N"]=function(){B.moveFocus(1)});var fe=W.options.customKeys,ae=fe?{}:G;function X(ve,xe){var pe;typeof xe!="string"?pe=function(le){return xe(le,B)}:G.hasOwnProperty(xe)?pe=G[xe]:pe=xe,ae[ve]=pe}if(fe)for(var de in fe)fe.hasOwnProperty(de)&&X(de,fe[de]);var be=W.options.extraKeys;if(be)for(var de in be)be.hasOwnProperty(de)&&X(de,be[de]);return ae}function q(W,B){for(;B&&B!=W;){if(B.nodeName.toUpperCase()==="LI"&&B.parentNode==W)return B;B=B.parentNode}}function K(W,B){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=W,this.data=B,this.picked=!1;var G=this,z=W.cm,fe=z.getInputField().ownerDocument,ae=fe.defaultView||fe.parentWindow,X=this.hints=fe.createElement("ul");X.setAttribute("role","listbox"),X.setAttribute("aria-expanded","true"),X.id=this.id;var de=W.cm.options.theme;X.className="CodeMirror-hints "+de,this.selectedHint=B.selectedHint||0;for(var be=B.list,ve=0;ve<be.length;++ve){var xe=X.appendChild(fe.createElement("li")),pe=be[ve],le=T+(ve!=this.selectedHint?"":" "+w);pe.className!=null&&(le=pe.className+" "+le),xe.className=le,ve==this.selectedHint&&xe.setAttribute("aria-selected","true"),xe.id=this.id+"-"+ve,xe.setAttribute("role","option"),pe.render?pe.render(xe,B,pe):xe.appendChild(fe.createTextNode(pe.displayText||J(pe))),xe.hintId=ve}var Oe=W.options.container||fe.body,re=z.cursorCoords(W.options.alignWithWord?B.from:null),He=re.left,Ke=re.bottom,St=!0,kt=0,Nt=0;if(Oe!==fe.body){var Vt=["absolute","relative","fixed"].indexOf(ae.getComputedStyle(Oe).position)!==-1,Or=Vt?Oe:Oe.offsetParent,qt=Or.getBoundingClientRect(),Yt=fe.body.getBoundingClientRect();kt=qt.left-Yt.left-Or.scrollLeft,Nt=qt.top-Yt.top-Or.scrollTop}X.style.left=He-kt+"px",X.style.top=Ke-Nt+"px";var yr=ae.innerWidth||Math.max(fe.body.offsetWidth,fe.documentElement.offsetWidth),ot=ae.innerHeight||Math.max(fe.body.offsetHeight,fe.documentElement.offsetHeight);Oe.appendChild(X),z.getInputField().setAttribute("aria-autocomplete","list"),z.getInputField().setAttribute("aria-owns",this.id),z.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var Qe=W.options.moveOnOverlap?X.getBoundingClientRect():new DOMRect,pt=W.options.paddingForScrollbar?X.scrollHeight>X.clientHeight+1:!1,jt;setTimeout(function(){jt=z.getScrollInfo()});var _i=Qe.bottom-ot;if(_i>0){var Ft=Qe.bottom-Qe.top,jr=re.top-(re.bottom-Qe.top);if(jr-Ft>0)X.style.top=(Ke=re.top-Ft-Nt)+"px",St=!1;else if(Ft>ot){X.style.height=ot-5+"px",X.style.top=(Ke=re.bottom-Qe.top-Nt)+"px";var Ct=z.getCursor();B.from.ch!=Ct.ch&&(re=z.cursorCoords(Ct),X.style.left=(He=re.left-kt)+"px",Qe=X.getBoundingClientRect())}}var Yn=Qe.right-yr;if(pt&&(Yn+=z.display.nativeBarWidth),Yn>0&&(Qe.right-Qe.left>yr&&(X.style.width=yr-5+"px",Yn-=Qe.right-Qe.left-yr),X.style.left=(He=re.left-Yn-kt)+"px"),pt)for(var jn=X.firstChild;jn;jn=jn.nextSibling)jn.style.paddingRight=z.display.nativeBarWidth+"px";if(z.addKeyMap(this.keyMap=ee(W,{moveFocus:function($r,Fr){G.changeActive(G.selectedHint+$r,Fr)},setFocus:function($r){G.changeActive($r)},menuSize:function(){return G.screenAmount()},length:be.length,close:function(){W.close()},pick:function(){G.pick()},data:B})),W.options.closeOnUnfocus){var Fn;z.on("blur",this.onBlur=function(){Fn=setTimeout(function(){W.close()},100)}),z.on("focus",this.onFocus=function(){clearTimeout(Fn)})}z.on("scroll",this.onScroll=function(){var $r=z.getScrollInfo(),Fr=z.getWrapperElement().getBoundingClientRect();jt||(jt=z.getScrollInfo());var et=Ke+jt.top-$r.top,Qn=et-(ae.pageYOffset||(fe.documentElement||fe.body).scrollTop);if(St||(Qn+=X.offsetHeight),Qn<=Fr.top||Qn>=Fr.bottom)return W.close();X.style.top=et+"px",X.style.left=He+jt.left-$r.left+"px"}),b.on(X,"dblclick",function($r){var Fr=q(X,$r.target||$r.srcElement);Fr&&Fr.hintId!=null&&(G.changeActive(Fr.hintId),G.pick())}),b.on(X,"click",function($r){var Fr=q(X,$r.target||$r.srcElement);Fr&&Fr.hintId!=null&&(G.changeActive(Fr.hintId),W.options.completeOnSingleClick&&G.pick())}),b.on(X,"mousedown",function(){setTimeout(function(){z.focus()},20)});var Xn=this.getSelectedHintRange();return(Xn.from!==0||Xn.to!==0)&&this.scrollToActive(),b.signal(B,"select",be[this.selectedHint],X.childNodes[this.selectedHint]),!0}K.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var W=this.completion.cm.getInputField();W.removeAttribute("aria-activedescendant"),W.removeAttribute("aria-owns");var B=this.completion.cm;this.completion.options.closeOnUnfocus&&(B.off("blur",this.onBlur),B.off("focus",this.onFocus)),B.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var W=this;this.keyMap={Enter:function(){W.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(W,B){if(W>=this.data.list.length?W=B?this.data.list.length-1:0:W<0&&(W=B?0:this.data.list.length-1),this.selectedHint!=W){var G=this.hints.childNodes[this.selectedHint];G&&(G.className=G.className.replace(" "+w,""),G.removeAttribute("aria-selected")),G=this.hints.childNodes[this.selectedHint=W],G.className+=" "+w,G.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",G.id),this.scrollToActive(),b.signal(this.data,"select",this.data.list[this.selectedHint],G)}},scrollToActive:function(){var W=this.getSelectedHintRange(),B=this.hints.childNodes[W.from],G=this.hints.childNodes[W.to],z=this.hints.firstChild;B.offsetTop<this.hints.scrollTop?this.hints.scrollTop=B.offsetTop-z.offsetTop:G.offsetTop+G.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=G.offsetTop+G.offsetHeight-this.hints.clientHeight+z.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var W=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-W),to:Math.min(this.data.list.length-1,this.selectedHint+W)}}};function te(W,B){if(!W.somethingSelected())return B;for(var G=[],z=0;z<B.length;z++)B[z].supportsSelection&&G.push(B[z]);return G}function j(W,B,G,z){if(W.async)W(B,z,G);else{var fe=W(B,G);fe&&fe.then?fe.then(z):z(fe)}}function C(W,B){var G=W.getHelpers(B,"hint"),z;if(G.length){var fe=function(ae,X,de){var be=te(ae,G);function ve(xe){if(xe==be.length)return X(null);j(be[xe],ae,de,function(pe){pe&&pe.list.length>0?X(pe):ve(xe+1)})}ve(0)};return fe.async=!0,fe.supportsSelection=!0,fe}else return(z=W.getHelper(W.getCursor(),"hintWords"))?function(ae){return b.hint.fromList(ae,{words:z})}:b.hint.anyword?function(ae,X){return b.hint.anyword(ae,X)}:function(){}}b.registerHelper("hint","auto",{resolve:C}),b.registerHelper("hint","fromList",function(W,B){var G=W.getCursor(),z=W.getTokenAt(G),fe,ae=b.Pos(G.line,z.start),X=G;z.start<G.ch&&/\w/.test(z.string.charAt(G.ch-z.start-1))?fe=z.string.substr(0,G.ch-z.start):(fe="",ae=G);for(var de=[],be=0;be<B.words.length;be++){var ve=B.words[be];ve.slice(0,fe.length)==fe&&de.push(ve)}if(de.length)return{list:de,from:ae,to:X}}),b.commands.autocomplete=b.showHint;var oe={hint:b.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};b.defineOption("hintOptions",null)})},10043:(k,$,p)=>{"use strict";var b=p(54018),T=String,w=TypeError;k.exports=function(M){if(b(M))return M;throw new w("Can't set "+T(M)+" as a prototype")}},10300:(k,$,p)=>{"use strict";var b=p(13930),T=p(82159),w=p(36624),M=p(4640),I=p(73448),P=TypeError;k.exports=function(L,J){var ee=arguments.length<2?I(L):J;if(T(ee))return w(b(ee,L));throw new P(M(L)+" is not iterable")}},10316:(k,$,p)=>{const b=p(2404),T=p(55973),w=p(92340);class M{constructor(P,L,J){L&&(this.meta=L),J&&(this.attributes=J),this.content=P}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach(P=>{P.parent=this,P.freeze()},this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const P=new this.constructor;return P.element=this.element,this.meta.length&&(P._meta=this.meta.clone()),this.attributes.length&&(P._attributes=this.attributes.clone()),this.content?this.content.clone?P.content=this.content.clone():Array.isArray(this.content)?P.content=this.content.map(L=>L.clone()):P.content=this.content:P.content=this.content,P}toValue(){return this.content instanceof M?this.content.toValue():this.content instanceof T?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map(P=>P.toValue(),this):this.content}toRef(P){if(this.id.toValue()==="")throw Error("Cannot create reference to an element that does not contain an ID");const L=new this.RefElement(this.id.toValue());return P&&(L.path=P),L}findRecursive(...P){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const L=P.pop();let J=new w;const ee=(K,te)=>(K.push(te),K),q=(K,te)=>{te.element===L&&K.push(te);const j=te.findRecursive(L);return j&&j.reduce(ee,K),te.content instanceof T&&(te.content.key&&q(K,te.content.key),te.content.value&&q(K,te.content.value)),K};return this.content&&(this.content.element&&q(J,this.content),Array.isArray(this.content)&&this.content.reduce(q,J)),P.isEmpty||(J=J.filter(K=>{let te=K.parents.map(j=>j.element);for(const j in P){const C=P[j],oe=te.indexOf(C);if(oe!==-1)te=te.splice(0,oe);else return!1}return!0})),J}set(P){return this.content=P,this}equals(P){return b(this.toValue(),P)}getMetaProperty(P,L){if(!this.meta.hasKey(P)){if(this.isFrozen){const J=this.refract(L);return J.freeze(),J}this.meta.set(P,L)}return this.meta.get(P)}setMetaProperty(P,L){this.meta.set(P,L)}get element(){return this._storedElement||"element"}set element(P){this._storedElement=P}get content(){return this._content}set content(P){if(P instanceof M)this._content=P;else if(P instanceof w)this.content=P.elements;else if(typeof P=="string"||typeof P=="number"||typeof P=="boolean"||P==="null"||P==null)this._content=P;else if(P instanceof T)this._content=P;else if(Array.isArray(P))this._content=P.map(this.refract);else if(typeof P=="object")this._content=Object.keys(P).map(L=>new this.MemberElement(L,P[L]));else throw new Error("Cannot set content to given value")}get meta(){if(!this._meta){if(this.isFrozen){const P=new this.ObjectElement;return P.freeze(),P}this._meta=new this.ObjectElement}return this._meta}set meta(P){P instanceof this.ObjectElement?this._meta=P:this.meta.set(P||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const P=new this.ObjectElement;return P.freeze(),P}this._attributes=new this.ObjectElement}return this._attributes}set attributes(P){P instanceof this.ObjectElement?this._attributes=P:this.attributes.set(P||{})}get id(){return this.getMetaProperty("id","")}set id(P){this.setMetaProperty("id",P)}get classes(){return this.getMetaProperty("classes",[])}set classes(P){this.setMetaProperty("classes",P)}get title(){return this.getMetaProperty("title","")}set title(P){this.setMetaProperty("title",P)}get description(){return this.getMetaProperty("description","")}set description(P){this.setMetaProperty("description",P)}get links(){return this.getMetaProperty("links",[])}set links(P){this.setMetaProperty("links",P)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:P}=this;const L=new w;for(;P;)L.push(P),P=P.parent;return L}get children(){if(Array.isArray(this.content))return new w(this.content);if(this.content instanceof T){const P=new w([this.content.key]);return this.content.value&&P.push(this.content.value),P}return this.content instanceof M?new w([this.content]):new w}get recursiveChildren(){const P=new w;return this.children.forEach(L=>{P.push(L),L.recursiveChildren.forEach(J=>{P.push(J)})}),P}}k.exports=M},10392:k=>{function $(p,b){return p==null?void 0:p[b]}k.exports=$},10866:(k,$,p)=>{const b=p(6048),T=p(92340);class w extends T{map(I,P){return this.elements.map(L=>I.bind(P)(L.value,L.key,L))}filter(I,P){return new w(this.elements.filter(L=>I.bind(P)(L.value,L.key,L)))}reject(I,P){return this.filter(b(I.bind(P)))}forEach(I,P){return this.elements.forEach((L,J)=>{I.bind(P)(L.value,L.key,L,J)})}keys(){return this.map((I,P)=>P.toValue())}values(){return this.map(I=>I.toValue())}}k.exports=w},11042:(k,$,p)=>{"use strict";var b=p(85582),T=p(1907),w=p(24443),M=p(87170),I=p(36624),P=T([].concat);k.exports=b("Reflect","ownKeys")||function(J){var ee=w.f(I(J)),q=M.f;return q?P(ee,q(J)):ee}},11091:(k,$,p)=>{"use strict";var b=p(45951),T=p(76024),w=p(92361),M=p(62250),I=p(13846).f,P=p(29844),L=p(92046),J=p(28311),ee=p(61626),q=p(49724);p(36128);var K=function(te){var j=function(C,oe,W){if(this instanceof j){switch(arguments.length){case 0:return new te;case 1:return new te(C);case 2:return new te(C,oe)}return new te(C,oe,W)}return T(te,this,arguments)};return j.prototype=te.prototype,j};k.exports=function(te,j){var C=te.target,oe=te.global,W=te.stat,B=te.proto,G=oe?b:W?b[C]:b[C]&&b[C].prototype,z=oe?L:L[C]||ee(L,C,{})[C],fe=z.prototype,ae,X,de,be,ve,xe,pe,le,Oe;for(be in j)ae=P(oe?be:C+(W?".":"#")+be,te.forced),X=!ae&&G&&q(G,be),xe=z[be],X&&(te.dontCallGetSet?(Oe=I(G,be),pe=Oe&&Oe.value):pe=G[be]),ve=X&&pe?pe:j[be],!(!ae&&!B&&typeof xe==typeof ve)&&(te.bind&&X?le=J(ve,b):te.wrap&&X?le=K(ve):B&&M(ve)?le=w(ve):le=ve,(te.sham||ve&&ve.sham||xe&&xe.sham)&&ee(le,"sham",!0),ee(z,be,le),B&&(de=C+"Prototype",q(L,de)||ee(L,de,{}),ee(L[de],be,ve),te.real&&fe&&(ae||!fe[be])&&ee(fe,be,ve)))}},11470:(k,$,p)=>{"use strict";var b=p(1907),T=p(65482),w=p(90160),M=p(74239),I=b("".charAt),P=b("".charCodeAt),L=b("".slice),J=function(ee){return function(q,K){var te=w(M(q)),j=T(K),C=te.length,oe,W;return j<0||j>=C?ee?"":void 0:(oe=P(te,j),oe<55296||oe>56319||j+1===C||(W=P(te,j+1))<56320||W>57343?ee?I(te,j):oe:ee?L(te,j,j+2):(oe-55296<<10)+(W-56320)+65536)}};k.exports={codeAt:J(!1),charAt:J(!0)}},12242:(k,$,p)=>{const b=p(10316);k.exports=class extends b{constructor(w,M,I){super(w,M,I),this.element="boolean"}primitive(){return"boolean"}}},12560:(k,$,p)=>{"use strict";p(99363);var b=p(19287),T=p(45951),w=p(14840),M=p(93742);for(var I in b)w(T[I],I),M[I]=M.Array},12651:(k,$,p)=>{var b=p(74218);function T(w,M){var I=w.__data__;return b(M)?I[typeof M=="string"?"string":"hash"]:I.map}k.exports=T},12749:(k,$,p)=>{var b=p(81042),T=Object.prototype,w=T.hasOwnProperty;function M(I){var P=this.__data__;return b?P[I]!==void 0:w.call(P,I)}k.exports=M},13846:(k,$,p)=>{"use strict";var b=p(39447),T=p(13930),w=p(22574),M=p(75817),I=p(27374),P=p(70470),L=p(49724),J=p(73648),ee=Object.getOwnPropertyDescriptor;$.f=b?ee:function(K,te){if(K=I(K),te=P(te),J)try{return ee(K,te)}catch(j){}if(L(K,te))return M(!T(w.f,K,te),K[te])}},13930:(k,$,p)=>{"use strict";var b=p(41505),T=Function.prototype.call;k.exports=b?T.bind(T):function(){return T.apply(T,arguments)}},14248:k=>{function $(p,b){for(var T=-1,w=p==null?0:p.length;++T<w;)if(b(p[T],T,p))return!0;return!1}k.exports=$},14528:k=>{function $(p,b){for(var T=-1,w=b.length,M=p.length;++T<w;)p[M+T]=b[T];return p}k.exports=$},14540:(k,$,p)=>{const b=p(10316);k.exports=class extends b{constructor(w,M,I){super(w||[],M,I),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(w){this.attributes.set("path",w)}}},14840:(k,$,p)=>{"use strict";var b=p(52623),T=p(74284).f,w=p(61626),M=p(49724),I=p(54878),P=p(76264),L=P("toStringTag");k.exports=function(J,ee,q,K){var te=q?J:J&&J.prototype;te&&(M(te,L)||T(te,L,{configurable:!0,value:ee}),K&&!b&&w(te,"toString",I))}},15237:function(k){(function($,p){k.exports=p()})(this,function(){"use strict";var $=navigator.userAgent,p=navigator.platform,b=/gecko\/\d/i.test($),T=/MSIE \d/.test($),w=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec($),M=/Edge\/(\d+)/.exec($),I=T||w||M,P=I&&(T?document.documentMode||6:+(M||w)[1]),L=!M&&/WebKit\//.test($),J=L&&/Qt\/\d+\.\d+/.test($),ee=!M&&/Chrome\//.test($),q=/Opera\//.test($),K=/Apple Computer/.test(navigator.vendor),te=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test($),j=/PhantomJS/.test($),C=K&&(/Mobile\/\w+/.test($)||navigator.maxTouchPoints>2),oe=/Android/.test($),W=C||oe||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test($),B=C||/Mac/.test(p),G=/\bCrOS\b/.test($),z=/win/i.test(p),fe=q&&$.match(/Version\/(\d*\.\d*)/);fe&&(fe=Number(fe[1])),fe&&fe>=15&&(q=!1,L=!0);var ae=B&&(J||q&&(fe==null||fe<12.11)),X=b||I&&P>=9;function de(i){return new RegExp("(^|\\s)"+i+"(?:$|\\s)\\s*")}var be=function(i,o){var c=i.className,l=de(o).exec(c);if(l){var f=c.slice(l.index+l[0].length);i.className=c.slice(0,l.index)+(f?l[1]+f:"")}};function ve(i){for(var o=i.childNodes.length;o>0;--o)i.removeChild(i.firstChild);return i}function xe(i,o){return ve(i).appendChild(o)}function pe(i,o,c,l){var f=document.createElement(i);if(c&&(f.className=c),l&&(f.style.cssText=l),typeof o=="string")f.appendChild(document.createTextNode(o));else if(o)for(var v=0;v<o.length;++v)f.appendChild(o[v]);return f}function le(i,o,c,l){var f=pe(i,o,c,l);return f.setAttribute("role","presentation"),f}var Oe;document.createRange?Oe=function(i,o,c,l){var f=document.createRange();return f.setEnd(l||i,c),f.setStart(i,o),f}:Oe=function(i,o,c){var l=document.body.createTextRange();try{l.moveToElementText(i.parentNode)}catch(f){return l}return l.collapse(!0),l.moveEnd("character",c),l.moveStart("character",o),l};function re(i,o){if(o.nodeType==3&&(o=o.parentNode),i.contains)return i.contains(o);do if(o.nodeType==11&&(o=o.host),o==i)return!0;while(o=o.parentNode)}function He(){var i;try{i=document.activeElement}catch(o){i=document.body||null}for(;i&&i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function Ke(i,o){var c=i.className;de(o).test(c)||(i.className+=(c?" ":"")+o)}function St(i,o){for(var c=i.split(" "),l=0;l<c.length;l++)c[l]&&!de(c[l]).test(o)&&(o+=" "+c[l]);return o}var kt=function(i){i.select()};C?kt=function(i){i.selectionStart=0,i.selectionEnd=i.value.length}:I&&(kt=function(i){try{i.select()}catch(o){}});function Nt(i){var o=Array.prototype.slice.call(arguments,1);return function(){return i.apply(null,o)}}function Vt(i,o,c){o||(o={});for(var l in i)i.hasOwnProperty(l)&&(c!==!1||!o.hasOwnProperty(l))&&(o[l]=i[l]);return o}function Or(i,o,c,l,f){o==null&&(o=i.search(/[^\s\u00a0]/),o==-1&&(o=i.length));for(var v=l||0,x=f||0;;){var E=i.indexOf(" ",v);if(E<0||E>=o)return x+(o-v);x+=E-v,x+=c-x%c,v=E+1}}var qt=function(){this.id=null,this.f=null,this.time=0,this.handler=Nt(this.onTimeout,this)};qt.prototype.onTimeout=function(i){i.id=0,i.time<=+new Date?i.f():setTimeout(i.handler,i.time-+new Date)},qt.prototype.set=function(i,o){this.f=o;var c=+new Date+i;(!this.id||c<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,i),this.time=c)};function Yt(i,o){for(var c=0;c<i.length;++c)if(i[c]==o)return c;return-1}var yr=50,ot={toString:function(){return"CodeMirror.Pass"}},Qe={scroll:!1},pt={origin:"*mouse"},jt={origin:"+move"};function _i(i,o,c){for(var l=0,f=0;;){var v=i.indexOf(" ",l);v==-1&&(v=i.length);var x=v-l;if(v==i.length||f+x>=o)return l+Math.min(x,o-f);if(f+=v-l,f+=c-f%c,l=v+1,f>=o)return l}}var Ft=[""];function jr(i){for(;Ft.length<=i;)Ft.push(Ct(Ft)+" ");return Ft[i]}function Ct(i){return i[i.length-1]}function Yn(i,o){for(var c=[],l=0;l<i.length;l++)c[l]=o(i[l],l);return c}function jn(i,o,c){for(var l=0,f=c(o);l<i.length&&c(i[l])<=f;)l++;i.splice(l,0,o)}function Fn(){}function Xn(i,o){var c;return Object.create?c=Object.create(i):(Fn.prototype=i,c=new Fn),o&&Vt(o,c),c}var $r=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Fr(i){return/\w/.test(i)||i>"\x80"&&(i.toUpperCase()!=i.toLowerCase()||$r.test(i))}function et(i,o){return o?o.source.indexOf("\\w")>-1&&Fr(i)?!0:o.test(i):Fr(i)}function Qn(i){for(var o in i)if(i.hasOwnProperty(o)&&i[o])return!1;return!0}var yn=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function zi(i){return i.charCodeAt(0)>=768&&yn.test(i)}function vs(i,o,c){for(;(c<0?o>0:o<i.length)&&zi(i.charAt(o));)o+=c;return o}function gs(i,o,c){for(var l=o>c?-1:1;;){if(o==c)return o;var f=(o+c)/2,v=l<0?Math.ceil(f):Math.floor(f);if(v==o)return i(v)?o:c;i(v)?c=v:o=v+l}}function Sl(i,o,c,l){if(!i)return l(o,c,"ltr",0);for(var f=!1,v=0;v<i.length;++v){var x=i[v];(x.from<c&&x.to>o||o==c&&x.to==o)&&(l(Math.max(x.from,o),Math.min(x.to,c),x.level==1?"rtl":"ltr",v),f=!0)}f||l(o,c,"ltr")}var li=null;function Ji(i,o,c){var l;li=null;for(var f=0;f<i.length;++f){var v=i[f];if(v.from<o&&v.to>o)return f;v.to==o&&(v.from!=v.to&&c=="before"?l=f:li=f),v.from==o&&(v.from!=v.to&&c!="before"?l=f:li=f)}return l!=null?l:li}var Ti=function(){var i="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",o="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function c(D){return D<=247?i.charAt(D):1424<=D&&D<=1524?"R":1536<=D&&D<=1785?o.charAt(D-1536):1774<=D&&D<=2220?"r":8192<=D&&D<=8203?"w":D==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,f=/[stwN]/,v=/[LRr]/,x=/[Lb1n]/,E=/[1n]/;function F(D,Y,ne){this.level=D,this.from=Y,this.to=ne}return function(D,Y){var ne=Y=="ltr"?"L":"R";if(D.length==0||Y=="ltr"&&!l.test(D))return!1;for(var me=D.length,ge=[],Ae=0;Ae<me;++Ae)ge.push(c(D.charCodeAt(Ae)));for(var je=0,Ie=ne;je<me;++je){var Me=ge[je];Me=="m"?ge[je]=Ie:Ie=Me}for(var Fe=0,Ve=ne;Fe<me;++Fe){var ze=ge[Fe];ze=="1"&&Ve=="r"?ge[Fe]="n":v.test(ze)&&(Ve=ze,ze=="r"&&(ge[Fe]="R"))}for(var ct=1,rt=ge[0];ct<me-1;++ct){var yt=ge[ct];yt=="+"&&rt=="1"&&ge[ct+1]=="1"?ge[ct]="1":yt==","&&rt==ge[ct+1]&&(rt=="1"||rt=="n")&&(ge[ct]=rt),rt=yt}for(var ir=0;ir<me;++ir){var Tr=ge[ir];if(Tr==",")ge[ir]="N";else if(Tr=="%"){var mr=void 0;for(mr=ir+1;mr<me&&ge[mr]=="%";++mr);for(var Ln=ir&&ge[ir-1]=="!"||mr<me&&ge[mr]=="1"?"1":"N",hn=ir;hn<mr;++hn)ge[hn]=Ln;ir=mr-1}}for(var br=0,wn=ne;br<me;++br){var tr=ge[br];wn=="L"&&tr=="1"?ge[br]="L":v.test(tr)&&(wn=tr)}for(var Vr=0;Vr<me;++Vr)if(f.test(ge[Vr])){var vr=void 0;for(vr=Vr+1;vr<me&&f.test(ge[vr]);++vr);for(var xr=(Vr?ge[Vr-1]:ne)=="L",On=(vr<me?ge[vr]:ne)=="L",ao=xr==On?xr?"L":"R":ne,Ls=Vr;Ls<vr;++Ls)ge[Ls]=ao;Vr=vr-1}for(var Xr=[],bi,Wr=0;Wr<me;)if(x.test(ge[Wr])){var Hu=Wr;for(++Wr;Wr<me&&x.test(ge[Wr]);++Wr);Xr.push(new F(0,Hu,Wr))}else{var An=Wr,lo=Xr.length,nn=Y=="rtl"?1:0;for(++Wr;Wr<me&&ge[Wr]!="L";++Wr);for(var sn=An;sn<Wr;)if(E.test(ge[sn])){An<sn&&(Xr.splice(lo,0,new F(1,An,sn)),lo+=nn);var Ns=sn;for(++sn;sn<Wr&&E.test(ge[sn]);++sn);Xr.splice(lo,0,new F(2,Ns,sn)),lo+=nn,An=sn}else++sn;An<Wr&&Xr.splice(lo,0,new F(1,An,Wr))}return Y=="ltr"&&(Xr[0].level==1&&(bi=D.match(/^\s+/))&&(Xr[0].from=bi[0].length,Xr.unshift(new F(0,0,bi[0].length))),Ct(Xr).level==1&&(bi=D.match(/\s+$/))&&(Ct(Xr).to-=bi[0].length,Xr.push(new F(0,me-bi[0].length,me)))),Y=="rtl"?Xr.reverse():Xr}}();function nr(i,o){var c=i.order;return c==null&&(c=i.order=Ti(i.text,o)),c}var Gi=[],lt=function(i,o,c){if(i.addEventListener)i.addEventListener(o,c,!1);else if(i.attachEvent)i.attachEvent("on"+o,c);else{var l=i._handlers||(i._handlers={});l[o]=(l[o]||Gi).concat(c)}};function Ir(i,o){return i._handlers&&i._handlers[o]||Gi}function Ar(i,o,c){if(i.removeEventListener)i.removeEventListener(o,c,!1);else if(i.detachEvent)i.detachEvent("on"+o,c);else{var l=i._handlers,f=l&&l[o];if(f){var v=Yt(f,c);v>-1&&(l[o]=f.slice(0,v).concat(f.slice(v+1)))}}}function dr(i,o){var c=Ir(i,o);if(c.length)for(var l=Array.prototype.slice.call(arguments,2),f=0;f<c.length;++f)c[f].apply(null,l)}function Cr(i,o,c){return typeof o=="string"&&(o={type:o,preventDefault:function(){this.defaultPrevented=!0}}),dr(i,c||o.type,i,o),Oa(o)||o.codemirrorIgnore}function $t(i){var o=i._handlers&&i._handlers.cursorActivity;if(o)for(var c=i.curOp.cursorActivityHandlers||(i.curOp.cursorActivityHandlers=[]),l=0;l<o.length;++l)Yt(c,o[l])==-1&&c.push(o[l])}function bn(i,o){return Ir(i,o).length>0}function ci(i){i.prototype.on=function(o,c){lt(this,o,c)},i.prototype.off=function(o,c){Ar(this,o,c)}}function _r(i){i.preventDefault?i.preventDefault():i.returnValue=!1}function Zn(i){i.stopPropagation?i.stopPropagation():i.cancelBubble=!0}function Oa(i){return i.defaultPrevented!=null?i.defaultPrevented:i.returnValue==!1}function ui(i){_r(i),Zn(i)}function In(i){return i.target||i.srcElement}function Aa(i){var o=i.which;return o==null&&(i.button&1?o=1:i.button&2?o=3:i.button&4&&(o=2)),B&&i.ctrlKey&&o==1&&(o=3),o}var xo=function(){if(I&&P<9)return!1;var i=pe("div");return"draggable"in i||"dragDrop"in i}(),Ea;function ys(i){if(Ea==null){var o=pe("span","\u200B");xe(i,pe("span",[o,document.createTextNode("x")])),i.firstChild.offsetHeight!=0&&(Ea=o.offsetWidth<=1&&o.offsetHeight>2&&!(I&&P<8))}var c=Ea?pe("span","\u200B"):pe("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return c.setAttribute("cm-text",""),c}var xn;function Uc(i){if(xn!=null)return xn;var o=xe(i,document.createTextNode("A\u062EA")),c=Oe(o,0,1).getBoundingClientRect(),l=Oe(o,1,2).getBoundingClientRect();return ve(i),!c||c.left==c.right?!1:xn=l.right-c.right<3}var Sn=`
|
|
8
8
|
|
package/dist/oauth2-redirect.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Redocly Reference Docs
|
|
3
3
|
* (c) Copyright 2018 Redocly LLC, all rights reserved.
|
|
4
4
|
* -------------------------------------------------------------
|
|
5
|
-
* Version: "2.45.
|
|
5
|
+
* Version: "2.45.14"
|
|
6
6
|
*/(function(Ee,pe){typeof exports=="object"&&typeof module=="object"?module.exports=pe():typeof define=="function"&&define.amd?define([],pe):typeof exports=="object"?exports.RedoclyReferenceDocs=pe():Ee.RedoclyReferenceDocs=pe()})(this,()=>(()=>{var Ke={5225:(a,l,e)=>{var t=e(61849);a.exports=t&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},5476:(a,l,e)=>{var t=e(48664),n=e(71229);a.exports=function(s){return t(n(s))}},6539:(a,l,e)=>{var t=e(7317),n=Math.max,s=Math.min;a.exports=function(o,i){var c=t(o);return c<0?n(c+i,0):s(c,i)}},6845:(a,l,e)=>{var t=e(30200),n=e(47061),s=t.process,o=s&&s.versions,i=o&&o.v8,c,h;i?(c=i.split("."),h=c[0]<4?1:c[0]+c[1]):n&&(c=n.match(/Edge\/(\d+)/),(!c||c[1]>=74)&&(c=n.match(/Chrome\/(\d+)/),c&&(h=c[1]))),a.exports=h&&+h},6926:a=>{a.exports=!1},7168:(a,l,e)=>{var t=e(92074);a.exports=!t(function(){function n(){}return n.prototype.constructor=null,Object.getPrototypeOf(new n)!==n.prototype})},7317:a=>{var l=Math.ceil,e=Math.floor;a.exports=function(t){return isNaN(t=+t)?0:(t>0?e:l)(t)}},7473:(a,l,e)=>{var t=e(65335);a.exports=function(n){if(!t(n)&&n!==null)throw TypeError("Can't set "+String(n)+" as a prototype");return n}},9304:(a,l)=>{"use strict";var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!e.call({1:2},1);l.f=n?function(o){var i=t(this,o);return!!i&&i.enumerable}:e},13075:(a,l,e)=>{var t=e(97485);a.exports=function(n,s,o){for(var i in s)t(n,i,s[i],o);return n}},15816:(a,l,e)=>{var t=e(56492),n=e(64789),s=e(18916),o=e(73938);a.exports=t("Reflect","ownKeys")||function(c){var h=n.f(o(c)),p=s.f;return p?h.concat(p(c)):h}},16347:(a,l,e)=>{var t=e(31883),n=e(5476),s=e(58186).indexOf,o=e(67708);a.exports=function(i,c){var h=n(i),p=0,m=[],v;for(v in h)!t(o,v)&&t(h,v)&&m.push(v);for(;c.length>p;)t(h,v=c[p++])&&(~s(m,v)||m.push(v));return m}},18569:a=>{var l={}.toString;a.exports=function(e){return l.call(e).slice(8,-1)}},18665:(a,l,e)=>{"use strict";var t=e(5476),n=e(40298),s=e(52228),o=e(99206),i=e(45723),c="Array Iterator",h=o.set,p=o.getterFor(c);a.exports=i(Array,"Array",function(m,v){h(this,{type:c,target:t(m),index:0,kind:v})},function(){var m=p(this),v=m.target,x=m.kind,A=m.index++;return!v||A>=v.length?(m.target=void 0,{value:void 0,done:!0}):x=="keys"?{value:A,done:!1}:x=="values"?{value:v[A],done:!1}:{value:[A,v[A]],done:!1}},"values"),s.Arguments=s.Array,n("keys"),n("values"),n("entries")},18916:(a,l)=>{l.f=Object.getOwnPropertySymbols},23262:(a,l,e)=>{var t=e(30200),n=e(65335),s=t.document,o=n(s)&&n(s.createElement);a.exports=function(i){return o?s.createElement(i):{}}},25904:(a,l,e)=>{var t=e(50002),n=e(50665),s=t("keys");a.exports=function(o){return s[o]||(s[o]=n(o))}},28890:(a,l,e)=>{var t=e(56492);a.exports=t("document","documentElement")},29720:(a,l,e)=>{var t=e(30200);a.exports=t},29979:(a,l,e)=>{"use strict";var t=e(77804).charAt,n=e(99206),s=e(45723),o="String Iterator",i=n.set,c=n.getterFor(o);s(String,"String",function(h){i(this,{type:o,string:String(h),index:0})},function(){var p=c(this),m=p.string,v=p.index,x;return v>=m.length?{value:void 0,done:!0}:(x=t(m,v),p.index+=x.length,{value:x,done:!1})})},30200:(a,l,e)=>{var t=function(n){return n&&n.Math==Math&&n};a.exports=t(typeof globalThis=="object"&&globalThis)||t(typeof window=="object"&&window)||t(typeof self=="object"&&self)||t(typeof e.g=="object"&&e.g)||function(){return this}()||Function("return this")()},30290:a=>{a.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},30789:(a,l,e)=>{"use strict";e(29979);var t=e(51605),n=e(65077),s=e(84516),o=e(30200),i=e(65318),c=e(97485),h=e(65190),p=e(31883),m=e(81688),v=e(51027),x=e(77804).codeAt,A=e(83150),b=e(75282),N=e(60933),B=e(99206),w=o.URL,D=N.URLSearchParams,I=N.getState,j=B.set,R=B.getterFor("URL"),S=Math.floor,T=Math.pow,G="Invalid authority",W="Invalid scheme",K="Invalid host",V="Invalid port",ne=/[A-Za-z]/,re=/[\d+-.A-Za-z]/,$=/\d/,k=/^(0x|0X)/,Q=/^[0-7]+$/,ae=/^\d+$/,q=/^[\dA-Fa-f]+$/,oe=/[\0\t\n\r #%/:?@[\\]]/,de=/[\0\t\n\r #/:?@[\\]]/,te=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,me=/[\t\n\r]/g,_,fe=function(r,f){var u,d,y;if(f.charAt(0)=="["){if(f.charAt(f.length-1)!="]"||(u=xe(f.slice(1,-1)),!u))return K;r.host=u}else if(Y(r)){if(f=A(f),oe.test(f)||(u=Ae(f),u===null))return K;r.host=u}else{if(de.test(f))return K;for(u="",d=v(f),y=0;y<d.length;y++)u+=M(d[y],O);r.host=u}},Ae=function(r){var f=r.split("."),u,d,y,C,P,H,z;if(f.length&&f[f.length-1]==""&&f.pop(),u=f.length,u>4)return r;for(d=[],y=0;y<u;y++){if(C=f[y],C=="")return r;if(P=10,C.length>1&&C.charAt(0)=="0"&&(P=k.test(C)?16:8,C=C.slice(P==8?1:2)),C==="")H=0;else{if(!(P==10?ae:P==8?Q:q).test(C))return r;H=parseInt(C,P)}d.push(H)}for(y=0;y<u;y++)if(H=d[y],y==u-1){if(H>=T(256,5-u))return null}else if(H>255)return null;for(z=d.pop(),y=0;y<d.length;y++)z+=d[y]*T(256,3-y);return z},xe=function(r){var f=[0,0,0,0,0,0,0,0],u=0,d=null,y=0,C,P,H,z,J,ue,g,X=function(){return r.charAt(y)};if(X()==":"){if(r.charAt(1)!=":")return;y+=2,u++,d=u}for(;X();){if(u==8)return;if(X()==":"){if(d!==null)return;y++,u++,d=u;continue}for(C=P=0;P<4&&q.test(X());)C=C*16+parseInt(X(),16),y++,P++;if(X()=="."){if(P==0||(y-=P,u>6))return;for(H=0;X();){if(z=null,H>0)if(X()=="."&&H<4)y++;else return;if(!$.test(X()))return;for(;$.test(X());){if(J=parseInt(X(),10),z===null)z=J;else{if(z==0)return;z=z*10+J}if(z>255)return;y++}f[u]=f[u]*256+z,H++,(H==2||H==4)&&u++}if(H!=4)return;break}else if(X()==":"){if(y++,!X())return}else if(X())return;f[u++]=C}if(d!==null)for(ue=u-d,u=7;u!=0&&ue>0;)g=f[u],f[u--]=f[d+ue-1],f[d+--ue]=g;else if(u!=8)return;return f},Ie=function(r){for(var f=null,u=1,d=null,y=0,C=0;C<8;C++)r[C]!==0?(y>u&&(f=d,u=y),d=null,y=0):(d===null&&(d=C),++y);return y>u&&(f=d,u=y),f},F=function(r){var f,u,d,y;if(typeof r=="number"){for(f=[],u=0;u<4;u++)f.unshift(r%256),r=S(r/256);return f.join(".")}else if(typeof r=="object"){for(f="",d=Ie(r),u=0;u<8;u++)y&&r[u]===0||(y&&(y=!1),d===u?(f+=u?":":"::",y=!0):(f+=r[u].toString(16),u<7&&(f+=":")));return"["+f+"]"}return r},O={},L=m({},O,{" ":1,'"':1,"<":1,">":1,"`":1}),U=m({},L,{"#":1,"?":1,"{":1,"}":1}),E=m({},U,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),M=function(r,f){var u=x(r,0);return u>32&&u<127&&!p(f,r)?r:encodeURIComponent(r)},Z={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Y=function(r){return p(Z,r.scheme)},ee=function(r){return r.username!=""||r.password!=""},se=function(r){return!r.host||r.cannotBeABaseURL||r.scheme=="file"},ge=function(r,f){var u;return r.length==2&&ne.test(r.charAt(0))&&((u=r.charAt(1))==":"||!f&&u=="|")},Oe=function(r){var f;return r.length>1&&ge(r.slice(0,2))&&(r.length==2||(f=r.charAt(2))==="/"||f==="\\"||f==="?"||f==="#")},Se=function(r){var f=r.path,u=f.length;u&&(r.scheme!="file"||u!=1||!ge(f[0],!0))&&f.pop()},vr=function(r){return r==="."||r.toLowerCase()==="%2e"},lr=function(r){return r=r.toLowerCase(),r===".."||r==="%2e."||r===".%2e"||r==="%2e%2e"},be={},Ye={},je={},Ve={},ze={},Ue={},We={},$e={},Te={},we={},Ce={},Fe={},Me={},Ne={},Je={},Be={},Pe={},ce={},Xe={},Re={},le={},ve=function(r,f,u,d){var y=u||be,C=0,P="",H=!1,z=!1,J=!1,ue,g,X,he;for(u||(r.scheme="",r.username="",r.password="",r.host=null,r.port=null,r.path=[],r.query=null,r.fragment=null,r.cannotBeABaseURL=!1,f=f.replace(te,"")),f=f.replace(me,""),ue=v(f);C<=ue.length;){switch(g=ue[C],y){case be:if(g&&ne.test(g))P+=g.toLowerCase(),y=Ye;else{if(u)return W;y=je;continue}break;case Ye:if(g&&(re.test(g)||g=="+"||g=="-"||g=="."))P+=g.toLowerCase();else if(g==":"){if(u&&(Y(r)!=p(Z,P)||P=="file"&&(ee(r)||r.port!==null)||r.scheme=="file"&&!r.host))return;if(r.scheme=P,u){Y(r)&&Z[r.scheme]==r.port&&(r.port=null);return}P="",r.scheme=="file"?y=Ne:Y(r)&&d&&d.scheme==r.scheme?y=Ve:Y(r)?y=$e:ue[C+1]=="/"?(y=ze,C++):(r.cannotBeABaseURL=!0,r.path.push(""),y=Xe)}else{if(u)return W;P="",y=je,C=0;continue}break;case je:if(!d||d.cannotBeABaseURL&&g!="#")return W;if(d.cannotBeABaseURL&&g=="#"){r.scheme=d.scheme,r.path=d.path.slice(),r.query=d.query,r.fragment="",r.cannotBeABaseURL=!0,y=le;break}y=d.scheme=="file"?Ne:Ue;continue;case Ve:if(g=="/"&&ue[C+1]=="/")y=Te,C++;else{y=Ue;continue}break;case ze:if(g=="/"){y=we;break}else{y=ce;continue}case Ue:if(r.scheme=d.scheme,g==_)r.username=d.username,r.password=d.password,r.host=d.host,r.port=d.port,r.path=d.path.slice(),r.query=d.query;else if(g=="/"||g=="\\"&&Y(r))y=We;else if(g=="?")r.username=d.username,r.password=d.password,r.host=d.host,r.port=d.port,r.path=d.path.slice(),r.query="",y=Re;else if(g=="#")r.username=d.username,r.password=d.password,r.host=d.host,r.port=d.port,r.path=d.path.slice(),r.query=d.query,r.fragment="",y=le;else{r.username=d.username,r.password=d.password,r.host=d.host,r.port=d.port,r.path=d.path.slice(),r.path.pop(),y=ce;continue}break;case We:if(Y(r)&&(g=="/"||g=="\\"))y=Te;else if(g=="/")y=we;else{r.username=d.username,r.password=d.password,r.host=d.host,r.port=d.port,y=ce;continue}break;case $e:if(y=Te,g!="/"||P.charAt(C+1)!="/")continue;C++;break;case Te:if(g!="/"&&g!="\\"){y=we;continue}break;case we:if(g=="@"){H&&(P="%40"+P),H=!0,X=v(P);for(var He=0;He<X.length;He++){var ur=X[He];if(ur==":"&&!J){J=!0;continue}var fr=M(ur,E);J?r.password+=fr:r.username+=fr}P=""}else if(g==_||g=="/"||g=="?"||g=="#"||g=="\\"&&Y(r)){if(H&&P=="")return G;C-=v(P).length+1,P="",y=Ce}else P+=g;break;case Ce:case Fe:if(u&&r.scheme=="file"){y=Be;continue}else if(g==":"&&!z){if(P=="")return K;if(he=fe(r,P),he)return he;if(P="",y=Me,u==Fe)return}else if(g==_||g=="/"||g=="?"||g=="#"||g=="\\"&&Y(r)){if(Y(r)&&P=="")return K;if(u&&P==""&&(ee(r)||r.port!==null))return;if(he=fe(r,P),he)return he;if(P="",y=Pe,u)return;continue}else g=="["?z=!0:g=="]"&&(z=!1),P+=g;break;case Me:if($.test(g))P+=g;else if(g==_||g=="/"||g=="?"||g=="#"||g=="\\"&&Y(r)||u){if(P!=""){var Ge=parseInt(P,10);if(Ge>65535)return V;r.port=Y(r)&&Ge===Z[r.scheme]?null:Ge,P=""}if(u)return;y=Pe;continue}else return V;break;case Ne:if(r.scheme="file",g=="/"||g=="\\")y=Je;else if(d&&d.scheme=="file")if(g==_)r.host=d.host,r.path=d.path.slice(),r.query=d.query;else if(g=="?")r.host=d.host,r.path=d.path.slice(),r.query="",y=Re;else if(g=="#")r.host=d.host,r.path=d.path.slice(),r.query=d.query,r.fragment="",y=le;else{Oe(ue.slice(C).join(""))||(r.host=d.host,r.path=d.path.slice(),Se(r)),y=ce;continue}else{y=ce;continue}break;case Je:if(g=="/"||g=="\\"){y=Be;break}d&&d.scheme=="file"&&!Oe(ue.slice(C).join(""))&&(ge(d.path[0],!0)?r.path.push(d.path[0]):r.host=d.host),y=ce;continue;case Be:if(g==_||g=="/"||g=="\\"||g=="?"||g=="#"){if(!u&&ge(P))y=ce;else if(P==""){if(r.host="",u)return;y=Pe}else{if(he=fe(r,P),he)return he;if(r.host=="localhost"&&(r.host=""),u)return;P="",y=Pe}continue}else P+=g;break;case Pe:if(Y(r)){if(y=ce,g!="/"&&g!="\\")continue}else if(!u&&g=="?")r.query="",y=Re;else if(!u&&g=="#")r.fragment="",y=le;else if(g!=_&&(y=ce,g!="/"))continue;break;case ce:if(g==_||g=="/"||g=="\\"&&Y(r)||!u&&(g=="?"||g=="#")){if(lr(P)?(Se(r),g!="/"&&!(g=="\\"&&Y(r))&&r.path.push("")):vr(P)?g!="/"&&!(g=="\\"&&Y(r))&&r.path.push(""):(r.scheme=="file"&&!r.path.length&&ge(P)&&(r.host&&(r.host=""),P=P.charAt(0)+":"),r.path.push(P)),P="",r.scheme=="file"&&(g==_||g=="?"||g=="#"))for(;r.path.length>1&&r.path[0]==="";)r.path.shift();g=="?"?(r.query="",y=Re):g=="#"&&(r.fragment="",y=le)}else P+=M(g,U);break;case Xe:g=="?"?(r.query="",y=Re):g=="#"?(r.fragment="",y=le):g!=_&&(r.path[0]+=M(g,O));break;case Re:!u&&g=="#"?(r.fragment="",y=le):g!=_&&(g=="'"&&Y(r)?r.query+="%27":g=="#"?r.query+="%23":r.query+=M(g,O));break;case le:g!=_&&(r.fragment+=M(g,L));break}C++}},ye=function(f){var u=h(this,ye,"URL"),d=arguments.length>1?arguments[1]:void 0,y=String(f),C=j(u,{type:"URL"}),P,H;if(d!==void 0){if(d instanceof ye)P=R(d);else if(H=ve(P={},String(d)),H)throw TypeError(H)}if(H=ve(C,y,null,P),H)throw TypeError(H);var z=C.searchParams=new D,J=I(z);J.updateSearchParams(C.query),J.updateURL=function(){C.query=String(z)||null},n||(u.href=Le.call(u),u.origin=Ze.call(u),u.protocol=Qe.call(u),u.username=ke.call(u),u.password=qe.call(u),u.host=_e.call(u),u.hostname=er.call(u),u.port=rr.call(u),u.pathname=tr.call(u),u.search=nr.call(u),u.searchParams=ar.call(u),u.hash=or.call(u))},De=ye.prototype,Le=function(){var r=R(this),f=r.scheme,u=r.username,d=r.password,y=r.host,C=r.port,P=r.path,H=r.query,z=r.fragment,J=f+":";return y!==null?(J+="//",ee(r)&&(J+=u+(d?":"+d:"")+"@"),J+=F(y),C!==null&&(J+=":"+C)):f=="file"&&(J+="//"),J+=r.cannotBeABaseURL?P[0]:P.length?"/"+P.join("/"):"",H!==null&&(J+="?"+H),z!==null&&(J+="#"+z),J},Ze=function(){var r=R(this),f=r.scheme,u=r.port;if(f=="blob")try{return new ye(f.path[0]).origin}catch(d){return"null"}return f=="file"||!Y(r)?"null":f+"://"+F(r.host)+(u!==null?":"+u:"")},Qe=function(){return R(this).scheme+":"},ke=function(){return R(this).username},qe=function(){return R(this).password},_e=function(){var r=R(this),f=r.host,u=r.port;return f===null?"":u===null?F(f):F(f)+":"+u},er=function(){var r=R(this).host;return r===null?"":F(r)},rr=function(){var r=R(this).port;return r===null?"":String(r)},tr=function(){var r=R(this),f=r.path;return r.cannotBeABaseURL?f[0]:f.length?"/"+f.join("/"):""},nr=function(){var r=R(this).query;return r?"?"+r:""},ar=function(){return R(this).searchParams},or=function(){var r=R(this).fragment;return r?"#"+r:""},ie=function(r,f){return{get:r,set:f,configurable:!0,enumerable:!0}};if(n&&i(De,{href:ie(Le,function(r){var f=R(this),u=String(r),d=ve(f,u);if(d)throw TypeError(d);I(f.searchParams).updateSearchParams(f.query)}),origin:ie(Ze),protocol:ie(Qe,function(r){var f=R(this);ve(f,String(r)+":",be)}),username:ie(ke,function(r){var f=R(this),u=v(String(r));if(!se(f)){f.username="";for(var d=0;d<u.length;d++)f.username+=M(u[d],E)}}),password:ie(qe,function(r){var f=R(this),u=v(String(r));if(!se(f)){f.password="";for(var d=0;d<u.length;d++)f.password+=M(u[d],E)}}),host:ie(_e,function(r){var f=R(this);f.cannotBeABaseURL||ve(f,String(r),Ce)}),hostname:ie(er,function(r){var f=R(this);f.cannotBeABaseURL||ve(f,String(r),Fe)}),port:ie(rr,function(r){var f=R(this);se(f)||(r=String(r),r==""?f.port=null:ve(f,r,Me))}),pathname:ie(tr,function(r){var f=R(this);f.cannotBeABaseURL||(f.path=[],ve(f,r+"",Pe))}),search:ie(nr,function(r){var f=R(this);r=String(r),r==""?f.query=null:(r.charAt(0)=="?"&&(r=r.slice(1)),f.query="",ve(f,r,Re)),I(f.searchParams).updateSearchParams(f.query)}),searchParams:ie(ar),hash:ie(or,function(r){var f=R(this);if(r=String(r),r==""){f.fragment=null;return}r.charAt(0)=="#"&&(r=r.slice(1)),f.fragment="",ve(f,r,le)})}),c(De,"toJSON",function(){return Le.call(this)},{enumerable:!0}),c(De,"toString",function(){return Le.call(this)},{enumerable:!0}),w){var sr=w.createObjectURL,ir=w.revokeObjectURL;sr&&c(ye,"createObjectURL",function(f){return sr.apply(w,arguments)}),ir&&c(ye,"revokeObjectURL",function(f){return ir.apply(w,arguments)})}b(ye,"URL"),t({global:!0,forced:!s,sham:!n},{URL:ye})},31602:(a,l,e)=>{var t=e(30200),n=e(50002),s=e(31883),o=e(50665),i=e(61849),c=e(5225),h=n("wks"),p=t.Symbol,m=c?p:p&&p.withoutSetter||o;a.exports=function(v){return(!s(h,v)||!(i||typeof h[v]=="string"))&&(i&&s(p,v)?h[v]=p[v]:h[v]=m("Symbol."+v)),h[v]}},31883:(a,l,e)=>{var t=e(92612),n={}.hasOwnProperty;a.exports=Object.hasOwn||function(o,i){return n.call(t(o),i)}},33747:(a,l,e)=>{var t=e(7317),n=Math.min;a.exports=function(s){return s>0?n(t(s),9007199254740991):0}},39686:(a,l,e)=>{var t=e(73938),n=e(7473);a.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var s=!1,o={},i;try{i=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,i.call(o,[]),s=o instanceof Array}catch(c){}return function(h,p){return t(h),n(p),s?i.call(h,p):h.__proto__=p,h}}():void 0)},40298:(a,l,e)=>{var t=e(31602),n=e(53105),s=e(43610),o=t("unscopables"),i=Array.prototype;i[o]==null&&s.f(i,o,{configurable:!0,value:n(null)}),a.exports=function(c){i[o][c]=!0}},41332:(a,l,e)=>{var t=e(73938),n=e(69868);a.exports=function(s,o,i,c){try{return c?o(t(i)[0],i[1]):o(i)}catch(h){throw n(s),h}}},43129:(a,l,e)=>{var t=e(31602),n=t("toStringTag"),s={};s[n]="z",a.exports=String(s)==="[object z]"},43610:(a,l,e)=>{var t=e(65077),n=e(87694),s=e(73938),o=e(50874),i=Object.defineProperty;l.f=t?i:function(h,p,m){if(s(h),p=o(p,!0),s(m),n)try{return i(h,p,m)}catch(v){}if("get"in m||"set"in m)throw TypeError("Accessors not supported");return"value"in m&&(h[p]=m.value),h}},45723:(a,l,e)=>{"use strict";var t=e(51605),n=e(72147),s=e(97970),o=e(39686),i=e(75282),c=e(97712),h=e(97485),p=e(31602),m=e(6926),v=e(52228),x=e(49306),A=x.IteratorPrototype,b=x.BUGGY_SAFARI_ITERATORS,N=p("iterator"),B="keys",w="values",D="entries",I=function(){return this};a.exports=function(j,R,S,T,G,W,K){n(S,R,T);var V=function(te){if(te===G&&Q)return Q;if(!b&&te in $)return $[te];switch(te){case B:return function(){return new S(this,te)};case w:return function(){return new S(this,te)};case D:return function(){return new S(this,te)}}return function(){return new S(this)}},ne=R+" Iterator",re=!1,$=j.prototype,k=$[N]||$["@@iterator"]||G&&$[G],Q=!b&&k||V(G),ae=R=="Array"&&$.entries||k,q,oe,de;if(ae&&(q=s(ae.call(new j)),A!==Object.prototype&&q.next&&(!m&&s(q)!==A&&(o?o(q,A):typeof q[N]!="function"&&c(q,N,I)),i(q,ne,!0,!0),m&&(v[ne]=I))),G==w&&k&&k.name!==w&&(re=!0,Q=function(){return k.call(this)}),(!m||K)&&$[N]!==Q&&c($,N,Q),v[R]=Q,G)if(oe={values:V(w),keys:W?Q:V(B),entries:V(D)},K)for(de in oe)(b||re||!(de in $))&&h($,de,oe[de]);else t({target:R,proto:!0,forced:b||re},oe);return oe}},46885:(a,l,e)=>{var t=e(59085);a.exports=function(n,s,o){if(t(n),s===void 0)return n;switch(o){case 0:return function(){return n.call(s)};case 1:return function(i){return n.call(s,i)};case 2:return function(i,c){return n.call(s,i,c)};case 3:return function(i,c,h){return n.call(s,i,c,h)}}return function(){return n.apply(s,arguments)}}},47061:(a,l,e)=>{var t=e(56492);a.exports=t("navigator","userAgent")||""},48664:(a,l,e)=>{var t=e(92074),n=e(18569),s="".split;a.exports=t(function(){return!Object("z").propertyIsEnumerable(0)})?function(o){return n(o)=="String"?s.call(o,""):Object(o)}:Object},49306:(a,l,e)=>{"use strict";var t=e(92074),n=e(97970),s=e(97712),o=e(31883),i=e(31602),c=e(6926),h=i("iterator"),p=!1,m=function(){return this},v,x,A;[].keys&&(A=[].keys(),"next"in A?(x=n(n(A)),x!==Object.prototype&&(v=x)):p=!0);var b=v==null||t(function(){var N={};return v[h].call(N)!==N});b&&(v={}),(!c||b)&&!o(v,h)&&s(v,h,m),a.exports={IteratorPrototype:v,BUGGY_SAFARI_ITERATORS:p}},49310:(a,l,e)=>{var t=e(30200),n=e(55975),s="__core-js_shared__",o=t[s]||n(s,{});a.exports=o},50002:(a,l,e)=>{var t=e(6926),n=e(49310);(a.exports=function(s,o){return n[s]||(n[s]=o!==void 0?o:{})})("versions",[]).push({version:"3.14.0",mode:t?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},50665:a=>{var l=0,e=Math.random();a.exports=function(t){return"Symbol("+String(t===void 0?"":t)+")_"+(++l+e).toString(36)}},50874:(a,l,e)=>{var t=e(65335);a.exports=function(n,s){if(!t(n))return n;var o,i;if(s&&typeof(o=n.toString)=="function"&&!t(i=o.call(n))||typeof(o=n.valueOf)=="function"&&!t(i=o.call(n))||!s&&typeof(o=n.toString)=="function"&&!t(i=o.call(n)))return i;throw TypeError("Can't convert object to primitive value")}},51027:(a,l,e)=>{"use strict";var t=e(46885),n=e(92612),s=e(41332),o=e(99034),i=e(33747),c=e(52057),h=e(51898);a.exports=function(m){var v=n(m),x=typeof this=="function"?this:Array,A=arguments.length,b=A>1?arguments[1]:void 0,N=b!==void 0,B=h(v),w=0,D,I,j,R,S,T;if(N&&(b=t(b,A>2?arguments[2]:void 0,2)),B!=null&&!(x==Array&&o(B)))for(R=B.call(v),S=R.next,I=new x;!(j=S.call(R)).done;w++)T=N?s(R,b,[j.value,w],!0):j.value,c(I,w,T);else for(D=i(v.length),I=new x(D);D>w;w++)T=N?b(v[w],w):v[w],c(I,w,T);return I.length=w,I}},51605:(a,l,e)=>{var t=e(30200),n=e(97632).f,s=e(97712),o=e(97485),i=e(55975),c=e(84361),h=e(84977);a.exports=function(p,m){var v=p.target,x=p.global,A=p.stat,b,N,B,w,D,I;if(x?N=t:A?N=t[v]||i(v,{}):N=(t[v]||{}).prototype,N)for(B in m){if(D=m[B],p.noTargetGet?(I=n(N,B),w=I&&I.value):w=N[B],b=h(x?B:v+(A?".":"#")+B,p.forced),!b&&w!==void 0){if(typeof D==typeof w)continue;c(D,w)}(p.sham||w&&w.sham)&&s(D,"sham",!0),o(N,B,D,p)}}},51898:(a,l,e)=>{var t=e(83062),n=e(52228),s=e(31602),o=s("iterator");a.exports=function(i){if(i!=null)return i[o]||i["@@iterator"]||n[t(i)]}},52057:(a,l,e)=>{"use strict";var t=e(50874),n=e(43610),s=e(66843);a.exports=function(o,i,c){var h=t(i);h in o?n.f(o,h,s(0,c)):o[h]=c}},52228:a=>{a.exports={}},53105:(a,l,e)=>{var t=e(73938),n=e(65318),s=e(30290),o=e(67708),i=e(28890),c=e(23262),h=e(25904),p=">",m="<",v="prototype",x="script",A=h("IE_PROTO"),b=function(){},N=function(j){return m+x+p+j+m+"/"+x+p},B=function(j){j.write(N("")),j.close();var R=j.parentWindow.Object;return j=null,R},w=function(){var j=c("iframe"),R="java"+x+":",S;return j.style.display="none",i.appendChild(j),j.src=String(R),S=j.contentWindow.document,S.open(),S.write(N("document.F=Object")),S.close(),S.F},D,I=function(){try{D=document.domain&&new ActiveXObject("htmlfile")}catch(R){}I=D?B(D):w();for(var j=s.length;j--;)delete I[v][s[j]];return I()};o[A]=!0,a.exports=Object.create||function(R,S){var T;return R!==null?(b[v]=t(R),T=new b,b[v]=null,T[A]=R):T=I(),S===void 0?T:n(T,S)}},55975:(a,l,e)=>{var t=e(30200),n=e(97712);a.exports=function(s,o){try{n(t,s,o)}catch(i){t[s]=o}return o}},56492:(a,l,e)=>{var t=e(29720),n=e(30200),s=function(o){return typeof o=="function"?o:void 0};a.exports=function(o,i){return arguments.length<2?s(t[o])||s(n[o]):t[o]&&t[o][i]||n[o]&&n[o][i]}},58186:(a,l,e)=>{var t=e(5476),n=e(33747),s=e(6539),o=function(i){return function(c,h,p){var m=t(c),v=n(m.length),x=s(p,v),A;if(i&&h!=h){for(;v>x;)if(A=m[x++],A!=A)return!0}else for(;v>x;x++)if((i||x in m)&&m[x]===h)return i||x||0;return!i&&-1}};a.exports={includes:o(!0),indexOf:o(!1)}},58565:(a,l,e)=>{"use strict";var t=e(51605);t({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},59085:a=>{a.exports=function(l){if(typeof l!="function")throw TypeError(String(l)+" is not a function");return l}},60933:(a,l,e)=>{"use strict";e(18665);var t=e(51605),n=e(56492),s=e(84516),o=e(97485),i=e(13075),c=e(75282),h=e(72147),p=e(99206),m=e(65190),v=e(31883),x=e(46885),A=e(83062),b=e(73938),N=e(65335),B=e(53105),w=e(66843),D=e(79526),I=e(51898),j=e(31602),R=n("fetch"),S=n("Headers"),T=j("iterator"),G="URLSearchParams",W=G+"Iterator",K=p.set,V=p.getterFor(G),ne=p.getterFor(W),re=/\+/g,$=Array(4),k=function(F){return $[F-1]||($[F-1]=RegExp("((?:%[\\da-f]{2}){"+F+"})","gi"))},Q=function(F){try{return decodeURIComponent(F)}catch(O){return F}},ae=function(F){var O=F.replace(re," "),L=4;try{return decodeURIComponent(O)}catch(U){for(;L;)O=O.replace(k(L--),Q);return O}},q=/[!'()~]|%20/g,oe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},de=function(F){return oe[F]},te=function(F){return encodeURIComponent(F).replace(q,de)},me=function(F,O){if(O)for(var L=O.split("&"),U=0,E,M;U<L.length;)E=L[U++],E.length&&(M=E.split("="),F.push({key:ae(M.shift()),value:ae(M.join("="))}))},_=function(F){this.entries.length=0,me(this.entries,F)},fe=function(F,O){if(F<O)throw TypeError("Not enough arguments")},Ae=h(function(O,L){K(this,{type:W,iterator:D(V(O).entries),kind:L})},"Iterator",function(){var O=ne(this),L=O.kind,U=O.iterator.next(),E=U.value;return U.done||(U.value=L==="keys"?E.key:L==="values"?E.value:[E.key,E.value]),U}),xe=function(){m(this,xe,G);var O=arguments.length>0?arguments[0]:void 0,L=this,U=[],E,M,Z,Y,ee,se,ge,Oe,Se;if(K(L,{type:G,entries:U,updateURL:function(){},updateSearchParams:_}),O!==void 0)if(N(O))if(E=I(O),typeof E=="function")for(M=E.call(O),Z=M.next;!(Y=Z.call(M)).done;){if(ee=D(b(Y.value)),se=ee.next,(ge=se.call(ee)).done||(Oe=se.call(ee)).done||!se.call(ee).done)throw TypeError("Expected sequence with length 2");U.push({key:ge.value+"",value:Oe.value+""})}else for(Se in O)v(O,Se)&&U.push({key:Se,value:O[Se]+""});else me(U,typeof O=="string"?O.charAt(0)==="?"?O.slice(1):O:O+"")},Ie=xe.prototype;i(Ie,{append:function(O,L){fe(arguments.length,2);var U=V(this);U.entries.push({key:O+"",value:L+""}),U.updateURL()},delete:function(F){fe(arguments.length,1);for(var O=V(this),L=O.entries,U=F+"",E=0;E<L.length;)L[E].key===U?L.splice(E,1):E++;O.updateURL()},get:function(O){fe(arguments.length,1);for(var L=V(this).entries,U=O+"",E=0;E<L.length;E++)if(L[E].key===U)return L[E].value;return null},getAll:function(O){fe(arguments.length,1);for(var L=V(this).entries,U=O+"",E=[],M=0;M<L.length;M++)L[M].key===U&&E.push(L[M].value);return E},has:function(O){fe(arguments.length,1);for(var L=V(this).entries,U=O+"",E=0;E<L.length;)if(L[E++].key===U)return!0;return!1},set:function(O,L){fe(arguments.length,1);for(var U=V(this),E=U.entries,M=!1,Z=O+"",Y=L+"",ee=0,se;ee<E.length;ee++)se=E[ee],se.key===Z&&(M?E.splice(ee--,1):(M=!0,se.value=Y));M||E.push({key:Z,value:Y}),U.updateURL()},sort:function(){var O=V(this),L=O.entries,U=L.slice(),E,M,Z;for(L.length=0,Z=0;Z<U.length;Z++){for(E=U[Z],M=0;M<Z;M++)if(L[M].key>E.key){L.splice(M,0,E);break}M===Z&&L.push(E)}O.updateURL()},forEach:function(O){for(var L=V(this).entries,U=x(O,arguments.length>1?arguments[1]:void 0,3),E=0,M;E<L.length;)M=L[E++],U(M.value,M.key,this)},keys:function(){return new Ae(this,"keys")},values:function(){return new Ae(this,"values")},entries:function(){return new Ae(this,"entries")}},{enumerable:!0}),o(Ie,T,Ie.entries),o(Ie,"toString",function(){for(var O=V(this).entries,L=[],U=0,E;U<O.length;)E=O[U++],L.push(te(E.key)+"="+te(E.value));return L.join("&")},{enumerable:!0}),c(xe,G),t({global:!0,forced:!s},{URLSearchParams:xe}),!s&&typeof R=="function"&&typeof S=="function"&&t({global:!0,enumerable:!0,forced:!0},{fetch:function(O){var L=[O],U,E,M;return arguments.length>1&&(U=arguments[1],N(U)&&(E=U.body,A(E)===G&&(M=U.headers?new S(U.headers):new S,M.has("content-type")||M.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),U=B(U,{body:w(0,String(E)),headers:w(0,M)}))),L.push(U)),R.apply(this,L)}}),a.exports={URLSearchParams:xe,getState:V}},61849:(a,l,e)=>{var t=e(6845),n=e(92074);a.exports=!!Object.getOwnPropertySymbols&&!n(function(){var s=Symbol();return!String(s)||!(Object(s)instanceof Symbol)||!Symbol.sham&&t&&t<41})},64789:(a,l,e)=>{var t=e(16347),n=e(30290),s=n.concat("length","prototype");l.f=Object.getOwnPropertyNames||function(i){return t(i,s)}},65077:(a,l,e)=>{var t=e(92074);a.exports=!t(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},65190:a=>{a.exports=function(l,e,t){if(!(l instanceof e))throw TypeError("Incorrect "+(t?t+" ":"")+"invocation");return l}},65318:(a,l,e)=>{var t=e(65077),n=e(43610),s=e(73938),o=e(91641);a.exports=t?Object.defineProperties:function(c,h){s(c);for(var p=o(h),m=p.length,v=0,x;m>v;)n.f(c,x=p[v++],h[x]);return c}},65335:a=>{a.exports=function(l){return typeof l=="object"?l!==null:typeof l=="function"}},66843:a=>{a.exports=function(l,e){return{enumerable:!(l&1),configurable:!(l&2),writable:!(l&4),value:e}}},67708:a=>{a.exports={}},69422:(a,l,e)=>{e(30789),e(58565),e(60933);var t=e(29720);a.exports=t.URL},69868:(a,l,e)=>{var t=e(73938);a.exports=function(n){var s=n.return;if(s!==void 0)return t(s.call(n)).value}},69965:(a,l,e)=>{var t=e(49310),n=Function.toString;typeof t.inspectSource!="function"&&(t.inspectSource=function(s){return n.call(s)}),a.exports=t.inspectSource},71229:a=>{a.exports=function(l){if(l==null)throw TypeError("Can't call method on "+l);return l}},72147:(a,l,e)=>{"use strict";var t=e(49306).IteratorPrototype,n=e(53105),s=e(66843),o=e(75282),i=e(52228),c=function(){return this};a.exports=function(h,p,m){var v=p+" Iterator";return h.prototype=n(t,{next:s(1,m)}),o(h,v,!1,!0),i[v]=c,h}},73938:(a,l,e)=>{var t=e(65335);a.exports=function(n){if(!t(n))throw TypeError(String(n)+" is not an object");return n}},75282:(a,l,e)=>{var t=e(43610).f,n=e(31883),s=e(31602),o=s("toStringTag");a.exports=function(i,c,h){i&&!n(i=h?i:i.prototype,o)&&t(i,o,{configurable:!0,value:c})}},77804:(a,l,e)=>{var t=e(7317),n=e(71229),s=function(o){return function(i,c){var h=String(n(i)),p=t(c),m=h.length,v,x;return p<0||p>=m?o?"":void 0:(v=h.charCodeAt(p),v<55296||v>56319||p+1===m||(x=h.charCodeAt(p+1))<56320||x>57343?o?h.charAt(p):v:o?h.slice(p,p+2):(v-55296<<10)+(x-56320)+65536)}};a.exports={codeAt:s(!1),charAt:s(!0)}},79526:(a,l,e)=>{var t=e(73938),n=e(51898);a.exports=function(s){var o=n(s);if(typeof o!="function")throw TypeError(String(s)+" is not iterable");return t(o.call(s))}},81688:(a,l,e)=>{"use strict";var t=e(65077),n=e(92074),s=e(91641),o=e(18916),i=e(9304),c=e(92612),h=e(48664),p=Object.assign,m=Object.defineProperty;a.exports=!p||n(function(){if(t&&p({b:1},p(m({},"a",{enumerable:!0,get:function(){m(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var v={},x={},A=Symbol(),b="abcdefghijklmnopqrst";return v[A]=7,b.split("").forEach(function(N){x[N]=N}),p({},v)[A]!=7||s(p({},x)).join("")!=b})?function(x,A){for(var b=c(x),N=arguments.length,B=1,w=o.f,D=i.f;N>B;)for(var I=h(arguments[B++]),j=w?s(I).concat(w(I)):s(I),R=j.length,S=0,T;R>S;)T=j[S++],(!t||D.call(I,T))&&(b[T]=I[T]);return b}:p},82886:(a,l,e)=>{var t=e(30200),n=e(69965),s=t.WeakMap;a.exports=typeof s=="function"&&/native code/.test(n(s))},83062:(a,l,e)=>{var t=e(43129),n=e(18569),s=e(31602),o=s("toStringTag"),i=n(function(){return arguments}())=="Arguments",c=function(h,p){try{return h[p]}catch(m){}};a.exports=t?n:function(h){var p,m,v;return h===void 0?"Undefined":h===null?"Null":typeof(m=c(p=Object(h),o))=="string"?m:i?n(p):(v=n(p))=="Object"&&typeof p.callee=="function"?"Arguments":v}},83150:a=>{"use strict";var l=2147483647,e=36,t=1,n=26,s=38,o=700,i=72,c=128,h="-",p=/[^\0-\u007E]/,m=/[.\u3002\uFF0E\uFF61]/g,v="Overflow: input needs wider integers to process",x=e-t,A=Math.floor,b=String.fromCharCode,N=function(I){for(var j=[],R=0,S=I.length;R<S;){var T=I.charCodeAt(R++);if(T>=55296&&T<=56319&&R<S){var G=I.charCodeAt(R++);(G&64512)==56320?j.push(((T&1023)<<10)+(G&1023)+65536):(j.push(T),R--)}else j.push(T)}return j},B=function(I){return I+22+75*(I<26)},w=function(I,j,R){var S=0;for(I=R?A(I/o):I>>1,I+=A(I/j);I>x*n>>1;S+=e)I=A(I/x);return A(S+(x+1)*I/(I+s))},D=function(I){var j=[];I=N(I);var R=I.length,S=c,T=0,G=i,W,K;for(W=0;W<I.length;W++)K=I[W],K<128&&j.push(b(K));var V=j.length,ne=V;for(V&&j.push(h);ne<R;){var re=l;for(W=0;W<I.length;W++)K=I[W],K>=S&&K<re&&(re=K);var $=ne+1;if(re-S>A((l-T)/$))throw RangeError(v);for(T+=(re-S)*$,S=re,W=0;W<I.length;W++){if(K=I[W],K<S&&++T>l)throw RangeError(v);if(K==S){for(var k=T,Q=e;;Q+=e){var ae=Q<=G?t:Q>=G+n?n:Q-G;if(k<ae)break;var q=k-ae,oe=e-ae;j.push(b(B(ae+q%oe))),k=A(q/oe)}j.push(b(B(k))),G=w(T,$,ne==V),T=0,++ne}}++T,++S}return j.join("")};a.exports=function(I){var j=[],R=I.toLowerCase().replace(m,".").split("."),S,T;for(S=0;S<R.length;S++)T=R[S],j.push(p.test(T)?"xn--"+D(T):T);return j.join(".")}},84361:(a,l,e)=>{var t=e(31883),n=e(15816),s=e(97632),o=e(43610);a.exports=function(i,c){for(var h=n(c),p=o.f,m=s.f,v=0;v<h.length;v++){var x=h[v];t(i,x)||p(i,x,m(c,x))}}},84516:(a,l,e)=>{var t=e(92074),n=e(31602),s=e(6926),o=n("iterator");a.exports=!t(function(){var i=new URL("b?a=1&b=2&c=3","http://a"),c=i.searchParams,h="";return i.pathname="c%20d",c.forEach(function(p,m){c.delete("b"),h+=m+p}),s&&!i.toJSON||!c.sort||i.href!=="http://a/c%20d?a=1&c=3"||c.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!c[o]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("http://a#\u0431").hash!=="#%D0%B1"||h!=="a1c3"||new URL("http://x",void 0).host!=="x"})},84977:(a,l,e)=>{var t=e(92074),n=/#|\.prototype\./,s=function(p,m){var v=i[o(p)];return v==h?!0:v==c?!1:typeof m=="function"?t(m):!!m},o=s.normalize=function(p){return String(p).replace(n,".").toLowerCase()},i=s.data={},c=s.NATIVE="N",h=s.POLYFILL="P";a.exports=s},87694:(a,l,e)=>{var t=e(65077),n=e(92074),s=e(23262);a.exports=!t&&!n(function(){return Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a!=7})},91641:(a,l,e)=>{var t=e(16347),n=e(30290);a.exports=Object.keys||function(o){return t(o,n)}},92074:a=>{a.exports=function(l){try{return!!l()}catch(e){return!0}}},92612:(a,l,e)=>{var t=e(71229);a.exports=function(n){return Object(t(n))}},97485:(a,l,e)=>{var t=e(30200),n=e(97712),s=e(31883),o=e(55975),i=e(69965),c=e(99206),h=c.get,p=c.enforce,m=String(String).split("String");(a.exports=function(v,x,A,b){var N=b?!!b.unsafe:!1,B=b?!!b.enumerable:!1,w=b?!!b.noTargetGet:!1,D;if(typeof A=="function"&&(typeof x=="string"&&!s(A,"name")&&n(A,"name",x),D=p(A),D.source||(D.source=m.join(typeof x=="string"?x:""))),v===t){B?v[x]=A:o(x,A);return}else N?!w&&v[x]&&(B=!0):delete v[x];B?v[x]=A:n(v,x,A)})(Function.prototype,"toString",function(){return typeof this=="function"&&h(this).source||i(this)})},97632:(a,l,e)=>{var t=e(65077),n=e(9304),s=e(66843),o=e(5476),i=e(50874),c=e(31883),h=e(87694),p=Object.getOwnPropertyDescriptor;l.f=t?p:function(v,x){if(v=o(v),x=i(x,!0),h)try{return p(v,x)}catch(A){}if(c(v,x))return s(!n.f.call(v,x),v[x])}},97712:(a,l,e)=>{var t=e(65077),n=e(43610),s=e(66843);a.exports=t?function(o,i,c){return n.f(o,i,s(1,c))}:function(o,i,c){return o[i]=c,o}},97970:(a,l,e)=>{var t=e(31883),n=e(92612),s=e(25904),o=e(7168),i=s("IE_PROTO"),c=Object.prototype;a.exports=o?Object.getPrototypeOf:function(h){return h=n(h),t(h,i)?h[i]:typeof h.constructor=="function"&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?c:null}},99034:(a,l,e)=>{var t=e(31602),n=e(52228),s=t("iterator"),o=Array.prototype;a.exports=function(i){return i!==void 0&&(n.Array===i||o[s]===i)}},99206:(a,l,e)=>{var t=e(82886),n=e(30200),s=e(65335),o=e(97712),i=e(31883),c=e(49310),h=e(25904),p=e(67708),m="Object already initialized",v=n.WeakMap,x,A,b,N=function(S){return b(S)?A(S):x(S,{})},B=function(S){return function(T){var G;if(!s(T)||(G=A(T)).type!==S)throw TypeError("Incompatible receiver, "+S+" required");return G}};if(t||c.state){var w=c.state||(c.state=new v),D=w.get,I=w.has,j=w.set;x=function(S,T){if(I.call(w,S))throw new TypeError(m);return T.facade=S,j.call(w,S,T),T},A=function(S){return D.call(w,S)||{}},b=function(S){return I.call(w,S)}}else{var R=h("state");p[R]=!0,x=function(S,T){if(i(S,R))throw new TypeError(m);return T.facade=S,o(S,R,T),T},A=function(S){return i(S,R)?S[R]:{}},b=function(S){return i(S,R)}}a.exports={set:x,get:A,has:b,enforce:N,getterFor:B}}},Ee={};function pe(a){var l=Ee[a];if(l!==void 0)return l.exports;var e=Ee[a]={exports:{}};return Ke[a](e,e.exports,pe),e.exports}pe.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(a){if(typeof window=="object")return window}}();var cr={};return(()=>{"use strict";var a=pe(69422);const l="Something went wrong, please, try again.";function e(o){return o&&o.replace(/=+$/,"")}function t(o,i){return Boolean(o)&&Boolean(i)&&e(o)===e(i)}function n(o){let i;if(/code|token|error/.test(window.location.hash)?i=window.location.hash.substring(1):i=location.search.substring(1),!i)throw console.error("No query string in OAuth 2 redirect URL"),new Error(l);const c=new URLSearchParams(i),h=c.get("access_token"),p=c.get("code"),m=c.get("token_type"),v=c.get("expires_in"),x=c.get("state"),A=c.get("error"),b=c.get("error_description")||l;if(A)throw new Error(b);if(!t(x,o==null?void 0:o.state))throw new Error("Outdated OAuth2 state");if((o==null?void 0:o.flow)==="implicit"){if(!h)throw new Error(`Your OAuth2 authentication service provider redirected you without an "access_token".
|
|
7
7
|
Please, try again or make sure your OAuth2 settings are correct.`);if(!m)throw new Error(`Your OAuth2 authentication service provider redirected you without a "token_type".
|
|
8
8
|
Please, try again or make sure your OAuth2 settings are correct.`);o==null||o.successCallback({access_token:h,token_type:m,expires_in:v,auth_code:""})}if((o==null?void 0:o.flow)==="authorizationCode"){if(!p)throw new Error(`Your OAuth2 authentication service provider redirected you without authorization "code".
|
|
@@ -2,7 +2,7 @@ var Ic=Object.defineProperty,jc=Object.defineProperties;var Dc=Object.getOwnProp
|
|
|
2
2
|
* Redocly Reference Docs
|
|
3
3
|
* (c) Copyright 2018 Redocly LLC, all rights reserved.
|
|
4
4
|
* -------------------------------------------------------------
|
|
5
|
-
* Version: "2.45.
|
|
5
|
+
* Version: "2.45.14"
|
|
6
6
|
*/(function(yi,di){typeof exports=="object"&&typeof module=="object"?module.exports=di(require("null")):typeof define=="function"&&define.amd?define(["null"],di):typeof exports=="object"?exports.RedoclyReferenceDocs=di(require("null")):yi.RedoclyReferenceDocs=di(yi.null)})(this,Si=>(()=>{var yi={33:$=>{"use strict";function n(c){return c.replace(/\~/g,"~0").replace(/\//g,"~1")}function e(c){return c.replace(/\~1/g,"/").replace(/~0/g,"~")}function t(c,u,a){if(typeof c=="undefined")return!1;if(!u||typeof u!="string"||u==="#")return typeof a!="undefined"?a:c;if(u.indexOf("#")>=0){let f=u.split("#");if(f[0])return!1;u=f[1],u=decodeURIComponent(u.slice(1).split("+").join(" "))}u.startsWith("/")&&(u=u.slice(1));let o=u.split("/");for(let f=0;f<o.length;f++){o[f]=e(o[f]);let d=typeof a!="undefined"&&f==o.length-1,l=parseInt(o[f],10);if(!Array.isArray(c)||isNaN(l)||l.toString()!==o[f]?l=Array.isArray(c)&&o[f]==="-"?-2:-1:o[f]=f>0?o[f-1]:"",l!=-1||c&&c.hasOwnProperty(o[f]))if(l>=0)d&&(c[l]=a),c=c[l];else{if(l===-2)return d?(Array.isArray(c)&&c.push(a),a):void 0;d&&(c[o[f]]=a),c=c[o[f]]}else if(typeof a!="undefined"&&typeof c=="object"&&!Array.isArray(c))c[o[f]]=d?a:o[f+1]==="0"||o[f+1]==="-"?[]:{},c=c[o[f]];else return!1}return c}$.exports={jptr:t,jpescape:n,jpunescape:e}},65:($,n,e)=>{"use strict";const t=e(84873),c=e(88835),u=e(57975),a=e(29167),o=e(48381),f=e(48381),d=e(33),l=d.jptr,p=e(11264).isRef,g=e(77920).clone,m=e(77920).circularClone,S=e(39880).recurse,I=e(86751),P=e(71319),T=e(56435),b=e(62665).statusCodes,v=e(48430).rE,x="3.0.0";let E;class R extends Error{constructor(be){super(be),this.name="S2OError"}}function j(N,be){let Ve=new R(N);if(Ve.options=be,be.promise)be.promise.reject(Ve);else throw Ve}function C(N,be,Ve){Ve.warnOnly?be[Ve.warnProperty||"x-s2o-warning"]=N:j(N,Ve)}function A(N,be,Ve){if(N.nullable&&Ve.patches++,N.discriminator&&typeof N.discriminator=="string"&&(N.discriminator={propertyName:N.discriminator}),N.items&&Array.isArray(N.items)&&(N.items.length===0?N.items={}:N.items.length===1?N.items=N.items[0]:N.items={anyOf:N.items}),N.type&&Array.isArray(N.type))if(Ve.patch){if(Ve.patches++,N.type.length===0)delete N.type;else{N.oneOf||(N.oneOf=[]);for(let ht of N.type){let Re={};if(ht==="null")N.nullable=!0;else{Re.type=ht;for(let Le of T.arrayProperties)typeof N.prop!="undefined"&&(Re[Le]=N[Le],delete N[Le])}Re.type&&N.oneOf.push(Re)}delete N.type,N.oneOf.length===0?delete N.oneOf:N.oneOf.length<2&&(N.type=N.oneOf[0].type,Object.keys(N.oneOf[0]).length>1&&C("Lost properties from oneOf",N,Ve),delete N.oneOf)}N.type&&Array.isArray(N.type)&&N.type.length===1&&(N.type=N.type[0])}else j("(Patchable) schema type must not be an array",Ve);N.type&&N.type==="null"&&(delete N.type,N.nullable=!0),N.type==="array"&&!N.items&&(N.items={}),N.type==="file"&&(N.type="string",N.format="binary"),typeof N.required=="boolean"&&(N.required&&N.name&&(typeof be.required=="undefined"&&(be.required=[]),Array.isArray(be.required)&&be.required.push(N.name)),delete N.required),N.xml&&typeof N.xml.namespace=="string"&&(N.xml.namespace||delete N.xml.namespace),typeof N.allowEmptyValue!="undefined"&&(Ve.patches++,delete N.allowEmptyValue)}function D(N,be){if(N["x-required"]&&Array.isArray(N["x-required"])&&(N.required||(N.required=[]),N.required=N.required.concat(N["x-required"]),delete N["x-required"]),N["x-anyOf"]&&(N.anyOf=N["x-anyOf"],delete N["x-anyOf"]),N["x-oneOf"]&&(N.oneOf=N["x-oneOf"],delete N["x-oneOf"]),N["x-not"]&&(N.not=N["x-not"],delete N["x-not"]),typeof N["x-nullable"]=="boolean"&&(N.nullable=N["x-nullable"],delete N["x-nullable"]),typeof N["x-discriminator"]=="object"&&typeof N["x-discriminator"].propertyName=="string"){N.discriminator=N["x-discriminator"],delete N["x-discriminator"];for(let Ve in N.discriminator.mapping){let ht=N.discriminator.mapping[Ve];ht.startsWith("#/definitions/")&&(N.discriminator.mapping[Ve]=ht.replace("#/definitions/","#/components/schemas/"))}}}function O(N,be){P.walkSchema(N,{},{},function(Ve,ht,Re){D(Ve,ht),A(Ve,ht,be)})}function k(N){return N.indexOf("#")>=0?N=N.split("#")[1].split("/").pop():N=N.split("/").pop().split(".")[0],encodeURIComponent(T.sanitise(N))}function X(N,be,Ve){let ht=Ve.payload.options;if(p(N,be)){if(!N[be].startsWith("#/components/")){if(N[be]==="#/consumes")delete N[be],Ve.parent[Ve.pkey]=g(ht.openapi.consumes);else if(N[be]==="#/produces")delete N[be],Ve.parent[Ve.pkey]=g(ht.openapi.produces);else if(N[be].startsWith("#/definitions/")){let Re=N[be].replace("#/definitions/","").split("/");const Le=d.jpunescape(Re[0]);let de=E.schemas[decodeURIComponent(Le)];de?Re[0]=de:C("Could not resolve reference "+N[be],N,ht),N[be]="#/components/schemas/"+Re.join("/")}else if(N[be].startsWith("#/parameters/"))N[be]="#/components/parameters/"+T.sanitise(N[be].replace("#/parameters/",""));else if(N[be].startsWith("#/responses/"))N[be]="#/components/responses/"+T.sanitise(N[be].replace("#/responses/",""));else if(N[be].startsWith("#")){let Re=g(d.jptr(ht.openapi,N[be]));if(Re===!1)C("direct $ref not found "+N[be],N,ht);else if(ht.refmap[N[be]])N[be]=ht.refmap[N[be]];else{let Le=N[be];Le=Le.replace("/properties/headers/",""),Le=Le.replace("/properties/responses/",""),Le=Le.replace("/properties/parameters/",""),Le=Le.replace("/properties/schemas/","");let de="schemas",z=Le.lastIndexOf("/schema");if(de=Le.indexOf("/headers/")>z?"headers":Le.indexOf("/responses/")>z?"responses":Le.indexOf("/example")>z?"examples":Le.indexOf("/x-")>z?"extensions":Le.indexOf("/parameters/")>z?"parameters":"schemas",de==="schemas"&&O(Re,ht),de!=="responses"&&de!=="extensions"){let G=de.substr(0,de.length-1);G==="parameter"&&Re.name&&Re.name===T.sanitise(Re.name)&&(G=encodeURIComponent(Re.name));let M=1;for(N["x-miro"]&&(G=k(N["x-miro"]),M="");d.jptr(ht.openapi,"#/components/"+de+"/"+G+M);)M=M===""?2:++M;let V="#/components/"+de+"/"+G+M,te="";de==="examples"&&(Re={value:Re},te="/value"),d.jptr(ht.openapi,V,Re),ht.refmap[N[be]]=V+te,N[be]=V+te}}}}if(delete N["x-miro"],Object.keys(N).length>1){const Re=N[be],Le=Ve.path.indexOf("/schema")>=0;ht.refSiblings==="preserve"||(Le&&ht.refSiblings==="allOf"?(delete N.$ref,Ve.parent[Ve.pkey]={allOf:[{$ref:Re},N]}):Ve.parent[Ve.pkey]={$ref:Re})}}if(be==="x-ms-odata"&&typeof N[be]=="string"&&N[be].startsWith("#/")){let Re=N[be].replace("#/definitions/","").replace("#/components/schemas/","").split("/"),Le=E.schemas[decodeURIComponent(Re[0])];Le?Re[0]=Le:C("Could not resolve reference "+N[be],N,ht),N[be]="#/components/schemas/"+Re.join("/")}}function Y(N,be){for(let Ve in be.refmap)d.jptr(N,Ve,{$ref:be.refmap[Ve]})}function fe(N){for(let be in N)for(let Ve in N[be]){let ht=T.sanitise(Ve);Ve!==ht&&(N[be][ht]=N[be][Ve],delete N[be][Ve])}}function oe(N,be){if(N.type==="basic"&&(N.type="http",N.scheme="basic"),N.type==="oauth2"){let Ve={},ht=N.flow;N.flow==="application"&&(ht="clientCredentials"),N.flow==="accessCode"&&(ht="authorizationCode"),typeof N.authorizationUrl!="undefined"&&(Ve.authorizationUrl=N.authorizationUrl.split("?")[0].trim()||"/"),typeof N.tokenUrl=="string"&&(Ve.tokenUrl=N.tokenUrl.split("?")[0].trim()||"/"),Ve.scopes=N.scopes||{},N.flows={},N.flows[ht]=Ve,delete N.flow,delete N.authorizationUrl,delete N.tokenUrl,delete N.scopes,typeof N.name!="undefined"&&(be.patch?(be.patches++,delete N.name):j("(Patchable) oauth2 securitySchemes should not have name property",be))}}function ve(N){return N&&!N["x-s2o-delete"]}function Te(N,be){if(N.$ref)N.$ref=N.$ref.replace("#/responses/","#/components/responses/");else{N.type&&!N.schema&&(N.schema={}),N.type&&(N.schema.type=N.type),N.items&&N.items.type!=="array"&&(N.items.collectionFormat!==N.collectionFormat&&C("Nested collectionFormats are not supported",N,be),delete N.items.collectionFormat),N.type==="array"?(N.collectionFormat==="ssv"?C("collectionFormat:ssv is no longer supported for headers",N,be):N.collectionFormat==="pipes"?C("collectionFormat:pipes is no longer supported for headers",N,be):N.collectionFormat==="multi"?N.explode=!0:N.collectionFormat==="tsv"?(C("collectionFormat:tsv is no longer supported",N,be),N["x-collectionFormat"]="tsv"):N.style="simple",delete N.collectionFormat):N.collectionFormat&&(be.patch?(be.patches++,delete N.collectionFormat):j("(Patchable) collectionFormat is only applicable to header.type array",be)),delete N.type;for(let Ve of T.parameterTypeProperties)typeof N[Ve]!="undefined"&&(N.schema[Ve]=N[Ve],delete N[Ve]);for(let Ve of T.arrayProperties)typeof N[Ve]!="undefined"&&(N.schema[Ve]=N[Ve],delete N[Ve])}}function ge(N,be){if(N.$ref.indexOf("#/parameters/")>=0){let Ve=N.$ref.split("#/parameters/");N.$ref=Ve[0]+"#/components/parameters/"+T.sanitise(Ve[1])}N.$ref.indexOf("#/definitions/")>=0&&C("Definition used as parameter",N,be)}function Z(N,be){let Ve={};for(let ht of Object.keys(N))Ve[ht]=N[ht],ht==="parameters"&&(Ve.requestBody={},be.rbname&&(Ve[be.rbname]=""));return Ve.requestBody={},Ve}function Oe(N,be,Ve,ht,Re,Le,de){let z={},G=!0,M;if(be&&be.consumes&&typeof be.consumes=="string")if(de.patch)de.patches++,be.consumes=[be.consumes];else return j("(Patchable) operation.consumes must be an array",de);Array.isArray(Le.consumes)||delete Le.consumes;let V=((be?be.consumes:null)||Le.consumes||[]).filter(T.uniqueOnly);if(N&&N.$ref&&typeof N.$ref=="string"){ge(N,de);let te=decodeURIComponent(N.$ref.replace("#/components/parameters/","")),re=!1,Se=Le.components.parameters[te];if((!Se||Se["x-s2o-delete"])&&N.$ref.startsWith("#/")&&(N["x-s2o-delete"]=!0,re=!0),re){let De=N.$ref,_e=l(Le,N.$ref);!_e&&De.startsWith("#/")?C("Could not resolve reference "+De,N,de):_e&&(N=_e)}}if(N&&(N.name||N.in)){typeof N["x-deprecated"]=="boolean"&&(N.deprecated=N["x-deprecated"],delete N["x-deprecated"]),typeof N["x-example"]!="undefined"&&(N.example=N["x-example"],delete N["x-example"]),N.in!=="body"&&!N.type&&(de.patch?(de.patches++,N.type="string"):j("(Patchable) parameter.type is mandatory for non-body parameters",de)),N.type&&typeof N.type=="object"&&N.type.$ref&&(N.type=l(Le,N.type.$ref)),N.type==="file"&&(N["x-s2o-originalType"]=N.type,M=N.type),N.description&&typeof N.description=="object"&&N.description.$ref&&(N.description=l(Le,N.description.$ref)),N.description===null&&delete N.description;let te=N.collectionFormat;if(N.type==="array"&&!te&&(te="csv"),te&&(N.type!=="array"&&(de.patch?(de.patches++,delete N.collectionFormat):j("(Patchable) collectionFormat is only applicable to param.type array",de)),te==="csv"&&(N.in==="query"||N.in==="cookie")&&(N.style="form",N.explode=!1),te==="csv"&&(N.in==="path"||N.in==="header")&&(N.style="simple"),te==="ssv"&&(N.in==="query"?N.style="spaceDelimited":C("collectionFormat:ssv is no longer supported except for in:query parameters",N,de)),te==="pipes"&&(N.in==="query"?N.style="pipeDelimited":C("collectionFormat:pipes is no longer supported except for in:query parameters",N,de)),te==="multi"&&(N.explode=!0),te==="tsv"&&(C("collectionFormat:tsv is no longer supported",N,de),N["x-collectionFormat"]="tsv"),delete N.collectionFormat),N.type&&N.type!=="body"&&N.in!=="formData")if(N.items&&N.schema)C("parameter has array,items and schema",N,de);else{N.schema&&de.patches++,(!N.schema||typeof N.schema!="object")&&(N.schema={}),N.schema.type=N.type,N.items&&(N.schema.items=N.items,delete N.items,S(N.schema.items,null,function(re,Se,De){Se==="collectionFormat"&&typeof re[Se]=="string"&&(te&&re[Se]!==te&&C("Nested collectionFormats are not supported",N,de),delete re[Se])}));for(let re of T.parameterTypeProperties)typeof N[re]!="undefined"&&(N.schema[re]=N[re]),delete N[re]}N.schema&&O(N.schema,de),N["x-ms-skip-url-encoding"]&&N.in==="query"&&(N.allowReserved=!0,delete N["x-ms-skip-url-encoding"])}if(N&&N.in==="formData"){G=!1,z.content={};let te="application/x-www-form-urlencoded";if(V.length&&V.indexOf("multipart/form-data")>=0&&(te="multipart/form-data"),z.content[te]={},N.schema)z.content[te].schema=N.schema,N.schema.$ref&&(z["x-s2o-name"]=decodeURIComponent(N.schema.$ref.replace("#/components/schemas/","")));else{z.content[te].schema={},z.content[te].schema.type="object",z.content[te].schema.properties={},z.content[te].schema.properties[N.name]={};let re=z.content[te].schema,Se=z.content[te].schema.properties[N.name];N.description&&(Se.description=N.description),N.example&&(Se.example=N.example),N.type&&(Se.type=N.type);for(let De of T.parameterTypeProperties)typeof N[De]!="undefined"&&(Se[De]=N[De]);N.required===!0&&(re.required||(re.required=[]),re.required.push(N.name),z.required=!0),typeof N.default!="undefined"&&(Se.default=N.default),Se.properties&&(Se.properties=N.properties),N.allOf&&(Se.allOf=N.allOf),N.type==="array"&&N.items&&(Se.items=N.items,Se.items.collectionFormat&&delete Se.items.collectionFormat),(M==="file"||N["x-s2o-originalType"]==="file")&&(Se.type="string",Se.format="binary"),J(N,Se)}}else N&&N.type==="file"&&(N.required&&(z.required=N.required),z.content={},z.content["application/octet-stream"]={},z.content["application/octet-stream"].schema={},z.content["application/octet-stream"].schema.type="string",z.content["application/octet-stream"].schema.format="binary",J(N,z));if(N&&N.in==="body"){z.content={},N.name&&(z["x-s2o-name"]=(be&&be.operationId?T.sanitiseAll(be.operationId):"")+("_"+N.name).toCamelCase()),N.description&&(z.description=N.description),N.required&&(z.required=N.required),be&&de.rbname&&N.name&&(be[de.rbname]=N.name),N.schema&&N.schema.$ref?z["x-s2o-name"]=decodeURIComponent(N.schema.$ref.replace("#/components/schemas/","")):N.schema&&N.schema.type==="array"&&N.schema.items&&N.schema.items.$ref&&(z["x-s2o-name"]=decodeURIComponent(N.schema.items.$ref.replace("#/components/schemas/",""))+"Array"),V.length||V.push("application/json");for(let te of V)z.content[te]={},z.content[te].schema=g(N.schema||{}),O(z.content[te].schema,de);J(N,z)}if(Object.keys(z).length>0&&(N["x-s2o-delete"]=!0,be))if(be.requestBody&&G){be.requestBody["x-s2o-overloaded"]=!0;let te=be.operationId||Re;C("Operation "+te+" has multiple requestBodies",be,de)}else be.requestBody||(be=Ve[ht]=Z(be,de)),be.requestBody.content&&be.requestBody.content["multipart/form-data"]&&be.requestBody.content["multipart/form-data"].schema&&be.requestBody.content["multipart/form-data"].schema.properties&&z.content["multipart/form-data"]&&z.content["multipart/form-data"].schema&&z.content["multipart/form-data"].schema.properties?(be.requestBody.content["multipart/form-data"].schema.properties=Object.assign(be.requestBody.content["multipart/form-data"].schema.properties,z.content["multipart/form-data"].schema.properties),be.requestBody.content["multipart/form-data"].schema.required=(be.requestBody.content["multipart/form-data"].schema.required||[]).concat(z.content["multipart/form-data"].schema.required||[]),be.requestBody.content["multipart/form-data"].schema.required.length||delete be.requestBody.content["multipart/form-data"].schema.required):be.requestBody.content&&be.requestBody.content["application/x-www-form-urlencoded"]&&be.requestBody.content["application/x-www-form-urlencoded"].schema&&be.requestBody.content["application/x-www-form-urlencoded"].schema.properties&&z.content["application/x-www-form-urlencoded"]&&z.content["application/x-www-form-urlencoded"].schema&&z.content["application/x-www-form-urlencoded"].schema.properties?(be.requestBody.content["application/x-www-form-urlencoded"].schema.properties=Object.assign(be.requestBody.content["application/x-www-form-urlencoded"].schema.properties,z.content["application/x-www-form-urlencoded"].schema.properties),be.requestBody.content["application/x-www-form-urlencoded"].schema.required=(be.requestBody.content["application/x-www-form-urlencoded"].schema.required||[]).concat(z.content["application/x-www-form-urlencoded"].schema.required||[]),be.requestBody.content["application/x-www-form-urlencoded"].schema.required.length||delete be.requestBody.content["application/x-www-form-urlencoded"].schema.required):(be.requestBody=Object.assign(be.requestBody,z),be.requestBody["x-s2o-name"]||(be.requestBody.schema&&be.requestBody.schema.$ref?be.requestBody["x-s2o-name"]=decodeURIComponent(be.requestBody.schema.$ref.replace("#/components/schemas/","")).split("/").join(""):be.operationId&&(be.requestBody["x-s2o-name"]=T.sanitiseAll(be.operationId))));if(N&&!N["x-s2o-delete"]){delete N.type;for(let te of T.parameterTypeProperties)delete N[te];N.in==="path"&&(typeof N.required=="undefined"||N.required!==!0)&&(de.patch?(de.patches++,N.required=!0):j("(Patchable) path parameters must be required:true ["+N.name+" in "+Re+"]",de))}return be}function J(N,be){for(let Ve in N)Ve.startsWith("x-")&&!Ve.startsWith("x-s2o")&&(be[Ve]=N[Ve])}function W(N,be,Ve,ht,Re){if(!N)return!1;if(N.$ref&&typeof N.$ref=="string")N.$ref.indexOf("#/definitions/")>=0?C("definition used as response: "+N.$ref,N,Re):N.$ref.startsWith("#/responses/")&&(N.$ref="#/components/responses/"+T.sanitise(decodeURIComponent(N.$ref.replace("#/responses/",""))));else{if((typeof N.description=="undefined"||N.description===null||N.description===""&&Re.patch)&&(Re.patch?typeof N=="object"&&!Array.isArray(N)&&(Re.patches++,N.description=b[N]||""):j("(Patchable) response.description is mandatory",Re)),typeof N.schema!="undefined"){if(O(N.schema,Re),N.schema.$ref&&typeof N.schema.$ref=="string"&&N.schema.$ref.startsWith("#/responses/")&&(N.schema.$ref="#/components/responses/"+T.sanitise(decodeURIComponent(N.schema.$ref.replace("#/responses/","")))),Ve&&Ve.produces&&typeof Ve.produces=="string")if(Re.patch)Re.patches++,Ve.produces=[Ve.produces];else return j("(Patchable) operation.produces must be an array",Re);ht.produces&&!Array.isArray(ht.produces)&&delete ht.produces;let Le=((Ve?Ve.produces:null)||ht.produces||[]).filter(T.uniqueOnly);Le.length||Le.push("*/*"),N.content={};for(let de of Le){if(N.content[de]={},N.content[de].schema=g(N.schema),N.examples&&N.examples[de]){let z={};z.value=N.examples[de],N.content[de].examples={},N.content[de].examples.response=z,delete N.examples[de]}N.content[de].schema.type==="file"&&(N.content[de].schema={type:"string",format:"binary"})}delete N.schema}for(let Le in N.examples)N.content||(N.content={}),N.content[Le]||(N.content[Le]={}),N.content[Le].examples={},N.content[Le].examples.response={},N.content[Le].examples.response.value=N.examples[Le];if(delete N.examples,N.headers)for(let Le in N.headers)Le.toLowerCase()==="status code"?Re.patch?(Re.patches++,delete N.headers[Le]):j('(Patchable) "Status Code" is not a valid header',Re):Te(N.headers[Le],Re)}}function q(N,be,Ve,ht,Re){for(let Le in N){let de=N[Le];de&&de["x-trace"]&&typeof de["x-trace"]=="object"&&(de.trace=de["x-trace"],delete de["x-trace"]),de&&de["x-summary"]&&typeof de["x-summary"]=="string"&&(de.summary=de["x-summary"],delete de["x-summary"]),de&&de["x-description"]&&typeof de["x-description"]=="string"&&(de.description=de["x-description"],delete de["x-description"]),de&&de["x-servers"]&&Array.isArray(de["x-servers"])&&(de.servers=de["x-servers"],delete de["x-servers"]);for(let z in de)if(T.httpMethods.indexOf(z)>=0||z==="x-amazon-apigateway-any-method"){let G=de[z];if(G&&G.parameters&&Array.isArray(G.parameters)){if(de.parameters)for(let M of de.parameters)typeof M.$ref=="string"&&(ge(M,Ve),M=l(Re,M.$ref)),!G.parameters.find(function(te,re,Se){return te.name===M.name&&te.in===M.in})&&(M.in==="formData"||M.in==="body"||M.type==="file")&&(G=Oe(M,G,de,z,Le,Re,Ve),Ve.rbname&&G[Ve.rbname]===""&&delete G[Ve.rbname]);for(let M of G.parameters)G=Oe(M,G,de,z,z+":"+Le,Re,Ve);Ve.rbname&&G[Ve.rbname]===""&&delete G[Ve.rbname],Ve.debug||G.parameters&&(G.parameters=G.parameters.filter(ve))}if(G&&G.security&&fe(G.security),typeof G=="object"){if(!G.responses){let M={};M.description="Default response",G.responses={default:M}}for(let M in G.responses){let V=G.responses[M];W(V,M,G,Re,Ve)}}if(G&&G["x-servers"]&&Array.isArray(G["x-servers"]))G.servers=G["x-servers"],delete G["x-servers"];else if(G&&G.schemes&&G.schemes.length){for(let M of G.schemes)if((!Re.schemes||Re.schemes.indexOf(M)<0)&&(G.servers||(G.servers=[]),Array.isArray(Re.servers)))for(let V of Re.servers){let te=g(V),re=c.parse(te.url);re.protocol=M,te.url=re.format(),G.servers.push(te)}}if(Ve.debug&&(G["x-s2o-consumes"]=G.consumes||[],G["x-s2o-produces"]=G.produces||[]),G){if(delete G.consumes,delete G.produces,delete G.schemes,G["x-ms-examples"]){for(let M in G["x-ms-examples"]){let V=G["x-ms-examples"][M],te=T.sanitiseAll(M);if(V.parameters)for(let re in V.parameters){let Se=V.parameters[re];for(let De of(G.parameters||[]).concat(de.parameters||[]))De.$ref&&(De=d.jptr(Re,De.$ref)),De.name===re&&!De.example&&(De.examples||(De.examples={}),De.examples[M]={value:Se})}if(V.responses)for(let re in V.responses){if(V.responses[re].headers)for(let Se in V.responses[re].headers){let De=V.responses[re].headers[Se];for(let _e in G.responses[re].headers)if(_e===Se){let et=G.responses[re].headers[_e];et.example=De}}if(V.responses[re].body&&(Re.components.examples[te]={value:g(V.responses[re].body)},G.responses[re]&&G.responses[re].content))for(let Se in G.responses[re].content){let De=G.responses[re].content[Se];De.examples||(De.examples={}),De.examples[M]={$ref:"#/components/examples/"+te}}}}delete G["x-ms-examples"]}if(G.parameters&&G.parameters.length===0&&delete G.parameters,G.requestBody){let M=G.operationId?T.sanitiseAll(G.operationId):T.sanitiseAll(z+Le).toCamelCase(),V=T.sanitise(G.requestBody["x-s2o-name"]||M||"");delete G.requestBody["x-s2o-name"];let te=JSON.stringify(G.requestBody),re=T.hash(te);if(!ht[re]){let De={};De.name=V,De.body=G.requestBody,De.refs=[],ht[re]=De}let Se="#/"+be+"/"+encodeURIComponent(d.jpescape(Le))+"/"+z+"/requestBody";ht[re].refs.push(Se)}}}if(de&&de.parameters){for(let z in de.parameters){let G=de.parameters[z];Oe(G,null,de,null,Le,Re,Ve)}!Ve.debug&&Array.isArray(de.parameters)&&(de.parameters=de.parameters.filter(ve))}}}function ne(N,be){let Ve={};E={schemas:{}},N.security&&fe(N.security);for(let Re in N.components.securitySchemes){let Le=T.sanitise(Re);Re!==Le&&(N.components.securitySchemes[Le]&&j("Duplicate sanitised securityScheme name "+Le,be),N.components.securitySchemes[Le]=N.components.securitySchemes[Re],delete N.components.securitySchemes[Re]),oe(N.components.securitySchemes[Le],be)}for(let Re in N.components.schemas){let Le=T.sanitiseAll(Re),de="";if(Re!==Le){for(;N.components.schemas[Le+de];)de=de?++de:2;N.components.schemas[Le+de]=N.components.schemas[Re],delete N.components.schemas[Re]}E.schemas[Re]=Le+de,O(N.components.schemas[Le+de],be)}be.refmap={},S(N,{payload:{options:be}},X),Y(N,be);for(let Re in N.components.parameters){let Le=T.sanitise(Re);Re!==Le&&(N.components.parameters[Le]&&j("Duplicate sanitised parameter name "+Le,be),N.components.parameters[Le]=N.components.parameters[Re],delete N.components.parameters[Re]);let de=N.components.parameters[Le];Oe(de,null,null,null,Le,N,be)}for(let Re in N.components.responses){let Le=T.sanitise(Re);Re!==Le&&(N.components.responses[Le]&&j("Duplicate sanitised response name "+Le,be),N.components.responses[Le]=N.components.responses[Re],delete N.components.responses[Re]);let de=N.components.responses[Le];if(W(de,Le,null,N,be),de.headers)for(let z in de.headers)z.toLowerCase()==="status code"?be.patch?(be.patches++,delete de.headers[z]):j('(Patchable) "Status Code" is not a valid header',be):Te(de.headers[z],be)}for(let Re in N.components.requestBodies){let Le=N.components.requestBodies[Re],de=JSON.stringify(Le),z=T.hash(de),G={};G.name=Re,G.body=Le,G.refs=[],Ve[z]=G}if(q(N.paths,"paths",be,Ve,N),N["x-ms-paths"]&&q(N["x-ms-paths"],"x-ms-paths",be,Ve,N),!be.debug)for(let Re in N.components.parameters)N.components.parameters[Re]["x-s2o-delete"]&&delete N.components.parameters[Re];be.debug&&(N["x-s2o-consumes"]=N.consumes||[],N["x-s2o-produces"]=N.produces||[]),delete N.consumes,delete N.produces,delete N.schemes;let ht=[];if(N.components.requestBodies={},!be.resolveInternal){let Re=1;for(let Le in Ve){let de=Ve[Le];if(de.refs.length>1){let z="";for(de.name||(de.name="requestBody",z=Re++);ht.indexOf(de.name+z)>=0;)z=z?++z:2;de.name=de.name+z,ht.push(de.name),N.components.requestBodies[de.name]=g(de.body);for(let G in de.refs){let M={};M.$ref="#/components/requestBodies/"+de.name,d.jptr(N,de.refs[G],M)}}}}return N.components.responses&&Object.keys(N.components.responses).length===0&&delete N.components.responses,N.components.parameters&&Object.keys(N.components.parameters).length===0&&delete N.components.parameters,N.components.examples&&Object.keys(N.components.examples).length===0&&delete N.components.examples,N.components.requestBodies&&Object.keys(N.components.requestBodies).length===0&&delete N.components.requestBodies,N.components.securitySchemes&&Object.keys(N.components.securitySchemes).length===0&&delete N.components.securitySchemes,N.components.headers&&Object.keys(N.components.headers).length===0&&delete N.components.headers,N.components.schemas&&Object.keys(N.components.schemas).length===0&&delete N.components.schemas,N.components&&Object.keys(N.components).length===0&&delete N.components,N}function Q(N){return!N||!N.url||typeof N.url!="string"||(N.url=N.url.split("{{").join("{"),N.url=N.url.split("}}").join("}"),N.url.replace(/\{(.+?)\}/g,function(be,Ve){N.variables||(N.variables={}),N.variables[Ve]={default:"unknown"}})),N}function ee(N,be,Ve){if(typeof N.info=="undefined"||N.info===null)if(be.patch)be.patches++,N.info={version:"",title:""};else return Ve(new R("(Patchable) info object is mandatory"));if(typeof N.info!="object"||Array.isArray(N.info))return Ve(new R("info must be an object"));if(typeof N.info.title=="undefined"||N.info.title===null)if(be.patch)be.patches++,N.info.title="";else return Ve(new R("(Patchable) info.title cannot be null"));if(typeof N.info.version=="undefined"||N.info.version===null)if(be.patch)be.patches++,N.info.version="";else return Ve(new R("(Patchable) info.version cannot be null"));if(typeof N.info.version!="string")if(be.patch)be.patches++,N.info.version=N.info.version.toString();else return Ve(new R("(Patchable) info.version must be a string"));if(typeof N.info.logo!="undefined")if(be.patch)be.patches++,N.info["x-logo"]=N.info.logo,delete N.info.logo;else return Ve(new R("(Patchable) info should not have logo property"));if(typeof N.info.termsOfService!="undefined"){if(N.info.termsOfService===null)if(be.patch)be.patches++,N.info.termsOfService="";else return Ve(new R("(Patchable) info.termsOfService cannot be null"));try{let ht=new URL(N.info.termsOfService)}catch(ht){if(be.patch)be.patches++,delete N.info.termsOfService;else return Ve(new R("(Patchable) info.termsOfService must be a URL"))}}}function ae(N,be,Ve){if(typeof N.paths=="undefined")if(be.patch)be.patches++,N.paths={};else return Ve(new R("(Patchable) paths object is mandatory"))}function ye(N,be){const Ve=new WeakSet;S(N,{identityDetection:!0},function(ht,Re,Le){typeof ht[Re]=="object"&&ht[Re]!==null&&(Ve.has(ht[Re])?be.anchors?ht[Re]=g(ht[Re]):j("YAML anchor or merge key at "+Le.path,be):Ve.add(ht[Re]))})}function Ae(N,be,Ve){return a(Ve,new Promise(function(ht,Re){if(N||(N={}),be.original=N,be.text||(be.text=f.stringify(N)),be.externals=[],be.externalRefs={},be.rewriteRefs=!0,be.preserveMiro=!0,be.promise={},be.promise.resolve=ht,be.promise.reject=Re,be.patches=0,be.cache||(be.cache={}),be.source&&(be.cache[be.source]=be.original),ye(N,be),N.openapi&&typeof N.openapi=="string"&&N.openapi.startsWith("3.")){be.openapi=m(N),ee(be.openapi,be,Re),ae(be.openapi,be,Re),I.optionalResolve(be).then(function(){return be.direct?ht(be.openapi):ht(be)}).catch(function(de){console.warn(de),Re(de)});return}if(!N.swagger||N.swagger!="2.0")return Re(new R("Unsupported swagger/OpenAPI version: "+(N.openapi?N.openapi:N.swagger)));let Le=be.openapi={};if(Le.openapi=typeof be.targetVersion=="string"&&be.targetVersion.startsWith("3.")?be.targetVersion:x,be.origin){Le["x-origin"]||(Le["x-origin"]=[]);let de={};de.url=be.source||be.origin,de.format="swagger",de.version=N.swagger,de.converter={},de.converter.url="https://github.com/mermade/oas-kit",de.converter.version=v,Le["x-origin"].push(de)}if(Le=Object.assign(Le,m(N)),delete Le.swagger,S(Le,{},function(de,z,G){de[z]===null&&!z.startsWith("x-")&&z!=="default"&&G.path.indexOf("/example")<0&&delete de[z]}),N.host)for(let de of Array.isArray(N.schemes)?N.schemes:[""]){let z={},G=(N.basePath||"").replace(/\/$/,"");z.url=(de?de+":":"")+"//"+N.host+G,Q(z),Le.servers||(Le.servers=[]),Le.servers.push(z)}else if(N.basePath){let de={};de.url=N.basePath,Q(de),Le.servers||(Le.servers=[]),Le.servers.push(de)}if(delete Le.host,delete Le.basePath,Le["x-servers"]&&Array.isArray(Le["x-servers"])&&(Le.servers=Le["x-servers"],delete Le["x-servers"]),N["x-ms-parameterized-host"]){let de=N["x-ms-parameterized-host"],z={};z.url=de.hostTemplate+(N.basePath?N.basePath:""),z.variables={};const G=z.url.match(/\{\w+\}/g);for(let M in de.parameters){let V=de.parameters[M];V.$ref&&(V=g(l(Le,V.$ref))),M.startsWith("x-")||(delete V.required,delete V.type,delete V.in,typeof V.default=="undefined"&&(V.enum?V.default=V.enum[0]:V.default="none"),V.name||(V.name=G[M].replace("{","").replace("}","")),z.variables[V.name]=V,delete V.name)}Le.servers||(Le.servers=[]),de.useSchemePrefix===!1?Le.servers.push(z):N.schemes.forEach(M=>{Le.servers.push(Object.assign({},z,{url:M+"://"+z.url}))}),delete Le["x-ms-parameterized-host"]}ee(Le,be,Re),ae(Le,be,Re),typeof Le.consumes=="string"&&(Le.consumes=[Le.consumes]),typeof Le.produces=="string"&&(Le.produces=[Le.produces]),Le.components={},Le["x-callbacks"]&&(Le.components.callbacks=Le["x-callbacks"],delete Le["x-callbacks"]),Le.components.examples={},Le.components.headers={},Le["x-links"]&&(Le.components.links=Le["x-links"],delete Le["x-links"]),Le.components.parameters=Le.parameters||{},Le.components.responses=Le.responses||{},Le.components.requestBodies={},Le.components.securitySchemes=Le.securityDefinitions||{},Le.components.schemas=Le.definitions||{},delete Le.definitions,delete Le.responses,delete Le.parameters,delete Le.securityDefinitions,I.optionalResolve(be).then(function(){ne(be.openapi,be),be.direct?ht(be.openapi):ht(be)}).catch(function(de){console.warn(de),Re(de)})}))}function Ne(N,be,Ve){return a(Ve,new Promise(function(ht,Re){let Le=null,de=null;try{Le=JSON.parse(N),be.text=JSON.stringify(Le,null,2)}catch(z){de=z;try{Le=f.parse(N,{schema:"core",prettyErrors:!0}),be.sourceYaml=!0,be.text=N}catch(G){de=G}}Le?Ae(Le,be).then(z=>ht(z)).catch(z=>Re(z)):Re(new R(de?de.message:"Could not parse string"))}))}function ct(N,be,Ve){return a(Ve,new Promise(function(ht,Re){be.origin=!0,be.source||(be.source=N),be.verbose&&console.warn("GET "+N),be.fetch||(be.fetch=o);const Le=Object.assign({},be.fetchOptions,{agent:be.agent});be.fetch(N,Le).then(function(de){if(de.status!==200)throw new R(`Received status code ${de.status}: ${N}`);return de.text()}).then(function(de){Ne(de,be).then(z=>ht(z)).catch(z=>Re(z))}).catch(function(de){Re(de)})}))}function $e(N,be,Ve){return a(Ve,new Promise(function(ht,Re){t.readFile(N,be.encoding||"utf8",function(Le,de){Le?Re(Le):(be.sourceFile=N,Ne(de,be).then(z=>ht(z)).catch(z=>Re(z)))})}))}function He(N,be,Ve){return a(Ve,new Promise(function(ht,Re){let Le="";N.on("data",function(de){Le+=de}).on("end",function(){Ne(Le,be).then(de=>ht(de)).catch(de=>Re(de))})}))}$.exports={S2OError:R,targetVersion:x,convert:Ae,convertObj:Ae,convertUrl:ct,convertStr:Ne,convertFile:$e,convertStream:He}},227:$=>{/*!
|
|
7
7
|
* Stickyfill -- `position: sticky` polyfill
|
|
8
8
|
* v. 1.1.1 | https://github.com/wilddeer/stickyfill
|
|
@@ -2307,7 +2307,7 @@ ${d.message}`,location:f.child("description")})}}}});n.InfoDescriptionOverride=c
|
|
|
2307
2307
|
* Redocly Reference Docs
|
|
2308
2308
|
* (c) Copyright 2018 Redocly LLC, all rights reserved.
|
|
2309
2309
|
* -------------------------------------------------------------
|
|
2310
|
-
* Version: "2.45.
|
|
2310
|
+
* Version: "2.45.14"
|
|
2311
2311
|
*/(()=>{var Y={291:(x,E,T)=>{var j,C;/**
|
|
2312
2312
|
* lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.9
|
|
2313
2313
|
* Copyright (C) 2020 Oliver Nightingale
|
|
@@ -2812,7 +2812,7 @@ ${Gt.indent}`,variablesPrefix:Gt.variablesPrefix,capitalize:!0,lang:T.PHP});fn.l
|
|
|
2812
2812
|
`).trim():""}function Ki(_,xe){return`
|
|
2813
2813
|
`+_.map(({name:en,value:cn})=>((xe==null?void 0:xe.indent)||"")+`${en} = "${cn}"`).join(`,
|
|
2814
2814
|
`)+`
|
|
2815
|
-
`}var zo=Object.defineProperty,po=Object.defineProperties,hs=Object.getOwnPropertyDescriptors,pi=Object.getOwnPropertySymbols,ho=Object.prototype.hasOwnProperty,Yi=Object.prototype.propertyIsEnumerable,To=(_,xe,ze)=>xe in _?zo(_,xe,{enumerable:!0,configurable:!0,writable:!0,value:ze}):_[xe]=ze,io=(_,xe)=>{for(var ze in xe||(xe={}))ho.call(xe,ze)&&To(_,ze,xe[ze]);if(pi)for(var ze of pi(xe))Yi.call(xe,ze)&&To(_,ze,xe[ze]);return _},Zo=(_,xe)=>po(_,hs(xe));const Ni=1,ui={javascript:lr,node:Or,python:vn,shell:Dn,java8:Fr,java:Ti,csharp:Vs,csharpNewtonsoft:ca,go:Is,php:co,ruby:fi,r:{info:{key:"r",title:"R",extname:".r",default:"httr"},httr:function(_,xe,{target:ze,client:en}){var cn,Gt,rn,Ht;const Lt=Object.assign({indent:" ",showBoilerplate:!0,printBody:!0},xe),It=new Jn({indentation:Lt.indent,variablesPrefix:Lt.variablesPrefix,lang:T.R}),sn=_.method.toUpperCase(),on=(cn=_.securityOAuth2ExtraCalls)==null?void 0:cn[0];if(Lt.showBoilerplate&&It.push("library(httr)").blank(),on){const zn="oauth2_",Rn=new Zt(on).convert(ze,en,Zo(io({},Lt),{variablesPrefix:zn,showBoilerplate:!1})),Hn=`${zn}data_req`;It.push(Rn).push(`access_token = content(${Hn}, "parsed")$access_token`).blank(),_.allHeaders.Authorization='paste("Bearer", access_token)'}let Bt,fn="";if(_!=null&&_.postData)switch((0,l.Ej)((Gt=_==null?void 0:_.postData)==null?void 0:Gt.mimeType)){case p.m.URL_ENCODED:{Bt="form",fn=It.var("body");const zn=Ki(_.postData.params,Lt);It.push(`${fn} <- list(${zn})`).blank();break}case p.m.JSON:{Bt="json",fn=It.var("body");const zn=Uo(_.postData.jsonObj,Lt);It.push(`${fn} = '${zn}'`).blank();break}case p.m.MULTIPART:{Bt="multipart",fn=It.var("body");const zn=Ki(_.postData.params,Lt);It.push(`${fn} <- list(${zn})`).blank();break}default:(rn=_.postData)!=null&&rn.text&&(fn=It.var("body"),Bt="raw",It.push(`${fn} = ${Uo((Ht=_.postData)==null?void 0:Ht.text)}`).blank())}at(_,It),Object.keys(io(io({},_.pathParameters),_.serverVariables)).length&&It.blank().push("# create you own operator").push('"%&%" <- function(x, y)paste0(x,y)').blank();const _t=Ze(_,It);It.push(`url = ${_t}`).blank();const cr=It.var("data_req");if(It.push(`${cr} <- ${sn}(`),It.push(Ni,"url,"),_.basicAuth){const{username:zn,password:Rn}=_.basicAuth;It.push(Ni,`authenticate("${zn}", "${Rn}")`)}if(Object.keys(_.allHeaders).length){const zn=`${Object.keys(_.allHeaders).map(Rn=>`"${Rn}" = ${_.allHeaders[Rn].startsWith("paste")?_.allHeaders[Rn]:`"${_.allHeaders[Rn]}"`}`).join(", ")}`;zn&&It.push(Ni,`add_headers(${zn}),`)}return fn&&(It.push(Ni,`body = ${fn},`),It.push(Ni,`encode = "${Bt}",`)),It.push(Ni,"verbose()"),It.push(")"),Lt.printBody&&It.blank().push(`content(${cr}${Bt==="raw"?', "text"':""})`),It.join()}}};function Ei(_,xe){if(_[xe.name]===void 0)return _[xe.name]=xe.value,_;if(_[xe.name]instanceof Array)return _[xe.name].push(xe.value),_;const ze=[_[xe.name],xe.value];return _[xe.name]=ze,_}var qi=Object.defineProperty,Co=Object.defineProperties,F=Object.getOwnPropertyDescriptors,U=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,ke=(_,xe,ze)=>xe in _?qi(_,xe,{enumerable:!0,configurable:!0,writable:!0,value:ze}):_[xe]=ze,lt=(_,xe)=>{for(var ze in xe||(xe={}))ie.call(xe,ze)&&ke(_,ze,xe[ze]);if(U)for(var ze of U(xe))Me.call(xe,ze)&&ke(_,ze,xe[ze]);return _},Tt=(_,xe)=>Co(_,F(xe)),Rt=(_,xe,ze)=>(ke(_,typeof xe!="symbol"?xe+"":xe,ze),ze);class Zt{constructor(xe){Rt(this,"request");const ze=lt({},xe);this.request=this.prepare(Tt(lt({},ze),{httpVersion:ze.httpVersion||"HTTP/1.1",queryString:ze.queryString||[],headers:ze.headers||[],cookies:ze.cookies||[],postData:ze.postData?Tt(lt({},ze.postData),{jsonObj:void 0,paramsObj:void 0}):void 0,bodySize:0,headersSize:0,queryObj:{},headersObj:{},cookiesObj:{},allHeaders:{},uriObj:{},fullUrl:"",pathParameters:ze.pathParameters||{},serverVariables:ze.serverVariables||{}}))}prepare(xe){var ze;if(xe.queryString&&xe.queryString.length&&(xe.queryObj=xe.queryString.reduce(Ei,{})),xe.headers&&xe.headers.length){const Gt=/^HTTP\/2/;xe.headersObj=xe.headers.reduce(function(rn,Ht){let Lt=Ht.name;return xe.httpVersion.match(Gt)&&(Lt=Lt.toLowerCase()),rn[Lt]=Ht.value,rn},{})}xe.cookies&&xe.cookies.length&&(xe.cookiesObj=xe.cookies.reduceRight(function(Gt,rn){return Gt[rn.name]=rn.value,Gt},{}));const en=xe.cookies.map(function(Gt){return encodeURIComponent(Gt.name)+"="+encodeURIComponent(Gt.value)});if(en.length&&(xe.allHeaders.cookie=en.join("; ")),xe.postData)switch((0,l.Ej)(xe.postData.mimeType)){case"multipart/mixed":case"multipart/related":case p.m.MULTIPART:case"multipart/alternative":break;case p.m.URL_ENCODED:(ze=xe.postData)!=null&&ze.params?(xe.postData.paramsObj=xe.postData.params.reduce(Ei,{}),xe.postData.text=m.stringify(xe.postData.paramsObj)):xe.postData.text="";break;case"text/json":case"text/x-json":case p.m.JSON:case"application/x-json":if(xe.postData.text)try{xe.postData.jsonObj=JSON.parse(xe.postData.text)}catch(Gt){xe.postData.mimeType="text/plain"}break}xe.allHeaders=Object.assign(xe.allHeaders,xe.headersObj),xe.uriObj=new URL(xe.url),xe.queryObj=Object.assign(xe.queryObj,zt(xe.uriObj.searchParams)),xe.uriObj.query="",xe.uriObj.search="",xe.uriObj.path=xe.uriObj.pathname=(0,l.rE)(xe.uriObj.pathname);const cn=new URL(xe.uriObj.toString());return cn.search="",xe.url=(0,l.rE)(cn.toString()),xe.uriObj.query=xe.queryObj,xe.uriObj.search=m.stringify(xe.queryObj),xe.uriObj.search&&(xe.uriObj.path=xe.uriObj.pathname+"?"+xe.uriObj.search),xe.fullUrl=(0,l.rE)(cn.toString()),xe}convert(xe,ze,en){!en&&ze&&(en=ze);const cn=this._matchTarget(xe,ze);if(cn){const Gt=cn(this.request,en,{target:xe,client:ze});return Gt.length===1?Gt[0]:Gt}throw new Error("Can not match target")}_matchTarget(xe,ze){return Object.prototype.hasOwnProperty.call(ui,xe)?typeof ze=="string"&&typeof ui[xe][ze]=="function"?ui[xe][ze]:ui[xe][ui[xe].info.default]:!1}}var Fn=Object.defineProperty,mr=Object.defineProperties,Kr=Object.getOwnPropertyDescriptors,si=Object.getOwnPropertySymbols,L=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable,he=(_,xe,ze)=>xe in _?Fn(_,xe,{enumerable:!0,configurable:!0,writable:!0,value:ze}):_[xe]=ze,ue=(_,xe)=>{for(var ze in xe||(xe={}))L.call(xe,ze)&&he(_,ze,xe[ze]);if(si)for(var ze of si(xe))K.call(xe,ze)&&he(_,ze,xe[ze]);return _},je=(_,xe)=>mr(_,Kr(xe));function Je(_,{exampleName:xe="",skipOptionalParameters:ze=!1,withOAuth2Call:en=!1,spec:cn,generatedPayloadSamplesMaxDepth:Gt=8,pathParams:rn={},properties:Ht={}}){var Lt,It,sn,on,Bt,fn,_t,cr,zn,Rn;const{securityHeaders:Hn,securityCookies:Vn,securityQueries:ni,securityOAuth2ExtraCalls:Qi,basicAuth:Ro}=Un((Lt=_.security)==null?void 0:Lt[0],en),Xr=(sn=(It=_.requestBody)==null?void 0:It.content)==null?void 0:sn.active,oo={skipNonRequired:ze,skipReadOnly:!0,maxSampleDepth:Gt},Io={path:(0,o.HO)((on=_==null?void 0:_.requestValues)==null?void 0:on.path),cookie:(0,o.HO)((Bt=_==null?void 0:_.requestValues)==null?void 0:Bt.cookie),header:(0,o.HO)((fn=_==null?void 0:_.requestValues)==null?void 0:fn.header),query:(0,o.HO)((_t=_==null?void 0:_.requestValues)==null?void 0:_t.query),body:(0,o.HO)((cr=_==null?void 0:_.requestValues)==null?void 0:cr.body)};let Ta=!1;const Ca=_.parameters.filter(Mr=>Mr.in==="header").filter(Mr=>!(ze&&!Mr.required)).map(Mr=>{var ri;return{name:Mr.name,value:((ri=Io.header)==null?void 0:ri[Mr.name])||(0,d.dt)("header",Mr.name)||(0,f.serializeParameterValue)(Mr,c.XM(Mr.schema.rawSchema,oo,cn))}}).map(Mr=>(Xr!=null&&Xr.name&&Mr.name.toLowerCase()==="content-type"&&(Ta=!0,Mr.value=Xr.name),Mr)).concat(Hn);!Ta&&(Xr!=null&&Xr.name)&&Ca.unshift({name:"Content-Type",value:Xr==null?void 0:Xr.name});const Ka=_.parameters.filter(Mr=>Mr.in==="cookie").filter(Mr=>!(ze&&!Mr.required)).map(Mr=>(0,t.parse)((0,f.serializeParameterValue)(Mr,c.XM(Mr.schema.rawSchema,oo,cn)))).reduce((Mr,ri)=>{var yo;for(const[Bi,_i]of Object.entries(ri))Mr.push({name:Bi,value:String(((yo=Io.cookie)==null?void 0:yo[Bi])||_i)});return Mr},[]).concat(Vn),Ra=_.parameters.filter(Mr=>Mr.in==="query").filter(Mr=>!(ze&&!Mr.required)).map(Mr=>(0,t.parse)((0,f.serializeParameterValue)(Mr,c.XM(Mr.schema.rawSchema,oo,cn)))).reduce((Mr,ri)=>{var yo,Bi,_i;for(const[eo,Qa]of Object.entries(ri))Mr.push({name:eo,value:(0,f.isArrayOfObjects)((yo=Io.query)==null?void 0:yo[eo])&&JSON.stringify((0,f.deleteEmptyArrayItem)((Bi=Io.query)==null?void 0:Bi[eo]))||String(((_i=Io.query)==null?void 0:_i[eo])||Qa)});return Mr},[]).concat(ni),pa=(zn=_.activeServer)==null?void 0:zn.url.replace(/\/$/,""),Zs=_.path.replace(/^\//,""),[ha]=pa.split("#"),Ya=`${ha}/${Zs}`,ma=_.parameters.filter(Mr=>Mr.in==="path").reduce((Mr,ri)=>{var yo;const{in:Bi,name:_i}=ri;return Mr[_i]=((yo=Io.path)==null?void 0:yo[_i])||rn[_i]||(0,d.dt)(Bi,_i),Mr},{}),Ia=(Rn=Xr==null?void 0:Xr.examples)==null?void 0:Rn[xe],qs=(Xr==null?void 0:Xr.examples)||{},[mo]=Object.values(qs),qo=Io.body||(Ia==null?void 0:Ia.value)||(mo==null?void 0:mo.value)||(Xr==null?void 0:Xr.schema)&&c.XM(Xr==null?void 0:Xr.schema.rawSchema,oo,cn),ea=Xr==null?void 0:Xr.name.toLowerCase();let go,ga=[];switch((0,l.Ej)(ea)){case p.m.JSON:case p.m.XML:go=JSON.stringify(ci(qo,Ht));break;case p.m.URL_ENCODED:case p.m.MULTIPART:go=(0,t.stringify)(ci(qo,Ht)),ga=ei(ci(qo,Ht));break;default:go=String(qo||"")}const $s=go?{mimeType:(Xr==null?void 0:Xr.name)||p.m.OCTET_STREAM,text:go,params:ga}:void 0,Ga=_.responses.map(Mr=>Mr.code);return{method:_.httpVerb,url:Ya,httpVersion:"HTTP/1.1",cookies:Ka,headers:Ca,queryString:Ra,postData:$s,headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:Qi,basicAuth:Ro,pathParameters:ma,serverVariables:_.activeServer.variables,allResponseCodes:Ga}}const pt={withImports:!0,withComments:!1},Wt={curl:{code:"shell",defaultTarget:"curl",defaultOptions:je(ue({},pt),{short:!0})},JavaScript:{code:"javascript",defaultTarget:"fetch",defaultOptions:je(ue({},pt),{withImports:!1})},"Node.js":{code:"node",defaultTarget:"fetch",defaultOptions:ue({},pt)},Python:{code:"python",defaultTarget:"requests",defaultOptions:ue({},pt)},"Java8+Apache":{code:"java8",defaultTarget:"apachehttp",defaultOptions:ue({},pt)},Java:{code:"java",defaultTarget:"httpclient",defaultOptions:ue({},pt)},"C#":{code:"csharp",defaultTarget:"httpclient",defaultOptions:ue({},pt)},"C#+Newtonsoft":{code:"csharpNewtonsoft",defaultTarget:"httpclient",defaultOptions:ue({},pt)},Go:{code:"go",defaultTarget:"http.DefaultClient",defaultOptions:ue({},pt)},PHP:{code:"php",defaultTarget:"curl",defaultOptions:ue({},pt)},Ruby:{code:"ruby",defaultTarget:"net::http",defaultOptions:ue({},pt)},R:{code:"r",defaultTarget:"httr",defaultOptions:ue({},pt)}};function un({lang:_,operation:xe,exampleName:ze,pathParams:en,properties:cn,options:Gt={}}){try{const{skipOptionalParameters:rn,withOAuth2Call:Ht,spec:Lt,generatedPayloadSamplesMaxDepth:It}=Gt,sn=Je(xe,{exampleName:ze,pathParams:en,properties:cn,skipOptionalParameters:rn,withOAuth2Call:Ht,spec:Lt,generatedPayloadSamplesMaxDepth:It}),on=new Zt(sn);return Wt[_]?on.convert(Wt[_].code,Wt[_].defaultTarget,ue(ue({},Wt[_].defaultOptions),Gt)):"Language is not supported."}catch(rn){return console.error(rn),"Failed to generate code sample."}}function Un(_,xe){var ze,en,cn,Gt;const rn={securityHeaders:[],securityCookies:[],securityQueries:[],securityOAuth2ExtraCalls:[],basicAuth:void 0};for(const Ht of(_==null?void 0:_.schemes)||[]){const Lt=(0,d.VQ)(Ht.id);switch(Ht.type){case"openIdConnect":(ze=rn.securityHeaders)==null||ze.push({name:"Authorization",value:"Bearer <YOUR_TOKEN_HERE>"});break;case"oauth2":{const It=Lt.token?`${Lt.token.token_type||"Bearer"} ${Lt.token.access_token}`:"Bearer <YOUR_TOKEN_HERE>";Ht.flows.clientCredentials&&xe?rn.securityOAuth2ExtraCalls.push(Jr(Ht.flows.clientCredentials,Ht.scopes,Lt)):Ht.flows.password&&xe&&rn.securityOAuth2ExtraCalls.push(ar(Ht.flows.password,Ht.scopes,Lt)),(en=rn.securityHeaders)==null||en.push({name:"Authorization",value:It});break}case"apiKey":{const It=Lt.raw||"YOUR_API_KEY_HERE";Ht.in==="header"&&((cn=rn.securityHeaders)==null||cn.push({name:Ht.name,value:It})),Ht.in==="cookie"&&rn.securityCookies.push({name:Ht.name,value:It}),Ht.in==="query"&&rn.securityQueries.push({name:Ht.name,value:It});break}case"http":Ht.scheme==="basic"?rn.basicAuth={username:Lt.username||`<${In.toSnakeCase((0,g.l)("tryItAuthBasicUsername"))}>`,password:Lt.password||`<${In.toSnakeCase((0,g.l)("tryItAuthBasicPassword"))}>`}:(Gt=rn.securityHeaders)==null||Gt.push({name:"Authorization",value:`${xi(Ht.scheme||"bearer")} <YOUR_${Ht.bearerFormat||"TOKEN"}_HERE>`});break}}return rn}function ar(_,xe,ze){return{method:"POST",url:_.tokenUrl,httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:p.m.URL_ENCODED},{name:"Accept",value:p.m.JSON}],queryString:[],postData:{mimeType:p.m.URL_ENCODED,text:"",params:[{name:"grant_type",value:"password"},{name:"client_id",value:ze.client_id||"YOUR_CLIENT_ID"},{name:"client_secret",value:ze.client_secret||"YOUR_CLIENT_SECRET"},{name:"username",value:ze.username||"<username>"},{name:"password",value:ze.password||"<password>"},xe.length?{name:"scope",value:xe.join(" ")}:void 0].filter($i)},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[]}}function Jr(_,xe,ze){return{method:"POST",url:_.tokenUrl,httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:p.m.URL_ENCODED},{name:"Accept",value:p.m.JSON}],queryString:[],postData:{mimeType:p.m.URL_ENCODED,text:"",params:[{name:"grant_type",value:"client_credentials"},{name:"client_id",value:ze.client_id||"YOUR_CLIENT_ID"},{name:"client_secret",value:ze.client_secret||"YOUR_CLIENT_SECRET"},xe.length?{name:"scope",value:xe.join(" ")}:void 0].filter($i)},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[]}}function ci(_,xe){if(_){if(typeof _=="object")return a()(_,xe,{arrayMerge:l.nG});try{return a()(JSON.parse(_),xe,{arrayMerge:l.nG})}catch(ze){return!1}}return!1}function ei(_,xe=""){const ze=[];if(Array.isArray(_))return _.map(en=>({name:`${xe}`,value:String(en)}));for(const[en,cn]of Object.entries(_)){const Gt=xe?`${xe}[${en}]`:en;typeof cn=="object"&&cn!==null?ze.push(...ei(cn,Gt)):ze.push({name:Gt,value:String(cn)})}return ze}function $i(_){return _!==void 0}function xi(_){return _.charAt(0).toUpperCase()+_.slice(1)}},91641:($,n,e)=>{var t=e(16347),c=e(30290);$.exports=Object.keys||function(a){return t(a,c)}},91913:($,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.PathsKebabCase=void 0;const e=()=>({PathItem(t,{report:c,key:u}){u.substr(1).split("/").filter(o=>o!=="").every(o=>/^{.+}$/.test(o)||/^[a-z0-9-.]+$/.test(o))||c({message:`\`${u}\` does not use kebab-case.`,location:{reportOnKey:!0}})}});n.PathsKebabCase=e},92074:$=>{$.exports=function(n){try{return!!n()}catch(e){return!0}}},92078:($,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Stats=void 0;const e=t=>({ExternalDocs:{leave(){t.externalDocs.total++}},ref:{enter(c){t.refs.items.add(c.$ref)}},Tag:{leave(c){t.tags.items.add(c.name)}},Link:{leave(c){t.links.items.add(c.operationId)}},Root:{leave(){t.parameters.total=t.parameters.items.size,t.refs.total=t.refs.items.size,t.links.total=t.links.items.size,t.tags.total=t.tags.items.size}},WebhooksMap:{Operation:{leave(c){c.tags.forEach(u=>{t.tags.items.add(u)})}}},Paths:{PathItem:{leave(){t.pathItems.total++},Operation:{leave(c){t.operations.total++,c.tags&&c.tags.forEach(u=>{t.tags.items.add(u)})}},Parameter:{leave(c){t.parameters.items.add(c.name)}}}},NamedSchemas:{Schema:{leave(){t.schemas.total++}}}});n.Stats=e},92157:($,n,e)=>{"use strict";var t=e(51605),c=e(91344).findIndex,u=e(40298),a="findIndex",o=!0;a in[]&&Array(1)[a](function(){o=!1}),t({target:"Array",proto:!0,forced:o},{findIndex:function(d){return c(this,d,arguments.length>1?arguments[1]:void 0)}}),u(a)},92276:($,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.validateAdditionalItems=void 0;const t=e(29288),c=e(62124),a={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:f}})=>(0,t.str)`must NOT have more than ${f} items`,params:({params:{len:f}})=>(0,t._)`{limit: ${f}}`},code(f){const{parentSchema:d,it:l}=f,{items:p}=d;if(!Array.isArray(p)){(0,c.checkStrictMode)(l,'"additionalItems" is ignored when "items" is not an array of schemas');return}o(f,p)}};function o(f,d){const{gen:l,schema:p,data:g,keyword:m,it:S}=f;S.items=!0;const I=l.const("len",(0,t._)`${g}.length`);if(p===!1)f.setParams({len:d.length}),f.pass((0,t._)`${I} <= ${d.length}`);else if(typeof p=="object"&&!(0,c.alwaysValidSchema)(S,p)){const T=l.var("valid",(0,t._)`${I} <= ${d.length}`);l.if((0,t.not)(T),()=>P(T)),f.ok(T)}function P(T){l.forRange("i",d.length,I,b=>{f.subschema({keyword:m,dataProp:b,dataPropType:c.Type.Num},T),S.allErrors||l.if((0,t.not)(T),()=>l.break())})}}n.validateAdditionalItems=o,n.default=a},92327:($,n,e)=>{"use strict";var t=e(51605),c=e(30200),u=e(84977),a=e(97485),o=e(82014),f=e(52929),d=e(65190),l=e(65335),p=e(92074),g=e(97499),m=e(75282),S=e(93054);$.exports=function(I,P,T){var b=I.indexOf("Map")!==-1,v=I.indexOf("Weak")!==-1,x=b?"set":"add",E=c[I],R=E&&E.prototype,j=E,C={},A=function(oe){var ve=R[oe];a(R,oe,oe=="add"?function(ge){return ve.call(this,ge===0?0:ge),this}:oe=="delete"?function(Te){return v&&!l(Te)?!1:ve.call(this,Te===0?0:Te)}:oe=="get"?function(ge){return v&&!l(ge)?void 0:ve.call(this,ge===0?0:ge)}:oe=="has"?function(ge){return v&&!l(ge)?!1:ve.call(this,ge===0?0:ge)}:function(ge,Z){return ve.call(this,ge===0?0:ge,Z),this})},D=u(I,typeof E!="function"||!(v||R.forEach&&!p(function(){new E().entries().next()})));if(D)j=T.getConstructor(P,I,b,x),o.REQUIRED=!0;else if(u(I,!0)){var O=new j,k=O[x](v?{}:-0,1)!=O,X=p(function(){O.has(1)}),Y=g(function(oe){new E(oe)}),fe=!v&&p(function(){for(var oe=new E,ve=5;ve--;)oe[x](ve,ve);return!oe.has(-0)});Y||(j=P(function(oe,ve){d(oe,j,I);var Te=S(new E,oe,j);return ve!=null&&f(ve,Te[x],{that:Te,AS_ENTRIES:b}),Te}),j.prototype=R,R.constructor=j),(X||fe)&&(A("delete"),A("has"),b&&A("get")),(fe||k)&&A(x),v&&R.clear&&delete R.clear}return C[I]=j,t({global:!0,forced:j!=E},C),m(j,I),v||T.setStrong(j,I,b),j}},92446:($,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.NoIdenticalPaths=void 0;const e=()=>({Paths(t,{report:c,location:u}){const a=new Map;for(const o of Object.keys(t)){const f=o.replace(/{.+?}/g,"{VARIABLE}"),d=a.get(f);d?c({message:`The path already exists which differs only by path parameter name(s): \`${d}\` and \`${o}\`.`,location:u.child([o]).key()}):a.set(f,o)}}});n.NoIdenticalPaths=e},92468:($,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const t=e(29288),c=e(62124),u=e(98947),o={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:f})=>(0,t._)`{allowedValues: ${f}}`},code(f){const{gen:d,data:l,$data:p,schema:g,schemaCode:m,it:S}=f;if(!p&&g.length===0)throw new Error("enum must have non-empty array");const I=g.length>=S.opts.loopEnum;let P;const T=()=>P!=null?P:P=(0,c.useFunc)(d,u.default);let b;if(I||p)b=d.let("valid"),f.block$data(b,v);else{if(!Array.isArray(g))throw new Error("ajv implementation error");const E=d.const("vSchema",m);b=(0,t.or)(...g.map((R,j)=>x(E,j)))}f.pass(b);function v(){d.assign(b,!1),d.forOf("v",m,E=>d.if((0,t._)`${T()}(${l}, ${E})`,()=>d.assign(b,!0).break()))}function x(E,R){const j=g[R];return typeof j=="object"&&j!==null?(0,t._)`${T()}(${l}, ${E}[${R}])`:(0,t._)`${l} === ${j}`}}};n.default=o},92588:($,n,e)=>{var t=e(62449);$.exports=function(c){if(t(c))throw TypeError("The method doesn't accept regular expressions");return c}},92612:($,n,e)=>{var t=e(71229);$.exports=function(c){return Object(t(c))}},92678:($,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.logger=n.colorize=n.colorOptions=void 0;const t=e(28825);var c=e(28825);Object.defineProperty(n,"colorOptions",{enumerable:!0,get:function(){return c.options}});const u=e(31827),a=e(88209);n.colorize=new Proxy(t,{get(f,d){return u.isBrowser?a.identity:f[d]}});class o{stderr(d){return process.stderr.write(d)}info(d){return u.isBrowser?console.log(d):this.stderr(d)}warn(d){return u.isBrowser?console.warn(d):this.stderr(n.colorize.yellow(d))}error(d){return u.isBrowser?console.error(d):this.stderr(n.colorize.red(d))}}n.logger=new o},92830:($,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const t=e(39630);class c extends Error{constructor(a,o,f,d){super(d||`can't resolve reference ${f} from id ${o}`),this.missingRef=(0,t.resolveUrl)(a,o,f),this.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(a,this.missingRef))}}n.default=c},93054:($,n,e)=>{var t=e(65335),c=e(39686);$.exports=function(u,a,o){var f,d;return c&&typeof(f=a.constructor)=="function"&&f!==o&&t(d=f.prototype)&&d!==o.prototype&&c(u,d),u}},93524:($,n,e)=>{"use strict";var t=e(56492),c=e(43610),u=e(31602),a=e(65077),o=u("species");$.exports=function(f){var d=t(f),l=c.f;a&&d&&!d[o]&&l(d,o,{configurable:!0,get:function(){return this}})}},93545:($,n,e)=>{"use strict";e.d(n,{Fh:()=>b,X$:()=>O,XF:()=>p,DT:()=>j,DJ:()=>T,Xi:()=>fe,ee:()=>oe,yO:()=>v,kf:()=>m,Gv:()=>P,LG:()=>l,xo:()=>d,rL:()=>I,rU:()=>A,O2:()=>R,L2:()=>x,Eb:()=>X,Ns:()=>C,L$:()=>k});var t=e(12495),c=e.n(t);function u(ve,Te=!1){if(!ve)return null;let ge=ve;Te&&ge.startsWith("//")&&(ge="http:"+ve);try{const Z=URL;return Z.parse?Z.parse(ge):new URL(ge)}catch(Z){return console.error("Invalid URL: %s",ge,Z),null}}var a=e(27091),o=e(93877),f=e(45662);function d(ve,Te){const ge=[];for(let Z=0;Z<ve.length-1;Z++)ge.push(Te(ve[Z],!1));return ve.length!==0&&ge.push(Te(ve[ve.length-1],!0)),ge}function l(ve,Te){const ge={};for(const Z in ve)Object.prototype.hasOwnProperty.call(ve,Z)&&(ge[Z]=Te(ve[Z],Z,ve));return ge}function p(ve,Te){const ge=[],Z=Oe=>{for(const J of Oe)ge.push(J),J[Te]&&Z(J[Te])};return Z(ve),ge}function g(ve){return ve.endsWith("/")?ve.substring(0,ve.length-1):ve}function m(ve){return!isNaN(parseFloat(ve))&&isFinite(ve)}function S(ve,Te,ge){const Z=new RegExp(`(^|\\n)#\\s?${Te}\\s*\\n`,"i"),Oe=new RegExp(`((\\n|^)#\\s*${Te}\\s*(\\n|$)(?:.|\\n)*?)(\\n#|$)`,"i");if(Z.test(ve))return ve.replace(Oe,`$1
|
|
2815
|
+
`}var zo=Object.defineProperty,po=Object.defineProperties,hs=Object.getOwnPropertyDescriptors,pi=Object.getOwnPropertySymbols,ho=Object.prototype.hasOwnProperty,Yi=Object.prototype.propertyIsEnumerable,To=(_,xe,ze)=>xe in _?zo(_,xe,{enumerable:!0,configurable:!0,writable:!0,value:ze}):_[xe]=ze,io=(_,xe)=>{for(var ze in xe||(xe={}))ho.call(xe,ze)&&To(_,ze,xe[ze]);if(pi)for(var ze of pi(xe))Yi.call(xe,ze)&&To(_,ze,xe[ze]);return _},Zo=(_,xe)=>po(_,hs(xe));const Ni=1,ui={javascript:lr,node:Or,python:vn,shell:Dn,java8:Fr,java:Ti,csharp:Vs,csharpNewtonsoft:ca,go:Is,php:co,ruby:fi,r:{info:{key:"r",title:"R",extname:".r",default:"httr"},httr:function(_,xe,{target:ze,client:en}){var cn,Gt,rn,Ht;const Lt=Object.assign({indent:" ",showBoilerplate:!0,printBody:!0},xe),It=new Jn({indentation:Lt.indent,variablesPrefix:Lt.variablesPrefix,lang:T.R}),sn=_.method.toUpperCase(),on=(cn=_.securityOAuth2ExtraCalls)==null?void 0:cn[0];if(Lt.showBoilerplate&&It.push("library(httr)").blank(),on){const zn="oauth2_",Rn=new Zt(on).convert(ze,en,Zo(io({},Lt),{variablesPrefix:zn,showBoilerplate:!1})),Hn=`${zn}data_req`;It.push(Rn).push(`access_token = content(${Hn}, "parsed")$access_token`).blank(),_.allHeaders.Authorization='paste("Bearer", access_token)'}let Bt,fn="";if(_!=null&&_.postData)switch((0,l.Ej)((Gt=_==null?void 0:_.postData)==null?void 0:Gt.mimeType)){case p.m.URL_ENCODED:{Bt="form",fn=It.var("body");const zn=Ki(_.postData.params,Lt);It.push(`${fn} <- list(${zn})`).blank();break}case p.m.JSON:{Bt="json",fn=It.var("body");const zn=Uo(_.postData.jsonObj,Lt);It.push(`${fn} = '${zn}'`).blank();break}case p.m.MULTIPART:{Bt="multipart",fn=It.var("body");const zn=Ki(_.postData.params,Lt);It.push(`${fn} <- list(${zn})`).blank();break}default:(rn=_.postData)!=null&&rn.text&&(fn=It.var("body"),Bt="raw",It.push(`${fn} = ${Uo((Ht=_.postData)==null?void 0:Ht.text)}`).blank())}at(_,It),Object.keys(io(io({},_.pathParameters),_.serverVariables)).length&&It.blank().push("# create you own operator").push('"%&%" <- function(x, y)paste0(x,y)').blank();const _t=Ze(_,It);It.push(`url = ${_t}`).blank();const cr=It.var("data_req");if(It.push(`${cr} <- ${sn}(`),It.push(Ni,"url,"),_.basicAuth){const{username:zn,password:Rn}=_.basicAuth;It.push(Ni,`authenticate("${zn}", "${Rn}")`)}if(Object.keys(_.allHeaders).length){const zn=`${Object.keys(_.allHeaders).map(Rn=>`"${Rn}" = ${_.allHeaders[Rn].startsWith("paste")?_.allHeaders[Rn]:`"${_.allHeaders[Rn]}"`}`).join(", ")}`;zn&&It.push(Ni,`add_headers(${zn}),`)}return fn&&(It.push(Ni,`body = ${fn},`),It.push(Ni,`encode = "${Bt}",`)),It.push(Ni,"verbose()"),It.push(")"),Lt.printBody&&It.blank().push(`content(${cr}${Bt==="raw"?', "text"':""})`),It.join()}}};function Ei(_,xe){if(_[xe.name]===void 0)return _[xe.name]=xe.value,_;if(_[xe.name]instanceof Array)return _[xe.name].push(xe.value),_;const ze=[_[xe.name],xe.value];return _[xe.name]=ze,_}var qi=Object.defineProperty,Co=Object.defineProperties,F=Object.getOwnPropertyDescriptors,U=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,ke=(_,xe,ze)=>xe in _?qi(_,xe,{enumerable:!0,configurable:!0,writable:!0,value:ze}):_[xe]=ze,lt=(_,xe)=>{for(var ze in xe||(xe={}))ie.call(xe,ze)&&ke(_,ze,xe[ze]);if(U)for(var ze of U(xe))Me.call(xe,ze)&&ke(_,ze,xe[ze]);return _},Tt=(_,xe)=>Co(_,F(xe)),Rt=(_,xe,ze)=>(ke(_,typeof xe!="symbol"?xe+"":xe,ze),ze);class Zt{constructor(xe){Rt(this,"request");const ze=lt({},xe);this.request=this.prepare(Tt(lt({},ze),{httpVersion:ze.httpVersion||"HTTP/1.1",queryString:ze.queryString||[],headers:ze.headers||[],cookies:ze.cookies||[],postData:ze.postData?Tt(lt({},ze.postData),{jsonObj:void 0,paramsObj:void 0}):void 0,bodySize:0,headersSize:0,queryObj:{},headersObj:{},cookiesObj:{},allHeaders:{},uriObj:{},fullUrl:"",pathParameters:ze.pathParameters||{},serverVariables:ze.serverVariables||{}}))}prepare(xe){var ze;if(xe.queryString&&xe.queryString.length&&(xe.queryObj=xe.queryString.reduce(Ei,{})),xe.headers&&xe.headers.length){const Gt=/^HTTP\/2/;xe.headersObj=xe.headers.reduce(function(rn,Ht){let Lt=Ht.name;return xe.httpVersion.match(Gt)&&(Lt=Lt.toLowerCase()),rn[Lt]=Ht.value,rn},{})}xe.cookies&&xe.cookies.length&&(xe.cookiesObj=xe.cookies.reduceRight(function(Gt,rn){return Gt[rn.name]=rn.value,Gt},{}));const en=xe.cookies.map(function(Gt){return encodeURIComponent(Gt.name)+"="+encodeURIComponent(Gt.value)});if(en.length&&(xe.allHeaders.cookie=en.join("; ")),xe.postData)switch((0,l.Ej)(xe.postData.mimeType)){case"multipart/mixed":case"multipart/related":case p.m.MULTIPART:case"multipart/alternative":break;case p.m.URL_ENCODED:(ze=xe.postData)!=null&&ze.params?(xe.postData.paramsObj=xe.postData.params.reduce(Ei,{}),xe.postData.text=m.stringify(xe.postData.paramsObj)):xe.postData.text="";break;case"text/json":case"text/x-json":case p.m.JSON:case"application/x-json":if(xe.postData.text)try{xe.postData.jsonObj=JSON.parse(xe.postData.text)}catch(Gt){xe.postData.mimeType="text/plain"}break}xe.allHeaders=Object.assign(xe.allHeaders,xe.headersObj),xe.uriObj=new URL(xe.url),xe.queryObj=Object.assign(xe.queryObj,zt(xe.uriObj.searchParams)),xe.uriObj.query="",xe.uriObj.search="",xe.uriObj.path=xe.uriObj.pathname=(0,l.rE)(xe.uriObj.pathname);const cn=new URL(xe.uriObj.toString());return cn.search="",xe.url=(0,l.rE)(cn.toString()),xe.uriObj.query=xe.queryObj,xe.uriObj.search=m.stringify(xe.queryObj),xe.uriObj.search&&(xe.uriObj.path=xe.uriObj.pathname+"?"+xe.uriObj.search),xe.fullUrl=(0,l.rE)(cn.toString()),xe}convert(xe,ze,en){!en&&ze&&(en=ze);const cn=this._matchTarget(xe,ze);if(cn){const Gt=cn(this.request,en,{target:xe,client:ze});return Gt.length===1?Gt[0]:Gt}throw new Error("Can not match target")}_matchTarget(xe,ze){return Object.prototype.hasOwnProperty.call(ui,xe)?typeof ze=="string"&&typeof ui[xe][ze]=="function"?ui[xe][ze]:ui[xe][ui[xe].info.default]:!1}}var Fn=Object.defineProperty,mr=Object.defineProperties,Kr=Object.getOwnPropertyDescriptors,si=Object.getOwnPropertySymbols,L=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable,he=(_,xe,ze)=>xe in _?Fn(_,xe,{enumerable:!0,configurable:!0,writable:!0,value:ze}):_[xe]=ze,ue=(_,xe)=>{for(var ze in xe||(xe={}))L.call(xe,ze)&&he(_,ze,xe[ze]);if(si)for(var ze of si(xe))K.call(xe,ze)&&he(_,ze,xe[ze]);return _},je=(_,xe)=>mr(_,Kr(xe));function Je(_,{exampleName:xe="",skipOptionalParameters:ze=!1,withOAuth2Call:en=!1,spec:cn,generatedPayloadSamplesMaxDepth:Gt=8,pathParams:rn={},properties:Ht={}}){var Lt,It,sn,on,Bt,fn,_t,cr,zn,Rn;const{securityHeaders:Hn,securityCookies:Vn,securityQueries:ni,securityOAuth2ExtraCalls:Qi,basicAuth:Ro}=Un((Lt=_.security)==null?void 0:Lt[0],en),Xr=(sn=(It=_.requestBody)==null?void 0:It.content)==null?void 0:sn.active,oo={skipNonRequired:ze,skipReadOnly:!0,maxSampleDepth:Gt},Io={path:(0,o.HO)((on=_==null?void 0:_.requestValues)==null?void 0:on.path),cookie:(0,o.HO)((Bt=_==null?void 0:_.requestValues)==null?void 0:Bt.cookie),header:(0,o.HO)((fn=_==null?void 0:_.requestValues)==null?void 0:fn.header),query:(0,o.HO)((_t=_==null?void 0:_.requestValues)==null?void 0:_t.query),body:(0,o.HO)((cr=_==null?void 0:_.requestValues)==null?void 0:cr.body)};let Ta=!1;const Ca=_.parameters.filter(Mr=>Mr.in==="header").filter(Mr=>!(ze&&!Mr.required)).map(Mr=>{var ri;return{name:Mr.name,value:((ri=Io.header)==null?void 0:ri[Mr.name])||(0,d.dt)("header",Mr.name)||(0,f.serializeParameterValue)(Mr,c.XM(Mr.schema.rawSchema,oo,cn))}}).map(Mr=>(Xr!=null&&Xr.name&&Mr.name.toLowerCase()==="content-type"&&(Ta=!0,Mr.value=Xr.name),Mr)).concat(Hn);!Ta&&(Xr!=null&&Xr.name)&&Ca.unshift({name:"Content-Type",value:Xr==null?void 0:Xr.name});const Ka=_.parameters.filter(Mr=>Mr.in==="cookie").filter(Mr=>!(ze&&!Mr.required)).map(Mr=>(0,t.parse)((0,f.serializeParameterValue)(Mr,c.XM(Mr.schema.rawSchema,oo,cn)))).reduce((Mr,ri)=>{var yo;for(const[Bi,_i]of Object.entries(ri))Mr.push({name:Bi,value:String(((yo=Io.cookie)==null?void 0:yo[Bi])||_i)});return Mr},[]).concat(Vn),Ra=_.parameters.filter(Mr=>Mr.in==="query").filter(Mr=>!(ze&&!Mr.required)).map(Mr=>(0,t.parse)((0,f.serializeParameterValue)(Mr,c.XM(Mr.schema.rawSchema,oo,cn)))).reduce((Mr,ri)=>{var yo,Bi,_i;for(const[eo,Qa]of Object.entries(ri))Mr.push({name:eo,value:(0,f.isArrayOfObjects)((yo=Io.query)==null?void 0:yo[eo])&&JSON.stringify((0,f.deleteEmptyArrayItem)((Bi=Io.query)==null?void 0:Bi[eo]))||String(((_i=Io.query)==null?void 0:_i[eo])||Qa)});return Mr},[]).concat(ni),pa=(zn=_.activeServer)==null?void 0:zn.url.replace(/\/$/,""),Zs=_.path.replace(/^\//,""),[ha]=pa.split("#"),Ya=`${ha}/${Zs}`,ma=_.parameters.filter(Mr=>Mr.in==="path").reduce((Mr,ri)=>{var yo;const{in:Bi,name:_i}=ri;return Mr[_i]=((yo=Io.path)==null?void 0:yo[_i])||rn[_i]||(0,d.dt)(Bi,_i),Mr},{}),Ia=(Rn=Xr==null?void 0:Xr.examples)==null?void 0:Rn[xe],qs=(Xr==null?void 0:Xr.examples)||{},[mo]=Object.values(qs),qo=Io.body||(Ia==null?void 0:Ia.value)||(mo==null?void 0:mo.value)||(Xr==null?void 0:Xr.schema)&&c.XM(Xr==null?void 0:Xr.schema.rawSchema,oo,cn),ea=Xr==null?void 0:Xr.name.toLowerCase();let go,ga=[];switch((0,l.Ej)(ea)){case p.m.JSON:case p.m.XML:go=JSON.stringify(ci(qo,Ht));break;case p.m.URL_ENCODED:case p.m.MULTIPART:go=(0,t.stringify)(ci(qo,Ht)),ga=ei(ci(qo,Ht));break;default:go=String(qo||"")}const $s=go?{mimeType:(Xr==null?void 0:Xr.name)||p.m.OCTET_STREAM,text:go,params:ga}:void 0,Ga=_.responses.map(Mr=>Mr.code);return{method:_.httpVerb,url:Ya,httpVersion:"HTTP/1.1",cookies:Ka,headers:Ca,queryString:Ra,postData:$s,headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:Qi,basicAuth:Ro,pathParameters:ma,serverVariables:_.activeServer.variables,allResponseCodes:Ga}}const pt={withImports:!0,withComments:!1},Wt={curl:{code:"shell",defaultTarget:"curl",defaultOptions:je(ue({},pt),{short:!0})},JavaScript:{code:"javascript",defaultTarget:"fetch",defaultOptions:je(ue({},pt),{withImports:!1})},"Node.js":{code:"node",defaultTarget:"fetch",defaultOptions:ue({},pt)},Python:{code:"python",defaultTarget:"requests",defaultOptions:ue({},pt)},"Java8+Apache":{code:"java8",defaultTarget:"apachehttp",defaultOptions:ue({},pt)},Java:{code:"java",defaultTarget:"httpclient",defaultOptions:ue({},pt)},"C#":{code:"csharp",defaultTarget:"httpclient",defaultOptions:ue({},pt)},"C#+Newtonsoft":{code:"csharpNewtonsoft",defaultTarget:"httpclient",defaultOptions:ue({},pt)},Go:{code:"go",defaultTarget:"http.DefaultClient",defaultOptions:ue({},pt)},PHP:{code:"php",defaultTarget:"curl",defaultOptions:ue({},pt)},Ruby:{code:"ruby",defaultTarget:"net::http",defaultOptions:ue({},pt)},R:{code:"r",defaultTarget:"httr",defaultOptions:ue({},pt)}};function un({lang:_,operation:xe,exampleName:ze,pathParams:en,properties:cn,options:Gt={}}){try{const{skipOptionalParameters:rn,withOAuth2Call:Ht,spec:Lt,generatedPayloadSamplesMaxDepth:It}=Gt,sn=Je(xe,{exampleName:ze,pathParams:en,properties:cn,skipOptionalParameters:rn,withOAuth2Call:Ht,spec:Lt,generatedPayloadSamplesMaxDepth:It}),on=new Zt(sn);return Wt[_]?on.convert(Wt[_].code,Wt[_].defaultTarget,ue(ue({},Wt[_].defaultOptions),Gt)):"Language is not supported."}catch(rn){return console.error(rn),"Failed to generate code sample."}}function Un(_,xe){var ze,en,cn,Gt;const rn={securityHeaders:[],securityCookies:[],securityQueries:[],securityOAuth2ExtraCalls:[],basicAuth:void 0};for(const Ht of(_==null?void 0:_.schemes)||[]){const Lt=(0,d.VQ)(Ht.id);switch(Ht.type){case"openIdConnect":(ze=rn.securityHeaders)==null||ze.push({name:"Authorization",value:"Bearer <YOUR_TOKEN_HERE>"});break;case"oauth2":{const It=Lt.token?`${Lt.token.token_type||"Bearer"} ${Lt.token.access_token}`:"Bearer <YOUR_TOKEN_HERE>";Ht.flows.clientCredentials&&xe?rn.securityOAuth2ExtraCalls.push(Jr(Ht.flows.clientCredentials,Ht.scopes,Lt)):Ht.flows.password&&xe&&rn.securityOAuth2ExtraCalls.push(ar(Ht.flows.password,Ht.scopes,Lt)),(en=rn.securityHeaders)==null||en.push({name:"Authorization",value:It});break}case"apiKey":{const It=Lt.raw||"YOUR_API_KEY_HERE";Ht.in==="header"&&((cn=rn.securityHeaders)==null||cn.push({name:Ht.name,value:It})),Ht.in==="cookie"&&rn.securityCookies.push({name:Ht.name,value:It}),Ht.in==="query"&&rn.securityQueries.push({name:Ht.name,value:It});break}case"http":Ht.scheme==="basic"?rn.basicAuth={username:Lt.username||`<${In.toSnakeCase((0,g.l)("tryItAuthBasicUsername"))}>`,password:Lt.password||`<${In.toSnakeCase((0,g.l)("tryItAuthBasicPassword"))}>`}:(Gt=rn.securityHeaders)==null||Gt.push({name:"Authorization",value:`${xi(Ht.scheme||"bearer")} <YOUR_${Ht.bearerFormat||"TOKEN"}_HERE>`});break}}return rn}function ar(_,xe,ze){return{method:"POST",url:_.tokenUrl,httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:p.m.URL_ENCODED},{name:"Accept",value:p.m.JSON}],queryString:[],postData:{mimeType:p.m.URL_ENCODED,text:"",params:[{name:"grant_type",value:"password"},{name:"client_id",value:ze.client_id||"YOUR_CLIENT_ID"},{name:"client_secret",value:ze.client_secret||"YOUR_CLIENT_SECRET"},{name:"username",value:ze.username||"<username>"},{name:"password",value:ze.password||"<password>"},xe.length?{name:"scope",value:xe.join(" ")}:void 0].filter($i)},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[]}}function Jr(_,xe,ze){return{method:"POST",url:_.tokenUrl,httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:p.m.URL_ENCODED},{name:"Accept",value:p.m.JSON}],queryString:[],postData:{mimeType:p.m.URL_ENCODED,text:"",params:[{name:"grant_type",value:"client_credentials"},{name:"client_id",value:ze.client_id||"YOUR_CLIENT_ID"},{name:"client_secret",value:ze.client_secret||"YOUR_CLIENT_SECRET"},xe.length?{name:"scope",value:xe.join(" ")}:void 0].filter($i)},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[]}}function ci(_,xe){if(_){if(typeof _=="object")return a()(_,xe,{arrayMerge:l.nG});try{return a()(JSON.parse(_),xe,{arrayMerge:l.nG})}catch(ze){return!1}}return!1}function ei(_,xe=""){const ze=[];if(Array.isArray(_))return _.map(en=>({name:`${xe}`,value:String(en)}));for(const[en,cn]of Object.entries(_)){const Gt=xe?`${xe}[${en}]`:en;typeof cn=="object"&&cn!==null?ze.push(...ei(cn,Gt)):ze.push({name:Gt,value:String(cn)})}return ze}function $i(_){return _!==void 0}function xi(_){return _.charAt(0).toUpperCase()+_.slice(1)}},91641:($,n,e)=>{var t=e(16347),c=e(30290);$.exports=Object.keys||function(a){return t(a,c)}},91913:($,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.PathsKebabCase=void 0;const e=()=>({PathItem(t,{report:c,key:u}){u.substr(1).split("/").filter(o=>o!=="").every(o=>/^{.+}$/.test(o)||/^[a-z0-9-.]+$/.test(o))||c({message:`\`${u}\` does not use kebab-case.`,location:{reportOnKey:!0}})}});n.PathsKebabCase=e},92074:$=>{$.exports=function(n){try{return!!n()}catch(e){return!0}}},92078:($,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Stats=void 0;const e=t=>({ExternalDocs:{leave(){t.externalDocs.total++}},ref:{enter(c){t.refs.items.add(c.$ref)}},Tag:{leave(c){t.tags.items.add(c.name)}},Link:{leave(c){t.links.items.add(c.operationId)}},Root:{leave(){t.parameters.total=t.parameters.items.size,t.refs.total=t.refs.items.size,t.links.total=t.links.items.size,t.tags.total=t.tags.items.size}},WebhooksMap:{Operation:{leave(c){c.tags.forEach(u=>{t.tags.items.add(u)})}}},Paths:{PathItem:{leave(){t.pathItems.total++},Operation:{leave(c){t.operations.total++,c.tags&&c.tags.forEach(u=>{t.tags.items.add(u)})}},Parameter:{leave(c){t.parameters.items.add(c.name)}}}},NamedSchemas:{Schema:{leave(){t.schemas.total++}}}});n.Stats=e},92157:($,n,e)=>{"use strict";var t=e(51605),c=e(91344).findIndex,u=e(40298),a="findIndex",o=!0;a in[]&&Array(1)[a](function(){o=!1}),t({target:"Array",proto:!0,forced:o},{findIndex:function(d){return c(this,d,arguments.length>1?arguments[1]:void 0)}}),u(a)},92276:($,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.validateAdditionalItems=void 0;const t=e(29288),c=e(62124),a={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:f}})=>(0,t.str)`must NOT have more than ${f} items`,params:({params:{len:f}})=>(0,t._)`{limit: ${f}}`},code(f){const{parentSchema:d,it:l}=f,{items:p}=d;if(!Array.isArray(p)){(0,c.checkStrictMode)(l,'"additionalItems" is ignored when "items" is not an array of schemas');return}o(f,p)}};function o(f,d){const{gen:l,schema:p,data:g,keyword:m,it:S}=f;S.items=!0;const I=l.const("len",(0,t._)`${g}.length`);if(p===!1)f.setParams({len:d.length}),f.pass((0,t._)`${I} <= ${d.length}`);else if(typeof p=="object"&&!(0,c.alwaysValidSchema)(S,p)){const T=l.var("valid",(0,t._)`${I} <= ${d.length}`);l.if((0,t.not)(T),()=>P(T)),f.ok(T)}function P(T){l.forRange("i",d.length,I,b=>{f.subschema({keyword:m,dataProp:b,dataPropType:c.Type.Num},T),S.allErrors||l.if((0,t.not)(T),()=>l.break())})}}n.validateAdditionalItems=o,n.default=a},92327:($,n,e)=>{"use strict";var t=e(51605),c=e(30200),u=e(84977),a=e(97485),o=e(82014),f=e(52929),d=e(65190),l=e(65335),p=e(92074),g=e(97499),m=e(75282),S=e(93054);$.exports=function(I,P,T){var b=I.indexOf("Map")!==-1,v=I.indexOf("Weak")!==-1,x=b?"set":"add",E=c[I],R=E&&E.prototype,j=E,C={},A=function(oe){var ve=R[oe];a(R,oe,oe=="add"?function(ge){return ve.call(this,ge===0?0:ge),this}:oe=="delete"?function(Te){return v&&!l(Te)?!1:ve.call(this,Te===0?0:Te)}:oe=="get"?function(ge){return v&&!l(ge)?void 0:ve.call(this,ge===0?0:ge)}:oe=="has"?function(ge){return v&&!l(ge)?!1:ve.call(this,ge===0?0:ge)}:function(ge,Z){return ve.call(this,ge===0?0:ge,Z),this})},D=u(I,typeof E!="function"||!(v||R.forEach&&!p(function(){new E().entries().next()})));if(D)j=T.getConstructor(P,I,b,x),o.REQUIRED=!0;else if(u(I,!0)){var O=new j,k=O[x](v?{}:-0,1)!=O,X=p(function(){O.has(1)}),Y=g(function(oe){new E(oe)}),fe=!v&&p(function(){for(var oe=new E,ve=5;ve--;)oe[x](ve,ve);return!oe.has(-0)});Y||(j=P(function(oe,ve){d(oe,j,I);var Te=S(new E,oe,j);return ve!=null&&f(ve,Te[x],{that:Te,AS_ENTRIES:b}),Te}),j.prototype=R,R.constructor=j),(X||fe)&&(A("delete"),A("has"),b&&A("get")),(fe||k)&&A(x),v&&R.clear&&delete R.clear}return C[I]=j,t({global:!0,forced:j!=E},C),m(j,I),v||T.setStrong(j,I,b),j}},92446:($,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.NoIdenticalPaths=void 0;const e=()=>({Paths(t,{report:c,location:u}){const a=new Map;for(const o of Object.keys(t)){const f=o.replace(/{.+?}/g,"{VARIABLE}"),d=a.get(f);d?c({message:`The path already exists which differs only by path parameter name(s): \`${d}\` and \`${o}\`.`,location:u.child([o]).key()}):a.set(f,o)}}});n.NoIdenticalPaths=e},92468:($,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const t=e(29288),c=e(62124),u=e(98947),o={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:f})=>(0,t._)`{allowedValues: ${f}}`},code(f){const{gen:d,data:l,$data:p,schema:g,schemaCode:m,it:S}=f;if(!p&&g.length===0)throw new Error("enum must have non-empty array");const I=g.length>=S.opts.loopEnum;let P;const T=()=>P!=null?P:P=(0,c.useFunc)(d,u.default);let b;if(I||p)b=d.let("valid"),f.block$data(b,v);else{if(!Array.isArray(g))throw new Error("ajv implementation error");const E=d.const("vSchema",m);b=(0,t.or)(...g.map((R,j)=>x(E,j)))}f.pass(b);function v(){d.assign(b,!1),d.forOf("v",m,E=>d.if((0,t._)`${T()}(${l}, ${E})`,()=>d.assign(b,!0).break()))}function x(E,R){const j=g[R];return typeof j=="object"&&j!==null?(0,t._)`${T()}(${l}, ${E}[${R}])`:(0,t._)`${l} === ${j}`}}};n.default=o},92588:($,n,e)=>{var t=e(62449);$.exports=function(c){if(t(c))throw TypeError("The method doesn't accept regular expressions");return c}},92612:($,n,e)=>{var t=e(71229);$.exports=function(c){return Object(t(c))}},92678:($,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.logger=n.colorize=n.colorOptions=void 0;const t=e(28825);var c=e(28825);Object.defineProperty(n,"colorOptions",{enumerable:!0,get:function(){return c.options}});const u=e(31827),a=e(88209);n.colorize=new Proxy(t,{get(f,d){return u.isBrowser?a.identity:f[d]}});class o{stderr(d){return process.stderr.write(d)}info(d){return u.isBrowser?console.log(d):this.stderr(d)}warn(d){return u.isBrowser?console.warn(d):this.stderr(n.colorize.yellow(d))}error(d){return u.isBrowser?console.error(d):this.stderr(n.colorize.red(d))}}n.logger=new o},92830:($,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const t=e(39630);class c extends Error{constructor(a,o,f,d){super(d||`can't resolve reference ${f} from id ${o}`),this.missingRef=(0,t.resolveUrl)(a,o,f),this.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(a,this.missingRef))}}n.default=c},93054:($,n,e)=>{var t=e(65335),c=e(39686);$.exports=function(u,a,o){var f,d;return c&&typeof(f=a.constructor)=="function"&&f!==o&&t(d=f.prototype)&&d!==o.prototype&&c(u,d),u}},93524:($,n,e)=>{"use strict";var t=e(56492),c=e(43610),u=e(31602),a=e(65077),o=u("species");$.exports=function(f){var d=t(f),l=c.f;a&&d&&!d[o]&&l(d,o,{configurable:!0,get:function(){return this}})}},93545:($,n,e)=>{"use strict";e.d(n,{Fh:()=>b,X$:()=>O,XF:()=>p,DT:()=>j,DJ:()=>T,Xi:()=>fe,ee:()=>oe,yO:()=>v,kf:()=>m,Gv:()=>P,LG:()=>l,xo:()=>d,rL:()=>I,rU:()=>A,O2:()=>R,L2:()=>x,Eb:()=>X,Ns:()=>C,L$:()=>k});var t=e(12495),c=e.n(t);function u(ve,Te=!1){if(!ve)return null;let ge=ve;Te&&ge.startsWith("//")&&(ge="http:"+ve);try{const Z=URL;return Z.parse?Z.parse(ge):new URL(ge)}catch(Z){return null}}var a=e(27091),o=e(93877),f=e(45662);function d(ve,Te){const ge=[];for(let Z=0;Z<ve.length-1;Z++)ge.push(Te(ve[Z],!1));return ve.length!==0&&ge.push(Te(ve[ve.length-1],!0)),ge}function l(ve,Te){const ge={};for(const Z in ve)Object.prototype.hasOwnProperty.call(ve,Z)&&(ge[Z]=Te(ve[Z],Z,ve));return ge}function p(ve,Te){const ge=[],Z=Oe=>{for(const J of Oe)ge.push(J),J[Te]&&Z(J[Te])};return Z(ve),ge}function g(ve){return ve.endsWith("/")?ve.substring(0,ve.length-1):ve}function m(ve){return!isNaN(parseFloat(ve))&&isFinite(ve)}function S(ve,Te,ge){const Z=new RegExp(`(^|\\n)#\\s?${Te}\\s*\\n`,"i"),Oe=new RegExp(`((\\n|^)#\\s*${Te}\\s*(\\n|$)(?:.|\\n)*?)(\\n#|$)`,"i");if(Z.test(ve))return ve.replace(Oe,`$1
|
|
2816
2816
|
|
|
2817
2817
|
${ge}
|
|
2818
2818
|
$4`);{const J=ve===""||ve.endsWith(`
|
|
@@ -3561,4 +3561,4 @@ ${ge}`}}const I=(ve,...Te)=>{if(!Te.length)return ve;const ge=Te.shift();return
|
|
|
3561
3561
|
${Ko} {
|
|
3562
3562
|
${({theme:F,showRightPanel:U,layout:ie})=>(0,b.mediaCSS)({width:{[b.ZERO_BREAKPOINT]:"none",small:`calc(100% - ${F.sidebar.width})`},maxWidth:F.layout[ie===Cn.a.THREE_PANEL&&U?Cn.a.THREE_PANEL:Cn.a.STACKED].maxWidth})};
|
|
3563
3563
|
}
|
|
3564
|
-
`;let fi=class extends P.Component{constructor(F){super(F),fo(this,"_observer"),fo(this,"_updatedItems",!1),fo(this,"rootElementRef",(0,P.createRef)()),fo(this,"handleClose",()=>this.props.store.tryItOut()),this.state={searchPopUpShown:!1,searchPopUpValue:""}}componentDidMount(){var F,U;this.props.store.onDidMount(),(U=(F=this.props).onLoaded)==null||U.call(F),this._observer=(0,v.mJ)(()=>this.props.store.menu.renderItems,()=>{this._updatedItems=!0})}componentDidUpdate(){this._updatedItems&&(this._updatedItems=!1,this.props.store.menu.scrollToActive())}componentWillUnmount(){this.props.store.dispose(),this._observer()}render(){const{store:F,_forceRenderInfo:U}=this.props,{definition:ie,menu:Me,options:ke,search:lt,marker:Tt}=F,{hideDownloadButton:Rt,hideInfoSection:Zt,pagination:Fn,disableSidebar:mr}=ke,Kr=Me.renderItems,si=Fn==="none"||Me.activeRenderItemIdx<=0;let L=Zt?!1:si;L&&Fn!=="none"&&mr&&Kr[0]&&Kr[0].type!=="section"&&(L=!1),U&&(L=!0);const K=!L&&Rt!==null&&!Rt&&si;return(0,$.jsxs)(Is,{store:F,children:[(0,$.jsx)(Vi,{l:F.l}),(0,$.jsxs)(wa,{className:"redoc-wrap",ref:this.rootElementRef,children:[(0,$.jsx)(ps,{whiteLabel:ke.whiteLabel,showRightPanel:F.showRightPanel,layout:F.layout}),F.tryItOperation&&(0,$.jsx)(Fo.C,{rootElement:this.rootElementRef.current,store:F,operation:F.tryItOperation,onClose:this.handleClose}),!ke.disableSidebar&&(0,$.jsxs)(b.StickyResponsiveSidebar,{menu:Me,className:"menu-content",children:[!ke.hideLogo&&(0,$.jsx)(b.ApiLogo,{info:ie.info}),ie instanceof Be&&(0,$.jsx)(ds,{spec:ie,onChange:he=>{he.idx!==void 0&&ie.changeVersion(he.idx),Me.updateItemsByVersionChange(!0),F.tryItOut(void 0)}}),!ke.disableSearch&&(0,$.jsx)(mt,{showPopUp:()=>this.setState({searchPopUpShown:!0}),searchValue:this.state.searchPopUpValue,marker:Tt,setSearchValue:he=>this.setState({searchPopUpValue:he})}),(0,$.jsx)(b.SideMenu,{menu:Me})]}),(0,$.jsxs)(Ko,{className:(F.isLoading?"loading ":"")+"api-content",layout:F.layout===Cn.a.THREE_PANEL&&F.showRightPanel?Cn.a.THREE_PANEL:Cn.a.STACKED,children:[ke.theme.layout.showDarkRightPanel&&F.showRightPanel&&F.layout!==Cn.a.STACKED&&(0,$.jsx)(ss,{}),L&&(0,$.jsx)(b.ApiInfo,{store:F}),K&&(0,$.jsx)(Qe.l,{store:F}),(0,$.jsx)(b.ContentItems,{items:Kr,store:F}),ke.showNextButton&&(0,$.jsx)(No,{pagination:ke.pagination,menu:Me}),this.props.children]}),(0,$.jsxs)(ws,{children:[(0,$.jsx)(Hs,{store:F,isVisible:F.layout===Cn.a.THREE_PANEL}),(0,$.jsx)(ua,{store:F,isVisible:F.showRightPanel})]}),(0,$.jsx)(Ws,{search:lt,marker:Tt,menu:Me,onActivate:Me.activateAndScroll.bind(Me),options:ke,shown:this.state.searchPopUpShown,hidePopUp:()=>this.setState({searchPopUpShown:!1}),showPopUp:()=>this.setState({searchPopUpShown:!0}),setSearchValue:he=>this.setState({searchPopUpValue:he}),searchValue:this.state.searchPopUpValue}),ke.theme.layout.showDarkRightPanel&&F.showRightPanel&&F.layout!==Cn.a.STACKED&&(0,$.jsx)(lo,{})]})]})}};fi=Di([Nn.PA],fi);function Uo(F){const{definition:U,definitionUrl:ie,options:Me={},activeItemId:ke,activeSampleLanguage:lt,activeDeepLink:Tt,onLoaded:Rt}=F,Zt=(0,b.argValueToBoolean)(Me.hideLoading,!1),Fn=new b.RedocNormalizedOptions(Me),mr=(0,$.jsx)(us,{definition:U,definitionUrl:ie,options:Me,activeItemId:ke,activeSampleLanguage:lt,activeDeepLink:Tt,onLoaded:Rt,children:({loading:Kr,store:si})=>Kr?Zt?null:(0,$.jsx)(b.Loading,{color:Fn.theme.colors.primary.main}):(0,$.jsx)(fi,{store:si})});return Me.disableErrorBoundary?mr:(0,$.jsx)(b.ErrorBoundary,{children:mr})}function Ki({definitions:F,options:U={}}){const ie=(0,b.argValueToBoolean)(U.hideLoading,!1),Me=new b.RedocNormalizedOptions(U);return(0,$.jsx)(b.ErrorBoundary,{children:(0,$.jsx)(us,{definitions:F,options:U,children:({loading:ke,store:lt})=>ke?ie?null:(0,$.jsx)(b.Loading,{color:Me.theme.colors.primary.main}):(0,$.jsx)(fi,{store:lt})})})}var zo=Object.defineProperty,po=Object.getOwnPropertySymbols,hs=Object.prototype.hasOwnProperty,pi=Object.prototype.propertyIsEnumerable,ho=(F,U,ie)=>U in F?zo(F,U,{enumerable:!0,configurable:!0,writable:!0,value:ie}):F[U]=ie,Yi=(F,U)=>{for(var ie in U||(U={}))hs.call(U,ie)&&ho(F,ie,U[ie]);if(po)for(var ie of po(U))pi.call(U,ie)&&ho(F,ie,U[ie]);return F};function To(F){const U=(0,ge.jf)();U&&U.toggleLayout((F!=null?F:U.layout===Cn.a.STACKED)?Cn.a.THREE_PANEL:Cn.a.STACKED)}function io(F){const U=(0,ge.jf)();U&&U.toggleRightPanel(F)}const Zo=(0,ge.JA)(),Ni=Zo?(0,I.dirname)(Zo)+"/":"";function ai(F){const U={},ie=F.attributes;for(let Me=0;Me<ie.length;Me++){const ke=ie[Me];U[ke.name]=ke.value}return U}function ti(F){const U=ai(F),ie={};for(const Me in U){const ke=Me.replace(/-(.)/g,(lt,Tt)=>Tt.toUpperCase());ie[ke]=U[Me]}return ie}function li(F,U=document.querySelector("redoc")){const ie=Or.fromJS(F);(0,T.hydrate)((0,$.jsx)(fi,{store:ie}),U)}function Gi(F,U={},ie=(0,b.querySelector)("redoc"),Me){if(ie===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');let ke,lt;if(typeof F=="object"&&"versions"in F){(0,T.render)((0,P.createElement)(Ki,{definitions:F,options:Yi(Yi({},U),ti(ie))},["Loading..."]),ie,Me);return}typeof F=="string"?ke=F:typeof F=="object"&&(lt=F),(0,T.render)((0,P.createElement)(Uo,{definition:lt,definitionUrl:ke,options:Yi(Yi({},U),ti(ie))},["Loading..."]),ie,Me)}function ui(F){On.p=F}const Ei="2.45.
|
|
3564
|
+
`;let fi=class extends P.Component{constructor(F){super(F),fo(this,"_observer"),fo(this,"_updatedItems",!1),fo(this,"rootElementRef",(0,P.createRef)()),fo(this,"handleClose",()=>this.props.store.tryItOut()),this.state={searchPopUpShown:!1,searchPopUpValue:""}}componentDidMount(){var F,U;this.props.store.onDidMount(),(U=(F=this.props).onLoaded)==null||U.call(F),this._observer=(0,v.mJ)(()=>this.props.store.menu.renderItems,()=>{this._updatedItems=!0})}componentDidUpdate(){this._updatedItems&&(this._updatedItems=!1,this.props.store.menu.scrollToActive())}componentWillUnmount(){this.props.store.dispose(),this._observer()}render(){const{store:F,_forceRenderInfo:U}=this.props,{definition:ie,menu:Me,options:ke,search:lt,marker:Tt}=F,{hideDownloadButton:Rt,hideInfoSection:Zt,pagination:Fn,disableSidebar:mr}=ke,Kr=Me.renderItems,si=Fn==="none"||Me.activeRenderItemIdx<=0;let L=Zt?!1:si;L&&Fn!=="none"&&mr&&Kr[0]&&Kr[0].type!=="section"&&(L=!1),U&&(L=!0);const K=!L&&Rt!==null&&!Rt&&si;return(0,$.jsxs)(Is,{store:F,children:[(0,$.jsx)(Vi,{l:F.l}),(0,$.jsxs)(wa,{className:"redoc-wrap",ref:this.rootElementRef,children:[(0,$.jsx)(ps,{whiteLabel:ke.whiteLabel,showRightPanel:F.showRightPanel,layout:F.layout}),F.tryItOperation&&(0,$.jsx)(Fo.C,{rootElement:this.rootElementRef.current,store:F,operation:F.tryItOperation,onClose:this.handleClose}),!ke.disableSidebar&&(0,$.jsxs)(b.StickyResponsiveSidebar,{menu:Me,className:"menu-content",children:[!ke.hideLogo&&(0,$.jsx)(b.ApiLogo,{info:ie.info}),ie instanceof Be&&(0,$.jsx)(ds,{spec:ie,onChange:he=>{he.idx!==void 0&&ie.changeVersion(he.idx),Me.updateItemsByVersionChange(!0),F.tryItOut(void 0)}}),!ke.disableSearch&&(0,$.jsx)(mt,{showPopUp:()=>this.setState({searchPopUpShown:!0}),searchValue:this.state.searchPopUpValue,marker:Tt,setSearchValue:he=>this.setState({searchPopUpValue:he})}),(0,$.jsx)(b.SideMenu,{menu:Me})]}),(0,$.jsxs)(Ko,{className:(F.isLoading?"loading ":"")+"api-content",layout:F.layout===Cn.a.THREE_PANEL&&F.showRightPanel?Cn.a.THREE_PANEL:Cn.a.STACKED,children:[ke.theme.layout.showDarkRightPanel&&F.showRightPanel&&F.layout!==Cn.a.STACKED&&(0,$.jsx)(ss,{}),L&&(0,$.jsx)(b.ApiInfo,{store:F}),K&&(0,$.jsx)(Qe.l,{store:F}),(0,$.jsx)(b.ContentItems,{items:Kr,store:F}),ke.showNextButton&&(0,$.jsx)(No,{pagination:ke.pagination,menu:Me}),this.props.children]}),(0,$.jsxs)(ws,{children:[(0,$.jsx)(Hs,{store:F,isVisible:F.layout===Cn.a.THREE_PANEL}),(0,$.jsx)(ua,{store:F,isVisible:F.showRightPanel})]}),(0,$.jsx)(Ws,{search:lt,marker:Tt,menu:Me,onActivate:Me.activateAndScroll.bind(Me),options:ke,shown:this.state.searchPopUpShown,hidePopUp:()=>this.setState({searchPopUpShown:!1}),showPopUp:()=>this.setState({searchPopUpShown:!0}),setSearchValue:he=>this.setState({searchPopUpValue:he}),searchValue:this.state.searchPopUpValue}),ke.theme.layout.showDarkRightPanel&&F.showRightPanel&&F.layout!==Cn.a.STACKED&&(0,$.jsx)(lo,{})]})]})}};fi=Di([Nn.PA],fi);function Uo(F){const{definition:U,definitionUrl:ie,options:Me={},activeItemId:ke,activeSampleLanguage:lt,activeDeepLink:Tt,onLoaded:Rt}=F,Zt=(0,b.argValueToBoolean)(Me.hideLoading,!1),Fn=new b.RedocNormalizedOptions(Me),mr=(0,$.jsx)(us,{definition:U,definitionUrl:ie,options:Me,activeItemId:ke,activeSampleLanguage:lt,activeDeepLink:Tt,onLoaded:Rt,children:({loading:Kr,store:si})=>Kr?Zt?null:(0,$.jsx)(b.Loading,{color:Fn.theme.colors.primary.main}):(0,$.jsx)(fi,{store:si})});return Me.disableErrorBoundary?mr:(0,$.jsx)(b.ErrorBoundary,{children:mr})}function Ki({definitions:F,options:U={}}){const ie=(0,b.argValueToBoolean)(U.hideLoading,!1),Me=new b.RedocNormalizedOptions(U);return(0,$.jsx)(b.ErrorBoundary,{children:(0,$.jsx)(us,{definitions:F,options:U,children:({loading:ke,store:lt})=>ke?ie?null:(0,$.jsx)(b.Loading,{color:Me.theme.colors.primary.main}):(0,$.jsx)(fi,{store:lt})})})}var zo=Object.defineProperty,po=Object.getOwnPropertySymbols,hs=Object.prototype.hasOwnProperty,pi=Object.prototype.propertyIsEnumerable,ho=(F,U,ie)=>U in F?zo(F,U,{enumerable:!0,configurable:!0,writable:!0,value:ie}):F[U]=ie,Yi=(F,U)=>{for(var ie in U||(U={}))hs.call(U,ie)&&ho(F,ie,U[ie]);if(po)for(var ie of po(U))pi.call(U,ie)&&ho(F,ie,U[ie]);return F};function To(F){const U=(0,ge.jf)();U&&U.toggleLayout((F!=null?F:U.layout===Cn.a.STACKED)?Cn.a.THREE_PANEL:Cn.a.STACKED)}function io(F){const U=(0,ge.jf)();U&&U.toggleRightPanel(F)}const Zo=(0,ge.JA)(),Ni=Zo?(0,I.dirname)(Zo)+"/":"";function ai(F){const U={},ie=F.attributes;for(let Me=0;Me<ie.length;Me++){const ke=ie[Me];U[ke.name]=ke.value}return U}function ti(F){const U=ai(F),ie={};for(const Me in U){const ke=Me.replace(/-(.)/g,(lt,Tt)=>Tt.toUpperCase());ie[ke]=U[Me]}return ie}function li(F,U=document.querySelector("redoc")){const ie=Or.fromJS(F);(0,T.hydrate)((0,$.jsx)(fi,{store:ie}),U)}function Gi(F,U={},ie=(0,b.querySelector)("redoc"),Me){if(ie===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');let ke,lt;if(typeof F=="object"&&"versions"in F){(0,T.render)((0,P.createElement)(Ki,{definitions:F,options:Yi(Yi({},U),ti(ie))},["Loading..."]),ie,Me);return}typeof F=="string"?ke=F:typeof F=="object"&&(lt=F),(0,T.render)((0,P.createElement)(Uo,{definition:lt,definitionUrl:ke,options:Yi(Yi({},U),ti(ie))},["Loading..."]),ie,Me)}function ui(F){On.p=F}const Ei="2.45.14",qi="537d064";function Co(){const F=(0,b.querySelector)("redoc");if(!F)return;const U=F.getAttribute("spec-url");U&&Gi(U,{},F)}b.IS_BROWSER&&ui(Ni),Co()})(),oa})());
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";function urlParse(r,e){if(void 0===e&&(e=!1),!r)return null;var t=r;e&&t.startsWith("//")&&(t="http:"+r);try{var s=URL;return s.parse?s.parse(t):new URL(t)}catch(r){return
|
|
1
|
+
"use strict";function urlParse(r,e){if(void 0===e&&(e=!1),!r)return null;var t=r;e&&t.startsWith("//")&&(t="http:"+r);try{var s=URL;return s.parse?s.parse(t):new URL(t)}catch(r){return null}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.urlParse=void 0,exports.urlParse=urlParse;
|
|
2
2
|
//# sourceMappingURL=url.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function urlParse(r
|
|
1
|
+
export function urlParse(t,r=!1){if(!t)return null;let e=t;r&&e.startsWith("//")&&(e="http:"+t);try{const t=URL;return t.parse?t.parse(e):new URL(e)}catch(t){return null}}
|
|
2
2
|
//# sourceMappingURL=url.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function urlParse(r
|
|
1
|
+
export function urlParse(t,r=!1){if(!t)return null;let e=t;r&&e.startsWith("//")&&(e="http:"+t);try{const t=URL;return t.parse?t.parse(e):new URL(e)}catch(t){return null}}
|
|
2
2
|
//# sourceMappingURL=url.js.map
|