@redocly/reference-docs 2.43.3 → 2.43.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -35,7 +35,7 @@ object-assign
35
35
  * Redocly Reference Docs CLI
36
36
  * (c) Copyright 2018 Redocly LLC, all rights reserved.
37
37
  * -------------------------------------------------------------
38
- * Version: "2.43.3"
38
+ * Version: "2.43.4"
39
39
  */
40
40
 
41
41
  /*!
@@ -2,7 +2,7 @@ var Ar=Math.pow;/*!
2
2
  * Redocly Reference Docs
3
3
  * (c) Copyright 2018 Redocly LLC, all rights reserved.
4
4
  * -------------------------------------------------------------
5
- * Version: "2.43.3"
5
+ * Version: "2.43.4"
6
6
  */(this.webpackChunkRedoclyReferenceDocs=this.webpackChunkRedoclyReferenceDocs||[]).push([[290],{66419:(p,I,a)=>{p.exports=a(27698)},77766:(p,I,a)=>{p.exports=a(8065)},72119:(p,I,a)=>{p.exports=a(57448)},20116:(p,I,a)=>{p.exports=a(11955)},94473:(p,I,a)=>{p.exports=a(61577)},78580:(p,I,a)=>{p.exports=a(33778)},2991:(p,I,a)=>{p.exports=a(61798)},3649:(p,I,a)=>{p.exports=a(82073)},92762:(p,I,a)=>{p.exports=a(2348)},59340:(p,I,a)=>{p.exports=a(8933)},51942:(p,I,a)=>{p.exports=a(63383)},26295:(p,I,a)=>{p.exports=a(86209)},86902:(p,I,a)=>{p.exports=a(23059)},93476:(p,I,a)=>{p.exports=a(27460)},52424:(p,I,a)=>{p.exports=a(72010)},53592:(p,I,a)=>{p.exports=a(27385)},78363:(p,I,a)=>{p.exports=a(81522)},19996:(p,I,a)=>{p.exports=a(32209)},30699:(p,I,a)=>{p.exports=a(44442)},28834:(p,I,a)=>{p.exports=a(57152)},95683:(p,I,a)=>{p.exports=a(69447)},95238:(p,I,a)=>{p.exports=a(81493)},189:(p,I,a)=>{p.exports=a(76094)},32752:(p,I,a)=>{p.exports=a(70573)},44341:(p,I,a)=>{p.exports=a(73685)},58377:(p,I,a)=>{p.exports=a(27533)},13038:(p,I,a)=>{p.exports=a(39057)},63263:(p,I,a)=>{p.exports=a(84710)},24889:(p,I,a)=>{p.exports=a(74303)},89356:(p,I,a)=>{p.exports=a(93799)},79542:(p,I,a)=>{p.exports=a(55122)},69798:(p,I,a)=>{p.exports=a(29531)},13535:(p,I,a)=>{p.exports=a(10856)},83863:(p,I,a)=>{p.exports=a(31524)},51446:(p,I,a)=>{p.exports=a(86600)},23882:(p,I,a)=>{p.exports=a(9759)},63109:(p,I,a)=>{p.exports=a(35666)},50706:(p,I,a)=>{var c=a(48764).Buffer;(function(){"use strict";function v(m){var h;return m instanceof c?h=m:h=c.from(m.toString(),"binary"),h.toString("base64")}p.exports=v})()},21924:(p,I,a)=>{"use strict";var c=a(40210),v=a(55559),m=v(c("String.prototype.indexOf"));p.exports=function(b,C){var S=c(b,!!C);return typeof S=="function"&&m(b,".prototype.")>-1?v(S):S}},55559:(p,I,a)=>{"use strict";var c=a(58612),v=a(40210),m=v("%Function.prototype.apply%"),h=v("%Function.prototype.call%"),b=v("%Reflect.apply%",!0)||c.call(h,m),C=v("%Object.getOwnPropertyDescriptor%",!0),S=v("%Object.defineProperty%",!0),L=v("%Math.max%");if(S)try{S({},"a",{value:1})}catch(j){S=null}p.exports=function(U){var Q=b(c,h,arguments);if(C&&S){var K=C(Q,"length");K.configurable&&S(Q,"length",{value:1+L(0,U.length-(arguments.length-1))})}return Q};var N=function(){return b(c,m,arguments)};S?S(p.exports,"apply",{value:N}):p.exports.apply=N},82801:(p,I,a)=>{(function(c){c(a(4631))})(function(c){var v={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},m=c.Pos;c.defineOption("autoCloseBrackets",!1,function(R,E,V){V&&V!=c.Init&&(R.removeKeyMap(b),R.state.closeBrackets=null),E&&(C(h(E,"pairs")),R.state.closeBrackets=E,R.addKeyMap(b))});function h(R,E){return E=="pairs"&&typeof R=="string"?R:typeof R=="object"&&R[E]!=null?R[E]:v[E]}var b={Backspace:N,Enter:j};function C(R){for(var E=0;E<R.length;E++){var V=R.charAt(E),G="'"+V+"'";b[G]||(b[G]=S(V))}}C(v.pairs+"`");function S(R){return function(E){return K(E,R)}}function L(R){var E=R.state.closeBrackets;if(!E||E.override)return E;var V=R.getModeAt(R.getCursor());return V.closeBrackets||E}function N(R){var E=L(R);if(!E||R.getOption("disableInput"))return c.Pass;for(var V=h(E,"pairs"),G=R.listSelections(),Z=0;Z<G.length;Z++){if(!G[Z].empty())return c.Pass;var X=M(R,G[Z].head);if(!X||V.indexOf(X)%2!=0)return c.Pass}for(var Z=G.length-1;Z>=0;Z--){var z=G[Z].head;R.replaceRange("",m(z.line,z.ch-1),m(z.line,z.ch+1),"+delete")}}function j(R){var E=L(R),V=E&&h(E,"explode");if(!V||R.getOption("disableInput"))return c.Pass;for(var G=R.listSelections(),Z=0;Z<G.length;Z++){if(!G[Z].empty())return c.Pass;var X=M(R,G[Z].head);if(!X||V.indexOf(X)%2!=0)return c.Pass}R.operation(function(){var z=R.lineSeparator()||`
7
7
  `;R.replaceSelection(z+z,null),U(R,-1),G=R.listSelections();for(var ue=0;ue<G.length;ue++){var q=G[ue].head.line;R.indentLine(q,null,!0),R.indentLine(q+1,null,!0)}})}function U(R,E){for(var V=[],G=R.listSelections(),Z=0,X=0;X<G.length;X++){var z=G[X];z.head==R.getCursor()&&(Z=X);var ue=z.head.ch||E>0?{line:z.head.line,ch:z.head.ch+E}:{line:z.head.line-1};V.push({anchor:ue,head:ue})}R.setSelections(V,Z)}function Q(R){var E=c.cmpPos(R.anchor,R.head)>0;return{anchor:new m(R.anchor.line,R.anchor.ch+(E?-1:1)),head:new m(R.head.line,R.head.ch+(E?1:-1))}}function K(R,E){var V=L(R);if(!V||R.getOption("disableInput"))return c.Pass;var G=h(V,"pairs"),Z=G.indexOf(E);if(Z==-1)return c.Pass;for(var X=h(V,"closeBefore"),z=h(V,"triples"),ue=G.charAt(Z+1)==E,q=R.listSelections(),ne=Z%2==0,ge,me=0;me<q.length;me++){var he=q[me],le=he.head,ie,Oe=R.getRange(le,m(le.line,le.ch+1));if(ne&&!he.empty())ie="surround";else if((ue||!ne)&&Oe==E)ue&&Y(R,le)?ie="both":z.indexOf(E)>=0&&R.getRange(le,m(le.line,le.ch+3))==E+E+E?ie="skipThree":ie="skip";else if(ue&&le.ch>1&&z.indexOf(E)>=0&&R.getRange(m(le.line,le.ch-2),le)==E+E){if(le.ch>2&&/\bstring/.test(R.getTokenTypeAt(m(le.line,le.ch-2))))return c.Pass;ie="addFour"}else if(ue){var Pe=le.ch==0?" ":R.getRange(m(le.line,le.ch-1),le);if(!c.isWordChar(Oe)&&Pe!=E&&!c.isWordChar(Pe))ie="both";else return c.Pass}else if(ne&&(Oe.length===0||/\s/.test(Oe)||X.indexOf(Oe)>-1))ie="both";else return c.Pass;if(!ge)ge=ie;else if(ge!=ie)return c.Pass}var Te=Z%2?G.charAt(Z-1):E,Ce=Z%2?E:G.charAt(Z+1);R.operation(function(){if(ge=="skip")U(R,1);else if(ge=="skipThree")U(R,3);else if(ge=="surround"){for(var Xe=R.getSelections(),He=0;He<Xe.length;He++)Xe[He]=Te+Xe[He]+Ce;R.replaceSelections(Xe,"around"),Xe=R.listSelections().slice();for(var He=0;He<Xe.length;He++)Xe[He]=Q(Xe[He]);R.setSelections(Xe)}else ge=="both"?(R.replaceSelection(Te+Ce,null),R.triggerElectric(Te+Ce),U(R,-1)):ge=="addFour"&&(R.replaceSelection(Te+Te+Te+Te,"before"),U(R,1))})}function M(R,E){var V=R.getRange(m(E.line,E.ch-1),m(E.line,E.ch+1));return V.length==2?V:null}function Y(R,E){var V=R.getTokenAt(m(E.line,E.ch+1));return/\bstring/.test(V.type)&&V.start==E.ch&&(E.ch==0||!/\bstring/.test(R.getTokenTypeAt(E)))}})},4328:(p,I,a)=>{(function(c){c(a(4631))})(function(c){var v=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),m=c.Pos,h={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function b(U){return U&&U.bracketRegex||/[(){}[\]]/}function C(U,Q,K){var M=U.getLineHandle(Q.line),Y=Q.ch-1,R=K&&K.afterCursor;R==null&&(R=/(^| )cm-fat-cursor($| )/.test(U.getWrapperElement().className));var E=b(K),V=!R&&Y>=0&&E.test(M.text.charAt(Y))&&h[M.text.charAt(Y)]||E.test(M.text.charAt(Y+1))&&h[M.text.charAt(++Y)];if(!V)return null;var G=V.charAt(1)==">"?1:-1;if(K&&K.strict&&G>0!=(Y==Q.ch))return null;var Z=U.getTokenTypeAt(m(Q.line,Y+1)),X=S(U,m(Q.line,Y+(G>0?1:0)),G,Z,K);return X==null?null:{from:m(Q.line,Y),to:X&&X.pos,match:X&&X.ch==V.charAt(0),forward:G>0}}function S(U,Q,K,M,Y){for(var R=Y&&Y.maxScanLineLength||1e4,E=Y&&Y.maxScanLines||1e3,V=[],G=b(Y),Z=K>0?Math.min(Q.line+E,U.lastLine()+1):Math.max(U.firstLine()-1,Q.line-E),X=Q.line;X!=Z;X+=K){var z=U.getLine(X);if(!!z){var ue=K>0?0:z.length-1,q=K>0?z.length:-1;if(!(z.length>R))for(X==Q.line&&(ue=Q.ch-(K<0?1:0));ue!=q;ue+=K){var ne=z.charAt(ue);if(G.test(ne)&&(M===void 0||(U.getTokenTypeAt(m(X,ue+1))||"")==(M||""))){var ge=h[ne];if(ge&&ge.charAt(1)==">"==K>0)V.push(ne);else if(V.length)V.pop();else return{pos:m(X,ue),ch:ne}}}}}return X-K==(K>0?U.lastLine():U.firstLine())?!1:null}function L(U,Q,K){for(var M=U.state.matchBrackets.maxHighlightLineLength||1e3,Y=K&&K.highlightNonMatching,R=[],E=U.listSelections(),V=0;V<E.length;V++){var G=E[V].empty()&&C(U,E[V].head,K);if(G&&(G.match||Y!==!1)&&U.getLine(G.from.line).length<=M){var Z=G.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";R.push(U.markText(G.from,m(G.from.line,G.from.ch+1),{className:Z})),G.to&&U.getLine(G.to.line).length<=M&&R.push(U.markText(G.to,m(G.to.line,G.to.ch+1),{className:Z}))}}if(R.length){v&&U.state.focused&&U.focus();var X=function(){U.operation(function(){for(var z=0;z<R.length;z++)R[z].clear()})};if(Q)setTimeout(X,800);else return X}}function N(U){U.operation(function(){U.state.matchBrackets.currentlyHighlighted&&(U.state.matchBrackets.currentlyHighlighted(),U.state.matchBrackets.currentlyHighlighted=null),U.state.matchBrackets.currentlyHighlighted=L(U,!1,U.state.matchBrackets)})}function j(U){U.state.matchBrackets&&U.state.matchBrackets.currentlyHighlighted&&(U.state.matchBrackets.currentlyHighlighted(),U.state.matchBrackets.currentlyHighlighted=null)}c.defineOption("matchBrackets",!1,function(U,Q,K){K&&K!=c.Init&&(U.off("cursorActivity",N),U.off("focus",N),U.off("blur",j),j(U)),Q&&(U.state.matchBrackets=typeof Q=="object"?Q:{},U.on("cursorActivity",N),U.on("focus",N),U.on("blur",j))}),c.defineExtension("matchBrackets",function(){L(this,!0)}),c.defineExtension("findMatchingBracket",function(U,Q,K){return(K||typeof Q=="boolean")&&(K?(K.strict=Q,Q=K):Q=Q?{strict:!0}:null),C(this,U,Q)}),c.defineExtension("scanForBracket",function(U,Q,K,M){return S(this,U,Q,K,M)})})},71707:(p,I,a)=>{(function(c){c(a(4631))})(function(c){"use strict";var v="CodeMirror-hint",m="CodeMirror-hint-active";c.showHint=function(R,E,V){if(!E)return R.showHint(V);V&&V.async&&(E.async=!0);var G={hint:E};if(V)for(var Z in V)G[Z]=V[Z];return R.showHint(G)},c.defineExtension("showHint",function(R){R=S(this,this.getCursor("start"),R);var E=this.listSelections();if(!(E.length>1)){if(this.somethingSelected()){if(!R.hint.supportsSelection)return;for(var V=0;V<E.length;V++)if(E[V].head.line!=E[V].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var G=this.state.completionActive=new h(this,R);!G.options.hint||(c.signal(this,"startCompletion",this),G.update(!0))}}),c.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function h(R,E){if(this.cm=R,this.options=E,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 V=this;R.on("cursorActivity",this.activityFunc=function(){V.cursorActivity()})}}var b=window.requestAnimationFrame||function(R){return setTimeout(R,1e3/60)},C=window.cancelAnimationFrame||clearTimeout;h.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&&c.signal(this.data,"close"),this.widget&&this.widget.close(),c.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(R,E){var V=R.list[E],G=this;this.cm.operation(function(){V.hint?V.hint(G.cm,R,V):G.cm.replaceRange(L(V),V.from||R.from,V.to||R.to,"complete"),c.signal(R,"pick",V),G.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(C(this.debounce),this.debounce=0);var R=this.startPos;this.data&&(R=this.data.from);var E=this.cm.getCursor(),V=this.cm.getLine(E.line);if(E.line!=this.startPos.line||V.length-E.ch!=this.startLen-this.startPos.ch||E.ch<R.ch||this.cm.somethingSelected()||!E.ch||this.options.closeCharacters.test(V.charAt(E.ch-1)))this.close();else{var G=this;this.debounce=b(function(){G.update()}),this.widget&&this.widget.disable()}},update:function(R){if(this.tick!=null){var E=this,V=++this.tick;K(this.options.hint,this.cm,this.options,function(G){E.tick==V&&E.finishUpdate(G,R)})}},finishUpdate:function(R,E){this.data&&c.signal(this.data,"update");var V=this.widget&&this.widget.picked||E&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=R,R&&R.list.length&&(V&&R.list.length==1?this.pick(R,0):(this.widget=new U(this,R),c.signal(R,"shown")))}};function S(R,E,V){var G=R.options.hintOptions,Z={};for(var X in Y)Z[X]=Y[X];if(G)for(var X in G)G[X]!==void 0&&(Z[X]=G[X]);if(V)for(var X in V)V[X]!==void 0&&(Z[X]=V[X]);return Z.hint.resolve&&(Z.hint=Z.hint.resolve(R,E)),Z}function L(R){return typeof R=="string"?R:R.text}function N(R,E){var V={Up:function(){E.moveFocus(-1)},Down:function(){E.moveFocus(1)},PageUp:function(){E.moveFocus(-E.menuSize()+1,!0)},PageDown:function(){E.moveFocus(E.menuSize()-1,!0)},Home:function(){E.setFocus(0)},End:function(){E.setFocus(E.length-1)},Enter:E.pick,Tab:E.pick,Esc:E.close},G=/Mac/.test(navigator.platform);G&&(V["Ctrl-P"]=function(){E.moveFocus(-1)},V["Ctrl-N"]=function(){E.moveFocus(1)});var Z=R.options.customKeys,X=Z?{}:V;function z(ne,ge){var me;typeof ge!="string"?me=function(he){return ge(he,E)}:V.hasOwnProperty(ge)?me=V[ge]:me=ge,X[ne]=me}if(Z)for(var ue in Z)Z.hasOwnProperty(ue)&&z(ue,Z[ue]);var q=R.options.extraKeys;if(q)for(var ue in q)q.hasOwnProperty(ue)&&z(ue,q[ue]);return X}function j(R,E){for(;E&&E!=R;){if(E.nodeName.toUpperCase()==="LI"&&E.parentNode==R)return E;E=E.parentNode}}function U(R,E){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=R,this.data=E,this.picked=!1;var V=this,G=R.cm,Z=G.getInputField().ownerDocument,X=Z.defaultView||Z.parentWindow,z=this.hints=Z.createElement("ul");z.setAttribute("role","listbox"),z.setAttribute("aria-expanded","true"),z.id=this.id;var ue=R.cm.options.theme;z.className="CodeMirror-hints "+ue,this.selectedHint=E.selectedHint||0;for(var q=E.list,ne=0;ne<q.length;++ne){var ge=z.appendChild(Z.createElement("li")),me=q[ne],he=v+(ne!=this.selectedHint?"":" "+m);me.className!=null&&(he=me.className+" "+he),ge.className=he,ne==this.selectedHint&&ge.setAttribute("aria-selected","true"),ge.id=this.id+"-"+ne,ge.setAttribute("role","option"),me.render?me.render(ge,E,me):ge.appendChild(Z.createTextNode(me.displayText||L(me))),ge.hintId=ne}var le=R.options.container||Z.body,ie=G.cursorCoords(R.options.alignWithWord?E.from:null),Oe=ie.left,Pe=ie.bottom,Te=!0,Ce=0,Xe=0;if(le!==Z.body){var He=["absolute","relative","fixed"].indexOf(X.getComputedStyle(le).position)!==-1,Je=He?le:le.offsetParent,ut=Je.getBoundingClientRect(),ft=Z.body.getBoundingClientRect();Ce=ut.left-ft.left-Je.scrollLeft,Xe=ut.top-ft.top-Je.scrollTop}z.style.left=Oe-Ce+"px",z.style.top=Pe-Xe+"px";var mt=X.innerWidth||Math.max(Z.body.offsetWidth,Z.documentElement.offsetWidth),Qe=X.innerHeight||Math.max(Z.body.offsetHeight,Z.documentElement.offsetHeight);le.appendChild(z),G.getInputField().setAttribute("aria-autocomplete","list"),G.getInputField().setAttribute("aria-owns",this.id),G.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var rt=R.options.moveOnOverlap?z.getBoundingClientRect():new DOMRect,ct=R.options.paddingForScrollbar?z.scrollHeight>z.clientHeight+1:!1,dt;setTimeout(function(){dt=G.getScrollInfo()});var ot=rt.bottom-Qe;if(ot>0){var Tt=rt.bottom-rt.top,Ot=ie.top-(ie.bottom-rt.top);if(Ot-Tt>0)z.style.top=(Pe=ie.top-Tt-Xe)+"px",Te=!1;else if(Tt>Qe){z.style.height=Qe-5+"px",z.style.top=(Pe=ie.bottom-rt.top-Xe)+"px";var St=G.getCursor();E.from.ch!=St.ch&&(ie=G.cursorCoords(St),z.style.left=(Oe=ie.left-Ce)+"px",rt=z.getBoundingClientRect())}}var jt=rt.right-mt;if(ct&&(jt+=G.display.nativeBarWidth),jt>0&&(rt.right-rt.left>mt&&(z.style.width=mt-5+"px",jt-=rt.right-rt.left-mt),z.style.left=(Oe=ie.left-jt-Ce)+"px"),ct)for(var Dt=z.firstChild;Dt;Dt=Dt.nextSibling)Dt.style.paddingRight=G.display.nativeBarWidth+"px";if(G.addKeyMap(this.keyMap=N(R,{moveFocus:function(Ft,vt){V.changeActive(V.selectedHint+Ft,vt)},setFocus:function(Ft){V.changeActive(Ft)},menuSize:function(){return V.screenAmount()},length:q.length,close:function(){R.close()},pick:function(){V.pick()},data:E})),R.options.closeOnUnfocus){var Nt;G.on("blur",this.onBlur=function(){Nt=setTimeout(function(){R.close()},100)}),G.on("focus",this.onFocus=function(){clearTimeout(Nt)})}G.on("scroll",this.onScroll=function(){var Ft=G.getScrollInfo(),vt=G.getWrapperElement().getBoundingClientRect();dt||(dt=G.getScrollInfo());var zt=Pe+dt.top-Ft.top,Kt=zt-(X.pageYOffset||(Z.documentElement||Z.body).scrollTop);if(Te||(Kt+=z.offsetHeight),Kt<=vt.top||Kt>=vt.bottom)return R.close();z.style.top=zt+"px",z.style.left=Oe+dt.left-Ft.left+"px"}),c.on(z,"dblclick",function(Ft){var vt=j(z,Ft.target||Ft.srcElement);vt&&vt.hintId!=null&&(V.changeActive(vt.hintId),V.pick())}),c.on(z,"click",function(Ft){var vt=j(z,Ft.target||Ft.srcElement);vt&&vt.hintId!=null&&(V.changeActive(vt.hintId),R.options.completeOnSingleClick&&V.pick())}),c.on(z,"mousedown",function(){setTimeout(function(){G.focus()},20)});var xt=this.getSelectedHintRange();return(xt.from!==0||xt.to!==0)&&this.scrollToActive(),c.signal(E,"select",q[this.selectedHint],z.childNodes[this.selectedHint]),!0}U.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 R=this.completion.cm.getInputField();R.removeAttribute("aria-activedescendant"),R.removeAttribute("aria-owns");var E=this.completion.cm;this.completion.options.closeOnUnfocus&&(E.off("blur",this.onBlur),E.off("focus",this.onFocus)),E.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var R=this;this.keyMap={Enter:function(){R.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(R,E){if(R>=this.data.list.length?R=E?this.data.list.length-1:0:R<0&&(R=E?0:this.data.list.length-1),this.selectedHint!=R){var V=this.hints.childNodes[this.selectedHint];V&&(V.className=V.className.replace(" "+m,""),V.removeAttribute("aria-selected")),V=this.hints.childNodes[this.selectedHint=R],V.className+=" "+m,V.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",V.id),this.scrollToActive(),c.signal(this.data,"select",this.data.list[this.selectedHint],V)}},scrollToActive:function(){var R=this.getSelectedHintRange(),E=this.hints.childNodes[R.from],V=this.hints.childNodes[R.to],G=this.hints.firstChild;E.offsetTop<this.hints.scrollTop?this.hints.scrollTop=E.offsetTop-G.offsetTop:V.offsetTop+V.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=V.offsetTop+V.offsetHeight-this.hints.clientHeight+G.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var R=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-R),to:Math.min(this.data.list.length-1,this.selectedHint+R)}}};function Q(R,E){if(!R.somethingSelected())return E;for(var V=[],G=0;G<E.length;G++)E[G].supportsSelection&&V.push(E[G]);return V}function K(R,E,V,G){if(R.async)R(E,G,V);else{var Z=R(E,V);Z&&Z.then?Z.then(G):G(Z)}}function M(R,E){var V=R.getHelpers(E,"hint"),G;if(V.length){var Z=function(X,z,ue){var q=Q(X,V);function ne(ge){if(ge==q.length)return z(null);K(q[ge],X,ue,function(me){me&&me.list.length>0?z(me):ne(ge+1)})}ne(0)};return Z.async=!0,Z.supportsSelection=!0,Z}else return(G=R.getHelper(R.getCursor(),"hintWords"))?function(X){return c.hint.fromList(X,{words:G})}:c.hint.anyword?function(X,z){return c.hint.anyword(X,z)}:function(){}}c.registerHelper("hint","auto",{resolve:M}),c.registerHelper("hint","fromList",function(R,E){var V=R.getCursor(),G=R.getTokenAt(V),Z,X=c.Pos(V.line,G.start),z=V;G.start<V.ch&&/\w/.test(G.string.charAt(V.ch-G.start-1))?Z=G.string.substr(0,V.ch-G.start):(Z="",X=V);for(var ue=[],q=0;q<E.words.length;q++){var ne=E.words[q];ne.slice(0,Z.length)==Z&&ue.push(ne)}if(ue.length)return{list:ue,from:X,to:z}}),c.commands.autocomplete=c.showHint;var Y={hint:c.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};c.defineOption("hintOptions",null)})},3256:(p,I,a)=>{(function(c){c(a(4631))})(function(c){"use strict";var v="CodeMirror-lint-markers",m="CodeMirror-lint-line-";function h(z,ue,q){var ne=document.createElement("div");ne.className="CodeMirror-lint-tooltip cm-s-"+z.options.theme,ne.appendChild(q.cloneNode(!0)),z.state.lint.options.selfContain?z.getWrapperElement().appendChild(ne):document.body.appendChild(ne);function ge(me){if(!ne.parentNode)return c.off(document,"mousemove",ge);ne.style.top=Math.max(0,me.clientY-ne.offsetHeight-5)+"px",ne.style.left=me.clientX+5+"px"}return c.on(document,"mousemove",ge),ge(ue),ne.style.opacity!=null&&(ne.style.opacity=1),ne}function b(z){z.parentNode&&z.parentNode.removeChild(z)}function C(z){!z.parentNode||(z.style.opacity==null&&b(z),z.style.opacity=0,setTimeout(function(){b(z)},600))}function S(z,ue,q,ne){var ge=h(z,ue,q);function me(){c.off(ne,"mouseout",me),ge&&(C(ge),ge=null)}var he=setInterval(function(){if(ge)for(var le=ne;;le=le.parentNode){if(le&&le.nodeType==11&&(le=le.host),le==document.body)return;if(!le){me();break}}if(!ge)return clearInterval(he)},400);c.on(ne,"mouseout",me)}function L(z,ue,q){this.marked=[],ue instanceof Function&&(ue={getAnnotations:ue}),(!ue||ue===!0)&&(ue={}),this.options={},this.linterOptions=ue.options||{};for(var ne in N)this.options[ne]=N[ne];for(var ne in ue)N.hasOwnProperty(ne)?ue[ne]!=null&&(this.options[ne]=ue[ne]):ue.options||(this.linterOptions[ne]=ue[ne]);this.timeout=null,this.hasGutter=q,this.onMouseOver=function(ge){X(z,ge)},this.waitingFor=0}var N={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function j(z){var ue=z.state.lint;ue.hasGutter&&z.clearGutter(v),ue.options.highlightLines&&U(z);for(var q=0;q<ue.marked.length;++q)ue.marked[q].clear();ue.marked.length=0}function U(z){z.eachLine(function(ue){var q=ue.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(ue.wrapClass);q&&z.removeLineClass(ue,"wrap",q[0])})}function Q(z,ue,q,ne,ge){var me=document.createElement("div"),he=me;return me.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+q,ne&&(he=me.appendChild(document.createElement("div")),he.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),ge!=!1&&c.on(he,"mouseover",function(le){S(z,le,ue,he)}),me}function K(z,ue){return z=="error"?z:ue}function M(z){for(var ue=[],q=0;q<z.length;++q){var ne=z[q],ge=ne.from.line;(ue[ge]||(ue[ge]=[])).push(ne)}return ue}function Y(z){var ue=z.severity;ue||(ue="error");var q=document.createElement("div");return q.className="CodeMirror-lint-message CodeMirror-lint-message-"+ue,typeof z.messageHTML!="undefined"?q.innerHTML=z.messageHTML:q.appendChild(document.createTextNode(z.message)),q}function R(z,ue){var q=z.state.lint,ne=++q.waitingFor;function ge(){ne=-1,z.off("change",ge)}z.on("change",ge),ue(z.getValue(),function(me,he){z.off("change",ge),q.waitingFor==ne&&(he&&me instanceof c&&(me=he),z.operation(function(){V(z,me)}))},q.linterOptions,z)}function E(z){var ue=z.state.lint;if(!!ue){var q=ue.options,ne=q.getAnnotations||z.getHelper(c.Pos(0,0),"lint");if(!!ne)if(q.async||ne.async)R(z,ne);else{var ge=ne(z.getValue(),ue.linterOptions,z);if(!ge)return;ge.then?ge.then(function(me){z.operation(function(){V(z,me)})}):z.operation(function(){V(z,ge)})}}}function V(z,ue){var q=z.state.lint;if(!!q){var ne=q.options;j(z);for(var ge=M(ue),me=0;me<ge.length;++me){var he=ge[me];if(!!he){var le=[];he=he.filter(function(Xe){return le.indexOf(Xe.message)>-1?!1:le.push(Xe.message)});for(var ie=null,Oe=q.hasGutter&&document.createDocumentFragment(),Pe=0;Pe<he.length;++Pe){var Te=he[Pe],Ce=Te.severity;Ce||(Ce="error"),ie=K(ie,Ce),ne.formatAnnotation&&(Te=ne.formatAnnotation(Te)),q.hasGutter&&Oe.appendChild(Y(Te)),Te.to&&q.marked.push(z.markText(Te.from,Te.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+Ce,__annotation:Te}))}q.hasGutter&&z.setGutterMarker(me,v,Q(z,Oe,ie,ge[me].length>1,ne.tooltips)),ne.highlightLines&&z.addLineClass(me,"wrap",m+ie)}}ne.onUpdateLinting&&ne.onUpdateLinting(ue,ge,z)}}function G(z){var ue=z.state.lint;!ue||(clearTimeout(ue.timeout),ue.timeout=setTimeout(function(){E(z)},ue.options.delay))}function Z(z,ue,q){for(var ne=q.target||q.srcElement,ge=document.createDocumentFragment(),me=0;me<ue.length;me++){var he=ue[me];ge.appendChild(Y(he))}S(z,q,ge,ne)}function X(z,ue){var q=ue.target||ue.srcElement;if(!!/\bCodeMirror-lint-mark-/.test(q.className)){for(var ne=q.getBoundingClientRect(),ge=(ne.left+ne.right)/2,me=(ne.top+ne.bottom)/2,he=z.findMarksAt(z.coordsChar({left:ge,top:me},"client")),le=[],ie=0;ie<he.length;++ie){var Oe=he[ie].__annotation;Oe&&le.push(Oe)}le.length&&Z(z,le,ue)}}c.defineOption("lint",!1,function(z,ue,q){if(q&&q!=c.Init&&(j(z),z.state.lint.options.lintOnChange!==!1&&z.off("change",G),c.off(z.getWrapperElement(),"mouseover",z.state.lint.onMouseOver),clearTimeout(z.state.lint.timeout),delete z.state.lint),ue){for(var ne=z.getOption("gutters"),ge=!1,me=0;me<ne.length;++me)ne[me]==v&&(ge=!0);var he=z.state.lint=new L(z,ue,ge);he.options.lintOnChange&&z.on("change",G),he.options.tooltips!=!1&&he.options.tooltips!="gutter"&&c.on(z.getWrapperElement(),"mouseover",he.onMouseOver),E(z)}}),c.defineExtension("performLint",function(){E(this)})})},32095:(p,I,a)=>{(function(c){c(a(4631))})(function(c){"use strict";var v=c.Pos;function m(E){var V=E.flags;return V!=null?V:(E.ignoreCase?"i":"")+(E.global?"g":"")+(E.multiline?"m":"")}function h(E,V){for(var G=m(E),Z=G,X=0;X<V.length;X++)Z.indexOf(V.charAt(X))==-1&&(Z+=V.charAt(X));return G==Z?E:new RegExp(E.source,Z)}function b(E){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(E.source)}function C(E,V,G){V=h(V,"g");for(var Z=G.line,X=G.ch,z=E.lastLine();Z<=z;Z++,X=0){V.lastIndex=X;var ue=E.getLine(Z),q=V.exec(ue);if(q)return{from:v(Z,q.index),to:v(Z,q.index+q[0].length),match:q}}}function S(E,V,G){if(!b(V))return C(E,V,G);V=h(V,"gm");for(var Z,X=1,z=G.line,ue=E.lastLine();z<=ue;){for(var q=0;q<X&&!(z>ue);q++){var ne=E.getLine(z++);Z=Z==null?ne:Z+`
8
8
  `+ne}X=X*2,V.lastIndex=G.ch;var ge=V.exec(Z);if(ge){var me=Z.slice(0,ge.index).split(`
@@ -2,7 +2,7 @@
2
2
  * Redocly Reference Docs
3
3
  * (c) Copyright 2018 Redocly LLC, all rights reserved.
4
4
  * -------------------------------------------------------------
5
- * Version: "2.43.3"
5
+ * Version: "2.43.4"
6
6
  */(function(Ee,fe){typeof exports=="object"&&typeof module=="object"?module.exports=fe():typeof define=="function"&&define.amd?define([],fe):typeof exports=="object"?exports.RedoclyReferenceDocs=fe():Ee.RedoclyReferenceDocs=fe()})(this,function(){return(()=>{var Ke={13099:a=>{a.exports=function(l){if(typeof l!="function")throw TypeError(String(l)+" is not a function");return l}},96077:(a,l,e)=>{var t=e(70111);a.exports=function(n){if(!t(n)&&n!==null)throw TypeError("Can't set "+String(n)+" as a prototype");return n}},51223:(a,l,e)=>{var t=e(5112),n=e(70030),s=e(3070),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}},25787:a=>{a.exports=function(l,e,t){if(!(l instanceof e))throw TypeError("Incorrect "+(t?t+" ":"")+"invocation");return l}},19670:(a,l,e)=>{var t=e(70111);a.exports=function(n){if(!t(n))throw TypeError(String(n)+" is not an object");return n}},48457:(a,l,e)=>{"use strict";var t=e(49974),n=e(47908),s=e(53411),o=e(97659),i=e(17466),c=e(86135),h=e(71246);a.exports=function(m){var v=n(m),S=typeof this=="function"?this:Array,O=arguments.length,b=O>1?arguments[1]:void 0,N=b!==void 0,B=h(v),w=0,D,I,j,R,x,T;if(N&&(b=t(b,O>2?arguments[2]:void 0,2)),B!=null&&!(S==Array&&o(B)))for(R=B.call(v),x=R.next,I=new S;!(j=x.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 S(D);D>w;w++)T=N?b(v[w],w):v[w],c(I,w,T);return I.length=w,I}},41318:(a,l,e)=>{var t=e(45656),n=e(17466),s=e(51400),o=function(i){return function(c,h,p){var m=t(c),v=n(m.length),S=s(p,v),O;if(i&&h!=h){for(;v>S;)if(O=m[S++],O!=O)return!0}else for(;v>S;S++)if((i||S in m)&&m[S]===h)return i||S||0;return!i&&-1}};a.exports={includes:o(!0),indexOf:o(!1)}},53411:(a,l,e)=>{var t=e(19670),n=e(99212);a.exports=function(s,o,i,c){try{return c?o(t(i)[0],i[1]):o(i)}catch(h){throw n(s),h}}},84326:a=>{var l={}.toString;a.exports=function(e){return l.call(e).slice(8,-1)}},70648:(a,l,e)=>{var t=e(51694),n=e(84326),s=e(5112),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}},99920:(a,l,e)=>{var t=e(86656),n=e(53887),s=e(31236),o=e(3070);a.exports=function(i,c){for(var h=n(c),p=o.f,m=s.f,v=0;v<h.length;v++){var S=h[v];t(i,S)||p(i,S,m(c,S))}}},49920:(a,l,e)=>{var t=e(47293);a.exports=!t(function(){function n(){}return n.prototype.constructor=null,Object.getPrototypeOf(new n)!==n.prototype})},24994:(a,l,e)=>{"use strict";var t=e(13383).IteratorPrototype,n=e(70030),s=e(79114),o=e(58003),i=e(97497),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}},68880:(a,l,e)=>{var t=e(19781),n=e(3070),s=e(79114);a.exports=t?function(o,i,c){return n.f(o,i,s(1,c))}:function(o,i,c){return o[i]=c,o}},79114:a=>{a.exports=function(l,e){return{enumerable:!(l&1),configurable:!(l&2),writable:!(l&4),value:e}}},86135:(a,l,e)=>{"use strict";var t=e(57593),n=e(3070),s=e(79114);a.exports=function(o,i,c){var h=t(i);h in o?n.f(o,h,s(0,c)):o[h]=c}},70654:(a,l,e)=>{"use strict";var t=e(82109),n=e(24994),s=e(79518),o=e(27674),i=e(58003),c=e(68880),h=e(31320),p=e(5112),m=e(31913),v=e(97497),S=e(13383),O=S.IteratorPrototype,b=S.BUGGY_SAFARI_ITERATORS,N=p("iterator"),B="keys",w="values",D="entries",I=function(){return this};a.exports=function(j,R,x,T,G,W,K){n(x,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 x(this,te)};case w:return function(){return new x(this,te)};case D:return function(){return new x(this,te)}}return function(){return new x(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)),O!==Object.prototype&&q.next&&(!m&&s(q)!==O&&(o?o(q,O):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}},19781:(a,l,e)=>{var t=e(47293);a.exports=!t(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},80317:(a,l,e)=>{var t=e(17854),n=e(70111),s=t.document,o=n(s)&&n(s.createElement);a.exports=function(i){return o?s.createElement(i):{}}},88113:(a,l,e)=>{var t=e(35005);a.exports=t("navigator","userAgent")||""},7392:(a,l,e)=>{var t=e(17854),n=e(88113),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},80748:a=>{a.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},82109:(a,l,e)=>{var t=e(17854),n=e(31236).f,s=e(68880),o=e(31320),i=e(83505),c=e(99920),h=e(54705);a.exports=function(p,m){var v=p.target,S=p.global,O=p.stat,b,N,B,w,D,I;if(S?N=t:O?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(S?B:v+(O?".":"#")+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)}}},47293:a=>{a.exports=function(l){try{return!!l()}catch(e){return!0}}},49974:(a,l,e)=>{var t=e(13099);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)}}},35005:(a,l,e)=>{var t=e(40857),n=e(17854),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]}},71246:(a,l,e)=>{var t=e(70648),n=e(97497),s=e(5112),o=s("iterator");a.exports=function(i){if(i!=null)return i[o]||i["@@iterator"]||n[t(i)]}},18554:(a,l,e)=>{var t=e(19670),n=e(71246);a.exports=function(s){var o=n(s);if(typeof o!="function")throw TypeError(String(s)+" is not iterable");return t(o.call(s))}},17854:(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")()},86656:(a,l,e)=>{var t=e(47908),n={}.hasOwnProperty;a.exports=Object.hasOwn||function(o,i){return n.call(t(o),i)}},3501:a=>{a.exports={}},60490:(a,l,e)=>{var t=e(35005);a.exports=t("document","documentElement")},64664:(a,l,e)=>{var t=e(19781),n=e(47293),s=e(80317);a.exports=!t&&!n(function(){return Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a!=7})},68361:(a,l,e)=>{var t=e(47293),n=e(84326),s="".split;a.exports=t(function(){return!Object("z").propertyIsEnumerable(0)})?function(o){return n(o)=="String"?s.call(o,""):Object(o)}:Object},42788:(a,l,e)=>{var t=e(5465),n=Function.toString;typeof t.inspectSource!="function"&&(t.inspectSource=function(s){return n.call(s)}),a.exports=t.inspectSource},29909:(a,l,e)=>{var t=e(68536),n=e(17854),s=e(70111),o=e(68880),i=e(86656),c=e(5465),h=e(6200),p=e(3501),m="Object already initialized",v=n.WeakMap,S,O,b,N=function(x){return b(x)?O(x):S(x,{})},B=function(x){return function(T){var G;if(!s(T)||(G=O(T)).type!==x)throw TypeError("Incompatible receiver, "+x+" required");return G}};if(t||c.state){var w=c.state||(c.state=new v),D=w.get,I=w.has,j=w.set;S=function(x,T){if(I.call(w,x))throw new TypeError(m);return T.facade=x,j.call(w,x,T),T},O=function(x){return D.call(w,x)||{}},b=function(x){return I.call(w,x)}}else{var R=h("state");p[R]=!0,S=function(x,T){if(i(x,R))throw new TypeError(m);return T.facade=x,o(x,R,T),T},O=function(x){return i(x,R)?x[R]:{}},b=function(x){return i(x,R)}}a.exports={set:S,get:O,has:b,enforce:N,getterFor:B}},97659:(a,l,e)=>{var t=e(5112),n=e(97497),s=t("iterator"),o=Array.prototype;a.exports=function(i){return i!==void 0&&(n.Array===i||o[s]===i)}},54705:(a,l,e)=>{var t=e(47293),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},70111:a=>{a.exports=function(l){return typeof l=="object"?l!==null:typeof l=="function"}},31913:a=>{a.exports=!1},99212:(a,l,e)=>{var t=e(19670);a.exports=function(n){var s=n.return;if(s!==void 0)return t(s.call(n)).value}},13383:(a,l,e)=>{"use strict";var t=e(47293),n=e(79518),s=e(68880),o=e(86656),i=e(5112),c=e(31913),h=i("iterator"),p=!1,m=function(){return this},v,S,O;[].keys&&(O=[].keys(),"next"in O?(S=n(n(O)),S!==Object.prototype&&(v=S)):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}},97497:a=>{a.exports={}},30133:(a,l,e)=>{var t=e(7392),n=e(47293);a.exports=!!Object.getOwnPropertySymbols&&!n(function(){var s=Symbol();return!String(s)||!(Object(s)instanceof Symbol)||!Symbol.sham&&t&&t<41})},590:(a,l,e)=>{var t=e(47293),n=e(5112),s=e(31913),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"})},68536:(a,l,e)=>{var t=e(17854),n=e(42788),s=t.WeakMap;a.exports=typeof s=="function"&&/native code/.test(n(s))},21574:(a,l,e)=>{"use strict";var t=e(19781),n=e(47293),s=e(81956),o=e(25181),i=e(55296),c=e(47908),h=e(68361),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={},S={},O=Symbol(),b="abcdefghijklmnopqrst";return v[O]=7,b.split("").forEach(function(N){S[N]=N}),p({},v)[O]!=7||s(p({},S)).join("")!=b})?function(S,O){for(var b=c(S),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,x=0,T;R>x;)T=j[x++],(!t||D.call(I,T))&&(b[T]=I[T]);return b}:p},70030:(a,l,e)=>{var t=e(19670),n=e(36048),s=e(80748),o=e(3501),i=e(60490),c=e(80317),h=e(6200),p=">",m="<",v="prototype",S="script",O=h("IE_PROTO"),b=function(){},N=function(j){return m+S+p+j+m+"/"+S+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"+S+":",x;return j.style.display="none",i.appendChild(j),j.src=String(R),x=j.contentWindow.document,x.open(),x.write(N("document.F=Object")),x.close(),x.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[O]=!0,a.exports=Object.create||function(R,x){var T;return R!==null?(b[v]=t(R),T=new b,b[v]=null,T[O]=R):T=I(),x===void 0?T:n(T,x)}},36048:(a,l,e)=>{var t=e(19781),n=e(3070),s=e(19670),o=e(81956);a.exports=t?Object.defineProperties:function(c,h){s(c);for(var p=o(h),m=p.length,v=0,S;m>v;)n.f(c,S=p[v++],h[S]);return c}},3070:(a,l,e)=>{var t=e(19781),n=e(64664),s=e(19670),o=e(57593),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}},31236:(a,l,e)=>{var t=e(19781),n=e(55296),s=e(79114),o=e(45656),i=e(57593),c=e(86656),h=e(64664),p=Object.getOwnPropertyDescriptor;l.f=t?p:function(v,S){if(v=o(v),S=i(S,!0),h)try{return p(v,S)}catch(O){}if(c(v,S))return s(!n.f.call(v,S),v[S])}},8006:(a,l,e)=>{var t=e(16324),n=e(80748),s=n.concat("length","prototype");l.f=Object.getOwnPropertyNames||function(i){return t(i,s)}},25181:(a,l)=>{l.f=Object.getOwnPropertySymbols},79518:(a,l,e)=>{var t=e(86656),n=e(47908),s=e(6200),o=e(49920),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}},16324:(a,l,e)=>{var t=e(86656),n=e(45656),s=e(41318).indexOf,o=e(3501);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}},81956:(a,l,e)=>{var t=e(16324),n=e(80748);a.exports=Object.keys||function(o){return t(o,n)}},55296:(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},27674:(a,l,e)=>{var t=e(19670),n=e(96077);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)},53887:(a,l,e)=>{var t=e(35005),n=e(8006),s=e(25181),o=e(19670);a.exports=t("Reflect","ownKeys")||function(c){var h=n.f(o(c)),p=s.f;return p?h.concat(p(c)):h}},40857:(a,l,e)=>{var t=e(17854);a.exports=t},12248:(a,l,e)=>{var t=e(31320);a.exports=function(n,s,o){for(var i in s)t(n,i,s[i],o);return n}},31320:(a,l,e)=>{var t=e(17854),n=e(68880),s=e(86656),o=e(83505),i=e(42788),c=e(29909),h=c.get,p=c.enforce,m=String(String).split("String");(a.exports=function(v,S,O,b){var N=b?!!b.unsafe:!1,B=b?!!b.enumerable:!1,w=b?!!b.noTargetGet:!1,D;if(typeof O=="function"&&(typeof S=="string"&&!s(O,"name")&&n(O,"name",S),D=p(O),D.source||(D.source=m.join(typeof S=="string"?S:""))),v===t){B?v[S]=O:o(S,O);return}else N?!w&&v[S]&&(B=!0):delete v[S];B?v[S]=O:n(v,S,O)})(Function.prototype,"toString",function(){return typeof this=="function"&&h(this).source||i(this)})},84488:a=>{a.exports=function(l){if(l==null)throw TypeError("Can't call method on "+l);return l}},83505:(a,l,e)=>{var t=e(17854),n=e(68880);a.exports=function(s,o){try{n(t,s,o)}catch(i){t[s]=o}return o}},58003:(a,l,e)=>{var t=e(3070).f,n=e(86656),s=e(5112),o=s("toStringTag");a.exports=function(i,c,h){i&&!n(i=h?i:i.prototype,o)&&t(i,o,{configurable:!0,value:c})}},6200:(a,l,e)=>{var t=e(72309),n=e(69711),s=t("keys");a.exports=function(o){return s[o]||(s[o]=n(o))}},5465:(a,l,e)=>{var t=e(17854),n=e(83505),s="__core-js_shared__",o=t[s]||n(s,{});a.exports=o},72309:(a,l,e)=>{var t=e(31913),n=e(5465);(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)"})},28710:(a,l,e)=>{var t=e(99958),n=e(84488),s=function(o){return function(i,c){var h=String(n(i)),p=t(c),m=h.length,v,S;return p<0||p>=m?o?"":void 0:(v=h.charCodeAt(p),v<55296||v>56319||p+1===m||(S=h.charCodeAt(p+1))<56320||S>57343?o?h.charAt(p):v:o?h.slice(p,p+2):(v-55296<<10)+(S-56320)+65536)}};a.exports={codeAt:s(!1),charAt:s(!0)}},33197: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",S=e-t,O=Math.floor,b=String.fromCharCode,N=function(I){for(var j=[],R=0,x=I.length;R<x;){var T=I.charCodeAt(R++);if(T>=55296&&T<=56319&&R<x){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 x=0;for(I=R?O(I/o):I>>1,I+=O(I/j);I>S*n>>1;x+=e)I=O(I/S);return O(x+(S+1)*I/(I+s))},D=function(I){var j=[];I=N(I);var R=I.length,x=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>=x&&K<re&&(re=K);var $=ne+1;if(re-x>O((l-T)/$))throw RangeError(v);for(T+=(re-x)*$,x=re,W=0;W<I.length;W++){if(K=I[W],K<x&&++T>l)throw RangeError(v);if(K==x){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=O(q/oe)}j.push(b(B(k))),G=w(T,$,ne==V),T=0,++ne}}++T,++x}return j.join("")};a.exports=function(I){var j=[],R=I.toLowerCase().replace(m,".").split("."),x,T;for(x=0;x<R.length;x++)T=R[x],j.push(p.test(T)?"xn--"+D(T):T);return j.join(".")}},51400:(a,l,e)=>{var t=e(99958),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)}},45656:(a,l,e)=>{var t=e(68361),n=e(84488);a.exports=function(s){return t(n(s))}},99958:a=>{var l=Math.ceil,e=Math.floor;a.exports=function(t){return isNaN(t=+t)?0:(t>0?e:l)(t)}},17466:(a,l,e)=>{var t=e(99958),n=Math.min;a.exports=function(s){return s>0?n(t(s),9007199254740991):0}},47908:(a,l,e)=>{var t=e(84488);a.exports=function(n){return Object(t(n))}},57593:(a,l,e)=>{var t=e(70111);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")}},51694:(a,l,e)=>{var t=e(5112),n=t("toStringTag"),s={};s[n]="z",a.exports=String(s)==="[object z]"},69711:a=>{var l=0,e=Math.random();a.exports=function(t){return"Symbol("+String(t===void 0?"":t)+")_"+(++l+e).toString(36)}},43307:(a,l,e)=>{var t=e(30133);a.exports=t&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},5112:(a,l,e)=>{var t=e(17854),n=e(72309),s=e(86656),o=e(69711),i=e(30133),c=e(43307),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]}},66992:(a,l,e)=>{"use strict";var t=e(45656),n=e(51223),s=e(97497),o=e(29909),i=e(70654),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,S=m.kind,O=m.index++;return!v||O>=v.length?(m.target=void 0,{value:void 0,done:!0}):S=="keys"?{value:O,done:!1}:S=="values"?{value:v[O],done:!1}:{value:[O,v[O]],done:!1}},"values"),s.Arguments=s.Array,n("keys"),n("values"),n("entries")},78783:(a,l,e)=>{"use strict";var t=e(28710).charAt,n=e(29909),s=e(70654),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,S;return v>=m.length?{value:void 0,done:!0}:(S=t(m,v),p.index+=S.length,{value:S,done:!1})})},41637:(a,l,e)=>{"use strict";e(66992);var t=e(82109),n=e(35005),s=e(590),o=e(31320),i=e(12248),c=e(58003),h=e(24994),p=e(29909),m=e(25787),v=e(86656),S=e(49974),O=e(70648),b=e(19670),N=e(70111),B=e(70030),w=e(79114),D=e(18554),I=e(71246),j=e(5112),R=n("fetch"),x=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(A){return F}},ae=function(F){var A=F.replace(re," "),L=4;try{return decodeURIComponent(A)}catch(U){for(;L;)A=A.replace(k(L--),Q);return A}},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,A){if(A)for(var L=A.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)},ce=function(F,A){if(F<A)throw TypeError("Not enough arguments")},Oe=h(function(A,L){K(this,{type:W,iterator:D(V(A).entries),kind:L})},"Iterator",function(){var A=ne(this),L=A.kind,U=A.iterator.next(),E=U.value;return U.done||(U.value=L==="keys"?E.key:L==="values"?E.value:[E.key,E.value]),U}),Se=function(){m(this,Se,G);var A=arguments.length>0?arguments[0]:void 0,L=this,U=[],E,M,Z,Y,ee,se,ge,Ae,xe;if(K(L,{type:G,entries:U,updateURL:function(){},updateSearchParams:_}),A!==void 0)if(N(A))if(E=I(A),typeof E=="function")for(M=E.call(A),Z=M.next;!(Y=Z.call(M)).done;){if(ee=D(b(Y.value)),se=ee.next,(ge=se.call(ee)).done||(Ae=se.call(ee)).done||!se.call(ee).done)throw TypeError("Expected sequence with length 2");U.push({key:ge.value+"",value:Ae.value+""})}else for(xe in A)v(A,xe)&&U.push({key:xe,value:A[xe]+""});else me(U,typeof A=="string"?A.charAt(0)==="?"?A.slice(1):A:A+"")},Ie=Se.prototype;i(Ie,{append:function(A,L){ce(arguments.length,2);var U=V(this);U.entries.push({key:A+"",value:L+""}),U.updateURL()},delete:function(F){ce(arguments.length,1);for(var A=V(this),L=A.entries,U=F+"",E=0;E<L.length;)L[E].key===U?L.splice(E,1):E++;A.updateURL()},get:function(A){ce(arguments.length,1);for(var L=V(this).entries,U=A+"",E=0;E<L.length;E++)if(L[E].key===U)return L[E].value;return null},getAll:function(A){ce(arguments.length,1);for(var L=V(this).entries,U=A+"",E=[],M=0;M<L.length;M++)L[M].key===U&&E.push(L[M].value);return E},has:function(A){ce(arguments.length,1);for(var L=V(this).entries,U=A+"",E=0;E<L.length;)if(L[E++].key===U)return!0;return!1},set:function(A,L){ce(arguments.length,1);for(var U=V(this),E=U.entries,M=!1,Z=A+"",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 A=V(this),L=A.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)}A.updateURL()},forEach:function(A){for(var L=V(this).entries,U=S(A,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 Oe(this,"keys")},values:function(){return new Oe(this,"values")},entries:function(){return new Oe(this,"entries")}},{enumerable:!0}),o(Ie,T,Ie.entries),o(Ie,"toString",function(){for(var A=V(this).entries,L=[],U=0,E;U<A.length;)E=A[U++],L.push(te(E.key)+"="+te(E.value));return L.join("&")},{enumerable:!0}),c(Se,G),t({global:!0,forced:!s},{URLSearchParams:Se}),!s&&typeof R=="function"&&typeof x=="function"&&t({global:!0,enumerable:!0,forced:!0},{fetch:function(A){var L=[A],U,E,M;return arguments.length>1&&(U=arguments[1],N(U)&&(E=U.body,O(E)===G&&(M=U.headers?new x(U.headers):new x,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:Se,getState:V}},60285:(a,l,e)=>{"use strict";e(78783);var t=e(82109),n=e(19781),s=e(590),o=e(17854),i=e(36048),c=e(31320),h=e(25787),p=e(86656),m=e(21574),v=e(48457),S=e(28710).codeAt,O=e(33197),b=e(58003),N=e(41637),B=e(29909),w=o.URL,D=N.URLSearchParams,I=N.getState,j=B.set,R=B.getterFor("URL"),x=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,_,ce=function(r,f){var u,d,y;if(f.charAt(0)=="["){if(f.charAt(f.length-1)!="]"||(u=Se(f.slice(1,-1)),!u))return K;r.host=u}else if(Y(r)){if(f=O(f),oe.test(f)||(u=Oe(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],A);r.host=u}},Oe=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},Se=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=x(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},A={},L=m({},A,{" ":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=S(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=="|")},Ae=function(r){var f;return r.length>1&&ge(r.slice(0,2))&&(r.length==2||(f=r.charAt(2))==="/"||f==="\\"||f==="?"||f==="#")},xe=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={},Ve={},je={},ze={},We={},Ue={},$e={},Je={},Te={},we={},Ce={},Fe={},Me={},Ne={},Xe={},Be={},Pe={},ve={},Ze={},Re={},he={},le=function(r,f,u,d){var y=u||be,C=0,P="",H=!1,z=!1,J=!1,ue,g,X,pe;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=Ve;else{if(u)return W;y=je;continue}break;case Ve: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=ze:Y(r)?y=Je:ue[C+1]=="/"?(y=We,C++):(r.cannotBeABaseURL=!0,r.path.push(""),y=Ze)}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=he;break}y=d.scheme=="file"?Ne:Ue;continue;case ze:if(g=="/"&&ue[C+1]=="/")y=Te,C++;else{y=Ue;continue}break;case We:if(g=="/"){y=we;break}else{y=ve;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=$e;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=he;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=ve;continue}break;case $e: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=ve;continue}break;case Je: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 fr=X[He];if(fr==":"&&!J){J=!0;continue}var cr=M(fr,E);J?r.password+=cr:r.username+=cr}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(pe=ce(r,P),pe)return pe;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(pe=ce(r,P),pe)return pe;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=Xe;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=he;else{Ae(ue.slice(C).join(""))||(r.host=d.host,r.path=d.path.slice(),xe(r)),y=ve;continue}else{y=ve;continue}break;case Xe:if(g=="/"||g=="\\"){y=Be;break}d&&d.scheme=="file"&&!Ae(ue.slice(C).join(""))&&(ge(d.path[0],!0)?r.path.push(d.path[0]):r.host=d.host),y=ve;continue;case Be:if(g==_||g=="/"||g=="\\"||g=="?"||g=="#"){if(!u&&ge(P))y=ve;else if(P==""){if(r.host="",u)return;y=Pe}else{if(pe=ce(r,P),pe)return pe;if(r.host=="localhost"&&(r.host=""),u)return;P="",y=Pe}continue}else P+=g;break;case Pe:if(Y(r)){if(y=ve,g!="/"&&g!="\\")continue}else if(!u&&g=="?")r.query="",y=Re;else if(!u&&g=="#")r.fragment="",y=he;else if(g!=_&&(y=ve,g!="/"))continue;break;case ve:if(g==_||g=="/"||g=="\\"&&Y(r)||!u&&(g=="?"||g=="#")){if(lr(P)?(xe(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=he)}else P+=M(g,U);break;case Ze:g=="?"?(r.query="",y=Re):g=="#"?(r.fragment="",y=he):g!=_&&(r.path[0]+=M(g,A));break;case Re:!u&&g=="#"?(r.fragment="",y=he):g!=_&&(g=="'"&&Y(r)?r.query+="%27":g=="#"?r.query+="%23":r.query+=M(g,A));break;case he: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=le(P={},String(d)),H)throw TypeError(H)}if(H=le(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=Qe.call(u),u.protocol=ke.call(u),u.username=qe.call(u),u.password=_e.call(u),u.host=er.call(u),u.hostname=rr.call(u),u.port=tr.call(u),u.pathname=nr.call(u),u.search=ar.call(u),u.searchParams=or.call(u),u.hash=sr.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},Qe=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:"")},ke=function(){return R(this).scheme+":"},qe=function(){return R(this).username},_e=function(){return R(this).password},er=function(){var r=R(this),f=r.host,u=r.port;return f===null?"":u===null?F(f):F(f)+":"+u},rr=function(){var r=R(this).host;return r===null?"":F(r)},tr=function(){var r=R(this).port;return r===null?"":String(r)},nr=function(){var r=R(this),f=r.path;return r.cannotBeABaseURL?f[0]:f.length?"/"+f.join("/"):""},ar=function(){var r=R(this).query;return r?"?"+r:""},or=function(){return R(this).searchParams},sr=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=le(f,u);if(d)throw TypeError(d);I(f.searchParams).updateSearchParams(f.query)}),origin:ie(Qe),protocol:ie(ke,function(r){var f=R(this);le(f,String(r)+":",be)}),username:ie(qe,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(_e,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(er,function(r){var f=R(this);f.cannotBeABaseURL||le(f,String(r),Ce)}),hostname:ie(rr,function(r){var f=R(this);f.cannotBeABaseURL||le(f,String(r),Fe)}),port:ie(tr,function(r){var f=R(this);se(f)||(r=String(r),r==""?f.port=null:le(f,r,Me))}),pathname:ie(nr,function(r){var f=R(this);f.cannotBeABaseURL||(f.path=[],le(f,r+"",Pe))}),search:ie(ar,function(r){var f=R(this);r=String(r),r==""?f.query=null:(r.charAt(0)=="?"&&(r=r.slice(1)),f.query="",le(f,r,Re)),I(f.searchParams).updateSearchParams(f.query)}),searchParams:ie(or),hash:ie(sr,function(r){var f=R(this);if(r=String(r),r==""){f.fragment=null;return}r.charAt(0)=="#"&&(r=r.slice(1)),f.fragment="",le(f,r,he)})}),c(De,"toJSON",function(){return Le.call(this)},{enumerable:!0}),c(De,"toString",function(){return Le.call(this)},{enumerable:!0}),w){var ir=w.createObjectURL,ur=w.revokeObjectURL;ir&&c(ye,"createObjectURL",function(f){return ir.apply(w,arguments)}),ur&&c(ye,"revokeObjectURL",function(f){return ur.apply(w,arguments)})}b(ye,"URL"),t({global:!0,forced:!s,sham:!n},{URL:ye})},83753:(a,l,e)=>{"use strict";var t=e(82109);t({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},41439:(a,l,e)=>{e(60285),e(83753),e(41637);var t=e(40857);a.exports=t.URL}},Ee={};function fe(a){var l=Ee[a];if(l!==void 0)return l.exports;var e=Ee[a]={exports:{}};return Ke[a](e,e.exports,fe),e.exports}(()=>{fe.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(a){if(typeof window=="object")return window}}()})(),(()=>{fe.r=a=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})}})();var Ye={};return(()=>{"use strict";fe.r(Ye);var a=fe(41439);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"),S=c.get("state"),O=c.get("error"),b=c.get("error_description")||l;if(O)throw new Error(b);if(!t(S,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 Cc=Object.defineProperty,Rc=Object.defineProperties;var Ac=Object.getOwnProp
2
2
  * Redocly Reference Docs
3
3
  * (c) Copyright 2018 Redocly LLC, all rights reserved.
4
4
  * -------------------------------------------------------------
5
- * Version: "2.43.3"
5
+ * Version: "2.43.4"
6
6
  */(function(ii,Gr){typeof exports=="object"&&typeof module=="object"?module.exports=Gr(require("null")):typeof define=="function"&&define.amd?define(["null"],Gr):typeof exports=="object"?exports.RedoclyReferenceDocs=Gr(require("null")):ii.RedoclyReferenceDocs=Gr(ii.null)})(this,function(li){return(()=>{var ii={66042:(M,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.CodeGen=n.Name=n.nil=n.stringify=n.str=n._=n.KeywordCxt=void 0;const t=e(83325),l=e(68182),s=e(35522),o=e(15281),r="https://json-schema.org/draft/2020-12/schema";class c extends t.default{constructor(h={}){super(Ro(hi({},h),{dynamicRef:!0,next:!0,unevaluated:!0}))}_addVocabularies(){super._addVocabularies(),l.default.forEach(h=>this.addVocabulary(h)),this.opts.discriminator&&this.addKeyword(s.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:h,meta:p}=this.opts;!p||(o.default.call(this,h),this.refs["http://json-schema.org/schema"]=r)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(r)?r:void 0)}}M.exports=n=c,Object.defineProperty(n,"__esModule",{value:!0}),n.default=c;var u=e(21321);Object.defineProperty(n,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var a=e(24475);Object.defineProperty(n,"_",{enumerable:!0,get:function(){return a._}}),Object.defineProperty(n,"str",{enumerable:!0,get:function(){return a.str}}),Object.defineProperty(n,"stringify",{enumerable:!0,get:function(){return a.stringify}}),Object.defineProperty(n,"nil",{enumerable:!0,get:function(){return a.nil}}),Object.defineProperty(n,"Name",{enumerable:!0,get:function(){return a.Name}}),Object.defineProperty(n,"CodeGen",{enumerable:!0,get:function(){return a.CodeGen}})},64667:(M,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.regexpCode=n.getEsmExportName=n.getProperty=n.safeStringify=n.stringify=n.strConcat=n.addCodeArg=n.str=n._=n.nil=n._Code=n.Name=n.IDENTIFIER=n._CodeOrName=void 0;class e{}n._CodeOrName=e,n.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class t extends e{constructor(g){super();if(!n.IDENTIFIER.test(g))throw new Error("CodeGen: name must be a valid identifier");this.str=g}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}n.Name=t;class l extends e{constructor(g){super();this._items=typeof g=="string"?[g]:g}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const g=this._items[0];return g===""||g==='""'}get str(){var g;return(g=this._str)!==null&&g!==void 0?g:this._str=this._items.reduce((y,E)=>`${y}${E}`,"")}get names(){var g;return(g=this._names)!==null&&g!==void 0?g:this._names=this._items.reduce((y,E)=>(E instanceof t&&(y[E.str]=(y[E.str]||0)+1),y),{})}}n._Code=l,n.nil=new l("");function s(m,...g){const y=[m[0]];let E=0;for(;E<g.length;)c(y,g[E]),y.push(m[++E]);return new l(y)}n._=s;const o=new l("+");function r(m,...g){const y=[b(m[0])];let E=0;for(;E<g.length;)y.push(o),c(y,g[E]),y.push(o,b(m[++E]));return u(y),new l(y)}n.str=r;function c(m,g){g instanceof l?m.push(...g._items):g instanceof t?m.push(g):m.push(h(g))}n.addCodeArg=c;function u(m){let g=1;for(;g<m.length-1;){if(m[g]===o){const y=a(m[g-1],m[g+1]);if(y!==void 0){m.splice(g-1,3,y);continue}m[g++]="+"}g++}}function a(m,g){if(g==='""')return m;if(m==='""')return g;if(typeof m=="string")return g instanceof t||m[m.length-1]!=='"'?void 0:typeof g!="string"?`${m.slice(0,-1)}${g}"`:g[0]==='"'?m.slice(0,-1)+g.slice(1):void 0;if(typeof g=="string"&&g[0]==='"'&&!(m instanceof t))return`"${m}${g.slice(1)}`}function d(m,g){return g.emptyStr()?m:m.emptyStr()?g:r`${m}${g}`}n.strConcat=d;function h(m){return typeof m=="number"||typeof m=="boolean"||m===null?m:b(Array.isArray(m)?m.join(","):m)}function p(m){return new l(b(m))}n.stringify=p;function b(m){return JSON.stringify(m).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}n.safeStringify=b;function C(m){return typeof m=="string"&&n.IDENTIFIER.test(m)?new l(`.${m}`):s`[${m}]`}n.getProperty=C;function O(m){if(typeof m=="string"&&n.IDENTIFIER.test(m))return new l(`${m}`);throw new Error(`CodeGen: invalid export name: ${m}, use explicit $id name mapping`)}n.getEsmExportName=O;function x(m){return new l(m.toString())}n.regexpCode=x},24475:(M,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.or=n.and=n.not=n.CodeGen=n.operators=n.varKinds=n.ValueScopeName=n.ValueScope=n.Scope=n.Name=n.regexpCode=n.stringify=n.getProperty=n.nil=n.strConcat=n.str=n._=void 0;const t=e(64667),l=e(17791);var s=e(64667);Object.defineProperty(n,"_",{enumerable:!0,get:function(){return s._}}),Object.defineProperty(n,"str",{enumerable:!0,get:function(){return s.str}}),Object.defineProperty(n,"strConcat",{enumerable:!0,get:function(){return s.strConcat}}),Object.defineProperty(n,"nil",{enumerable:!0,get:function(){return s.nil}}),Object.defineProperty(n,"getProperty",{enumerable:!0,get:function(){return s.getProperty}}),Object.defineProperty(n,"stringify",{enumerable:!0,get:function(){return s.stringify}}),Object.defineProperty(n,"regexpCode",{enumerable:!0,get:function(){return s.regexpCode}}),Object.defineProperty(n,"Name",{enumerable:!0,get:function(){return s.Name}});var o=e(17791);Object.defineProperty(n,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(n,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(n,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(n,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),n.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class r{optimizeNodes(){return this}optimizeNames(z,W){return this}}class c extends r{constructor(z,W,ae){super();this.varKind=z,this.name=W,this.rhs=ae}render({es5:z,_n:W}){const ae=z?l.varKinds.var:this.varKind,pe=this.rhs===void 0?"":` = ${this.rhs}`;return`${ae} ${this.name}${pe};`+W}optimizeNames(z,W){if(!!z[this.name.str])return this.rhs&&(this.rhs=ee(this.rhs,z,W)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class u extends r{constructor(z,W,ae){super();this.lhs=z,this.rhs=W,this.sideEffects=ae}render({_n:z}){return`${this.lhs} = ${this.rhs};`+z}optimizeNames(z,W){if(!(this.lhs instanceof t.Name&&!z[this.lhs.str]&&!this.sideEffects))return this.rhs=ee(this.rhs,z,W),this}get names(){const z=this.lhs instanceof t.Name?{}:hi({},this.lhs.names);return se(z,this.rhs)}}class a extends u{constructor(z,W,ae,pe){super(z,ae,pe);this.op=W}render({_n:z}){return`${this.lhs} ${this.op}= ${this.rhs};`+z}}class d extends r{constructor(z){super();this.label=z,this.names={}}render({_n:z}){return`${this.label}:`+z}}class h extends r{constructor(z){super();this.label=z,this.names={}}render({_n:z}){return`break${this.label?` ${this.label}`:""};`+z}}class p extends r{constructor(z){super();this.error=z}render({_n:z}){return`throw ${this.error};`+z}get names(){return this.error.names}}class b extends r{constructor(z){super();this.code=z}render({_n:z}){return`${this.code};`+z}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(z,W){return this.code=ee(this.code,z,W),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class C extends r{constructor(z=[]){super();this.nodes=z}render(z){return this.nodes.reduce((W,ae)=>W+ae.render(z),"")}optimizeNodes(){const{nodes:z}=this;let W=z.length;for(;W--;){const ae=z[W].optimizeNodes();Array.isArray(ae)?z.splice(W,1,...ae):ae?z[W]=ae:z.splice(W,1)}return z.length>0?this:void 0}optimizeNames(z,W){const{nodes:ae}=this;let pe=ae.length;for(;pe--;){const Ae=ae[pe];Ae.optimizeNames(z,W)||(be(z,Ae.names),ae.splice(pe,1))}return ae.length>0?this:void 0}get names(){return this.nodes.reduce((z,W)=>Z(z,W.names),{})}}class O extends C{render(z){return"{"+z._n+super.render(z)+"}"+z._n}}class x extends C{}class m extends O{}m.kind="else";class g extends O{constructor(z,W){super(W);this.condition=z}render(z){let W=`if(${this.condition})`+super.render(z);return this.else&&(W+="else "+this.else.render(z)),W}optimizeNodes(){super.optimizeNodes();const z=this.condition;if(z===!0)return this.nodes;let W=this.else;if(W){const ae=W.optimizeNodes();W=this.else=Array.isArray(ae)?new m(ae):ae}if(W)return z===!1?W instanceof g?W:W.nodes:this.nodes.length?this:new g(Fe(z),W instanceof g?[W]:W.nodes);if(!(z===!1||!this.nodes.length))return this}optimizeNames(z,W){var ae;if(this.else=(ae=this.else)===null||ae===void 0?void 0:ae.optimizeNames(z,W),!!(super.optimizeNames(z,W)||this.else))return this.condition=ee(this.condition,z,W),this}get names(){const z=super.names;return se(z,this.condition),this.else&&Z(z,this.else.names),z}}g.kind="if";class y extends O{}y.kind="for";class E extends y{constructor(z){super();this.iteration=z}render(z){return`for(${this.iteration})`+super.render(z)}optimizeNames(z,W){if(!!super.optimizeNames(z,W))return this.iteration=ee(this.iteration,z,W),this}get names(){return Z(super.names,this.iteration.names)}}class T extends y{constructor(z,W,ae,pe){super();this.varKind=z,this.name=W,this.from=ae,this.to=pe}render(z){const W=z.es5?l.varKinds.var:this.varKind,{name:ae,from:pe,to:Ae}=this;return`for(${W} ${ae}=${pe}; ${ae}<${Ae}; ${ae}++)`+super.render(z)}get names(){const z=se(super.names,this.from);return se(z,this.to)}}class A extends y{constructor(z,W,ae,pe){super();this.loop=z,this.varKind=W,this.name=ae,this.iterable=pe}render(z){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(z)}optimizeNames(z,W){if(!!super.optimizeNames(z,W))return this.iterable=ee(this.iterable,z,W),this}get names(){return Z(super.names,this.iterable.names)}}class w extends O{constructor(z,W,ae){super();this.name=z,this.args=W,this.async=ae}render(z){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(z)}}w.kind="func";class P extends C{render(z){return"return "+super.render(z)}}P.kind="return";class R extends O{render(z){let W="try"+super.render(z);return this.catch&&(W+=this.catch.render(z)),this.finally&&(W+=this.finally.render(z)),W}optimizeNodes(){var z,W;return super.optimizeNodes(),(z=this.catch)===null||z===void 0||z.optimizeNodes(),(W=this.finally)===null||W===void 0||W.optimizeNodes(),this}optimizeNames(z,W){var ae,pe;return super.optimizeNames(z,W),(ae=this.catch)===null||ae===void 0||ae.optimizeNames(z,W),(pe=this.finally)===null||pe===void 0||pe.optimizeNames(z,W),this}get names(){const z=super.names;return this.catch&&Z(z,this.catch.names),this.finally&&Z(z,this.finally.names),z}}class v extends O{constructor(z){super();this.error=z}render(z){return`catch(${this.error})`+super.render(z)}}v.kind="catch";class k extends O{render(z){return"finally"+super.render(z)}}k.kind="finally";class Y{constructor(z,W={}){this._values={},this._blockStarts=[],this._constants={},this.opts=Ro(hi({},W),{_n:W.lines?`
7
7
  `:""}),this._extScope=z,this._scope=new l.Scope({parent:z}),this._nodes=[new x]}toString(){return this._root.render(this.opts)}name(z){return this._scope.name(z)}scopeName(z){return this._extScope.name(z)}scopeValue(z,W){const ae=this._extScope.value(z,W);return(this._values[ae.prefix]||(this._values[ae.prefix]=new Set)).add(ae),ae}getScopeValue(z,W){return this._extScope.getValue(z,W)}scopeRefs(z){return this._extScope.scopeRefs(z,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(z,W,ae,pe){const Ae=this._scope.toName(W);return ae!==void 0&&pe&&(this._constants[Ae.str]=ae),this._leafNode(new c(z,Ae,ae)),Ae}const(z,W,ae){return this._def(l.varKinds.const,z,W,ae)}let(z,W,ae){return this._def(l.varKinds.let,z,W,ae)}var(z,W,ae){return this._def(l.varKinds.var,z,W,ae)}assign(z,W,ae){return this._leafNode(new u(z,W,ae))}add(z,W){return this._leafNode(new a(z,n.operators.ADD,W))}code(z){return typeof z=="function"?z():z!==t.nil&&this._leafNode(new b(z)),this}object(...z){const W=["{"];for(const[ae,pe]of z)W.length>1&&W.push(","),W.push(ae),(ae!==pe||this.opts.es5)&&(W.push(":"),(0,t.addCodeArg)(W,pe));return W.push("}"),new t._Code(W)}if(z,W,ae){if(this._blockNode(new g(z)),W&&ae)this.code(W).else().code(ae).endIf();else if(W)this.code(W).endIf();else if(ae)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(z){return this._elseNode(new g(z))}else(){return this._elseNode(new m)}endIf(){return this._endBlockNode(g,m)}_for(z,W){return this._blockNode(z),W&&this.code(W).endFor(),this}for(z,W){return this._for(new E(z),W)}forRange(z,W,ae,pe,Ae=this.opts.es5?l.varKinds.var:l.varKinds.let){const Ce=this._scope.toName(z);return this._for(new T(Ae,Ce,W,ae),()=>pe(Ce))}forOf(z,W,ae,pe=l.varKinds.const){const Ae=this._scope.toName(z);if(this.opts.es5){const Ce=W instanceof t.Name?W:this.var("_arr",W);return this.forRange("_i",0,(0,t._)`${Ce}.length`,et=>{this.var(Ae,(0,t._)`${Ce}[${et}]`),ae(Ae)})}return this._for(new A("of",pe,Ae,W),()=>ae(Ae))}forIn(z,W,ae,pe=this.opts.es5?l.varKinds.var:l.varKinds.const){if(this.opts.ownProperties)return this.forOf(z,(0,t._)`Object.keys(${W})`,ae);const Ae=this._scope.toName(z);return this._for(new A("in",pe,Ae,W),()=>ae(Ae))}endFor(){return this._endBlockNode(y)}label(z){return this._leafNode(new d(z))}break(z){return this._leafNode(new h(z))}return(z){const W=new P;if(this._blockNode(W),this.code(z),W.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(P)}try(z,W,ae){if(!W&&!ae)throw new Error('CodeGen: "try" without "catch" and "finally"');const pe=new R;if(this._blockNode(pe),this.code(z),W){const Ae=this.name("e");this._currNode=pe.catch=new v(Ae),W(Ae)}return ae&&(this._currNode=pe.finally=new k,this.code(ae)),this._endBlockNode(v,k)}throw(z){return this._leafNode(new p(z))}block(z,W){return this._blockStarts.push(this._nodes.length),z&&this.code(z).endBlock(W),this}endBlock(z){const W=this._blockStarts.pop();if(W===void 0)throw new Error("CodeGen: not in self-balancing block");const ae=this._nodes.length-W;if(ae<0||z!==void 0&&ae!==z)throw new Error(`CodeGen: wrong number of nodes: ${ae} vs ${z} expected`);return this._nodes.length=W,this}func(z,W=t.nil,ae,pe){return this._blockNode(new w(z,W,ae)),pe&&this.code(pe).endFunc(),this}endFunc(){return this._endBlockNode(w)}optimize(z=1){for(;z-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(z){return this._currNode.nodes.push(z),this}_blockNode(z){this._currNode.nodes.push(z),this._nodes.push(z)}_endBlockNode(z,W){const ae=this._currNode;if(ae instanceof z||W&&ae instanceof W)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${W?`${z.kind}/${W.kind}`:z.kind}"`)}_elseNode(z){const W=this._currNode;if(!(W instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=W.else=z,this}get _root(){return this._nodes[0]}get _currNode(){const z=this._nodes;return z[z.length-1]}set _currNode(z){const W=this._nodes;W[W.length-1]=z}}n.CodeGen=Y;function Z(re,z){for(const W in z)re[W]=(re[W]||0)+(z[W]||0);return re}function se(re,z){return z instanceof t._CodeOrName?Z(re,z.names):re}function ee(re,z,W){if(re instanceof t.Name)return ae(re);if(!pe(re))return re;return new t._Code(re._items.reduce((Ae,Ce)=>(Ce instanceof t.Name&&(Ce=ae(Ce)),Ce instanceof t._Code?Ae.push(...Ce._items):Ae.push(Ce),Ae),[]));function ae(Ae){const Ce=W[Ae.str];return Ce===void 0||z[Ae.str]!==1?Ae:(delete z[Ae.str],Ce)}function pe(Ae){return Ae instanceof t._Code&&Ae._items.some(Ce=>Ce instanceof t.Name&&z[Ce.str]===1&&W[Ce.str]!==void 0)}}function be(re,z){for(const W in z)re[W]=(re[W]||0)-(z[W]||0)}function Fe(re){return typeof re=="boolean"||typeof re=="number"||re===null?!re:(0,t._)`!${G(re)}`}n.not=Fe;const ce=B(n.operators.AND);function te(...re){return re.reduce(ce)}n.and=te;const he=B(n.operators.OR);function Q(...re){return re.reduce(he)}n.or=Q;function B(re){return(z,W)=>z===t.nil?W:W===t.nil?z:(0,t._)`${G(z)} ${re} ${G(W)}`}function G(re){return re instanceof t.Name?re:(0,t._)`(${re})`}},17791:(M,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ValueScope=n.ValueScopeName=n.Scope=n.varKinds=n.UsedValueState=void 0;const t=e(64667);class l extends Error{constructor(d){super(`CodeGen: "code" for ${d} not defined`);this.value=d.value}}var s;(function(a){a[a.Started=0]="Started",a[a.Completed=1]="Completed"})(s=n.UsedValueState||(n.UsedValueState={})),n.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class o{constructor({prefixes:d,parent:h}={}){this._names={},this._prefixes=d,this._parent=h}toName(d){return d instanceof t.Name?d:this.name(d)}name(d){return new t.Name(this._newName(d))}_newName(d){const h=this._names[d]||this._nameGroup(d);return`${d}${h.index++}`}_nameGroup(d){var h,p;if(((p=(h=this._parent)===null||h===void 0?void 0:h._prefixes)===null||p===void 0?void 0:p.has(d))||this._prefixes&&!this._prefixes.has(d))throw new Error(`CodeGen: prefix "${d}" is not allowed in this scope`);return this._names[d]={prefix:d,index:0}}}n.Scope=o;class r extends t.Name{constructor(d,h){super(h);this.prefix=d}setValue(d,{property:h,itemIndex:p}){this.value=d,this.scopePath=(0,t._)`.${new t.Name(h)}[${p}]`}}n.ValueScopeName=r;const c=(0,t._)`\n`;class u extends o{constructor(d){super(d);this._values={},this._scope=d.scope,this.opts=Ro(hi({},d),{_n:d.lines?c:t.nil})}get(){return this._scope}name(d){return new r(d,this._newName(d))}value(d,h){var p;if(h.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const b=this.toName(d),{prefix:C}=b,O=(p=h.key)!==null&&p!==void 0?p:h.ref;let x=this._values[C];if(x){const y=x.get(O);if(y)return y}else x=this._values[C]=new Map;x.set(O,b);const m=this._scope[C]||(this._scope[C]=[]),g=m.length;return m[g]=h.ref,b.setValue(h,{property:C,itemIndex:g}),b}getValue(d,h){const p=this._values[d];if(!!p)return p.get(h)}scopeRefs(d,h=this._values){return this._reduceValues(h,p=>{if(p.scopePath===void 0)throw new Error(`CodeGen: name "${p}" has no value`);return(0,t._)`${d}${p.scopePath}`})}scopeCode(d=this._values,h,p){return this._reduceValues(d,b=>{if(b.value===void 0)throw new Error(`CodeGen: name "${b}" has no value`);return b.value.code},h,p)}_reduceValues(d,h,p={},b){let C=t.nil;for(const O in d){const x=d[O];if(!x)continue;const m=p[O]=p[O]||new Map;x.forEach(g=>{if(m.has(g))return;m.set(g,s.Started);let y=h(g);if(y){const E=this.opts.es5?n.varKinds.var:n.varKinds.const;C=(0,t._)`${C}${E} ${g} = ${y};${this.opts._n}`}else if(y=b==null?void 0:b(g))C=(0,t._)`${C}${y}${this.opts._n}`;else throw new l(g);m.set(g,s.Completed)})}return C}}n.ValueScope=u},21885:(M,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.extendErrors=n.resetErrorsCount=n.reportExtraError=n.reportError=n.keyword$DataError=n.keywordError=void 0;const t=e(24475),l=e(86124),s=e(25018);n.keywordError={message:({keyword:m})=>(0,t.str)`must pass "${m}" keyword validation`},n.keyword$DataError={message:({keyword:m,schemaType:g})=>g?(0,t.str)`"${m}" keyword must be ${g} ($data)`:(0,t.str)`"${m}" keyword is invalid ($data)`};function o(m,g=n.keywordError,y,E){const{it:T}=m,{gen:A,compositeRule:w,allErrors:P}=T,R=p(m,g,y);(E!=null?E:w||P)?a(A,R):d(T,(0,t._)`[${R}]`)}n.reportError=o;function r(m,g=n.keywordError,y){const{it:E}=m,{gen:T,compositeRule:A,allErrors:w}=E,P=p(m,g,y);a(T,P),A||w||d(E,s.default.vErrors)}n.reportExtraError=r;function c(m,g){m.assign(s.default.errors,g),m.if((0,t._)`${s.default.vErrors} !== null`,()=>m.if(g,()=>m.assign((0,t._)`${s.default.vErrors}.length`,g),()=>m.assign(s.default.vErrors,null)))}n.resetErrorsCount=c;function u({gen:m,keyword:g,schemaValue:y,data:E,errsCount:T,it:A}){if(T===void 0)throw new Error("ajv implementation error");const w=m.name("err");m.forRange("i",T,s.default.errors,P=>{m.const(w,(0,t._)`${s.default.vErrors}[${P}]`),m.if((0,t._)`${w}.instancePath === undefined`,()=>m.assign((0,t._)`${w}.instancePath`,(0,t.strConcat)(s.default.instancePath,A.errorPath))),m.assign((0,t._)`${w}.schemaPath`,(0,t.str)`${A.errSchemaPath}/${g}`),A.opts.verbose&&(m.assign((0,t._)`${w}.schema`,y),m.assign((0,t._)`${w}.data`,E))})}n.extendErrors=u;function a(m,g){const y=m.const("err",g);m.if((0,t._)`${s.default.vErrors} === null`,()=>m.assign(s.default.vErrors,(0,t._)`[${y}]`),(0,t._)`${s.default.vErrors}.push(${y})`),m.code((0,t._)`${s.default.errors}++`)}function d(m,g){const{gen:y,validateName:E,schemaEnv:T}=m;T.$async?y.throw((0,t._)`new ${m.ValidationError}(${g})`):(y.assign((0,t._)`${E}.errors`,g),y.return(!1))}const h={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function p(m,g,y){const{createErrors:E}=m.it;return E===!1?(0,t._)`{}`:b(m,g,y)}function b(m,g,y={}){const{gen:E,it:T}=m,A=[C(T,y),O(m,y)];return x(m,g,A),E.object(...A)}function C({errorPath:m},{instancePath:g}){const y=g?(0,t.str)`${m}${(0,l.getErrorPath)(g,l.Type.Str)}`:m;return[s.default.instancePath,(0,t.strConcat)(s.default.instancePath,y)]}function O({keyword:m,it:{errSchemaPath:g}},{schemaPath:y,parentSchema:E}){let T=E?g:(0,t.str)`${g}/${m}`;return y&&(T=(0,t.str)`${T}${(0,l.getErrorPath)(y,l.Type.Str)}`),[h.schemaPath,T]}function x(m,{params:g,message:y},E){const{keyword:T,data:A,schemaValue:w,it:P}=m,{opts:R,propertyName:v,topSchemaRef:k,schemaPath:Y}=P;E.push([h.keyword,T],[h.params,typeof g=="function"?g(m):g||(0,t._)`{}`]),R.messages&&E.push([h.message,typeof y=="function"?y(m):y]),R.verbose&&E.push([h.schema,w],[h.parentSchema,(0,t._)`${k}${Y}`],[s.default.data,A]),v&&E.push([h.propertyName,v])}},87805:(M,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.resolveSchema=n.getCompilingSchema=n.resolveRef=n.compileSchema=n.SchemaEnv=void 0;const t=e(24475),l=e(18451),s=e(25018),o=e(49826),r=e(86124),c=e(21321);class u{constructor(y){var E;this.refs={},this.dynamicAnchors={};let T;typeof y.schema=="object"&&(T=y.schema),this.schema=y.schema,this.schemaId=y.schemaId,this.root=y.root||this,this.baseId=(E=y.baseId)!==null&&E!==void 0?E:(0,o.normalizeId)(T==null?void 0:T[y.schemaId||"$id"]),this.schemaPath=y.schemaPath,this.localRefs=y.localRefs,this.meta=y.meta,this.$async=T==null?void 0:T.$async,this.refs={}}}n.SchemaEnv=u;function a(g){const y=p.call(this,g);if(y)return y;const E=(0,o.getFullPath)(this.opts.uriResolver,g.root.baseId),{es5:T,lines:A}=this.opts.code,{ownProperties:w}=this.opts,P=new t.CodeGen(this.scope,{es5:T,lines:A,ownProperties:w});let R;g.$async&&(R=P.scopeValue("Error",{ref:l.default,code:(0,t._)`require("ajv/dist/runtime/validation_error").default`}));const v=P.scopeName("validate");g.validateName=v;const k={gen:P,allErrors:this.opts.allErrors,data:s.default.data,parentData:s.default.parentData,parentDataProperty:s.default.parentDataProperty,dataNames:[s.default.data],dataPathArr:[t.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:P.scopeValue("schema",this.opts.code.source===!0?{ref:g.schema,code:(0,t.stringify)(g.schema)}:{ref:g.schema}),validateName:v,ValidationError:R,schema:g.schema,schemaEnv:g,rootId:E,baseId:g.baseId||E,schemaPath:t.nil,errSchemaPath:g.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,t._)`""`,opts:this.opts,self:this};let Y;try{this._compilations.add(g),(0,c.validateFunctionCode)(k),P.optimize(this.opts.code.optimize);const Z=P.toString();Y=`const visitedNodesForRef = new WeakMap(); ${P.scopeRefs(s.default.scope)}return ${Z}`,this.opts.code.process&&(Y=this.opts.code.process(Y,g));const ee=new Function(`${s.default.self}`,`${s.default.scope}`,Y)(this,this.scope.get());if(this.scope.value(v,{ref:ee}),ee.errors=null,ee.schema=g.schema,ee.schemaEnv=g,g.$async&&(ee.$async=!0),this.opts.code.source===!0&&(ee.source={validateName:v,validateCode:Z,scopeValues:P._values}),this.opts.unevaluated){const{props:be,items:Fe}=k;ee.evaluated={props:be instanceof t.Name?void 0:be,items:Fe instanceof t.Name?void 0:Fe,dynamicProps:be instanceof t.Name,dynamicItems:Fe instanceof t.Name},ee.source&&(ee.source.evaluated=(0,t.stringify)(ee.evaluated))}return g.validate=ee,g}catch(Z){throw delete g.validate,delete g.validateName,Y&&this.logger.error("Error compiling schema, function code:",Y),Z}finally{this._compilations.delete(g)}}n.compileSchema=a;function d(g,y,E){var T;const A=(0,o.resolveUrl)(this.opts.uriResolver,y,E),w=g.refs[A];if(w)return w;let P=C.call(this,g,A);if(P===void 0){const R=(T=g.localRefs)===null||T===void 0?void 0:T[A],{schemaId:v}=this.opts;R&&(P=new u({schema:R,schemaId:v,root:g,baseId:y}))}if(P===void 0&&this.opts.loadSchemaSync){const R=this.opts.loadSchemaSync(y,E,A);R&&!(this.refs[A]||this.schemas[A])&&(this.addSchema(R,A,void 0),P=C.call(this,g,A))}if(P!==void 0)return g.refs[A]=h.call(this,P)}n.resolveRef=d;function h(g){return(0,o.inlineRef)(g.schema,this.opts.inlineRefs)?g.schema:g.validate?g:a.call(this,g)}function p(g){for(const y of this._compilations)if(b(y,g))return y}n.getCompilingSchema=p;function b(g,y){return g.schema===y.schema&&g.root===y.root&&g.baseId===y.baseId}function C(g,y){let E;for(;typeof(E=this.refs[y])=="string";)y=E;return E||this.schemas[y]||O.call(this,g,y)}function O(g,y){const E=this.opts.uriResolver.parse(y),T=(0,o._getFullPath)(this.opts.uriResolver,E);let A=(0,o.getFullPath)(this.opts.uriResolver,g.baseId,void 0);if(Object.keys(g.schema).length>0&&T===A)return m.call(this,E,g);const w=(0,o.normalizeId)(T),P=this.refs[w]||this.schemas[w];if(typeof P=="string"){const R=O.call(this,g,P);return typeof(R==null?void 0:R.schema)!="object"?void 0:m.call(this,E,R)}if(typeof(P==null?void 0:P.schema)=="object"){if(P.validate||a.call(this,P),w===(0,o.normalizeId)(y)){const{schema:R}=P,{schemaId:v}=this.opts,k=R[v];return k&&(A=(0,o.resolveUrl)(this.opts.uriResolver,A,k)),new u({schema:R,schemaId:v,root:g,baseId:A})}return m.call(this,E,P)}}n.resolveSchema=O;const x=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function m(g,{baseId:y,schema:E,root:T}){var A;if(((A=g.fragment)===null||A===void 0?void 0:A[0])!=="/")return;for(const R of g.fragment.slice(1).split("/")){if(typeof E=="boolean")return;const v=E[(0,r.unescapeFragment)(R)];if(v===void 0)return;E=v;const k=typeof E=="object"&&E[this.opts.schemaId];!x.has(R)&&k&&(y=(0,o.resolveUrl)(this.opts.uriResolver,y,k))}let w;if(typeof E!="boolean"&&E.$ref&&!(0,r.schemaHasRulesButRef)(E,this.RULES)){const R=(0,o.resolveUrl)(this.opts.uriResolver,y,E.$ref);w=O.call(this,T,R)}const{schemaId:P}=this.opts;if(w=w||new u({schema:E,schemaId:P,root:T,baseId:y}),w.schema!==w.root.schema)return w}},25018:(M,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const t=e(24475),l={data:new t.Name("data"),valCxt:new t.Name("valCxt"),instancePath:new t.Name("instancePath"),parentData:new t.Name("parentData"),parentDataProperty:new t.Name("parentDataProperty"),rootData:new t.Name("rootData"),dynamicAnchors:new t.Name("dynamicAnchors"),isAllOfVariant:new t.Name("isAllOfVariant"),vErrors:new t.Name("vErrors"),errors:new t.Name("errors"),this:new t.Name("this"),self:new t.Name("self"),scope:new t.Name("scope"),json:new t.Name("json"),jsonPos:new t.Name("jsonPos"),jsonLen:new t.Name("jsonLen"),jsonPart:new t.Name("jsonPart")};n.default=l},64143:(M,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const t=e(49826);class l extends Error{constructor(o,r,c,u){super(u||`can't resolve reference ${c} from id ${r}`);this.missingRef=(0,t.resolveUrl)(o,r,c),this.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(o,this.missingRef))}}n.default=l},49826:(M,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getSchemaRefs=n.resolveUrl=n.normalizeId=n._getFullPath=n.getFullPath=n.inlineRef=void 0;const t=e(86124),l=e(64063),s=e(54029),o=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function r(m,g=!0){return typeof m=="boolean"?!0:g===!0?!u(m):g?a(m)<=g:!1}n.inlineRef=r;const c=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function u(m){for(const g in m){if(c.has(g))return!0;const y=m[g];if(Array.isArray(y)&&y.some(u)||typeof y=="object"&&u(y))return!0}return!1}function a(m){let g=0;for(const y in m){if(y==="$ref")return 1/0;if(g++,!o.has(y)&&(typeof m[y]=="object"&&(0,t.eachItem)(m[y],E=>g+=a(E)),g===1/0))return 1/0}return g}function d(m,g="",y){y!==!1&&(g=b(g));const E=m.parse(g);return h(m,E)}n.getFullPath=d;function h(m,g){return m.serialize(g).split("#")[0]+"#"}n._getFullPath=h;const p=/#\/?$/;function b(m){return m?m.replace(p,""):""}n.normalizeId=b;function C(m,g,y){return y=b(y),m.resolve(g,y)}n.resolveUrl=C;const O=/^[a-z_][-a-z0-9._]*$/i;function x(m,g){if(typeof m=="boolean")return{};const{schemaId:y,uriResolver:E}=this.opts,T=b(m[y]||g),A={"":T},w=d(E,T,!1),P={},R=new Set;return s(m,{allKeys:!0},(Y,Z,se,ee)=>{if(ee===void 0)return;const be=w+Z;let Fe=A[ee];typeof Y[y]=="string"&&(Fe=ce.call(this,Y[y])),te.call(this,Y.$anchor),te.call(this,Y.$dynamicAnchor),A[Z]=Fe;function ce(he){const Q=this.opts.uriResolver.resolve;if(he=b(Fe?Q(Fe,he):he),R.has(he))throw k(he);R.add(he);let B=this.refs[he];return typeof B=="string"&&(B=this.refs[B]),typeof B=="object"?v(Y,B.schema,he):he!==b(be)&&(he[0]==="#"?(v(Y,P[he],he),P[he]=Y):this.refs[he]=be),he}function te(he){if(typeof he=="string"){if(!O.test(he))throw new Error(`invalid anchor "${he}"`);ce.call(this,`#${he}`)}}}),P;function v(Y,Z,se){if(Z!==void 0&&!l(Y,Z))throw k(se)}function k(Y){return new Error(`reference "${Y}" resolves to more than one schema`)}}n.getSchemaRefs=x},73664:(M,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getRules=n.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function l(o){return typeof o=="string"&&t.has(o)}n.isJSONType=l;function s(){const o={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:Ro(hi({},o),{integer:!0,boolean:!0,null:!0}),rules:[{rules:[]},o.number,o.string,o.array,o.object],post:{rules:[]},all:{},keywords:{}}}n.getRules=s},86124:(M,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.checkStrictMode=n.getErrorPath=n.Type=n.useFunc=n.setEvaluated=n.evaluatedPropsToName=n.mergeEvaluated=n.eachItem=n.unescapeJsonPointer=n.escapeJsonPointer=n.escapeFragment=n.unescapeFragment=n.schemaRefOrVal=n.schemaHasRulesButRef=n.schemaHasRules=n.checkUnknownRules=n.alwaysValidSchema=n.toHash=void 0;const t=e(24475),l=e(64667);function s(w){const P={};for(const R of w)P[R]=!0;return P}n.toHash=s;function o(w,P){return typeof P=="boolean"?P:Object.keys(P).length===0?!0:(r(w,P),!c(P,w.self.RULES.all))}n.alwaysValidSchema=o;function r(w,P=w.schema){const{opts:R,self:v}=w;if(!R.strictSchema||typeof P=="boolean")return;const k=v.RULES.keywords;for(const Y in P)k[Y]||A(w,`unknown keyword: "${Y}"`)}n.checkUnknownRules=r;function c(w,P){if(typeof w=="boolean")return!w;for(const R in w)if(P[R])return!0;return!1}n.schemaHasRules=c;function u(w,P){if(typeof w=="boolean")return!w;for(const R in w)if(R!=="$ref"&&P.all[R])return!0;return!1}n.schemaHasRulesButRef=u;function a({topSchemaRef:w,schemaPath:P},R,v,k){if(!k){if(typeof R=="number"||typeof R=="boolean")return R;if(typeof R=="string")return(0,t._)`${R}`}return(0,t._)`${w}${P}${(0,t.getProperty)(v)}`}n.schemaRefOrVal=a;function d(w){return b(decodeURIComponent(w))}n.unescapeFragment=d;function h(w){return encodeURIComponent(p(w))}n.escapeFragment=h;function p(w){return typeof w=="number"?`${w}`:w.replace(/~/g,"~0").replace(/\//g,"~1")}n.escapeJsonPointer=p;function b(w){return w.replace(/~1/g,"/").replace(/~0/g,"~")}n.unescapeJsonPointer=b;function C(w,P){if(Array.isArray(w))for(const R of w)P(R);else P(w)}n.eachItem=C;function O({mergeNames:w,mergeToName:P,mergeValues:R,resultToName:v}){return(k,Y,Z,se)=>{const ee=Z===void 0?Y:Z instanceof t.Name?(Y instanceof t.Name?w(k,Y,Z):P(k,Y,Z),Z):Y instanceof t.Name?(P(k,Z,Y),Y):R(Y,Z);return se===t.Name&&!(ee instanceof t.Name)?v(k,ee):ee}}n.mergeEvaluated={props:O({mergeNames:(w,P,R)=>w.if((0,t._)`${R} !== true && ${P} !== undefined`,()=>{w.if((0,t._)`${P} === true`,()=>w.assign(R,!0),()=>w.assign(R,(0,t._)`${R} || {}`).code((0,t._)`Object.assign(${R}, ${P})`))}),mergeToName:(w,P,R)=>w.if((0,t._)`${R} !== true`,()=>{P===!0?w.assign(R,!0):(w.assign(R,(0,t._)`${R} || {}`),m(w,R,P))}),mergeValues:(w,P)=>w===!0?!0:hi(hi({},w),P),resultToName:x}),items:O({mergeNames:(w,P,R)=>w.if((0,t._)`${R} !== true && ${P} !== undefined`,()=>w.assign(R,(0,t._)`${P} === true ? true : ${R} > ${P} ? ${R} : ${P}`)),mergeToName:(w,P,R)=>w.if((0,t._)`${R} !== true`,()=>w.assign(R,P===!0?!0:(0,t._)`${R} > ${P} ? ${R} : ${P}`)),mergeValues:(w,P)=>w===!0?!0:Math.max(w,P),resultToName:(w,P)=>w.var("items",P)})};function x(w,P){if(P===!0)return w.var("props",!0);const R=w.var("props",(0,t._)`{}`);return P!==void 0&&m(w,R,P),R}n.evaluatedPropsToName=x;function m(w,P,R){Object.keys(R).forEach(v=>w.assign((0,t._)`${P}${(0,t.getProperty)(v)}`,!0))}n.setEvaluated=m;const g={};function y(w,P){return w.scopeValue("func",{ref:P,code:g[P.code]||(g[P.code]=new l._Code(P.code))})}n.useFunc=y;var E;(function(w){w[w.Num=0]="Num",w[w.Str=1]="Str"})(E=n.Type||(n.Type={}));function T(w,P,R){if(w instanceof t.Name){const v=P===E.Num;return R?v?(0,t._)`"[" + ${w} + "]"`:(0,t._)`"['" + ${w} + "']"`:v?(0,t._)`"/" + ${w}`:(0,t._)`"/" + ${w}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return R?(0,t.getProperty)(w).toString():"/"+p(w)}n.getErrorPath=T;function A(w,P,R=w.opts.strictSchema){if(!!R){if(P=`strict mode: ${P}`,R===!0)throw new Error(P);w.self.logger.warn(P)}}n.checkStrictMode=A},14566:(M,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.shouldUseRule=n.shouldUseGroup=n.schemaHasRulesForType=void 0;function e({schema:s,self:o},r){const c=o.RULES.types[r];return c&&c!==!0&&t(s,c)}n.schemaHasRulesForType=e;function t(s,o){return o.rules.some(r=>l(s,r))}n.shouldUseGroup=t;function l(s,o){var r;return s[o.keyword]!==void 0||((r=o.definition.implements)===null||r===void 0?void 0:r.some(c=>s[c]!==void 0))}n.shouldUseRule=l},27627:(M,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.boolOrEmptySchema=n.topBoolOrEmptySchema=void 0;const t=e(21885),l=e(24475),s=e(25018),o={message:"boolean schema is false"};function r(a){const{gen:d,schema:h,validateName:p}=a;h===!1?u(a,!1):typeof h=="object"&&h.$async===!0?d.return(s.default.data):(d.assign((0,l._)`${p}.errors`,null),d.return(!0))}n.topBoolOrEmptySchema=r;function c(a,d){const{gen:h,schema:p}=a;p===!1?(h.var(d,!1),u(a)):h.var(d,!0)}n.boolOrEmptySchema=c;function u(a,d){const{gen:h,data:p}=a,b={gen:h,keyword:"false schema",data:p,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:a};(0,t.reportError)(b,o,void 0,d)}},97927:(M,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.reportTypeError=n.checkDataTypes=n.checkDataType=n.coerceAndCheckDataType=n.getJSONTypes=n.getSchemaTypes=n.DataType=void 0;const t=e(73664),l=e(14566),s=e(21885),o=e(24475),r=e(86124);var c;(function(E){E[E.Correct=0]="Correct",E[E.Wrong=1]="Wrong"})(c=n.DataType||(n.DataType={}));function u(E){const T=a(E.type);if(T.includes("null")){if(E.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!T.length&&E.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');E.nullable===!0&&T.push("null")}return T}n.getSchemaTypes=u;function a(E){const T=Array.isArray(E)?E:E?[E]:[];if(T.every(t.isJSONType))return T;throw new Error("type must be JSONType or JSONType[]: "+T.join(","))}n.getJSONTypes=a;function d(E,T){const{gen:A,data:w,opts:P}=E,R=p(T,P.coerceTypes),v=T.length>0&&!(R.length===0&&T.length===1&&(0,l.schemaHasRulesForType)(E,T[0]));if(v){const k=x(T,w,P.strictNumbers,c.Wrong);A.if(k,()=>{R.length?b(E,T,R):g(E)})}return v}n.coerceAndCheckDataType=d;const h=new Set(["string","number","integer","boolean","null"]);function p(E,T){return T?E.filter(A=>h.has(A)||T==="array"&&A==="array"):[]}function b(E,T,A){const{gen:w,data:P,opts:R}=E,v=w.let("dataType",(0,o._)`typeof ${P}`),k=w.let("coerced",(0,o._)`undefined`);R.coerceTypes==="array"&&w.if((0,o._)`${v} == 'object' && Array.isArray(${P}) && ${P}.length == 1`,()=>w.assign(P,(0,o._)`${P}[0]`).assign(v,(0,o._)`typeof ${P}`).if(x(T,P,R.strictNumbers),()=>w.assign(k,P))),w.if((0,o._)`${k} !== undefined`);for(const Z of A)(h.has(Z)||Z==="array"&&R.coerceTypes==="array")&&Y(Z);w.else(),g(E),w.endIf(),w.if((0,o._)`${k} !== undefined`,()=>{w.assign(P,k),C(E,k)});function Y(Z){switch(Z){case"string":w.elseIf((0,o._)`${v} == "number" || ${v} == "boolean"`).assign(k,(0,o._)`"" + ${P}`).elseIf((0,o._)`${P} === null`).assign(k,(0,o._)`""`);return;case"number":w.elseIf((0,o._)`${v} == "boolean" || ${P} === null
8
8
  || (${v} == "string" && ${P} && ${P} == +${P})`).assign(k,(0,o._)`+${P}`);return;case"integer":w.elseIf((0,o._)`${v} === "boolean" || ${P} === null
@@ -2638,7 +2638,7 @@ ${rt(F.postData.text.trim(),{level:1,indent:wt.indent,firstLine:!0})}
2638
2638
  `).forEach(Mt=>{const rn=Mt.replace(/"/g,'\\"');$t.push(3,`, "${rn}"`)}),$t.push(2,");"),$t.push(2,"%s.setEntity(new StringEntity(payload));",$t.var("request")));break}return Gt.withWrapper&&($t.push(2,`String ${$t.var("response")} = EntityUtils.toString(httpClient.execute(request).getEntity());`),$t.blank(),$t.push(2,"System.out.println(response);"),$t.push(1,"}"),$t.push("}")),$t.join();function sn(Mt,rn){for(const[Ft,dr]of Object.entries(Mt))fr(dr)?($t.push(rn,'.put("%s", new JSONObject()',Ft),sn(dr,rn+1),$t.push(rn,")")):$t.push(rn,'.put("%s", %s)',Ft,Lr(dr))}},_e={key:"apachehttp",title:"Apache http",link:"https://hc.apache.org/httpcomponents-client-4.5.x/",description:"Apache HttpClient"},gt=Re;function Vt(F){F.push("/**"),F.push(" * Requires JDK >= 8"),F.push(" *"),F.push(" * Requires Apache HttpComponents Client >= 4.3.5"),F.push(" * See here for installation details:"),F.push(" * https://search.maven.org/artifact/org.apache.httpcomponents/httpcomponents-client"),F.push(" *"),F.push(' * Requires package "junit4"'),F.push(" * See here for installation details:"),F.push(" * https://junit.org/junit4"),F.push(" *"),F.push(' * Requires package "org.json" >= 20180130'),F.push(" * See here for installation details:"),F.push(" * https://search.maven.org/artifact/org.json/json"),F.push(" */"),F.blank()}function dn(F,me){var Ne,Ut,Ht;F.push("import org.apache.http.util.EntityUtils;"),F.push("import org.apache.http.NameValuePair;"),F.push("import org.apache.http.client.HttpClient;"),F.push("import org.apache.http.client.entity.UrlEncodedFormEntity;"),me.method&&An(F,me.method),((Ne=me.securityOAuth2ExtraCalls)==null?void 0:Ne.length)&&((Ut=me.securityOAuth2ExtraCalls)==null?void 0:Ut[0].method.toLowerCase())!==me.method.toLowerCase()&&An(F,(Ht=me.securityOAuth2ExtraCalls)==null?void 0:Ht[0].method),F.push("import org.apache.http.impl.client.HttpClientBuilder;"),F.push("import org.apache.http.message.BasicNameValuePair;"),F.push("import org.apache.http.entity.StringEntity;"),F.push("import org.json.JSONObject;"),F.push("import org.json.JSONArray;"),F.push("import java.util.ArrayList;"),F.push("import java.util.List;"),F.push("import org.apache.http.entity.mime.MultipartEntity;"),F.push("import org.apache.http.entity.mime.content.StringBody;"),me.basicAuth&&F.push("import java.util.Base64;"),F.blank()}function An(F,me){const Ne=Fn(me);F.push(`import org.apache.http.client.methods.${Ne};`)}function Fn(F){return"Http"+kn(F.toLowerCase())}function cr(F){return Object.prototype.toString.call(F)==="[object String]"}function fr(F){const me=typeof F;return me==="function"||me==="object"&&!!F}function Lr(F){return cr(F)?JSON.stringify(F):F==null?"JSONObject.NULL":F}const hr={info:{key:"java8",title:"Java8+Apache",extname:".java",default:"apachehttp"},apachehttp:gt};var jr=Object.defineProperty,mi=Object.defineProperties,oi=Object.getOwnPropertyDescriptors,Yr=Object.getOwnPropertySymbols,Qr=Object.prototype.hasOwnProperty,Vi=Object.prototype.propertyIsEnumerable,wi=(F,me,Ne)=>me in F?jr(F,me,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):F[me]=Ne,go=(F,me)=>{for(var Ne in me||(me={}))Qr.call(me,Ne)&&wi(F,Ne,me[Ne]);if(Yr)for(var Ne of Yr(me))Vi.call(me,Ne)&&wi(F,Ne,me[Ne]);return F},Yo=(F,me)=>mi(F,oi(me));const ko=F=>!!(F.uriObj.query&&Object.keys(F.uriObj.query).length),Bo=F=>F.postData&&F.postData.mimeType===d.T.URL_ENCODED?"HttpRequest.BodyPublishers.ofString(form)":F.postData?"HttpRequest.BodyPublishers.ofString(payload)":["POST","PUT","PATCH"].includes(F.method.toUpperCase())?'HttpRequest.BodyPublishers.ofString("some body text")':"",Bs=function(F,me,{target:Ne,client:Ut}){var Ht,Qt,Gt;const $t=Object.assign({indent:" ",withWrapper:!0},me),wt=new Mn({indentation:$t.indent,variablesPrefix:$t.variablesPrefix,capitalize:!0,lang:m.JAVA});let Et=!1;if($t.withComments&&Yi(wt,F),$t.withImports&&Ao(wt,F),$t.withWrapper&&(wt.push("public class App {"),wt.push(1,"public static void main(String[] args) throws Exception {"),wt.push(2,"var httpClient = HttpClient.newBuilder().build();"),wt.blank()),(Ht=F.securityOAuth2ExtraCalls)==null?void 0:Ht.length){const Mt=new ai((Qt=F.securityOAuth2ExtraCalls)==null?void 0:Qt[0]).convert(Ne,Ut,Yo(go({},$t),{withImports:!1,withWrapper:!1,withComments:!1,variablesPrefix:"oauth2"}));wt.push(Mt),wt.blank(),wt.push(2,"var oauth2Response = httpClient.send(oauth2Request, HttpResponse.BodyHandlers.ofString());"),wt.push(2,'var accessToken = new JSONObject(oauth2Response.body()).getString("access_token");'),wt.blank()}if(F.postData)switch((0,a.PP)(F.postData.mimeType)){case d.T.URL_ENCODED:F.postData.params&&(wt.push(2,"HashMap<String, String> params = new HashMap<>();"),F.postData.params.forEach(Mt=>{wt.push(2,'params.put("%s", "%s");',Mt.name,Mt.value)}),wt.blank(),wt.push(2,"var form = params.keySet().stream()"),wt.push(3,'.map(key -> key + "=" + URLEncoder.encode(params.get(key), StandardCharsets.UTF_8))'),wt.push(3,'.collect(Collectors.joining("&"));'),wt.blank());break;case d.T.JSON:F.postData.jsonObj&&(wt.push(2,`var payload = String.join("\\n"
2639
2639
  ${rt(JSON.stringify(F.postData.jsonObj,null,1).replace(/"/g,'\\"').replace(/^/gm,', "').replace(/$/gm,'"'),{level:3,indent:$t.indent,firstLine:!1})}`),wt.push(2,");"),wt.blank());break;case d.T.XML:F.postData.text&&(wt.push(2,'var payload = String.join("\\n"'),F.postData.text.trim().split(`
2640
2640
  `).forEach(Mt=>{const rn=Mt.replace(/"/g,'\\"');wt.push(3,`, "${rn}"`)}),wt.push(2,");"),wt.blank());break;case d.T.MULTIPART:Et=!0,wt.unshift(`# multipart/form-data is not supported yet
2641
- `);break}if(ko(F)){wt.push(2,"HashMap<String, String> params = new HashMap<>();");for(const[Mt,rn]of Object.entries(F.uriObj.query))wt.push(2,'params.put("%s", "%s");',Mt,rn);wt.blank(),wt.push(2,"var query = params.keySet().stream()"),wt.push(3,'.map(key -> key + "=" + URLEncoder.encode(params.get(key), StandardCharsets.UTF_8))'),wt.push(3,'.collect(Collectors.joining("&"));'),wt.blank()}wt.push(2,`var ${wt.var("host")} = "%s";`,F.uriObj.protocol+"//"+F.uriObj.host),It(F,wt,2);const Kt=go(go({},F),{pathname:F.uriObj.pathname});wt.push(2,`var ${wt.var("pathname")} = %s;`,it(Kt,wt)),wt.push(2,`var ${wt.var("request")} = HttpRequest.newBuilder()`),F.method.toUpperCase()==="PATCH"?wt.push(3,'.method("PATCH", %s)',Bo(F)):wt.push(3,".%s(%s)",F.method.toUpperCase(),Bo(F)),wt.push(3,`.uri(URI.create(${wt.var("host")} + ${wt.var("pathname")} %s))`,ko(F)?"+ '?' + query":""),((Gt=F.securityOAuth2ExtraCalls)==null?void 0:Gt.length)&&(F.allHeaders.Authorization='"Bearer " + accessToken');const sn=Object.keys(F.allHeaders);if(sn.length&&sn.forEach(Mt=>{var rn;wt.push(3,'.header("%s", %s)',Mt,Mt==="Authorization"&&((rn=F.securityOAuth2ExtraCalls)==null?void 0:rn.length)?F.allHeaders[Mt]:`"${F.allHeaders[Mt]}"`)}),F.basicAuth){const{username:Mt,password:rn}=F.basicAuth;wt.push(3,`.header("Authorization", "Basic " + Base64.getEncoder().encodeToString(("${Mt}:${rn}").getBytes()))`)}return wt.push(3,".build();"),$t.withWrapper&&(wt.blank(),wt.push(2,"var response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());"),wt.blank(),wt.push(2,"System.out.println(response.body());"),wt.push(1,"}"),wt.push("}")),Et&&wt.clean(),wt.join()},xa={key:"httpclient",title:"HttpClient",link:"https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpClient.html",description:"HttpClient (Java SE 11 & JDK 11 )"},ia=Bs;function Yi(F,me){var Ne;F.push("/**"),F.push(" * Requires JDK >= 11"),((Ne=me.securityOAuth2ExtraCalls)==null?void 0:Ne.length)&&(F.push(" *"),F.push(' * Requires package "org.json" >= 20201115'),F.push(" * See here for installation details:"),F.push(" * https://search.maven.org/artifact/org.json/json")),F.push(" */"),F.blank()}function Ao(F,me){var Ne,Ut,Ht,Qt;F.push("import java.net.*;"),F.push("import java.net.http.*;"),F.push("import java.util.*;"),((0,a.PP)((Ne=me.postData)==null?void 0:Ne.mimeType)===d.T.URL_ENCODED&&((Ut=me.postData)==null?void 0:Ut.params)||((Ht=me.securityOAuth2ExtraCalls)==null?void 0:Ht.length)||ko(me))&&(F.push("import java.nio.charset.StandardCharsets;"),F.push("import java.util.stream.Collectors;")),((Qt=me.securityOAuth2ExtraCalls)==null?void 0:Qt.length)&&F.push("import org.json.JSONObject;"),F.blank()}const bs={info:{key:"java",title:"Java",extname:".java",default:"httpclient"},httpclient:ia};function oa(F,me){let Ne=me;return typeof me=="string"&&(Ne=me.split(".")),Ne.every(Ut=>typeof F!="object"||F===null||!(Ut in F)?!1:(F=F[Ut],!0))}function Jo(F,me,Ne){var Ut;let Ht=me;typeof me=="string"&&(Ht=me.split("."));const Qt=Ht.length-1;for(let $t=0;$t<Qt;++$t){const wt=Ht[$t];F=(Ut=F[wt])!=null?Ut:F[wt]={}}const Gt=Ht[Qt];F[Gt]=Ne}function Zo(F){return typeof F=="object"&&!Array.isArray(F)&&F!==null}var Us=Object.defineProperty,Xo=Object.defineProperties,fi=Object.getOwnPropertyDescriptors,qo=Object.getOwnPropertySymbols,sa=Object.prototype.hasOwnProperty,Ti=Object.prototype.propertyIsEnumerable,es=(F,me,Ne)=>me in F?Us(F,me,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):F[me]=Ne,no=(F,me)=>{for(var Ne in me||(me={}))sa.call(me,Ne)&&es(F,Ne,me[Ne]);if(qo)for(var Ne of qo(me))Ti.call(me,Ne)&&es(F,Ne,me[Ne]);return F},ro=(F,me)=>Xo(F,fi(me));const aa=function(F,me,{target:Ne,client:Ut}){var Ht,Qt,Gt,$t;const wt=Object.assign({indent:" ",withWrapper:!0},me),Et=new Mn({indentation:wt.indent,variablesPrefix:wt.variablesPrefix,capitalize:!0,lang:m.CSHARP}),Kt=Fr(F.method);if(wt.withComments&&io(Et),wt.withWrapper&&(Et.push("using System;"),Et.push("using System.Net.Http;"),Et.push("using System.Threading.Tasks;"),(Mt(d.T.JSON)||Mt(d.T.XML)||F.basicAuth)&&Et.push("using System.Text;"),(Mt(d.T.URL_ENCODED)||((Ht=F.securityOAuth2ExtraCalls)==null?void 0:Ht.length))&&Et.push("using System.Collections.Generic;"),(Mt(d.T.JSON)||((Qt=F.securityOAuth2ExtraCalls)==null?void 0:Qt.length))&&Et.push("using System.Text.Json;"),rn()&&(Et.push("using System.IO;"),(rn()||F.basicAuth)&&Et.push("using System.Net.Http.Headers;")),Et.blank(),Et.push("public class Program"),Et.push("{"),Et.push(1,"public static async Task Main()"),Et.push(1,"{")),(Gt=F.securityOAuth2ExtraCalls)==null?void 0:Gt.length){const Tn=new ai(($t=F.securityOAuth2ExtraCalls)==null?void 0:$t[0]).convert(Ne,Ut,ro(no({},wt),{withImports:!1,withWrapper:!1,withComments:!1,variablesPrefix:"oauth2"}));Et.push(Tn),Et.push(2,"var oauth2Response = await oauth2Request.Content.ReadAsStringAsync();"),Et.push(2,"JObject inputJObject = JObject.Parse(oauth2Response);"),Et.push(2,'var accessToken = inputJObject["access_token"].ToString();'),Et.blank()}const sn=Object.keys(F.allHeaders).filter(Tn=>{switch(Tn.toLowerCase()){case"content-type":case"content-length":case"accept-encoding":return!1;default:return!0}});if(sn.length?(Et.push(2,"System.Net.Http.HttpClient client = new()"),Et.push(2,"{"),Et.push(3,"DefaultRequestHeaders ="),Et.push(3,"{"),sn.forEach(Tn=>{var Sn;Et.push(4,'{"%s", %s},',Tn,((Sn=F.securityOAuth2ExtraCalls)==null?void 0:Sn.length)?'"Bearer " + accessToken':`"${F.allHeaders[Tn]}"`)}),Et.push(3,"}"),Et.push(2,"};")):Et.push(2,"System.Net.Http.HttpClient client = new();"),Et.blank(),F.basicAuth){const{username:Tn,password:Sn}=F.basicAuth;Et.push(2,`string base64String = Convert.ToBase64String(Encoding.ASCII.GetBytes("${Tn}:${Sn}"));`),Et.push(2,'client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(@"Basic", base64String);'),Et.blank()}if(F.postData)switch((0,a.PP)(F.postData.mimeType)){case d.T.URL_ENCODED:F.postData.params&&(Et.blank(),Et.push(2,"List<KeyValuePair<string, string>> postData = new List<KeyValuePair<string, string>>();"),F.postData.params.forEach(Tn=>{Et.push(2,'postData.Add(new KeyValuePair<string, string>("%s", "%s"));',Tn.name,Tn.value)}),Et.blank());break;case d.T.MULTIPART:F.postData.params&&(Et.blank(),Et.push(2,"MultipartFormDataContent postData = new MultipartFormDataContent();"),F.postData.params.forEach(Tn=>{Et.push(2,'postData.Add(new StringContent("%s"), "%s");',Tn.value,Tn.name)}));break;case d.T.JSON:F.postData.jsonObj&&(Et.push(2,"string json = JsonSerializer.Serialize(new"),Et.push(2,"{"),dr(F.postData.jsonObj,3),Et.push(2,"});"),Et.blank(),Et.push(2,'using StringContent postData = new(json, Encoding.UTF8, "%s");'),Et.push(2,'var postData = new StringContent(json.ToString(), Encoding.UTF8, "%s");',F.postData.mimeType));break;case d.T.XML:F.postData.text&&(F.postData.text.trim().split(`
2641
+ `);break}if(ko(F)){wt.push(2,"HashMap<String, String> params = new HashMap<>();");for(const[Mt,rn]of Object.entries(F.uriObj.query))wt.push(2,'params.put("%s", "%s");',Mt,rn);wt.blank(),wt.push(2,"var query = params.keySet().stream()"),wt.push(3,'.map(key -> key + "=" + URLEncoder.encode(params.get(key), StandardCharsets.UTF_8))'),wt.push(3,'.collect(Collectors.joining("&"));'),wt.blank()}wt.push(2,`var ${wt.var("host")} = "%s";`,F.uriObj.protocol+"//"+F.uriObj.host),It(F,wt,2);const Kt=go(go({},F),{pathname:F.uriObj.pathname});wt.push(2,`var ${wt.var("pathname")} = %s;`,it(Kt,wt)),wt.push(2,`var ${wt.var("request")} = HttpRequest.newBuilder()`),F.method.toUpperCase()==="PATCH"?wt.push(3,'.method("PATCH", %s)',Bo(F)):wt.push(3,".%s(%s)",F.method.toUpperCase(),Bo(F)),wt.push(3,`.uri(URI.create(${wt.var("host")} + ${wt.var("pathname")} %s))`,ko(F)?"+ '?' + query":""),((Gt=F.securityOAuth2ExtraCalls)==null?void 0:Gt.length)&&(F.allHeaders.Authorization='"Bearer " + accessToken');const sn=Object.keys(F.allHeaders);if(sn.length&&sn.forEach(Mt=>{var rn;wt.push(3,'.header("%s", %s)',Mt,Mt==="Authorization"&&((rn=F.securityOAuth2ExtraCalls)==null?void 0:rn.length)?F.allHeaders[Mt]:`"${F.allHeaders[Mt]}"`)}),F.basicAuth){const{username:Mt,password:rn}=F.basicAuth;wt.push(3,`.header("Authorization", "Basic " + Base64.getEncoder().encodeToString(("${Mt}:${rn}").getBytes()))`)}return wt.push(3,".build();"),$t.withWrapper&&(wt.blank(),wt.push(2,"var response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());"),wt.blank(),wt.push(2,"System.out.println(response.body());"),wt.push(1,"}"),wt.push("}")),Et&&wt.clean(),wt.join()},xa={key:"httpclient",title:"HttpClient",link:"https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpClient.html",description:"HttpClient (Java SE 11 & JDK 11 )"},ia=Bs;function Yi(F,me){var Ne;F.push("/**"),F.push(" * Requires JDK >= 11"),((Ne=me.securityOAuth2ExtraCalls)==null?void 0:Ne.length)&&(F.push(" *"),F.push(' * Requires package "org.json" >= 20201115'),F.push(" * See here for installation details:"),F.push(" * https://search.maven.org/artifact/org.json/json")),F.push(" */"),F.blank()}function Ao(F,me){var Ne,Ut,Ht,Qt;F.push("import java.net.*;"),F.push("import java.net.http.*;"),F.push("import java.util.*;"),((0,a.PP)((Ne=me.postData)==null?void 0:Ne.mimeType)===d.T.URL_ENCODED&&((Ut=me.postData)==null?void 0:Ut.params)||((Ht=me.securityOAuth2ExtraCalls)==null?void 0:Ht.length)||ko(me))&&(F.push("import java.nio.charset.StandardCharsets;"),F.push("import java.util.stream.Collectors;")),((Qt=me.securityOAuth2ExtraCalls)==null?void 0:Qt.length)&&F.push("import org.json.JSONObject;"),F.blank()}const bs={info:{key:"java",title:"Java",extname:".java",default:"httpclient"},httpclient:ia};function oa(F,me){let Ne=me;return typeof me=="string"&&(Ne=me.split(".")),Ne.every(Ut=>typeof F!="object"||F===null||!(Ut in F)?!1:(F=F[Ut],!0))}function Jo(F,me,Ne){var Ut;let Ht=me;typeof me=="string"&&(Ht=me.split("."));const Qt=Ht.length-1;for(let $t=0;$t<Qt;++$t){const wt=Ht[$t];F=(Ut=F[wt])!=null?Ut:F[wt]={}}const Gt=Ht[Qt];F[Gt]=Ne}function Zo(F){return typeof F=="object"&&!Array.isArray(F)&&F!==null}var Us=Object.defineProperty,Xo=Object.defineProperties,fi=Object.getOwnPropertyDescriptors,qo=Object.getOwnPropertySymbols,sa=Object.prototype.hasOwnProperty,Ti=Object.prototype.propertyIsEnumerable,es=(F,me,Ne)=>me in F?Us(F,me,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):F[me]=Ne,no=(F,me)=>{for(var Ne in me||(me={}))sa.call(me,Ne)&&es(F,Ne,me[Ne]);if(qo)for(var Ne of qo(me))Ti.call(me,Ne)&&es(F,Ne,me[Ne]);return F},ro=(F,me)=>Xo(F,fi(me));const aa=function(F,me,{target:Ne,client:Ut}){var Ht,Qt,Gt,$t;const wt=Object.assign({indent:" ",withWrapper:!0},me),Et=new Mn({indentation:wt.indent,variablesPrefix:wt.variablesPrefix,capitalize:!0,lang:m.CSHARP}),Kt=Fr(F.method);if(wt.withComments&&io(Et),wt.withWrapper&&(Et.push("using System;"),Et.push("using System.Net.Http;"),Et.push("using System.Threading.Tasks;"),(Mt(d.T.JSON)||Mt(d.T.XML)||F.basicAuth)&&Et.push("using System.Text;"),(Mt(d.T.URL_ENCODED)||((Ht=F.securityOAuth2ExtraCalls)==null?void 0:Ht.length))&&Et.push("using System.Collections.Generic;"),(Mt(d.T.JSON)||((Qt=F.securityOAuth2ExtraCalls)==null?void 0:Qt.length))&&Et.push("using System.Text.Json;"),rn()&&Et.push("using System.IO;"),(rn()||F.basicAuth)&&Et.push("using System.Net.Http.Headers;"),Et.blank(),Et.push("public class Program"),Et.push("{"),Et.push(1,"public static async Task Main()"),Et.push(1,"{")),(Gt=F.securityOAuth2ExtraCalls)==null?void 0:Gt.length){const Tn=new ai(($t=F.securityOAuth2ExtraCalls)==null?void 0:$t[0]).convert(Ne,Ut,ro(no({},wt),{withImports:!1,withWrapper:!1,withComments:!1,variablesPrefix:"oauth2"}));Et.push(Tn),Et.push(2,"var oauth2Response = await oauth2Request.Content.ReadAsStringAsync();"),Et.push(2,"JObject inputJObject = JObject.Parse(oauth2Response);"),Et.push(2,'var accessToken = inputJObject["access_token"].ToString();'),Et.blank()}const sn=Object.keys(F.allHeaders).filter(Tn=>{switch(Tn.toLowerCase()){case"content-type":case"content-length":case"accept-encoding":return!1;default:return!0}});if(sn.length?(Et.push(2,"System.Net.Http.HttpClient client = new()"),Et.push(2,"{"),Et.push(3,"DefaultRequestHeaders ="),Et.push(3,"{"),sn.forEach(Tn=>{var Sn;Et.push(4,'{"%s", %s},',Tn,((Sn=F.securityOAuth2ExtraCalls)==null?void 0:Sn.length)?'"Bearer " + accessToken':`"${F.allHeaders[Tn]}"`)}),Et.push(3,"}"),Et.push(2,"};")):Et.push(2,"System.Net.Http.HttpClient client = new();"),Et.blank(),F.basicAuth){const{username:Tn,password:Sn}=F.basicAuth;Et.push(2,`string base64String = Convert.ToBase64String(Encoding.ASCII.GetBytes("${Tn}:${Sn}"));`),Et.push(2,'client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(@"Basic", base64String);'),Et.blank()}if(F.postData)switch((0,a.PP)(F.postData.mimeType)){case d.T.URL_ENCODED:F.postData.params&&(Et.blank(),Et.push(2,"List<KeyValuePair<string, string>> postData = new List<KeyValuePair<string, string>>();"),F.postData.params.forEach(Tn=>{Et.push(2,'postData.Add(new KeyValuePair<string, string>("%s", "%s"));',Tn.name,Tn.value)}),Et.blank());break;case d.T.MULTIPART:F.postData.params&&(Et.blank(),Et.push(2,"MultipartFormDataContent postData = new MultipartFormDataContent();"),F.postData.params.forEach(Tn=>{Et.push(2,'postData.Add(new StringContent("%s"), "%s");',Tn.value,Tn.name)}));break;case d.T.JSON:F.postData.jsonObj&&(Et.push(2,"string json = JsonSerializer.Serialize(new"),Et.push(2,"{"),dr(F.postData.jsonObj,3),Et.push(2,"});"),Et.blank(),Et.push(2,'using StringContent postData = new(json, Encoding.UTF8, "%s");',F.postData.mimeType));break;case d.T.XML:F.postData.text&&(F.postData.text.trim().split(`
2642
2642
  `).forEach((Tn,Sn)=>{const Vn=(Sn===0?'string xml = @"':"")+Tn.replace(/"/g,'""');Et.push(Sn===0?2:3,Vn)}),Et.push(2,'";'),Et.push(2,'using StringContent postData = new StringContent(xml, Encoding.UTF8, "%s");',F.postData.mimeType));break}else rn()&&(Et.push(2,"var ms = new MemoryStream();"),Et.push(2,"var postData = new StreamContent(ms);"),Et.push(2,'postData.Headers.ContentType = new MediaTypeHeaderValue("application/octet-stream");'));return It(F,Et,3),Et.push(2,"using HttpResponseMessage %s = await client.%sAsync(%s%s);",Et.var("request"),Kt,it(F,Et),wt.withImports?_s(F.method)?(0,a.PP)(F.postData&&F.postData.mimeType)===d.T.URL_ENCODED?", new FormUrlEncodedContent(postData)":F.method==="delete"?"":F.postData&&F.postData.params||rn()?", postData":", null":"":", new FormUrlEncodedContent(postData)"),wt.withWrapper&&(Et.push(2,"string response = await request.Content.ReadAsStringAsync();"),Et.blank(),Et.push(2,"Console.WriteLine(response);"),Et.push(1,"}"),Et.push("}")),Et.join();function Mt(Tn){return F.postData&&(0,a.PP)(F.postData.mimeType)===Tn}function rn(){return F.headersObj&&F.headersObj["Content-Type"]===d.T.OCTET_STREAM}function Ft(Tn,Sn){Tn.forEach((Vn,Kn)=>{const Dr=!(0,c.isLastInArray)(Tn,Kn);Array.isArray(Vn)?Ft(Vn,Sn+1):Zo(Vn)?(Et.push(Sn+1,"new {"),dr(Vn,Sn+2),Et.push(Sn+1,"}%s",Dr?",":"")):Et.push(Sn+1,'"%s"%s',Vn,Dr?",":"")}),Et.push(Sn,"},")}function dr(Tn,Sn){for(const[Vn,Kn]of Object.entries(Tn)){const Dr=!(0,c.isLastProperty)(Tn,Vn);if(Array.isArray(Kn))Et.push(Sn,"%s = new[] {",Vn),Ft(Kn,Sn);else if(Zo(Kn)){const Ei=(0,a.Qr)(Kn);Et.push(Sn,"%s = new %s",Vn,Ei?"{},":"{"),Ei||(dr(Kn,Sn+1),Et.push(Sn,"}%s",Dr?",":""))}else Et.push(Sn,'%s = "%s"%s',Vn,Kn,Dr?",":"")}}},Es={key:"httpclient",title:"HttpClient",link:"https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclient",description:".NET Standard HTTP Client"},Os=aa;function io(F){F.push("// Requires >= .NET 5"),F.blank()}function Fr(F){return kn(F.toLowerCase())}function _s(F){return F&&["POST","PUT","DELETE","PATCH"].includes(F.toUpperCase())}const Ji={info:{key:"csharp",title:"CSharp",extname:".cs",default:"httpclient"},httpclient:Os};var la=Object.defineProperty,ua=Object.defineProperties,zs=Object.getOwnPropertyDescriptors,Ss=Object.getOwnPropertySymbols,ts=Object.prototype.hasOwnProperty,Io=Object.prototype.propertyIsEnumerable,vo=(F,me,Ne)=>me in F?la(F,me,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):F[me]=Ne,ns=(F,me)=>{for(var Ne in me||(me={}))ts.call(me,Ne)&&vo(F,Ne,me[Ne]);if(Ss)for(var Ne of Ss(me))Io.call(me,Ne)&&vo(F,Ne,me[Ne]);return F},oo=(F,me)=>ua(F,zs(me));const ca=function(F,me,{target:Ne,client:Ut}){var Ht,Qt,Gt,$t;const wt=Object.assign({indent:" ",withWrapper:!0},me),Et=new Mn({indentation:wt.indent,variablesPrefix:wt.variablesPrefix,capitalize:!0,lang:m.CSHARPNEWTONSOFT}),Kt=ws(F.method);if(wt.withComments&&xs(Et),wt.withWrapper&&(Et.push("using System;"),Et.push("using System.Net.Http;"),Et.push("using System.Threading.Tasks;"),(Mt(d.T.JSON)||Mt(d.T.XML)||F.basicAuth)&&Et.push("using System.Text;"),(Mt(d.T.URL_ENCODED)||((Ht=F.securityOAuth2ExtraCalls)==null?void 0:Ht.length))&&Et.push("using System.Collections.Generic;"),(Mt(d.T.JSON)||((Qt=F.securityOAuth2ExtraCalls)==null?void 0:Qt.length))&&Et.push("using Newtonsoft.Json.Linq;"),rn()&&Et.push("using System.IO;"),(rn()||F.basicAuth)&&Et.push("using System.Net.Http.Headers;"),Et.blank(),Et.push("public class Program"),Et.push("{"),Et.push(1,"private readonly IHttpClientFactory _httpClientFactory;"),Et.push(1,"public static async Task Main(string[] args)"),Et.push(1,"{"),Et.push(2,"var client = _httpClientFactory.CreateClient();")),(Gt=F.securityOAuth2ExtraCalls)==null?void 0:Gt.length){const Ft=new ai(($t=F.securityOAuth2ExtraCalls)==null?void 0:$t[0]).convert(Ne,Ut,oo(ns({},wt),{withImports:!1,withWrapper:!1,withComments:!1,variablesPrefix:"oauth2"}));Et.push(Ft),Et.push(2,"var oauth2Response = await oauth2Request.Content.ReadAsStringAsync();"),Et.push(2,"JObject inputJObject = JObject.Parse(oauth2Response);"),Et.push(2,'var accessToken = inputJObject["access_token"].ToString();'),Et.blank()}const sn=Object.keys(F.allHeaders).filter(Ft=>{switch(Ft.toLowerCase()){case"content-type":case"content-length":case"accept-encoding":return!1;default:return!0}});if(sn.length&&sn.forEach(Ft=>{var dr;Et.push(2,'client.DefaultRequestHeaders.Add("%s", %s);',Ft,((dr=F.securityOAuth2ExtraCalls)==null?void 0:dr.length)?'"Bearer " + accessToken':`"${F.allHeaders[Ft]}"`)}),F.basicAuth){const{username:Ft,password:dr}=F.basicAuth;Et.push(2,`var base64String = Convert.ToBase64String(Encoding.ASCII.GetBytes("${Ft}:${dr}"));`),Et.push(2,'client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(@"Basic", base64String);')}if(F.postData)switch((0,a.PP)(F.postData.mimeType)){case d.T.URL_ENCODED:F.postData.params&&(Et.blank(),Et.push(2,"List<KeyValuePair<string, string>> postData = new List<KeyValuePair<string, string>>();"),F.postData.params.forEach(Ft=>{Et.push(2,'postData.Add(new KeyValuePair<string, string>("%s", "%s"));',Ft.name,Ft.value)}),Et.blank());break;case d.T.MULTIPART:F.postData.params&&(Et.blank(),Et.push(2,"MultipartFormDataContent postData = new MultipartFormDataContent();"),F.postData.params.forEach(Ft=>{Et.push(2,'postData.Add(new StringContent("%s"), "%s");',Ft.value,Ft.name)}));break;case d.T.JSON:F.postData.jsonObj&&(Et.push(2,`JObject json = JObject.Parse(@"${rt(O()(F.postData.jsonObj,{indent:wt.indent,inlineCharacterLimit:25}).replace(/"/g,'""'),{level:3,firstLine:!1})}");`),Et.push(2,'var postData = new StringContent(json.ToString(), Encoding.UTF8, "%s");',F.postData.mimeType));break;case d.T.XML:F.postData.text&&(F.postData.text.trim().split(`
2643
2643
  `).forEach((Ft,dr)=>{const Tn=(dr===0?'string xml = @"':"")+Ft.replace(/"/g,'""');Et.push(dr===0?3:4,Tn)}),Et.push(2,'";'),Et.push(2,'var postData = new StringContent(xml, Encoding.UTF8, "%s");',F.postData.mimeType));break}else rn()&&(Et.push(2,"var ms = new MemoryStream();"),Et.push(2,"var postData = new StreamContent(ms);"),Et.push(2,'postData.Headers.ContentType = new MediaTypeHeaderValue("application/octet-stream");'));return It(F,Et,3),Et.push(2,"var %s = await client.%sAsync(%s%s);",Et.var("request"),Kt,it(F,Et),wt.withImports?rs(F.method)?(0,a.PP)(F.postData&&F.postData.mimeType)===d.T.URL_ENCODED?", new FormUrlEncodedContent(postData)":F.method==="delete"?"":F.postData&&F.postData.params||rn()?", postData":", null":"":", new FormUrlEncodedContent(postData)"),wt.withWrapper&&(Et.push(2,"var response = await request.Content.ReadAsStringAsync();"),Et.blank(),Et.push(2,"Console.WriteLine(response);"),Et.push(1,"}"),Et.push("}")),Et.join();function Mt(Ft){return F.postData&&(0,a.PP)(F.postData.mimeType)===Ft}function rn(){return F.headersObj&&F.headersObj["Content-Type"]===d.T.OCTET_STREAM}},Uo={key:"httpclient",title:"HttpClient",link:"https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclient",description:".NET Standard HTTP Client"},Ps=ca;function xs(F){F.push("/*"),F.push(" * Requires >= .NET 5"),F.push(" *"),F.push(' * Requires package "Newtonsoft.Json" >= 9.01'),F.push(" * See here for installation details:"),F.push(" * https://www.newtonsoft.com/json"),F.push(" */"),F.blank()}function ws(F){return kn(F.toLowerCase())}function rs(F){return F&&["POST","PUT","DELETE","PATCH"].includes(F.toUpperCase())}const Ws={info:{key:"csharpNewtonsoft",title:"CSharpNewtonsoft",extname:".cs",default:"httpclient"},httpclient:Ps};var da=Object.defineProperty,fa=Object.defineProperties,Vs=Object.getOwnPropertyDescriptors,is=Object.getOwnPropertySymbols,Hs=Object.prototype.hasOwnProperty,Ci=Object.prototype.propertyIsEnumerable,Do=(F,me,Ne)=>me in F?da(F,me,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):F[me]=Ne,Mi=(F,me)=>{for(var Ne in me||(me={}))Hs.call(me,Ne)&&Do(F,Ne,me[Ne]);if(is)for(var Ne of is(me))Ci.call(me,Ne)&&Do(F,Ne,me[Ne]);return F},$o=(F,me)=>fa(F,Vs(me));const or=1;function yo(F={},me){return(0,a.PP)(F.mimeType)===me}const Li=function(F,me,{target:Ne,client:Ut}){var Ht,Qt,Gt,$t,wt,Et;const Kt=Mi({capitalize:!0,showBoilerplate:!0,checkErrors:!0,printBody:!0,timeout:-1,indent:" "},me),sn=(Ht=F.securityOAuth2ExtraCalls)==null?void 0:Ht[0],Mt=Kt.checkErrors?"err":"_",rn=F.method.toUpperCase(),Ft=new Mn({indentation:Kt.indent,variablesPrefix:Kt.variablesPrefix,capitalize:Kt.capitalize,lang:m.GO}),dr=()=>{Kt.checkErrors&&Ft.push(or,"if err != nil {").push(or+1,"panic(err)").push(or,"}")};if(Kt.showBoilerplate&&(Ft.push("package main").blank().push("import (").push(or,'"fmt"'),Kt.timeout>0&&Ft.push(or,'"time"'),sn&&Ft.push(or,'"encoding/json"'),yo(F.postData,d.T.MULTIPART)&&(Ft.push(or,'"mime/multipart"'),Ft.push(or,'"io"'),Ft.push(or,'"bytes"')),(yo(F.postData,d.T.URL_ENCODED)||yo((Gt=(Qt=F.securityOAuth2ExtraCalls)==null?void 0:Qt[0])==null?void 0:Gt.postData,d.T.URL_ENCODED))&&(Ft.push(or,'"net/url"'),Ft.push(or,'"strconv"')),(yo(F.postData,d.T.JSON)||yo((wt=($t=F.securityOAuth2ExtraCalls)==null?void 0:$t[0])==null?void 0:wt.postData,d.T.JSON))&&Ft.push(or,'"bytes"'),(F.postData&&!yo(F.postData,d.T.JSON)||sn)&&Ft.push(or,'"strings"'),Ft.push(or,'"net/http"'),Kt.printBody&&Ft.push(or,'"io/ioutil"'),Ft.push(")").blank().push("func main() {")),Object.keys(F.allHeaders).length&&Object.keys(F.allHeaders).forEach(Sn=>{F.allHeaders[Sn]=`"${F.allHeaders[Sn]}"`}),sn){const Sn="oAuth2",Vn=Kt.checkErrors?`${Mt} := `:"",Kn=Kt.capitalize?"Res":"res",Dr=new ai(sn).convert(Ne,Ut,$o(Mi({},Kt),{printBody:!1,variablesPrefix:Sn,showBoilerplate:!1}));Ft.push(Dr).blank().push(or,`var ${Sn}${Kn}Body struct {`).push(or+1,"Access_token string").push(or,"}").push(or,`${Vn}json.NewDecoder(${Sn}${Kn}.Body).Decode(&${Sn}${Kn}Body)`).blank(),dr(),F.allHeaders.Authorization=`"Bearer " + ${Sn}${Kn}Body.Access_token`}if(It(F,Ft,or),Kt.timeout>0&&(Ut=Ft.var("client"),Ft.push(or,"%s := http.Client{",Ut).push(or+1,"Timeout: time.Duration(%s * time.Second),",Kt.timeout).push(or,"}").blank()),Ft.push(or,`${Ft.var("reqUrl")} := ${it(F,Ft)}`),F.postData){let Sn;switch((0,a.PP)(F.postData.mimeType)){case d.T.URL_ENCODED:Ft.push(or,"%s := url.Values{}",Ft.var("data")),F.postData.params.forEach(Vn=>{Ft.push(or,'%s.Set("%s", "%s")',Ft.var("data"),Vn.name,Vn.value)}),Ft.push(or,'%s, %s := http.NewRequest("%s", %s, strings.NewReader(%s.Encode()))',Ft.var("req"),Mt,rn,Ft.var("reqUrl"),Ft.var("data")),F.allHeaders["Content-Length"]=`strconv.Itoa(len(${Ft.var("data")}.Encode()))`;break;case d.T.JSON:Sn=JSON.stringify(F.postData.jsonObj,null,2).split(`
2644
2644
  `).map(Vn=>Kt.indent+Vn).join(`
@@ -2990,7 +2990,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
2990
2990
  * Redocly Reference Docs
2991
2991
  * (c) Copyright 2018 Redocly LLC, all rights reserved.
2992
2992
  * -------------------------------------------------------------
2993
- * Version: "2.43.3"
2993
+ * Version: "2.43.4"
2994
2994
  */(()=>{var Y={336:(x,E,T)=>{var j,C;/**
2995
2995
  * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.9
2996
2996
  * Copyright (C) 2020 Oliver Nightingale
@@ -3552,4 +3552,4 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
3552
3552
  ${Io} {
3553
3553
  ${({theme:$,showRightPanel:L,layout:K})=>(0,m.mediaCSS)({width:{[m.ZERO_BREAKPOINT]:"none",small:`calc(100% - ${$.sidebar.width})`},maxWidth:$.layout[K===Wn.N.THREE_PANEL&&L?Wn.N.THREE_PANEL:Wn.N.STACKED].maxWidth})};
3554
3554
  }
3555
- `;let qr=class extends O.Component{constructor($){super($);Vr(this,"_observer"),Vr(this,"_updatedItems",!1),Vr(this,"rootElementRef",(0,O.createRef)()),Vr(this,"handleClose",()=>this.props.store.tryItOut()),this.state={searchPopUpShown:!1,searchPopUpValue:""}}componentDidMount(){var $,L;this.props.store.onDidMount(),(L=($=this.props).onLoaded)==null||L.call($),this._observer=(0,g.U5)(()=>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:$,_forceRenderInfo:L}=this.props,{definition:K,menu:Oe,options:De,search:Ye,marker:vt}=$,{hideDownloadButton:yt,hideInfoSection:Zt,pagination:xn,disableSidebar:kn}=De,F=Oe.renderItems,me=xn==="none"||Oe.activeRenderItemIdx<=0;let Ne=Zt?!1:me;Ne&&xn!=="none"&&kn&&F[0]&&F[0].type!=="section"&&(Ne=!1),L&&(Ne=!0);const Ut=!Ne&&yt!==null&&!yt&&me;return Ir.createElement(Ts,{store:$},Ir.createElement(cs,{l:$.l}),Ir.createElement(ts,{className:"redoc-wrap",ref:this.rootElementRef},Ir.createElement(Ki,{whiteLabel:De.whiteLabel,showRightPanel:$.showRightPanel,layout:$.layout}),$.tryItOperation&&Ir.createElement(gi.M,{rootElement:this.rootElementRef.current,store:$,operation:$.tryItOperation,onClose:this.handleClose}),!De.disableSidebar&&Ir.createElement(m.StickyResponsiveSidebar,{menu:Oe,className:"menu-content"},!De.hideLogo&&Ir.createElement(m.ApiLogo,{info:K.info}),K instanceof zt&&Ir.createElement(uo,{spec:K,onChange:Ht=>{Ht.idx!==void 0&&K.changeVersion(Ht.idx),Oe.updateItemsByVersionChange(!0),$.tryItOut(void 0)}}),!De.disableSearch&&Ir.createElement(Ln,{showPopUp:()=>this.setState({searchPopUpShown:!0}),searchValue:this.state.searchPopUpValue,marker:vt,setSearchValue:Ht=>this.setState({searchPopUpValue:Ht})}),Ir.createElement(m.SideMenu,{menu:Oe})),Ir.createElement(Io,{className:($.isLoading?"loading ":"")+"api-content",layout:$.layout===Wn.N.THREE_PANEL&&$.showRightPanel?Wn.N.THREE_PANEL:Wn.N.STACKED},De.theme.layout.showDarkRightPanel&&$.showRightPanel&&$.layout!==Wn.N.STACKED&&Ir.createElement(vo,null),Ne&&Ir.createElement(m.ApiInfo,{store:$}),Ut&&Ir.createElement(an.C,{store:$}),Ir.createElement(m.ContentItems,{items:F,store:$}),De.showNextButton&&Ir.createElement(fa,{pagination:De.pagination,menu:Oe}),this.props.children),Ir.createElement(ws,null,Ir.createElement(ua,{store:$,isVisible:$.layout===Wn.N.THREE_PANEL}),Ir.createElement(xs,{store:$,isVisible:$.showRightPanel})),Ir.createElement(Es,{search:Ye,marker:vt,menu:Oe,onActivate:Oe.activateAndScroll.bind(Oe),options:De,shown:this.state.searchPopUpShown,hidePopUp:()=>this.setState({searchPopUpShown:!1}),showPopUp:()=>this.setState({searchPopUpShown:!0}),setSearchValue:Ht=>this.setState({searchPopUpValue:Ht}),searchValue:this.state.searchPopUpValue}),De.theme.layout.showDarkRightPanel&&$.showRightPanel&&$.layout!==Wn.N.STACKED&&Ir.createElement(ns,null)))}};qr=Wr([ut.Pi],qr);function ni($){const{definition:L,definitionUrl:K,options:Oe={},activeItemId:De,activeSampleLanguage:Ye,activeDeepLink:vt}=$,yt=(0,m.argValueToBoolean)(Oe.hideLoading,!1),Zt=new m.RedocNormalizedOptions(Oe),xn=Ir.createElement(Li,{definition:L,definitionUrl:K,options:Oe,activeItemId:De,activeSampleLanguage:Ye,activeDeepLink:vt},({loading:kn,store:F})=>kn?yt?null:Ir.createElement(m.Loading,{color:Zt.theme.colors.primary.main}):Ir.createElement(qr,{store:F}));return Oe.disableErrorBoundary?xn:Ir.createElement(m.ErrorBoundary,null,xn)}var Pi=on(67294);function Po({definitions:$,options:L={}}){const K=(0,m.argValueToBoolean)(L.hideLoading,!1),Oe=new m.RedocNormalizedOptions(L);return Pi.createElement(m.ErrorBoundary,null,Pi.createElement(Li,{definitions:$,options:L},({loading:De,store:Ye})=>De?K?null:Pi.createElement(m.Loading,{color:Oe.theme.colors.primary.main}):Pi.createElement(qr,{store:Ye})))}var bi=on(67294),jo=Object.defineProperty,Vo=Object.getOwnPropertySymbols,ji=Object.prototype.hasOwnProperty,Fi=Object.prototype.propertyIsEnumerable,fo=($,L,K)=>L in $?jo($,L,{enumerable:!0,configurable:!0,writable:!0,value:K}):$[L]=K,Qi=($,L)=>{for(var K in L||(L={}))ji.call(L,K)&&fo($,K,L[K]);if(Vo)for(var K of Vo(L))Fi.call(L,K)&&fo($,K,L[K]);return $};function Ui($){const L=(0,G.zJ)();L&&L.toggleLayout(($!=null?$:L.layout===Wn.N.STACKED)?Wn.N.THREE_PANEL:Wn.N.STACKED)}function ds($){const L=(0,G.zJ)();L&&L.toggleRightPanel($)}const ai=(0,G.uW)(),po=ai?(0,C.dirname)(ai)+"/":"";function Ys($){const L={},K=$.attributes;for(let Oe=0;Oe<K.length;Oe++){const De=K[Oe];L[De.name]=De.value}return L}function As($){const L=Ys($),K={};for(const Oe in L){const De=Oe.replace(/-(.)/g,(Ye,vt)=>vt.toUpperCase());K[De]=L[Oe]}return K}function N($,L=document.querySelector("redoc")){const K=ge.fromJS($);(0,x.hydrate)(bi.createElement(qr,{store:K}),L)}function J($,L={},K=(0,m.querySelector)("redoc"),Oe){if(K===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');let De,Ye;if(typeof $=="object"&&"versions"in $){(0,x.render)((0,O.createElement)(Po,{definitions:$,options:Qi(Qi({},L),As(K))},["Loading..."]),K,Oe);return}typeof $=="string"?De=$:typeof $=="object"&&(Ye=$),(0,x.render)((0,O.createElement)(ni,{definition:Ye,definitionUrl:De,options:Qi(Qi({},L),As(K))},["Loading..."]),K,Oe)}function de($){on.p=$}const le="2.43.3",Ie="3a477fe";function Xe(){const $=(0,m.querySelector)("redoc");if(!$)return;const L=$.getAttribute("spec-url");L&&J(L,{},$)}m.IS_BROWSER&&de(po),Xe()})(),ra})()});
3555
+ `;let qr=class extends O.Component{constructor($){super($);Vr(this,"_observer"),Vr(this,"_updatedItems",!1),Vr(this,"rootElementRef",(0,O.createRef)()),Vr(this,"handleClose",()=>this.props.store.tryItOut()),this.state={searchPopUpShown:!1,searchPopUpValue:""}}componentDidMount(){var $,L;this.props.store.onDidMount(),(L=($=this.props).onLoaded)==null||L.call($),this._observer=(0,g.U5)(()=>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:$,_forceRenderInfo:L}=this.props,{definition:K,menu:Oe,options:De,search:Ye,marker:vt}=$,{hideDownloadButton:yt,hideInfoSection:Zt,pagination:xn,disableSidebar:kn}=De,F=Oe.renderItems,me=xn==="none"||Oe.activeRenderItemIdx<=0;let Ne=Zt?!1:me;Ne&&xn!=="none"&&kn&&F[0]&&F[0].type!=="section"&&(Ne=!1),L&&(Ne=!0);const Ut=!Ne&&yt!==null&&!yt&&me;return Ir.createElement(Ts,{store:$},Ir.createElement(cs,{l:$.l}),Ir.createElement(ts,{className:"redoc-wrap",ref:this.rootElementRef},Ir.createElement(Ki,{whiteLabel:De.whiteLabel,showRightPanel:$.showRightPanel,layout:$.layout}),$.tryItOperation&&Ir.createElement(gi.M,{rootElement:this.rootElementRef.current,store:$,operation:$.tryItOperation,onClose:this.handleClose}),!De.disableSidebar&&Ir.createElement(m.StickyResponsiveSidebar,{menu:Oe,className:"menu-content"},!De.hideLogo&&Ir.createElement(m.ApiLogo,{info:K.info}),K instanceof zt&&Ir.createElement(uo,{spec:K,onChange:Ht=>{Ht.idx!==void 0&&K.changeVersion(Ht.idx),Oe.updateItemsByVersionChange(!0),$.tryItOut(void 0)}}),!De.disableSearch&&Ir.createElement(Ln,{showPopUp:()=>this.setState({searchPopUpShown:!0}),searchValue:this.state.searchPopUpValue,marker:vt,setSearchValue:Ht=>this.setState({searchPopUpValue:Ht})}),Ir.createElement(m.SideMenu,{menu:Oe})),Ir.createElement(Io,{className:($.isLoading?"loading ":"")+"api-content",layout:$.layout===Wn.N.THREE_PANEL&&$.showRightPanel?Wn.N.THREE_PANEL:Wn.N.STACKED},De.theme.layout.showDarkRightPanel&&$.showRightPanel&&$.layout!==Wn.N.STACKED&&Ir.createElement(vo,null),Ne&&Ir.createElement(m.ApiInfo,{store:$}),Ut&&Ir.createElement(an.C,{store:$}),Ir.createElement(m.ContentItems,{items:F,store:$}),De.showNextButton&&Ir.createElement(fa,{pagination:De.pagination,menu:Oe}),this.props.children),Ir.createElement(ws,null,Ir.createElement(ua,{store:$,isVisible:$.layout===Wn.N.THREE_PANEL}),Ir.createElement(xs,{store:$,isVisible:$.showRightPanel})),Ir.createElement(Es,{search:Ye,marker:vt,menu:Oe,onActivate:Oe.activateAndScroll.bind(Oe),options:De,shown:this.state.searchPopUpShown,hidePopUp:()=>this.setState({searchPopUpShown:!1}),showPopUp:()=>this.setState({searchPopUpShown:!0}),setSearchValue:Ht=>this.setState({searchPopUpValue:Ht}),searchValue:this.state.searchPopUpValue}),De.theme.layout.showDarkRightPanel&&$.showRightPanel&&$.layout!==Wn.N.STACKED&&Ir.createElement(ns,null)))}};qr=Wr([ut.Pi],qr);function ni($){const{definition:L,definitionUrl:K,options:Oe={},activeItemId:De,activeSampleLanguage:Ye,activeDeepLink:vt}=$,yt=(0,m.argValueToBoolean)(Oe.hideLoading,!1),Zt=new m.RedocNormalizedOptions(Oe),xn=Ir.createElement(Li,{definition:L,definitionUrl:K,options:Oe,activeItemId:De,activeSampleLanguage:Ye,activeDeepLink:vt},({loading:kn,store:F})=>kn?yt?null:Ir.createElement(m.Loading,{color:Zt.theme.colors.primary.main}):Ir.createElement(qr,{store:F}));return Oe.disableErrorBoundary?xn:Ir.createElement(m.ErrorBoundary,null,xn)}var Pi=on(67294);function Po({definitions:$,options:L={}}){const K=(0,m.argValueToBoolean)(L.hideLoading,!1),Oe=new m.RedocNormalizedOptions(L);return Pi.createElement(m.ErrorBoundary,null,Pi.createElement(Li,{definitions:$,options:L},({loading:De,store:Ye})=>De?K?null:Pi.createElement(m.Loading,{color:Oe.theme.colors.primary.main}):Pi.createElement(qr,{store:Ye})))}var bi=on(67294),jo=Object.defineProperty,Vo=Object.getOwnPropertySymbols,ji=Object.prototype.hasOwnProperty,Fi=Object.prototype.propertyIsEnumerable,fo=($,L,K)=>L in $?jo($,L,{enumerable:!0,configurable:!0,writable:!0,value:K}):$[L]=K,Qi=($,L)=>{for(var K in L||(L={}))ji.call(L,K)&&fo($,K,L[K]);if(Vo)for(var K of Vo(L))Fi.call(L,K)&&fo($,K,L[K]);return $};function Ui($){const L=(0,G.zJ)();L&&L.toggleLayout(($!=null?$:L.layout===Wn.N.STACKED)?Wn.N.THREE_PANEL:Wn.N.STACKED)}function ds($){const L=(0,G.zJ)();L&&L.toggleRightPanel($)}const ai=(0,G.uW)(),po=ai?(0,C.dirname)(ai)+"/":"";function Ys($){const L={},K=$.attributes;for(let Oe=0;Oe<K.length;Oe++){const De=K[Oe];L[De.name]=De.value}return L}function As($){const L=Ys($),K={};for(const Oe in L){const De=Oe.replace(/-(.)/g,(Ye,vt)=>vt.toUpperCase());K[De]=L[Oe]}return K}function N($,L=document.querySelector("redoc")){const K=ge.fromJS($);(0,x.hydrate)(bi.createElement(qr,{store:K}),L)}function J($,L={},K=(0,m.querySelector)("redoc"),Oe){if(K===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');let De,Ye;if(typeof $=="object"&&"versions"in $){(0,x.render)((0,O.createElement)(Po,{definitions:$,options:Qi(Qi({},L),As(K))},["Loading..."]),K,Oe);return}typeof $=="string"?De=$:typeof $=="object"&&(Ye=$),(0,x.render)((0,O.createElement)(ni,{definition:Ye,definitionUrl:De,options:Qi(Qi({},L),As(K))},["Loading..."]),K,Oe)}function de($){on.p=$}const le="2.43.4",Ie="2f4c838";function Xe(){const $=(0,m.querySelector)("redoc");if(!$)return;const L=$.getAttribute("spec-url");L&&J(L,{},$)}m.IS_BROWSER&&de(po),Xe()})(),ra})()});
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.info=void 0;var tslib_1=require("tslib"),code_builder_1=require("../../helpers/code-builder"),__1=require("../.."),code_helpers_1=require("../../helpers/code-helpers"),utils_1=require("../../../../utils"),generator_1=require("../../../generator"),constants_1=require("../../helpers/constants"),types_1=require("../../../../../types"),redoc_lib_1=require("../../../../../redoc-lib"),object_1=require("../../../../../redoc-lib/src/utils/object"),handler=function(e,t,s){var a,n,i,r,o=s.target,p=s.client,u=Object.assign({indent:" ",withWrapper:!0},t),l=new code_builder_1.CodeBuilder({indentation:u.indent,variablesPrefix:u.variablesPrefix,capitalize:!0,lang:constants_1.Lang.CSHARP}),c=formatHttpMethod(e.method);if(u.withComments&&addComments(l),u.withWrapper&&(l.push("using System;"),l.push("using System.Net.Http;"),l.push("using System.Threading.Tasks;"),(b(types_1.MediaTypes.JSON)||b(types_1.MediaTypes.XML)||e.basicAuth)&&l.push("using System.Text;"),(b(types_1.MediaTypes.URL_ENCODED)||(null===(a=e.securityOAuth2ExtraCalls)||void 0===a?void 0:a.length))&&l.push("using System.Collections.Generic;"),(b(types_1.MediaTypes.JSON)||(null===(n=e.securityOAuth2ExtraCalls)||void 0===n?void 0:n.length))&&l.push("using System.Text.Json;"),_()&&(l.push("using System.IO;"),(_()||e.basicAuth)&&l.push("using System.Net.Http.Headers;")),l.blank(),l.push("public class Program"),l.push("{"),l.push(1,"public static async Task Main()"),l.push(1,"{")),null===(i=e.securityOAuth2ExtraCalls)||void 0===i?void 0:i.length){var h=new __1.HTTPSnippet(null===(r=e.securityOAuth2ExtraCalls)||void 0===r?void 0:r[0]).convert(o,p,(0,tslib_1.__assign)((0,tslib_1.__assign)({},u),{withImports:!1,withWrapper:!1,withComments:!1,variablesPrefix:"oauth2"}));l.push(h),l.push(2,"var oauth2Response = await oauth2Request.Content.ReadAsStringAsync();"),l.push(2,"JObject inputJObject = JObject.Parse(oauth2Response);"),l.push(2,'var accessToken = inputJObject["access_token"].ToString();'),l.blank()}var d=Object.keys(e.allHeaders).filter((function(e){switch(e.toLowerCase()){case"content-type":case"content-length":case"accept-encoding":return!1;default:return!0}}));if(d.length?(l.push(2,"System.Net.Http.HttpClient client = new()"),l.push(2,"{"),l.push(3,"DefaultRequestHeaders ="),l.push(3,"{"),d.forEach((function(t){var s;l.push(4,'{"%s", %s},',t,(null===(s=e.securityOAuth2ExtraCalls)||void 0===s?void 0:s.length)?'"Bearer " + accessToken':'"'+e.allHeaders[t]+'"')})),l.push(3,"}"),l.push(2,"};")):l.push(2,"System.Net.Http.HttpClient client = new();"),l.blank(),e.basicAuth){var y=e.basicAuth,m=y.username,g=y.password;l.push(2,'string base64String = Convert.ToBase64String(Encoding.ASCII.GetBytes("'+m+":"+g+'"));'),l.push(2,'client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(@"Basic", base64String);'),l.blank()}if(e.postData)switch((0,utils_1.normalizeMimeType)(e.postData.mimeType)){case types_1.MediaTypes.URL_ENCODED:e.postData.params&&(l.blank(),l.push(2,"List<KeyValuePair<string, string>> postData = new List<KeyValuePair<string, string>>();"),e.postData.params.forEach((function(e){l.push(2,'postData.Add(new KeyValuePair<string, string>("%s", "%s"));',e.name,e.value)})),l.blank());break;case types_1.MediaTypes.MULTIPART:e.postData.params&&(l.blank(),l.push(2,"MultipartFormDataContent postData = new MultipartFormDataContent();"),e.postData.params.forEach((function(e){l.push(2,'postData.Add(new StringContent("%s"), "%s");',e.value,e.name)})));break;case types_1.MediaTypes.JSON:e.postData.jsonObj&&(l.push(2,"string json = JsonSerializer.Serialize(new"),l.push(2,"{"),D(e.postData.jsonObj,3),l.push(2,"});"),l.blank(),l.push(2,'using StringContent postData = new(json, Encoding.UTF8, "%s");'),l.push(2,'var postData = new StringContent(json.ToString(), Encoding.UTF8, "%s");',e.postData.mimeType));break;case types_1.MediaTypes.XML:e.postData.text&&(e.postData.text.trim().split("\n").forEach((function(e,t){var s=(0===t?'string xml = @"':"")+e.replace(/"/g,'""');l.push(0===t?2:3,s)})),l.push(2,'";'),l.push(2,'using StringContent postData = new StringContent(xml, Encoding.UTF8, "%s");',e.postData.mimeType))}else _()&&(l.push(2,"var ms = new MemoryStream();"),l.push(2,"var postData = new StreamContent(ms);"),l.push(2,'postData.Headers.ContentType = new MediaTypeHeaderValue("application/octet-stream");'));return(0,code_helpers_1.printUrlVariablesDeclarations)(e,l,3),l.push(2,"using HttpResponseMessage %s = await client.%sAsync(%s%s);",l.var("request"),c,(0,code_helpers_1.buildUrlExpression)(e,l),u.withImports?isDataMethod(e.method)?(0,utils_1.normalizeMimeType)(e.postData&&e.postData.mimeType)===types_1.MediaTypes.URL_ENCODED?", new FormUrlEncodedContent(postData)":"delete"===e.method?"":e.postData&&e.postData.params||_()?", postData":", null":"":", new FormUrlEncodedContent(postData)"),u.withWrapper&&(l.push(2,"string response = await request.Content.ReadAsStringAsync();"),l.blank(),l.push(2,"Console.WriteLine(response);"),l.push(1,"}"),l.push("}")),l.join();function b(t){return e.postData&&(0,utils_1.normalizeMimeType)(e.postData.mimeType)===t}function _(){return e.headersObj&&e.headersObj["Content-Type"]===types_1.MediaTypes.OCTET_STREAM}function T(e,t){e.forEach((function(s,a){var n=!(0,redoc_lib_1.isLastInArray)(e,a);Array.isArray(s)?T(s,t+1):(0,object_1.checkIfIsObject)(s)?(l.push(t+1,"new {"),D(s,t+2),l.push(t+1,"}%s",n?",":"")):l.push(t+1,'"%s"%s',s,n?",":"")})),l.push(t,"},")}function D(e,t){for(var s=0,a=Object.entries(e);s<a.length;s++){var n=a[s],i=n[0],r=n[1],o=!(0,redoc_lib_1.isLastProperty)(e,i);if(Array.isArray(r))l.push(t,"%s = new[] {",i),T(r,t);else if((0,object_1.checkIfIsObject)(r)){var p=(0,utils_1.isEmptyObject)(r);l.push(t,"%s = new %s",i,p?"{},":"{"),p||(D(r,t+1),l.push(t,"}%s",o?",":""))}else l.push(t,'%s = "%s"%s',i,r,o?",":"")}}};function addComments(e){e.push("// Requires >= .NET 5"),e.blank()}function formatHttpMethod(e){return(0,generator_1.capitalizeFirst)(e.toLowerCase())}function isDataMethod(e){return e&&["POST","PUT","DELETE","PATCH"].includes(e.toUpperCase())}exports.info={key:"httpclient",title:"HttpClient",link:"https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclient",description:".NET Standard HTTP Client"},exports.default=handler;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.info=void 0;var tslib_1=require("tslib"),code_builder_1=require("../../helpers/code-builder"),__1=require("../.."),code_helpers_1=require("../../helpers/code-helpers"),utils_1=require("../../../../utils"),generator_1=require("../../../generator"),constants_1=require("../../helpers/constants"),types_1=require("../../../../../types"),redoc_lib_1=require("../../../../../redoc-lib"),object_1=require("../../../../../redoc-lib/src/utils/object"),handler=function(e,t,s){var a,n,i,r,p=s.target,o=s.client,u=Object.assign({indent:" ",withWrapper:!0},t),l=new code_builder_1.CodeBuilder({indentation:u.indent,variablesPrefix:u.variablesPrefix,capitalize:!0,lang:constants_1.Lang.CSHARP}),c=formatHttpMethod(e.method);if(u.withComments&&addComments(l),u.withWrapper&&(l.push("using System;"),l.push("using System.Net.Http;"),l.push("using System.Threading.Tasks;"),(_(types_1.MediaTypes.JSON)||_(types_1.MediaTypes.XML)||e.basicAuth)&&l.push("using System.Text;"),(_(types_1.MediaTypes.URL_ENCODED)||(null===(a=e.securityOAuth2ExtraCalls)||void 0===a?void 0:a.length))&&l.push("using System.Collections.Generic;"),(_(types_1.MediaTypes.JSON)||(null===(n=e.securityOAuth2ExtraCalls)||void 0===n?void 0:n.length))&&l.push("using System.Text.Json;"),g()&&l.push("using System.IO;"),(g()||e.basicAuth)&&l.push("using System.Net.Http.Headers;"),l.blank(),l.push("public class Program"),l.push("{"),l.push(1,"public static async Task Main()"),l.push(1,"{")),null===(i=e.securityOAuth2ExtraCalls)||void 0===i?void 0:i.length){var h=new __1.HTTPSnippet(null===(r=e.securityOAuth2ExtraCalls)||void 0===r?void 0:r[0]).convert(p,o,(0,tslib_1.__assign)((0,tslib_1.__assign)({},u),{withImports:!1,withWrapper:!1,withComments:!1,variablesPrefix:"oauth2"}));l.push(h),l.push(2,"var oauth2Response = await oauth2Request.Content.ReadAsStringAsync();"),l.push(2,"JObject inputJObject = JObject.Parse(oauth2Response);"),l.push(2,'var accessToken = inputJObject["access_token"].ToString();'),l.blank()}var d=Object.keys(e.allHeaders).filter((function(e){switch(e.toLowerCase()){case"content-type":case"content-length":case"accept-encoding":return!1;default:return!0}}));if(d.length?(l.push(2,"System.Net.Http.HttpClient client = new()"),l.push(2,"{"),l.push(3,"DefaultRequestHeaders ="),l.push(3,"{"),d.forEach((function(t){var s;l.push(4,'{"%s", %s},',t,(null===(s=e.securityOAuth2ExtraCalls)||void 0===s?void 0:s.length)?'"Bearer " + accessToken':'"'+e.allHeaders[t]+'"')})),l.push(3,"}"),l.push(2,"};")):l.push(2,"System.Net.Http.HttpClient client = new();"),l.blank(),e.basicAuth){var y=e.basicAuth,m=y.username,b=y.password;l.push(2,'string base64String = Convert.ToBase64String(Encoding.ASCII.GetBytes("'+m+":"+b+'"));'),l.push(2,'client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(@"Basic", base64String);'),l.blank()}if(e.postData)switch((0,utils_1.normalizeMimeType)(e.postData.mimeType)){case types_1.MediaTypes.URL_ENCODED:e.postData.params&&(l.blank(),l.push(2,"List<KeyValuePair<string, string>> postData = new List<KeyValuePair<string, string>>();"),e.postData.params.forEach((function(e){l.push(2,'postData.Add(new KeyValuePair<string, string>("%s", "%s"));',e.name,e.value)})),l.blank());break;case types_1.MediaTypes.MULTIPART:e.postData.params&&(l.blank(),l.push(2,"MultipartFormDataContent postData = new MultipartFormDataContent();"),e.postData.params.forEach((function(e){l.push(2,'postData.Add(new StringContent("%s"), "%s");',e.value,e.name)})));break;case types_1.MediaTypes.JSON:e.postData.jsonObj&&(l.push(2,"string json = JsonSerializer.Serialize(new"),l.push(2,"{"),D(e.postData.jsonObj,3),l.push(2,"});"),l.blank(),l.push(2,'using StringContent postData = new(json, Encoding.UTF8, "%s");',e.postData.mimeType));break;case types_1.MediaTypes.XML:e.postData.text&&(e.postData.text.trim().split("\n").forEach((function(e,t){var s=(0===t?'string xml = @"':"")+e.replace(/"/g,'""');l.push(0===t?2:3,s)})),l.push(2,'";'),l.push(2,'using StringContent postData = new StringContent(xml, Encoding.UTF8, "%s");',e.postData.mimeType))}else g()&&(l.push(2,"var ms = new MemoryStream();"),l.push(2,"var postData = new StreamContent(ms);"),l.push(2,'postData.Headers.ContentType = new MediaTypeHeaderValue("application/octet-stream");'));return(0,code_helpers_1.printUrlVariablesDeclarations)(e,l,3),l.push(2,"using HttpResponseMessage %s = await client.%sAsync(%s%s);",l.var("request"),c,(0,code_helpers_1.buildUrlExpression)(e,l),u.withImports?isDataMethod(e.method)?(0,utils_1.normalizeMimeType)(e.postData&&e.postData.mimeType)===types_1.MediaTypes.URL_ENCODED?", new FormUrlEncodedContent(postData)":"delete"===e.method?"":e.postData&&e.postData.params||g()?", postData":", null":"":", new FormUrlEncodedContent(postData)"),u.withWrapper&&(l.push(2,"string response = await request.Content.ReadAsStringAsync();"),l.blank(),l.push(2,"Console.WriteLine(response);"),l.push(1,"}"),l.push("}")),l.join();function _(t){return e.postData&&(0,utils_1.normalizeMimeType)(e.postData.mimeType)===t}function g(){return e.headersObj&&e.headersObj["Content-Type"]===types_1.MediaTypes.OCTET_STREAM}function T(e,t){e.forEach((function(s,a){var n=!(0,redoc_lib_1.isLastInArray)(e,a);Array.isArray(s)?T(s,t+1):(0,object_1.checkIfIsObject)(s)?(l.push(t+1,"new {"),D(s,t+2),l.push(t+1,"}%s",n?",":"")):l.push(t+1,'"%s"%s',s,n?",":"")})),l.push(t,"},")}function D(e,t){for(var s=0,a=Object.entries(e);s<a.length;s++){var n=a[s],i=n[0],r=n[1],p=!(0,redoc_lib_1.isLastProperty)(e,i);if(Array.isArray(r))l.push(t,"%s = new[] {",i),T(r,t);else if((0,object_1.checkIfIsObject)(r)){var o=(0,utils_1.isEmptyObject)(r);l.push(t,"%s = new %s",i,o?"{},":"{"),o||(D(r,t+1),l.push(t,"}%s",p?",":""))}else l.push(t,'%s = "%s"%s',i,r,p?",":"")}}};function addComments(e){e.push("// Requires >= .NET 5"),e.blank()}function formatHttpMethod(e){return(0,generator_1.capitalizeFirst)(e.toLowerCase())}function isDataMethod(e){return e&&["POST","PUT","DELETE","PATCH"].includes(e.toUpperCase())}exports.info={key:"httpclient",title:"HttpClient",link:"https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclient",description:".NET Standard HTTP Client"},exports.default=handler;
2
2
  //# sourceMappingURL=httpclient.js.map
@@ -1,2 +1,2 @@
1
- import{__assign}from"tslib";import{CodeBuilder}from"../../helpers/code-builder";import{HTTPSnippet}from"../..";import{buildUrlExpression,printUrlVariablesDeclarations}from"../../helpers/code-helpers";import{isEmptyObject,normalizeMimeType}from"../../../../utils";import{capitalizeFirst}from"../../../generator";import{Lang}from"../../helpers/constants";import{MediaTypes}from"../../../../../types";import{isLastInArray,isLastProperty}from"../../../../../redoc-lib";import{checkIfIsObject}from"../../../../../redoc-lib/src/utils/object";var handler=function(t,e,s){var a,n,i,r,o=s.target,p=s.client,u=Object.assign({indent:" ",withWrapper:!0},e),l=new CodeBuilder({indentation:u.indent,variablesPrefix:u.variablesPrefix,capitalize:!0,lang:Lang.CSHARP}),h=formatHttpMethod(t.method);if(u.withComments&&addComments(l),u.withWrapper&&(l.push("using System;"),l.push("using System.Net.Http;"),l.push("using System.Threading.Tasks;"),(T(MediaTypes.JSON)||T(MediaTypes.XML)||t.basicAuth)&&l.push("using System.Text;"),(T(MediaTypes.URL_ENCODED)||(null===(a=t.securityOAuth2ExtraCalls)||void 0===a?void 0:a.length))&&l.push("using System.Collections.Generic;"),(T(MediaTypes.JSON)||(null===(n=t.securityOAuth2ExtraCalls)||void 0===n?void 0:n.length))&&l.push("using System.Text.Json;"),f()&&(l.push("using System.IO;"),(f()||t.basicAuth)&&l.push("using System.Net.Http.Headers;")),l.blank(),l.push("public class Program"),l.push("{"),l.push(1,"public static async Task Main()"),l.push(1,"{")),null===(i=t.securityOAuth2ExtraCalls)||void 0===i?void 0:i.length){var c=new HTTPSnippet(null===(r=t.securityOAuth2ExtraCalls)||void 0===r?void 0:r[0]).convert(o,p,__assign(__assign({},u),{withImports:!1,withWrapper:!1,withComments:!1,variablesPrefix:"oauth2"}));l.push(c),l.push(2,"var oauth2Response = await oauth2Request.Content.ReadAsStringAsync();"),l.push(2,"JObject inputJObject = JObject.Parse(oauth2Response);"),l.push(2,'var accessToken = inputJObject["access_token"].ToString();'),l.blank()}var m=Object.keys(t.allHeaders).filter((function(t){switch(t.toLowerCase()){case"content-type":case"content-length":case"accept-encoding":return!1;default:return!0}}));if(m.length?(l.push(2,"System.Net.Http.HttpClient client = new()"),l.push(2,"{"),l.push(3,"DefaultRequestHeaders ="),l.push(3,"{"),m.forEach((function(e){var s;l.push(4,'{"%s", %s},',e,(null===(s=t.securityOAuth2ExtraCalls)||void 0===s?void 0:s.length)?'"Bearer " + accessToken':'"'+t.allHeaders[e]+'"')})),l.push(3,"}"),l.push(2,"};")):l.push(2,"System.Net.Http.HttpClient client = new();"),l.blank(),t.basicAuth){var d=t.basicAuth,y=d.username,g=d.password;l.push(2,'string base64String = Convert.ToBase64String(Encoding.ASCII.GetBytes("'+y+":"+g+'"));'),l.push(2,'client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(@"Basic", base64String);'),l.blank()}if(t.postData)switch(normalizeMimeType(t.postData.mimeType)){case MediaTypes.URL_ENCODED:t.postData.params&&(l.blank(),l.push(2,"List<KeyValuePair<string, string>> postData = new List<KeyValuePair<string, string>>();"),t.postData.params.forEach((function(t){l.push(2,'postData.Add(new KeyValuePair<string, string>("%s", "%s"));',t.name,t.value)})),l.blank());break;case MediaTypes.MULTIPART:t.postData.params&&(l.blank(),l.push(2,"MultipartFormDataContent postData = new MultipartFormDataContent();"),t.postData.params.forEach((function(t){l.push(2,'postData.Add(new StringContent("%s"), "%s");',t.value,t.name)})));break;case MediaTypes.JSON:t.postData.jsonObj&&(l.push(2,"string json = JsonSerializer.Serialize(new"),l.push(2,"{"),D(t.postData.jsonObj,3),l.push(2,"});"),l.blank(),l.push(2,'using StringContent postData = new(json, Encoding.UTF8, "%s");'),l.push(2,'var postData = new StringContent(json.ToString(), Encoding.UTF8, "%s");',t.postData.mimeType));break;case MediaTypes.XML:t.postData.text&&(t.postData.text.trim().split("\n").forEach((function(t,e){var s=(0===e?'string xml = @"':"")+t.replace(/"/g,'""');l.push(0===e?2:3,s)})),l.push(2,'";'),l.push(2,'using StringContent postData = new StringContent(xml, Encoding.UTF8, "%s");',t.postData.mimeType))}else f()&&(l.push(2,"var ms = new MemoryStream();"),l.push(2,"var postData = new StreamContent(ms);"),l.push(2,'postData.Headers.ContentType = new MediaTypeHeaderValue("application/octet-stream");'));return printUrlVariablesDeclarations(t,l,3),l.push(2,"using HttpResponseMessage %s = await client.%sAsync(%s%s);",l.var("request"),h,buildUrlExpression(t,l),u.withImports?isDataMethod(t.method)?normalizeMimeType(t.postData&&t.postData.mimeType)===MediaTypes.URL_ENCODED?", new FormUrlEncodedContent(postData)":"delete"===t.method?"":t.postData&&t.postData.params||f()?", postData":", null":"":", new FormUrlEncodedContent(postData)"),u.withWrapper&&(l.push(2,"string response = await request.Content.ReadAsStringAsync();"),l.blank(),l.push(2,"Console.WriteLine(response);"),l.push(1,"}"),l.push("}")),l.join();function T(e){return t.postData&&normalizeMimeType(t.postData.mimeType)===e}function f(){return t.headersObj&&t.headersObj["Content-Type"]===MediaTypes.OCTET_STREAM}function b(t,e){t.forEach((function(s,a){var n=!isLastInArray(t,a);Array.isArray(s)?b(s,e+1):checkIfIsObject(s)?(l.push(e+1,"new {"),D(s,e+2),l.push(e+1,"}%s",n?",":"")):l.push(e+1,'"%s"%s',s,n?",":"")})),l.push(e,"},")}function D(t,e){for(var s=0,a=Object.entries(t);s<a.length;s++){var n=a[s],i=n[0],r=n[1],o=!isLastProperty(t,i);if(Array.isArray(r))l.push(e,"%s = new[] {",i),b(r,e);else if(checkIfIsObject(r)){var p=isEmptyObject(r);l.push(e,"%s = new %s",i,p?"{},":"{"),p||(D(r,e+1),l.push(e,"}%s",o?",":""))}else l.push(e,'%s = "%s"%s',i,r,o?",":"")}}};export var info={key:"httpclient",title:"HttpClient",link:"https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclient",description:".NET Standard HTTP Client"};export default handler;function addComments(t){t.push("// Requires >= .NET 5"),t.blank()}function formatHttpMethod(t){return capitalizeFirst(t.toLowerCase())}function isDataMethod(t){return t&&["POST","PUT","DELETE","PATCH"].includes(t.toUpperCase())}
1
+ import{__assign}from"tslib";import{CodeBuilder}from"../../helpers/code-builder";import{HTTPSnippet}from"../..";import{buildUrlExpression,printUrlVariablesDeclarations}from"../../helpers/code-helpers";import{isEmptyObject,normalizeMimeType}from"../../../../utils";import{capitalizeFirst}from"../../../generator";import{Lang}from"../../helpers/constants";import{MediaTypes}from"../../../../../types";import{isLastInArray,isLastProperty}from"../../../../../redoc-lib";import{checkIfIsObject}from"../../../../../redoc-lib/src/utils/object";var handler=function(t,e,s){var a,n,i,r,p=s.target,o=s.client,u=Object.assign({indent:" ",withWrapper:!0},e),l=new CodeBuilder({indentation:u.indent,variablesPrefix:u.variablesPrefix,capitalize:!0,lang:Lang.CSHARP}),h=formatHttpMethod(t.method);if(u.withComments&&addComments(l),u.withWrapper&&(l.push("using System;"),l.push("using System.Net.Http;"),l.push("using System.Threading.Tasks;"),(T(MediaTypes.JSON)||T(MediaTypes.XML)||t.basicAuth)&&l.push("using System.Text;"),(T(MediaTypes.URL_ENCODED)||(null===(a=t.securityOAuth2ExtraCalls)||void 0===a?void 0:a.length))&&l.push("using System.Collections.Generic;"),(T(MediaTypes.JSON)||(null===(n=t.securityOAuth2ExtraCalls)||void 0===n?void 0:n.length))&&l.push("using System.Text.Json;"),f()&&l.push("using System.IO;"),(f()||t.basicAuth)&&l.push("using System.Net.Http.Headers;"),l.blank(),l.push("public class Program"),l.push("{"),l.push(1,"public static async Task Main()"),l.push(1,"{")),null===(i=t.securityOAuth2ExtraCalls)||void 0===i?void 0:i.length){var c=new HTTPSnippet(null===(r=t.securityOAuth2ExtraCalls)||void 0===r?void 0:r[0]).convert(p,o,__assign(__assign({},u),{withImports:!1,withWrapper:!1,withComments:!1,variablesPrefix:"oauth2"}));l.push(c),l.push(2,"var oauth2Response = await oauth2Request.Content.ReadAsStringAsync();"),l.push(2,"JObject inputJObject = JObject.Parse(oauth2Response);"),l.push(2,'var accessToken = inputJObject["access_token"].ToString();'),l.blank()}var m=Object.keys(t.allHeaders).filter((function(t){switch(t.toLowerCase()){case"content-type":case"content-length":case"accept-encoding":return!1;default:return!0}}));if(m.length?(l.push(2,"System.Net.Http.HttpClient client = new()"),l.push(2,"{"),l.push(3,"DefaultRequestHeaders ="),l.push(3,"{"),m.forEach((function(e){var s;l.push(4,'{"%s", %s},',e,(null===(s=t.securityOAuth2ExtraCalls)||void 0===s?void 0:s.length)?'"Bearer " + accessToken':'"'+t.allHeaders[e]+'"')})),l.push(3,"}"),l.push(2,"};")):l.push(2,"System.Net.Http.HttpClient client = new();"),l.blank(),t.basicAuth){var d=t.basicAuth,y=d.username,g=d.password;l.push(2,'string base64String = Convert.ToBase64String(Encoding.ASCII.GetBytes("'+y+":"+g+'"));'),l.push(2,'client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(@"Basic", base64String);'),l.blank()}if(t.postData)switch(normalizeMimeType(t.postData.mimeType)){case MediaTypes.URL_ENCODED:t.postData.params&&(l.blank(),l.push(2,"List<KeyValuePair<string, string>> postData = new List<KeyValuePair<string, string>>();"),t.postData.params.forEach((function(t){l.push(2,'postData.Add(new KeyValuePair<string, string>("%s", "%s"));',t.name,t.value)})),l.blank());break;case MediaTypes.MULTIPART:t.postData.params&&(l.blank(),l.push(2,"MultipartFormDataContent postData = new MultipartFormDataContent();"),t.postData.params.forEach((function(t){l.push(2,'postData.Add(new StringContent("%s"), "%s");',t.value,t.name)})));break;case MediaTypes.JSON:t.postData.jsonObj&&(l.push(2,"string json = JsonSerializer.Serialize(new"),l.push(2,"{"),D(t.postData.jsonObj,3),l.push(2,"});"),l.blank(),l.push(2,'using StringContent postData = new(json, Encoding.UTF8, "%s");',t.postData.mimeType));break;case MediaTypes.XML:t.postData.text&&(t.postData.text.trim().split("\n").forEach((function(t,e){var s=(0===e?'string xml = @"':"")+t.replace(/"/g,'""');l.push(0===e?2:3,s)})),l.push(2,'";'),l.push(2,'using StringContent postData = new StringContent(xml, Encoding.UTF8, "%s");',t.postData.mimeType))}else f()&&(l.push(2,"var ms = new MemoryStream();"),l.push(2,"var postData = new StreamContent(ms);"),l.push(2,'postData.Headers.ContentType = new MediaTypeHeaderValue("application/octet-stream");'));return printUrlVariablesDeclarations(t,l,3),l.push(2,"using HttpResponseMessage %s = await client.%sAsync(%s%s);",l.var("request"),h,buildUrlExpression(t,l),u.withImports?isDataMethod(t.method)?normalizeMimeType(t.postData&&t.postData.mimeType)===MediaTypes.URL_ENCODED?", new FormUrlEncodedContent(postData)":"delete"===t.method?"":t.postData&&t.postData.params||f()?", postData":", null":"":", new FormUrlEncodedContent(postData)"),u.withWrapper&&(l.push(2,"string response = await request.Content.ReadAsStringAsync();"),l.blank(),l.push(2,"Console.WriteLine(response);"),l.push(1,"}"),l.push("}")),l.join();function T(e){return t.postData&&normalizeMimeType(t.postData.mimeType)===e}function f(){return t.headersObj&&t.headersObj["Content-Type"]===MediaTypes.OCTET_STREAM}function b(t,e){t.forEach((function(s,a){var n=!isLastInArray(t,a);Array.isArray(s)?b(s,e+1):checkIfIsObject(s)?(l.push(e+1,"new {"),D(s,e+2),l.push(e+1,"}%s",n?",":"")):l.push(e+1,'"%s"%s',s,n?",":"")})),l.push(e,"},")}function D(t,e){for(var s=0,a=Object.entries(t);s<a.length;s++){var n=a[s],i=n[0],r=n[1],p=!isLastProperty(t,i);if(Array.isArray(r))l.push(e,"%s = new[] {",i),b(r,e);else if(checkIfIsObject(r)){var o=isEmptyObject(r);l.push(e,"%s = new %s",i,o?"{},":"{"),o||(D(r,e+1),l.push(e,"}%s",p?",":""))}else l.push(e,'%s = "%s"%s',i,r,p?",":"")}}};export var info={key:"httpclient",title:"HttpClient",link:"https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclient",description:".NET Standard HTTP Client"};export default handler;function addComments(t){t.push("// Requires >= .NET 5"),t.blank()}function formatHttpMethod(t){return capitalizeFirst(t.toLowerCase())}function isDataMethod(t){return t&&["POST","PUT","DELETE","PATCH"].includes(t.toUpperCase())}
2
2
  //# sourceMappingURL=httpclient.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/reference-docs",
3
- "version": "2.43.3",
3
+ "version": "2.43.4",
4
4
  "description": "Redocly Reference Docs",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib-esm/index.js",