@redocly/openapi-docs 3.0.0-alpha.29 → 3.0.0-alpha.30
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.
|
@@ -2,7 +2,7 @@ var et=(x,k,c)=>new Promise((m,w)=>{var b=O=>{try{A(c.next(O))}catch(j){w(j)}},C
|
|
|
2
2
|
* Redocly OpenAPI Docs
|
|
3
3
|
* (c) Copyright 2018 Redocly LLC, all rights reserved.
|
|
4
4
|
* -------------------------------------------------------------
|
|
5
|
-
* Version: "3.0.0-alpha.
|
|
5
|
+
* Version: "3.0.0-alpha.30"
|
|
6
6
|
*/(this.webpackChunkRedoclyOpenAPIDocs=this.webpackChunkRedoclyOpenAPIDocs||[]).push([[290],{29641:(x,k,c)=>{(function(m){m(c(46944))})(function(m){var w={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},b=m.Pos;m.defineOption("autoCloseBrackets",!1,function(L,E,N){N&&N!=m.Init&&(L.removeKeyMap(A),L.state.closeBrackets=null),E&&(O(C(E,"pairs")),L.state.closeBrackets=E,L.addKeyMap(A))});function C(L,E){return E=="pairs"&&typeof L=="string"?L:typeof L=="object"&&L[E]!=null?L[E]:w[E]}var A={Backspace:K,Enter:ie};function O(L){for(var E=0;E<L.length;E++){var N=L.charAt(E),U="'"+N+"'";A[U]||(A[U]=j(N))}}O(w.pairs+"`");function j(L){return function(E){return q(E,L)}}function $(L){var E=L.state.closeBrackets;if(!E||E.override)return E;var N=L.getModeAt(L.getCursor());return N.closeBrackets||E}function K(L){var E=$(L);if(!E||L.getOption("disableInput"))return m.Pass;for(var N=C(E,"pairs"),U=L.listSelections(),se=0;se<U.length;se++){if(!U[se].empty())return m.Pass;var ne=V(L,U[se].head);if(!ne||N.indexOf(ne)%2!=0)return m.Pass}for(var se=U.length-1;se>=0;se--){var Y=U[se].head;L.replaceRange("",b(Y.line,Y.ch-1),b(Y.line,Y.ch+1),"+delete")}}function ie(L){var E=$(L),N=E&&C(E,"explode");if(!N||L.getOption("disableInput"))return m.Pass;for(var U=L.listSelections(),se=0;se<U.length;se++){if(!U[se].empty())return m.Pass;var ne=V(L,U[se].head);if(!ne||N.indexOf(ne)%2!=0)return m.Pass}L.operation(function(){var Y=L.lineSeparator()||`
|
|
7
7
|
`;L.replaceSelection(Y+Y,null),ee(L,-1),U=L.listSelections();for(var X=0;X<U.length;X++){var Q=U[X].head.line;L.indentLine(Q,null,!0),L.indentLine(Q+1,null,!0)}})}function ee(L,E){for(var N=[],U=L.listSelections(),se=0,ne=0;ne<U.length;ne++){var Y=U[ne];Y.head==L.getCursor()&&(se=ne);var X=Y.head.ch||E>0?{line:Y.head.line,ch:Y.head.ch+E}:{line:Y.head.line-1};N.push({anchor:X,head:X})}L.setSelections(N,se)}function ae(L){var E=m.cmpPos(L.anchor,L.head)>0;return{anchor:new b(L.anchor.line,L.anchor.ch+(E?-1:1)),head:new b(L.head.line,L.head.ch+(E?1:-1))}}function q(L,E){var N=$(L);if(!N||L.getOption("disableInput"))return m.Pass;var U=C(N,"pairs"),se=U.indexOf(E);if(se==-1)return m.Pass;for(var ne=C(N,"closeBefore"),Y=C(N,"triples"),X=U.charAt(se+1)==E,Q=L.listSelections(),H=se%2==0,de,Ae=0;Ae<Q.length;Ae++){var Z=Q[Ae],xe=Z.head,ue,Ne=L.getRange(xe,b(xe.line,xe.ch+1));if(H&&!Z.empty())ue="surround";else if((X||!H)&&Ne==E)X&&J(L,xe)?ue="both":Y.indexOf(E)>=0&&L.getRange(xe,b(xe.line,xe.ch+3))==E+E+E?ue="skipThree":ue="skip";else if(X&&xe.ch>1&&Y.indexOf(E)>=0&&L.getRange(b(xe.line,xe.ch-2),xe)==E+E){if(xe.ch>2&&/\bstring/.test(L.getTokenTypeAt(b(xe.line,xe.ch-2))))return m.Pass;ue="addFour"}else if(X){var He=xe.ch==0?" ":L.getRange(b(xe.line,xe.ch-1),xe);if(!m.isWordChar(Ne)&&He!=E&&!m.isWordChar(He))ue="both";else return m.Pass}else if(H&&(Ne.length===0||/\s/.test(Ne)||ne.indexOf(Ne)>-1))ue="both";else return m.Pass;if(!de)de=ue;else if(de!=ue)return m.Pass}var Re=se%2?U.charAt(se-1):E,ze=se%2?E:U.charAt(se+1);L.operation(function(){if(de=="skip")ee(L,1);else if(de=="skipThree")ee(L,3);else if(de=="surround"){for(var Be=L.getSelections(),Ye=0;Ye<Be.length;Ye++)Be[Ye]=Re+Be[Ye]+ze;L.replaceSelections(Be,"around"),Be=L.listSelections().slice();for(var Ye=0;Ye<Be.length;Ye++)Be[Ye]=ae(Be[Ye]);L.setSelections(Be)}else de=="both"?(L.replaceSelection(Re+ze,null),L.triggerElectric(Re+ze),ee(L,-1)):de=="addFour"&&(L.replaceSelection(Re+Re+Re+Re,"before"),ee(L,1))})}function V(L,E){var N=L.getRange(b(E.line,E.ch-1),b(E.line,E.ch+1));return N.length==2?N:null}function J(L,E){var N=L.getTokenAt(b(E.line,E.ch+1));return/\bstring/.test(N.type)&&N.start==E.ch&&(E.ch==0||!/\bstring/.test(L.getTokenTypeAt(E)))}})},82518:(x,k,c)=>{(function(m){m(c(46944))})(function(m){var w=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),b=m.Pos,C={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function A(ee){return ee&&ee.bracketRegex||/[(){}[\]]/}function O(ee,ae,q){var V=ee.getLineHandle(ae.line),J=ae.ch-1,L=q&&q.afterCursor;L==null&&(L=/(^| )cm-fat-cursor($| )/.test(ee.getWrapperElement().className));var E=A(q),N=!L&&J>=0&&E.test(V.text.charAt(J))&&C[V.text.charAt(J)]||E.test(V.text.charAt(J+1))&&C[V.text.charAt(++J)];if(!N)return null;var U=N.charAt(1)==">"?1:-1;if(q&&q.strict&&U>0!=(J==ae.ch))return null;var se=ee.getTokenTypeAt(b(ae.line,J+1)),ne=j(ee,b(ae.line,J+(U>0?1:0)),U,se,q);return ne==null?null:{from:b(ae.line,J),to:ne&&ne.pos,match:ne&&ne.ch==N.charAt(0),forward:U>0}}function j(ee,ae,q,V,J){for(var L=J&&J.maxScanLineLength||1e4,E=J&&J.maxScanLines||1e3,N=[],U=A(J),se=q>0?Math.min(ae.line+E,ee.lastLine()+1):Math.max(ee.firstLine()-1,ae.line-E),ne=ae.line;ne!=se;ne+=q){var Y=ee.getLine(ne);if(Y){var X=q>0?0:Y.length-1,Q=q>0?Y.length:-1;if(!(Y.length>L))for(ne==ae.line&&(X=ae.ch-(q<0?1:0));X!=Q;X+=q){var H=Y.charAt(X);if(U.test(H)&&(V===void 0||(ee.getTokenTypeAt(b(ne,X+1))||"")==(V||""))){var de=C[H];if(de&&de.charAt(1)==">"==q>0)N.push(H);else if(N.length)N.pop();else return{pos:b(ne,X),ch:H}}}}}return ne-q==(q>0?ee.lastLine():ee.firstLine())?!1:null}function $(ee,ae,q){for(var V=ee.state.matchBrackets.maxHighlightLineLength||1e3,J=q&&q.highlightNonMatching,L=[],E=ee.listSelections(),N=0;N<E.length;N++){var U=E[N].empty()&&O(ee,E[N].head,q);if(U&&(U.match||J!==!1)&&ee.getLine(U.from.line).length<=V){var se=U.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";L.push(ee.markText(U.from,b(U.from.line,U.from.ch+1),{className:se})),U.to&&ee.getLine(U.to.line).length<=V&&L.push(ee.markText(U.to,b(U.to.line,U.to.ch+1),{className:se}))}}if(L.length){w&&ee.state.focused&&ee.focus();var ne=function(){ee.operation(function(){for(var Y=0;Y<L.length;Y++)L[Y].clear()})};if(ae)setTimeout(ne,800);else return ne}}function K(ee){ee.operation(function(){ee.state.matchBrackets.currentlyHighlighted&&(ee.state.matchBrackets.currentlyHighlighted(),ee.state.matchBrackets.currentlyHighlighted=null),ee.state.matchBrackets.currentlyHighlighted=$(ee,!1,ee.state.matchBrackets)})}function ie(ee){ee.state.matchBrackets&&ee.state.matchBrackets.currentlyHighlighted&&(ee.state.matchBrackets.currentlyHighlighted(),ee.state.matchBrackets.currentlyHighlighted=null)}m.defineOption("matchBrackets",!1,function(ee,ae,q){q&&q!=m.Init&&(ee.off("cursorActivity",K),ee.off("focus",K),ee.off("blur",ie),ie(ee)),ae&&(ee.state.matchBrackets=typeof ae=="object"?ae:{},ee.on("cursorActivity",K),ee.on("focus",K),ee.on("blur",ie))}),m.defineExtension("matchBrackets",function(){$(this,!0)}),m.defineExtension("findMatchingBracket",function(ee,ae,q){return(q||typeof ae=="boolean")&&(q?(q.strict=ae,ae=q):ae=ae?{strict:!0}:null),O(this,ee,ae)}),m.defineExtension("scanForBracket",function(ee,ae,q,V){return j(this,ee,ae,q,V)})})},77436:(x,k,c)=>{(function(m){m(c(46944))})(function(m){"use strict";var w="CodeMirror-hint",b="CodeMirror-hint-active";m.showHint=function(L,E,N){if(!E)return L.showHint(N);N&&N.async&&(E.async=!0);var U={hint:E};if(N)for(var se in N)U[se]=N[se];return L.showHint(U)},m.defineExtension("showHint",function(L){L=j(this,this.getCursor("start"),L);var E=this.listSelections();if(!(E.length>1)){if(this.somethingSelected()){if(!L.hint.supportsSelection)return;for(var N=0;N<E.length;N++)if(E[N].head.line!=E[N].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var U=this.state.completionActive=new C(this,L);U.options.hint&&(m.signal(this,"startCompletion",this),U.update(!0))}}),m.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function C(L,E){if(this.cm=L,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 N=this;L.on("cursorActivity",this.activityFunc=function(){N.cursorActivity()})}}var A=window.requestAnimationFrame||function(L){return setTimeout(L,1e3/60)},O=window.cancelAnimationFrame||clearTimeout;C.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&&m.signal(this.data,"close"),this.widget&&this.widget.close(),m.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(L,E){var N=L.list[E],U=this;this.cm.operation(function(){N.hint?N.hint(U.cm,L,N):U.cm.replaceRange($(N),N.from||L.from,N.to||L.to,"complete"),m.signal(L,"pick",N),U.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(O(this.debounce),this.debounce=0);var L=this.startPos;this.data&&(L=this.data.from);var E=this.cm.getCursor(),N=this.cm.getLine(E.line);if(E.line!=this.startPos.line||N.length-E.ch!=this.startLen-this.startPos.ch||E.ch<L.ch||this.cm.somethingSelected()||!E.ch||this.options.closeCharacters.test(N.charAt(E.ch-1)))this.close();else{var U=this;this.debounce=A(function(){U.update()}),this.widget&&this.widget.disable()}},update:function(L){if(this.tick!=null){var E=this,N=++this.tick;q(this.options.hint,this.cm,this.options,function(U){E.tick==N&&E.finishUpdate(U,L)})}},finishUpdate:function(L,E){this.data&&m.signal(this.data,"update");var N=this.widget&&this.widget.picked||E&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=L,L&&L.list.length&&(N&&L.list.length==1?this.pick(L,0):(this.widget=new ee(this,L),m.signal(L,"shown")))}};function j(L,E,N){var U=L.options.hintOptions,se={};for(var ne in J)se[ne]=J[ne];if(U)for(var ne in U)U[ne]!==void 0&&(se[ne]=U[ne]);if(N)for(var ne in N)N[ne]!==void 0&&(se[ne]=N[ne]);return se.hint.resolve&&(se.hint=se.hint.resolve(L,E)),se}function $(L){return typeof L=="string"?L:L.text}function K(L,E){var N={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},U=/Mac/.test(navigator.platform);U&&(N["Ctrl-P"]=function(){E.moveFocus(-1)},N["Ctrl-N"]=function(){E.moveFocus(1)});var se=L.options.customKeys,ne=se?{}:N;function Y(H,de){var Ae;typeof de!="string"?Ae=function(Z){return de(Z,E)}:N.hasOwnProperty(de)?Ae=N[de]:Ae=de,ne[H]=Ae}if(se)for(var X in se)se.hasOwnProperty(X)&&Y(X,se[X]);var Q=L.options.extraKeys;if(Q)for(var X in Q)Q.hasOwnProperty(X)&&Y(X,Q[X]);return ne}function ie(L,E){for(;E&&E!=L;){if(E.nodeName.toUpperCase()==="LI"&&E.parentNode==L)return E;E=E.parentNode}}function ee(L,E){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=L,this.data=E,this.picked=!1;var N=this,U=L.cm,se=U.getInputField().ownerDocument,ne=se.defaultView||se.parentWindow,Y=this.hints=se.createElement("ul");Y.setAttribute("role","listbox"),Y.setAttribute("aria-expanded","true"),Y.id=this.id;var X=L.cm.options.theme;Y.className="CodeMirror-hints "+X,this.selectedHint=E.selectedHint||0;for(var Q=E.list,H=0;H<Q.length;++H){var de=Y.appendChild(se.createElement("li")),Ae=Q[H],Z=w+(H!=this.selectedHint?"":" "+b);Ae.className!=null&&(Z=Ae.className+" "+Z),de.className=Z,H==this.selectedHint&&de.setAttribute("aria-selected","true"),de.id=this.id+"-"+H,de.setAttribute("role","option"),Ae.render?Ae.render(de,E,Ae):de.appendChild(se.createTextNode(Ae.displayText||$(Ae))),de.hintId=H}var xe=L.options.container||se.body,ue=U.cursorCoords(L.options.alignWithWord?E.from:null),Ne=ue.left,He=ue.bottom,Re=!0,ze=0,Be=0;if(xe!==se.body){var Ye=["absolute","relative","fixed"].indexOf(ne.getComputedStyle(xe).position)!==-1,gt=Ye?xe:xe.offsetParent,ut=gt.getBoundingClientRect(),yt=se.body.getBoundingClientRect();ze=ut.left-yt.left-gt.scrollLeft,Be=ut.top-yt.top-gt.scrollTop}Y.style.left=Ne-ze+"px",Y.style.top=He-Be+"px";var lt=ne.innerWidth||Math.max(se.body.offsetWidth,se.documentElement.offsetWidth),Ke=ne.innerHeight||Math.max(se.body.offsetHeight,se.documentElement.offsetHeight);xe.appendChild(Y),U.getInputField().setAttribute("aria-autocomplete","list"),U.getInputField().setAttribute("aria-owns",this.id),U.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var Fe=L.options.moveOnOverlap?Y.getBoundingClientRect():new DOMRect,qe=L.options.paddingForScrollbar?Y.scrollHeight>Y.clientHeight+1:!1,bt;setTimeout(function(){bt=U.getScrollInfo()});var Lt=Fe.bottom-Ke;if(Lt>0){var Rt=Fe.bottom-Fe.top,zt=Fe.top-(ue.bottom-ue.top)-2;Ke-Fe.top<zt?(Rt>zt&&(Y.style.height=(Rt=zt)+"px"),Y.style.top=(He=ue.top-Rt)+Be+"px",Re=!1):Y.style.height=Ke-Fe.top-2+"px"}var Vr=Fe.right-lt;if(qe&&(Vr+=U.display.nativeBarWidth),Vr>0&&(Fe.right-Fe.left>lt&&(Y.style.width=lt-5+"px",Vr-=Fe.right-Fe.left-lt),Y.style.left=(Ne=Math.max(ue.left-Vr-ze,0))+"px"),qe)for(var kr=Y.firstChild;kr;kr=kr.nextSibling)kr.style.paddingRight=U.display.nativeBarWidth+"px";if(U.addKeyMap(this.keyMap=K(L,{moveFocus:function($t,nr){N.changeActive(N.selectedHint+$t,nr)},setFocus:function($t){N.changeActive($t)},menuSize:function(){return N.screenAmount()},length:Q.length,close:function(){L.close()},pick:function(){N.pick()},data:E})),L.options.closeOnUnfocus){var qr;U.on("blur",this.onBlur=function(){qr=setTimeout(function(){L.close()},100)}),U.on("focus",this.onFocus=function(){clearTimeout(qr)})}U.on("scroll",this.onScroll=function(){var $t=U.getScrollInfo(),nr=U.getWrapperElement().getBoundingClientRect();bt||(bt=U.getScrollInfo());var er=He+bt.top-$t.top,kn=er-(ne.pageYOffset||(se.documentElement||se.body).scrollTop);if(Re||(kn+=Y.offsetHeight),kn<=nr.top||kn>=nr.bottom)return L.close();Y.style.top=er+"px",Y.style.left=Ne+bt.left-$t.left+"px"}),m.on(Y,"dblclick",function($t){var nr=ie(Y,$t.target||$t.srcElement);nr&&nr.hintId!=null&&(N.changeActive(nr.hintId),N.pick())}),m.on(Y,"click",function($t){var nr=ie(Y,$t.target||$t.srcElement);nr&&nr.hintId!=null&&(N.changeActive(nr.hintId),L.options.completeOnSingleClick&&N.pick())}),m.on(Y,"mousedown",function(){setTimeout(function(){U.focus()},20)});var ht=this.getSelectedHintRange();return(ht.from!==0||ht.to!==0)&&this.scrollToActive(),m.signal(E,"select",Q[this.selectedHint],Y.childNodes[this.selectedHint]),!0}ee.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 L=this.completion.cm.getInputField();L.removeAttribute("aria-activedescendant"),L.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 L=this;this.keyMap={Enter:function(){L.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(L,E){if(L>=this.data.list.length?L=E?this.data.list.length-1:0:L<0&&(L=E?0:this.data.list.length-1),this.selectedHint!=L){var N=this.hints.childNodes[this.selectedHint];N&&(N.className=N.className.replace(" "+b,""),N.removeAttribute("aria-selected")),N=this.hints.childNodes[this.selectedHint=L],N.className+=" "+b,N.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",N.id),this.scrollToActive(),m.signal(this.data,"select",this.data.list[this.selectedHint],N)}},scrollToActive:function(){var L=this.getSelectedHintRange(),E=this.hints.childNodes[L.from],N=this.hints.childNodes[L.to],U=this.hints.firstChild;E.offsetTop<this.hints.scrollTop?this.hints.scrollTop=E.offsetTop-U.offsetTop:N.offsetTop+N.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=N.offsetTop+N.offsetHeight-this.hints.clientHeight+U.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var L=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-L),to:Math.min(this.data.list.length-1,this.selectedHint+L)}}};function ae(L,E){if(!L.somethingSelected())return E;for(var N=[],U=0;U<E.length;U++)E[U].supportsSelection&&N.push(E[U]);return N}function q(L,E,N,U){if(L.async)L(E,U,N);else{var se=L(E,N);se&&se.then?se.then(U):U(se)}}function V(L,E){var N=L.getHelpers(E,"hint"),U;if(N.length){var se=function(ne,Y,X){var Q=ae(ne,N);function H(de){if(de==Q.length)return Y(null);q(Q[de],ne,X,function(Ae){Ae&&Ae.list.length>0?Y(Ae):H(de+1)})}H(0)};return se.async=!0,se.supportsSelection=!0,se}else return(U=L.getHelper(L.getCursor(),"hintWords"))?function(ne){return m.hint.fromList(ne,{words:U})}:m.hint.anyword?function(ne,Y){return m.hint.anyword(ne,Y)}:function(){}}m.registerHelper("hint","auto",{resolve:V}),m.registerHelper("hint","fromList",function(L,E){var N=L.getCursor(),U=L.getTokenAt(N),se,ne=m.Pos(N.line,U.start),Y=N;U.start<N.ch&&/\w/.test(U.string.charAt(N.ch-U.start-1))?se=U.string.substr(0,N.ch-U.start):(se="",ne=N);for(var X=[],Q=0;Q<E.words.length;Q++){var H=E.words[Q];H.slice(0,se.length)==se&&X.push(H)}if(X.length)return{list:X,from:ne,to:Y}}),m.commands.autocomplete=m.showHint;var J={hint:m.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};m.defineOption("hintOptions",null)})},33201:(x,k,c)=>{(function(m){m(c(46944))})(function(m){"use strict";var w="CodeMirror-lint-markers",b="CodeMirror-lint-line-";function C(Y,X,Q){var H=document.createElement("div");H.className="CodeMirror-lint-tooltip cm-s-"+Y.options.theme,H.appendChild(Q.cloneNode(!0)),Y.state.lint.options.selfContain?Y.getWrapperElement().appendChild(H):document.body.appendChild(H);function de(Ae){if(!H.parentNode)return m.off(document,"mousemove",de);H.style.top=Math.max(0,Ae.clientY-H.offsetHeight-5)+"px",H.style.left=Ae.clientX+5+"px"}return m.on(document,"mousemove",de),de(X),H.style.opacity!=null&&(H.style.opacity=1),H}function A(Y){Y.parentNode&&Y.parentNode.removeChild(Y)}function O(Y){Y.parentNode&&(Y.style.opacity==null&&A(Y),Y.style.opacity=0,setTimeout(function(){A(Y)},600))}function j(Y,X,Q,H){var de=C(Y,X,Q);function Ae(){m.off(H,"mouseout",Ae),de&&(O(de),de=null)}var Z=setInterval(function(){if(de)for(var xe=H;;xe=xe.parentNode){if(xe&&xe.nodeType==11&&(xe=xe.host),xe==document.body)return;if(!xe){Ae();break}}if(!de)return clearInterval(Z)},400);m.on(H,"mouseout",Ae)}function $(Y,X,Q){this.marked=[],X instanceof Function&&(X={getAnnotations:X}),(!X||X===!0)&&(X={}),this.options={},this.linterOptions=X.options||{};for(var H in K)this.options[H]=K[H];for(var H in X)K.hasOwnProperty(H)?X[H]!=null&&(this.options[H]=X[H]):X.options||(this.linterOptions[H]=X[H]);this.timeout=null,this.hasGutter=Q,this.onMouseOver=function(de){ne(Y,de)},this.waitingFor=0}var K={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function ie(Y){var X=Y.state.lint;X.hasGutter&&Y.clearGutter(w),X.options.highlightLines&&ee(Y);for(var Q=0;Q<X.marked.length;++Q)X.marked[Q].clear();X.marked.length=0}function ee(Y){Y.eachLine(function(X){var Q=X.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(X.wrapClass);Q&&Y.removeLineClass(X,"wrap",Q[0])})}function ae(Y,X,Q,H,de){var Ae=document.createElement("div"),Z=Ae;return Ae.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+Q,H&&(Z=Ae.appendChild(document.createElement("div")),Z.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),de!=!1&&m.on(Z,"mouseover",function(xe){j(Y,xe,X,Z)}),Ae}function q(Y,X){return Y=="error"?Y:X}function V(Y){for(var X=[],Q=0;Q<Y.length;++Q){var H=Y[Q],de=H.from.line;(X[de]||(X[de]=[])).push(H)}return X}function J(Y){var X=Y.severity;X||(X="error");var Q=document.createElement("div");return Q.className="CodeMirror-lint-message CodeMirror-lint-message-"+X,typeof Y.messageHTML!="undefined"?Q.innerHTML=Y.messageHTML:Q.appendChild(document.createTextNode(Y.message)),Q}function L(Y,X){var Q=Y.state.lint,H=++Q.waitingFor;function de(){H=-1,Y.off("change",de)}Y.on("change",de),X(Y.getValue(),function(Ae,Z){Y.off("change",de),Q.waitingFor==H&&(Z&&Ae instanceof m&&(Ae=Z),Y.operation(function(){N(Y,Ae)}))},Q.linterOptions,Y)}function E(Y){var X=Y.state.lint;if(X){var Q=X.options,H=Q.getAnnotations||Y.getHelper(m.Pos(0,0),"lint");if(H)if(Q.async||H.async)L(Y,H);else{var de=H(Y.getValue(),X.linterOptions,Y);if(!de)return;de.then?de.then(function(Ae){Y.operation(function(){N(Y,Ae)})}):Y.operation(function(){N(Y,de)})}}}function N(Y,X){var Q=Y.state.lint;if(Q){var H=Q.options;ie(Y);for(var de=V(X),Ae=0;Ae<de.length;++Ae){var Z=de[Ae];if(Z){var xe=[];Z=Z.filter(function(Be){return xe.indexOf(Be.message)>-1?!1:xe.push(Be.message)});for(var ue=null,Ne=Q.hasGutter&&document.createDocumentFragment(),He=0;He<Z.length;++He){var Re=Z[He],ze=Re.severity;ze||(ze="error"),ue=q(ue,ze),H.formatAnnotation&&(Re=H.formatAnnotation(Re)),Q.hasGutter&&Ne.appendChild(J(Re)),Re.to&&Q.marked.push(Y.markText(Re.from,Re.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+ze,__annotation:Re}))}Q.hasGutter&&Y.setGutterMarker(Ae,w,ae(Y,Ne,ue,de[Ae].length>1,H.tooltips)),H.highlightLines&&Y.addLineClass(Ae,"wrap",b+ue)}}H.onUpdateLinting&&H.onUpdateLinting(X,de,Y)}}function U(Y){var X=Y.state.lint;X&&(clearTimeout(X.timeout),X.timeout=setTimeout(function(){E(Y)},X.options.delay))}function se(Y,X,Q){for(var H=Q.target||Q.srcElement,de=document.createDocumentFragment(),Ae=0;Ae<X.length;Ae++){var Z=X[Ae];de.appendChild(J(Z))}j(Y,Q,de,H)}function ne(Y,X){var Q=X.target||X.srcElement;if(/\bCodeMirror-lint-mark-/.test(Q.className)){for(var H=Q.getBoundingClientRect(),de=(H.left+H.right)/2,Ae=(H.top+H.bottom)/2,Z=Y.findMarksAt(Y.coordsChar({left:de,top:Ae},"client")),xe=[],ue=0;ue<Z.length;++ue){var Ne=Z[ue].__annotation;Ne&&xe.push(Ne)}xe.length&&se(Y,xe,X)}}m.defineOption("lint",!1,function(Y,X,Q){if(Q&&Q!=m.Init&&(ie(Y),Y.state.lint.options.lintOnChange!==!1&&Y.off("change",U),m.off(Y.getWrapperElement(),"mouseover",Y.state.lint.onMouseOver),clearTimeout(Y.state.lint.timeout),delete Y.state.lint),X){for(var H=Y.getOption("gutters"),de=!1,Ae=0;Ae<H.length;++Ae)H[Ae]==w&&(de=!0);var Z=Y.state.lint=new $(Y,X,de);Z.options.lintOnChange&&Y.on("change",U),Z.options.tooltips!=!1&&Z.options.tooltips!="gutter"&&m.on(Y.getWrapperElement(),"mouseover",Z.onMouseOver),E(Y)}}),m.defineExtension("performLint",function(){E(this)})})},71628:(x,k,c)=>{(function(m){m(c(46944))})(function(m){"use strict";var w=m.Pos;function b(E){var N=E.flags;return N!=null?N:(E.ignoreCase?"i":"")+(E.global?"g":"")+(E.multiline?"m":"")}function C(E,N){for(var U=b(E),se=U,ne=0;ne<N.length;ne++)se.indexOf(N.charAt(ne))==-1&&(se+=N.charAt(ne));return U==se?E:new RegExp(E.source,se)}function A(E){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(E.source)}function O(E,N,U){N=C(N,"g");for(var se=U.line,ne=U.ch,Y=E.lastLine();se<=Y;se++,ne=0){N.lastIndex=ne;var X=E.getLine(se),Q=N.exec(X);if(Q)return{from:w(se,Q.index),to:w(se,Q.index+Q[0].length),match:Q}}}function j(E,N,U){if(!A(N))return O(E,N,U);N=C(N,"gm");for(var se,ne=1,Y=U.line,X=E.lastLine();Y<=X;){for(var Q=0;Q<ne&&!(Y>X);Q++){var H=E.getLine(Y++);se=se==null?H:se+`
|
|
8
8
|
`+H}ne=ne*2,N.lastIndex=U.ch;var de=N.exec(se);if(de){var Ae=se.slice(0,de.index).split(`
|
package/dist/oauth2-redirect.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Redocly OpenAPI Docs
|
|
3
3
|
* (c) Copyright 2018 Redocly LLC, all rights reserved.
|
|
4
4
|
* -------------------------------------------------------------
|
|
5
|
-
* Version: "3.0.0-alpha.
|
|
5
|
+
* Version: "3.0.0-alpha.30"
|
|
6
6
|
*/(function(Dr,dr){typeof exports=="object"&&typeof module=="object"?module.exports=dr():typeof define=="function"&&define.amd?define([],dr):typeof exports=="object"?exports.RedoclyOpenAPIDocs=dr():Dr.RedoclyOpenAPIDocs=dr()})(this,()=>(()=>{var it={40312:(n,c,r)=>{var t=r(37235),o=r(22734),a=TypeError;n.exports=function(e){if(t(e))return e;throw a(o(e)+" is not a function")}},87725:(n,c,r)=>{var t=r(37235),o=String,a=TypeError;n.exports=function(e){if(typeof e=="object"||t(e))return e;throw a("Can't set "+o(e)+" as a prototype")}},84102:(n,c,r)=>{var t=r(23967),o=r(36101),a=r(99051).f,e=t("unscopables"),s=Array.prototype;s[e]==null&&a(s,e,{configurable:!0,value:o(null)}),n.exports=function(i){s[e][i]=!0}},61507:(n,c,r)=>{var t=r(56471),o=TypeError;n.exports=function(a,e){if(t(e,a))return a;throw o("Incorrect invocation")}},86347:(n,c,r)=>{var t=r(82951),o=String,a=TypeError;n.exports=function(e){if(t(e))return e;throw a(o(e)+" is not an object")}},65335:(n,c,r)=>{"use strict";var t=r(58495),o=r(71970),a=r(72296),e=r(16429),s=r(38861),i=r(19106),l=r(2312),f=r(13980),d=r(53401),p=r(30205),g=Array;n.exports=function(x){var P=a(x),R=i(this),L=arguments.length,C=L>1?arguments[1]:void 0,D=C!==void 0;D&&(C=t(C,L>2?arguments[2]:void 0));var O=p(P),T=0,U,$,rr,nr,K,k;if(O&&!(this===g&&s(O)))for(nr=d(P,O),K=nr.next,$=R?new this:[];!(rr=o(K,nr)).done;T++)k=D?e(nr,C,[rr.value,T],!0):rr.value,f($,T,k);else for(U=l(P),$=R?new this(U):g(U);U>T;T++)k=D?C(P[T],T):P[T],f($,T,k);return $.length=T,$}},10752:(n,c,r)=>{var t=r(11884),o=r(83260),a=r(2312),e=function(s){return function(i,l,f){var d=t(i),p=a(d),g=o(f,p),m;if(s&&l!=l){for(;p>g;)if(m=d[g++],m!=m)return!0}else for(;p>g;g++)if((s||g in d)&&d[g]===l)return s||g||0;return!s&&-1}};n.exports={includes:e(!0),indexOf:e(!1)}},17401:(n,c,r)=>{var t=r(83260),o=r(2312),a=r(13980),e=Array,s=Math.max;n.exports=function(i,l,f){for(var d=o(i),p=t(l,d),g=t(f===void 0?d:f,d),m=e(s(g-p,0)),x=0;p<g;p++,x++)a(m,x,i[p]);return m.length=x,m}},5515:(n,c,r)=>{var t=r(17401),o=Math.floor,a=function(i,l){var f=i.length,d=o(f/2);return f<8?e(i,l):s(i,a(t(i,0,d),l),a(t(i,d),l),l)},e=function(i,l){for(var f=i.length,d=1,p,g;d<f;){for(g=d,p=i[d];g&&l(i[g-1],p)>0;)i[g]=i[--g];g!==d++&&(i[g]=p)}return i},s=function(i,l,f,d){for(var p=l.length,g=f.length,m=0,x=0;m<p||x<g;)i[m+x]=m<p&&x<g?d(l[m],f[x])<=0?l[m++]:f[x++]:m<p?l[m++]:f[x++];return i};n.exports=a},16429:(n,c,r)=>{var t=r(86347),o=r(16177);n.exports=function(a,e,s,i){try{return i?e(t(s)[0],s[1]):e(s)}catch(l){o(a,"throw",l)}}},20237:(n,c,r)=>{var t=r(29027),o=t({}.toString),a=t("".slice);n.exports=function(e){return a(o(e),8,-1)}},95032:(n,c,r)=>{var t=r(65727),o=r(37235),a=r(20237),e=r(23967),s=e("toStringTag"),i=Object,l=a(function(){return arguments}())=="Arguments",f=function(d,p){try{return d[p]}catch(g){}};n.exports=t?a:function(d){var p,g,m;return d===void 0?"Undefined":d===null?"Null":typeof(g=f(p=i(d),s))=="string"?g:l?a(p):(m=a(p))=="Object"&&o(p.callee)?"Arguments":m}},20292:(n,c,r)=>{var t=r(85831),o=r(42231),a=r(80381),e=r(99051);n.exports=function(s,i,l){for(var f=o(i),d=e.f,p=a.f,g=0;g<f.length;g++){var m=f[g];!t(s,m)&&!(l&&t(l,m))&&d(s,m,p(i,m))}}},40328:(n,c,r)=>{var t=r(59769);n.exports=!t(function(){function o(){}return o.prototype.constructor=null,Object.getPrototypeOf(new o)!==o.prototype})},9401:n=>{n.exports=function(c,r){return{value:c,done:r}}},70235:(n,c,r)=>{var t=r(76986),o=r(99051),a=r(99829);n.exports=t?function(e,s,i){return o.f(e,s,a(1,i))}:function(e,s,i){return e[s]=i,e}},99829:n=>{n.exports=function(c,r){return{enumerable:!(c&1),configurable:!(c&2),writable:!(c&4),value:r}}},13980:(n,c,r)=>{"use strict";var t=r(47568),o=r(99051),a=r(99829);n.exports=function(e,s,i){var l=t(s);l in e?o.f(e,l,a(0,i)):e[l]=i}},16317:(n,c,r)=>{var t=r(49578),o=r(99051);n.exports=function(a,e,s){return s.get&&t(s.get,e,{getter:!0}),s.set&&t(s.set,e,{setter:!0}),o.f(a,e,s)}},62072:(n,c,r)=>{var t=r(37235),o=r(99051),a=r(49578),e=r(8108);n.exports=function(s,i,l,f){f||(f={});var d=f.enumerable,p=f.name!==void 0?f.name:i;if(t(l)&&a(l,p,f),f.global)d?s[i]=l:e(i,l);else{try{f.unsafe?s[i]&&(d=!0):delete s[i]}catch(g){}d?s[i]=l:o.f(s,i,{value:l,enumerable:!1,configurable:!f.nonConfigurable,writable:!f.nonWritable})}return s}},64266:(n,c,r)=>{var t=r(62072);n.exports=function(o,a,e){for(var s in a)t(o,s,a[s],e);return o}},8108:(n,c,r)=>{var t=r(80376),o=Object.defineProperty;n.exports=function(a,e){try{o(t,a,{value:e,configurable:!0,writable:!0})}catch(s){t[a]=e}return e}},76986:(n,c,r)=>{var t=r(59769);n.exports=!t(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},74401:n=>{var c=typeof document=="object"&&document.all,r=typeof c=="undefined"&&c!==void 0;n.exports={all:c,IS_HTMLDDA:r}},30030:(n,c,r)=>{var t=r(80376),o=r(82951),a=t.document,e=o(a)&&o(a.createElement);n.exports=function(s){return e?a.createElement(s):{}}},96229:n=>{n.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},81150:(n,c,r)=>{var t=r(80376),o=r(96229),a=t.process,e=t.Deno,s=a&&a.versions||e&&e.version,i=s&&s.v8,l,f;i&&(l=i.split("."),f=l[0]>0&&l[0]<4?1:+(l[0]+l[1])),!f&&o&&(l=o.match(/Edge\/(\d+)/),(!l||l[1]>=74)&&(l=o.match(/Chrome\/(\d+)/),l&&(f=+l[1]))),n.exports=f},68671:n=>{n.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},59401:(n,c,r)=>{var t=r(80376),o=r(80381).f,a=r(70235),e=r(62072),s=r(8108),i=r(20292),l=r(74039);n.exports=function(f,d){var p=f.target,g=f.global,m=f.stat,x,P,R,L,C,D;if(g?P=t:m?P=t[p]||s(p,{}):P=(t[p]||{}).prototype,P)for(R in d){if(C=d[R],f.dontCallGetSet?(D=o(P,R),L=D&&D.value):L=P[R],x=l(g?R:p+(m?".":"#")+R,f.forced),!x&&L!==void 0){if(typeof C==typeof L)continue;i(C,L)}(f.sham||L&&L.sham)&&a(C,"sham",!0),e(P,R,C,f)}}},59769:n=>{n.exports=function(c){try{return!!c()}catch(r){return!0}}},58495:(n,c,r)=>{var t=r(44914),o=r(40312),a=r(71945),e=t(t.bind);n.exports=function(s,i){return o(s),i===void 0?s:a?e(s,i):function(){return s.apply(i,arguments)}}},71945:(n,c,r)=>{var t=r(59769);n.exports=!t(function(){var o=function(){}.bind();return typeof o!="function"||o.hasOwnProperty("prototype")})},71970:(n,c,r)=>{var t=r(71945),o=Function.prototype.call;n.exports=t?o.bind(o):function(){return o.apply(o,arguments)}},34157:(n,c,r)=>{var t=r(76986),o=r(85831),a=Function.prototype,e=t&&Object.getOwnPropertyDescriptor,s=o(a,"name"),i=s&&function(){}.name==="something",l=s&&(!t||t&&e(a,"name").configurable);n.exports={EXISTS:s,PROPER:i,CONFIGURABLE:l}},12352:(n,c,r)=>{var t=r(29027),o=r(40312);n.exports=function(a,e,s){try{return t(o(Object.getOwnPropertyDescriptor(a,e)[s]))}catch(i){}}},44914:(n,c,r)=>{var t=r(20237),o=r(29027);n.exports=function(a){if(t(a)==="Function")return o(a)}},29027:(n,c,r)=>{var t=r(71945),o=Function.prototype,a=o.call,e=t&&o.bind.bind(a,a);n.exports=t?e:function(s){return function(){return a.apply(s,arguments)}}},49023:(n,c,r)=>{var t=r(80376),o=r(37235),a=function(e){return o(e)?e:void 0};n.exports=function(e,s){return arguments.length<2?a(t[e]):t[e]&&t[e][s]}},30205:(n,c,r)=>{var t=r(95032),o=r(63953),a=r(51246),e=r(90857),s=r(23967),i=s("iterator");n.exports=function(l){if(!a(l))return o(l,i)||o(l,"@@iterator")||e[t(l)]}},53401:(n,c,r)=>{var t=r(71970),o=r(40312),a=r(86347),e=r(22734),s=r(30205),i=TypeError;n.exports=function(l,f){var d=arguments.length<2?s(l):f;if(o(d))return a(t(d,l));throw i(e(l)+" is not iterable")}},63953:(n,c,r)=>{var t=r(40312),o=r(51246);n.exports=function(a,e){var s=a[e];return o(s)?void 0:t(s)}},80376:(n,c,r)=>{var t=function(o){return o&&o.Math==Math&&o};n.exports=t(typeof globalThis=="object"&&globalThis)||t(typeof window=="object"&&window)||t(typeof self=="object"&&self)||t(typeof r.g=="object"&&r.g)||function(){return this}()||Function("return this")()},85831:(n,c,r)=>{var t=r(29027),o=r(72296),a=t({}.hasOwnProperty);n.exports=Object.hasOwn||function(s,i){return a(o(s),i)}},33804:n=>{n.exports={}},18673:(n,c,r)=>{var t=r(49023);n.exports=t("document","documentElement")},74690:(n,c,r)=>{var t=r(76986),o=r(59769),a=r(30030);n.exports=!t&&!o(function(){return Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a!=7})},60144:(n,c,r)=>{var t=r(29027),o=r(59769),a=r(20237),e=Object,s=t("".split);n.exports=o(function(){return!e("z").propertyIsEnumerable(0)})?function(i){return a(i)=="String"?s(i,""):e(i)}:e},96441:(n,c,r)=>{var t=r(29027),o=r(37235),a=r(58797),e=t(Function.toString);o(a.inspectSource)||(a.inspectSource=function(s){return e(s)}),n.exports=a.inspectSource},92569:(n,c,r)=>{var t=r(63545),o=r(80376),a=r(82951),e=r(70235),s=r(85831),i=r(58797),l=r(41506),f=r(33804),d="Object already initialized",p=o.TypeError,g=o.WeakMap,m,x,P,R=function(O){return P(O)?x(O):m(O,{})},L=function(O){return function(T){var U;if(!a(T)||(U=x(T)).type!==O)throw p("Incompatible receiver, "+O+" required");return U}};if(t||i.state){var C=i.state||(i.state=new g);C.get=C.get,C.has=C.has,C.set=C.set,m=function(O,T){if(C.has(O))throw p(d);return T.facade=O,C.set(O,T),T},x=function(O){return C.get(O)||{}},P=function(O){return C.has(O)}}else{var D=l("state");f[D]=!0,m=function(O,T){if(s(O,D))throw p(d);return T.facade=O,e(O,D,T),T},x=function(O){return s(O,D)?O[D]:{}},P=function(O){return s(O,D)}}n.exports={set:m,get:x,has:P,enforce:R,getterFor:L}},38861:(n,c,r)=>{var t=r(23967),o=r(90857),a=t("iterator"),e=Array.prototype;n.exports=function(s){return s!==void 0&&(o.Array===s||e[a]===s)}},37235:(n,c,r)=>{var t=r(74401),o=t.all;n.exports=t.IS_HTMLDDA?function(a){return typeof a=="function"||a===o}:function(a){return typeof a=="function"}},19106:(n,c,r)=>{var t=r(29027),o=r(59769),a=r(37235),e=r(95032),s=r(49023),i=r(96441),l=function(){},f=[],d=s("Reflect","construct"),p=/^\s*(?:class|function)\b/,g=t(p.exec),m=!p.exec(l),x=function(L){if(!a(L))return!1;try{return d(l,f,L),!0}catch(C){return!1}},P=function(L){if(!a(L))return!1;switch(e(L)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return m||!!g(p,i(L))}catch(C){return!0}};P.sham=!0,n.exports=!d||o(function(){var R;return x(x.call)||!x(Object)||!x(function(){R=!0})||R})?P:x},74039:(n,c,r)=>{var t=r(59769),o=r(37235),a=/#|\.prototype\./,e=function(d,p){var g=i[s(d)];return g==f?!0:g==l?!1:o(p)?t(p):!!p},s=e.normalize=function(d){return String(d).replace(a,".").toLowerCase()},i=e.data={},l=e.NATIVE="N",f=e.POLYFILL="P";n.exports=e},51246:n=>{n.exports=function(c){return c==null}},82951:(n,c,r)=>{var t=r(37235),o=r(74401),a=o.all;n.exports=o.IS_HTMLDDA?function(e){return typeof e=="object"?e!==null:t(e)||e===a}:function(e){return typeof e=="object"?e!==null:t(e)}},68264:n=>{n.exports=!1},47082:(n,c,r)=>{var t=r(49023),o=r(37235),a=r(56471),e=r(19366),s=Object;n.exports=e?function(i){return typeof i=="symbol"}:function(i){var l=t("Symbol");return o(l)&&a(l.prototype,s(i))}},16177:(n,c,r)=>{var t=r(71970),o=r(86347),a=r(63953);n.exports=function(e,s,i){var l,f;o(e);try{if(l=a(e,"return"),!l){if(s==="throw")throw i;return i}l=t(l,e)}catch(d){f=!0,l=d}if(s==="throw")throw i;if(f)throw l;return o(l),i}},21811:(n,c,r)=>{"use strict";var t=r(74929).IteratorPrototype,o=r(36101),a=r(99829),e=r(65746),s=r(90857),i=function(){return this};n.exports=function(l,f,d,p){var g=f+" Iterator";return l.prototype=o(t,{next:a(+!p,d)}),e(l,g,!1,!0),s[g]=i,l}},48710:(n,c,r)=>{"use strict";var t=r(59401),o=r(71970),a=r(68264),e=r(34157),s=r(37235),i=r(21811),l=r(74972),f=r(90331),d=r(65746),p=r(70235),g=r(62072),m=r(23967),x=r(90857),P=r(74929),R=e.PROPER,L=e.CONFIGURABLE,C=P.IteratorPrototype,D=P.BUGGY_SAFARI_ITERATORS,O=m("iterator"),T="keys",U="values",$="entries",rr=function(){return this};n.exports=function(nr,K,k,gr,ir,N,H){i(k,K,gr);var G=function(tr){if(tr===ir&&V)return V;if(!D&&tr in W)return W[tr];switch(tr){case T:return function(){return new k(this,tr)};case U:return function(){return new k(this,tr)};case $:return function(){return new k(this,tr)}}return function(){return new k(this)}},F=K+" Iterator",Y=!1,W=nr.prototype,z=W[O]||W["@@iterator"]||ir&&W[ir],V=!D&&z||G(ir),ur=K=="Array"&&W.entries||z,X,Q,ar;if(ur&&(X=l(ur.call(new nr)),X!==Object.prototype&&X.next&&(!a&&l(X)!==C&&(f?f(X,C):s(X[O])||g(X,O,rr)),d(X,F,!0,!0),a&&(x[F]=rr))),R&&ir==U&&z&&z.name!==U&&(!a&&L?p(W,"name",U):(Y=!0,V=function(){return o(z,this)})),ir)if(Q={values:G(U),keys:N?V:G(T),entries:G($)},H)for(ar in Q)(D||Y||!(ar in W))&&g(W,ar,Q[ar]);else t({target:K,proto:!0,forced:D||Y},Q);return(!a||H)&&W[O]!==V&&g(W,O,V,{name:ir}),x[K]=V,Q}},74929:(n,c,r)=>{"use strict";var t=r(59769),o=r(37235),a=r(82951),e=r(36101),s=r(74972),i=r(62072),l=r(23967),f=r(68264),d=l("iterator"),p=!1,g,m,x;[].keys&&(x=[].keys(),"next"in x?(m=s(s(x)),m!==Object.prototype&&(g=m)):p=!0);var P=!a(g)||t(function(){var R={};return g[d].call(R)!==R});P?g={}:f&&(g=e(g)),o(g[d])||i(g,d,function(){return this}),n.exports={IteratorPrototype:g,BUGGY_SAFARI_ITERATORS:p}},90857:n=>{n.exports={}},2312:(n,c,r)=>{var t=r(65346);n.exports=function(o){return t(o.length)}},49578:(n,c,r)=>{var t=r(29027),o=r(59769),a=r(37235),e=r(85831),s=r(76986),i=r(34157).CONFIGURABLE,l=r(96441),f=r(92569),d=f.enforce,p=f.get,g=String,m=Object.defineProperty,x=t("".slice),P=t("".replace),R=t([].join),L=s&&!o(function(){return m(function(){},"length",{value:8}).length!==8}),C=String(String).split("String"),D=n.exports=function(O,T,U){x(g(T),0,7)==="Symbol("&&(T="["+P(g(T),/^Symbol\(([^)]*)\)/,"$1")+"]"),U&&U.getter&&(T="get "+T),U&&U.setter&&(T="set "+T),(!e(O,"name")||i&&O.name!==T)&&(s?m(O,"name",{value:T,configurable:!0}):O.name=T),L&&U&&e(U,"arity")&&O.length!==U.arity&&m(O,"length",{value:U.arity});try{U&&e(U,"constructor")&&U.constructor?s&&m(O,"prototype",{writable:!1}):O.prototype&&(O.prototype=void 0)}catch(rr){}var $=d(O);return e($,"source")||($.source=R(C,typeof T=="string"?T:"")),O};Function.prototype.toString=D(function(){return a(this)&&p(this).source||l(this)},"toString")},79498:n=>{var c=Math.ceil,r=Math.floor;n.exports=Math.trunc||function(o){var a=+o;return(a>0?r:c)(a)}},55993:(n,c,r)=>{"use strict";var t=r(76986),o=r(29027),a=r(71970),e=r(59769),s=r(75070),i=r(54207),l=r(53749),f=r(72296),d=r(60144),p=Object.assign,g=Object.defineProperty,m=o([].concat);n.exports=!p||e(function(){if(t&&p({b:1},p(g({},"a",{enumerable:!0,get:function(){g(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var x={},P={},R=Symbol(),L="abcdefghijklmnopqrst";return x[R]=7,L.split("").forEach(function(C){P[C]=C}),p({},x)[R]!=7||s(p({},P)).join("")!=L})?function(P,R){for(var L=f(P),C=arguments.length,D=1,O=i.f,T=l.f;C>D;)for(var U=d(arguments[D++]),$=O?m(s(U),O(U)):s(U),rr=$.length,nr=0,K;rr>nr;)K=$[nr++],(!t||a(T,U,K))&&(L[K]=U[K]);return L}:p},36101:(n,c,r)=>{var t=r(86347),o=r(2041),a=r(68671),e=r(33804),s=r(18673),i=r(30030),l=r(41506),f=">",d="<",p="prototype",g="script",m=l("IE_PROTO"),x=function(){},P=function(O){return d+g+f+O+d+"/"+g+f},R=function(O){O.write(P("")),O.close();var T=O.parentWindow.Object;return O=null,T},L=function(){var O=i("iframe"),T="java"+g+":",U;return O.style.display="none",s.appendChild(O),O.src=String(T),U=O.contentWindow.document,U.open(),U.write(P("document.F=Object")),U.close(),U.F},C,D=function(){try{C=new ActiveXObject("htmlfile")}catch(T){}D=typeof document!="undefined"?document.domain&&C?R(C):L():R(C);for(var O=a.length;O--;)delete D[p][a[O]];return D()};e[m]=!0,n.exports=Object.create||function(T,U){var $;return T!==null?(x[p]=t(T),$=new x,x[p]=null,$[m]=T):$=D(),U===void 0?$:o.f($,U)}},2041:(n,c,r)=>{var t=r(76986),o=r(30774),a=r(99051),e=r(86347),s=r(11884),i=r(75070);c.f=t&&!o?Object.defineProperties:function(f,d){e(f);for(var p=s(d),g=i(d),m=g.length,x=0,P;m>x;)a.f(f,P=g[x++],p[P]);return f}},99051:(n,c,r)=>{var t=r(76986),o=r(74690),a=r(30774),e=r(86347),s=r(47568),i=TypeError,l=Object.defineProperty,f=Object.getOwnPropertyDescriptor,d="enumerable",p="configurable",g="writable";c.f=t?a?function(x,P,R){if(e(x),P=s(P),e(R),typeof x=="function"&&P==="prototype"&&"value"in R&&g in R&&!R[g]){var L=f(x,P);L&&L[g]&&(x[P]=R.value,R={configurable:p in R?R[p]:L[p],enumerable:d in R?R[d]:L[d],writable:!1})}return l(x,P,R)}:l:function(x,P,R){if(e(x),P=s(P),e(R),o)try{return l(x,P,R)}catch(L){}if("get"in R||"set"in R)throw i("Accessors not supported");return"value"in R&&(x[P]=R.value),x}},80381:(n,c,r)=>{var t=r(76986),o=r(71970),a=r(53749),e=r(99829),s=r(11884),i=r(47568),l=r(85831),f=r(74690),d=Object.getOwnPropertyDescriptor;c.f=t?d:function(g,m){if(g=s(g),m=i(m),f)try{return d(g,m)}catch(x){}if(l(g,m))return e(!o(a.f,g,m),g[m])}},6099:(n,c,r)=>{var t=r(86360),o=r(68671),a=o.concat("length","prototype");c.f=Object.getOwnPropertyNames||function(s){return t(s,a)}},54207:(n,c)=>{c.f=Object.getOwnPropertySymbols},74972:(n,c,r)=>{var t=r(85831),o=r(37235),a=r(72296),e=r(41506),s=r(40328),i=e("IE_PROTO"),l=Object,f=l.prototype;n.exports=s?l.getPrototypeOf:function(d){var p=a(d);if(t(p,i))return p[i];var g=p.constructor;return o(g)&&p instanceof g?g.prototype:p instanceof l?f:null}},56471:(n,c,r)=>{var t=r(29027);n.exports=t({}.isPrototypeOf)},86360:(n,c,r)=>{var t=r(29027),o=r(85831),a=r(11884),e=r(10752).indexOf,s=r(33804),i=t([].push);n.exports=function(l,f){var d=a(l),p=0,g=[],m;for(m in d)!o(s,m)&&o(d,m)&&i(g,m);for(;f.length>p;)o(d,m=f[p++])&&(~e(g,m)||i(g,m));return g}},75070:(n,c,r)=>{var t=r(86360),o=r(68671);n.exports=Object.keys||function(e){return t(e,o)}},53749:(n,c)=>{"use strict";var r={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,o=t&&!r.call({1:2},1);c.f=o?function(e){var s=t(this,e);return!!s&&s.enumerable}:r},90331:(n,c,r)=>{var t=r(12352),o=r(86347),a=r(87725);n.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,s={},i;try{i=t(Object.prototype,"__proto__","set"),i(s,[]),e=s instanceof Array}catch(l){}return function(f,d){return o(f),a(d),e?i(f,d):f.__proto__=d,f}}():void 0)},97963:(n,c,r)=>{var t=r(71970),o=r(37235),a=r(82951),e=TypeError;n.exports=function(s,i){var l,f;if(i==="string"&&o(l=s.toString)&&!a(f=t(l,s))||o(l=s.valueOf)&&!a(f=t(l,s))||i!=="string"&&o(l=s.toString)&&!a(f=t(l,s)))return f;throw e("Can't convert object to primitive value")}},42231:(n,c,r)=>{var t=r(49023),o=r(29027),a=r(6099),e=r(54207),s=r(86347),i=o([].concat);n.exports=t("Reflect","ownKeys")||function(f){var d=a.f(s(f)),p=e.f;return p?i(d,p(f)):d}},41537:(n,c,r)=>{var t=r(80376);n.exports=t},88224:(n,c,r)=>{var t=r(51246),o=TypeError;n.exports=function(a){if(t(a))throw o("Can't call method on "+a);return a}},65746:(n,c,r)=>{var t=r(99051).f,o=r(85831),a=r(23967),e=a("toStringTag");n.exports=function(s,i,l){s&&!l&&(s=s.prototype),s&&!o(s,e)&&t(s,e,{configurable:!0,value:i})}},41506:(n,c,r)=>{var t=r(54377),o=r(73380),a=t("keys");n.exports=function(e){return a[e]||(a[e]=o(e))}},58797:(n,c,r)=>{var t=r(80376),o=r(8108),a="__core-js_shared__",e=t[a]||o(a,{});n.exports=e},54377:(n,c,r)=>{var t=r(68264),o=r(58797);(n.exports=function(a,e){return o[a]||(o[a]=e!==void 0?e:{})})("versions",[]).push({version:"3.29.1",mode:t?"pure":"global",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"})},80273:(n,c,r)=>{var t=r(29027),o=r(11835),a=r(72100),e=r(88224),s=t("".charAt),i=t("".charCodeAt),l=t("".slice),f=function(d){return function(p,g){var m=a(e(p)),x=o(g),P=m.length,R,L;return x<0||x>=P?d?"":void 0:(R=i(m,x),R<55296||R>56319||x+1===P||(L=i(m,x+1))<56320||L>57343?d?s(m,x):R:d?l(m,x,x+2):(R-55296<<10)+(L-56320)+65536)}};n.exports={codeAt:f(!1),charAt:f(!0)}},70603:(n,c,r)=>{var t=r(29027),o=2147483647,a=36,e=1,s=26,i=38,l=700,f=72,d=128,p="-",g=/[^\0-\u007E]/,m=/[.\u3002\uFF0E\uFF61]/g,x="Overflow: input needs wider integers to process",P=a-e,R=RangeError,L=t(m.exec),C=Math.floor,D=String.fromCharCode,O=t("".charCodeAt),T=t([].join),U=t([].push),$=t("".replace),rr=t("".split),nr=t("".toLowerCase),K=function(N){for(var H=[],G=0,F=N.length;G<F;){var Y=O(N,G++);if(Y>=55296&&Y<=56319&&G<F){var W=O(N,G++);(W&64512)==56320?U(H,((Y&1023)<<10)+(W&1023)+65536):(U(H,Y),G--)}else U(H,Y)}return H},k=function(N){return N+22+75*(N<26)},gr=function(N,H,G){var F=0;for(N=G?C(N/l):N>>1,N+=C(N/H);N>P*s>>1;)N=C(N/P),F+=a;return C(F+(P+1)*N/(N+i))},ir=function(N){var H=[];N=K(N);var G=N.length,F=d,Y=0,W=f,z,V;for(z=0;z<N.length;z++)V=N[z],V<128&&U(H,D(V));var ur=H.length,X=ur;for(ur&&U(H,p);X<G;){var Q=o;for(z=0;z<N.length;z++)V=N[z],V>=F&&V<Q&&(Q=V);var ar=X+1;if(Q-F>C((o-Y)/ar))throw R(x);for(Y+=(Q-F)*ar,F=Q,z=0;z<N.length;z++){if(V=N[z],V<F&&++Y>o)throw R(x);if(V==F){for(var tr=Y,cr=a;;){var hr=cr<=W?e:cr>=W+s?s:cr-W;if(tr<hr)break;var lr=tr-hr,Lr=a-hr;U(H,D(k(hr+lr%Lr))),tr=C(lr/Lr),cr+=a}U(H,D(k(tr))),W=gr(Y,ar,X==ur),Y=0,X++}}Y++,F++}return T(H,"")};n.exports=function(N){var H=[],G=rr($(nr(N),m,"."),"."),F,Y;for(F=0;F<G.length;F++)Y=G[F],U(H,L(g,Y)?"xn--"+ir(Y):Y);return T(H,".")}},52727:(n,c,r)=>{var t=r(81150),o=r(59769);n.exports=!!Object.getOwnPropertySymbols&&!o(function(){var a=Symbol();return!String(a)||!(Object(a)instanceof Symbol)||!Symbol.sham&&t&&t<41})},83260:(n,c,r)=>{var t=r(11835),o=Math.max,a=Math.min;n.exports=function(e,s){var i=t(e);return i<0?o(i+s,0):a(i,s)}},11884:(n,c,r)=>{var t=r(60144),o=r(88224);n.exports=function(a){return t(o(a))}},11835:(n,c,r)=>{var t=r(79498);n.exports=function(o){var a=+o;return a!==a||a===0?0:t(a)}},65346:(n,c,r)=>{var t=r(11835),o=Math.min;n.exports=function(a){return a>0?o(t(a),9007199254740991):0}},72296:(n,c,r)=>{var t=r(88224),o=Object;n.exports=function(a){return o(t(a))}},30799:(n,c,r)=>{var t=r(71970),o=r(82951),a=r(47082),e=r(63953),s=r(97963),i=r(23967),l=TypeError,f=i("toPrimitive");n.exports=function(d,p){if(!o(d)||a(d))return d;var g=e(d,f),m;if(g){if(p===void 0&&(p="default"),m=t(g,d,p),!o(m)||a(m))return m;throw l("Can't convert object to primitive value")}return p===void 0&&(p="number"),s(d,p)}},47568:(n,c,r)=>{var t=r(30799),o=r(47082);n.exports=function(a){var e=t(a,"string");return o(e)?e:e+""}},65727:(n,c,r)=>{var t=r(23967),o=t("toStringTag"),a={};a[o]="z",n.exports=String(a)==="[object z]"},72100:(n,c,r)=>{var t=r(95032),o=String;n.exports=function(a){if(t(a)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return o(a)}},22734:n=>{var c=String;n.exports=function(r){try{return c(r)}catch(t){return"Object"}}},73380:(n,c,r)=>{var t=r(29027),o=0,a=Math.random(),e=t(1 .toString);n.exports=function(s){return"Symbol("+(s===void 0?"":s)+")_"+e(++o+a,36)}},9269:(n,c,r)=>{var t=r(59769),o=r(23967),a=r(76986),e=r(68264),s=o("iterator");n.exports=!t(function(){var i=new URL("b?a=1&b=2&c=3","http://a"),l=i.searchParams,f="";return i.pathname="c%20d",l.forEach(function(d,p){l.delete("b"),f+=p+d}),e&&!i.toJSON||!l.size&&(e||!a)||!l.sort||i.href!=="http://a/c%20d?a=1&c=3"||l.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!l[s]||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"||f!=="a1c3"||new URL("http://x",void 0).host!=="x"})},19366:(n,c,r)=>{var t=r(52727);n.exports=t&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},30774:(n,c,r)=>{var t=r(76986),o=r(59769);n.exports=t&&o(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},31238:n=>{var c=TypeError;n.exports=function(r,t){if(r<t)throw c("Not enough arguments");return r}},63545:(n,c,r)=>{var t=r(80376),o=r(37235),a=t.WeakMap;n.exports=o(a)&&/native code/.test(String(a))},23967:(n,c,r)=>{var t=r(80376),o=r(54377),a=r(85831),e=r(73380),s=r(52727),i=r(19366),l=t.Symbol,f=o("wks"),d=i?l.for||l:l&&l.withoutSetter||e;n.exports=function(p){return a(f,p)||(f[p]=s&&a(l,p)?l[p]:d("Symbol."+p)),f[p]}},46861:(n,c,r)=>{"use strict";var t=r(11884),o=r(84102),a=r(90857),e=r(92569),s=r(99051).f,i=r(48710),l=r(9401),f=r(68264),d=r(76986),p="Array Iterator",g=e.set,m=e.getterFor(p);n.exports=i(Array,"Array",function(P,R){g(this,{type:p,target:t(P),index:0,kind:R})},function(){var P=m(this),R=P.target,L=P.kind,C=P.index++;return!R||C>=R.length?(P.target=void 0,l(void 0,!0)):L=="keys"?l(C,!1):L=="values"?l(R[C],!1):l([C,R[C]],!1)},"values");var x=a.Arguments=a.Array;if(o("keys"),o("values"),o("entries"),!f&&d&&x.name!=="values")try{s(x,"name",{value:"values"})}catch(P){}},19711:(n,c,r)=>{"use strict";var t=r(80273).charAt,o=r(72100),a=r(92569),e=r(48710),s=r(9401),i="String Iterator",l=a.set,f=a.getterFor(i);e(String,"String",function(d){l(this,{type:i,string:o(d),index:0})},function(){var p=f(this),g=p.string,m=p.index,x;return m>=g.length?s(void 0,!0):(x=t(g,m),p.index+=x.length,s(x,!1))})},16321:(n,c,r)=>{"use strict";r(46861);var t=r(59401),o=r(80376),a=r(71970),e=r(29027),s=r(76986),i=r(9269),l=r(62072),f=r(16317),d=r(64266),p=r(65746),g=r(21811),m=r(92569),x=r(61507),P=r(37235),R=r(85831),L=r(58495),C=r(95032),D=r(86347),O=r(82951),T=r(72100),U=r(36101),$=r(99829),rr=r(53401),nr=r(30205),K=r(31238),k=r(23967),gr=r(5515),ir=k("iterator"),N="URLSearchParams",H=N+"Iterator",G=m.set,F=m.getterFor(N),Y=m.getterFor(H),W=Object.getOwnPropertyDescriptor,z=function(E){if(!s)return o[E];var b=W(o,E);return b&&b.value},V=z("fetch"),ur=z("Request"),X=z("Headers"),Q=ur&&ur.prototype,ar=X&&X.prototype,tr=o.RegExp,cr=o.TypeError,hr=o.decodeURIComponent,lr=o.encodeURIComponent,Lr=e("".charAt),Br=e([].join),Ir=e([].push),Cr=e("".replace),Jr=e([].shift),Hr=e([].splice),Gr=e("".split),$r=e("".slice),Xr=/\+/g,zr=Array(4),Qr=function(E){return zr[E-1]||(zr[E-1]=tr("((?:%[\\da-f]{2}){"+E+"})","gi"))},Zr=function(E){try{return hr(E)}catch(b){return E}},Kr=function(E){var b=Cr(E,Xr," "),j=4;try{return hr(b)}catch(M){for(;j;)b=Cr(b,Qr(j--),Zr);return b}},sr=/[!'()~]|%20/g,kr={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},qr=function(E){return kr[E]},Yr=function(E){return Cr(lr(E),sr,qr)},Or=g(function(b,j){G(this,{type:H,iterator:rr(F(b).entries),kind:j})},"Iterator",function(){var b=Y(this),j=b.kind,M=b.iterator.next(),B=M.value;return M.done||(M.value=j==="keys"?B.key:j==="values"?B.value:[B.key,B.value]),M},!0),Ur=function(E){this.entries=[],this.url=null,E!==void 0&&(O(E)?this.parseObject(E):this.parseQuery(typeof E=="string"?Lr(E,0)==="?"?$r(E,1):E:T(E)))};Ur.prototype={type:N,bindURL:function(E){this.url=E,this.update()},parseObject:function(E){var b=nr(E),j,M,B,J,mr,Ar,pr;if(b)for(j=rr(E,b),M=j.next;!(B=a(M,j)).done;){if(J=rr(D(B.value)),mr=J.next,(Ar=a(mr,J)).done||(pr=a(mr,J)).done||!a(mr,J).done)throw cr("Expected sequence with length 2");Ir(this.entries,{key:T(Ar.value),value:T(pr.value)})}else for(var Sr in E)R(E,Sr)&&Ir(this.entries,{key:Sr,value:T(E[Sr])})},parseQuery:function(E){if(E)for(var b=Gr(E,"&"),j=0,M,B;j<b.length;)M=b[j++],M.length&&(B=Gr(M,"="),Ir(this.entries,{key:Kr(Jr(B)),value:Kr(Br(B,"="))}))},serialize:function(){for(var E=this.entries,b=[],j=0,M;j<E.length;)M=E[j++],Ir(b,Yr(M.key)+"="+Yr(M.value));return Br(b,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var br=function(){x(this,Pr);var b=arguments.length>0?arguments[0]:void 0,j=G(this,new Ur(b));s||(this.length=j.entries.length)},Pr=br.prototype;if(d(Pr,{append:function(b,j){K(arguments.length,2);var M=F(this);Ir(M.entries,{key:T(b),value:T(j)}),s||this.length++,M.updateURL()},delete:function(E){K(arguments.length,1);for(var b=F(this),j=b.entries,M=T(E),B=0;B<j.length;)j[B].key===M?Hr(j,B,1):B++;s||(this.length=j.length),b.updateURL()},get:function(b){K(arguments.length,1);for(var j=F(this).entries,M=T(b),B=0;B<j.length;B++)if(j[B].key===M)return j[B].value;return null},getAll:function(b){K(arguments.length,1);for(var j=F(this).entries,M=T(b),B=[],J=0;J<j.length;J++)j[J].key===M&&Ir(B,j[J].value);return B},has:function(b){K(arguments.length,1);for(var j=F(this).entries,M=T(b),B=0;B<j.length;)if(j[B++].key===M)return!0;return!1},set:function(b,j){K(arguments.length,1);for(var M=F(this),B=M.entries,J=!1,mr=T(b),Ar=T(j),pr=0,Sr;pr<B.length;pr++)Sr=B[pr],Sr.key===mr&&(J?Hr(B,pr--,1):(J=!0,Sr.value=Ar));J||Ir(B,{key:mr,value:Ar}),s||(this.length=B.length),M.updateURL()},sort:function(){var b=F(this);gr(b.entries,function(j,M){return j.key>M.key?1:-1}),b.updateURL()},forEach:function(b){for(var j=F(this).entries,M=L(b,arguments.length>1?arguments[1]:void 0),B=0,J;B<j.length;)J=j[B++],M(J.value,J.key,this)},keys:function(){return new Or(this,"keys")},values:function(){return new Or(this,"values")},entries:function(){return new Or(this,"entries")}},{enumerable:!0}),l(Pr,ir,Pr.entries,{name:"entries"}),l(Pr,"toString",function(){return F(this).serialize()},{enumerable:!0}),s&&f(Pr,"size",{get:function(){return F(this).entries.length},configurable:!0,enumerable:!0}),p(br,N),t({global:!0,constructor:!0,forced:!i},{URLSearchParams:br}),!i&&P(X)){var Mr=e(ar.has),yr=e(ar.set),jr=function(E){if(O(E)){var b=E.body,j;if(C(b)===N)return j=E.headers?new X(E.headers):new X,Mr(j,"content-type")||yr(j,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),U(E,{body:$(0,T(b)),headers:$(0,j)})}return E};if(P(V)&&t({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(b){return V(b,arguments.length>1?jr(arguments[1]):{})}}),P(ur)){var Rr=function(b){return x(this,Q),new ur(b,arguments.length>1?jr(arguments[1]):{})};Q.constructor=Rr,Rr.prototype=Q,t({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Rr})}}n.exports={URLSearchParams:br,getState:F}},86337:(n,c,r)=>{r(16321)},97138:(n,c,r)=>{"use strict";var t=r(76986),o=r(29027),a=r(16317),e=URLSearchParams.prototype,s=o(e.forEach);t&&!("size"in e)&&a(e,"size",{get:function(){var l=0;return s(this,function(){l++}),l},configurable:!0,enumerable:!0})},6217:(n,c,r)=>{"use strict";r(19711);var t=r(59401),o=r(76986),a=r(9269),e=r(80376),s=r(58495),i=r(29027),l=r(62072),f=r(16317),d=r(61507),p=r(85831),g=r(55993),m=r(65335),x=r(17401),P=r(80273).codeAt,R=r(70603),L=r(72100),C=r(65746),D=r(31238),O=r(16321),T=r(92569),U=T.set,$=T.getterFor("URL"),rr=O.URLSearchParams,nr=O.getState,K=e.URL,k=e.TypeError,gr=e.parseInt,ir=Math.floor,N=Math.pow,H=i("".charAt),G=i(/./.exec),F=i([].join),Y=i(1 .toString),W=i([].pop),z=i([].push),V=i("".replace),ur=i([].shift),X=i("".split),Q=i("".slice),ar=i("".toLowerCase),tr=i([].unshift),cr="Invalid authority",hr="Invalid scheme",lr="Invalid host",Lr="Invalid port",Br=/[a-z]/i,Ir=/[\d+-.a-z]/i,Cr=/\d/,Jr=/^0x/i,Hr=/^[0-7]+$/,Gr=/^\d+$/,$r=/^[\da-f]+$/i,Xr=/[\0\t\n\r #%/:<>?@[\\\]^|]/,zr=/[\0\t\n\r #/:<>?@[\\\]^|]/,Qr=/^[\u0000-\u0020]+/,Zr=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,Kr=/[\t\n\r]/g,sr,kr=function(v){var I=X(v,"."),h,u,y,w,A,Z,q;if(I.length&&I[I.length-1]==""&&I.length--,h=I.length,h>4)return v;for(u=[],y=0;y<h;y++){if(w=I[y],w=="")return v;if(A=10,w.length>1&&H(w,0)=="0"&&(A=G(Jr,w)?16:8,w=Q(w,A==8?1:2)),w==="")Z=0;else{if(!G(A==10?Gr:A==8?Hr:$r,w))return v;Z=gr(w,A)}z(u,Z)}for(y=0;y<h;y++)if(Z=u[y],y==h-1){if(Z>=N(256,5-h))return null}else if(Z>255)return null;for(q=W(u),y=0;y<u.length;y++)q+=u[y]*N(256,3-y);return q},qr=function(v){var I=[0,0,0,0,0,0,0,0],h=0,u=null,y=0,w,A,Z,q,er,fr,S,_=function(){return H(v,y)};if(_()==":"){if(H(v,1)!=":")return;y+=2,h++,u=h}for(;_();){if(h==8)return;if(_()==":"){if(u!==null)return;y++,h++,u=h;continue}for(w=A=0;A<4&&G($r,_());)w=w*16+gr(_(),16),y++,A++;if(_()=="."){if(A==0||(y-=A,h>6))return;for(Z=0;_();){if(q=null,Z>0)if(_()=="."&&Z<4)y++;else return;if(!G(Cr,_()))return;for(;G(Cr,_());){if(er=gr(_(),10),q===null)q=er;else{if(q==0)return;q=q*10+er}if(q>255)return;y++}I[h]=I[h]*256+q,Z++,(Z==2||Z==4)&&h++}if(Z!=4)return;break}else if(_()==":"){if(y++,!_())return}else if(_())return;I[h++]=w}if(u!==null)for(fr=h-u,h=7;h!=0&&fr>0;)S=I[h],I[h--]=I[u+fr-1],I[u+--fr]=S;else if(h!=8)return;return I},Yr=function(v){for(var I=null,h=1,u=null,y=0,w=0;w<8;w++)v[w]!==0?(y>h&&(I=u,h=y),u=null,y=0):(u===null&&(u=w),++y);return y>h&&(I=u,h=y),I},Or=function(v){var I,h,u,y;if(typeof v=="number"){for(I=[],h=0;h<4;h++)tr(I,v%256),v=ir(v/256);return F(I,".")}else if(typeof v=="object"){for(I="",u=Yr(v),h=0;h<8;h++)y&&v[h]===0||(y&&(y=!1),u===h?(I+=h?":":"::",y=!0):(I+=Y(v[h],16),h<7&&(I+=":")));return"["+I+"]"}return v},Ur={},br=g({},Ur,{" ":1,'"':1,"<":1,">":1,"`":1}),Pr=g({},br,{"#":1,"?":1,"{":1,"}":1}),Mr=g({},Pr,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),yr=function(v,I){var h=P(v,0);return h>32&&h<127&&!p(I,v)?v:encodeURIComponent(v)},jr={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Rr=function(v,I){var h;return v.length==2&&G(Br,H(v,0))&&((h=H(v,1))==":"||!I&&h=="|")},E=function(v){var I;return v.length>1&&Rr(Q(v,0,2))&&(v.length==2||(I=H(v,2))==="/"||I==="\\"||I==="?"||I==="#")},b=function(v){return v==="."||ar(v)==="%2e"},j=function(v){return v=ar(v),v===".."||v==="%2e."||v===".%2e"||v==="%2e%2e"},M={},B={},J={},mr={},Ar={},pr={},Sr={},lt={},Vr={},Wr={},_r={},rt={},tt={},et={},vt={},nt={},Nr={},xr={},ft={},wr={},Tr={},at=function(v,I,h){var u=L(v),y,w,A;if(I){if(w=this.parse(u),w)throw k(w);this.searchParams=null}else{if(h!==void 0&&(y=new at(h,!0)),w=this.parse(u,null,y),w)throw k(w);A=nr(new rr),A.bindURL(this),this.searchParams=A}};at.prototype={type:"URL",parse:function(v,I,h){var u=this,y=I||M,w=0,A="",Z=!1,q=!1,er=!1,fr,S,_,Er;for(v=L(v),I||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,v=V(v,Qr,""),v=V(v,Zr,"$1")),v=V(v,Kr,""),fr=m(v);w<=fr.length;){switch(S=fr[w],y){case M:if(S&&G(Br,S))A+=ar(S),y=B;else{if(I)return hr;y=J;continue}break;case B:if(S&&(G(Ir,S)||S=="+"||S=="-"||S=="."))A+=ar(S);else if(S==":"){if(I&&(u.isSpecial()!=p(jr,A)||A=="file"&&(u.includesCredentials()||u.port!==null)||u.scheme=="file"&&!u.host))return;if(u.scheme=A,I){u.isSpecial()&&jr[u.scheme]==u.port&&(u.port=null);return}A="",u.scheme=="file"?y=et:u.isSpecial()&&h&&h.scheme==u.scheme?y=mr:u.isSpecial()?y=lt:fr[w+1]=="/"?(y=Ar,w++):(u.cannotBeABaseURL=!0,z(u.path,""),y=ft)}else{if(I)return hr;A="",y=J,w=0;continue}break;case J:if(!h||h.cannotBeABaseURL&&S!="#")return hr;if(h.cannotBeABaseURL&&S=="#"){u.scheme=h.scheme,u.path=x(h.path),u.query=h.query,u.fragment="",u.cannotBeABaseURL=!0,y=Tr;break}y=h.scheme=="file"?et:pr;continue;case mr:if(S=="/"&&fr[w+1]=="/")y=Vr,w++;else{y=pr;continue}break;case Ar:if(S=="/"){y=Wr;break}else{y=xr;continue}case pr:if(u.scheme=h.scheme,S==sr)u.username=h.username,u.password=h.password,u.host=h.host,u.port=h.port,u.path=x(h.path),u.query=h.query;else if(S=="/"||S=="\\"&&u.isSpecial())y=Sr;else if(S=="?")u.username=h.username,u.password=h.password,u.host=h.host,u.port=h.port,u.path=x(h.path),u.query="",y=wr;else if(S=="#")u.username=h.username,u.password=h.password,u.host=h.host,u.port=h.port,u.path=x(h.path),u.query=h.query,u.fragment="",y=Tr;else{u.username=h.username,u.password=h.password,u.host=h.host,u.port=h.port,u.path=x(h.path),u.path.length--,y=xr;continue}break;case Sr:if(u.isSpecial()&&(S=="/"||S=="\\"))y=Vr;else if(S=="/")y=Wr;else{u.username=h.username,u.password=h.password,u.host=h.host,u.port=h.port,y=xr;continue}break;case lt:if(y=Vr,S!="/"||H(A,w+1)!="/")continue;w++;break;case Vr:if(S!="/"&&S!="\\"){y=Wr;continue}break;case Wr:if(S=="@"){Z&&(A="%40"+A),Z=!0,_=m(A);for(var ot=0;ot<_.length;ot++){var pt=_[ot];if(pt==":"&&!er){er=!0;continue}var dt=yr(pt,Mr);er?u.password+=dt:u.username+=dt}A=""}else if(S==sr||S=="/"||S=="?"||S=="#"||S=="\\"&&u.isSpecial()){if(Z&&A=="")return cr;w-=m(A).length+1,A="",y=_r}else A+=S;break;case _r:case rt:if(I&&u.scheme=="file"){y=nt;continue}else if(S==":"&&!q){if(A=="")return lr;if(Er=u.parseHost(A),Er)return Er;if(A="",y=tt,I==rt)return}else if(S==sr||S=="/"||S=="?"||S=="#"||S=="\\"&&u.isSpecial()){if(u.isSpecial()&&A=="")return lr;if(I&&A==""&&(u.includesCredentials()||u.port!==null))return;if(Er=u.parseHost(A),Er)return Er;if(A="",y=Nr,I)return;continue}else S=="["?q=!0:S=="]"&&(q=!1),A+=S;break;case tt:if(G(Cr,S))A+=S;else if(S==sr||S=="/"||S=="?"||S=="#"||S=="\\"&&u.isSpecial()||I){if(A!=""){var st=gr(A,10);if(st>65535)return Lr;u.port=u.isSpecial()&&st===jr[u.scheme]?null:st,A=""}if(I)return;y=Nr;continue}else return Lr;break;case et:if(u.scheme="file",S=="/"||S=="\\")y=vt;else if(h&&h.scheme=="file")if(S==sr)u.host=h.host,u.path=x(h.path),u.query=h.query;else if(S=="?")u.host=h.host,u.path=x(h.path),u.query="",y=wr;else if(S=="#")u.host=h.host,u.path=x(h.path),u.query=h.query,u.fragment="",y=Tr;else{E(F(x(fr,w),""))||(u.host=h.host,u.path=x(h.path),u.shortenPath()),y=xr;continue}else{y=xr;continue}break;case vt:if(S=="/"||S=="\\"){y=nt;break}h&&h.scheme=="file"&&!E(F(x(fr,w),""))&&(Rr(h.path[0],!0)?z(u.path,h.path[0]):u.host=h.host),y=xr;continue;case nt:if(S==sr||S=="/"||S=="\\"||S=="?"||S=="#"){if(!I&&Rr(A))y=xr;else if(A==""){if(u.host="",I)return;y=Nr}else{if(Er=u.parseHost(A),Er)return Er;if(u.host=="localhost"&&(u.host=""),I)return;A="",y=Nr}continue}else A+=S;break;case Nr:if(u.isSpecial()){if(y=xr,S!="/"&&S!="\\")continue}else if(!I&&S=="?")u.query="",y=wr;else if(!I&&S=="#")u.fragment="",y=Tr;else if(S!=sr&&(y=xr,S!="/"))continue;break;case xr:if(S==sr||S=="/"||S=="\\"&&u.isSpecial()||!I&&(S=="?"||S=="#")){if(j(A)?(u.shortenPath(),S!="/"&&!(S=="\\"&&u.isSpecial())&&z(u.path,"")):b(A)?S!="/"&&!(S=="\\"&&u.isSpecial())&&z(u.path,""):(u.scheme=="file"&&!u.path.length&&Rr(A)&&(u.host&&(u.host=""),A=H(A,0)+":"),z(u.path,A)),A="",u.scheme=="file"&&(S==sr||S=="?"||S=="#"))for(;u.path.length>1&&u.path[0]==="";)ur(u.path);S=="?"?(u.query="",y=wr):S=="#"&&(u.fragment="",y=Tr)}else A+=yr(S,Pr);break;case ft:S=="?"?(u.query="",y=wr):S=="#"?(u.fragment="",y=Tr):S!=sr&&(u.path[0]+=yr(S,Ur));break;case wr:!I&&S=="#"?(u.fragment="",y=Tr):S!=sr&&(S=="'"&&u.isSpecial()?u.query+="%27":S=="#"?u.query+="%23":u.query+=yr(S,Ur));break;case Tr:S!=sr&&(u.fragment+=yr(S,br));break}w++}},parseHost:function(v){var I,h,u;if(H(v,0)=="["){if(H(v,v.length-1)!="]"||(I=qr(Q(v,1,-1)),!I))return lr;this.host=I}else if(this.isSpecial()){if(v=R(v),G(Xr,v)||(I=kr(v),I===null))return lr;this.host=I}else{if(G(zr,v))return lr;for(I="",h=m(v),u=0;u<h.length;u++)I+=yr(h[u],Ur);this.host=I}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||this.scheme=="file"},includesCredentials:function(){return this.username!=""||this.password!=""},isSpecial:function(){return p(jr,this.scheme)},shortenPath:function(){var v=this.path,I=v.length;I&&(this.scheme!="file"||I!=1||!Rr(v[0],!0))&&v.length--},serialize:function(){var v=this,I=v.scheme,h=v.username,u=v.password,y=v.host,w=v.port,A=v.path,Z=v.query,q=v.fragment,er=I+":";return y!==null?(er+="//",v.includesCredentials()&&(er+=h+(u?":"+u:"")+"@"),er+=Or(y),w!==null&&(er+=":"+w)):I=="file"&&(er+="//"),er+=v.cannotBeABaseURL?A[0]:A.length?"/"+F(A,"/"):"",Z!==null&&(er+="?"+Z),q!==null&&(er+="#"+q),er},setHref:function(v){var I=this.parse(v);if(I)throw k(I);this.searchParams.update()},getOrigin:function(){var v=this.scheme,I=this.port;if(v=="blob")try{return new Fr(v.path[0]).origin}catch(h){return"null"}return v=="file"||!this.isSpecial()?"null":v+"://"+Or(this.host)+(I!==null?":"+I:"")},getProtocol:function(){return this.scheme+":"},setProtocol:function(v){this.parse(L(v)+":",M)},getUsername:function(){return this.username},setUsername:function(v){var I=m(L(v));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var h=0;h<I.length;h++)this.username+=yr(I[h],Mr)}},getPassword:function(){return this.password},setPassword:function(v){var I=m(L(v));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var h=0;h<I.length;h++)this.password+=yr(I[h],Mr)}},getHost:function(){var v=this.host,I=this.port;return v===null?"":I===null?Or(v):Or(v)+":"+I},setHost:function(v){this.cannotBeABaseURL||this.parse(v,_r)},getHostname:function(){var v=this.host;return v===null?"":Or(v)},setHostname:function(v){this.cannotBeABaseURL||this.parse(v,rt)},getPort:function(){var v=this.port;return v===null?"":L(v)},setPort:function(v){this.cannotHaveUsernamePasswordPort()||(v=L(v),v==""?this.port=null:this.parse(v,tt))},getPathname:function(){var v=this.path;return this.cannotBeABaseURL?v[0]:v.length?"/"+F(v,"/"):""},setPathname:function(v){this.cannotBeABaseURL||(this.path=[],this.parse(v,Nr))},getSearch:function(){var v=this.query;return v?"?"+v:""},setSearch:function(v){v=L(v),v==""?this.query=null:(H(v,0)=="?"&&(v=Q(v,1)),this.query="",this.parse(v,wr)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var v=this.fragment;return v?"#"+v:""},setHash:function(v){if(v=L(v),v==""){this.fragment=null;return}H(v,0)=="#"&&(v=Q(v,1)),this.fragment="",this.parse(v,Tr)},update:function(){this.query=this.searchParams.serialize()||null}};var Fr=function(I){var h=d(this,or),u=D(arguments.length,1)>1?arguments[1]:void 0,y=U(h,new at(I,!1,u));o||(h.href=y.serialize(),h.origin=y.getOrigin(),h.protocol=y.getProtocol(),h.username=y.getUsername(),h.password=y.getPassword(),h.host=y.getHost(),h.hostname=y.getHostname(),h.port=y.getPort(),h.pathname=y.getPathname(),h.search=y.getSearch(),h.searchParams=y.getSearchParams(),h.hash=y.getHash())},or=Fr.prototype,vr=function(v,I){return{get:function(){return $(this)[v]()},set:I&&function(h){return $(this)[I](h)},configurable:!0,enumerable:!0}};if(o&&(f(or,"href",vr("serialize","setHref")),f(or,"origin",vr("getOrigin")),f(or,"protocol",vr("getProtocol","setProtocol")),f(or,"username",vr("getUsername","setUsername")),f(or,"password",vr("getPassword","setPassword")),f(or,"host",vr("getHost","setHost")),f(or,"hostname",vr("getHostname","setHostname")),f(or,"port",vr("getPort","setPort")),f(or,"pathname",vr("getPathname","setPathname")),f(or,"search",vr("getSearch","setSearch")),f(or,"searchParams",vr("getSearchParams")),f(or,"hash",vr("getHash","setHash"))),l(or,"toJSON",function(){return $(this).serialize()},{enumerable:!0}),l(or,"toString",function(){return $(this).serialize()},{enumerable:!0}),K){var ct=K.createObjectURL,ht=K.revokeObjectURL;ct&&l(Fr,"createObjectURL",s(ct,K)),ht&&l(Fr,"revokeObjectURL",s(ht,K))}C(Fr,"URL"),t({global:!0,constructor:!0,forced:!a,sham:!o},{URL:Fr})},42294:(n,c,r)=>{r(6217)},5721:(n,c,r)=>{"use strict";var t=r(59401),o=r(71970);t({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return o(URL.prototype.toString,this)}})},77303:(n,c,r)=>{r(42294),r(5721),r(86337),r(97138);var t=r(41537);n.exports=t.URL}},Dr={};function dr(n){var c=Dr[n];if(c!==void 0)return c.exports;var r=Dr[n]={exports:{}};return it[n](r,r.exports,dr),r.exports}dr.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(n){if(typeof window=="object")return window}}(),dr.r=n=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})};var ut={};return(()=>{"use strict";dr.r(ut);var n=dr(77303);const c="Something went wrong, please, try again.";function r(e){return e&&e.replace(/=+$/,"")}function t(e,s){return Boolean(e)&&Boolean(s)&&r(e)===r(s)}function o(e){let s;if(/code|token|error/.test(window.location.hash)?s=window.location.hash.substring(1):s=location.search.substring(1),!s)throw console.error("No query string in OAuth 2 redirect URL"),new Error(c);const i=new URLSearchParams(s),l=i.get("access_token"),f=i.get("code"),d=i.get("token_type"),p=i.get("expires_in"),g=i.get("state"),m=i.get("error"),x=i.get("error_description")||c;if(m)throw new Error(x);if(!t(g,e==null?void 0:e.state))throw new Error("Outdated OAuth2 state");if((e==null?void 0:e.flow)==="implicit"){if(!l)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(!d)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.`);e==null||e.successCallback({access_token:l,token_type:d,expires_in:p,auth_code:""})}if((e==null?void 0:e.flow)==="authorizationCode"){if(!f)throw new Error(`Your OAuth2 authentication service provider redirected you without authorization "code".
|
|
@@ -2,7 +2,7 @@ var Bf=Object.defineProperty,Uf=Object.defineProperties;var zf=Object.getOwnProp
|
|
|
2
2
|
* Redocly OpenAPI Docs
|
|
3
3
|
* (c) Copyright 2018 Redocly LLC, all rights reserved.
|
|
4
4
|
* -------------------------------------------------------------
|
|
5
|
-
* Version: "3.0.0-alpha.
|
|
5
|
+
* Version: "3.0.0-alpha.30"
|
|
6
6
|
*/(function(li,Ua){typeof exports=="object"&&typeof module=="object"?module.exports=Ua(require("null")):typeof define=="function"&&define.amd?define(["null"],Ua):typeof exports=="object"?exports.RedoclyOpenAPIDocs=Ua(require("null")):li.RedoclyOpenAPIDocs=Ua(li.null)})(this,hi=>(()=>{var li={92806:(_,i,e)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.CodeGen=i.Name=i.nil=i.stringify=i.str=i._=i.KeywordCxt=void 0;const t=e(29271),o=e(16314),c=e(53245),n=e(60895),l="https://json-schema.org/draft/2020-12/schema";class p extends t.default{constructor(v={}){super(Un(lr({},v),{dynamicRef:!0,next:!0,unevaluated:!0}))}_addVocabularies(){super._addVocabularies(),o.default.forEach(v=>this.addVocabulary(v)),this.opts.discriminator&&this.addKeyword(c.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:v,meta:g}=this.opts;g&&(n.default.call(this,v),this.refs["http://json-schema.org/schema"]=l)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l)?l:void 0)}}_.exports=i=p,Object.defineProperty(i,"__esModule",{value:!0}),i.default=p;var d=e(34863);Object.defineProperty(i,"KeywordCxt",{enumerable:!0,get:function(){return d.KeywordCxt}});var u=e(25865);Object.defineProperty(i,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(i,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(i,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(i,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(i,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(i,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}})},9838:(_,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.regexpCode=i.getEsmExportName=i.getProperty=i.safeStringify=i.stringify=i.strConcat=i.addCodeArg=i.str=i._=i.nil=i._Code=i.Name=i.IDENTIFIER=i._CodeOrName=void 0;class e{}i._CodeOrName=e,i.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class t extends e{constructor(b){if(super(),!i.IDENTIFIER.test(b))throw new Error("CodeGen: name must be a valid identifier");this.str=b}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}i.Name=t;class o extends e{constructor(b){super(),this._items=typeof b=="string"?[b]:b}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const b=this._items[0];return b===""||b==='""'}get str(){var b;return(b=this._str)!==null&&b!==void 0?b:this._str=this._items.reduce((S,E)=>`${S}${E}`,"")}get names(){var b;return(b=this._names)!==null&&b!==void 0?b:this._names=this._items.reduce((S,E)=>(E instanceof t&&(S[E.str]=(S[E.str]||0)+1),S),{})}}i._Code=o,i.nil=new o("");function c(w,...b){const S=[w[0]];let E=0;for(;E<b.length;)p(S,b[E]),S.push(w[++E]);return new o(S)}i._=c;const n=new o("+");function l(w,...b){const S=[P(w[0])];let E=0;for(;E<b.length;)S.push(n),p(S,b[E]),S.push(n,P(w[++E]));return d(S),new o(S)}i.str=l;function p(w,b){b instanceof o?w.push(...b._items):b instanceof t?w.push(b):w.push(v(b))}i.addCodeArg=p;function d(w){let b=1;for(;b<w.length-1;){if(w[b]===n){const S=u(w[b-1],w[b+1]);if(S!==void 0){w.splice(b-1,3,S);continue}w[b++]="+"}b++}}function u(w,b){if(b==='""')return w;if(w==='""')return b;if(typeof w=="string")return b instanceof t||w[w.length-1]!=='"'?void 0:typeof b!="string"?`${w.slice(0,-1)}${b}"`:b[0]==='"'?w.slice(0,-1)+b.slice(1):void 0;if(typeof b=="string"&&b[0]==='"'&&!(w instanceof t))return`"${w}${b.slice(1)}`}function m(w,b){return b.emptyStr()?w:w.emptyStr()?b:l`${w}${b}`}i.strConcat=m;function v(w){return typeof w=="number"||typeof w=="boolean"||w===null?w:P(Array.isArray(w)?w.join(","):w)}function g(w){return new o(P(w))}i.stringify=g;function P(w){return JSON.stringify(w).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}i.safeStringify=P;function C(w){return typeof w=="string"&&i.IDENTIFIER.test(w)?new o(`.${w}`):c`[${w}]`}i.getProperty=C;function f(w){if(typeof w=="string"&&i.IDENTIFIER.test(w))return new o(`${w}`);throw new Error(`CodeGen: invalid export name: ${w}, use explicit $id name mapping`)}i.getEsmExportName=f;function x(w){return new o(w.toString())}i.regexpCode=x},25865:(_,i,e)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.or=i.and=i.not=i.CodeGen=i.operators=i.varKinds=i.ValueScopeName=i.ValueScope=i.Scope=i.Name=i.regexpCode=i.stringify=i.getProperty=i.nil=i.strConcat=i.str=i._=void 0;const t=e(9838),o=e(11949);var c=e(9838);Object.defineProperty(i,"_",{enumerable:!0,get:function(){return c._}}),Object.defineProperty(i,"str",{enumerable:!0,get:function(){return c.str}}),Object.defineProperty(i,"strConcat",{enumerable:!0,get:function(){return c.strConcat}}),Object.defineProperty(i,"nil",{enumerable:!0,get:function(){return c.nil}}),Object.defineProperty(i,"getProperty",{enumerable:!0,get:function(){return c.getProperty}}),Object.defineProperty(i,"stringify",{enumerable:!0,get:function(){return c.stringify}}),Object.defineProperty(i,"regexpCode",{enumerable:!0,get:function(){return c.regexpCode}}),Object.defineProperty(i,"Name",{enumerable:!0,get:function(){return c.Name}});var n=e(11949);Object.defineProperty(i,"Scope",{enumerable:!0,get:function(){return n.Scope}}),Object.defineProperty(i,"ValueScope",{enumerable:!0,get:function(){return n.ValueScope}}),Object.defineProperty(i,"ValueScopeName",{enumerable:!0,get:function(){return n.ValueScopeName}}),Object.defineProperty(i,"varKinds",{enumerable:!0,get:function(){return n.varKinds}}),i.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 l{optimizeNodes(){return this}optimizeNames(F,B){return this}}class p extends l{constructor(F,B,oe){super(),this.varKind=F,this.name=B,this.rhs=oe}render({es5:F,_n:B}){const oe=F?o.varKinds.var:this.varKind,ge=this.rhs===void 0?"":` = ${this.rhs}`;return`${oe} ${this.name}${ge};`+B}optimizeNames(F,B){if(F[this.name.str])return this.rhs&&(this.rhs=Y(this.rhs,F,B)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class d extends l{constructor(F,B,oe){super(),this.lhs=F,this.rhs=B,this.sideEffects=oe}render({_n:F}){return`${this.lhs} = ${this.rhs};`+F}optimizeNames(F,B){if(!(this.lhs instanceof t.Name&&!F[this.lhs.str]&&!this.sideEffects))return this.rhs=Y(this.rhs,F,B),this}get names(){const F=this.lhs instanceof t.Name?{}:lr({},this.lhs.names);return z(F,this.rhs)}}class u extends d{constructor(F,B,oe,ge){super(F,oe,ge),this.op=B}render({_n:F}){return`${this.lhs} ${this.op}= ${this.rhs};`+F}}class m extends l{constructor(F){super(),this.label=F,this.names={}}render({_n:F}){return`${this.label}:`+F}}class v extends l{constructor(F){super(),this.label=F,this.names={}}render({_n:F}){return`break${this.label?` ${this.label}`:""};`+F}}class g extends l{constructor(F){super(),this.error=F}render({_n:F}){return`throw ${this.error};`+F}get names(){return this.error.names}}class P extends l{constructor(F){super(),this.code=F}render({_n:F}){return`${this.code};`+F}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(F,B){return this.code=Y(this.code,F,B),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class C extends l{constructor(F=[]){super(),this.nodes=F}render(F){return this.nodes.reduce((B,oe)=>B+oe.render(F),"")}optimizeNodes(){const{nodes:F}=this;let B=F.length;for(;B--;){const oe=F[B].optimizeNodes();Array.isArray(oe)?F.splice(B,1,...oe):oe?F[B]=oe:F.splice(B,1)}return F.length>0?this:void 0}optimizeNames(F,B){const{nodes:oe}=this;let ge=oe.length;for(;ge--;){const Te=oe[ge];Te.optimizeNames(F,B)||(ue(F,Te.names),oe.splice(ge,1))}return oe.length>0?this:void 0}get names(){return this.nodes.reduce((F,B)=>K(F,B.names),{})}}class f extends C{render(F){return"{"+F._n+super.render(F)+"}"+F._n}}class x extends C{}class w extends f{}w.kind="else";class b extends f{constructor(F,B){super(B),this.condition=F}render(F){let B=`if(${this.condition})`+super.render(F);return this.else&&(B+="else "+this.else.render(F)),B}optimizeNodes(){super.optimizeNodes();const F=this.condition;if(F===!0)return this.nodes;let B=this.else;if(B){const oe=B.optimizeNodes();B=this.else=Array.isArray(oe)?new w(oe):oe}if(B)return F===!1?B instanceof b?B:B.nodes:this.nodes.length?this:new b(_e(F),B instanceof b?[B]:B.nodes);if(!(F===!1||!this.nodes.length))return this}optimizeNames(F,B){var oe;if(this.else=(oe=this.else)===null||oe===void 0?void 0:oe.optimizeNames(F,B),!!(super.optimizeNames(F,B)||this.else))return this.condition=Y(this.condition,F,B),this}get names(){const F=super.names;return z(F,this.condition),this.else&&K(F,this.else.names),F}}b.kind="if";class S extends f{}S.kind="for";class E extends S{constructor(F){super(),this.iteration=F}render(F){return`for(${this.iteration})`+super.render(F)}optimizeNames(F,B){if(super.optimizeNames(F,B))return this.iteration=Y(this.iteration,F,B),this}get names(){return K(super.names,this.iteration.names)}}class R extends S{constructor(F,B,oe,ge){super(),this.varKind=F,this.name=B,this.from=oe,this.to=ge}render(F){const B=F.es5?o.varKinds.var:this.varKind,{name:oe,from:ge,to:Te}=this;return`for(${B} ${oe}=${ge}; ${oe}<${Te}; ${oe}++)`+super.render(F)}get names(){const F=z(super.names,this.from);return z(F,this.to)}}class T extends S{constructor(F,B,oe,ge){super(),this.loop=F,this.varKind=B,this.name=oe,this.iterable=ge}render(F){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(F)}optimizeNames(F,B){if(super.optimizeNames(F,B))return this.iterable=Y(this.iterable,F,B),this}get names(){return K(super.names,this.iterable.names)}}class D extends f{constructor(F,B,oe){super(),this.name=F,this.args=B,this.async=oe}render(F){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(F)}}D.kind="func";class I extends C{render(F){return"return "+super.render(F)}}I.kind="return";class A extends f{render(F){let B="try"+super.render(F);return this.catch&&(B+=this.catch.render(F)),this.finally&&(B+=this.finally.render(F)),B}optimizeNodes(){var F,B;return super.optimizeNodes(),(F=this.catch)===null||F===void 0||F.optimizeNodes(),(B=this.finally)===null||B===void 0||B.optimizeNodes(),this}optimizeNames(F,B){var oe,ge;return super.optimizeNames(F,B),(oe=this.catch)===null||oe===void 0||oe.optimizeNames(F,B),(ge=this.finally)===null||ge===void 0||ge.optimizeNames(F,B),this}get names(){const F=super.names;return this.catch&&K(F,this.catch.names),this.finally&&K(F,this.finally.names),F}}class k extends f{constructor(F){super(),this.error=F}render(F){return`catch(${this.error})`+super.render(F)}}k.kind="catch";class M extends f{render(F){return"finally"+super.render(F)}}M.kind="finally";class G{constructor(F,B={}){this._values={},this._blockStarts=[],this._constants={},this.opts=Un(lr({},B),{_n:B.lines?`
|
|
7
7
|
`:""}),this._extScope=F,this._scope=new o.Scope({parent:F}),this._nodes=[new x]}toString(){return this._root.render(this.opts)}name(F){return this._scope.name(F)}scopeName(F){return this._extScope.name(F)}scopeValue(F,B){const oe=this._extScope.value(F,B);return(this._values[oe.prefix]||(this._values[oe.prefix]=new Set)).add(oe),oe}getScopeValue(F,B){return this._extScope.getValue(F,B)}scopeRefs(F){return this._extScope.scopeRefs(F,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(F,B,oe,ge){const Te=this._scope.toName(B);return oe!==void 0&&ge&&(this._constants[Te.str]=oe),this._leafNode(new p(F,Te,oe)),Te}const(F,B,oe){return this._def(o.varKinds.const,F,B,oe)}let(F,B,oe){return this._def(o.varKinds.let,F,B,oe)}var(F,B,oe){return this._def(o.varKinds.var,F,B,oe)}assign(F,B,oe){return this._leafNode(new d(F,B,oe))}add(F,B){return this._leafNode(new u(F,i.operators.ADD,B))}code(F){return typeof F=="function"?F():F!==t.nil&&this._leafNode(new P(F)),this}object(...F){const B=["{"];for(const[oe,ge]of F)B.length>1&&B.push(","),B.push(oe),(oe!==ge||this.opts.es5)&&(B.push(":"),(0,t.addCodeArg)(B,ge));return B.push("}"),new t._Code(B)}if(F,B,oe){if(this._blockNode(new b(F)),B&&oe)this.code(B).else().code(oe).endIf();else if(B)this.code(B).endIf();else if(oe)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(F){return this._elseNode(new b(F))}else(){return this._elseNode(new w)}endIf(){return this._endBlockNode(b,w)}_for(F,B){return this._blockNode(F),B&&this.code(B).endFor(),this}for(F,B){return this._for(new E(F),B)}forRange(F,B,oe,ge,Te=this.opts.es5?o.varKinds.var:o.varKinds.let){const Ne=this._scope.toName(F);return this._for(new R(Te,Ne,B,oe),()=>ge(Ne))}forOf(F,B,oe,ge=o.varKinds.const){const Te=this._scope.toName(F);if(this.opts.es5){const Ne=B instanceof t.Name?B:this.var("_arr",B);return this.forRange("_i",0,(0,t._)`${Ne}.length`,ze=>{this.var(Te,(0,t._)`${Ne}[${ze}]`),oe(Te)})}return this._for(new T("of",ge,Te,B),()=>oe(Te))}forIn(F,B,oe,ge=this.opts.es5?o.varKinds.var:o.varKinds.const){if(this.opts.ownProperties)return this.forOf(F,(0,t._)`Object.keys(${B})`,oe);const Te=this._scope.toName(F);return this._for(new T("in",ge,Te,B),()=>oe(Te))}endFor(){return this._endBlockNode(S)}label(F){return this._leafNode(new m(F))}break(F){return this._leafNode(new v(F))}return(F){const B=new I;if(this._blockNode(B),this.code(F),B.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(I)}try(F,B,oe){if(!B&&!oe)throw new Error('CodeGen: "try" without "catch" and "finally"');const ge=new A;if(this._blockNode(ge),this.code(F),B){const Te=this.name("e");this._currNode=ge.catch=new k(Te),B(Te)}return oe&&(this._currNode=ge.finally=new M,this.code(oe)),this._endBlockNode(k,M)}throw(F){return this._leafNode(new g(F))}block(F,B){return this._blockStarts.push(this._nodes.length),F&&this.code(F).endBlock(B),this}endBlock(F){const B=this._blockStarts.pop();if(B===void 0)throw new Error("CodeGen: not in self-balancing block");const oe=this._nodes.length-B;if(oe<0||F!==void 0&&oe!==F)throw new Error(`CodeGen: wrong number of nodes: ${oe} vs ${F} expected`);return this._nodes.length=B,this}func(F,B=t.nil,oe,ge){return this._blockNode(new D(F,B,oe)),ge&&this.code(ge).endFunc(),this}endFunc(){return this._endBlockNode(D)}optimize(F=1){for(;F-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(F){return this._currNode.nodes.push(F),this}_blockNode(F){this._currNode.nodes.push(F),this._nodes.push(F)}_endBlockNode(F,B){const oe=this._currNode;if(oe instanceof F||B&&oe instanceof B)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${B?`${F.kind}/${B.kind}`:F.kind}"`)}_elseNode(F){const B=this._currNode;if(!(B instanceof b))throw new Error('CodeGen: "else" without "if"');return this._currNode=B.else=F,this}get _root(){return this._nodes[0]}get _currNode(){const F=this._nodes;return F[F.length-1]}set _currNode(F){const B=this._nodes;B[B.length-1]=F}}i.CodeGen=G;function K(ee,F){for(const B in F)ee[B]=(ee[B]||0)+(F[B]||0);return ee}function z(ee,F){return F instanceof t._CodeOrName?K(ee,F.names):ee}function Y(ee,F,B){if(ee instanceof t.Name)return oe(ee);if(!ge(ee))return ee;return new t._Code(ee._items.reduce((Te,Ne)=>(Ne instanceof t.Name&&(Ne=oe(Ne)),Ne instanceof t._Code?Te.push(...Ne._items):Te.push(Ne),Te),[]));function oe(Te){const Ne=B[Te.str];return Ne===void 0||F[Te.str]!==1?Te:(delete F[Te.str],Ne)}function ge(Te){return Te instanceof t._Code&&Te._items.some(Ne=>Ne instanceof t.Name&&F[Ne.str]===1&&B[Ne.str]!==void 0)}}function ue(ee,F){for(const B in F)ee[B]=(ee[B]||0)-(F[B]||0)}function _e(ee){return typeof ee=="boolean"||typeof ee=="number"||ee===null?!ee:(0,t._)`!${j(ee)}`}i.not=_e;const Re=H(i.operators.AND);function xe(...ee){return ee.reduce(Re)}i.and=xe;const Ce=H(i.operators.OR);function te(...ee){return ee.reduce(Ce)}i.or=te;function H(ee){return(F,B)=>F===t.nil?B:B===t.nil?F:(0,t._)`${j(F)} ${ee} ${j(B)}`}function j(ee){return ee instanceof t.Name?ee:(0,t._)`(${ee})`}},11949:(_,i,e)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.ValueScope=i.ValueScopeName=i.Scope=i.varKinds=i.UsedValueState=void 0;const t=e(9838);class o extends Error{constructor(m){super(`CodeGen: "code" for ${m} not defined`),this.value=m.value}}var c;(function(u){u[u.Started=0]="Started",u[u.Completed=1]="Completed"})(c=i.UsedValueState||(i.UsedValueState={})),i.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class n{constructor({prefixes:m,parent:v}={}){this._names={},this._prefixes=m,this._parent=v}toName(m){return m instanceof t.Name?m:this.name(m)}name(m){return new t.Name(this._newName(m))}_newName(m){const v=this._names[m]||this._nameGroup(m);return`${m}${v.index++}`}_nameGroup(m){var v,g;if(!((g=(v=this._parent)===null||v===void 0?void 0:v._prefixes)===null||g===void 0)&&g.has(m)||this._prefixes&&!this._prefixes.has(m))throw new Error(`CodeGen: prefix "${m}" is not allowed in this scope`);return this._names[m]={prefix:m,index:0}}}i.Scope=n;class l extends t.Name{constructor(m,v){super(v),this.prefix=m}setValue(m,{property:v,itemIndex:g}){this.value=m,this.scopePath=(0,t._)`.${new t.Name(v)}[${g}]`}}i.ValueScopeName=l;const p=(0,t._)`\n`;class d extends n{constructor(m){super(m),this._values={},this._scope=m.scope,this.opts=Un(lr({},m),{_n:m.lines?p:t.nil})}get(){return this._scope}name(m){return new l(m,this._newName(m))}value(m,v){var g;if(v.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const P=this.toName(m),{prefix:C}=P,f=(g=v.key)!==null&&g!==void 0?g:v.ref;let x=this._values[C];if(x){const S=x.get(f);if(S)return S}else x=this._values[C]=new Map;x.set(f,P);const w=this._scope[C]||(this._scope[C]=[]),b=w.length;return w[b]=v.ref,P.setValue(v,{property:C,itemIndex:b}),P}getValue(m,v){const g=this._values[m];if(g)return g.get(v)}scopeRefs(m,v=this._values){return this._reduceValues(v,g=>{if(g.scopePath===void 0)throw new Error(`CodeGen: name "${g}" has no value`);return(0,t._)`${m}${g.scopePath}`})}scopeCode(m=this._values,v,g){return this._reduceValues(m,P=>{if(P.value===void 0)throw new Error(`CodeGen: name "${P}" has no value`);return P.value.code},v,g)}_reduceValues(m,v,g={},P){let C=t.nil;for(const f in m){const x=m[f];if(!x)continue;const w=g[f]=g[f]||new Map;x.forEach(b=>{if(w.has(b))return;w.set(b,c.Started);let S=v(b);if(S){const E=this.opts.es5?i.varKinds.var:i.varKinds.const;C=(0,t._)`${C}${E} ${b} = ${S};${this.opts._n}`}else if(S=P==null?void 0:P(b))C=(0,t._)`${C}${S}${this.opts._n}`;else throw new o(b);w.set(b,c.Completed)})}return C}}i.ValueScope=d},63007:(_,i,e)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.extendErrors=i.resetErrorsCount=i.reportExtraError=i.reportError=i.keyword$DataError=i.keywordError=void 0;const t=e(25865),o=e(28314),c=e(50459);i.keywordError={message:({keyword:w})=>(0,t.str)`must pass "${w}" keyword validation`},i.keyword$DataError={message:({keyword:w,schemaType:b})=>b?(0,t.str)`"${w}" keyword must be ${b} ($data)`:(0,t.str)`"${w}" keyword is invalid ($data)`};function n(w,b=i.keywordError,S,E){const{it:R}=w,{gen:T,compositeRule:D,allErrors:I}=R,A=g(w,b,S);(E!=null?E:D||I)?u(T,A):m(R,(0,t._)`[${A}]`)}i.reportError=n;function l(w,b=i.keywordError,S){const{it:E}=w,{gen:R,compositeRule:T,allErrors:D}=E,I=g(w,b,S);u(R,I),T||D||m(E,c.default.vErrors)}i.reportExtraError=l;function p(w,b){w.assign(c.default.errors,b),w.if((0,t._)`${c.default.vErrors} !== null`,()=>w.if(b,()=>w.assign((0,t._)`${c.default.vErrors}.length`,b),()=>w.assign(c.default.vErrors,null)))}i.resetErrorsCount=p;function d({gen:w,keyword:b,schemaValue:S,data:E,errsCount:R,it:T}){if(R===void 0)throw new Error("ajv implementation error");const D=w.name("err");w.forRange("i",R,c.default.errors,I=>{w.const(D,(0,t._)`${c.default.vErrors}[${I}]`),w.if((0,t._)`${D}.instancePath === undefined`,()=>w.assign((0,t._)`${D}.instancePath`,(0,t.strConcat)(c.default.instancePath,T.errorPath))),w.assign((0,t._)`${D}.schemaPath`,(0,t.str)`${T.errSchemaPath}/${b}`),T.opts.verbose&&(w.assign((0,t._)`${D}.schema`,S),w.assign((0,t._)`${D}.data`,E))})}i.extendErrors=d;function u(w,b){const S=w.const("err",b);w.if((0,t._)`${c.default.vErrors} === null`,()=>w.assign(c.default.vErrors,(0,t._)`[${S}]`),(0,t._)`${c.default.vErrors}.push(${S})`),w.code((0,t._)`${c.default.errors}++`)}function m(w,b){const{gen:S,validateName:E,schemaEnv:R}=w;R.$async?S.throw((0,t._)`new ${w.ValidationError}(${b})`):(S.assign((0,t._)`${E}.errors`,b),S.return(!1))}const v={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 g(w,b,S){const{createErrors:E}=w.it;return E===!1?(0,t._)`{}`:P(w,b,S)}function P(w,b,S={}){const{gen:E,it:R}=w,T=[C(R,S),f(w,S)];return x(w,b,T),E.object(...T)}function C({errorPath:w},{instancePath:b}){const S=b?(0,t.str)`${w}${(0,o.getErrorPath)(b,o.Type.Str)}`:w;return[c.default.instancePath,(0,t.strConcat)(c.default.instancePath,S)]}function f({keyword:w,it:{errSchemaPath:b}},{schemaPath:S,parentSchema:E}){let R=E?b:(0,t.str)`${b}/${w}`;return S&&(R=(0,t.str)`${R}${(0,o.getErrorPath)(S,o.Type.Str)}`),[v.schemaPath,R]}function x(w,{params:b,message:S},E){const{keyword:R,data:T,schemaValue:D,it:I}=w,{opts:A,propertyName:k,topSchemaRef:M,schemaPath:G}=I;E.push([v.keyword,R],[v.params,typeof b=="function"?b(w):b||(0,t._)`{}`]),A.messages&&E.push([v.message,typeof S=="function"?S(w):S]),A.verbose&&E.push([v.schema,D],[v.parentSchema,(0,t._)`${M}${G}`],[c.default.data,T]),k&&E.push([v.propertyName,k])}},38518:(_,i,e)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.resolveSchema=i.getCompilingSchema=i.resolveRef=i.compileSchema=i.SchemaEnv=void 0;const t=e(25865),o=e(16128),c=e(50459),n=e(75040),l=e(28314),p=e(34863);class d{constructor(S){var E;this.refs={},this.dynamicAnchors={};let R;typeof S.schema=="object"&&(R=S.schema),this.schema=S.schema,this.schemaId=S.schemaId,this.root=S.root||this,this.baseId=(E=S.baseId)!==null&&E!==void 0?E:(0,n.normalizeId)(R==null?void 0:R[S.schemaId||"$id"]),this.schemaPath=S.schemaPath,this.localRefs=S.localRefs,this.meta=S.meta,this.$async=R==null?void 0:R.$async,this.refs={}}}i.SchemaEnv=d;function u(b){const S=g.call(this,b);if(S)return S;const E=(0,n.getFullPath)(this.opts.uriResolver,b.root.baseId),{es5:R,lines:T}=this.opts.code,{ownProperties:D}=this.opts,I=new t.CodeGen(this.scope,{es5:R,lines:T,ownProperties:D});let A;b.$async&&(A=I.scopeValue("Error",{ref:o.default,code:(0,t._)`require("ajv/dist/runtime/validation_error").default`}));const k=I.scopeName("validate");b.validateName=k;const M={gen:I,allErrors:this.opts.allErrors,data:c.default.data,parentData:c.default.parentData,parentDataProperty:c.default.parentDataProperty,dataNames:[c.default.data],dataPathArr:[t.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:I.scopeValue("schema",this.opts.code.source===!0?{ref:b.schema,code:(0,t.stringify)(b.schema)}:{ref:b.schema}),validateName:k,ValidationError:A,schema:b.schema,schemaEnv:b,rootId:E,baseId:b.baseId||E,schemaPath:t.nil,errSchemaPath:b.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,t._)`""`,opts:this.opts,self:this};let G;try{this._compilations.add(b),(0,p.validateFunctionCode)(M),I.optimize(this.opts.code.optimize);const K=I.toString();G=`const visitedNodesForRef = new WeakMap(); ${I.scopeRefs(c.default.scope)}return ${K}`,this.opts.code.process&&(G=this.opts.code.process(G,b));const Y=new Function(`${c.default.self}`,`${c.default.scope}`,G)(this,this.scope.get());if(this.scope.value(k,{ref:Y}),Y.errors=null,Y.schema=b.schema,Y.schemaEnv=b,b.$async&&(Y.$async=!0),this.opts.code.source===!0&&(Y.source={validateName:k,validateCode:K,scopeValues:I._values}),this.opts.unevaluated){const{props:ue,items:_e}=M;Y.evaluated={props:ue instanceof t.Name?void 0:ue,items:_e instanceof t.Name?void 0:_e,dynamicProps:ue instanceof t.Name,dynamicItems:_e instanceof t.Name},Y.source&&(Y.source.evaluated=(0,t.stringify)(Y.evaluated))}return b.validate=Y,b}catch(K){throw delete b.validate,delete b.validateName,G&&this.logger.error("Error compiling schema, function code:",G),K}finally{this._compilations.delete(b)}}i.compileSchema=u;function m(b,S,E){var R;const T=(0,n.resolveUrl)(this.opts.uriResolver,S,E),D=b.refs[T];if(D)return D;let I=C.call(this,b,T);if(I===void 0){const A=(R=b.localRefs)===null||R===void 0?void 0:R[T],{schemaId:k}=this.opts;A&&(I=new d({schema:A,schemaId:k,root:b,baseId:S}))}if(I===void 0&&this.opts.loadSchemaSync){const A=this.opts.loadSchemaSync(S,E,T);A&&!(this.refs[T]||this.schemas[T])&&(this.addSchema(A,T,void 0),I=C.call(this,b,T))}if(I!==void 0)return b.refs[T]=v.call(this,I)}i.resolveRef=m;function v(b){return(0,n.inlineRef)(b.schema,this.opts.inlineRefs)?b.schema:b.validate?b:u.call(this,b)}function g(b){for(const S of this._compilations)if(P(S,b))return S}i.getCompilingSchema=g;function P(b,S){return b.schema===S.schema&&b.root===S.root&&b.baseId===S.baseId}function C(b,S){let E;for(;typeof(E=this.refs[S])=="string";)S=E;return E||this.schemas[S]||f.call(this,b,S)}function f(b,S){const E=this.opts.uriResolver.parse(S),R=(0,n._getFullPath)(this.opts.uriResolver,E);let T=(0,n.getFullPath)(this.opts.uriResolver,b.baseId,void 0);if(Object.keys(b.schema).length>0&&R===T)return w.call(this,E,b);const D=(0,n.normalizeId)(R),I=this.refs[D]||this.schemas[D];if(typeof I=="string"){const A=f.call(this,b,I);return typeof(A==null?void 0:A.schema)!="object"?void 0:w.call(this,E,A)}if(typeof(I==null?void 0:I.schema)=="object"){if(I.validate||u.call(this,I),D===(0,n.normalizeId)(S)){const{schema:A}=I,{schemaId:k}=this.opts,M=A[k];return M&&(T=(0,n.resolveUrl)(this.opts.uriResolver,T,M)),new d({schema:A,schemaId:k,root:b,baseId:T})}return w.call(this,E,I)}}i.resolveSchema=f;const x=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function w(b,{baseId:S,schema:E,root:R}){var T;if(((T=b.fragment)===null||T===void 0?void 0:T[0])!=="/")return;for(const A of b.fragment.slice(1).split("/")){if(typeof E=="boolean")return;const k=E[(0,l.unescapeFragment)(A)];if(k===void 0)return;E=k;const M=typeof E=="object"&&E[this.opts.schemaId];!x.has(A)&&M&&(S=(0,n.resolveUrl)(this.opts.uriResolver,S,M))}let D;if(typeof E!="boolean"&&E.$ref&&!(0,l.schemaHasRulesButRef)(E,this.RULES)){const A=(0,n.resolveUrl)(this.opts.uriResolver,S,E.$ref);D=f.call(this,R,A)}const{schemaId:I}=this.opts;if(D=D||new d({schema:E,schemaId:I,root:R,baseId:S}),D.schema!==D.root.schema)return D}},50459:(_,i,e)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});const t=e(25865),o={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")};i.default=o},82438:(_,i,e)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});const t=e(75040);class o extends Error{constructor(n,l,p,d){super(d||`can't resolve reference ${p} from id ${l}`),this.missingRef=(0,t.resolveUrl)(n,l,p),this.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(n,this.missingRef))}}i.default=o},75040:(_,i,e)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getSchemaRefs=i.resolveUrl=i.normalizeId=i._getFullPath=i.getFullPath=i.inlineRef=void 0;const t=e(28314),o=e(44204),c=e(5094),n=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function l(w,b=!0){return typeof w=="boolean"?!0:b===!0?!d(w):b?u(w)<=b:!1}i.inlineRef=l;const p=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function d(w){for(const b in w){if(p.has(b))return!0;const S=w[b];if(Array.isArray(S)&&S.some(d)||typeof S=="object"&&d(S))return!0}return!1}function u(w){let b=0;for(const S in w){if(S==="$ref")return 1/0;if(b++,!n.has(S)&&(typeof w[S]=="object"&&(0,t.eachItem)(w[S],E=>b+=u(E)),b===1/0))return 1/0}return b}function m(w,b="",S){S!==!1&&(b=P(b));const E=w.parse(b);return v(w,E)}i.getFullPath=m;function v(w,b){return w.serialize(b).split("#")[0]+"#"}i._getFullPath=v;const g=/#\/?$/;function P(w){return w?w.replace(g,""):""}i.normalizeId=P;function C(w,b,S){return S=P(S),w.resolve(b,S)}i.resolveUrl=C;const f=/^[a-z_][-a-z0-9._]*$/i;function x(w,b){if(typeof w=="boolean")return{};const{schemaId:S,uriResolver:E}=this.opts,R=P(w[S]||b),T={"":R},D=m(E,R,!1),I={},A=new Set;return c(w,{allKeys:!0},(G,K,z,Y)=>{if(Y===void 0)return;const ue=D+K;let _e=T[Y];typeof G[S]=="string"&&(_e=Re.call(this,G[S])),xe.call(this,G.$anchor),xe.call(this,G.$dynamicAnchor),T[K]=_e;function Re(Ce){const te=this.opts.uriResolver.resolve;if(Ce=P(_e?te(_e,Ce):Ce),A.has(Ce))throw M(Ce);A.add(Ce);let H=this.refs[Ce];return typeof H=="string"&&(H=this.refs[H]),typeof H=="object"?k(G,H.schema,Ce):Ce!==P(ue)&&(Ce[0]==="#"?(k(G,I[Ce],Ce),I[Ce]=G):this.refs[Ce]=ue),Ce}function xe(Ce){if(typeof Ce=="string"){if(!f.test(Ce))throw new Error(`invalid anchor "${Ce}"`);Re.call(this,`#${Ce}`)}}}),I;function k(G,K,z){if(K!==void 0&&!o(G,K))throw M(z)}function M(G){return new Error(`reference "${G}" resolves to more than one schema`)}}i.getSchemaRefs=x},94632:(_,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getRules=i.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function o(n){return typeof n=="string"&&t.has(n)}i.isJSONType=o;function c(){const n={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:Un(lr({},n),{integer:!0,boolean:!0,null:!0}),rules:[{rules:[]},n.number,n.string,n.array,n.object],post:{rules:[]},all:{},keywords:{}}}i.getRules=c},28314:(_,i,e)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.checkStrictMode=i.getErrorPath=i.Type=i.useFunc=i.setEvaluated=i.evaluatedPropsToName=i.mergeEvaluated=i.eachItem=i.unescapeJsonPointer=i.escapeJsonPointer=i.escapeFragment=i.unescapeFragment=i.schemaRefOrVal=i.schemaHasRulesButRef=i.schemaHasRules=i.checkUnknownRules=i.alwaysValidSchema=i.toHash=void 0;const t=e(25865),o=e(9838);function c(D){const I={};for(const A of D)I[A]=!0;return I}i.toHash=c;function n(D,I){return typeof I=="boolean"?I:Object.keys(I).length===0?!0:(l(D,I),!p(I,D.self.RULES.all))}i.alwaysValidSchema=n;function l(D,I=D.schema){const{opts:A,self:k}=D;if(!A.strictSchema||typeof I=="boolean")return;const M=k.RULES.keywords;for(const G in I)M[G]||T(D,`unknown keyword: "${G}"`)}i.checkUnknownRules=l;function p(D,I){if(typeof D=="boolean")return!D;for(const A in D)if(I[A])return!0;return!1}i.schemaHasRules=p;function d(D,I){if(typeof D=="boolean")return!D;for(const A in D)if(A!=="$ref"&&I.all[A])return!0;return!1}i.schemaHasRulesButRef=d;function u({topSchemaRef:D,schemaPath:I},A,k,M){if(!M){if(typeof A=="number"||typeof A=="boolean")return A;if(typeof A=="string")return(0,t._)`${A}`}return(0,t._)`${D}${I}${(0,t.getProperty)(k)}`}i.schemaRefOrVal=u;function m(D){return P(decodeURIComponent(D))}i.unescapeFragment=m;function v(D){return encodeURIComponent(g(D))}i.escapeFragment=v;function g(D){return typeof D=="number"?`${D}`:D.replace(/~/g,"~0").replace(/\//g,"~1")}i.escapeJsonPointer=g;function P(D){return D.replace(/~1/g,"/").replace(/~0/g,"~")}i.unescapeJsonPointer=P;function C(D,I){if(Array.isArray(D))for(const A of D)I(A);else I(D)}i.eachItem=C;function f({mergeNames:D,mergeToName:I,mergeValues:A,resultToName:k}){return(M,G,K,z)=>{const Y=K===void 0?G:K instanceof t.Name?(G instanceof t.Name?D(M,G,K):I(M,G,K),K):G instanceof t.Name?(I(M,K,G),G):A(G,K);return z===t.Name&&!(Y instanceof t.Name)?k(M,Y):Y}}i.mergeEvaluated={props:f({mergeNames:(D,I,A)=>D.if((0,t._)`${A} !== true && ${I} !== undefined`,()=>{D.if((0,t._)`${I} === true`,()=>D.assign(A,!0),()=>D.assign(A,(0,t._)`${A} || {}`).code((0,t._)`Object.assign(${A}, ${I})`))}),mergeToName:(D,I,A)=>D.if((0,t._)`${A} !== true`,()=>{I===!0?D.assign(A,!0):(D.assign(A,(0,t._)`${A} || {}`),w(D,A,I))}),mergeValues:(D,I)=>D===!0?!0:lr(lr({},D),I),resultToName:x}),items:f({mergeNames:(D,I,A)=>D.if((0,t._)`${A} !== true && ${I} !== undefined`,()=>D.assign(A,(0,t._)`${I} === true ? true : ${A} > ${I} ? ${A} : ${I}`)),mergeToName:(D,I,A)=>D.if((0,t._)`${A} !== true`,()=>D.assign(A,I===!0?!0:(0,t._)`${A} > ${I} ? ${A} : ${I}`)),mergeValues:(D,I)=>D===!0?!0:Math.max(D,I),resultToName:(D,I)=>D.var("items",I)})};function x(D,I){if(I===!0)return D.var("props",!0);const A=D.var("props",(0,t._)`{}`);return I!==void 0&&w(D,A,I),A}i.evaluatedPropsToName=x;function w(D,I,A){Object.keys(A).forEach(k=>D.assign((0,t._)`${I}${(0,t.getProperty)(k)}`,!0))}i.setEvaluated=w;const b={};function S(D,I){return D.scopeValue("func",{ref:I,code:b[I.code]||(b[I.code]=new o._Code(I.code))})}i.useFunc=S;var E;(function(D){D[D.Num=0]="Num",D[D.Str=1]="Str"})(E=i.Type||(i.Type={}));function R(D,I,A){if(D instanceof t.Name){const k=I===E.Num;return A?k?(0,t._)`"[" + ${D} + "]"`:(0,t._)`"['" + ${D} + "']"`:k?(0,t._)`"/" + ${D}`:(0,t._)`"/" + ${D}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return A?(0,t.getProperty)(D).toString():"/"+g(D)}i.getErrorPath=R;function T(D,I,A=D.opts.strictSchema){if(A){if(I=`strict mode: ${I}`,A===!0)throw new Error(I);D.self.logger.warn(I)}}i.checkStrictMode=T},55565:(_,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.shouldUseRule=i.shouldUseGroup=i.schemaHasRulesForType=void 0;function e({schema:c,self:n},l){const p=n.RULES.types[l];return p&&p!==!0&&t(c,p)}i.schemaHasRulesForType=e;function t(c,n){return n.rules.some(l=>o(c,l))}i.shouldUseGroup=t;function o(c,n){var l;return c[n.keyword]!==void 0||((l=n.definition.implements)===null||l===void 0?void 0:l.some(p=>c[p]!==void 0))}i.shouldUseRule=o},22466:(_,i,e)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.boolOrEmptySchema=i.topBoolOrEmptySchema=void 0;const t=e(63007),o=e(25865),c=e(50459),n={message:"boolean schema is false"};function l(u){const{gen:m,schema:v,validateName:g}=u;v===!1?d(u,!1):typeof v=="object"&&v.$async===!0?m.return(c.default.data):(m.assign((0,o._)`${g}.errors`,null),m.return(!0))}i.topBoolOrEmptySchema=l;function p(u,m){const{gen:v,schema:g}=u;g===!1?(v.var(m,!1),d(u)):v.var(m,!0)}i.boolOrEmptySchema=p;function d(u,m){const{gen:v,data:g}=u,P={gen:v,keyword:"false schema",data:g,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:u};(0,t.reportError)(P,n,void 0,m)}},35314:(_,i,e)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.reportTypeError=i.checkDataTypes=i.checkDataType=i.coerceAndCheckDataType=i.getJSONTypes=i.getSchemaTypes=i.DataType=void 0;const t=e(94632),o=e(55565),c=e(63007),n=e(25865),l=e(28314);var p;(function(E){E[E.Correct=0]="Correct",E[E.Wrong=1]="Wrong"})(p=i.DataType||(i.DataType={}));function d(E){const R=u(E.type);if(R.includes("null")){if(E.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!R.length&&E.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');E.nullable===!0&&R.push("null")}return R}i.getSchemaTypes=d;function u(E){const R=Array.isArray(E)?E:E?[E]:[];if(R.every(t.isJSONType))return R;throw new Error("type must be JSONType or JSONType[]: "+R.join(","))}i.getJSONTypes=u;function m(E,R){const{gen:T,data:D,opts:I}=E,A=g(R,I.coerceTypes),k=R.length>0&&!(A.length===0&&R.length===1&&(0,o.schemaHasRulesForType)(E,R[0]));if(k){const M=x(R,D,I.strictNumbers,p.Wrong);T.if(M,()=>{A.length?P(E,R,A):b(E)})}return k}i.coerceAndCheckDataType=m;const v=new Set(["string","number","integer","boolean","null"]);function g(E,R){return R?E.filter(T=>v.has(T)||R==="array"&&T==="array"):[]}function P(E,R,T){const{gen:D,data:I,opts:A}=E,k=D.let("dataType",(0,n._)`typeof ${I}`),M=D.let("coerced",(0,n._)`undefined`);A.coerceTypes==="array"&&D.if((0,n._)`${k} == 'object' && Array.isArray(${I}) && ${I}.length == 1`,()=>D.assign(I,(0,n._)`${I}[0]`).assign(k,(0,n._)`typeof ${I}`).if(x(R,I,A.strictNumbers),()=>D.assign(M,I))),D.if((0,n._)`${M} !== undefined`);for(const K of T)(v.has(K)||K==="array"&&A.coerceTypes==="array")&&G(K);D.else(),b(E),D.endIf(),D.if((0,n._)`${M} !== undefined`,()=>{D.assign(I,M),C(E,M)});function G(K){switch(K){case"string":D.elseIf((0,n._)`${k} == "number" || ${k} == "boolean"`).assign(M,(0,n._)`"" + ${I}`).elseIf((0,n._)`${I} === null`).assign(M,(0,n._)`""`);return;case"number":D.elseIf((0,n._)`${k} == "boolean" || ${I} === null
|
|
8
8
|
|| (${k} == "string" && ${I} && ${I} == +${I})`).assign(M,(0,n._)`+${I}`);return;case"integer":D.elseIf((0,n._)`${k} === "boolean" || ${I} === null
|
|
@@ -1619,7 +1619,7 @@ $4`);{const Ue=ze===""||ze.endsWith(`
|
|
|
1619
1619
|
|
|
1620
1620
|
`;return`${ze}${Ue}# ${ve}
|
|
1621
1621
|
|
|
1622
|
-
${Le}`}}const I=(ze,...ve)=>{if(!ve.length)return ze;const Le=ve.shift();return Le===void 0?ze:(G(ze)&&G(Le)&&Object.keys(Le).forEach($=>{G(Le[$])?(ze[$]||(ze[$]={}),["string","number"].includes(typeof ze[$])&&(!Le[$][ZERO_BREAKPOINT]&&Le[$][ZERO_BREAKPOINT]!==0&&console.warn(`Theme resolver: using default value of "${ze[$]}" for "${$}". This is not recommended. Prefer adding default value by providing "${ZERO_BREAKPOINT}" property to ${JSON.stringify(Le[$])}.`),ze[$]={[ZERO_BREAKPOINT]:ze[$]}),I(ze[$],Le[$])):ze[$]=Le[$]}),I(ze,...ve))},A=ze=>ze!==null&&typeof ze=="object",k=ze=>Array.isArray(ze)&&ze.some(ve=>A(ve)),M=ze=>ze.filter(ve=>!!ve),G=ze=>A(ze)&&!Array.isArray(ze);function K(ze){return o()(ze)||ze.toString().toLowerCase().replace(/\s+/g,"-").replace(/&/g,"-and-").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}function z(ze){return/(?:^[a-z][a-z0-9+.-]*:|\/\/)/i.test(ze)}function Y(ze,ve){let Le;if(ve.startsWith("//")){const{protocol:$}=(0,c.parse)(ze);Le=`${$||"https:"}${ve}`}else if(z(ve))Le=ve;else if(!ve.startsWith("/"))Le=R(ze)+"/"+ve;else{const $=(0,c.parse)(ze);Le=(0,c.format)(w(x({},$),{pathname:ve}))}return R(Le)}function ue(ze){try{return xe(ze).pathname}catch(ve){return ze}}function _e(ze){return ze.charAt(0).toUpperCase()+ze.slice(1)}function Re(ze){try{const ve=xe(ze);return ve.search="",ve.hash="",ve.toString()}catch(ve){return ze}}function xe(ze){return typeof URL=="undefined"?new(e(51121)).URL(ze):new URL(ze)}function Ce(ze){return ze.replace(/["\\]/g,"\\$&")}function te(ze){return ze.replace(/&#(\d+);/g,(ve,Le)=>String.fromCharCode(parseInt(Le,10))).replace(/&/g,"&").replace(/"/g,'"')}function H(ze){return ze&&ze.replace(/#/g,"_")}function j(ze,ve){return ve||isNamedDefinition(ze)&&JsonPointer.baseName(ze)||""}function ee(ze={},ve,Le){return typeof ve=="string"&&(ve=ve.split(".")),ve.reduce(($,de)=>$&&$[de]?$[de]:Le,ze)}function F(ze){return(...ve)=>ve.filter(Boolean).join(ze)}const B=F(".");function oe(ze){var ve;return p.Qg?(ve=window==null?void 0:window.REFERENCE_DOCS_OPTIONS)==null?void 0:ve[ze]:null}function ge(){var ze;if(!p.Qg)return"";const ve=+new Date+Math.random();try{return(!document.currentScript||!(document.currentScript.async||document.currentScript.defer))&&document.write(`<script id="dummy${ve}"><\/script>`),((ze=document.getElementById("dummy"+ve))==null?void 0:ze.previousSibling).src}catch(Le){return""}}const Te=ze=>(0,d.HD)(ze)?ze:ze==null?void 0:ze.raw,Ne=(ze,ve)=>{const Le=ze[`x-parsed-md-${ve}`]||ze[ve];if(ve!=="x-enumDescriptions")return Le;let $={};for(const de in Le)de.startsWith("x-parsed-md")||($[de]=Le[`x-parsed-md-${de}`]||Le[de]);return $}},79766:(_,i,e)=>{"use strict";e.d(i,{Qg:()=>ue.Qg,IB:()=>t.I,Bi:()=>te,m9:()=>H,Z3:()=>F,At:()=>ee,RC:()=>j,qC:()=>me,I2:()=>xe,Ds:()=>Ne,zD:()=>c.zD,Vg:()=>o.Vg,s1:()=>c.s1,oU:()=>$,A8:()=>ve,nq:()=>o.nq,TQ:()=>o.TQ,PD:()=>c.PD,Y9:()=>L,YQ:()=>Ue,U2:()=>c.U2,bv:()=>c.bv,qW:()=>o.qW,ft:()=>o.ft,uW:()=>c.uW,mE:()=>o.mE,rY:()=>o.rY,X_:()=>Pe,lX:()=>Fe,Al:()=>ye,YS:()=>o.YS,Hm:()=>c.Hm,rR:()=>c.rR,V_:()=>o.V_,Pj:()=>c.Pj,og:()=>o.og,Yi:()=>o.Yi,Gk:()=>c.Gk,lE:()=>o.lE,Kn:()=>c.Kn,eU:()=>o.eU,ty:()=>o.ty,CX:()=>o.CX,HD:()=>fe.HD,o8:()=>fe.o8,M:()=>o.M,q2:()=>Re,Q8:()=>c.Q8,jW:()=>c.jW,Zd:()=>o.Zd,gr:()=>o.gr,yK:()=>It,Dm:()=>o.Dm,bG:()=>c.bG,Dg:()=>Ve,wq:()=>Et,NL:()=>o.NL,R2:()=>ue.R2,bO:()=>c.bO,d$:()=>o.d$,ZJ:()=>Q,Fp:()=>Oe,xC:()=>bt,e$:()=>o.e$,L1:()=>o.L1,T4:()=>o.T4,$z:()=>ze,MI:()=>c.MI,Im:()=>Qe,WW:()=>de,cp:()=>Te,dw:()=>Le,Lf:()=>c.Lf,TE:()=>o.TE});var t=e(95886),o=e(61678),c=e(1466),n=e(89652),l=e(61735),p=e(58494),d=e(25769),u=e(44415),m=e(63158),v=e(37219),g=e(25784),P=e(73879),C=e(32425),f=e(49933),x=e(66602),w=e(43815),b=e(46843),S=e(74029),E=e(5771),R=e(14837),T=e(3583),D=e(58872),I=e(71550),A=e(86586);const k="clike";n.languages.insertBefore("javascript","string",{"property string":{pattern:/([{,]\s*)"(?:\\.|[^\\"\r\n])*"(?=\s*:)/i,lookbehind:!0}},void 0),n.languages.insertBefore("javascript","punctuation",{property:{pattern:/([{,]\s*)[a-z]\w*(?=\s*:)/i,lookbehind:!0}},void 0);function M(dt){return{json:"js","c++":"cpp","c#":"csharp","objective-c":"objectivec",shell:"bash",viml:"vim",curl:"bash","node.js":"js"}[dt]||k}function G(dt,Pt=k){Pt=Pt.toLowerCase();let Nt=Prism.languages[Pt];return Nt||(Nt=Prism.languages[M(Pt)]),Prism.highlight(dt.toString(),Nt,Pt)}var K=e(1452),z=e(36505),Y=e(65556),ue=e(91696),_e=(dt,Pt,Nt)=>new Promise((xr,Ie)=>{var Vt=wr=>{try{ur(Nt.next(wr))}catch(Br){Ie(Br)}},hr=wr=>{try{ur(Nt.throw(wr))}catch(Br){Ie(Br)}},ur=wr=>wr.done?xr(wr.value):Promise.resolve(wr.value).then(Vt,hr);ur((Nt=Nt.apply(dt,Pt)).next())});function Re(dt){return _e(this,null,function*(){const Pt=new z.Config({}),Nt={config:Pt,base:ue.Qg?window.location.href:process.cwd()};ue.Qg&&(Pt.resolve.http.customFetch=e.g.fetch),typeof dt=="object"&&dt!==null?Nt.doc=xe(dt):Nt.ref=dt;const{bundle:{parsed:xr}}=yield(0,K.bundle)(Nt);return xr.swagger!==void 0?Ce(xr):xr})}function xe(dt){return{source:{absoluteRef:""},parsed:dt}}function Ce(dt){return dt.paths||(dt.paths={}),new Promise((Pt,Nt)=>(0,Y.convertObj)(dt,{patch:!0,warnOnly:!0,text:"{}",anchors:!0},(xr,Ie)=>{if(xr)return Nt(xr);Pt(Ie==null?void 0:Ie.openapi)}))}function te(dt){let Pt=1;return dt[0]==="-"&&(Pt=-1,dt=dt.substr(1)),function(Nt,xr){return Pt==-1?xr[dt].localeCompare(Nt[dt]):Nt[dt].localeCompare(xr[dt])}}function H(dt,Pt){return dt===void 0?Pt||!1:typeof dt=="string"?dt!=="false":dt}function j(dt,Pt=0){return typeof dt=="string"?parseInt(dt,10):typeof dt=="number"?dt:Pt}function ee(dt,Pt=0){return typeof dt=="string"?parseInt(dt,10):typeof dt=="number"?Math.ceil(dt):Pt}function F(dt,Pt=0){return dt==="all"?1/0:ee(dt,Pt)}var B=e(28507);const oe=Object.entries({fontSize:"font-size",fontWeight:"font-weight",fontFamily:"font-family",lineHeight:"line-height",color:"text-color",textTransform:"text-transform"});function ge(dt,Pt){const Nt={};for(const[xr,Ie]of oe){const Vt=`--${dt}-${Ie}`,hr=Pt?`,var(--${Pt}-${Ie})`:"";Nt[xr]=`var(${Vt}${hr})`}return Nt}function Te(dt,Pt){return B.iv`
|
|
1622
|
+
${Le}`}}const I=(ze,...ve)=>{if(!ve.length)return ze;const Le=ve.shift();return Le===void 0?ze:(G(ze)&&G(Le)&&Object.keys(Le).forEach($=>{G(Le[$])?(ze[$]||(ze[$]={}),["string","number"].includes(typeof ze[$])&&(!Le[$][ZERO_BREAKPOINT]&&Le[$][ZERO_BREAKPOINT]!==0&&console.warn(`Theme resolver: using default value of "${ze[$]}" for "${$}". This is not recommended. Prefer adding default value by providing "${ZERO_BREAKPOINT}" property to ${JSON.stringify(Le[$])}.`),ze[$]={[ZERO_BREAKPOINT]:ze[$]}),I(ze[$],Le[$])):ze[$]=Le[$]}),I(ze,...ve))},A=ze=>ze!==null&&typeof ze=="object",k=ze=>Array.isArray(ze)&&ze.some(ve=>A(ve)),M=ze=>ze.filter(ve=>!!ve),G=ze=>A(ze)&&!Array.isArray(ze);function K(ze){return o()(ze)||ze.toString().toLowerCase().replace(/\s+/g,"-").replace(/&/g,"-and-").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}function z(ze){return/(?:^[a-z][a-z0-9+.-]*:|\/\/)/i.test(ze)}function Y(ze,ve){let Le;if(ve.startsWith("//")){const{protocol:$}=(0,c.parse)(ze);Le=`${$||"https:"}${ve}`}else if(z(ve))Le=ve;else if(!ve.startsWith("/"))Le=R(ze)+"/"+ve;else{const $=(0,c.parse)(ze);Le=(0,c.format)(w(x({},$),{pathname:ve}))}return R(Le)}function ue(ze){try{return xe(ze).pathname}catch(ve){return ze}}function _e(ze){return ze.charAt(0).toUpperCase()+ze.slice(1)}function Re(ze){try{const ve=xe(ze);return ve.search="",ve.hash="",ve.toString()}catch(ve){return ze}}function xe(ze){return typeof URL=="undefined"?new(e(51121)).URL(ze):new URL(ze)}function Ce(ze){return ze.replace(/["\\]/g,"\\$&")}function te(ze){return ze.replace(/&#(\d+);/g,(ve,Le)=>String.fromCharCode(parseInt(Le,10))).replace(/&/g,"&").replace(/"/g,'"')}function H(ze){return ze&&ze.replace(/#/g,"_")}function j(ze,ve){return ve||isNamedDefinition(ze)&&JsonPointer.baseName(ze)||""}function ee(ze={},ve,Le){return typeof ve=="string"&&(ve=ve.split(".")),ve.reduce(($,de)=>$&&$[de]?$[de]:Le,ze)}function F(ze){return(...ve)=>ve.filter(Boolean).join(ze)}const B=F(".");function oe(ze){var ve;return p.Qg?(ve=window==null?void 0:window.REFERENCE_DOCS_OPTIONS)==null?void 0:ve[ze]:null}function ge(){var ze;if(!p.Qg)return"";const ve=+new Date+Math.random();try{return(!document.currentScript||!(document.currentScript.async||document.currentScript.defer))&&document.write(`<script id="dummy${ve}"><\/script>`),((ze=document.getElementById("dummy"+ve))==null?void 0:ze.previousSibling).src}catch(Le){return""}}const Te=ze=>(0,d.HD)(ze)?ze:ze==null?void 0:ze.raw,Ne=(ze,ve)=>{const Le=ze[`x-parsed-md-${ve}`]||ze[ve];if(ve!=="x-enumDescriptions")return Le;let $={};for(const de in Le)de.startsWith("x-parsed-md")||($[de]=Le[`x-parsed-md-${de}`]||Le[de]);return Object.keys($).length?$:Le}},79766:(_,i,e)=>{"use strict";e.d(i,{Qg:()=>ue.Qg,IB:()=>t.I,Bi:()=>te,m9:()=>H,Z3:()=>F,At:()=>ee,RC:()=>j,qC:()=>me,I2:()=>xe,Ds:()=>Ne,zD:()=>c.zD,Vg:()=>o.Vg,s1:()=>c.s1,oU:()=>$,A8:()=>ve,nq:()=>o.nq,TQ:()=>o.TQ,PD:()=>c.PD,Y9:()=>L,YQ:()=>Ue,U2:()=>c.U2,bv:()=>c.bv,qW:()=>o.qW,ft:()=>o.ft,uW:()=>c.uW,mE:()=>o.mE,rY:()=>o.rY,X_:()=>Pe,lX:()=>Fe,Al:()=>ye,YS:()=>o.YS,Hm:()=>c.Hm,rR:()=>c.rR,V_:()=>o.V_,Pj:()=>c.Pj,og:()=>o.og,Yi:()=>o.Yi,Gk:()=>c.Gk,lE:()=>o.lE,Kn:()=>c.Kn,eU:()=>o.eU,ty:()=>o.ty,CX:()=>o.CX,HD:()=>fe.HD,o8:()=>fe.o8,M:()=>o.M,q2:()=>Re,Q8:()=>c.Q8,jW:()=>c.jW,Zd:()=>o.Zd,gr:()=>o.gr,yK:()=>It,Dm:()=>o.Dm,bG:()=>c.bG,Dg:()=>Ve,wq:()=>Et,NL:()=>o.NL,R2:()=>ue.R2,bO:()=>c.bO,d$:()=>o.d$,ZJ:()=>Q,Fp:()=>Oe,xC:()=>bt,e$:()=>o.e$,L1:()=>o.L1,T4:()=>o.T4,$z:()=>ze,MI:()=>c.MI,Im:()=>Qe,WW:()=>de,cp:()=>Te,dw:()=>Le,Lf:()=>c.Lf,TE:()=>o.TE});var t=e(95886),o=e(61678),c=e(1466),n=e(89652),l=e(61735),p=e(58494),d=e(25769),u=e(44415),m=e(63158),v=e(37219),g=e(25784),P=e(73879),C=e(32425),f=e(49933),x=e(66602),w=e(43815),b=e(46843),S=e(74029),E=e(5771),R=e(14837),T=e(3583),D=e(58872),I=e(71550),A=e(86586);const k="clike";n.languages.insertBefore("javascript","string",{"property string":{pattern:/([{,]\s*)"(?:\\.|[^\\"\r\n])*"(?=\s*:)/i,lookbehind:!0}},void 0),n.languages.insertBefore("javascript","punctuation",{property:{pattern:/([{,]\s*)[a-z]\w*(?=\s*:)/i,lookbehind:!0}},void 0);function M(dt){return{json:"js","c++":"cpp","c#":"csharp","objective-c":"objectivec",shell:"bash",viml:"vim",curl:"bash","node.js":"js"}[dt]||k}function G(dt,Pt=k){Pt=Pt.toLowerCase();let Nt=Prism.languages[Pt];return Nt||(Nt=Prism.languages[M(Pt)]),Prism.highlight(dt.toString(),Nt,Pt)}var K=e(1452),z=e(36505),Y=e(65556),ue=e(91696),_e=(dt,Pt,Nt)=>new Promise((xr,Ie)=>{var Vt=wr=>{try{ur(Nt.next(wr))}catch(Br){Ie(Br)}},hr=wr=>{try{ur(Nt.throw(wr))}catch(Br){Ie(Br)}},ur=wr=>wr.done?xr(wr.value):Promise.resolve(wr.value).then(Vt,hr);ur((Nt=Nt.apply(dt,Pt)).next())});function Re(dt){return _e(this,null,function*(){const Pt=new z.Config({}),Nt={config:Pt,base:ue.Qg?window.location.href:process.cwd()};ue.Qg&&(Pt.resolve.http.customFetch=e.g.fetch),typeof dt=="object"&&dt!==null?Nt.doc=xe(dt):Nt.ref=dt;const{bundle:{parsed:xr}}=yield(0,K.bundle)(Nt);return xr.swagger!==void 0?Ce(xr):xr})}function xe(dt){return{source:{absoluteRef:""},parsed:dt}}function Ce(dt){return dt.paths||(dt.paths={}),new Promise((Pt,Nt)=>(0,Y.convertObj)(dt,{patch:!0,warnOnly:!0,text:"{}",anchors:!0},(xr,Ie)=>{if(xr)return Nt(xr);Pt(Ie==null?void 0:Ie.openapi)}))}function te(dt){let Pt=1;return dt[0]==="-"&&(Pt=-1,dt=dt.substr(1)),function(Nt,xr){return Pt==-1?xr[dt].localeCompare(Nt[dt]):Nt[dt].localeCompare(xr[dt])}}function H(dt,Pt){return dt===void 0?Pt||!1:typeof dt=="string"?dt!=="false":dt}function j(dt,Pt=0){return typeof dt=="string"?parseInt(dt,10):typeof dt=="number"?dt:Pt}function ee(dt,Pt=0){return typeof dt=="string"?parseInt(dt,10):typeof dt=="number"?Math.ceil(dt):Pt}function F(dt,Pt=0){return dt==="all"?1/0:ee(dt,Pt)}var B=e(28507);const oe=Object.entries({fontSize:"font-size",fontWeight:"font-weight",fontFamily:"font-family",lineHeight:"line-height",color:"text-color",textTransform:"text-transform"});function ge(dt,Pt){const Nt={};for(const[xr,Ie]of oe){const Vt=`--${dt}-${Ie}`,hr=Pt?`,var(--${Pt}-${Ie})`:"";Nt[xr]=`var(${Vt}${hr})`}return Nt}function Te(dt,Pt){return B.iv`
|
|
1623
1623
|
${ge(dt,Pt)}
|
|
1624
1624
|
`}function Ne(dt,Pt,Nt){let xr,Ie=0;return function(...hr){Ie++;function ur(){Ie>1&&dt(...hr),Ie=0,xr=null}xr?clearTimeout(xr):Nt&&dt(...hr),xr=setTimeout(ur,Pt)}}function ze(dt){return dt.split("").map(Pt=>Pt+"\u0335").join("")}function ve(dt){return dt.replace(/[.[\]]/g,Pt=>({".":"%2e","[":"%5b","]":"%5d"})[Pt]||"")}function Le(dt){return dt.replace(/%2e|%5b|%5d/g,Pt=>({"%2e":".","%5b":"[","%5d":"]"})[Pt]||"")}function $(dt){return dt.replace(/\\/g,"%5C")}function de(dt,Pt){ue.Qg&&window.sessionStorage.setItem("redoc."+dt,Pt)}function Ue(dt){return ue.Qg&&window.sessionStorage.getItem("redoc."+dt)||""}function bt(dt,Pt){dt=ve(dt),de(`auth.${dt}.variants`,JSON.stringify(Pt))}function Fe(dt){dt=ve(dt);const Pt=Ue(`auth.${dt}`),Nt=Ue(`auth.${dt}.token`);return{raw:Pt,password:Ue(`auth.${dt}.password`),username:Ue(`auth.${dt}.username`),token:Nt&&JSON.parse(Nt)||null,client_id:Ue(`auth.${dt}.client_id`),client_secret:Ue(`auth.${dt}.client_secret`),scopes:Ue(`auth.${dt}.scopes`)}}function Oe(dt,Pt){dt=ve(dt),typeof Pt=="string"?de("auth."+dt,Pt):Pt&&(de(`auth.${dt}.password`,Pt.password||""),de(`auth.${dt}.username`,Pt.username||""),de(`auth.${dt}.token`,Pt.token&&JSON.stringify(Pt.token)||""),de(`auth.${dt}.client_id`,Pt.client_id||""),de(`auth.${dt}.client_secret`,Pt.client_secret||""),de(`auth.${dt}.scopes`,Pt.scopes&&JSON.stringify(Pt.scopes)||""))}function ye(dt,Pt){dt=ve(dt);const Nt=Ue(`auth.${dt}.variants`);if(!Nt)return null;const xr=JSON.parse(Nt);return!xr||!Array.isArray(xr)?null:xr.map(Ie=>Ie.details?Pt===""&&Ie.details&&typeof Ie.details=="string"?{label:Ie.label,value:Ie.details}:typeof Ie.details=="object"?{label:Ie.label,value:Ie.details[Pt]}:null:null).filter(Me)}function Me(dt){return dt!==null}function Qe(dt,Pt){ue.Qg&&window.localStorage.setItem("redoc."+dt,Pt)}function L(dt){return ue.Qg&&window.localStorage.getItem("redoc."+dt)||""}function Pe(dt,Pt){try{return JSON.parse(Ue(`${dt}.${Pt}`))}catch(Nt){return null}}function Q(dt,Pt,Nt){de(`${dt}.${Pt}`,JSON.stringify(Nt))}var fe=e(6330);const me=(dt,...Pt)=>Pt.reduce((Nt,xr)=>Ie=>Nt(xr(Ie)),dt);var Ae=e(28888);function Ve(dt,Pt){return Pt?decodeURIComponent(dt.pathname+dt.hash).includes(Pt):!1}function Et(dt,Pt=""){return decodeURIComponent(dt.pathname)===Pt||decodeURIComponent(dt.hash)===Pt||decodeURIComponent(dt.pathname+dt.hash)===Pt}function It(dt){return dt.startsWith("#")?`/${dt}`:dt}},61678:(_,i,e)=>{"use strict";e.d(i,{CX:()=>E,Dm:()=>Oe,L1:()=>de,M:()=>B,NL:()=>L,T4:()=>$,TE:()=>xe,TQ:()=>Qe,V_:()=>Le,Vg:()=>M,YS:()=>R,Yi:()=>K,Zd:()=>Ue,d$:()=>F,e$:()=>ye,eU:()=>D,ft:()=>Te,gr:()=>bt,lE:()=>ge,mE:()=>A,nq:()=>Fe,og:()=>z,qW:()=>Pe,rY:()=>I,ty:()=>G});var t=e(77410),o=e.n(t),c=e(11068),n=e.n(c),l=e(91696),p=e(1466),d=e(39889),u=e(95886),m=Object.defineProperty,v=Object.defineProperties,g=Object.getOwnPropertyDescriptors,P=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,x=(Q,fe,me)=>fe in Q?m(Q,fe,{enumerable:!0,configurable:!0,writable:!0,value:me}):Q[fe]=me,w=(Q,fe)=>{for(var me in fe||(fe={}))C.call(fe,me)&&x(Q,me,fe[me]);if(P)for(var me of P(fe))f.call(fe,me)&&x(Q,me,fe[me]);return Q},b=(Q,fe)=>v(Q,g(fe));function S(Q){return typeof Q=="string"&&/\dxx/i.test(Q)}function E(Q){return Q==="default"||(0,p.kE)(Q)||S(Q)}function R(Q,fe=!1){if(Q==="default")return fe?"error":"success";let me=typeof Q=="string"?parseInt(Q,10):Q;if(S(Q)&&(me*=100),me<100||me>599)throw new Error("invalid HTTP code");let Ae="success";return me>=300&&me<400?Ae="redirect":me>=400?Ae="error":me<200&&(Ae="info"),Ae}const T={get:!0,post:!0,put:!0,head:!0,patch:!0,delete:!0,options:!0,$ref:!0};function D(Q){return Q in T}function I(Q){const{operationId:fe,pathName:me}=Q,Ae=(0,p.bG)((0,p.Hm)(Q,"description"));return(0,p.bG)((0,p.Hm)(Q,"summary"))||fe||Ae&&Ae.substring(0,50)||me||"<no summary>"}function A(Q,fe){return(0,p.XO)(Q.operationId!==void 0?"operation/"+Q.operationId:fe!==void 0?fe.id+Q.pointer:Q.pointer)}const k={multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",maxLength:"string",minLength:"string",pattern:"string",contentEncoding:"string",contentMediaType:"string",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",maxProperties:"object",minProperties:"object",required:"object",additionalProperties:"object",unevaluatedProperties:"object",patternProperties:"object",properties:"object"};function M(Q){if(Q.type!==void 0&&!Array.isArray(Q.type))return Q.type;const fe=Object.keys(k);for(const me of fe){const Ae=k[me];if(Q[me]!==void 0)return Ae}return"any"}function G(Q,fe=Q.type){if(Q["x-circular-ref"])return!0;if(Q.oneOf!==void 0||Q.anyOf!==void 0||Q.if&&Q.then||Q.if&&Q.else)return!1;let me=!0;const Ae=Array.isArray(fe);return(fe==="object"||Ae&&(fe!=null&&fe.includes("object")))&&(me=Q.properties!==void 0?Object.keys(Q.properties).length===0:Q.additionalProperties===void 0&&Q.unevaluatedProperties===void 0&&Q.patternProperties===void 0),Array.isArray(Q.items)||Array.isArray(Q.prefixItems)?!1:(Q.items!==void 0&&typeof Q.items!="boolean"&&(fe==="array"||Ae&&(fe!=null&&fe.includes("array")))&&(me=G(Q.items,Q.items.type)),me)}function K(Q){return Q.search(/json/i)!==-1}function z(Q){return Q===d.Tr.URL_ENCODED}function Y(Q,fe,me){return Array.isArray(Q)?Q.map(Ae=>Ae.toString()).join(me):typeof Q=="object"?Object.keys(Q).map(Ae=>`${Ae}${me}${Q[Ae]}`).join(me):fe+"="+Q.toString()}function ue(Q,fe){return Array.isArray(Q)?(console.warn("deepObject style cannot be used with array value:"+Q.toString()),""):typeof Q=="object"?Object.keys(Q).map(me=>Q[me]?`${fe}[${me}]=${Q[me]}`:void 0).filter(Boolean).join("&"):(console.warn("deepObject style cannot be used with non-object value:"+Q.toString()),"")}function _e(Q,fe,me){const Ae="__redoc_param_name__",Ve=fe?"*":"";return n().parse(`{?${Ae}${Ve}}`).expand({[Ae]:me}).substring(1).replace(/__redoc_param_name__/g,Q)}function Re(Q,fe){const me=Q?"*":"",Ae="__redoc_param_name__",Ve=n().parse(`{${Ae}${me}}`);return decodeURIComponent(Ve.expand({[Ae]:fe}))}function xe(Q,fe={}){if(Array.isArray(Q))throw new Error("Payload must have fields: "+Q.toString());return Object.keys(Q).map(me=>{const Ae=Q[me],{style:Ve="form",explode:Et=!0}=fe[me]||{};switch(Ve){case"form":return _e(me,Et,Ae);case"spaceDelimited":return Y(Ae,me,"%20");case"pipeDelimited":return Y(Ae,me,"|");case"deepObject":return ue(Ae,me);default:return console.warn("Incorrect or unsupported encoding style: "+Ve),""}}).join("&")}function Ce(Q,fe,me,Ae){const Ve=me?"*":"";let Et="";fe==="label"?Et=".":fe==="matrix"&&(Et=";");const It="__redoc_param_name__";return n().parse(`{${Et}${It}${Ve}}`).expand({[It]:Ae}).replace(/__redoc_param_name__/g,Q)}function te(Q,fe,me,Ae){const Ve=Et=>{switch(fe){case"form":return _e(Q,me,Et);case"spaceDelimited":return Array.isArray(Et)?me?_e(Q,me,Et):`${Q}=${Et.join("%20")}`:(console.warn("The style spaceDelimited is only applicable to arrays"),"");case"pipeDelimited":return Array.isArray(Et)?me?_e(Q,me,Et):`${Q}=${Et.join("|")}`:(console.warn("The style pipeDelimited is only applicable to arrays"),"");case"deepObject":return!me||Array.isArray(Et)||typeof Et!="object"?(console.warn("The style deepObject is only applicable for objects with explode=true"),""):ue(Et,Q);case"simple":return Re(me,Ae);default:return console.warn("Unexpected style for query: "+fe),""}};return(0,p.Pj)(Ae)&&(Ae=(0,p.zD)(Ae).map(Et=>Ve(Et))),Ve(Ae)}function H(Q,fe,me){switch(Q){case"simple":return Re(fe,me);default:return console.warn("Unexpected style for header: "+Q),""}}function j(Q,fe,me,Ae){switch(fe){case"form":return _e(Q,me,Ae);default:return console.warn("Unexpected style for cookie: "+fe),""}}function ee(Q,fe){return K(fe)?JSON.stringify(Q):(console.warn(`Parameter serialization as ${fe} is not supported`),"")}function F(Q,fe){const{name:me,style:Ae,explode:Ve=!1,serializationMime:Et}=Q;if(Et)switch(Q.in){case"path":case"header":return ee(fe,Et);case"cookie":case"query":return`${me}=${ee(fe,Et)}`;default:return console.warn("Unexpected parameter location: "+Q.in),""}if(!Ae)return console.warn(`Missing style attribute or content for parameter ${me}`),"";switch(Q.in){case"path":return Ce(me,Ae,Ve,fe);case"query":return te(me,Ae,Ve,fe);case"header":return H(Ae,Ve,fe);case"cookie":return j(me,Ae,Ve,fe);default:return console.warn("Unexpected parameter location: "+Q.in),""}}function B(Q){return Q.search(/xml/i)!==-1?"xml":"clike"}const oe=/^#\/components\/(schemas|pathItems)\/([^/]+)$/;function ge(Q){return oe.test(Q||"")}function Te(Q){var fe;return(fe=Q==null?void 0:Q.match(oe))==null?void 0:fe.pop()}function Ne(Q){if(Q===void 0)return;const fe=Q.toString(10);return/^0\.0*1$/.test(fe)?`decimal places <= ${fe.split(".")[1].length}`:`multiple of ${fe}`}function ze(Q,fe,me){let Ae;return fe!==void 0&&me!==void 0?fe===me?Ae=`= ${fe} ${Q}`:Ae=`[ ${fe} .. ${me} ] ${Q}`:me!==void 0?Ae=`<= ${me} ${Q}`:fe!==void 0&&(fe===1?Ae="non-empty":Ae=`>= ${fe} ${Q}`),Ae}function ve(Q){var fe,me;const Ae=typeof Q.exclusiveMinimum=="number"?Math.min(Q.exclusiveMinimum,(fe=Q.minimum)!=null?fe:1/0):Q.minimum,Ve=typeof Q.exclusiveMaximum=="number"?Math.max(Q.exclusiveMaximum,(me=Q.maximum)!=null?me:-1/0):Q.maximum,Et=typeof Q.exclusiveMinimum=="number"||Q.exclusiveMinimum,It=typeof Q.exclusiveMaximum=="number"||Q.exclusiveMaximum;if(Ae!==void 0&&Ve!==void 0)return`${Et?"( ":"[ "}${Ae} .. ${Ve}${It?" )":" ]"}`;if(Ve!==void 0)return`${It?"< ":"<= "}${Ve}`;if(Ae!==void 0)return`${Et?"> ":">= "}${Ae}`}function Le(Q){const fe=[],me=ze("characters",Q.minLength,Q.maxLength);me!==void 0&&fe.push(me);const Ae=ze("items",Q.minItems,Q.maxItems);Ae!==void 0&&fe.push(Ae);const Ve=ze("properties",Q.minProperties,Q.maxProperties);Ve!==void 0&&fe.push(Ve);const Et=Ne(Q.multipleOf);Et!==void 0&&fe.push(Et);const It=ve(Q);return It!==void 0&&fe.push(It),Q.uniqueItems&&fe.push("unique"),fe}function $(Q,fe=[]){const me=[],Ae=[],Ve=[];return Q.forEach(Et=>{Et.required?fe.includes(Et.name)?Ae.push(Et):Ve.push(Et):me.push(Et)}),Ae.sort((Et,It)=>fe.indexOf(Et.name)-fe.indexOf(It.name)),[...Ae,...Ve,...me]}function de(Q,fe){return[...Q].sort((me,Ae)=>me[fe].localeCompare(Ae[fe]))}function Ue(Q,fe=[],me=[],{pathPointer:Ae,operationPointer:Ve}){const Et={};me.forEach(Pt=>{({resolved:Pt}=Q.deref(Pt)),Et[Pt.name+"_"+Pt.in]=!0});const It=fe.map((Pt,Nt)=>({paramOrRef:Pt,pointer:u.I.join(Ae,["parameters",String(Nt)])})).filter(({paramOrRef:Pt})=>({resolved:Pt}=Q.deref(Pt),!Et[Pt.name+"_"+Pt.in])),dt=me.map((Pt,Nt)=>({paramOrRef:Pt,pointer:u.I.join(Ve,["parameters",String(Nt)])}));return[...It,...dt]}function bt(Q){const fe={};return Object.keys(Q).forEach(me=>{const Ae=Q[me],Ve=me.split(";")[0].trim();if(!fe[Ve]){fe[Ve]=Ae;return}fe[Ve]=w(w({},fe[Ve]),Ae)}),fe}function Fe(Q,fe={}){return Q.replace(/(?:{)([\w-.]+)(?:})/g,(me,Ae)=>fe[Ae]&&fe[Ae].default||me)}function Oe(Q,fe){const me=()=>{if(!l.Qg)return"";const Et=window.location.href;return Et.endsWith(".html")?(0,t.dirname)(Et):Et},Ae=Q===void 0?(0,p.jZ)(me()):(0,t.dirname)(Q);fe.length===0&&(fe=[{url:"/"}]);function Ve(Et){return(0,p.Kk)(Ae,Et)}return fe.map(Et=>b(w({},Et),{url:Ve(Et.url),description:Et.description||""}))}const ye=Q=>({delete:"del",options:"opts"})[Q]||Q;function Me(Q){return Q in{"x-circular-ref":!0,"x-parentRefs":!0,"x-refsStack":!0,"x-code-samples":!0,"x-codeSamples":!0,"x-displayName":!0,"x-examples":!0,"x-ignoredHeaderParameters":!0,"x-logo":!0,"x-nullable":!0,"x-servers":!0,"x-tagGroups":!0,"x-traitTag":!0,"x-additionalPropertiesName":!0,"x-explicitMappingOnly":!0,"x-enumDescriptions":!0,"x-hideTryItPanel":!0,"x-tokenEndpointAuthMethod":!0,"x-feedback":!0}||Q.startsWith("x-parsed-md-")}function Qe(Q,fe){return Object.keys(Q).filter(me=>fe===!0?me.startsWith("x-")&&!Me(me):me.startsWith("x-")&&fe.indexOf(me)>-1).reduce((me,Ae)=>(me[Ae]=Q[Ae],me),{})}function L(Q){return Q.split(" or ").map(fe=>fe.replace(/^(string|object|number|integer|array|boolean)s?( ?.*)/,"$1s$2")).join(" or ")}function Pe(Q){let fe=Q.content;const me=Q["x-examples"],Ae=Q["x-example"];if(me){fe=w({},fe);for(const Ve of Object.keys(me)){const Et=me[Ve];fe[Ve]=b(w({},fe[Ve]),{examples:Et})}}else if(Ae){fe=w({},fe);for(const Ve of Object.keys(Ae)){const Et=Ae[Ve];fe[Ve]=b(w({},fe[Ve]),{example:Et})}}return fe}},28888:(_,i,e)=>{"use strict";e.d(i,{t:()=>n});var t=e(51342),o=e(6330),c=e(93266);function n(p,d){if(!(0,o.HD)(p)&&(p!=null&&p.result)){const v=(0,c.I8)(p),g=t.wS.fromJSON(v==null?void 0:v.result);if(Array.isArray(g))for(const P of g)l(P,d);else l(g,d);return v.result=JSON.stringify(g),v.raw=n(v.raw,d),v}const u=new RegExp(`^#{1,${d}}?\\s+`,"m"),m=p.search(u);return m>-1?p.substring(0,m):p}function l(p,d){const u=p.children.findIndex(m=>m.type==="heading"&&m.attributes.level<=d);return u===-1||(p.children=p.children.slice(0,u)),p}},6330:(_,i,e)=>{"use strict";e.d(i,{HD:()=>c,o8:()=>t});function t(n){return n===void 0}function o(n){return n===null}function c(n){return typeof n=="string"}},22012:(_,i,e)=>{"use strict";e.d(i,{v:()=>P,z:()=>x});var t=e(29901),o=e(28507),c=e(1051),n=Object.defineProperty,l=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,u=(w,b,S)=>b in w?n(w,b,{enumerable:!0,configurable:!0,writable:!0,value:S}):w[b]=S,m=(w,b)=>{for(var S in b||(b={}))p.call(b,S)&&u(w,S,b[S]);if(l)for(var S of l(b))d.call(b,S)&&u(w,S,b[S]);return w};const v=()=>o.F4`
|
|
1625
1625
|
0% {
|
|
@@ -6119,7 +6119,7 @@ box-sizing: border-box;
|
|
|
6119
6119
|
* Redocly OpenAPI Docs
|
|
6120
6120
|
* (c) Copyright 2018 Redocly LLC, all rights reserved.
|
|
6121
6121
|
* -------------------------------------------------------------
|
|
6122
|
-
* Version: "3.0.0-alpha.
|
|
6122
|
+
* Version: "3.0.0-alpha.30"
|
|
6123
6123
|
*/(()=>{var Y={818:(x,E,T)=>{var j,C;/**
|
|
6124
6124
|
* lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.9
|
|
6125
6125
|
* Copyright (C) 2020 Oliver Nightingale
|
|
@@ -7076,4 +7076,4 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
7076
7076
|
margin-left: -${ou}px;
|
|
7077
7077
|
`;var Ud=Zr(28888),ls=Zr(1466),Lu=Zr(12072),bc=Zr(80675),Dd=Zr(61678);function Fc({item:{infoDefinition:N}}){const{options:{markdownHeadingsAnchorLevel:X,hooks:ne,hideDownloadButton:Ze,expandDefaultServerVariables:lt,mockServer:Ot,hideInfoSection:Mt,hideInfoDescription:zt},parser:{definition:ir,definitionUrl:tr}}=(0,B.useRecoilValue)(Qe.cS),on=(0,B.useRecoilValue)(Xn.JV),fn=(0,B.useRecoilValue)(Xn.QL);if(!N||Mt)return null;const Dn=zt?null:(0,Ud.t)((0,ls.Hm)(N,"description")||"",X),lo=(0,ls.Hm)(N,"summary")||void 0,ho=ir==null?void 0:ir.externalDocs,Ao=(0,Dd.Dm)(tr,(0,Pu.E$)(ir.servers||[],Ot)),Bo=N.license&&f.createElement(jc,null,"License:"," ",N.license.identifier?N.license.identifier:f.createElement("a",{href:N.license.url},N.license.name))||null,ao=N.contact&&N.contact.url&&f.createElement(jc,null,"URL: ",f.createElement("a",{href:N.contact.url},N.contact.url))||null,ja=N.contact&&N.contact.email&&f.createElement(jc,null,N.contact.name||"E-mail",":"," ",f.createElement("a",{href:"mailto:"+N.contact.email},N.contact.email))||null,Fa=N.termsOfService&&f.createElement(jc,null,f.createElement("a",{href:N.termsOfService},"Terms of Service"))||null,Qa=N.version&&f.createElement("span",null,"(",N.version,")")||null;return f.createElement(T.$0,null,f.createElement(T.X2,{layout:fn},f.createElement(T.K3,{className:"api-info"},f.createElement($u,null,N.title," ",Qa),f.createElement(Vi.Q,{Hook:ne==null?void 0:ne.AfterApiTitle,props:{info:N}}),!Ze&&f.createElement(nl.C,{wrapped:!0}),f.createElement(Tt.StyledMarkdownBlock,null,(N.license||N.contact||N.termsOfService)&&f.createElement(cd,null,f.createElement(yc,null,ja," ",ao," ",Bo," ",Fa))||null),lo&&f.createElement(Tt.Markdown,{source:lo,"data-role":"redoc-summary"}),Dn&&f.createElement(Tt.Markdown,{source:Dn,"data-role":"redoc-description"}),ho&&f.createElement(Or,{externalDocs:ho})),on&&Ao.length?f.createElement(ud,{"data-cy":"samples-block"},f.createElement(bc.s,{className:"panel-try-it",header:"Servers",expanded:!0},f.createElement(Lu.S,{servers:Ao,path:"/",expandVariables:Boolean(lt),hideHostname:!1}))):null))}const ud=(0,E.ZP)(T.od)`
|
|
7078
7078
|
margin-top: calc(var(--h1-font-size) * 1.5);
|
|
7079
|
-
`,$d={group:null,tag:xs,section:Wl,schema:xs,operation:ld,root:Fc};function dd({item:N,withChildren:X=!0}){var ne;const Ze=$d[Q(N)?"root":N.type];return f.createElement(f.Fragment,null,Ze&&f.createElement(T.$0,{id:N.id,sectionId:N.id,underlined:N.type==="operation"||N.type==="schema"},f.createElement(Ze,{item:N})),X&&Boolean((ne=N.items)==null?void 0:ne.length)&&f.createElement(Mu,{items:N.items}))}const Bc=(0,f.memo)(dd);function fd({items:N,pagination:X,nextSectionLink:ne,showNextButton:Ze}){const lt=(0,f.useMemo)(()=>X===oe.Pagination.None?N:N==null?void 0:N.filter(Ot=>Ot.type==="section"),[N,X]);return f.createElement(f.Fragment,null,lt.map(Ot=>f.createElement(Bc,{key:Ot.id,item:Ot})),Ze&&ne&&f.createElement(D,{href:ne.href||"",label:ne.name,pagination:X}))}function au({tag:N,nextSectionLink:X,pagination:ne,showNextButton:Ze}){return f.createElement(f.Fragment,null,f.createElement(Bc,{key:N.id,item:N,withChildren:ne!==oe.Pagination.Item}),ne===oe.Pagination.Item&&f.createElement(fd,{items:N.items||[],pagination:ne,showNextButton:!1}),Ze&&X&&f.createElement(D,{href:X.href||"",label:X.name,pagination:ne}))}function pd(N){const X=(0,Ie.TH)();(0,f.useEffect)(()=>{if(N)return;let ne;return b.Qg&&(X.hash===""?window.scrollTo(0,0):ne=setTimeout(()=>{const Ze=X.hash.replace("#",""),lt=document.getElementById(decodeURIComponent(Ze));lt&<.scrollIntoView()},0)),()=>{clearTimeout(ne)}},[N,X])}let Nu=!0;function hd({items:N,root:X=!1}){const{pagination:ne,showNextButton:Ze,disablePaginationLoadingAnimation:lt}=(0,B.useRecoilValue)(Qe.lk),[Ot,Mt]=(0,f.useState)(b.Qg&&!Nu&&!lt);(0,f.useEffect)(()=>{const ho=setTimeout(()=>{Mt(!1)},200);return Nu=!1,()=>{clearTimeout(ho)}},[]),pd(Ot);const{groupItems:zt,tagItems:ir,operationItems:tr,rootItem:on}=fe(N),fn=!X||on?"/":me(N)||"/",Dn=(0,f.useCallback)((ho,Ao)=>ho==null?void 0:ho.map((Bo,ao)=>{var ja;const Fa=Pe({groupItems:zt,groupIdx:Ao,tagIdx:ao});switch(ne){case oe.Pagination.Item:return f.createElement(Ie.AW,{key:Bo.id,path:Bo.id},f.createElement(Ie.AW,{index:!0,element:Bo.type==="operation"?f.createElement(Bc,{key:Bo.id,item:Bo}):f.createElement(au,{tag:Bo,nextSectionLink:Fa,pagination:ne,showNextButton:Ze})}),(ja=Bo.items)==null?void 0:ja.map(Qa=>{const oi=Pe({groupItems:zt,groupIdx:Ao,tagIdx:ao});return f.createElement(Ie.AW,{key:Qa.id,path:Qa.id,element:f.createElement(au,{tag:Qa,nextSectionLink:oi,pagination:ne,showNextButton:Ze})})}));case oe.Pagination.Section:return f.createElement(Ie.AW,{key:Bo.id,path:Bo.id,element:f.createElement(au,{tag:Bo,nextSectionLink:Fa,pagination:ne,showNextButton:Ze})});default:return null}}),[zt,ne,Ze]),lo=(0,f.useMemo)(()=>f.createElement(Ie.Z5,null,on&&f.createElement(Ie.AW,{path:on.href||"/",element:f.createElement(fd,{items:N,nextSectionLink:Pe({groupItems:zt,groupIdx:0,tagIdx:0}),pagination:ne,showNextButton:Ze})}),zt.length?zt.map((ho,Ao)=>Dn(ho.items,Ao)):Dn(ir,0),tr.length&&Dn(tr,0),f.createElement(Ie.AW,{path:"*",element:f.createElement(Ie.Fg,{to:fn,replace:!0})})),[on,N,zt,ne,Ze,Dn,ir,tr,fn]);return X&&!N.length?f.createElement(Ie.Z5,null,f.createElement(Ie.AW,{path:"*",element:f.createElement(fd,{items:N,nextSectionLink:Pe({groupItems:zt,groupIdx:0,tagIdx:0}),pagination:ne,showNextButton:Ze})})):N.length?Ot?f.createElement("div",{style:{flex:1,width:"100%"}},f.createElement(T.Od,null)):f.createElement(f.Fragment,null,X?f.createElement(f.Fragment,null,lo,ne===oe.Pagination.Section&&!!tr.length&&tr.map(ho=>f.createElement(Bc,{key:ho.id,item:ho}))):N.map(ho=>f.createElement(Bc,{key:ho.id,item:ho}))):null}const Mu=(0,f.memo)(hd);function md(N){return N.displayName||N.name||"Component"}var ju=Object.defineProperty,vd=Object.defineProperties,Fu=Object.getOwnPropertyDescriptors,El=Object.getOwnPropertySymbols,gd=Object.prototype.hasOwnProperty,iu=Object.prototype.propertyIsEnumerable,Ec=(N,X,ne)=>X in N?ju(N,X,{enumerable:!0,configurable:!0,writable:!0,value:ne}):N[X]=ne,Sl=(N,X)=>{for(var ne in X||(X={}))gd.call(X,ne)&&Ec(N,ne,X[ne]);if(El)for(var ne of El(X))iu.call(X,ne)&&Ec(N,ne,X[ne]);return N},Fo=(N,X)=>vd(N,Fu(X)),Bi=(N,X)=>{var ne={};for(var Ze in N)gd.call(N,Ze)&&X.indexOf(Ze)<0&&(ne[Ze]=N[Ze]);if(N!=null&&El)for(var Ze of El(N))X.indexOf(Ze)<0&&iu.call(N,Ze)&&(ne[Ze]=N[Ze]);return ne};function ui(N){const X=ne=>{var Ze=ne,{enableRouter:lt=!0}=Ze,Ot=Bi(Ze,["enableRouter"]),Mt,zt;const ir=(Mt=Ot.basePath)!=null?Mt:"/",tr=(zt=Ot.router)!=null?zt:"history",{Router:on,routerProps:fn}=(0,F.tv)(tr,ir);return b.Qg&<?f.createElement(on,Fo(Sl({},fn),{key:ir}),f.createElement(N,Sl({},Ot))):f.createElement(N,Sl({},Ot))};return X.displayName=`WithRouter(${md(N)})`,X}var Ii=Object.defineProperty,Yl=Object.defineProperties,Bu=Object.getOwnPropertyDescriptors,qa=Object.getOwnPropertySymbols,Uc=Object.prototype.hasOwnProperty,wl=Object.prototype.propertyIsEnumerable,Sc=(N,X,ne)=>X in N?Ii(N,X,{enumerable:!0,configurable:!0,writable:!0,value:ne}):N[X]=ne,wc=(N,X)=>{for(var ne in X||(X={}))Uc.call(X,ne)&&Sc(N,ne,X[ne]);if(qa)for(var ne of qa(X))wl.call(X,ne)&&Sc(N,ne,X[ne]);return N},Uu=(N,X)=>Yl(N,Bu(X)),su=(N,X)=>{var ne={};for(var Ze in N)Uc.call(N,Ze)&&X.indexOf(Ze)<0&&(ne[Ze]=N[Ze]);if(N!=null&&qa)for(var Ze of qa(N))X.indexOf(Ze)<0&&wl.call(N,Ze)&&(ne[Ze]=N[Ze]);return ne};function Jl(N){return ne=>{var Ze=ne,{portalOptions:lt}=Ze,Ot=su(Ze,["portalOptions"]);const[Mt,zt]=(0,B.useRecoilState)(Xn.QL),[ir,tr]=(0,B.useRecoilState)(Xn.JV),[on,fn]=(0,B.useRecoilState)(Xn.Bk),{options:Dn,versions:lo}=(0,B.useRecoilValue)(Qe.cr);(0,f.useEffect)(()=>{lt!=null&<.layout&&zt(lt.layout)},[lt==null?void 0:lt.layout,zt]),(0,f.useEffect)(()=>{typeof(lt==null?void 0:lt.collapsedSidebar)=="boolean"&&fn(lt.collapsedSidebar)},[lt==null?void 0:lt.collapsedSidebar,fn]),(0,f.useEffect)(()=>{typeof(lt==null?void 0:lt.showRightPanelToggle)=="boolean"&&tr(lt.showRightPanelToggle)},[lt==null?void 0:lt.showRightPanelToggle,tr]);const[ho,Ao]=(0,B.useRecoilState)(Xn.TK),Bo=(0,f.useCallback)(({idx:ao})=>{ao&&Ao(ao)},[Ao]);return f.createElement(N,Uu(wc({},Ot),{options:Dn,versions:lo,layout:Mt,showRightPanelToggle:ir,activeVersionIdx:ho,onChangeActiveVersion:Bo,collapsedSidebar:on}))}}var xl=(N,X,ne)=>new Promise((Ze,lt)=>{var Ot=ir=>{try{zt(ne.next(ir))}catch(tr){lt(tr)}},Mt=ir=>{try{zt(ne.throw(ir))}catch(tr){lt(tr)}},zt=ir=>ir.done?Ze(ir.value):Promise.resolve(ir.value).then(Ot,Mt);zt((ne=ne.apply(N,X)).next())});function zs(N){return"then"in N?N:new Promise(X=>{N.oncomplete=ne=>{X(ne.target.result)}})}function oo(N){const X=new ArrayBuffer(N.length),ne=new Uint8Array(X);for(let Ze=0,lt=N.length;Ze<lt;Ze++)ne[Ze]=N.charCodeAt(Ze);return X}const zc=()=>{var N;const X=oo(atob("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMHjNir5fXx/ZXoaEeXQ5XyxbNJ4YJYczoCRdSkL6NLzw1FHnng5Vfcgk5+bvox9QRYRbuk84mA4f2NhywDbXKECAwEAAQ=="));return zs((N=L.EA)==null?void 0:N.subtle.importKey("spki",X,{name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},!0,["verify"]))};function Ol(N){if(window.TextEncoder)return new TextEncoder().encode(N);const X=unescape(encodeURIComponent(N)),ne=new Uint8Array(X.length);for(let Ze=0;Ze<X.length;Ze++)ne[Ze]=X.charCodeAt(Ze);return ne}function Vs(N,X){return xl(this,null,function*(){var ne;return zs((ne=L.EA)==null?void 0:ne.subtle.verify({name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},yield zc(),oo(atob(X)),Ol(N)))})}function Ws(N,X){return X===!0?!0:Array.isArray(X)&&typeof window!="undefined"?N==="localhost"||N==="127.0.0.1"||N.endsWith(".localhost")||X.find(ne=>ne===N||N.endsWith("."+ne))?!0:!!X.find(ne=>{if(ne.indexOf("*")!==ne.lastIndexOf("*"))return;const[Ze,lt]=ne.split("*");return lt&&N.startsWith(Ze)&&N.endsWith(lt)&<.split(".").length>2}):!1}function Xl(N){return xl(this,null,function*(){const X=window.location.hostname;if(!N)return X==="localhost"||X==="127.0.0.1"||X.endsWith(".localhost")?{local:!0}:{};const[ne,Ze]=N.split(".");let lt;try{if(!(yield Vs(atob(ne),Ze)))return{valid:!1};lt=JSON.parse(atob(ne))}catch(Ot){return{valid:!1,cryptoMissing:!0}}return lt.valid=!0,(!lt.e||Date.now()/1e3>lt.e)&&(lt.expired=!0),lt.allowed=Ws(X,lt.h),lt})}var Hs=(N,X,ne)=>new Promise((Ze,lt)=>{var Ot=ir=>{try{zt(ne.next(ir))}catch(tr){lt(tr)}},Mt=ir=>{try{zt(ne.throw(ir))}catch(tr){lt(tr)}},zt=ir=>ir.done?Ze(ir.value):Promise.resolve(ir.value).then(Ot,Mt);zt((ne=ne.apply(N,X)).next())});function lu(N){const[X,ne]=(0,f.useState)({});return(0,f.useEffect)(()=>{function Ze(){return Hs(this,null,function*(){const lt=yield Xl(N);ne(lt)})}Ze()},[N]),{licenseInfo:X,isValid:zu(X)}}function zu(N){return N.valid&&N.allowed&&!N.expired||!!N.local}var Ui=Object.defineProperty,cs=Object.defineProperties,cu=Object.getOwnPropertyDescriptors,Vc=Object.getOwnPropertySymbols,ol=Object.prototype.hasOwnProperty,uu=Object.prototype.propertyIsEnumerable,xc=(N,X,ne)=>X in N?Ui(N,X,{enumerable:!0,configurable:!0,writable:!0,value:ne}):N[X]=ne,du=(N,X)=>{for(var ne in X||(X={}))ol.call(X,ne)&&xc(N,ne,X[ne]);if(Vc)for(var ne of Vc(X))uu.call(X,ne)&&xc(N,ne,X[ne]);return N},Gi=(N,X)=>cs(N,cu(X));const Pl=(0,b.qC)(ui,Jl,f.memo)(({licenseKey:N,onLoaded:X,children:ne,options:Ze,versions:lt,layout:Ot,showRightPanelToggle:Mt,activeVersionIdx:zt,onChangeActiveVersion:ir,collapsedSidebar:tr})=>{var on,fn,Dn,lo,ho;const Ao=(0,f.useRef)(null),{isValid:Bo,licenseInfo:ao}=lu(N);(0,S.useMount)(()=>{X==null||X()});const{disableSidebar:ja,whiteLabel:Fa,hideLogo:Qa,hideFab:oi,scrollYOffset:wi}=Ze||{},Cs=lt[zt].parser,{flatItems:As,contentItems:zi}=(0,F.le)({parser:Cs,options:Ze});if(!lt.length)return null;const xi=(fn=(on=Cs.definition)==null?void 0:on.info)==null?void 0:fn["x-logo"];return f.createElement(Ms,{options:Ze},f.createElement(S.GlobalStyle,null),f.createElement(Yc,{className:"redoc-wrap",ref:Ao},!Bo&&f.createElement($o,{licenseInfo:ao}),f.createElement(Rt,{whiteLabel:Fa,showRightPanelToggle:Mt,layout:Ot}),!ja&&f.createElement(Xa,{hideFab:oi,scrollYOffset:wi,className:"menu-content",collapsedSidebar:!tr},!Qa&&f.createElement(S.SidebarLogo,{imageUrl:xi==null?void 0:xi.url,href:(xi==null?void 0:xi.href)||((ho=(lo=(Dn=Cs.definition)==null?void 0:Dn.info)==null?void 0:lo.contact)==null?void 0:ho.url),altText:xi==null?void 0:xi.altText,backgroundColor:xi==null?void 0:xi.backgroundColor}),lt.length>1&&f.createElement(ki,{versions:lt,activeVersionIdx:zt,onChange:ir}),f.createElement(ce,{contentItems:zi,flatItems:As,options:Ze}),f.createElement(at,{items:Bo?zi:[]})),f.createElement(vl,{className:"api-content",id:"api-content",layout:Ot===S.LayoutVariant.THREE_PANEL&&Mt?S.LayoutVariant.THREE_PANEL:S.LayoutVariant.STACKED,collapsedSidebar:tr},Mt&&Ot!==S.LayoutVariant.STACKED&&f.createElement(ji,null),f.createElement(Mu,{root:!0,items:Bo?zi:[]}),ne),Mt&&Ot!==S.LayoutVariant.STACKED&&f.createElement(kc,null)))});function Ks({onLoaded:N,_forceRenderInfo:X,children:ne,store:Ze}){var lt,Ot,Mt;return Ze!=null&&Ze.definition?f.createElement(rl,Gi(du({},Ze),{_forceRenderInfo:X}),f.createElement(Pl,{onLoaded:N,basePath:(lt=Ze.options)==null?void 0:lt.routingBasePath,licenseKey:(Ot=Ze.options)==null?void 0:Ot.licenseKey,enableRouter:(Mt=Ze.options)==null?void 0:Mt.enableRouter,portalOptions:Ze==null?void 0:Ze.portalOptions},ne)):null}function Cl({definition:N,definitionUrl:X,options:ne={},activeItemId:Ze,activeSampleLanguage:lt,activeDeepLink:Ot}){const Mt=f.createElement(Ss,{definition:N,definitionUrl:X,options:ne,activeItemId:Ze,activeSampleLanguage:lt,activeDeepLink:Ot},f.createElement(Ks,null));return ne.disableErrorBoundary?Mt:f.createElement(pc,null,Mt)}function us({definitions:N,options:X={}}){return f.createElement(pc,null,f.createElement(Ss,{definitions:N,options:X},f.createElement(Ks,null)))}var Vu=Zr(57047),Wc=Zr(86472),Wu=Zr(4944),Ld=Object.defineProperty,yd=Object.defineProperties,bd=Object.getOwnPropertyDescriptors,Hc=Object.getOwnPropertySymbols,fu=Object.prototype.hasOwnProperty,Oc=Object.prototype.propertyIsEnumerable,Pc=(N,X,ne)=>X in N?Ld(N,X,{enumerable:!0,configurable:!0,writable:!0,value:ne}):N[X]=ne,ql=(N,X)=>{for(var ne in X||(X={}))fu.call(X,ne)&&Pc(N,ne,X[ne]);if(Hc)for(var ne of Hc(X))Oc.call(X,ne)&&Pc(N,ne,X[ne]);return N},Cc=(N,X)=>yd(N,bd(X));function Nd(N){const X=(0,w.$l)(Xn.VB);(0,w.z8)(Xn.VB,Cc(ql({},X),{layout:N}))}function Ed(N){const X=(0,w.$l)(Xn.zD);(0,w.z8)(Xn.zD,Cc(ql({},X),{showRightPanelToggle:N}))}const Hu=(0,b.uW)(),Sd=Hu?(0,C.dirname)(Hu)+"/":"";function ec(N){const X={},ne=N.attributes;for(let Ze=0;Ze<ne.length;Ze++){const lt=ne[Ze];X[lt.name]=lt.value}return X}function wd(N){const X=ec(N),ne={};for(const Ze in X){const lt=Ze.replace(/-(.)/g,(Ot,Mt)=>Mt.toUpperCase());ne[lt]=X[Ze]}return ne}function Md(N,X=document.querySelector("redoc")){(0,x.hydrate)(f.createElement(Ks,{store:N}),X)}function al(N,X={},ne=(0,b.R2)("redoc"),Ze){if(ne===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');let lt,Ot;if(typeof N=="object"&&"versions"in N){(0,x.render)(f.createElement(us,{definitions:N,options:ql(ql({},X),wd(ne))},["Loading..."]),ne,Ze);return}typeof N=="string"?lt=N:typeof N=="object"&&(Ot=N),(0,x.render)(f.createElement(Cl,{definition:Ot,definitionUrl:lt,options:ql(ql({},X),wd(ne))},["Loading..."]),ne,Ze)}function il(N){Zr.p=N}const xd="3.0.0-alpha.29",jd="8b1aef6";function Od(){const N=(0,b.R2)("redoc");if(!N)return;const X=N.getAttribute("spec-url");X&&al(X,{},N)}b.Qg&&il(Sd),Od()})(),Gu})());
|
|
7079
|
+
`,$d={group:null,tag:xs,section:Wl,schema:xs,operation:ld,root:Fc};function dd({item:N,withChildren:X=!0}){var ne;const Ze=$d[Q(N)?"root":N.type];return f.createElement(f.Fragment,null,Ze&&f.createElement(T.$0,{id:N.id,sectionId:N.id,underlined:N.type==="operation"||N.type==="schema"},f.createElement(Ze,{item:N})),X&&Boolean((ne=N.items)==null?void 0:ne.length)&&f.createElement(Mu,{items:N.items}))}const Bc=(0,f.memo)(dd);function fd({items:N,pagination:X,nextSectionLink:ne,showNextButton:Ze}){const lt=(0,f.useMemo)(()=>X===oe.Pagination.None?N:N==null?void 0:N.filter(Ot=>Ot.type==="section"),[N,X]);return f.createElement(f.Fragment,null,lt.map(Ot=>f.createElement(Bc,{key:Ot.id,item:Ot})),Ze&&ne&&f.createElement(D,{href:ne.href||"",label:ne.name,pagination:X}))}function au({tag:N,nextSectionLink:X,pagination:ne,showNextButton:Ze}){return f.createElement(f.Fragment,null,f.createElement(Bc,{key:N.id,item:N,withChildren:ne!==oe.Pagination.Item}),ne===oe.Pagination.Item&&f.createElement(fd,{items:N.items||[],pagination:ne,showNextButton:!1}),Ze&&X&&f.createElement(D,{href:X.href||"",label:X.name,pagination:ne}))}function pd(N){const X=(0,Ie.TH)();(0,f.useEffect)(()=>{if(N)return;let ne;return b.Qg&&(X.hash===""?window.scrollTo(0,0):ne=setTimeout(()=>{const Ze=X.hash.replace("#",""),lt=document.getElementById(decodeURIComponent(Ze));lt&<.scrollIntoView()},0)),()=>{clearTimeout(ne)}},[N,X])}let Nu=!0;function hd({items:N,root:X=!1}){const{pagination:ne,showNextButton:Ze,disablePaginationLoadingAnimation:lt}=(0,B.useRecoilValue)(Qe.lk),[Ot,Mt]=(0,f.useState)(b.Qg&&!Nu&&!lt);(0,f.useEffect)(()=>{const ho=setTimeout(()=>{Mt(!1)},200);return Nu=!1,()=>{clearTimeout(ho)}},[]),pd(Ot);const{groupItems:zt,tagItems:ir,operationItems:tr,rootItem:on}=fe(N),fn=!X||on?"/":me(N)||"/",Dn=(0,f.useCallback)((ho,Ao)=>ho==null?void 0:ho.map((Bo,ao)=>{var ja;const Fa=Pe({groupItems:zt,groupIdx:Ao,tagIdx:ao});switch(ne){case oe.Pagination.Item:return f.createElement(Ie.AW,{key:Bo.id,path:Bo.id},f.createElement(Ie.AW,{index:!0,element:Bo.type==="operation"?f.createElement(Bc,{key:Bo.id,item:Bo}):f.createElement(au,{tag:Bo,nextSectionLink:Fa,pagination:ne,showNextButton:Ze})}),(ja=Bo.items)==null?void 0:ja.map(Qa=>{const oi=Pe({groupItems:zt,groupIdx:Ao,tagIdx:ao});return f.createElement(Ie.AW,{key:Qa.id,path:Qa.id,element:f.createElement(au,{tag:Qa,nextSectionLink:oi,pagination:ne,showNextButton:Ze})})}));case oe.Pagination.Section:return f.createElement(Ie.AW,{key:Bo.id,path:Bo.id,element:f.createElement(au,{tag:Bo,nextSectionLink:Fa,pagination:ne,showNextButton:Ze})});default:return null}}),[zt,ne,Ze]),lo=(0,f.useMemo)(()=>f.createElement(Ie.Z5,null,on&&f.createElement(Ie.AW,{path:on.href||"/",element:f.createElement(fd,{items:N,nextSectionLink:Pe({groupItems:zt,groupIdx:0,tagIdx:0}),pagination:ne,showNextButton:Ze})}),zt.length?zt.map((ho,Ao)=>Dn(ho.items,Ao)):Dn(ir,0),tr.length&&Dn(tr,0),f.createElement(Ie.AW,{path:"*",element:f.createElement(Ie.Fg,{to:fn,replace:!0})})),[on,N,zt,ne,Ze,Dn,ir,tr,fn]);return X&&!N.length?f.createElement(Ie.Z5,null,f.createElement(Ie.AW,{path:"*",element:f.createElement(fd,{items:N,nextSectionLink:Pe({groupItems:zt,groupIdx:0,tagIdx:0}),pagination:ne,showNextButton:Ze})})):N.length?Ot?f.createElement("div",{style:{flex:1,width:"100%"}},f.createElement(T.Od,null)):f.createElement(f.Fragment,null,X?f.createElement(f.Fragment,null,lo,ne===oe.Pagination.Section&&!!tr.length&&tr.map(ho=>f.createElement(Bc,{key:ho.id,item:ho}))):N.map(ho=>f.createElement(Bc,{key:ho.id,item:ho}))):null}const Mu=(0,f.memo)(hd);function md(N){return N.displayName||N.name||"Component"}var ju=Object.defineProperty,vd=Object.defineProperties,Fu=Object.getOwnPropertyDescriptors,El=Object.getOwnPropertySymbols,gd=Object.prototype.hasOwnProperty,iu=Object.prototype.propertyIsEnumerable,Ec=(N,X,ne)=>X in N?ju(N,X,{enumerable:!0,configurable:!0,writable:!0,value:ne}):N[X]=ne,Sl=(N,X)=>{for(var ne in X||(X={}))gd.call(X,ne)&&Ec(N,ne,X[ne]);if(El)for(var ne of El(X))iu.call(X,ne)&&Ec(N,ne,X[ne]);return N},Fo=(N,X)=>vd(N,Fu(X)),Bi=(N,X)=>{var ne={};for(var Ze in N)gd.call(N,Ze)&&X.indexOf(Ze)<0&&(ne[Ze]=N[Ze]);if(N!=null&&El)for(var Ze of El(N))X.indexOf(Ze)<0&&iu.call(N,Ze)&&(ne[Ze]=N[Ze]);return ne};function ui(N){const X=ne=>{var Ze=ne,{enableRouter:lt=!0}=Ze,Ot=Bi(Ze,["enableRouter"]),Mt,zt;const ir=(Mt=Ot.basePath)!=null?Mt:"/",tr=(zt=Ot.router)!=null?zt:"history",{Router:on,routerProps:fn}=(0,F.tv)(tr,ir);return b.Qg&<?f.createElement(on,Fo(Sl({},fn),{key:ir}),f.createElement(N,Sl({},Ot))):f.createElement(N,Sl({},Ot))};return X.displayName=`WithRouter(${md(N)})`,X}var Ii=Object.defineProperty,Yl=Object.defineProperties,Bu=Object.getOwnPropertyDescriptors,qa=Object.getOwnPropertySymbols,Uc=Object.prototype.hasOwnProperty,wl=Object.prototype.propertyIsEnumerable,Sc=(N,X,ne)=>X in N?Ii(N,X,{enumerable:!0,configurable:!0,writable:!0,value:ne}):N[X]=ne,wc=(N,X)=>{for(var ne in X||(X={}))Uc.call(X,ne)&&Sc(N,ne,X[ne]);if(qa)for(var ne of qa(X))wl.call(X,ne)&&Sc(N,ne,X[ne]);return N},Uu=(N,X)=>Yl(N,Bu(X)),su=(N,X)=>{var ne={};for(var Ze in N)Uc.call(N,Ze)&&X.indexOf(Ze)<0&&(ne[Ze]=N[Ze]);if(N!=null&&qa)for(var Ze of qa(N))X.indexOf(Ze)<0&&wl.call(N,Ze)&&(ne[Ze]=N[Ze]);return ne};function Jl(N){return ne=>{var Ze=ne,{portalOptions:lt}=Ze,Ot=su(Ze,["portalOptions"]);const[Mt,zt]=(0,B.useRecoilState)(Xn.QL),[ir,tr]=(0,B.useRecoilState)(Xn.JV),[on,fn]=(0,B.useRecoilState)(Xn.Bk),{options:Dn,versions:lo}=(0,B.useRecoilValue)(Qe.cr);(0,f.useEffect)(()=>{lt!=null&<.layout&&zt(lt.layout)},[lt==null?void 0:lt.layout,zt]),(0,f.useEffect)(()=>{typeof(lt==null?void 0:lt.collapsedSidebar)=="boolean"&&fn(lt.collapsedSidebar)},[lt==null?void 0:lt.collapsedSidebar,fn]),(0,f.useEffect)(()=>{typeof(lt==null?void 0:lt.showRightPanelToggle)=="boolean"&&tr(lt.showRightPanelToggle)},[lt==null?void 0:lt.showRightPanelToggle,tr]);const[ho,Ao]=(0,B.useRecoilState)(Xn.TK),Bo=(0,f.useCallback)(({idx:ao})=>{ao&&Ao(ao)},[Ao]);return f.createElement(N,Uu(wc({},Ot),{options:Dn,versions:lo,layout:Mt,showRightPanelToggle:ir,activeVersionIdx:ho,onChangeActiveVersion:Bo,collapsedSidebar:on}))}}var xl=(N,X,ne)=>new Promise((Ze,lt)=>{var Ot=ir=>{try{zt(ne.next(ir))}catch(tr){lt(tr)}},Mt=ir=>{try{zt(ne.throw(ir))}catch(tr){lt(tr)}},zt=ir=>ir.done?Ze(ir.value):Promise.resolve(ir.value).then(Ot,Mt);zt((ne=ne.apply(N,X)).next())});function zs(N){return"then"in N?N:new Promise(X=>{N.oncomplete=ne=>{X(ne.target.result)}})}function oo(N){const X=new ArrayBuffer(N.length),ne=new Uint8Array(X);for(let Ze=0,lt=N.length;Ze<lt;Ze++)ne[Ze]=N.charCodeAt(Ze);return X}const zc=()=>{var N;const X=oo(atob("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMHjNir5fXx/ZXoaEeXQ5XyxbNJ4YJYczoCRdSkL6NLzw1FHnng5Vfcgk5+bvox9QRYRbuk84mA4f2NhywDbXKECAwEAAQ=="));return zs((N=L.EA)==null?void 0:N.subtle.importKey("spki",X,{name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},!0,["verify"]))};function Ol(N){if(window.TextEncoder)return new TextEncoder().encode(N);const X=unescape(encodeURIComponent(N)),ne=new Uint8Array(X.length);for(let Ze=0;Ze<X.length;Ze++)ne[Ze]=X.charCodeAt(Ze);return ne}function Vs(N,X){return xl(this,null,function*(){var ne;return zs((ne=L.EA)==null?void 0:ne.subtle.verify({name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},yield zc(),oo(atob(X)),Ol(N)))})}function Ws(N,X){return X===!0?!0:Array.isArray(X)&&typeof window!="undefined"?N==="localhost"||N==="127.0.0.1"||N.endsWith(".localhost")||X.find(ne=>ne===N||N.endsWith("."+ne))?!0:!!X.find(ne=>{if(ne.indexOf("*")!==ne.lastIndexOf("*"))return;const[Ze,lt]=ne.split("*");return lt&&N.startsWith(Ze)&&N.endsWith(lt)&<.split(".").length>2}):!1}function Xl(N){return xl(this,null,function*(){const X=window.location.hostname;if(!N)return X==="localhost"||X==="127.0.0.1"||X.endsWith(".localhost")?{local:!0}:{};const[ne,Ze]=N.split(".");let lt;try{if(!(yield Vs(atob(ne),Ze)))return{valid:!1};lt=JSON.parse(atob(ne))}catch(Ot){return{valid:!1,cryptoMissing:!0}}return lt.valid=!0,(!lt.e||Date.now()/1e3>lt.e)&&(lt.expired=!0),lt.allowed=Ws(X,lt.h),lt})}var Hs=(N,X,ne)=>new Promise((Ze,lt)=>{var Ot=ir=>{try{zt(ne.next(ir))}catch(tr){lt(tr)}},Mt=ir=>{try{zt(ne.throw(ir))}catch(tr){lt(tr)}},zt=ir=>ir.done?Ze(ir.value):Promise.resolve(ir.value).then(Ot,Mt);zt((ne=ne.apply(N,X)).next())});function lu(N){const[X,ne]=(0,f.useState)({});return(0,f.useEffect)(()=>{function Ze(){return Hs(this,null,function*(){const lt=yield Xl(N);ne(lt)})}Ze()},[N]),{licenseInfo:X,isValid:zu(X)}}function zu(N){return N.valid&&N.allowed&&!N.expired||!!N.local}var Ui=Object.defineProperty,cs=Object.defineProperties,cu=Object.getOwnPropertyDescriptors,Vc=Object.getOwnPropertySymbols,ol=Object.prototype.hasOwnProperty,uu=Object.prototype.propertyIsEnumerable,xc=(N,X,ne)=>X in N?Ui(N,X,{enumerable:!0,configurable:!0,writable:!0,value:ne}):N[X]=ne,du=(N,X)=>{for(var ne in X||(X={}))ol.call(X,ne)&&xc(N,ne,X[ne]);if(Vc)for(var ne of Vc(X))uu.call(X,ne)&&xc(N,ne,X[ne]);return N},Gi=(N,X)=>cs(N,cu(X));const Pl=(0,b.qC)(ui,Jl,f.memo)(({licenseKey:N,onLoaded:X,children:ne,options:Ze,versions:lt,layout:Ot,showRightPanelToggle:Mt,activeVersionIdx:zt,onChangeActiveVersion:ir,collapsedSidebar:tr})=>{var on,fn,Dn,lo,ho;const Ao=(0,f.useRef)(null),{isValid:Bo,licenseInfo:ao}=lu(N);(0,S.useMount)(()=>{X==null||X()});const{disableSidebar:ja,whiteLabel:Fa,hideLogo:Qa,hideFab:oi,scrollYOffset:wi}=Ze||{},Cs=lt[zt].parser,{flatItems:As,contentItems:zi}=(0,F.le)({parser:Cs,options:Ze});if(!lt.length)return null;const xi=(fn=(on=Cs.definition)==null?void 0:on.info)==null?void 0:fn["x-logo"];return f.createElement(Ms,{options:Ze},f.createElement(S.GlobalStyle,null),f.createElement(Yc,{className:"redoc-wrap",ref:Ao},!Bo&&f.createElement($o,{licenseInfo:ao}),f.createElement(Rt,{whiteLabel:Fa,showRightPanelToggle:Mt,layout:Ot}),!ja&&f.createElement(Xa,{hideFab:oi,scrollYOffset:wi,className:"menu-content",collapsedSidebar:!tr},!Qa&&f.createElement(S.SidebarLogo,{imageUrl:xi==null?void 0:xi.url,href:(xi==null?void 0:xi.href)||((ho=(lo=(Dn=Cs.definition)==null?void 0:Dn.info)==null?void 0:lo.contact)==null?void 0:ho.url),altText:xi==null?void 0:xi.altText,backgroundColor:xi==null?void 0:xi.backgroundColor}),lt.length>1&&f.createElement(ki,{versions:lt,activeVersionIdx:zt,onChange:ir}),f.createElement(ce,{contentItems:zi,flatItems:As,options:Ze}),f.createElement(at,{items:Bo?zi:[]})),f.createElement(vl,{className:"api-content",id:"api-content",layout:Ot===S.LayoutVariant.THREE_PANEL&&Mt?S.LayoutVariant.THREE_PANEL:S.LayoutVariant.STACKED,collapsedSidebar:tr},Mt&&Ot!==S.LayoutVariant.STACKED&&f.createElement(ji,null),f.createElement(Mu,{root:!0,items:Bo?zi:[]}),ne),Mt&&Ot!==S.LayoutVariant.STACKED&&f.createElement(kc,null)))});function Ks({onLoaded:N,_forceRenderInfo:X,children:ne,store:Ze}){var lt,Ot,Mt;return Ze!=null&&Ze.definition?f.createElement(rl,Gi(du({},Ze),{_forceRenderInfo:X}),f.createElement(Pl,{onLoaded:N,basePath:(lt=Ze.options)==null?void 0:lt.routingBasePath,licenseKey:(Ot=Ze.options)==null?void 0:Ot.licenseKey,enableRouter:(Mt=Ze.options)==null?void 0:Mt.enableRouter,portalOptions:Ze==null?void 0:Ze.portalOptions},ne)):null}function Cl({definition:N,definitionUrl:X,options:ne={},activeItemId:Ze,activeSampleLanguage:lt,activeDeepLink:Ot}){const Mt=f.createElement(Ss,{definition:N,definitionUrl:X,options:ne,activeItemId:Ze,activeSampleLanguage:lt,activeDeepLink:Ot},f.createElement(Ks,null));return ne.disableErrorBoundary?Mt:f.createElement(pc,null,Mt)}function us({definitions:N,options:X={}}){return f.createElement(pc,null,f.createElement(Ss,{definitions:N,options:X},f.createElement(Ks,null)))}var Vu=Zr(57047),Wc=Zr(86472),Wu=Zr(4944),Ld=Object.defineProperty,yd=Object.defineProperties,bd=Object.getOwnPropertyDescriptors,Hc=Object.getOwnPropertySymbols,fu=Object.prototype.hasOwnProperty,Oc=Object.prototype.propertyIsEnumerable,Pc=(N,X,ne)=>X in N?Ld(N,X,{enumerable:!0,configurable:!0,writable:!0,value:ne}):N[X]=ne,ql=(N,X)=>{for(var ne in X||(X={}))fu.call(X,ne)&&Pc(N,ne,X[ne]);if(Hc)for(var ne of Hc(X))Oc.call(X,ne)&&Pc(N,ne,X[ne]);return N},Cc=(N,X)=>yd(N,bd(X));function Nd(N){const X=(0,w.$l)(Xn.VB);(0,w.z8)(Xn.VB,Cc(ql({},X),{layout:N}))}function Ed(N){const X=(0,w.$l)(Xn.zD);(0,w.z8)(Xn.zD,Cc(ql({},X),{showRightPanelToggle:N}))}const Hu=(0,b.uW)(),Sd=Hu?(0,C.dirname)(Hu)+"/":"";function ec(N){const X={},ne=N.attributes;for(let Ze=0;Ze<ne.length;Ze++){const lt=ne[Ze];X[lt.name]=lt.value}return X}function wd(N){const X=ec(N),ne={};for(const Ze in X){const lt=Ze.replace(/-(.)/g,(Ot,Mt)=>Mt.toUpperCase());ne[lt]=X[Ze]}return ne}function Md(N,X=document.querySelector("redoc")){(0,x.hydrate)(f.createElement(Ks,{store:N}),X)}function al(N,X={},ne=(0,b.R2)("redoc"),Ze){if(ne===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');let lt,Ot;if(typeof N=="object"&&"versions"in N){(0,x.render)(f.createElement(us,{definitions:N,options:ql(ql({},X),wd(ne))},["Loading..."]),ne,Ze);return}typeof N=="string"?lt=N:typeof N=="object"&&(Ot=N),(0,x.render)(f.createElement(Cl,{definition:Ot,definitionUrl:lt,options:ql(ql({},X),wd(ne))},["Loading..."]),ne,Ze)}function il(N){Zr.p=N}const xd="3.0.0-alpha.30",jd="352ef7f";function Od(){const N=(0,b.R2)("redoc");if(!N)return;const X=N.getAttribute("spec-url");X&&al(X,{},N)}b.Qg&&il(Sd),Od()})(),Gu})());
|
package/lib/utils/helpers.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.getValueFromMdParsedExtension=exports.normalizeText=exports.getJsUrl=exports.getWindowReferenceOptions=exports.dottedString=exports.joinStringFactory=exports.get=exports.useSchemaTitle=exports.sanitizeItemId=exports.unescapeHTMLChars=exports.escapeHTMLAttrChars=exports.removeQueryStringAndHash=exports.titleize=exports.getBasePath=exports.resolveUrl=exports.isAbsoluteUrl=exports.safeSlugify=exports.isMergeableObject=exports.deleteEmptyArrayItem=exports.isArrayOfObjects=exports.isObject=exports.mergeObjects=exports.appendToMdHeading=exports.isNumeric=exports.stripTrailingSlash=exports.flattenByProp=exports.mapValues=exports.mapWithLast=void 0;const slugify_1=__importDefault(require("slugify")),url_1=require("url"),media_css_1=require("./media-css"),openapi_1=require("./openapi"),JsonPointer_1=require("./JsonPointer"),dom_1=require("./dom"),typeGuards_1=require("./typeGuards");function mapWithLast(e,t){const r=[];for(let s=0;s<e.length-1;s++)r.push(t(e[s],!1));return 0!==e.length&&r.push(t(e[e.length-1],!0)),r}function mapValues(e,t){const r={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=t(e[s],s,e));return r}function flattenByProp(e,t){const r=[],s=e=>{for(const n of e)r.push(n),n[t]&&s(n[t])};return s(e),r}function stripTrailingSlash(e){return e.endsWith("/")?e.substring(0,e.length-1):e}function isNumeric(e){return!isNaN(parseFloat(e))&&isFinite(e)}function appendToMdHeading(e,t,r){const s=new RegExp(`(^|\\n)#\\s?${t}\\s*\\n`,"i"),n=new RegExp(`((\\n|^)#\\s*${t}\\s*(\\n|$)(?:.|\\n)*?)(\\n#|$)`,"i");if(s.test(e))return e.replace(n,`$1\n\n${r}\n$4`);{const s=""===e||e.endsWith("\n\n")?"":e.endsWith("\n")?"\n":"\n\n";return`${e}${s}# ${t}\n\n${r}`}}exports.mapWithLast=mapWithLast,exports.mapValues=mapValues,exports.flattenByProp=flattenByProp,exports.stripTrailingSlash=stripTrailingSlash,exports.isNumeric=isNumeric,exports.appendToMdHeading=appendToMdHeading;const mergeObjects=(e,...t)=>{if(!t.length)return e;const r=t.shift();return void 0===r?e:((0,exports.isMergeableObject)(e)&&(0,exports.isMergeableObject)(r)&&Object.keys(r).forEach((t=>{(0,exports.isMergeableObject)(r[t])?(e[t]||(e[t]={}),["string","number"].includes(typeof e[t])&&(r[t][media_css_1.ZERO_BREAKPOINT]||0===r[t][media_css_1.ZERO_BREAKPOINT]||console.warn(`Theme resolver: using default value of "${e[t]}" for "${t}". This is not recommended. Prefer adding default value by providing "${media_css_1.ZERO_BREAKPOINT}" property to ${JSON.stringify(r[t])}.`),e[t]={[media_css_1.ZERO_BREAKPOINT]:e[t]}),(0,exports.mergeObjects)(e[t],r[t])):e[t]=r[t]})),(0,exports.mergeObjects)(e,...t))};exports.mergeObjects=mergeObjects;const isObject=e=>null!==e&&"object"==typeof e;exports.isObject=isObject;const isArrayOfObjects=e=>Array.isArray(e)&&e.some((e=>(0,exports.isObject)(e)));exports.isArrayOfObjects=isArrayOfObjects;const deleteEmptyArrayItem=e=>e.filter((e=>!!e));exports.deleteEmptyArrayItem=deleteEmptyArrayItem;const isMergeableObject=e=>(0,exports.isObject)(e)&&!Array.isArray(e);function safeSlugify(e){return(0,slugify_1.default)(e)||e.toString().toLowerCase().replace(/\s+/g,"-").replace(/&/g,"-and-").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}function isAbsoluteUrl(e){return/(?:^[a-z][a-z0-9+.-]*:|\/\/)/i.test(e)}function resolveUrl(e,t){let r;if(t.startsWith("//")){const{protocol:s}=(0,url_1.parse)(e);r=`${s||"https:"}${t}`}else if(isAbsoluteUrl(t))r=t;else if(t.startsWith("/")){const s=(0,url_1.parse)(e);r=(0,url_1.format)(Object.assign(Object.assign({},s),{pathname:t}))}else r=stripTrailingSlash(e)+"/"+t;return stripTrailingSlash(r)}function getBasePath(e){try{return parseURL(e).pathname}catch(t){return e}}function titleize(e){return e.charAt(0).toUpperCase()+e.slice(1)}function removeQueryStringAndHash(e){try{const t=parseURL(e);return t.search="",t.hash="",t.toString()}catch(t){return e}}function parseURL(e){return"undefined"==typeof URL?new(require("url").URL)(e):new URL(e)}function escapeHTMLAttrChars(e){return e.replace(/["\\]/g,"\\$&")}function unescapeHTMLChars(e){return e.replace(/&#(\d+);/g,((e,t)=>String.fromCharCode(parseInt(t,10)))).replace(/&/g,"&").replace(/"/g,'"')}function sanitizeItemId(e){return e&&e.replace(/#/g,"_")}function useSchemaTitle(e,t){return t||(0,openapi_1.isNamedDefinition)(e)&&JsonPointer_1.JsonPointer.baseName(e)||""}function get(e={},t,r){return"string"==typeof t&&(t=t.split(".")),t.reduce(((e,t)=>e&&e[t]?e[t]:r),e)}function joinStringFactory(e){return(...t)=>t.filter(Boolean).join(e)}function getWindowReferenceOptions(e){var t;return dom_1.IS_BROWSER?null===(t=null===window||void 0===window?void 0:window.REFERENCE_DOCS_OPTIONS)||void 0===t?void 0:t[e]:null}function getJsUrl(){var e;if(!dom_1.IS_BROWSER)return"";const t=+new Date+Math.random();try{return document.currentScript&&(document.currentScript.async||document.currentScript.defer)||document.write(`<script id="dummy${t}"><\/script>`),(null===(e=document.getElementById("dummy"+t))||void 0===e?void 0:e.previousSibling).src}catch(e){return""}}exports.isMergeableObject=isMergeableObject,exports.safeSlugify=safeSlugify,exports.isAbsoluteUrl=isAbsoluteUrl,exports.resolveUrl=resolveUrl,exports.getBasePath=getBasePath,exports.titleize=titleize,exports.removeQueryStringAndHash=removeQueryStringAndHash,exports.escapeHTMLAttrChars=escapeHTMLAttrChars,exports.unescapeHTMLChars=unescapeHTMLChars,exports.sanitizeItemId=sanitizeItemId,exports.useSchemaTitle=useSchemaTitle,exports.get=get,exports.joinStringFactory=joinStringFactory,exports.dottedString=joinStringFactory("."),exports.getWindowReferenceOptions=getWindowReferenceOptions,exports.getJsUrl=getJsUrl;const normalizeText=e=>(0,typeGuards_1.isString)(e)?e:null==e?void 0:e.raw;exports.normalizeText=normalizeText;const getValueFromMdParsedExtension=(e,t)=>{const r=e[`x-parsed-md-${t}`]||e[t];if("x-enumDescriptions"!==t)return r;let s={};for(const e in r)e.startsWith("x-parsed-md")||(s[e]=r[`x-parsed-md-${e}`]||r[e]);return s};exports.getValueFromMdParsedExtension=getValueFromMdParsedExtension;
|
|
1
|
+
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.getValueFromMdParsedExtension=exports.normalizeText=exports.getJsUrl=exports.getWindowReferenceOptions=exports.dottedString=exports.joinStringFactory=exports.get=exports.useSchemaTitle=exports.sanitizeItemId=exports.unescapeHTMLChars=exports.escapeHTMLAttrChars=exports.removeQueryStringAndHash=exports.titleize=exports.getBasePath=exports.resolveUrl=exports.isAbsoluteUrl=exports.safeSlugify=exports.isMergeableObject=exports.deleteEmptyArrayItem=exports.isArrayOfObjects=exports.isObject=exports.mergeObjects=exports.appendToMdHeading=exports.isNumeric=exports.stripTrailingSlash=exports.flattenByProp=exports.mapValues=exports.mapWithLast=void 0;const slugify_1=__importDefault(require("slugify")),url_1=require("url"),media_css_1=require("./media-css"),openapi_1=require("./openapi"),JsonPointer_1=require("./JsonPointer"),dom_1=require("./dom"),typeGuards_1=require("./typeGuards");function mapWithLast(e,t){const r=[];for(let s=0;s<e.length-1;s++)r.push(t(e[s],!1));return 0!==e.length&&r.push(t(e[e.length-1],!0)),r}function mapValues(e,t){const r={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=t(e[s],s,e));return r}function flattenByProp(e,t){const r=[],s=e=>{for(const n of e)r.push(n),n[t]&&s(n[t])};return s(e),r}function stripTrailingSlash(e){return e.endsWith("/")?e.substring(0,e.length-1):e}function isNumeric(e){return!isNaN(parseFloat(e))&&isFinite(e)}function appendToMdHeading(e,t,r){const s=new RegExp(`(^|\\n)#\\s?${t}\\s*\\n`,"i"),n=new RegExp(`((\\n|^)#\\s*${t}\\s*(\\n|$)(?:.|\\n)*?)(\\n#|$)`,"i");if(s.test(e))return e.replace(n,`$1\n\n${r}\n$4`);{const s=""===e||e.endsWith("\n\n")?"":e.endsWith("\n")?"\n":"\n\n";return`${e}${s}# ${t}\n\n${r}`}}exports.mapWithLast=mapWithLast,exports.mapValues=mapValues,exports.flattenByProp=flattenByProp,exports.stripTrailingSlash=stripTrailingSlash,exports.isNumeric=isNumeric,exports.appendToMdHeading=appendToMdHeading;const mergeObjects=(e,...t)=>{if(!t.length)return e;const r=t.shift();return void 0===r?e:((0,exports.isMergeableObject)(e)&&(0,exports.isMergeableObject)(r)&&Object.keys(r).forEach((t=>{(0,exports.isMergeableObject)(r[t])?(e[t]||(e[t]={}),["string","number"].includes(typeof e[t])&&(r[t][media_css_1.ZERO_BREAKPOINT]||0===r[t][media_css_1.ZERO_BREAKPOINT]||console.warn(`Theme resolver: using default value of "${e[t]}" for "${t}". This is not recommended. Prefer adding default value by providing "${media_css_1.ZERO_BREAKPOINT}" property to ${JSON.stringify(r[t])}.`),e[t]={[media_css_1.ZERO_BREAKPOINT]:e[t]}),(0,exports.mergeObjects)(e[t],r[t])):e[t]=r[t]})),(0,exports.mergeObjects)(e,...t))};exports.mergeObjects=mergeObjects;const isObject=e=>null!==e&&"object"==typeof e;exports.isObject=isObject;const isArrayOfObjects=e=>Array.isArray(e)&&e.some((e=>(0,exports.isObject)(e)));exports.isArrayOfObjects=isArrayOfObjects;const deleteEmptyArrayItem=e=>e.filter((e=>!!e));exports.deleteEmptyArrayItem=deleteEmptyArrayItem;const isMergeableObject=e=>(0,exports.isObject)(e)&&!Array.isArray(e);function safeSlugify(e){return(0,slugify_1.default)(e)||e.toString().toLowerCase().replace(/\s+/g,"-").replace(/&/g,"-and-").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}function isAbsoluteUrl(e){return/(?:^[a-z][a-z0-9+.-]*:|\/\/)/i.test(e)}function resolveUrl(e,t){let r;if(t.startsWith("//")){const{protocol:s}=(0,url_1.parse)(e);r=`${s||"https:"}${t}`}else if(isAbsoluteUrl(t))r=t;else if(t.startsWith("/")){const s=(0,url_1.parse)(e);r=(0,url_1.format)(Object.assign(Object.assign({},s),{pathname:t}))}else r=stripTrailingSlash(e)+"/"+t;return stripTrailingSlash(r)}function getBasePath(e){try{return parseURL(e).pathname}catch(t){return e}}function titleize(e){return e.charAt(0).toUpperCase()+e.slice(1)}function removeQueryStringAndHash(e){try{const t=parseURL(e);return t.search="",t.hash="",t.toString()}catch(t){return e}}function parseURL(e){return"undefined"==typeof URL?new(require("url").URL)(e):new URL(e)}function escapeHTMLAttrChars(e){return e.replace(/["\\]/g,"\\$&")}function unescapeHTMLChars(e){return e.replace(/&#(\d+);/g,((e,t)=>String.fromCharCode(parseInt(t,10)))).replace(/&/g,"&").replace(/"/g,'"')}function sanitizeItemId(e){return e&&e.replace(/#/g,"_")}function useSchemaTitle(e,t){return t||(0,openapi_1.isNamedDefinition)(e)&&JsonPointer_1.JsonPointer.baseName(e)||""}function get(e={},t,r){return"string"==typeof t&&(t=t.split(".")),t.reduce(((e,t)=>e&&e[t]?e[t]:r),e)}function joinStringFactory(e){return(...t)=>t.filter(Boolean).join(e)}function getWindowReferenceOptions(e){var t;return dom_1.IS_BROWSER?null===(t=null===window||void 0===window?void 0:window.REFERENCE_DOCS_OPTIONS)||void 0===t?void 0:t[e]:null}function getJsUrl(){var e;if(!dom_1.IS_BROWSER)return"";const t=+new Date+Math.random();try{return document.currentScript&&(document.currentScript.async||document.currentScript.defer)||document.write(`<script id="dummy${t}"><\/script>`),(null===(e=document.getElementById("dummy"+t))||void 0===e?void 0:e.previousSibling).src}catch(e){return""}}exports.isMergeableObject=isMergeableObject,exports.safeSlugify=safeSlugify,exports.isAbsoluteUrl=isAbsoluteUrl,exports.resolveUrl=resolveUrl,exports.getBasePath=getBasePath,exports.titleize=titleize,exports.removeQueryStringAndHash=removeQueryStringAndHash,exports.escapeHTMLAttrChars=escapeHTMLAttrChars,exports.unescapeHTMLChars=unescapeHTMLChars,exports.sanitizeItemId=sanitizeItemId,exports.useSchemaTitle=useSchemaTitle,exports.get=get,exports.joinStringFactory=joinStringFactory,exports.dottedString=joinStringFactory("."),exports.getWindowReferenceOptions=getWindowReferenceOptions,exports.getJsUrl=getJsUrl;const normalizeText=e=>(0,typeGuards_1.isString)(e)?e:null==e?void 0:e.raw;exports.normalizeText=normalizeText;const getValueFromMdParsedExtension=(e,t)=>{const r=e[`x-parsed-md-${t}`]||e[t];if("x-enumDescriptions"!==t)return r;let s={};for(const e in r)e.startsWith("x-parsed-md")||(s[e]=r[`x-parsed-md-${e}`]||r[e]);return Object.keys(s).length?s:r};exports.getValueFromMdParsedExtension=getValueFromMdParsedExtension;
|
|
2
2
|
//# sourceMappingURL=helpers.js.map
|
package/lib-esm/utils/helpers.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import slugify from"slugify";import{format,parse}from"url";import{ZERO_BREAKPOINT}from"./media-css";import{isNamedDefinition}from"./openapi";import{JsonPointer}from"./JsonPointer";import{IS_BROWSER}from"./dom";import{isString}from"./typeGuards";export function mapWithLast(e,t){const r=[];for(let n=0;n<e.length-1;n++)r.push(t(e[n],!1));return 0!==e.length&&r.push(t(e[e.length-1],!0)),r}export function mapValues(e,t){const r={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=t(e[n],n,e));return r}export function flattenByProp(e,t){const r=[],n=e=>{for(const o of e)r.push(o),o[t]&&n(o[t])};return n(e),r}export function stripTrailingSlash(e){return e.endsWith("/")?e.substring(0,e.length-1):e}export function isNumeric(e){return!isNaN(parseFloat(e))&&isFinite(e)}export function appendToMdHeading(e,t,r){const n=new RegExp(`(^|\\n)#\\s?${t}\\s*\\n`,"i"),o=new RegExp(`((\\n|^)#\\s*${t}\\s*(\\n|$)(?:.|\\n)*?)(\\n#|$)`,"i");if(n.test(e))return e.replace(o,`$1\n\n${r}\n$4`);{const n=""===e||e.endsWith("\n\n")?"":e.endsWith("\n")?"\n":"\n\n";return`${e}${n}# ${t}\n\n${r}`}}export const mergeObjects=(e,...t)=>{if(!t.length)return e;const r=t.shift();return void 0===r?e:(isMergeableObject(e)&&isMergeableObject(r)&&Object.keys(r).forEach((t=>{isMergeableObject(r[t])?(e[t]||(e[t]={}),["string","number"].includes(typeof e[t])&&(r[t][ZERO_BREAKPOINT]||0===r[t][ZERO_BREAKPOINT]||console.warn(`Theme resolver: using default value of "${e[t]}" for "${t}". This is not recommended. Prefer adding default value by providing "${ZERO_BREAKPOINT}" property to ${JSON.stringify(r[t])}.`),e[t]={[ZERO_BREAKPOINT]:e[t]}),mergeObjects(e[t],r[t])):e[t]=r[t]})),mergeObjects(e,...t))};export const isObject=e=>null!==e&&"object"==typeof e;export const isArrayOfObjects=e=>Array.isArray(e)&&e.some((e=>isObject(e)));export const deleteEmptyArrayItem=e=>e.filter((e=>!!e));export const isMergeableObject=e=>isObject(e)&&!Array.isArray(e);export function safeSlugify(e){return slugify(e)||e.toString().toLowerCase().replace(/\s+/g,"-").replace(/&/g,"-and-").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}export function isAbsoluteUrl(e){return/(?:^[a-z][a-z0-9+.-]*:|\/\/)/i.test(e)}export function resolveUrl(e,t){let r;if(t.startsWith("//")){const{protocol:n}=parse(e);r=`${n||"https:"}${t}`}else if(isAbsoluteUrl(t))r=t;else if(t.startsWith("/")){const n=parse(e);r=format(Object.assign(Object.assign({},n),{pathname:t}))}else r=stripTrailingSlash(e)+"/"+t;return stripTrailingSlash(r)}export function getBasePath(e){try{return parseURL(e).pathname}catch(t){return e}}export function titleize(e){return e.charAt(0).toUpperCase()+e.slice(1)}export function removeQueryStringAndHash(e){try{const t=parseURL(e);return t.search="",t.hash="",t.toString()}catch(t){return e}}function parseURL(e){return"undefined"==typeof URL?new(require("url").URL)(e):new URL(e)}export function escapeHTMLAttrChars(e){return e.replace(/["\\]/g,"\\$&")}export function unescapeHTMLChars(e){return e.replace(/&#(\d+);/g,((e,t)=>String.fromCharCode(parseInt(t,10)))).replace(/&/g,"&").replace(/"/g,'"')}export function sanitizeItemId(e){return e&&e.replace(/#/g,"_")}export function useSchemaTitle(e,t){return t||isNamedDefinition(e)&&JsonPointer.baseName(e)||""}export function get(e={},t,r){return"string"==typeof t&&(t=t.split(".")),t.reduce(((e,t)=>e&&e[t]?e[t]:r),e)}export function joinStringFactory(e){return(...t)=>t.filter(Boolean).join(e)}export const dottedString=joinStringFactory(".");export function getWindowReferenceOptions(e){var t;return IS_BROWSER?null===(t=null===window||void 0===window?void 0:window.REFERENCE_DOCS_OPTIONS)||void 0===t?void 0:t[e]:null}export function getJsUrl(){var e;if(!IS_BROWSER)return"";const t=+new Date+Math.random();try{return document.currentScript&&(document.currentScript.async||document.currentScript.defer)||document.write(`<script id="dummy${t}"><\/script>`),(null===(e=document.getElementById("dummy"+t))||void 0===e?void 0:e.previousSibling).src}catch(e){return""}}export const normalizeText=e=>isString(e)?e:null==e?void 0:e.raw;export const getValueFromMdParsedExtension=(e,t)=>{const r=e[`x-parsed-md-${t}`]||e[t];if("x-enumDescriptions"!==t)return r;let n={};for(const e in r)e.startsWith("x-parsed-md")||(n[e]=r[`x-parsed-md-${e}`]||r[e]);return n};
|
|
1
|
+
import slugify from"slugify";import{format,parse}from"url";import{ZERO_BREAKPOINT}from"./media-css";import{isNamedDefinition}from"./openapi";import{JsonPointer}from"./JsonPointer";import{IS_BROWSER}from"./dom";import{isString}from"./typeGuards";export function mapWithLast(e,t){const r=[];for(let n=0;n<e.length-1;n++)r.push(t(e[n],!1));return 0!==e.length&&r.push(t(e[e.length-1],!0)),r}export function mapValues(e,t){const r={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=t(e[n],n,e));return r}export function flattenByProp(e,t){const r=[],n=e=>{for(const o of e)r.push(o),o[t]&&n(o[t])};return n(e),r}export function stripTrailingSlash(e){return e.endsWith("/")?e.substring(0,e.length-1):e}export function isNumeric(e){return!isNaN(parseFloat(e))&&isFinite(e)}export function appendToMdHeading(e,t,r){const n=new RegExp(`(^|\\n)#\\s?${t}\\s*\\n`,"i"),o=new RegExp(`((\\n|^)#\\s*${t}\\s*(\\n|$)(?:.|\\n)*?)(\\n#|$)`,"i");if(n.test(e))return e.replace(o,`$1\n\n${r}\n$4`);{const n=""===e||e.endsWith("\n\n")?"":e.endsWith("\n")?"\n":"\n\n";return`${e}${n}# ${t}\n\n${r}`}}export const mergeObjects=(e,...t)=>{if(!t.length)return e;const r=t.shift();return void 0===r?e:(isMergeableObject(e)&&isMergeableObject(r)&&Object.keys(r).forEach((t=>{isMergeableObject(r[t])?(e[t]||(e[t]={}),["string","number"].includes(typeof e[t])&&(r[t][ZERO_BREAKPOINT]||0===r[t][ZERO_BREAKPOINT]||console.warn(`Theme resolver: using default value of "${e[t]}" for "${t}". This is not recommended. Prefer adding default value by providing "${ZERO_BREAKPOINT}" property to ${JSON.stringify(r[t])}.`),e[t]={[ZERO_BREAKPOINT]:e[t]}),mergeObjects(e[t],r[t])):e[t]=r[t]})),mergeObjects(e,...t))};export const isObject=e=>null!==e&&"object"==typeof e;export const isArrayOfObjects=e=>Array.isArray(e)&&e.some((e=>isObject(e)));export const deleteEmptyArrayItem=e=>e.filter((e=>!!e));export const isMergeableObject=e=>isObject(e)&&!Array.isArray(e);export function safeSlugify(e){return slugify(e)||e.toString().toLowerCase().replace(/\s+/g,"-").replace(/&/g,"-and-").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}export function isAbsoluteUrl(e){return/(?:^[a-z][a-z0-9+.-]*:|\/\/)/i.test(e)}export function resolveUrl(e,t){let r;if(t.startsWith("//")){const{protocol:n}=parse(e);r=`${n||"https:"}${t}`}else if(isAbsoluteUrl(t))r=t;else if(t.startsWith("/")){const n=parse(e);r=format(Object.assign(Object.assign({},n),{pathname:t}))}else r=stripTrailingSlash(e)+"/"+t;return stripTrailingSlash(r)}export function getBasePath(e){try{return parseURL(e).pathname}catch(t){return e}}export function titleize(e){return e.charAt(0).toUpperCase()+e.slice(1)}export function removeQueryStringAndHash(e){try{const t=parseURL(e);return t.search="",t.hash="",t.toString()}catch(t){return e}}function parseURL(e){return"undefined"==typeof URL?new(require("url").URL)(e):new URL(e)}export function escapeHTMLAttrChars(e){return e.replace(/["\\]/g,"\\$&")}export function unescapeHTMLChars(e){return e.replace(/&#(\d+);/g,((e,t)=>String.fromCharCode(parseInt(t,10)))).replace(/&/g,"&").replace(/"/g,'"')}export function sanitizeItemId(e){return e&&e.replace(/#/g,"_")}export function useSchemaTitle(e,t){return t||isNamedDefinition(e)&&JsonPointer.baseName(e)||""}export function get(e={},t,r){return"string"==typeof t&&(t=t.split(".")),t.reduce(((e,t)=>e&&e[t]?e[t]:r),e)}export function joinStringFactory(e){return(...t)=>t.filter(Boolean).join(e)}export const dottedString=joinStringFactory(".");export function getWindowReferenceOptions(e){var t;return IS_BROWSER?null===(t=null===window||void 0===window?void 0:window.REFERENCE_DOCS_OPTIONS)||void 0===t?void 0:t[e]:null}export function getJsUrl(){var e;if(!IS_BROWSER)return"";const t=+new Date+Math.random();try{return document.currentScript&&(document.currentScript.async||document.currentScript.defer)||document.write(`<script id="dummy${t}"><\/script>`),(null===(e=document.getElementById("dummy"+t))||void 0===e?void 0:e.previousSibling).src}catch(e){return""}}export const normalizeText=e=>isString(e)?e:null==e?void 0:e.raw;export const getValueFromMdParsedExtension=(e,t)=>{const r=e[`x-parsed-md-${t}`]||e[t];if("x-enumDescriptions"!==t)return r;let n={};for(const e in r)e.startsWith("x-parsed-md")||(n[e]=r[`x-parsed-md-${e}`]||r[e]);return Object.keys(n).length?n:r};
|
|
2
2
|
//# sourceMappingURL=helpers.js.map
|