@redocly/openapi-docs 3.0.0-alpha.55.patch.1 → 3.0.0-alpha.56.patch.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/console.redocly-openapi-docs.min.js +2 -2
- package/dist/oauth2-redirect.js +1 -1
- package/dist/redocly-openapi-docs.min.js +1184 -1122
- package/lib/components/Endpoint/Endpoint.js +1 -1
- package/lib/components/Parameters/BodyContent.d.ts +1 -0
- package/lib/components/Parameters/BodyContent.js +1 -1
- package/lib/components/Parameters/DropdownWithinHeader.d.ts +4 -1
- package/lib/components/Parameters/DropdownWithinHeader.js +6 -1
- package/lib/components/Parameters/Parameters.js +1 -1
- package/lib/components/RedoclyOpenAPIDocs/styled.js +1 -1
- package/lib/components/common/Dropdown/styled.js +4 -5
- package/lib/components/pluggable/RedocRequestBody.js +1 -1
- package/lib/components/shared/MimeLabel.js +1 -4
- package/lib/events/types.d.ts +6 -5
- package/lib/events/types.js +1 -1
- package/lib/models/request.js +1 -1
- package/lib/models/types.d.ts +1 -1
- package/lib-esm/components/Endpoint/Endpoint.js +1 -1
- package/lib-esm/components/Parameters/BodyContent.d.ts +1 -0
- package/lib-esm/components/Parameters/BodyContent.js +1 -1
- package/lib-esm/components/Parameters/DropdownWithinHeader.d.ts +4 -1
- package/lib-esm/components/Parameters/DropdownWithinHeader.js +6 -1
- package/lib-esm/components/Parameters/Parameters.js +1 -1
- package/lib-esm/components/RedoclyOpenAPIDocs/styled.js +1 -1
- package/lib-esm/components/common/Dropdown/styled.js +4 -5
- package/lib-esm/components/pluggable/RedocRequestBody.js +1 -1
- package/lib-esm/components/shared/MimeLabel.js +1 -4
- package/lib-esm/events/types.d.ts +6 -5
- package/lib-esm/events/types.js +1 -1
- package/lib-esm/models/request.js +1 -1
- package/lib-esm/models/types.d.ts +1 -1
- package/package.json +4 -4
|
@@ -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.56.patch.0"
|
|
6
6
|
*/(this.webpackChunkRedoclyOpenAPIDocs=this.webpackChunkRedoclyOpenAPIDocs||[]).push([[290],{29641:(S,R,c)=>{(function(m){m(c(46944))})(function(m){var O={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},k=m.Pos;m.defineOption("autoCloseBrackets",!1,function(N,w,M){M&&M!=m.Init&&(N.removeKeyMap(D),N.state.closeBrackets=null),w&&(j(L(w,"pairs")),N.state.closeBrackets=w,N.addKeyMap(D))});function L(N,w){return w=="pairs"&&typeof N=="string"?N:typeof N=="object"&&N[w]!=null?N[w]:O[w]}var D={Backspace:re,Enter:he};function j(N){for(var w=0;w<N.length;w++){var M=N.charAt(w),B="'"+M+"'";D[B]||(D[B]=X(M))}}j(O.pairs+"`");function X(N){return function(w){return J(w,N)}}function te(N){var w=N.state.closeBrackets;if(!w||w.override)return w;var M=N.getModeAt(N.getCursor());return M.closeBrackets||w}function re(N){var w=te(N);if(!w||N.getOption("disableInput"))return m.Pass;for(var M=L(w,"pairs"),B=N.listSelections(),Z=0;Z<B.length;Z++){if(!B[Z].empty())return m.Pass;var ae=F(N,B[Z].head);if(!ae||M.indexOf(ae)%2!=0)return m.Pass}for(var Z=B.length-1;Z>=0;Z--){var H=B[Z].head;N.replaceRange("",k(H.line,H.ch-1),k(H.line,H.ch+1),"+delete")}}function he(N){var w=te(N),M=w&&L(w,"explode");if(!M||N.getOption("disableInput"))return m.Pass;for(var B=N.listSelections(),Z=0;Z<B.length;Z++){if(!B[Z].empty())return m.Pass;var ae=F(N,B[Z].head);if(!ae||M.indexOf(ae)%2!=0)return m.Pass}N.operation(function(){var H=N.lineSeparator()||`
|
|
7
7
|
`;N.replaceSelection(H+H,null),oe(N,-1),B=N.listSelections();for(var le=0;le<B.length;le++){var z=B[le].head.line;N.indentLine(z,null,!0),N.indentLine(z+1,null,!0)}})}function oe(N,w){for(var M=[],B=N.listSelections(),Z=0,ae=0;ae<B.length;ae++){var H=B[ae];H.head==N.getCursor()&&(Z=ae);var le=H.head.ch||w>0?{line:H.head.line,ch:H.head.ch+w}:{line:H.head.line-1};M.push({anchor:le,head:le})}N.setSelections(M,Z)}function fe(N){var w=m.cmpPos(N.anchor,N.head)>0;return{anchor:new k(N.anchor.line,N.anchor.ch+(w?-1:1)),head:new k(N.head.line,N.head.ch+(w?1:-1))}}function J(N,w){var M=te(N);if(!M||N.getOption("disableInput"))return m.Pass;var B=L(M,"pairs"),Z=B.indexOf(w);if(Z==-1)return m.Pass;for(var ae=L(M,"closeBefore"),H=L(M,"triples"),le=B.charAt(Z+1)==w,z=N.listSelections(),q=Z%2==0,pe,xe=0;xe<z.length;xe++){var Q=z[xe],ye=Q.head,ie,je=N.getRange(ye,k(ye.line,ye.ch+1));if(q&&!Q.empty())ie="surround";else if((le||!q)&&je==w)le&&ee(N,ye)?ie="both":H.indexOf(w)>=0&&N.getRange(ye,k(ye.line,ye.ch+3))==w+w+w?ie="skipThree":ie="skip";else if(le&&ye.ch>1&&H.indexOf(w)>=0&&N.getRange(k(ye.line,ye.ch-2),ye)==w+w){if(ye.ch>2&&/\bstring/.test(N.getTokenTypeAt(k(ye.line,ye.ch-2))))return m.Pass;ie="addFour"}else if(le){var ze=ye.ch==0?" ":N.getRange(k(ye.line,ye.ch-1),ye);if(!m.isWordChar(je)&&ze!=w&&!m.isWordChar(ze))ie="both";else return m.Pass}else if(q&&(je.length===0||/\s/.test(je)||ae.indexOf(je)>-1))ie="both";else return m.Pass;if(!pe)pe=ie;else if(pe!=ie)return m.Pass}var Ue=Z%2?B.charAt(Z-1):w,vt=Z%2?w:B.charAt(Z+1);N.operation(function(){if(pe=="skip")oe(N,1);else if(pe=="skipThree")oe(N,3);else if(pe=="surround"){for(var pt=N.getSelections(),ut=0;ut<pt.length;ut++)pt[ut]=Ue+pt[ut]+vt;N.replaceSelections(pt,"around"),pt=N.listSelections().slice();for(var ut=0;ut<pt.length;ut++)pt[ut]=fe(pt[ut]);N.setSelections(pt)}else pe=="both"?(N.replaceSelection(Ue+vt,null),N.triggerElectric(Ue+vt),oe(N,-1)):pe=="addFour"&&(N.replaceSelection(Ue+Ue+Ue+Ue,"before"),oe(N,1))})}function F(N,w){var M=N.getRange(k(w.line,w.ch-1),k(w.line,w.ch+1));return M.length==2?M:null}function ee(N,w){var M=N.getTokenAt(k(w.line,w.ch+1));return/\bstring/.test(M.type)&&M.start==w.ch&&(w.ch==0||!/\bstring/.test(N.getTokenTypeAt(w)))}})},82518:(S,R,c)=>{(function(m){m(c(46944))})(function(m){var O=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),k=m.Pos,L={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function D(oe){return oe&&oe.bracketRegex||/[(){}[\]]/}function j(oe,fe,J){var F=oe.getLineHandle(fe.line),ee=fe.ch-1,N=J&&J.afterCursor;N==null&&(N=/(^| )cm-fat-cursor($| )/.test(oe.getWrapperElement().className));var w=D(J),M=!N&&ee>=0&&w.test(F.text.charAt(ee))&&L[F.text.charAt(ee)]||w.test(F.text.charAt(ee+1))&&L[F.text.charAt(++ee)];if(!M)return null;var B=M.charAt(1)==">"?1:-1;if(J&&J.strict&&B>0!=(ee==fe.ch))return null;var Z=oe.getTokenTypeAt(k(fe.line,ee+1)),ae=X(oe,k(fe.line,ee+(B>0?1:0)),B,Z,J);return ae==null?null:{from:k(fe.line,ee),to:ae&&ae.pos,match:ae&&ae.ch==M.charAt(0),forward:B>0}}function X(oe,fe,J,F,ee){for(var N=ee&&ee.maxScanLineLength||1e4,w=ee&&ee.maxScanLines||1e3,M=[],B=D(ee),Z=J>0?Math.min(fe.line+w,oe.lastLine()+1):Math.max(oe.firstLine()-1,fe.line-w),ae=fe.line;ae!=Z;ae+=J){var H=oe.getLine(ae);if(H){var le=J>0?0:H.length-1,z=J>0?H.length:-1;if(!(H.length>N))for(ae==fe.line&&(le=fe.ch-(J<0?1:0));le!=z;le+=J){var q=H.charAt(le);if(B.test(q)&&(F===void 0||(oe.getTokenTypeAt(k(ae,le+1))||"")==(F||""))){var pe=L[q];if(pe&&pe.charAt(1)==">"==J>0)M.push(q);else if(M.length)M.pop();else return{pos:k(ae,le),ch:q}}}}}return ae-J==(J>0?oe.lastLine():oe.firstLine())?!1:null}function te(oe,fe,J){for(var F=oe.state.matchBrackets.maxHighlightLineLength||1e3,ee=J&&J.highlightNonMatching,N=[],w=oe.listSelections(),M=0;M<w.length;M++){var B=w[M].empty()&&j(oe,w[M].head,J);if(B&&(B.match||ee!==!1)&&oe.getLine(B.from.line).length<=F){var Z=B.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";N.push(oe.markText(B.from,k(B.from.line,B.from.ch+1),{className:Z})),B.to&&oe.getLine(B.to.line).length<=F&&N.push(oe.markText(B.to,k(B.to.line,B.to.ch+1),{className:Z}))}}if(N.length){O&&oe.state.focused&&oe.focus();var ae=function(){oe.operation(function(){for(var H=0;H<N.length;H++)N[H].clear()})};if(fe)setTimeout(ae,800);else return ae}}function re(oe){oe.operation(function(){oe.state.matchBrackets.currentlyHighlighted&&(oe.state.matchBrackets.currentlyHighlighted(),oe.state.matchBrackets.currentlyHighlighted=null),oe.state.matchBrackets.currentlyHighlighted=te(oe,!1,oe.state.matchBrackets)})}function he(oe){oe.state.matchBrackets&&oe.state.matchBrackets.currentlyHighlighted&&(oe.state.matchBrackets.currentlyHighlighted(),oe.state.matchBrackets.currentlyHighlighted=null)}m.defineOption("matchBrackets",!1,function(oe,fe,J){J&&J!=m.Init&&(oe.off("cursorActivity",re),oe.off("focus",re),oe.off("blur",he),he(oe)),fe&&(oe.state.matchBrackets=typeof fe=="object"?fe:{},oe.on("cursorActivity",re),oe.on("focus",re),oe.on("blur",he))}),m.defineExtension("matchBrackets",function(){te(this,!0)}),m.defineExtension("findMatchingBracket",function(oe,fe,J){return(J||typeof fe=="boolean")&&(J?(J.strict=fe,fe=J):fe=fe?{strict:!0}:null),j(this,oe,fe)}),m.defineExtension("scanForBracket",function(oe,fe,J,F){return X(this,oe,fe,J,F)})})},77436:(S,R,c)=>{(function(m){m(c(46944))})(function(m){"use strict";var O="CodeMirror-hint",k="CodeMirror-hint-active";m.showHint=function(N,w,M){if(!w)return N.showHint(M);M&&M.async&&(w.async=!0);var B={hint:w};if(M)for(var Z in M)B[Z]=M[Z];return N.showHint(B)},m.defineExtension("showHint",function(N){N=X(this,this.getCursor("start"),N);var w=this.listSelections();if(!(w.length>1)){if(this.somethingSelected()){if(!N.hint.supportsSelection)return;for(var M=0;M<w.length;M++)if(w[M].head.line!=w[M].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var B=this.state.completionActive=new L(this,N);B.options.hint&&(m.signal(this,"startCompletion",this),B.update(!0))}}),m.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function L(N,w){if(this.cm=N,this.options=w,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 M=this;N.on("cursorActivity",this.activityFunc=function(){M.cursorActivity()})}}var D=window.requestAnimationFrame||function(N){return setTimeout(N,1e3/60)},j=window.cancelAnimationFrame||clearTimeout;L.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(N,w){var M=N.list[w],B=this;this.cm.operation(function(){M.hint?M.hint(B.cm,N,M):B.cm.replaceRange(te(M),M.from||N.from,M.to||N.to,"complete"),m.signal(N,"pick",M),B.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(j(this.debounce),this.debounce=0);var N=this.startPos;this.data&&(N=this.data.from);var w=this.cm.getCursor(),M=this.cm.getLine(w.line);if(w.line!=this.startPos.line||M.length-w.ch!=this.startLen-this.startPos.ch||w.ch<N.ch||this.cm.somethingSelected()||!w.ch||this.options.closeCharacters.test(M.charAt(w.ch-1)))this.close();else{var B=this;this.debounce=D(function(){B.update()}),this.widget&&this.widget.disable()}},update:function(N){if(this.tick!=null){var w=this,M=++this.tick;J(this.options.hint,this.cm,this.options,function(B){w.tick==M&&w.finishUpdate(B,N)})}},finishUpdate:function(N,w){this.data&&m.signal(this.data,"update");var M=this.widget&&this.widget.picked||w&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=N,N&&N.list.length&&(M&&N.list.length==1?this.pick(N,0):(this.widget=new oe(this,N),m.signal(N,"shown")))}};function X(N,w,M){var B=N.options.hintOptions,Z={};for(var ae in ee)Z[ae]=ee[ae];if(B)for(var ae in B)B[ae]!==void 0&&(Z[ae]=B[ae]);if(M)for(var ae in M)M[ae]!==void 0&&(Z[ae]=M[ae]);return Z.hint.resolve&&(Z.hint=Z.hint.resolve(N,w)),Z}function te(N){return typeof N=="string"?N:N.text}function re(N,w){var M={Up:function(){w.moveFocus(-1)},Down:function(){w.moveFocus(1)},PageUp:function(){w.moveFocus(-w.menuSize()+1,!0)},PageDown:function(){w.moveFocus(w.menuSize()-1,!0)},Home:function(){w.setFocus(0)},End:function(){w.setFocus(w.length-1)},Enter:w.pick,Tab:w.pick,Esc:w.close},B=/Mac/.test(navigator.platform);B&&(M["Ctrl-P"]=function(){w.moveFocus(-1)},M["Ctrl-N"]=function(){w.moveFocus(1)});var Z=N.options.customKeys,ae=Z?{}:M;function H(q,pe){var xe;typeof pe!="string"?xe=function(Q){return pe(Q,w)}:M.hasOwnProperty(pe)?xe=M[pe]:xe=pe,ae[q]=xe}if(Z)for(var le in Z)Z.hasOwnProperty(le)&&H(le,Z[le]);var z=N.options.extraKeys;if(z)for(var le in z)z.hasOwnProperty(le)&&H(le,z[le]);return ae}function he(N,w){for(;w&&w!=N;){if(w.nodeName.toUpperCase()==="LI"&&w.parentNode==N)return w;w=w.parentNode}}function oe(N,w){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=N,this.data=w,this.picked=!1;var M=this,B=N.cm,Z=B.getInputField().ownerDocument,ae=Z.defaultView||Z.parentWindow,H=this.hints=Z.createElement("ul");H.setAttribute("role","listbox"),H.setAttribute("aria-expanded","true"),H.id=this.id;var le=N.cm.options.theme;H.className="CodeMirror-hints "+le,this.selectedHint=w.selectedHint||0;for(var z=w.list,q=0;q<z.length;++q){var pe=H.appendChild(Z.createElement("li")),xe=z[q],Q=O+(q!=this.selectedHint?"":" "+k);xe.className!=null&&(Q=xe.className+" "+Q),pe.className=Q,q==this.selectedHint&&pe.setAttribute("aria-selected","true"),pe.id=this.id+"-"+q,pe.setAttribute("role","option"),xe.render?xe.render(pe,w,xe):pe.appendChild(Z.createTextNode(xe.displayText||te(xe))),pe.hintId=q}var ye=N.options.container||Z.body,ie=B.cursorCoords(N.options.alignWithWord?w.from:null),je=ie.left,ze=ie.bottom,Ue=!0,vt=0,pt=0;if(ye!==Z.body){var ut=["absolute","relative","fixed"].indexOf(ae.getComputedStyle(ye).position)!==-1,er=ut?ye:ye.offsetParent,gt=er.getBoundingClientRect(),Rt=Z.body.getBoundingClientRect();vt=gt.left-Rt.left-er.scrollLeft,pt=gt.top-Rt.top-er.scrollTop}H.style.left=je-vt+"px",H.style.top=ze-pt+"px";var st=ae.innerWidth||Math.max(Z.body.offsetWidth,Z.documentElement.offsetWidth),He=ae.innerHeight||Math.max(Z.body.offsetHeight,Z.documentElement.offsetHeight);ye.appendChild(H),B.getInputField().setAttribute("aria-autocomplete","list"),B.getInputField().setAttribute("aria-owns",this.id),B.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var Re=N.options.moveOnOverlap?H.getBoundingClientRect():new DOMRect,Be=N.options.paddingForScrollbar?H.scrollHeight>H.clientHeight+1:!1,lt;setTimeout(function(){lt=B.getScrollInfo()});var _t=Re.bottom-He;if(_t>0){var rt=Re.bottom-Re.top,Pt=Re.top-(ie.bottom-ie.top)-2;He-Re.top<Pt?(rt>Pt&&(H.style.height=(rt=Pt)+"px"),H.style.top=(ze=ie.top-rt)+pt+"px",Ue=!1):H.style.height=He-Re.top-2+"px"}var tr=Re.right-st;if(Be&&(tr+=B.display.nativeBarWidth),tr>0&&(Re.right-Re.left>st&&(H.style.width=st-5+"px",tr-=Re.right-Re.left-st),H.style.left=(je=Math.max(ie.left-tr-vt,0))+"px"),Be)for(var or=H.firstChild;or;or=or.nextSibling)or.style.paddingRight=B.display.nativeBarWidth+"px";if(B.addKeyMap(this.keyMap=re(N,{moveFocus:function(Et,jt){M.changeActive(M.selectedHint+Et,jt)},setFocus:function(Et){M.changeActive(Et)},menuSize:function(){return M.screenAmount()},length:z.length,close:function(){N.close()},pick:function(){M.pick()},data:w})),N.options.closeOnUnfocus){var kr;B.on("blur",this.onBlur=function(){kr=setTimeout(function(){N.close()},100)}),B.on("focus",this.onFocus=function(){clearTimeout(kr)})}B.on("scroll",this.onScroll=function(){var Et=B.getScrollInfo(),jt=B.getWrapperElement().getBoundingClientRect();lt||(lt=B.getScrollInfo());var _r=ze+lt.top-Et.top,zt=_r-(ae.pageYOffset||(Z.documentElement||Z.body).scrollTop);if(Ue||(zt+=H.offsetHeight),zt<=jt.top||zt>=jt.bottom)return N.close();H.style.top=_r+"px",H.style.left=je+lt.left-Et.left+"px"}),m.on(H,"dblclick",function(Et){var jt=he(H,Et.target||Et.srcElement);jt&&jt.hintId!=null&&(M.changeActive(jt.hintId),M.pick())}),m.on(H,"click",function(Et){var jt=he(H,Et.target||Et.srcElement);jt&&jt.hintId!=null&&(M.changeActive(jt.hintId),N.options.completeOnSingleClick&&M.pick())}),m.on(H,"mousedown",function(){setTimeout(function(){B.focus()},20)});var et=this.getSelectedHintRange();return(et.from!==0||et.to!==0)&&this.scrollToActive(),m.signal(w,"select",z[this.selectedHint],H.childNodes[this.selectedHint]),!0}oe.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 N=this.completion.cm.getInputField();N.removeAttribute("aria-activedescendant"),N.removeAttribute("aria-owns");var w=this.completion.cm;this.completion.options.closeOnUnfocus&&(w.off("blur",this.onBlur),w.off("focus",this.onFocus)),w.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var N=this;this.keyMap={Enter:function(){N.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(N,w){if(N>=this.data.list.length?N=w?this.data.list.length-1:0:N<0&&(N=w?0:this.data.list.length-1),this.selectedHint!=N){var M=this.hints.childNodes[this.selectedHint];M&&(M.className=M.className.replace(" "+k,""),M.removeAttribute("aria-selected")),M=this.hints.childNodes[this.selectedHint=N],M.className+=" "+k,M.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",M.id),this.scrollToActive(),m.signal(this.data,"select",this.data.list[this.selectedHint],M)}},scrollToActive:function(){var N=this.getSelectedHintRange(),w=this.hints.childNodes[N.from],M=this.hints.childNodes[N.to],B=this.hints.firstChild;w.offsetTop<this.hints.scrollTop?this.hints.scrollTop=w.offsetTop-B.offsetTop:M.offsetTop+M.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=M.offsetTop+M.offsetHeight-this.hints.clientHeight+B.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var N=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-N),to:Math.min(this.data.list.length-1,this.selectedHint+N)}}};function fe(N,w){if(!N.somethingSelected())return w;for(var M=[],B=0;B<w.length;B++)w[B].supportsSelection&&M.push(w[B]);return M}function J(N,w,M,B){if(N.async)N(w,B,M);else{var Z=N(w,M);Z&&Z.then?Z.then(B):B(Z)}}function F(N,w){var M=N.getHelpers(w,"hint"),B;if(M.length){var Z=function(ae,H,le){var z=fe(ae,M);function q(pe){if(pe==z.length)return H(null);J(z[pe],ae,le,function(xe){xe&&xe.list.length>0?H(xe):q(pe+1)})}q(0)};return Z.async=!0,Z.supportsSelection=!0,Z}else return(B=N.getHelper(N.getCursor(),"hintWords"))?function(ae){return m.hint.fromList(ae,{words:B})}:m.hint.anyword?function(ae,H){return m.hint.anyword(ae,H)}:function(){}}m.registerHelper("hint","auto",{resolve:F}),m.registerHelper("hint","fromList",function(N,w){var M=N.getCursor(),B=N.getTokenAt(M),Z,ae=m.Pos(M.line,B.start),H=M;B.start<M.ch&&/\w/.test(B.string.charAt(M.ch-B.start-1))?Z=B.string.substr(0,M.ch-B.start):(Z="",ae=M);for(var le=[],z=0;z<w.words.length;z++){var q=w.words[z];q.slice(0,Z.length)==Z&&le.push(q)}if(le.length)return{list:le,from:ae,to:H}}),m.commands.autocomplete=m.showHint;var ee={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:(S,R,c)=>{(function(m){m(c(46944))})(function(m){"use strict";var O="CodeMirror-lint-markers",k="CodeMirror-lint-line-";function L(H,le,z){var q=document.createElement("div");q.className="CodeMirror-lint-tooltip cm-s-"+H.options.theme,q.appendChild(z.cloneNode(!0)),H.state.lint.options.selfContain?H.getWrapperElement().appendChild(q):document.body.appendChild(q);function pe(xe){if(!q.parentNode)return m.off(document,"mousemove",pe);q.style.top=Math.max(0,xe.clientY-q.offsetHeight-5)+"px",q.style.left=xe.clientX+5+"px"}return m.on(document,"mousemove",pe),pe(le),q.style.opacity!=null&&(q.style.opacity=1),q}function D(H){H.parentNode&&H.parentNode.removeChild(H)}function j(H){H.parentNode&&(H.style.opacity==null&&D(H),H.style.opacity=0,setTimeout(function(){D(H)},600))}function X(H,le,z,q){var pe=L(H,le,z);function xe(){m.off(q,"mouseout",xe),pe&&(j(pe),pe=null)}var Q=setInterval(function(){if(pe)for(var ye=q;;ye=ye.parentNode){if(ye&&ye.nodeType==11&&(ye=ye.host),ye==document.body)return;if(!ye){xe();break}}if(!pe)return clearInterval(Q)},400);m.on(q,"mouseout",xe)}function te(H,le,z){this.marked=[],le instanceof Function&&(le={getAnnotations:le}),(!le||le===!0)&&(le={}),this.options={},this.linterOptions=le.options||{};for(var q in re)this.options[q]=re[q];for(var q in le)re.hasOwnProperty(q)?le[q]!=null&&(this.options[q]=le[q]):le.options||(this.linterOptions[q]=le[q]);this.timeout=null,this.hasGutter=z,this.onMouseOver=function(pe){ae(H,pe)},this.waitingFor=0}var re={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function he(H){var le=H.state.lint;le.hasGutter&&H.clearGutter(O),le.options.highlightLines&&oe(H);for(var z=0;z<le.marked.length;++z)le.marked[z].clear();le.marked.length=0}function oe(H){H.eachLine(function(le){var z=le.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(le.wrapClass);z&&H.removeLineClass(le,"wrap",z[0])})}function fe(H,le,z,q,pe){var xe=document.createElement("div"),Q=xe;return xe.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+z,q&&(Q=xe.appendChild(document.createElement("div")),Q.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),pe!=!1&&m.on(Q,"mouseover",function(ye){X(H,ye,le,Q)}),xe}function J(H,le){return H=="error"?H:le}function F(H){for(var le=[],z=0;z<H.length;++z){var q=H[z],pe=q.from.line;(le[pe]||(le[pe]=[])).push(q)}return le}function ee(H){var le=H.severity;le||(le="error");var z=document.createElement("div");return z.className="CodeMirror-lint-message CodeMirror-lint-message-"+le,typeof H.messageHTML<"u"?z.innerHTML=H.messageHTML:z.appendChild(document.createTextNode(H.message)),z}function N(H,le){var z=H.state.lint,q=++z.waitingFor;function pe(){q=-1,H.off("change",pe)}H.on("change",pe),le(H.getValue(),function(xe,Q){H.off("change",pe),z.waitingFor==q&&(Q&&xe instanceof m&&(xe=Q),H.operation(function(){M(H,xe)}))},z.linterOptions,H)}function w(H){var le=H.state.lint;if(le){var z=le.options,q=z.getAnnotations||H.getHelper(m.Pos(0,0),"lint");if(q)if(z.async||q.async)N(H,q);else{var pe=q(H.getValue(),le.linterOptions,H);if(!pe)return;pe.then?pe.then(function(xe){H.operation(function(){M(H,xe)})}):H.operation(function(){M(H,pe)})}}}function M(H,le){var z=H.state.lint;if(z){var q=z.options;he(H);for(var pe=F(le),xe=0;xe<pe.length;++xe){var Q=pe[xe];if(Q){var ye=[];Q=Q.filter(function(pt){return ye.indexOf(pt.message)>-1?!1:ye.push(pt.message)});for(var ie=null,je=z.hasGutter&&document.createDocumentFragment(),ze=0;ze<Q.length;++ze){var Ue=Q[ze],vt=Ue.severity;vt||(vt="error"),ie=J(ie,vt),q.formatAnnotation&&(Ue=q.formatAnnotation(Ue)),z.hasGutter&&je.appendChild(ee(Ue)),Ue.to&&z.marked.push(H.markText(Ue.from,Ue.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+vt,__annotation:Ue}))}z.hasGutter&&H.setGutterMarker(xe,O,fe(H,je,ie,pe[xe].length>1,q.tooltips)),q.highlightLines&&H.addLineClass(xe,"wrap",k+ie)}}q.onUpdateLinting&&q.onUpdateLinting(le,pe,H)}}function B(H){var le=H.state.lint;le&&(clearTimeout(le.timeout),le.timeout=setTimeout(function(){w(H)},le.options.delay))}function Z(H,le,z){for(var q=z.target||z.srcElement,pe=document.createDocumentFragment(),xe=0;xe<le.length;xe++){var Q=le[xe];pe.appendChild(ee(Q))}X(H,z,pe,q)}function ae(H,le){var z=le.target||le.srcElement;if(/\bCodeMirror-lint-mark-/.test(z.className)){for(var q=z.getBoundingClientRect(),pe=(q.left+q.right)/2,xe=(q.top+q.bottom)/2,Q=H.findMarksAt(H.coordsChar({left:pe,top:xe},"client")),ye=[],ie=0;ie<Q.length;++ie){var je=Q[ie].__annotation;je&&ye.push(je)}ye.length&&Z(H,ye,le)}}m.defineOption("lint",!1,function(H,le,z){if(z&&z!=m.Init&&(he(H),H.state.lint.options.lintOnChange!==!1&&H.off("change",B),m.off(H.getWrapperElement(),"mouseover",H.state.lint.onMouseOver),clearTimeout(H.state.lint.timeout),delete H.state.lint),le){for(var q=H.getOption("gutters"),pe=!1,xe=0;xe<q.length;++xe)q[xe]==O&&(pe=!0);var Q=H.state.lint=new te(H,le,pe);Q.options.lintOnChange&&H.on("change",B),Q.options.tooltips!=!1&&Q.options.tooltips!="gutter"&&m.on(H.getWrapperElement(),"mouseover",Q.onMouseOver),w(H)}}),m.defineExtension("performLint",function(){w(this)})})},71628:(S,R,c)=>{(function(m){m(c(46944))})(function(m){"use strict";var O=m.Pos;function k(w){var M=w.flags;return M??(w.ignoreCase?"i":"")+(w.global?"g":"")+(w.multiline?"m":"")}function L(w,M){for(var B=k(w),Z=B,ae=0;ae<M.length;ae++)Z.indexOf(M.charAt(ae))==-1&&(Z+=M.charAt(ae));return B==Z?w:new RegExp(w.source,Z)}function D(w){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(w.source)}function j(w,M,B){M=L(M,"g");for(var Z=B.line,ae=B.ch,H=w.lastLine();Z<=H;Z++,ae=0){M.lastIndex=ae;var le=w.getLine(Z),z=M.exec(le);if(z)return{from:O(Z,z.index),to:O(Z,z.index+z[0].length),match:z}}}function X(w,M,B){if(!D(M))return j(w,M,B);M=L(M,"gm");for(var Z,ae=1,H=B.line,le=w.lastLine();H<=le;){for(var z=0;z<ae&&!(H>le);z++){var q=w.getLine(H++);Z=Z==null?q:Z+`
|
|
8
8
|
`+q}ae=ae*2,M.lastIndex=B.ch;var pe=M.exec(Z);if(pe){var xe=Z.slice(0,pe.index).split(`
|
|
@@ -78,7 +78,7 @@ b`.split(/\n/).length!=3?function(t){for(var n=0,l=[],s=t.length;n<=s;){var u=t.
|
|
|
78
78
|
`+e.slice(o,f),o=f+1),d=v;return h+=`
|
|
79
79
|
`,e.length-o>r&&d>o?h+=e.slice(o,d)+`
|
|
80
80
|
`+e.slice(d+1):h+=e.slice(o),h.slice(1)}function Au(e){for(var r="",i=0,a,o=0;o<e.length;i>=65536?o+=2:o++)i=Da(e,o),a=Br[i],!a&&zn(i)?(r+=e[o],i>=65536&&(r+=e[o+1])):r+=a||xu(i);return r}function el(e,r,i){var a="",o=e.tag,f,d,v;for(f=0,d=i.length;f<d;f+=1)v=i[f],e.replacer&&(v=e.replacer.call(i,String(f),v)),(li(e,r,v,!1,!1)||typeof v>"u"&&li(e,r,null,!1,!1))&&(a!==""&&(a+=","+(e.condenseFlow?"":" ")),a+=e.dump);e.tag=o,e.dump="["+a+"]"}function yo(e,r,i,a){var o="",f=e.tag,d,v,h;for(d=0,v=i.length;d<v;d+=1)h=i[d],e.replacer&&(h=e.replacer.call(i,String(d),h)),(li(e,r+1,h,!0,!0,!1,!0)||typeof h>"u"&&li(e,r+1,null,!0,!0,!1,!0))&&((!a||o!=="")&&(o+=go(e,r)),e.dump&&Na===e.dump.charCodeAt(0)?o+="-":o+="- ",o+=e.dump);e.tag=f,e.dump=o||"[]"}function Ou(e,r,i){var a="",o=e.tag,f=Object.keys(i),d,v,h,g,b;for(d=0,v=f.length;d<v;d+=1)b="",a!==""&&(b+=", "),e.condenseFlow&&(b+='"'),h=f[d],g=i[h],e.replacer&&(g=e.replacer.call(i,h,g)),li(e,r,h,!1,!1)&&(e.dump.length>1024&&(b+="? "),b+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),li(e,r,g,!1,!1)&&(b+=e.dump,a+=b));e.tag=o,e.dump="{"+a+"}"}function Zo(e,r,i,a){var o="",f=e.tag,d=Object.keys(i),v,h,g,b,E,V;if(e.sortKeys===!0)d.sort();else if(typeof e.sortKeys=="function")d.sort(e.sortKeys);else if(e.sortKeys)throw new rt("sortKeys must be a boolean or a function");for(v=0,h=d.length;v<h;v+=1)V="",(!a||o!=="")&&(V+=go(e,r)),g=d[v],b=i[g],e.replacer&&(b=e.replacer.call(i,g,b)),li(e,r+1,g,!0,!0,!0)&&(E=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,E&&(e.dump&&Na===e.dump.charCodeAt(0)?V+="?":V+="? "),V+=e.dump,E&&(V+=go(e,r)),li(e,r+1,b,!0,E)&&(e.dump&&Na===e.dump.charCodeAt(0)?V+=":":V+=": ",V+=e.dump,o+=V));e.tag=f,e.dump=o||"{}"}function kn(e,r,i){var a,o,f,d,v,h;for(o=i?e.explicitTypes:e.implicitTypes,f=0,d=o.length;f<d;f+=1)if(v=o[f],(v.instanceOf||v.predicate)&&(!v.instanceOf||typeof r=="object"&&r instanceof v.instanceOf)&&(!v.predicate||v.predicate(r))){if(i?v.multi&&v.representName?e.tag=v.representName(r):e.tag=v.tag:e.tag="?",v.represent){if(h=e.styleMap[v.tag]||v.defaultStyle,hu.call(v.represent)==="[object Function]")a=v.represent(r,h);else if(vu.call(v.represent,h))a=v.represent[h](r,h);else throw new rt("!<"+v.tag+'> tag resolver accepts not "'+h+'" style');e.dump=a}return!0}return!1}function li(e,r,i,a,o,f,d){e.tag=null,e.dump=i,kn(e,i,!1)||kn(e,i,!0);var v=hu.call(e.dump),h=a,g;a&&(a=e.flowLevel<0||e.flowLevel>r);var b=v==="[object Object]"||v==="[object Array]",E,V;if(b&&(E=e.duplicates.indexOf(i),V=E!==-1),(e.tag!==null&&e.tag!=="?"||V||e.indent!==2&&r>0)&&(o=!1),V&&e.usedDuplicates[E])e.dump="*ref_"+E;else{if(b&&V&&!e.usedDuplicates[E]&&(e.usedDuplicates[E]=!0),v==="[object Object]")a&&Object.keys(e.dump).length!==0?(Zo(e,r,e.dump,o),V&&(e.dump="&ref_"+E+e.dump)):(Ou(e,r,e.dump),V&&(e.dump="&ref_"+E+" "+e.dump));else if(v==="[object Array]")a&&e.dump.length!==0?(e.noArrayIndent&&!d&&r>0?yo(e,r-1,e.dump,o):yo(e,r,e.dump,o),V&&(e.dump="&ref_"+E+e.dump)):(el(e,r,e.dump),V&&(e.dump="&ref_"+E+" "+e.dump));else if(v==="[object String]")e.tag!=="?"&&Sc(e,e.dump,r,f,h);else{if(v==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new rt("unacceptable kind of an object to dump "+v)}e.tag!==null&&e.tag!=="?"&&(g=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?g="!"+g:g.slice(0,18)==="tag:yaml.org,2002:"?g="!!"+g.slice(18):g="!<"+g+">",e.dump=g+" "+e.dump)}return!0}function tl(e,r){var i=[],a=[],o,f;for(bo(e,i,a),o=0,f=a.length;o<f;o+=1)r.duplicates.push(i[a[o]]);r.usedDuplicates=new Array(f)}function bo(e,r,i){var a,o,f;if(e!==null&&typeof e=="object")if(o=r.indexOf(e),o!==-1)i.indexOf(o)===-1&&i.push(o);else if(r.push(e),Array.isArray(e))for(o=0,f=e.length;o<f;o+=1)bo(e[o],r,i);else for(a=Object.keys(e),o=0,f=a.length;o<f;o+=1)bo(e[a[o]],r,i)}function Eu(e,r){r=r||{};var i=new Ai(r);i.noRefs||tl(e,i);var a=e;return i.replacer&&(a=i.replacer.call({"":a},"",a)),li(i,0,a,!0,!0)?i.dump+`
|
|
81
|
-
`:""}var Tu=Eu,rl={dump:Tu};function nl(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}var wc=zt,Cc=Cn,ia=Mr,Va=ii,ja=Dr,il=$,al=ta.load,ku=ta.loadAll,ol=rl.dump,aa=rt,oa={binary:ai,float:ni,map:an,null:ft,pairs:It,set:T,timestamp:Jr,bool:we,int:Ft,merge:on,omap:Ge,seq:jn,str:ri},qr=nl("safeLoad","load"),Ni=nl("safeLoadAll","loadAll"),Ri=nl("safeDump","dump"),qo={Type:wc,Schema:Cc,FAILSAFE_SCHEMA:ia,JSON_SCHEMA:Va,CORE_SCHEMA:ja,DEFAULT_SCHEMA:il,load:al,loadAll:ku,dump:ol,YAMLException:aa,types:oa,safeLoad:qr,safeLoadAll:Ni,safeDump:Ri};const Ac=qo,Pu=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:window}(),{FormData:Wa,Blob:xo,File:es}=Pu,ts=e=>":/?#[]@!$&'()*+,;=".indexOf(e)>-1,Oc=e=>/^[a-z0-9\-._~]+$/i.test(e);function Di(e){let{escape:r}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;return typeof e=="number"&&(e=e.toString()),typeof e!="string"||!e.length||!r?e:i?JSON.parse(e):[...e].map(a=>{if(Oc(a)||ts(a)&&r==="unsafe")return a;const o=new TextEncoder;return Array.from(o.encode(a)).map(d=>`0${d.toString(16).toUpperCase()}`.slice(-2)).map(d=>`%${d}`).join("")}).join("")}function rs(e){const{value:r}=e;return Array.isArray(r)?sl(e):typeof r=="object"?ll(e):Ha(e)}function sl(e){let{key:r,value:i,style:a,explode:o,escape:f}=e;const d=v=>Di(v,{escape:f});if(a==="simple")return i.map(v=>d(v)).join(",");if(a==="label")return`.${i.map(v=>d(v)).join(".")}`;if(a==="matrix")return i.map(v=>d(v)).reduce((v,h)=>!v||o?`${v||""};${r}=${h}`:`${v},${h}`,"");if(a==="form"){const v=o?`&${r}=`:",";return i.map(h=>d(h)).join(v)}if(a==="spaceDelimited"){const v=o?`${r}=`:"";return i.map(h=>d(h)).join(` ${v}`)}if(a==="pipeDelimited"){const v=o?`${r}=`:"";return i.map(h=>d(h)).join(`|${v}`)}}function ll(e){let{key:r,value:i,style:a,explode:o,escape:f}=e;const d=h=>Di(h,{escape:f}),v=Object.keys(i);if(a==="simple")return v.reduce((h,g)=>{const b=d(i[g]),E=o?"=":",";return`${h?`${h},`:""}${g}${E}${b}`},"");if(a==="label")return v.reduce((h,g)=>{const b=d(i[g]),E=o?"=":".";return`${h?`${h}.`:"."}${g}${E}${b}`},"");if(a==="matrix"&&o)return v.reduce((h,g)=>{const b=d(i[g]);return`${h?`${h};`:";"}${g}=${b}`},"");if(a==="matrix")return v.reduce((h,g)=>{const b=d(i[g]);return`${h?`${h},`:`;${r}=`}${g},${b}`},"");if(a==="form")return v.reduce((h,g)=>{const b=d(i[g]);return`${h?`${h}${o?"&":","}`:""}${g}${o?"=":","}${b}`},"")}function Ha(e){let{key:r,value:i,style:a,escape:o}=e;const f=d=>Di(d,{escape:o});if(a==="simple")return f(i);if(a==="label")return`.${f(i)}`;if(a==="matrix")return`;${r}=${f(i)}`;if(a==="form")return f(i);if(a==="deepObject")return f(i,{},!0)}const Fu=(e,r)=>{r.body=e},Ua={serializeRes:fl,mergeInQueryOrForm:Bi};async function Ec(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};typeof e=="object"&&(r=e,e=r.url),r.headers=r.headers||{},Ua.mergeInQueryOrForm(r),r.headers&&Object.keys(r.headers).forEach(o=>{const f=r.headers[o];typeof f=="string"&&(r.headers[o]=f.replace(/\n+/g," "))}),r.requestInterceptor&&(r=await r.requestInterceptor(r)||r);const i=r.headers["content-type"]||r.headers["Content-Type"];/multipart\/form-data/i.test(i)&&r.body instanceof Wa&&(delete r.headers["content-type"],delete r.headers["Content-Type"]);let a;try{a=await(r.userFetch||fetch)(r.url,r),a=await Ua.serializeRes(a,e,r),r.responseInterceptor&&(a=await r.responseInterceptor(a)||a)}catch(o){if(!a)throw o;const f=new Error(a.statusText||`response status is ${a.status}`);throw f.status=a.status,f.statusCode=a.status,f.responseError=o,f}if(!a.ok){const o=new Error(a.statusText||`response status is ${a.status}`);throw o.status=a.status,o.statusCode=a.status,o.response=a,o}return a}const Tc=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return/(json|xml|yaml|text)\b/.test(e)};function kc(e,r){return r&&(r.indexOf("application/json")===0||r.indexOf("+json")>0)?JSON.parse(e):Ac.load(e)}function fl(e,r){let{loadSpec:i=!1}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const a={ok:e.ok,url:e.url||r,status:e.status,statusText:e.statusText,headers:_a(e.headers)},o=a.headers["content-type"],f=i||Tc(o);return(f?e.text:e.blob||e.buffer).call(e).then(v=>{if(a.text=v,a.data=v,f)try{const h=kc(v,o);a.body=h,a.obj=h}catch(h){a.parseError=h}return a})}function cl(e){return e.includes(", ")?e.split(", "):e}function _a(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return typeof e.entries!="function"?{}:Array.from(e.entries()).reduce((r,i)=>{let[a,o]=i;return r[a]=cl(o),r},{})}function sa(e,r){return!r&&typeof navigator<"u"&&(r=navigator),r&&r.product==="ReactNative"?!!(e&&typeof e=="object"&&typeof e.uri=="string"):typeof es<"u"&&e instanceof es||typeof xo<"u"&&e instanceof xo||ArrayBuffer.isView(e)?!0:e!==null&&typeof e=="object"&&typeof e.pipe=="function"}function Iu(e,r){return Array.isArray(e)&&e.some(i=>sa(i,r))}const ns={form:",",spaceDelimited:"%20",pipeDelimited:"|"},Lu={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function za(e,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{collectionFormat:a,allowEmptyValue:o,serializationOption:f,encoding:d}=r,v=typeof r=="object"&&!Array.isArray(r)?r.value:r,h=i?b=>b.toString():b=>encodeURIComponent(b),g=h(e);if(typeof v>"u"&&o)return[[g,""]];if(sa(v)||Iu(v))return[[g,v]];if(f)return dl(e,v,i,f);if(d){if([typeof d.style,typeof d.explode,typeof d.allowReserved].some(b=>b!=="undefined")){const{style:b,explode:E,allowReserved:V}=d;return dl(e,v,i,{style:b,explode:E,allowReserved:V})}if(d.contentType){if(d.contentType==="application/json"){const b=typeof v=="string"?v:JSON.stringify(v);return[[g,h(b)]]}return[[g,h(v.toString())]]}return typeof v!="object"?[[g,h(v)]]:Array.isArray(v)&&v.every(b=>typeof b!="object")?[[g,v.map(h).join(",")]]:[[g,h(JSON.stringify(v))]]}return typeof v!="object"?[[g,h(v)]]:Array.isArray(v)?a==="multi"?[[g,v.map(h)]]:[[g,v.map(h).join(Lu[a||"csv"])]]:[[g,""]]}function dl(e,r,i,a){const o=a.style||"form",f=typeof a.explode>"u"?o==="form":a.explode,d=i?!1:a&&a.allowReserved?"unsafe":"reserved",v=g=>Di(g,{escape:d}),h=i?g=>g:g=>Di(g,{escape:d});return typeof r!="object"?[[h(e),v(r)]]:Array.isArray(r)?f?[[h(e),r.map(v)]]:[[h(e),r.map(v).join(ns[o])]]:o==="deepObject"?Object.keys(r).map(g=>[h(`${e}[${g}]`),v(r[g])]):f?Object.keys(r).map(g=>[h(g),v(r[g])]):[[h(e),Object.keys(r).map(g=>[`${h(g)},${v(r[g])}`]).join(",")]]}function la(e){return Object.entries(e).reduce((r,i)=>{let[a,o]=i;for(const[f,d]of za(a,o,!0))if(Array.isArray(d))for(const v of d)if(ArrayBuffer.isView(v)){const h=new xo([v]);r.append(f,h)}else r.append(f,v);else if(ArrayBuffer.isView(d)){const v=new xo([d]);r.append(f,v)}else r.append(f,d);return r},new Wa)}function Ga(e){const r=Object.keys(e).reduce((i,a)=>{for(const[o,f]of za(a,e[a]))i[o]=f;return i},{});return ie().stringify(r,{encode:!1,indices:!1})||""}function Bi(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{url:r="",query:i,form:a}=e,o=function(){for(var f=arguments.length,d=new Array(f),v=0;v<f;v++)d[v]=arguments[v];const h=d.filter(g=>g).join("&");return h?`?${h}`:""};if(a){const f=Object.keys(a).some(v=>{const{value:h}=a[v];return sa(h)||Iu(h)}),d=e.headers["content-type"]||e.headers["Content-Type"];if(f||/multipart\/form-data/i.test(d)){const v=la(e.form);Fu(v,e)}else e.body=Ga(a);delete e.form}if(i){const[f,d]=r.split("?");let v="";if(d){const g=ie().parse(d);Object.keys(i).forEach(E=>delete g[E]),v=ie().stringify(g,{encode:!0})}const h=o(v,Ga(i));e.url=f+h,delete e.query}return e}function is(e,r,i){return i=i||(a=>a),r=r||(a=>a),a=>(typeof a=="string"&&(a={url:a}),Ua.mergeInQueryOrForm(a),a=r(a),i(e(a)))}function $a(e,r){function i(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack;for(var a=arguments.length,o=new Array(a),f=0;f<a;f++)o[f]=arguments[f];[this.message]=o,r&&r.apply(this,o)}return i.prototype=new Error,i.prototype.name=e,i.prototype.constructor=i,i}const Mu={body:Nu,header:Pc,query:fa,path:ua,formData:Ru};function Nu(e){let{req:r,value:i}=e;r.body=i}function Ru(e){let{req:r,value:i,parameter:a}=e;(i||a.allowEmptyValue)&&(r.form=r.form||{},r.form[a.name]={value:i,allowEmptyValue:a.allowEmptyValue,collectionFormat:a.collectionFormat})}function Pc(e){let{req:r,parameter:i,value:a}=e;r.headers=r.headers||{},typeof a<"u"&&(r.headers[i.name]=a)}function ua(e){let{req:r,value:i,parameter:a}=e;r.url=r.url.split(`{${a.name}}`).join(encodeURIComponent(i))}function fa(e){let{req:r,value:i,parameter:a}=e;if(r.query=r.query||{},i===!1&&a.type==="boolean"&&(i="false"),i===0&&["number","integer"].indexOf(a.type)>-1&&(i="0"),i)r.query[a.name]={collectionFormat:a.collectionFormat,value:i};else if(a.allowEmptyValue&&i!==void 0){const o=a.name;r.query[o]=r.query[o]||{},r.query[o].allowEmptyValue=!0}}function as(e,r){return r.includes("application/json")?typeof e=="string"?e:JSON.stringify(e):e.toString()}function Fc(e){let{req:r,value:i,parameter:a}=e;const{name:o,style:f,explode:d,content:v}=a;if(v){const g=Object.keys(v)[0];r.url=r.url.split(`{${o}}`).join(Di(as(i,g),{escape:!0}));return}const h=rs({key:a.name,value:i,style:f||"simple",explode:d||!1,escape:!0});r.url=r.url.split(`{${o}}`).join(h)}function Ic(e){let{req:r,value:i,parameter:a}=e;if(r.query=r.query||{},a.content){const o=Object.keys(a.content)[0],f=as(i,o);if(f)r.query[a.name]=f;else if(a.allowEmptyValue&&i!==void 0){const d=a.name;r.query[d]=r.query[d]||{},r.query[d].allowEmptyValue=!0}return}if(i===!1&&(i="false"),i===0&&(i="0"),i){const{style:o,explode:f,allowReserved:d}=a;r.query[a.name]={value:i,serializationOption:{style:o,explode:f,allowReserved:d}}}else if(a.allowEmptyValue&&i!==void 0){const o=a.name;r.query[o]=r.query[o]||{},r.query[o].allowEmptyValue=!0}}const Lc=["accept","authorization","content-type"];function Mc(e){let{req:r,parameter:i,value:a}=e;if(r.headers=r.headers||{},!(Lc.indexOf(i.name.toLowerCase())>-1)){if(i.content){const o=Object.keys(i.content)[0];r.headers[i.name]=as(a,o);return}typeof a<"u"&&(r.headers[i.name]=rs({key:i.name,value:a,style:i.style||"simple",explode:typeof i.explode>"u"?!1:i.explode,escape:!1}))}}function Nc(e){let{req:r,parameter:i,value:a}=e;r.headers=r.headers||{};const o=typeof a;if(i.content){const f=Object.keys(i.content)[0];r.headers.Cookie=`${i.name}=${as(a,f)}`;return}if(o!=="undefined"){const f=o==="object"&&!Array.isArray(a)&&i.explode?"":`${i.name}=`;r.headers.Cookie=f+rs({key:i.name,value:a,escape:!1,style:i.style||"form",explode:typeof i.explode>"u"?!1:i.explode})}}const ln=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:window)(),{btoa:br}=ln,Vr=br;function xr(e,r){const{operation:i,requestBody:a,securities:o,spec:f,attachContentTypeForEmptyPayload:d}=e;let{requestContentType:v}=e;r=So({request:r,securities:o,operation:i,spec:f});const h=i.requestBody||{},g=Object.keys(h.content||{}),b=v&&g.indexOf(v)>-1;if(a||d){if(v&&b)r.headers["Content-Type"]=v;else if(!v){const E=g[0];E&&(r.headers["Content-Type"]=E,v=E)}}else v&&b&&(r.headers["Content-Type"]=v);if(!e.responseContentType&&i.responses){const E=Object.entries(i.responses).filter(V=>{let[I,W]=V;const Y=parseInt(I,10);return Y>=200&&Y<300&&xe(W.content)}).reduce((V,I)=>{let[,W]=I;return V.concat(Object.keys(W.content))},[]);E.length>0&&(r.headers.accept=E.join(", "))}if(a)if(v){if(g.indexOf(v)>-1)if(v==="application/x-www-form-urlencoded"||v==="multipart/form-data")if(typeof a=="object"){const E=(h.content[v]||{}).encoding||{};r.form={},Object.keys(a).forEach(V=>{r.form[V]={value:a[V],encoding:E[V]||{}}})}else r.form=a;else r.body=a}else r.body=a;return r}function So(e){let{request:r,securities:i={},operation:a={},spec:o}=e;const f=M({},r),{authorized:d={}}=i,v=a.security||o.security||[],h=d&&!!Object.keys(d).length,g=le()(o,["components","securitySchemes"])||{};return f.headers=f.headers||{},f.query=f.query||{},!Object.keys(i).length||!h||!v||Array.isArray(a.security)&&!a.security.length?r:(v.forEach(b=>{Object.keys(b).forEach(E=>{const V=d[E],I=g[E];if(!V)return;const W=V.value||V,{type:Y}=I;if(V){if(Y==="apiKey")I.in==="query"&&(f.query[I.name]=W),I.in==="header"&&(f.headers[I.name]=W),I.in==="cookie"&&(f.cookies[I.name]=W);else if(Y==="http"){if(/^basic$/i.test(I.scheme)){const _=W.username||"",U=W.password||"",G=Vr(`${_}:${U}`);f.headers.Authorization=`Basic ${G}`}/^bearer$/i.test(I.scheme)&&(f.headers.Authorization=`Bearer ${W}`)}else if(Y==="oauth2"||Y==="openIdConnect"){const _=V.token||{},U=I["x-tokenName"]||"access_token",G=_[U];let ce=_.token_type;(!ce||ce.toLowerCase()==="bearer")&&(ce="Bearer"),f.headers.Authorization=`${ce} ${G}`}}})}),f)}function Rc(e,r){const{spec:i,operation:a,securities:o,requestContentType:f,responseContentType:d,attachContentTypeForEmptyPayload:v}=e;if(r=os({request:r,securities:o,operation:a,spec:i}),r.body||r.form||v)f?r.headers["Content-Type"]=f:Array.isArray(a.consumes)?[r.headers["Content-Type"]]=a.consumes:Array.isArray(i.consumes)?[r.headers["Content-Type"]]=i.consumes:a.parameters&&a.parameters.filter(h=>h.type==="file").length?r.headers["Content-Type"]="multipart/form-data":a.parameters&&a.parameters.filter(h=>h.in==="formData").length&&(r.headers["Content-Type"]="application/x-www-form-urlencoded");else if(f){const h=a.parameters&&a.parameters.filter(b=>b.in==="body").length>0,g=a.parameters&&a.parameters.filter(b=>b.in==="formData").length>0;(h||g)&&(r.headers["Content-Type"]=f)}return!d&&Array.isArray(a.produces)&&a.produces.length>0&&(r.headers.accept=a.produces.join(", ")),r}function os(e){let{request:r,securities:i={},operation:a={},spec:o}=e;const f=M({},r),{authorized:d={},specSecurity:v=[]}=i,h=a.security||v,g=d&&!!Object.keys(d).length,b=o.securityDefinitions;return f.headers=f.headers||{},f.query=f.query||{},!Object.keys(i).length||!g||!h||Array.isArray(a.security)&&!a.security.length?r:(h.forEach(E=>{Object.keys(E).forEach(V=>{const I=d[V];if(!I)return;const{token:W}=I,Y=I.value||I,_=b[V],{type:U}=_,G=_["x-tokenName"]||"access_token",ce=W&&W[G];let Ce=W&&W.token_type;if(I)if(U==="apiKey"){const ge=_.in==="query"?"query":"headers";f[ge]=f[ge]||{},f[ge][_.name]=Y}else if(U==="basic")if(Y.header)f.headers.authorization=Y.header;else{const ge=Y.username||"",ke=Y.password||"";Y.base64=Vr(`${ge}:${ke}`),f.headers.authorization=`Basic ${Y.base64}`}else U==="oauth2"&&ce&&(Ce=!Ce||Ce.toLowerCase()==="bearer"?"Bearer":Ce,f.headers.authorization=`${Ce} ${ce}`)})}),f)}function Du(e,r){return`${r.toLowerCase()}-${e}`}function Dc(e,r,i){if(!e||typeof e!="object"||!e.paths||typeof e.paths!="object")return null;const{paths:a}=e;for(const o in a)for(const f in a[o]){if(f.toUpperCase()==="PARAMETERS")continue;const d=a[o][f];if(!d||typeof d!="object")continue;const v={spec:e,pathName:o,method:f.toUpperCase(),operation:d},h=r(v);if(i&&h)return v}}function Bc(e,r){return Dc(e,r,!0)||null}const pl=e=>e.replace(/\W/gi,"_");function hl(e,r){let{v2OperationIdCompatibilityMode:i}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(i){let a=`${r.toLowerCase()}_${e}`.replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return a=a||`${e.substring(1)}_${r}`,a.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return`${r.toLowerCase()}${pl(e)}`}function Vc(e,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",{v2OperationIdCompatibilityMode:a}=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return!e||typeof e!="object"?null:(e.operationId||"").replace(/\s/g,"").length?pl(e.operationId):hl(r,i,{v2OperationIdCompatibilityMode:a})}function vl(e,r){return!e||!e.paths?null:Bc(e,i=>{let{pathName:a,method:o,operation:f}=i;if(!f||typeof f!="object")return!1;const d=f.operationId,v=Vc(f,a,o),h=Du(a,o);return[v,h,d].some(g=>g&&g===r)})}const Vu=e=>{try{const{swagger:r}=e;return r==="2.0"}catch{return!1}},ju=e=>{try{const{openapi:r}=e;return typeof r=="string"&&/^3\.0\.([0123])(?:-rc[012])?$/.test(r)}catch{return!1}},Wu=e=>{try{const{openapi:r}=e;return typeof r=="string"&&/^3\.1\.(?:[1-9]\d*|0)$/.test(r)}catch{return!1}},ss=e=>ju(e)||Wu(e),Hu=["http","fetch","spec","operationId","pathName","method","parameters","securities"],Ka=e=>Array.isArray(e)?e:[],jc=$a("OperationNotFoundError",function(r,i,a){this.originalError=a,Object.assign(this,i||{})}),ls=(e,r)=>r.filter(i=>i.name===e),Oi=e=>{const r={};e.forEach(a=>{r[a.in]||(r[a.in]={}),r[a.in][a.name]=a});const i=[];return Object.keys(r).forEach(a=>{Object.keys(r[a]).forEach(o=>{i.push(r[a][o])})}),i},Uu={buildRequest:_u};function Wc(e){let{http:r,fetch:i,spec:a,operationId:o,pathName:f,method:d,parameters:v,securities:h}=e,g=ae(e,Hu);const b=r||i||Ec;f&&d&&!o&&(o=Du(f,d));const E=Uu.buildRequest(M({spec:a,operationId:o,parameters:v,securities:h,http:b},g));return E.body&&(xe(E.body)||Array.isArray(E.body))&&(E.body=JSON.stringify(E.body)),b(E)}function _u(e){const{spec:r,operationId:i,responseContentType:a,scheme:o,requestInterceptor:f,responseInterceptor:d,contextUrl:v,userFetch:h,server:g,serverVariables:b,http:E,signal:V}=e;let{parameters:I,parameterBuilders:W}=e;const Y=ss(r);W||(Y?W=m:W=Mu);let U={url:"",credentials:E&&E.withCredentials?"include":"same-origin",headers:{},cookies:{}};V&&(U.signal=V),f&&(U.requestInterceptor=f),d&&(U.responseInterceptor=d),h&&(U.userFetch=h);const G=vl(r,i);if(!G)throw new jc(`Operation ${i} not found`);const{operation:ce={},method:Ce,pathName:ge}=G;if(U.url+=Dt({spec:r,scheme:o,contextUrl:v,server:g,serverVariables:b,pathName:ge,method:Ce}),!i)return delete U.cookies,U;U.url+=ge,U.method=`${Ce}`.toUpperCase(),I=I||{};const ke=r.paths[ge]||{};a&&(U.headers.accept=a);const be=Oi([].concat(Ka(ce.parameters)).concat(Ka(ke.parameters)));be.forEach(ue=>{const Oe=W[ue.in];let Te;if(ue.in==="body"&&ue.schema&&ue.schema.properties&&(Te=I),Te=ue&&ue.name&&I[ue.name],typeof Te>"u"?Te=ue&&ue.name&&I[`${ue.in}.${ue.name}`]:ls(ue.name,be).length>1&&console.warn(`Parameter '${ue.name}' is ambiguous because the defined spec has more than one parameter with the name: '${ue.name}' and the passed-in parameter values did not define an 'in' value.`),Te!==null){if(typeof ue.default<"u"&&typeof Te>"u"&&(Te=ue.default),typeof Te>"u"&&ue.required&&!ue.allowEmptyValue)throw new Error(`Required parameter ${ue.name} is not provided`);if(Y&&ue.schema&&ue.schema.type==="object"&&typeof Te=="string")try{Te=JSON.parse(Te)}catch{throw new Error("Could not parse object parameter value string as JSON")}Oe&&Oe({req:U,parameter:ue,value:Te,operation:ce,spec:r})}});const me=M(M({},e),{},{operation:ce});if(Y?U=xr(me,U):U=Rc(me,U),U.cookies&&Object.keys(U.cookies).length){const ue=Object.keys(U.cookies).reduce((Oe,Te)=>{const Me=U.cookies[Te],Xe=Oe?"&":"",yt=q.serialize(Te,Me);return Oe+Xe+yt},"");U.headers.Cookie=ue}return U.cookies&&delete U.cookies,Bi(U),U}const en=e=>e?e.replace(/\W/g,""):null;function Dt(e){return ss(e.spec)?Gn(e):zu(e)}function Gn(e){let{spec:r,pathName:i,method:a,server:o,contextUrl:f,serverVariables:d={}}=e;const v=le()(r,["paths",i,(a||"").toLowerCase(),"servers"])||le()(r,["paths",i,"servers"])||le()(r,["servers"]);let h="",g=null;if(o&&v&&v.length){const b=v.map(E=>E.url);b.indexOf(o)>-1&&(h=o,g=v[b.indexOf(o)])}return!h&&v&&v.length&&(h=v[0].url,[g]=v),h.indexOf("{")>-1&&ji(h).forEach(E=>{if(g.variables&&g.variables[E]){const V=g.variables[E],I=d[E]||V.default,W=new RegExp(`{${E}}`,"g");h=h.replace(W,I)}}),Vi(h,f)}function Vi(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const i=e&&r?z.parse(z.resolve(r,e)):z.parse(e),a=z.parse(r),o=en(i.protocol)||en(a.protocol)||"",f=i.host||a.host,d=i.pathname||"";let v;return o&&f?v=`${o}://${f+d}`:v=d,v[v.length-1]==="/"?v.slice(0,-1):v}function ji(e){const r=[],i=/{([^}]+)}/g;let a;for(;a=i.exec(e);)r.push(a[1]);return r}function zu(e){let{spec:r,scheme:i,contextUrl:a=""}=e;const o=z.parse(a),f=Array.isArray(r.schemes)?r.schemes[0]:null,d=i||f||en(o.protocol)||"http",v=r.host||o.host||"",h=r.basePath||"";let g;return d&&v?g=`${d}://${v+h}`:g=h,g[g.length-1]==="/"?g.slice(0,-1):g}var A=c(29901),Jt=c(20202),ui=c(21999),gl=c(37837),wo=c(96244),Gu=c(2526),ml=Object.defineProperty,Wi=Object.defineProperties,$u=Object.getOwnPropertyDescriptors,yl=Object.getOwnPropertySymbols,Hc=Object.prototype.hasOwnProperty,us=Object.prototype.propertyIsEnumerable,fs=(e,r,i)=>r in e?ml(e,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[r]=i,Ku=(e,r)=>{for(var i in r||(r={}))Hc.call(r,i)&&fs(e,i,r[i]);if(yl)for(var i of yl(r))us.call(r,i)&&fs(e,i,r[i]);return e},Uc=(e,r)=>Wi(e,$u(r)),Yu=(e,r,i)=>new Promise((a,o)=>{var f=h=>{try{v(i.next(h))}catch(g){o(g)}},d=h=>{try{v(i.throw(h))}catch(g){o(g)}},v=h=>h.done?a(h.value):Promise.resolve(h.value).then(f,d);v((i=i.apply(e,r)).next())});function _c(e,r){return Yu(this,null,function*(){var i,a,o,f;const d=JSON.parse(JSON.stringify(r)),v=d.openapi?{openapi:d.openapi}:d.swagger?{swagger:d.swagger}:{},h=Uc(Ku({},v),{components:d.components,paths:{[e.path]:{[e.httpVerb]:(a=(i=d.paths)==null?void 0:i[e.path])==null?void 0:a[e.httpVerb],parameters:(f=(o=d.paths)==null?void 0:o[e.path])==null?void 0:f.parameters}}}),g=new wo.Config({}),b=(0,Gu.I)(h),E={config:g,doc:b,dereference:!0};return yield(0,gl.bundle)(E),d})}var zc=c(98910),ca=c(84862),$n=c(53134),Xu=(e,r,i)=>new Promise((a,o)=>{var f=h=>{try{v(i.next(h))}catch(g){o(g)}},d=h=>{try{v(i.throw(h))}catch(g){o(g)}},v=h=>h.done?a(h.value):Promise.resolve(h.value).then(f,d);v((i=i.apply(e,r)).next())});const Ju=Object.values($n.FileUploadFormats),Qu=["application/octet-stream","application/pdf","application/gzip","application/zip"],da=["image/","audio/","video/"];function cs(e){if(da.some(r=>e.startsWith(r)))return e}function pa(e){return Qu.includes(e)?!0:da.some(r=>e.startsWith(r))}function Zu(e){const r=e.type==="array"?e.items:e;if(!r||!r.type||r?.type==="any")return!0;const i=r.contentMediaType||"",a=r.format||r.contentEncoding||(pa(i)?"binary":"");return r.type===$n.DefinitionTypes.STRING&&Ju.includes(a)}function ds(e,r){if(!e||!e.type||e.type==="any")return pa(r);const i=e.format||e.contentEncoding||"";return e.type===$n.DefinitionTypes.STRING&&Ju.includes(i)}function bl(e){return new Promise((r,i)=>{const a=new FileReader;a.onload=()=>{const f=a.result.replace(/data:.*\/.*;base64,/g,"");r(f)},a.onerror=()=>i(a.error),a.readAsDataURL(e)})}function qu({format:e,contentEncoding:r,contentMediaType:i}){return[e,r,i].includes($n.FileUploadFormats.BASE64)}function ef(e,r){return Xu(this,null,function*(){const i=Object.values(e);let a=i.length===1?i[0]:i;return r.type===$n.DefinitionTypes.STRING&&qu(r)?a=yield bl(i[0]):r.type===$n.DefinitionTypes.ARRAY&&r.items&&(qu(r.items)?a=yield Promise.all(i.map(f=>Xu(this,null,function*(){return yield bl(f)}))):a=i),a})}var Sr=c(84622),xt=c(38612),At=c(11991),dt=c(68176),mn=c(71608),Ya=c(64393);function ps({response:e}){return A.createElement(A.Fragment,null,A.createElement(mn.EE,null," Body: "),tf(e))}function tf(e){return e.body?A.createElement(Jt.JsonViewer,{data:e.body,jsonSampleExpandLevel:1}):e.fileInfo?A.createElement(Ya.s,{fileInfo:e.fileInfo}):e.data!==null?e.data?A.createElement(Jt.CodeBlock,{lang:(0,dt.M)(e.headers["Content-Type"]||"text/plain"),source:e.data,header:{controls:{copy:{}}}}):A.createElement(Jt.CodeBlockContainer,{withControls:!0},A.createElement("i",null,"(no content)")):null}var Hi=c(79216);function rf({headers:e}){const r=(0,ui.useRecoilValue)(Hi.lk),[i,a]=(0,A.useState)(!0),{maxResponseHeadersToShowInTryIt:o}=r,f=Object.keys(e),d=!!o&&f.length>o,v=d&&i?[...f].splice(0,o):[...f],h=()=>{a(!i)};return A.createElement(A.Fragment,null,A.createElement(mn.EE,null," Headers: "),A.createElement(Jt.CodeBlockContainer,{withControls:!0},v.map(g=>A.createElement("div",{key:g},A.createElement(ha,null,g,":"),A.createElement("code",null,e[g]))),d&&A.createElement(xl,{onClick:h},i?"Show more...":"Hide headers")))}const ha=At.ZP.strong`
|
|
81
|
+
`:""}var Tu=Eu,rl={dump:Tu};function nl(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}var wc=zt,Cc=Cn,ia=Mr,Va=ii,ja=Dr,il=$,al=ta.load,ku=ta.loadAll,ol=rl.dump,aa=rt,oa={binary:ai,float:ni,map:an,null:ft,pairs:It,set:T,timestamp:Jr,bool:we,int:Ft,merge:on,omap:Ge,seq:jn,str:ri},qr=nl("safeLoad","load"),Ni=nl("safeLoadAll","loadAll"),Ri=nl("safeDump","dump"),qo={Type:wc,Schema:Cc,FAILSAFE_SCHEMA:ia,JSON_SCHEMA:Va,CORE_SCHEMA:ja,DEFAULT_SCHEMA:il,load:al,loadAll:ku,dump:ol,YAMLException:aa,types:oa,safeLoad:qr,safeLoadAll:Ni,safeDump:Ri};const Ac=qo,Pu=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:window}(),{FormData:Wa,Blob:xo,File:es}=Pu,ts=e=>":/?#[]@!$&'()*+,;=".indexOf(e)>-1,Oc=e=>/^[a-z0-9\-._~]+$/i.test(e);function Di(e){let{escape:r}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;return typeof e=="number"&&(e=e.toString()),typeof e!="string"||!e.length||!r?e:i?JSON.parse(e):[...e].map(a=>{if(Oc(a)||ts(a)&&r==="unsafe")return a;const o=new TextEncoder;return Array.from(o.encode(a)).map(d=>`0${d.toString(16).toUpperCase()}`.slice(-2)).map(d=>`%${d}`).join("")}).join("")}function rs(e){const{value:r}=e;return Array.isArray(r)?sl(e):typeof r=="object"?ll(e):Ha(e)}function sl(e){let{key:r,value:i,style:a,explode:o,escape:f}=e;const d=v=>Di(v,{escape:f});if(a==="simple")return i.map(v=>d(v)).join(",");if(a==="label")return`.${i.map(v=>d(v)).join(".")}`;if(a==="matrix")return i.map(v=>d(v)).reduce((v,h)=>!v||o?`${v||""};${r}=${h}`:`${v},${h}`,"");if(a==="form"){const v=o?`&${r}=`:",";return i.map(h=>d(h)).join(v)}if(a==="spaceDelimited"){const v=o?`${r}=`:"";return i.map(h=>d(h)).join(` ${v}`)}if(a==="pipeDelimited"){const v=o?`${r}=`:"";return i.map(h=>d(h)).join(`|${v}`)}}function ll(e){let{key:r,value:i,style:a,explode:o,escape:f}=e;const d=h=>Di(h,{escape:f}),v=Object.keys(i);if(a==="simple")return v.reduce((h,g)=>{const b=d(i[g]),E=o?"=":",";return`${h?`${h},`:""}${g}${E}${b}`},"");if(a==="label")return v.reduce((h,g)=>{const b=d(i[g]),E=o?"=":".";return`${h?`${h}.`:"."}${g}${E}${b}`},"");if(a==="matrix"&&o)return v.reduce((h,g)=>{const b=d(i[g]);return`${h?`${h};`:";"}${g}=${b}`},"");if(a==="matrix")return v.reduce((h,g)=>{const b=d(i[g]);return`${h?`${h},`:`;${r}=`}${g},${b}`},"");if(a==="form")return v.reduce((h,g)=>{const b=d(i[g]);return`${h?`${h}${o?"&":","}`:""}${g}${o?"=":","}${b}`},"")}function Ha(e){let{key:r,value:i,style:a,escape:o}=e;const f=d=>Di(d,{escape:o});if(a==="simple")return f(i);if(a==="label")return`.${f(i)}`;if(a==="matrix")return`;${r}=${f(i)}`;if(a==="form")return f(i);if(a==="deepObject")return f(i,{},!0)}const Fu=(e,r)=>{r.body=e},Ua={serializeRes:fl,mergeInQueryOrForm:Bi};async function Ec(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};typeof e=="object"&&(r=e,e=r.url),r.headers=r.headers||{},Ua.mergeInQueryOrForm(r),r.headers&&Object.keys(r.headers).forEach(o=>{const f=r.headers[o];typeof f=="string"&&(r.headers[o]=f.replace(/\n+/g," "))}),r.requestInterceptor&&(r=await r.requestInterceptor(r)||r);const i=r.headers["content-type"]||r.headers["Content-Type"];/multipart\/form-data/i.test(i)&&r.body instanceof Wa&&(delete r.headers["content-type"],delete r.headers["Content-Type"]);let a;try{a=await(r.userFetch||fetch)(r.url,r),a=await Ua.serializeRes(a,e,r),r.responseInterceptor&&(a=await r.responseInterceptor(a)||a)}catch(o){if(!a)throw o;const f=new Error(a.statusText||`response status is ${a.status}`);throw f.status=a.status,f.statusCode=a.status,f.responseError=o,f}if(!a.ok){const o=new Error(a.statusText||`response status is ${a.status}`);throw o.status=a.status,o.statusCode=a.status,o.response=a,o}return a}const Tc=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return/(json|xml|yaml|text)\b/.test(e)};function kc(e,r){return r&&(r.indexOf("application/json")===0||r.indexOf("+json")>0)?JSON.parse(e):Ac.load(e)}function fl(e,r){let{loadSpec:i=!1}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const a={ok:e.ok,url:e.url||r,status:e.status,statusText:e.statusText,headers:_a(e.headers)},o=a.headers["content-type"],f=i||Tc(o);return(f?e.text:e.blob||e.buffer).call(e).then(v=>{if(a.text=v,a.data=v,f)try{const h=kc(v,o);a.body=h,a.obj=h}catch(h){a.parseError=h}return a})}function cl(e){return e.includes(", ")?e.split(", "):e}function _a(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return typeof e.entries!="function"?{}:Array.from(e.entries()).reduce((r,i)=>{let[a,o]=i;return r[a]=cl(o),r},{})}function sa(e,r){return!r&&typeof navigator<"u"&&(r=navigator),r&&r.product==="ReactNative"?!!(e&&typeof e=="object"&&typeof e.uri=="string"):typeof es<"u"&&e instanceof es||typeof xo<"u"&&e instanceof xo||ArrayBuffer.isView(e)?!0:e!==null&&typeof e=="object"&&typeof e.pipe=="function"}function Iu(e,r){return Array.isArray(e)&&e.some(i=>sa(i,r))}const ns={form:",",spaceDelimited:"%20",pipeDelimited:"|"},Lu={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function za(e,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{collectionFormat:a,allowEmptyValue:o,serializationOption:f,encoding:d}=r,v=typeof r=="object"&&!Array.isArray(r)?r.value:r,h=i?b=>b.toString():b=>encodeURIComponent(b),g=h(e);if(typeof v>"u"&&o)return[[g,""]];if(sa(v)||Iu(v))return[[g,v]];if(f)return dl(e,v,i,f);if(d){if([typeof d.style,typeof d.explode,typeof d.allowReserved].some(b=>b!=="undefined")){const{style:b,explode:E,allowReserved:V}=d;return dl(e,v,i,{style:b,explode:E,allowReserved:V})}if(d.contentType){if(d.contentType==="application/json"){const b=typeof v=="string"?v:JSON.stringify(v);return[[g,h(b)]]}return[[g,h(v.toString())]]}return typeof v!="object"?[[g,h(v)]]:Array.isArray(v)&&v.every(b=>typeof b!="object")?[[g,v.map(h).join(",")]]:[[g,h(JSON.stringify(v))]]}return typeof v!="object"?[[g,h(v)]]:Array.isArray(v)?a==="multi"?[[g,v.map(h)]]:[[g,v.map(h).join(Lu[a||"csv"])]]:[[g,""]]}function dl(e,r,i,a){const o=a.style||"form",f=typeof a.explode>"u"?o==="form":a.explode,d=i?!1:a&&a.allowReserved?"unsafe":"reserved",v=g=>Di(g,{escape:d}),h=i?g=>g:g=>Di(g,{escape:d});return typeof r!="object"?[[h(e),v(r)]]:Array.isArray(r)?f?[[h(e),r.map(v)]]:[[h(e),r.map(v).join(ns[o])]]:o==="deepObject"?Object.keys(r).map(g=>[h(`${e}[${g}]`),v(r[g])]):f?Object.keys(r).map(g=>[h(g),v(r[g])]):[[h(e),Object.keys(r).map(g=>[`${h(g)},${v(r[g])}`]).join(",")]]}function la(e){return Object.entries(e).reduce((r,i)=>{let[a,o]=i;for(const[f,d]of za(a,o,!0))if(Array.isArray(d))for(const v of d)if(ArrayBuffer.isView(v)){const h=new xo([v]);r.append(f,h)}else r.append(f,v);else if(ArrayBuffer.isView(d)){const v=new xo([d]);r.append(f,v)}else r.append(f,d);return r},new Wa)}function Ga(e){const r=Object.keys(e).reduce((i,a)=>{for(const[o,f]of za(a,e[a]))i[o]=f;return i},{});return ie().stringify(r,{encode:!1,indices:!1})||""}function Bi(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{url:r="",query:i,form:a}=e,o=function(){for(var f=arguments.length,d=new Array(f),v=0;v<f;v++)d[v]=arguments[v];const h=d.filter(g=>g).join("&");return h?`?${h}`:""};if(a){const f=Object.keys(a).some(v=>{const{value:h}=a[v];return sa(h)||Iu(h)}),d=e.headers["content-type"]||e.headers["Content-Type"];if(f||/multipart\/form-data/i.test(d)){const v=la(e.form);Fu(v,e)}else e.body=Ga(a);delete e.form}if(i){const[f,d]=r.split("?");let v="";if(d){const g=ie().parse(d);Object.keys(i).forEach(E=>delete g[E]),v=ie().stringify(g,{encode:!0})}const h=o(v,Ga(i));e.url=f+h,delete e.query}return e}function is(e,r,i){return i=i||(a=>a),r=r||(a=>a),a=>(typeof a=="string"&&(a={url:a}),Ua.mergeInQueryOrForm(a),a=r(a),i(e(a)))}function $a(e,r){function i(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack;for(var a=arguments.length,o=new Array(a),f=0;f<a;f++)o[f]=arguments[f];[this.message]=o,r&&r.apply(this,o)}return i.prototype=new Error,i.prototype.name=e,i.prototype.constructor=i,i}const Mu={body:Nu,header:Pc,query:fa,path:ua,formData:Ru};function Nu(e){let{req:r,value:i}=e;r.body=i}function Ru(e){let{req:r,value:i,parameter:a}=e;(i||a.allowEmptyValue)&&(r.form=r.form||{},r.form[a.name]={value:i,allowEmptyValue:a.allowEmptyValue,collectionFormat:a.collectionFormat})}function Pc(e){let{req:r,parameter:i,value:a}=e;r.headers=r.headers||{},typeof a<"u"&&(r.headers[i.name]=a)}function ua(e){let{req:r,value:i,parameter:a}=e;r.url=r.url.split(`{${a.name}}`).join(encodeURIComponent(i))}function fa(e){let{req:r,value:i,parameter:a}=e;if(r.query=r.query||{},i===!1&&a.type==="boolean"&&(i="false"),i===0&&["number","integer"].indexOf(a.type)>-1&&(i="0"),i)r.query[a.name]={collectionFormat:a.collectionFormat,value:i};else if(a.allowEmptyValue&&i!==void 0){const o=a.name;r.query[o]=r.query[o]||{},r.query[o].allowEmptyValue=!0}}function as(e,r){return r.includes("application/json")?typeof e=="string"?e:JSON.stringify(e):e.toString()}function Fc(e){let{req:r,value:i,parameter:a}=e;const{name:o,style:f,explode:d,content:v}=a;if(v){const g=Object.keys(v)[0];r.url=r.url.split(`{${o}}`).join(Di(as(i,g),{escape:!0}));return}const h=rs({key:a.name,value:i,style:f||"simple",explode:d||!1,escape:!0});r.url=r.url.split(`{${o}}`).join(h)}function Ic(e){let{req:r,value:i,parameter:a}=e;if(r.query=r.query||{},a.content){const o=Object.keys(a.content)[0],f=as(i,o);if(f)r.query[a.name]=f;else if(a.allowEmptyValue&&i!==void 0){const d=a.name;r.query[d]=r.query[d]||{},r.query[d].allowEmptyValue=!0}return}if(i===!1&&(i="false"),i===0&&(i="0"),i){const{style:o,explode:f,allowReserved:d}=a;r.query[a.name]={value:i,serializationOption:{style:o,explode:f,allowReserved:d}}}else if(a.allowEmptyValue&&i!==void 0){const o=a.name;r.query[o]=r.query[o]||{},r.query[o].allowEmptyValue=!0}}const Lc=["accept","authorization","content-type"];function Mc(e){let{req:r,parameter:i,value:a}=e;if(r.headers=r.headers||{},!(Lc.indexOf(i.name.toLowerCase())>-1)){if(i.content){const o=Object.keys(i.content)[0];r.headers[i.name]=as(a,o);return}typeof a<"u"&&(r.headers[i.name]=rs({key:i.name,value:a,style:i.style||"simple",explode:typeof i.explode>"u"?!1:i.explode,escape:!1}))}}function Nc(e){let{req:r,parameter:i,value:a}=e;r.headers=r.headers||{};const o=typeof a;if(i.content){const f=Object.keys(i.content)[0];r.headers.Cookie=`${i.name}=${as(a,f)}`;return}if(o!=="undefined"){const f=o==="object"&&!Array.isArray(a)&&i.explode?"":`${i.name}=`;r.headers.Cookie=f+rs({key:i.name,value:a,escape:!1,style:i.style||"form",explode:typeof i.explode>"u"?!1:i.explode})}}const ln=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:window)(),{btoa:br}=ln,Vr=br;function xr(e,r){const{operation:i,requestBody:a,securities:o,spec:f,attachContentTypeForEmptyPayload:d}=e;let{requestContentType:v}=e;r=So({request:r,securities:o,operation:i,spec:f});const h=i.requestBody||{},g=Object.keys(h.content||{}),b=v&&g.indexOf(v)>-1;if(a||d){if(v&&b)r.headers["Content-Type"]=v;else if(!v){const E=g[0];E&&(r.headers["Content-Type"]=E,v=E)}}else v&&b&&(r.headers["Content-Type"]=v);if(!e.responseContentType&&i.responses){const E=Object.entries(i.responses).filter(V=>{let[I,W]=V;const Y=parseInt(I,10);return Y>=200&&Y<300&&xe(W.content)}).reduce((V,I)=>{let[,W]=I;return V.concat(Object.keys(W.content))},[]);E.length>0&&(r.headers.accept=E.join(", "))}if(a)if(v){if(g.indexOf(v)>-1)if(v==="application/x-www-form-urlencoded"||v==="multipart/form-data")if(typeof a=="object"){const E=(h.content[v]||{}).encoding||{};r.form={},Object.keys(a).forEach(V=>{r.form[V]={value:a[V],encoding:E[V]||{}}})}else r.form=a;else r.body=a}else r.body=a;return r}function So(e){let{request:r,securities:i={},operation:a={},spec:o}=e;const f=M({},r),{authorized:d={}}=i,v=a.security||o.security||[],h=d&&!!Object.keys(d).length,g=le()(o,["components","securitySchemes"])||{};return f.headers=f.headers||{},f.query=f.query||{},!Object.keys(i).length||!h||!v||Array.isArray(a.security)&&!a.security.length?r:(v.forEach(b=>{Object.keys(b).forEach(E=>{const V=d[E],I=g[E];if(!V)return;const W=V.value||V,{type:Y}=I;if(V){if(Y==="apiKey")I.in==="query"&&(f.query[I.name]=W),I.in==="header"&&(f.headers[I.name]=W),I.in==="cookie"&&(f.cookies[I.name]=W);else if(Y==="http"){if(/^basic$/i.test(I.scheme)){const _=W.username||"",U=W.password||"",G=Vr(`${_}:${U}`);f.headers.Authorization=`Basic ${G}`}/^bearer$/i.test(I.scheme)&&(f.headers.Authorization=`Bearer ${W}`)}else if(Y==="oauth2"||Y==="openIdConnect"){const _=V.token||{},U=I["x-tokenName"]||"access_token",G=_[U];let ce=_.token_type;(!ce||ce.toLowerCase()==="bearer")&&(ce="Bearer"),f.headers.Authorization=`${ce} ${G}`}}})}),f)}function Rc(e,r){const{spec:i,operation:a,securities:o,requestContentType:f,responseContentType:d,attachContentTypeForEmptyPayload:v}=e;if(r=os({request:r,securities:o,operation:a,spec:i}),r.body||r.form||v)f?r.headers["Content-Type"]=f:Array.isArray(a.consumes)?[r.headers["Content-Type"]]=a.consumes:Array.isArray(i.consumes)?[r.headers["Content-Type"]]=i.consumes:a.parameters&&a.parameters.filter(h=>h.type==="file").length?r.headers["Content-Type"]="multipart/form-data":a.parameters&&a.parameters.filter(h=>h.in==="formData").length&&(r.headers["Content-Type"]="application/x-www-form-urlencoded");else if(f){const h=a.parameters&&a.parameters.filter(b=>b.in==="body").length>0,g=a.parameters&&a.parameters.filter(b=>b.in==="formData").length>0;(h||g)&&(r.headers["Content-Type"]=f)}return!d&&Array.isArray(a.produces)&&a.produces.length>0&&(r.headers.accept=a.produces.join(", ")),r}function os(e){let{request:r,securities:i={},operation:a={},spec:o}=e;const f=M({},r),{authorized:d={},specSecurity:v=[]}=i,h=a.security||v,g=d&&!!Object.keys(d).length,b=o.securityDefinitions;return f.headers=f.headers||{},f.query=f.query||{},!Object.keys(i).length||!g||!h||Array.isArray(a.security)&&!a.security.length?r:(h.forEach(E=>{Object.keys(E).forEach(V=>{const I=d[V];if(!I)return;const{token:W}=I,Y=I.value||I,_=b[V],{type:U}=_,G=_["x-tokenName"]||"access_token",ce=W&&W[G];let Ce=W&&W.token_type;if(I)if(U==="apiKey"){const ge=_.in==="query"?"query":"headers";f[ge]=f[ge]||{},f[ge][_.name]=Y}else if(U==="basic")if(Y.header)f.headers.authorization=Y.header;else{const ge=Y.username||"",ke=Y.password||"";Y.base64=Vr(`${ge}:${ke}`),f.headers.authorization=`Basic ${Y.base64}`}else U==="oauth2"&&ce&&(Ce=!Ce||Ce.toLowerCase()==="bearer"?"Bearer":Ce,f.headers.authorization=`${Ce} ${ce}`)})}),f)}function Du(e,r){return`${r.toLowerCase()}-${e}`}function Dc(e,r,i){if(!e||typeof e!="object"||!e.paths||typeof e.paths!="object")return null;const{paths:a}=e;for(const o in a)for(const f in a[o]){if(f.toUpperCase()==="PARAMETERS")continue;const d=a[o][f];if(!d||typeof d!="object")continue;const v={spec:e,pathName:o,method:f.toUpperCase(),operation:d},h=r(v);if(i&&h)return v}}function Bc(e,r){return Dc(e,r,!0)||null}const pl=e=>e.replace(/\W/gi,"_");function hl(e,r){let{v2OperationIdCompatibilityMode:i}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(i){let a=`${r.toLowerCase()}_${e}`.replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return a=a||`${e.substring(1)}_${r}`,a.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return`${r.toLowerCase()}${pl(e)}`}function Vc(e,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",{v2OperationIdCompatibilityMode:a}=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return!e||typeof e!="object"?null:(e.operationId||"").replace(/\s/g,"").length?pl(e.operationId):hl(r,i,{v2OperationIdCompatibilityMode:a})}function vl(e,r){return!e||!e.paths?null:Bc(e,i=>{let{pathName:a,method:o,operation:f}=i;if(!f||typeof f!="object")return!1;const d=f.operationId,v=Vc(f,a,o),h=Du(a,o);return[v,h,d].some(g=>g&&g===r)})}const Vu=e=>{try{const{swagger:r}=e;return r==="2.0"}catch{return!1}},ju=e=>{try{const{openapi:r}=e;return typeof r=="string"&&/^3\.0\.([0123])(?:-rc[012])?$/.test(r)}catch{return!1}},Wu=e=>{try{const{openapi:r}=e;return typeof r=="string"&&/^3\.1\.(?:[1-9]\d*|0)$/.test(r)}catch{return!1}},ss=e=>ju(e)||Wu(e),Hu=["http","fetch","spec","operationId","pathName","method","parameters","securities"],Ka=e=>Array.isArray(e)?e:[],jc=$a("OperationNotFoundError",function(r,i,a){this.originalError=a,Object.assign(this,i||{})}),ls=(e,r)=>r.filter(i=>i.name===e),Oi=e=>{const r={};e.forEach(a=>{r[a.in]||(r[a.in]={}),r[a.in][a.name]=a});const i=[];return Object.keys(r).forEach(a=>{Object.keys(r[a]).forEach(o=>{i.push(r[a][o])})}),i},Uu={buildRequest:_u};function Wc(e){let{http:r,fetch:i,spec:a,operationId:o,pathName:f,method:d,parameters:v,securities:h}=e,g=ae(e,Hu);const b=r||i||Ec;f&&d&&!o&&(o=Du(f,d));const E=Uu.buildRequest(M({spec:a,operationId:o,parameters:v,securities:h,http:b},g));return E.body&&(xe(E.body)||Array.isArray(E.body))&&(E.body=JSON.stringify(E.body)),b(E)}function _u(e){const{spec:r,operationId:i,responseContentType:a,scheme:o,requestInterceptor:f,responseInterceptor:d,contextUrl:v,userFetch:h,server:g,serverVariables:b,http:E,signal:V}=e;let{parameters:I,parameterBuilders:W}=e;const Y=ss(r);W||(Y?W=m:W=Mu);let U={url:"",credentials:E&&E.withCredentials?"include":"same-origin",headers:{},cookies:{}};V&&(U.signal=V),f&&(U.requestInterceptor=f),d&&(U.responseInterceptor=d),h&&(U.userFetch=h);const G=vl(r,i);if(!G)throw new jc(`Operation ${i} not found`);const{operation:ce={},method:Ce,pathName:ge}=G;if(U.url+=Dt({spec:r,scheme:o,contextUrl:v,server:g,serverVariables:b,pathName:ge,method:Ce}),!i)return delete U.cookies,U;U.url+=ge,U.method=`${Ce}`.toUpperCase(),I=I||{};const ke=r.paths[ge]||{};a&&(U.headers.accept=a);const be=Oi([].concat(Ka(ce.parameters)).concat(Ka(ke.parameters)));be.forEach(ue=>{const Oe=W[ue.in];let Te;if(ue.in==="body"&&ue.schema&&ue.schema.properties&&(Te=I),Te=ue&&ue.name&&I[ue.name],typeof Te>"u"?Te=ue&&ue.name&&I[`${ue.in}.${ue.name}`]:ls(ue.name,be).length>1&&console.warn(`Parameter '${ue.name}' is ambiguous because the defined spec has more than one parameter with the name: '${ue.name}' and the passed-in parameter values did not define an 'in' value.`),Te!==null){if(typeof ue.default<"u"&&typeof Te>"u"&&(Te=ue.default),typeof Te>"u"&&ue.required&&!ue.allowEmptyValue)throw new Error(`Required parameter ${ue.name} is not provided`);if(Y&&ue.schema&&ue.schema.type==="object"&&typeof Te=="string")try{Te=JSON.parse(Te)}catch{throw new Error("Could not parse object parameter value string as JSON")}Oe&&Oe({req:U,parameter:ue,value:Te,operation:ce,spec:r})}});const me=M(M({},e),{},{operation:ce});if(Y?U=xr(me,U):U=Rc(me,U),U.cookies&&Object.keys(U.cookies).length){const ue=Object.keys(U.cookies).reduce((Oe,Te)=>{const Me=U.cookies[Te],Xe=Oe?"&":"",yt=q.serialize(Te,Me);return Oe+Xe+yt},"");U.headers.Cookie=ue}return U.cookies&&delete U.cookies,Bi(U),U}const en=e=>e?e.replace(/\W/g,""):null;function Dt(e){return ss(e.spec)?Gn(e):zu(e)}function Gn(e){let{spec:r,pathName:i,method:a,server:o,contextUrl:f,serverVariables:d={}}=e;const v=le()(r,["paths",i,(a||"").toLowerCase(),"servers"])||le()(r,["paths",i,"servers"])||le()(r,["servers"]);let h="",g=null;if(o&&v&&v.length){const b=v.map(E=>E.url);b.indexOf(o)>-1&&(h=o,g=v[b.indexOf(o)])}return!h&&v&&v.length&&(h=v[0].url,[g]=v),h.indexOf("{")>-1&&ji(h).forEach(E=>{if(g.variables&&g.variables[E]){const V=g.variables[E],I=d[E]||V.default,W=new RegExp(`{${E}}`,"g");h=h.replace(W,I)}}),Vi(h,f)}function Vi(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const i=e&&r?z.parse(z.resolve(r,e)):z.parse(e),a=z.parse(r),o=en(i.protocol)||en(a.protocol)||"",f=i.host||a.host,d=i.pathname||"";let v;return o&&f?v=`${o}://${f+d}`:v=d,v[v.length-1]==="/"?v.slice(0,-1):v}function ji(e){const r=[],i=/{([^}]+)}/g;let a;for(;a=i.exec(e);)r.push(a[1]);return r}function zu(e){let{spec:r,scheme:i,contextUrl:a=""}=e;const o=z.parse(a),f=Array.isArray(r.schemes)?r.schemes[0]:null,d=i||f||en(o.protocol)||"http",v=r.host||o.host||"",h=r.basePath||"";let g;return d&&v?g=`${d}://${v+h}`:g=h,g[g.length-1]==="/"?g.slice(0,-1):g}var A=c(29901),Jt=c(20202),ui=c(21999),gl=c(37837),wo=c(96244),Gu=c(2526),ml=Object.defineProperty,Wi=Object.defineProperties,$u=Object.getOwnPropertyDescriptors,yl=Object.getOwnPropertySymbols,Hc=Object.prototype.hasOwnProperty,us=Object.prototype.propertyIsEnumerable,fs=(e,r,i)=>r in e?ml(e,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[r]=i,Ku=(e,r)=>{for(var i in r||(r={}))Hc.call(r,i)&&fs(e,i,r[i]);if(yl)for(var i of yl(r))us.call(r,i)&&fs(e,i,r[i]);return e},Uc=(e,r)=>Wi(e,$u(r)),Yu=(e,r,i)=>new Promise((a,o)=>{var f=h=>{try{v(i.next(h))}catch(g){o(g)}},d=h=>{try{v(i.throw(h))}catch(g){o(g)}},v=h=>h.done?a(h.value):Promise.resolve(h.value).then(f,d);v((i=i.apply(e,r)).next())});function _c(e,r){return Yu(this,null,function*(){var i,a,o,f;const d=JSON.parse(JSON.stringify(r)),v=d.openapi?{openapi:d.openapi}:d.swagger?{swagger:d.swagger}:{},h=Uc(Ku({},v),{components:d.components,paths:{[e.path]:{[e.httpVerb]:(a=(i=d.paths)==null?void 0:i[e.path])==null?void 0:a[e.httpVerb],parameters:(f=(o=d.paths)==null?void 0:o[e.path])==null?void 0:f.parameters}}}),g=new wo.Config({}),b=(0,Gu.I)(h),E={config:g,doc:b,dereference:!0};return yield(0,gl.bundle)(E),d})}var zc=c(98910),ca=c(84862),$n=c(53134),Xu=(e,r,i)=>new Promise((a,o)=>{var f=h=>{try{v(i.next(h))}catch(g){o(g)}},d=h=>{try{v(i.throw(h))}catch(g){o(g)}},v=h=>h.done?a(h.value):Promise.resolve(h.value).then(f,d);v((i=i.apply(e,r)).next())});const Ju=Object.values($n.FileUploadFormats),Qu=["application/octet-stream","application/pdf","application/gzip","application/zip"],da=["image/","audio/","video/"];function cs(e){if(da.some(r=>e.startsWith(r)))return e}function pa(e){return Qu.includes(e)?!0:da.some(r=>e.startsWith(r))}function Zu(e){const r=e.type==="array"?e.items:e;if(!r||!r.type||r?.type==="any")return!0;const i=r.contentMediaType||"",a=r.format||r.contentEncoding||(pa(i)?"binary":"");return r.type===$n.DefinitionTypes.STRING&&Ju.includes(a)}function ds(e,r){if(!e||!e.type||e.type==="any")return pa(r);const i=e.format||e.contentEncoding||"";return e.type===$n.DefinitionTypes.STRING&&Ju.includes(i)}function bl(e){return new Promise((r,i)=>{const a=new FileReader;a.onload=()=>{const f=a.result.replace(/data:.*\/.*;base64,/g,"");r(f)},a.onerror=()=>i(a.error),a.readAsDataURL(e)})}function qu({format:e,contentEncoding:r,contentMediaType:i}){return[e,r,i].includes($n.FileUploadFormats.BASE64)}function ef(e,r){return Xu(this,null,function*(){const i=Object.values(e);let a=i.length===1?i[0]:i;return r.type===$n.DefinitionTypes.STRING&&qu(r)?a=yield bl(i[0]):r.type===$n.DefinitionTypes.ARRAY&&r.items&&(qu(r.items)?a=yield Promise.all(i.map(f=>Xu(this,null,function*(){return yield bl(f)}))):a=i),a})}var Sr=c(84622),xt=c(38612),At=c(38779),dt=c(68176),mn=c(71608),Ya=c(64393);function ps({response:e}){return A.createElement(A.Fragment,null,A.createElement(mn.EE,null," Body: "),tf(e))}function tf(e){return e.body?A.createElement(Jt.JsonViewer,{data:e.body,jsonSampleExpandLevel:1}):e.fileInfo?A.createElement(Ya.s,{fileInfo:e.fileInfo}):e.data!==null?e.data?A.createElement(Jt.CodeBlock,{lang:(0,dt.M)(e.headers["Content-Type"]||"text/plain"),source:e.data,header:{controls:{copy:{}}}}):A.createElement(Jt.CodeBlockContainer,{withControls:!0},A.createElement("i",null,"(no content)")):null}var Hi=c(79216);function rf({headers:e}){const r=(0,ui.useRecoilValue)(Hi.lk),[i,a]=(0,A.useState)(!0),{maxResponseHeadersToShowInTryIt:o}=r,f=Object.keys(e),d=!!o&&f.length>o,v=d&&i?[...f].splice(0,o):[...f],h=()=>{a(!i)};return A.createElement(A.Fragment,null,A.createElement(mn.EE,null," Headers: "),A.createElement(Jt.CodeBlockContainer,{withControls:!0},v.map(g=>A.createElement("div",{key:g},A.createElement(ha,null,g,":"),A.createElement("code",null,e[g]))),d&&A.createElement(xl,{onClick:h},i?"Show more...":"Hide headers")))}const ha=At.ZP.strong`
|
|
82
82
|
text-transform: capitalize;
|
|
83
83
|
display: inline-block;
|
|
84
84
|
padding-right: 5px;
|
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.56.patch.0"
|
|
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{}};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{}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{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>"u"&&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<"u"&&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{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{}}},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{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{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{}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{}D=typeof document<"u"?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{}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{}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{}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{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{}},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{return E}},Kr=function(E){var b=Cr(E,Xr," "),j=4;try{return hr(b)}catch{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{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{if(typeof window=="object")return window}}(),dr.r=n=>{typeof Symbol<"u"&&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!!e&&!!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?.state))throw new Error("Outdated OAuth2 state");if(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?.successCallback({access_token:l,token_type:d,expires_in:p,auth_code:""})}if(e?.flow==="authorizationCode"){if(!f)throw new Error(`Your OAuth2 authentication service provider redirected you without authorization "code".
|