@redocly/openapi-docs 3.0.0-alpha.21 → 3.0.0-alpha.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,55 +2,55 @@
2
2
  * Redocly OpenAPI Docs
3
3
  * (c) Copyright 2018 Redocly LLC, all rights reserved.
4
4
  * -------------------------------------------------------------
5
- * Version: "3.0.0-alpha.21"
5
+ * Version: "3.0.0-alpha.23"
6
6
  */(this.webpackChunkRedoclyOpenAPIDocs=this.webpackChunkRedoclyOpenAPIDocs||[]).push([[290],{62680:(h,O,o)=>{"use strict";var d=o(67286),x=o(89429),w=x(d("String.prototype.indexOf"));h.exports=function(T,F){var U=d(T,!!F);return typeof U=="function"&&w(T,".prototype.")>-1?x(U):U}},89429:(h,O,o)=>{"use strict";var d=o(4090),x=o(67286),w=x("%Function.prototype.apply%"),C=x("%Function.prototype.call%"),T=x("%Reflect.apply%",!0)||d.call(C,w),F=x("%Object.getOwnPropertyDescriptor%",!0),U=x("%Object.defineProperty%",!0),Z=x("%Math.max%");if(U)try{U({},"a",{value:1})}catch(ue){U=null}h.exports=function(ne){var oe=T(d,C,arguments);if(F&&U){var Y=F(oe,"length");Y.configurable&&U(oe,"length",{value:1+Z(0,ne.length-(arguments.length-1))})}return oe};var ee=function(){return T(d,w,arguments)};U?U(h.exports,"apply",{value:ee}):h.exports.apply=ee},61682:(h,O,o)=>{(function(d){d(o(23326))})(function(d){var x={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},w=d.Pos;d.defineOption("autoCloseBrackets",!1,function(L,E,k){k&&k!=d.Init&&(L.removeKeyMap(T),L.state.closeBrackets=null),E&&(F(C(E,"pairs")),L.state.closeBrackets=E,L.addKeyMap(T))});function C(L,E){return E=="pairs"&&typeof L=="string"?L:typeof L=="object"&&L[E]!=null?L[E]:x[E]}var T={Backspace:ee,Enter:ue};function F(L){for(var E=0;E<L.length;E++){var k=L.charAt(E),V="'"+k+"'";T[V]||(T[V]=U(k))}}F(x.pairs+"`");function U(L){return function(E){return Y(E,L)}}function Z(L){var E=L.state.closeBrackets;if(!E||E.override)return E;var k=L.getModeAt(L.getCursor());return k.closeBrackets||E}function ee(L){var E=Z(L);if(!E||L.getOption("disableInput"))return d.Pass;for(var k=C(E,"pairs"),V=L.listSelections(),G=0;G<V.length;G++){if(!V[G].empty())return d.Pass;var Q=A(L,V[G].head);if(!Q||k.indexOf(Q)%2!=0)return d.Pass}for(var G=V.length-1;G>=0;G--){var W=V[G].head;L.replaceRange("",w(W.line,W.ch-1),w(W.line,W.ch+1),"+delete")}}function ue(L){var E=Z(L),k=E&&C(E,"explode");if(!k||L.getOption("disableInput"))return d.Pass;for(var V=L.listSelections(),G=0;G<V.length;G++){if(!V[G].empty())return d.Pass;var Q=A(L,V[G].head);if(!Q||k.indexOf(Q)%2!=0)return d.Pass}L.operation(function(){var W=L.lineSeparator()||`
7
- `;L.replaceSelection(W+W,null),ne(L,-1),V=L.listSelections();for(var te=0;te<V.length;te++){var K=V[te].head.line;L.indentLine(K,null,!0),L.indentLine(K+1,null,!0)}})}function ne(L,E){for(var k=[],V=L.listSelections(),G=0,Q=0;Q<V.length;Q++){var W=V[Q];W.head==L.getCursor()&&(G=Q);var te=W.head.ch||E>0?{line:W.head.line,ch:W.head.ch+E}:{line:W.head.line-1};k.push({anchor:te,head:te})}L.setSelections(k,G)}function oe(L){var E=d.cmpPos(L.anchor,L.head)>0;return{anchor:new w(L.anchor.line,L.anchor.ch+(E?-1:1)),head:new w(L.head.line,L.head.ch+(E?1:-1))}}function Y(L,E){var k=Z(L);if(!k||L.getOption("disableInput"))return d.Pass;var V=C(k,"pairs"),G=V.indexOf(E);if(G==-1)return d.Pass;for(var Q=C(k,"closeBefore"),W=C(k,"triples"),te=V.charAt(G+1)==E,K=L.listSelections(),H=G%2==0,fe,ve=0;ve<K.length;ve++){var _=K[ve],X=_.head,z,ge=L.getRange(X,w(X.line,X.ch+1));if(H&&!_.empty())z="surround";else if((te||!H)&&ge==E)te&&J(L,X)?z="both":W.indexOf(E)>=0&&L.getRange(X,w(X.line,X.ch+3))==E+E+E?z="skipThree":z="skip";else if(te&&X.ch>1&&W.indexOf(E)>=0&&L.getRange(w(X.line,X.ch-2),X)==E+E){if(X.ch>2&&/\bstring/.test(L.getTokenTypeAt(w(X.line,X.ch-2))))return d.Pass;z="addFour"}else if(te){var Oe=X.ch==0?" ":L.getRange(w(X.line,X.ch-1),X);if(!d.isWordChar(ge)&&Oe!=E&&!d.isWordChar(Oe))z="both";else return d.Pass}else if(H&&(ge.length===0||/\s/.test(ge)||Q.indexOf(ge)>-1))z="both";else return d.Pass;if(!fe)fe=z;else if(fe!=z)return d.Pass}var Ue=G%2?V.charAt(G-1):E,Re=G%2?E:V.charAt(G+1);L.operation(function(){if(fe=="skip")ne(L,1);else if(fe=="skipThree")ne(L,3);else if(fe=="surround"){for(var ot=L.getSelections(),Xe=0;Xe<ot.length;Xe++)ot[Xe]=Ue+ot[Xe]+Re;L.replaceSelections(ot,"around"),ot=L.listSelections().slice();for(var Xe=0;Xe<ot.length;Xe++)ot[Xe]=oe(ot[Xe]);L.setSelections(ot)}else fe=="both"?(L.replaceSelection(Ue+Re,null),L.triggerElectric(Ue+Re),ne(L,-1)):fe=="addFour"&&(L.replaceSelection(Ue+Ue+Ue+Ue,"before"),ne(L,1))})}function A(L,E){var k=L.getRange(w(E.line,E.ch-1),w(E.line,E.ch+1));return k.length==2?k:null}function J(L,E){var k=L.getTokenAt(w(E.line,E.ch+1));return/\bstring/.test(k.type)&&k.start==E.ch&&(E.ch==0||!/\bstring/.test(L.getTokenTypeAt(E)))}})},32407:(h,O,o)=>{(function(d){d(o(23326))})(function(d){var x=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),w=d.Pos,C={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function T(ne){return ne&&ne.bracketRegex||/[(){}[\]]/}function F(ne,oe,Y){var A=ne.getLineHandle(oe.line),J=oe.ch-1,L=Y&&Y.afterCursor;L==null&&(L=/(^| )cm-fat-cursor($| )/.test(ne.getWrapperElement().className));var E=T(Y),k=!L&&J>=0&&E.test(A.text.charAt(J))&&C[A.text.charAt(J)]||E.test(A.text.charAt(J+1))&&C[A.text.charAt(++J)];if(!k)return null;var V=k.charAt(1)==">"?1:-1;if(Y&&Y.strict&&V>0!=(J==oe.ch))return null;var G=ne.getTokenTypeAt(w(oe.line,J+1)),Q=U(ne,w(oe.line,J+(V>0?1:0)),V,G,Y);return Q==null?null:{from:w(oe.line,J),to:Q&&Q.pos,match:Q&&Q.ch==k.charAt(0),forward:V>0}}function U(ne,oe,Y,A,J){for(var L=J&&J.maxScanLineLength||1e4,E=J&&J.maxScanLines||1e3,k=[],V=T(J),G=Y>0?Math.min(oe.line+E,ne.lastLine()+1):Math.max(ne.firstLine()-1,oe.line-E),Q=oe.line;Q!=G;Q+=Y){var W=ne.getLine(Q);if(!!W){var te=Y>0?0:W.length-1,K=Y>0?W.length:-1;if(!(W.length>L))for(Q==oe.line&&(te=oe.ch-(Y<0?1:0));te!=K;te+=Y){var H=W.charAt(te);if(V.test(H)&&(A===void 0||(ne.getTokenTypeAt(w(Q,te+1))||"")==(A||""))){var fe=C[H];if(fe&&fe.charAt(1)==">"==Y>0)k.push(H);else if(k.length)k.pop();else return{pos:w(Q,te),ch:H}}}}}return Q-Y==(Y>0?ne.lastLine():ne.firstLine())?!1:null}function Z(ne,oe,Y){for(var A=ne.state.matchBrackets.maxHighlightLineLength||1e3,J=Y&&Y.highlightNonMatching,L=[],E=ne.listSelections(),k=0;k<E.length;k++){var V=E[k].empty()&&F(ne,E[k].head,Y);if(V&&(V.match||J!==!1)&&ne.getLine(V.from.line).length<=A){var G=V.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";L.push(ne.markText(V.from,w(V.from.line,V.from.ch+1),{className:G})),V.to&&ne.getLine(V.to.line).length<=A&&L.push(ne.markText(V.to,w(V.to.line,V.to.ch+1),{className:G}))}}if(L.length){x&&ne.state.focused&&ne.focus();var Q=function(){ne.operation(function(){for(var W=0;W<L.length;W++)L[W].clear()})};if(oe)setTimeout(Q,800);else return Q}}function ee(ne){ne.operation(function(){ne.state.matchBrackets.currentlyHighlighted&&(ne.state.matchBrackets.currentlyHighlighted(),ne.state.matchBrackets.currentlyHighlighted=null),ne.state.matchBrackets.currentlyHighlighted=Z(ne,!1,ne.state.matchBrackets)})}function ue(ne){ne.state.matchBrackets&&ne.state.matchBrackets.currentlyHighlighted&&(ne.state.matchBrackets.currentlyHighlighted(),ne.state.matchBrackets.currentlyHighlighted=null)}d.defineOption("matchBrackets",!1,function(ne,oe,Y){Y&&Y!=d.Init&&(ne.off("cursorActivity",ee),ne.off("focus",ee),ne.off("blur",ue),ue(ne)),oe&&(ne.state.matchBrackets=typeof oe=="object"?oe:{},ne.on("cursorActivity",ee),ne.on("focus",ee),ne.on("blur",ue))}),d.defineExtension("matchBrackets",function(){Z(this,!0)}),d.defineExtension("findMatchingBracket",function(ne,oe,Y){return(Y||typeof oe=="boolean")&&(Y?(Y.strict=oe,oe=Y):oe=oe?{strict:!0}:null),F(this,ne,oe)}),d.defineExtension("scanForBracket",function(ne,oe,Y,A){return U(this,ne,oe,Y,A)})})},22130:(h,O,o)=>{(function(d){d(o(23326))})(function(d){"use strict";var x="CodeMirror-hint",w="CodeMirror-hint-active";d.showHint=function(L,E,k){if(!E)return L.showHint(k);k&&k.async&&(E.async=!0);var V={hint:E};if(k)for(var G in k)V[G]=k[G];return L.showHint(V)},d.defineExtension("showHint",function(L){L=U(this,this.getCursor("start"),L);var E=this.listSelections();if(!(E.length>1)){if(this.somethingSelected()){if(!L.hint.supportsSelection)return;for(var k=0;k<E.length;k++)if(E[k].head.line!=E[k].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var V=this.state.completionActive=new C(this,L);!V.options.hint||(d.signal(this,"startCompletion",this),V.update(!0))}}),d.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function C(L,E){if(this.cm=L,this.options=E,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var k=this;L.on("cursorActivity",this.activityFunc=function(){k.cursorActivity()})}}var T=window.requestAnimationFrame||function(L){return setTimeout(L,1e3/60)},F=window.cancelAnimationFrame||clearTimeout;C.prototype={close:function(){!this.active()||(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&d.signal(this.data,"close"),this.widget&&this.widget.close(),d.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(L,E){var k=L.list[E],V=this;this.cm.operation(function(){k.hint?k.hint(V.cm,L,k):V.cm.replaceRange(Z(k),k.from||L.from,k.to||L.to,"complete"),d.signal(L,"pick",k),V.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(F(this.debounce),this.debounce=0);var L=this.startPos;this.data&&(L=this.data.from);var E=this.cm.getCursor(),k=this.cm.getLine(E.line);if(E.line!=this.startPos.line||k.length-E.ch!=this.startLen-this.startPos.ch||E.ch<L.ch||this.cm.somethingSelected()||!E.ch||this.options.closeCharacters.test(k.charAt(E.ch-1)))this.close();else{var V=this;this.debounce=T(function(){V.update()}),this.widget&&this.widget.disable()}},update:function(L){if(this.tick!=null){var E=this,k=++this.tick;Y(this.options.hint,this.cm,this.options,function(V){E.tick==k&&E.finishUpdate(V,L)})}},finishUpdate:function(L,E){this.data&&d.signal(this.data,"update");var k=this.widget&&this.widget.picked||E&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=L,L&&L.list.length&&(k&&L.list.length==1?this.pick(L,0):(this.widget=new ne(this,L),d.signal(L,"shown")))}};function U(L,E,k){var V=L.options.hintOptions,G={};for(var Q in J)G[Q]=J[Q];if(V)for(var Q in V)V[Q]!==void 0&&(G[Q]=V[Q]);if(k)for(var Q in k)k[Q]!==void 0&&(G[Q]=k[Q]);return G.hint.resolve&&(G.hint=G.hint.resolve(L,E)),G}function Z(L){return typeof L=="string"?L:L.text}function ee(L,E){var k={Up:function(){E.moveFocus(-1)},Down:function(){E.moveFocus(1)},PageUp:function(){E.moveFocus(-E.menuSize()+1,!0)},PageDown:function(){E.moveFocus(E.menuSize()-1,!0)},Home:function(){E.setFocus(0)},End:function(){E.setFocus(E.length-1)},Enter:E.pick,Tab:E.pick,Esc:E.close},V=/Mac/.test(navigator.platform);V&&(k["Ctrl-P"]=function(){E.moveFocus(-1)},k["Ctrl-N"]=function(){E.moveFocus(1)});var G=L.options.customKeys,Q=G?{}:k;function W(H,fe){var ve;typeof fe!="string"?ve=function(_){return fe(_,E)}:k.hasOwnProperty(fe)?ve=k[fe]:ve=fe,Q[H]=ve}if(G)for(var te in G)G.hasOwnProperty(te)&&W(te,G[te]);var K=L.options.extraKeys;if(K)for(var te in K)K.hasOwnProperty(te)&&W(te,K[te]);return Q}function ue(L,E){for(;E&&E!=L;){if(E.nodeName.toUpperCase()==="LI"&&E.parentNode==L)return E;E=E.parentNode}}function ne(L,E){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=L,this.data=E,this.picked=!1;var k=this,V=L.cm,G=V.getInputField().ownerDocument,Q=G.defaultView||G.parentWindow,W=this.hints=G.createElement("ul");W.setAttribute("role","listbox"),W.setAttribute("aria-expanded","true"),W.id=this.id;var te=L.cm.options.theme;W.className="CodeMirror-hints "+te,this.selectedHint=E.selectedHint||0;for(var K=E.list,H=0;H<K.length;++H){var fe=W.appendChild(G.createElement("li")),ve=K[H],_=x+(H!=this.selectedHint?"":" "+w);ve.className!=null&&(_=ve.className+" "+_),fe.className=_,H==this.selectedHint&&fe.setAttribute("aria-selected","true"),fe.id=this.id+"-"+H,fe.setAttribute("role","option"),ve.render?ve.render(fe,E,ve):fe.appendChild(G.createTextNode(ve.displayText||Z(ve))),fe.hintId=H}var X=L.options.container||G.body,z=V.cursorCoords(L.options.alignWithWord?E.from:null),ge=z.left,Oe=z.bottom,Ue=!0,Re=0,ot=0;if(X!==G.body){var Xe=["absolute","relative","fixed"].indexOf(Q.getComputedStyle(X).position)!==-1,xt=Xe?X:X.offsetParent,Pt=xt.getBoundingClientRect(),Ct=G.body.getBoundingClientRect();Re=Pt.left-Ct.left-xt.scrollLeft,ot=Pt.top-Ct.top-xt.scrollTop}W.style.left=ge-Re+"px",W.style.top=Oe-ot+"px";var Le=Q.innerWidth||Math.max(G.body.offsetWidth,G.documentElement.offsetWidth),Ce=Q.innerHeight||Math.max(G.body.offsetHeight,G.documentElement.offsetHeight);X.appendChild(W),V.getInputField().setAttribute("aria-autocomplete","list"),V.getInputField().setAttribute("aria-owns",this.id),V.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var Se=L.options.moveOnOverlap?W.getBoundingClientRect():new DOMRect,De=L.options.paddingForScrollbar?W.scrollHeight>W.clientHeight+1:!1,$e;setTimeout(function(){$e=V.getScrollInfo()});var tt=Se.bottom-Ce;if(tt>0){var _e=Se.bottom-Se.top,St=Se.top-(z.bottom-z.top)-2;Ce-Se.top<St?(_e>St&&(W.style.height=(_e=St)+"px"),W.style.top=(Oe=z.top-_e)+ot+"px",Ue=!1):W.style.height=Ce-Se.top-2+"px"}var It=Se.right-Le;if(De&&(It+=V.display.nativeBarWidth),It>0&&(Se.right-Se.left>Le&&(W.style.width=Le-5+"px",It-=Se.right-Se.left-Le),W.style.left=(ge=Math.max(z.left-It-Re,0))+"px"),De)for(var Wt=W.firstChild;Wt;Wt=Wt.nextSibling)Wt.style.paddingRight=V.display.nativeBarWidth+"px";if(V.addKeyMap(this.keyMap=ee(L,{moveFocus:function(Ot,st){k.changeActive(k.selectedHint+Ot,st)},setFocus:function(Ot){k.changeActive(Ot)},menuSize:function(){return k.screenAmount()},length:K.length,close:function(){L.close()},pick:function(){k.pick()},data:E})),L.options.closeOnUnfocus){var $t;V.on("blur",this.onBlur=function(){$t=setTimeout(function(){L.close()},100)}),V.on("focus",this.onFocus=function(){clearTimeout($t)})}V.on("scroll",this.onScroll=function(){var Ot=V.getScrollInfo(),st=V.getWrapperElement().getBoundingClientRect();$e||($e=V.getScrollInfo());var qr=Oe+$e.top-Ot.top,Qe=qr-(Q.pageYOffset||(G.documentElement||G.body).scrollTop);if(Ue||(Qe+=W.offsetHeight),Qe<=st.top||Qe>=st.bottom)return L.close();W.style.top=qr+"px",W.style.left=ge+$e.left-Ot.left+"px"}),d.on(W,"dblclick",function(Ot){var st=ue(W,Ot.target||Ot.srcElement);st&&st.hintId!=null&&(k.changeActive(st.hintId),k.pick())}),d.on(W,"click",function(Ot){var st=ue(W,Ot.target||Ot.srcElement);st&&st.hintId!=null&&(k.changeActive(st.hintId),L.options.completeOnSingleClick&&k.pick())}),d.on(W,"mousedown",function(){setTimeout(function(){V.focus()},20)});var We=this.getSelectedHintRange();return(We.from!==0||We.to!==0)&&this.scrollToActive(),d.signal(E,"select",K[this.selectedHint],W.childNodes[this.selectedHint]),!0}ne.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var L=this.completion.cm.getInputField();L.removeAttribute("aria-activedescendant"),L.removeAttribute("aria-owns");var E=this.completion.cm;this.completion.options.closeOnUnfocus&&(E.off("blur",this.onBlur),E.off("focus",this.onFocus)),E.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var L=this;this.keyMap={Enter:function(){L.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(L,E){if(L>=this.data.list.length?L=E?this.data.list.length-1:0:L<0&&(L=E?0:this.data.list.length-1),this.selectedHint!=L){var k=this.hints.childNodes[this.selectedHint];k&&(k.className=k.className.replace(" "+w,""),k.removeAttribute("aria-selected")),k=this.hints.childNodes[this.selectedHint=L],k.className+=" "+w,k.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",k.id),this.scrollToActive(),d.signal(this.data,"select",this.data.list[this.selectedHint],k)}},scrollToActive:function(){var L=this.getSelectedHintRange(),E=this.hints.childNodes[L.from],k=this.hints.childNodes[L.to],V=this.hints.firstChild;E.offsetTop<this.hints.scrollTop?this.hints.scrollTop=E.offsetTop-V.offsetTop:k.offsetTop+k.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=k.offsetTop+k.offsetHeight-this.hints.clientHeight+V.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var L=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-L),to:Math.min(this.data.list.length-1,this.selectedHint+L)}}};function oe(L,E){if(!L.somethingSelected())return E;for(var k=[],V=0;V<E.length;V++)E[V].supportsSelection&&k.push(E[V]);return k}function Y(L,E,k,V){if(L.async)L(E,V,k);else{var G=L(E,k);G&&G.then?G.then(V):V(G)}}function A(L,E){var k=L.getHelpers(E,"hint"),V;if(k.length){var G=function(Q,W,te){var K=oe(Q,k);function H(fe){if(fe==K.length)return W(null);Y(K[fe],Q,te,function(ve){ve&&ve.list.length>0?W(ve):H(fe+1)})}H(0)};return G.async=!0,G.supportsSelection=!0,G}else return(V=L.getHelper(L.getCursor(),"hintWords"))?function(Q){return d.hint.fromList(Q,{words:V})}:d.hint.anyword?function(Q,W){return d.hint.anyword(Q,W)}:function(){}}d.registerHelper("hint","auto",{resolve:A}),d.registerHelper("hint","fromList",function(L,E){var k=L.getCursor(),V=L.getTokenAt(k),G,Q=d.Pos(k.line,V.start),W=k;V.start<k.ch&&/\w/.test(V.string.charAt(k.ch-V.start-1))?G=V.string.substr(0,k.ch-V.start):(G="",Q=k);for(var te=[],K=0;K<E.words.length;K++){var H=E.words[K];H.slice(0,G.length)==G&&te.push(H)}if(te.length)return{list:te,from:Q,to:W}}),d.commands.autocomplete=d.showHint;var J={hint:d.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};d.defineOption("hintOptions",null)})},29387:(h,O,o)=>{(function(d){d(o(23326))})(function(d){"use strict";var x="CodeMirror-lint-markers",w="CodeMirror-lint-line-";function C(W,te,K){var H=document.createElement("div");H.className="CodeMirror-lint-tooltip cm-s-"+W.options.theme,H.appendChild(K.cloneNode(!0)),W.state.lint.options.selfContain?W.getWrapperElement().appendChild(H):document.body.appendChild(H);function fe(ve){if(!H.parentNode)return d.off(document,"mousemove",fe);H.style.top=Math.max(0,ve.clientY-H.offsetHeight-5)+"px",H.style.left=ve.clientX+5+"px"}return d.on(document,"mousemove",fe),fe(te),H.style.opacity!=null&&(H.style.opacity=1),H}function T(W){W.parentNode&&W.parentNode.removeChild(W)}function F(W){!W.parentNode||(W.style.opacity==null&&T(W),W.style.opacity=0,setTimeout(function(){T(W)},600))}function U(W,te,K,H){var fe=C(W,te,K);function ve(){d.off(H,"mouseout",ve),fe&&(F(fe),fe=null)}var _=setInterval(function(){if(fe)for(var X=H;;X=X.parentNode){if(X&&X.nodeType==11&&(X=X.host),X==document.body)return;if(!X){ve();break}}if(!fe)return clearInterval(_)},400);d.on(H,"mouseout",ve)}function Z(W,te,K){this.marked=[],te instanceof Function&&(te={getAnnotations:te}),(!te||te===!0)&&(te={}),this.options={},this.linterOptions=te.options||{};for(var H in ee)this.options[H]=ee[H];for(var H in te)ee.hasOwnProperty(H)?te[H]!=null&&(this.options[H]=te[H]):te.options||(this.linterOptions[H]=te[H]);this.timeout=null,this.hasGutter=K,this.onMouseOver=function(fe){Q(W,fe)},this.waitingFor=0}var ee={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function ue(W){var te=W.state.lint;te.hasGutter&&W.clearGutter(x),te.options.highlightLines&&ne(W);for(var K=0;K<te.marked.length;++K)te.marked[K].clear();te.marked.length=0}function ne(W){W.eachLine(function(te){var K=te.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(te.wrapClass);K&&W.removeLineClass(te,"wrap",K[0])})}function oe(W,te,K,H,fe){var ve=document.createElement("div"),_=ve;return ve.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+K,H&&(_=ve.appendChild(document.createElement("div")),_.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),fe!=!1&&d.on(_,"mouseover",function(X){U(W,X,te,_)}),ve}function Y(W,te){return W=="error"?W:te}function A(W){for(var te=[],K=0;K<W.length;++K){var H=W[K],fe=H.from.line;(te[fe]||(te[fe]=[])).push(H)}return te}function J(W){var te=W.severity;te||(te="error");var K=document.createElement("div");return K.className="CodeMirror-lint-message CodeMirror-lint-message-"+te,typeof W.messageHTML!="undefined"?K.innerHTML=W.messageHTML:K.appendChild(document.createTextNode(W.message)),K}function L(W,te){var K=W.state.lint,H=++K.waitingFor;function fe(){H=-1,W.off("change",fe)}W.on("change",fe),te(W.getValue(),function(ve,_){W.off("change",fe),K.waitingFor==H&&(_&&ve instanceof d&&(ve=_),W.operation(function(){k(W,ve)}))},K.linterOptions,W)}function E(W){var te=W.state.lint;if(!!te){var K=te.options,H=K.getAnnotations||W.getHelper(d.Pos(0,0),"lint");if(!!H)if(K.async||H.async)L(W,H);else{var fe=H(W.getValue(),te.linterOptions,W);if(!fe)return;fe.then?fe.then(function(ve){W.operation(function(){k(W,ve)})}):W.operation(function(){k(W,fe)})}}}function k(W,te){var K=W.state.lint;if(!!K){var H=K.options;ue(W);for(var fe=A(te),ve=0;ve<fe.length;++ve){var _=fe[ve];if(!!_){var X=[];_=_.filter(function(ot){return X.indexOf(ot.message)>-1?!1:X.push(ot.message)});for(var z=null,ge=K.hasGutter&&document.createDocumentFragment(),Oe=0;Oe<_.length;++Oe){var Ue=_[Oe],Re=Ue.severity;Re||(Re="error"),z=Y(z,Re),H.formatAnnotation&&(Ue=H.formatAnnotation(Ue)),K.hasGutter&&ge.appendChild(J(Ue)),Ue.to&&K.marked.push(W.markText(Ue.from,Ue.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+Re,__annotation:Ue}))}K.hasGutter&&W.setGutterMarker(ve,x,oe(W,ge,z,fe[ve].length>1,H.tooltips)),H.highlightLines&&W.addLineClass(ve,"wrap",w+z)}}H.onUpdateLinting&&H.onUpdateLinting(te,fe,W)}}function V(W){var te=W.state.lint;!te||(clearTimeout(te.timeout),te.timeout=setTimeout(function(){E(W)},te.options.delay))}function G(W,te,K){for(var H=K.target||K.srcElement,fe=document.createDocumentFragment(),ve=0;ve<te.length;ve++){var _=te[ve];fe.appendChild(J(_))}U(W,K,fe,H)}function Q(W,te){var K=te.target||te.srcElement;if(!!/\bCodeMirror-lint-mark-/.test(K.className)){for(var H=K.getBoundingClientRect(),fe=(H.left+H.right)/2,ve=(H.top+H.bottom)/2,_=W.findMarksAt(W.coordsChar({left:fe,top:ve},"client")),X=[],z=0;z<_.length;++z){var ge=_[z].__annotation;ge&&X.push(ge)}X.length&&G(W,X,te)}}d.defineOption("lint",!1,function(W,te,K){if(K&&K!=d.Init&&(ue(W),W.state.lint.options.lintOnChange!==!1&&W.off("change",V),d.off(W.getWrapperElement(),"mouseover",W.state.lint.onMouseOver),clearTimeout(W.state.lint.timeout),delete W.state.lint),te){for(var H=W.getOption("gutters"),fe=!1,ve=0;ve<H.length;++ve)H[ve]==x&&(fe=!0);var _=W.state.lint=new Z(W,te,fe);_.options.lintOnChange&&W.on("change",V),_.options.tooltips!=!1&&_.options.tooltips!="gutter"&&d.on(W.getWrapperElement(),"mouseover",_.onMouseOver),E(W)}}),d.defineExtension("performLint",function(){E(this)})})},19757:(h,O,o)=>{(function(d){d(o(23326))})(function(d){"use strict";var x=d.Pos;function w(E){var k=E.flags;return k!=null?k:(E.ignoreCase?"i":"")+(E.global?"g":"")+(E.multiline?"m":"")}function C(E,k){for(var V=w(E),G=V,Q=0;Q<k.length;Q++)G.indexOf(k.charAt(Q))==-1&&(G+=k.charAt(Q));return V==G?E:new RegExp(E.source,G)}function T(E){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(E.source)}function F(E,k,V){k=C(k,"g");for(var G=V.line,Q=V.ch,W=E.lastLine();G<=W;G++,Q=0){k.lastIndex=Q;var te=E.getLine(G),K=k.exec(te);if(K)return{from:x(G,K.index),to:x(G,K.index+K[0].length),match:K}}}function U(E,k,V){if(!T(k))return F(E,k,V);k=C(k,"gm");for(var G,Q=1,W=V.line,te=E.lastLine();W<=te;){for(var K=0;K<Q&&!(W>te);K++){var H=E.getLine(W++);G=G==null?H:G+`
7
+ `;L.replaceSelection(W+W,null),ne(L,-1),V=L.listSelections();for(var te=0;te<V.length;te++){var K=V[te].head.line;L.indentLine(K,null,!0),L.indentLine(K+1,null,!0)}})}function ne(L,E){for(var k=[],V=L.listSelections(),G=0,Q=0;Q<V.length;Q++){var W=V[Q];W.head==L.getCursor()&&(G=Q);var te=W.head.ch||E>0?{line:W.head.line,ch:W.head.ch+E}:{line:W.head.line-1};k.push({anchor:te,head:te})}L.setSelections(k,G)}function oe(L){var E=d.cmpPos(L.anchor,L.head)>0;return{anchor:new w(L.anchor.line,L.anchor.ch+(E?-1:1)),head:new w(L.head.line,L.head.ch+(E?1:-1))}}function Y(L,E){var k=Z(L);if(!k||L.getOption("disableInput"))return d.Pass;var V=C(k,"pairs"),G=V.indexOf(E);if(G==-1)return d.Pass;for(var Q=C(k,"closeBefore"),W=C(k,"triples"),te=V.charAt(G+1)==E,K=L.listSelections(),H=G%2==0,fe,ve=0;ve<K.length;ve++){var _=K[ve],X=_.head,z,ge=L.getRange(X,w(X.line,X.ch+1));if(H&&!_.empty())z="surround";else if((te||!H)&&ge==E)te&&J(L,X)?z="both":W.indexOf(E)>=0&&L.getRange(X,w(X.line,X.ch+3))==E+E+E?z="skipThree":z="skip";else if(te&&X.ch>1&&W.indexOf(E)>=0&&L.getRange(w(X.line,X.ch-2),X)==E+E){if(X.ch>2&&/\bstring/.test(L.getTokenTypeAt(w(X.line,X.ch-2))))return d.Pass;z="addFour"}else if(te){var Oe=X.ch==0?" ":L.getRange(w(X.line,X.ch-1),X);if(!d.isWordChar(ge)&&Oe!=E&&!d.isWordChar(Oe))z="both";else return d.Pass}else if(H&&(ge.length===0||/\s/.test(ge)||Q.indexOf(ge)>-1))z="both";else return d.Pass;if(!fe)fe=z;else if(fe!=z)return d.Pass}var Ue=G%2?V.charAt(G-1):E,Re=G%2?E:V.charAt(G+1);L.operation(function(){if(fe=="skip")ne(L,1);else if(fe=="skipThree")ne(L,3);else if(fe=="surround"){for(var ot=L.getSelections(),Xe=0;Xe<ot.length;Xe++)ot[Xe]=Ue+ot[Xe]+Re;L.replaceSelections(ot,"around"),ot=L.listSelections().slice();for(var Xe=0;Xe<ot.length;Xe++)ot[Xe]=oe(ot[Xe]);L.setSelections(ot)}else fe=="both"?(L.replaceSelection(Ue+Re,null),L.triggerElectric(Ue+Re),ne(L,-1)):fe=="addFour"&&(L.replaceSelection(Ue+Ue+Ue+Ue,"before"),ne(L,1))})}function A(L,E){var k=L.getRange(w(E.line,E.ch-1),w(E.line,E.ch+1));return k.length==2?k:null}function J(L,E){var k=L.getTokenAt(w(E.line,E.ch+1));return/\bstring/.test(k.type)&&k.start==E.ch&&(E.ch==0||!/\bstring/.test(L.getTokenTypeAt(E)))}})},32407:(h,O,o)=>{(function(d){d(o(23326))})(function(d){var x=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),w=d.Pos,C={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function T(ne){return ne&&ne.bracketRegex||/[(){}[\]]/}function F(ne,oe,Y){var A=ne.getLineHandle(oe.line),J=oe.ch-1,L=Y&&Y.afterCursor;L==null&&(L=/(^| )cm-fat-cursor($| )/.test(ne.getWrapperElement().className));var E=T(Y),k=!L&&J>=0&&E.test(A.text.charAt(J))&&C[A.text.charAt(J)]||E.test(A.text.charAt(J+1))&&C[A.text.charAt(++J)];if(!k)return null;var V=k.charAt(1)==">"?1:-1;if(Y&&Y.strict&&V>0!=(J==oe.ch))return null;var G=ne.getTokenTypeAt(w(oe.line,J+1)),Q=U(ne,w(oe.line,J+(V>0?1:0)),V,G,Y);return Q==null?null:{from:w(oe.line,J),to:Q&&Q.pos,match:Q&&Q.ch==k.charAt(0),forward:V>0}}function U(ne,oe,Y,A,J){for(var L=J&&J.maxScanLineLength||1e4,E=J&&J.maxScanLines||1e3,k=[],V=T(J),G=Y>0?Math.min(oe.line+E,ne.lastLine()+1):Math.max(ne.firstLine()-1,oe.line-E),Q=oe.line;Q!=G;Q+=Y){var W=ne.getLine(Q);if(!!W){var te=Y>0?0:W.length-1,K=Y>0?W.length:-1;if(!(W.length>L))for(Q==oe.line&&(te=oe.ch-(Y<0?1:0));te!=K;te+=Y){var H=W.charAt(te);if(V.test(H)&&(A===void 0||(ne.getTokenTypeAt(w(Q,te+1))||"")==(A||""))){var fe=C[H];if(fe&&fe.charAt(1)==">"==Y>0)k.push(H);else if(k.length)k.pop();else return{pos:w(Q,te),ch:H}}}}}return Q-Y==(Y>0?ne.lastLine():ne.firstLine())?!1:null}function Z(ne,oe,Y){for(var A=ne.state.matchBrackets.maxHighlightLineLength||1e3,J=Y&&Y.highlightNonMatching,L=[],E=ne.listSelections(),k=0;k<E.length;k++){var V=E[k].empty()&&F(ne,E[k].head,Y);if(V&&(V.match||J!==!1)&&ne.getLine(V.from.line).length<=A){var G=V.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";L.push(ne.markText(V.from,w(V.from.line,V.from.ch+1),{className:G})),V.to&&ne.getLine(V.to.line).length<=A&&L.push(ne.markText(V.to,w(V.to.line,V.to.ch+1),{className:G}))}}if(L.length){x&&ne.state.focused&&ne.focus();var Q=function(){ne.operation(function(){for(var W=0;W<L.length;W++)L[W].clear()})};if(oe)setTimeout(Q,800);else return Q}}function ee(ne){ne.operation(function(){ne.state.matchBrackets.currentlyHighlighted&&(ne.state.matchBrackets.currentlyHighlighted(),ne.state.matchBrackets.currentlyHighlighted=null),ne.state.matchBrackets.currentlyHighlighted=Z(ne,!1,ne.state.matchBrackets)})}function ue(ne){ne.state.matchBrackets&&ne.state.matchBrackets.currentlyHighlighted&&(ne.state.matchBrackets.currentlyHighlighted(),ne.state.matchBrackets.currentlyHighlighted=null)}d.defineOption("matchBrackets",!1,function(ne,oe,Y){Y&&Y!=d.Init&&(ne.off("cursorActivity",ee),ne.off("focus",ee),ne.off("blur",ue),ue(ne)),oe&&(ne.state.matchBrackets=typeof oe=="object"?oe:{},ne.on("cursorActivity",ee),ne.on("focus",ee),ne.on("blur",ue))}),d.defineExtension("matchBrackets",function(){Z(this,!0)}),d.defineExtension("findMatchingBracket",function(ne,oe,Y){return(Y||typeof oe=="boolean")&&(Y?(Y.strict=oe,oe=Y):oe=oe?{strict:!0}:null),F(this,ne,oe)}),d.defineExtension("scanForBracket",function(ne,oe,Y,A){return U(this,ne,oe,Y,A)})})},22130:(h,O,o)=>{(function(d){d(o(23326))})(function(d){"use strict";var x="CodeMirror-hint",w="CodeMirror-hint-active";d.showHint=function(L,E,k){if(!E)return L.showHint(k);k&&k.async&&(E.async=!0);var V={hint:E};if(k)for(var G in k)V[G]=k[G];return L.showHint(V)},d.defineExtension("showHint",function(L){L=U(this,this.getCursor("start"),L);var E=this.listSelections();if(!(E.length>1)){if(this.somethingSelected()){if(!L.hint.supportsSelection)return;for(var k=0;k<E.length;k++)if(E[k].head.line!=E[k].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var V=this.state.completionActive=new C(this,L);!V.options.hint||(d.signal(this,"startCompletion",this),V.update(!0))}}),d.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function C(L,E){if(this.cm=L,this.options=E,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var k=this;L.on("cursorActivity",this.activityFunc=function(){k.cursorActivity()})}}var T=window.requestAnimationFrame||function(L){return setTimeout(L,1e3/60)},F=window.cancelAnimationFrame||clearTimeout;C.prototype={close:function(){!this.active()||(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&d.signal(this.data,"close"),this.widget&&this.widget.close(),d.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(L,E){var k=L.list[E],V=this;this.cm.operation(function(){k.hint?k.hint(V.cm,L,k):V.cm.replaceRange(Z(k),k.from||L.from,k.to||L.to,"complete"),d.signal(L,"pick",k),V.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(F(this.debounce),this.debounce=0);var L=this.startPos;this.data&&(L=this.data.from);var E=this.cm.getCursor(),k=this.cm.getLine(E.line);if(E.line!=this.startPos.line||k.length-E.ch!=this.startLen-this.startPos.ch||E.ch<L.ch||this.cm.somethingSelected()||!E.ch||this.options.closeCharacters.test(k.charAt(E.ch-1)))this.close();else{var V=this;this.debounce=T(function(){V.update()}),this.widget&&this.widget.disable()}},update:function(L){if(this.tick!=null){var E=this,k=++this.tick;Y(this.options.hint,this.cm,this.options,function(V){E.tick==k&&E.finishUpdate(V,L)})}},finishUpdate:function(L,E){this.data&&d.signal(this.data,"update");var k=this.widget&&this.widget.picked||E&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=L,L&&L.list.length&&(k&&L.list.length==1?this.pick(L,0):(this.widget=new ne(this,L),d.signal(L,"shown")))}};function U(L,E,k){var V=L.options.hintOptions,G={};for(var Q in J)G[Q]=J[Q];if(V)for(var Q in V)V[Q]!==void 0&&(G[Q]=V[Q]);if(k)for(var Q in k)k[Q]!==void 0&&(G[Q]=k[Q]);return G.hint.resolve&&(G.hint=G.hint.resolve(L,E)),G}function Z(L){return typeof L=="string"?L:L.text}function ee(L,E){var k={Up:function(){E.moveFocus(-1)},Down:function(){E.moveFocus(1)},PageUp:function(){E.moveFocus(-E.menuSize()+1,!0)},PageDown:function(){E.moveFocus(E.menuSize()-1,!0)},Home:function(){E.setFocus(0)},End:function(){E.setFocus(E.length-1)},Enter:E.pick,Tab:E.pick,Esc:E.close},V=/Mac/.test(navigator.platform);V&&(k["Ctrl-P"]=function(){E.moveFocus(-1)},k["Ctrl-N"]=function(){E.moveFocus(1)});var G=L.options.customKeys,Q=G?{}:k;function W(H,fe){var ve;typeof fe!="string"?ve=function(_){return fe(_,E)}:k.hasOwnProperty(fe)?ve=k[fe]:ve=fe,Q[H]=ve}if(G)for(var te in G)G.hasOwnProperty(te)&&W(te,G[te]);var K=L.options.extraKeys;if(K)for(var te in K)K.hasOwnProperty(te)&&W(te,K[te]);return Q}function ue(L,E){for(;E&&E!=L;){if(E.nodeName.toUpperCase()==="LI"&&E.parentNode==L)return E;E=E.parentNode}}function ne(L,E){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=L,this.data=E,this.picked=!1;var k=this,V=L.cm,G=V.getInputField().ownerDocument,Q=G.defaultView||G.parentWindow,W=this.hints=G.createElement("ul");W.setAttribute("role","listbox"),W.setAttribute("aria-expanded","true"),W.id=this.id;var te=L.cm.options.theme;W.className="CodeMirror-hints "+te,this.selectedHint=E.selectedHint||0;for(var K=E.list,H=0;H<K.length;++H){var fe=W.appendChild(G.createElement("li")),ve=K[H],_=x+(H!=this.selectedHint?"":" "+w);ve.className!=null&&(_=ve.className+" "+_),fe.className=_,H==this.selectedHint&&fe.setAttribute("aria-selected","true"),fe.id=this.id+"-"+H,fe.setAttribute("role","option"),ve.render?ve.render(fe,E,ve):fe.appendChild(G.createTextNode(ve.displayText||Z(ve))),fe.hintId=H}var X=L.options.container||G.body,z=V.cursorCoords(L.options.alignWithWord?E.from:null),ge=z.left,Oe=z.bottom,Ue=!0,Re=0,ot=0;if(X!==G.body){var Xe=["absolute","relative","fixed"].indexOf(Q.getComputedStyle(X).position)!==-1,xt=Xe?X:X.offsetParent,Pt=xt.getBoundingClientRect(),Ct=G.body.getBoundingClientRect();Re=Pt.left-Ct.left-xt.scrollLeft,ot=Pt.top-Ct.top-xt.scrollTop}W.style.left=ge-Re+"px",W.style.top=Oe-ot+"px";var Le=Q.innerWidth||Math.max(G.body.offsetWidth,G.documentElement.offsetWidth),Ce=Q.innerHeight||Math.max(G.body.offsetHeight,G.documentElement.offsetHeight);X.appendChild(W),V.getInputField().setAttribute("aria-autocomplete","list"),V.getInputField().setAttribute("aria-owns",this.id),V.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var Se=L.options.moveOnOverlap?W.getBoundingClientRect():new DOMRect,De=L.options.paddingForScrollbar?W.scrollHeight>W.clientHeight+1:!1,$e;setTimeout(function(){$e=V.getScrollInfo()});var tt=Se.bottom-Ce;if(tt>0){var _e=Se.bottom-Se.top,St=Se.top-(z.bottom-z.top)-2;Ce-Se.top<St?(_e>St&&(W.style.height=(_e=St)+"px"),W.style.top=(Oe=z.top-_e)+ot+"px",Ue=!1):W.style.height=Ce-Se.top-2+"px"}var It=Se.right-Le;if(De&&(It+=V.display.nativeBarWidth),It>0&&(Se.right-Se.left>Le&&(W.style.width=Le-5+"px",It-=Se.right-Se.left-Le),W.style.left=(ge=Math.max(z.left-It-Re,0))+"px"),De)for(var Wt=W.firstChild;Wt;Wt=Wt.nextSibling)Wt.style.paddingRight=V.display.nativeBarWidth+"px";if(V.addKeyMap(this.keyMap=ee(L,{moveFocus:function(Ot,st){k.changeActive(k.selectedHint+Ot,st)},setFocus:function(Ot){k.changeActive(Ot)},menuSize:function(){return k.screenAmount()},length:K.length,close:function(){L.close()},pick:function(){k.pick()},data:E})),L.options.closeOnUnfocus){var Kt;V.on("blur",this.onBlur=function(){Kt=setTimeout(function(){L.close()},100)}),V.on("focus",this.onFocus=function(){clearTimeout(Kt)})}V.on("scroll",this.onScroll=function(){var Ot=V.getScrollInfo(),st=V.getWrapperElement().getBoundingClientRect();$e||($e=V.getScrollInfo());var qr=Oe+$e.top-Ot.top,Qe=qr-(Q.pageYOffset||(G.documentElement||G.body).scrollTop);if(Ue||(Qe+=W.offsetHeight),Qe<=st.top||Qe>=st.bottom)return L.close();W.style.top=qr+"px",W.style.left=ge+$e.left-Ot.left+"px"}),d.on(W,"dblclick",function(Ot){var st=ue(W,Ot.target||Ot.srcElement);st&&st.hintId!=null&&(k.changeActive(st.hintId),k.pick())}),d.on(W,"click",function(Ot){var st=ue(W,Ot.target||Ot.srcElement);st&&st.hintId!=null&&(k.changeActive(st.hintId),L.options.completeOnSingleClick&&k.pick())}),d.on(W,"mousedown",function(){setTimeout(function(){V.focus()},20)});var We=this.getSelectedHintRange();return(We.from!==0||We.to!==0)&&this.scrollToActive(),d.signal(E,"select",K[this.selectedHint],W.childNodes[this.selectedHint]),!0}ne.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var L=this.completion.cm.getInputField();L.removeAttribute("aria-activedescendant"),L.removeAttribute("aria-owns");var E=this.completion.cm;this.completion.options.closeOnUnfocus&&(E.off("blur",this.onBlur),E.off("focus",this.onFocus)),E.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var L=this;this.keyMap={Enter:function(){L.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(L,E){if(L>=this.data.list.length?L=E?this.data.list.length-1:0:L<0&&(L=E?0:this.data.list.length-1),this.selectedHint!=L){var k=this.hints.childNodes[this.selectedHint];k&&(k.className=k.className.replace(" "+w,""),k.removeAttribute("aria-selected")),k=this.hints.childNodes[this.selectedHint=L],k.className+=" "+w,k.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",k.id),this.scrollToActive(),d.signal(this.data,"select",this.data.list[this.selectedHint],k)}},scrollToActive:function(){var L=this.getSelectedHintRange(),E=this.hints.childNodes[L.from],k=this.hints.childNodes[L.to],V=this.hints.firstChild;E.offsetTop<this.hints.scrollTop?this.hints.scrollTop=E.offsetTop-V.offsetTop:k.offsetTop+k.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=k.offsetTop+k.offsetHeight-this.hints.clientHeight+V.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var L=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-L),to:Math.min(this.data.list.length-1,this.selectedHint+L)}}};function oe(L,E){if(!L.somethingSelected())return E;for(var k=[],V=0;V<E.length;V++)E[V].supportsSelection&&k.push(E[V]);return k}function Y(L,E,k,V){if(L.async)L(E,V,k);else{var G=L(E,k);G&&G.then?G.then(V):V(G)}}function A(L,E){var k=L.getHelpers(E,"hint"),V;if(k.length){var G=function(Q,W,te){var K=oe(Q,k);function H(fe){if(fe==K.length)return W(null);Y(K[fe],Q,te,function(ve){ve&&ve.list.length>0?W(ve):H(fe+1)})}H(0)};return G.async=!0,G.supportsSelection=!0,G}else return(V=L.getHelper(L.getCursor(),"hintWords"))?function(Q){return d.hint.fromList(Q,{words:V})}:d.hint.anyword?function(Q,W){return d.hint.anyword(Q,W)}:function(){}}d.registerHelper("hint","auto",{resolve:A}),d.registerHelper("hint","fromList",function(L,E){var k=L.getCursor(),V=L.getTokenAt(k),G,Q=d.Pos(k.line,V.start),W=k;V.start<k.ch&&/\w/.test(V.string.charAt(k.ch-V.start-1))?G=V.string.substr(0,k.ch-V.start):(G="",Q=k);for(var te=[],K=0;K<E.words.length;K++){var H=E.words[K];H.slice(0,G.length)==G&&te.push(H)}if(te.length)return{list:te,from:Q,to:W}}),d.commands.autocomplete=d.showHint;var J={hint:d.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};d.defineOption("hintOptions",null)})},29387:(h,O,o)=>{(function(d){d(o(23326))})(function(d){"use strict";var x="CodeMirror-lint-markers",w="CodeMirror-lint-line-";function C(W,te,K){var H=document.createElement("div");H.className="CodeMirror-lint-tooltip cm-s-"+W.options.theme,H.appendChild(K.cloneNode(!0)),W.state.lint.options.selfContain?W.getWrapperElement().appendChild(H):document.body.appendChild(H);function fe(ve){if(!H.parentNode)return d.off(document,"mousemove",fe);H.style.top=Math.max(0,ve.clientY-H.offsetHeight-5)+"px",H.style.left=ve.clientX+5+"px"}return d.on(document,"mousemove",fe),fe(te),H.style.opacity!=null&&(H.style.opacity=1),H}function T(W){W.parentNode&&W.parentNode.removeChild(W)}function F(W){!W.parentNode||(W.style.opacity==null&&T(W),W.style.opacity=0,setTimeout(function(){T(W)},600))}function U(W,te,K,H){var fe=C(W,te,K);function ve(){d.off(H,"mouseout",ve),fe&&(F(fe),fe=null)}var _=setInterval(function(){if(fe)for(var X=H;;X=X.parentNode){if(X&&X.nodeType==11&&(X=X.host),X==document.body)return;if(!X){ve();break}}if(!fe)return clearInterval(_)},400);d.on(H,"mouseout",ve)}function Z(W,te,K){this.marked=[],te instanceof Function&&(te={getAnnotations:te}),(!te||te===!0)&&(te={}),this.options={},this.linterOptions=te.options||{};for(var H in ee)this.options[H]=ee[H];for(var H in te)ee.hasOwnProperty(H)?te[H]!=null&&(this.options[H]=te[H]):te.options||(this.linterOptions[H]=te[H]);this.timeout=null,this.hasGutter=K,this.onMouseOver=function(fe){Q(W,fe)},this.waitingFor=0}var ee={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function ue(W){var te=W.state.lint;te.hasGutter&&W.clearGutter(x),te.options.highlightLines&&ne(W);for(var K=0;K<te.marked.length;++K)te.marked[K].clear();te.marked.length=0}function ne(W){W.eachLine(function(te){var K=te.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(te.wrapClass);K&&W.removeLineClass(te,"wrap",K[0])})}function oe(W,te,K,H,fe){var ve=document.createElement("div"),_=ve;return ve.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+K,H&&(_=ve.appendChild(document.createElement("div")),_.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),fe!=!1&&d.on(_,"mouseover",function(X){U(W,X,te,_)}),ve}function Y(W,te){return W=="error"?W:te}function A(W){for(var te=[],K=0;K<W.length;++K){var H=W[K],fe=H.from.line;(te[fe]||(te[fe]=[])).push(H)}return te}function J(W){var te=W.severity;te||(te="error");var K=document.createElement("div");return K.className="CodeMirror-lint-message CodeMirror-lint-message-"+te,typeof W.messageHTML!="undefined"?K.innerHTML=W.messageHTML:K.appendChild(document.createTextNode(W.message)),K}function L(W,te){var K=W.state.lint,H=++K.waitingFor;function fe(){H=-1,W.off("change",fe)}W.on("change",fe),te(W.getValue(),function(ve,_){W.off("change",fe),K.waitingFor==H&&(_&&ve instanceof d&&(ve=_),W.operation(function(){k(W,ve)}))},K.linterOptions,W)}function E(W){var te=W.state.lint;if(!!te){var K=te.options,H=K.getAnnotations||W.getHelper(d.Pos(0,0),"lint");if(!!H)if(K.async||H.async)L(W,H);else{var fe=H(W.getValue(),te.linterOptions,W);if(!fe)return;fe.then?fe.then(function(ve){W.operation(function(){k(W,ve)})}):W.operation(function(){k(W,fe)})}}}function k(W,te){var K=W.state.lint;if(!!K){var H=K.options;ue(W);for(var fe=A(te),ve=0;ve<fe.length;++ve){var _=fe[ve];if(!!_){var X=[];_=_.filter(function(ot){return X.indexOf(ot.message)>-1?!1:X.push(ot.message)});for(var z=null,ge=K.hasGutter&&document.createDocumentFragment(),Oe=0;Oe<_.length;++Oe){var Ue=_[Oe],Re=Ue.severity;Re||(Re="error"),z=Y(z,Re),H.formatAnnotation&&(Ue=H.formatAnnotation(Ue)),K.hasGutter&&ge.appendChild(J(Ue)),Ue.to&&K.marked.push(W.markText(Ue.from,Ue.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+Re,__annotation:Ue}))}K.hasGutter&&W.setGutterMarker(ve,x,oe(W,ge,z,fe[ve].length>1,H.tooltips)),H.highlightLines&&W.addLineClass(ve,"wrap",w+z)}}H.onUpdateLinting&&H.onUpdateLinting(te,fe,W)}}function V(W){var te=W.state.lint;!te||(clearTimeout(te.timeout),te.timeout=setTimeout(function(){E(W)},te.options.delay))}function G(W,te,K){for(var H=K.target||K.srcElement,fe=document.createDocumentFragment(),ve=0;ve<te.length;ve++){var _=te[ve];fe.appendChild(J(_))}U(W,K,fe,H)}function Q(W,te){var K=te.target||te.srcElement;if(!!/\bCodeMirror-lint-mark-/.test(K.className)){for(var H=K.getBoundingClientRect(),fe=(H.left+H.right)/2,ve=(H.top+H.bottom)/2,_=W.findMarksAt(W.coordsChar({left:fe,top:ve},"client")),X=[],z=0;z<_.length;++z){var ge=_[z].__annotation;ge&&X.push(ge)}X.length&&G(W,X,te)}}d.defineOption("lint",!1,function(W,te,K){if(K&&K!=d.Init&&(ue(W),W.state.lint.options.lintOnChange!==!1&&W.off("change",V),d.off(W.getWrapperElement(),"mouseover",W.state.lint.onMouseOver),clearTimeout(W.state.lint.timeout),delete W.state.lint),te){for(var H=W.getOption("gutters"),fe=!1,ve=0;ve<H.length;++ve)H[ve]==x&&(fe=!0);var _=W.state.lint=new Z(W,te,fe);_.options.lintOnChange&&W.on("change",V),_.options.tooltips!=!1&&_.options.tooltips!="gutter"&&d.on(W.getWrapperElement(),"mouseover",_.onMouseOver),E(W)}}),d.defineExtension("performLint",function(){E(this)})})},19757:(h,O,o)=>{(function(d){d(o(23326))})(function(d){"use strict";var x=d.Pos;function w(E){var k=E.flags;return k!=null?k:(E.ignoreCase?"i":"")+(E.global?"g":"")+(E.multiline?"m":"")}function C(E,k){for(var V=w(E),G=V,Q=0;Q<k.length;Q++)G.indexOf(k.charAt(Q))==-1&&(G+=k.charAt(Q));return V==G?E:new RegExp(E.source,G)}function T(E){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(E.source)}function F(E,k,V){k=C(k,"g");for(var G=V.line,Q=V.ch,W=E.lastLine();G<=W;G++,Q=0){k.lastIndex=Q;var te=E.getLine(G),K=k.exec(te);if(K)return{from:x(G,K.index),to:x(G,K.index+K[0].length),match:K}}}function U(E,k,V){if(!T(k))return F(E,k,V);k=C(k,"gm");for(var G,Q=1,W=V.line,te=E.lastLine();W<=te;){for(var K=0;K<Q&&!(W>te);K++){var H=E.getLine(W++);G=G==null?H:G+`
8
8
  `+H}Q=Q*2,k.lastIndex=V.ch;var fe=k.exec(G);if(fe){var ve=G.slice(0,fe.index).split(`
9
9
  `),_=fe[0].split(`
10
10
  `),X=V.line+ve.length-1,z=ve[ve.length-1].length;return{from:x(X,z),to:x(X+_.length-1,_.length==1?z+_[0].length:_[_.length-1].length),match:fe}}}}function Z(E,k,V){for(var G,Q=0;Q<=E.length;){k.lastIndex=Q;var W=k.exec(E);if(!W)break;var te=W.index+W[0].length;if(te>E.length-V)break;(!G||te>G.index+G[0].length)&&(G=W),Q=W.index+1}return G}function ee(E,k,V){k=C(k,"g");for(var G=V.line,Q=V.ch,W=E.firstLine();G>=W;G--,Q=-1){var te=E.getLine(G),K=Z(te,k,Q<0?0:te.length-Q);if(K)return{from:x(G,K.index),to:x(G,K.index+K[0].length),match:K}}}function ue(E,k,V){if(!T(k))return ee(E,k,V);k=C(k,"gm");for(var G,Q=1,W=E.getLine(V.line).length-V.ch,te=V.line,K=E.firstLine();te>=K;){for(var H=0;H<Q&&te>=K;H++){var fe=E.getLine(te--);G=G==null?fe:fe+`
11
11
  `+G}Q*=2;var ve=Z(G,k,W);if(ve){var _=G.slice(0,ve.index).split(`
12
12
  `),X=ve[0].split(`
13
- `),z=te+_.length,ge=_[_.length-1].length;return{from:x(z,ge),to:x(z+X.length-1,X.length==1?ge+X[0].length:X[X.length-1].length),match:ve}}}}var ne,oe;String.prototype.normalize?(ne=function(E){return E.normalize("NFD").toLowerCase()},oe=function(E){return E.normalize("NFD")}):(ne=function(E){return E.toLowerCase()},oe=function(E){return E});function Y(E,k,V,G){if(E.length==k.length)return V;for(var Q=0,W=V+Math.max(0,E.length-k.length);;){if(Q==W)return Q;var te=Q+W>>1,K=G(E.slice(0,te)).length;if(K==V)return te;K>V?W=te:Q=te+1}}function A(E,k,V,G){if(!k.length)return null;var Q=G?ne:oe,W=Q(k).split(/\r|\n\r?/);e:for(var te=V.line,K=V.ch,H=E.lastLine()+1-W.length;te<=H;te++,K=0){var fe=E.getLine(te).slice(K),ve=Q(fe);if(W.length==1){var _=ve.indexOf(W[0]);if(_==-1)continue e;var V=Y(fe,ve,_,Q)+K;return{from:x(te,Y(fe,ve,_,Q)+K),to:x(te,Y(fe,ve,_+W[0].length,Q)+K)}}else{var X=ve.length-W[0].length;if(ve.slice(X)!=W[0])continue e;for(var z=1;z<W.length-1;z++)if(Q(E.getLine(te+z))!=W[z])continue e;var ge=E.getLine(te+W.length-1),Oe=Q(ge),Ue=W[W.length-1];if(Oe.slice(0,Ue.length)!=Ue)continue e;return{from:x(te,Y(fe,ve,X,Q)+K),to:x(te+W.length-1,Y(ge,Oe,Ue.length,Q))}}}}function J(E,k,V,G){if(!k.length)return null;var Q=G?ne:oe,W=Q(k).split(/\r|\n\r?/);e:for(var te=V.line,K=V.ch,H=E.firstLine()-1+W.length;te>=H;te--,K=-1){var fe=E.getLine(te);K>-1&&(fe=fe.slice(0,K));var ve=Q(fe);if(W.length==1){var _=ve.lastIndexOf(W[0]);if(_==-1)continue e;return{from:x(te,Y(fe,ve,_,Q)),to:x(te,Y(fe,ve,_+W[0].length,Q))}}else{var X=W[W.length-1];if(ve.slice(0,X.length)!=X)continue e;for(var z=1,V=te-W.length+1;z<W.length-1;z++)if(Q(E.getLine(V+z))!=W[z])continue e;var ge=E.getLine(te+1-W.length),Oe=Q(ge);if(Oe.slice(Oe.length-W[0].length)!=W[0])continue e;return{from:x(te+1-W.length,Y(ge,Oe,ge.length-W[0].length,Q)),to:x(te,Y(fe,ve,X.length,Q))}}}}function L(E,k,V,G){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=E,V=V?E.clipPos(V):x(0,0),this.pos={from:V,to:V};var Q;typeof G=="object"?Q=G.caseFold:(Q=G,G=null),typeof k=="string"?(Q==null&&(Q=!1),this.matches=function(W,te){return(W?J:A)(E,k,te,Q)}):(k=C(k,"gm"),!G||G.multiline!==!1?this.matches=function(W,te){return(W?ue:U)(E,k,te)}:this.matches=function(W,te){return(W?ee:F)(E,k,te)})}L.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(E){var k=this.doc.clipPos(E?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(k=x(k.line,k.ch),E?(k.ch--,k.ch<0&&(k.line--,k.ch=(this.doc.getLine(k.line)||"").length)):(k.ch++,k.ch>(this.doc.getLine(k.line)||"").length&&(k.ch=0,k.line++)),d.cmpPos(k,this.doc.clipPos(k))!=0))return this.atOccurrence=!1;var V=this.matches(E,k);if(this.afterEmptyMatch=V&&d.cmpPos(V.from,V.to)==0,V)return this.pos=V,this.atOccurrence=!0,this.pos.match||!0;var G=x(E?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:G,to:G},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(E,k){if(!!this.atOccurrence){var V=d.splitLines(E);this.doc.replaceRange(V,this.pos.from,this.pos.to,k),this.pos.to=x(this.pos.from.line+V.length-1,V[V.length-1].length+(V.length==1?this.pos.from.ch:0))}}},d.defineExtension("getSearchCursor",function(E,k,V){return new L(this.doc,E,k,V)}),d.defineDocExtension("getSearchCursor",function(E,k,V){return new L(this,E,k,V)}),d.defineExtension("selectMatches",function(E,k){for(var V=[],G=this.getSearchCursor(E,this.getCursor("from"),k);G.findNext()&&!(d.cmpPos(G.to(),this.getCursor("to"))>0);)V.push({anchor:G.from(),head:G.to()});V.length&&this.setSelections(V,0)})})},23326:function(h){(function(O,o){h.exports=o()})(this,function(){"use strict";var O=navigator.userAgent,o=navigator.platform,d=/gecko\/\d/i.test(O),x=/MSIE \d/.test(O),w=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(O),C=/Edge\/(\d+)/.exec(O),T=x||w||C,F=T&&(x?document.documentMode||6:+(C||w)[1]),U=!C&&/WebKit\//.test(O),Z=U&&/Qt\/\d+\.\d+/.test(O),ee=!C&&/Chrome\/(\d+)/.exec(O),ue=ee&&+ee[1],ne=/Opera\//.test(O),oe=/Apple Computer/.test(navigator.vendor),Y=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(O),A=/PhantomJS/.test(O),J=oe&&(/Mobile\/\w+/.test(O)||navigator.maxTouchPoints>2),L=/Android/.test(O),E=J||L||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(O),k=J||/Mac/.test(o),V=/\bCrOS\b/.test(O),G=/win/i.test(o),Q=ne&&O.match(/Version\/(\d*\.\d*)/);Q&&(Q=Number(Q[1])),Q&&Q>=15&&(ne=!1,U=!0);var W=k&&(Z||ne&&(Q==null||Q<12.11)),te=d||T&&F>=9;function K(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var H=function(t,i){var u=t.className,l=K(i).exec(u);if(l){var f=u.slice(l.index+l[0].length);t.className=u.slice(0,l.index)+(f?l[1]+f:"")}};function fe(t){for(var i=t.childNodes.length;i>0;--i)t.removeChild(t.firstChild);return t}function ve(t,i){return fe(t).appendChild(i)}function _(t,i,u,l){var f=document.createElement(t);if(u&&(f.className=u),l&&(f.style.cssText=l),typeof i=="string")f.appendChild(document.createTextNode(i));else if(i)for(var m=0;m<i.length;++m)f.appendChild(i[m]);return f}function X(t,i,u,l){var f=_(t,i,u,l);return f.setAttribute("role","presentation"),f}var z;document.createRange?z=function(t,i,u,l){var f=document.createRange();return f.setEnd(l||t,u),f.setStart(t,i),f}:z=function(t,i,u){var l=document.body.createTextRange();try{l.moveToElementText(t.parentNode)}catch(f){return l}return l.collapse(!0),l.moveEnd("character",u),l.moveStart("character",i),l};function ge(t,i){if(i.nodeType==3&&(i=i.parentNode),t.contains)return t.contains(i);do if(i.nodeType==11&&(i=i.host),i==t)return!0;while(i=i.parentNode)}function Oe(t){var i;try{i=t.activeElement}catch(u){i=t.body||null}for(;i&&i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function Ue(t,i){var u=t.className;K(i).test(u)||(t.className+=(u?" ":"")+i)}function Re(t,i){for(var u=t.split(" "),l=0;l<u.length;l++)u[l]&&!K(u[l]).test(i)&&(i+=" "+u[l]);return i}var ot=function(t){t.select()};J?ot=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:T&&(ot=function(t){try{t.select()}catch(i){}});function Xe(t){return t.display.wrapper.ownerDocument}function xt(t){return Xe(t).defaultView}function Pt(t){var i=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,i)}}function Ct(t,i,u){i||(i={});for(var l in t)t.hasOwnProperty(l)&&(u!==!1||!i.hasOwnProperty(l))&&(i[l]=t[l]);return i}function Le(t,i,u,l,f){i==null&&(i=t.search(/[^\s\u00a0]/),i==-1&&(i=t.length));for(var m=l||0,S=f||0;;){var P=t.indexOf(" ",m);if(P<0||P>=i)return S+(i-m);S+=P-m,S+=u-S%u,m=P+1}}var Ce=function(){this.id=null,this.f=null,this.time=0,this.handler=Pt(this.onTimeout,this)};Ce.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},Ce.prototype.set=function(t,i){this.f=i;var u=+new Date+t;(!this.id||u<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=u)};function Se(t,i){for(var u=0;u<t.length;++u)if(t[u]==i)return u;return-1}var De=50,$e={toString:function(){return"CodeMirror.Pass"}},tt={scroll:!1},_e={origin:"*mouse"},St={origin:"+move"};function It(t,i,u){for(var l=0,f=0;;){var m=t.indexOf(" ",l);m==-1&&(m=t.length);var S=m-l;if(m==t.length||f+S>=i)return l+Math.min(S,i-f);if(f+=m-l,f+=u-f%u,l=m+1,f>=i)return l}}var Wt=[""];function $t(t){for(;Wt.length<=t;)Wt.push(We(Wt)+" ");return Wt[t]}function We(t){return t[t.length-1]}function Ot(t,i){for(var u=[],l=0;l<t.length;l++)u[l]=i(t[l],l);return u}function st(t,i,u){for(var l=0,f=u(i);l<t.length&&u(t[l])<=f;)l++;t.splice(l,0,i)}function qr(){}function Qe(t,i){var u;return Object.create?u=Object.create(t):(qr.prototype=t,u=new qr),i&&Ct(i,u),u}var un=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ir(t){return/\w/.test(t)||t>"\x80"&&(t.toUpperCase()!=t.toLowerCase()||un.test(t))}function Or(t,i){return i?i.source.indexOf("\\w")>-1&&Ir(t)?!0:i.test(t):Ir(t)}function hr(t){for(var i in t)if(t.hasOwnProperty(i)&&t[i])return!1;return!0}var et=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function mt(t){return t.charCodeAt(0)>=768&&et.test(t)}function Mt(t,i,u){for(;(u<0?i>0:i<t.length)&&mt(t.charAt(i));)i+=u;return i}function Tt(t,i,u){for(var l=i>u?-1:1;;){if(i==u)return i;var f=(i+u)/2,m=l<0?Math.ceil(f):Math.floor(f);if(m==i)return t(m)?i:u;t(m)?u=m:i=m+l}}function Rt(t,i,u,l){if(!t)return l(i,u,"ltr",0);for(var f=!1,m=0;m<t.length;++m){var S=t[m];(S.from<u&&S.to>i||i==u&&S.to==i)&&(l(Math.max(S.from,i),Math.min(S.to,u),S.level==1?"rtl":"ltr",m),f=!0)}f||l(i,u,"ltr")}var dt=null;function gt(t,i,u){var l;dt=null;for(var f=0;f<t.length;++f){var m=t[f];if(m.from<i&&m.to>i)return f;m.to==i&&(m.from!=m.to&&u=="before"?l=f:dt=f),m.from==i&&(m.from!=m.to&&u!="before"?l=f:dt=f)}return l!=null?l:dt}var kt=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function u(j){return j<=247?t.charAt(j):1424<=j&&j<=1524?"R":1536<=j&&j<=1785?i.charAt(j-1536):1774<=j&&j<=2220?"r":8192<=j&&j<=8203?"w":j==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,f=/[stwN]/,m=/[LRr]/,S=/[Lb1n]/,P=/[1n]/;function R(j,le,de){this.level=j,this.from=le,this.to=de}return function(j,le){var de=le=="ltr"?"L":"R";if(j.length==0||le=="ltr"&&!l.test(j))return!1;for(var Ae=j.length,me=[],ke=0;ke<Ae;++ke)me.push(u(j.charCodeAt(ke)));for(var Ne=0,ze=de;Ne<Ae;++Ne){var Ye=me[Ne];Ye=="m"?me[Ne]=ze:ze=Ye}for(var Ze=0,Je=de;Ze<Ae;++Ze){var rt=me[Ze];rt=="1"&&Je=="r"?me[Ze]="n":m.test(rt)&&(Je=rt,rt=="r"&&(me[Ze]="R"))}for(var vt=1,pt=me[0];vt<Ae-1;++vt){var Dt=me[vt];Dt=="+"&&pt=="1"&&me[vt+1]=="1"?me[vt]="1":Dt==","&&pt==me[vt+1]&&(pt=="1"||pt=="n")&&(me[vt]=pt),pt=Dt}for(var ur=0;ur<Ae;++ur){var Ur=me[ur];if(Ur==",")me[ur]="N";else if(Ur=="%"){var wr=void 0;for(wr=ur+1;wr<Ae&&me[wr]=="%";++wr);for(var Gt=ur&&me[ur-1]=="!"||wr<Ae&&me[wr]=="1"?"1":"N",yn=ur;yn<wr;++yn)me[yn]=Gt;ur=wr-1}}for(var Fr=0,M=de;Fr<Ae;++Fr){var Bt=me[Fr];M=="L"&&Bt=="1"?me[Fr]="L":m.test(Bt)&&(M=Bt)}for(var fr=0;fr<Ae;++fr)if(f.test(me[fr])){var at=void 0;for(at=fr+1;at<Ae&&f.test(me[at]);++at);for(var yr=(fr?me[fr-1]:de)=="L",Ar=(at<Ae?me[at]:de)=="L",Fa=yr==Ar?yr?"L":"R":de,Ti=fr;Ti<at;++Ti)me[Ti]=Fa;fr=at-1}for(var Jr=[],Jn,Nr=0;Nr<Ae;)if(S.test(me[Nr])){var ao=Nr;for(++Nr;Nr<Ae&&S.test(me[Nr]);++Nr);Jr.push(new R(0,ao,Nr))}else{var Pi=Nr,Ji=Jr.length,Xi=le=="rtl"?1:0;for(++Nr;Nr<Ae&&me[Nr]!="L";++Nr);for(var Xr=Pi;Xr<Nr;)if(P.test(me[Xr])){Pi<Xr&&(Jr.splice(Ji,0,new R(1,Pi,Xr)),Ji+=Xi);var oo=Xr;for(++Xr;Xr<Nr&&P.test(me[Xr]);++Xr);Jr.splice(Ji,0,new R(2,oo,Xr)),Ji+=Xi,Pi=Xr}else++Xr;Pi<Nr&&Jr.splice(Ji,0,new R(1,Pi,Nr))}return le=="ltr"&&(Jr[0].level==1&&(Jn=j.match(/^\s+/))&&(Jr[0].from=Jn[0].length,Jr.unshift(new R(0,0,Jn[0].length))),We(Jr).level==1&&(Jn=j.match(/\s+$/))&&(We(Jr).to-=Jn[0].length,Jr.push(new R(0,Ae-Jn[0].length,Ae)))),le=="rtl"?Jr.reverse():Jr}}();function lt(t,i){var u=t.order;return u==null&&(u=t.order=kt(t.text,i)),u}var Ve=[],ce=function(t,i,u){if(t.addEventListener)t.addEventListener(i,u,!1);else if(t.attachEvent)t.attachEvent("on"+i,u);else{var l=t._handlers||(t._handlers={});l[i]=(l[i]||Ve).concat(u)}};function xe(t,i){return t._handlers&&t._handlers[i]||Ve}function Be(t,i,u){if(t.removeEventListener)t.removeEventListener(i,u,!1);else if(t.detachEvent)t.detachEvent("on"+i,u);else{var l=t._handlers,f=l&&l[i];if(f){var m=Se(f,u);m>-1&&(l[i]=f.slice(0,m).concat(f.slice(m+1)))}}}function Ke(t,i){var u=xe(t,i);if(!!u.length)for(var l=Array.prototype.slice.call(arguments,2),f=0;f<u.length;++f)u[f].apply(null,l)}function ut(t,i,u){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Ke(t,u||i.type,t,i),jn(i)||i.codemirrorIgnore}function nt(t){var i=t._handlers&&t._handlers.cursorActivity;if(!!i)for(var u=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),l=0;l<i.length;++l)Se(u,i[l])==-1&&u.push(i[l])}function _t(t,i){return xe(t,i).length>0}function lr(t){t.prototype.on=function(i,u){ce(this,i,u)},t.prototype.off=function(i,u){Be(this,i,u)}}function At(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Cr(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function jn(t){return t.defaultPrevented!=null?t.defaultPrevented:t.returnValue==!1}function $r(t){At(t),Cr(t)}function Kr(t){return t.target||t.srcElement}function hi(t){var i=t.which;return i==null&&(t.button&1?i=1:t.button&2?i=3:t.button&4&&(i=2)),k&&t.ctrlKey&&i==1&&(i=3),i}var _r=function(){if(T&&F<9)return!1;var t=_("div");return"draggable"in t||"dragDrop"in t}(),vi;function gi(t){if(vi==null){var i=_("span","\u200B");ve(t,_("span",[i,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(vi=i.offsetWidth<=1&&i.offsetHeight>2&&!(T&&F<8))}var u=vi?_("span","\u200B"):_("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return u.setAttribute("cm-text",""),u}var er;function mi(t){if(er!=null)return er;var i=ve(t,document.createTextNode("A\u062EA")),u=z(i,0,1).getBoundingClientRect(),l=z(i,1,2).getBoundingClientRect();return fe(t),!u||u.left==u.right?!1:er=l.right-u.right<3}var _n=`
13
+ `),z=te+_.length,ge=_[_.length-1].length;return{from:x(z,ge),to:x(z+X.length-1,X.length==1?ge+X[0].length:X[X.length-1].length),match:ve}}}}var ne,oe;String.prototype.normalize?(ne=function(E){return E.normalize("NFD").toLowerCase()},oe=function(E){return E.normalize("NFD")}):(ne=function(E){return E.toLowerCase()},oe=function(E){return E});function Y(E,k,V,G){if(E.length==k.length)return V;for(var Q=0,W=V+Math.max(0,E.length-k.length);;){if(Q==W)return Q;var te=Q+W>>1,K=G(E.slice(0,te)).length;if(K==V)return te;K>V?W=te:Q=te+1}}function A(E,k,V,G){if(!k.length)return null;var Q=G?ne:oe,W=Q(k).split(/\r|\n\r?/);e:for(var te=V.line,K=V.ch,H=E.lastLine()+1-W.length;te<=H;te++,K=0){var fe=E.getLine(te).slice(K),ve=Q(fe);if(W.length==1){var _=ve.indexOf(W[0]);if(_==-1)continue e;var V=Y(fe,ve,_,Q)+K;return{from:x(te,Y(fe,ve,_,Q)+K),to:x(te,Y(fe,ve,_+W[0].length,Q)+K)}}else{var X=ve.length-W[0].length;if(ve.slice(X)!=W[0])continue e;for(var z=1;z<W.length-1;z++)if(Q(E.getLine(te+z))!=W[z])continue e;var ge=E.getLine(te+W.length-1),Oe=Q(ge),Ue=W[W.length-1];if(Oe.slice(0,Ue.length)!=Ue)continue e;return{from:x(te,Y(fe,ve,X,Q)+K),to:x(te+W.length-1,Y(ge,Oe,Ue.length,Q))}}}}function J(E,k,V,G){if(!k.length)return null;var Q=G?ne:oe,W=Q(k).split(/\r|\n\r?/);e:for(var te=V.line,K=V.ch,H=E.firstLine()-1+W.length;te>=H;te--,K=-1){var fe=E.getLine(te);K>-1&&(fe=fe.slice(0,K));var ve=Q(fe);if(W.length==1){var _=ve.lastIndexOf(W[0]);if(_==-1)continue e;return{from:x(te,Y(fe,ve,_,Q)),to:x(te,Y(fe,ve,_+W[0].length,Q))}}else{var X=W[W.length-1];if(ve.slice(0,X.length)!=X)continue e;for(var z=1,V=te-W.length+1;z<W.length-1;z++)if(Q(E.getLine(V+z))!=W[z])continue e;var ge=E.getLine(te+1-W.length),Oe=Q(ge);if(Oe.slice(Oe.length-W[0].length)!=W[0])continue e;return{from:x(te+1-W.length,Y(ge,Oe,ge.length-W[0].length,Q)),to:x(te,Y(fe,ve,X.length,Q))}}}}function L(E,k,V,G){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=E,V=V?E.clipPos(V):x(0,0),this.pos={from:V,to:V};var Q;typeof G=="object"?Q=G.caseFold:(Q=G,G=null),typeof k=="string"?(Q==null&&(Q=!1),this.matches=function(W,te){return(W?J:A)(E,k,te,Q)}):(k=C(k,"gm"),!G||G.multiline!==!1?this.matches=function(W,te){return(W?ue:U)(E,k,te)}:this.matches=function(W,te){return(W?ee:F)(E,k,te)})}L.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(E){var k=this.doc.clipPos(E?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(k=x(k.line,k.ch),E?(k.ch--,k.ch<0&&(k.line--,k.ch=(this.doc.getLine(k.line)||"").length)):(k.ch++,k.ch>(this.doc.getLine(k.line)||"").length&&(k.ch=0,k.line++)),d.cmpPos(k,this.doc.clipPos(k))!=0))return this.atOccurrence=!1;var V=this.matches(E,k);if(this.afterEmptyMatch=V&&d.cmpPos(V.from,V.to)==0,V)return this.pos=V,this.atOccurrence=!0,this.pos.match||!0;var G=x(E?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:G,to:G},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(E,k){if(!!this.atOccurrence){var V=d.splitLines(E);this.doc.replaceRange(V,this.pos.from,this.pos.to,k),this.pos.to=x(this.pos.from.line+V.length-1,V[V.length-1].length+(V.length==1?this.pos.from.ch:0))}}},d.defineExtension("getSearchCursor",function(E,k,V){return new L(this.doc,E,k,V)}),d.defineDocExtension("getSearchCursor",function(E,k,V){return new L(this,E,k,V)}),d.defineExtension("selectMatches",function(E,k){for(var V=[],G=this.getSearchCursor(E,this.getCursor("from"),k);G.findNext()&&!(d.cmpPos(G.to(),this.getCursor("to"))>0);)V.push({anchor:G.from(),head:G.to()});V.length&&this.setSelections(V,0)})})},23326:function(h){(function(O,o){h.exports=o()})(this,function(){"use strict";var O=navigator.userAgent,o=navigator.platform,d=/gecko\/\d/i.test(O),x=/MSIE \d/.test(O),w=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(O),C=/Edge\/(\d+)/.exec(O),T=x||w||C,F=T&&(x?document.documentMode||6:+(C||w)[1]),U=!C&&/WebKit\//.test(O),Z=U&&/Qt\/\d+\.\d+/.test(O),ee=!C&&/Chrome\/(\d+)/.exec(O),ue=ee&&+ee[1],ne=/Opera\//.test(O),oe=/Apple Computer/.test(navigator.vendor),Y=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(O),A=/PhantomJS/.test(O),J=oe&&(/Mobile\/\w+/.test(O)||navigator.maxTouchPoints>2),L=/Android/.test(O),E=J||L||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(O),k=J||/Mac/.test(o),V=/\bCrOS\b/.test(O),G=/win/i.test(o),Q=ne&&O.match(/Version\/(\d*\.\d*)/);Q&&(Q=Number(Q[1])),Q&&Q>=15&&(ne=!1,U=!0);var W=k&&(Z||ne&&(Q==null||Q<12.11)),te=d||T&&F>=9;function K(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var H=function(t,i){var u=t.className,l=K(i).exec(u);if(l){var f=u.slice(l.index+l[0].length);t.className=u.slice(0,l.index)+(f?l[1]+f:"")}};function fe(t){for(var i=t.childNodes.length;i>0;--i)t.removeChild(t.firstChild);return t}function ve(t,i){return fe(t).appendChild(i)}function _(t,i,u,l){var f=document.createElement(t);if(u&&(f.className=u),l&&(f.style.cssText=l),typeof i=="string")f.appendChild(document.createTextNode(i));else if(i)for(var m=0;m<i.length;++m)f.appendChild(i[m]);return f}function X(t,i,u,l){var f=_(t,i,u,l);return f.setAttribute("role","presentation"),f}var z;document.createRange?z=function(t,i,u,l){var f=document.createRange();return f.setEnd(l||t,u),f.setStart(t,i),f}:z=function(t,i,u){var l=document.body.createTextRange();try{l.moveToElementText(t.parentNode)}catch(f){return l}return l.collapse(!0),l.moveEnd("character",u),l.moveStart("character",i),l};function ge(t,i){if(i.nodeType==3&&(i=i.parentNode),t.contains)return t.contains(i);do if(i.nodeType==11&&(i=i.host),i==t)return!0;while(i=i.parentNode)}function Oe(t){var i;try{i=t.activeElement}catch(u){i=t.body||null}for(;i&&i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function Ue(t,i){var u=t.className;K(i).test(u)||(t.className+=(u?" ":"")+i)}function Re(t,i){for(var u=t.split(" "),l=0;l<u.length;l++)u[l]&&!K(u[l]).test(i)&&(i+=" "+u[l]);return i}var ot=function(t){t.select()};J?ot=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:T&&(ot=function(t){try{t.select()}catch(i){}});function Xe(t){return t.display.wrapper.ownerDocument}function xt(t){return Xe(t).defaultView}function Pt(t){var i=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,i)}}function Ct(t,i,u){i||(i={});for(var l in t)t.hasOwnProperty(l)&&(u!==!1||!i.hasOwnProperty(l))&&(i[l]=t[l]);return i}function Le(t,i,u,l,f){i==null&&(i=t.search(/[^\s\u00a0]/),i==-1&&(i=t.length));for(var m=l||0,S=f||0;;){var P=t.indexOf(" ",m);if(P<0||P>=i)return S+(i-m);S+=P-m,S+=u-S%u,m=P+1}}var Ce=function(){this.id=null,this.f=null,this.time=0,this.handler=Pt(this.onTimeout,this)};Ce.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},Ce.prototype.set=function(t,i){this.f=i;var u=+new Date+t;(!this.id||u<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=u)};function Se(t,i){for(var u=0;u<t.length;++u)if(t[u]==i)return u;return-1}var De=50,$e={toString:function(){return"CodeMirror.Pass"}},tt={scroll:!1},_e={origin:"*mouse"},St={origin:"+move"};function It(t,i,u){for(var l=0,f=0;;){var m=t.indexOf(" ",l);m==-1&&(m=t.length);var S=m-l;if(m==t.length||f+S>=i)return l+Math.min(S,i-f);if(f+=m-l,f+=u-f%u,l=m+1,f>=i)return l}}var Wt=[""];function Kt(t){for(;Wt.length<=t;)Wt.push(We(Wt)+" ");return Wt[t]}function We(t){return t[t.length-1]}function Ot(t,i){for(var u=[],l=0;l<t.length;l++)u[l]=i(t[l],l);return u}function st(t,i,u){for(var l=0,f=u(i);l<t.length&&u(t[l])<=f;)l++;t.splice(l,0,i)}function qr(){}function Qe(t,i){var u;return Object.create?u=Object.create(t):(qr.prototype=t,u=new qr),i&&Ct(i,u),u}var un=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ir(t){return/\w/.test(t)||t>"\x80"&&(t.toUpperCase()!=t.toLowerCase()||un.test(t))}function Or(t,i){return i?i.source.indexOf("\\w")>-1&&Ir(t)?!0:i.test(t):Ir(t)}function hr(t){for(var i in t)if(t.hasOwnProperty(i)&&t[i])return!1;return!0}var et=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function mt(t){return t.charCodeAt(0)>=768&&et.test(t)}function Mt(t,i,u){for(;(u<0?i>0:i<t.length)&&mt(t.charAt(i));)i+=u;return i}function Tt(t,i,u){for(var l=i>u?-1:1;;){if(i==u)return i;var f=(i+u)/2,m=l<0?Math.ceil(f):Math.floor(f);if(m==i)return t(m)?i:u;t(m)?u=m:i=m+l}}function Rt(t,i,u,l){if(!t)return l(i,u,"ltr",0);for(var f=!1,m=0;m<t.length;++m){var S=t[m];(S.from<u&&S.to>i||i==u&&S.to==i)&&(l(Math.max(S.from,i),Math.min(S.to,u),S.level==1?"rtl":"ltr",m),f=!0)}f||l(i,u,"ltr")}var dt=null;function gt(t,i,u){var l;dt=null;for(var f=0;f<t.length;++f){var m=t[f];if(m.from<i&&m.to>i)return f;m.to==i&&(m.from!=m.to&&u=="before"?l=f:dt=f),m.from==i&&(m.from!=m.to&&u!="before"?l=f:dt=f)}return l!=null?l:dt}var kt=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function u(j){return j<=247?t.charAt(j):1424<=j&&j<=1524?"R":1536<=j&&j<=1785?i.charAt(j-1536):1774<=j&&j<=2220?"r":8192<=j&&j<=8203?"w":j==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,f=/[stwN]/,m=/[LRr]/,S=/[Lb1n]/,P=/[1n]/;function R(j,le,de){this.level=j,this.from=le,this.to=de}return function(j,le){var de=le=="ltr"?"L":"R";if(j.length==0||le=="ltr"&&!l.test(j))return!1;for(var Ae=j.length,me=[],ke=0;ke<Ae;++ke)me.push(u(j.charCodeAt(ke)));for(var Ne=0,ze=de;Ne<Ae;++Ne){var Ye=me[Ne];Ye=="m"?me[Ne]=ze:ze=Ye}for(var Ze=0,Je=de;Ze<Ae;++Ze){var rt=me[Ze];rt=="1"&&Je=="r"?me[Ze]="n":m.test(rt)&&(Je=rt,rt=="r"&&(me[Ze]="R"))}for(var vt=1,pt=me[0];vt<Ae-1;++vt){var Dt=me[vt];Dt=="+"&&pt=="1"&&me[vt+1]=="1"?me[vt]="1":Dt==","&&pt==me[vt+1]&&(pt=="1"||pt=="n")&&(me[vt]=pt),pt=Dt}for(var ur=0;ur<Ae;++ur){var Ur=me[ur];if(Ur==",")me[ur]="N";else if(Ur=="%"){var wr=void 0;for(wr=ur+1;wr<Ae&&me[wr]=="%";++wr);for(var Gt=ur&&me[ur-1]=="!"||wr<Ae&&me[wr]=="1"?"1":"N",yn=ur;yn<wr;++yn)me[yn]=Gt;ur=wr-1}}for(var Fr=0,M=de;Fr<Ae;++Fr){var Bt=me[Fr];M=="L"&&Bt=="1"?me[Fr]="L":m.test(Bt)&&(M=Bt)}for(var fr=0;fr<Ae;++fr)if(f.test(me[fr])){var at=void 0;for(at=fr+1;at<Ae&&f.test(me[at]);++at);for(var yr=(fr?me[fr-1]:de)=="L",Ar=(at<Ae?me[at]:de)=="L",Fa=yr==Ar?yr?"L":"R":de,Ti=fr;Ti<at;++Ti)me[Ti]=Fa;fr=at-1}for(var Jr=[],Jn,Nr=0;Nr<Ae;)if(S.test(me[Nr])){var ao=Nr;for(++Nr;Nr<Ae&&S.test(me[Nr]);++Nr);Jr.push(new R(0,ao,Nr))}else{var Pi=Nr,Ji=Jr.length,Xi=le=="rtl"?1:0;for(++Nr;Nr<Ae&&me[Nr]!="L";++Nr);for(var Xr=Pi;Xr<Nr;)if(P.test(me[Xr])){Pi<Xr&&(Jr.splice(Ji,0,new R(1,Pi,Xr)),Ji+=Xi);var oo=Xr;for(++Xr;Xr<Nr&&P.test(me[Xr]);++Xr);Jr.splice(Ji,0,new R(2,oo,Xr)),Ji+=Xi,Pi=Xr}else++Xr;Pi<Nr&&Jr.splice(Ji,0,new R(1,Pi,Nr))}return le=="ltr"&&(Jr[0].level==1&&(Jn=j.match(/^\s+/))&&(Jr[0].from=Jn[0].length,Jr.unshift(new R(0,0,Jn[0].length))),We(Jr).level==1&&(Jn=j.match(/\s+$/))&&(We(Jr).to-=Jn[0].length,Jr.push(new R(0,Ae-Jn[0].length,Ae)))),le=="rtl"?Jr.reverse():Jr}}();function lt(t,i){var u=t.order;return u==null&&(u=t.order=kt(t.text,i)),u}var Ve=[],ce=function(t,i,u){if(t.addEventListener)t.addEventListener(i,u,!1);else if(t.attachEvent)t.attachEvent("on"+i,u);else{var l=t._handlers||(t._handlers={});l[i]=(l[i]||Ve).concat(u)}};function xe(t,i){return t._handlers&&t._handlers[i]||Ve}function Be(t,i,u){if(t.removeEventListener)t.removeEventListener(i,u,!1);else if(t.detachEvent)t.detachEvent("on"+i,u);else{var l=t._handlers,f=l&&l[i];if(f){var m=Se(f,u);m>-1&&(l[i]=f.slice(0,m).concat(f.slice(m+1)))}}}function Ke(t,i){var u=xe(t,i);if(!!u.length)for(var l=Array.prototype.slice.call(arguments,2),f=0;f<u.length;++f)u[f].apply(null,l)}function ut(t,i,u){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Ke(t,u||i.type,t,i),jn(i)||i.codemirrorIgnore}function nt(t){var i=t._handlers&&t._handlers.cursorActivity;if(!!i)for(var u=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),l=0;l<i.length;++l)Se(u,i[l])==-1&&u.push(i[l])}function _t(t,i){return xe(t,i).length>0}function lr(t){t.prototype.on=function(i,u){ce(this,i,u)},t.prototype.off=function(i,u){Be(this,i,u)}}function At(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Cr(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function jn(t){return t.defaultPrevented!=null?t.defaultPrevented:t.returnValue==!1}function $r(t){At(t),Cr(t)}function Kr(t){return t.target||t.srcElement}function hi(t){var i=t.which;return i==null&&(t.button&1?i=1:t.button&2?i=3:t.button&4&&(i=2)),k&&t.ctrlKey&&i==1&&(i=3),i}var _r=function(){if(T&&F<9)return!1;var t=_("div");return"draggable"in t||"dragDrop"in t}(),vi;function gi(t){if(vi==null){var i=_("span","\u200B");ve(t,_("span",[i,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(vi=i.offsetWidth<=1&&i.offsetHeight>2&&!(T&&F<8))}var u=vi?_("span","\u200B"):_("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return u.setAttribute("cm-text",""),u}var er;function mi(t){if(er!=null)return er;var i=ve(t,document.createTextNode("A\u062EA")),u=z(i,0,1).getBoundingClientRect(),l=z(i,1,2).getBoundingClientRect();return fe(t),!u||u.left==u.right?!1:er=l.right-u.right<3}var _n=`
14
14
 
15
15
  b`.split(/\n/).length!=3?function(t){for(var i=0,u=[],l=t.length;i<=l;){var f=t.indexOf(`
16
- `,i);f==-1&&(f=t.length);var m=t.slice(i,t.charAt(f-1)=="\r"?f-1:f),S=m.indexOf("\r");S!=-1?(u.push(m.slice(0,S)),i+=S+1):(u.push(m),i=f+1)}return u}:function(t){return t.split(/\r\n?|\n/)},ei=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(i){return!1}}:function(t){var i;try{i=t.ownerDocument.selection.createRange()}catch(u){}return!i||i.parentElement()!=t?!1:i.compareEndPoints("StartToEnd",i)!=0},na=function(){var t=_("div");return"oncopy"in t?!0:(t.setAttribute("oncopy","return;"),typeof t.oncopy=="function")}(),pn=null;function fn(t){if(pn!=null)return pn;var i=ve(t,_("span","x")),u=i.getBoundingClientRect(),l=z(i,0,1).getBoundingClientRect();return pn=Math.abs(u.left-l.left)>1}var hn={},vn={};function An(t,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),hn[t]=i}function ho(t,i){vn[t]=i}function Vn(t){if(typeof t=="string"&&vn.hasOwnProperty(t))t=vn[t];else if(t&&typeof t.name=="string"&&vn.hasOwnProperty(t.name)){var i=vn[t.name];typeof i=="string"&&(i={name:i}),t=Qe(i,t),t.name=i.name}else{if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return Vn("application/xml");if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return Vn("application/json")}return typeof t=="string"?{name:t}:t||{name:"null"}}function en(t,i){i=Vn(i);var u=hn[i.name];if(!u)return en(t,"text/plain");var l=u(t,i);if(kr.hasOwnProperty(i.name)){var f=kr[i.name];for(var m in f)!f.hasOwnProperty(m)||(l.hasOwnProperty(m)&&(l["_"+m]=l[m]),l[m]=f[m])}if(l.name=i.name,i.helperType&&(l.helperType=i.helperType),i.modeProps)for(var S in i.modeProps)l[S]=i.modeProps[S];return l}var kr={};function yi(t,i){var u=kr.hasOwnProperty(t)?kr[t]:kr[t]={};Ct(i,u)}function Cn(t,i){if(i===!0)return i;if(t.copyState)return t.copyState(i);var u={};for(var l in i){var f=i[l];f instanceof Array&&(f=f.concat([])),u[l]=f}return u}function ia(t,i){for(var u;t.innerMode&&(u=t.innerMode(i),!(!u||u.mode==t));)i=u.state,t=u.mode;return u||{mode:t,state:i}}function is(t,i,u){return t.startState?t.startState(i,u):!0}var mr=function(t,i,u){this.pos=this.start=0,this.string=t,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=u};mr.prototype.eol=function(){return this.pos>=this.string.length},mr.prototype.sol=function(){return this.pos==this.lineStart},mr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},mr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},mr.prototype.eat=function(t){var i=this.string.charAt(this.pos),u;if(typeof t=="string"?u=i==t:u=i&&(t.test?t.test(i):t(i)),u)return++this.pos,i},mr.prototype.eatWhile=function(t){for(var i=this.pos;this.eat(t););return this.pos>i},mr.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},mr.prototype.skipToEnd=function(){this.pos=this.string.length},mr.prototype.skipTo=function(t){var i=this.string.indexOf(t,this.pos);if(i>-1)return this.pos=i,!0},mr.prototype.backUp=function(t){this.pos-=t},mr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Le(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Le(this.string,this.lineStart,this.tabSize):0)},mr.prototype.indentation=function(){return Le(this.string,null,this.tabSize)-(this.lineStart?Le(this.string,this.lineStart,this.tabSize):0)},mr.prototype.match=function(t,i,u){if(typeof t=="string"){var l=function(S){return u?S.toLowerCase():S},f=this.string.substr(this.pos,t.length);if(l(f)==l(t))return i!==!1&&(this.pos+=t.length),!0}else{var m=this.string.slice(this.pos).match(t);return m&&m.index>0?null:(m&&i!==!1&&(this.pos+=m[0].length),m)}},mr.prototype.current=function(){return this.string.slice(this.start,this.pos)},mr.prototype.hideFirstChars=function(t,i){this.lineStart+=t;try{return i()}finally{this.lineStart-=t}},mr.prototype.lookAhead=function(t){var i=this.lineOracle;return i&&i.lookAhead(t)},mr.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};function ft(t,i){if(i-=t.first,i<0||i>=t.size)throw new Error("There is no line "+(i+t.first)+" in the document.");for(var u=t;!u.lines;)for(var l=0;;++l){var f=u.children[l],m=f.chunkSize();if(i<m){u=f;break}i-=m}return u.lines[i]}function bi(t,i,u){var l=[],f=i.line;return t.iter(i.line,u.line+1,function(m){var S=m.text;f==u.line&&(S=S.slice(0,u.ch)),f==i.line&&(S=S.slice(i.ch)),l.push(S),++f}),l}function aa(t,i,u){var l=[];return t.iter(i,u,function(f){l.push(f.text)}),l}function En(t,i){var u=i-t.height;if(u)for(var l=t;l;l=l.parent)l.height+=u}function Kt(t){if(t.parent==null)return null;for(var i=t.parent,u=Se(i.lines,t),l=i.parent;l;i=l,l=l.parent)for(var f=0;l.children[f]!=i;++f)u+=l.children[f].chunkSize();return u+i.first}function xi(t,i){var u=t.first;e:do{for(var l=0;l<t.children.length;++l){var f=t.children[l],m=f.height;if(i<m){t=f;continue e}i-=m,u+=f.chunkSize()}return u}while(!t.lines);for(var S=0;S<t.lines.length;++S){var P=t.lines[S],R=P.height;if(i<R)break;i-=R}return u+S}function oa(t,i){return i>=t.first&&i<t.first+t.size}function Va(t,i){return String(t.lineNumberFormatter(i+t.firstLineNumber))}function N(t,i,u){if(u===void 0&&(u=null),!(this instanceof N))return new N(t,i,u);this.line=t,this.ch=i,this.sticky=u}function se(t,i){return t.line-i.line||t.ch-i.ch}function Me(t,i){return t.sticky==i.sticky&&se(t,i)==0}function He(t){return N(t.line,t.ch)}function Ft(t,i){return se(t,i)<0?i:t}function jt(t,i){return se(t,i)<0?t:i}function tr(t,i){return Math.max(t.first,Math.min(i,t.first+t.size-1))}function ct(t,i){if(i.line<t.first)return N(t.first,0);var u=t.first+t.size-1;return i.line>u?N(u,ft(t,u).text.length):On(i,ft(t,i.line).text.length)}function On(t,i){var u=t.ch;return u==null||u>i?N(t.line,i):u<0?N(t.line,0):t}function as(t,i){for(var u=[],l=0;l<i.length;l++)u[l]=ct(t,i[l]);return u}var os=function(t,i){this.state=t,this.lookAhead=i},Un=function(t,i,u,l){this.state=i,this.doc=t,this.line=u,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Un.prototype.lookAhead=function(t){var i=this.doc.getLine(this.line+t);return i!=null&&t>this.maxLookAhead&&(this.maxLookAhead=t),i},Un.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},Un.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Un.fromSaved=function(t,i,u){return i instanceof os?new Un(t,Cn(t.mode,i.state),u,i.lookAhead):new Un(t,Cn(t.mode,i),u)},Un.prototype.save=function(t){var i=t!==!1?Cn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new os(i,this.maxLookAhead):i};function Hu(t,i,u,l){var f=[t.state.modeGen],m={};Ku(t,i.text,t.doc.mode,u,function(j,le){return f.push(j,le)},m,l);for(var S=u.state,P=function(j){u.baseTokens=f;var le=t.state.overlays[j],de=1,Ae=0;u.state=!0,Ku(t,i.text,le.mode,u,function(me,ke){for(var Ne=de;Ae<me;){var ze=f[de];ze>me&&f.splice(de,1,me,f[de+1],ze),de+=2,Ae=Math.min(me,ze)}if(!!ke)if(le.opaque)f.splice(Ne,de-Ne,me,"overlay "+ke),de=Ne+2;else for(;Ne<de;Ne+=2){var Ye=f[Ne+1];f[Ne+1]=(Ye?Ye+" ":"")+"overlay "+ke}},m),u.state=S,u.baseTokens=null,u.baseTokenPos=1},R=0;R<t.state.overlays.length;++R)P(R);return{styles:f,classes:m.bgClass||m.textClass?m:null}}function dl(t,i,u){if(!i.styles||i.styles[0]!=t.state.modeGen){var l=sa(t,Kt(i)),f=i.text.length>t.options.maxHighlightLength&&Cn(t.doc.mode,l.state),m=Hu(t,i,l);f&&(l.state=f),i.stateAfter=l.save(!f),i.styles=m.styles,m.classes?i.styleClasses=m.classes:i.styleClasses&&(i.styleClasses=null),u===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return i.styles}function sa(t,i,u){var l=t.doc,f=t.display;if(!l.mode.startState)return new Un(l,!0,i);var m=Kc(t,i,u),S=m>l.first&&ft(l,m-1).stateAfter,P=S?Un.fromSaved(l,S,m):new Un(l,is(l.mode),m);return l.iter(m,i,function(R){pl(t,R.text,P);var j=P.line;R.stateAfter=j==i-1||j%5==0||j>=f.viewFrom&&j<f.viewTo?P.save():null,P.nextLine()}),u&&(l.modeFrontier=P.line),P}function pl(t,i,u,l){var f=t.doc.mode,m=new mr(i,t.options.tabSize,u);for(m.start=m.pos=l||0,i==""&&zu(f,u.state);!m.eol();)hl(f,m,u.state),m.start=m.pos}function zu(t,i){if(t.blankLine)return t.blankLine(i);if(!!t.innerMode){var u=ia(t,i);if(u.mode.blankLine)return u.mode.blankLine(u.state)}}function hl(t,i,u,l){for(var f=0;f<10;f++){l&&(l[0]=ia(t,u).mode);var m=t.token(i,u);if(i.pos>i.start)return m}throw new Error("Mode "+t.name+" failed to advance stream.")}var Gu=function(t,i,u){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=i||null,this.state=u};function vl(t,i,u,l){var f=t.doc,m=f.mode,S;i=ct(f,i);var P=ft(f,i.line),R=sa(t,i.line,u),j=new mr(P.text,t.options.tabSize,R),le;for(l&&(le=[]);(l||j.pos<i.ch)&&!j.eol();)j.start=j.pos,S=hl(m,j,R.state),l&&le.push(new Gu(j,S,Cn(f.mode,R.state)));return l?le:new Gu(j,S,R.state)}function $u(t,i){if(t)for(;;){var u=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!u)break;t=t.slice(0,u.index)+t.slice(u.index+u[0].length);var l=u[1]?"bgClass":"textClass";i[l]==null?i[l]=u[2]:new RegExp("(?:^|\\s)"+u[2]+"(?:$|\\s)").test(i[l])||(i[l]+=" "+u[2])}return t}function Ku(t,i,u,l,f,m,S){var P=u.flattenSpans;P==null&&(P=t.options.flattenSpans);var R=0,j=null,le=new mr(i,t.options.tabSize,l),de,Ae=t.options.addModeClass&&[null];for(i==""&&$u(zu(u,l.state),m);!le.eol();){if(le.pos>t.options.maxHighlightLength?(P=!1,S&&pl(t,i,l,le.pos),le.pos=i.length,de=null):de=$u(hl(u,le,l.state,Ae),m),Ae){var me=Ae[0].name;me&&(de="m-"+(de?me+" "+de:me))}if(!P||j!=de){for(;R<le.start;)R=Math.min(le.start,R+5e3),f(R,j);j=de}le.start=le.pos}for(;R<le.pos;){var ke=Math.min(le.pos,R+5e3);f(ke,j),R=ke}}function Kc(t,i,u){for(var l,f,m=t.doc,S=u?-1:i-(t.doc.mode.innerMode?1e3:100),P=i;P>S;--P){if(P<=m.first)return m.first;var R=ft(m,P-1),j=R.stateAfter;if(j&&(!u||P+(j instanceof os?j.lookAhead:0)<=m.modeFrontier))return P;var le=Le(R.text,null,t.options.tabSize);(f==null||l>le)&&(f=P-1,l=le)}return f}function Yc(t,i){if(t.modeFrontier=Math.min(t.modeFrontier,i),!(t.highlightFrontier<i-10)){for(var u=t.first,l=i-1;l>u;l--){var f=ft(t,l).stateAfter;if(f&&(!(f instanceof os)||l+f.lookAhead<i)){u=l+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,u)}}var gl=!1,Si=!1;function Jc(){gl=!0}function Xc(){Si=!0}function vo(t,i,u){this.marker=t,this.from=i,this.to=u}function go(t,i){if(t)for(var u=0;u<t.length;++u){var l=t[u];if(l.marker==i)return l}}function Qc(t,i){for(var u,l=0;l<t.length;++l)t[l]!=i&&(u||(u=[])).push(t[l]);return u}function Zc(t,i,u){var l=u&&window.WeakSet&&(u.markedSpans||(u.markedSpans=new WeakSet));l&&t.markedSpans&&l.has(t.markedSpans)?t.markedSpans.push(i):(t.markedSpans=t.markedSpans?t.markedSpans.concat([i]):[i],l&&l.add(t.markedSpans)),i.marker.attachLine(t)}function Yu(t,i,u){var l;if(t)for(var f=0;f<t.length;++f){var m=t[f],S=m.marker,P=m.from==null||(S.inclusiveLeft?m.from<=i:m.from<i);if(P||m.from==i&&S.type=="bookmark"&&(!u||!m.marker.insertLeft)){var R=m.to==null||(S.inclusiveRight?m.to>=i:m.to>i);(l||(l=[])).push(new vo(S,m.from,R?null:m.to))}}return l}function ml(t,i,u){var l;if(t)for(var f=0;f<t.length;++f){var m=t[f],S=m.marker,P=m.to==null||(S.inclusiveRight?m.to>=i:m.to>i);if(P||m.from==i&&S.type=="bookmark"&&(!u||m.marker.insertLeft)){var R=m.from==null||(S.inclusiveLeft?m.from<=i:m.from<i);(l||(l=[])).push(new vo(S,R?null:m.from-i,m.to==null?null:m.to-i))}}return l}function ti(t,i){if(i.full)return null;var u=oa(t,i.from.line)&&ft(t,i.from.line).markedSpans,l=oa(t,i.to.line)&&ft(t,i.to.line).markedSpans;if(!u&&!l)return null;var f=i.from.ch,m=i.to.ch,S=se(i.from,i.to)==0,P=Yu(u,f,S),R=ml(l,m,S),j=i.text.length==1,le=We(i.text).length+(j?f:0);if(P)for(var de=0;de<P.length;++de){var Ae=P[de];if(Ae.to==null){var me=go(R,Ae.marker);me?j&&(Ae.to=me.to==null?null:me.to+le):Ae.to=f}}if(R)for(var ke=0;ke<R.length;++ke){var Ne=R[ke];if(Ne.to!=null&&(Ne.to+=le),Ne.from==null){var ze=go(P,Ne.marker);ze||(Ne.from=le,j&&(P||(P=[])).push(Ne))}else Ne.from+=le,j&&(P||(P=[])).push(Ne)}P&&(P=mo(P)),R&&R!=P&&(R=mo(R));var Ye=[P];if(!j){var Ze=i.text.length-2,Je;if(Ze>0&&P)for(var rt=0;rt<P.length;++rt)P[rt].to==null&&(Je||(Je=[])).push(new vo(P[rt].marker,null,null));for(var vt=0;vt<Ze;++vt)Ye.push(Je);Ye.push(R)}return Ye}function mo(t){for(var i=0;i<t.length;++i){var u=t[i];u.from!=null&&u.from==u.to&&u.marker.clearWhenEmpty!==!1&&t.splice(i--,1)}return t.length?t:null}function Ju(t,i,u){var l=null;if(t.iter(i.line,u.line+1,function(me){if(me.markedSpans)for(var ke=0;ke<me.markedSpans.length;++ke){var Ne=me.markedSpans[ke].marker;Ne.readOnly&&(!l||Se(l,Ne)==-1)&&(l||(l=[])).push(Ne)}}),!l)return null;for(var f=[{from:i,to:u}],m=0;m<l.length;++m)for(var S=l[m],P=S.find(0),R=0;R<f.length;++R){var j=f[R];if(!(se(j.to,P.from)<0||se(j.from,P.to)>0)){var le=[R,1],de=se(j.from,P.from),Ae=se(j.to,P.to);(de<0||!S.inclusiveLeft&&!de)&&le.push({from:j.from,to:P.from}),(Ae>0||!S.inclusiveRight&&!Ae)&&le.push({from:P.to,to:j.to}),f.splice.apply(f,le),R+=le.length-3}}return f}function yl(t){var i=t.markedSpans;if(!!i){for(var u=0;u<i.length;++u)i[u].marker.detachLine(t);t.markedSpans=null}}function yo(t,i){if(!!i){for(var u=0;u<i.length;++u)i[u].marker.attachLine(t);t.markedSpans=i}}function Ua(t){return t.inclusiveLeft?-1:0}function ss(t){return t.inclusiveRight?1:0}function ls(t,i){var u=t.lines.length-i.lines.length;if(u!=0)return u;var l=t.find(),f=i.find(),m=se(l.from,f.from)||Ua(t)-Ua(i);if(m)return-m;var S=se(l.to,f.to)||ss(t)-ss(i);return S||i.id-t.id}function Xu(t,i){var u=Si&&t.markedSpans,l;if(u)for(var f=void 0,m=0;m<u.length;++m)f=u[m],f.marker.collapsed&&(i?f.from:f.to)==null&&(!l||ls(l,f.marker)<0)&&(l=f.marker);return l}function Qu(t){return Xu(t,!0)}function us(t){return Xu(t,!1)}function Zu(t,i){var u=Si&&t.markedSpans,l;if(u)for(var f=0;f<u.length;++f){var m=u[f];m.marker.collapsed&&(m.from==null||m.from<i)&&(m.to==null||m.to>i)&&(!l||ls(l,m.marker)<0)&&(l=m.marker)}return l}function bl(t,i,u,l,f){var m=ft(t,i),S=Si&&m.markedSpans;if(S)for(var P=0;P<S.length;++P){var R=S[P];if(!!R.marker.collapsed){var j=R.marker.find(0),le=se(j.from,u)||Ua(R.marker)-Ua(f),de=se(j.to,l)||ss(R.marker)-ss(f);if(!(le>=0&&de<=0||le<=0&&de>=0)&&(le<=0&&(R.marker.inclusiveRight&&f.inclusiveLeft?se(j.to,u)>=0:se(j.to,u)>0)||le>=0&&(R.marker.inclusiveRight&&f.inclusiveLeft?se(j.from,l)<=0:se(j.from,l)<0)))return!0}}}function Tn(t){for(var i;i=Qu(t);)t=i.find(-1,!0).line;return t}function ri(t){for(var i;i=us(t);)t=i.find(1,!0).line;return t}function la(t){for(var i,u;i=us(t);)t=i.find(1,!0).line,(u||(u=[])).push(t);return u}function tn(t,i){var u=ft(t,i),l=Tn(u);return u==l?i:Kt(l)}function ua(t,i){if(i>t.lastLine())return i;var u=ft(t,i),l;if(!Li(t,u))return i;for(;l=us(u);)u=l.find(1,!0).line;return Kt(u)+1}function Li(t,i){var u=Si&&i.markedSpans;if(u){for(var l=void 0,f=0;f<u.length;++f)if(l=u[f],!!l.marker.collapsed){if(l.from==null)return!0;if(!l.marker.widgetNode&&l.from==0&&l.marker.inclusiveLeft&&xl(t,i,l))return!0}}}function xl(t,i,u){if(u.to==null){var l=u.marker.find(1,!0);return xl(t,l.line,go(l.line.markedSpans,u.marker))}if(u.marker.inclusiveRight&&u.to==i.text.length)return!0;for(var f=void 0,m=0;m<i.markedSpans.length;++m)if(f=i.markedSpans[m],f.marker.collapsed&&!f.marker.widgetNode&&f.from==u.to&&(f.to==null||f.to!=u.from)&&(f.marker.inclusiveLeft||u.marker.inclusiveRight)&&xl(t,i,f))return!0}function wi(t){t=Tn(t);for(var i=0,u=t.parent,l=0;l<u.lines.length;++l){var f=u.lines[l];if(f==t)break;i+=f.height}for(var m=u.parent;m;u=m,m=u.parent)for(var S=0;S<m.children.length;++S){var P=m.children[S];if(P==u)break;i+=P.height}return i}function bo(t){if(t.height==0)return 0;for(var i=t.text.length,u,l=t;u=Qu(l);){var f=u.find(0,!0);l=f.from.line,i+=f.from.ch-f.to.ch}for(l=t;u=us(l);){var m=u.find(0,!0);i-=l.text.length-m.from.ch,l=m.to.line,i+=l.text.length-m.to.ch}return i}function Sl(t){var i=t.display,u=t.doc;i.maxLine=ft(u,u.first),i.maxLineLength=bo(i.maxLine),i.maxLineChanged=!0,u.iter(function(l){var f=bo(l);f>i.maxLineLength&&(i.maxLineLength=f,i.maxLine=l)})}var fa=function(t,i,u){this.text=t,yo(this,i),this.height=u?u(this):1};fa.prototype.lineNo=function(){return Kt(this)},lr(fa);function qu(t,i,u,l){t.text=i,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),t.order!=null&&(t.order=null),yl(t),yo(t,u);var f=l?l(t):1;f!=t.height&&En(t,f)}function Wa(t){t.parent=null,yl(t)}var qc={},_u={};function yt(t,i){if(!t||/^\s*$/.test(t))return null;var u=i.addModeClass?_u:qc;return u[t]||(u[t]=t.replace(/\S+/g,"cm-$&"))}function xo(t,i){var u=X("span",null,null,U?"padding-right: .1px":null),l={pre:X("pre",[u],"CodeMirror-line"),content:u,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};i.measure={};for(var f=0;f<=(i.rest?i.rest.length:0);f++){var m=f?i.rest[f-1]:i.line,S=void 0;l.pos=0,l.addToken=Ni,mi(t.display.measure)&&(S=lt(m,t.doc.direction))&&(l.addToken=Ha(l.addToken,S)),l.map=[];var P=i!=t.display.externalMeasured&&Kt(m);Mr(m,l,dl(t,m,P)),m.styleClasses&&(m.styleClasses.bgClass&&(l.bgClass=Re(m.styleClasses.bgClass,l.bgClass||"")),m.styleClasses.textClass&&(l.textClass=Re(m.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(gi(t.display.measure))),f==0?(i.measure.map=l.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(l.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(U){var R=l.content.lastChild;(/\bcm-tab\b/.test(R.className)||R.querySelector&&R.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Ke(t,"renderLine",t,i.line,l.pre),l.pre.className&&(l.textClass=Re(l.pre.className,l.textClass||"")),l}function ef(t){var i=_("span","\u2022","cm-invalidchar");return i.title="\\u"+t.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function Ni(t,i,u,l,f,m,S){if(!!i){var P=t.splitSpaces?tf(i,t.trailingSpace):i,R=t.cm.state.specialChars,j=!1,le;if(!R.test(i))t.col+=i.length,le=document.createTextNode(P),t.map.push(t.pos,t.pos+i.length,le),T&&F<9&&(j=!0),t.pos+=i.length;else{le=document.createDocumentFragment();for(var de=0;;){R.lastIndex=de;var Ae=R.exec(i),me=Ae?Ae.index-de:i.length-de;if(me){var ke=document.createTextNode(P.slice(de,de+me));T&&F<9?le.appendChild(_("span",[ke])):le.appendChild(ke),t.map.push(t.pos,t.pos+me,ke),t.col+=me,t.pos+=me}if(!Ae)break;de+=me+1;var Ne=void 0;if(Ae[0]==" "){var ze=t.cm.options.tabSize,Ye=ze-t.col%ze;Ne=le.appendChild(_("span",$t(Ye),"cm-tab")),Ne.setAttribute("role","presentation"),Ne.setAttribute("cm-text"," "),t.col+=Ye}else Ae[0]=="\r"||Ae[0]==`
17
- `?(Ne=le.appendChild(_("span",Ae[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ne.setAttribute("cm-text",Ae[0]),t.col+=1):(Ne=t.cm.options.specialCharPlaceholder(Ae[0]),Ne.setAttribute("cm-text",Ae[0]),T&&F<9?le.appendChild(_("span",[Ne])):le.appendChild(Ne),t.col+=1);t.map.push(t.pos,t.pos+1,Ne),t.pos++}}if(t.trailingSpace=P.charCodeAt(i.length-1)==32,u||l||f||j||m||S){var Ze=u||"";l&&(Ze+=l),f&&(Ze+=f);var Je=_("span",[le],Ze,m);if(S)for(var rt in S)S.hasOwnProperty(rt)&&rt!="style"&&rt!="class"&&Je.setAttribute(rt,S[rt]);return t.content.appendChild(Je)}t.content.appendChild(le)}}function tf(t,i){if(t.length>1&&!/ /.test(t))return t;for(var u=i,l="",f=0;f<t.length;f++){var m=t.charAt(f);m==" "&&u&&(f==t.length-1||t.charCodeAt(f+1)==32)&&(m="\xA0"),l+=m,u=m==" "}return l}function Ha(t,i){return function(u,l,f,m,S,P,R){f=f?f+" cm-force-border":"cm-force-border";for(var j=u.pos,le=j+l.length;;){for(var de=void 0,Ae=0;Ae<i.length&&(de=i[Ae],!(de.to>j&&de.from<=j));Ae++);if(de.to>=le)return t(u,l,f,m,S,P,R);t(u,l.slice(0,de.to-j),f,m,null,P,R),m=null,l=l.slice(de.to-j),j=de.to}}}function fs(t,i,u,l){var f=!l&&u.widgetNode;f&&t.map.push(t.pos,t.pos+i,f),!l&&t.cm.display.input.needsContentAttribute&&(f||(f=t.content.appendChild(document.createElement("span"))),f.setAttribute("cm-marker",u.id)),f&&(t.cm.display.input.setUneditable(f),t.content.appendChild(f)),t.pos+=i,t.trailingSpace=!1}function Mr(t,i,u){var l=t.markedSpans,f=t.text,m=0;if(!l){for(var S=1;S<u.length;S+=2)i.addToken(i,f.slice(m,m=u[S]),yt(u[S+1],i.cm.options));return}for(var P=f.length,R=0,j=1,le="",de,Ae,me=0,ke,Ne,ze,Ye,Ze;;){if(me==R){ke=Ne=ze=Ae="",Ze=null,Ye=null,me=1/0;for(var Je=[],rt=void 0,vt=0;vt<l.length;++vt){var pt=l[vt],Dt=pt.marker;if(Dt.type=="bookmark"&&pt.from==R&&Dt.widgetNode)Je.push(Dt);else if(pt.from<=R&&(pt.to==null||pt.to>R||Dt.collapsed&&pt.to==R&&pt.from==R)){if(pt.to!=null&&pt.to!=R&&me>pt.to&&(me=pt.to,Ne=""),Dt.className&&(ke+=" "+Dt.className),Dt.css&&(Ae=(Ae?Ae+";":"")+Dt.css),Dt.startStyle&&pt.from==R&&(ze+=" "+Dt.startStyle),Dt.endStyle&&pt.to==me&&(rt||(rt=[])).push(Dt.endStyle,pt.to),Dt.title&&((Ze||(Ze={})).title=Dt.title),Dt.attributes)for(var ur in Dt.attributes)(Ze||(Ze={}))[ur]=Dt.attributes[ur];Dt.collapsed&&(!Ye||ls(Ye.marker,Dt)<0)&&(Ye=pt)}else pt.from>R&&me>pt.from&&(me=pt.from)}if(rt)for(var Ur=0;Ur<rt.length;Ur+=2)rt[Ur+1]==me&&(Ne+=" "+rt[Ur]);if(!Ye||Ye.from==R)for(var wr=0;wr<Je.length;++wr)fs(i,0,Je[wr]);if(Ye&&(Ye.from||0)==R){if(fs(i,(Ye.to==null?P+1:Ye.to)-R,Ye.marker,Ye.from==null),Ye.to==null)return;Ye.to==R&&(Ye=!1)}}if(R>=P)break;for(var Gt=Math.min(P,me);;){if(le){var yn=R+le.length;if(!Ye){var Fr=yn>Gt?le.slice(0,Gt-R):le;i.addToken(i,Fr,de?de+ke:ke,ze,R+Fr.length==me?Ne:"",Ae,Ze)}if(yn>=Gt){le=le.slice(Gt-R),R=Gt;break}R=yn,ze=""}le=f.slice(m,m=u[j++]),de=yt(u[j++],i.cm.options)}}}function So(t,i,u){this.line=i,this.rest=la(i),this.size=this.rest?Kt(We(this.rest))-u+1:1,this.node=this.text=null,this.hidden=Li(t,i)}function za(t,i,u){for(var l=[],f,m=i;m<u;m=f){var S=new So(t.doc,ft(t.doc,m),m);f=m+S.size,l.push(S)}return l}var Ga=null;function _c(t){Ga?Ga.ops.push(t):t.ownsGroup=Ga={ops:[t],delayedCallbacks:[]}}function ed(t){var i=t.delayedCallbacks,u=0;do{for(;u<i.length;u++)i[u].call(null);for(var l=0;l<t.ops.length;l++){var f=t.ops[l];if(f.cursorActivityHandlers)for(;f.cursorActivityCalled<f.cursorActivityHandlers.length;)f.cursorActivityHandlers[f.cursorActivityCalled++].call(null,f.cm)}}while(u<i.length)}function td(t,i){var u=t.ownsGroup;if(!!u)try{ed(u)}finally{Ga=null,i(u)}}var wo=null;function Lr(t,i){var u=xe(t,i);if(!!u.length){var l=Array.prototype.slice.call(arguments,2),f;Ga?f=Ga.delayedCallbacks:wo?f=wo:(f=wo=[],setTimeout(rd,0));for(var m=function(P){f.push(function(){return u[P].apply(null,l)})},S=0;S<u.length;++S)m(S)}}function rd(){var t=wo;wo=null;for(var i=0;i<t.length;++i)t[i]()}function rf(t,i,u,l){for(var f=0;f<i.changes.length;f++){var m=i.changes[f];m=="text"?id(t,i):m=="gutter"?nf(t,i,u,l):m=="class"?cs(t,i):m=="widget"&&ad(t,i,l)}i.changes=null}function Ao(t){return t.node==t.text&&(t.node=_("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),T&&F<8&&(t.node.style.zIndex=2)),t.node}function nd(t,i){var u=i.bgClass?i.bgClass+" "+(i.line.bgClass||""):i.line.bgClass;if(u&&(u+=" CodeMirror-linebackground"),i.background)u?i.background.className=u:(i.background.parentNode.removeChild(i.background),i.background=null);else if(u){var l=Ao(i);i.background=l.insertBefore(_("div",null,u),l.firstChild),t.display.input.setUneditable(i.background)}}function ca(t,i){var u=t.display.externalMeasured;return u&&u.line==i.line?(t.display.externalMeasured=null,i.measure=u.measure,u.built):xo(t,i)}function id(t,i){var u=i.text.className,l=ca(t,i);i.text==i.node&&(i.node=l.pre),i.text.parentNode.replaceChild(l.pre,i.text),i.text=l.pre,l.bgClass!=i.bgClass||l.textClass!=i.textClass?(i.bgClass=l.bgClass,i.textClass=l.textClass,cs(t,i)):u&&(i.text.className=u)}function cs(t,i){nd(t,i),i.line.wrapClass?Ao(i).className=i.line.wrapClass:i.node!=i.text&&(i.node.className="");var u=i.textClass?i.textClass+" "+(i.line.textClass||""):i.line.textClass;i.text.className=u||""}function nf(t,i,u,l){if(i.gutter&&(i.node.removeChild(i.gutter),i.gutter=null),i.gutterBackground&&(i.node.removeChild(i.gutterBackground),i.gutterBackground=null),i.line.gutterClass){var f=Ao(i);i.gutterBackground=_("div",null,"CodeMirror-gutter-background "+i.line.gutterClass,"left: "+(t.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),t.display.input.setUneditable(i.gutterBackground),f.insertBefore(i.gutterBackground,i.text)}var m=i.line.gutterMarkers;if(t.options.lineNumbers||m){var S=Ao(i),P=i.gutter=_("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(P.setAttribute("aria-hidden","true"),t.display.input.setUneditable(P),S.insertBefore(P,i.text),i.line.gutterClass&&(P.className+=" "+i.line.gutterClass),t.options.lineNumbers&&(!m||!m["CodeMirror-linenumbers"])&&(i.lineNumber=P.appendChild(_("div",Va(t.options,u),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),m)for(var R=0;R<t.display.gutterSpecs.length;++R){var j=t.display.gutterSpecs[R].className,le=m.hasOwnProperty(j)&&m[j];le&&P.appendChild(_("div",[le],"CodeMirror-gutter-elt","left: "+l.gutterLeft[j]+"px; width: "+l.gutterWidth[j]+"px"))}}}function ad(t,i,u){i.alignable&&(i.alignable=null);for(var l=K("CodeMirror-linewidget"),f=i.node.firstChild,m=void 0;f;f=m)m=f.nextSibling,l.test(f.className)&&i.node.removeChild(f);af(t,i,u)}function od(t,i,u,l){var f=ca(t,i);return i.text=i.node=f.pre,f.bgClass&&(i.bgClass=f.bgClass),f.textClass&&(i.textClass=f.textClass),cs(t,i),nf(t,i,u,l),af(t,i,l),i.node}function af(t,i,u){if(wl(t,i.line,i,u,!0),i.rest)for(var l=0;l<i.rest.length;l++)wl(t,i.rest[l],i,u,!1)}function wl(t,i,u,l,f){if(!!i.widgets)for(var m=Ao(u),S=0,P=i.widgets;S<P.length;++S){var R=P[S],j=_("div",[R.node],"CodeMirror-linewidget"+(R.className?" "+R.className:""));R.handleMouseEvents||j.setAttribute("cm-ignore-events","true"),of(R,j,u,l),t.display.input.setUneditable(j),f&&R.above?m.insertBefore(j,u.gutter||u.text):m.appendChild(j),Lr(R,"redraw")}}function of(t,i,u,l){if(t.noHScroll){(u.alignable||(u.alignable=[])).push(i);var f=l.wrapperWidth;i.style.left=l.fixedPos+"px",t.coverGutter||(f-=l.gutterTotalWidth,i.style.paddingLeft=l.gutterTotalWidth+"px"),i.style.width=f+"px"}t.coverGutter&&(i.style.zIndex=5,i.style.position="relative",t.noHScroll||(i.style.marginLeft=-l.gutterTotalWidth+"px"))}function $a(t){if(t.height!=null)return t.height;var i=t.doc.cm;if(!i)return 0;if(!ge(document.body,t.node)){var u="position: relative;";t.coverGutter&&(u+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),t.noHScroll&&(u+="width: "+i.display.wrapper.clientWidth+"px;"),ve(i.display.measure,_("div",[t.node],null,u))}return t.height=t.node.parentNode.offsetHeight}function Wn(t,i){for(var u=Kr(i);u!=t.wrapper;u=u.parentNode)if(!u||u.nodeType==1&&u.getAttribute("cm-ignore-events")=="true"||u.parentNode==t.sizer&&u!=t.mover)return!0}function ds(t){return t.lineSpace.offsetTop}function da(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function sf(t){if(t.cachedPaddingH)return t.cachedPaddingH;var i=ve(t.measure,_("pre","x","CodeMirror-line-like")),u=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,l={left:parseInt(u.paddingLeft),right:parseInt(u.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(t.cachedPaddingH=l),l}function ni(t){return De-t.display.nativeBarWidth}function pa(t){return t.display.scroller.clientWidth-ni(t)-t.display.barWidth}function Al(t){return t.display.scroller.clientHeight-ni(t)-t.display.barHeight}function Cl(t,i,u){var l=t.options.lineWrapping,f=l&&pa(t);if(!i.measure.heights||l&&i.measure.width!=f){var m=i.measure.heights=[];if(l){i.measure.width=f;for(var S=i.text.firstChild.getClientRects(),P=0;P<S.length-1;P++){var R=S[P],j=S[P+1];Math.abs(R.bottom-j.bottom)>2&&m.push((R.bottom+j.top)/2-u.top)}}m.push(u.bottom-u.top)}}function lf(t,i,u){if(t.line==i)return{map:t.measure.map,cache:t.measure.cache};if(t.rest){for(var l=0;l<t.rest.length;l++)if(t.rest[l]==i)return{map:t.measure.maps[l],cache:t.measure.caches[l]};for(var f=0;f<t.rest.length;f++)if(Kt(t.rest[f])>u)return{map:t.measure.maps[f],cache:t.measure.caches[f],before:!0}}}function sd(t,i){i=Tn(i);var u=Kt(i),l=t.display.externalMeasured=new So(t.doc,i,u);l.lineN=u;var f=l.built=xo(t,l);return l.text=f.pre,ve(t.display.lineMeasure,f.pre),l}function uf(t,i,u,l){return ii(t,ha(t,i),u,l)}function El(t,i){if(i>=t.display.viewFrom&&i<t.display.viewTo)return t.display.view[Bi(t,i)];var u=t.display.externalMeasured;if(u&&i>=u.lineN&&i<u.lineN+u.size)return u}function ha(t,i){var u=Kt(i),l=El(t,u);l&&!l.text?l=null:l&&l.changes&&(rf(t,l,u,Fl(t)),t.curOp.forceUpdate=!0),l||(l=sd(t,i));var f=lf(l,i,u);return{line:i,view:l,rect:null,map:f.map,cache:f.cache,before:f.before,hasHeights:!1}}function ii(t,i,u,l,f){i.before&&(u=-1);var m=u+(l||""),S;return i.cache.hasOwnProperty(m)?S=i.cache[m]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(Cl(t,i.view,i.rect),i.hasHeights=!0),S=ud(t,i,u,l),S.bogus||(i.cache[m]=S)),{left:S.left,right:S.right,top:f?S.rtop:S.top,bottom:f?S.rbottom:S.bottom}}var Co={left:0,right:0,top:0,bottom:0};function ff(t,i,u){for(var l,f,m,S,P,R,j=0;j<t.length;j+=3)if(P=t[j],R=t[j+1],i<P?(f=0,m=1,S="left"):i<R?(f=i-P,m=f+1):(j==t.length-3||i==R&&t[j+3]>i)&&(m=R-P,f=m-1,i>=R&&(S="right")),f!=null){if(l=t[j+2],P==R&&u==(l.insertLeft?"left":"right")&&(S=u),u=="left"&&f==0)for(;j&&t[j-2]==t[j-3]&&t[j-1].insertLeft;)l=t[(j-=3)+2],S="left";if(u=="right"&&f==R-P)for(;j<t.length-3&&t[j+3]==t[j+4]&&!t[j+5].insertLeft;)l=t[(j+=3)+2],S="right";break}return{node:l,start:f,end:m,collapse:S,coverStart:P,coverEnd:R}}function ld(t,i){var u=Co;if(i=="left")for(var l=0;l<t.length&&(u=t[l]).left==u.right;l++);else for(var f=t.length-1;f>=0&&(u=t[f]).left==u.right;f--);return u}function ud(t,i,u,l){var f=ff(i.map,u,l),m=f.node,S=f.start,P=f.end,R=f.collapse,j;if(m.nodeType==3){for(var le=0;le<4;le++){for(;S&&mt(i.line.text.charAt(f.coverStart+S));)--S;for(;f.coverStart+P<f.coverEnd&&mt(i.line.text.charAt(f.coverStart+P));)++P;if(T&&F<9&&S==0&&P==f.coverEnd-f.coverStart?j=m.parentNode.getBoundingClientRect():j=ld(z(m,S,P).getClientRects(),l),j.left||j.right||S==0)break;P=S,S=S-1,R="right"}T&&F<11&&(j=fd(t.display.measure,j))}else{S>0&&(R=l="right");var de;t.options.lineWrapping&&(de=m.getClientRects()).length>1?j=de[l=="right"?de.length-1:0]:j=m.getBoundingClientRect()}if(T&&F<9&&!S&&(!j||!j.left&&!j.right)){var Ae=m.parentNode.getClientRects()[0];Ae?j={left:Ae.left,right:Ae.left+Ka(t.display),top:Ae.top,bottom:Ae.bottom}:j=Co}for(var me=j.top-i.rect.top,ke=j.bottom-i.rect.top,Ne=(me+ke)/2,ze=i.view.measure.heights,Ye=0;Ye<ze.length-1&&!(Ne<ze[Ye]);Ye++);var Ze=Ye?ze[Ye-1]:0,Je=ze[Ye],rt={left:(R=="right"?j.right:j.left)-i.rect.left,right:(R=="left"?j.left:j.right)-i.rect.left,top:Ze,bottom:Je};return!j.left&&!j.right&&(rt.bogus=!0),t.options.singleCursorHeightPerLine||(rt.rtop=me,rt.rbottom=ke),rt}function fd(t,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!fn(t))return i;var u=screen.logicalXDPI/screen.deviceXDPI,l=screen.logicalYDPI/screen.deviceYDPI;return{left:i.left*u,right:i.right*u,top:i.top*l,bottom:i.bottom*l}}function Ol(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var i=0;i<t.rest.length;i++)t.measure.caches[i]={}}function Tl(t){t.display.externalMeasure=null,fe(t.display.lineMeasure);for(var i=0;i<t.display.view.length;i++)Ol(t.display.view[i])}function Eo(t){Tl(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function Pl(t){return ee&&L?-(t.body.getBoundingClientRect().left-parseInt(getComputedStyle(t.body).marginLeft)):t.defaultView.pageXOffset||(t.documentElement||t.body).scrollLeft}function cf(t){return ee&&L?-(t.body.getBoundingClientRect().top-parseInt(getComputedStyle(t.body).marginTop)):t.defaultView.pageYOffset||(t.documentElement||t.body).scrollTop}function ps(t){var i=Tn(t),u=i.widgets,l=0;if(u)for(var f=0;f<u.length;++f)u[f].above&&(l+=$a(u[f]));return l}function jr(t,i,u,l,f){if(!f){var m=ps(i);u.top+=m,u.bottom+=m}if(l=="line")return u;l||(l="local");var S=wi(i);if(l=="local"?S+=ds(t.display):S-=t.display.viewOffset,l=="page"||l=="window"){var P=t.display.lineSpace.getBoundingClientRect();S+=P.top+(l=="window"?0:cf(Xe(t)));var R=P.left+(l=="window"?0:Pl(Xe(t)));u.left+=R,u.right+=R}return u.top+=S,u.bottom+=S,u}function df(t,i,u){if(u=="div")return i;var l=i.left,f=i.top;if(u=="page")l-=Pl(Xe(t)),f-=cf(Xe(t));else if(u=="local"||!u){var m=t.display.sizer.getBoundingClientRect();l+=m.left,f+=m.top}var S=t.display.lineSpace.getBoundingClientRect();return{left:l-S.left,top:f-S.top}}function hs(t,i,u,l,f){return l||(l=ft(t.doc,i.line)),jr(t,l,uf(t,l,i.ch,f),u)}function Hn(t,i,u,l,f,m){l=l||ft(t.doc,i.line),f||(f=ha(t,l));function S(ke,Ne){var ze=ii(t,f,ke,Ne?"right":"left",m);return Ne?ze.left=ze.right:ze.right=ze.left,jr(t,l,ze,u)}var P=lt(l,t.doc.direction),R=i.ch,j=i.sticky;if(R>=l.text.length?(R=l.text.length,j="before"):R<=0&&(R=0,j="after"),!P)return S(j=="before"?R-1:R,j=="before");function le(ke,Ne,ze){var Ye=P[Ne],Ze=Ye.level==1;return S(ze?ke-1:ke,Ze!=ze)}var de=gt(P,R,j),Ae=dt,me=le(R,de,j=="before");return Ae!=null&&(me.other=le(R,Ae,j!="before")),me}function pf(t,i){var u=0;i=ct(t.doc,i),t.options.lineWrapping||(u=Ka(t.display)*i.ch);var l=ft(t.doc,i.line),f=wi(l)+ds(t.display);return{left:u,right:u,top:f,bottom:f+l.height}}function Il(t,i,u,l,f){var m=N(t,i,u);return m.xRel=f,l&&(m.outside=l),m}function va(t,i,u){var l=t.doc;if(u+=t.display.viewOffset,u<0)return Il(l.first,0,null,-1,-1);var f=xi(l,u),m=l.first+l.size-1;if(f>m)return Il(l.first+l.size-1,ft(l,m).text.length,null,1,1);i<0&&(i=0);for(var S=ft(l,f);;){var P=cd(t,S,f,i,u),R=Zu(S,P.ch+(P.xRel>0||P.outside>0?1:0));if(!R)return P;var j=R.find(1);if(j.line==f)return j;S=ft(l,f=j.line)}}function hf(t,i,u,l){l-=ps(i);var f=i.text.length,m=Tt(function(S){return ii(t,u,S-1).bottom<=l},f,0);return f=Tt(function(S){return ii(t,u,S).top>l},m,f),{begin:m,end:f}}function kl(t,i,u,l){u||(u=ha(t,i));var f=jr(t,i,ii(t,u,l),"line").top;return hf(t,i,u,f)}function Oo(t,i,u,l){return t.bottom<=u?!1:t.top>u?!0:(l?t.left:t.right)>i}function cd(t,i,u,l,f){f-=wi(i);var m=ha(t,i),S=ps(i),P=0,R=i.text.length,j=!0,le=lt(i,t.doc.direction);if(le){var de=(t.options.lineWrapping?To:vs)(t,i,u,m,le,l,f);j=de.level!=1,P=j?de.from:de.to-1,R=j?de.to:de.from-1}var Ae=null,me=null,ke=Tt(function(vt){var pt=ii(t,m,vt);return pt.top+=S,pt.bottom+=S,Oo(pt,l,f,!1)?(pt.top<=f&&pt.left<=l&&(Ae=vt,me=pt),!0):!1},P,R),Ne,ze,Ye=!1;if(me){var Ze=l-me.left<me.right-l,Je=Ze==j;ke=Ae+(Je?0:1),ze=Je?"after":"before",Ne=Ze?me.left:me.right}else{!j&&(ke==R||ke==P)&&ke++,ze=ke==0?"after":ke==i.text.length?"before":ii(t,m,ke-(j?1:0)).bottom+S<=f==j?"after":"before";var rt=Hn(t,N(u,ke,ze),"line",i,m);Ne=rt.left,Ye=f<rt.top?-1:f>=rt.bottom?1:0}return ke=Mt(i.text,ke,1),Il(u,ke,ze,Ye,l-Ne)}function vs(t,i,u,l,f,m,S){var P=Tt(function(de){var Ae=f[de],me=Ae.level!=1;return Oo(Hn(t,N(u,me?Ae.to:Ae.from,me?"before":"after"),"line",i,l),m,S,!0)},0,f.length-1),R=f[P];if(P>0){var j=R.level!=1,le=Hn(t,N(u,j?R.from:R.to,j?"after":"before"),"line",i,l);Oo(le,m,S,!0)&&le.top>S&&(R=f[P-1])}return R}function To(t,i,u,l,f,m,S){var P=hf(t,i,l,S),R=P.begin,j=P.end;/\s/.test(i.text.charAt(j-1))&&j--;for(var le=null,de=null,Ae=0;Ae<f.length;Ae++){var me=f[Ae];if(!(me.from>=j||me.to<=R)){var ke=me.level!=1,Ne=ii(t,l,ke?Math.min(j,me.to)-1:Math.max(R,me.from)).right,ze=Ne<m?m-Ne+1e9:Ne-m;(!le||de>ze)&&(le=me,de=ze)}}return le||(le=f[f.length-1]),le.from<R&&(le={from:R,to:le.to,level:le.level}),le.to>j&&(le={from:le.from,to:j,level:le.level}),le}var Di;function ga(t){if(t.cachedTextHeight!=null)return t.cachedTextHeight;if(Di==null){Di=_("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)Di.appendChild(document.createTextNode("x")),Di.appendChild(_("br"));Di.appendChild(document.createTextNode("x"))}ve(t.measure,Di);var u=Di.offsetHeight/50;return u>3&&(t.cachedTextHeight=u),fe(t.measure),u||1}function Ka(t){if(t.cachedCharWidth!=null)return t.cachedCharWidth;var i=_("span","xxxxxxxxxx"),u=_("pre",[i],"CodeMirror-line-like");ve(t.measure,u);var l=i.getBoundingClientRect(),f=(l.right-l.left)/10;return f>2&&(t.cachedCharWidth=f),f||10}function Fl(t){for(var i=t.display,u={},l={},f=i.gutters.clientLeft,m=i.gutters.firstChild,S=0;m;m=m.nextSibling,++S){var P=t.display.gutterSpecs[S].className;u[P]=m.offsetLeft+m.clientLeft+f,l[P]=m.clientWidth}return{fixedPos:ma(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:u,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function ma(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function Rl(t){var i=ga(t.display),u=t.options.lineWrapping,l=u&&Math.max(5,t.display.scroller.clientWidth/Ka(t.display)-3);return function(f){if(Li(t.doc,f))return 0;var m=0;if(f.widgets)for(var S=0;S<f.widgets.length;S++)f.widgets[S].height&&(m+=f.widgets[S].height);return u?m+(Math.ceil(f.text.length/l)||1)*i:m+i}}function gs(t){var i=t.doc,u=Rl(t);i.iter(function(l){var f=u(l);f!=l.height&&En(l,f)})}function Ai(t,i,u,l){var f=t.display;if(!u&&Kr(i).getAttribute("cm-not-content")=="true")return null;var m,S,P=f.lineSpace.getBoundingClientRect();try{m=i.clientX-P.left,S=i.clientY-P.top}catch(de){return null}var R=va(t,m,S),j;if(l&&R.xRel>0&&(j=ft(t.doc,R.line).text).length==R.ch){var le=Le(j,j.length,t.options.tabSize)-j.length;R=N(R.line,Math.max(0,Math.round((m-sf(t.display).left)/Ka(t.display))-le))}return R}function Bi(t,i){if(i>=t.display.viewTo||(i-=t.display.viewFrom,i<0))return null;for(var u=t.display.view,l=0;l<u.length;l++)if(i-=u[l].size,i<0)return l}function rn(t,i,u,l){i==null&&(i=t.doc.first),u==null&&(u=t.doc.first+t.doc.size),l||(l=0);var f=t.display;if(l&&u<f.viewTo&&(f.updateLineNumbers==null||f.updateLineNumbers>i)&&(f.updateLineNumbers=i),t.curOp.viewChanged=!0,i>=f.viewTo)Si&&tn(t.doc,i)<f.viewTo&&ji(t);else if(u<=f.viewFrom)Si&&ua(t.doc,u+l)>f.viewFrom?ji(t):(f.viewFrom+=l,f.viewTo+=l);else if(i<=f.viewFrom&&u>=f.viewTo)ji(t);else if(i<=f.viewFrom){var m=ms(t,u,u+l,1);m?(f.view=f.view.slice(m.index),f.viewFrom=m.lineN,f.viewTo+=l):ji(t)}else if(u>=f.viewTo){var S=ms(t,i,i,-1);S?(f.view=f.view.slice(0,S.index),f.viewTo=S.lineN):ji(t)}else{var P=ms(t,i,i,-1),R=ms(t,u,u+l,1);P&&R?(f.view=f.view.slice(0,P.index).concat(za(t,P.lineN,R.lineN)).concat(f.view.slice(R.index)),f.viewTo+=l):ji(t)}var j=f.externalMeasured;j&&(u<j.lineN?j.lineN+=l:i<j.lineN+j.size&&(f.externalMeasured=null))}function Sn(t,i,u){t.curOp.viewChanged=!0;var l=t.display,f=t.display.externalMeasured;if(f&&i>=f.lineN&&i<f.lineN+f.size&&(l.externalMeasured=null),!(i<l.viewFrom||i>=l.viewTo)){var m=l.view[Bi(t,i)];if(m.node!=null){var S=m.changes||(m.changes=[]);Se(S,u)==-1&&S.push(u)}}}function ji(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function ms(t,i,u,l){var f=Bi(t,i),m,S=t.display.view;if(!Si||u==t.doc.first+t.doc.size)return{index:f,lineN:u};for(var P=t.display.viewFrom,R=0;R<f;R++)P+=S[R].size;if(P!=i){if(l>0){if(f==S.length-1)return null;m=P+S[f].size-i,f++}else m=P-i;i+=m,u+=m}for(;tn(t.doc,u)!=u;){if(f==(l<0?0:S.length-1))return null;u+=l*S[f-(l<0?1:0)].size,f+=l}return{index:f,lineN:u}}function vf(t,i,u){var l=t.display,f=l.view;f.length==0||i>=l.viewTo||u<=l.viewFrom?(l.view=za(t,i,u),l.viewFrom=i):(l.viewFrom>i?l.view=za(t,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(Bi(t,i))),l.viewFrom=i,l.viewTo<u?l.view=l.view.concat(za(t,l.viewTo,u)):l.viewTo>u&&(l.view=l.view.slice(0,Bi(t,u)))),l.viewTo=u}function Ml(t){for(var i=t.display.view,u=0,l=0;l<i.length;l++){var f=i[l];!f.hidden&&(!f.node||f.changes)&&++u}return u}function Po(t){t.display.input.showSelection(t.display.input.prepareSelection())}function Ll(t,i){i===void 0&&(i=!0);var u=t.doc,l={},f=l.cursors=document.createDocumentFragment(),m=l.selection=document.createDocumentFragment(),S=t.options.$customCursor;S&&(i=!0);for(var P=0;P<u.sel.ranges.length;P++)if(!(!i&&P==u.sel.primIndex)){var R=u.sel.ranges[P];if(!(R.from().line>=t.display.viewTo||R.to().line<t.display.viewFrom)){var j=R.empty();if(S){var le=S(t,R);le&&Nl(t,le,f)}else(j||t.options.showCursorWhenSelecting)&&Nl(t,R.head,f);j||gf(t,R,m)}}return l}function Nl(t,i,u){var l=Hn(t,i,"div",null,null,!t.options.singleCursorHeightPerLine),f=u.appendChild(_("div","\xA0","CodeMirror-cursor"));if(f.style.left=l.left+"px",f.style.top=l.top+"px",f.style.height=Math.max(0,l.bottom-l.top)*t.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(t.getWrapperElement().className)){var m=hs(t,i,"div",null,null),S=m.right-m.left;f.style.width=(S>0?S:t.defaultCharWidth())+"px"}if(l.other){var P=u.appendChild(_("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));P.style.display="",P.style.left=l.other.left+"px",P.style.top=l.other.top+"px",P.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function ys(t,i){return t.top-i.top||t.left-i.left}function gf(t,i,u){var l=t.display,f=t.doc,m=document.createDocumentFragment(),S=sf(t.display),P=S.left,R=Math.max(l.sizerWidth,pa(t)-l.sizer.offsetLeft)-S.right,j=f.direction=="ltr";function le(Je,rt,vt,pt){rt<0&&(rt=0),rt=Math.round(rt),pt=Math.round(pt),m.appendChild(_("div",null,"CodeMirror-selected","position: absolute; left: "+Je+`px;
16
+ `,i);f==-1&&(f=t.length);var m=t.slice(i,t.charAt(f-1)=="\r"?f-1:f),S=m.indexOf("\r");S!=-1?(u.push(m.slice(0,S)),i+=S+1):(u.push(m),i=f+1)}return u}:function(t){return t.split(/\r\n?|\n/)},ei=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(i){return!1}}:function(t){var i;try{i=t.ownerDocument.selection.createRange()}catch(u){}return!i||i.parentElement()!=t?!1:i.compareEndPoints("StartToEnd",i)!=0},na=function(){var t=_("div");return"oncopy"in t?!0:(t.setAttribute("oncopy","return;"),typeof t.oncopy=="function")}(),pn=null;function fn(t){if(pn!=null)return pn;var i=ve(t,_("span","x")),u=i.getBoundingClientRect(),l=z(i,0,1).getBoundingClientRect();return pn=Math.abs(u.left-l.left)>1}var hn={},vn={};function An(t,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),hn[t]=i}function ho(t,i){vn[t]=i}function Vn(t){if(typeof t=="string"&&vn.hasOwnProperty(t))t=vn[t];else if(t&&typeof t.name=="string"&&vn.hasOwnProperty(t.name)){var i=vn[t.name];typeof i=="string"&&(i={name:i}),t=Qe(i,t),t.name=i.name}else{if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return Vn("application/xml");if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return Vn("application/json")}return typeof t=="string"?{name:t}:t||{name:"null"}}function en(t,i){i=Vn(i);var u=hn[i.name];if(!u)return en(t,"text/plain");var l=u(t,i);if(kr.hasOwnProperty(i.name)){var f=kr[i.name];for(var m in f)!f.hasOwnProperty(m)||(l.hasOwnProperty(m)&&(l["_"+m]=l[m]),l[m]=f[m])}if(l.name=i.name,i.helperType&&(l.helperType=i.helperType),i.modeProps)for(var S in i.modeProps)l[S]=i.modeProps[S];return l}var kr={};function yi(t,i){var u=kr.hasOwnProperty(t)?kr[t]:kr[t]={};Ct(i,u)}function Cn(t,i){if(i===!0)return i;if(t.copyState)return t.copyState(i);var u={};for(var l in i){var f=i[l];f instanceof Array&&(f=f.concat([])),u[l]=f}return u}function ia(t,i){for(var u;t.innerMode&&(u=t.innerMode(i),!(!u||u.mode==t));)i=u.state,t=u.mode;return u||{mode:t,state:i}}function is(t,i,u){return t.startState?t.startState(i,u):!0}var mr=function(t,i,u){this.pos=this.start=0,this.string=t,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=u};mr.prototype.eol=function(){return this.pos>=this.string.length},mr.prototype.sol=function(){return this.pos==this.lineStart},mr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},mr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},mr.prototype.eat=function(t){var i=this.string.charAt(this.pos),u;if(typeof t=="string"?u=i==t:u=i&&(t.test?t.test(i):t(i)),u)return++this.pos,i},mr.prototype.eatWhile=function(t){for(var i=this.pos;this.eat(t););return this.pos>i},mr.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},mr.prototype.skipToEnd=function(){this.pos=this.string.length},mr.prototype.skipTo=function(t){var i=this.string.indexOf(t,this.pos);if(i>-1)return this.pos=i,!0},mr.prototype.backUp=function(t){this.pos-=t},mr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Le(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Le(this.string,this.lineStart,this.tabSize):0)},mr.prototype.indentation=function(){return Le(this.string,null,this.tabSize)-(this.lineStart?Le(this.string,this.lineStart,this.tabSize):0)},mr.prototype.match=function(t,i,u){if(typeof t=="string"){var l=function(S){return u?S.toLowerCase():S},f=this.string.substr(this.pos,t.length);if(l(f)==l(t))return i!==!1&&(this.pos+=t.length),!0}else{var m=this.string.slice(this.pos).match(t);return m&&m.index>0?null:(m&&i!==!1&&(this.pos+=m[0].length),m)}},mr.prototype.current=function(){return this.string.slice(this.start,this.pos)},mr.prototype.hideFirstChars=function(t,i){this.lineStart+=t;try{return i()}finally{this.lineStart-=t}},mr.prototype.lookAhead=function(t){var i=this.lineOracle;return i&&i.lookAhead(t)},mr.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};function ft(t,i){if(i-=t.first,i<0||i>=t.size)throw new Error("There is no line "+(i+t.first)+" in the document.");for(var u=t;!u.lines;)for(var l=0;;++l){var f=u.children[l],m=f.chunkSize();if(i<m){u=f;break}i-=m}return u.lines[i]}function bi(t,i,u){var l=[],f=i.line;return t.iter(i.line,u.line+1,function(m){var S=m.text;f==u.line&&(S=S.slice(0,u.ch)),f==i.line&&(S=S.slice(i.ch)),l.push(S),++f}),l}function aa(t,i,u){var l=[];return t.iter(i,u,function(f){l.push(f.text)}),l}function En(t,i){var u=i-t.height;if(u)for(var l=t;l;l=l.parent)l.height+=u}function Yt(t){if(t.parent==null)return null;for(var i=t.parent,u=Se(i.lines,t),l=i.parent;l;i=l,l=l.parent)for(var f=0;l.children[f]!=i;++f)u+=l.children[f].chunkSize();return u+i.first}function xi(t,i){var u=t.first;e:do{for(var l=0;l<t.children.length;++l){var f=t.children[l],m=f.height;if(i<m){t=f;continue e}i-=m,u+=f.chunkSize()}return u}while(!t.lines);for(var S=0;S<t.lines.length;++S){var P=t.lines[S],R=P.height;if(i<R)break;i-=R}return u+S}function oa(t,i){return i>=t.first&&i<t.first+t.size}function Va(t,i){return String(t.lineNumberFormatter(i+t.firstLineNumber))}function N(t,i,u){if(u===void 0&&(u=null),!(this instanceof N))return new N(t,i,u);this.line=t,this.ch=i,this.sticky=u}function se(t,i){return t.line-i.line||t.ch-i.ch}function Me(t,i){return t.sticky==i.sticky&&se(t,i)==0}function He(t){return N(t.line,t.ch)}function Ft(t,i){return se(t,i)<0?i:t}function jt(t,i){return se(t,i)<0?t:i}function tr(t,i){return Math.max(t.first,Math.min(i,t.first+t.size-1))}function ct(t,i){if(i.line<t.first)return N(t.first,0);var u=t.first+t.size-1;return i.line>u?N(u,ft(t,u).text.length):On(i,ft(t,i.line).text.length)}function On(t,i){var u=t.ch;return u==null||u>i?N(t.line,i):u<0?N(t.line,0):t}function as(t,i){for(var u=[],l=0;l<i.length;l++)u[l]=ct(t,i[l]);return u}var os=function(t,i){this.state=t,this.lookAhead=i},Un=function(t,i,u,l){this.state=i,this.doc=t,this.line=u,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Un.prototype.lookAhead=function(t){var i=this.doc.getLine(this.line+t);return i!=null&&t>this.maxLookAhead&&(this.maxLookAhead=t),i},Un.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},Un.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Un.fromSaved=function(t,i,u){return i instanceof os?new Un(t,Cn(t.mode,i.state),u,i.lookAhead):new Un(t,Cn(t.mode,i),u)},Un.prototype.save=function(t){var i=t!==!1?Cn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new os(i,this.maxLookAhead):i};function Hu(t,i,u,l){var f=[t.state.modeGen],m={};Ku(t,i.text,t.doc.mode,u,function(j,le){return f.push(j,le)},m,l);for(var S=u.state,P=function(j){u.baseTokens=f;var le=t.state.overlays[j],de=1,Ae=0;u.state=!0,Ku(t,i.text,le.mode,u,function(me,ke){for(var Ne=de;Ae<me;){var ze=f[de];ze>me&&f.splice(de,1,me,f[de+1],ze),de+=2,Ae=Math.min(me,ze)}if(!!ke)if(le.opaque)f.splice(Ne,de-Ne,me,"overlay "+ke),de=Ne+2;else for(;Ne<de;Ne+=2){var Ye=f[Ne+1];f[Ne+1]=(Ye?Ye+" ":"")+"overlay "+ke}},m),u.state=S,u.baseTokens=null,u.baseTokenPos=1},R=0;R<t.state.overlays.length;++R)P(R);return{styles:f,classes:m.bgClass||m.textClass?m:null}}function dl(t,i,u){if(!i.styles||i.styles[0]!=t.state.modeGen){var l=sa(t,Yt(i)),f=i.text.length>t.options.maxHighlightLength&&Cn(t.doc.mode,l.state),m=Hu(t,i,l);f&&(l.state=f),i.stateAfter=l.save(!f),i.styles=m.styles,m.classes?i.styleClasses=m.classes:i.styleClasses&&(i.styleClasses=null),u===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return i.styles}function sa(t,i,u){var l=t.doc,f=t.display;if(!l.mode.startState)return new Un(l,!0,i);var m=Kc(t,i,u),S=m>l.first&&ft(l,m-1).stateAfter,P=S?Un.fromSaved(l,S,m):new Un(l,is(l.mode),m);return l.iter(m,i,function(R){pl(t,R.text,P);var j=P.line;R.stateAfter=j==i-1||j%5==0||j>=f.viewFrom&&j<f.viewTo?P.save():null,P.nextLine()}),u&&(l.modeFrontier=P.line),P}function pl(t,i,u,l){var f=t.doc.mode,m=new mr(i,t.options.tabSize,u);for(m.start=m.pos=l||0,i==""&&zu(f,u.state);!m.eol();)hl(f,m,u.state),m.start=m.pos}function zu(t,i){if(t.blankLine)return t.blankLine(i);if(!!t.innerMode){var u=ia(t,i);if(u.mode.blankLine)return u.mode.blankLine(u.state)}}function hl(t,i,u,l){for(var f=0;f<10;f++){l&&(l[0]=ia(t,u).mode);var m=t.token(i,u);if(i.pos>i.start)return m}throw new Error("Mode "+t.name+" failed to advance stream.")}var Gu=function(t,i,u){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=i||null,this.state=u};function vl(t,i,u,l){var f=t.doc,m=f.mode,S;i=ct(f,i);var P=ft(f,i.line),R=sa(t,i.line,u),j=new mr(P.text,t.options.tabSize,R),le;for(l&&(le=[]);(l||j.pos<i.ch)&&!j.eol();)j.start=j.pos,S=hl(m,j,R.state),l&&le.push(new Gu(j,S,Cn(f.mode,R.state)));return l?le:new Gu(j,S,R.state)}function $u(t,i){if(t)for(;;){var u=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!u)break;t=t.slice(0,u.index)+t.slice(u.index+u[0].length);var l=u[1]?"bgClass":"textClass";i[l]==null?i[l]=u[2]:new RegExp("(?:^|\\s)"+u[2]+"(?:$|\\s)").test(i[l])||(i[l]+=" "+u[2])}return t}function Ku(t,i,u,l,f,m,S){var P=u.flattenSpans;P==null&&(P=t.options.flattenSpans);var R=0,j=null,le=new mr(i,t.options.tabSize,l),de,Ae=t.options.addModeClass&&[null];for(i==""&&$u(zu(u,l.state),m);!le.eol();){if(le.pos>t.options.maxHighlightLength?(P=!1,S&&pl(t,i,l,le.pos),le.pos=i.length,de=null):de=$u(hl(u,le,l.state,Ae),m),Ae){var me=Ae[0].name;me&&(de="m-"+(de?me+" "+de:me))}if(!P||j!=de){for(;R<le.start;)R=Math.min(le.start,R+5e3),f(R,j);j=de}le.start=le.pos}for(;R<le.pos;){var ke=Math.min(le.pos,R+5e3);f(ke,j),R=ke}}function Kc(t,i,u){for(var l,f,m=t.doc,S=u?-1:i-(t.doc.mode.innerMode?1e3:100),P=i;P>S;--P){if(P<=m.first)return m.first;var R=ft(m,P-1),j=R.stateAfter;if(j&&(!u||P+(j instanceof os?j.lookAhead:0)<=m.modeFrontier))return P;var le=Le(R.text,null,t.options.tabSize);(f==null||l>le)&&(f=P-1,l=le)}return f}function Yc(t,i){if(t.modeFrontier=Math.min(t.modeFrontier,i),!(t.highlightFrontier<i-10)){for(var u=t.first,l=i-1;l>u;l--){var f=ft(t,l).stateAfter;if(f&&(!(f instanceof os)||l+f.lookAhead<i)){u=l+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,u)}}var gl=!1,Si=!1;function Jc(){gl=!0}function Xc(){Si=!0}function vo(t,i,u){this.marker=t,this.from=i,this.to=u}function go(t,i){if(t)for(var u=0;u<t.length;++u){var l=t[u];if(l.marker==i)return l}}function Qc(t,i){for(var u,l=0;l<t.length;++l)t[l]!=i&&(u||(u=[])).push(t[l]);return u}function Zc(t,i,u){var l=u&&window.WeakSet&&(u.markedSpans||(u.markedSpans=new WeakSet));l&&t.markedSpans&&l.has(t.markedSpans)?t.markedSpans.push(i):(t.markedSpans=t.markedSpans?t.markedSpans.concat([i]):[i],l&&l.add(t.markedSpans)),i.marker.attachLine(t)}function Yu(t,i,u){var l;if(t)for(var f=0;f<t.length;++f){var m=t[f],S=m.marker,P=m.from==null||(S.inclusiveLeft?m.from<=i:m.from<i);if(P||m.from==i&&S.type=="bookmark"&&(!u||!m.marker.insertLeft)){var R=m.to==null||(S.inclusiveRight?m.to>=i:m.to>i);(l||(l=[])).push(new vo(S,m.from,R?null:m.to))}}return l}function ml(t,i,u){var l;if(t)for(var f=0;f<t.length;++f){var m=t[f],S=m.marker,P=m.to==null||(S.inclusiveRight?m.to>=i:m.to>i);if(P||m.from==i&&S.type=="bookmark"&&(!u||m.marker.insertLeft)){var R=m.from==null||(S.inclusiveLeft?m.from<=i:m.from<i);(l||(l=[])).push(new vo(S,R?null:m.from-i,m.to==null?null:m.to-i))}}return l}function ti(t,i){if(i.full)return null;var u=oa(t,i.from.line)&&ft(t,i.from.line).markedSpans,l=oa(t,i.to.line)&&ft(t,i.to.line).markedSpans;if(!u&&!l)return null;var f=i.from.ch,m=i.to.ch,S=se(i.from,i.to)==0,P=Yu(u,f,S),R=ml(l,m,S),j=i.text.length==1,le=We(i.text).length+(j?f:0);if(P)for(var de=0;de<P.length;++de){var Ae=P[de];if(Ae.to==null){var me=go(R,Ae.marker);me?j&&(Ae.to=me.to==null?null:me.to+le):Ae.to=f}}if(R)for(var ke=0;ke<R.length;++ke){var Ne=R[ke];if(Ne.to!=null&&(Ne.to+=le),Ne.from==null){var ze=go(P,Ne.marker);ze||(Ne.from=le,j&&(P||(P=[])).push(Ne))}else Ne.from+=le,j&&(P||(P=[])).push(Ne)}P&&(P=mo(P)),R&&R!=P&&(R=mo(R));var Ye=[P];if(!j){var Ze=i.text.length-2,Je;if(Ze>0&&P)for(var rt=0;rt<P.length;++rt)P[rt].to==null&&(Je||(Je=[])).push(new vo(P[rt].marker,null,null));for(var vt=0;vt<Ze;++vt)Ye.push(Je);Ye.push(R)}return Ye}function mo(t){for(var i=0;i<t.length;++i){var u=t[i];u.from!=null&&u.from==u.to&&u.marker.clearWhenEmpty!==!1&&t.splice(i--,1)}return t.length?t:null}function Ju(t,i,u){var l=null;if(t.iter(i.line,u.line+1,function(me){if(me.markedSpans)for(var ke=0;ke<me.markedSpans.length;++ke){var Ne=me.markedSpans[ke].marker;Ne.readOnly&&(!l||Se(l,Ne)==-1)&&(l||(l=[])).push(Ne)}}),!l)return null;for(var f=[{from:i,to:u}],m=0;m<l.length;++m)for(var S=l[m],P=S.find(0),R=0;R<f.length;++R){var j=f[R];if(!(se(j.to,P.from)<0||se(j.from,P.to)>0)){var le=[R,1],de=se(j.from,P.from),Ae=se(j.to,P.to);(de<0||!S.inclusiveLeft&&!de)&&le.push({from:j.from,to:P.from}),(Ae>0||!S.inclusiveRight&&!Ae)&&le.push({from:P.to,to:j.to}),f.splice.apply(f,le),R+=le.length-3}}return f}function yl(t){var i=t.markedSpans;if(!!i){for(var u=0;u<i.length;++u)i[u].marker.detachLine(t);t.markedSpans=null}}function yo(t,i){if(!!i){for(var u=0;u<i.length;++u)i[u].marker.attachLine(t);t.markedSpans=i}}function Ua(t){return t.inclusiveLeft?-1:0}function ss(t){return t.inclusiveRight?1:0}function ls(t,i){var u=t.lines.length-i.lines.length;if(u!=0)return u;var l=t.find(),f=i.find(),m=se(l.from,f.from)||Ua(t)-Ua(i);if(m)return-m;var S=se(l.to,f.to)||ss(t)-ss(i);return S||i.id-t.id}function Xu(t,i){var u=Si&&t.markedSpans,l;if(u)for(var f=void 0,m=0;m<u.length;++m)f=u[m],f.marker.collapsed&&(i?f.from:f.to)==null&&(!l||ls(l,f.marker)<0)&&(l=f.marker);return l}function Qu(t){return Xu(t,!0)}function us(t){return Xu(t,!1)}function Zu(t,i){var u=Si&&t.markedSpans,l;if(u)for(var f=0;f<u.length;++f){var m=u[f];m.marker.collapsed&&(m.from==null||m.from<i)&&(m.to==null||m.to>i)&&(!l||ls(l,m.marker)<0)&&(l=m.marker)}return l}function bl(t,i,u,l,f){var m=ft(t,i),S=Si&&m.markedSpans;if(S)for(var P=0;P<S.length;++P){var R=S[P];if(!!R.marker.collapsed){var j=R.marker.find(0),le=se(j.from,u)||Ua(R.marker)-Ua(f),de=se(j.to,l)||ss(R.marker)-ss(f);if(!(le>=0&&de<=0||le<=0&&de>=0)&&(le<=0&&(R.marker.inclusiveRight&&f.inclusiveLeft?se(j.to,u)>=0:se(j.to,u)>0)||le>=0&&(R.marker.inclusiveRight&&f.inclusiveLeft?se(j.from,l)<=0:se(j.from,l)<0)))return!0}}}function Tn(t){for(var i;i=Qu(t);)t=i.find(-1,!0).line;return t}function ri(t){for(var i;i=us(t);)t=i.find(1,!0).line;return t}function la(t){for(var i,u;i=us(t);)t=i.find(1,!0).line,(u||(u=[])).push(t);return u}function tn(t,i){var u=ft(t,i),l=Tn(u);return u==l?i:Yt(l)}function ua(t,i){if(i>t.lastLine())return i;var u=ft(t,i),l;if(!Li(t,u))return i;for(;l=us(u);)u=l.find(1,!0).line;return Yt(u)+1}function Li(t,i){var u=Si&&i.markedSpans;if(u){for(var l=void 0,f=0;f<u.length;++f)if(l=u[f],!!l.marker.collapsed){if(l.from==null)return!0;if(!l.marker.widgetNode&&l.from==0&&l.marker.inclusiveLeft&&xl(t,i,l))return!0}}}function xl(t,i,u){if(u.to==null){var l=u.marker.find(1,!0);return xl(t,l.line,go(l.line.markedSpans,u.marker))}if(u.marker.inclusiveRight&&u.to==i.text.length)return!0;for(var f=void 0,m=0;m<i.markedSpans.length;++m)if(f=i.markedSpans[m],f.marker.collapsed&&!f.marker.widgetNode&&f.from==u.to&&(f.to==null||f.to!=u.from)&&(f.marker.inclusiveLeft||u.marker.inclusiveRight)&&xl(t,i,f))return!0}function wi(t){t=Tn(t);for(var i=0,u=t.parent,l=0;l<u.lines.length;++l){var f=u.lines[l];if(f==t)break;i+=f.height}for(var m=u.parent;m;u=m,m=u.parent)for(var S=0;S<m.children.length;++S){var P=m.children[S];if(P==u)break;i+=P.height}return i}function bo(t){if(t.height==0)return 0;for(var i=t.text.length,u,l=t;u=Qu(l);){var f=u.find(0,!0);l=f.from.line,i+=f.from.ch-f.to.ch}for(l=t;u=us(l);){var m=u.find(0,!0);i-=l.text.length-m.from.ch,l=m.to.line,i+=l.text.length-m.to.ch}return i}function Sl(t){var i=t.display,u=t.doc;i.maxLine=ft(u,u.first),i.maxLineLength=bo(i.maxLine),i.maxLineChanged=!0,u.iter(function(l){var f=bo(l);f>i.maxLineLength&&(i.maxLineLength=f,i.maxLine=l)})}var fa=function(t,i,u){this.text=t,yo(this,i),this.height=u?u(this):1};fa.prototype.lineNo=function(){return Yt(this)},lr(fa);function qu(t,i,u,l){t.text=i,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),t.order!=null&&(t.order=null),yl(t),yo(t,u);var f=l?l(t):1;f!=t.height&&En(t,f)}function Wa(t){t.parent=null,yl(t)}var qc={},_u={};function yt(t,i){if(!t||/^\s*$/.test(t))return null;var u=i.addModeClass?_u:qc;return u[t]||(u[t]=t.replace(/\S+/g,"cm-$&"))}function xo(t,i){var u=X("span",null,null,U?"padding-right: .1px":null),l={pre:X("pre",[u],"CodeMirror-line"),content:u,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};i.measure={};for(var f=0;f<=(i.rest?i.rest.length:0);f++){var m=f?i.rest[f-1]:i.line,S=void 0;l.pos=0,l.addToken=Ni,mi(t.display.measure)&&(S=lt(m,t.doc.direction))&&(l.addToken=Ha(l.addToken,S)),l.map=[];var P=i!=t.display.externalMeasured&&Yt(m);Mr(m,l,dl(t,m,P)),m.styleClasses&&(m.styleClasses.bgClass&&(l.bgClass=Re(m.styleClasses.bgClass,l.bgClass||"")),m.styleClasses.textClass&&(l.textClass=Re(m.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(gi(t.display.measure))),f==0?(i.measure.map=l.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(l.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(U){var R=l.content.lastChild;(/\bcm-tab\b/.test(R.className)||R.querySelector&&R.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Ke(t,"renderLine",t,i.line,l.pre),l.pre.className&&(l.textClass=Re(l.pre.className,l.textClass||"")),l}function ef(t){var i=_("span","\u2022","cm-invalidchar");return i.title="\\u"+t.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function Ni(t,i,u,l,f,m,S){if(!!i){var P=t.splitSpaces?tf(i,t.trailingSpace):i,R=t.cm.state.specialChars,j=!1,le;if(!R.test(i))t.col+=i.length,le=document.createTextNode(P),t.map.push(t.pos,t.pos+i.length,le),T&&F<9&&(j=!0),t.pos+=i.length;else{le=document.createDocumentFragment();for(var de=0;;){R.lastIndex=de;var Ae=R.exec(i),me=Ae?Ae.index-de:i.length-de;if(me){var ke=document.createTextNode(P.slice(de,de+me));T&&F<9?le.appendChild(_("span",[ke])):le.appendChild(ke),t.map.push(t.pos,t.pos+me,ke),t.col+=me,t.pos+=me}if(!Ae)break;de+=me+1;var Ne=void 0;if(Ae[0]==" "){var ze=t.cm.options.tabSize,Ye=ze-t.col%ze;Ne=le.appendChild(_("span",Kt(Ye),"cm-tab")),Ne.setAttribute("role","presentation"),Ne.setAttribute("cm-text"," "),t.col+=Ye}else Ae[0]=="\r"||Ae[0]==`
17
+ `?(Ne=le.appendChild(_("span",Ae[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ne.setAttribute("cm-text",Ae[0]),t.col+=1):(Ne=t.cm.options.specialCharPlaceholder(Ae[0]),Ne.setAttribute("cm-text",Ae[0]),T&&F<9?le.appendChild(_("span",[Ne])):le.appendChild(Ne),t.col+=1);t.map.push(t.pos,t.pos+1,Ne),t.pos++}}if(t.trailingSpace=P.charCodeAt(i.length-1)==32,u||l||f||j||m||S){var Ze=u||"";l&&(Ze+=l),f&&(Ze+=f);var Je=_("span",[le],Ze,m);if(S)for(var rt in S)S.hasOwnProperty(rt)&&rt!="style"&&rt!="class"&&Je.setAttribute(rt,S[rt]);return t.content.appendChild(Je)}t.content.appendChild(le)}}function tf(t,i){if(t.length>1&&!/ /.test(t))return t;for(var u=i,l="",f=0;f<t.length;f++){var m=t.charAt(f);m==" "&&u&&(f==t.length-1||t.charCodeAt(f+1)==32)&&(m="\xA0"),l+=m,u=m==" "}return l}function Ha(t,i){return function(u,l,f,m,S,P,R){f=f?f+" cm-force-border":"cm-force-border";for(var j=u.pos,le=j+l.length;;){for(var de=void 0,Ae=0;Ae<i.length&&(de=i[Ae],!(de.to>j&&de.from<=j));Ae++);if(de.to>=le)return t(u,l,f,m,S,P,R);t(u,l.slice(0,de.to-j),f,m,null,P,R),m=null,l=l.slice(de.to-j),j=de.to}}}function fs(t,i,u,l){var f=!l&&u.widgetNode;f&&t.map.push(t.pos,t.pos+i,f),!l&&t.cm.display.input.needsContentAttribute&&(f||(f=t.content.appendChild(document.createElement("span"))),f.setAttribute("cm-marker",u.id)),f&&(t.cm.display.input.setUneditable(f),t.content.appendChild(f)),t.pos+=i,t.trailingSpace=!1}function Mr(t,i,u){var l=t.markedSpans,f=t.text,m=0;if(!l){for(var S=1;S<u.length;S+=2)i.addToken(i,f.slice(m,m=u[S]),yt(u[S+1],i.cm.options));return}for(var P=f.length,R=0,j=1,le="",de,Ae,me=0,ke,Ne,ze,Ye,Ze;;){if(me==R){ke=Ne=ze=Ae="",Ze=null,Ye=null,me=1/0;for(var Je=[],rt=void 0,vt=0;vt<l.length;++vt){var pt=l[vt],Dt=pt.marker;if(Dt.type=="bookmark"&&pt.from==R&&Dt.widgetNode)Je.push(Dt);else if(pt.from<=R&&(pt.to==null||pt.to>R||Dt.collapsed&&pt.to==R&&pt.from==R)){if(pt.to!=null&&pt.to!=R&&me>pt.to&&(me=pt.to,Ne=""),Dt.className&&(ke+=" "+Dt.className),Dt.css&&(Ae=(Ae?Ae+";":"")+Dt.css),Dt.startStyle&&pt.from==R&&(ze+=" "+Dt.startStyle),Dt.endStyle&&pt.to==me&&(rt||(rt=[])).push(Dt.endStyle,pt.to),Dt.title&&((Ze||(Ze={})).title=Dt.title),Dt.attributes)for(var ur in Dt.attributes)(Ze||(Ze={}))[ur]=Dt.attributes[ur];Dt.collapsed&&(!Ye||ls(Ye.marker,Dt)<0)&&(Ye=pt)}else pt.from>R&&me>pt.from&&(me=pt.from)}if(rt)for(var Ur=0;Ur<rt.length;Ur+=2)rt[Ur+1]==me&&(Ne+=" "+rt[Ur]);if(!Ye||Ye.from==R)for(var wr=0;wr<Je.length;++wr)fs(i,0,Je[wr]);if(Ye&&(Ye.from||0)==R){if(fs(i,(Ye.to==null?P+1:Ye.to)-R,Ye.marker,Ye.from==null),Ye.to==null)return;Ye.to==R&&(Ye=!1)}}if(R>=P)break;for(var Gt=Math.min(P,me);;){if(le){var yn=R+le.length;if(!Ye){var Fr=yn>Gt?le.slice(0,Gt-R):le;i.addToken(i,Fr,de?de+ke:ke,ze,R+Fr.length==me?Ne:"",Ae,Ze)}if(yn>=Gt){le=le.slice(Gt-R),R=Gt;break}R=yn,ze=""}le=f.slice(m,m=u[j++]),de=yt(u[j++],i.cm.options)}}}function So(t,i,u){this.line=i,this.rest=la(i),this.size=this.rest?Yt(We(this.rest))-u+1:1,this.node=this.text=null,this.hidden=Li(t,i)}function za(t,i,u){for(var l=[],f,m=i;m<u;m=f){var S=new So(t.doc,ft(t.doc,m),m);f=m+S.size,l.push(S)}return l}var Ga=null;function _c(t){Ga?Ga.ops.push(t):t.ownsGroup=Ga={ops:[t],delayedCallbacks:[]}}function ed(t){var i=t.delayedCallbacks,u=0;do{for(;u<i.length;u++)i[u].call(null);for(var l=0;l<t.ops.length;l++){var f=t.ops[l];if(f.cursorActivityHandlers)for(;f.cursorActivityCalled<f.cursorActivityHandlers.length;)f.cursorActivityHandlers[f.cursorActivityCalled++].call(null,f.cm)}}while(u<i.length)}function td(t,i){var u=t.ownsGroup;if(!!u)try{ed(u)}finally{Ga=null,i(u)}}var wo=null;function Lr(t,i){var u=xe(t,i);if(!!u.length){var l=Array.prototype.slice.call(arguments,2),f;Ga?f=Ga.delayedCallbacks:wo?f=wo:(f=wo=[],setTimeout(rd,0));for(var m=function(P){f.push(function(){return u[P].apply(null,l)})},S=0;S<u.length;++S)m(S)}}function rd(){var t=wo;wo=null;for(var i=0;i<t.length;++i)t[i]()}function rf(t,i,u,l){for(var f=0;f<i.changes.length;f++){var m=i.changes[f];m=="text"?id(t,i):m=="gutter"?nf(t,i,u,l):m=="class"?cs(t,i):m=="widget"&&ad(t,i,l)}i.changes=null}function Ao(t){return t.node==t.text&&(t.node=_("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),T&&F<8&&(t.node.style.zIndex=2)),t.node}function nd(t,i){var u=i.bgClass?i.bgClass+" "+(i.line.bgClass||""):i.line.bgClass;if(u&&(u+=" CodeMirror-linebackground"),i.background)u?i.background.className=u:(i.background.parentNode.removeChild(i.background),i.background=null);else if(u){var l=Ao(i);i.background=l.insertBefore(_("div",null,u),l.firstChild),t.display.input.setUneditable(i.background)}}function ca(t,i){var u=t.display.externalMeasured;return u&&u.line==i.line?(t.display.externalMeasured=null,i.measure=u.measure,u.built):xo(t,i)}function id(t,i){var u=i.text.className,l=ca(t,i);i.text==i.node&&(i.node=l.pre),i.text.parentNode.replaceChild(l.pre,i.text),i.text=l.pre,l.bgClass!=i.bgClass||l.textClass!=i.textClass?(i.bgClass=l.bgClass,i.textClass=l.textClass,cs(t,i)):u&&(i.text.className=u)}function cs(t,i){nd(t,i),i.line.wrapClass?Ao(i).className=i.line.wrapClass:i.node!=i.text&&(i.node.className="");var u=i.textClass?i.textClass+" "+(i.line.textClass||""):i.line.textClass;i.text.className=u||""}function nf(t,i,u,l){if(i.gutter&&(i.node.removeChild(i.gutter),i.gutter=null),i.gutterBackground&&(i.node.removeChild(i.gutterBackground),i.gutterBackground=null),i.line.gutterClass){var f=Ao(i);i.gutterBackground=_("div",null,"CodeMirror-gutter-background "+i.line.gutterClass,"left: "+(t.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),t.display.input.setUneditable(i.gutterBackground),f.insertBefore(i.gutterBackground,i.text)}var m=i.line.gutterMarkers;if(t.options.lineNumbers||m){var S=Ao(i),P=i.gutter=_("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(P.setAttribute("aria-hidden","true"),t.display.input.setUneditable(P),S.insertBefore(P,i.text),i.line.gutterClass&&(P.className+=" "+i.line.gutterClass),t.options.lineNumbers&&(!m||!m["CodeMirror-linenumbers"])&&(i.lineNumber=P.appendChild(_("div",Va(t.options,u),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),m)for(var R=0;R<t.display.gutterSpecs.length;++R){var j=t.display.gutterSpecs[R].className,le=m.hasOwnProperty(j)&&m[j];le&&P.appendChild(_("div",[le],"CodeMirror-gutter-elt","left: "+l.gutterLeft[j]+"px; width: "+l.gutterWidth[j]+"px"))}}}function ad(t,i,u){i.alignable&&(i.alignable=null);for(var l=K("CodeMirror-linewidget"),f=i.node.firstChild,m=void 0;f;f=m)m=f.nextSibling,l.test(f.className)&&i.node.removeChild(f);af(t,i,u)}function od(t,i,u,l){var f=ca(t,i);return i.text=i.node=f.pre,f.bgClass&&(i.bgClass=f.bgClass),f.textClass&&(i.textClass=f.textClass),cs(t,i),nf(t,i,u,l),af(t,i,l),i.node}function af(t,i,u){if(wl(t,i.line,i,u,!0),i.rest)for(var l=0;l<i.rest.length;l++)wl(t,i.rest[l],i,u,!1)}function wl(t,i,u,l,f){if(!!i.widgets)for(var m=Ao(u),S=0,P=i.widgets;S<P.length;++S){var R=P[S],j=_("div",[R.node],"CodeMirror-linewidget"+(R.className?" "+R.className:""));R.handleMouseEvents||j.setAttribute("cm-ignore-events","true"),of(R,j,u,l),t.display.input.setUneditable(j),f&&R.above?m.insertBefore(j,u.gutter||u.text):m.appendChild(j),Lr(R,"redraw")}}function of(t,i,u,l){if(t.noHScroll){(u.alignable||(u.alignable=[])).push(i);var f=l.wrapperWidth;i.style.left=l.fixedPos+"px",t.coverGutter||(f-=l.gutterTotalWidth,i.style.paddingLeft=l.gutterTotalWidth+"px"),i.style.width=f+"px"}t.coverGutter&&(i.style.zIndex=5,i.style.position="relative",t.noHScroll||(i.style.marginLeft=-l.gutterTotalWidth+"px"))}function $a(t){if(t.height!=null)return t.height;var i=t.doc.cm;if(!i)return 0;if(!ge(document.body,t.node)){var u="position: relative;";t.coverGutter&&(u+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),t.noHScroll&&(u+="width: "+i.display.wrapper.clientWidth+"px;"),ve(i.display.measure,_("div",[t.node],null,u))}return t.height=t.node.parentNode.offsetHeight}function Wn(t,i){for(var u=Kr(i);u!=t.wrapper;u=u.parentNode)if(!u||u.nodeType==1&&u.getAttribute("cm-ignore-events")=="true"||u.parentNode==t.sizer&&u!=t.mover)return!0}function ds(t){return t.lineSpace.offsetTop}function da(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function sf(t){if(t.cachedPaddingH)return t.cachedPaddingH;var i=ve(t.measure,_("pre","x","CodeMirror-line-like")),u=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,l={left:parseInt(u.paddingLeft),right:parseInt(u.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(t.cachedPaddingH=l),l}function ni(t){return De-t.display.nativeBarWidth}function pa(t){return t.display.scroller.clientWidth-ni(t)-t.display.barWidth}function Al(t){return t.display.scroller.clientHeight-ni(t)-t.display.barHeight}function Cl(t,i,u){var l=t.options.lineWrapping,f=l&&pa(t);if(!i.measure.heights||l&&i.measure.width!=f){var m=i.measure.heights=[];if(l){i.measure.width=f;for(var S=i.text.firstChild.getClientRects(),P=0;P<S.length-1;P++){var R=S[P],j=S[P+1];Math.abs(R.bottom-j.bottom)>2&&m.push((R.bottom+j.top)/2-u.top)}}m.push(u.bottom-u.top)}}function lf(t,i,u){if(t.line==i)return{map:t.measure.map,cache:t.measure.cache};if(t.rest){for(var l=0;l<t.rest.length;l++)if(t.rest[l]==i)return{map:t.measure.maps[l],cache:t.measure.caches[l]};for(var f=0;f<t.rest.length;f++)if(Yt(t.rest[f])>u)return{map:t.measure.maps[f],cache:t.measure.caches[f],before:!0}}}function sd(t,i){i=Tn(i);var u=Yt(i),l=t.display.externalMeasured=new So(t.doc,i,u);l.lineN=u;var f=l.built=xo(t,l);return l.text=f.pre,ve(t.display.lineMeasure,f.pre),l}function uf(t,i,u,l){return ii(t,ha(t,i),u,l)}function El(t,i){if(i>=t.display.viewFrom&&i<t.display.viewTo)return t.display.view[Bi(t,i)];var u=t.display.externalMeasured;if(u&&i>=u.lineN&&i<u.lineN+u.size)return u}function ha(t,i){var u=Yt(i),l=El(t,u);l&&!l.text?l=null:l&&l.changes&&(rf(t,l,u,Fl(t)),t.curOp.forceUpdate=!0),l||(l=sd(t,i));var f=lf(l,i,u);return{line:i,view:l,rect:null,map:f.map,cache:f.cache,before:f.before,hasHeights:!1}}function ii(t,i,u,l,f){i.before&&(u=-1);var m=u+(l||""),S;return i.cache.hasOwnProperty(m)?S=i.cache[m]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(Cl(t,i.view,i.rect),i.hasHeights=!0),S=ud(t,i,u,l),S.bogus||(i.cache[m]=S)),{left:S.left,right:S.right,top:f?S.rtop:S.top,bottom:f?S.rbottom:S.bottom}}var Co={left:0,right:0,top:0,bottom:0};function ff(t,i,u){for(var l,f,m,S,P,R,j=0;j<t.length;j+=3)if(P=t[j],R=t[j+1],i<P?(f=0,m=1,S="left"):i<R?(f=i-P,m=f+1):(j==t.length-3||i==R&&t[j+3]>i)&&(m=R-P,f=m-1,i>=R&&(S="right")),f!=null){if(l=t[j+2],P==R&&u==(l.insertLeft?"left":"right")&&(S=u),u=="left"&&f==0)for(;j&&t[j-2]==t[j-3]&&t[j-1].insertLeft;)l=t[(j-=3)+2],S="left";if(u=="right"&&f==R-P)for(;j<t.length-3&&t[j+3]==t[j+4]&&!t[j+5].insertLeft;)l=t[(j+=3)+2],S="right";break}return{node:l,start:f,end:m,collapse:S,coverStart:P,coverEnd:R}}function ld(t,i){var u=Co;if(i=="left")for(var l=0;l<t.length&&(u=t[l]).left==u.right;l++);else for(var f=t.length-1;f>=0&&(u=t[f]).left==u.right;f--);return u}function ud(t,i,u,l){var f=ff(i.map,u,l),m=f.node,S=f.start,P=f.end,R=f.collapse,j;if(m.nodeType==3){for(var le=0;le<4;le++){for(;S&&mt(i.line.text.charAt(f.coverStart+S));)--S;for(;f.coverStart+P<f.coverEnd&&mt(i.line.text.charAt(f.coverStart+P));)++P;if(T&&F<9&&S==0&&P==f.coverEnd-f.coverStart?j=m.parentNode.getBoundingClientRect():j=ld(z(m,S,P).getClientRects(),l),j.left||j.right||S==0)break;P=S,S=S-1,R="right"}T&&F<11&&(j=fd(t.display.measure,j))}else{S>0&&(R=l="right");var de;t.options.lineWrapping&&(de=m.getClientRects()).length>1?j=de[l=="right"?de.length-1:0]:j=m.getBoundingClientRect()}if(T&&F<9&&!S&&(!j||!j.left&&!j.right)){var Ae=m.parentNode.getClientRects()[0];Ae?j={left:Ae.left,right:Ae.left+Ka(t.display),top:Ae.top,bottom:Ae.bottom}:j=Co}for(var me=j.top-i.rect.top,ke=j.bottom-i.rect.top,Ne=(me+ke)/2,ze=i.view.measure.heights,Ye=0;Ye<ze.length-1&&!(Ne<ze[Ye]);Ye++);var Ze=Ye?ze[Ye-1]:0,Je=ze[Ye],rt={left:(R=="right"?j.right:j.left)-i.rect.left,right:(R=="left"?j.left:j.right)-i.rect.left,top:Ze,bottom:Je};return!j.left&&!j.right&&(rt.bogus=!0),t.options.singleCursorHeightPerLine||(rt.rtop=me,rt.rbottom=ke),rt}function fd(t,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!fn(t))return i;var u=screen.logicalXDPI/screen.deviceXDPI,l=screen.logicalYDPI/screen.deviceYDPI;return{left:i.left*u,right:i.right*u,top:i.top*l,bottom:i.bottom*l}}function Ol(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var i=0;i<t.rest.length;i++)t.measure.caches[i]={}}function Tl(t){t.display.externalMeasure=null,fe(t.display.lineMeasure);for(var i=0;i<t.display.view.length;i++)Ol(t.display.view[i])}function Eo(t){Tl(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function Pl(t){return ee&&L?-(t.body.getBoundingClientRect().left-parseInt(getComputedStyle(t.body).marginLeft)):t.defaultView.pageXOffset||(t.documentElement||t.body).scrollLeft}function cf(t){return ee&&L?-(t.body.getBoundingClientRect().top-parseInt(getComputedStyle(t.body).marginTop)):t.defaultView.pageYOffset||(t.documentElement||t.body).scrollTop}function ps(t){var i=Tn(t),u=i.widgets,l=0;if(u)for(var f=0;f<u.length;++f)u[f].above&&(l+=$a(u[f]));return l}function jr(t,i,u,l,f){if(!f){var m=ps(i);u.top+=m,u.bottom+=m}if(l=="line")return u;l||(l="local");var S=wi(i);if(l=="local"?S+=ds(t.display):S-=t.display.viewOffset,l=="page"||l=="window"){var P=t.display.lineSpace.getBoundingClientRect();S+=P.top+(l=="window"?0:cf(Xe(t)));var R=P.left+(l=="window"?0:Pl(Xe(t)));u.left+=R,u.right+=R}return u.top+=S,u.bottom+=S,u}function df(t,i,u){if(u=="div")return i;var l=i.left,f=i.top;if(u=="page")l-=Pl(Xe(t)),f-=cf(Xe(t));else if(u=="local"||!u){var m=t.display.sizer.getBoundingClientRect();l+=m.left,f+=m.top}var S=t.display.lineSpace.getBoundingClientRect();return{left:l-S.left,top:f-S.top}}function hs(t,i,u,l,f){return l||(l=ft(t.doc,i.line)),jr(t,l,uf(t,l,i.ch,f),u)}function Hn(t,i,u,l,f,m){l=l||ft(t.doc,i.line),f||(f=ha(t,l));function S(ke,Ne){var ze=ii(t,f,ke,Ne?"right":"left",m);return Ne?ze.left=ze.right:ze.right=ze.left,jr(t,l,ze,u)}var P=lt(l,t.doc.direction),R=i.ch,j=i.sticky;if(R>=l.text.length?(R=l.text.length,j="before"):R<=0&&(R=0,j="after"),!P)return S(j=="before"?R-1:R,j=="before");function le(ke,Ne,ze){var Ye=P[Ne],Ze=Ye.level==1;return S(ze?ke-1:ke,Ze!=ze)}var de=gt(P,R,j),Ae=dt,me=le(R,de,j=="before");return Ae!=null&&(me.other=le(R,Ae,j!="before")),me}function pf(t,i){var u=0;i=ct(t.doc,i),t.options.lineWrapping||(u=Ka(t.display)*i.ch);var l=ft(t.doc,i.line),f=wi(l)+ds(t.display);return{left:u,right:u,top:f,bottom:f+l.height}}function Il(t,i,u,l,f){var m=N(t,i,u);return m.xRel=f,l&&(m.outside=l),m}function va(t,i,u){var l=t.doc;if(u+=t.display.viewOffset,u<0)return Il(l.first,0,null,-1,-1);var f=xi(l,u),m=l.first+l.size-1;if(f>m)return Il(l.first+l.size-1,ft(l,m).text.length,null,1,1);i<0&&(i=0);for(var S=ft(l,f);;){var P=cd(t,S,f,i,u),R=Zu(S,P.ch+(P.xRel>0||P.outside>0?1:0));if(!R)return P;var j=R.find(1);if(j.line==f)return j;S=ft(l,f=j.line)}}function hf(t,i,u,l){l-=ps(i);var f=i.text.length,m=Tt(function(S){return ii(t,u,S-1).bottom<=l},f,0);return f=Tt(function(S){return ii(t,u,S).top>l},m,f),{begin:m,end:f}}function kl(t,i,u,l){u||(u=ha(t,i));var f=jr(t,i,ii(t,u,l),"line").top;return hf(t,i,u,f)}function Oo(t,i,u,l){return t.bottom<=u?!1:t.top>u?!0:(l?t.left:t.right)>i}function cd(t,i,u,l,f){f-=wi(i);var m=ha(t,i),S=ps(i),P=0,R=i.text.length,j=!0,le=lt(i,t.doc.direction);if(le){var de=(t.options.lineWrapping?To:vs)(t,i,u,m,le,l,f);j=de.level!=1,P=j?de.from:de.to-1,R=j?de.to:de.from-1}var Ae=null,me=null,ke=Tt(function(vt){var pt=ii(t,m,vt);return pt.top+=S,pt.bottom+=S,Oo(pt,l,f,!1)?(pt.top<=f&&pt.left<=l&&(Ae=vt,me=pt),!0):!1},P,R),Ne,ze,Ye=!1;if(me){var Ze=l-me.left<me.right-l,Je=Ze==j;ke=Ae+(Je?0:1),ze=Je?"after":"before",Ne=Ze?me.left:me.right}else{!j&&(ke==R||ke==P)&&ke++,ze=ke==0?"after":ke==i.text.length?"before":ii(t,m,ke-(j?1:0)).bottom+S<=f==j?"after":"before";var rt=Hn(t,N(u,ke,ze),"line",i,m);Ne=rt.left,Ye=f<rt.top?-1:f>=rt.bottom?1:0}return ke=Mt(i.text,ke,1),Il(u,ke,ze,Ye,l-Ne)}function vs(t,i,u,l,f,m,S){var P=Tt(function(de){var Ae=f[de],me=Ae.level!=1;return Oo(Hn(t,N(u,me?Ae.to:Ae.from,me?"before":"after"),"line",i,l),m,S,!0)},0,f.length-1),R=f[P];if(P>0){var j=R.level!=1,le=Hn(t,N(u,j?R.from:R.to,j?"after":"before"),"line",i,l);Oo(le,m,S,!0)&&le.top>S&&(R=f[P-1])}return R}function To(t,i,u,l,f,m,S){var P=hf(t,i,l,S),R=P.begin,j=P.end;/\s/.test(i.text.charAt(j-1))&&j--;for(var le=null,de=null,Ae=0;Ae<f.length;Ae++){var me=f[Ae];if(!(me.from>=j||me.to<=R)){var ke=me.level!=1,Ne=ii(t,l,ke?Math.min(j,me.to)-1:Math.max(R,me.from)).right,ze=Ne<m?m-Ne+1e9:Ne-m;(!le||de>ze)&&(le=me,de=ze)}}return le||(le=f[f.length-1]),le.from<R&&(le={from:R,to:le.to,level:le.level}),le.to>j&&(le={from:le.from,to:j,level:le.level}),le}var Di;function ga(t){if(t.cachedTextHeight!=null)return t.cachedTextHeight;if(Di==null){Di=_("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)Di.appendChild(document.createTextNode("x")),Di.appendChild(_("br"));Di.appendChild(document.createTextNode("x"))}ve(t.measure,Di);var u=Di.offsetHeight/50;return u>3&&(t.cachedTextHeight=u),fe(t.measure),u||1}function Ka(t){if(t.cachedCharWidth!=null)return t.cachedCharWidth;var i=_("span","xxxxxxxxxx"),u=_("pre",[i],"CodeMirror-line-like");ve(t.measure,u);var l=i.getBoundingClientRect(),f=(l.right-l.left)/10;return f>2&&(t.cachedCharWidth=f),f||10}function Fl(t){for(var i=t.display,u={},l={},f=i.gutters.clientLeft,m=i.gutters.firstChild,S=0;m;m=m.nextSibling,++S){var P=t.display.gutterSpecs[S].className;u[P]=m.offsetLeft+m.clientLeft+f,l[P]=m.clientWidth}return{fixedPos:ma(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:u,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function ma(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function Rl(t){var i=ga(t.display),u=t.options.lineWrapping,l=u&&Math.max(5,t.display.scroller.clientWidth/Ka(t.display)-3);return function(f){if(Li(t.doc,f))return 0;var m=0;if(f.widgets)for(var S=0;S<f.widgets.length;S++)f.widgets[S].height&&(m+=f.widgets[S].height);return u?m+(Math.ceil(f.text.length/l)||1)*i:m+i}}function gs(t){var i=t.doc,u=Rl(t);i.iter(function(l){var f=u(l);f!=l.height&&En(l,f)})}function Ai(t,i,u,l){var f=t.display;if(!u&&Kr(i).getAttribute("cm-not-content")=="true")return null;var m,S,P=f.lineSpace.getBoundingClientRect();try{m=i.clientX-P.left,S=i.clientY-P.top}catch(de){return null}var R=va(t,m,S),j;if(l&&R.xRel>0&&(j=ft(t.doc,R.line).text).length==R.ch){var le=Le(j,j.length,t.options.tabSize)-j.length;R=N(R.line,Math.max(0,Math.round((m-sf(t.display).left)/Ka(t.display))-le))}return R}function Bi(t,i){if(i>=t.display.viewTo||(i-=t.display.viewFrom,i<0))return null;for(var u=t.display.view,l=0;l<u.length;l++)if(i-=u[l].size,i<0)return l}function rn(t,i,u,l){i==null&&(i=t.doc.first),u==null&&(u=t.doc.first+t.doc.size),l||(l=0);var f=t.display;if(l&&u<f.viewTo&&(f.updateLineNumbers==null||f.updateLineNumbers>i)&&(f.updateLineNumbers=i),t.curOp.viewChanged=!0,i>=f.viewTo)Si&&tn(t.doc,i)<f.viewTo&&ji(t);else if(u<=f.viewFrom)Si&&ua(t.doc,u+l)>f.viewFrom?ji(t):(f.viewFrom+=l,f.viewTo+=l);else if(i<=f.viewFrom&&u>=f.viewTo)ji(t);else if(i<=f.viewFrom){var m=ms(t,u,u+l,1);m?(f.view=f.view.slice(m.index),f.viewFrom=m.lineN,f.viewTo+=l):ji(t)}else if(u>=f.viewTo){var S=ms(t,i,i,-1);S?(f.view=f.view.slice(0,S.index),f.viewTo=S.lineN):ji(t)}else{var P=ms(t,i,i,-1),R=ms(t,u,u+l,1);P&&R?(f.view=f.view.slice(0,P.index).concat(za(t,P.lineN,R.lineN)).concat(f.view.slice(R.index)),f.viewTo+=l):ji(t)}var j=f.externalMeasured;j&&(u<j.lineN?j.lineN+=l:i<j.lineN+j.size&&(f.externalMeasured=null))}function Sn(t,i,u){t.curOp.viewChanged=!0;var l=t.display,f=t.display.externalMeasured;if(f&&i>=f.lineN&&i<f.lineN+f.size&&(l.externalMeasured=null),!(i<l.viewFrom||i>=l.viewTo)){var m=l.view[Bi(t,i)];if(m.node!=null){var S=m.changes||(m.changes=[]);Se(S,u)==-1&&S.push(u)}}}function ji(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function ms(t,i,u,l){var f=Bi(t,i),m,S=t.display.view;if(!Si||u==t.doc.first+t.doc.size)return{index:f,lineN:u};for(var P=t.display.viewFrom,R=0;R<f;R++)P+=S[R].size;if(P!=i){if(l>0){if(f==S.length-1)return null;m=P+S[f].size-i,f++}else m=P-i;i+=m,u+=m}for(;tn(t.doc,u)!=u;){if(f==(l<0?0:S.length-1))return null;u+=l*S[f-(l<0?1:0)].size,f+=l}return{index:f,lineN:u}}function vf(t,i,u){var l=t.display,f=l.view;f.length==0||i>=l.viewTo||u<=l.viewFrom?(l.view=za(t,i,u),l.viewFrom=i):(l.viewFrom>i?l.view=za(t,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(Bi(t,i))),l.viewFrom=i,l.viewTo<u?l.view=l.view.concat(za(t,l.viewTo,u)):l.viewTo>u&&(l.view=l.view.slice(0,Bi(t,u)))),l.viewTo=u}function Ml(t){for(var i=t.display.view,u=0,l=0;l<i.length;l++){var f=i[l];!f.hidden&&(!f.node||f.changes)&&++u}return u}function Po(t){t.display.input.showSelection(t.display.input.prepareSelection())}function Ll(t,i){i===void 0&&(i=!0);var u=t.doc,l={},f=l.cursors=document.createDocumentFragment(),m=l.selection=document.createDocumentFragment(),S=t.options.$customCursor;S&&(i=!0);for(var P=0;P<u.sel.ranges.length;P++)if(!(!i&&P==u.sel.primIndex)){var R=u.sel.ranges[P];if(!(R.from().line>=t.display.viewTo||R.to().line<t.display.viewFrom)){var j=R.empty();if(S){var le=S(t,R);le&&Nl(t,le,f)}else(j||t.options.showCursorWhenSelecting)&&Nl(t,R.head,f);j||gf(t,R,m)}}return l}function Nl(t,i,u){var l=Hn(t,i,"div",null,null,!t.options.singleCursorHeightPerLine),f=u.appendChild(_("div","\xA0","CodeMirror-cursor"));if(f.style.left=l.left+"px",f.style.top=l.top+"px",f.style.height=Math.max(0,l.bottom-l.top)*t.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(t.getWrapperElement().className)){var m=hs(t,i,"div",null,null),S=m.right-m.left;f.style.width=(S>0?S:t.defaultCharWidth())+"px"}if(l.other){var P=u.appendChild(_("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));P.style.display="",P.style.left=l.other.left+"px",P.style.top=l.other.top+"px",P.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function ys(t,i){return t.top-i.top||t.left-i.left}function gf(t,i,u){var l=t.display,f=t.doc,m=document.createDocumentFragment(),S=sf(t.display),P=S.left,R=Math.max(l.sizerWidth,pa(t)-l.sizer.offsetLeft)-S.right,j=f.direction=="ltr";function le(Je,rt,vt,pt){rt<0&&(rt=0),rt=Math.round(rt),pt=Math.round(pt),m.appendChild(_("div",null,"CodeMirror-selected","position: absolute; left: "+Je+`px;
18
18
  top: `+rt+"px; width: "+(vt==null?R-Je:vt)+`px;
19
19
  height: `+(pt-rt)+"px"))}function de(Je,rt,vt){var pt=ft(f,Je),Dt=pt.text.length,ur,Ur;function wr(Fr,M){return hs(t,N(Je,Fr),"div",pt,M)}function Gt(Fr,M,Bt){var fr=kl(t,pt,null,Fr),at=M=="ltr"==(Bt=="after")?"left":"right",yr=Bt=="after"?fr.begin:fr.end-(/\s/.test(pt.text.charAt(fr.end-1))?2:1);return wr(yr,at)[at]}var yn=lt(pt,f.direction);return Rt(yn,rt||0,vt==null?Dt:vt,function(Fr,M,Bt,fr){var at=Bt=="ltr",yr=wr(Fr,at?"left":"right"),Ar=wr(M-1,at?"right":"left"),Fa=rt==null&&Fr==0,Ti=vt==null&&M==Dt,Jr=fr==0,Jn=!yn||fr==yn.length-1;if(Ar.top-yr.top<=3){var Nr=(j?Fa:Ti)&&Jr,ao=(j?Ti:Fa)&&Jn,Pi=Nr?P:(at?yr:Ar).left,Ji=ao?R:(at?Ar:yr).right;le(Pi,yr.top,Ji-Pi,yr.bottom)}else{var Xi,Xr,oo,Zs;at?(Xi=j&&Fa&&Jr?P:yr.left,Xr=j?R:Gt(Fr,Bt,"before"),oo=j?P:Gt(M,Bt,"after"),Zs=j&&Ti&&Jn?R:Ar.right):(Xi=j?Gt(Fr,Bt,"before"):P,Xr=!j&&Fa&&Jr?R:yr.right,oo=!j&&Ti&&Jn?P:Ar.left,Zs=j?Gt(M,Bt,"after"):R),le(Xi,yr.top,Xr-Xi,yr.bottom),yr.bottom<Ar.top&&le(P,yr.bottom,null,Ar.top),le(oo,Ar.top,Zs-oo,Ar.bottom)}(!ur||ys(yr,ur)<0)&&(ur=yr),ys(Ar,ur)<0&&(ur=Ar),(!Ur||ys(yr,Ur)<0)&&(Ur=yr),ys(Ar,Ur)<0&&(Ur=Ar)}),{start:ur,end:Ur}}var Ae=i.from(),me=i.to();if(Ae.line==me.line)de(Ae.line,Ae.ch,me.ch);else{var ke=ft(f,Ae.line),Ne=ft(f,me.line),ze=Tn(ke)==Tn(Ne),Ye=de(Ae.line,Ae.ch,ze?ke.text.length+1:null).end,Ze=de(me.line,ze?0:null,me.ch).start;ze&&(Ye.top<Ze.top-2?(le(Ye.right,Ye.top,null,Ye.bottom),le(P,Ze.top,Ze.left,Ze.bottom)):le(Ye.right,Ye.top,Ze.left-Ye.right,Ye.bottom)),Ye.bottom<Ze.top&&le(P,Ye.bottom,null,Ze.top)}u.appendChild(m)}function Dl(t){if(!!t.state.focused){var i=t.display;clearInterval(i.blinker);var u=!0;i.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?i.blinker=setInterval(function(){t.hasFocus()||Ya(t),i.cursorDiv.style.visibility=(u=!u)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function mf(t){t.hasFocus()||(t.display.input.focus(),t.state.focused||zn(t))}function bs(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,t.state.focused&&Ya(t))},100)}function zn(t,i){t.state.delayingBlurEvent&&!t.state.draggingText&&(t.state.delayingBlurEvent=!1),t.options.readOnly!="nocursor"&&(t.state.focused||(Ke(t,"focus",t,i),t.state.focused=!0,Ue(t.display.wrapper,"CodeMirror-focused"),!t.curOp&&t.display.selForContextMenu!=t.doc.sel&&(t.display.input.reset(),U&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),Dl(t))}function Ya(t,i){t.state.delayingBlurEvent||(t.state.focused&&(Ke(t,"blur",t,i),t.state.focused=!1,H(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150))}function Ja(t){for(var i=t.display,u=i.lineDiv.offsetTop,l=Math.max(0,i.scroller.getBoundingClientRect().top),f=i.lineDiv.getBoundingClientRect().top,m=0,S=0;S<i.view.length;S++){var P=i.view[S],R=t.options.lineWrapping,j=void 0,le=0;if(!P.hidden){if(f+=P.line.height,T&&F<8){var de=P.node.offsetTop+P.node.offsetHeight;j=de-u,u=de}else{var Ae=P.node.getBoundingClientRect();j=Ae.bottom-Ae.top,!R&&P.text.firstChild&&(le=P.text.firstChild.getBoundingClientRect().right-Ae.left-1)}var me=P.line.height-j;if((me>.005||me<-.005)&&(f<l&&(m-=me),En(P.line,j),yf(P.line),P.rest))for(var ke=0;ke<P.rest.length;ke++)yf(P.rest[ke]);if(le>t.display.sizerWidth){var Ne=Math.ceil(le/Ka(t.display));Ne>t.display.maxLineLength&&(t.display.maxLineLength=Ne,t.display.maxLine=P.line,t.display.maxLineChanged=!0)}}}Math.abs(m)>2&&(i.scroller.scrollTop+=m)}function yf(t){if(t.widgets)for(var i=0;i<t.widgets.length;++i){var u=t.widgets[i],l=u.node.parentNode;l&&(u.height=l.offsetHeight)}}function xs(t,i,u){var l=u&&u.top!=null?Math.max(0,u.top):t.scroller.scrollTop;l=Math.floor(l-ds(t));var f=u&&u.bottom!=null?u.bottom:l+t.wrapper.clientHeight,m=xi(i,l),S=xi(i,f);if(u&&u.ensure){var P=u.ensure.from.line,R=u.ensure.to.line;P<m?(m=P,S=xi(i,wi(ft(i,P))+t.wrapper.clientHeight)):Math.min(R,i.lastLine())>=S&&(m=xi(i,wi(ft(i,R))-t.wrapper.clientHeight),S=R)}return{from:m,to:Math.max(S,m+1)}}function dd(t,i){if(!ut(t,"scrollCursorIntoView")){var u=t.display,l=u.sizer.getBoundingClientRect(),f=null,m=u.wrapper.ownerDocument;if(i.top+l.top<0?f=!0:i.bottom+l.top>(m.defaultView.innerHeight||m.documentElement.clientHeight)&&(f=!1),f!=null&&!A){var S=_("div","\u200B",null,`position: absolute;
20
20
  top: `+(i.top-u.viewOffset-ds(t.display))+`px;
21
21
  height: `+(i.bottom-i.top+ni(t)+u.barHeight)+`px;
22
- left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");t.display.lineSpace.appendChild(S),S.scrollIntoView(f),t.display.lineSpace.removeChild(S)}}}function Bl(t,i,u,l){l==null&&(l=0);var f;!t.options.lineWrapping&&i==u&&(u=i.sticky=="before"?N(i.line,i.ch+1,"before"):i,i=i.ch?N(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var m=0;m<5;m++){var S=!1,P=Hn(t,i),R=!u||u==i?P:Hn(t,u);f={left:Math.min(P.left,R.left),top:Math.min(P.top,R.top)-l,right:Math.max(P.left,R.left),bottom:Math.max(P.bottom,R.bottom)+l};var j=jl(t,f),le=t.doc.scrollTop,de=t.doc.scrollLeft;if(j.scrollTop!=null&&(ko(t,j.scrollTop),Math.abs(t.doc.scrollTop-le)>1&&(S=!0)),j.scrollLeft!=null&&(ya(t,j.scrollLeft),Math.abs(t.doc.scrollLeft-de)>1&&(S=!0)),!S)break}return f}function pd(t,i){var u=jl(t,i);u.scrollTop!=null&&ko(t,u.scrollTop),u.scrollLeft!=null&&ya(t,u.scrollLeft)}function jl(t,i){var u=t.display,l=ga(t.display);i.top<0&&(i.top=0);var f=t.curOp&&t.curOp.scrollTop!=null?t.curOp.scrollTop:u.scroller.scrollTop,m=Al(t),S={};i.bottom-i.top>m&&(i.bottom=i.top+m);var P=t.doc.height+da(u),R=i.top<l,j=i.bottom>P-l;if(i.top<f)S.scrollTop=R?0:i.top;else if(i.bottom>f+m){var le=Math.min(i.top,(j?P:i.bottom)-m);le!=f&&(S.scrollTop=le)}var de=t.options.fixedGutter?0:u.gutters.offsetWidth,Ae=t.curOp&&t.curOp.scrollLeft!=null?t.curOp.scrollLeft:u.scroller.scrollLeft-de,me=pa(t)-u.gutters.offsetWidth,ke=i.right-i.left>me;return ke&&(i.right=i.left+me),i.left<10?S.scrollLeft=0:i.left<Ae?S.scrollLeft=Math.max(0,i.left+de-(ke?0:10)):i.right>me+Ae-3&&(S.scrollLeft=i.right+(ke?0:10)-me),S}function Vl(t,i){i!=null&&(Ss(t),t.curOp.scrollTop=(t.curOp.scrollTop==null?t.doc.scrollTop:t.curOp.scrollTop)+i)}function Xa(t){Ss(t);var i=t.getCursor();t.curOp.scrollToPos={from:i,to:i,margin:t.options.cursorScrollMargin}}function Io(t,i,u){(i!=null||u!=null)&&Ss(t),i!=null&&(t.curOp.scrollLeft=i),u!=null&&(t.curOp.scrollTop=u)}function hd(t,i){Ss(t),t.curOp.scrollToPos=i}function Ss(t){var i=t.curOp.scrollToPos;if(i){t.curOp.scrollToPos=null;var u=pf(t,i.from),l=pf(t,i.to);bf(t,u,l,i.margin)}}function bf(t,i,u,l){var f=jl(t,{left:Math.min(i.left,u.left),top:Math.min(i.top,u.top)-l,right:Math.max(i.right,u.right),bottom:Math.max(i.bottom,u.bottom)+l});Io(t,f.scrollLeft,f.scrollTop)}function ko(t,i){Math.abs(t.doc.scrollTop-i)<2||(d||zl(t,{top:i}),xf(t,i,!0),d&&zl(t),Mo(t,100))}function xf(t,i,u){i=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,i)),!(t.display.scroller.scrollTop==i&&!u)&&(t.doc.scrollTop=i,t.display.scrollbars.setScrollTop(i),t.display.scroller.scrollTop!=i&&(t.display.scroller.scrollTop=i))}function ya(t,i,u,l){i=Math.max(0,Math.min(i,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),!((u?i==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-i)<2)&&!l)&&(t.doc.scrollLeft=i,Os(t),t.display.scroller.scrollLeft!=i&&(t.display.scroller.scrollLeft=i),t.display.scrollbars.setScrollLeft(i))}function Fo(t){var i=t.display,u=i.gutters.offsetWidth,l=Math.round(t.doc.height+da(t.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:t.options.fixedGutter?u:0,docHeight:l,scrollHeight:l+ni(t)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:u}}var ba=function(t,i,u){this.cm=u;var l=this.vert=_("div",[_("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),f=this.horiz=_("div",[_("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=f.tabIndex=-1,t(l),t(f),ce(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),ce(f,"scroll",function(){f.clientWidth&&i(f.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,T&&F<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ba.prototype.update=function(t){var i=t.scrollWidth>t.clientWidth+1,u=t.scrollHeight>t.clientHeight+1,l=t.nativeBarWidth;if(u){this.vert.style.display="block",this.vert.style.bottom=i?l+"px":"0";var f=t.viewHeight-(i?l:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+f)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=u?l+"px":"0",this.horiz.style.left=t.barLeft+"px";var m=t.viewWidth-t.barLeft-(u?l:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+m)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:u?l:0,bottom:i?l:0}},ba.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ba.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ba.prototype.zeroWidthHack=function(){var t=k&&!Y?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Ce,this.disableVert=new Ce},ba.prototype.enableZeroWidthBar=function(t,i,u){t.style.visibility="";function l(){var f=t.getBoundingClientRect(),m=u=="vert"?document.elementFromPoint(f.right-1,(f.top+f.bottom)/2):document.elementFromPoint((f.right+f.left)/2,f.bottom-1);m!=t?t.style.visibility="hidden":i.set(1e3,l)}i.set(1e3,l)},ba.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var Ro=function(){};Ro.prototype.update=function(){return{bottom:0,right:0}},Ro.prototype.setScrollLeft=function(){},Ro.prototype.setScrollTop=function(){},Ro.prototype.clear=function(){};function Qa(t,i){i||(i=Fo(t));var u=t.display.barWidth,l=t.display.barHeight;Ul(t,i);for(var f=0;f<4&&u!=t.display.barWidth||l!=t.display.barHeight;f++)u!=t.display.barWidth&&t.options.lineWrapping&&Ja(t),Ul(t,Fo(t)),u=t.display.barWidth,l=t.display.barHeight}function Ul(t,i){var u=t.display,l=u.scrollbars.update(i);u.sizer.style.paddingRight=(u.barWidth=l.right)+"px",u.sizer.style.paddingBottom=(u.barHeight=l.bottom)+"px",u.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(u.scrollbarFiller.style.display="block",u.scrollbarFiller.style.height=l.bottom+"px",u.scrollbarFiller.style.width=l.right+"px"):u.scrollbarFiller.style.display="",l.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(u.gutterFiller.style.display="block",u.gutterFiller.style.height=l.bottom+"px",u.gutterFiller.style.width=i.gutterWidth+"px"):u.gutterFiller.style.display=""}var Sf={native:ba,null:Ro};function Wl(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&H(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new Sf[t.options.scrollbarStyle](function(i){t.display.wrapper.insertBefore(i,t.display.scrollbarFiller),ce(i,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,u){u=="horizontal"?ya(t,i):ko(t,i)},t),t.display.scrollbars.addClass&&Ue(t.display.wrapper,t.display.scrollbars.addClass)}var ws=0;function Vi(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++ws,markArrays:null},_c(t.curOp)}function xa(t){var i=t.curOp;i&&td(i,function(u){for(var l=0;l<u.ops.length;l++)u.ops[l].cm.curOp=null;vd(u)})}function vd(t){for(var i=t.ops,u=0;u<i.length;u++)gd(i[u]);for(var l=0;l<i.length;l++)Sa(i[l]);for(var f=0;f<i.length;f++)md(i[f]);for(var m=0;m<i.length;m++)Gn(i[m]);for(var S=0;S<i.length;S++)yd(i[S])}function gd(t){var i=t.cm,u=i.display;xd(i),t.updateMaxLine&&Sl(i),t.mustUpdate=t.viewChanged||t.forceUpdate||t.scrollTop!=null||t.scrollToPos&&(t.scrollToPos.from.line<u.viewFrom||t.scrollToPos.to.line>=u.viewTo)||u.maxLineChanged&&i.options.lineWrapping,t.update=t.mustUpdate&&new As(i,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Sa(t){t.updatedDisplay=t.mustUpdate&&Lo(t.cm,t.update)}function md(t){var i=t.cm,u=i.display;t.updatedDisplay&&Ja(i),t.barMeasure=Fo(i),u.maxLineChanged&&!i.options.lineWrapping&&(t.adjustWidthTo=uf(i,u.maxLine,u.maxLine.text.length).left+3,i.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(u.scroller.clientWidth,u.sizer.offsetLeft+t.adjustWidthTo+ni(i)+i.display.barWidth),t.maxScrollLeft=Math.max(0,u.sizer.offsetLeft+t.adjustWidthTo-pa(i))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=u.input.prepareSelection())}function Gn(t){var i=t.cm;t.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<i.doc.scrollLeft&&ya(i,Math.min(i.display.scroller.scrollLeft,t.maxScrollLeft),!0),i.display.maxLineChanged=!1);var u=t.focus&&t.focus==Oe(Xe(i));t.preparedSelection&&i.display.input.showSelection(t.preparedSelection,u),(t.updatedDisplay||t.startHeight!=i.doc.height)&&Qa(i,t.barMeasure),t.updatedDisplay&&Es(i,t.barMeasure),t.selectionChanged&&Dl(i),i.state.focused&&t.updateInput&&i.display.input.reset(t.typing),u&&mf(t.cm)}function yd(t){var i=t.cm,u=i.display,l=i.doc;if(t.updatedDisplay&&wf(i,t.update),u.wheelStartX!=null&&(t.scrollTop!=null||t.scrollLeft!=null||t.scrollToPos)&&(u.wheelStartX=u.wheelStartY=null),t.scrollTop!=null&&xf(i,t.scrollTop,t.forceScroll),t.scrollLeft!=null&&ya(i,t.scrollLeft,!0,!0),t.scrollToPos){var f=Bl(i,ct(l,t.scrollToPos.from),ct(l,t.scrollToPos.to),t.scrollToPos.margin);dd(i,f)}var m=t.maybeHiddenMarkers,S=t.maybeUnhiddenMarkers;if(m)for(var P=0;P<m.length;++P)m[P].lines.length||Ke(m[P],"hide");if(S)for(var R=0;R<S.length;++R)S[R].lines.length&&Ke(S[R],"unhide");u.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),t.changeObjs&&Ke(i,"changes",i,t.changeObjs),t.update&&t.update.finish()}function gn(t,i){if(t.curOp)return i();Vi(t);try{return i()}finally{xa(t)}}function Sr(t,i){return function(){if(t.curOp)return i.apply(t,arguments);Vi(t);try{return i.apply(t,arguments)}finally{xa(t)}}}function zr(t){return function(){if(this.curOp)return t.apply(this,arguments);Vi(this);try{return t.apply(this,arguments)}finally{xa(this)}}}function Vr(t){return function(){var i=this.cm;if(!i||i.curOp)return t.apply(this,arguments);Vi(i);try{return t.apply(this,arguments)}finally{xa(i)}}}function Mo(t,i){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(i,Pt(bd,t))}function bd(t){var i=t.doc;if(!(i.highlightFrontier>=t.display.viewTo)){var u=+new Date+t.options.workTime,l=sa(t,i.highlightFrontier),f=[];i.iter(l.line,Math.min(i.first+i.size,t.display.viewTo+500),function(m){if(l.line>=t.display.viewFrom){var S=m.styles,P=m.text.length>t.options.maxHighlightLength?Cn(i.mode,l.state):null,R=Hu(t,m,l,!0);P&&(l.state=P),m.styles=R.styles;var j=m.styleClasses,le=R.classes;le?m.styleClasses=le:j&&(m.styleClasses=null);for(var de=!S||S.length!=m.styles.length||j!=le&&(!j||!le||j.bgClass!=le.bgClass||j.textClass!=le.textClass),Ae=0;!de&&Ae<S.length;++Ae)de=S[Ae]!=m.styles[Ae];de&&f.push(l.line),m.stateAfter=l.save(),l.nextLine()}else m.text.length<=t.options.maxHighlightLength&&pl(t,m.text,l),m.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>u)return Mo(t,t.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),f.length&&gn(t,function(){for(var m=0;m<f.length;m++)Sn(t,f[m],"text")})}}var As=function(t,i,u){var l=t.display;this.viewport=i,this.visible=xs(l,t.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=pa(t),this.force=u,this.dims=Fl(t),this.events=[]};As.prototype.signal=function(t,i){_t(t,i)&&this.events.push(arguments)},As.prototype.finish=function(){for(var t=0;t<this.events.length;t++)Ke.apply(null,this.events[t])};function xd(t){var i=t.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=ni(t)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=ni(t)+"px",i.scrollbarsClipped=!0)}function Hl(t){if(t.hasFocus())return null;var i=Oe(Xe(t));if(!i||!ge(t.display.lineDiv,i))return null;var u={activeElt:i};if(window.getSelection){var l=xt(t).getSelection();l.anchorNode&&l.extend&&ge(t.display.lineDiv,l.anchorNode)&&(u.anchorNode=l.anchorNode,u.anchorOffset=l.anchorOffset,u.focusNode=l.focusNode,u.focusOffset=l.focusOffset)}return u}function Cs(t){if(!(!t||!t.activeElt||t.activeElt==Oe(t.activeElt.ownerDocument))&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&ge(document.body,t.anchorNode)&&ge(document.body,t.focusNode))){var i=t.activeElt.ownerDocument,u=i.defaultView.getSelection(),l=i.createRange();l.setEnd(t.anchorNode,t.anchorOffset),l.collapse(!1),u.removeAllRanges(),u.addRange(l),u.extend(t.focusNode,t.focusOffset)}}function Lo(t,i){var u=t.display,l=t.doc;if(i.editorIsHidden)return ji(t),!1;if(!i.force&&i.visible.from>=u.viewFrom&&i.visible.to<=u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo)&&u.renderedView==u.view&&Ml(t)==0)return!1;$l(t)&&(ji(t),i.dims=Fl(t));var f=l.first+l.size,m=Math.max(i.visible.from-t.options.viewportMargin,l.first),S=Math.min(f,i.visible.to+t.options.viewportMargin);u.viewFrom<m&&m-u.viewFrom<20&&(m=Math.max(l.first,u.viewFrom)),u.viewTo>S&&u.viewTo-S<20&&(S=Math.min(f,u.viewTo)),Si&&(m=tn(t.doc,m),S=ua(t.doc,S));var P=m!=u.viewFrom||S!=u.viewTo||u.lastWrapHeight!=i.wrapperHeight||u.lastWrapWidth!=i.wrapperWidth;vf(t,m,S),u.viewOffset=wi(ft(t.doc,u.viewFrom)),t.display.mover.style.top=u.viewOffset+"px";var R=Ml(t);if(!P&&R==0&&!i.force&&u.renderedView==u.view&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo))return!1;var j=Hl(t);return R>4&&(u.lineDiv.style.display="none"),Af(t,u.updateLineNumbers,i.dims),R>4&&(u.lineDiv.style.display=""),u.renderedView=u.view,Cs(j),fe(u.cursorDiv),fe(u.selectionDiv),u.gutters.style.height=u.sizer.style.minHeight=0,P&&(u.lastWrapHeight=i.wrapperHeight,u.lastWrapWidth=i.wrapperWidth,Mo(t,400)),u.updateLineNumbers=null,!0}function wf(t,i){for(var u=i.viewport,l=!0;;l=!1){if(!l||!t.options.lineWrapping||i.oldDisplayWidth==pa(t)){if(u&&u.top!=null&&(u={top:Math.min(t.doc.height+da(t.display)-Al(t),u.top)}),i.visible=xs(t.display,t.doc,u),i.visible.from>=t.display.viewFrom&&i.visible.to<=t.display.viewTo)break}else l&&(i.visible=xs(t.display,t.doc,u));if(!Lo(t,i))break;Ja(t);var f=Fo(t);Po(t),Qa(t,f),Es(t,f),i.force=!1}i.signal(t,"update",t),(t.display.viewFrom!=t.display.reportedViewFrom||t.display.viewTo!=t.display.reportedViewTo)&&(i.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function zl(t,i){var u=new As(t,i);if(Lo(t,u)){Ja(t),wf(t,u);var l=Fo(t);Po(t),Qa(t,l),Es(t,l),u.finish()}}function Af(t,i,u){var l=t.display,f=t.options.lineNumbers,m=l.lineDiv,S=m.firstChild;function P(ke){var Ne=ke.nextSibling;return U&&k&&t.display.currentWheelTarget==ke?ke.style.display="none":ke.parentNode.removeChild(ke),Ne}for(var R=l.view,j=l.viewFrom,le=0;le<R.length;le++){var de=R[le];if(!de.hidden)if(!de.node||de.node.parentNode!=m){var Ae=od(t,de,j,u);m.insertBefore(Ae,S)}else{for(;S!=de.node;)S=P(S);var me=f&&i!=null&&i<=j&&de.lineNumber;de.changes&&(Se(de.changes,"gutter")>-1&&(me=!1),rf(t,de,j,u)),me&&(fe(de.lineNumber),de.lineNumber.appendChild(document.createTextNode(Va(t.options,j)))),S=de.node.nextSibling}j+=de.size}for(;S;)S=P(S)}function Gl(t){var i=t.gutters.offsetWidth;t.sizer.style.marginLeft=i+"px",Lr(t,"gutterChanged",t)}function Es(t,i){t.display.sizer.style.minHeight=i.docHeight+"px",t.display.heightForcer.style.top=i.docHeight+"px",t.display.gutters.style.height=i.docHeight+t.display.barHeight+ni(t)+"px"}function Os(t){var i=t.display,u=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!t.options.fixedGutter))){for(var l=ma(i)-i.scroller.scrollLeft+t.doc.scrollLeft,f=i.gutters.offsetWidth,m=l+"px",S=0;S<u.length;S++)if(!u[S].hidden){t.options.fixedGutter&&(u[S].gutter&&(u[S].gutter.style.left=m),u[S].gutterBackground&&(u[S].gutterBackground.style.left=m));var P=u[S].alignable;if(P)for(var R=0;R<P.length;R++)P[R].style.left=m}t.options.fixedGutter&&(i.gutters.style.left=l+f+"px")}}function $l(t){if(!t.options.lineNumbers)return!1;var i=t.doc,u=Va(t.options,i.first+i.size-1),l=t.display;if(u.length!=l.lineNumChars){var f=l.measure.appendChild(_("div",[_("div",u)],"CodeMirror-linenumber CodeMirror-gutter-elt")),m=f.firstChild.offsetWidth,S=f.offsetWidth-m;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(m,l.lineGutter.offsetWidth-S)+1,l.lineNumWidth=l.lineNumInnerWidth+S,l.lineNumChars=l.lineNumInnerWidth?u.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",Gl(t.display),!0}return!1}function Kl(t,i){for(var u=[],l=!1,f=0;f<t.length;f++){var m=t[f],S=null;if(typeof m!="string"&&(S=m.style,m=m.className),m=="CodeMirror-linenumbers")if(i)l=!0;else continue;u.push({className:m,style:S})}return i&&!l&&u.push({className:"CodeMirror-linenumbers",style:null}),u}function Cf(t){var i=t.gutters,u=t.gutterSpecs;fe(i),t.lineGutter=null;for(var l=0;l<u.length;++l){var f=u[l],m=f.className,S=f.style,P=i.appendChild(_("div",null,"CodeMirror-gutter "+m));S&&(P.style.cssText=S),m=="CodeMirror-linenumbers"&&(t.lineGutter=P,P.style.width=(t.lineNumWidth||1)+"px")}i.style.display=u.length?"":"none",Gl(t)}function Za(t){Cf(t.display),rn(t),Os(t)}function Ef(t,i,u,l){var f=this;this.input=u,f.scrollbarFiller=_("div",null,"CodeMirror-scrollbar-filler"),f.scrollbarFiller.setAttribute("cm-not-content","true"),f.gutterFiller=_("div",null,"CodeMirror-gutter-filler"),f.gutterFiller.setAttribute("cm-not-content","true"),f.lineDiv=X("div",null,"CodeMirror-code"),f.selectionDiv=_("div",null,null,"position: relative; z-index: 1"),f.cursorDiv=_("div",null,"CodeMirror-cursors"),f.measure=_("div",null,"CodeMirror-measure"),f.lineMeasure=_("div",null,"CodeMirror-measure"),f.lineSpace=X("div",[f.measure,f.lineMeasure,f.selectionDiv,f.cursorDiv,f.lineDiv],null,"position: relative; outline: none");var m=X("div",[f.lineSpace],"CodeMirror-lines");f.mover=_("div",[m],null,"position: relative"),f.sizer=_("div",[f.mover],"CodeMirror-sizer"),f.sizerWidth=null,f.heightForcer=_("div",null,null,"position: absolute; height: "+De+"px; width: 1px;"),f.gutters=_("div",null,"CodeMirror-gutters"),f.lineGutter=null,f.scroller=_("div",[f.sizer,f.heightForcer,f.gutters],"CodeMirror-scroll"),f.scroller.setAttribute("tabIndex","-1"),f.wrapper=_("div",[f.scrollbarFiller,f.gutterFiller,f.scroller],"CodeMirror"),ee&&ue>=105&&(f.wrapper.style.clipPath="inset(0px)"),f.wrapper.setAttribute("translate","no"),T&&F<8&&(f.gutters.style.zIndex=-1,f.scroller.style.paddingRight=0),!U&&!(d&&E)&&(f.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(f.wrapper):t(f.wrapper)),f.viewFrom=f.viewTo=i.first,f.reportedViewFrom=f.reportedViewTo=i.first,f.view=[],f.renderedView=null,f.externalMeasured=null,f.viewOffset=0,f.lastWrapHeight=f.lastWrapWidth=0,f.updateLineNumbers=null,f.nativeBarWidth=f.barHeight=f.barWidth=0,f.scrollbarsClipped=!1,f.lineNumWidth=f.lineNumInnerWidth=f.lineNumChars=null,f.alignWidgets=!1,f.cachedCharWidth=f.cachedTextHeight=f.cachedPaddingH=null,f.maxLine=null,f.maxLineLength=0,f.maxLineChanged=!1,f.wheelDX=f.wheelDY=f.wheelStartX=f.wheelStartY=null,f.shift=!1,f.selForContextMenu=null,f.activeTouch=null,f.gutterSpecs=Kl(l.gutters,l.lineNumbers),Cf(f),u.init(f)}var Ts=0,ai=null;T?ai=-.53:d?ai=15:ee?ai=-.7:oe&&(ai=-1/3);function Yl(t){var i=t.wheelDeltaX,u=t.wheelDeltaY;return i==null&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(i=t.detail),u==null&&t.detail&&t.axis==t.VERTICAL_AXIS?u=t.detail:u==null&&(u=t.wheelDelta),{x:i,y:u}}function Sd(t){var i=Yl(t);return i.x*=ai,i.y*=ai,i}function Jl(t,i){ee&&ue==102&&(t.display.chromeScrollHack==null?t.display.sizer.style.pointerEvents="none":clearTimeout(t.display.chromeScrollHack),t.display.chromeScrollHack=setTimeout(function(){t.display.chromeScrollHack=null,t.display.sizer.style.pointerEvents=""},100));var u=Yl(i),l=u.x,f=u.y,m=ai;i.deltaMode===0&&(l=i.deltaX,f=i.deltaY,m=1);var S=t.display,P=S.scroller,R=P.scrollWidth>P.clientWidth,j=P.scrollHeight>P.clientHeight;if(!!(l&&R||f&&j)){if(f&&k&&U){e:for(var le=i.target,de=S.view;le!=P;le=le.parentNode)for(var Ae=0;Ae<de.length;Ae++)if(de[Ae].node==le){t.display.currentWheelTarget=le;break e}}if(l&&!d&&!ne&&m!=null){f&&j&&ko(t,Math.max(0,P.scrollTop+f*m)),ya(t,Math.max(0,P.scrollLeft+l*m)),(!f||f&&j)&&At(i),S.wheelStartX=null;return}if(f&&m!=null){var me=f*m,ke=t.doc.scrollTop,Ne=ke+S.wrapper.clientHeight;me<0?ke=Math.max(0,ke+me-50):Ne=Math.min(t.doc.height,Ne+me+50),zl(t,{top:ke,bottom:Ne})}Ts<20&&i.deltaMode!==0&&(S.wheelStartX==null?(S.wheelStartX=P.scrollLeft,S.wheelStartY=P.scrollTop,S.wheelDX=l,S.wheelDY=f,setTimeout(function(){if(S.wheelStartX!=null){var ze=P.scrollLeft-S.wheelStartX,Ye=P.scrollTop-S.wheelStartY,Ze=Ye&&S.wheelDY&&Ye/S.wheelDY||ze&&S.wheelDX&&ze/S.wheelDX;S.wheelStartX=S.wheelStartY=null,Ze&&(ai=(ai*Ts+Ze)/(Ts+1),++Ts)}},200)):(S.wheelDX+=l,S.wheelDY+=f))}}var mn=function(t,i){this.ranges=t,this.primIndex=i};mn.prototype.primary=function(){return this.ranges[this.primIndex]},mn.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var i=0;i<this.ranges.length;i++){var u=this.ranges[i],l=t.ranges[i];if(!Me(u.anchor,l.anchor)||!Me(u.head,l.head))return!1}return!0},mn.prototype.deepCopy=function(){for(var t=[],i=0;i<this.ranges.length;i++)t[i]=new Qt(He(this.ranges[i].anchor),He(this.ranges[i].head));return new mn(t,this.primIndex)},mn.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},mn.prototype.contains=function(t,i){i||(i=t);for(var u=0;u<this.ranges.length;u++){var l=this.ranges[u];if(se(i,l.from())>=0&&se(t,l.to())<=0)return u}return-1};var Qt=function(t,i){this.anchor=t,this.head=i};Qt.prototype.from=function(){return jt(this.anchor,this.head)},Qt.prototype.to=function(){return Ft(this.anchor,this.head)},Qt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function $n(t,i,u){var l=t&&t.options.selectionsMayTouch,f=i[u];i.sort(function(Ae,me){return se(Ae.from(),me.from())}),u=Se(i,f);for(var m=1;m<i.length;m++){var S=i[m],P=i[m-1],R=se(P.to(),S.from());if(l&&!S.empty()?R>0:R>=0){var j=jt(P.from(),S.from()),le=Ft(P.to(),S.to()),de=P.empty()?S.from()==S.head:P.from()==P.head;m<=u&&--u,i.splice(--m,2,new Qt(de?le:j,de?j:le))}}return new mn(i,u)}function Ui(t,i){return new mn([new Qt(t,i||t)],0)}function Wi(t){return t.text?N(t.from.line+t.text.length-1,We(t.text).length+(t.text.length==1?t.from.ch:0)):t.to}function Hi(t,i){if(se(t,i.from)<0)return t;if(se(t,i.to)<=0)return Wi(i);var u=t.line+i.text.length-(i.to.line-i.from.line)-1,l=t.ch;return t.line==i.to.line&&(l+=Wi(i).ch-i.to.ch),N(u,l)}function Xl(t,i){for(var u=[],l=0;l<t.sel.ranges.length;l++){var f=t.sel.ranges[l];u.push(new Qt(Hi(f.anchor,i),Hi(f.head,i)))}return $n(t.cm,u,t.sel.primIndex)}function Of(t,i,u){return t.line==i.line?N(u.line,t.ch-i.ch+u.ch):N(u.line+(t.line-i.line),t.ch)}function wd(t,i,u){for(var l=[],f=N(t.first,0),m=f,S=0;S<i.length;S++){var P=i[S],R=Of(P.from,f,m),j=Of(Wi(P),f,m);if(f=P.to,m=j,u=="around"){var le=t.sel.ranges[S],de=se(le.head,le.anchor)<0;l[S]=new Qt(de?j:R,de?R:j)}else l[S]=new Qt(R,R)}return new mn(l,t.sel.primIndex)}function Ql(t){t.doc.mode=en(t.options,t.doc.modeOption),zi(t)}function zi(t){t.doc.iter(function(i){i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null)}),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,Mo(t,100),t.state.modeGen++,t.curOp&&rn(t)}function Ps(t,i){return i.from.ch==0&&i.to.ch==0&&We(i.text)==""&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function cn(t,i,u,l){function f(Ze){return u?u[Ze]:null}function m(Ze,Je,rt){qu(Ze,Je,rt,l),Lr(Ze,"change",Ze,i)}function S(Ze,Je){for(var rt=[],vt=Ze;vt<Je;++vt)rt.push(new fa(j[vt],f(vt),l));return rt}var P=i.from,R=i.to,j=i.text,le=ft(t,P.line),de=ft(t,R.line),Ae=We(j),me=f(j.length-1),ke=R.line-P.line;if(i.full)t.insert(0,S(0,j.length)),t.remove(j.length,t.size-j.length);else if(Ps(t,i)){var Ne=S(0,j.length-1);m(de,de.text,me),ke&&t.remove(P.line,ke),Ne.length&&t.insert(P.line,Ne)}else if(le==de)if(j.length==1)m(le,le.text.slice(0,P.ch)+Ae+le.text.slice(R.ch),me);else{var ze=S(1,j.length-1);ze.push(new fa(Ae+le.text.slice(R.ch),me,l)),m(le,le.text.slice(0,P.ch)+j[0],f(0)),t.insert(P.line+1,ze)}else if(j.length==1)m(le,le.text.slice(0,P.ch)+j[0]+de.text.slice(R.ch),f(0)),t.remove(P.line+1,ke);else{m(le,le.text.slice(0,P.ch)+j[0],f(0)),m(de,Ae+de.text.slice(R.ch),me);var Ye=S(1,j.length-1);ke>1&&t.remove(P.line+1,ke-1),t.insert(P.line+1,Ye)}Lr(t,"change",t,i)}function oi(t,i,u){function l(f,m,S){if(f.linked)for(var P=0;P<f.linked.length;++P){var R=f.linked[P];if(R.doc!=m){var j=S&&R.sharedHist;u&&!j||(i(R.doc,j),l(R.doc,f,j))}}}l(t,null,!0)}function si(t,i){if(i.cm)throw new Error("This document is already in use.");t.doc=i,i.cm=t,gs(t),Ql(t),Zl(t),t.options.direction=i.direction,t.options.lineWrapping||Sl(t),t.options.mode=i.modeOption,rn(t)}function Zl(t){(t.doc.direction=="rtl"?Ue:H)(t.display.lineDiv,"CodeMirror-rtl")}function Tf(t){gn(t,function(){Zl(t),rn(t)})}function ql(t){this.done=[],this.undone=[],this.undoDepth=t?t.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t?t.maxGeneration:1}function No(t,i){var u={from:He(i.from),to:Wi(i),text:bi(t,i.from,i.to)};return _a(t,u,i.from.line,i.to.line+1),oi(t,function(l){return _a(l,u,i.from.line,i.to.line+1)},!0),u}function _l(t){for(;t.length;){var i=We(t);if(i.ranges)t.pop();else break}}function Pf(t,i){if(i)return _l(t.done),We(t.done);if(t.done.length&&!We(t.done).ranges)return We(t.done);if(t.done.length>1&&!t.done[t.done.length-2].ranges)return t.done.pop(),We(t.done)}function Er(t,i,u,l){var f=t.history;f.undone.length=0;var m=+new Date,S,P;if((f.lastOp==l||f.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&f.lastModTime>m-(t.cm?t.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(S=Pf(f,f.lastOp==l)))P=We(S.changes),se(i.from,i.to)==0&&se(i.from,P.to)==0?P.to=Wi(i):S.changes.push(No(t,i));else{var R=We(f.done);for((!R||!R.ranges)&&Is(t.sel,f.done),S={changes:[No(t,i)],generation:f.generation},f.done.push(S);f.done.length>f.undoDepth;)f.done.shift(),f.done[0].ranges||f.done.shift()}f.done.push(u),f.generation=++f.maxGeneration,f.lastModTime=f.lastSelTime=m,f.lastOp=f.lastSelOp=l,f.lastOrigin=f.lastSelOrigin=i.origin,P||Ke(t,"historyAdded")}function Ad(t,i,u,l){var f=i.charAt(0);return f=="*"||f=="+"&&u.ranges.length==l.ranges.length&&u.somethingSelected()==l.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function qa(t,i,u,l){var f=t.history,m=l&&l.origin;u==f.lastSelOp||m&&f.lastSelOrigin==m&&(f.lastModTime==f.lastSelTime&&f.lastOrigin==m||Ad(t,m,We(f.done),i))?f.done[f.done.length-1]=i:Is(i,f.done),f.lastSelTime=+new Date,f.lastSelOrigin=m,f.lastSelOp=u,l&&l.clearRedo!==!1&&_l(f.undone)}function Is(t,i){var u=We(i);u&&u.ranges&&u.equals(t)||i.push(t)}function _a(t,i,u,l){var f=i["spans_"+t.id],m=0;t.iter(Math.max(t.first,u),Math.min(t.first+t.size,l),function(S){S.markedSpans&&((f||(f=i["spans_"+t.id]={}))[m]=S.markedSpans),++m})}function wa(t){if(!t)return null;for(var i,u=0;u<t.length;++u)t[u].marker.explicitlyCleared?i||(i=t.slice(0,u)):i&&i.push(t[u]);return i?i.length?i:null:t}function Gi(t,i){var u=i["spans_"+t.id];if(!u)return null;for(var l=[],f=0;f<i.text.length;++f)l.push(wa(u[f]));return l}function If(t,i){var u=Gi(t,i),l=ti(t,i);if(!u)return l;if(!l)return u;for(var f=0;f<u.length;++f){var m=u[f],S=l[f];if(m&&S){e:for(var P=0;P<S.length;++P){for(var R=S[P],j=0;j<m.length;++j)if(m[j].marker==R.marker)continue e;m.push(R)}}else S&&(u[f]=S)}return u}function Ci(t,i,u){for(var l=[],f=0;f<t.length;++f){var m=t[f];if(m.ranges){l.push(u?mn.prototype.deepCopy.call(m):m);continue}var S=m.changes,P=[];l.push({changes:P});for(var R=0;R<S.length;++R){var j=S[R],le=void 0;if(P.push({from:j.from,to:j.to,text:j.text}),i)for(var de in j)(le=de.match(/^spans_(\d+)$/))&&Se(i,Number(le[1]))>-1&&(We(P)[de]=j[de],delete j[de])}}return l}function ks(t,i,u,l){if(l){var f=t.anchor;if(u){var m=se(i,f)<0;m!=se(u,f)<0?(f=i,i=u):m!=se(i,u)<0&&(i=u)}return new Qt(f,i)}else return new Qt(u||i,i)}function $i(t,i,u,l,f){f==null&&(f=t.cm&&(t.cm.display.shift||t.extend)),Yr(t,new mn([ks(t.sel.primary(),i,u,f)],0),l)}function Fs(t,i,u){for(var l=[],f=t.cm&&(t.cm.display.shift||t.extend),m=0;m<t.sel.ranges.length;m++)l[m]=ks(t.sel.ranges[m],i[m],null,f);var S=$n(t.cm,l,t.sel.primIndex);Yr(t,S,u)}function eu(t,i,u,l){var f=t.sel.ranges.slice(0);f[i]=u,Yr(t,$n(t.cm,f,t.sel.primIndex),l)}function kf(t,i,u,l){Yr(t,Ui(i,u),l)}function Cd(t,i,u){var l={ranges:i.ranges,update:function(f){this.ranges=[];for(var m=0;m<f.length;m++)this.ranges[m]=new Qt(ct(t,f[m].anchor),ct(t,f[m].head))},origin:u&&u.origin};return Ke(t,"beforeSelectionChange",t,l),t.cm&&Ke(t.cm,"beforeSelectionChange",t.cm,l),l.ranges!=i.ranges?$n(t.cm,l.ranges,l.ranges.length-1):i}function Ff(t,i,u){var l=t.history.done,f=We(l);f&&f.ranges?(l[l.length-1]=i,Rs(t,i,u)):Yr(t,i,u)}function Yr(t,i,u){Rs(t,i,u),qa(t,t.sel,t.cm?t.cm.curOp.id:NaN,u)}function Rs(t,i,u){(_t(t,"beforeSelectionChange")||t.cm&&_t(t.cm,"beforeSelectionChange"))&&(i=Cd(t,i,u));var l=u&&u.bias||(se(i.primary().head,t.sel.primary().head)<0?-1:1);Rf(t,Ls(t,i,l,!0)),!(u&&u.scroll===!1)&&t.cm&&t.cm.getOption("readOnly")!="nocursor"&&Xa(t.cm)}function Rf(t,i){i.equals(t.sel)||(t.sel=i,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,nt(t.cm)),Lr(t,"cursorActivity",t))}function Ms(t){Rf(t,Ls(t,t.sel,null,!1))}function Ls(t,i,u,l){for(var f,m=0;m<i.ranges.length;m++){var S=i.ranges[m],P=i.ranges.length==t.sel.ranges.length&&t.sel.ranges[m],R=tu(t,S.anchor,P&&P.anchor,u,l),j=S.head==S.anchor?R:tu(t,S.head,P&&P.head,u,l);(f||R!=S.anchor||j!=S.head)&&(f||(f=i.ranges.slice(0,m)),f[m]=new Qt(R,j))}return f?$n(t.cm,f,i.primIndex):i}function eo(t,i,u,l,f){var m=ft(t,i.line);if(m.markedSpans)for(var S=0;S<m.markedSpans.length;++S){var P=m.markedSpans[S],R=P.marker,j="selectLeft"in R?!R.selectLeft:R.inclusiveLeft,le="selectRight"in R?!R.selectRight:R.inclusiveRight;if((P.from==null||(j?P.from<=i.ch:P.from<i.ch))&&(P.to==null||(le?P.to>=i.ch:P.to>i.ch))){if(f&&(Ke(R,"beforeCursorEnter"),R.explicitlyCleared))if(m.markedSpans){--S;continue}else break;if(!R.atomic)continue;if(u){var de=R.find(l<0?1:-1),Ae=void 0;if((l<0?le:j)&&(de=Mf(t,de,-l,de&&de.line==i.line?m:null)),de&&de.line==i.line&&(Ae=se(de,u))&&(l<0?Ae<0:Ae>0))return eo(t,de,i,l,f)}var me=R.find(l<0?-1:1);return(l<0?j:le)&&(me=Mf(t,me,l,me.line==i.line?m:null)),me?eo(t,me,i,l,f):null}}return i}function tu(t,i,u,l,f){var m=l||1,S=eo(t,i,u,m,f)||!f&&eo(t,i,u,m,!0)||eo(t,i,u,-m,f)||!f&&eo(t,i,u,-m,!0);return S||(t.cantEdit=!0,N(t.first,0))}function Mf(t,i,u,l){return u<0&&i.ch==0?i.line>t.first?ct(t,N(i.line-1)):null:u>0&&i.ch==(l||ft(t,i.line)).text.length?i.line<t.first+t.size-1?N(i.line+1,0):null:new N(i.line,i.ch+u)}function ru(t){t.setSelection(N(t.firstLine(),0),N(t.lastLine()),tt)}function ir(t,i,u){var l={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return l.canceled=!0}};return u&&(l.update=function(f,m,S,P){f&&(l.from=ct(t,f)),m&&(l.to=ct(t,m)),S&&(l.text=S),P!==void 0&&(l.origin=P)}),Ke(t,"beforeChange",t,l),t.cm&&Ke(t.cm,"beforeChange",t.cm,l),l.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function to(t,i,u){if(t.cm){if(!t.cm.curOp)return Sr(t.cm,to)(t,i,u);if(t.cm.state.suppressEdits)return}if(!((_t(t,"beforeChange")||t.cm&&_t(t.cm,"beforeChange"))&&(i=ir(t,i,!0),!i))){var l=gl&&!u&&Ju(t,i.from,i.to);if(l)for(var f=l.length-1;f>=0;--f)nu(t,{from:l[f].from,to:l[f].to,text:f?[""]:i.text,origin:i.origin});else nu(t,i)}}function nu(t,i){if(!(i.text.length==1&&i.text[0]==""&&se(i.from,i.to)==0)){var u=Xl(t,i);Er(t,i,u,t.cm?t.cm.curOp.id:NaN),Bo(t,i,u,ti(t,i));var l=[];oi(t,function(f,m){!m&&Se(l,f.history)==-1&&(Df(f.history,i),l.push(f.history)),Bo(f,i,null,ti(f,i))})}}function Ns(t,i,u){var l=t.cm&&t.cm.state.suppressEdits;if(!(l&&!u)){for(var f=t.history,m,S=t.sel,P=i=="undo"?f.done:f.undone,R=i=="undo"?f.undone:f.done,j=0;j<P.length&&(m=P[j],!(u?m.ranges&&!m.equals(t.sel):!m.ranges));j++);if(j!=P.length){for(f.lastOrigin=f.lastSelOrigin=null;;)if(m=P.pop(),m.ranges){if(Is(m,R),u&&!m.equals(t.sel)){Yr(t,m,{clearRedo:!1});return}S=m}else if(l){P.push(m);return}else break;var le=[];Is(S,R),R.push({changes:le,generation:f.generation}),f.generation=m.generation||++f.maxGeneration;for(var de=_t(t,"beforeChange")||t.cm&&_t(t.cm,"beforeChange"),Ae=function(Ne){var ze=m.changes[Ne];if(ze.origin=i,de&&!ir(t,ze,!1))return P.length=0,{};le.push(No(t,ze));var Ye=Ne?Xl(t,ze):We(P);Bo(t,ze,Ye,If(t,ze)),!Ne&&t.cm&&t.cm.scrollIntoView({from:ze.from,to:Wi(ze)});var Ze=[];oi(t,function(Je,rt){!rt&&Se(Ze,Je.history)==-1&&(Df(Je.history,ze),Ze.push(Je.history)),Bo(Je,ze,null,If(Je,ze))})},me=m.changes.length-1;me>=0;--me){var ke=Ae(me);if(ke)return ke.v}}}}function Do(t,i){if(i!=0&&(t.first+=i,t.sel=new mn(Ot(t.sel.ranges,function(f){return new Qt(N(f.anchor.line+i,f.anchor.ch),N(f.head.line+i,f.head.ch))}),t.sel.primIndex),t.cm)){rn(t.cm,t.first,t.first-i,i);for(var u=t.cm.display,l=u.viewFrom;l<u.viewTo;l++)Sn(t.cm,l,"gutter")}}function Bo(t,i,u,l){if(t.cm&&!t.cm.curOp)return Sr(t.cm,Bo)(t,i,u,l);if(i.to.line<t.first){Do(t,i.text.length-1-(i.to.line-i.from.line));return}if(!(i.from.line>t.lastLine())){if(i.from.line<t.first){var f=i.text.length-1-(t.first-i.from.line);Do(t,f),i={from:N(t.first,0),to:N(i.to.line+f,i.to.ch),text:[We(i.text)],origin:i.origin}}var m=t.lastLine();i.to.line>m&&(i={from:i.from,to:N(m,ft(t,m).text.length),text:[i.text[0]],origin:i.origin}),i.removed=bi(t,i.from,i.to),u||(u=Xl(t,i)),t.cm?Ed(t.cm,i,l):cn(t,i,l),Rs(t,u,tt),t.cantEdit&&tu(t,N(t.firstLine(),0))&&(t.cantEdit=!1)}}function Ed(t,i,u){var l=t.doc,f=t.display,m=i.from,S=i.to,P=!1,R=m.line;t.options.lineWrapping||(R=Kt(Tn(ft(l,m.line))),l.iter(R,S.line+1,function(me){if(me==f.maxLine)return P=!0,!0})),l.sel.contains(i.from,i.to)>-1&&nt(t),cn(l,i,u,Rl(t)),t.options.lineWrapping||(l.iter(R,m.line+i.text.length,function(me){var ke=bo(me);ke>f.maxLineLength&&(f.maxLine=me,f.maxLineLength=ke,f.maxLineChanged=!0,P=!1)}),P&&(t.curOp.updateMaxLine=!0)),Yc(l,m.line),Mo(t,400);var j=i.text.length-(S.line-m.line)-1;i.full?rn(t):m.line==S.line&&i.text.length==1&&!Ps(t.doc,i)?Sn(t,m.line,"text"):rn(t,m.line,S.line+1,j);var le=_t(t,"changes"),de=_t(t,"change");if(de||le){var Ae={from:m,to:S,text:i.text,removed:i.removed,origin:i.origin};de&&Lr(t,"change",t,Ae),le&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(Ae)}t.display.selForContextMenu=null}function ro(t,i,u,l,f){var m;l||(l=u),se(l,u)<0&&(m=[l,u],u=m[0],l=m[1]),typeof i=="string"&&(i=t.splitLines(i)),to(t,{from:u,to:l,text:i,origin:f})}function Lf(t,i,u,l){u<t.line?t.line+=l:i<t.line&&(t.line=i,t.ch=0)}function Nf(t,i,u,l){for(var f=0;f<t.length;++f){var m=t[f],S=!0;if(m.ranges){m.copied||(m=t[f]=m.deepCopy(),m.copied=!0);for(var P=0;P<m.ranges.length;P++)Lf(m.ranges[P].anchor,i,u,l),Lf(m.ranges[P].head,i,u,l);continue}for(var R=0;R<m.changes.length;++R){var j=m.changes[R];if(u<j.from.line)j.from=N(j.from.line+l,j.from.ch),j.to=N(j.to.line+l,j.to.ch);else if(i<=j.to.line){S=!1;break}}S||(t.splice(0,f+1),f=0)}}function Df(t,i){var u=i.from.line,l=i.to.line,f=i.text.length-(l-u)-1;Nf(t.done,u,l,f),Nf(t.undone,u,l,f)}function no(t,i,u,l){var f=i,m=i;return typeof i=="number"?m=ft(t,tr(t,i)):f=Kt(i),f==null?null:(l(m,f)&&t.cm&&Sn(t.cm,f,u),m)}function Aa(t){this.lines=t,this.parent=null;for(var i=0,u=0;u<t.length;++u)t[u].parent=this,i+=t[u].height;this.height=i}Aa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,i){for(var u=t,l=t+i;u<l;++u){var f=this.lines[u];this.height-=f.height,Wa(f),Lr(f,"delete")}this.lines.splice(t,i)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,i,u){this.height+=u,this.lines=this.lines.slice(0,t).concat(i).concat(this.lines.slice(t));for(var l=0;l<i.length;++l)i[l].parent=this},iterN:function(t,i,u){for(var l=t+i;t<l;++t)if(u(this.lines[t]))return!0}};function Ca(t){this.children=t;for(var i=0,u=0,l=0;l<t.length;++l){var f=t[l];i+=f.chunkSize(),u+=f.height,f.parent=this}this.size=i,this.height=u,this.parent=null}Ca.prototype={chunkSize:function(){return this.size},removeInner:function(t,i){this.size-=i;for(var u=0;u<this.children.length;++u){var l=this.children[u],f=l.chunkSize();if(t<f){var m=Math.min(i,f-t),S=l.height;if(l.removeInner(t,m),this.height-=S-l.height,f==m&&(this.children.splice(u--,1),l.parent=null),(i-=m)==0)break;t=0}else t-=f}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof Aa))){var P=[];this.collapse(P),this.children=[new Aa(P)],this.children[0].parent=this}},collapse:function(t){for(var i=0;i<this.children.length;++i)this.children[i].collapse(t)},insertInner:function(t,i,u){this.size+=i.length,this.height+=u;for(var l=0;l<this.children.length;++l){var f=this.children[l],m=f.chunkSize();if(t<=m){if(f.insertInner(t,i,u),f.lines&&f.lines.length>50){for(var S=f.lines.length%25+25,P=S;P<f.lines.length;){var R=new Aa(f.lines.slice(P,P+=25));f.height-=R.height,this.children.splice(++l,0,R),R.parent=this}f.lines=f.lines.slice(0,S),this.maybeSpill()}break}t-=m}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var i=t.children.splice(t.children.length-5,5),u=new Ca(i);if(t.parent){t.size-=u.size,t.height-=u.height;var f=Se(t.parent.children,t);t.parent.children.splice(f+1,0,u)}else{var l=new Ca(t.children);l.parent=t,t.children=[l,u],t=l}u.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,i,u){for(var l=0;l<this.children.length;++l){var f=this.children[l],m=f.chunkSize();if(t<m){var S=Math.min(i,m-t);if(f.iterN(t,S,u))return!0;if((i-=S)==0)break;t=0}else t-=m}}};var jo=function(t,i,u){if(u)for(var l in u)u.hasOwnProperty(l)&&(this[l]=u[l]);this.doc=t,this.node=i};jo.prototype.clear=function(){var t=this.doc.cm,i=this.line.widgets,u=this.line,l=Kt(u);if(!(l==null||!i)){for(var f=0;f<i.length;++f)i[f]==this&&i.splice(f--,1);i.length||(u.widgets=null);var m=$a(this);En(u,Math.max(0,u.height-m)),t&&(gn(t,function(){Bf(t,u,-m),Sn(t,l,"widget")}),Lr(t,"lineWidgetCleared",t,this,l))}},jo.prototype.changed=function(){var t=this,i=this.height,u=this.doc.cm,l=this.line;this.height=null;var f=$a(this)-i;!f||(Li(this.doc,l)||En(l,l.height+f),u&&gn(u,function(){u.curOp.forceUpdate=!0,Bf(u,l,f),Lr(u,"lineWidgetChanged",u,t,Kt(l))}))},lr(jo);function Bf(t,i,u){wi(i)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&Vl(t,u)}function Od(t,i,u,l){var f=new jo(t,u,l),m=t.cm;return m&&f.noHScroll&&(m.display.alignWidgets=!0),no(t,i,"widget",function(S){var P=S.widgets||(S.widgets=[]);if(f.insertAt==null?P.push(f):P.splice(Math.min(P.length,Math.max(0,f.insertAt)),0,f),f.line=S,m&&!Li(t,S)){var R=wi(S)<t.scrollTop;En(S,S.height+$a(f)),R&&Vl(m,f.height),m.curOp.forceUpdate=!0}return!0}),m&&Lr(m,"lineWidgetAdded",m,f,typeof i=="number"?i:Kt(i)),f}var iu=0,Pn=function(t,i){this.lines=[],this.type=i,this.doc=t,this.id=++iu};Pn.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,i=t&&!t.curOp;if(i&&Vi(t),_t(this,"clear")){var u=this.find();u&&Lr(this,"clear",u.from,u.to)}for(var l=null,f=null,m=0;m<this.lines.length;++m){var S=this.lines[m],P=go(S.markedSpans,this);t&&!this.collapsed?Sn(t,Kt(S),"text"):t&&(P.to!=null&&(f=Kt(S)),P.from!=null&&(l=Kt(S))),S.markedSpans=Qc(S.markedSpans,P),P.from==null&&this.collapsed&&!Li(this.doc,S)&&t&&En(S,ga(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var R=0;R<this.lines.length;++R){var j=Tn(this.lines[R]),le=bo(j);le>t.display.maxLineLength&&(t.display.maxLine=j,t.display.maxLineLength=le,t.display.maxLineChanged=!0)}l!=null&&t&&this.collapsed&&rn(t,l,f+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Ms(t.doc)),t&&Lr(t,"markerCleared",t,this,l,f),i&&xa(t),this.parent&&this.parent.clear()}},Pn.prototype.find=function(t,i){t==null&&this.type=="bookmark"&&(t=1);for(var u,l,f=0;f<this.lines.length;++f){var m=this.lines[f],S=go(m.markedSpans,this);if(S.from!=null&&(u=N(i?m:Kt(m),S.from),t==-1))return u;if(S.to!=null&&(l=N(i?m:Kt(m),S.to),t==1))return l}return u&&{from:u,to:l}},Pn.prototype.changed=function(){var t=this,i=this.find(-1,!0),u=this,l=this.doc.cm;!i||!l||gn(l,function(){var f=i.line,m=Kt(i.line),S=El(l,m);if(S&&(Ol(S),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!Li(u.doc,f)&&u.height!=null){var P=u.height;u.height=null;var R=$a(u)-P;R&&En(f,f.height+R)}Lr(l,"markerChanged",l,t)})},Pn.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||Se(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},Pn.prototype.detachLine=function(t){if(this.lines.splice(Se(this.lines,t),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},lr(Pn);function Ea(t,i,u,l,f){if(l&&l.shared)return Td(t,i,u,l,f);if(t.cm&&!t.cm.curOp)return Sr(t.cm,Ea)(t,i,u,l,f);var m=new Pn(t,f),S=se(i,u);if(l&&Ct(l,m,!1),S>0||S==0&&m.clearWhenEmpty!==!1)return m;if(m.replacedWith&&(m.collapsed=!0,m.widgetNode=X("span",[m.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||m.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(m.widgetNode.insertLeft=!0)),m.collapsed){if(bl(t,i.line,i,u,m)||i.line!=u.line&&bl(t,u.line,i,u,m))throw new Error("Inserting collapsed marker partially overlapping an existing one");Xc()}m.addToHistory&&Er(t,{from:i,to:u,origin:"markText"},t.sel,NaN);var P=i.line,R=t.cm,j;if(t.iter(P,u.line+1,function(de){R&&m.collapsed&&!R.options.lineWrapping&&Tn(de)==R.display.maxLine&&(j=!0),m.collapsed&&P!=i.line&&En(de,0),Zc(de,new vo(m,P==i.line?i.ch:null,P==u.line?u.ch:null),t.cm&&t.cm.curOp),++P}),m.collapsed&&t.iter(i.line,u.line+1,function(de){Li(t,de)&&En(de,0)}),m.clearOnEnter&&ce(m,"beforeCursorEnter",function(){return m.clear()}),m.readOnly&&(Jc(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),m.collapsed&&(m.id=++iu,m.atomic=!0),R){if(j&&(R.curOp.updateMaxLine=!0),m.collapsed)rn(R,i.line,u.line+1);else if(m.className||m.startStyle||m.endStyle||m.css||m.attributes||m.title)for(var le=i.line;le<=u.line;le++)Sn(R,le,"text");m.atomic&&Ms(R.doc),Lr(R,"markerAdded",R,m)}return m}var Kn=function(t,i){this.markers=t,this.primary=i;for(var u=0;u<t.length;++u)t[u].parent=this};Kn.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();Lr(this,"clear")}},Kn.prototype.find=function(t,i){return this.primary.find(t,i)},lr(Kn);function Td(t,i,u,l,f){l=Ct(l),l.shared=!1;var m=[Ea(t,i,u,l,f)],S=m[0],P=l.widgetNode;return oi(t,function(R){P&&(l.widgetNode=P.cloneNode(!0)),m.push(Ea(R,ct(R,i),ct(R,u),l,f));for(var j=0;j<R.linked.length;++j)if(R.linked[j].isParent)return;S=We(m)}),new Kn(m,S)}function au(t){return t.findMarks(N(t.first,0),t.clipPos(N(t.lastLine())),function(i){return i.parent})}function Pd(t,i){for(var u=0;u<i.length;u++){var l=i[u],f=l.find(),m=t.clipPos(f.from),S=t.clipPos(f.to);if(se(m,S)){var P=Ea(t,m,S,l.primary,l.primary.type);l.markers.push(P),P.parent=l}}}function jf(t){for(var i=function(l){var f=t[l],m=[f.primary.doc];oi(f.primary.doc,function(R){return m.push(R)});for(var S=0;S<f.markers.length;S++){var P=f.markers[S];Se(m,P.doc)==-1&&(P.parent=null,f.markers.splice(S--,1))}},u=0;u<t.length;u++)i(u)}var Id=0,nn=function(t,i,u,l,f){if(!(this instanceof nn))return new nn(t,i,u,l,f);u==null&&(u=0),Ca.call(this,[new Aa([new fa("",null)])]),this.first=u,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=u;var m=N(u,0);this.sel=Ui(m),this.history=new ql(null),this.id=++Id,this.modeOption=i,this.lineSep=l,this.direction=f=="rtl"?"rtl":"ltr",this.extend=!1,typeof t=="string"&&(t=this.splitLines(t)),cn(this,{from:m,to:m,text:t}),Yr(this,Ui(m),tt)};nn.prototype=Qe(Ca.prototype,{constructor:nn,iter:function(t,i,u){u?this.iterN(t-this.first,i-t,u):this.iterN(this.first,this.first+this.size,t)},insert:function(t,i){for(var u=0,l=0;l<i.length;++l)u+=i[l].height;this.insertInner(t-this.first,i,u)},remove:function(t,i){this.removeInner(t-this.first,i)},getValue:function(t){var i=aa(this,this.first,this.first+this.size);return t===!1?i:i.join(t||this.lineSeparator())},setValue:Vr(function(t){var i=N(this.first,0),u=this.first+this.size-1;to(this,{from:i,to:N(u,ft(this,u).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&Io(this.cm,0,0),Yr(this,Ui(i),tt)}),replaceRange:function(t,i,u,l){i=ct(this,i),u=u?ct(this,u):i,ro(this,t,i,u,l)},getRange:function(t,i,u){var l=bi(this,ct(this,t),ct(this,i));return u===!1?l:u===""?l.join(""):l.join(u||this.lineSeparator())},getLine:function(t){var i=this.getLineHandle(t);return i&&i.text},getLineHandle:function(t){if(oa(this,t))return ft(this,t)},getLineNumber:function(t){return Kt(t)},getLineHandleVisualStart:function(t){return typeof t=="number"&&(t=ft(this,t)),Tn(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return ct(this,t)},getCursor:function(t){var i=this.sel.primary(),u;return t==null||t=="head"?u=i.head:t=="anchor"?u=i.anchor:t=="end"||t=="to"||t===!1?u=i.to():u=i.from(),u},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Vr(function(t,i,u){kf(this,ct(this,typeof t=="number"?N(t,i||0):t),null,u)}),setSelection:Vr(function(t,i,u){kf(this,ct(this,t),ct(this,i||t),u)}),extendSelection:Vr(function(t,i,u){$i(this,ct(this,t),i&&ct(this,i),u)}),extendSelections:Vr(function(t,i){Fs(this,as(this,t),i)}),extendSelectionsBy:Vr(function(t,i){var u=Ot(this.sel.ranges,t);Fs(this,as(this,u),i)}),setSelections:Vr(function(t,i,u){if(!!t.length){for(var l=[],f=0;f<t.length;f++)l[f]=new Qt(ct(this,t[f].anchor),ct(this,t[f].head||t[f].anchor));i==null&&(i=Math.min(t.length-1,this.sel.primIndex)),Yr(this,$n(this.cm,l,i),u)}}),addSelection:Vr(function(t,i,u){var l=this.sel.ranges.slice(0);l.push(new Qt(ct(this,t),ct(this,i||t))),Yr(this,$n(this.cm,l,l.length-1),u)}),getSelection:function(t){for(var i=this.sel.ranges,u,l=0;l<i.length;l++){var f=bi(this,i[l].from(),i[l].to());u=u?u.concat(f):f}return t===!1?u:u.join(t||this.lineSeparator())},getSelections:function(t){for(var i=[],u=this.sel.ranges,l=0;l<u.length;l++){var f=bi(this,u[l].from(),u[l].to());t!==!1&&(f=f.join(t||this.lineSeparator())),i[l]=f}return i},replaceSelection:function(t,i,u){for(var l=[],f=0;f<this.sel.ranges.length;f++)l[f]=t;this.replaceSelections(l,i,u||"+input")},replaceSelections:Vr(function(t,i,u){for(var l=[],f=this.sel,m=0;m<f.ranges.length;m++){var S=f.ranges[m];l[m]={from:S.from(),to:S.to(),text:this.splitLines(t[m]),origin:u}}for(var P=i&&i!="end"&&wd(this,l,i),R=l.length-1;R>=0;R--)to(this,l[R]);P?Ff(this,P):this.cm&&Xa(this.cm)}),undo:Vr(function(){Ns(this,"undo")}),redo:Vr(function(){Ns(this,"redo")}),undoSelection:Vr(function(){Ns(this,"undo",!0)}),redoSelection:Vr(function(){Ns(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,i=0,u=0,l=0;l<t.done.length;l++)t.done[l].ranges||++i;for(var f=0;f<t.undone.length;f++)t.undone[f].ranges||++u;return{undo:i,redo:u}},clearHistory:function(){var t=this;this.history=new ql(this.history),oi(this,function(i){return i.history=t.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:Ci(this.history.done),undone:Ci(this.history.undone)}},setHistory:function(t){var i=this.history=new ql(this.history);i.done=Ci(t.done.slice(0),null,!0),i.undone=Ci(t.undone.slice(0),null,!0)},setGutterMarker:Vr(function(t,i,u){return no(this,t,"gutter",function(l){var f=l.gutterMarkers||(l.gutterMarkers={});return f[i]=u,!u&&hr(f)&&(l.gutterMarkers=null),!0})}),clearGutter:Vr(function(t){var i=this;this.iter(function(u){u.gutterMarkers&&u.gutterMarkers[t]&&no(i,u,"gutter",function(){return u.gutterMarkers[t]=null,hr(u.gutterMarkers)&&(u.gutterMarkers=null),!0})})}),lineInfo:function(t){var i;if(typeof t=="number"){if(!oa(this,t)||(i=t,t=ft(this,t),!t))return null}else if(i=Kt(t),i==null)return null;return{line:i,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:Vr(function(t,i,u){return no(this,t,i=="gutter"?"gutter":"class",function(l){var f=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!l[f])l[f]=u;else{if(K(u).test(l[f]))return!1;l[f]+=" "+u}return!0})}),removeLineClass:Vr(function(t,i,u){return no(this,t,i=="gutter"?"gutter":"class",function(l){var f=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",m=l[f];if(m)if(u==null)l[f]=null;else{var S=m.match(K(u));if(!S)return!1;var P=S.index+S[0].length;l[f]=m.slice(0,S.index)+(!S.index||P==m.length?"":" ")+m.slice(P)||null}else return!1;return!0})}),addLineWidget:Vr(function(t,i,u){return Od(this,t,i,u)}),removeLineWidget:function(t){t.clear()},markText:function(t,i,u){return Ea(this,ct(this,t),ct(this,i),u,u&&u.type||"range")},setBookmark:function(t,i){var u={replacedWith:i&&(i.nodeType==null?i.widget:i),insertLeft:i&&i.insertLeft,clearWhenEmpty:!1,shared:i&&i.shared,handleMouseEvents:i&&i.handleMouseEvents};return t=ct(this,t),Ea(this,t,t,u,"bookmark")},findMarksAt:function(t){t=ct(this,t);var i=[],u=ft(this,t.line).markedSpans;if(u)for(var l=0;l<u.length;++l){var f=u[l];(f.from==null||f.from<=t.ch)&&(f.to==null||f.to>=t.ch)&&i.push(f.marker.parent||f.marker)}return i},findMarks:function(t,i,u){t=ct(this,t),i=ct(this,i);var l=[],f=t.line;return this.iter(t.line,i.line+1,function(m){var S=m.markedSpans;if(S)for(var P=0;P<S.length;P++){var R=S[P];!(R.to!=null&&f==t.line&&t.ch>=R.to||R.from==null&&f!=t.line||R.from!=null&&f==i.line&&R.from>=i.ch)&&(!u||u(R.marker))&&l.push(R.marker.parent||R.marker)}++f}),l},getAllMarks:function(){var t=[];return this.iter(function(i){var u=i.markedSpans;if(u)for(var l=0;l<u.length;++l)u[l].from!=null&&t.push(u[l].marker)}),t},posFromIndex:function(t){var i,u=this.first,l=this.lineSeparator().length;return this.iter(function(f){var m=f.text.length+l;if(m>t)return i=t,!0;t-=m,++u}),ct(this,N(u,i))},indexFromPos:function(t){t=ct(this,t);var i=t.ch;if(t.line<this.first||t.ch<0)return 0;var u=this.lineSeparator().length;return this.iter(this.first,t.line,function(l){i+=l.text.length+u}),i},copy:function(t){var i=new nn(aa(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return i.scrollTop=this.scrollTop,i.scrollLeft=this.scrollLeft,i.sel=this.sel,i.extend=!1,t&&(i.history.undoDepth=this.history.undoDepth,i.setHistory(this.getHistory())),i},linkedDoc:function(t){t||(t={});var i=this.first,u=this.first+this.size;t.from!=null&&t.from>i&&(i=t.from),t.to!=null&&t.to<u&&(u=t.to);var l=new nn(aa(this,i,u),t.mode||this.modeOption,i,this.lineSep,this.direction);return t.sharedHist&&(l.history=this.history),(this.linked||(this.linked=[])).push({doc:l,sharedHist:t.sharedHist}),l.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],Pd(l,au(this)),l},unlinkDoc:function(t){if(t instanceof br&&(t=t.doc),this.linked)for(var i=0;i<this.linked.length;++i){var u=this.linked[i];if(u.doc==t){this.linked.splice(i,1),t.unlinkDoc(this),jf(au(this));break}}if(t.history==this.history){var l=[t.id];oi(t,function(f){return l.push(f.id)},!0),t.history=new ql(null),t.history.done=Ci(this.history.done,l),t.history.undone=Ci(this.history.undone,l)}},iterLinkedDocs:function(t){oi(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):_n(t)},lineSeparator:function(){return this.lineSep||`
23
- `},setDirection:Vr(function(t){t!="rtl"&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter(function(i){return i.order=null}),this.cm&&Tf(this.cm))})}),nn.prototype.eachLine=nn.prototype.iter;var Vo=0;function kd(t){var i=this;if(Vf(i),!(ut(i,t)||Wn(i.display,t))){At(t),T&&(Vo=+new Date);var u=Ai(i,t,!0),l=t.dataTransfer.files;if(!(!u||i.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var f=l.length,m=Array(f),S=0,P=function(){++S==f&&Sr(i,function(){u=ct(i.doc,u);var me={from:u,to:u,text:i.doc.splitLines(m.filter(function(ke){return ke!=null}).join(i.doc.lineSeparator())),origin:"paste"};to(i.doc,me),Ff(i.doc,Ui(ct(i.doc,u),ct(i.doc,Wi(me))))})()},R=function(me,ke){if(i.options.allowDropFileTypes&&Se(i.options.allowDropFileTypes,me.type)==-1){P();return}var Ne=new FileReader;Ne.onerror=function(){return P()},Ne.onload=function(){var ze=Ne.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ze)){P();return}m[ke]=ze,P()},Ne.readAsText(me)},j=0;j<l.length;j++)R(l[j],j);else{if(i.state.draggingText&&i.doc.sel.contains(u)>-1){i.state.draggingText(t),setTimeout(function(){return i.display.input.focus()},20);return}try{var le=t.dataTransfer.getData("Text");if(le){var de;if(i.state.draggingText&&!i.state.draggingText.copy&&(de=i.listSelections()),Rs(i.doc,Ui(u,u)),de)for(var Ae=0;Ae<de.length;++Ae)ro(i.doc,"",de[Ae].anchor,de[Ae].head,"drag");i.replaceSelection(le,"around","paste"),i.display.input.focus()}}catch(me){}}}}function Ds(t,i){if(T&&(!t.state.draggingText||+new Date-Vo<100)){$r(i);return}if(!(ut(t,i)||Wn(t.display,i))&&(i.dataTransfer.setData("Text",t.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!oe)){var u=_("img",null,null,"position: fixed; left: 0; top: 0;");u.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ne&&(u.width=u.height=1,t.display.wrapper.appendChild(u),u._top=u.offsetTop),i.dataTransfer.setDragImage(u,0,0),ne&&u.parentNode.removeChild(u)}}function ou(t,i){var u=Ai(t,i);if(!!u){var l=document.createDocumentFragment();Nl(t,u,l),t.display.dragCursor||(t.display.dragCursor=_("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),ve(t.display.dragCursor,l)}}function Vf(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function Uf(t){if(!!document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),u=[],l=0;l<i.length;l++){var f=i[l].CodeMirror;f&&u.push(f)}u.length&&u[0].operation(function(){for(var m=0;m<u.length;m++)t(u[m])})}}var Wf=!1;function Hf(){Wf||(zf(),Wf=!0)}function zf(){var t;ce(window,"resize",function(){t==null&&(t=setTimeout(function(){t=null,Uf(Fd)},100))}),ce(window,"blur",function(){return Uf(Ya)})}function Fd(t){var i=t.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,t.setSize()}for(var Ki={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Uo=0;Uo<10;Uo++)Ki[Uo+48]=Ki[Uo+96]=String(Uo);for(var Bs=65;Bs<=90;Bs++)Ki[Bs]=String.fromCharCode(Bs);for(var Wo=1;Wo<=12;Wo++)Ki[Wo+111]=Ki[Wo+63235]="F"+Wo;var Ei={};Ei.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ei.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ei.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ei.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ei.default=k?Ei.macDefault:Ei.pcDefault;function Gf(t){var i=t.split(/-(?!$)/);t=i[i.length-1];for(var u,l,f,m,S=0;S<i.length-1;S++){var P=i[S];if(/^(cmd|meta|m)$/i.test(P))m=!0;else if(/^a(lt)?$/i.test(P))u=!0;else if(/^(c|ctrl|control)$/i.test(P))l=!0;else if(/^s(hift)?$/i.test(P))f=!0;else throw new Error("Unrecognized modifier name: "+P)}return u&&(t="Alt-"+t),l&&(t="Ctrl-"+t),m&&(t="Cmd-"+t),f&&(t="Shift-"+t),t}function Rd(t){var i={};for(var u in t)if(t.hasOwnProperty(u)){var l=t[u];if(/^(name|fallthrough|(de|at)tach)$/.test(u))continue;if(l=="..."){delete t[u];continue}for(var f=Ot(u.split(" "),Gf),m=0;m<f.length;m++){var S=void 0,P=void 0;m==f.length-1?(P=f.join(" "),S=l):(P=f.slice(0,m+1).join(" "),S="...");var R=i[P];if(!R)i[P]=S;else if(R!=S)throw new Error("Inconsistent bindings for "+P)}delete t[u]}for(var j in i)t[j]=i[j];return t}function Yi(t,i,u,l){i=In(i);var f=i.call?i.call(t,l):i[t];if(f===!1)return"nothing";if(f==="...")return"multi";if(f!=null&&u(f))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return Yi(t,i.fallthrough,u,l);for(var m=0;m<i.fallthrough.length;m++){var S=Yi(t,i.fallthrough[m],u,l);if(S)return S}}}function su(t){var i=typeof t=="string"?t:Ki[t.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function $f(t,i,u){var l=t;return i.altKey&&l!="Alt"&&(t="Alt-"+t),(W?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(t="Ctrl-"+t),(W?i.ctrlKey:i.metaKey)&&l!="Mod"&&(t="Cmd-"+t),!u&&i.shiftKey&&l!="Shift"&&(t="Shift-"+t),t}function Oa(t,i){if(ne&&t.keyCode==34&&t.char)return!1;var u=Ki[t.keyCode];return u==null||t.altGraphKey?!1:(t.keyCode==3&&t.code&&(u=t.code),$f(u,t,i))}function In(t){return typeof t=="string"?Ei[t]:t}function Ta(t,i){for(var u=t.doc.sel.ranges,l=[],f=0;f<u.length;f++){for(var m=i(u[f]);l.length&&se(m.from,We(l).to)<=0;){var S=l.pop();if(se(S.from,m.from)<0){m.from=S.from;break}}l.push(m)}gn(t,function(){for(var P=l.length-1;P>=0;P--)ro(t.doc,"",l[P].from,l[P].to,"+delete");Xa(t)})}function lu(t,i,u){var l=Mt(t.text,i+u,u);return l<0||l>t.text.length?null:l}function uu(t,i,u){var l=lu(t,i.ch,u);return l==null?null:new N(i.line,l,u<0?"after":"before")}function fu(t,i,u,l,f){if(t){i.doc.direction=="rtl"&&(f=-f);var m=lt(u,i.doc.direction);if(m){var S=f<0?We(m):m[0],P=f<0==(S.level==1),R=P?"after":"before",j;if(S.level>0||i.doc.direction=="rtl"){var le=ha(i,u);j=f<0?u.text.length-1:0;var de=ii(i,le,j).top;j=Tt(function(Ae){return ii(i,le,Ae).top==de},f<0==(S.level==1)?S.from:S.to-1,j),R=="before"&&(j=lu(u,j,1))}else j=f<0?S.to:S.from;return new N(l,j,R)}}return new N(l,f<0?u.text.length:0,f<0?"before":"after")}function Kf(t,i,u,l){var f=lt(i,t.doc.direction);if(!f)return uu(i,u,l);u.ch>=i.text.length?(u.ch=i.text.length,u.sticky="before"):u.ch<=0&&(u.ch=0,u.sticky="after");var m=gt(f,u.ch,u.sticky),S=f[m];if(t.doc.direction=="ltr"&&S.level%2==0&&(l>0?S.to>u.ch:S.from<u.ch))return uu(i,u,l);var P=function(Ye,Ze){return lu(i,Ye instanceof N?Ye.ch:Ye,Ze)},R,j=function(Ye){return t.options.lineWrapping?(R=R||ha(t,i),kl(t,i,R,Ye)):{begin:0,end:i.text.length}},le=j(u.sticky=="before"?P(u,-1):u.ch);if(t.doc.direction=="rtl"||S.level==1){var de=S.level==1==l<0,Ae=P(u,de?1:-1);if(Ae!=null&&(de?Ae<=S.to&&Ae<=le.end:Ae>=S.from&&Ae>=le.begin)){var me=de?"before":"after";return new N(u.line,Ae,me)}}var ke=function(Ye,Ze,Je){for(var rt=function(ur,Ur){return Ur?new N(u.line,P(ur,1),"before"):new N(u.line,ur,"after")};Ye>=0&&Ye<f.length;Ye+=Ze){var vt=f[Ye],pt=Ze>0==(vt.level!=1),Dt=pt?Je.begin:P(Je.end,-1);if(vt.from<=Dt&&Dt<vt.to||(Dt=pt?vt.from:P(vt.to,-1),Je.begin<=Dt&&Dt<Je.end))return rt(Dt,pt)}},Ne=ke(m+l,l,le);if(Ne)return Ne;var ze=l>0?le.end:P(le.begin,-1);return ze!=null&&!(l>0&&ze==i.text.length)&&(Ne=ke(l>0?0:f.length-1,l,j(ze)),Ne)?Ne:null}var Ho={selectAll:ru,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),tt)},killLine:function(t){return Ta(t,function(i){if(i.empty()){var u=ft(t.doc,i.head.line).text.length;return i.head.ch==u&&i.head.line<t.lastLine()?{from:i.head,to:N(i.head.line+1,0)}:{from:i.head,to:N(i.head.line,u)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(t){return Ta(t,function(i){return{from:N(i.from().line,0),to:ct(t.doc,N(i.to().line+1,0))}})},delLineLeft:function(t){return Ta(t,function(i){return{from:N(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(t){return Ta(t,function(i){var u=t.charCoords(i.head,"div").top+5,l=t.coordsChar({left:0,top:u},"div");return{from:l,to:i.from()}})},delWrappedLineRight:function(t){return Ta(t,function(i){var u=t.charCoords(i.head,"div").top+5,l=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:u},"div");return{from:i.from(),to:l}})},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(N(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(N(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy(function(i){return cu(t,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy(function(i){return pu(t,i.head)},{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy(function(i){return du(t,i.head.line)},{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy(function(i){var u=t.cursorCoords(i.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:u},"div")},St)},goLineLeft:function(t){return t.extendSelectionsBy(function(i){var u=t.cursorCoords(i.head,"div").top+5;return t.coordsChar({left:0,top:u},"div")},St)},goLineLeftSmart:function(t){return t.extendSelectionsBy(function(i){var u=t.cursorCoords(i.head,"div").top+5,l=t.coordsChar({left:0,top:u},"div");return l.ch<t.getLine(l.line).search(/\S/)?pu(t,i.head):l},St)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"codepoint")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection(" ")},insertSoftTab:function(t){for(var i=[],u=t.listSelections(),l=t.options.tabSize,f=0;f<u.length;f++){var m=u[f].from(),S=Le(t.getLine(m.line),m.ch,l);i.push($t(l-S%l))}t.replaceSelections(i)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return gn(t,function(){for(var i=t.listSelections(),u=[],l=0;l<i.length;l++)if(!!i[l].empty()){var f=i[l].head,m=ft(t.doc,f.line).text;if(m){if(f.ch==m.length&&(f=new N(f.line,f.ch-1)),f.ch>0)f=new N(f.line,f.ch+1),t.replaceRange(m.charAt(f.ch-1)+m.charAt(f.ch-2),N(f.line,f.ch-2),f,"+transpose");else if(f.line>t.doc.first){var S=ft(t.doc,f.line-1).text;S&&(f=new N(f.line,1),t.replaceRange(m.charAt(0)+t.doc.lineSeparator()+S.charAt(S.length-1),N(f.line-1,S.length-1),f,"+transpose"))}}u.push(new Qt(f,f))}t.setSelections(u)})},newlineAndIndent:function(t){return gn(t,function(){for(var i=t.listSelections(),u=i.length-1;u>=0;u--)t.replaceRange(t.doc.lineSeparator(),i[u].anchor,i[u].head,"+input");i=t.listSelections();for(var l=0;l<i.length;l++)t.indentLine(i[l].from().line,null,!0);Xa(t)})},openLine:function(t){return t.replaceSelection(`
24
- `,"start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function cu(t,i){var u=ft(t.doc,i),l=Tn(u);return l!=u&&(i=Kt(l)),fu(!0,t,l,i,1)}function du(t,i){var u=ft(t.doc,i),l=ri(u);return l!=u&&(i=Kt(l)),fu(!0,t,u,i,-1)}function pu(t,i){var u=cu(t,i.line),l=ft(t.doc,u.line),f=lt(l,t.doc.direction);if(!f||f[0].level==0){var m=Math.max(u.ch,l.text.search(/\S/)),S=i.line==u.line&&i.ch<=m&&i.ch;return N(u.line,S?0:m,u.sticky)}return u}function zo(t,i,u){if(typeof i=="string"&&(i=Ho[i],!i))return!1;t.display.input.ensurePolled();var l=t.display.shift,f=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),u&&(t.display.shift=!1),f=i(t)!=$e}finally{t.display.shift=l,t.state.suppressEdits=!1}return f}function Md(t,i,u){for(var l=0;l<t.state.keyMaps.length;l++){var f=Yi(i,t.state.keyMaps[l],u,t);if(f)return f}return t.options.extraKeys&&Yi(i,t.options.extraKeys,u,t)||Yi(i,t.options.keyMap,u,t)}var Yf=new Ce;function Go(t,i,u,l){var f=t.state.keySeq;if(f){if(su(i))return"handled";if(/\'$/.test(i)?t.state.keySeq=null:Yf.set(50,function(){t.state.keySeq==f&&(t.state.keySeq=null,t.display.input.reset())}),js(t,f+" "+i,u,l))return!0}return js(t,i,u,l)}function js(t,i,u,l){var f=Md(t,i,l);return f=="multi"&&(t.state.keySeq=i),f=="handled"&&Lr(t,"keyHandled",t,i,u),(f=="handled"||f=="multi")&&(At(u),Dl(t)),!!f}function Vs(t,i){var u=Oa(i,!0);return u?i.shiftKey&&!t.state.keySeq?Go(t,"Shift-"+u,i,function(l){return zo(t,l,!0)})||Go(t,u,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return zo(t,l)}):Go(t,u,i,function(l){return zo(t,l)}):!1}function Jf(t,i,u){return Go(t,"'"+u+"'",i,function(l){return zo(t,l,!0)})}var Us=null;function Xf(t){var i=this;if(!(t.target&&t.target!=i.display.input.getField())&&(i.curOp.focus=Oe(Xe(i)),!ut(i,t))){T&&F<11&&t.keyCode==27&&(t.returnValue=!1);var u=t.keyCode;i.display.shift=u==16||t.shiftKey;var l=Vs(i,t);ne&&(Us=l?u:null,!l&&u==88&&!na&&(k?t.metaKey:t.ctrlKey)&&i.replaceSelection("",null,"cut")),d&&!k&&!l&&u==46&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),u==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&Ld(i)}}function Ld(t){var i=t.display.lineDiv;Ue(i,"CodeMirror-crosshair");function u(l){(l.keyCode==18||!l.altKey)&&(H(i,"CodeMirror-crosshair"),Be(document,"keyup",u),Be(document,"mouseover",u))}ce(document,"keyup",u),ce(document,"mouseover",u)}function Ws(t){t.keyCode==16&&(this.doc.sel.shift=!1),ut(this,t)}function Qf(t){var i=this;if(!(t.target&&t.target!=i.display.input.getField())&&!(Wn(i.display,t)||ut(i,t)||t.ctrlKey&&!t.altKey||k&&t.metaKey)){var u=t.keyCode,l=t.charCode;if(ne&&u==Us){Us=null,At(t);return}if(!(ne&&(!t.which||t.which<10)&&Vs(i,t))){var f=String.fromCharCode(l==null?u:l);f!="\b"&&(Jf(i,t,f)||i.display.input.onKeyPress(t))}}}var Nd=400,hu=function(t,i,u){this.time=t,this.pos=i,this.button=u};hu.prototype.compare=function(t,i,u){return this.time+Nd>t&&se(i,this.pos)==0&&u==this.button};var $o,Ko;function Dd(t,i){var u=+new Date;return Ko&&Ko.compare(u,t,i)?($o=Ko=null,"triple"):$o&&$o.compare(u,t,i)?(Ko=new hu(u,t,i),$o=null,"double"):($o=new hu(u,t,i),Ko=null,"single")}function Hs(t){var i=this,u=i.display;if(!(ut(i,t)||u.activeTouch&&u.input.supportsTouch())){if(u.input.ensurePolled(),u.shift=t.shiftKey,Wn(u,t)){U||(u.scroller.draggable=!1,setTimeout(function(){return u.scroller.draggable=!0},100));return}if(!Gs(i,t)){var l=Ai(i,t),f=hi(t),m=l?Dd(l,f):"single";xt(i).focus(),f==1&&i.state.selectingText&&i.state.selectingText(t),!(l&&zs(i,f,l,m,t))&&(f==1?l?qf(i,l,m,t):Kr(t)==u.scroller&&At(t):f==2?(l&&$i(i.doc,l),setTimeout(function(){return u.input.focus()},20)):f==3&&(te?i.display.input.onContextMenu(t):bs(i)))}}}function zs(t,i,u,l,f){var m="Click";return l=="double"?m="Double"+m:l=="triple"&&(m="Triple"+m),m=(i==1?"Left":i==2?"Middle":"Right")+m,Go(t,$f(m,f),f,function(S){if(typeof S=="string"&&(S=Ho[S]),!S)return!1;var P=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),P=S(t,u)!=$e}finally{t.state.suppressEdits=!1}return P})}function Zf(t,i,u){var l=t.getOption("configureMouse"),f=l?l(t,i,u):{};if(f.unit==null){var m=V?u.shiftKey&&u.metaKey:u.altKey;f.unit=m?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(f.extend==null||t.doc.extend)&&(f.extend=t.doc.extend||u.shiftKey),f.addNew==null&&(f.addNew=k?u.metaKey:u.ctrlKey),f.moveOnDrag==null&&(f.moveOnDrag=!(k?u.altKey:u.ctrlKey)),f}function qf(t,i,u,l){T?setTimeout(Pt(mf,t),0):t.curOp.focus=Oe(Xe(t));var f=Zf(t,u,l),m=t.doc.sel,S;t.options.dragDrop&&_r&&!t.isReadOnly()&&u=="single"&&(S=m.contains(i))>-1&&(se((S=m.ranges[S]).from(),i)<0||i.xRel>0)&&(se(S.to(),i)>0||i.xRel<0)?Bd(t,l,i,f):Pa(t,l,i,f)}function Bd(t,i,u,l){var f=t.display,m=!1,S=Sr(t,function(j){U&&(f.scroller.draggable=!1),t.state.draggingText=!1,t.state.delayingBlurEvent&&(t.hasFocus()?t.state.delayingBlurEvent=!1:bs(t)),Be(f.wrapper.ownerDocument,"mouseup",S),Be(f.wrapper.ownerDocument,"mousemove",P),Be(f.scroller,"dragstart",R),Be(f.scroller,"drop",S),m||(At(j),l.addNew||$i(t.doc,u,null,null,l.extend),U&&!oe||T&&F==9?setTimeout(function(){f.wrapper.ownerDocument.body.focus({preventScroll:!0}),f.input.focus()},20):f.input.focus())}),P=function(j){m=m||Math.abs(i.clientX-j.clientX)+Math.abs(i.clientY-j.clientY)>=10},R=function(){return m=!0};U&&(f.scroller.draggable=!0),t.state.draggingText=S,S.copy=!l.moveOnDrag,ce(f.wrapper.ownerDocument,"mouseup",S),ce(f.wrapper.ownerDocument,"mousemove",P),ce(f.scroller,"dragstart",R),ce(f.scroller,"drop",S),t.state.delayingBlurEvent=!0,setTimeout(function(){return f.input.focus()},20),f.scroller.dragDrop&&f.scroller.dragDrop()}function _f(t,i,u){if(u=="char")return new Qt(i,i);if(u=="word")return t.findWordAt(i);if(u=="line")return new Qt(N(i.line,0),ct(t.doc,N(i.line+1,0)));var l=u(t,i);return new Qt(l.from,l.to)}function Pa(t,i,u,l){T&&bs(t);var f=t.display,m=t.doc;At(i);var S,P,R=m.sel,j=R.ranges;if(l.addNew&&!l.extend?(P=m.sel.contains(u),P>-1?S=j[P]:S=new Qt(u,u)):(S=m.sel.primary(),P=m.sel.primIndex),l.unit=="rectangle")l.addNew||(S=new Qt(u,u)),u=Ai(t,i,!0,!0),P=-1;else{var le=_f(t,u,l.unit);l.extend?S=ks(S,le.anchor,le.head,l.extend):S=le}l.addNew?P==-1?(P=j.length,Yr(m,$n(t,j.concat([S]),P),{scroll:!1,origin:"*mouse"})):j.length>1&&j[P].empty()&&l.unit=="char"&&!l.extend?(Yr(m,$n(t,j.slice(0,P).concat(j.slice(P+1)),0),{scroll:!1,origin:"*mouse"}),R=m.sel):eu(m,P,S,_e):(P=0,Yr(m,new mn([S],0),_e),R=m.sel);var de=u;function Ae(Je){if(se(de,Je)!=0)if(de=Je,l.unit=="rectangle"){for(var rt=[],vt=t.options.tabSize,pt=Le(ft(m,u.line).text,u.ch,vt),Dt=Le(ft(m,Je.line).text,Je.ch,vt),ur=Math.min(pt,Dt),Ur=Math.max(pt,Dt),wr=Math.min(u.line,Je.line),Gt=Math.min(t.lastLine(),Math.max(u.line,Je.line));wr<=Gt;wr++){var yn=ft(m,wr).text,Fr=It(yn,ur,vt);ur==Ur?rt.push(new Qt(N(wr,Fr),N(wr,Fr))):yn.length>Fr&&rt.push(new Qt(N(wr,Fr),N(wr,It(yn,Ur,vt))))}rt.length||rt.push(new Qt(u,u)),Yr(m,$n(t,R.ranges.slice(0,P).concat(rt),P),{origin:"*mouse",scroll:!1}),t.scrollIntoView(Je)}else{var M=S,Bt=_f(t,Je,l.unit),fr=M.anchor,at;se(Bt.anchor,fr)>0?(at=Bt.head,fr=jt(M.from(),Bt.anchor)):(at=Bt.anchor,fr=Ft(M.to(),Bt.head));var yr=R.ranges.slice(0);yr[P]=ec(t,new Qt(ct(m,fr),at)),Yr(m,$n(t,yr,P),_e)}}var me=f.wrapper.getBoundingClientRect(),ke=0;function Ne(Je){var rt=++ke,vt=Ai(t,Je,!0,l.unit=="rectangle");if(!!vt)if(se(vt,de)!=0){t.curOp.focus=Oe(Xe(t)),Ae(vt);var pt=xs(f,m);(vt.line>=pt.to||vt.line<pt.from)&&setTimeout(Sr(t,function(){ke==rt&&Ne(Je)}),150)}else{var Dt=Je.clientY<me.top?-20:Je.clientY>me.bottom?20:0;Dt&&setTimeout(Sr(t,function(){ke==rt&&(f.scroller.scrollTop+=Dt,Ne(Je))}),50)}}function ze(Je){t.state.selectingText=!1,ke=1/0,Je&&(At(Je),f.input.focus()),Be(f.wrapper.ownerDocument,"mousemove",Ye),Be(f.wrapper.ownerDocument,"mouseup",Ze),m.history.lastSelOrigin=null}var Ye=Sr(t,function(Je){Je.buttons===0||!hi(Je)?ze(Je):Ne(Je)}),Ze=Sr(t,ze);t.state.selectingText=Ze,ce(f.wrapper.ownerDocument,"mousemove",Ye),ce(f.wrapper.ownerDocument,"mouseup",Ze)}function ec(t,i){var u=i.anchor,l=i.head,f=ft(t.doc,u.line);if(se(u,l)==0&&u.sticky==l.sticky)return i;var m=lt(f);if(!m)return i;var S=gt(m,u.ch,u.sticky),P=m[S];if(P.from!=u.ch&&P.to!=u.ch)return i;var R=S+(P.from==u.ch==(P.level!=1)?0:1);if(R==0||R==m.length)return i;var j;if(l.line!=u.line)j=(l.line-u.line)*(t.doc.direction=="ltr"?1:-1)>0;else{var le=gt(m,l.ch,l.sticky),de=le-S||(l.ch-u.ch)*(P.level==1?-1:1);le==R-1||le==R?j=de<0:j=de>0}var Ae=m[R+(j?-1:0)],me=j==(Ae.level==1),ke=me?Ae.from:Ae.to,Ne=me?"after":"before";return u.ch==ke&&u.sticky==Ne?i:new Qt(new N(u.line,ke,Ne),l)}function vu(t,i,u,l){var f,m;if(i.touches)f=i.touches[0].clientX,m=i.touches[0].clientY;else try{f=i.clientX,m=i.clientY}catch(Ae){return!1}if(f>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;l&&At(i);var S=t.display,P=S.lineDiv.getBoundingClientRect();if(m>P.bottom||!_t(t,u))return jn(i);m-=P.top-S.viewOffset;for(var R=0;R<t.display.gutterSpecs.length;++R){var j=S.gutters.childNodes[R];if(j&&j.getBoundingClientRect().right>=f){var le=xi(t.doc,m),de=t.display.gutterSpecs[R];return Ke(t,u,t,le,de.className,i),jn(i)}}}function Gs(t,i){return vu(t,i,"gutterClick",!0)}function jd(t,i){Wn(t.display,i)||$s(t,i)||ut(t,i,"contextmenu")||te||t.display.input.onContextMenu(i)}function $s(t,i){return _t(t,"gutterContextMenu")?vu(t,i,"gutterContextMenu",!1):!1}function tc(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Eo(t)}var Ia={toString:function(){return"CodeMirror.Init"}},rc={},Ks={};function nc(t){var i=t.optionHandlers;function u(l,f,m,S){t.defaults[l]=f,m&&(i[l]=S?function(P,R,j){j!=Ia&&m(P,R,j)}:m)}t.defineOption=u,t.Init=Ia,u("value","",function(l,f){return l.setValue(f)},!0),u("mode",null,function(l,f){l.doc.modeOption=f,Ql(l)},!0),u("indentUnit",2,Ql,!0),u("indentWithTabs",!1),u("smartIndent",!0),u("tabSize",4,function(l){zi(l),Eo(l),rn(l)},!0),u("lineSeparator",null,function(l,f){if(l.doc.lineSep=f,!!f){var m=[],S=l.doc.first;l.doc.iter(function(R){for(var j=0;;){var le=R.text.indexOf(f,j);if(le==-1)break;j=le+f.length,m.push(N(S,le))}S++});for(var P=m.length-1;P>=0;P--)ro(l.doc,f,m[P],N(m[P].line,m[P].ch+f.length))}}),u("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(l,f,m){l.state.specialChars=new RegExp(f.source+(f.test(" ")?"":"| "),"g"),m!=Ia&&l.refresh()}),u("specialCharPlaceholder",ef,function(l){return l.refresh()},!0),u("electricChars",!0),u("inputStyle",E?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),u("spellcheck",!1,function(l,f){return l.getInputField().spellcheck=f},!0),u("autocorrect",!1,function(l,f){return l.getInputField().autocorrect=f},!0),u("autocapitalize",!1,function(l,f){return l.getInputField().autocapitalize=f},!0),u("rtlMoveVisually",!G),u("wholeLineUpdateBefore",!0),u("theme","default",function(l){tc(l),Za(l)},!0),u("keyMap","default",function(l,f,m){var S=In(f),P=m!=Ia&&In(m);P&&P.detach&&P.detach(l,S),S.attach&&S.attach(l,P||null)}),u("extraKeys",null),u("configureMouse",null),u("lineWrapping",!1,ac,!0),u("gutters",[],function(l,f){l.display.gutterSpecs=Kl(f,l.options.lineNumbers),Za(l)},!0),u("fixedGutter",!0,function(l,f){l.display.gutters.style.left=f?ma(l.display)+"px":"0",l.refresh()},!0),u("coverGutterNextToScrollbar",!1,function(l){return Qa(l)},!0),u("scrollbarStyle","native",function(l){Wl(l),Qa(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),u("lineNumbers",!1,function(l,f){l.display.gutterSpecs=Kl(l.options.gutters,f),Za(l)},!0),u("firstLineNumber",1,Za,!0),u("lineNumberFormatter",function(l){return l},Za,!0),u("showCursorWhenSelecting",!1,Po,!0),u("resetSelectionOnContextMenu",!0),u("lineWiseCopyCut",!0),u("pasteLinesPerSelection",!0),u("selectionsMayTouch",!1),u("readOnly",!1,function(l,f){f=="nocursor"&&(Ya(l),l.display.input.blur()),l.display.input.readOnlyChanged(f)}),u("screenReaderLabel",null,function(l,f){f=f===""?null:f,l.display.input.screenReaderLabelChanged(f)}),u("disableInput",!1,function(l,f){f||l.display.input.reset()},!0),u("dragDrop",!0,ic),u("allowDropFileTypes",null),u("cursorBlinkRate",530),u("cursorScrollMargin",0),u("cursorHeight",1,Po,!0),u("singleCursorHeightPerLine",!0,Po,!0),u("workTime",100),u("workDelay",100),u("flattenSpans",!0,zi,!0),u("addModeClass",!1,zi,!0),u("pollInterval",100),u("undoDepth",200,function(l,f){return l.doc.history.undoDepth=f}),u("historyEventDelay",1250),u("viewportMargin",10,function(l){return l.refresh()},!0),u("maxHighlightLength",1e4,zi,!0),u("moveInputWithCursor",!0,function(l,f){f||l.display.input.resetPosition()}),u("tabindex",null,function(l,f){return l.display.input.getField().tabIndex=f||""}),u("autofocus",null),u("direction","ltr",function(l,f){return l.doc.setDirection(f)},!0),u("phrases",null)}function ic(t,i,u){var l=u&&u!=Ia;if(!i!=!l){var f=t.display.dragFunctions,m=i?ce:Be;m(t.display.scroller,"dragstart",f.start),m(t.display.scroller,"dragenter",f.enter),m(t.display.scroller,"dragover",f.over),m(t.display.scroller,"dragleave",f.leave),m(t.display.scroller,"drop",f.drop)}}function ac(t){t.options.lineWrapping?(Ue(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(H(t.display.wrapper,"CodeMirror-wrap"),Sl(t)),gs(t),rn(t),Eo(t),setTimeout(function(){return Qa(t)},100)}function br(t,i){var u=this;if(!(this instanceof br))return new br(t,i);this.options=i=i?Ct(i):{},Ct(rc,i,!1);var l=i.value;typeof l=="string"?l=new nn(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var f=new br.inputStyles[i.inputStyle](this),m=this.display=new Ef(t,l,f,i);m.wrapper.CodeMirror=this,tc(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Wl(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Ce,keySeq:null,specialChars:null},i.autofocus&&!E&&m.input.focus(),T&&F<11&&setTimeout(function(){return u.display.input.reset(!0)},20),oc(this),Hf(),Vi(this),this.curOp.forceUpdate=!0,si(this,l),i.autofocus&&!E||this.hasFocus()?setTimeout(function(){u.hasFocus()&&!u.state.focused&&zn(u)},20):Ya(this);for(var S in Ks)Ks.hasOwnProperty(S)&&Ks[S](this,i[S],Ia);$l(this),i.finishInit&&i.finishInit(this);for(var P=0;P<gu.length;++P)gu[P](this);xa(this),U&&i.lineWrapping&&getComputedStyle(m.lineDiv).textRendering=="optimizelegibility"&&(m.lineDiv.style.textRendering="auto")}br.defaults=rc,br.optionHandlers=Ks;function oc(t){var i=t.display;ce(i.scroller,"mousedown",Sr(t,Hs)),T&&F<11?ce(i.scroller,"dblclick",Sr(t,function(R){if(!ut(t,R)){var j=Ai(t,R);if(!(!j||Gs(t,R)||Wn(t.display,R))){At(R);var le=t.findWordAt(j);$i(t.doc,le.anchor,le.head)}}})):ce(i.scroller,"dblclick",function(R){return ut(t,R)||At(R)}),ce(i.scroller,"contextmenu",function(R){return jd(t,R)}),ce(i.input.getField(),"contextmenu",function(R){i.scroller.contains(R.target)||jd(t,R)});var u,l={end:0};function f(){i.activeTouch&&(u=setTimeout(function(){return i.activeTouch=null},1e3),l=i.activeTouch,l.end=+new Date)}function m(R){if(R.touches.length!=1)return!1;var j=R.touches[0];return j.radiusX<=1&&j.radiusY<=1}function S(R,j){if(j.left==null)return!0;var le=j.left-R.left,de=j.top-R.top;return le*le+de*de>20*20}ce(i.scroller,"touchstart",function(R){if(!ut(t,R)&&!m(R)&&!Gs(t,R)){i.input.ensurePolled(),clearTimeout(u);var j=+new Date;i.activeTouch={start:j,moved:!1,prev:j-l.end<=300?l:null},R.touches.length==1&&(i.activeTouch.left=R.touches[0].pageX,i.activeTouch.top=R.touches[0].pageY)}}),ce(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),ce(i.scroller,"touchend",function(R){var j=i.activeTouch;if(j&&!Wn(i,R)&&j.left!=null&&!j.moved&&new Date-j.start<300){var le=t.coordsChar(i.activeTouch,"page"),de;!j.prev||S(j,j.prev)?de=new Qt(le,le):!j.prev.prev||S(j,j.prev.prev)?de=t.findWordAt(le):de=new Qt(N(le.line,0),ct(t.doc,N(le.line+1,0))),t.setSelection(de.anchor,de.head),t.focus(),At(R)}f()}),ce(i.scroller,"touchcancel",f),ce(i.scroller,"scroll",function(){i.scroller.clientHeight&&(ko(t,i.scroller.scrollTop),ya(t,i.scroller.scrollLeft,!0),Ke(t,"scroll",t))}),ce(i.scroller,"mousewheel",function(R){return Jl(t,R)}),ce(i.scroller,"DOMMouseScroll",function(R){return Jl(t,R)}),ce(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(R){ut(t,R)||$r(R)},over:function(R){ut(t,R)||(ou(t,R),$r(R))},start:function(R){return Ds(t,R)},drop:Sr(t,kd),leave:function(R){ut(t,R)||Vf(t)}};var P=i.input.getField();ce(P,"keyup",function(R){return Ws.call(t,R)}),ce(P,"keydown",Sr(t,Xf)),ce(P,"keypress",Sr(t,Qf)),ce(P,"focus",function(R){return zn(t,R)}),ce(P,"blur",function(R){return Ya(t,R)})}var gu=[];br.defineInitHook=function(t){return gu.push(t)};function Oi(t,i,u,l){var f=t.doc,m;u==null&&(u="add"),u=="smart"&&(f.mode.indent?m=sa(t,i).state:u="prev");var S=t.options.tabSize,P=ft(f,i),R=Le(P.text,null,S);P.stateAfter&&(P.stateAfter=null);var j=P.text.match(/^\s*/)[0],le;if(!l&&!/\S/.test(P.text))le=0,u="not";else if(u=="smart"&&(le=f.mode.indent(m,P.text.slice(j.length),P.text),le==$e||le>150)){if(!l)return;u="prev"}u=="prev"?i>f.first?le=Le(ft(f,i-1).text,null,S):le=0:u=="add"?le=R+t.options.indentUnit:u=="subtract"?le=R-t.options.indentUnit:typeof u=="number"&&(le=R+u),le=Math.max(0,le);var de="",Ae=0;if(t.options.indentWithTabs)for(var me=Math.floor(le/S);me;--me)Ae+=S,de+=" ";if(Ae<le&&(de+=$t(le-Ae)),de!=j)return ro(f,de,N(i,0),N(i,j.length),"+input"),P.stateAfter=null,!0;for(var ke=0;ke<f.sel.ranges.length;ke++){var Ne=f.sel.ranges[ke];if(Ne.head.line==i&&Ne.head.ch<j.length){var ze=N(i,j.length);eu(f,ke,new Qt(ze,ze));break}}}var Yn=null;function io(t){Yn=t}function mu(t,i,u,l,f){var m=t.doc;t.display.shift=!1,l||(l=m.sel);var S=+new Date-200,P=f=="paste"||t.state.pasteIncoming>S,R=_n(i),j=null;if(P&&l.ranges.length>1)if(Yn&&Yn.text.join(`
22
+ left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");t.display.lineSpace.appendChild(S),S.scrollIntoView(f),t.display.lineSpace.removeChild(S)}}}function Bl(t,i,u,l){l==null&&(l=0);var f;!t.options.lineWrapping&&i==u&&(u=i.sticky=="before"?N(i.line,i.ch+1,"before"):i,i=i.ch?N(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var m=0;m<5;m++){var S=!1,P=Hn(t,i),R=!u||u==i?P:Hn(t,u);f={left:Math.min(P.left,R.left),top:Math.min(P.top,R.top)-l,right:Math.max(P.left,R.left),bottom:Math.max(P.bottom,R.bottom)+l};var j=jl(t,f),le=t.doc.scrollTop,de=t.doc.scrollLeft;if(j.scrollTop!=null&&(ko(t,j.scrollTop),Math.abs(t.doc.scrollTop-le)>1&&(S=!0)),j.scrollLeft!=null&&(ya(t,j.scrollLeft),Math.abs(t.doc.scrollLeft-de)>1&&(S=!0)),!S)break}return f}function pd(t,i){var u=jl(t,i);u.scrollTop!=null&&ko(t,u.scrollTop),u.scrollLeft!=null&&ya(t,u.scrollLeft)}function jl(t,i){var u=t.display,l=ga(t.display);i.top<0&&(i.top=0);var f=t.curOp&&t.curOp.scrollTop!=null?t.curOp.scrollTop:u.scroller.scrollTop,m=Al(t),S={};i.bottom-i.top>m&&(i.bottom=i.top+m);var P=t.doc.height+da(u),R=i.top<l,j=i.bottom>P-l;if(i.top<f)S.scrollTop=R?0:i.top;else if(i.bottom>f+m){var le=Math.min(i.top,(j?P:i.bottom)-m);le!=f&&(S.scrollTop=le)}var de=t.options.fixedGutter?0:u.gutters.offsetWidth,Ae=t.curOp&&t.curOp.scrollLeft!=null?t.curOp.scrollLeft:u.scroller.scrollLeft-de,me=pa(t)-u.gutters.offsetWidth,ke=i.right-i.left>me;return ke&&(i.right=i.left+me),i.left<10?S.scrollLeft=0:i.left<Ae?S.scrollLeft=Math.max(0,i.left+de-(ke?0:10)):i.right>me+Ae-3&&(S.scrollLeft=i.right+(ke?0:10)-me),S}function Vl(t,i){i!=null&&(Ss(t),t.curOp.scrollTop=(t.curOp.scrollTop==null?t.doc.scrollTop:t.curOp.scrollTop)+i)}function Xa(t){Ss(t);var i=t.getCursor();t.curOp.scrollToPos={from:i,to:i,margin:t.options.cursorScrollMargin}}function Io(t,i,u){(i!=null||u!=null)&&Ss(t),i!=null&&(t.curOp.scrollLeft=i),u!=null&&(t.curOp.scrollTop=u)}function hd(t,i){Ss(t),t.curOp.scrollToPos=i}function Ss(t){var i=t.curOp.scrollToPos;if(i){t.curOp.scrollToPos=null;var u=pf(t,i.from),l=pf(t,i.to);bf(t,u,l,i.margin)}}function bf(t,i,u,l){var f=jl(t,{left:Math.min(i.left,u.left),top:Math.min(i.top,u.top)-l,right:Math.max(i.right,u.right),bottom:Math.max(i.bottom,u.bottom)+l});Io(t,f.scrollLeft,f.scrollTop)}function ko(t,i){Math.abs(t.doc.scrollTop-i)<2||(d||zl(t,{top:i}),xf(t,i,!0),d&&zl(t),Mo(t,100))}function xf(t,i,u){i=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,i)),!(t.display.scroller.scrollTop==i&&!u)&&(t.doc.scrollTop=i,t.display.scrollbars.setScrollTop(i),t.display.scroller.scrollTop!=i&&(t.display.scroller.scrollTop=i))}function ya(t,i,u,l){i=Math.max(0,Math.min(i,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),!((u?i==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-i)<2)&&!l)&&(t.doc.scrollLeft=i,Os(t),t.display.scroller.scrollLeft!=i&&(t.display.scroller.scrollLeft=i),t.display.scrollbars.setScrollLeft(i))}function Fo(t){var i=t.display,u=i.gutters.offsetWidth,l=Math.round(t.doc.height+da(t.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:t.options.fixedGutter?u:0,docHeight:l,scrollHeight:l+ni(t)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:u}}var ba=function(t,i,u){this.cm=u;var l=this.vert=_("div",[_("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),f=this.horiz=_("div",[_("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=f.tabIndex=-1,t(l),t(f),ce(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),ce(f,"scroll",function(){f.clientWidth&&i(f.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,T&&F<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ba.prototype.update=function(t){var i=t.scrollWidth>t.clientWidth+1,u=t.scrollHeight>t.clientHeight+1,l=t.nativeBarWidth;if(u){this.vert.style.display="block",this.vert.style.bottom=i?l+"px":"0";var f=t.viewHeight-(i?l:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+f)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=u?l+"px":"0",this.horiz.style.left=t.barLeft+"px";var m=t.viewWidth-t.barLeft-(u?l:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+m)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:u?l:0,bottom:i?l:0}},ba.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ba.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ba.prototype.zeroWidthHack=function(){var t=k&&!Y?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Ce,this.disableVert=new Ce},ba.prototype.enableZeroWidthBar=function(t,i,u){t.style.visibility="";function l(){var f=t.getBoundingClientRect(),m=u=="vert"?document.elementFromPoint(f.right-1,(f.top+f.bottom)/2):document.elementFromPoint((f.right+f.left)/2,f.bottom-1);m!=t?t.style.visibility="hidden":i.set(1e3,l)}i.set(1e3,l)},ba.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var Ro=function(){};Ro.prototype.update=function(){return{bottom:0,right:0}},Ro.prototype.setScrollLeft=function(){},Ro.prototype.setScrollTop=function(){},Ro.prototype.clear=function(){};function Qa(t,i){i||(i=Fo(t));var u=t.display.barWidth,l=t.display.barHeight;Ul(t,i);for(var f=0;f<4&&u!=t.display.barWidth||l!=t.display.barHeight;f++)u!=t.display.barWidth&&t.options.lineWrapping&&Ja(t),Ul(t,Fo(t)),u=t.display.barWidth,l=t.display.barHeight}function Ul(t,i){var u=t.display,l=u.scrollbars.update(i);u.sizer.style.paddingRight=(u.barWidth=l.right)+"px",u.sizer.style.paddingBottom=(u.barHeight=l.bottom)+"px",u.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(u.scrollbarFiller.style.display="block",u.scrollbarFiller.style.height=l.bottom+"px",u.scrollbarFiller.style.width=l.right+"px"):u.scrollbarFiller.style.display="",l.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(u.gutterFiller.style.display="block",u.gutterFiller.style.height=l.bottom+"px",u.gutterFiller.style.width=i.gutterWidth+"px"):u.gutterFiller.style.display=""}var Sf={native:ba,null:Ro};function Wl(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&H(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new Sf[t.options.scrollbarStyle](function(i){t.display.wrapper.insertBefore(i,t.display.scrollbarFiller),ce(i,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,u){u=="horizontal"?ya(t,i):ko(t,i)},t),t.display.scrollbars.addClass&&Ue(t.display.wrapper,t.display.scrollbars.addClass)}var ws=0;function Vi(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++ws,markArrays:null},_c(t.curOp)}function xa(t){var i=t.curOp;i&&td(i,function(u){for(var l=0;l<u.ops.length;l++)u.ops[l].cm.curOp=null;vd(u)})}function vd(t){for(var i=t.ops,u=0;u<i.length;u++)gd(i[u]);for(var l=0;l<i.length;l++)Sa(i[l]);for(var f=0;f<i.length;f++)md(i[f]);for(var m=0;m<i.length;m++)Gn(i[m]);for(var S=0;S<i.length;S++)yd(i[S])}function gd(t){var i=t.cm,u=i.display;xd(i),t.updateMaxLine&&Sl(i),t.mustUpdate=t.viewChanged||t.forceUpdate||t.scrollTop!=null||t.scrollToPos&&(t.scrollToPos.from.line<u.viewFrom||t.scrollToPos.to.line>=u.viewTo)||u.maxLineChanged&&i.options.lineWrapping,t.update=t.mustUpdate&&new As(i,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Sa(t){t.updatedDisplay=t.mustUpdate&&Lo(t.cm,t.update)}function md(t){var i=t.cm,u=i.display;t.updatedDisplay&&Ja(i),t.barMeasure=Fo(i),u.maxLineChanged&&!i.options.lineWrapping&&(t.adjustWidthTo=uf(i,u.maxLine,u.maxLine.text.length).left+3,i.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(u.scroller.clientWidth,u.sizer.offsetLeft+t.adjustWidthTo+ni(i)+i.display.barWidth),t.maxScrollLeft=Math.max(0,u.sizer.offsetLeft+t.adjustWidthTo-pa(i))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=u.input.prepareSelection())}function Gn(t){var i=t.cm;t.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<i.doc.scrollLeft&&ya(i,Math.min(i.display.scroller.scrollLeft,t.maxScrollLeft),!0),i.display.maxLineChanged=!1);var u=t.focus&&t.focus==Oe(Xe(i));t.preparedSelection&&i.display.input.showSelection(t.preparedSelection,u),(t.updatedDisplay||t.startHeight!=i.doc.height)&&Qa(i,t.barMeasure),t.updatedDisplay&&Es(i,t.barMeasure),t.selectionChanged&&Dl(i),i.state.focused&&t.updateInput&&i.display.input.reset(t.typing),u&&mf(t.cm)}function yd(t){var i=t.cm,u=i.display,l=i.doc;if(t.updatedDisplay&&wf(i,t.update),u.wheelStartX!=null&&(t.scrollTop!=null||t.scrollLeft!=null||t.scrollToPos)&&(u.wheelStartX=u.wheelStartY=null),t.scrollTop!=null&&xf(i,t.scrollTop,t.forceScroll),t.scrollLeft!=null&&ya(i,t.scrollLeft,!0,!0),t.scrollToPos){var f=Bl(i,ct(l,t.scrollToPos.from),ct(l,t.scrollToPos.to),t.scrollToPos.margin);dd(i,f)}var m=t.maybeHiddenMarkers,S=t.maybeUnhiddenMarkers;if(m)for(var P=0;P<m.length;++P)m[P].lines.length||Ke(m[P],"hide");if(S)for(var R=0;R<S.length;++R)S[R].lines.length&&Ke(S[R],"unhide");u.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),t.changeObjs&&Ke(i,"changes",i,t.changeObjs),t.update&&t.update.finish()}function gn(t,i){if(t.curOp)return i();Vi(t);try{return i()}finally{xa(t)}}function Sr(t,i){return function(){if(t.curOp)return i.apply(t,arguments);Vi(t);try{return i.apply(t,arguments)}finally{xa(t)}}}function zr(t){return function(){if(this.curOp)return t.apply(this,arguments);Vi(this);try{return t.apply(this,arguments)}finally{xa(this)}}}function Vr(t){return function(){var i=this.cm;if(!i||i.curOp)return t.apply(this,arguments);Vi(i);try{return t.apply(this,arguments)}finally{xa(i)}}}function Mo(t,i){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(i,Pt(bd,t))}function bd(t){var i=t.doc;if(!(i.highlightFrontier>=t.display.viewTo)){var u=+new Date+t.options.workTime,l=sa(t,i.highlightFrontier),f=[];i.iter(l.line,Math.min(i.first+i.size,t.display.viewTo+500),function(m){if(l.line>=t.display.viewFrom){var S=m.styles,P=m.text.length>t.options.maxHighlightLength?Cn(i.mode,l.state):null,R=Hu(t,m,l,!0);P&&(l.state=P),m.styles=R.styles;var j=m.styleClasses,le=R.classes;le?m.styleClasses=le:j&&(m.styleClasses=null);for(var de=!S||S.length!=m.styles.length||j!=le&&(!j||!le||j.bgClass!=le.bgClass||j.textClass!=le.textClass),Ae=0;!de&&Ae<S.length;++Ae)de=S[Ae]!=m.styles[Ae];de&&f.push(l.line),m.stateAfter=l.save(),l.nextLine()}else m.text.length<=t.options.maxHighlightLength&&pl(t,m.text,l),m.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>u)return Mo(t,t.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),f.length&&gn(t,function(){for(var m=0;m<f.length;m++)Sn(t,f[m],"text")})}}var As=function(t,i,u){var l=t.display;this.viewport=i,this.visible=xs(l,t.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=pa(t),this.force=u,this.dims=Fl(t),this.events=[]};As.prototype.signal=function(t,i){_t(t,i)&&this.events.push(arguments)},As.prototype.finish=function(){for(var t=0;t<this.events.length;t++)Ke.apply(null,this.events[t])};function xd(t){var i=t.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=ni(t)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=ni(t)+"px",i.scrollbarsClipped=!0)}function Hl(t){if(t.hasFocus())return null;var i=Oe(Xe(t));if(!i||!ge(t.display.lineDiv,i))return null;var u={activeElt:i};if(window.getSelection){var l=xt(t).getSelection();l.anchorNode&&l.extend&&ge(t.display.lineDiv,l.anchorNode)&&(u.anchorNode=l.anchorNode,u.anchorOffset=l.anchorOffset,u.focusNode=l.focusNode,u.focusOffset=l.focusOffset)}return u}function Cs(t){if(!(!t||!t.activeElt||t.activeElt==Oe(t.activeElt.ownerDocument))&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&ge(document.body,t.anchorNode)&&ge(document.body,t.focusNode))){var i=t.activeElt.ownerDocument,u=i.defaultView.getSelection(),l=i.createRange();l.setEnd(t.anchorNode,t.anchorOffset),l.collapse(!1),u.removeAllRanges(),u.addRange(l),u.extend(t.focusNode,t.focusOffset)}}function Lo(t,i){var u=t.display,l=t.doc;if(i.editorIsHidden)return ji(t),!1;if(!i.force&&i.visible.from>=u.viewFrom&&i.visible.to<=u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo)&&u.renderedView==u.view&&Ml(t)==0)return!1;$l(t)&&(ji(t),i.dims=Fl(t));var f=l.first+l.size,m=Math.max(i.visible.from-t.options.viewportMargin,l.first),S=Math.min(f,i.visible.to+t.options.viewportMargin);u.viewFrom<m&&m-u.viewFrom<20&&(m=Math.max(l.first,u.viewFrom)),u.viewTo>S&&u.viewTo-S<20&&(S=Math.min(f,u.viewTo)),Si&&(m=tn(t.doc,m),S=ua(t.doc,S));var P=m!=u.viewFrom||S!=u.viewTo||u.lastWrapHeight!=i.wrapperHeight||u.lastWrapWidth!=i.wrapperWidth;vf(t,m,S),u.viewOffset=wi(ft(t.doc,u.viewFrom)),t.display.mover.style.top=u.viewOffset+"px";var R=Ml(t);if(!P&&R==0&&!i.force&&u.renderedView==u.view&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo))return!1;var j=Hl(t);return R>4&&(u.lineDiv.style.display="none"),Af(t,u.updateLineNumbers,i.dims),R>4&&(u.lineDiv.style.display=""),u.renderedView=u.view,Cs(j),fe(u.cursorDiv),fe(u.selectionDiv),u.gutters.style.height=u.sizer.style.minHeight=0,P&&(u.lastWrapHeight=i.wrapperHeight,u.lastWrapWidth=i.wrapperWidth,Mo(t,400)),u.updateLineNumbers=null,!0}function wf(t,i){for(var u=i.viewport,l=!0;;l=!1){if(!l||!t.options.lineWrapping||i.oldDisplayWidth==pa(t)){if(u&&u.top!=null&&(u={top:Math.min(t.doc.height+da(t.display)-Al(t),u.top)}),i.visible=xs(t.display,t.doc,u),i.visible.from>=t.display.viewFrom&&i.visible.to<=t.display.viewTo)break}else l&&(i.visible=xs(t.display,t.doc,u));if(!Lo(t,i))break;Ja(t);var f=Fo(t);Po(t),Qa(t,f),Es(t,f),i.force=!1}i.signal(t,"update",t),(t.display.viewFrom!=t.display.reportedViewFrom||t.display.viewTo!=t.display.reportedViewTo)&&(i.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function zl(t,i){var u=new As(t,i);if(Lo(t,u)){Ja(t),wf(t,u);var l=Fo(t);Po(t),Qa(t,l),Es(t,l),u.finish()}}function Af(t,i,u){var l=t.display,f=t.options.lineNumbers,m=l.lineDiv,S=m.firstChild;function P(ke){var Ne=ke.nextSibling;return U&&k&&t.display.currentWheelTarget==ke?ke.style.display="none":ke.parentNode.removeChild(ke),Ne}for(var R=l.view,j=l.viewFrom,le=0;le<R.length;le++){var de=R[le];if(!de.hidden)if(!de.node||de.node.parentNode!=m){var Ae=od(t,de,j,u);m.insertBefore(Ae,S)}else{for(;S!=de.node;)S=P(S);var me=f&&i!=null&&i<=j&&de.lineNumber;de.changes&&(Se(de.changes,"gutter")>-1&&(me=!1),rf(t,de,j,u)),me&&(fe(de.lineNumber),de.lineNumber.appendChild(document.createTextNode(Va(t.options,j)))),S=de.node.nextSibling}j+=de.size}for(;S;)S=P(S)}function Gl(t){var i=t.gutters.offsetWidth;t.sizer.style.marginLeft=i+"px",Lr(t,"gutterChanged",t)}function Es(t,i){t.display.sizer.style.minHeight=i.docHeight+"px",t.display.heightForcer.style.top=i.docHeight+"px",t.display.gutters.style.height=i.docHeight+t.display.barHeight+ni(t)+"px"}function Os(t){var i=t.display,u=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!t.options.fixedGutter))){for(var l=ma(i)-i.scroller.scrollLeft+t.doc.scrollLeft,f=i.gutters.offsetWidth,m=l+"px",S=0;S<u.length;S++)if(!u[S].hidden){t.options.fixedGutter&&(u[S].gutter&&(u[S].gutter.style.left=m),u[S].gutterBackground&&(u[S].gutterBackground.style.left=m));var P=u[S].alignable;if(P)for(var R=0;R<P.length;R++)P[R].style.left=m}t.options.fixedGutter&&(i.gutters.style.left=l+f+"px")}}function $l(t){if(!t.options.lineNumbers)return!1;var i=t.doc,u=Va(t.options,i.first+i.size-1),l=t.display;if(u.length!=l.lineNumChars){var f=l.measure.appendChild(_("div",[_("div",u)],"CodeMirror-linenumber CodeMirror-gutter-elt")),m=f.firstChild.offsetWidth,S=f.offsetWidth-m;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(m,l.lineGutter.offsetWidth-S)+1,l.lineNumWidth=l.lineNumInnerWidth+S,l.lineNumChars=l.lineNumInnerWidth?u.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",Gl(t.display),!0}return!1}function Kl(t,i){for(var u=[],l=!1,f=0;f<t.length;f++){var m=t[f],S=null;if(typeof m!="string"&&(S=m.style,m=m.className),m=="CodeMirror-linenumbers")if(i)l=!0;else continue;u.push({className:m,style:S})}return i&&!l&&u.push({className:"CodeMirror-linenumbers",style:null}),u}function Cf(t){var i=t.gutters,u=t.gutterSpecs;fe(i),t.lineGutter=null;for(var l=0;l<u.length;++l){var f=u[l],m=f.className,S=f.style,P=i.appendChild(_("div",null,"CodeMirror-gutter "+m));S&&(P.style.cssText=S),m=="CodeMirror-linenumbers"&&(t.lineGutter=P,P.style.width=(t.lineNumWidth||1)+"px")}i.style.display=u.length?"":"none",Gl(t)}function Za(t){Cf(t.display),rn(t),Os(t)}function Ef(t,i,u,l){var f=this;this.input=u,f.scrollbarFiller=_("div",null,"CodeMirror-scrollbar-filler"),f.scrollbarFiller.setAttribute("cm-not-content","true"),f.gutterFiller=_("div",null,"CodeMirror-gutter-filler"),f.gutterFiller.setAttribute("cm-not-content","true"),f.lineDiv=X("div",null,"CodeMirror-code"),f.selectionDiv=_("div",null,null,"position: relative; z-index: 1"),f.cursorDiv=_("div",null,"CodeMirror-cursors"),f.measure=_("div",null,"CodeMirror-measure"),f.lineMeasure=_("div",null,"CodeMirror-measure"),f.lineSpace=X("div",[f.measure,f.lineMeasure,f.selectionDiv,f.cursorDiv,f.lineDiv],null,"position: relative; outline: none");var m=X("div",[f.lineSpace],"CodeMirror-lines");f.mover=_("div",[m],null,"position: relative"),f.sizer=_("div",[f.mover],"CodeMirror-sizer"),f.sizerWidth=null,f.heightForcer=_("div",null,null,"position: absolute; height: "+De+"px; width: 1px;"),f.gutters=_("div",null,"CodeMirror-gutters"),f.lineGutter=null,f.scroller=_("div",[f.sizer,f.heightForcer,f.gutters],"CodeMirror-scroll"),f.scroller.setAttribute("tabIndex","-1"),f.wrapper=_("div",[f.scrollbarFiller,f.gutterFiller,f.scroller],"CodeMirror"),ee&&ue>=105&&(f.wrapper.style.clipPath="inset(0px)"),f.wrapper.setAttribute("translate","no"),T&&F<8&&(f.gutters.style.zIndex=-1,f.scroller.style.paddingRight=0),!U&&!(d&&E)&&(f.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(f.wrapper):t(f.wrapper)),f.viewFrom=f.viewTo=i.first,f.reportedViewFrom=f.reportedViewTo=i.first,f.view=[],f.renderedView=null,f.externalMeasured=null,f.viewOffset=0,f.lastWrapHeight=f.lastWrapWidth=0,f.updateLineNumbers=null,f.nativeBarWidth=f.barHeight=f.barWidth=0,f.scrollbarsClipped=!1,f.lineNumWidth=f.lineNumInnerWidth=f.lineNumChars=null,f.alignWidgets=!1,f.cachedCharWidth=f.cachedTextHeight=f.cachedPaddingH=null,f.maxLine=null,f.maxLineLength=0,f.maxLineChanged=!1,f.wheelDX=f.wheelDY=f.wheelStartX=f.wheelStartY=null,f.shift=!1,f.selForContextMenu=null,f.activeTouch=null,f.gutterSpecs=Kl(l.gutters,l.lineNumbers),Cf(f),u.init(f)}var Ts=0,ai=null;T?ai=-.53:d?ai=15:ee?ai=-.7:oe&&(ai=-1/3);function Yl(t){var i=t.wheelDeltaX,u=t.wheelDeltaY;return i==null&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(i=t.detail),u==null&&t.detail&&t.axis==t.VERTICAL_AXIS?u=t.detail:u==null&&(u=t.wheelDelta),{x:i,y:u}}function Sd(t){var i=Yl(t);return i.x*=ai,i.y*=ai,i}function Jl(t,i){ee&&ue==102&&(t.display.chromeScrollHack==null?t.display.sizer.style.pointerEvents="none":clearTimeout(t.display.chromeScrollHack),t.display.chromeScrollHack=setTimeout(function(){t.display.chromeScrollHack=null,t.display.sizer.style.pointerEvents=""},100));var u=Yl(i),l=u.x,f=u.y,m=ai;i.deltaMode===0&&(l=i.deltaX,f=i.deltaY,m=1);var S=t.display,P=S.scroller,R=P.scrollWidth>P.clientWidth,j=P.scrollHeight>P.clientHeight;if(!!(l&&R||f&&j)){if(f&&k&&U){e:for(var le=i.target,de=S.view;le!=P;le=le.parentNode)for(var Ae=0;Ae<de.length;Ae++)if(de[Ae].node==le){t.display.currentWheelTarget=le;break e}}if(l&&!d&&!ne&&m!=null){f&&j&&ko(t,Math.max(0,P.scrollTop+f*m)),ya(t,Math.max(0,P.scrollLeft+l*m)),(!f||f&&j)&&At(i),S.wheelStartX=null;return}if(f&&m!=null){var me=f*m,ke=t.doc.scrollTop,Ne=ke+S.wrapper.clientHeight;me<0?ke=Math.max(0,ke+me-50):Ne=Math.min(t.doc.height,Ne+me+50),zl(t,{top:ke,bottom:Ne})}Ts<20&&i.deltaMode!==0&&(S.wheelStartX==null?(S.wheelStartX=P.scrollLeft,S.wheelStartY=P.scrollTop,S.wheelDX=l,S.wheelDY=f,setTimeout(function(){if(S.wheelStartX!=null){var ze=P.scrollLeft-S.wheelStartX,Ye=P.scrollTop-S.wheelStartY,Ze=Ye&&S.wheelDY&&Ye/S.wheelDY||ze&&S.wheelDX&&ze/S.wheelDX;S.wheelStartX=S.wheelStartY=null,Ze&&(ai=(ai*Ts+Ze)/(Ts+1),++Ts)}},200)):(S.wheelDX+=l,S.wheelDY+=f))}}var mn=function(t,i){this.ranges=t,this.primIndex=i};mn.prototype.primary=function(){return this.ranges[this.primIndex]},mn.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var i=0;i<this.ranges.length;i++){var u=this.ranges[i],l=t.ranges[i];if(!Me(u.anchor,l.anchor)||!Me(u.head,l.head))return!1}return!0},mn.prototype.deepCopy=function(){for(var t=[],i=0;i<this.ranges.length;i++)t[i]=new Qt(He(this.ranges[i].anchor),He(this.ranges[i].head));return new mn(t,this.primIndex)},mn.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},mn.prototype.contains=function(t,i){i||(i=t);for(var u=0;u<this.ranges.length;u++){var l=this.ranges[u];if(se(i,l.from())>=0&&se(t,l.to())<=0)return u}return-1};var Qt=function(t,i){this.anchor=t,this.head=i};Qt.prototype.from=function(){return jt(this.anchor,this.head)},Qt.prototype.to=function(){return Ft(this.anchor,this.head)},Qt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function $n(t,i,u){var l=t&&t.options.selectionsMayTouch,f=i[u];i.sort(function(Ae,me){return se(Ae.from(),me.from())}),u=Se(i,f);for(var m=1;m<i.length;m++){var S=i[m],P=i[m-1],R=se(P.to(),S.from());if(l&&!S.empty()?R>0:R>=0){var j=jt(P.from(),S.from()),le=Ft(P.to(),S.to()),de=P.empty()?S.from()==S.head:P.from()==P.head;m<=u&&--u,i.splice(--m,2,new Qt(de?le:j,de?j:le))}}return new mn(i,u)}function Ui(t,i){return new mn([new Qt(t,i||t)],0)}function Wi(t){return t.text?N(t.from.line+t.text.length-1,We(t.text).length+(t.text.length==1?t.from.ch:0)):t.to}function Hi(t,i){if(se(t,i.from)<0)return t;if(se(t,i.to)<=0)return Wi(i);var u=t.line+i.text.length-(i.to.line-i.from.line)-1,l=t.ch;return t.line==i.to.line&&(l+=Wi(i).ch-i.to.ch),N(u,l)}function Xl(t,i){for(var u=[],l=0;l<t.sel.ranges.length;l++){var f=t.sel.ranges[l];u.push(new Qt(Hi(f.anchor,i),Hi(f.head,i)))}return $n(t.cm,u,t.sel.primIndex)}function Of(t,i,u){return t.line==i.line?N(u.line,t.ch-i.ch+u.ch):N(u.line+(t.line-i.line),t.ch)}function wd(t,i,u){for(var l=[],f=N(t.first,0),m=f,S=0;S<i.length;S++){var P=i[S],R=Of(P.from,f,m),j=Of(Wi(P),f,m);if(f=P.to,m=j,u=="around"){var le=t.sel.ranges[S],de=se(le.head,le.anchor)<0;l[S]=new Qt(de?j:R,de?R:j)}else l[S]=new Qt(R,R)}return new mn(l,t.sel.primIndex)}function Ql(t){t.doc.mode=en(t.options,t.doc.modeOption),zi(t)}function zi(t){t.doc.iter(function(i){i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null)}),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,Mo(t,100),t.state.modeGen++,t.curOp&&rn(t)}function Ps(t,i){return i.from.ch==0&&i.to.ch==0&&We(i.text)==""&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function cn(t,i,u,l){function f(Ze){return u?u[Ze]:null}function m(Ze,Je,rt){qu(Ze,Je,rt,l),Lr(Ze,"change",Ze,i)}function S(Ze,Je){for(var rt=[],vt=Ze;vt<Je;++vt)rt.push(new fa(j[vt],f(vt),l));return rt}var P=i.from,R=i.to,j=i.text,le=ft(t,P.line),de=ft(t,R.line),Ae=We(j),me=f(j.length-1),ke=R.line-P.line;if(i.full)t.insert(0,S(0,j.length)),t.remove(j.length,t.size-j.length);else if(Ps(t,i)){var Ne=S(0,j.length-1);m(de,de.text,me),ke&&t.remove(P.line,ke),Ne.length&&t.insert(P.line,Ne)}else if(le==de)if(j.length==1)m(le,le.text.slice(0,P.ch)+Ae+le.text.slice(R.ch),me);else{var ze=S(1,j.length-1);ze.push(new fa(Ae+le.text.slice(R.ch),me,l)),m(le,le.text.slice(0,P.ch)+j[0],f(0)),t.insert(P.line+1,ze)}else if(j.length==1)m(le,le.text.slice(0,P.ch)+j[0]+de.text.slice(R.ch),f(0)),t.remove(P.line+1,ke);else{m(le,le.text.slice(0,P.ch)+j[0],f(0)),m(de,Ae+de.text.slice(R.ch),me);var Ye=S(1,j.length-1);ke>1&&t.remove(P.line+1,ke-1),t.insert(P.line+1,Ye)}Lr(t,"change",t,i)}function oi(t,i,u){function l(f,m,S){if(f.linked)for(var P=0;P<f.linked.length;++P){var R=f.linked[P];if(R.doc!=m){var j=S&&R.sharedHist;u&&!j||(i(R.doc,j),l(R.doc,f,j))}}}l(t,null,!0)}function si(t,i){if(i.cm)throw new Error("This document is already in use.");t.doc=i,i.cm=t,gs(t),Ql(t),Zl(t),t.options.direction=i.direction,t.options.lineWrapping||Sl(t),t.options.mode=i.modeOption,rn(t)}function Zl(t){(t.doc.direction=="rtl"?Ue:H)(t.display.lineDiv,"CodeMirror-rtl")}function Tf(t){gn(t,function(){Zl(t),rn(t)})}function ql(t){this.done=[],this.undone=[],this.undoDepth=t?t.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t?t.maxGeneration:1}function No(t,i){var u={from:He(i.from),to:Wi(i),text:bi(t,i.from,i.to)};return _a(t,u,i.from.line,i.to.line+1),oi(t,function(l){return _a(l,u,i.from.line,i.to.line+1)},!0),u}function _l(t){for(;t.length;){var i=We(t);if(i.ranges)t.pop();else break}}function Pf(t,i){if(i)return _l(t.done),We(t.done);if(t.done.length&&!We(t.done).ranges)return We(t.done);if(t.done.length>1&&!t.done[t.done.length-2].ranges)return t.done.pop(),We(t.done)}function Er(t,i,u,l){var f=t.history;f.undone.length=0;var m=+new Date,S,P;if((f.lastOp==l||f.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&f.lastModTime>m-(t.cm?t.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(S=Pf(f,f.lastOp==l)))P=We(S.changes),se(i.from,i.to)==0&&se(i.from,P.to)==0?P.to=Wi(i):S.changes.push(No(t,i));else{var R=We(f.done);for((!R||!R.ranges)&&Is(t.sel,f.done),S={changes:[No(t,i)],generation:f.generation},f.done.push(S);f.done.length>f.undoDepth;)f.done.shift(),f.done[0].ranges||f.done.shift()}f.done.push(u),f.generation=++f.maxGeneration,f.lastModTime=f.lastSelTime=m,f.lastOp=f.lastSelOp=l,f.lastOrigin=f.lastSelOrigin=i.origin,P||Ke(t,"historyAdded")}function Ad(t,i,u,l){var f=i.charAt(0);return f=="*"||f=="+"&&u.ranges.length==l.ranges.length&&u.somethingSelected()==l.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function qa(t,i,u,l){var f=t.history,m=l&&l.origin;u==f.lastSelOp||m&&f.lastSelOrigin==m&&(f.lastModTime==f.lastSelTime&&f.lastOrigin==m||Ad(t,m,We(f.done),i))?f.done[f.done.length-1]=i:Is(i,f.done),f.lastSelTime=+new Date,f.lastSelOrigin=m,f.lastSelOp=u,l&&l.clearRedo!==!1&&_l(f.undone)}function Is(t,i){var u=We(i);u&&u.ranges&&u.equals(t)||i.push(t)}function _a(t,i,u,l){var f=i["spans_"+t.id],m=0;t.iter(Math.max(t.first,u),Math.min(t.first+t.size,l),function(S){S.markedSpans&&((f||(f=i["spans_"+t.id]={}))[m]=S.markedSpans),++m})}function wa(t){if(!t)return null;for(var i,u=0;u<t.length;++u)t[u].marker.explicitlyCleared?i||(i=t.slice(0,u)):i&&i.push(t[u]);return i?i.length?i:null:t}function Gi(t,i){var u=i["spans_"+t.id];if(!u)return null;for(var l=[],f=0;f<i.text.length;++f)l.push(wa(u[f]));return l}function If(t,i){var u=Gi(t,i),l=ti(t,i);if(!u)return l;if(!l)return u;for(var f=0;f<u.length;++f){var m=u[f],S=l[f];if(m&&S){e:for(var P=0;P<S.length;++P){for(var R=S[P],j=0;j<m.length;++j)if(m[j].marker==R.marker)continue e;m.push(R)}}else S&&(u[f]=S)}return u}function Ci(t,i,u){for(var l=[],f=0;f<t.length;++f){var m=t[f];if(m.ranges){l.push(u?mn.prototype.deepCopy.call(m):m);continue}var S=m.changes,P=[];l.push({changes:P});for(var R=0;R<S.length;++R){var j=S[R],le=void 0;if(P.push({from:j.from,to:j.to,text:j.text}),i)for(var de in j)(le=de.match(/^spans_(\d+)$/))&&Se(i,Number(le[1]))>-1&&(We(P)[de]=j[de],delete j[de])}}return l}function ks(t,i,u,l){if(l){var f=t.anchor;if(u){var m=se(i,f)<0;m!=se(u,f)<0?(f=i,i=u):m!=se(i,u)<0&&(i=u)}return new Qt(f,i)}else return new Qt(u||i,i)}function $i(t,i,u,l,f){f==null&&(f=t.cm&&(t.cm.display.shift||t.extend)),Yr(t,new mn([ks(t.sel.primary(),i,u,f)],0),l)}function Fs(t,i,u){for(var l=[],f=t.cm&&(t.cm.display.shift||t.extend),m=0;m<t.sel.ranges.length;m++)l[m]=ks(t.sel.ranges[m],i[m],null,f);var S=$n(t.cm,l,t.sel.primIndex);Yr(t,S,u)}function eu(t,i,u,l){var f=t.sel.ranges.slice(0);f[i]=u,Yr(t,$n(t.cm,f,t.sel.primIndex),l)}function kf(t,i,u,l){Yr(t,Ui(i,u),l)}function Cd(t,i,u){var l={ranges:i.ranges,update:function(f){this.ranges=[];for(var m=0;m<f.length;m++)this.ranges[m]=new Qt(ct(t,f[m].anchor),ct(t,f[m].head))},origin:u&&u.origin};return Ke(t,"beforeSelectionChange",t,l),t.cm&&Ke(t.cm,"beforeSelectionChange",t.cm,l),l.ranges!=i.ranges?$n(t.cm,l.ranges,l.ranges.length-1):i}function Ff(t,i,u){var l=t.history.done,f=We(l);f&&f.ranges?(l[l.length-1]=i,Rs(t,i,u)):Yr(t,i,u)}function Yr(t,i,u){Rs(t,i,u),qa(t,t.sel,t.cm?t.cm.curOp.id:NaN,u)}function Rs(t,i,u){(_t(t,"beforeSelectionChange")||t.cm&&_t(t.cm,"beforeSelectionChange"))&&(i=Cd(t,i,u));var l=u&&u.bias||(se(i.primary().head,t.sel.primary().head)<0?-1:1);Rf(t,Ls(t,i,l,!0)),!(u&&u.scroll===!1)&&t.cm&&t.cm.getOption("readOnly")!="nocursor"&&Xa(t.cm)}function Rf(t,i){i.equals(t.sel)||(t.sel=i,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,nt(t.cm)),Lr(t,"cursorActivity",t))}function Ms(t){Rf(t,Ls(t,t.sel,null,!1))}function Ls(t,i,u,l){for(var f,m=0;m<i.ranges.length;m++){var S=i.ranges[m],P=i.ranges.length==t.sel.ranges.length&&t.sel.ranges[m],R=tu(t,S.anchor,P&&P.anchor,u,l),j=S.head==S.anchor?R:tu(t,S.head,P&&P.head,u,l);(f||R!=S.anchor||j!=S.head)&&(f||(f=i.ranges.slice(0,m)),f[m]=new Qt(R,j))}return f?$n(t.cm,f,i.primIndex):i}function eo(t,i,u,l,f){var m=ft(t,i.line);if(m.markedSpans)for(var S=0;S<m.markedSpans.length;++S){var P=m.markedSpans[S],R=P.marker,j="selectLeft"in R?!R.selectLeft:R.inclusiveLeft,le="selectRight"in R?!R.selectRight:R.inclusiveRight;if((P.from==null||(j?P.from<=i.ch:P.from<i.ch))&&(P.to==null||(le?P.to>=i.ch:P.to>i.ch))){if(f&&(Ke(R,"beforeCursorEnter"),R.explicitlyCleared))if(m.markedSpans){--S;continue}else break;if(!R.atomic)continue;if(u){var de=R.find(l<0?1:-1),Ae=void 0;if((l<0?le:j)&&(de=Mf(t,de,-l,de&&de.line==i.line?m:null)),de&&de.line==i.line&&(Ae=se(de,u))&&(l<0?Ae<0:Ae>0))return eo(t,de,i,l,f)}var me=R.find(l<0?-1:1);return(l<0?j:le)&&(me=Mf(t,me,l,me.line==i.line?m:null)),me?eo(t,me,i,l,f):null}}return i}function tu(t,i,u,l,f){var m=l||1,S=eo(t,i,u,m,f)||!f&&eo(t,i,u,m,!0)||eo(t,i,u,-m,f)||!f&&eo(t,i,u,-m,!0);return S||(t.cantEdit=!0,N(t.first,0))}function Mf(t,i,u,l){return u<0&&i.ch==0?i.line>t.first?ct(t,N(i.line-1)):null:u>0&&i.ch==(l||ft(t,i.line)).text.length?i.line<t.first+t.size-1?N(i.line+1,0):null:new N(i.line,i.ch+u)}function ru(t){t.setSelection(N(t.firstLine(),0),N(t.lastLine()),tt)}function ir(t,i,u){var l={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return l.canceled=!0}};return u&&(l.update=function(f,m,S,P){f&&(l.from=ct(t,f)),m&&(l.to=ct(t,m)),S&&(l.text=S),P!==void 0&&(l.origin=P)}),Ke(t,"beforeChange",t,l),t.cm&&Ke(t.cm,"beforeChange",t.cm,l),l.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function to(t,i,u){if(t.cm){if(!t.cm.curOp)return Sr(t.cm,to)(t,i,u);if(t.cm.state.suppressEdits)return}if(!((_t(t,"beforeChange")||t.cm&&_t(t.cm,"beforeChange"))&&(i=ir(t,i,!0),!i))){var l=gl&&!u&&Ju(t,i.from,i.to);if(l)for(var f=l.length-1;f>=0;--f)nu(t,{from:l[f].from,to:l[f].to,text:f?[""]:i.text,origin:i.origin});else nu(t,i)}}function nu(t,i){if(!(i.text.length==1&&i.text[0]==""&&se(i.from,i.to)==0)){var u=Xl(t,i);Er(t,i,u,t.cm?t.cm.curOp.id:NaN),Bo(t,i,u,ti(t,i));var l=[];oi(t,function(f,m){!m&&Se(l,f.history)==-1&&(Df(f.history,i),l.push(f.history)),Bo(f,i,null,ti(f,i))})}}function Ns(t,i,u){var l=t.cm&&t.cm.state.suppressEdits;if(!(l&&!u)){for(var f=t.history,m,S=t.sel,P=i=="undo"?f.done:f.undone,R=i=="undo"?f.undone:f.done,j=0;j<P.length&&(m=P[j],!(u?m.ranges&&!m.equals(t.sel):!m.ranges));j++);if(j!=P.length){for(f.lastOrigin=f.lastSelOrigin=null;;)if(m=P.pop(),m.ranges){if(Is(m,R),u&&!m.equals(t.sel)){Yr(t,m,{clearRedo:!1});return}S=m}else if(l){P.push(m);return}else break;var le=[];Is(S,R),R.push({changes:le,generation:f.generation}),f.generation=m.generation||++f.maxGeneration;for(var de=_t(t,"beforeChange")||t.cm&&_t(t.cm,"beforeChange"),Ae=function(Ne){var ze=m.changes[Ne];if(ze.origin=i,de&&!ir(t,ze,!1))return P.length=0,{};le.push(No(t,ze));var Ye=Ne?Xl(t,ze):We(P);Bo(t,ze,Ye,If(t,ze)),!Ne&&t.cm&&t.cm.scrollIntoView({from:ze.from,to:Wi(ze)});var Ze=[];oi(t,function(Je,rt){!rt&&Se(Ze,Je.history)==-1&&(Df(Je.history,ze),Ze.push(Je.history)),Bo(Je,ze,null,If(Je,ze))})},me=m.changes.length-1;me>=0;--me){var ke=Ae(me);if(ke)return ke.v}}}}function Do(t,i){if(i!=0&&(t.first+=i,t.sel=new mn(Ot(t.sel.ranges,function(f){return new Qt(N(f.anchor.line+i,f.anchor.ch),N(f.head.line+i,f.head.ch))}),t.sel.primIndex),t.cm)){rn(t.cm,t.first,t.first-i,i);for(var u=t.cm.display,l=u.viewFrom;l<u.viewTo;l++)Sn(t.cm,l,"gutter")}}function Bo(t,i,u,l){if(t.cm&&!t.cm.curOp)return Sr(t.cm,Bo)(t,i,u,l);if(i.to.line<t.first){Do(t,i.text.length-1-(i.to.line-i.from.line));return}if(!(i.from.line>t.lastLine())){if(i.from.line<t.first){var f=i.text.length-1-(t.first-i.from.line);Do(t,f),i={from:N(t.first,0),to:N(i.to.line+f,i.to.ch),text:[We(i.text)],origin:i.origin}}var m=t.lastLine();i.to.line>m&&(i={from:i.from,to:N(m,ft(t,m).text.length),text:[i.text[0]],origin:i.origin}),i.removed=bi(t,i.from,i.to),u||(u=Xl(t,i)),t.cm?Ed(t.cm,i,l):cn(t,i,l),Rs(t,u,tt),t.cantEdit&&tu(t,N(t.firstLine(),0))&&(t.cantEdit=!1)}}function Ed(t,i,u){var l=t.doc,f=t.display,m=i.from,S=i.to,P=!1,R=m.line;t.options.lineWrapping||(R=Yt(Tn(ft(l,m.line))),l.iter(R,S.line+1,function(me){if(me==f.maxLine)return P=!0,!0})),l.sel.contains(i.from,i.to)>-1&&nt(t),cn(l,i,u,Rl(t)),t.options.lineWrapping||(l.iter(R,m.line+i.text.length,function(me){var ke=bo(me);ke>f.maxLineLength&&(f.maxLine=me,f.maxLineLength=ke,f.maxLineChanged=!0,P=!1)}),P&&(t.curOp.updateMaxLine=!0)),Yc(l,m.line),Mo(t,400);var j=i.text.length-(S.line-m.line)-1;i.full?rn(t):m.line==S.line&&i.text.length==1&&!Ps(t.doc,i)?Sn(t,m.line,"text"):rn(t,m.line,S.line+1,j);var le=_t(t,"changes"),de=_t(t,"change");if(de||le){var Ae={from:m,to:S,text:i.text,removed:i.removed,origin:i.origin};de&&Lr(t,"change",t,Ae),le&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(Ae)}t.display.selForContextMenu=null}function ro(t,i,u,l,f){var m;l||(l=u),se(l,u)<0&&(m=[l,u],u=m[0],l=m[1]),typeof i=="string"&&(i=t.splitLines(i)),to(t,{from:u,to:l,text:i,origin:f})}function Lf(t,i,u,l){u<t.line?t.line+=l:i<t.line&&(t.line=i,t.ch=0)}function Nf(t,i,u,l){for(var f=0;f<t.length;++f){var m=t[f],S=!0;if(m.ranges){m.copied||(m=t[f]=m.deepCopy(),m.copied=!0);for(var P=0;P<m.ranges.length;P++)Lf(m.ranges[P].anchor,i,u,l),Lf(m.ranges[P].head,i,u,l);continue}for(var R=0;R<m.changes.length;++R){var j=m.changes[R];if(u<j.from.line)j.from=N(j.from.line+l,j.from.ch),j.to=N(j.to.line+l,j.to.ch);else if(i<=j.to.line){S=!1;break}}S||(t.splice(0,f+1),f=0)}}function Df(t,i){var u=i.from.line,l=i.to.line,f=i.text.length-(l-u)-1;Nf(t.done,u,l,f),Nf(t.undone,u,l,f)}function no(t,i,u,l){var f=i,m=i;return typeof i=="number"?m=ft(t,tr(t,i)):f=Yt(i),f==null?null:(l(m,f)&&t.cm&&Sn(t.cm,f,u),m)}function Aa(t){this.lines=t,this.parent=null;for(var i=0,u=0;u<t.length;++u)t[u].parent=this,i+=t[u].height;this.height=i}Aa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,i){for(var u=t,l=t+i;u<l;++u){var f=this.lines[u];this.height-=f.height,Wa(f),Lr(f,"delete")}this.lines.splice(t,i)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,i,u){this.height+=u,this.lines=this.lines.slice(0,t).concat(i).concat(this.lines.slice(t));for(var l=0;l<i.length;++l)i[l].parent=this},iterN:function(t,i,u){for(var l=t+i;t<l;++t)if(u(this.lines[t]))return!0}};function Ca(t){this.children=t;for(var i=0,u=0,l=0;l<t.length;++l){var f=t[l];i+=f.chunkSize(),u+=f.height,f.parent=this}this.size=i,this.height=u,this.parent=null}Ca.prototype={chunkSize:function(){return this.size},removeInner:function(t,i){this.size-=i;for(var u=0;u<this.children.length;++u){var l=this.children[u],f=l.chunkSize();if(t<f){var m=Math.min(i,f-t),S=l.height;if(l.removeInner(t,m),this.height-=S-l.height,f==m&&(this.children.splice(u--,1),l.parent=null),(i-=m)==0)break;t=0}else t-=f}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof Aa))){var P=[];this.collapse(P),this.children=[new Aa(P)],this.children[0].parent=this}},collapse:function(t){for(var i=0;i<this.children.length;++i)this.children[i].collapse(t)},insertInner:function(t,i,u){this.size+=i.length,this.height+=u;for(var l=0;l<this.children.length;++l){var f=this.children[l],m=f.chunkSize();if(t<=m){if(f.insertInner(t,i,u),f.lines&&f.lines.length>50){for(var S=f.lines.length%25+25,P=S;P<f.lines.length;){var R=new Aa(f.lines.slice(P,P+=25));f.height-=R.height,this.children.splice(++l,0,R),R.parent=this}f.lines=f.lines.slice(0,S),this.maybeSpill()}break}t-=m}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var i=t.children.splice(t.children.length-5,5),u=new Ca(i);if(t.parent){t.size-=u.size,t.height-=u.height;var f=Se(t.parent.children,t);t.parent.children.splice(f+1,0,u)}else{var l=new Ca(t.children);l.parent=t,t.children=[l,u],t=l}u.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,i,u){for(var l=0;l<this.children.length;++l){var f=this.children[l],m=f.chunkSize();if(t<m){var S=Math.min(i,m-t);if(f.iterN(t,S,u))return!0;if((i-=S)==0)break;t=0}else t-=m}}};var jo=function(t,i,u){if(u)for(var l in u)u.hasOwnProperty(l)&&(this[l]=u[l]);this.doc=t,this.node=i};jo.prototype.clear=function(){var t=this.doc.cm,i=this.line.widgets,u=this.line,l=Yt(u);if(!(l==null||!i)){for(var f=0;f<i.length;++f)i[f]==this&&i.splice(f--,1);i.length||(u.widgets=null);var m=$a(this);En(u,Math.max(0,u.height-m)),t&&(gn(t,function(){Bf(t,u,-m),Sn(t,l,"widget")}),Lr(t,"lineWidgetCleared",t,this,l))}},jo.prototype.changed=function(){var t=this,i=this.height,u=this.doc.cm,l=this.line;this.height=null;var f=$a(this)-i;!f||(Li(this.doc,l)||En(l,l.height+f),u&&gn(u,function(){u.curOp.forceUpdate=!0,Bf(u,l,f),Lr(u,"lineWidgetChanged",u,t,Yt(l))}))},lr(jo);function Bf(t,i,u){wi(i)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&Vl(t,u)}function Od(t,i,u,l){var f=new jo(t,u,l),m=t.cm;return m&&f.noHScroll&&(m.display.alignWidgets=!0),no(t,i,"widget",function(S){var P=S.widgets||(S.widgets=[]);if(f.insertAt==null?P.push(f):P.splice(Math.min(P.length,Math.max(0,f.insertAt)),0,f),f.line=S,m&&!Li(t,S)){var R=wi(S)<t.scrollTop;En(S,S.height+$a(f)),R&&Vl(m,f.height),m.curOp.forceUpdate=!0}return!0}),m&&Lr(m,"lineWidgetAdded",m,f,typeof i=="number"?i:Yt(i)),f}var iu=0,Pn=function(t,i){this.lines=[],this.type=i,this.doc=t,this.id=++iu};Pn.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,i=t&&!t.curOp;if(i&&Vi(t),_t(this,"clear")){var u=this.find();u&&Lr(this,"clear",u.from,u.to)}for(var l=null,f=null,m=0;m<this.lines.length;++m){var S=this.lines[m],P=go(S.markedSpans,this);t&&!this.collapsed?Sn(t,Yt(S),"text"):t&&(P.to!=null&&(f=Yt(S)),P.from!=null&&(l=Yt(S))),S.markedSpans=Qc(S.markedSpans,P),P.from==null&&this.collapsed&&!Li(this.doc,S)&&t&&En(S,ga(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var R=0;R<this.lines.length;++R){var j=Tn(this.lines[R]),le=bo(j);le>t.display.maxLineLength&&(t.display.maxLine=j,t.display.maxLineLength=le,t.display.maxLineChanged=!0)}l!=null&&t&&this.collapsed&&rn(t,l,f+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Ms(t.doc)),t&&Lr(t,"markerCleared",t,this,l,f),i&&xa(t),this.parent&&this.parent.clear()}},Pn.prototype.find=function(t,i){t==null&&this.type=="bookmark"&&(t=1);for(var u,l,f=0;f<this.lines.length;++f){var m=this.lines[f],S=go(m.markedSpans,this);if(S.from!=null&&(u=N(i?m:Yt(m),S.from),t==-1))return u;if(S.to!=null&&(l=N(i?m:Yt(m),S.to),t==1))return l}return u&&{from:u,to:l}},Pn.prototype.changed=function(){var t=this,i=this.find(-1,!0),u=this,l=this.doc.cm;!i||!l||gn(l,function(){var f=i.line,m=Yt(i.line),S=El(l,m);if(S&&(Ol(S),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!Li(u.doc,f)&&u.height!=null){var P=u.height;u.height=null;var R=$a(u)-P;R&&En(f,f.height+R)}Lr(l,"markerChanged",l,t)})},Pn.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||Se(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},Pn.prototype.detachLine=function(t){if(this.lines.splice(Se(this.lines,t),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},lr(Pn);function Ea(t,i,u,l,f){if(l&&l.shared)return Td(t,i,u,l,f);if(t.cm&&!t.cm.curOp)return Sr(t.cm,Ea)(t,i,u,l,f);var m=new Pn(t,f),S=se(i,u);if(l&&Ct(l,m,!1),S>0||S==0&&m.clearWhenEmpty!==!1)return m;if(m.replacedWith&&(m.collapsed=!0,m.widgetNode=X("span",[m.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||m.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(m.widgetNode.insertLeft=!0)),m.collapsed){if(bl(t,i.line,i,u,m)||i.line!=u.line&&bl(t,u.line,i,u,m))throw new Error("Inserting collapsed marker partially overlapping an existing one");Xc()}m.addToHistory&&Er(t,{from:i,to:u,origin:"markText"},t.sel,NaN);var P=i.line,R=t.cm,j;if(t.iter(P,u.line+1,function(de){R&&m.collapsed&&!R.options.lineWrapping&&Tn(de)==R.display.maxLine&&(j=!0),m.collapsed&&P!=i.line&&En(de,0),Zc(de,new vo(m,P==i.line?i.ch:null,P==u.line?u.ch:null),t.cm&&t.cm.curOp),++P}),m.collapsed&&t.iter(i.line,u.line+1,function(de){Li(t,de)&&En(de,0)}),m.clearOnEnter&&ce(m,"beforeCursorEnter",function(){return m.clear()}),m.readOnly&&(Jc(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),m.collapsed&&(m.id=++iu,m.atomic=!0),R){if(j&&(R.curOp.updateMaxLine=!0),m.collapsed)rn(R,i.line,u.line+1);else if(m.className||m.startStyle||m.endStyle||m.css||m.attributes||m.title)for(var le=i.line;le<=u.line;le++)Sn(R,le,"text");m.atomic&&Ms(R.doc),Lr(R,"markerAdded",R,m)}return m}var Kn=function(t,i){this.markers=t,this.primary=i;for(var u=0;u<t.length;++u)t[u].parent=this};Kn.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();Lr(this,"clear")}},Kn.prototype.find=function(t,i){return this.primary.find(t,i)},lr(Kn);function Td(t,i,u,l,f){l=Ct(l),l.shared=!1;var m=[Ea(t,i,u,l,f)],S=m[0],P=l.widgetNode;return oi(t,function(R){P&&(l.widgetNode=P.cloneNode(!0)),m.push(Ea(R,ct(R,i),ct(R,u),l,f));for(var j=0;j<R.linked.length;++j)if(R.linked[j].isParent)return;S=We(m)}),new Kn(m,S)}function au(t){return t.findMarks(N(t.first,0),t.clipPos(N(t.lastLine())),function(i){return i.parent})}function Pd(t,i){for(var u=0;u<i.length;u++){var l=i[u],f=l.find(),m=t.clipPos(f.from),S=t.clipPos(f.to);if(se(m,S)){var P=Ea(t,m,S,l.primary,l.primary.type);l.markers.push(P),P.parent=l}}}function jf(t){for(var i=function(l){var f=t[l],m=[f.primary.doc];oi(f.primary.doc,function(R){return m.push(R)});for(var S=0;S<f.markers.length;S++){var P=f.markers[S];Se(m,P.doc)==-1&&(P.parent=null,f.markers.splice(S--,1))}},u=0;u<t.length;u++)i(u)}var Id=0,nn=function(t,i,u,l,f){if(!(this instanceof nn))return new nn(t,i,u,l,f);u==null&&(u=0),Ca.call(this,[new Aa([new fa("",null)])]),this.first=u,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=u;var m=N(u,0);this.sel=Ui(m),this.history=new ql(null),this.id=++Id,this.modeOption=i,this.lineSep=l,this.direction=f=="rtl"?"rtl":"ltr",this.extend=!1,typeof t=="string"&&(t=this.splitLines(t)),cn(this,{from:m,to:m,text:t}),Yr(this,Ui(m),tt)};nn.prototype=Qe(Ca.prototype,{constructor:nn,iter:function(t,i,u){u?this.iterN(t-this.first,i-t,u):this.iterN(this.first,this.first+this.size,t)},insert:function(t,i){for(var u=0,l=0;l<i.length;++l)u+=i[l].height;this.insertInner(t-this.first,i,u)},remove:function(t,i){this.removeInner(t-this.first,i)},getValue:function(t){var i=aa(this,this.first,this.first+this.size);return t===!1?i:i.join(t||this.lineSeparator())},setValue:Vr(function(t){var i=N(this.first,0),u=this.first+this.size-1;to(this,{from:i,to:N(u,ft(this,u).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&Io(this.cm,0,0),Yr(this,Ui(i),tt)}),replaceRange:function(t,i,u,l){i=ct(this,i),u=u?ct(this,u):i,ro(this,t,i,u,l)},getRange:function(t,i,u){var l=bi(this,ct(this,t),ct(this,i));return u===!1?l:u===""?l.join(""):l.join(u||this.lineSeparator())},getLine:function(t){var i=this.getLineHandle(t);return i&&i.text},getLineHandle:function(t){if(oa(this,t))return ft(this,t)},getLineNumber:function(t){return Yt(t)},getLineHandleVisualStart:function(t){return typeof t=="number"&&(t=ft(this,t)),Tn(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return ct(this,t)},getCursor:function(t){var i=this.sel.primary(),u;return t==null||t=="head"?u=i.head:t=="anchor"?u=i.anchor:t=="end"||t=="to"||t===!1?u=i.to():u=i.from(),u},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Vr(function(t,i,u){kf(this,ct(this,typeof t=="number"?N(t,i||0):t),null,u)}),setSelection:Vr(function(t,i,u){kf(this,ct(this,t),ct(this,i||t),u)}),extendSelection:Vr(function(t,i,u){$i(this,ct(this,t),i&&ct(this,i),u)}),extendSelections:Vr(function(t,i){Fs(this,as(this,t),i)}),extendSelectionsBy:Vr(function(t,i){var u=Ot(this.sel.ranges,t);Fs(this,as(this,u),i)}),setSelections:Vr(function(t,i,u){if(!!t.length){for(var l=[],f=0;f<t.length;f++)l[f]=new Qt(ct(this,t[f].anchor),ct(this,t[f].head||t[f].anchor));i==null&&(i=Math.min(t.length-1,this.sel.primIndex)),Yr(this,$n(this.cm,l,i),u)}}),addSelection:Vr(function(t,i,u){var l=this.sel.ranges.slice(0);l.push(new Qt(ct(this,t),ct(this,i||t))),Yr(this,$n(this.cm,l,l.length-1),u)}),getSelection:function(t){for(var i=this.sel.ranges,u,l=0;l<i.length;l++){var f=bi(this,i[l].from(),i[l].to());u=u?u.concat(f):f}return t===!1?u:u.join(t||this.lineSeparator())},getSelections:function(t){for(var i=[],u=this.sel.ranges,l=0;l<u.length;l++){var f=bi(this,u[l].from(),u[l].to());t!==!1&&(f=f.join(t||this.lineSeparator())),i[l]=f}return i},replaceSelection:function(t,i,u){for(var l=[],f=0;f<this.sel.ranges.length;f++)l[f]=t;this.replaceSelections(l,i,u||"+input")},replaceSelections:Vr(function(t,i,u){for(var l=[],f=this.sel,m=0;m<f.ranges.length;m++){var S=f.ranges[m];l[m]={from:S.from(),to:S.to(),text:this.splitLines(t[m]),origin:u}}for(var P=i&&i!="end"&&wd(this,l,i),R=l.length-1;R>=0;R--)to(this,l[R]);P?Ff(this,P):this.cm&&Xa(this.cm)}),undo:Vr(function(){Ns(this,"undo")}),redo:Vr(function(){Ns(this,"redo")}),undoSelection:Vr(function(){Ns(this,"undo",!0)}),redoSelection:Vr(function(){Ns(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,i=0,u=0,l=0;l<t.done.length;l++)t.done[l].ranges||++i;for(var f=0;f<t.undone.length;f++)t.undone[f].ranges||++u;return{undo:i,redo:u}},clearHistory:function(){var t=this;this.history=new ql(this.history),oi(this,function(i){return i.history=t.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:Ci(this.history.done),undone:Ci(this.history.undone)}},setHistory:function(t){var i=this.history=new ql(this.history);i.done=Ci(t.done.slice(0),null,!0),i.undone=Ci(t.undone.slice(0),null,!0)},setGutterMarker:Vr(function(t,i,u){return no(this,t,"gutter",function(l){var f=l.gutterMarkers||(l.gutterMarkers={});return f[i]=u,!u&&hr(f)&&(l.gutterMarkers=null),!0})}),clearGutter:Vr(function(t){var i=this;this.iter(function(u){u.gutterMarkers&&u.gutterMarkers[t]&&no(i,u,"gutter",function(){return u.gutterMarkers[t]=null,hr(u.gutterMarkers)&&(u.gutterMarkers=null),!0})})}),lineInfo:function(t){var i;if(typeof t=="number"){if(!oa(this,t)||(i=t,t=ft(this,t),!t))return null}else if(i=Yt(t),i==null)return null;return{line:i,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:Vr(function(t,i,u){return no(this,t,i=="gutter"?"gutter":"class",function(l){var f=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!l[f])l[f]=u;else{if(K(u).test(l[f]))return!1;l[f]+=" "+u}return!0})}),removeLineClass:Vr(function(t,i,u){return no(this,t,i=="gutter"?"gutter":"class",function(l){var f=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",m=l[f];if(m)if(u==null)l[f]=null;else{var S=m.match(K(u));if(!S)return!1;var P=S.index+S[0].length;l[f]=m.slice(0,S.index)+(!S.index||P==m.length?"":" ")+m.slice(P)||null}else return!1;return!0})}),addLineWidget:Vr(function(t,i,u){return Od(this,t,i,u)}),removeLineWidget:function(t){t.clear()},markText:function(t,i,u){return Ea(this,ct(this,t),ct(this,i),u,u&&u.type||"range")},setBookmark:function(t,i){var u={replacedWith:i&&(i.nodeType==null?i.widget:i),insertLeft:i&&i.insertLeft,clearWhenEmpty:!1,shared:i&&i.shared,handleMouseEvents:i&&i.handleMouseEvents};return t=ct(this,t),Ea(this,t,t,u,"bookmark")},findMarksAt:function(t){t=ct(this,t);var i=[],u=ft(this,t.line).markedSpans;if(u)for(var l=0;l<u.length;++l){var f=u[l];(f.from==null||f.from<=t.ch)&&(f.to==null||f.to>=t.ch)&&i.push(f.marker.parent||f.marker)}return i},findMarks:function(t,i,u){t=ct(this,t),i=ct(this,i);var l=[],f=t.line;return this.iter(t.line,i.line+1,function(m){var S=m.markedSpans;if(S)for(var P=0;P<S.length;P++){var R=S[P];!(R.to!=null&&f==t.line&&t.ch>=R.to||R.from==null&&f!=t.line||R.from!=null&&f==i.line&&R.from>=i.ch)&&(!u||u(R.marker))&&l.push(R.marker.parent||R.marker)}++f}),l},getAllMarks:function(){var t=[];return this.iter(function(i){var u=i.markedSpans;if(u)for(var l=0;l<u.length;++l)u[l].from!=null&&t.push(u[l].marker)}),t},posFromIndex:function(t){var i,u=this.first,l=this.lineSeparator().length;return this.iter(function(f){var m=f.text.length+l;if(m>t)return i=t,!0;t-=m,++u}),ct(this,N(u,i))},indexFromPos:function(t){t=ct(this,t);var i=t.ch;if(t.line<this.first||t.ch<0)return 0;var u=this.lineSeparator().length;return this.iter(this.first,t.line,function(l){i+=l.text.length+u}),i},copy:function(t){var i=new nn(aa(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return i.scrollTop=this.scrollTop,i.scrollLeft=this.scrollLeft,i.sel=this.sel,i.extend=!1,t&&(i.history.undoDepth=this.history.undoDepth,i.setHistory(this.getHistory())),i},linkedDoc:function(t){t||(t={});var i=this.first,u=this.first+this.size;t.from!=null&&t.from>i&&(i=t.from),t.to!=null&&t.to<u&&(u=t.to);var l=new nn(aa(this,i,u),t.mode||this.modeOption,i,this.lineSep,this.direction);return t.sharedHist&&(l.history=this.history),(this.linked||(this.linked=[])).push({doc:l,sharedHist:t.sharedHist}),l.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],Pd(l,au(this)),l},unlinkDoc:function(t){if(t instanceof br&&(t=t.doc),this.linked)for(var i=0;i<this.linked.length;++i){var u=this.linked[i];if(u.doc==t){this.linked.splice(i,1),t.unlinkDoc(this),jf(au(this));break}}if(t.history==this.history){var l=[t.id];oi(t,function(f){return l.push(f.id)},!0),t.history=new ql(null),t.history.done=Ci(this.history.done,l),t.history.undone=Ci(this.history.undone,l)}},iterLinkedDocs:function(t){oi(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):_n(t)},lineSeparator:function(){return this.lineSep||`
23
+ `},setDirection:Vr(function(t){t!="rtl"&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter(function(i){return i.order=null}),this.cm&&Tf(this.cm))})}),nn.prototype.eachLine=nn.prototype.iter;var Vo=0;function kd(t){var i=this;if(Vf(i),!(ut(i,t)||Wn(i.display,t))){At(t),T&&(Vo=+new Date);var u=Ai(i,t,!0),l=t.dataTransfer.files;if(!(!u||i.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var f=l.length,m=Array(f),S=0,P=function(){++S==f&&Sr(i,function(){u=ct(i.doc,u);var me={from:u,to:u,text:i.doc.splitLines(m.filter(function(ke){return ke!=null}).join(i.doc.lineSeparator())),origin:"paste"};to(i.doc,me),Ff(i.doc,Ui(ct(i.doc,u),ct(i.doc,Wi(me))))})()},R=function(me,ke){if(i.options.allowDropFileTypes&&Se(i.options.allowDropFileTypes,me.type)==-1){P();return}var Ne=new FileReader;Ne.onerror=function(){return P()},Ne.onload=function(){var ze=Ne.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ze)){P();return}m[ke]=ze,P()},Ne.readAsText(me)},j=0;j<l.length;j++)R(l[j],j);else{if(i.state.draggingText&&i.doc.sel.contains(u)>-1){i.state.draggingText(t),setTimeout(function(){return i.display.input.focus()},20);return}try{var le=t.dataTransfer.getData("Text");if(le){var de;if(i.state.draggingText&&!i.state.draggingText.copy&&(de=i.listSelections()),Rs(i.doc,Ui(u,u)),de)for(var Ae=0;Ae<de.length;++Ae)ro(i.doc,"",de[Ae].anchor,de[Ae].head,"drag");i.replaceSelection(le,"around","paste"),i.display.input.focus()}}catch(me){}}}}function Ds(t,i){if(T&&(!t.state.draggingText||+new Date-Vo<100)){$r(i);return}if(!(ut(t,i)||Wn(t.display,i))&&(i.dataTransfer.setData("Text",t.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!oe)){var u=_("img",null,null,"position: fixed; left: 0; top: 0;");u.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ne&&(u.width=u.height=1,t.display.wrapper.appendChild(u),u._top=u.offsetTop),i.dataTransfer.setDragImage(u,0,0),ne&&u.parentNode.removeChild(u)}}function ou(t,i){var u=Ai(t,i);if(!!u){var l=document.createDocumentFragment();Nl(t,u,l),t.display.dragCursor||(t.display.dragCursor=_("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),ve(t.display.dragCursor,l)}}function Vf(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function Uf(t){if(!!document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),u=[],l=0;l<i.length;l++){var f=i[l].CodeMirror;f&&u.push(f)}u.length&&u[0].operation(function(){for(var m=0;m<u.length;m++)t(u[m])})}}var Wf=!1;function Hf(){Wf||(zf(),Wf=!0)}function zf(){var t;ce(window,"resize",function(){t==null&&(t=setTimeout(function(){t=null,Uf(Fd)},100))}),ce(window,"blur",function(){return Uf(Ya)})}function Fd(t){var i=t.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,t.setSize()}for(var Ki={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Uo=0;Uo<10;Uo++)Ki[Uo+48]=Ki[Uo+96]=String(Uo);for(var Bs=65;Bs<=90;Bs++)Ki[Bs]=String.fromCharCode(Bs);for(var Wo=1;Wo<=12;Wo++)Ki[Wo+111]=Ki[Wo+63235]="F"+Wo;var Ei={};Ei.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ei.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ei.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ei.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ei.default=k?Ei.macDefault:Ei.pcDefault;function Gf(t){var i=t.split(/-(?!$)/);t=i[i.length-1];for(var u,l,f,m,S=0;S<i.length-1;S++){var P=i[S];if(/^(cmd|meta|m)$/i.test(P))m=!0;else if(/^a(lt)?$/i.test(P))u=!0;else if(/^(c|ctrl|control)$/i.test(P))l=!0;else if(/^s(hift)?$/i.test(P))f=!0;else throw new Error("Unrecognized modifier name: "+P)}return u&&(t="Alt-"+t),l&&(t="Ctrl-"+t),m&&(t="Cmd-"+t),f&&(t="Shift-"+t),t}function Rd(t){var i={};for(var u in t)if(t.hasOwnProperty(u)){var l=t[u];if(/^(name|fallthrough|(de|at)tach)$/.test(u))continue;if(l=="..."){delete t[u];continue}for(var f=Ot(u.split(" "),Gf),m=0;m<f.length;m++){var S=void 0,P=void 0;m==f.length-1?(P=f.join(" "),S=l):(P=f.slice(0,m+1).join(" "),S="...");var R=i[P];if(!R)i[P]=S;else if(R!=S)throw new Error("Inconsistent bindings for "+P)}delete t[u]}for(var j in i)t[j]=i[j];return t}function Yi(t,i,u,l){i=In(i);var f=i.call?i.call(t,l):i[t];if(f===!1)return"nothing";if(f==="...")return"multi";if(f!=null&&u(f))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return Yi(t,i.fallthrough,u,l);for(var m=0;m<i.fallthrough.length;m++){var S=Yi(t,i.fallthrough[m],u,l);if(S)return S}}}function su(t){var i=typeof t=="string"?t:Ki[t.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function $f(t,i,u){var l=t;return i.altKey&&l!="Alt"&&(t="Alt-"+t),(W?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(t="Ctrl-"+t),(W?i.ctrlKey:i.metaKey)&&l!="Mod"&&(t="Cmd-"+t),!u&&i.shiftKey&&l!="Shift"&&(t="Shift-"+t),t}function Oa(t,i){if(ne&&t.keyCode==34&&t.char)return!1;var u=Ki[t.keyCode];return u==null||t.altGraphKey?!1:(t.keyCode==3&&t.code&&(u=t.code),$f(u,t,i))}function In(t){return typeof t=="string"?Ei[t]:t}function Ta(t,i){for(var u=t.doc.sel.ranges,l=[],f=0;f<u.length;f++){for(var m=i(u[f]);l.length&&se(m.from,We(l).to)<=0;){var S=l.pop();if(se(S.from,m.from)<0){m.from=S.from;break}}l.push(m)}gn(t,function(){for(var P=l.length-1;P>=0;P--)ro(t.doc,"",l[P].from,l[P].to,"+delete");Xa(t)})}function lu(t,i,u){var l=Mt(t.text,i+u,u);return l<0||l>t.text.length?null:l}function uu(t,i,u){var l=lu(t,i.ch,u);return l==null?null:new N(i.line,l,u<0?"after":"before")}function fu(t,i,u,l,f){if(t){i.doc.direction=="rtl"&&(f=-f);var m=lt(u,i.doc.direction);if(m){var S=f<0?We(m):m[0],P=f<0==(S.level==1),R=P?"after":"before",j;if(S.level>0||i.doc.direction=="rtl"){var le=ha(i,u);j=f<0?u.text.length-1:0;var de=ii(i,le,j).top;j=Tt(function(Ae){return ii(i,le,Ae).top==de},f<0==(S.level==1)?S.from:S.to-1,j),R=="before"&&(j=lu(u,j,1))}else j=f<0?S.to:S.from;return new N(l,j,R)}}return new N(l,f<0?u.text.length:0,f<0?"before":"after")}function Kf(t,i,u,l){var f=lt(i,t.doc.direction);if(!f)return uu(i,u,l);u.ch>=i.text.length?(u.ch=i.text.length,u.sticky="before"):u.ch<=0&&(u.ch=0,u.sticky="after");var m=gt(f,u.ch,u.sticky),S=f[m];if(t.doc.direction=="ltr"&&S.level%2==0&&(l>0?S.to>u.ch:S.from<u.ch))return uu(i,u,l);var P=function(Ye,Ze){return lu(i,Ye instanceof N?Ye.ch:Ye,Ze)},R,j=function(Ye){return t.options.lineWrapping?(R=R||ha(t,i),kl(t,i,R,Ye)):{begin:0,end:i.text.length}},le=j(u.sticky=="before"?P(u,-1):u.ch);if(t.doc.direction=="rtl"||S.level==1){var de=S.level==1==l<0,Ae=P(u,de?1:-1);if(Ae!=null&&(de?Ae<=S.to&&Ae<=le.end:Ae>=S.from&&Ae>=le.begin)){var me=de?"before":"after";return new N(u.line,Ae,me)}}var ke=function(Ye,Ze,Je){for(var rt=function(ur,Ur){return Ur?new N(u.line,P(ur,1),"before"):new N(u.line,ur,"after")};Ye>=0&&Ye<f.length;Ye+=Ze){var vt=f[Ye],pt=Ze>0==(vt.level!=1),Dt=pt?Je.begin:P(Je.end,-1);if(vt.from<=Dt&&Dt<vt.to||(Dt=pt?vt.from:P(vt.to,-1),Je.begin<=Dt&&Dt<Je.end))return rt(Dt,pt)}},Ne=ke(m+l,l,le);if(Ne)return Ne;var ze=l>0?le.end:P(le.begin,-1);return ze!=null&&!(l>0&&ze==i.text.length)&&(Ne=ke(l>0?0:f.length-1,l,j(ze)),Ne)?Ne:null}var Ho={selectAll:ru,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),tt)},killLine:function(t){return Ta(t,function(i){if(i.empty()){var u=ft(t.doc,i.head.line).text.length;return i.head.ch==u&&i.head.line<t.lastLine()?{from:i.head,to:N(i.head.line+1,0)}:{from:i.head,to:N(i.head.line,u)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(t){return Ta(t,function(i){return{from:N(i.from().line,0),to:ct(t.doc,N(i.to().line+1,0))}})},delLineLeft:function(t){return Ta(t,function(i){return{from:N(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(t){return Ta(t,function(i){var u=t.charCoords(i.head,"div").top+5,l=t.coordsChar({left:0,top:u},"div");return{from:l,to:i.from()}})},delWrappedLineRight:function(t){return Ta(t,function(i){var u=t.charCoords(i.head,"div").top+5,l=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:u},"div");return{from:i.from(),to:l}})},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(N(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(N(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy(function(i){return cu(t,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy(function(i){return pu(t,i.head)},{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy(function(i){return du(t,i.head.line)},{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy(function(i){var u=t.cursorCoords(i.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:u},"div")},St)},goLineLeft:function(t){return t.extendSelectionsBy(function(i){var u=t.cursorCoords(i.head,"div").top+5;return t.coordsChar({left:0,top:u},"div")},St)},goLineLeftSmart:function(t){return t.extendSelectionsBy(function(i){var u=t.cursorCoords(i.head,"div").top+5,l=t.coordsChar({left:0,top:u},"div");return l.ch<t.getLine(l.line).search(/\S/)?pu(t,i.head):l},St)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"codepoint")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection(" ")},insertSoftTab:function(t){for(var i=[],u=t.listSelections(),l=t.options.tabSize,f=0;f<u.length;f++){var m=u[f].from(),S=Le(t.getLine(m.line),m.ch,l);i.push(Kt(l-S%l))}t.replaceSelections(i)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return gn(t,function(){for(var i=t.listSelections(),u=[],l=0;l<i.length;l++)if(!!i[l].empty()){var f=i[l].head,m=ft(t.doc,f.line).text;if(m){if(f.ch==m.length&&(f=new N(f.line,f.ch-1)),f.ch>0)f=new N(f.line,f.ch+1),t.replaceRange(m.charAt(f.ch-1)+m.charAt(f.ch-2),N(f.line,f.ch-2),f,"+transpose");else if(f.line>t.doc.first){var S=ft(t.doc,f.line-1).text;S&&(f=new N(f.line,1),t.replaceRange(m.charAt(0)+t.doc.lineSeparator()+S.charAt(S.length-1),N(f.line-1,S.length-1),f,"+transpose"))}}u.push(new Qt(f,f))}t.setSelections(u)})},newlineAndIndent:function(t){return gn(t,function(){for(var i=t.listSelections(),u=i.length-1;u>=0;u--)t.replaceRange(t.doc.lineSeparator(),i[u].anchor,i[u].head,"+input");i=t.listSelections();for(var l=0;l<i.length;l++)t.indentLine(i[l].from().line,null,!0);Xa(t)})},openLine:function(t){return t.replaceSelection(`
24
+ `,"start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function cu(t,i){var u=ft(t.doc,i),l=Tn(u);return l!=u&&(i=Yt(l)),fu(!0,t,l,i,1)}function du(t,i){var u=ft(t.doc,i),l=ri(u);return l!=u&&(i=Yt(l)),fu(!0,t,u,i,-1)}function pu(t,i){var u=cu(t,i.line),l=ft(t.doc,u.line),f=lt(l,t.doc.direction);if(!f||f[0].level==0){var m=Math.max(u.ch,l.text.search(/\S/)),S=i.line==u.line&&i.ch<=m&&i.ch;return N(u.line,S?0:m,u.sticky)}return u}function zo(t,i,u){if(typeof i=="string"&&(i=Ho[i],!i))return!1;t.display.input.ensurePolled();var l=t.display.shift,f=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),u&&(t.display.shift=!1),f=i(t)!=$e}finally{t.display.shift=l,t.state.suppressEdits=!1}return f}function Md(t,i,u){for(var l=0;l<t.state.keyMaps.length;l++){var f=Yi(i,t.state.keyMaps[l],u,t);if(f)return f}return t.options.extraKeys&&Yi(i,t.options.extraKeys,u,t)||Yi(i,t.options.keyMap,u,t)}var Yf=new Ce;function Go(t,i,u,l){var f=t.state.keySeq;if(f){if(su(i))return"handled";if(/\'$/.test(i)?t.state.keySeq=null:Yf.set(50,function(){t.state.keySeq==f&&(t.state.keySeq=null,t.display.input.reset())}),js(t,f+" "+i,u,l))return!0}return js(t,i,u,l)}function js(t,i,u,l){var f=Md(t,i,l);return f=="multi"&&(t.state.keySeq=i),f=="handled"&&Lr(t,"keyHandled",t,i,u),(f=="handled"||f=="multi")&&(At(u),Dl(t)),!!f}function Vs(t,i){var u=Oa(i,!0);return u?i.shiftKey&&!t.state.keySeq?Go(t,"Shift-"+u,i,function(l){return zo(t,l,!0)})||Go(t,u,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return zo(t,l)}):Go(t,u,i,function(l){return zo(t,l)}):!1}function Jf(t,i,u){return Go(t,"'"+u+"'",i,function(l){return zo(t,l,!0)})}var Us=null;function Xf(t){var i=this;if(!(t.target&&t.target!=i.display.input.getField())&&(i.curOp.focus=Oe(Xe(i)),!ut(i,t))){T&&F<11&&t.keyCode==27&&(t.returnValue=!1);var u=t.keyCode;i.display.shift=u==16||t.shiftKey;var l=Vs(i,t);ne&&(Us=l?u:null,!l&&u==88&&!na&&(k?t.metaKey:t.ctrlKey)&&i.replaceSelection("",null,"cut")),d&&!k&&!l&&u==46&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),u==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&Ld(i)}}function Ld(t){var i=t.display.lineDiv;Ue(i,"CodeMirror-crosshair");function u(l){(l.keyCode==18||!l.altKey)&&(H(i,"CodeMirror-crosshair"),Be(document,"keyup",u),Be(document,"mouseover",u))}ce(document,"keyup",u),ce(document,"mouseover",u)}function Ws(t){t.keyCode==16&&(this.doc.sel.shift=!1),ut(this,t)}function Qf(t){var i=this;if(!(t.target&&t.target!=i.display.input.getField())&&!(Wn(i.display,t)||ut(i,t)||t.ctrlKey&&!t.altKey||k&&t.metaKey)){var u=t.keyCode,l=t.charCode;if(ne&&u==Us){Us=null,At(t);return}if(!(ne&&(!t.which||t.which<10)&&Vs(i,t))){var f=String.fromCharCode(l==null?u:l);f!="\b"&&(Jf(i,t,f)||i.display.input.onKeyPress(t))}}}var Nd=400,hu=function(t,i,u){this.time=t,this.pos=i,this.button=u};hu.prototype.compare=function(t,i,u){return this.time+Nd>t&&se(i,this.pos)==0&&u==this.button};var $o,Ko;function Dd(t,i){var u=+new Date;return Ko&&Ko.compare(u,t,i)?($o=Ko=null,"triple"):$o&&$o.compare(u,t,i)?(Ko=new hu(u,t,i),$o=null,"double"):($o=new hu(u,t,i),Ko=null,"single")}function Hs(t){var i=this,u=i.display;if(!(ut(i,t)||u.activeTouch&&u.input.supportsTouch())){if(u.input.ensurePolled(),u.shift=t.shiftKey,Wn(u,t)){U||(u.scroller.draggable=!1,setTimeout(function(){return u.scroller.draggable=!0},100));return}if(!Gs(i,t)){var l=Ai(i,t),f=hi(t),m=l?Dd(l,f):"single";xt(i).focus(),f==1&&i.state.selectingText&&i.state.selectingText(t),!(l&&zs(i,f,l,m,t))&&(f==1?l?qf(i,l,m,t):Kr(t)==u.scroller&&At(t):f==2?(l&&$i(i.doc,l),setTimeout(function(){return u.input.focus()},20)):f==3&&(te?i.display.input.onContextMenu(t):bs(i)))}}}function zs(t,i,u,l,f){var m="Click";return l=="double"?m="Double"+m:l=="triple"&&(m="Triple"+m),m=(i==1?"Left":i==2?"Middle":"Right")+m,Go(t,$f(m,f),f,function(S){if(typeof S=="string"&&(S=Ho[S]),!S)return!1;var P=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),P=S(t,u)!=$e}finally{t.state.suppressEdits=!1}return P})}function Zf(t,i,u){var l=t.getOption("configureMouse"),f=l?l(t,i,u):{};if(f.unit==null){var m=V?u.shiftKey&&u.metaKey:u.altKey;f.unit=m?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(f.extend==null||t.doc.extend)&&(f.extend=t.doc.extend||u.shiftKey),f.addNew==null&&(f.addNew=k?u.metaKey:u.ctrlKey),f.moveOnDrag==null&&(f.moveOnDrag=!(k?u.altKey:u.ctrlKey)),f}function qf(t,i,u,l){T?setTimeout(Pt(mf,t),0):t.curOp.focus=Oe(Xe(t));var f=Zf(t,u,l),m=t.doc.sel,S;t.options.dragDrop&&_r&&!t.isReadOnly()&&u=="single"&&(S=m.contains(i))>-1&&(se((S=m.ranges[S]).from(),i)<0||i.xRel>0)&&(se(S.to(),i)>0||i.xRel<0)?Bd(t,l,i,f):Pa(t,l,i,f)}function Bd(t,i,u,l){var f=t.display,m=!1,S=Sr(t,function(j){U&&(f.scroller.draggable=!1),t.state.draggingText=!1,t.state.delayingBlurEvent&&(t.hasFocus()?t.state.delayingBlurEvent=!1:bs(t)),Be(f.wrapper.ownerDocument,"mouseup",S),Be(f.wrapper.ownerDocument,"mousemove",P),Be(f.scroller,"dragstart",R),Be(f.scroller,"drop",S),m||(At(j),l.addNew||$i(t.doc,u,null,null,l.extend),U&&!oe||T&&F==9?setTimeout(function(){f.wrapper.ownerDocument.body.focus({preventScroll:!0}),f.input.focus()},20):f.input.focus())}),P=function(j){m=m||Math.abs(i.clientX-j.clientX)+Math.abs(i.clientY-j.clientY)>=10},R=function(){return m=!0};U&&(f.scroller.draggable=!0),t.state.draggingText=S,S.copy=!l.moveOnDrag,ce(f.wrapper.ownerDocument,"mouseup",S),ce(f.wrapper.ownerDocument,"mousemove",P),ce(f.scroller,"dragstart",R),ce(f.scroller,"drop",S),t.state.delayingBlurEvent=!0,setTimeout(function(){return f.input.focus()},20),f.scroller.dragDrop&&f.scroller.dragDrop()}function _f(t,i,u){if(u=="char")return new Qt(i,i);if(u=="word")return t.findWordAt(i);if(u=="line")return new Qt(N(i.line,0),ct(t.doc,N(i.line+1,0)));var l=u(t,i);return new Qt(l.from,l.to)}function Pa(t,i,u,l){T&&bs(t);var f=t.display,m=t.doc;At(i);var S,P,R=m.sel,j=R.ranges;if(l.addNew&&!l.extend?(P=m.sel.contains(u),P>-1?S=j[P]:S=new Qt(u,u)):(S=m.sel.primary(),P=m.sel.primIndex),l.unit=="rectangle")l.addNew||(S=new Qt(u,u)),u=Ai(t,i,!0,!0),P=-1;else{var le=_f(t,u,l.unit);l.extend?S=ks(S,le.anchor,le.head,l.extend):S=le}l.addNew?P==-1?(P=j.length,Yr(m,$n(t,j.concat([S]),P),{scroll:!1,origin:"*mouse"})):j.length>1&&j[P].empty()&&l.unit=="char"&&!l.extend?(Yr(m,$n(t,j.slice(0,P).concat(j.slice(P+1)),0),{scroll:!1,origin:"*mouse"}),R=m.sel):eu(m,P,S,_e):(P=0,Yr(m,new mn([S],0),_e),R=m.sel);var de=u;function Ae(Je){if(se(de,Je)!=0)if(de=Je,l.unit=="rectangle"){for(var rt=[],vt=t.options.tabSize,pt=Le(ft(m,u.line).text,u.ch,vt),Dt=Le(ft(m,Je.line).text,Je.ch,vt),ur=Math.min(pt,Dt),Ur=Math.max(pt,Dt),wr=Math.min(u.line,Je.line),Gt=Math.min(t.lastLine(),Math.max(u.line,Je.line));wr<=Gt;wr++){var yn=ft(m,wr).text,Fr=It(yn,ur,vt);ur==Ur?rt.push(new Qt(N(wr,Fr),N(wr,Fr))):yn.length>Fr&&rt.push(new Qt(N(wr,Fr),N(wr,It(yn,Ur,vt))))}rt.length||rt.push(new Qt(u,u)),Yr(m,$n(t,R.ranges.slice(0,P).concat(rt),P),{origin:"*mouse",scroll:!1}),t.scrollIntoView(Je)}else{var M=S,Bt=_f(t,Je,l.unit),fr=M.anchor,at;se(Bt.anchor,fr)>0?(at=Bt.head,fr=jt(M.from(),Bt.anchor)):(at=Bt.anchor,fr=Ft(M.to(),Bt.head));var yr=R.ranges.slice(0);yr[P]=ec(t,new Qt(ct(m,fr),at)),Yr(m,$n(t,yr,P),_e)}}var me=f.wrapper.getBoundingClientRect(),ke=0;function Ne(Je){var rt=++ke,vt=Ai(t,Je,!0,l.unit=="rectangle");if(!!vt)if(se(vt,de)!=0){t.curOp.focus=Oe(Xe(t)),Ae(vt);var pt=xs(f,m);(vt.line>=pt.to||vt.line<pt.from)&&setTimeout(Sr(t,function(){ke==rt&&Ne(Je)}),150)}else{var Dt=Je.clientY<me.top?-20:Je.clientY>me.bottom?20:0;Dt&&setTimeout(Sr(t,function(){ke==rt&&(f.scroller.scrollTop+=Dt,Ne(Je))}),50)}}function ze(Je){t.state.selectingText=!1,ke=1/0,Je&&(At(Je),f.input.focus()),Be(f.wrapper.ownerDocument,"mousemove",Ye),Be(f.wrapper.ownerDocument,"mouseup",Ze),m.history.lastSelOrigin=null}var Ye=Sr(t,function(Je){Je.buttons===0||!hi(Je)?ze(Je):Ne(Je)}),Ze=Sr(t,ze);t.state.selectingText=Ze,ce(f.wrapper.ownerDocument,"mousemove",Ye),ce(f.wrapper.ownerDocument,"mouseup",Ze)}function ec(t,i){var u=i.anchor,l=i.head,f=ft(t.doc,u.line);if(se(u,l)==0&&u.sticky==l.sticky)return i;var m=lt(f);if(!m)return i;var S=gt(m,u.ch,u.sticky),P=m[S];if(P.from!=u.ch&&P.to!=u.ch)return i;var R=S+(P.from==u.ch==(P.level!=1)?0:1);if(R==0||R==m.length)return i;var j;if(l.line!=u.line)j=(l.line-u.line)*(t.doc.direction=="ltr"?1:-1)>0;else{var le=gt(m,l.ch,l.sticky),de=le-S||(l.ch-u.ch)*(P.level==1?-1:1);le==R-1||le==R?j=de<0:j=de>0}var Ae=m[R+(j?-1:0)],me=j==(Ae.level==1),ke=me?Ae.from:Ae.to,Ne=me?"after":"before";return u.ch==ke&&u.sticky==Ne?i:new Qt(new N(u.line,ke,Ne),l)}function vu(t,i,u,l){var f,m;if(i.touches)f=i.touches[0].clientX,m=i.touches[0].clientY;else try{f=i.clientX,m=i.clientY}catch(Ae){return!1}if(f>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;l&&At(i);var S=t.display,P=S.lineDiv.getBoundingClientRect();if(m>P.bottom||!_t(t,u))return jn(i);m-=P.top-S.viewOffset;for(var R=0;R<t.display.gutterSpecs.length;++R){var j=S.gutters.childNodes[R];if(j&&j.getBoundingClientRect().right>=f){var le=xi(t.doc,m),de=t.display.gutterSpecs[R];return Ke(t,u,t,le,de.className,i),jn(i)}}}function Gs(t,i){return vu(t,i,"gutterClick",!0)}function jd(t,i){Wn(t.display,i)||$s(t,i)||ut(t,i,"contextmenu")||te||t.display.input.onContextMenu(i)}function $s(t,i){return _t(t,"gutterContextMenu")?vu(t,i,"gutterContextMenu",!1):!1}function tc(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Eo(t)}var Ia={toString:function(){return"CodeMirror.Init"}},rc={},Ks={};function nc(t){var i=t.optionHandlers;function u(l,f,m,S){t.defaults[l]=f,m&&(i[l]=S?function(P,R,j){j!=Ia&&m(P,R,j)}:m)}t.defineOption=u,t.Init=Ia,u("value","",function(l,f){return l.setValue(f)},!0),u("mode",null,function(l,f){l.doc.modeOption=f,Ql(l)},!0),u("indentUnit",2,Ql,!0),u("indentWithTabs",!1),u("smartIndent",!0),u("tabSize",4,function(l){zi(l),Eo(l),rn(l)},!0),u("lineSeparator",null,function(l,f){if(l.doc.lineSep=f,!!f){var m=[],S=l.doc.first;l.doc.iter(function(R){for(var j=0;;){var le=R.text.indexOf(f,j);if(le==-1)break;j=le+f.length,m.push(N(S,le))}S++});for(var P=m.length-1;P>=0;P--)ro(l.doc,f,m[P],N(m[P].line,m[P].ch+f.length))}}),u("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(l,f,m){l.state.specialChars=new RegExp(f.source+(f.test(" ")?"":"| "),"g"),m!=Ia&&l.refresh()}),u("specialCharPlaceholder",ef,function(l){return l.refresh()},!0),u("electricChars",!0),u("inputStyle",E?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),u("spellcheck",!1,function(l,f){return l.getInputField().spellcheck=f},!0),u("autocorrect",!1,function(l,f){return l.getInputField().autocorrect=f},!0),u("autocapitalize",!1,function(l,f){return l.getInputField().autocapitalize=f},!0),u("rtlMoveVisually",!G),u("wholeLineUpdateBefore",!0),u("theme","default",function(l){tc(l),Za(l)},!0),u("keyMap","default",function(l,f,m){var S=In(f),P=m!=Ia&&In(m);P&&P.detach&&P.detach(l,S),S.attach&&S.attach(l,P||null)}),u("extraKeys",null),u("configureMouse",null),u("lineWrapping",!1,ac,!0),u("gutters",[],function(l,f){l.display.gutterSpecs=Kl(f,l.options.lineNumbers),Za(l)},!0),u("fixedGutter",!0,function(l,f){l.display.gutters.style.left=f?ma(l.display)+"px":"0",l.refresh()},!0),u("coverGutterNextToScrollbar",!1,function(l){return Qa(l)},!0),u("scrollbarStyle","native",function(l){Wl(l),Qa(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),u("lineNumbers",!1,function(l,f){l.display.gutterSpecs=Kl(l.options.gutters,f),Za(l)},!0),u("firstLineNumber",1,Za,!0),u("lineNumberFormatter",function(l){return l},Za,!0),u("showCursorWhenSelecting",!1,Po,!0),u("resetSelectionOnContextMenu",!0),u("lineWiseCopyCut",!0),u("pasteLinesPerSelection",!0),u("selectionsMayTouch",!1),u("readOnly",!1,function(l,f){f=="nocursor"&&(Ya(l),l.display.input.blur()),l.display.input.readOnlyChanged(f)}),u("screenReaderLabel",null,function(l,f){f=f===""?null:f,l.display.input.screenReaderLabelChanged(f)}),u("disableInput",!1,function(l,f){f||l.display.input.reset()},!0),u("dragDrop",!0,ic),u("allowDropFileTypes",null),u("cursorBlinkRate",530),u("cursorScrollMargin",0),u("cursorHeight",1,Po,!0),u("singleCursorHeightPerLine",!0,Po,!0),u("workTime",100),u("workDelay",100),u("flattenSpans",!0,zi,!0),u("addModeClass",!1,zi,!0),u("pollInterval",100),u("undoDepth",200,function(l,f){return l.doc.history.undoDepth=f}),u("historyEventDelay",1250),u("viewportMargin",10,function(l){return l.refresh()},!0),u("maxHighlightLength",1e4,zi,!0),u("moveInputWithCursor",!0,function(l,f){f||l.display.input.resetPosition()}),u("tabindex",null,function(l,f){return l.display.input.getField().tabIndex=f||""}),u("autofocus",null),u("direction","ltr",function(l,f){return l.doc.setDirection(f)},!0),u("phrases",null)}function ic(t,i,u){var l=u&&u!=Ia;if(!i!=!l){var f=t.display.dragFunctions,m=i?ce:Be;m(t.display.scroller,"dragstart",f.start),m(t.display.scroller,"dragenter",f.enter),m(t.display.scroller,"dragover",f.over),m(t.display.scroller,"dragleave",f.leave),m(t.display.scroller,"drop",f.drop)}}function ac(t){t.options.lineWrapping?(Ue(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(H(t.display.wrapper,"CodeMirror-wrap"),Sl(t)),gs(t),rn(t),Eo(t),setTimeout(function(){return Qa(t)},100)}function br(t,i){var u=this;if(!(this instanceof br))return new br(t,i);this.options=i=i?Ct(i):{},Ct(rc,i,!1);var l=i.value;typeof l=="string"?l=new nn(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var f=new br.inputStyles[i.inputStyle](this),m=this.display=new Ef(t,l,f,i);m.wrapper.CodeMirror=this,tc(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Wl(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Ce,keySeq:null,specialChars:null},i.autofocus&&!E&&m.input.focus(),T&&F<11&&setTimeout(function(){return u.display.input.reset(!0)},20),oc(this),Hf(),Vi(this),this.curOp.forceUpdate=!0,si(this,l),i.autofocus&&!E||this.hasFocus()?setTimeout(function(){u.hasFocus()&&!u.state.focused&&zn(u)},20):Ya(this);for(var S in Ks)Ks.hasOwnProperty(S)&&Ks[S](this,i[S],Ia);$l(this),i.finishInit&&i.finishInit(this);for(var P=0;P<gu.length;++P)gu[P](this);xa(this),U&&i.lineWrapping&&getComputedStyle(m.lineDiv).textRendering=="optimizelegibility"&&(m.lineDiv.style.textRendering="auto")}br.defaults=rc,br.optionHandlers=Ks;function oc(t){var i=t.display;ce(i.scroller,"mousedown",Sr(t,Hs)),T&&F<11?ce(i.scroller,"dblclick",Sr(t,function(R){if(!ut(t,R)){var j=Ai(t,R);if(!(!j||Gs(t,R)||Wn(t.display,R))){At(R);var le=t.findWordAt(j);$i(t.doc,le.anchor,le.head)}}})):ce(i.scroller,"dblclick",function(R){return ut(t,R)||At(R)}),ce(i.scroller,"contextmenu",function(R){return jd(t,R)}),ce(i.input.getField(),"contextmenu",function(R){i.scroller.contains(R.target)||jd(t,R)});var u,l={end:0};function f(){i.activeTouch&&(u=setTimeout(function(){return i.activeTouch=null},1e3),l=i.activeTouch,l.end=+new Date)}function m(R){if(R.touches.length!=1)return!1;var j=R.touches[0];return j.radiusX<=1&&j.radiusY<=1}function S(R,j){if(j.left==null)return!0;var le=j.left-R.left,de=j.top-R.top;return le*le+de*de>20*20}ce(i.scroller,"touchstart",function(R){if(!ut(t,R)&&!m(R)&&!Gs(t,R)){i.input.ensurePolled(),clearTimeout(u);var j=+new Date;i.activeTouch={start:j,moved:!1,prev:j-l.end<=300?l:null},R.touches.length==1&&(i.activeTouch.left=R.touches[0].pageX,i.activeTouch.top=R.touches[0].pageY)}}),ce(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),ce(i.scroller,"touchend",function(R){var j=i.activeTouch;if(j&&!Wn(i,R)&&j.left!=null&&!j.moved&&new Date-j.start<300){var le=t.coordsChar(i.activeTouch,"page"),de;!j.prev||S(j,j.prev)?de=new Qt(le,le):!j.prev.prev||S(j,j.prev.prev)?de=t.findWordAt(le):de=new Qt(N(le.line,0),ct(t.doc,N(le.line+1,0))),t.setSelection(de.anchor,de.head),t.focus(),At(R)}f()}),ce(i.scroller,"touchcancel",f),ce(i.scroller,"scroll",function(){i.scroller.clientHeight&&(ko(t,i.scroller.scrollTop),ya(t,i.scroller.scrollLeft,!0),Ke(t,"scroll",t))}),ce(i.scroller,"mousewheel",function(R){return Jl(t,R)}),ce(i.scroller,"DOMMouseScroll",function(R){return Jl(t,R)}),ce(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(R){ut(t,R)||$r(R)},over:function(R){ut(t,R)||(ou(t,R),$r(R))},start:function(R){return Ds(t,R)},drop:Sr(t,kd),leave:function(R){ut(t,R)||Vf(t)}};var P=i.input.getField();ce(P,"keyup",function(R){return Ws.call(t,R)}),ce(P,"keydown",Sr(t,Xf)),ce(P,"keypress",Sr(t,Qf)),ce(P,"focus",function(R){return zn(t,R)}),ce(P,"blur",function(R){return Ya(t,R)})}var gu=[];br.defineInitHook=function(t){return gu.push(t)};function Oi(t,i,u,l){var f=t.doc,m;u==null&&(u="add"),u=="smart"&&(f.mode.indent?m=sa(t,i).state:u="prev");var S=t.options.tabSize,P=ft(f,i),R=Le(P.text,null,S);P.stateAfter&&(P.stateAfter=null);var j=P.text.match(/^\s*/)[0],le;if(!l&&!/\S/.test(P.text))le=0,u="not";else if(u=="smart"&&(le=f.mode.indent(m,P.text.slice(j.length),P.text),le==$e||le>150)){if(!l)return;u="prev"}u=="prev"?i>f.first?le=Le(ft(f,i-1).text,null,S):le=0:u=="add"?le=R+t.options.indentUnit:u=="subtract"?le=R-t.options.indentUnit:typeof u=="number"&&(le=R+u),le=Math.max(0,le);var de="",Ae=0;if(t.options.indentWithTabs)for(var me=Math.floor(le/S);me;--me)Ae+=S,de+=" ";if(Ae<le&&(de+=Kt(le-Ae)),de!=j)return ro(f,de,N(i,0),N(i,j.length),"+input"),P.stateAfter=null,!0;for(var ke=0;ke<f.sel.ranges.length;ke++){var Ne=f.sel.ranges[ke];if(Ne.head.line==i&&Ne.head.ch<j.length){var ze=N(i,j.length);eu(f,ke,new Qt(ze,ze));break}}}var Yn=null;function io(t){Yn=t}function mu(t,i,u,l,f){var m=t.doc;t.display.shift=!1,l||(l=m.sel);var S=+new Date-200,P=f=="paste"||t.state.pasteIncoming>S,R=_n(i),j=null;if(P&&l.ranges.length>1)if(Yn&&Yn.text.join(`
25
25
  `)==i){if(l.ranges.length%Yn.text.length==0){j=[];for(var le=0;le<Yn.text.length;le++)j.push(m.splitLines(Yn.text[le]))}}else R.length==l.ranges.length&&t.options.pasteLinesPerSelection&&(j=Ot(R,function(Ye){return[Ye]}));for(var de=t.curOp.updateInput,Ae=l.ranges.length-1;Ae>=0;Ae--){var me=l.ranges[Ae],ke=me.from(),Ne=me.to();me.empty()&&(u&&u>0?ke=N(ke.line,ke.ch-u):t.state.overwrite&&!P?Ne=N(Ne.line,Math.min(ft(m,Ne.line).text.length,Ne.ch+We(R).length)):P&&Yn&&Yn.lineWise&&Yn.text.join(`
26
26
  `)==R.join(`
27
27
  `)&&(ke=Ne=N(ke.line,0)));var ze={from:ke,to:Ne,text:j?j[Ae%j.length]:R,origin:f||(P?"paste":t.state.cutIncoming>S?"cut":"+input")};to(t.doc,ze),Lr(t,"inputRead",t,ze)}i&&!P&&Yo(t,i),Xa(t),t.curOp.updateInput<2&&(t.curOp.updateInput=de),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function sc(t,i){var u=t.clipboardData&&t.clipboardData.getData("Text");if(u)return t.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&gn(i,function(){return mu(i,u,0,null,"paste")}),!0}function Yo(t,i){if(!(!t.options.electricChars||!t.options.smartIndent))for(var u=t.doc.sel,l=u.ranges.length-1;l>=0;l--){var f=u.ranges[l];if(!(f.head.ch>100||l&&u.ranges[l-1].head.line==f.head.line)){var m=t.getModeAt(f.head),S=!1;if(m.electricChars){for(var P=0;P<m.electricChars.length;P++)if(i.indexOf(m.electricChars.charAt(P))>-1){S=Oi(t,f.head.line,"smart");break}}else m.electricInput&&m.electricInput.test(ft(t.doc,f.head.line).text.slice(0,f.head.ch))&&(S=Oi(t,f.head.line,"smart"));S&&Lr(t,"electricInput",t,f.head.line)}}}function lc(t){for(var i=[],u=[],l=0;l<t.doc.sel.ranges.length;l++){var f=t.doc.sel.ranges[l].head.line,m={anchor:N(f,0),head:N(f+1,0)};u.push(m),i.push(t.getRange(m.anchor,m.head))}return{text:i,ranges:u}}function uc(t,i,u,l){t.setAttribute("autocorrect",u?"on":"off"),t.setAttribute("autocapitalize",l?"on":"off"),t.setAttribute("spellcheck",!!i)}function fc(){var t=_("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=_("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return U?t.style.width="1000px":t.setAttribute("wrap","off"),J&&(t.style.border="1px solid black"),i}function Vd(t){var i=t.optionHandlers,u=t.helpers={};t.prototype={constructor:t,focus:function(){xt(this).focus(),this.display.input.focus()},setOption:function(l,f){var m=this.options,S=m[l];m[l]==f&&l!="mode"||(m[l]=f,i.hasOwnProperty(l)&&Sr(this,i[l])(this,f,S),Ke(this,"optionChange",this,l))},getOption:function(l){return this.options[l]},getDoc:function(){return this.doc},addKeyMap:function(l,f){this.state.keyMaps[f?"push":"unshift"](In(l))},removeKeyMap:function(l){for(var f=this.state.keyMaps,m=0;m<f.length;++m)if(f[m]==l||f[m].name==l)return f.splice(m,1),!0},addOverlay:zr(function(l,f){var m=l.token?l:t.getMode(this.options,l);if(m.startState)throw new Error("Overlays may not be stateful.");st(this.state.overlays,{mode:m,modeSpec:l,opaque:f&&f.opaque,priority:f&&f.priority||0},function(S){return S.priority}),this.state.modeGen++,rn(this)}),removeOverlay:zr(function(l){for(var f=this.state.overlays,m=0;m<f.length;++m){var S=f[m].modeSpec;if(S==l||typeof l=="string"&&S.name==l){f.splice(m,1),this.state.modeGen++,rn(this);return}}}),indentLine:zr(function(l,f,m){typeof f!="string"&&typeof f!="number"&&(f==null?f=this.options.smartIndent?"smart":"prev":f=f?"add":"subtract"),oa(this.doc,l)&&Oi(this,l,f,m)}),indentSelection:zr(function(l){for(var f=this.doc.sel.ranges,m=-1,S=0;S<f.length;S++){var P=f[S];if(P.empty())P.head.line>m&&(Oi(this,P.head.line,l,!0),m=P.head.line,S==this.doc.sel.primIndex&&Xa(this));else{var R=P.from(),j=P.to(),le=Math.max(m,R.line);m=Math.min(this.lastLine(),j.line-(j.ch?0:1))+1;for(var de=le;de<m;++de)Oi(this,de,l);var Ae=this.doc.sel.ranges;R.ch==0&&f.length==Ae.length&&Ae[S].from().ch>0&&eu(this.doc,S,new Qt(R,Ae[S].to()),tt)}}}),getTokenAt:function(l,f){return vl(this,l,f)},getLineTokens:function(l,f){return vl(this,N(l),f,!0)},getTokenTypeAt:function(l){l=ct(this.doc,l);var f=dl(this,ft(this.doc,l.line)),m=0,S=(f.length-1)/2,P=l.ch,R;if(P==0)R=f[2];else for(;;){var j=m+S>>1;if((j?f[j*2-1]:0)>=P)S=j;else if(f[j*2+1]<P)m=j+1;else{R=f[j*2+2];break}}var le=R?R.indexOf("overlay "):-1;return le<0?R:le==0?null:R.slice(0,le-1)},getModeAt:function(l){var f=this.doc.mode;return f.innerMode?t.innerMode(f,this.getTokenAt(l).state).mode:f},getHelper:function(l,f){return this.getHelpers(l,f)[0]},getHelpers:function(l,f){var m=[];if(!u.hasOwnProperty(f))return m;var S=u[f],P=this.getModeAt(l);if(typeof P[f]=="string")S[P[f]]&&m.push(S[P[f]]);else if(P[f])for(var R=0;R<P[f].length;R++){var j=S[P[f][R]];j&&m.push(j)}else P.helperType&&S[P.helperType]?m.push(S[P.helperType]):S[P.name]&&m.push(S[P.name]);for(var le=0;le<S._global.length;le++){var de=S._global[le];de.pred(P,this)&&Se(m,de.val)==-1&&m.push(de.val)}return m},getStateAfter:function(l,f){var m=this.doc;return l=tr(m,l==null?m.first+m.size-1:l),sa(this,l+1,f).state},cursorCoords:function(l,f){var m,S=this.doc.sel.primary();return l==null?m=S.head:typeof l=="object"?m=ct(this.doc,l):m=l?S.from():S.to(),Hn(this,m,f||"page")},charCoords:function(l,f){return hs(this,ct(this.doc,l),f||"page")},coordsChar:function(l,f){return l=df(this,l,f||"page"),va(this,l.left,l.top)},lineAtHeight:function(l,f){return l=df(this,{top:l,left:0},f||"page").top,xi(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,f,m){var S=!1,P;if(typeof l=="number"){var R=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>R&&(l=R,S=!0),P=ft(this.doc,l)}else P=l;return jr(this,P,{top:0,left:0},f||"page",m||S).top+(S?this.doc.height-wi(P):0)},defaultTextHeight:function(){return ga(this.display)},defaultCharWidth:function(){return Ka(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,f,m,S,P){var R=this.display;l=Hn(this,ct(this.doc,l));var j=l.bottom,le=l.left;if(f.style.position="absolute",f.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(f),R.sizer.appendChild(f),S=="over")j=l.top;else if(S=="above"||S=="near"){var de=Math.max(R.wrapper.clientHeight,this.doc.height),Ae=Math.max(R.sizer.clientWidth,R.lineSpace.clientWidth);(S=="above"||l.bottom+f.offsetHeight>de)&&l.top>f.offsetHeight?j=l.top-f.offsetHeight:l.bottom+f.offsetHeight<=de&&(j=l.bottom),le+f.offsetWidth>Ae&&(le=Ae-f.offsetWidth)}f.style.top=j+"px",f.style.left=f.style.right="",P=="right"?(le=R.sizer.clientWidth-f.offsetWidth,f.style.right="0px"):(P=="left"?le=0:P=="middle"&&(le=(R.sizer.clientWidth-f.offsetWidth)/2),f.style.left=le+"px"),m&&pd(this,{left:le,top:j,right:le+f.offsetWidth,bottom:j+f.offsetHeight})},triggerOnKeyDown:zr(Xf),triggerOnKeyPress:zr(Qf),triggerOnKeyUp:Ws,triggerOnMouseDown:zr(Hs),execCommand:function(l){if(Ho.hasOwnProperty(l))return Ho[l].call(null,this)},triggerElectric:zr(function(l){Yo(this,l)}),findPosH:function(l,f,m,S){var P=1;f<0&&(P=-1,f=-f);for(var R=ct(this.doc,l),j=0;j<f&&(R=Ys(this.doc,R,P,m,S),!R.hitSide);++j);return R},moveH:zr(function(l,f){var m=this;this.extendSelectionsBy(function(S){return m.display.shift||m.doc.extend||S.empty()?Ys(m.doc,S.head,l,f,m.options.rtlMoveVisually):l<0?S.from():S.to()},St)}),deleteH:zr(function(l,f){var m=this.doc.sel,S=this.doc;m.somethingSelected()?S.replaceSelection("",null,"+delete"):Ta(this,function(P){var R=Ys(S,P.head,l,f,!1);return l<0?{from:R,to:P.head}:{from:P.head,to:R}})}),findPosV:function(l,f,m,S){var P=1,R=S;f<0&&(P=-1,f=-f);for(var j=ct(this.doc,l),le=0;le<f;++le){var de=Hn(this,j,"div");if(R==null?R=de.left:de.left=R,j=cc(this,de,P,m),j.hitSide)break}return j},moveV:zr(function(l,f){var m=this,S=this.doc,P=[],R=!this.display.shift&&!S.extend&&S.sel.somethingSelected();if(S.extendSelectionsBy(function(le){if(R)return l<0?le.from():le.to();var de=Hn(m,le.head,"div");le.goalColumn!=null&&(de.left=le.goalColumn),P.push(de.left);var Ae=cc(m,de,l,f);return f=="page"&&le==S.sel.primary()&&Vl(m,hs(m,Ae,"div").top-de.top),Ae},St),P.length)for(var j=0;j<S.sel.ranges.length;j++)S.sel.ranges[j].goalColumn=P[j]}),findWordAt:function(l){var f=this.doc,m=ft(f,l.line).text,S=l.ch,P=l.ch;if(m){var R=this.getHelper(l,"wordChars");(l.sticky=="before"||P==m.length)&&S?--S:++P;for(var j=m.charAt(S),le=Or(j,R)?function(de){return Or(de,R)}:/\s/.test(j)?function(de){return/\s/.test(de)}:function(de){return!/\s/.test(de)&&!Or(de)};S>0&&le(m.charAt(S-1));)--S;for(;P<m.length&&le(m.charAt(P));)++P}return new Qt(N(l.line,S),N(l.line,P))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ue(this.display.cursorDiv,"CodeMirror-overwrite"):H(this.display.cursorDiv,"CodeMirror-overwrite"),Ke(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Oe(Xe(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:zr(function(l,f){Io(this,l,f)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-ni(this)-this.display.barHeight,width:l.scrollWidth-ni(this)-this.display.barWidth,clientHeight:Al(this),clientWidth:pa(this)}},scrollIntoView:zr(function(l,f){l==null?(l={from:this.doc.sel.primary().head,to:null},f==null&&(f=this.options.cursorScrollMargin)):typeof l=="number"?l={from:N(l,0),to:null}:l.from==null&&(l={from:l,to:null}),l.to||(l.to=l.from),l.margin=f||0,l.from.line!=null?hd(this,l):bf(this,l.from,l.to,l.margin)}),setSize:zr(function(l,f){var m=this,S=function(R){return typeof R=="number"||/^\d+$/.test(String(R))?R+"px":R};l!=null&&(this.display.wrapper.style.width=S(l)),f!=null&&(this.display.wrapper.style.height=S(f)),this.options.lineWrapping&&Tl(this);var P=this.display.viewFrom;this.doc.iter(P,this.display.viewTo,function(R){if(R.widgets){for(var j=0;j<R.widgets.length;j++)if(R.widgets[j].noHScroll){Sn(m,P,"widget");break}}++P}),this.curOp.forceUpdate=!0,Ke(this,"refresh",this)}),operation:function(l){return gn(this,l)},startOperation:function(){return Vi(this)},endOperation:function(){return xa(this)},refresh:zr(function(){var l=this.display.cachedTextHeight;rn(this),this.curOp.forceUpdate=!0,Eo(this),Io(this,this.doc.scrollLeft,this.doc.scrollTop),Gl(this.display),(l==null||Math.abs(l-ga(this.display))>.5||this.options.lineWrapping)&&gs(this),Ke(this,"refresh",this)}),swapDoc:zr(function(l){var f=this.doc;return f.cm=null,this.state.selectingText&&this.state.selectingText(),si(this,l),Eo(this),this.display.input.reset(),Io(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Lr(this,"swapDoc",this,f),f}),phrase:function(l){var f=this.options.phrases;return f&&Object.prototype.hasOwnProperty.call(f,l)?f[l]:l},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},lr(t),t.registerHelper=function(l,f,m){u.hasOwnProperty(l)||(u[l]=t[l]={_global:[]}),u[l][f]=m},t.registerGlobalHelper=function(l,f,m,S){t.registerHelper(l,f,S),u[l]._global.push({pred:m,val:S})}}function Ys(t,i,u,l,f){var m=i,S=u,P=ft(t,i.line),R=f&&t.direction=="rtl"?-u:u;function j(){var Ze=i.line+R;return Ze<t.first||Ze>=t.first+t.size?!1:(i=new N(Ze,i.ch,i.sticky),P=ft(t,Ze))}function le(Ze){var Je;if(l=="codepoint"){var rt=P.text.charCodeAt(i.ch+(u>0?0:-1));if(isNaN(rt))Je=null;else{var vt=u>0?rt>=55296&&rt<56320:rt>=56320&&rt<57343;Je=new N(i.line,Math.max(0,Math.min(P.text.length,i.ch+u*(vt?2:1))),-u)}}else f?Je=Kf(t.cm,P,i,u):Je=uu(P,i,u);if(Je==null)if(!Ze&&j())i=fu(f,t.cm,P,i.line,R);else return!1;else i=Je;return!0}if(l=="char"||l=="codepoint")le();else if(l=="column")le(!0);else if(l=="word"||l=="group")for(var de=null,Ae=l=="group",me=t.cm&&t.cm.getHelper(i,"wordChars"),ke=!0;!(u<0&&!le(!ke));ke=!1){var Ne=P.text.charAt(i.ch)||`
28
28
  `,ze=Or(Ne,me)?"w":Ae&&Ne==`
29
29
  `?"n":!Ae||/\s/.test(Ne)?null:"p";if(Ae&&!ke&&!ze&&(ze="s"),de&&de!=ze){u<0&&(u=1,le(),i.sticky="after");break}if(ze&&(de=ze),u>0&&!le(!ke))break}var Ye=tu(t,i,m,S,!0);return Me(m,Ye)&&(Ye.hitSide=!0),Ye}function cc(t,i,u,l){var f=t.doc,m=i.left,S;if(l=="page"){var P=Math.min(t.display.wrapper.clientHeight,xt(t).innerHeight||f(t).documentElement.clientHeight),R=Math.max(P-.5*ga(t.display),3);S=(u>0?i.bottom:i.top)+u*R}else l=="line"&&(S=u>0?i.bottom+3:i.top-3);for(var j;j=va(t,m,S),!!j.outside;){if(u<0?S<=0:S>=f.height){j.hitSide=!0;break}S+=u*5}return j}var or=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ce,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};or.prototype.init=function(t){var i=this,u=this,l=u.cm,f=u.div=t.lineDiv;f.contentEditable=!0,uc(f,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function m(P){for(var R=P.target;R;R=R.parentNode){if(R==f)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(R.className))break}return!1}ce(f,"paste",function(P){!m(P)||ut(l,P)||sc(P,l)||F<=11&&setTimeout(Sr(l,function(){return i.updateFromDOM()}),20)}),ce(f,"compositionstart",function(P){i.composing={data:P.data,done:!1}}),ce(f,"compositionupdate",function(P){i.composing||(i.composing={data:P.data,done:!1})}),ce(f,"compositionend",function(P){i.composing&&(P.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),ce(f,"touchstart",function(){return u.forceCompositionEnd()}),ce(f,"input",function(){i.composing||i.readFromDOMSoon()});function S(P){if(!(!m(P)||ut(l,P))){if(l.somethingSelected())io({lineWise:!1,text:l.getSelections()}),P.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var R=lc(l);io({lineWise:!0,text:R.text}),P.type=="cut"&&l.operation(function(){l.setSelections(R.ranges,0,tt),l.replaceSelection("",null,"cut")})}else return;if(P.clipboardData){P.clipboardData.clearData();var j=Yn.text.join(`
30
30
  `);if(P.clipboardData.setData("Text",j),P.clipboardData.getData("Text")==j){P.preventDefault();return}}var le=fc(),de=le.firstChild;uc(de),l.display.lineSpace.insertBefore(le,l.display.lineSpace.firstChild),de.value=Yn.text.join(`
31
- `);var Ae=Oe(f.ownerDocument);ot(de),setTimeout(function(){l.display.lineSpace.removeChild(le),Ae.focus(),Ae==f&&u.showPrimarySelection()},50)}}ce(f,"copy",S),ce(f,"cut",S)},or.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},or.prototype.prepareSelection=function(){var t=Ll(this.cm,!1);return t.focus=Oe(this.div.ownerDocument)==this.div,t},or.prototype.showSelection=function(t,i){!t||!this.cm.display.view.length||((t.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(t))},or.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},or.prototype.showPrimarySelection=function(){var t=this.getSelection(),i=this.cm,u=i.doc.sel.primary(),l=u.from(),f=u.to();if(i.display.viewTo==i.display.viewFrom||l.line>=i.display.viewTo||f.line<i.display.viewFrom){t.removeAllRanges();return}var m=Js(i,t.anchorNode,t.anchorOffset),S=Js(i,t.focusNode,t.focusOffset);if(!(m&&!m.bad&&S&&!S.bad&&se(jt(m,S),l)==0&&se(Ft(m,S),f)==0)){var P=i.display.view,R=l.line>=i.display.viewFrom&&dc(i,l)||{node:P[0].measure.map[2],offset:0},j=f.line<i.display.viewTo&&dc(i,f);if(!j){var le=P[P.length-1].measure,de=le.maps?le.maps[le.maps.length-1]:le.map;j={node:de[de.length-1],offset:de[de.length-2]-de[de.length-3]}}if(!R||!j){t.removeAllRanges();return}var Ae=t.rangeCount&&t.getRangeAt(0),me;try{me=z(R.node,R.offset,j.offset,j.node)}catch(ke){}me&&(!d&&i.state.focused?(t.collapse(R.node,R.offset),me.collapsed||(t.removeAllRanges(),t.addRange(me))):(t.removeAllRanges(),t.addRange(me)),Ae&&t.anchorNode==null?t.addRange(Ae):d&&this.startGracePeriod()),this.rememberSelection()}},or.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation(function(){return t.cm.curOp.selectionChanged=!0})},20)},or.prototype.showMultipleSelections=function(t){ve(this.cm.display.cursorDiv,t.cursors),ve(this.cm.display.selectionDiv,t.selection)},or.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},or.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var i=t.getRangeAt(0).commonAncestorContainer;return ge(this.div,i)},or.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Oe(this.div.ownerDocument)!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},or.prototype.blur=function(){this.div.blur()},or.prototype.getField=function(){return this.div},or.prototype.supportsTouch=function(){return!0},or.prototype.receivedFocus=function(){var t=this,i=this;this.selectionInEditor()?setTimeout(function(){return t.pollSelection()},20):gn(this.cm,function(){return i.cm.curOp.selectionChanged=!0});function u(){i.cm.state.focused&&(i.pollSelection(),i.polling.set(i.cm.options.pollInterval,u))}this.polling.set(this.cm.options.pollInterval,u)},or.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},or.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var t=this.getSelection(),i=this.cm;if(L&&ee&&this.cm.display.gutterSpecs.length&&pc(t.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var u=Js(i,t.anchorNode,t.anchorOffset),l=Js(i,t.focusNode,t.focusOffset);u&&l&&gn(i,function(){Yr(i.doc,Ui(u,l),tt),(u.bad||l.bad)&&(i.curOp.selectionChanged=!0)})}}},or.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t=this.cm,i=t.display,u=t.doc.sel.primary(),l=u.from(),f=u.to();if(l.ch==0&&l.line>t.firstLine()&&(l=N(l.line-1,ft(t.doc,l.line-1).length)),f.ch==ft(t.doc,f.line).text.length&&f.line<t.lastLine()&&(f=N(f.line+1,0)),l.line<i.viewFrom||f.line>i.viewTo-1)return!1;var m,S,P;l.line==i.viewFrom||(m=Bi(t,l.line))==0?(S=Kt(i.view[0].line),P=i.view[0].node):(S=Kt(i.view[m].line),P=i.view[m-1].node.nextSibling);var R=Bi(t,f.line),j,le;if(R==i.view.length-1?(j=i.viewTo-1,le=i.lineDiv.lastChild):(j=Kt(i.view[R+1].line)-1,le=i.view[R+1].node.previousSibling),!P)return!1;for(var de=t.doc.splitLines(Ud(t,P,le,S,j)),Ae=bi(t.doc,N(S,0),N(j,ft(t.doc,j).text.length));de.length>1&&Ae.length>1;)if(We(de)==We(Ae))de.pop(),Ae.pop(),j--;else if(de[0]==Ae[0])de.shift(),Ae.shift(),S++;else break;for(var me=0,ke=0,Ne=de[0],ze=Ae[0],Ye=Math.min(Ne.length,ze.length);me<Ye&&Ne.charCodeAt(me)==ze.charCodeAt(me);)++me;for(var Ze=We(de),Je=We(Ae),rt=Math.min(Ze.length-(de.length==1?me:0),Je.length-(Ae.length==1?me:0));ke<rt&&Ze.charCodeAt(Ze.length-ke-1)==Je.charCodeAt(Je.length-ke-1);)++ke;if(de.length==1&&Ae.length==1&&S==l.line)for(;me&&me>l.ch&&Ze.charCodeAt(Ze.length-ke-1)==Je.charCodeAt(Je.length-ke-1);)me--,ke++;de[de.length-1]=Ze.slice(0,Ze.length-ke).replace(/^\u200b+/,""),de[0]=de[0].slice(me).replace(/\u200b+$/,"");var vt=N(S,me),pt=N(j,Ae.length?We(Ae).length-ke:0);if(de.length>1||de[0]||se(vt,pt))return ro(t.doc,de,vt,pt,"+input"),!0},or.prototype.ensurePolled=function(){this.forceCompositionEnd()},or.prototype.reset=function(){this.forceCompositionEnd()},or.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},or.prototype.readFromDOMSoon=function(){var t=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(t.readDOMTimeout=null,t.composing)if(t.composing.done)t.composing=null;else return;t.updateFromDOM()},80))},or.prototype.updateFromDOM=function(){var t=this;(this.cm.isReadOnly()||!this.pollContent())&&gn(this.cm,function(){return rn(t.cm)})},or.prototype.setUneditable=function(t){t.contentEditable="false"},or.prototype.onKeyPress=function(t){t.charCode==0||this.composing||(t.preventDefault(),this.cm.isReadOnly()||Sr(this.cm,mu)(this.cm,String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),0))},or.prototype.readOnlyChanged=function(t){this.div.contentEditable=String(t!="nocursor")},or.prototype.onContextMenu=function(){},or.prototype.resetPosition=function(){},or.prototype.needsContentAttribute=!0;function dc(t,i){var u=El(t,i.line);if(!u||u.hidden)return null;var l=ft(t.doc,i.line),f=lf(u,l,i.line),m=lt(l,t.doc.direction),S="left";if(m){var P=gt(m,i.ch);S=P%2?"right":"left"}var R=ff(f.map,i.ch,S);return R.offset=R.collapse=="right"?R.end:R.start,R}function pc(t){for(var i=t;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function ka(t,i){return i&&(t.bad=!0),t}function Ud(t,i,u,l,f){var m="",S=!1,P=t.doc.lineSeparator(),R=!1;function j(me){return function(ke){return ke.id==me}}function le(){S&&(m+=P,R&&(m+=P),S=R=!1)}function de(me){me&&(le(),m+=me)}function Ae(me){if(me.nodeType==1){var ke=me.getAttribute("cm-text");if(ke){de(ke);return}var Ne=me.getAttribute("cm-marker"),ze;if(Ne){var Ye=t.findMarks(N(l,0),N(f+1,0),j(+Ne));Ye.length&&(ze=Ye[0].find(0))&&de(bi(t.doc,ze.from,ze.to).join(P));return}if(me.getAttribute("contenteditable")=="false")return;var Ze=/^(pre|div|p|li|table|br)$/i.test(me.nodeName);if(!/^br$/i.test(me.nodeName)&&me.textContent.length==0)return;Ze&&le();for(var Je=0;Je<me.childNodes.length;Je++)Ae(me.childNodes[Je]);/^(pre|p)$/i.test(me.nodeName)&&(R=!0),Ze&&(S=!0)}else me.nodeType==3&&de(me.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Ae(i),i!=u;)i=i.nextSibling,R=!1;return m}function Js(t,i,u){var l;if(i==t.display.lineDiv){if(l=t.display.lineDiv.childNodes[u],!l)return ka(t.clipPos(N(t.display.viewTo-1)),!0);i=null,u=0}else for(l=i;;l=l.parentNode){if(!l||l==t.display.lineDiv)return null;if(l.parentNode&&l.parentNode==t.display.lineDiv)break}for(var f=0;f<t.display.view.length;f++){var m=t.display.view[f];if(m.node==l)return Wd(m,i,u)}}function Wd(t,i,u){var l=t.text.firstChild,f=!1;if(!i||!ge(l,i))return ka(N(Kt(t.line),0),!0);if(i==l&&(f=!0,i=l.childNodes[u],u=0,!i)){var m=t.rest?We(t.rest):t.line;return ka(N(Kt(m),m.text.length),f)}var S=i.nodeType==3?i:null,P=i;for(!S&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(S=i.firstChild,u&&(u=S.nodeValue.length));P.parentNode!=l;)P=P.parentNode;var R=t.measure,j=R.maps;function le(ze,Ye,Ze){for(var Je=-1;Je<(j?j.length:0);Je++)for(var rt=Je<0?R.map:j[Je],vt=0;vt<rt.length;vt+=3){var pt=rt[vt+2];if(pt==ze||pt==Ye){var Dt=Kt(Je<0?t.line:t.rest[Je]),ur=rt[vt]+Ze;return(Ze<0||pt!=ze)&&(ur=rt[vt+(Ze?1:0)]),N(Dt,ur)}}}var de=le(S,P,u);if(de)return ka(de,f);for(var Ae=P.nextSibling,me=S?S.nodeValue.length-u:0;Ae;Ae=Ae.nextSibling){if(de=le(Ae,Ae.firstChild,0),de)return ka(N(de.line,de.ch-me),f);me+=Ae.textContent.length}for(var ke=P.previousSibling,Ne=u;ke;ke=ke.previousSibling){if(de=le(ke,ke.firstChild,-1),de)return ka(N(de.line,de.ch+Ne),f);Ne+=ke.textContent.length}}var Tr=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new Ce,this.hasSelection=!1,this.composing=null,this.resetting=!1};Tr.prototype.init=function(t){var i=this,u=this,l=this.cm;this.createField(t);var f=this.textarea;t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),J&&(f.style.width="0px"),ce(f,"input",function(){T&&F>=9&&i.hasSelection&&(i.hasSelection=null),u.poll()}),ce(f,"paste",function(S){ut(l,S)||sc(S,l)||(l.state.pasteIncoming=+new Date,u.fastPoll())});function m(S){if(!ut(l,S)){if(l.somethingSelected())io({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var P=lc(l);io({lineWise:!0,text:P.text}),S.type=="cut"?l.setSelections(P.ranges,null,tt):(u.prevInput="",f.value=P.text.join(`
31
+ `);var Ae=Oe(f.ownerDocument);ot(de),setTimeout(function(){l.display.lineSpace.removeChild(le),Ae.focus(),Ae==f&&u.showPrimarySelection()},50)}}ce(f,"copy",S),ce(f,"cut",S)},or.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},or.prototype.prepareSelection=function(){var t=Ll(this.cm,!1);return t.focus=Oe(this.div.ownerDocument)==this.div,t},or.prototype.showSelection=function(t,i){!t||!this.cm.display.view.length||((t.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(t))},or.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},or.prototype.showPrimarySelection=function(){var t=this.getSelection(),i=this.cm,u=i.doc.sel.primary(),l=u.from(),f=u.to();if(i.display.viewTo==i.display.viewFrom||l.line>=i.display.viewTo||f.line<i.display.viewFrom){t.removeAllRanges();return}var m=Js(i,t.anchorNode,t.anchorOffset),S=Js(i,t.focusNode,t.focusOffset);if(!(m&&!m.bad&&S&&!S.bad&&se(jt(m,S),l)==0&&se(Ft(m,S),f)==0)){var P=i.display.view,R=l.line>=i.display.viewFrom&&dc(i,l)||{node:P[0].measure.map[2],offset:0},j=f.line<i.display.viewTo&&dc(i,f);if(!j){var le=P[P.length-1].measure,de=le.maps?le.maps[le.maps.length-1]:le.map;j={node:de[de.length-1],offset:de[de.length-2]-de[de.length-3]}}if(!R||!j){t.removeAllRanges();return}var Ae=t.rangeCount&&t.getRangeAt(0),me;try{me=z(R.node,R.offset,j.offset,j.node)}catch(ke){}me&&(!d&&i.state.focused?(t.collapse(R.node,R.offset),me.collapsed||(t.removeAllRanges(),t.addRange(me))):(t.removeAllRanges(),t.addRange(me)),Ae&&t.anchorNode==null?t.addRange(Ae):d&&this.startGracePeriod()),this.rememberSelection()}},or.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation(function(){return t.cm.curOp.selectionChanged=!0})},20)},or.prototype.showMultipleSelections=function(t){ve(this.cm.display.cursorDiv,t.cursors),ve(this.cm.display.selectionDiv,t.selection)},or.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},or.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var i=t.getRangeAt(0).commonAncestorContainer;return ge(this.div,i)},or.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Oe(this.div.ownerDocument)!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},or.prototype.blur=function(){this.div.blur()},or.prototype.getField=function(){return this.div},or.prototype.supportsTouch=function(){return!0},or.prototype.receivedFocus=function(){var t=this,i=this;this.selectionInEditor()?setTimeout(function(){return t.pollSelection()},20):gn(this.cm,function(){return i.cm.curOp.selectionChanged=!0});function u(){i.cm.state.focused&&(i.pollSelection(),i.polling.set(i.cm.options.pollInterval,u))}this.polling.set(this.cm.options.pollInterval,u)},or.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},or.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var t=this.getSelection(),i=this.cm;if(L&&ee&&this.cm.display.gutterSpecs.length&&pc(t.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var u=Js(i,t.anchorNode,t.anchorOffset),l=Js(i,t.focusNode,t.focusOffset);u&&l&&gn(i,function(){Yr(i.doc,Ui(u,l),tt),(u.bad||l.bad)&&(i.curOp.selectionChanged=!0)})}}},or.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t=this.cm,i=t.display,u=t.doc.sel.primary(),l=u.from(),f=u.to();if(l.ch==0&&l.line>t.firstLine()&&(l=N(l.line-1,ft(t.doc,l.line-1).length)),f.ch==ft(t.doc,f.line).text.length&&f.line<t.lastLine()&&(f=N(f.line+1,0)),l.line<i.viewFrom||f.line>i.viewTo-1)return!1;var m,S,P;l.line==i.viewFrom||(m=Bi(t,l.line))==0?(S=Yt(i.view[0].line),P=i.view[0].node):(S=Yt(i.view[m].line),P=i.view[m-1].node.nextSibling);var R=Bi(t,f.line),j,le;if(R==i.view.length-1?(j=i.viewTo-1,le=i.lineDiv.lastChild):(j=Yt(i.view[R+1].line)-1,le=i.view[R+1].node.previousSibling),!P)return!1;for(var de=t.doc.splitLines(Ud(t,P,le,S,j)),Ae=bi(t.doc,N(S,0),N(j,ft(t.doc,j).text.length));de.length>1&&Ae.length>1;)if(We(de)==We(Ae))de.pop(),Ae.pop(),j--;else if(de[0]==Ae[0])de.shift(),Ae.shift(),S++;else break;for(var me=0,ke=0,Ne=de[0],ze=Ae[0],Ye=Math.min(Ne.length,ze.length);me<Ye&&Ne.charCodeAt(me)==ze.charCodeAt(me);)++me;for(var Ze=We(de),Je=We(Ae),rt=Math.min(Ze.length-(de.length==1?me:0),Je.length-(Ae.length==1?me:0));ke<rt&&Ze.charCodeAt(Ze.length-ke-1)==Je.charCodeAt(Je.length-ke-1);)++ke;if(de.length==1&&Ae.length==1&&S==l.line)for(;me&&me>l.ch&&Ze.charCodeAt(Ze.length-ke-1)==Je.charCodeAt(Je.length-ke-1);)me--,ke++;de[de.length-1]=Ze.slice(0,Ze.length-ke).replace(/^\u200b+/,""),de[0]=de[0].slice(me).replace(/\u200b+$/,"");var vt=N(S,me),pt=N(j,Ae.length?We(Ae).length-ke:0);if(de.length>1||de[0]||se(vt,pt))return ro(t.doc,de,vt,pt,"+input"),!0},or.prototype.ensurePolled=function(){this.forceCompositionEnd()},or.prototype.reset=function(){this.forceCompositionEnd()},or.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},or.prototype.readFromDOMSoon=function(){var t=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(t.readDOMTimeout=null,t.composing)if(t.composing.done)t.composing=null;else return;t.updateFromDOM()},80))},or.prototype.updateFromDOM=function(){var t=this;(this.cm.isReadOnly()||!this.pollContent())&&gn(this.cm,function(){return rn(t.cm)})},or.prototype.setUneditable=function(t){t.contentEditable="false"},or.prototype.onKeyPress=function(t){t.charCode==0||this.composing||(t.preventDefault(),this.cm.isReadOnly()||Sr(this.cm,mu)(this.cm,String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),0))},or.prototype.readOnlyChanged=function(t){this.div.contentEditable=String(t!="nocursor")},or.prototype.onContextMenu=function(){},or.prototype.resetPosition=function(){},or.prototype.needsContentAttribute=!0;function dc(t,i){var u=El(t,i.line);if(!u||u.hidden)return null;var l=ft(t.doc,i.line),f=lf(u,l,i.line),m=lt(l,t.doc.direction),S="left";if(m){var P=gt(m,i.ch);S=P%2?"right":"left"}var R=ff(f.map,i.ch,S);return R.offset=R.collapse=="right"?R.end:R.start,R}function pc(t){for(var i=t;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function ka(t,i){return i&&(t.bad=!0),t}function Ud(t,i,u,l,f){var m="",S=!1,P=t.doc.lineSeparator(),R=!1;function j(me){return function(ke){return ke.id==me}}function le(){S&&(m+=P,R&&(m+=P),S=R=!1)}function de(me){me&&(le(),m+=me)}function Ae(me){if(me.nodeType==1){var ke=me.getAttribute("cm-text");if(ke){de(ke);return}var Ne=me.getAttribute("cm-marker"),ze;if(Ne){var Ye=t.findMarks(N(l,0),N(f+1,0),j(+Ne));Ye.length&&(ze=Ye[0].find(0))&&de(bi(t.doc,ze.from,ze.to).join(P));return}if(me.getAttribute("contenteditable")=="false")return;var Ze=/^(pre|div|p|li|table|br)$/i.test(me.nodeName);if(!/^br$/i.test(me.nodeName)&&me.textContent.length==0)return;Ze&&le();for(var Je=0;Je<me.childNodes.length;Je++)Ae(me.childNodes[Je]);/^(pre|p)$/i.test(me.nodeName)&&(R=!0),Ze&&(S=!0)}else me.nodeType==3&&de(me.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Ae(i),i!=u;)i=i.nextSibling,R=!1;return m}function Js(t,i,u){var l;if(i==t.display.lineDiv){if(l=t.display.lineDiv.childNodes[u],!l)return ka(t.clipPos(N(t.display.viewTo-1)),!0);i=null,u=0}else for(l=i;;l=l.parentNode){if(!l||l==t.display.lineDiv)return null;if(l.parentNode&&l.parentNode==t.display.lineDiv)break}for(var f=0;f<t.display.view.length;f++){var m=t.display.view[f];if(m.node==l)return Wd(m,i,u)}}function Wd(t,i,u){var l=t.text.firstChild,f=!1;if(!i||!ge(l,i))return ka(N(Yt(t.line),0),!0);if(i==l&&(f=!0,i=l.childNodes[u],u=0,!i)){var m=t.rest?We(t.rest):t.line;return ka(N(Yt(m),m.text.length),f)}var S=i.nodeType==3?i:null,P=i;for(!S&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(S=i.firstChild,u&&(u=S.nodeValue.length));P.parentNode!=l;)P=P.parentNode;var R=t.measure,j=R.maps;function le(ze,Ye,Ze){for(var Je=-1;Je<(j?j.length:0);Je++)for(var rt=Je<0?R.map:j[Je],vt=0;vt<rt.length;vt+=3){var pt=rt[vt+2];if(pt==ze||pt==Ye){var Dt=Yt(Je<0?t.line:t.rest[Je]),ur=rt[vt]+Ze;return(Ze<0||pt!=ze)&&(ur=rt[vt+(Ze?1:0)]),N(Dt,ur)}}}var de=le(S,P,u);if(de)return ka(de,f);for(var Ae=P.nextSibling,me=S?S.nodeValue.length-u:0;Ae;Ae=Ae.nextSibling){if(de=le(Ae,Ae.firstChild,0),de)return ka(N(de.line,de.ch-me),f);me+=Ae.textContent.length}for(var ke=P.previousSibling,Ne=u;ke;ke=ke.previousSibling){if(de=le(ke,ke.firstChild,-1),de)return ka(N(de.line,de.ch+Ne),f);Ne+=ke.textContent.length}}var Tr=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new Ce,this.hasSelection=!1,this.composing=null,this.resetting=!1};Tr.prototype.init=function(t){var i=this,u=this,l=this.cm;this.createField(t);var f=this.textarea;t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),J&&(f.style.width="0px"),ce(f,"input",function(){T&&F>=9&&i.hasSelection&&(i.hasSelection=null),u.poll()}),ce(f,"paste",function(S){ut(l,S)||sc(S,l)||(l.state.pasteIncoming=+new Date,u.fastPoll())});function m(S){if(!ut(l,S)){if(l.somethingSelected())io({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var P=lc(l);io({lineWise:!0,text:P.text}),S.type=="cut"?l.setSelections(P.ranges,null,tt):(u.prevInput="",f.value=P.text.join(`
32
32
  `),ot(f))}else return;S.type=="cut"&&(l.state.cutIncoming=+new Date)}}ce(f,"cut",m),ce(f,"copy",m),ce(t.scroller,"paste",function(S){if(!(Wn(t,S)||ut(l,S))){if(!f.dispatchEvent){l.state.pasteIncoming=+new Date,u.focus();return}var P=new Event("paste");P.clipboardData=S.clipboardData,f.dispatchEvent(P)}}),ce(t.lineSpace,"selectstart",function(S){Wn(t,S)||At(S)}),ce(f,"compositionstart",function(){var S=l.getCursor("from");u.composing&&u.composing.range.clear(),u.composing={start:S,range:l.markText(S,l.getCursor("to"),{className:"CodeMirror-composing"})}}),ce(f,"compositionend",function(){u.composing&&(u.poll(),u.composing.range.clear(),u.composing=null)})},Tr.prototype.createField=function(t){this.wrapper=fc(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;uc(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},Tr.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},Tr.prototype.prepareSelection=function(){var t=this.cm,i=t.display,u=t.doc,l=Ll(t);if(t.options.moveInputWithCursor){var f=Hn(t,u.sel.primary().head,"div"),m=i.wrapper.getBoundingClientRect(),S=i.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,f.top+S.top-m.top)),l.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,f.left+S.left-m.left))}return l},Tr.prototype.showSelection=function(t){var i=this.cm,u=i.display;ve(u.cursorDiv,t.cursors),ve(u.selectionDiv,t.selection),t.teTop!=null&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},Tr.prototype.reset=function(t){if(!(this.contextMenuPending||this.composing&&t)){var i=this.cm;if(this.resetting=!0,i.somethingSelected()){this.prevInput="";var u=i.getSelection();this.textarea.value=u,i.state.focused&&ot(this.textarea),T&&F>=9&&(this.hasSelection=u)}else t||(this.prevInput=this.textarea.value="",T&&F>=9&&(this.hasSelection=null));this.resetting=!1}},Tr.prototype.getField=function(){return this.textarea},Tr.prototype.supportsTouch=function(){return!1},Tr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!E||Oe(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch(t){}},Tr.prototype.blur=function(){this.textarea.blur()},Tr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Tr.prototype.receivedFocus=function(){this.slowPoll()},Tr.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){t.poll(),t.cm.state.focused&&t.slowPoll()})},Tr.prototype.fastPoll=function(){var t=!1,i=this;i.pollingFast=!0;function u(){var l=i.poll();!l&&!t?(t=!0,i.polling.set(60,u)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,u)},Tr.prototype.poll=function(){var t=this,i=this.cm,u=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||ei(u)&&!l&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var f=u.value;if(f==l&&!i.somethingSelected())return!1;if(T&&F>=9&&this.hasSelection===f||k&&/[\uf700-\uf7ff]/.test(f))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var m=f.charCodeAt(0);if(m==8203&&!l&&(l="\u200B"),m==8666)return this.reset(),this.cm.execCommand("undo")}for(var S=0,P=Math.min(l.length,f.length);S<P&&l.charCodeAt(S)==f.charCodeAt(S);)++S;return gn(i,function(){mu(i,f.slice(S),l.length-S,null,t.composing?"*compose":null),f.length>1e3||f.indexOf(`
33
33
  `)>-1?u.value=t.prevInput="":t.prevInput=f,t.composing&&(t.composing.range.clear(),t.composing.range=i.markText(t.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Tr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Tr.prototype.onKeyPress=function(){T&&F>=9&&(this.hasSelection=null),this.fastPoll()},Tr.prototype.onContextMenu=function(t){var i=this,u=i.cm,l=u.display,f=i.textarea;i.contextMenuPending&&i.contextMenuPending();var m=Ai(u,t),S=l.scroller.scrollTop;if(!m||ne)return;var P=u.options.resetSelectionOnContextMenu;P&&u.doc.sel.contains(m)==-1&&Sr(u,Yr)(u.doc,Ui(m),tt);var R=f.style.cssText,j=i.wrapper.style.cssText,le=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",f.style.cssText=`position: absolute; width: 30px; height: 30px;
34
34
  top: `+(t.clientY-le.top-5)+"px; left: "+(t.clientX-le.left-5)+`px;
35
35
  z-index: 1000; background: `+(T?"rgba(255, 255, 255, .05)":"transparent")+`;
36
- outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var de;U&&(de=f.ownerDocument.defaultView.scrollY),l.input.focus(),U&&f.ownerDocument.defaultView.scrollTo(null,de),l.input.reset(),u.somethingSelected()||(f.value=i.prevInput=" "),i.contextMenuPending=me,l.selForContextMenu=u.doc.sel,clearTimeout(l.detectingSelectAll);function Ae(){if(f.selectionStart!=null){var Ne=u.somethingSelected(),ze="\u200B"+(Ne?f.value:"");f.value="\u21DA",f.value=ze,i.prevInput=Ne?"":"\u200B",f.selectionStart=1,f.selectionEnd=ze.length,l.selForContextMenu=u.doc.sel}}function me(){if(i.contextMenuPending==me&&(i.contextMenuPending=!1,i.wrapper.style.cssText=j,f.style.cssText=R,T&&F<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=S),f.selectionStart!=null)){(!T||T&&F<9)&&Ae();var Ne=0,ze=function(){l.selForContextMenu==u.doc.sel&&f.selectionStart==0&&f.selectionEnd>0&&i.prevInput=="\u200B"?Sr(u,ru)(u):Ne++<10?l.detectingSelectAll=setTimeout(ze,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(ze,200)}}if(T&&F>=9&&Ae(),te){$r(t);var ke=function(){Be(window,"mouseup",ke),setTimeout(me,20)};ce(window,"mouseup",ke)}else setTimeout(me,50)},Tr.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled=t=="nocursor",this.textarea.readOnly=!!t},Tr.prototype.setUneditable=function(){},Tr.prototype.needsContentAttribute=!1;function Hd(t,i){if(i=i?Ct(i):{},i.value=t.value,!i.tabindex&&t.tabIndex&&(i.tabindex=t.tabIndex),!i.placeholder&&t.placeholder&&(i.placeholder=t.placeholder),i.autofocus==null){var u=Oe(t.ownerDocument);i.autofocus=u==t||t.getAttribute("autofocus")!=null&&u==document.body}function l(){t.value=P.getValue()}var f;if(t.form&&(ce(t.form,"submit",l),!i.leaveSubmitMethodAlone)){var m=t.form;f=m.submit;try{var S=m.submit=function(){l(),m.submit=f,m.submit(),m.submit=S}}catch(R){}}i.finishInit=function(R){R.save=l,R.getTextArea=function(){return t},R.toTextArea=function(){R.toTextArea=isNaN,l(),t.parentNode.removeChild(R.getWrapperElement()),t.style.display="",t.form&&(Be(t.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof t.form.submit=="function"&&(t.form.submit=f))}},t.style.display="none";var P=br(function(R){return t.parentNode.insertBefore(R,t.nextSibling)},i);return P}function zd(t){t.off=Be,t.on=ce,t.wheelEventPixels=Sd,t.Doc=nn,t.splitLines=_n,t.countColumn=Le,t.findColumn=It,t.isWordChar=Ir,t.Pass=$e,t.signal=Ke,t.Line=fa,t.changeEnd=Wi,t.scrollbarModel=Sf,t.Pos=N,t.cmpPos=se,t.modes=hn,t.mimeModes=vn,t.resolveMode=Vn,t.getMode=en,t.modeExtensions=kr,t.extendMode=yi,t.copyState=Cn,t.startState=is,t.innerMode=ia,t.commands=Ho,t.keyMap=Ei,t.keyName=Oa,t.isModifierKey=su,t.lookupKey=Yi,t.normalizeKeyMap=Rd,t.StringStream=mr,t.SharedTextMarker=Kn,t.TextMarker=Pn,t.LineWidget=jo,t.e_preventDefault=At,t.e_stopPropagation=Cr,t.e_stop=$r,t.addClass=Ue,t.contains=ge,t.rmClass=H,t.keyNames=Ki}nc(br),Vd(br);var Xs="iter insert remove copy getEditor constructor".split(" ");for(var Qs in nn.prototype)nn.prototype.hasOwnProperty(Qs)&&Se(Xs,Qs)<0&&(br.prototype[Qs]=function(t){return function(){return t.apply(this.doc,arguments)}}(nn.prototype[Qs]));return lr(nn),br.inputStyles={textarea:Tr,contenteditable:or},br.defineMode=function(t){!br.defaults.mode&&t!="null"&&(br.defaults.mode=t),An.apply(this,arguments)},br.defineMIME=ho,br.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),br.defineMIME("text/plain","null"),br.defineExtension=function(t,i){br.prototype[t]=i},br.defineDocExtension=function(t,i){nn.prototype[t]=i},br.fromTextArea=Hd,zd(br),br.version="5.65.11",br})},49055:(h,O,o)=>{(function(d){d(o(23326))})(function(d){"use strict";d.defineMode("javascript",function(x,w){var C=x.indentUnit,T=w.statementIndent,F=w.jsonld,U=w.json||F,Z=w.trackScope!==!1,ee=w.typescript,ue=w.wordCharacters||/[\w$\xa1-\uffff]/,ne=function(){function N(ct){return{type:ct,style:"keyword"}}var se=N("keyword a"),Me=N("keyword b"),He=N("keyword c"),Ft=N("keyword d"),jt=N("operator"),tr={type:"atom",style:"atom"};return{if:N("if"),while:se,with:se,else:Me,do:Me,try:Me,finally:Me,return:Ft,break:Ft,continue:Ft,new:N("new"),delete:He,void:He,throw:He,debugger:N("debugger"),var:N("var"),const:N("var"),let:N("var"),function:N("function"),catch:N("catch"),for:N("for"),switch:N("switch"),case:N("case"),default:N("default"),in:jt,typeof:jt,instanceof:jt,true:tr,false:tr,null:tr,undefined:tr,NaN:tr,Infinity:tr,this:N("this"),class:N("class"),super:N("atom"),yield:He,export:N("export"),import:N("import"),extends:He,await:He}}(),oe=/[+\-*&%=<>!?|~^@]/,Y=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function A(N){for(var se=!1,Me,He=!1;(Me=N.next())!=null;){if(!se){if(Me=="/"&&!He)return;Me=="["?He=!0:He&&Me=="]"&&(He=!1)}se=!se&&Me=="\\"}}var J,L;function E(N,se,Me){return J=N,L=Me,se}function k(N,se){var Me=N.next();if(Me=='"'||Me=="'")return se.tokenize=V(Me),se.tokenize(N,se);if(Me=="."&&N.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return E("number","number");if(Me=="."&&N.match(".."))return E("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(Me))return E(Me);if(Me=="="&&N.eat(">"))return E("=>","operator");if(Me=="0"&&N.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return E("number","number");if(/\d/.test(Me))return N.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),E("number","number");if(Me=="/")return N.eat("*")?(se.tokenize=G,G(N,se)):N.eat("/")?(N.skipToEnd(),E("comment","comment")):Va(N,se,1)?(A(N),N.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),E("regexp","string-2")):(N.eat("="),E("operator","operator",N.current()));if(Me=="`")return se.tokenize=Q,Q(N,se);if(Me=="#"&&N.peek()=="!")return N.skipToEnd(),E("meta","meta");if(Me=="#"&&N.eatWhile(ue))return E("variable","property");if(Me=="<"&&N.match("!--")||Me=="-"&&N.match("->")&&!/\S/.test(N.string.slice(0,N.start)))return N.skipToEnd(),E("comment","comment");if(oe.test(Me))return(Me!=">"||!se.lexical||se.lexical.type!=">")&&(N.eat("=")?(Me=="!"||Me=="=")&&N.eat("="):/[<>*+\-|&?]/.test(Me)&&(N.eat(Me),Me==">"&&N.eat(Me))),Me=="?"&&N.eat(".")?E("."):E("operator","operator",N.current());if(ue.test(Me)){N.eatWhile(ue);var He=N.current();if(se.lastType!="."){if(ne.propertyIsEnumerable(He)){var Ft=ne[He];return E(Ft.type,Ft.style,He)}if(He=="async"&&N.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return E("async","keyword",He)}return E("variable","variable",He)}}function V(N){return function(se,Me){var He=!1,Ft;if(F&&se.peek()=="@"&&se.match(Y))return Me.tokenize=k,E("jsonld-keyword","meta");for(;(Ft=se.next())!=null&&!(Ft==N&&!He);)He=!He&&Ft=="\\";return He||(Me.tokenize=k),E("string","string")}}function G(N,se){for(var Me=!1,He;He=N.next();){if(He=="/"&&Me){se.tokenize=k;break}Me=He=="*"}return E("comment","comment")}function Q(N,se){for(var Me=!1,He;(He=N.next())!=null;){if(!Me&&(He=="`"||He=="$"&&N.eat("{"))){se.tokenize=k;break}Me=!Me&&He=="\\"}return E("quasi","string-2",N.current())}var W="([{}])";function te(N,se){se.fatArrowAt&&(se.fatArrowAt=null);var Me=N.string.indexOf("=>",N.start);if(!(Me<0)){if(ee){var He=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(N.string.slice(N.start,Me));He&&(Me=He.index)}for(var Ft=0,jt=!1,tr=Me-1;tr>=0;--tr){var ct=N.string.charAt(tr),On=W.indexOf(ct);if(On>=0&&On<3){if(!Ft){++tr;break}if(--Ft==0){ct=="("&&(jt=!0);break}}else if(On>=3&&On<6)++Ft;else if(ue.test(ct))jt=!0;else if(/["'\/`]/.test(ct))for(;;--tr){if(tr==0)return;var as=N.string.charAt(tr-1);if(as==ct&&N.string.charAt(tr-2)!="\\"){tr--;break}}else if(jt&&!Ft){++tr;break}}jt&&!Ft&&(se.fatArrowAt=tr)}}var K={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function H(N,se,Me,He,Ft,jt){this.indented=N,this.column=se,this.type=Me,this.prev=Ft,this.info=jt,He!=null&&(this.align=He)}function fe(N,se){if(!Z)return!1;for(var Me=N.localVars;Me;Me=Me.next)if(Me.name==se)return!0;for(var He=N.context;He;He=He.prev)for(var Me=He.vars;Me;Me=Me.next)if(Me.name==se)return!0}function ve(N,se,Me,He,Ft){var jt=N.cc;for(_.state=N,_.stream=Ft,_.marked=null,_.cc=jt,_.style=se,N.lexical.hasOwnProperty("align")||(N.lexical.align=!0);;){var tr=jt.length?jt.pop():U?_e:$e;if(tr(Me,He)){for(;jt.length&&jt[jt.length-1].lex;)jt.pop()();return _.marked?_.marked:Me=="variable"&&fe(N,He)?"variable-2":se}}}var _={state:null,column:null,marked:null,cc:null};function X(){for(var N=arguments.length-1;N>=0;N--)_.cc.push(arguments[N])}function z(){return X.apply(null,arguments),!0}function ge(N,se){for(var Me=se;Me;Me=Me.next)if(Me.name==N)return!0;return!1}function Oe(N){var se=_.state;if(_.marked="def",!!Z){if(se.context){if(se.lexical.info=="var"&&se.context&&se.context.block){var Me=Ue(N,se.context);if(Me!=null){se.context=Me;return}}else if(!ge(N,se.localVars)){se.localVars=new Xe(N,se.localVars);return}}w.globalVars&&!ge(N,se.globalVars)&&(se.globalVars=new Xe(N,se.globalVars))}}function Ue(N,se){if(se)if(se.block){var Me=Ue(N,se.prev);return Me?Me==se.prev?se:new ot(Me,se.vars,!0):null}else return ge(N,se.vars)?se:new ot(se.prev,new Xe(N,se.vars),!1);else return null}function Re(N){return N=="public"||N=="private"||N=="protected"||N=="abstract"||N=="readonly"}function ot(N,se,Me){this.prev=N,this.vars=se,this.block=Me}function Xe(N,se){this.name=N,this.next=se}var xt=new Xe("this",new Xe("arguments",null));function Pt(){_.state.context=new ot(_.state.context,_.state.localVars,!1),_.state.localVars=xt}function Ct(){_.state.context=new ot(_.state.context,_.state.localVars,!0),_.state.localVars=null}Pt.lex=Ct.lex=!0;function Le(){_.state.localVars=_.state.context.vars,_.state.context=_.state.context.prev}Le.lex=!0;function Ce(N,se){var Me=function(){var He=_.state,Ft=He.indented;if(He.lexical.type=="stat")Ft=He.lexical.indented;else for(var jt=He.lexical;jt&&jt.type==")"&&jt.align;jt=jt.prev)Ft=jt.indented;He.lexical=new H(Ft,_.stream.column(),N,null,He.lexical,se)};return Me.lex=!0,Me}function Se(){var N=_.state;N.lexical.prev&&(N.lexical.type==")"&&(N.indented=N.lexical.indented),N.lexical=N.lexical.prev)}Se.lex=!0;function De(N){function se(Me){return Me==N?z():N==";"||Me=="}"||Me==")"||Me=="]"?X():z(se)}return se}function $e(N,se){return N=="var"?z(Ce("vardef",se),hi,De(";"),Se):N=="keyword a"?z(Ce("form"),It,$e,Se):N=="keyword b"?z(Ce("form"),$e,Se):N=="keyword d"?_.stream.match(/^\s*$/,!1)?z():z(Ce("stat"),$t,De(";"),Se):N=="debugger"?z(De(";")):N=="{"?z(Ce("}"),Ct,kt,Se,Le):N==";"?z():N=="if"?(_.state.lexical.info=="else"&&_.state.cc[_.state.cc.length-1]==Se&&_.state.cc.pop()(),z(Ce("form"),It,$e,Se,_n)):N=="function"?z(fn):N=="for"?z(Ce("form"),Ct,ei,$e,Le,Se):N=="class"||ee&&se=="interface"?(_.marked="keyword",z(Ce("form",N=="class"?N:se),Vn,Se)):N=="variable"?ee&&se=="declare"?(_.marked="keyword",z($e)):ee&&(se=="module"||se=="enum"||se=="type")&&_.stream.match(/^\s*\w/,!1)?(_.marked="keyword",se=="enum"?z(Kt):se=="type"?z(vn,De("operator"),Be,De(";")):z(Ce("form"),_r,De("{"),Ce("}"),kt,Se,Se)):ee&&se=="namespace"?(_.marked="keyword",z(Ce("form"),_e,$e,Se)):ee&&se=="abstract"?(_.marked="keyword",z($e)):z(Ce("stat"),et):N=="switch"?z(Ce("form"),It,De("{"),Ce("}","switch"),Ct,kt,Se,Se,Le):N=="case"?z(_e,De(":")):N=="default"?z(De(":")):N=="catch"?z(Ce("form"),Pt,tt,$e,Se,Le):N=="export"?z(Ce("stat"),Cn,Se):N=="import"?z(Ce("stat"),is,Se):N=="async"?z($e):se=="@"?z(_e,$e):X(Ce("stat"),_e,De(";"),Se)}function tt(N){if(N=="(")return z(An,De(")"))}function _e(N,se){return Wt(N,se,!1)}function St(N,se){return Wt(N,se,!0)}function It(N){return N!="("?X():z(Ce(")"),$t,De(")"),Se)}function Wt(N,se,Me){if(_.state.fatArrowAt==_.stream.start){var He=Me?un:Qe;if(N=="(")return z(Pt,Ce(")"),dt(An,")"),Se,De("=>"),He,Le);if(N=="variable")return X(Pt,_r,De("=>"),He,Le)}var Ft=Me?Ot:We;return K.hasOwnProperty(N)?z(Ft):N=="function"?z(fn,Ft):N=="class"||ee&&se=="interface"?(_.marked="keyword",z(Ce("form"),ho,Se)):N=="keyword c"||N=="async"?z(Me?St:_e):N=="("?z(Ce(")"),$t,De(")"),Se,Ft):N=="operator"||N=="spread"?z(Me?St:_e):N=="["?z(Ce("]"),En,Se,Ft):N=="{"?gt(Mt,"}",null,Ft):N=="quasi"?X(st,Ft):N=="new"?z(Ir(Me)):z()}function $t(N){return N.match(/[;\}\)\],]/)?X():X(_e)}function We(N,se){return N==","?z($t):Ot(N,se,!1)}function Ot(N,se,Me){var He=Me==!1?We:Ot,Ft=Me==!1?_e:St;if(N=="=>")return z(Pt,Me?un:Qe,Le);if(N=="operator")return/\+\+|--/.test(se)||ee&&se=="!"?z(He):ee&&se=="<"&&_.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?z(Ce(">"),dt(Be,">"),Se,He):se=="?"?z(_e,De(":"),Ft):z(Ft);if(N=="quasi")return X(st,He);if(N!=";"){if(N=="(")return gt(St,")","call",He);if(N==".")return z(mt,He);if(N=="[")return z(Ce("]"),$t,De("]"),Se,He);if(ee&&se=="as")return _.marked="keyword",z(Be,He);if(N=="regexp")return _.state.lastType=_.marked="operator",_.stream.backUp(_.stream.pos-_.stream.start-1),z(Ft)}}function st(N,se){return N!="quasi"?X():se.slice(se.length-2)!="${"?z(st):z($t,qr)}function qr(N){if(N=="}")return _.marked="string-2",_.state.tokenize=Q,z(st)}function Qe(N){return te(_.stream,_.state),X(N=="{"?$e:_e)}function un(N){return te(_.stream,_.state),X(N=="{"?$e:St)}function Ir(N){return function(se){return se=="."?z(N?hr:Or):se=="variable"&&ee?z(jn,N?Ot:We):X(N?St:_e)}}function Or(N,se){if(se=="target")return _.marked="keyword",z(We)}function hr(N,se){if(se=="target")return _.marked="keyword",z(Ot)}function et(N){return N==":"?z(Se,$e):X(We,De(";"),Se)}function mt(N){if(N=="variable")return _.marked="property",z()}function Mt(N,se){if(N=="async")return _.marked="property",z(Mt);if(N=="variable"||_.style=="keyword"){if(_.marked="property",se=="get"||se=="set")return z(Tt);var Me;return ee&&_.state.fatArrowAt==_.stream.start&&(Me=_.stream.match(/^\s*:\s*/,!1))&&(_.state.fatArrowAt=_.stream.pos+Me[0].length),z(Rt)}else{if(N=="number"||N=="string")return _.marked=F?"property":_.style+" property",z(Rt);if(N=="jsonld-keyword")return z(Rt);if(ee&&Re(se))return _.marked="keyword",z(Mt);if(N=="[")return z(_e,lt,De("]"),Rt);if(N=="spread")return z(St,Rt);if(se=="*")return _.marked="keyword",z(Mt);if(N==":")return X(Rt)}}function Tt(N){return N!="variable"?X(Rt):(_.marked="property",z(fn))}function Rt(N){if(N==":")return z(St);if(N=="(")return X(fn)}function dt(N,se,Me){function He(Ft,jt){if(Me?Me.indexOf(Ft)>-1:Ft==","){var tr=_.state.lexical;return tr.info=="call"&&(tr.pos=(tr.pos||0)+1),z(function(ct,On){return ct==se||On==se?X():X(N)},He)}return Ft==se||jt==se?z():Me&&Me.indexOf(";")>-1?X(N):z(De(se))}return function(Ft,jt){return Ft==se||jt==se?z():X(N,He)}}function gt(N,se,Me){for(var He=3;He<arguments.length;He++)_.cc.push(arguments[He]);return z(Ce(se,Me),dt(N,se),Se)}function kt(N){return N=="}"?z():X($e,kt)}function lt(N,se){if(ee){if(N==":")return z(Be);if(se=="?")return z(lt)}}function Ve(N,se){if(ee&&(N==":"||se=="in"))return z(Be)}function ce(N){if(ee&&N==":")return _.stream.match(/^\s*\w+\s+is\b/,!1)?z(_e,xe,Be):z(Be)}function xe(N,se){if(se=="is")return _.marked="keyword",z()}function Be(N,se){if(se=="keyof"||se=="typeof"||se=="infer"||se=="readonly")return _.marked="keyword",z(se=="typeof"?St:Be);if(N=="variable"||se=="void")return _.marked="type",z(Cr);if(se=="|"||se=="&")return z(Be);if(N=="string"||N=="number"||N=="atom")return z(Cr);if(N=="[")return z(Ce("]"),dt(Be,"]",","),Se,Cr);if(N=="{")return z(Ce("}"),ut,Se,Cr);if(N=="(")return z(dt(At,")"),Ke,Cr);if(N=="<")return z(dt(Be,">"),Be);if(N=="quasi")return X(_t,Cr)}function Ke(N){if(N=="=>")return z(Be)}function ut(N){return N.match(/[\}\)\]]/)?z():N==","||N==";"?z(ut):X(nt,ut)}function nt(N,se){if(N=="variable"||_.style=="keyword")return _.marked="property",z(nt);if(se=="?"||N=="number"||N=="string")return z(nt);if(N==":")return z(Be);if(N=="[")return z(De("variable"),Ve,De("]"),nt);if(N=="(")return X(hn,nt);if(!N.match(/[;\}\)\],]/))return z()}function _t(N,se){return N!="quasi"?X():se.slice(se.length-2)!="${"?z(_t):z(Be,lr)}function lr(N){if(N=="}")return _.marked="string-2",_.state.tokenize=Q,z(_t)}function At(N,se){return N=="variable"&&_.stream.match(/^\s*[?:]/,!1)||se=="?"?z(At):N==":"?z(Be):N=="spread"?z(At):X(Be)}function Cr(N,se){if(se=="<")return z(Ce(">"),dt(Be,">"),Se,Cr);if(se=="|"||N=="."||se=="&")return z(Be);if(N=="[")return z(Be,De("]"),Cr);if(se=="extends"||se=="implements")return _.marked="keyword",z(Be);if(se=="?")return z(Be,De(":"),Be)}function jn(N,se){if(se=="<")return z(Ce(">"),dt(Be,">"),Se,Cr)}function $r(){return X(Be,Kr)}function Kr(N,se){if(se=="=")return z(Be)}function hi(N,se){return se=="enum"?(_.marked="keyword",z(Kt)):X(_r,lt,er,mi)}function _r(N,se){if(ee&&Re(se))return _.marked="keyword",z(_r);if(N=="variable")return Oe(se),z();if(N=="spread")return z(_r);if(N=="[")return gt(gi,"]");if(N=="{")return gt(vi,"}")}function vi(N,se){return N=="variable"&&!_.stream.match(/^\s*:/,!1)?(Oe(se),z(er)):(N=="variable"&&(_.marked="property"),N=="spread"?z(_r):N=="}"?X():N=="["?z(_e,De("]"),De(":"),vi):z(De(":"),_r,er))}function gi(){return X(_r,er)}function er(N,se){if(se=="=")return z(St)}function mi(N){if(N==",")return z(hi)}function _n(N,se){if(N=="keyword b"&&se=="else")return z(Ce("form","else"),$e,Se)}function ei(N,se){if(se=="await")return z(ei);if(N=="(")return z(Ce(")"),na,Se)}function na(N){return N=="var"?z(hi,pn):N=="variable"?z(pn):X(pn)}function pn(N,se){return N==")"?z():N==";"?z(pn):se=="in"||se=="of"?(_.marked="keyword",z(_e,pn)):X(_e,pn)}function fn(N,se){if(se=="*")return _.marked="keyword",z(fn);if(N=="variable")return Oe(se),z(fn);if(N=="(")return z(Pt,Ce(")"),dt(An,")"),Se,ce,$e,Le);if(ee&&se=="<")return z(Ce(">"),dt($r,">"),Se,fn)}function hn(N,se){if(se=="*")return _.marked="keyword",z(hn);if(N=="variable")return Oe(se),z(hn);if(N=="(")return z(Pt,Ce(")"),dt(An,")"),Se,ce,Le);if(ee&&se=="<")return z(Ce(">"),dt($r,">"),Se,hn)}function vn(N,se){if(N=="keyword"||N=="variable")return _.marked="type",z(vn);if(se=="<")return z(Ce(">"),dt($r,">"),Se)}function An(N,se){return se=="@"&&z(_e,An),N=="spread"?z(An):ee&&Re(se)?(_.marked="keyword",z(An)):ee&&N=="this"?z(lt,er):X(_r,lt,er)}function ho(N,se){return N=="variable"?Vn(N,se):en(N,se)}function Vn(N,se){if(N=="variable")return Oe(se),z(en)}function en(N,se){if(se=="<")return z(Ce(">"),dt($r,">"),Se,en);if(se=="extends"||se=="implements"||ee&&N==",")return se=="implements"&&(_.marked="keyword"),z(ee?Be:_e,en);if(N=="{")return z(Ce("}"),kr,Se)}function kr(N,se){if(N=="async"||N=="variable"&&(se=="static"||se=="get"||se=="set"||ee&&Re(se))&&_.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return _.marked="keyword",z(kr);if(N=="variable"||_.style=="keyword")return _.marked="property",z(yi,kr);if(N=="number"||N=="string")return z(yi,kr);if(N=="[")return z(_e,lt,De("]"),yi,kr);if(se=="*")return _.marked="keyword",z(kr);if(ee&&N=="(")return X(hn,kr);if(N==";"||N==",")return z(kr);if(N=="}")return z();if(se=="@")return z(_e,kr)}function yi(N,se){if(se=="!"||se=="?")return z(yi);if(N==":")return z(Be,er);if(se=="=")return z(St);var Me=_.state.lexical.prev,He=Me&&Me.info=="interface";return X(He?hn:fn)}function Cn(N,se){return se=="*"?(_.marked="keyword",z(aa,De(";"))):se=="default"?(_.marked="keyword",z(_e,De(";"))):N=="{"?z(dt(ia,"}"),aa,De(";")):X($e)}function ia(N,se){if(se=="as")return _.marked="keyword",z(De("variable"));if(N=="variable")return X(St,ia)}function is(N){return N=="string"?z():N=="("?X(_e):N=="."?X(We):X(mr,ft,aa)}function mr(N,se){return N=="{"?gt(mr,"}"):(N=="variable"&&Oe(se),se=="*"&&(_.marked="keyword"),z(bi))}function ft(N){if(N==",")return z(mr,ft)}function bi(N,se){if(se=="as")return _.marked="keyword",z(mr)}function aa(N,se){if(se=="from")return _.marked="keyword",z(_e)}function En(N){return N=="]"?z():X(dt(St,"]"))}function Kt(){return X(Ce("form"),_r,De("{"),Ce("}"),dt(xi,"}"),Se,Se)}function xi(){return X(_r,er)}function oa(N,se){return N.lastType=="operator"||N.lastType==","||oe.test(se.charAt(0))||/[,.]/.test(se.charAt(0))}function Va(N,se,Me){return se.tokenize==k&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(se.lastType)||se.lastType=="quasi"&&/\{\s*$/.test(N.string.slice(0,N.pos-(Me||0)))}return{startState:function(N){var se={tokenize:k,lastType:"sof",cc:[],lexical:new H((N||0)-C,0,"block",!1),localVars:w.localVars,context:w.localVars&&new ot(null,null,!1),indented:N||0};return w.globalVars&&typeof w.globalVars=="object"&&(se.globalVars=w.globalVars),se},token:function(N,se){if(N.sol()&&(se.lexical.hasOwnProperty("align")||(se.lexical.align=!1),se.indented=N.indentation(),te(N,se)),se.tokenize!=G&&N.eatSpace())return null;var Me=se.tokenize(N,se);return J=="comment"?Me:(se.lastType=J=="operator"&&(L=="++"||L=="--")?"incdec":J,ve(se,Me,J,L,N))},indent:function(N,se){if(N.tokenize==G||N.tokenize==Q)return d.Pass;if(N.tokenize!=k)return 0;var Me=se&&se.charAt(0),He=N.lexical,Ft;if(!/^\s*else\b/.test(se))for(var jt=N.cc.length-1;jt>=0;--jt){var tr=N.cc[jt];if(tr==Se)He=He.prev;else if(tr!=_n&&tr!=Le)break}for(;(He.type=="stat"||He.type=="form")&&(Me=="}"||(Ft=N.cc[N.cc.length-1])&&(Ft==We||Ft==Ot)&&!/^[,\.=+\-*:?[\(]/.test(se));)He=He.prev;T&&He.type==")"&&He.prev.type=="stat"&&(He=He.prev);var ct=He.type,On=Me==ct;return ct=="vardef"?He.indented+(N.lastType=="operator"||N.lastType==","?He.info.length+1:0):ct=="form"&&Me=="{"?He.indented:ct=="form"?He.indented+C:ct=="stat"?He.indented+(oa(N,se)?T||C:0):He.info=="switch"&&!On&&w.doubleIndentSwitch!=!1?He.indented+(/^(?:case|default)\b/.test(se)?C:2*C):He.align?He.column+(On?0:1):He.indented+(On?0:C)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:U?null:"/*",blockCommentEnd:U?null:"*/",blockCommentContinue:U?null:" * ",lineComment:U?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:U?"json":"javascript",jsonldMode:F,jsonMode:U,expressionAllowed:Va,skipExpression:function(N){ve(N,"atom","atom","true",new d.StringStream("",2,null))}}}),d.registerHelper("wordChars","javascript",/[\w$]/),d.defineMIME("text/javascript","javascript"),d.defineMIME("text/ecmascript","javascript"),d.defineMIME("application/javascript","javascript"),d.defineMIME("application/x-javascript","javascript"),d.defineMIME("application/ecmascript","javascript"),d.defineMIME("application/json",{name:"javascript",json:!0}),d.defineMIME("application/x-json",{name:"javascript",json:!0}),d.defineMIME("application/manifest+json",{name:"javascript",json:!0}),d.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),d.defineMIME("text/typescript",{name:"javascript",typescript:!0}),d.defineMIME("application/typescript",{name:"javascript",typescript:!0})})},13421:(h,O)=>{"use strict";/*!
36
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var de;U&&(de=f.ownerDocument.defaultView.scrollY),l.input.focus(),U&&f.ownerDocument.defaultView.scrollTo(null,de),l.input.reset(),u.somethingSelected()||(f.value=i.prevInput=" "),i.contextMenuPending=me,l.selForContextMenu=u.doc.sel,clearTimeout(l.detectingSelectAll);function Ae(){if(f.selectionStart!=null){var Ne=u.somethingSelected(),ze="\u200B"+(Ne?f.value:"");f.value="\u21DA",f.value=ze,i.prevInput=Ne?"":"\u200B",f.selectionStart=1,f.selectionEnd=ze.length,l.selForContextMenu=u.doc.sel}}function me(){if(i.contextMenuPending==me&&(i.contextMenuPending=!1,i.wrapper.style.cssText=j,f.style.cssText=R,T&&F<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=S),f.selectionStart!=null)){(!T||T&&F<9)&&Ae();var Ne=0,ze=function(){l.selForContextMenu==u.doc.sel&&f.selectionStart==0&&f.selectionEnd>0&&i.prevInput=="\u200B"?Sr(u,ru)(u):Ne++<10?l.detectingSelectAll=setTimeout(ze,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(ze,200)}}if(T&&F>=9&&Ae(),te){$r(t);var ke=function(){Be(window,"mouseup",ke),setTimeout(me,20)};ce(window,"mouseup",ke)}else setTimeout(me,50)},Tr.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled=t=="nocursor",this.textarea.readOnly=!!t},Tr.prototype.setUneditable=function(){},Tr.prototype.needsContentAttribute=!1;function Hd(t,i){if(i=i?Ct(i):{},i.value=t.value,!i.tabindex&&t.tabIndex&&(i.tabindex=t.tabIndex),!i.placeholder&&t.placeholder&&(i.placeholder=t.placeholder),i.autofocus==null){var u=Oe(t.ownerDocument);i.autofocus=u==t||t.getAttribute("autofocus")!=null&&u==document.body}function l(){t.value=P.getValue()}var f;if(t.form&&(ce(t.form,"submit",l),!i.leaveSubmitMethodAlone)){var m=t.form;f=m.submit;try{var S=m.submit=function(){l(),m.submit=f,m.submit(),m.submit=S}}catch(R){}}i.finishInit=function(R){R.save=l,R.getTextArea=function(){return t},R.toTextArea=function(){R.toTextArea=isNaN,l(),t.parentNode.removeChild(R.getWrapperElement()),t.style.display="",t.form&&(Be(t.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof t.form.submit=="function"&&(t.form.submit=f))}},t.style.display="none";var P=br(function(R){return t.parentNode.insertBefore(R,t.nextSibling)},i);return P}function zd(t){t.off=Be,t.on=ce,t.wheelEventPixels=Sd,t.Doc=nn,t.splitLines=_n,t.countColumn=Le,t.findColumn=It,t.isWordChar=Ir,t.Pass=$e,t.signal=Ke,t.Line=fa,t.changeEnd=Wi,t.scrollbarModel=Sf,t.Pos=N,t.cmpPos=se,t.modes=hn,t.mimeModes=vn,t.resolveMode=Vn,t.getMode=en,t.modeExtensions=kr,t.extendMode=yi,t.copyState=Cn,t.startState=is,t.innerMode=ia,t.commands=Ho,t.keyMap=Ei,t.keyName=Oa,t.isModifierKey=su,t.lookupKey=Yi,t.normalizeKeyMap=Rd,t.StringStream=mr,t.SharedTextMarker=Kn,t.TextMarker=Pn,t.LineWidget=jo,t.e_preventDefault=At,t.e_stopPropagation=Cr,t.e_stop=$r,t.addClass=Ue,t.contains=ge,t.rmClass=H,t.keyNames=Ki}nc(br),Vd(br);var Xs="iter insert remove copy getEditor constructor".split(" ");for(var Qs in nn.prototype)nn.prototype.hasOwnProperty(Qs)&&Se(Xs,Qs)<0&&(br.prototype[Qs]=function(t){return function(){return t.apply(this.doc,arguments)}}(nn.prototype[Qs]));return lr(nn),br.inputStyles={textarea:Tr,contenteditable:or},br.defineMode=function(t){!br.defaults.mode&&t!="null"&&(br.defaults.mode=t),An.apply(this,arguments)},br.defineMIME=ho,br.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),br.defineMIME("text/plain","null"),br.defineExtension=function(t,i){br.prototype[t]=i},br.defineDocExtension=function(t,i){nn.prototype[t]=i},br.fromTextArea=Hd,zd(br),br.version="5.65.11",br})},49055:(h,O,o)=>{(function(d){d(o(23326))})(function(d){"use strict";d.defineMode("javascript",function(x,w){var C=x.indentUnit,T=w.statementIndent,F=w.jsonld,U=w.json||F,Z=w.trackScope!==!1,ee=w.typescript,ue=w.wordCharacters||/[\w$\xa1-\uffff]/,ne=function(){function N(ct){return{type:ct,style:"keyword"}}var se=N("keyword a"),Me=N("keyword b"),He=N("keyword c"),Ft=N("keyword d"),jt=N("operator"),tr={type:"atom",style:"atom"};return{if:N("if"),while:se,with:se,else:Me,do:Me,try:Me,finally:Me,return:Ft,break:Ft,continue:Ft,new:N("new"),delete:He,void:He,throw:He,debugger:N("debugger"),var:N("var"),const:N("var"),let:N("var"),function:N("function"),catch:N("catch"),for:N("for"),switch:N("switch"),case:N("case"),default:N("default"),in:jt,typeof:jt,instanceof:jt,true:tr,false:tr,null:tr,undefined:tr,NaN:tr,Infinity:tr,this:N("this"),class:N("class"),super:N("atom"),yield:He,export:N("export"),import:N("import"),extends:He,await:He}}(),oe=/[+\-*&%=<>!?|~^@]/,Y=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function A(N){for(var se=!1,Me,He=!1;(Me=N.next())!=null;){if(!se){if(Me=="/"&&!He)return;Me=="["?He=!0:He&&Me=="]"&&(He=!1)}se=!se&&Me=="\\"}}var J,L;function E(N,se,Me){return J=N,L=Me,se}function k(N,se){var Me=N.next();if(Me=='"'||Me=="'")return se.tokenize=V(Me),se.tokenize(N,se);if(Me=="."&&N.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return E("number","number");if(Me=="."&&N.match(".."))return E("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(Me))return E(Me);if(Me=="="&&N.eat(">"))return E("=>","operator");if(Me=="0"&&N.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return E("number","number");if(/\d/.test(Me))return N.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),E("number","number");if(Me=="/")return N.eat("*")?(se.tokenize=G,G(N,se)):N.eat("/")?(N.skipToEnd(),E("comment","comment")):Va(N,se,1)?(A(N),N.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),E("regexp","string-2")):(N.eat("="),E("operator","operator",N.current()));if(Me=="`")return se.tokenize=Q,Q(N,se);if(Me=="#"&&N.peek()=="!")return N.skipToEnd(),E("meta","meta");if(Me=="#"&&N.eatWhile(ue))return E("variable","property");if(Me=="<"&&N.match("!--")||Me=="-"&&N.match("->")&&!/\S/.test(N.string.slice(0,N.start)))return N.skipToEnd(),E("comment","comment");if(oe.test(Me))return(Me!=">"||!se.lexical||se.lexical.type!=">")&&(N.eat("=")?(Me=="!"||Me=="=")&&N.eat("="):/[<>*+\-|&?]/.test(Me)&&(N.eat(Me),Me==">"&&N.eat(Me))),Me=="?"&&N.eat(".")?E("."):E("operator","operator",N.current());if(ue.test(Me)){N.eatWhile(ue);var He=N.current();if(se.lastType!="."){if(ne.propertyIsEnumerable(He)){var Ft=ne[He];return E(Ft.type,Ft.style,He)}if(He=="async"&&N.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return E("async","keyword",He)}return E("variable","variable",He)}}function V(N){return function(se,Me){var He=!1,Ft;if(F&&se.peek()=="@"&&se.match(Y))return Me.tokenize=k,E("jsonld-keyword","meta");for(;(Ft=se.next())!=null&&!(Ft==N&&!He);)He=!He&&Ft=="\\";return He||(Me.tokenize=k),E("string","string")}}function G(N,se){for(var Me=!1,He;He=N.next();){if(He=="/"&&Me){se.tokenize=k;break}Me=He=="*"}return E("comment","comment")}function Q(N,se){for(var Me=!1,He;(He=N.next())!=null;){if(!Me&&(He=="`"||He=="$"&&N.eat("{"))){se.tokenize=k;break}Me=!Me&&He=="\\"}return E("quasi","string-2",N.current())}var W="([{}])";function te(N,se){se.fatArrowAt&&(se.fatArrowAt=null);var Me=N.string.indexOf("=>",N.start);if(!(Me<0)){if(ee){var He=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(N.string.slice(N.start,Me));He&&(Me=He.index)}for(var Ft=0,jt=!1,tr=Me-1;tr>=0;--tr){var ct=N.string.charAt(tr),On=W.indexOf(ct);if(On>=0&&On<3){if(!Ft){++tr;break}if(--Ft==0){ct=="("&&(jt=!0);break}}else if(On>=3&&On<6)++Ft;else if(ue.test(ct))jt=!0;else if(/["'\/`]/.test(ct))for(;;--tr){if(tr==0)return;var as=N.string.charAt(tr-1);if(as==ct&&N.string.charAt(tr-2)!="\\"){tr--;break}}else if(jt&&!Ft){++tr;break}}jt&&!Ft&&(se.fatArrowAt=tr)}}var K={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function H(N,se,Me,He,Ft,jt){this.indented=N,this.column=se,this.type=Me,this.prev=Ft,this.info=jt,He!=null&&(this.align=He)}function fe(N,se){if(!Z)return!1;for(var Me=N.localVars;Me;Me=Me.next)if(Me.name==se)return!0;for(var He=N.context;He;He=He.prev)for(var Me=He.vars;Me;Me=Me.next)if(Me.name==se)return!0}function ve(N,se,Me,He,Ft){var jt=N.cc;for(_.state=N,_.stream=Ft,_.marked=null,_.cc=jt,_.style=se,N.lexical.hasOwnProperty("align")||(N.lexical.align=!0);;){var tr=jt.length?jt.pop():U?_e:$e;if(tr(Me,He)){for(;jt.length&&jt[jt.length-1].lex;)jt.pop()();return _.marked?_.marked:Me=="variable"&&fe(N,He)?"variable-2":se}}}var _={state:null,column:null,marked:null,cc:null};function X(){for(var N=arguments.length-1;N>=0;N--)_.cc.push(arguments[N])}function z(){return X.apply(null,arguments),!0}function ge(N,se){for(var Me=se;Me;Me=Me.next)if(Me.name==N)return!0;return!1}function Oe(N){var se=_.state;if(_.marked="def",!!Z){if(se.context){if(se.lexical.info=="var"&&se.context&&se.context.block){var Me=Ue(N,se.context);if(Me!=null){se.context=Me;return}}else if(!ge(N,se.localVars)){se.localVars=new Xe(N,se.localVars);return}}w.globalVars&&!ge(N,se.globalVars)&&(se.globalVars=new Xe(N,se.globalVars))}}function Ue(N,se){if(se)if(se.block){var Me=Ue(N,se.prev);return Me?Me==se.prev?se:new ot(Me,se.vars,!0):null}else return ge(N,se.vars)?se:new ot(se.prev,new Xe(N,se.vars),!1);else return null}function Re(N){return N=="public"||N=="private"||N=="protected"||N=="abstract"||N=="readonly"}function ot(N,se,Me){this.prev=N,this.vars=se,this.block=Me}function Xe(N,se){this.name=N,this.next=se}var xt=new Xe("this",new Xe("arguments",null));function Pt(){_.state.context=new ot(_.state.context,_.state.localVars,!1),_.state.localVars=xt}function Ct(){_.state.context=new ot(_.state.context,_.state.localVars,!0),_.state.localVars=null}Pt.lex=Ct.lex=!0;function Le(){_.state.localVars=_.state.context.vars,_.state.context=_.state.context.prev}Le.lex=!0;function Ce(N,se){var Me=function(){var He=_.state,Ft=He.indented;if(He.lexical.type=="stat")Ft=He.lexical.indented;else for(var jt=He.lexical;jt&&jt.type==")"&&jt.align;jt=jt.prev)Ft=jt.indented;He.lexical=new H(Ft,_.stream.column(),N,null,He.lexical,se)};return Me.lex=!0,Me}function Se(){var N=_.state;N.lexical.prev&&(N.lexical.type==")"&&(N.indented=N.lexical.indented),N.lexical=N.lexical.prev)}Se.lex=!0;function De(N){function se(Me){return Me==N?z():N==";"||Me=="}"||Me==")"||Me=="]"?X():z(se)}return se}function $e(N,se){return N=="var"?z(Ce("vardef",se),hi,De(";"),Se):N=="keyword a"?z(Ce("form"),It,$e,Se):N=="keyword b"?z(Ce("form"),$e,Se):N=="keyword d"?_.stream.match(/^\s*$/,!1)?z():z(Ce("stat"),Kt,De(";"),Se):N=="debugger"?z(De(";")):N=="{"?z(Ce("}"),Ct,kt,Se,Le):N==";"?z():N=="if"?(_.state.lexical.info=="else"&&_.state.cc[_.state.cc.length-1]==Se&&_.state.cc.pop()(),z(Ce("form"),It,$e,Se,_n)):N=="function"?z(fn):N=="for"?z(Ce("form"),Ct,ei,$e,Le,Se):N=="class"||ee&&se=="interface"?(_.marked="keyword",z(Ce("form",N=="class"?N:se),Vn,Se)):N=="variable"?ee&&se=="declare"?(_.marked="keyword",z($e)):ee&&(se=="module"||se=="enum"||se=="type")&&_.stream.match(/^\s*\w/,!1)?(_.marked="keyword",se=="enum"?z(Yt):se=="type"?z(vn,De("operator"),Be,De(";")):z(Ce("form"),_r,De("{"),Ce("}"),kt,Se,Se)):ee&&se=="namespace"?(_.marked="keyword",z(Ce("form"),_e,$e,Se)):ee&&se=="abstract"?(_.marked="keyword",z($e)):z(Ce("stat"),et):N=="switch"?z(Ce("form"),It,De("{"),Ce("}","switch"),Ct,kt,Se,Se,Le):N=="case"?z(_e,De(":")):N=="default"?z(De(":")):N=="catch"?z(Ce("form"),Pt,tt,$e,Se,Le):N=="export"?z(Ce("stat"),Cn,Se):N=="import"?z(Ce("stat"),is,Se):N=="async"?z($e):se=="@"?z(_e,$e):X(Ce("stat"),_e,De(";"),Se)}function tt(N){if(N=="(")return z(An,De(")"))}function _e(N,se){return Wt(N,se,!1)}function St(N,se){return Wt(N,se,!0)}function It(N){return N!="("?X():z(Ce(")"),Kt,De(")"),Se)}function Wt(N,se,Me){if(_.state.fatArrowAt==_.stream.start){var He=Me?un:Qe;if(N=="(")return z(Pt,Ce(")"),dt(An,")"),Se,De("=>"),He,Le);if(N=="variable")return X(Pt,_r,De("=>"),He,Le)}var Ft=Me?Ot:We;return K.hasOwnProperty(N)?z(Ft):N=="function"?z(fn,Ft):N=="class"||ee&&se=="interface"?(_.marked="keyword",z(Ce("form"),ho,Se)):N=="keyword c"||N=="async"?z(Me?St:_e):N=="("?z(Ce(")"),Kt,De(")"),Se,Ft):N=="operator"||N=="spread"?z(Me?St:_e):N=="["?z(Ce("]"),En,Se,Ft):N=="{"?gt(Mt,"}",null,Ft):N=="quasi"?X(st,Ft):N=="new"?z(Ir(Me)):z()}function Kt(N){return N.match(/[;\}\)\],]/)?X():X(_e)}function We(N,se){return N==","?z(Kt):Ot(N,se,!1)}function Ot(N,se,Me){var He=Me==!1?We:Ot,Ft=Me==!1?_e:St;if(N=="=>")return z(Pt,Me?un:Qe,Le);if(N=="operator")return/\+\+|--/.test(se)||ee&&se=="!"?z(He):ee&&se=="<"&&_.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?z(Ce(">"),dt(Be,">"),Se,He):se=="?"?z(_e,De(":"),Ft):z(Ft);if(N=="quasi")return X(st,He);if(N!=";"){if(N=="(")return gt(St,")","call",He);if(N==".")return z(mt,He);if(N=="[")return z(Ce("]"),Kt,De("]"),Se,He);if(ee&&se=="as")return _.marked="keyword",z(Be,He);if(N=="regexp")return _.state.lastType=_.marked="operator",_.stream.backUp(_.stream.pos-_.stream.start-1),z(Ft)}}function st(N,se){return N!="quasi"?X():se.slice(se.length-2)!="${"?z(st):z(Kt,qr)}function qr(N){if(N=="}")return _.marked="string-2",_.state.tokenize=Q,z(st)}function Qe(N){return te(_.stream,_.state),X(N=="{"?$e:_e)}function un(N){return te(_.stream,_.state),X(N=="{"?$e:St)}function Ir(N){return function(se){return se=="."?z(N?hr:Or):se=="variable"&&ee?z(jn,N?Ot:We):X(N?St:_e)}}function Or(N,se){if(se=="target")return _.marked="keyword",z(We)}function hr(N,se){if(se=="target")return _.marked="keyword",z(Ot)}function et(N){return N==":"?z(Se,$e):X(We,De(";"),Se)}function mt(N){if(N=="variable")return _.marked="property",z()}function Mt(N,se){if(N=="async")return _.marked="property",z(Mt);if(N=="variable"||_.style=="keyword"){if(_.marked="property",se=="get"||se=="set")return z(Tt);var Me;return ee&&_.state.fatArrowAt==_.stream.start&&(Me=_.stream.match(/^\s*:\s*/,!1))&&(_.state.fatArrowAt=_.stream.pos+Me[0].length),z(Rt)}else{if(N=="number"||N=="string")return _.marked=F?"property":_.style+" property",z(Rt);if(N=="jsonld-keyword")return z(Rt);if(ee&&Re(se))return _.marked="keyword",z(Mt);if(N=="[")return z(_e,lt,De("]"),Rt);if(N=="spread")return z(St,Rt);if(se=="*")return _.marked="keyword",z(Mt);if(N==":")return X(Rt)}}function Tt(N){return N!="variable"?X(Rt):(_.marked="property",z(fn))}function Rt(N){if(N==":")return z(St);if(N=="(")return X(fn)}function dt(N,se,Me){function He(Ft,jt){if(Me?Me.indexOf(Ft)>-1:Ft==","){var tr=_.state.lexical;return tr.info=="call"&&(tr.pos=(tr.pos||0)+1),z(function(ct,On){return ct==se||On==se?X():X(N)},He)}return Ft==se||jt==se?z():Me&&Me.indexOf(";")>-1?X(N):z(De(se))}return function(Ft,jt){return Ft==se||jt==se?z():X(N,He)}}function gt(N,se,Me){for(var He=3;He<arguments.length;He++)_.cc.push(arguments[He]);return z(Ce(se,Me),dt(N,se),Se)}function kt(N){return N=="}"?z():X($e,kt)}function lt(N,se){if(ee){if(N==":")return z(Be);if(se=="?")return z(lt)}}function Ve(N,se){if(ee&&(N==":"||se=="in"))return z(Be)}function ce(N){if(ee&&N==":")return _.stream.match(/^\s*\w+\s+is\b/,!1)?z(_e,xe,Be):z(Be)}function xe(N,se){if(se=="is")return _.marked="keyword",z()}function Be(N,se){if(se=="keyof"||se=="typeof"||se=="infer"||se=="readonly")return _.marked="keyword",z(se=="typeof"?St:Be);if(N=="variable"||se=="void")return _.marked="type",z(Cr);if(se=="|"||se=="&")return z(Be);if(N=="string"||N=="number"||N=="atom")return z(Cr);if(N=="[")return z(Ce("]"),dt(Be,"]",","),Se,Cr);if(N=="{")return z(Ce("}"),ut,Se,Cr);if(N=="(")return z(dt(At,")"),Ke,Cr);if(N=="<")return z(dt(Be,">"),Be);if(N=="quasi")return X(_t,Cr)}function Ke(N){if(N=="=>")return z(Be)}function ut(N){return N.match(/[\}\)\]]/)?z():N==","||N==";"?z(ut):X(nt,ut)}function nt(N,se){if(N=="variable"||_.style=="keyword")return _.marked="property",z(nt);if(se=="?"||N=="number"||N=="string")return z(nt);if(N==":")return z(Be);if(N=="[")return z(De("variable"),Ve,De("]"),nt);if(N=="(")return X(hn,nt);if(!N.match(/[;\}\)\],]/))return z()}function _t(N,se){return N!="quasi"?X():se.slice(se.length-2)!="${"?z(_t):z(Be,lr)}function lr(N){if(N=="}")return _.marked="string-2",_.state.tokenize=Q,z(_t)}function At(N,se){return N=="variable"&&_.stream.match(/^\s*[?:]/,!1)||se=="?"?z(At):N==":"?z(Be):N=="spread"?z(At):X(Be)}function Cr(N,se){if(se=="<")return z(Ce(">"),dt(Be,">"),Se,Cr);if(se=="|"||N=="."||se=="&")return z(Be);if(N=="[")return z(Be,De("]"),Cr);if(se=="extends"||se=="implements")return _.marked="keyword",z(Be);if(se=="?")return z(Be,De(":"),Be)}function jn(N,se){if(se=="<")return z(Ce(">"),dt(Be,">"),Se,Cr)}function $r(){return X(Be,Kr)}function Kr(N,se){if(se=="=")return z(Be)}function hi(N,se){return se=="enum"?(_.marked="keyword",z(Yt)):X(_r,lt,er,mi)}function _r(N,se){if(ee&&Re(se))return _.marked="keyword",z(_r);if(N=="variable")return Oe(se),z();if(N=="spread")return z(_r);if(N=="[")return gt(gi,"]");if(N=="{")return gt(vi,"}")}function vi(N,se){return N=="variable"&&!_.stream.match(/^\s*:/,!1)?(Oe(se),z(er)):(N=="variable"&&(_.marked="property"),N=="spread"?z(_r):N=="}"?X():N=="["?z(_e,De("]"),De(":"),vi):z(De(":"),_r,er))}function gi(){return X(_r,er)}function er(N,se){if(se=="=")return z(St)}function mi(N){if(N==",")return z(hi)}function _n(N,se){if(N=="keyword b"&&se=="else")return z(Ce("form","else"),$e,Se)}function ei(N,se){if(se=="await")return z(ei);if(N=="(")return z(Ce(")"),na,Se)}function na(N){return N=="var"?z(hi,pn):N=="variable"?z(pn):X(pn)}function pn(N,se){return N==")"?z():N==";"?z(pn):se=="in"||se=="of"?(_.marked="keyword",z(_e,pn)):X(_e,pn)}function fn(N,se){if(se=="*")return _.marked="keyword",z(fn);if(N=="variable")return Oe(se),z(fn);if(N=="(")return z(Pt,Ce(")"),dt(An,")"),Se,ce,$e,Le);if(ee&&se=="<")return z(Ce(">"),dt($r,">"),Se,fn)}function hn(N,se){if(se=="*")return _.marked="keyword",z(hn);if(N=="variable")return Oe(se),z(hn);if(N=="(")return z(Pt,Ce(")"),dt(An,")"),Se,ce,Le);if(ee&&se=="<")return z(Ce(">"),dt($r,">"),Se,hn)}function vn(N,se){if(N=="keyword"||N=="variable")return _.marked="type",z(vn);if(se=="<")return z(Ce(">"),dt($r,">"),Se)}function An(N,se){return se=="@"&&z(_e,An),N=="spread"?z(An):ee&&Re(se)?(_.marked="keyword",z(An)):ee&&N=="this"?z(lt,er):X(_r,lt,er)}function ho(N,se){return N=="variable"?Vn(N,se):en(N,se)}function Vn(N,se){if(N=="variable")return Oe(se),z(en)}function en(N,se){if(se=="<")return z(Ce(">"),dt($r,">"),Se,en);if(se=="extends"||se=="implements"||ee&&N==",")return se=="implements"&&(_.marked="keyword"),z(ee?Be:_e,en);if(N=="{")return z(Ce("}"),kr,Se)}function kr(N,se){if(N=="async"||N=="variable"&&(se=="static"||se=="get"||se=="set"||ee&&Re(se))&&_.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return _.marked="keyword",z(kr);if(N=="variable"||_.style=="keyword")return _.marked="property",z(yi,kr);if(N=="number"||N=="string")return z(yi,kr);if(N=="[")return z(_e,lt,De("]"),yi,kr);if(se=="*")return _.marked="keyword",z(kr);if(ee&&N=="(")return X(hn,kr);if(N==";"||N==",")return z(kr);if(N=="}")return z();if(se=="@")return z(_e,kr)}function yi(N,se){if(se=="!"||se=="?")return z(yi);if(N==":")return z(Be,er);if(se=="=")return z(St);var Me=_.state.lexical.prev,He=Me&&Me.info=="interface";return X(He?hn:fn)}function Cn(N,se){return se=="*"?(_.marked="keyword",z(aa,De(";"))):se=="default"?(_.marked="keyword",z(_e,De(";"))):N=="{"?z(dt(ia,"}"),aa,De(";")):X($e)}function ia(N,se){if(se=="as")return _.marked="keyword",z(De("variable"));if(N=="variable")return X(St,ia)}function is(N){return N=="string"?z():N=="("?X(_e):N=="."?X(We):X(mr,ft,aa)}function mr(N,se){return N=="{"?gt(mr,"}"):(N=="variable"&&Oe(se),se=="*"&&(_.marked="keyword"),z(bi))}function ft(N){if(N==",")return z(mr,ft)}function bi(N,se){if(se=="as")return _.marked="keyword",z(mr)}function aa(N,se){if(se=="from")return _.marked="keyword",z(_e)}function En(N){return N=="]"?z():X(dt(St,"]"))}function Yt(){return X(Ce("form"),_r,De("{"),Ce("}"),dt(xi,"}"),Se,Se)}function xi(){return X(_r,er)}function oa(N,se){return N.lastType=="operator"||N.lastType==","||oe.test(se.charAt(0))||/[,.]/.test(se.charAt(0))}function Va(N,se,Me){return se.tokenize==k&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(se.lastType)||se.lastType=="quasi"&&/\{\s*$/.test(N.string.slice(0,N.pos-(Me||0)))}return{startState:function(N){var se={tokenize:k,lastType:"sof",cc:[],lexical:new H((N||0)-C,0,"block",!1),localVars:w.localVars,context:w.localVars&&new ot(null,null,!1),indented:N||0};return w.globalVars&&typeof w.globalVars=="object"&&(se.globalVars=w.globalVars),se},token:function(N,se){if(N.sol()&&(se.lexical.hasOwnProperty("align")||(se.lexical.align=!1),se.indented=N.indentation(),te(N,se)),se.tokenize!=G&&N.eatSpace())return null;var Me=se.tokenize(N,se);return J=="comment"?Me:(se.lastType=J=="operator"&&(L=="++"||L=="--")?"incdec":J,ve(se,Me,J,L,N))},indent:function(N,se){if(N.tokenize==G||N.tokenize==Q)return d.Pass;if(N.tokenize!=k)return 0;var Me=se&&se.charAt(0),He=N.lexical,Ft;if(!/^\s*else\b/.test(se))for(var jt=N.cc.length-1;jt>=0;--jt){var tr=N.cc[jt];if(tr==Se)He=He.prev;else if(tr!=_n&&tr!=Le)break}for(;(He.type=="stat"||He.type=="form")&&(Me=="}"||(Ft=N.cc[N.cc.length-1])&&(Ft==We||Ft==Ot)&&!/^[,\.=+\-*:?[\(]/.test(se));)He=He.prev;T&&He.type==")"&&He.prev.type=="stat"&&(He=He.prev);var ct=He.type,On=Me==ct;return ct=="vardef"?He.indented+(N.lastType=="operator"||N.lastType==","?He.info.length+1:0):ct=="form"&&Me=="{"?He.indented:ct=="form"?He.indented+C:ct=="stat"?He.indented+(oa(N,se)?T||C:0):He.info=="switch"&&!On&&w.doubleIndentSwitch!=!1?He.indented+(/^(?:case|default)\b/.test(se)?C:2*C):He.align?He.column+(On?0:1):He.indented+(On?0:C)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:U?null:"/*",blockCommentEnd:U?null:"*/",blockCommentContinue:U?null:" * ",lineComment:U?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:U?"json":"javascript",jsonldMode:F,jsonMode:U,expressionAllowed:Va,skipExpression:function(N){ve(N,"atom","atom","true",new d.StringStream("",2,null))}}}),d.registerHelper("wordChars","javascript",/[\w$]/),d.defineMIME("text/javascript","javascript"),d.defineMIME("text/ecmascript","javascript"),d.defineMIME("application/javascript","javascript"),d.defineMIME("application/x-javascript","javascript"),d.defineMIME("application/ecmascript","javascript"),d.defineMIME("application/json",{name:"javascript",json:!0}),d.defineMIME("application/x-json",{name:"javascript",json:!0}),d.defineMIME("application/manifest+json",{name:"javascript",json:!0}),d.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),d.defineMIME("text/typescript",{name:"javascript",typescript:!0}),d.defineMIME("application/typescript",{name:"javascript",typescript:!0})})},13421:(h,O)=>{"use strict";/*!
37
37
  * cookie
38
38
  * Copyright(c) 2012-2014 Roman Shtylman
39
39
  * Copyright(c) 2015 Douglas Christopher Wilson
40
40
  * MIT Licensed
41
- */O.parse=x,O.serialize=w;var o=Object.prototype.toString,d=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function x(Z,ee){if(typeof Z!="string")throw new TypeError("argument str must be a string");for(var ue={},ne=ee||{},oe=ne.decode||C,Y=0;Y<Z.length;){var A=Z.indexOf("=",Y);if(A===-1)break;var J=Z.indexOf(";",Y);if(J===-1)J=Z.length;else if(J<A){Y=Z.lastIndexOf(";",A-1)+1;continue}var L=Z.slice(Y,A).trim();if(ue[L]===void 0){var E=Z.slice(A+1,J).trim();E.charCodeAt(0)===34&&(E=E.slice(1,-1)),ue[L]=U(E,oe)}Y=J+1}return ue}function w(Z,ee,ue){var ne=ue||{},oe=ne.encode||T;if(typeof oe!="function")throw new TypeError("option encode is invalid");if(!d.test(Z))throw new TypeError("argument name is invalid");var Y=oe(ee);if(Y&&!d.test(Y))throw new TypeError("argument val is invalid");var A=Z+"="+Y;if(ne.maxAge!=null){var J=ne.maxAge-0;if(isNaN(J)||!isFinite(J))throw new TypeError("option maxAge is invalid");A+="; Max-Age="+Math.floor(J)}if(ne.domain){if(!d.test(ne.domain))throw new TypeError("option domain is invalid");A+="; Domain="+ne.domain}if(ne.path){if(!d.test(ne.path))throw new TypeError("option path is invalid");A+="; Path="+ne.path}if(ne.expires){var L=ne.expires;if(!F(L)||isNaN(L.valueOf()))throw new TypeError("option expires is invalid");A+="; Expires="+L.toUTCString()}if(ne.httpOnly&&(A+="; HttpOnly"),ne.secure&&(A+="; Secure"),ne.priority){var E=typeof ne.priority=="string"?ne.priority.toLowerCase():ne.priority;switch(E){case"low":A+="; Priority=Low";break;case"medium":A+="; Priority=Medium";break;case"high":A+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(ne.sameSite){var k=typeof ne.sameSite=="string"?ne.sameSite.toLowerCase():ne.sameSite;switch(k){case!0:A+="; SameSite=Strict";break;case"lax":A+="; SameSite=Lax";break;case"strict":A+="; SameSite=Strict";break;case"none":A+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return A}function C(Z){return Z.indexOf("%")!==-1?decodeURIComponent(Z):Z}function T(Z){return encodeURIComponent(Z)}function F(Z){return o.call(Z)==="[object Date]"||Z instanceof Date}function U(Z,ee){try{return ee(Z)}catch(ue){return Z}}},27129:(h,O,o)=>{var d=o(53822);h.exports=d},86250:(h,O,o)=>{var d=o(21434);h.exports=d},61347:(h,O,o)=>{var d=o(27710);h.exports=d},42142:(h,O,o)=>{var d=o(31585);h.exports=d},21106:(h,O,o)=>{var d=o(55603);h.exports=d},97497:(h,O,o)=>{var d=o(31206);h.exports=d},28385:(h,O,o)=>{var d=o(26174);h.exports=d},85874:(h,O,o)=>{var d=o(87511);h.exports=d},86843:(h,O,o)=>{var d=o(24741);h.exports=d},37528:(h,O,o)=>{var d=o(4963);h.exports=d},81471:(h,O,o)=>{var d=o(21025);h.exports=d},5271:(h,O,o)=>{var d=o(27820);h.exports=d},87275:(h,O,o)=>{var d=o(74194);h.exports=d},13772:(h,O,o)=>{var d=o(32854);h.exports=d},97574:(h,O,o)=>{var d=o(60002);h.exports=d},69373:(h,O,o)=>{var d=o(28980);h.exports=d},70033:(h,O,o)=>{var d=o(45636);h.exports=d},77443:(h,O,o)=>{var d=o(66672);h.exports=d},88362:(h,O,o)=>{var d=o(46618);h.exports=d},89821:(h,O,o)=>{var d=o(42285);o(9031),h.exports=d},8008:(h,O,o)=>{var d=o(58535);h.exports=d},30164:(h,O,o)=>{var d=o(16042);h.exports=d},52221:(h,O,o)=>{o(5454),o(19173);var d=o(57545);h.exports=d.Array.from},75078:(h,O,o)=>{o(8118);var d=o(57545);h.exports=d.Array.isArray},66135:(h,O,o)=>{o(59106);var d=o(45607);h.exports=d("Array").concat},77237:(h,O,o)=>{o(98939),o(46663);var d=o(45607);h.exports=d("Array").entries},83971:(h,O,o)=>{o(73436);var d=o(45607);h.exports=d("Array").filter},42087:(h,O,o)=>{o(10880);var d=o(45607);h.exports=d("Array").find},60098:(h,O,o)=>{o(9823);var d=o(45607);h.exports=d("Array").forEach},54216:(h,O,o)=>{o(70024);var d=o(45607);h.exports=d("Array").includes},92089:(h,O,o)=>{o(62276);var d=o(45607);h.exports=d("Array").indexOf},6209:(h,O,o)=>{o(63838);var d=o(45607);h.exports=d("Array").map},49922:(h,O,o)=>{o(99523);var d=o(45607);h.exports=d("Array").reverse},52671:(h,O,o)=>{o(65818);var d=o(45607);h.exports=d("Array").slice},51375:(h,O,o)=>{o(12178);var d=o(45607);h.exports=d("Array").splice},65739:(h,O,o)=>{o(98939),o(5454);var d=o(78703);h.exports=d},74030:(h,O,o)=>{o(25067),h.exports=o(98576)},41484:(h,O,o)=>{var d=o(8902),x=o(66135),w=Array.prototype;h.exports=function(C){var T=C.concat;return C===w||d(w,C)&&T===w.concat?x:T}},53669:(h,O,o)=>{var d=o(8902),x=o(83971),w=Array.prototype;h.exports=function(C){var T=C.filter;return C===w||d(w,C)&&T===w.filter?x:T}},37506:(h,O,o)=>{var d=o(8902),x=o(42087),w=Array.prototype;h.exports=function(C){var T=C.find;return C===w||d(w,C)&&T===w.find?x:T}},13173:(h,O,o)=>{var d=o(8902),x=o(54216),w=o(62840),C=Array.prototype,T=String.prototype;h.exports=function(F){var U=F.includes;return F===C||d(C,F)&&U===C.includes?x:typeof F=="string"||F===T||d(T,F)&&U===T.includes?w:U}},92604:(h,O,o)=>{var d=o(8902),x=o(92089),w=Array.prototype;h.exports=function(C){var T=C.indexOf;return C===w||d(w,C)&&T===w.indexOf?x:T}},263:(h,O,o)=>{var d=o(8902),x=o(6209),w=Array.prototype;h.exports=function(C){var T=C.map;return C===w||d(w,C)&&T===w.map?x:T}},80432:(h,O,o)=>{var d=o(8902),x=o(49922),w=Array.prototype;h.exports=function(C){var T=C.reverse;return C===w||d(w,C)&&T===w.reverse?x:T}},77663:(h,O,o)=>{var d=o(8902),x=o(52671),w=Array.prototype;h.exports=function(C){var T=C.slice;return C===w||d(w,C)&&T===w.slice?x:T}},45063:(h,O,o)=>{var d=o(8902),x=o(51375),w=Array.prototype;h.exports=function(C){var T=C.splice;return C===w||d(w,C)&&T===w.splice?x:T}},7769:(h,O,o)=>{var d=o(8902),x=o(14820),w=String.prototype;h.exports=function(C){var T=C.startsWith;return typeof C=="string"||C===w||d(w,C)&&T===w.startsWith?x:T}},96056:(h,O,o)=>{o(59704);var d=o(57545),x=o(86298);d.JSON||(d.JSON={stringify:JSON.stringify}),h.exports=function(C,T,F){return x(d.JSON.stringify,null,arguments)}},99936:(h,O,o)=>{o(93582);var d=o(57545);h.exports=d.Object.assign},23213:(h,O,o)=>{o(73113);var d=o(57545),x=d.Object;h.exports=function(C,T){return x.create(C,T)}},38724:(h,O,o)=>{o(57585);var d=o(57545),x=d.Object,w=h.exports=function(T,F){return x.defineProperties(T,F)};x.defineProperties.sham&&(w.sham=!0)},63512:(h,O,o)=>{o(20297);var d=o(57545),x=d.Object,w=h.exports=function(T,F,U){return x.defineProperty(T,F,U)};x.defineProperty.sham&&(w.sham=!0)},2335:(h,O,o)=>{o(27442);var d=o(57545);h.exports=d.Object.entries},60632:(h,O,o)=>{o(89189);var d=o(57545),x=d.Object,w=h.exports=function(T,F){return x.getOwnPropertyDescriptor(T,F)};x.getOwnPropertyDescriptor.sham&&(w.sham=!0)},81056:(h,O,o)=>{o(62509);var d=o(57545);h.exports=d.Object.getOwnPropertyDescriptors},12921:(h,O,o)=>{o(36187);var d=o(57545);h.exports=d.Object.getOwnPropertySymbols},8168:(h,O,o)=>{o(19234);var d=o(57545);h.exports=d.Object.getPrototypeOf},38651:(h,O,o)=>{o(92647);var d=o(57545);h.exports=d.Object.keys},33083:(h,O,o)=>{o(13222);var d=o(57545);h.exports=d.Object.setPrototypeOf},93154:(h,O,o)=>{o(4242),o(98939),o(46663),o(59021),o(97884),o(78885),o(91868),o(5454);var d=o(57545);h.exports=d.Promise},62840:(h,O,o)=>{o(39247);var d=o(45607);h.exports=d("String").includes},14820:(h,O,o)=>{o(32991);var d=o(45607);h.exports=d("String").startsWith},85008:(h,O,o)=>{o(59106),o(46663),o(36187),o(19781),o(50492),o(66681),o(29594),o(63665),o(29017),o(11250),o(79786),o(90503),o(16565),o(69322),o(13610),o(36886),o(33514),o(68671),o(58556),o(71367);var d=o(57545);h.exports=d.Symbol},994:(h,O,o)=>{o(98939),o(46663),o(5454),o(63665);var d=o(89207);h.exports=d.f("iterator")},30290:(h,O,o)=>{o(12432),o(13610);var d=o(89207);h.exports=d.f("toPrimitive")},31293:(h,O,o)=>{o(98939),o(46663),o(33983);var d=o(57545);h.exports=d.WeakMap},62813:(h,O,o)=>{h.exports=o(52708)},68664:(h,O,o)=>{h.exports=o(58541)},21457:(h,O,o)=>{h.exports=o(37020)},36516:(h,O,o)=>{h.exports=o(79987)},87611:(h,O,o)=>{h.exports=o(86812)},4161:(h,O,o)=>{h.exports=o(51024)},75159:(h,O,o)=>{h.exports=o(32747)},87708:(h,O,o)=>{h.exports=o(85918)},42937:(h,O,o)=>{h.exports=o(21626)},69297:(h,O,o)=>{h.exports=o(77021)},10353:(h,O,o)=>{h.exports=o(18281)},8026:(h,O,o)=>{h.exports=o(90229)},67362:(h,O,o)=>{h.exports=o(53949)},57532:(h,O,o)=>{h.exports=o(11795)},61903:(h,O,o)=>{h.exports=o(75090)},42044:(h,O,o)=>{h.exports=o(27994)},60902:(h,O,o)=>{h.exports=o(45483)},2214:(h,O,o)=>{h.exports=o(35796)},983:(h,O,o)=>{h.exports=o(79918)},59256:(h,O,o)=>{h.exports=o(82185)},95659:(h,O,o)=>{h.exports=o(39982)},93698:(h,O,o)=>{h.exports=o(88241)},52708:(h,O,o)=>{var d=o(27129);h.exports=d},58541:(h,O,o)=>{var d=o(86250);h.exports=d},37020:(h,O,o)=>{var d=o(61347);h.exports=d},79987:(h,O,o)=>{o(5363);var d=o(42142);h.exports=d},86812:(h,O,o)=>{var d=o(21106);h.exports=d},51024:(h,O,o)=>{var d=o(97497);h.exports=d},32747:(h,O,o)=>{var d=o(28385);h.exports=d},85918:(h,O,o)=>{var d=o(85874);h.exports=d},21626:(h,O,o)=>{var d=o(86843);h.exports=d},77021:(h,O,o)=>{var d=o(37528);h.exports=d},18281:(h,O,o)=>{var d=o(81471);h.exports=d},90229:(h,O,o)=>{var d=o(5271);h.exports=d},53949:(h,O,o)=>{var d=o(87275);h.exports=d},11795:(h,O,o)=>{var d=o(13772);h.exports=d},75090:(h,O,o)=>{var d=o(97574);h.exports=d},27994:(h,O,o)=>{var d=o(69373);h.exports=d},45483:(h,O,o)=>{var d=o(70033);h.exports=d},35796:(h,O,o)=>{var d=o(77443);h.exports=d},79918:(h,O,o)=>{var d=o(88362);o(12752),o(14562),o(25363),o(69355),h.exports=d},82185:(h,O,o)=>{var d=o(89821);o(60177),o(96658),o(54212),o(18658),o(71875),o(54592),o(26680),h.exports=d},39982:(h,O,o)=>{var d=o(8008);h.exports=d},88241:(h,O,o)=>{var d=o(30164);h.exports=d},66235:(h,O,o)=>{var d=o(16447),x=o(79288),w=TypeError;h.exports=function(C){if(d(C))return C;throw w(x(C)+" is not a function")}},71404:(h,O,o)=>{var d=o(22091),x=o(79288),w=TypeError;h.exports=function(C){if(d(C))return C;throw w(x(C)+" is not a constructor")}},7757:(h,O,o)=>{var d=o(16447),x=String,w=TypeError;h.exports=function(C){if(typeof C=="object"||d(C))return C;throw w("Can't set "+x(C)+" as a prototype")}},67423:h=>{h.exports=function(){}},46961:(h,O,o)=>{var d=o(8902),x=TypeError;h.exports=function(w,C){if(d(C,w))return w;throw x("Incorrect invocation")}},31138:(h,O,o)=>{var d=o(35744),x=String,w=TypeError;h.exports=function(C){if(d(C))return C;throw w(x(C)+" is not an object")}},80410:(h,O,o)=>{var d=o(76192);h.exports=d(function(){if(typeof ArrayBuffer=="function"){var x=new ArrayBuffer(8);Object.isExtensible(x)&&Object.defineProperty(x,"a",{value:8})}})},87397:(h,O,o)=>{"use strict";var d=o(50454).forEach,x=o(10424),w=x("forEach");h.exports=w?[].forEach:function(T){return d(this,T,arguments.length>1?arguments[1]:void 0)}},20841:(h,O,o)=>{"use strict";var d=o(8043),x=o(18922),w=o(71795),C=o(21635),T=o(96109),F=o(22091),U=o(84104),Z=o(49361),ee=o(61669),ue=o(78703),ne=Array;h.exports=function(Y){var A=w(Y),J=F(this),L=arguments.length,E=L>1?arguments[1]:void 0,k=E!==void 0;k&&(E=d(E,L>2?arguments[2]:void 0));var V=ue(A),G=0,Q,W,te,K,H,fe;if(V&&!(this===ne&&T(V)))for(K=ee(A,V),H=K.next,W=J?new this:[];!(te=x(H,K)).done;G++)fe=k?C(K,E,[te.value,G],!0):te.value,Z(W,G,fe);else for(Q=U(A),W=J?new this(Q):ne(Q);Q>G;G++)fe=k?E(A[G],G):A[G],Z(W,G,fe);return W.length=G,W}},48180:(h,O,o)=>{var d=o(20101),x=o(97739),w=o(84104),C=function(T){return function(F,U,Z){var ee=d(F),ue=w(ee),ne=x(Z,ue),oe;if(T&&U!=U){for(;ue>ne;)if(oe=ee[ne++],oe!=oe)return!0}else for(;ue>ne;ne++)if((T||ne in ee)&&ee[ne]===U)return T||ne||0;return!T&&-1}};h.exports={includes:C(!0),indexOf:C(!1)}},50454:(h,O,o)=>{var d=o(8043),x=o(84120),w=o(2202),C=o(71795),T=o(84104),F=o(71321),U=x([].push),Z=function(ee){var ue=ee==1,ne=ee==2,oe=ee==3,Y=ee==4,A=ee==6,J=ee==7,L=ee==5||A;return function(E,k,V,G){for(var Q=C(E),W=w(Q),te=d(k,V),K=T(W),H=0,fe=G||F,ve=ue?fe(E,K):ne||J?fe(E,0):void 0,_,X;K>H;H++)if((L||H in W)&&(_=W[H],X=te(_,H,Q),ee))if(ue)ve[H]=X;else if(X)switch(ee){case 3:return!0;case 5:return _;case 6:return H;case 2:U(ve,_)}else switch(ee){case 4:return!1;case 7:U(ve,_)}return A?-1:oe||Y?Y:ve}};h.exports={forEach:Z(0),map:Z(1),filter:Z(2),some:Z(3),every:Z(4),find:Z(5),findIndex:Z(6),filterReject:Z(7)}},90242:(h,O,o)=>{var d=o(76192),x=o(18182),w=o(14218),C=x("species");h.exports=function(T){return w>=51||!d(function(){var F=[],U=F.constructor={};return U[C]=function(){return{foo:1}},F[T](Boolean).foo!==1})}},10424:(h,O,o)=>{"use strict";var d=o(76192);h.exports=function(x,w){var C=[][x];return!!C&&d(function(){C.call(null,w||function(){return 1},1)})}},95072:(h,O,o)=>{"use strict";var d=o(50069),x=o(34770),w=TypeError,C=Object.getOwnPropertyDescriptor,T=d&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(F){return F instanceof TypeError}}();h.exports=T?function(F,U){if(x(F)&&!C(F,"length").writable)throw w("Cannot set read only .length");return F.length=U}:function(F,U){return F.length=U}},1923:(h,O,o)=>{var d=o(97739),x=o(84104),w=o(49361),C=Array,T=Math.max;h.exports=function(F,U,Z){for(var ee=x(F),ue=d(U,ee),ne=d(Z===void 0?ee:Z,ee),oe=C(T(ne-ue,0)),Y=0;ue<ne;ue++,Y++)w(oe,Y,F[ue]);return oe.length=Y,oe}},93096:(h,O,o)=>{var d=o(84120);h.exports=d([].slice)},6614:(h,O,o)=>{var d=o(1923),x=Math.floor,w=function(F,U){var Z=F.length,ee=x(Z/2);return Z<8?C(F,U):T(F,w(d(F,0,ee),U),w(d(F,ee),U),U)},C=function(F,U){for(var Z=F.length,ee=1,ue,ne;ee<Z;){for(ne=ee,ue=F[ee];ne&&U(F[ne-1],ue)>0;)F[ne]=F[--ne];ne!==ee++&&(F[ne]=ue)}return F},T=function(F,U,Z,ee){for(var ue=U.length,ne=Z.length,oe=0,Y=0;oe<ue||Y<ne;)F[oe+Y]=oe<ue&&Y<ne?ee(U[oe],Z[Y])<=0?U[oe++]:Z[Y++]:oe<ue?U[oe++]:Z[Y++];return F};h.exports=w},83712:(h,O,o)=>{var d=o(34770),x=o(22091),w=o(35744),C=o(18182),T=C("species"),F=Array;h.exports=function(U){var Z;return d(U)&&(Z=U.constructor,x(Z)&&(Z===F||d(Z.prototype))?Z=void 0:w(Z)&&(Z=Z[T],Z===null&&(Z=void 0))),Z===void 0?F:Z}},71321:(h,O,o)=>{var d=o(83712);h.exports=function(x,w){return new(d(x))(w===0?0:w)}},21635:(h,O,o)=>{var d=o(31138),x=o(66639);h.exports=function(w,C,T,F){try{return F?C(d(T)[0],T[1]):C(T)}catch(U){x(w,"throw",U)}}},19770:(h,O,o)=>{var d=o(18182),x=d("iterator"),w=!1;try{var C=0,T={next:function(){return{done:!!C++}},return:function(){w=!0}};T[x]=function(){return this},Array.from(T,function(){throw 2})}catch(F){}h.exports=function(F,U){if(!U&&!w)return!1;var Z=!1;try{var ee={};ee[x]=function(){return{next:function(){return{done:Z=!0}}}},F(ee)}catch(ue){}return Z}},29272:(h,O,o)=>{var d=o(84120),x=d({}.toString),w=d("".slice);h.exports=function(C){return w(x(C),8,-1)}},4696:(h,O,o)=>{var d=o(83471),x=o(16447),w=o(29272),C=o(18182),T=C("toStringTag"),F=Object,U=w(function(){return arguments}())=="Arguments",Z=function(ee,ue){try{return ee[ue]}catch(ne){}};h.exports=d?w:function(ee){var ue,ne,oe;return ee===void 0?"Undefined":ee===null?"Null":typeof(ne=Z(ue=F(ee),T))=="string"?ne:U?w(ue):(oe=w(ue))=="Object"&&x(ue.callee)?"Arguments":oe}},51057:(h,O,o)=>{"use strict";var d=o(84120),x=o(35090),w=o(32861).getWeakData,C=o(46961),T=o(31138),F=o(75646),U=o(35744),Z=o(33442),ee=o(50454),ue=o(64500),ne=o(73326),oe=ne.set,Y=ne.getterFor,A=ee.find,J=ee.findIndex,L=d([].splice),E=0,k=function(Q){return Q.frozen||(Q.frozen=new V)},V=function(){this.entries=[]},G=function(Q,W){return A(Q.entries,function(te){return te[0]===W})};V.prototype={get:function(Q){var W=G(this,Q);if(W)return W[1]},has:function(Q){return!!G(this,Q)},set:function(Q,W){var te=G(this,Q);te?te[1]=W:this.entries.push([Q,W])},delete:function(Q){var W=J(this.entries,function(te){return te[0]===Q});return~W&&L(this.entries,W,1),!!~W}},h.exports={getConstructor:function(Q,W,te,K){var H=Q(function(X,z){C(X,fe),oe(X,{type:W,id:E++,frozen:void 0}),F(z)||Z(z,X[K],{that:X,AS_ENTRIES:te})}),fe=H.prototype,ve=Y(W),_=function(X,z,ge){var Oe=ve(X),Ue=w(T(z),!0);return Ue===!0?k(Oe).set(z,ge):Ue[Oe.id]=ge,X};return x(fe,{delete:function(X){var z=ve(this);if(!U(X))return!1;var ge=w(X);return ge===!0?k(z).delete(X):ge&&ue(ge,z.id)&&delete ge[z.id]},has:function(z){var ge=ve(this);if(!U(z))return!1;var Oe=w(z);return Oe===!0?k(ge).has(z):Oe&&ue(Oe,ge.id)}}),x(fe,te?{get:function(z){var ge=ve(this);if(U(z)){var Oe=w(z);return Oe===!0?k(ge).get(z):Oe?Oe[ge.id]:void 0}},set:function(z,ge){return _(this,z,ge)}}:{add:function(z){return _(this,z,!0)}}),H}}},34535:(h,O,o)=>{"use strict";var d=o(93085),x=o(98576),w=o(32861),C=o(76192),T=o(98711),F=o(33442),U=o(46961),Z=o(16447),ee=o(35744),ue=o(11284),ne=o(42760).f,oe=o(50454).forEach,Y=o(50069),A=o(73326),J=A.set,L=A.getterFor;h.exports=function(E,k,V){var G=E.indexOf("Map")!==-1,Q=E.indexOf("Weak")!==-1,W=G?"set":"add",te=x[E],K=te&&te.prototype,H={},fe;if(!Y||!Z(te)||!(Q||K.forEach&&!C(function(){new te().entries().next()})))fe=V.getConstructor(k,E,G,W),w.enable();else{fe=k(function(X,z){J(U(X,ve),{type:E,collection:new te}),z!=null&&F(z,X[W],{that:X,AS_ENTRIES:G})});var ve=fe.prototype,_=L(E);oe(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(X){var z=X=="add"||X=="set";X in K&&!(Q&&X=="clear")&&T(ve,X,function(ge,Oe){var Ue=_(this).collection;if(!z&&Q&&!ee(ge))return X=="get"?void 0:!1;var Re=Ue[X](ge===0?0:ge,Oe);return z?this:Re})}),Q||ne(ve,"size",{configurable:!0,get:function(){return _(this).collection.size}})}return ue(fe,E,!1,!0),H[E]=fe,d({global:!0,forced:!0},H),Q||V.setStrong(fe,E,G),fe}},97987:(h,O,o)=>{var d=o(64500),x=o(93011),w=o(5141),C=o(42760);h.exports=function(T,F,U){for(var Z=x(F),ee=C.f,ue=w.f,ne=0;ne<Z.length;ne++){var oe=Z[ne];!d(T,oe)&&!(U&&d(U,oe))&&ee(T,oe,ue(F,oe))}}},83519:(h,O,o)=>{var d=o(18182),x=d("match");h.exports=function(w){var C=/./;try{"/./"[w](C)}catch(T){try{return C[x]=!1,"/./"[w](C)}catch(F){}}return!1}},4635:(h,O,o)=>{var d=o(76192);h.exports=!d(function(){function x(){}return x.prototype.constructor=null,Object.getPrototypeOf(new x)!==x.prototype})},87271:h=>{h.exports=function(O,o){return{value:O,done:o}}},98711:(h,O,o)=>{var d=o(50069),x=o(42760),w=o(90774);h.exports=d?function(C,T,F){return x.f(C,T,w(1,F))}:function(C,T,F){return C[T]=F,C}},90774:h=>{h.exports=function(O,o){return{enumerable:!(O&1),configurable:!(O&2),writable:!(O&4),value:o}}},49361:(h,O,o)=>{"use strict";var d=o(40077),x=o(42760),w=o(90774);h.exports=function(C,T,F){var U=d(T);U in C?x.f(C,U,w(0,F)):C[U]=F}},59362:(h,O,o)=>{var d=o(98711);h.exports=function(x,w,C,T){return T&&T.enumerable?x[w]=C:d(x,w,C),x}},35090:(h,O,o)=>{var d=o(59362);h.exports=function(x,w,C){for(var T in w)C&&C.unsafe&&x[T]?x[T]=w[T]:d(x,T,w[T],C);return x}},65098:(h,O,o)=>{var d=o(98576),x=Object.defineProperty;h.exports=function(w,C){try{x(d,w,{value:C,configurable:!0,writable:!0})}catch(T){d[w]=C}return C}},29970:(h,O,o)=>{"use strict";var d=o(79288),x=TypeError;h.exports=function(w,C){if(!delete w[C])throw x("Cannot delete property "+d(C)+" of "+d(w))}},50069:(h,O,o)=>{var d=o(76192);h.exports=!d(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},58382:h=>{var O=typeof document=="object"&&document.all,o=typeof O=="undefined"&&O!==void 0;h.exports={all:O,IS_HTMLDDA:o}},67449:(h,O,o)=>{var d=o(98576),x=o(35744),w=d.document,C=x(w)&&x(w.createElement);h.exports=function(T){return C?w.createElement(T):{}}},29425:h=>{var O=TypeError,o=9007199254740991;h.exports=function(d){if(d>o)throw O("Maximum allowed index exceeded");return d}},17365:h=>{h.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},82957:(h,O,o)=>{var d=o(60659),x=o(58189);h.exports=!d&&!x&&typeof window=="object"&&typeof document=="object"},60659:h=>{h.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},29347:(h,O,o)=>{var d=o(78989),x=o(98576);h.exports=/ipad|iphone|ipod/i.test(d)&&x.Pebble!==void 0},69536:(h,O,o)=>{var d=o(78989);h.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(d)},58189:(h,O,o)=>{var d=o(29272),x=o(98576);h.exports=d(x.process)=="process"},5914:(h,O,o)=>{var d=o(78989);h.exports=/web0s(?!.*chrome)/i.test(d)},78989:(h,O,o)=>{var d=o(10150);h.exports=d("navigator","userAgent")||""},14218:(h,O,o)=>{var d=o(98576),x=o(78989),w=d.process,C=d.Deno,T=w&&w.versions||C&&C.version,F=T&&T.v8,U,Z;F&&(U=F.split("."),Z=U[0]>0&&U[0]<4?1:+(U[0]+U[1])),!Z&&x&&(U=x.match(/Edge\/(\d+)/),(!U||U[1]>=74)&&(U=x.match(/Chrome\/(\d+)/),U&&(Z=+U[1]))),h.exports=Z},45607:(h,O,o)=>{var d=o(57545);h.exports=function(x){return d[x+"Prototype"]}},82952:h=>{h.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},14503:(h,O,o)=>{var d=o(84120),x=Error,w=d("".replace),C=function(U){return String(x(U).stack)}("zxcasd"),T=/\n\s*at [^:]*:[^\n]*/,F=T.test(C);h.exports=function(U,Z){if(F&&typeof U=="string"&&!x.prepareStackTrace)for(;Z--;)U=w(U,T,"");return U}},50274:(h,O,o)=>{var d=o(76192),x=o(90774);h.exports=!d(function(){var w=Error("a");return"stack"in w?(Object.defineProperty(w,"stack",x(1,7)),w.stack!==7):!0})},93085:(h,O,o)=>{"use strict";var d=o(98576),x=o(86298),w=o(14914),C=o(16447),T=o(5141).f,F=o(89245),U=o(57545),Z=o(8043),ee=o(98711),ue=o(64500),ne=function(oe){var Y=function(A,J,L){if(this instanceof Y){switch(arguments.length){case 0:return new oe;case 1:return new oe(A);case 2:return new oe(A,J)}return new oe(A,J,L)}return x(oe,this,arguments)};return Y.prototype=oe.prototype,Y};h.exports=function(oe,Y){var A=oe.target,J=oe.global,L=oe.stat,E=oe.proto,k=J?d:L?d[A]:(d[A]||{}).prototype,V=J?U:U[A]||ee(U,A,{})[A],G=V.prototype,Q,W,te,K,H,fe,ve,_,X;for(K in Y)Q=F(J?K:A+(L?".":"#")+K,oe.forced),W=!Q&&k&&ue(k,K),fe=V[K],W&&(oe.dontCallGetSet?(X=T(k,K),ve=X&&X.value):ve=k[K]),H=W&&ve?ve:Y[K],!(W&&typeof fe==typeof H)&&(oe.bind&&W?_=Z(H,d):oe.wrap&&W?_=ne(H):E&&C(H)?_=w(H):_=H,(oe.sham||H&&H.sham||fe&&fe.sham)&&ee(_,"sham",!0),ee(V,K,_),E&&(te=A+"Prototype",ue(U,te)||ee(U,te,{}),ee(U[te],K,H),oe.real&&G&&(Q||!G[K])&&ee(G,K,H)))}},76192:h=>{h.exports=function(O){try{return!!O()}catch(o){return!0}}},47636:(h,O,o)=>{var d=o(76192);h.exports=!d(function(){return Object.isExtensible(Object.preventExtensions({}))})},86298:(h,O,o)=>{var d=o(22784),x=Function.prototype,w=x.apply,C=x.call;h.exports=typeof Reflect=="object"&&Reflect.apply||(d?C.bind(w):function(){return C.apply(w,arguments)})},8043:(h,O,o)=>{var d=o(14914),x=o(66235),w=o(22784),C=d(d.bind);h.exports=function(T,F){return x(T),F===void 0?T:w?C(T,F):function(){return T.apply(F,arguments)}}},22784:(h,O,o)=>{var d=o(76192);h.exports=!d(function(){var x=function(){}.bind();return typeof x!="function"||x.hasOwnProperty("prototype")})},18922:(h,O,o)=>{var d=o(22784),x=Function.prototype.call;h.exports=d?x.bind(x):function(){return x.apply(x,arguments)}},22282:(h,O,o)=>{var d=o(50069),x=o(64500),w=Function.prototype,C=d&&Object.getOwnPropertyDescriptor,T=x(w,"name"),F=T&&function(){}.name==="something",U=T&&(!d||d&&C(w,"name").configurable);h.exports={EXISTS:T,PROPER:F,CONFIGURABLE:U}},14914:(h,O,o)=>{var d=o(29272),x=o(84120);h.exports=function(w){if(d(w)==="Function")return x(w)}},84120:(h,O,o)=>{var d=o(22784),x=Function.prototype,w=x.call,C=d&&x.bind.bind(w,w);h.exports=d?C:function(T){return function(){return w.apply(T,arguments)}}},10150:(h,O,o)=>{var d=o(57545),x=o(98576),w=o(16447),C=function(T){return w(T)?T:void 0};h.exports=function(T,F){return arguments.length<2?C(d[T])||C(x[T]):d[T]&&d[T][F]||x[T]&&x[T][F]}},78703:(h,O,o)=>{var d=o(4696),x=o(75037),w=o(75646),C=o(47771),T=o(18182),F=T("iterator");h.exports=function(U){if(!w(U))return x(U,F)||x(U,"@@iterator")||C[d(U)]}},61669:(h,O,o)=>{var d=o(18922),x=o(66235),w=o(31138),C=o(79288),T=o(78703),F=TypeError;h.exports=function(U,Z){var ee=arguments.length<2?T(U):Z;if(x(ee))return w(d(ee,U));throw F(C(U)+" is not iterable")}},75037:(h,O,o)=>{var d=o(66235),x=o(75646);h.exports=function(w,C){var T=w[C];return x(T)?void 0:d(T)}},98576:(h,O,o)=>{var d=function(x){return x&&x.Math==Math&&x};h.exports=d(typeof globalThis=="object"&&globalThis)||d(typeof window=="object"&&window)||d(typeof self=="object"&&self)||d(typeof o.g=="object"&&o.g)||function(){return this}()||Function("return this")()},64500:(h,O,o)=>{var d=o(84120),x=o(71795),w=d({}.hasOwnProperty);h.exports=Object.hasOwn||function(T,F){return w(x(T),F)}},14535:h=>{h.exports={}},63681:(h,O,o)=>{var d=o(98576);h.exports=function(x,w){var C=d.console;C&&C.error&&(arguments.length==1?C.error(x):C.error(x,w))}},47403:(h,O,o)=>{var d=o(10150);h.exports=d("document","documentElement")},80188:(h,O,o)=>{var d=o(50069),x=o(76192),w=o(67449);h.exports=!d&&!x(function(){return Object.defineProperty(w("div"),"a",{get:function(){return 7}}).a!=7})},2202:(h,O,o)=>{var d=o(84120),x=o(76192),w=o(29272),C=Object,T=d("".split);h.exports=x(function(){return!C("z").propertyIsEnumerable(0)})?function(F){return w(F)=="String"?T(F,""):C(F)}:C},19516:(h,O,o)=>{var d=o(84120),x=o(16447),w=o(46434),C=d(Function.toString);x(w.inspectSource)||(w.inspectSource=function(T){return C(T)}),h.exports=w.inspectSource},10273:(h,O,o)=>{var d=o(35744),x=o(98711);h.exports=function(w,C){d(C)&&"cause"in C&&x(w,"cause",C.cause)}},32861:(h,O,o)=>{var d=o(93085),x=o(84120),w=o(14535),C=o(35744),T=o(64500),F=o(42760).f,U=o(92092),Z=o(24052),ee=o(4532),ue=o(42759),ne=o(47636),oe=!1,Y=ue("meta"),A=0,J=function(Q){F(Q,Y,{value:{objectID:"O"+A++,weakData:{}}})},L=function(Q,W){if(!C(Q))return typeof Q=="symbol"?Q:(typeof Q=="string"?"S":"P")+Q;if(!T(Q,Y)){if(!ee(Q))return"F";if(!W)return"E";J(Q)}return Q[Y].objectID},E=function(Q,W){if(!T(Q,Y)){if(!ee(Q))return!0;if(!W)return!1;J(Q)}return Q[Y].weakData},k=function(Q){return ne&&oe&&ee(Q)&&!T(Q,Y)&&J(Q),Q},V=function(){G.enable=function(){},oe=!0;var Q=U.f,W=x([].splice),te={};te[Y]=1,Q(te).length&&(U.f=function(K){for(var H=Q(K),fe=0,ve=H.length;fe<ve;fe++)if(H[fe]===Y){W(H,fe,1);break}return H},d({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Z.f}))},G=h.exports={enable:V,fastKey:L,getWeakData:E,onFreeze:k};w[Y]=!0},73326:(h,O,o)=>{var d=o(55278),x=o(98576),w=o(35744),C=o(98711),T=o(64500),F=o(46434),U=o(69766),Z=o(14535),ee="Object already initialized",ue=x.TypeError,ne=x.WeakMap,oe,Y,A,J=function(V){return A(V)?Y(V):oe(V,{})},L=function(V){return function(G){var Q;if(!w(G)||(Q=Y(G)).type!==V)throw ue("Incompatible receiver, "+V+" required");return Q}};if(d||F.state){var E=F.state||(F.state=new ne);E.get=E.get,E.has=E.has,E.set=E.set,oe=function(V,G){if(E.has(V))throw ue(ee);return G.facade=V,E.set(V,G),G},Y=function(V){return E.get(V)||{}},A=function(V){return E.has(V)}}else{var k=U("state");Z[k]=!0,oe=function(V,G){if(T(V,k))throw ue(ee);return G.facade=V,C(V,k,G),G},Y=function(V){return T(V,k)?V[k]:{}},A=function(V){return T(V,k)}}h.exports={set:oe,get:Y,has:A,enforce:J,getterFor:L}},96109:(h,O,o)=>{var d=o(18182),x=o(47771),w=d("iterator"),C=Array.prototype;h.exports=function(T){return T!==void 0&&(x.Array===T||C[w]===T)}},34770:(h,O,o)=>{var d=o(29272);h.exports=Array.isArray||function(w){return d(w)=="Array"}},16447:(h,O,o)=>{var d=o(58382),x=d.all;h.exports=d.IS_HTMLDDA?function(w){return typeof w=="function"||w===x}:function(w){return typeof w=="function"}},22091:(h,O,o)=>{var d=o(84120),x=o(76192),w=o(16447),C=o(4696),T=o(10150),F=o(19516),U=function(){},Z=[],ee=T("Reflect","construct"),ue=/^\s*(?:class|function)\b/,ne=d(ue.exec),oe=!ue.exec(U),Y=function(L){if(!w(L))return!1;try{return ee(U,Z,L),!0}catch(E){return!1}},A=function(L){if(!w(L))return!1;switch(C(L)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return oe||!!ne(ue,F(L))}catch(E){return!0}};A.sham=!0,h.exports=!ee||x(function(){var J;return Y(Y.call)||!Y(Object)||!Y(function(){J=!0})||J})?A:Y},89245:(h,O,o)=>{var d=o(76192),x=o(16447),w=/#|\.prototype\./,C=function(ee,ue){var ne=F[T(ee)];return ne==Z?!0:ne==U?!1:x(ue)?d(ue):!!ue},T=C.normalize=function(ee){return String(ee).replace(w,".").toLowerCase()},F=C.data={},U=C.NATIVE="N",Z=C.POLYFILL="P";h.exports=C},75646:h=>{h.exports=function(O){return O==null}},35744:(h,O,o)=>{var d=o(16447),x=o(58382),w=x.all;h.exports=x.IS_HTMLDDA?function(C){return typeof C=="object"?C!==null:d(C)||C===w}:function(C){return typeof C=="object"?C!==null:d(C)}},85546:h=>{h.exports=!0},94352:(h,O,o)=>{var d=o(35744),x=o(29272),w=o(18182),C=w("match");h.exports=function(T){var F;return d(T)&&((F=T[C])!==void 0?!!F:x(T)=="RegExp")}},23236:(h,O,o)=>{var d=o(10150),x=o(16447),w=o(8902),C=o(50615),T=Object;h.exports=C?function(F){return typeof F=="symbol"}:function(F){var U=d("Symbol");return x(U)&&w(U.prototype,T(F))}},33442:(h,O,o)=>{var d=o(8043),x=o(18922),w=o(31138),C=o(79288),T=o(96109),F=o(84104),U=o(8902),Z=o(61669),ee=o(78703),ue=o(66639),ne=TypeError,oe=function(A,J){this.stopped=A,this.result=J},Y=oe.prototype;h.exports=function(A,J,L){var E=L&&L.that,k=!!(L&&L.AS_ENTRIES),V=!!(L&&L.IS_RECORD),G=!!(L&&L.IS_ITERATOR),Q=!!(L&&L.INTERRUPTED),W=d(J,E),te,K,H,fe,ve,_,X,z=function(Oe){return te&&ue(te,"normal",Oe),new oe(!0,Oe)},ge=function(Oe){return k?(w(Oe),Q?W(Oe[0],Oe[1],z):W(Oe[0],Oe[1])):Q?W(Oe,z):W(Oe)};if(V)te=A.iterator;else if(G)te=A;else{if(K=ee(A),!K)throw ne(C(A)+" is not iterable");if(T(K)){for(H=0,fe=F(A);fe>H;H++)if(ve=ge(A[H]),ve&&U(Y,ve))return ve;return new oe(!1)}te=Z(A,K)}for(_=V?A.next:te.next;!(X=x(_,te)).done;){try{ve=ge(X.value)}catch(Oe){ue(te,"throw",Oe)}if(typeof ve=="object"&&ve&&U(Y,ve))return ve}return new oe(!1)}},66639:(h,O,o)=>{var d=o(18922),x=o(31138),w=o(75037);h.exports=function(C,T,F){var U,Z;x(C);try{if(U=w(C,"return"),!U){if(T==="throw")throw F;return F}U=d(U,C)}catch(ee){Z=!0,U=ee}if(T==="throw")throw F;if(Z)throw U;return x(U),F}},25695:(h,O,o)=>{"use strict";var d=o(54413).IteratorPrototype,x=o(52853),w=o(90774),C=o(11284),T=o(47771),F=function(){return this};h.exports=function(U,Z,ee,ue){var ne=Z+" Iterator";return U.prototype=x(d,{next:w(+!ue,ee)}),C(U,ne,!1,!0),T[ne]=F,U}},65297:(h,O,o)=>{"use strict";var d=o(93085),x=o(18922),w=o(85546),C=o(22282),T=o(16447),F=o(25695),U=o(89341),Z=o(24469),ee=o(11284),ue=o(98711),ne=o(59362),oe=o(18182),Y=o(47771),A=o(54413),J=C.PROPER,L=C.CONFIGURABLE,E=A.IteratorPrototype,k=A.BUGGY_SAFARI_ITERATORS,V=oe("iterator"),G="keys",Q="values",W="entries",te=function(){return this};h.exports=function(K,H,fe,ve,_,X,z){F(fe,H,ve);var ge=function(Ce){if(Ce===_&&Xe)return Xe;if(!k&&Ce in Re)return Re[Ce];switch(Ce){case G:return function(){return new fe(this,Ce)};case Q:return function(){return new fe(this,Ce)};case W:return function(){return new fe(this,Ce)}}return function(){return new fe(this)}},Oe=H+" Iterator",Ue=!1,Re=K.prototype,ot=Re[V]||Re["@@iterator"]||_&&Re[_],Xe=!k&&ot||ge(_),xt=H=="Array"&&Re.entries||ot,Pt,Ct,Le;if(xt&&(Pt=U(xt.call(new K)),Pt!==Object.prototype&&Pt.next&&(!w&&U(Pt)!==E&&(Z?Z(Pt,E):T(Pt[V])||ne(Pt,V,te)),ee(Pt,Oe,!0,!0),w&&(Y[Oe]=te))),J&&_==Q&&ot&&ot.name!==Q&&(!w&&L?ue(Re,"name",Q):(Ue=!0,Xe=function(){return x(ot,this)})),_)if(Ct={values:ge(Q),keys:X?Xe:ge(G),entries:ge(W)},z)for(Le in Ct)(k||Ue||!(Le in Re))&&ne(Re,Le,Ct[Le]);else d({target:H,proto:!0,forced:k||Ue},Ct);return(!w||z)&&Re[V]!==Xe&&ne(Re,V,Xe,{name:_}),Y[H]=Xe,Ct}},54413:(h,O,o)=>{"use strict";var d=o(76192),x=o(16447),w=o(35744),C=o(52853),T=o(89341),F=o(59362),U=o(18182),Z=o(85546),ee=U("iterator"),ue=!1,ne,oe,Y;[].keys&&(Y=[].keys(),"next"in Y?(oe=T(T(Y)),oe!==Object.prototype&&(ne=oe)):ue=!0);var A=!w(ne)||d(function(){var J={};return ne[ee].call(J)!==J});A?ne={}:Z&&(ne=C(ne)),x(ne[ee])||F(ne,ee,function(){return this}),h.exports={IteratorPrototype:ne,BUGGY_SAFARI_ITERATORS:ue}},47771:h=>{h.exports={}},84104:(h,O,o)=>{var d=o(8445);h.exports=function(x){return d(x.length)}},77679:h=>{var O=Math.ceil,o=Math.floor;h.exports=Math.trunc||function(x){var w=+x;return(w>0?o:O)(w)}},12950:(h,O,o)=>{var d=o(98576),x=o(8043),w=o(5141).f,C=o(67160).set,T=o(69536),F=o(29347),U=o(5914),Z=o(58189),ee=d.MutationObserver||d.WebKitMutationObserver,ue=d.document,ne=d.process,oe=d.Promise,Y=w(d,"queueMicrotask"),A=Y&&Y.value,J,L,E,k,V,G,Q,W;A||(J=function(){var te,K;for(Z&&(te=ne.domain)&&te.exit();L;){K=L.fn,L=L.next;try{K()}catch(H){throw L?k():E=void 0,H}}E=void 0,te&&te.enter()},!T&&!Z&&!U&&ee&&ue?(V=!0,G=ue.createTextNode(""),new ee(J).observe(G,{characterData:!0}),k=function(){G.data=V=!V}):!F&&oe&&oe.resolve?(Q=oe.resolve(void 0),Q.constructor=oe,W=x(Q.then,Q),k=function(){W(J)}):Z?k=function(){ne.nextTick(J)}:(C=x(C,d),k=function(){C(J)})),h.exports=A||function(te){var K={fn:te,next:void 0};E&&(E.next=K),L||(L=K,k()),E=K}},99438:(h,O,o)=>{"use strict";var d=o(66235),x=TypeError,w=function(C){var T,F;this.promise=new C(function(U,Z){if(T!==void 0||F!==void 0)throw x("Bad Promise constructor");T=U,F=Z}),this.resolve=d(T),this.reject=d(F)};h.exports.f=function(C){return new w(C)}},36016:(h,O,o)=>{var d=o(44845);h.exports=function(x,w){return x===void 0?arguments.length<2?"":w:d(x)}},9703:(h,O,o)=>{var d=o(94352),x=TypeError;h.exports=function(w){if(d(w))throw x("The method doesn't accept regular expressions");return w}},52503:(h,O,o)=>{"use strict";var d=o(50069),x=o(84120),w=o(18922),C=o(76192),T=o(57653),F=o(84750),U=o(56007),Z=o(71795),ee=o(2202),ue=Object.assign,ne=Object.defineProperty,oe=x([].concat);h.exports=!ue||C(function(){if(d&&ue({b:1},ue(ne({},"a",{enumerable:!0,get:function(){ne(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var Y={},A={},J=Symbol(),L="abcdefghijklmnopqrst";return Y[J]=7,L.split("").forEach(function(E){A[E]=E}),ue({},Y)[J]!=7||T(ue({},A)).join("")!=L})?function(A,J){for(var L=Z(A),E=arguments.length,k=1,V=F.f,G=U.f;E>k;)for(var Q=ee(arguments[k++]),W=V?oe(T(Q),V(Q)):T(Q),te=W.length,K=0,H;te>K;)H=W[K++],(!d||w(G,Q,H))&&(L[H]=Q[H]);return L}:ue},52853:(h,O,o)=>{var d=o(31138),x=o(11187),w=o(82952),C=o(14535),T=o(47403),F=o(67449),U=o(69766),Z=">",ee="<",ue="prototype",ne="script",oe=U("IE_PROTO"),Y=function(){},A=function(V){return ee+ne+Z+V+ee+"/"+ne+Z},J=function(V){V.write(A("")),V.close();var G=V.parentWindow.Object;return V=null,G},L=function(){var V=F("iframe"),G="java"+ne+":",Q;return V.style.display="none",T.appendChild(V),V.src=String(G),Q=V.contentWindow.document,Q.open(),Q.write(A("document.F=Object")),Q.close(),Q.F},E,k=function(){try{E=new ActiveXObject("htmlfile")}catch(G){}k=typeof document!="undefined"?document.domain&&E?J(E):L():J(E);for(var V=w.length;V--;)delete k[ue][w[V]];return k()};C[oe]=!0,h.exports=Object.create||function(G,Q){var W;return G!==null?(Y[ue]=d(G),W=new Y,Y[ue]=null,W[oe]=G):W=k(),Q===void 0?W:x.f(W,Q)}},11187:(h,O,o)=>{var d=o(50069),x=o(69600),w=o(42760),C=o(31138),T=o(20101),F=o(57653);O.f=d&&!x?Object.defineProperties:function(Z,ee){C(Z);for(var ue=T(ee),ne=F(ee),oe=ne.length,Y=0,A;oe>Y;)w.f(Z,A=ne[Y++],ue[A]);return Z}},42760:(h,O,o)=>{var d=o(50069),x=o(80188),w=o(69600),C=o(31138),T=o(40077),F=TypeError,U=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,ee="enumerable",ue="configurable",ne="writable";O.f=d?w?function(Y,A,J){if(C(Y),A=T(A),C(J),typeof Y=="function"&&A==="prototype"&&"value"in J&&ne in J&&!J[ne]){var L=Z(Y,A);L&&L[ne]&&(Y[A]=J.value,J={configurable:ue in J?J[ue]:L[ue],enumerable:ee in J?J[ee]:L[ee],writable:!1})}return U(Y,A,J)}:U:function(Y,A,J){if(C(Y),A=T(A),C(J),x)try{return U(Y,A,J)}catch(L){}if("get"in J||"set"in J)throw F("Accessors not supported");return"value"in J&&(Y[A]=J.value),Y}},5141:(h,O,o)=>{var d=o(50069),x=o(18922),w=o(56007),C=o(90774),T=o(20101),F=o(40077),U=o(64500),Z=o(80188),ee=Object.getOwnPropertyDescriptor;O.f=d?ee:function(ne,oe){if(ne=T(ne),oe=F(oe),Z)try{return ee(ne,oe)}catch(Y){}if(U(ne,oe))return C(!x(w.f,ne,oe),ne[oe])}},24052:(h,O,o)=>{var d=o(29272),x=o(20101),w=o(92092).f,C=o(1923),T=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],F=function(U){try{return w(U)}catch(Z){return C(T)}};h.exports.f=function(Z){return T&&d(Z)=="Window"?F(Z):w(x(Z))}},92092:(h,O,o)=>{var d=o(57934),x=o(82952),w=x.concat("length","prototype");O.f=Object.getOwnPropertyNames||function(T){return d(T,w)}},84750:(h,O)=>{O.f=Object.getOwnPropertySymbols},89341:(h,O,o)=>{var d=o(64500),x=o(16447),w=o(71795),C=o(69766),T=o(4635),F=C("IE_PROTO"),U=Object,Z=U.prototype;h.exports=T?U.getPrototypeOf:function(ee){var ue=w(ee);if(d(ue,F))return ue[F];var ne=ue.constructor;return x(ne)&&ue instanceof ne?ne.prototype:ue instanceof U?Z:null}},4532:(h,O,o)=>{var d=o(76192),x=o(35744),w=o(29272),C=o(80410),T=Object.isExtensible,F=d(function(){T(1)});h.exports=F||C?function(Z){return!x(Z)||C&&w(Z)=="ArrayBuffer"?!1:T?T(Z):!0}:T},8902:(h,O,o)=>{var d=o(84120);h.exports=d({}.isPrototypeOf)},57934:(h,O,o)=>{var d=o(84120),x=o(64500),w=o(20101),C=o(48180).indexOf,T=o(14535),F=d([].push);h.exports=function(U,Z){var ee=w(U),ue=0,ne=[],oe;for(oe in ee)!x(T,oe)&&x(ee,oe)&&F(ne,oe);for(;Z.length>ue;)x(ee,oe=Z[ue++])&&(~C(ne,oe)||F(ne,oe));return ne}},57653:(h,O,o)=>{var d=o(57934),x=o(82952);h.exports=Object.keys||function(C){return d(C,x)}},56007:(h,O)=>{"use strict";var o={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,x=d&&!o.call({1:2},1);O.f=x?function(C){var T=d(this,C);return!!T&&T.enumerable}:o},24469:(h,O,o)=>{var d=o(84120),x=o(31138),w=o(7757);h.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var C=!1,T={},F;try{F=d(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),F(T,[]),C=T instanceof Array}catch(U){}return function(Z,ee){return x(Z),w(ee),C?F(Z,ee):Z.__proto__=ee,Z}}():void 0)},75370:(h,O,o)=>{var d=o(50069),x=o(84120),w=o(57653),C=o(20101),T=o(56007).f,F=x(T),U=x([].push),Z=function(ee){return function(ue){for(var ne=C(ue),oe=w(ne),Y=oe.length,A=0,J=[],L;Y>A;)L=oe[A++],(!d||F(ne,L))&&U(J,ee?[L,ne[L]]:ne[L]);return J}};h.exports={entries:Z(!0),values:Z(!1)}},40158:(h,O,o)=>{"use strict";var d=o(83471),x=o(4696);h.exports=d?{}.toString:function(){return"[object "+x(this)+"]"}},380:(h,O,o)=>{var d=o(18922),x=o(16447),w=o(35744),C=TypeError;h.exports=function(T,F){var U,Z;if(F==="string"&&x(U=T.toString)&&!w(Z=d(U,T))||x(U=T.valueOf)&&!w(Z=d(U,T))||F!=="string"&&x(U=T.toString)&&!w(Z=d(U,T)))return Z;throw C("Can't convert object to primitive value")}},93011:(h,O,o)=>{var d=o(10150),x=o(84120),w=o(92092),C=o(84750),T=o(31138),F=x([].concat);h.exports=d("Reflect","ownKeys")||function(Z){var ee=w.f(T(Z)),ue=C.f;return ue?F(ee,ue(Z)):ee}},57545:h=>{h.exports={}},70892:h=>{h.exports=function(O){try{return{error:!1,value:O()}}catch(o){return{error:!0,value:o}}}},30511:(h,O,o)=>{var d=o(98576),x=o(15813),w=o(16447),C=o(89245),T=o(19516),F=o(18182),U=o(82957),Z=o(60659),ee=o(85546),ue=o(14218),ne=x&&x.prototype,oe=F("species"),Y=!1,A=w(d.PromiseRejectionEvent),J=C("Promise",function(){var L=T(x),E=L!==String(x);if(!E&&ue===66||ee&&!(ne.catch&&ne.finally))return!0;if(!ue||ue<51||!/native code/.test(L)){var k=new x(function(Q){Q(1)}),V=function(Q){Q(function(){},function(){})},G=k.constructor={};if(G[oe]=V,Y=k.then(function(){})instanceof V,!Y)return!0}return!E&&(U||Z)&&!A});h.exports={CONSTRUCTOR:J,REJECTION_EVENT:A,SUBCLASSING:Y}},15813:(h,O,o)=>{var d=o(98576);h.exports=d.Promise},19126:(h,O,o)=>{var d=o(31138),x=o(35744),w=o(99438);h.exports=function(C,T){if(d(C),x(T)&&T.constructor===C)return T;var F=w.f(C),U=F.resolve;return U(T),F.promise}},52775:(h,O,o)=>{var d=o(15813),x=o(19770),w=o(30511).CONSTRUCTOR;h.exports=w||!x(function(C){d.all(C).then(void 0,function(){})})},6412:h=>{var O=function(){this.head=null,this.tail=null};O.prototype={add:function(o){var d={item:o,next:null};this.head?this.tail.next=d:this.head=d,this.tail=d},get:function(){var o=this.head;if(o)return this.head=o.next,this.tail===o&&(this.tail=null),o.item}},h.exports=O},13209:(h,O,o)=>{var d=o(75646),x=TypeError;h.exports=function(w){if(d(w))throw x("Can't call method on "+w);return w}},63656:(h,O,o)=>{"use strict";var d=o(10150),x=o(42760),w=o(18182),C=o(50069),T=w("species");h.exports=function(F){var U=d(F),Z=x.f;C&&U&&!U[T]&&Z(U,T,{configurable:!0,get:function(){return this}})}},11284:(h,O,o)=>{var d=o(83471),x=o(42760).f,w=o(98711),C=o(64500),T=o(40158),F=o(18182),U=F("toStringTag");h.exports=function(Z,ee,ue,ne){if(Z){var oe=ue?Z:Z.prototype;C(oe,U)||x(oe,U,{configurable:!0,value:ee}),ne&&!d&&w(oe,"toString",T)}}},69766:(h,O,o)=>{var d=o(98717),x=o(42759),w=d("keys");h.exports=function(C){return w[C]||(w[C]=x(C))}},46434:(h,O,o)=>{var d=o(98576),x=o(65098),w="__core-js_shared__",C=d[w]||x(w,{});h.exports=C},98717:(h,O,o)=>{var d=o(85546),x=o(46434);(h.exports=function(w,C){return x[w]||(x[w]=C!==void 0?C:{})})("versions",[]).push({version:"3.27.1",mode:d?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.27.1/LICENSE",source:"https://github.com/zloirock/core-js"})},84743:(h,O,o)=>{var d=o(31138),x=o(71404),w=o(75646),C=o(18182),T=C("species");h.exports=function(F,U){var Z=d(F).constructor,ee;return Z===void 0||w(ee=d(Z)[T])?U:x(ee)}},863:(h,O,o)=>{var d=o(84120),x=o(41941),w=o(44845),C=o(13209),T=d("".charAt),F=d("".charCodeAt),U=d("".slice),Z=function(ee){return function(ue,ne){var oe=w(C(ue)),Y=x(ne),A=oe.length,J,L;return Y<0||Y>=A?ee?"":void 0:(J=F(oe,Y),J<55296||J>56319||Y+1===A||(L=F(oe,Y+1))<56320||L>57343?ee?T(oe,Y):J:ee?U(oe,Y,Y+2):(J-55296<<10)+(L-56320)+65536)}};h.exports={codeAt:Z(!1),charAt:Z(!0)}},36770:(h,O,o)=>{var d=o(14218),x=o(76192);h.exports=!!Object.getOwnPropertySymbols&&!x(function(){var w=Symbol();return!String(w)||!(Object(w)instanceof Symbol)||!Symbol.sham&&d&&d<41})},93407:(h,O,o)=>{var d=o(18922),x=o(10150),w=o(18182),C=o(59362);h.exports=function(){var T=x("Symbol"),F=T&&T.prototype,U=F&&F.valueOf,Z=w("toPrimitive");F&&!F[Z]&&C(F,Z,function(ee){return d(U,this)},{arity:1})}},20031:(h,O,o)=>{var d=o(36770);h.exports=d&&!!Symbol.for&&!!Symbol.keyFor},67160:(h,O,o)=>{var d=o(98576),x=o(86298),w=o(8043),C=o(16447),T=o(64500),F=o(76192),U=o(47403),Z=o(93096),ee=o(67449),ue=o(67822),ne=o(69536),oe=o(58189),Y=d.setImmediate,A=d.clearImmediate,J=d.process,L=d.Dispatch,E=d.Function,k=d.MessageChannel,V=d.String,G=0,Q={},W="onreadystatechange",te,K,H,fe;try{te=d.location}catch(ge){}var ve=function(ge){if(T(Q,ge)){var Oe=Q[ge];delete Q[ge],Oe()}},_=function(ge){return function(){ve(ge)}},X=function(ge){ve(ge.data)},z=function(ge){d.postMessage(V(ge),te.protocol+"//"+te.host)};(!Y||!A)&&(Y=function(Oe){ue(arguments.length,1);var Ue=C(Oe)?Oe:E(Oe),Re=Z(arguments,1);return Q[++G]=function(){x(Ue,void 0,Re)},K(G),G},A=function(Oe){delete Q[Oe]},oe?K=function(ge){J.nextTick(_(ge))}:L&&L.now?K=function(ge){L.now(_(ge))}:k&&!ne?(H=new k,fe=H.port2,H.port1.onmessage=X,K=w(fe.postMessage,fe)):d.addEventListener&&C(d.postMessage)&&!d.importScripts&&te&&te.protocol!=="file:"&&!F(z)?(K=z,d.addEventListener("message",X,!1)):W in ee("script")?K=function(ge){U.appendChild(ee("script"))[W]=function(){U.removeChild(this),ve(ge)}}:K=function(ge){setTimeout(_(ge),0)}),h.exports={set:Y,clear:A}},97739:(h,O,o)=>{var d=o(41941),x=Math.max,w=Math.min;h.exports=function(C,T){var F=d(C);return F<0?x(F+T,0):w(F,T)}},20101:(h,O,o)=>{var d=o(2202),x=o(13209);h.exports=function(w){return d(x(w))}},41941:(h,O,o)=>{var d=o(77679);h.exports=function(x){var w=+x;return w!==w||w===0?0:d(w)}},8445:(h,O,o)=>{var d=o(41941),x=Math.min;h.exports=function(w){return w>0?x(d(w),9007199254740991):0}},71795:(h,O,o)=>{var d=o(13209),x=Object;h.exports=function(w){return x(d(w))}},97888:(h,O,o)=>{var d=o(18922),x=o(35744),w=o(23236),C=o(75037),T=o(380),F=o(18182),U=TypeError,Z=F("toPrimitive");h.exports=function(ee,ue){if(!x(ee)||w(ee))return ee;var ne=C(ee,Z),oe;if(ne){if(ue===void 0&&(ue="default"),oe=d(ne,ee,ue),!x(oe)||w(oe))return oe;throw U("Can't convert object to primitive value")}return ue===void 0&&(ue="number"),T(ee,ue)}},40077:(h,O,o)=>{var d=o(97888),x=o(23236);h.exports=function(w){var C=d(w,"string");return x(C)?C:C+""}},83471:(h,O,o)=>{var d=o(18182),x=d("toStringTag"),w={};w[x]="z",h.exports=String(w)==="[object z]"},44845:(h,O,o)=>{var d=o(4696),x=String;h.exports=function(w){if(d(w)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return x(w)}},79288:h=>{var O=String;h.exports=function(o){try{return O(o)}catch(d){return"Object"}}},42759:(h,O,o)=>{var d=o(84120),x=0,w=Math.random(),C=d(1 .toString);h.exports=function(T){return"Symbol("+(T===void 0?"":T)+")_"+C(++x+w,36)}},58552:(h,O,o)=>{var d=o(76192),x=o(18182),w=o(85546),C=x("iterator");h.exports=!d(function(){var T=new URL("b?a=1&b=2&c=3","http://a"),F=T.searchParams,U="";return T.pathname="c%20d",F.forEach(function(Z,ee){F.delete("b"),U+=ee+Z}),w&&!T.toJSON||!F.sort||T.href!=="http://a/c%20d?a=1&c=3"||F.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!F[C]||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"||U!=="a1c3"||new URL("http://x",void 0).host!=="x"})},50615:(h,O,o)=>{var d=o(36770);h.exports=d&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},69600:(h,O,o)=>{var d=o(50069),x=o(76192);h.exports=d&&x(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},67822:h=>{var O=TypeError;h.exports=function(o,d){if(o<d)throw O("Not enough arguments");return o}},55278:(h,O,o)=>{var d=o(98576),x=o(16447),w=d.WeakMap;h.exports=x(w)&&/native code/.test(String(w))},48332:(h,O,o)=>{var d=o(57545),x=o(64500),w=o(89207),C=o(42760).f;h.exports=function(T){var F=d.Symbol||(d.Symbol={});x(F,T)||C(F,T,{value:w.f(T)})}},89207:(h,O,o)=>{var d=o(18182);O.f=d},18182:(h,O,o)=>{var d=o(98576),x=o(98717),w=o(64500),C=o(42759),T=o(36770),F=o(50615),U=x("wks"),Z=d.Symbol,ee=Z&&Z.for,ue=F?Z:Z&&Z.withoutSetter||C;h.exports=function(ne){if(!w(U,ne)||!(T||typeof U[ne]=="string")){var oe="Symbol."+ne;T&&w(Z,ne)?U[ne]=Z[ne]:F&&ee?U[ne]=ee(oe):U[ne]=ue(oe)}return U[ne]}},93820:(h,O,o)=>{"use strict";var d=o(93085),x=o(8902),w=o(89341),C=o(24469),T=o(97987),F=o(52853),U=o(98711),Z=o(90774),ee=o(14503),ue=o(10273),ne=o(33442),oe=o(36016),Y=o(18182),A=o(50274),J=Y("toStringTag"),L=Error,E=[].push,k=function(Q,W){var te=arguments.length>2?arguments[2]:void 0,K=x(V,this),H;C?H=C(L(),K?w(this):V):(H=K?this:F(V),U(H,J,"Error")),W!==void 0&&U(H,"message",oe(W)),A&&U(H,"stack",ee(H.stack,1)),ue(H,te);var fe=[];return ne(Q,E,{that:fe}),U(H,"errors",fe),H};C?C(k,L):T(k,L,{name:!0});var V=k.prototype=F(L.prototype,{constructor:Z(1,k),message:Z(1,""),name:Z(1,"AggregateError")});d({global:!0,constructor:!0,arity:2},{AggregateError:k})},4242:(h,O,o)=>{o(93820)},59106:(h,O,o)=>{"use strict";var d=o(93085),x=o(76192),w=o(34770),C=o(35744),T=o(71795),F=o(84104),U=o(29425),Z=o(49361),ee=o(71321),ue=o(90242),ne=o(18182),oe=o(14218),Y=ne("isConcatSpreadable"),A=oe>=51||!x(function(){var k=[];return k[Y]=!1,k.concat()[0]!==k}),J=ue("concat"),L=function(k){if(!C(k))return!1;var V=k[Y];return V!==void 0?!!V:w(k)},E=!A||!J;d({target:"Array",proto:!0,arity:1,forced:E},{concat:function(V){var G=T(this),Q=ee(G,0),W=0,te,K,H,fe,ve;for(te=-1,H=arguments.length;te<H;te++)if(ve=te===-1?G:arguments[te],L(ve))for(fe=F(ve),U(W+fe),K=0;K<fe;K++,W++)K in ve&&Z(Q,W,ve[K]);else U(W+1),Z(Q,W++,ve);return Q.length=W,Q}})},73436:(h,O,o)=>{"use strict";var d=o(93085),x=o(50454).filter,w=o(90242),C=w("filter");d({target:"Array",proto:!0,forced:!C},{filter:function(F){return x(this,F,arguments.length>1?arguments[1]:void 0)}})},10880:(h,O,o)=>{"use strict";var d=o(93085),x=o(50454).find,w=o(67423),C="find",T=!0;C in[]&&Array(1)[C](function(){T=!1}),d({target:"Array",proto:!0,forced:T},{find:function(U){return x(this,U,arguments.length>1?arguments[1]:void 0)}}),w(C)},9823:(h,O,o)=>{"use strict";var d=o(93085),x=o(87397);d({target:"Array",proto:!0,forced:[].forEach!=x},{forEach:x})},19173:(h,O,o)=>{var d=o(93085),x=o(20841),w=o(19770),C=!w(function(T){Array.from(T)});d({target:"Array",stat:!0,forced:C},{from:x})},70024:(h,O,o)=>{"use strict";var d=o(93085),x=o(48180).includes,w=o(76192),C=o(67423),T=w(function(){return!Array(1).includes()});d({target:"Array",proto:!0,forced:T},{includes:function(U){return x(this,U,arguments.length>1?arguments[1]:void 0)}}),C("includes")},62276:(h,O,o)=>{"use strict";var d=o(93085),x=o(14914),w=o(48180).indexOf,C=o(10424),T=x([].indexOf),F=!!T&&1/T([1],1,-0)<0,U=C("indexOf");d({target:"Array",proto:!0,forced:F||!U},{indexOf:function(ee){var ue=arguments.length>1?arguments[1]:void 0;return F?T(this,ee,ue)||0:w(this,ee,ue)}})},8118:(h,O,o)=>{var d=o(93085),x=o(34770);d({target:"Array",stat:!0},{isArray:x})},98939:(h,O,o)=>{"use strict";var d=o(20101),x=o(67423),w=o(47771),C=o(73326),T=o(42760).f,F=o(65297),U=o(87271),Z=o(85546),ee=o(50069),ue="Array Iterator",ne=C.set,oe=C.getterFor(ue);h.exports=F(Array,"Array",function(A,J){ne(this,{type:ue,target:d(A),index:0,kind:J})},function(){var A=oe(this),J=A.target,L=A.kind,E=A.index++;return!J||E>=J.length?(A.target=void 0,U(void 0,!0)):L=="keys"?U(E,!1):L=="values"?U(J[E],!1):U([E,J[E]],!1)},"values");var Y=w.Arguments=w.Array;if(x("keys"),x("values"),x("entries"),!Z&&ee&&Y.name!=="values")try{T(Y,"name",{value:"values"})}catch(A){}},63838:(h,O,o)=>{"use strict";var d=o(93085),x=o(50454).map,w=o(90242),C=w("map");d({target:"Array",proto:!0,forced:!C},{map:function(F){return x(this,F,arguments.length>1?arguments[1]:void 0)}})},99523:(h,O,o)=>{"use strict";var d=o(93085),x=o(84120),w=o(34770),C=x([].reverse),T=[1,2];d({target:"Array",proto:!0,forced:String(T)===String(T.reverse())},{reverse:function(){return w(this)&&(this.length=this.length),C(this)}})},65818:(h,O,o)=>{"use strict";var d=o(93085),x=o(34770),w=o(22091),C=o(35744),T=o(97739),F=o(84104),U=o(20101),Z=o(49361),ee=o(18182),ue=o(90242),ne=o(93096),oe=ue("slice"),Y=ee("species"),A=Array,J=Math.max;d({target:"Array",proto:!0,forced:!oe},{slice:function(E,k){var V=U(this),G=F(V),Q=T(E,G),W=T(k===void 0?G:k,G),te,K,H;if(x(V)&&(te=V.constructor,w(te)&&(te===A||x(te.prototype))?te=void 0:C(te)&&(te=te[Y],te===null&&(te=void 0)),te===A||te===void 0))return ne(V,Q,W);for(K=new(te===void 0?A:te)(J(W-Q,0)),H=0;Q<W;Q++,H++)Q in V&&Z(K,H,V[Q]);return K.length=H,K}})},12178:(h,O,o)=>{"use strict";var d=o(93085),x=o(71795),w=o(97739),C=o(41941),T=o(84104),F=o(95072),U=o(29425),Z=o(71321),ee=o(49361),ue=o(29970),ne=o(90242),oe=ne("splice"),Y=Math.max,A=Math.min;d({target:"Array",proto:!0,forced:!oe},{splice:function(L,E){var k=x(this),V=T(k),G=w(L,V),Q=arguments.length,W,te,K,H,fe,ve;for(Q===0?W=te=0:Q===1?(W=0,te=V-G):(W=Q-2,te=A(Y(C(E),0),V-G)),U(V+W-te),K=Z(k,te),H=0;H<te;H++)fe=G+H,fe in k&&ee(K,H,k[fe]);if(K.length=te,W<te){for(H=G;H<V-te;H++)fe=H+te,ve=H+W,fe in k?k[ve]=k[fe]:ue(k,ve);for(H=V;H>V-te+W;H--)ue(k,H-1)}else if(W>te)for(H=V-te;H>G;H--)fe=H+te-1,ve=H+W-1,fe in k?k[ve]=k[fe]:ue(k,ve);for(H=0;H<W;H++)k[H+G]=arguments[H+2];return F(k,V-te+W),K}})},12432:()=>{},25067:(h,O,o)=>{var d=o(93085),x=o(98576);d({global:!0,forced:x.globalThis!==x},{globalThis:x})},59704:(h,O,o)=>{var d=o(93085),x=o(10150),w=o(86298),C=o(18922),T=o(84120),F=o(76192),U=o(34770),Z=o(16447),ee=o(35744),ue=o(23236),ne=o(93096),oe=o(36770),Y=x("JSON","stringify"),A=T(/./.exec),J=T("".charAt),L=T("".charCodeAt),E=T("".replace),k=T(1 .toString),V=/[\uD800-\uDFFF]/g,G=/^[\uD800-\uDBFF]$/,Q=/^[\uDC00-\uDFFF]$/,W=!oe||F(function(){var fe=x("Symbol")();return Y([fe])!="[null]"||Y({a:fe})!="{}"||Y(Object(fe))!="{}"}),te=F(function(){return Y("\uDF06\uD834")!=='"\\udf06\\ud834"'||Y("\uDEAD")!=='"\\udead"'}),K=function(fe,ve){var _=ne(arguments),X=ve;if(!(!ee(ve)&&fe===void 0||ue(fe)))return U(ve)||(ve=function(z,ge){if(Z(X)&&(ge=C(X,this,z,ge)),!ue(ge))return ge}),_[1]=ve,w(Y,null,_)},H=function(fe,ve,_){var X=J(_,ve-1),z=J(_,ve+1);return A(G,fe)&&!A(Q,z)||A(Q,fe)&&!A(G,X)?"\\u"+k(L(fe,0),16):fe};Y&&d({target:"JSON",stat:!0,arity:3,forced:W||te},{stringify:function(ve,_,X){var z=ne(arguments),ge=w(W?K:Y,null,z);return te&&typeof ge=="string"?E(ge,V,H):ge}})},68671:(h,O,o)=>{var d=o(98576),x=o(11284);x(d.JSON,"JSON",!0)},58556:()=>{},93582:(h,O,o)=>{var d=o(93085),x=o(52503);d({target:"Object",stat:!0,arity:2,forced:Object.assign!==x},{assign:x})},73113:(h,O,o)=>{var d=o(93085),x=o(50069),w=o(52853);d({target:"Object",stat:!0,sham:!x},{create:w})},57585:(h,O,o)=>{var d=o(93085),x=o(50069),w=o(11187).f;d({target:"Object",stat:!0,forced:Object.defineProperties!==w,sham:!x},{defineProperties:w})},20297:(h,O,o)=>{var d=o(93085),x=o(50069),w=o(42760).f;d({target:"Object",stat:!0,forced:Object.defineProperty!==w,sham:!x},{defineProperty:w})},27442:(h,O,o)=>{var d=o(93085),x=o(75370).entries;d({target:"Object",stat:!0},{entries:function(C){return x(C)}})},89189:(h,O,o)=>{var d=o(93085),x=o(76192),w=o(20101),C=o(5141).f,T=o(50069),F=x(function(){C(1)}),U=!T||F;d({target:"Object",stat:!0,forced:U,sham:!T},{getOwnPropertyDescriptor:function(ee,ue){return C(w(ee),ue)}})},62509:(h,O,o)=>{var d=o(93085),x=o(50069),w=o(93011),C=o(20101),T=o(5141),F=o(49361);d({target:"Object",stat:!0,sham:!x},{getOwnPropertyDescriptors:function(Z){for(var ee=C(Z),ue=T.f,ne=w(ee),oe={},Y=0,A,J;ne.length>Y;)J=ue(ee,A=ne[Y++]),J!==void 0&&F(oe,A,J);return oe}})},17895:(h,O,o)=>{var d=o(93085),x=o(36770),w=o(76192),C=o(84750),T=o(71795),F=!x||w(function(){C.f(1)});d({target:"Object",stat:!0,forced:F},{getOwnPropertySymbols:function(Z){var ee=C.f;return ee?ee(T(Z)):[]}})},19234:(h,O,o)=>{var d=o(93085),x=o(76192),w=o(71795),C=o(89341),T=o(4635),F=x(function(){C(1)});d({target:"Object",stat:!0,forced:F,sham:!T},{getPrototypeOf:function(Z){return C(w(Z))}})},92647:(h,O,o)=>{var d=o(93085),x=o(71795),w=o(57653),C=o(76192),T=C(function(){w(1)});d({target:"Object",stat:!0,forced:T},{keys:function(U){return w(x(U))}})},13222:(h,O,o)=>{var d=o(93085),x=o(24469);d({target:"Object",stat:!0},{setPrototypeOf:x})},46663:()=>{},97884:(h,O,o)=>{"use strict";var d=o(93085),x=o(18922),w=o(66235),C=o(99438),T=o(70892),F=o(33442);d({target:"Promise",stat:!0},{allSettled:function(Z){var ee=this,ue=C.f(ee),ne=ue.resolve,oe=ue.reject,Y=T(function(){var A=w(ee.resolve),J=[],L=0,E=1;F(Z,function(k){var V=L++,G=!1;E++,x(A,ee,k).then(function(Q){G||(G=!0,J[V]={status:"fulfilled",value:Q},--E||ne(J))},function(Q){G||(G=!0,J[V]={status:"rejected",reason:Q},--E||ne(J))})}),--E||ne(J)});return Y.error&&oe(Y.value),ue.promise}})},89701:(h,O,o)=>{"use strict";var d=o(93085),x=o(18922),w=o(66235),C=o(99438),T=o(70892),F=o(33442),U=o(52775);d({target:"Promise",stat:!0,forced:U},{all:function(ee){var ue=this,ne=C.f(ue),oe=ne.resolve,Y=ne.reject,A=T(function(){var J=w(ue.resolve),L=[],E=0,k=1;F(ee,function(V){var G=E++,Q=!1;k++,x(J,ue,V).then(function(W){Q||(Q=!0,L[G]=W,--k||oe(L))},Y)}),--k||oe(L)});return A.error&&Y(A.value),ne.promise}})},78885:(h,O,o)=>{"use strict";var d=o(93085),x=o(18922),w=o(66235),C=o(10150),T=o(99438),F=o(70892),U=o(33442),Z="No one promise resolved";d({target:"Promise",stat:!0},{any:function(ue){var ne=this,oe=C("AggregateError"),Y=T.f(ne),A=Y.resolve,J=Y.reject,L=F(function(){var E=w(ne.resolve),k=[],V=0,G=1,Q=!1;U(ue,function(W){var te=V++,K=!1;G++,x(E,ne,W).then(function(H){K||Q||(Q=!0,A(H))},function(H){K||Q||(K=!0,k[te]=H,--G||J(new oe(k,Z)))})}),--G||J(new oe(k,Z))});return L.error&&J(L.value),Y.promise}})},34025:(h,O,o)=>{"use strict";var d=o(93085),x=o(85546),w=o(30511).CONSTRUCTOR,C=o(15813),T=o(10150),F=o(16447),U=o(59362),Z=C&&C.prototype;if(d({target:"Promise",proto:!0,forced:w,real:!0},{catch:function(ue){return this.then(void 0,ue)}}),!x&&F(C)){var ee=T("Promise").prototype.catch;Z.catch!==ee&&U(Z,"catch",ee,{unsafe:!0})}},60268:(h,O,o)=>{"use strict";var d=o(93085),x=o(85546),w=o(58189),C=o(98576),T=o(18922),F=o(59362),U=o(24469),Z=o(11284),ee=o(63656),ue=o(66235),ne=o(16447),oe=o(35744),Y=o(46961),A=o(84743),J=o(67160).set,L=o(12950),E=o(63681),k=o(70892),V=o(6412),G=o(73326),Q=o(15813),W=o(30511),te=o(99438),K="Promise",H=W.CONSTRUCTOR,fe=W.REJECTION_EVENT,ve=W.SUBCLASSING,_=G.getterFor(K),X=G.set,z=Q&&Q.prototype,ge=Q,Oe=z,Ue=C.TypeError,Re=C.document,ot=C.process,Xe=te.f,xt=Xe,Pt=!!(Re&&Re.createEvent&&C.dispatchEvent),Ct="unhandledrejection",Le="rejectionhandled",Ce=0,Se=1,De=2,$e=1,tt=2,_e,St,It,Wt,$t=function(et){var mt;return oe(et)&&ne(mt=et.then)?mt:!1},We=function(et,mt){var Mt=mt.value,Tt=mt.state==Se,Rt=Tt?et.ok:et.fail,dt=et.resolve,gt=et.reject,kt=et.domain,lt,Ve,ce;try{Rt?(Tt||(mt.rejection===tt&&un(mt),mt.rejection=$e),Rt===!0?lt=Mt:(kt&&kt.enter(),lt=Rt(Mt),kt&&(kt.exit(),ce=!0)),lt===et.promise?gt(Ue("Promise-chain cycle")):(Ve=$t(lt))?T(Ve,lt,dt,gt):dt(lt)):gt(Mt)}catch(xe){kt&&!ce&&kt.exit(),gt(xe)}},Ot=function(et,mt){et.notified||(et.notified=!0,L(function(){for(var Mt=et.reactions,Tt;Tt=Mt.get();)We(Tt,et);et.notified=!1,mt&&!et.rejection&&qr(et)}))},st=function(et,mt,Mt){var Tt,Rt;Pt?(Tt=Re.createEvent("Event"),Tt.promise=mt,Tt.reason=Mt,Tt.initEvent(et,!1,!0),C.dispatchEvent(Tt)):Tt={promise:mt,reason:Mt},!fe&&(Rt=C["on"+et])?Rt(Tt):et===Ct&&E("Unhandled promise rejection",Mt)},qr=function(et){T(J,C,function(){var mt=et.facade,Mt=et.value,Tt=Qe(et),Rt;if(Tt&&(Rt=k(function(){w?ot.emit("unhandledRejection",Mt,mt):st(Ct,mt,Mt)}),et.rejection=w||Qe(et)?tt:$e,Rt.error))throw Rt.value})},Qe=function(et){return et.rejection!==$e&&!et.parent},un=function(et){T(J,C,function(){var mt=et.facade;w?ot.emit("rejectionHandled",mt):st(Le,mt,et.value)})},Ir=function(et,mt,Mt){return function(Tt){et(mt,Tt,Mt)}},Or=function(et,mt,Mt){et.done||(et.done=!0,Mt&&(et=Mt),et.value=mt,et.state=De,Ot(et,!0))},hr=function(et,mt,Mt){if(!et.done){et.done=!0,Mt&&(et=Mt);try{if(et.facade===mt)throw Ue("Promise can't be resolved itself");var Tt=$t(mt);Tt?L(function(){var Rt={done:!1};try{T(Tt,mt,Ir(hr,Rt,et),Ir(Or,Rt,et))}catch(dt){Or(Rt,dt,et)}}):(et.value=mt,et.state=Se,Ot(et,!1))}catch(Rt){Or({done:!1},Rt,et)}}};if(H&&(ge=function(mt){Y(this,Oe),ue(mt),T(_e,this);var Mt=_(this);try{mt(Ir(hr,Mt),Ir(Or,Mt))}catch(Tt){Or(Mt,Tt)}},Oe=ge.prototype,_e=function(mt){X(this,{type:K,done:!1,notified:!1,parent:!1,reactions:new V,rejection:!1,state:Ce,value:void 0})},_e.prototype=F(Oe,"then",function(mt,Mt){var Tt=_(this),Rt=Xe(A(this,ge));return Tt.parent=!0,Rt.ok=ne(mt)?mt:!0,Rt.fail=ne(Mt)&&Mt,Rt.domain=w?ot.domain:void 0,Tt.state==Ce?Tt.reactions.add(Rt):L(function(){We(Rt,Tt)}),Rt.promise}),St=function(){var et=new _e,mt=_(et);this.promise=et,this.resolve=Ir(hr,mt),this.reject=Ir(Or,mt)},te.f=Xe=function(et){return et===ge||et===It?new St(et):xt(et)},!x&&ne(Q)&&z!==Object.prototype)){Wt=z.then,ve||F(z,"then",function(mt,Mt){var Tt=this;return new ge(function(Rt,dt){T(Wt,Tt,Rt,dt)}).then(mt,Mt)},{unsafe:!0});try{delete z.constructor}catch(et){}U&&U(z,Oe)}d({global:!0,constructor:!0,wrap:!0,forced:H},{Promise:ge}),Z(ge,K,!1,!0),ee(K)},91868:(h,O,o)=>{"use strict";var d=o(93085),x=o(85546),w=o(15813),C=o(76192),T=o(10150),F=o(16447),U=o(84743),Z=o(19126),ee=o(59362),ue=w&&w.prototype,ne=!!w&&C(function(){ue.finally.call({then:function(){}},function(){})});if(d({target:"Promise",proto:!0,real:!0,forced:ne},{finally:function(Y){var A=U(this,T("Promise")),J=F(Y);return this.then(J?function(L){return Z(A,Y()).then(function(){return L})}:Y,J?function(L){return Z(A,Y()).then(function(){throw L})}:Y)}}),!x&&F(w)){var oe=T("Promise").prototype.finally;ue.finally!==oe&&ee(ue,"finally",oe,{unsafe:!0})}},59021:(h,O,o)=>{o(60268),o(89701),o(34025),o(67196),o(85873),o(22931)},67196:(h,O,o)=>{"use strict";var d=o(93085),x=o(18922),w=o(66235),C=o(99438),T=o(70892),F=o(33442),U=o(52775);d({target:"Promise",stat:!0,forced:U},{race:function(ee){var ue=this,ne=C.f(ue),oe=ne.reject,Y=T(function(){var A=w(ue.resolve);F(ee,function(J){x(A,ue,J).then(ne.resolve,oe)})});return Y.error&&oe(Y.value),ne.promise}})},85873:(h,O,o)=>{"use strict";var d=o(93085),x=o(18922),w=o(99438),C=o(30511).CONSTRUCTOR;d({target:"Promise",stat:!0,forced:C},{reject:function(F){var U=w.f(this);return x(U.reject,void 0,F),U.promise}})},22931:(h,O,o)=>{"use strict";var d=o(93085),x=o(10150),w=o(85546),C=o(15813),T=o(30511).CONSTRUCTOR,F=o(19126),U=x("Promise"),Z=w&&!T;d({target:"Promise",stat:!0,forced:w||T},{resolve:function(ue){return F(Z&&this===U?C:this,ue)}})},71367:()=>{},39247:(h,O,o)=>{"use strict";var d=o(93085),x=o(84120),w=o(9703),C=o(13209),T=o(44845),F=o(83519),U=x("".indexOf);d({target:"String",proto:!0,forced:!F("includes")},{includes:function(ee){return!!~U(T(C(this)),T(w(ee)),arguments.length>1?arguments[1]:void 0)}})},5454:(h,O,o)=>{"use strict";var d=o(863).charAt,x=o(44845),w=o(73326),C=o(65297),T=o(87271),F="String Iterator",U=w.set,Z=w.getterFor(F);C(String,"String",function(ee){U(this,{type:F,string:x(ee),index:0})},function(){var ue=Z(this),ne=ue.string,oe=ue.index,Y;return oe>=ne.length?T(void 0,!0):(Y=d(ne,oe),ue.index+=Y.length,T(Y,!1))})},32991:(h,O,o)=>{"use strict";var d=o(93085),x=o(14914),w=o(5141).f,C=o(8445),T=o(44845),F=o(9703),U=o(13209),Z=o(83519),ee=o(85546),ue=x("".startsWith),ne=x("".slice),oe=Math.min,Y=Z("startsWith"),A=!ee&&!Y&&!!function(){var J=w(String.prototype,"startsWith");return J&&!J.writable}();d({target:"String",proto:!0,forced:!A&&!Y},{startsWith:function(L){var E=T(U(this));F(L);var k=C(oe(arguments.length>1?arguments[1]:void 0,E.length)),V=T(L);return ue?ue(E,V,k):ne(E,k,k+V.length)===V}})},19781:(h,O,o)=>{var d=o(48332);d("asyncIterator")},49351:(h,O,o)=>{"use strict";var d=o(93085),x=o(98576),w=o(18922),C=o(84120),T=o(85546),F=o(50069),U=o(36770),Z=o(76192),ee=o(64500),ue=o(8902),ne=o(31138),oe=o(20101),Y=o(40077),A=o(44845),J=o(90774),L=o(52853),E=o(57653),k=o(92092),V=o(24052),G=o(84750),Q=o(5141),W=o(42760),te=o(11187),K=o(56007),H=o(59362),fe=o(98717),ve=o(69766),_=o(14535),X=o(42759),z=o(18182),ge=o(89207),Oe=o(48332),Ue=o(93407),Re=o(11284),ot=o(73326),Xe=o(50454).forEach,xt=ve("hidden"),Pt="Symbol",Ct="prototype",Le=ot.set,Ce=ot.getterFor(Pt),Se=Object[Ct],De=x.Symbol,$e=De&&De[Ct],tt=x.TypeError,_e=x.QObject,St=Q.f,It=W.f,Wt=V.f,$t=K.f,We=C([].push),Ot=fe("symbols"),st=fe("op-symbols"),qr=fe("wks"),Qe=!_e||!_e[Ct]||!_e[Ct].findChild,un=F&&Z(function(){return L(It({},"a",{get:function(){return It(this,"a",{value:7}).a}})).a!=7})?function(dt,gt,kt){var lt=St(Se,gt);lt&&delete Se[gt],It(dt,gt,kt),lt&&dt!==Se&&It(Se,gt,lt)}:It,Ir=function(dt,gt){var kt=Ot[dt]=L($e);return Le(kt,{type:Pt,tag:dt,description:gt}),F||(kt.description=gt),kt},Or=function(gt,kt,lt){gt===Se&&Or(st,kt,lt),ne(gt);var Ve=Y(kt);return ne(lt),ee(Ot,Ve)?(lt.enumerable?(ee(gt,xt)&&gt[xt][Ve]&&(gt[xt][Ve]=!1),lt=L(lt,{enumerable:J(0,!1)})):(ee(gt,xt)||It(gt,xt,J(1,{})),gt[xt][Ve]=!0),un(gt,Ve,lt)):It(gt,Ve,lt)},hr=function(gt,kt){ne(gt);var lt=oe(kt),Ve=E(lt).concat(Rt(lt));return Xe(Ve,function(ce){(!F||w(mt,lt,ce))&&Or(gt,ce,lt[ce])}),gt},et=function(gt,kt){return kt===void 0?L(gt):hr(L(gt),kt)},mt=function(gt){var kt=Y(gt),lt=w($t,this,kt);return this===Se&&ee(Ot,kt)&&!ee(st,kt)?!1:lt||!ee(this,kt)||!ee(Ot,kt)||ee(this,xt)&&this[xt][kt]?lt:!0},Mt=function(gt,kt){var lt=oe(gt),Ve=Y(kt);if(!(lt===Se&&ee(Ot,Ve)&&!ee(st,Ve))){var ce=St(lt,Ve);return ce&&ee(Ot,Ve)&&!(ee(lt,xt)&&lt[xt][Ve])&&(ce.enumerable=!0),ce}},Tt=function(gt){var kt=Wt(oe(gt)),lt=[];return Xe(kt,function(Ve){!ee(Ot,Ve)&&!ee(_,Ve)&&We(lt,Ve)}),lt},Rt=function(dt){var gt=dt===Se,kt=Wt(gt?st:oe(dt)),lt=[];return Xe(kt,function(Ve){ee(Ot,Ve)&&(!gt||ee(Se,Ve))&&We(lt,Ot[Ve])}),lt};U||(De=function(){if(ue($e,this))throw tt("Symbol is not a constructor");var gt=!arguments.length||arguments[0]===void 0?void 0:A(arguments[0]),kt=X(gt),lt=function(Ve){this===Se&&w(lt,st,Ve),ee(this,xt)&&ee(this[xt],kt)&&(this[xt][kt]=!1),un(this,kt,J(1,Ve))};return F&&Qe&&un(Se,kt,{configurable:!0,set:lt}),Ir(kt,gt)},$e=De[Ct],H($e,"toString",function(){return Ce(this).tag}),H(De,"withoutSetter",function(dt){return Ir(X(dt),dt)}),K.f=mt,W.f=Or,te.f=hr,Q.f=Mt,k.f=V.f=Tt,G.f=Rt,ge.f=function(dt){return Ir(z(dt),dt)},F&&(It($e,"description",{configurable:!0,get:function(){return Ce(this).description}}),T||H(Se,"propertyIsEnumerable",mt,{unsafe:!0}))),d({global:!0,constructor:!0,wrap:!0,forced:!U,sham:!U},{Symbol:De}),Xe(E(qr),function(dt){Oe(dt)}),d({target:Pt,stat:!0,forced:!U},{useSetter:function(){Qe=!0},useSimple:function(){Qe=!1}}),d({target:"Object",stat:!0,forced:!U,sham:!F},{create:et,defineProperty:Or,defineProperties:hr,getOwnPropertyDescriptor:Mt}),d({target:"Object",stat:!0,forced:!U},{getOwnPropertyNames:Tt}),Ue(),Re(De,Pt),_[xt]=!0},50492:()=>{},19148:(h,O,o)=>{var d=o(93085),x=o(10150),w=o(64500),C=o(44845),T=o(98717),F=o(20031),U=T("string-to-symbol-registry"),Z=T("symbol-to-string-registry");d({target:"Symbol",stat:!0,forced:!F},{for:function(ee){var ue=C(ee);if(w(U,ue))return U[ue];var ne=x("Symbol")(ue);return U[ue]=ne,Z[ne]=ue,ne}})},66681:(h,O,o)=>{var d=o(48332);d("hasInstance")},29594:(h,O,o)=>{var d=o(48332);d("isConcatSpreadable")},63665:(h,O,o)=>{var d=o(48332);d("iterator")},36187:(h,O,o)=>{o(49351),o(19148),o(15991),o(59704),o(17895)},15991:(h,O,o)=>{var d=o(93085),x=o(64500),w=o(23236),C=o(79288),T=o(98717),F=o(20031),U=T("symbol-to-string-registry");d({target:"Symbol",stat:!0,forced:!F},{keyFor:function(ee){if(!w(ee))throw TypeError(C(ee)+" is not a symbol");if(x(U,ee))return U[ee]}})},11250:(h,O,o)=>{var d=o(48332);d("matchAll")},29017:(h,O,o)=>{var d=o(48332);d("match")},79786:(h,O,o)=>{var d=o(48332);d("replace")},90503:(h,O,o)=>{var d=o(48332);d("search")},16565:(h,O,o)=>{var d=o(48332);d("species")},69322:(h,O,o)=>{var d=o(48332);d("split")},13610:(h,O,o)=>{var d=o(48332),x=o(93407);d("toPrimitive"),x()},36886:(h,O,o)=>{var d=o(10150),x=o(48332),w=o(11284);x("toStringTag"),w(d("Symbol"),"Symbol")},33514:(h,O,o)=>{var d=o(48332);d("unscopables")},10572:(h,O,o)=>{"use strict";var d=o(47636),x=o(98576),w=o(84120),C=o(35090),T=o(32861),F=o(34535),U=o(51057),Z=o(35744),ee=o(73326).enforce,ue=o(76192),ne=o(55278),oe=Object,Y=Array.isArray,A=oe.isExtensible,J=oe.isFrozen,L=oe.isSealed,E=oe.freeze,k=oe.seal,V={},G={},Q=!x.ActiveXObject&&"ActiveXObject"in x,W,te=function(ge){return function(){return ge(this,arguments.length?arguments[0]:void 0)}},K=F("WeakMap",te,U),H=K.prototype,fe=w(H.set),ve=function(){return d&&ue(function(){var ge=E([]);return fe(new K,ge,1),!J(ge)})};if(ne)if(Q){W=U.getConstructor(te,"WeakMap",!0),T.enable();var _=w(H.delete),X=w(H.has),z=w(H.get);C(H,{delete:function(ge){if(Z(ge)&&!A(ge)){var Oe=ee(this);return Oe.frozen||(Oe.frozen=new W),_(this,ge)||Oe.frozen.delete(ge)}return _(this,ge)},has:function(Oe){if(Z(Oe)&&!A(Oe)){var Ue=ee(this);return Ue.frozen||(Ue.frozen=new W),X(this,Oe)||Ue.frozen.has(Oe)}return X(this,Oe)},get:function(Oe){if(Z(Oe)&&!A(Oe)){var Ue=ee(this);return Ue.frozen||(Ue.frozen=new W),X(this,Oe)?z(this,Oe):Ue.frozen.get(Oe)}return z(this,Oe)},set:function(Oe,Ue){if(Z(Oe)&&!A(Oe)){var Re=ee(this);Re.frozen||(Re.frozen=new W),X(this,Oe)?fe(this,Oe,Ue):Re.frozen.set(Oe,Ue)}else fe(this,Oe,Ue);return this}})}else ve()&&C(H,{set:function(Oe,Ue){var Re;return Y(Oe)&&(J(Oe)?Re=V:L(Oe)&&(Re=G)),fe(this,Oe,Ue),Re==V&&E(Oe),Re==G&&k(Oe),this}})},33983:(h,O,o)=>{o(10572)},12752:(h,O,o)=>{o(4242)},5363:(h,O,o)=>{o(25067)},14562:(h,O,o)=>{o(97884)},69355:(h,O,o)=>{o(78885)},25363:(h,O,o)=>{"use strict";var d=o(93085),x=o(99438),w=o(70892);d({target:"Promise",stat:!0,forced:!0},{try:function(C){var T=x.f(this),F=w(C);return(F.error?T.reject:T.resolve)(F.value),T.promise}})},60177:(h,O,o)=>{var d=o(48332);d("asyncDispose")},9031:(h,O,o)=>{var d=o(48332);d("dispose")},96658:(h,O,o)=>{var d=o(48332);d("matcher")},54212:(h,O,o)=>{var d=o(48332);d("metadataKey")},71875:(h,O,o)=>{var d=o(48332);d("metadata")},18658:(h,O,o)=>{var d=o(48332);d("observable")},54592:(h,O,o)=>{var d=o(48332);d("patternMatch")},26680:(h,O,o)=>{var d=o(48332);d("replaceAll")},80162:(h,O,o)=>{o(98939);var d=o(17365),x=o(98576),w=o(4696),C=o(98711),T=o(47771),F=o(18182),U=F("toStringTag");for(var Z in d){var ee=x[Z],ue=ee&&ee.prototype;ue&&w(ue)!==U&&C(ue,U,Z),T[Z]=T.Array}},67054:(h,O,o)=>{"use strict";o(98939);var d=o(93085),x=o(98576),w=o(18922),C=o(84120),T=o(50069),F=o(58552),U=o(59362),Z=o(35090),ee=o(11284),ue=o(25695),ne=o(73326),oe=o(46961),Y=o(16447),A=o(64500),J=o(8043),L=o(4696),E=o(31138),k=o(35744),V=o(44845),G=o(52853),Q=o(90774),W=o(61669),te=o(78703),K=o(67822),H=o(18182),fe=o(6614),ve=H("iterator"),_="URLSearchParams",X=_+"Iterator",z=ne.set,ge=ne.getterFor(_),Oe=ne.getterFor(X),Ue=Object.getOwnPropertyDescriptor,Re=function(Ve){if(!T)return x[Ve];var ce=Ue(x,Ve);return ce&&ce.value},ot=Re("fetch"),Xe=Re("Request"),xt=Re("Headers"),Pt=Xe&&Xe.prototype,Ct=xt&&xt.prototype,Le=x.RegExp,Ce=x.TypeError,Se=x.decodeURIComponent,De=x.encodeURIComponent,$e=C("".charAt),tt=C([].join),_e=C([].push),St=C("".replace),It=C([].shift),Wt=C([].splice),$t=C("".split),We=C("".slice),Ot=/\+/g,st=Array(4),qr=function(Ve){return st[Ve-1]||(st[Ve-1]=Le("((?:%[\\da-f]{2}){"+Ve+"})","gi"))},Qe=function(Ve){try{return Se(Ve)}catch(ce){return Ve}},un=function(Ve){var ce=St(Ve,Ot," "),xe=4;try{return Se(ce)}catch(Be){for(;xe;)ce=St(ce,qr(xe--),Qe);return ce}},Ir=/[!'()~]|%20/g,Or={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},hr=function(Ve){return Or[Ve]},et=function(Ve){return St(De(Ve),Ir,hr)},mt=ue(function(ce,xe){z(this,{type:X,iterator:W(ge(ce).entries),kind:xe})},"Iterator",function(){var ce=Oe(this),xe=ce.kind,Be=ce.iterator.next(),Ke=Be.value;return Be.done||(Be.value=xe==="keys"?Ke.key:xe==="values"?Ke.value:[Ke.key,Ke.value]),Be},!0),Mt=function(Ve){this.entries=[],this.url=null,Ve!==void 0&&(k(Ve)?this.parseObject(Ve):this.parseQuery(typeof Ve=="string"?$e(Ve,0)==="?"?We(Ve,1):Ve:V(Ve)))};Mt.prototype={type:_,bindURL:function(Ve){this.url=Ve,this.update()},parseObject:function(Ve){var ce=te(Ve),xe,Be,Ke,ut,nt,_t,lr;if(ce)for(xe=W(Ve,ce),Be=xe.next;!(Ke=w(Be,xe)).done;){if(ut=W(E(Ke.value)),nt=ut.next,(_t=w(nt,ut)).done||(lr=w(nt,ut)).done||!w(nt,ut).done)throw Ce("Expected sequence with length 2");_e(this.entries,{key:V(_t.value),value:V(lr.value)})}else for(var At in Ve)A(Ve,At)&&_e(this.entries,{key:At,value:V(Ve[At])})},parseQuery:function(Ve){if(Ve)for(var ce=$t(Ve,"&"),xe=0,Be,Ke;xe<ce.length;)Be=ce[xe++],Be.length&&(Ke=$t(Be,"="),_e(this.entries,{key:un(It(Ke)),value:un(tt(Ke,"="))}))},serialize:function(){for(var Ve=this.entries,ce=[],xe=0,Be;xe<Ve.length;)Be=Ve[xe++],_e(ce,et(Be.key)+"="+et(Be.value));return tt(ce,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Tt=function(){oe(this,Rt);var ce=arguments.length>0?arguments[0]:void 0;z(this,new Mt(ce))},Rt=Tt.prototype;if(Z(Rt,{append:function(ce,xe){K(arguments.length,2);var Be=ge(this);_e(Be.entries,{key:V(ce),value:V(xe)}),Be.updateURL()},delete:function(Ve){K(arguments.length,1);for(var ce=ge(this),xe=ce.entries,Be=V(Ve),Ke=0;Ke<xe.length;)xe[Ke].key===Be?Wt(xe,Ke,1):Ke++;ce.updateURL()},get:function(ce){K(arguments.length,1);for(var xe=ge(this).entries,Be=V(ce),Ke=0;Ke<xe.length;Ke++)if(xe[Ke].key===Be)return xe[Ke].value;return null},getAll:function(ce){K(arguments.length,1);for(var xe=ge(this).entries,Be=V(ce),Ke=[],ut=0;ut<xe.length;ut++)xe[ut].key===Be&&_e(Ke,xe[ut].value);return Ke},has:function(ce){K(arguments.length,1);for(var xe=ge(this).entries,Be=V(ce),Ke=0;Ke<xe.length;)if(xe[Ke++].key===Be)return!0;return!1},set:function(ce,xe){K(arguments.length,1);for(var Be=ge(this),Ke=Be.entries,ut=!1,nt=V(ce),_t=V(xe),lr=0,At;lr<Ke.length;lr++)At=Ke[lr],At.key===nt&&(ut?Wt(Ke,lr--,1):(ut=!0,At.value=_t));ut||_e(Ke,{key:nt,value:_t}),Be.updateURL()},sort:function(){var ce=ge(this);fe(ce.entries,function(xe,Be){return xe.key>Be.key?1:-1}),ce.updateURL()},forEach:function(ce){for(var xe=ge(this).entries,Be=J(ce,arguments.length>1?arguments[1]:void 0),Ke=0,ut;Ke<xe.length;)ut=xe[Ke++],Be(ut.value,ut.key,this)},keys:function(){return new mt(this,"keys")},values:function(){return new mt(this,"values")},entries:function(){return new mt(this,"entries")}},{enumerable:!0}),U(Rt,ve,Rt.entries,{name:"entries"}),U(Rt,"toString",function(){return ge(this).serialize()},{enumerable:!0}),ee(Tt,_),d({global:!0,constructor:!0,forced:!F},{URLSearchParams:Tt}),!F&&Y(xt)){var dt=C(Ct.has),gt=C(Ct.set),kt=function(Ve){if(k(Ve)){var ce=Ve.body,xe;if(L(ce)===_)return xe=Ve.headers?new xt(Ve.headers):new xt,dt(xe,"content-type")||gt(xe,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),G(Ve,{body:Q(0,V(ce)),headers:Q(0,xe)})}return Ve};if(Y(ot)&&d({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(ce){return ot(ce,arguments.length>1?kt(arguments[1]):{})}}),Y(Xe)){var lt=function(ce){return oe(this,Pt),new Xe(ce,arguments.length>1?kt(arguments[1]):{})};Pt.constructor=lt,lt.prototype=Pt,d({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:lt})}}h.exports={URLSearchParams:Tt,getState:ge}},69336:(h,O,o)=>{o(67054)},53822:(h,O,o)=>{var d=o(52221);h.exports=d},21434:(h,O,o)=>{var d=o(75078);h.exports=d},51629:(h,O,o)=>{var d=o(77237);h.exports=d},46899:(h,O,o)=>{var d=o(60098);h.exports=d},27710:(h,O,o)=>{var d=o(65739);o(80162),h.exports=d},31585:(h,O,o)=>{var d=o(74030);h.exports=d},44877:(h,O,o)=>{var d=o(41484);h.exports=d},10140:(h,O,o)=>{o(80162);var d=o(4696),x=o(64500),w=o(8902),C=o(51629),T=Array.prototype,F={DOMTokenList:!0,NodeList:!0};h.exports=function(U){var Z=U.entries;return U===T||w(T,U)&&Z===T.entries||x(F,d(U))?C:Z}},55603:(h,O,o)=>{var d=o(53669);h.exports=d},76237:(h,O,o)=>{var d=o(37506);h.exports=d},31206:(h,O,o)=>{o(80162);var d=o(4696),x=o(64500),w=o(8902),C=o(46899),T=Array.prototype,F={DOMTokenList:!0,NodeList:!0};h.exports=function(U){var Z=U.forEach;return U===T||w(T,U)&&Z===T.forEach||x(F,d(U))?C:Z}},56515:(h,O,o)=>{var d=o(13173);h.exports=d},26174:(h,O,o)=>{var d=o(92604);h.exports=d},20057:(h,O,o)=>{var d=o(263);h.exports=d},87511:(h,O,o)=>{var d=o(80432);h.exports=d},24741:(h,O,o)=>{var d=o(77663);h.exports=d},8368:(h,O,o)=>{var d=o(45063);h.exports=d},342:(h,O,o)=>{var d=o(7769);h.exports=d},392:(h,O,o)=>{var d=o(96056);h.exports=d},28478:(h,O,o)=>{var d=o(99936);h.exports=d},4963:(h,O,o)=>{var d=o(23213);h.exports=d},21025:(h,O,o)=>{var d=o(38724);h.exports=d},27820:(h,O,o)=>{var d=o(63512);h.exports=d},58202:(h,O,o)=>{var d=o(2335);h.exports=d},74194:(h,O,o)=>{var d=o(60632);h.exports=d},32854:(h,O,o)=>{var d=o(81056);h.exports=d},60002:(h,O,o)=>{var d=o(12921);h.exports=d},28980:(h,O,o)=>{var d=o(8168);h.exports=d},45636:(h,O,o)=>{var d=o(38651);h.exports=d},66672:(h,O,o)=>{var d=o(33083);h.exports=d},46618:(h,O,o)=>{var d=o(93154);o(80162),h.exports=d},42285:(h,O,o)=>{var d=o(85008);o(80162),h.exports=d},58535:(h,O,o)=>{var d=o(994);o(80162),h.exports=d},16042:(h,O,o)=>{var d=o(30290);h.exports=d},72946:(h,O,o)=>{var d=o(32004);o(80162),h.exports=d},11235:(h,O,o)=>{var d=o(31293);o(80162),h.exports=d},32004:(h,O,o)=>{o(69336);var d=o(57545);h.exports=d.URLSearchParams},43616:function(){(function(h){var O=function(o){var d={searchParams:"URLSearchParams"in h,iterable:"Symbol"in h&&"iterator"in Symbol,blob:"FileReader"in h&&"Blob"in h&&function(){try{return new Blob,!0}catch(K){return!1}}(),formData:"FormData"in h,arrayBuffer:"ArrayBuffer"in h};function x(K){return K&&DataView.prototype.isPrototypeOf(K)}if(d.arrayBuffer)var w=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],C=ArrayBuffer.isView||function(K){return K&&w.indexOf(Object.prototype.toString.call(K))>-1};function T(K){if(typeof K!="string"&&(K=String(K)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(K))throw new TypeError("Invalid character in header field name");return K.toLowerCase()}function F(K){return typeof K!="string"&&(K=String(K)),K}function U(K){var H={next:function(){var fe=K.shift();return{done:fe===void 0,value:fe}}};return d.iterable&&(H[Symbol.iterator]=function(){return H}),H}function Z(K){this.map={},K instanceof Z?K.forEach(function(H,fe){this.append(fe,H)},this):Array.isArray(K)?K.forEach(function(H){this.append(H[0],H[1])},this):K&&Object.getOwnPropertyNames(K).forEach(function(H){this.append(H,K[H])},this)}Z.prototype.append=function(K,H){K=T(K),H=F(H);var fe=this.map[K];this.map[K]=fe?fe+", "+H:H},Z.prototype.delete=function(K){delete this.map[T(K)]},Z.prototype.get=function(K){return K=T(K),this.has(K)?this.map[K]:null},Z.prototype.has=function(K){return this.map.hasOwnProperty(T(K))},Z.prototype.set=function(K,H){this.map[T(K)]=F(H)},Z.prototype.forEach=function(K,H){for(var fe in this.map)this.map.hasOwnProperty(fe)&&K.call(H,this.map[fe],fe,this)},Z.prototype.keys=function(){var K=[];return this.forEach(function(H,fe){K.push(fe)}),U(K)},Z.prototype.values=function(){var K=[];return this.forEach(function(H){K.push(H)}),U(K)},Z.prototype.entries=function(){var K=[];return this.forEach(function(H,fe){K.push([fe,H])}),U(K)},d.iterable&&(Z.prototype[Symbol.iterator]=Z.prototype.entries);function ee(K){if(K.bodyUsed)return Promise.reject(new TypeError("Already read"));K.bodyUsed=!0}function ue(K){return new Promise(function(H,fe){K.onload=function(){H(K.result)},K.onerror=function(){fe(K.error)}})}function ne(K){var H=new FileReader,fe=ue(H);return H.readAsArrayBuffer(K),fe}function oe(K){var H=new FileReader,fe=ue(H);return H.readAsText(K),fe}function Y(K){for(var H=new Uint8Array(K),fe=new Array(H.length),ve=0;ve<H.length;ve++)fe[ve]=String.fromCharCode(H[ve]);return fe.join("")}function A(K){if(K.slice)return K.slice(0);var H=new Uint8Array(K.byteLength);return H.set(new Uint8Array(K)),H.buffer}function J(){return this.bodyUsed=!1,this._initBody=function(K){this._bodyInit=K,K?typeof K=="string"?this._bodyText=K:d.blob&&Blob.prototype.isPrototypeOf(K)?this._bodyBlob=K:d.formData&&FormData.prototype.isPrototypeOf(K)?this._bodyFormData=K:d.searchParams&&URLSearchParams.prototype.isPrototypeOf(K)?this._bodyText=K.toString():d.arrayBuffer&&d.blob&&x(K)?(this._bodyArrayBuffer=A(K.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):d.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(K)||C(K))?this._bodyArrayBuffer=A(K):this._bodyText=K=Object.prototype.toString.call(K):this._bodyText="",this.headers.get("content-type")||(typeof K=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):d.searchParams&&URLSearchParams.prototype.isPrototypeOf(K)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},d.blob&&(this.blob=function(){var K=ee(this);if(K)return K;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?ee(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(ne)}),this.text=function(){var K=ee(this);if(K)return K;if(this._bodyBlob)return oe(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(Y(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},d.formData&&(this.formData=function(){return this.text().then(V)}),this.json=function(){return this.text().then(JSON.parse)},this}var L=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function E(K){var H=K.toUpperCase();return L.indexOf(H)>-1?H:K}function k(K,H){H=H||{};var fe=H.body;if(K instanceof k){if(K.bodyUsed)throw new TypeError("Already read");this.url=K.url,this.credentials=K.credentials,H.headers||(this.headers=new Z(K.headers)),this.method=K.method,this.mode=K.mode,this.signal=K.signal,!fe&&K._bodyInit!=null&&(fe=K._bodyInit,K.bodyUsed=!0)}else this.url=String(K);if(this.credentials=H.credentials||this.credentials||"same-origin",(H.headers||!this.headers)&&(this.headers=new Z(H.headers)),this.method=E(H.method||this.method||"GET"),this.mode=H.mode||this.mode||null,this.signal=H.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&fe)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(fe)}k.prototype.clone=function(){return new k(this,{body:this._bodyInit})};function V(K){var H=new FormData;return K.trim().split("&").forEach(function(fe){if(fe){var ve=fe.split("="),_=ve.shift().replace(/\+/g," "),X=ve.join("=").replace(/\+/g," ");H.append(decodeURIComponent(_),decodeURIComponent(X))}}),H}function G(K){var H=new Z,fe=K.replace(/\r?\n[\t ]+/g," ");return fe.split(/\r?\n/).forEach(function(ve){var _=ve.split(":"),X=_.shift().trim();if(X){var z=_.join(":").trim();H.append(X,z)}}),H}J.call(k.prototype);function Q(K,H){H||(H={}),this.type="default",this.status=H.status===void 0?200:H.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in H?H.statusText:"OK",this.headers=new Z(H.headers),this.url=H.url||"",this._initBody(K)}J.call(Q.prototype),Q.prototype.clone=function(){return new Q(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Z(this.headers),url:this.url})},Q.error=function(){var K=new Q(null,{status:0,statusText:""});return K.type="error",K};var W=[301,302,303,307,308];Q.redirect=function(K,H){if(W.indexOf(H)===-1)throw new RangeError("Invalid status code");return new Q(null,{status:H,headers:{location:K}})},o.DOMException=h.DOMException;try{new o.DOMException}catch(K){o.DOMException=function(H,fe){this.message=H,this.name=fe;var ve=Error(H);this.stack=ve.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function te(K,H){return new Promise(function(fe,ve){var _=new k(K,H);if(_.signal&&_.signal.aborted)return ve(new o.DOMException("Aborted","AbortError"));var X=new XMLHttpRequest;function z(){X.abort()}X.onload=function(){var ge={status:X.status,statusText:X.statusText,headers:G(X.getAllResponseHeaders()||"")};ge.url="responseURL"in X?X.responseURL:ge.headers.get("X-Request-URL");var Oe="response"in X?X.response:X.responseText;fe(new Q(Oe,ge))},X.onerror=function(){ve(new TypeError("Network request failed"))},X.ontimeout=function(){ve(new TypeError("Network request failed"))},X.onabort=function(){ve(new o.DOMException("Aborted","AbortError"))},X.open(_.method,_.url,!0),_.credentials==="include"?X.withCredentials=!0:_.credentials==="omit"&&(X.withCredentials=!1),"responseType"in X&&d.blob&&(X.responseType="blob"),_.headers.forEach(function(ge,Oe){X.setRequestHeader(Oe,ge)}),_.signal&&(_.signal.addEventListener("abort",z),X.onreadystatechange=function(){X.readyState===4&&_.signal.removeEventListener("abort",z)}),X.send(typeof _._bodyInit=="undefined"?null:_._bodyInit)})}return te.polyfill=!0,h.fetch||(h.fetch=te,h.Headers=Z,h.Request=k,h.Response=Q),o.Headers=Z,o.Request=k,o.Response=Q,o.fetch=te,Object.defineProperty(o,"__esModule",{value:!0}),o}({})})(typeof self!="undefined"?self:this)},96279:function(h,O){var o=typeof self!="undefined"?self:this,d=function(){function w(){this.fetch=!1,this.DOMException=o.DOMException}return w.prototype=o,new w}();(function(w){var C=function(T){var F={searchParams:"URLSearchParams"in w,iterable:"Symbol"in w&&"iterator"in Symbol,blob:"FileReader"in w&&"Blob"in w&&function(){try{return new Blob,!0}catch(X){return!1}}(),formData:"FormData"in w,arrayBuffer:"ArrayBuffer"in w};function U(X){return X&&DataView.prototype.isPrototypeOf(X)}if(F.arrayBuffer)var Z=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],ee=ArrayBuffer.isView||function(X){return X&&Z.indexOf(Object.prototype.toString.call(X))>-1};function ue(X){if(typeof X!="string"&&(X=String(X)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(X))throw new TypeError("Invalid character in header field name");return X.toLowerCase()}function ne(X){return typeof X!="string"&&(X=String(X)),X}function oe(X){var z={next:function(){var ge=X.shift();return{done:ge===void 0,value:ge}}};return F.iterable&&(z[Symbol.iterator]=function(){return z}),z}function Y(X){this.map={},X instanceof Y?X.forEach(function(z,ge){this.append(ge,z)},this):Array.isArray(X)?X.forEach(function(z){this.append(z[0],z[1])},this):X&&Object.getOwnPropertyNames(X).forEach(function(z){this.append(z,X[z])},this)}Y.prototype.append=function(X,z){X=ue(X),z=ne(z);var ge=this.map[X];this.map[X]=ge?ge+", "+z:z},Y.prototype.delete=function(X){delete this.map[ue(X)]},Y.prototype.get=function(X){return X=ue(X),this.has(X)?this.map[X]:null},Y.prototype.has=function(X){return this.map.hasOwnProperty(ue(X))},Y.prototype.set=function(X,z){this.map[ue(X)]=ne(z)},Y.prototype.forEach=function(X,z){for(var ge in this.map)this.map.hasOwnProperty(ge)&&X.call(z,this.map[ge],ge,this)},Y.prototype.keys=function(){var X=[];return this.forEach(function(z,ge){X.push(ge)}),oe(X)},Y.prototype.values=function(){var X=[];return this.forEach(function(z){X.push(z)}),oe(X)},Y.prototype.entries=function(){var X=[];return this.forEach(function(z,ge){X.push([ge,z])}),oe(X)},F.iterable&&(Y.prototype[Symbol.iterator]=Y.prototype.entries);function A(X){if(X.bodyUsed)return Promise.reject(new TypeError("Already read"));X.bodyUsed=!0}function J(X){return new Promise(function(z,ge){X.onload=function(){z(X.result)},X.onerror=function(){ge(X.error)}})}function L(X){var z=new FileReader,ge=J(z);return z.readAsArrayBuffer(X),ge}function E(X){var z=new FileReader,ge=J(z);return z.readAsText(X),ge}function k(X){for(var z=new Uint8Array(X),ge=new Array(z.length),Oe=0;Oe<z.length;Oe++)ge[Oe]=String.fromCharCode(z[Oe]);return ge.join("")}function V(X){if(X.slice)return X.slice(0);var z=new Uint8Array(X.byteLength);return z.set(new Uint8Array(X)),z.buffer}function G(){return this.bodyUsed=!1,this._initBody=function(X){this._bodyInit=X,X?typeof X=="string"?this._bodyText=X:F.blob&&Blob.prototype.isPrototypeOf(X)?this._bodyBlob=X:F.formData&&FormData.prototype.isPrototypeOf(X)?this._bodyFormData=X:F.searchParams&&URLSearchParams.prototype.isPrototypeOf(X)?this._bodyText=X.toString():F.arrayBuffer&&F.blob&&U(X)?(this._bodyArrayBuffer=V(X.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):F.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(X)||ee(X))?this._bodyArrayBuffer=V(X):this._bodyText=X=Object.prototype.toString.call(X):this._bodyText="",this.headers.get("content-type")||(typeof X=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):F.searchParams&&URLSearchParams.prototype.isPrototypeOf(X)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},F.blob&&(this.blob=function(){var X=A(this);if(X)return X;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?A(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(L)}),this.text=function(){var X=A(this);if(X)return X;if(this._bodyBlob)return E(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(k(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},F.formData&&(this.formData=function(){return this.text().then(K)}),this.json=function(){return this.text().then(JSON.parse)},this}var Q=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function W(X){var z=X.toUpperCase();return Q.indexOf(z)>-1?z:X}function te(X,z){z=z||{};var ge=z.body;if(X instanceof te){if(X.bodyUsed)throw new TypeError("Already read");this.url=X.url,this.credentials=X.credentials,z.headers||(this.headers=new Y(X.headers)),this.method=X.method,this.mode=X.mode,this.signal=X.signal,!ge&&X._bodyInit!=null&&(ge=X._bodyInit,X.bodyUsed=!0)}else this.url=String(X);if(this.credentials=z.credentials||this.credentials||"same-origin",(z.headers||!this.headers)&&(this.headers=new Y(z.headers)),this.method=W(z.method||this.method||"GET"),this.mode=z.mode||this.mode||null,this.signal=z.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&ge)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(ge)}te.prototype.clone=function(){return new te(this,{body:this._bodyInit})};function K(X){var z=new FormData;return X.trim().split("&").forEach(function(ge){if(ge){var Oe=ge.split("="),Ue=Oe.shift().replace(/\+/g," "),Re=Oe.join("=").replace(/\+/g," ");z.append(decodeURIComponent(Ue),decodeURIComponent(Re))}}),z}function H(X){var z=new Y,ge=X.replace(/\r?\n[\t ]+/g," ");return ge.split(/\r?\n/).forEach(function(Oe){var Ue=Oe.split(":"),Re=Ue.shift().trim();if(Re){var ot=Ue.join(":").trim();z.append(Re,ot)}}),z}G.call(te.prototype);function fe(X,z){z||(z={}),this.type="default",this.status=z.status===void 0?200:z.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in z?z.statusText:"OK",this.headers=new Y(z.headers),this.url=z.url||"",this._initBody(X)}G.call(fe.prototype),fe.prototype.clone=function(){return new fe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Y(this.headers),url:this.url})},fe.error=function(){var X=new fe(null,{status:0,statusText:""});return X.type="error",X};var ve=[301,302,303,307,308];fe.redirect=function(X,z){if(ve.indexOf(z)===-1)throw new RangeError("Invalid status code");return new fe(null,{status:z,headers:{location:X}})},T.DOMException=w.DOMException;try{new T.DOMException}catch(X){T.DOMException=function(z,ge){this.message=z,this.name=ge;var Oe=Error(z);this.stack=Oe.stack},T.DOMException.prototype=Object.create(Error.prototype),T.DOMException.prototype.constructor=T.DOMException}function _(X,z){return new Promise(function(ge,Oe){var Ue=new te(X,z);if(Ue.signal&&Ue.signal.aborted)return Oe(new T.DOMException("Aborted","AbortError"));var Re=new XMLHttpRequest;function ot(){Re.abort()}Re.onload=function(){var Xe={status:Re.status,statusText:Re.statusText,headers:H(Re.getAllResponseHeaders()||"")};Xe.url="responseURL"in Re?Re.responseURL:Xe.headers.get("X-Request-URL");var xt="response"in Re?Re.response:Re.responseText;ge(new fe(xt,Xe))},Re.onerror=function(){Oe(new TypeError("Network request failed"))},Re.ontimeout=function(){Oe(new TypeError("Network request failed"))},Re.onabort=function(){Oe(new T.DOMException("Aborted","AbortError"))},Re.open(Ue.method,Ue.url,!0),Ue.credentials==="include"?Re.withCredentials=!0:Ue.credentials==="omit"&&(Re.withCredentials=!1),"responseType"in Re&&F.blob&&(Re.responseType="blob"),Ue.headers.forEach(function(Xe,xt){Re.setRequestHeader(xt,Xe)}),Ue.signal&&(Ue.signal.addEventListener("abort",ot),Re.onreadystatechange=function(){Re.readyState===4&&Ue.signal.removeEventListener("abort",ot)}),Re.send(typeof Ue._bodyInit=="undefined"?null:Ue._bodyInit)})}return _.polyfill=!0,w.fetch||(w.fetch=_,w.Headers=Y,w.Request=te,w.Response=fe),T.Headers=Y,T.Request=te,T.Response=fe,T.fetch=_,Object.defineProperty(T,"__esModule",{value:!0}),T}({})})(d),d.fetch.ponyfill=!0,delete d.fetch.polyfill;var x=d;O=x.fetch,O.default=x.fetch,O.fetch=x.fetch,O.Headers=x.Headers,O.Request=x.Request,O.Response=x.Response,h.exports=O},45957:(h,O,o)=>{"use strict";o.r(O),o.d(O,{default:()=>F});var d=o(39601),x=o.n(d),w=o(82609),C=o.n(w),T=C()(x());T.push([h.id,`.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px rgba(0,0,0,.2);-moz-box-shadow:2px 3px 5px rgba(0,0,0,.2);box-shadow:2px 3px 5px #0003;border-radius:3px;border:1px solid silver;background:white;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto;box-sizing:border-box}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:#fff}
41
+ */O.parse=x,O.serialize=w;var o=Object.prototype.toString,d=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function x(Z,ee){if(typeof Z!="string")throw new TypeError("argument str must be a string");for(var ue={},ne=ee||{},oe=ne.decode||C,Y=0;Y<Z.length;){var A=Z.indexOf("=",Y);if(A===-1)break;var J=Z.indexOf(";",Y);if(J===-1)J=Z.length;else if(J<A){Y=Z.lastIndexOf(";",A-1)+1;continue}var L=Z.slice(Y,A).trim();if(ue[L]===void 0){var E=Z.slice(A+1,J).trim();E.charCodeAt(0)===34&&(E=E.slice(1,-1)),ue[L]=U(E,oe)}Y=J+1}return ue}function w(Z,ee,ue){var ne=ue||{},oe=ne.encode||T;if(typeof oe!="function")throw new TypeError("option encode is invalid");if(!d.test(Z))throw new TypeError("argument name is invalid");var Y=oe(ee);if(Y&&!d.test(Y))throw new TypeError("argument val is invalid");var A=Z+"="+Y;if(ne.maxAge!=null){var J=ne.maxAge-0;if(isNaN(J)||!isFinite(J))throw new TypeError("option maxAge is invalid");A+="; Max-Age="+Math.floor(J)}if(ne.domain){if(!d.test(ne.domain))throw new TypeError("option domain is invalid");A+="; Domain="+ne.domain}if(ne.path){if(!d.test(ne.path))throw new TypeError("option path is invalid");A+="; Path="+ne.path}if(ne.expires){var L=ne.expires;if(!F(L)||isNaN(L.valueOf()))throw new TypeError("option expires is invalid");A+="; Expires="+L.toUTCString()}if(ne.httpOnly&&(A+="; HttpOnly"),ne.secure&&(A+="; Secure"),ne.priority){var E=typeof ne.priority=="string"?ne.priority.toLowerCase():ne.priority;switch(E){case"low":A+="; Priority=Low";break;case"medium":A+="; Priority=Medium";break;case"high":A+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(ne.sameSite){var k=typeof ne.sameSite=="string"?ne.sameSite.toLowerCase():ne.sameSite;switch(k){case!0:A+="; SameSite=Strict";break;case"lax":A+="; SameSite=Lax";break;case"strict":A+="; SameSite=Strict";break;case"none":A+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return A}function C(Z){return Z.indexOf("%")!==-1?decodeURIComponent(Z):Z}function T(Z){return encodeURIComponent(Z)}function F(Z){return o.call(Z)==="[object Date]"||Z instanceof Date}function U(Z,ee){try{return ee(Z)}catch(ue){return Z}}},27129:(h,O,o)=>{var d=o(53822);h.exports=d},86250:(h,O,o)=>{var d=o(21434);h.exports=d},61347:(h,O,o)=>{var d=o(27710);h.exports=d},42142:(h,O,o)=>{var d=o(31585);h.exports=d},21106:(h,O,o)=>{var d=o(55603);h.exports=d},97497:(h,O,o)=>{var d=o(31206);h.exports=d},28385:(h,O,o)=>{var d=o(26174);h.exports=d},85874:(h,O,o)=>{var d=o(87511);h.exports=d},86843:(h,O,o)=>{var d=o(24741);h.exports=d},37528:(h,O,o)=>{var d=o(4963);h.exports=d},81471:(h,O,o)=>{var d=o(21025);h.exports=d},5271:(h,O,o)=>{var d=o(27820);h.exports=d},87275:(h,O,o)=>{var d=o(74194);h.exports=d},13772:(h,O,o)=>{var d=o(32854);h.exports=d},97574:(h,O,o)=>{var d=o(60002);h.exports=d},69373:(h,O,o)=>{var d=o(28980);h.exports=d},70033:(h,O,o)=>{var d=o(45636);h.exports=d},77443:(h,O,o)=>{var d=o(66672);h.exports=d},88362:(h,O,o)=>{var d=o(46618);h.exports=d},89821:(h,O,o)=>{var d=o(42285);o(9031),h.exports=d},8008:(h,O,o)=>{var d=o(58535);h.exports=d},30164:(h,O,o)=>{var d=o(16042);h.exports=d},52221:(h,O,o)=>{o(5454),o(19173);var d=o(57545);h.exports=d.Array.from},75078:(h,O,o)=>{o(8118);var d=o(57545);h.exports=d.Array.isArray},66135:(h,O,o)=>{o(59106);var d=o(45607);h.exports=d("Array").concat},77237:(h,O,o)=>{o(98939),o(46663);var d=o(45607);h.exports=d("Array").entries},83971:(h,O,o)=>{o(73436);var d=o(45607);h.exports=d("Array").filter},42087:(h,O,o)=>{o(10880);var d=o(45607);h.exports=d("Array").find},60098:(h,O,o)=>{o(9823);var d=o(45607);h.exports=d("Array").forEach},54216:(h,O,o)=>{o(70024);var d=o(45607);h.exports=d("Array").includes},92089:(h,O,o)=>{o(62276);var d=o(45607);h.exports=d("Array").indexOf},6209:(h,O,o)=>{o(63838);var d=o(45607);h.exports=d("Array").map},49922:(h,O,o)=>{o(99523);var d=o(45607);h.exports=d("Array").reverse},52671:(h,O,o)=>{o(65818);var d=o(45607);h.exports=d("Array").slice},51375:(h,O,o)=>{o(12178);var d=o(45607);h.exports=d("Array").splice},65739:(h,O,o)=>{o(98939),o(5454);var d=o(78703);h.exports=d},74030:(h,O,o)=>{o(25067),h.exports=o(98576)},61563:(h,O,o)=>{var d=o(8902),x=o(66135),w=Array.prototype;h.exports=function(C){var T=C.concat;return C===w||d(w,C)&&T===w.concat?x:T}},53669:(h,O,o)=>{var d=o(8902),x=o(83971),w=Array.prototype;h.exports=function(C){var T=C.filter;return C===w||d(w,C)&&T===w.filter?x:T}},37506:(h,O,o)=>{var d=o(8902),x=o(42087),w=Array.prototype;h.exports=function(C){var T=C.find;return C===w||d(w,C)&&T===w.find?x:T}},13173:(h,O,o)=>{var d=o(8902),x=o(54216),w=o(62840),C=Array.prototype,T=String.prototype;h.exports=function(F){var U=F.includes;return F===C||d(C,F)&&U===C.includes?x:typeof F=="string"||F===T||d(T,F)&&U===T.includes?w:U}},92604:(h,O,o)=>{var d=o(8902),x=o(92089),w=Array.prototype;h.exports=function(C){var T=C.indexOf;return C===w||d(w,C)&&T===w.indexOf?x:T}},263:(h,O,o)=>{var d=o(8902),x=o(6209),w=Array.prototype;h.exports=function(C){var T=C.map;return C===w||d(w,C)&&T===w.map?x:T}},80432:(h,O,o)=>{var d=o(8902),x=o(49922),w=Array.prototype;h.exports=function(C){var T=C.reverse;return C===w||d(w,C)&&T===w.reverse?x:T}},77663:(h,O,o)=>{var d=o(8902),x=o(52671),w=Array.prototype;h.exports=function(C){var T=C.slice;return C===w||d(w,C)&&T===w.slice?x:T}},45063:(h,O,o)=>{var d=o(8902),x=o(51375),w=Array.prototype;h.exports=function(C){var T=C.splice;return C===w||d(w,C)&&T===w.splice?x:T}},7769:(h,O,o)=>{var d=o(8902),x=o(14820),w=String.prototype;h.exports=function(C){var T=C.startsWith;return typeof C=="string"||C===w||d(w,C)&&T===w.startsWith?x:T}},96056:(h,O,o)=>{o(59704);var d=o(57545),x=o(86298);d.JSON||(d.JSON={stringify:JSON.stringify}),h.exports=function(C,T,F){return x(d.JSON.stringify,null,arguments)}},99936:(h,O,o)=>{o(93582);var d=o(57545);h.exports=d.Object.assign},23213:(h,O,o)=>{o(73113);var d=o(57545),x=d.Object;h.exports=function(C,T){return x.create(C,T)}},38724:(h,O,o)=>{o(57585);var d=o(57545),x=d.Object,w=h.exports=function(T,F){return x.defineProperties(T,F)};x.defineProperties.sham&&(w.sham=!0)},63512:(h,O,o)=>{o(20297);var d=o(57545),x=d.Object,w=h.exports=function(T,F,U){return x.defineProperty(T,F,U)};x.defineProperty.sham&&(w.sham=!0)},2335:(h,O,o)=>{o(27442);var d=o(57545);h.exports=d.Object.entries},60632:(h,O,o)=>{o(89189);var d=o(57545),x=d.Object,w=h.exports=function(T,F){return x.getOwnPropertyDescriptor(T,F)};x.getOwnPropertyDescriptor.sham&&(w.sham=!0)},81056:(h,O,o)=>{o(62509);var d=o(57545);h.exports=d.Object.getOwnPropertyDescriptors},12921:(h,O,o)=>{o(36187);var d=o(57545);h.exports=d.Object.getOwnPropertySymbols},8168:(h,O,o)=>{o(19234);var d=o(57545);h.exports=d.Object.getPrototypeOf},38651:(h,O,o)=>{o(92647);var d=o(57545);h.exports=d.Object.keys},33083:(h,O,o)=>{o(13222);var d=o(57545);h.exports=d.Object.setPrototypeOf},93154:(h,O,o)=>{o(4242),o(98939),o(46663),o(59021),o(97884),o(78885),o(91868),o(5454);var d=o(57545);h.exports=d.Promise},62840:(h,O,o)=>{o(39247);var d=o(45607);h.exports=d("String").includes},14820:(h,O,o)=>{o(32991);var d=o(45607);h.exports=d("String").startsWith},85008:(h,O,o)=>{o(59106),o(46663),o(36187),o(19781),o(50492),o(66681),o(29594),o(63665),o(29017),o(11250),o(79786),o(90503),o(16565),o(69322),o(13610),o(36886),o(33514),o(68671),o(58556),o(71367);var d=o(57545);h.exports=d.Symbol},994:(h,O,o)=>{o(98939),o(46663),o(5454),o(63665);var d=o(89207);h.exports=d.f("iterator")},30290:(h,O,o)=>{o(12432),o(13610);var d=o(89207);h.exports=d.f("toPrimitive")},31293:(h,O,o)=>{o(98939),o(46663),o(33983);var d=o(57545);h.exports=d.WeakMap},62813:(h,O,o)=>{h.exports=o(52708)},68664:(h,O,o)=>{h.exports=o(58541)},21457:(h,O,o)=>{h.exports=o(37020)},36516:(h,O,o)=>{h.exports=o(79987)},87611:(h,O,o)=>{h.exports=o(86812)},4161:(h,O,o)=>{h.exports=o(51024)},75159:(h,O,o)=>{h.exports=o(32747)},87708:(h,O,o)=>{h.exports=o(85918)},42937:(h,O,o)=>{h.exports=o(21626)},69297:(h,O,o)=>{h.exports=o(77021)},10353:(h,O,o)=>{h.exports=o(18281)},8026:(h,O,o)=>{h.exports=o(90229)},67362:(h,O,o)=>{h.exports=o(53949)},57532:(h,O,o)=>{h.exports=o(11795)},61903:(h,O,o)=>{h.exports=o(75090)},42044:(h,O,o)=>{h.exports=o(27994)},60902:(h,O,o)=>{h.exports=o(45483)},2214:(h,O,o)=>{h.exports=o(35796)},983:(h,O,o)=>{h.exports=o(79918)},59256:(h,O,o)=>{h.exports=o(82185)},95659:(h,O,o)=>{h.exports=o(39982)},93698:(h,O,o)=>{h.exports=o(88241)},52708:(h,O,o)=>{var d=o(27129);h.exports=d},58541:(h,O,o)=>{var d=o(86250);h.exports=d},37020:(h,O,o)=>{var d=o(61347);h.exports=d},79987:(h,O,o)=>{o(5363);var d=o(42142);h.exports=d},86812:(h,O,o)=>{var d=o(21106);h.exports=d},51024:(h,O,o)=>{var d=o(97497);h.exports=d},32747:(h,O,o)=>{var d=o(28385);h.exports=d},85918:(h,O,o)=>{var d=o(85874);h.exports=d},21626:(h,O,o)=>{var d=o(86843);h.exports=d},77021:(h,O,o)=>{var d=o(37528);h.exports=d},18281:(h,O,o)=>{var d=o(81471);h.exports=d},90229:(h,O,o)=>{var d=o(5271);h.exports=d},53949:(h,O,o)=>{var d=o(87275);h.exports=d},11795:(h,O,o)=>{var d=o(13772);h.exports=d},75090:(h,O,o)=>{var d=o(97574);h.exports=d},27994:(h,O,o)=>{var d=o(69373);h.exports=d},45483:(h,O,o)=>{var d=o(70033);h.exports=d},35796:(h,O,o)=>{var d=o(77443);h.exports=d},79918:(h,O,o)=>{var d=o(88362);o(12752),o(14562),o(25363),o(69355),h.exports=d},82185:(h,O,o)=>{var d=o(89821);o(60177),o(96658),o(54212),o(18658),o(71875),o(54592),o(26680),h.exports=d},39982:(h,O,o)=>{var d=o(8008);h.exports=d},88241:(h,O,o)=>{var d=o(30164);h.exports=d},66235:(h,O,o)=>{var d=o(16447),x=o(79288),w=TypeError;h.exports=function(C){if(d(C))return C;throw w(x(C)+" is not a function")}},71404:(h,O,o)=>{var d=o(22091),x=o(79288),w=TypeError;h.exports=function(C){if(d(C))return C;throw w(x(C)+" is not a constructor")}},7757:(h,O,o)=>{var d=o(16447),x=String,w=TypeError;h.exports=function(C){if(typeof C=="object"||d(C))return C;throw w("Can't set "+x(C)+" as a prototype")}},67423:h=>{h.exports=function(){}},46961:(h,O,o)=>{var d=o(8902),x=TypeError;h.exports=function(w,C){if(d(C,w))return w;throw x("Incorrect invocation")}},31138:(h,O,o)=>{var d=o(35744),x=String,w=TypeError;h.exports=function(C){if(d(C))return C;throw w(x(C)+" is not an object")}},80410:(h,O,o)=>{var d=o(76192);h.exports=d(function(){if(typeof ArrayBuffer=="function"){var x=new ArrayBuffer(8);Object.isExtensible(x)&&Object.defineProperty(x,"a",{value:8})}})},87397:(h,O,o)=>{"use strict";var d=o(50454).forEach,x=o(10424),w=x("forEach");h.exports=w?[].forEach:function(T){return d(this,T,arguments.length>1?arguments[1]:void 0)}},20841:(h,O,o)=>{"use strict";var d=o(8043),x=o(18922),w=o(71795),C=o(21635),T=o(96109),F=o(22091),U=o(84104),Z=o(49361),ee=o(61669),ue=o(78703),ne=Array;h.exports=function(Y){var A=w(Y),J=F(this),L=arguments.length,E=L>1?arguments[1]:void 0,k=E!==void 0;k&&(E=d(E,L>2?arguments[2]:void 0));var V=ue(A),G=0,Q,W,te,K,H,fe;if(V&&!(this===ne&&T(V)))for(K=ee(A,V),H=K.next,W=J?new this:[];!(te=x(H,K)).done;G++)fe=k?C(K,E,[te.value,G],!0):te.value,Z(W,G,fe);else for(Q=U(A),W=J?new this(Q):ne(Q);Q>G;G++)fe=k?E(A[G],G):A[G],Z(W,G,fe);return W.length=G,W}},48180:(h,O,o)=>{var d=o(20101),x=o(97739),w=o(84104),C=function(T){return function(F,U,Z){var ee=d(F),ue=w(ee),ne=x(Z,ue),oe;if(T&&U!=U){for(;ue>ne;)if(oe=ee[ne++],oe!=oe)return!0}else for(;ue>ne;ne++)if((T||ne in ee)&&ee[ne]===U)return T||ne||0;return!T&&-1}};h.exports={includes:C(!0),indexOf:C(!1)}},50454:(h,O,o)=>{var d=o(8043),x=o(84120),w=o(2202),C=o(71795),T=o(84104),F=o(71321),U=x([].push),Z=function(ee){var ue=ee==1,ne=ee==2,oe=ee==3,Y=ee==4,A=ee==6,J=ee==7,L=ee==5||A;return function(E,k,V,G){for(var Q=C(E),W=w(Q),te=d(k,V),K=T(W),H=0,fe=G||F,ve=ue?fe(E,K):ne||J?fe(E,0):void 0,_,X;K>H;H++)if((L||H in W)&&(_=W[H],X=te(_,H,Q),ee))if(ue)ve[H]=X;else if(X)switch(ee){case 3:return!0;case 5:return _;case 6:return H;case 2:U(ve,_)}else switch(ee){case 4:return!1;case 7:U(ve,_)}return A?-1:oe||Y?Y:ve}};h.exports={forEach:Z(0),map:Z(1),filter:Z(2),some:Z(3),every:Z(4),find:Z(5),findIndex:Z(6),filterReject:Z(7)}},90242:(h,O,o)=>{var d=o(76192),x=o(18182),w=o(14218),C=x("species");h.exports=function(T){return w>=51||!d(function(){var F=[],U=F.constructor={};return U[C]=function(){return{foo:1}},F[T](Boolean).foo!==1})}},10424:(h,O,o)=>{"use strict";var d=o(76192);h.exports=function(x,w){var C=[][x];return!!C&&d(function(){C.call(null,w||function(){return 1},1)})}},95072:(h,O,o)=>{"use strict";var d=o(50069),x=o(34770),w=TypeError,C=Object.getOwnPropertyDescriptor,T=d&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(F){return F instanceof TypeError}}();h.exports=T?function(F,U){if(x(F)&&!C(F,"length").writable)throw w("Cannot set read only .length");return F.length=U}:function(F,U){return F.length=U}},1923:(h,O,o)=>{var d=o(97739),x=o(84104),w=o(49361),C=Array,T=Math.max;h.exports=function(F,U,Z){for(var ee=x(F),ue=d(U,ee),ne=d(Z===void 0?ee:Z,ee),oe=C(T(ne-ue,0)),Y=0;ue<ne;ue++,Y++)w(oe,Y,F[ue]);return oe.length=Y,oe}},93096:(h,O,o)=>{var d=o(84120);h.exports=d([].slice)},6614:(h,O,o)=>{var d=o(1923),x=Math.floor,w=function(F,U){var Z=F.length,ee=x(Z/2);return Z<8?C(F,U):T(F,w(d(F,0,ee),U),w(d(F,ee),U),U)},C=function(F,U){for(var Z=F.length,ee=1,ue,ne;ee<Z;){for(ne=ee,ue=F[ee];ne&&U(F[ne-1],ue)>0;)F[ne]=F[--ne];ne!==ee++&&(F[ne]=ue)}return F},T=function(F,U,Z,ee){for(var ue=U.length,ne=Z.length,oe=0,Y=0;oe<ue||Y<ne;)F[oe+Y]=oe<ue&&Y<ne?ee(U[oe],Z[Y])<=0?U[oe++]:Z[Y++]:oe<ue?U[oe++]:Z[Y++];return F};h.exports=w},83712:(h,O,o)=>{var d=o(34770),x=o(22091),w=o(35744),C=o(18182),T=C("species"),F=Array;h.exports=function(U){var Z;return d(U)&&(Z=U.constructor,x(Z)&&(Z===F||d(Z.prototype))?Z=void 0:w(Z)&&(Z=Z[T],Z===null&&(Z=void 0))),Z===void 0?F:Z}},71321:(h,O,o)=>{var d=o(83712);h.exports=function(x,w){return new(d(x))(w===0?0:w)}},21635:(h,O,o)=>{var d=o(31138),x=o(66639);h.exports=function(w,C,T,F){try{return F?C(d(T)[0],T[1]):C(T)}catch(U){x(w,"throw",U)}}},19770:(h,O,o)=>{var d=o(18182),x=d("iterator"),w=!1;try{var C=0,T={next:function(){return{done:!!C++}},return:function(){w=!0}};T[x]=function(){return this},Array.from(T,function(){throw 2})}catch(F){}h.exports=function(F,U){if(!U&&!w)return!1;var Z=!1;try{var ee={};ee[x]=function(){return{next:function(){return{done:Z=!0}}}},F(ee)}catch(ue){}return Z}},29272:(h,O,o)=>{var d=o(84120),x=d({}.toString),w=d("".slice);h.exports=function(C){return w(x(C),8,-1)}},4696:(h,O,o)=>{var d=o(83471),x=o(16447),w=o(29272),C=o(18182),T=C("toStringTag"),F=Object,U=w(function(){return arguments}())=="Arguments",Z=function(ee,ue){try{return ee[ue]}catch(ne){}};h.exports=d?w:function(ee){var ue,ne,oe;return ee===void 0?"Undefined":ee===null?"Null":typeof(ne=Z(ue=F(ee),T))=="string"?ne:U?w(ue):(oe=w(ue))=="Object"&&x(ue.callee)?"Arguments":oe}},51057:(h,O,o)=>{"use strict";var d=o(84120),x=o(35090),w=o(32861).getWeakData,C=o(46961),T=o(31138),F=o(75646),U=o(35744),Z=o(33442),ee=o(50454),ue=o(64500),ne=o(73326),oe=ne.set,Y=ne.getterFor,A=ee.find,J=ee.findIndex,L=d([].splice),E=0,k=function(Q){return Q.frozen||(Q.frozen=new V)},V=function(){this.entries=[]},G=function(Q,W){return A(Q.entries,function(te){return te[0]===W})};V.prototype={get:function(Q){var W=G(this,Q);if(W)return W[1]},has:function(Q){return!!G(this,Q)},set:function(Q,W){var te=G(this,Q);te?te[1]=W:this.entries.push([Q,W])},delete:function(Q){var W=J(this.entries,function(te){return te[0]===Q});return~W&&L(this.entries,W,1),!!~W}},h.exports={getConstructor:function(Q,W,te,K){var H=Q(function(X,z){C(X,fe),oe(X,{type:W,id:E++,frozen:void 0}),F(z)||Z(z,X[K],{that:X,AS_ENTRIES:te})}),fe=H.prototype,ve=Y(W),_=function(X,z,ge){var Oe=ve(X),Ue=w(T(z),!0);return Ue===!0?k(Oe).set(z,ge):Ue[Oe.id]=ge,X};return x(fe,{delete:function(X){var z=ve(this);if(!U(X))return!1;var ge=w(X);return ge===!0?k(z).delete(X):ge&&ue(ge,z.id)&&delete ge[z.id]},has:function(z){var ge=ve(this);if(!U(z))return!1;var Oe=w(z);return Oe===!0?k(ge).has(z):Oe&&ue(Oe,ge.id)}}),x(fe,te?{get:function(z){var ge=ve(this);if(U(z)){var Oe=w(z);return Oe===!0?k(ge).get(z):Oe?Oe[ge.id]:void 0}},set:function(z,ge){return _(this,z,ge)}}:{add:function(z){return _(this,z,!0)}}),H}}},34535:(h,O,o)=>{"use strict";var d=o(93085),x=o(98576),w=o(32861),C=o(76192),T=o(98711),F=o(33442),U=o(46961),Z=o(16447),ee=o(35744),ue=o(11284),ne=o(42760).f,oe=o(50454).forEach,Y=o(50069),A=o(73326),J=A.set,L=A.getterFor;h.exports=function(E,k,V){var G=E.indexOf("Map")!==-1,Q=E.indexOf("Weak")!==-1,W=G?"set":"add",te=x[E],K=te&&te.prototype,H={},fe;if(!Y||!Z(te)||!(Q||K.forEach&&!C(function(){new te().entries().next()})))fe=V.getConstructor(k,E,G,W),w.enable();else{fe=k(function(X,z){J(U(X,ve),{type:E,collection:new te}),z!=null&&F(z,X[W],{that:X,AS_ENTRIES:G})});var ve=fe.prototype,_=L(E);oe(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(X){var z=X=="add"||X=="set";X in K&&!(Q&&X=="clear")&&T(ve,X,function(ge,Oe){var Ue=_(this).collection;if(!z&&Q&&!ee(ge))return X=="get"?void 0:!1;var Re=Ue[X](ge===0?0:ge,Oe);return z?this:Re})}),Q||ne(ve,"size",{configurable:!0,get:function(){return _(this).collection.size}})}return ue(fe,E,!1,!0),H[E]=fe,d({global:!0,forced:!0},H),Q||V.setStrong(fe,E,G),fe}},97987:(h,O,o)=>{var d=o(64500),x=o(93011),w=o(5141),C=o(42760);h.exports=function(T,F,U){for(var Z=x(F),ee=C.f,ue=w.f,ne=0;ne<Z.length;ne++){var oe=Z[ne];!d(T,oe)&&!(U&&d(U,oe))&&ee(T,oe,ue(F,oe))}}},83519:(h,O,o)=>{var d=o(18182),x=d("match");h.exports=function(w){var C=/./;try{"/./"[w](C)}catch(T){try{return C[x]=!1,"/./"[w](C)}catch(F){}}return!1}},4635:(h,O,o)=>{var d=o(76192);h.exports=!d(function(){function x(){}return x.prototype.constructor=null,Object.getPrototypeOf(new x)!==x.prototype})},87271:h=>{h.exports=function(O,o){return{value:O,done:o}}},98711:(h,O,o)=>{var d=o(50069),x=o(42760),w=o(90774);h.exports=d?function(C,T,F){return x.f(C,T,w(1,F))}:function(C,T,F){return C[T]=F,C}},90774:h=>{h.exports=function(O,o){return{enumerable:!(O&1),configurable:!(O&2),writable:!(O&4),value:o}}},49361:(h,O,o)=>{"use strict";var d=o(40077),x=o(42760),w=o(90774);h.exports=function(C,T,F){var U=d(T);U in C?x.f(C,U,w(0,F)):C[U]=F}},59362:(h,O,o)=>{var d=o(98711);h.exports=function(x,w,C,T){return T&&T.enumerable?x[w]=C:d(x,w,C),x}},35090:(h,O,o)=>{var d=o(59362);h.exports=function(x,w,C){for(var T in w)C&&C.unsafe&&x[T]?x[T]=w[T]:d(x,T,w[T],C);return x}},65098:(h,O,o)=>{var d=o(98576),x=Object.defineProperty;h.exports=function(w,C){try{x(d,w,{value:C,configurable:!0,writable:!0})}catch(T){d[w]=C}return C}},29970:(h,O,o)=>{"use strict";var d=o(79288),x=TypeError;h.exports=function(w,C){if(!delete w[C])throw x("Cannot delete property "+d(C)+" of "+d(w))}},50069:(h,O,o)=>{var d=o(76192);h.exports=!d(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},58382:h=>{var O=typeof document=="object"&&document.all,o=typeof O=="undefined"&&O!==void 0;h.exports={all:O,IS_HTMLDDA:o}},67449:(h,O,o)=>{var d=o(98576),x=o(35744),w=d.document,C=x(w)&&x(w.createElement);h.exports=function(T){return C?w.createElement(T):{}}},29425:h=>{var O=TypeError,o=9007199254740991;h.exports=function(d){if(d>o)throw O("Maximum allowed index exceeded");return d}},17365:h=>{h.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},82957:(h,O,o)=>{var d=o(60659),x=o(58189);h.exports=!d&&!x&&typeof window=="object"&&typeof document=="object"},60659:h=>{h.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},29347:(h,O,o)=>{var d=o(78989),x=o(98576);h.exports=/ipad|iphone|ipod/i.test(d)&&x.Pebble!==void 0},69536:(h,O,o)=>{var d=o(78989);h.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(d)},58189:(h,O,o)=>{var d=o(29272),x=o(98576);h.exports=d(x.process)=="process"},5914:(h,O,o)=>{var d=o(78989);h.exports=/web0s(?!.*chrome)/i.test(d)},78989:(h,O,o)=>{var d=o(10150);h.exports=d("navigator","userAgent")||""},14218:(h,O,o)=>{var d=o(98576),x=o(78989),w=d.process,C=d.Deno,T=w&&w.versions||C&&C.version,F=T&&T.v8,U,Z;F&&(U=F.split("."),Z=U[0]>0&&U[0]<4?1:+(U[0]+U[1])),!Z&&x&&(U=x.match(/Edge\/(\d+)/),(!U||U[1]>=74)&&(U=x.match(/Chrome\/(\d+)/),U&&(Z=+U[1]))),h.exports=Z},45607:(h,O,o)=>{var d=o(57545);h.exports=function(x){return d[x+"Prototype"]}},82952:h=>{h.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},14503:(h,O,o)=>{var d=o(84120),x=Error,w=d("".replace),C=function(U){return String(x(U).stack)}("zxcasd"),T=/\n\s*at [^:]*:[^\n]*/,F=T.test(C);h.exports=function(U,Z){if(F&&typeof U=="string"&&!x.prepareStackTrace)for(;Z--;)U=w(U,T,"");return U}},50274:(h,O,o)=>{var d=o(76192),x=o(90774);h.exports=!d(function(){var w=Error("a");return"stack"in w?(Object.defineProperty(w,"stack",x(1,7)),w.stack!==7):!0})},93085:(h,O,o)=>{"use strict";var d=o(98576),x=o(86298),w=o(14914),C=o(16447),T=o(5141).f,F=o(89245),U=o(57545),Z=o(8043),ee=o(98711),ue=o(64500),ne=function(oe){var Y=function(A,J,L){if(this instanceof Y){switch(arguments.length){case 0:return new oe;case 1:return new oe(A);case 2:return new oe(A,J)}return new oe(A,J,L)}return x(oe,this,arguments)};return Y.prototype=oe.prototype,Y};h.exports=function(oe,Y){var A=oe.target,J=oe.global,L=oe.stat,E=oe.proto,k=J?d:L?d[A]:(d[A]||{}).prototype,V=J?U:U[A]||ee(U,A,{})[A],G=V.prototype,Q,W,te,K,H,fe,ve,_,X;for(K in Y)Q=F(J?K:A+(L?".":"#")+K,oe.forced),W=!Q&&k&&ue(k,K),fe=V[K],W&&(oe.dontCallGetSet?(X=T(k,K),ve=X&&X.value):ve=k[K]),H=W&&ve?ve:Y[K],!(W&&typeof fe==typeof H)&&(oe.bind&&W?_=Z(H,d):oe.wrap&&W?_=ne(H):E&&C(H)?_=w(H):_=H,(oe.sham||H&&H.sham||fe&&fe.sham)&&ee(_,"sham",!0),ee(V,K,_),E&&(te=A+"Prototype",ue(U,te)||ee(U,te,{}),ee(U[te],K,H),oe.real&&G&&(Q||!G[K])&&ee(G,K,H)))}},76192:h=>{h.exports=function(O){try{return!!O()}catch(o){return!0}}},47636:(h,O,o)=>{var d=o(76192);h.exports=!d(function(){return Object.isExtensible(Object.preventExtensions({}))})},86298:(h,O,o)=>{var d=o(22784),x=Function.prototype,w=x.apply,C=x.call;h.exports=typeof Reflect=="object"&&Reflect.apply||(d?C.bind(w):function(){return C.apply(w,arguments)})},8043:(h,O,o)=>{var d=o(14914),x=o(66235),w=o(22784),C=d(d.bind);h.exports=function(T,F){return x(T),F===void 0?T:w?C(T,F):function(){return T.apply(F,arguments)}}},22784:(h,O,o)=>{var d=o(76192);h.exports=!d(function(){var x=function(){}.bind();return typeof x!="function"||x.hasOwnProperty("prototype")})},18922:(h,O,o)=>{var d=o(22784),x=Function.prototype.call;h.exports=d?x.bind(x):function(){return x.apply(x,arguments)}},22282:(h,O,o)=>{var d=o(50069),x=o(64500),w=Function.prototype,C=d&&Object.getOwnPropertyDescriptor,T=x(w,"name"),F=T&&function(){}.name==="something",U=T&&(!d||d&&C(w,"name").configurable);h.exports={EXISTS:T,PROPER:F,CONFIGURABLE:U}},14914:(h,O,o)=>{var d=o(29272),x=o(84120);h.exports=function(w){if(d(w)==="Function")return x(w)}},84120:(h,O,o)=>{var d=o(22784),x=Function.prototype,w=x.call,C=d&&x.bind.bind(w,w);h.exports=d?C:function(T){return function(){return w.apply(T,arguments)}}},10150:(h,O,o)=>{var d=o(57545),x=o(98576),w=o(16447),C=function(T){return w(T)?T:void 0};h.exports=function(T,F){return arguments.length<2?C(d[T])||C(x[T]):d[T]&&d[T][F]||x[T]&&x[T][F]}},78703:(h,O,o)=>{var d=o(4696),x=o(75037),w=o(75646),C=o(47771),T=o(18182),F=T("iterator");h.exports=function(U){if(!w(U))return x(U,F)||x(U,"@@iterator")||C[d(U)]}},61669:(h,O,o)=>{var d=o(18922),x=o(66235),w=o(31138),C=o(79288),T=o(78703),F=TypeError;h.exports=function(U,Z){var ee=arguments.length<2?T(U):Z;if(x(ee))return w(d(ee,U));throw F(C(U)+" is not iterable")}},75037:(h,O,o)=>{var d=o(66235),x=o(75646);h.exports=function(w,C){var T=w[C];return x(T)?void 0:d(T)}},98576:(h,O,o)=>{var d=function(x){return x&&x.Math==Math&&x};h.exports=d(typeof globalThis=="object"&&globalThis)||d(typeof window=="object"&&window)||d(typeof self=="object"&&self)||d(typeof o.g=="object"&&o.g)||function(){return this}()||Function("return this")()},64500:(h,O,o)=>{var d=o(84120),x=o(71795),w=d({}.hasOwnProperty);h.exports=Object.hasOwn||function(T,F){return w(x(T),F)}},14535:h=>{h.exports={}},63681:(h,O,o)=>{var d=o(98576);h.exports=function(x,w){var C=d.console;C&&C.error&&(arguments.length==1?C.error(x):C.error(x,w))}},47403:(h,O,o)=>{var d=o(10150);h.exports=d("document","documentElement")},80188:(h,O,o)=>{var d=o(50069),x=o(76192),w=o(67449);h.exports=!d&&!x(function(){return Object.defineProperty(w("div"),"a",{get:function(){return 7}}).a!=7})},2202:(h,O,o)=>{var d=o(84120),x=o(76192),w=o(29272),C=Object,T=d("".split);h.exports=x(function(){return!C("z").propertyIsEnumerable(0)})?function(F){return w(F)=="String"?T(F,""):C(F)}:C},19516:(h,O,o)=>{var d=o(84120),x=o(16447),w=o(46434),C=d(Function.toString);x(w.inspectSource)||(w.inspectSource=function(T){return C(T)}),h.exports=w.inspectSource},10273:(h,O,o)=>{var d=o(35744),x=o(98711);h.exports=function(w,C){d(C)&&"cause"in C&&x(w,"cause",C.cause)}},32861:(h,O,o)=>{var d=o(93085),x=o(84120),w=o(14535),C=o(35744),T=o(64500),F=o(42760).f,U=o(92092),Z=o(24052),ee=o(4532),ue=o(42759),ne=o(47636),oe=!1,Y=ue("meta"),A=0,J=function(Q){F(Q,Y,{value:{objectID:"O"+A++,weakData:{}}})},L=function(Q,W){if(!C(Q))return typeof Q=="symbol"?Q:(typeof Q=="string"?"S":"P")+Q;if(!T(Q,Y)){if(!ee(Q))return"F";if(!W)return"E";J(Q)}return Q[Y].objectID},E=function(Q,W){if(!T(Q,Y)){if(!ee(Q))return!0;if(!W)return!1;J(Q)}return Q[Y].weakData},k=function(Q){return ne&&oe&&ee(Q)&&!T(Q,Y)&&J(Q),Q},V=function(){G.enable=function(){},oe=!0;var Q=U.f,W=x([].splice),te={};te[Y]=1,Q(te).length&&(U.f=function(K){for(var H=Q(K),fe=0,ve=H.length;fe<ve;fe++)if(H[fe]===Y){W(H,fe,1);break}return H},d({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Z.f}))},G=h.exports={enable:V,fastKey:L,getWeakData:E,onFreeze:k};w[Y]=!0},73326:(h,O,o)=>{var d=o(55278),x=o(98576),w=o(35744),C=o(98711),T=o(64500),F=o(46434),U=o(69766),Z=o(14535),ee="Object already initialized",ue=x.TypeError,ne=x.WeakMap,oe,Y,A,J=function(V){return A(V)?Y(V):oe(V,{})},L=function(V){return function(G){var Q;if(!w(G)||(Q=Y(G)).type!==V)throw ue("Incompatible receiver, "+V+" required");return Q}};if(d||F.state){var E=F.state||(F.state=new ne);E.get=E.get,E.has=E.has,E.set=E.set,oe=function(V,G){if(E.has(V))throw ue(ee);return G.facade=V,E.set(V,G),G},Y=function(V){return E.get(V)||{}},A=function(V){return E.has(V)}}else{var k=U("state");Z[k]=!0,oe=function(V,G){if(T(V,k))throw ue(ee);return G.facade=V,C(V,k,G),G},Y=function(V){return T(V,k)?V[k]:{}},A=function(V){return T(V,k)}}h.exports={set:oe,get:Y,has:A,enforce:J,getterFor:L}},96109:(h,O,o)=>{var d=o(18182),x=o(47771),w=d("iterator"),C=Array.prototype;h.exports=function(T){return T!==void 0&&(x.Array===T||C[w]===T)}},34770:(h,O,o)=>{var d=o(29272);h.exports=Array.isArray||function(w){return d(w)=="Array"}},16447:(h,O,o)=>{var d=o(58382),x=d.all;h.exports=d.IS_HTMLDDA?function(w){return typeof w=="function"||w===x}:function(w){return typeof w=="function"}},22091:(h,O,o)=>{var d=o(84120),x=o(76192),w=o(16447),C=o(4696),T=o(10150),F=o(19516),U=function(){},Z=[],ee=T("Reflect","construct"),ue=/^\s*(?:class|function)\b/,ne=d(ue.exec),oe=!ue.exec(U),Y=function(L){if(!w(L))return!1;try{return ee(U,Z,L),!0}catch(E){return!1}},A=function(L){if(!w(L))return!1;switch(C(L)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return oe||!!ne(ue,F(L))}catch(E){return!0}};A.sham=!0,h.exports=!ee||x(function(){var J;return Y(Y.call)||!Y(Object)||!Y(function(){J=!0})||J})?A:Y},89245:(h,O,o)=>{var d=o(76192),x=o(16447),w=/#|\.prototype\./,C=function(ee,ue){var ne=F[T(ee)];return ne==Z?!0:ne==U?!1:x(ue)?d(ue):!!ue},T=C.normalize=function(ee){return String(ee).replace(w,".").toLowerCase()},F=C.data={},U=C.NATIVE="N",Z=C.POLYFILL="P";h.exports=C},75646:h=>{h.exports=function(O){return O==null}},35744:(h,O,o)=>{var d=o(16447),x=o(58382),w=x.all;h.exports=x.IS_HTMLDDA?function(C){return typeof C=="object"?C!==null:d(C)||C===w}:function(C){return typeof C=="object"?C!==null:d(C)}},85546:h=>{h.exports=!0},94352:(h,O,o)=>{var d=o(35744),x=o(29272),w=o(18182),C=w("match");h.exports=function(T){var F;return d(T)&&((F=T[C])!==void 0?!!F:x(T)=="RegExp")}},23236:(h,O,o)=>{var d=o(10150),x=o(16447),w=o(8902),C=o(50615),T=Object;h.exports=C?function(F){return typeof F=="symbol"}:function(F){var U=d("Symbol");return x(U)&&w(U.prototype,T(F))}},33442:(h,O,o)=>{var d=o(8043),x=o(18922),w=o(31138),C=o(79288),T=o(96109),F=o(84104),U=o(8902),Z=o(61669),ee=o(78703),ue=o(66639),ne=TypeError,oe=function(A,J){this.stopped=A,this.result=J},Y=oe.prototype;h.exports=function(A,J,L){var E=L&&L.that,k=!!(L&&L.AS_ENTRIES),V=!!(L&&L.IS_RECORD),G=!!(L&&L.IS_ITERATOR),Q=!!(L&&L.INTERRUPTED),W=d(J,E),te,K,H,fe,ve,_,X,z=function(Oe){return te&&ue(te,"normal",Oe),new oe(!0,Oe)},ge=function(Oe){return k?(w(Oe),Q?W(Oe[0],Oe[1],z):W(Oe[0],Oe[1])):Q?W(Oe,z):W(Oe)};if(V)te=A.iterator;else if(G)te=A;else{if(K=ee(A),!K)throw ne(C(A)+" is not iterable");if(T(K)){for(H=0,fe=F(A);fe>H;H++)if(ve=ge(A[H]),ve&&U(Y,ve))return ve;return new oe(!1)}te=Z(A,K)}for(_=V?A.next:te.next;!(X=x(_,te)).done;){try{ve=ge(X.value)}catch(Oe){ue(te,"throw",Oe)}if(typeof ve=="object"&&ve&&U(Y,ve))return ve}return new oe(!1)}},66639:(h,O,o)=>{var d=o(18922),x=o(31138),w=o(75037);h.exports=function(C,T,F){var U,Z;x(C);try{if(U=w(C,"return"),!U){if(T==="throw")throw F;return F}U=d(U,C)}catch(ee){Z=!0,U=ee}if(T==="throw")throw F;if(Z)throw U;return x(U),F}},25695:(h,O,o)=>{"use strict";var d=o(54413).IteratorPrototype,x=o(52853),w=o(90774),C=o(11284),T=o(47771),F=function(){return this};h.exports=function(U,Z,ee,ue){var ne=Z+" Iterator";return U.prototype=x(d,{next:w(+!ue,ee)}),C(U,ne,!1,!0),T[ne]=F,U}},65297:(h,O,o)=>{"use strict";var d=o(93085),x=o(18922),w=o(85546),C=o(22282),T=o(16447),F=o(25695),U=o(89341),Z=o(24469),ee=o(11284),ue=o(98711),ne=o(59362),oe=o(18182),Y=o(47771),A=o(54413),J=C.PROPER,L=C.CONFIGURABLE,E=A.IteratorPrototype,k=A.BUGGY_SAFARI_ITERATORS,V=oe("iterator"),G="keys",Q="values",W="entries",te=function(){return this};h.exports=function(K,H,fe,ve,_,X,z){F(fe,H,ve);var ge=function(Ce){if(Ce===_&&Xe)return Xe;if(!k&&Ce in Re)return Re[Ce];switch(Ce){case G:return function(){return new fe(this,Ce)};case Q:return function(){return new fe(this,Ce)};case W:return function(){return new fe(this,Ce)}}return function(){return new fe(this)}},Oe=H+" Iterator",Ue=!1,Re=K.prototype,ot=Re[V]||Re["@@iterator"]||_&&Re[_],Xe=!k&&ot||ge(_),xt=H=="Array"&&Re.entries||ot,Pt,Ct,Le;if(xt&&(Pt=U(xt.call(new K)),Pt!==Object.prototype&&Pt.next&&(!w&&U(Pt)!==E&&(Z?Z(Pt,E):T(Pt[V])||ne(Pt,V,te)),ee(Pt,Oe,!0,!0),w&&(Y[Oe]=te))),J&&_==Q&&ot&&ot.name!==Q&&(!w&&L?ue(Re,"name",Q):(Ue=!0,Xe=function(){return x(ot,this)})),_)if(Ct={values:ge(Q),keys:X?Xe:ge(G),entries:ge(W)},z)for(Le in Ct)(k||Ue||!(Le in Re))&&ne(Re,Le,Ct[Le]);else d({target:H,proto:!0,forced:k||Ue},Ct);return(!w||z)&&Re[V]!==Xe&&ne(Re,V,Xe,{name:_}),Y[H]=Xe,Ct}},54413:(h,O,o)=>{"use strict";var d=o(76192),x=o(16447),w=o(35744),C=o(52853),T=o(89341),F=o(59362),U=o(18182),Z=o(85546),ee=U("iterator"),ue=!1,ne,oe,Y;[].keys&&(Y=[].keys(),"next"in Y?(oe=T(T(Y)),oe!==Object.prototype&&(ne=oe)):ue=!0);var A=!w(ne)||d(function(){var J={};return ne[ee].call(J)!==J});A?ne={}:Z&&(ne=C(ne)),x(ne[ee])||F(ne,ee,function(){return this}),h.exports={IteratorPrototype:ne,BUGGY_SAFARI_ITERATORS:ue}},47771:h=>{h.exports={}},84104:(h,O,o)=>{var d=o(8445);h.exports=function(x){return d(x.length)}},77679:h=>{var O=Math.ceil,o=Math.floor;h.exports=Math.trunc||function(x){var w=+x;return(w>0?o:O)(w)}},12950:(h,O,o)=>{var d=o(98576),x=o(8043),w=o(5141).f,C=o(67160).set,T=o(69536),F=o(29347),U=o(5914),Z=o(58189),ee=d.MutationObserver||d.WebKitMutationObserver,ue=d.document,ne=d.process,oe=d.Promise,Y=w(d,"queueMicrotask"),A=Y&&Y.value,J,L,E,k,V,G,Q,W;A||(J=function(){var te,K;for(Z&&(te=ne.domain)&&te.exit();L;){K=L.fn,L=L.next;try{K()}catch(H){throw L?k():E=void 0,H}}E=void 0,te&&te.enter()},!T&&!Z&&!U&&ee&&ue?(V=!0,G=ue.createTextNode(""),new ee(J).observe(G,{characterData:!0}),k=function(){G.data=V=!V}):!F&&oe&&oe.resolve?(Q=oe.resolve(void 0),Q.constructor=oe,W=x(Q.then,Q),k=function(){W(J)}):Z?k=function(){ne.nextTick(J)}:(C=x(C,d),k=function(){C(J)})),h.exports=A||function(te){var K={fn:te,next:void 0};E&&(E.next=K),L||(L=K,k()),E=K}},99438:(h,O,o)=>{"use strict";var d=o(66235),x=TypeError,w=function(C){var T,F;this.promise=new C(function(U,Z){if(T!==void 0||F!==void 0)throw x("Bad Promise constructor");T=U,F=Z}),this.resolve=d(T),this.reject=d(F)};h.exports.f=function(C){return new w(C)}},36016:(h,O,o)=>{var d=o(44845);h.exports=function(x,w){return x===void 0?arguments.length<2?"":w:d(x)}},9703:(h,O,o)=>{var d=o(94352),x=TypeError;h.exports=function(w){if(d(w))throw x("The method doesn't accept regular expressions");return w}},52503:(h,O,o)=>{"use strict";var d=o(50069),x=o(84120),w=o(18922),C=o(76192),T=o(57653),F=o(84750),U=o(56007),Z=o(71795),ee=o(2202),ue=Object.assign,ne=Object.defineProperty,oe=x([].concat);h.exports=!ue||C(function(){if(d&&ue({b:1},ue(ne({},"a",{enumerable:!0,get:function(){ne(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var Y={},A={},J=Symbol(),L="abcdefghijklmnopqrst";return Y[J]=7,L.split("").forEach(function(E){A[E]=E}),ue({},Y)[J]!=7||T(ue({},A)).join("")!=L})?function(A,J){for(var L=Z(A),E=arguments.length,k=1,V=F.f,G=U.f;E>k;)for(var Q=ee(arguments[k++]),W=V?oe(T(Q),V(Q)):T(Q),te=W.length,K=0,H;te>K;)H=W[K++],(!d||w(G,Q,H))&&(L[H]=Q[H]);return L}:ue},52853:(h,O,o)=>{var d=o(31138),x=o(11187),w=o(82952),C=o(14535),T=o(47403),F=o(67449),U=o(69766),Z=">",ee="<",ue="prototype",ne="script",oe=U("IE_PROTO"),Y=function(){},A=function(V){return ee+ne+Z+V+ee+"/"+ne+Z},J=function(V){V.write(A("")),V.close();var G=V.parentWindow.Object;return V=null,G},L=function(){var V=F("iframe"),G="java"+ne+":",Q;return V.style.display="none",T.appendChild(V),V.src=String(G),Q=V.contentWindow.document,Q.open(),Q.write(A("document.F=Object")),Q.close(),Q.F},E,k=function(){try{E=new ActiveXObject("htmlfile")}catch(G){}k=typeof document!="undefined"?document.domain&&E?J(E):L():J(E);for(var V=w.length;V--;)delete k[ue][w[V]];return k()};C[oe]=!0,h.exports=Object.create||function(G,Q){var W;return G!==null?(Y[ue]=d(G),W=new Y,Y[ue]=null,W[oe]=G):W=k(),Q===void 0?W:x.f(W,Q)}},11187:(h,O,o)=>{var d=o(50069),x=o(69600),w=o(42760),C=o(31138),T=o(20101),F=o(57653);O.f=d&&!x?Object.defineProperties:function(Z,ee){C(Z);for(var ue=T(ee),ne=F(ee),oe=ne.length,Y=0,A;oe>Y;)w.f(Z,A=ne[Y++],ue[A]);return Z}},42760:(h,O,o)=>{var d=o(50069),x=o(80188),w=o(69600),C=o(31138),T=o(40077),F=TypeError,U=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,ee="enumerable",ue="configurable",ne="writable";O.f=d?w?function(Y,A,J){if(C(Y),A=T(A),C(J),typeof Y=="function"&&A==="prototype"&&"value"in J&&ne in J&&!J[ne]){var L=Z(Y,A);L&&L[ne]&&(Y[A]=J.value,J={configurable:ue in J?J[ue]:L[ue],enumerable:ee in J?J[ee]:L[ee],writable:!1})}return U(Y,A,J)}:U:function(Y,A,J){if(C(Y),A=T(A),C(J),x)try{return U(Y,A,J)}catch(L){}if("get"in J||"set"in J)throw F("Accessors not supported");return"value"in J&&(Y[A]=J.value),Y}},5141:(h,O,o)=>{var d=o(50069),x=o(18922),w=o(56007),C=o(90774),T=o(20101),F=o(40077),U=o(64500),Z=o(80188),ee=Object.getOwnPropertyDescriptor;O.f=d?ee:function(ne,oe){if(ne=T(ne),oe=F(oe),Z)try{return ee(ne,oe)}catch(Y){}if(U(ne,oe))return C(!x(w.f,ne,oe),ne[oe])}},24052:(h,O,o)=>{var d=o(29272),x=o(20101),w=o(92092).f,C=o(1923),T=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],F=function(U){try{return w(U)}catch(Z){return C(T)}};h.exports.f=function(Z){return T&&d(Z)=="Window"?F(Z):w(x(Z))}},92092:(h,O,o)=>{var d=o(57934),x=o(82952),w=x.concat("length","prototype");O.f=Object.getOwnPropertyNames||function(T){return d(T,w)}},84750:(h,O)=>{O.f=Object.getOwnPropertySymbols},89341:(h,O,o)=>{var d=o(64500),x=o(16447),w=o(71795),C=o(69766),T=o(4635),F=C("IE_PROTO"),U=Object,Z=U.prototype;h.exports=T?U.getPrototypeOf:function(ee){var ue=w(ee);if(d(ue,F))return ue[F];var ne=ue.constructor;return x(ne)&&ue instanceof ne?ne.prototype:ue instanceof U?Z:null}},4532:(h,O,o)=>{var d=o(76192),x=o(35744),w=o(29272),C=o(80410),T=Object.isExtensible,F=d(function(){T(1)});h.exports=F||C?function(Z){return!x(Z)||C&&w(Z)=="ArrayBuffer"?!1:T?T(Z):!0}:T},8902:(h,O,o)=>{var d=o(84120);h.exports=d({}.isPrototypeOf)},57934:(h,O,o)=>{var d=o(84120),x=o(64500),w=o(20101),C=o(48180).indexOf,T=o(14535),F=d([].push);h.exports=function(U,Z){var ee=w(U),ue=0,ne=[],oe;for(oe in ee)!x(T,oe)&&x(ee,oe)&&F(ne,oe);for(;Z.length>ue;)x(ee,oe=Z[ue++])&&(~C(ne,oe)||F(ne,oe));return ne}},57653:(h,O,o)=>{var d=o(57934),x=o(82952);h.exports=Object.keys||function(C){return d(C,x)}},56007:(h,O)=>{"use strict";var o={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,x=d&&!o.call({1:2},1);O.f=x?function(C){var T=d(this,C);return!!T&&T.enumerable}:o},24469:(h,O,o)=>{var d=o(84120),x=o(31138),w=o(7757);h.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var C=!1,T={},F;try{F=d(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),F(T,[]),C=T instanceof Array}catch(U){}return function(Z,ee){return x(Z),w(ee),C?F(Z,ee):Z.__proto__=ee,Z}}():void 0)},75370:(h,O,o)=>{var d=o(50069),x=o(84120),w=o(57653),C=o(20101),T=o(56007).f,F=x(T),U=x([].push),Z=function(ee){return function(ue){for(var ne=C(ue),oe=w(ne),Y=oe.length,A=0,J=[],L;Y>A;)L=oe[A++],(!d||F(ne,L))&&U(J,ee?[L,ne[L]]:ne[L]);return J}};h.exports={entries:Z(!0),values:Z(!1)}},40158:(h,O,o)=>{"use strict";var d=o(83471),x=o(4696);h.exports=d?{}.toString:function(){return"[object "+x(this)+"]"}},380:(h,O,o)=>{var d=o(18922),x=o(16447),w=o(35744),C=TypeError;h.exports=function(T,F){var U,Z;if(F==="string"&&x(U=T.toString)&&!w(Z=d(U,T))||x(U=T.valueOf)&&!w(Z=d(U,T))||F!=="string"&&x(U=T.toString)&&!w(Z=d(U,T)))return Z;throw C("Can't convert object to primitive value")}},93011:(h,O,o)=>{var d=o(10150),x=o(84120),w=o(92092),C=o(84750),T=o(31138),F=x([].concat);h.exports=d("Reflect","ownKeys")||function(Z){var ee=w.f(T(Z)),ue=C.f;return ue?F(ee,ue(Z)):ee}},57545:h=>{h.exports={}},70892:h=>{h.exports=function(O){try{return{error:!1,value:O()}}catch(o){return{error:!0,value:o}}}},30511:(h,O,o)=>{var d=o(98576),x=o(15813),w=o(16447),C=o(89245),T=o(19516),F=o(18182),U=o(82957),Z=o(60659),ee=o(85546),ue=o(14218),ne=x&&x.prototype,oe=F("species"),Y=!1,A=w(d.PromiseRejectionEvent),J=C("Promise",function(){var L=T(x),E=L!==String(x);if(!E&&ue===66||ee&&!(ne.catch&&ne.finally))return!0;if(!ue||ue<51||!/native code/.test(L)){var k=new x(function(Q){Q(1)}),V=function(Q){Q(function(){},function(){})},G=k.constructor={};if(G[oe]=V,Y=k.then(function(){})instanceof V,!Y)return!0}return!E&&(U||Z)&&!A});h.exports={CONSTRUCTOR:J,REJECTION_EVENT:A,SUBCLASSING:Y}},15813:(h,O,o)=>{var d=o(98576);h.exports=d.Promise},19126:(h,O,o)=>{var d=o(31138),x=o(35744),w=o(99438);h.exports=function(C,T){if(d(C),x(T)&&T.constructor===C)return T;var F=w.f(C),U=F.resolve;return U(T),F.promise}},52775:(h,O,o)=>{var d=o(15813),x=o(19770),w=o(30511).CONSTRUCTOR;h.exports=w||!x(function(C){d.all(C).then(void 0,function(){})})},6412:h=>{var O=function(){this.head=null,this.tail=null};O.prototype={add:function(o){var d={item:o,next:null};this.head?this.tail.next=d:this.head=d,this.tail=d},get:function(){var o=this.head;if(o)return this.head=o.next,this.tail===o&&(this.tail=null),o.item}},h.exports=O},13209:(h,O,o)=>{var d=o(75646),x=TypeError;h.exports=function(w){if(d(w))throw x("Can't call method on "+w);return w}},63656:(h,O,o)=>{"use strict";var d=o(10150),x=o(42760),w=o(18182),C=o(50069),T=w("species");h.exports=function(F){var U=d(F),Z=x.f;C&&U&&!U[T]&&Z(U,T,{configurable:!0,get:function(){return this}})}},11284:(h,O,o)=>{var d=o(83471),x=o(42760).f,w=o(98711),C=o(64500),T=o(40158),F=o(18182),U=F("toStringTag");h.exports=function(Z,ee,ue,ne){if(Z){var oe=ue?Z:Z.prototype;C(oe,U)||x(oe,U,{configurable:!0,value:ee}),ne&&!d&&w(oe,"toString",T)}}},69766:(h,O,o)=>{var d=o(98717),x=o(42759),w=d("keys");h.exports=function(C){return w[C]||(w[C]=x(C))}},46434:(h,O,o)=>{var d=o(98576),x=o(65098),w="__core-js_shared__",C=d[w]||x(w,{});h.exports=C},98717:(h,O,o)=>{var d=o(85546),x=o(46434);(h.exports=function(w,C){return x[w]||(x[w]=C!==void 0?C:{})})("versions",[]).push({version:"3.27.1",mode:d?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.27.1/LICENSE",source:"https://github.com/zloirock/core-js"})},84743:(h,O,o)=>{var d=o(31138),x=o(71404),w=o(75646),C=o(18182),T=C("species");h.exports=function(F,U){var Z=d(F).constructor,ee;return Z===void 0||w(ee=d(Z)[T])?U:x(ee)}},863:(h,O,o)=>{var d=o(84120),x=o(41941),w=o(44845),C=o(13209),T=d("".charAt),F=d("".charCodeAt),U=d("".slice),Z=function(ee){return function(ue,ne){var oe=w(C(ue)),Y=x(ne),A=oe.length,J,L;return Y<0||Y>=A?ee?"":void 0:(J=F(oe,Y),J<55296||J>56319||Y+1===A||(L=F(oe,Y+1))<56320||L>57343?ee?T(oe,Y):J:ee?U(oe,Y,Y+2):(J-55296<<10)+(L-56320)+65536)}};h.exports={codeAt:Z(!1),charAt:Z(!0)}},36770:(h,O,o)=>{var d=o(14218),x=o(76192);h.exports=!!Object.getOwnPropertySymbols&&!x(function(){var w=Symbol();return!String(w)||!(Object(w)instanceof Symbol)||!Symbol.sham&&d&&d<41})},93407:(h,O,o)=>{var d=o(18922),x=o(10150),w=o(18182),C=o(59362);h.exports=function(){var T=x("Symbol"),F=T&&T.prototype,U=F&&F.valueOf,Z=w("toPrimitive");F&&!F[Z]&&C(F,Z,function(ee){return d(U,this)},{arity:1})}},20031:(h,O,o)=>{var d=o(36770);h.exports=d&&!!Symbol.for&&!!Symbol.keyFor},67160:(h,O,o)=>{var d=o(98576),x=o(86298),w=o(8043),C=o(16447),T=o(64500),F=o(76192),U=o(47403),Z=o(93096),ee=o(67449),ue=o(67822),ne=o(69536),oe=o(58189),Y=d.setImmediate,A=d.clearImmediate,J=d.process,L=d.Dispatch,E=d.Function,k=d.MessageChannel,V=d.String,G=0,Q={},W="onreadystatechange",te,K,H,fe;try{te=d.location}catch(ge){}var ve=function(ge){if(T(Q,ge)){var Oe=Q[ge];delete Q[ge],Oe()}},_=function(ge){return function(){ve(ge)}},X=function(ge){ve(ge.data)},z=function(ge){d.postMessage(V(ge),te.protocol+"//"+te.host)};(!Y||!A)&&(Y=function(Oe){ue(arguments.length,1);var Ue=C(Oe)?Oe:E(Oe),Re=Z(arguments,1);return Q[++G]=function(){x(Ue,void 0,Re)},K(G),G},A=function(Oe){delete Q[Oe]},oe?K=function(ge){J.nextTick(_(ge))}:L&&L.now?K=function(ge){L.now(_(ge))}:k&&!ne?(H=new k,fe=H.port2,H.port1.onmessage=X,K=w(fe.postMessage,fe)):d.addEventListener&&C(d.postMessage)&&!d.importScripts&&te&&te.protocol!=="file:"&&!F(z)?(K=z,d.addEventListener("message",X,!1)):W in ee("script")?K=function(ge){U.appendChild(ee("script"))[W]=function(){U.removeChild(this),ve(ge)}}:K=function(ge){setTimeout(_(ge),0)}),h.exports={set:Y,clear:A}},97739:(h,O,o)=>{var d=o(41941),x=Math.max,w=Math.min;h.exports=function(C,T){var F=d(C);return F<0?x(F+T,0):w(F,T)}},20101:(h,O,o)=>{var d=o(2202),x=o(13209);h.exports=function(w){return d(x(w))}},41941:(h,O,o)=>{var d=o(77679);h.exports=function(x){var w=+x;return w!==w||w===0?0:d(w)}},8445:(h,O,o)=>{var d=o(41941),x=Math.min;h.exports=function(w){return w>0?x(d(w),9007199254740991):0}},71795:(h,O,o)=>{var d=o(13209),x=Object;h.exports=function(w){return x(d(w))}},97888:(h,O,o)=>{var d=o(18922),x=o(35744),w=o(23236),C=o(75037),T=o(380),F=o(18182),U=TypeError,Z=F("toPrimitive");h.exports=function(ee,ue){if(!x(ee)||w(ee))return ee;var ne=C(ee,Z),oe;if(ne){if(ue===void 0&&(ue="default"),oe=d(ne,ee,ue),!x(oe)||w(oe))return oe;throw U("Can't convert object to primitive value")}return ue===void 0&&(ue="number"),T(ee,ue)}},40077:(h,O,o)=>{var d=o(97888),x=o(23236);h.exports=function(w){var C=d(w,"string");return x(C)?C:C+""}},83471:(h,O,o)=>{var d=o(18182),x=d("toStringTag"),w={};w[x]="z",h.exports=String(w)==="[object z]"},44845:(h,O,o)=>{var d=o(4696),x=String;h.exports=function(w){if(d(w)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return x(w)}},79288:h=>{var O=String;h.exports=function(o){try{return O(o)}catch(d){return"Object"}}},42759:(h,O,o)=>{var d=o(84120),x=0,w=Math.random(),C=d(1 .toString);h.exports=function(T){return"Symbol("+(T===void 0?"":T)+")_"+C(++x+w,36)}},58552:(h,O,o)=>{var d=o(76192),x=o(18182),w=o(85546),C=x("iterator");h.exports=!d(function(){var T=new URL("b?a=1&b=2&c=3","http://a"),F=T.searchParams,U="";return T.pathname="c%20d",F.forEach(function(Z,ee){F.delete("b"),U+=ee+Z}),w&&!T.toJSON||!F.sort||T.href!=="http://a/c%20d?a=1&c=3"||F.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!F[C]||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"||U!=="a1c3"||new URL("http://x",void 0).host!=="x"})},50615:(h,O,o)=>{var d=o(36770);h.exports=d&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},69600:(h,O,o)=>{var d=o(50069),x=o(76192);h.exports=d&&x(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},67822:h=>{var O=TypeError;h.exports=function(o,d){if(o<d)throw O("Not enough arguments");return o}},55278:(h,O,o)=>{var d=o(98576),x=o(16447),w=d.WeakMap;h.exports=x(w)&&/native code/.test(String(w))},48332:(h,O,o)=>{var d=o(57545),x=o(64500),w=o(89207),C=o(42760).f;h.exports=function(T){var F=d.Symbol||(d.Symbol={});x(F,T)||C(F,T,{value:w.f(T)})}},89207:(h,O,o)=>{var d=o(18182);O.f=d},18182:(h,O,o)=>{var d=o(98576),x=o(98717),w=o(64500),C=o(42759),T=o(36770),F=o(50615),U=x("wks"),Z=d.Symbol,ee=Z&&Z.for,ue=F?Z:Z&&Z.withoutSetter||C;h.exports=function(ne){if(!w(U,ne)||!(T||typeof U[ne]=="string")){var oe="Symbol."+ne;T&&w(Z,ne)?U[ne]=Z[ne]:F&&ee?U[ne]=ee(oe):U[ne]=ue(oe)}return U[ne]}},93820:(h,O,o)=>{"use strict";var d=o(93085),x=o(8902),w=o(89341),C=o(24469),T=o(97987),F=o(52853),U=o(98711),Z=o(90774),ee=o(14503),ue=o(10273),ne=o(33442),oe=o(36016),Y=o(18182),A=o(50274),J=Y("toStringTag"),L=Error,E=[].push,k=function(Q,W){var te=arguments.length>2?arguments[2]:void 0,K=x(V,this),H;C?H=C(L(),K?w(this):V):(H=K?this:F(V),U(H,J,"Error")),W!==void 0&&U(H,"message",oe(W)),A&&U(H,"stack",ee(H.stack,1)),ue(H,te);var fe=[];return ne(Q,E,{that:fe}),U(H,"errors",fe),H};C?C(k,L):T(k,L,{name:!0});var V=k.prototype=F(L.prototype,{constructor:Z(1,k),message:Z(1,""),name:Z(1,"AggregateError")});d({global:!0,constructor:!0,arity:2},{AggregateError:k})},4242:(h,O,o)=>{o(93820)},59106:(h,O,o)=>{"use strict";var d=o(93085),x=o(76192),w=o(34770),C=o(35744),T=o(71795),F=o(84104),U=o(29425),Z=o(49361),ee=o(71321),ue=o(90242),ne=o(18182),oe=o(14218),Y=ne("isConcatSpreadable"),A=oe>=51||!x(function(){var k=[];return k[Y]=!1,k.concat()[0]!==k}),J=ue("concat"),L=function(k){if(!C(k))return!1;var V=k[Y];return V!==void 0?!!V:w(k)},E=!A||!J;d({target:"Array",proto:!0,arity:1,forced:E},{concat:function(V){var G=T(this),Q=ee(G,0),W=0,te,K,H,fe,ve;for(te=-1,H=arguments.length;te<H;te++)if(ve=te===-1?G:arguments[te],L(ve))for(fe=F(ve),U(W+fe),K=0;K<fe;K++,W++)K in ve&&Z(Q,W,ve[K]);else U(W+1),Z(Q,W++,ve);return Q.length=W,Q}})},73436:(h,O,o)=>{"use strict";var d=o(93085),x=o(50454).filter,w=o(90242),C=w("filter");d({target:"Array",proto:!0,forced:!C},{filter:function(F){return x(this,F,arguments.length>1?arguments[1]:void 0)}})},10880:(h,O,o)=>{"use strict";var d=o(93085),x=o(50454).find,w=o(67423),C="find",T=!0;C in[]&&Array(1)[C](function(){T=!1}),d({target:"Array",proto:!0,forced:T},{find:function(U){return x(this,U,arguments.length>1?arguments[1]:void 0)}}),w(C)},9823:(h,O,o)=>{"use strict";var d=o(93085),x=o(87397);d({target:"Array",proto:!0,forced:[].forEach!=x},{forEach:x})},19173:(h,O,o)=>{var d=o(93085),x=o(20841),w=o(19770),C=!w(function(T){Array.from(T)});d({target:"Array",stat:!0,forced:C},{from:x})},70024:(h,O,o)=>{"use strict";var d=o(93085),x=o(48180).includes,w=o(76192),C=o(67423),T=w(function(){return!Array(1).includes()});d({target:"Array",proto:!0,forced:T},{includes:function(U){return x(this,U,arguments.length>1?arguments[1]:void 0)}}),C("includes")},62276:(h,O,o)=>{"use strict";var d=o(93085),x=o(14914),w=o(48180).indexOf,C=o(10424),T=x([].indexOf),F=!!T&&1/T([1],1,-0)<0,U=C("indexOf");d({target:"Array",proto:!0,forced:F||!U},{indexOf:function(ee){var ue=arguments.length>1?arguments[1]:void 0;return F?T(this,ee,ue)||0:w(this,ee,ue)}})},8118:(h,O,o)=>{var d=o(93085),x=o(34770);d({target:"Array",stat:!0},{isArray:x})},98939:(h,O,o)=>{"use strict";var d=o(20101),x=o(67423),w=o(47771),C=o(73326),T=o(42760).f,F=o(65297),U=o(87271),Z=o(85546),ee=o(50069),ue="Array Iterator",ne=C.set,oe=C.getterFor(ue);h.exports=F(Array,"Array",function(A,J){ne(this,{type:ue,target:d(A),index:0,kind:J})},function(){var A=oe(this),J=A.target,L=A.kind,E=A.index++;return!J||E>=J.length?(A.target=void 0,U(void 0,!0)):L=="keys"?U(E,!1):L=="values"?U(J[E],!1):U([E,J[E]],!1)},"values");var Y=w.Arguments=w.Array;if(x("keys"),x("values"),x("entries"),!Z&&ee&&Y.name!=="values")try{T(Y,"name",{value:"values"})}catch(A){}},63838:(h,O,o)=>{"use strict";var d=o(93085),x=o(50454).map,w=o(90242),C=w("map");d({target:"Array",proto:!0,forced:!C},{map:function(F){return x(this,F,arguments.length>1?arguments[1]:void 0)}})},99523:(h,O,o)=>{"use strict";var d=o(93085),x=o(84120),w=o(34770),C=x([].reverse),T=[1,2];d({target:"Array",proto:!0,forced:String(T)===String(T.reverse())},{reverse:function(){return w(this)&&(this.length=this.length),C(this)}})},65818:(h,O,o)=>{"use strict";var d=o(93085),x=o(34770),w=o(22091),C=o(35744),T=o(97739),F=o(84104),U=o(20101),Z=o(49361),ee=o(18182),ue=o(90242),ne=o(93096),oe=ue("slice"),Y=ee("species"),A=Array,J=Math.max;d({target:"Array",proto:!0,forced:!oe},{slice:function(E,k){var V=U(this),G=F(V),Q=T(E,G),W=T(k===void 0?G:k,G),te,K,H;if(x(V)&&(te=V.constructor,w(te)&&(te===A||x(te.prototype))?te=void 0:C(te)&&(te=te[Y],te===null&&(te=void 0)),te===A||te===void 0))return ne(V,Q,W);for(K=new(te===void 0?A:te)(J(W-Q,0)),H=0;Q<W;Q++,H++)Q in V&&Z(K,H,V[Q]);return K.length=H,K}})},12178:(h,O,o)=>{"use strict";var d=o(93085),x=o(71795),w=o(97739),C=o(41941),T=o(84104),F=o(95072),U=o(29425),Z=o(71321),ee=o(49361),ue=o(29970),ne=o(90242),oe=ne("splice"),Y=Math.max,A=Math.min;d({target:"Array",proto:!0,forced:!oe},{splice:function(L,E){var k=x(this),V=T(k),G=w(L,V),Q=arguments.length,W,te,K,H,fe,ve;for(Q===0?W=te=0:Q===1?(W=0,te=V-G):(W=Q-2,te=A(Y(C(E),0),V-G)),U(V+W-te),K=Z(k,te),H=0;H<te;H++)fe=G+H,fe in k&&ee(K,H,k[fe]);if(K.length=te,W<te){for(H=G;H<V-te;H++)fe=H+te,ve=H+W,fe in k?k[ve]=k[fe]:ue(k,ve);for(H=V;H>V-te+W;H--)ue(k,H-1)}else if(W>te)for(H=V-te;H>G;H--)fe=H+te-1,ve=H+W-1,fe in k?k[ve]=k[fe]:ue(k,ve);for(H=0;H<W;H++)k[H+G]=arguments[H+2];return F(k,V-te+W),K}})},12432:()=>{},25067:(h,O,o)=>{var d=o(93085),x=o(98576);d({global:!0,forced:x.globalThis!==x},{globalThis:x})},59704:(h,O,o)=>{var d=o(93085),x=o(10150),w=o(86298),C=o(18922),T=o(84120),F=o(76192),U=o(34770),Z=o(16447),ee=o(35744),ue=o(23236),ne=o(93096),oe=o(36770),Y=x("JSON","stringify"),A=T(/./.exec),J=T("".charAt),L=T("".charCodeAt),E=T("".replace),k=T(1 .toString),V=/[\uD800-\uDFFF]/g,G=/^[\uD800-\uDBFF]$/,Q=/^[\uDC00-\uDFFF]$/,W=!oe||F(function(){var fe=x("Symbol")();return Y([fe])!="[null]"||Y({a:fe})!="{}"||Y(Object(fe))!="{}"}),te=F(function(){return Y("\uDF06\uD834")!=='"\\udf06\\ud834"'||Y("\uDEAD")!=='"\\udead"'}),K=function(fe,ve){var _=ne(arguments),X=ve;if(!(!ee(ve)&&fe===void 0||ue(fe)))return U(ve)||(ve=function(z,ge){if(Z(X)&&(ge=C(X,this,z,ge)),!ue(ge))return ge}),_[1]=ve,w(Y,null,_)},H=function(fe,ve,_){var X=J(_,ve-1),z=J(_,ve+1);return A(G,fe)&&!A(Q,z)||A(Q,fe)&&!A(G,X)?"\\u"+k(L(fe,0),16):fe};Y&&d({target:"JSON",stat:!0,arity:3,forced:W||te},{stringify:function(ve,_,X){var z=ne(arguments),ge=w(W?K:Y,null,z);return te&&typeof ge=="string"?E(ge,V,H):ge}})},68671:(h,O,o)=>{var d=o(98576),x=o(11284);x(d.JSON,"JSON",!0)},58556:()=>{},93582:(h,O,o)=>{var d=o(93085),x=o(52503);d({target:"Object",stat:!0,arity:2,forced:Object.assign!==x},{assign:x})},73113:(h,O,o)=>{var d=o(93085),x=o(50069),w=o(52853);d({target:"Object",stat:!0,sham:!x},{create:w})},57585:(h,O,o)=>{var d=o(93085),x=o(50069),w=o(11187).f;d({target:"Object",stat:!0,forced:Object.defineProperties!==w,sham:!x},{defineProperties:w})},20297:(h,O,o)=>{var d=o(93085),x=o(50069),w=o(42760).f;d({target:"Object",stat:!0,forced:Object.defineProperty!==w,sham:!x},{defineProperty:w})},27442:(h,O,o)=>{var d=o(93085),x=o(75370).entries;d({target:"Object",stat:!0},{entries:function(C){return x(C)}})},89189:(h,O,o)=>{var d=o(93085),x=o(76192),w=o(20101),C=o(5141).f,T=o(50069),F=x(function(){C(1)}),U=!T||F;d({target:"Object",stat:!0,forced:U,sham:!T},{getOwnPropertyDescriptor:function(ee,ue){return C(w(ee),ue)}})},62509:(h,O,o)=>{var d=o(93085),x=o(50069),w=o(93011),C=o(20101),T=o(5141),F=o(49361);d({target:"Object",stat:!0,sham:!x},{getOwnPropertyDescriptors:function(Z){for(var ee=C(Z),ue=T.f,ne=w(ee),oe={},Y=0,A,J;ne.length>Y;)J=ue(ee,A=ne[Y++]),J!==void 0&&F(oe,A,J);return oe}})},17895:(h,O,o)=>{var d=o(93085),x=o(36770),w=o(76192),C=o(84750),T=o(71795),F=!x||w(function(){C.f(1)});d({target:"Object",stat:!0,forced:F},{getOwnPropertySymbols:function(Z){var ee=C.f;return ee?ee(T(Z)):[]}})},19234:(h,O,o)=>{var d=o(93085),x=o(76192),w=o(71795),C=o(89341),T=o(4635),F=x(function(){C(1)});d({target:"Object",stat:!0,forced:F,sham:!T},{getPrototypeOf:function(Z){return C(w(Z))}})},92647:(h,O,o)=>{var d=o(93085),x=o(71795),w=o(57653),C=o(76192),T=C(function(){w(1)});d({target:"Object",stat:!0,forced:T},{keys:function(U){return w(x(U))}})},13222:(h,O,o)=>{var d=o(93085),x=o(24469);d({target:"Object",stat:!0},{setPrototypeOf:x})},46663:()=>{},97884:(h,O,o)=>{"use strict";var d=o(93085),x=o(18922),w=o(66235),C=o(99438),T=o(70892),F=o(33442);d({target:"Promise",stat:!0},{allSettled:function(Z){var ee=this,ue=C.f(ee),ne=ue.resolve,oe=ue.reject,Y=T(function(){var A=w(ee.resolve),J=[],L=0,E=1;F(Z,function(k){var V=L++,G=!1;E++,x(A,ee,k).then(function(Q){G||(G=!0,J[V]={status:"fulfilled",value:Q},--E||ne(J))},function(Q){G||(G=!0,J[V]={status:"rejected",reason:Q},--E||ne(J))})}),--E||ne(J)});return Y.error&&oe(Y.value),ue.promise}})},89701:(h,O,o)=>{"use strict";var d=o(93085),x=o(18922),w=o(66235),C=o(99438),T=o(70892),F=o(33442),U=o(52775);d({target:"Promise",stat:!0,forced:U},{all:function(ee){var ue=this,ne=C.f(ue),oe=ne.resolve,Y=ne.reject,A=T(function(){var J=w(ue.resolve),L=[],E=0,k=1;F(ee,function(V){var G=E++,Q=!1;k++,x(J,ue,V).then(function(W){Q||(Q=!0,L[G]=W,--k||oe(L))},Y)}),--k||oe(L)});return A.error&&Y(A.value),ne.promise}})},78885:(h,O,o)=>{"use strict";var d=o(93085),x=o(18922),w=o(66235),C=o(10150),T=o(99438),F=o(70892),U=o(33442),Z="No one promise resolved";d({target:"Promise",stat:!0},{any:function(ue){var ne=this,oe=C("AggregateError"),Y=T.f(ne),A=Y.resolve,J=Y.reject,L=F(function(){var E=w(ne.resolve),k=[],V=0,G=1,Q=!1;U(ue,function(W){var te=V++,K=!1;G++,x(E,ne,W).then(function(H){K||Q||(Q=!0,A(H))},function(H){K||Q||(K=!0,k[te]=H,--G||J(new oe(k,Z)))})}),--G||J(new oe(k,Z))});return L.error&&J(L.value),Y.promise}})},34025:(h,O,o)=>{"use strict";var d=o(93085),x=o(85546),w=o(30511).CONSTRUCTOR,C=o(15813),T=o(10150),F=o(16447),U=o(59362),Z=C&&C.prototype;if(d({target:"Promise",proto:!0,forced:w,real:!0},{catch:function(ue){return this.then(void 0,ue)}}),!x&&F(C)){var ee=T("Promise").prototype.catch;Z.catch!==ee&&U(Z,"catch",ee,{unsafe:!0})}},60268:(h,O,o)=>{"use strict";var d=o(93085),x=o(85546),w=o(58189),C=o(98576),T=o(18922),F=o(59362),U=o(24469),Z=o(11284),ee=o(63656),ue=o(66235),ne=o(16447),oe=o(35744),Y=o(46961),A=o(84743),J=o(67160).set,L=o(12950),E=o(63681),k=o(70892),V=o(6412),G=o(73326),Q=o(15813),W=o(30511),te=o(99438),K="Promise",H=W.CONSTRUCTOR,fe=W.REJECTION_EVENT,ve=W.SUBCLASSING,_=G.getterFor(K),X=G.set,z=Q&&Q.prototype,ge=Q,Oe=z,Ue=C.TypeError,Re=C.document,ot=C.process,Xe=te.f,xt=Xe,Pt=!!(Re&&Re.createEvent&&C.dispatchEvent),Ct="unhandledrejection",Le="rejectionhandled",Ce=0,Se=1,De=2,$e=1,tt=2,_e,St,It,Wt,Kt=function(et){var mt;return oe(et)&&ne(mt=et.then)?mt:!1},We=function(et,mt){var Mt=mt.value,Tt=mt.state==Se,Rt=Tt?et.ok:et.fail,dt=et.resolve,gt=et.reject,kt=et.domain,lt,Ve,ce;try{Rt?(Tt||(mt.rejection===tt&&un(mt),mt.rejection=$e),Rt===!0?lt=Mt:(kt&&kt.enter(),lt=Rt(Mt),kt&&(kt.exit(),ce=!0)),lt===et.promise?gt(Ue("Promise-chain cycle")):(Ve=Kt(lt))?T(Ve,lt,dt,gt):dt(lt)):gt(Mt)}catch(xe){kt&&!ce&&kt.exit(),gt(xe)}},Ot=function(et,mt){et.notified||(et.notified=!0,L(function(){for(var Mt=et.reactions,Tt;Tt=Mt.get();)We(Tt,et);et.notified=!1,mt&&!et.rejection&&qr(et)}))},st=function(et,mt,Mt){var Tt,Rt;Pt?(Tt=Re.createEvent("Event"),Tt.promise=mt,Tt.reason=Mt,Tt.initEvent(et,!1,!0),C.dispatchEvent(Tt)):Tt={promise:mt,reason:Mt},!fe&&(Rt=C["on"+et])?Rt(Tt):et===Ct&&E("Unhandled promise rejection",Mt)},qr=function(et){T(J,C,function(){var mt=et.facade,Mt=et.value,Tt=Qe(et),Rt;if(Tt&&(Rt=k(function(){w?ot.emit("unhandledRejection",Mt,mt):st(Ct,mt,Mt)}),et.rejection=w||Qe(et)?tt:$e,Rt.error))throw Rt.value})},Qe=function(et){return et.rejection!==$e&&!et.parent},un=function(et){T(J,C,function(){var mt=et.facade;w?ot.emit("rejectionHandled",mt):st(Le,mt,et.value)})},Ir=function(et,mt,Mt){return function(Tt){et(mt,Tt,Mt)}},Or=function(et,mt,Mt){et.done||(et.done=!0,Mt&&(et=Mt),et.value=mt,et.state=De,Ot(et,!0))},hr=function(et,mt,Mt){if(!et.done){et.done=!0,Mt&&(et=Mt);try{if(et.facade===mt)throw Ue("Promise can't be resolved itself");var Tt=Kt(mt);Tt?L(function(){var Rt={done:!1};try{T(Tt,mt,Ir(hr,Rt,et),Ir(Or,Rt,et))}catch(dt){Or(Rt,dt,et)}}):(et.value=mt,et.state=Se,Ot(et,!1))}catch(Rt){Or({done:!1},Rt,et)}}};if(H&&(ge=function(mt){Y(this,Oe),ue(mt),T(_e,this);var Mt=_(this);try{mt(Ir(hr,Mt),Ir(Or,Mt))}catch(Tt){Or(Mt,Tt)}},Oe=ge.prototype,_e=function(mt){X(this,{type:K,done:!1,notified:!1,parent:!1,reactions:new V,rejection:!1,state:Ce,value:void 0})},_e.prototype=F(Oe,"then",function(mt,Mt){var Tt=_(this),Rt=Xe(A(this,ge));return Tt.parent=!0,Rt.ok=ne(mt)?mt:!0,Rt.fail=ne(Mt)&&Mt,Rt.domain=w?ot.domain:void 0,Tt.state==Ce?Tt.reactions.add(Rt):L(function(){We(Rt,Tt)}),Rt.promise}),St=function(){var et=new _e,mt=_(et);this.promise=et,this.resolve=Ir(hr,mt),this.reject=Ir(Or,mt)},te.f=Xe=function(et){return et===ge||et===It?new St(et):xt(et)},!x&&ne(Q)&&z!==Object.prototype)){Wt=z.then,ve||F(z,"then",function(mt,Mt){var Tt=this;return new ge(function(Rt,dt){T(Wt,Tt,Rt,dt)}).then(mt,Mt)},{unsafe:!0});try{delete z.constructor}catch(et){}U&&U(z,Oe)}d({global:!0,constructor:!0,wrap:!0,forced:H},{Promise:ge}),Z(ge,K,!1,!0),ee(K)},91868:(h,O,o)=>{"use strict";var d=o(93085),x=o(85546),w=o(15813),C=o(76192),T=o(10150),F=o(16447),U=o(84743),Z=o(19126),ee=o(59362),ue=w&&w.prototype,ne=!!w&&C(function(){ue.finally.call({then:function(){}},function(){})});if(d({target:"Promise",proto:!0,real:!0,forced:ne},{finally:function(Y){var A=U(this,T("Promise")),J=F(Y);return this.then(J?function(L){return Z(A,Y()).then(function(){return L})}:Y,J?function(L){return Z(A,Y()).then(function(){throw L})}:Y)}}),!x&&F(w)){var oe=T("Promise").prototype.finally;ue.finally!==oe&&ee(ue,"finally",oe,{unsafe:!0})}},59021:(h,O,o)=>{o(60268),o(89701),o(34025),o(67196),o(85873),o(22931)},67196:(h,O,o)=>{"use strict";var d=o(93085),x=o(18922),w=o(66235),C=o(99438),T=o(70892),F=o(33442),U=o(52775);d({target:"Promise",stat:!0,forced:U},{race:function(ee){var ue=this,ne=C.f(ue),oe=ne.reject,Y=T(function(){var A=w(ue.resolve);F(ee,function(J){x(A,ue,J).then(ne.resolve,oe)})});return Y.error&&oe(Y.value),ne.promise}})},85873:(h,O,o)=>{"use strict";var d=o(93085),x=o(18922),w=o(99438),C=o(30511).CONSTRUCTOR;d({target:"Promise",stat:!0,forced:C},{reject:function(F){var U=w.f(this);return x(U.reject,void 0,F),U.promise}})},22931:(h,O,o)=>{"use strict";var d=o(93085),x=o(10150),w=o(85546),C=o(15813),T=o(30511).CONSTRUCTOR,F=o(19126),U=x("Promise"),Z=w&&!T;d({target:"Promise",stat:!0,forced:w||T},{resolve:function(ue){return F(Z&&this===U?C:this,ue)}})},71367:()=>{},39247:(h,O,o)=>{"use strict";var d=o(93085),x=o(84120),w=o(9703),C=o(13209),T=o(44845),F=o(83519),U=x("".indexOf);d({target:"String",proto:!0,forced:!F("includes")},{includes:function(ee){return!!~U(T(C(this)),T(w(ee)),arguments.length>1?arguments[1]:void 0)}})},5454:(h,O,o)=>{"use strict";var d=o(863).charAt,x=o(44845),w=o(73326),C=o(65297),T=o(87271),F="String Iterator",U=w.set,Z=w.getterFor(F);C(String,"String",function(ee){U(this,{type:F,string:x(ee),index:0})},function(){var ue=Z(this),ne=ue.string,oe=ue.index,Y;return oe>=ne.length?T(void 0,!0):(Y=d(ne,oe),ue.index+=Y.length,T(Y,!1))})},32991:(h,O,o)=>{"use strict";var d=o(93085),x=o(14914),w=o(5141).f,C=o(8445),T=o(44845),F=o(9703),U=o(13209),Z=o(83519),ee=o(85546),ue=x("".startsWith),ne=x("".slice),oe=Math.min,Y=Z("startsWith"),A=!ee&&!Y&&!!function(){var J=w(String.prototype,"startsWith");return J&&!J.writable}();d({target:"String",proto:!0,forced:!A&&!Y},{startsWith:function(L){var E=T(U(this));F(L);var k=C(oe(arguments.length>1?arguments[1]:void 0,E.length)),V=T(L);return ue?ue(E,V,k):ne(E,k,k+V.length)===V}})},19781:(h,O,o)=>{var d=o(48332);d("asyncIterator")},49351:(h,O,o)=>{"use strict";var d=o(93085),x=o(98576),w=o(18922),C=o(84120),T=o(85546),F=o(50069),U=o(36770),Z=o(76192),ee=o(64500),ue=o(8902),ne=o(31138),oe=o(20101),Y=o(40077),A=o(44845),J=o(90774),L=o(52853),E=o(57653),k=o(92092),V=o(24052),G=o(84750),Q=o(5141),W=o(42760),te=o(11187),K=o(56007),H=o(59362),fe=o(98717),ve=o(69766),_=o(14535),X=o(42759),z=o(18182),ge=o(89207),Oe=o(48332),Ue=o(93407),Re=o(11284),ot=o(73326),Xe=o(50454).forEach,xt=ve("hidden"),Pt="Symbol",Ct="prototype",Le=ot.set,Ce=ot.getterFor(Pt),Se=Object[Ct],De=x.Symbol,$e=De&&De[Ct],tt=x.TypeError,_e=x.QObject,St=Q.f,It=W.f,Wt=V.f,Kt=K.f,We=C([].push),Ot=fe("symbols"),st=fe("op-symbols"),qr=fe("wks"),Qe=!_e||!_e[Ct]||!_e[Ct].findChild,un=F&&Z(function(){return L(It({},"a",{get:function(){return It(this,"a",{value:7}).a}})).a!=7})?function(dt,gt,kt){var lt=St(Se,gt);lt&&delete Se[gt],It(dt,gt,kt),lt&&dt!==Se&&It(Se,gt,lt)}:It,Ir=function(dt,gt){var kt=Ot[dt]=L($e);return Le(kt,{type:Pt,tag:dt,description:gt}),F||(kt.description=gt),kt},Or=function(gt,kt,lt){gt===Se&&Or(st,kt,lt),ne(gt);var Ve=Y(kt);return ne(lt),ee(Ot,Ve)?(lt.enumerable?(ee(gt,xt)&&gt[xt][Ve]&&(gt[xt][Ve]=!1),lt=L(lt,{enumerable:J(0,!1)})):(ee(gt,xt)||It(gt,xt,J(1,{})),gt[xt][Ve]=!0),un(gt,Ve,lt)):It(gt,Ve,lt)},hr=function(gt,kt){ne(gt);var lt=oe(kt),Ve=E(lt).concat(Rt(lt));return Xe(Ve,function(ce){(!F||w(mt,lt,ce))&&Or(gt,ce,lt[ce])}),gt},et=function(gt,kt){return kt===void 0?L(gt):hr(L(gt),kt)},mt=function(gt){var kt=Y(gt),lt=w(Kt,this,kt);return this===Se&&ee(Ot,kt)&&!ee(st,kt)?!1:lt||!ee(this,kt)||!ee(Ot,kt)||ee(this,xt)&&this[xt][kt]?lt:!0},Mt=function(gt,kt){var lt=oe(gt),Ve=Y(kt);if(!(lt===Se&&ee(Ot,Ve)&&!ee(st,Ve))){var ce=St(lt,Ve);return ce&&ee(Ot,Ve)&&!(ee(lt,xt)&&lt[xt][Ve])&&(ce.enumerable=!0),ce}},Tt=function(gt){var kt=Wt(oe(gt)),lt=[];return Xe(kt,function(Ve){!ee(Ot,Ve)&&!ee(_,Ve)&&We(lt,Ve)}),lt},Rt=function(dt){var gt=dt===Se,kt=Wt(gt?st:oe(dt)),lt=[];return Xe(kt,function(Ve){ee(Ot,Ve)&&(!gt||ee(Se,Ve))&&We(lt,Ot[Ve])}),lt};U||(De=function(){if(ue($e,this))throw tt("Symbol is not a constructor");var gt=!arguments.length||arguments[0]===void 0?void 0:A(arguments[0]),kt=X(gt),lt=function(Ve){this===Se&&w(lt,st,Ve),ee(this,xt)&&ee(this[xt],kt)&&(this[xt][kt]=!1),un(this,kt,J(1,Ve))};return F&&Qe&&un(Se,kt,{configurable:!0,set:lt}),Ir(kt,gt)},$e=De[Ct],H($e,"toString",function(){return Ce(this).tag}),H(De,"withoutSetter",function(dt){return Ir(X(dt),dt)}),K.f=mt,W.f=Or,te.f=hr,Q.f=Mt,k.f=V.f=Tt,G.f=Rt,ge.f=function(dt){return Ir(z(dt),dt)},F&&(It($e,"description",{configurable:!0,get:function(){return Ce(this).description}}),T||H(Se,"propertyIsEnumerable",mt,{unsafe:!0}))),d({global:!0,constructor:!0,wrap:!0,forced:!U,sham:!U},{Symbol:De}),Xe(E(qr),function(dt){Oe(dt)}),d({target:Pt,stat:!0,forced:!U},{useSetter:function(){Qe=!0},useSimple:function(){Qe=!1}}),d({target:"Object",stat:!0,forced:!U,sham:!F},{create:et,defineProperty:Or,defineProperties:hr,getOwnPropertyDescriptor:Mt}),d({target:"Object",stat:!0,forced:!U},{getOwnPropertyNames:Tt}),Ue(),Re(De,Pt),_[xt]=!0},50492:()=>{},19148:(h,O,o)=>{var d=o(93085),x=o(10150),w=o(64500),C=o(44845),T=o(98717),F=o(20031),U=T("string-to-symbol-registry"),Z=T("symbol-to-string-registry");d({target:"Symbol",stat:!0,forced:!F},{for:function(ee){var ue=C(ee);if(w(U,ue))return U[ue];var ne=x("Symbol")(ue);return U[ue]=ne,Z[ne]=ue,ne}})},66681:(h,O,o)=>{var d=o(48332);d("hasInstance")},29594:(h,O,o)=>{var d=o(48332);d("isConcatSpreadable")},63665:(h,O,o)=>{var d=o(48332);d("iterator")},36187:(h,O,o)=>{o(49351),o(19148),o(15991),o(59704),o(17895)},15991:(h,O,o)=>{var d=o(93085),x=o(64500),w=o(23236),C=o(79288),T=o(98717),F=o(20031),U=T("symbol-to-string-registry");d({target:"Symbol",stat:!0,forced:!F},{keyFor:function(ee){if(!w(ee))throw TypeError(C(ee)+" is not a symbol");if(x(U,ee))return U[ee]}})},11250:(h,O,o)=>{var d=o(48332);d("matchAll")},29017:(h,O,o)=>{var d=o(48332);d("match")},79786:(h,O,o)=>{var d=o(48332);d("replace")},90503:(h,O,o)=>{var d=o(48332);d("search")},16565:(h,O,o)=>{var d=o(48332);d("species")},69322:(h,O,o)=>{var d=o(48332);d("split")},13610:(h,O,o)=>{var d=o(48332),x=o(93407);d("toPrimitive"),x()},36886:(h,O,o)=>{var d=o(10150),x=o(48332),w=o(11284);x("toStringTag"),w(d("Symbol"),"Symbol")},33514:(h,O,o)=>{var d=o(48332);d("unscopables")},10572:(h,O,o)=>{"use strict";var d=o(47636),x=o(98576),w=o(84120),C=o(35090),T=o(32861),F=o(34535),U=o(51057),Z=o(35744),ee=o(73326).enforce,ue=o(76192),ne=o(55278),oe=Object,Y=Array.isArray,A=oe.isExtensible,J=oe.isFrozen,L=oe.isSealed,E=oe.freeze,k=oe.seal,V={},G={},Q=!x.ActiveXObject&&"ActiveXObject"in x,W,te=function(ge){return function(){return ge(this,arguments.length?arguments[0]:void 0)}},K=F("WeakMap",te,U),H=K.prototype,fe=w(H.set),ve=function(){return d&&ue(function(){var ge=E([]);return fe(new K,ge,1),!J(ge)})};if(ne)if(Q){W=U.getConstructor(te,"WeakMap",!0),T.enable();var _=w(H.delete),X=w(H.has),z=w(H.get);C(H,{delete:function(ge){if(Z(ge)&&!A(ge)){var Oe=ee(this);return Oe.frozen||(Oe.frozen=new W),_(this,ge)||Oe.frozen.delete(ge)}return _(this,ge)},has:function(Oe){if(Z(Oe)&&!A(Oe)){var Ue=ee(this);return Ue.frozen||(Ue.frozen=new W),X(this,Oe)||Ue.frozen.has(Oe)}return X(this,Oe)},get:function(Oe){if(Z(Oe)&&!A(Oe)){var Ue=ee(this);return Ue.frozen||(Ue.frozen=new W),X(this,Oe)?z(this,Oe):Ue.frozen.get(Oe)}return z(this,Oe)},set:function(Oe,Ue){if(Z(Oe)&&!A(Oe)){var Re=ee(this);Re.frozen||(Re.frozen=new W),X(this,Oe)?fe(this,Oe,Ue):Re.frozen.set(Oe,Ue)}else fe(this,Oe,Ue);return this}})}else ve()&&C(H,{set:function(Oe,Ue){var Re;return Y(Oe)&&(J(Oe)?Re=V:L(Oe)&&(Re=G)),fe(this,Oe,Ue),Re==V&&E(Oe),Re==G&&k(Oe),this}})},33983:(h,O,o)=>{o(10572)},12752:(h,O,o)=>{o(4242)},5363:(h,O,o)=>{o(25067)},14562:(h,O,o)=>{o(97884)},69355:(h,O,o)=>{o(78885)},25363:(h,O,o)=>{"use strict";var d=o(93085),x=o(99438),w=o(70892);d({target:"Promise",stat:!0,forced:!0},{try:function(C){var T=x.f(this),F=w(C);return(F.error?T.reject:T.resolve)(F.value),T.promise}})},60177:(h,O,o)=>{var d=o(48332);d("asyncDispose")},9031:(h,O,o)=>{var d=o(48332);d("dispose")},96658:(h,O,o)=>{var d=o(48332);d("matcher")},54212:(h,O,o)=>{var d=o(48332);d("metadataKey")},71875:(h,O,o)=>{var d=o(48332);d("metadata")},18658:(h,O,o)=>{var d=o(48332);d("observable")},54592:(h,O,o)=>{var d=o(48332);d("patternMatch")},26680:(h,O,o)=>{var d=o(48332);d("replaceAll")},80162:(h,O,o)=>{o(98939);var d=o(17365),x=o(98576),w=o(4696),C=o(98711),T=o(47771),F=o(18182),U=F("toStringTag");for(var Z in d){var ee=x[Z],ue=ee&&ee.prototype;ue&&w(ue)!==U&&C(ue,U,Z),T[Z]=T.Array}},67054:(h,O,o)=>{"use strict";o(98939);var d=o(93085),x=o(98576),w=o(18922),C=o(84120),T=o(50069),F=o(58552),U=o(59362),Z=o(35090),ee=o(11284),ue=o(25695),ne=o(73326),oe=o(46961),Y=o(16447),A=o(64500),J=o(8043),L=o(4696),E=o(31138),k=o(35744),V=o(44845),G=o(52853),Q=o(90774),W=o(61669),te=o(78703),K=o(67822),H=o(18182),fe=o(6614),ve=H("iterator"),_="URLSearchParams",X=_+"Iterator",z=ne.set,ge=ne.getterFor(_),Oe=ne.getterFor(X),Ue=Object.getOwnPropertyDescriptor,Re=function(Ve){if(!T)return x[Ve];var ce=Ue(x,Ve);return ce&&ce.value},ot=Re("fetch"),Xe=Re("Request"),xt=Re("Headers"),Pt=Xe&&Xe.prototype,Ct=xt&&xt.prototype,Le=x.RegExp,Ce=x.TypeError,Se=x.decodeURIComponent,De=x.encodeURIComponent,$e=C("".charAt),tt=C([].join),_e=C([].push),St=C("".replace),It=C([].shift),Wt=C([].splice),Kt=C("".split),We=C("".slice),Ot=/\+/g,st=Array(4),qr=function(Ve){return st[Ve-1]||(st[Ve-1]=Le("((?:%[\\da-f]{2}){"+Ve+"})","gi"))},Qe=function(Ve){try{return Se(Ve)}catch(ce){return Ve}},un=function(Ve){var ce=St(Ve,Ot," "),xe=4;try{return Se(ce)}catch(Be){for(;xe;)ce=St(ce,qr(xe--),Qe);return ce}},Ir=/[!'()~]|%20/g,Or={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},hr=function(Ve){return Or[Ve]},et=function(Ve){return St(De(Ve),Ir,hr)},mt=ue(function(ce,xe){z(this,{type:X,iterator:W(ge(ce).entries),kind:xe})},"Iterator",function(){var ce=Oe(this),xe=ce.kind,Be=ce.iterator.next(),Ke=Be.value;return Be.done||(Be.value=xe==="keys"?Ke.key:xe==="values"?Ke.value:[Ke.key,Ke.value]),Be},!0),Mt=function(Ve){this.entries=[],this.url=null,Ve!==void 0&&(k(Ve)?this.parseObject(Ve):this.parseQuery(typeof Ve=="string"?$e(Ve,0)==="?"?We(Ve,1):Ve:V(Ve)))};Mt.prototype={type:_,bindURL:function(Ve){this.url=Ve,this.update()},parseObject:function(Ve){var ce=te(Ve),xe,Be,Ke,ut,nt,_t,lr;if(ce)for(xe=W(Ve,ce),Be=xe.next;!(Ke=w(Be,xe)).done;){if(ut=W(E(Ke.value)),nt=ut.next,(_t=w(nt,ut)).done||(lr=w(nt,ut)).done||!w(nt,ut).done)throw Ce("Expected sequence with length 2");_e(this.entries,{key:V(_t.value),value:V(lr.value)})}else for(var At in Ve)A(Ve,At)&&_e(this.entries,{key:At,value:V(Ve[At])})},parseQuery:function(Ve){if(Ve)for(var ce=Kt(Ve,"&"),xe=0,Be,Ke;xe<ce.length;)Be=ce[xe++],Be.length&&(Ke=Kt(Be,"="),_e(this.entries,{key:un(It(Ke)),value:un(tt(Ke,"="))}))},serialize:function(){for(var Ve=this.entries,ce=[],xe=0,Be;xe<Ve.length;)Be=Ve[xe++],_e(ce,et(Be.key)+"="+et(Be.value));return tt(ce,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Tt=function(){oe(this,Rt);var ce=arguments.length>0?arguments[0]:void 0;z(this,new Mt(ce))},Rt=Tt.prototype;if(Z(Rt,{append:function(ce,xe){K(arguments.length,2);var Be=ge(this);_e(Be.entries,{key:V(ce),value:V(xe)}),Be.updateURL()},delete:function(Ve){K(arguments.length,1);for(var ce=ge(this),xe=ce.entries,Be=V(Ve),Ke=0;Ke<xe.length;)xe[Ke].key===Be?Wt(xe,Ke,1):Ke++;ce.updateURL()},get:function(ce){K(arguments.length,1);for(var xe=ge(this).entries,Be=V(ce),Ke=0;Ke<xe.length;Ke++)if(xe[Ke].key===Be)return xe[Ke].value;return null},getAll:function(ce){K(arguments.length,1);for(var xe=ge(this).entries,Be=V(ce),Ke=[],ut=0;ut<xe.length;ut++)xe[ut].key===Be&&_e(Ke,xe[ut].value);return Ke},has:function(ce){K(arguments.length,1);for(var xe=ge(this).entries,Be=V(ce),Ke=0;Ke<xe.length;)if(xe[Ke++].key===Be)return!0;return!1},set:function(ce,xe){K(arguments.length,1);for(var Be=ge(this),Ke=Be.entries,ut=!1,nt=V(ce),_t=V(xe),lr=0,At;lr<Ke.length;lr++)At=Ke[lr],At.key===nt&&(ut?Wt(Ke,lr--,1):(ut=!0,At.value=_t));ut||_e(Ke,{key:nt,value:_t}),Be.updateURL()},sort:function(){var ce=ge(this);fe(ce.entries,function(xe,Be){return xe.key>Be.key?1:-1}),ce.updateURL()},forEach:function(ce){for(var xe=ge(this).entries,Be=J(ce,arguments.length>1?arguments[1]:void 0),Ke=0,ut;Ke<xe.length;)ut=xe[Ke++],Be(ut.value,ut.key,this)},keys:function(){return new mt(this,"keys")},values:function(){return new mt(this,"values")},entries:function(){return new mt(this,"entries")}},{enumerable:!0}),U(Rt,ve,Rt.entries,{name:"entries"}),U(Rt,"toString",function(){return ge(this).serialize()},{enumerable:!0}),ee(Tt,_),d({global:!0,constructor:!0,forced:!F},{URLSearchParams:Tt}),!F&&Y(xt)){var dt=C(Ct.has),gt=C(Ct.set),kt=function(Ve){if(k(Ve)){var ce=Ve.body,xe;if(L(ce)===_)return xe=Ve.headers?new xt(Ve.headers):new xt,dt(xe,"content-type")||gt(xe,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),G(Ve,{body:Q(0,V(ce)),headers:Q(0,xe)})}return Ve};if(Y(ot)&&d({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(ce){return ot(ce,arguments.length>1?kt(arguments[1]):{})}}),Y(Xe)){var lt=function(ce){return oe(this,Pt),new Xe(ce,arguments.length>1?kt(arguments[1]):{})};Pt.constructor=lt,lt.prototype=Pt,d({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:lt})}}h.exports={URLSearchParams:Tt,getState:ge}},69336:(h,O,o)=>{o(67054)},53822:(h,O,o)=>{var d=o(52221);h.exports=d},21434:(h,O,o)=>{var d=o(75078);h.exports=d},51629:(h,O,o)=>{var d=o(77237);h.exports=d},46899:(h,O,o)=>{var d=o(60098);h.exports=d},27710:(h,O,o)=>{var d=o(65739);o(80162),h.exports=d},31585:(h,O,o)=>{var d=o(74030);h.exports=d},44877:(h,O,o)=>{var d=o(61563);h.exports=d},10140:(h,O,o)=>{o(80162);var d=o(4696),x=o(64500),w=o(8902),C=o(51629),T=Array.prototype,F={DOMTokenList:!0,NodeList:!0};h.exports=function(U){var Z=U.entries;return U===T||w(T,U)&&Z===T.entries||x(F,d(U))?C:Z}},55603:(h,O,o)=>{var d=o(53669);h.exports=d},76237:(h,O,o)=>{var d=o(37506);h.exports=d},31206:(h,O,o)=>{o(80162);var d=o(4696),x=o(64500),w=o(8902),C=o(46899),T=Array.prototype,F={DOMTokenList:!0,NodeList:!0};h.exports=function(U){var Z=U.forEach;return U===T||w(T,U)&&Z===T.forEach||x(F,d(U))?C:Z}},56515:(h,O,o)=>{var d=o(13173);h.exports=d},26174:(h,O,o)=>{var d=o(92604);h.exports=d},20057:(h,O,o)=>{var d=o(263);h.exports=d},87511:(h,O,o)=>{var d=o(80432);h.exports=d},24741:(h,O,o)=>{var d=o(77663);h.exports=d},8368:(h,O,o)=>{var d=o(45063);h.exports=d},342:(h,O,o)=>{var d=o(7769);h.exports=d},392:(h,O,o)=>{var d=o(96056);h.exports=d},28478:(h,O,o)=>{var d=o(99936);h.exports=d},4963:(h,O,o)=>{var d=o(23213);h.exports=d},21025:(h,O,o)=>{var d=o(38724);h.exports=d},27820:(h,O,o)=>{var d=o(63512);h.exports=d},58202:(h,O,o)=>{var d=o(2335);h.exports=d},74194:(h,O,o)=>{var d=o(60632);h.exports=d},32854:(h,O,o)=>{var d=o(81056);h.exports=d},60002:(h,O,o)=>{var d=o(12921);h.exports=d},28980:(h,O,o)=>{var d=o(8168);h.exports=d},45636:(h,O,o)=>{var d=o(38651);h.exports=d},66672:(h,O,o)=>{var d=o(33083);h.exports=d},46618:(h,O,o)=>{var d=o(93154);o(80162),h.exports=d},42285:(h,O,o)=>{var d=o(85008);o(80162),h.exports=d},58535:(h,O,o)=>{var d=o(994);o(80162),h.exports=d},16042:(h,O,o)=>{var d=o(30290);h.exports=d},72946:(h,O,o)=>{var d=o(32004);o(80162),h.exports=d},11235:(h,O,o)=>{var d=o(31293);o(80162),h.exports=d},32004:(h,O,o)=>{o(69336);var d=o(57545);h.exports=d.URLSearchParams},43616:function(){(function(h){var O=function(o){var d={searchParams:"URLSearchParams"in h,iterable:"Symbol"in h&&"iterator"in Symbol,blob:"FileReader"in h&&"Blob"in h&&function(){try{return new Blob,!0}catch(K){return!1}}(),formData:"FormData"in h,arrayBuffer:"ArrayBuffer"in h};function x(K){return K&&DataView.prototype.isPrototypeOf(K)}if(d.arrayBuffer)var w=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],C=ArrayBuffer.isView||function(K){return K&&w.indexOf(Object.prototype.toString.call(K))>-1};function T(K){if(typeof K!="string"&&(K=String(K)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(K))throw new TypeError("Invalid character in header field name");return K.toLowerCase()}function F(K){return typeof K!="string"&&(K=String(K)),K}function U(K){var H={next:function(){var fe=K.shift();return{done:fe===void 0,value:fe}}};return d.iterable&&(H[Symbol.iterator]=function(){return H}),H}function Z(K){this.map={},K instanceof Z?K.forEach(function(H,fe){this.append(fe,H)},this):Array.isArray(K)?K.forEach(function(H){this.append(H[0],H[1])},this):K&&Object.getOwnPropertyNames(K).forEach(function(H){this.append(H,K[H])},this)}Z.prototype.append=function(K,H){K=T(K),H=F(H);var fe=this.map[K];this.map[K]=fe?fe+", "+H:H},Z.prototype.delete=function(K){delete this.map[T(K)]},Z.prototype.get=function(K){return K=T(K),this.has(K)?this.map[K]:null},Z.prototype.has=function(K){return this.map.hasOwnProperty(T(K))},Z.prototype.set=function(K,H){this.map[T(K)]=F(H)},Z.prototype.forEach=function(K,H){for(var fe in this.map)this.map.hasOwnProperty(fe)&&K.call(H,this.map[fe],fe,this)},Z.prototype.keys=function(){var K=[];return this.forEach(function(H,fe){K.push(fe)}),U(K)},Z.prototype.values=function(){var K=[];return this.forEach(function(H){K.push(H)}),U(K)},Z.prototype.entries=function(){var K=[];return this.forEach(function(H,fe){K.push([fe,H])}),U(K)},d.iterable&&(Z.prototype[Symbol.iterator]=Z.prototype.entries);function ee(K){if(K.bodyUsed)return Promise.reject(new TypeError("Already read"));K.bodyUsed=!0}function ue(K){return new Promise(function(H,fe){K.onload=function(){H(K.result)},K.onerror=function(){fe(K.error)}})}function ne(K){var H=new FileReader,fe=ue(H);return H.readAsArrayBuffer(K),fe}function oe(K){var H=new FileReader,fe=ue(H);return H.readAsText(K),fe}function Y(K){for(var H=new Uint8Array(K),fe=new Array(H.length),ve=0;ve<H.length;ve++)fe[ve]=String.fromCharCode(H[ve]);return fe.join("")}function A(K){if(K.slice)return K.slice(0);var H=new Uint8Array(K.byteLength);return H.set(new Uint8Array(K)),H.buffer}function J(){return this.bodyUsed=!1,this._initBody=function(K){this._bodyInit=K,K?typeof K=="string"?this._bodyText=K:d.blob&&Blob.prototype.isPrototypeOf(K)?this._bodyBlob=K:d.formData&&FormData.prototype.isPrototypeOf(K)?this._bodyFormData=K:d.searchParams&&URLSearchParams.prototype.isPrototypeOf(K)?this._bodyText=K.toString():d.arrayBuffer&&d.blob&&x(K)?(this._bodyArrayBuffer=A(K.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):d.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(K)||C(K))?this._bodyArrayBuffer=A(K):this._bodyText=K=Object.prototype.toString.call(K):this._bodyText="",this.headers.get("content-type")||(typeof K=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):d.searchParams&&URLSearchParams.prototype.isPrototypeOf(K)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},d.blob&&(this.blob=function(){var K=ee(this);if(K)return K;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?ee(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(ne)}),this.text=function(){var K=ee(this);if(K)return K;if(this._bodyBlob)return oe(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(Y(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},d.formData&&(this.formData=function(){return this.text().then(V)}),this.json=function(){return this.text().then(JSON.parse)},this}var L=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function E(K){var H=K.toUpperCase();return L.indexOf(H)>-1?H:K}function k(K,H){H=H||{};var fe=H.body;if(K instanceof k){if(K.bodyUsed)throw new TypeError("Already read");this.url=K.url,this.credentials=K.credentials,H.headers||(this.headers=new Z(K.headers)),this.method=K.method,this.mode=K.mode,this.signal=K.signal,!fe&&K._bodyInit!=null&&(fe=K._bodyInit,K.bodyUsed=!0)}else this.url=String(K);if(this.credentials=H.credentials||this.credentials||"same-origin",(H.headers||!this.headers)&&(this.headers=new Z(H.headers)),this.method=E(H.method||this.method||"GET"),this.mode=H.mode||this.mode||null,this.signal=H.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&fe)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(fe)}k.prototype.clone=function(){return new k(this,{body:this._bodyInit})};function V(K){var H=new FormData;return K.trim().split("&").forEach(function(fe){if(fe){var ve=fe.split("="),_=ve.shift().replace(/\+/g," "),X=ve.join("=").replace(/\+/g," ");H.append(decodeURIComponent(_),decodeURIComponent(X))}}),H}function G(K){var H=new Z,fe=K.replace(/\r?\n[\t ]+/g," ");return fe.split(/\r?\n/).forEach(function(ve){var _=ve.split(":"),X=_.shift().trim();if(X){var z=_.join(":").trim();H.append(X,z)}}),H}J.call(k.prototype);function Q(K,H){H||(H={}),this.type="default",this.status=H.status===void 0?200:H.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in H?H.statusText:"OK",this.headers=new Z(H.headers),this.url=H.url||"",this._initBody(K)}J.call(Q.prototype),Q.prototype.clone=function(){return new Q(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Z(this.headers),url:this.url})},Q.error=function(){var K=new Q(null,{status:0,statusText:""});return K.type="error",K};var W=[301,302,303,307,308];Q.redirect=function(K,H){if(W.indexOf(H)===-1)throw new RangeError("Invalid status code");return new Q(null,{status:H,headers:{location:K}})},o.DOMException=h.DOMException;try{new o.DOMException}catch(K){o.DOMException=function(H,fe){this.message=H,this.name=fe;var ve=Error(H);this.stack=ve.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function te(K,H){return new Promise(function(fe,ve){var _=new k(K,H);if(_.signal&&_.signal.aborted)return ve(new o.DOMException("Aborted","AbortError"));var X=new XMLHttpRequest;function z(){X.abort()}X.onload=function(){var ge={status:X.status,statusText:X.statusText,headers:G(X.getAllResponseHeaders()||"")};ge.url="responseURL"in X?X.responseURL:ge.headers.get("X-Request-URL");var Oe="response"in X?X.response:X.responseText;fe(new Q(Oe,ge))},X.onerror=function(){ve(new TypeError("Network request failed"))},X.ontimeout=function(){ve(new TypeError("Network request failed"))},X.onabort=function(){ve(new o.DOMException("Aborted","AbortError"))},X.open(_.method,_.url,!0),_.credentials==="include"?X.withCredentials=!0:_.credentials==="omit"&&(X.withCredentials=!1),"responseType"in X&&d.blob&&(X.responseType="blob"),_.headers.forEach(function(ge,Oe){X.setRequestHeader(Oe,ge)}),_.signal&&(_.signal.addEventListener("abort",z),X.onreadystatechange=function(){X.readyState===4&&_.signal.removeEventListener("abort",z)}),X.send(typeof _._bodyInit=="undefined"?null:_._bodyInit)})}return te.polyfill=!0,h.fetch||(h.fetch=te,h.Headers=Z,h.Request=k,h.Response=Q),o.Headers=Z,o.Request=k,o.Response=Q,o.fetch=te,Object.defineProperty(o,"__esModule",{value:!0}),o}({})})(typeof self!="undefined"?self:this)},96279:function(h,O){var o=typeof self!="undefined"?self:this,d=function(){function w(){this.fetch=!1,this.DOMException=o.DOMException}return w.prototype=o,new w}();(function(w){var C=function(T){var F={searchParams:"URLSearchParams"in w,iterable:"Symbol"in w&&"iterator"in Symbol,blob:"FileReader"in w&&"Blob"in w&&function(){try{return new Blob,!0}catch(X){return!1}}(),formData:"FormData"in w,arrayBuffer:"ArrayBuffer"in w};function U(X){return X&&DataView.prototype.isPrototypeOf(X)}if(F.arrayBuffer)var Z=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],ee=ArrayBuffer.isView||function(X){return X&&Z.indexOf(Object.prototype.toString.call(X))>-1};function ue(X){if(typeof X!="string"&&(X=String(X)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(X))throw new TypeError("Invalid character in header field name");return X.toLowerCase()}function ne(X){return typeof X!="string"&&(X=String(X)),X}function oe(X){var z={next:function(){var ge=X.shift();return{done:ge===void 0,value:ge}}};return F.iterable&&(z[Symbol.iterator]=function(){return z}),z}function Y(X){this.map={},X instanceof Y?X.forEach(function(z,ge){this.append(ge,z)},this):Array.isArray(X)?X.forEach(function(z){this.append(z[0],z[1])},this):X&&Object.getOwnPropertyNames(X).forEach(function(z){this.append(z,X[z])},this)}Y.prototype.append=function(X,z){X=ue(X),z=ne(z);var ge=this.map[X];this.map[X]=ge?ge+", "+z:z},Y.prototype.delete=function(X){delete this.map[ue(X)]},Y.prototype.get=function(X){return X=ue(X),this.has(X)?this.map[X]:null},Y.prototype.has=function(X){return this.map.hasOwnProperty(ue(X))},Y.prototype.set=function(X,z){this.map[ue(X)]=ne(z)},Y.prototype.forEach=function(X,z){for(var ge in this.map)this.map.hasOwnProperty(ge)&&X.call(z,this.map[ge],ge,this)},Y.prototype.keys=function(){var X=[];return this.forEach(function(z,ge){X.push(ge)}),oe(X)},Y.prototype.values=function(){var X=[];return this.forEach(function(z){X.push(z)}),oe(X)},Y.prototype.entries=function(){var X=[];return this.forEach(function(z,ge){X.push([ge,z])}),oe(X)},F.iterable&&(Y.prototype[Symbol.iterator]=Y.prototype.entries);function A(X){if(X.bodyUsed)return Promise.reject(new TypeError("Already read"));X.bodyUsed=!0}function J(X){return new Promise(function(z,ge){X.onload=function(){z(X.result)},X.onerror=function(){ge(X.error)}})}function L(X){var z=new FileReader,ge=J(z);return z.readAsArrayBuffer(X),ge}function E(X){var z=new FileReader,ge=J(z);return z.readAsText(X),ge}function k(X){for(var z=new Uint8Array(X),ge=new Array(z.length),Oe=0;Oe<z.length;Oe++)ge[Oe]=String.fromCharCode(z[Oe]);return ge.join("")}function V(X){if(X.slice)return X.slice(0);var z=new Uint8Array(X.byteLength);return z.set(new Uint8Array(X)),z.buffer}function G(){return this.bodyUsed=!1,this._initBody=function(X){this._bodyInit=X,X?typeof X=="string"?this._bodyText=X:F.blob&&Blob.prototype.isPrototypeOf(X)?this._bodyBlob=X:F.formData&&FormData.prototype.isPrototypeOf(X)?this._bodyFormData=X:F.searchParams&&URLSearchParams.prototype.isPrototypeOf(X)?this._bodyText=X.toString():F.arrayBuffer&&F.blob&&U(X)?(this._bodyArrayBuffer=V(X.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):F.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(X)||ee(X))?this._bodyArrayBuffer=V(X):this._bodyText=X=Object.prototype.toString.call(X):this._bodyText="",this.headers.get("content-type")||(typeof X=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):F.searchParams&&URLSearchParams.prototype.isPrototypeOf(X)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},F.blob&&(this.blob=function(){var X=A(this);if(X)return X;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?A(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(L)}),this.text=function(){var X=A(this);if(X)return X;if(this._bodyBlob)return E(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(k(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},F.formData&&(this.formData=function(){return this.text().then(K)}),this.json=function(){return this.text().then(JSON.parse)},this}var Q=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function W(X){var z=X.toUpperCase();return Q.indexOf(z)>-1?z:X}function te(X,z){z=z||{};var ge=z.body;if(X instanceof te){if(X.bodyUsed)throw new TypeError("Already read");this.url=X.url,this.credentials=X.credentials,z.headers||(this.headers=new Y(X.headers)),this.method=X.method,this.mode=X.mode,this.signal=X.signal,!ge&&X._bodyInit!=null&&(ge=X._bodyInit,X.bodyUsed=!0)}else this.url=String(X);if(this.credentials=z.credentials||this.credentials||"same-origin",(z.headers||!this.headers)&&(this.headers=new Y(z.headers)),this.method=W(z.method||this.method||"GET"),this.mode=z.mode||this.mode||null,this.signal=z.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&ge)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(ge)}te.prototype.clone=function(){return new te(this,{body:this._bodyInit})};function K(X){var z=new FormData;return X.trim().split("&").forEach(function(ge){if(ge){var Oe=ge.split("="),Ue=Oe.shift().replace(/\+/g," "),Re=Oe.join("=").replace(/\+/g," ");z.append(decodeURIComponent(Ue),decodeURIComponent(Re))}}),z}function H(X){var z=new Y,ge=X.replace(/\r?\n[\t ]+/g," ");return ge.split(/\r?\n/).forEach(function(Oe){var Ue=Oe.split(":"),Re=Ue.shift().trim();if(Re){var ot=Ue.join(":").trim();z.append(Re,ot)}}),z}G.call(te.prototype);function fe(X,z){z||(z={}),this.type="default",this.status=z.status===void 0?200:z.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in z?z.statusText:"OK",this.headers=new Y(z.headers),this.url=z.url||"",this._initBody(X)}G.call(fe.prototype),fe.prototype.clone=function(){return new fe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Y(this.headers),url:this.url})},fe.error=function(){var X=new fe(null,{status:0,statusText:""});return X.type="error",X};var ve=[301,302,303,307,308];fe.redirect=function(X,z){if(ve.indexOf(z)===-1)throw new RangeError("Invalid status code");return new fe(null,{status:z,headers:{location:X}})},T.DOMException=w.DOMException;try{new T.DOMException}catch(X){T.DOMException=function(z,ge){this.message=z,this.name=ge;var Oe=Error(z);this.stack=Oe.stack},T.DOMException.prototype=Object.create(Error.prototype),T.DOMException.prototype.constructor=T.DOMException}function _(X,z){return new Promise(function(ge,Oe){var Ue=new te(X,z);if(Ue.signal&&Ue.signal.aborted)return Oe(new T.DOMException("Aborted","AbortError"));var Re=new XMLHttpRequest;function ot(){Re.abort()}Re.onload=function(){var Xe={status:Re.status,statusText:Re.statusText,headers:H(Re.getAllResponseHeaders()||"")};Xe.url="responseURL"in Re?Re.responseURL:Xe.headers.get("X-Request-URL");var xt="response"in Re?Re.response:Re.responseText;ge(new fe(xt,Xe))},Re.onerror=function(){Oe(new TypeError("Network request failed"))},Re.ontimeout=function(){Oe(new TypeError("Network request failed"))},Re.onabort=function(){Oe(new T.DOMException("Aborted","AbortError"))},Re.open(Ue.method,Ue.url,!0),Ue.credentials==="include"?Re.withCredentials=!0:Ue.credentials==="omit"&&(Re.withCredentials=!1),"responseType"in Re&&F.blob&&(Re.responseType="blob"),Ue.headers.forEach(function(Xe,xt){Re.setRequestHeader(xt,Xe)}),Ue.signal&&(Ue.signal.addEventListener("abort",ot),Re.onreadystatechange=function(){Re.readyState===4&&Ue.signal.removeEventListener("abort",ot)}),Re.send(typeof Ue._bodyInit=="undefined"?null:Ue._bodyInit)})}return _.polyfill=!0,w.fetch||(w.fetch=_,w.Headers=Y,w.Request=te,w.Response=fe),T.Headers=Y,T.Request=te,T.Response=fe,T.fetch=_,Object.defineProperty(T,"__esModule",{value:!0}),T}({})})(d),d.fetch.ponyfill=!0,delete d.fetch.polyfill;var x=d;O=x.fetch,O.default=x.fetch,O.fetch=x.fetch,O.Headers=x.Headers,O.Request=x.Request,O.Response=x.Response,h.exports=O},45957:(h,O,o)=>{"use strict";o.r(O),o.d(O,{default:()=>F});var d=o(39601),x=o.n(d),w=o(82609),C=o.n(w),T=C()(x());T.push([h.id,`.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px rgba(0,0,0,.2);-moz-box-shadow:2px 3px 5px rgba(0,0,0,.2);box-shadow:2px 3px 5px #0003;border-radius:3px;border:1px solid silver;background:white;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto;box-sizing:border-box}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:#fff}
42
42
  `,""]);const F=T},73792:(h,O,o)=>{"use strict";o.r(O),o.d(O,{default:()=>k});var d=o(39601),x=o.n(d),w=o(82609),C=o.n(w),T=o(78991),F=o.n(T),U=new URL(o(17735),o.b),Z=new URL(o(56089),o.b),ee=new URL(o(46050),o.b),ue=new URL(o(71090),o.b),ne=new URL(o(96192),o.b),oe=C()(x()),Y=F()(U),A=F()(Z),J=F()(ee),L=F()(ue),E=F()(ne);oe.push([h.id,".CodeMirror-lint-markers{width:16px}.CodeMirror-lint-tooltip{background-color:#ffd;border:1px solid black;border-radius:4px;color:#000;font-family:monospace;font-size:10pt;overflow:hidden;padding:2px 5px;position:fixed;white-space:pre;white-space:pre-wrap;z-index:100;max-width:600px;opacity:0;transition:opacity .4s;-moz-transition:opacity .4s;-webkit-transition:opacity .4s;-o-transition:opacity .4s;-ms-transition:opacity .4s}.CodeMirror-lint-mark{background-position:left bottom;background-repeat:repeat-x}.CodeMirror-lint-mark-warning{background-image:url("+Y+")}.CodeMirror-lint-mark-error{background-image:url("+A+")}.CodeMirror-lint-marker{background-position:center center;background-repeat:no-repeat;cursor:pointer;display:inline-block;height:16px;width:16px;vertical-align:middle;position:relative}.CodeMirror-lint-message{padding-left:18px;background-position:top left;background-repeat:no-repeat}.CodeMirror-lint-marker-warning,.CodeMirror-lint-message-warning{background-image:url("+J+")}.CodeMirror-lint-marker-error,.CodeMirror-lint-message-error{background-image:url("+L+")}.CodeMirror-lint-marker-multiple{background-image:url("+E+`);background-repeat:no-repeat;background-position:right bottom;width:100%;height:100%}.CodeMirror-lint-line-error{background-color:#b74c5114}.CodeMirror-lint-line-warning{background-color:#ffd3001a}
43
43
  `,""]);const k=oe},59062:(h,O,o)=>{"use strict";o.r(O),o.d(O,{default:()=>F});var d=o(39601),x=o.n(d),w=o(82609),C=o.n(w),T=C()(x());T.push([h.id,`.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;inset:-50px 0 0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error,.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative;z-index:0}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;inset:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors,.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}
44
44
  `,""]);const F=T},32024:(h,O,o)=>{"use strict";o.r(O),o.d(O,{default:()=>F});var d=o(39601),x=o.n(d),w=o(82609),C=o.n(w),T=C()(x());T.push([h.id,`.cm-s-material.CodeMirror{background-color:#263238;color:#eff}.cm-s-material .CodeMirror-gutters{background:#263238;color:#546e7a;border:none}.cm-s-material .CodeMirror-guttermarker,.cm-s-material .CodeMirror-guttermarker-subtle,.cm-s-material .CodeMirror-linenumber{color:#546e7a}.cm-s-material .CodeMirror-cursor{border-left:1px solid #FFCC00}.cm-s-material.cm-fat-cursor .CodeMirror-cursor,.cm-s-material .cm-animate-fat-cursor{background-color:#5d6d5c80!important}.cm-s-material div.CodeMirror-selected,.cm-s-material.CodeMirror-focused div.CodeMirror-selected{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::selection,.cm-s-material .CodeMirror-line>span::selection,.cm-s-material .CodeMirror-line>span>span::selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::-moz-selection,.cm-s-material .CodeMirror-line>span::-moz-selection,.cm-s-material .CodeMirror-line>span>span::-moz-selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-activeline-background{background:rgba(0,0,0,.5)}.cm-s-material .cm-keyword{color:#c792ea}.cm-s-material .cm-operator{color:#89ddff}.cm-s-material .cm-variable-2{color:#eff}.cm-s-material .cm-variable-3,.cm-s-material .cm-type{color:#f07178}.cm-s-material .cm-builtin{color:#ffcb6b}.cm-s-material .cm-atom{color:#f78c6c}.cm-s-material .cm-number{color:#ff5370}.cm-s-material .cm-def{color:#82aaff}.cm-s-material .cm-string{color:#c3e88d}.cm-s-material .cm-string-2{color:#f07178}.cm-s-material .cm-comment{color:#546e7a}.cm-s-material .cm-variable{color:#f07178}.cm-s-material .cm-tag{color:#ff5370}.cm-s-material .cm-meta{color:#ffcb6b}.cm-s-material .cm-attribute,.cm-s-material .cm-property{color:#c792ea}.cm-s-material .cm-qualifier,.cm-s-material .cm-variable-3,.cm-s-material .cm-type{color:#decb6b}.cm-s-material .cm-error{color:#fff;background-color:#ff5370}.cm-s-material .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}
45
45
  `,""]);const F=T},78991:h=>{"use strict";h.exports=function(O,o){return o||(o={}),O&&(O=String(O.__esModule?O.default:O),/^['"].*['"]$/.test(O)&&(O=O.slice(1,-1)),o.hash&&(O+=o.hash),/["'() \t\n]|(%20)/.test(O)||o.needQuotes?'"'.concat(O.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):O)}},77668:(h,O,o)=>{"use strict";o.r(O),o.d(O,{Console:()=>Hx});var d={};o.r(d),o.d(d,{JsonPatchError:()=>Er,_areEquals:()=>$i,applyOperation:()=>wa,applyPatch:()=>Gi,applyReducer:()=>If,deepClone:()=>Ad,getValueByPointer:()=>_a,validate:()=>ks,validator:()=>Ci});var x={};o.r(x),o.d(x,{compare:()=>eo,generate:()=>Ms,observe:()=>Rf,unobserve:()=>Rs});var w={};o.r(w),o.d(w,{cookie:()=>l,header:()=>u,path:()=>Qs,query:()=>t});var C=o(25575),T=o(24463),F=o(84870),U=o(79494),Z=o(48145),ee=o(11807),ue=o(45055),ne=o(49800),oe=o(57829),Y=o(92876);function A(e){return A=typeof oe=="function"&&typeof Y=="symbol"?function(r){return typeof r}:function(r){return r&&typeof oe=="function"&&r.constructor===oe&&r!==oe.prototype?"symbol":typeof r},A(e)}var J=o(92903);function L(e,r){if(A(e)!=="object"||e===null)return e;var n=e[J];if(n!==void 0){var a=n.call(e,r||"default");if(A(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function E(e){var r=L(e,"string");return A(r)==="symbol"?r:String(r)}function k(e,r,n){return r=E(r),r in e?ne(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function V(e,r){var n=C(e);if(T){var a=T(e);r&&(a=F(a).call(a,function(s){return U(e,s).enumerable})),n.push.apply(n,a)}return n}function G(e){for(var r=1;r<arguments.length;r++){var n,a,s=arguments[r]!=null?arguments[r]:{};r%2?Z(n=V(Object(s),!0)).call(n,function(c){k(e,c,s[c])}):ee?ue(e,ee(s)):Z(a=V(Object(s))).call(a,function(c){ne(e,c,U(s,c))})}return e}var Q=o(45932),W=o.n(Q),te=o(51661),K=o.n(te),H=o(883),fe=o(5490),ve=o(72010),_=o(72383),X=o(50557);function z(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,a=new Array(r);n<r;n++)a[n]=e[n];return a}function ge(e,r){var n;if(!!e){if(typeof e=="string")return z(e,r);var a=_(n=Object.prototype.toString.call(e)).call(n,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return X(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return z(e,r)}}function Oe(e,r){var n=typeof oe!="undefined"&&fe(e)||e["@@iterator"];if(!n){if(ve(e)||(n=ge(e))||r&&e&&typeof e.length=="number"){n&&(e=n);var a=0,s=function(){};return{s,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(y){throw y},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
46
46
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c=!0,p=!1,g;return{s:function(){n=n.call(e)},n:function(){var y=n.next();return c=y.done,y},e:function(y){p=!0,g=y},f:function(){try{!c&&n.return!=null&&n.return()}finally{if(p)throw g}}}}function Ue(e){if(ve(e))return e}function Re(e,r){var n=e==null?null:typeof oe!="undefined"&&fe(e)||e["@@iterator"];if(n!=null){var a,s,c,p,g=[],v=!0,y=!1;try{if(c=(n=n.call(e)).next,r===0){if(Object(n)!==n)return;v=!1}else for(;!(v=(a=c.call(n)).done)&&(g.push(a.value),g.length!==r);v=!0);}catch(b){y=!0,s=b}finally{try{if(!v&&n.return!=null&&(p=n.return(),Object(p)!==p))return}finally{if(y)throw s}}return g}}function ot(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
47
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xe(e,r){return Ue(e)||Re(e,r)||ge(e,r)||ot()}var xt=o(64772);function Pt(e,r,n,a,s,c,p){try{var g=e[c](p),v=g.value}catch(y){n(y);return}g.done?r(v):xt.resolve(v).then(a,s)}function Ct(e){return function(){var r=this,n=arguments;return new xt(function(a,s){var c=e.apply(r,n);function p(v){Pt(c,a,s,p,g,"next",v)}function g(v){Pt(c,a,s,p,g,"throw",v)}p(void 0)})}}var Le=o(99732),Ce=o.n(Le),Se=o(82985),De=o.n(Se),$e=o(42126),tt=o.n($e),_e=o(48621),St=o.n(_e),It=o(85337),Wt=o.n(It),$t=o(14903),We=o.n($t),Ot=o(2921),st=o.n(Ot),qr=o(40192),Qe=o.n(qr),un=o(31175),Ir=o.n(un),Or=o(40453),hr=o.n(Or),et=o(43616),mt=o(37794),Mt=o.n(mt);/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function Tt(e){return typeof e=="undefined"||e===null}function Rt(e){return typeof e=="object"&&e!==null}function dt(e){return Array.isArray(e)?e:Tt(e)?[]:[e]}function gt(e,r){var n,a,s,c;if(r)for(c=Object.keys(r),n=0,a=c.length;n<a;n+=1)s=c[n],e[s]=r[s];return e}function kt(e,r){var n="",a;for(a=0;a<r;a+=1)n+=e;return n}function lt(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Ve=Tt,ce=Rt,xe=dt,Be=kt,Ke=lt,ut=gt,nt={isNothing:Ve,isObject:ce,toArray:xe,repeat:Be,isNegativeZero:Ke,extend:ut};function _t(e,r){var n="",a=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(n+=`
47
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xe(e,r){return Ue(e)||Re(e,r)||ge(e,r)||ot()}var xt=o(64772);function Pt(e,r,n,a,s,c,p){try{var g=e[c](p),v=g.value}catch(y){n(y);return}g.done?r(v):xt.resolve(v).then(a,s)}function Ct(e){return function(){var r=this,n=arguments;return new xt(function(a,s){var c=e.apply(r,n);function p(v){Pt(c,a,s,p,g,"next",v)}function g(v){Pt(c,a,s,p,g,"throw",v)}p(void 0)})}}var Le=o(99732),Ce=o.n(Le),Se=o(82985),De=o.n(Se),$e=o(42126),tt=o.n($e),_e=o(48621),St=o.n(_e),It=o(85337),Wt=o.n(It),Kt=o(14903),We=o.n(Kt),Ot=o(2921),st=o.n(Ot),qr=o(40192),Qe=o.n(qr),un=o(31175),Ir=o.n(un),Or=o(40453),hr=o.n(Or),et=o(43616),mt=o(37794),Mt=o.n(mt);/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function Tt(e){return typeof e=="undefined"||e===null}function Rt(e){return typeof e=="object"&&e!==null}function dt(e){return Array.isArray(e)?e:Tt(e)?[]:[e]}function gt(e,r){var n,a,s,c;if(r)for(c=Object.keys(r),n=0,a=c.length;n<a;n+=1)s=c[n],e[s]=r[s];return e}function kt(e,r){var n="",a;for(a=0;a<r;a+=1)n+=e;return n}function lt(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Ve=Tt,ce=Rt,xe=dt,Be=kt,Ke=lt,ut=gt,nt={isNothing:Ve,isObject:ce,toArray:xe,repeat:Be,isNegativeZero:Ke,extend:ut};function _t(e,r){var n="",a=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(n+=`
48
48
 
49
49
  `+e.mark.snippet),a+" "+n):a}function lr(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=_t(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}lr.prototype=Object.create(Error.prototype),lr.prototype.constructor=lr,lr.prototype.toString=function(r){return this.name+": "+_t(this,r)};var At=lr;function Cr(e,r,n,a,s){var c="",p="",g=Math.floor(s/2)-1;return a-r>g&&(c=" ... ",r=a-g+c.length),n-a>g&&(p=" ...",n=a+g-p.length),{str:c+e.slice(r,n).replace(/\t/g,"\u2192")+p,pos:a-r+c.length}}function jn(e,r){return nt.repeat(" ",r-e.length)+e}function $r(e,r){if(r=Object.create(r||null),!e.buffer)return null;r.maxLength||(r.maxLength=79),typeof r.indent!="number"&&(r.indent=1),typeof r.linesBefore!="number"&&(r.linesBefore=3),typeof r.linesAfter!="number"&&(r.linesAfter=2);for(var n=/\r?\n|\r|\0/g,a=[0],s=[],c,p=-1;c=n.exec(e.buffer);)s.push(c.index),a.push(c.index+c[0].length),e.position<=c.index&&p<0&&(p=a.length-2);p<0&&(p=a.length-1);var g="",v,y,b=Math.min(e.line+r.linesAfter,s.length).toString().length,I=r.maxLength-(r.indent+b+3);for(v=1;v<=r.linesBefore&&!(p-v<0);v++)y=Cr(e.buffer,a[p-v],s[p-v],e.position-(a[p]-a[p-v]),I),g=nt.repeat(" ",r.indent)+jn((e.line-v+1).toString(),b)+" | "+y.str+`
50
50
  `+g;for(y=Cr(e.buffer,a[p],s[p],e.position,I),g+=nt.repeat(" ",r.indent)+jn((e.line+1).toString(),b)+" | "+y.str+`
51
51
  `,g+=nt.repeat("-",r.indent+b+3+y.pos)+`^
52
52
  `,v=1;v<=r.linesAfter&&!(p+v>=s.length);v++)y=Cr(e.buffer,a[p+v],s[p+v],e.position-(a[p]-a[p+v]),I),g+=nt.repeat(" ",r.indent)+jn((e.line+v+1).toString(),b)+" | "+y.str+`
53
- `;return g.replace(/\n$/,"")}var Kr=$r,hi=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],_r=["scalar","sequence","mapping"];function vi(e){var r={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(a){r[String(a)]=n})}),r}function gi(e,r){if(r=r||{},Object.keys(r).forEach(function(n){if(hi.indexOf(n)===-1)throw new At('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=r,this.tag=e,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(n){return n},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.representName=r.representName||null,this.defaultStyle=r.defaultStyle||null,this.multi=r.multi||!1,this.styleAliases=vi(r.styleAliases||null),_r.indexOf(this.kind)===-1)throw new At('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var er=gi;function mi(e,r){var n=[];return e[r].forEach(function(a){var s=n.length;n.forEach(function(c,p){c.tag===a.tag&&c.kind===a.kind&&c.multi===a.multi&&(s=p)}),n[s]=a}),n}function _n(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,n;function a(s){s.multi?(e.multi[s.kind].push(s),e.multi.fallback.push(s)):e[s.kind][s.tag]=e.fallback[s.tag]=s}for(r=0,n=arguments.length;r<n;r+=1)arguments[r].forEach(a);return e}function ei(e){return this.extend(e)}ei.prototype.extend=function(r){var n=[],a=[];if(r instanceof er)a.push(r);else if(Array.isArray(r))a=a.concat(r);else if(r&&(Array.isArray(r.implicit)||Array.isArray(r.explicit)))r.implicit&&(n=n.concat(r.implicit)),r.explicit&&(a=a.concat(r.explicit));else throw new At("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(c){if(!(c instanceof er))throw new At("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(c.loadKind&&c.loadKind!=="scalar")throw new At("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(c.multi)throw new At("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),a.forEach(function(c){if(!(c instanceof er))throw new At("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var s=Object.create(ei.prototype);return s.implicit=(this.implicit||[]).concat(n),s.explicit=(this.explicit||[]).concat(a),s.compiledImplicit=mi(s,"implicit"),s.compiledExplicit=mi(s,"explicit"),s.compiledTypeMap=_n(s.compiledImplicit,s.compiledExplicit),s};var na=ei,pn=new er("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),fn=new er("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),hn=new er("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),vn=new na({explicit:[pn,fn,hn]});function An(e){if(e===null)return!0;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function ho(){return null}function Vn(e){return e===null}var en=new er("tag:yaml.org,2002:null",{kind:"scalar",resolve:An,construct:ho,predicate:Vn,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function kr(e){if(e===null)return!1;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===5&&(e==="false"||e==="False"||e==="FALSE")}function yi(e){return e==="true"||e==="True"||e==="TRUE"}function Cn(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var ia=new er("tag:yaml.org,2002:bool",{kind:"scalar",resolve:kr,construct:yi,predicate:Cn,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function is(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function mr(e){return 48<=e&&e<=55}function ft(e){return 48<=e&&e<=57}function bi(e){if(e===null)return!1;var r=e.length,n=0,a=!1,s;if(!r)return!1;if(s=e[n],(s==="-"||s==="+")&&(s=e[++n]),s==="0"){if(n+1===r)return!0;if(s=e[++n],s==="b"){for(n++;n<r;n++)if(s=e[n],s!=="_"){if(s!=="0"&&s!=="1")return!1;a=!0}return a&&s!=="_"}if(s==="x"){for(n++;n<r;n++)if(s=e[n],s!=="_"){if(!is(e.charCodeAt(n)))return!1;a=!0}return a&&s!=="_"}if(s==="o"){for(n++;n<r;n++)if(s=e[n],s!=="_"){if(!mr(e.charCodeAt(n)))return!1;a=!0}return a&&s!=="_"}}if(s==="_")return!1;for(;n<r;n++)if(s=e[n],s!=="_"){if(!ft(e.charCodeAt(n)))return!1;a=!0}return!(!a||s==="_")}function aa(e){var r=e,n=1,a;if(r.indexOf("_")!==-1&&(r=r.replace(/_/g,"")),a=r[0],(a==="-"||a==="+")&&(a==="-"&&(n=-1),r=r.slice(1),a=r[0]),r==="0")return 0;if(a==="0"){if(r[1]==="b")return n*parseInt(r.slice(2),2);if(r[1]==="x")return n*parseInt(r.slice(2),16);if(r[1]==="o")return n*parseInt(r.slice(2),8)}return n*parseInt(r,10)}function En(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!nt.isNegativeZero(e)}var Kt=new er("tag:yaml.org,2002:int",{kind:"scalar",resolve:bi,construct:aa,predicate:En,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),xi=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function oa(e){return!(e===null||!xi.test(e)||e[e.length-1]==="_")}function Va(e){var r,n;return r=e.replace(/_/g,"").toLowerCase(),n=r[0]==="-"?-1:1,"+-".indexOf(r[0])>=0&&(r=r.slice(1)),r===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:r===".nan"?NaN:n*parseFloat(r,10)}var N=/^[-+]?[0-9]+e/;function se(e,r){var n;if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(nt.isNegativeZero(e))return"-0.0";return n=e.toString(10),N.test(n)?n.replace("e",".e"):n}function Me(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||nt.isNegativeZero(e))}var He=new er("tag:yaml.org,2002:float",{kind:"scalar",resolve:oa,construct:Va,predicate:Me,represent:se,defaultStyle:"lowercase"}),Ft=vn.extend({implicit:[en,ia,Kt,He]}),jt=Ft,tr=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ct=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function On(e){return e===null?!1:tr.exec(e)!==null||ct.exec(e)!==null}function as(e){var r,n,a,s,c,p,g,v=0,y=null,b,I,D;if(r=tr.exec(e),r===null&&(r=ct.exec(e)),r===null)throw new Error("Date resolve error");if(n=+r[1],a=+r[2]-1,s=+r[3],!r[4])return new Date(Date.UTC(n,a,s));if(c=+r[4],p=+r[5],g=+r[6],r[7]){for(v=r[7].slice(0,3);v.length<3;)v+="0";v=+v}return r[9]&&(b=+r[10],I=+(r[11]||0),y=(b*60+I)*6e4,r[9]==="-"&&(y=-y)),D=new Date(Date.UTC(n,a,s,c,p,g,v)),y&&D.setTime(D.getTime()-y),D}function os(e){return e.toISOString()}var Un=new er("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:On,construct:as,instanceOf:Date,represent:os});function Hu(e){return e==="<<"||e===null}var dl=new er("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Hu}),sa=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
53
+ `;return g.replace(/\n$/,"")}var Kr=$r,hi=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],_r=["scalar","sequence","mapping"];function vi(e){var r={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(a){r[String(a)]=n})}),r}function gi(e,r){if(r=r||{},Object.keys(r).forEach(function(n){if(hi.indexOf(n)===-1)throw new At('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=r,this.tag=e,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(n){return n},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.representName=r.representName||null,this.defaultStyle=r.defaultStyle||null,this.multi=r.multi||!1,this.styleAliases=vi(r.styleAliases||null),_r.indexOf(this.kind)===-1)throw new At('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var er=gi;function mi(e,r){var n=[];return e[r].forEach(function(a){var s=n.length;n.forEach(function(c,p){c.tag===a.tag&&c.kind===a.kind&&c.multi===a.multi&&(s=p)}),n[s]=a}),n}function _n(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,n;function a(s){s.multi?(e.multi[s.kind].push(s),e.multi.fallback.push(s)):e[s.kind][s.tag]=e.fallback[s.tag]=s}for(r=0,n=arguments.length;r<n;r+=1)arguments[r].forEach(a);return e}function ei(e){return this.extend(e)}ei.prototype.extend=function(r){var n=[],a=[];if(r instanceof er)a.push(r);else if(Array.isArray(r))a=a.concat(r);else if(r&&(Array.isArray(r.implicit)||Array.isArray(r.explicit)))r.implicit&&(n=n.concat(r.implicit)),r.explicit&&(a=a.concat(r.explicit));else throw new At("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(c){if(!(c instanceof er))throw new At("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(c.loadKind&&c.loadKind!=="scalar")throw new At("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(c.multi)throw new At("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),a.forEach(function(c){if(!(c instanceof er))throw new At("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var s=Object.create(ei.prototype);return s.implicit=(this.implicit||[]).concat(n),s.explicit=(this.explicit||[]).concat(a),s.compiledImplicit=mi(s,"implicit"),s.compiledExplicit=mi(s,"explicit"),s.compiledTypeMap=_n(s.compiledImplicit,s.compiledExplicit),s};var na=ei,pn=new er("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),fn=new er("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),hn=new er("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),vn=new na({explicit:[pn,fn,hn]});function An(e){if(e===null)return!0;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function ho(){return null}function Vn(e){return e===null}var en=new er("tag:yaml.org,2002:null",{kind:"scalar",resolve:An,construct:ho,predicate:Vn,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function kr(e){if(e===null)return!1;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===5&&(e==="false"||e==="False"||e==="FALSE")}function yi(e){return e==="true"||e==="True"||e==="TRUE"}function Cn(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var ia=new er("tag:yaml.org,2002:bool",{kind:"scalar",resolve:kr,construct:yi,predicate:Cn,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function is(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function mr(e){return 48<=e&&e<=55}function ft(e){return 48<=e&&e<=57}function bi(e){if(e===null)return!1;var r=e.length,n=0,a=!1,s;if(!r)return!1;if(s=e[n],(s==="-"||s==="+")&&(s=e[++n]),s==="0"){if(n+1===r)return!0;if(s=e[++n],s==="b"){for(n++;n<r;n++)if(s=e[n],s!=="_"){if(s!=="0"&&s!=="1")return!1;a=!0}return a&&s!=="_"}if(s==="x"){for(n++;n<r;n++)if(s=e[n],s!=="_"){if(!is(e.charCodeAt(n)))return!1;a=!0}return a&&s!=="_"}if(s==="o"){for(n++;n<r;n++)if(s=e[n],s!=="_"){if(!mr(e.charCodeAt(n)))return!1;a=!0}return a&&s!=="_"}}if(s==="_")return!1;for(;n<r;n++)if(s=e[n],s!=="_"){if(!ft(e.charCodeAt(n)))return!1;a=!0}return!(!a||s==="_")}function aa(e){var r=e,n=1,a;if(r.indexOf("_")!==-1&&(r=r.replace(/_/g,"")),a=r[0],(a==="-"||a==="+")&&(a==="-"&&(n=-1),r=r.slice(1),a=r[0]),r==="0")return 0;if(a==="0"){if(r[1]==="b")return n*parseInt(r.slice(2),2);if(r[1]==="x")return n*parseInt(r.slice(2),16);if(r[1]==="o")return n*parseInt(r.slice(2),8)}return n*parseInt(r,10)}function En(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!nt.isNegativeZero(e)}var Yt=new er("tag:yaml.org,2002:int",{kind:"scalar",resolve:bi,construct:aa,predicate:En,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),xi=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function oa(e){return!(e===null||!xi.test(e)||e[e.length-1]==="_")}function Va(e){var r,n;return r=e.replace(/_/g,"").toLowerCase(),n=r[0]==="-"?-1:1,"+-".indexOf(r[0])>=0&&(r=r.slice(1)),r===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:r===".nan"?NaN:n*parseFloat(r,10)}var N=/^[-+]?[0-9]+e/;function se(e,r){var n;if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(nt.isNegativeZero(e))return"-0.0";return n=e.toString(10),N.test(n)?n.replace("e",".e"):n}function Me(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||nt.isNegativeZero(e))}var He=new er("tag:yaml.org,2002:float",{kind:"scalar",resolve:oa,construct:Va,predicate:Me,represent:se,defaultStyle:"lowercase"}),Ft=vn.extend({implicit:[en,ia,Yt,He]}),jt=Ft,tr=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ct=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function On(e){return e===null?!1:tr.exec(e)!==null||ct.exec(e)!==null}function as(e){var r,n,a,s,c,p,g,v=0,y=null,b,I,D;if(r=tr.exec(e),r===null&&(r=ct.exec(e)),r===null)throw new Error("Date resolve error");if(n=+r[1],a=+r[2]-1,s=+r[3],!r[4])return new Date(Date.UTC(n,a,s));if(c=+r[4],p=+r[5],g=+r[6],r[7]){for(v=r[7].slice(0,3);v.length<3;)v+="0";v=+v}return r[9]&&(b=+r[10],I=+(r[11]||0),y=(b*60+I)*6e4,r[9]==="-"&&(y=-y)),D=new Date(Date.UTC(n,a,s,c,p,g,v)),y&&D.setTime(D.getTime()-y),D}function os(e){return e.toISOString()}var Un=new er("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:On,construct:as,instanceOf:Date,represent:os});function Hu(e){return e==="<<"||e===null}var dl=new er("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Hu}),sa=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
54
54
  \r`;function pl(e){if(e===null)return!1;var r,n,a=0,s=e.length,c=sa;for(n=0;n<s;n++)if(r=c.indexOf(e.charAt(n)),!(r>64)){if(r<0)return!1;a+=6}return a%8===0}function zu(e){var r,n,a=e.replace(/[\r\n=]/g,""),s=a.length,c=sa,p=0,g=[];for(r=0;r<s;r++)r%4===0&&r&&(g.push(p>>16&255),g.push(p>>8&255),g.push(p&255)),p=p<<6|c.indexOf(a.charAt(r));return n=s%4*6,n===0?(g.push(p>>16&255),g.push(p>>8&255),g.push(p&255)):n===18?(g.push(p>>10&255),g.push(p>>2&255)):n===12&&g.push(p>>4&255),new Uint8Array(g)}function hl(e){var r="",n=0,a,s,c=e.length,p=sa;for(a=0;a<c;a++)a%3===0&&a&&(r+=p[n>>18&63],r+=p[n>>12&63],r+=p[n>>6&63],r+=p[n&63]),n=(n<<8)+e[a];return s=c%3,s===0?(r+=p[n>>18&63],r+=p[n>>12&63],r+=p[n>>6&63],r+=p[n&63]):s===2?(r+=p[n>>10&63],r+=p[n>>4&63],r+=p[n<<2&63],r+=p[64]):s===1&&(r+=p[n>>2&63],r+=p[n<<4&63],r+=p[64],r+=p[64]),r}function Gu(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var vl=new er("tag:yaml.org,2002:binary",{kind:"scalar",resolve:pl,construct:zu,predicate:Gu,represent:hl}),$u=Object.prototype.hasOwnProperty,Ku=Object.prototype.toString;function Kc(e){if(e===null)return!0;var r=[],n,a,s,c,p,g=e;for(n=0,a=g.length;n<a;n+=1){if(s=g[n],p=!1,Ku.call(s)!=="[object Object]")return!1;for(c in s)if($u.call(s,c))if(!p)p=!0;else return!1;if(!p)return!1;if(r.indexOf(c)===-1)r.push(c);else return!1}return!0}function Yc(e){return e!==null?e:[]}var gl=new er("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Kc,construct:Yc}),Si=Object.prototype.toString;function Jc(e){if(e===null)return!0;var r,n,a,s,c,p=e;for(c=new Array(p.length),r=0,n=p.length;r<n;r+=1){if(a=p[r],Si.call(a)!=="[object Object]"||(s=Object.keys(a),s.length!==1))return!1;c[r]=[s[0],a[s[0]]]}return!0}function Xc(e){if(e===null)return[];var r,n,a,s,c,p=e;for(c=new Array(p.length),r=0,n=p.length;r<n;r+=1)a=p[r],s=Object.keys(a),c[r]=[s[0],a[s[0]]];return c}var vo=new er("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Jc,construct:Xc}),go=Object.prototype.hasOwnProperty;function Qc(e){if(e===null)return!0;var r,n=e;for(r in n)if(go.call(n,r)&&n[r]!==null)return!1;return!0}function Zc(e){return e!==null?e:{}}var Yu=new er("tag:yaml.org,2002:set",{kind:"mapping",resolve:Qc,construct:Zc}),ml=jt.extend({implicit:[Un,dl],explicit:[vl,gl,vo,Yu]}),ti=Object.prototype.hasOwnProperty,mo=1,Ju=2,yl=3,yo=4,Ua=1,ss=2,ls=3,Xu=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Qu=/[\x85\u2028\u2029]/,us=/[,\[\]\{\}]/,Zu=/^(?:!|!!|![a-z\-]+!)$/i,bl=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Tn(e){return Object.prototype.toString.call(e)}function ri(e){return e===10||e===13}function la(e){return e===9||e===32}function tn(e){return e===9||e===32||e===10||e===13}function ua(e){return e===44||e===91||e===93||e===123||e===125}function Li(e){var r;return 48<=e&&e<=57?e-48:(r=e|32,97<=r&&r<=102?r-97+10:-1)}function xl(e){return e===120?2:e===117?4:e===85?8:0}function wi(e){return 48<=e&&e<=57?e-48:-1}function bo(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
55
55
  `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function Sl(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}for(var fa=new Array(256),qu=new Array(256),Wa=0;Wa<256;Wa++)fa[Wa]=bo(Wa)?1:0,qu[Wa]=bo(Wa);function qc(e,r){this.input=e,this.filename=r.filename||null,this.schema=r.schema||ml,this.onWarning=r.onWarning||null,this.legacy=r.legacy||!1,this.json=r.json||!1,this.listener=r.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function _u(e,r){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=Kr(n),new At(r,n)}function yt(e,r){throw _u(e,r)}function xo(e,r){e.onWarning&&e.onWarning.call(null,_u(e,r))}var ef={YAML:function(r,n,a){var s,c,p;r.version!==null&&yt(r,"duplication of %YAML directive"),a.length!==1&&yt(r,"YAML directive accepts exactly one argument"),s=/^([0-9]+)\.([0-9]+)$/.exec(a[0]),s===null&&yt(r,"ill-formed argument of the YAML directive"),c=parseInt(s[1],10),p=parseInt(s[2],10),c!==1&&yt(r,"unacceptable YAML version of the document"),r.version=a[0],r.checkLineBreaks=p<2,p!==1&&p!==2&&xo(r,"unsupported YAML version of the document")},TAG:function(r,n,a){var s,c;a.length!==2&&yt(r,"TAG directive accepts exactly two arguments"),s=a[0],c=a[1],Zu.test(s)||yt(r,"ill-formed tag handle (first argument) of the TAG directive"),ti.call(r.tagMap,s)&&yt(r,'there is a previously declared suffix for "'+s+'" tag handle'),bl.test(c)||yt(r,"ill-formed tag prefix (second argument) of the TAG directive");try{c=decodeURIComponent(c)}catch(p){yt(r,"tag prefix is malformed: "+c)}r.tagMap[s]=c}};function Ni(e,r,n,a){var s,c,p,g;if(r<n){if(g=e.input.slice(r,n),a)for(s=0,c=g.length;s<c;s+=1)p=g.charCodeAt(s),p===9||32<=p&&p<=1114111||yt(e,"expected valid JSON character");else Xu.test(g)&&yt(e,"the stream contains non-printable characters");e.result+=g}}function tf(e,r,n,a){var s,c,p,g;for(nt.isObject(n)||yt(e,"cannot merge mappings; the provided source object is unacceptable"),s=Object.keys(n),p=0,g=s.length;p<g;p+=1)c=s[p],ti.call(r,c)||(r[c]=n[c],a[c]=!0)}function Ha(e,r,n,a,s,c,p,g,v){var y,b;if(Array.isArray(s))for(s=Array.prototype.slice.call(s),y=0,b=s.length;y<b;y+=1)Array.isArray(s[y])&&yt(e,"nested arrays are not supported inside keys"),typeof s=="object"&&Tn(s[y])==="[object Object]"&&(s[y]="[object Object]");if(typeof s=="object"&&Tn(s)==="[object Object]"&&(s="[object Object]"),s=String(s),r===null&&(r={}),a==="tag:yaml.org,2002:merge")if(Array.isArray(c))for(y=0,b=c.length;y<b;y+=1)tf(e,r,c[y],n);else tf(e,r,c,n);else!e.json&&!ti.call(n,s)&&ti.call(r,s)&&(e.line=p||e.line,e.lineStart=g||e.lineStart,e.position=v||e.position,yt(e,"duplicated mapping key")),s==="__proto__"?Object.defineProperty(r,s,{configurable:!0,enumerable:!0,writable:!0,value:c}):r[s]=c,delete n[s];return r}function fs(e){var r;r=e.input.charCodeAt(e.position),r===10?e.position++:r===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):yt(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Mr(e,r,n){for(var a=0,s=e.input.charCodeAt(e.position);s!==0;){for(;la(s);)s===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),s=e.input.charCodeAt(++e.position);if(r&&s===35)do s=e.input.charCodeAt(++e.position);while(s!==10&&s!==13&&s!==0);if(ri(s))for(fs(e),s=e.input.charCodeAt(e.position),a++,e.lineIndent=0;s===32;)e.lineIndent++,s=e.input.charCodeAt(++e.position);else break}return n!==-1&&a!==0&&e.lineIndent<n&&xo(e,"deficient indentation"),a}function So(e){var r=e.position,n;return n=e.input.charCodeAt(r),!!((n===45||n===46)&&n===e.input.charCodeAt(r+1)&&n===e.input.charCodeAt(r+2)&&(r+=3,n=e.input.charCodeAt(r),n===0||tn(n)))}function za(e,r){r===1?e.result+=" ":r>1&&(e.result+=nt.repeat(`
56
56
  `,r-1))}function Ga(e,r,n){var a,s,c,p,g,v,y,b,I=e.kind,D=e.result,B;if(B=e.input.charCodeAt(e.position),tn(B)||ua(B)||B===35||B===38||B===42||B===33||B===124||B===62||B===39||B===34||B===37||B===64||B===96||(B===63||B===45)&&(s=e.input.charCodeAt(e.position+1),tn(s)||n&&ua(s)))return!1;for(e.kind="scalar",e.result="",c=p=e.position,g=!1;B!==0;){if(B===58){if(s=e.input.charCodeAt(e.position+1),tn(s)||n&&ua(s))break}else if(B===35){if(a=e.input.charCodeAt(e.position-1),tn(a))break}else{if(e.position===e.lineStart&&So(e)||n&&ua(B))break;if(ri(B))if(v=e.line,y=e.lineStart,b=e.lineIndent,Mr(e,!1,-1),e.lineIndent>=r){g=!0,B=e.input.charCodeAt(e.position);continue}else{e.position=p,e.line=v,e.lineStart=y,e.lineIndent=b;break}}g&&(Ni(e,c,p,!1),za(e,e.line-v),c=p=e.position,g=!1),la(B)||(p=e.position+1),B=e.input.charCodeAt(++e.position)}return Ni(e,c,p,!1),e.result?!0:(e.kind=I,e.result=D,!1)}function _c(e,r){var n,a,s;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,a=s=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(Ni(e,a,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)a=e.position,e.position++,s=e.position;else return!0;else ri(n)?(Ni(e,a,s,!0),za(e,Mr(e,!1,r)),a=s=e.position):e.position===e.lineStart&&So(e)?yt(e,"unexpected end of the document within a single quoted scalar"):(e.position++,s=e.position);yt(e,"unexpected end of the stream within a single quoted scalar")}function ed(e,r){var n,a,s,c,p,g;if(g=e.input.charCodeAt(e.position),g!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=a=e.position;(g=e.input.charCodeAt(e.position))!==0;){if(g===34)return Ni(e,n,e.position,!0),e.position++,!0;if(g===92){if(Ni(e,n,e.position,!0),g=e.input.charCodeAt(++e.position),ri(g))Mr(e,!1,r);else if(g<256&&fa[g])e.result+=qu[g],e.position++;else if((p=xl(g))>0){for(s=p,c=0;s>0;s--)g=e.input.charCodeAt(++e.position),(p=Li(g))>=0?c=(c<<4)+p:yt(e,"expected hexadecimal character");e.result+=Sl(c),e.position++}else yt(e,"unknown escape sequence");n=a=e.position}else ri(g)?(Ni(e,n,a,!0),za(e,Mr(e,!1,r)),n=a=e.position):e.position===e.lineStart&&So(e)?yt(e,"unexpected end of the document within a double quoted scalar"):(e.position++,a=e.position)}yt(e,"unexpected end of the stream within a double quoted scalar")}function td(e,r){var n=!0,a,s,c,p=e.tag,g,v=e.anchor,y,b,I,D,B,$=Object.create(null),re,q,ie,ae;if(ae=e.input.charCodeAt(e.position),ae===91)b=93,B=!1,g=[];else if(ae===123)b=125,B=!0,g={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=g),ae=e.input.charCodeAt(++e.position);ae!==0;){if(Mr(e,!0,r),ae=e.input.charCodeAt(e.position),ae===b)return e.position++,e.tag=p,e.anchor=v,e.kind=B?"mapping":"sequence",e.result=g,!0;n?ae===44&&yt(e,"expected the node content, but found ','"):yt(e,"missed comma between flow collection entries"),q=re=ie=null,I=D=!1,ae===63&&(y=e.input.charCodeAt(e.position+1),tn(y)&&(I=D=!0,e.position++,Mr(e,!0,r))),a=e.line,s=e.lineStart,c=e.position,ca(e,r,mo,!1,!0),q=e.tag,re=e.result,Mr(e,!0,r),ae=e.input.charCodeAt(e.position),(D||e.line===a)&&ae===58&&(I=!0,ae=e.input.charCodeAt(++e.position),Mr(e,!0,r),ca(e,r,mo,!1,!0),ie=e.result),B?Ha(e,g,$,q,re,ie,a,s,c):I?g.push(Ha(e,null,$,q,re,ie,a,s,c)):g.push(re),Mr(e,!0,r),ae=e.input.charCodeAt(e.position),ae===44?(n=!0,ae=e.input.charCodeAt(++e.position)):n=!1}yt(e,"unexpected end of the stream within a flow collection")}function wo(e,r){var n,a,s=Ua,c=!1,p=!1,g=r,v=0,y=!1,b,I;if(I=e.input.charCodeAt(e.position),I===124)a=!1;else if(I===62)a=!0;else return!1;for(e.kind="scalar",e.result="";I!==0;)if(I=e.input.charCodeAt(++e.position),I===43||I===45)Ua===s?s=I===43?ls:ss:yt(e,"repeat of a chomping mode identifier");else if((b=wi(I))>=0)b===0?yt(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):p?yt(e,"repeat of an indentation width identifier"):(g=r+b-1,p=!0);else break;if(la(I)){do I=e.input.charCodeAt(++e.position);while(la(I));if(I===35)do I=e.input.charCodeAt(++e.position);while(!ri(I)&&I!==0)}for(;I!==0;){for(fs(e),e.lineIndent=0,I=e.input.charCodeAt(e.position);(!p||e.lineIndent<g)&&I===32;)e.lineIndent++,I=e.input.charCodeAt(++e.position);if(!p&&e.lineIndent>g&&(g=e.lineIndent),ri(I)){v++;continue}if(e.lineIndent<g){s===ls?e.result+=nt.repeat(`
@@ -75,7 +75,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
75
75
  `+e.slice(s,c),s=c+1),p=g;return v+=`
76
76
  `,e.length-s>r&&p>s?v+=e.slice(s,p)+`
77
77
  `+e.slice(p+1):v+=e.slice(s),v.slice(1)}function Nl(e){for(var r="",n=0,a,s=0;s<e.length;n>=65536?s+=2:s++)n=ma(e,s),a=jr[n],!a&&To(n)?(r+=e[s],n>=65536&&(r+=e[s+1])):r+=a||pf(n);return r}function ys(e,r,n){var a="",s=e.tag,c,p,g;for(c=0,p=n.length;c<p;c+=1)g=n[c],e.replacer&&(g=e.replacer.call(n,String(c),g)),(zn(e,r,g,!1,!1)||typeof g=="undefined"&&zn(e,r,null,!1,!1))&&(a!==""&&(a+=","+(e.condenseFlow?"":" ")),a+=e.dump);e.tag=s,e.dump="["+a+"]"}function gf(e,r,n,a){var s="",c=e.tag,p,g,v;for(p=0,g=n.length;p<g;p+=1)v=n[p],e.replacer&&(v=e.replacer.call(n,String(p),v)),(zn(e,r+1,v,!0,!0,!1,!0)||typeof v=="undefined"&&zn(e,r+1,null,!0,!0,!1,!0))&&((!a||s!=="")&&(s+=Oo(e,r)),e.dump&&da===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump);e.tag=c,e.dump=s||"[]"}function Dl(e,r,n){var a="",s=e.tag,c=Object.keys(n),p,g,v,y,b;for(p=0,g=c.length;p<g;p+=1)b="",a!==""&&(b+=", "),e.condenseFlow&&(b+='"'),v=c[p],y=n[v],e.replacer&&(y=e.replacer.call(n,v,y)),zn(e,r,v,!1,!1)&&(e.dump.length>1024&&(b+="? "),b+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),zn(e,r,y,!1,!1)&&(b+=e.dump,a+=b));e.tag=s,e.dump="{"+a+"}"}function mf(e,r,n,a){var s="",c=e.tag,p=Object.keys(n),g,v,y,b,I,D;if(e.sortKeys===!0)p.sort();else if(typeof e.sortKeys=="function")p.sort(e.sortKeys);else if(e.sortKeys)throw new At("sortKeys must be a boolean or a function");for(g=0,v=p.length;g<v;g+=1)D="",(!a||s!=="")&&(D+=Oo(e,r)),y=p[g],b=n[y],e.replacer&&(b=e.replacer.call(n,y,b)),zn(e,r+1,y,!0,!0,!0)&&(I=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,I&&(e.dump&&da===e.dump.charCodeAt(0)?D+="?":D+="? "),D+=e.dump,I&&(D+=Oo(e,r)),zn(e,r+1,b,!0,I)&&(e.dump&&da===e.dump.charCodeAt(0)?D+=":":D+=": ",D+=e.dump,s+=D));e.tag=c,e.dump=s||"{}"}function bs(e,r,n){var a,s,c,p,g,v;for(s=n?e.explicitTypes:e.implicitTypes,c=0,p=s.length;c<p;c+=1)if(g=s[c],(g.instanceOf||g.predicate)&&(!g.instanceOf||typeof r=="object"&&r instanceof g.instanceOf)&&(!g.predicate||g.predicate(r))){if(n?g.multi&&g.representName?e.tag=g.representName(r):e.tag=g.tag:e.tag="?",g.represent){if(v=e.styleMap[g.tag]||g.defaultStyle,of.call(g.represent)==="[object Function]")a=g.represent(r,v);else if($a.call(g.represent,v))a=g.represent[v](r,v);else throw new At("!<"+g.tag+'> tag resolver accepts not "'+v+'" style');e.dump=a}return!0}return!1}function zn(e,r,n,a,s,c,p){e.tag=null,e.dump=n,bs(e,n,!1)||bs(e,n,!0);var g=of.call(e.dump),v=a,y;a&&(a=e.flowLevel<0||e.flowLevel>r);var b=g==="[object Object]"||g==="[object Array]",I,D;if(b&&(I=e.duplicates.indexOf(n),D=I!==-1),(e.tag!==null&&e.tag!=="?"||D||e.indent!==2&&r>0)&&(s=!1),D&&e.usedDuplicates[I])e.dump="*ref_"+I;else{if(b&&D&&!e.usedDuplicates[I]&&(e.usedDuplicates[I]=!0),g==="[object Object]")a&&Object.keys(e.dump).length!==0?(mf(e,r,e.dump,s),D&&(e.dump="&ref_"+I+e.dump)):(Dl(e,r,e.dump),D&&(e.dump="&ref_"+I+" "+e.dump));else if(g==="[object Array]")a&&e.dump.length!==0?(e.noArrayIndent&&!p&&r>0?gf(e,r-1,e.dump,s):gf(e,r,e.dump,s),D&&(e.dump="&ref_"+I+e.dump)):(ys(e,r,e.dump),D&&(e.dump="&ref_"+I+" "+e.dump));else if(g==="[object String]")e.tag!=="?"&&ms(e,e.dump,r,c,v);else{if(g==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new At("unacceptable kind of an object to dump "+g)}e.tag!==null&&e.tag!=="?"&&(y=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?y="!"+y:y.slice(0,18)==="tag:yaml.org,2002:"?y="!!"+y.slice(18):y="!<"+y+">",e.dump=y+" "+e.dump)}return!0}function Ya(e,r){var n=[],a=[],s,c;for(Ja(e,n,a),s=0,c=a.length;s<c;s+=1)r.duplicates.push(n[a[s]]);r.usedDuplicates=new Array(c)}function Ja(e,r,n){var a,s,c;if(e!==null&&typeof e=="object")if(s=r.indexOf(e),s!==-1)n.indexOf(s)===-1&&n.push(s);else if(r.push(e),Array.isArray(e))for(s=0,c=e.length;s<c;s+=1)Ja(e[s],r,n);else for(a=Object.keys(e),s=0,c=a.length;s<c;s+=1)Ja(e[a[s]],r,n)}function yf(e,r){r=r||{};var n=new hf(r);n.noRefs||Ya(e,n);var a=e;return n.replacer&&(a=n.replacer.call({"":a},"",a)),zn(n,0,a,!0,!0)?n.dump+`
78
- `:""}var xs=yf,dd={dump:xs};function Bl(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 pd=er,jl=na,Vl=vn,Xa=Ft,Io=jt,hd=ml,Ss=wl.load,bf=wl.loadAll,ko=dd.dump,xf=At,ya={binary:vl,float:He,map:hn,null:en,pairs:vo,set:Yu,timestamp:Un,bool:ia,int:Kt,merge:dl,omap:gl,seq:fn,str:pn},Fo=Bl("safeLoad","load"),ba=Bl("safeLoadAll","loadAll"),Ro=Bl("safeDump","dump"),Qa={Type:pd,Schema:jl,FAILSAFE_SCHEMA:Vl,JSON_SCHEMA:Xa,CORE_SCHEMA:Io,DEFAULT_SCHEMA:hd,load:Ss,loadAll:bf,dump:ko,YAMLException:xf,types:ya,safeLoad:Fo,safeLoadAll:ba,safeDump:Ro};const Ul=Qa,Sf=function(){return typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:window}(),{FormData:Wl,Blob:ws,File:Vi}=Sf;function xa(e){if(ve(e))return z(e)}function vd(e){if(typeof oe!="undefined"&&fe(e)!=null||e["@@iterator"]!=null)return X(e)}function gd(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
78
+ `:""}var xs=yf,dd={dump:xs};function Bl(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 pd=er,jl=na,Vl=vn,Xa=Ft,Io=jt,hd=ml,Ss=wl.load,bf=wl.loadAll,ko=dd.dump,xf=At,ya={binary:vl,float:He,map:hn,null:en,pairs:vo,set:Yu,timestamp:Un,bool:ia,int:Yt,merge:dl,omap:gl,seq:fn,str:pn},Fo=Bl("safeLoad","load"),ba=Bl("safeLoadAll","loadAll"),Ro=Bl("safeDump","dump"),Qa={Type:pd,Schema:jl,FAILSAFE_SCHEMA:Vl,JSON_SCHEMA:Xa,CORE_SCHEMA:Io,DEFAULT_SCHEMA:hd,load:Ss,loadAll:bf,dump:ko,YAMLException:xf,types:ya,safeLoad:Fo,safeLoadAll:ba,safeDump:Ro};const Ul=Qa,Sf=function(){return typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:window}(),{FormData:Wl,Blob:ws,File:Vi}=Sf;function xa(e){if(ve(e))return z(e)}function vd(e){if(typeof oe!="undefined"&&fe(e)!=null||e["@@iterator"]!=null)return X(e)}function gd(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
79
79
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sa(e){return xa(e)||vd(e)||ge(e)||gd()}var md=o(71488),Gn=o.n(md),yd=function(r){return":/?#[]@!$&'()*+,;=".indexOf(r)>-1},gn=function(r){return/^[a-z0-9\-._~]+$/i.test(r)};function Sr(e){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.escape,s=arguments.length>2?arguments[2]:void 0;return typeof e=="number"&&(e=e.toString()),typeof e!="string"||!e.length||!a?e:s?JSON.parse(e):We()(r=Sa(e)).call(r,function(c){var p,g;if(gn(c)||yd(c)&&a==="unsafe")return c;var v=new TextEncoder,y=We()(p=We()(g=St()(v.encode(c))).call(g,function(b){var I;return Gn()(I="0".concat(b.toString(16).toUpperCase())).call(I,-2)})).call(p,function(b){return"%".concat(b)}).join("");return y}).join("")}function zr(e){var r=e.value;return Array.isArray(r)?Vr(e):A(r)==="object"?Mo(e):bd(e)}function Vr(e){var r=e.key,n=e.value,a=e.style,s=e.explode,c=e.escape,p=function(I){return Sr(I,{escape:c})};if(a==="simple")return We()(n).call(n,function(b){return p(b)}).join(",");if(a==="label")return".".concat(We()(n).call(n,function(b){return p(b)}).join("."));if(a==="matrix")return We()(n).call(n,function(b){return p(b)}).reduce(function(b,I){var D;if(!b||s){var B,$;return Qe()(B=Qe()($="".concat(b||"",";")).call($,r,"=")).call(B,I)}return Qe()(D="".concat(b,",")).call(D,I)},"");if(a==="form"){var g=s?"&".concat(r,"="):",";return We()(n).call(n,function(b){return p(b)}).join(g)}if(a==="spaceDelimited"){var v=s?"".concat(r,"="):"";return We()(n).call(n,function(b){return p(b)}).join(" ".concat(v))}if(a==="pipeDelimited"){var y=s?"".concat(r,"="):"";return We()(n).call(n,function(b){return p(b)}).join("|".concat(y))}}function Mo(e){var r=e.key,n=e.value,a=e.style,s=e.explode,c=e.escape,p=function(y){return Sr(y,{escape:c})},g=st()(n);if(a==="simple")return g.reduce(function(v,y){var b,I,D,B=p(n[y]),$=s?"=":",",re=v?"".concat(v,","):"";return Qe()(b=Qe()(I=Qe()(D="".concat(re)).call(D,y)).call(I,$)).call(b,B)},"");if(a==="label")return g.reduce(function(v,y){var b,I,D,B=p(n[y]),$=s?"=":".",re=v?"".concat(v,"."):".";return Qe()(b=Qe()(I=Qe()(D="".concat(re)).call(D,y)).call(I,$)).call(b,B)},"");if(a==="matrix"&&s)return g.reduce(function(v,y){var b,I,D=p(n[y]),B=v?"".concat(v,";"):";";return Qe()(b=Qe()(I="".concat(B)).call(I,y,"=")).call(b,D)},"");if(a==="matrix")return g.reduce(function(v,y){var b,I,D=p(n[y]),B=v?"".concat(v,","):";".concat(r,"=");return Qe()(b=Qe()(I="".concat(B)).call(I,y,",")).call(b,D)},"");if(a==="form")return g.reduce(function(v,y){var b,I,D,B,$=p(n[y]),re=v?Qe()(b="".concat(v)).call(b,s?"&":","):"",q=s?"=":",";return Qe()(I=Qe()(D=Qe()(B="".concat(re)).call(B,y)).call(D,q)).call(I,$)},"")}function bd(e){var r=e.key,n=e.value,a=e.style,s=e.escape,c=function(v){return Sr(v,{escape:s})};if(a==="simple")return c(n);if(a==="label")return".".concat(c(n));if(a==="matrix"){var p;return Qe()(p=";".concat(r,"=")).call(p,c(n))}if(a==="form")return c(n);if(a==="deepObject")return c(n,{},!0)}var As=function(r,n){n.body=r};const xd=As;var Hl={serializeRes:Af,mergeInQueryOrForm:Yl};function Cs(e){return Lo.apply(this,arguments)}function Lo(){return Lo=Ct(Ce().mark(function e(r){var n,a,s,c,p,g=arguments;return Ce().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(n=g.length>1&&g[1]!==void 0?g[1]:{},A(r)==="object"&&(n=r,r=n.url),n.headers=n.headers||{},Hl.mergeInQueryOrForm(n),n.headers&&st()(n.headers).forEach(function(b){var I=n.headers[b];typeof I=="string"&&(n.headers[b]=I.replace(/\n+/g," "))}),!n.requestInterceptor){y.next=12;break}return y.next=8,n.requestInterceptor(n);case 8:if(y.t0=y.sent,y.t0){y.next=11;break}y.t0=n;case 11:n=y.t0;case 12:return a=n.headers["content-type"]||n.headers["Content-Type"],/multipart\/form-data/i.test(a)&&n.body instanceof Wl&&(delete n.headers["content-type"],delete n.headers["Content-Type"]),y.prev=14,y.next=17,(n.userFetch||fetch)(n.url,n);case 17:return s=y.sent,y.next=20,Hl.serializeRes(s,r,n);case 20:if(s=y.sent,!n.responseInterceptor){y.next=28;break}return y.next=24,n.responseInterceptor(s);case 24:if(y.t1=y.sent,y.t1){y.next=27;break}y.t1=s;case 27:s=y.t1;case 28:y.next=39;break;case 30:if(y.prev=30,y.t2=y.catch(14),s){y.next=34;break}throw y.t2;case 34:throw c=new Error(s.statusText||"response status is ".concat(s.status)),c.status=s.status,c.statusCode=s.status,c.responseError=y.t2,c;case 39:if(s.ok){y.next=45;break}throw p=new Error(s.statusText||"response status is ".concat(s.status)),p.status=s.status,p.statusCode=s.status,p.response=s,p;case 45:return y.abrupt("return",s);case 46:case"end":return y.stop()}},e,null,[[14,30]])})),Lo.apply(this,arguments)}var wf=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return/(json|xml|yaml|text)\b/.test(r)};function zl(e,r){return r&&(r.indexOf("application/json")===0||r.indexOf("+json")>0)?JSON.parse(e):Ul.load(e)}function Af(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=n.loadSpec,s=a===void 0?!1:a,c={ok:e.ok,url:e.url||r,status:e.status,statusText:e.statusText,headers:Es(e.headers)},p=c.headers["content-type"],g=s||wf(p),v=g?e.text:e.blob||e.buffer;return v.call(e).then(function(y){if(c.text=y,c.data=y,g)try{var b=zl(y,p);c.body=b,c.obj=b}catch(I){c.parseError=I}return c})}function Gl(e){var r=De()(e).call(e,", ");return r?e.split(", "):e}function Es(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return typeof tt()(e)!="function"?{}:St()(tt()(e).call(e)).reduce(function(r,n){var a=Xe(n,2),s=a[0],c=a[1];return r[s]=Gl(c),r},{})}function Os(e,r){return!r&&typeof navigator!="undefined"&&(r=navigator),r&&r.product==="ReactNative"?!!(e&&A(e)==="object"&&typeof e.uri=="string"):typeof Vi!="undefined"&&e instanceof Vi||typeof ws!="undefined"&&e instanceof ws||ArrayBuffer.isView(e)?!0:e!==null&&A(e)==="object"&&typeof e.pipe=="function"}function $l(e,r){return Array.isArray(e)&&e.some(function(n){return Os(n,r)})}var Kl={form:",",spaceDelimited:"%20",pipeDelimited:"|"},Cf={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function Za(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=r.collectionFormat,s=r.allowEmptyValue,c=r.serializationOption,p=r.encoding,g=A(r)==="object"&&!Array.isArray(r)?r.value:r,v=n?function($){return $.toString()}:function($){return encodeURIComponent($)},y=v(e);if(typeof g=="undefined"&&s)return[[y,""]];if(Os(g)||$l(g))return[[y,g]];if(c)return Ef(e,g,n,c);if(p){if([A(p.style),A(p.explode),A(p.allowReserved)].some(function($){return $!=="undefined"})){var b=p.style,I=p.explode,D=p.allowReserved;return Ef(e,g,n,{style:b,explode:I,allowReserved:D})}if(p.contentType){if(p.contentType==="application/json"){var B=typeof g=="string"?g:Wt()(g);return[[y,v(B)]]}return[[y,v(g.toString())]]}return A(g)!=="object"?[[y,v(g)]]:Array.isArray(g)&&g.every(function($){return A($)!=="object"})?[[y,We()(g).call(g,v).join(",")]]:[[y,v(Wt()(g))]]}return A(g)!=="object"?[[y,v(g)]]:Array.isArray(g)?a==="multi"?[[y,We()(g).call(g,v)]]:[[y,We()(g).call(g,v).join(Cf[a||"csv"])]]:[[y,""]]}function Ef(e,r,n,a){var s,c=a.style||"form",p=typeof a.explode=="undefined"?c==="form":a.explode,g=n?!1:a&&a.allowReserved?"unsafe":"reserved",v=function(B){return Sr(B,{escape:g})},y=n?function(D){return D}:function(D){return Sr(D,{escape:g})};if(A(r)!=="object")return[[y(e),v(r)]];if(Array.isArray(r))return p?[[y(e),We()(r).call(r,v)]]:[[y(e),We()(r).call(r,v).join(Kl[c])]];if(c==="deepObject"){var b;return We()(b=st()(r)).call(b,function(D){var B;return[y(Qe()(B="".concat(e,"[")).call(B,D,"]")),v(r[D])]})}if(p){var I;return We()(I=st()(r)).call(I,function(D){return[y(D),v(r[D])]})}return[[y(e),We()(s=st()(r)).call(s,function(D){var B;return[Qe()(B="".concat(y(D),",")).call(B,v(r[D]))]}).join(",")]]}function Ts(e){return Ir()(e).reduce(function(r,n){var a=Xe(n,2),s=a[0],c=a[1],p=Oe(Za(s,c,!0)),g;try{for(p.s();!(g=p.n()).done;){var v=Xe(g.value,2),y=v[0],b=v[1];if(Array.isArray(b)){var I=Oe(b),D;try{for(I.s();!(D=I.n()).done;){var B=D.value;if(ArrayBuffer.isView(B)){var $=new ws([B]);r.append(y,$)}else r.append(y,B)}}catch(q){I.e(q)}finally{I.f()}}else if(ArrayBuffer.isView(b)){var re=new ws([b]);r.append(y,re)}else r.append(y,b)}}catch(q){p.e(q)}finally{p.f()}return r},new Wl)}function ai(e){var r=st()(e).reduce(function(n,a){var s=Oe(Za(a,e[a])),c;try{for(s.s();!(c=s.n()).done;){var p=Xe(c.value,2),g=p[0],v=p[1];n[g]=v}}catch(y){s.e(y)}finally{s.f()}return n},{});return Mt().stringify(r,{encode:!1,indices:!1})||""}function Yl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=e.url,n=r===void 0?"":r,a=e.query,s=e.form,c=function(){for(var ae=arguments.length,pe=new Array(ae),Ee=0;Ee<ae;Ee++)pe[Ee]=arguments[Ee];var ye=hr()(pe).call(pe,function(Pe){return Pe}).join("&");return ye?"?".concat(ye):""};if(s){var p=st()(s).some(function(ie){var ae=s[ie].value;return Os(ae)||$l(ae)}),g=e.headers["content-type"]||e.headers["Content-Type"];if(p||/multipart\/form-data/i.test(g)){var v=Ts(e.form);xd(v,e)}else e.body=ai(s);delete e.form}if(a){var y=n.split("?"),b=Xe(y,2),I=b[0],D=b[1],B="";if(D){var $=Mt().parse(D),re=st()(a);re.forEach(function(ie){return delete $[ie]}),B=Mt().stringify($,{encode:!0})}var q=c(B,ai(a));e.url=I+q,delete e.query}return e}function Sd(e,r,n){return n=n||function(a){return a},r=r||function(a){return a},function(a){return typeof a=="string"&&(a={url:a}),Hl.mergeInQueryOrForm(a),a=r(a),n(e(a))}}function Jl(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function mn(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),ne(e,E(a.key),a)}}function Qt(e,r,n){return r&&mn(e.prototype,r),n&&mn(e,n),ne(e,"prototype",{writable:!1}),e}var $n=o(35784),Ui=o.n($n),Wi=o(22583),Hi=o.n(Wi),Xl=o(93963),Of=o.n(Xl);/*!
80
80
  * https://github.com/Starcounter-Jack/JSON-Patch
81
81
  * (c) 2017-2022 Joachim Wester
@@ -90,7 +90,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
90
90
  *
91
91
  * Copyright (c) 2014-2017, Jon Schlinkert.
92
92
  * Released under the MIT License.
93
- */function pc(e){return Object.prototype.toString.call(e)==="[object Object]"}function ka(e){var r,n;return pc(e)===!1?!1:(r=e.constructor,r===void 0?!0:(n=r.prototype,!(pc(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}const Ud={body:Js,header:Tr,query:zd,path:Hd,formData:Wd};function Js(e){var r=e.req,n=e.value;r.body=n}function Wd(e){var r=e.req,n=e.value,a=e.parameter;(n||a.allowEmptyValue)&&(r.form=r.form||{},r.form[a.name]={value:n,allowEmptyValue:a.allowEmptyValue,collectionFormat:a.collectionFormat})}function Tr(e){var r=e.req,n=e.parameter,a=e.value;r.headers=r.headers||{},typeof a!="undefined"&&(r.headers[n.name]=a)}function Hd(e){var r=e.req,n=e.value,a=e.parameter;r.url=r.url.split("{".concat(a.name,"}")).join(encodeURIComponent(n))}function zd(e){var r=e.req,n=e.value,a=e.parameter;if(r.query=r.query||{},n===!1&&a.type==="boolean"&&(n="false"),n===0&&["number","integer"].indexOf(a.type)>-1&&(n="0"),n)r.query[a.name]={collectionFormat:a.collectionFormat,value:n};else if(a.allowEmptyValue&&n!==void 0){var s=a.name;r.query[s]=r.query[s]||{},r.query[s].allowEmptyValue=!0}}function Xs(e,r){return De()(r).call(r,"application/json")?typeof e=="string"?e:Wt()(e):e.toString()}function Qs(e){var r=e.req,n=e.value,a=e.parameter,s=a.name,c=a.style,p=a.explode,g=a.content;if(g){var v=st()(g)[0];r.url=r.url.split("{".concat(s,"}")).join(Sr(Xs(n,v),{escape:!0}));return}var y=zr({key:a.name,value:n,style:c||"simple",explode:p||!1,escape:!0});r.url=r.url.split("{".concat(s,"}")).join(y)}function t(e){var r=e.req,n=e.value,a=e.parameter;if(r.query=r.query||{},a.content){var s=st()(a.content)[0];r.query[a.name]=Xs(n,s);return}if(n===!1&&(n="false"),n===0&&(n="0"),n){var c=a.style,p=a.explode,g=a.allowReserved;r.query[a.name]={value:n,serializationOption:{style:c,explode:p,allowReserved:g}}}else if(a.allowEmptyValue&&n!==void 0){var v=a.name;r.query[v]=r.query[v]||{},r.query[v].allowEmptyValue=!0}}var i=["accept","authorization","content-type"];function u(e){var r=e.req,n=e.parameter,a=e.value;if(r.headers=r.headers||{},!(i.indexOf(n.name.toLowerCase())>-1)){if(n.content){var s=st()(n.content)[0];r.headers[n.name]=Xs(a,s);return}typeof a!="undefined"&&(r.headers[n.name]=zr({key:n.name,value:a,style:n.style||"simple",explode:typeof n.explode=="undefined"?!1:n.explode,escape:!1}))}}function l(e){var r=e.req,n=e.parameter,a=e.value;r.headers=r.headers||{};var s=A(a);if(n.content){var c,p=st()(n.content)[0];r.headers.Cookie=Qe()(c="".concat(n.name,"=")).call(c,Xs(a,p));return}if(s!=="undefined"){var g=s==="object"&&!Array.isArray(a)&&n.explode?"":"".concat(n.name,"=");r.headers.Cookie=g+zr({key:n.name,value:a,escape:!1,style:n.style||"form",explode:typeof n.explode=="undefined"?!1:n.explode})}}var f=o(1858),m=o.n(f),S=function(){return typeof m()!="undefined"?m():typeof self!="undefined"?self:window}(),P=S.btoa;const R=P;function j(e,r){var n=e.operation,a=e.requestBody,s=e.securities,c=e.spec,p=e.attachContentTypeForEmptyPayload,g=e.requestContentType;r=le({request:r,securities:s,operation:n,spec:c});var v=n.requestBody||{},y=st()(v.content||{}),b=g&&y.indexOf(g)>-1;if(a||p){if(g&&b)r.headers["Content-Type"]=g;else if(!g){var I=y[0];I&&(r.headers["Content-Type"]=I,g=I)}}else g&&b&&(r.headers["Content-Type"]=g);if(!e.responseContentType&&n.responses){var D,B=hr()(D=Ir()(n.responses)).call(D,function(re){var q=Xe(re,2),ie=q[0],ae=q[1],pe=parseInt(ie,10);return pe>=200&&pe<300&&ka(ae.content)}).reduce(function(re,q){var ie=Xe(q,2),ae=ie[1];return Qe()(re).call(re,st()(ae.content))},[]);B.length>0&&(r.headers.accept=B.join(", "))}if(a)if(g){if(y.indexOf(g)>-1)if(g==="application/x-www-form-urlencoded"||g==="multipart/form-data")if(A(a)==="object"){var $=(v.content[g]||{}).encoding||{};r.form={},st()(a).forEach(function(re){r.form[re]={value:a[re],encoding:$[re]||{}}})}else r.form=a;else r.body=a}else r.body=a;return r}function le(e){var r=e.request,n=e.securities,a=n===void 0?{}:n,s=e.operation,c=s===void 0?{}:s,p=e.spec,g=G({},r),v=a.authorized,y=v===void 0?{}:v,b=c.security||p.security||[],I=y&&!!st()(y).length,D=Oi()(p,["components","securitySchemes"])||{};return g.headers=g.headers||{},g.query=g.query||{},!st()(a).length||!I||!b||Array.isArray(c.security)&&!c.security.length?r:(b.forEach(function(B){st()(B).forEach(function($){var re=y[$],q=D[$];if(!!re){var ie=re.value||re,ae=q.type;if(re){if(ae==="apiKey")q.in==="query"&&(g.query[q.name]=ie),q.in==="header"&&(g.headers[q.name]=ie),q.in==="cookie"&&(g.cookies[q.name]=ie);else if(ae==="http"){if(/^basic$/i.test(q.scheme)){var pe,Ee=ie.username||"",ye=ie.password||"",Pe=R(Qe()(pe="".concat(Ee,":")).call(pe,ye));g.headers.Authorization="Basic ".concat(Pe)}/^bearer$/i.test(q.scheme)&&(g.headers.Authorization="Bearer ".concat(ie))}else if(ae==="oauth2"||ae==="openIdConnect"){var we,be=re.token||{},he=q["x-tokenName"]||"access_token",Ie=be[he],Fe=be.token_type;(!Fe||Fe.toLowerCase()==="bearer")&&(Fe="Bearer"),g.headers.Authorization=Qe()(we="".concat(Fe," ")).call(we,Ie)}}}})}),g)}function de(e,r){var n=e.spec,a=e.operation,s=e.securities,c=e.requestContentType,p=e.responseContentType,g=e.attachContentTypeForEmptyPayload;if(r=Ae({request:r,securities:s,operation:a,spec:n}),r.body||r.form||g){var v,y;if(c)r.headers["Content-Type"]=c;else if(Array.isArray(a.consumes)){var b=Xe(a.consumes,1);r.headers["Content-Type"]=b[0]}else if(Array.isArray(n.consumes)){var I=Xe(n.consumes,1);r.headers["Content-Type"]=I[0]}else a.parameters&&hr()(v=a.parameters).call(v,function(q){return q.type==="file"}).length?r.headers["Content-Type"]="multipart/form-data":a.parameters&&hr()(y=a.parameters).call(y,function(q){return q.in==="formData"}).length&&(r.headers["Content-Type"]="application/x-www-form-urlencoded")}else if(c){var D,B,$=a.parameters&&hr()(D=a.parameters).call(D,function(q){return q.in==="body"}).length>0,re=a.parameters&&hr()(B=a.parameters).call(B,function(q){return q.in==="formData"}).length>0;($||re)&&(r.headers["Content-Type"]=c)}return!p&&Array.isArray(a.produces)&&a.produces.length>0&&(r.headers.accept=a.produces.join(", ")),r}function Ae(e){var r=e.request,n=e.securities,a=n===void 0?{}:n,s=e.operation,c=s===void 0?{}:s,p=e.spec,g=G({},r),v=a.authorized,y=v===void 0?{}:v,b=a.specSecurity,I=b===void 0?[]:b,D=c.security||I,B=y&&!!st()(y).length,$=p.securityDefinitions;return g.headers=g.headers||{},g.query=g.query||{},!st()(a).length||!B||!D||Array.isArray(c.security)&&!c.security.length?r:(D.forEach(function(re){st()(re).forEach(function(q){var ie=y[q];if(!!ie){var ae=ie.token,pe=ie.value||ie,Ee=$[q],ye=Ee.type,Pe=Ee["x-tokenName"]||"access_token",we=ae&&ae[Pe],be=ae&&ae.token_type;if(ie){if(ye==="apiKey"){var he=Ee.in==="query"?"query":"headers";g[he]=g[he]||{},g[he][Ee.name]=pe}else if(ye==="basic")if(pe.header)g.headers.authorization=pe.header;else{var Ie,Fe=pe.username||"",je=pe.password||"";pe.base64=R(Qe()(Ie="".concat(Fe,":")).call(Ie,je)),g.headers.authorization="Basic ".concat(pe.base64)}else if(ye==="oauth2"&&we){var Ge;be=!be||be.toLowerCase()==="bearer"?"Bearer":be,g.headers.authorization=Qe()(Ge="".concat(be," ")).call(Ge,we)}}}})}),g)}var me=["http","fetch","spec","operationId","pathName","method","parameters","securities"],ke=function(r){return Array.isArray(r)?r:[]},Ne=zf("OperationNotFoundError",function(r,n,a){this.originalError=a,W()(this,n||{})}),ze=function(r,n){return hr()(n).call(n,function(a){return a.name===r})},Ye=function(r){var n={};r.forEach(function(s){n[s.in]||(n[s.in]={}),n[s.in][s.name]=s});var a=[];return st()(n).forEach(function(s){st()(n[s]).forEach(function(c){a.push(n[s][c])})}),a},Ze={buildRequest:rt};function Je(e){var r=e.http,n=e.fetch,a=e.spec,s=e.operationId,c=e.pathName,p=e.method,g=e.parameters,v=e.securities,y=or(e,me),b=r||n||Cs;c&&p&&!s&&(s=Ia(c,p));var I=Ze.buildRequest(G({spec:a,operationId:s,parameters:g,securities:v,http:b},y));return I.body&&(ka(I.body)||Array.isArray(I.body))&&(I.body=Wt()(I.body)),b(I)}function rt(e){var r,n,a=e.spec,s=e.operationId,c=e.responseContentType,p=e.scheme,g=e.requestInterceptor,v=e.responseInterceptor,y=e.contextUrl,b=e.userFetch,I=e.server,D=e.serverVariables,B=e.http,$=e.signal,re=e.parameters,q=e.parameterBuilders,ie=Gs(a);q||(ie?q=w:q=Ud);var ae=B&&B.withCredentials?"include":"same-origin",pe={url:"",credentials:ae,headers:{},cookies:{}};$&&(pe.signal=$),g&&(pe.requestInterceptor=g),v&&(pe.responseInterceptor=v),b&&(pe.userFetch=b);var Ee=rc(a,s);if(!Ee)throw new Ne("Operation ".concat(s," not found"));var ye=Ee.operation,Pe=ye===void 0?{}:ye,we=Ee.method,be=Ee.pathName;if(pe.url+=pt({spec:a,scheme:p,contextUrl:y,server:I,serverVariables:D,pathName:be,method:we}),!s)return delete pe.cookies,pe;pe.url+=be,pe.method="".concat(we).toUpperCase(),re=re||{};var he=a.paths[be]||{};c&&(pe.headers.accept=c);var Ie=Ye(Qe()(r=Qe()(n=[]).call(n,ke(Pe.parameters))).call(r,ke(he.parameters)));Ie.forEach(function(Ge){var bt=q[Ge.in],qe;if(Ge.in==="body"&&Ge.schema&&Ge.schema.properties&&(qe=re),qe=Ge&&Ge.name&&re[Ge.name],typeof qe=="undefined"){var Zt;qe=Ge&&Ge.name&&re[Qe()(Zt="".concat(Ge.in,".")).call(Zt,Ge.name)]}else if(ze(Ge.name,Ie).length>1){var sr;console.warn(Qe()(sr="Parameter '".concat(Ge.name,"' is ambiguous because the defined spec has more than one parameter with the name: '")).call(sr,Ge.name,"' and the passed-in parameter values did not define an 'in' value."))}if(qe!==null){if(typeof Ge.default!="undefined"&&typeof qe=="undefined"&&(qe=Ge.default),typeof qe=="undefined"&&Ge.required&&!Ge.allowEmptyValue)throw new Error("Required parameter ".concat(Ge.name," is not provided"));if(ie&&Ge.schema&&Ge.schema.type==="object"&&typeof qe=="string")try{qe=JSON.parse(qe)}catch(gr){throw new Error("Could not parse object parameter value string as JSON")}bt&&bt({req:pe,parameter:Ge,value:qe,operation:Pe,spec:a})}});var Fe=G(G({},e),{},{operation:Pe});if(ie?pe=j(Fe,pe):pe=de(Fe,pe),pe.cookies&&st()(pe.cookies).length){var je=st()(pe.cookies).reduce(function(Ge,bt){var qe=pe.cookies[bt],Zt=Ge?"&":"",sr=dc.serialize(bt,qe);return Ge+Zt+sr},"");pe.headers.Cookie=je}return pe.cookies&&delete pe.cookies,Yl(pe),pe}var vt=function(r){return r?r.replace(/\W/g,""):null};function pt(e){var r=Gs(e.spec);return r?Dt(e):wr(e)}function Dt(e){var r=e.spec,n=e.pathName,a=e.method,s=e.server,c=e.contextUrl,p=e.serverVariables,g=p===void 0?{}:p,v=Oi()(r,["paths",n,(a||"").toLowerCase(),"servers"])||Oi()(r,["paths",n,"servers"])||Oi()(r,["servers"]),y="",b=null;if(s&&v&&v.length){var I=We()(v).call(v,function($){return $.url});I.indexOf(s)>-1&&(y=s,b=v[I.indexOf(s)])}if(!y&&v&&v.length){y=v[0].url;var D=Xe(v,1);b=D[0]}if(y.indexOf("{")>-1){var B=Ur(y);B.forEach(function($){if(b.variables&&b.variables[$]){var re=b.variables[$],q=g[$]||re.default,ie=new RegExp("{".concat($,"}"),"g");y=y.replace(ie,q)}})}return ur(y,c)}function ur(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=e&&r?H.parse(H.resolve(r,e)):H.parse(e),a=H.parse(r),s=vt(n.protocol)||vt(a.protocol)||"",c=n.host||a.host,p=n.pathname||"",g;if(s&&c){var v;g=Qe()(v="".concat(s,"://")).call(v,c+p)}else g=p;return g[g.length-1]==="/"?Gn()(g).call(g,0,-1):g}function Ur(e){for(var r=[],n=/{([^}]+)}/g,a;a=n.exec(e);)r.push(a[1]);return r}function wr(e){var r=e.spec,n=e.scheme,a=e.contextUrl,s=a===void 0?"":a,c=H.parse(s),p=Array.isArray(r.schemes)?r.schemes[0]:null,g=n||p||vt(c.protocol)||"http",v=r.host||c.host||"",y=r.basePath||"",b;if(g&&v){var I;b=Qe()(I="".concat(g,"://")).call(I,v+y)}else b=y;return b[b.length-1]==="/"?Gn()(b).call(b,0,-1):b}Gt.http=Cs,Gt.makeHttp=Sd.bind(null,Gt.http),Gt.resolve=oc,Gt.resolveSubtree=Yn,Gt.execute=Je,Gt.serializeRes=Af,Gt.serializeHeaders=Es,Gt.clearCache=br,Gt.makeApisTagOperation=fc,Gt.buildRequest=rt,Gt.helpers={opId:$s},Gt.getBaseUrl=pt;function Gt(e){var r=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof e=="string"?n.url=e:n=e,!(this instanceof Gt))return new Gt(n);W()(this,n);var a=this.resolve().then(function(){return r.disableInterfaces||W()(r,Gt.makeApisTagOperation(r)),r});return a.client=this,a}Gt.prototype={http:Cs,execute:function(r){return this.applyDefaults(),Gt.execute(G({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:typeof this.url=="string"?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},r))},resolve:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Gt.resolve(G({spec:this.spec,url:this.url,http:this.http||this.fetch,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null,skipNormalization:this.skipNormalization||!1},n)).then(function(a){return r.originalSpec=r.spec,r.spec=a.spec,r.errors=a.errors,r})}},Gt.prototype.applyDefaults=function(){var r=this.spec,n=this.url;if(n&&K()(n).call(n,"http")){var a=H.parse(n);r.host||(r.host=a.host),r.schemes||(r.schemes=[a.protocol.replace(":","")]),r.basePath||(r.basePath="/")}};var yn=Gt.helpers;const Fr=Gt;var M=o(2784),Bt=o(59839),fr=o(53476),at=o(23268),yr=o(18445),Ar=o(23708),Fa=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{g(n.next(v))}catch(y){s(y)}},p=v=>{try{g(n.throw(v))}catch(y){s(y)}},g=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);g((n=n.apply(e,r)).next())});const Ti=Object.values(Ar.FileUploadFormats),Jr=["application/octet-stream","application/pdf","application/gzip","application/zip"],Jn=["image/","audio/","video/"];function Nr(e){if(Jn.some(r=>e.startsWith(r)))return e}function ao(e){return Jr.includes(e)?!0:Jn.some(r=>e.startsWith(r))}function Pi(e){const r=e.type==="array"?e.items:e;if(!r||!r.type||(r==null?void 0:r.type)==="any")return!0;const n=r.contentMediaType||"",a=r.format||r.contentEncoding||(ao(n)?"binary":"");return r.type===Ar.DefinitionTypes.STRING&&Ti.includes(a)}function Ji(e,r){if(!e||!e.type||e.type==="any")return ao(r);const n=e.format||e.contentEncoding||"";return e.type===Ar.DefinitionTypes.STRING&&Ti.includes(n)}function Xi(e){return new Promise((r,n)=>{const a=new FileReader;a.onload=()=>{const c=a.result.replace(/data:.*\/.*;base64,/g,"");r(c)},a.onerror=()=>n(a.error),a.readAsDataURL(e)})}function Xr({format:e,contentEncoding:r,contentMediaType:n}){return[e,r,n].includes(Ar.FileUploadFormats.BASE64)}function oo(e,r){return Fa(this,null,function*(){const n=Object.values(e);let a=n.length===1?n[0]:n;return r.type===Ar.DefinitionTypes.STRING&&Xr(r)?a=yield Xi(n[0]):r.type===Ar.DefinitionTypes.ARRAY&&r.items&&(Xr(r.items)?a=yield Promise.all(n.map(c=>Fa(this,null,function*(){return yield Xi(c)}))):a=n),a})}var Zs=o(93892),Yt=o(80127),Jt=o(70669),kn=o(43284),Ng=o(16610);function Dg({response:e}){return M.createElement(M.Fragment,null,M.createElement(kn.EE,null," Body: "),Bg(e))}function Bg(e){return e.body?M.createElement(Bt.JsonViewer,{data:e.body,jsonSampleExpandLevel:1}):e.fileInfo?M.createElement(Ng.s,{fileInfo:e.fileInfo}):e.data!==null?e.data?M.createElement(Bt.SourceCode,{lang:(0,at.M)(e.headers["Content-Type"]||"text/plain"),source:e.data,withCopyButton:!0}):M.createElement(kn.w3,null,M.createElement("i",null,"(no content)")):null}var qs=o(26141);function jg({headers:e}){const r=(0,fr.useRecoilValue)(qs.lk),[n,a]=(0,M.useState)(!0),{maxResponseHeadersToShowInTryIt:s}=r,c=Object.keys(e),p=!!s&&c.length>s,g=p&&n?[...c].splice(0,s):[...c],v=()=>{a(!n)};return M.createElement(M.Fragment,null,M.createElement(kn.EE,null," Headers: "),M.createElement(kn.w3,null,g.map(y=>M.createElement("div",{key:y},M.createElement(Vp,null,y,":"),M.createElement("code",null,e[y]))),p&&M.createElement(Up,{onClick:v},n?"Show more...":"Hide headers")))}const Vp=Jt.ZP.strong`
93
+ */function pc(e){return Object.prototype.toString.call(e)==="[object Object]"}function ka(e){var r,n;return pc(e)===!1?!1:(r=e.constructor,r===void 0?!0:(n=r.prototype,!(pc(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}const Ud={body:Js,header:Tr,query:zd,path:Hd,formData:Wd};function Js(e){var r=e.req,n=e.value;r.body=n}function Wd(e){var r=e.req,n=e.value,a=e.parameter;(n||a.allowEmptyValue)&&(r.form=r.form||{},r.form[a.name]={value:n,allowEmptyValue:a.allowEmptyValue,collectionFormat:a.collectionFormat})}function Tr(e){var r=e.req,n=e.parameter,a=e.value;r.headers=r.headers||{},typeof a!="undefined"&&(r.headers[n.name]=a)}function Hd(e){var r=e.req,n=e.value,a=e.parameter;r.url=r.url.split("{".concat(a.name,"}")).join(encodeURIComponent(n))}function zd(e){var r=e.req,n=e.value,a=e.parameter;if(r.query=r.query||{},n===!1&&a.type==="boolean"&&(n="false"),n===0&&["number","integer"].indexOf(a.type)>-1&&(n="0"),n)r.query[a.name]={collectionFormat:a.collectionFormat,value:n};else if(a.allowEmptyValue&&n!==void 0){var s=a.name;r.query[s]=r.query[s]||{},r.query[s].allowEmptyValue=!0}}function Xs(e,r){return De()(r).call(r,"application/json")?typeof e=="string"?e:Wt()(e):e.toString()}function Qs(e){var r=e.req,n=e.value,a=e.parameter,s=a.name,c=a.style,p=a.explode,g=a.content;if(g){var v=st()(g)[0];r.url=r.url.split("{".concat(s,"}")).join(Sr(Xs(n,v),{escape:!0}));return}var y=zr({key:a.name,value:n,style:c||"simple",explode:p||!1,escape:!0});r.url=r.url.split("{".concat(s,"}")).join(y)}function t(e){var r=e.req,n=e.value,a=e.parameter;if(r.query=r.query||{},a.content){var s=st()(a.content)[0];r.query[a.name]=Xs(n,s);return}if(n===!1&&(n="false"),n===0&&(n="0"),n){var c=a.style,p=a.explode,g=a.allowReserved;r.query[a.name]={value:n,serializationOption:{style:c,explode:p,allowReserved:g}}}else if(a.allowEmptyValue&&n!==void 0){var v=a.name;r.query[v]=r.query[v]||{},r.query[v].allowEmptyValue=!0}}var i=["accept","authorization","content-type"];function u(e){var r=e.req,n=e.parameter,a=e.value;if(r.headers=r.headers||{},!(i.indexOf(n.name.toLowerCase())>-1)){if(n.content){var s=st()(n.content)[0];r.headers[n.name]=Xs(a,s);return}typeof a!="undefined"&&(r.headers[n.name]=zr({key:n.name,value:a,style:n.style||"simple",explode:typeof n.explode=="undefined"?!1:n.explode,escape:!1}))}}function l(e){var r=e.req,n=e.parameter,a=e.value;r.headers=r.headers||{};var s=A(a);if(n.content){var c,p=st()(n.content)[0];r.headers.Cookie=Qe()(c="".concat(n.name,"=")).call(c,Xs(a,p));return}if(s!=="undefined"){var g=s==="object"&&!Array.isArray(a)&&n.explode?"":"".concat(n.name,"=");r.headers.Cookie=g+zr({key:n.name,value:a,escape:!1,style:n.style||"form",explode:typeof n.explode=="undefined"?!1:n.explode})}}var f=o(1858),m=o.n(f),S=function(){return typeof m()!="undefined"?m():typeof self!="undefined"?self:window}(),P=S.btoa;const R=P;function j(e,r){var n=e.operation,a=e.requestBody,s=e.securities,c=e.spec,p=e.attachContentTypeForEmptyPayload,g=e.requestContentType;r=le({request:r,securities:s,operation:n,spec:c});var v=n.requestBody||{},y=st()(v.content||{}),b=g&&y.indexOf(g)>-1;if(a||p){if(g&&b)r.headers["Content-Type"]=g;else if(!g){var I=y[0];I&&(r.headers["Content-Type"]=I,g=I)}}else g&&b&&(r.headers["Content-Type"]=g);if(!e.responseContentType&&n.responses){var D,B=hr()(D=Ir()(n.responses)).call(D,function(re){var q=Xe(re,2),ie=q[0],ae=q[1],pe=parseInt(ie,10);return pe>=200&&pe<300&&ka(ae.content)}).reduce(function(re,q){var ie=Xe(q,2),ae=ie[1];return Qe()(re).call(re,st()(ae.content))},[]);B.length>0&&(r.headers.accept=B.join(", "))}if(a)if(g){if(y.indexOf(g)>-1)if(g==="application/x-www-form-urlencoded"||g==="multipart/form-data")if(A(a)==="object"){var $=(v.content[g]||{}).encoding||{};r.form={},st()(a).forEach(function(re){r.form[re]={value:a[re],encoding:$[re]||{}}})}else r.form=a;else r.body=a}else r.body=a;return r}function le(e){var r=e.request,n=e.securities,a=n===void 0?{}:n,s=e.operation,c=s===void 0?{}:s,p=e.spec,g=G({},r),v=a.authorized,y=v===void 0?{}:v,b=c.security||p.security||[],I=y&&!!st()(y).length,D=Oi()(p,["components","securitySchemes"])||{};return g.headers=g.headers||{},g.query=g.query||{},!st()(a).length||!I||!b||Array.isArray(c.security)&&!c.security.length?r:(b.forEach(function(B){st()(B).forEach(function($){var re=y[$],q=D[$];if(!!re){var ie=re.value||re,ae=q.type;if(re){if(ae==="apiKey")q.in==="query"&&(g.query[q.name]=ie),q.in==="header"&&(g.headers[q.name]=ie),q.in==="cookie"&&(g.cookies[q.name]=ie);else if(ae==="http"){if(/^basic$/i.test(q.scheme)){var pe,Ee=ie.username||"",ye=ie.password||"",Pe=R(Qe()(pe="".concat(Ee,":")).call(pe,ye));g.headers.Authorization="Basic ".concat(Pe)}/^bearer$/i.test(q.scheme)&&(g.headers.Authorization="Bearer ".concat(ie))}else if(ae==="oauth2"||ae==="openIdConnect"){var we,be=re.token||{},he=q["x-tokenName"]||"access_token",Ie=be[he],Fe=be.token_type;(!Fe||Fe.toLowerCase()==="bearer")&&(Fe="Bearer"),g.headers.Authorization=Qe()(we="".concat(Fe," ")).call(we,Ie)}}}})}),g)}function de(e,r){var n=e.spec,a=e.operation,s=e.securities,c=e.requestContentType,p=e.responseContentType,g=e.attachContentTypeForEmptyPayload;if(r=Ae({request:r,securities:s,operation:a,spec:n}),r.body||r.form||g){var v,y;if(c)r.headers["Content-Type"]=c;else if(Array.isArray(a.consumes)){var b=Xe(a.consumes,1);r.headers["Content-Type"]=b[0]}else if(Array.isArray(n.consumes)){var I=Xe(n.consumes,1);r.headers["Content-Type"]=I[0]}else a.parameters&&hr()(v=a.parameters).call(v,function(q){return q.type==="file"}).length?r.headers["Content-Type"]="multipart/form-data":a.parameters&&hr()(y=a.parameters).call(y,function(q){return q.in==="formData"}).length&&(r.headers["Content-Type"]="application/x-www-form-urlencoded")}else if(c){var D,B,$=a.parameters&&hr()(D=a.parameters).call(D,function(q){return q.in==="body"}).length>0,re=a.parameters&&hr()(B=a.parameters).call(B,function(q){return q.in==="formData"}).length>0;($||re)&&(r.headers["Content-Type"]=c)}return!p&&Array.isArray(a.produces)&&a.produces.length>0&&(r.headers.accept=a.produces.join(", ")),r}function Ae(e){var r=e.request,n=e.securities,a=n===void 0?{}:n,s=e.operation,c=s===void 0?{}:s,p=e.spec,g=G({},r),v=a.authorized,y=v===void 0?{}:v,b=a.specSecurity,I=b===void 0?[]:b,D=c.security||I,B=y&&!!st()(y).length,$=p.securityDefinitions;return g.headers=g.headers||{},g.query=g.query||{},!st()(a).length||!B||!D||Array.isArray(c.security)&&!c.security.length?r:(D.forEach(function(re){st()(re).forEach(function(q){var ie=y[q];if(!!ie){var ae=ie.token,pe=ie.value||ie,Ee=$[q],ye=Ee.type,Pe=Ee["x-tokenName"]||"access_token",we=ae&&ae[Pe],be=ae&&ae.token_type;if(ie){if(ye==="apiKey"){var he=Ee.in==="query"?"query":"headers";g[he]=g[he]||{},g[he][Ee.name]=pe}else if(ye==="basic")if(pe.header)g.headers.authorization=pe.header;else{var Ie,Fe=pe.username||"",je=pe.password||"";pe.base64=R(Qe()(Ie="".concat(Fe,":")).call(Ie,je)),g.headers.authorization="Basic ".concat(pe.base64)}else if(ye==="oauth2"&&we){var Ge;be=!be||be.toLowerCase()==="bearer"?"Bearer":be,g.headers.authorization=Qe()(Ge="".concat(be," ")).call(Ge,we)}}}})}),g)}var me=["http","fetch","spec","operationId","pathName","method","parameters","securities"],ke=function(r){return Array.isArray(r)?r:[]},Ne=zf("OperationNotFoundError",function(r,n,a){this.originalError=a,W()(this,n||{})}),ze=function(r,n){return hr()(n).call(n,function(a){return a.name===r})},Ye=function(r){var n={};r.forEach(function(s){n[s.in]||(n[s.in]={}),n[s.in][s.name]=s});var a=[];return st()(n).forEach(function(s){st()(n[s]).forEach(function(c){a.push(n[s][c])})}),a},Ze={buildRequest:rt};function Je(e){var r=e.http,n=e.fetch,a=e.spec,s=e.operationId,c=e.pathName,p=e.method,g=e.parameters,v=e.securities,y=or(e,me),b=r||n||Cs;c&&p&&!s&&(s=Ia(c,p));var I=Ze.buildRequest(G({spec:a,operationId:s,parameters:g,securities:v,http:b},y));return I.body&&(ka(I.body)||Array.isArray(I.body))&&(I.body=Wt()(I.body)),b(I)}function rt(e){var r,n,a=e.spec,s=e.operationId,c=e.responseContentType,p=e.scheme,g=e.requestInterceptor,v=e.responseInterceptor,y=e.contextUrl,b=e.userFetch,I=e.server,D=e.serverVariables,B=e.http,$=e.signal,re=e.parameters,q=e.parameterBuilders,ie=Gs(a);q||(ie?q=w:q=Ud);var ae=B&&B.withCredentials?"include":"same-origin",pe={url:"",credentials:ae,headers:{},cookies:{}};$&&(pe.signal=$),g&&(pe.requestInterceptor=g),v&&(pe.responseInterceptor=v),b&&(pe.userFetch=b);var Ee=rc(a,s);if(!Ee)throw new Ne("Operation ".concat(s," not found"));var ye=Ee.operation,Pe=ye===void 0?{}:ye,we=Ee.method,be=Ee.pathName;if(pe.url+=pt({spec:a,scheme:p,contextUrl:y,server:I,serverVariables:D,pathName:be,method:we}),!s)return delete pe.cookies,pe;pe.url+=be,pe.method="".concat(we).toUpperCase(),re=re||{};var he=a.paths[be]||{};c&&(pe.headers.accept=c);var Ie=Ye(Qe()(r=Qe()(n=[]).call(n,ke(Pe.parameters))).call(r,ke(he.parameters)));Ie.forEach(function(Ge){var bt=q[Ge.in],qe;if(Ge.in==="body"&&Ge.schema&&Ge.schema.properties&&(qe=re),qe=Ge&&Ge.name&&re[Ge.name],typeof qe=="undefined"){var Zt;qe=Ge&&Ge.name&&re[Qe()(Zt="".concat(Ge.in,".")).call(Zt,Ge.name)]}else if(ze(Ge.name,Ie).length>1){var sr;console.warn(Qe()(sr="Parameter '".concat(Ge.name,"' is ambiguous because the defined spec has more than one parameter with the name: '")).call(sr,Ge.name,"' and the passed-in parameter values did not define an 'in' value."))}if(qe!==null){if(typeof Ge.default!="undefined"&&typeof qe=="undefined"&&(qe=Ge.default),typeof qe=="undefined"&&Ge.required&&!Ge.allowEmptyValue)throw new Error("Required parameter ".concat(Ge.name," is not provided"));if(ie&&Ge.schema&&Ge.schema.type==="object"&&typeof qe=="string")try{qe=JSON.parse(qe)}catch(gr){throw new Error("Could not parse object parameter value string as JSON")}bt&&bt({req:pe,parameter:Ge,value:qe,operation:Pe,spec:a})}});var Fe=G(G({},e),{},{operation:Pe});if(ie?pe=j(Fe,pe):pe=de(Fe,pe),pe.cookies&&st()(pe.cookies).length){var je=st()(pe.cookies).reduce(function(Ge,bt){var qe=pe.cookies[bt],Zt=Ge?"&":"",sr=dc.serialize(bt,qe);return Ge+Zt+sr},"");pe.headers.Cookie=je}return pe.cookies&&delete pe.cookies,Yl(pe),pe}var vt=function(r){return r?r.replace(/\W/g,""):null};function pt(e){var r=Gs(e.spec);return r?Dt(e):wr(e)}function Dt(e){var r=e.spec,n=e.pathName,a=e.method,s=e.server,c=e.contextUrl,p=e.serverVariables,g=p===void 0?{}:p,v=Oi()(r,["paths",n,(a||"").toLowerCase(),"servers"])||Oi()(r,["paths",n,"servers"])||Oi()(r,["servers"]),y="",b=null;if(s&&v&&v.length){var I=We()(v).call(v,function($){return $.url});I.indexOf(s)>-1&&(y=s,b=v[I.indexOf(s)])}if(!y&&v&&v.length){y=v[0].url;var D=Xe(v,1);b=D[0]}if(y.indexOf("{")>-1){var B=Ur(y);B.forEach(function($){if(b.variables&&b.variables[$]){var re=b.variables[$],q=g[$]||re.default,ie=new RegExp("{".concat($,"}"),"g");y=y.replace(ie,q)}})}return ur(y,c)}function ur(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=e&&r?H.parse(H.resolve(r,e)):H.parse(e),a=H.parse(r),s=vt(n.protocol)||vt(a.protocol)||"",c=n.host||a.host,p=n.pathname||"",g;if(s&&c){var v;g=Qe()(v="".concat(s,"://")).call(v,c+p)}else g=p;return g[g.length-1]==="/"?Gn()(g).call(g,0,-1):g}function Ur(e){for(var r=[],n=/{([^}]+)}/g,a;a=n.exec(e);)r.push(a[1]);return r}function wr(e){var r=e.spec,n=e.scheme,a=e.contextUrl,s=a===void 0?"":a,c=H.parse(s),p=Array.isArray(r.schemes)?r.schemes[0]:null,g=n||p||vt(c.protocol)||"http",v=r.host||c.host||"",y=r.basePath||"",b;if(g&&v){var I;b=Qe()(I="".concat(g,"://")).call(I,v+y)}else b=y;return b[b.length-1]==="/"?Gn()(b).call(b,0,-1):b}Gt.http=Cs,Gt.makeHttp=Sd.bind(null,Gt.http),Gt.resolve=oc,Gt.resolveSubtree=Yn,Gt.execute=Je,Gt.serializeRes=Af,Gt.serializeHeaders=Es,Gt.clearCache=br,Gt.makeApisTagOperation=fc,Gt.buildRequest=rt,Gt.helpers={opId:$s},Gt.getBaseUrl=pt;function Gt(e){var r=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof e=="string"?n.url=e:n=e,!(this instanceof Gt))return new Gt(n);W()(this,n);var a=this.resolve().then(function(){return r.disableInterfaces||W()(r,Gt.makeApisTagOperation(r)),r});return a.client=this,a}Gt.prototype={http:Cs,execute:function(r){return this.applyDefaults(),Gt.execute(G({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:typeof this.url=="string"?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},r))},resolve:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Gt.resolve(G({spec:this.spec,url:this.url,http:this.http||this.fetch,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null,skipNormalization:this.skipNormalization||!1},n)).then(function(a){return r.originalSpec=r.spec,r.spec=a.spec,r.errors=a.errors,r})}},Gt.prototype.applyDefaults=function(){var r=this.spec,n=this.url;if(n&&K()(n).call(n,"http")){var a=H.parse(n);r.host||(r.host=a.host),r.schemes||(r.schemes=[a.protocol.replace(":","")]),r.basePath||(r.basePath="/")}};var yn=Gt.helpers;const Fr=Gt;var M=o(2784),Bt=o(59839),fr=o(53476),at=o(23268),yr=o(18445),Ar=o(23708),Fa=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{g(n.next(v))}catch(y){s(y)}},p=v=>{try{g(n.throw(v))}catch(y){s(y)}},g=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);g((n=n.apply(e,r)).next())});const Ti=Object.values(Ar.FileUploadFormats),Jr=["application/octet-stream","application/pdf","application/gzip","application/zip"],Jn=["image/","audio/","video/"];function Nr(e){if(Jn.some(r=>e.startsWith(r)))return e}function ao(e){return Jr.includes(e)?!0:Jn.some(r=>e.startsWith(r))}function Pi(e){const r=e.type==="array"?e.items:e;if(!r||!r.type||(r==null?void 0:r.type)==="any")return!0;const n=r.contentMediaType||"",a=r.format||r.contentEncoding||(ao(n)?"binary":"");return r.type===Ar.DefinitionTypes.STRING&&Ti.includes(a)}function Ji(e,r){if(!e||!e.type||e.type==="any")return ao(r);const n=e.format||e.contentEncoding||"";return e.type===Ar.DefinitionTypes.STRING&&Ti.includes(n)}function Xi(e){return new Promise((r,n)=>{const a=new FileReader;a.onload=()=>{const c=a.result.replace(/data:.*\/.*;base64,/g,"");r(c)},a.onerror=()=>n(a.error),a.readAsDataURL(e)})}function Xr({format:e,contentEncoding:r,contentMediaType:n}){return[e,r,n].includes(Ar.FileUploadFormats.BASE64)}function oo(e,r){return Fa(this,null,function*(){const n=Object.values(e);let a=n.length===1?n[0]:n;return r.type===Ar.DefinitionTypes.STRING&&Xr(r)?a=yield Xi(n[0]):r.type===Ar.DefinitionTypes.ARRAY&&r.items&&(Xr(r.items)?a=yield Promise.all(n.map(c=>Fa(this,null,function*(){return yield Xi(c)}))):a=n),a})}var Zs=o(93892),$t=o(80127),Jt=o(70669),kn=o(43284),Ng=o(16610);function Dg({response:e}){return M.createElement(M.Fragment,null,M.createElement(kn.EE,null," Body: "),Bg(e))}function Bg(e){return e.body?M.createElement(Bt.JsonViewer,{data:e.body,jsonSampleExpandLevel:1}):e.fileInfo?M.createElement(Ng.s,{fileInfo:e.fileInfo}):e.data!==null?e.data?M.createElement(Bt.SourceCode,{lang:(0,at.M)(e.headers["Content-Type"]||"text/plain"),source:e.data,withCopyButton:!0}):M.createElement(kn.w3,null,M.createElement("i",null,"(no content)")):null}var qs=o(26141);function jg({headers:e}){const r=(0,fr.useRecoilValue)(qs.lk),[n,a]=(0,M.useState)(!0),{maxResponseHeadersToShowInTryIt:s}=r,c=Object.keys(e),p=!!s&&c.length>s,g=p&&n?[...c].splice(0,s):[...c],v=()=>{a(!n)};return M.createElement(M.Fragment,null,M.createElement(kn.EE,null," Headers: "),M.createElement(kn.w3,null,g.map(y=>M.createElement("div",{key:y},M.createElement(Vp,null,y,":"),M.createElement("code",null,e[y]))),p&&M.createElement(Up,{onClick:v},n?"Show more...":"Hide headers")))}const Vp=Jt.ZP.strong`
94
94
  text-transform: capitalize;
95
95
  display: inline-block;
96
96
  padding-right: 5px;
@@ -160,7 +160,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
160
160
  background-color: var(--panel-try-it-tabs-disabled-background-color);
161
161
  color: var(--panel-try-it-tabs-disabled-text-color);
162
162
  `||""}
163
- `;function Gg({onChange:e,active:r,hasResponse:n}){return M.createElement(zg,null,M.createElement(Hp,{onClick:()=>e(0),active:r===0},n?"Edit Request":"Request"),M.createElement(Hp,{onClick:()=>n&&e(1),active:r===1,disabled:!n}," ","Response"," "))}var $d=o(46521),zp=o(50397);function $g(e,r,n){const a=r.path||{},s=r.query||{},c=Object.keys(s);let p=(0,Yt.v5)(e,a);const g=v=>n.find(y=>y.name===v&&y.in==="query");return c.length&&(p+="?"+c.map(v=>{if(!s[v])return"";const y=g(v);return y?(0,at.d$)(y,s[v]):`${v}=${encodeURIComponent(s[v])}`}).filter(Boolean).join("&")),p}const Kg=({loading:e,operation:r,hasResponse:n,execute:a,params:s={}})=>M.createElement(yr.k1,null,M.createElement($d.__,null,M.createElement(zp.FH,{type:r.httpVerb},r.httpVerb),M.createElement($d.y$,{wrap:"true"},$g(r.path,s,r.parameters))),M.createElement(Yg,{"data-cy":"send-button",color:"primary",blinking:e,onClick:()=>!e&&a()},e?"Sending...":n?"Resend":"Send")),Yg=(0,Jt.ZP)($d.ev)`
163
+ `;function Gg({onChange:e,active:r,hasResponse:n}){return M.createElement(zg,null,M.createElement(Hp,{onClick:()=>e(0),active:r===0},n?"Edit Request":"Request"),M.createElement(Hp,{onClick:()=>n&&e(1),active:r===1,disabled:!n}," ","Response"," "))}var $d=o(46521),zp=o(50397);function $g(e,r,n){const a=r.path||{},s=r.query||{},c=Object.keys(s);let p=(0,$t.v5)(e,a);const g=v=>n.find(y=>y.name===v&&y.in==="query");return c.length&&(p+="?"+c.map(v=>{if(!s[v])return"";const y=g(v);return y?(0,at.d$)(y,s[v]):`${v}=${encodeURIComponent(s[v])}`}).filter(Boolean).join("&")),p}const Kg=({loading:e,operation:r,hasResponse:n,execute:a,params:s={}})=>M.createElement(yr.k1,null,M.createElement($d.__,null,M.createElement(zp.FH,{type:r.httpVerb},r.httpVerb),M.createElement($d.y$,{wrap:"true"},$g(r.path,s,r.parameters))),M.createElement(Yg,{"data-cy":"send-button",color:"primary",blinking:e,onClick:()=>!e&&a()},e?"Sending...":n?"Resend":"Send")),Yg=(0,Jt.ZP)($d.ev)`
164
164
  width: var(--panel-try-it-action-button-width);
165
165
  `,Jg=(0,M.memo)(Kg);function Kd(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Gp(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Yd(e,r,n){return r&&Gp(e.prototype,r),n&&Gp(e,n),e}function Xg(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function Dr(){return Dr=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Dr.apply(this,arguments)}function $p(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,a)}return n}function Lt(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?$p(Object(n),!0).forEach(function(a){Xg(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$p(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function Qg(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&Jd(e,r)}function hc(e){return hc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},hc(e)}function Jd(e,r){return Jd=Object.setPrototypeOf||function(a,s){return a.__proto__=s,a},Jd(e,r)}function Zg(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function qg(e,r){if(e==null)return{};var n={},a=Object.keys(e),s,c;for(c=0;c<a.length;c++)s=a[c],!(r.indexOf(s)>=0)&&(n[s]=e[s]);return n}function Br(e,r){if(e==null)return{};var n=qg(e,r),a,s;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(s=0;s<c.length;s++)a=c[s],!(r.indexOf(a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,a)||(n[a]=e[a]))}return n}function _g(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function em(e,r){return r&&(typeof r=="object"||typeof r=="function")?r:_g(e)}function tm(e){var r=Zg();return function(){var a=hc(e),s;if(r){var c=hc(this).constructor;s=Reflect.construct(a,arguments,c)}else s=a.apply(this,arguments);return em(this,s)}}function Rr(e,r){return nm(e)||am(e,r)||Xd(e,r)||sm()}function an(e){return rm(e)||im(e)||Xd(e)||om()}function rm(e){if(Array.isArray(e))return Qd(e)}function nm(e){if(Array.isArray(e))return e}function im(e){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(e))return Array.from(e)}function am(e,r){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(e)))){var n=[],a=!0,s=!1,c=void 0;try{for(var p=e[Symbol.iterator](),g;!(a=(g=p.next()).done)&&(n.push(g.value),!(r&&n.length===r));a=!0);}catch(v){s=!0,c=v}finally{try{!a&&p.return!=null&&p.return()}finally{if(s)throw c}}return n}}function Xd(e,r){if(!!e){if(typeof e=="string")return Qd(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qd(e,r)}}function Qd(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,a=new Array(r);n<r;n++)a[n]=e[n];return a}function om(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
166
166
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
@@ -218,8 +218,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
218
218
  `;function Ty(e,r){var n=e,{fullWidth:a,errorMessage:s,type:c,inputActionButton:p,panel:g="samples"}=n,v=Cy(n,["fullWidth","errorMessage","type","inputActionButton","panel"]);const[y,b]=(0,M.useState)(c==="password"),I=(0,M.useCallback)(()=>{b(!y)},[y]);return M.createElement(Th,{fullWidth:a,type:c},M.createElement(Ey,null,M.createElement(Oy,Cc({fullWidth:a,inputActionButton:p,type:y?"password":"text",inputType:c,ref:r,panel:g},v)),p?M.createElement(Ph,{onClick:p.onClick},p.label):c==="password"?M.createElement(Ph,{onClick:I},y?"show":"hide"):null),s?M.createElement(ht.Xq,null,s):null)}const Au=(0,M.forwardRef)(Ty);function Rn(e){const r=xu(Cc({fieldType:"text"},e)),{userProps:n,render:a,fieldState:s}=r,c=r.informed;return a(M.createElement(Au,Ay(Cc(Cc({},n),c),{errorMessage:s.error})))}const Cu=Ma(({initValue:e,options:r,fieldApi:n,fieldState:a})=>{const s=r.map((y,b)=>({value:y.title||y.value,idx:b,origValue:y.value})),c=s.find(y=>y.origValue===e),[p,g]=(0,M.useState)(c==null?void 0:c.value);(0,Bt.useMount)(()=>{e&&n.setValue(e)});const v=(0,M.useCallback)(y=>{n.setValue(s[y.idx].origValue),g(s[y.idx].value)},[n,s]);return M.createElement(Th,{fullWidth:!0},M.createElement(by.Dropdown,{fullWidth:!0,variant:"dark",value:p,options:s,onChange:v}),a.error?M.createElement(ht.Xq,null,a.error):null)});function Py({name:e,value:r,description:n,variableEnum:a,onChange:s,defaultValue:c}){const p=(0,M.useCallback)(y=>s(y.target.value),[s]),g=(0,M.useCallback)(y=>s(y.value),[s]),v=a?a.map((y,b)=>({value:y,idx:b})):[];return M.createElement(ht.NI,null,M.createElement(ht.lX,null,e,":"),v&&v.length?M.createElement(kn.VD,{fullWidth:!0,variant:"dark",value:r,options:v,onChange:g}):M.createElement(Au,{fullWidth:!0,value:r,onChange:p,placeholder:c,panel:"try-it"}),n&&M.createElement(Iy,{source:n}))}const Iy=(0,Jt.ZP)(yy.Markdown)`
219
219
  margin-top: 5px;
220
220
  color: #d0d0d0;
221
- `;var ky=Object.defineProperty,Fy=Object.defineProperties,Ry=Object.getOwnPropertyDescriptors,Ih=Object.getOwnPropertySymbols,My=Object.prototype.hasOwnProperty,Ly=Object.prototype.propertyIsEnumerable,kh=(e,r,n)=>r in e?ky(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Fh=(e,r)=>{for(var n in r||(r={}))My.call(r,n)&&kh(e,n,r[n]);if(Ih)for(var n of Ih(r))Ly.call(r,n)&&kh(e,n,r[n]);return e},Rh=(e,r)=>Fy(e,Ry(r));function Ny({operation:e,onChange:r}){const n=(0,at.YQ)("serverUrl"),a=e.servers.findIndex(D=>D.url===n),[s,c]=(0,M.useState)(a<0?0:a),[p,g]=(0,M.useState)({});(0,Bt.useMount)(()=>{const D=(0,Yt.fz)(e.servers,s);r(D),g(D.variables)});const v=D=>{const B=e.servers.find(q=>q.url===D.serverUrl),$=e.servers.findIndex(q=>q.url===D.serverUrl),re=(0,Yt.mj)(B);r({url:D.serverUrl||"",variables:re}),(0,at.WW)("serverUrl",D.serverUrl||""),c($),g(re)},y=(D,B)=>{const $=e.servers[s],re=B||B===""?B:(0,Yt.mj)($)[D],q=Rh(Fh({},p),{[D]:re});g(q),(0,Yt.UY)(D,re),r(Rh(Fh({},$),{variables:q}))},b=e.servers.map((D,B)=>({idx:B,serverUrl:D.url,value:`
222
- ${(0,Yt.nq)((0,Yt.v5)(D.url,p),D.variables)}
221
+ `;var ky=Object.defineProperty,Fy=Object.defineProperties,Ry=Object.getOwnPropertyDescriptors,Ih=Object.getOwnPropertySymbols,My=Object.prototype.hasOwnProperty,Ly=Object.prototype.propertyIsEnumerable,kh=(e,r,n)=>r in e?ky(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Fh=(e,r)=>{for(var n in r||(r={}))My.call(r,n)&&kh(e,n,r[n]);if(Ih)for(var n of Ih(r))Ly.call(r,n)&&kh(e,n,r[n]);return e},Rh=(e,r)=>Fy(e,Ry(r));function Ny({operation:e,onChange:r}){const n=(0,at.YQ)("serverUrl"),a=e.servers.findIndex(D=>D.url===n),[s,c]=(0,M.useState)(a<0?0:a),[p,g]=(0,M.useState)({});(0,Bt.useMount)(()=>{const D=(0,$t.fz)(e.servers,s);r(D),g(D.variables)});const v=D=>{const B=e.servers.find(q=>q.url===D.serverUrl),$=e.servers.findIndex(q=>q.url===D.serverUrl),re=(0,$t.mj)(B);r({url:D.serverUrl||"",variables:re}),(0,at.WW)("serverUrl",D.serverUrl||""),c($),g(re)},y=(D,B)=>{const $=e.servers[s],re=B||B===""?B:(0,$t.mj)($)[D],q=Rh(Fh({},p),{[D]:re});g(q),(0,$t.UY)(D,re),r(Rh(Fh({},$),{variables:q}))},b=e.servers.map((D,B)=>({idx:B,serverUrl:D.url,value:`
222
+ ${(0,$t.nq)((0,$t.v5)(D.url,p),D.variables)}
223
223
  - ${(0,at.bG)(D.description)||"Default"}
224
224
  `})),I=Object.keys(p);return M.createElement(By,{"data-cy":"console-target-server"},M.createElement(ht.lX,{htmlFor:"server"},"Target server: "),M.createElement(ht.NI,null,M.createElement(kn.VD,{variant:"dark",value:b[s].value,options:b,fullWidth:!0,onChange:v})),I==null?void 0:I.map(D=>{var B;const $=(B=e.servers[s].variables)==null?void 0:B[D];if($)return M.createElement(Py,{key:D,name:D,value:p[D],defaultValue:$.default,onChange:re=>y(D,re),variableEnum:$.enum,description:$.description})}))}const Dy=(0,M.memo)(Ny),By=Jt.ZP.div`
225
225
  margin-bottom: 20px;
@@ -323,7 +323,7 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function D0(e){return e.i
323
323
  flex: 1;
324
324
  border-radius: var(--panel-border-radius);
325
325
  }
326
- `,fb=Ma(({fieldState:e,fieldApi:r,onChange:n,onBlur:a,forwardedRef:s,id:c,mode:p,schema:g})=>{let v;const y=(q,ie)=>{/^[a-zA-Z0-9_":]$/.test(ie.key)&&v.execCommand("autocomplete")},b=q=>{v=q,v.on("keyup",y)},I=()=>{v.refresh()},D=()=>v.showHint({completeSingle:!0});(0,Bt.useMount)(()=>{setTimeout(()=>{v.refresh()},0),document.addEventListener("click",I)}),(0,Bt.useUnmount)(()=>{document.removeEventListener("click",I)});const{value:B}=e,{setValue:$,setTouched:re}=r;return M.createElement(M.Fragment,null,M.createElement(ub,null),M.createElement(r0.fk,{editorDidMount:b,value:B||"",ref:s,onBeforeChange:(q,ie,ae)=>{$(ae),n&&n(ae)},onBlur:q=>{re(!1),a&&a(q)},options:{mode:p||Oc.Tr.JSON,theme:"material",matchBrackets:!0,autoCloseBrackets:!0,tabSize:2,foldGutter:!0,extraKeys:{"Cmd-Space":D,"Ctrl-Space":D},hintOptions:{id:c,completeSingle:!1,schema:g}}}))});var Cp=o(44555);function cb({mediaType:e,mediaContent:r,properties:n,id:a,resolvedBody:s,formApi:c,getActiveSample:p,validate:g}){const v=(0,Cp.yN)(r),y=e.examples||{},b=Object.keys(y),I=e.schema,D=Ji(I||{},e.name)||e.name===Oc.Tr.MULTIPART||e.name===Oc.Tr.URL_ENCODED,{exampleKey:B}=(0,ip.C6)(e.operation,y),$=(0,at.YQ)((0,Yt.P6)(a,e.name,B,y))||(0,Yt.oY)(y[B],n);(0,M.useEffect)(()=>{c.setValue("body",$)},[$,c]);const re=(0,M.useCallback)((ae="",pe="",Ee=[])=>ye=>{(0,at.WW)((0,Yt.P6)(a,ae,pe,Ee),ye)},[a]),q=(0,M.useCallback)(ae=>{v&&v(ae),c.setValue("body",p(ae))},[c,p,v]),ie=(0,M.useCallback)((ae,pe)=>{c.setValue(`body.${ae}`,pe)},[c]);return M.createElement(M.Fragment,null,b.length&&b.length!==1&&M.createElement(ip.b_,{examples:y,onChange:q,exampleKey:B,panel:"try-it"})||null,D?M.createElement(e0,{mediaType:e,formApi:c,onChange:ie}):M.createElement(fb,{id:"body"+a,field:"body",initialValue:$,schema:((s==null?void 0:s.content[e.name])||{}).schema,mode:e.name,validate:g,onChange:re(e.name,B,y)}))}const db=(0,M.memo)(cb);var pb=o(69122),hb=Object.defineProperty,vb=Object.defineProperties,gb=Object.getOwnPropertyDescriptors,ng=Object.getOwnPropertySymbols,mb=Object.prototype.hasOwnProperty,yb=Object.prototype.propertyIsEnumerable,ig=(e,r,n)=>r in e?hb(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,bb=(e,r)=>{for(var n in r||(r={}))mb.call(r,n)&&ig(e,n,r[n]);if(ng)for(var n of ng(r))yb.call(r,n)&&ig(e,n,r[n]);return e},xb=(e,r)=>vb(e,gb(r));function Sb({body:e,formApi:r,resolvedBody:n,properties:a,id:s,validate:c,pointer:p}){const g=e.content,v=(0,fr.useRecoilValue)(pb.UF),{examples:y,name:b}=g&&(0,Ar.getActiveMediaType)(g,v)||{},I=(0,M.useCallback)($=>{if(!g||!g.hasSample||!(y!=null&&y[$]))return"";const re=b&&(0,at.YQ)((0,Yt.P6)(s,b,$,y)),q=re?JSON.parse(re):y==null?void 0:y[$].value,ie=a?ru()(q,a,{arrayMerge:so.lN}):q;return JSON.stringify(ie,null,2)},[b,y,s,g,a]),{activeExampleName:D}=(0,fr.useRecoilValue)((0,ap.N)(p));(0,M.useEffect)(()=>{if(b){const $=(0,Yt.P6)(s,b,D,y);r.setValue("body",(0,at.YQ)($)||I(D||""))}else r.setValue("body",JSON.stringify(a||{},null,2))},[y,D,b,r,I,s,a]);const B=$=>M.createElement($y.C,xb(bb({},$),{variant:"dark",fullWidth:!0,Label:Jy,Dropdown:Yy.Lt}));return M.createElement(M.Fragment,null,M.createElement(Ky.d,{content:e.content,renderDropdown:B},$=>M.createElement(db,{mediaType:$,mediaContent:g,resolvedBody:n,id:s,properties:a,getActiveSample:I,formApi:r,validate:c})))}const wb=(0,M.memo)(Sb);var Ab=o(61687);const Cb=Ma(({initValue:e,paramEnum:r,fieldApi:n})=>{const[a,s]=(0,M.useState)(),c=r.map((v,y)=>({idx:y,value:v})),p=v=>{n.setValue(v.value),s(v.value)};(0,Bt.useMount)(()=>{if(!!e)if(Array.isArray(e)){const v=e.length?e[0]:"";s(v),n.setValue(v)}else s(e),n.setValue(e)});const g=()=>{n.setValue(""),s("")};return M.createElement(kn.VD,{clearable:!0,fullWidth:!0,variant:"dark",value:a,options:c,handleClear:g,onChange:p})}),Eb=({name:e,param:r,place:n,renderParameter:a})=>{var s,c,p,g,v;const[y,b]=M.useState([]),I=()=>{b([...y,y.length?y[y.length-1]+1:0])},D=$=>{b(y.filter(re=>re!==$))},B=(s=r.schema.items)!=null&&s.fields?(c=r.schema.items)==null?void 0:c.fields:[{schema:((p=r.schema.items)==null?void 0:p.schema)||r.schema.items,name:"",required:r.required,description:(g=r.schema.items)==null?void 0:g.description,externalDocs:(v=r.schema.items)==null?void 0:v.externalDocs,deprecated:!1,toggle:()=>null,expanded:!1}];return M.createElement(M.Fragment,null,M.createElement(ag,null,M.createElement(ht.lX,{required:r.required},e,"(",y.length," items)"),M.createElement("span",{onClick:I},"Add item +")),y==null?void 0:y.map(($,re)=>M.createElement(ag,{key:$},M.createElement(Ob,{onClick:()=>D($)},"delete"),B.map(q=>a(q,n,`${e}.[${$}]`,`[${re}]${q.name&&"."+q.name}`)))))},ag=Jt.ZP.div`
326
+ `,fb=Ma(({fieldState:e,fieldApi:r,onChange:n,onBlur:a,forwardedRef:s,id:c,mode:p,schema:g})=>{let v;const y=(q,ie)=>{/^[a-zA-Z0-9_":]$/.test(ie.key)&&v.execCommand("autocomplete")},b=q=>{v=q,v.on("keyup",y)},I=()=>{v.refresh()},D=()=>v.showHint({completeSingle:!0});(0,Bt.useMount)(()=>{setTimeout(()=>{v.refresh()},0),document.addEventListener("click",I)}),(0,Bt.useUnmount)(()=>{document.removeEventListener("click",I)});const{value:B}=e,{setValue:$,setTouched:re}=r;return M.createElement(M.Fragment,null,M.createElement(ub,null),M.createElement(r0.fk,{editorDidMount:b,value:B||"",ref:s,onBeforeChange:(q,ie,ae)=>{$(ae),n&&n(ae)},onBlur:q=>{re(!1),a&&a(q)},options:{mode:p||Oc.Tr.JSON,theme:"material",matchBrackets:!0,autoCloseBrackets:!0,tabSize:2,foldGutter:!0,extraKeys:{"Cmd-Space":D,"Ctrl-Space":D},hintOptions:{id:c,completeSingle:!1,schema:g}}}))});var Cp=o(44555);function cb({mediaType:e,mediaContent:r,properties:n,id:a,resolvedBody:s,formApi:c,getActiveSample:p,validate:g}){const v=(0,Cp.yN)(r),y=e.examples||{},b=Object.keys(y),I=e.schema,D=Ji(I||{},e.name)||e.name===Oc.Tr.MULTIPART||e.name===Oc.Tr.URL_ENCODED,{exampleKey:B}=(0,ip.C6)(e.operation,y),$=(0,at.YQ)((0,$t.P6)(a,e.name,B,y))||(0,$t.oY)(y[B],n);(0,M.useEffect)(()=>{c.setValue("body",$)},[$,c]);const re=(0,M.useCallback)((ae="",pe="",Ee=[])=>ye=>{(0,at.WW)((0,$t.P6)(a,ae,pe,Ee),ye)},[a]),q=(0,M.useCallback)(ae=>{v&&v(ae),c.setValue("body",p(ae))},[c,p,v]),ie=(0,M.useCallback)((ae,pe)=>{c.setValue(`body.${ae}`,pe)},[c]);return M.createElement(M.Fragment,null,b.length&&b.length!==1&&M.createElement(ip.b_,{examples:y,onChange:q,exampleKey:B,panel:"try-it"})||null,D?M.createElement(e0,{mediaType:e,formApi:c,onChange:ie}):M.createElement(fb,{id:"body"+a,field:"body",initialValue:$,schema:((s==null?void 0:s.content[e.name])||{}).schema,mode:e.name,validate:g,onChange:re(e.name,B,y)}))}const db=(0,M.memo)(cb);var pb=o(69122),hb=Object.defineProperty,vb=Object.defineProperties,gb=Object.getOwnPropertyDescriptors,ng=Object.getOwnPropertySymbols,mb=Object.prototype.hasOwnProperty,yb=Object.prototype.propertyIsEnumerable,ig=(e,r,n)=>r in e?hb(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,bb=(e,r)=>{for(var n in r||(r={}))mb.call(r,n)&&ig(e,n,r[n]);if(ng)for(var n of ng(r))yb.call(r,n)&&ig(e,n,r[n]);return e},xb=(e,r)=>vb(e,gb(r));function Sb({body:e,formApi:r,resolvedBody:n,properties:a,id:s,validate:c,pointer:p}){const g=e.content,v=(0,fr.useRecoilValue)(pb.UF),{examples:y,name:b}=g&&(0,Ar.getActiveMediaType)(g,v)||{},I=(0,M.useCallback)($=>{if(!g||!g.hasSample||!(y!=null&&y[$]))return"";const re=b&&(0,at.YQ)((0,$t.P6)(s,b,$,y)),q=re?JSON.parse(re):y==null?void 0:y[$].value,ie=a?ru()(q,a,{arrayMerge:so.lN}):q;return JSON.stringify(ie,null,2)},[b,y,s,g,a]),{activeExampleName:D}=(0,fr.useRecoilValue)((0,ap.N)(p));(0,M.useEffect)(()=>{if(b){const $=(0,$t.P6)(s,b,D,y);r.setValue("body",(0,at.YQ)($)||I(D||""))}else r.setValue("body",JSON.stringify(a||{},null,2))},[y,D,b,r,I,s,a]);const B=$=>M.createElement($y.C,xb(bb({},$),{variant:"dark",fullWidth:!0,Label:Jy,Dropdown:Yy.Lt}));return M.createElement(M.Fragment,null,M.createElement(Ky.d,{content:e.content,renderDropdown:B},$=>M.createElement(db,{mediaType:$,mediaContent:g,resolvedBody:n,id:s,properties:a,getActiveSample:I,formApi:r,validate:c})))}const wb=(0,M.memo)(Sb);var Ab=o(61687);const Cb=Ma(({initValue:e,paramEnum:r,fieldApi:n})=>{const[a,s]=(0,M.useState)(),c=r.map((v,y)=>({idx:y,value:v})),p=v=>{n.setValue(v.value),s(v.value)};(0,Bt.useMount)(()=>{if(!!e)if(Array.isArray(e)){const v=e.length?e[0]:"";s(v),n.setValue(v)}else s(e),n.setValue(e)});const g=()=>{n.setValue(""),s("")};return M.createElement(kn.VD,{clearable:!0,fullWidth:!0,variant:"dark",value:a,options:c,handleClear:g,onChange:p})}),Eb=({name:e,param:r,place:n,renderParameter:a})=>{var s,c,p,g,v;const[y,b]=M.useState([]),I=()=>{b([...y,y.length?y[y.length-1]+1:0])},D=$=>{b(y.filter(re=>re!==$))},B=(s=r.schema.items)!=null&&s.fields?(c=r.schema.items)==null?void 0:c.fields:[{schema:((p=r.schema.items)==null?void 0:p.schema)||r.schema.items,name:"",required:r.required,description:(g=r.schema.items)==null?void 0:g.description,externalDocs:(v=r.schema.items)==null?void 0:v.externalDocs,deprecated:!1,toggle:()=>null,expanded:!1}];return M.createElement(M.Fragment,null,M.createElement(ag,null,M.createElement(ht.lX,{required:r.required},e,"(",y.length," items)"),M.createElement("span",{onClick:I},"Add item +")),y==null?void 0:y.map(($,re)=>M.createElement(ag,{key:$},M.createElement(Ob,{onClick:()=>D($)},"delete"),B.map(q=>a(q,n,`${e}.[${$}]`,`[${re}]${q.name&&"."+q.name}`)))))},ag=Jt.ZP.div`
327
327
  display: flex;
328
328
  width: 100%;
329
329
  align-items: center;
@@ -501,7 +501,7 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function D0(e){return e.i
501
501
  text-align: left;
502
502
  `,rx=(0,Jt.ZP)(Bt.SamplesControlButton)`
503
503
  float: right;
504
- `;function fg(e){const{scopes:r,id:n}=e;let a=[];try{a=JSON.parse((0,at.YQ)(`auth.${n}.scopes`))}catch(s){}return!r||!r.length?M.createElement(M.Fragment,null):M.createElement(ht.NI,null,M.createElement(ht.lX,null," Scopes: "),M.createElement(ex,{field:`auth.${n}.scopes`,initialValue:a,items:r,showControls:!0,trimItemsLength:!0}))}const nx=({token:e,loading:r,error:n})=>r?M.createElement(ht.GE,null,"Please, finish your authorization flow or cancel authorization."):n?M.createElement(jb,null,M.createElement(ht.Xq,null,n)):e!=null&&e.access_token?null:M.createElement(ht.GE,null," No Access Token. Please, Authorize. ");var ix=Object.defineProperty,ax=Object.defineProperties,ox=Object.getOwnPropertyDescriptors,cg=Object.getOwnPropertySymbols,sx=Object.prototype.hasOwnProperty,lx=Object.prototype.propertyIsEnumerable,dg=(e,r,n)=>r in e?ix(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Wc=(e,r)=>{for(var n in r||(r={}))sx.call(r,n)&&dg(e,n,r[n]);if(cg)for(var n of cg(r))lx.call(r,n)&&dg(e,n,r[n]);return e},Ep=(e,r)=>ax(e,ox(r)),ux=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{g(n.next(v))}catch(y){s(y)}},p=v=>{try{g(n.throw(v))}catch(y){s(y)}},g=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);g((n=n.apply(e,r)).next())});function fx(e){if(!e)return"Field is required"}const Hc=({usePkce:e,form:r,id:n,formApi:a,flow:s,tokenUrl:c,authCorsProxyUrl:p,tokenEndpointAuthMethod:g,server:v,scopes:y,authorizationUrl:b,defaultValues:I,clientId:D})=>{var B,$,re,q;const{oAuth2RedirectURI:ie,routingBasePath:ae}=(0,fr.useRecoilValue)(qs.lk),[pe,Ee]=(0,M.useState)(null),[ye,Pe]=(0,M.useState)(!1),[we,be]=(0,M.useState)(!1),[he,Ie]=(0,M.useState)(void 0),[Fe,je]=(0,M.useState)(void 0),[Ge,bt]=(0,M.useState)(void 0),qe=(($=(B=r.values)==null?void 0:B.auth)==null?void 0:$[n])||{},Zt=((q=(re=r.errors)==null?void 0:re.auth)==null?void 0:q[n])||{},sr=he!==void 0&&Fe!==Ge?{label:"sync",onClick:()=>{he&&je(Ge)}}:void 0;(0,M.useEffect)(()=>{if(e){const nr=(0,so.CY)(43);wh(nr).then(Ht=>{Ie(nr),je(Ht),bt(Ht)})}},[e]);const gr=nr=>{if(!nr||(a.validate(),!(0,so.Qr)(Zt)))return;Pe(!0),Ee(null);const Ht=p?p+(0,Yt.jg)(nr):nr,xn=p&&c?p+(0,Yt.jg)(c):c,_i=a.getValue(`auth.${n}.scopes`),qn={authorizationUrl:Ht.startsWith("http")?Ht:v+Ht,clientId:qe.client_id,scopes:_i,redirectUri:ie,routingBasePath:ae,successCallback:on=>{a.setValue(`auth.${n}.token`,on),Pe(!1),Ee(null)},errorCallback:on=>{Pe(!1),Ee((on==null?void 0:on.message)||"Failed to retrieve the access token")}};if(s==="implicit"&&Fi.authorizeImplicit(qn),!(0,Yt.xl)(g)){console.log(`Unsupported token endpoint auth method: ${g}`);return}s==="authorizationCode"&&Fi.authorizeAuthorizationCode(Wc(Ep(Wc({},qn),{tokenUrl:xn!=null&&xn.startsWith("http")?xn:v+xn,clientSecret:qe.client_secret,extraHeaders:(0,Yt.Or)({authMethod:g,clientId:qe.client_id,clientSecret:qe.client_secret})}),e&&{codeVerifier:he,codeChallenge:Fe}))},Pr=()=>{Ut(),Ee(null)},cr=()=>{Pe(!1),Ee(null),Fi.clearRedirectData(s)},Ut=()=>{a.setValue(`auth.${n}.token`,"")},dr=()=>{be(nr=>!nr)},Nt=nr=>ux(void 0,[nr],function*({target:{value:Ht}}){const xn=yield wh(Ht);Ie(Ht),bt(xn)});if(!b)return M.createElement(ht.Xq,null,"No flow info");let it=(0,at.YQ)(`auth.${n}.token`)||JSON.stringify(I==null?void 0:I.token);it=it?JSON.parse(it):"";const wt=(0,at.Al)(n,"client_id"),zt={field:`auth.${n}.client_id`,fullWidth:!0,initialValue:(0,at.YQ)(`auth.${n}.client_id`)||D||(I==null?void 0:I.client_id),initValue:(0,at.YQ)(`auth.${n}.client_id`)||D||(I==null?void 0:I.client_id),placeholder:"Your OAuth2 app Client ID",validate:fx,validateOnBlur:!0,validateOnChange:!0};return M.createElement("div",null,M.createElement(ht.n5,null,M.createElement(ht.NI,null,M.createElement(ht.lX,null," Client ID: "),wt?M.createElement(Cu,Ep(Wc({},zt),{options:wt})):M.createElement(Rn,Ep(Wc({},zt),{"data-cy":"client-id-input",panel:"try-it"}))),s==="authorizationCode"&&M.createElement(M.Fragment,null,(!(e!=null&&e.hideClientSecretInput)||!e)&&M.createElement(ht.NI,null,M.createElement(ht.lX,null,"Client Secret:"),M.createElement(Rn,{type:"password",fullWidth:!0,field:`auth.${n}.client_secret`,initialValue:(0,at.YQ)(`auth.${n}.client_secret`)||(I==null?void 0:I.client_secret),validateOnBlur:!0,validateOnChange:!0,panel:"try-it","data-cy":"client-secret-input"})),e&&!e.disableManualConfiguration&&M.createElement(Ub,null,M.createElement(ug,{id:"pkce-opitons-toggle",label:"Configure PKCE manually",checked:we,onChange:dr,"data-cy":"pkce-options-toggle"}),we&&M.createElement(Wb,null,M.createElement(ht.NI,null,M.createElement(ht.lX,null,"Code Verifier"),M.createElement(Au,{fullWidth:!0,value:he,onChange:Nt,panel:"try-it","data-cy":"code-verifier-input"})),M.createElement(ht.NI,null,M.createElement(ht.lX,null,"Code Challenge"),M.createElement(Au,{fullWidth:!0,value:Fe,onChange:({target:{value:nr}})=>{je(nr)},inputActionButton:sr,panel:"try-it","data-cy":"code-challenge-input"}))))),M.createElement(Rn,{fullWidth:!0,field:`auth.${n}.token`,type:"hidden",initialValue:it,panel:"try-it"}),M.createElement(fg,{id:n,scopes:y}),qe.token&&qe.token.access_token?M.createElement(ht.NI,null,M.createElement(ht.lX,null," Access Token: "),M.createElement(Au,{disabled:!0,type:"password",fullWidth:!0,value:qe.token.access_token,panel:"try-it"})):null),M.createElement(Vb,null,qe.token&&qe.token.access_token?M.createElement(Bt.Button,{fullWidth:!0,onClick:Pr},"Log out"):ye?M.createElement(M.Fragment,null,M.createElement(Bt.Button,{fullWidth:!0,onClick:cr},"Cancel"),M.createElement(og,null)):M.createElement(Bt.Button,{fullWidth:!0,color:"secondary",disabled:!(0,so.Qr)(Zt),onClick:()=>{gr(b)}},"Authorize")),ye||pe||!qe.token||!qe.token.access_token&&M.createElement(nx,{loading:ye,error:pe,token:qe.token}))};var cx=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{g(n.next(v))}catch(y){s(y)}},p=v=>{try{g(n.throw(v))}catch(y){s(y)}},g=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);g((n=n.apply(e,r)).next())});function dx(e){var r,n;const{scheme:a,defaultValues:s}=e,[c,p]=(0,M.useState)({}),[g,v]=(0,M.useState)(),[y,b]=(0,M.useState)(!1);(0,M.useEffect)(()=>{I(a.openIdConnectUrl)},[a.openIdConnectUrl]);const I=D=>cx(this,null,function*(){b(!0),v("");try{const B=yield Db(D);p(B)}catch(B){v(B.message)}b(!1)});return y?M.createElement(px,null):g?M.createElement(pg,{message:g}):M.createElement("div",null,M.createElement("div",null,(r=c==null?void 0:c.response_types_supported)!=null&&r.includes("token")?M.createElement(M.Fragment,null,M.createElement(kn.S6,null,"OAuth2 Implicit Flow"),M.createElement(Hc,{key:e.id,authorizationUrl:c.authorization_endpoint,authCorsProxyUrl:e.authCorsProxyUrl,scopes:c.scopes_supported,server:e.server,id:e.id,form:e.form,formApi:e.formApi,clientId:e.clientId,flow:"implicit",defaultValues:s})):(n=c==null?void 0:c.response_types_supported)!=null&&n.includes("code")?M.createElement(M.Fragment,null,M.createElement(kn.S6,null,"OAuth2 Authorization Flow"),M.createElement(Hc,{key:e.id,authorizationUrl:c.authorization_endpoint,tokenUrl:c.token_endpoint,authCorsProxyUrl:e.authCorsProxyUrl,scopes:c.scopes_supported,server:e.server,id:e.id,form:e.form,formApi:e.formApi,clientId:e.clientId,tokenEndpointAuthMethod:c==null?void 0:c.token_endpoint_auth_methods_supported,flow:"authorizationCode",defaultValues:s})):M.createElement("div",null,"Unsupported flow")))}function px(){return M.createElement("div",null,M.createElement("div",null,M.createElement("div",null,"Fetching OpenID Connect metadata..."),M.createElement(og,null)))}function pg({message:e}){return M.createElement("div",null,M.createElement("div",null,M.createElement(ht.Xq,null,e)))}var hx=Object.defineProperty,vx=Object.defineProperties,gx=Object.getOwnPropertyDescriptors,hg=Object.getOwnPropertySymbols,mx=Object.prototype.hasOwnProperty,yx=Object.prototype.propertyIsEnumerable,vg=(e,r,n)=>r in e?hx(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,gg=(e,r)=>{for(var n in r||(r={}))mx.call(r,n)&&vg(e,n,r[n]);if(hg)for(var n of hg(r))yx.call(r,n)&&vg(e,n,r[n]);return e},mg=(e,r)=>vx(e,gx(r)),bx=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{g(n.next(v))}catch(y){s(y)}},p=v=>{try{g(n.throw(v))}catch(y){s(y)}},g=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);g((n=n.apply(e,r)).next())});function xx(e){if(!e)return"Token is required"}const Sx=({form:e,id:r,formApi:n,server:a,flow:s,authCorsProxyUrl:c,defaultValues:p,clientId:g})=>{var v,y,b,I;const[D,B]=(0,M.useState)(""),[$,re]=(0,M.useState)(!1),[q,ie]=(0,M.useState)(!0),ae=((y=(v=e==null?void 0:e.values)==null?void 0:v.auth)==null?void 0:y[r])||{},pe=((I=(b=e.errors)==null?void 0:b.auth)==null?void 0:I[r])||{},Ee=()=>{n.setValue(`auth.${r}.token`,""),(0,at.WW)(`auth.${r}.token`,"")},ye=()=>{ie(Fe=>!Fe)},Pe=()=>bx(void 0,null,function*(){if($)return;const Fe=c&&s.tokenUrl?c+(0,Yt.jg)(s.tokenUrl):s.tokenUrl;if(pe.client_id||pe.client_secret){console.log("Provide client_id and client_secret");return}const je=ae.client_id,Ge=ae.client_secret;if(!je||!Ge){console.log("Provide client_id and client_secret");return}re(!0);const bt=s["x-tokenEndpointAuthMethod"];if(!(0,Yt.xl)(bt)){console.log(`Unsupported token endpoint auth method: ${bt}`);return}yield Fi.authorizeClientCredentials({tokenUrl:Fe.startsWith("http")?Fe:a+Fe,clientId:je,clientSecret:Ge,scopes:ae.scopes,extraHeaders:(0,Yt.Or)({authMethod:bt,clientId:je,clientSecret:Ge}),successCallback:qe=>{n.setValue(`auth.${r}.token`,qe),re(!1)},errorCallback:qe=>{Ee(),B(qe.message),re(!1)}})}),we=Object.keys(s.scopes);let be=(0,at.YQ)(`auth.${r}.token`)||JSON.stringify(p==null?void 0:p.token);be=be?JSON.parse(be):"";const he=(0,at.Al)(r,"client_id"),Ie={field:`auth.${r}.client_id`,fullWidth:!0,initialValue:(0,at.YQ)(`auth.${r}.client_id`)||g||(p==null?void 0:p.client_id),initValue:(0,at.YQ)(`auth.${r}.client_id`)||g||(p==null?void 0:p.client_id),placeholder:"Your OAuth2 app Client ID"};return M.createElement(M.Fragment,null,M.createElement(ht.n5,null,M.createElement(ht.NI,null,M.createElement(ht.lX,null,"Client ID:"),he?M.createElement(Cu,mg(gg({},Ie),{options:he})):M.createElement(Rn,mg(gg({},Ie),{type:"password",panel:"try-it"}))),M.createElement(ht.NI,null,M.createElement(ht.lX,null,"Client Secret:"),M.createElement(Rn,{type:"password",fullWidth:!0,field:`auth.${r}.client_secret`,initialValue:(0,at.YQ)(`auth.${r}.client_secret`)||(p==null?void 0:p.client_secret),panel:"try-it"})),M.createElement(Rn,{fullWidth:!0,field:`auth.${r}.token`,type:"hidden",initialValue:be,validate:xx}),M.createElement(fg,{id:r,scopes:we})),M.createElement(Bt.Button,{color:"primary",onClick:Pe,blinking:$},$?"Loading...":"Request Token"),M.createElement(ht.ph,null," Access Token "),D?M.createElement(ht.Xq,{style:{marginBottom:"1em"}},"Failed to request token: ",M.createElement("pre",null,D)," "):ae.token&&ae.token.access_token?M.createElement(ht.TR,null,M.createElement(ht.WA,{length:ae.token.access_token.length,masked:q},ae.token.access_token),M.createElement(ht.lf,{onClick:ye},q?"Show":"Hide"," "),M.createElement(ht.h,{onClick:Ee}," Clear ")):M.createElement(ht.Xq,{style:{marginBottom:"1em"}},"No token"))};var wx=Object.defineProperty,Ax=Object.defineProperties,Cx=Object.getOwnPropertyDescriptors,yg=Object.getOwnPropertySymbols,Ex=Object.prototype.hasOwnProperty,Ox=Object.prototype.propertyIsEnumerable,bg=(e,r,n)=>r in e?wx(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,sl=(e,r)=>{for(var n in r||(r={}))Ex.call(r,n)&&bg(e,n,r[n]);if(yg)for(var n of yg(r))Ox.call(r,n)&&bg(e,n,r[n]);return e},ll=(e,r)=>Ax(e,Cx(r));const Tx=({securityDefaults:e,operation:r,activeServer:n,authCorsProxyUrl:a,form:s,formApi:c})=>{var p,g;const[v,y]=(0,M.useState)(0),{parser:b}=(0,fr.useRecoilValue)(qs.cS);(0,M.useEffect)(()=>{const ie=r.security.map(Ee=>Ee.schemes.map(ye=>ye.id).join(" and ")),ae=(0,at.YQ)("securityRequirementName"),pe=ie.findIndex(Ee=>Ee===ae);y(pe<0?0:pe)},[r]);const I=ie=>{y(ie.idx),(0,at.WW)("securityRequirementName",ie.value)},D=r.security,$=D.map(ie=>ie.schemes.map(ae=>ae.id).join(" and ")).filter(Boolean).map((ie,ae)=>({value:ie,idx:ae}));if($.length===0)return M.createElement(pg,{message:"Cannot find security schema in the definition"});const re=D[v],q=(0,at.A8)(re.schemes[0].id);return M.createElement(M.Fragment,null,M.createElement(ht.n5,null,$.length>1&&M.createElement(ht.NI,null,M.createElement(ht.lX,null," Security scheme: "),M.createElement(kn.VD,{variant:"dark",fullWidth:!0,options:$,value:$[v].value,onChange:I}))||null,M.createElement(Bt.TryItSecurityApps,{apiId:(g=(p=b==null?void 0:b.definition.info)==null?void 0:p["x-metadata"])==null?void 0:g.apiId,value:c.getValue(`auth.${q}`),onChange:ie=>{c.setValue(`auth.${q}`,ie)}}),D[v].schemes.map(ie=>{var ae,pe,Ee,ye,Pe,we,be;const he=(0,at.A8)(ie.id);if(ie.type==="apiKey"){const Ie=(0,at.Al)(he,""),Fe={field:`auth.${he}`,fullWidth:!0,initialValue:(0,Yt.NG)(ie)||(0,at.YQ)(`auth.${he}`)||(e==null?void 0:e[he]),initValue:(0,Yt.NG)(ie)||(0,at.YQ)(`auth.${he}`)||(e==null?void 0:e[he]),validate:Yt.np,validateOnBlur:!0,validateOnChange:!0};return M.createElement(ht.NI,{key:he},M.createElement(ht.lX,null," ",ie.name,": "),Ie?M.createElement(Cu,ll(sl({},Fe),{options:Ie})):M.createElement(Rn,ll(sl({},Fe),{type:"password",panel:"try-it","data-cy":"apiKey-auth-password"})))}else if(ie.type==="http"){if(ie.scheme==="basic"){const Ie=(0,at.Al)(he,"username"),Fe={field:`auth.${he}.username`,fullWidth:!0,initialValue:(0,at.YQ)(`auth.${he}.username`)||((ae=e==null?void 0:e[he])==null?void 0:ae.username),initValue:(0,at.YQ)(`auth.${he}.username`)||((pe=e==null?void 0:e[he])==null?void 0:pe.username),validate:Yt.np,validateOnBlur:!0,validateOnChange:!0};return M.createElement(M.Fragment,{key:he},M.createElement(ht.NI,null,M.createElement(ht.lX,null," ",(0,wu.l)("tryItAuthBasicUsername"),": "),Ie?M.createElement(Cu,ll(sl({},Fe),{options:Ie})):M.createElement(Rn,ll(sl({},Fe),{panel:"try-it"}))),M.createElement(ht.NI,null,M.createElement(ht.lX,null," ",(0,wu.l)("tryItAuthBasicPassword"),": "),M.createElement(Rn,{type:"password","data-cy":"http-auth-password",fullWidth:!0,field:`auth.${he}.password`,initialValue:(0,at.YQ)(`auth.${he}.password`)||((Ee=e==null?void 0:e[he])==null?void 0:Ee.password)||"",validateOnBlur:!0,validateOnChange:!0,panel:"try-it"})))}else if(ie.scheme==="bearer"){const Ie=(0,at.Al)(he,""),Fe={field:`auth.${he}`,fullWidth:!0,initialValue:(0,at.YQ)(`auth.${he}`)||(e==null?void 0:e[he]),initValue:(0,at.YQ)(`auth.${he}`)||(e==null?void 0:e[he]),validate:Yt.np,validateOnBlur:!0,validateOnChange:!0};return M.createElement(M.Fragment,{key:he},M.createElement(ht.NI,null,M.createElement(ht.lX,null," Bearer Token: "),Ie?M.createElement(Cu,ll(sl({},Fe),{options:Ie})):M.createElement(Rn,ll(sl({},Fe),{type:"password",placeholder:"(without 'Bearer')",panel:"try-it"}))))}}else{if(ie.type==="oauth2"&&ie.flows&&ie.flows.clientCredentials)return M.createElement(Sx,{key:he,flow:ie.flows.clientCredentials,server:n,authCorsProxyUrl:a,id:he,form:s,formApi:c,clientId:ie.flows.clientCredentials["x-defaultClientId"]||ie["x-defaultClientId"],defaultValues:e==null?void 0:e[he]});if(ie.type==="oauth2"&&ie.flows&&ie.flows.implicit)return M.createElement(Hc,{key:he,authorizationUrl:ie.flows.implicit.authorizationUrl,authCorsProxyUrl:a,scopes:Object.keys(((Pe=(ye=ie==null?void 0:ie.flows)==null?void 0:ye.implicit)==null?void 0:Pe.scopes)||{}),server:n,id:he,form:s,formApi:c,clientId:ie.flows.implicit["x-defaultClientId"]||ie["x-defaultClientId"],flow:"implicit",defaultValues:e==null?void 0:e[he]});if(ie.type==="oauth2"&&ie.flows&&ie.flows.authorizationCode)return M.createElement(Hc,{key:he,authorizationUrl:ie.flows.authorizationCode.authorizationUrl,tokenUrl:ie.flows.authorizationCode.tokenUrl,authCorsProxyUrl:a,scopes:Object.keys(((we=ie.flows.authorizationCode)==null?void 0:we.scopes)||{}),server:n,id:he,form:s,formApi:c,clientId:ie.flows.authorizationCode["x-defaultClientId"]||ie["x-defaultClientId"],flow:"authorizationCode",tokenEndpointAuthMethod:ie.flows.authorizationCode["x-tokenEndpointAuthMethod"],usePkce:ie.flows.authorizationCode["x-usePkce"],defaultValues:e==null?void 0:e[he]});if(ie.type==="oauth2"){let Ie=(0,at.YQ)(`auth.${he}.token`)||JSON.stringify((be=e==null?void 0:e[he])==null?void 0:be.token);return Ie=Ie?JSON.parse(Ie):{},M.createElement(M.Fragment,{key:he},M.createElement(ht.NI,null,M.createElement(ht.lX,null," Access Token Type: "),M.createElement(Rn,{fullWidth:!0,field:`auth.${he}.token.token_type`,initialValue:Ie.token_type||"Bearer",panel:"try-it"})),M.createElement(ht.NI,null,M.createElement(ht.lX,null," Access Token: "),M.createElement(Rn,{type:"password",fullWidth:!0,field:`auth.${he}.token.access_token`,validate:Yt.np,initialValue:Ie.access_token,validateOnBlur:!0,validateOnChange:!0,panel:"try-it"})))}else if(ie.type==="openIdConnect")return M.createElement(dx,{key:he,server:n,authCorsProxyUrl:a,id:he,form:s,formApi:c,scheme:ie,clientId:ie["x-defaultClientId"],defaultValues:e==null?void 0:e[he]})}})),M.createElement("small",null,M.createElement("strong",null,"Note"),": Your credentials will be saved until the end of the browser session"))};var Px=Object.defineProperty,xg=Object.getOwnPropertySymbols,Ix=Object.prototype.hasOwnProperty,kx=Object.prototype.propertyIsEnumerable,Sg=(e,r,n)=>r in e?Px(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Fx=(e,r)=>{for(var n in r||(r={}))Ix.call(r,n)&&Sg(e,n,r[n]);if(xg)for(var n of xg(r))kx.call(r,n)&&Sg(e,n,r[n]);return e};function Rx({operation:e,properties:r,securityDefaults:n,form:a,resolvedRawSpec:s,server:c,formApi:p,setFormApi:g,handleChange:v,handleServerChange:y}){const b=a.errors||{},I=b.path||b.cookie||b.header||b.query,{hooks:D,authCorsProxyUrl:B}=(0,fr.useRecoilValue)(qs.lk),$=s&&at.IB.get(s,e.pointer);let re=a.values&&a.values.auth&&Object.keys(a.values.auth)[0];(!re||!a.values.auth[re])&&(re=void 0),re&&(a.values.auth[re].token!==void 0||a.values.auth[re].client_id!==void 0||a.values.auth[re].client_secret!==void 0)&&(!a.values.auth[re].token||!a.values.auth[re].token.access_token)&&(re=void 0),re&&a.values.auth[re].username!=null&&(!a.values.auth[re].username||!a.values.auth[re].password)&&(re=void 0);const q=e.parameters||[];return!s&&M.createElement(M.Fragment,null,"Loading...")||M.createElement(ry,{onChange:v,getApi:g,style:{flex:1,display:"flex",flexDirection:"column",margin:0}},M.createElement(Dy,{operation:e,onChange:y}),M.createElement(yr.UQ,{initialActiveIdx:e.security.length&&re?1:0},e.security.length&&p&&M.createElement(np,{header:(0,wu.l)("tryItAuth"),"data-cy":"security-trigger",error:!re&&!!b.auth,success:!!re,renderChildrenHidden:!0},D!=null&&D.ReplaceTryItSecurityPanel?M.createElement(Mx,{field:"auth",validate:Yt.np},ie=>M.createElement(Ab.Q,{Hook:D==null?void 0:D.ReplaceTryItSecurityPanel,props:{server:c,operation:e,onChange:ie,OAuth2:Fi}})):M.createElement(Tx,{formApi:p,form:a,operation:e,activeServer:c.url,authCorsProxyUrl:B,securityDefaults:n}))||null,e.requestBody&&p&&M.createElement(np,{header:(0,wu.l)("tryItBody"),"data-cy":"body-trigger",error:!!b.body,renderChildrenHidden:!0},M.createElement(wb,{validate:Lx,formApi:p,body:e.requestBody,pointer:e.pointer,id:e.id,resolvedBody:$==null?void 0:$.requestBody,properties:r}))||null,q.length&&M.createElement(np,{header:(0,wu.l)("tryItParameters"),"data-cy":"parameters-trigger",error:I,renderChildrenHidden:!0},M.createElement(Lb,{operation:e,values:a.values,errors:a.errors||{}}))||null))}function Mx(e){const{fieldApi:r,render:n,userProps:a}=xu(Fx({},e)),{setValue:s}=r,{children:c}=a;return n(M.createElement(M.Fragment,null,c(s)))}function Lx(){}const Nx=(0,M.memo)(Rx);function Dx({shaking:e,className:r,children:n,rootElement:a}){const[s]=(0,Cp.Bs)(a),c=(0,fr.useRecoilValue)(qs.lk);return M.createElement(kn.q2,{scrollYOffset:c.scrollYOffset,shaking:e,className:r,"data-cy":"console",fullWidth:s==null?void 0:s.width},n)}const Bx=(0,M.memo)(Dx);var jx=Object.defineProperty,Vx=Object.defineProperties,Ux=Object.getOwnPropertyDescriptors,zc=Object.getOwnPropertySymbols,wg=Object.prototype.hasOwnProperty,Ag=Object.prototype.propertyIsEnumerable,Cg=(e,r,n)=>r in e?jx(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Gr=(e,r)=>{for(var n in r||(r={}))wg.call(r,n)&&Cg(e,n,r[n]);if(zc)for(var n of zc(r))Ag.call(r,n)&&Cg(e,n,r[n]);return e},wn=(e,r)=>Vx(e,Ux(r)),Eg=(e,r)=>{var n={};for(var a in e)wg.call(e,a)&&r.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&zc)for(var a of zc(e))r.indexOf(a)<0&&Ag.call(e,a)&&(n[a]=e[a]);return n},Og=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{g(n.next(v))}catch(y){s(y)}},p=v=>{try{g(n.throw(v))}catch(y){s(y)}},g=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);g((n=n.apply(e,r)).next())});function Tg(e){return e.startsWith("//")?"https:"+e:e}function Wx({operation:e,onResponse:r,className:n,rootElement:a,properties:s,securityDefaults:c,onClose:p}){let g=(0,M.useRef)();const[v,y]=(0,fr.useRecoilState)((0,ap.N)(e.pointer)),[b,I]=(0,M.useState)(v.activeServer||e.activeServer),[D,B]=(0,M.useState)(0),[$,re]=(0,M.useState)(!1),[q,ie]=(0,M.useState)(!1),[ae,pe]=(0,M.useState)({values:{path:(0,Yt.ZS)(e.parameters,"path"),cookie:(0,Yt.ZS)(e.parameters,"cookie"),header:(0,Yt.ZS)(e.parameters,"header"),query:(0,Yt.ZS)(e.parameters,"query")}}),[Ee,ye]=(0,M.useState)(),[Pe,we]=(0,M.useState)(),[be,he]=(0,M.useState)(),[Ie,Fe]=(0,M.useState)(),je=(0,Cp.D9)(e),{parser:Ge,options:bt}=(0,fr.useRecoilValue)(qs.cS),qe=(0,M.useCallback)((Ut,dr=Ut.getState())=>{var Nt=dr,{values:it}=Nt,wt=Eg(Nt,["values"]);g.current=Ut,setTimeout(()=>{pe(wn(Gr({},wt),{values:wn(Gr({},it),{query:(0,Yt.FU)(it.query||{})})}))},0)},[]),Zt=(0,M.useCallback)(Ut=>{var dr=Ut,{values:Nt}=dr,it=Eg(dr,["values"]);const wt=wn(Gr({},it),{values:wn(Gr({},Nt),{query:(0,Yt.FU)(Nt.query||{})})});y(zt=>wn(Gr({},zt),{requestValues:JSON.parse(JSON.stringify(Nt))})),pe(wt),(0,Yt.Hc)(wt)},[y]),sr=(0,M.useCallback)(Ut=>{B(Ut)},[]),gr=(0,M.useCallback)(Ut=>{I(Ut),y(dr=>wn(Gr({},dr),{activeServer:Ut}))},[y]),Pr=(0,M.useCallback)(()=>Og(this,null,function*(){var Ut,dr,Nt,it,wt,zt,nr,Ht,xn,_i,qn,on,po,es,Nn,Da,Gc;const{values:Mi,invalid:ul}=((Ut=g==null?void 0:g.current)==null?void 0:Ut.getState())||ae||{};if((dr=g.current)==null||dr.submitForm(),ul){ie(!0),setTimeout(()=>ie(!1),1e3),(it=(Nt=bt.events)==null?void 0:Nt.tryItSent)==null||it.call(Nt,{eventType:Zs.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"ValidationFailed",operationId:e.operationId,operationPath:e.path,operationHttpVerb:e.httpVerb,operationSummary:e.description});return}const{servers:ea,requestBody:Ba}=e,Op=Ba&&Ba.content&&((wt=(0,Ar.getActiveMediaType)(Ba.content))==null?void 0:wt.name)||"";let ta=Mi.body;if(/json/.test(Op))try{ta=JSON.parse(ta)}catch(qt){console.error(qt)}re(!0);const sn=Ee,fl=(e.httpVerb||"").toLowerCase();if(!ea)throw console.error("Servers are not specified in your OpenAPI file. You can't use Try It Out console without specifying servers. If you use OpenAPI 2, make sure you configured host and basepath"),new Error("Servers are not specified");const Du=ea.find(qt=>b.url.endsWith(qt.url.endsWith("/")?qt.url.substring(0,qt.url.length-1):qt.url)),Tp=Date.now(),Bu=!!window.document.documentMode;let ci,ja=Mi.auth;if(Mi.auth){const qt=Object.keys(Mi.auth)[0],di=(0,at.dw)(qt);ci=wn(Gr({},sn),{components:wn(Gr({},sn==null?void 0:sn.components),{securitySchemes:wn(Gr({},(zt=sn==null?void 0:sn.components)==null?void 0:zt.securitySchemes),{[di]:wn(Gr({},(Ht=(nr=sn==null?void 0:sn.components)==null?void 0:nr.securitySchemes)==null?void 0:Ht[di]),{type:((qn=(_i=(xn=sn==null?void 0:sn.components)==null?void 0:xn.securitySchemes)==null?void 0:_i[di])==null?void 0:qn.type)==="openIdConnect"?"oauth2":((po=(on=sn==null?void 0:sn.components)==null?void 0:on.securitySchemes)==null?void 0:po[di]).type})})})}),ja=wn(Gr({},ja),{[di]:ja[qt]})}else ci=Gr({},sn);ci.servers=ea;const cl=bt.corsProxyUrl;cl&&ea.length&&(ci.servers=ea.map(qt=>wn(Gr({},qt),{url:cl+Tg(qt.url)})),ci.paths=wn(Gr({},ci.paths),{[e.path]:wn(Gr({},ci.paths[e.path]),{[fl]:wn(Gr({},ci.paths[e.path][fl]),{servers:void 0}),servers:void 0})}));const ju=(Ba==null?void 0:Ba.content)&&((es=(0,Ar.getActiveMediaType)(Ba.content))==null?void 0:es.name)||null;if(ju&&ta&&ao(ju)){const qt=Object.values(ta);ta=qt.length>1?qt:qt[0]}const ts={userFetch:Bu&&o(96279).fetch,server:cl?cl+Tg(Du.url):Du.url,serverVariables:Du.variables,spec:ci,pathName:e.path,method:e.httpVerb,parameters:Gr(Gr(Gr(Gr({},Mi.path),Mi.query),Mi.header),Mi.cookie),securities:{authorized:ja},requestBody:ta,requestContentType:ju,responseContentType:((Nn=Mi.header)==null?void 0:Nn.Accept)||null,requestInterceptor:(0,Yt.Tz)(bt,e,ja==null?void 0:ja.Authorization)};try{const qt=yield Fr.execute(ts),di=qt==null?void 0:qt.data;di instanceof Blob&&(ao(di.type)&&(qt.fileInfo={rawData:di,fileName:(0,Yt.AM)(qt.headers)}),qt.data=yield di.text()),r==null||r({request:ts,response:qt}),Fe(qt),he(void 0)}catch(qt){qt&&qt.response&&qt.response.data instanceof Blob&&(qt.response.data=yield qt.response.data.text(),r==null||r({request:ts,response:qt.response})),Fe(void 0),he(qt)}finally{re(!1),B(1),we(Date.now()-Tp),(Gc=(Da=bt.events)==null?void 0:Da.tryItSent)==null||Gc.call(Da,{eventType:Zs.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"Sent",operationId:e.operationId,operationPath:e.path,operationHttpVerb:e.httpVerb,operationSummary:e.description})}}),[b.url,ae,r,e,bt,Ee]);(0,Bt.useMount)(()=>Og(this,null,function*(){var Ut;const dr=yield(0,Yt.lX)(e,Ge.definition);ye(dr),(Ut=g.current)==null||Ut.setValues({})})),(0,M.useEffect)(()=>{je&&je!==e&&(Fe(void 0),he(void 0),B(0))},[e,je]);const cr=!!(Ie||be);return M.createElement(Bx,{shaking:q,className:n,rootElement:a},M.createElement(yr.Hc,null,M.createElement(Gg,{active:D,hasResponse:cr,onChange:sr}),p&&M.createElement(kn.PZ,{onClick:p}," \u2715 ")),M.createElement(kn.RE,{hidden:D!==0,"data-cy":"console-request-body"},M.createElement(Nx,{operation:e,properties:s,securityDefaults:c,form:ae,resolvedRawSpec:Ee,server:b,formApi:g.current,setFormApi:qe,handleChange:Zt,handleServerChange:gr})),M.createElement(kn.RE,{hidden:D!==1,"data-cy":"console-response-body"},M.createElement(Hg,{response:Ie,error:be,time:Pe}),";"),M.createElement(Jg,{hasResponse:cr,params:ae.values,operation:e,loading:$,execute:Pr}))}const Hx=(0,M.memo)(Wx)},37795:h=>{"use strict";var O="Function.prototype.bind called on incompatible ",o=Array.prototype.slice,d=Object.prototype.toString,x="[object Function]";h.exports=function(C){var T=this;if(typeof T!="function"||d.call(T)!==x)throw new TypeError(O+T);for(var F=o.call(arguments,1),U,Z=function(){if(this instanceof U){var Y=T.apply(this,F.concat(o.call(arguments)));return Object(Y)===Y?Y:this}else return T.apply(C,F.concat(o.call(arguments)))},ee=Math.max(0,T.length-F.length),ue=[],ne=0;ne<ee;ne++)ue.push("$"+ne);if(U=Function("binder","return function ("+ue.join(",")+"){ return binder.apply(this,arguments); }")(Z),T.prototype){var oe=function(){};oe.prototype=T.prototype,U.prototype=new oe,oe.prototype=null}return U}},4090:(h,O,o)=>{"use strict";var d=o(37795);h.exports=Function.prototype.bind||d},67286:(h,O,o)=>{"use strict";var d,x=SyntaxError,w=Function,C=TypeError,T=function(ve){try{return w('"use strict"; return ('+ve+").constructor;")()}catch(_){}},F=Object.getOwnPropertyDescriptor;if(F)try{F({},"")}catch(ve){F=null}var U=function(){throw new C},Z=F?function(){try{return arguments.callee,U}catch(ve){try{return F(arguments,"callee").get}catch(_){return U}}}():U,ee=o(32636)(),ue=Object.getPrototypeOf||function(ve){return ve.__proto__},ne={},oe=typeof Uint8Array=="undefined"?d:ue(Uint8Array),Y={"%AggregateError%":typeof AggregateError=="undefined"?d:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?d:ArrayBuffer,"%ArrayIteratorPrototype%":ee?ue([][Symbol.iterator]()):d,"%AsyncFromSyncIteratorPrototype%":d,"%AsyncFunction%":ne,"%AsyncGenerator%":ne,"%AsyncGeneratorFunction%":ne,"%AsyncIteratorPrototype%":ne,"%Atomics%":typeof Atomics=="undefined"?d:Atomics,"%BigInt%":typeof BigInt=="undefined"?d:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?d:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?d:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?d:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?d:FinalizationRegistry,"%Function%":w,"%GeneratorFunction%":ne,"%Int8Array%":typeof Int8Array=="undefined"?d:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?d:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?d:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ee?ue(ue([][Symbol.iterator]())):d,"%JSON%":typeof JSON=="object"?JSON:d,"%Map%":typeof Map=="undefined"?d:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!ee?d:ue(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?d:Promise,"%Proxy%":typeof Proxy=="undefined"?d:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?d:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?d:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!ee?d:ue(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?d:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ee?ue(""[Symbol.iterator]()):d,"%Symbol%":ee?Symbol:d,"%SyntaxError%":x,"%ThrowTypeError%":Z,"%TypedArray%":oe,"%TypeError%":C,"%Uint8Array%":typeof Uint8Array=="undefined"?d:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?d:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?d:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?d:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?d:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?d:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?d:WeakSet},A=function ve(_){var X;if(_==="%AsyncFunction%")X=T("async function () {}");else if(_==="%GeneratorFunction%")X=T("function* () {}");else if(_==="%AsyncGeneratorFunction%")X=T("async function* () {}");else if(_==="%AsyncGenerator%"){var z=ve("%AsyncGeneratorFunction%");z&&(X=z.prototype)}else if(_==="%AsyncIteratorPrototype%"){var ge=ve("%AsyncGenerator%");ge&&(X=ue(ge.prototype))}return Y[_]=X,X},J={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},L=o(4090),E=o(23198),k=L.call(Function.call,Array.prototype.concat),V=L.call(Function.apply,Array.prototype.splice),G=L.call(Function.call,String.prototype.replace),Q=L.call(Function.call,String.prototype.slice),W=L.call(Function.call,RegExp.prototype.exec),te=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,K=/\\(\\)?/g,H=function(_){var X=Q(_,0,1),z=Q(_,-1);if(X==="%"&&z!=="%")throw new x("invalid intrinsic syntax, expected closing `%`");if(z==="%"&&X!=="%")throw new x("invalid intrinsic syntax, expected opening `%`");var ge=[];return G(_,te,function(Oe,Ue,Re,ot){ge[ge.length]=Re?G(ot,K,"$1"):Ue||Oe}),ge},fe=function(_,X){var z=_,ge;if(E(J,z)&&(ge=J[z],z="%"+ge[0]+"%"),E(Y,z)){var Oe=Y[z];if(Oe===ne&&(Oe=A(z)),typeof Oe=="undefined"&&!X)throw new C("intrinsic "+_+" exists, but is not available. Please file an issue!");return{alias:ge,name:z,value:Oe}}throw new x("intrinsic "+_+" does not exist!")};h.exports=function(_,X){if(typeof _!="string"||_.length===0)throw new C("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof X!="boolean")throw new C('"allowMissing" argument must be a boolean');if(W(/^%?[^%]*%?$/,_)===null)throw new x("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var z=H(_),ge=z.length>0?z[0]:"",Oe=fe("%"+ge+"%",X),Ue=Oe.name,Re=Oe.value,ot=!1,Xe=Oe.alias;Xe&&(ge=Xe[0],V(z,k([0,1],Xe)));for(var xt=1,Pt=!0;xt<z.length;xt+=1){var Ct=z[xt],Le=Q(Ct,0,1),Ce=Q(Ct,-1);if((Le==='"'||Le==="'"||Le==="`"||Ce==='"'||Ce==="'"||Ce==="`")&&Le!==Ce)throw new x("property names with quotes must have matching quotes");if((Ct==="constructor"||!Pt)&&(ot=!0),ge+="."+Ct,Ue="%"+ge+"%",E(Y,Ue))Re=Y[Ue];else if(Re!=null){if(!(Ct in Re)){if(!X)throw new C("base intrinsic for "+_+" exists, but the property is not available.");return}if(F&&xt+1>=z.length){var Se=F(Re,Ct);Pt=!!Se,Pt&&"get"in Se&&!("originalValue"in Se.get)?Re=Se.get:Re=Re[Ct]}else Pt=E(Re,Ct),Re=Re[Ct];Pt&&!ot&&(Y[Ue]=Re)}}return Re}},32636:(h,O,o)=>{"use strict";var d=typeof Symbol!="undefined"&&Symbol,x=o(66679);h.exports=function(){return typeof d!="function"||typeof Symbol!="function"||typeof d("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:x()}},66679:h=>{"use strict";h.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var o={},d=Symbol("test"),x=Object(d);if(typeof d=="string"||Object.prototype.toString.call(d)!=="[object Symbol]"||Object.prototype.toString.call(x)!=="[object Symbol]")return!1;var w=42;o[d]=w;for(d in o)return!1;if(typeof Object.keys=="function"&&Object.keys(o).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(o).length!==0)return!1;var C=Object.getOwnPropertySymbols(o);if(C.length!==1||C[0]!==d||!Object.prototype.propertyIsEnumerable.call(o,d))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var T=Object.getOwnPropertyDescriptor(o,d);if(T.value!==w||T.enumerable!==!0)return!1}return!0}},23198:(h,O,o)=>{"use strict";var d=o(4090);h.exports=d.call(Function.call,Object.prototype.hasOwnProperty)},89612:(h,O,o)=>{var d=o(52118),x=o(96909),w=o(98138),C=o(4174),T=o(7942);function F(U){var Z=-1,ee=U==null?0:U.length;for(this.clear();++Z<ee;){var ue=U[Z];this.set(ue[0],ue[1])}}F.prototype.clear=d,F.prototype.delete=x,F.prototype.get=w,F.prototype.has=C,F.prototype.set=T,h.exports=F},80235:(h,O,o)=>{var d=o(3945),x=o(21846),w=o(88028),C=o(72344),T=o(94769);function F(U){var Z=-1,ee=U==null?0:U.length;for(this.clear();++Z<ee;){var ue=U[Z];this.set(ue[0],ue[1])}}F.prototype.clear=d,F.prototype.delete=x,F.prototype.get=w,F.prototype.has=C,F.prototype.set=T,h.exports=F},10326:(h,O,o)=>{var d=o(38761),x=o(37772),w=d(x,"Map");h.exports=w},96738:(h,O,o)=>{var d=o(92411),x=o(36417),w=o(86928),C=o(79493),T=o(24150);function F(U){var Z=-1,ee=U==null?0:U.length;for(this.clear();++Z<ee;){var ue=U[Z];this.set(ue[0],ue[1])}}F.prototype.clear=d,F.prototype.delete=x,F.prototype.get=w,F.prototype.has=C,F.prototype.set=T,h.exports=F},50857:(h,O,o)=>{var d=o(37772),x=d.Symbol;h.exports=x},50343:h=>{function O(o,d){for(var x=-1,w=o==null?0:o.length,C=Array(w);++x<w;)C[x]=d(o[x],x,o);return C}h.exports=O},22218:(h,O,o)=>{var d=o(41225);function x(w,C){for(var T=w.length;T--;)if(d(w[T][0],C))return T;return-1}h.exports=x},13324:(h,O,o)=>{var d=o(17297),x=o(33812);function w(C,T){T=d(T,C);for(var F=0,U=T.length;C!=null&&F<U;)C=C[x(T[F++])];return F&&F==U?C:void 0}h.exports=w},53366:(h,O,o)=>{var d=o(50857),x=o(62107),w=o(37157),C="[object Null]",T="[object Undefined]",F=d?d.toStringTag:void 0;function U(Z){return Z==null?Z===void 0?T:C:F&&F in Object(Z)?x(Z):w(Z)}h.exports=U},6840:(h,O,o)=>{var d=o(61049),x=o(47394),w=o(29259),C=o(87035),T=/[\\^$.*+?()[\]{}|]/g,F=/^\[object .+?Constructor\]$/,U=Function.prototype,Z=Object.prototype,ee=U.toString,ue=Z.hasOwnProperty,ne=RegExp("^"+ee.call(ue).replace(T,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function oe(Y){if(!w(Y)||x(Y))return!1;var A=d(Y)?ne:F;return A.test(C(Y))}h.exports=oe},1054:(h,O,o)=>{var d=o(50857),x=o(50343),w=o(86152),C=o(4795),T=1/0,F=d?d.prototype:void 0,U=F?F.toString:void 0;function Z(ee){if(typeof ee=="string")return ee;if(w(ee))return x(ee,Z)+"";if(C(ee))return U?U.call(ee):"";var ue=ee+"";return ue=="0"&&1/ee==-T?"-0":ue}h.exports=Z},17297:(h,O,o)=>{var d=o(86152),x=o(21401),w=o(54452),C=o(66188);function T(F,U){return d(F)?F:x(F,U)?[F]:w(C(F))}h.exports=T},24019:(h,O,o)=>{var d=o(37772),x=d["__core-js_shared__"];h.exports=x},51242:(h,O,o)=>{var d=typeof o.g=="object"&&o.g&&o.g.Object===Object&&o.g;h.exports=d},27937:(h,O,o)=>{var d=o(98304);function x(w,C){var T=w.__data__;return d(C)?T[typeof C=="string"?"string":"hash"]:T.map}h.exports=x},38761:(h,O,o)=>{var d=o(6840),x=o(98109);function w(C,T){var F=x(C,T);return d(F)?F:void 0}h.exports=w},62107:(h,O,o)=>{var d=o(50857),x=Object.prototype,w=x.hasOwnProperty,C=x.toString,T=d?d.toStringTag:void 0;function F(U){var Z=w.call(U,T),ee=U[T];try{U[T]=void 0;var ue=!0}catch(oe){}var ne=C.call(U);return ue&&(Z?U[T]=ee:delete U[T]),ne}h.exports=F},98109:h=>{function O(o,d){return o==null?void 0:o[d]}h.exports=O},52118:(h,O,o)=>{var d=o(99191);function x(){this.__data__=d?d(null):{},this.size=0}h.exports=x},96909:h=>{function O(o){var d=this.has(o)&&delete this.__data__[o];return this.size-=d?1:0,d}h.exports=O},98138:(h,O,o)=>{var d=o(99191),x="__lodash_hash_undefined__",w=Object.prototype,C=w.hasOwnProperty;function T(F){var U=this.__data__;if(d){var Z=U[F];return Z===x?void 0:Z}return C.call(U,F)?U[F]:void 0}h.exports=T},4174:(h,O,o)=>{var d=o(99191),x=Object.prototype,w=x.hasOwnProperty;function C(T){var F=this.__data__;return d?F[T]!==void 0:w.call(F,T)}h.exports=C},7942:(h,O,o)=>{var d=o(99191),x="__lodash_hash_undefined__";function w(C,T){var F=this.__data__;return this.size+=this.has(C)?0:1,F[C]=d&&T===void 0?x:T,this}h.exports=w},21401:(h,O,o)=>{var d=o(86152),x=o(4795),w=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,C=/^\w*$/;function T(F,U){if(d(F))return!1;var Z=typeof F;return Z=="number"||Z=="symbol"||Z=="boolean"||F==null||x(F)?!0:C.test(F)||!w.test(F)||U!=null&&F in Object(U)}h.exports=T},98304:h=>{function O(o){var d=typeof o;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?o!=="__proto__":o===null}h.exports=O},47394:(h,O,o)=>{var d=o(24019),x=function(){var C=/[^.]+$/.exec(d&&d.keys&&d.keys.IE_PROTO||"");return C?"Symbol(src)_1."+C:""}();function w(C){return!!x&&x in C}h.exports=w},3945:h=>{function O(){this.__data__=[],this.size=0}h.exports=O},21846:(h,O,o)=>{var d=o(22218),x=Array.prototype,w=x.splice;function C(T){var F=this.__data__,U=d(F,T);if(U<0)return!1;var Z=F.length-1;return U==Z?F.pop():w.call(F,U,1),--this.size,!0}h.exports=C},88028:(h,O,o)=>{var d=o(22218);function x(w){var C=this.__data__,T=d(C,w);return T<0?void 0:C[T][1]}h.exports=x},72344:(h,O,o)=>{var d=o(22218);function x(w){return d(this.__data__,w)>-1}h.exports=x},94769:(h,O,o)=>{var d=o(22218);function x(w,C){var T=this.__data__,F=d(T,w);return F<0?(++this.size,T.push([w,C])):T[F][1]=C,this}h.exports=x},92411:(h,O,o)=>{var d=o(89612),x=o(80235),w=o(10326);function C(){this.size=0,this.__data__={hash:new d,map:new(w||x),string:new d}}h.exports=C},36417:(h,O,o)=>{var d=o(27937);function x(w){var C=d(this,w).delete(w);return this.size-=C?1:0,C}h.exports=x},86928:(h,O,o)=>{var d=o(27937);function x(w){return d(this,w).get(w)}h.exports=x},79493:(h,O,o)=>{var d=o(27937);function x(w){return d(this,w).has(w)}h.exports=x},24150:(h,O,o)=>{var d=o(27937);function x(w,C){var T=d(this,w),F=T.size;return T.set(w,C),this.size+=T.size==F?0:1,this}h.exports=x},77777:(h,O,o)=>{var d=o(30733),x=500;function w(C){var T=d(C,function(U){return F.size===x&&F.clear(),U}),F=T.cache;return T}h.exports=w},99191:(h,O,o)=>{var d=o(38761),x=d(Object,"create");h.exports=x},37157:h=>{var O=Object.prototype,o=O.toString;function d(x){return o.call(x)}h.exports=d},37772:(h,O,o)=>{var d=o(51242),x=typeof self=="object"&&self&&self.Object===Object&&self,w=d||x||Function("return this")();h.exports=w},54452:(h,O,o)=>{var d=o(77777),x=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,w=/\\(\\)?/g,C=d(function(T){var F=[];return T.charCodeAt(0)===46&&F.push(""),T.replace(x,function(U,Z,ee,ue){F.push(ee?ue.replace(w,"$1"):Z||U)}),F});h.exports=C},33812:(h,O,o)=>{var d=o(4795),x=1/0;function w(C){if(typeof C=="string"||d(C))return C;var T=C+"";return T=="0"&&1/C==-x?"-0":T}h.exports=w},87035:h=>{var O=Function.prototype,o=O.toString;function d(x){if(x!=null){try{return o.call(x)}catch(w){}try{return x+""}catch(w){}}return""}h.exports=d},41225:h=>{function O(o,d){return o===d||o!==o&&d!==d}h.exports=O},72579:(h,O,o)=>{var d=o(13324);function x(w,C,T){var F=w==null?void 0:d(w,C);return F===void 0?T:F}h.exports=x},86152:h=>{var O=Array.isArray;h.exports=O},61049:(h,O,o)=>{var d=o(53366),x=o(29259),w="[object AsyncFunction]",C="[object Function]",T="[object GeneratorFunction]",F="[object Proxy]";function U(Z){if(!x(Z))return!1;var ee=d(Z);return ee==C||ee==T||ee==w||ee==F}h.exports=U},29259:h=>{function O(o){var d=typeof o;return o!=null&&(d=="object"||d=="function")}h.exports=O},15125:h=>{function O(o){return o!=null&&typeof o=="object"}h.exports=O},4795:(h,O,o)=>{var d=o(53366),x=o(15125),w="[object Symbol]";function C(T){return typeof T=="symbol"||x(T)&&d(T)==w}h.exports=C},30733:(h,O,o)=>{var d=o(96738),x="Expected a function";function w(C,T){if(typeof C!="function"||T!=null&&typeof T!="function")throw new TypeError(x);var F=function(){var U=arguments,Z=T?T.apply(this,U):U[0],ee=F.cache;if(ee.has(Z))return ee.get(Z);var ue=C.apply(this,U);return F.cache=ee.set(Z,ue)||ee,ue};return F.cache=new(w.Cache||d),F}w.Cache=d,h.exports=w},66188:(h,O,o)=>{var d=o(1054);function x(w){return w==null?"":d(w)}h.exports=x},99500:(h,O,o)=>{var d=typeof Map=="function"&&Map.prototype,x=Object.getOwnPropertyDescriptor&&d?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,w=d&&x&&typeof x.get=="function"?x.get:null,C=d&&Map.prototype.forEach,T=typeof Set=="function"&&Set.prototype,F=Object.getOwnPropertyDescriptor&&T?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,U=T&&F&&typeof F.get=="function"?F.get:null,Z=T&&Set.prototype.forEach,ee=typeof WeakMap=="function"&&WeakMap.prototype,ue=ee?WeakMap.prototype.has:null,ne=typeof WeakSet=="function"&&WeakSet.prototype,oe=ne?WeakSet.prototype.has:null,Y=typeof WeakRef=="function"&&WeakRef.prototype,A=Y?WeakRef.prototype.deref:null,J=Boolean.prototype.valueOf,L=Object.prototype.toString,E=Function.prototype.toString,k=String.prototype.match,V=String.prototype.slice,G=String.prototype.replace,Q=String.prototype.toUpperCase,W=String.prototype.toLowerCase,te=RegExp.prototype.test,K=Array.prototype.concat,H=Array.prototype.join,fe=Array.prototype.slice,ve=Math.floor,_=typeof BigInt=="function"?BigInt.prototype.valueOf:null,X=Object.getOwnPropertySymbols,z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ge=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Oe=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ge?"object":"symbol")?Symbol.toStringTag:null,Ue=Object.prototype.propertyIsEnumerable,Re=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ce){return ce.__proto__}:null);function ot(ce,xe){if(ce===1/0||ce===-1/0||ce!==ce||ce&&ce>-1e3&&ce<1e3||te.call(/e/,xe))return xe;var Be=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ce=="number"){var Ke=ce<0?-ve(-ce):ve(ce);if(Ke!==ce){var ut=String(Ke),nt=V.call(xe,ut.length+1);return G.call(ut,Be,"$&_")+"."+G.call(G.call(nt,/([0-9]{3})/g,"$&_"),/_$/,"")}}return G.call(xe,Be,"$&_")}var Xe=o(53260),xt=Xe.custom,Pt=It(xt)?xt:null;h.exports=function ce(xe,Be,Ke,ut){var nt=Be||{};if(We(nt,"quoteStyle")&&nt.quoteStyle!=="single"&&nt.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(We(nt,"maxStringLength")&&(typeof nt.maxStringLength=="number"?nt.maxStringLength<0&&nt.maxStringLength!==1/0:nt.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var _t=We(nt,"customInspect")?nt.customInspect:!0;if(typeof _t!="boolean"&&_t!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(We(nt,"indent")&&nt.indent!==null&&nt.indent!==" "&&!(parseInt(nt.indent,10)===nt.indent&&nt.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(We(nt,"numericSeparator")&&typeof nt.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var lr=nt.numericSeparator;if(typeof xe=="undefined")return"undefined";if(xe===null)return"null";if(typeof xe=="boolean")return xe?"true":"false";if(typeof xe=="string")return mt(xe,nt);if(typeof xe=="number"){if(xe===0)return 1/0/xe>0?"0":"-0";var At=String(xe);return lr?ot(xe,At):At}if(typeof xe=="bigint"){var Cr=String(xe)+"n";return lr?ot(xe,Cr):Cr}var jn=typeof nt.depth=="undefined"?5:nt.depth;if(typeof Ke=="undefined"&&(Ke=0),Ke>=jn&&jn>0&&typeof xe=="object")return Ce(xe)?"[Array]":"[Object]";var $r=kt(nt,Ke);if(typeof ut=="undefined")ut=[];else if(qr(ut,xe)>=0)return"[Circular]";function Kr(en,kr,yi){if(kr&&(ut=fe.call(ut),ut.push(kr)),yi){var Cn={depth:nt.depth};return We(nt,"quoteStyle")&&(Cn.quoteStyle=nt.quoteStyle),ce(en,Cn,Ke+1,ut)}return ce(en,nt,Ke+1,ut)}if(typeof xe=="function"&&!De(xe)){var hi=st(xe),_r=Ve(xe,Kr);return"[Function"+(hi?": "+hi:" (anonymous)")+"]"+(_r.length>0?" { "+H.call(_r,", ")+" }":"")}if(It(xe)){var vi=ge?G.call(String(xe),/^(Symbol\(.*\))_[^)]*$/,"$1"):z.call(xe);return typeof xe=="object"&&!ge?Tt(vi):vi}if(et(xe)){for(var gi="<"+W.call(String(xe.nodeName)),er=xe.attributes||[],mi=0;mi<er.length;mi++)gi+=" "+er[mi].name+"="+Ct(Le(er[mi].value),"double",nt);return gi+=">",xe.childNodes&&xe.childNodes.length&&(gi+="..."),gi+="</"+W.call(String(xe.nodeName))+">",gi}if(Ce(xe)){if(xe.length===0)return"[]";var _n=Ve(xe,Kr);return $r&&!gt(_n)?"["+lt(_n,$r)+"]":"[ "+H.call(_n,", ")+" ]"}if($e(xe)){var ei=Ve(xe,Kr);return!("cause"in Error.prototype)&&"cause"in xe&&!Ue.call(xe,"cause")?"{ ["+String(xe)+"] "+H.call(K.call("[cause]: "+Kr(xe.cause),ei),", ")+" }":ei.length===0?"["+String(xe)+"]":"{ ["+String(xe)+"] "+H.call(ei,", ")+" }"}if(typeof xe=="object"&&_t){if(Pt&&typeof xe[Pt]=="function"&&Xe)return Xe(xe,{depth:jn-Ke});if(_t!=="symbol"&&typeof xe.inspect=="function")return xe.inspect()}if(Qe(xe)){var na=[];return C.call(xe,function(en,kr){na.push(Kr(kr,xe,!0)+" => "+Kr(en,xe))}),dt("Map",w.call(xe),na,$r)}if(Or(xe)){var pn=[];return Z.call(xe,function(en){pn.push(Kr(en,xe))}),dt("Set",U.call(xe),pn,$r)}if(un(xe))return Rt("WeakMap");if(hr(xe))return Rt("WeakSet");if(Ir(xe))return Rt("WeakRef");if(_e(xe))return Tt(Kr(Number(xe)));if(Wt(xe))return Tt(Kr(_.call(xe)));if(St(xe))return Tt(J.call(xe));if(tt(xe))return Tt(Kr(String(xe)));if(!Se(xe)&&!De(xe)){var fn=Ve(xe,Kr),hn=Re?Re(xe)===Object.prototype:xe instanceof Object||xe.constructor===Object,vn=xe instanceof Object?"":"null prototype",An=!hn&&Oe&&Object(xe)===xe&&Oe in xe?V.call(Ot(xe),8,-1):vn?"Object":"",ho=hn||typeof xe.constructor!="function"?"":xe.constructor.name?xe.constructor.name+" ":"",Vn=ho+(An||vn?"["+H.call(K.call([],An||[],vn||[]),": ")+"] ":"");return fn.length===0?Vn+"{}":$r?Vn+"{"+lt(fn,$r)+"}":Vn+"{ "+H.call(fn,", ")+" }"}return String(xe)};function Ct(ce,xe,Be){var Ke=(Be.quoteStyle||xe)==="double"?'"':"'";return Ke+ce+Ke}function Le(ce){return G.call(String(ce),/"/g,"&quot;")}function Ce(ce){return Ot(ce)==="[object Array]"&&(!Oe||!(typeof ce=="object"&&Oe in ce))}function Se(ce){return Ot(ce)==="[object Date]"&&(!Oe||!(typeof ce=="object"&&Oe in ce))}function De(ce){return Ot(ce)==="[object RegExp]"&&(!Oe||!(typeof ce=="object"&&Oe in ce))}function $e(ce){return Ot(ce)==="[object Error]"&&(!Oe||!(typeof ce=="object"&&Oe in ce))}function tt(ce){return Ot(ce)==="[object String]"&&(!Oe||!(typeof ce=="object"&&Oe in ce))}function _e(ce){return Ot(ce)==="[object Number]"&&(!Oe||!(typeof ce=="object"&&Oe in ce))}function St(ce){return Ot(ce)==="[object Boolean]"&&(!Oe||!(typeof ce=="object"&&Oe in ce))}function It(ce){if(ge)return ce&&typeof ce=="object"&&ce instanceof Symbol;if(typeof ce=="symbol")return!0;if(!ce||typeof ce!="object"||!z)return!1;try{return z.call(ce),!0}catch(xe){}return!1}function Wt(ce){if(!ce||typeof ce!="object"||!_)return!1;try{return _.call(ce),!0}catch(xe){}return!1}var $t=Object.prototype.hasOwnProperty||function(ce){return ce in this};function We(ce,xe){return $t.call(ce,xe)}function Ot(ce){return L.call(ce)}function st(ce){if(ce.name)return ce.name;var xe=k.call(E.call(ce),/^function\s*([\w$]+)/);return xe?xe[1]:null}function qr(ce,xe){if(ce.indexOf)return ce.indexOf(xe);for(var Be=0,Ke=ce.length;Be<Ke;Be++)if(ce[Be]===xe)return Be;return-1}function Qe(ce){if(!w||!ce||typeof ce!="object")return!1;try{w.call(ce);try{U.call(ce)}catch(xe){return!0}return ce instanceof Map}catch(xe){}return!1}function un(ce){if(!ue||!ce||typeof ce!="object")return!1;try{ue.call(ce,ue);try{oe.call(ce,oe)}catch(xe){return!0}return ce instanceof WeakMap}catch(xe){}return!1}function Ir(ce){if(!A||!ce||typeof ce!="object")return!1;try{return A.call(ce),!0}catch(xe){}return!1}function Or(ce){if(!U||!ce||typeof ce!="object")return!1;try{U.call(ce);try{w.call(ce)}catch(xe){return!0}return ce instanceof Set}catch(xe){}return!1}function hr(ce){if(!oe||!ce||typeof ce!="object")return!1;try{oe.call(ce,oe);try{ue.call(ce,ue)}catch(xe){return!0}return ce instanceof WeakSet}catch(xe){}return!1}function et(ce){return!ce||typeof ce!="object"?!1:typeof HTMLElement!="undefined"&&ce instanceof HTMLElement?!0:typeof ce.nodeName=="string"&&typeof ce.getAttribute=="function"}function mt(ce,xe){if(ce.length>xe.maxStringLength){var Be=ce.length-xe.maxStringLength,Ke="... "+Be+" more character"+(Be>1?"s":"");return mt(V.call(ce,0,xe.maxStringLength),xe)+Ke}var ut=G.call(G.call(ce,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Mt);return Ct(ut,"single",xe)}function Mt(ce){var xe=ce.charCodeAt(0),Be={8:"b",9:"t",10:"n",12:"f",13:"r"}[xe];return Be?"\\"+Be:"\\x"+(xe<16?"0":"")+Q.call(xe.toString(16))}function Tt(ce){return"Object("+ce+")"}function Rt(ce){return ce+" { ? }"}function dt(ce,xe,Be,Ke){var ut=Ke?lt(Be,Ke):H.call(Be,", ");return ce+" ("+xe+") {"+ut+"}"}function gt(ce){for(var xe=0;xe<ce.length;xe++)if(qr(ce[xe],`
504
+ `;function fg(e){const{scopes:r,id:n}=e;let a=[];try{a=JSON.parse((0,at.YQ)(`auth.${n}.scopes`))}catch(s){}return!r||!r.length?M.createElement(M.Fragment,null):M.createElement(ht.NI,null,M.createElement(ht.lX,null," Scopes: "),M.createElement(ex,{field:`auth.${n}.scopes`,initialValue:a,items:r,showControls:!0,trimItemsLength:!0}))}const nx=({token:e,loading:r,error:n})=>r?M.createElement(ht.GE,null,"Please, finish your authorization flow or cancel authorization."):n?M.createElement(jb,null,M.createElement(ht.Xq,null,n)):e!=null&&e.access_token?null:M.createElement(ht.GE,null," No Access Token. Please, Authorize. ");var ix=Object.defineProperty,ax=Object.defineProperties,ox=Object.getOwnPropertyDescriptors,cg=Object.getOwnPropertySymbols,sx=Object.prototype.hasOwnProperty,lx=Object.prototype.propertyIsEnumerable,dg=(e,r,n)=>r in e?ix(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Wc=(e,r)=>{for(var n in r||(r={}))sx.call(r,n)&&dg(e,n,r[n]);if(cg)for(var n of cg(r))lx.call(r,n)&&dg(e,n,r[n]);return e},Ep=(e,r)=>ax(e,ox(r)),ux=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{g(n.next(v))}catch(y){s(y)}},p=v=>{try{g(n.throw(v))}catch(y){s(y)}},g=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);g((n=n.apply(e,r)).next())});function fx(e){if(!e)return"Field is required"}const Hc=({usePkce:e,form:r,id:n,formApi:a,flow:s,tokenUrl:c,authCorsProxyUrl:p,tokenEndpointAuthMethod:g,server:v,scopes:y,authorizationUrl:b,defaultValues:I,clientId:D})=>{var B,$,re,q;const{oAuth2RedirectURI:ie,routingBasePath:ae}=(0,fr.useRecoilValue)(qs.lk),[pe,Ee]=(0,M.useState)(null),[ye,Pe]=(0,M.useState)(!1),[we,be]=(0,M.useState)(!1),[he,Ie]=(0,M.useState)(void 0),[Fe,je]=(0,M.useState)(void 0),[Ge,bt]=(0,M.useState)(void 0),qe=(($=(B=r.values)==null?void 0:B.auth)==null?void 0:$[n])||{},Zt=((q=(re=r.errors)==null?void 0:re.auth)==null?void 0:q[n])||{},sr=he!==void 0&&Fe!==Ge?{label:"sync",onClick:()=>{he&&je(Ge)}}:void 0;(0,M.useEffect)(()=>{if(e){const nr=(0,so.CY)(43);wh(nr).then(Ht=>{Ie(nr),je(Ht),bt(Ht)})}},[e]);const gr=nr=>{if(!nr||(a.validate(),!(0,so.Qr)(Zt)))return;Pe(!0),Ee(null);const Ht=p?p+(0,$t.jg)(nr):nr,xn=p&&c?p+(0,$t.jg)(c):c,_i=a.getValue(`auth.${n}.scopes`),qn={authorizationUrl:Ht.startsWith("http")?Ht:v+Ht,clientId:qe.client_id,scopes:_i,redirectUri:ie,routingBasePath:ae,successCallback:on=>{a.setValue(`auth.${n}.token`,on),Pe(!1),Ee(null)},errorCallback:on=>{Pe(!1),Ee((on==null?void 0:on.message)||"Failed to retrieve the access token")}};if(s==="implicit"&&Fi.authorizeImplicit(qn),!(0,$t.xl)(g)){console.log(`Unsupported token endpoint auth method: ${g}`);return}s==="authorizationCode"&&Fi.authorizeAuthorizationCode(Wc(Ep(Wc({},qn),{tokenUrl:xn!=null&&xn.startsWith("http")?xn:v+xn,clientSecret:qe.client_secret,extraHeaders:(0,$t.Or)({authMethod:g,clientId:qe.client_id,clientSecret:qe.client_secret})}),e&&{codeVerifier:he,codeChallenge:Fe}))},Pr=()=>{Ut(),Ee(null)},cr=()=>{Pe(!1),Ee(null),Fi.clearRedirectData(s)},Ut=()=>{a.setValue(`auth.${n}.token`,"")},dr=()=>{be(nr=>!nr)},Nt=nr=>ux(void 0,[nr],function*({target:{value:Ht}}){const xn=yield wh(Ht);Ie(Ht),bt(xn)});if(!b)return M.createElement(ht.Xq,null,"No flow info");let it=(0,at.YQ)(`auth.${n}.token`)||JSON.stringify(I==null?void 0:I.token);it=it?JSON.parse(it):"";const wt=(0,at.Al)(n,"client_id"),zt={field:`auth.${n}.client_id`,fullWidth:!0,initialValue:(0,at.YQ)(`auth.${n}.client_id`)||D||(I==null?void 0:I.client_id),initValue:(0,at.YQ)(`auth.${n}.client_id`)||D||(I==null?void 0:I.client_id),placeholder:"Your OAuth2 app Client ID",validate:fx,validateOnBlur:!0,validateOnChange:!0};return M.createElement("div",null,M.createElement(ht.n5,null,M.createElement(ht.NI,null,M.createElement(ht.lX,null," Client ID: "),wt?M.createElement(Cu,Ep(Wc({},zt),{options:wt})):M.createElement(Rn,Ep(Wc({},zt),{"data-cy":"client-id-input",panel:"try-it"}))),s==="authorizationCode"&&M.createElement(M.Fragment,null,(!(e!=null&&e.hideClientSecretInput)||!e)&&M.createElement(ht.NI,null,M.createElement(ht.lX,null,"Client Secret:"),M.createElement(Rn,{type:"password",fullWidth:!0,field:`auth.${n}.client_secret`,initialValue:(0,at.YQ)(`auth.${n}.client_secret`)||(I==null?void 0:I.client_secret),validateOnBlur:!0,validateOnChange:!0,panel:"try-it","data-cy":"client-secret-input"})),e&&!e.disableManualConfiguration&&M.createElement(Ub,null,M.createElement(ug,{id:"pkce-opitons-toggle",label:"Configure PKCE manually",checked:we,onChange:dr,"data-cy":"pkce-options-toggle"}),we&&M.createElement(Wb,null,M.createElement(ht.NI,null,M.createElement(ht.lX,null,"Code Verifier"),M.createElement(Au,{fullWidth:!0,value:he,onChange:Nt,panel:"try-it","data-cy":"code-verifier-input"})),M.createElement(ht.NI,null,M.createElement(ht.lX,null,"Code Challenge"),M.createElement(Au,{fullWidth:!0,value:Fe,onChange:({target:{value:nr}})=>{je(nr)},inputActionButton:sr,panel:"try-it","data-cy":"code-challenge-input"}))))),M.createElement(Rn,{fullWidth:!0,field:`auth.${n}.token`,type:"hidden",initialValue:it,panel:"try-it"}),M.createElement(fg,{id:n,scopes:y}),qe.token&&qe.token.access_token?M.createElement(ht.NI,null,M.createElement(ht.lX,null," Access Token: "),M.createElement(Au,{disabled:!0,type:"password",fullWidth:!0,value:qe.token.access_token,panel:"try-it"})):null),M.createElement(Vb,null,qe.token&&qe.token.access_token?M.createElement(Bt.Button,{fullWidth:!0,onClick:Pr},"Log out"):ye?M.createElement(M.Fragment,null,M.createElement(Bt.Button,{fullWidth:!0,onClick:cr},"Cancel"),M.createElement(og,null)):M.createElement(Bt.Button,{fullWidth:!0,color:"secondary",disabled:!(0,so.Qr)(Zt),onClick:()=>{gr(b)}},"Authorize")),ye||pe||!qe.token||!qe.token.access_token&&M.createElement(nx,{loading:ye,error:pe,token:qe.token}))};var cx=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{g(n.next(v))}catch(y){s(y)}},p=v=>{try{g(n.throw(v))}catch(y){s(y)}},g=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);g((n=n.apply(e,r)).next())});function dx(e){var r,n;const{scheme:a,defaultValues:s}=e,[c,p]=(0,M.useState)({}),[g,v]=(0,M.useState)(),[y,b]=(0,M.useState)(!1);(0,M.useEffect)(()=>{I(a.openIdConnectUrl)},[a.openIdConnectUrl]);const I=D=>cx(this,null,function*(){b(!0),v("");try{const B=yield Db(D);p(B)}catch(B){v(B.message)}b(!1)});return y?M.createElement(px,null):g?M.createElement(pg,{message:g}):M.createElement("div",null,M.createElement("div",null,(r=c==null?void 0:c.response_types_supported)!=null&&r.includes("token")?M.createElement(M.Fragment,null,M.createElement(kn.S6,null,"OAuth2 Implicit Flow"),M.createElement(Hc,{key:e.id,authorizationUrl:c.authorization_endpoint,authCorsProxyUrl:e.authCorsProxyUrl,scopes:c.scopes_supported,server:e.server,id:e.id,form:e.form,formApi:e.formApi,clientId:e.clientId,flow:"implicit",defaultValues:s})):(n=c==null?void 0:c.response_types_supported)!=null&&n.includes("code")?M.createElement(M.Fragment,null,M.createElement(kn.S6,null,"OAuth2 Authorization Flow"),M.createElement(Hc,{key:e.id,authorizationUrl:c.authorization_endpoint,tokenUrl:c.token_endpoint,authCorsProxyUrl:e.authCorsProxyUrl,scopes:c.scopes_supported,server:e.server,id:e.id,form:e.form,formApi:e.formApi,clientId:e.clientId,tokenEndpointAuthMethod:c==null?void 0:c.token_endpoint_auth_methods_supported,flow:"authorizationCode",defaultValues:s})):M.createElement("div",null,"Unsupported flow")))}function px(){return M.createElement("div",null,M.createElement("div",null,M.createElement("div",null,"Fetching OpenID Connect metadata..."),M.createElement(og,null)))}function pg({message:e}){return M.createElement("div",null,M.createElement("div",null,M.createElement(ht.Xq,null,e)))}var hx=Object.defineProperty,vx=Object.defineProperties,gx=Object.getOwnPropertyDescriptors,hg=Object.getOwnPropertySymbols,mx=Object.prototype.hasOwnProperty,yx=Object.prototype.propertyIsEnumerable,vg=(e,r,n)=>r in e?hx(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,gg=(e,r)=>{for(var n in r||(r={}))mx.call(r,n)&&vg(e,n,r[n]);if(hg)for(var n of hg(r))yx.call(r,n)&&vg(e,n,r[n]);return e},mg=(e,r)=>vx(e,gx(r)),bx=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{g(n.next(v))}catch(y){s(y)}},p=v=>{try{g(n.throw(v))}catch(y){s(y)}},g=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);g((n=n.apply(e,r)).next())});function xx(e){if(!e)return"Token is required"}const Sx=({form:e,id:r,formApi:n,server:a,flow:s,authCorsProxyUrl:c,defaultValues:p,clientId:g})=>{var v,y,b,I;const[D,B]=(0,M.useState)(""),[$,re]=(0,M.useState)(!1),[q,ie]=(0,M.useState)(!0),ae=((y=(v=e==null?void 0:e.values)==null?void 0:v.auth)==null?void 0:y[r])||{},pe=((I=(b=e.errors)==null?void 0:b.auth)==null?void 0:I[r])||{},Ee=()=>{n.setValue(`auth.${r}.token`,""),(0,at.WW)(`auth.${r}.token`,"")},ye=()=>{ie(Fe=>!Fe)},Pe=()=>bx(void 0,null,function*(){if($)return;const Fe=c&&s.tokenUrl?c+(0,$t.jg)(s.tokenUrl):s.tokenUrl;if(pe.client_id||pe.client_secret){console.log("Provide client_id and client_secret");return}const je=ae.client_id,Ge=ae.client_secret;if(!je||!Ge){console.log("Provide client_id and client_secret");return}re(!0);const bt=s["x-tokenEndpointAuthMethod"];if(!(0,$t.xl)(bt)){console.log(`Unsupported token endpoint auth method: ${bt}`);return}yield Fi.authorizeClientCredentials({tokenUrl:Fe.startsWith("http")?Fe:a+Fe,clientId:je,clientSecret:Ge,scopes:ae.scopes,extraHeaders:(0,$t.Or)({authMethod:bt,clientId:je,clientSecret:Ge}),successCallback:qe=>{n.setValue(`auth.${r}.token`,qe),re(!1)},errorCallback:qe=>{Ee(),B(qe.message),re(!1)}})}),we=Object.keys(s.scopes);let be=(0,at.YQ)(`auth.${r}.token`)||JSON.stringify(p==null?void 0:p.token);be=be?JSON.parse(be):"";const he=(0,at.Al)(r,"client_id"),Ie={field:`auth.${r}.client_id`,fullWidth:!0,initialValue:(0,at.YQ)(`auth.${r}.client_id`)||g||(p==null?void 0:p.client_id),initValue:(0,at.YQ)(`auth.${r}.client_id`)||g||(p==null?void 0:p.client_id),placeholder:"Your OAuth2 app Client ID"};return M.createElement(M.Fragment,null,M.createElement(ht.n5,null,M.createElement(ht.NI,null,M.createElement(ht.lX,null,"Client ID:"),he?M.createElement(Cu,mg(gg({},Ie),{options:he})):M.createElement(Rn,mg(gg({},Ie),{type:"password",panel:"try-it"}))),M.createElement(ht.NI,null,M.createElement(ht.lX,null,"Client Secret:"),M.createElement(Rn,{type:"password",fullWidth:!0,field:`auth.${r}.client_secret`,initialValue:(0,at.YQ)(`auth.${r}.client_secret`)||(p==null?void 0:p.client_secret),panel:"try-it"})),M.createElement(Rn,{fullWidth:!0,field:`auth.${r}.token`,type:"hidden",initialValue:be,validate:xx}),M.createElement(fg,{id:r,scopes:we})),M.createElement(Bt.Button,{color:"primary",onClick:Pe,blinking:$},$?"Loading...":"Request Token"),M.createElement(ht.ph,null," Access Token "),D?M.createElement(ht.Xq,{style:{marginBottom:"1em"}},"Failed to request token: ",M.createElement("pre",null,D)," "):ae.token&&ae.token.access_token?M.createElement(ht.TR,null,M.createElement(ht.WA,{length:ae.token.access_token.length,masked:q},ae.token.access_token),M.createElement(ht.lf,{onClick:ye},q?"Show":"Hide"," "),M.createElement(ht.h,{onClick:Ee}," Clear ")):M.createElement(ht.Xq,{style:{marginBottom:"1em"}},"No token"))};var wx=Object.defineProperty,Ax=Object.defineProperties,Cx=Object.getOwnPropertyDescriptors,yg=Object.getOwnPropertySymbols,Ex=Object.prototype.hasOwnProperty,Ox=Object.prototype.propertyIsEnumerable,bg=(e,r,n)=>r in e?wx(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,sl=(e,r)=>{for(var n in r||(r={}))Ex.call(r,n)&&bg(e,n,r[n]);if(yg)for(var n of yg(r))Ox.call(r,n)&&bg(e,n,r[n]);return e},ll=(e,r)=>Ax(e,Cx(r));const Tx=({securityDefaults:e,operation:r,activeServer:n,authCorsProxyUrl:a,form:s,formApi:c})=>{var p,g;const[v,y]=(0,M.useState)(0),{parser:b}=(0,fr.useRecoilValue)(qs.cS);(0,M.useEffect)(()=>{const ie=r.security.map(Ee=>Ee.schemes.map(ye=>ye.id).join(" and ")),ae=(0,at.YQ)("securityRequirementName"),pe=ie.findIndex(Ee=>Ee===ae);y(pe<0?0:pe)},[r]);const I=ie=>{y(ie.idx),(0,at.WW)("securityRequirementName",ie.value)},D=r.security,$=D.map(ie=>ie.schemes.map(ae=>ae.id).join(" and ")).filter(Boolean).map((ie,ae)=>({value:ie,idx:ae}));if($.length===0)return M.createElement(pg,{message:"Cannot find security schema in the definition"});const re=D[v],q=(0,at.A8)(re.schemes[0].id);return M.createElement(M.Fragment,null,M.createElement(ht.n5,null,$.length>1&&M.createElement(ht.NI,null,M.createElement(ht.lX,null," Security scheme: "),M.createElement(kn.VD,{variant:"dark",fullWidth:!0,options:$,value:$[v].value,onChange:I}))||null,M.createElement(Bt.TryItSecurityApps,{apiId:(g=(p=b==null?void 0:b.definition.info)==null?void 0:p["x-metadata"])==null?void 0:g.apiId,value:c.getValue(`auth.${q}`),onChange:ie=>{c.setValue(`auth.${q}`,ie)}}),D[v].schemes.map(ie=>{var ae,pe,Ee,ye,Pe,we,be;const he=(0,at.A8)(ie.id);if(ie.type==="apiKey"){const Ie=(0,at.Al)(he,""),Fe={field:`auth.${he}`,fullWidth:!0,initialValue:(0,$t.NG)(ie)||(0,at.YQ)(`auth.${he}`)||(e==null?void 0:e[he]),initValue:(0,$t.NG)(ie)||(0,at.YQ)(`auth.${he}`)||(e==null?void 0:e[he]),validate:$t.np,validateOnBlur:!0,validateOnChange:!0};return M.createElement(ht.NI,{key:he},M.createElement(ht.lX,null," ",ie.name,": "),Ie?M.createElement(Cu,ll(sl({},Fe),{options:Ie})):M.createElement(Rn,ll(sl({},Fe),{type:"password",panel:"try-it","data-cy":"apiKey-auth-password"})))}else if(ie.type==="http"){if(ie.scheme==="basic"){const Ie=(0,at.Al)(he,"username"),Fe={field:`auth.${he}.username`,fullWidth:!0,initialValue:(0,at.YQ)(`auth.${he}.username`)||((ae=e==null?void 0:e[he])==null?void 0:ae.username),initValue:(0,at.YQ)(`auth.${he}.username`)||((pe=e==null?void 0:e[he])==null?void 0:pe.username),validate:$t.np,validateOnBlur:!0,validateOnChange:!0};return M.createElement(M.Fragment,{key:he},M.createElement(ht.NI,null,M.createElement(ht.lX,null," ",(0,wu.l)("tryItAuthBasicUsername"),": "),Ie?M.createElement(Cu,ll(sl({},Fe),{options:Ie})):M.createElement(Rn,ll(sl({},Fe),{panel:"try-it"}))),M.createElement(ht.NI,null,M.createElement(ht.lX,null," ",(0,wu.l)("tryItAuthBasicPassword"),": "),M.createElement(Rn,{type:"password","data-cy":"http-auth-password",fullWidth:!0,field:`auth.${he}.password`,initialValue:(0,at.YQ)(`auth.${he}.password`)||((Ee=e==null?void 0:e[he])==null?void 0:Ee.password)||"",validateOnBlur:!0,validateOnChange:!0,panel:"try-it"})))}else if(ie.scheme==="bearer"){const Ie=(0,at.Al)(he,""),Fe={field:`auth.${he}`,fullWidth:!0,initialValue:(0,at.YQ)(`auth.${he}`)||(e==null?void 0:e[he]),initValue:(0,at.YQ)(`auth.${he}`)||(e==null?void 0:e[he]),validate:$t.np,validateOnBlur:!0,validateOnChange:!0};return M.createElement(M.Fragment,{key:he},M.createElement(ht.NI,null,M.createElement(ht.lX,null," Bearer Token: "),Ie?M.createElement(Cu,ll(sl({},Fe),{options:Ie})):M.createElement(Rn,ll(sl({},Fe),{type:"password",placeholder:"(without 'Bearer')",panel:"try-it"}))))}}else{if(ie.type==="oauth2"&&ie.flows&&ie.flows.clientCredentials)return M.createElement(Sx,{key:he,flow:ie.flows.clientCredentials,server:n,authCorsProxyUrl:a,id:he,form:s,formApi:c,clientId:ie.flows.clientCredentials["x-defaultClientId"]||ie["x-defaultClientId"],defaultValues:e==null?void 0:e[he]});if(ie.type==="oauth2"&&ie.flows&&ie.flows.implicit)return M.createElement(Hc,{key:he,authorizationUrl:ie.flows.implicit.authorizationUrl,authCorsProxyUrl:a,scopes:Object.keys(((Pe=(ye=ie==null?void 0:ie.flows)==null?void 0:ye.implicit)==null?void 0:Pe.scopes)||{}),server:n,id:he,form:s,formApi:c,clientId:ie.flows.implicit["x-defaultClientId"]||ie["x-defaultClientId"],flow:"implicit",defaultValues:e==null?void 0:e[he]});if(ie.type==="oauth2"&&ie.flows&&ie.flows.authorizationCode)return M.createElement(Hc,{key:he,authorizationUrl:ie.flows.authorizationCode.authorizationUrl,tokenUrl:ie.flows.authorizationCode.tokenUrl,authCorsProxyUrl:a,scopes:Object.keys(((we=ie.flows.authorizationCode)==null?void 0:we.scopes)||{}),server:n,id:he,form:s,formApi:c,clientId:ie.flows.authorizationCode["x-defaultClientId"]||ie["x-defaultClientId"],flow:"authorizationCode",tokenEndpointAuthMethod:ie.flows.authorizationCode["x-tokenEndpointAuthMethod"],usePkce:ie.flows.authorizationCode["x-usePkce"],defaultValues:e==null?void 0:e[he]});if(ie.type==="oauth2"){let Ie=(0,at.YQ)(`auth.${he}.token`)||JSON.stringify((be=e==null?void 0:e[he])==null?void 0:be.token);return Ie=Ie?JSON.parse(Ie):{},M.createElement(M.Fragment,{key:he},M.createElement(ht.NI,null,M.createElement(ht.lX,null," Access Token Type: "),M.createElement(Rn,{fullWidth:!0,field:`auth.${he}.token.token_type`,initialValue:Ie.token_type||"Bearer",panel:"try-it"})),M.createElement(ht.NI,null,M.createElement(ht.lX,null," Access Token: "),M.createElement(Rn,{type:"password",fullWidth:!0,field:`auth.${he}.token.access_token`,validate:$t.np,initialValue:Ie.access_token,validateOnBlur:!0,validateOnChange:!0,panel:"try-it"})))}else if(ie.type==="openIdConnect")return M.createElement(dx,{key:he,server:n,authCorsProxyUrl:a,id:he,form:s,formApi:c,scheme:ie,clientId:ie["x-defaultClientId"],defaultValues:e==null?void 0:e[he]})}})),M.createElement("small",null,M.createElement("strong",null,"Note"),": Your credentials will be saved until the end of the browser session"))};var Px=Object.defineProperty,xg=Object.getOwnPropertySymbols,Ix=Object.prototype.hasOwnProperty,kx=Object.prototype.propertyIsEnumerable,Sg=(e,r,n)=>r in e?Px(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Fx=(e,r)=>{for(var n in r||(r={}))Ix.call(r,n)&&Sg(e,n,r[n]);if(xg)for(var n of xg(r))kx.call(r,n)&&Sg(e,n,r[n]);return e};function Rx({operation:e,properties:r,securityDefaults:n,form:a,resolvedRawSpec:s,server:c,formApi:p,setFormApi:g,handleChange:v,handleServerChange:y}){const b=a.errors||{},I=b.path||b.cookie||b.header||b.query,{hooks:D,authCorsProxyUrl:B}=(0,fr.useRecoilValue)(qs.lk),$=s&&at.IB.get(s,e.pointer);let re=a.values&&a.values.auth&&Object.keys(a.values.auth)[0];(!re||!a.values.auth[re])&&(re=void 0),re&&(a.values.auth[re].token!==void 0||a.values.auth[re].client_id!==void 0||a.values.auth[re].client_secret!==void 0)&&(!a.values.auth[re].token||!a.values.auth[re].token.access_token)&&(re=void 0),re&&a.values.auth[re].username!=null&&(!a.values.auth[re].username||!a.values.auth[re].password)&&(re=void 0);const q=e.parameters||[];return!s&&M.createElement(M.Fragment,null,"Loading...")||M.createElement(ry,{onChange:v,getApi:g,style:{flex:1,display:"flex",flexDirection:"column",margin:0}},M.createElement(Dy,{operation:e,onChange:y}),M.createElement(yr.UQ,{initialActiveIdx:e.security.length&&re?1:0},e.security.length&&p&&M.createElement(np,{header:(0,wu.l)("tryItAuth"),"data-cy":"security-trigger",error:!re&&!!b.auth,success:!!re,renderChildrenHidden:!0},D!=null&&D.ReplaceTryItSecurityPanel?M.createElement(Mx,{field:"auth",validate:$t.np},ie=>M.createElement(Ab.Q,{Hook:D==null?void 0:D.ReplaceTryItSecurityPanel,props:{server:c,operation:e,onChange:ie,OAuth2:Fi}})):M.createElement(Tx,{formApi:p,form:a,operation:e,activeServer:c.url,authCorsProxyUrl:B,securityDefaults:n}))||null,e.requestBody&&p&&M.createElement(np,{header:(0,wu.l)("tryItBody"),"data-cy":"body-trigger",error:!!b.body,renderChildrenHidden:!0},M.createElement(wb,{validate:Lx,formApi:p,body:e.requestBody,pointer:e.pointer,id:e.id,resolvedBody:$==null?void 0:$.requestBody,properties:r}))||null,q.length&&M.createElement(np,{header:(0,wu.l)("tryItParameters"),"data-cy":"parameters-trigger",error:I,renderChildrenHidden:!0},M.createElement(Lb,{operation:e,values:a.values,errors:a.errors||{}}))||null))}function Mx(e){const{fieldApi:r,render:n,userProps:a}=xu(Fx({},e)),{setValue:s}=r,{children:c}=a;return n(M.createElement(M.Fragment,null,c(s)))}function Lx(){}const Nx=(0,M.memo)(Rx);function Dx({shaking:e,className:r,children:n,rootElement:a}){const[s]=(0,Cp.Bs)(a),c=(0,fr.useRecoilValue)(qs.lk);return M.createElement(kn.q2,{scrollYOffset:c.scrollYOffset,shaking:e,className:r,"data-cy":"console",fullWidth:s==null?void 0:s.width},n)}const Bx=(0,M.memo)(Dx);var jx=Object.defineProperty,Vx=Object.defineProperties,Ux=Object.getOwnPropertyDescriptors,zc=Object.getOwnPropertySymbols,wg=Object.prototype.hasOwnProperty,Ag=Object.prototype.propertyIsEnumerable,Cg=(e,r,n)=>r in e?jx(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Gr=(e,r)=>{for(var n in r||(r={}))wg.call(r,n)&&Cg(e,n,r[n]);if(zc)for(var n of zc(r))Ag.call(r,n)&&Cg(e,n,r[n]);return e},wn=(e,r)=>Vx(e,Ux(r)),Eg=(e,r)=>{var n={};for(var a in e)wg.call(e,a)&&r.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&zc)for(var a of zc(e))r.indexOf(a)<0&&Ag.call(e,a)&&(n[a]=e[a]);return n},Og=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{g(n.next(v))}catch(y){s(y)}},p=v=>{try{g(n.throw(v))}catch(y){s(y)}},g=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);g((n=n.apply(e,r)).next())});function Tg(e){return e.startsWith("//")?"https:"+e:e}function Wx({operation:e,onResponse:r,className:n,rootElement:a,properties:s,securityDefaults:c,onClose:p}){let g=(0,M.useRef)();const[v,y]=(0,fr.useRecoilState)((0,ap.N)(e.pointer)),[b,I]=(0,M.useState)(v.activeServer||e.activeServer),[D,B]=(0,M.useState)(0),[$,re]=(0,M.useState)(!1),[q,ie]=(0,M.useState)(!1),[ae,pe]=(0,M.useState)({values:{path:(0,$t.ZS)(e.parameters,"path"),cookie:(0,$t.ZS)(e.parameters,"cookie"),header:(0,$t.ZS)(e.parameters,"header"),query:(0,$t.ZS)(e.parameters,"query")}}),[Ee,ye]=(0,M.useState)(),[Pe,we]=(0,M.useState)(),[be,he]=(0,M.useState)(),[Ie,Fe]=(0,M.useState)(),je=(0,Cp.D9)(e),{parser:Ge,options:bt}=(0,fr.useRecoilValue)(qs.cS),qe=(0,M.useCallback)((Ut,dr=Ut.getState())=>{var Nt=dr,{values:it}=Nt,wt=Eg(Nt,["values"]);g.current=Ut,setTimeout(()=>{pe(wn(Gr({},wt),{values:wn(Gr({},it),{query:(0,$t.FU)(it.query||{})})}))},0)},[]),Zt=(0,M.useCallback)(Ut=>{var dr=Ut,{values:Nt}=dr,it=Eg(dr,["values"]);const wt=wn(Gr({},it),{values:wn(Gr({},Nt),{query:(0,$t.FU)(Nt.query||{})})});y(zt=>wn(Gr({},zt),{requestValues:JSON.parse(JSON.stringify(Nt))})),pe(wt),(0,$t.Hc)(wt)},[y]),sr=(0,M.useCallback)(Ut=>{B(Ut)},[]),gr=(0,M.useCallback)(Ut=>{I(Ut),y(dr=>wn(Gr({},dr),{activeServer:Ut}))},[y]),Pr=(0,M.useCallback)(()=>Og(this,null,function*(){var Ut,dr,Nt,it,wt,zt,nr,Ht,xn,_i,qn,on,po,es,Nn,Da,Gc;const{values:Mi,invalid:ul}=((Ut=g==null?void 0:g.current)==null?void 0:Ut.getState())||ae||{};if((dr=g.current)==null||dr.submitForm(),ul){ie(!0),setTimeout(()=>ie(!1),1e3),(it=(Nt=bt.events)==null?void 0:Nt.tryItSent)==null||it.call(Nt,{eventType:Zs.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"ValidationFailed",operationId:e.operationId,operationPath:e.path,operationHttpVerb:e.httpVerb,operationSummary:e.description});return}const{servers:ea,requestBody:Ba}=e,Op=Ba&&Ba.content&&((wt=(0,Ar.getActiveMediaType)(Ba.content))==null?void 0:wt.name)||"";let ta=Mi.body;if(/json/.test(Op))try{ta=JSON.parse(ta)}catch(qt){console.error(qt)}re(!0);const sn=Ee,fl=(e.httpVerb||"").toLowerCase();if(!ea)throw console.error("Servers are not specified in your OpenAPI file. You can't use Try It Out console without specifying servers. If you use OpenAPI 2, make sure you configured host and basepath"),new Error("Servers are not specified");const Du=ea.find(qt=>b.url.endsWith(qt.url.endsWith("/")?qt.url.substring(0,qt.url.length-1):qt.url)),Tp=Date.now(),Bu=!!window.document.documentMode;let ci,ja=Mi.auth;if(Mi.auth){const qt=Object.keys(Mi.auth)[0],di=(0,at.dw)(qt);ci=wn(Gr({},sn),{components:wn(Gr({},sn==null?void 0:sn.components),{securitySchemes:wn(Gr({},(zt=sn==null?void 0:sn.components)==null?void 0:zt.securitySchemes),{[di]:wn(Gr({},(Ht=(nr=sn==null?void 0:sn.components)==null?void 0:nr.securitySchemes)==null?void 0:Ht[di]),{type:((qn=(_i=(xn=sn==null?void 0:sn.components)==null?void 0:xn.securitySchemes)==null?void 0:_i[di])==null?void 0:qn.type)==="openIdConnect"?"oauth2":((po=(on=sn==null?void 0:sn.components)==null?void 0:on.securitySchemes)==null?void 0:po[di]).type})})})}),ja=wn(Gr({},ja),{[di]:ja[qt]})}else ci=Gr({},sn);ci.servers=ea;const cl=bt.corsProxyUrl;cl&&ea.length&&(ci.servers=ea.map(qt=>wn(Gr({},qt),{url:cl+Tg(qt.url)})),ci.paths=wn(Gr({},ci.paths),{[e.path]:wn(Gr({},ci.paths[e.path]),{[fl]:wn(Gr({},ci.paths[e.path][fl]),{servers:void 0}),servers:void 0})}));const ju=(Ba==null?void 0:Ba.content)&&((es=(0,Ar.getActiveMediaType)(Ba.content))==null?void 0:es.name)||null;if(ju&&ta&&ao(ju)){const qt=Object.values(ta);ta=qt.length>1?qt:qt[0]}const ts={userFetch:Bu&&o(96279).fetch,server:cl?cl+Tg(Du.url):Du.url,serverVariables:(0,$t.mj)(Du),spec:ci,pathName:e.path,method:e.httpVerb,parameters:Gr(Gr(Gr(Gr({},Mi.path),Mi.query),Mi.header),Mi.cookie),securities:{authorized:ja},requestBody:ta,requestContentType:ju,responseContentType:((Nn=Mi.header)==null?void 0:Nn.Accept)||null,requestInterceptor:(0,$t.Tz)(bt,e,ja==null?void 0:ja.Authorization)};try{const qt=yield Fr.execute(ts),di=qt==null?void 0:qt.data;di instanceof Blob&&(ao(di.type)&&(qt.fileInfo={rawData:di,fileName:(0,$t.AM)(qt.headers)}),qt.data=yield di.text()),r==null||r({request:ts,response:qt}),Fe(qt),he(void 0)}catch(qt){qt&&qt.response&&qt.response.data instanceof Blob&&(qt.response.data=yield qt.response.data.text(),r==null||r({request:ts,response:qt.response})),Fe(void 0),he(qt)}finally{re(!1),B(1),we(Date.now()-Tp),(Gc=(Da=bt.events)==null?void 0:Da.tryItSent)==null||Gc.call(Da,{eventType:Zs.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"Sent",operationId:e.operationId,operationPath:e.path,operationHttpVerb:e.httpVerb,operationSummary:e.description})}}),[b.url,ae,r,e,bt,Ee]);(0,Bt.useMount)(()=>Og(this,null,function*(){var Ut;const dr=yield(0,$t.lX)(e,Ge.definition);ye(dr),(Ut=g.current)==null||Ut.setValues({})})),(0,M.useEffect)(()=>{je&&je!==e&&(Fe(void 0),he(void 0),B(0))},[e,je]);const cr=!!(Ie||be);return M.createElement(Bx,{shaking:q,className:n,rootElement:a},M.createElement(yr.Hc,null,M.createElement(Gg,{active:D,hasResponse:cr,onChange:sr}),p&&M.createElement(kn.PZ,{onClick:p}," \u2715 ")),M.createElement(kn.RE,{hidden:D!==0,"data-cy":"console-request-body"},M.createElement(Nx,{operation:e,properties:s,securityDefaults:c,form:ae,resolvedRawSpec:Ee,server:b,formApi:g.current,setFormApi:qe,handleChange:Zt,handleServerChange:gr})),M.createElement(kn.RE,{hidden:D!==1,"data-cy":"console-response-body"},M.createElement(Hg,{response:Ie,error:be,time:Pe})),M.createElement(Jg,{hasResponse:cr,params:ae.values,operation:e,loading:$,execute:Pr}))}const Hx=(0,M.memo)(Wx)},37795:h=>{"use strict";var O="Function.prototype.bind called on incompatible ",o=Array.prototype.slice,d=Object.prototype.toString,x="[object Function]";h.exports=function(C){var T=this;if(typeof T!="function"||d.call(T)!==x)throw new TypeError(O+T);for(var F=o.call(arguments,1),U,Z=function(){if(this instanceof U){var Y=T.apply(this,F.concat(o.call(arguments)));return Object(Y)===Y?Y:this}else return T.apply(C,F.concat(o.call(arguments)))},ee=Math.max(0,T.length-F.length),ue=[],ne=0;ne<ee;ne++)ue.push("$"+ne);if(U=Function("binder","return function ("+ue.join(",")+"){ return binder.apply(this,arguments); }")(Z),T.prototype){var oe=function(){};oe.prototype=T.prototype,U.prototype=new oe,oe.prototype=null}return U}},4090:(h,O,o)=>{"use strict";var d=o(37795);h.exports=Function.prototype.bind||d},67286:(h,O,o)=>{"use strict";var d,x=SyntaxError,w=Function,C=TypeError,T=function(ve){try{return w('"use strict"; return ('+ve+").constructor;")()}catch(_){}},F=Object.getOwnPropertyDescriptor;if(F)try{F({},"")}catch(ve){F=null}var U=function(){throw new C},Z=F?function(){try{return arguments.callee,U}catch(ve){try{return F(arguments,"callee").get}catch(_){return U}}}():U,ee=o(32636)(),ue=Object.getPrototypeOf||function(ve){return ve.__proto__},ne={},oe=typeof Uint8Array=="undefined"?d:ue(Uint8Array),Y={"%AggregateError%":typeof AggregateError=="undefined"?d:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?d:ArrayBuffer,"%ArrayIteratorPrototype%":ee?ue([][Symbol.iterator]()):d,"%AsyncFromSyncIteratorPrototype%":d,"%AsyncFunction%":ne,"%AsyncGenerator%":ne,"%AsyncGeneratorFunction%":ne,"%AsyncIteratorPrototype%":ne,"%Atomics%":typeof Atomics=="undefined"?d:Atomics,"%BigInt%":typeof BigInt=="undefined"?d:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?d:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?d:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?d:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?d:FinalizationRegistry,"%Function%":w,"%GeneratorFunction%":ne,"%Int8Array%":typeof Int8Array=="undefined"?d:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?d:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?d:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ee?ue(ue([][Symbol.iterator]())):d,"%JSON%":typeof JSON=="object"?JSON:d,"%Map%":typeof Map=="undefined"?d:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!ee?d:ue(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?d:Promise,"%Proxy%":typeof Proxy=="undefined"?d:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?d:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?d:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!ee?d:ue(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?d:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ee?ue(""[Symbol.iterator]()):d,"%Symbol%":ee?Symbol:d,"%SyntaxError%":x,"%ThrowTypeError%":Z,"%TypedArray%":oe,"%TypeError%":C,"%Uint8Array%":typeof Uint8Array=="undefined"?d:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?d:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?d:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?d:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?d:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?d:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?d:WeakSet},A=function ve(_){var X;if(_==="%AsyncFunction%")X=T("async function () {}");else if(_==="%GeneratorFunction%")X=T("function* () {}");else if(_==="%AsyncGeneratorFunction%")X=T("async function* () {}");else if(_==="%AsyncGenerator%"){var z=ve("%AsyncGeneratorFunction%");z&&(X=z.prototype)}else if(_==="%AsyncIteratorPrototype%"){var ge=ve("%AsyncGenerator%");ge&&(X=ue(ge.prototype))}return Y[_]=X,X},J={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},L=o(4090),E=o(23198),k=L.call(Function.call,Array.prototype.concat),V=L.call(Function.apply,Array.prototype.splice),G=L.call(Function.call,String.prototype.replace),Q=L.call(Function.call,String.prototype.slice),W=L.call(Function.call,RegExp.prototype.exec),te=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,K=/\\(\\)?/g,H=function(_){var X=Q(_,0,1),z=Q(_,-1);if(X==="%"&&z!=="%")throw new x("invalid intrinsic syntax, expected closing `%`");if(z==="%"&&X!=="%")throw new x("invalid intrinsic syntax, expected opening `%`");var ge=[];return G(_,te,function(Oe,Ue,Re,ot){ge[ge.length]=Re?G(ot,K,"$1"):Ue||Oe}),ge},fe=function(_,X){var z=_,ge;if(E(J,z)&&(ge=J[z],z="%"+ge[0]+"%"),E(Y,z)){var Oe=Y[z];if(Oe===ne&&(Oe=A(z)),typeof Oe=="undefined"&&!X)throw new C("intrinsic "+_+" exists, but is not available. Please file an issue!");return{alias:ge,name:z,value:Oe}}throw new x("intrinsic "+_+" does not exist!")};h.exports=function(_,X){if(typeof _!="string"||_.length===0)throw new C("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof X!="boolean")throw new C('"allowMissing" argument must be a boolean');if(W(/^%?[^%]*%?$/,_)===null)throw new x("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var z=H(_),ge=z.length>0?z[0]:"",Oe=fe("%"+ge+"%",X),Ue=Oe.name,Re=Oe.value,ot=!1,Xe=Oe.alias;Xe&&(ge=Xe[0],V(z,k([0,1],Xe)));for(var xt=1,Pt=!0;xt<z.length;xt+=1){var Ct=z[xt],Le=Q(Ct,0,1),Ce=Q(Ct,-1);if((Le==='"'||Le==="'"||Le==="`"||Ce==='"'||Ce==="'"||Ce==="`")&&Le!==Ce)throw new x("property names with quotes must have matching quotes");if((Ct==="constructor"||!Pt)&&(ot=!0),ge+="."+Ct,Ue="%"+ge+"%",E(Y,Ue))Re=Y[Ue];else if(Re!=null){if(!(Ct in Re)){if(!X)throw new C("base intrinsic for "+_+" exists, but the property is not available.");return}if(F&&xt+1>=z.length){var Se=F(Re,Ct);Pt=!!Se,Pt&&"get"in Se&&!("originalValue"in Se.get)?Re=Se.get:Re=Re[Ct]}else Pt=E(Re,Ct),Re=Re[Ct];Pt&&!ot&&(Y[Ue]=Re)}}return Re}},32636:(h,O,o)=>{"use strict";var d=typeof Symbol!="undefined"&&Symbol,x=o(66679);h.exports=function(){return typeof d!="function"||typeof Symbol!="function"||typeof d("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:x()}},66679:h=>{"use strict";h.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var o={},d=Symbol("test"),x=Object(d);if(typeof d=="string"||Object.prototype.toString.call(d)!=="[object Symbol]"||Object.prototype.toString.call(x)!=="[object Symbol]")return!1;var w=42;o[d]=w;for(d in o)return!1;if(typeof Object.keys=="function"&&Object.keys(o).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(o).length!==0)return!1;var C=Object.getOwnPropertySymbols(o);if(C.length!==1||C[0]!==d||!Object.prototype.propertyIsEnumerable.call(o,d))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var T=Object.getOwnPropertyDescriptor(o,d);if(T.value!==w||T.enumerable!==!0)return!1}return!0}},23198:(h,O,o)=>{"use strict";var d=o(4090);h.exports=d.call(Function.call,Object.prototype.hasOwnProperty)},89612:(h,O,o)=>{var d=o(52118),x=o(96909),w=o(98138),C=o(4174),T=o(7942);function F(U){var Z=-1,ee=U==null?0:U.length;for(this.clear();++Z<ee;){var ue=U[Z];this.set(ue[0],ue[1])}}F.prototype.clear=d,F.prototype.delete=x,F.prototype.get=w,F.prototype.has=C,F.prototype.set=T,h.exports=F},80235:(h,O,o)=>{var d=o(3945),x=o(21846),w=o(88028),C=o(72344),T=o(94769);function F(U){var Z=-1,ee=U==null?0:U.length;for(this.clear();++Z<ee;){var ue=U[Z];this.set(ue[0],ue[1])}}F.prototype.clear=d,F.prototype.delete=x,F.prototype.get=w,F.prototype.has=C,F.prototype.set=T,h.exports=F},10326:(h,O,o)=>{var d=o(38761),x=o(37772),w=d(x,"Map");h.exports=w},96738:(h,O,o)=>{var d=o(92411),x=o(36417),w=o(86928),C=o(79493),T=o(24150);function F(U){var Z=-1,ee=U==null?0:U.length;for(this.clear();++Z<ee;){var ue=U[Z];this.set(ue[0],ue[1])}}F.prototype.clear=d,F.prototype.delete=x,F.prototype.get=w,F.prototype.has=C,F.prototype.set=T,h.exports=F},50857:(h,O,o)=>{var d=o(37772),x=d.Symbol;h.exports=x},50343:h=>{function O(o,d){for(var x=-1,w=o==null?0:o.length,C=Array(w);++x<w;)C[x]=d(o[x],x,o);return C}h.exports=O},22218:(h,O,o)=>{var d=o(41225);function x(w,C){for(var T=w.length;T--;)if(d(w[T][0],C))return T;return-1}h.exports=x},13324:(h,O,o)=>{var d=o(17297),x=o(33812);function w(C,T){T=d(T,C);for(var F=0,U=T.length;C!=null&&F<U;)C=C[x(T[F++])];return F&&F==U?C:void 0}h.exports=w},53366:(h,O,o)=>{var d=o(50857),x=o(62107),w=o(37157),C="[object Null]",T="[object Undefined]",F=d?d.toStringTag:void 0;function U(Z){return Z==null?Z===void 0?T:C:F&&F in Object(Z)?x(Z):w(Z)}h.exports=U},6840:(h,O,o)=>{var d=o(61049),x=o(47394),w=o(29259),C=o(87035),T=/[\\^$.*+?()[\]{}|]/g,F=/^\[object .+?Constructor\]$/,U=Function.prototype,Z=Object.prototype,ee=U.toString,ue=Z.hasOwnProperty,ne=RegExp("^"+ee.call(ue).replace(T,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function oe(Y){if(!w(Y)||x(Y))return!1;var A=d(Y)?ne:F;return A.test(C(Y))}h.exports=oe},1054:(h,O,o)=>{var d=o(50857),x=o(50343),w=o(86152),C=o(4795),T=1/0,F=d?d.prototype:void 0,U=F?F.toString:void 0;function Z(ee){if(typeof ee=="string")return ee;if(w(ee))return x(ee,Z)+"";if(C(ee))return U?U.call(ee):"";var ue=ee+"";return ue=="0"&&1/ee==-T?"-0":ue}h.exports=Z},17297:(h,O,o)=>{var d=o(86152),x=o(21401),w=o(54452),C=o(66188);function T(F,U){return d(F)?F:x(F,U)?[F]:w(C(F))}h.exports=T},24019:(h,O,o)=>{var d=o(37772),x=d["__core-js_shared__"];h.exports=x},51242:(h,O,o)=>{var d=typeof o.g=="object"&&o.g&&o.g.Object===Object&&o.g;h.exports=d},27937:(h,O,o)=>{var d=o(98304);function x(w,C){var T=w.__data__;return d(C)?T[typeof C=="string"?"string":"hash"]:T.map}h.exports=x},38761:(h,O,o)=>{var d=o(6840),x=o(98109);function w(C,T){var F=x(C,T);return d(F)?F:void 0}h.exports=w},62107:(h,O,o)=>{var d=o(50857),x=Object.prototype,w=x.hasOwnProperty,C=x.toString,T=d?d.toStringTag:void 0;function F(U){var Z=w.call(U,T),ee=U[T];try{U[T]=void 0;var ue=!0}catch(oe){}var ne=C.call(U);return ue&&(Z?U[T]=ee:delete U[T]),ne}h.exports=F},98109:h=>{function O(o,d){return o==null?void 0:o[d]}h.exports=O},52118:(h,O,o)=>{var d=o(99191);function x(){this.__data__=d?d(null):{},this.size=0}h.exports=x},96909:h=>{function O(o){var d=this.has(o)&&delete this.__data__[o];return this.size-=d?1:0,d}h.exports=O},98138:(h,O,o)=>{var d=o(99191),x="__lodash_hash_undefined__",w=Object.prototype,C=w.hasOwnProperty;function T(F){var U=this.__data__;if(d){var Z=U[F];return Z===x?void 0:Z}return C.call(U,F)?U[F]:void 0}h.exports=T},4174:(h,O,o)=>{var d=o(99191),x=Object.prototype,w=x.hasOwnProperty;function C(T){var F=this.__data__;return d?F[T]!==void 0:w.call(F,T)}h.exports=C},7942:(h,O,o)=>{var d=o(99191),x="__lodash_hash_undefined__";function w(C,T){var F=this.__data__;return this.size+=this.has(C)?0:1,F[C]=d&&T===void 0?x:T,this}h.exports=w},21401:(h,O,o)=>{var d=o(86152),x=o(4795),w=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,C=/^\w*$/;function T(F,U){if(d(F))return!1;var Z=typeof F;return Z=="number"||Z=="symbol"||Z=="boolean"||F==null||x(F)?!0:C.test(F)||!w.test(F)||U!=null&&F in Object(U)}h.exports=T},98304:h=>{function O(o){var d=typeof o;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?o!=="__proto__":o===null}h.exports=O},47394:(h,O,o)=>{var d=o(24019),x=function(){var C=/[^.]+$/.exec(d&&d.keys&&d.keys.IE_PROTO||"");return C?"Symbol(src)_1."+C:""}();function w(C){return!!x&&x in C}h.exports=w},3945:h=>{function O(){this.__data__=[],this.size=0}h.exports=O},21846:(h,O,o)=>{var d=o(22218),x=Array.prototype,w=x.splice;function C(T){var F=this.__data__,U=d(F,T);if(U<0)return!1;var Z=F.length-1;return U==Z?F.pop():w.call(F,U,1),--this.size,!0}h.exports=C},88028:(h,O,o)=>{var d=o(22218);function x(w){var C=this.__data__,T=d(C,w);return T<0?void 0:C[T][1]}h.exports=x},72344:(h,O,o)=>{var d=o(22218);function x(w){return d(this.__data__,w)>-1}h.exports=x},94769:(h,O,o)=>{var d=o(22218);function x(w,C){var T=this.__data__,F=d(T,w);return F<0?(++this.size,T.push([w,C])):T[F][1]=C,this}h.exports=x},92411:(h,O,o)=>{var d=o(89612),x=o(80235),w=o(10326);function C(){this.size=0,this.__data__={hash:new d,map:new(w||x),string:new d}}h.exports=C},36417:(h,O,o)=>{var d=o(27937);function x(w){var C=d(this,w).delete(w);return this.size-=C?1:0,C}h.exports=x},86928:(h,O,o)=>{var d=o(27937);function x(w){return d(this,w).get(w)}h.exports=x},79493:(h,O,o)=>{var d=o(27937);function x(w){return d(this,w).has(w)}h.exports=x},24150:(h,O,o)=>{var d=o(27937);function x(w,C){var T=d(this,w),F=T.size;return T.set(w,C),this.size+=T.size==F?0:1,this}h.exports=x},77777:(h,O,o)=>{var d=o(30733),x=500;function w(C){var T=d(C,function(U){return F.size===x&&F.clear(),U}),F=T.cache;return T}h.exports=w},99191:(h,O,o)=>{var d=o(38761),x=d(Object,"create");h.exports=x},37157:h=>{var O=Object.prototype,o=O.toString;function d(x){return o.call(x)}h.exports=d},37772:(h,O,o)=>{var d=o(51242),x=typeof self=="object"&&self&&self.Object===Object&&self,w=d||x||Function("return this")();h.exports=w},54452:(h,O,o)=>{var d=o(77777),x=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,w=/\\(\\)?/g,C=d(function(T){var F=[];return T.charCodeAt(0)===46&&F.push(""),T.replace(x,function(U,Z,ee,ue){F.push(ee?ue.replace(w,"$1"):Z||U)}),F});h.exports=C},33812:(h,O,o)=>{var d=o(4795),x=1/0;function w(C){if(typeof C=="string"||d(C))return C;var T=C+"";return T=="0"&&1/C==-x?"-0":T}h.exports=w},87035:h=>{var O=Function.prototype,o=O.toString;function d(x){if(x!=null){try{return o.call(x)}catch(w){}try{return x+""}catch(w){}}return""}h.exports=d},41225:h=>{function O(o,d){return o===d||o!==o&&d!==d}h.exports=O},72579:(h,O,o)=>{var d=o(13324);function x(w,C,T){var F=w==null?void 0:d(w,C);return F===void 0?T:F}h.exports=x},86152:h=>{var O=Array.isArray;h.exports=O},61049:(h,O,o)=>{var d=o(53366),x=o(29259),w="[object AsyncFunction]",C="[object Function]",T="[object GeneratorFunction]",F="[object Proxy]";function U(Z){if(!x(Z))return!1;var ee=d(Z);return ee==C||ee==T||ee==w||ee==F}h.exports=U},29259:h=>{function O(o){var d=typeof o;return o!=null&&(d=="object"||d=="function")}h.exports=O},15125:h=>{function O(o){return o!=null&&typeof o=="object"}h.exports=O},4795:(h,O,o)=>{var d=o(53366),x=o(15125),w="[object Symbol]";function C(T){return typeof T=="symbol"||x(T)&&d(T)==w}h.exports=C},30733:(h,O,o)=>{var d=o(96738),x="Expected a function";function w(C,T){if(typeof C!="function"||T!=null&&typeof T!="function")throw new TypeError(x);var F=function(){var U=arguments,Z=T?T.apply(this,U):U[0],ee=F.cache;if(ee.has(Z))return ee.get(Z);var ue=C.apply(this,U);return F.cache=ee.set(Z,ue)||ee,ue};return F.cache=new(w.Cache||d),F}w.Cache=d,h.exports=w},66188:(h,O,o)=>{var d=o(1054);function x(w){return w==null?"":d(w)}h.exports=x},99500:(h,O,o)=>{var d=typeof Map=="function"&&Map.prototype,x=Object.getOwnPropertyDescriptor&&d?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,w=d&&x&&typeof x.get=="function"?x.get:null,C=d&&Map.prototype.forEach,T=typeof Set=="function"&&Set.prototype,F=Object.getOwnPropertyDescriptor&&T?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,U=T&&F&&typeof F.get=="function"?F.get:null,Z=T&&Set.prototype.forEach,ee=typeof WeakMap=="function"&&WeakMap.prototype,ue=ee?WeakMap.prototype.has:null,ne=typeof WeakSet=="function"&&WeakSet.prototype,oe=ne?WeakSet.prototype.has:null,Y=typeof WeakRef=="function"&&WeakRef.prototype,A=Y?WeakRef.prototype.deref:null,J=Boolean.prototype.valueOf,L=Object.prototype.toString,E=Function.prototype.toString,k=String.prototype.match,V=String.prototype.slice,G=String.prototype.replace,Q=String.prototype.toUpperCase,W=String.prototype.toLowerCase,te=RegExp.prototype.test,K=Array.prototype.concat,H=Array.prototype.join,fe=Array.prototype.slice,ve=Math.floor,_=typeof BigInt=="function"?BigInt.prototype.valueOf:null,X=Object.getOwnPropertySymbols,z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ge=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Oe=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ge?"object":"symbol")?Symbol.toStringTag:null,Ue=Object.prototype.propertyIsEnumerable,Re=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ce){return ce.__proto__}:null);function ot(ce,xe){if(ce===1/0||ce===-1/0||ce!==ce||ce&&ce>-1e3&&ce<1e3||te.call(/e/,xe))return xe;var Be=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ce=="number"){var Ke=ce<0?-ve(-ce):ve(ce);if(Ke!==ce){var ut=String(Ke),nt=V.call(xe,ut.length+1);return G.call(ut,Be,"$&_")+"."+G.call(G.call(nt,/([0-9]{3})/g,"$&_"),/_$/,"")}}return G.call(xe,Be,"$&_")}var Xe=o(53260),xt=Xe.custom,Pt=It(xt)?xt:null;h.exports=function ce(xe,Be,Ke,ut){var nt=Be||{};if(We(nt,"quoteStyle")&&nt.quoteStyle!=="single"&&nt.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(We(nt,"maxStringLength")&&(typeof nt.maxStringLength=="number"?nt.maxStringLength<0&&nt.maxStringLength!==1/0:nt.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var _t=We(nt,"customInspect")?nt.customInspect:!0;if(typeof _t!="boolean"&&_t!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(We(nt,"indent")&&nt.indent!==null&&nt.indent!==" "&&!(parseInt(nt.indent,10)===nt.indent&&nt.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(We(nt,"numericSeparator")&&typeof nt.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var lr=nt.numericSeparator;if(typeof xe=="undefined")return"undefined";if(xe===null)return"null";if(typeof xe=="boolean")return xe?"true":"false";if(typeof xe=="string")return mt(xe,nt);if(typeof xe=="number"){if(xe===0)return 1/0/xe>0?"0":"-0";var At=String(xe);return lr?ot(xe,At):At}if(typeof xe=="bigint"){var Cr=String(xe)+"n";return lr?ot(xe,Cr):Cr}var jn=typeof nt.depth=="undefined"?5:nt.depth;if(typeof Ke=="undefined"&&(Ke=0),Ke>=jn&&jn>0&&typeof xe=="object")return Ce(xe)?"[Array]":"[Object]";var $r=kt(nt,Ke);if(typeof ut=="undefined")ut=[];else if(qr(ut,xe)>=0)return"[Circular]";function Kr(en,kr,yi){if(kr&&(ut=fe.call(ut),ut.push(kr)),yi){var Cn={depth:nt.depth};return We(nt,"quoteStyle")&&(Cn.quoteStyle=nt.quoteStyle),ce(en,Cn,Ke+1,ut)}return ce(en,nt,Ke+1,ut)}if(typeof xe=="function"&&!De(xe)){var hi=st(xe),_r=Ve(xe,Kr);return"[Function"+(hi?": "+hi:" (anonymous)")+"]"+(_r.length>0?" { "+H.call(_r,", ")+" }":"")}if(It(xe)){var vi=ge?G.call(String(xe),/^(Symbol\(.*\))_[^)]*$/,"$1"):z.call(xe);return typeof xe=="object"&&!ge?Tt(vi):vi}if(et(xe)){for(var gi="<"+W.call(String(xe.nodeName)),er=xe.attributes||[],mi=0;mi<er.length;mi++)gi+=" "+er[mi].name+"="+Ct(Le(er[mi].value),"double",nt);return gi+=">",xe.childNodes&&xe.childNodes.length&&(gi+="..."),gi+="</"+W.call(String(xe.nodeName))+">",gi}if(Ce(xe)){if(xe.length===0)return"[]";var _n=Ve(xe,Kr);return $r&&!gt(_n)?"["+lt(_n,$r)+"]":"[ "+H.call(_n,", ")+" ]"}if($e(xe)){var ei=Ve(xe,Kr);return!("cause"in Error.prototype)&&"cause"in xe&&!Ue.call(xe,"cause")?"{ ["+String(xe)+"] "+H.call(K.call("[cause]: "+Kr(xe.cause),ei),", ")+" }":ei.length===0?"["+String(xe)+"]":"{ ["+String(xe)+"] "+H.call(ei,", ")+" }"}if(typeof xe=="object"&&_t){if(Pt&&typeof xe[Pt]=="function"&&Xe)return Xe(xe,{depth:jn-Ke});if(_t!=="symbol"&&typeof xe.inspect=="function")return xe.inspect()}if(Qe(xe)){var na=[];return C.call(xe,function(en,kr){na.push(Kr(kr,xe,!0)+" => "+Kr(en,xe))}),dt("Map",w.call(xe),na,$r)}if(Or(xe)){var pn=[];return Z.call(xe,function(en){pn.push(Kr(en,xe))}),dt("Set",U.call(xe),pn,$r)}if(un(xe))return Rt("WeakMap");if(hr(xe))return Rt("WeakSet");if(Ir(xe))return Rt("WeakRef");if(_e(xe))return Tt(Kr(Number(xe)));if(Wt(xe))return Tt(Kr(_.call(xe)));if(St(xe))return Tt(J.call(xe));if(tt(xe))return Tt(Kr(String(xe)));if(!Se(xe)&&!De(xe)){var fn=Ve(xe,Kr),hn=Re?Re(xe)===Object.prototype:xe instanceof Object||xe.constructor===Object,vn=xe instanceof Object?"":"null prototype",An=!hn&&Oe&&Object(xe)===xe&&Oe in xe?V.call(Ot(xe),8,-1):vn?"Object":"",ho=hn||typeof xe.constructor!="function"?"":xe.constructor.name?xe.constructor.name+" ":"",Vn=ho+(An||vn?"["+H.call(K.call([],An||[],vn||[]),": ")+"] ":"");return fn.length===0?Vn+"{}":$r?Vn+"{"+lt(fn,$r)+"}":Vn+"{ "+H.call(fn,", ")+" }"}return String(xe)};function Ct(ce,xe,Be){var Ke=(Be.quoteStyle||xe)==="double"?'"':"'";return Ke+ce+Ke}function Le(ce){return G.call(String(ce),/"/g,"&quot;")}function Ce(ce){return Ot(ce)==="[object Array]"&&(!Oe||!(typeof ce=="object"&&Oe in ce))}function Se(ce){return Ot(ce)==="[object Date]"&&(!Oe||!(typeof ce=="object"&&Oe in ce))}function De(ce){return Ot(ce)==="[object RegExp]"&&(!Oe||!(typeof ce=="object"&&Oe in ce))}function $e(ce){return Ot(ce)==="[object Error]"&&(!Oe||!(typeof ce=="object"&&Oe in ce))}function tt(ce){return Ot(ce)==="[object String]"&&(!Oe||!(typeof ce=="object"&&Oe in ce))}function _e(ce){return Ot(ce)==="[object Number]"&&(!Oe||!(typeof ce=="object"&&Oe in ce))}function St(ce){return Ot(ce)==="[object Boolean]"&&(!Oe||!(typeof ce=="object"&&Oe in ce))}function It(ce){if(ge)return ce&&typeof ce=="object"&&ce instanceof Symbol;if(typeof ce=="symbol")return!0;if(!ce||typeof ce!="object"||!z)return!1;try{return z.call(ce),!0}catch(xe){}return!1}function Wt(ce){if(!ce||typeof ce!="object"||!_)return!1;try{return _.call(ce),!0}catch(xe){}return!1}var Kt=Object.prototype.hasOwnProperty||function(ce){return ce in this};function We(ce,xe){return Kt.call(ce,xe)}function Ot(ce){return L.call(ce)}function st(ce){if(ce.name)return ce.name;var xe=k.call(E.call(ce),/^function\s*([\w$]+)/);return xe?xe[1]:null}function qr(ce,xe){if(ce.indexOf)return ce.indexOf(xe);for(var Be=0,Ke=ce.length;Be<Ke;Be++)if(ce[Be]===xe)return Be;return-1}function Qe(ce){if(!w||!ce||typeof ce!="object")return!1;try{w.call(ce);try{U.call(ce)}catch(xe){return!0}return ce instanceof Map}catch(xe){}return!1}function un(ce){if(!ue||!ce||typeof ce!="object")return!1;try{ue.call(ce,ue);try{oe.call(ce,oe)}catch(xe){return!0}return ce instanceof WeakMap}catch(xe){}return!1}function Ir(ce){if(!A||!ce||typeof ce!="object")return!1;try{return A.call(ce),!0}catch(xe){}return!1}function Or(ce){if(!U||!ce||typeof ce!="object")return!1;try{U.call(ce);try{w.call(ce)}catch(xe){return!0}return ce instanceof Set}catch(xe){}return!1}function hr(ce){if(!oe||!ce||typeof ce!="object")return!1;try{oe.call(ce,oe);try{ue.call(ce,ue)}catch(xe){return!0}return ce instanceof WeakSet}catch(xe){}return!1}function et(ce){return!ce||typeof ce!="object"?!1:typeof HTMLElement!="undefined"&&ce instanceof HTMLElement?!0:typeof ce.nodeName=="string"&&typeof ce.getAttribute=="function"}function mt(ce,xe){if(ce.length>xe.maxStringLength){var Be=ce.length-xe.maxStringLength,Ke="... "+Be+" more character"+(Be>1?"s":"");return mt(V.call(ce,0,xe.maxStringLength),xe)+Ke}var ut=G.call(G.call(ce,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Mt);return Ct(ut,"single",xe)}function Mt(ce){var xe=ce.charCodeAt(0),Be={8:"b",9:"t",10:"n",12:"f",13:"r"}[xe];return Be?"\\"+Be:"\\x"+(xe<16?"0":"")+Q.call(xe.toString(16))}function Tt(ce){return"Object("+ce+")"}function Rt(ce){return ce+" { ? }"}function dt(ce,xe,Be,Ke){var ut=Ke?lt(Be,Ke):H.call(Be,", ");return ce+" ("+xe+") {"+ut+"}"}function gt(ce){for(var xe=0;xe<ce.length;xe++)if(qr(ce[xe],`
505
505
  `)>=0)return!1;return!0}function kt(ce,xe){var Be;if(ce.indent===" ")Be=" ";else if(typeof ce.indent=="number"&&ce.indent>0)Be=H.call(Array(ce.indent+1)," ");else return null;return{base:Be,prev:H.call(Array(xe+1),Be)}}function lt(ce,xe){if(ce.length===0)return"";var Be=`
506
506
  `+xe.prev+xe.base;return Be+H.call(ce,","+Be)+`
507
- `+xe.prev}function Ve(ce,xe){var Be=Ce(ce),Ke=[];if(Be){Ke.length=ce.length;for(var ut=0;ut<ce.length;ut++)Ke[ut]=We(ce,ut)?xe(ce[ut],ce):""}var nt=typeof X=="function"?X(ce):[],_t;if(ge){_t={};for(var lr=0;lr<nt.length;lr++)_t["$"+nt[lr]]=nt[lr]}for(var At in ce)!We(ce,At)||Be&&String(Number(At))===At&&At<ce.length||ge&&_t["$"+At]instanceof Symbol||(te.call(/[^\w$]/,At)?Ke.push(xe(At,ce)+": "+xe(ce[At],ce)):Ke.push(At+": "+xe(ce[At],ce)));if(typeof X=="function")for(var Cr=0;Cr<nt.length;Cr++)Ue.call(ce,nt[Cr])&&Ke.push("["+xe(nt[Cr])+"]: "+xe(ce[nt[Cr]],ce));return Ke}},85527:h=>{"use strict";var O=String.prototype.replace,o=/%20/g,d={RFC1738:"RFC1738",RFC3986:"RFC3986"};h.exports={default:d.RFC3986,formatters:{RFC1738:function(x){return O.call(x,o,"+")},RFC3986:function(x){return String(x)}},RFC1738:d.RFC1738,RFC3986:d.RFC3986}},37794:(h,O,o)=>{"use strict";var d=o(66845),x=o(29166),w=o(85527);h.exports={formats:w,parse:x,stringify:d}},29166:(h,O,o)=>{"use strict";var d=o(12493),x=Object.prototype.hasOwnProperty,w=Array.isArray,C={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:d.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},T=function(Y){return Y.replace(/&#(\d+);/g,function(A,J){return String.fromCharCode(parseInt(J,10))})},F=function(Y,A){return Y&&typeof Y=="string"&&A.comma&&Y.indexOf(",")>-1?Y.split(","):Y},U="utf8=%26%2310003%3B",Z="utf8=%E2%9C%93",ee=function(A,J){var L={},E=J.ignoreQueryPrefix?A.replace(/^\?/,""):A,k=J.parameterLimit===1/0?void 0:J.parameterLimit,V=E.split(J.delimiter,k),G=-1,Q,W=J.charset;if(J.charsetSentinel)for(Q=0;Q<V.length;++Q)V[Q].indexOf("utf8=")===0&&(V[Q]===Z?W="utf-8":V[Q]===U&&(W="iso-8859-1"),G=Q,Q=V.length);for(Q=0;Q<V.length;++Q)if(Q!==G){var te=V[Q],K=te.indexOf("]="),H=K===-1?te.indexOf("="):K+1,fe,ve;H===-1?(fe=J.decoder(te,C.decoder,W,"key"),ve=J.strictNullHandling?null:""):(fe=J.decoder(te.slice(0,H),C.decoder,W,"key"),ve=d.maybeMap(F(te.slice(H+1),J),function(_){return J.decoder(_,C.decoder,W,"value")})),ve&&J.interpretNumericEntities&&W==="iso-8859-1"&&(ve=T(ve)),te.indexOf("[]=")>-1&&(ve=w(ve)?[ve]:ve),x.call(L,fe)?L[fe]=d.combine(L[fe],ve):L[fe]=ve}return L},ue=function(Y,A,J,L){for(var E=L?A:F(A,J),k=Y.length-1;k>=0;--k){var V,G=Y[k];if(G==="[]"&&J.parseArrays)V=[].concat(E);else{V=J.plainObjects?Object.create(null):{};var Q=G.charAt(0)==="["&&G.charAt(G.length-1)==="]"?G.slice(1,-1):G,W=parseInt(Q,10);!J.parseArrays&&Q===""?V={0:E}:!isNaN(W)&&G!==Q&&String(W)===Q&&W>=0&&J.parseArrays&&W<=J.arrayLimit?(V=[],V[W]=E):Q!=="__proto__"&&(V[Q]=E)}E=V}return E},ne=function(A,J,L,E){if(!!A){var k=L.allowDots?A.replace(/\.([^.[]+)/g,"[$1]"):A,V=/(\[[^[\]]*])/,G=/(\[[^[\]]*])/g,Q=L.depth>0&&V.exec(k),W=Q?k.slice(0,Q.index):k,te=[];if(W){if(!L.plainObjects&&x.call(Object.prototype,W)&&!L.allowPrototypes)return;te.push(W)}for(var K=0;L.depth>0&&(Q=G.exec(k))!==null&&K<L.depth;){if(K+=1,!L.plainObjects&&x.call(Object.prototype,Q[1].slice(1,-1))&&!L.allowPrototypes)return;te.push(Q[1])}return Q&&te.push("["+k.slice(Q.index)+"]"),ue(te,J,L,E)}},oe=function(A){if(!A)return C;if(A.decoder!==null&&A.decoder!==void 0&&typeof A.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof A.charset!="undefined"&&A.charset!=="utf-8"&&A.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var J=typeof A.charset=="undefined"?C.charset:A.charset;return{allowDots:typeof A.allowDots=="undefined"?C.allowDots:!!A.allowDots,allowPrototypes:typeof A.allowPrototypes=="boolean"?A.allowPrototypes:C.allowPrototypes,allowSparse:typeof A.allowSparse=="boolean"?A.allowSparse:C.allowSparse,arrayLimit:typeof A.arrayLimit=="number"?A.arrayLimit:C.arrayLimit,charset:J,charsetSentinel:typeof A.charsetSentinel=="boolean"?A.charsetSentinel:C.charsetSentinel,comma:typeof A.comma=="boolean"?A.comma:C.comma,decoder:typeof A.decoder=="function"?A.decoder:C.decoder,delimiter:typeof A.delimiter=="string"||d.isRegExp(A.delimiter)?A.delimiter:C.delimiter,depth:typeof A.depth=="number"||A.depth===!1?+A.depth:C.depth,ignoreQueryPrefix:A.ignoreQueryPrefix===!0,interpretNumericEntities:typeof A.interpretNumericEntities=="boolean"?A.interpretNumericEntities:C.interpretNumericEntities,parameterLimit:typeof A.parameterLimit=="number"?A.parameterLimit:C.parameterLimit,parseArrays:A.parseArrays!==!1,plainObjects:typeof A.plainObjects=="boolean"?A.plainObjects:C.plainObjects,strictNullHandling:typeof A.strictNullHandling=="boolean"?A.strictNullHandling:C.strictNullHandling}};h.exports=function(Y,A){var J=oe(A);if(Y===""||Y===null||typeof Y=="undefined")return J.plainObjects?Object.create(null):{};for(var L=typeof Y=="string"?ee(Y,J):Y,E=J.plainObjects?Object.create(null):{},k=Object.keys(L),V=0;V<k.length;++V){var G=k[V],Q=ne(G,L[G],J,typeof Y=="string");E=d.merge(E,Q,J)}return J.allowSparse===!0?E:d.compact(E)}},66845:(h,O,o)=>{"use strict";var d=o(74294),x=o(12493),w=o(85527),C=Object.prototype.hasOwnProperty,T={brackets:function(k){return k+"[]"},comma:"comma",indices:function(k,V){return k+"["+V+"]"},repeat:function(k){return k}},F=Array.isArray,U=String.prototype.split,Z=Array.prototype.push,ee=function(E,k){Z.apply(E,F(k)?k:[k])},ue=Date.prototype.toISOString,ne=w.default,oe={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:x.encode,encodeValuesOnly:!1,format:ne,formatter:w.formatters[ne],indices:!1,serializeDate:function(k){return ue.call(k)},skipNulls:!1,strictNullHandling:!1},Y=function(k){return typeof k=="string"||typeof k=="number"||typeof k=="boolean"||typeof k=="symbol"||typeof k=="bigint"},A={},J=function E(k,V,G,Q,W,te,K,H,fe,ve,_,X,z,ge,Oe,Ue){for(var Re=k,ot=Ue,Xe=0,xt=!1;(ot=ot.get(A))!==void 0&&!xt;){var Pt=ot.get(k);if(Xe+=1,typeof Pt!="undefined"){if(Pt===Xe)throw new RangeError("Cyclic object value");xt=!0}typeof ot.get(A)=="undefined"&&(Xe=0)}if(typeof H=="function"?Re=H(V,Re):Re instanceof Date?Re=_(Re):G==="comma"&&F(Re)&&(Re=x.maybeMap(Re,function(Ot){return Ot instanceof Date?_(Ot):Ot})),Re===null){if(W)return K&&!ge?K(V,oe.encoder,Oe,"key",X):V;Re=""}if(Y(Re)||x.isBuffer(Re)){if(K){var Ct=ge?V:K(V,oe.encoder,Oe,"key",X);if(G==="comma"&&ge){for(var Le=U.call(String(Re),","),Ce="",Se=0;Se<Le.length;++Se)Ce+=(Se===0?"":",")+z(K(Le[Se],oe.encoder,Oe,"value",X));return[z(Ct)+(Q&&F(Re)&&Le.length===1?"[]":"")+"="+Ce]}return[z(Ct)+"="+z(K(Re,oe.encoder,Oe,"value",X))]}return[z(V)+"="+z(String(Re))]}var De=[];if(typeof Re=="undefined")return De;var $e;if(G==="comma"&&F(Re))$e=[{value:Re.length>0?Re.join(",")||null:void 0}];else if(F(H))$e=H;else{var tt=Object.keys(Re);$e=fe?tt.sort(fe):tt}for(var _e=Q&&F(Re)&&Re.length===1?V+"[]":V,St=0;St<$e.length;++St){var It=$e[St],Wt=typeof It=="object"&&typeof It.value!="undefined"?It.value:Re[It];if(!(te&&Wt===null)){var $t=F(Re)?typeof G=="function"?G(_e,It):_e:_e+(ve?"."+It:"["+It+"]");Ue.set(k,Xe);var We=d();We.set(A,Ue),ee(De,E(Wt,$t,G,Q,W,te,K,H,fe,ve,_,X,z,ge,Oe,We))}}return De},L=function(k){if(!k)return oe;if(k.encoder!==null&&typeof k.encoder!="undefined"&&typeof k.encoder!="function")throw new TypeError("Encoder has to be a function.");var V=k.charset||oe.charset;if(typeof k.charset!="undefined"&&k.charset!=="utf-8"&&k.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var G=w.default;if(typeof k.format!="undefined"){if(!C.call(w.formatters,k.format))throw new TypeError("Unknown format option provided.");G=k.format}var Q=w.formatters[G],W=oe.filter;return(typeof k.filter=="function"||F(k.filter))&&(W=k.filter),{addQueryPrefix:typeof k.addQueryPrefix=="boolean"?k.addQueryPrefix:oe.addQueryPrefix,allowDots:typeof k.allowDots=="undefined"?oe.allowDots:!!k.allowDots,charset:V,charsetSentinel:typeof k.charsetSentinel=="boolean"?k.charsetSentinel:oe.charsetSentinel,delimiter:typeof k.delimiter=="undefined"?oe.delimiter:k.delimiter,encode:typeof k.encode=="boolean"?k.encode:oe.encode,encoder:typeof k.encoder=="function"?k.encoder:oe.encoder,encodeValuesOnly:typeof k.encodeValuesOnly=="boolean"?k.encodeValuesOnly:oe.encodeValuesOnly,filter:W,format:G,formatter:Q,serializeDate:typeof k.serializeDate=="function"?k.serializeDate:oe.serializeDate,skipNulls:typeof k.skipNulls=="boolean"?k.skipNulls:oe.skipNulls,sort:typeof k.sort=="function"?k.sort:null,strictNullHandling:typeof k.strictNullHandling=="boolean"?k.strictNullHandling:oe.strictNullHandling}};h.exports=function(E,k){var V=E,G=L(k),Q,W;typeof G.filter=="function"?(W=G.filter,V=W("",V)):F(G.filter)&&(W=G.filter,Q=W);var te=[];if(typeof V!="object"||V===null)return"";var K;k&&k.arrayFormat in T?K=k.arrayFormat:k&&"indices"in k?K=k.indices?"indices":"repeat":K="indices";var H=T[K];if(k&&"commaRoundTrip"in k&&typeof k.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var fe=H==="comma"&&k&&k.commaRoundTrip;Q||(Q=Object.keys(V)),G.sort&&Q.sort(G.sort);for(var ve=d(),_=0;_<Q.length;++_){var X=Q[_];G.skipNulls&&V[X]===null||ee(te,J(V[X],X,H,fe,G.strictNullHandling,G.skipNulls,G.encode?G.encoder:null,G.filter,G.sort,G.allowDots,G.serializeDate,G.format,G.formatter,G.encodeValuesOnly,G.charset,ve))}var z=te.join(G.delimiter),ge=G.addQueryPrefix===!0?"?":"";return G.charsetSentinel&&(G.charset==="iso-8859-1"?ge+="utf8=%26%2310003%3B&":ge+="utf8=%E2%9C%93&"),z.length>0?ge+z:""}},12493:(h,O,o)=>{"use strict";var d=o(85527),x=Object.prototype.hasOwnProperty,w=Array.isArray,C=function(){for(var L=[],E=0;E<256;++E)L.push("%"+((E<16?"0":"")+E.toString(16)).toUpperCase());return L}(),T=function(E){for(;E.length>1;){var k=E.pop(),V=k.obj[k.prop];if(w(V)){for(var G=[],Q=0;Q<V.length;++Q)typeof V[Q]!="undefined"&&G.push(V[Q]);k.obj[k.prop]=G}}},F=function(E,k){for(var V=k&&k.plainObjects?Object.create(null):{},G=0;G<E.length;++G)typeof E[G]!="undefined"&&(V[G]=E[G]);return V},U=function L(E,k,V){if(!k)return E;if(typeof k!="object"){if(w(E))E.push(k);else if(E&&typeof E=="object")(V&&(V.plainObjects||V.allowPrototypes)||!x.call(Object.prototype,k))&&(E[k]=!0);else return[E,k];return E}if(!E||typeof E!="object")return[E].concat(k);var G=E;return w(E)&&!w(k)&&(G=F(E,V)),w(E)&&w(k)?(k.forEach(function(Q,W){if(x.call(E,W)){var te=E[W];te&&typeof te=="object"&&Q&&typeof Q=="object"?E[W]=L(te,Q,V):E.push(Q)}else E[W]=Q}),E):Object.keys(k).reduce(function(Q,W){var te=k[W];return x.call(Q,W)?Q[W]=L(Q[W],te,V):Q[W]=te,Q},G)},Z=function(E,k){return Object.keys(k).reduce(function(V,G){return V[G]=k[G],V},E)},ee=function(L,E,k){var V=L.replace(/\+/g," ");if(k==="iso-8859-1")return V.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(V)}catch(G){return V}},ue=function(E,k,V,G,Q){if(E.length===0)return E;var W=E;if(typeof E=="symbol"?W=Symbol.prototype.toString.call(E):typeof E!="string"&&(W=String(E)),V==="iso-8859-1")return escape(W).replace(/%u[0-9a-f]{4}/gi,function(fe){return"%26%23"+parseInt(fe.slice(2),16)+"%3B"});for(var te="",K=0;K<W.length;++K){var H=W.charCodeAt(K);if(H===45||H===46||H===95||H===126||H>=48&&H<=57||H>=65&&H<=90||H>=97&&H<=122||Q===d.RFC1738&&(H===40||H===41)){te+=W.charAt(K);continue}if(H<128){te=te+C[H];continue}if(H<2048){te=te+(C[192|H>>6]+C[128|H&63]);continue}if(H<55296||H>=57344){te=te+(C[224|H>>12]+C[128|H>>6&63]+C[128|H&63]);continue}K+=1,H=65536+((H&1023)<<10|W.charCodeAt(K)&1023),te+=C[240|H>>18]+C[128|H>>12&63]+C[128|H>>6&63]+C[128|H&63]}return te},ne=function(E){for(var k=[{obj:{o:E},prop:"o"}],V=[],G=0;G<k.length;++G)for(var Q=k[G],W=Q.obj[Q.prop],te=Object.keys(W),K=0;K<te.length;++K){var H=te[K],fe=W[H];typeof fe=="object"&&fe!==null&&V.indexOf(fe)===-1&&(k.push({obj:W,prop:H}),V.push(fe))}return T(k),E},oe=function(E){return Object.prototype.toString.call(E)==="[object RegExp]"},Y=function(E){return!E||typeof E!="object"?!1:!!(E.constructor&&E.constructor.isBuffer&&E.constructor.isBuffer(E))},A=function(E,k){return[].concat(E,k)},J=function(E,k){if(w(E)){for(var V=[],G=0;G<E.length;G+=1)V.push(k(E[G]));return V}return k(E)};h.exports={arrayToObject:F,assign:Z,combine:A,compact:ne,decode:ee,encode:ue,isBuffer:Y,isRegExp:oe,maybeMap:J,merge:U}},63277:(h,O,o)=>{"use strict";var d;function x(){return x=Object.assign||function(oe){for(var Y=1;Y<arguments.length;Y++){var A=arguments[Y];for(var J in A)Object.prototype.hasOwnProperty.call(A,J)&&(oe[J]=A[J])}return oe},x.apply(this,arguments)}function w(oe){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(A){return typeof A}:w=function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},w(oe)}var C=function(){var oe=function(A,J){return oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,E){L.__proto__=E}||function(L,E){for(var k in E)E.hasOwnProperty(k)&&(L[k]=E[k])},oe(A,J)};return function(Y,A){oe(Y,A);function J(){this.constructor=Y}Y.prototype=A===null?Object.create(A):(J.prototype=A.prototype,new J)}}();d={value:!0},d=O.fk=void 0;var T=o(2784),F=typeof navigator=="undefined"||o.g.PREVENT_CODEMIRROR_RENDER===!0,U;F||(U=o(23326));var Z=function(){function oe(){}return oe.equals=function(Y,A){var J=this,L=Object.keys,E=w(Y),k=w(A);return Y&&A&&E==="object"&&E===k?L(Y).length===L(A).length&&L(Y).every(function(V){return J.equals(Y[V],A[V])}):Y===A},oe}(),ee=function(){function oe(Y,A){this.editor=Y,this.props=A}return oe.prototype.delegateCursor=function(Y,A,J){var L=this.editor.getDoc();J&&this.editor.focus(),A?L.setCursor(Y):L.setCursor(Y,null,{scroll:!1})},oe.prototype.delegateScroll=function(Y){this.editor.scrollTo(Y.x,Y.y)},oe.prototype.delegateSelection=function(Y,A){var J=this.editor.getDoc();J.setSelections(Y),A&&this.editor.focus()},oe.prototype.apply=function(Y){Y&&Y.selection&&Y.selection.ranges&&this.delegateSelection(Y.selection.ranges,Y.selection.focus||!1),Y&&Y.cursor&&this.delegateCursor(Y.cursor,Y.autoScroll||!1,this.editor.getOption("autofocus")||!1),Y&&Y.scroll&&this.delegateScroll(Y.scroll)},oe.prototype.applyNext=function(Y,A,J){Y&&Y.selection&&Y.selection.ranges&&A&&A.selection&&A.selection.ranges&&!Z.equals(Y.selection.ranges,A.selection.ranges)&&this.delegateSelection(A.selection.ranges,A.selection.focus||!1),Y&&Y.cursor&&A&&A.cursor&&!Z.equals(Y.cursor,A.cursor)&&this.delegateCursor(J.cursor||A.cursor,A.autoScroll||!1,A.autoCursor||!1),Y&&Y.scroll&&A&&A.scroll&&!Z.equals(Y.scroll,A.scroll)&&this.delegateScroll(A.scroll)},oe.prototype.applyUserDefined=function(Y,A){A&&A.cursor&&this.delegateCursor(A.cursor,Y.autoScroll||!1,this.editor.getOption("autofocus")||!1)},oe.prototype.wire=function(Y){var A=this;Object.keys(Y||{}).filter(function(J){return/^on/.test(J)}).forEach(function(J){switch(J){case"onBlur":A.editor.on("blur",function(L,E){A.props.onBlur(A.editor,E)});break;case"onContextMenu":{A.editor.on("contextmenu",function(L,E){A.props.onContextMenu(A.editor,E)});break}case"onCopy":{A.editor.on("copy",function(L,E){A.props.onCopy(A.editor,E)});break}case"onCursor":A.editor.on("cursorActivity",function(L){A.props.onCursor(A.editor,A.editor.getDoc().getCursor())});break;case"onCursorActivity":A.editor.on("cursorActivity",function(L){A.props.onCursorActivity(A.editor)});break;case"onCut":{A.editor.on("cut",function(L,E){A.props.onCut(A.editor,E)});break}case"onDblClick":{A.editor.on("dblclick",function(L,E){A.props.onDblClick(A.editor,E)});break}case"onDragEnter":A.editor.on("dragenter",function(L,E){A.props.onDragEnter(A.editor,E)});break;case"onDragLeave":{A.editor.on("dragleave",function(L,E){A.props.onDragLeave(A.editor,E)});break}case"onDragOver":A.editor.on("dragover",function(L,E){A.props.onDragOver(A.editor,E)});break;case"onDragStart":{A.editor.on("dragstart",function(L,E){A.props.onDragStart(A.editor,E)});break}case"onDrop":A.editor.on("drop",function(L,E){A.props.onDrop(A.editor,E)});break;case"onFocus":A.editor.on("focus",function(L,E){A.props.onFocus(A.editor,E)});break;case"onGutterClick":A.editor.on("gutterClick",function(L,E,k,V){A.props.onGutterClick(A.editor,E,k,V)});break;case"onInputRead":A.editor.on("inputRead",function(L,E){A.props.onInputRead(A.editor,E)});break;case"onKeyDown":A.editor.on("keydown",function(L,E){A.props.onKeyDown(A.editor,E)});break;case"onKeyHandled":A.editor.on("keyHandled",function(L,E,k){A.props.onKeyHandled(A.editor,E,k)});break;case"onKeyPress":A.editor.on("keypress",function(L,E){A.props.onKeyPress(A.editor,E)});break;case"onKeyUp":A.editor.on("keyup",function(L,E){A.props.onKeyUp(A.editor,E)});break;case"onMouseDown":{A.editor.on("mousedown",function(L,E){A.props.onMouseDown(A.editor,E)});break}case"onPaste":{A.editor.on("paste",function(L,E){A.props.onPaste(A.editor,E)});break}case"onRenderLine":{A.editor.on("renderLine",function(L,E,k){A.props.onRenderLine(A.editor,E,k)});break}case"onScroll":A.editor.on("scroll",function(L){A.props.onScroll(A.editor,A.editor.getScrollInfo())});break;case"onSelection":A.editor.on("beforeSelectionChange",function(L,E){A.props.onSelection(A.editor,E)});break;case"onTouchStart":{A.editor.on("touchstart",function(L,E){A.props.onTouchStart(A.editor,E)});break}case"onUpdate":A.editor.on("update",function(L){A.props.onUpdate(A.editor)});break;case"onViewportChange":A.editor.on("viewportChange",function(L,E,k){A.props.onViewportChange(A.editor,E,k)});break}})},oe}(),ue=function(oe){C(Y,oe);function Y(A){var J=oe.call(this,A)||this;return F||(J.applied=!1,J.appliedNext=!1,J.appliedUserDefined=!1,J.deferred=null,J.emulating=!1,J.hydrated=!1,J.initCb=function(){J.props.editorDidConfigure&&J.props.editorDidConfigure(J.editor)},J.mounted=!1),J}return Y.prototype.hydrate=function(A){var J=this,L=A&&A.options?A.options:{},E=x({},U.defaults,this.editor.options,L),k=Object.keys(E).some(function(V){return J.editor.getOption(V)!==E[V]});k&&Object.keys(E).forEach(function(V){L.hasOwnProperty(V)&&J.editor.getOption(V)!==E[V]&&(J.editor.setOption(V,E[V]),J.mirror.setOption(V,E[V]))}),this.hydrated||(this.deferred?this.resolveChange(A.value):this.initChange(A.value||"")),this.hydrated=!0},Y.prototype.initChange=function(A){this.emulating=!0;var J=this.editor.getDoc(),L=J.lastLine(),E=J.getLine(J.lastLine()).length;J.replaceRange(A||"",{line:0,ch:0},{line:L,ch:E}),this.mirror.setValue(A),J.clearHistory(),this.mirror.clearHistory(),this.emulating=!1},Y.prototype.resolveChange=function(A){this.emulating=!0;var J=this.editor.getDoc();if(this.deferred.origin==="undo"?J.undo():this.deferred.origin==="redo"?J.redo():J.replaceRange(this.deferred.text,this.deferred.from,this.deferred.to,this.deferred.origin),A&&A!==J.getValue()){var L=J.getCursor();J.setValue(A),J.setCursor(L)}this.emulating=!1,this.deferred=null},Y.prototype.mirrorChange=function(A){var J=this.editor.getDoc();return A.origin==="undo"?(J.setHistory(this.mirror.getHistory()),this.mirror.undo()):A.origin==="redo"?(J.setHistory(this.mirror.getHistory()),this.mirror.redo()):this.mirror.replaceRange(A.text,A.from,A.to,A.origin),this.mirror.getValue()},Y.prototype.componentDidMount=function(){var A=this;F||(this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&U.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=U(this.ref,this.props.options),this.shared=new ee(this.editor,this.props),this.mirror=U(function(){},this.props.options),this.editor.on("electricInput",function(){A.mirror.setHistory(A.editor.getDoc().getHistory())}),this.editor.on("cursorActivity",function(){A.mirror.setCursor(A.editor.getDoc().getCursor())}),this.editor.on("beforeChange",function(J,L){if(!A.emulating){L.cancel(),A.deferred=L;var E=A.mirrorChange(A.deferred);A.props.onBeforeChange&&A.props.onBeforeChange(A.editor,A.deferred,E)}}),this.editor.on("change",function(J,L){!A.mounted||A.props.onChange&&A.props.onChange(A.editor,L,A.editor.getValue())}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getOption("autofocus")&&this.editor.focus(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},Y.prototype.componentDidUpdate=function(A){if(!F){var J={cursor:null};this.props.value!==A.value&&(this.hydrated=!1),!this.props.autoCursor&&this.props.autoCursor!==void 0&&(J.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.appliedNext||(this.shared.applyNext(A,this.props,J),this.appliedNext=!0),this.shared.applyUserDefined(A,J),this.appliedUserDefined=!0}},Y.prototype.componentWillUnmount=function(){F||this.props.editorWillUnmount&&this.props.editorWillUnmount(U)},Y.prototype.shouldComponentUpdate=function(A,J){return!F},Y.prototype.render=function(){var A=this;if(F)return null;var J=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return T.createElement("div",{className:J,ref:function(E){return A.ref=E}})},Y}(T.Component);O.fk=ue;var ne=function(oe){C(Y,oe);function Y(A){var J=oe.call(this,A)||this;return F||(J.applied=!1,J.appliedUserDefined=!1,J.continueChange=!1,J.detached=!1,J.hydrated=!1,J.initCb=function(){J.props.editorDidConfigure&&J.props.editorDidConfigure(J.editor)},J.mounted=!1,J.onBeforeChangeCb=function(){J.continueChange=!0}),J}return Y.prototype.hydrate=function(A){var J=this,L=A&&A.options?A.options:{},E=x({},U.defaults,this.editor.options,L),k=Object.keys(E).some(function(W){return J.editor.getOption(W)!==E[W]});if(k&&Object.keys(E).forEach(function(W){L.hasOwnProperty(W)&&J.editor.getOption(W)!==E[W]&&J.editor.setOption(W,E[W])}),!this.hydrated){var V=this.editor.getDoc(),G=V.lastLine(),Q=V.getLine(V.lastLine()).length;V.replaceRange(A.value||"",{line:0,ch:0},{line:G,ch:Q})}this.hydrated=!0},Y.prototype.componentDidMount=function(){var A=this;F||(this.detached=this.props.detach===!0,this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&U.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=U(this.ref,this.props.options),this.shared=new ee(this.editor,this.props),this.editor.on("beforeChange",function(J,L){A.props.onBeforeChange&&A.props.onBeforeChange(A.editor,L,A.editor.getValue(),A.onBeforeChangeCb)}),this.editor.on("change",function(J,L){!A.mounted||!A.props.onChange||(A.props.onBeforeChange?A.continueChange&&A.props.onChange(A.editor,L,A.editor.getValue()):A.props.onChange(A.editor,L,A.editor.getValue()))}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getDoc().clearHistory(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},Y.prototype.componentDidUpdate=function(A){if(this.detached&&this.props.detach===!1&&(this.detached=!1,A.editorDidAttach&&A.editorDidAttach(this.editor)),!this.detached&&this.props.detach===!0&&(this.detached=!0,A.editorDidDetach&&A.editorDidDetach(this.editor)),!(F||this.detached)){var J={cursor:null};this.props.value!==A.value&&(this.hydrated=!1,this.applied=!1,this.appliedUserDefined=!1),!A.autoCursor&&A.autoCursor!==void 0&&(J.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.applied||(this.shared.apply(A),this.applied=!0),this.appliedUserDefined||(this.shared.applyUserDefined(A,J),this.appliedUserDefined=!0)}},Y.prototype.componentWillUnmount=function(){F||this.props.editorWillUnmount&&this.props.editorWillUnmount(U)},Y.prototype.shouldComponentUpdate=function(A,J){var L=!0;return F&&(L=!1),this.detached&&A.detach&&(L=!1),L},Y.prototype.render=function(){var A=this;if(F)return null;var J=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return T.createElement("div",{className:J,ref:function(E){return A.ref=E}})},Y}(T.Component);d=ne},74294:(h,O,o)=>{"use strict";var d=o(67286),x=o(62680),w=o(99500),C=d("%TypeError%"),T=d("%WeakMap%",!0),F=d("%Map%",!0),U=x("WeakMap.prototype.get",!0),Z=x("WeakMap.prototype.set",!0),ee=x("WeakMap.prototype.has",!0),ue=x("Map.prototype.get",!0),ne=x("Map.prototype.set",!0),oe=x("Map.prototype.has",!0),Y=function(E,k){for(var V=E,G;(G=V.next)!==null;V=G)if(G.key===k)return V.next=G.next,G.next=E.next,E.next=G,G},A=function(E,k){var V=Y(E,k);return V&&V.value},J=function(E,k,V){var G=Y(E,k);G?G.value=V:E.next={key:k,next:E.next,value:V}},L=function(E,k){return!!Y(E,k)};h.exports=function(){var k,V,G,Q={assert:function(W){if(!Q.has(W))throw new C("Side channel does not contain "+w(W))},get:function(W){if(T&&W&&(typeof W=="object"||typeof W=="function")){if(k)return U(k,W)}else if(F){if(V)return ue(V,W)}else if(G)return A(G,W)},has:function(W){if(T&&W&&(typeof W=="object"||typeof W=="function")){if(k)return ee(k,W)}else if(F){if(V)return oe(V,W)}else if(G)return L(G,W);return!1},set:function(W,te){T&&W&&(typeof W=="object"||typeof W=="function")?(k||(k=new T),Z(k,W,te)):F?(V||(V=new F),ne(V,W,te)):(G||(G={key:{},next:null}),J(G,W,te))}};return Q}},79375:(h,O,o)=>{var d=o(46062),x=o(45957);x=x.__esModule?x.default:x,typeof x=="string"&&(x=[[h.id,x,""]]);var w={};w.insert="head",w.singleton=!1;var C=d(x,w);h.exports=x.locals||{}},4570:(h,O,o)=>{var d=o(46062),x=o(73792);x=x.__esModule?x.default:x,typeof x=="string"&&(x=[[h.id,x,""]]);var w={};w.insert="head",w.singleton=!1;var C=d(x,w);h.exports=x.locals||{}},76239:(h,O,o)=>{var d=o(46062),x=o(59062);x=x.__esModule?x.default:x,typeof x=="string"&&(x=[[h.id,x,""]]);var w={};w.insert="head",w.singleton=!1;var C=d(x,w);h.exports=x.locals||{}},49032:(h,O,o)=>{var d=o(46062),x=o(32024);x=x.__esModule?x.default:x,typeof x=="string"&&(x=[[h.id,x,""]]);var w={};w.insert="head",w.singleton=!1;var C=d(x,w);h.exports=x.locals||{}},56855:h=>{"use strict";function O(A){return Object.prototype.toString.call(A)}function o(A){return O(A)==="[object Date]"}function d(A){return O(A)==="[object RegExp]"}function x(A){return O(A)==="[object Error]"}function w(A){return O(A)==="[object Boolean]"}function C(A){return O(A)==="[object Number]"}function T(A){return O(A)==="[object String]"}var F=Array.isArray||function(J){return Object.prototype.toString.call(J)==="[object Array]"};function U(A,J){if(A.forEach)return A.forEach(J);for(var L=0;L<A.length;L++)J(A[L],L,A)}var Z=Object.keys||function(J){var L=[];for(var E in J)L.push(E);return L},ee=Object.prototype.hasOwnProperty||function(A,J){return J in A};function ue(A){if(typeof A=="object"&&A!==null){var J;if(F(A))J=[];else if(o(A))J=new Date(A.getTime?A.getTime():A);else if(d(A))J=new RegExp(A);else if(x(A))J={message:A.message};else if(w(A)||C(A)||T(A))J=Object(A);else if(Object.create&&Object.getPrototypeOf)J=Object.create(Object.getPrototypeOf(A));else if(A.constructor===Object)J={};else{var L=A.constructor&&A.constructor.prototype||A.__proto__||{},E=function(){};E.prototype=L,J=new E}return U(Z(A),function(k){J[k]=A[k]}),J}return A}function ne(A,J,L){var E=[],k=[],V=!0;return function G(Q){var W=L?ue(Q):Q,te={},K=!0,H={node:W,node_:Q,path:[].concat(E),parent:k[k.length-1],parents:k,key:E[E.length-1],isRoot:E.length===0,level:E.length,circular:null,update:function(_,X){H.isRoot||(H.parent.node[H.key]=_),H.node=_,X&&(K=!1)},delete:function(_){delete H.parent.node[H.key],_&&(K=!1)},remove:function(_){F(H.parent.node)?H.parent.node.splice(H.key,1):delete H.parent.node[H.key],_&&(K=!1)},keys:null,before:function(_){te.before=_},after:function(_){te.after=_},pre:function(_){te.pre=_},post:function(_){te.post=_},stop:function(){V=!1},block:function(){K=!1}};if(!V)return H;function fe(){if(typeof H.node=="object"&&H.node!==null){(!H.keys||H.node_!==H.node)&&(H.keys=Z(H.node)),H.isLeaf=H.keys.length===0;for(var _=0;_<k.length;_++)if(k[_].node_===Q){H.circular=k[_];break}}else H.isLeaf=!0,H.keys=null;H.notLeaf=!H.isLeaf,H.notRoot=!H.isRoot}fe();var ve=J.call(H,H.node);return ve!==void 0&&H.update&&H.update(ve),te.before&&te.before.call(H,H.node),K&&(typeof H.node=="object"&&H.node!==null&&!H.circular&&(k.push(H),fe(),U(H.keys,function(_,X){E.push(_),te.pre&&te.pre.call(H,H.node[_],_);var z=G(H.node[_]);L&&ee.call(H.node,_)&&(H.node[_]=z.node),z.isLast=X===H.keys.length-1,z.isFirst=X===0,te.post&&te.post.call(H,z),E.pop()}),k.pop()),te.after&&te.after.call(H,H.node)),H}(A).node}function oe(A){this.value=A}oe.prototype.get=function(A){for(var J=this.value,L=0;L<A.length;L++){var E=A[L];if(!J||!ee.call(J,E))return;J=J[E]}return J},oe.prototype.has=function(A){for(var J=this.value,L=0;L<A.length;L++){var E=A[L];if(!J||!ee.call(J,E))return!1;J=J[E]}return!0},oe.prototype.set=function(A,J){for(var L=this.value,E=0;E<A.length-1;E++){var k=A[E];ee.call(L,k)||(L[k]={}),L=L[k]}return L[A[E]]=J,J},oe.prototype.map=function(A){return ne(this.value,A,!0)},oe.prototype.forEach=function(A){return this.value=ne(this.value,A,!1),this.value},oe.prototype.reduce=function(A,J){var L=arguments.length===1,E=L?this.value:J;return this.forEach(function(k){(!this.isRoot||!L)&&(E=A.call(this,E,k))}),E},oe.prototype.paths=function(){var A=[];return this.forEach(function(){A.push(this.path)}),A},oe.prototype.nodes=function(){var A=[];return this.forEach(function(){A.push(this.node)}),A},oe.prototype.clone=function(){var A=[],J=[];return function L(E){for(var k=0;k<A.length;k++)if(A[k]===E)return J[k];if(typeof E=="object"&&E!==null){var V=ue(E);return A.push(E),J.push(V),U(Z(E),function(G){V[G]=L(E[G])}),A.pop(),J.pop(),V}return E}(this.value)};function Y(A){return new oe(A)}U(Z(oe.prototype),function(A){Y[A]=function(J){var L=[].slice.call(arguments,1),E=new oe(J);return E[A].apply(E,L)}}),h.exports=Y},56089:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg=="},17735:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII="},96192:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC"},71090:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII="},46050:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII="},53260:()=>{},48621:(h,O,o)=>{h.exports=o(53822)},40192:(h,O,o)=>{h.exports=o(44877)},42126:(h,O,o)=>{h.exports=o(10140)},40453:(h,O,o)=>{h.exports=o(55603)},35784:(h,O,o)=>{h.exports=o(76237)},82985:(h,O,o)=>{h.exports=o(56515)},14903:(h,O,o)=>{h.exports=o(20057)},71488:(h,O,o)=>{h.exports=o(24741)},93963:(h,O,o)=>{h.exports=o(8368)},51661:(h,O,o)=>{h.exports=o(342)},85337:(h,O,o)=>{h.exports=o(392)},45932:(h,O,o)=>{h.exports=o(28478)},31175:(h,O,o)=>{h.exports=o(58202)},2921:(h,O,o)=>{h.exports=o(45636)},22583:(h,O,o)=>{h.exports=o(46618)},8304:(h,O,o)=>{h.exports=o(72946)},36394:(h,O,o)=>{h.exports=o(11235)},50557:(h,O,o)=>{h.exports=o(62813)},72010:(h,O,o)=>{h.exports=o(68664)},5490:(h,O,o)=>{h.exports=o(21457)},1858:(h,O,o)=>{h.exports=o(36516)},84870:(h,O,o)=>{h.exports=o(87611)},48145:(h,O,o)=>{h.exports=o(4161)},26405:(h,O,o)=>{h.exports=o(75159)},9600:(h,O,o)=>{h.exports=o(87708)},72383:(h,O,o)=>{h.exports=o(42937)},8626:(h,O,o)=>{h.exports=o(69297)},45055:(h,O,o)=>{h.exports=o(10353)},49800:(h,O,o)=>{h.exports=o(8026)},79494:(h,O,o)=>{h.exports=o(67362)},11807:(h,O,o)=>{h.exports=o(57532)},24463:(h,O,o)=>{h.exports=o(61903)},21889:(h,O,o)=>{h.exports=o(42044)},25575:(h,O,o)=>{h.exports=o(60902)},68861:(h,O,o)=>{h.exports=o(2214)},64772:(h,O,o)=>{h.exports=o(983)},57829:(h,O,o)=>{h.exports=o(59256)},92876:(h,O,o)=>{h.exports=o(95659)},92903:(h,O,o)=>{h.exports=o(93698)},18730:(h,O,o)=>{var d=o(69696).default,x=o(49800),w=o(57829),C=o(8626),T=o(21889),F=o(48145),U=o(68861),Z=o(64772),ee=o(9600),ue=o(72383);function ne(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */h.exports=ne=function(){return oe},h.exports.__esModule=!0,h.exports.default=h.exports;var oe={},Y=Object.prototype,A=Y.hasOwnProperty,J=x||function(Le,Ce,Se){Le[Ce]=Se.value},L=typeof w=="function"?w:{},E=L.iterator||"@@iterator",k=L.asyncIterator||"@@asyncIterator",V=L.toStringTag||"@@toStringTag";function G(Le,Ce,Se){return x(Le,Ce,{value:Se,enumerable:!0,configurable:!0,writable:!0}),Le[Ce]}try{G({},"")}catch(Le){G=function(Se,De,$e){return Se[De]=$e}}function Q(Le,Ce,Se,De){var $e=Ce&&Ce.prototype instanceof K?Ce:K,tt=C($e.prototype),_e=new xt(De||[]);return J(tt,"_invoke",{value:Ue(Le,Se,_e)}),tt}function W(Le,Ce,Se){try{return{type:"normal",arg:Le.call(Ce,Se)}}catch(De){return{type:"throw",arg:De}}}oe.wrap=Q;var te={};function K(){}function H(){}function fe(){}var ve={};G(ve,E,function(){return this});var _=T,X=_&&_(_(Pt([])));X&&X!==Y&&A.call(X,E)&&(ve=X);var z=fe.prototype=K.prototype=C(ve);function ge(Le){var Ce;F(Ce=["next","throw","return"]).call(Ce,function(Se){G(Le,Se,function(De){return this._invoke(Se,De)})})}function Oe(Le,Ce){function Se($e,tt,_e,St){var It=W(Le[$e],Le,tt);if(It.type!=="throw"){var Wt=It.arg,$t=Wt.value;return $t&&d($t)=="object"&&A.call($t,"__await")?Ce.resolve($t.__await).then(function(We){Se("next",We,_e,St)},function(We){Se("throw",We,_e,St)}):Ce.resolve($t).then(function(We){Wt.value=We,_e(Wt)},function(We){return Se("throw",We,_e,St)})}St(It.arg)}var De;J(this,"_invoke",{value:function(tt,_e){function St(){return new Ce(function(It,Wt){Se(tt,_e,It,Wt)})}return De=De?De.then(St,St):St()}})}function Ue(Le,Ce,Se){var De="suspendedStart";return function($e,tt){if(De==="executing")throw new Error("Generator is already running");if(De==="completed"){if($e==="throw")throw tt;return Ct()}for(Se.method=$e,Se.arg=tt;;){var _e=Se.delegate;if(_e){var St=Re(_e,Se);if(St){if(St===te)continue;return St}}if(Se.method==="next")Se.sent=Se._sent=Se.arg;else if(Se.method==="throw"){if(De==="suspendedStart")throw De="completed",Se.arg;Se.dispatchException(Se.arg)}else Se.method==="return"&&Se.abrupt("return",Se.arg);De="executing";var It=W(Le,Ce,Se);if(It.type==="normal"){if(De=Se.done?"completed":"suspendedYield",It.arg===te)continue;return{value:It.arg,done:Se.done}}It.type==="throw"&&(De="completed",Se.method="throw",Se.arg=It.arg)}}}function Re(Le,Ce){var Se=Ce.method,De=Le.iterator[Se];if(De===void 0)return Ce.delegate=null,Se==="throw"&&Le.iterator.return&&(Ce.method="return",Ce.arg=void 0,Re(Le,Ce),Ce.method==="throw")||Se!=="return"&&(Ce.method="throw",Ce.arg=new TypeError("The iterator does not provide a '"+Se+"' method")),te;var $e=W(De,Le.iterator,Ce.arg);if($e.type==="throw")return Ce.method="throw",Ce.arg=$e.arg,Ce.delegate=null,te;var tt=$e.arg;return tt?tt.done?(Ce[Le.resultName]=tt.value,Ce.next=Le.nextLoc,Ce.method!=="return"&&(Ce.method="next",Ce.arg=void 0),Ce.delegate=null,te):tt:(Ce.method="throw",Ce.arg=new TypeError("iterator result is not an object"),Ce.delegate=null,te)}function ot(Le){var Ce={tryLoc:Le[0]};1 in Le&&(Ce.catchLoc=Le[1]),2 in Le&&(Ce.finallyLoc=Le[2],Ce.afterLoc=Le[3]),this.tryEntries.push(Ce)}function Xe(Le){var Ce=Le.completion||{};Ce.type="normal",delete Ce.arg,Le.completion=Ce}function xt(Le){this.tryEntries=[{tryLoc:"root"}],F(Le).call(Le,ot,this),this.reset(!0)}function Pt(Le){if(Le){var Ce=Le[E];if(Ce)return Ce.call(Le);if(typeof Le.next=="function")return Le;if(!isNaN(Le.length)){var Se=-1,De=function $e(){for(;++Se<Le.length;)if(A.call(Le,Se))return $e.value=Le[Se],$e.done=!1,$e;return $e.value=void 0,$e.done=!0,$e};return De.next=De}}return{next:Ct}}function Ct(){return{value:void 0,done:!0}}return H.prototype=fe,J(z,"constructor",{value:fe,configurable:!0}),J(fe,"constructor",{value:H,configurable:!0}),H.displayName=G(fe,V,"GeneratorFunction"),oe.isGeneratorFunction=function(Le){var Ce=typeof Le=="function"&&Le.constructor;return!!Ce&&(Ce===H||(Ce.displayName||Ce.name)==="GeneratorFunction")},oe.mark=function(Le){return U?U(Le,fe):(Le.__proto__=fe,G(Le,V,"GeneratorFunction")),Le.prototype=C(z),Le},oe.awrap=function(Le){return{__await:Le}},ge(Oe.prototype),G(Oe.prototype,k,function(){return this}),oe.AsyncIterator=Oe,oe.async=function(Le,Ce,Se,De,$e){$e===void 0&&($e=Z);var tt=new Oe(Q(Le,Ce,Se,De),$e);return oe.isGeneratorFunction(Ce)?tt:tt.next().then(function(_e){return _e.done?_e.value:tt.next()})},ge(z),G(z,V,"Generator"),G(z,E,function(){return this}),G(z,"toString",function(){return"[object Generator]"}),oe.keys=function(Le){var Ce=Object(Le),Se=[];for(var De in Ce)Se.push(De);return ee(Se).call(Se),function $e(){for(;Se.length;){var tt=Se.pop();if(tt in Ce)return $e.value=tt,$e.done=!1,$e}return $e.done=!0,$e}},oe.values=Pt,xt.prototype={constructor:xt,reset:function(Ce){var Se;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,F(Se=this.tryEntries).call(Se,Xe),!Ce)for(var De in this)De.charAt(0)==="t"&&A.call(this,De)&&!isNaN(+ue(De).call(De,1))&&(this[De]=void 0)},stop:function(){this.done=!0;var Ce=this.tryEntries[0].completion;if(Ce.type==="throw")throw Ce.arg;return this.rval},dispatchException:function(Ce){if(this.done)throw Ce;var Se=this;function De(Wt,$t){return _e.type="throw",_e.arg=Ce,Se.next=Wt,$t&&(Se.method="next",Se.arg=void 0),!!$t}for(var $e=this.tryEntries.length-1;$e>=0;--$e){var tt=this.tryEntries[$e],_e=tt.completion;if(tt.tryLoc==="root")return De("end");if(tt.tryLoc<=this.prev){var St=A.call(tt,"catchLoc"),It=A.call(tt,"finallyLoc");if(St&&It){if(this.prev<tt.catchLoc)return De(tt.catchLoc,!0);if(this.prev<tt.finallyLoc)return De(tt.finallyLoc)}else if(St){if(this.prev<tt.catchLoc)return De(tt.catchLoc,!0)}else{if(!It)throw new Error("try statement without catch or finally");if(this.prev<tt.finallyLoc)return De(tt.finallyLoc)}}}},abrupt:function(Ce,Se){for(var De=this.tryEntries.length-1;De>=0;--De){var $e=this.tryEntries[De];if($e.tryLoc<=this.prev&&A.call($e,"finallyLoc")&&this.prev<$e.finallyLoc){var tt=$e;break}}tt&&(Ce==="break"||Ce==="continue")&&tt.tryLoc<=Se&&Se<=tt.finallyLoc&&(tt=null);var _e=tt?tt.completion:{};return _e.type=Ce,_e.arg=Se,tt?(this.method="next",this.next=tt.finallyLoc,te):this.complete(_e)},complete:function(Ce,Se){if(Ce.type==="throw")throw Ce.arg;return Ce.type==="break"||Ce.type==="continue"?this.next=Ce.arg:Ce.type==="return"?(this.rval=this.arg=Ce.arg,this.method="return",this.next="end"):Ce.type==="normal"&&Se&&(this.next=Se),te},finish:function(Ce){for(var Se=this.tryEntries.length-1;Se>=0;--Se){var De=this.tryEntries[Se];if(De.finallyLoc===Ce)return this.complete(De.completion,De.afterLoc),Xe(De),te}},catch:function(Ce){for(var Se=this.tryEntries.length-1;Se>=0;--Se){var De=this.tryEntries[Se];if(De.tryLoc===Ce){var $e=De.completion;if($e.type==="throw"){var tt=$e.arg;Xe(De)}return tt}}throw new Error("illegal catch attempt")},delegateYield:function(Ce,Se,De){return this.delegate={iterator:Pt(Ce),resultName:Se,nextLoc:De},this.method==="next"&&(this.arg=void 0),te}},oe}h.exports=ne,h.exports.__esModule=!0,h.exports.default=h.exports},69696:(h,O,o)=>{var d=o(57829),x=o(92876);function w(C){return h.exports=w=typeof d=="function"&&typeof x=="symbol"?function(T){return typeof T}:function(T){return T&&typeof d=="function"&&T.constructor===d&&T!==d.prototype?"symbol":typeof T},h.exports.__esModule=!0,h.exports.default=h.exports,w(C)}h.exports=w,h.exports.__esModule=!0,h.exports.default=h.exports},99732:(h,O,o)=>{var d=o(18730)();h.exports=d;try{regeneratorRuntime=d}catch(x){typeof globalThis=="object"?globalThis.regeneratorRuntime=d:Function("r","regeneratorRuntime = r")(d)}}}]);
507
+ `+xe.prev}function Ve(ce,xe){var Be=Ce(ce),Ke=[];if(Be){Ke.length=ce.length;for(var ut=0;ut<ce.length;ut++)Ke[ut]=We(ce,ut)?xe(ce[ut],ce):""}var nt=typeof X=="function"?X(ce):[],_t;if(ge){_t={};for(var lr=0;lr<nt.length;lr++)_t["$"+nt[lr]]=nt[lr]}for(var At in ce)!We(ce,At)||Be&&String(Number(At))===At&&At<ce.length||ge&&_t["$"+At]instanceof Symbol||(te.call(/[^\w$]/,At)?Ke.push(xe(At,ce)+": "+xe(ce[At],ce)):Ke.push(At+": "+xe(ce[At],ce)));if(typeof X=="function")for(var Cr=0;Cr<nt.length;Cr++)Ue.call(ce,nt[Cr])&&Ke.push("["+xe(nt[Cr])+"]: "+xe(ce[nt[Cr]],ce));return Ke}},85527:h=>{"use strict";var O=String.prototype.replace,o=/%20/g,d={RFC1738:"RFC1738",RFC3986:"RFC3986"};h.exports={default:d.RFC3986,formatters:{RFC1738:function(x){return O.call(x,o,"+")},RFC3986:function(x){return String(x)}},RFC1738:d.RFC1738,RFC3986:d.RFC3986}},37794:(h,O,o)=>{"use strict";var d=o(66845),x=o(29166),w=o(85527);h.exports={formats:w,parse:x,stringify:d}},29166:(h,O,o)=>{"use strict";var d=o(12493),x=Object.prototype.hasOwnProperty,w=Array.isArray,C={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:d.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},T=function(Y){return Y.replace(/&#(\d+);/g,function(A,J){return String.fromCharCode(parseInt(J,10))})},F=function(Y,A){return Y&&typeof Y=="string"&&A.comma&&Y.indexOf(",")>-1?Y.split(","):Y},U="utf8=%26%2310003%3B",Z="utf8=%E2%9C%93",ee=function(A,J){var L={},E=J.ignoreQueryPrefix?A.replace(/^\?/,""):A,k=J.parameterLimit===1/0?void 0:J.parameterLimit,V=E.split(J.delimiter,k),G=-1,Q,W=J.charset;if(J.charsetSentinel)for(Q=0;Q<V.length;++Q)V[Q].indexOf("utf8=")===0&&(V[Q]===Z?W="utf-8":V[Q]===U&&(W="iso-8859-1"),G=Q,Q=V.length);for(Q=0;Q<V.length;++Q)if(Q!==G){var te=V[Q],K=te.indexOf("]="),H=K===-1?te.indexOf("="):K+1,fe,ve;H===-1?(fe=J.decoder(te,C.decoder,W,"key"),ve=J.strictNullHandling?null:""):(fe=J.decoder(te.slice(0,H),C.decoder,W,"key"),ve=d.maybeMap(F(te.slice(H+1),J),function(_){return J.decoder(_,C.decoder,W,"value")})),ve&&J.interpretNumericEntities&&W==="iso-8859-1"&&(ve=T(ve)),te.indexOf("[]=")>-1&&(ve=w(ve)?[ve]:ve),x.call(L,fe)?L[fe]=d.combine(L[fe],ve):L[fe]=ve}return L},ue=function(Y,A,J,L){for(var E=L?A:F(A,J),k=Y.length-1;k>=0;--k){var V,G=Y[k];if(G==="[]"&&J.parseArrays)V=[].concat(E);else{V=J.plainObjects?Object.create(null):{};var Q=G.charAt(0)==="["&&G.charAt(G.length-1)==="]"?G.slice(1,-1):G,W=parseInt(Q,10);!J.parseArrays&&Q===""?V={0:E}:!isNaN(W)&&G!==Q&&String(W)===Q&&W>=0&&J.parseArrays&&W<=J.arrayLimit?(V=[],V[W]=E):Q!=="__proto__"&&(V[Q]=E)}E=V}return E},ne=function(A,J,L,E){if(!!A){var k=L.allowDots?A.replace(/\.([^.[]+)/g,"[$1]"):A,V=/(\[[^[\]]*])/,G=/(\[[^[\]]*])/g,Q=L.depth>0&&V.exec(k),W=Q?k.slice(0,Q.index):k,te=[];if(W){if(!L.plainObjects&&x.call(Object.prototype,W)&&!L.allowPrototypes)return;te.push(W)}for(var K=0;L.depth>0&&(Q=G.exec(k))!==null&&K<L.depth;){if(K+=1,!L.plainObjects&&x.call(Object.prototype,Q[1].slice(1,-1))&&!L.allowPrototypes)return;te.push(Q[1])}return Q&&te.push("["+k.slice(Q.index)+"]"),ue(te,J,L,E)}},oe=function(A){if(!A)return C;if(A.decoder!==null&&A.decoder!==void 0&&typeof A.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof A.charset!="undefined"&&A.charset!=="utf-8"&&A.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var J=typeof A.charset=="undefined"?C.charset:A.charset;return{allowDots:typeof A.allowDots=="undefined"?C.allowDots:!!A.allowDots,allowPrototypes:typeof A.allowPrototypes=="boolean"?A.allowPrototypes:C.allowPrototypes,allowSparse:typeof A.allowSparse=="boolean"?A.allowSparse:C.allowSparse,arrayLimit:typeof A.arrayLimit=="number"?A.arrayLimit:C.arrayLimit,charset:J,charsetSentinel:typeof A.charsetSentinel=="boolean"?A.charsetSentinel:C.charsetSentinel,comma:typeof A.comma=="boolean"?A.comma:C.comma,decoder:typeof A.decoder=="function"?A.decoder:C.decoder,delimiter:typeof A.delimiter=="string"||d.isRegExp(A.delimiter)?A.delimiter:C.delimiter,depth:typeof A.depth=="number"||A.depth===!1?+A.depth:C.depth,ignoreQueryPrefix:A.ignoreQueryPrefix===!0,interpretNumericEntities:typeof A.interpretNumericEntities=="boolean"?A.interpretNumericEntities:C.interpretNumericEntities,parameterLimit:typeof A.parameterLimit=="number"?A.parameterLimit:C.parameterLimit,parseArrays:A.parseArrays!==!1,plainObjects:typeof A.plainObjects=="boolean"?A.plainObjects:C.plainObjects,strictNullHandling:typeof A.strictNullHandling=="boolean"?A.strictNullHandling:C.strictNullHandling}};h.exports=function(Y,A){var J=oe(A);if(Y===""||Y===null||typeof Y=="undefined")return J.plainObjects?Object.create(null):{};for(var L=typeof Y=="string"?ee(Y,J):Y,E=J.plainObjects?Object.create(null):{},k=Object.keys(L),V=0;V<k.length;++V){var G=k[V],Q=ne(G,L[G],J,typeof Y=="string");E=d.merge(E,Q,J)}return J.allowSparse===!0?E:d.compact(E)}},66845:(h,O,o)=>{"use strict";var d=o(74294),x=o(12493),w=o(85527),C=Object.prototype.hasOwnProperty,T={brackets:function(k){return k+"[]"},comma:"comma",indices:function(k,V){return k+"["+V+"]"},repeat:function(k){return k}},F=Array.isArray,U=String.prototype.split,Z=Array.prototype.push,ee=function(E,k){Z.apply(E,F(k)?k:[k])},ue=Date.prototype.toISOString,ne=w.default,oe={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:x.encode,encodeValuesOnly:!1,format:ne,formatter:w.formatters[ne],indices:!1,serializeDate:function(k){return ue.call(k)},skipNulls:!1,strictNullHandling:!1},Y=function(k){return typeof k=="string"||typeof k=="number"||typeof k=="boolean"||typeof k=="symbol"||typeof k=="bigint"},A={},J=function E(k,V,G,Q,W,te,K,H,fe,ve,_,X,z,ge,Oe,Ue){for(var Re=k,ot=Ue,Xe=0,xt=!1;(ot=ot.get(A))!==void 0&&!xt;){var Pt=ot.get(k);if(Xe+=1,typeof Pt!="undefined"){if(Pt===Xe)throw new RangeError("Cyclic object value");xt=!0}typeof ot.get(A)=="undefined"&&(Xe=0)}if(typeof H=="function"?Re=H(V,Re):Re instanceof Date?Re=_(Re):G==="comma"&&F(Re)&&(Re=x.maybeMap(Re,function(Ot){return Ot instanceof Date?_(Ot):Ot})),Re===null){if(W)return K&&!ge?K(V,oe.encoder,Oe,"key",X):V;Re=""}if(Y(Re)||x.isBuffer(Re)){if(K){var Ct=ge?V:K(V,oe.encoder,Oe,"key",X);if(G==="comma"&&ge){for(var Le=U.call(String(Re),","),Ce="",Se=0;Se<Le.length;++Se)Ce+=(Se===0?"":",")+z(K(Le[Se],oe.encoder,Oe,"value",X));return[z(Ct)+(Q&&F(Re)&&Le.length===1?"[]":"")+"="+Ce]}return[z(Ct)+"="+z(K(Re,oe.encoder,Oe,"value",X))]}return[z(V)+"="+z(String(Re))]}var De=[];if(typeof Re=="undefined")return De;var $e;if(G==="comma"&&F(Re))$e=[{value:Re.length>0?Re.join(",")||null:void 0}];else if(F(H))$e=H;else{var tt=Object.keys(Re);$e=fe?tt.sort(fe):tt}for(var _e=Q&&F(Re)&&Re.length===1?V+"[]":V,St=0;St<$e.length;++St){var It=$e[St],Wt=typeof It=="object"&&typeof It.value!="undefined"?It.value:Re[It];if(!(te&&Wt===null)){var Kt=F(Re)?typeof G=="function"?G(_e,It):_e:_e+(ve?"."+It:"["+It+"]");Ue.set(k,Xe);var We=d();We.set(A,Ue),ee(De,E(Wt,Kt,G,Q,W,te,K,H,fe,ve,_,X,z,ge,Oe,We))}}return De},L=function(k){if(!k)return oe;if(k.encoder!==null&&typeof k.encoder!="undefined"&&typeof k.encoder!="function")throw new TypeError("Encoder has to be a function.");var V=k.charset||oe.charset;if(typeof k.charset!="undefined"&&k.charset!=="utf-8"&&k.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var G=w.default;if(typeof k.format!="undefined"){if(!C.call(w.formatters,k.format))throw new TypeError("Unknown format option provided.");G=k.format}var Q=w.formatters[G],W=oe.filter;return(typeof k.filter=="function"||F(k.filter))&&(W=k.filter),{addQueryPrefix:typeof k.addQueryPrefix=="boolean"?k.addQueryPrefix:oe.addQueryPrefix,allowDots:typeof k.allowDots=="undefined"?oe.allowDots:!!k.allowDots,charset:V,charsetSentinel:typeof k.charsetSentinel=="boolean"?k.charsetSentinel:oe.charsetSentinel,delimiter:typeof k.delimiter=="undefined"?oe.delimiter:k.delimiter,encode:typeof k.encode=="boolean"?k.encode:oe.encode,encoder:typeof k.encoder=="function"?k.encoder:oe.encoder,encodeValuesOnly:typeof k.encodeValuesOnly=="boolean"?k.encodeValuesOnly:oe.encodeValuesOnly,filter:W,format:G,formatter:Q,serializeDate:typeof k.serializeDate=="function"?k.serializeDate:oe.serializeDate,skipNulls:typeof k.skipNulls=="boolean"?k.skipNulls:oe.skipNulls,sort:typeof k.sort=="function"?k.sort:null,strictNullHandling:typeof k.strictNullHandling=="boolean"?k.strictNullHandling:oe.strictNullHandling}};h.exports=function(E,k){var V=E,G=L(k),Q,W;typeof G.filter=="function"?(W=G.filter,V=W("",V)):F(G.filter)&&(W=G.filter,Q=W);var te=[];if(typeof V!="object"||V===null)return"";var K;k&&k.arrayFormat in T?K=k.arrayFormat:k&&"indices"in k?K=k.indices?"indices":"repeat":K="indices";var H=T[K];if(k&&"commaRoundTrip"in k&&typeof k.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var fe=H==="comma"&&k&&k.commaRoundTrip;Q||(Q=Object.keys(V)),G.sort&&Q.sort(G.sort);for(var ve=d(),_=0;_<Q.length;++_){var X=Q[_];G.skipNulls&&V[X]===null||ee(te,J(V[X],X,H,fe,G.strictNullHandling,G.skipNulls,G.encode?G.encoder:null,G.filter,G.sort,G.allowDots,G.serializeDate,G.format,G.formatter,G.encodeValuesOnly,G.charset,ve))}var z=te.join(G.delimiter),ge=G.addQueryPrefix===!0?"?":"";return G.charsetSentinel&&(G.charset==="iso-8859-1"?ge+="utf8=%26%2310003%3B&":ge+="utf8=%E2%9C%93&"),z.length>0?ge+z:""}},12493:(h,O,o)=>{"use strict";var d=o(85527),x=Object.prototype.hasOwnProperty,w=Array.isArray,C=function(){for(var L=[],E=0;E<256;++E)L.push("%"+((E<16?"0":"")+E.toString(16)).toUpperCase());return L}(),T=function(E){for(;E.length>1;){var k=E.pop(),V=k.obj[k.prop];if(w(V)){for(var G=[],Q=0;Q<V.length;++Q)typeof V[Q]!="undefined"&&G.push(V[Q]);k.obj[k.prop]=G}}},F=function(E,k){for(var V=k&&k.plainObjects?Object.create(null):{},G=0;G<E.length;++G)typeof E[G]!="undefined"&&(V[G]=E[G]);return V},U=function L(E,k,V){if(!k)return E;if(typeof k!="object"){if(w(E))E.push(k);else if(E&&typeof E=="object")(V&&(V.plainObjects||V.allowPrototypes)||!x.call(Object.prototype,k))&&(E[k]=!0);else return[E,k];return E}if(!E||typeof E!="object")return[E].concat(k);var G=E;return w(E)&&!w(k)&&(G=F(E,V)),w(E)&&w(k)?(k.forEach(function(Q,W){if(x.call(E,W)){var te=E[W];te&&typeof te=="object"&&Q&&typeof Q=="object"?E[W]=L(te,Q,V):E.push(Q)}else E[W]=Q}),E):Object.keys(k).reduce(function(Q,W){var te=k[W];return x.call(Q,W)?Q[W]=L(Q[W],te,V):Q[W]=te,Q},G)},Z=function(E,k){return Object.keys(k).reduce(function(V,G){return V[G]=k[G],V},E)},ee=function(L,E,k){var V=L.replace(/\+/g," ");if(k==="iso-8859-1")return V.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(V)}catch(G){return V}},ue=function(E,k,V,G,Q){if(E.length===0)return E;var W=E;if(typeof E=="symbol"?W=Symbol.prototype.toString.call(E):typeof E!="string"&&(W=String(E)),V==="iso-8859-1")return escape(W).replace(/%u[0-9a-f]{4}/gi,function(fe){return"%26%23"+parseInt(fe.slice(2),16)+"%3B"});for(var te="",K=0;K<W.length;++K){var H=W.charCodeAt(K);if(H===45||H===46||H===95||H===126||H>=48&&H<=57||H>=65&&H<=90||H>=97&&H<=122||Q===d.RFC1738&&(H===40||H===41)){te+=W.charAt(K);continue}if(H<128){te=te+C[H];continue}if(H<2048){te=te+(C[192|H>>6]+C[128|H&63]);continue}if(H<55296||H>=57344){te=te+(C[224|H>>12]+C[128|H>>6&63]+C[128|H&63]);continue}K+=1,H=65536+((H&1023)<<10|W.charCodeAt(K)&1023),te+=C[240|H>>18]+C[128|H>>12&63]+C[128|H>>6&63]+C[128|H&63]}return te},ne=function(E){for(var k=[{obj:{o:E},prop:"o"}],V=[],G=0;G<k.length;++G)for(var Q=k[G],W=Q.obj[Q.prop],te=Object.keys(W),K=0;K<te.length;++K){var H=te[K],fe=W[H];typeof fe=="object"&&fe!==null&&V.indexOf(fe)===-1&&(k.push({obj:W,prop:H}),V.push(fe))}return T(k),E},oe=function(E){return Object.prototype.toString.call(E)==="[object RegExp]"},Y=function(E){return!E||typeof E!="object"?!1:!!(E.constructor&&E.constructor.isBuffer&&E.constructor.isBuffer(E))},A=function(E,k){return[].concat(E,k)},J=function(E,k){if(w(E)){for(var V=[],G=0;G<E.length;G+=1)V.push(k(E[G]));return V}return k(E)};h.exports={arrayToObject:F,assign:Z,combine:A,compact:ne,decode:ee,encode:ue,isBuffer:Y,isRegExp:oe,maybeMap:J,merge:U}},63277:(h,O,o)=>{"use strict";var d;function x(){return x=Object.assign||function(oe){for(var Y=1;Y<arguments.length;Y++){var A=arguments[Y];for(var J in A)Object.prototype.hasOwnProperty.call(A,J)&&(oe[J]=A[J])}return oe},x.apply(this,arguments)}function w(oe){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(A){return typeof A}:w=function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},w(oe)}var C=function(){var oe=function(A,J){return oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,E){L.__proto__=E}||function(L,E){for(var k in E)E.hasOwnProperty(k)&&(L[k]=E[k])},oe(A,J)};return function(Y,A){oe(Y,A);function J(){this.constructor=Y}Y.prototype=A===null?Object.create(A):(J.prototype=A.prototype,new J)}}();d={value:!0},d=O.fk=void 0;var T=o(2784),F=typeof navigator=="undefined"||o.g.PREVENT_CODEMIRROR_RENDER===!0,U;F||(U=o(23326));var Z=function(){function oe(){}return oe.equals=function(Y,A){var J=this,L=Object.keys,E=w(Y),k=w(A);return Y&&A&&E==="object"&&E===k?L(Y).length===L(A).length&&L(Y).every(function(V){return J.equals(Y[V],A[V])}):Y===A},oe}(),ee=function(){function oe(Y,A){this.editor=Y,this.props=A}return oe.prototype.delegateCursor=function(Y,A,J){var L=this.editor.getDoc();J&&this.editor.focus(),A?L.setCursor(Y):L.setCursor(Y,null,{scroll:!1})},oe.prototype.delegateScroll=function(Y){this.editor.scrollTo(Y.x,Y.y)},oe.prototype.delegateSelection=function(Y,A){var J=this.editor.getDoc();J.setSelections(Y),A&&this.editor.focus()},oe.prototype.apply=function(Y){Y&&Y.selection&&Y.selection.ranges&&this.delegateSelection(Y.selection.ranges,Y.selection.focus||!1),Y&&Y.cursor&&this.delegateCursor(Y.cursor,Y.autoScroll||!1,this.editor.getOption("autofocus")||!1),Y&&Y.scroll&&this.delegateScroll(Y.scroll)},oe.prototype.applyNext=function(Y,A,J){Y&&Y.selection&&Y.selection.ranges&&A&&A.selection&&A.selection.ranges&&!Z.equals(Y.selection.ranges,A.selection.ranges)&&this.delegateSelection(A.selection.ranges,A.selection.focus||!1),Y&&Y.cursor&&A&&A.cursor&&!Z.equals(Y.cursor,A.cursor)&&this.delegateCursor(J.cursor||A.cursor,A.autoScroll||!1,A.autoCursor||!1),Y&&Y.scroll&&A&&A.scroll&&!Z.equals(Y.scroll,A.scroll)&&this.delegateScroll(A.scroll)},oe.prototype.applyUserDefined=function(Y,A){A&&A.cursor&&this.delegateCursor(A.cursor,Y.autoScroll||!1,this.editor.getOption("autofocus")||!1)},oe.prototype.wire=function(Y){var A=this;Object.keys(Y||{}).filter(function(J){return/^on/.test(J)}).forEach(function(J){switch(J){case"onBlur":A.editor.on("blur",function(L,E){A.props.onBlur(A.editor,E)});break;case"onContextMenu":{A.editor.on("contextmenu",function(L,E){A.props.onContextMenu(A.editor,E)});break}case"onCopy":{A.editor.on("copy",function(L,E){A.props.onCopy(A.editor,E)});break}case"onCursor":A.editor.on("cursorActivity",function(L){A.props.onCursor(A.editor,A.editor.getDoc().getCursor())});break;case"onCursorActivity":A.editor.on("cursorActivity",function(L){A.props.onCursorActivity(A.editor)});break;case"onCut":{A.editor.on("cut",function(L,E){A.props.onCut(A.editor,E)});break}case"onDblClick":{A.editor.on("dblclick",function(L,E){A.props.onDblClick(A.editor,E)});break}case"onDragEnter":A.editor.on("dragenter",function(L,E){A.props.onDragEnter(A.editor,E)});break;case"onDragLeave":{A.editor.on("dragleave",function(L,E){A.props.onDragLeave(A.editor,E)});break}case"onDragOver":A.editor.on("dragover",function(L,E){A.props.onDragOver(A.editor,E)});break;case"onDragStart":{A.editor.on("dragstart",function(L,E){A.props.onDragStart(A.editor,E)});break}case"onDrop":A.editor.on("drop",function(L,E){A.props.onDrop(A.editor,E)});break;case"onFocus":A.editor.on("focus",function(L,E){A.props.onFocus(A.editor,E)});break;case"onGutterClick":A.editor.on("gutterClick",function(L,E,k,V){A.props.onGutterClick(A.editor,E,k,V)});break;case"onInputRead":A.editor.on("inputRead",function(L,E){A.props.onInputRead(A.editor,E)});break;case"onKeyDown":A.editor.on("keydown",function(L,E){A.props.onKeyDown(A.editor,E)});break;case"onKeyHandled":A.editor.on("keyHandled",function(L,E,k){A.props.onKeyHandled(A.editor,E,k)});break;case"onKeyPress":A.editor.on("keypress",function(L,E){A.props.onKeyPress(A.editor,E)});break;case"onKeyUp":A.editor.on("keyup",function(L,E){A.props.onKeyUp(A.editor,E)});break;case"onMouseDown":{A.editor.on("mousedown",function(L,E){A.props.onMouseDown(A.editor,E)});break}case"onPaste":{A.editor.on("paste",function(L,E){A.props.onPaste(A.editor,E)});break}case"onRenderLine":{A.editor.on("renderLine",function(L,E,k){A.props.onRenderLine(A.editor,E,k)});break}case"onScroll":A.editor.on("scroll",function(L){A.props.onScroll(A.editor,A.editor.getScrollInfo())});break;case"onSelection":A.editor.on("beforeSelectionChange",function(L,E){A.props.onSelection(A.editor,E)});break;case"onTouchStart":{A.editor.on("touchstart",function(L,E){A.props.onTouchStart(A.editor,E)});break}case"onUpdate":A.editor.on("update",function(L){A.props.onUpdate(A.editor)});break;case"onViewportChange":A.editor.on("viewportChange",function(L,E,k){A.props.onViewportChange(A.editor,E,k)});break}})},oe}(),ue=function(oe){C(Y,oe);function Y(A){var J=oe.call(this,A)||this;return F||(J.applied=!1,J.appliedNext=!1,J.appliedUserDefined=!1,J.deferred=null,J.emulating=!1,J.hydrated=!1,J.initCb=function(){J.props.editorDidConfigure&&J.props.editorDidConfigure(J.editor)},J.mounted=!1),J}return Y.prototype.hydrate=function(A){var J=this,L=A&&A.options?A.options:{},E=x({},U.defaults,this.editor.options,L),k=Object.keys(E).some(function(V){return J.editor.getOption(V)!==E[V]});k&&Object.keys(E).forEach(function(V){L.hasOwnProperty(V)&&J.editor.getOption(V)!==E[V]&&(J.editor.setOption(V,E[V]),J.mirror.setOption(V,E[V]))}),this.hydrated||(this.deferred?this.resolveChange(A.value):this.initChange(A.value||"")),this.hydrated=!0},Y.prototype.initChange=function(A){this.emulating=!0;var J=this.editor.getDoc(),L=J.lastLine(),E=J.getLine(J.lastLine()).length;J.replaceRange(A||"",{line:0,ch:0},{line:L,ch:E}),this.mirror.setValue(A),J.clearHistory(),this.mirror.clearHistory(),this.emulating=!1},Y.prototype.resolveChange=function(A){this.emulating=!0;var J=this.editor.getDoc();if(this.deferred.origin==="undo"?J.undo():this.deferred.origin==="redo"?J.redo():J.replaceRange(this.deferred.text,this.deferred.from,this.deferred.to,this.deferred.origin),A&&A!==J.getValue()){var L=J.getCursor();J.setValue(A),J.setCursor(L)}this.emulating=!1,this.deferred=null},Y.prototype.mirrorChange=function(A){var J=this.editor.getDoc();return A.origin==="undo"?(J.setHistory(this.mirror.getHistory()),this.mirror.undo()):A.origin==="redo"?(J.setHistory(this.mirror.getHistory()),this.mirror.redo()):this.mirror.replaceRange(A.text,A.from,A.to,A.origin),this.mirror.getValue()},Y.prototype.componentDidMount=function(){var A=this;F||(this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&U.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=U(this.ref,this.props.options),this.shared=new ee(this.editor,this.props),this.mirror=U(function(){},this.props.options),this.editor.on("electricInput",function(){A.mirror.setHistory(A.editor.getDoc().getHistory())}),this.editor.on("cursorActivity",function(){A.mirror.setCursor(A.editor.getDoc().getCursor())}),this.editor.on("beforeChange",function(J,L){if(!A.emulating){L.cancel(),A.deferred=L;var E=A.mirrorChange(A.deferred);A.props.onBeforeChange&&A.props.onBeforeChange(A.editor,A.deferred,E)}}),this.editor.on("change",function(J,L){!A.mounted||A.props.onChange&&A.props.onChange(A.editor,L,A.editor.getValue())}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getOption("autofocus")&&this.editor.focus(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},Y.prototype.componentDidUpdate=function(A){if(!F){var J={cursor:null};this.props.value!==A.value&&(this.hydrated=!1),!this.props.autoCursor&&this.props.autoCursor!==void 0&&(J.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.appliedNext||(this.shared.applyNext(A,this.props,J),this.appliedNext=!0),this.shared.applyUserDefined(A,J),this.appliedUserDefined=!0}},Y.prototype.componentWillUnmount=function(){F||this.props.editorWillUnmount&&this.props.editorWillUnmount(U)},Y.prototype.shouldComponentUpdate=function(A,J){return!F},Y.prototype.render=function(){var A=this;if(F)return null;var J=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return T.createElement("div",{className:J,ref:function(E){return A.ref=E}})},Y}(T.Component);O.fk=ue;var ne=function(oe){C(Y,oe);function Y(A){var J=oe.call(this,A)||this;return F||(J.applied=!1,J.appliedUserDefined=!1,J.continueChange=!1,J.detached=!1,J.hydrated=!1,J.initCb=function(){J.props.editorDidConfigure&&J.props.editorDidConfigure(J.editor)},J.mounted=!1,J.onBeforeChangeCb=function(){J.continueChange=!0}),J}return Y.prototype.hydrate=function(A){var J=this,L=A&&A.options?A.options:{},E=x({},U.defaults,this.editor.options,L),k=Object.keys(E).some(function(W){return J.editor.getOption(W)!==E[W]});if(k&&Object.keys(E).forEach(function(W){L.hasOwnProperty(W)&&J.editor.getOption(W)!==E[W]&&J.editor.setOption(W,E[W])}),!this.hydrated){var V=this.editor.getDoc(),G=V.lastLine(),Q=V.getLine(V.lastLine()).length;V.replaceRange(A.value||"",{line:0,ch:0},{line:G,ch:Q})}this.hydrated=!0},Y.prototype.componentDidMount=function(){var A=this;F||(this.detached=this.props.detach===!0,this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&U.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=U(this.ref,this.props.options),this.shared=new ee(this.editor,this.props),this.editor.on("beforeChange",function(J,L){A.props.onBeforeChange&&A.props.onBeforeChange(A.editor,L,A.editor.getValue(),A.onBeforeChangeCb)}),this.editor.on("change",function(J,L){!A.mounted||!A.props.onChange||(A.props.onBeforeChange?A.continueChange&&A.props.onChange(A.editor,L,A.editor.getValue()):A.props.onChange(A.editor,L,A.editor.getValue()))}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getDoc().clearHistory(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},Y.prototype.componentDidUpdate=function(A){if(this.detached&&this.props.detach===!1&&(this.detached=!1,A.editorDidAttach&&A.editorDidAttach(this.editor)),!this.detached&&this.props.detach===!0&&(this.detached=!0,A.editorDidDetach&&A.editorDidDetach(this.editor)),!(F||this.detached)){var J={cursor:null};this.props.value!==A.value&&(this.hydrated=!1,this.applied=!1,this.appliedUserDefined=!1),!A.autoCursor&&A.autoCursor!==void 0&&(J.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.applied||(this.shared.apply(A),this.applied=!0),this.appliedUserDefined||(this.shared.applyUserDefined(A,J),this.appliedUserDefined=!0)}},Y.prototype.componentWillUnmount=function(){F||this.props.editorWillUnmount&&this.props.editorWillUnmount(U)},Y.prototype.shouldComponentUpdate=function(A,J){var L=!0;return F&&(L=!1),this.detached&&A.detach&&(L=!1),L},Y.prototype.render=function(){var A=this;if(F)return null;var J=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return T.createElement("div",{className:J,ref:function(E){return A.ref=E}})},Y}(T.Component);d=ne},74294:(h,O,o)=>{"use strict";var d=o(67286),x=o(62680),w=o(99500),C=d("%TypeError%"),T=d("%WeakMap%",!0),F=d("%Map%",!0),U=x("WeakMap.prototype.get",!0),Z=x("WeakMap.prototype.set",!0),ee=x("WeakMap.prototype.has",!0),ue=x("Map.prototype.get",!0),ne=x("Map.prototype.set",!0),oe=x("Map.prototype.has",!0),Y=function(E,k){for(var V=E,G;(G=V.next)!==null;V=G)if(G.key===k)return V.next=G.next,G.next=E.next,E.next=G,G},A=function(E,k){var V=Y(E,k);return V&&V.value},J=function(E,k,V){var G=Y(E,k);G?G.value=V:E.next={key:k,next:E.next,value:V}},L=function(E,k){return!!Y(E,k)};h.exports=function(){var k,V,G,Q={assert:function(W){if(!Q.has(W))throw new C("Side channel does not contain "+w(W))},get:function(W){if(T&&W&&(typeof W=="object"||typeof W=="function")){if(k)return U(k,W)}else if(F){if(V)return ue(V,W)}else if(G)return A(G,W)},has:function(W){if(T&&W&&(typeof W=="object"||typeof W=="function")){if(k)return ee(k,W)}else if(F){if(V)return oe(V,W)}else if(G)return L(G,W);return!1},set:function(W,te){T&&W&&(typeof W=="object"||typeof W=="function")?(k||(k=new T),Z(k,W,te)):F?(V||(V=new F),ne(V,W,te)):(G||(G={key:{},next:null}),J(G,W,te))}};return Q}},79375:(h,O,o)=>{var d=o(46062),x=o(45957);x=x.__esModule?x.default:x,typeof x=="string"&&(x=[[h.id,x,""]]);var w={};w.insert="head",w.singleton=!1;var C=d(x,w);h.exports=x.locals||{}},4570:(h,O,o)=>{var d=o(46062),x=o(73792);x=x.__esModule?x.default:x,typeof x=="string"&&(x=[[h.id,x,""]]);var w={};w.insert="head",w.singleton=!1;var C=d(x,w);h.exports=x.locals||{}},76239:(h,O,o)=>{var d=o(46062),x=o(59062);x=x.__esModule?x.default:x,typeof x=="string"&&(x=[[h.id,x,""]]);var w={};w.insert="head",w.singleton=!1;var C=d(x,w);h.exports=x.locals||{}},49032:(h,O,o)=>{var d=o(46062),x=o(32024);x=x.__esModule?x.default:x,typeof x=="string"&&(x=[[h.id,x,""]]);var w={};w.insert="head",w.singleton=!1;var C=d(x,w);h.exports=x.locals||{}},56855:h=>{"use strict";function O(A){return Object.prototype.toString.call(A)}function o(A){return O(A)==="[object Date]"}function d(A){return O(A)==="[object RegExp]"}function x(A){return O(A)==="[object Error]"}function w(A){return O(A)==="[object Boolean]"}function C(A){return O(A)==="[object Number]"}function T(A){return O(A)==="[object String]"}var F=Array.isArray||function(J){return Object.prototype.toString.call(J)==="[object Array]"};function U(A,J){if(A.forEach)return A.forEach(J);for(var L=0;L<A.length;L++)J(A[L],L,A)}var Z=Object.keys||function(J){var L=[];for(var E in J)L.push(E);return L},ee=Object.prototype.hasOwnProperty||function(A,J){return J in A};function ue(A){if(typeof A=="object"&&A!==null){var J;if(F(A))J=[];else if(o(A))J=new Date(A.getTime?A.getTime():A);else if(d(A))J=new RegExp(A);else if(x(A))J={message:A.message};else if(w(A)||C(A)||T(A))J=Object(A);else if(Object.create&&Object.getPrototypeOf)J=Object.create(Object.getPrototypeOf(A));else if(A.constructor===Object)J={};else{var L=A.constructor&&A.constructor.prototype||A.__proto__||{},E=function(){};E.prototype=L,J=new E}return U(Z(A),function(k){J[k]=A[k]}),J}return A}function ne(A,J,L){var E=[],k=[],V=!0;return function G(Q){var W=L?ue(Q):Q,te={},K=!0,H={node:W,node_:Q,path:[].concat(E),parent:k[k.length-1],parents:k,key:E[E.length-1],isRoot:E.length===0,level:E.length,circular:null,update:function(_,X){H.isRoot||(H.parent.node[H.key]=_),H.node=_,X&&(K=!1)},delete:function(_){delete H.parent.node[H.key],_&&(K=!1)},remove:function(_){F(H.parent.node)?H.parent.node.splice(H.key,1):delete H.parent.node[H.key],_&&(K=!1)},keys:null,before:function(_){te.before=_},after:function(_){te.after=_},pre:function(_){te.pre=_},post:function(_){te.post=_},stop:function(){V=!1},block:function(){K=!1}};if(!V)return H;function fe(){if(typeof H.node=="object"&&H.node!==null){(!H.keys||H.node_!==H.node)&&(H.keys=Z(H.node)),H.isLeaf=H.keys.length===0;for(var _=0;_<k.length;_++)if(k[_].node_===Q){H.circular=k[_];break}}else H.isLeaf=!0,H.keys=null;H.notLeaf=!H.isLeaf,H.notRoot=!H.isRoot}fe();var ve=J.call(H,H.node);return ve!==void 0&&H.update&&H.update(ve),te.before&&te.before.call(H,H.node),K&&(typeof H.node=="object"&&H.node!==null&&!H.circular&&(k.push(H),fe(),U(H.keys,function(_,X){E.push(_),te.pre&&te.pre.call(H,H.node[_],_);var z=G(H.node[_]);L&&ee.call(H.node,_)&&(H.node[_]=z.node),z.isLast=X===H.keys.length-1,z.isFirst=X===0,te.post&&te.post.call(H,z),E.pop()}),k.pop()),te.after&&te.after.call(H,H.node)),H}(A).node}function oe(A){this.value=A}oe.prototype.get=function(A){for(var J=this.value,L=0;L<A.length;L++){var E=A[L];if(!J||!ee.call(J,E))return;J=J[E]}return J},oe.prototype.has=function(A){for(var J=this.value,L=0;L<A.length;L++){var E=A[L];if(!J||!ee.call(J,E))return!1;J=J[E]}return!0},oe.prototype.set=function(A,J){for(var L=this.value,E=0;E<A.length-1;E++){var k=A[E];ee.call(L,k)||(L[k]={}),L=L[k]}return L[A[E]]=J,J},oe.prototype.map=function(A){return ne(this.value,A,!0)},oe.prototype.forEach=function(A){return this.value=ne(this.value,A,!1),this.value},oe.prototype.reduce=function(A,J){var L=arguments.length===1,E=L?this.value:J;return this.forEach(function(k){(!this.isRoot||!L)&&(E=A.call(this,E,k))}),E},oe.prototype.paths=function(){var A=[];return this.forEach(function(){A.push(this.path)}),A},oe.prototype.nodes=function(){var A=[];return this.forEach(function(){A.push(this.node)}),A},oe.prototype.clone=function(){var A=[],J=[];return function L(E){for(var k=0;k<A.length;k++)if(A[k]===E)return J[k];if(typeof E=="object"&&E!==null){var V=ue(E);return A.push(E),J.push(V),U(Z(E),function(G){V[G]=L(E[G])}),A.pop(),J.pop(),V}return E}(this.value)};function Y(A){return new oe(A)}U(Z(oe.prototype),function(A){Y[A]=function(J){var L=[].slice.call(arguments,1),E=new oe(J);return E[A].apply(E,L)}}),h.exports=Y},56089:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg=="},17735:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII="},96192:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC"},71090:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII="},46050:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII="},53260:()=>{},48621:(h,O,o)=>{h.exports=o(53822)},40192:(h,O,o)=>{h.exports=o(44877)},42126:(h,O,o)=>{h.exports=o(10140)},40453:(h,O,o)=>{h.exports=o(55603)},35784:(h,O,o)=>{h.exports=o(76237)},82985:(h,O,o)=>{h.exports=o(56515)},14903:(h,O,o)=>{h.exports=o(20057)},71488:(h,O,o)=>{h.exports=o(24741)},93963:(h,O,o)=>{h.exports=o(8368)},51661:(h,O,o)=>{h.exports=o(342)},85337:(h,O,o)=>{h.exports=o(392)},45932:(h,O,o)=>{h.exports=o(28478)},31175:(h,O,o)=>{h.exports=o(58202)},2921:(h,O,o)=>{h.exports=o(45636)},22583:(h,O,o)=>{h.exports=o(46618)},8304:(h,O,o)=>{h.exports=o(72946)},36394:(h,O,o)=>{h.exports=o(11235)},50557:(h,O,o)=>{h.exports=o(62813)},72010:(h,O,o)=>{h.exports=o(68664)},5490:(h,O,o)=>{h.exports=o(21457)},1858:(h,O,o)=>{h.exports=o(36516)},84870:(h,O,o)=>{h.exports=o(87611)},48145:(h,O,o)=>{h.exports=o(4161)},26405:(h,O,o)=>{h.exports=o(75159)},9600:(h,O,o)=>{h.exports=o(87708)},72383:(h,O,o)=>{h.exports=o(42937)},8626:(h,O,o)=>{h.exports=o(69297)},45055:(h,O,o)=>{h.exports=o(10353)},49800:(h,O,o)=>{h.exports=o(8026)},79494:(h,O,o)=>{h.exports=o(67362)},11807:(h,O,o)=>{h.exports=o(57532)},24463:(h,O,o)=>{h.exports=o(61903)},21889:(h,O,o)=>{h.exports=o(42044)},25575:(h,O,o)=>{h.exports=o(60902)},68861:(h,O,o)=>{h.exports=o(2214)},64772:(h,O,o)=>{h.exports=o(983)},57829:(h,O,o)=>{h.exports=o(59256)},92876:(h,O,o)=>{h.exports=o(95659)},92903:(h,O,o)=>{h.exports=o(93698)},18730:(h,O,o)=>{var d=o(69696).default,x=o(49800),w=o(57829),C=o(8626),T=o(21889),F=o(48145),U=o(68861),Z=o(64772),ee=o(9600),ue=o(72383);function ne(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */h.exports=ne=function(){return oe},h.exports.__esModule=!0,h.exports.default=h.exports;var oe={},Y=Object.prototype,A=Y.hasOwnProperty,J=x||function(Le,Ce,Se){Le[Ce]=Se.value},L=typeof w=="function"?w:{},E=L.iterator||"@@iterator",k=L.asyncIterator||"@@asyncIterator",V=L.toStringTag||"@@toStringTag";function G(Le,Ce,Se){return x(Le,Ce,{value:Se,enumerable:!0,configurable:!0,writable:!0}),Le[Ce]}try{G({},"")}catch(Le){G=function(Se,De,$e){return Se[De]=$e}}function Q(Le,Ce,Se,De){var $e=Ce&&Ce.prototype instanceof K?Ce:K,tt=C($e.prototype),_e=new xt(De||[]);return J(tt,"_invoke",{value:Ue(Le,Se,_e)}),tt}function W(Le,Ce,Se){try{return{type:"normal",arg:Le.call(Ce,Se)}}catch(De){return{type:"throw",arg:De}}}oe.wrap=Q;var te={};function K(){}function H(){}function fe(){}var ve={};G(ve,E,function(){return this});var _=T,X=_&&_(_(Pt([])));X&&X!==Y&&A.call(X,E)&&(ve=X);var z=fe.prototype=K.prototype=C(ve);function ge(Le){var Ce;F(Ce=["next","throw","return"]).call(Ce,function(Se){G(Le,Se,function(De){return this._invoke(Se,De)})})}function Oe(Le,Ce){function Se($e,tt,_e,St){var It=W(Le[$e],Le,tt);if(It.type!=="throw"){var Wt=It.arg,Kt=Wt.value;return Kt&&d(Kt)=="object"&&A.call(Kt,"__await")?Ce.resolve(Kt.__await).then(function(We){Se("next",We,_e,St)},function(We){Se("throw",We,_e,St)}):Ce.resolve(Kt).then(function(We){Wt.value=We,_e(Wt)},function(We){return Se("throw",We,_e,St)})}St(It.arg)}var De;J(this,"_invoke",{value:function(tt,_e){function St(){return new Ce(function(It,Wt){Se(tt,_e,It,Wt)})}return De=De?De.then(St,St):St()}})}function Ue(Le,Ce,Se){var De="suspendedStart";return function($e,tt){if(De==="executing")throw new Error("Generator is already running");if(De==="completed"){if($e==="throw")throw tt;return Ct()}for(Se.method=$e,Se.arg=tt;;){var _e=Se.delegate;if(_e){var St=Re(_e,Se);if(St){if(St===te)continue;return St}}if(Se.method==="next")Se.sent=Se._sent=Se.arg;else if(Se.method==="throw"){if(De==="suspendedStart")throw De="completed",Se.arg;Se.dispatchException(Se.arg)}else Se.method==="return"&&Se.abrupt("return",Se.arg);De="executing";var It=W(Le,Ce,Se);if(It.type==="normal"){if(De=Se.done?"completed":"suspendedYield",It.arg===te)continue;return{value:It.arg,done:Se.done}}It.type==="throw"&&(De="completed",Se.method="throw",Se.arg=It.arg)}}}function Re(Le,Ce){var Se=Ce.method,De=Le.iterator[Se];if(De===void 0)return Ce.delegate=null,Se==="throw"&&Le.iterator.return&&(Ce.method="return",Ce.arg=void 0,Re(Le,Ce),Ce.method==="throw")||Se!=="return"&&(Ce.method="throw",Ce.arg=new TypeError("The iterator does not provide a '"+Se+"' method")),te;var $e=W(De,Le.iterator,Ce.arg);if($e.type==="throw")return Ce.method="throw",Ce.arg=$e.arg,Ce.delegate=null,te;var tt=$e.arg;return tt?tt.done?(Ce[Le.resultName]=tt.value,Ce.next=Le.nextLoc,Ce.method!=="return"&&(Ce.method="next",Ce.arg=void 0),Ce.delegate=null,te):tt:(Ce.method="throw",Ce.arg=new TypeError("iterator result is not an object"),Ce.delegate=null,te)}function ot(Le){var Ce={tryLoc:Le[0]};1 in Le&&(Ce.catchLoc=Le[1]),2 in Le&&(Ce.finallyLoc=Le[2],Ce.afterLoc=Le[3]),this.tryEntries.push(Ce)}function Xe(Le){var Ce=Le.completion||{};Ce.type="normal",delete Ce.arg,Le.completion=Ce}function xt(Le){this.tryEntries=[{tryLoc:"root"}],F(Le).call(Le,ot,this),this.reset(!0)}function Pt(Le){if(Le){var Ce=Le[E];if(Ce)return Ce.call(Le);if(typeof Le.next=="function")return Le;if(!isNaN(Le.length)){var Se=-1,De=function $e(){for(;++Se<Le.length;)if(A.call(Le,Se))return $e.value=Le[Se],$e.done=!1,$e;return $e.value=void 0,$e.done=!0,$e};return De.next=De}}return{next:Ct}}function Ct(){return{value:void 0,done:!0}}return H.prototype=fe,J(z,"constructor",{value:fe,configurable:!0}),J(fe,"constructor",{value:H,configurable:!0}),H.displayName=G(fe,V,"GeneratorFunction"),oe.isGeneratorFunction=function(Le){var Ce=typeof Le=="function"&&Le.constructor;return!!Ce&&(Ce===H||(Ce.displayName||Ce.name)==="GeneratorFunction")},oe.mark=function(Le){return U?U(Le,fe):(Le.__proto__=fe,G(Le,V,"GeneratorFunction")),Le.prototype=C(z),Le},oe.awrap=function(Le){return{__await:Le}},ge(Oe.prototype),G(Oe.prototype,k,function(){return this}),oe.AsyncIterator=Oe,oe.async=function(Le,Ce,Se,De,$e){$e===void 0&&($e=Z);var tt=new Oe(Q(Le,Ce,Se,De),$e);return oe.isGeneratorFunction(Ce)?tt:tt.next().then(function(_e){return _e.done?_e.value:tt.next()})},ge(z),G(z,V,"Generator"),G(z,E,function(){return this}),G(z,"toString",function(){return"[object Generator]"}),oe.keys=function(Le){var Ce=Object(Le),Se=[];for(var De in Ce)Se.push(De);return ee(Se).call(Se),function $e(){for(;Se.length;){var tt=Se.pop();if(tt in Ce)return $e.value=tt,$e.done=!1,$e}return $e.done=!0,$e}},oe.values=Pt,xt.prototype={constructor:xt,reset:function(Ce){var Se;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,F(Se=this.tryEntries).call(Se,Xe),!Ce)for(var De in this)De.charAt(0)==="t"&&A.call(this,De)&&!isNaN(+ue(De).call(De,1))&&(this[De]=void 0)},stop:function(){this.done=!0;var Ce=this.tryEntries[0].completion;if(Ce.type==="throw")throw Ce.arg;return this.rval},dispatchException:function(Ce){if(this.done)throw Ce;var Se=this;function De(Wt,Kt){return _e.type="throw",_e.arg=Ce,Se.next=Wt,Kt&&(Se.method="next",Se.arg=void 0),!!Kt}for(var $e=this.tryEntries.length-1;$e>=0;--$e){var tt=this.tryEntries[$e],_e=tt.completion;if(tt.tryLoc==="root")return De("end");if(tt.tryLoc<=this.prev){var St=A.call(tt,"catchLoc"),It=A.call(tt,"finallyLoc");if(St&&It){if(this.prev<tt.catchLoc)return De(tt.catchLoc,!0);if(this.prev<tt.finallyLoc)return De(tt.finallyLoc)}else if(St){if(this.prev<tt.catchLoc)return De(tt.catchLoc,!0)}else{if(!It)throw new Error("try statement without catch or finally");if(this.prev<tt.finallyLoc)return De(tt.finallyLoc)}}}},abrupt:function(Ce,Se){for(var De=this.tryEntries.length-1;De>=0;--De){var $e=this.tryEntries[De];if($e.tryLoc<=this.prev&&A.call($e,"finallyLoc")&&this.prev<$e.finallyLoc){var tt=$e;break}}tt&&(Ce==="break"||Ce==="continue")&&tt.tryLoc<=Se&&Se<=tt.finallyLoc&&(tt=null);var _e=tt?tt.completion:{};return _e.type=Ce,_e.arg=Se,tt?(this.method="next",this.next=tt.finallyLoc,te):this.complete(_e)},complete:function(Ce,Se){if(Ce.type==="throw")throw Ce.arg;return Ce.type==="break"||Ce.type==="continue"?this.next=Ce.arg:Ce.type==="return"?(this.rval=this.arg=Ce.arg,this.method="return",this.next="end"):Ce.type==="normal"&&Se&&(this.next=Se),te},finish:function(Ce){for(var Se=this.tryEntries.length-1;Se>=0;--Se){var De=this.tryEntries[Se];if(De.finallyLoc===Ce)return this.complete(De.completion,De.afterLoc),Xe(De),te}},catch:function(Ce){for(var Se=this.tryEntries.length-1;Se>=0;--Se){var De=this.tryEntries[Se];if(De.tryLoc===Ce){var $e=De.completion;if($e.type==="throw"){var tt=$e.arg;Xe(De)}return tt}}throw new Error("illegal catch attempt")},delegateYield:function(Ce,Se,De){return this.delegate={iterator:Pt(Ce),resultName:Se,nextLoc:De},this.method==="next"&&(this.arg=void 0),te}},oe}h.exports=ne,h.exports.__esModule=!0,h.exports.default=h.exports},69696:(h,O,o)=>{var d=o(57829),x=o(92876);function w(C){return h.exports=w=typeof d=="function"&&typeof x=="symbol"?function(T){return typeof T}:function(T){return T&&typeof d=="function"&&T.constructor===d&&T!==d.prototype?"symbol":typeof T},h.exports.__esModule=!0,h.exports.default=h.exports,w(C)}h.exports=w,h.exports.__esModule=!0,h.exports.default=h.exports},99732:(h,O,o)=>{var d=o(18730)();h.exports=d;try{regeneratorRuntime=d}catch(x){typeof globalThis=="object"?globalThis.regeneratorRuntime=d:Function("r","regeneratorRuntime = r")(d)}}}]);