@redocly/reference-docs 2.43.6 → 2.43.7

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,43 +2,43 @@ var Ar=Math.pow;/*!
2
2
  * Redocly Reference Docs
3
3
  * (c) Copyright 2018 Redocly LLC, all rights reserved.
4
4
  * -------------------------------------------------------------
5
- * Version: "2.43.6"
5
+ * Version: "2.43.7"
6
6
  */(this.webpackChunkRedoclyReferenceDocs=this.webpackChunkRedoclyReferenceDocs||[]).push([[290],{66419:(p,I,a)=>{p.exports=a(27698)},77766:(p,I,a)=>{p.exports=a(8065)},72119:(p,I,a)=>{p.exports=a(57448)},20116:(p,I,a)=>{p.exports=a(11955)},94473:(p,I,a)=>{p.exports=a(61577)},78580:(p,I,a)=>{p.exports=a(33778)},2991:(p,I,a)=>{p.exports=a(61798)},3649:(p,I,a)=>{p.exports=a(82073)},92762:(p,I,a)=>{p.exports=a(2348)},59340:(p,I,a)=>{p.exports=a(8933)},51942:(p,I,a)=>{p.exports=a(63383)},26295:(p,I,a)=>{p.exports=a(86209)},86902:(p,I,a)=>{p.exports=a(23059)},93476:(p,I,a)=>{p.exports=a(27460)},52424:(p,I,a)=>{p.exports=a(72010)},53592:(p,I,a)=>{p.exports=a(27385)},78363:(p,I,a)=>{p.exports=a(81522)},19996:(p,I,a)=>{p.exports=a(32209)},30699:(p,I,a)=>{p.exports=a(44442)},28834:(p,I,a)=>{p.exports=a(57152)},95683:(p,I,a)=>{p.exports=a(69447)},95238:(p,I,a)=>{p.exports=a(81493)},189:(p,I,a)=>{p.exports=a(76094)},32752:(p,I,a)=>{p.exports=a(70573)},44341:(p,I,a)=>{p.exports=a(73685)},58377:(p,I,a)=>{p.exports=a(27533)},13038:(p,I,a)=>{p.exports=a(39057)},63263:(p,I,a)=>{p.exports=a(84710)},24889:(p,I,a)=>{p.exports=a(74303)},89356:(p,I,a)=>{p.exports=a(93799)},79542:(p,I,a)=>{p.exports=a(55122)},69798:(p,I,a)=>{p.exports=a(29531)},13535:(p,I,a)=>{p.exports=a(10856)},83863:(p,I,a)=>{p.exports=a(31524)},51446:(p,I,a)=>{p.exports=a(86600)},23882:(p,I,a)=>{p.exports=a(9759)},63109:(p,I,a)=>{p.exports=a(35666)},50706:(p,I,a)=>{var c=a(48764).Buffer;(function(){"use strict";function v(m){var h;return m instanceof c?h=m:h=c.from(m.toString(),"binary"),h.toString("base64")}p.exports=v})()},21924:(p,I,a)=>{"use strict";var c=a(40210),v=a(55559),m=v(c("String.prototype.indexOf"));p.exports=function(b,C){var S=c(b,!!C);return typeof S=="function"&&m(b,".prototype.")>-1?v(S):S}},55559:(p,I,a)=>{"use strict";var c=a(58612),v=a(40210),m=v("%Function.prototype.apply%"),h=v("%Function.prototype.call%"),b=v("%Reflect.apply%",!0)||c.call(h,m),C=v("%Object.getOwnPropertyDescriptor%",!0),S=v("%Object.defineProperty%",!0),L=v("%Math.max%");if(S)try{S({},"a",{value:1})}catch(j){S=null}p.exports=function(U){var Q=b(c,h,arguments);if(C&&S){var K=C(Q,"length");K.configurable&&S(Q,"length",{value:1+L(0,U.length-(arguments.length-1))})}return Q};var N=function(){return b(c,m,arguments)};S?S(p.exports,"apply",{value:N}):p.exports.apply=N},82801:(p,I,a)=>{(function(c){c(a(4631))})(function(c){var v={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},m=c.Pos;c.defineOption("autoCloseBrackets",!1,function(R,E,V){V&&V!=c.Init&&(R.removeKeyMap(b),R.state.closeBrackets=null),E&&(C(h(E,"pairs")),R.state.closeBrackets=E,R.addKeyMap(b))});function h(R,E){return E=="pairs"&&typeof R=="string"?R:typeof R=="object"&&R[E]!=null?R[E]:v[E]}var b={Backspace:N,Enter:j};function C(R){for(var E=0;E<R.length;E++){var V=R.charAt(E),G="'"+V+"'";b[G]||(b[G]=S(V))}}C(v.pairs+"`");function S(R){return function(E){return K(E,R)}}function L(R){var E=R.state.closeBrackets;if(!E||E.override)return E;var V=R.getModeAt(R.getCursor());return V.closeBrackets||E}function N(R){var E=L(R);if(!E||R.getOption("disableInput"))return c.Pass;for(var V=h(E,"pairs"),G=R.listSelections(),Z=0;Z<G.length;Z++){if(!G[Z].empty())return c.Pass;var X=M(R,G[Z].head);if(!X||V.indexOf(X)%2!=0)return c.Pass}for(var Z=G.length-1;Z>=0;Z--){var z=G[Z].head;R.replaceRange("",m(z.line,z.ch-1),m(z.line,z.ch+1),"+delete")}}function j(R){var E=L(R),V=E&&h(E,"explode");if(!V||R.getOption("disableInput"))return c.Pass;for(var G=R.listSelections(),Z=0;Z<G.length;Z++){if(!G[Z].empty())return c.Pass;var X=M(R,G[Z].head);if(!X||V.indexOf(X)%2!=0)return c.Pass}R.operation(function(){var z=R.lineSeparator()||`
7
- `;R.replaceSelection(z+z,null),U(R,-1),G=R.listSelections();for(var ue=0;ue<G.length;ue++){var q=G[ue].head.line;R.indentLine(q,null,!0),R.indentLine(q+1,null,!0)}})}function U(R,E){for(var V=[],G=R.listSelections(),Z=0,X=0;X<G.length;X++){var z=G[X];z.head==R.getCursor()&&(Z=X);var ue=z.head.ch||E>0?{line:z.head.line,ch:z.head.ch+E}:{line:z.head.line-1};V.push({anchor:ue,head:ue})}R.setSelections(V,Z)}function Q(R){var E=c.cmpPos(R.anchor,R.head)>0;return{anchor:new m(R.anchor.line,R.anchor.ch+(E?-1:1)),head:new m(R.head.line,R.head.ch+(E?1:-1))}}function K(R,E){var V=L(R);if(!V||R.getOption("disableInput"))return c.Pass;var G=h(V,"pairs"),Z=G.indexOf(E);if(Z==-1)return c.Pass;for(var X=h(V,"closeBefore"),z=h(V,"triples"),ue=G.charAt(Z+1)==E,q=R.listSelections(),ne=Z%2==0,ge,me=0;me<q.length;me++){var he=q[me],le=he.head,ie,Oe=R.getRange(le,m(le.line,le.ch+1));if(ne&&!he.empty())ie="surround";else if((ue||!ne)&&Oe==E)ue&&Y(R,le)?ie="both":z.indexOf(E)>=0&&R.getRange(le,m(le.line,le.ch+3))==E+E+E?ie="skipThree":ie="skip";else if(ue&&le.ch>1&&z.indexOf(E)>=0&&R.getRange(m(le.line,le.ch-2),le)==E+E){if(le.ch>2&&/\bstring/.test(R.getTokenTypeAt(m(le.line,le.ch-2))))return c.Pass;ie="addFour"}else if(ue){var Pe=le.ch==0?" ":R.getRange(m(le.line,le.ch-1),le);if(!c.isWordChar(Oe)&&Pe!=E&&!c.isWordChar(Pe))ie="both";else return c.Pass}else if(ne&&(Oe.length===0||/\s/.test(Oe)||X.indexOf(Oe)>-1))ie="both";else return c.Pass;if(!ge)ge=ie;else if(ge!=ie)return c.Pass}var Te=Z%2?G.charAt(Z-1):E,Ce=Z%2?E:G.charAt(Z+1);R.operation(function(){if(ge=="skip")U(R,1);else if(ge=="skipThree")U(R,3);else if(ge=="surround"){for(var Xe=R.getSelections(),He=0;He<Xe.length;He++)Xe[He]=Te+Xe[He]+Ce;R.replaceSelections(Xe,"around"),Xe=R.listSelections().slice();for(var He=0;He<Xe.length;He++)Xe[He]=Q(Xe[He]);R.setSelections(Xe)}else ge=="both"?(R.replaceSelection(Te+Ce,null),R.triggerElectric(Te+Ce),U(R,-1)):ge=="addFour"&&(R.replaceSelection(Te+Te+Te+Te,"before"),U(R,1))})}function M(R,E){var V=R.getRange(m(E.line,E.ch-1),m(E.line,E.ch+1));return V.length==2?V:null}function Y(R,E){var V=R.getTokenAt(m(E.line,E.ch+1));return/\bstring/.test(V.type)&&V.start==E.ch&&(E.ch==0||!/\bstring/.test(R.getTokenTypeAt(E)))}})},4328:(p,I,a)=>{(function(c){c(a(4631))})(function(c){var v=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),m=c.Pos,h={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function b(U){return U&&U.bracketRegex||/[(){}[\]]/}function C(U,Q,K){var M=U.getLineHandle(Q.line),Y=Q.ch-1,R=K&&K.afterCursor;R==null&&(R=/(^| )cm-fat-cursor($| )/.test(U.getWrapperElement().className));var E=b(K),V=!R&&Y>=0&&E.test(M.text.charAt(Y))&&h[M.text.charAt(Y)]||E.test(M.text.charAt(Y+1))&&h[M.text.charAt(++Y)];if(!V)return null;var G=V.charAt(1)==">"?1:-1;if(K&&K.strict&&G>0!=(Y==Q.ch))return null;var Z=U.getTokenTypeAt(m(Q.line,Y+1)),X=S(U,m(Q.line,Y+(G>0?1:0)),G,Z,K);return X==null?null:{from:m(Q.line,Y),to:X&&X.pos,match:X&&X.ch==V.charAt(0),forward:G>0}}function S(U,Q,K,M,Y){for(var R=Y&&Y.maxScanLineLength||1e4,E=Y&&Y.maxScanLines||1e3,V=[],G=b(Y),Z=K>0?Math.min(Q.line+E,U.lastLine()+1):Math.max(U.firstLine()-1,Q.line-E),X=Q.line;X!=Z;X+=K){var z=U.getLine(X);if(!!z){var ue=K>0?0:z.length-1,q=K>0?z.length:-1;if(!(z.length>R))for(X==Q.line&&(ue=Q.ch-(K<0?1:0));ue!=q;ue+=K){var ne=z.charAt(ue);if(G.test(ne)&&(M===void 0||(U.getTokenTypeAt(m(X,ue+1))||"")==(M||""))){var ge=h[ne];if(ge&&ge.charAt(1)==">"==K>0)V.push(ne);else if(V.length)V.pop();else return{pos:m(X,ue),ch:ne}}}}}return X-K==(K>0?U.lastLine():U.firstLine())?!1:null}function L(U,Q,K){for(var M=U.state.matchBrackets.maxHighlightLineLength||1e3,Y=K&&K.highlightNonMatching,R=[],E=U.listSelections(),V=0;V<E.length;V++){var G=E[V].empty()&&C(U,E[V].head,K);if(G&&(G.match||Y!==!1)&&U.getLine(G.from.line).length<=M){var Z=G.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";R.push(U.markText(G.from,m(G.from.line,G.from.ch+1),{className:Z})),G.to&&U.getLine(G.to.line).length<=M&&R.push(U.markText(G.to,m(G.to.line,G.to.ch+1),{className:Z}))}}if(R.length){v&&U.state.focused&&U.focus();var X=function(){U.operation(function(){for(var z=0;z<R.length;z++)R[z].clear()})};if(Q)setTimeout(X,800);else return X}}function N(U){U.operation(function(){U.state.matchBrackets.currentlyHighlighted&&(U.state.matchBrackets.currentlyHighlighted(),U.state.matchBrackets.currentlyHighlighted=null),U.state.matchBrackets.currentlyHighlighted=L(U,!1,U.state.matchBrackets)})}function j(U){U.state.matchBrackets&&U.state.matchBrackets.currentlyHighlighted&&(U.state.matchBrackets.currentlyHighlighted(),U.state.matchBrackets.currentlyHighlighted=null)}c.defineOption("matchBrackets",!1,function(U,Q,K){K&&K!=c.Init&&(U.off("cursorActivity",N),U.off("focus",N),U.off("blur",j),j(U)),Q&&(U.state.matchBrackets=typeof Q=="object"?Q:{},U.on("cursorActivity",N),U.on("focus",N),U.on("blur",j))}),c.defineExtension("matchBrackets",function(){L(this,!0)}),c.defineExtension("findMatchingBracket",function(U,Q,K){return(K||typeof Q=="boolean")&&(K?(K.strict=Q,Q=K):Q=Q?{strict:!0}:null),C(this,U,Q)}),c.defineExtension("scanForBracket",function(U,Q,K,M){return S(this,U,Q,K,M)})})},71707:(p,I,a)=>{(function(c){c(a(4631))})(function(c){"use strict";var v="CodeMirror-hint",m="CodeMirror-hint-active";c.showHint=function(R,E,V){if(!E)return R.showHint(V);V&&V.async&&(E.async=!0);var G={hint:E};if(V)for(var Z in V)G[Z]=V[Z];return R.showHint(G)},c.defineExtension("showHint",function(R){R=S(this,this.getCursor("start"),R);var E=this.listSelections();if(!(E.length>1)){if(this.somethingSelected()){if(!R.hint.supportsSelection)return;for(var V=0;V<E.length;V++)if(E[V].head.line!=E[V].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var G=this.state.completionActive=new h(this,R);!G.options.hint||(c.signal(this,"startCompletion",this),G.update(!0))}}),c.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function h(R,E){if(this.cm=R,this.options=E,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var V=this;R.on("cursorActivity",this.activityFunc=function(){V.cursorActivity()})}}var b=window.requestAnimationFrame||function(R){return setTimeout(R,1e3/60)},C=window.cancelAnimationFrame||clearTimeout;h.prototype={close:function(){!this.active()||(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&c.signal(this.data,"close"),this.widget&&this.widget.close(),c.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(R,E){var V=R.list[E],G=this;this.cm.operation(function(){V.hint?V.hint(G.cm,R,V):G.cm.replaceRange(L(V),V.from||R.from,V.to||R.to,"complete"),c.signal(R,"pick",V),G.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(C(this.debounce),this.debounce=0);var R=this.startPos;this.data&&(R=this.data.from);var E=this.cm.getCursor(),V=this.cm.getLine(E.line);if(E.line!=this.startPos.line||V.length-E.ch!=this.startLen-this.startPos.ch||E.ch<R.ch||this.cm.somethingSelected()||!E.ch||this.options.closeCharacters.test(V.charAt(E.ch-1)))this.close();else{var G=this;this.debounce=b(function(){G.update()}),this.widget&&this.widget.disable()}},update:function(R){if(this.tick!=null){var E=this,V=++this.tick;K(this.options.hint,this.cm,this.options,function(G){E.tick==V&&E.finishUpdate(G,R)})}},finishUpdate:function(R,E){this.data&&c.signal(this.data,"update");var V=this.widget&&this.widget.picked||E&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=R,R&&R.list.length&&(V&&R.list.length==1?this.pick(R,0):(this.widget=new U(this,R),c.signal(R,"shown")))}};function S(R,E,V){var G=R.options.hintOptions,Z={};for(var X in Y)Z[X]=Y[X];if(G)for(var X in G)G[X]!==void 0&&(Z[X]=G[X]);if(V)for(var X in V)V[X]!==void 0&&(Z[X]=V[X]);return Z.hint.resolve&&(Z.hint=Z.hint.resolve(R,E)),Z}function L(R){return typeof R=="string"?R:R.text}function N(R,E){var V={Up:function(){E.moveFocus(-1)},Down:function(){E.moveFocus(1)},PageUp:function(){E.moveFocus(-E.menuSize()+1,!0)},PageDown:function(){E.moveFocus(E.menuSize()-1,!0)},Home:function(){E.setFocus(0)},End:function(){E.setFocus(E.length-1)},Enter:E.pick,Tab:E.pick,Esc:E.close},G=/Mac/.test(navigator.platform);G&&(V["Ctrl-P"]=function(){E.moveFocus(-1)},V["Ctrl-N"]=function(){E.moveFocus(1)});var Z=R.options.customKeys,X=Z?{}:V;function z(ne,ge){var me;typeof ge!="string"?me=function(he){return ge(he,E)}:V.hasOwnProperty(ge)?me=V[ge]:me=ge,X[ne]=me}if(Z)for(var ue in Z)Z.hasOwnProperty(ue)&&z(ue,Z[ue]);var q=R.options.extraKeys;if(q)for(var ue in q)q.hasOwnProperty(ue)&&z(ue,q[ue]);return X}function j(R,E){for(;E&&E!=R;){if(E.nodeName.toUpperCase()==="LI"&&E.parentNode==R)return E;E=E.parentNode}}function U(R,E){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=R,this.data=E,this.picked=!1;var V=this,G=R.cm,Z=G.getInputField().ownerDocument,X=Z.defaultView||Z.parentWindow,z=this.hints=Z.createElement("ul");z.setAttribute("role","listbox"),z.setAttribute("aria-expanded","true"),z.id=this.id;var ue=R.cm.options.theme;z.className="CodeMirror-hints "+ue,this.selectedHint=E.selectedHint||0;for(var q=E.list,ne=0;ne<q.length;++ne){var ge=z.appendChild(Z.createElement("li")),me=q[ne],he=v+(ne!=this.selectedHint?"":" "+m);me.className!=null&&(he=me.className+" "+he),ge.className=he,ne==this.selectedHint&&ge.setAttribute("aria-selected","true"),ge.id=this.id+"-"+ne,ge.setAttribute("role","option"),me.render?me.render(ge,E,me):ge.appendChild(Z.createTextNode(me.displayText||L(me))),ge.hintId=ne}var le=R.options.container||Z.body,ie=G.cursorCoords(R.options.alignWithWord?E.from:null),Oe=ie.left,Pe=ie.bottom,Te=!0,Ce=0,Xe=0;if(le!==Z.body){var He=["absolute","relative","fixed"].indexOf(X.getComputedStyle(le).position)!==-1,Je=He?le:le.offsetParent,ut=Je.getBoundingClientRect(),ft=Z.body.getBoundingClientRect();Ce=ut.left-ft.left-Je.scrollLeft,Xe=ut.top-ft.top-Je.scrollTop}z.style.left=Oe-Ce+"px",z.style.top=Pe-Xe+"px";var yt=X.innerWidth||Math.max(Z.body.offsetWidth,Z.documentElement.offsetWidth),Qe=X.innerHeight||Math.max(Z.body.offsetHeight,Z.documentElement.offsetHeight);le.appendChild(z),G.getInputField().setAttribute("aria-autocomplete","list"),G.getInputField().setAttribute("aria-owns",this.id),G.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var nt=R.options.moveOnOverlap?z.getBoundingClientRect():new DOMRect,ct=R.options.paddingForScrollbar?z.scrollHeight>z.clientHeight+1:!1,dt;setTimeout(function(){dt=G.getScrollInfo()});var st=nt.bottom-Qe;if(st>0){var Ot=nt.bottom-nt.top,Et=ie.top-(ie.bottom-nt.top);if(Et-Ot>0)z.style.top=(Pe=ie.top-Ot-Xe)+"px",Te=!1;else if(Ot>Qe){z.style.height=Qe-5+"px",z.style.top=(Pe=ie.bottom-nt.top-Xe)+"px";var St=G.getCursor();E.from.ch!=St.ch&&(ie=G.cursorCoords(St),z.style.left=(Oe=ie.left-Ce)+"px",nt=z.getBoundingClientRect())}}var jt=nt.right-yt;if(ct&&(jt+=G.display.nativeBarWidth),jt>0&&(nt.right-nt.left>yt&&(z.style.width=yt-5+"px",jt-=nt.right-nt.left-yt),z.style.left=(Oe=ie.left-jt-Ce)+"px"),ct)for(var Dt=z.firstChild;Dt;Dt=Dt.nextSibling)Dt.style.paddingRight=G.display.nativeBarWidth+"px";if(G.addKeyMap(this.keyMap=N(R,{moveFocus:function(It,ht){V.changeActive(V.selectedHint+It,ht)},setFocus:function(It){V.changeActive(It)},menuSize:function(){return V.screenAmount()},length:q.length,close:function(){R.close()},pick:function(){V.pick()},data:E})),R.options.closeOnUnfocus){var Nt;G.on("blur",this.onBlur=function(){Nt=setTimeout(function(){R.close()},100)}),G.on("focus",this.onFocus=function(){clearTimeout(Nt)})}G.on("scroll",this.onScroll=function(){var It=G.getScrollInfo(),ht=G.getWrapperElement().getBoundingClientRect();dt||(dt=G.getScrollInfo());var zt=Pe+dt.top-It.top,Kt=zt-(X.pageYOffset||(Z.documentElement||Z.body).scrollTop);if(Te||(Kt+=z.offsetHeight),Kt<=ht.top||Kt>=ht.bottom)return R.close();z.style.top=zt+"px",z.style.left=Oe+dt.left-It.left+"px"}),c.on(z,"dblclick",function(It){var ht=j(z,It.target||It.srcElement);ht&&ht.hintId!=null&&(V.changeActive(ht.hintId),V.pick())}),c.on(z,"click",function(It){var ht=j(z,It.target||It.srcElement);ht&&ht.hintId!=null&&(V.changeActive(ht.hintId),R.options.completeOnSingleClick&&V.pick())}),c.on(z,"mousedown",function(){setTimeout(function(){G.focus()},20)});var mt=this.getSelectedHintRange();return(mt.from!==0||mt.to!==0)&&this.scrollToActive(),c.signal(E,"select",q[this.selectedHint],z.childNodes[this.selectedHint]),!0}U.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var R=this.completion.cm.getInputField();R.removeAttribute("aria-activedescendant"),R.removeAttribute("aria-owns");var E=this.completion.cm;this.completion.options.closeOnUnfocus&&(E.off("blur",this.onBlur),E.off("focus",this.onFocus)),E.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var R=this;this.keyMap={Enter:function(){R.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(R,E){if(R>=this.data.list.length?R=E?this.data.list.length-1:0:R<0&&(R=E?0:this.data.list.length-1),this.selectedHint!=R){var V=this.hints.childNodes[this.selectedHint];V&&(V.className=V.className.replace(" "+m,""),V.removeAttribute("aria-selected")),V=this.hints.childNodes[this.selectedHint=R],V.className+=" "+m,V.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",V.id),this.scrollToActive(),c.signal(this.data,"select",this.data.list[this.selectedHint],V)}},scrollToActive:function(){var R=this.getSelectedHintRange(),E=this.hints.childNodes[R.from],V=this.hints.childNodes[R.to],G=this.hints.firstChild;E.offsetTop<this.hints.scrollTop?this.hints.scrollTop=E.offsetTop-G.offsetTop:V.offsetTop+V.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=V.offsetTop+V.offsetHeight-this.hints.clientHeight+G.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var R=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-R),to:Math.min(this.data.list.length-1,this.selectedHint+R)}}};function Q(R,E){if(!R.somethingSelected())return E;for(var V=[],G=0;G<E.length;G++)E[G].supportsSelection&&V.push(E[G]);return V}function K(R,E,V,G){if(R.async)R(E,G,V);else{var Z=R(E,V);Z&&Z.then?Z.then(G):G(Z)}}function M(R,E){var V=R.getHelpers(E,"hint"),G;if(V.length){var Z=function(X,z,ue){var q=Q(X,V);function ne(ge){if(ge==q.length)return z(null);K(q[ge],X,ue,function(me){me&&me.list.length>0?z(me):ne(ge+1)})}ne(0)};return Z.async=!0,Z.supportsSelection=!0,Z}else return(G=R.getHelper(R.getCursor(),"hintWords"))?function(X){return c.hint.fromList(X,{words:G})}:c.hint.anyword?function(X,z){return c.hint.anyword(X,z)}:function(){}}c.registerHelper("hint","auto",{resolve:M}),c.registerHelper("hint","fromList",function(R,E){var V=R.getCursor(),G=R.getTokenAt(V),Z,X=c.Pos(V.line,G.start),z=V;G.start<V.ch&&/\w/.test(G.string.charAt(V.ch-G.start-1))?Z=G.string.substr(0,V.ch-G.start):(Z="",X=V);for(var ue=[],q=0;q<E.words.length;q++){var ne=E.words[q];ne.slice(0,Z.length)==Z&&ue.push(ne)}if(ue.length)return{list:ue,from:X,to:z}}),c.commands.autocomplete=c.showHint;var Y={hint:c.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};c.defineOption("hintOptions",null)})},3256:(p,I,a)=>{(function(c){c(a(4631))})(function(c){"use strict";var v="CodeMirror-lint-markers",m="CodeMirror-lint-line-";function h(z,ue,q){var ne=document.createElement("div");ne.className="CodeMirror-lint-tooltip cm-s-"+z.options.theme,ne.appendChild(q.cloneNode(!0)),z.state.lint.options.selfContain?z.getWrapperElement().appendChild(ne):document.body.appendChild(ne);function ge(me){if(!ne.parentNode)return c.off(document,"mousemove",ge);ne.style.top=Math.max(0,me.clientY-ne.offsetHeight-5)+"px",ne.style.left=me.clientX+5+"px"}return c.on(document,"mousemove",ge),ge(ue),ne.style.opacity!=null&&(ne.style.opacity=1),ne}function b(z){z.parentNode&&z.parentNode.removeChild(z)}function C(z){!z.parentNode||(z.style.opacity==null&&b(z),z.style.opacity=0,setTimeout(function(){b(z)},600))}function S(z,ue,q,ne){var ge=h(z,ue,q);function me(){c.off(ne,"mouseout",me),ge&&(C(ge),ge=null)}var he=setInterval(function(){if(ge)for(var le=ne;;le=le.parentNode){if(le&&le.nodeType==11&&(le=le.host),le==document.body)return;if(!le){me();break}}if(!ge)return clearInterval(he)},400);c.on(ne,"mouseout",me)}function L(z,ue,q){this.marked=[],ue instanceof Function&&(ue={getAnnotations:ue}),(!ue||ue===!0)&&(ue={}),this.options={},this.linterOptions=ue.options||{};for(var ne in N)this.options[ne]=N[ne];for(var ne in ue)N.hasOwnProperty(ne)?ue[ne]!=null&&(this.options[ne]=ue[ne]):ue.options||(this.linterOptions[ne]=ue[ne]);this.timeout=null,this.hasGutter=q,this.onMouseOver=function(ge){X(z,ge)},this.waitingFor=0}var N={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function j(z){var ue=z.state.lint;ue.hasGutter&&z.clearGutter(v),ue.options.highlightLines&&U(z);for(var q=0;q<ue.marked.length;++q)ue.marked[q].clear();ue.marked.length=0}function U(z){z.eachLine(function(ue){var q=ue.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(ue.wrapClass);q&&z.removeLineClass(ue,"wrap",q[0])})}function Q(z,ue,q,ne,ge){var me=document.createElement("div"),he=me;return me.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+q,ne&&(he=me.appendChild(document.createElement("div")),he.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),ge!=!1&&c.on(he,"mouseover",function(le){S(z,le,ue,he)}),me}function K(z,ue){return z=="error"?z:ue}function M(z){for(var ue=[],q=0;q<z.length;++q){var ne=z[q],ge=ne.from.line;(ue[ge]||(ue[ge]=[])).push(ne)}return ue}function Y(z){var ue=z.severity;ue||(ue="error");var q=document.createElement("div");return q.className="CodeMirror-lint-message CodeMirror-lint-message-"+ue,typeof z.messageHTML!="undefined"?q.innerHTML=z.messageHTML:q.appendChild(document.createTextNode(z.message)),q}function R(z,ue){var q=z.state.lint,ne=++q.waitingFor;function ge(){ne=-1,z.off("change",ge)}z.on("change",ge),ue(z.getValue(),function(me,he){z.off("change",ge),q.waitingFor==ne&&(he&&me instanceof c&&(me=he),z.operation(function(){V(z,me)}))},q.linterOptions,z)}function E(z){var ue=z.state.lint;if(!!ue){var q=ue.options,ne=q.getAnnotations||z.getHelper(c.Pos(0,0),"lint");if(!!ne)if(q.async||ne.async)R(z,ne);else{var ge=ne(z.getValue(),ue.linterOptions,z);if(!ge)return;ge.then?ge.then(function(me){z.operation(function(){V(z,me)})}):z.operation(function(){V(z,ge)})}}}function V(z,ue){var q=z.state.lint;if(!!q){var ne=q.options;j(z);for(var ge=M(ue),me=0;me<ge.length;++me){var he=ge[me];if(!!he){var le=[];he=he.filter(function(Xe){return le.indexOf(Xe.message)>-1?!1:le.push(Xe.message)});for(var ie=null,Oe=q.hasGutter&&document.createDocumentFragment(),Pe=0;Pe<he.length;++Pe){var Te=he[Pe],Ce=Te.severity;Ce||(Ce="error"),ie=K(ie,Ce),ne.formatAnnotation&&(Te=ne.formatAnnotation(Te)),q.hasGutter&&Oe.appendChild(Y(Te)),Te.to&&q.marked.push(z.markText(Te.from,Te.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+Ce,__annotation:Te}))}q.hasGutter&&z.setGutterMarker(me,v,Q(z,Oe,ie,ge[me].length>1,ne.tooltips)),ne.highlightLines&&z.addLineClass(me,"wrap",m+ie)}}ne.onUpdateLinting&&ne.onUpdateLinting(ue,ge,z)}}function G(z){var ue=z.state.lint;!ue||(clearTimeout(ue.timeout),ue.timeout=setTimeout(function(){E(z)},ue.options.delay))}function Z(z,ue,q){for(var ne=q.target||q.srcElement,ge=document.createDocumentFragment(),me=0;me<ue.length;me++){var he=ue[me];ge.appendChild(Y(he))}S(z,q,ge,ne)}function X(z,ue){var q=ue.target||ue.srcElement;if(!!/\bCodeMirror-lint-mark-/.test(q.className)){for(var ne=q.getBoundingClientRect(),ge=(ne.left+ne.right)/2,me=(ne.top+ne.bottom)/2,he=z.findMarksAt(z.coordsChar({left:ge,top:me},"client")),le=[],ie=0;ie<he.length;++ie){var Oe=he[ie].__annotation;Oe&&le.push(Oe)}le.length&&Z(z,le,ue)}}c.defineOption("lint",!1,function(z,ue,q){if(q&&q!=c.Init&&(j(z),z.state.lint.options.lintOnChange!==!1&&z.off("change",G),c.off(z.getWrapperElement(),"mouseover",z.state.lint.onMouseOver),clearTimeout(z.state.lint.timeout),delete z.state.lint),ue){for(var ne=z.getOption("gutters"),ge=!1,me=0;me<ne.length;++me)ne[me]==v&&(ge=!0);var he=z.state.lint=new L(z,ue,ge);he.options.lintOnChange&&z.on("change",G),he.options.tooltips!=!1&&he.options.tooltips!="gutter"&&c.on(z.getWrapperElement(),"mouseover",he.onMouseOver),E(z)}}),c.defineExtension("performLint",function(){E(this)})})},32095:(p,I,a)=>{(function(c){c(a(4631))})(function(c){"use strict";var v=c.Pos;function m(E){var V=E.flags;return V!=null?V:(E.ignoreCase?"i":"")+(E.global?"g":"")+(E.multiline?"m":"")}function h(E,V){for(var G=m(E),Z=G,X=0;X<V.length;X++)Z.indexOf(V.charAt(X))==-1&&(Z+=V.charAt(X));return G==Z?E:new RegExp(E.source,Z)}function b(E){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(E.source)}function C(E,V,G){V=h(V,"g");for(var Z=G.line,X=G.ch,z=E.lastLine();Z<=z;Z++,X=0){V.lastIndex=X;var ue=E.getLine(Z),q=V.exec(ue);if(q)return{from:v(Z,q.index),to:v(Z,q.index+q[0].length),match:q}}}function S(E,V,G){if(!b(V))return C(E,V,G);V=h(V,"gm");for(var Z,X=1,z=G.line,ue=E.lastLine();z<=ue;){for(var q=0;q<X&&!(z>ue);q++){var ne=E.getLine(z++);Z=Z==null?ne:Z+`
7
+ `;R.replaceSelection(z+z,null),U(R,-1),G=R.listSelections();for(var ue=0;ue<G.length;ue++){var q=G[ue].head.line;R.indentLine(q,null,!0),R.indentLine(q+1,null,!0)}})}function U(R,E){for(var V=[],G=R.listSelections(),Z=0,X=0;X<G.length;X++){var z=G[X];z.head==R.getCursor()&&(Z=X);var ue=z.head.ch||E>0?{line:z.head.line,ch:z.head.ch+E}:{line:z.head.line-1};V.push({anchor:ue,head:ue})}R.setSelections(V,Z)}function Q(R){var E=c.cmpPos(R.anchor,R.head)>0;return{anchor:new m(R.anchor.line,R.anchor.ch+(E?-1:1)),head:new m(R.head.line,R.head.ch+(E?1:-1))}}function K(R,E){var V=L(R);if(!V||R.getOption("disableInput"))return c.Pass;var G=h(V,"pairs"),Z=G.indexOf(E);if(Z==-1)return c.Pass;for(var X=h(V,"closeBefore"),z=h(V,"triples"),ue=G.charAt(Z+1)==E,q=R.listSelections(),ne=Z%2==0,ge,me=0;me<q.length;me++){var pe=q[me],se=pe.head,ie,Oe=R.getRange(se,m(se.line,se.ch+1));if(ne&&!pe.empty())ie="surround";else if((ue||!ne)&&Oe==E)ue&&Y(R,se)?ie="both":z.indexOf(E)>=0&&R.getRange(se,m(se.line,se.ch+3))==E+E+E?ie="skipThree":ie="skip";else if(ue&&se.ch>1&&z.indexOf(E)>=0&&R.getRange(m(se.line,se.ch-2),se)==E+E){if(se.ch>2&&/\bstring/.test(R.getTokenTypeAt(m(se.line,se.ch-2))))return c.Pass;ie="addFour"}else if(ue){var Pe=se.ch==0?" ":R.getRange(m(se.line,se.ch-1),se);if(!c.isWordChar(Oe)&&Pe!=E&&!c.isWordChar(Pe))ie="both";else return c.Pass}else if(ne&&(Oe.length===0||/\s/.test(Oe)||X.indexOf(Oe)>-1))ie="both";else return c.Pass;if(!ge)ge=ie;else if(ge!=ie)return c.Pass}var Te=Z%2?G.charAt(Z-1):E,Ce=Z%2?E:G.charAt(Z+1);R.operation(function(){if(ge=="skip")U(R,1);else if(ge=="skipThree")U(R,3);else if(ge=="surround"){for(var Xe=R.getSelections(),He=0;He<Xe.length;He++)Xe[He]=Te+Xe[He]+Ce;R.replaceSelections(Xe,"around"),Xe=R.listSelections().slice();for(var He=0;He<Xe.length;He++)Xe[He]=Q(Xe[He]);R.setSelections(Xe)}else ge=="both"?(R.replaceSelection(Te+Ce,null),R.triggerElectric(Te+Ce),U(R,-1)):ge=="addFour"&&(R.replaceSelection(Te+Te+Te+Te,"before"),U(R,1))})}function M(R,E){var V=R.getRange(m(E.line,E.ch-1),m(E.line,E.ch+1));return V.length==2?V:null}function Y(R,E){var V=R.getTokenAt(m(E.line,E.ch+1));return/\bstring/.test(V.type)&&V.start==E.ch&&(E.ch==0||!/\bstring/.test(R.getTokenTypeAt(E)))}})},4328:(p,I,a)=>{(function(c){c(a(4631))})(function(c){var v=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),m=c.Pos,h={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function b(U){return U&&U.bracketRegex||/[(){}[\]]/}function C(U,Q,K){var M=U.getLineHandle(Q.line),Y=Q.ch-1,R=K&&K.afterCursor;R==null&&(R=/(^| )cm-fat-cursor($| )/.test(U.getWrapperElement().className));var E=b(K),V=!R&&Y>=0&&E.test(M.text.charAt(Y))&&h[M.text.charAt(Y)]||E.test(M.text.charAt(Y+1))&&h[M.text.charAt(++Y)];if(!V)return null;var G=V.charAt(1)==">"?1:-1;if(K&&K.strict&&G>0!=(Y==Q.ch))return null;var Z=U.getTokenTypeAt(m(Q.line,Y+1)),X=S(U,m(Q.line,Y+(G>0?1:0)),G,Z,K);return X==null?null:{from:m(Q.line,Y),to:X&&X.pos,match:X&&X.ch==V.charAt(0),forward:G>0}}function S(U,Q,K,M,Y){for(var R=Y&&Y.maxScanLineLength||1e4,E=Y&&Y.maxScanLines||1e3,V=[],G=b(Y),Z=K>0?Math.min(Q.line+E,U.lastLine()+1):Math.max(U.firstLine()-1,Q.line-E),X=Q.line;X!=Z;X+=K){var z=U.getLine(X);if(!!z){var ue=K>0?0:z.length-1,q=K>0?z.length:-1;if(!(z.length>R))for(X==Q.line&&(ue=Q.ch-(K<0?1:0));ue!=q;ue+=K){var ne=z.charAt(ue);if(G.test(ne)&&(M===void 0||(U.getTokenTypeAt(m(X,ue+1))||"")==(M||""))){var ge=h[ne];if(ge&&ge.charAt(1)==">"==K>0)V.push(ne);else if(V.length)V.pop();else return{pos:m(X,ue),ch:ne}}}}}return X-K==(K>0?U.lastLine():U.firstLine())?!1:null}function L(U,Q,K){for(var M=U.state.matchBrackets.maxHighlightLineLength||1e3,Y=K&&K.highlightNonMatching,R=[],E=U.listSelections(),V=0;V<E.length;V++){var G=E[V].empty()&&C(U,E[V].head,K);if(G&&(G.match||Y!==!1)&&U.getLine(G.from.line).length<=M){var Z=G.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";R.push(U.markText(G.from,m(G.from.line,G.from.ch+1),{className:Z})),G.to&&U.getLine(G.to.line).length<=M&&R.push(U.markText(G.to,m(G.to.line,G.to.ch+1),{className:Z}))}}if(R.length){v&&U.state.focused&&U.focus();var X=function(){U.operation(function(){for(var z=0;z<R.length;z++)R[z].clear()})};if(Q)setTimeout(X,800);else return X}}function N(U){U.operation(function(){U.state.matchBrackets.currentlyHighlighted&&(U.state.matchBrackets.currentlyHighlighted(),U.state.matchBrackets.currentlyHighlighted=null),U.state.matchBrackets.currentlyHighlighted=L(U,!1,U.state.matchBrackets)})}function j(U){U.state.matchBrackets&&U.state.matchBrackets.currentlyHighlighted&&(U.state.matchBrackets.currentlyHighlighted(),U.state.matchBrackets.currentlyHighlighted=null)}c.defineOption("matchBrackets",!1,function(U,Q,K){K&&K!=c.Init&&(U.off("cursorActivity",N),U.off("focus",N),U.off("blur",j),j(U)),Q&&(U.state.matchBrackets=typeof Q=="object"?Q:{},U.on("cursorActivity",N),U.on("focus",N),U.on("blur",j))}),c.defineExtension("matchBrackets",function(){L(this,!0)}),c.defineExtension("findMatchingBracket",function(U,Q,K){return(K||typeof Q=="boolean")&&(K?(K.strict=Q,Q=K):Q=Q?{strict:!0}:null),C(this,U,Q)}),c.defineExtension("scanForBracket",function(U,Q,K,M){return S(this,U,Q,K,M)})})},71707:(p,I,a)=>{(function(c){c(a(4631))})(function(c){"use strict";var v="CodeMirror-hint",m="CodeMirror-hint-active";c.showHint=function(R,E,V){if(!E)return R.showHint(V);V&&V.async&&(E.async=!0);var G={hint:E};if(V)for(var Z in V)G[Z]=V[Z];return R.showHint(G)},c.defineExtension("showHint",function(R){R=S(this,this.getCursor("start"),R);var E=this.listSelections();if(!(E.length>1)){if(this.somethingSelected()){if(!R.hint.supportsSelection)return;for(var V=0;V<E.length;V++)if(E[V].head.line!=E[V].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var G=this.state.completionActive=new h(this,R);!G.options.hint||(c.signal(this,"startCompletion",this),G.update(!0))}}),c.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function h(R,E){if(this.cm=R,this.options=E,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var V=this;R.on("cursorActivity",this.activityFunc=function(){V.cursorActivity()})}}var b=window.requestAnimationFrame||function(R){return setTimeout(R,1e3/60)},C=window.cancelAnimationFrame||clearTimeout;h.prototype={close:function(){!this.active()||(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&c.signal(this.data,"close"),this.widget&&this.widget.close(),c.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(R,E){var V=R.list[E],G=this;this.cm.operation(function(){V.hint?V.hint(G.cm,R,V):G.cm.replaceRange(L(V),V.from||R.from,V.to||R.to,"complete"),c.signal(R,"pick",V),G.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(C(this.debounce),this.debounce=0);var R=this.startPos;this.data&&(R=this.data.from);var E=this.cm.getCursor(),V=this.cm.getLine(E.line);if(E.line!=this.startPos.line||V.length-E.ch!=this.startLen-this.startPos.ch||E.ch<R.ch||this.cm.somethingSelected()||!E.ch||this.options.closeCharacters.test(V.charAt(E.ch-1)))this.close();else{var G=this;this.debounce=b(function(){G.update()}),this.widget&&this.widget.disable()}},update:function(R){if(this.tick!=null){var E=this,V=++this.tick;K(this.options.hint,this.cm,this.options,function(G){E.tick==V&&E.finishUpdate(G,R)})}},finishUpdate:function(R,E){this.data&&c.signal(this.data,"update");var V=this.widget&&this.widget.picked||E&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=R,R&&R.list.length&&(V&&R.list.length==1?this.pick(R,0):(this.widget=new U(this,R),c.signal(R,"shown")))}};function S(R,E,V){var G=R.options.hintOptions,Z={};for(var X in Y)Z[X]=Y[X];if(G)for(var X in G)G[X]!==void 0&&(Z[X]=G[X]);if(V)for(var X in V)V[X]!==void 0&&(Z[X]=V[X]);return Z.hint.resolve&&(Z.hint=Z.hint.resolve(R,E)),Z}function L(R){return typeof R=="string"?R:R.text}function N(R,E){var V={Up:function(){E.moveFocus(-1)},Down:function(){E.moveFocus(1)},PageUp:function(){E.moveFocus(-E.menuSize()+1,!0)},PageDown:function(){E.moveFocus(E.menuSize()-1,!0)},Home:function(){E.setFocus(0)},End:function(){E.setFocus(E.length-1)},Enter:E.pick,Tab:E.pick,Esc:E.close},G=/Mac/.test(navigator.platform);G&&(V["Ctrl-P"]=function(){E.moveFocus(-1)},V["Ctrl-N"]=function(){E.moveFocus(1)});var Z=R.options.customKeys,X=Z?{}:V;function z(ne,ge){var me;typeof ge!="string"?me=function(pe){return ge(pe,E)}:V.hasOwnProperty(ge)?me=V[ge]:me=ge,X[ne]=me}if(Z)for(var ue in Z)Z.hasOwnProperty(ue)&&z(ue,Z[ue]);var q=R.options.extraKeys;if(q)for(var ue in q)q.hasOwnProperty(ue)&&z(ue,q[ue]);return X}function j(R,E){for(;E&&E!=R;){if(E.nodeName.toUpperCase()==="LI"&&E.parentNode==R)return E;E=E.parentNode}}function U(R,E){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=R,this.data=E,this.picked=!1;var V=this,G=R.cm,Z=G.getInputField().ownerDocument,X=Z.defaultView||Z.parentWindow,z=this.hints=Z.createElement("ul");z.setAttribute("role","listbox"),z.setAttribute("aria-expanded","true"),z.id=this.id;var ue=R.cm.options.theme;z.className="CodeMirror-hints "+ue,this.selectedHint=E.selectedHint||0;for(var q=E.list,ne=0;ne<q.length;++ne){var ge=z.appendChild(Z.createElement("li")),me=q[ne],pe=v+(ne!=this.selectedHint?"":" "+m);me.className!=null&&(pe=me.className+" "+pe),ge.className=pe,ne==this.selectedHint&&ge.setAttribute("aria-selected","true"),ge.id=this.id+"-"+ne,ge.setAttribute("role","option"),me.render?me.render(ge,E,me):ge.appendChild(Z.createTextNode(me.displayText||L(me))),ge.hintId=ne}var se=R.options.container||Z.body,ie=G.cursorCoords(R.options.alignWithWord?E.from:null),Oe=ie.left,Pe=ie.bottom,Te=!0,Ce=0,Xe=0;if(se!==Z.body){var He=["absolute","relative","fixed"].indexOf(X.getComputedStyle(se).position)!==-1,Je=He?se:se.offsetParent,ut=Je.getBoundingClientRect(),ft=Z.body.getBoundingClientRect();Ce=ut.left-ft.left-Je.scrollLeft,Xe=ut.top-ft.top-Je.scrollTop}z.style.left=Oe-Ce+"px",z.style.top=Pe-Xe+"px";var yt=X.innerWidth||Math.max(Z.body.offsetWidth,Z.documentElement.offsetWidth),Qe=X.innerHeight||Math.max(Z.body.offsetHeight,Z.documentElement.offsetHeight);se.appendChild(z),G.getInputField().setAttribute("aria-autocomplete","list"),G.getInputField().setAttribute("aria-owns",this.id),G.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var nt=R.options.moveOnOverlap?z.getBoundingClientRect():new DOMRect,ct=R.options.paddingForScrollbar?z.scrollHeight>z.clientHeight+1:!1,dt;setTimeout(function(){dt=G.getScrollInfo()});var st=nt.bottom-Qe;if(st>0){var Ot=nt.bottom-nt.top,Et=ie.top-(ie.bottom-nt.top);if(Et-Ot>0)z.style.top=(Pe=ie.top-Ot-Xe)+"px",Te=!1;else if(Ot>Qe){z.style.height=Qe-5+"px",z.style.top=(Pe=ie.bottom-nt.top-Xe)+"px";var St=G.getCursor();E.from.ch!=St.ch&&(ie=G.cursorCoords(St),z.style.left=(Oe=ie.left-Ce)+"px",nt=z.getBoundingClientRect())}}var Ut=nt.right-yt;if(ct&&(Ut+=G.display.nativeBarWidth),Ut>0&&(nt.right-nt.left>yt&&(z.style.width=yt-5+"px",Ut-=nt.right-nt.left-yt),z.style.left=(Oe=ie.left-Ut-Ce)+"px"),ct)for(var Dt=z.firstChild;Dt;Dt=Dt.nextSibling)Dt.style.paddingRight=G.display.nativeBarWidth+"px";if(G.addKeyMap(this.keyMap=N(R,{moveFocus:function(It,ht){V.changeActive(V.selectedHint+It,ht)},setFocus:function(It){V.changeActive(It)},menuSize:function(){return V.screenAmount()},length:q.length,close:function(){R.close()},pick:function(){V.pick()},data:E})),R.options.closeOnUnfocus){var Nt;G.on("blur",this.onBlur=function(){Nt=setTimeout(function(){R.close()},100)}),G.on("focus",this.onFocus=function(){clearTimeout(Nt)})}G.on("scroll",this.onScroll=function(){var It=G.getScrollInfo(),ht=G.getWrapperElement().getBoundingClientRect();dt||(dt=G.getScrollInfo());var zt=Pe+dt.top-It.top,Kt=zt-(X.pageYOffset||(Z.documentElement||Z.body).scrollTop);if(Te||(Kt+=z.offsetHeight),Kt<=ht.top||Kt>=ht.bottom)return R.close();z.style.top=zt+"px",z.style.left=Oe+dt.left-It.left+"px"}),c.on(z,"dblclick",function(It){var ht=j(z,It.target||It.srcElement);ht&&ht.hintId!=null&&(V.changeActive(ht.hintId),V.pick())}),c.on(z,"click",function(It){var ht=j(z,It.target||It.srcElement);ht&&ht.hintId!=null&&(V.changeActive(ht.hintId),R.options.completeOnSingleClick&&V.pick())}),c.on(z,"mousedown",function(){setTimeout(function(){G.focus()},20)});var mt=this.getSelectedHintRange();return(mt.from!==0||mt.to!==0)&&this.scrollToActive(),c.signal(E,"select",q[this.selectedHint],z.childNodes[this.selectedHint]),!0}U.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var R=this.completion.cm.getInputField();R.removeAttribute("aria-activedescendant"),R.removeAttribute("aria-owns");var E=this.completion.cm;this.completion.options.closeOnUnfocus&&(E.off("blur",this.onBlur),E.off("focus",this.onFocus)),E.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var R=this;this.keyMap={Enter:function(){R.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(R,E){if(R>=this.data.list.length?R=E?this.data.list.length-1:0:R<0&&(R=E?0:this.data.list.length-1),this.selectedHint!=R){var V=this.hints.childNodes[this.selectedHint];V&&(V.className=V.className.replace(" "+m,""),V.removeAttribute("aria-selected")),V=this.hints.childNodes[this.selectedHint=R],V.className+=" "+m,V.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",V.id),this.scrollToActive(),c.signal(this.data,"select",this.data.list[this.selectedHint],V)}},scrollToActive:function(){var R=this.getSelectedHintRange(),E=this.hints.childNodes[R.from],V=this.hints.childNodes[R.to],G=this.hints.firstChild;E.offsetTop<this.hints.scrollTop?this.hints.scrollTop=E.offsetTop-G.offsetTop:V.offsetTop+V.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=V.offsetTop+V.offsetHeight-this.hints.clientHeight+G.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var R=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-R),to:Math.min(this.data.list.length-1,this.selectedHint+R)}}};function Q(R,E){if(!R.somethingSelected())return E;for(var V=[],G=0;G<E.length;G++)E[G].supportsSelection&&V.push(E[G]);return V}function K(R,E,V,G){if(R.async)R(E,G,V);else{var Z=R(E,V);Z&&Z.then?Z.then(G):G(Z)}}function M(R,E){var V=R.getHelpers(E,"hint"),G;if(V.length){var Z=function(X,z,ue){var q=Q(X,V);function ne(ge){if(ge==q.length)return z(null);K(q[ge],X,ue,function(me){me&&me.list.length>0?z(me):ne(ge+1)})}ne(0)};return Z.async=!0,Z.supportsSelection=!0,Z}else return(G=R.getHelper(R.getCursor(),"hintWords"))?function(X){return c.hint.fromList(X,{words:G})}:c.hint.anyword?function(X,z){return c.hint.anyword(X,z)}:function(){}}c.registerHelper("hint","auto",{resolve:M}),c.registerHelper("hint","fromList",function(R,E){var V=R.getCursor(),G=R.getTokenAt(V),Z,X=c.Pos(V.line,G.start),z=V;G.start<V.ch&&/\w/.test(G.string.charAt(V.ch-G.start-1))?Z=G.string.substr(0,V.ch-G.start):(Z="",X=V);for(var ue=[],q=0;q<E.words.length;q++){var ne=E.words[q];ne.slice(0,Z.length)==Z&&ue.push(ne)}if(ue.length)return{list:ue,from:X,to:z}}),c.commands.autocomplete=c.showHint;var Y={hint:c.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};c.defineOption("hintOptions",null)})},3256:(p,I,a)=>{(function(c){c(a(4631))})(function(c){"use strict";var v="CodeMirror-lint-markers",m="CodeMirror-lint-line-";function h(z,ue,q){var ne=document.createElement("div");ne.className="CodeMirror-lint-tooltip cm-s-"+z.options.theme,ne.appendChild(q.cloneNode(!0)),z.state.lint.options.selfContain?z.getWrapperElement().appendChild(ne):document.body.appendChild(ne);function ge(me){if(!ne.parentNode)return c.off(document,"mousemove",ge);ne.style.top=Math.max(0,me.clientY-ne.offsetHeight-5)+"px",ne.style.left=me.clientX+5+"px"}return c.on(document,"mousemove",ge),ge(ue),ne.style.opacity!=null&&(ne.style.opacity=1),ne}function b(z){z.parentNode&&z.parentNode.removeChild(z)}function C(z){!z.parentNode||(z.style.opacity==null&&b(z),z.style.opacity=0,setTimeout(function(){b(z)},600))}function S(z,ue,q,ne){var ge=h(z,ue,q);function me(){c.off(ne,"mouseout",me),ge&&(C(ge),ge=null)}var pe=setInterval(function(){if(ge)for(var se=ne;;se=se.parentNode){if(se&&se.nodeType==11&&(se=se.host),se==document.body)return;if(!se){me();break}}if(!ge)return clearInterval(pe)},400);c.on(ne,"mouseout",me)}function L(z,ue,q){this.marked=[],ue instanceof Function&&(ue={getAnnotations:ue}),(!ue||ue===!0)&&(ue={}),this.options={},this.linterOptions=ue.options||{};for(var ne in N)this.options[ne]=N[ne];for(var ne in ue)N.hasOwnProperty(ne)?ue[ne]!=null&&(this.options[ne]=ue[ne]):ue.options||(this.linterOptions[ne]=ue[ne]);this.timeout=null,this.hasGutter=q,this.onMouseOver=function(ge){X(z,ge)},this.waitingFor=0}var N={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function j(z){var ue=z.state.lint;ue.hasGutter&&z.clearGutter(v),ue.options.highlightLines&&U(z);for(var q=0;q<ue.marked.length;++q)ue.marked[q].clear();ue.marked.length=0}function U(z){z.eachLine(function(ue){var q=ue.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(ue.wrapClass);q&&z.removeLineClass(ue,"wrap",q[0])})}function Q(z,ue,q,ne,ge){var me=document.createElement("div"),pe=me;return me.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+q,ne&&(pe=me.appendChild(document.createElement("div")),pe.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),ge!=!1&&c.on(pe,"mouseover",function(se){S(z,se,ue,pe)}),me}function K(z,ue){return z=="error"?z:ue}function M(z){for(var ue=[],q=0;q<z.length;++q){var ne=z[q],ge=ne.from.line;(ue[ge]||(ue[ge]=[])).push(ne)}return ue}function Y(z){var ue=z.severity;ue||(ue="error");var q=document.createElement("div");return q.className="CodeMirror-lint-message CodeMirror-lint-message-"+ue,typeof z.messageHTML!="undefined"?q.innerHTML=z.messageHTML:q.appendChild(document.createTextNode(z.message)),q}function R(z,ue){var q=z.state.lint,ne=++q.waitingFor;function ge(){ne=-1,z.off("change",ge)}z.on("change",ge),ue(z.getValue(),function(me,pe){z.off("change",ge),q.waitingFor==ne&&(pe&&me instanceof c&&(me=pe),z.operation(function(){V(z,me)}))},q.linterOptions,z)}function E(z){var ue=z.state.lint;if(!!ue){var q=ue.options,ne=q.getAnnotations||z.getHelper(c.Pos(0,0),"lint");if(!!ne)if(q.async||ne.async)R(z,ne);else{var ge=ne(z.getValue(),ue.linterOptions,z);if(!ge)return;ge.then?ge.then(function(me){z.operation(function(){V(z,me)})}):z.operation(function(){V(z,ge)})}}}function V(z,ue){var q=z.state.lint;if(!!q){var ne=q.options;j(z);for(var ge=M(ue),me=0;me<ge.length;++me){var pe=ge[me];if(!!pe){var se=[];pe=pe.filter(function(Xe){return se.indexOf(Xe.message)>-1?!1:se.push(Xe.message)});for(var ie=null,Oe=q.hasGutter&&document.createDocumentFragment(),Pe=0;Pe<pe.length;++Pe){var Te=pe[Pe],Ce=Te.severity;Ce||(Ce="error"),ie=K(ie,Ce),ne.formatAnnotation&&(Te=ne.formatAnnotation(Te)),q.hasGutter&&Oe.appendChild(Y(Te)),Te.to&&q.marked.push(z.markText(Te.from,Te.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+Ce,__annotation:Te}))}q.hasGutter&&z.setGutterMarker(me,v,Q(z,Oe,ie,ge[me].length>1,ne.tooltips)),ne.highlightLines&&z.addLineClass(me,"wrap",m+ie)}}ne.onUpdateLinting&&ne.onUpdateLinting(ue,ge,z)}}function G(z){var ue=z.state.lint;!ue||(clearTimeout(ue.timeout),ue.timeout=setTimeout(function(){E(z)},ue.options.delay))}function Z(z,ue,q){for(var ne=q.target||q.srcElement,ge=document.createDocumentFragment(),me=0;me<ue.length;me++){var pe=ue[me];ge.appendChild(Y(pe))}S(z,q,ge,ne)}function X(z,ue){var q=ue.target||ue.srcElement;if(!!/\bCodeMirror-lint-mark-/.test(q.className)){for(var ne=q.getBoundingClientRect(),ge=(ne.left+ne.right)/2,me=(ne.top+ne.bottom)/2,pe=z.findMarksAt(z.coordsChar({left:ge,top:me},"client")),se=[],ie=0;ie<pe.length;++ie){var Oe=pe[ie].__annotation;Oe&&se.push(Oe)}se.length&&Z(z,se,ue)}}c.defineOption("lint",!1,function(z,ue,q){if(q&&q!=c.Init&&(j(z),z.state.lint.options.lintOnChange!==!1&&z.off("change",G),c.off(z.getWrapperElement(),"mouseover",z.state.lint.onMouseOver),clearTimeout(z.state.lint.timeout),delete z.state.lint),ue){for(var ne=z.getOption("gutters"),ge=!1,me=0;me<ne.length;++me)ne[me]==v&&(ge=!0);var pe=z.state.lint=new L(z,ue,ge);pe.options.lintOnChange&&z.on("change",G),pe.options.tooltips!=!1&&pe.options.tooltips!="gutter"&&c.on(z.getWrapperElement(),"mouseover",pe.onMouseOver),E(z)}}),c.defineExtension("performLint",function(){E(this)})})},32095:(p,I,a)=>{(function(c){c(a(4631))})(function(c){"use strict";var v=c.Pos;function m(E){var V=E.flags;return V!=null?V:(E.ignoreCase?"i":"")+(E.global?"g":"")+(E.multiline?"m":"")}function h(E,V){for(var G=m(E),Z=G,X=0;X<V.length;X++)Z.indexOf(V.charAt(X))==-1&&(Z+=V.charAt(X));return G==Z?E:new RegExp(E.source,Z)}function b(E){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(E.source)}function C(E,V,G){V=h(V,"g");for(var Z=G.line,X=G.ch,z=E.lastLine();Z<=z;Z++,X=0){V.lastIndex=X;var ue=E.getLine(Z),q=V.exec(ue);if(q)return{from:v(Z,q.index),to:v(Z,q.index+q[0].length),match:q}}}function S(E,V,G){if(!b(V))return C(E,V,G);V=h(V,"gm");for(var Z,X=1,z=G.line,ue=E.lastLine();z<=ue;){for(var q=0;q<X&&!(z>ue);q++){var ne=E.getLine(z++);Z=Z==null?ne:Z+`
8
8
  `+ne}X=X*2,V.lastIndex=G.ch;var ge=V.exec(Z);if(ge){var me=Z.slice(0,ge.index).split(`
9
- `),he=ge[0].split(`
10
- `),le=G.line+me.length-1,ie=me[me.length-1].length;return{from:v(le,ie),to:v(le+he.length-1,he.length==1?ie+he[0].length:he[he.length-1].length),match:ge}}}}function L(E,V,G){for(var Z,X=0;X<=E.length;){V.lastIndex=X;var z=V.exec(E);if(!z)break;var ue=z.index+z[0].length;if(ue>E.length-G)break;(!Z||ue>Z.index+Z[0].length)&&(Z=z),X=z.index+1}return Z}function N(E,V,G){V=h(V,"g");for(var Z=G.line,X=G.ch,z=E.firstLine();Z>=z;Z--,X=-1){var ue=E.getLine(Z),q=L(ue,V,X<0?0:ue.length-X);if(q)return{from:v(Z,q.index),to:v(Z,q.index+q[0].length),match:q}}}function j(E,V,G){if(!b(V))return N(E,V,G);V=h(V,"gm");for(var Z,X=1,z=E.getLine(G.line).length-G.ch,ue=G.line,q=E.firstLine();ue>=q;){for(var ne=0;ne<X&&ue>=q;ne++){var ge=E.getLine(ue--);Z=Z==null?ge:ge+`
11
- `+Z}X*=2;var me=L(Z,V,z);if(me){var he=Z.slice(0,me.index).split(`
12
- `),le=me[0].split(`
13
- `),ie=ue+he.length,Oe=he[he.length-1].length;return{from:v(ie,Oe),to:v(ie+le.length-1,le.length==1?Oe+le[0].length:le[le.length-1].length),match:me}}}}var U,Q;String.prototype.normalize?(U=function(E){return E.normalize("NFD").toLowerCase()},Q=function(E){return E.normalize("NFD")}):(U=function(E){return E.toLowerCase()},Q=function(E){return E});function K(E,V,G,Z){if(E.length==V.length)return G;for(var X=0,z=G+Math.max(0,E.length-V.length);;){if(X==z)return X;var ue=X+z>>1,q=Z(E.slice(0,ue)).length;if(q==G)return ue;q>G?z=ue:X=ue+1}}function M(E,V,G,Z){if(!V.length)return null;var X=Z?U:Q,z=X(V).split(/\r|\n\r?/);e:for(var ue=G.line,q=G.ch,ne=E.lastLine()+1-z.length;ue<=ne;ue++,q=0){var ge=E.getLine(ue).slice(q),me=X(ge);if(z.length==1){var he=me.indexOf(z[0]);if(he==-1)continue e;var G=K(ge,me,he,X)+q;return{from:v(ue,K(ge,me,he,X)+q),to:v(ue,K(ge,me,he+z[0].length,X)+q)}}else{var le=me.length-z[0].length;if(me.slice(le)!=z[0])continue e;for(var ie=1;ie<z.length-1;ie++)if(X(E.getLine(ue+ie))!=z[ie])continue e;var Oe=E.getLine(ue+z.length-1),Pe=X(Oe),Te=z[z.length-1];if(Pe.slice(0,Te.length)!=Te)continue e;return{from:v(ue,K(ge,me,le,X)+q),to:v(ue+z.length-1,K(Oe,Pe,Te.length,X))}}}}function Y(E,V,G,Z){if(!V.length)return null;var X=Z?U:Q,z=X(V).split(/\r|\n\r?/);e:for(var ue=G.line,q=G.ch,ne=E.firstLine()-1+z.length;ue>=ne;ue--,q=-1){var ge=E.getLine(ue);q>-1&&(ge=ge.slice(0,q));var me=X(ge);if(z.length==1){var he=me.lastIndexOf(z[0]);if(he==-1)continue e;return{from:v(ue,K(ge,me,he,X)),to:v(ue,K(ge,me,he+z[0].length,X))}}else{var le=z[z.length-1];if(me.slice(0,le.length)!=le)continue e;for(var ie=1,G=ue-z.length+1;ie<z.length-1;ie++)if(X(E.getLine(G+ie))!=z[ie])continue e;var Oe=E.getLine(ue+1-z.length),Pe=X(Oe);if(Pe.slice(Pe.length-z[0].length)!=z[0])continue e;return{from:v(ue+1-z.length,K(Oe,Pe,Oe.length-z[0].length,X)),to:v(ue,K(ge,me,le.length,X))}}}}function R(E,V,G,Z){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=E,G=G?E.clipPos(G):v(0,0),this.pos={from:G,to:G};var X;typeof Z=="object"?X=Z.caseFold:(X=Z,Z=null),typeof V=="string"?(X==null&&(X=!1),this.matches=function(z,ue){return(z?Y:M)(E,V,ue,X)}):(V=h(V,"gm"),!Z||Z.multiline!==!1?this.matches=function(z,ue){return(z?j:S)(E,V,ue)}:this.matches=function(z,ue){return(z?N:C)(E,V,ue)})}R.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(E){var V=this.doc.clipPos(E?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(V=v(V.line,V.ch),E?(V.ch--,V.ch<0&&(V.line--,V.ch=(this.doc.getLine(V.line)||"").length)):(V.ch++,V.ch>(this.doc.getLine(V.line)||"").length&&(V.ch=0,V.line++)),c.cmpPos(V,this.doc.clipPos(V))!=0))return this.atOccurrence=!1;var G=this.matches(E,V);if(this.afterEmptyMatch=G&&c.cmpPos(G.from,G.to)==0,G)return this.pos=G,this.atOccurrence=!0,this.pos.match||!0;var Z=v(E?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:Z,to:Z},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(E,V){if(!!this.atOccurrence){var G=c.splitLines(E);this.doc.replaceRange(G,this.pos.from,this.pos.to,V),this.pos.to=v(this.pos.from.line+G.length-1,G[G.length-1].length+(G.length==1?this.pos.from.ch:0))}}},c.defineExtension("getSearchCursor",function(E,V,G){return new R(this.doc,E,V,G)}),c.defineDocExtension("getSearchCursor",function(E,V,G){return new R(this,E,V,G)}),c.defineExtension("selectMatches",function(E,V){for(var G=[],Z=this.getSearchCursor(E,this.getCursor("from"),V);Z.findNext()&&!(c.cmpPos(Z.to(),this.getCursor("to"))>0);)G.push({anchor:Z.from(),head:Z.to()});G.length&&this.setSelections(G,0)})})},4631:function(p){(function(I,a){p.exports=a()})(this,function(){"use strict";var I=navigator.userAgent,a=navigator.platform,c=/gecko\/\d/i.test(I),v=/MSIE \d/.test(I),m=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(I),h=/Edge\/(\d+)/.exec(I),b=v||m||h,C=b&&(v?document.documentMode||6:+(h||m)[1]),S=!h&&/WebKit\//.test(I),L=S&&/Qt\/\d+\.\d+/.test(I),N=!h&&/Chrome\//.test(I),j=/Opera\//.test(I),U=/Apple Computer/.test(navigator.vendor),Q=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(I),K=/PhantomJS/.test(I),M=U&&(/Mobile\/\w+/.test(I)||navigator.maxTouchPoints>2),Y=/Android/.test(I),R=M||Y||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(I),E=M||/Mac/.test(a),V=/\bCrOS\b/.test(I),G=/win/i.test(a),Z=j&&I.match(/Version\/(\d*\.\d*)/);Z&&(Z=Number(Z[1])),Z&&Z>=15&&(j=!1,S=!0);var X=E&&(L||j&&(Z==null||Z<12.11)),z=c||b&&C>=9;function ue(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var q=function(e,n){var u=e.className,l=ue(n).exec(u);if(l){var f=u.slice(l.index+l[0].length);e.className=u.slice(0,l.index)+(f?l[1]+f:"")}};function ne(e){for(var n=e.childNodes.length;n>0;--n)e.removeChild(e.firstChild);return e}function ge(e,n){return ne(e).appendChild(n)}function me(e,n,u,l){var f=document.createElement(e);if(u&&(f.className=u),l&&(f.style.cssText=l),typeof n=="string")f.appendChild(document.createTextNode(n));else if(n)for(var y=0;y<n.length;++y)f.appendChild(n[y]);return f}function he(e,n,u,l){var f=me(e,n,u,l);return f.setAttribute("role","presentation"),f}var le;document.createRange?le=function(e,n,u,l){var f=document.createRange();return f.setEnd(l||e,u),f.setStart(e,n),f}:le=function(e,n,u){var l=document.body.createTextRange();try{l.moveToElementText(e.parentNode)}catch(f){return l}return l.collapse(!0),l.moveEnd("character",u),l.moveStart("character",n),l};function ie(e,n){if(n.nodeType==3&&(n=n.parentNode),e.contains)return e.contains(n);do if(n.nodeType==11&&(n=n.host),n==e)return!0;while(n=n.parentNode)}function Oe(){var e;try{e=document.activeElement}catch(n){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function Pe(e,n){var u=e.className;ue(n).test(u)||(e.className+=(u?" ":"")+n)}function Te(e,n){for(var u=e.split(" "),l=0;l<u.length;l++)u[l]&&!ue(u[l]).test(n)&&(n+=" "+u[l]);return n}var Ce=function(e){e.select()};M?Ce=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:b&&(Ce=function(e){try{e.select()}catch(n){}});function Xe(e){var n=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,n)}}function He(e,n,u){n||(n={});for(var l in e)e.hasOwnProperty(l)&&(u!==!1||!n.hasOwnProperty(l))&&(n[l]=e[l]);return n}function Je(e,n,u,l,f){n==null&&(n=e.search(/[^\s\u00a0]/),n==-1&&(n=e.length));for(var y=l||0,P=f||0;;){var B=e.indexOf(" ",y);if(B<0||B>=n)return P+(n-y);P+=B-y,P+=u-P%u,y=B+1}}var ut=function(){this.id=null,this.f=null,this.time=0,this.handler=Xe(this.onTimeout,this)};ut.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ut.prototype.set=function(e,n){this.f=n;var u=+new Date+e;(!this.id||u<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=u)};function ft(e,n){for(var u=0;u<e.length;++u)if(e[u]==n)return u;return-1}var yt=50,Qe={toString:function(){return"CodeMirror.Pass"}},nt={scroll:!1},ct={origin:"*mouse"},dt={origin:"+move"};function st(e,n,u){for(var l=0,f=0;;){var y=e.indexOf(" ",l);y==-1&&(y=e.length);var P=y-l;if(y==e.length||f+P>=n)return l+Math.min(P,n-f);if(f+=y-l,f+=u-f%u,l=y+1,f>=n)return l}}var Ot=[""];function Et(e){for(;Ot.length<=e;)Ot.push(St(Ot)+" ");return Ot[e]}function St(e){return e[e.length-1]}function jt(e,n){for(var u=[],l=0;l<e.length;l++)u[l]=n(e[l],l);return u}function Dt(e,n,u){for(var l=0,f=u(n);l<e.length&&u(e[l])<=f;)l++;e.splice(l,0,n)}function Nt(){}function mt(e,n){var u;return Object.create?u=Object.create(e):(Nt.prototype=e,u=new Nt),n&&He(n,u),u}var It=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ht(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||It.test(e))}function zt(e,n){return n?n.source.indexOf("\\w")>-1&&ht(e)?!0:n.test(e):ht(e)}function Kt(e){for(var n in e)if(e.hasOwnProperty(n)&&e[n])return!1;return!0}var sr=/[\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(e){return e.charCodeAt(0)>=768&&sr.test(e)}function Wt(e,n,u){for(;(u<0?n>0:n<e.length)&&Mt(e.charAt(n));)n+=u;return n}function Bt(e,n,u){for(var l=n>u?-1:1;;){if(n==u)return n;var f=(n+u)/2,y=l<0?Math.ceil(f):Math.floor(f);if(y==n)return e(y)?n:u;e(y)?u=y:n=y+l}}function k(e,n,u,l){if(!e)return l(n,u,"ltr",0);for(var f=!1,y=0;y<e.length;++y){var P=e[y];(P.from<u&&P.to>n||n==u&&P.to==n)&&(l(Math.max(P.from,n),Math.min(P.to,u),P.level==1?"rtl":"ltr",y),f=!0)}f||l(n,u,"ltr")}var Be=null;function $(e,n,u){var l;Be=null;for(var f=0;f<e.length;++f){var y=e[f];if(y.from<n&&y.to>n)return f;y.to==n&&(y.from!=y.to&&u=="before"?l=f:Be=f),y.from==n&&(y.from!=y.to&&u!="before"?l=f:Be=f)}return l!=null?l:Be}var O=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",n="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function u(J){return J<=247?e.charAt(J):1424<=J&&J<=1524?"R":1536<=J&&J<=1785?n.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]/,y=/[LRr]/,P=/[Lb1n]/,B=/[1n]/;function W(J,ye,Se){this.level=J,this.from=ye,this.to=Se}return function(J,ye){var Se=ye=="ltr"?"L":"R";if(J.length==0||ye=="ltr"&&!l.test(J))return!1;for(var Ie=J.length,Ee=[],Ue=0;Ue<Ie;++Ue)Ee.push(u(J.charCodeAt(Ue)));for(var Ye=0,et=Se;Ye<Ie;++Ye){var at=Ee[Ye];at=="m"?Ee[Ye]=et:et=at}for(var lt=0,it=Se;lt<Ie;++lt){var pt=Ee[lt];pt=="1"&&it=="r"?Ee[lt]="n":y.test(pt)&&(it=pt,pt=="r"&&(Ee[lt]="R"))}for(var wt=1,$e=Ee[0];wt<Ie-1;++wt){var Tt=Ee[wt];Tt=="+"&&$e=="1"&&Ee[wt+1]=="1"?Ee[wt]="1":Tt==","&&$e==Ee[wt+1]&&($e=="1"||$e=="n")&&(Ee[wt]=$e),$e=Tt}for(var nr=0;nr<Ie;++nr){var br=Ee[nr];if(br==",")Ee[nr]="N";else if(br=="%"){var Zt=void 0;for(Zt=nr+1;Zt<Ie&&Ee[Zt]=="%";++Zt);for(var Tn=nr&&Ee[nr-1]=="!"||Zt<Ie&&Ee[Zt]=="1"?"1":"N",mn=nr;mn<Zt;++mn)Ee[mn]=Tn;nr=Zt-1}}for(var Rr=0,dn=Se;Rr<Ie;++Rr){var _r=Ee[Rr];dn=="L"&&_r=="1"?Ee[Rr]="L":y.test(_r)&&(dn=_r)}for(var jr=0;jr<Ie;++jr)if(f.test(Ee[jr])){var Tr=void 0;for(Tr=jr+1;Tr<Ie&&f.test(Ee[Tr]);++Tr);for(var vr=(jr?Ee[jr-1]:Se)=="L",pn=(Tr<Ie?Ee[Tr]:Se)=="L",da=vr==pn?vr?"L":"R":Se,bi=jr;bi<Tr;++bi)Ee[bi]=da;jr=Tr-1}for(var an=[],li,Ur=0;Ur<Ie;)if(P.test(Ee[Ur])){var Dl=Ur;for(++Ur;Ur<Ie&&P.test(Ee[Ur]);++Ur);an.push(new W(0,Dl,Ur))}else{var Ln=Ur,Vr=an.length,La=ye=="rtl"?1:0;for(++Ur;Ur<Ie&&Ee[Ur]!="L";++Ur);for(var Wr=Ln;Wr<Ur;)if(B.test(Ee[Wr])){Ln<Wr&&(an.splice(Vr,0,new W(1,Ln,Wr)),Vr+=La);var Ra=Wr;for(++Wr;Wr<Ur&&B.test(Ee[Wr]);++Wr);an.splice(Vr,0,new W(2,Ra,Wr)),Vr+=La,Ln=Wr}else++Wr;Ln<Ur&&an.splice(Vr,0,new W(1,Ln,Ur))}return ye=="ltr"&&(an[0].level==1&&(li=J.match(/^\s+/))&&(an[0].from=li[0].length,an.unshift(new W(0,0,li[0].length))),St(an).level==1&&(li=J.match(/\s+$/))&&(St(an).to-=li[0].length,an.push(new W(0,Ie-li[0].length,Ie)))),ye=="rtl"?an.reverse():an}}();function T(e,n){var u=e.order;return u==null&&(u=e.order=O(e.text,n)),u}var oe=[],D=function(e,n,u){if(e.addEventListener)e.addEventListener(n,u,!1);else if(e.attachEvent)e.attachEvent("on"+n,u);else{var l=e._handlers||(e._handlers={});l[n]=(l[n]||oe).concat(u)}};function _(e,n){return e._handlers&&e._handlers[n]||oe}function fe(e,n,u){if(e.removeEventListener)e.removeEventListener(n,u,!1);else if(e.detachEvent)e.detachEvent("on"+n,u);else{var l=e._handlers,f=l&&l[n];if(f){var y=ft(f,u);y>-1&&(l[n]=f.slice(0,y).concat(f.slice(y+1)))}}}function te(e,n){var u=_(e,n);if(!!u.length)for(var l=Array.prototype.slice.call(arguments,2),f=0;f<u.length;++f)u[f].apply(null,l)}function ce(e,n,u){return typeof n=="string"&&(n={type:n,preventDefault:function(){this.defaultPrevented=!0}}),te(e,u||n.type,e,n),vt(n)||n.codemirrorIgnore}function be(e){var n=e._handlers&&e._handlers.cursorActivity;if(!!n)for(var u=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),l=0;l<n.length;++l)ft(u,n[l])==-1&&u.push(n[l])}function Le(e,n){return _(e,n).length>0}function Re(e){e.prototype.on=function(n,u){D(this,n,u)},e.prototype.off=function(n,u){fe(this,n,u)}}function We(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ot(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function vt(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Ft(e){We(e),ot(e)}function At(e){return e.target||e.srcElement}function bn(e){var n=e.which;return n==null&&(e.button&1?n=1:e.button&2?n=3:e.button&4&&(n=2)),E&&e.ctrlKey&&n==1&&(n=3),n}var zr=function(){if(b&&C<9)return!1;var e=me("div");return"draggable"in e||"dragDrop"in e}(),Fr;function Ei(e){if(Fr==null){var n=me("span","\u200B");ge(e,me("span",[n,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Fr=n.offsetWidth<=1&&n.offsetHeight>2&&!(b&&C<8))}var u=Fr?me("span","\u200B"):me("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return u.setAttribute("cm-text",""),u}var Qr;function $i(e){if(Qr!=null)return Qr;var n=ge(e,document.createTextNode("A\u062EA")),u=le(n,0,1).getBoundingClientRect(),l=le(n,1,2).getBoundingClientRect();return ne(e),!u||u.left==u.right?!1:Qr=l.right-u.right<3}var zn=`
9
+ `),pe=ge[0].split(`
10
+ `),se=G.line+me.length-1,ie=me[me.length-1].length;return{from:v(se,ie),to:v(se+pe.length-1,pe.length==1?ie+pe[0].length:pe[pe.length-1].length),match:ge}}}}function L(E,V,G){for(var Z,X=0;X<=E.length;){V.lastIndex=X;var z=V.exec(E);if(!z)break;var ue=z.index+z[0].length;if(ue>E.length-G)break;(!Z||ue>Z.index+Z[0].length)&&(Z=z),X=z.index+1}return Z}function N(E,V,G){V=h(V,"g");for(var Z=G.line,X=G.ch,z=E.firstLine();Z>=z;Z--,X=-1){var ue=E.getLine(Z),q=L(ue,V,X<0?0:ue.length-X);if(q)return{from:v(Z,q.index),to:v(Z,q.index+q[0].length),match:q}}}function j(E,V,G){if(!b(V))return N(E,V,G);V=h(V,"gm");for(var Z,X=1,z=E.getLine(G.line).length-G.ch,ue=G.line,q=E.firstLine();ue>=q;){for(var ne=0;ne<X&&ue>=q;ne++){var ge=E.getLine(ue--);Z=Z==null?ge:ge+`
11
+ `+Z}X*=2;var me=L(Z,V,z);if(me){var pe=Z.slice(0,me.index).split(`
12
+ `),se=me[0].split(`
13
+ `),ie=ue+pe.length,Oe=pe[pe.length-1].length;return{from:v(ie,Oe),to:v(ie+se.length-1,se.length==1?Oe+se[0].length:se[se.length-1].length),match:me}}}}var U,Q;String.prototype.normalize?(U=function(E){return E.normalize("NFD").toLowerCase()},Q=function(E){return E.normalize("NFD")}):(U=function(E){return E.toLowerCase()},Q=function(E){return E});function K(E,V,G,Z){if(E.length==V.length)return G;for(var X=0,z=G+Math.max(0,E.length-V.length);;){if(X==z)return X;var ue=X+z>>1,q=Z(E.slice(0,ue)).length;if(q==G)return ue;q>G?z=ue:X=ue+1}}function M(E,V,G,Z){if(!V.length)return null;var X=Z?U:Q,z=X(V).split(/\r|\n\r?/);e:for(var ue=G.line,q=G.ch,ne=E.lastLine()+1-z.length;ue<=ne;ue++,q=0){var ge=E.getLine(ue).slice(q),me=X(ge);if(z.length==1){var pe=me.indexOf(z[0]);if(pe==-1)continue e;var G=K(ge,me,pe,X)+q;return{from:v(ue,K(ge,me,pe,X)+q),to:v(ue,K(ge,me,pe+z[0].length,X)+q)}}else{var se=me.length-z[0].length;if(me.slice(se)!=z[0])continue e;for(var ie=1;ie<z.length-1;ie++)if(X(E.getLine(ue+ie))!=z[ie])continue e;var Oe=E.getLine(ue+z.length-1),Pe=X(Oe),Te=z[z.length-1];if(Pe.slice(0,Te.length)!=Te)continue e;return{from:v(ue,K(ge,me,se,X)+q),to:v(ue+z.length-1,K(Oe,Pe,Te.length,X))}}}}function Y(E,V,G,Z){if(!V.length)return null;var X=Z?U:Q,z=X(V).split(/\r|\n\r?/);e:for(var ue=G.line,q=G.ch,ne=E.firstLine()-1+z.length;ue>=ne;ue--,q=-1){var ge=E.getLine(ue);q>-1&&(ge=ge.slice(0,q));var me=X(ge);if(z.length==1){var pe=me.lastIndexOf(z[0]);if(pe==-1)continue e;return{from:v(ue,K(ge,me,pe,X)),to:v(ue,K(ge,me,pe+z[0].length,X))}}else{var se=z[z.length-1];if(me.slice(0,se.length)!=se)continue e;for(var ie=1,G=ue-z.length+1;ie<z.length-1;ie++)if(X(E.getLine(G+ie))!=z[ie])continue e;var Oe=E.getLine(ue+1-z.length),Pe=X(Oe);if(Pe.slice(Pe.length-z[0].length)!=z[0])continue e;return{from:v(ue+1-z.length,K(Oe,Pe,Oe.length-z[0].length,X)),to:v(ue,K(ge,me,se.length,X))}}}}function R(E,V,G,Z){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=E,G=G?E.clipPos(G):v(0,0),this.pos={from:G,to:G};var X;typeof Z=="object"?X=Z.caseFold:(X=Z,Z=null),typeof V=="string"?(X==null&&(X=!1),this.matches=function(z,ue){return(z?Y:M)(E,V,ue,X)}):(V=h(V,"gm"),!Z||Z.multiline!==!1?this.matches=function(z,ue){return(z?j:S)(E,V,ue)}:this.matches=function(z,ue){return(z?N:C)(E,V,ue)})}R.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(E){var V=this.doc.clipPos(E?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(V=v(V.line,V.ch),E?(V.ch--,V.ch<0&&(V.line--,V.ch=(this.doc.getLine(V.line)||"").length)):(V.ch++,V.ch>(this.doc.getLine(V.line)||"").length&&(V.ch=0,V.line++)),c.cmpPos(V,this.doc.clipPos(V))!=0))return this.atOccurrence=!1;var G=this.matches(E,V);if(this.afterEmptyMatch=G&&c.cmpPos(G.from,G.to)==0,G)return this.pos=G,this.atOccurrence=!0,this.pos.match||!0;var Z=v(E?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:Z,to:Z},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(E,V){if(!!this.atOccurrence){var G=c.splitLines(E);this.doc.replaceRange(G,this.pos.from,this.pos.to,V),this.pos.to=v(this.pos.from.line+G.length-1,G[G.length-1].length+(G.length==1?this.pos.from.ch:0))}}},c.defineExtension("getSearchCursor",function(E,V,G){return new R(this.doc,E,V,G)}),c.defineDocExtension("getSearchCursor",function(E,V,G){return new R(this,E,V,G)}),c.defineExtension("selectMatches",function(E,V){for(var G=[],Z=this.getSearchCursor(E,this.getCursor("from"),V);Z.findNext()&&!(c.cmpPos(Z.to(),this.getCursor("to"))>0);)G.push({anchor:Z.from(),head:Z.to()});G.length&&this.setSelections(G,0)})})},4631:function(p){(function(I,a){p.exports=a()})(this,function(){"use strict";var I=navigator.userAgent,a=navigator.platform,c=/gecko\/\d/i.test(I),v=/MSIE \d/.test(I),m=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(I),h=/Edge\/(\d+)/.exec(I),b=v||m||h,C=b&&(v?document.documentMode||6:+(h||m)[1]),S=!h&&/WebKit\//.test(I),L=S&&/Qt\/\d+\.\d+/.test(I),N=!h&&/Chrome\//.test(I),j=/Opera\//.test(I),U=/Apple Computer/.test(navigator.vendor),Q=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(I),K=/PhantomJS/.test(I),M=U&&(/Mobile\/\w+/.test(I)||navigator.maxTouchPoints>2),Y=/Android/.test(I),R=M||Y||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(I),E=M||/Mac/.test(a),V=/\bCrOS\b/.test(I),G=/win/i.test(a),Z=j&&I.match(/Version\/(\d*\.\d*)/);Z&&(Z=Number(Z[1])),Z&&Z>=15&&(j=!1,S=!0);var X=E&&(L||j&&(Z==null||Z<12.11)),z=c||b&&C>=9;function ue(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var q=function(e,n){var u=e.className,l=ue(n).exec(u);if(l){var f=u.slice(l.index+l[0].length);e.className=u.slice(0,l.index)+(f?l[1]+f:"")}};function ne(e){for(var n=e.childNodes.length;n>0;--n)e.removeChild(e.firstChild);return e}function ge(e,n){return ne(e).appendChild(n)}function me(e,n,u,l){var f=document.createElement(e);if(u&&(f.className=u),l&&(f.style.cssText=l),typeof n=="string")f.appendChild(document.createTextNode(n));else if(n)for(var g=0;g<n.length;++g)f.appendChild(n[g]);return f}function pe(e,n,u,l){var f=me(e,n,u,l);return f.setAttribute("role","presentation"),f}var se;document.createRange?se=function(e,n,u,l){var f=document.createRange();return f.setEnd(l||e,u),f.setStart(e,n),f}:se=function(e,n,u){var l=document.body.createTextRange();try{l.moveToElementText(e.parentNode)}catch(f){return l}return l.collapse(!0),l.moveEnd("character",u),l.moveStart("character",n),l};function ie(e,n){if(n.nodeType==3&&(n=n.parentNode),e.contains)return e.contains(n);do if(n.nodeType==11&&(n=n.host),n==e)return!0;while(n=n.parentNode)}function Oe(){var e;try{e=document.activeElement}catch(n){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function Pe(e,n){var u=e.className;ue(n).test(u)||(e.className+=(u?" ":"")+n)}function Te(e,n){for(var u=e.split(" "),l=0;l<u.length;l++)u[l]&&!ue(u[l]).test(n)&&(n+=" "+u[l]);return n}var Ce=function(e){e.select()};M?Ce=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:b&&(Ce=function(e){try{e.select()}catch(n){}});function Xe(e){var n=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,n)}}function He(e,n,u){n||(n={});for(var l in e)e.hasOwnProperty(l)&&(u!==!1||!n.hasOwnProperty(l))&&(n[l]=e[l]);return n}function Je(e,n,u,l,f){n==null&&(n=e.search(/[^\s\u00a0]/),n==-1&&(n=e.length));for(var g=l||0,P=f||0;;){var B=e.indexOf(" ",g);if(B<0||B>=n)return P+(n-g);P+=B-g,P+=u-P%u,g=B+1}}var ut=function(){this.id=null,this.f=null,this.time=0,this.handler=Xe(this.onTimeout,this)};ut.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ut.prototype.set=function(e,n){this.f=n;var u=+new Date+e;(!this.id||u<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=u)};function ft(e,n){for(var u=0;u<e.length;++u)if(e[u]==n)return u;return-1}var yt=50,Qe={toString:function(){return"CodeMirror.Pass"}},nt={scroll:!1},ct={origin:"*mouse"},dt={origin:"+move"};function st(e,n,u){for(var l=0,f=0;;){var g=e.indexOf(" ",l);g==-1&&(g=e.length);var P=g-l;if(g==e.length||f+P>=n)return l+Math.min(P,n-f);if(f+=g-l,f+=u-f%u,l=g+1,f>=n)return l}}var Ot=[""];function Et(e){for(;Ot.length<=e;)Ot.push(St(Ot)+" ");return Ot[e]}function St(e){return e[e.length-1]}function Ut(e,n){for(var u=[],l=0;l<e.length;l++)u[l]=n(e[l],l);return u}function Dt(e,n,u){for(var l=0,f=u(n);l<e.length&&u(e[l])<=f;)l++;e.splice(l,0,n)}function Nt(){}function mt(e,n){var u;return Object.create?u=Object.create(e):(Nt.prototype=e,u=new Nt),n&&He(n,u),u}var It=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ht(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||It.test(e))}function zt(e,n){return n?n.source.indexOf("\\w")>-1&&ht(e)?!0:n.test(e):ht(e)}function Kt(e){for(var n in e)if(e.hasOwnProperty(n)&&e[n])return!1;return!0}var sr=/[\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(e){return e.charCodeAt(0)>=768&&sr.test(e)}function Wt(e,n,u){for(;(u<0?n>0:n<e.length)&&Mt(e.charAt(n));)n+=u;return n}function Bt(e,n,u){for(var l=n>u?-1:1;;){if(n==u)return n;var f=(n+u)/2,g=l<0?Math.ceil(f):Math.floor(f);if(g==n)return e(g)?n:u;e(g)?u=g:n=g+l}}function k(e,n,u,l){if(!e)return l(n,u,"ltr",0);for(var f=!1,g=0;g<e.length;++g){var P=e[g];(P.from<u&&P.to>n||n==u&&P.to==n)&&(l(Math.max(P.from,n),Math.min(P.to,u),P.level==1?"rtl":"ltr",g),f=!0)}f||l(n,u,"ltr")}var Be=null;function $(e,n,u){var l;Be=null;for(var f=0;f<e.length;++f){var g=e[f];if(g.from<n&&g.to>n)return f;g.to==n&&(g.from!=g.to&&u=="before"?l=f:Be=f),g.from==n&&(g.from!=g.to&&u!="before"?l=f:Be=f)}return l!=null?l:Be}var O=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",n="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function u(J){return J<=247?e.charAt(J):1424<=J&&J<=1524?"R":1536<=J&&J<=1785?n.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]/,g=/[LRr]/,P=/[Lb1n]/,B=/[1n]/;function H(J,ye,Se){this.level=J,this.from=ye,this.to=Se}return function(J,ye){var Se=ye=="ltr"?"L":"R";if(J.length==0||ye=="ltr"&&!l.test(J))return!1;for(var Ie=J.length,Ee=[],Ue=0;Ue<Ie;++Ue)Ee.push(u(J.charCodeAt(Ue)));for(var Ye=0,et=Se;Ye<Ie;++Ye){var at=Ee[Ye];at=="m"?Ee[Ye]=et:et=at}for(var lt=0,it=Se;lt<Ie;++lt){var pt=Ee[lt];pt=="1"&&it=="r"?Ee[lt]="n":g.test(pt)&&(it=pt,pt=="r"&&(Ee[lt]="R"))}for(var wt=1,$e=Ee[0];wt<Ie-1;++wt){var Tt=Ee[wt];Tt=="+"&&$e=="1"&&Ee[wt+1]=="1"?Ee[wt]="1":Tt==","&&$e==Ee[wt+1]&&($e=="1"||$e=="n")&&(Ee[wt]=$e),$e=Tt}for(var nr=0;nr<Ie;++nr){var br=Ee[nr];if(br==",")Ee[nr]="N";else if(br=="%"){var Zt=void 0;for(Zt=nr+1;Zt<Ie&&Ee[Zt]=="%";++Zt);for(var Tn=nr&&Ee[nr-1]=="!"||Zt<Ie&&Ee[Zt]=="1"?"1":"N",mn=nr;mn<Zt;++mn)Ee[mn]=Tn;nr=Zt-1}}for(var Rr=0,dn=Se;Rr<Ie;++Rr){var _r=Ee[Rr];dn=="L"&&_r=="1"?Ee[Rr]="L":g.test(_r)&&(dn=_r)}for(var jr=0;jr<Ie;++jr)if(f.test(Ee[jr])){var Tr=void 0;for(Tr=jr+1;Tr<Ie&&f.test(Ee[Tr]);++Tr);for(var gr=(jr?Ee[jr-1]:Se)=="L",pn=(Tr<Ie?Ee[Tr]:Se)=="L",da=gr==pn?gr?"L":"R":Se,bi=jr;bi<Tr;++bi)Ee[bi]=da;jr=Tr-1}for(var an=[],li,Ur=0;Ur<Ie;)if(P.test(Ee[Ur])){var Dl=Ur;for(++Ur;Ur<Ie&&P.test(Ee[Ur]);++Ur);an.push(new H(0,Dl,Ur))}else{var Ln=Ur,Vr=an.length,La=ye=="rtl"?1:0;for(++Ur;Ur<Ie&&Ee[Ur]!="L";++Ur);for(var Wr=Ln;Wr<Ur;)if(B.test(Ee[Wr])){Ln<Wr&&(an.splice(Vr,0,new H(1,Ln,Wr)),Vr+=La);var Ra=Wr;for(++Wr;Wr<Ur&&B.test(Ee[Wr]);++Wr);an.splice(Vr,0,new H(2,Ra,Wr)),Vr+=La,Ln=Wr}else++Wr;Ln<Ur&&an.splice(Vr,0,new H(1,Ln,Ur))}return ye=="ltr"&&(an[0].level==1&&(li=J.match(/^\s+/))&&(an[0].from=li[0].length,an.unshift(new H(0,0,li[0].length))),St(an).level==1&&(li=J.match(/\s+$/))&&(St(an).to-=li[0].length,an.push(new H(0,Ie-li[0].length,Ie)))),ye=="rtl"?an.reverse():an}}();function T(e,n){var u=e.order;return u==null&&(u=e.order=O(e.text,n)),u}var oe=[],D=function(e,n,u){if(e.addEventListener)e.addEventListener(n,u,!1);else if(e.attachEvent)e.attachEvent("on"+n,u);else{var l=e._handlers||(e._handlers={});l[n]=(l[n]||oe).concat(u)}};function _(e,n){return e._handlers&&e._handlers[n]||oe}function fe(e,n,u){if(e.removeEventListener)e.removeEventListener(n,u,!1);else if(e.detachEvent)e.detachEvent("on"+n,u);else{var l=e._handlers,f=l&&l[n];if(f){var g=ft(f,u);g>-1&&(l[n]=f.slice(0,g).concat(f.slice(g+1)))}}}function te(e,n){var u=_(e,n);if(!!u.length)for(var l=Array.prototype.slice.call(arguments,2),f=0;f<u.length;++f)u[f].apply(null,l)}function ce(e,n,u){return typeof n=="string"&&(n={type:n,preventDefault:function(){this.defaultPrevented=!0}}),te(e,u||n.type,e,n),vt(n)||n.codemirrorIgnore}function be(e){var n=e._handlers&&e._handlers.cursorActivity;if(!!n)for(var u=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),l=0;l<n.length;++l)ft(u,n[l])==-1&&u.push(n[l])}function Le(e,n){return _(e,n).length>0}function Re(e){e.prototype.on=function(n,u){D(this,n,u)},e.prototype.off=function(n,u){fe(this,n,u)}}function We(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ot(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function vt(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Ft(e){We(e),ot(e)}function At(e){return e.target||e.srcElement}function bn(e){var n=e.which;return n==null&&(e.button&1?n=1:e.button&2?n=3:e.button&4&&(n=2)),E&&e.ctrlKey&&n==1&&(n=3),n}var zr=function(){if(b&&C<9)return!1;var e=me("div");return"draggable"in e||"dragDrop"in e}(),Fr;function Ei(e){if(Fr==null){var n=me("span","\u200B");ge(e,me("span",[n,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Fr=n.offsetWidth<=1&&n.offsetHeight>2&&!(b&&C<8))}var u=Fr?me("span","\u200B"):me("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return u.setAttribute("cm-text",""),u}var Qr;function $i(e){if(Qr!=null)return Qr;var n=ge(e,document.createTextNode("A\u062EA")),u=se(n,0,1).getBoundingClientRect(),l=se(n,1,2).getBoundingClientRect();return ne(e),!u||u.left==u.right?!1:Qr=l.right-u.right<3}var zn=`
14
14
 
15
15
  b`.split(/\n/).length!=3?function(e){for(var n=0,u=[],l=e.length;n<=l;){var f=e.indexOf(`
16
- `,n);f==-1&&(f=e.length);var y=e.slice(n,e.charAt(f-1)=="\r"?f-1:f),P=y.indexOf("\r");P!=-1?(u.push(y.slice(0,P)),n+=P+1):(u.push(y),n=f+1)}return u}:function(e){return e.split(/\r\n?|\n/)},Sn=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(n){return!1}}:function(e){var n;try{n=e.ownerDocument.selection.createRange()}catch(u){}return!n||n.parentElement()!=e?!1:n.compareEndPoints("StartToEnd",n)!=0},Rn=function(){var e=me("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Zr=null;function Oi(e){if(Zr!=null)return Zr;var n=ge(e,me("span","x")),u=n.getBoundingClientRect(),l=le(n,0,1).getBoundingClientRect();return Zr=Math.abs(u.left-l.left)>1}var Ti={},ln={};function An(e,n){arguments.length>2&&(n.dependencies=Array.prototype.slice.call(arguments,2)),Ti[e]=n}function Gn(e,n){ln[e]=n}function $n(e){if(typeof e=="string"&&ln.hasOwnProperty(e))e=ln[e];else if(e&&typeof e.name=="string"&&ln.hasOwnProperty(e.name)){var n=ln[e.name];typeof n=="string"&&(n={name:n}),e=mt(n,e),e.name=n.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return $n("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return $n("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function wn(e,n){n=$n(n);var u=Ti[n.name];if(!u)return wn(e,"text/plain");var l=u(e,n);if(ei.hasOwnProperty(n.name)){var f=ei[n.name];for(var y in f)!f.hasOwnProperty(y)||(l.hasOwnProperty(y)&&(l["_"+y]=l[y]),l[y]=f[y])}if(l.name=n.name,n.helperType&&(l.helperType=n.helperType),n.modeProps)for(var P in n.modeProps)l[P]=n.modeProps[P];return l}var ei={};function Pi(e,n){var u=ei.hasOwnProperty(e)?ei[e]:ei[e]={};He(n,u)}function Gr(e,n){if(n===!0)return n;if(e.copyState)return e.copyState(n);var u={};for(var l in n){var f=n[l];f instanceof Array&&(f=f.concat([])),u[l]=f}return u}function qr(e,n){for(var u;e.innerMode&&(u=e.innerMode(n),!(!u||u.mode==e));)n=u.state,e=u.mode;return u||{mode:e,state:n}}function ti(e,n,u){return e.startState?e.startState(n,u):!0}var pr=function(e,n,u){this.pos=this.start=0,this.string=e,this.tabSize=n||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=u};pr.prototype.eol=function(){return this.pos>=this.string.length},pr.prototype.sol=function(){return this.pos==this.lineStart},pr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},pr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},pr.prototype.eat=function(e){var n=this.string.charAt(this.pos),u;if(typeof e=="string"?u=n==e:u=n&&(e.test?e.test(n):e(n)),u)return++this.pos,n},pr.prototype.eatWhile=function(e){for(var n=this.pos;this.eat(e););return this.pos>n},pr.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},pr.prototype.skipToEnd=function(){this.pos=this.string.length},pr.prototype.skipTo=function(e){var n=this.string.indexOf(e,this.pos);if(n>-1)return this.pos=n,!0},pr.prototype.backUp=function(e){this.pos-=e},pr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Je(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Je(this.string,this.lineStart,this.tabSize):0)},pr.prototype.indentation=function(){return Je(this.string,null,this.tabSize)-(this.lineStart?Je(this.string,this.lineStart,this.tabSize):0)},pr.prototype.match=function(e,n,u){if(typeof e=="string"){var l=function(P){return u?P.toLowerCase():P},f=this.string.substr(this.pos,e.length);if(l(f)==l(e))return n!==!1&&(this.pos+=e.length),!0}else{var y=this.string.slice(this.pos).match(e);return y&&y.index>0?null:(y&&n!==!1&&(this.pos+=y[0].length),y)}},pr.prototype.current=function(){return this.string.slice(this.start,this.pos)},pr.prototype.hideFirstChars=function(e,n){this.lineStart+=e;try{return n()}finally{this.lineStart-=e}},pr.prototype.lookAhead=function(e){var n=this.lineOracle;return n&&n.lookAhead(e)},pr.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function xt(e,n){if(n-=e.first,n<0||n>=e.size)throw new Error("There is no line "+(n+e.first)+" in the document.");for(var u=e;!u.lines;)for(var l=0;;++l){var f=u.children[l],y=f.chunkSize();if(n<y){u=f;break}n-=y}return u.lines[n]}function fi(e,n,u){var l=[],f=n.line;return e.iter(n.line,u.line+1,function(y){var P=y.text;f==u.line&&(P=P.slice(0,u.ch)),f==n.line&&(P=P.slice(n.ch)),l.push(P),++f}),l}function Ii(e,n,u){var l=[];return e.iter(n,u,function(f){l.push(f.text)}),l}function Fn(e,n){var u=n-e.height;if(u)for(var l=e;l;l=l.parent)l.height+=u}function qt(e){if(e.parent==null)return null;for(var n=e.parent,u=ft(n.lines,e),l=n.parent;l;n=l,l=l.parent)for(var f=0;l.children[f]!=n;++f)u+=l.children[f].chunkSize();return u+n.first}function Kn(e,n){var u=e.first;e:do{for(var l=0;l<e.children.length;++l){var f=e.children[l],y=f.height;if(n<y){e=f;continue e}n-=y,u+=f.chunkSize()}return u}while(!e.lines);for(var P=0;P<e.lines.length;++P){var B=e.lines[P],W=B.height;if(n<W)break;n-=W}return u+P}function ri(e,n){return n>=e.first&&n<e.first+e.size}function ya(e,n){return String(e.lineNumberFormatter(n+e.firstLineNumber))}function qe(e,n,u){if(u===void 0&&(u=null),!(this instanceof qe))return new qe(e,n,u);this.line=e,this.ch=n,this.sticky=u}function Pt(e,n){return e.line-n.line||e.ch-n.ch}function ci(e,n){return e.sticky==n.sticky&&Pt(e,n)==0}function ae(e){return qe(e.line,e.ch)}function Ae(e,n){return Pt(e,n)<0?n:e}function Ge(e,n){return Pt(e,n)<0?e:n}function tt(e,n){return Math.max(e.first,Math.min(n,e.first+e.size-1))}function rt(e,n){if(n.line<e.first)return qe(e.first,0);var u=e.first+e.size-1;return n.line>u?qe(u,xt(e,u).text.length):Gt(n,xt(e,n.line).text.length)}function Gt(e,n){var u=e.ch;return u==null||u>n?qe(e.line,n):u<0?qe(e.line,0):e}function Xt(e,n){for(var u=[],l=0;l<n.length;l++)u[l]=rt(e,n[l]);return u}var kr=function(e,n){this.state=e,this.lookAhead=n},Mr=function(e,n,u,l){this.state=n,this.doc=e,this.line=u,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Mr.prototype.lookAhead=function(e){var n=this.doc.getLine(this.line+e);return n!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),n},Mr.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var n=this.baseTokens[this.baseTokenPos+1];return{type:n&&n.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Mr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Mr.fromSaved=function(e,n,u){return n instanceof kr?new Mr(e,Gr(e.mode,n.state),u,n.lookAhead):new Mr(e,Gr(e.mode,n),u)},Mr.prototype.save=function(e){var n=e!==!1?Gr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new kr(n,this.maxLookAhead):n};function _t(e,n,u,l){var f=[e.state.modeGen],y={};cu(e,n.text,e.doc.mode,u,function(J,ye){return f.push(J,ye)},y,l);for(var P=u.state,B=function(J){u.baseTokens=f;var ye=e.state.overlays[J],Se=1,Ie=0;u.state=!0,cu(e,n.text,ye.mode,u,function(Ee,Ue){for(var Ye=Se;Ie<Ee;){var et=f[Se];et>Ee&&f.splice(Se,1,Ee,f[Se+1],et),Se+=2,Ie=Math.min(Ee,et)}if(!!Ue)if(ye.opaque)f.splice(Ye,Se-Ye,Ee,"overlay "+Ue),Se=Ye+2;else for(;Ye<Se;Ye+=2){var at=f[Ye+1];f[Ye+1]=(at?at+" ":"")+"overlay "+Ue}},y),u.state=P,u.baseTokens=null,u.baseTokenPos=1},W=0;W<e.state.overlays.length;++W)B(W);return{styles:f,classes:y.bgClass||y.textClass?y:null}}function uu(e,n,u){if(!n.styles||n.styles[0]!=e.state.modeGen){var l=un(e,qt(n)),f=n.text.length>e.options.maxHighlightLength&&Gr(e.doc.mode,l.state),y=_t(e,n,l);f&&(l.state=f),n.stateAfter=l.save(!f),n.styles=y.styles,y.classes?n.styleClasses=y.classes:n.styleClasses&&(n.styleClasses=null),u===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return n.styles}function un(e,n,u){var l=e.doc,f=e.display;if(!l.mode.startState)return new Mr(l,!0,n);var y=_f(e,n,u),P=y>l.first&&xt(l,y-1).stateAfter,B=P?Mr.fromSaved(l,P,y):new Mr(l,ti(l.mode),y);return l.iter(y,n,function(W){Ms(e,W.text,B);var J=B.line;W.stateAfter=J==n-1||J%5==0||J>=f.viewFrom&&J<f.viewTo?B.save():null,B.nextLine()}),u&&(l.modeFrontier=B.line),B}function Ms(e,n,u,l){var f=e.doc.mode,y=new pr(n,e.options.tabSize,u);for(y.start=y.pos=l||0,n==""&&Lo(f,u.state);!y.eol();)Ls(f,y,u.state),y.start=y.pos}function Lo(e,n){if(e.blankLine)return e.blankLine(n);if(!!e.innerMode){var u=qr(e,n);if(u.mode.blankLine)return u.mode.blankLine(u.state)}}function Ls(e,n,u,l){for(var f=0;f<10;f++){l&&(l[0]=qr(e,u).mode);var y=e.token(n,u);if(n.pos>n.start)return y}throw new Error("Mode "+e.name+" failed to advance stream.")}var Rs=function(e,n,u){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=n||null,this.state=u};function Ds(e,n,u,l){var f=e.doc,y=f.mode,P;n=rt(f,n);var B=xt(f,n.line),W=un(e,n.line,u),J=new pr(B.text,e.options.tabSize,W),ye;for(l&&(ye=[]);(l||J.pos<n.ch)&&!J.eol();)J.start=J.pos,P=Ls(y,J,W.state),l&&ye.push(new Rs(J,P,Gr(f.mode,W.state)));return l?ye:new Rs(J,P,W.state)}function fu(e,n){if(e)for(;;){var u=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!u)break;e=e.slice(0,u.index)+e.slice(u.index+u[0].length);var l=u[1]?"bgClass":"textClass";n[l]==null?n[l]=u[2]:new RegExp("(?:^|\\s)"+u[2]+"(?:$|\\s)").test(n[l])||(n[l]+=" "+u[2])}return e}function cu(e,n,u,l,f,y,P){var B=u.flattenSpans;B==null&&(B=e.options.flattenSpans);var W=0,J=null,ye=new pr(n,e.options.tabSize,l),Se,Ie=e.options.addModeClass&&[null];for(n==""&&fu(Lo(u,l.state),y);!ye.eol();){if(ye.pos>e.options.maxHighlightLength?(B=!1,P&&Ms(e,n,l,ye.pos),ye.pos=n.length,Se=null):Se=fu(Ls(u,ye,l.state,Ie),y),Ie){var Ee=Ie[0].name;Ee&&(Se="m-"+(Se?Ee+" "+Se:Ee))}if(!B||J!=Se){for(;W<ye.start;)W=Math.min(ye.start,W+5e3),f(W,J);J=Se}ye.start=ye.pos}for(;W<ye.pos;){var Ue=Math.min(ye.pos,W+5e3);f(Ue,J),W=Ue}}function _f(e,n,u){for(var l,f,y=e.doc,P=u?-1:n-(e.doc.mode.innerMode?1e3:100),B=n;B>P;--B){if(B<=y.first)return y.first;var W=xt(y,B-1),J=W.stateAfter;if(J&&(!u||B+(J instanceof kr?J.lookAhead:0)<=y.modeFrontier))return B;var ye=Je(W.text,null,e.options.tabSize);(f==null||l>ye)&&(f=B-1,l=ye)}return f}function ec(e,n){if(e.modeFrontier=Math.min(e.modeFrontier,n),!(e.highlightFrontier<n-10)){for(var u=e.first,l=n-1;l>u;l--){var f=xt(e,l).stateAfter;if(f&&(!(f instanceof kr)||l+f.lookAhead<n)){u=l+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,u)}}var tc=!1,Fi=!1;function rc(){tc=!0}function nc(){Fi=!0}function Ro(e,n,u){this.marker=e,this.from=n,this.to=u}function Ha(e,n){if(e)for(var u=0;u<e.length;++u){var l=e[u];if(l.marker==n)return l}}function ic(e,n){for(var u,l=0;l<e.length;++l)e[l]!=n&&(u||(u=[])).push(e[l]);return u}function Jd(e,n,u){var l=u&&window.WeakSet&&(u.markedSpans||(u.markedSpans=new WeakSet));l&&l.has(e.markedSpans)?e.markedSpans.push(n):(e.markedSpans=e.markedSpans?e.markedSpans.concat([n]):[n],l&&l.add(e.markedSpans)),n.marker.attachLine(e)}function Xd(e,n,u){var l;if(e)for(var f=0;f<e.length;++f){var y=e[f],P=y.marker,B=y.from==null||(P.inclusiveLeft?y.from<=n:y.from<n);if(B||y.from==n&&P.type=="bookmark"&&(!u||!y.marker.insertLeft)){var W=y.to==null||(P.inclusiveRight?y.to>=n:y.to>n);(l||(l=[])).push(new Ro(P,y.from,W?null:y.to))}}return l}function Qd(e,n,u){var l;if(e)for(var f=0;f<e.length;++f){var y=e[f],P=y.marker,B=y.to==null||(P.inclusiveRight?y.to>=n:y.to>n);if(B||y.from==n&&P.type=="bookmark"&&(!u||y.marker.insertLeft)){var W=y.from==null||(P.inclusiveLeft?y.from<=n:y.from<n);(l||(l=[])).push(new Ro(P,W?null:y.from-n,y.to==null?null:y.to-n))}}return l}function du(e,n){if(n.full)return null;var u=ri(e,n.from.line)&&xt(e,n.from.line).markedSpans,l=ri(e,n.to.line)&&xt(e,n.to.line).markedSpans;if(!u&&!l)return null;var f=n.from.ch,y=n.to.ch,P=Pt(n.from,n.to)==0,B=Xd(u,f,P),W=Qd(l,y,P),J=n.text.length==1,ye=St(n.text).length+(J?f:0);if(B)for(var Se=0;Se<B.length;++Se){var Ie=B[Se];if(Ie.to==null){var Ee=Ha(W,Ie.marker);Ee?J&&(Ie.to=Ee.to==null?null:Ee.to+ye):Ie.to=f}}if(W)for(var Ue=0;Ue<W.length;++Ue){var Ye=W[Ue];if(Ye.to!=null&&(Ye.to+=ye),Ye.from==null){var et=Ha(B,Ye.marker);et||(Ye.from=ye,J&&(B||(B=[])).push(Ye))}else Ye.from+=ye,J&&(B||(B=[])).push(Ye)}B&&(B=pu(B)),W&&W!=B&&(W=pu(W));var at=[B];if(!J){var lt=n.text.length-2,it;if(lt>0&&B)for(var pt=0;pt<B.length;++pt)B[pt].to==null&&(it||(it=[])).push(new Ro(B[pt].marker,null,null));for(var wt=0;wt<lt;++wt)at.push(it);at.push(W)}return at}function pu(e){for(var n=0;n<e.length;++n){var u=e[n];u.from!=null&&u.from==u.to&&u.marker.clearWhenEmpty!==!1&&e.splice(n--,1)}return e.length?e:null}function hu(e,n,u){var l=null;if(e.iter(n.line,u.line+1,function(Ee){if(Ee.markedSpans)for(var Ue=0;Ue<Ee.markedSpans.length;++Ue){var Ye=Ee.markedSpans[Ue].marker;Ye.readOnly&&(!l||ft(l,Ye)==-1)&&(l||(l=[])).push(Ye)}}),!l)return null;for(var f=[{from:n,to:u}],y=0;y<l.length;++y)for(var P=l[y],B=P.find(0),W=0;W<f.length;++W){var J=f[W];if(!(Pt(J.to,B.from)<0||Pt(J.from,B.to)>0)){var ye=[W,1],Se=Pt(J.from,B.from),Ie=Pt(J.to,B.to);(Se<0||!P.inclusiveLeft&&!Se)&&ye.push({from:J.from,to:B.from}),(Ie>0||!P.inclusiveRight&&!Ie)&&ye.push({from:B.to,to:J.to}),f.splice.apply(f,ye),W+=ye.length-3}}return f}function vu(e){var n=e.markedSpans;if(!!n){for(var u=0;u<n.length;++u)n[u].marker.detachLine(e);e.markedSpans=null}}function ac(e,n){if(!!n){for(var u=0;u<n.length;++u)n[u].marker.attachLine(e);e.markedSpans=n}}function Ns(e){return e.inclusiveLeft?-1:0}function Bs(e){return e.inclusiveRight?1:0}function gu(e,n){var u=e.lines.length-n.lines.length;if(u!=0)return u;var l=e.find(),f=n.find(),y=Pt(l.from,f.from)||Ns(e)-Ns(n);if(y)return-y;var P=Pt(l.to,f.to)||Bs(e)-Bs(n);return P||n.id-e.id}function za(e,n){var u=Fi&&e.markedSpans,l;if(u)for(var f=void 0,y=0;y<u.length;++y)f=u[y],f.marker.collapsed&&(n?f.from:f.to)==null&&(!l||gu(l,f.marker)<0)&&(l=f.marker);return l}function js(e){return za(e,!0)}function Ki(e){return za(e,!1)}function oc(e,n){var u=Fi&&e.markedSpans,l;if(u)for(var f=0;f<u.length;++f){var y=u[f];y.marker.collapsed&&(y.from==null||y.from<n)&&(y.to==null||y.to>n)&&(!l||gu(l,y.marker)<0)&&(l=y.marker)}return l}function Do(e,n,u,l,f){var y=xt(e,n),P=Fi&&y.markedSpans;if(P)for(var B=0;B<P.length;++B){var W=P[B];if(!!W.marker.collapsed){var J=W.marker.find(0),ye=Pt(J.from,u)||Ns(W.marker)-Ns(f),Se=Pt(J.to,l)||Bs(W.marker)-Bs(f);if(!(ye>=0&&Se<=0||ye<=0&&Se>=0)&&(ye<=0&&(W.marker.inclusiveRight&&f.inclusiveLeft?Pt(J.to,u)>=0:Pt(J.to,u)>0)||ye>=0&&(W.marker.inclusiveRight&&f.inclusiveLeft?Pt(J.from,l)<=0:Pt(J.from,l)<0)))return!0}}}function Yn(e){for(var n;n=js(e);)e=n.find(-1,!0).line;return e}function yu(e){for(var n;n=Ki(e);)e=n.find(1,!0).line;return e}function sc(e){for(var n,u;n=Ki(e);)e=n.find(1,!0).line,(u||(u=[])).push(e);return u}function Ga(e,n){var u=xt(e,n),l=Yn(u);return u==l?n:qt(l)}function Us(e,n){if(n>e.lastLine())return n;var u=xt(e,n),l;if(!di(e,u))return n;for(;l=Ki(u);)u=l.find(1,!0).line;return qt(u)+1}function di(e,n){var u=Fi&&n.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&&hr(e,n,l))return!0}}}function hr(e,n,u){if(u.to==null){var l=u.marker.find(1,!0);return hr(e,l.line,Ha(l.line.markedSpans,u.marker))}if(u.marker.inclusiveRight&&u.to==n.text.length)return!0;for(var f=void 0,y=0;y<n.markedSpans.length;++y)if(f=n.markedSpans[y],f.marker.collapsed&&!f.marker.widgetNode&&f.from==u.to&&(f.to==null||f.to!=u.from)&&(f.marker.inclusiveLeft||u.marker.inclusiveRight)&&hr(e,n,f))return!0}function pi(e){e=Yn(e);for(var n=0,u=e.parent,l=0;l<u.lines.length;++l){var f=u.lines[l];if(f==e)break;n+=f.height}for(var y=u.parent;y;u=y,y=u.parent)for(var P=0;P<y.children.length;++P){var B=y.children[P];if(B==u)break;n+=B.height}return n}function Yi(e){if(e.height==0)return 0;for(var n=e.text.length,u,l=e;u=js(l);){var f=u.find(0,!0);l=f.from.line,n+=f.from.ch-f.to.ch}for(l=e;u=Ki(l);){var y=u.find(0,!0);n-=l.text.length-y.from.ch,l=y.to.line,n+=l.text.length-y.to.ch}return n}function Vs(e){var n=e.display,u=e.doc;n.maxLine=xt(u,u.first),n.maxLineLength=Yi(n.maxLine),n.maxLineChanged=!0,u.iter(function(l){var f=Yi(l);f>n.maxLineLength&&(n.maxLineLength=f,n.maxLine=l)})}var Ji=function(e,n,u){this.text=e,ac(this,n),this.height=u?u(this):1};Ji.prototype.lineNo=function(){return qt(this)},Re(Ji);function ki(e,n,u,l){e.text=n,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),vu(e),ac(e,u);var f=l?l(e):1;f!=e.height&&Fn(e,f)}function Xi(e){e.parent=null,vu(e)}var Ws={},Hs={};function mu(e,n){if(!e||/^\s*$/.test(e))return null;var u=n.addModeClass?Hs:Ws;return u[e]||(u[e]=e.replace(/\S+/g,"cm-$&"))}function zs(e,n){var u=he("span",null,null,S?"padding-right: .1px":null),l={pre:he("pre",[u],"CodeMirror-line"),content:u,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};n.measure={};for(var f=0;f<=(n.rest?n.rest.length:0);f++){var y=f?n.rest[f-1]:n.line,P=void 0;l.pos=0,l.addToken=$s,$i(e.display.measure)&&(P=T(y,e.doc.direction))&&(l.addToken=lc(l.addToken,P)),l.map=[];var B=n!=e.display.externalMeasured&&qt(y);uc(y,l,uu(e,y,B)),y.styleClasses&&(y.styleClasses.bgClass&&(l.bgClass=Te(y.styleClasses.bgClass,l.bgClass||"")),y.styleClasses.textClass&&(l.textClass=Te(y.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Ei(e.display.measure))),f==0?(n.measure.map=l.map,n.measure.cache={}):((n.measure.maps||(n.measure.maps=[])).push(l.map),(n.measure.caches||(n.measure.caches=[])).push({}))}if(S){var W=l.content.lastChild;(/\bcm-tab\b/.test(W.className)||W.querySelector&&W.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return te(e,"renderLine",e,n.line,l.pre),l.pre.className&&(l.textClass=Te(l.pre.className,l.textClass||"")),l}function Gs(e){var n=me("span","\u2022","cm-invalidchar");return n.title="\\u"+e.charCodeAt(0).toString(16),n.setAttribute("aria-label",n.title),n}function $s(e,n,u,l,f,y,P){if(!!n){var B=e.splitSpaces?Qi(n,e.trailingSpace):n,W=e.cm.state.specialChars,J=!1,ye;if(!W.test(n))e.col+=n.length,ye=document.createTextNode(B),e.map.push(e.pos,e.pos+n.length,ye),b&&C<9&&(J=!0),e.pos+=n.length;else{ye=document.createDocumentFragment();for(var Se=0;;){W.lastIndex=Se;var Ie=W.exec(n),Ee=Ie?Ie.index-Se:n.length-Se;if(Ee){var Ue=document.createTextNode(B.slice(Se,Se+Ee));b&&C<9?ye.appendChild(me("span",[Ue])):ye.appendChild(Ue),e.map.push(e.pos,e.pos+Ee,Ue),e.col+=Ee,e.pos+=Ee}if(!Ie)break;Se+=Ee+1;var Ye=void 0;if(Ie[0]==" "){var et=e.cm.options.tabSize,at=et-e.col%et;Ye=ye.appendChild(me("span",Et(at),"cm-tab")),Ye.setAttribute("role","presentation"),Ye.setAttribute("cm-text"," "),e.col+=at}else Ie[0]=="\r"||Ie[0]==`
17
- `?(Ye=ye.appendChild(me("span",Ie[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ye.setAttribute("cm-text",Ie[0]),e.col+=1):(Ye=e.cm.options.specialCharPlaceholder(Ie[0]),Ye.setAttribute("cm-text",Ie[0]),b&&C<9?ye.appendChild(me("span",[Ye])):ye.appendChild(Ye),e.col+=1);e.map.push(e.pos,e.pos+1,Ye),e.pos++}}if(e.trailingSpace=B.charCodeAt(n.length-1)==32,u||l||f||J||y||P){var lt=u||"";l&&(lt+=l),f&&(lt+=f);var it=me("span",[ye],lt,y);if(P)for(var pt in P)P.hasOwnProperty(pt)&&pt!="style"&&pt!="class"&&it.setAttribute(pt,P[pt]);return e.content.appendChild(it)}e.content.appendChild(ye)}}function Qi(e,n){if(e.length>1&&!/ /.test(e))return e;for(var u=n,l="",f=0;f<e.length;f++){var y=e.charAt(f);y==" "&&u&&(f==e.length-1||e.charCodeAt(f+1)==32)&&(y="\xA0"),l+=y,u=y==" "}return l}function lc(e,n){return function(u,l,f,y,P,B,W){f=f?f+" cm-force-border":"cm-force-border";for(var J=u.pos,ye=J+l.length;;){for(var Se=void 0,Ie=0;Ie<n.length&&(Se=n[Ie],!(Se.to>J&&Se.from<=J));Ie++);if(Se.to>=ye)return e(u,l,f,y,P,B,W);e(u,l.slice(0,Se.to-J),f,y,null,B,W),y=null,l=l.slice(Se.to-J),J=Se.to}}}function lr(e,n,u,l){var f=!l&&u.widgetNode;f&&e.map.push(e.pos,e.pos+n,f),!l&&e.cm.display.input.needsContentAttribute&&(f||(f=e.content.appendChild(document.createElement("span"))),f.setAttribute("cm-marker",u.id)),f&&(e.cm.display.input.setUneditable(f),e.content.appendChild(f)),e.pos+=n,e.trailingSpace=!1}function uc(e,n,u){var l=e.markedSpans,f=e.text,y=0;if(!l){for(var P=1;P<u.length;P+=2)n.addToken(n,f.slice(y,y=u[P]),mu(u[P+1],n.cm.options));return}for(var B=f.length,W=0,J=1,ye="",Se,Ie,Ee=0,Ue,Ye,et,at,lt;;){if(Ee==W){Ue=Ye=et=Ie="",lt=null,at=null,Ee=1/0;for(var it=[],pt=void 0,wt=0;wt<l.length;++wt){var $e=l[wt],Tt=$e.marker;if(Tt.type=="bookmark"&&$e.from==W&&Tt.widgetNode)it.push(Tt);else if($e.from<=W&&($e.to==null||$e.to>W||Tt.collapsed&&$e.to==W&&$e.from==W)){if($e.to!=null&&$e.to!=W&&Ee>$e.to&&(Ee=$e.to,Ye=""),Tt.className&&(Ue+=" "+Tt.className),Tt.css&&(Ie=(Ie?Ie+";":"")+Tt.css),Tt.startStyle&&$e.from==W&&(et+=" "+Tt.startStyle),Tt.endStyle&&$e.to==Ee&&(pt||(pt=[])).push(Tt.endStyle,$e.to),Tt.title&&((lt||(lt={})).title=Tt.title),Tt.attributes)for(var nr in Tt.attributes)(lt||(lt={}))[nr]=Tt.attributes[nr];Tt.collapsed&&(!at||gu(at.marker,Tt)<0)&&(at=$e)}else $e.from>W&&Ee>$e.from&&(Ee=$e.from)}if(pt)for(var br=0;br<pt.length;br+=2)pt[br+1]==Ee&&(Ye+=" "+pt[br]);if(!at||at.from==W)for(var Zt=0;Zt<it.length;++Zt)lr(n,0,it[Zt]);if(at&&(at.from||0)==W){if(lr(n,(at.to==null?B+1:at.to)-W,at.marker,at.from==null),at.to==null)return;at.to==W&&(at=!1)}}if(W>=B)break;for(var Tn=Math.min(B,Ee);;){if(ye){var mn=W+ye.length;if(!at){var Rr=mn>Tn?ye.slice(0,Tn-W):ye;n.addToken(n,Rr,Se?Se+Ue:Ue,et,W+Rr.length==Ee?Ye:"",Ie,lt)}if(mn>=Tn){ye=ye.slice(Tn-W),W=Tn;break}W=mn,et=""}ye=f.slice(y,y=u[J++]),Se=mu(u[J++],n.cm.options)}}}function xu(e,n,u){this.line=n,this.rest=sc(n),this.size=this.rest?qt(St(this.rest))-u+1:1,this.node=this.text=null,this.hidden=di(e,n)}function No(e,n,u){for(var l=[],f,y=n;y<u;y=f){var P=new xu(e.doc,xt(e.doc,y),y);f=y+P.size,l.push(P)}return l}var fn=null;function bu(e){fn?fn.ops.push(e):e.ownsGroup=fn={ops:[e],delayedCallbacks:[]}}function Su(e){var n=e.delayedCallbacks,u=0;do{for(;u<n.length;u++)n[u].call(null);for(var l=0;l<e.ops.length;l++){var f=e.ops[l];if(f.cursorActivityHandlers)for(;f.cursorActivityCalled<f.cursorActivityHandlers.length;)f.cursorActivityHandlers[f.cursorActivityCalled++].call(null,f.cm)}}while(u<n.length)}function Ks(e,n){var u=e.ownsGroup;if(!!u)try{Su(u)}finally{fn=null,n(u)}}var $a=null;function ur(e,n){var u=_(e,n);if(!!u.length){var l=Array.prototype.slice.call(arguments,2),f;fn?f=fn.delayedCallbacks:$a?f=$a:(f=$a=[],setTimeout(fc,0));for(var y=function(B){f.push(function(){return u[B].apply(null,l)})},P=0;P<u.length;++P)y(P)}}function fc(){var e=$a;$a=null;for(var n=0;n<e.length;++n)e[n]()}function Bo(e,n,u,l){for(var f=0;f<n.changes.length;f++){var y=n.changes[f];y=="text"?cc(e,n):y=="gutter"?Ya(e,n,u,l):y=="class"?Ys(e,n):y=="widget"&&dc(e,n,l)}n.changes=null}function Ka(e){return e.node==e.text&&(e.node=me("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),b&&C<8&&(e.node.style.zIndex=2)),e.node}function Au(e,n){var u=n.bgClass?n.bgClass+" "+(n.line.bgClass||""):n.line.bgClass;if(u&&(u+=" CodeMirror-linebackground"),n.background)u?n.background.className=u:(n.background.parentNode.removeChild(n.background),n.background=null);else if(u){var l=Ka(n);n.background=l.insertBefore(me("div",null,u),l.firstChild),e.display.input.setUneditable(n.background)}}function wu(e,n){var u=e.display.externalMeasured;return u&&u.line==n.line?(e.display.externalMeasured=null,n.measure=u.measure,u.built):zs(e,n)}function cc(e,n){var u=n.text.className,l=wu(e,n);n.text==n.node&&(n.node=l.pre),n.text.parentNode.replaceChild(l.pre,n.text),n.text=l.pre,l.bgClass!=n.bgClass||l.textClass!=n.textClass?(n.bgClass=l.bgClass,n.textClass=l.textClass,Ys(e,n)):u&&(n.text.className=u)}function Ys(e,n){Au(e,n),n.line.wrapClass?Ka(n).className=n.line.wrapClass:n.node!=n.text&&(n.node.className="");var u=n.textClass?n.textClass+" "+(n.line.textClass||""):n.line.textClass;n.text.className=u||""}function Ya(e,n,u,l){if(n.gutter&&(n.node.removeChild(n.gutter),n.gutter=null),n.gutterBackground&&(n.node.removeChild(n.gutterBackground),n.gutterBackground=null),n.line.gutterClass){var f=Ka(n);n.gutterBackground=me("div",null,"CodeMirror-gutter-background "+n.line.gutterClass,"left: "+(e.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),e.display.input.setUneditable(n.gutterBackground),f.insertBefore(n.gutterBackground,n.text)}var y=n.line.gutterMarkers;if(e.options.lineNumbers||y){var P=Ka(n),B=n.gutter=me("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(B.setAttribute("aria-hidden","true"),e.display.input.setUneditable(B),P.insertBefore(B,n.text),n.line.gutterClass&&(B.className+=" "+n.line.gutterClass),e.options.lineNumbers&&(!y||!y["CodeMirror-linenumbers"])&&(n.lineNumber=B.appendChild(me("div",ya(e.options,u),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),y)for(var W=0;W<e.display.gutterSpecs.length;++W){var J=e.display.gutterSpecs[W].className,ye=y.hasOwnProperty(J)&&y[J];ye&&B.appendChild(me("div",[ye],"CodeMirror-gutter-elt","left: "+l.gutterLeft[J]+"px; width: "+l.gutterWidth[J]+"px"))}}}function dc(e,n,u){n.alignable&&(n.alignable=null);for(var l=ue("CodeMirror-linewidget"),f=n.node.firstChild,y=void 0;f;f=y)y=f.nextSibling,l.test(f.className)&&n.node.removeChild(f);Cu(e,n,u)}function er(e,n,u,l){var f=wu(e,n);return n.text=n.node=f.pre,f.bgClass&&(n.bgClass=f.bgClass),f.textClass&&(n.textClass=f.textClass),Ys(e,n),Ya(e,n,u,l),Cu(e,n,l),n.node}function Cu(e,n,u){if(Qt(e,n.line,n,u,!0),n.rest)for(var l=0;l<n.rest.length;l++)Qt(e,n.rest[l],n,u,!1)}function Qt(e,n,u,l,f){if(!!n.widgets)for(var y=Ka(u),P=0,B=n.widgets;P<B.length;++P){var W=B[P],J=me("div",[W.node],"CodeMirror-linewidget"+(W.className?" "+W.className:""));W.handleMouseEvents||J.setAttribute("cm-ignore-events","true"),pc(W,J,u,l),e.display.input.setUneditable(J),f&&W.above?y.insertBefore(J,u.gutter||u.text):y.appendChild(J),ur(W,"redraw")}}function pc(e,n,u,l){if(e.noHScroll){(u.alignable||(u.alignable=[])).push(n);var f=l.wrapperWidth;n.style.left=l.fixedPos+"px",e.coverGutter||(f-=l.gutterTotalWidth,n.style.paddingLeft=l.gutterTotalWidth+"px"),n.style.width=f+"px"}e.coverGutter&&(n.style.zIndex=5,n.style.position="relative",e.noHScroll||(n.style.marginLeft=-l.gutterTotalWidth+"px"))}function gt(e){if(e.height!=null)return e.height;var n=e.doc.cm;if(!n)return 0;if(!ie(document.body,e.node)){var u="position: relative;";e.coverGutter&&(u+="margin-left: -"+n.display.gutters.offsetWidth+"px;"),e.noHScroll&&(u+="width: "+n.display.wrapper.clientWidth+"px;"),ge(n.display.measure,me("div",[e.node],null,u))}return e.height=e.node.parentNode.offsetHeight}function hi(e,n){for(var u=At(n);u!=e.wrapper;u=u.parentNode)if(!u||u.nodeType==1&&u.getAttribute("cm-ignore-events")=="true"||u.parentNode==e.sizer&&u!=e.mover)return!0}function Ja(e){return e.lineSpace.offsetTop}function Js(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function gn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var n=ge(e.measure,me("pre","x","CodeMirror-line-like")),u=window.getComputedStyle?window.getComputedStyle(n):n.currentStyle,l={left:parseInt(u.paddingLeft),right:parseInt(u.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(e.cachedPaddingH=l),l}function vi(e){return yt-e.display.nativeBarWidth}function Zi(e){return e.display.scroller.clientWidth-vi(e)-e.display.barWidth}function Xa(e){return e.display.scroller.clientHeight-vi(e)-e.display.barHeight}function hc(e,n,u){var l=e.options.lineWrapping,f=l&&Zi(e);if(!n.measure.heights||l&&n.measure.width!=f){var y=n.measure.heights=[];if(l){n.measure.width=f;for(var P=n.text.firstChild.getClientRects(),B=0;B<P.length-1;B++){var W=P[B],J=P[B+1];Math.abs(W.bottom-J.bottom)>2&&y.push((W.bottom+J.top)/2-u.top)}}y.push(u.bottom-u.top)}}function Xs(e,n,u){if(e.line==n)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var l=0;l<e.rest.length;l++)if(e.rest[l]==n)return{map:e.measure.maps[l],cache:e.measure.caches[l]};for(var f=0;f<e.rest.length;f++)if(qt(e.rest[f])>u)return{map:e.measure.maps[f],cache:e.measure.caches[f],before:!0}}}function vc(e,n){n=Yn(n);var u=qt(n),l=e.display.externalMeasured=new xu(e.doc,n,u);l.lineN=u;var f=l.built=zs(e,l);return l.text=f.pre,ge(e.display.lineMeasure,f.pre),l}function jo(e,n,u,l){return Jn(e,ni(e,n),u,l)}function Qs(e,n){if(n>=e.display.viewFrom&&n<e.display.viewTo)return e.display.view[ta(e,n)];var u=e.display.externalMeasured;if(u&&n>=u.lineN&&n<u.lineN+u.size)return u}function ni(e,n){var u=qt(n),l=Qs(e,u);l&&!l.text?l=null:l&&l.changes&&(Bo(e,l,u,nl(e)),e.curOp.forceUpdate=!0),l||(l=vc(e,n));var f=Xs(l,n,u);return{line:n,view:l,rect:null,map:f.map,cache:f.cache,before:f.before,hasHeights:!1}}function Jn(e,n,u,l,f){n.before&&(u=-1);var y=u+(l||""),P;return n.cache.hasOwnProperty(y)?P=n.cache[y]:(n.rect||(n.rect=n.view.text.getBoundingClientRect()),n.hasHeights||(hc(e,n.view,n.rect),n.hasHeights=!0),P=Eu(e,n,u,l),P.bogus||(n.cache[y]=P)),{left:P.left,right:P.right,top:f?P.rtop:P.top,bottom:f?P.rbottom:P.bottom}}var Uo={left:0,right:0,top:0,bottom:0};function Zs(e,n,u){for(var l,f,y,P,B,W,J=0;J<e.length;J+=3)if(B=e[J],W=e[J+1],n<B?(f=0,y=1,P="left"):n<W?(f=n-B,y=f+1):(J==e.length-3||n==W&&e[J+3]>n)&&(y=W-B,f=y-1,n>=W&&(P="right")),f!=null){if(l=e[J+2],B==W&&u==(l.insertLeft?"left":"right")&&(P=u),u=="left"&&f==0)for(;J&&e[J-2]==e[J-3]&&e[J-1].insertLeft;)l=e[(J-=3)+2],P="left";if(u=="right"&&f==W-B)for(;J<e.length-3&&e[J+3]==e[J+4]&&!e[J+5].insertLeft;)l=e[(J+=3)+2],P="right";break}return{node:l,start:f,end:y,collapse:P,coverStart:B,coverEnd:W}}function qs(e,n){var u=Uo;if(n=="left")for(var l=0;l<e.length&&(u=e[l]).left==u.right;l++);else for(var f=e.length-1;f>=0&&(u=e[f]).left==u.right;f--);return u}function Eu(e,n,u,l){var f=Zs(n.map,u,l),y=f.node,P=f.start,B=f.end,W=f.collapse,J;if(y.nodeType==3){for(var ye=0;ye<4;ye++){for(;P&&Mt(n.line.text.charAt(f.coverStart+P));)--P;for(;f.coverStart+B<f.coverEnd&&Mt(n.line.text.charAt(f.coverStart+B));)++B;if(b&&C<9&&P==0&&B==f.coverEnd-f.coverStart?J=y.parentNode.getBoundingClientRect():J=qs(le(y,P,B).getClientRects(),l),J.left||J.right||P==0)break;B=P,P=P-1,W="right"}b&&C<11&&(J=Ou(e.display.measure,J))}else{P>0&&(W=l="right");var Se;e.options.lineWrapping&&(Se=y.getClientRects()).length>1?J=Se[l=="right"?Se.length-1:0]:J=y.getBoundingClientRect()}if(b&&C<9&&!P&&(!J||!J.left&&!J.right)){var Ie=y.parentNode.getClientRects()[0];Ie?J={left:Ie.left,right:Ie.left+Dn(e.display),top:Ie.top,bottom:Ie.bottom}:J=Uo}for(var Ee=J.top-n.rect.top,Ue=J.bottom-n.rect.top,Ye=(Ee+Ue)/2,et=n.view.measure.heights,at=0;at<et.length-1&&!(Ye<et[at]);at++);var lt=at?et[at-1]:0,it=et[at],pt={left:(W=="right"?J.right:J.left)-n.rect.left,right:(W=="left"?J.left:J.right)-n.rect.left,top:lt,bottom:it};return!J.left&&!J.right&&(pt.bogus=!0),e.options.singleCursorHeightPerLine||(pt.rtop=Ee,pt.rbottom=Ue),pt}function Ou(e,n){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Oi(e))return n;var u=screen.logicalXDPI/screen.deviceXDPI,l=screen.logicalYDPI/screen.deviceYDPI;return{left:n.left*u,right:n.right*u,top:n.top*l,bottom:n.bottom*l}}function _s(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var n=0;n<e.rest.length;n++)e.measure.caches[n]={}}function qi(e){e.display.externalMeasure=null,ne(e.display.lineMeasure);for(var n=0;n<e.display.view.length;n++)_s(e.display.view[n])}function Qa(e){qi(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Za(){return N&&Y?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Tu(){return N&&Y?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function qa(e){var n=0;if(e.widgets)for(var u=0;u<e.widgets.length;++u)e.widgets[u].above&&(n+=gt(e.widgets[u]));return n}function Vo(e,n,u,l,f){if(!f){var y=qa(n);u.top+=y,u.bottom+=y}if(l=="line")return u;l||(l="local");var P=pi(n);if(l=="local"?P+=Ja(e.display):P-=e.display.viewOffset,l=="page"||l=="window"){var B=e.display.lineSpace.getBoundingClientRect();P+=B.top+(l=="window"?0:Tu());var W=B.left+(l=="window"?0:Za());u.left+=W,u.right+=W}return u.top+=P,u.bottom+=P,u}function _a(e,n,u){if(u=="div")return n;var l=n.left,f=n.top;if(u=="page")l-=Za(),f-=Tu();else if(u=="local"||!u){var y=e.display.sizer.getBoundingClientRect();l+=y.left,f+=y.top}var P=e.display.lineSpace.getBoundingClientRect();return{left:l-P.left,top:f-P.top}}function Wo(e,n,u,l,f){return l||(l=xt(e.doc,n.line)),Vo(e,l,jo(e,l,n.ch,f),u)}function Xn(e,n,u,l,f,y){l=l||xt(e.doc,n.line),f||(f=ni(e,l));function P(Ue,Ye){var et=Jn(e,f,Ue,Ye?"right":"left",y);return Ye?et.left=et.right:et.right=et.left,Vo(e,l,et,u)}var B=T(l,e.doc.direction),W=n.ch,J=n.sticky;if(W>=l.text.length?(W=l.text.length,J="before"):W<=0&&(W=0,J="after"),!B)return P(J=="before"?W-1:W,J=="before");function ye(Ue,Ye,et){var at=B[Ye],lt=at.level==1;return P(et?Ue-1:Ue,lt!=et)}var Se=$(B,W,J),Ie=Be,Ee=ye(W,Se,J=="before");return Ie!=null&&(Ee.other=ye(W,Ie,J!="before")),Ee}function Pu(e,n){var u=0;n=rt(e.doc,n),e.options.lineWrapping||(u=Dn(e.display)*n.ch);var l=xt(e.doc,n.line),f=pi(l)+Ja(e.display);return{left:u,right:u,top:f,bottom:f+l.height}}function el(e,n,u,l,f){var y=qe(e,n,u);return y.xRel=f,l&&(y.outside=l),y}function tl(e,n,u){var l=e.doc;if(u+=e.display.viewOffset,u<0)return el(l.first,0,null,-1,-1);var f=Kn(l,u),y=l.first+l.size-1;if(f>y)return el(l.first+l.size-1,xt(l,y).text.length,null,1,1);n<0&&(n=0);for(var P=xt(l,f);;){var B=gc(e,P,f,n,u),W=oc(P,B.ch+(B.xRel>0||B.outside>0?1:0));if(!W)return B;var J=W.find(1);if(J.line==f)return J;P=xt(l,f=J.line)}}function Iu(e,n,u,l){l-=qa(n);var f=n.text.length,y=Bt(function(P){return Jn(e,u,P-1).bottom<=l},f,0);return f=Bt(function(P){return Jn(e,u,P).top>l},y,f),{begin:y,end:f}}function Fu(e,n,u,l){u||(u=ni(e,n));var f=Vo(e,n,Jn(e,u,l),"line").top;return Iu(e,n,u,f)}function rl(e,n,u,l){return e.bottom<=u?!1:e.top>u?!0:(l?e.left:e.right)>n}function gc(e,n,u,l,f){f-=pi(n);var y=ni(e,n),P=qa(n),B=0,W=n.text.length,J=!0,ye=T(n,e.doc.direction);if(ye){var Se=(e.options.lineWrapping?mc:yc)(e,n,u,y,ye,l,f);J=Se.level!=1,B=J?Se.from:Se.to-1,W=J?Se.to:Se.from-1}var Ie=null,Ee=null,Ue=Bt(function(wt){var $e=Jn(e,y,wt);return $e.top+=P,$e.bottom+=P,rl($e,l,f,!1)?($e.top<=f&&$e.left<=l&&(Ie=wt,Ee=$e),!0):!1},B,W),Ye,et,at=!1;if(Ee){var lt=l-Ee.left<Ee.right-l,it=lt==J;Ue=Ie+(it?0:1),et=it?"after":"before",Ye=lt?Ee.left:Ee.right}else{!J&&(Ue==W||Ue==B)&&Ue++,et=Ue==0?"after":Ue==n.text.length?"before":Jn(e,y,Ue-(J?1:0)).bottom+P<=f==J?"after":"before";var pt=Xn(e,qe(u,Ue,et),"line",n,y);Ye=pt.left,at=f<pt.top?-1:f>=pt.bottom?1:0}return Ue=Wt(n.text,Ue,1),el(u,Ue,et,at,l-Ye)}function yc(e,n,u,l,f,y,P){var B=Bt(function(Se){var Ie=f[Se],Ee=Ie.level!=1;return rl(Xn(e,qe(u,Ee?Ie.to:Ie.from,Ee?"before":"after"),"line",n,l),y,P,!0)},0,f.length-1),W=f[B];if(B>0){var J=W.level!=1,ye=Xn(e,qe(u,J?W.from:W.to,J?"after":"before"),"line",n,l);rl(ye,y,P,!0)&&ye.top>P&&(W=f[B-1])}return W}function mc(e,n,u,l,f,y,P){var B=Iu(e,n,l,P),W=B.begin,J=B.end;/\s/.test(n.text.charAt(J-1))&&J--;for(var ye=null,Se=null,Ie=0;Ie<f.length;Ie++){var Ee=f[Ie];if(!(Ee.from>=J||Ee.to<=W)){var Ue=Ee.level!=1,Ye=Jn(e,l,Ue?Math.min(J,Ee.to)-1:Math.max(W,Ee.from)).right,et=Ye<y?y-Ye+1e9:Ye-y;(!ye||Se>et)&&(ye=Ee,Se=et)}}return ye||(ye=f[f.length-1]),ye.from<W&&(ye={from:W,to:ye.to,level:ye.level}),ye.to>J&&(ye={from:ye.from,to:J,level:ye.level}),ye}var _i;function ma(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(_i==null){_i=me("pre",null,"CodeMirror-line-like");for(var n=0;n<49;++n)_i.appendChild(document.createTextNode("x")),_i.appendChild(me("br"));_i.appendChild(document.createTextNode("x"))}ge(e.measure,_i);var u=_i.offsetHeight/50;return u>3&&(e.cachedTextHeight=u),ne(e.measure),u||1}function Dn(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var n=me("span","xxxxxxxxxx"),u=me("pre",[n],"CodeMirror-line-like");ge(e.measure,u);var l=n.getBoundingClientRect(),f=(l.right-l.left)/10;return f>2&&(e.cachedCharWidth=f),f||10}function nl(e){for(var n=e.display,u={},l={},f=n.gutters.clientLeft,y=n.gutters.firstChild,P=0;y;y=y.nextSibling,++P){var B=e.display.gutterSpecs[P].className;u[B]=y.offsetLeft+y.clientLeft+f,l[B]=y.clientWidth}return{fixedPos:Nn(n),gutterTotalWidth:n.gutters.offsetWidth,gutterLeft:u,gutterWidth:l,wrapperWidth:n.wrapper.clientWidth}}function Nn(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function ku(e){var n=ma(e.display),u=e.options.lineWrapping,l=u&&Math.max(5,e.display.scroller.clientWidth/Dn(e.display)-3);return function(f){if(di(e.doc,f))return 0;var y=0;if(f.widgets)for(var P=0;P<f.widgets.length;P++)f.widgets[P].height&&(y+=f.widgets[P].height);return u?y+(Math.ceil(f.text.length/l)||1)*n:y+n}}function il(e){var n=e.doc,u=ku(e);n.iter(function(l){var f=u(l);f!=l.height&&Fn(l,f)})}function ea(e,n,u,l){var f=e.display;if(!u&&At(n).getAttribute("cm-not-content")=="true")return null;var y,P,B=f.lineSpace.getBoundingClientRect();try{y=n.clientX-B.left,P=n.clientY-B.top}catch(Se){return null}var W=tl(e,y,P),J;if(l&&W.xRel>0&&(J=xt(e.doc,W.line).text).length==W.ch){var ye=Je(J,J.length,e.options.tabSize)-J.length;W=qe(W.line,Math.max(0,Math.round((y-gn(e.display).left)/Dn(e.display))-ye))}return W}function ta(e,n){if(n>=e.display.viewTo||(n-=e.display.viewFrom,n<0))return null;for(var u=e.display.view,l=0;l<u.length;l++)if(n-=u[l].size,n<0)return l}function Nr(e,n,u,l){n==null&&(n=e.doc.first),u==null&&(u=e.doc.first+e.doc.size),l||(l=0);var f=e.display;if(l&&u<f.viewTo&&(f.updateLineNumbers==null||f.updateLineNumbers>n)&&(f.updateLineNumbers=n),e.curOp.viewChanged=!0,n>=f.viewTo)Fi&&Ga(e.doc,n)<f.viewTo&&Mi(e);else if(u<=f.viewFrom)Fi&&Us(e.doc,u+l)>f.viewFrom?Mi(e):(f.viewFrom+=l,f.viewTo+=l);else if(n<=f.viewFrom&&u>=f.viewTo)Mi(e);else if(n<=f.viewFrom){var y=Ho(e,u,u+l,1);y?(f.view=f.view.slice(y.index),f.viewFrom=y.lineN,f.viewTo+=l):Mi(e)}else if(u>=f.viewTo){var P=Ho(e,n,n,-1);P?(f.view=f.view.slice(0,P.index),f.viewTo=P.lineN):Mi(e)}else{var B=Ho(e,n,n,-1),W=Ho(e,u,u+l,1);B&&W?(f.view=f.view.slice(0,B.index).concat(No(e,B.lineN,W.lineN)).concat(f.view.slice(W.index)),f.viewTo+=l):Mi(e)}var J=f.externalMeasured;J&&(u<J.lineN?J.lineN+=l:n<J.lineN+J.size&&(f.externalMeasured=null))}function ii(e,n,u){e.curOp.viewChanged=!0;var l=e.display,f=e.display.externalMeasured;if(f&&n>=f.lineN&&n<f.lineN+f.size&&(l.externalMeasured=null),!(n<l.viewFrom||n>=l.viewTo)){var y=l.view[ta(e,n)];if(y.node!=null){var P=y.changes||(y.changes=[]);ft(P,u)==-1&&P.push(u)}}}function Mi(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Ho(e,n,u,l){var f=ta(e,n),y,P=e.display.view;if(!Fi||u==e.doc.first+e.doc.size)return{index:f,lineN:u};for(var B=e.display.viewFrom,W=0;W<f;W++)B+=P[W].size;if(B!=n){if(l>0){if(f==P.length-1)return null;y=B+P[f].size-n,f++}else y=B-n;n+=y,u+=y}for(;Ga(e.doc,u)!=u;){if(f==(l<0?0:P.length-1))return null;u+=l*P[f-(l<0?1:0)].size,f+=l}return{index:f,lineN:u}}function xc(e,n,u){var l=e.display,f=l.view;f.length==0||n>=l.viewTo||u<=l.viewFrom?(l.view=No(e,n,u),l.viewFrom=n):(l.viewFrom>n?l.view=No(e,n,l.viewFrom).concat(l.view):l.viewFrom<n&&(l.view=l.view.slice(ta(e,n))),l.viewFrom=n,l.viewTo<u?l.view=l.view.concat(No(e,l.viewTo,u)):l.viewTo>u&&(l.view=l.view.slice(0,ta(e,u)))),l.viewTo=u}function zo(e){for(var n=e.display.view,u=0,l=0;l<n.length;l++){var f=n[l];!f.hidden&&(!f.node||f.changes)&&++u}return u}function Li(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Go(e,n){n===void 0&&(n=!0);var u=e.doc,l={},f=l.cursors=document.createDocumentFragment(),y=l.selection=document.createDocumentFragment(),P=e.options.$customCursor;P&&(n=!0);for(var B=0;B<u.sel.ranges.length;B++)if(!(!n&&B==u.sel.primIndex)){var W=u.sel.ranges[B];if(!(W.from().line>=e.display.viewTo||W.to().line<e.display.viewFrom)){var J=W.empty();if(P){var ye=P(e,W);ye&&al(e,ye,f)}else(J||e.options.showCursorWhenSelecting)&&al(e,W.head,f);J||Mu(e,W,y)}}return l}function al(e,n,u){var l=Xn(e,n,"div",null,null,!e.options.singleCursorHeightPerLine),f=u.appendChild(me("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)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var y=Wo(e,n,"div",null,null),P=y.right-y.left;f.style.width=(P>0?P:e.defaultCharWidth())+"px"}if(l.other){var B=u.appendChild(me("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));B.style.display="",B.style.left=l.other.left+"px",B.style.top=l.other.top+"px",B.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function $o(e,n){return e.top-n.top||e.left-n.left}function Mu(e,n,u){var l=e.display,f=e.doc,y=document.createDocumentFragment(),P=gn(e.display),B=P.left,W=Math.max(l.sizerWidth,Zi(e)-l.sizer.offsetLeft)-P.right,J=f.direction=="ltr";function ye(it,pt,wt,$e){pt<0&&(pt=0),pt=Math.round(pt),$e=Math.round($e),y.appendChild(me("div",null,"CodeMirror-selected","position: absolute; left: "+it+`px;
18
- top: `+pt+"px; width: "+(wt==null?W-it:wt)+`px;
19
- height: `+($e-pt)+"px"))}function Se(it,pt,wt){var $e=xt(f,it),Tt=$e.text.length,nr,br;function Zt(Rr,dn){return Wo(e,qe(it,Rr),"div",$e,dn)}function Tn(Rr,dn,_r){var jr=Fu(e,$e,null,Rr),Tr=dn=="ltr"==(_r=="after")?"left":"right",vr=_r=="after"?jr.begin:jr.end-(/\s/.test($e.text.charAt(jr.end-1))?2:1);return Zt(vr,Tr)[Tr]}var mn=T($e,f.direction);return k(mn,pt||0,wt==null?Tt:wt,function(Rr,dn,_r,jr){var Tr=_r=="ltr",vr=Zt(Rr,Tr?"left":"right"),pn=Zt(dn-1,Tr?"right":"left"),da=pt==null&&Rr==0,bi=wt==null&&dn==Tt,an=jr==0,li=!mn||jr==mn.length-1;if(pn.top-vr.top<=3){var Ur=(J?da:bi)&&an,Dl=(J?bi:da)&&li,Ln=Ur?B:(Tr?vr:pn).left,Vr=Dl?W:(Tr?pn:vr).right;ye(Ln,vr.top,Vr-Ln,vr.bottom)}else{var La,Wr,Ra,If;Tr?(La=J&&da&&an?B:vr.left,Wr=J?W:Tn(Rr,_r,"before"),Ra=J?B:Tn(dn,_r,"after"),If=J&&bi&&li?W:pn.right):(La=J?Tn(Rr,_r,"before"):B,Wr=!J&&da&&an?W:vr.right,Ra=!J&&bi&&li?B:pn.left,If=J?Tn(dn,_r,"after"):W),ye(La,vr.top,Wr-La,vr.bottom),vr.bottom<pn.top&&ye(B,vr.bottom,null,pn.top),ye(Ra,pn.top,If-Ra,pn.bottom)}(!nr||$o(vr,nr)<0)&&(nr=vr),$o(pn,nr)<0&&(nr=pn),(!br||$o(vr,br)<0)&&(br=vr),$o(pn,br)<0&&(br=pn)}),{start:nr,end:br}}var Ie=n.from(),Ee=n.to();if(Ie.line==Ee.line)Se(Ie.line,Ie.ch,Ee.ch);else{var Ue=xt(f,Ie.line),Ye=xt(f,Ee.line),et=Yn(Ue)==Yn(Ye),at=Se(Ie.line,Ie.ch,et?Ue.text.length+1:null).end,lt=Se(Ee.line,et?0:null,Ee.ch).start;et&&(at.top<lt.top-2?(ye(at.right,at.top,null,at.bottom),ye(B,lt.top,lt.left,lt.bottom)):ye(at.right,at.top,lt.left-at.right,at.bottom)),at.bottom<lt.top&&ye(B,at.bottom,null,lt.top)}u.appendChild(y)}function ol(e){if(!!e.state.focused){var n=e.display;clearInterval(n.blinker);var u=!0;n.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?n.blinker=setInterval(function(){e.hasFocus()||xa(e),n.cursorDiv.style.visibility=(u=!u)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(n.cursorDiv.style.visibility="hidden")}}function sl(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Ko(e))}function eo(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&xa(e))},100)}function Ko(e,n){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(te(e,"focus",e,n),e.state.focused=!0,Pe(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),S&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),ol(e))}function xa(e,n){e.state.delayingBlurEvent||(e.state.focused&&(te(e,"blur",e,n),e.state.focused=!1,q(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Yo(e){for(var n=e.display,u=n.lineDiv.offsetTop,l=Math.max(0,n.scroller.getBoundingClientRect().top),f=n.lineDiv.getBoundingClientRect().top,y=0,P=0;P<n.view.length;P++){var B=n.view[P],W=e.options.lineWrapping,J=void 0,ye=0;if(!B.hidden){if(f+=B.line.height,b&&C<8){var Se=B.node.offsetTop+B.node.offsetHeight;J=Se-u,u=Se}else{var Ie=B.node.getBoundingClientRect();J=Ie.bottom-Ie.top,!W&&B.text.firstChild&&(ye=B.text.firstChild.getBoundingClientRect().right-Ie.left-1)}var Ee=B.line.height-J;if((Ee>.005||Ee<-.005)&&(f<l&&(y-=Ee),Fn(B.line,J),ll(B.line),B.rest))for(var Ue=0;Ue<B.rest.length;Ue++)ll(B.rest[Ue]);if(ye>e.display.sizerWidth){var Ye=Math.ceil(ye/Dn(e.display));Ye>e.display.maxLineLength&&(e.display.maxLineLength=Ye,e.display.maxLine=B.line,e.display.maxLineChanged=!0)}}}Math.abs(y)>2&&(n.scroller.scrollTop+=y)}function ll(e){if(e.widgets)for(var n=0;n<e.widgets.length;++n){var u=e.widgets[n],l=u.node.parentNode;l&&(u.height=l.offsetHeight)}}function to(e,n,u){var l=u&&u.top!=null?Math.max(0,u.top):e.scroller.scrollTop;l=Math.floor(l-Ja(e));var f=u&&u.bottom!=null?u.bottom:l+e.wrapper.clientHeight,y=Kn(n,l),P=Kn(n,f);if(u&&u.ensure){var B=u.ensure.from.line,W=u.ensure.to.line;B<y?(y=B,P=Kn(n,pi(xt(n,B))+e.wrapper.clientHeight)):Math.min(W,n.lastLine())>=P&&(y=Kn(n,pi(xt(n,W))-e.wrapper.clientHeight),P=W)}return{from:y,to:Math.max(P,y+1)}}function bc(e,n){if(!ce(e,"scrollCursorIntoView")){var u=e.display,l=u.sizer.getBoundingClientRect(),f=null;if(n.top+l.top<0?f=!0:n.bottom+l.top>(window.innerHeight||document.documentElement.clientHeight)&&(f=!1),f!=null&&!K){var y=me("div","\u200B",null,`position: absolute;
16
+ `,n);f==-1&&(f=e.length);var g=e.slice(n,e.charAt(f-1)=="\r"?f-1:f),P=g.indexOf("\r");P!=-1?(u.push(g.slice(0,P)),n+=P+1):(u.push(g),n=f+1)}return u}:function(e){return e.split(/\r\n?|\n/)},Sn=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(n){return!1}}:function(e){var n;try{n=e.ownerDocument.selection.createRange()}catch(u){}return!n||n.parentElement()!=e?!1:n.compareEndPoints("StartToEnd",n)!=0},Rn=function(){var e=me("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Zr=null;function Oi(e){if(Zr!=null)return Zr;var n=ge(e,me("span","x")),u=n.getBoundingClientRect(),l=se(n,0,1).getBoundingClientRect();return Zr=Math.abs(u.left-l.left)>1}var Ti={},ln={};function An(e,n){arguments.length>2&&(n.dependencies=Array.prototype.slice.call(arguments,2)),Ti[e]=n}function Gn(e,n){ln[e]=n}function $n(e){if(typeof e=="string"&&ln.hasOwnProperty(e))e=ln[e];else if(e&&typeof e.name=="string"&&ln.hasOwnProperty(e.name)){var n=ln[e.name];typeof n=="string"&&(n={name:n}),e=mt(n,e),e.name=n.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return $n("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return $n("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function wn(e,n){n=$n(n);var u=Ti[n.name];if(!u)return wn(e,"text/plain");var l=u(e,n);if(ei.hasOwnProperty(n.name)){var f=ei[n.name];for(var g in f)!f.hasOwnProperty(g)||(l.hasOwnProperty(g)&&(l["_"+g]=l[g]),l[g]=f[g])}if(l.name=n.name,n.helperType&&(l.helperType=n.helperType),n.modeProps)for(var P in n.modeProps)l[P]=n.modeProps[P];return l}var ei={};function Pi(e,n){var u=ei.hasOwnProperty(e)?ei[e]:ei[e]={};He(n,u)}function Gr(e,n){if(n===!0)return n;if(e.copyState)return e.copyState(n);var u={};for(var l in n){var f=n[l];f instanceof Array&&(f=f.concat([])),u[l]=f}return u}function qr(e,n){for(var u;e.innerMode&&(u=e.innerMode(n),!(!u||u.mode==e));)n=u.state,e=u.mode;return u||{mode:e,state:n}}function ti(e,n,u){return e.startState?e.startState(n,u):!0}var hr=function(e,n,u){this.pos=this.start=0,this.string=e,this.tabSize=n||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=u};hr.prototype.eol=function(){return this.pos>=this.string.length},hr.prototype.sol=function(){return this.pos==this.lineStart},hr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},hr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},hr.prototype.eat=function(e){var n=this.string.charAt(this.pos),u;if(typeof e=="string"?u=n==e:u=n&&(e.test?e.test(n):e(n)),u)return++this.pos,n},hr.prototype.eatWhile=function(e){for(var n=this.pos;this.eat(e););return this.pos>n},hr.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},hr.prototype.skipToEnd=function(){this.pos=this.string.length},hr.prototype.skipTo=function(e){var n=this.string.indexOf(e,this.pos);if(n>-1)return this.pos=n,!0},hr.prototype.backUp=function(e){this.pos-=e},hr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Je(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Je(this.string,this.lineStart,this.tabSize):0)},hr.prototype.indentation=function(){return Je(this.string,null,this.tabSize)-(this.lineStart?Je(this.string,this.lineStart,this.tabSize):0)},hr.prototype.match=function(e,n,u){if(typeof e=="string"){var l=function(P){return u?P.toLowerCase():P},f=this.string.substr(this.pos,e.length);if(l(f)==l(e))return n!==!1&&(this.pos+=e.length),!0}else{var g=this.string.slice(this.pos).match(e);return g&&g.index>0?null:(g&&n!==!1&&(this.pos+=g[0].length),g)}},hr.prototype.current=function(){return this.string.slice(this.start,this.pos)},hr.prototype.hideFirstChars=function(e,n){this.lineStart+=e;try{return n()}finally{this.lineStart-=e}},hr.prototype.lookAhead=function(e){var n=this.lineOracle;return n&&n.lookAhead(e)},hr.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function xt(e,n){if(n-=e.first,n<0||n>=e.size)throw new Error("There is no line "+(n+e.first)+" in the document.");for(var u=e;!u.lines;)for(var l=0;;++l){var f=u.children[l],g=f.chunkSize();if(n<g){u=f;break}n-=g}return u.lines[n]}function fi(e,n,u){var l=[],f=n.line;return e.iter(n.line,u.line+1,function(g){var P=g.text;f==u.line&&(P=P.slice(0,u.ch)),f==n.line&&(P=P.slice(n.ch)),l.push(P),++f}),l}function Ii(e,n,u){var l=[];return e.iter(n,u,function(f){l.push(f.text)}),l}function Fn(e,n){var u=n-e.height;if(u)for(var l=e;l;l=l.parent)l.height+=u}function qt(e){if(e.parent==null)return null;for(var n=e.parent,u=ft(n.lines,e),l=n.parent;l;n=l,l=l.parent)for(var f=0;l.children[f]!=n;++f)u+=l.children[f].chunkSize();return u+n.first}function Kn(e,n){var u=e.first;e:do{for(var l=0;l<e.children.length;++l){var f=e.children[l],g=f.height;if(n<g){e=f;continue e}n-=g,u+=f.chunkSize()}return u}while(!e.lines);for(var P=0;P<e.lines.length;++P){var B=e.lines[P],H=B.height;if(n<H)break;n-=H}return u+P}function ri(e,n){return n>=e.first&&n<e.first+e.size}function ya(e,n){return String(e.lineNumberFormatter(n+e.firstLineNumber))}function qe(e,n,u){if(u===void 0&&(u=null),!(this instanceof qe))return new qe(e,n,u);this.line=e,this.ch=n,this.sticky=u}function Pt(e,n){return e.line-n.line||e.ch-n.ch}function ci(e,n){return e.sticky==n.sticky&&Pt(e,n)==0}function ae(e){return qe(e.line,e.ch)}function Ae(e,n){return Pt(e,n)<0?n:e}function Ge(e,n){return Pt(e,n)<0?e:n}function tt(e,n){return Math.max(e.first,Math.min(n,e.first+e.size-1))}function rt(e,n){if(n.line<e.first)return qe(e.first,0);var u=e.first+e.size-1;return n.line>u?qe(u,xt(e,u).text.length):Gt(n,xt(e,n.line).text.length)}function Gt(e,n){var u=e.ch;return u==null||u>n?qe(e.line,n):u<0?qe(e.line,0):e}function Xt(e,n){for(var u=[],l=0;l<n.length;l++)u[l]=rt(e,n[l]);return u}var kr=function(e,n){this.state=e,this.lookAhead=n},Mr=function(e,n,u,l){this.state=n,this.doc=e,this.line=u,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Mr.prototype.lookAhead=function(e){var n=this.doc.getLine(this.line+e);return n!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),n},Mr.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var n=this.baseTokens[this.baseTokenPos+1];return{type:n&&n.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Mr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Mr.fromSaved=function(e,n,u){return n instanceof kr?new Mr(e,Gr(e.mode,n.state),u,n.lookAhead):new Mr(e,Gr(e.mode,n),u)},Mr.prototype.save=function(e){var n=e!==!1?Gr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new kr(n,this.maxLookAhead):n};function _t(e,n,u,l){var f=[e.state.modeGen],g={};cu(e,n.text,e.doc.mode,u,function(J,ye){return f.push(J,ye)},g,l);for(var P=u.state,B=function(J){u.baseTokens=f;var ye=e.state.overlays[J],Se=1,Ie=0;u.state=!0,cu(e,n.text,ye.mode,u,function(Ee,Ue){for(var Ye=Se;Ie<Ee;){var et=f[Se];et>Ee&&f.splice(Se,1,Ee,f[Se+1],et),Se+=2,Ie=Math.min(Ee,et)}if(!!Ue)if(ye.opaque)f.splice(Ye,Se-Ye,Ee,"overlay "+Ue),Se=Ye+2;else for(;Ye<Se;Ye+=2){var at=f[Ye+1];f[Ye+1]=(at?at+" ":"")+"overlay "+Ue}},g),u.state=P,u.baseTokens=null,u.baseTokenPos=1},H=0;H<e.state.overlays.length;++H)B(H);return{styles:f,classes:g.bgClass||g.textClass?g:null}}function uu(e,n,u){if(!n.styles||n.styles[0]!=e.state.modeGen){var l=un(e,qt(n)),f=n.text.length>e.options.maxHighlightLength&&Gr(e.doc.mode,l.state),g=_t(e,n,l);f&&(l.state=f),n.stateAfter=l.save(!f),n.styles=g.styles,g.classes?n.styleClasses=g.classes:n.styleClasses&&(n.styleClasses=null),u===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return n.styles}function un(e,n,u){var l=e.doc,f=e.display;if(!l.mode.startState)return new Mr(l,!0,n);var g=_f(e,n,u),P=g>l.first&&xt(l,g-1).stateAfter,B=P?Mr.fromSaved(l,P,g):new Mr(l,ti(l.mode),g);return l.iter(g,n,function(H){Ms(e,H.text,B);var J=B.line;H.stateAfter=J==n-1||J%5==0||J>=f.viewFrom&&J<f.viewTo?B.save():null,B.nextLine()}),u&&(l.modeFrontier=B.line),B}function Ms(e,n,u,l){var f=e.doc.mode,g=new hr(n,e.options.tabSize,u);for(g.start=g.pos=l||0,n==""&&Lo(f,u.state);!g.eol();)Ls(f,g,u.state),g.start=g.pos}function Lo(e,n){if(e.blankLine)return e.blankLine(n);if(!!e.innerMode){var u=qr(e,n);if(u.mode.blankLine)return u.mode.blankLine(u.state)}}function Ls(e,n,u,l){for(var f=0;f<10;f++){l&&(l[0]=qr(e,u).mode);var g=e.token(n,u);if(n.pos>n.start)return g}throw new Error("Mode "+e.name+" failed to advance stream.")}var Rs=function(e,n,u){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=n||null,this.state=u};function Ds(e,n,u,l){var f=e.doc,g=f.mode,P;n=rt(f,n);var B=xt(f,n.line),H=un(e,n.line,u),J=new hr(B.text,e.options.tabSize,H),ye;for(l&&(ye=[]);(l||J.pos<n.ch)&&!J.eol();)J.start=J.pos,P=Ls(g,J,H.state),l&&ye.push(new Rs(J,P,Gr(f.mode,H.state)));return l?ye:new Rs(J,P,H.state)}function fu(e,n){if(e)for(;;){var u=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!u)break;e=e.slice(0,u.index)+e.slice(u.index+u[0].length);var l=u[1]?"bgClass":"textClass";n[l]==null?n[l]=u[2]:new RegExp("(?:^|\\s)"+u[2]+"(?:$|\\s)").test(n[l])||(n[l]+=" "+u[2])}return e}function cu(e,n,u,l,f,g,P){var B=u.flattenSpans;B==null&&(B=e.options.flattenSpans);var H=0,J=null,ye=new hr(n,e.options.tabSize,l),Se,Ie=e.options.addModeClass&&[null];for(n==""&&fu(Lo(u,l.state),g);!ye.eol();){if(ye.pos>e.options.maxHighlightLength?(B=!1,P&&Ms(e,n,l,ye.pos),ye.pos=n.length,Se=null):Se=fu(Ls(u,ye,l.state,Ie),g),Ie){var Ee=Ie[0].name;Ee&&(Se="m-"+(Se?Ee+" "+Se:Ee))}if(!B||J!=Se){for(;H<ye.start;)H=Math.min(ye.start,H+5e3),f(H,J);J=Se}ye.start=ye.pos}for(;H<ye.pos;){var Ue=Math.min(ye.pos,H+5e3);f(Ue,J),H=Ue}}function _f(e,n,u){for(var l,f,g=e.doc,P=u?-1:n-(e.doc.mode.innerMode?1e3:100),B=n;B>P;--B){if(B<=g.first)return g.first;var H=xt(g,B-1),J=H.stateAfter;if(J&&(!u||B+(J instanceof kr?J.lookAhead:0)<=g.modeFrontier))return B;var ye=Je(H.text,null,e.options.tabSize);(f==null||l>ye)&&(f=B-1,l=ye)}return f}function ec(e,n){if(e.modeFrontier=Math.min(e.modeFrontier,n),!(e.highlightFrontier<n-10)){for(var u=e.first,l=n-1;l>u;l--){var f=xt(e,l).stateAfter;if(f&&(!(f instanceof kr)||l+f.lookAhead<n)){u=l+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,u)}}var tc=!1,Fi=!1;function rc(){tc=!0}function nc(){Fi=!0}function Ro(e,n,u){this.marker=e,this.from=n,this.to=u}function Ha(e,n){if(e)for(var u=0;u<e.length;++u){var l=e[u];if(l.marker==n)return l}}function ic(e,n){for(var u,l=0;l<e.length;++l)e[l]!=n&&(u||(u=[])).push(e[l]);return u}function Jd(e,n,u){var l=u&&window.WeakSet&&(u.markedSpans||(u.markedSpans=new WeakSet));l&&l.has(e.markedSpans)?e.markedSpans.push(n):(e.markedSpans=e.markedSpans?e.markedSpans.concat([n]):[n],l&&l.add(e.markedSpans)),n.marker.attachLine(e)}function Xd(e,n,u){var l;if(e)for(var f=0;f<e.length;++f){var g=e[f],P=g.marker,B=g.from==null||(P.inclusiveLeft?g.from<=n:g.from<n);if(B||g.from==n&&P.type=="bookmark"&&(!u||!g.marker.insertLeft)){var H=g.to==null||(P.inclusiveRight?g.to>=n:g.to>n);(l||(l=[])).push(new Ro(P,g.from,H?null:g.to))}}return l}function Qd(e,n,u){var l;if(e)for(var f=0;f<e.length;++f){var g=e[f],P=g.marker,B=g.to==null||(P.inclusiveRight?g.to>=n:g.to>n);if(B||g.from==n&&P.type=="bookmark"&&(!u||g.marker.insertLeft)){var H=g.from==null||(P.inclusiveLeft?g.from<=n:g.from<n);(l||(l=[])).push(new Ro(P,H?null:g.from-n,g.to==null?null:g.to-n))}}return l}function du(e,n){if(n.full)return null;var u=ri(e,n.from.line)&&xt(e,n.from.line).markedSpans,l=ri(e,n.to.line)&&xt(e,n.to.line).markedSpans;if(!u&&!l)return null;var f=n.from.ch,g=n.to.ch,P=Pt(n.from,n.to)==0,B=Xd(u,f,P),H=Qd(l,g,P),J=n.text.length==1,ye=St(n.text).length+(J?f:0);if(B)for(var Se=0;Se<B.length;++Se){var Ie=B[Se];if(Ie.to==null){var Ee=Ha(H,Ie.marker);Ee?J&&(Ie.to=Ee.to==null?null:Ee.to+ye):Ie.to=f}}if(H)for(var Ue=0;Ue<H.length;++Ue){var Ye=H[Ue];if(Ye.to!=null&&(Ye.to+=ye),Ye.from==null){var et=Ha(B,Ye.marker);et||(Ye.from=ye,J&&(B||(B=[])).push(Ye))}else Ye.from+=ye,J&&(B||(B=[])).push(Ye)}B&&(B=pu(B)),H&&H!=B&&(H=pu(H));var at=[B];if(!J){var lt=n.text.length-2,it;if(lt>0&&B)for(var pt=0;pt<B.length;++pt)B[pt].to==null&&(it||(it=[])).push(new Ro(B[pt].marker,null,null));for(var wt=0;wt<lt;++wt)at.push(it);at.push(H)}return at}function pu(e){for(var n=0;n<e.length;++n){var u=e[n];u.from!=null&&u.from==u.to&&u.marker.clearWhenEmpty!==!1&&e.splice(n--,1)}return e.length?e:null}function hu(e,n,u){var l=null;if(e.iter(n.line,u.line+1,function(Ee){if(Ee.markedSpans)for(var Ue=0;Ue<Ee.markedSpans.length;++Ue){var Ye=Ee.markedSpans[Ue].marker;Ye.readOnly&&(!l||ft(l,Ye)==-1)&&(l||(l=[])).push(Ye)}}),!l)return null;for(var f=[{from:n,to:u}],g=0;g<l.length;++g)for(var P=l[g],B=P.find(0),H=0;H<f.length;++H){var J=f[H];if(!(Pt(J.to,B.from)<0||Pt(J.from,B.to)>0)){var ye=[H,1],Se=Pt(J.from,B.from),Ie=Pt(J.to,B.to);(Se<0||!P.inclusiveLeft&&!Se)&&ye.push({from:J.from,to:B.from}),(Ie>0||!P.inclusiveRight&&!Ie)&&ye.push({from:B.to,to:J.to}),f.splice.apply(f,ye),H+=ye.length-3}}return f}function vu(e){var n=e.markedSpans;if(!!n){for(var u=0;u<n.length;++u)n[u].marker.detachLine(e);e.markedSpans=null}}function ac(e,n){if(!!n){for(var u=0;u<n.length;++u)n[u].marker.attachLine(e);e.markedSpans=n}}function Ns(e){return e.inclusiveLeft?-1:0}function Bs(e){return e.inclusiveRight?1:0}function gu(e,n){var u=e.lines.length-n.lines.length;if(u!=0)return u;var l=e.find(),f=n.find(),g=Pt(l.from,f.from)||Ns(e)-Ns(n);if(g)return-g;var P=Pt(l.to,f.to)||Bs(e)-Bs(n);return P||n.id-e.id}function za(e,n){var u=Fi&&e.markedSpans,l;if(u)for(var f=void 0,g=0;g<u.length;++g)f=u[g],f.marker.collapsed&&(n?f.from:f.to)==null&&(!l||gu(l,f.marker)<0)&&(l=f.marker);return l}function js(e){return za(e,!0)}function Ki(e){return za(e,!1)}function oc(e,n){var u=Fi&&e.markedSpans,l;if(u)for(var f=0;f<u.length;++f){var g=u[f];g.marker.collapsed&&(g.from==null||g.from<n)&&(g.to==null||g.to>n)&&(!l||gu(l,g.marker)<0)&&(l=g.marker)}return l}function Do(e,n,u,l,f){var g=xt(e,n),P=Fi&&g.markedSpans;if(P)for(var B=0;B<P.length;++B){var H=P[B];if(!!H.marker.collapsed){var J=H.marker.find(0),ye=Pt(J.from,u)||Ns(H.marker)-Ns(f),Se=Pt(J.to,l)||Bs(H.marker)-Bs(f);if(!(ye>=0&&Se<=0||ye<=0&&Se>=0)&&(ye<=0&&(H.marker.inclusiveRight&&f.inclusiveLeft?Pt(J.to,u)>=0:Pt(J.to,u)>0)||ye>=0&&(H.marker.inclusiveRight&&f.inclusiveLeft?Pt(J.from,l)<=0:Pt(J.from,l)<0)))return!0}}}function Yn(e){for(var n;n=js(e);)e=n.find(-1,!0).line;return e}function yu(e){for(var n;n=Ki(e);)e=n.find(1,!0).line;return e}function sc(e){for(var n,u;n=Ki(e);)e=n.find(1,!0).line,(u||(u=[])).push(e);return u}function Ga(e,n){var u=xt(e,n),l=Yn(u);return u==l?n:qt(l)}function Us(e,n){if(n>e.lastLine())return n;var u=xt(e,n),l;if(!di(e,u))return n;for(;l=Ki(u);)u=l.find(1,!0).line;return qt(u)+1}function di(e,n){var u=Fi&&n.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&&vr(e,n,l))return!0}}}function vr(e,n,u){if(u.to==null){var l=u.marker.find(1,!0);return vr(e,l.line,Ha(l.line.markedSpans,u.marker))}if(u.marker.inclusiveRight&&u.to==n.text.length)return!0;for(var f=void 0,g=0;g<n.markedSpans.length;++g)if(f=n.markedSpans[g],f.marker.collapsed&&!f.marker.widgetNode&&f.from==u.to&&(f.to==null||f.to!=u.from)&&(f.marker.inclusiveLeft||u.marker.inclusiveRight)&&vr(e,n,f))return!0}function pi(e){e=Yn(e);for(var n=0,u=e.parent,l=0;l<u.lines.length;++l){var f=u.lines[l];if(f==e)break;n+=f.height}for(var g=u.parent;g;u=g,g=u.parent)for(var P=0;P<g.children.length;++P){var B=g.children[P];if(B==u)break;n+=B.height}return n}function Yi(e){if(e.height==0)return 0;for(var n=e.text.length,u,l=e;u=js(l);){var f=u.find(0,!0);l=f.from.line,n+=f.from.ch-f.to.ch}for(l=e;u=Ki(l);){var g=u.find(0,!0);n-=l.text.length-g.from.ch,l=g.to.line,n+=l.text.length-g.to.ch}return n}function Vs(e){var n=e.display,u=e.doc;n.maxLine=xt(u,u.first),n.maxLineLength=Yi(n.maxLine),n.maxLineChanged=!0,u.iter(function(l){var f=Yi(l);f>n.maxLineLength&&(n.maxLineLength=f,n.maxLine=l)})}var Ji=function(e,n,u){this.text=e,ac(this,n),this.height=u?u(this):1};Ji.prototype.lineNo=function(){return qt(this)},Re(Ji);function ki(e,n,u,l){e.text=n,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),vu(e),ac(e,u);var f=l?l(e):1;f!=e.height&&Fn(e,f)}function Xi(e){e.parent=null,vu(e)}var Ws={},Hs={};function mu(e,n){if(!e||/^\s*$/.test(e))return null;var u=n.addModeClass?Hs:Ws;return u[e]||(u[e]=e.replace(/\S+/g,"cm-$&"))}function zs(e,n){var u=pe("span",null,null,S?"padding-right: .1px":null),l={pre:pe("pre",[u],"CodeMirror-line"),content:u,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};n.measure={};for(var f=0;f<=(n.rest?n.rest.length:0);f++){var g=f?n.rest[f-1]:n.line,P=void 0;l.pos=0,l.addToken=$s,$i(e.display.measure)&&(P=T(g,e.doc.direction))&&(l.addToken=lc(l.addToken,P)),l.map=[];var B=n!=e.display.externalMeasured&&qt(g);uc(g,l,uu(e,g,B)),g.styleClasses&&(g.styleClasses.bgClass&&(l.bgClass=Te(g.styleClasses.bgClass,l.bgClass||"")),g.styleClasses.textClass&&(l.textClass=Te(g.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Ei(e.display.measure))),f==0?(n.measure.map=l.map,n.measure.cache={}):((n.measure.maps||(n.measure.maps=[])).push(l.map),(n.measure.caches||(n.measure.caches=[])).push({}))}if(S){var H=l.content.lastChild;(/\bcm-tab\b/.test(H.className)||H.querySelector&&H.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return te(e,"renderLine",e,n.line,l.pre),l.pre.className&&(l.textClass=Te(l.pre.className,l.textClass||"")),l}function Gs(e){var n=me("span","\u2022","cm-invalidchar");return n.title="\\u"+e.charCodeAt(0).toString(16),n.setAttribute("aria-label",n.title),n}function $s(e,n,u,l,f,g,P){if(!!n){var B=e.splitSpaces?Qi(n,e.trailingSpace):n,H=e.cm.state.specialChars,J=!1,ye;if(!H.test(n))e.col+=n.length,ye=document.createTextNode(B),e.map.push(e.pos,e.pos+n.length,ye),b&&C<9&&(J=!0),e.pos+=n.length;else{ye=document.createDocumentFragment();for(var Se=0;;){H.lastIndex=Se;var Ie=H.exec(n),Ee=Ie?Ie.index-Se:n.length-Se;if(Ee){var Ue=document.createTextNode(B.slice(Se,Se+Ee));b&&C<9?ye.appendChild(me("span",[Ue])):ye.appendChild(Ue),e.map.push(e.pos,e.pos+Ee,Ue),e.col+=Ee,e.pos+=Ee}if(!Ie)break;Se+=Ee+1;var Ye=void 0;if(Ie[0]==" "){var et=e.cm.options.tabSize,at=et-e.col%et;Ye=ye.appendChild(me("span",Et(at),"cm-tab")),Ye.setAttribute("role","presentation"),Ye.setAttribute("cm-text"," "),e.col+=at}else Ie[0]=="\r"||Ie[0]==`
17
+ `?(Ye=ye.appendChild(me("span",Ie[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ye.setAttribute("cm-text",Ie[0]),e.col+=1):(Ye=e.cm.options.specialCharPlaceholder(Ie[0]),Ye.setAttribute("cm-text",Ie[0]),b&&C<9?ye.appendChild(me("span",[Ye])):ye.appendChild(Ye),e.col+=1);e.map.push(e.pos,e.pos+1,Ye),e.pos++}}if(e.trailingSpace=B.charCodeAt(n.length-1)==32,u||l||f||J||g||P){var lt=u||"";l&&(lt+=l),f&&(lt+=f);var it=me("span",[ye],lt,g);if(P)for(var pt in P)P.hasOwnProperty(pt)&&pt!="style"&&pt!="class"&&it.setAttribute(pt,P[pt]);return e.content.appendChild(it)}e.content.appendChild(ye)}}function Qi(e,n){if(e.length>1&&!/ /.test(e))return e;for(var u=n,l="",f=0;f<e.length;f++){var g=e.charAt(f);g==" "&&u&&(f==e.length-1||e.charCodeAt(f+1)==32)&&(g="\xA0"),l+=g,u=g==" "}return l}function lc(e,n){return function(u,l,f,g,P,B,H){f=f?f+" cm-force-border":"cm-force-border";for(var J=u.pos,ye=J+l.length;;){for(var Se=void 0,Ie=0;Ie<n.length&&(Se=n[Ie],!(Se.to>J&&Se.from<=J));Ie++);if(Se.to>=ye)return e(u,l,f,g,P,B,H);e(u,l.slice(0,Se.to-J),f,g,null,B,H),g=null,l=l.slice(Se.to-J),J=Se.to}}}function lr(e,n,u,l){var f=!l&&u.widgetNode;f&&e.map.push(e.pos,e.pos+n,f),!l&&e.cm.display.input.needsContentAttribute&&(f||(f=e.content.appendChild(document.createElement("span"))),f.setAttribute("cm-marker",u.id)),f&&(e.cm.display.input.setUneditable(f),e.content.appendChild(f)),e.pos+=n,e.trailingSpace=!1}function uc(e,n,u){var l=e.markedSpans,f=e.text,g=0;if(!l){for(var P=1;P<u.length;P+=2)n.addToken(n,f.slice(g,g=u[P]),mu(u[P+1],n.cm.options));return}for(var B=f.length,H=0,J=1,ye="",Se,Ie,Ee=0,Ue,Ye,et,at,lt;;){if(Ee==H){Ue=Ye=et=Ie="",lt=null,at=null,Ee=1/0;for(var it=[],pt=void 0,wt=0;wt<l.length;++wt){var $e=l[wt],Tt=$e.marker;if(Tt.type=="bookmark"&&$e.from==H&&Tt.widgetNode)it.push(Tt);else if($e.from<=H&&($e.to==null||$e.to>H||Tt.collapsed&&$e.to==H&&$e.from==H)){if($e.to!=null&&$e.to!=H&&Ee>$e.to&&(Ee=$e.to,Ye=""),Tt.className&&(Ue+=" "+Tt.className),Tt.css&&(Ie=(Ie?Ie+";":"")+Tt.css),Tt.startStyle&&$e.from==H&&(et+=" "+Tt.startStyle),Tt.endStyle&&$e.to==Ee&&(pt||(pt=[])).push(Tt.endStyle,$e.to),Tt.title&&((lt||(lt={})).title=Tt.title),Tt.attributes)for(var nr in Tt.attributes)(lt||(lt={}))[nr]=Tt.attributes[nr];Tt.collapsed&&(!at||gu(at.marker,Tt)<0)&&(at=$e)}else $e.from>H&&Ee>$e.from&&(Ee=$e.from)}if(pt)for(var br=0;br<pt.length;br+=2)pt[br+1]==Ee&&(Ye+=" "+pt[br]);if(!at||at.from==H)for(var Zt=0;Zt<it.length;++Zt)lr(n,0,it[Zt]);if(at&&(at.from||0)==H){if(lr(n,(at.to==null?B+1:at.to)-H,at.marker,at.from==null),at.to==null)return;at.to==H&&(at=!1)}}if(H>=B)break;for(var Tn=Math.min(B,Ee);;){if(ye){var mn=H+ye.length;if(!at){var Rr=mn>Tn?ye.slice(0,Tn-H):ye;n.addToken(n,Rr,Se?Se+Ue:Ue,et,H+Rr.length==Ee?Ye:"",Ie,lt)}if(mn>=Tn){ye=ye.slice(Tn-H),H=Tn;break}H=mn,et=""}ye=f.slice(g,g=u[J++]),Se=mu(u[J++],n.cm.options)}}}function xu(e,n,u){this.line=n,this.rest=sc(n),this.size=this.rest?qt(St(this.rest))-u+1:1,this.node=this.text=null,this.hidden=di(e,n)}function No(e,n,u){for(var l=[],f,g=n;g<u;g=f){var P=new xu(e.doc,xt(e.doc,g),g);f=g+P.size,l.push(P)}return l}var fn=null;function bu(e){fn?fn.ops.push(e):e.ownsGroup=fn={ops:[e],delayedCallbacks:[]}}function Su(e){var n=e.delayedCallbacks,u=0;do{for(;u<n.length;u++)n[u].call(null);for(var l=0;l<e.ops.length;l++){var f=e.ops[l];if(f.cursorActivityHandlers)for(;f.cursorActivityCalled<f.cursorActivityHandlers.length;)f.cursorActivityHandlers[f.cursorActivityCalled++].call(null,f.cm)}}while(u<n.length)}function Ks(e,n){var u=e.ownsGroup;if(!!u)try{Su(u)}finally{fn=null,n(u)}}var $a=null;function ur(e,n){var u=_(e,n);if(!!u.length){var l=Array.prototype.slice.call(arguments,2),f;fn?f=fn.delayedCallbacks:$a?f=$a:(f=$a=[],setTimeout(fc,0));for(var g=function(B){f.push(function(){return u[B].apply(null,l)})},P=0;P<u.length;++P)g(P)}}function fc(){var e=$a;$a=null;for(var n=0;n<e.length;++n)e[n]()}function Bo(e,n,u,l){for(var f=0;f<n.changes.length;f++){var g=n.changes[f];g=="text"?cc(e,n):g=="gutter"?Ya(e,n,u,l):g=="class"?Ys(e,n):g=="widget"&&dc(e,n,l)}n.changes=null}function Ka(e){return e.node==e.text&&(e.node=me("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),b&&C<8&&(e.node.style.zIndex=2)),e.node}function Au(e,n){var u=n.bgClass?n.bgClass+" "+(n.line.bgClass||""):n.line.bgClass;if(u&&(u+=" CodeMirror-linebackground"),n.background)u?n.background.className=u:(n.background.parentNode.removeChild(n.background),n.background=null);else if(u){var l=Ka(n);n.background=l.insertBefore(me("div",null,u),l.firstChild),e.display.input.setUneditable(n.background)}}function wu(e,n){var u=e.display.externalMeasured;return u&&u.line==n.line?(e.display.externalMeasured=null,n.measure=u.measure,u.built):zs(e,n)}function cc(e,n){var u=n.text.className,l=wu(e,n);n.text==n.node&&(n.node=l.pre),n.text.parentNode.replaceChild(l.pre,n.text),n.text=l.pre,l.bgClass!=n.bgClass||l.textClass!=n.textClass?(n.bgClass=l.bgClass,n.textClass=l.textClass,Ys(e,n)):u&&(n.text.className=u)}function Ys(e,n){Au(e,n),n.line.wrapClass?Ka(n).className=n.line.wrapClass:n.node!=n.text&&(n.node.className="");var u=n.textClass?n.textClass+" "+(n.line.textClass||""):n.line.textClass;n.text.className=u||""}function Ya(e,n,u,l){if(n.gutter&&(n.node.removeChild(n.gutter),n.gutter=null),n.gutterBackground&&(n.node.removeChild(n.gutterBackground),n.gutterBackground=null),n.line.gutterClass){var f=Ka(n);n.gutterBackground=me("div",null,"CodeMirror-gutter-background "+n.line.gutterClass,"left: "+(e.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),e.display.input.setUneditable(n.gutterBackground),f.insertBefore(n.gutterBackground,n.text)}var g=n.line.gutterMarkers;if(e.options.lineNumbers||g){var P=Ka(n),B=n.gutter=me("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(B.setAttribute("aria-hidden","true"),e.display.input.setUneditable(B),P.insertBefore(B,n.text),n.line.gutterClass&&(B.className+=" "+n.line.gutterClass),e.options.lineNumbers&&(!g||!g["CodeMirror-linenumbers"])&&(n.lineNumber=B.appendChild(me("div",ya(e.options,u),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),g)for(var H=0;H<e.display.gutterSpecs.length;++H){var J=e.display.gutterSpecs[H].className,ye=g.hasOwnProperty(J)&&g[J];ye&&B.appendChild(me("div",[ye],"CodeMirror-gutter-elt","left: "+l.gutterLeft[J]+"px; width: "+l.gutterWidth[J]+"px"))}}}function dc(e,n,u){n.alignable&&(n.alignable=null);for(var l=ue("CodeMirror-linewidget"),f=n.node.firstChild,g=void 0;f;f=g)g=f.nextSibling,l.test(f.className)&&n.node.removeChild(f);Cu(e,n,u)}function er(e,n,u,l){var f=wu(e,n);return n.text=n.node=f.pre,f.bgClass&&(n.bgClass=f.bgClass),f.textClass&&(n.textClass=f.textClass),Ys(e,n),Ya(e,n,u,l),Cu(e,n,l),n.node}function Cu(e,n,u){if(Qt(e,n.line,n,u,!0),n.rest)for(var l=0;l<n.rest.length;l++)Qt(e,n.rest[l],n,u,!1)}function Qt(e,n,u,l,f){if(!!n.widgets)for(var g=Ka(u),P=0,B=n.widgets;P<B.length;++P){var H=B[P],J=me("div",[H.node],"CodeMirror-linewidget"+(H.className?" "+H.className:""));H.handleMouseEvents||J.setAttribute("cm-ignore-events","true"),pc(H,J,u,l),e.display.input.setUneditable(J),f&&H.above?g.insertBefore(J,u.gutter||u.text):g.appendChild(J),ur(H,"redraw")}}function pc(e,n,u,l){if(e.noHScroll){(u.alignable||(u.alignable=[])).push(n);var f=l.wrapperWidth;n.style.left=l.fixedPos+"px",e.coverGutter||(f-=l.gutterTotalWidth,n.style.paddingLeft=l.gutterTotalWidth+"px"),n.style.width=f+"px"}e.coverGutter&&(n.style.zIndex=5,n.style.position="relative",e.noHScroll||(n.style.marginLeft=-l.gutterTotalWidth+"px"))}function gt(e){if(e.height!=null)return e.height;var n=e.doc.cm;if(!n)return 0;if(!ie(document.body,e.node)){var u="position: relative;";e.coverGutter&&(u+="margin-left: -"+n.display.gutters.offsetWidth+"px;"),e.noHScroll&&(u+="width: "+n.display.wrapper.clientWidth+"px;"),ge(n.display.measure,me("div",[e.node],null,u))}return e.height=e.node.parentNode.offsetHeight}function hi(e,n){for(var u=At(n);u!=e.wrapper;u=u.parentNode)if(!u||u.nodeType==1&&u.getAttribute("cm-ignore-events")=="true"||u.parentNode==e.sizer&&u!=e.mover)return!0}function Ja(e){return e.lineSpace.offsetTop}function Js(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function gn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var n=ge(e.measure,me("pre","x","CodeMirror-line-like")),u=window.getComputedStyle?window.getComputedStyle(n):n.currentStyle,l={left:parseInt(u.paddingLeft),right:parseInt(u.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(e.cachedPaddingH=l),l}function vi(e){return yt-e.display.nativeBarWidth}function Zi(e){return e.display.scroller.clientWidth-vi(e)-e.display.barWidth}function Xa(e){return e.display.scroller.clientHeight-vi(e)-e.display.barHeight}function hc(e,n,u){var l=e.options.lineWrapping,f=l&&Zi(e);if(!n.measure.heights||l&&n.measure.width!=f){var g=n.measure.heights=[];if(l){n.measure.width=f;for(var P=n.text.firstChild.getClientRects(),B=0;B<P.length-1;B++){var H=P[B],J=P[B+1];Math.abs(H.bottom-J.bottom)>2&&g.push((H.bottom+J.top)/2-u.top)}}g.push(u.bottom-u.top)}}function Xs(e,n,u){if(e.line==n)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var l=0;l<e.rest.length;l++)if(e.rest[l]==n)return{map:e.measure.maps[l],cache:e.measure.caches[l]};for(var f=0;f<e.rest.length;f++)if(qt(e.rest[f])>u)return{map:e.measure.maps[f],cache:e.measure.caches[f],before:!0}}}function vc(e,n){n=Yn(n);var u=qt(n),l=e.display.externalMeasured=new xu(e.doc,n,u);l.lineN=u;var f=l.built=zs(e,l);return l.text=f.pre,ge(e.display.lineMeasure,f.pre),l}function jo(e,n,u,l){return Jn(e,ni(e,n),u,l)}function Qs(e,n){if(n>=e.display.viewFrom&&n<e.display.viewTo)return e.display.view[ta(e,n)];var u=e.display.externalMeasured;if(u&&n>=u.lineN&&n<u.lineN+u.size)return u}function ni(e,n){var u=qt(n),l=Qs(e,u);l&&!l.text?l=null:l&&l.changes&&(Bo(e,l,u,nl(e)),e.curOp.forceUpdate=!0),l||(l=vc(e,n));var f=Xs(l,n,u);return{line:n,view:l,rect:null,map:f.map,cache:f.cache,before:f.before,hasHeights:!1}}function Jn(e,n,u,l,f){n.before&&(u=-1);var g=u+(l||""),P;return n.cache.hasOwnProperty(g)?P=n.cache[g]:(n.rect||(n.rect=n.view.text.getBoundingClientRect()),n.hasHeights||(hc(e,n.view,n.rect),n.hasHeights=!0),P=Eu(e,n,u,l),P.bogus||(n.cache[g]=P)),{left:P.left,right:P.right,top:f?P.rtop:P.top,bottom:f?P.rbottom:P.bottom}}var Uo={left:0,right:0,top:0,bottom:0};function Zs(e,n,u){for(var l,f,g,P,B,H,J=0;J<e.length;J+=3)if(B=e[J],H=e[J+1],n<B?(f=0,g=1,P="left"):n<H?(f=n-B,g=f+1):(J==e.length-3||n==H&&e[J+3]>n)&&(g=H-B,f=g-1,n>=H&&(P="right")),f!=null){if(l=e[J+2],B==H&&u==(l.insertLeft?"left":"right")&&(P=u),u=="left"&&f==0)for(;J&&e[J-2]==e[J-3]&&e[J-1].insertLeft;)l=e[(J-=3)+2],P="left";if(u=="right"&&f==H-B)for(;J<e.length-3&&e[J+3]==e[J+4]&&!e[J+5].insertLeft;)l=e[(J+=3)+2],P="right";break}return{node:l,start:f,end:g,collapse:P,coverStart:B,coverEnd:H}}function qs(e,n){var u=Uo;if(n=="left")for(var l=0;l<e.length&&(u=e[l]).left==u.right;l++);else for(var f=e.length-1;f>=0&&(u=e[f]).left==u.right;f--);return u}function Eu(e,n,u,l){var f=Zs(n.map,u,l),g=f.node,P=f.start,B=f.end,H=f.collapse,J;if(g.nodeType==3){for(var ye=0;ye<4;ye++){for(;P&&Mt(n.line.text.charAt(f.coverStart+P));)--P;for(;f.coverStart+B<f.coverEnd&&Mt(n.line.text.charAt(f.coverStart+B));)++B;if(b&&C<9&&P==0&&B==f.coverEnd-f.coverStart?J=g.parentNode.getBoundingClientRect():J=qs(se(g,P,B).getClientRects(),l),J.left||J.right||P==0)break;B=P,P=P-1,H="right"}b&&C<11&&(J=Ou(e.display.measure,J))}else{P>0&&(H=l="right");var Se;e.options.lineWrapping&&(Se=g.getClientRects()).length>1?J=Se[l=="right"?Se.length-1:0]:J=g.getBoundingClientRect()}if(b&&C<9&&!P&&(!J||!J.left&&!J.right)){var Ie=g.parentNode.getClientRects()[0];Ie?J={left:Ie.left,right:Ie.left+Dn(e.display),top:Ie.top,bottom:Ie.bottom}:J=Uo}for(var Ee=J.top-n.rect.top,Ue=J.bottom-n.rect.top,Ye=(Ee+Ue)/2,et=n.view.measure.heights,at=0;at<et.length-1&&!(Ye<et[at]);at++);var lt=at?et[at-1]:0,it=et[at],pt={left:(H=="right"?J.right:J.left)-n.rect.left,right:(H=="left"?J.left:J.right)-n.rect.left,top:lt,bottom:it};return!J.left&&!J.right&&(pt.bogus=!0),e.options.singleCursorHeightPerLine||(pt.rtop=Ee,pt.rbottom=Ue),pt}function Ou(e,n){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Oi(e))return n;var u=screen.logicalXDPI/screen.deviceXDPI,l=screen.logicalYDPI/screen.deviceYDPI;return{left:n.left*u,right:n.right*u,top:n.top*l,bottom:n.bottom*l}}function _s(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var n=0;n<e.rest.length;n++)e.measure.caches[n]={}}function qi(e){e.display.externalMeasure=null,ne(e.display.lineMeasure);for(var n=0;n<e.display.view.length;n++)_s(e.display.view[n])}function Qa(e){qi(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Za(){return N&&Y?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Tu(){return N&&Y?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function qa(e){var n=0;if(e.widgets)for(var u=0;u<e.widgets.length;++u)e.widgets[u].above&&(n+=gt(e.widgets[u]));return n}function Vo(e,n,u,l,f){if(!f){var g=qa(n);u.top+=g,u.bottom+=g}if(l=="line")return u;l||(l="local");var P=pi(n);if(l=="local"?P+=Ja(e.display):P-=e.display.viewOffset,l=="page"||l=="window"){var B=e.display.lineSpace.getBoundingClientRect();P+=B.top+(l=="window"?0:Tu());var H=B.left+(l=="window"?0:Za());u.left+=H,u.right+=H}return u.top+=P,u.bottom+=P,u}function _a(e,n,u){if(u=="div")return n;var l=n.left,f=n.top;if(u=="page")l-=Za(),f-=Tu();else if(u=="local"||!u){var g=e.display.sizer.getBoundingClientRect();l+=g.left,f+=g.top}var P=e.display.lineSpace.getBoundingClientRect();return{left:l-P.left,top:f-P.top}}function Wo(e,n,u,l,f){return l||(l=xt(e.doc,n.line)),Vo(e,l,jo(e,l,n.ch,f),u)}function Xn(e,n,u,l,f,g){l=l||xt(e.doc,n.line),f||(f=ni(e,l));function P(Ue,Ye){var et=Jn(e,f,Ue,Ye?"right":"left",g);return Ye?et.left=et.right:et.right=et.left,Vo(e,l,et,u)}var B=T(l,e.doc.direction),H=n.ch,J=n.sticky;if(H>=l.text.length?(H=l.text.length,J="before"):H<=0&&(H=0,J="after"),!B)return P(J=="before"?H-1:H,J=="before");function ye(Ue,Ye,et){var at=B[Ye],lt=at.level==1;return P(et?Ue-1:Ue,lt!=et)}var Se=$(B,H,J),Ie=Be,Ee=ye(H,Se,J=="before");return Ie!=null&&(Ee.other=ye(H,Ie,J!="before")),Ee}function Pu(e,n){var u=0;n=rt(e.doc,n),e.options.lineWrapping||(u=Dn(e.display)*n.ch);var l=xt(e.doc,n.line),f=pi(l)+Ja(e.display);return{left:u,right:u,top:f,bottom:f+l.height}}function el(e,n,u,l,f){var g=qe(e,n,u);return g.xRel=f,l&&(g.outside=l),g}function tl(e,n,u){var l=e.doc;if(u+=e.display.viewOffset,u<0)return el(l.first,0,null,-1,-1);var f=Kn(l,u),g=l.first+l.size-1;if(f>g)return el(l.first+l.size-1,xt(l,g).text.length,null,1,1);n<0&&(n=0);for(var P=xt(l,f);;){var B=gc(e,P,f,n,u),H=oc(P,B.ch+(B.xRel>0||B.outside>0?1:0));if(!H)return B;var J=H.find(1);if(J.line==f)return J;P=xt(l,f=J.line)}}function Iu(e,n,u,l){l-=qa(n);var f=n.text.length,g=Bt(function(P){return Jn(e,u,P-1).bottom<=l},f,0);return f=Bt(function(P){return Jn(e,u,P).top>l},g,f),{begin:g,end:f}}function Fu(e,n,u,l){u||(u=ni(e,n));var f=Vo(e,n,Jn(e,u,l),"line").top;return Iu(e,n,u,f)}function rl(e,n,u,l){return e.bottom<=u?!1:e.top>u?!0:(l?e.left:e.right)>n}function gc(e,n,u,l,f){f-=pi(n);var g=ni(e,n),P=qa(n),B=0,H=n.text.length,J=!0,ye=T(n,e.doc.direction);if(ye){var Se=(e.options.lineWrapping?mc:yc)(e,n,u,g,ye,l,f);J=Se.level!=1,B=J?Se.from:Se.to-1,H=J?Se.to:Se.from-1}var Ie=null,Ee=null,Ue=Bt(function(wt){var $e=Jn(e,g,wt);return $e.top+=P,$e.bottom+=P,rl($e,l,f,!1)?($e.top<=f&&$e.left<=l&&(Ie=wt,Ee=$e),!0):!1},B,H),Ye,et,at=!1;if(Ee){var lt=l-Ee.left<Ee.right-l,it=lt==J;Ue=Ie+(it?0:1),et=it?"after":"before",Ye=lt?Ee.left:Ee.right}else{!J&&(Ue==H||Ue==B)&&Ue++,et=Ue==0?"after":Ue==n.text.length?"before":Jn(e,g,Ue-(J?1:0)).bottom+P<=f==J?"after":"before";var pt=Xn(e,qe(u,Ue,et),"line",n,g);Ye=pt.left,at=f<pt.top?-1:f>=pt.bottom?1:0}return Ue=Wt(n.text,Ue,1),el(u,Ue,et,at,l-Ye)}function yc(e,n,u,l,f,g,P){var B=Bt(function(Se){var Ie=f[Se],Ee=Ie.level!=1;return rl(Xn(e,qe(u,Ee?Ie.to:Ie.from,Ee?"before":"after"),"line",n,l),g,P,!0)},0,f.length-1),H=f[B];if(B>0){var J=H.level!=1,ye=Xn(e,qe(u,J?H.from:H.to,J?"after":"before"),"line",n,l);rl(ye,g,P,!0)&&ye.top>P&&(H=f[B-1])}return H}function mc(e,n,u,l,f,g,P){var B=Iu(e,n,l,P),H=B.begin,J=B.end;/\s/.test(n.text.charAt(J-1))&&J--;for(var ye=null,Se=null,Ie=0;Ie<f.length;Ie++){var Ee=f[Ie];if(!(Ee.from>=J||Ee.to<=H)){var Ue=Ee.level!=1,Ye=Jn(e,l,Ue?Math.min(J,Ee.to)-1:Math.max(H,Ee.from)).right,et=Ye<g?g-Ye+1e9:Ye-g;(!ye||Se>et)&&(ye=Ee,Se=et)}}return ye||(ye=f[f.length-1]),ye.from<H&&(ye={from:H,to:ye.to,level:ye.level}),ye.to>J&&(ye={from:ye.from,to:J,level:ye.level}),ye}var _i;function ma(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(_i==null){_i=me("pre",null,"CodeMirror-line-like");for(var n=0;n<49;++n)_i.appendChild(document.createTextNode("x")),_i.appendChild(me("br"));_i.appendChild(document.createTextNode("x"))}ge(e.measure,_i);var u=_i.offsetHeight/50;return u>3&&(e.cachedTextHeight=u),ne(e.measure),u||1}function Dn(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var n=me("span","xxxxxxxxxx"),u=me("pre",[n],"CodeMirror-line-like");ge(e.measure,u);var l=n.getBoundingClientRect(),f=(l.right-l.left)/10;return f>2&&(e.cachedCharWidth=f),f||10}function nl(e){for(var n=e.display,u={},l={},f=n.gutters.clientLeft,g=n.gutters.firstChild,P=0;g;g=g.nextSibling,++P){var B=e.display.gutterSpecs[P].className;u[B]=g.offsetLeft+g.clientLeft+f,l[B]=g.clientWidth}return{fixedPos:Nn(n),gutterTotalWidth:n.gutters.offsetWidth,gutterLeft:u,gutterWidth:l,wrapperWidth:n.wrapper.clientWidth}}function Nn(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function ku(e){var n=ma(e.display),u=e.options.lineWrapping,l=u&&Math.max(5,e.display.scroller.clientWidth/Dn(e.display)-3);return function(f){if(di(e.doc,f))return 0;var g=0;if(f.widgets)for(var P=0;P<f.widgets.length;P++)f.widgets[P].height&&(g+=f.widgets[P].height);return u?g+(Math.ceil(f.text.length/l)||1)*n:g+n}}function il(e){var n=e.doc,u=ku(e);n.iter(function(l){var f=u(l);f!=l.height&&Fn(l,f)})}function ea(e,n,u,l){var f=e.display;if(!u&&At(n).getAttribute("cm-not-content")=="true")return null;var g,P,B=f.lineSpace.getBoundingClientRect();try{g=n.clientX-B.left,P=n.clientY-B.top}catch(Se){return null}var H=tl(e,g,P),J;if(l&&H.xRel>0&&(J=xt(e.doc,H.line).text).length==H.ch){var ye=Je(J,J.length,e.options.tabSize)-J.length;H=qe(H.line,Math.max(0,Math.round((g-gn(e.display).left)/Dn(e.display))-ye))}return H}function ta(e,n){if(n>=e.display.viewTo||(n-=e.display.viewFrom,n<0))return null;for(var u=e.display.view,l=0;l<u.length;l++)if(n-=u[l].size,n<0)return l}function Nr(e,n,u,l){n==null&&(n=e.doc.first),u==null&&(u=e.doc.first+e.doc.size),l||(l=0);var f=e.display;if(l&&u<f.viewTo&&(f.updateLineNumbers==null||f.updateLineNumbers>n)&&(f.updateLineNumbers=n),e.curOp.viewChanged=!0,n>=f.viewTo)Fi&&Ga(e.doc,n)<f.viewTo&&Mi(e);else if(u<=f.viewFrom)Fi&&Us(e.doc,u+l)>f.viewFrom?Mi(e):(f.viewFrom+=l,f.viewTo+=l);else if(n<=f.viewFrom&&u>=f.viewTo)Mi(e);else if(n<=f.viewFrom){var g=Ho(e,u,u+l,1);g?(f.view=f.view.slice(g.index),f.viewFrom=g.lineN,f.viewTo+=l):Mi(e)}else if(u>=f.viewTo){var P=Ho(e,n,n,-1);P?(f.view=f.view.slice(0,P.index),f.viewTo=P.lineN):Mi(e)}else{var B=Ho(e,n,n,-1),H=Ho(e,u,u+l,1);B&&H?(f.view=f.view.slice(0,B.index).concat(No(e,B.lineN,H.lineN)).concat(f.view.slice(H.index)),f.viewTo+=l):Mi(e)}var J=f.externalMeasured;J&&(u<J.lineN?J.lineN+=l:n<J.lineN+J.size&&(f.externalMeasured=null))}function ii(e,n,u){e.curOp.viewChanged=!0;var l=e.display,f=e.display.externalMeasured;if(f&&n>=f.lineN&&n<f.lineN+f.size&&(l.externalMeasured=null),!(n<l.viewFrom||n>=l.viewTo)){var g=l.view[ta(e,n)];if(g.node!=null){var P=g.changes||(g.changes=[]);ft(P,u)==-1&&P.push(u)}}}function Mi(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Ho(e,n,u,l){var f=ta(e,n),g,P=e.display.view;if(!Fi||u==e.doc.first+e.doc.size)return{index:f,lineN:u};for(var B=e.display.viewFrom,H=0;H<f;H++)B+=P[H].size;if(B!=n){if(l>0){if(f==P.length-1)return null;g=B+P[f].size-n,f++}else g=B-n;n+=g,u+=g}for(;Ga(e.doc,u)!=u;){if(f==(l<0?0:P.length-1))return null;u+=l*P[f-(l<0?1:0)].size,f+=l}return{index:f,lineN:u}}function xc(e,n,u){var l=e.display,f=l.view;f.length==0||n>=l.viewTo||u<=l.viewFrom?(l.view=No(e,n,u),l.viewFrom=n):(l.viewFrom>n?l.view=No(e,n,l.viewFrom).concat(l.view):l.viewFrom<n&&(l.view=l.view.slice(ta(e,n))),l.viewFrom=n,l.viewTo<u?l.view=l.view.concat(No(e,l.viewTo,u)):l.viewTo>u&&(l.view=l.view.slice(0,ta(e,u)))),l.viewTo=u}function zo(e){for(var n=e.display.view,u=0,l=0;l<n.length;l++){var f=n[l];!f.hidden&&(!f.node||f.changes)&&++u}return u}function Li(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Go(e,n){n===void 0&&(n=!0);var u=e.doc,l={},f=l.cursors=document.createDocumentFragment(),g=l.selection=document.createDocumentFragment(),P=e.options.$customCursor;P&&(n=!0);for(var B=0;B<u.sel.ranges.length;B++)if(!(!n&&B==u.sel.primIndex)){var H=u.sel.ranges[B];if(!(H.from().line>=e.display.viewTo||H.to().line<e.display.viewFrom)){var J=H.empty();if(P){var ye=P(e,H);ye&&al(e,ye,f)}else(J||e.options.showCursorWhenSelecting)&&al(e,H.head,f);J||Mu(e,H,g)}}return l}function al(e,n,u){var l=Xn(e,n,"div",null,null,!e.options.singleCursorHeightPerLine),f=u.appendChild(me("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)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var g=Wo(e,n,"div",null,null),P=g.right-g.left;f.style.width=(P>0?P:e.defaultCharWidth())+"px"}if(l.other){var B=u.appendChild(me("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));B.style.display="",B.style.left=l.other.left+"px",B.style.top=l.other.top+"px",B.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function $o(e,n){return e.top-n.top||e.left-n.left}function Mu(e,n,u){var l=e.display,f=e.doc,g=document.createDocumentFragment(),P=gn(e.display),B=P.left,H=Math.max(l.sizerWidth,Zi(e)-l.sizer.offsetLeft)-P.right,J=f.direction=="ltr";function ye(it,pt,wt,$e){pt<0&&(pt=0),pt=Math.round(pt),$e=Math.round($e),g.appendChild(me("div",null,"CodeMirror-selected","position: absolute; left: "+it+`px;
18
+ top: `+pt+"px; width: "+(wt==null?H-it:wt)+`px;
19
+ height: `+($e-pt)+"px"))}function Se(it,pt,wt){var $e=xt(f,it),Tt=$e.text.length,nr,br;function Zt(Rr,dn){return Wo(e,qe(it,Rr),"div",$e,dn)}function Tn(Rr,dn,_r){var jr=Fu(e,$e,null,Rr),Tr=dn=="ltr"==(_r=="after")?"left":"right",gr=_r=="after"?jr.begin:jr.end-(/\s/.test($e.text.charAt(jr.end-1))?2:1);return Zt(gr,Tr)[Tr]}var mn=T($e,f.direction);return k(mn,pt||0,wt==null?Tt:wt,function(Rr,dn,_r,jr){var Tr=_r=="ltr",gr=Zt(Rr,Tr?"left":"right"),pn=Zt(dn-1,Tr?"right":"left"),da=pt==null&&Rr==0,bi=wt==null&&dn==Tt,an=jr==0,li=!mn||jr==mn.length-1;if(pn.top-gr.top<=3){var Ur=(J?da:bi)&&an,Dl=(J?bi:da)&&li,Ln=Ur?B:(Tr?gr:pn).left,Vr=Dl?H:(Tr?pn:gr).right;ye(Ln,gr.top,Vr-Ln,gr.bottom)}else{var La,Wr,Ra,If;Tr?(La=J&&da&&an?B:gr.left,Wr=J?H:Tn(Rr,_r,"before"),Ra=J?B:Tn(dn,_r,"after"),If=J&&bi&&li?H:pn.right):(La=J?Tn(Rr,_r,"before"):B,Wr=!J&&da&&an?H:gr.right,Ra=!J&&bi&&li?B:pn.left,If=J?Tn(dn,_r,"after"):H),ye(La,gr.top,Wr-La,gr.bottom),gr.bottom<pn.top&&ye(B,gr.bottom,null,pn.top),ye(Ra,pn.top,If-Ra,pn.bottom)}(!nr||$o(gr,nr)<0)&&(nr=gr),$o(pn,nr)<0&&(nr=pn),(!br||$o(gr,br)<0)&&(br=gr),$o(pn,br)<0&&(br=pn)}),{start:nr,end:br}}var Ie=n.from(),Ee=n.to();if(Ie.line==Ee.line)Se(Ie.line,Ie.ch,Ee.ch);else{var Ue=xt(f,Ie.line),Ye=xt(f,Ee.line),et=Yn(Ue)==Yn(Ye),at=Se(Ie.line,Ie.ch,et?Ue.text.length+1:null).end,lt=Se(Ee.line,et?0:null,Ee.ch).start;et&&(at.top<lt.top-2?(ye(at.right,at.top,null,at.bottom),ye(B,lt.top,lt.left,lt.bottom)):ye(at.right,at.top,lt.left-at.right,at.bottom)),at.bottom<lt.top&&ye(B,at.bottom,null,lt.top)}u.appendChild(g)}function ol(e){if(!!e.state.focused){var n=e.display;clearInterval(n.blinker);var u=!0;n.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?n.blinker=setInterval(function(){e.hasFocus()||xa(e),n.cursorDiv.style.visibility=(u=!u)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(n.cursorDiv.style.visibility="hidden")}}function sl(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Ko(e))}function eo(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&xa(e))},100)}function Ko(e,n){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(te(e,"focus",e,n),e.state.focused=!0,Pe(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),S&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),ol(e))}function xa(e,n){e.state.delayingBlurEvent||(e.state.focused&&(te(e,"blur",e,n),e.state.focused=!1,q(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Yo(e){for(var n=e.display,u=n.lineDiv.offsetTop,l=Math.max(0,n.scroller.getBoundingClientRect().top),f=n.lineDiv.getBoundingClientRect().top,g=0,P=0;P<n.view.length;P++){var B=n.view[P],H=e.options.lineWrapping,J=void 0,ye=0;if(!B.hidden){if(f+=B.line.height,b&&C<8){var Se=B.node.offsetTop+B.node.offsetHeight;J=Se-u,u=Se}else{var Ie=B.node.getBoundingClientRect();J=Ie.bottom-Ie.top,!H&&B.text.firstChild&&(ye=B.text.firstChild.getBoundingClientRect().right-Ie.left-1)}var Ee=B.line.height-J;if((Ee>.005||Ee<-.005)&&(f<l&&(g-=Ee),Fn(B.line,J),ll(B.line),B.rest))for(var Ue=0;Ue<B.rest.length;Ue++)ll(B.rest[Ue]);if(ye>e.display.sizerWidth){var Ye=Math.ceil(ye/Dn(e.display));Ye>e.display.maxLineLength&&(e.display.maxLineLength=Ye,e.display.maxLine=B.line,e.display.maxLineChanged=!0)}}}Math.abs(g)>2&&(n.scroller.scrollTop+=g)}function ll(e){if(e.widgets)for(var n=0;n<e.widgets.length;++n){var u=e.widgets[n],l=u.node.parentNode;l&&(u.height=l.offsetHeight)}}function to(e,n,u){var l=u&&u.top!=null?Math.max(0,u.top):e.scroller.scrollTop;l=Math.floor(l-Ja(e));var f=u&&u.bottom!=null?u.bottom:l+e.wrapper.clientHeight,g=Kn(n,l),P=Kn(n,f);if(u&&u.ensure){var B=u.ensure.from.line,H=u.ensure.to.line;B<g?(g=B,P=Kn(n,pi(xt(n,B))+e.wrapper.clientHeight)):Math.min(H,n.lastLine())>=P&&(g=Kn(n,pi(xt(n,H))-e.wrapper.clientHeight),P=H)}return{from:g,to:Math.max(P,g+1)}}function bc(e,n){if(!ce(e,"scrollCursorIntoView")){var u=e.display,l=u.sizer.getBoundingClientRect(),f=null;if(n.top+l.top<0?f=!0:n.bottom+l.top>(window.innerHeight||document.documentElement.clientHeight)&&(f=!1),f!=null&&!K){var g=me("div","\u200B",null,`position: absolute;
20
20
  top: `+(n.top-u.viewOffset-Ja(e.display))+`px;
21
21
  height: `+(n.bottom-n.top+vi(e)+u.barHeight)+`px;
22
- left: `+n.left+"px; width: "+Math.max(2,n.right-n.left)+"px;");e.display.lineSpace.appendChild(y),y.scrollIntoView(f),e.display.lineSpace.removeChild(y)}}}function Lu(e,n,u,l){l==null&&(l=0);var f;!e.options.lineWrapping&&n==u&&(u=n.sticky=="before"?qe(n.line,n.ch+1,"before"):n,n=n.ch?qe(n.line,n.sticky=="before"?n.ch-1:n.ch,"after"):n);for(var y=0;y<5;y++){var P=!1,B=Xn(e,n),W=!u||u==n?B:Xn(e,u);f={left:Math.min(B.left,W.left),top:Math.min(B.top,W.top)-l,right:Math.max(B.left,W.left),bottom:Math.max(B.bottom,W.bottom)+l};var J=ul(e,f),ye=e.doc.scrollTop,Se=e.doc.scrollLeft;if(J.scrollTop!=null&&(no(e,J.scrollTop),Math.abs(e.doc.scrollTop-ye)>1&&(P=!0)),J.scrollLeft!=null&&(na(e,J.scrollLeft),Math.abs(e.doc.scrollLeft-Se)>1&&(P=!0)),!P)break}return f}function Ru(e,n){var u=ul(e,n);u.scrollTop!=null&&no(e,u.scrollTop),u.scrollLeft!=null&&na(e,u.scrollLeft)}function ul(e,n){var u=e.display,l=ma(e.display);n.top<0&&(n.top=0);var f=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:u.scroller.scrollTop,y=Xa(e),P={};n.bottom-n.top>y&&(n.bottom=n.top+y);var B=e.doc.height+Js(u),W=n.top<l,J=n.bottom>B-l;if(n.top<f)P.scrollTop=W?0:n.top;else if(n.bottom>f+y){var ye=Math.min(n.top,(J?B:n.bottom)-y);ye!=f&&(P.scrollTop=ye)}var Se=e.options.fixedGutter?0:u.gutters.offsetWidth,Ie=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:u.scroller.scrollLeft-Se,Ee=Zi(e)-u.gutters.offsetWidth,Ue=n.right-n.left>Ee;return Ue&&(n.right=n.left+Ee),n.left<10?P.scrollLeft=0:n.left<Ie?P.scrollLeft=Math.max(0,n.left+Se-(Ue?0:10)):n.right>Ee+Ie-3&&(P.scrollLeft=n.right+(Ue?0:10)-Ee),P}function fl(e,n){n!=null&&(Jo(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+n)}function cn(e){Jo(e);var n=e.getCursor();e.curOp.scrollToPos={from:n,to:n,margin:e.options.cursorScrollMargin}}function ro(e,n,u){(n!=null||u!=null)&&Jo(e),n!=null&&(e.curOp.scrollLeft=n),u!=null&&(e.curOp.scrollTop=u)}function ra(e,n){Jo(e),e.curOp.scrollToPos=n}function Jo(e){var n=e.curOp.scrollToPos;if(n){e.curOp.scrollToPos=null;var u=Pu(e,n.from),l=Pu(e,n.to);Du(e,u,l,n.margin)}}function Du(e,n,u,l){var f=ul(e,{left:Math.min(n.left,u.left),top:Math.min(n.top,u.top)-l,right:Math.max(n.right,u.right),bottom:Math.max(n.bottom,u.bottom)+l});ro(e,f.scrollLeft,f.scrollTop)}function no(e,n){Math.abs(e.doc.scrollTop-n)<2||(c||hl(e,{top:n}),Nu(e,n,!0),c&&hl(e),Qn(e,100))}function Nu(e,n,u){n=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,n)),!(e.display.scroller.scrollTop==n&&!u)&&(e.doc.scrollTop=n,e.display.scrollbars.setScrollTop(n),e.display.scroller.scrollTop!=n&&(e.display.scroller.scrollTop=n))}function na(e,n,u,l){n=Math.max(0,Math.min(n,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((u?n==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-n)<2)&&!l)&&(e.doc.scrollLeft=n,Wu(e),e.display.scroller.scrollLeft!=n&&(e.display.scroller.scrollLeft=n),e.display.scrollbars.setScrollLeft(n))}function ba(e){var n=e.display,u=n.gutters.offsetWidth,l=Math.round(e.doc.height+Js(e.display));return{clientHeight:n.scroller.clientHeight,viewHeight:n.wrapper.clientHeight,scrollWidth:n.scroller.scrollWidth,clientWidth:n.scroller.clientWidth,viewWidth:n.wrapper.clientWidth,barLeft:e.options.fixedGutter?u:0,docHeight:l,scrollHeight:l+vi(e)+n.barHeight,nativeBarWidth:n.nativeBarWidth,gutterWidth:u}}var ia=function(e,n,u){this.cm=u;var l=this.vert=me("div",[me("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),f=this.horiz=me("div",[me("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=f.tabIndex=-1,e(l),e(f),D(l,"scroll",function(){l.clientHeight&&n(l.scrollTop,"vertical")}),D(f,"scroll",function(){f.clientWidth&&n(f.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,b&&C<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ia.prototype.update=function(e){var n=e.scrollWidth>e.clientWidth+1,u=e.scrollHeight>e.clientHeight+1,l=e.nativeBarWidth;if(u){this.vert.style.display="block",this.vert.style.bottom=n?l+"px":"0";var f=e.viewHeight-(n?l:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+f)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(n){this.horiz.style.display="block",this.horiz.style.right=u?l+"px":"0",this.horiz.style.left=e.barLeft+"px";var y=e.viewWidth-e.barLeft-(u?l:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+y)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:u?l:0,bottom:n?l:0}},ia.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ia.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ia.prototype.zeroWidthHack=function(){var e=E&&!Q?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ut,this.disableVert=new ut},ia.prototype.enableZeroWidthBar=function(e,n,u){e.style.pointerEvents="auto";function l(){var f=e.getBoundingClientRect(),y=u=="vert"?document.elementFromPoint(f.right-1,(f.top+f.bottom)/2):document.elementFromPoint((f.right+f.left)/2,f.bottom-1);y!=e?e.style.pointerEvents="none":n.set(1e3,l)}n.set(1e3,l)},ia.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var io=function(){};io.prototype.update=function(){return{bottom:0,right:0}},io.prototype.setScrollLeft=function(){},io.prototype.setScrollTop=function(){},io.prototype.clear=function(){};function gi(e,n){n||(n=ba(e));var u=e.display.barWidth,l=e.display.barHeight;Xo(e,n);for(var f=0;f<4&&u!=e.display.barWidth||l!=e.display.barHeight;f++)u!=e.display.barWidth&&e.options.lineWrapping&&Yo(e),Xo(e,ba(e)),u=e.display.barWidth,l=e.display.barHeight}function Xo(e,n){var u=e.display,l=u.scrollbars.update(n);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&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(u.gutterFiller.style.display="block",u.gutterFiller.style.height=l.bottom+"px",u.gutterFiller.style.width=n.gutterWidth+"px"):u.gutterFiller.style.display=""}var Cn={native:ia,null:io};function Qo(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&q(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Cn[e.options.scrollbarStyle](function(n){e.display.wrapper.insertBefore(n,e.display.scrollbarFiller),D(n,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),n.setAttribute("cm-not-content","true")},function(n,u){u=="horizontal"?na(e,n):no(e,n)},e),e.display.scrollbars.addClass&&Pe(e.display.wrapper,e.display.scrollbars.addClass)}var yi=0;function Ri(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.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:++yi,markArrays:null},bu(e.curOp)}function Di(e){var n=e.curOp;n&&Ks(n,function(u){for(var l=0;l<u.ops.length;l++)u.ops[l].cm.curOp=null;Zd(u)})}function Zd(e){for(var n=e.ops,u=0;u<n.length;u++)cl(n[u]);for(var l=0;l<n.length;l++)Bu(n[l]);for(var f=0;f<n.length;f++)ju(n[f]);for(var y=0;y<n.length;y++)Lr(n[y]);for(var P=0;P<n.length;P++)Sc(n[P])}function cl(e){var n=e.cm,u=n.display;Uu(n),e.updateMaxLine&&Vs(n),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<u.viewFrom||e.scrollToPos.to.line>=u.viewTo)||u.maxLineChanged&&n.options.lineWrapping,e.update=e.mustUpdate&&new aa(n,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Bu(e){e.updatedDisplay=e.mustUpdate&&pl(e.cm,e.update)}function ju(e){var n=e.cm,u=n.display;e.updatedDisplay&&Yo(n),e.barMeasure=ba(n),u.maxLineChanged&&!n.options.lineWrapping&&(e.adjustWidthTo=jo(n,u.maxLine,u.maxLine.text.length).left+3,n.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(u.scroller.clientWidth,u.sizer.offsetLeft+e.adjustWidthTo+vi(n)+n.display.barWidth),e.maxScrollLeft=Math.max(0,u.sizer.offsetLeft+e.adjustWidthTo-Zi(n))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=u.input.prepareSelection())}function Lr(e){var n=e.cm;e.adjustWidthTo!=null&&(n.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<n.doc.scrollLeft&&na(n,Math.min(n.display.scroller.scrollLeft,e.maxScrollLeft),!0),n.display.maxLineChanged=!1);var u=e.focus&&e.focus==Oe();e.preparedSelection&&n.display.input.showSelection(e.preparedSelection,u),(e.updatedDisplay||e.startHeight!=n.doc.height)&&gi(n,e.barMeasure),e.updatedDisplay&&gl(n,e.barMeasure),e.selectionChanged&&ol(n),n.state.focused&&e.updateInput&&n.display.input.reset(e.typing),u&&sl(e.cm)}function Sc(e){var n=e.cm,u=n.display,l=n.doc;if(e.updatedDisplay&&Vu(n,e.update),u.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(u.wheelStartX=u.wheelStartY=null),e.scrollTop!=null&&Nu(n,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&na(n,e.scrollLeft,!0,!0),e.scrollToPos){var f=Lu(n,rt(l,e.scrollToPos.from),rt(l,e.scrollToPos.to),e.scrollToPos.margin);bc(n,f)}var y=e.maybeHiddenMarkers,P=e.maybeUnhiddenMarkers;if(y)for(var B=0;B<y.length;++B)y[B].lines.length||te(y[B],"hide");if(P)for(var W=0;W<P.length;++W)P[W].lines.length&&te(P[W],"unhide");u.wrapper.offsetHeight&&(l.scrollTop=n.display.scroller.scrollTop),e.changeObjs&&te(n,"changes",n,e.changeObjs),e.update&&e.update.finish()}function $r(e,n){if(e.curOp)return n();Ri(e);try{return n()}finally{Di(e)}}function Kr(e,n){return function(){if(e.curOp)return n.apply(e,arguments);Ri(e);try{return n.apply(e,arguments)}finally{Di(e)}}}function Br(e){return function(){if(this.curOp)return e.apply(this,arguments);Ri(this);try{return e.apply(this,arguments)}finally{Di(this)}}}function gr(e){return function(){var n=this.cm;if(!n||n.curOp)return e.apply(this,arguments);Ri(n);try{return e.apply(this,arguments)}finally{Di(n)}}}function Qn(e,n){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(n,Xe(Ac,e))}function Ac(e){var n=e.doc;if(!(n.highlightFrontier>=e.display.viewTo)){var u=+new Date+e.options.workTime,l=un(e,n.highlightFrontier),f=[];n.iter(l.line,Math.min(n.first+n.size,e.display.viewTo+500),function(y){if(l.line>=e.display.viewFrom){var P=y.styles,B=y.text.length>e.options.maxHighlightLength?Gr(n.mode,l.state):null,W=_t(e,y,l,!0);B&&(l.state=B),y.styles=W.styles;var J=y.styleClasses,ye=W.classes;ye?y.styleClasses=ye:J&&(y.styleClasses=null);for(var Se=!P||P.length!=y.styles.length||J!=ye&&(!J||!ye||J.bgClass!=ye.bgClass||J.textClass!=ye.textClass),Ie=0;!Se&&Ie<P.length;++Ie)Se=P[Ie]!=y.styles[Ie];Se&&f.push(l.line),y.stateAfter=l.save(),l.nextLine()}else y.text.length<=e.options.maxHighlightLength&&Ms(e,y.text,l),y.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>u)return Qn(e,e.options.workDelay),!0}),n.highlightFrontier=l.line,n.modeFrontier=Math.max(n.modeFrontier,l.line),f.length&&$r(e,function(){for(var y=0;y<f.length;y++)ii(e,f[y],"text")})}}var aa=function(e,n,u){var l=e.display;this.viewport=n,this.visible=to(l,e.doc,n),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=Zi(e),this.force=u,this.dims=nl(e),this.events=[]};aa.prototype.signal=function(e,n){Le(e,n)&&this.events.push(arguments)},aa.prototype.finish=function(){for(var e=0;e<this.events.length;e++)te.apply(null,this.events[e])};function Uu(e){var n=e.display;!n.scrollbarsClipped&&n.scroller.offsetWidth&&(n.nativeBarWidth=n.scroller.offsetWidth-n.scroller.clientWidth,n.heightForcer.style.height=vi(e)+"px",n.sizer.style.marginBottom=-n.nativeBarWidth+"px",n.sizer.style.borderRightWidth=vi(e)+"px",n.scrollbarsClipped=!0)}function ao(e){if(e.hasFocus())return null;var n=Oe();if(!n||!ie(e.display.lineDiv,n))return null;var u={activeElt:n};if(window.getSelection){var l=window.getSelection();l.anchorNode&&l.extend&&ie(e.display.lineDiv,l.anchorNode)&&(u.anchorNode=l.anchorNode,u.anchorOffset=l.anchorOffset,u.focusNode=l.focusNode,u.focusOffset=l.focusOffset)}return u}function dl(e){if(!(!e||!e.activeElt||e.activeElt==Oe())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&ie(document.body,e.anchorNode)&&ie(document.body,e.focusNode))){var n=window.getSelection(),u=document.createRange();u.setEnd(e.anchorNode,e.anchorOffset),u.collapse(!1),n.removeAllRanges(),n.addRange(u),n.extend(e.focusNode,e.focusOffset)}}function pl(e,n){var u=e.display,l=e.doc;if(n.editorIsHidden)return Mi(e),!1;if(!n.force&&n.visible.from>=u.viewFrom&&n.visible.to<=u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo)&&u.renderedView==u.view&&zo(e)==0)return!1;Zo(e)&&(Mi(e),n.dims=nl(e));var f=l.first+l.size,y=Math.max(n.visible.from-e.options.viewportMargin,l.first),P=Math.min(f,n.visible.to+e.options.viewportMargin);u.viewFrom<y&&y-u.viewFrom<20&&(y=Math.max(l.first,u.viewFrom)),u.viewTo>P&&u.viewTo-P<20&&(P=Math.min(f,u.viewTo)),Fi&&(y=Ga(e.doc,y),P=Us(e.doc,P));var B=y!=u.viewFrom||P!=u.viewTo||u.lastWrapHeight!=n.wrapperHeight||u.lastWrapWidth!=n.wrapperWidth;xc(e,y,P),u.viewOffset=pi(xt(e.doc,u.viewFrom)),e.display.mover.style.top=u.viewOffset+"px";var W=zo(e);if(!B&&W==0&&!n.force&&u.renderedView==u.view&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo))return!1;var J=ao(e);return W>4&&(u.lineDiv.style.display="none"),wc(e,u.updateLineNumbers,n.dims),W>4&&(u.lineDiv.style.display=""),u.renderedView=u.view,dl(J),ne(u.cursorDiv),ne(u.selectionDiv),u.gutters.style.height=u.sizer.style.minHeight=0,B&&(u.lastWrapHeight=n.wrapperHeight,u.lastWrapWidth=n.wrapperWidth,Qn(e,400)),u.updateLineNumbers=null,!0}function Vu(e,n){for(var u=n.viewport,l=!0;;l=!1){if(!l||!e.options.lineWrapping||n.oldDisplayWidth==Zi(e)){if(u&&u.top!=null&&(u={top:Math.min(e.doc.height+Js(e.display)-Xa(e),u.top)}),n.visible=to(e.display,e.doc,u),n.visible.from>=e.display.viewFrom&&n.visible.to<=e.display.viewTo)break}else l&&(n.visible=to(e.display,e.doc,u));if(!pl(e,n))break;Yo(e);var f=ba(e);Li(e),gi(e,f),gl(e,f),n.force=!1}n.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(n.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function hl(e,n){var u=new aa(e,n);if(pl(e,u)){Yo(e),Vu(e,u);var l=ba(e);Li(e),gi(e,l),gl(e,l),u.finish()}}function wc(e,n,u){var l=e.display,f=e.options.lineNumbers,y=l.lineDiv,P=y.firstChild;function B(Ue){var Ye=Ue.nextSibling;return S&&E&&e.display.currentWheelTarget==Ue?Ue.style.display="none":Ue.parentNode.removeChild(Ue),Ye}for(var W=l.view,J=l.viewFrom,ye=0;ye<W.length;ye++){var Se=W[ye];if(!Se.hidden)if(!Se.node||Se.node.parentNode!=y){var Ie=er(e,Se,J,u);y.insertBefore(Ie,P)}else{for(;P!=Se.node;)P=B(P);var Ee=f&&n!=null&&n<=J&&Se.lineNumber;Se.changes&&(ft(Se.changes,"gutter")>-1&&(Ee=!1),Bo(e,Se,J,u)),Ee&&(ne(Se.lineNumber),Se.lineNumber.appendChild(document.createTextNode(ya(e.options,J)))),P=Se.node.nextSibling}J+=Se.size}for(;P;)P=B(P)}function vl(e){var n=e.gutters.offsetWidth;e.sizer.style.marginLeft=n+"px",ur(e,"gutterChanged",e)}function gl(e,n){e.display.sizer.style.minHeight=n.docHeight+"px",e.display.heightForcer.style.top=n.docHeight+"px",e.display.gutters.style.height=n.docHeight+e.display.barHeight+vi(e)+"px"}function Wu(e){var n=e.display,u=n.view;if(!(!n.alignWidgets&&(!n.gutters.firstChild||!e.options.fixedGutter))){for(var l=Nn(n)-n.scroller.scrollLeft+e.doc.scrollLeft,f=n.gutters.offsetWidth,y=l+"px",P=0;P<u.length;P++)if(!u[P].hidden){e.options.fixedGutter&&(u[P].gutter&&(u[P].gutter.style.left=y),u[P].gutterBackground&&(u[P].gutterBackground.style.left=y));var B=u[P].alignable;if(B)for(var W=0;W<B.length;W++)B[W].style.left=y}e.options.fixedGutter&&(n.gutters.style.left=l+f+"px")}}function Zo(e){if(!e.options.lineNumbers)return!1;var n=e.doc,u=ya(e.options,n.first+n.size-1),l=e.display;if(u.length!=l.lineNumChars){var f=l.measure.appendChild(me("div",[me("div",u)],"CodeMirror-linenumber CodeMirror-gutter-elt")),y=f.firstChild.offsetWidth,P=f.offsetWidth-y;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(y,l.lineGutter.offsetWidth-P)+1,l.lineNumWidth=l.lineNumInnerWidth+P,l.lineNumChars=l.lineNumInnerWidth?u.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",vl(e.display),!0}return!1}function oo(e,n){for(var u=[],l=!1,f=0;f<e.length;f++){var y=e[f],P=null;if(typeof y!="string"&&(P=y.style,y=y.className),y=="CodeMirror-linenumbers")if(n)l=!0;else continue;u.push({className:y,style:P})}return n&&!l&&u.push({className:"CodeMirror-linenumbers",style:null}),u}function Hu(e){var n=e.gutters,u=e.gutterSpecs;ne(n),e.lineGutter=null;for(var l=0;l<u.length;++l){var f=u[l],y=f.className,P=f.style,B=n.appendChild(me("div",null,"CodeMirror-gutter "+y));P&&(B.style.cssText=P),y=="CodeMirror-linenumbers"&&(e.lineGutter=B,B.style.width=(e.lineNumWidth||1)+"px")}n.style.display=u.length?"":"none",vl(e)}function qo(e){Hu(e.display),Nr(e),Wu(e)}function Cc(e,n,u,l){var f=this;this.input=u,f.scrollbarFiller=me("div",null,"CodeMirror-scrollbar-filler"),f.scrollbarFiller.setAttribute("cm-not-content","true"),f.gutterFiller=me("div",null,"CodeMirror-gutter-filler"),f.gutterFiller.setAttribute("cm-not-content","true"),f.lineDiv=he("div",null,"CodeMirror-code"),f.selectionDiv=me("div",null,null,"position: relative; z-index: 1"),f.cursorDiv=me("div",null,"CodeMirror-cursors"),f.measure=me("div",null,"CodeMirror-measure"),f.lineMeasure=me("div",null,"CodeMirror-measure"),f.lineSpace=he("div",[f.measure,f.lineMeasure,f.selectionDiv,f.cursorDiv,f.lineDiv],null,"position: relative; outline: none");var y=he("div",[f.lineSpace],"CodeMirror-lines");f.mover=me("div",[y],null,"position: relative"),f.sizer=me("div",[f.mover],"CodeMirror-sizer"),f.sizerWidth=null,f.heightForcer=me("div",null,null,"position: absolute; height: "+yt+"px; width: 1px;"),f.gutters=me("div",null,"CodeMirror-gutters"),f.lineGutter=null,f.scroller=me("div",[f.sizer,f.heightForcer,f.gutters],"CodeMirror-scroll"),f.scroller.setAttribute("tabIndex","-1"),f.wrapper=me("div",[f.scrollbarFiller,f.gutterFiller,f.scroller],"CodeMirror"),f.wrapper.setAttribute("translate","no"),b&&C<8&&(f.gutters.style.zIndex=-1,f.scroller.style.paddingRight=0),!S&&!(c&&R)&&(f.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(f.wrapper):e(f.wrapper)),f.viewFrom=f.viewTo=n.first,f.reportedViewFrom=f.reportedViewTo=n.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=oo(l.gutters,l.lineNumbers),Hu(f),u.init(f)}var _o=0,mi=null;b?mi=-.53:c?mi=15:N?mi=-.7:U&&(mi=-1/3);function zu(e){var n=e.wheelDeltaX,u=e.wheelDeltaY;return n==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(n=e.detail),u==null&&e.detail&&e.axis==e.VERTICAL_AXIS?u=e.detail:u==null&&(u=e.wheelDelta),{x:n,y:u}}function ir(e){var n=zu(e);return n.x*=mi,n.y*=mi,n}function Gu(e,n){var u=zu(n),l=u.x,f=u.y,y=mi;n.deltaMode===0&&(l=n.deltaX,f=n.deltaY,y=1);var P=e.display,B=P.scroller,W=B.scrollWidth>B.clientWidth,J=B.scrollHeight>B.clientHeight;if(!!(l&&W||f&&J)){if(f&&E&&S){e:for(var ye=n.target,Se=P.view;ye!=B;ye=ye.parentNode)for(var Ie=0;Ie<Se.length;Ie++)if(Se[Ie].node==ye){e.display.currentWheelTarget=ye;break e}}if(l&&!c&&!j&&y!=null){f&&J&&no(e,Math.max(0,B.scrollTop+f*y)),na(e,Math.max(0,B.scrollLeft+l*y)),(!f||f&&J)&&We(n),P.wheelStartX=null;return}if(f&&y!=null){var Ee=f*y,Ue=e.doc.scrollTop,Ye=Ue+P.wrapper.clientHeight;Ee<0?Ue=Math.max(0,Ue+Ee-50):Ye=Math.min(e.doc.height,Ye+Ee+50),hl(e,{top:Ue,bottom:Ye})}_o<20&&n.deltaMode!==0&&(P.wheelStartX==null?(P.wheelStartX=B.scrollLeft,P.wheelStartY=B.scrollTop,P.wheelDX=l,P.wheelDY=f,setTimeout(function(){if(P.wheelStartX!=null){var et=B.scrollLeft-P.wheelStartX,at=B.scrollTop-P.wheelStartY,lt=at&&P.wheelDY&&at/P.wheelDY||et&&P.wheelDX&&et/P.wheelDX;P.wheelStartX=P.wheelStartY=null,!!lt&&(mi=(mi*_o+lt)/(_o+1),++_o)}},200)):(P.wheelDX+=l,P.wheelDY+=f))}}var En=function(e,n){this.ranges=e,this.primIndex=n};En.prototype.primary=function(){return this.ranges[this.primIndex]},En.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var n=0;n<this.ranges.length;n++){var u=this.ranges[n],l=e.ranges[n];if(!ci(u.anchor,l.anchor)||!ci(u.head,l.head))return!1}return!0},En.prototype.deepCopy=function(){for(var e=[],n=0;n<this.ranges.length;n++)e[n]=new tr(ae(this.ranges[n].anchor),ae(this.ranges[n].head));return new En(e,this.primIndex)},En.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},En.prototype.contains=function(e,n){n||(n=e);for(var u=0;u<this.ranges.length;u++){var l=this.ranges[u];if(Pt(n,l.from())>=0&&Pt(e,l.to())<=0)return u}return-1};var tr=function(e,n){this.anchor=e,this.head=n};tr.prototype.from=function(){return Ge(this.anchor,this.head)},tr.prototype.to=function(){return Ae(this.anchor,this.head)},tr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function kn(e,n,u){var l=e&&e.options.selectionsMayTouch,f=n[u];n.sort(function(Ie,Ee){return Pt(Ie.from(),Ee.from())}),u=ft(n,f);for(var y=1;y<n.length;y++){var P=n[y],B=n[y-1],W=Pt(B.to(),P.from());if(l&&!P.empty()?W>0:W>=0){var J=Ge(B.from(),P.from()),ye=Ae(B.to(),P.to()),Se=B.empty()?P.from()==P.head:B.from()==B.head;y<=u&&--u,n.splice(--y,2,new tr(Se?ye:J,Se?J:ye))}}return new En(n,u)}function Ni(e,n){return new En([new tr(e,n||e)],0)}function Bi(e){return e.text?qe(e.from.line+e.text.length-1,St(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function $u(e,n){if(Pt(e,n.from)<0)return e;if(Pt(e,n.to)<=0)return Bi(n);var u=e.line+n.text.length-(n.to.line-n.from.line)-1,l=e.ch;return e.line==n.to.line&&(l+=Bi(n).ch-n.to.ch),qe(u,l)}function yl(e,n){for(var u=[],l=0;l<e.sel.ranges.length;l++){var f=e.sel.ranges[l];u.push(new tr($u(f.anchor,n),$u(f.head,n)))}return kn(e.cm,u,e.sel.primIndex)}function Ku(e,n,u){return e.line==n.line?qe(u.line,e.ch-n.ch+u.ch):qe(u.line+(e.line-n.line),e.ch)}function Ec(e,n,u){for(var l=[],f=qe(e.first,0),y=f,P=0;P<n.length;P++){var B=n[P],W=Ku(B.from,f,y),J=Ku(Bi(B),f,y);if(f=B.to,y=J,u=="around"){var ye=e.sel.ranges[P],Se=Pt(ye.head,ye.anchor)<0;l[P]=new tr(Se?J:W,Se?W:J)}else l[P]=new tr(W,W)}return new En(l,e.sel.primIndex)}function es(e){e.doc.mode=wn(e.options,e.doc.modeOption),oa(e)}function oa(e){e.doc.iter(function(n){n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Qn(e,100),e.state.modeGen++,e.curOp&&Nr(e)}function ts(e,n){return n.from.ch==0&&n.to.ch==0&&St(n.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function ml(e,n,u,l){function f(lt){return u?u[lt]:null}function y(lt,it,pt){ki(lt,it,pt,l),ur(lt,"change",lt,n)}function P(lt,it){for(var pt=[],wt=lt;wt<it;++wt)pt.push(new Ji(J[wt],f(wt),l));return pt}var B=n.from,W=n.to,J=n.text,ye=xt(e,B.line),Se=xt(e,W.line),Ie=St(J),Ee=f(J.length-1),Ue=W.line-B.line;if(n.full)e.insert(0,P(0,J.length)),e.remove(J.length,e.size-J.length);else if(ts(e,n)){var Ye=P(0,J.length-1);y(Se,Se.text,Ee),Ue&&e.remove(B.line,Ue),Ye.length&&e.insert(B.line,Ye)}else if(ye==Se)if(J.length==1)y(ye,ye.text.slice(0,B.ch)+Ie+ye.text.slice(W.ch),Ee);else{var et=P(1,J.length-1);et.push(new Ji(Ie+ye.text.slice(W.ch),Ee,l)),y(ye,ye.text.slice(0,B.ch)+J[0],f(0)),e.insert(B.line+1,et)}else if(J.length==1)y(ye,ye.text.slice(0,B.ch)+J[0]+Se.text.slice(W.ch),f(0)),e.remove(B.line+1,Ue);else{y(ye,ye.text.slice(0,B.ch)+J[0],f(0)),y(Se,Ie+Se.text.slice(W.ch),Ee);var at=P(1,J.length-1);Ue>1&&e.remove(B.line+1,Ue-1),e.insert(B.line+1,at)}ur(e,"change",e,n)}function ji(e,n,u){function l(f,y,P){if(f.linked)for(var B=0;B<f.linked.length;++B){var W=f.linked[B];if(W.doc!=y){var J=P&&W.sharedHist;u&&!J||(n(W.doc,J),l(W.doc,f,J))}}}l(e,null,!0)}function Yu(e,n){if(n.cm)throw new Error("This document is already in use.");e.doc=n,n.cm=e,il(e),es(e),xl(e),e.options.direction=n.direction,e.options.lineWrapping||Vs(e),e.options.mode=n.modeOption,Nr(e)}function xl(e){(e.doc.direction=="rtl"?Pe:q)(e.display.lineDiv,"CodeMirror-rtl")}function so(e){$r(e,function(){xl(e),Nr(e)})}function lo(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function ai(e,n){var u={from:ae(n.from),to:Bi(n),text:fi(e,n.from,n.to)};return fo(e,u,n.from.line,n.to.line+1),ji(e,function(l){return fo(l,u,n.from.line,n.to.line+1)},!0),u}function Ju(e){for(;e.length;){var n=St(e);if(n.ranges)e.pop();else break}}function Xu(e,n){if(n)return Ju(e.done),St(e.done);if(e.done.length&&!St(e.done).ranges)return St(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),St(e.done)}function Qu(e,n,u,l){var f=e.history;f.undone.length=0;var y=+new Date,P,B;if((f.lastOp==l||f.lastOrigin==n.origin&&n.origin&&(n.origin.charAt(0)=="+"&&f.lastModTime>y-(e.cm?e.cm.options.historyEventDelay:500)||n.origin.charAt(0)=="*"))&&(P=Xu(f,f.lastOp==l)))B=St(P.changes),Pt(n.from,n.to)==0&&Pt(n.from,B.to)==0?B.to=Bi(n):P.changes.push(ai(e,n));else{var W=St(f.done);for((!W||!W.ranges)&&uo(e.sel,f.done),P={changes:[ai(e,n)],generation:f.generation},f.done.push(P);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=y,f.lastOp=f.lastSelOp=l,f.lastOrigin=f.lastSelOrigin=n.origin,B||te(e,"historyAdded")}function Zu(e,n,u,l){var f=n.charAt(0);return f=="*"||f=="+"&&u.ranges.length==l.ranges.length&&u.somethingSelected()==l.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Oc(e,n,u,l){var f=e.history,y=l&&l.origin;u==f.lastSelOp||y&&f.lastSelOrigin==y&&(f.lastModTime==f.lastSelTime&&f.lastOrigin==y||Zu(e,y,St(f.done),n))?f.done[f.done.length-1]=n:uo(n,f.done),f.lastSelTime=+new Date,f.lastSelOrigin=y,f.lastSelOp=u,l&&l.clearRedo!==!1&&Ju(f.undone)}function uo(e,n){var u=St(n);u&&u.ranges&&u.equals(e)||n.push(e)}function fo(e,n,u,l){var f=n["spans_"+e.id],y=0;e.iter(Math.max(e.first,u),Math.min(e.first+e.size,l),function(P){P.markedSpans&&((f||(f=n["spans_"+e.id]={}))[y]=P.markedSpans),++y})}function Tc(e){if(!e)return null;for(var n,u=0;u<e.length;++u)e[u].marker.explicitlyCleared?n||(n=e.slice(0,u)):n&&n.push(e[u]);return n?n.length?n:null:e}function rs(e,n){var u=n["spans_"+e.id];if(!u)return null;for(var l=[],f=0;f<n.text.length;++f)l.push(Tc(u[f]));return l}function ns(e,n){var u=rs(e,n),l=du(e,n);if(!u)return l;if(!l)return u;for(var f=0;f<u.length;++f){var y=u[f],P=l[f];if(y&&P){e:for(var B=0;B<P.length;++B){for(var W=P[B],J=0;J<y.length;++J)if(y[J].marker==W.marker)continue e;y.push(W)}}else P&&(u[f]=P)}return u}function Sa(e,n,u){for(var l=[],f=0;f<e.length;++f){var y=e[f];if(y.ranges){l.push(u?En.prototype.deepCopy.call(y):y);continue}var P=y.changes,B=[];l.push({changes:B});for(var W=0;W<P.length;++W){var J=P[W],ye=void 0;if(B.push({from:J.from,to:J.to,text:J.text}),n)for(var Se in J)(ye=Se.match(/^spans_(\d+)$/))&&ft(n,Number(ye[1]))>-1&&(St(B)[Se]=J[Se],delete J[Se])}}return l}function bl(e,n,u,l){if(l){var f=e.anchor;if(u){var y=Pt(n,f)<0;y!=Pt(u,f)<0?(f=n,n=u):y!=Pt(n,u)<0&&(n=u)}return new tr(f,n)}else return new tr(u||n,n)}function is(e,n,u,l,f){f==null&&(f=e.cm&&(e.cm.display.shift||e.extend)),nn(e,new En([bl(e.sel.primary(),n,u,f)],0),l)}function qu(e,n,u){for(var l=[],f=e.cm&&(e.cm.display.shift||e.extend),y=0;y<e.sel.ranges.length;y++)l[y]=bl(e.sel.ranges[y],n[y],null,f);var P=kn(e.cm,l,e.sel.primIndex);nn(e,P,u)}function as(e,n,u,l){var f=e.sel.ranges.slice(0);f[n]=u,nn(e,kn(e.cm,f,e.sel.primIndex),l)}function Sl(e,n,u,l){nn(e,Ni(n,u),l)}function Pc(e,n,u){var l={ranges:n.ranges,update:function(f){this.ranges=[];for(var y=0;y<f.length;y++)this.ranges[y]=new tr(rt(e,f[y].anchor),rt(e,f[y].head))},origin:u&&u.origin};return te(e,"beforeSelectionChange",e,l),e.cm&&te(e.cm,"beforeSelectionChange",e.cm,l),l.ranges!=n.ranges?kn(e.cm,l.ranges,l.ranges.length-1):n}function _u(e,n,u){var l=e.history.done,f=St(l);f&&f.ranges?(l[l.length-1]=n,os(e,n,u)):nn(e,n,u)}function nn(e,n,u){os(e,n,u),Oc(e,e.sel,e.cm?e.cm.curOp.id:NaN,u)}function os(e,n,u){(Le(e,"beforeSelectionChange")||e.cm&&Le(e.cm,"beforeSelectionChange"))&&(n=Pc(e,n,u));var l=u&&u.bias||(Pt(n.primary().head,e.sel.primary().head)<0?-1:1);ef(e,rf(e,n,l,!0)),!(u&&u.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&cn(e.cm)}function ef(e,n){n.equals(e.sel)||(e.sel=n,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,be(e.cm)),ur(e,"cursorActivity",e))}function tf(e){ef(e,rf(e,e.sel,null,!1))}function rf(e,n,u,l){for(var f,y=0;y<n.ranges.length;y++){var P=n.ranges[y],B=n.ranges.length==e.sel.ranges.length&&e.sel.ranges[y],W=co(e,P.anchor,B&&B.anchor,u,l),J=co(e,P.head,B&&B.head,u,l);(f||W!=P.anchor||J!=P.head)&&(f||(f=n.ranges.slice(0,y)),f[y]=new tr(W,J))}return f?kn(e.cm,f,n.primIndex):n}function Aa(e,n,u,l,f){var y=xt(e,n.line);if(y.markedSpans)for(var P=0;P<y.markedSpans.length;++P){var B=y.markedSpans[P],W=B.marker,J="selectLeft"in W?!W.selectLeft:W.inclusiveLeft,ye="selectRight"in W?!W.selectRight:W.inclusiveRight;if((B.from==null||(J?B.from<=n.ch:B.from<n.ch))&&(B.to==null||(ye?B.to>=n.ch:B.to>n.ch))){if(f&&(te(W,"beforeCursorEnter"),W.explicitlyCleared))if(y.markedSpans){--P;continue}else break;if(!W.atomic)continue;if(u){var Se=W.find(l<0?1:-1),Ie=void 0;if((l<0?ye:J)&&(Se=nf(e,Se,-l,Se&&Se.line==n.line?y:null)),Se&&Se.line==n.line&&(Ie=Pt(Se,u))&&(l<0?Ie<0:Ie>0))return Aa(e,Se,n,l,f)}var Ee=W.find(l<0?-1:1);return(l<0?J:ye)&&(Ee=nf(e,Ee,l,Ee.line==n.line?y:null)),Ee?Aa(e,Ee,n,l,f):null}}return n}function co(e,n,u,l,f){var y=l||1,P=Aa(e,n,u,y,f)||!f&&Aa(e,n,u,y,!0)||Aa(e,n,u,-y,f)||!f&&Aa(e,n,u,-y,!0);return P||(e.cantEdit=!0,qe(e.first,0))}function nf(e,n,u,l){return u<0&&n.ch==0?n.line>e.first?rt(e,qe(n.line-1)):null:u>0&&n.ch==(l||xt(e,n.line)).text.length?n.line<e.first+e.size-1?qe(n.line+1,0):null:new qe(n.line,n.ch+u)}function ss(e){e.setSelection(qe(e.firstLine(),0),qe(e.lastLine()),nt)}function Al(e,n,u){var l={canceled:!1,from:n.from,to:n.to,text:n.text,origin:n.origin,cancel:function(){return l.canceled=!0}};return u&&(l.update=function(f,y,P,B){f&&(l.from=rt(e,f)),y&&(l.to=rt(e,y)),P&&(l.text=P),B!==void 0&&(l.origin=B)}),te(e,"beforeChange",e,l),e.cm&&te(e.cm,"beforeChange",e.cm,l),l.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function wa(e,n,u){if(e.cm){if(!e.cm.curOp)return Kr(e.cm,wa)(e,n,u);if(e.cm.state.suppressEdits)return}if(!((Le(e,"beforeChange")||e.cm&&Le(e.cm,"beforeChange"))&&(n=Al(e,n,!0),!n))){var l=tc&&!u&&hu(e,n.from,n.to);if(l)for(var f=l.length-1;f>=0;--f)sa(e,{from:l[f].from,to:l[f].to,text:f?[""]:n.text,origin:n.origin});else sa(e,n)}}function sa(e,n){if(!(n.text.length==1&&n.text[0]==""&&Pt(n.from,n.to)==0)){var u=yl(e,n);Qu(e,n,u,e.cm?e.cm.curOp.id:NaN),po(e,n,u,du(e,n));var l=[];ji(e,function(f,y){!y&&ft(l,f.history)==-1&&(El(f.history,n),l.push(f.history)),po(f,n,null,du(f,n))})}}function Bn(e,n,u){var l=e.cm&&e.cm.state.suppressEdits;if(!(l&&!u)){for(var f=e.history,y,P=e.sel,B=n=="undo"?f.done:f.undone,W=n=="undo"?f.undone:f.done,J=0;J<B.length&&(y=B[J],!(u?y.ranges&&!y.equals(e.sel):!y.ranges));J++);if(J!=B.length){for(f.lastOrigin=f.lastSelOrigin=null;;)if(y=B.pop(),y.ranges){if(uo(y,W),u&&!y.equals(e.sel)){nn(e,y,{clearRedo:!1});return}P=y}else if(l){B.push(y);return}else break;var ye=[];uo(P,W),W.push({changes:ye,generation:f.generation}),f.generation=y.generation||++f.maxGeneration;for(var Se=Le(e,"beforeChange")||e.cm&&Le(e.cm,"beforeChange"),Ie=function(Ye){var et=y.changes[Ye];if(et.origin=n,Se&&!Al(e,et,!1))return B.length=0,{};ye.push(ai(e,et));var at=Ye?yl(e,et):St(B);po(e,et,at,ns(e,et)),!Ye&&e.cm&&e.cm.scrollIntoView({from:et.from,to:Bi(et)});var lt=[];ji(e,function(it,pt){!pt&&ft(lt,it.history)==-1&&(El(it.history,et),lt.push(it.history)),po(it,et,null,ns(it,et))})},Ee=y.changes.length-1;Ee>=0;--Ee){var Ue=Ie(Ee);if(Ue)return Ue.v}}}}function wl(e,n){if(n!=0&&(e.first+=n,e.sel=new En(jt(e.sel.ranges,function(f){return new tr(qe(f.anchor.line+n,f.anchor.ch),qe(f.head.line+n,f.head.ch))}),e.sel.primIndex),e.cm)){Nr(e.cm,e.first,e.first-n,n);for(var u=e.cm.display,l=u.viewFrom;l<u.viewTo;l++)ii(e.cm,l,"gutter")}}function po(e,n,u,l){if(e.cm&&!e.cm.curOp)return Kr(e.cm,po)(e,n,u,l);if(n.to.line<e.first){wl(e,n.text.length-1-(n.to.line-n.from.line));return}if(!(n.from.line>e.lastLine())){if(n.from.line<e.first){var f=n.text.length-1-(e.first-n.from.line);wl(e,f),n={from:qe(e.first,0),to:qe(n.to.line+f,n.to.ch),text:[St(n.text)],origin:n.origin}}var y=e.lastLine();n.to.line>y&&(n={from:n.from,to:qe(y,xt(e,y).text.length),text:[n.text[0]],origin:n.origin}),n.removed=fi(e,n.from,n.to),u||(u=yl(e,n)),e.cm?Ic(e.cm,n,l):ml(e,n,l),os(e,u,nt),e.cantEdit&&co(e,qe(e.firstLine(),0))&&(e.cantEdit=!1)}}function Ic(e,n,u){var l=e.doc,f=e.display,y=n.from,P=n.to,B=!1,W=y.line;e.options.lineWrapping||(W=qt(Yn(xt(l,y.line))),l.iter(W,P.line+1,function(Ee){if(Ee==f.maxLine)return B=!0,!0})),l.sel.contains(n.from,n.to)>-1&&be(e),ml(l,n,u,ku(e)),e.options.lineWrapping||(l.iter(W,y.line+n.text.length,function(Ee){var Ue=Yi(Ee);Ue>f.maxLineLength&&(f.maxLine=Ee,f.maxLineLength=Ue,f.maxLineChanged=!0,B=!1)}),B&&(e.curOp.updateMaxLine=!0)),ec(l,y.line),Qn(e,400);var J=n.text.length-(P.line-y.line)-1;n.full?Nr(e):y.line==P.line&&n.text.length==1&&!ts(e.doc,n)?ii(e,y.line,"text"):Nr(e,y.line,P.line+1,J);var ye=Le(e,"changes"),Se=Le(e,"change");if(Se||ye){var Ie={from:y,to:P,text:n.text,removed:n.removed,origin:n.origin};Se&&ur(e,"change",e,Ie),ye&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Ie)}e.display.selForContextMenu=null}function Ca(e,n,u,l,f){var y;l||(l=u),Pt(l,u)<0&&(y=[l,u],u=y[0],l=y[1]),typeof n=="string"&&(n=e.splitLines(n)),wa(e,{from:u,to:l,text:n,origin:f})}function Cl(e,n,u,l){u<e.line?e.line+=l:n<e.line&&(e.line=n,e.ch=0)}function af(e,n,u,l){for(var f=0;f<e.length;++f){var y=e[f],P=!0;if(y.ranges){y.copied||(y=e[f]=y.deepCopy(),y.copied=!0);for(var B=0;B<y.ranges.length;B++)Cl(y.ranges[B].anchor,n,u,l),Cl(y.ranges[B].head,n,u,l);continue}for(var W=0;W<y.changes.length;++W){var J=y.changes[W];if(u<J.from.line)J.from=qe(J.from.line+l,J.from.ch),J.to=qe(J.to.line+l,J.to.ch);else if(n<=J.to.line){P=!1;break}}P||(e.splice(0,f+1),f=0)}}function El(e,n){var u=n.from.line,l=n.to.line,f=n.text.length-(l-u)-1;af(e.done,u,l,f),af(e.undone,u,l,f)}function la(e,n,u,l){var f=n,y=n;return typeof n=="number"?y=xt(e,tt(e,n)):f=qt(n),f==null?null:(l(y,f)&&e.cm&&ii(e.cm,f,u),y)}function Ea(e){this.lines=e,this.parent=null;for(var n=0,u=0;u<e.length;++u)e[u].parent=this,n+=e[u].height;this.height=n}Ea.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,n){for(var u=e,l=e+n;u<l;++u){var f=this.lines[u];this.height-=f.height,Xi(f),ur(f,"delete")}this.lines.splice(e,n)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,n,u){this.height+=u,this.lines=this.lines.slice(0,e).concat(n).concat(this.lines.slice(e));for(var l=0;l<n.length;++l)n[l].parent=this},iterN:function(e,n,u){for(var l=e+n;e<l;++e)if(u(this.lines[e]))return!0}};function Oa(e){this.children=e;for(var n=0,u=0,l=0;l<e.length;++l){var f=e[l];n+=f.chunkSize(),u+=f.height,f.parent=this}this.size=n,this.height=u,this.parent=null}Oa.prototype={chunkSize:function(){return this.size},removeInner:function(e,n){this.size-=n;for(var u=0;u<this.children.length;++u){var l=this.children[u],f=l.chunkSize();if(e<f){var y=Math.min(n,f-e),P=l.height;if(l.removeInner(e,y),this.height-=P-l.height,f==y&&(this.children.splice(u--,1),l.parent=null),(n-=y)==0)break;e=0}else e-=f}if(this.size-n<25&&(this.children.length>1||!(this.children[0]instanceof Ea))){var B=[];this.collapse(B),this.children=[new Ea(B)],this.children[0].parent=this}},collapse:function(e){for(var n=0;n<this.children.length;++n)this.children[n].collapse(e)},insertInner:function(e,n,u){this.size+=n.length,this.height+=u;for(var l=0;l<this.children.length;++l){var f=this.children[l],y=f.chunkSize();if(e<=y){if(f.insertInner(e,n,u),f.lines&&f.lines.length>50){for(var P=f.lines.length%25+25,B=P;B<f.lines.length;){var W=new Ea(f.lines.slice(B,B+=25));f.height-=W.height,this.children.splice(++l,0,W),W.parent=this}f.lines=f.lines.slice(0,P),this.maybeSpill()}break}e-=y}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var n=e.children.splice(e.children.length-5,5),u=new Oa(n);if(e.parent){e.size-=u.size,e.height-=u.height;var f=ft(e.parent.children,e);e.parent.children.splice(f+1,0,u)}else{var l=new Oa(e.children);l.parent=e,e.children=[l,u],e=l}u.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,n,u){for(var l=0;l<this.children.length;++l){var f=this.children[l],y=f.chunkSize();if(e<y){var P=Math.min(n,y-e);if(f.iterN(e,P,u))return!0;if((n-=P)==0)break;e=0}else e-=y}}};var ho=function(e,n,u){if(u)for(var l in u)u.hasOwnProperty(l)&&(this[l]=u[l]);this.doc=e,this.node=n};ho.prototype.clear=function(){var e=this.doc.cm,n=this.line.widgets,u=this.line,l=qt(u);if(!(l==null||!n)){for(var f=0;f<n.length;++f)n[f]==this&&n.splice(f--,1);n.length||(u.widgets=null);var y=gt(this);Fn(u,Math.max(0,u.height-y)),e&&($r(e,function(){Ol(e,u,-y),ii(e,l,"widget")}),ur(e,"lineWidgetCleared",e,this,l))}},ho.prototype.changed=function(){var e=this,n=this.height,u=this.doc.cm,l=this.line;this.height=null;var f=gt(this)-n;!f||(di(this.doc,l)||Fn(l,l.height+f),u&&$r(u,function(){u.curOp.forceUpdate=!0,Ol(u,l,f),ur(u,"lineWidgetChanged",u,e,qt(l))}))},Re(ho);function Ol(e,n,u){pi(n)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&fl(e,u)}function Fc(e,n,u,l){var f=new ho(e,u,l),y=e.cm;return y&&f.noHScroll&&(y.display.alignWidgets=!0),la(e,n,"widget",function(P){var B=P.widgets||(P.widgets=[]);if(f.insertAt==null?B.push(f):B.splice(Math.min(B.length,Math.max(0,f.insertAt)),0,f),f.line=P,y&&!di(e,P)){var W=pi(P)<e.scrollTop;Fn(P,P.height+gt(f)),W&&fl(y,f.height),y.curOp.forceUpdate=!0}return!0}),y&&ur(y,"lineWidgetAdded",y,f,typeof n=="number"?n:qt(n)),f}var ls=0,oi=function(e,n){this.lines=[],this.type=n,this.doc=e,this.id=++ls};oi.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,n=e&&!e.curOp;if(n&&Ri(e),Le(this,"clear")){var u=this.find();u&&ur(this,"clear",u.from,u.to)}for(var l=null,f=null,y=0;y<this.lines.length;++y){var P=this.lines[y],B=Ha(P.markedSpans,this);e&&!this.collapsed?ii(e,qt(P),"text"):e&&(B.to!=null&&(f=qt(P)),B.from!=null&&(l=qt(P))),P.markedSpans=ic(P.markedSpans,B),B.from==null&&this.collapsed&&!di(this.doc,P)&&e&&Fn(P,ma(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var W=0;W<this.lines.length;++W){var J=Yn(this.lines[W]),ye=Yi(J);ye>e.display.maxLineLength&&(e.display.maxLine=J,e.display.maxLineLength=ye,e.display.maxLineChanged=!0)}l!=null&&e&&this.collapsed&&Nr(e,l,f+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&tf(e.doc)),e&&ur(e,"markerCleared",e,this,l,f),n&&Di(e),this.parent&&this.parent.clear()}},oi.prototype.find=function(e,n){e==null&&this.type=="bookmark"&&(e=1);for(var u,l,f=0;f<this.lines.length;++f){var y=this.lines[f],P=Ha(y.markedSpans,this);if(P.from!=null&&(u=qe(n?y:qt(y),P.from),e==-1))return u;if(P.to!=null&&(l=qe(n?y:qt(y),P.to),e==1))return l}return u&&{from:u,to:l}},oi.prototype.changed=function(){var e=this,n=this.find(-1,!0),u=this,l=this.doc.cm;!n||!l||$r(l,function(){var f=n.line,y=qt(n.line),P=Qs(l,y);if(P&&(_s(P),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!di(u.doc,f)&&u.height!=null){var B=u.height;u.height=null;var W=gt(u)-B;W&&Fn(f,f.height+W)}ur(l,"markerChanged",l,e)})},oi.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var n=this.doc.cm.curOp;(!n.maybeHiddenMarkers||ft(n.maybeHiddenMarkers,this)==-1)&&(n.maybeUnhiddenMarkers||(n.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},oi.prototype.detachLine=function(e){if(this.lines.splice(ft(this.lines,e),1),!this.lines.length&&this.doc.cm){var n=this.doc.cm.curOp;(n.maybeHiddenMarkers||(n.maybeHiddenMarkers=[])).push(this)}},Re(oi);function ua(e,n,u,l,f){if(l&&l.shared)return kc(e,n,u,l,f);if(e.cm&&!e.cm.curOp)return Kr(e.cm,ua)(e,n,u,l,f);var y=new oi(e,f),P=Pt(n,u);if(l&&He(l,y,!1),P>0||P==0&&y.clearWhenEmpty!==!1)return y;if(y.replacedWith&&(y.collapsed=!0,y.widgetNode=he("span",[y.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||y.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(y.widgetNode.insertLeft=!0)),y.collapsed){if(Do(e,n.line,n,u,y)||n.line!=u.line&&Do(e,u.line,n,u,y))throw new Error("Inserting collapsed marker partially overlapping an existing one");nc()}y.addToHistory&&Qu(e,{from:n,to:u,origin:"markText"},e.sel,NaN);var B=n.line,W=e.cm,J;if(e.iter(B,u.line+1,function(Se){W&&y.collapsed&&!W.options.lineWrapping&&Yn(Se)==W.display.maxLine&&(J=!0),y.collapsed&&B!=n.line&&Fn(Se,0),Jd(Se,new Ro(y,B==n.line?n.ch:null,B==u.line?u.ch:null),e.cm&&e.cm.curOp),++B}),y.collapsed&&e.iter(n.line,u.line+1,function(Se){di(e,Se)&&Fn(Se,0)}),y.clearOnEnter&&D(y,"beforeCursorEnter",function(){return y.clear()}),y.readOnly&&(rc(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),y.collapsed&&(y.id=++ls,y.atomic=!0),W){if(J&&(W.curOp.updateMaxLine=!0),y.collapsed)Nr(W,n.line,u.line+1);else if(y.className||y.startStyle||y.endStyle||y.css||y.attributes||y.title)for(var ye=n.line;ye<=u.line;ye++)ii(W,ye,"text");y.atomic&&tf(W.doc),ur(W,"markerAdded",W,y)}return y}var Ta=function(e,n){this.markers=e,this.primary=n;for(var u=0;u<e.length;++u)e[u].parent=this};Ta.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();ur(this,"clear")}},Ta.prototype.find=function(e,n){return this.primary.find(e,n)},Re(Ta);function kc(e,n,u,l,f){l=He(l),l.shared=!1;var y=[ua(e,n,u,l,f)],P=y[0],B=l.widgetNode;return ji(e,function(W){B&&(l.widgetNode=B.cloneNode(!0)),y.push(ua(W,rt(W,n),rt(W,u),l,f));for(var J=0;J<W.linked.length;++J)if(W.linked[J].isParent)return;P=St(y)}),new Ta(y,P)}function of(e){return e.findMarks(qe(e.first,0),e.clipPos(qe(e.lastLine())),function(n){return n.parent})}function Tl(e,n){for(var u=0;u<n.length;u++){var l=n[u],f=l.find(),y=e.clipPos(f.from),P=e.clipPos(f.to);if(Pt(y,P)){var B=ua(e,y,P,l.primary,l.primary.type);l.markers.push(B),B.parent=l}}}function Mc(e){for(var n=function(l){var f=e[l],y=[f.primary.doc];ji(f.primary.doc,function(W){return y.push(W)});for(var P=0;P<f.markers.length;P++){var B=f.markers[P];ft(y,B.doc)==-1&&(B.parent=null,f.markers.splice(P--,1))}},u=0;u<e.length;u++)n(u)}var Lc=0,yn=function(e,n,u,l,f){if(!(this instanceof yn))return new yn(e,n,u,l,f);u==null&&(u=0),Oa.call(this,[new Ea([new Ji("",null)])]),this.first=u,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=u;var y=qe(u,0);this.sel=Ni(y),this.history=new lo(null),this.id=++Lc,this.modeOption=n,this.lineSep=l,this.direction=f=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),ml(this,{from:y,to:y,text:e}),nn(this,Ni(y),nt)};yn.prototype=mt(Oa.prototype,{constructor:yn,iter:function(e,n,u){u?this.iterN(e-this.first,n-e,u):this.iterN(this.first,this.first+this.size,e)},insert:function(e,n){for(var u=0,l=0;l<n.length;++l)u+=n[l].height;this.insertInner(e-this.first,n,u)},remove:function(e,n){this.removeInner(e-this.first,n)},getValue:function(e){var n=Ii(this,this.first,this.first+this.size);return e===!1?n:n.join(e||this.lineSeparator())},setValue:gr(function(e){var n=qe(this.first,0),u=this.first+this.size-1;wa(this,{from:n,to:qe(u,xt(this,u).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&ro(this.cm,0,0),nn(this,Ni(n),nt)}),replaceRange:function(e,n,u,l){n=rt(this,n),u=u?rt(this,u):n,Ca(this,e,n,u,l)},getRange:function(e,n,u){var l=fi(this,rt(this,e),rt(this,n));return u===!1?l:u===""?l.join(""):l.join(u||this.lineSeparator())},getLine:function(e){var n=this.getLineHandle(e);return n&&n.text},getLineHandle:function(e){if(ri(this,e))return xt(this,e)},getLineNumber:function(e){return qt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=xt(this,e)),Yn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return rt(this,e)},getCursor:function(e){var n=this.sel.primary(),u;return e==null||e=="head"?u=n.head:e=="anchor"?u=n.anchor:e=="end"||e=="to"||e===!1?u=n.to():u=n.from(),u},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:gr(function(e,n,u){Sl(this,rt(this,typeof e=="number"?qe(e,n||0):e),null,u)}),setSelection:gr(function(e,n,u){Sl(this,rt(this,e),rt(this,n||e),u)}),extendSelection:gr(function(e,n,u){is(this,rt(this,e),n&&rt(this,n),u)}),extendSelections:gr(function(e,n){qu(this,Xt(this,e),n)}),extendSelectionsBy:gr(function(e,n){var u=jt(this.sel.ranges,e);qu(this,Xt(this,u),n)}),setSelections:gr(function(e,n,u){if(!!e.length){for(var l=[],f=0;f<e.length;f++)l[f]=new tr(rt(this,e[f].anchor),rt(this,e[f].head||e[f].anchor));n==null&&(n=Math.min(e.length-1,this.sel.primIndex)),nn(this,kn(this.cm,l,n),u)}}),addSelection:gr(function(e,n,u){var l=this.sel.ranges.slice(0);l.push(new tr(rt(this,e),rt(this,n||e))),nn(this,kn(this.cm,l,l.length-1),u)}),getSelection:function(e){for(var n=this.sel.ranges,u,l=0;l<n.length;l++){var f=fi(this,n[l].from(),n[l].to());u=u?u.concat(f):f}return e===!1?u:u.join(e||this.lineSeparator())},getSelections:function(e){for(var n=[],u=this.sel.ranges,l=0;l<u.length;l++){var f=fi(this,u[l].from(),u[l].to());e!==!1&&(f=f.join(e||this.lineSeparator())),n[l]=f}return n},replaceSelection:function(e,n,u){for(var l=[],f=0;f<this.sel.ranges.length;f++)l[f]=e;this.replaceSelections(l,n,u||"+input")},replaceSelections:gr(function(e,n,u){for(var l=[],f=this.sel,y=0;y<f.ranges.length;y++){var P=f.ranges[y];l[y]={from:P.from(),to:P.to(),text:this.splitLines(e[y]),origin:u}}for(var B=n&&n!="end"&&Ec(this,l,n),W=l.length-1;W>=0;W--)wa(this,l[W]);B?_u(this,B):this.cm&&cn(this.cm)}),undo:gr(function(){Bn(this,"undo")}),redo:gr(function(){Bn(this,"redo")}),undoSelection:gr(function(){Bn(this,"undo",!0)}),redoSelection:gr(function(){Bn(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,n=0,u=0,l=0;l<e.done.length;l++)e.done[l].ranges||++n;for(var f=0;f<e.undone.length;f++)e.undone[f].ranges||++u;return{undo:n,redo:u}},clearHistory:function(){var e=this;this.history=new lo(this.history),ji(this,function(n){return n.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Sa(this.history.done),undone:Sa(this.history.undone)}},setHistory:function(e){var n=this.history=new lo(this.history);n.done=Sa(e.done.slice(0),null,!0),n.undone=Sa(e.undone.slice(0),null,!0)},setGutterMarker:gr(function(e,n,u){return la(this,e,"gutter",function(l){var f=l.gutterMarkers||(l.gutterMarkers={});return f[n]=u,!u&&Kt(f)&&(l.gutterMarkers=null),!0})}),clearGutter:gr(function(e){var n=this;this.iter(function(u){u.gutterMarkers&&u.gutterMarkers[e]&&la(n,u,"gutter",function(){return u.gutterMarkers[e]=null,Kt(u.gutterMarkers)&&(u.gutterMarkers=null),!0})})}),lineInfo:function(e){var n;if(typeof e=="number"){if(!ri(this,e)||(n=e,e=xt(this,e),!e))return null}else if(n=qt(e),n==null)return null;return{line:n,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:gr(function(e,n,u){return la(this,e,n=="gutter"?"gutter":"class",function(l){var f=n=="text"?"textClass":n=="background"?"bgClass":n=="gutter"?"gutterClass":"wrapClass";if(!l[f])l[f]=u;else{if(ue(u).test(l[f]))return!1;l[f]+=" "+u}return!0})}),removeLineClass:gr(function(e,n,u){return la(this,e,n=="gutter"?"gutter":"class",function(l){var f=n=="text"?"textClass":n=="background"?"bgClass":n=="gutter"?"gutterClass":"wrapClass",y=l[f];if(y)if(u==null)l[f]=null;else{var P=y.match(ue(u));if(!P)return!1;var B=P.index+P[0].length;l[f]=y.slice(0,P.index)+(!P.index||B==y.length?"":" ")+y.slice(B)||null}else return!1;return!0})}),addLineWidget:gr(function(e,n,u){return Fc(this,e,n,u)}),removeLineWidget:function(e){e.clear()},markText:function(e,n,u){return ua(this,rt(this,e),rt(this,n),u,u&&u.type||"range")},setBookmark:function(e,n){var u={replacedWith:n&&(n.nodeType==null?n.widget:n),insertLeft:n&&n.insertLeft,clearWhenEmpty:!1,shared:n&&n.shared,handleMouseEvents:n&&n.handleMouseEvents};return e=rt(this,e),ua(this,e,e,u,"bookmark")},findMarksAt:function(e){e=rt(this,e);var n=[],u=xt(this,e.line).markedSpans;if(u)for(var l=0;l<u.length;++l){var f=u[l];(f.from==null||f.from<=e.ch)&&(f.to==null||f.to>=e.ch)&&n.push(f.marker.parent||f.marker)}return n},findMarks:function(e,n,u){e=rt(this,e),n=rt(this,n);var l=[],f=e.line;return this.iter(e.line,n.line+1,function(y){var P=y.markedSpans;if(P)for(var B=0;B<P.length;B++){var W=P[B];!(W.to!=null&&f==e.line&&e.ch>=W.to||W.from==null&&f!=e.line||W.from!=null&&f==n.line&&W.from>=n.ch)&&(!u||u(W.marker))&&l.push(W.marker.parent||W.marker)}++f}),l},getAllMarks:function(){var e=[];return this.iter(function(n){var u=n.markedSpans;if(u)for(var l=0;l<u.length;++l)u[l].from!=null&&e.push(u[l].marker)}),e},posFromIndex:function(e){var n,u=this.first,l=this.lineSeparator().length;return this.iter(function(f){var y=f.text.length+l;if(y>e)return n=e,!0;e-=y,++u}),rt(this,qe(u,n))},indexFromPos:function(e){e=rt(this,e);var n=e.ch;if(e.line<this.first||e.ch<0)return 0;var u=this.lineSeparator().length;return this.iter(this.first,e.line,function(l){n+=l.text.length+u}),n},copy:function(e){var n=new yn(Ii(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return n.scrollTop=this.scrollTop,n.scrollLeft=this.scrollLeft,n.sel=this.sel,n.extend=!1,e&&(n.history.undoDepth=this.history.undoDepth,n.setHistory(this.getHistory())),n},linkedDoc:function(e){e||(e={});var n=this.first,u=this.first+this.size;e.from!=null&&e.from>n&&(n=e.from),e.to!=null&&e.to<u&&(u=e.to);var l=new yn(Ii(this,n,u),e.mode||this.modeOption,n,this.lineSep,this.direction);return e.sharedHist&&(l.history=this.history),(this.linked||(this.linked=[])).push({doc:l,sharedHist:e.sharedHist}),l.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Tl(l,of(this)),l},unlinkDoc:function(e){if(e instanceof yr&&(e=e.doc),this.linked)for(var n=0;n<this.linked.length;++n){var u=this.linked[n];if(u.doc==e){this.linked.splice(n,1),e.unlinkDoc(this),Mc(of(this));break}}if(e.history==this.history){var l=[e.id];ji(e,function(f){return l.push(f.id)},!0),e.history=new lo(null),e.history.done=Sa(this.history.done,l),e.history.undone=Sa(this.history.undone,l)}},iterLinkedDocs:function(e){ji(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):zn(e)},lineSeparator:function(){return this.lineSep||`
23
- `},setDirection:gr(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(n){return n.order=null}),this.cm&&so(this.cm))})}),yn.prototype.eachLine=yn.prototype.iter;var sf=0;function Rc(e){var n=this;if(lf(n),!(ce(n,e)||hi(n.display,e))){We(e),b&&(sf=+new Date);var u=ea(n,e,!0),l=e.dataTransfer.files;if(!(!u||n.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var f=l.length,y=Array(f),P=0,B=function(){++P==f&&Kr(n,function(){u=rt(n.doc,u);var Ee={from:u,to:u,text:n.doc.splitLines(y.filter(function(Ue){return Ue!=null}).join(n.doc.lineSeparator())),origin:"paste"};wa(n.doc,Ee),_u(n.doc,Ni(rt(n.doc,u),rt(n.doc,Bi(Ee))))})()},W=function(Ee,Ue){if(n.options.allowDropFileTypes&&ft(n.options.allowDropFileTypes,Ee.type)==-1){B();return}var Ye=new FileReader;Ye.onerror=function(){return B()},Ye.onload=function(){var et=Ye.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(et)){B();return}y[Ue]=et,B()},Ye.readAsText(Ee)},J=0;J<l.length;J++)W(l[J],J);else{if(n.state.draggingText&&n.doc.sel.contains(u)>-1){n.state.draggingText(e),setTimeout(function(){return n.display.input.focus()},20);return}try{var ye=e.dataTransfer.getData("Text");if(ye){var Se;if(n.state.draggingText&&!n.state.draggingText.copy&&(Se=n.listSelections()),os(n.doc,Ni(u,u)),Se)for(var Ie=0;Ie<Se.length;++Ie)Ca(n.doc,"",Se[Ie].anchor,Se[Ie].head,"drag");n.replaceSelection(ye,"around","paste"),n.display.input.focus()}}catch(Ee){}}}}function Dc(e,n){if(b&&(!e.state.draggingText||+new Date-sf<100)){Ft(n);return}if(!(ce(e,n)||hi(e.display,n))&&(n.dataTransfer.setData("Text",e.getSelection()),n.dataTransfer.effectAllowed="copyMove",n.dataTransfer.setDragImage&&!U)){var u=me("img",null,null,"position: fixed; left: 0; top: 0;");u.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",j&&(u.width=u.height=1,e.display.wrapper.appendChild(u),u._top=u.offsetTop),n.dataTransfer.setDragImage(u,0,0),j&&u.parentNode.removeChild(u)}}function Nc(e,n){var u=ea(e,n);if(!!u){var l=document.createDocumentFragment();al(e,u,l),e.display.dragCursor||(e.display.dragCursor=me("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),ge(e.display.dragCursor,l)}}function lf(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function us(e){if(!!document.getElementsByClassName){for(var n=document.getElementsByClassName("CodeMirror"),u=[],l=0;l<n.length;l++){var f=n[l].CodeMirror;f&&u.push(f)}u.length&&u[0].operation(function(){for(var y=0;y<u.length;y++)e(u[y])})}}var vo=!1;function uf(){vo||(Bc(),vo=!0)}function Bc(){var e;D(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,us(jc)},100))}),D(window,"blur",function(){return us(xa)})}function jc(e){var n=e.display;n.cachedCharWidth=n.cachedTextHeight=n.cachedPaddingH=null,n.scrollbarsClipped=!1,e.setSize()}for(var On={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"},go=0;go<10;go++)On[go+48]=On[go+96]=String(go);for(var yo=65;yo<=90;yo++)On[yo]=String.fromCharCode(yo);for(var Pa=1;Pa<=12;Pa++)On[Pa+111]=On[Pa+63235]="F"+Pa;var si={};si.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"},si.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"},si.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"},si.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"]},si.default=E?si.macDefault:si.pcDefault;function ff(e){var n=e.split(/-(?!$)/);e=n[n.length-1];for(var u,l,f,y,P=0;P<n.length-1;P++){var B=n[P];if(/^(cmd|meta|m)$/i.test(B))y=!0;else if(/^a(lt)?$/i.test(B))u=!0;else if(/^(c|ctrl|control)$/i.test(B))l=!0;else if(/^s(hift)?$/i.test(B))f=!0;else throw new Error("Unrecognized modifier name: "+B)}return u&&(e="Alt-"+e),l&&(e="Ctrl-"+e),y&&(e="Cmd-"+e),f&&(e="Shift-"+e),e}function qd(e){var n={};for(var u in e)if(e.hasOwnProperty(u)){var l=e[u];if(/^(name|fallthrough|(de|at)tach)$/.test(u))continue;if(l=="..."){delete e[u];continue}for(var f=jt(u.split(" "),ff),y=0;y<f.length;y++){var P=void 0,B=void 0;y==f.length-1?(B=f.join(" "),P=l):(B=f.slice(0,y+1).join(" "),P="...");var W=n[B];if(!W)n[B]=P;else if(W!=P)throw new Error("Inconsistent bindings for "+B)}delete e[u]}for(var J in n)e[J]=n[J];return e}function xi(e,n,u,l){n=fs(n);var f=n.call?n.call(e,l):n[e];if(f===!1)return"nothing";if(f==="...")return"multi";if(f!=null&&u(f))return"handled";if(n.fallthrough){if(Object.prototype.toString.call(n.fallthrough)!="[object Array]")return xi(e,n.fallthrough,u,l);for(var y=0;y<n.fallthrough.length;y++){var P=xi(e,n.fallthrough[y],u,l);if(P)return P}}}function cf(e){var n=typeof e=="string"?e:On[e.keyCode];return n=="Ctrl"||n=="Alt"||n=="Shift"||n=="Mod"}function Pl(e,n,u){var l=e;return n.altKey&&l!="Alt"&&(e="Alt-"+e),(X?n.metaKey:n.ctrlKey)&&l!="Ctrl"&&(e="Ctrl-"+e),(X?n.ctrlKey:n.metaKey)&&l!="Mod"&&(e="Cmd-"+e),!u&&n.shiftKey&&l!="Shift"&&(e="Shift-"+e),e}function df(e,n){if(j&&e.keyCode==34&&e.char)return!1;var u=On[e.keyCode];return u==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(u=e.code),Pl(u,e,n))}function fs(e){return typeof e=="string"?si[e]:e}function fa(e,n){for(var u=e.doc.sel.ranges,l=[],f=0;f<u.length;f++){for(var y=n(u[f]);l.length&&Pt(y.from,St(l).to)<=0;){var P=l.pop();if(Pt(P.from,y.from)<0){y.from=P.from;break}}l.push(y)}$r(e,function(){for(var B=l.length-1;B>=0;B--)Ca(e.doc,"",l[B].from,l[B].to,"+delete");cn(e)})}function cs(e,n,u){var l=Wt(e.text,n+u,u);return l<0||l>e.text.length?null:l}function ds(e,n,u){var l=cs(e,n.ch,u);return l==null?null:new qe(n.line,l,u<0?"after":"before")}function Il(e,n,u,l,f){if(e){n.doc.direction=="rtl"&&(f=-f);var y=T(u,n.doc.direction);if(y){var P=f<0?St(y):y[0],B=f<0==(P.level==1),W=B?"after":"before",J;if(P.level>0||n.doc.direction=="rtl"){var ye=ni(n,u);J=f<0?u.text.length-1:0;var Se=Jn(n,ye,J).top;J=Bt(function(Ie){return Jn(n,ye,Ie).top==Se},f<0==(P.level==1)?P.from:P.to-1,J),W=="before"&&(J=cs(u,J,1))}else J=f<0?P.to:P.from;return new qe(l,J,W)}}return new qe(l,f<0?u.text.length:0,f<0?"before":"after")}function pf(e,n,u,l){var f=T(n,e.doc.direction);if(!f)return ds(n,u,l);u.ch>=n.text.length?(u.ch=n.text.length,u.sticky="before"):u.ch<=0&&(u.ch=0,u.sticky="after");var y=$(f,u.ch,u.sticky),P=f[y];if(e.doc.direction=="ltr"&&P.level%2==0&&(l>0?P.to>u.ch:P.from<u.ch))return ds(n,u,l);var B=function(at,lt){return cs(n,at instanceof qe?at.ch:at,lt)},W,J=function(at){return e.options.lineWrapping?(W=W||ni(e,n),Fu(e,n,W,at)):{begin:0,end:n.text.length}},ye=J(u.sticky=="before"?B(u,-1):u.ch);if(e.doc.direction=="rtl"||P.level==1){var Se=P.level==1==l<0,Ie=B(u,Se?1:-1);if(Ie!=null&&(Se?Ie<=P.to&&Ie<=ye.end:Ie>=P.from&&Ie>=ye.begin)){var Ee=Se?"before":"after";return new qe(u.line,Ie,Ee)}}var Ue=function(at,lt,it){for(var pt=function(nr,br){return br?new qe(u.line,B(nr,1),"before"):new qe(u.line,nr,"after")};at>=0&&at<f.length;at+=lt){var wt=f[at],$e=lt>0==(wt.level!=1),Tt=$e?it.begin:B(it.end,-1);if(wt.from<=Tt&&Tt<wt.to||(Tt=$e?wt.from:B(wt.to,-1),it.begin<=Tt&&Tt<it.end))return pt(Tt,$e)}},Ye=Ue(y+l,l,ye);if(Ye)return Ye;var et=l>0?ye.end:B(ye.begin,-1);return et!=null&&!(l>0&&et==n.text.length)&&(Ye=Ue(l>0?0:f.length-1,l,J(et)),Ye)?Ye:null}var mo={selectAll:ss,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),nt)},killLine:function(e){return fa(e,function(n){if(n.empty()){var u=xt(e.doc,n.head.line).text.length;return n.head.ch==u&&n.head.line<e.lastLine()?{from:n.head,to:qe(n.head.line+1,0)}:{from:n.head,to:qe(n.head.line,u)}}else return{from:n.from(),to:n.to()}})},deleteLine:function(e){return fa(e,function(n){return{from:qe(n.from().line,0),to:rt(e.doc,qe(n.to().line+1,0))}})},delLineLeft:function(e){return fa(e,function(n){return{from:qe(n.from().line,0),to:n.from()}})},delWrappedLineLeft:function(e){return fa(e,function(n){var u=e.charCoords(n.head,"div").top+5,l=e.coordsChar({left:0,top:u},"div");return{from:l,to:n.from()}})},delWrappedLineRight:function(e){return fa(e,function(n){var u=e.charCoords(n.head,"div").top+5,l=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:u},"div");return{from:n.from(),to:l}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(qe(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(qe(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(n){return Ia(e,n.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(n){return ps(e,n.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(n){return Uc(e,n.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(n){var u=e.cursorCoords(n.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:u},"div")},dt)},goLineLeft:function(e){return e.extendSelectionsBy(function(n){var u=e.cursorCoords(n.head,"div").top+5;return e.coordsChar({left:0,top:u},"div")},dt)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(n){var u=e.cursorCoords(n.head,"div").top+5,l=e.coordsChar({left:0,top:u},"div");return l.ch<e.getLine(l.line).search(/\S/)?ps(e,n.head):l},dt)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var n=[],u=e.listSelections(),l=e.options.tabSize,f=0;f<u.length;f++){var y=u[f].from(),P=Je(e.getLine(y.line),y.ch,l);n.push(Et(l-P%l))}e.replaceSelections(n)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return $r(e,function(){for(var n=e.listSelections(),u=[],l=0;l<n.length;l++)if(!!n[l].empty()){var f=n[l].head,y=xt(e.doc,f.line).text;if(y){if(f.ch==y.length&&(f=new qe(f.line,f.ch-1)),f.ch>0)f=new qe(f.line,f.ch+1),e.replaceRange(y.charAt(f.ch-1)+y.charAt(f.ch-2),qe(f.line,f.ch-2),f,"+transpose");else if(f.line>e.doc.first){var P=xt(e.doc,f.line-1).text;P&&(f=new qe(f.line,1),e.replaceRange(y.charAt(0)+e.doc.lineSeparator()+P.charAt(P.length-1),qe(f.line-1,P.length-1),f,"+transpose"))}}u.push(new tr(f,f))}e.setSelections(u)})},newlineAndIndent:function(e){return $r(e,function(){for(var n=e.listSelections(),u=n.length-1;u>=0;u--)e.replaceRange(e.doc.lineSeparator(),n[u].anchor,n[u].head,"+input");n=e.listSelections();for(var l=0;l<n.length;l++)e.indentLine(n[l].from().line,null,!0);cn(e)})},openLine:function(e){return e.replaceSelection(`
24
- `,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Ia(e,n){var u=xt(e.doc,n),l=Yn(u);return l!=u&&(n=qt(l)),Il(!0,e,l,n,1)}function Uc(e,n){var u=xt(e.doc,n),l=yu(u);return l!=u&&(n=qt(l)),Il(!0,e,u,n,-1)}function ps(e,n){var u=Ia(e,n.line),l=xt(e.doc,u.line),f=T(l,e.doc.direction);if(!f||f[0].level==0){var y=Math.max(u.ch,l.text.search(/\S/)),P=n.line==u.line&&n.ch<=y&&n.ch;return qe(u.line,P?0:y,u.sticky)}return u}function hs(e,n,u){if(typeof n=="string"&&(n=mo[n],!n))return!1;e.display.input.ensurePolled();var l=e.display.shift,f=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),u&&(e.display.shift=!1),f=n(e)!=Qe}finally{e.display.shift=l,e.state.suppressEdits=!1}return f}function Vc(e,n,u){for(var l=0;l<e.state.keyMaps.length;l++){var f=xi(n,e.state.keyMaps[l],u,e);if(f)return f}return e.options.extraKeys&&xi(n,e.options.extraKeys,u,e)||xi(n,e.options.keyMap,u,e)}var vs=new ut;function xo(e,n,u,l){var f=e.state.keySeq;if(f){if(cf(n))return"handled";if(/\'$/.test(n)?e.state.keySeq=null:vs.set(50,function(){e.state.keySeq==f&&(e.state.keySeq=null,e.display.input.reset())}),Wc(e,f+" "+n,u,l))return!0}return Wc(e,n,u,l)}function Wc(e,n,u,l){var f=Vc(e,n,l);return f=="multi"&&(e.state.keySeq=n),f=="handled"&&ur(e,"keyHandled",e,n,u),(f=="handled"||f=="multi")&&(We(u),ol(e)),!!f}function hf(e,n){var u=df(n,!0);return u?n.shiftKey&&!e.state.keySeq?xo(e,"Shift-"+u,n,function(l){return hs(e,l,!0)})||xo(e,u,n,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return hs(e,l)}):xo(e,u,n,function(l){return hs(e,l)}):!1}function Hc(e,n,u){return xo(e,"'"+u+"'",n,function(l){return hs(e,l,!0)})}var gs=null;function vf(e){var n=this;if(!(e.target&&e.target!=n.display.input.getField())&&(n.curOp.focus=Oe(),!ce(n,e))){b&&C<11&&e.keyCode==27&&(e.returnValue=!1);var u=e.keyCode;n.display.shift=u==16||e.shiftKey;var l=hf(n,e);j&&(gs=l?u:null,!l&&u==88&&!Rn&&(E?e.metaKey:e.ctrlKey)&&n.replaceSelection("",null,"cut")),c&&!E&&!l&&u==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),u==18&&!/\bCodeMirror-crosshair\b/.test(n.display.lineDiv.className)&&zc(n)}}function zc(e){var n=e.display.lineDiv;Pe(n,"CodeMirror-crosshair");function u(l){(l.keyCode==18||!l.altKey)&&(q(n,"CodeMirror-crosshair"),fe(document,"keyup",u),fe(document,"mouseover",u))}D(document,"keyup",u),D(document,"mouseover",u)}function gf(e){e.keyCode==16&&(this.doc.sel.shift=!1),ce(this,e)}function Fl(e){var n=this;if(!(e.target&&e.target!=n.display.input.getField())&&!(hi(n.display,e)||ce(n,e)||e.ctrlKey&&!e.altKey||E&&e.metaKey)){var u=e.keyCode,l=e.charCode;if(j&&u==gs){gs=null,We(e);return}if(!(j&&(!e.which||e.which<10)&&hf(n,e))){var f=String.fromCharCode(l==null?u:l);f!="\b"&&(Hc(n,e,f)||n.display.input.onKeyPress(e))}}}var Gc=400,kl=function(e,n,u){this.time=e,this.pos=n,this.button=u};kl.prototype.compare=function(e,n,u){return this.time+Gc>e&&Pt(n,this.pos)==0&&u==this.button};var bo,So;function $c(e,n){var u=+new Date;return So&&So.compare(u,e,n)?(bo=So=null,"triple"):bo&&bo.compare(u,e,n)?(So=new kl(u,e,n),bo=null,"double"):(bo=new kl(u,e,n),So=null,"single")}function yf(e){var n=this,u=n.display;if(!(ce(n,e)||u.activeTouch&&u.input.supportsTouch())){if(u.input.ensurePolled(),u.shift=e.shiftKey,hi(u,e)){S||(u.scroller.draggable=!1,setTimeout(function(){return u.scroller.draggable=!0},100));return}if(!Ml(n,e)){var l=ea(n,e),f=bn(e),y=l?$c(l,f):"single";window.focus(),f==1&&n.state.selectingText&&n.state.selectingText(e),!(l&&Kc(n,f,l,y,e))&&(f==1?l?Jc(n,l,y,e):At(e)==u.scroller&&We(e):f==2?(l&&is(n.doc,l),setTimeout(function(){return u.input.focus()},20)):f==3&&(z?n.display.input.onContextMenu(e):eo(n)))}}}function Kc(e,n,u,l,f){var y="Click";return l=="double"?y="Double"+y:l=="triple"&&(y="Triple"+y),y=(n==1?"Left":n==2?"Middle":"Right")+y,xo(e,Pl(y,f),f,function(P){if(typeof P=="string"&&(P=mo[P]),!P)return!1;var B=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),B=P(e,u)!=Qe}finally{e.state.suppressEdits=!1}return B})}function Yc(e,n,u){var l=e.getOption("configureMouse"),f=l?l(e,n,u):{};if(f.unit==null){var y=V?u.shiftKey&&u.metaKey:u.altKey;f.unit=y?"rectangle":n=="single"?"char":n=="double"?"word":"line"}return(f.extend==null||e.doc.extend)&&(f.extend=e.doc.extend||u.shiftKey),f.addNew==null&&(f.addNew=E?u.metaKey:u.ctrlKey),f.moveOnDrag==null&&(f.moveOnDrag=!(E?u.altKey:u.ctrlKey)),f}function Jc(e,n,u,l){b?setTimeout(Xe(sl,e),0):e.curOp.focus=Oe();var f=Yc(e,u,l),y=e.doc.sel,P;e.options.dragDrop&&zr&&!e.isReadOnly()&&u=="single"&&(P=y.contains(n))>-1&&(Pt((P=y.ranges[P]).from(),n)<0||n.xRel>0)&&(Pt(P.to(),n)>0||n.xRel<0)?ys(e,l,n,f):Xc(e,l,n,f)}function ys(e,n,u,l){var f=e.display,y=!1,P=Kr(e,function(J){S&&(f.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:eo(e)),fe(f.wrapper.ownerDocument,"mouseup",P),fe(f.wrapper.ownerDocument,"mousemove",B),fe(f.scroller,"dragstart",W),fe(f.scroller,"drop",P),y||(We(J),l.addNew||is(e.doc,u,null,null,l.extend),S&&!U||b&&C==9?setTimeout(function(){f.wrapper.ownerDocument.body.focus({preventScroll:!0}),f.input.focus()},20):f.input.focus())}),B=function(J){y=y||Math.abs(n.clientX-J.clientX)+Math.abs(n.clientY-J.clientY)>=10},W=function(){return y=!0};S&&(f.scroller.draggable=!0),e.state.draggingText=P,P.copy=!l.moveOnDrag,D(f.wrapper.ownerDocument,"mouseup",P),D(f.wrapper.ownerDocument,"mousemove",B),D(f.scroller,"dragstart",W),D(f.scroller,"drop",P),e.state.delayingBlurEvent=!0,setTimeout(function(){return f.input.focus()},20),f.scroller.dragDrop&&f.scroller.dragDrop()}function mf(e,n,u){if(u=="char")return new tr(n,n);if(u=="word")return e.findWordAt(n);if(u=="line")return new tr(qe(n.line,0),rt(e.doc,qe(n.line+1,0)));var l=u(e,n);return new tr(l.from,l.to)}function Xc(e,n,u,l){b&&eo(e);var f=e.display,y=e.doc;We(n);var P,B,W=y.sel,J=W.ranges;if(l.addNew&&!l.extend?(B=y.sel.contains(u),B>-1?P=J[B]:P=new tr(u,u)):(P=y.sel.primary(),B=y.sel.primIndex),l.unit=="rectangle")l.addNew||(P=new tr(u,u)),u=ea(e,n,!0,!0),B=-1;else{var ye=mf(e,u,l.unit);l.extend?P=bl(P,ye.anchor,ye.head,l.extend):P=ye}l.addNew?B==-1?(B=J.length,nn(y,kn(e,J.concat([P]),B),{scroll:!1,origin:"*mouse"})):J.length>1&&J[B].empty()&&l.unit=="char"&&!l.extend?(nn(y,kn(e,J.slice(0,B).concat(J.slice(B+1)),0),{scroll:!1,origin:"*mouse"}),W=y.sel):as(y,B,P,ct):(B=0,nn(y,new En([P],0),ct),W=y.sel);var Se=u;function Ie(it){if(Pt(Se,it)!=0)if(Se=it,l.unit=="rectangle"){for(var pt=[],wt=e.options.tabSize,$e=Je(xt(y,u.line).text,u.ch,wt),Tt=Je(xt(y,it.line).text,it.ch,wt),nr=Math.min($e,Tt),br=Math.max($e,Tt),Zt=Math.min(u.line,it.line),Tn=Math.min(e.lastLine(),Math.max(u.line,it.line));Zt<=Tn;Zt++){var mn=xt(y,Zt).text,Rr=st(mn,nr,wt);nr==br?pt.push(new tr(qe(Zt,Rr),qe(Zt,Rr))):mn.length>Rr&&pt.push(new tr(qe(Zt,Rr),qe(Zt,st(mn,br,wt))))}pt.length||pt.push(new tr(u,u)),nn(y,kn(e,W.ranges.slice(0,B).concat(pt),B),{origin:"*mouse",scroll:!1}),e.scrollIntoView(it)}else{var dn=P,_r=mf(e,it,l.unit),jr=dn.anchor,Tr;Pt(_r.anchor,jr)>0?(Tr=_r.head,jr=Ge(dn.from(),_r.anchor)):(Tr=_r.anchor,jr=Ae(dn.to(),_r.head));var vr=W.ranges.slice(0);vr[B]=Qc(e,new tr(rt(y,jr),Tr)),nn(y,kn(e,vr,B),ct)}}var Ee=f.wrapper.getBoundingClientRect(),Ue=0;function Ye(it){var pt=++Ue,wt=ea(e,it,!0,l.unit=="rectangle");if(!!wt)if(Pt(wt,Se)!=0){e.curOp.focus=Oe(),Ie(wt);var $e=to(f,y);(wt.line>=$e.to||wt.line<$e.from)&&setTimeout(Kr(e,function(){Ue==pt&&Ye(it)}),150)}else{var Tt=it.clientY<Ee.top?-20:it.clientY>Ee.bottom?20:0;Tt&&setTimeout(Kr(e,function(){Ue==pt&&(f.scroller.scrollTop+=Tt,Ye(it))}),50)}}function et(it){e.state.selectingText=!1,Ue=1/0,it&&(We(it),f.input.focus()),fe(f.wrapper.ownerDocument,"mousemove",at),fe(f.wrapper.ownerDocument,"mouseup",lt),y.history.lastSelOrigin=null}var at=Kr(e,function(it){it.buttons===0||!bn(it)?et(it):Ye(it)}),lt=Kr(e,et);e.state.selectingText=lt,D(f.wrapper.ownerDocument,"mousemove",at),D(f.wrapper.ownerDocument,"mouseup",lt)}function Qc(e,n){var u=n.anchor,l=n.head,f=xt(e.doc,u.line);if(Pt(u,l)==0&&u.sticky==l.sticky)return n;var y=T(f);if(!y)return n;var P=$(y,u.ch,u.sticky),B=y[P];if(B.from!=u.ch&&B.to!=u.ch)return n;var W=P+(B.from==u.ch==(B.level!=1)?0:1);if(W==0||W==y.length)return n;var J;if(l.line!=u.line)J=(l.line-u.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var ye=$(y,l.ch,l.sticky),Se=ye-P||(l.ch-u.ch)*(B.level==1?-1:1);ye==W-1||ye==W?J=Se<0:J=Se>0}var Ie=y[W+(J?-1:0)],Ee=J==(Ie.level==1),Ue=Ee?Ie.from:Ie.to,Ye=Ee?"after":"before";return u.ch==Ue&&u.sticky==Ye?n:new tr(new qe(u.line,Ue,Ye),l)}function xf(e,n,u,l){var f,y;if(n.touches)f=n.touches[0].clientX,y=n.touches[0].clientY;else try{f=n.clientX,y=n.clientY}catch(Ie){return!1}if(f>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;l&&We(n);var P=e.display,B=P.lineDiv.getBoundingClientRect();if(y>B.bottom||!Le(e,u))return vt(n);y-=B.top-P.viewOffset;for(var W=0;W<e.display.gutterSpecs.length;++W){var J=P.gutters.childNodes[W];if(J&&J.getBoundingClientRect().right>=f){var ye=Kn(e.doc,y),Se=e.display.gutterSpecs[W];return te(e,u,e,ye,Se.className,n),vt(n)}}}function Ml(e,n){return xf(e,n,"gutterClick",!0)}function bf(e,n){hi(e.display,n)||Sf(e,n)||ce(e,n,"contextmenu")||z||e.display.input.onContextMenu(n)}function Sf(e,n){return Le(e,"gutterContextMenu")?xf(e,n,"gutterContextMenu",!1):!1}function Af(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Qa(e)}var Fa={toString:function(){return"CodeMirror.Init"}},wf={},ms={};function Cf(e){var n=e.optionHandlers;function u(l,f,y,P){e.defaults[l]=f,y&&(n[l]=P?function(B,W,J){J!=Fa&&y(B,W,J)}:y)}e.defineOption=u,e.Init=Fa,u("value","",function(l,f){return l.setValue(f)},!0),u("mode",null,function(l,f){l.doc.modeOption=f,es(l)},!0),u("indentUnit",2,es,!0),u("indentWithTabs",!1),u("smartIndent",!0),u("tabSize",4,function(l){oa(l),Qa(l),Nr(l)},!0),u("lineSeparator",null,function(l,f){if(l.doc.lineSep=f,!!f){var y=[],P=l.doc.first;l.doc.iter(function(W){for(var J=0;;){var ye=W.text.indexOf(f,J);if(ye==-1)break;J=ye+f.length,y.push(qe(P,ye))}P++});for(var B=y.length-1;B>=0;B--)Ca(l.doc,f,y[B],qe(y[B].line,y[B].ch+f.length))}}),u("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(l,f,y){l.state.specialChars=new RegExp(f.source+(f.test(" ")?"":"| "),"g"),y!=Fa&&l.refresh()}),u("specialCharPlaceholder",Gs,function(l){return l.refresh()},!0),u("electricChars",!0),u("inputStyle",R?"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){Af(l),qo(l)},!0),u("keyMap","default",function(l,f,y){var P=fs(f),B=y!=Fa&&fs(y);B&&B.detach&&B.detach(l,P),P.attach&&P.attach(l,B||null)}),u("extraKeys",null),u("configureMouse",null),u("lineWrapping",!1,qc,!0),u("gutters",[],function(l,f){l.display.gutterSpecs=oo(f,l.options.lineNumbers),qo(l)},!0),u("fixedGutter",!0,function(l,f){l.display.gutters.style.left=f?Nn(l.display)+"px":"0",l.refresh()},!0),u("coverGutterNextToScrollbar",!1,function(l){return gi(l)},!0),u("scrollbarStyle","native",function(l){Qo(l),gi(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=oo(l.options.gutters,f),qo(l)},!0),u("firstLineNumber",1,qo,!0),u("lineNumberFormatter",function(l){return l},qo,!0),u("showCursorWhenSelecting",!1,Li,!0),u("resetSelectionOnContextMenu",!0),u("lineWiseCopyCut",!0),u("pasteLinesPerSelection",!0),u("selectionsMayTouch",!1),u("readOnly",!1,function(l,f){f=="nocursor"&&(xa(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,Zc),u("allowDropFileTypes",null),u("cursorBlinkRate",530),u("cursorScrollMargin",0),u("cursorHeight",1,Li,!0),u("singleCursorHeightPerLine",!0,Li,!0),u("workTime",100),u("workDelay",100),u("flattenSpans",!0,oa,!0),u("addModeClass",!1,oa,!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,oa,!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 Zc(e,n,u){var l=u&&u!=Fa;if(!n!=!l){var f=e.display.dragFunctions,y=n?D:fe;y(e.display.scroller,"dragstart",f.start),y(e.display.scroller,"dragenter",f.enter),y(e.display.scroller,"dragover",f.over),y(e.display.scroller,"dragleave",f.leave),y(e.display.scroller,"drop",f.drop)}}function qc(e){e.options.lineWrapping?(Pe(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(q(e.display.wrapper,"CodeMirror-wrap"),Vs(e)),il(e),Nr(e),Qa(e),setTimeout(function(){return gi(e)},100)}function yr(e,n){var u=this;if(!(this instanceof yr))return new yr(e,n);this.options=n=n?He(n):{},He(wf,n,!1);var l=n.value;typeof l=="string"?l=new yn(l,n.mode,null,n.lineSeparator,n.direction):n.mode&&(l.modeOption=n.mode),this.doc=l;var f=new yr.inputStyles[n.inputStyle](this),y=this.display=new Cc(e,l,f,n);y.wrapper.CodeMirror=this,Af(this),n.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Qo(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 ut,keySeq:null,specialChars:null},n.autofocus&&!R&&y.input.focus(),b&&C<11&&setTimeout(function(){return u.display.input.reset(!0)},20),_c(this),uf(),Ri(this),this.curOp.forceUpdate=!0,Yu(this,l),n.autofocus&&!R||this.hasFocus()?setTimeout(function(){u.hasFocus()&&!u.state.focused&&Ko(u)},20):xa(this);for(var P in ms)ms.hasOwnProperty(P)&&ms[P](this,n[P],Fa);Zo(this),n.finishInit&&n.finishInit(this);for(var B=0;B<Ll.length;++B)Ll[B](this);Di(this),S&&n.lineWrapping&&getComputedStyle(y.lineDiv).textRendering=="optimizelegibility"&&(y.lineDiv.style.textRendering="auto")}yr.defaults=wf,yr.optionHandlers=ms;function _c(e){var n=e.display;D(n.scroller,"mousedown",Kr(e,yf)),b&&C<11?D(n.scroller,"dblclick",Kr(e,function(W){if(!ce(e,W)){var J=ea(e,W);if(!(!J||Ml(e,W)||hi(e.display,W))){We(W);var ye=e.findWordAt(J);is(e.doc,ye.anchor,ye.head)}}})):D(n.scroller,"dblclick",function(W){return ce(e,W)||We(W)}),D(n.scroller,"contextmenu",function(W){return bf(e,W)}),D(n.input.getField(),"contextmenu",function(W){n.scroller.contains(W.target)||bf(e,W)});var u,l={end:0};function f(){n.activeTouch&&(u=setTimeout(function(){return n.activeTouch=null},1e3),l=n.activeTouch,l.end=+new Date)}function y(W){if(W.touches.length!=1)return!1;var J=W.touches[0];return J.radiusX<=1&&J.radiusY<=1}function P(W,J){if(J.left==null)return!0;var ye=J.left-W.left,Se=J.top-W.top;return ye*ye+Se*Se>20*20}D(n.scroller,"touchstart",function(W){if(!ce(e,W)&&!y(W)&&!Ml(e,W)){n.input.ensurePolled(),clearTimeout(u);var J=+new Date;n.activeTouch={start:J,moved:!1,prev:J-l.end<=300?l:null},W.touches.length==1&&(n.activeTouch.left=W.touches[0].pageX,n.activeTouch.top=W.touches[0].pageY)}}),D(n.scroller,"touchmove",function(){n.activeTouch&&(n.activeTouch.moved=!0)}),D(n.scroller,"touchend",function(W){var J=n.activeTouch;if(J&&!hi(n,W)&&J.left!=null&&!J.moved&&new Date-J.start<300){var ye=e.coordsChar(n.activeTouch,"page"),Se;!J.prev||P(J,J.prev)?Se=new tr(ye,ye):!J.prev.prev||P(J,J.prev.prev)?Se=e.findWordAt(ye):Se=new tr(qe(ye.line,0),rt(e.doc,qe(ye.line+1,0))),e.setSelection(Se.anchor,Se.head),e.focus(),We(W)}f()}),D(n.scroller,"touchcancel",f),D(n.scroller,"scroll",function(){n.scroller.clientHeight&&(no(e,n.scroller.scrollTop),na(e,n.scroller.scrollLeft,!0),te(e,"scroll",e))}),D(n.scroller,"mousewheel",function(W){return Gu(e,W)}),D(n.scroller,"DOMMouseScroll",function(W){return Gu(e,W)}),D(n.wrapper,"scroll",function(){return n.wrapper.scrollTop=n.wrapper.scrollLeft=0}),n.dragFunctions={enter:function(W){ce(e,W)||Ft(W)},over:function(W){ce(e,W)||(Nc(e,W),Ft(W))},start:function(W){return Dc(e,W)},drop:Kr(e,Rc),leave:function(W){ce(e,W)||lf(e)}};var B=n.input.getField();D(B,"keyup",function(W){return gf.call(e,W)}),D(B,"keydown",Kr(e,vf)),D(B,"keypress",Kr(e,Fl)),D(B,"focus",function(W){return Ko(e,W)}),D(B,"blur",function(W){return xa(e,W)})}var Ll=[];yr.defineInitHook=function(e){return Ll.push(e)};function ka(e,n,u,l){var f=e.doc,y;u==null&&(u="add"),u=="smart"&&(f.mode.indent?y=un(e,n).state:u="prev");var P=e.options.tabSize,B=xt(f,n),W=Je(B.text,null,P);B.stateAfter&&(B.stateAfter=null);var J=B.text.match(/^\s*/)[0],ye;if(!l&&!/\S/.test(B.text))ye=0,u="not";else if(u=="smart"&&(ye=f.mode.indent(y,B.text.slice(J.length),B.text),ye==Qe||ye>150)){if(!l)return;u="prev"}u=="prev"?n>f.first?ye=Je(xt(f,n-1).text,null,P):ye=0:u=="add"?ye=W+e.options.indentUnit:u=="subtract"?ye=W-e.options.indentUnit:typeof u=="number"&&(ye=W+u),ye=Math.max(0,ye);var Se="",Ie=0;if(e.options.indentWithTabs)for(var Ee=Math.floor(ye/P);Ee;--Ee)Ie+=P,Se+=" ";if(Ie<ye&&(Se+=Et(ye-Ie)),Se!=J)return Ca(f,Se,qe(n,0),qe(n,J.length),"+input"),B.stateAfter=null,!0;for(var Ue=0;Ue<f.sel.ranges.length;Ue++){var Ye=f.sel.ranges[Ue];if(Ye.head.line==n&&Ye.head.ch<J.length){var et=qe(n,J.length);as(f,Ue,new tr(et,et));break}}}var Mn=null;function Ao(e){Mn=e}function Rl(e,n,u,l,f){var y=e.doc;e.display.shift=!1,l||(l=y.sel);var P=+new Date-200,B=f=="paste"||e.state.pasteIncoming>P,W=zn(n),J=null;if(B&&l.ranges.length>1)if(Mn&&Mn.text.join(`
25
- `)==n){if(l.ranges.length%Mn.text.length==0){J=[];for(var ye=0;ye<Mn.text.length;ye++)J.push(y.splitLines(Mn.text[ye]))}}else W.length==l.ranges.length&&e.options.pasteLinesPerSelection&&(J=jt(W,function(at){return[at]}));for(var Se=e.curOp.updateInput,Ie=l.ranges.length-1;Ie>=0;Ie--){var Ee=l.ranges[Ie],Ue=Ee.from(),Ye=Ee.to();Ee.empty()&&(u&&u>0?Ue=qe(Ue.line,Ue.ch-u):e.state.overwrite&&!B?Ye=qe(Ye.line,Math.min(xt(y,Ye.line).text.length,Ye.ch+St(W).length)):B&&Mn&&Mn.lineWise&&Mn.text.join(`
26
- `)==W.join(`
27
- `)&&(Ue=Ye=qe(Ue.line,0)));var et={from:Ue,to:Ye,text:J?J[Ie%J.length]:W,origin:f||(B?"paste":e.state.cutIncoming>P?"cut":"+input")};wa(e.doc,et),ur(e,"inputRead",e,et)}n&&!B&&Of(e,n),cn(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Se),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ef(e,n){var u=e.clipboardData&&e.clipboardData.getData("Text");if(u)return e.preventDefault(),!n.isReadOnly()&&!n.options.disableInput&&$r(n,function(){return Rl(n,u,0,null,"paste")}),!0}function Of(e,n){if(!(!e.options.electricChars||!e.options.smartIndent))for(var u=e.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 y=e.getModeAt(f.head),P=!1;if(y.electricChars){for(var B=0;B<y.electricChars.length;B++)if(n.indexOf(y.electricChars.charAt(B))>-1){P=ka(e,f.head.line,"smart");break}}else y.electricInput&&y.electricInput.test(xt(e.doc,f.head.line).text.slice(0,f.head.ch))&&(P=ka(e,f.head.line,"smart"));P&&ur(e,"electricInput",e,f.head.line)}}}function Tf(e){for(var n=[],u=[],l=0;l<e.doc.sel.ranges.length;l++){var f=e.doc.sel.ranges[l].head.line,y={anchor:qe(f,0),head:qe(f+1,0)};u.push(y),n.push(e.getRange(y.anchor,y.head))}return{text:n,ranges:u}}function wr(e,n,u,l){e.setAttribute("autocorrect",u?"":"off"),e.setAttribute("autocapitalize",l?"":"off"),e.setAttribute("spellcheck",!!n)}function ed(){var e=me("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),n=me("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return S?e.style.width="1000px":e.setAttribute("wrap","off"),M&&(e.style.border="1px solid black"),wr(e),n}function td(e){var n=e.optionHandlers,u=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(l,f){var y=this.options,P=y[l];y[l]==f&&l!="mode"||(y[l]=f,n.hasOwnProperty(l)&&Kr(this,n[l])(this,f,P),te(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"](fs(l))},removeKeyMap:function(l){for(var f=this.state.keyMaps,y=0;y<f.length;++y)if(f[y]==l||f[y].name==l)return f.splice(y,1),!0},addOverlay:Br(function(l,f){var y=l.token?l:e.getMode(this.options,l);if(y.startState)throw new Error("Overlays may not be stateful.");Dt(this.state.overlays,{mode:y,modeSpec:l,opaque:f&&f.opaque,priority:f&&f.priority||0},function(P){return P.priority}),this.state.modeGen++,Nr(this)}),removeOverlay:Br(function(l){for(var f=this.state.overlays,y=0;y<f.length;++y){var P=f[y].modeSpec;if(P==l||typeof l=="string"&&P.name==l){f.splice(y,1),this.state.modeGen++,Nr(this);return}}}),indentLine:Br(function(l,f,y){typeof f!="string"&&typeof f!="number"&&(f==null?f=this.options.smartIndent?"smart":"prev":f=f?"add":"subtract"),ri(this.doc,l)&&ka(this,l,f,y)}),indentSelection:Br(function(l){for(var f=this.doc.sel.ranges,y=-1,P=0;P<f.length;P++){var B=f[P];if(B.empty())B.head.line>y&&(ka(this,B.head.line,l,!0),y=B.head.line,P==this.doc.sel.primIndex&&cn(this));else{var W=B.from(),J=B.to(),ye=Math.max(y,W.line);y=Math.min(this.lastLine(),J.line-(J.ch?0:1))+1;for(var Se=ye;Se<y;++Se)ka(this,Se,l);var Ie=this.doc.sel.ranges;W.ch==0&&f.length==Ie.length&&Ie[P].from().ch>0&&as(this.doc,P,new tr(W,Ie[P].to()),nt)}}}),getTokenAt:function(l,f){return Ds(this,l,f)},getLineTokens:function(l,f){return Ds(this,qe(l),f,!0)},getTokenTypeAt:function(l){l=rt(this.doc,l);var f=uu(this,xt(this.doc,l.line)),y=0,P=(f.length-1)/2,B=l.ch,W;if(B==0)W=f[2];else for(;;){var J=y+P>>1;if((J?f[J*2-1]:0)>=B)P=J;else if(f[J*2+1]<B)y=J+1;else{W=f[J*2+2];break}}var ye=W?W.indexOf("overlay "):-1;return ye<0?W:ye==0?null:W.slice(0,ye-1)},getModeAt:function(l){var f=this.doc.mode;return f.innerMode?e.innerMode(f,this.getTokenAt(l).state).mode:f},getHelper:function(l,f){return this.getHelpers(l,f)[0]},getHelpers:function(l,f){var y=[];if(!u.hasOwnProperty(f))return y;var P=u[f],B=this.getModeAt(l);if(typeof B[f]=="string")P[B[f]]&&y.push(P[B[f]]);else if(B[f])for(var W=0;W<B[f].length;W++){var J=P[B[f][W]];J&&y.push(J)}else B.helperType&&P[B.helperType]?y.push(P[B.helperType]):P[B.name]&&y.push(P[B.name]);for(var ye=0;ye<P._global.length;ye++){var Se=P._global[ye];Se.pred(B,this)&&ft(y,Se.val)==-1&&y.push(Se.val)}return y},getStateAfter:function(l,f){var y=this.doc;return l=tt(y,l==null?y.first+y.size-1:l),un(this,l+1,f).state},cursorCoords:function(l,f){var y,P=this.doc.sel.primary();return l==null?y=P.head:typeof l=="object"?y=rt(this.doc,l):y=l?P.from():P.to(),Xn(this,y,f||"page")},charCoords:function(l,f){return Wo(this,rt(this.doc,l),f||"page")},coordsChar:function(l,f){return l=_a(this,l,f||"page"),tl(this,l.left,l.top)},lineAtHeight:function(l,f){return l=_a(this,{top:l,left:0},f||"page").top,Kn(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,f,y){var P=!1,B;if(typeof l=="number"){var W=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>W&&(l=W,P=!0),B=xt(this.doc,l)}else B=l;return Vo(this,B,{top:0,left:0},f||"page",y||P).top+(P?this.doc.height-pi(B):0)},defaultTextHeight:function(){return ma(this.display)},defaultCharWidth:function(){return Dn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,f,y,P,B){var W=this.display;l=Xn(this,rt(this.doc,l));var J=l.bottom,ye=l.left;if(f.style.position="absolute",f.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(f),W.sizer.appendChild(f),P=="over")J=l.top;else if(P=="above"||P=="near"){var Se=Math.max(W.wrapper.clientHeight,this.doc.height),Ie=Math.max(W.sizer.clientWidth,W.lineSpace.clientWidth);(P=="above"||l.bottom+f.offsetHeight>Se)&&l.top>f.offsetHeight?J=l.top-f.offsetHeight:l.bottom+f.offsetHeight<=Se&&(J=l.bottom),ye+f.offsetWidth>Ie&&(ye=Ie-f.offsetWidth)}f.style.top=J+"px",f.style.left=f.style.right="",B=="right"?(ye=W.sizer.clientWidth-f.offsetWidth,f.style.right="0px"):(B=="left"?ye=0:B=="middle"&&(ye=(W.sizer.clientWidth-f.offsetWidth)/2),f.style.left=ye+"px"),y&&Ru(this,{left:ye,top:J,right:ye+f.offsetWidth,bottom:J+f.offsetHeight})},triggerOnKeyDown:Br(vf),triggerOnKeyPress:Br(Fl),triggerOnKeyUp:gf,triggerOnMouseDown:Br(yf),execCommand:function(l){if(mo.hasOwnProperty(l))return mo[l].call(null,this)},triggerElectric:Br(function(l){Of(this,l)}),findPosH:function(l,f,y,P){var B=1;f<0&&(B=-1,f=-f);for(var W=rt(this.doc,l),J=0;J<f&&(W=Ut(this.doc,W,B,y,P),!W.hitSide);++J);return W},moveH:Br(function(l,f){var y=this;this.extendSelectionsBy(function(P){return y.display.shift||y.doc.extend||P.empty()?Ut(y.doc,P.head,l,f,y.options.rtlMoveVisually):l<0?P.from():P.to()},dt)}),deleteH:Br(function(l,f){var y=this.doc.sel,P=this.doc;y.somethingSelected()?P.replaceSelection("",null,"+delete"):fa(this,function(B){var W=Ut(P,B.head,l,f,!1);return l<0?{from:W,to:B.head}:{from:B.head,to:W}})}),findPosV:function(l,f,y,P){var B=1,W=P;f<0&&(B=-1,f=-f);for(var J=rt(this.doc,l),ye=0;ye<f;++ye){var Se=Xn(this,J,"div");if(W==null?W=Se.left:Se.left=W,J=Lt(this,Se,B,y),J.hitSide)break}return J},moveV:Br(function(l,f){var y=this,P=this.doc,B=[],W=!this.display.shift&&!P.extend&&P.sel.somethingSelected();if(P.extendSelectionsBy(function(ye){if(W)return l<0?ye.from():ye.to();var Se=Xn(y,ye.head,"div");ye.goalColumn!=null&&(Se.left=ye.goalColumn),B.push(Se.left);var Ie=Lt(y,Se,l,f);return f=="page"&&ye==P.sel.primary()&&fl(y,Wo(y,Ie,"div").top-Se.top),Ie},dt),B.length)for(var J=0;J<P.sel.ranges.length;J++)P.sel.ranges[J].goalColumn=B[J]}),findWordAt:function(l){var f=this.doc,y=xt(f,l.line).text,P=l.ch,B=l.ch;if(y){var W=this.getHelper(l,"wordChars");(l.sticky=="before"||B==y.length)&&P?--P:++B;for(var J=y.charAt(P),ye=zt(J,W)?function(Se){return zt(Se,W)}:/\s/.test(J)?function(Se){return/\s/.test(Se)}:function(Se){return!/\s/.test(Se)&&!zt(Se)};P>0&&ye(y.charAt(P-1));)--P;for(;B<y.length&&ye(y.charAt(B));)++B}return new tr(qe(l.line,P),qe(l.line,B))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Pe(this.display.cursorDiv,"CodeMirror-overwrite"):q(this.display.cursorDiv,"CodeMirror-overwrite"),te(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Oe()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Br(function(l,f){ro(this,l,f)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-vi(this)-this.display.barHeight,width:l.scrollWidth-vi(this)-this.display.barWidth,clientHeight:Xa(this),clientWidth:Zi(this)}},scrollIntoView:Br(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:qe(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?ra(this,l):Du(this,l.from,l.to,l.margin)}),setSize:Br(function(l,f){var y=this,P=function(W){return typeof W=="number"||/^\d+$/.test(String(W))?W+"px":W};l!=null&&(this.display.wrapper.style.width=P(l)),f!=null&&(this.display.wrapper.style.height=P(f)),this.options.lineWrapping&&qi(this);var B=this.display.viewFrom;this.doc.iter(B,this.display.viewTo,function(W){if(W.widgets){for(var J=0;J<W.widgets.length;J++)if(W.widgets[J].noHScroll){ii(y,B,"widget");break}}++B}),this.curOp.forceUpdate=!0,te(this,"refresh",this)}),operation:function(l){return $r(this,l)},startOperation:function(){return Ri(this)},endOperation:function(){return Di(this)},refresh:Br(function(){var l=this.display.cachedTextHeight;Nr(this),this.curOp.forceUpdate=!0,Qa(this),ro(this,this.doc.scrollLeft,this.doc.scrollTop),vl(this.display),(l==null||Math.abs(l-ma(this.display))>.5||this.options.lineWrapping)&&il(this),te(this,"refresh",this)}),swapDoc:Br(function(l){var f=this.doc;return f.cm=null,this.state.selectingText&&this.state.selectingText(),Yu(this,l),Qa(this),this.display.input.reset(),ro(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,ur(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}},Re(e),e.registerHelper=function(l,f,y){u.hasOwnProperty(l)||(u[l]=e[l]={_global:[]}),u[l][f]=y},e.registerGlobalHelper=function(l,f,y,P){e.registerHelper(l,f,P),u[l]._global.push({pred:y,val:P})}}function Ut(e,n,u,l,f){var y=n,P=u,B=xt(e,n.line),W=f&&e.direction=="rtl"?-u:u;function J(){var lt=n.line+W;return lt<e.first||lt>=e.first+e.size?!1:(n=new qe(lt,n.ch,n.sticky),B=xt(e,lt))}function ye(lt){var it;if(l=="codepoint"){var pt=B.text.charCodeAt(n.ch+(u>0?0:-1));if(isNaN(pt))it=null;else{var wt=u>0?pt>=55296&&pt<56320:pt>=56320&&pt<57343;it=new qe(n.line,Math.max(0,Math.min(B.text.length,n.ch+u*(wt?2:1))),-u)}}else f?it=pf(e.cm,B,n,u):it=ds(B,n,u);if(it==null)if(!lt&&J())n=Il(f,e.cm,B,n.line,W);else return!1;else n=it;return!0}if(l=="char"||l=="codepoint")ye();else if(l=="column")ye(!0);else if(l=="word"||l=="group")for(var Se=null,Ie=l=="group",Ee=e.cm&&e.cm.getHelper(n,"wordChars"),Ue=!0;!(u<0&&!ye(!Ue));Ue=!1){var Ye=B.text.charAt(n.ch)||`
22
+ left: `+n.left+"px; width: "+Math.max(2,n.right-n.left)+"px;");e.display.lineSpace.appendChild(g),g.scrollIntoView(f),e.display.lineSpace.removeChild(g)}}}function Lu(e,n,u,l){l==null&&(l=0);var f;!e.options.lineWrapping&&n==u&&(u=n.sticky=="before"?qe(n.line,n.ch+1,"before"):n,n=n.ch?qe(n.line,n.sticky=="before"?n.ch-1:n.ch,"after"):n);for(var g=0;g<5;g++){var P=!1,B=Xn(e,n),H=!u||u==n?B:Xn(e,u);f={left:Math.min(B.left,H.left),top:Math.min(B.top,H.top)-l,right:Math.max(B.left,H.left),bottom:Math.max(B.bottom,H.bottom)+l};var J=ul(e,f),ye=e.doc.scrollTop,Se=e.doc.scrollLeft;if(J.scrollTop!=null&&(no(e,J.scrollTop),Math.abs(e.doc.scrollTop-ye)>1&&(P=!0)),J.scrollLeft!=null&&(na(e,J.scrollLeft),Math.abs(e.doc.scrollLeft-Se)>1&&(P=!0)),!P)break}return f}function Ru(e,n){var u=ul(e,n);u.scrollTop!=null&&no(e,u.scrollTop),u.scrollLeft!=null&&na(e,u.scrollLeft)}function ul(e,n){var u=e.display,l=ma(e.display);n.top<0&&(n.top=0);var f=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:u.scroller.scrollTop,g=Xa(e),P={};n.bottom-n.top>g&&(n.bottom=n.top+g);var B=e.doc.height+Js(u),H=n.top<l,J=n.bottom>B-l;if(n.top<f)P.scrollTop=H?0:n.top;else if(n.bottom>f+g){var ye=Math.min(n.top,(J?B:n.bottom)-g);ye!=f&&(P.scrollTop=ye)}var Se=e.options.fixedGutter?0:u.gutters.offsetWidth,Ie=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:u.scroller.scrollLeft-Se,Ee=Zi(e)-u.gutters.offsetWidth,Ue=n.right-n.left>Ee;return Ue&&(n.right=n.left+Ee),n.left<10?P.scrollLeft=0:n.left<Ie?P.scrollLeft=Math.max(0,n.left+Se-(Ue?0:10)):n.right>Ee+Ie-3&&(P.scrollLeft=n.right+(Ue?0:10)-Ee),P}function fl(e,n){n!=null&&(Jo(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+n)}function cn(e){Jo(e);var n=e.getCursor();e.curOp.scrollToPos={from:n,to:n,margin:e.options.cursorScrollMargin}}function ro(e,n,u){(n!=null||u!=null)&&Jo(e),n!=null&&(e.curOp.scrollLeft=n),u!=null&&(e.curOp.scrollTop=u)}function ra(e,n){Jo(e),e.curOp.scrollToPos=n}function Jo(e){var n=e.curOp.scrollToPos;if(n){e.curOp.scrollToPos=null;var u=Pu(e,n.from),l=Pu(e,n.to);Du(e,u,l,n.margin)}}function Du(e,n,u,l){var f=ul(e,{left:Math.min(n.left,u.left),top:Math.min(n.top,u.top)-l,right:Math.max(n.right,u.right),bottom:Math.max(n.bottom,u.bottom)+l});ro(e,f.scrollLeft,f.scrollTop)}function no(e,n){Math.abs(e.doc.scrollTop-n)<2||(c||hl(e,{top:n}),Nu(e,n,!0),c&&hl(e),Qn(e,100))}function Nu(e,n,u){n=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,n)),!(e.display.scroller.scrollTop==n&&!u)&&(e.doc.scrollTop=n,e.display.scrollbars.setScrollTop(n),e.display.scroller.scrollTop!=n&&(e.display.scroller.scrollTop=n))}function na(e,n,u,l){n=Math.max(0,Math.min(n,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((u?n==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-n)<2)&&!l)&&(e.doc.scrollLeft=n,Wu(e),e.display.scroller.scrollLeft!=n&&(e.display.scroller.scrollLeft=n),e.display.scrollbars.setScrollLeft(n))}function ba(e){var n=e.display,u=n.gutters.offsetWidth,l=Math.round(e.doc.height+Js(e.display));return{clientHeight:n.scroller.clientHeight,viewHeight:n.wrapper.clientHeight,scrollWidth:n.scroller.scrollWidth,clientWidth:n.scroller.clientWidth,viewWidth:n.wrapper.clientWidth,barLeft:e.options.fixedGutter?u:0,docHeight:l,scrollHeight:l+vi(e)+n.barHeight,nativeBarWidth:n.nativeBarWidth,gutterWidth:u}}var ia=function(e,n,u){this.cm=u;var l=this.vert=me("div",[me("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),f=this.horiz=me("div",[me("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=f.tabIndex=-1,e(l),e(f),D(l,"scroll",function(){l.clientHeight&&n(l.scrollTop,"vertical")}),D(f,"scroll",function(){f.clientWidth&&n(f.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,b&&C<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ia.prototype.update=function(e){var n=e.scrollWidth>e.clientWidth+1,u=e.scrollHeight>e.clientHeight+1,l=e.nativeBarWidth;if(u){this.vert.style.display="block",this.vert.style.bottom=n?l+"px":"0";var f=e.viewHeight-(n?l:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+f)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(n){this.horiz.style.display="block",this.horiz.style.right=u?l+"px":"0",this.horiz.style.left=e.barLeft+"px";var g=e.viewWidth-e.barLeft-(u?l:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+g)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:u?l:0,bottom:n?l:0}},ia.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ia.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ia.prototype.zeroWidthHack=function(){var e=E&&!Q?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ut,this.disableVert=new ut},ia.prototype.enableZeroWidthBar=function(e,n,u){e.style.pointerEvents="auto";function l(){var f=e.getBoundingClientRect(),g=u=="vert"?document.elementFromPoint(f.right-1,(f.top+f.bottom)/2):document.elementFromPoint((f.right+f.left)/2,f.bottom-1);g!=e?e.style.pointerEvents="none":n.set(1e3,l)}n.set(1e3,l)},ia.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var io=function(){};io.prototype.update=function(){return{bottom:0,right:0}},io.prototype.setScrollLeft=function(){},io.prototype.setScrollTop=function(){},io.prototype.clear=function(){};function gi(e,n){n||(n=ba(e));var u=e.display.barWidth,l=e.display.barHeight;Xo(e,n);for(var f=0;f<4&&u!=e.display.barWidth||l!=e.display.barHeight;f++)u!=e.display.barWidth&&e.options.lineWrapping&&Yo(e),Xo(e,ba(e)),u=e.display.barWidth,l=e.display.barHeight}function Xo(e,n){var u=e.display,l=u.scrollbars.update(n);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&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(u.gutterFiller.style.display="block",u.gutterFiller.style.height=l.bottom+"px",u.gutterFiller.style.width=n.gutterWidth+"px"):u.gutterFiller.style.display=""}var Cn={native:ia,null:io};function Qo(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&q(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Cn[e.options.scrollbarStyle](function(n){e.display.wrapper.insertBefore(n,e.display.scrollbarFiller),D(n,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),n.setAttribute("cm-not-content","true")},function(n,u){u=="horizontal"?na(e,n):no(e,n)},e),e.display.scrollbars.addClass&&Pe(e.display.wrapper,e.display.scrollbars.addClass)}var yi=0;function Ri(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.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:++yi,markArrays:null},bu(e.curOp)}function Di(e){var n=e.curOp;n&&Ks(n,function(u){for(var l=0;l<u.ops.length;l++)u.ops[l].cm.curOp=null;Zd(u)})}function Zd(e){for(var n=e.ops,u=0;u<n.length;u++)cl(n[u]);for(var l=0;l<n.length;l++)Bu(n[l]);for(var f=0;f<n.length;f++)ju(n[f]);for(var g=0;g<n.length;g++)Lr(n[g]);for(var P=0;P<n.length;P++)Sc(n[P])}function cl(e){var n=e.cm,u=n.display;Uu(n),e.updateMaxLine&&Vs(n),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<u.viewFrom||e.scrollToPos.to.line>=u.viewTo)||u.maxLineChanged&&n.options.lineWrapping,e.update=e.mustUpdate&&new aa(n,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Bu(e){e.updatedDisplay=e.mustUpdate&&pl(e.cm,e.update)}function ju(e){var n=e.cm,u=n.display;e.updatedDisplay&&Yo(n),e.barMeasure=ba(n),u.maxLineChanged&&!n.options.lineWrapping&&(e.adjustWidthTo=jo(n,u.maxLine,u.maxLine.text.length).left+3,n.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(u.scroller.clientWidth,u.sizer.offsetLeft+e.adjustWidthTo+vi(n)+n.display.barWidth),e.maxScrollLeft=Math.max(0,u.sizer.offsetLeft+e.adjustWidthTo-Zi(n))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=u.input.prepareSelection())}function Lr(e){var n=e.cm;e.adjustWidthTo!=null&&(n.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<n.doc.scrollLeft&&na(n,Math.min(n.display.scroller.scrollLeft,e.maxScrollLeft),!0),n.display.maxLineChanged=!1);var u=e.focus&&e.focus==Oe();e.preparedSelection&&n.display.input.showSelection(e.preparedSelection,u),(e.updatedDisplay||e.startHeight!=n.doc.height)&&gi(n,e.barMeasure),e.updatedDisplay&&gl(n,e.barMeasure),e.selectionChanged&&ol(n),n.state.focused&&e.updateInput&&n.display.input.reset(e.typing),u&&sl(e.cm)}function Sc(e){var n=e.cm,u=n.display,l=n.doc;if(e.updatedDisplay&&Vu(n,e.update),u.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(u.wheelStartX=u.wheelStartY=null),e.scrollTop!=null&&Nu(n,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&na(n,e.scrollLeft,!0,!0),e.scrollToPos){var f=Lu(n,rt(l,e.scrollToPos.from),rt(l,e.scrollToPos.to),e.scrollToPos.margin);bc(n,f)}var g=e.maybeHiddenMarkers,P=e.maybeUnhiddenMarkers;if(g)for(var B=0;B<g.length;++B)g[B].lines.length||te(g[B],"hide");if(P)for(var H=0;H<P.length;++H)P[H].lines.length&&te(P[H],"unhide");u.wrapper.offsetHeight&&(l.scrollTop=n.display.scroller.scrollTop),e.changeObjs&&te(n,"changes",n,e.changeObjs),e.update&&e.update.finish()}function $r(e,n){if(e.curOp)return n();Ri(e);try{return n()}finally{Di(e)}}function Kr(e,n){return function(){if(e.curOp)return n.apply(e,arguments);Ri(e);try{return n.apply(e,arguments)}finally{Di(e)}}}function Br(e){return function(){if(this.curOp)return e.apply(this,arguments);Ri(this);try{return e.apply(this,arguments)}finally{Di(this)}}}function yr(e){return function(){var n=this.cm;if(!n||n.curOp)return e.apply(this,arguments);Ri(n);try{return e.apply(this,arguments)}finally{Di(n)}}}function Qn(e,n){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(n,Xe(Ac,e))}function Ac(e){var n=e.doc;if(!(n.highlightFrontier>=e.display.viewTo)){var u=+new Date+e.options.workTime,l=un(e,n.highlightFrontier),f=[];n.iter(l.line,Math.min(n.first+n.size,e.display.viewTo+500),function(g){if(l.line>=e.display.viewFrom){var P=g.styles,B=g.text.length>e.options.maxHighlightLength?Gr(n.mode,l.state):null,H=_t(e,g,l,!0);B&&(l.state=B),g.styles=H.styles;var J=g.styleClasses,ye=H.classes;ye?g.styleClasses=ye:J&&(g.styleClasses=null);for(var Se=!P||P.length!=g.styles.length||J!=ye&&(!J||!ye||J.bgClass!=ye.bgClass||J.textClass!=ye.textClass),Ie=0;!Se&&Ie<P.length;++Ie)Se=P[Ie]!=g.styles[Ie];Se&&f.push(l.line),g.stateAfter=l.save(),l.nextLine()}else g.text.length<=e.options.maxHighlightLength&&Ms(e,g.text,l),g.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>u)return Qn(e,e.options.workDelay),!0}),n.highlightFrontier=l.line,n.modeFrontier=Math.max(n.modeFrontier,l.line),f.length&&$r(e,function(){for(var g=0;g<f.length;g++)ii(e,f[g],"text")})}}var aa=function(e,n,u){var l=e.display;this.viewport=n,this.visible=to(l,e.doc,n),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=Zi(e),this.force=u,this.dims=nl(e),this.events=[]};aa.prototype.signal=function(e,n){Le(e,n)&&this.events.push(arguments)},aa.prototype.finish=function(){for(var e=0;e<this.events.length;e++)te.apply(null,this.events[e])};function Uu(e){var n=e.display;!n.scrollbarsClipped&&n.scroller.offsetWidth&&(n.nativeBarWidth=n.scroller.offsetWidth-n.scroller.clientWidth,n.heightForcer.style.height=vi(e)+"px",n.sizer.style.marginBottom=-n.nativeBarWidth+"px",n.sizer.style.borderRightWidth=vi(e)+"px",n.scrollbarsClipped=!0)}function ao(e){if(e.hasFocus())return null;var n=Oe();if(!n||!ie(e.display.lineDiv,n))return null;var u={activeElt:n};if(window.getSelection){var l=window.getSelection();l.anchorNode&&l.extend&&ie(e.display.lineDiv,l.anchorNode)&&(u.anchorNode=l.anchorNode,u.anchorOffset=l.anchorOffset,u.focusNode=l.focusNode,u.focusOffset=l.focusOffset)}return u}function dl(e){if(!(!e||!e.activeElt||e.activeElt==Oe())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&ie(document.body,e.anchorNode)&&ie(document.body,e.focusNode))){var n=window.getSelection(),u=document.createRange();u.setEnd(e.anchorNode,e.anchorOffset),u.collapse(!1),n.removeAllRanges(),n.addRange(u),n.extend(e.focusNode,e.focusOffset)}}function pl(e,n){var u=e.display,l=e.doc;if(n.editorIsHidden)return Mi(e),!1;if(!n.force&&n.visible.from>=u.viewFrom&&n.visible.to<=u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo)&&u.renderedView==u.view&&zo(e)==0)return!1;Zo(e)&&(Mi(e),n.dims=nl(e));var f=l.first+l.size,g=Math.max(n.visible.from-e.options.viewportMargin,l.first),P=Math.min(f,n.visible.to+e.options.viewportMargin);u.viewFrom<g&&g-u.viewFrom<20&&(g=Math.max(l.first,u.viewFrom)),u.viewTo>P&&u.viewTo-P<20&&(P=Math.min(f,u.viewTo)),Fi&&(g=Ga(e.doc,g),P=Us(e.doc,P));var B=g!=u.viewFrom||P!=u.viewTo||u.lastWrapHeight!=n.wrapperHeight||u.lastWrapWidth!=n.wrapperWidth;xc(e,g,P),u.viewOffset=pi(xt(e.doc,u.viewFrom)),e.display.mover.style.top=u.viewOffset+"px";var H=zo(e);if(!B&&H==0&&!n.force&&u.renderedView==u.view&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo))return!1;var J=ao(e);return H>4&&(u.lineDiv.style.display="none"),wc(e,u.updateLineNumbers,n.dims),H>4&&(u.lineDiv.style.display=""),u.renderedView=u.view,dl(J),ne(u.cursorDiv),ne(u.selectionDiv),u.gutters.style.height=u.sizer.style.minHeight=0,B&&(u.lastWrapHeight=n.wrapperHeight,u.lastWrapWidth=n.wrapperWidth,Qn(e,400)),u.updateLineNumbers=null,!0}function Vu(e,n){for(var u=n.viewport,l=!0;;l=!1){if(!l||!e.options.lineWrapping||n.oldDisplayWidth==Zi(e)){if(u&&u.top!=null&&(u={top:Math.min(e.doc.height+Js(e.display)-Xa(e),u.top)}),n.visible=to(e.display,e.doc,u),n.visible.from>=e.display.viewFrom&&n.visible.to<=e.display.viewTo)break}else l&&(n.visible=to(e.display,e.doc,u));if(!pl(e,n))break;Yo(e);var f=ba(e);Li(e),gi(e,f),gl(e,f),n.force=!1}n.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(n.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function hl(e,n){var u=new aa(e,n);if(pl(e,u)){Yo(e),Vu(e,u);var l=ba(e);Li(e),gi(e,l),gl(e,l),u.finish()}}function wc(e,n,u){var l=e.display,f=e.options.lineNumbers,g=l.lineDiv,P=g.firstChild;function B(Ue){var Ye=Ue.nextSibling;return S&&E&&e.display.currentWheelTarget==Ue?Ue.style.display="none":Ue.parentNode.removeChild(Ue),Ye}for(var H=l.view,J=l.viewFrom,ye=0;ye<H.length;ye++){var Se=H[ye];if(!Se.hidden)if(!Se.node||Se.node.parentNode!=g){var Ie=er(e,Se,J,u);g.insertBefore(Ie,P)}else{for(;P!=Se.node;)P=B(P);var Ee=f&&n!=null&&n<=J&&Se.lineNumber;Se.changes&&(ft(Se.changes,"gutter")>-1&&(Ee=!1),Bo(e,Se,J,u)),Ee&&(ne(Se.lineNumber),Se.lineNumber.appendChild(document.createTextNode(ya(e.options,J)))),P=Se.node.nextSibling}J+=Se.size}for(;P;)P=B(P)}function vl(e){var n=e.gutters.offsetWidth;e.sizer.style.marginLeft=n+"px",ur(e,"gutterChanged",e)}function gl(e,n){e.display.sizer.style.minHeight=n.docHeight+"px",e.display.heightForcer.style.top=n.docHeight+"px",e.display.gutters.style.height=n.docHeight+e.display.barHeight+vi(e)+"px"}function Wu(e){var n=e.display,u=n.view;if(!(!n.alignWidgets&&(!n.gutters.firstChild||!e.options.fixedGutter))){for(var l=Nn(n)-n.scroller.scrollLeft+e.doc.scrollLeft,f=n.gutters.offsetWidth,g=l+"px",P=0;P<u.length;P++)if(!u[P].hidden){e.options.fixedGutter&&(u[P].gutter&&(u[P].gutter.style.left=g),u[P].gutterBackground&&(u[P].gutterBackground.style.left=g));var B=u[P].alignable;if(B)for(var H=0;H<B.length;H++)B[H].style.left=g}e.options.fixedGutter&&(n.gutters.style.left=l+f+"px")}}function Zo(e){if(!e.options.lineNumbers)return!1;var n=e.doc,u=ya(e.options,n.first+n.size-1),l=e.display;if(u.length!=l.lineNumChars){var f=l.measure.appendChild(me("div",[me("div",u)],"CodeMirror-linenumber CodeMirror-gutter-elt")),g=f.firstChild.offsetWidth,P=f.offsetWidth-g;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(g,l.lineGutter.offsetWidth-P)+1,l.lineNumWidth=l.lineNumInnerWidth+P,l.lineNumChars=l.lineNumInnerWidth?u.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",vl(e.display),!0}return!1}function oo(e,n){for(var u=[],l=!1,f=0;f<e.length;f++){var g=e[f],P=null;if(typeof g!="string"&&(P=g.style,g=g.className),g=="CodeMirror-linenumbers")if(n)l=!0;else continue;u.push({className:g,style:P})}return n&&!l&&u.push({className:"CodeMirror-linenumbers",style:null}),u}function Hu(e){var n=e.gutters,u=e.gutterSpecs;ne(n),e.lineGutter=null;for(var l=0;l<u.length;++l){var f=u[l],g=f.className,P=f.style,B=n.appendChild(me("div",null,"CodeMirror-gutter "+g));P&&(B.style.cssText=P),g=="CodeMirror-linenumbers"&&(e.lineGutter=B,B.style.width=(e.lineNumWidth||1)+"px")}n.style.display=u.length?"":"none",vl(e)}function qo(e){Hu(e.display),Nr(e),Wu(e)}function Cc(e,n,u,l){var f=this;this.input=u,f.scrollbarFiller=me("div",null,"CodeMirror-scrollbar-filler"),f.scrollbarFiller.setAttribute("cm-not-content","true"),f.gutterFiller=me("div",null,"CodeMirror-gutter-filler"),f.gutterFiller.setAttribute("cm-not-content","true"),f.lineDiv=pe("div",null,"CodeMirror-code"),f.selectionDiv=me("div",null,null,"position: relative; z-index: 1"),f.cursorDiv=me("div",null,"CodeMirror-cursors"),f.measure=me("div",null,"CodeMirror-measure"),f.lineMeasure=me("div",null,"CodeMirror-measure"),f.lineSpace=pe("div",[f.measure,f.lineMeasure,f.selectionDiv,f.cursorDiv,f.lineDiv],null,"position: relative; outline: none");var g=pe("div",[f.lineSpace],"CodeMirror-lines");f.mover=me("div",[g],null,"position: relative"),f.sizer=me("div",[f.mover],"CodeMirror-sizer"),f.sizerWidth=null,f.heightForcer=me("div",null,null,"position: absolute; height: "+yt+"px; width: 1px;"),f.gutters=me("div",null,"CodeMirror-gutters"),f.lineGutter=null,f.scroller=me("div",[f.sizer,f.heightForcer,f.gutters],"CodeMirror-scroll"),f.scroller.setAttribute("tabIndex","-1"),f.wrapper=me("div",[f.scrollbarFiller,f.gutterFiller,f.scroller],"CodeMirror"),f.wrapper.setAttribute("translate","no"),b&&C<8&&(f.gutters.style.zIndex=-1,f.scroller.style.paddingRight=0),!S&&!(c&&R)&&(f.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(f.wrapper):e(f.wrapper)),f.viewFrom=f.viewTo=n.first,f.reportedViewFrom=f.reportedViewTo=n.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=oo(l.gutters,l.lineNumbers),Hu(f),u.init(f)}var _o=0,mi=null;b?mi=-.53:c?mi=15:N?mi=-.7:U&&(mi=-1/3);function zu(e){var n=e.wheelDeltaX,u=e.wheelDeltaY;return n==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(n=e.detail),u==null&&e.detail&&e.axis==e.VERTICAL_AXIS?u=e.detail:u==null&&(u=e.wheelDelta),{x:n,y:u}}function ir(e){var n=zu(e);return n.x*=mi,n.y*=mi,n}function Gu(e,n){var u=zu(n),l=u.x,f=u.y,g=mi;n.deltaMode===0&&(l=n.deltaX,f=n.deltaY,g=1);var P=e.display,B=P.scroller,H=B.scrollWidth>B.clientWidth,J=B.scrollHeight>B.clientHeight;if(!!(l&&H||f&&J)){if(f&&E&&S){e:for(var ye=n.target,Se=P.view;ye!=B;ye=ye.parentNode)for(var Ie=0;Ie<Se.length;Ie++)if(Se[Ie].node==ye){e.display.currentWheelTarget=ye;break e}}if(l&&!c&&!j&&g!=null){f&&J&&no(e,Math.max(0,B.scrollTop+f*g)),na(e,Math.max(0,B.scrollLeft+l*g)),(!f||f&&J)&&We(n),P.wheelStartX=null;return}if(f&&g!=null){var Ee=f*g,Ue=e.doc.scrollTop,Ye=Ue+P.wrapper.clientHeight;Ee<0?Ue=Math.max(0,Ue+Ee-50):Ye=Math.min(e.doc.height,Ye+Ee+50),hl(e,{top:Ue,bottom:Ye})}_o<20&&n.deltaMode!==0&&(P.wheelStartX==null?(P.wheelStartX=B.scrollLeft,P.wheelStartY=B.scrollTop,P.wheelDX=l,P.wheelDY=f,setTimeout(function(){if(P.wheelStartX!=null){var et=B.scrollLeft-P.wheelStartX,at=B.scrollTop-P.wheelStartY,lt=at&&P.wheelDY&&at/P.wheelDY||et&&P.wheelDX&&et/P.wheelDX;P.wheelStartX=P.wheelStartY=null,!!lt&&(mi=(mi*_o+lt)/(_o+1),++_o)}},200)):(P.wheelDX+=l,P.wheelDY+=f))}}var En=function(e,n){this.ranges=e,this.primIndex=n};En.prototype.primary=function(){return this.ranges[this.primIndex]},En.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var n=0;n<this.ranges.length;n++){var u=this.ranges[n],l=e.ranges[n];if(!ci(u.anchor,l.anchor)||!ci(u.head,l.head))return!1}return!0},En.prototype.deepCopy=function(){for(var e=[],n=0;n<this.ranges.length;n++)e[n]=new tr(ae(this.ranges[n].anchor),ae(this.ranges[n].head));return new En(e,this.primIndex)},En.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},En.prototype.contains=function(e,n){n||(n=e);for(var u=0;u<this.ranges.length;u++){var l=this.ranges[u];if(Pt(n,l.from())>=0&&Pt(e,l.to())<=0)return u}return-1};var tr=function(e,n){this.anchor=e,this.head=n};tr.prototype.from=function(){return Ge(this.anchor,this.head)},tr.prototype.to=function(){return Ae(this.anchor,this.head)},tr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function kn(e,n,u){var l=e&&e.options.selectionsMayTouch,f=n[u];n.sort(function(Ie,Ee){return Pt(Ie.from(),Ee.from())}),u=ft(n,f);for(var g=1;g<n.length;g++){var P=n[g],B=n[g-1],H=Pt(B.to(),P.from());if(l&&!P.empty()?H>0:H>=0){var J=Ge(B.from(),P.from()),ye=Ae(B.to(),P.to()),Se=B.empty()?P.from()==P.head:B.from()==B.head;g<=u&&--u,n.splice(--g,2,new tr(Se?ye:J,Se?J:ye))}}return new En(n,u)}function Ni(e,n){return new En([new tr(e,n||e)],0)}function Bi(e){return e.text?qe(e.from.line+e.text.length-1,St(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function $u(e,n){if(Pt(e,n.from)<0)return e;if(Pt(e,n.to)<=0)return Bi(n);var u=e.line+n.text.length-(n.to.line-n.from.line)-1,l=e.ch;return e.line==n.to.line&&(l+=Bi(n).ch-n.to.ch),qe(u,l)}function yl(e,n){for(var u=[],l=0;l<e.sel.ranges.length;l++){var f=e.sel.ranges[l];u.push(new tr($u(f.anchor,n),$u(f.head,n)))}return kn(e.cm,u,e.sel.primIndex)}function Ku(e,n,u){return e.line==n.line?qe(u.line,e.ch-n.ch+u.ch):qe(u.line+(e.line-n.line),e.ch)}function Ec(e,n,u){for(var l=[],f=qe(e.first,0),g=f,P=0;P<n.length;P++){var B=n[P],H=Ku(B.from,f,g),J=Ku(Bi(B),f,g);if(f=B.to,g=J,u=="around"){var ye=e.sel.ranges[P],Se=Pt(ye.head,ye.anchor)<0;l[P]=new tr(Se?J:H,Se?H:J)}else l[P]=new tr(H,H)}return new En(l,e.sel.primIndex)}function es(e){e.doc.mode=wn(e.options,e.doc.modeOption),oa(e)}function oa(e){e.doc.iter(function(n){n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Qn(e,100),e.state.modeGen++,e.curOp&&Nr(e)}function ts(e,n){return n.from.ch==0&&n.to.ch==0&&St(n.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function ml(e,n,u,l){function f(lt){return u?u[lt]:null}function g(lt,it,pt){ki(lt,it,pt,l),ur(lt,"change",lt,n)}function P(lt,it){for(var pt=[],wt=lt;wt<it;++wt)pt.push(new Ji(J[wt],f(wt),l));return pt}var B=n.from,H=n.to,J=n.text,ye=xt(e,B.line),Se=xt(e,H.line),Ie=St(J),Ee=f(J.length-1),Ue=H.line-B.line;if(n.full)e.insert(0,P(0,J.length)),e.remove(J.length,e.size-J.length);else if(ts(e,n)){var Ye=P(0,J.length-1);g(Se,Se.text,Ee),Ue&&e.remove(B.line,Ue),Ye.length&&e.insert(B.line,Ye)}else if(ye==Se)if(J.length==1)g(ye,ye.text.slice(0,B.ch)+Ie+ye.text.slice(H.ch),Ee);else{var et=P(1,J.length-1);et.push(new Ji(Ie+ye.text.slice(H.ch),Ee,l)),g(ye,ye.text.slice(0,B.ch)+J[0],f(0)),e.insert(B.line+1,et)}else if(J.length==1)g(ye,ye.text.slice(0,B.ch)+J[0]+Se.text.slice(H.ch),f(0)),e.remove(B.line+1,Ue);else{g(ye,ye.text.slice(0,B.ch)+J[0],f(0)),g(Se,Ie+Se.text.slice(H.ch),Ee);var at=P(1,J.length-1);Ue>1&&e.remove(B.line+1,Ue-1),e.insert(B.line+1,at)}ur(e,"change",e,n)}function ji(e,n,u){function l(f,g,P){if(f.linked)for(var B=0;B<f.linked.length;++B){var H=f.linked[B];if(H.doc!=g){var J=P&&H.sharedHist;u&&!J||(n(H.doc,J),l(H.doc,f,J))}}}l(e,null,!0)}function Yu(e,n){if(n.cm)throw new Error("This document is already in use.");e.doc=n,n.cm=e,il(e),es(e),xl(e),e.options.direction=n.direction,e.options.lineWrapping||Vs(e),e.options.mode=n.modeOption,Nr(e)}function xl(e){(e.doc.direction=="rtl"?Pe:q)(e.display.lineDiv,"CodeMirror-rtl")}function so(e){$r(e,function(){xl(e),Nr(e)})}function lo(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function ai(e,n){var u={from:ae(n.from),to:Bi(n),text:fi(e,n.from,n.to)};return fo(e,u,n.from.line,n.to.line+1),ji(e,function(l){return fo(l,u,n.from.line,n.to.line+1)},!0),u}function Ju(e){for(;e.length;){var n=St(e);if(n.ranges)e.pop();else break}}function Xu(e,n){if(n)return Ju(e.done),St(e.done);if(e.done.length&&!St(e.done).ranges)return St(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),St(e.done)}function Qu(e,n,u,l){var f=e.history;f.undone.length=0;var g=+new Date,P,B;if((f.lastOp==l||f.lastOrigin==n.origin&&n.origin&&(n.origin.charAt(0)=="+"&&f.lastModTime>g-(e.cm?e.cm.options.historyEventDelay:500)||n.origin.charAt(0)=="*"))&&(P=Xu(f,f.lastOp==l)))B=St(P.changes),Pt(n.from,n.to)==0&&Pt(n.from,B.to)==0?B.to=Bi(n):P.changes.push(ai(e,n));else{var H=St(f.done);for((!H||!H.ranges)&&uo(e.sel,f.done),P={changes:[ai(e,n)],generation:f.generation},f.done.push(P);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=g,f.lastOp=f.lastSelOp=l,f.lastOrigin=f.lastSelOrigin=n.origin,B||te(e,"historyAdded")}function Zu(e,n,u,l){var f=n.charAt(0);return f=="*"||f=="+"&&u.ranges.length==l.ranges.length&&u.somethingSelected()==l.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Oc(e,n,u,l){var f=e.history,g=l&&l.origin;u==f.lastSelOp||g&&f.lastSelOrigin==g&&(f.lastModTime==f.lastSelTime&&f.lastOrigin==g||Zu(e,g,St(f.done),n))?f.done[f.done.length-1]=n:uo(n,f.done),f.lastSelTime=+new Date,f.lastSelOrigin=g,f.lastSelOp=u,l&&l.clearRedo!==!1&&Ju(f.undone)}function uo(e,n){var u=St(n);u&&u.ranges&&u.equals(e)||n.push(e)}function fo(e,n,u,l){var f=n["spans_"+e.id],g=0;e.iter(Math.max(e.first,u),Math.min(e.first+e.size,l),function(P){P.markedSpans&&((f||(f=n["spans_"+e.id]={}))[g]=P.markedSpans),++g})}function Tc(e){if(!e)return null;for(var n,u=0;u<e.length;++u)e[u].marker.explicitlyCleared?n||(n=e.slice(0,u)):n&&n.push(e[u]);return n?n.length?n:null:e}function rs(e,n){var u=n["spans_"+e.id];if(!u)return null;for(var l=[],f=0;f<n.text.length;++f)l.push(Tc(u[f]));return l}function ns(e,n){var u=rs(e,n),l=du(e,n);if(!u)return l;if(!l)return u;for(var f=0;f<u.length;++f){var g=u[f],P=l[f];if(g&&P){e:for(var B=0;B<P.length;++B){for(var H=P[B],J=0;J<g.length;++J)if(g[J].marker==H.marker)continue e;g.push(H)}}else P&&(u[f]=P)}return u}function Sa(e,n,u){for(var l=[],f=0;f<e.length;++f){var g=e[f];if(g.ranges){l.push(u?En.prototype.deepCopy.call(g):g);continue}var P=g.changes,B=[];l.push({changes:B});for(var H=0;H<P.length;++H){var J=P[H],ye=void 0;if(B.push({from:J.from,to:J.to,text:J.text}),n)for(var Se in J)(ye=Se.match(/^spans_(\d+)$/))&&ft(n,Number(ye[1]))>-1&&(St(B)[Se]=J[Se],delete J[Se])}}return l}function bl(e,n,u,l){if(l){var f=e.anchor;if(u){var g=Pt(n,f)<0;g!=Pt(u,f)<0?(f=n,n=u):g!=Pt(n,u)<0&&(n=u)}return new tr(f,n)}else return new tr(u||n,n)}function is(e,n,u,l,f){f==null&&(f=e.cm&&(e.cm.display.shift||e.extend)),nn(e,new En([bl(e.sel.primary(),n,u,f)],0),l)}function qu(e,n,u){for(var l=[],f=e.cm&&(e.cm.display.shift||e.extend),g=0;g<e.sel.ranges.length;g++)l[g]=bl(e.sel.ranges[g],n[g],null,f);var P=kn(e.cm,l,e.sel.primIndex);nn(e,P,u)}function as(e,n,u,l){var f=e.sel.ranges.slice(0);f[n]=u,nn(e,kn(e.cm,f,e.sel.primIndex),l)}function Sl(e,n,u,l){nn(e,Ni(n,u),l)}function Pc(e,n,u){var l={ranges:n.ranges,update:function(f){this.ranges=[];for(var g=0;g<f.length;g++)this.ranges[g]=new tr(rt(e,f[g].anchor),rt(e,f[g].head))},origin:u&&u.origin};return te(e,"beforeSelectionChange",e,l),e.cm&&te(e.cm,"beforeSelectionChange",e.cm,l),l.ranges!=n.ranges?kn(e.cm,l.ranges,l.ranges.length-1):n}function _u(e,n,u){var l=e.history.done,f=St(l);f&&f.ranges?(l[l.length-1]=n,os(e,n,u)):nn(e,n,u)}function nn(e,n,u){os(e,n,u),Oc(e,e.sel,e.cm?e.cm.curOp.id:NaN,u)}function os(e,n,u){(Le(e,"beforeSelectionChange")||e.cm&&Le(e.cm,"beforeSelectionChange"))&&(n=Pc(e,n,u));var l=u&&u.bias||(Pt(n.primary().head,e.sel.primary().head)<0?-1:1);ef(e,rf(e,n,l,!0)),!(u&&u.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&cn(e.cm)}function ef(e,n){n.equals(e.sel)||(e.sel=n,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,be(e.cm)),ur(e,"cursorActivity",e))}function tf(e){ef(e,rf(e,e.sel,null,!1))}function rf(e,n,u,l){for(var f,g=0;g<n.ranges.length;g++){var P=n.ranges[g],B=n.ranges.length==e.sel.ranges.length&&e.sel.ranges[g],H=co(e,P.anchor,B&&B.anchor,u,l),J=co(e,P.head,B&&B.head,u,l);(f||H!=P.anchor||J!=P.head)&&(f||(f=n.ranges.slice(0,g)),f[g]=new tr(H,J))}return f?kn(e.cm,f,n.primIndex):n}function Aa(e,n,u,l,f){var g=xt(e,n.line);if(g.markedSpans)for(var P=0;P<g.markedSpans.length;++P){var B=g.markedSpans[P],H=B.marker,J="selectLeft"in H?!H.selectLeft:H.inclusiveLeft,ye="selectRight"in H?!H.selectRight:H.inclusiveRight;if((B.from==null||(J?B.from<=n.ch:B.from<n.ch))&&(B.to==null||(ye?B.to>=n.ch:B.to>n.ch))){if(f&&(te(H,"beforeCursorEnter"),H.explicitlyCleared))if(g.markedSpans){--P;continue}else break;if(!H.atomic)continue;if(u){var Se=H.find(l<0?1:-1),Ie=void 0;if((l<0?ye:J)&&(Se=nf(e,Se,-l,Se&&Se.line==n.line?g:null)),Se&&Se.line==n.line&&(Ie=Pt(Se,u))&&(l<0?Ie<0:Ie>0))return Aa(e,Se,n,l,f)}var Ee=H.find(l<0?-1:1);return(l<0?J:ye)&&(Ee=nf(e,Ee,l,Ee.line==n.line?g:null)),Ee?Aa(e,Ee,n,l,f):null}}return n}function co(e,n,u,l,f){var g=l||1,P=Aa(e,n,u,g,f)||!f&&Aa(e,n,u,g,!0)||Aa(e,n,u,-g,f)||!f&&Aa(e,n,u,-g,!0);return P||(e.cantEdit=!0,qe(e.first,0))}function nf(e,n,u,l){return u<0&&n.ch==0?n.line>e.first?rt(e,qe(n.line-1)):null:u>0&&n.ch==(l||xt(e,n.line)).text.length?n.line<e.first+e.size-1?qe(n.line+1,0):null:new qe(n.line,n.ch+u)}function ss(e){e.setSelection(qe(e.firstLine(),0),qe(e.lastLine()),nt)}function Al(e,n,u){var l={canceled:!1,from:n.from,to:n.to,text:n.text,origin:n.origin,cancel:function(){return l.canceled=!0}};return u&&(l.update=function(f,g,P,B){f&&(l.from=rt(e,f)),g&&(l.to=rt(e,g)),P&&(l.text=P),B!==void 0&&(l.origin=B)}),te(e,"beforeChange",e,l),e.cm&&te(e.cm,"beforeChange",e.cm,l),l.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function wa(e,n,u){if(e.cm){if(!e.cm.curOp)return Kr(e.cm,wa)(e,n,u);if(e.cm.state.suppressEdits)return}if(!((Le(e,"beforeChange")||e.cm&&Le(e.cm,"beforeChange"))&&(n=Al(e,n,!0),!n))){var l=tc&&!u&&hu(e,n.from,n.to);if(l)for(var f=l.length-1;f>=0;--f)sa(e,{from:l[f].from,to:l[f].to,text:f?[""]:n.text,origin:n.origin});else sa(e,n)}}function sa(e,n){if(!(n.text.length==1&&n.text[0]==""&&Pt(n.from,n.to)==0)){var u=yl(e,n);Qu(e,n,u,e.cm?e.cm.curOp.id:NaN),po(e,n,u,du(e,n));var l=[];ji(e,function(f,g){!g&&ft(l,f.history)==-1&&(El(f.history,n),l.push(f.history)),po(f,n,null,du(f,n))})}}function Bn(e,n,u){var l=e.cm&&e.cm.state.suppressEdits;if(!(l&&!u)){for(var f=e.history,g,P=e.sel,B=n=="undo"?f.done:f.undone,H=n=="undo"?f.undone:f.done,J=0;J<B.length&&(g=B[J],!(u?g.ranges&&!g.equals(e.sel):!g.ranges));J++);if(J!=B.length){for(f.lastOrigin=f.lastSelOrigin=null;;)if(g=B.pop(),g.ranges){if(uo(g,H),u&&!g.equals(e.sel)){nn(e,g,{clearRedo:!1});return}P=g}else if(l){B.push(g);return}else break;var ye=[];uo(P,H),H.push({changes:ye,generation:f.generation}),f.generation=g.generation||++f.maxGeneration;for(var Se=Le(e,"beforeChange")||e.cm&&Le(e.cm,"beforeChange"),Ie=function(Ye){var et=g.changes[Ye];if(et.origin=n,Se&&!Al(e,et,!1))return B.length=0,{};ye.push(ai(e,et));var at=Ye?yl(e,et):St(B);po(e,et,at,ns(e,et)),!Ye&&e.cm&&e.cm.scrollIntoView({from:et.from,to:Bi(et)});var lt=[];ji(e,function(it,pt){!pt&&ft(lt,it.history)==-1&&(El(it.history,et),lt.push(it.history)),po(it,et,null,ns(it,et))})},Ee=g.changes.length-1;Ee>=0;--Ee){var Ue=Ie(Ee);if(Ue)return Ue.v}}}}function wl(e,n){if(n!=0&&(e.first+=n,e.sel=new En(Ut(e.sel.ranges,function(f){return new tr(qe(f.anchor.line+n,f.anchor.ch),qe(f.head.line+n,f.head.ch))}),e.sel.primIndex),e.cm)){Nr(e.cm,e.first,e.first-n,n);for(var u=e.cm.display,l=u.viewFrom;l<u.viewTo;l++)ii(e.cm,l,"gutter")}}function po(e,n,u,l){if(e.cm&&!e.cm.curOp)return Kr(e.cm,po)(e,n,u,l);if(n.to.line<e.first){wl(e,n.text.length-1-(n.to.line-n.from.line));return}if(!(n.from.line>e.lastLine())){if(n.from.line<e.first){var f=n.text.length-1-(e.first-n.from.line);wl(e,f),n={from:qe(e.first,0),to:qe(n.to.line+f,n.to.ch),text:[St(n.text)],origin:n.origin}}var g=e.lastLine();n.to.line>g&&(n={from:n.from,to:qe(g,xt(e,g).text.length),text:[n.text[0]],origin:n.origin}),n.removed=fi(e,n.from,n.to),u||(u=yl(e,n)),e.cm?Ic(e.cm,n,l):ml(e,n,l),os(e,u,nt),e.cantEdit&&co(e,qe(e.firstLine(),0))&&(e.cantEdit=!1)}}function Ic(e,n,u){var l=e.doc,f=e.display,g=n.from,P=n.to,B=!1,H=g.line;e.options.lineWrapping||(H=qt(Yn(xt(l,g.line))),l.iter(H,P.line+1,function(Ee){if(Ee==f.maxLine)return B=!0,!0})),l.sel.contains(n.from,n.to)>-1&&be(e),ml(l,n,u,ku(e)),e.options.lineWrapping||(l.iter(H,g.line+n.text.length,function(Ee){var Ue=Yi(Ee);Ue>f.maxLineLength&&(f.maxLine=Ee,f.maxLineLength=Ue,f.maxLineChanged=!0,B=!1)}),B&&(e.curOp.updateMaxLine=!0)),ec(l,g.line),Qn(e,400);var J=n.text.length-(P.line-g.line)-1;n.full?Nr(e):g.line==P.line&&n.text.length==1&&!ts(e.doc,n)?ii(e,g.line,"text"):Nr(e,g.line,P.line+1,J);var ye=Le(e,"changes"),Se=Le(e,"change");if(Se||ye){var Ie={from:g,to:P,text:n.text,removed:n.removed,origin:n.origin};Se&&ur(e,"change",e,Ie),ye&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Ie)}e.display.selForContextMenu=null}function Ca(e,n,u,l,f){var g;l||(l=u),Pt(l,u)<0&&(g=[l,u],u=g[0],l=g[1]),typeof n=="string"&&(n=e.splitLines(n)),wa(e,{from:u,to:l,text:n,origin:f})}function Cl(e,n,u,l){u<e.line?e.line+=l:n<e.line&&(e.line=n,e.ch=0)}function af(e,n,u,l){for(var f=0;f<e.length;++f){var g=e[f],P=!0;if(g.ranges){g.copied||(g=e[f]=g.deepCopy(),g.copied=!0);for(var B=0;B<g.ranges.length;B++)Cl(g.ranges[B].anchor,n,u,l),Cl(g.ranges[B].head,n,u,l);continue}for(var H=0;H<g.changes.length;++H){var J=g.changes[H];if(u<J.from.line)J.from=qe(J.from.line+l,J.from.ch),J.to=qe(J.to.line+l,J.to.ch);else if(n<=J.to.line){P=!1;break}}P||(e.splice(0,f+1),f=0)}}function El(e,n){var u=n.from.line,l=n.to.line,f=n.text.length-(l-u)-1;af(e.done,u,l,f),af(e.undone,u,l,f)}function la(e,n,u,l){var f=n,g=n;return typeof n=="number"?g=xt(e,tt(e,n)):f=qt(n),f==null?null:(l(g,f)&&e.cm&&ii(e.cm,f,u),g)}function Ea(e){this.lines=e,this.parent=null;for(var n=0,u=0;u<e.length;++u)e[u].parent=this,n+=e[u].height;this.height=n}Ea.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,n){for(var u=e,l=e+n;u<l;++u){var f=this.lines[u];this.height-=f.height,Xi(f),ur(f,"delete")}this.lines.splice(e,n)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,n,u){this.height+=u,this.lines=this.lines.slice(0,e).concat(n).concat(this.lines.slice(e));for(var l=0;l<n.length;++l)n[l].parent=this},iterN:function(e,n,u){for(var l=e+n;e<l;++e)if(u(this.lines[e]))return!0}};function Oa(e){this.children=e;for(var n=0,u=0,l=0;l<e.length;++l){var f=e[l];n+=f.chunkSize(),u+=f.height,f.parent=this}this.size=n,this.height=u,this.parent=null}Oa.prototype={chunkSize:function(){return this.size},removeInner:function(e,n){this.size-=n;for(var u=0;u<this.children.length;++u){var l=this.children[u],f=l.chunkSize();if(e<f){var g=Math.min(n,f-e),P=l.height;if(l.removeInner(e,g),this.height-=P-l.height,f==g&&(this.children.splice(u--,1),l.parent=null),(n-=g)==0)break;e=0}else e-=f}if(this.size-n<25&&(this.children.length>1||!(this.children[0]instanceof Ea))){var B=[];this.collapse(B),this.children=[new Ea(B)],this.children[0].parent=this}},collapse:function(e){for(var n=0;n<this.children.length;++n)this.children[n].collapse(e)},insertInner:function(e,n,u){this.size+=n.length,this.height+=u;for(var l=0;l<this.children.length;++l){var f=this.children[l],g=f.chunkSize();if(e<=g){if(f.insertInner(e,n,u),f.lines&&f.lines.length>50){for(var P=f.lines.length%25+25,B=P;B<f.lines.length;){var H=new Ea(f.lines.slice(B,B+=25));f.height-=H.height,this.children.splice(++l,0,H),H.parent=this}f.lines=f.lines.slice(0,P),this.maybeSpill()}break}e-=g}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var n=e.children.splice(e.children.length-5,5),u=new Oa(n);if(e.parent){e.size-=u.size,e.height-=u.height;var f=ft(e.parent.children,e);e.parent.children.splice(f+1,0,u)}else{var l=new Oa(e.children);l.parent=e,e.children=[l,u],e=l}u.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,n,u){for(var l=0;l<this.children.length;++l){var f=this.children[l],g=f.chunkSize();if(e<g){var P=Math.min(n,g-e);if(f.iterN(e,P,u))return!0;if((n-=P)==0)break;e=0}else e-=g}}};var ho=function(e,n,u){if(u)for(var l in u)u.hasOwnProperty(l)&&(this[l]=u[l]);this.doc=e,this.node=n};ho.prototype.clear=function(){var e=this.doc.cm,n=this.line.widgets,u=this.line,l=qt(u);if(!(l==null||!n)){for(var f=0;f<n.length;++f)n[f]==this&&n.splice(f--,1);n.length||(u.widgets=null);var g=gt(this);Fn(u,Math.max(0,u.height-g)),e&&($r(e,function(){Ol(e,u,-g),ii(e,l,"widget")}),ur(e,"lineWidgetCleared",e,this,l))}},ho.prototype.changed=function(){var e=this,n=this.height,u=this.doc.cm,l=this.line;this.height=null;var f=gt(this)-n;!f||(di(this.doc,l)||Fn(l,l.height+f),u&&$r(u,function(){u.curOp.forceUpdate=!0,Ol(u,l,f),ur(u,"lineWidgetChanged",u,e,qt(l))}))},Re(ho);function Ol(e,n,u){pi(n)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&fl(e,u)}function Fc(e,n,u,l){var f=new ho(e,u,l),g=e.cm;return g&&f.noHScroll&&(g.display.alignWidgets=!0),la(e,n,"widget",function(P){var B=P.widgets||(P.widgets=[]);if(f.insertAt==null?B.push(f):B.splice(Math.min(B.length,Math.max(0,f.insertAt)),0,f),f.line=P,g&&!di(e,P)){var H=pi(P)<e.scrollTop;Fn(P,P.height+gt(f)),H&&fl(g,f.height),g.curOp.forceUpdate=!0}return!0}),g&&ur(g,"lineWidgetAdded",g,f,typeof n=="number"?n:qt(n)),f}var ls=0,oi=function(e,n){this.lines=[],this.type=n,this.doc=e,this.id=++ls};oi.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,n=e&&!e.curOp;if(n&&Ri(e),Le(this,"clear")){var u=this.find();u&&ur(this,"clear",u.from,u.to)}for(var l=null,f=null,g=0;g<this.lines.length;++g){var P=this.lines[g],B=Ha(P.markedSpans,this);e&&!this.collapsed?ii(e,qt(P),"text"):e&&(B.to!=null&&(f=qt(P)),B.from!=null&&(l=qt(P))),P.markedSpans=ic(P.markedSpans,B),B.from==null&&this.collapsed&&!di(this.doc,P)&&e&&Fn(P,ma(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var H=0;H<this.lines.length;++H){var J=Yn(this.lines[H]),ye=Yi(J);ye>e.display.maxLineLength&&(e.display.maxLine=J,e.display.maxLineLength=ye,e.display.maxLineChanged=!0)}l!=null&&e&&this.collapsed&&Nr(e,l,f+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&tf(e.doc)),e&&ur(e,"markerCleared",e,this,l,f),n&&Di(e),this.parent&&this.parent.clear()}},oi.prototype.find=function(e,n){e==null&&this.type=="bookmark"&&(e=1);for(var u,l,f=0;f<this.lines.length;++f){var g=this.lines[f],P=Ha(g.markedSpans,this);if(P.from!=null&&(u=qe(n?g:qt(g),P.from),e==-1))return u;if(P.to!=null&&(l=qe(n?g:qt(g),P.to),e==1))return l}return u&&{from:u,to:l}},oi.prototype.changed=function(){var e=this,n=this.find(-1,!0),u=this,l=this.doc.cm;!n||!l||$r(l,function(){var f=n.line,g=qt(n.line),P=Qs(l,g);if(P&&(_s(P),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!di(u.doc,f)&&u.height!=null){var B=u.height;u.height=null;var H=gt(u)-B;H&&Fn(f,f.height+H)}ur(l,"markerChanged",l,e)})},oi.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var n=this.doc.cm.curOp;(!n.maybeHiddenMarkers||ft(n.maybeHiddenMarkers,this)==-1)&&(n.maybeUnhiddenMarkers||(n.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},oi.prototype.detachLine=function(e){if(this.lines.splice(ft(this.lines,e),1),!this.lines.length&&this.doc.cm){var n=this.doc.cm.curOp;(n.maybeHiddenMarkers||(n.maybeHiddenMarkers=[])).push(this)}},Re(oi);function ua(e,n,u,l,f){if(l&&l.shared)return kc(e,n,u,l,f);if(e.cm&&!e.cm.curOp)return Kr(e.cm,ua)(e,n,u,l,f);var g=new oi(e,f),P=Pt(n,u);if(l&&He(l,g,!1),P>0||P==0&&g.clearWhenEmpty!==!1)return g;if(g.replacedWith&&(g.collapsed=!0,g.widgetNode=pe("span",[g.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||g.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(g.widgetNode.insertLeft=!0)),g.collapsed){if(Do(e,n.line,n,u,g)||n.line!=u.line&&Do(e,u.line,n,u,g))throw new Error("Inserting collapsed marker partially overlapping an existing one");nc()}g.addToHistory&&Qu(e,{from:n,to:u,origin:"markText"},e.sel,NaN);var B=n.line,H=e.cm,J;if(e.iter(B,u.line+1,function(Se){H&&g.collapsed&&!H.options.lineWrapping&&Yn(Se)==H.display.maxLine&&(J=!0),g.collapsed&&B!=n.line&&Fn(Se,0),Jd(Se,new Ro(g,B==n.line?n.ch:null,B==u.line?u.ch:null),e.cm&&e.cm.curOp),++B}),g.collapsed&&e.iter(n.line,u.line+1,function(Se){di(e,Se)&&Fn(Se,0)}),g.clearOnEnter&&D(g,"beforeCursorEnter",function(){return g.clear()}),g.readOnly&&(rc(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),g.collapsed&&(g.id=++ls,g.atomic=!0),H){if(J&&(H.curOp.updateMaxLine=!0),g.collapsed)Nr(H,n.line,u.line+1);else if(g.className||g.startStyle||g.endStyle||g.css||g.attributes||g.title)for(var ye=n.line;ye<=u.line;ye++)ii(H,ye,"text");g.atomic&&tf(H.doc),ur(H,"markerAdded",H,g)}return g}var Ta=function(e,n){this.markers=e,this.primary=n;for(var u=0;u<e.length;++u)e[u].parent=this};Ta.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();ur(this,"clear")}},Ta.prototype.find=function(e,n){return this.primary.find(e,n)},Re(Ta);function kc(e,n,u,l,f){l=He(l),l.shared=!1;var g=[ua(e,n,u,l,f)],P=g[0],B=l.widgetNode;return ji(e,function(H){B&&(l.widgetNode=B.cloneNode(!0)),g.push(ua(H,rt(H,n),rt(H,u),l,f));for(var J=0;J<H.linked.length;++J)if(H.linked[J].isParent)return;P=St(g)}),new Ta(g,P)}function of(e){return e.findMarks(qe(e.first,0),e.clipPos(qe(e.lastLine())),function(n){return n.parent})}function Tl(e,n){for(var u=0;u<n.length;u++){var l=n[u],f=l.find(),g=e.clipPos(f.from),P=e.clipPos(f.to);if(Pt(g,P)){var B=ua(e,g,P,l.primary,l.primary.type);l.markers.push(B),B.parent=l}}}function Mc(e){for(var n=function(l){var f=e[l],g=[f.primary.doc];ji(f.primary.doc,function(H){return g.push(H)});for(var P=0;P<f.markers.length;P++){var B=f.markers[P];ft(g,B.doc)==-1&&(B.parent=null,f.markers.splice(P--,1))}},u=0;u<e.length;u++)n(u)}var Lc=0,yn=function(e,n,u,l,f){if(!(this instanceof yn))return new yn(e,n,u,l,f);u==null&&(u=0),Oa.call(this,[new Ea([new Ji("",null)])]),this.first=u,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=u;var g=qe(u,0);this.sel=Ni(g),this.history=new lo(null),this.id=++Lc,this.modeOption=n,this.lineSep=l,this.direction=f=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),ml(this,{from:g,to:g,text:e}),nn(this,Ni(g),nt)};yn.prototype=mt(Oa.prototype,{constructor:yn,iter:function(e,n,u){u?this.iterN(e-this.first,n-e,u):this.iterN(this.first,this.first+this.size,e)},insert:function(e,n){for(var u=0,l=0;l<n.length;++l)u+=n[l].height;this.insertInner(e-this.first,n,u)},remove:function(e,n){this.removeInner(e-this.first,n)},getValue:function(e){var n=Ii(this,this.first,this.first+this.size);return e===!1?n:n.join(e||this.lineSeparator())},setValue:yr(function(e){var n=qe(this.first,0),u=this.first+this.size-1;wa(this,{from:n,to:qe(u,xt(this,u).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&ro(this.cm,0,0),nn(this,Ni(n),nt)}),replaceRange:function(e,n,u,l){n=rt(this,n),u=u?rt(this,u):n,Ca(this,e,n,u,l)},getRange:function(e,n,u){var l=fi(this,rt(this,e),rt(this,n));return u===!1?l:u===""?l.join(""):l.join(u||this.lineSeparator())},getLine:function(e){var n=this.getLineHandle(e);return n&&n.text},getLineHandle:function(e){if(ri(this,e))return xt(this,e)},getLineNumber:function(e){return qt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=xt(this,e)),Yn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return rt(this,e)},getCursor:function(e){var n=this.sel.primary(),u;return e==null||e=="head"?u=n.head:e=="anchor"?u=n.anchor:e=="end"||e=="to"||e===!1?u=n.to():u=n.from(),u},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:yr(function(e,n,u){Sl(this,rt(this,typeof e=="number"?qe(e,n||0):e),null,u)}),setSelection:yr(function(e,n,u){Sl(this,rt(this,e),rt(this,n||e),u)}),extendSelection:yr(function(e,n,u){is(this,rt(this,e),n&&rt(this,n),u)}),extendSelections:yr(function(e,n){qu(this,Xt(this,e),n)}),extendSelectionsBy:yr(function(e,n){var u=Ut(this.sel.ranges,e);qu(this,Xt(this,u),n)}),setSelections:yr(function(e,n,u){if(!!e.length){for(var l=[],f=0;f<e.length;f++)l[f]=new tr(rt(this,e[f].anchor),rt(this,e[f].head||e[f].anchor));n==null&&(n=Math.min(e.length-1,this.sel.primIndex)),nn(this,kn(this.cm,l,n),u)}}),addSelection:yr(function(e,n,u){var l=this.sel.ranges.slice(0);l.push(new tr(rt(this,e),rt(this,n||e))),nn(this,kn(this.cm,l,l.length-1),u)}),getSelection:function(e){for(var n=this.sel.ranges,u,l=0;l<n.length;l++){var f=fi(this,n[l].from(),n[l].to());u=u?u.concat(f):f}return e===!1?u:u.join(e||this.lineSeparator())},getSelections:function(e){for(var n=[],u=this.sel.ranges,l=0;l<u.length;l++){var f=fi(this,u[l].from(),u[l].to());e!==!1&&(f=f.join(e||this.lineSeparator())),n[l]=f}return n},replaceSelection:function(e,n,u){for(var l=[],f=0;f<this.sel.ranges.length;f++)l[f]=e;this.replaceSelections(l,n,u||"+input")},replaceSelections:yr(function(e,n,u){for(var l=[],f=this.sel,g=0;g<f.ranges.length;g++){var P=f.ranges[g];l[g]={from:P.from(),to:P.to(),text:this.splitLines(e[g]),origin:u}}for(var B=n&&n!="end"&&Ec(this,l,n),H=l.length-1;H>=0;H--)wa(this,l[H]);B?_u(this,B):this.cm&&cn(this.cm)}),undo:yr(function(){Bn(this,"undo")}),redo:yr(function(){Bn(this,"redo")}),undoSelection:yr(function(){Bn(this,"undo",!0)}),redoSelection:yr(function(){Bn(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,n=0,u=0,l=0;l<e.done.length;l++)e.done[l].ranges||++n;for(var f=0;f<e.undone.length;f++)e.undone[f].ranges||++u;return{undo:n,redo:u}},clearHistory:function(){var e=this;this.history=new lo(this.history),ji(this,function(n){return n.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Sa(this.history.done),undone:Sa(this.history.undone)}},setHistory:function(e){var n=this.history=new lo(this.history);n.done=Sa(e.done.slice(0),null,!0),n.undone=Sa(e.undone.slice(0),null,!0)},setGutterMarker:yr(function(e,n,u){return la(this,e,"gutter",function(l){var f=l.gutterMarkers||(l.gutterMarkers={});return f[n]=u,!u&&Kt(f)&&(l.gutterMarkers=null),!0})}),clearGutter:yr(function(e){var n=this;this.iter(function(u){u.gutterMarkers&&u.gutterMarkers[e]&&la(n,u,"gutter",function(){return u.gutterMarkers[e]=null,Kt(u.gutterMarkers)&&(u.gutterMarkers=null),!0})})}),lineInfo:function(e){var n;if(typeof e=="number"){if(!ri(this,e)||(n=e,e=xt(this,e),!e))return null}else if(n=qt(e),n==null)return null;return{line:n,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:yr(function(e,n,u){return la(this,e,n=="gutter"?"gutter":"class",function(l){var f=n=="text"?"textClass":n=="background"?"bgClass":n=="gutter"?"gutterClass":"wrapClass";if(!l[f])l[f]=u;else{if(ue(u).test(l[f]))return!1;l[f]+=" "+u}return!0})}),removeLineClass:yr(function(e,n,u){return la(this,e,n=="gutter"?"gutter":"class",function(l){var f=n=="text"?"textClass":n=="background"?"bgClass":n=="gutter"?"gutterClass":"wrapClass",g=l[f];if(g)if(u==null)l[f]=null;else{var P=g.match(ue(u));if(!P)return!1;var B=P.index+P[0].length;l[f]=g.slice(0,P.index)+(!P.index||B==g.length?"":" ")+g.slice(B)||null}else return!1;return!0})}),addLineWidget:yr(function(e,n,u){return Fc(this,e,n,u)}),removeLineWidget:function(e){e.clear()},markText:function(e,n,u){return ua(this,rt(this,e),rt(this,n),u,u&&u.type||"range")},setBookmark:function(e,n){var u={replacedWith:n&&(n.nodeType==null?n.widget:n),insertLeft:n&&n.insertLeft,clearWhenEmpty:!1,shared:n&&n.shared,handleMouseEvents:n&&n.handleMouseEvents};return e=rt(this,e),ua(this,e,e,u,"bookmark")},findMarksAt:function(e){e=rt(this,e);var n=[],u=xt(this,e.line).markedSpans;if(u)for(var l=0;l<u.length;++l){var f=u[l];(f.from==null||f.from<=e.ch)&&(f.to==null||f.to>=e.ch)&&n.push(f.marker.parent||f.marker)}return n},findMarks:function(e,n,u){e=rt(this,e),n=rt(this,n);var l=[],f=e.line;return this.iter(e.line,n.line+1,function(g){var P=g.markedSpans;if(P)for(var B=0;B<P.length;B++){var H=P[B];!(H.to!=null&&f==e.line&&e.ch>=H.to||H.from==null&&f!=e.line||H.from!=null&&f==n.line&&H.from>=n.ch)&&(!u||u(H.marker))&&l.push(H.marker.parent||H.marker)}++f}),l},getAllMarks:function(){var e=[];return this.iter(function(n){var u=n.markedSpans;if(u)for(var l=0;l<u.length;++l)u[l].from!=null&&e.push(u[l].marker)}),e},posFromIndex:function(e){var n,u=this.first,l=this.lineSeparator().length;return this.iter(function(f){var g=f.text.length+l;if(g>e)return n=e,!0;e-=g,++u}),rt(this,qe(u,n))},indexFromPos:function(e){e=rt(this,e);var n=e.ch;if(e.line<this.first||e.ch<0)return 0;var u=this.lineSeparator().length;return this.iter(this.first,e.line,function(l){n+=l.text.length+u}),n},copy:function(e){var n=new yn(Ii(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return n.scrollTop=this.scrollTop,n.scrollLeft=this.scrollLeft,n.sel=this.sel,n.extend=!1,e&&(n.history.undoDepth=this.history.undoDepth,n.setHistory(this.getHistory())),n},linkedDoc:function(e){e||(e={});var n=this.first,u=this.first+this.size;e.from!=null&&e.from>n&&(n=e.from),e.to!=null&&e.to<u&&(u=e.to);var l=new yn(Ii(this,n,u),e.mode||this.modeOption,n,this.lineSep,this.direction);return e.sharedHist&&(l.history=this.history),(this.linked||(this.linked=[])).push({doc:l,sharedHist:e.sharedHist}),l.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Tl(l,of(this)),l},unlinkDoc:function(e){if(e instanceof mr&&(e=e.doc),this.linked)for(var n=0;n<this.linked.length;++n){var u=this.linked[n];if(u.doc==e){this.linked.splice(n,1),e.unlinkDoc(this),Mc(of(this));break}}if(e.history==this.history){var l=[e.id];ji(e,function(f){return l.push(f.id)},!0),e.history=new lo(null),e.history.done=Sa(this.history.done,l),e.history.undone=Sa(this.history.undone,l)}},iterLinkedDocs:function(e){ji(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):zn(e)},lineSeparator:function(){return this.lineSep||`
23
+ `},setDirection:yr(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(n){return n.order=null}),this.cm&&so(this.cm))})}),yn.prototype.eachLine=yn.prototype.iter;var sf=0;function Rc(e){var n=this;if(lf(n),!(ce(n,e)||hi(n.display,e))){We(e),b&&(sf=+new Date);var u=ea(n,e,!0),l=e.dataTransfer.files;if(!(!u||n.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var f=l.length,g=Array(f),P=0,B=function(){++P==f&&Kr(n,function(){u=rt(n.doc,u);var Ee={from:u,to:u,text:n.doc.splitLines(g.filter(function(Ue){return Ue!=null}).join(n.doc.lineSeparator())),origin:"paste"};wa(n.doc,Ee),_u(n.doc,Ni(rt(n.doc,u),rt(n.doc,Bi(Ee))))})()},H=function(Ee,Ue){if(n.options.allowDropFileTypes&&ft(n.options.allowDropFileTypes,Ee.type)==-1){B();return}var Ye=new FileReader;Ye.onerror=function(){return B()},Ye.onload=function(){var et=Ye.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(et)){B();return}g[Ue]=et,B()},Ye.readAsText(Ee)},J=0;J<l.length;J++)H(l[J],J);else{if(n.state.draggingText&&n.doc.sel.contains(u)>-1){n.state.draggingText(e),setTimeout(function(){return n.display.input.focus()},20);return}try{var ye=e.dataTransfer.getData("Text");if(ye){var Se;if(n.state.draggingText&&!n.state.draggingText.copy&&(Se=n.listSelections()),os(n.doc,Ni(u,u)),Se)for(var Ie=0;Ie<Se.length;++Ie)Ca(n.doc,"",Se[Ie].anchor,Se[Ie].head,"drag");n.replaceSelection(ye,"around","paste"),n.display.input.focus()}}catch(Ee){}}}}function Dc(e,n){if(b&&(!e.state.draggingText||+new Date-sf<100)){Ft(n);return}if(!(ce(e,n)||hi(e.display,n))&&(n.dataTransfer.setData("Text",e.getSelection()),n.dataTransfer.effectAllowed="copyMove",n.dataTransfer.setDragImage&&!U)){var u=me("img",null,null,"position: fixed; left: 0; top: 0;");u.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",j&&(u.width=u.height=1,e.display.wrapper.appendChild(u),u._top=u.offsetTop),n.dataTransfer.setDragImage(u,0,0),j&&u.parentNode.removeChild(u)}}function Nc(e,n){var u=ea(e,n);if(!!u){var l=document.createDocumentFragment();al(e,u,l),e.display.dragCursor||(e.display.dragCursor=me("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),ge(e.display.dragCursor,l)}}function lf(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function us(e){if(!!document.getElementsByClassName){for(var n=document.getElementsByClassName("CodeMirror"),u=[],l=0;l<n.length;l++){var f=n[l].CodeMirror;f&&u.push(f)}u.length&&u[0].operation(function(){for(var g=0;g<u.length;g++)e(u[g])})}}var vo=!1;function uf(){vo||(Bc(),vo=!0)}function Bc(){var e;D(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,us(jc)},100))}),D(window,"blur",function(){return us(xa)})}function jc(e){var n=e.display;n.cachedCharWidth=n.cachedTextHeight=n.cachedPaddingH=null,n.scrollbarsClipped=!1,e.setSize()}for(var On={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"},go=0;go<10;go++)On[go+48]=On[go+96]=String(go);for(var yo=65;yo<=90;yo++)On[yo]=String.fromCharCode(yo);for(var Pa=1;Pa<=12;Pa++)On[Pa+111]=On[Pa+63235]="F"+Pa;var si={};si.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"},si.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"},si.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"},si.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"]},si.default=E?si.macDefault:si.pcDefault;function ff(e){var n=e.split(/-(?!$)/);e=n[n.length-1];for(var u,l,f,g,P=0;P<n.length-1;P++){var B=n[P];if(/^(cmd|meta|m)$/i.test(B))g=!0;else if(/^a(lt)?$/i.test(B))u=!0;else if(/^(c|ctrl|control)$/i.test(B))l=!0;else if(/^s(hift)?$/i.test(B))f=!0;else throw new Error("Unrecognized modifier name: "+B)}return u&&(e="Alt-"+e),l&&(e="Ctrl-"+e),g&&(e="Cmd-"+e),f&&(e="Shift-"+e),e}function qd(e){var n={};for(var u in e)if(e.hasOwnProperty(u)){var l=e[u];if(/^(name|fallthrough|(de|at)tach)$/.test(u))continue;if(l=="..."){delete e[u];continue}for(var f=Ut(u.split(" "),ff),g=0;g<f.length;g++){var P=void 0,B=void 0;g==f.length-1?(B=f.join(" "),P=l):(B=f.slice(0,g+1).join(" "),P="...");var H=n[B];if(!H)n[B]=P;else if(H!=P)throw new Error("Inconsistent bindings for "+B)}delete e[u]}for(var J in n)e[J]=n[J];return e}function xi(e,n,u,l){n=fs(n);var f=n.call?n.call(e,l):n[e];if(f===!1)return"nothing";if(f==="...")return"multi";if(f!=null&&u(f))return"handled";if(n.fallthrough){if(Object.prototype.toString.call(n.fallthrough)!="[object Array]")return xi(e,n.fallthrough,u,l);for(var g=0;g<n.fallthrough.length;g++){var P=xi(e,n.fallthrough[g],u,l);if(P)return P}}}function cf(e){var n=typeof e=="string"?e:On[e.keyCode];return n=="Ctrl"||n=="Alt"||n=="Shift"||n=="Mod"}function Pl(e,n,u){var l=e;return n.altKey&&l!="Alt"&&(e="Alt-"+e),(X?n.metaKey:n.ctrlKey)&&l!="Ctrl"&&(e="Ctrl-"+e),(X?n.ctrlKey:n.metaKey)&&l!="Mod"&&(e="Cmd-"+e),!u&&n.shiftKey&&l!="Shift"&&(e="Shift-"+e),e}function df(e,n){if(j&&e.keyCode==34&&e.char)return!1;var u=On[e.keyCode];return u==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(u=e.code),Pl(u,e,n))}function fs(e){return typeof e=="string"?si[e]:e}function fa(e,n){for(var u=e.doc.sel.ranges,l=[],f=0;f<u.length;f++){for(var g=n(u[f]);l.length&&Pt(g.from,St(l).to)<=0;){var P=l.pop();if(Pt(P.from,g.from)<0){g.from=P.from;break}}l.push(g)}$r(e,function(){for(var B=l.length-1;B>=0;B--)Ca(e.doc,"",l[B].from,l[B].to,"+delete");cn(e)})}function cs(e,n,u){var l=Wt(e.text,n+u,u);return l<0||l>e.text.length?null:l}function ds(e,n,u){var l=cs(e,n.ch,u);return l==null?null:new qe(n.line,l,u<0?"after":"before")}function Il(e,n,u,l,f){if(e){n.doc.direction=="rtl"&&(f=-f);var g=T(u,n.doc.direction);if(g){var P=f<0?St(g):g[0],B=f<0==(P.level==1),H=B?"after":"before",J;if(P.level>0||n.doc.direction=="rtl"){var ye=ni(n,u);J=f<0?u.text.length-1:0;var Se=Jn(n,ye,J).top;J=Bt(function(Ie){return Jn(n,ye,Ie).top==Se},f<0==(P.level==1)?P.from:P.to-1,J),H=="before"&&(J=cs(u,J,1))}else J=f<0?P.to:P.from;return new qe(l,J,H)}}return new qe(l,f<0?u.text.length:0,f<0?"before":"after")}function pf(e,n,u,l){var f=T(n,e.doc.direction);if(!f)return ds(n,u,l);u.ch>=n.text.length?(u.ch=n.text.length,u.sticky="before"):u.ch<=0&&(u.ch=0,u.sticky="after");var g=$(f,u.ch,u.sticky),P=f[g];if(e.doc.direction=="ltr"&&P.level%2==0&&(l>0?P.to>u.ch:P.from<u.ch))return ds(n,u,l);var B=function(at,lt){return cs(n,at instanceof qe?at.ch:at,lt)},H,J=function(at){return e.options.lineWrapping?(H=H||ni(e,n),Fu(e,n,H,at)):{begin:0,end:n.text.length}},ye=J(u.sticky=="before"?B(u,-1):u.ch);if(e.doc.direction=="rtl"||P.level==1){var Se=P.level==1==l<0,Ie=B(u,Se?1:-1);if(Ie!=null&&(Se?Ie<=P.to&&Ie<=ye.end:Ie>=P.from&&Ie>=ye.begin)){var Ee=Se?"before":"after";return new qe(u.line,Ie,Ee)}}var Ue=function(at,lt,it){for(var pt=function(nr,br){return br?new qe(u.line,B(nr,1),"before"):new qe(u.line,nr,"after")};at>=0&&at<f.length;at+=lt){var wt=f[at],$e=lt>0==(wt.level!=1),Tt=$e?it.begin:B(it.end,-1);if(wt.from<=Tt&&Tt<wt.to||(Tt=$e?wt.from:B(wt.to,-1),it.begin<=Tt&&Tt<it.end))return pt(Tt,$e)}},Ye=Ue(g+l,l,ye);if(Ye)return Ye;var et=l>0?ye.end:B(ye.begin,-1);return et!=null&&!(l>0&&et==n.text.length)&&(Ye=Ue(l>0?0:f.length-1,l,J(et)),Ye)?Ye:null}var mo={selectAll:ss,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),nt)},killLine:function(e){return fa(e,function(n){if(n.empty()){var u=xt(e.doc,n.head.line).text.length;return n.head.ch==u&&n.head.line<e.lastLine()?{from:n.head,to:qe(n.head.line+1,0)}:{from:n.head,to:qe(n.head.line,u)}}else return{from:n.from(),to:n.to()}})},deleteLine:function(e){return fa(e,function(n){return{from:qe(n.from().line,0),to:rt(e.doc,qe(n.to().line+1,0))}})},delLineLeft:function(e){return fa(e,function(n){return{from:qe(n.from().line,0),to:n.from()}})},delWrappedLineLeft:function(e){return fa(e,function(n){var u=e.charCoords(n.head,"div").top+5,l=e.coordsChar({left:0,top:u},"div");return{from:l,to:n.from()}})},delWrappedLineRight:function(e){return fa(e,function(n){var u=e.charCoords(n.head,"div").top+5,l=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:u},"div");return{from:n.from(),to:l}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(qe(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(qe(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(n){return Ia(e,n.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(n){return ps(e,n.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(n){return Uc(e,n.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(n){var u=e.cursorCoords(n.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:u},"div")},dt)},goLineLeft:function(e){return e.extendSelectionsBy(function(n){var u=e.cursorCoords(n.head,"div").top+5;return e.coordsChar({left:0,top:u},"div")},dt)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(n){var u=e.cursorCoords(n.head,"div").top+5,l=e.coordsChar({left:0,top:u},"div");return l.ch<e.getLine(l.line).search(/\S/)?ps(e,n.head):l},dt)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var n=[],u=e.listSelections(),l=e.options.tabSize,f=0;f<u.length;f++){var g=u[f].from(),P=Je(e.getLine(g.line),g.ch,l);n.push(Et(l-P%l))}e.replaceSelections(n)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return $r(e,function(){for(var n=e.listSelections(),u=[],l=0;l<n.length;l++)if(!!n[l].empty()){var f=n[l].head,g=xt(e.doc,f.line).text;if(g){if(f.ch==g.length&&(f=new qe(f.line,f.ch-1)),f.ch>0)f=new qe(f.line,f.ch+1),e.replaceRange(g.charAt(f.ch-1)+g.charAt(f.ch-2),qe(f.line,f.ch-2),f,"+transpose");else if(f.line>e.doc.first){var P=xt(e.doc,f.line-1).text;P&&(f=new qe(f.line,1),e.replaceRange(g.charAt(0)+e.doc.lineSeparator()+P.charAt(P.length-1),qe(f.line-1,P.length-1),f,"+transpose"))}}u.push(new tr(f,f))}e.setSelections(u)})},newlineAndIndent:function(e){return $r(e,function(){for(var n=e.listSelections(),u=n.length-1;u>=0;u--)e.replaceRange(e.doc.lineSeparator(),n[u].anchor,n[u].head,"+input");n=e.listSelections();for(var l=0;l<n.length;l++)e.indentLine(n[l].from().line,null,!0);cn(e)})},openLine:function(e){return e.replaceSelection(`
24
+ `,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Ia(e,n){var u=xt(e.doc,n),l=Yn(u);return l!=u&&(n=qt(l)),Il(!0,e,l,n,1)}function Uc(e,n){var u=xt(e.doc,n),l=yu(u);return l!=u&&(n=qt(l)),Il(!0,e,u,n,-1)}function ps(e,n){var u=Ia(e,n.line),l=xt(e.doc,u.line),f=T(l,e.doc.direction);if(!f||f[0].level==0){var g=Math.max(u.ch,l.text.search(/\S/)),P=n.line==u.line&&n.ch<=g&&n.ch;return qe(u.line,P?0:g,u.sticky)}return u}function hs(e,n,u){if(typeof n=="string"&&(n=mo[n],!n))return!1;e.display.input.ensurePolled();var l=e.display.shift,f=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),u&&(e.display.shift=!1),f=n(e)!=Qe}finally{e.display.shift=l,e.state.suppressEdits=!1}return f}function Vc(e,n,u){for(var l=0;l<e.state.keyMaps.length;l++){var f=xi(n,e.state.keyMaps[l],u,e);if(f)return f}return e.options.extraKeys&&xi(n,e.options.extraKeys,u,e)||xi(n,e.options.keyMap,u,e)}var vs=new ut;function xo(e,n,u,l){var f=e.state.keySeq;if(f){if(cf(n))return"handled";if(/\'$/.test(n)?e.state.keySeq=null:vs.set(50,function(){e.state.keySeq==f&&(e.state.keySeq=null,e.display.input.reset())}),Wc(e,f+" "+n,u,l))return!0}return Wc(e,n,u,l)}function Wc(e,n,u,l){var f=Vc(e,n,l);return f=="multi"&&(e.state.keySeq=n),f=="handled"&&ur(e,"keyHandled",e,n,u),(f=="handled"||f=="multi")&&(We(u),ol(e)),!!f}function hf(e,n){var u=df(n,!0);return u?n.shiftKey&&!e.state.keySeq?xo(e,"Shift-"+u,n,function(l){return hs(e,l,!0)})||xo(e,u,n,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return hs(e,l)}):xo(e,u,n,function(l){return hs(e,l)}):!1}function Hc(e,n,u){return xo(e,"'"+u+"'",n,function(l){return hs(e,l,!0)})}var gs=null;function vf(e){var n=this;if(!(e.target&&e.target!=n.display.input.getField())&&(n.curOp.focus=Oe(),!ce(n,e))){b&&C<11&&e.keyCode==27&&(e.returnValue=!1);var u=e.keyCode;n.display.shift=u==16||e.shiftKey;var l=hf(n,e);j&&(gs=l?u:null,!l&&u==88&&!Rn&&(E?e.metaKey:e.ctrlKey)&&n.replaceSelection("",null,"cut")),c&&!E&&!l&&u==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),u==18&&!/\bCodeMirror-crosshair\b/.test(n.display.lineDiv.className)&&zc(n)}}function zc(e){var n=e.display.lineDiv;Pe(n,"CodeMirror-crosshair");function u(l){(l.keyCode==18||!l.altKey)&&(q(n,"CodeMirror-crosshair"),fe(document,"keyup",u),fe(document,"mouseover",u))}D(document,"keyup",u),D(document,"mouseover",u)}function gf(e){e.keyCode==16&&(this.doc.sel.shift=!1),ce(this,e)}function Fl(e){var n=this;if(!(e.target&&e.target!=n.display.input.getField())&&!(hi(n.display,e)||ce(n,e)||e.ctrlKey&&!e.altKey||E&&e.metaKey)){var u=e.keyCode,l=e.charCode;if(j&&u==gs){gs=null,We(e);return}if(!(j&&(!e.which||e.which<10)&&hf(n,e))){var f=String.fromCharCode(l==null?u:l);f!="\b"&&(Hc(n,e,f)||n.display.input.onKeyPress(e))}}}var Gc=400,kl=function(e,n,u){this.time=e,this.pos=n,this.button=u};kl.prototype.compare=function(e,n,u){return this.time+Gc>e&&Pt(n,this.pos)==0&&u==this.button};var bo,So;function $c(e,n){var u=+new Date;return So&&So.compare(u,e,n)?(bo=So=null,"triple"):bo&&bo.compare(u,e,n)?(So=new kl(u,e,n),bo=null,"double"):(bo=new kl(u,e,n),So=null,"single")}function yf(e){var n=this,u=n.display;if(!(ce(n,e)||u.activeTouch&&u.input.supportsTouch())){if(u.input.ensurePolled(),u.shift=e.shiftKey,hi(u,e)){S||(u.scroller.draggable=!1,setTimeout(function(){return u.scroller.draggable=!0},100));return}if(!Ml(n,e)){var l=ea(n,e),f=bn(e),g=l?$c(l,f):"single";window.focus(),f==1&&n.state.selectingText&&n.state.selectingText(e),!(l&&Kc(n,f,l,g,e))&&(f==1?l?Jc(n,l,g,e):At(e)==u.scroller&&We(e):f==2?(l&&is(n.doc,l),setTimeout(function(){return u.input.focus()},20)):f==3&&(z?n.display.input.onContextMenu(e):eo(n)))}}}function Kc(e,n,u,l,f){var g="Click";return l=="double"?g="Double"+g:l=="triple"&&(g="Triple"+g),g=(n==1?"Left":n==2?"Middle":"Right")+g,xo(e,Pl(g,f),f,function(P){if(typeof P=="string"&&(P=mo[P]),!P)return!1;var B=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),B=P(e,u)!=Qe}finally{e.state.suppressEdits=!1}return B})}function Yc(e,n,u){var l=e.getOption("configureMouse"),f=l?l(e,n,u):{};if(f.unit==null){var g=V?u.shiftKey&&u.metaKey:u.altKey;f.unit=g?"rectangle":n=="single"?"char":n=="double"?"word":"line"}return(f.extend==null||e.doc.extend)&&(f.extend=e.doc.extend||u.shiftKey),f.addNew==null&&(f.addNew=E?u.metaKey:u.ctrlKey),f.moveOnDrag==null&&(f.moveOnDrag=!(E?u.altKey:u.ctrlKey)),f}function Jc(e,n,u,l){b?setTimeout(Xe(sl,e),0):e.curOp.focus=Oe();var f=Yc(e,u,l),g=e.doc.sel,P;e.options.dragDrop&&zr&&!e.isReadOnly()&&u=="single"&&(P=g.contains(n))>-1&&(Pt((P=g.ranges[P]).from(),n)<0||n.xRel>0)&&(Pt(P.to(),n)>0||n.xRel<0)?ys(e,l,n,f):Xc(e,l,n,f)}function ys(e,n,u,l){var f=e.display,g=!1,P=Kr(e,function(J){S&&(f.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:eo(e)),fe(f.wrapper.ownerDocument,"mouseup",P),fe(f.wrapper.ownerDocument,"mousemove",B),fe(f.scroller,"dragstart",H),fe(f.scroller,"drop",P),g||(We(J),l.addNew||is(e.doc,u,null,null,l.extend),S&&!U||b&&C==9?setTimeout(function(){f.wrapper.ownerDocument.body.focus({preventScroll:!0}),f.input.focus()},20):f.input.focus())}),B=function(J){g=g||Math.abs(n.clientX-J.clientX)+Math.abs(n.clientY-J.clientY)>=10},H=function(){return g=!0};S&&(f.scroller.draggable=!0),e.state.draggingText=P,P.copy=!l.moveOnDrag,D(f.wrapper.ownerDocument,"mouseup",P),D(f.wrapper.ownerDocument,"mousemove",B),D(f.scroller,"dragstart",H),D(f.scroller,"drop",P),e.state.delayingBlurEvent=!0,setTimeout(function(){return f.input.focus()},20),f.scroller.dragDrop&&f.scroller.dragDrop()}function mf(e,n,u){if(u=="char")return new tr(n,n);if(u=="word")return e.findWordAt(n);if(u=="line")return new tr(qe(n.line,0),rt(e.doc,qe(n.line+1,0)));var l=u(e,n);return new tr(l.from,l.to)}function Xc(e,n,u,l){b&&eo(e);var f=e.display,g=e.doc;We(n);var P,B,H=g.sel,J=H.ranges;if(l.addNew&&!l.extend?(B=g.sel.contains(u),B>-1?P=J[B]:P=new tr(u,u)):(P=g.sel.primary(),B=g.sel.primIndex),l.unit=="rectangle")l.addNew||(P=new tr(u,u)),u=ea(e,n,!0,!0),B=-1;else{var ye=mf(e,u,l.unit);l.extend?P=bl(P,ye.anchor,ye.head,l.extend):P=ye}l.addNew?B==-1?(B=J.length,nn(g,kn(e,J.concat([P]),B),{scroll:!1,origin:"*mouse"})):J.length>1&&J[B].empty()&&l.unit=="char"&&!l.extend?(nn(g,kn(e,J.slice(0,B).concat(J.slice(B+1)),0),{scroll:!1,origin:"*mouse"}),H=g.sel):as(g,B,P,ct):(B=0,nn(g,new En([P],0),ct),H=g.sel);var Se=u;function Ie(it){if(Pt(Se,it)!=0)if(Se=it,l.unit=="rectangle"){for(var pt=[],wt=e.options.tabSize,$e=Je(xt(g,u.line).text,u.ch,wt),Tt=Je(xt(g,it.line).text,it.ch,wt),nr=Math.min($e,Tt),br=Math.max($e,Tt),Zt=Math.min(u.line,it.line),Tn=Math.min(e.lastLine(),Math.max(u.line,it.line));Zt<=Tn;Zt++){var mn=xt(g,Zt).text,Rr=st(mn,nr,wt);nr==br?pt.push(new tr(qe(Zt,Rr),qe(Zt,Rr))):mn.length>Rr&&pt.push(new tr(qe(Zt,Rr),qe(Zt,st(mn,br,wt))))}pt.length||pt.push(new tr(u,u)),nn(g,kn(e,H.ranges.slice(0,B).concat(pt),B),{origin:"*mouse",scroll:!1}),e.scrollIntoView(it)}else{var dn=P,_r=mf(e,it,l.unit),jr=dn.anchor,Tr;Pt(_r.anchor,jr)>0?(Tr=_r.head,jr=Ge(dn.from(),_r.anchor)):(Tr=_r.anchor,jr=Ae(dn.to(),_r.head));var gr=H.ranges.slice(0);gr[B]=Qc(e,new tr(rt(g,jr),Tr)),nn(g,kn(e,gr,B),ct)}}var Ee=f.wrapper.getBoundingClientRect(),Ue=0;function Ye(it){var pt=++Ue,wt=ea(e,it,!0,l.unit=="rectangle");if(!!wt)if(Pt(wt,Se)!=0){e.curOp.focus=Oe(),Ie(wt);var $e=to(f,g);(wt.line>=$e.to||wt.line<$e.from)&&setTimeout(Kr(e,function(){Ue==pt&&Ye(it)}),150)}else{var Tt=it.clientY<Ee.top?-20:it.clientY>Ee.bottom?20:0;Tt&&setTimeout(Kr(e,function(){Ue==pt&&(f.scroller.scrollTop+=Tt,Ye(it))}),50)}}function et(it){e.state.selectingText=!1,Ue=1/0,it&&(We(it),f.input.focus()),fe(f.wrapper.ownerDocument,"mousemove",at),fe(f.wrapper.ownerDocument,"mouseup",lt),g.history.lastSelOrigin=null}var at=Kr(e,function(it){it.buttons===0||!bn(it)?et(it):Ye(it)}),lt=Kr(e,et);e.state.selectingText=lt,D(f.wrapper.ownerDocument,"mousemove",at),D(f.wrapper.ownerDocument,"mouseup",lt)}function Qc(e,n){var u=n.anchor,l=n.head,f=xt(e.doc,u.line);if(Pt(u,l)==0&&u.sticky==l.sticky)return n;var g=T(f);if(!g)return n;var P=$(g,u.ch,u.sticky),B=g[P];if(B.from!=u.ch&&B.to!=u.ch)return n;var H=P+(B.from==u.ch==(B.level!=1)?0:1);if(H==0||H==g.length)return n;var J;if(l.line!=u.line)J=(l.line-u.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var ye=$(g,l.ch,l.sticky),Se=ye-P||(l.ch-u.ch)*(B.level==1?-1:1);ye==H-1||ye==H?J=Se<0:J=Se>0}var Ie=g[H+(J?-1:0)],Ee=J==(Ie.level==1),Ue=Ee?Ie.from:Ie.to,Ye=Ee?"after":"before";return u.ch==Ue&&u.sticky==Ye?n:new tr(new qe(u.line,Ue,Ye),l)}function xf(e,n,u,l){var f,g;if(n.touches)f=n.touches[0].clientX,g=n.touches[0].clientY;else try{f=n.clientX,g=n.clientY}catch(Ie){return!1}if(f>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;l&&We(n);var P=e.display,B=P.lineDiv.getBoundingClientRect();if(g>B.bottom||!Le(e,u))return vt(n);g-=B.top-P.viewOffset;for(var H=0;H<e.display.gutterSpecs.length;++H){var J=P.gutters.childNodes[H];if(J&&J.getBoundingClientRect().right>=f){var ye=Kn(e.doc,g),Se=e.display.gutterSpecs[H];return te(e,u,e,ye,Se.className,n),vt(n)}}}function Ml(e,n){return xf(e,n,"gutterClick",!0)}function bf(e,n){hi(e.display,n)||Sf(e,n)||ce(e,n,"contextmenu")||z||e.display.input.onContextMenu(n)}function Sf(e,n){return Le(e,"gutterContextMenu")?xf(e,n,"gutterContextMenu",!1):!1}function Af(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Qa(e)}var Fa={toString:function(){return"CodeMirror.Init"}},wf={},ms={};function Cf(e){var n=e.optionHandlers;function u(l,f,g,P){e.defaults[l]=f,g&&(n[l]=P?function(B,H,J){J!=Fa&&g(B,H,J)}:g)}e.defineOption=u,e.Init=Fa,u("value","",function(l,f){return l.setValue(f)},!0),u("mode",null,function(l,f){l.doc.modeOption=f,es(l)},!0),u("indentUnit",2,es,!0),u("indentWithTabs",!1),u("smartIndent",!0),u("tabSize",4,function(l){oa(l),Qa(l),Nr(l)},!0),u("lineSeparator",null,function(l,f){if(l.doc.lineSep=f,!!f){var g=[],P=l.doc.first;l.doc.iter(function(H){for(var J=0;;){var ye=H.text.indexOf(f,J);if(ye==-1)break;J=ye+f.length,g.push(qe(P,ye))}P++});for(var B=g.length-1;B>=0;B--)Ca(l.doc,f,g[B],qe(g[B].line,g[B].ch+f.length))}}),u("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(l,f,g){l.state.specialChars=new RegExp(f.source+(f.test(" ")?"":"| "),"g"),g!=Fa&&l.refresh()}),u("specialCharPlaceholder",Gs,function(l){return l.refresh()},!0),u("electricChars",!0),u("inputStyle",R?"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){Af(l),qo(l)},!0),u("keyMap","default",function(l,f,g){var P=fs(f),B=g!=Fa&&fs(g);B&&B.detach&&B.detach(l,P),P.attach&&P.attach(l,B||null)}),u("extraKeys",null),u("configureMouse",null),u("lineWrapping",!1,qc,!0),u("gutters",[],function(l,f){l.display.gutterSpecs=oo(f,l.options.lineNumbers),qo(l)},!0),u("fixedGutter",!0,function(l,f){l.display.gutters.style.left=f?Nn(l.display)+"px":"0",l.refresh()},!0),u("coverGutterNextToScrollbar",!1,function(l){return gi(l)},!0),u("scrollbarStyle","native",function(l){Qo(l),gi(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=oo(l.options.gutters,f),qo(l)},!0),u("firstLineNumber",1,qo,!0),u("lineNumberFormatter",function(l){return l},qo,!0),u("showCursorWhenSelecting",!1,Li,!0),u("resetSelectionOnContextMenu",!0),u("lineWiseCopyCut",!0),u("pasteLinesPerSelection",!0),u("selectionsMayTouch",!1),u("readOnly",!1,function(l,f){f=="nocursor"&&(xa(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,Zc),u("allowDropFileTypes",null),u("cursorBlinkRate",530),u("cursorScrollMargin",0),u("cursorHeight",1,Li,!0),u("singleCursorHeightPerLine",!0,Li,!0),u("workTime",100),u("workDelay",100),u("flattenSpans",!0,oa,!0),u("addModeClass",!1,oa,!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,oa,!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 Zc(e,n,u){var l=u&&u!=Fa;if(!n!=!l){var f=e.display.dragFunctions,g=n?D:fe;g(e.display.scroller,"dragstart",f.start),g(e.display.scroller,"dragenter",f.enter),g(e.display.scroller,"dragover",f.over),g(e.display.scroller,"dragleave",f.leave),g(e.display.scroller,"drop",f.drop)}}function qc(e){e.options.lineWrapping?(Pe(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(q(e.display.wrapper,"CodeMirror-wrap"),Vs(e)),il(e),Nr(e),Qa(e),setTimeout(function(){return gi(e)},100)}function mr(e,n){var u=this;if(!(this instanceof mr))return new mr(e,n);this.options=n=n?He(n):{},He(wf,n,!1);var l=n.value;typeof l=="string"?l=new yn(l,n.mode,null,n.lineSeparator,n.direction):n.mode&&(l.modeOption=n.mode),this.doc=l;var f=new mr.inputStyles[n.inputStyle](this),g=this.display=new Cc(e,l,f,n);g.wrapper.CodeMirror=this,Af(this),n.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Qo(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 ut,keySeq:null,specialChars:null},n.autofocus&&!R&&g.input.focus(),b&&C<11&&setTimeout(function(){return u.display.input.reset(!0)},20),_c(this),uf(),Ri(this),this.curOp.forceUpdate=!0,Yu(this,l),n.autofocus&&!R||this.hasFocus()?setTimeout(function(){u.hasFocus()&&!u.state.focused&&Ko(u)},20):xa(this);for(var P in ms)ms.hasOwnProperty(P)&&ms[P](this,n[P],Fa);Zo(this),n.finishInit&&n.finishInit(this);for(var B=0;B<Ll.length;++B)Ll[B](this);Di(this),S&&n.lineWrapping&&getComputedStyle(g.lineDiv).textRendering=="optimizelegibility"&&(g.lineDiv.style.textRendering="auto")}mr.defaults=wf,mr.optionHandlers=ms;function _c(e){var n=e.display;D(n.scroller,"mousedown",Kr(e,yf)),b&&C<11?D(n.scroller,"dblclick",Kr(e,function(H){if(!ce(e,H)){var J=ea(e,H);if(!(!J||Ml(e,H)||hi(e.display,H))){We(H);var ye=e.findWordAt(J);is(e.doc,ye.anchor,ye.head)}}})):D(n.scroller,"dblclick",function(H){return ce(e,H)||We(H)}),D(n.scroller,"contextmenu",function(H){return bf(e,H)}),D(n.input.getField(),"contextmenu",function(H){n.scroller.contains(H.target)||bf(e,H)});var u,l={end:0};function f(){n.activeTouch&&(u=setTimeout(function(){return n.activeTouch=null},1e3),l=n.activeTouch,l.end=+new Date)}function g(H){if(H.touches.length!=1)return!1;var J=H.touches[0];return J.radiusX<=1&&J.radiusY<=1}function P(H,J){if(J.left==null)return!0;var ye=J.left-H.left,Se=J.top-H.top;return ye*ye+Se*Se>20*20}D(n.scroller,"touchstart",function(H){if(!ce(e,H)&&!g(H)&&!Ml(e,H)){n.input.ensurePolled(),clearTimeout(u);var J=+new Date;n.activeTouch={start:J,moved:!1,prev:J-l.end<=300?l:null},H.touches.length==1&&(n.activeTouch.left=H.touches[0].pageX,n.activeTouch.top=H.touches[0].pageY)}}),D(n.scroller,"touchmove",function(){n.activeTouch&&(n.activeTouch.moved=!0)}),D(n.scroller,"touchend",function(H){var J=n.activeTouch;if(J&&!hi(n,H)&&J.left!=null&&!J.moved&&new Date-J.start<300){var ye=e.coordsChar(n.activeTouch,"page"),Se;!J.prev||P(J,J.prev)?Se=new tr(ye,ye):!J.prev.prev||P(J,J.prev.prev)?Se=e.findWordAt(ye):Se=new tr(qe(ye.line,0),rt(e.doc,qe(ye.line+1,0))),e.setSelection(Se.anchor,Se.head),e.focus(),We(H)}f()}),D(n.scroller,"touchcancel",f),D(n.scroller,"scroll",function(){n.scroller.clientHeight&&(no(e,n.scroller.scrollTop),na(e,n.scroller.scrollLeft,!0),te(e,"scroll",e))}),D(n.scroller,"mousewheel",function(H){return Gu(e,H)}),D(n.scroller,"DOMMouseScroll",function(H){return Gu(e,H)}),D(n.wrapper,"scroll",function(){return n.wrapper.scrollTop=n.wrapper.scrollLeft=0}),n.dragFunctions={enter:function(H){ce(e,H)||Ft(H)},over:function(H){ce(e,H)||(Nc(e,H),Ft(H))},start:function(H){return Dc(e,H)},drop:Kr(e,Rc),leave:function(H){ce(e,H)||lf(e)}};var B=n.input.getField();D(B,"keyup",function(H){return gf.call(e,H)}),D(B,"keydown",Kr(e,vf)),D(B,"keypress",Kr(e,Fl)),D(B,"focus",function(H){return Ko(e,H)}),D(B,"blur",function(H){return xa(e,H)})}var Ll=[];mr.defineInitHook=function(e){return Ll.push(e)};function ka(e,n,u,l){var f=e.doc,g;u==null&&(u="add"),u=="smart"&&(f.mode.indent?g=un(e,n).state:u="prev");var P=e.options.tabSize,B=xt(f,n),H=Je(B.text,null,P);B.stateAfter&&(B.stateAfter=null);var J=B.text.match(/^\s*/)[0],ye;if(!l&&!/\S/.test(B.text))ye=0,u="not";else if(u=="smart"&&(ye=f.mode.indent(g,B.text.slice(J.length),B.text),ye==Qe||ye>150)){if(!l)return;u="prev"}u=="prev"?n>f.first?ye=Je(xt(f,n-1).text,null,P):ye=0:u=="add"?ye=H+e.options.indentUnit:u=="subtract"?ye=H-e.options.indentUnit:typeof u=="number"&&(ye=H+u),ye=Math.max(0,ye);var Se="",Ie=0;if(e.options.indentWithTabs)for(var Ee=Math.floor(ye/P);Ee;--Ee)Ie+=P,Se+=" ";if(Ie<ye&&(Se+=Et(ye-Ie)),Se!=J)return Ca(f,Se,qe(n,0),qe(n,J.length),"+input"),B.stateAfter=null,!0;for(var Ue=0;Ue<f.sel.ranges.length;Ue++){var Ye=f.sel.ranges[Ue];if(Ye.head.line==n&&Ye.head.ch<J.length){var et=qe(n,J.length);as(f,Ue,new tr(et,et));break}}}var Mn=null;function Ao(e){Mn=e}function Rl(e,n,u,l,f){var g=e.doc;e.display.shift=!1,l||(l=g.sel);var P=+new Date-200,B=f=="paste"||e.state.pasteIncoming>P,H=zn(n),J=null;if(B&&l.ranges.length>1)if(Mn&&Mn.text.join(`
25
+ `)==n){if(l.ranges.length%Mn.text.length==0){J=[];for(var ye=0;ye<Mn.text.length;ye++)J.push(g.splitLines(Mn.text[ye]))}}else H.length==l.ranges.length&&e.options.pasteLinesPerSelection&&(J=Ut(H,function(at){return[at]}));for(var Se=e.curOp.updateInput,Ie=l.ranges.length-1;Ie>=0;Ie--){var Ee=l.ranges[Ie],Ue=Ee.from(),Ye=Ee.to();Ee.empty()&&(u&&u>0?Ue=qe(Ue.line,Ue.ch-u):e.state.overwrite&&!B?Ye=qe(Ye.line,Math.min(xt(g,Ye.line).text.length,Ye.ch+St(H).length)):B&&Mn&&Mn.lineWise&&Mn.text.join(`
26
+ `)==H.join(`
27
+ `)&&(Ue=Ye=qe(Ue.line,0)));var et={from:Ue,to:Ye,text:J?J[Ie%J.length]:H,origin:f||(B?"paste":e.state.cutIncoming>P?"cut":"+input")};wa(e.doc,et),ur(e,"inputRead",e,et)}n&&!B&&Of(e,n),cn(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Se),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ef(e,n){var u=e.clipboardData&&e.clipboardData.getData("Text");if(u)return e.preventDefault(),!n.isReadOnly()&&!n.options.disableInput&&$r(n,function(){return Rl(n,u,0,null,"paste")}),!0}function Of(e,n){if(!(!e.options.electricChars||!e.options.smartIndent))for(var u=e.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 g=e.getModeAt(f.head),P=!1;if(g.electricChars){for(var B=0;B<g.electricChars.length;B++)if(n.indexOf(g.electricChars.charAt(B))>-1){P=ka(e,f.head.line,"smart");break}}else g.electricInput&&g.electricInput.test(xt(e.doc,f.head.line).text.slice(0,f.head.ch))&&(P=ka(e,f.head.line,"smart"));P&&ur(e,"electricInput",e,f.head.line)}}}function Tf(e){for(var n=[],u=[],l=0;l<e.doc.sel.ranges.length;l++){var f=e.doc.sel.ranges[l].head.line,g={anchor:qe(f,0),head:qe(f+1,0)};u.push(g),n.push(e.getRange(g.anchor,g.head))}return{text:n,ranges:u}}function wr(e,n,u,l){e.setAttribute("autocorrect",u?"":"off"),e.setAttribute("autocapitalize",l?"":"off"),e.setAttribute("spellcheck",!!n)}function ed(){var e=me("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),n=me("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return S?e.style.width="1000px":e.setAttribute("wrap","off"),M&&(e.style.border="1px solid black"),wr(e),n}function td(e){var n=e.optionHandlers,u=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(l,f){var g=this.options,P=g[l];g[l]==f&&l!="mode"||(g[l]=f,n.hasOwnProperty(l)&&Kr(this,n[l])(this,f,P),te(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"](fs(l))},removeKeyMap:function(l){for(var f=this.state.keyMaps,g=0;g<f.length;++g)if(f[g]==l||f[g].name==l)return f.splice(g,1),!0},addOverlay:Br(function(l,f){var g=l.token?l:e.getMode(this.options,l);if(g.startState)throw new Error("Overlays may not be stateful.");Dt(this.state.overlays,{mode:g,modeSpec:l,opaque:f&&f.opaque,priority:f&&f.priority||0},function(P){return P.priority}),this.state.modeGen++,Nr(this)}),removeOverlay:Br(function(l){for(var f=this.state.overlays,g=0;g<f.length;++g){var P=f[g].modeSpec;if(P==l||typeof l=="string"&&P.name==l){f.splice(g,1),this.state.modeGen++,Nr(this);return}}}),indentLine:Br(function(l,f,g){typeof f!="string"&&typeof f!="number"&&(f==null?f=this.options.smartIndent?"smart":"prev":f=f?"add":"subtract"),ri(this.doc,l)&&ka(this,l,f,g)}),indentSelection:Br(function(l){for(var f=this.doc.sel.ranges,g=-1,P=0;P<f.length;P++){var B=f[P];if(B.empty())B.head.line>g&&(ka(this,B.head.line,l,!0),g=B.head.line,P==this.doc.sel.primIndex&&cn(this));else{var H=B.from(),J=B.to(),ye=Math.max(g,H.line);g=Math.min(this.lastLine(),J.line-(J.ch?0:1))+1;for(var Se=ye;Se<g;++Se)ka(this,Se,l);var Ie=this.doc.sel.ranges;H.ch==0&&f.length==Ie.length&&Ie[P].from().ch>0&&as(this.doc,P,new tr(H,Ie[P].to()),nt)}}}),getTokenAt:function(l,f){return Ds(this,l,f)},getLineTokens:function(l,f){return Ds(this,qe(l),f,!0)},getTokenTypeAt:function(l){l=rt(this.doc,l);var f=uu(this,xt(this.doc,l.line)),g=0,P=(f.length-1)/2,B=l.ch,H;if(B==0)H=f[2];else for(;;){var J=g+P>>1;if((J?f[J*2-1]:0)>=B)P=J;else if(f[J*2+1]<B)g=J+1;else{H=f[J*2+2];break}}var ye=H?H.indexOf("overlay "):-1;return ye<0?H:ye==0?null:H.slice(0,ye-1)},getModeAt:function(l){var f=this.doc.mode;return f.innerMode?e.innerMode(f,this.getTokenAt(l).state).mode:f},getHelper:function(l,f){return this.getHelpers(l,f)[0]},getHelpers:function(l,f){var g=[];if(!u.hasOwnProperty(f))return g;var P=u[f],B=this.getModeAt(l);if(typeof B[f]=="string")P[B[f]]&&g.push(P[B[f]]);else if(B[f])for(var H=0;H<B[f].length;H++){var J=P[B[f][H]];J&&g.push(J)}else B.helperType&&P[B.helperType]?g.push(P[B.helperType]):P[B.name]&&g.push(P[B.name]);for(var ye=0;ye<P._global.length;ye++){var Se=P._global[ye];Se.pred(B,this)&&ft(g,Se.val)==-1&&g.push(Se.val)}return g},getStateAfter:function(l,f){var g=this.doc;return l=tt(g,l==null?g.first+g.size-1:l),un(this,l+1,f).state},cursorCoords:function(l,f){var g,P=this.doc.sel.primary();return l==null?g=P.head:typeof l=="object"?g=rt(this.doc,l):g=l?P.from():P.to(),Xn(this,g,f||"page")},charCoords:function(l,f){return Wo(this,rt(this.doc,l),f||"page")},coordsChar:function(l,f){return l=_a(this,l,f||"page"),tl(this,l.left,l.top)},lineAtHeight:function(l,f){return l=_a(this,{top:l,left:0},f||"page").top,Kn(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,f,g){var P=!1,B;if(typeof l=="number"){var H=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>H&&(l=H,P=!0),B=xt(this.doc,l)}else B=l;return Vo(this,B,{top:0,left:0},f||"page",g||P).top+(P?this.doc.height-pi(B):0)},defaultTextHeight:function(){return ma(this.display)},defaultCharWidth:function(){return Dn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,f,g,P,B){var H=this.display;l=Xn(this,rt(this.doc,l));var J=l.bottom,ye=l.left;if(f.style.position="absolute",f.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(f),H.sizer.appendChild(f),P=="over")J=l.top;else if(P=="above"||P=="near"){var Se=Math.max(H.wrapper.clientHeight,this.doc.height),Ie=Math.max(H.sizer.clientWidth,H.lineSpace.clientWidth);(P=="above"||l.bottom+f.offsetHeight>Se)&&l.top>f.offsetHeight?J=l.top-f.offsetHeight:l.bottom+f.offsetHeight<=Se&&(J=l.bottom),ye+f.offsetWidth>Ie&&(ye=Ie-f.offsetWidth)}f.style.top=J+"px",f.style.left=f.style.right="",B=="right"?(ye=H.sizer.clientWidth-f.offsetWidth,f.style.right="0px"):(B=="left"?ye=0:B=="middle"&&(ye=(H.sizer.clientWidth-f.offsetWidth)/2),f.style.left=ye+"px"),g&&Ru(this,{left:ye,top:J,right:ye+f.offsetWidth,bottom:J+f.offsetHeight})},triggerOnKeyDown:Br(vf),triggerOnKeyPress:Br(Fl),triggerOnKeyUp:gf,triggerOnMouseDown:Br(yf),execCommand:function(l){if(mo.hasOwnProperty(l))return mo[l].call(null,this)},triggerElectric:Br(function(l){Of(this,l)}),findPosH:function(l,f,g,P){var B=1;f<0&&(B=-1,f=-f);for(var H=rt(this.doc,l),J=0;J<f&&(H=jt(this.doc,H,B,g,P),!H.hitSide);++J);return H},moveH:Br(function(l,f){var g=this;this.extendSelectionsBy(function(P){return g.display.shift||g.doc.extend||P.empty()?jt(g.doc,P.head,l,f,g.options.rtlMoveVisually):l<0?P.from():P.to()},dt)}),deleteH:Br(function(l,f){var g=this.doc.sel,P=this.doc;g.somethingSelected()?P.replaceSelection("",null,"+delete"):fa(this,function(B){var H=jt(P,B.head,l,f,!1);return l<0?{from:H,to:B.head}:{from:B.head,to:H}})}),findPosV:function(l,f,g,P){var B=1,H=P;f<0&&(B=-1,f=-f);for(var J=rt(this.doc,l),ye=0;ye<f;++ye){var Se=Xn(this,J,"div");if(H==null?H=Se.left:Se.left=H,J=Lt(this,Se,B,g),J.hitSide)break}return J},moveV:Br(function(l,f){var g=this,P=this.doc,B=[],H=!this.display.shift&&!P.extend&&P.sel.somethingSelected();if(P.extendSelectionsBy(function(ye){if(H)return l<0?ye.from():ye.to();var Se=Xn(g,ye.head,"div");ye.goalColumn!=null&&(Se.left=ye.goalColumn),B.push(Se.left);var Ie=Lt(g,Se,l,f);return f=="page"&&ye==P.sel.primary()&&fl(g,Wo(g,Ie,"div").top-Se.top),Ie},dt),B.length)for(var J=0;J<P.sel.ranges.length;J++)P.sel.ranges[J].goalColumn=B[J]}),findWordAt:function(l){var f=this.doc,g=xt(f,l.line).text,P=l.ch,B=l.ch;if(g){var H=this.getHelper(l,"wordChars");(l.sticky=="before"||B==g.length)&&P?--P:++B;for(var J=g.charAt(P),ye=zt(J,H)?function(Se){return zt(Se,H)}:/\s/.test(J)?function(Se){return/\s/.test(Se)}:function(Se){return!/\s/.test(Se)&&!zt(Se)};P>0&&ye(g.charAt(P-1));)--P;for(;B<g.length&&ye(g.charAt(B));)++B}return new tr(qe(l.line,P),qe(l.line,B))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Pe(this.display.cursorDiv,"CodeMirror-overwrite"):q(this.display.cursorDiv,"CodeMirror-overwrite"),te(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Oe()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Br(function(l,f){ro(this,l,f)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-vi(this)-this.display.barHeight,width:l.scrollWidth-vi(this)-this.display.barWidth,clientHeight:Xa(this),clientWidth:Zi(this)}},scrollIntoView:Br(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:qe(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?ra(this,l):Du(this,l.from,l.to,l.margin)}),setSize:Br(function(l,f){var g=this,P=function(H){return typeof H=="number"||/^\d+$/.test(String(H))?H+"px":H};l!=null&&(this.display.wrapper.style.width=P(l)),f!=null&&(this.display.wrapper.style.height=P(f)),this.options.lineWrapping&&qi(this);var B=this.display.viewFrom;this.doc.iter(B,this.display.viewTo,function(H){if(H.widgets){for(var J=0;J<H.widgets.length;J++)if(H.widgets[J].noHScroll){ii(g,B,"widget");break}}++B}),this.curOp.forceUpdate=!0,te(this,"refresh",this)}),operation:function(l){return $r(this,l)},startOperation:function(){return Ri(this)},endOperation:function(){return Di(this)},refresh:Br(function(){var l=this.display.cachedTextHeight;Nr(this),this.curOp.forceUpdate=!0,Qa(this),ro(this,this.doc.scrollLeft,this.doc.scrollTop),vl(this.display),(l==null||Math.abs(l-ma(this.display))>.5||this.options.lineWrapping)&&il(this),te(this,"refresh",this)}),swapDoc:Br(function(l){var f=this.doc;return f.cm=null,this.state.selectingText&&this.state.selectingText(),Yu(this,l),Qa(this),this.display.input.reset(),ro(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,ur(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}},Re(e),e.registerHelper=function(l,f,g){u.hasOwnProperty(l)||(u[l]=e[l]={_global:[]}),u[l][f]=g},e.registerGlobalHelper=function(l,f,g,P){e.registerHelper(l,f,P),u[l]._global.push({pred:g,val:P})}}function jt(e,n,u,l,f){var g=n,P=u,B=xt(e,n.line),H=f&&e.direction=="rtl"?-u:u;function J(){var lt=n.line+H;return lt<e.first||lt>=e.first+e.size?!1:(n=new qe(lt,n.ch,n.sticky),B=xt(e,lt))}function ye(lt){var it;if(l=="codepoint"){var pt=B.text.charCodeAt(n.ch+(u>0?0:-1));if(isNaN(pt))it=null;else{var wt=u>0?pt>=55296&&pt<56320:pt>=56320&&pt<57343;it=new qe(n.line,Math.max(0,Math.min(B.text.length,n.ch+u*(wt?2:1))),-u)}}else f?it=pf(e.cm,B,n,u):it=ds(B,n,u);if(it==null)if(!lt&&J())n=Il(f,e.cm,B,n.line,H);else return!1;else n=it;return!0}if(l=="char"||l=="codepoint")ye();else if(l=="column")ye(!0);else if(l=="word"||l=="group")for(var Se=null,Ie=l=="group",Ee=e.cm&&e.cm.getHelper(n,"wordChars"),Ue=!0;!(u<0&&!ye(!Ue));Ue=!1){var Ye=B.text.charAt(n.ch)||`
28
28
  `,et=zt(Ye,Ee)?"w":Ie&&Ye==`
29
- `?"n":!Ie||/\s/.test(Ye)?null:"p";if(Ie&&!Ue&&!et&&(et="s"),Se&&Se!=et){u<0&&(u=1,ye(),n.sticky="after");break}if(et&&(Se=et),u>0&&!ye(!Ue))break}var at=co(e,n,y,P,!0);return ci(y,at)&&(at.hitSide=!0),at}function Lt(e,n,u,l){var f=e.doc,y=n.left,P;if(l=="page"){var B=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),W=Math.max(B-.5*ma(e.display),3);P=(u>0?n.bottom:n.top)+u*W}else l=="line"&&(P=u>0?n.bottom+3:n.top-3);for(var J;J=tl(e,y,P),!!J.outside;){if(u<0?P<=0:P>=f.height){J.hitSide=!0;break}P+=u*5}return J}var ar=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ut,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ar.prototype.init=function(e){var n=this,u=this,l=u.cm,f=u.div=e.lineDiv;f.contentEditable=!0,wr(f,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function y(B){for(var W=B.target;W;W=W.parentNode){if(W==f)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(W.className))break}return!1}D(f,"paste",function(B){!y(B)||ce(l,B)||Ef(B,l)||C<=11&&setTimeout(Kr(l,function(){return n.updateFromDOM()}),20)}),D(f,"compositionstart",function(B){n.composing={data:B.data,done:!1}}),D(f,"compositionupdate",function(B){n.composing||(n.composing={data:B.data,done:!1})}),D(f,"compositionend",function(B){n.composing&&(B.data!=n.composing.data&&n.readFromDOMSoon(),n.composing.done=!0)}),D(f,"touchstart",function(){return u.forceCompositionEnd()}),D(f,"input",function(){n.composing||n.readFromDOMSoon()});function P(B){if(!(!y(B)||ce(l,B))){if(l.somethingSelected())Ao({lineWise:!1,text:l.getSelections()}),B.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var W=Tf(l);Ao({lineWise:!0,text:W.text}),B.type=="cut"&&l.operation(function(){l.setSelections(W.ranges,0,nt),l.replaceSelection("",null,"cut")})}else return;if(B.clipboardData){B.clipboardData.clearData();var J=Mn.text.join(`
29
+ `?"n":!Ie||/\s/.test(Ye)?null:"p";if(Ie&&!Ue&&!et&&(et="s"),Se&&Se!=et){u<0&&(u=1,ye(),n.sticky="after");break}if(et&&(Se=et),u>0&&!ye(!Ue))break}var at=co(e,n,g,P,!0);return ci(g,at)&&(at.hitSide=!0),at}function Lt(e,n,u,l){var f=e.doc,g=n.left,P;if(l=="page"){var B=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),H=Math.max(B-.5*ma(e.display),3);P=(u>0?n.bottom:n.top)+u*H}else l=="line"&&(P=u>0?n.bottom+3:n.top-3);for(var J;J=tl(e,g,P),!!J.outside;){if(u<0?P<=0:P>=f.height){J.hitSide=!0;break}P+=u*5}return J}var ar=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ut,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ar.prototype.init=function(e){var n=this,u=this,l=u.cm,f=u.div=e.lineDiv;f.contentEditable=!0,wr(f,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function g(B){for(var H=B.target;H;H=H.parentNode){if(H==f)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(H.className))break}return!1}D(f,"paste",function(B){!g(B)||ce(l,B)||Ef(B,l)||C<=11&&setTimeout(Kr(l,function(){return n.updateFromDOM()}),20)}),D(f,"compositionstart",function(B){n.composing={data:B.data,done:!1}}),D(f,"compositionupdate",function(B){n.composing||(n.composing={data:B.data,done:!1})}),D(f,"compositionend",function(B){n.composing&&(B.data!=n.composing.data&&n.readFromDOMSoon(),n.composing.done=!0)}),D(f,"touchstart",function(){return u.forceCompositionEnd()}),D(f,"input",function(){n.composing||n.readFromDOMSoon()});function P(B){if(!(!g(B)||ce(l,B))){if(l.somethingSelected())Ao({lineWise:!1,text:l.getSelections()}),B.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var H=Tf(l);Ao({lineWise:!0,text:H.text}),B.type=="cut"&&l.operation(function(){l.setSelections(H.ranges,0,nt),l.replaceSelection("",null,"cut")})}else return;if(B.clipboardData){B.clipboardData.clearData();var J=Mn.text.join(`
30
30
  `);if(B.clipboardData.setData("Text",J),B.clipboardData.getData("Text")==J){B.preventDefault();return}}var ye=ed(),Se=ye.firstChild;l.display.lineSpace.insertBefore(ye,l.display.lineSpace.firstChild),Se.value=Mn.text.join(`
31
- `);var Ie=Oe();Ce(Se),setTimeout(function(){l.display.lineSpace.removeChild(ye),Ie.focus(),Ie==f&&u.showPrimarySelection()},50)}}D(f,"copy",P),D(f,"cut",P)},ar.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},ar.prototype.prepareSelection=function(){var e=Go(this.cm,!1);return e.focus=Oe()==this.div,e},ar.prototype.showSelection=function(e,n){!e||!this.cm.display.view.length||((e.focus||n)&&this.showPrimarySelection(),this.showMultipleSelections(e))},ar.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ar.prototype.showPrimarySelection=function(){var e=this.getSelection(),n=this.cm,u=n.doc.sel.primary(),l=u.from(),f=u.to();if(n.display.viewTo==n.display.viewFrom||l.line>=n.display.viewTo||f.line<n.display.viewFrom){e.removeAllRanges();return}var y=xs(n,e.anchorNode,e.anchorOffset),P=xs(n,e.focusNode,e.focusOffset);if(!(y&&!y.bad&&P&&!P.bad&&Pt(Ge(y,P),l)==0&&Pt(Ae(y,P),f)==0)){var B=n.display.view,W=l.line>=n.display.viewFrom&&Ma(n,l)||{node:B[0].measure.map[2],offset:0},J=f.line<n.display.viewTo&&Ma(n,f);if(!J){var ye=B[B.length-1].measure,Se=ye.maps?ye.maps[ye.maps.length-1]:ye.map;J={node:Se[Se.length-1],offset:Se[Se.length-2]-Se[Se.length-3]}}if(!W||!J){e.removeAllRanges();return}var Ie=e.rangeCount&&e.getRangeAt(0),Ee;try{Ee=le(W.node,W.offset,J.offset,J.node)}catch(Ue){}Ee&&(!c&&n.state.focused?(e.collapse(W.node,W.offset),Ee.collapsed||(e.removeAllRanges(),e.addRange(Ee))):(e.removeAllRanges(),e.addRange(Ee)),Ie&&e.anchorNode==null?e.addRange(Ie):c&&this.startGracePeriod()),this.rememberSelection()}},ar.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},ar.prototype.showMultipleSelections=function(e){ge(this.cm.display.cursorDiv,e.cursors),ge(this.cm.display.selectionDiv,e.selection)},ar.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},ar.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var n=e.getRangeAt(0).commonAncestorContainer;return ie(this.div,n)},ar.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Oe()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ar.prototype.blur=function(){this.div.blur()},ar.prototype.getField=function(){return this.div},ar.prototype.supportsTouch=function(){return!0},ar.prototype.receivedFocus=function(){var e=this,n=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):$r(this.cm,function(){return n.cm.curOp.selectionChanged=!0});function u(){n.cm.state.focused&&(n.pollSelection(),n.polling.set(n.cm.options.pollInterval,u))}this.polling.set(this.cm.options.pollInterval,u)},ar.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},ar.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),n=this.cm;if(Y&&N&&this.cm.display.gutterSpecs.length&&Ui(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var u=xs(n,e.anchorNode,e.anchorOffset),l=xs(n,e.focusNode,e.focusOffset);u&&l&&$r(n,function(){nn(n.doc,Ni(u,l),nt),(u.bad||l.bad)&&(n.curOp.selectionChanged=!0)})}}},ar.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,n=e.display,u=e.doc.sel.primary(),l=u.from(),f=u.to();if(l.ch==0&&l.line>e.firstLine()&&(l=qe(l.line-1,xt(e.doc,l.line-1).length)),f.ch==xt(e.doc,f.line).text.length&&f.line<e.lastLine()&&(f=qe(f.line+1,0)),l.line<n.viewFrom||f.line>n.viewTo-1)return!1;var y,P,B;l.line==n.viewFrom||(y=ta(e,l.line))==0?(P=qt(n.view[0].line),B=n.view[0].node):(P=qt(n.view[y].line),B=n.view[y-1].node.nextSibling);var W=ta(e,f.line),J,ye;if(W==n.view.length-1?(J=n.viewTo-1,ye=n.lineDiv.lastChild):(J=qt(n.view[W+1].line)-1,ye=n.view[W+1].node.previousSibling),!B)return!1;for(var Se=e.doc.splitLines(Vi(e,B,ye,P,J)),Ie=fi(e.doc,qe(P,0),qe(J,xt(e.doc,J).text.length));Se.length>1&&Ie.length>1;)if(St(Se)==St(Ie))Se.pop(),Ie.pop(),J--;else if(Se[0]==Ie[0])Se.shift(),Ie.shift(),P++;else break;for(var Ee=0,Ue=0,Ye=Se[0],et=Ie[0],at=Math.min(Ye.length,et.length);Ee<at&&Ye.charCodeAt(Ee)==et.charCodeAt(Ee);)++Ee;for(var lt=St(Se),it=St(Ie),pt=Math.min(lt.length-(Se.length==1?Ee:0),it.length-(Ie.length==1?Ee:0));Ue<pt&&lt.charCodeAt(lt.length-Ue-1)==it.charCodeAt(it.length-Ue-1);)++Ue;if(Se.length==1&&Ie.length==1&&P==l.line)for(;Ee&&Ee>l.ch&&lt.charCodeAt(lt.length-Ue-1)==it.charCodeAt(it.length-Ue-1);)Ee--,Ue++;Se[Se.length-1]=lt.slice(0,lt.length-Ue).replace(/^\u200b+/,""),Se[0]=Se[0].slice(Ee).replace(/\u200b+$/,"");var wt=qe(P,Ee),$e=qe(J,Ie.length?St(Ie).length-Ue:0);if(Se.length>1||Se[0]||Pt(wt,$e))return Ca(e.doc,Se,wt,$e,"+input"),!0},ar.prototype.ensurePolled=function(){this.forceCompositionEnd()},ar.prototype.reset=function(){this.forceCompositionEnd()},ar.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ar.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},ar.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&$r(this.cm,function(){return Nr(e.cm)})},ar.prototype.setUneditable=function(e){e.contentEditable="false"},ar.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Kr(this.cm,Rl)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},ar.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},ar.prototype.onContextMenu=function(){},ar.prototype.resetPosition=function(){},ar.prototype.needsContentAttribute=!0;function Ma(e,n){var u=Qs(e,n.line);if(!u||u.hidden)return null;var l=xt(e.doc,n.line),f=Xs(u,l,n.line),y=T(l,e.doc.direction),P="left";if(y){var B=$(y,n.ch);P=B%2?"right":"left"}var W=Zs(f.map,n.ch,P);return W.offset=W.collapse=="right"?W.end:W.start,W}function Ui(e){for(var n=e;n;n=n.parentNode)if(/CodeMirror-gutter-wrapper/.test(n.className))return!0;return!1}function ca(e,n){return n&&(e.bad=!0),e}function Vi(e,n,u,l,f){var y="",P=!1,B=e.doc.lineSeparator(),W=!1;function J(Ee){return function(Ue){return Ue.id==Ee}}function ye(){P&&(y+=B,W&&(y+=B),P=W=!1)}function Se(Ee){Ee&&(ye(),y+=Ee)}function Ie(Ee){if(Ee.nodeType==1){var Ue=Ee.getAttribute("cm-text");if(Ue){Se(Ue);return}var Ye=Ee.getAttribute("cm-marker"),et;if(Ye){var at=e.findMarks(qe(l,0),qe(f+1,0),J(+Ye));at.length&&(et=at[0].find(0))&&Se(fi(e.doc,et.from,et.to).join(B));return}if(Ee.getAttribute("contenteditable")=="false")return;var lt=/^(pre|div|p|li|table|br)$/i.test(Ee.nodeName);if(!/^br$/i.test(Ee.nodeName)&&Ee.textContent.length==0)return;lt&&ye();for(var it=0;it<Ee.childNodes.length;it++)Ie(Ee.childNodes[it]);/^(pre|p)$/i.test(Ee.nodeName)&&(W=!0),lt&&(P=!0)}else Ee.nodeType==3&&Se(Ee.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Ie(n),n!=u;)n=n.nextSibling,W=!1;return y}function xs(e,n,u){var l;if(n==e.display.lineDiv){if(l=e.display.lineDiv.childNodes[u],!l)return ca(e.clipPos(qe(e.display.viewTo-1)),!0);n=null,u=0}else for(l=n;;l=l.parentNode){if(!l||l==e.display.lineDiv)return null;if(l.parentNode&&l.parentNode==e.display.lineDiv)break}for(var f=0;f<e.display.view.length;f++){var y=e.display.view[f];if(y.node==l)return rd(y,n,u)}}function rd(e,n,u){var l=e.text.firstChild,f=!1;if(!n||!ie(l,n))return ca(qe(qt(e.line),0),!0);if(n==l&&(f=!0,n=l.childNodes[u],u=0,!n)){var y=e.rest?St(e.rest):e.line;return ca(qe(qt(y),y.text.length),f)}var P=n.nodeType==3?n:null,B=n;for(!P&&n.childNodes.length==1&&n.firstChild.nodeType==3&&(P=n.firstChild,u&&(u=P.nodeValue.length));B.parentNode!=l;)B=B.parentNode;var W=e.measure,J=W.maps;function ye(et,at,lt){for(var it=-1;it<(J?J.length:0);it++)for(var pt=it<0?W.map:J[it],wt=0;wt<pt.length;wt+=3){var $e=pt[wt+2];if($e==et||$e==at){var Tt=qt(it<0?e.line:e.rest[it]),nr=pt[wt]+lt;return(lt<0||$e!=et)&&(nr=pt[wt+(lt?1:0)]),qe(Tt,nr)}}}var Se=ye(P,B,u);if(Se)return ca(Se,f);for(var Ie=B.nextSibling,Ee=P?P.nodeValue.length-u:0;Ie;Ie=Ie.nextSibling){if(Se=ye(Ie,Ie.firstChild,0),Se)return ca(qe(Se.line,Se.ch-Ee),f);Ee+=Ie.textContent.length}for(var Ue=B.previousSibling,Ye=u;Ue;Ue=Ue.previousSibling){if(Se=ye(Ue,Ue.firstChild,-1),Se)return ca(qe(Se.line,Se.ch+Ye),f);Ye+=Ue.textContent.length}}var Or=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new ut,this.hasSelection=!1,this.composing=null};Or.prototype.init=function(e){var n=this,u=this,l=this.cm;this.createField(e);var f=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),M&&(f.style.width="0px"),D(f,"input",function(){b&&C>=9&&n.hasSelection&&(n.hasSelection=null),u.poll()}),D(f,"paste",function(P){ce(l,P)||Ef(P,l)||(l.state.pasteIncoming=+new Date,u.fastPoll())});function y(P){if(!ce(l,P)){if(l.somethingSelected())Ao({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var B=Tf(l);Ao({lineWise:!0,text:B.text}),P.type=="cut"?l.setSelections(B.ranges,null,nt):(u.prevInput="",f.value=B.text.join(`
32
- `),Ce(f))}else return;P.type=="cut"&&(l.state.cutIncoming=+new Date)}}D(f,"cut",y),D(f,"copy",y),D(e.scroller,"paste",function(P){if(!(hi(e,P)||ce(l,P))){if(!f.dispatchEvent){l.state.pasteIncoming=+new Date,u.focus();return}var B=new Event("paste");B.clipboardData=P.clipboardData,f.dispatchEvent(B)}}),D(e.lineSpace,"selectstart",function(P){hi(e,P)||We(P)}),D(f,"compositionstart",function(){var P=l.getCursor("from");u.composing&&u.composing.range.clear(),u.composing={start:P,range:l.markText(P,l.getCursor("to"),{className:"CodeMirror-composing"})}}),D(f,"compositionend",function(){u.composing&&(u.poll(),u.composing.range.clear(),u.composing=null)})},Or.prototype.createField=function(e){this.wrapper=ed(),this.textarea=this.wrapper.firstChild},Or.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Or.prototype.prepareSelection=function(){var e=this.cm,n=e.display,u=e.doc,l=Go(e);if(e.options.moveInputWithCursor){var f=Xn(e,u.sel.primary().head,"div"),y=n.wrapper.getBoundingClientRect(),P=n.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(n.wrapper.clientHeight-10,f.top+P.top-y.top)),l.teLeft=Math.max(0,Math.min(n.wrapper.clientWidth-10,f.left+P.left-y.left))}return l},Or.prototype.showSelection=function(e){var n=this.cm,u=n.display;ge(u.cursorDiv,e.cursors),ge(u.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Or.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing)){var n=this.cm;if(n.somethingSelected()){this.prevInput="";var u=n.getSelection();this.textarea.value=u,n.state.focused&&Ce(this.textarea),b&&C>=9&&(this.hasSelection=u)}else e||(this.prevInput=this.textarea.value="",b&&C>=9&&(this.hasSelection=null))}},Or.prototype.getField=function(){return this.textarea},Or.prototype.supportsTouch=function(){return!1},Or.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!R||Oe()!=this.textarea))try{this.textarea.focus()}catch(e){}},Or.prototype.blur=function(){this.textarea.blur()},Or.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Or.prototype.receivedFocus=function(){this.slowPoll()},Or.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Or.prototype.fastPoll=function(){var e=!1,n=this;n.pollingFast=!0;function u(){var l=n.poll();!l&&!e?(e=!0,n.polling.set(60,u)):(n.pollingFast=!1,n.slowPoll())}n.polling.set(20,u)},Or.prototype.poll=function(){var e=this,n=this.cm,u=this.textarea,l=this.prevInput;if(this.contextMenuPending||!n.state.focused||Sn(u)&&!l&&!this.composing||n.isReadOnly()||n.options.disableInput||n.state.keySeq)return!1;var f=u.value;if(f==l&&!n.somethingSelected())return!1;if(b&&C>=9&&this.hasSelection===f||E&&/[\uf700-\uf7ff]/.test(f))return n.display.input.reset(),!1;if(n.doc.sel==n.display.selForContextMenu){var y=f.charCodeAt(0);if(y==8203&&!l&&(l="\u200B"),y==8666)return this.reset(),this.cm.execCommand("undo")}for(var P=0,B=Math.min(l.length,f.length);P<B&&l.charCodeAt(P)==f.charCodeAt(P);)++P;return $r(n,function(){Rl(n,f.slice(P),l.length-P,null,e.composing?"*compose":null),f.length>1e3||f.indexOf(`
33
- `)>-1?u.value=e.prevInput="":e.prevInput=f,e.composing&&(e.composing.range.clear(),e.composing.range=n.markText(e.composing.start,n.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Or.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Or.prototype.onKeyPress=function(){b&&C>=9&&(this.hasSelection=null),this.fastPoll()},Or.prototype.onContextMenu=function(e){var n=this,u=n.cm,l=u.display,f=n.textarea;n.contextMenuPending&&n.contextMenuPending();var y=ea(u,e),P=l.scroller.scrollTop;if(!y||j)return;var B=u.options.resetSelectionOnContextMenu;B&&u.doc.sel.contains(y)==-1&&Kr(u,nn)(u.doc,Ni(y),nt);var W=f.style.cssText,J=n.wrapper.style.cssText,ye=n.wrapper.offsetParent.getBoundingClientRect();n.wrapper.style.cssText="position: static",f.style.cssText=`position: absolute; width: 30px; height: 30px;
31
+ `);var Ie=Oe();Ce(Se),setTimeout(function(){l.display.lineSpace.removeChild(ye),Ie.focus(),Ie==f&&u.showPrimarySelection()},50)}}D(f,"copy",P),D(f,"cut",P)},ar.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},ar.prototype.prepareSelection=function(){var e=Go(this.cm,!1);return e.focus=Oe()==this.div,e},ar.prototype.showSelection=function(e,n){!e||!this.cm.display.view.length||((e.focus||n)&&this.showPrimarySelection(),this.showMultipleSelections(e))},ar.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ar.prototype.showPrimarySelection=function(){var e=this.getSelection(),n=this.cm,u=n.doc.sel.primary(),l=u.from(),f=u.to();if(n.display.viewTo==n.display.viewFrom||l.line>=n.display.viewTo||f.line<n.display.viewFrom){e.removeAllRanges();return}var g=xs(n,e.anchorNode,e.anchorOffset),P=xs(n,e.focusNode,e.focusOffset);if(!(g&&!g.bad&&P&&!P.bad&&Pt(Ge(g,P),l)==0&&Pt(Ae(g,P),f)==0)){var B=n.display.view,H=l.line>=n.display.viewFrom&&Ma(n,l)||{node:B[0].measure.map[2],offset:0},J=f.line<n.display.viewTo&&Ma(n,f);if(!J){var ye=B[B.length-1].measure,Se=ye.maps?ye.maps[ye.maps.length-1]:ye.map;J={node:Se[Se.length-1],offset:Se[Se.length-2]-Se[Se.length-3]}}if(!H||!J){e.removeAllRanges();return}var Ie=e.rangeCount&&e.getRangeAt(0),Ee;try{Ee=se(H.node,H.offset,J.offset,J.node)}catch(Ue){}Ee&&(!c&&n.state.focused?(e.collapse(H.node,H.offset),Ee.collapsed||(e.removeAllRanges(),e.addRange(Ee))):(e.removeAllRanges(),e.addRange(Ee)),Ie&&e.anchorNode==null?e.addRange(Ie):c&&this.startGracePeriod()),this.rememberSelection()}},ar.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},ar.prototype.showMultipleSelections=function(e){ge(this.cm.display.cursorDiv,e.cursors),ge(this.cm.display.selectionDiv,e.selection)},ar.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},ar.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var n=e.getRangeAt(0).commonAncestorContainer;return ie(this.div,n)},ar.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Oe()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ar.prototype.blur=function(){this.div.blur()},ar.prototype.getField=function(){return this.div},ar.prototype.supportsTouch=function(){return!0},ar.prototype.receivedFocus=function(){var e=this,n=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):$r(this.cm,function(){return n.cm.curOp.selectionChanged=!0});function u(){n.cm.state.focused&&(n.pollSelection(),n.polling.set(n.cm.options.pollInterval,u))}this.polling.set(this.cm.options.pollInterval,u)},ar.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},ar.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),n=this.cm;if(Y&&N&&this.cm.display.gutterSpecs.length&&Ui(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var u=xs(n,e.anchorNode,e.anchorOffset),l=xs(n,e.focusNode,e.focusOffset);u&&l&&$r(n,function(){nn(n.doc,Ni(u,l),nt),(u.bad||l.bad)&&(n.curOp.selectionChanged=!0)})}}},ar.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,n=e.display,u=e.doc.sel.primary(),l=u.from(),f=u.to();if(l.ch==0&&l.line>e.firstLine()&&(l=qe(l.line-1,xt(e.doc,l.line-1).length)),f.ch==xt(e.doc,f.line).text.length&&f.line<e.lastLine()&&(f=qe(f.line+1,0)),l.line<n.viewFrom||f.line>n.viewTo-1)return!1;var g,P,B;l.line==n.viewFrom||(g=ta(e,l.line))==0?(P=qt(n.view[0].line),B=n.view[0].node):(P=qt(n.view[g].line),B=n.view[g-1].node.nextSibling);var H=ta(e,f.line),J,ye;if(H==n.view.length-1?(J=n.viewTo-1,ye=n.lineDiv.lastChild):(J=qt(n.view[H+1].line)-1,ye=n.view[H+1].node.previousSibling),!B)return!1;for(var Se=e.doc.splitLines(Vi(e,B,ye,P,J)),Ie=fi(e.doc,qe(P,0),qe(J,xt(e.doc,J).text.length));Se.length>1&&Ie.length>1;)if(St(Se)==St(Ie))Se.pop(),Ie.pop(),J--;else if(Se[0]==Ie[0])Se.shift(),Ie.shift(),P++;else break;for(var Ee=0,Ue=0,Ye=Se[0],et=Ie[0],at=Math.min(Ye.length,et.length);Ee<at&&Ye.charCodeAt(Ee)==et.charCodeAt(Ee);)++Ee;for(var lt=St(Se),it=St(Ie),pt=Math.min(lt.length-(Se.length==1?Ee:0),it.length-(Ie.length==1?Ee:0));Ue<pt&&lt.charCodeAt(lt.length-Ue-1)==it.charCodeAt(it.length-Ue-1);)++Ue;if(Se.length==1&&Ie.length==1&&P==l.line)for(;Ee&&Ee>l.ch&&lt.charCodeAt(lt.length-Ue-1)==it.charCodeAt(it.length-Ue-1);)Ee--,Ue++;Se[Se.length-1]=lt.slice(0,lt.length-Ue).replace(/^\u200b+/,""),Se[0]=Se[0].slice(Ee).replace(/\u200b+$/,"");var wt=qe(P,Ee),$e=qe(J,Ie.length?St(Ie).length-Ue:0);if(Se.length>1||Se[0]||Pt(wt,$e))return Ca(e.doc,Se,wt,$e,"+input"),!0},ar.prototype.ensurePolled=function(){this.forceCompositionEnd()},ar.prototype.reset=function(){this.forceCompositionEnd()},ar.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ar.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},ar.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&$r(this.cm,function(){return Nr(e.cm)})},ar.prototype.setUneditable=function(e){e.contentEditable="false"},ar.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Kr(this.cm,Rl)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},ar.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},ar.prototype.onContextMenu=function(){},ar.prototype.resetPosition=function(){},ar.prototype.needsContentAttribute=!0;function Ma(e,n){var u=Qs(e,n.line);if(!u||u.hidden)return null;var l=xt(e.doc,n.line),f=Xs(u,l,n.line),g=T(l,e.doc.direction),P="left";if(g){var B=$(g,n.ch);P=B%2?"right":"left"}var H=Zs(f.map,n.ch,P);return H.offset=H.collapse=="right"?H.end:H.start,H}function Ui(e){for(var n=e;n;n=n.parentNode)if(/CodeMirror-gutter-wrapper/.test(n.className))return!0;return!1}function ca(e,n){return n&&(e.bad=!0),e}function Vi(e,n,u,l,f){var g="",P=!1,B=e.doc.lineSeparator(),H=!1;function J(Ee){return function(Ue){return Ue.id==Ee}}function ye(){P&&(g+=B,H&&(g+=B),P=H=!1)}function Se(Ee){Ee&&(ye(),g+=Ee)}function Ie(Ee){if(Ee.nodeType==1){var Ue=Ee.getAttribute("cm-text");if(Ue){Se(Ue);return}var Ye=Ee.getAttribute("cm-marker"),et;if(Ye){var at=e.findMarks(qe(l,0),qe(f+1,0),J(+Ye));at.length&&(et=at[0].find(0))&&Se(fi(e.doc,et.from,et.to).join(B));return}if(Ee.getAttribute("contenteditable")=="false")return;var lt=/^(pre|div|p|li|table|br)$/i.test(Ee.nodeName);if(!/^br$/i.test(Ee.nodeName)&&Ee.textContent.length==0)return;lt&&ye();for(var it=0;it<Ee.childNodes.length;it++)Ie(Ee.childNodes[it]);/^(pre|p)$/i.test(Ee.nodeName)&&(H=!0),lt&&(P=!0)}else Ee.nodeType==3&&Se(Ee.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Ie(n),n!=u;)n=n.nextSibling,H=!1;return g}function xs(e,n,u){var l;if(n==e.display.lineDiv){if(l=e.display.lineDiv.childNodes[u],!l)return ca(e.clipPos(qe(e.display.viewTo-1)),!0);n=null,u=0}else for(l=n;;l=l.parentNode){if(!l||l==e.display.lineDiv)return null;if(l.parentNode&&l.parentNode==e.display.lineDiv)break}for(var f=0;f<e.display.view.length;f++){var g=e.display.view[f];if(g.node==l)return rd(g,n,u)}}function rd(e,n,u){var l=e.text.firstChild,f=!1;if(!n||!ie(l,n))return ca(qe(qt(e.line),0),!0);if(n==l&&(f=!0,n=l.childNodes[u],u=0,!n)){var g=e.rest?St(e.rest):e.line;return ca(qe(qt(g),g.text.length),f)}var P=n.nodeType==3?n:null,B=n;for(!P&&n.childNodes.length==1&&n.firstChild.nodeType==3&&(P=n.firstChild,u&&(u=P.nodeValue.length));B.parentNode!=l;)B=B.parentNode;var H=e.measure,J=H.maps;function ye(et,at,lt){for(var it=-1;it<(J?J.length:0);it++)for(var pt=it<0?H.map:J[it],wt=0;wt<pt.length;wt+=3){var $e=pt[wt+2];if($e==et||$e==at){var Tt=qt(it<0?e.line:e.rest[it]),nr=pt[wt]+lt;return(lt<0||$e!=et)&&(nr=pt[wt+(lt?1:0)]),qe(Tt,nr)}}}var Se=ye(P,B,u);if(Se)return ca(Se,f);for(var Ie=B.nextSibling,Ee=P?P.nodeValue.length-u:0;Ie;Ie=Ie.nextSibling){if(Se=ye(Ie,Ie.firstChild,0),Se)return ca(qe(Se.line,Se.ch-Ee),f);Ee+=Ie.textContent.length}for(var Ue=B.previousSibling,Ye=u;Ue;Ue=Ue.previousSibling){if(Se=ye(Ue,Ue.firstChild,-1),Se)return ca(qe(Se.line,Se.ch+Ye),f);Ye+=Ue.textContent.length}}var Or=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new ut,this.hasSelection=!1,this.composing=null};Or.prototype.init=function(e){var n=this,u=this,l=this.cm;this.createField(e);var f=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),M&&(f.style.width="0px"),D(f,"input",function(){b&&C>=9&&n.hasSelection&&(n.hasSelection=null),u.poll()}),D(f,"paste",function(P){ce(l,P)||Ef(P,l)||(l.state.pasteIncoming=+new Date,u.fastPoll())});function g(P){if(!ce(l,P)){if(l.somethingSelected())Ao({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var B=Tf(l);Ao({lineWise:!0,text:B.text}),P.type=="cut"?l.setSelections(B.ranges,null,nt):(u.prevInput="",f.value=B.text.join(`
32
+ `),Ce(f))}else return;P.type=="cut"&&(l.state.cutIncoming=+new Date)}}D(f,"cut",g),D(f,"copy",g),D(e.scroller,"paste",function(P){if(!(hi(e,P)||ce(l,P))){if(!f.dispatchEvent){l.state.pasteIncoming=+new Date,u.focus();return}var B=new Event("paste");B.clipboardData=P.clipboardData,f.dispatchEvent(B)}}),D(e.lineSpace,"selectstart",function(P){hi(e,P)||We(P)}),D(f,"compositionstart",function(){var P=l.getCursor("from");u.composing&&u.composing.range.clear(),u.composing={start:P,range:l.markText(P,l.getCursor("to"),{className:"CodeMirror-composing"})}}),D(f,"compositionend",function(){u.composing&&(u.poll(),u.composing.range.clear(),u.composing=null)})},Or.prototype.createField=function(e){this.wrapper=ed(),this.textarea=this.wrapper.firstChild},Or.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Or.prototype.prepareSelection=function(){var e=this.cm,n=e.display,u=e.doc,l=Go(e);if(e.options.moveInputWithCursor){var f=Xn(e,u.sel.primary().head,"div"),g=n.wrapper.getBoundingClientRect(),P=n.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(n.wrapper.clientHeight-10,f.top+P.top-g.top)),l.teLeft=Math.max(0,Math.min(n.wrapper.clientWidth-10,f.left+P.left-g.left))}return l},Or.prototype.showSelection=function(e){var n=this.cm,u=n.display;ge(u.cursorDiv,e.cursors),ge(u.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Or.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing)){var n=this.cm;if(n.somethingSelected()){this.prevInput="";var u=n.getSelection();this.textarea.value=u,n.state.focused&&Ce(this.textarea),b&&C>=9&&(this.hasSelection=u)}else e||(this.prevInput=this.textarea.value="",b&&C>=9&&(this.hasSelection=null))}},Or.prototype.getField=function(){return this.textarea},Or.prototype.supportsTouch=function(){return!1},Or.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!R||Oe()!=this.textarea))try{this.textarea.focus()}catch(e){}},Or.prototype.blur=function(){this.textarea.blur()},Or.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Or.prototype.receivedFocus=function(){this.slowPoll()},Or.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Or.prototype.fastPoll=function(){var e=!1,n=this;n.pollingFast=!0;function u(){var l=n.poll();!l&&!e?(e=!0,n.polling.set(60,u)):(n.pollingFast=!1,n.slowPoll())}n.polling.set(20,u)},Or.prototype.poll=function(){var e=this,n=this.cm,u=this.textarea,l=this.prevInput;if(this.contextMenuPending||!n.state.focused||Sn(u)&&!l&&!this.composing||n.isReadOnly()||n.options.disableInput||n.state.keySeq)return!1;var f=u.value;if(f==l&&!n.somethingSelected())return!1;if(b&&C>=9&&this.hasSelection===f||E&&/[\uf700-\uf7ff]/.test(f))return n.display.input.reset(),!1;if(n.doc.sel==n.display.selForContextMenu){var g=f.charCodeAt(0);if(g==8203&&!l&&(l="\u200B"),g==8666)return this.reset(),this.cm.execCommand("undo")}for(var P=0,B=Math.min(l.length,f.length);P<B&&l.charCodeAt(P)==f.charCodeAt(P);)++P;return $r(n,function(){Rl(n,f.slice(P),l.length-P,null,e.composing?"*compose":null),f.length>1e3||f.indexOf(`
33
+ `)>-1?u.value=e.prevInput="":e.prevInput=f,e.composing&&(e.composing.range.clear(),e.composing.range=n.markText(e.composing.start,n.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Or.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Or.prototype.onKeyPress=function(){b&&C>=9&&(this.hasSelection=null),this.fastPoll()},Or.prototype.onContextMenu=function(e){var n=this,u=n.cm,l=u.display,f=n.textarea;n.contextMenuPending&&n.contextMenuPending();var g=ea(u,e),P=l.scroller.scrollTop;if(!g||j)return;var B=u.options.resetSelectionOnContextMenu;B&&u.doc.sel.contains(g)==-1&&Kr(u,nn)(u.doc,Ni(g),nt);var H=f.style.cssText,J=n.wrapper.style.cssText,ye=n.wrapper.offsetParent.getBoundingClientRect();n.wrapper.style.cssText="position: static",f.style.cssText=`position: absolute; width: 30px; height: 30px;
34
34
  top: `+(e.clientY-ye.top-5)+"px; left: "+(e.clientX-ye.left-5)+`px;
35
35
  z-index: 1000; background: `+(b?"rgba(255, 255, 255, .05)":"transparent")+`;
36
- outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Se;S&&(Se=window.scrollY),l.input.focus(),S&&window.scrollTo(null,Se),l.input.reset(),u.somethingSelected()||(f.value=n.prevInput=" "),n.contextMenuPending=Ee,l.selForContextMenu=u.doc.sel,clearTimeout(l.detectingSelectAll);function Ie(){if(f.selectionStart!=null){var Ye=u.somethingSelected(),et="\u200B"+(Ye?f.value:"");f.value="\u21DA",f.value=et,n.prevInput=Ye?"":"\u200B",f.selectionStart=1,f.selectionEnd=et.length,l.selForContextMenu=u.doc.sel}}function Ee(){if(n.contextMenuPending==Ee&&(n.contextMenuPending=!1,n.wrapper.style.cssText=J,f.style.cssText=W,b&&C<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=P),f.selectionStart!=null)){(!b||b&&C<9)&&Ie();var Ye=0,et=function(){l.selForContextMenu==u.doc.sel&&f.selectionStart==0&&f.selectionEnd>0&&n.prevInput=="\u200B"?Kr(u,ss)(u):Ye++<10?l.detectingSelectAll=setTimeout(et,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(et,200)}}if(b&&C>=9&&Ie(),z){Ft(e);var Ue=function(){fe(window,"mouseup",Ue),setTimeout(Ee,20)};D(window,"mouseup",Ue)}else setTimeout(Ee,50)},Or.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Or.prototype.setUneditable=function(){},Or.prototype.needsContentAttribute=!1;function Pf(e,n){if(n=n?He(n):{},n.value=e.value,!n.tabindex&&e.tabIndex&&(n.tabindex=e.tabIndex),!n.placeholder&&e.placeholder&&(n.placeholder=e.placeholder),n.autofocus==null){var u=Oe();n.autofocus=u==e||e.getAttribute("autofocus")!=null&&u==document.body}function l(){e.value=B.getValue()}var f;if(e.form&&(D(e.form,"submit",l),!n.leaveSubmitMethodAlone)){var y=e.form;f=y.submit;try{var P=y.submit=function(){l(),y.submit=f,y.submit(),y.submit=P}}catch(W){}}n.finishInit=function(W){W.save=l,W.getTextArea=function(){return e},W.toTextArea=function(){W.toTextArea=isNaN,l(),e.parentNode.removeChild(W.getWrapperElement()),e.style.display="",e.form&&(fe(e.form,"submit",l),!n.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=f))}},e.style.display="none";var B=yr(function(W){return e.parentNode.insertBefore(W,e.nextSibling)},n);return B}function nd(e){e.off=fe,e.on=D,e.wheelEventPixels=ir,e.Doc=yn,e.splitLines=zn,e.countColumn=Je,e.findColumn=st,e.isWordChar=ht,e.Pass=Qe,e.signal=te,e.Line=Ji,e.changeEnd=Bi,e.scrollbarModel=Cn,e.Pos=qe,e.cmpPos=Pt,e.modes=Ti,e.mimeModes=ln,e.resolveMode=$n,e.getMode=wn,e.modeExtensions=ei,e.extendMode=Pi,e.copyState=Gr,e.startState=ti,e.innerMode=qr,e.commands=mo,e.keyMap=si,e.keyName=df,e.isModifierKey=cf,e.lookupKey=xi,e.normalizeKeyMap=qd,e.StringStream=pr,e.SharedTextMarker=Ta,e.TextMarker=oi,e.LineWidget=ho,e.e_preventDefault=We,e.e_stopPropagation=ot,e.e_stop=Ft,e.addClass=Pe,e.contains=ie,e.rmClass=q,e.keyNames=On}Cf(yr),td(yr);var id="iter insert remove copy getEditor constructor".split(" ");for(var wo in yn.prototype)yn.prototype.hasOwnProperty(wo)&&ft(id,wo)<0&&(yr.prototype[wo]=function(e){return function(){return e.apply(this.doc,arguments)}}(yn.prototype[wo]));return Re(yn),yr.inputStyles={textarea:Or,contenteditable:ar},yr.defineMode=function(e){!yr.defaults.mode&&e!="null"&&(yr.defaults.mode=e),An.apply(this,arguments)},yr.defineMIME=Gn,yr.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),yr.defineMIME("text/plain","null"),yr.defineExtension=function(e,n){yr.prototype[e]=n},yr.defineDocExtension=function(e,n){yn.prototype[e]=n},yr.fromTextArea=Pf,nd(yr),yr.version="5.65.0",yr})},96876:(p,I,a)=>{(function(c){c(a(4631))})(function(c){"use strict";c.defineMode("javascript",function(v,m){var h=v.indentUnit,b=m.statementIndent,C=m.jsonld,S=m.json||C,L=m.trackScope!==!1,N=m.typescript,j=m.wordCharacters||/[\w$\xa1-\uffff]/,U=function(){function ae(kr){return{type:kr,style:"keyword"}}var Ae=ae("keyword a"),Ge=ae("keyword b"),tt=ae("keyword c"),rt=ae("keyword d"),Gt=ae("operator"),Xt={type:"atom",style:"atom"};return{if:ae("if"),while:Ae,with:Ae,else:Ge,do:Ge,try:Ge,finally:Ge,return:rt,break:rt,continue:rt,new:ae("new"),delete:tt,void:tt,throw:tt,debugger:ae("debugger"),var:ae("var"),const:ae("var"),let:ae("var"),function:ae("function"),catch:ae("catch"),for:ae("for"),switch:ae("switch"),case:ae("case"),default:ae("default"),in:Gt,typeof:Gt,instanceof:Gt,true:Xt,false:Xt,null:Xt,undefined:Xt,NaN:Xt,Infinity:Xt,this:ae("this"),class:ae("class"),super:ae("atom"),yield:tt,export:ae("export"),import:ae("import"),extends:tt,await:tt}}(),Q=/[+\-*&%=<>!?|~^@]/,K=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function M(ae){for(var Ae=!1,Ge,tt=!1;(Ge=ae.next())!=null;){if(!Ae){if(Ge=="/"&&!tt)return;Ge=="["?tt=!0:tt&&Ge=="]"&&(tt=!1)}Ae=!Ae&&Ge=="\\"}}var Y,R;function E(ae,Ae,Ge){return Y=ae,R=Ge,Ae}function V(ae,Ae){var Ge=ae.next();if(Ge=='"'||Ge=="'")return Ae.tokenize=G(Ge),Ae.tokenize(ae,Ae);if(Ge=="."&&ae.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return E("number","number");if(Ge=="."&&ae.match(".."))return E("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(Ge))return E(Ge);if(Ge=="="&&ae.eat(">"))return E("=>","operator");if(Ge=="0"&&ae.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return E("number","number");if(/\d/.test(Ge))return ae.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),E("number","number");if(Ge=="/")return ae.eat("*")?(Ae.tokenize=Z,Z(ae,Ae)):ae.eat("/")?(ae.skipToEnd(),E("comment","comment")):ci(ae,Ae,1)?(M(ae),ae.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),E("regexp","string-2")):(ae.eat("="),E("operator","operator",ae.current()));if(Ge=="`")return Ae.tokenize=X,X(ae,Ae);if(Ge=="#"&&ae.peek()=="!")return ae.skipToEnd(),E("meta","meta");if(Ge=="#"&&ae.eatWhile(j))return E("variable","property");if(Ge=="<"&&ae.match("!--")||Ge=="-"&&ae.match("->")&&!/\S/.test(ae.string.slice(0,ae.start)))return ae.skipToEnd(),E("comment","comment");if(Q.test(Ge))return(Ge!=">"||!Ae.lexical||Ae.lexical.type!=">")&&(ae.eat("=")?(Ge=="!"||Ge=="=")&&ae.eat("="):/[<>*+\-|&?]/.test(Ge)&&(ae.eat(Ge),Ge==">"&&ae.eat(Ge))),Ge=="?"&&ae.eat(".")?E("."):E("operator","operator",ae.current());if(j.test(Ge)){ae.eatWhile(j);var tt=ae.current();if(Ae.lastType!="."){if(U.propertyIsEnumerable(tt)){var rt=U[tt];return E(rt.type,rt.style,tt)}if(tt=="async"&&ae.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return E("async","keyword",tt)}return E("variable","variable",tt)}}function G(ae){return function(Ae,Ge){var tt=!1,rt;if(C&&Ae.peek()=="@"&&Ae.match(K))return Ge.tokenize=V,E("jsonld-keyword","meta");for(;(rt=Ae.next())!=null&&!(rt==ae&&!tt);)tt=!tt&&rt=="\\";return tt||(Ge.tokenize=V),E("string","string")}}function Z(ae,Ae){for(var Ge=!1,tt;tt=ae.next();){if(tt=="/"&&Ge){Ae.tokenize=V;break}Ge=tt=="*"}return E("comment","comment")}function X(ae,Ae){for(var Ge=!1,tt;(tt=ae.next())!=null;){if(!Ge&&(tt=="`"||tt=="$"&&ae.eat("{"))){Ae.tokenize=V;break}Ge=!Ge&&tt=="\\"}return E("quasi","string-2",ae.current())}var z="([{}])";function ue(ae,Ae){Ae.fatArrowAt&&(Ae.fatArrowAt=null);var Ge=ae.string.indexOf("=>",ae.start);if(!(Ge<0)){if(N){var tt=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(ae.string.slice(ae.start,Ge));tt&&(Ge=tt.index)}for(var rt=0,Gt=!1,Xt=Ge-1;Xt>=0;--Xt){var kr=ae.string.charAt(Xt),Mr=z.indexOf(kr);if(Mr>=0&&Mr<3){if(!rt){++Xt;break}if(--rt==0){kr=="("&&(Gt=!0);break}}else if(Mr>=3&&Mr<6)++rt;else if(j.test(kr))Gt=!0;else if(/["'\/`]/.test(kr))for(;;--Xt){if(Xt==0)return;var _t=ae.string.charAt(Xt-1);if(_t==kr&&ae.string.charAt(Xt-2)!="\\"){Xt--;break}}else if(Gt&&!rt){++Xt;break}}Gt&&!rt&&(Ae.fatArrowAt=Xt)}}var q={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ne(ae,Ae,Ge,tt,rt,Gt){this.indented=ae,this.column=Ae,this.type=Ge,this.prev=rt,this.info=Gt,tt!=null&&(this.align=tt)}function ge(ae,Ae){if(!L)return!1;for(var Ge=ae.localVars;Ge;Ge=Ge.next)if(Ge.name==Ae)return!0;for(var tt=ae.context;tt;tt=tt.prev)for(var Ge=tt.vars;Ge;Ge=Ge.next)if(Ge.name==Ae)return!0}function me(ae,Ae,Ge,tt,rt){var Gt=ae.cc;for(he.state=ae,he.stream=rt,he.marked=null,he.cc=Gt,he.style=Ae,ae.lexical.hasOwnProperty("align")||(ae.lexical.align=!0);;){var Xt=Gt.length?Gt.pop():S?Ot:dt;if(Xt(Ge,tt)){for(;Gt.length&&Gt[Gt.length-1].lex;)Gt.pop()();return he.marked?he.marked:Ge=="variable"&&ge(ae,tt)?"variable-2":Ae}}}var he={state:null,column:null,marked:null,cc:null};function le(){for(var ae=arguments.length-1;ae>=0;ae--)he.cc.push(arguments[ae])}function ie(){return le.apply(null,arguments),!0}function Oe(ae,Ae){for(var Ge=Ae;Ge;Ge=Ge.next)if(Ge.name==ae)return!0;return!1}function Pe(ae){var Ae=he.state;if(he.marked="def",!!L){if(Ae.context){if(Ae.lexical.info=="var"&&Ae.context&&Ae.context.block){var Ge=Te(ae,Ae.context);if(Ge!=null){Ae.context=Ge;return}}else if(!Oe(ae,Ae.localVars)){Ae.localVars=new He(ae,Ae.localVars);return}}m.globalVars&&!Oe(ae,Ae.globalVars)&&(Ae.globalVars=new He(ae,Ae.globalVars))}}function Te(ae,Ae){if(Ae)if(Ae.block){var Ge=Te(ae,Ae.prev);return Ge?Ge==Ae.prev?Ae:new Xe(Ge,Ae.vars,!0):null}else return Oe(ae,Ae.vars)?Ae:new Xe(Ae.prev,new He(ae,Ae.vars),!1);else return null}function Ce(ae){return ae=="public"||ae=="private"||ae=="protected"||ae=="abstract"||ae=="readonly"}function Xe(ae,Ae,Ge){this.prev=ae,this.vars=Ae,this.block=Ge}function He(ae,Ae){this.name=ae,this.next=Ae}var Je=new He("this",new He("arguments",null));function ut(){he.state.context=new Xe(he.state.context,he.state.localVars,!1),he.state.localVars=Je}function ft(){he.state.context=new Xe(he.state.context,he.state.localVars,!0),he.state.localVars=null}function yt(){he.state.localVars=he.state.context.vars,he.state.context=he.state.context.prev}yt.lex=!0;function Qe(ae,Ae){var Ge=function(){var tt=he.state,rt=tt.indented;if(tt.lexical.type=="stat")rt=tt.lexical.indented;else for(var Gt=tt.lexical;Gt&&Gt.type==")"&&Gt.align;Gt=Gt.prev)rt=Gt.indented;tt.lexical=new ne(rt,he.stream.column(),ae,null,tt.lexical,Ae)};return Ge.lex=!0,Ge}function nt(){var ae=he.state;ae.lexical.prev&&(ae.lexical.type==")"&&(ae.indented=ae.lexical.indented),ae.lexical=ae.lexical.prev)}nt.lex=!0;function ct(ae){function Ae(Ge){return Ge==ae?ie():ae==";"||Ge=="}"||Ge==")"||Ge=="]"?le():ie(Ae)}return Ae}function dt(ae,Ae){return ae=="var"?ie(Qe("vardef",Ae),Ei,ct(";"),nt):ae=="keyword a"?ie(Qe("form"),St,dt,nt):ae=="keyword b"?ie(Qe("form"),dt,nt):ae=="keyword d"?he.stream.match(/^\s*$/,!1)?ie():ie(Qe("stat"),Dt,ct(";"),nt):ae=="debugger"?ie(ct(";")):ae=="{"?ie(Qe("}"),ft,D,nt,yt):ae==";"?ie():ae=="if"?(he.state.lexical.info=="else"&&he.state.cc[he.state.cc.length-1]==nt&&he.state.cc.pop()(),ie(Qe("form"),St,dt,nt,Zr)):ae=="function"?ie(An):ae=="for"?ie(Qe("form"),ft,Oi,dt,yt,nt):ae=="class"||N&&Ae=="interface"?(he.marked="keyword",ie(Qe("form",ae=="class"?ae:Ae),Pi,nt)):ae=="variable"?N&&Ae=="declare"?(he.marked="keyword",ie(dt)):N&&(Ae=="module"||Ae=="enum"||Ae=="type")&&he.stream.match(/^\s*\w/,!1)?(he.marked="keyword",Ae=="enum"?ie(ya):Ae=="type"?ie($n,ct("operator"),be,ct(";")):ie(Qe("form"),Qr,ct("{"),Qe("}"),D,nt,nt)):N&&Ae=="namespace"?(he.marked="keyword",ie(Qe("form"),Ot,dt,nt)):N&&Ae=="abstract"?(he.marked="keyword",ie(dt)):ie(Qe("stat"),Bt):ae=="switch"?ie(Qe("form"),St,ct("{"),Qe("}","switch"),ft,D,nt,nt,yt):ae=="case"?ie(Ot,ct(":")):ae=="default"?ie(ct(":")):ae=="catch"?ie(Qe("form"),ut,st,dt,nt,yt):ae=="export"?ie(Qe("stat"),pr,nt):ae=="import"?ie(Qe("stat"),fi,nt):ae=="async"?ie(dt):Ae=="@"?ie(Ot,dt):le(Qe("stat"),Ot,ct(";"),nt)}function st(ae){if(ae=="(")return ie(wn,ct(")"))}function Ot(ae,Ae){return jt(ae,Ae,!1)}function Et(ae,Ae){return jt(ae,Ae,!0)}function St(ae){return ae!="("?le():ie(Qe(")"),Dt,ct(")"),nt)}function jt(ae,Ae,Ge){if(he.state.fatArrowAt==he.stream.start){var tt=Ge?Kt:zt;if(ae=="(")return ie(ut,Qe(")"),T(wn,")"),nt,ct("=>"),tt,yt);if(ae=="variable")return le(ut,Qr,ct("=>"),tt,yt)}var rt=Ge?mt:Nt;return q.hasOwnProperty(ae)?ie(rt):ae=="function"?ie(An,rt):ae=="class"||N&&Ae=="interface"?(he.marked="keyword",ie(Qe("form"),ei,nt)):ae=="keyword c"||ae=="async"?ie(Ge?Et:Ot):ae=="("?ie(Qe(")"),Dt,ct(")"),nt,rt):ae=="operator"||ae=="spread"?ie(Ge?Et:Ot):ae=="["?ie(Qe("]"),ri,nt,rt):ae=="{"?oe(Be,"}",null,rt):ae=="quasi"?le(It,rt):ae=="new"?ie(sr(Ge)):ie()}function Dt(ae){return ae.match(/[;\}\)\],]/)?le():le(Ot)}function Nt(ae,Ae){return ae==","?ie(Dt):mt(ae,Ae,!1)}function mt(ae,Ae,Ge){var tt=Ge==!1?Nt:mt,rt=Ge==!1?Ot:Et;if(ae=="=>")return ie(ut,Ge?Kt:zt,yt);if(ae=="operator")return/\+\+|--/.test(Ae)||N&&Ae=="!"?ie(tt):N&&Ae=="<"&&he.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?ie(Qe(">"),T(be,">"),nt,tt):Ae=="?"?ie(Ot,ct(":"),rt):ie(rt);if(ae=="quasi")return le(It,tt);if(ae!=";"){if(ae=="(")return oe(Et,")","call",tt);if(ae==".")return ie(k,tt);if(ae=="[")return ie(Qe("]"),Dt,ct("]"),nt,tt);if(N&&Ae=="as")return he.marked="keyword",ie(be,tt);if(ae=="regexp")return he.state.lastType=he.marked="operator",he.stream.backUp(he.stream.pos-he.stream.start-1),ie(rt)}}function It(ae,Ae){return ae!="quasi"?le():Ae.slice(Ae.length-2)!="${"?ie(It):ie(Dt,ht)}function ht(ae){if(ae=="}")return he.marked="string-2",he.state.tokenize=X,ie(It)}function zt(ae){return ue(he.stream,he.state),le(ae=="{"?dt:Ot)}function Kt(ae){return ue(he.stream,he.state),le(ae=="{"?dt:Et)}function sr(ae){return function(Ae){return Ae=="."?ie(ae?Wt:Mt):Ae=="variable"&&N?ie(bn,ae?mt:Nt):le(ae?Et:Ot)}}function Mt(ae,Ae){if(Ae=="target")return he.marked="keyword",ie(Nt)}function Wt(ae,Ae){if(Ae=="target")return he.marked="keyword",ie(mt)}function Bt(ae){return ae==":"?ie(nt,dt):le(Nt,ct(";"),nt)}function k(ae){if(ae=="variable")return he.marked="property",ie()}function Be(ae,Ae){if(ae=="async")return he.marked="property",ie(Be);if(ae=="variable"||he.style=="keyword"){if(he.marked="property",Ae=="get"||Ae=="set")return ie($);var Ge;return N&&he.state.fatArrowAt==he.stream.start&&(Ge=he.stream.match(/^\s*:\s*/,!1))&&(he.state.fatArrowAt=he.stream.pos+Ge[0].length),ie(O)}else{if(ae=="number"||ae=="string")return he.marked=C?"property":he.style+" property",ie(O);if(ae=="jsonld-keyword")return ie(O);if(N&&Ce(Ae))return he.marked="keyword",ie(Be);if(ae=="[")return ie(Ot,_,ct("]"),O);if(ae=="spread")return ie(Et,O);if(Ae=="*")return he.marked="keyword",ie(Be);if(ae==":")return le(O)}}function $(ae){return ae!="variable"?le(O):(he.marked="property",ie(An))}function O(ae){if(ae==":")return ie(Et);if(ae=="(")return le(An)}function T(ae,Ae,Ge){function tt(rt,Gt){if(Ge?Ge.indexOf(rt)>-1:rt==","){var Xt=he.state.lexical;return Xt.info=="call"&&(Xt.pos=(Xt.pos||0)+1),ie(function(kr,Mr){return kr==Ae||Mr==Ae?le():le(ae)},tt)}return rt==Ae||Gt==Ae?ie():Ge&&Ge.indexOf(";")>-1?le(ae):ie(ct(Ae))}return function(rt,Gt){return rt==Ae||Gt==Ae?ie():le(ae,tt)}}function oe(ae,Ae,Ge){for(var tt=3;tt<arguments.length;tt++)he.cc.push(arguments[tt]);return ie(Qe(Ae,Ge),T(ae,Ae),nt)}function D(ae){return ae=="}"?ie():le(dt,D)}function _(ae,Ae){if(N){if(ae==":")return ie(be);if(Ae=="?")return ie(_)}}function fe(ae,Ae){if(N&&(ae==":"||Ae=="in"))return ie(be)}function te(ae){if(N&&ae==":")return he.stream.match(/^\s*\w+\s+is\b/,!1)?ie(Ot,ce,be):ie(be)}function ce(ae,Ae){if(Ae=="is")return he.marked="keyword",ie()}function be(ae,Ae){if(Ae=="keyof"||Ae=="typeof"||Ae=="infer"||Ae=="readonly")return he.marked="keyword",ie(Ae=="typeof"?Et:be);if(ae=="variable"||Ae=="void")return he.marked="type",ie(At);if(Ae=="|"||Ae=="&")return ie(be);if(ae=="string"||ae=="number"||ae=="atom")return ie(At);if(ae=="[")return ie(Qe("]"),T(be,"]",","),nt,At);if(ae=="{")return ie(Qe("}"),Re,nt,At);if(ae=="(")return ie(T(Ft,")"),Le,At);if(ae=="<")return ie(T(be,">"),be);if(ae=="quasi")return le(ot,At)}function Le(ae){if(ae=="=>")return ie(be)}function Re(ae){return ae.match(/[\}\)\]]/)?ie():ae==","||ae==";"?ie(Re):le(We,Re)}function We(ae,Ae){if(ae=="variable"||he.style=="keyword")return he.marked="property",ie(We);if(Ae=="?"||ae=="number"||ae=="string")return ie(We);if(ae==":")return ie(be);if(ae=="[")return ie(ct("variable"),fe,ct("]"),We);if(ae=="(")return le(Gn,We);if(!ae.match(/[;\}\)\],]/))return ie()}function ot(ae,Ae){return ae!="quasi"?le():Ae.slice(Ae.length-2)!="${"?ie(ot):ie(be,vt)}function vt(ae){if(ae=="}")return he.marked="string-2",he.state.tokenize=X,ie(ot)}function Ft(ae,Ae){return ae=="variable"&&he.stream.match(/^\s*[?:]/,!1)||Ae=="?"?ie(Ft):ae==":"?ie(be):ae=="spread"?ie(Ft):le(be)}function At(ae,Ae){if(Ae=="<")return ie(Qe(">"),T(be,">"),nt,At);if(Ae=="|"||ae=="."||Ae=="&")return ie(be);if(ae=="[")return ie(be,ct("]"),At);if(Ae=="extends"||Ae=="implements")return he.marked="keyword",ie(be);if(Ae=="?")return ie(be,ct(":"),be)}function bn(ae,Ae){if(Ae=="<")return ie(Qe(">"),T(be,">"),nt,At)}function zr(){return le(be,Fr)}function Fr(ae,Ae){if(Ae=="=")return ie(be)}function Ei(ae,Ae){return Ae=="enum"?(he.marked="keyword",ie(ya)):le(Qr,_,Sn,Rn)}function Qr(ae,Ae){if(N&&Ce(Ae))return he.marked="keyword",ie(Qr);if(ae=="variable")return Pe(Ae),ie();if(ae=="spread")return ie(Qr);if(ae=="[")return oe(zn,"]");if(ae=="{")return oe($i,"}")}function $i(ae,Ae){return ae=="variable"&&!he.stream.match(/^\s*:/,!1)?(Pe(Ae),ie(Sn)):(ae=="variable"&&(he.marked="property"),ae=="spread"?ie(Qr):ae=="}"?le():ae=="["?ie(Ot,ct("]"),ct(":"),$i):ie(ct(":"),Qr,Sn))}function zn(){return le(Qr,Sn)}function Sn(ae,Ae){if(Ae=="=")return ie(Et)}function Rn(ae){if(ae==",")return ie(Ei)}function Zr(ae,Ae){if(ae=="keyword b"&&Ae=="else")return ie(Qe("form","else"),dt,nt)}function Oi(ae,Ae){if(Ae=="await")return ie(Oi);if(ae=="(")return ie(Qe(")"),Ti,nt)}function Ti(ae){return ae=="var"?ie(Ei,ln):ae=="variable"?ie(ln):le(ln)}function ln(ae,Ae){return ae==")"?ie():ae==";"?ie(ln):Ae=="in"||Ae=="of"?(he.marked="keyword",ie(Ot,ln)):le(Ot,ln)}function An(ae,Ae){if(Ae=="*")return he.marked="keyword",ie(An);if(ae=="variable")return Pe(Ae),ie(An);if(ae=="(")return ie(ut,Qe(")"),T(wn,")"),nt,te,dt,yt);if(N&&Ae=="<")return ie(Qe(">"),T(zr,">"),nt,An)}function Gn(ae,Ae){if(Ae=="*")return he.marked="keyword",ie(Gn);if(ae=="variable")return Pe(Ae),ie(Gn);if(ae=="(")return ie(ut,Qe(")"),T(wn,")"),nt,te,yt);if(N&&Ae=="<")return ie(Qe(">"),T(zr,">"),nt,Gn)}function $n(ae,Ae){if(ae=="keyword"||ae=="variable")return he.marked="type",ie($n);if(Ae=="<")return ie(Qe(">"),T(zr,">"),nt)}function wn(ae,Ae){return Ae=="@"&&ie(Ot,wn),ae=="spread"?ie(wn):N&&Ce(Ae)?(he.marked="keyword",ie(wn)):N&&ae=="this"?ie(_,Sn):le(Qr,_,Sn)}function ei(ae,Ae){return ae=="variable"?Pi(ae,Ae):Gr(ae,Ae)}function Pi(ae,Ae){if(ae=="variable")return Pe(Ae),ie(Gr)}function Gr(ae,Ae){if(Ae=="<")return ie(Qe(">"),T(zr,">"),nt,Gr);if(Ae=="extends"||Ae=="implements"||N&&ae==",")return Ae=="implements"&&(he.marked="keyword"),ie(N?be:Ot,Gr);if(ae=="{")return ie(Qe("}"),qr,nt)}function qr(ae,Ae){if(ae=="async"||ae=="variable"&&(Ae=="static"||Ae=="get"||Ae=="set"||N&&Ce(Ae))&&he.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return he.marked="keyword",ie(qr);if(ae=="variable"||he.style=="keyword")return he.marked="property",ie(ti,qr);if(ae=="number"||ae=="string")return ie(ti,qr);if(ae=="[")return ie(Ot,_,ct("]"),ti,qr);if(Ae=="*")return he.marked="keyword",ie(qr);if(N&&ae=="(")return le(Gn,qr);if(ae==";"||ae==",")return ie(qr);if(ae=="}")return ie();if(Ae=="@")return ie(Ot,qr)}function ti(ae,Ae){if(Ae=="!"||Ae=="?")return ie(ti);if(ae==":")return ie(be,Sn);if(Ae=="=")return ie(Et);var Ge=he.state.lexical.prev,tt=Ge&&Ge.info=="interface";return le(tt?Gn:An)}function pr(ae,Ae){return Ae=="*"?(he.marked="keyword",ie(Kn,ct(";"))):Ae=="default"?(he.marked="keyword",ie(Ot,ct(";"))):ae=="{"?ie(T(xt,"}"),Kn,ct(";")):le(dt)}function xt(ae,Ae){if(Ae=="as")return he.marked="keyword",ie(ct("variable"));if(ae=="variable")return le(Et,xt)}function fi(ae){return ae=="string"?ie():ae=="("?le(Ot):ae=="."?le(Nt):le(Ii,Fn,Kn)}function Ii(ae,Ae){return ae=="{"?oe(Ii,"}"):(ae=="variable"&&Pe(Ae),Ae=="*"&&(he.marked="keyword"),ie(qt))}function Fn(ae){if(ae==",")return ie(Ii,Fn)}function qt(ae,Ae){if(Ae=="as")return he.marked="keyword",ie(Ii)}function Kn(ae,Ae){if(Ae=="from")return he.marked="keyword",ie(Ot)}function ri(ae){return ae=="]"?ie():le(T(Et,"]"))}function ya(){return le(Qe("form"),Qr,ct("{"),Qe("}"),T(qe,"}"),nt,nt)}function qe(){return le(Qr,Sn)}function Pt(ae,Ae){return ae.lastType=="operator"||ae.lastType==","||Q.test(Ae.charAt(0))||/[,.]/.test(Ae.charAt(0))}function ci(ae,Ae,Ge){return Ae.tokenize==V&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(Ae.lastType)||Ae.lastType=="quasi"&&/\{\s*$/.test(ae.string.slice(0,ae.pos-(Ge||0)))}return{startState:function(ae){var Ae={tokenize:V,lastType:"sof",cc:[],lexical:new ne((ae||0)-h,0,"block",!1),localVars:m.localVars,context:m.localVars&&new Xe(null,null,!1),indented:ae||0};return m.globalVars&&typeof m.globalVars=="object"&&(Ae.globalVars=m.globalVars),Ae},token:function(ae,Ae){if(ae.sol()&&(Ae.lexical.hasOwnProperty("align")||(Ae.lexical.align=!1),Ae.indented=ae.indentation(),ue(ae,Ae)),Ae.tokenize!=Z&&ae.eatSpace())return null;var Ge=Ae.tokenize(ae,Ae);return Y=="comment"?Ge:(Ae.lastType=Y=="operator"&&(R=="++"||R=="--")?"incdec":Y,me(Ae,Ge,Y,R,ae))},indent:function(ae,Ae){if(ae.tokenize==Z||ae.tokenize==X)return c.Pass;if(ae.tokenize!=V)return 0;var Ge=Ae&&Ae.charAt(0),tt=ae.lexical,rt;if(!/^\s*else\b/.test(Ae))for(var Gt=ae.cc.length-1;Gt>=0;--Gt){var Xt=ae.cc[Gt];if(Xt==nt)tt=tt.prev;else if(Xt!=Zr&&Xt!=yt)break}for(;(tt.type=="stat"||tt.type=="form")&&(Ge=="}"||(rt=ae.cc[ae.cc.length-1])&&(rt==Nt||rt==mt)&&!/^[,\.=+\-*:?[\(]/.test(Ae));)tt=tt.prev;b&&tt.type==")"&&tt.prev.type=="stat"&&(tt=tt.prev);var kr=tt.type,Mr=Ge==kr;return kr=="vardef"?tt.indented+(ae.lastType=="operator"||ae.lastType==","?tt.info.length+1:0):kr=="form"&&Ge=="{"?tt.indented:kr=="form"?tt.indented+h:kr=="stat"?tt.indented+(Pt(ae,Ae)?b||h:0):tt.info=="switch"&&!Mr&&m.doubleIndentSwitch!=!1?tt.indented+(/^(?:case|default)\b/.test(Ae)?h:2*h):tt.align?tt.column+(Mr?0:1):tt.indented+(Mr?0:h)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:S?null:"/*",blockCommentEnd:S?null:"*/",blockCommentContinue:S?null:" * ",lineComment:S?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:S?"json":"javascript",jsonldMode:C,jsonMode:S,expressionAllowed:ci,skipExpression:function(ae){me(ae,"atom","atom","true",new c.StringStream("",2,null))}}}),c.registerHelper("wordChars","javascript",/[\w$]/),c.defineMIME("text/javascript","javascript"),c.defineMIME("text/ecmascript","javascript"),c.defineMIME("application/javascript","javascript"),c.defineMIME("application/x-javascript","javascript"),c.defineMIME("application/ecmascript","javascript"),c.defineMIME("application/json",{name:"javascript",json:!0}),c.defineMIME("application/x-json",{name:"javascript",json:!0}),c.defineMIME("application/manifest+json",{name:"javascript",json:!0}),c.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),c.defineMIME("text/typescript",{name:"javascript",typescript:!0}),c.defineMIME("application/typescript",{name:"javascript",typescript:!0})})},76489:(p,I)=>{"use strict";/*!
36
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Se;S&&(Se=window.scrollY),l.input.focus(),S&&window.scrollTo(null,Se),l.input.reset(),u.somethingSelected()||(f.value=n.prevInput=" "),n.contextMenuPending=Ee,l.selForContextMenu=u.doc.sel,clearTimeout(l.detectingSelectAll);function Ie(){if(f.selectionStart!=null){var Ye=u.somethingSelected(),et="\u200B"+(Ye?f.value:"");f.value="\u21DA",f.value=et,n.prevInput=Ye?"":"\u200B",f.selectionStart=1,f.selectionEnd=et.length,l.selForContextMenu=u.doc.sel}}function Ee(){if(n.contextMenuPending==Ee&&(n.contextMenuPending=!1,n.wrapper.style.cssText=J,f.style.cssText=H,b&&C<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=P),f.selectionStart!=null)){(!b||b&&C<9)&&Ie();var Ye=0,et=function(){l.selForContextMenu==u.doc.sel&&f.selectionStart==0&&f.selectionEnd>0&&n.prevInput=="\u200B"?Kr(u,ss)(u):Ye++<10?l.detectingSelectAll=setTimeout(et,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(et,200)}}if(b&&C>=9&&Ie(),z){Ft(e);var Ue=function(){fe(window,"mouseup",Ue),setTimeout(Ee,20)};D(window,"mouseup",Ue)}else setTimeout(Ee,50)},Or.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Or.prototype.setUneditable=function(){},Or.prototype.needsContentAttribute=!1;function Pf(e,n){if(n=n?He(n):{},n.value=e.value,!n.tabindex&&e.tabIndex&&(n.tabindex=e.tabIndex),!n.placeholder&&e.placeholder&&(n.placeholder=e.placeholder),n.autofocus==null){var u=Oe();n.autofocus=u==e||e.getAttribute("autofocus")!=null&&u==document.body}function l(){e.value=B.getValue()}var f;if(e.form&&(D(e.form,"submit",l),!n.leaveSubmitMethodAlone)){var g=e.form;f=g.submit;try{var P=g.submit=function(){l(),g.submit=f,g.submit(),g.submit=P}}catch(H){}}n.finishInit=function(H){H.save=l,H.getTextArea=function(){return e},H.toTextArea=function(){H.toTextArea=isNaN,l(),e.parentNode.removeChild(H.getWrapperElement()),e.style.display="",e.form&&(fe(e.form,"submit",l),!n.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=f))}},e.style.display="none";var B=mr(function(H){return e.parentNode.insertBefore(H,e.nextSibling)},n);return B}function nd(e){e.off=fe,e.on=D,e.wheelEventPixels=ir,e.Doc=yn,e.splitLines=zn,e.countColumn=Je,e.findColumn=st,e.isWordChar=ht,e.Pass=Qe,e.signal=te,e.Line=Ji,e.changeEnd=Bi,e.scrollbarModel=Cn,e.Pos=qe,e.cmpPos=Pt,e.modes=Ti,e.mimeModes=ln,e.resolveMode=$n,e.getMode=wn,e.modeExtensions=ei,e.extendMode=Pi,e.copyState=Gr,e.startState=ti,e.innerMode=qr,e.commands=mo,e.keyMap=si,e.keyName=df,e.isModifierKey=cf,e.lookupKey=xi,e.normalizeKeyMap=qd,e.StringStream=hr,e.SharedTextMarker=Ta,e.TextMarker=oi,e.LineWidget=ho,e.e_preventDefault=We,e.e_stopPropagation=ot,e.e_stop=Ft,e.addClass=Pe,e.contains=ie,e.rmClass=q,e.keyNames=On}Cf(mr),td(mr);var id="iter insert remove copy getEditor constructor".split(" ");for(var wo in yn.prototype)yn.prototype.hasOwnProperty(wo)&&ft(id,wo)<0&&(mr.prototype[wo]=function(e){return function(){return e.apply(this.doc,arguments)}}(yn.prototype[wo]));return Re(yn),mr.inputStyles={textarea:Or,contenteditable:ar},mr.defineMode=function(e){!mr.defaults.mode&&e!="null"&&(mr.defaults.mode=e),An.apply(this,arguments)},mr.defineMIME=Gn,mr.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),mr.defineMIME("text/plain","null"),mr.defineExtension=function(e,n){mr.prototype[e]=n},mr.defineDocExtension=function(e,n){yn.prototype[e]=n},mr.fromTextArea=Pf,nd(mr),mr.version="5.65.0",mr})},96876:(p,I,a)=>{(function(c){c(a(4631))})(function(c){"use strict";c.defineMode("javascript",function(v,m){var h=v.indentUnit,b=m.statementIndent,C=m.jsonld,S=m.json||C,L=m.trackScope!==!1,N=m.typescript,j=m.wordCharacters||/[\w$\xa1-\uffff]/,U=function(){function ae(kr){return{type:kr,style:"keyword"}}var Ae=ae("keyword a"),Ge=ae("keyword b"),tt=ae("keyword c"),rt=ae("keyword d"),Gt=ae("operator"),Xt={type:"atom",style:"atom"};return{if:ae("if"),while:Ae,with:Ae,else:Ge,do:Ge,try:Ge,finally:Ge,return:rt,break:rt,continue:rt,new:ae("new"),delete:tt,void:tt,throw:tt,debugger:ae("debugger"),var:ae("var"),const:ae("var"),let:ae("var"),function:ae("function"),catch:ae("catch"),for:ae("for"),switch:ae("switch"),case:ae("case"),default:ae("default"),in:Gt,typeof:Gt,instanceof:Gt,true:Xt,false:Xt,null:Xt,undefined:Xt,NaN:Xt,Infinity:Xt,this:ae("this"),class:ae("class"),super:ae("atom"),yield:tt,export:ae("export"),import:ae("import"),extends:tt,await:tt}}(),Q=/[+\-*&%=<>!?|~^@]/,K=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function M(ae){for(var Ae=!1,Ge,tt=!1;(Ge=ae.next())!=null;){if(!Ae){if(Ge=="/"&&!tt)return;Ge=="["?tt=!0:tt&&Ge=="]"&&(tt=!1)}Ae=!Ae&&Ge=="\\"}}var Y,R;function E(ae,Ae,Ge){return Y=ae,R=Ge,Ae}function V(ae,Ae){var Ge=ae.next();if(Ge=='"'||Ge=="'")return Ae.tokenize=G(Ge),Ae.tokenize(ae,Ae);if(Ge=="."&&ae.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return E("number","number");if(Ge=="."&&ae.match(".."))return E("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(Ge))return E(Ge);if(Ge=="="&&ae.eat(">"))return E("=>","operator");if(Ge=="0"&&ae.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return E("number","number");if(/\d/.test(Ge))return ae.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),E("number","number");if(Ge=="/")return ae.eat("*")?(Ae.tokenize=Z,Z(ae,Ae)):ae.eat("/")?(ae.skipToEnd(),E("comment","comment")):ci(ae,Ae,1)?(M(ae),ae.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),E("regexp","string-2")):(ae.eat("="),E("operator","operator",ae.current()));if(Ge=="`")return Ae.tokenize=X,X(ae,Ae);if(Ge=="#"&&ae.peek()=="!")return ae.skipToEnd(),E("meta","meta");if(Ge=="#"&&ae.eatWhile(j))return E("variable","property");if(Ge=="<"&&ae.match("!--")||Ge=="-"&&ae.match("->")&&!/\S/.test(ae.string.slice(0,ae.start)))return ae.skipToEnd(),E("comment","comment");if(Q.test(Ge))return(Ge!=">"||!Ae.lexical||Ae.lexical.type!=">")&&(ae.eat("=")?(Ge=="!"||Ge=="=")&&ae.eat("="):/[<>*+\-|&?]/.test(Ge)&&(ae.eat(Ge),Ge==">"&&ae.eat(Ge))),Ge=="?"&&ae.eat(".")?E("."):E("operator","operator",ae.current());if(j.test(Ge)){ae.eatWhile(j);var tt=ae.current();if(Ae.lastType!="."){if(U.propertyIsEnumerable(tt)){var rt=U[tt];return E(rt.type,rt.style,tt)}if(tt=="async"&&ae.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return E("async","keyword",tt)}return E("variable","variable",tt)}}function G(ae){return function(Ae,Ge){var tt=!1,rt;if(C&&Ae.peek()=="@"&&Ae.match(K))return Ge.tokenize=V,E("jsonld-keyword","meta");for(;(rt=Ae.next())!=null&&!(rt==ae&&!tt);)tt=!tt&&rt=="\\";return tt||(Ge.tokenize=V),E("string","string")}}function Z(ae,Ae){for(var Ge=!1,tt;tt=ae.next();){if(tt=="/"&&Ge){Ae.tokenize=V;break}Ge=tt=="*"}return E("comment","comment")}function X(ae,Ae){for(var Ge=!1,tt;(tt=ae.next())!=null;){if(!Ge&&(tt=="`"||tt=="$"&&ae.eat("{"))){Ae.tokenize=V;break}Ge=!Ge&&tt=="\\"}return E("quasi","string-2",ae.current())}var z="([{}])";function ue(ae,Ae){Ae.fatArrowAt&&(Ae.fatArrowAt=null);var Ge=ae.string.indexOf("=>",ae.start);if(!(Ge<0)){if(N){var tt=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(ae.string.slice(ae.start,Ge));tt&&(Ge=tt.index)}for(var rt=0,Gt=!1,Xt=Ge-1;Xt>=0;--Xt){var kr=ae.string.charAt(Xt),Mr=z.indexOf(kr);if(Mr>=0&&Mr<3){if(!rt){++Xt;break}if(--rt==0){kr=="("&&(Gt=!0);break}}else if(Mr>=3&&Mr<6)++rt;else if(j.test(kr))Gt=!0;else if(/["'\/`]/.test(kr))for(;;--Xt){if(Xt==0)return;var _t=ae.string.charAt(Xt-1);if(_t==kr&&ae.string.charAt(Xt-2)!="\\"){Xt--;break}}else if(Gt&&!rt){++Xt;break}}Gt&&!rt&&(Ae.fatArrowAt=Xt)}}var q={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ne(ae,Ae,Ge,tt,rt,Gt){this.indented=ae,this.column=Ae,this.type=Ge,this.prev=rt,this.info=Gt,tt!=null&&(this.align=tt)}function ge(ae,Ae){if(!L)return!1;for(var Ge=ae.localVars;Ge;Ge=Ge.next)if(Ge.name==Ae)return!0;for(var tt=ae.context;tt;tt=tt.prev)for(var Ge=tt.vars;Ge;Ge=Ge.next)if(Ge.name==Ae)return!0}function me(ae,Ae,Ge,tt,rt){var Gt=ae.cc;for(pe.state=ae,pe.stream=rt,pe.marked=null,pe.cc=Gt,pe.style=Ae,ae.lexical.hasOwnProperty("align")||(ae.lexical.align=!0);;){var Xt=Gt.length?Gt.pop():S?Ot:dt;if(Xt(Ge,tt)){for(;Gt.length&&Gt[Gt.length-1].lex;)Gt.pop()();return pe.marked?pe.marked:Ge=="variable"&&ge(ae,tt)?"variable-2":Ae}}}var pe={state:null,column:null,marked:null,cc:null};function se(){for(var ae=arguments.length-1;ae>=0;ae--)pe.cc.push(arguments[ae])}function ie(){return se.apply(null,arguments),!0}function Oe(ae,Ae){for(var Ge=Ae;Ge;Ge=Ge.next)if(Ge.name==ae)return!0;return!1}function Pe(ae){var Ae=pe.state;if(pe.marked="def",!!L){if(Ae.context){if(Ae.lexical.info=="var"&&Ae.context&&Ae.context.block){var Ge=Te(ae,Ae.context);if(Ge!=null){Ae.context=Ge;return}}else if(!Oe(ae,Ae.localVars)){Ae.localVars=new He(ae,Ae.localVars);return}}m.globalVars&&!Oe(ae,Ae.globalVars)&&(Ae.globalVars=new He(ae,Ae.globalVars))}}function Te(ae,Ae){if(Ae)if(Ae.block){var Ge=Te(ae,Ae.prev);return Ge?Ge==Ae.prev?Ae:new Xe(Ge,Ae.vars,!0):null}else return Oe(ae,Ae.vars)?Ae:new Xe(Ae.prev,new He(ae,Ae.vars),!1);else return null}function Ce(ae){return ae=="public"||ae=="private"||ae=="protected"||ae=="abstract"||ae=="readonly"}function Xe(ae,Ae,Ge){this.prev=ae,this.vars=Ae,this.block=Ge}function He(ae,Ae){this.name=ae,this.next=Ae}var Je=new He("this",new He("arguments",null));function ut(){pe.state.context=new Xe(pe.state.context,pe.state.localVars,!1),pe.state.localVars=Je}function ft(){pe.state.context=new Xe(pe.state.context,pe.state.localVars,!0),pe.state.localVars=null}function yt(){pe.state.localVars=pe.state.context.vars,pe.state.context=pe.state.context.prev}yt.lex=!0;function Qe(ae,Ae){var Ge=function(){var tt=pe.state,rt=tt.indented;if(tt.lexical.type=="stat")rt=tt.lexical.indented;else for(var Gt=tt.lexical;Gt&&Gt.type==")"&&Gt.align;Gt=Gt.prev)rt=Gt.indented;tt.lexical=new ne(rt,pe.stream.column(),ae,null,tt.lexical,Ae)};return Ge.lex=!0,Ge}function nt(){var ae=pe.state;ae.lexical.prev&&(ae.lexical.type==")"&&(ae.indented=ae.lexical.indented),ae.lexical=ae.lexical.prev)}nt.lex=!0;function ct(ae){function Ae(Ge){return Ge==ae?ie():ae==";"||Ge=="}"||Ge==")"||Ge=="]"?se():ie(Ae)}return Ae}function dt(ae,Ae){return ae=="var"?ie(Qe("vardef",Ae),Ei,ct(";"),nt):ae=="keyword a"?ie(Qe("form"),St,dt,nt):ae=="keyword b"?ie(Qe("form"),dt,nt):ae=="keyword d"?pe.stream.match(/^\s*$/,!1)?ie():ie(Qe("stat"),Dt,ct(";"),nt):ae=="debugger"?ie(ct(";")):ae=="{"?ie(Qe("}"),ft,D,nt,yt):ae==";"?ie():ae=="if"?(pe.state.lexical.info=="else"&&pe.state.cc[pe.state.cc.length-1]==nt&&pe.state.cc.pop()(),ie(Qe("form"),St,dt,nt,Zr)):ae=="function"?ie(An):ae=="for"?ie(Qe("form"),ft,Oi,dt,yt,nt):ae=="class"||N&&Ae=="interface"?(pe.marked="keyword",ie(Qe("form",ae=="class"?ae:Ae),Pi,nt)):ae=="variable"?N&&Ae=="declare"?(pe.marked="keyword",ie(dt)):N&&(Ae=="module"||Ae=="enum"||Ae=="type")&&pe.stream.match(/^\s*\w/,!1)?(pe.marked="keyword",Ae=="enum"?ie(ya):Ae=="type"?ie($n,ct("operator"),be,ct(";")):ie(Qe("form"),Qr,ct("{"),Qe("}"),D,nt,nt)):N&&Ae=="namespace"?(pe.marked="keyword",ie(Qe("form"),Ot,dt,nt)):N&&Ae=="abstract"?(pe.marked="keyword",ie(dt)):ie(Qe("stat"),Bt):ae=="switch"?ie(Qe("form"),St,ct("{"),Qe("}","switch"),ft,D,nt,nt,yt):ae=="case"?ie(Ot,ct(":")):ae=="default"?ie(ct(":")):ae=="catch"?ie(Qe("form"),ut,st,dt,nt,yt):ae=="export"?ie(Qe("stat"),hr,nt):ae=="import"?ie(Qe("stat"),fi,nt):ae=="async"?ie(dt):Ae=="@"?ie(Ot,dt):se(Qe("stat"),Ot,ct(";"),nt)}function st(ae){if(ae=="(")return ie(wn,ct(")"))}function Ot(ae,Ae){return Ut(ae,Ae,!1)}function Et(ae,Ae){return Ut(ae,Ae,!0)}function St(ae){return ae!="("?se():ie(Qe(")"),Dt,ct(")"),nt)}function Ut(ae,Ae,Ge){if(pe.state.fatArrowAt==pe.stream.start){var tt=Ge?Kt:zt;if(ae=="(")return ie(ut,Qe(")"),T(wn,")"),nt,ct("=>"),tt,yt);if(ae=="variable")return se(ut,Qr,ct("=>"),tt,yt)}var rt=Ge?mt:Nt;return q.hasOwnProperty(ae)?ie(rt):ae=="function"?ie(An,rt):ae=="class"||N&&Ae=="interface"?(pe.marked="keyword",ie(Qe("form"),ei,nt)):ae=="keyword c"||ae=="async"?ie(Ge?Et:Ot):ae=="("?ie(Qe(")"),Dt,ct(")"),nt,rt):ae=="operator"||ae=="spread"?ie(Ge?Et:Ot):ae=="["?ie(Qe("]"),ri,nt,rt):ae=="{"?oe(Be,"}",null,rt):ae=="quasi"?se(It,rt):ae=="new"?ie(sr(Ge)):ie()}function Dt(ae){return ae.match(/[;\}\)\],]/)?se():se(Ot)}function Nt(ae,Ae){return ae==","?ie(Dt):mt(ae,Ae,!1)}function mt(ae,Ae,Ge){var tt=Ge==!1?Nt:mt,rt=Ge==!1?Ot:Et;if(ae=="=>")return ie(ut,Ge?Kt:zt,yt);if(ae=="operator")return/\+\+|--/.test(Ae)||N&&Ae=="!"?ie(tt):N&&Ae=="<"&&pe.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?ie(Qe(">"),T(be,">"),nt,tt):Ae=="?"?ie(Ot,ct(":"),rt):ie(rt);if(ae=="quasi")return se(It,tt);if(ae!=";"){if(ae=="(")return oe(Et,")","call",tt);if(ae==".")return ie(k,tt);if(ae=="[")return ie(Qe("]"),Dt,ct("]"),nt,tt);if(N&&Ae=="as")return pe.marked="keyword",ie(be,tt);if(ae=="regexp")return pe.state.lastType=pe.marked="operator",pe.stream.backUp(pe.stream.pos-pe.stream.start-1),ie(rt)}}function It(ae,Ae){return ae!="quasi"?se():Ae.slice(Ae.length-2)!="${"?ie(It):ie(Dt,ht)}function ht(ae){if(ae=="}")return pe.marked="string-2",pe.state.tokenize=X,ie(It)}function zt(ae){return ue(pe.stream,pe.state),se(ae=="{"?dt:Ot)}function Kt(ae){return ue(pe.stream,pe.state),se(ae=="{"?dt:Et)}function sr(ae){return function(Ae){return Ae=="."?ie(ae?Wt:Mt):Ae=="variable"&&N?ie(bn,ae?mt:Nt):se(ae?Et:Ot)}}function Mt(ae,Ae){if(Ae=="target")return pe.marked="keyword",ie(Nt)}function Wt(ae,Ae){if(Ae=="target")return pe.marked="keyword",ie(mt)}function Bt(ae){return ae==":"?ie(nt,dt):se(Nt,ct(";"),nt)}function k(ae){if(ae=="variable")return pe.marked="property",ie()}function Be(ae,Ae){if(ae=="async")return pe.marked="property",ie(Be);if(ae=="variable"||pe.style=="keyword"){if(pe.marked="property",Ae=="get"||Ae=="set")return ie($);var Ge;return N&&pe.state.fatArrowAt==pe.stream.start&&(Ge=pe.stream.match(/^\s*:\s*/,!1))&&(pe.state.fatArrowAt=pe.stream.pos+Ge[0].length),ie(O)}else{if(ae=="number"||ae=="string")return pe.marked=C?"property":pe.style+" property",ie(O);if(ae=="jsonld-keyword")return ie(O);if(N&&Ce(Ae))return pe.marked="keyword",ie(Be);if(ae=="[")return ie(Ot,_,ct("]"),O);if(ae=="spread")return ie(Et,O);if(Ae=="*")return pe.marked="keyword",ie(Be);if(ae==":")return se(O)}}function $(ae){return ae!="variable"?se(O):(pe.marked="property",ie(An))}function O(ae){if(ae==":")return ie(Et);if(ae=="(")return se(An)}function T(ae,Ae,Ge){function tt(rt,Gt){if(Ge?Ge.indexOf(rt)>-1:rt==","){var Xt=pe.state.lexical;return Xt.info=="call"&&(Xt.pos=(Xt.pos||0)+1),ie(function(kr,Mr){return kr==Ae||Mr==Ae?se():se(ae)},tt)}return rt==Ae||Gt==Ae?ie():Ge&&Ge.indexOf(";")>-1?se(ae):ie(ct(Ae))}return function(rt,Gt){return rt==Ae||Gt==Ae?ie():se(ae,tt)}}function oe(ae,Ae,Ge){for(var tt=3;tt<arguments.length;tt++)pe.cc.push(arguments[tt]);return ie(Qe(Ae,Ge),T(ae,Ae),nt)}function D(ae){return ae=="}"?ie():se(dt,D)}function _(ae,Ae){if(N){if(ae==":")return ie(be);if(Ae=="?")return ie(_)}}function fe(ae,Ae){if(N&&(ae==":"||Ae=="in"))return ie(be)}function te(ae){if(N&&ae==":")return pe.stream.match(/^\s*\w+\s+is\b/,!1)?ie(Ot,ce,be):ie(be)}function ce(ae,Ae){if(Ae=="is")return pe.marked="keyword",ie()}function be(ae,Ae){if(Ae=="keyof"||Ae=="typeof"||Ae=="infer"||Ae=="readonly")return pe.marked="keyword",ie(Ae=="typeof"?Et:be);if(ae=="variable"||Ae=="void")return pe.marked="type",ie(At);if(Ae=="|"||Ae=="&")return ie(be);if(ae=="string"||ae=="number"||ae=="atom")return ie(At);if(ae=="[")return ie(Qe("]"),T(be,"]",","),nt,At);if(ae=="{")return ie(Qe("}"),Re,nt,At);if(ae=="(")return ie(T(Ft,")"),Le,At);if(ae=="<")return ie(T(be,">"),be);if(ae=="quasi")return se(ot,At)}function Le(ae){if(ae=="=>")return ie(be)}function Re(ae){return ae.match(/[\}\)\]]/)?ie():ae==","||ae==";"?ie(Re):se(We,Re)}function We(ae,Ae){if(ae=="variable"||pe.style=="keyword")return pe.marked="property",ie(We);if(Ae=="?"||ae=="number"||ae=="string")return ie(We);if(ae==":")return ie(be);if(ae=="[")return ie(ct("variable"),fe,ct("]"),We);if(ae=="(")return se(Gn,We);if(!ae.match(/[;\}\)\],]/))return ie()}function ot(ae,Ae){return ae!="quasi"?se():Ae.slice(Ae.length-2)!="${"?ie(ot):ie(be,vt)}function vt(ae){if(ae=="}")return pe.marked="string-2",pe.state.tokenize=X,ie(ot)}function Ft(ae,Ae){return ae=="variable"&&pe.stream.match(/^\s*[?:]/,!1)||Ae=="?"?ie(Ft):ae==":"?ie(be):ae=="spread"?ie(Ft):se(be)}function At(ae,Ae){if(Ae=="<")return ie(Qe(">"),T(be,">"),nt,At);if(Ae=="|"||ae=="."||Ae=="&")return ie(be);if(ae=="[")return ie(be,ct("]"),At);if(Ae=="extends"||Ae=="implements")return pe.marked="keyword",ie(be);if(Ae=="?")return ie(be,ct(":"),be)}function bn(ae,Ae){if(Ae=="<")return ie(Qe(">"),T(be,">"),nt,At)}function zr(){return se(be,Fr)}function Fr(ae,Ae){if(Ae=="=")return ie(be)}function Ei(ae,Ae){return Ae=="enum"?(pe.marked="keyword",ie(ya)):se(Qr,_,Sn,Rn)}function Qr(ae,Ae){if(N&&Ce(Ae))return pe.marked="keyword",ie(Qr);if(ae=="variable")return Pe(Ae),ie();if(ae=="spread")return ie(Qr);if(ae=="[")return oe(zn,"]");if(ae=="{")return oe($i,"}")}function $i(ae,Ae){return ae=="variable"&&!pe.stream.match(/^\s*:/,!1)?(Pe(Ae),ie(Sn)):(ae=="variable"&&(pe.marked="property"),ae=="spread"?ie(Qr):ae=="}"?se():ae=="["?ie(Ot,ct("]"),ct(":"),$i):ie(ct(":"),Qr,Sn))}function zn(){return se(Qr,Sn)}function Sn(ae,Ae){if(Ae=="=")return ie(Et)}function Rn(ae){if(ae==",")return ie(Ei)}function Zr(ae,Ae){if(ae=="keyword b"&&Ae=="else")return ie(Qe("form","else"),dt,nt)}function Oi(ae,Ae){if(Ae=="await")return ie(Oi);if(ae=="(")return ie(Qe(")"),Ti,nt)}function Ti(ae){return ae=="var"?ie(Ei,ln):ae=="variable"?ie(ln):se(ln)}function ln(ae,Ae){return ae==")"?ie():ae==";"?ie(ln):Ae=="in"||Ae=="of"?(pe.marked="keyword",ie(Ot,ln)):se(Ot,ln)}function An(ae,Ae){if(Ae=="*")return pe.marked="keyword",ie(An);if(ae=="variable")return Pe(Ae),ie(An);if(ae=="(")return ie(ut,Qe(")"),T(wn,")"),nt,te,dt,yt);if(N&&Ae=="<")return ie(Qe(">"),T(zr,">"),nt,An)}function Gn(ae,Ae){if(Ae=="*")return pe.marked="keyword",ie(Gn);if(ae=="variable")return Pe(Ae),ie(Gn);if(ae=="(")return ie(ut,Qe(")"),T(wn,")"),nt,te,yt);if(N&&Ae=="<")return ie(Qe(">"),T(zr,">"),nt,Gn)}function $n(ae,Ae){if(ae=="keyword"||ae=="variable")return pe.marked="type",ie($n);if(Ae=="<")return ie(Qe(">"),T(zr,">"),nt)}function wn(ae,Ae){return Ae=="@"&&ie(Ot,wn),ae=="spread"?ie(wn):N&&Ce(Ae)?(pe.marked="keyword",ie(wn)):N&&ae=="this"?ie(_,Sn):se(Qr,_,Sn)}function ei(ae,Ae){return ae=="variable"?Pi(ae,Ae):Gr(ae,Ae)}function Pi(ae,Ae){if(ae=="variable")return Pe(Ae),ie(Gr)}function Gr(ae,Ae){if(Ae=="<")return ie(Qe(">"),T(zr,">"),nt,Gr);if(Ae=="extends"||Ae=="implements"||N&&ae==",")return Ae=="implements"&&(pe.marked="keyword"),ie(N?be:Ot,Gr);if(ae=="{")return ie(Qe("}"),qr,nt)}function qr(ae,Ae){if(ae=="async"||ae=="variable"&&(Ae=="static"||Ae=="get"||Ae=="set"||N&&Ce(Ae))&&pe.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return pe.marked="keyword",ie(qr);if(ae=="variable"||pe.style=="keyword")return pe.marked="property",ie(ti,qr);if(ae=="number"||ae=="string")return ie(ti,qr);if(ae=="[")return ie(Ot,_,ct("]"),ti,qr);if(Ae=="*")return pe.marked="keyword",ie(qr);if(N&&ae=="(")return se(Gn,qr);if(ae==";"||ae==",")return ie(qr);if(ae=="}")return ie();if(Ae=="@")return ie(Ot,qr)}function ti(ae,Ae){if(Ae=="!"||Ae=="?")return ie(ti);if(ae==":")return ie(be,Sn);if(Ae=="=")return ie(Et);var Ge=pe.state.lexical.prev,tt=Ge&&Ge.info=="interface";return se(tt?Gn:An)}function hr(ae,Ae){return Ae=="*"?(pe.marked="keyword",ie(Kn,ct(";"))):Ae=="default"?(pe.marked="keyword",ie(Ot,ct(";"))):ae=="{"?ie(T(xt,"}"),Kn,ct(";")):se(dt)}function xt(ae,Ae){if(Ae=="as")return pe.marked="keyword",ie(ct("variable"));if(ae=="variable")return se(Et,xt)}function fi(ae){return ae=="string"?ie():ae=="("?se(Ot):ae=="."?se(Nt):se(Ii,Fn,Kn)}function Ii(ae,Ae){return ae=="{"?oe(Ii,"}"):(ae=="variable"&&Pe(Ae),Ae=="*"&&(pe.marked="keyword"),ie(qt))}function Fn(ae){if(ae==",")return ie(Ii,Fn)}function qt(ae,Ae){if(Ae=="as")return pe.marked="keyword",ie(Ii)}function Kn(ae,Ae){if(Ae=="from")return pe.marked="keyword",ie(Ot)}function ri(ae){return ae=="]"?ie():se(T(Et,"]"))}function ya(){return se(Qe("form"),Qr,ct("{"),Qe("}"),T(qe,"}"),nt,nt)}function qe(){return se(Qr,Sn)}function Pt(ae,Ae){return ae.lastType=="operator"||ae.lastType==","||Q.test(Ae.charAt(0))||/[,.]/.test(Ae.charAt(0))}function ci(ae,Ae,Ge){return Ae.tokenize==V&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(Ae.lastType)||Ae.lastType=="quasi"&&/\{\s*$/.test(ae.string.slice(0,ae.pos-(Ge||0)))}return{startState:function(ae){var Ae={tokenize:V,lastType:"sof",cc:[],lexical:new ne((ae||0)-h,0,"block",!1),localVars:m.localVars,context:m.localVars&&new Xe(null,null,!1),indented:ae||0};return m.globalVars&&typeof m.globalVars=="object"&&(Ae.globalVars=m.globalVars),Ae},token:function(ae,Ae){if(ae.sol()&&(Ae.lexical.hasOwnProperty("align")||(Ae.lexical.align=!1),Ae.indented=ae.indentation(),ue(ae,Ae)),Ae.tokenize!=Z&&ae.eatSpace())return null;var Ge=Ae.tokenize(ae,Ae);return Y=="comment"?Ge:(Ae.lastType=Y=="operator"&&(R=="++"||R=="--")?"incdec":Y,me(Ae,Ge,Y,R,ae))},indent:function(ae,Ae){if(ae.tokenize==Z||ae.tokenize==X)return c.Pass;if(ae.tokenize!=V)return 0;var Ge=Ae&&Ae.charAt(0),tt=ae.lexical,rt;if(!/^\s*else\b/.test(Ae))for(var Gt=ae.cc.length-1;Gt>=0;--Gt){var Xt=ae.cc[Gt];if(Xt==nt)tt=tt.prev;else if(Xt!=Zr&&Xt!=yt)break}for(;(tt.type=="stat"||tt.type=="form")&&(Ge=="}"||(rt=ae.cc[ae.cc.length-1])&&(rt==Nt||rt==mt)&&!/^[,\.=+\-*:?[\(]/.test(Ae));)tt=tt.prev;b&&tt.type==")"&&tt.prev.type=="stat"&&(tt=tt.prev);var kr=tt.type,Mr=Ge==kr;return kr=="vardef"?tt.indented+(ae.lastType=="operator"||ae.lastType==","?tt.info.length+1:0):kr=="form"&&Ge=="{"?tt.indented:kr=="form"?tt.indented+h:kr=="stat"?tt.indented+(Pt(ae,Ae)?b||h:0):tt.info=="switch"&&!Mr&&m.doubleIndentSwitch!=!1?tt.indented+(/^(?:case|default)\b/.test(Ae)?h:2*h):tt.align?tt.column+(Mr?0:1):tt.indented+(Mr?0:h)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:S?null:"/*",blockCommentEnd:S?null:"*/",blockCommentContinue:S?null:" * ",lineComment:S?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:S?"json":"javascript",jsonldMode:C,jsonMode:S,expressionAllowed:ci,skipExpression:function(ae){me(ae,"atom","atom","true",new c.StringStream("",2,null))}}}),c.registerHelper("wordChars","javascript",/[\w$]/),c.defineMIME("text/javascript","javascript"),c.defineMIME("text/ecmascript","javascript"),c.defineMIME("application/javascript","javascript"),c.defineMIME("application/x-javascript","javascript"),c.defineMIME("application/ecmascript","javascript"),c.defineMIME("application/json",{name:"javascript",json:!0}),c.defineMIME("application/x-json",{name:"javascript",json:!0}),c.defineMIME("application/manifest+json",{name:"javascript",json:!0}),c.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),c.defineMIME("text/typescript",{name:"javascript",typescript:!0}),c.defineMIME("application/typescript",{name:"javascript",typescript:!0})})},76489:(p,I)=>{"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
- */I.parse=h,I.serialize=b;var a=decodeURIComponent,c=encodeURIComponent,v=/; */,m=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function h(S,L){if(typeof S!="string")throw new TypeError("argument str must be a string");for(var N={},j=L||{},U=S.split(v),Q=j.decode||a,K=0;K<U.length;K++){var M=U[K],Y=M.indexOf("=");if(!(Y<0)){var R=M.substr(0,Y).trim(),E=M.substr(++Y,M.length).trim();E[0]=='"'&&(E=E.slice(1,-1)),N[R]==null&&(N[R]=C(E,Q))}}return N}function b(S,L,N){var j=N||{},U=j.encode||c;if(typeof U!="function")throw new TypeError("option encode is invalid");if(!m.test(S))throw new TypeError("argument name is invalid");var Q=U(L);if(Q&&!m.test(Q))throw new TypeError("argument val is invalid");var K=S+"="+Q;if(j.maxAge!=null){var M=j.maxAge-0;if(isNaN(M)||!isFinite(M))throw new TypeError("option maxAge is invalid");K+="; Max-Age="+Math.floor(M)}if(j.domain){if(!m.test(j.domain))throw new TypeError("option domain is invalid");K+="; Domain="+j.domain}if(j.path){if(!m.test(j.path))throw new TypeError("option path is invalid");K+="; Path="+j.path}if(j.expires){if(typeof j.expires.toUTCString!="function")throw new TypeError("option expires is invalid");K+="; Expires="+j.expires.toUTCString()}if(j.httpOnly&&(K+="; HttpOnly"),j.secure&&(K+="; Secure"),j.sameSite){var Y=typeof j.sameSite=="string"?j.sameSite.toLowerCase():j.sameSite;switch(Y){case!0:K+="; SameSite=Strict";break;case"lax":K+="; SameSite=Lax";break;case"strict":K+="; SameSite=Strict";break;case"none":K+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return K}function C(S,L){try{return L(S)}catch(N){return S}}},54493:(p,I,a)=>{a(77971),a(53242);var c=a(54058);p.exports=c.Array.from},24034:(p,I,a)=>{a(92737);var c=a(54058);p.exports=c.Array.isArray},15367:(p,I,a)=>{a(85906);var c=a(35703);p.exports=c("Array").concat},12710:(p,I,a)=>{a(66274);var c=a(35703);p.exports=c("Array").entries},62383:(p,I,a)=>{a(21501);var c=a(35703);p.exports=c("Array").filter},17671:(p,I,a)=>{a(80833);var c=a(35703);p.exports=c("Array").find},99324:(p,I,a)=>{a(2437);var c=a(35703);p.exports=c("Array").forEach},80991:(p,I,a)=>{a(97690);var c=a(35703);p.exports=c("Array").includes},8700:(p,I,a)=>{a(99076);var c=a(35703);p.exports=c("Array").indexOf},23866:(p,I,a)=>{a(68787);var c=a(35703);p.exports=c("Array").map},24900:(p,I,a)=>{a(60186);var c=a(35703);p.exports=c("Array").slice},78209:(p,I,a)=>{a(98611);var c=a(35703);p.exports=c("Array").splice},56043:(p,I,a)=>{var c=a(15367),v=Array.prototype;p.exports=function(m){var h=m.concat;return m===v||m instanceof Array&&h===v.concat?c:h}},2480:(p,I,a)=>{var c=a(62383),v=Array.prototype;p.exports=function(m){var h=m.filter;return m===v||m instanceof Array&&h===v.filter?c:h}},32236:(p,I,a)=>{var c=a(17671),v=Array.prototype;p.exports=function(m){var h=m.find;return m===v||m instanceof Array&&h===v.find?c:h}},58557:(p,I,a)=>{var c=a(80991),v=a(21631),m=Array.prototype,h=String.prototype;p.exports=function(b){var C=b.includes;return b===m||b instanceof Array&&C===m.includes?c:typeof b=="string"||b===h||b instanceof String&&C===h.includes?v:C}},34570:(p,I,a)=>{var c=a(8700),v=Array.prototype;p.exports=function(m){var h=m.indexOf;return m===v||m instanceof Array&&h===v.indexOf?c:h}},88287:(p,I,a)=>{var c=a(23866),v=Array.prototype;p.exports=function(m){var h=m.map;return m===v||m instanceof Array&&h===v.map?c:h}},69601:(p,I,a)=>{var c=a(24900),v=Array.prototype;p.exports=function(m){var h=m.slice;return m===v||m instanceof Array&&h===v.slice?c:h}},18339:(p,I,a)=>{var c=a(78209),v=Array.prototype;p.exports=function(m){var h=m.splice;return m===v||m instanceof Array&&h===v.splice?c:h}},84426:(p,I,a)=>{a(32619);var c=a(54058);c.JSON||(c.JSON={stringify:JSON.stringify}),p.exports=function(m,h,b){return c.JSON.stringify.apply(null,arguments)}},45999:(p,I,a)=>{a(49221);var c=a(54058);p.exports=c.Object.assign},35254:(p,I,a)=>{a(53882);var c=a(54058),v=c.Object;p.exports=function(h,b){return v.create(h,b)}},7702:(p,I,a)=>{a(74979);var c=a(54058),v=c.Object,m=p.exports=function(b,C){return v.defineProperties(b,C)};v.defineProperties.sham&&(m.sham=!0)},48171:(p,I,a)=>{a(86450);var c=a(54058),v=c.Object,m=p.exports=function(b,C,S){return v.defineProperty(b,C,S)};v.defineProperty.sham&&(m.sham=!0)},73081:(p,I,a)=>{a(21078);var c=a(54058);p.exports=c.Object.entries},286:(p,I,a)=>{a(46924);var c=a(54058),v=c.Object,m=p.exports=function(b,C){return v.getOwnPropertyDescriptor(b,C)};v.getOwnPropertyDescriptor.sham&&(m.sham=!0)},92766:(p,I,a)=>{a(88482);var c=a(54058);p.exports=c.Object.getOwnPropertyDescriptors},30498:(p,I,a)=>{a(35824);var c=a(54058);p.exports=c.Object.getOwnPropertySymbols},13966:(p,I,a)=>{a(17405);var c=a(54058);p.exports=c.Object.getPrototypeOf},48494:(p,I,a)=>{a(21724);var c=a(54058);p.exports=c.Object.keys},3065:(p,I,a)=>{a(90108);var c=a(54058);p.exports=c.Object.setPrototypeOf},52956:(p,I,a)=>{a(47627),a(55967),a(98881),a(4560),a(91302),a(44349),a(77971),a(7634);var c=a(54058);p.exports=c.Promise},14983:(p,I,a)=>{a(7453);var c=a(54058);p.exports=c.Reflect.construct},37095:(p,I,a)=>{a(42355);var c=a(54058);p.exports=c.Reflect.get},21631:(p,I,a)=>{a(11035);var c=a(35703);p.exports=c("String").includes},57473:(p,I,a)=>{a(85906),a(55967),a(35824),a(8555),a(52615),a(21732),a(35903),a(1825),a(28394),a(45915),a(61766),a(62737),a(89911),a(74315),a(63131),a(64714),a(70659),a(69120),a(79413),a(1502);var c=a(54058);p.exports=c.Symbol},24227:(p,I,a)=>{a(1825),a(77971),a(7634);var c=a(11477);p.exports=c.f("iterator")},32304:(p,I,a)=>{a(55967),a(54334),a(7634);var c=a(54058);p.exports=c.WeakMap},27385:(p,I,a)=>{var c=a(54493);p.exports=c},81522:(p,I,a)=>{var c=a(24034);p.exports=c},32209:(p,I,a)=>{a(7634),a(77971);var c=a(22902);p.exports=c},44442:(p,I,a)=>{var c=a(2480);p.exports=c},57152:(p,I,a)=>{var c=a(46279);p.exports=c},69447:(p,I,a)=>{var c=a(34570);p.exports=c},81493:(p,I,a)=>{var c=a(69601);p.exports=c},76094:(p,I,a)=>{var c=a(35254);p.exports=c},70573:(p,I,a)=>{var c=a(7702);p.exports=c},73685:(p,I,a)=>{var c=a(48171);p.exports=c},27533:(p,I,a)=>{var c=a(286);p.exports=c},39057:(p,I,a)=>{var c=a(92766);p.exports=c},84710:(p,I,a)=>{var c=a(30498);p.exports=c},74303:(p,I,a)=>{var c=a(13966);p.exports=c},93799:(p,I,a)=>{var c=a(48494);p.exports=c},55122:(p,I,a)=>{var c=a(3065);p.exports=c},29531:(p,I,a)=>{var c=a(52956);a(89731),a(55708),a(30014),a(88731),p.exports=c},10856:(p,I,a)=>{var c=a(14983);p.exports=c},31524:(p,I,a)=>{var c=a(37095);p.exports=c},86600:(p,I,a)=>{var c=a(57473);a(28783),a(43975),a(65799),a(45414),a(46774),a(80620),a(36172),p.exports=c},9759:(p,I,a)=>{var c=a(24227);p.exports=c},33916:p=>{p.exports=function(I){if(typeof I!="function")throw TypeError(String(I)+" is not a function");return I}},42488:(p,I,a)=>{var c=a(10941);p.exports=function(v){if(!c(v)&&v!==null)throw TypeError("Can't set "+String(v)+" as a prototype");return v}},18479:p=>{p.exports=function(){}},5743:p=>{p.exports=function(I,a,c){if(!(I instanceof a))throw TypeError("Incorrect "+(c?c+" ":"")+"invocation");return I}},96059:(p,I,a)=>{var c=a(10941);p.exports=function(v){if(!c(v))throw TypeError(String(v)+" is not an object");return v}},56837:(p,I,a)=>{"use strict";var c=a(3610).forEach,v=a(34194),m=v("forEach");p.exports=m?[].forEach:function(b){return c(this,b,arguments.length>1?arguments[1]:void 0)}},11354:(p,I,a)=>{"use strict";var c=a(86843),v=a(89678),m=a(75196),h=a(6782),b=a(43057),C=a(55449),S=a(22902);p.exports=function(N){var j=v(N),U=typeof this=="function"?this:Array,Q=arguments.length,K=Q>1?arguments[1]:void 0,M=K!==void 0,Y=S(j),R=0,E,V,G,Z,X,z;if(M&&(K=c(K,Q>2?arguments[2]:void 0,2)),Y!=null&&!(U==Array&&h(Y)))for(Z=Y.call(j),X=Z.next,V=new U;!(G=X.call(Z)).done;R++)z=M?m(Z,K,[G.value,R],!0):G.value,C(V,R,z);else for(E=b(j.length),V=new U(E);E>R;R++)z=M?K(j[R],R):j[R],C(V,R,z);return V.length=R,V}},31692:(p,I,a)=>{var c=a(74529),v=a(43057),m=a(59413),h=function(b){return function(C,S,L){var N=c(C),j=v(N.length),U=m(L,j),Q;if(b&&S!=S){for(;j>U;)if(Q=N[U++],Q!=Q)return!0}else for(;j>U;U++)if((b||U in N)&&N[U]===S)return b||U||0;return!b&&-1}};p.exports={includes:h(!0),indexOf:h(!1)}},3610:(p,I,a)=>{var c=a(86843),v=a(37026),m=a(89678),h=a(43057),b=a(64692),C=[].push,S=function(L){var N=L==1,j=L==2,U=L==3,Q=L==4,K=L==6,M=L==7,Y=L==5||K;return function(R,E,V,G){for(var Z=m(R),X=v(Z),z=c(E,V,3),ue=h(X.length),q=0,ne=G||b,ge=N?ne(R,ue):j||M?ne(R,0):void 0,me,he;ue>q;q++)if((Y||q in X)&&(me=X[q],he=z(me,q,Z),L))if(N)ge[q]=he;else if(he)switch(L){case 3:return!0;case 5:return me;case 6:return q;case 2:C.call(ge,me)}else switch(L){case 4:return!1;case 7:C.call(ge,me)}return K?-1:U||Q?Q:ge}};p.exports={forEach:S(0),map:S(1),filter:S(2),some:S(3),every:S(4),find:S(5),findIndex:S(6),filterOut:S(7)}},50568:(p,I,a)=>{var c=a(95981),v=a(99813),m=a(53385),h=v("species");p.exports=function(b){return m>=51||!c(function(){var C=[],S=C.constructor={};return S[h]=function(){return{foo:1}},C[b](Boolean).foo!==1})}},34194:(p,I,a)=>{"use strict";var c=a(95981);p.exports=function(v,m){var h=[][v];return!!h&&c(function(){h.call(null,m||function(){throw 1},1)})}},64692:(p,I,a)=>{var c=a(10941),v=a(1052),m=a(99813),h=m("species");p.exports=function(b,C){var S;return v(b)&&(S=b.constructor,typeof S=="function"&&(S===Array||v(S.prototype))?S=void 0:c(S)&&(S=S[h],S===null&&(S=void 0))),new(S===void 0?Array:S)(C===0?0:C)}},75196:(p,I,a)=>{var c=a(96059),v=a(7609);p.exports=function(m,h,b,C){try{return C?h(c(b)[0],b[1]):h(b)}catch(S){throw v(m),S}}},21385:(p,I,a)=>{var c=a(99813),v=c("iterator"),m=!1;try{var h=0,b={next:function(){return{done:!!h++}},return:function(){m=!0}};b[v]=function(){return this},Array.from(b,function(){throw 2})}catch(C){}p.exports=function(C,S){if(!S&&!m)return!1;var L=!1;try{var N={};N[v]=function(){return{next:function(){return{done:L=!0}}}},C(N)}catch(j){}return L}},82532:p=>{var I={}.toString;p.exports=function(a){return I.call(a).slice(8,-1)}},9697:(p,I,a)=>{var c=a(22885),v=a(82532),m=a(99813),h=m("toStringTag"),b=v(function(){return arguments}())=="Arguments",C=function(S,L){try{return S[L]}catch(N){}};p.exports=c?v:function(S){var L,N,j;return S===void 0?"Undefined":S===null?"Null":typeof(N=C(L=Object(S),h))=="string"?N:b?v(L):(j=v(L))=="Object"&&typeof L.callee=="function"?"Arguments":j}},8850:(p,I,a)=>{"use strict";var c=a(87524),v=a(21647).getWeakData,m=a(96059),h=a(10941),b=a(5743),C=a(93091),S=a(3610),L=a(47457),N=a(45402),j=N.set,U=N.getterFor,Q=S.find,K=S.findIndex,M=0,Y=function(V){return V.frozen||(V.frozen=new R)},R=function(){this.entries=[]},E=function(V,G){return Q(V.entries,function(Z){return Z[0]===G})};R.prototype={get:function(V){var G=E(this,V);if(G)return G[1]},has:function(V){return!!E(this,V)},set:function(V,G){var Z=E(this,V);Z?Z[1]=G:this.entries.push([V,G])},delete:function(V){var G=K(this.entries,function(Z){return Z[0]===V});return~G&&this.entries.splice(G,1),!!~G}},p.exports={getConstructor:function(V,G,Z,X){var z=V(function(ne,ge){b(ne,z,G),j(ne,{type:G,id:M++,frozen:void 0}),ge!=null&&C(ge,ne[X],{that:ne,AS_ENTRIES:Z})}),ue=U(G),q=function(ne,ge,me){var he=ue(ne),le=v(m(ge),!0);return le===!0?Y(he).set(ge,me):le[he.id]=me,ne};return c(z.prototype,{delete:function(ne){var ge=ue(this);if(!h(ne))return!1;var me=v(ne);return me===!0?Y(ge).delete(ne):me&&L(me,ge.id)&&delete me[ge.id]},has:function(ge){var me=ue(this);if(!h(ge))return!1;var he=v(ge);return he===!0?Y(me).has(ge):he&&L(he,me.id)}}),c(z.prototype,Z?{get:function(ge){var me=ue(this);if(h(ge)){var he=v(ge);return he===!0?Y(me).get(ge):he?he[me.id]:void 0}},set:function(ge,me){return q(this,ge,me)}}:{add:function(ge){return q(this,ge,!0)}}),z}}},24683:(p,I,a)=>{"use strict";var c=a(76887),v=a(21899),m=a(21647),h=a(95981),b=a(32029),C=a(93091),S=a(5743),L=a(10941),N=a(90904),j=a(65988).f,U=a(3610).forEach,Q=a(55746),K=a(45402),M=K.set,Y=K.getterFor;p.exports=function(R,E,V){var G=R.indexOf("Map")!==-1,Z=R.indexOf("Weak")!==-1,X=G?"set":"add",z=v[R],ue=z&&z.prototype,q={},ne;if(!Q||typeof z!="function"||!(Z||ue.forEach&&!h(function(){new z().entries().next()})))ne=V.getConstructor(E,R,G,X),m.REQUIRED=!0;else{ne=E(function(me,he){M(S(me,ne,R),{type:R,collection:new z}),he!=null&&C(he,me[X],{that:me,AS_ENTRIES:G})});var ge=Y(R);U(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(me){var he=me=="add"||me=="set";me in ue&&!(Z&&me=="clear")&&b(ne.prototype,me,function(le,ie){var Oe=ge(this).collection;if(!he&&Z&&!L(le))return me=="get"?void 0:!1;var Pe=Oe[me](le===0?0:le,ie);return he?this:Pe})}),Z||j(ne.prototype,"size",{configurable:!0,get:function(){return ge(this).collection.size}})}return N(ne,R,!1,!0),q[R]=ne,c({global:!0,forced:!0},q),Z||V.setStrong(ne,R,G),ne}},67772:(p,I,a)=>{var c=a(99813),v=c("match");p.exports=function(m){var h=/./;try{"/./"[m](h)}catch(b){try{return h[v]=!1,"/./"[m](h)}catch(C){}}return!1}},64160:(p,I,a)=>{var c=a(95981);p.exports=!c(function(){function v(){}return v.prototype.constructor=null,Object.getPrototypeOf(new v)!==v.prototype})},31046:(p,I,a)=>{"use strict";var c=a(35143).IteratorPrototype,v=a(29290),m=a(31887),h=a(90904),b=a(12077),C=function(){return this};p.exports=function(S,L,N){var j=L+" Iterator";return S.prototype=v(c,{next:m(1,N)}),h(S,j,!1,!0),b[j]=C,S}},32029:(p,I,a)=>{var c=a(55746),v=a(65988),m=a(31887);p.exports=c?function(h,b,C){return v.f(h,b,m(1,C))}:function(h,b,C){return h[b]=C,h}},31887:p=>{p.exports=function(I,a){return{enumerable:!(I&1),configurable:!(I&2),writable:!(I&4),value:a}}},55449:(p,I,a)=>{"use strict";var c=a(46935),v=a(65988),m=a(31887);p.exports=function(h,b,C){var S=c(b);S in h?v.f(h,S,m(0,C)):h[S]=C}},47771:(p,I,a)=>{"use strict";var c=a(76887),v=a(31046),m=a(249),h=a(88929),b=a(90904),C=a(32029),S=a(99754),L=a(99813),N=a(82529),j=a(12077),U=a(35143),Q=U.IteratorPrototype,K=U.BUGGY_SAFARI_ITERATORS,M=L("iterator"),Y="keys",R="values",E="entries",V=function(){return this};p.exports=function(G,Z,X,z,ue,q,ne){v(X,Z,z);var ge=function(He){if(He===ue&&Oe)return Oe;if(!K&&He in le)return le[He];switch(He){case Y:return function(){return new X(this,He)};case R:return function(){return new X(this,He)};case E:return function(){return new X(this,He)}}return function(){return new X(this)}},me=Z+" Iterator",he=!1,le=G.prototype,ie=le[M]||le["@@iterator"]||ue&&le[ue],Oe=!K&&ie||ge(ue),Pe=Z=="Array"&&le.entries||ie,Te,Ce,Xe;if(Pe&&(Te=m(Pe.call(new G)),Q!==Object.prototype&&Te.next&&(!N&&m(Te)!==Q&&(h?h(Te,Q):typeof Te[M]!="function"&&C(Te,M,V)),b(Te,me,!0,!0),N&&(j[me]=V))),ue==R&&ie&&ie.name!==R&&(he=!0,Oe=function(){return ie.call(this)}),(!N||ne)&&le[M]!==Oe&&C(le,M,Oe),j[Z]=Oe,ue)if(Ce={values:ge(R),keys:q?Oe:ge(Y),entries:ge(E)},ne)for(Xe in Ce)(K||he||!(Xe in le))&&S(le,Xe,Ce[Xe]);else c({target:Z,proto:!0,forced:K||he},Ce);return Ce}},66349:(p,I,a)=>{var c=a(54058),v=a(47457),m=a(11477),h=a(65988).f;p.exports=function(b){var C=c.Symbol||(c.Symbol={});v(C,b)||h(C,b,{value:m.f(b)})}},55746:(p,I,a)=>{var c=a(95981);p.exports=!c(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},61333:(p,I,a)=>{var c=a(21899),v=a(10941),m=c.document,h=v(m)&&v(m.createElement);p.exports=function(b){return h?m.createElement(b):{}}},63281:p=>{p.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}},23321:p=>{p.exports=typeof window=="object"},22749:(p,I,a)=>{var c=a(2861);p.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(c)},6049:(p,I,a)=>{var c=a(82532),v=a(21899);p.exports=c(v.process)=="process"},58045:(p,I,a)=>{var c=a(2861);p.exports=/web0s(?!.*chrome)/i.test(c)},2861:(p,I,a)=>{var c=a(626);p.exports=c("navigator","userAgent")||""},53385:(p,I,a)=>{var c=a(21899),v=a(2861),m=c.process,h=m&&m.versions,b=h&&h.v8,C,S;b?(C=b.split("."),S=C[0]<4?1:C[0]+C[1]):v&&(C=v.match(/Edge\/(\d+)/),(!C||C[1]>=74)&&(C=v.match(/Chrome\/(\d+)/),C&&(S=C[1]))),p.exports=S&&+S},35703:(p,I,a)=>{var c=a(54058);p.exports=function(v){return c[v+"Prototype"]}},56759:p=>{p.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},76887:(p,I,a)=>{"use strict";var c=a(21899),v=a(49677).f,m=a(37252),h=a(54058),b=a(86843),C=a(32029),S=a(47457),L=function(N){var j=function(U,Q,K){if(this instanceof N){switch(arguments.length){case 0:return new N;case 1:return new N(U);case 2:return new N(U,Q)}return new N(U,Q,K)}return N.apply(this,arguments)};return j.prototype=N.prototype,j};p.exports=function(N,j){var U=N.target,Q=N.global,K=N.stat,M=N.proto,Y=Q?c:K?c[U]:(c[U]||{}).prototype,R=Q?h:h[U]||(h[U]={}),E=R.prototype,V,G,Z,X,z,ue,q,ne,ge;for(X in j)V=m(Q?X:U+(K?".":"#")+X,N.forced),G=!V&&Y&&S(Y,X),ue=R[X],G&&(N.noTargetGet?(ge=v(Y,X),q=ge&&ge.value):q=Y[X]),z=G&&q?q:j[X],!(G&&typeof ue==typeof z)&&(N.bind&&G?ne=b(z,c):N.wrap&&G?ne=L(z):M&&typeof z=="function"?ne=b(Function.call,z):ne=z,(N.sham||z&&z.sham||ue&&ue.sham)&&C(ne,"sham",!0),R[X]=ne,M&&(Z=U+"Prototype",S(h,Z)||C(h,Z,{}),h[Z][X]=z,N.real&&E&&!E[X]&&C(E,X,z)))}},95981:p=>{p.exports=function(I){try{return!!I()}catch(a){return!0}}},45602:(p,I,a)=>{var c=a(95981);p.exports=!c(function(){return Object.isExtensible(Object.preventExtensions({}))})},86843:(p,I,a)=>{var c=a(33916);p.exports=function(v,m,h){if(c(v),m===void 0)return v;switch(h){case 0:return function(){return v.call(m)};case 1:return function(b){return v.call(m,b)};case 2:return function(b,C){return v.call(m,b,C)};case 3:return function(b,C,S){return v.call(m,b,C,S)}}return function(){return v.apply(m,arguments)}}},98308:(p,I,a)=>{"use strict";var c=a(33916),v=a(10941),m=[].slice,h={},b=function(C,S,L){if(!(S in h)){for(var N=[],j=0;j<S;j++)N[j]="a["+j+"]";h[S]=Function("C,a","return new C("+N.join(",")+")")}return h[S](C,L)};p.exports=Function.bind||function(S){var L=c(this),N=m.call(arguments,1),j=function(){var Q=N.concat(m.call(arguments));return this instanceof j?b(L,Q.length,Q):L.apply(S,Q)};return v(L.prototype)&&(j.prototype=L.prototype),j}},626:(p,I,a)=>{var c=a(54058),v=a(21899),m=function(h){return typeof h=="function"?h:void 0};p.exports=function(h,b){return arguments.length<2?m(c[h])||m(v[h]):c[h]&&c[h][b]||v[h]&&v[h][b]}},22902:(p,I,a)=>{var c=a(9697),v=a(12077),m=a(99813),h=m("iterator");p.exports=function(b){if(b!=null)return b[h]||b["@@iterator"]||v[c(b)]}},21899:(p,I,a)=>{var c=function(v){return v&&v.Math==Math&&v};p.exports=c(typeof globalThis=="object"&&globalThis)||c(typeof window=="object"&&window)||c(typeof self=="object"&&self)||c(typeof a.g=="object"&&a.g)||function(){return this}()||Function("return this")()},47457:(p,I,a)=>{var c=a(89678),v={}.hasOwnProperty;p.exports=Object.hasOwn||function(h,b){return v.call(c(h),b)}},27748:p=>{p.exports={}},34845:(p,I,a)=>{var c=a(21899);p.exports=function(v,m){var h=c.console;h&&h.error&&(arguments.length===1?h.error(v):h.error(v,m))}},15463:(p,I,a)=>{var c=a(626);p.exports=c("document","documentElement")},2840:(p,I,a)=>{var c=a(55746),v=a(95981),m=a(61333);p.exports=!c&&!v(function(){return Object.defineProperty(m("div"),"a",{get:function(){return 7}}).a!=7})},37026:(p,I,a)=>{var c=a(95981),v=a(82532),m="".split;p.exports=c(function(){return!Object("z").propertyIsEnumerable(0)})?function(h){return v(h)=="String"?m.call(h,""):Object(h)}:Object},81302:(p,I,a)=>{var c=a(63030),v=Function.toString;typeof c.inspectSource!="function"&&(c.inspectSource=function(m){return v.call(m)}),p.exports=c.inspectSource},21647:(p,I,a)=>{var c=a(27748),v=a(10941),m=a(47457),h=a(65988).f,b=a(99418),C=a(45602),S=b("meta"),L=0,N=Object.isExtensible||function(){return!0},j=function(Y){h(Y,S,{value:{objectID:"O"+ ++L,weakData:{}}})},U=function(Y,R){if(!v(Y))return typeof Y=="symbol"?Y:(typeof Y=="string"?"S":"P")+Y;if(!m(Y,S)){if(!N(Y))return"F";if(!R)return"E";j(Y)}return Y[S].objectID},Q=function(Y,R){if(!m(Y,S)){if(!N(Y))return!0;if(!R)return!1;j(Y)}return Y[S].weakData},K=function(Y){return C&&M.REQUIRED&&N(Y)&&!m(Y,S)&&j(Y),Y},M=p.exports={REQUIRED:!1,fastKey:U,getWeakData:Q,onFreeze:K};c[S]=!0},45402:(p,I,a)=>{var c=a(38019),v=a(21899),m=a(10941),h=a(32029),b=a(47457),C=a(63030),S=a(44262),L=a(27748),N="Object already initialized",j=v.WeakMap,U,Q,K,M=function(X){return K(X)?Q(X):U(X,{})},Y=function(X){return function(z){var ue;if(!m(z)||(ue=Q(z)).type!==X)throw TypeError("Incompatible receiver, "+X+" required");return ue}};if(c||C.state){var R=C.state||(C.state=new j),E=R.get,V=R.has,G=R.set;U=function(X,z){if(V.call(R,X))throw new TypeError(N);return z.facade=X,G.call(R,X,z),z},Q=function(X){return E.call(R,X)||{}},K=function(X){return V.call(R,X)}}else{var Z=S("state");L[Z]=!0,U=function(X,z){if(b(X,Z))throw new TypeError(N);return z.facade=X,h(X,Z,z),z},Q=function(X){return b(X,Z)?X[Z]:{}},K=function(X){return b(X,Z)}}p.exports={set:U,get:Q,has:K,enforce:M,getterFor:Y}},6782:(p,I,a)=>{var c=a(99813),v=a(12077),m=c("iterator"),h=Array.prototype;p.exports=function(b){return b!==void 0&&(v.Array===b||h[m]===b)}},1052:(p,I,a)=>{var c=a(82532);p.exports=Array.isArray||function(m){return c(m)=="Array"}},37252:(p,I,a)=>{var c=a(95981),v=/#|\.prototype\./,m=function(L,N){var j=b[h(L)];return j==S?!0:j==C?!1:typeof N=="function"?c(N):!!N},h=m.normalize=function(L){return String(L).replace(v,".").toLowerCase()},b=m.data={},C=m.NATIVE="N",S=m.POLYFILL="P";p.exports=m},10941:p=>{p.exports=function(I){return typeof I=="object"?I!==null:typeof I=="function"}},82529:p=>{p.exports=!0},60685:(p,I,a)=>{var c=a(10941),v=a(82532),m=a(99813),h=m("match");p.exports=function(b){var C;return c(b)&&((C=b[h])!==void 0?!!C:v(b)=="RegExp")}},93091:(p,I,a)=>{var c=a(96059),v=a(6782),m=a(43057),h=a(86843),b=a(22902),C=a(7609),S=function(L,N){this.stopped=L,this.result=N};p.exports=function(L,N,j){var U=j&&j.that,Q=!!(j&&j.AS_ENTRIES),K=!!(j&&j.IS_ITERATOR),M=!!(j&&j.INTERRUPTED),Y=h(N,U,1+Q+M),R,E,V,G,Z,X,z,ue=function(ne){return R&&C(R),new S(!0,ne)},q=function(ne){return Q?(c(ne),M?Y(ne[0],ne[1],ue):Y(ne[0],ne[1])):M?Y(ne,ue):Y(ne)};if(K)R=L;else{if(E=b(L),typeof E!="function")throw TypeError("Target is not iterable");if(v(E)){for(V=0,G=m(L.length);G>V;V++)if(Z=q(L[V]),Z&&Z instanceof S)return Z;return new S(!1)}R=E.call(L)}for(X=R.next;!(z=X.call(R)).done;){try{Z=q(z.value)}catch(ne){throw C(R),ne}if(typeof Z=="object"&&Z&&Z instanceof S)return Z}return new S(!1)}},7609:(p,I,a)=>{var c=a(96059);p.exports=function(v){var m=v.return;if(m!==void 0)return c(m.call(v)).value}},35143:(p,I,a)=>{"use strict";var c=a(95981),v=a(249),m=a(32029),h=a(47457),b=a(99813),C=a(82529),S=b("iterator"),L=!1,N=function(){return this},j,U,Q;[].keys&&(Q=[].keys(),"next"in Q?(U=v(v(Q)),U!==Object.prototype&&(j=U)):L=!0);var K=j==null||c(function(){var M={};return j[S].call(M)!==M});K&&(j={}),(!C||K)&&!h(j,S)&&m(j,S,N),p.exports={IteratorPrototype:j,BUGGY_SAFARI_ITERATORS:L}},12077:p=>{p.exports={}},66132:(p,I,a)=>{var c=a(21899),v=a(49677).f,m=a(42941).set,h=a(22749),b=a(58045),C=a(6049),S=c.MutationObserver||c.WebKitMutationObserver,L=c.document,N=c.process,j=c.Promise,U=v(c,"queueMicrotask"),Q=U&&U.value,K,M,Y,R,E,V,G,Z;Q||(K=function(){var X,z;for(C&&(X=N.domain)&&X.exit();M;){z=M.fn,M=M.next;try{z()}catch(ue){throw M?R():Y=void 0,ue}}Y=void 0,X&&X.enter()},!h&&!C&&!b&&S&&L?(E=!0,V=L.createTextNode(""),new S(K).observe(V,{characterData:!0}),R=function(){V.data=E=!E}):j&&j.resolve?(G=j.resolve(void 0),G.constructor=j,Z=G.then,R=function(){Z.call(G,K)}):C?R=function(){N.nextTick(K)}:R=function(){m.call(c,K)}),p.exports=Q||function(X){var z={fn:X,next:void 0};Y&&(Y.next=z),M||(M=z,R()),Y=z}},19297:(p,I,a)=>{var c=a(21899);p.exports=c.Promise},72497:(p,I,a)=>{var c=a(53385),v=a(95981);p.exports=!!Object.getOwnPropertySymbols&&!v(function(){var m=Symbol();return!String(m)||!(Object(m)instanceof Symbol)||!Symbol.sham&&c&&c<41})},38019:(p,I,a)=>{var c=a(21899),v=a(81302),m=c.WeakMap;p.exports=typeof m=="function"&&/native code/.test(v(m))},69520:(p,I,a)=>{"use strict";var c=a(33916),v=function(m){var h,b;this.promise=new m(function(C,S){if(h!==void 0||b!==void 0)throw TypeError("Bad Promise constructor");h=C,b=S}),this.resolve=c(h),this.reject=c(b)};p.exports.f=function(m){return new v(m)}},70344:(p,I,a)=>{var c=a(60685);p.exports=function(v){if(c(v))throw TypeError("The method doesn't accept regular expressions");return v}},24420:(p,I,a)=>{"use strict";var c=a(55746),v=a(95981),m=a(14771),h=a(87857),b=a(36760),C=a(89678),S=a(37026),L=Object.assign,N=Object.defineProperty;p.exports=!L||v(function(){if(c&&L({b:1},L(N({},"a",{enumerable:!0,get:function(){N(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var j={},U={},Q=Symbol(),K="abcdefghijklmnopqrst";return j[Q]=7,K.split("").forEach(function(M){U[M]=M}),L({},j)[Q]!=7||m(L({},U)).join("")!=K})?function(U,Q){for(var K=C(U),M=arguments.length,Y=1,R=h.f,E=b.f;M>Y;)for(var V=S(arguments[Y++]),G=R?m(V).concat(R(V)):m(V),Z=G.length,X=0,z;Z>X;)z=G[X++],(!c||E.call(V,z))&&(K[z]=V[z]);return K}:L},29290:(p,I,a)=>{var c=a(96059),v=a(59938),m=a(56759),h=a(27748),b=a(15463),C=a(61333),S=a(44262),L=">",N="<",j="prototype",U="script",Q=S("IE_PROTO"),K=function(){},M=function(G){return N+U+L+G+N+"/"+U+L},Y=function(G){G.write(M("")),G.close();var Z=G.parentWindow.Object;return G=null,Z},R=function(){var G=C("iframe"),Z="java"+U+":",X;return G.style.display="none",b.appendChild(G),G.src=String(Z),X=G.contentWindow.document,X.open(),X.write(M("document.F=Object")),X.close(),X.F},E,V=function(){try{E=document.domain&&new ActiveXObject("htmlfile")}catch(Z){}V=E?Y(E):R();for(var G=m.length;G--;)delete V[j][m[G]];return V()};h[Q]=!0,p.exports=Object.create||function(Z,X){var z;return Z!==null?(K[j]=c(Z),z=new K,K[j]=null,z[Q]=Z):z=V(),X===void 0?z:v(z,X)}},59938:(p,I,a)=>{var c=a(55746),v=a(65988),m=a(96059),h=a(14771);p.exports=c?Object.defineProperties:function(C,S){m(C);for(var L=h(S),N=L.length,j=0,U;N>j;)v.f(C,U=L[j++],S[U]);return C}},65988:(p,I,a)=>{var c=a(55746),v=a(2840),m=a(96059),h=a(46935),b=Object.defineProperty;I.f=c?b:function(S,L,N){if(m(S),L=h(L,!0),m(N),v)try{return b(S,L,N)}catch(j){}if("get"in N||"set"in N)throw TypeError("Accessors not supported");return"value"in N&&(S[L]=N.value),S}},49677:(p,I,a)=>{var c=a(55746),v=a(36760),m=a(31887),h=a(74529),b=a(46935),C=a(47457),S=a(2840),L=Object.getOwnPropertyDescriptor;I.f=c?L:function(j,U){if(j=h(j),U=b(U,!0),S)try{return L(j,U)}catch(Q){}if(C(j,U))return m(!v.f.call(j,U),j[U])}},684:(p,I,a)=>{var c=a(74529),v=a(10946).f,m={}.toString,h=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],b=function(C){try{return v(C)}catch(S){return h.slice()}};p.exports.f=function(S){return h&&m.call(S)=="[object Window]"?b(S):v(c(S))}},10946:(p,I,a)=>{var c=a(55629),v=a(56759),m=v.concat("length","prototype");I.f=Object.getOwnPropertyNames||function(b){return c(b,m)}},87857:(p,I)=>{I.f=Object.getOwnPropertySymbols},249:(p,I,a)=>{var c=a(47457),v=a(89678),m=a(44262),h=a(64160),b=m("IE_PROTO"),C=Object.prototype;p.exports=h?Object.getPrototypeOf:function(S){return S=v(S),c(S,b)?S[b]:typeof S.constructor=="function"&&S instanceof S.constructor?S.constructor.prototype:S instanceof Object?C:null}},55629:(p,I,a)=>{var c=a(47457),v=a(74529),m=a(31692).indexOf,h=a(27748);p.exports=function(b,C){var S=v(b),L=0,N=[],j;for(j in S)!c(h,j)&&c(S,j)&&N.push(j);for(;C.length>L;)c(S,j=C[L++])&&(~m(N,j)||N.push(j));return N}},14771:(p,I,a)=>{var c=a(55629),v=a(56759);p.exports=Object.keys||function(h){return c(h,v)}},36760:(p,I)=>{"use strict";var a={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,v=c&&!a.call({1:2},1);I.f=v?function(h){var b=c(this,h);return!!b&&b.enumerable}:a},88929:(p,I,a)=>{var c=a(96059),v=a(42488);p.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var m=!1,h={},b;try{b=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,b.call(h,[]),m=h instanceof Array}catch(C){}return function(S,L){return c(S),v(L),m?b.call(S,L):S.__proto__=L,S}}():void 0)},88810:(p,I,a)=>{var c=a(55746),v=a(14771),m=a(74529),h=a(36760).f,b=function(C){return function(S){for(var L=m(S),N=v(L),j=N.length,U=0,Q=[],K;j>U;)K=N[U++],(!c||h.call(L,K))&&Q.push(C?[K,L[K]]:L[K]);return Q}};p.exports={entries:b(!0),values:b(!1)}},95623:(p,I,a)=>{"use strict";var c=a(22885),v=a(9697);p.exports=c?{}.toString:function(){return"[object "+v(this)+"]"}},31136:(p,I,a)=>{var c=a(626),v=a(10946),m=a(87857),h=a(96059);p.exports=c("Reflect","ownKeys")||function(C){var S=v.f(h(C)),L=m.f;return L?S.concat(L(C)):S}},54058:p=>{p.exports={}},40002:p=>{p.exports=function(I){try{return{error:!1,value:I()}}catch(a){return{error:!0,value:a}}}},56584:(p,I,a)=>{var c=a(96059),v=a(10941),m=a(69520);p.exports=function(h,b){if(c(h),v(b)&&b.constructor===h)return b;var C=m.f(h),S=C.resolve;return S(b),C.promise}},87524:(p,I,a)=>{var c=a(99754);p.exports=function(v,m,h){for(var b in m)h&&h.unsafe&&v[b]?v[b]=m[b]:c(v,b,m[b],h);return v}},99754:(p,I,a)=>{var c=a(32029);p.exports=function(v,m,h,b){b&&b.enumerable?v[m]=h:c(v,m,h)}},48219:p=>{p.exports=function(I){if(I==null)throw TypeError("Can't call method on "+I);return I}},4911:(p,I,a)=>{var c=a(21899),v=a(32029);p.exports=function(m,h){try{v(c,m,h)}catch(b){c[m]=h}return h}},94431:(p,I,a)=>{"use strict";var c=a(626),v=a(65988),m=a(99813),h=a(55746),b=m("species");p.exports=function(C){var S=c(C),L=v.f;h&&S&&!S[b]&&L(S,b,{configurable:!0,get:function(){return this}})}},90904:(p,I,a)=>{var c=a(22885),v=a(65988).f,m=a(32029),h=a(47457),b=a(95623),C=a(99813),S=C("toStringTag");p.exports=function(L,N,j,U){if(L){var Q=j?L:L.prototype;h(Q,S)||v(Q,S,{configurable:!0,value:N}),U&&!c&&m(Q,"toString",b)}}},44262:(p,I,a)=>{var c=a(68726),v=a(99418),m=c("keys");p.exports=function(h){return m[h]||(m[h]=v(h))}},63030:(p,I,a)=>{var c=a(21899),v=a(4911),m="__core-js_shared__",h=c[m]||v(m,{});p.exports=h},68726:(p,I,a)=>{var c=a(82529),v=a(63030);(p.exports=function(m,h){return v[m]||(v[m]=h!==void 0?h:{})})("versions",[]).push({version:"3.14.0",mode:c?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},70487:(p,I,a)=>{var c=a(96059),v=a(33916),m=a(99813),h=m("species");p.exports=function(b,C){var S=c(b).constructor,L;return S===void 0||(L=c(S)[h])==null?C:v(L)}},64620:(p,I,a)=>{var c=a(68459),v=a(48219),m=function(h){return function(b,C){var S=String(v(b)),L=c(C),N=S.length,j,U;return L<0||L>=N?h?"":void 0:(j=S.charCodeAt(L),j<55296||j>56319||L+1===N||(U=S.charCodeAt(L+1))<56320||U>57343?h?S.charAt(L):j:h?S.slice(L,L+2):(j-55296<<10)+(U-56320)+65536)}};p.exports={codeAt:m(!1),charAt:m(!0)}},42941:(p,I,a)=>{var c=a(21899),v=a(95981),m=a(86843),h=a(15463),b=a(61333),C=a(22749),S=a(6049),L=c.location,N=c.setImmediate,j=c.clearImmediate,U=c.process,Q=c.MessageChannel,K=c.Dispatch,M=0,Y={},R="onreadystatechange",E,V,G,Z=function(q){if(Y.hasOwnProperty(q)){var ne=Y[q];delete Y[q],ne()}},X=function(q){return function(){Z(q)}},z=function(q){Z(q.data)},ue=function(q){c.postMessage(q+"",L.protocol+"//"+L.host)};(!N||!j)&&(N=function(ne){for(var ge=[],me=1;arguments.length>me;)ge.push(arguments[me++]);return Y[++M]=function(){(typeof ne=="function"?ne:Function(ne)).apply(void 0,ge)},E(M),M},j=function(ne){delete Y[ne]},S?E=function(q){U.nextTick(X(q))}:K&&K.now?E=function(q){K.now(X(q))}:Q&&!C?(V=new Q,G=V.port2,V.port1.onmessage=z,E=m(G.postMessage,G,1)):c.addEventListener&&typeof postMessage=="function"&&!c.importScripts&&L&&L.protocol!=="file:"&&!v(ue)?(E=ue,c.addEventListener("message",z,!1)):R in b("script")?E=function(q){h.appendChild(b("script"))[R]=function(){h.removeChild(this),Z(q)}}:E=function(q){setTimeout(X(q),0)}),p.exports={set:N,clear:j}},59413:(p,I,a)=>{var c=a(68459),v=Math.max,m=Math.min;p.exports=function(h,b){var C=c(h);return C<0?v(C+b,0):m(C,b)}},74529:(p,I,a)=>{var c=a(37026),v=a(48219);p.exports=function(m){return c(v(m))}},68459:p=>{var I=Math.ceil,a=Math.floor;p.exports=function(c){return isNaN(c=+c)?0:(c>0?a:I)(c)}},43057:(p,I,a)=>{var c=a(68459),v=Math.min;p.exports=function(m){return m>0?v(c(m),9007199254740991):0}},89678:(p,I,a)=>{var c=a(48219);p.exports=function(v){return Object(c(v))}},46935:(p,I,a)=>{var c=a(10941);p.exports=function(v,m){if(!c(v))return v;var h,b;if(m&&typeof(h=v.toString)=="function"&&!c(b=h.call(v))||typeof(h=v.valueOf)=="function"&&!c(b=h.call(v))||!m&&typeof(h=v.toString)=="function"&&!c(b=h.call(v)))return b;throw TypeError("Can't convert object to primitive value")}},22885:(p,I,a)=>{var c=a(99813),v=c("toStringTag"),m={};m[v]="z",p.exports=String(m)==="[object z]"},99418:p=>{var I=0,a=Math.random();p.exports=function(c){return"Symbol("+String(c===void 0?"":c)+")_"+(++I+a).toString(36)}},32302:(p,I,a)=>{var c=a(72497);p.exports=c&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},11477:(p,I,a)=>{var c=a(99813);I.f=c},99813:(p,I,a)=>{var c=a(21899),v=a(68726),m=a(47457),h=a(99418),b=a(72497),C=a(32302),S=v("wks"),L=c.Symbol,N=C?L:L&&L.withoutSetter||h;p.exports=function(j){return(!m(S,j)||!(b||typeof S[j]=="string"))&&(b&&m(L,j)?S[j]=L[j]:S[j]=N("Symbol."+j)),S[j]}},47627:(p,I,a)=>{"use strict";var c=a(76887),v=a(249),m=a(88929),h=a(29290),b=a(32029),C=a(31887),S=a(93091),L=function(j,U){var Q=this;if(!(Q instanceof L))return new L(j,U);m&&(Q=m(new Error(void 0),v(Q))),U!==void 0&&b(Q,"message",String(U));var K=[];return S(j,K.push,{that:K}),b(Q,"errors",K),Q};L.prototype=h(Error.prototype,{constructor:C(5,L),message:C(5,""),name:C(5,"AggregateError")}),c({global:!0},{AggregateError:L})},85906:(p,I,a)=>{"use strict";var c=a(76887),v=a(95981),m=a(1052),h=a(10941),b=a(89678),C=a(43057),S=a(55449),L=a(64692),N=a(50568),j=a(99813),U=a(53385),Q=j("isConcatSpreadable"),K=9007199254740991,M="Maximum allowed index exceeded",Y=U>=51||!v(function(){var G=[];return G[Q]=!1,G.concat()[0]!==G}),R=N("concat"),E=function(G){if(!h(G))return!1;var Z=G[Q];return Z!==void 0?!!Z:m(G)},V=!Y||!R;c({target:"Array",proto:!0,forced:V},{concat:function(Z){var X=b(this),z=L(X,0),ue=0,q,ne,ge,me,he;for(q=-1,ge=arguments.length;q<ge;q++)if(he=q===-1?X:arguments[q],E(he)){if(me=C(he.length),ue+me>K)throw TypeError(M);for(ne=0;ne<me;ne++,ue++)ne in he&&S(z,ue,he[ne])}else{if(ue>=K)throw TypeError(M);S(z,ue++,he)}return z.length=ue,z}})},21501:(p,I,a)=>{"use strict";var c=a(76887),v=a(3610).filter,m=a(50568),h=m("filter");c({target:"Array",proto:!0,forced:!h},{filter:function(C){return v(this,C,arguments.length>1?arguments[1]:void 0)}})},80833:(p,I,a)=>{"use strict";var c=a(76887),v=a(3610).find,m=a(18479),h="find",b=!0;h in[]&&Array(1)[h](function(){b=!1}),c({target:"Array",proto:!0,forced:b},{find:function(S){return v(this,S,arguments.length>1?arguments[1]:void 0)}}),m(h)},2437:(p,I,a)=>{"use strict";var c=a(76887),v=a(56837);c({target:"Array",proto:!0,forced:[].forEach!=v},{forEach:v})},53242:(p,I,a)=>{var c=a(76887),v=a(11354),m=a(21385),h=!m(function(b){Array.from(b)});c({target:"Array",stat:!0,forced:h},{from:v})},97690:(p,I,a)=>{"use strict";var c=a(76887),v=a(31692).includes,m=a(18479);c({target:"Array",proto:!0},{includes:function(b){return v(this,b,arguments.length>1?arguments[1]:void 0)}}),m("includes")},99076:(p,I,a)=>{"use strict";var c=a(76887),v=a(31692).indexOf,m=a(34194),h=[].indexOf,b=!!h&&1/[1].indexOf(1,-0)<0,C=m("indexOf");c({target:"Array",proto:!0,forced:b||!C},{indexOf:function(L){return b?h.apply(this,arguments)||0:v(this,L,arguments.length>1?arguments[1]:void 0)}})},92737:(p,I,a)=>{var c=a(76887),v=a(1052);c({target:"Array",stat:!0},{isArray:v})},66274:(p,I,a)=>{"use strict";var c=a(74529),v=a(18479),m=a(12077),h=a(45402),b=a(47771),C="Array Iterator",S=h.set,L=h.getterFor(C);p.exports=b(Array,"Array",function(N,j){S(this,{type:C,target:c(N),index:0,kind:j})},function(){var N=L(this),j=N.target,U=N.kind,Q=N.index++;return!j||Q>=j.length?(N.target=void 0,{value:void 0,done:!0}):U=="keys"?{value:Q,done:!1}:U=="values"?{value:j[Q],done:!1}:{value:[Q,j[Q]],done:!1}},"values"),m.Arguments=m.Array,v("keys"),v("values"),v("entries")},68787:(p,I,a)=>{"use strict";var c=a(76887),v=a(3610).map,m=a(50568),h=m("map");c({target:"Array",proto:!0,forced:!h},{map:function(C){return v(this,C,arguments.length>1?arguments[1]:void 0)}})},60186:(p,I,a)=>{"use strict";var c=a(76887),v=a(10941),m=a(1052),h=a(59413),b=a(43057),C=a(74529),S=a(55449),L=a(99813),N=a(50568),j=N("slice"),U=L("species"),Q=[].slice,K=Math.max;c({target:"Array",proto:!0,forced:!j},{slice:function(Y,R){var E=C(this),V=b(E.length),G=h(Y,V),Z=h(R===void 0?V:R,V),X,z,ue;if(m(E)&&(X=E.constructor,typeof X=="function"&&(X===Array||m(X.prototype))?X=void 0:v(X)&&(X=X[U],X===null&&(X=void 0)),X===Array||X===void 0))return Q.call(E,G,Z);for(z=new(X===void 0?Array:X)(K(Z-G,0)),ue=0;G<Z;G++,ue++)G in E&&S(z,ue,E[G]);return z.length=ue,z}})},98611:(p,I,a)=>{"use strict";var c=a(76887),v=a(59413),m=a(68459),h=a(43057),b=a(89678),C=a(64692),S=a(55449),L=a(50568),N=L("splice"),j=Math.max,U=Math.min,Q=9007199254740991,K="Maximum allowed length exceeded";c({target:"Array",proto:!0,forced:!N},{splice:function(Y,R){var E=b(this),V=h(E.length),G=v(Y,V),Z=arguments.length,X,z,ue,q,ne,ge;if(Z===0?X=z=0:Z===1?(X=0,z=V-G):(X=Z-2,z=U(j(m(R),0),V-G)),V+X-z>Q)throw TypeError(K);for(ue=C(E,z),q=0;q<z;q++)ne=G+q,ne in E&&S(ue,q,E[ne]);if(ue.length=z,X<z){for(q=G;q<V-z;q++)ne=q+z,ge=q+X,ne in E?E[ge]=E[ne]:delete E[ge];for(q=V;q>V-z+X;q--)delete E[q-1]}else if(X>z)for(q=V-z;q>G;q--)ne=q+z-1,ge=q+X-1,ne in E?E[ge]=E[ne]:delete E[ge];for(q=0;q<X;q++)E[q+G]=arguments[q+2];return E.length=V-z+X,ue}})},32619:(p,I,a)=>{var c=a(76887),v=a(626),m=a(95981),h=v("JSON","stringify"),b=/[\uD800-\uDFFF]/g,C=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,L=function(j,U,Q){var K=Q.charAt(U-1),M=Q.charAt(U+1);return C.test(j)&&!S.test(M)||S.test(j)&&!C.test(K)?"\\u"+j.charCodeAt(0).toString(16):j},N=m(function(){return h("\uDF06\uD834")!=='"\\udf06\\ud834"'||h("\uDEAD")!=='"\\udead"'});h&&c({target:"JSON",stat:!0,forced:N},{stringify:function(U,Q,K){var M=h.apply(null,arguments);return typeof M=="string"?M.replace(b,L):M}})},69120:(p,I,a)=>{var c=a(21899),v=a(90904);v(c.JSON,"JSON",!0)},79413:()=>{},49221:(p,I,a)=>{var c=a(76887),v=a(24420);c({target:"Object",stat:!0,forced:Object.assign!==v},{assign:v})},53882:(p,I,a)=>{var c=a(76887),v=a(55746),m=a(29290);c({target:"Object",stat:!0,sham:!v},{create:m})},74979:(p,I,a)=>{var c=a(76887),v=a(55746),m=a(59938);c({target:"Object",stat:!0,forced:!v,sham:!v},{defineProperties:m})},86450:(p,I,a)=>{var c=a(76887),v=a(55746),m=a(65988);c({target:"Object",stat:!0,forced:!v,sham:!v},{defineProperty:m.f})},21078:(p,I,a)=>{var c=a(76887),v=a(88810).entries;c({target:"Object",stat:!0},{entries:function(h){return v(h)}})},46924:(p,I,a)=>{var c=a(76887),v=a(95981),m=a(74529),h=a(49677).f,b=a(55746),C=v(function(){h(1)}),S=!b||C;c({target:"Object",stat:!0,forced:S,sham:!b},{getOwnPropertyDescriptor:function(N,j){return h(m(N),j)}})},88482:(p,I,a)=>{var c=a(76887),v=a(55746),m=a(31136),h=a(74529),b=a(49677),C=a(55449);c({target:"Object",stat:!0,sham:!v},{getOwnPropertyDescriptors:function(L){for(var N=h(L),j=b.f,U=m(N),Q={},K=0,M,Y;U.length>K;)Y=j(N,M=U[K++]),Y!==void 0&&C(Q,M,Y);return Q}})},17405:(p,I,a)=>{var c=a(76887),v=a(95981),m=a(89678),h=a(249),b=a(64160),C=v(function(){h(1)});c({target:"Object",stat:!0,forced:C,sham:!b},{getPrototypeOf:function(L){return h(m(L))}})},21724:(p,I,a)=>{var c=a(76887),v=a(89678),m=a(14771),h=a(95981),b=h(function(){m(1)});c({target:"Object",stat:!0,forced:b},{keys:function(S){return m(v(S))}})},90108:(p,I,a)=>{var c=a(76887),v=a(88929);c({target:"Object",stat:!0},{setPrototypeOf:v})},55967:()=>{},4560:(p,I,a)=>{"use strict";var c=a(76887),v=a(33916),m=a(69520),h=a(40002),b=a(93091);c({target:"Promise",stat:!0},{allSettled:function(S){var L=this,N=m.f(L),j=N.resolve,U=N.reject,Q=h(function(){var K=v(L.resolve),M=[],Y=0,R=1;b(S,function(E){var V=Y++,G=!1;M.push(void 0),R++,K.call(L,E).then(function(Z){G||(G=!0,M[V]={status:"fulfilled",value:Z},--R||j(M))},function(Z){G||(G=!0,M[V]={status:"rejected",reason:Z},--R||j(M))})}),--R||j(M)});return Q.error&&U(Q.value),N.promise}})},91302:(p,I,a)=>{"use strict";var c=a(76887),v=a(33916),m=a(626),h=a(69520),b=a(40002),C=a(93091),S="No one promise resolved";c({target:"Promise",stat:!0},{any:function(N){var j=this,U=h.f(j),Q=U.resolve,K=U.reject,M=b(function(){var Y=v(j.resolve),R=[],E=0,V=1,G=!1;C(N,function(Z){var X=E++,z=!1;R.push(void 0),V++,Y.call(j,Z).then(function(ue){z||G||(G=!0,Q(ue))},function(ue){z||G||(z=!0,R[X]=ue,--V||K(new(m("AggregateError"))(R,S)))})}),--V||K(new(m("AggregateError"))(R,S))});return M.error&&K(M.value),U.promise}})},44349:(p,I,a)=>{"use strict";var c=a(76887),v=a(82529),m=a(19297),h=a(95981),b=a(626),C=a(70487),S=a(56584),L=a(99754),N=!!m&&h(function(){m.prototype.finally.call({then:function(){}},function(){})});if(c({target:"Promise",proto:!0,real:!0,forced:N},{finally:function(U){var Q=C(this,b("Promise")),K=typeof U=="function";return this.then(K?function(M){return S(Q,U()).then(function(){return M})}:U,K?function(M){return S(Q,U()).then(function(){throw M})}:U)}}),!v&&typeof m=="function"){var j=b("Promise").prototype.finally;m.prototype.finally!==j&&L(m.prototype,"finally",j,{unsafe:!0})}},98881:(p,I,a)=>{"use strict";var c=a(76887),v=a(82529),m=a(21899),h=a(626),b=a(19297),C=a(99754),S=a(87524),L=a(88929),N=a(90904),j=a(94431),U=a(10941),Q=a(33916),K=a(5743),M=a(81302),Y=a(93091),R=a(21385),E=a(70487),V=a(42941).set,G=a(66132),Z=a(56584),X=a(34845),z=a(69520),ue=a(40002),q=a(45402),ne=a(37252),ge=a(99813),me=a(23321),he=a(6049),le=a(53385),ie=ge("species"),Oe="Promise",Pe=q.get,Te=q.set,Ce=q.getterFor(Oe),Xe=b&&b.prototype,He=b,Je=Xe,ut=m.TypeError,ft=m.document,yt=m.process,Qe=z.f,nt=Qe,ct=!!(ft&&ft.createEvent&&m.dispatchEvent),dt=typeof PromiseRejectionEvent=="function",st="unhandledrejection",Ot="rejectionhandled",Et=0,St=1,jt=2,Dt=1,Nt=2,mt=!1,It,ht,zt,Kt,sr=ne(Oe,function(){var _=M(He)!==String(He);if(!_&&le===66||v&&!Je.finally)return!0;if(le>=51&&/native code/.test(He))return!1;var fe=new He(function(be){be(1)}),te=function(be){be(function(){},function(){})},ce=fe.constructor={};return ce[ie]=te,mt=fe.then(function(){})instanceof te,mt?!_&&me&&!dt:!0}),Mt=sr||!R(function(_){He.all(_).catch(function(){})}),Wt=function(_){var fe;return U(_)&&typeof(fe=_.then)=="function"?fe:!1},Bt=function(_,fe){if(!_.notified){_.notified=!0;var te=_.reactions;G(function(){for(var ce=_.value,be=_.state==St,Le=0;te.length>Le;){var Re=te[Le++],We=be?Re.ok:Re.fail,ot=Re.resolve,vt=Re.reject,Ft=Re.domain,At,bn,zr;try{We?(be||(_.rejection===Nt&&O(_),_.rejection=Dt),We===!0?At=ce:(Ft&&Ft.enter(),At=We(ce),Ft&&(Ft.exit(),zr=!0)),At===Re.promise?vt(ut("Promise-chain cycle")):(bn=Wt(At))?bn.call(At,ot,vt):ot(At)):vt(ce)}catch(Fr){Ft&&!zr&&Ft.exit(),vt(Fr)}}_.reactions=[],_.notified=!1,fe&&!_.rejection&&Be(_)})}},k=function(_,fe,te){var ce,be;ct?(ce=ft.createEvent("Event"),ce.promise=fe,ce.reason=te,ce.initEvent(_,!1,!0),m.dispatchEvent(ce)):ce={promise:fe,reason:te},!dt&&(be=m["on"+_])?be(ce):_===st&&X("Unhandled promise rejection",te)},Be=function(_){V.call(m,function(){var fe=_.facade,te=_.value,ce=$(_),be;if(ce&&(be=ue(function(){he?yt.emit("unhandledRejection",te,fe):k(st,fe,te)}),_.rejection=he||$(_)?Nt:Dt,be.error))throw be.value})},$=function(_){return _.rejection!==Dt&&!_.parent},O=function(_){V.call(m,function(){var fe=_.facade;he?yt.emit("rejectionHandled",fe):k(Ot,fe,_.value)})},T=function(_,fe,te){return function(ce){_(fe,ce,te)}},oe=function(_,fe,te){_.done||(_.done=!0,te&&(_=te),_.value=fe,_.state=jt,Bt(_,!0))},D=function(_,fe,te){if(!_.done){_.done=!0,te&&(_=te);try{if(_.facade===fe)throw ut("Promise can't be resolved itself");var ce=Wt(fe);ce?G(function(){var be={done:!1};try{ce.call(fe,T(D,be,_),T(oe,be,_))}catch(Le){oe(be,Le,_)}}):(_.value=fe,_.state=St,Bt(_,!1))}catch(be){oe({done:!1},be,_)}}};if(sr&&(He=function(fe){K(this,He,Oe),Q(fe),It.call(this);var te=Pe(this);try{fe(T(D,te),T(oe,te))}catch(ce){oe(te,ce)}},Je=He.prototype,It=function(fe){Te(this,{type:Oe,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:Et,value:void 0})},It.prototype=S(Je,{then:function(fe,te){var ce=Ce(this),be=Qe(E(this,He));return be.ok=typeof fe=="function"?fe:!0,be.fail=typeof te=="function"&&te,be.domain=he?yt.domain:void 0,ce.parent=!0,ce.reactions.push(be),ce.state!=Et&&Bt(ce,!1),be.promise},catch:function(_){return this.then(void 0,_)}}),ht=function(){var _=new It,fe=Pe(_);this.promise=_,this.resolve=T(D,fe),this.reject=T(oe,fe)},z.f=Qe=function(_){return _===He||_===zt?new ht(_):nt(_)},!v&&typeof b=="function"&&Xe!==Object.prototype)){Kt=Xe.then,mt||(C(Xe,"then",function(fe,te){var ce=this;return new He(function(be,Le){Kt.call(ce,be,Le)}).then(fe,te)},{unsafe:!0}),C(Xe,"catch",Je.catch,{unsafe:!0}));try{delete Xe.constructor}catch(_){}L&&L(Xe,Je)}c({global:!0,wrap:!0,forced:sr},{Promise:He}),N(He,Oe,!1,!0),j(Oe),zt=h(Oe),c({target:Oe,stat:!0,forced:sr},{reject:function(fe){var te=Qe(this);return te.reject.call(void 0,fe),te.promise}}),c({target:Oe,stat:!0,forced:v||sr},{resolve:function(fe){return Z(v&&this===zt?He:this,fe)}}),c({target:Oe,stat:!0,forced:Mt},{all:function(fe){var te=this,ce=Qe(te),be=ce.resolve,Le=ce.reject,Re=ue(function(){var We=Q(te.resolve),ot=[],vt=0,Ft=1;Y(fe,function(At){var bn=vt++,zr=!1;ot.push(void 0),Ft++,We.call(te,At).then(function(Fr){zr||(zr=!0,ot[bn]=Fr,--Ft||be(ot))},Le)}),--Ft||be(ot)});return Re.error&&Le(Re.value),ce.promise},race:function(fe){var te=this,ce=Qe(te),be=ce.reject,Le=ue(function(){var Re=Q(te.resolve);Y(fe,function(We){Re.call(te,We).then(ce.resolve,be)})});return Le.error&&be(Le.value),ce.promise}})},7453:(p,I,a)=>{var c=a(76887),v=a(626),m=a(33916),h=a(96059),b=a(10941),C=a(29290),S=a(98308),L=a(95981),N=v("Reflect","construct"),j=L(function(){function K(){}return!(N(function(){},[],K)instanceof K)}),U=!L(function(){N(function(){})}),Q=j||U;c({target:"Reflect",stat:!0,forced:Q,sham:Q},{construct:function(M,Y){m(M),h(Y);var R=arguments.length<3?M:m(arguments[2]);if(U&&!j)return N(M,Y,R);if(M==R){switch(Y.length){case 0:return new M;case 1:return new M(Y[0]);case 2:return new M(Y[0],Y[1]);case 3:return new M(Y[0],Y[1],Y[2]);case 4:return new M(Y[0],Y[1],Y[2],Y[3])}var E=[null];return E.push.apply(E,Y),new(S.apply(M,E))}var V=R.prototype,G=C(b(V)?V:Object.prototype),Z=Function.apply.call(M,G,Y);return b(Z)?Z:G}})},42355:(p,I,a)=>{var c=a(76887),v=a(10941),m=a(96059),h=a(47457),b=a(49677),C=a(249);function S(L,N){var j=arguments.length<3?L:arguments[2],U,Q;if(m(L)===j)return L[N];if(U=b.f(L,N))return h(U,"value")?U.value:U.get===void 0?void 0:U.get.call(j);if(v(Q=C(L)))return S(Q,N,j)}c({target:"Reflect",stat:!0},{get:S})},1502:()=>{},11035:(p,I,a)=>{"use strict";var c=a(76887),v=a(70344),m=a(48219),h=a(67772);c({target:"String",proto:!0,forced:!h("includes")},{includes:function(C){return!!~String(m(this)).indexOf(v(C),arguments.length>1?arguments[1]:void 0)}})},77971:(p,I,a)=>{"use strict";var c=a(64620).charAt,v=a(45402),m=a(47771),h="String Iterator",b=v.set,C=v.getterFor(h);m(String,"String",function(S){b(this,{type:h,string:String(S),index:0})},function(){var L=C(this),N=L.string,j=L.index,U;return j>=N.length?{value:void 0,done:!0}:(U=c(N,j),L.index+=U.length,{value:U,done:!1})})},8555:(p,I,a)=>{var c=a(66349);c("asyncIterator")},52615:()=>{},21732:(p,I,a)=>{var c=a(66349);c("hasInstance")},35903:(p,I,a)=>{var c=a(66349);c("isConcatSpreadable")},1825:(p,I,a)=>{var c=a(66349);c("iterator")},35824:(p,I,a)=>{"use strict";var c=a(76887),v=a(21899),m=a(626),h=a(82529),b=a(55746),C=a(72497),S=a(32302),L=a(95981),N=a(47457),j=a(1052),U=a(10941),Q=a(96059),K=a(89678),M=a(74529),Y=a(46935),R=a(31887),E=a(29290),V=a(14771),G=a(10946),Z=a(684),X=a(87857),z=a(49677),ue=a(65988),q=a(36760),ne=a(32029),ge=a(99754),me=a(68726),he=a(44262),le=a(27748),ie=a(99418),Oe=a(99813),Pe=a(11477),Te=a(66349),Ce=a(90904),Xe=a(45402),He=a(3610).forEach,Je=he("hidden"),ut="Symbol",ft="prototype",yt=Oe("toPrimitive"),Qe=Xe.set,nt=Xe.getterFor(ut),ct=Object[ft],dt=v.Symbol,st=m("JSON","stringify"),Ot=z.f,Et=ue.f,St=Z.f,jt=q.f,Dt=me("symbols"),Nt=me("op-symbols"),mt=me("string-to-symbol-registry"),It=me("symbol-to-string-registry"),ht=me("wks"),zt=v.QObject,Kt=!zt||!zt[ft]||!zt[ft].findChild,sr=b&&L(function(){return E(Et({},"a",{get:function(){return Et(this,"a",{value:7}).a}})).a!=7})?function(_,fe,te){var ce=Ot(ct,fe);ce&&delete ct[fe],Et(_,fe,te),ce&&_!==ct&&Et(ct,fe,ce)}:Et,Mt=function(_,fe){var te=Dt[_]=E(dt[ft]);return Qe(te,{type:ut,tag:_,description:fe}),b||(te.description=fe),te},Wt=S?function(_){return typeof _=="symbol"}:function(_){return Object(_)instanceof dt},Bt=function(fe,te,ce){fe===ct&&Bt(Nt,te,ce),Q(fe);var be=Y(te,!0);return Q(ce),N(Dt,be)?(ce.enumerable?(N(fe,Je)&&fe[Je][be]&&(fe[Je][be]=!1),ce=E(ce,{enumerable:R(0,!1)})):(N(fe,Je)||Et(fe,Je,R(1,{})),fe[Je][be]=!0),sr(fe,be,ce)):Et(fe,be,ce)},k=function(fe,te){Q(fe);var ce=M(te),be=V(ce).concat(oe(ce));return He(be,function(Le){(!b||$.call(ce,Le))&&Bt(fe,Le,ce[Le])}),fe},Be=function(fe,te){return te===void 0?E(fe):k(E(fe),te)},$=function(fe){var te=Y(fe,!0),ce=jt.call(this,te);return this===ct&&N(Dt,te)&&!N(Nt,te)?!1:ce||!N(this,te)||!N(Dt,te)||N(this,Je)&&this[Je][te]?ce:!0},O=function(fe,te){var ce=M(fe),be=Y(te,!0);if(!(ce===ct&&N(Dt,be)&&!N(Nt,be))){var Le=Ot(ce,be);return Le&&N(Dt,be)&&!(N(ce,Je)&&ce[Je][be])&&(Le.enumerable=!0),Le}},T=function(fe){var te=St(M(fe)),ce=[];return He(te,function(be){!N(Dt,be)&&!N(le,be)&&ce.push(be)}),ce},oe=function(fe){var te=fe===ct,ce=St(te?Nt:M(fe)),be=[];return He(ce,function(Le){N(Dt,Le)&&(!te||N(ct,Le))&&be.push(Dt[Le])}),be};if(C||(dt=function(){if(this instanceof dt)throw TypeError("Symbol is not a constructor");var fe=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),te=ie(fe),ce=function(be){this===ct&&ce.call(Nt,be),N(this,Je)&&N(this[Je],te)&&(this[Je][te]=!1),sr(this,te,R(1,be))};return b&&Kt&&sr(ct,te,{configurable:!0,set:ce}),Mt(te,fe)},ge(dt[ft],"toString",function(){return nt(this).tag}),ge(dt,"withoutSetter",function(_){return Mt(ie(_),_)}),q.f=$,ue.f=Bt,z.f=O,G.f=Z.f=T,X.f=oe,Pe.f=function(_){return Mt(Oe(_),_)},b&&(Et(dt[ft],"description",{configurable:!0,get:function(){return nt(this).description}}),h||ge(ct,"propertyIsEnumerable",$,{unsafe:!0}))),c({global:!0,wrap:!0,forced:!C,sham:!C},{Symbol:dt}),He(V(ht),function(_){Te(_)}),c({target:ut,stat:!0,forced:!C},{for:function(_){var fe=String(_);if(N(mt,fe))return mt[fe];var te=dt(fe);return mt[fe]=te,It[te]=fe,te},keyFor:function(fe){if(!Wt(fe))throw TypeError(fe+" is not a symbol");if(N(It,fe))return It[fe]},useSetter:function(){Kt=!0},useSimple:function(){Kt=!1}}),c({target:"Object",stat:!0,forced:!C,sham:!b},{create:Be,defineProperty:Bt,defineProperties:k,getOwnPropertyDescriptor:O}),c({target:"Object",stat:!0,forced:!C},{getOwnPropertyNames:T,getOwnPropertySymbols:oe}),c({target:"Object",stat:!0,forced:L(function(){X.f(1)})},{getOwnPropertySymbols:function(fe){return X.f(K(fe))}}),st){var D=!C||L(function(){var _=dt();return st([_])!="[null]"||st({a:_})!="{}"||st(Object(_))!="{}"});c({target:"JSON",stat:!0,forced:D},{stringify:function(fe,te,ce){for(var be=[fe],Le=1,Re;arguments.length>Le;)be.push(arguments[Le++]);if(Re=te,!(!U(te)&&fe===void 0||Wt(fe)))return j(te)||(te=function(We,ot){if(typeof Re=="function"&&(ot=Re.call(this,We,ot)),!Wt(ot))return ot}),be[1]=te,st.apply(null,be)}})}dt[ft][yt]||ne(dt[ft],yt,dt[ft].valueOf),Ce(dt,ut),le[Je]=!0},45915:(p,I,a)=>{var c=a(66349);c("matchAll")},28394:(p,I,a)=>{var c=a(66349);c("match")},61766:(p,I,a)=>{var c=a(66349);c("replace")},62737:(p,I,a)=>{var c=a(66349);c("search")},89911:(p,I,a)=>{var c=a(66349);c("species")},74315:(p,I,a)=>{var c=a(66349);c("split")},63131:(p,I,a)=>{var c=a(66349);c("toPrimitive")},64714:(p,I,a)=>{var c=a(66349);c("toStringTag")},70659:(p,I,a)=>{var c=a(66349);c("unscopables")},54334:(p,I,a)=>{"use strict";var c=a(21899),v=a(87524),m=a(21647),h=a(24683),b=a(8850),C=a(10941),S=a(45402).enforce,L=a(38019),N=!c.ActiveXObject&&"ActiveXObject"in c,j=Object.isExtensible,U,Q=function(G){return function(){return G(this,arguments.length?arguments[0]:void 0)}},K=p.exports=h("WeakMap",Q,b);if(L&&N){U=b.getConstructor(Q,"WeakMap",!0),m.REQUIRED=!0;var M=K.prototype,Y=M.delete,R=M.has,E=M.get,V=M.set;v(M,{delete:function(G){if(C(G)&&!j(G)){var Z=S(this);return Z.frozen||(Z.frozen=new U),Y.call(this,G)||Z.frozen.delete(G)}return Y.call(this,G)},has:function(Z){if(C(Z)&&!j(Z)){var X=S(this);return X.frozen||(X.frozen=new U),R.call(this,Z)||X.frozen.has(Z)}return R.call(this,Z)},get:function(Z){if(C(Z)&&!j(Z)){var X=S(this);return X.frozen||(X.frozen=new U),R.call(this,Z)?E.call(this,Z):X.frozen.get(Z)}return E.call(this,Z)},set:function(Z,X){if(C(Z)&&!j(Z)){var z=S(this);z.frozen||(z.frozen=new U),R.call(this,Z)?V.call(this,Z,X):z.frozen.set(Z,X)}else V.call(this,Z,X);return this}})}},89731:(p,I,a)=>{a(47627)},55708:(p,I,a)=>{a(4560)},88731:(p,I,a)=>{a(91302)},30014:(p,I,a)=>{"use strict";var c=a(76887),v=a(69520),m=a(40002);c({target:"Promise",stat:!0},{try:function(h){var b=v.f(this),C=m(h);return(C.error?b.reject:b.resolve)(C.value),b.promise}})},28783:(p,I,a)=>{var c=a(66349);c("asyncDispose")},43975:(p,I,a)=>{var c=a(66349);c("dispose")},65799:(p,I,a)=>{var c=a(66349);c("matcher")},45414:(p,I,a)=>{var c=a(66349);c("metadata")},46774:(p,I,a)=>{var c=a(66349);c("observable")},80620:(p,I,a)=>{var c=a(66349);c("patternMatch")},36172:(p,I,a)=>{var c=a(66349);c("replaceAll")},7634:(p,I,a)=>{a(66274);var c=a(63281),v=a(21899),m=a(9697),h=a(32029),b=a(12077),C=a(99813),S=C("toStringTag");for(var L in c){var N=v[L],j=N&&N.prototype;j&&m(j)!==S&&h(j,S,L),b[L]=b.Array}},27698:(p,I,a)=>{var c=a(54493);p.exports=c},62908:(p,I,a)=>{var c=a(12710);p.exports=c},49216:(p,I,a)=>{var c=a(99324);p.exports=c},8065:(p,I,a)=>{var c=a(56043);p.exports=c},57448:(p,I,a)=>{a(7634);var c=a(62908),v=a(9697),m=Array.prototype,h={DOMTokenList:!0,NodeList:!0};p.exports=function(b){var C=b.entries;return b===m||b instanceof Array&&C===m.entries||h.hasOwnProperty(v(b))?c:C}},11955:(p,I,a)=>{var c=a(2480);p.exports=c},61577:(p,I,a)=>{var c=a(32236);p.exports=c},46279:(p,I,a)=>{a(7634);var c=a(49216),v=a(9697),m=Array.prototype,h={DOMTokenList:!0,NodeList:!0};p.exports=function(b){var C=b.forEach;return b===m||b instanceof Array&&C===m.forEach||h.hasOwnProperty(v(b))?c:C}},33778:(p,I,a)=>{var c=a(58557);p.exports=c},61798:(p,I,a)=>{var c=a(88287);p.exports=c},82073:(p,I,a)=>{var c=a(69601);p.exports=c},2348:(p,I,a)=>{var c=a(18339);p.exports=c},8933:(p,I,a)=>{var c=a(84426);p.exports=c},63383:(p,I,a)=>{var c=a(45999);p.exports=c},86209:(p,I,a)=>{var c=a(73081);p.exports=c},23059:(p,I,a)=>{var c=a(48494);p.exports=c},27460:(p,I,a)=>{var c=a(52956);p.exports=c},72010:(p,I,a)=>{var c=a(32304);p.exports=c},31905:function(){(function(p){var I=function(a){var c={searchParams:"URLSearchParams"in p,iterable:"Symbol"in p&&"iterator"in Symbol,blob:"FileReader"in p&&"Blob"in p&&function(){try{return new Blob,!0}catch(q){return!1}}(),formData:"FormData"in p,arrayBuffer:"ArrayBuffer"in p};function v(q){return q&&DataView.prototype.isPrototypeOf(q)}if(c.arrayBuffer)var m=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],h=ArrayBuffer.isView||function(q){return q&&m.indexOf(Object.prototype.toString.call(q))>-1};function b(q){if(typeof q!="string"&&(q=String(q)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(q))throw new TypeError("Invalid character in header field name");return q.toLowerCase()}function C(q){return typeof q!="string"&&(q=String(q)),q}function S(q){var ne={next:function(){var ge=q.shift();return{done:ge===void 0,value:ge}}};return c.iterable&&(ne[Symbol.iterator]=function(){return ne}),ne}function L(q){this.map={},q instanceof L?q.forEach(function(ne,ge){this.append(ge,ne)},this):Array.isArray(q)?q.forEach(function(ne){this.append(ne[0],ne[1])},this):q&&Object.getOwnPropertyNames(q).forEach(function(ne){this.append(ne,q[ne])},this)}L.prototype.append=function(q,ne){q=b(q),ne=C(ne);var ge=this.map[q];this.map[q]=ge?ge+", "+ne:ne},L.prototype.delete=function(q){delete this.map[b(q)]},L.prototype.get=function(q){return q=b(q),this.has(q)?this.map[q]:null},L.prototype.has=function(q){return this.map.hasOwnProperty(b(q))},L.prototype.set=function(q,ne){this.map[b(q)]=C(ne)},L.prototype.forEach=function(q,ne){for(var ge in this.map)this.map.hasOwnProperty(ge)&&q.call(ne,this.map[ge],ge,this)},L.prototype.keys=function(){var q=[];return this.forEach(function(ne,ge){q.push(ge)}),S(q)},L.prototype.values=function(){var q=[];return this.forEach(function(ne){q.push(ne)}),S(q)},L.prototype.entries=function(){var q=[];return this.forEach(function(ne,ge){q.push([ge,ne])}),S(q)},c.iterable&&(L.prototype[Symbol.iterator]=L.prototype.entries);function N(q){if(q.bodyUsed)return Promise.reject(new TypeError("Already read"));q.bodyUsed=!0}function j(q){return new Promise(function(ne,ge){q.onload=function(){ne(q.result)},q.onerror=function(){ge(q.error)}})}function U(q){var ne=new FileReader,ge=j(ne);return ne.readAsArrayBuffer(q),ge}function Q(q){var ne=new FileReader,ge=j(ne);return ne.readAsText(q),ge}function K(q){for(var ne=new Uint8Array(q),ge=new Array(ne.length),me=0;me<ne.length;me++)ge[me]=String.fromCharCode(ne[me]);return ge.join("")}function M(q){if(q.slice)return q.slice(0);var ne=new Uint8Array(q.byteLength);return ne.set(new Uint8Array(q)),ne.buffer}function Y(){return this.bodyUsed=!1,this._initBody=function(q){this._bodyInit=q,q?typeof q=="string"?this._bodyText=q:c.blob&&Blob.prototype.isPrototypeOf(q)?this._bodyBlob=q:c.formData&&FormData.prototype.isPrototypeOf(q)?this._bodyFormData=q:c.searchParams&&URLSearchParams.prototype.isPrototypeOf(q)?this._bodyText=q.toString():c.arrayBuffer&&c.blob&&v(q)?(this._bodyArrayBuffer=M(q.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(q)||h(q))?this._bodyArrayBuffer=M(q):this._bodyText=q=Object.prototype.toString.call(q):this._bodyText="",this.headers.get("content-type")||(typeof q=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):c.searchParams&&URLSearchParams.prototype.isPrototypeOf(q)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c.blob&&(this.blob=function(){var q=N(this);if(q)return q;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?N(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(U)}),this.text=function(){var q=N(this);if(q)return q;if(this._bodyBlob)return Q(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)},c.formData&&(this.formData=function(){return this.text().then(G)}),this.json=function(){return this.text().then(JSON.parse)},this}var R=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function E(q){var ne=q.toUpperCase();return R.indexOf(ne)>-1?ne:q}function V(q,ne){ne=ne||{};var ge=ne.body;if(q instanceof V){if(q.bodyUsed)throw new TypeError("Already read");this.url=q.url,this.credentials=q.credentials,ne.headers||(this.headers=new L(q.headers)),this.method=q.method,this.mode=q.mode,this.signal=q.signal,!ge&&q._bodyInit!=null&&(ge=q._bodyInit,q.bodyUsed=!0)}else this.url=String(q);if(this.credentials=ne.credentials||this.credentials||"same-origin",(ne.headers||!this.headers)&&(this.headers=new L(ne.headers)),this.method=E(ne.method||this.method||"GET"),this.mode=ne.mode||this.mode||null,this.signal=ne.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)}V.prototype.clone=function(){return new V(this,{body:this._bodyInit})};function G(q){var ne=new FormData;return q.trim().split("&").forEach(function(ge){if(ge){var me=ge.split("="),he=me.shift().replace(/\+/g," "),le=me.join("=").replace(/\+/g," ");ne.append(decodeURIComponent(he),decodeURIComponent(le))}}),ne}function Z(q){var ne=new L,ge=q.replace(/\r?\n[\t ]+/g," ");return ge.split(/\r?\n/).forEach(function(me){var he=me.split(":"),le=he.shift().trim();if(le){var ie=he.join(":").trim();ne.append(le,ie)}}),ne}Y.call(V.prototype);function X(q,ne){ne||(ne={}),this.type="default",this.status=ne.status===void 0?200:ne.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in ne?ne.statusText:"OK",this.headers=new L(ne.headers),this.url=ne.url||"",this._initBody(q)}Y.call(X.prototype),X.prototype.clone=function(){return new X(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new L(this.headers),url:this.url})},X.error=function(){var q=new X(null,{status:0,statusText:""});return q.type="error",q};var z=[301,302,303,307,308];X.redirect=function(q,ne){if(z.indexOf(ne)===-1)throw new RangeError("Invalid status code");return new X(null,{status:ne,headers:{location:q}})},a.DOMException=p.DOMException;try{new a.DOMException}catch(q){a.DOMException=function(ne,ge){this.message=ne,this.name=ge;var me=Error(ne);this.stack=me.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function ue(q,ne){return new Promise(function(ge,me){var he=new V(q,ne);if(he.signal&&he.signal.aborted)return me(new a.DOMException("Aborted","AbortError"));var le=new XMLHttpRequest;function ie(){le.abort()}le.onload=function(){var Oe={status:le.status,statusText:le.statusText,headers:Z(le.getAllResponseHeaders()||"")};Oe.url="responseURL"in le?le.responseURL:Oe.headers.get("X-Request-URL");var Pe="response"in le?le.response:le.responseText;ge(new X(Pe,Oe))},le.onerror=function(){me(new TypeError("Network request failed"))},le.ontimeout=function(){me(new TypeError("Network request failed"))},le.onabort=function(){me(new a.DOMException("Aborted","AbortError"))},le.open(he.method,he.url,!0),he.credentials==="include"?le.withCredentials=!0:he.credentials==="omit"&&(le.withCredentials=!1),"responseType"in le&&c.blob&&(le.responseType="blob"),he.headers.forEach(function(Oe,Pe){le.setRequestHeader(Pe,Oe)}),he.signal&&(he.signal.addEventListener("abort",ie),le.onreadystatechange=function(){le.readyState===4&&he.signal.removeEventListener("abort",ie)}),le.send(typeof he._bodyInit=="undefined"?null:he._bodyInit)})}return ue.polyfill=!0,p.fetch||(p.fetch=ue,p.Headers=L,p.Request=V,p.Response=X),a.Headers=L,a.Request=V,a.Response=X,a.fetch=ue,Object.defineProperty(a,"__esModule",{value:!0}),a}({})})(typeof self!="undefined"?self:this)},54098:function(p,I){var a=typeof self!="undefined"?self:this,c=function(){function m(){this.fetch=!1,this.DOMException=a.DOMException}return m.prototype=a,new m}();(function(m){var h=function(b){var C={searchParams:"URLSearchParams"in m,iterable:"Symbol"in m&&"iterator"in Symbol,blob:"FileReader"in m&&"Blob"in m&&function(){try{return new Blob,!0}catch(le){return!1}}(),formData:"FormData"in m,arrayBuffer:"ArrayBuffer"in m};function S(le){return le&&DataView.prototype.isPrototypeOf(le)}if(C.arrayBuffer)var L=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],N=ArrayBuffer.isView||function(le){return le&&L.indexOf(Object.prototype.toString.call(le))>-1};function j(le){if(typeof le!="string"&&(le=String(le)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(le))throw new TypeError("Invalid character in header field name");return le.toLowerCase()}function U(le){return typeof le!="string"&&(le=String(le)),le}function Q(le){var ie={next:function(){var Oe=le.shift();return{done:Oe===void 0,value:Oe}}};return C.iterable&&(ie[Symbol.iterator]=function(){return ie}),ie}function K(le){this.map={},le instanceof K?le.forEach(function(ie,Oe){this.append(Oe,ie)},this):Array.isArray(le)?le.forEach(function(ie){this.append(ie[0],ie[1])},this):le&&Object.getOwnPropertyNames(le).forEach(function(ie){this.append(ie,le[ie])},this)}K.prototype.append=function(le,ie){le=j(le),ie=U(ie);var Oe=this.map[le];this.map[le]=Oe?Oe+", "+ie:ie},K.prototype.delete=function(le){delete this.map[j(le)]},K.prototype.get=function(le){return le=j(le),this.has(le)?this.map[le]:null},K.prototype.has=function(le){return this.map.hasOwnProperty(j(le))},K.prototype.set=function(le,ie){this.map[j(le)]=U(ie)},K.prototype.forEach=function(le,ie){for(var Oe in this.map)this.map.hasOwnProperty(Oe)&&le.call(ie,this.map[Oe],Oe,this)},K.prototype.keys=function(){var le=[];return this.forEach(function(ie,Oe){le.push(Oe)}),Q(le)},K.prototype.values=function(){var le=[];return this.forEach(function(ie){le.push(ie)}),Q(le)},K.prototype.entries=function(){var le=[];return this.forEach(function(ie,Oe){le.push([Oe,ie])}),Q(le)},C.iterable&&(K.prototype[Symbol.iterator]=K.prototype.entries);function M(le){if(le.bodyUsed)return Promise.reject(new TypeError("Already read"));le.bodyUsed=!0}function Y(le){return new Promise(function(ie,Oe){le.onload=function(){ie(le.result)},le.onerror=function(){Oe(le.error)}})}function R(le){var ie=new FileReader,Oe=Y(ie);return ie.readAsArrayBuffer(le),Oe}function E(le){var ie=new FileReader,Oe=Y(ie);return ie.readAsText(le),Oe}function V(le){for(var ie=new Uint8Array(le),Oe=new Array(ie.length),Pe=0;Pe<ie.length;Pe++)Oe[Pe]=String.fromCharCode(ie[Pe]);return Oe.join("")}function G(le){if(le.slice)return le.slice(0);var ie=new Uint8Array(le.byteLength);return ie.set(new Uint8Array(le)),ie.buffer}function Z(){return this.bodyUsed=!1,this._initBody=function(le){this._bodyInit=le,le?typeof le=="string"?this._bodyText=le:C.blob&&Blob.prototype.isPrototypeOf(le)?this._bodyBlob=le:C.formData&&FormData.prototype.isPrototypeOf(le)?this._bodyFormData=le:C.searchParams&&URLSearchParams.prototype.isPrototypeOf(le)?this._bodyText=le.toString():C.arrayBuffer&&C.blob&&S(le)?(this._bodyArrayBuffer=G(le.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):C.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(le)||N(le))?this._bodyArrayBuffer=G(le):this._bodyText=le=Object.prototype.toString.call(le):this._bodyText="",this.headers.get("content-type")||(typeof le=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):C.searchParams&&URLSearchParams.prototype.isPrototypeOf(le)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},C.blob&&(this.blob=function(){var le=M(this);if(le)return le;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?M(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(R)}),this.text=function(){var le=M(this);if(le)return le;if(this._bodyBlob)return E(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(V(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},C.formData&&(this.formData=function(){return this.text().then(q)}),this.json=function(){return this.text().then(JSON.parse)},this}var X=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function z(le){var ie=le.toUpperCase();return X.indexOf(ie)>-1?ie:le}function ue(le,ie){ie=ie||{};var Oe=ie.body;if(le instanceof ue){if(le.bodyUsed)throw new TypeError("Already read");this.url=le.url,this.credentials=le.credentials,ie.headers||(this.headers=new K(le.headers)),this.method=le.method,this.mode=le.mode,this.signal=le.signal,!Oe&&le._bodyInit!=null&&(Oe=le._bodyInit,le.bodyUsed=!0)}else this.url=String(le);if(this.credentials=ie.credentials||this.credentials||"same-origin",(ie.headers||!this.headers)&&(this.headers=new K(ie.headers)),this.method=z(ie.method||this.method||"GET"),this.mode=ie.mode||this.mode||null,this.signal=ie.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Oe)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(Oe)}ue.prototype.clone=function(){return new ue(this,{body:this._bodyInit})};function q(le){var ie=new FormData;return le.trim().split("&").forEach(function(Oe){if(Oe){var Pe=Oe.split("="),Te=Pe.shift().replace(/\+/g," "),Ce=Pe.join("=").replace(/\+/g," ");ie.append(decodeURIComponent(Te),decodeURIComponent(Ce))}}),ie}function ne(le){var ie=new K,Oe=le.replace(/\r?\n[\t ]+/g," ");return Oe.split(/\r?\n/).forEach(function(Pe){var Te=Pe.split(":"),Ce=Te.shift().trim();if(Ce){var Xe=Te.join(":").trim();ie.append(Ce,Xe)}}),ie}Z.call(ue.prototype);function ge(le,ie){ie||(ie={}),this.type="default",this.status=ie.status===void 0?200:ie.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in ie?ie.statusText:"OK",this.headers=new K(ie.headers),this.url=ie.url||"",this._initBody(le)}Z.call(ge.prototype),ge.prototype.clone=function(){return new ge(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new K(this.headers),url:this.url})},ge.error=function(){var le=new ge(null,{status:0,statusText:""});return le.type="error",le};var me=[301,302,303,307,308];ge.redirect=function(le,ie){if(me.indexOf(ie)===-1)throw new RangeError("Invalid status code");return new ge(null,{status:ie,headers:{location:le}})},b.DOMException=m.DOMException;try{new b.DOMException}catch(le){b.DOMException=function(ie,Oe){this.message=ie,this.name=Oe;var Pe=Error(ie);this.stack=Pe.stack},b.DOMException.prototype=Object.create(Error.prototype),b.DOMException.prototype.constructor=b.DOMException}function he(le,ie){return new Promise(function(Oe,Pe){var Te=new ue(le,ie);if(Te.signal&&Te.signal.aborted)return Pe(new b.DOMException("Aborted","AbortError"));var Ce=new XMLHttpRequest;function Xe(){Ce.abort()}Ce.onload=function(){var He={status:Ce.status,statusText:Ce.statusText,headers:ne(Ce.getAllResponseHeaders()||"")};He.url="responseURL"in Ce?Ce.responseURL:He.headers.get("X-Request-URL");var Je="response"in Ce?Ce.response:Ce.responseText;Oe(new ge(Je,He))},Ce.onerror=function(){Pe(new TypeError("Network request failed"))},Ce.ontimeout=function(){Pe(new TypeError("Network request failed"))},Ce.onabort=function(){Pe(new b.DOMException("Aborted","AbortError"))},Ce.open(Te.method,Te.url,!0),Te.credentials==="include"?Ce.withCredentials=!0:Te.credentials==="omit"&&(Ce.withCredentials=!1),"responseType"in Ce&&C.blob&&(Ce.responseType="blob"),Te.headers.forEach(function(He,Je){Ce.setRequestHeader(Je,He)}),Te.signal&&(Te.signal.addEventListener("abort",Xe),Ce.onreadystatechange=function(){Ce.readyState===4&&Te.signal.removeEventListener("abort",Xe)}),Ce.send(typeof Te._bodyInit=="undefined"?null:Te._bodyInit)})}return he.polyfill=!0,m.fetch||(m.fetch=he,m.Headers=K,m.Request=ue,m.Response=ge),b.Headers=K,b.Request=ue,b.Response=ge,b.fetch=he,Object.defineProperty(b,"__esModule",{value:!0}),b}({})})(c),c.fetch.ponyfill=!0,delete c.fetch.polyfill;var v=c;I=v.fetch,I.default=v.fetch,I.fetch=v.fetch,I.Headers=v.Headers,I.Request=v.Request,I.Response=v.Response,p.exports=I},17438:(p,I,a)=>{"use strict";a.r(I),a.d(I,{default:()=>C});var c=a(8081),v=a.n(c),m=a(23645),h=a.n(m),b=h()(v());b.push([p.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}.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
+ */I.parse=h,I.serialize=b;var a=decodeURIComponent,c=encodeURIComponent,v=/; */,m=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function h(S,L){if(typeof S!="string")throw new TypeError("argument str must be a string");for(var N={},j=L||{},U=S.split(v),Q=j.decode||a,K=0;K<U.length;K++){var M=U[K],Y=M.indexOf("=");if(!(Y<0)){var R=M.substr(0,Y).trim(),E=M.substr(++Y,M.length).trim();E[0]=='"'&&(E=E.slice(1,-1)),N[R]==null&&(N[R]=C(E,Q))}}return N}function b(S,L,N){var j=N||{},U=j.encode||c;if(typeof U!="function")throw new TypeError("option encode is invalid");if(!m.test(S))throw new TypeError("argument name is invalid");var Q=U(L);if(Q&&!m.test(Q))throw new TypeError("argument val is invalid");var K=S+"="+Q;if(j.maxAge!=null){var M=j.maxAge-0;if(isNaN(M)||!isFinite(M))throw new TypeError("option maxAge is invalid");K+="; Max-Age="+Math.floor(M)}if(j.domain){if(!m.test(j.domain))throw new TypeError("option domain is invalid");K+="; Domain="+j.domain}if(j.path){if(!m.test(j.path))throw new TypeError("option path is invalid");K+="; Path="+j.path}if(j.expires){if(typeof j.expires.toUTCString!="function")throw new TypeError("option expires is invalid");K+="; Expires="+j.expires.toUTCString()}if(j.httpOnly&&(K+="; HttpOnly"),j.secure&&(K+="; Secure"),j.sameSite){var Y=typeof j.sameSite=="string"?j.sameSite.toLowerCase():j.sameSite;switch(Y){case!0:K+="; SameSite=Strict";break;case"lax":K+="; SameSite=Lax";break;case"strict":K+="; SameSite=Strict";break;case"none":K+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return K}function C(S,L){try{return L(S)}catch(N){return S}}},54493:(p,I,a)=>{a(77971),a(53242);var c=a(54058);p.exports=c.Array.from},24034:(p,I,a)=>{a(92737);var c=a(54058);p.exports=c.Array.isArray},15367:(p,I,a)=>{a(85906);var c=a(35703);p.exports=c("Array").concat},12710:(p,I,a)=>{a(66274);var c=a(35703);p.exports=c("Array").entries},62383:(p,I,a)=>{a(21501);var c=a(35703);p.exports=c("Array").filter},17671:(p,I,a)=>{a(80833);var c=a(35703);p.exports=c("Array").find},99324:(p,I,a)=>{a(2437);var c=a(35703);p.exports=c("Array").forEach},80991:(p,I,a)=>{a(97690);var c=a(35703);p.exports=c("Array").includes},8700:(p,I,a)=>{a(99076);var c=a(35703);p.exports=c("Array").indexOf},23866:(p,I,a)=>{a(68787);var c=a(35703);p.exports=c("Array").map},24900:(p,I,a)=>{a(60186);var c=a(35703);p.exports=c("Array").slice},78209:(p,I,a)=>{a(98611);var c=a(35703);p.exports=c("Array").splice},56043:(p,I,a)=>{var c=a(15367),v=Array.prototype;p.exports=function(m){var h=m.concat;return m===v||m instanceof Array&&h===v.concat?c:h}},2480:(p,I,a)=>{var c=a(62383),v=Array.prototype;p.exports=function(m){var h=m.filter;return m===v||m instanceof Array&&h===v.filter?c:h}},32236:(p,I,a)=>{var c=a(17671),v=Array.prototype;p.exports=function(m){var h=m.find;return m===v||m instanceof Array&&h===v.find?c:h}},58557:(p,I,a)=>{var c=a(80991),v=a(21631),m=Array.prototype,h=String.prototype;p.exports=function(b){var C=b.includes;return b===m||b instanceof Array&&C===m.includes?c:typeof b=="string"||b===h||b instanceof String&&C===h.includes?v:C}},34570:(p,I,a)=>{var c=a(8700),v=Array.prototype;p.exports=function(m){var h=m.indexOf;return m===v||m instanceof Array&&h===v.indexOf?c:h}},88287:(p,I,a)=>{var c=a(23866),v=Array.prototype;p.exports=function(m){var h=m.map;return m===v||m instanceof Array&&h===v.map?c:h}},69601:(p,I,a)=>{var c=a(24900),v=Array.prototype;p.exports=function(m){var h=m.slice;return m===v||m instanceof Array&&h===v.slice?c:h}},18339:(p,I,a)=>{var c=a(78209),v=Array.prototype;p.exports=function(m){var h=m.splice;return m===v||m instanceof Array&&h===v.splice?c:h}},84426:(p,I,a)=>{a(32619);var c=a(54058);c.JSON||(c.JSON={stringify:JSON.stringify}),p.exports=function(m,h,b){return c.JSON.stringify.apply(null,arguments)}},45999:(p,I,a)=>{a(49221);var c=a(54058);p.exports=c.Object.assign},35254:(p,I,a)=>{a(53882);var c=a(54058),v=c.Object;p.exports=function(h,b){return v.create(h,b)}},7702:(p,I,a)=>{a(74979);var c=a(54058),v=c.Object,m=p.exports=function(b,C){return v.defineProperties(b,C)};v.defineProperties.sham&&(m.sham=!0)},48171:(p,I,a)=>{a(86450);var c=a(54058),v=c.Object,m=p.exports=function(b,C,S){return v.defineProperty(b,C,S)};v.defineProperty.sham&&(m.sham=!0)},73081:(p,I,a)=>{a(21078);var c=a(54058);p.exports=c.Object.entries},286:(p,I,a)=>{a(46924);var c=a(54058),v=c.Object,m=p.exports=function(b,C){return v.getOwnPropertyDescriptor(b,C)};v.getOwnPropertyDescriptor.sham&&(m.sham=!0)},92766:(p,I,a)=>{a(88482);var c=a(54058);p.exports=c.Object.getOwnPropertyDescriptors},30498:(p,I,a)=>{a(35824);var c=a(54058);p.exports=c.Object.getOwnPropertySymbols},13966:(p,I,a)=>{a(17405);var c=a(54058);p.exports=c.Object.getPrototypeOf},48494:(p,I,a)=>{a(21724);var c=a(54058);p.exports=c.Object.keys},3065:(p,I,a)=>{a(90108);var c=a(54058);p.exports=c.Object.setPrototypeOf},52956:(p,I,a)=>{a(47627),a(55967),a(98881),a(4560),a(91302),a(44349),a(77971),a(7634);var c=a(54058);p.exports=c.Promise},14983:(p,I,a)=>{a(7453);var c=a(54058);p.exports=c.Reflect.construct},37095:(p,I,a)=>{a(42355);var c=a(54058);p.exports=c.Reflect.get},21631:(p,I,a)=>{a(11035);var c=a(35703);p.exports=c("String").includes},57473:(p,I,a)=>{a(85906),a(55967),a(35824),a(8555),a(52615),a(21732),a(35903),a(1825),a(28394),a(45915),a(61766),a(62737),a(89911),a(74315),a(63131),a(64714),a(70659),a(69120),a(79413),a(1502);var c=a(54058);p.exports=c.Symbol},24227:(p,I,a)=>{a(1825),a(77971),a(7634);var c=a(11477);p.exports=c.f("iterator")},32304:(p,I,a)=>{a(55967),a(54334),a(7634);var c=a(54058);p.exports=c.WeakMap},27385:(p,I,a)=>{var c=a(54493);p.exports=c},81522:(p,I,a)=>{var c=a(24034);p.exports=c},32209:(p,I,a)=>{a(7634),a(77971);var c=a(22902);p.exports=c},44442:(p,I,a)=>{var c=a(2480);p.exports=c},57152:(p,I,a)=>{var c=a(46279);p.exports=c},69447:(p,I,a)=>{var c=a(34570);p.exports=c},81493:(p,I,a)=>{var c=a(69601);p.exports=c},76094:(p,I,a)=>{var c=a(35254);p.exports=c},70573:(p,I,a)=>{var c=a(7702);p.exports=c},73685:(p,I,a)=>{var c=a(48171);p.exports=c},27533:(p,I,a)=>{var c=a(286);p.exports=c},39057:(p,I,a)=>{var c=a(92766);p.exports=c},84710:(p,I,a)=>{var c=a(30498);p.exports=c},74303:(p,I,a)=>{var c=a(13966);p.exports=c},93799:(p,I,a)=>{var c=a(48494);p.exports=c},55122:(p,I,a)=>{var c=a(3065);p.exports=c},29531:(p,I,a)=>{var c=a(52956);a(89731),a(55708),a(30014),a(88731),p.exports=c},10856:(p,I,a)=>{var c=a(14983);p.exports=c},31524:(p,I,a)=>{var c=a(37095);p.exports=c},86600:(p,I,a)=>{var c=a(57473);a(28783),a(43975),a(65799),a(45414),a(46774),a(80620),a(36172),p.exports=c},9759:(p,I,a)=>{var c=a(24227);p.exports=c},33916:p=>{p.exports=function(I){if(typeof I!="function")throw TypeError(String(I)+" is not a function");return I}},42488:(p,I,a)=>{var c=a(10941);p.exports=function(v){if(!c(v)&&v!==null)throw TypeError("Can't set "+String(v)+" as a prototype");return v}},18479:p=>{p.exports=function(){}},5743:p=>{p.exports=function(I,a,c){if(!(I instanceof a))throw TypeError("Incorrect "+(c?c+" ":"")+"invocation");return I}},96059:(p,I,a)=>{var c=a(10941);p.exports=function(v){if(!c(v))throw TypeError(String(v)+" is not an object");return v}},56837:(p,I,a)=>{"use strict";var c=a(3610).forEach,v=a(34194),m=v("forEach");p.exports=m?[].forEach:function(b){return c(this,b,arguments.length>1?arguments[1]:void 0)}},11354:(p,I,a)=>{"use strict";var c=a(86843),v=a(89678),m=a(75196),h=a(6782),b=a(43057),C=a(55449),S=a(22902);p.exports=function(N){var j=v(N),U=typeof this=="function"?this:Array,Q=arguments.length,K=Q>1?arguments[1]:void 0,M=K!==void 0,Y=S(j),R=0,E,V,G,Z,X,z;if(M&&(K=c(K,Q>2?arguments[2]:void 0,2)),Y!=null&&!(U==Array&&h(Y)))for(Z=Y.call(j),X=Z.next,V=new U;!(G=X.call(Z)).done;R++)z=M?m(Z,K,[G.value,R],!0):G.value,C(V,R,z);else for(E=b(j.length),V=new U(E);E>R;R++)z=M?K(j[R],R):j[R],C(V,R,z);return V.length=R,V}},31692:(p,I,a)=>{var c=a(74529),v=a(43057),m=a(59413),h=function(b){return function(C,S,L){var N=c(C),j=v(N.length),U=m(L,j),Q;if(b&&S!=S){for(;j>U;)if(Q=N[U++],Q!=Q)return!0}else for(;j>U;U++)if((b||U in N)&&N[U]===S)return b||U||0;return!b&&-1}};p.exports={includes:h(!0),indexOf:h(!1)}},3610:(p,I,a)=>{var c=a(86843),v=a(37026),m=a(89678),h=a(43057),b=a(64692),C=[].push,S=function(L){var N=L==1,j=L==2,U=L==3,Q=L==4,K=L==6,M=L==7,Y=L==5||K;return function(R,E,V,G){for(var Z=m(R),X=v(Z),z=c(E,V,3),ue=h(X.length),q=0,ne=G||b,ge=N?ne(R,ue):j||M?ne(R,0):void 0,me,pe;ue>q;q++)if((Y||q in X)&&(me=X[q],pe=z(me,q,Z),L))if(N)ge[q]=pe;else if(pe)switch(L){case 3:return!0;case 5:return me;case 6:return q;case 2:C.call(ge,me)}else switch(L){case 4:return!1;case 7:C.call(ge,me)}return K?-1:U||Q?Q:ge}};p.exports={forEach:S(0),map:S(1),filter:S(2),some:S(3),every:S(4),find:S(5),findIndex:S(6),filterOut:S(7)}},50568:(p,I,a)=>{var c=a(95981),v=a(99813),m=a(53385),h=v("species");p.exports=function(b){return m>=51||!c(function(){var C=[],S=C.constructor={};return S[h]=function(){return{foo:1}},C[b](Boolean).foo!==1})}},34194:(p,I,a)=>{"use strict";var c=a(95981);p.exports=function(v,m){var h=[][v];return!!h&&c(function(){h.call(null,m||function(){throw 1},1)})}},64692:(p,I,a)=>{var c=a(10941),v=a(1052),m=a(99813),h=m("species");p.exports=function(b,C){var S;return v(b)&&(S=b.constructor,typeof S=="function"&&(S===Array||v(S.prototype))?S=void 0:c(S)&&(S=S[h],S===null&&(S=void 0))),new(S===void 0?Array:S)(C===0?0:C)}},75196:(p,I,a)=>{var c=a(96059),v=a(7609);p.exports=function(m,h,b,C){try{return C?h(c(b)[0],b[1]):h(b)}catch(S){throw v(m),S}}},21385:(p,I,a)=>{var c=a(99813),v=c("iterator"),m=!1;try{var h=0,b={next:function(){return{done:!!h++}},return:function(){m=!0}};b[v]=function(){return this},Array.from(b,function(){throw 2})}catch(C){}p.exports=function(C,S){if(!S&&!m)return!1;var L=!1;try{var N={};N[v]=function(){return{next:function(){return{done:L=!0}}}},C(N)}catch(j){}return L}},82532:p=>{var I={}.toString;p.exports=function(a){return I.call(a).slice(8,-1)}},9697:(p,I,a)=>{var c=a(22885),v=a(82532),m=a(99813),h=m("toStringTag"),b=v(function(){return arguments}())=="Arguments",C=function(S,L){try{return S[L]}catch(N){}};p.exports=c?v:function(S){var L,N,j;return S===void 0?"Undefined":S===null?"Null":typeof(N=C(L=Object(S),h))=="string"?N:b?v(L):(j=v(L))=="Object"&&typeof L.callee=="function"?"Arguments":j}},8850:(p,I,a)=>{"use strict";var c=a(87524),v=a(21647).getWeakData,m=a(96059),h=a(10941),b=a(5743),C=a(93091),S=a(3610),L=a(47457),N=a(45402),j=N.set,U=N.getterFor,Q=S.find,K=S.findIndex,M=0,Y=function(V){return V.frozen||(V.frozen=new R)},R=function(){this.entries=[]},E=function(V,G){return Q(V.entries,function(Z){return Z[0]===G})};R.prototype={get:function(V){var G=E(this,V);if(G)return G[1]},has:function(V){return!!E(this,V)},set:function(V,G){var Z=E(this,V);Z?Z[1]=G:this.entries.push([V,G])},delete:function(V){var G=K(this.entries,function(Z){return Z[0]===V});return~G&&this.entries.splice(G,1),!!~G}},p.exports={getConstructor:function(V,G,Z,X){var z=V(function(ne,ge){b(ne,z,G),j(ne,{type:G,id:M++,frozen:void 0}),ge!=null&&C(ge,ne[X],{that:ne,AS_ENTRIES:Z})}),ue=U(G),q=function(ne,ge,me){var pe=ue(ne),se=v(m(ge),!0);return se===!0?Y(pe).set(ge,me):se[pe.id]=me,ne};return c(z.prototype,{delete:function(ne){var ge=ue(this);if(!h(ne))return!1;var me=v(ne);return me===!0?Y(ge).delete(ne):me&&L(me,ge.id)&&delete me[ge.id]},has:function(ge){var me=ue(this);if(!h(ge))return!1;var pe=v(ge);return pe===!0?Y(me).has(ge):pe&&L(pe,me.id)}}),c(z.prototype,Z?{get:function(ge){var me=ue(this);if(h(ge)){var pe=v(ge);return pe===!0?Y(me).get(ge):pe?pe[me.id]:void 0}},set:function(ge,me){return q(this,ge,me)}}:{add:function(ge){return q(this,ge,!0)}}),z}}},24683:(p,I,a)=>{"use strict";var c=a(76887),v=a(21899),m=a(21647),h=a(95981),b=a(32029),C=a(93091),S=a(5743),L=a(10941),N=a(90904),j=a(65988).f,U=a(3610).forEach,Q=a(55746),K=a(45402),M=K.set,Y=K.getterFor;p.exports=function(R,E,V){var G=R.indexOf("Map")!==-1,Z=R.indexOf("Weak")!==-1,X=G?"set":"add",z=v[R],ue=z&&z.prototype,q={},ne;if(!Q||typeof z!="function"||!(Z||ue.forEach&&!h(function(){new z().entries().next()})))ne=V.getConstructor(E,R,G,X),m.REQUIRED=!0;else{ne=E(function(me,pe){M(S(me,ne,R),{type:R,collection:new z}),pe!=null&&C(pe,me[X],{that:me,AS_ENTRIES:G})});var ge=Y(R);U(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(me){var pe=me=="add"||me=="set";me in ue&&!(Z&&me=="clear")&&b(ne.prototype,me,function(se,ie){var Oe=ge(this).collection;if(!pe&&Z&&!L(se))return me=="get"?void 0:!1;var Pe=Oe[me](se===0?0:se,ie);return pe?this:Pe})}),Z||j(ne.prototype,"size",{configurable:!0,get:function(){return ge(this).collection.size}})}return N(ne,R,!1,!0),q[R]=ne,c({global:!0,forced:!0},q),Z||V.setStrong(ne,R,G),ne}},67772:(p,I,a)=>{var c=a(99813),v=c("match");p.exports=function(m){var h=/./;try{"/./"[m](h)}catch(b){try{return h[v]=!1,"/./"[m](h)}catch(C){}}return!1}},64160:(p,I,a)=>{var c=a(95981);p.exports=!c(function(){function v(){}return v.prototype.constructor=null,Object.getPrototypeOf(new v)!==v.prototype})},31046:(p,I,a)=>{"use strict";var c=a(35143).IteratorPrototype,v=a(29290),m=a(31887),h=a(90904),b=a(12077),C=function(){return this};p.exports=function(S,L,N){var j=L+" Iterator";return S.prototype=v(c,{next:m(1,N)}),h(S,j,!1,!0),b[j]=C,S}},32029:(p,I,a)=>{var c=a(55746),v=a(65988),m=a(31887);p.exports=c?function(h,b,C){return v.f(h,b,m(1,C))}:function(h,b,C){return h[b]=C,h}},31887:p=>{p.exports=function(I,a){return{enumerable:!(I&1),configurable:!(I&2),writable:!(I&4),value:a}}},55449:(p,I,a)=>{"use strict";var c=a(46935),v=a(65988),m=a(31887);p.exports=function(h,b,C){var S=c(b);S in h?v.f(h,S,m(0,C)):h[S]=C}},47771:(p,I,a)=>{"use strict";var c=a(76887),v=a(31046),m=a(249),h=a(88929),b=a(90904),C=a(32029),S=a(99754),L=a(99813),N=a(82529),j=a(12077),U=a(35143),Q=U.IteratorPrototype,K=U.BUGGY_SAFARI_ITERATORS,M=L("iterator"),Y="keys",R="values",E="entries",V=function(){return this};p.exports=function(G,Z,X,z,ue,q,ne){v(X,Z,z);var ge=function(He){if(He===ue&&Oe)return Oe;if(!K&&He in se)return se[He];switch(He){case Y:return function(){return new X(this,He)};case R:return function(){return new X(this,He)};case E:return function(){return new X(this,He)}}return function(){return new X(this)}},me=Z+" Iterator",pe=!1,se=G.prototype,ie=se[M]||se["@@iterator"]||ue&&se[ue],Oe=!K&&ie||ge(ue),Pe=Z=="Array"&&se.entries||ie,Te,Ce,Xe;if(Pe&&(Te=m(Pe.call(new G)),Q!==Object.prototype&&Te.next&&(!N&&m(Te)!==Q&&(h?h(Te,Q):typeof Te[M]!="function"&&C(Te,M,V)),b(Te,me,!0,!0),N&&(j[me]=V))),ue==R&&ie&&ie.name!==R&&(pe=!0,Oe=function(){return ie.call(this)}),(!N||ne)&&se[M]!==Oe&&C(se,M,Oe),j[Z]=Oe,ue)if(Ce={values:ge(R),keys:q?Oe:ge(Y),entries:ge(E)},ne)for(Xe in Ce)(K||pe||!(Xe in se))&&S(se,Xe,Ce[Xe]);else c({target:Z,proto:!0,forced:K||pe},Ce);return Ce}},66349:(p,I,a)=>{var c=a(54058),v=a(47457),m=a(11477),h=a(65988).f;p.exports=function(b){var C=c.Symbol||(c.Symbol={});v(C,b)||h(C,b,{value:m.f(b)})}},55746:(p,I,a)=>{var c=a(95981);p.exports=!c(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},61333:(p,I,a)=>{var c=a(21899),v=a(10941),m=c.document,h=v(m)&&v(m.createElement);p.exports=function(b){return h?m.createElement(b):{}}},63281:p=>{p.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}},23321:p=>{p.exports=typeof window=="object"},22749:(p,I,a)=>{var c=a(2861);p.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(c)},6049:(p,I,a)=>{var c=a(82532),v=a(21899);p.exports=c(v.process)=="process"},58045:(p,I,a)=>{var c=a(2861);p.exports=/web0s(?!.*chrome)/i.test(c)},2861:(p,I,a)=>{var c=a(626);p.exports=c("navigator","userAgent")||""},53385:(p,I,a)=>{var c=a(21899),v=a(2861),m=c.process,h=m&&m.versions,b=h&&h.v8,C,S;b?(C=b.split("."),S=C[0]<4?1:C[0]+C[1]):v&&(C=v.match(/Edge\/(\d+)/),(!C||C[1]>=74)&&(C=v.match(/Chrome\/(\d+)/),C&&(S=C[1]))),p.exports=S&&+S},35703:(p,I,a)=>{var c=a(54058);p.exports=function(v){return c[v+"Prototype"]}},56759:p=>{p.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},76887:(p,I,a)=>{"use strict";var c=a(21899),v=a(49677).f,m=a(37252),h=a(54058),b=a(86843),C=a(32029),S=a(47457),L=function(N){var j=function(U,Q,K){if(this instanceof N){switch(arguments.length){case 0:return new N;case 1:return new N(U);case 2:return new N(U,Q)}return new N(U,Q,K)}return N.apply(this,arguments)};return j.prototype=N.prototype,j};p.exports=function(N,j){var U=N.target,Q=N.global,K=N.stat,M=N.proto,Y=Q?c:K?c[U]:(c[U]||{}).prototype,R=Q?h:h[U]||(h[U]={}),E=R.prototype,V,G,Z,X,z,ue,q,ne,ge;for(X in j)V=m(Q?X:U+(K?".":"#")+X,N.forced),G=!V&&Y&&S(Y,X),ue=R[X],G&&(N.noTargetGet?(ge=v(Y,X),q=ge&&ge.value):q=Y[X]),z=G&&q?q:j[X],!(G&&typeof ue==typeof z)&&(N.bind&&G?ne=b(z,c):N.wrap&&G?ne=L(z):M&&typeof z=="function"?ne=b(Function.call,z):ne=z,(N.sham||z&&z.sham||ue&&ue.sham)&&C(ne,"sham",!0),R[X]=ne,M&&(Z=U+"Prototype",S(h,Z)||C(h,Z,{}),h[Z][X]=z,N.real&&E&&!E[X]&&C(E,X,z)))}},95981:p=>{p.exports=function(I){try{return!!I()}catch(a){return!0}}},45602:(p,I,a)=>{var c=a(95981);p.exports=!c(function(){return Object.isExtensible(Object.preventExtensions({}))})},86843:(p,I,a)=>{var c=a(33916);p.exports=function(v,m,h){if(c(v),m===void 0)return v;switch(h){case 0:return function(){return v.call(m)};case 1:return function(b){return v.call(m,b)};case 2:return function(b,C){return v.call(m,b,C)};case 3:return function(b,C,S){return v.call(m,b,C,S)}}return function(){return v.apply(m,arguments)}}},98308:(p,I,a)=>{"use strict";var c=a(33916),v=a(10941),m=[].slice,h={},b=function(C,S,L){if(!(S in h)){for(var N=[],j=0;j<S;j++)N[j]="a["+j+"]";h[S]=Function("C,a","return new C("+N.join(",")+")")}return h[S](C,L)};p.exports=Function.bind||function(S){var L=c(this),N=m.call(arguments,1),j=function(){var Q=N.concat(m.call(arguments));return this instanceof j?b(L,Q.length,Q):L.apply(S,Q)};return v(L.prototype)&&(j.prototype=L.prototype),j}},626:(p,I,a)=>{var c=a(54058),v=a(21899),m=function(h){return typeof h=="function"?h:void 0};p.exports=function(h,b){return arguments.length<2?m(c[h])||m(v[h]):c[h]&&c[h][b]||v[h]&&v[h][b]}},22902:(p,I,a)=>{var c=a(9697),v=a(12077),m=a(99813),h=m("iterator");p.exports=function(b){if(b!=null)return b[h]||b["@@iterator"]||v[c(b)]}},21899:(p,I,a)=>{var c=function(v){return v&&v.Math==Math&&v};p.exports=c(typeof globalThis=="object"&&globalThis)||c(typeof window=="object"&&window)||c(typeof self=="object"&&self)||c(typeof a.g=="object"&&a.g)||function(){return this}()||Function("return this")()},47457:(p,I,a)=>{var c=a(89678),v={}.hasOwnProperty;p.exports=Object.hasOwn||function(h,b){return v.call(c(h),b)}},27748:p=>{p.exports={}},34845:(p,I,a)=>{var c=a(21899);p.exports=function(v,m){var h=c.console;h&&h.error&&(arguments.length===1?h.error(v):h.error(v,m))}},15463:(p,I,a)=>{var c=a(626);p.exports=c("document","documentElement")},2840:(p,I,a)=>{var c=a(55746),v=a(95981),m=a(61333);p.exports=!c&&!v(function(){return Object.defineProperty(m("div"),"a",{get:function(){return 7}}).a!=7})},37026:(p,I,a)=>{var c=a(95981),v=a(82532),m="".split;p.exports=c(function(){return!Object("z").propertyIsEnumerable(0)})?function(h){return v(h)=="String"?m.call(h,""):Object(h)}:Object},81302:(p,I,a)=>{var c=a(63030),v=Function.toString;typeof c.inspectSource!="function"&&(c.inspectSource=function(m){return v.call(m)}),p.exports=c.inspectSource},21647:(p,I,a)=>{var c=a(27748),v=a(10941),m=a(47457),h=a(65988).f,b=a(99418),C=a(45602),S=b("meta"),L=0,N=Object.isExtensible||function(){return!0},j=function(Y){h(Y,S,{value:{objectID:"O"+ ++L,weakData:{}}})},U=function(Y,R){if(!v(Y))return typeof Y=="symbol"?Y:(typeof Y=="string"?"S":"P")+Y;if(!m(Y,S)){if(!N(Y))return"F";if(!R)return"E";j(Y)}return Y[S].objectID},Q=function(Y,R){if(!m(Y,S)){if(!N(Y))return!0;if(!R)return!1;j(Y)}return Y[S].weakData},K=function(Y){return C&&M.REQUIRED&&N(Y)&&!m(Y,S)&&j(Y),Y},M=p.exports={REQUIRED:!1,fastKey:U,getWeakData:Q,onFreeze:K};c[S]=!0},45402:(p,I,a)=>{var c=a(38019),v=a(21899),m=a(10941),h=a(32029),b=a(47457),C=a(63030),S=a(44262),L=a(27748),N="Object already initialized",j=v.WeakMap,U,Q,K,M=function(X){return K(X)?Q(X):U(X,{})},Y=function(X){return function(z){var ue;if(!m(z)||(ue=Q(z)).type!==X)throw TypeError("Incompatible receiver, "+X+" required");return ue}};if(c||C.state){var R=C.state||(C.state=new j),E=R.get,V=R.has,G=R.set;U=function(X,z){if(V.call(R,X))throw new TypeError(N);return z.facade=X,G.call(R,X,z),z},Q=function(X){return E.call(R,X)||{}},K=function(X){return V.call(R,X)}}else{var Z=S("state");L[Z]=!0,U=function(X,z){if(b(X,Z))throw new TypeError(N);return z.facade=X,h(X,Z,z),z},Q=function(X){return b(X,Z)?X[Z]:{}},K=function(X){return b(X,Z)}}p.exports={set:U,get:Q,has:K,enforce:M,getterFor:Y}},6782:(p,I,a)=>{var c=a(99813),v=a(12077),m=c("iterator"),h=Array.prototype;p.exports=function(b){return b!==void 0&&(v.Array===b||h[m]===b)}},1052:(p,I,a)=>{var c=a(82532);p.exports=Array.isArray||function(m){return c(m)=="Array"}},37252:(p,I,a)=>{var c=a(95981),v=/#|\.prototype\./,m=function(L,N){var j=b[h(L)];return j==S?!0:j==C?!1:typeof N=="function"?c(N):!!N},h=m.normalize=function(L){return String(L).replace(v,".").toLowerCase()},b=m.data={},C=m.NATIVE="N",S=m.POLYFILL="P";p.exports=m},10941:p=>{p.exports=function(I){return typeof I=="object"?I!==null:typeof I=="function"}},82529:p=>{p.exports=!0},60685:(p,I,a)=>{var c=a(10941),v=a(82532),m=a(99813),h=m("match");p.exports=function(b){var C;return c(b)&&((C=b[h])!==void 0?!!C:v(b)=="RegExp")}},93091:(p,I,a)=>{var c=a(96059),v=a(6782),m=a(43057),h=a(86843),b=a(22902),C=a(7609),S=function(L,N){this.stopped=L,this.result=N};p.exports=function(L,N,j){var U=j&&j.that,Q=!!(j&&j.AS_ENTRIES),K=!!(j&&j.IS_ITERATOR),M=!!(j&&j.INTERRUPTED),Y=h(N,U,1+Q+M),R,E,V,G,Z,X,z,ue=function(ne){return R&&C(R),new S(!0,ne)},q=function(ne){return Q?(c(ne),M?Y(ne[0],ne[1],ue):Y(ne[0],ne[1])):M?Y(ne,ue):Y(ne)};if(K)R=L;else{if(E=b(L),typeof E!="function")throw TypeError("Target is not iterable");if(v(E)){for(V=0,G=m(L.length);G>V;V++)if(Z=q(L[V]),Z&&Z instanceof S)return Z;return new S(!1)}R=E.call(L)}for(X=R.next;!(z=X.call(R)).done;){try{Z=q(z.value)}catch(ne){throw C(R),ne}if(typeof Z=="object"&&Z&&Z instanceof S)return Z}return new S(!1)}},7609:(p,I,a)=>{var c=a(96059);p.exports=function(v){var m=v.return;if(m!==void 0)return c(m.call(v)).value}},35143:(p,I,a)=>{"use strict";var c=a(95981),v=a(249),m=a(32029),h=a(47457),b=a(99813),C=a(82529),S=b("iterator"),L=!1,N=function(){return this},j,U,Q;[].keys&&(Q=[].keys(),"next"in Q?(U=v(v(Q)),U!==Object.prototype&&(j=U)):L=!0);var K=j==null||c(function(){var M={};return j[S].call(M)!==M});K&&(j={}),(!C||K)&&!h(j,S)&&m(j,S,N),p.exports={IteratorPrototype:j,BUGGY_SAFARI_ITERATORS:L}},12077:p=>{p.exports={}},66132:(p,I,a)=>{var c=a(21899),v=a(49677).f,m=a(42941).set,h=a(22749),b=a(58045),C=a(6049),S=c.MutationObserver||c.WebKitMutationObserver,L=c.document,N=c.process,j=c.Promise,U=v(c,"queueMicrotask"),Q=U&&U.value,K,M,Y,R,E,V,G,Z;Q||(K=function(){var X,z;for(C&&(X=N.domain)&&X.exit();M;){z=M.fn,M=M.next;try{z()}catch(ue){throw M?R():Y=void 0,ue}}Y=void 0,X&&X.enter()},!h&&!C&&!b&&S&&L?(E=!0,V=L.createTextNode(""),new S(K).observe(V,{characterData:!0}),R=function(){V.data=E=!E}):j&&j.resolve?(G=j.resolve(void 0),G.constructor=j,Z=G.then,R=function(){Z.call(G,K)}):C?R=function(){N.nextTick(K)}:R=function(){m.call(c,K)}),p.exports=Q||function(X){var z={fn:X,next:void 0};Y&&(Y.next=z),M||(M=z,R()),Y=z}},19297:(p,I,a)=>{var c=a(21899);p.exports=c.Promise},72497:(p,I,a)=>{var c=a(53385),v=a(95981);p.exports=!!Object.getOwnPropertySymbols&&!v(function(){var m=Symbol();return!String(m)||!(Object(m)instanceof Symbol)||!Symbol.sham&&c&&c<41})},38019:(p,I,a)=>{var c=a(21899),v=a(81302),m=c.WeakMap;p.exports=typeof m=="function"&&/native code/.test(v(m))},69520:(p,I,a)=>{"use strict";var c=a(33916),v=function(m){var h,b;this.promise=new m(function(C,S){if(h!==void 0||b!==void 0)throw TypeError("Bad Promise constructor");h=C,b=S}),this.resolve=c(h),this.reject=c(b)};p.exports.f=function(m){return new v(m)}},70344:(p,I,a)=>{var c=a(60685);p.exports=function(v){if(c(v))throw TypeError("The method doesn't accept regular expressions");return v}},24420:(p,I,a)=>{"use strict";var c=a(55746),v=a(95981),m=a(14771),h=a(87857),b=a(36760),C=a(89678),S=a(37026),L=Object.assign,N=Object.defineProperty;p.exports=!L||v(function(){if(c&&L({b:1},L(N({},"a",{enumerable:!0,get:function(){N(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var j={},U={},Q=Symbol(),K="abcdefghijklmnopqrst";return j[Q]=7,K.split("").forEach(function(M){U[M]=M}),L({},j)[Q]!=7||m(L({},U)).join("")!=K})?function(U,Q){for(var K=C(U),M=arguments.length,Y=1,R=h.f,E=b.f;M>Y;)for(var V=S(arguments[Y++]),G=R?m(V).concat(R(V)):m(V),Z=G.length,X=0,z;Z>X;)z=G[X++],(!c||E.call(V,z))&&(K[z]=V[z]);return K}:L},29290:(p,I,a)=>{var c=a(96059),v=a(59938),m=a(56759),h=a(27748),b=a(15463),C=a(61333),S=a(44262),L=">",N="<",j="prototype",U="script",Q=S("IE_PROTO"),K=function(){},M=function(G){return N+U+L+G+N+"/"+U+L},Y=function(G){G.write(M("")),G.close();var Z=G.parentWindow.Object;return G=null,Z},R=function(){var G=C("iframe"),Z="java"+U+":",X;return G.style.display="none",b.appendChild(G),G.src=String(Z),X=G.contentWindow.document,X.open(),X.write(M("document.F=Object")),X.close(),X.F},E,V=function(){try{E=document.domain&&new ActiveXObject("htmlfile")}catch(Z){}V=E?Y(E):R();for(var G=m.length;G--;)delete V[j][m[G]];return V()};h[Q]=!0,p.exports=Object.create||function(Z,X){var z;return Z!==null?(K[j]=c(Z),z=new K,K[j]=null,z[Q]=Z):z=V(),X===void 0?z:v(z,X)}},59938:(p,I,a)=>{var c=a(55746),v=a(65988),m=a(96059),h=a(14771);p.exports=c?Object.defineProperties:function(C,S){m(C);for(var L=h(S),N=L.length,j=0,U;N>j;)v.f(C,U=L[j++],S[U]);return C}},65988:(p,I,a)=>{var c=a(55746),v=a(2840),m=a(96059),h=a(46935),b=Object.defineProperty;I.f=c?b:function(S,L,N){if(m(S),L=h(L,!0),m(N),v)try{return b(S,L,N)}catch(j){}if("get"in N||"set"in N)throw TypeError("Accessors not supported");return"value"in N&&(S[L]=N.value),S}},49677:(p,I,a)=>{var c=a(55746),v=a(36760),m=a(31887),h=a(74529),b=a(46935),C=a(47457),S=a(2840),L=Object.getOwnPropertyDescriptor;I.f=c?L:function(j,U){if(j=h(j),U=b(U,!0),S)try{return L(j,U)}catch(Q){}if(C(j,U))return m(!v.f.call(j,U),j[U])}},684:(p,I,a)=>{var c=a(74529),v=a(10946).f,m={}.toString,h=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],b=function(C){try{return v(C)}catch(S){return h.slice()}};p.exports.f=function(S){return h&&m.call(S)=="[object Window]"?b(S):v(c(S))}},10946:(p,I,a)=>{var c=a(55629),v=a(56759),m=v.concat("length","prototype");I.f=Object.getOwnPropertyNames||function(b){return c(b,m)}},87857:(p,I)=>{I.f=Object.getOwnPropertySymbols},249:(p,I,a)=>{var c=a(47457),v=a(89678),m=a(44262),h=a(64160),b=m("IE_PROTO"),C=Object.prototype;p.exports=h?Object.getPrototypeOf:function(S){return S=v(S),c(S,b)?S[b]:typeof S.constructor=="function"&&S instanceof S.constructor?S.constructor.prototype:S instanceof Object?C:null}},55629:(p,I,a)=>{var c=a(47457),v=a(74529),m=a(31692).indexOf,h=a(27748);p.exports=function(b,C){var S=v(b),L=0,N=[],j;for(j in S)!c(h,j)&&c(S,j)&&N.push(j);for(;C.length>L;)c(S,j=C[L++])&&(~m(N,j)||N.push(j));return N}},14771:(p,I,a)=>{var c=a(55629),v=a(56759);p.exports=Object.keys||function(h){return c(h,v)}},36760:(p,I)=>{"use strict";var a={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,v=c&&!a.call({1:2},1);I.f=v?function(h){var b=c(this,h);return!!b&&b.enumerable}:a},88929:(p,I,a)=>{var c=a(96059),v=a(42488);p.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var m=!1,h={},b;try{b=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,b.call(h,[]),m=h instanceof Array}catch(C){}return function(S,L){return c(S),v(L),m?b.call(S,L):S.__proto__=L,S}}():void 0)},88810:(p,I,a)=>{var c=a(55746),v=a(14771),m=a(74529),h=a(36760).f,b=function(C){return function(S){for(var L=m(S),N=v(L),j=N.length,U=0,Q=[],K;j>U;)K=N[U++],(!c||h.call(L,K))&&Q.push(C?[K,L[K]]:L[K]);return Q}};p.exports={entries:b(!0),values:b(!1)}},95623:(p,I,a)=>{"use strict";var c=a(22885),v=a(9697);p.exports=c?{}.toString:function(){return"[object "+v(this)+"]"}},31136:(p,I,a)=>{var c=a(626),v=a(10946),m=a(87857),h=a(96059);p.exports=c("Reflect","ownKeys")||function(C){var S=v.f(h(C)),L=m.f;return L?S.concat(L(C)):S}},54058:p=>{p.exports={}},40002:p=>{p.exports=function(I){try{return{error:!1,value:I()}}catch(a){return{error:!0,value:a}}}},56584:(p,I,a)=>{var c=a(96059),v=a(10941),m=a(69520);p.exports=function(h,b){if(c(h),v(b)&&b.constructor===h)return b;var C=m.f(h),S=C.resolve;return S(b),C.promise}},87524:(p,I,a)=>{var c=a(99754);p.exports=function(v,m,h){for(var b in m)h&&h.unsafe&&v[b]?v[b]=m[b]:c(v,b,m[b],h);return v}},99754:(p,I,a)=>{var c=a(32029);p.exports=function(v,m,h,b){b&&b.enumerable?v[m]=h:c(v,m,h)}},48219:p=>{p.exports=function(I){if(I==null)throw TypeError("Can't call method on "+I);return I}},4911:(p,I,a)=>{var c=a(21899),v=a(32029);p.exports=function(m,h){try{v(c,m,h)}catch(b){c[m]=h}return h}},94431:(p,I,a)=>{"use strict";var c=a(626),v=a(65988),m=a(99813),h=a(55746),b=m("species");p.exports=function(C){var S=c(C),L=v.f;h&&S&&!S[b]&&L(S,b,{configurable:!0,get:function(){return this}})}},90904:(p,I,a)=>{var c=a(22885),v=a(65988).f,m=a(32029),h=a(47457),b=a(95623),C=a(99813),S=C("toStringTag");p.exports=function(L,N,j,U){if(L){var Q=j?L:L.prototype;h(Q,S)||v(Q,S,{configurable:!0,value:N}),U&&!c&&m(Q,"toString",b)}}},44262:(p,I,a)=>{var c=a(68726),v=a(99418),m=c("keys");p.exports=function(h){return m[h]||(m[h]=v(h))}},63030:(p,I,a)=>{var c=a(21899),v=a(4911),m="__core-js_shared__",h=c[m]||v(m,{});p.exports=h},68726:(p,I,a)=>{var c=a(82529),v=a(63030);(p.exports=function(m,h){return v[m]||(v[m]=h!==void 0?h:{})})("versions",[]).push({version:"3.14.0",mode:c?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},70487:(p,I,a)=>{var c=a(96059),v=a(33916),m=a(99813),h=m("species");p.exports=function(b,C){var S=c(b).constructor,L;return S===void 0||(L=c(S)[h])==null?C:v(L)}},64620:(p,I,a)=>{var c=a(68459),v=a(48219),m=function(h){return function(b,C){var S=String(v(b)),L=c(C),N=S.length,j,U;return L<0||L>=N?h?"":void 0:(j=S.charCodeAt(L),j<55296||j>56319||L+1===N||(U=S.charCodeAt(L+1))<56320||U>57343?h?S.charAt(L):j:h?S.slice(L,L+2):(j-55296<<10)+(U-56320)+65536)}};p.exports={codeAt:m(!1),charAt:m(!0)}},42941:(p,I,a)=>{var c=a(21899),v=a(95981),m=a(86843),h=a(15463),b=a(61333),C=a(22749),S=a(6049),L=c.location,N=c.setImmediate,j=c.clearImmediate,U=c.process,Q=c.MessageChannel,K=c.Dispatch,M=0,Y={},R="onreadystatechange",E,V,G,Z=function(q){if(Y.hasOwnProperty(q)){var ne=Y[q];delete Y[q],ne()}},X=function(q){return function(){Z(q)}},z=function(q){Z(q.data)},ue=function(q){c.postMessage(q+"",L.protocol+"//"+L.host)};(!N||!j)&&(N=function(ne){for(var ge=[],me=1;arguments.length>me;)ge.push(arguments[me++]);return Y[++M]=function(){(typeof ne=="function"?ne:Function(ne)).apply(void 0,ge)},E(M),M},j=function(ne){delete Y[ne]},S?E=function(q){U.nextTick(X(q))}:K&&K.now?E=function(q){K.now(X(q))}:Q&&!C?(V=new Q,G=V.port2,V.port1.onmessage=z,E=m(G.postMessage,G,1)):c.addEventListener&&typeof postMessage=="function"&&!c.importScripts&&L&&L.protocol!=="file:"&&!v(ue)?(E=ue,c.addEventListener("message",z,!1)):R in b("script")?E=function(q){h.appendChild(b("script"))[R]=function(){h.removeChild(this),Z(q)}}:E=function(q){setTimeout(X(q),0)}),p.exports={set:N,clear:j}},59413:(p,I,a)=>{var c=a(68459),v=Math.max,m=Math.min;p.exports=function(h,b){var C=c(h);return C<0?v(C+b,0):m(C,b)}},74529:(p,I,a)=>{var c=a(37026),v=a(48219);p.exports=function(m){return c(v(m))}},68459:p=>{var I=Math.ceil,a=Math.floor;p.exports=function(c){return isNaN(c=+c)?0:(c>0?a:I)(c)}},43057:(p,I,a)=>{var c=a(68459),v=Math.min;p.exports=function(m){return m>0?v(c(m),9007199254740991):0}},89678:(p,I,a)=>{var c=a(48219);p.exports=function(v){return Object(c(v))}},46935:(p,I,a)=>{var c=a(10941);p.exports=function(v,m){if(!c(v))return v;var h,b;if(m&&typeof(h=v.toString)=="function"&&!c(b=h.call(v))||typeof(h=v.valueOf)=="function"&&!c(b=h.call(v))||!m&&typeof(h=v.toString)=="function"&&!c(b=h.call(v)))return b;throw TypeError("Can't convert object to primitive value")}},22885:(p,I,a)=>{var c=a(99813),v=c("toStringTag"),m={};m[v]="z",p.exports=String(m)==="[object z]"},99418:p=>{var I=0,a=Math.random();p.exports=function(c){return"Symbol("+String(c===void 0?"":c)+")_"+(++I+a).toString(36)}},32302:(p,I,a)=>{var c=a(72497);p.exports=c&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},11477:(p,I,a)=>{var c=a(99813);I.f=c},99813:(p,I,a)=>{var c=a(21899),v=a(68726),m=a(47457),h=a(99418),b=a(72497),C=a(32302),S=v("wks"),L=c.Symbol,N=C?L:L&&L.withoutSetter||h;p.exports=function(j){return(!m(S,j)||!(b||typeof S[j]=="string"))&&(b&&m(L,j)?S[j]=L[j]:S[j]=N("Symbol."+j)),S[j]}},47627:(p,I,a)=>{"use strict";var c=a(76887),v=a(249),m=a(88929),h=a(29290),b=a(32029),C=a(31887),S=a(93091),L=function(j,U){var Q=this;if(!(Q instanceof L))return new L(j,U);m&&(Q=m(new Error(void 0),v(Q))),U!==void 0&&b(Q,"message",String(U));var K=[];return S(j,K.push,{that:K}),b(Q,"errors",K),Q};L.prototype=h(Error.prototype,{constructor:C(5,L),message:C(5,""),name:C(5,"AggregateError")}),c({global:!0},{AggregateError:L})},85906:(p,I,a)=>{"use strict";var c=a(76887),v=a(95981),m=a(1052),h=a(10941),b=a(89678),C=a(43057),S=a(55449),L=a(64692),N=a(50568),j=a(99813),U=a(53385),Q=j("isConcatSpreadable"),K=9007199254740991,M="Maximum allowed index exceeded",Y=U>=51||!v(function(){var G=[];return G[Q]=!1,G.concat()[0]!==G}),R=N("concat"),E=function(G){if(!h(G))return!1;var Z=G[Q];return Z!==void 0?!!Z:m(G)},V=!Y||!R;c({target:"Array",proto:!0,forced:V},{concat:function(Z){var X=b(this),z=L(X,0),ue=0,q,ne,ge,me,pe;for(q=-1,ge=arguments.length;q<ge;q++)if(pe=q===-1?X:arguments[q],E(pe)){if(me=C(pe.length),ue+me>K)throw TypeError(M);for(ne=0;ne<me;ne++,ue++)ne in pe&&S(z,ue,pe[ne])}else{if(ue>=K)throw TypeError(M);S(z,ue++,pe)}return z.length=ue,z}})},21501:(p,I,a)=>{"use strict";var c=a(76887),v=a(3610).filter,m=a(50568),h=m("filter");c({target:"Array",proto:!0,forced:!h},{filter:function(C){return v(this,C,arguments.length>1?arguments[1]:void 0)}})},80833:(p,I,a)=>{"use strict";var c=a(76887),v=a(3610).find,m=a(18479),h="find",b=!0;h in[]&&Array(1)[h](function(){b=!1}),c({target:"Array",proto:!0,forced:b},{find:function(S){return v(this,S,arguments.length>1?arguments[1]:void 0)}}),m(h)},2437:(p,I,a)=>{"use strict";var c=a(76887),v=a(56837);c({target:"Array",proto:!0,forced:[].forEach!=v},{forEach:v})},53242:(p,I,a)=>{var c=a(76887),v=a(11354),m=a(21385),h=!m(function(b){Array.from(b)});c({target:"Array",stat:!0,forced:h},{from:v})},97690:(p,I,a)=>{"use strict";var c=a(76887),v=a(31692).includes,m=a(18479);c({target:"Array",proto:!0},{includes:function(b){return v(this,b,arguments.length>1?arguments[1]:void 0)}}),m("includes")},99076:(p,I,a)=>{"use strict";var c=a(76887),v=a(31692).indexOf,m=a(34194),h=[].indexOf,b=!!h&&1/[1].indexOf(1,-0)<0,C=m("indexOf");c({target:"Array",proto:!0,forced:b||!C},{indexOf:function(L){return b?h.apply(this,arguments)||0:v(this,L,arguments.length>1?arguments[1]:void 0)}})},92737:(p,I,a)=>{var c=a(76887),v=a(1052);c({target:"Array",stat:!0},{isArray:v})},66274:(p,I,a)=>{"use strict";var c=a(74529),v=a(18479),m=a(12077),h=a(45402),b=a(47771),C="Array Iterator",S=h.set,L=h.getterFor(C);p.exports=b(Array,"Array",function(N,j){S(this,{type:C,target:c(N),index:0,kind:j})},function(){var N=L(this),j=N.target,U=N.kind,Q=N.index++;return!j||Q>=j.length?(N.target=void 0,{value:void 0,done:!0}):U=="keys"?{value:Q,done:!1}:U=="values"?{value:j[Q],done:!1}:{value:[Q,j[Q]],done:!1}},"values"),m.Arguments=m.Array,v("keys"),v("values"),v("entries")},68787:(p,I,a)=>{"use strict";var c=a(76887),v=a(3610).map,m=a(50568),h=m("map");c({target:"Array",proto:!0,forced:!h},{map:function(C){return v(this,C,arguments.length>1?arguments[1]:void 0)}})},60186:(p,I,a)=>{"use strict";var c=a(76887),v=a(10941),m=a(1052),h=a(59413),b=a(43057),C=a(74529),S=a(55449),L=a(99813),N=a(50568),j=N("slice"),U=L("species"),Q=[].slice,K=Math.max;c({target:"Array",proto:!0,forced:!j},{slice:function(Y,R){var E=C(this),V=b(E.length),G=h(Y,V),Z=h(R===void 0?V:R,V),X,z,ue;if(m(E)&&(X=E.constructor,typeof X=="function"&&(X===Array||m(X.prototype))?X=void 0:v(X)&&(X=X[U],X===null&&(X=void 0)),X===Array||X===void 0))return Q.call(E,G,Z);for(z=new(X===void 0?Array:X)(K(Z-G,0)),ue=0;G<Z;G++,ue++)G in E&&S(z,ue,E[G]);return z.length=ue,z}})},98611:(p,I,a)=>{"use strict";var c=a(76887),v=a(59413),m=a(68459),h=a(43057),b=a(89678),C=a(64692),S=a(55449),L=a(50568),N=L("splice"),j=Math.max,U=Math.min,Q=9007199254740991,K="Maximum allowed length exceeded";c({target:"Array",proto:!0,forced:!N},{splice:function(Y,R){var E=b(this),V=h(E.length),G=v(Y,V),Z=arguments.length,X,z,ue,q,ne,ge;if(Z===0?X=z=0:Z===1?(X=0,z=V-G):(X=Z-2,z=U(j(m(R),0),V-G)),V+X-z>Q)throw TypeError(K);for(ue=C(E,z),q=0;q<z;q++)ne=G+q,ne in E&&S(ue,q,E[ne]);if(ue.length=z,X<z){for(q=G;q<V-z;q++)ne=q+z,ge=q+X,ne in E?E[ge]=E[ne]:delete E[ge];for(q=V;q>V-z+X;q--)delete E[q-1]}else if(X>z)for(q=V-z;q>G;q--)ne=q+z-1,ge=q+X-1,ne in E?E[ge]=E[ne]:delete E[ge];for(q=0;q<X;q++)E[q+G]=arguments[q+2];return E.length=V-z+X,ue}})},32619:(p,I,a)=>{var c=a(76887),v=a(626),m=a(95981),h=v("JSON","stringify"),b=/[\uD800-\uDFFF]/g,C=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,L=function(j,U,Q){var K=Q.charAt(U-1),M=Q.charAt(U+1);return C.test(j)&&!S.test(M)||S.test(j)&&!C.test(K)?"\\u"+j.charCodeAt(0).toString(16):j},N=m(function(){return h("\uDF06\uD834")!=='"\\udf06\\ud834"'||h("\uDEAD")!=='"\\udead"'});h&&c({target:"JSON",stat:!0,forced:N},{stringify:function(U,Q,K){var M=h.apply(null,arguments);return typeof M=="string"?M.replace(b,L):M}})},69120:(p,I,a)=>{var c=a(21899),v=a(90904);v(c.JSON,"JSON",!0)},79413:()=>{},49221:(p,I,a)=>{var c=a(76887),v=a(24420);c({target:"Object",stat:!0,forced:Object.assign!==v},{assign:v})},53882:(p,I,a)=>{var c=a(76887),v=a(55746),m=a(29290);c({target:"Object",stat:!0,sham:!v},{create:m})},74979:(p,I,a)=>{var c=a(76887),v=a(55746),m=a(59938);c({target:"Object",stat:!0,forced:!v,sham:!v},{defineProperties:m})},86450:(p,I,a)=>{var c=a(76887),v=a(55746),m=a(65988);c({target:"Object",stat:!0,forced:!v,sham:!v},{defineProperty:m.f})},21078:(p,I,a)=>{var c=a(76887),v=a(88810).entries;c({target:"Object",stat:!0},{entries:function(h){return v(h)}})},46924:(p,I,a)=>{var c=a(76887),v=a(95981),m=a(74529),h=a(49677).f,b=a(55746),C=v(function(){h(1)}),S=!b||C;c({target:"Object",stat:!0,forced:S,sham:!b},{getOwnPropertyDescriptor:function(N,j){return h(m(N),j)}})},88482:(p,I,a)=>{var c=a(76887),v=a(55746),m=a(31136),h=a(74529),b=a(49677),C=a(55449);c({target:"Object",stat:!0,sham:!v},{getOwnPropertyDescriptors:function(L){for(var N=h(L),j=b.f,U=m(N),Q={},K=0,M,Y;U.length>K;)Y=j(N,M=U[K++]),Y!==void 0&&C(Q,M,Y);return Q}})},17405:(p,I,a)=>{var c=a(76887),v=a(95981),m=a(89678),h=a(249),b=a(64160),C=v(function(){h(1)});c({target:"Object",stat:!0,forced:C,sham:!b},{getPrototypeOf:function(L){return h(m(L))}})},21724:(p,I,a)=>{var c=a(76887),v=a(89678),m=a(14771),h=a(95981),b=h(function(){m(1)});c({target:"Object",stat:!0,forced:b},{keys:function(S){return m(v(S))}})},90108:(p,I,a)=>{var c=a(76887),v=a(88929);c({target:"Object",stat:!0},{setPrototypeOf:v})},55967:()=>{},4560:(p,I,a)=>{"use strict";var c=a(76887),v=a(33916),m=a(69520),h=a(40002),b=a(93091);c({target:"Promise",stat:!0},{allSettled:function(S){var L=this,N=m.f(L),j=N.resolve,U=N.reject,Q=h(function(){var K=v(L.resolve),M=[],Y=0,R=1;b(S,function(E){var V=Y++,G=!1;M.push(void 0),R++,K.call(L,E).then(function(Z){G||(G=!0,M[V]={status:"fulfilled",value:Z},--R||j(M))},function(Z){G||(G=!0,M[V]={status:"rejected",reason:Z},--R||j(M))})}),--R||j(M)});return Q.error&&U(Q.value),N.promise}})},91302:(p,I,a)=>{"use strict";var c=a(76887),v=a(33916),m=a(626),h=a(69520),b=a(40002),C=a(93091),S="No one promise resolved";c({target:"Promise",stat:!0},{any:function(N){var j=this,U=h.f(j),Q=U.resolve,K=U.reject,M=b(function(){var Y=v(j.resolve),R=[],E=0,V=1,G=!1;C(N,function(Z){var X=E++,z=!1;R.push(void 0),V++,Y.call(j,Z).then(function(ue){z||G||(G=!0,Q(ue))},function(ue){z||G||(z=!0,R[X]=ue,--V||K(new(m("AggregateError"))(R,S)))})}),--V||K(new(m("AggregateError"))(R,S))});return M.error&&K(M.value),U.promise}})},44349:(p,I,a)=>{"use strict";var c=a(76887),v=a(82529),m=a(19297),h=a(95981),b=a(626),C=a(70487),S=a(56584),L=a(99754),N=!!m&&h(function(){m.prototype.finally.call({then:function(){}},function(){})});if(c({target:"Promise",proto:!0,real:!0,forced:N},{finally:function(U){var Q=C(this,b("Promise")),K=typeof U=="function";return this.then(K?function(M){return S(Q,U()).then(function(){return M})}:U,K?function(M){return S(Q,U()).then(function(){throw M})}:U)}}),!v&&typeof m=="function"){var j=b("Promise").prototype.finally;m.prototype.finally!==j&&L(m.prototype,"finally",j,{unsafe:!0})}},98881:(p,I,a)=>{"use strict";var c=a(76887),v=a(82529),m=a(21899),h=a(626),b=a(19297),C=a(99754),S=a(87524),L=a(88929),N=a(90904),j=a(94431),U=a(10941),Q=a(33916),K=a(5743),M=a(81302),Y=a(93091),R=a(21385),E=a(70487),V=a(42941).set,G=a(66132),Z=a(56584),X=a(34845),z=a(69520),ue=a(40002),q=a(45402),ne=a(37252),ge=a(99813),me=a(23321),pe=a(6049),se=a(53385),ie=ge("species"),Oe="Promise",Pe=q.get,Te=q.set,Ce=q.getterFor(Oe),Xe=b&&b.prototype,He=b,Je=Xe,ut=m.TypeError,ft=m.document,yt=m.process,Qe=z.f,nt=Qe,ct=!!(ft&&ft.createEvent&&m.dispatchEvent),dt=typeof PromiseRejectionEvent=="function",st="unhandledrejection",Ot="rejectionhandled",Et=0,St=1,Ut=2,Dt=1,Nt=2,mt=!1,It,ht,zt,Kt,sr=ne(Oe,function(){var _=M(He)!==String(He);if(!_&&se===66||v&&!Je.finally)return!0;if(se>=51&&/native code/.test(He))return!1;var fe=new He(function(be){be(1)}),te=function(be){be(function(){},function(){})},ce=fe.constructor={};return ce[ie]=te,mt=fe.then(function(){})instanceof te,mt?!_&&me&&!dt:!0}),Mt=sr||!R(function(_){He.all(_).catch(function(){})}),Wt=function(_){var fe;return U(_)&&typeof(fe=_.then)=="function"?fe:!1},Bt=function(_,fe){if(!_.notified){_.notified=!0;var te=_.reactions;G(function(){for(var ce=_.value,be=_.state==St,Le=0;te.length>Le;){var Re=te[Le++],We=be?Re.ok:Re.fail,ot=Re.resolve,vt=Re.reject,Ft=Re.domain,At,bn,zr;try{We?(be||(_.rejection===Nt&&O(_),_.rejection=Dt),We===!0?At=ce:(Ft&&Ft.enter(),At=We(ce),Ft&&(Ft.exit(),zr=!0)),At===Re.promise?vt(ut("Promise-chain cycle")):(bn=Wt(At))?bn.call(At,ot,vt):ot(At)):vt(ce)}catch(Fr){Ft&&!zr&&Ft.exit(),vt(Fr)}}_.reactions=[],_.notified=!1,fe&&!_.rejection&&Be(_)})}},k=function(_,fe,te){var ce,be;ct?(ce=ft.createEvent("Event"),ce.promise=fe,ce.reason=te,ce.initEvent(_,!1,!0),m.dispatchEvent(ce)):ce={promise:fe,reason:te},!dt&&(be=m["on"+_])?be(ce):_===st&&X("Unhandled promise rejection",te)},Be=function(_){V.call(m,function(){var fe=_.facade,te=_.value,ce=$(_),be;if(ce&&(be=ue(function(){pe?yt.emit("unhandledRejection",te,fe):k(st,fe,te)}),_.rejection=pe||$(_)?Nt:Dt,be.error))throw be.value})},$=function(_){return _.rejection!==Dt&&!_.parent},O=function(_){V.call(m,function(){var fe=_.facade;pe?yt.emit("rejectionHandled",fe):k(Ot,fe,_.value)})},T=function(_,fe,te){return function(ce){_(fe,ce,te)}},oe=function(_,fe,te){_.done||(_.done=!0,te&&(_=te),_.value=fe,_.state=Ut,Bt(_,!0))},D=function(_,fe,te){if(!_.done){_.done=!0,te&&(_=te);try{if(_.facade===fe)throw ut("Promise can't be resolved itself");var ce=Wt(fe);ce?G(function(){var be={done:!1};try{ce.call(fe,T(D,be,_),T(oe,be,_))}catch(Le){oe(be,Le,_)}}):(_.value=fe,_.state=St,Bt(_,!1))}catch(be){oe({done:!1},be,_)}}};if(sr&&(He=function(fe){K(this,He,Oe),Q(fe),It.call(this);var te=Pe(this);try{fe(T(D,te),T(oe,te))}catch(ce){oe(te,ce)}},Je=He.prototype,It=function(fe){Te(this,{type:Oe,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:Et,value:void 0})},It.prototype=S(Je,{then:function(fe,te){var ce=Ce(this),be=Qe(E(this,He));return be.ok=typeof fe=="function"?fe:!0,be.fail=typeof te=="function"&&te,be.domain=pe?yt.domain:void 0,ce.parent=!0,ce.reactions.push(be),ce.state!=Et&&Bt(ce,!1),be.promise},catch:function(_){return this.then(void 0,_)}}),ht=function(){var _=new It,fe=Pe(_);this.promise=_,this.resolve=T(D,fe),this.reject=T(oe,fe)},z.f=Qe=function(_){return _===He||_===zt?new ht(_):nt(_)},!v&&typeof b=="function"&&Xe!==Object.prototype)){Kt=Xe.then,mt||(C(Xe,"then",function(fe,te){var ce=this;return new He(function(be,Le){Kt.call(ce,be,Le)}).then(fe,te)},{unsafe:!0}),C(Xe,"catch",Je.catch,{unsafe:!0}));try{delete Xe.constructor}catch(_){}L&&L(Xe,Je)}c({global:!0,wrap:!0,forced:sr},{Promise:He}),N(He,Oe,!1,!0),j(Oe),zt=h(Oe),c({target:Oe,stat:!0,forced:sr},{reject:function(fe){var te=Qe(this);return te.reject.call(void 0,fe),te.promise}}),c({target:Oe,stat:!0,forced:v||sr},{resolve:function(fe){return Z(v&&this===zt?He:this,fe)}}),c({target:Oe,stat:!0,forced:Mt},{all:function(fe){var te=this,ce=Qe(te),be=ce.resolve,Le=ce.reject,Re=ue(function(){var We=Q(te.resolve),ot=[],vt=0,Ft=1;Y(fe,function(At){var bn=vt++,zr=!1;ot.push(void 0),Ft++,We.call(te,At).then(function(Fr){zr||(zr=!0,ot[bn]=Fr,--Ft||be(ot))},Le)}),--Ft||be(ot)});return Re.error&&Le(Re.value),ce.promise},race:function(fe){var te=this,ce=Qe(te),be=ce.reject,Le=ue(function(){var Re=Q(te.resolve);Y(fe,function(We){Re.call(te,We).then(ce.resolve,be)})});return Le.error&&be(Le.value),ce.promise}})},7453:(p,I,a)=>{var c=a(76887),v=a(626),m=a(33916),h=a(96059),b=a(10941),C=a(29290),S=a(98308),L=a(95981),N=v("Reflect","construct"),j=L(function(){function K(){}return!(N(function(){},[],K)instanceof K)}),U=!L(function(){N(function(){})}),Q=j||U;c({target:"Reflect",stat:!0,forced:Q,sham:Q},{construct:function(M,Y){m(M),h(Y);var R=arguments.length<3?M:m(arguments[2]);if(U&&!j)return N(M,Y,R);if(M==R){switch(Y.length){case 0:return new M;case 1:return new M(Y[0]);case 2:return new M(Y[0],Y[1]);case 3:return new M(Y[0],Y[1],Y[2]);case 4:return new M(Y[0],Y[1],Y[2],Y[3])}var E=[null];return E.push.apply(E,Y),new(S.apply(M,E))}var V=R.prototype,G=C(b(V)?V:Object.prototype),Z=Function.apply.call(M,G,Y);return b(Z)?Z:G}})},42355:(p,I,a)=>{var c=a(76887),v=a(10941),m=a(96059),h=a(47457),b=a(49677),C=a(249);function S(L,N){var j=arguments.length<3?L:arguments[2],U,Q;if(m(L)===j)return L[N];if(U=b.f(L,N))return h(U,"value")?U.value:U.get===void 0?void 0:U.get.call(j);if(v(Q=C(L)))return S(Q,N,j)}c({target:"Reflect",stat:!0},{get:S})},1502:()=>{},11035:(p,I,a)=>{"use strict";var c=a(76887),v=a(70344),m=a(48219),h=a(67772);c({target:"String",proto:!0,forced:!h("includes")},{includes:function(C){return!!~String(m(this)).indexOf(v(C),arguments.length>1?arguments[1]:void 0)}})},77971:(p,I,a)=>{"use strict";var c=a(64620).charAt,v=a(45402),m=a(47771),h="String Iterator",b=v.set,C=v.getterFor(h);m(String,"String",function(S){b(this,{type:h,string:String(S),index:0})},function(){var L=C(this),N=L.string,j=L.index,U;return j>=N.length?{value:void 0,done:!0}:(U=c(N,j),L.index+=U.length,{value:U,done:!1})})},8555:(p,I,a)=>{var c=a(66349);c("asyncIterator")},52615:()=>{},21732:(p,I,a)=>{var c=a(66349);c("hasInstance")},35903:(p,I,a)=>{var c=a(66349);c("isConcatSpreadable")},1825:(p,I,a)=>{var c=a(66349);c("iterator")},35824:(p,I,a)=>{"use strict";var c=a(76887),v=a(21899),m=a(626),h=a(82529),b=a(55746),C=a(72497),S=a(32302),L=a(95981),N=a(47457),j=a(1052),U=a(10941),Q=a(96059),K=a(89678),M=a(74529),Y=a(46935),R=a(31887),E=a(29290),V=a(14771),G=a(10946),Z=a(684),X=a(87857),z=a(49677),ue=a(65988),q=a(36760),ne=a(32029),ge=a(99754),me=a(68726),pe=a(44262),se=a(27748),ie=a(99418),Oe=a(99813),Pe=a(11477),Te=a(66349),Ce=a(90904),Xe=a(45402),He=a(3610).forEach,Je=pe("hidden"),ut="Symbol",ft="prototype",yt=Oe("toPrimitive"),Qe=Xe.set,nt=Xe.getterFor(ut),ct=Object[ft],dt=v.Symbol,st=m("JSON","stringify"),Ot=z.f,Et=ue.f,St=Z.f,Ut=q.f,Dt=me("symbols"),Nt=me("op-symbols"),mt=me("string-to-symbol-registry"),It=me("symbol-to-string-registry"),ht=me("wks"),zt=v.QObject,Kt=!zt||!zt[ft]||!zt[ft].findChild,sr=b&&L(function(){return E(Et({},"a",{get:function(){return Et(this,"a",{value:7}).a}})).a!=7})?function(_,fe,te){var ce=Ot(ct,fe);ce&&delete ct[fe],Et(_,fe,te),ce&&_!==ct&&Et(ct,fe,ce)}:Et,Mt=function(_,fe){var te=Dt[_]=E(dt[ft]);return Qe(te,{type:ut,tag:_,description:fe}),b||(te.description=fe),te},Wt=S?function(_){return typeof _=="symbol"}:function(_){return Object(_)instanceof dt},Bt=function(fe,te,ce){fe===ct&&Bt(Nt,te,ce),Q(fe);var be=Y(te,!0);return Q(ce),N(Dt,be)?(ce.enumerable?(N(fe,Je)&&fe[Je][be]&&(fe[Je][be]=!1),ce=E(ce,{enumerable:R(0,!1)})):(N(fe,Je)||Et(fe,Je,R(1,{})),fe[Je][be]=!0),sr(fe,be,ce)):Et(fe,be,ce)},k=function(fe,te){Q(fe);var ce=M(te),be=V(ce).concat(oe(ce));return He(be,function(Le){(!b||$.call(ce,Le))&&Bt(fe,Le,ce[Le])}),fe},Be=function(fe,te){return te===void 0?E(fe):k(E(fe),te)},$=function(fe){var te=Y(fe,!0),ce=Ut.call(this,te);return this===ct&&N(Dt,te)&&!N(Nt,te)?!1:ce||!N(this,te)||!N(Dt,te)||N(this,Je)&&this[Je][te]?ce:!0},O=function(fe,te){var ce=M(fe),be=Y(te,!0);if(!(ce===ct&&N(Dt,be)&&!N(Nt,be))){var Le=Ot(ce,be);return Le&&N(Dt,be)&&!(N(ce,Je)&&ce[Je][be])&&(Le.enumerable=!0),Le}},T=function(fe){var te=St(M(fe)),ce=[];return He(te,function(be){!N(Dt,be)&&!N(se,be)&&ce.push(be)}),ce},oe=function(fe){var te=fe===ct,ce=St(te?Nt:M(fe)),be=[];return He(ce,function(Le){N(Dt,Le)&&(!te||N(ct,Le))&&be.push(Dt[Le])}),be};if(C||(dt=function(){if(this instanceof dt)throw TypeError("Symbol is not a constructor");var fe=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),te=ie(fe),ce=function(be){this===ct&&ce.call(Nt,be),N(this,Je)&&N(this[Je],te)&&(this[Je][te]=!1),sr(this,te,R(1,be))};return b&&Kt&&sr(ct,te,{configurable:!0,set:ce}),Mt(te,fe)},ge(dt[ft],"toString",function(){return nt(this).tag}),ge(dt,"withoutSetter",function(_){return Mt(ie(_),_)}),q.f=$,ue.f=Bt,z.f=O,G.f=Z.f=T,X.f=oe,Pe.f=function(_){return Mt(Oe(_),_)},b&&(Et(dt[ft],"description",{configurable:!0,get:function(){return nt(this).description}}),h||ge(ct,"propertyIsEnumerable",$,{unsafe:!0}))),c({global:!0,wrap:!0,forced:!C,sham:!C},{Symbol:dt}),He(V(ht),function(_){Te(_)}),c({target:ut,stat:!0,forced:!C},{for:function(_){var fe=String(_);if(N(mt,fe))return mt[fe];var te=dt(fe);return mt[fe]=te,It[te]=fe,te},keyFor:function(fe){if(!Wt(fe))throw TypeError(fe+" is not a symbol");if(N(It,fe))return It[fe]},useSetter:function(){Kt=!0},useSimple:function(){Kt=!1}}),c({target:"Object",stat:!0,forced:!C,sham:!b},{create:Be,defineProperty:Bt,defineProperties:k,getOwnPropertyDescriptor:O}),c({target:"Object",stat:!0,forced:!C},{getOwnPropertyNames:T,getOwnPropertySymbols:oe}),c({target:"Object",stat:!0,forced:L(function(){X.f(1)})},{getOwnPropertySymbols:function(fe){return X.f(K(fe))}}),st){var D=!C||L(function(){var _=dt();return st([_])!="[null]"||st({a:_})!="{}"||st(Object(_))!="{}"});c({target:"JSON",stat:!0,forced:D},{stringify:function(fe,te,ce){for(var be=[fe],Le=1,Re;arguments.length>Le;)be.push(arguments[Le++]);if(Re=te,!(!U(te)&&fe===void 0||Wt(fe)))return j(te)||(te=function(We,ot){if(typeof Re=="function"&&(ot=Re.call(this,We,ot)),!Wt(ot))return ot}),be[1]=te,st.apply(null,be)}})}dt[ft][yt]||ne(dt[ft],yt,dt[ft].valueOf),Ce(dt,ut),se[Je]=!0},45915:(p,I,a)=>{var c=a(66349);c("matchAll")},28394:(p,I,a)=>{var c=a(66349);c("match")},61766:(p,I,a)=>{var c=a(66349);c("replace")},62737:(p,I,a)=>{var c=a(66349);c("search")},89911:(p,I,a)=>{var c=a(66349);c("species")},74315:(p,I,a)=>{var c=a(66349);c("split")},63131:(p,I,a)=>{var c=a(66349);c("toPrimitive")},64714:(p,I,a)=>{var c=a(66349);c("toStringTag")},70659:(p,I,a)=>{var c=a(66349);c("unscopables")},54334:(p,I,a)=>{"use strict";var c=a(21899),v=a(87524),m=a(21647),h=a(24683),b=a(8850),C=a(10941),S=a(45402).enforce,L=a(38019),N=!c.ActiveXObject&&"ActiveXObject"in c,j=Object.isExtensible,U,Q=function(G){return function(){return G(this,arguments.length?arguments[0]:void 0)}},K=p.exports=h("WeakMap",Q,b);if(L&&N){U=b.getConstructor(Q,"WeakMap",!0),m.REQUIRED=!0;var M=K.prototype,Y=M.delete,R=M.has,E=M.get,V=M.set;v(M,{delete:function(G){if(C(G)&&!j(G)){var Z=S(this);return Z.frozen||(Z.frozen=new U),Y.call(this,G)||Z.frozen.delete(G)}return Y.call(this,G)},has:function(Z){if(C(Z)&&!j(Z)){var X=S(this);return X.frozen||(X.frozen=new U),R.call(this,Z)||X.frozen.has(Z)}return R.call(this,Z)},get:function(Z){if(C(Z)&&!j(Z)){var X=S(this);return X.frozen||(X.frozen=new U),R.call(this,Z)?E.call(this,Z):X.frozen.get(Z)}return E.call(this,Z)},set:function(Z,X){if(C(Z)&&!j(Z)){var z=S(this);z.frozen||(z.frozen=new U),R.call(this,Z)?V.call(this,Z,X):z.frozen.set(Z,X)}else V.call(this,Z,X);return this}})}},89731:(p,I,a)=>{a(47627)},55708:(p,I,a)=>{a(4560)},88731:(p,I,a)=>{a(91302)},30014:(p,I,a)=>{"use strict";var c=a(76887),v=a(69520),m=a(40002);c({target:"Promise",stat:!0},{try:function(h){var b=v.f(this),C=m(h);return(C.error?b.reject:b.resolve)(C.value),b.promise}})},28783:(p,I,a)=>{var c=a(66349);c("asyncDispose")},43975:(p,I,a)=>{var c=a(66349);c("dispose")},65799:(p,I,a)=>{var c=a(66349);c("matcher")},45414:(p,I,a)=>{var c=a(66349);c("metadata")},46774:(p,I,a)=>{var c=a(66349);c("observable")},80620:(p,I,a)=>{var c=a(66349);c("patternMatch")},36172:(p,I,a)=>{var c=a(66349);c("replaceAll")},7634:(p,I,a)=>{a(66274);var c=a(63281),v=a(21899),m=a(9697),h=a(32029),b=a(12077),C=a(99813),S=C("toStringTag");for(var L in c){var N=v[L],j=N&&N.prototype;j&&m(j)!==S&&h(j,S,L),b[L]=b.Array}},27698:(p,I,a)=>{var c=a(54493);p.exports=c},62908:(p,I,a)=>{var c=a(12710);p.exports=c},49216:(p,I,a)=>{var c=a(99324);p.exports=c},8065:(p,I,a)=>{var c=a(56043);p.exports=c},57448:(p,I,a)=>{a(7634);var c=a(62908),v=a(9697),m=Array.prototype,h={DOMTokenList:!0,NodeList:!0};p.exports=function(b){var C=b.entries;return b===m||b instanceof Array&&C===m.entries||h.hasOwnProperty(v(b))?c:C}},11955:(p,I,a)=>{var c=a(2480);p.exports=c},61577:(p,I,a)=>{var c=a(32236);p.exports=c},46279:(p,I,a)=>{a(7634);var c=a(49216),v=a(9697),m=Array.prototype,h={DOMTokenList:!0,NodeList:!0};p.exports=function(b){var C=b.forEach;return b===m||b instanceof Array&&C===m.forEach||h.hasOwnProperty(v(b))?c:C}},33778:(p,I,a)=>{var c=a(58557);p.exports=c},61798:(p,I,a)=>{var c=a(88287);p.exports=c},82073:(p,I,a)=>{var c=a(69601);p.exports=c},2348:(p,I,a)=>{var c=a(18339);p.exports=c},8933:(p,I,a)=>{var c=a(84426);p.exports=c},63383:(p,I,a)=>{var c=a(45999);p.exports=c},86209:(p,I,a)=>{var c=a(73081);p.exports=c},23059:(p,I,a)=>{var c=a(48494);p.exports=c},27460:(p,I,a)=>{var c=a(52956);p.exports=c},72010:(p,I,a)=>{var c=a(32304);p.exports=c},31905:function(){(function(p){var I=function(a){var c={searchParams:"URLSearchParams"in p,iterable:"Symbol"in p&&"iterator"in Symbol,blob:"FileReader"in p&&"Blob"in p&&function(){try{return new Blob,!0}catch(q){return!1}}(),formData:"FormData"in p,arrayBuffer:"ArrayBuffer"in p};function v(q){return q&&DataView.prototype.isPrototypeOf(q)}if(c.arrayBuffer)var m=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],h=ArrayBuffer.isView||function(q){return q&&m.indexOf(Object.prototype.toString.call(q))>-1};function b(q){if(typeof q!="string"&&(q=String(q)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(q))throw new TypeError("Invalid character in header field name");return q.toLowerCase()}function C(q){return typeof q!="string"&&(q=String(q)),q}function S(q){var ne={next:function(){var ge=q.shift();return{done:ge===void 0,value:ge}}};return c.iterable&&(ne[Symbol.iterator]=function(){return ne}),ne}function L(q){this.map={},q instanceof L?q.forEach(function(ne,ge){this.append(ge,ne)},this):Array.isArray(q)?q.forEach(function(ne){this.append(ne[0],ne[1])},this):q&&Object.getOwnPropertyNames(q).forEach(function(ne){this.append(ne,q[ne])},this)}L.prototype.append=function(q,ne){q=b(q),ne=C(ne);var ge=this.map[q];this.map[q]=ge?ge+", "+ne:ne},L.prototype.delete=function(q){delete this.map[b(q)]},L.prototype.get=function(q){return q=b(q),this.has(q)?this.map[q]:null},L.prototype.has=function(q){return this.map.hasOwnProperty(b(q))},L.prototype.set=function(q,ne){this.map[b(q)]=C(ne)},L.prototype.forEach=function(q,ne){for(var ge in this.map)this.map.hasOwnProperty(ge)&&q.call(ne,this.map[ge],ge,this)},L.prototype.keys=function(){var q=[];return this.forEach(function(ne,ge){q.push(ge)}),S(q)},L.prototype.values=function(){var q=[];return this.forEach(function(ne){q.push(ne)}),S(q)},L.prototype.entries=function(){var q=[];return this.forEach(function(ne,ge){q.push([ge,ne])}),S(q)},c.iterable&&(L.prototype[Symbol.iterator]=L.prototype.entries);function N(q){if(q.bodyUsed)return Promise.reject(new TypeError("Already read"));q.bodyUsed=!0}function j(q){return new Promise(function(ne,ge){q.onload=function(){ne(q.result)},q.onerror=function(){ge(q.error)}})}function U(q){var ne=new FileReader,ge=j(ne);return ne.readAsArrayBuffer(q),ge}function Q(q){var ne=new FileReader,ge=j(ne);return ne.readAsText(q),ge}function K(q){for(var ne=new Uint8Array(q),ge=new Array(ne.length),me=0;me<ne.length;me++)ge[me]=String.fromCharCode(ne[me]);return ge.join("")}function M(q){if(q.slice)return q.slice(0);var ne=new Uint8Array(q.byteLength);return ne.set(new Uint8Array(q)),ne.buffer}function Y(){return this.bodyUsed=!1,this._initBody=function(q){this._bodyInit=q,q?typeof q=="string"?this._bodyText=q:c.blob&&Blob.prototype.isPrototypeOf(q)?this._bodyBlob=q:c.formData&&FormData.prototype.isPrototypeOf(q)?this._bodyFormData=q:c.searchParams&&URLSearchParams.prototype.isPrototypeOf(q)?this._bodyText=q.toString():c.arrayBuffer&&c.blob&&v(q)?(this._bodyArrayBuffer=M(q.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(q)||h(q))?this._bodyArrayBuffer=M(q):this._bodyText=q=Object.prototype.toString.call(q):this._bodyText="",this.headers.get("content-type")||(typeof q=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):c.searchParams&&URLSearchParams.prototype.isPrototypeOf(q)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c.blob&&(this.blob=function(){var q=N(this);if(q)return q;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?N(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(U)}),this.text=function(){var q=N(this);if(q)return q;if(this._bodyBlob)return Q(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)},c.formData&&(this.formData=function(){return this.text().then(G)}),this.json=function(){return this.text().then(JSON.parse)},this}var R=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function E(q){var ne=q.toUpperCase();return R.indexOf(ne)>-1?ne:q}function V(q,ne){ne=ne||{};var ge=ne.body;if(q instanceof V){if(q.bodyUsed)throw new TypeError("Already read");this.url=q.url,this.credentials=q.credentials,ne.headers||(this.headers=new L(q.headers)),this.method=q.method,this.mode=q.mode,this.signal=q.signal,!ge&&q._bodyInit!=null&&(ge=q._bodyInit,q.bodyUsed=!0)}else this.url=String(q);if(this.credentials=ne.credentials||this.credentials||"same-origin",(ne.headers||!this.headers)&&(this.headers=new L(ne.headers)),this.method=E(ne.method||this.method||"GET"),this.mode=ne.mode||this.mode||null,this.signal=ne.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)}V.prototype.clone=function(){return new V(this,{body:this._bodyInit})};function G(q){var ne=new FormData;return q.trim().split("&").forEach(function(ge){if(ge){var me=ge.split("="),pe=me.shift().replace(/\+/g," "),se=me.join("=").replace(/\+/g," ");ne.append(decodeURIComponent(pe),decodeURIComponent(se))}}),ne}function Z(q){var ne=new L,ge=q.replace(/\r?\n[\t ]+/g," ");return ge.split(/\r?\n/).forEach(function(me){var pe=me.split(":"),se=pe.shift().trim();if(se){var ie=pe.join(":").trim();ne.append(se,ie)}}),ne}Y.call(V.prototype);function X(q,ne){ne||(ne={}),this.type="default",this.status=ne.status===void 0?200:ne.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in ne?ne.statusText:"OK",this.headers=new L(ne.headers),this.url=ne.url||"",this._initBody(q)}Y.call(X.prototype),X.prototype.clone=function(){return new X(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new L(this.headers),url:this.url})},X.error=function(){var q=new X(null,{status:0,statusText:""});return q.type="error",q};var z=[301,302,303,307,308];X.redirect=function(q,ne){if(z.indexOf(ne)===-1)throw new RangeError("Invalid status code");return new X(null,{status:ne,headers:{location:q}})},a.DOMException=p.DOMException;try{new a.DOMException}catch(q){a.DOMException=function(ne,ge){this.message=ne,this.name=ge;var me=Error(ne);this.stack=me.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function ue(q,ne){return new Promise(function(ge,me){var pe=new V(q,ne);if(pe.signal&&pe.signal.aborted)return me(new a.DOMException("Aborted","AbortError"));var se=new XMLHttpRequest;function ie(){se.abort()}se.onload=function(){var Oe={status:se.status,statusText:se.statusText,headers:Z(se.getAllResponseHeaders()||"")};Oe.url="responseURL"in se?se.responseURL:Oe.headers.get("X-Request-URL");var Pe="response"in se?se.response:se.responseText;ge(new X(Pe,Oe))},se.onerror=function(){me(new TypeError("Network request failed"))},se.ontimeout=function(){me(new TypeError("Network request failed"))},se.onabort=function(){me(new a.DOMException("Aborted","AbortError"))},se.open(pe.method,pe.url,!0),pe.credentials==="include"?se.withCredentials=!0:pe.credentials==="omit"&&(se.withCredentials=!1),"responseType"in se&&c.blob&&(se.responseType="blob"),pe.headers.forEach(function(Oe,Pe){se.setRequestHeader(Pe,Oe)}),pe.signal&&(pe.signal.addEventListener("abort",ie),se.onreadystatechange=function(){se.readyState===4&&pe.signal.removeEventListener("abort",ie)}),se.send(typeof pe._bodyInit=="undefined"?null:pe._bodyInit)})}return ue.polyfill=!0,p.fetch||(p.fetch=ue,p.Headers=L,p.Request=V,p.Response=X),a.Headers=L,a.Request=V,a.Response=X,a.fetch=ue,Object.defineProperty(a,"__esModule",{value:!0}),a}({})})(typeof self!="undefined"?self:this)},54098:function(p,I){var a=typeof self!="undefined"?self:this,c=function(){function m(){this.fetch=!1,this.DOMException=a.DOMException}return m.prototype=a,new m}();(function(m){var h=function(b){var C={searchParams:"URLSearchParams"in m,iterable:"Symbol"in m&&"iterator"in Symbol,blob:"FileReader"in m&&"Blob"in m&&function(){try{return new Blob,!0}catch(se){return!1}}(),formData:"FormData"in m,arrayBuffer:"ArrayBuffer"in m};function S(se){return se&&DataView.prototype.isPrototypeOf(se)}if(C.arrayBuffer)var L=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],N=ArrayBuffer.isView||function(se){return se&&L.indexOf(Object.prototype.toString.call(se))>-1};function j(se){if(typeof se!="string"&&(se=String(se)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(se))throw new TypeError("Invalid character in header field name");return se.toLowerCase()}function U(se){return typeof se!="string"&&(se=String(se)),se}function Q(se){var ie={next:function(){var Oe=se.shift();return{done:Oe===void 0,value:Oe}}};return C.iterable&&(ie[Symbol.iterator]=function(){return ie}),ie}function K(se){this.map={},se instanceof K?se.forEach(function(ie,Oe){this.append(Oe,ie)},this):Array.isArray(se)?se.forEach(function(ie){this.append(ie[0],ie[1])},this):se&&Object.getOwnPropertyNames(se).forEach(function(ie){this.append(ie,se[ie])},this)}K.prototype.append=function(se,ie){se=j(se),ie=U(ie);var Oe=this.map[se];this.map[se]=Oe?Oe+", "+ie:ie},K.prototype.delete=function(se){delete this.map[j(se)]},K.prototype.get=function(se){return se=j(se),this.has(se)?this.map[se]:null},K.prototype.has=function(se){return this.map.hasOwnProperty(j(se))},K.prototype.set=function(se,ie){this.map[j(se)]=U(ie)},K.prototype.forEach=function(se,ie){for(var Oe in this.map)this.map.hasOwnProperty(Oe)&&se.call(ie,this.map[Oe],Oe,this)},K.prototype.keys=function(){var se=[];return this.forEach(function(ie,Oe){se.push(Oe)}),Q(se)},K.prototype.values=function(){var se=[];return this.forEach(function(ie){se.push(ie)}),Q(se)},K.prototype.entries=function(){var se=[];return this.forEach(function(ie,Oe){se.push([Oe,ie])}),Q(se)},C.iterable&&(K.prototype[Symbol.iterator]=K.prototype.entries);function M(se){if(se.bodyUsed)return Promise.reject(new TypeError("Already read"));se.bodyUsed=!0}function Y(se){return new Promise(function(ie,Oe){se.onload=function(){ie(se.result)},se.onerror=function(){Oe(se.error)}})}function R(se){var ie=new FileReader,Oe=Y(ie);return ie.readAsArrayBuffer(se),Oe}function E(se){var ie=new FileReader,Oe=Y(ie);return ie.readAsText(se),Oe}function V(se){for(var ie=new Uint8Array(se),Oe=new Array(ie.length),Pe=0;Pe<ie.length;Pe++)Oe[Pe]=String.fromCharCode(ie[Pe]);return Oe.join("")}function G(se){if(se.slice)return se.slice(0);var ie=new Uint8Array(se.byteLength);return ie.set(new Uint8Array(se)),ie.buffer}function Z(){return this.bodyUsed=!1,this._initBody=function(se){this._bodyInit=se,se?typeof se=="string"?this._bodyText=se:C.blob&&Blob.prototype.isPrototypeOf(se)?this._bodyBlob=se:C.formData&&FormData.prototype.isPrototypeOf(se)?this._bodyFormData=se:C.searchParams&&URLSearchParams.prototype.isPrototypeOf(se)?this._bodyText=se.toString():C.arrayBuffer&&C.blob&&S(se)?(this._bodyArrayBuffer=G(se.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):C.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(se)||N(se))?this._bodyArrayBuffer=G(se):this._bodyText=se=Object.prototype.toString.call(se):this._bodyText="",this.headers.get("content-type")||(typeof se=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):C.searchParams&&URLSearchParams.prototype.isPrototypeOf(se)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},C.blob&&(this.blob=function(){var se=M(this);if(se)return se;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?M(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(R)}),this.text=function(){var se=M(this);if(se)return se;if(this._bodyBlob)return E(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(V(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},C.formData&&(this.formData=function(){return this.text().then(q)}),this.json=function(){return this.text().then(JSON.parse)},this}var X=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function z(se){var ie=se.toUpperCase();return X.indexOf(ie)>-1?ie:se}function ue(se,ie){ie=ie||{};var Oe=ie.body;if(se instanceof ue){if(se.bodyUsed)throw new TypeError("Already read");this.url=se.url,this.credentials=se.credentials,ie.headers||(this.headers=new K(se.headers)),this.method=se.method,this.mode=se.mode,this.signal=se.signal,!Oe&&se._bodyInit!=null&&(Oe=se._bodyInit,se.bodyUsed=!0)}else this.url=String(se);if(this.credentials=ie.credentials||this.credentials||"same-origin",(ie.headers||!this.headers)&&(this.headers=new K(ie.headers)),this.method=z(ie.method||this.method||"GET"),this.mode=ie.mode||this.mode||null,this.signal=ie.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Oe)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(Oe)}ue.prototype.clone=function(){return new ue(this,{body:this._bodyInit})};function q(se){var ie=new FormData;return se.trim().split("&").forEach(function(Oe){if(Oe){var Pe=Oe.split("="),Te=Pe.shift().replace(/\+/g," "),Ce=Pe.join("=").replace(/\+/g," ");ie.append(decodeURIComponent(Te),decodeURIComponent(Ce))}}),ie}function ne(se){var ie=new K,Oe=se.replace(/\r?\n[\t ]+/g," ");return Oe.split(/\r?\n/).forEach(function(Pe){var Te=Pe.split(":"),Ce=Te.shift().trim();if(Ce){var Xe=Te.join(":").trim();ie.append(Ce,Xe)}}),ie}Z.call(ue.prototype);function ge(se,ie){ie||(ie={}),this.type="default",this.status=ie.status===void 0?200:ie.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in ie?ie.statusText:"OK",this.headers=new K(ie.headers),this.url=ie.url||"",this._initBody(se)}Z.call(ge.prototype),ge.prototype.clone=function(){return new ge(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new K(this.headers),url:this.url})},ge.error=function(){var se=new ge(null,{status:0,statusText:""});return se.type="error",se};var me=[301,302,303,307,308];ge.redirect=function(se,ie){if(me.indexOf(ie)===-1)throw new RangeError("Invalid status code");return new ge(null,{status:ie,headers:{location:se}})},b.DOMException=m.DOMException;try{new b.DOMException}catch(se){b.DOMException=function(ie,Oe){this.message=ie,this.name=Oe;var Pe=Error(ie);this.stack=Pe.stack},b.DOMException.prototype=Object.create(Error.prototype),b.DOMException.prototype.constructor=b.DOMException}function pe(se,ie){return new Promise(function(Oe,Pe){var Te=new ue(se,ie);if(Te.signal&&Te.signal.aborted)return Pe(new b.DOMException("Aborted","AbortError"));var Ce=new XMLHttpRequest;function Xe(){Ce.abort()}Ce.onload=function(){var He={status:Ce.status,statusText:Ce.statusText,headers:ne(Ce.getAllResponseHeaders()||"")};He.url="responseURL"in Ce?Ce.responseURL:He.headers.get("X-Request-URL");var Je="response"in Ce?Ce.response:Ce.responseText;Oe(new ge(Je,He))},Ce.onerror=function(){Pe(new TypeError("Network request failed"))},Ce.ontimeout=function(){Pe(new TypeError("Network request failed"))},Ce.onabort=function(){Pe(new b.DOMException("Aborted","AbortError"))},Ce.open(Te.method,Te.url,!0),Te.credentials==="include"?Ce.withCredentials=!0:Te.credentials==="omit"&&(Ce.withCredentials=!1),"responseType"in Ce&&C.blob&&(Ce.responseType="blob"),Te.headers.forEach(function(He,Je){Ce.setRequestHeader(Je,He)}),Te.signal&&(Te.signal.addEventListener("abort",Xe),Ce.onreadystatechange=function(){Ce.readyState===4&&Te.signal.removeEventListener("abort",Xe)}),Ce.send(typeof Te._bodyInit=="undefined"?null:Te._bodyInit)})}return pe.polyfill=!0,m.fetch||(m.fetch=pe,m.Headers=K,m.Request=ue,m.Response=ge),b.Headers=K,b.Request=ue,b.Response=ge,b.fetch=pe,Object.defineProperty(b,"__esModule",{value:!0}),b}({})})(c),c.fetch.ponyfill=!0,delete c.fetch.polyfill;var v=c;I=v.fetch,I.default=v.fetch,I.fetch=v.fetch,I.Headers=v.Headers,I.Request=v.Request,I.Response=v.Response,p.exports=I},17438:(p,I,a)=>{"use strict";a.r(I),a.d(I,{default:()=>C});var c=a(8081),v=a.n(c),m=a(23645),h=a.n(m),b=h()(v());b.push([p.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}.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 C=b},58635:(p,I,a)=>{"use strict";a.r(I),a.d(I,{default:()=>V});var c=a(8081),v=a.n(c),m=a(23645),h=a.n(m),b=a(61667),C=a.n(b),S=new URL(a(17735),a.b),L=new URL(a(56089),a.b),N=new URL(a(46050),a.b),j=new URL(a(71090),a.b),U=new URL(a(96192),a.b),Q=h()(v()),K=C()(S),M=C()(L),Y=C()(N),R=C()(j),E=C()(U);Q.push([p.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("+K+")}.CodeMirror-lint-mark-error{background-image:url("+M+")}.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("+Y+")}.CodeMirror-lint-marker-error,.CodeMirror-lint-message-error{background-image:url("+R+")}.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 V=Q},45272:(p,I,a)=>{"use strict";a.r(I),a.d(I,{default:()=>C});var c=a(8081),v=a.n(c),m=a(23645),h=a.n(m),b=h()(v());b.push([p.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}.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 C=b},40961:(p,I,a)=>{"use strict";a.r(I),a.d(I,{default:()=>C});var c=a(8081),v=a.n(c),m=a(23645),h=a.n(m),b=h()(v());b.push([p.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}
@@ -67,24 +67,24 @@ b`.split(/\n/).length!=3?function(e){for(var n=0,u=[],l=e.length;n<=l;){var f=e.
67
67
  * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
68
68
  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
69
69
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
70
- */function v(S){return S instanceof c||S instanceof Date||S instanceof RegExp}function m(S){if(S instanceof c){var L=c.alloc?c.alloc(S.length):new c(S.length);return S.copy(L),L}else{if(S instanceof Date)return new Date(S.getTime());if(S instanceof RegExp)return new RegExp(S);throw new Error("Unexpected situation")}}function h(S){var L=[];return S.forEach(function(N,j){typeof N=="object"&&N!==null?Array.isArray(N)?L[j]=h(N):v(N)?L[j]=m(N):L[j]=C({},N):L[j]=N}),L}function b(S,L){return L==="__proto__"?void 0:S[L]}var C=p.exports=function(){if(arguments.length<1||typeof arguments[0]!="object")return!1;if(arguments.length<2)return arguments[0];var S=arguments[0],L=Array.prototype.slice.call(arguments,1),N,j,U;return L.forEach(function(Q){typeof Q!="object"||Q===null||Array.isArray(Q)||Object.keys(Q).forEach(function(K){if(j=b(S,K),N=b(Q,K),N!==S)if(typeof N!="object"||N===null){S[K]=N;return}else if(Array.isArray(N)){S[K]=h(N);return}else if(v(N)){S[K]=m(N);return}else if(typeof j!="object"||j===null||Array.isArray(j)){S[K]=C({},N);return}else{S[K]=C(j,N);return}})}),S}},98971:(p,I,a)=>{"use strict";a.r(I),a.d(I,{Console:()=>Md});var c={};a.r(c),a.d(c,{JsonPatchError:()=>Lr,_areEquals:()=>ao,applyOperation:()=>gr,applyPatch:()=>Qn,applyReducer:()=>Ac,deepClone:()=>Sc,getValueByPointer:()=>Br,validate:()=>Uu,validator:()=>aa});var v={};a.r(v),a.d(v,{compare:()=>Hu,generate:()=>Zo,observe:()=>Wu,unobserve:()=>gl});var m={};a.r(m),a.d(m,{cookie:()=>Ml,header:()=>xf,path:()=>mf,query:()=>Xc});var h=a(67294);function b(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function C(t,r){for(var i=0;i<r.length;i++){var o=r[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function S(t,r,i){return r&&C(t.prototype,r),i&&C(t,i),t}function L(t,r,i){return r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function N(){return N=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},N.apply(this,arguments)}function j(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),i.push.apply(i,o)}return i}function U(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?j(Object(i),!0).forEach(function(o){L(t,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):j(Object(i)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(i,o))})}return t}function Q(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&M(t,r)}function K(t){return K=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},K(t)}function M(t,r){return M=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},M(t,r)}function Y(){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(t){return!1}}function R(t,r){if(t==null)return{};var i={},o=Object.keys(t),s,d;for(d=0;d<o.length;d++)s=o[d],!(r.indexOf(s)>=0)&&(i[s]=t[s]);return i}function E(t,r){if(t==null)return{};var i=R(t,r),o,s;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);for(s=0;s<d.length;s++)o=d[s],!(r.indexOf(o)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,o)||(i[o]=t[o]))}return i}function V(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function G(t,r){return r&&(typeof r=="object"||typeof r=="function")?r:V(t)}function Z(t){var r=Y();return function(){var o=K(t),s;if(r){var d=K(this).constructor;s=Reflect.construct(o,arguments,d)}else s=o.apply(this,arguments);return G(this,s)}}function X(t,r){return q(t)||ge(t,r)||me(t,r)||ie()}function z(t){return ue(t)||ne(t)||me(t)||le()}function ue(t){if(Array.isArray(t))return he(t)}function q(t){if(Array.isArray(t))return t}function ne(t){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(t))return Array.from(t)}function ge(t,r){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(t)))){var i=[],o=!0,s=!1,d=void 0;try{for(var g=t[Symbol.iterator](),A;!(o=(A=g.next()).done)&&(i.push(A.value),!(r&&i.length===r));o=!0);}catch(x){s=!0,d=x}finally{try{!o&&g.return!=null&&g.return()}finally{if(s)throw d}}return i}}function me(t,r){if(!!t){if(typeof t=="string")return he(t,r);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set")return Array.from(t);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return he(t,r)}}function he(t,r){(r==null||r>t.length)&&(r=t.length);for(var i=0,o=new Array(r);i<r;i++)o[i]=t[i];return o}function le(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
70
+ */function v(S){return S instanceof c||S instanceof Date||S instanceof RegExp}function m(S){if(S instanceof c){var L=c.alloc?c.alloc(S.length):new c(S.length);return S.copy(L),L}else{if(S instanceof Date)return new Date(S.getTime());if(S instanceof RegExp)return new RegExp(S);throw new Error("Unexpected situation")}}function h(S){var L=[];return S.forEach(function(N,j){typeof N=="object"&&N!==null?Array.isArray(N)?L[j]=h(N):v(N)?L[j]=m(N):L[j]=C({},N):L[j]=N}),L}function b(S,L){return L==="__proto__"?void 0:S[L]}var C=p.exports=function(){if(arguments.length<1||typeof arguments[0]!="object")return!1;if(arguments.length<2)return arguments[0];var S=arguments[0],L=Array.prototype.slice.call(arguments,1),N,j,U;return L.forEach(function(Q){typeof Q!="object"||Q===null||Array.isArray(Q)||Object.keys(Q).forEach(function(K){if(j=b(S,K),N=b(Q,K),N!==S)if(typeof N!="object"||N===null){S[K]=N;return}else if(Array.isArray(N)){S[K]=h(N);return}else if(v(N)){S[K]=m(N);return}else if(typeof j!="object"||j===null||Array.isArray(j)){S[K]=C({},N);return}else{S[K]=C(j,N);return}})}),S}},98971:(p,I,a)=>{"use strict";a.r(I),a.d(I,{Console:()=>Md});var c={};a.r(c),a.d(c,{JsonPatchError:()=>Lr,_areEquals:()=>ao,applyOperation:()=>yr,applyPatch:()=>Qn,applyReducer:()=>Ac,deepClone:()=>Sc,getValueByPointer:()=>Br,validate:()=>Uu,validator:()=>aa});var v={};a.r(v),a.d(v,{compare:()=>Hu,generate:()=>Zo,observe:()=>Wu,unobserve:()=>gl});var m={};a.r(m),a.d(m,{cookie:()=>Ml,header:()=>xf,path:()=>mf,query:()=>Xc});var h=a(67294);function b(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function C(t,r){for(var i=0;i<r.length;i++){var o=r[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function S(t,r,i){return r&&C(t.prototype,r),i&&C(t,i),t}function L(t,r,i){return r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function N(){return N=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},N.apply(this,arguments)}function j(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),i.push.apply(i,o)}return i}function U(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?j(Object(i),!0).forEach(function(o){L(t,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):j(Object(i)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(i,o))})}return t}function Q(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&M(t,r)}function K(t){return K=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},K(t)}function M(t,r){return M=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},M(t,r)}function Y(){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(t){return!1}}function R(t,r){if(t==null)return{};var i={},o=Object.keys(t),s,d;for(d=0;d<o.length;d++)s=o[d],!(r.indexOf(s)>=0)&&(i[s]=t[s]);return i}function E(t,r){if(t==null)return{};var i=R(t,r),o,s;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);for(s=0;s<d.length;s++)o=d[s],!(r.indexOf(o)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,o)||(i[o]=t[o]))}return i}function V(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function G(t,r){return r&&(typeof r=="object"||typeof r=="function")?r:V(t)}function Z(t){var r=Y();return function(){var o=K(t),s;if(r){var d=K(this).constructor;s=Reflect.construct(o,arguments,d)}else s=o.apply(this,arguments);return G(this,s)}}function X(t,r){return q(t)||ge(t,r)||me(t,r)||ie()}function z(t){return ue(t)||ne(t)||me(t)||se()}function ue(t){if(Array.isArray(t))return pe(t)}function q(t){if(Array.isArray(t))return t}function ne(t){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(t))return Array.from(t)}function ge(t,r){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(t)))){var i=[],o=!0,s=!1,d=void 0;try{for(var y=t[Symbol.iterator](),A;!(o=(A=y.next()).done)&&(i.push(A.value),!(r&&i.length===r));o=!0);}catch(x){s=!0,d=x}finally{try{!o&&y.return!=null&&y.return()}finally{if(s)throw d}}return i}}function me(t,r){if(!!t){if(typeof t=="string")return pe(t,r);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set")return Array.from(t);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return pe(t,r)}}function pe(t,r){(r==null||r>t.length)&&(r=t.length);for(var i=0,o=new Array(r);i<r;i++)o[i]=t[i];return o}function se(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
71
71
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
72
72
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Oe(t,r){var i;if(typeof Symbol=="undefined"||t[Symbol.iterator]==null){if(Array.isArray(t)||(i=me(t))||r&&t&&typeof t.length=="number"){i&&(t=i);var o=0,s=function(){};return{s,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(x){throw x},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
73
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d=!0,g=!1,A;return{s:function(){i=t[Symbol.iterator]()},n:function(){var x=i.next();return d=x.done,x},e:function(x){g=!0,A=x},f:function(){try{!d&&i.return!=null&&i.return()}finally{if(g)throw A}}}}function Pe(t,r){return r={exports:{}},t(r,r.exports),r.exports}var Te=Pe(function(t){function r(F,H){for(var re=0,ee=0;ee<F.length;ee++)re=(re<<5)-re+F.charCodeAt(ee),re|=0;return H[Math.abs(re)%H.length]}function i(F,H){var re=H.namespace;if(H.useColors){var ee=H.color,se="[3"+(ee<8?ee:"8;5;"+ee),de=" ".concat(se,";1m").concat(re," ");F[0]=de+F[0].split(`
73
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d=!0,y=!1,A;return{s:function(){i=t[Symbol.iterator]()},n:function(){var x=i.next();return d=x.done,x},e:function(x){y=!0,A=x},f:function(){try{!d&&i.return!=null&&i.return()}finally{if(y)throw A}}}}function Pe(t,r){return r={exports:{}},t(r,r.exports),r.exports}var Te=Pe(function(t){function r(F,W){for(var re=0,ee=0;ee<F.length;ee++)re=(re<<5)-re+F.charCodeAt(ee),re|=0;return W[Math.abs(re)%W.length]}function i(F,W){var re=W.namespace;if(W.useColors){var ee=W.color,le="[3"+(ee<8?ee:"8;5;"+ee),de=" ".concat(le,";1m").concat(re," ");F[0]=de+F[0].split(`
74
74
  `).join(`
75
- `+de)}else F[0]=re+" "+F[0]}function o(F,H){if(F[0]=(H.useColors?"%c":"")+H.namespace,!!H.useColors){var re="color: "+H.color,ee=0,se=0;F[0].replace(/%[a-zA-Z%]/g,function(de){de!=="%%"&&(ee++,de==="%c"&&(se=ee))}),F.splice(se,0,re)}}var s=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function d(){var F;try{F=localStorage.getItem("debug")}catch(H){}return!F&&typeof process!="undefined"&&"env"in process&&(F={}.DEBUG),{namespaces:F||"",colors:s,useColors:!0,formatArgs:o}}function g(){return{namespaces:{}.DEBUG||"",colors:[6,2,3,4,5,1],useColors:!0,formatArgs:i}}function A(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,H=arguments.length>1?arguments[1]:void 0;return function(){for(var re=arguments.length,ee=new Array(re),se=0;se<re;se++)ee[se]=arguments[se];F&&ee.unshift(F);var de=H.namespaces.split(",").map(function(we){return we[we.length-1]==="*"?new RegExp("^"+we.slice(0,we.length-1)+".*$"):new RegExp("^"+we+"$")}),pe=de.some(function(we){return we.test(F)}),xe={color:r(F,H.colors),namespace:F,useColors:H.useColors};if(!1)var ve}}function x(F){return A(F,g())}function w(F){return A(F,d())}typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?t.exports=w:t.exports=x}),Ce=Te("informed:ObjMap "),Xe=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return String.prototype.replace.call(r,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean)},He=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,s=String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(d,g){return d!=null?d[g]:d},r);return s===void 0||s===r?o:s},Je=function(r){return".".concat(r).replace(/(.*)[.[].*/,"$1").replace(/\./,"")},ut=function(r){return r.replace(Je(r),"").replace(/\./,"")},ft=function(r,i){var o=Je(i),s=ut(i),d=o?He(r,o):r;return!!(d&&Object.hasOwnProperty.call(d,s.replace(/\[(.*)\]/,"$1")))},yt=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0;String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,d,g,A){return g===A.length-1?(s[d]=o,s[d]):s[d]===void 0?(Number.isInteger(+A[g+1])?s[d]=[]:s[d]={},s[d]):(Number.isInteger(+A[g+1])&&!Array.isArray(s[d])&&(s[d]=[]),s[d])},r)},Qe=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=!1;return String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,d,g,A){return s===void 0?s:(g===A.length-1&&(delete s[d],o=!0),s[d])},r),o},nt=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o;return String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,d,g,A){return s===void 0?s:(g===A.length-1&&Array.isArray(s)&&(o=s.splice(d,1)),s[d])},r),o},ct=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=Object.keys(r);return i.map(function(o){return r[o]})},dt=function(r){var i=Xe(r);return Number.isInteger(+i[i.length-1])},st=function(){function t(){b(this,t)}return S(t,null,[{key:"empty",value:function(i){return ct(i).length===0}},{key:"get",value:function(i,o){var s=He(i,o);return s}},{key:"has",value:function(i,o){return ft(i,o)}},{key:"set",value:function(i,o,s){if(s!==void 0)Ce("SETTING",o,s),yt(i,o,s);else if(dt(o)&&t.get(i,o)!==void 0){Ce("Special case SETTING",o,"to undefined"),yt(i,o,void 0);var d=Xe(o);d=d.slice(0,d.length-1),Ot(i,d)}else!dt(o)&&t.get(i,o)!==void 0&&(Ce("Special case REMOVING",o,"from object completley"),t.delete(i,o))}},{key:"delete",value:function(i,o){Ce("DELETE",o),dt(o)?(Ce("ARRAY",o),this.pullOut(i,o)):Qe(i,o);var s=Xe(o);s=s.slice(0,s.length-1),Ot(i,s)}},{key:"pullOut",value:function(i,o){var s=Xe(o),d=s[s.length-1];s=s.slice(0,s.length-1),Ce("Pulling out:",s,"index",d);var g=He(i,s);Ce("Array",g),Array.isArray(g)&&nt(g,d),Ot(i,s)}}]),t}();function Ot(t,r){if(r.length!==0){var i=He(t,r);(Array.isArray(i)?i.every(function(o){return o==null}):JSON.stringify(i)==="{}")&&Qe(t,r),Ot(t,r.slice(0,r.length-1))}}var Et=h.createContext({register:function(){},deregister:function(){},setValue:function(){},setTouched:function(){},setError:function(){},update:function(){},getField:function(){},expectRemoval:function(){},getInitialValue:function(){},getSavedValue:function(){}}),St=h.createContext({}),jt=h.createContext({getFullField:function(){},getValues:function(){},getOptions:function(){return{}},setInitialValue:function(){},getInitialValue:function(){},getDerrivedValue:function(){},getSavedValue:function(){},removeSavedState:function(){}}),Dt=h.createContext(),Nt=h.createContext(),mt=h.createContext(),It=h.createContext(),ht=h.createContext(),zt=h.createContext(),Kt=h.createContext(),sr=h.createContext();function Mt(){var t=(0,h.useContext)(jt);return t}function Wt(t){var r=(0,h.useRef)(),i=(0,h.useRef)(!0),o=(0,h.useState)(t),s=X(o,2),d=s[0],g=s[1];r.current=d;var A=function(F){r.current=F,i.current&&g(F)},x=function(){return r.current};return(0,h.useEffect)(function(){return function(){i.current=!1}},[]),[d,A,x]}var Bt=function(r){return r.type&&r.type.name?r.type.name:r.displayName||r.name||"Component"},k=function(r){var i={};if(r.inner){if(r.inner.length===0){st.set(i,r.path,r.message);return}var o=Oe(r.inner),s;try{for(o.s();!(s=o.n()).done;){var d=s.value;st.get(i,d.path)||st.set(i,d.path,d.message)}}catch(g){o.e(g)}finally{o.f()}}return i},Be=function(r,i){try{r.validateSync(i,{abortEarly:!1})}catch(s){var o=k(s);return o}},$=function(r){if(r.inner){if(r.inner.length===0)return;var i=r.inner[0];return i.message}},O=function(r,i){try{r.validateSync(i,{abortEarly:!1})}catch(o){return $(o)}},T=function(r,i){r(i);var o={};return r.errors&&r.errors.forEach(function(s){var d=s.message,g=s.dataPath,A=s.keyword,x=s.params,w=g;A==="required"&&(w="".concat(w,".").concat(x.missingProperty)),w=w.replace(".",""),st.set(o,w,d)}),o},oe=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){var i=Math.random()*16|0,o=r=="x"?i:i&3|8;return o.toString(16)})},D=function(r,i){var o;return function(){for(var d=arguments.length,g=new Array(d),A=0;A<d;A++)g[A]=arguments[A];var x=function(){clearTimeout(o),r.apply(void 0,g)};clearTimeout(o),o=setTimeout(x,i)}},_=function(r,i,o){var s=i["ui:control"],d=i["informed:props"],g=i["input:props"],A=i["ui:before"],x=i["ui:after"],w=i.oneOf,F=i.items,H=i.enum,re=i.title,ee=i.minimum,se=i.maximum,de=i.minLength,pe=i.maxLength,xe=i.pattern,ve=i.type,we=i.properties,Ne=oe();g&&g.id&&(Ne=g.id);var Fe={componentType:s,field:o?"".concat(o,".").concat(r):r,type:ve,uiBefore:A,uiAfter:x,properties:ve==="object"?we:void 0,items:ve==="array"?F:void 0,props:U(U({label:re,id:Ne,min:ee,max:se,minLength:de,maxLength:pe,pattern:xe},d),g)};if(w){var je=i.oneOf.map(function(De){var Ve=De["input:props"],Ke=Ve===void 0?{}:Ve;return U({value:De.const,label:De.title},Ke)});Fe.props.options=je}if(H){var ke=i.enum.map(function(De){return{value:De,label:De}});Fe.props.options=ke}if(F&&F.oneOf){var Me=F.oneOf.map(function(De){var Ve=De["input:props"],Ke=Ve===void 0?{}:Ve;return U({value:De.const,label:De.title},Ke)});Fe.props.options=Me}return Fe},fe=function(r,i,o){if(!r||i)return[];var s=r.properties,d=s===void 0?{}:s,g=r.allOf,A=r.propertyOrder,x=A===void 0?[]:A;if(Object.keys(d).length>0){var w=Object.keys(d).sort(function(F,H){var re=x.indexOf(F),ee=x.indexOf(H);return(re>-1?re:x.length+1)-(ee>-1?ee:x.length+1)}).map(function(F){var H=d[F],re=_(F,H,o);return re});return g&&w.push({componentType:"conditionals",allOf:g}),w}return[]},te=function(r){var i=r.replace(/\./g,".properties.").replace(/\[/g,".itmes[");return i="properties.".concat(i),i},ce=function(r,i){if(typeof r=="string")return r.split("").map(function(o){return o==="#"?/\d/:o==="*"?/[\w]/:o});if(typeof r=="function")return r(i);if(Array.isArray(r))return r;throw new Error("Formatter must be string, array, or function")},be=function(r,i){for(var o=0,s=-1,d=!0;d&&o<r.length;)r[o]==i[o]?s=o:d=!1,o=o+1;return s},Le=function(r,i){if(!r)return{val:r,offset:0};var o="".concat(r),s=ce(i,o),d=s.findIndex(function(pe){return typeof pe!="string"}),g=s.length-z(s).reverse().findIndex(function(pe){return typeof pe!="string"}),A=[],x=o.split(""),w=0,F=0,H=be(s.slice(0,d),x.slice(0,d));H>-1&&(w=H+1,A=A.concat(s.slice(0,H+1)),F=H+1),H<0&&(A=A.concat(s.slice(0,d)),F=d);for(var re=F;re<s.length;re++){var ee=s[re];if(w!=x.length){var se=x[w];if(typeof ee=="function")A.push(ee(se)),w=w+1;else{var de=typeof ee=="string"?ee===se:ee.test(se);de&&typeof ee=="string"?(A.push(ee),w=w+1):!de&&typeof ee=="string"?w!=x.length&&A.push(ee):de&&typeof ee!="string"?(A.push(se),w=w+1):!de&&typeof ee!="string"&&(w=w+1,re=re-1)}}else if(typeof ee=="string"&&re>=g)A.push(ee);else break}return{value:A.join(""),offset:o?A.length-o.length:0}},Re=function(r,i){var o,s,d=new Intl.NumberFormat(r,i),g=new Intl.NumberFormat(r),A=(o=(s=g.formatToParts(.1).find(function(pe){var xe=pe.type;return xe==="decimal"}))===null||s===void 0?void 0:s.value)!==null&&o!==void 0?o:".";function x(pe,xe){return pe instanceof RegExp&&xe instanceof RegExp&&pe.source===xe.source&&pe.global===xe.global&&pe.ignoreCase===xe.ignoreCase&&pe.multiline===xe.multiline}function w(pe,xe){for(var ve=pe.length;ve--;)if(xe(pe[ve]))return ve;return-1}function F(pe,xe,ve){var we=z(pe);return Array.isArray(ve)?we.splice.apply(we,[xe,0].concat(z(ve))):we.splice(xe,0,ve),we}function H(pe){return"".concat(pe).replace(/\D/g,"")}function re(pe){return"".concat(pe).split(A).map(function(xe){return H(xe)}).join(".")}function ee(pe){if(typeof pe=="number")return pe;var xe=parseFloat(re(pe));return Number.isNaN(xe)?void 0:xe}function se(pe){var xe=re(pe),ve="".concat(xe).split(".")[1],we=d.formatToParts(Number(xe));ve==="0"&&we.push({type:"decimal",value:A},{type:"fraction",value:ve});var Ne=we.reduce(function(ke,Me){var De=Me.type,Ve=Me.value;return["decimal","fraction"].includes(De)&&ve==null?ke:["integer","fraction"].includes(De)?[].concat(z(ke),z(Ve.split("").filter(function(Ke,Ze){return De==="fraction"?Ze<ve.length:!0}).map(function(){return/\d/}))):De==="currency"?[].concat(z(ke),z(Ve.split(""))):[].concat(z(ke),[Ve])},[]),Fe=w(Ne,function(ke){return x(ke,/\d/)});Ne.indexOf(A)===-1&&"".concat(pe).indexOf(A)!==-1&&(Ne=F(Ne,Fe+1,[A,"[]"]),Fe+=2);var je=Ne.slice(Fe+1).join("");return Ne=[].concat(z(Ne.slice(0,Fe+1)),[je]),Ne}var de=function(xe){if(xe!=null)return ee(xe)};return{formatter:se,parser:de}},We=Object.freeze({__proto__:null,getChildDisplayName:Bt,yupToFormErrors:k,validateYupSchema:Be,yupToFormError:$,validateYupField:O,validateAjvSchema:T,uuidv4:oe,debounce:D,computeFieldFromProperty:_,computeFieldsFromSchema:fe,getSchemaPathFromJsonPath:te,informedFormat:Le,createIntlNumberFormatter:Re}),ot=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?h.useLayoutEffect:h.useEffect,vt=function(r){var i=r.value,o=r.inputRef,s=r.maintainCursor,d=s===void 0?!0:s,g=Wt(0),A=X(g,3),x=A[0],w=A[1],F=A[2],H=Wt(0),re=X(H,3),ee=re[0],se=re[1],de=re[2];return ot(function(){if(o.current!=null&&F()){var pe=F()+de();de()!=0&&d?o.current.setSelectionRange(pe+1,pe+1):d&&o.current.setSelectionRange(pe,pe)}},[i]),{setCursorOffset:se,setCursor:w,cursor:x,getCursor:F,cursorOffset:ee}},Ft=function(r,i){var o=(0,h.useRef)(!0),s=o.current;(0,h.useEffect)(function(){if(s)o.current=!1;else return r()},i)},At=Te("informed:useField "),bn=function(r,i,o,s,d){if(r!=null){if(d)return d(r);if(i)return i(r);if(o&&!s){var g=Le(r,o);return g.value}return r}},zr=function(r,i,o,s){if(i&&o)return i(r);if(s){var d=Le(r,s);return d.value}return r},Fr=function(r,i,o){var s=o.required;if(r||i)return function(d,g){if(i)return O(i,d);if(r)return r(d,g)};if(s)return function(d){return Sn(d,s)}},Ei=function(r){var i=r.fieldType,o=r.setValue,s=r.onChange,d=r.multiple,g=r.ref,A=function(w){return o(w)};return(i==="text"||i==="textArea"||i==="number")&&(A=function(w){return o(w.target.value,w)}),i==="select"&&(A=function(){var w=Array.from(g.current).filter(function(F){return F.selected}).map(function(F){return F.value});o(d?w:w[0]||"")}),i==="checkbox"&&(A=function(w){o(w.target.checked),s&&s(w)}),function(x){A(x)}},Qr=function(r){var i=r.setTouched,o=r.onBlur;return function(s){i(!0),o&&o(s)}},$i=function(r){var i=r.fieldType,o=r.maskedValue,s=r.multiple,d=r.value;switch(i){case"text":case"number":return!o&&o!==0?"":o;case"textArea":return o||"";case"select":return d||(s?[]:"");case"checkbox":return!!d;default:return d}},zn=function(r){switch(r){case"text":return r;case"number":return r;case"checkbox":return r;default:return}},Sn=function(r,i){if(i&&(r==null||r===""))return typeof i=="string"?i:"This field is required"};function Rn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,i=t.field,o=t.validate,s=t.asyncValidate,d=t.validationSchema,g=t.mask,A=t.maskWithCursorOffset,x=t.format,w=t.parse,F=t.formatter,H=t.parser,re=t.initialValue,ee=t.validateOnChange,se=t.validateOnBlur,de=t.validateOnMount,pe=t.asyncValidateOnBlur,xe=t.maskOnBlur,ve=t.allowEmptyString,we=t.onValueChange,Ne=t.notify,Fe=t.keepState,je=t.maintainCursor,ke=t.debug,Me=t.shadow,De=t.step,Ve=t.fieldType,Ke=t.multiple,Ze=t.onChange,_e=t.onBlur,bt=t.formController,Rt=t.relevant,or=t.required,Dr=t.keepStateIfRelevant,Ir=t.initialize,rn=t.formatterDependencies,Er=rn===void 0?[]:rn,Hr=E(t,["field","validate","asyncValidate","validationSchema","mask","maskWithCursorOffset","format","parse","formatter","parser","initialValue","validateOnChange","validateOnBlur","validateOnMount","asyncValidateOnBlur","maskOnBlur","allowEmptyString","onValueChange","notify","keepState","maintainCursor","debug","shadow","step","fieldType","multiple","onChange","onBlur","formController","relevant","required","keepStateIfRelevant","initialize","formatterDependencies"]),In=(0,h.useState)(oe()),Yt=X(In,1),Ct=Yt[0],kt=(0,h.useContext)(Et),fr=(0,h.useContext)(sr),hn=fr||Dr,Sr=Mt(),ks=(0,h.useRef)(),ru=(0,h.useRef)(!0),Fo=(0,h.useRef)(),zi=(0,h.useRef)(!1),nu=function(){return!zi.current},Xf=function(){return zi.current};bt&&(kt=bt.updater,Sr=bt.getFormApi());var Ci=Fr(o,d,{required:or}),iu=(0,h.useState)(function(){return kt.getInitialValue(i)}),Pm=X(iu,1),Im=Pm[0],Qf=kt.getSavedValue(i),Zf,Kh;(Fe||hn)&&Qf?(At("Setting field ".concat(Yd,"'s kept state"),Qf),Zf=Qf.value,Kh=Qf.touched,Sr.removeSavedState(Yd)):re!=null?Zf=re:Zf=Im;var Fm=Wt(bn(Zf,g,F,H,Ir)),Ld=X(Fm,3),au=Ld[0],Rd=Ld[1],km=Ld[2],Mm=Wt(de?Ci(au):void 0),Dd=X(Mm,3),Yh=Dd[0],Jh=Dd[1],Lm=Dd[2],Rm=Wt(Kh),Nd=X(Rm,3),Xh=Nd[0],Dm=Nd[1],Qh=Nd[2],Nm=(0,h.useState)(function(){return zr(au,x,w,F)}),Zh=X(Nm,2),Bd=Zh[0],jd=Zh[1],qh=(0,h.useRef)();qh.current=Bd;var _h=(0,h.useRef)(re),ko=(0,h.useRef)(i),ev=(0,h.useRef)();_h.current=re,ko.current=i;var Bm=(0,h.useRef)(null),Gi=h.useMemo(function(){return r||Bm},[]),Ud=vt({value:au,inputRef:Gi,maintainCursor:!!je}),Vd=Ud.getCursor,jm=Ud.setCursor,Wd=Ud.setCursorOffset,Um=function(){return!0},Hd=function(cr){var vn=Rt||Um,Wn=Sr.getFullField(ko.current)||ko.current,Jt={path:Wn,parentPath:Wn.replace(/(.*)[.[].*/,"$1"),get:function(Hn,lu){return st.get(Hn,lu)}};return fr&&fr.relevant?vn(cr,Jt)&&fr.relevant(cr,Jt):vn(cr,Jt)},Vm=Wt(Hd(Sr.getValues())),zd=X(Vm,3),qf=zd[0],Wm=zd[1],tv=zd[2],Hm=function(cr){return fr&&fr.relevant?fr.relevant(cr):!0},zm=function(){var cr=Hd(Sr.getValues()),vn=tv();return cr!=vn&&Wm(cr),cr};(0,h.useEffect)(function(){!qf&&!Fe&&ks.current.reset()},[qf]);var ui=function(){return Me?Sr.getDerrivedValue(i):km()},ou=function(cr){var vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Wn=vn.preventUpdate;De&&Sr.getStep()<De?(At("Setting ".concat(i,"'s error to undefined as we are not at that step")),Jh(void 0),kt.setError(Ct,void 0,!Wn)):(At("Setting ".concat(i,"'s error to ").concat(cr)),Jh(cr),kt.setError(Ct,cr,!Wn))},Gd=function(cr,vn){var Wn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Jt=cr;zi.current=!0,At("Setting ".concat(i," to ").concat(Jt)),Ir&&(Jt=Ir(Jt));var Mo=Sr.getOptions(),Hn=Jt;if(Jt===""&&!ve&&!Wn.allowEmptyString&&!Mo.allowEmptyStrings&&(Jt=void 0),(t.type==="number"||Ve==="number")&&Jt!==void 0&&(Jt=+Jt),vn&&vn.target&&vn.target.selectionStart&&jm(vn.target.selectionStart),g&&!xe&&(Hn=g(Jt,Vd()),Jt=g(Jt,Vd())),A&&!xe){var lu=A(Jt,Vd());Hn=lu.value,Jt=lu.value,Wd(lu.offset)}if(x&&w&&(Jt=w(Jt),Hn=x(Jt)),F){var rv=Le(Jt,F);Wd(rv.offset),Hn=rv.value,Jt=Hn}H&&(Jt=Jt!=null?H(Jt):Jt),Ci&&ee&&!Wn.initial&&(At("Validating after change ".concat(i," ").concat(Jt)),ou(Ci(Jt,Sr.getValues()))),Rd(Jt),jd(Hn),we&&we(Jt),kt.setValue(Ct,Jt,!Wn.preventUpdate)};Ft(function(){ks.current.setValue(qh.current)},z(Er));var $d=function(cr,vn){var Wn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Jt=Wn.preventUpdate;if(At("Field ".concat(i," has been touched")),Ci&&se&&!vn&&cr&&(At("Validating after blur ".concat(i," ").concat(ui())),ou(Ci(ui(),Sr.getValues()))),s&&pe&&!vn&&cr&&(At("Validating async after blur ".concat(i," ").concat(ui())),s(ui(),Sr.getValues())),g&&xe){var Mo=g(ui());Rd(Mo),jd(Mo),we&&we(Mo),kt.setValue(Ct,Mo,!Jt)}if(A&&xe){var Hn=A(ui());Wd(Hn.offset),Rd(Hn.value),jd(Hn.value),we&&we(Hn.value),kt.setValue(Ct,Hn.value,!Jt)}Dm(cr),kt.setTouched(Ct,cr,!Jt)},Gm=function(){var cr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},vn=cr.preventUpdate,Wn=bn(_h.current||kt.getInitialValue(ko.current),g,F,H,Ir);Gd(Wn,null,{initial:!0,preventUpdate:vn}),ou(de?Ci(Wn):void 0,{preventUpdate:vn}),$d(void 0,!0,{preventUpdate:vn}),zi.current=!1},$m=function(cr){Ci&&(At("Field validating ".concat(i," ").concat(ui())),ou(Ci(ui(),cr||Sr.getValues())))},Km=function(cr){s&&(At("Field async validating ".concat(i," ").concat(ui())),s(ui(),cr||Sr.getValues()))},Kd={setValue:Gd,setTouched:$d,setError:ou,reset:Gm,validate:$m,asyncValidate:Km,getValue:ui,getTouched:Qh,getError:Lm,getIsRelevant:tv,getDirty:Xf,getPristine:nu,getFieldState:function(){return{value:ui(),touched:Qh(),dirty:Xf(),pristine:nu()}},relevant:Hd,multistepRelevant:Hm,checkRelevant:zm};ks.current=Kd;var su={value:au,error:Yh,touched:Xh,maskedValue:Bd,isRelevant:qf,dirty:zi.current,pristine:!zi.current};Me&&(su={error:Yh,touched:Xh}),At("Render",Sr.getFullField(i),su),ot(function(){var sn=Sr.getFullField(ko.current);return At("Register",Ct,ko.current),Fo.current={field:sn,fieldId:Ct,fieldApi:Kd,fieldState:su,notify:Ne,keepState:Fe,inMultistep:hn,shadow:Me},kt.register(Ct,Fo.current),function(){var cr=Sr.getFullField(ko.current);At("Deregister",Ct,cr),kt.deregister(Ct)}},[]),(0,h.useEffect)(function(){var sn=Sr.getFullField(i);return ru.current?ru.current=!1:(At("Update",i,hn),Fo.current.field=sn,kt.update(Ct,Fo.current,ev.current)),function(){ev.current=sn}},[i]),ot(function(){ke&&Gi&&(Gi.current.style.border="5px solid orange",setTimeout(function(){Gi.current.style.borderWidth="2px",Gi.current.style.borderStyle="inset",Gi.current.style.borderColor="initial",Gi.current.style.borderImage="initial"},500))});var Ym=[].concat(z(Object.values(su)),z(Object.values(t)),z(Object.values(Hr))),Jm=function(cr){return(0,h.useMemo)(function(){return qf?cr:null},z(Ym))},Yd=i,Xm=Ei({fieldType:Ve,setValue:Gd,onChange:Ze,multiple:Ke,ref:Gi}),Qm=Qr({setTouched:$d,onBlur:_e}),Zm=$i({fieldType:Ve,maskedValue:Bd,multiple:Ke,value:au}),qm=zn(Ve);return{fieldState:su,fieldApi:Kd,render:Jm,ref:Gi,userProps:U(U({},Hr),{},{multiple:Ke,onChange:Ze,onBlur:_e,id:Hr.id||Ct}),informed:U({name:Yd,multiple:Ke,onChange:Xm,onBlur:Qm,value:Zm,ref:Gi,type:qm,id:Hr.id||Ct},Hr)}}var Zr=function(r){var i=h.forwardRef(function(o,s){var d=Rn(o,s),g=d.fieldState,A=d.fieldApi,x=d.render,w=d.ref,F=d.userProps;return x(h.createElement(r,N({fieldApi:A,fieldState:g,field:o.field,forwardedRef:w,debug:o.debug,type:o.type},F)))});return i.displayName="asField(".concat(Bt(r),")"),i},Oi=Te("informed:Text "),Ti=function(r){var i=r.fieldApi,o=r.fieldState,s=E(r,["fieldApi","fieldState"]),d=o.maskedValue,g=i.setValue,A=i.setTouched,x=s.onChange,w=s.onBlur,F=s.field,H=s.initialValue,re=s.forwardedRef,ee=s.debug,se=s.label,de=s.title,pe=s.id,xe=E(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","title","id"]);return Oi("Render",F),ot(function(){ee&&re&&(re.current.style.background="red",setTimeout(function(){re.current.style.background="white"},500))}),h.createElement(h.Fragment,null,se?h.createElement("label",{htmlFor:pe}," ",se," "):null,h.createElement("input",N({},xe,{id:pe,name:F,ref:re,value:!d&&d!==0?"":d,onChange:function(we){g(we.target.value,we),x&&x(we)},onBlur:function(we){A(!0),w&&w(we)}})))},ln=Zr(Ti),An=function(r){var i=r.fieldApi,o=r.fieldState,s=E(r,["fieldApi","fieldState"]),d=o.maskedValue,g=i.setValue,A=i.setTouched,x=s.onChange,w=s.onBlur,F=s.field,H=s.initialValue,re=s.forwardedRef,ee=s.debug,se=s.label,de=s.id,pe=E(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","id"]);return ot(function(){ee&&re&&(re.current.style.background="red",setTimeout(function(){re.current.style.background="white"},500))}),h.createElement(h.Fragment,null,se?h.createElement("label",{htmlFor:de}," ",se," "):null,h.createElement("textarea",N({},pe,{id:de,name:F,ref:re,value:d||"",onChange:function(ve){g(ve.target.value,ve),x&&x(ve)},onBlur:function(ve){A(!0),w&&w(ve)}})))},Gn=Zr(An),$n=Te("informed:Select "),wn=function(r){var i=r.fieldApi,o=r.fieldState,s=E(r,["fieldApi","fieldState"]),d=o.value,g=i.setTouched,A=s.onChange,x=s.onBlur,w=s.field,F=s.initialValue,H=s.options,re=s.children,ee=s.forwardedRef,se=s.debug,de=s.multiple,pe=s.label,xe=s.id,ve=E(s,["onChange","onBlur","field","initialValue","options","children","forwardedRef","debug","multiple","label","id"]),we=(0,h.useRef)(),Ne=function(je){var ke=Array.from((ee||we).current).filter(function(Me){return Me.selected}).map(function(Me){return Me.value});i.setValue(de?ke:ke[0]||""),A&&je&&A(je)};return ot(function(){se&&ee&&(ee.current.style.background="red",setTimeout(function(){ee.current.style.background="white"},500))}),$n("Render",w,d),h.createElement(h.Fragment,null,pe?h.createElement("label",{htmlFor:xe}," ",pe," "):null,h.createElement("select",N({},ve,{id:xe,multiple:de,name:w,ref:ee||we,value:d||(de?[]:""),onChange:Ne,onBlur:function(je){g(!0),x&&x(je)}}),H?H.map(function(Fe){return h.createElement("option",{key:Fe.value,value:Fe.value,disabled:Fe.disabled},Fe.label)}):re))},ei=Zr(wn),Pi=function(r){var i=r.fieldApi,o=r.fieldState,s=E(r,["fieldApi","fieldState"]),d=o.value,g=i.setValue,A=i.setTouched,x=s.onChange,w=s.onBlur,F=s.field,H=s.initialValue,re=s.debug,ee=s.forwardedRef,se=s.id,de=s.label,pe=E(s,["onChange","onBlur","field","initialValue","debug","forwardedRef","id","label"]);return h.createElement(h.Fragment,null,de?h.createElement("label",{htmlFor:se}," ",de," "):null,h.createElement("input",N({},pe,{id:se,name:F,ref:ee,checked:!!d,onChange:function(ve){g(ve.target.checked),x&&x(ve)},onBlur:function(ve){A(!0),w&&w(ve)},type:"checkbox"})))},Gr=Zr(Pi),qr=function(r){return h.forwardRef(function(i,o){return h.createElement(Dt.Consumer,null,function(s){var d=s.radioGroupApi,g=s.radioGroupState;return h.createElement(r,N({radioGroupApi:d,radioGroupState:g,ref:o},i))})})},ti=function(r){var i=r.radioGroupApi,o=r.radioGroupState,s=E(r,["radioGroupApi","radioGroupState"]),d=o.value,g=i.setValue,A=i.setTouched,x=i.onChange,w=i.onBlur,F=s.value,H=s.onChange,re=s.onBlur,ee=s.field,se=s.initialValue,de=s.forwardedRef,pe=E(s,["value","onChange","onBlur","field","initialValue","forwardedRef"]);return h.createElement("input",N({},pe,{name:ee,ref:de,value:F,checked:d===F,onChange:function(ve){!ve.target.checked||(g(F),H&&H(ve),x&&x(ve))},onBlur:function(ve){A(!0),re&&re(ve),w&&w(ve)},type:"radio"}))},pr=qr(ti),xt=function(t){Q(i,t);var r=Z(i);function i(){return b(this,i),r.apply(this,arguments)}return S(i,[{key:"render",value:function(){var s=this.props,d=s.options,g=s.children;return h.createElement(Dt.Provider,{value:this.groupContext},d?d.map(function(A){return h.createElement("label",{key:A.value},A.label," ",h.createElement(pr,{value:A.value}))}):g)}},{key:"groupContext",get:function(){return{radioGroupApi:U(U({},this.props.fieldApi),{},{onChange:this.props.onChange,onBlur:this.props.onBlur}),radioGroupState:this.props.fieldState}}}]),i}(h.Component),fi=Zr(xt);function Ii(){return(0,h.useContext)(mt)}var Fn=function(){var r=Ii(),i=r.add;return h.createElement("button",{onClick:function(){i()},type:"button"},"Add")};function qt(){return(0,h.useContext)(It)}var Kn=function(){var r=qt(),i=r.remove;return h.createElement("button",{onClick:function(){i()},type:"button"},"Remove")},ri=Te("informed:useArrayField "),ya=function(r){var i=r.field,o=r.initialValue,s=r.validate,d=r.arrayFieldApiRef,g=E(r,["field","initialValue","validate","arrayFieldApiRef"]),A=Mt(),x=(0,h.useState)(new Map),w=X(x,1),F=w[0],H=(0,h.useContext)(Et),re=A.getFullField(i),ee=H.getInitialValue(i)||o||[],se=A.getSavedValue(re)&&A.getSavedValue(re).value,de=Wt(se||ee),pe=X(de,3),xe=pe[0],ve=pe[1],we=pe[2],Ne=xe?xe.map(function(){return oe()}):[],Fe=Wt(Ne),je=X(Fe,3),ke=je[0],Me=je[1],De=je[2],Ve=(0,h.useMemo)(function(){return function(Yt,Ct){var kt=De()==null?0:De().length;return s?s(Yt,kt,Ct):void 0}}),Ke=Rn(U({field:i,validate:s?Ve:void 0,shadow:!0},g)),Ze=Ke.fieldApi;ot(function(){var Yt=function(kt){kt!==re&&(ri("".concat(re," changed")),RegExp("".concat(re,"\\[[0-9]+\\]")).test(kt)&&Ze.validate())};return A.emitter.on("value",Yt),function(){A.emitter.removeListener("value",Yt)}},[i]);var _e=function(Ct){ri("EXPECTING REMOVAL OF","".concat(i,"[").concat(Ct,"] and ").concat(i,"[").concat(ke.length-1,"]")),H.expectRemoval("".concat(i,"[").concat(Ct,"]")),H.expectRemoval("".concat(i,"[").concat(ke.length-1,"]"));var kt=ke.slice(0,Ct).concat(ke.slice(Ct+1,ke.length));Me(kt);var fr=we(),hn=fr.slice(0,Ct).concat(fr.slice(Ct+1,fr.length));ve(hn)},bt=function(Ct,kt){ri("Swapping","".concat(i,"[").concat(Ct,"] and ").concat(i,"[").concat(kt,"]"));var fr=z(ke);ke[Ct]&&ke[kt]?(fr[Ct]=ke[kt],fr[kt]=ke[Ct]):console.warn("Attempted to swap ".concat(Ct," with ").concat(kt," but one of them does not exist :(")),Me(fr)},Rt=function(){ke.push(oe()),Me(z(ke))},or=function(Ct){ke.push(oe()),Me(z(ke));var kt=z(we());kt[ke.length-1]=Ct,ve(kt)},Dr=function(){var Ct=H.getInitialValue(i)||o||[];ve(Ct);var kt=Ct?Ct.map(function(){return oe()}):[];Me(kt)},Ir=ke.map(function(Yt,Ct){var kt={remove:function(){return _e(Ct)}},fr={initialValue:xe&&xe[Ct],key:Yt,field:"".concat(i,"[").concat(Ct,"]"),index:Ct};return U(U({arrayFieldItemApi:kt,arrayFieldItemState:fr},kt),fr)}),rn={add:Rt,swap:bt,addWithInitialValue:or,reset:Dr};d&&(d.current=rn);var Er={fields:Ir,field:i},Hr=U(U({},H),{},{register:function(Ct,kt){F.set(Ct,kt);for(var fr=arguments.length,hn=new Array(fr>2?fr-2:0),Sr=2;Sr<fr;Sr++)hn[Sr-2]=arguments[Sr];H.register.apply(H,[Ct,kt].concat(hn))},deregister:function(Ct){F.delete(Ct);for(var kt=arguments.length,fr=new Array(kt>1?kt-1:0),hn=1;hn<kt;hn++)fr[hn-1]=arguments[hn];H.deregister.apply(H,[Ct].concat(fr))},getInitialValue:function(Ct){if(RegExp("".concat(re,"\\[[0-9]+\\]")).test(Ct)){var kt=Ct.replace(i,""),fr=st.get(we(),kt);return ri("Resetting ".concat(kt," to ").concat(fr)),fr}return H.getInitialValue(Ct)}}),In=function(Ct){return h.createElement(Et.Provider,{value:Hr},h.createElement(mt.Provider,{value:rn},h.createElement(Nt.Provider,{value:Er},Ct)))};return{render:In,add:Rt,swap:bt,addWithInitialValue:or,fields:Ir,arrayFieldState:Er,arrayFieldApi:rn,field:i}},qe=function(r,i){return U(U({},i),{},{getValue:function(s){return i.getValue("".concat(r,".").concat(s))},getTouched:function(s){return i.getTouched("".concat(r,".").concat(s))},getError:function(s){return i.getError("".concat(r,".").concat(s))},setValue:function(s,d){return i.setValue("".concat(r,".").concat(s),d)},setTouched:function(s,d){return i.setTouched("".concat(r,".").concat(s),d)},setError:function(s,d){return i.setError("".concat(r,".").concat(s),d)},getInitialValue:function(s){return i.getInitialValue("".concat(r,".").concat(s))},getSavedValue:function(s){return i.getSavedValue("".concat(r,".").concat(s))},getFullField:function(s){return"".concat(i.getFullField(r),".").concat(s)}})};function Pt(t){var r=Mt(),i=(0,h.useMemo)(function(){return qe(t,r)},[t]);return i}function ci(){var t=(0,h.useContext)(St);return t}var ae=function(r){var i=r.when,o=r.children,s=ci(),d=i(s);return d?o:null},Ae=function(r){var i=r.relevant,o=r.field,s=E(r,["relevant","field"]),d=Mt();if(i){var g=d.getFullField(o),A={path:g,parentPath:g.replace(/(.*)[.[].*/,"$1"),get:function(F,H){return st.get(F,H)}},x=function(F){var H=F.values;return i(H,A)};return h.createElement(ae,{when:x},h.createElement(Ge,N({field:o},s)))}else return h.createElement(Ge,N({field:o},s))},Ge=function(r){var i=r.children,o=E(r,["children"]),s=ya(o),d=s.render,g=s.arrayFieldState,A=s.arrayFieldApi,x=s.field;return d(typeof i=="function"?i(U(U({field:x,arrayFieldApi:A,arrayFieldState:g},A),g)):i)},tt=function(r){var i=r.arrayFieldItemState,o=r.arrayFieldItemApi,s=r.children,d=(0,h.useContext)(Et),g=Mt(),A=(0,h.useState)(0),x=X(A,2),w=x[0],F=x[1],H=(0,h.useState)(new Map),re=X(H,1),ee=re[0],se=i.field,de=Pt(se),pe=function(){var ke=g.getState(),Me=ke.values,De=ke.errors,Ve=ke.touched,Ke={values:st.get(Me,se),errors:st.get(De,se),touched:st.get(Ve,se)};return Ke};(0,h.useEffect)(function(){var je=function(Me){var De=Me.slice(0,Me.lastIndexOf("[")!=-1?Me.lastIndexOf("]")+1:Me.length);De===se&&F(Math.random())};return g.emitter.on("value",je),function(){g.emitter.removeListener("value",je)}},[se]);var xe=function(){ee.forEach(function(ke){ke.fieldApi.reset()})},ve=pe(),we=U(U({},d),{},{register:function(ke,Me,De){ee.set(ke,Me),d.register(ke,Me,De)},deregister:function(ke){ee.delete(ke);for(var Me=arguments.length,De=new Array(Me>1?Me-1:0),Ve=1;Ve<Me;Ve++)De[Ve-1]=arguments[Ve];d.deregister.apply(d,[ke].concat(De))}}),Ne=U(U(U({},o),de),{},{reset:xe}),Fe=U(U({},i),ve);return typeof s=="function"?h.createElement(Et.Provider,{value:we},h.createElement(It.Provider,{value:Ne},h.createElement(ht.Provider,{value:Fe},s(U(U({arrayFieldItemApi:Ne,arrayFieldItemState:Fe},Ne),Fe))))):h.createElement(Et.Provider,{value:we},h.createElement(It.Provider,{value:Ne},h.createElement(ht.Provider,{value:Fe},s)))};Ae.Items=function(t){var r=t.children,i=(0,h.useContext)(Nt),o=i.fields;return o.map(function(s){var d=s.arrayFieldItemState,g=s.arrayFieldItemApi,A=d.key;return h.createElement(tt,{key:A,arrayFieldItemApi:g,arrayFieldItemState:d},r)})};var rt=function(r){var i=r.components,o=(0,h.useContext)(Et),s=o.fieldMap;return i?i.map(function(d,g){var A=d["ui:control"],x=s[A];return h.createElement(x,{key:"ui-comp-".concat(g)})}):null},Gt=Te("informed:FormFields "),Xt=function t(r){var i=r.schema,o=r.prefix,s=r.onlyValidateSchema,d=(0,h.useContext)(Et),g=d.fieldMap,A=(0,h.useMemo)(function(){var x=fe(i,s,o),w=x.map(function(F,H){var re=F.field,ee=F.props,se=F.type,de=F.properties,pe=F.items,xe=F.componentType,ve=F.uiBefore,we=F.uiAfter,Ne=F.allOf,Fe=g[xe];return Gt("Rendering Field",re,F),!Fe&&se==="object"&&de?h.createElement(t,{schema:F,prefix:re,key:"ScheamField-".concat(H)}):!Fe&&se==="array"&&pe?h.createElement(kr,N({key:"ScheamField-".concat(H),field:re,items:pe,uiBefore:ve,uiAfter:we},ee)):Fe&&xe==="array"&&pe&&se==="array"?h.createElement(Fe,N({key:"ScheamField-".concat(H),field:re,items:pe,uiBefore:ve,uiAfter:we},ee)):xe==="conditionals"?Ne.map(function(je){var ke=je.then,Me=je.if.properties,De=function(Ke){var Ze=Ke.values;return Object.keys(Me).every(function(_e){var bt=Me[_e];return Ze[_e]===bt.const})};return h.createElement(ae,{key:"ScheamField-".concat(H),when:De},h.createElement(t,{schema:ke}))}):Fe?h.createElement(Fe,N({key:"ScheamField-".concat(H),field:re},ee)):null});return w},[i,o]);return A},kr=function(r){var i=r.field,o=r.items,s=r.uiBefore,d=r.uiAfter,g=E(r,["field","items","uiBefore","uiAfter"]);return h.createElement(Ae,N({field:i},g),h.createElement(rt,{components:s}),h.createElement(Ae.Items,null,function(A){var x=A.field;return h.createElement(h.Fragment,null,h.createElement(rt,{components:o["ui:before"]}),h.createElement(Xt,{schema:o,prefix:x}),h.createElement(rt,{components:o["ui:after"]}))}),h.createElement(rt,{components:d}))},Mr={select:ei,input:ln,textarea:Gn,checkbox:Gr,radio:fi,add:Fn,remove:Kn,array:kr},_t=Te("informed:Controller "),uu=function(r,i){var o=Object.keys(i).find(function(d){return r.includes(d)});if(!!o){var s=r.slice(0,o.length);return s===o}},un=function(){},Ms=function(){function t(){var r=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};b(this,t),this.options=i,this.subscriptions=new Map;var o=i.ajv,s=i.schema,d=i.fieldMap;this.ajv=o?new o({allErrors:!0}):null,this.ajvValidate=o?this.ajv.compile(s):null,this.fieldMap=d||Mr,this.fieldsById=new Map,this.fieldsByName={get:function(A){var x;return r.fieldsById.forEach(function(w){w&&w.field===A&&(x=w)}),x}},this.onScreen={},this.expectedRemovals={},this.pulledOut={},this.savedValues={},this.state={pristine:!0,dirty:!1,invalid:!1,submits:0,step:0,validating:0,submitting:!1,values:{},errors:{},touched:{}},this.dummyField={fieldApi:{setValue:un,setTouched:un,setError:un,reset:un,validate:un,getValue:un,getTouched:un,getError:un,getFieldState:un,checkRelevant:un,getPristine:un,getDirty:un}},this.deregister=this.deregister.bind(this),this.register=this.register.bind(this),this.getValue=this.getValue.bind(this),this.getTouched=this.getTouched.bind(this),this.getError=this.getError.bind(this),this.getErrors=this.getErrors.bind(this),this.setValue=this.setValue.bind(this),this.getValues=this.getValues.bind(this),this.getStep=this.getStep.bind(this),this.setStep=this.setStep.bind(this),this.back=this.back.bind(this),this.next=this.next.bind(this),this.setCurrent=this.setCurrent.bind(this),this.setTouched=this.setTouched.bind(this),this.setError=this.setError.bind(this),this.setFormError=this.setFormError.bind(this),this.submitForm=this.submitForm.bind(this),this.reset=this.reset.bind(this),this.update=this.update.bind(this),this.validate=this.validate.bind(this),this.screenValid=this.screenValid.bind(this),this.keyDown=this.keyDown.bind(this),this.getField=this.getField.bind(this),this.getInitialValue=this.getInitialValue.bind(this),this.setInitialValue=this.setInitialValue.bind(this),this.getOptions=this.getOptions.bind(this),this.getFormState=this.getFormState.bind(this),this.expectRemoval=this.expectRemoval.bind(this),this.getSavedValue=this.getSavedValue.bind(this),this.removeSavedState=this.removeSavedState.bind(this),this.getDerrivedValue=this.getDerrivedValue.bind(this),this.setValues=this.setValues.bind(this),this.resetField=this.resetField.bind(this),this.fieldExists=this.fieldExists.bind(this),this.validateField=this.validateField.bind(this),this.notify=this.notify.bind(this),this.validating=this.validating.bind(this),this.validated=this.validated.bind(this),this.getDirty=this.getDirty.bind(this),this.getPristine=this.getPristine.bind(this),this.on=this.on.bind(this),this.emit=this.emit.bind(this),this.removeListener=this.removeListener.bind(this),this.updater={register:this.register,deregister:this.deregister,getField:this.getField,update:this.update,fieldMap:this.fieldMap,setValue:function(A,x){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,F=r.fieldsById.get(A);F.shadow||st.set(r.state.values,F.field,F.fieldApi.getValue()),F.fieldApi.relevant(r.state.values)||st.delete(r.state.values,F.field),r.fieldsById.forEach(function(H){var re=H.fieldApi.checkRelevant();(!H.fieldApi.multistepRelevant(r.state.values)||!re&&!H.keepState)&&(st.delete(r.state.values,H.field),st.delete(r.state.touched,H.field),st.delete(r.state.errors,H.field))}),w&&(r.emit("change"),r.emit("field",F.field),r.emit("value",F.field,x))},setTouched:function(A,x){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,F=r.fieldsById.get(A);!F.shadow&&F.fieldApi.getIsRelevant()&&st.set(r.state.touched,F.field,F.fieldApi.getTouched()),F.shadow&&F.fieldApi.getError()!=null&&F.fieldApi.relevant(r.state.values)&&st.set(r.state.touched,F.field,F.fieldApi.getTouched()),w&&(r.emit("change"),r.emit("field",F.field))},setError:function(A,x){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,F=r.fieldsById.get(A);!F.shadow&&F.fieldApi.getIsRelevant()&&st.set(r.state.errors,F.field,F.fieldApi.getError());var H=st.get(r.state.errors,F.field);(F.shadow&&F.fieldApi.getError()!=null&&F.fieldApi.relevant(r.state.values)||F.shadow&&F.fieldApi.getError()===void 0&&F.fieldApi.relevant(r.state.values)&&typeof H=="string")&&st.set(r.state.errors,F.field,F.fieldApi.getError()),w&&(r.emit("change"),r.emit("field",F.field))},expectRemoval:this.expectRemoval,getInitialValue:this.getInitialValue,getSavedValue:this.getSavedValue},this.formApi={setValue:this.setValue,setTouched:this.setTouched,setError:this.setError,setFormError:this.setFormError,setValues:this.setValues,setInitialValue:this.setInitialValue,getValue:this.getValue,getTouched:this.getTouched,getError:this.getError,reset:this.reset,submitForm:this.submitForm,getState:this.getFormState,getValues:this.getValues,getFullField:this.getFullField,fieldExists:this.fieldExists,getInitialValue:this.getInitialValue,validate:this.validate,validateField:this.validateField,screenValid:this.screenValid,resetField:this.resetField,getOptions:this.getOptions,emitter:this,getSavedValue:this.getSavedValue,removeSavedState:this.removeSavedState,getDerrivedValue:this.getDerrivedValue,getStep:this.getStep,setStep:this.setStep,next:this.next,back:this.back,setCurrent:this.setCurrent,validated:this.validated,validating:this.validating,getDirty:this.getDirty,getPristine:this.getPristine,getField:this.getField},this.on("value",function(g){delete r.state.error,r.notify(g)})}return S(t,[{key:"emit",value:function(i){for(var o=arguments.length,s=new Array(o>1?o-1:0),d=1;d<o;d++)s[d-1]=arguments[d];var g=this.subscriptions.get(i);g&&g.forEach(function(A){return A.apply(void 0,s)})}},{key:"on",value:function(i,o){this.subscriptions.get(i)||this.subscriptions.set(i,new Set);var s=this.subscriptions.get(i);s.add(o)}},{key:"removeListener",value:function(i,o){var s=this.subscriptions.get(i);s.delete(o)}},{key:"setOptions",value:function(i){this.options=i}},{key:"setValue",value:function(i,o,s){this.getField(i).fieldApi.setValue(o,null,U({allowEmptyString:this.options.allowEmptyStrings},s))}},{key:"setTouched",value:function(i,o){this.getField(i).fieldApi.setTouched(o)}},{key:"setError",value:function(i,o){this.getField(i).fieldApi.setError(o)}},{key:"setFormError",value:function(i){this.state.error=i,this.emit("change")}},{key:"validating",value:function(){this.state.validating=this.state.validating+1,this.emit("change")}},{key:"validated",value:function(i,o){if(this.state.validating=this.state.validating-1,this.getError(i)||this.setError(i,o),this.state.validating>0){this.emit("change");return}this.state.submitting&&(this.valid()?(_t("Submit",this.state),this.emit("submit")):(_t("Submit",this.state),this.emit("failure")),this.state.submitting=!1),this.emit("change")}},{key:"setStep",value:function(i){this.state.step=i,this.emit("change")}},{key:"setCurrent",value:function(i){this.state.Current=i,this.emit("change")}},{key:"back",value:function(i){this.state.step=this.state.step-1,this.state.Current=i,this.emit("change")}},{key:"next",value:function(i){this.validate(),this.screenValid()&&(this.state.step=this.state.step+1,this.state.Current=i),this.emit("change")}},{key:"setInitialValue",value:function(i,o){st.set(this.options.initialValues,i,o)}},{key:"getFormState",value:function(){return _t("Returning form state"),U(U({},this.state),{},{pristine:this.pristine(),dirty:this.dirty(),invalid:this.invalid()})}},{key:"getFormApi",value:function(){return this.formApi}},{key:"getDerrivedValue",value:function(i){var o=this.getValues();return st.get(o,i)}},{key:"getValue",value:function(i){var o=this.getField(i).fieldApi.getValue();return _t("Getting value for",i,o),o}},{key:"getTouched",value:function(i){var o=this.getField(i).fieldApi.getTouched();return _t("Getting touched for",i,o),o}},{key:"getError",value:function(i){var o=this.getField(i).fieldApi.getError();return _t("Getting error for",i,o),o}},{key:"getDirty",value:function(i){var o=this.getField(i).fieldApi.getDirty();return _t("Getting dirty for",i,o),o}},{key:"getPristine",value:function(i){var o=this.getField(i).fieldApi.getPristine();return _t("Getting pristine for",i,o),o}},{key:"getValues",value:function(){return _t("Gettings values"),this.state.values}},{key:"getAllTouched",value:function(){return _t("Gettings touched"),this.state.touched}},{key:"getErrors",value:function(){return _t("Gettings errors"),this.state.errors}},{key:"getOptions",value:function(){return this.options}},{key:"getStep",value:function(){return this.state.step}},{key:"getSavedValue",value:function(i){var o=this.fieldsByName.get(i);return o&&o.shadow?st.get(this.savedValues,"shadow-".concat(i)):st.get(this.savedValues,i)}},{key:"removeSavedState",value:function(i){var o=this.fieldsByName.get(i);return o&&o.shadow?st.delete(this.savedValues,"shadow-".concat(i)):st.delete(this.savedValues,i)}},{key:"getFullField",value:function(i){return i}},{key:"getInitialValue",value:function(i){return st.get(this.options.initialValues,i)}},{key:"getField",value:function(i){_t("Getting Field",i);var o=this.fieldsByName.get(i);return o||(console.warn("Attempting to get field ".concat(i," but it does not exist")),this.dummyField)}},{key:"notify",value:function(i){var o=this,s=this.getField(i);s&&s.notify&&s.notify.forEach(function(d){var g=".".concat(i),A="".concat(g.replace(/(.*)[.[].*/,"$1"),".").concat(d).slice(1),x=o.getField(A);x&&(_t("Notifying",x.field),x.fieldApi.validate(),x.fieldApi.checkRelevant())})}},{key:"validateField",value:function(i){this.getField(i).fieldApi.validate()}},{key:"resetField",value:function(i){this.getField(i).fieldApi.reset()}},{key:"fieldExists",value:function(i){return this.fieldsByName.get(i)!=null}},{key:"valid",value:function(){var i=this.getErrors();return!!(st.empty(i)&&!this.state.error)}},{key:"screenValid",value:function(){var i=Object.entries(this.onScreen).some(function(o){var s=X(o,2),d=s[1];return d.fieldApi.getError()});return!i}},{key:"invalid",value:function(){var i=this.getErrors();return!!(!st.empty(i)||this.state.error)}},{key:"pristine",value:function(){var i=!0;return this.fieldsById.forEach(function(o){o.fieldApi.getPristine()||(i=!1)}),i}},{key:"dirty",value:function(){return!this.pristine()}},{key:"reset",value:function(){_t("Resetting"),this.fieldsById.forEach(function(i){i.fieldApi.reset({preventUpdate:!0})}),this.emit("reset"),this.emit("change")}},{key:"setValues",value:function(i){_t("Setting values"),this.fieldsById.forEach(function(o){var s=st.get(i,o.field);s!==void 0&&o.fieldApi.setValue(s,null,{preventUpdate:!0})}),this.emit("change")}},{key:"validate",value:function(){var i=this;_t("Validating all fields");var o=this.getValues();if(this.options.validationSchema){var s=Be(this.options.validationSchema,o);this.fieldsById.forEach(function(x){if(st.has(s,x.field)){var w=st.get(s,x.field);i.setError(x.field,w)}else i.setError(x.field,void 0)})}if(this.options.schema&&this.options.ajv){var d=T(this.ajvValidate,o);this.fieldsById.forEach(function(x){if(st.has(d,x.field)){var w=st.get(d,x.field);i.setError(x.field,w)}else i.setError(x.field,void 0)})}if(this.fieldsById.forEach(function(x){x.fieldApi.validate(o),x.fieldApi.setTouched(!0,!0)}),this.options.validate){var g=this.options.validate(o);this.setFormError(g)}if(this.options.validateFields){var A=this.options.validateFields(o);this.fieldsById.forEach(function(x){if(st.has(A,x.field)){var w=st.get(A,x.field);i.setError(x.field,w)}})}}},{key:"asyncValidate",value:function(){_t("Async Validating all fields");var i=this.getValues();this.fieldsById.forEach(function(o){o.fieldApi.asyncValidate(i)})}},{key:"keyDown",value:function(i){if(i.keyCode==13&&this.options.preventEnter)return i.preventDefault(i),!1}},{key:"submitForm",value:function(i){this.state.submits=this.state.submits+1,this.state.submitting=!0,!this.options.dontPreventDefault&&i&&i.preventDefault(i),this.validate(),this.emit("change"),this.asyncValidate(),!(this.state.validating>0)&&(this.valid()?(_t("Submit",this.state),this.emit("submit")):(_t("Submit",this.state),this.emit("failure")),this.state.submitting=!1,this.emit("change"))}},{key:"mount",value:function(){var i=this;this.fieldsById.forEach(function(o){i.emit("field",o.field)})}},{key:"register",value:function(i,o,s){var d=o.field,g=o.state;_t("Register ID:",i,"Name:",d,g,"Initial",s);var A=d.slice(0,d.lastIndexOf("[")!=-1?d.lastIndexOf("]")+1:d.length),x;this.fieldsById.forEach(function(w,F){w&&w.field===d&&(x=F)}),x&&(o.keepState||o.inMultistep)?(_t("Already Registered",d),this.fieldsById.delete(x)):x&&(!o.keepState||!o.inMultistep)&&console.warn("Check to make sure you have not registered two fields with the fieldName",d),_t("Fields Registered",this.fieldsById.size),this.onScreen[i]=o,this.fieldsById.set(i,o),_t("clearing expected removal",A),delete this.expectedRemovals[A],delete this.pulledOut[A],!o.shadow&&(this.updater.setValue(i,o.fieldApi.getValue(),!1),this.updater.setError(i,o.fieldApi.getError(),!1),this.updater.setTouched(i,o.fieldApi.getTouched(),!1),s||this.emit("change"),this.emit("field",d))}},{key:"deregister",value:function(i){var o=this.fieldsById.get(i),s=o.field;_t("Deregister",i,s),delete this.onScreen[i];var d=uu(s,this.expectedRemovals),g=s.slice(0,s.lastIndexOf("[")!=-1?s.lastIndexOf("]")+1:s.length);(o.keepState||o.inMultistep)&&!d&&(_t("Saving field ".concat(s,"'s value"),o.fieldApi.getFieldState()),o.shadow?st.set(this.savedValues,"shadow-".concat(s),o.fieldApi.getFieldState()):st.set(this.savedValues,s,o.fieldApi.getFieldState())),(d||!o.keepState&&!o.inMultistep||!o.fieldApi.getIsRelevant()&&!o.keepState)&&(_t("Removing field",s),this.fieldsById.delete(i),d||(st.delete(this.state.values,s),st.delete(this.state.touched,s),st.delete(this.state.errors,s),o.shadow?st.delete(this.savedValues,"shadow-".concat(s)):st.delete(this.savedValues,s)),d&&this.pulledOut[g]&&(_t("Pulling out",s,"with magic value",g),st.pullOut(this.state.values,g),st.pullOut(this.state.touched,g),st.pullOut(this.state.errors,g),st.pullOut(this.savedValues,g),delete this.pulledOut[g])),this.emit("change")}},{key:"expectRemoval",value:function(i){_t("Expecting removal of",i),this.expectedRemovals[i]=!0,this.pulledOut[i]=!0}},{key:"update",value:function(i,o,s){_t("Update",i,o.field,s,o.fieldState.value);var d=o.fieldApi.getValue(),g=o.fieldApi.getError(),A=o.fieldApi.getTouched(),x=this.fieldsByName.get(s);s&&!x&&(st.set(this.state.values,s),st.set(this.state.errors,s),st.set(this.state.touched,s)),st.set(this.state.values,o.field,d),st.set(this.state.errors,o.field,g),st.set(this.state.touched,o.field,A),this.emit("change")}}]),t}(),Lo=Te("informed:FormProvider "),Ls=function(r){var i=r.children,o=r.formApi,s=r.formController,d=r.formState,g=E(r,["children","formApi","formController","formState"]);if(Lo("Render FormProvider"),o)return Lo("Render FormProvider with given values"),h.createElement(Et.Provider,{value:s.updater},h.createElement(jt.Provider,{value:o},h.createElement(St.Provider,{value:d},i)));Lo("Render FormProvider with generated values");var A=Ds(g);return h.createElement(Et.Provider,{value:A.formController.updater},h.createElement(jt.Provider,{value:A.formApi},h.createElement(St.Provider,{value:A.formState},i)))},Rs=Te("informed:useForm "),Ds=function(r){var i=r.dontPreventDefault,o=r.initialValues,s=r.validate,d=r.validateFields,g=r.allowEmptyStrings,A=r.preventEnter,x=r.getApi,w=r.apiRef,F=r.onChange,H=r.onReset,re=r.onSubmit,ee=r.onValueChange,se=r.onSubmitFailure,de=r.validationSchema,pe=r.schema,xe=r.ajv,ve=r.fieldMap,we=r.onlyValidateSchema,Ne=E(r,["dontPreventDefault","initialValues","validate","validateFields","allowEmptyStrings","preventEnter","getApi","apiRef","onChange","onReset","onSubmit","onValueChange","onSubmitFailure","validationSchema","schema","ajv","fieldMap","onlyValidateSchema"]);Rs("Render useForm");var Fe=(0,h.useMemo)(function(){return{dontPreventDefault:i,initialValues:o,validate:s,validateFields:d,allowEmptyStrings:g,preventEnter:A,validationSchema:de,schema:pe,ajv:xe,fieldMap:ve}},[i,o,s,d,g,A,de,pe,xe,ve]),je=(0,h.useState)(function(){return new Ms(Fe)}),ke=X(je,1),Me=ke[0];(0,h.useEffect)(function(){Me.setOptions(Fe)},[Fe]),ot(function(){Me.mount()},[]);var De=(0,h.useState)(function(){return Me.getFormState()}),Ve=X(De,2),Ke=Ve[0],Ze=Ve[1];ot(function(){var Dr=function(){return F&&F(Me.getFormState())},Ir=function(){return H&&H()},rn=function(){return re&&re(Me.getFormState().values)},Er=function(){return ee&&ee(Me.getFormState().values)},Hr=function(){return se&&se(Me.getFormState().errors)};return Me.on("change",Dr),Me.on("reset",Ir),Me.on("submit",rn),Me.on("value",Er),Me.on("failure",Hr),function(){Me.removeListener("change",Dr),Me.removeListener("reset",Ir),Me.removeListener("submit",rn),Me.removeListener("value",Er),Me.removeListener("failure",Hr)}},[F,H,re,ee,se]),(0,h.useState)(function(){var Dr=function(){Rs("Setting form state"),Ze(Me.getFormState())};Me.on("change",Dr),x&&x(Me.getFormApi()),w&&(w.current=Me.getFormApi())});var _e=(0,h.useState)(function(){return Me.getFormApi()}),bt=X(_e,1),Rt=bt[0],or=function(Ir){return h.createElement(Ls,{formApi:Rt,formState:Ke,formController:Me},h.createElement(h.Fragment,null,Ir||h.createElement(Xt,{schema:pe,onlyValidateSchema:we})))};return{formApi:Rt,formState:Ke,formController:Me,render:or,userProps:Ne}},fu=Te("informed:Form "),cu=function(r){var i=r.children,o=r.render,s=r.component,d=E(r,["children","render","component"]);fu("Render FORM");var g=Ds(d),A=g.formApi,x=g.formController,w=g.formState,F=g.render,H=g.userProps,re=function(){var se={formState:w,formApi:A};return s?h.createElement(s,se,i):o?o(se):typeof i=="function"?i(se):i};return F(h.createElement("form",N({},H,{onReset:x.reset,onSubmit:x.submitForm,onKeyDown:x.keyDown}),re()))},_f=function(r,i){return U(U({},i),{},{getValue:function(s){return i.getValue("".concat(r,".").concat(s))},getTouched:function(s){return i.getTouched("".concat(r,".").concat(s))},getError:function(s){return i.getError("".concat(r,".").concat(s))},setValue:function(s,d){return i.setValue("".concat(r,".").concat(s),d)},setTouched:function(s,d){return i.setTouched("".concat(r,".").concat(s),d)},setError:function(s,d){return i.setError("".concat(r,".").concat(s),d)},getInitialValue:function(s){return i.getInitialValue("".concat(r,".").concat(s))},getFullField:function(s){return"".concat(i.getFullField(r),".").concat(s)}})},ec=function(r,i){var o=i.register,s=i.deregister,d=i.setValue,g=i.setTouched,A=i.setError,x=i.update,w=i.getField,F=i.expectRemoval,H=i.getInitialValue,re=i.fieldMap,ee=i.getSavedValue;return{register:function(de){for(var pe=arguments.length,xe=new Array(pe>1?pe-1:0),ve=1;ve<pe;ve++)xe[ve-1]=arguments[ve];return o.apply(void 0,["".concat(r,".").concat(de)].concat(xe))},deregister:function(de){for(var pe=arguments.length,xe=new Array(pe>1?pe-1:0),ve=1;ve<pe;ve++)xe[ve-1]=arguments[ve];return s.apply(void 0,["".concat(r,".").concat(de)].concat(xe))},update:function(de){for(var pe=arguments.length,xe=new Array(pe>1?pe-1:0),ve=1;ve<pe;ve++)xe[ve-1]=arguments[ve];return x.apply(void 0,["".concat(r,".").concat(de)].concat(xe))},setValue:function(de){for(var pe=arguments.length,xe=new Array(pe>1?pe-1:0),ve=1;ve<pe;ve++)xe[ve-1]=arguments[ve];return d.apply(void 0,["".concat(r,".").concat(de)].concat(xe))},setTouched:function(de){for(var pe=arguments.length,xe=new Array(pe>1?pe-1:0),ve=1;ve<pe;ve++)xe[ve-1]=arguments[ve];return g.apply(void 0,["".concat(r,".").concat(de)].concat(xe))},setError:function(de){for(var pe=arguments.length,xe=new Array(pe>1?pe-1:0),ve=1;ve<pe;ve++)xe[ve-1]=arguments[ve];return A.apply(void 0,["".concat(r,".").concat(de)].concat(xe))},getField:function(de){for(var pe=arguments.length,xe=new Array(pe>1?pe-1:0),ve=1;ve<pe;ve++)xe[ve-1]=arguments[ve];return w.apply(void 0,["".concat(r,".").concat(de)].concat(xe))},expectRemoval:function(de){for(var pe=arguments.length,xe=new Array(pe>1?pe-1:0),ve=1;ve<pe;ve++)xe[ve-1]=arguments[ve];return F.apply(void 0,["".concat(r,".").concat(de)].concat(xe))},getInitialValue:function(de){return H("".concat(r,".").concat(de))},getSavedValue:function(de){return ee("".concat(r,".").concat(de))},fieldMap:re}},tc=function(r){var i=r.scope,o=r.children,s=useContext(Et),d=Mt(),g=ci(),A=useMemo(function(){return _f(i,d)},[i]),x=useMemo(function(){return ec(i,s)},[i]);return React.createElement(Et.Provider,{value:x},React.createElement(jt.Provider,{value:A},React.createElement(St.Provider,{value:g},o)))},Fi=function(r){var i=ci(),o={};Object.keys(r).length>0?Object.keys(r).forEach(function(ee){o[ee]=i[ee]}):o=i;var s=o,d=s.pristine,g=s.dirty,A=s.invalid,x=s.values,w=s.errors,F=s.touched,H=s.validating,re=s.submitting;return React.createElement("pre",null,React.createElement("code",null,JSON.stringify({pristine:d,dirty:g,invalid:A,values:x,errors:w,touched:F,validating:H,submitting:re},null,2)))},rc=function(r){var i=r.initialStep,o=r.multistepApiRef,s=Mt(),d=s.getValues,g=s.validate,A=s.screenValid,x=(0,h.useState)(new Map),w=X(x,1),F=w[0],H=(0,h.useRef)(0),re=Wt({current:i,steps:[],goal:null}),ee=X(re,3),se=ee[0],de=ee[1],pe=ee[2],xe=(0,h.useState)(function(){var Fe=function(){var Me=pe(),De=Me.current,Ve=F.get(De);return Ve},je={getState:function(){return pe()},getCurrentStep:Fe,getStep:function(Me){return F.get(Me)},getNumberOfSteps:function(){return F.size},next:function(){if(g(),A()){var Me=Fe(),De=Me.getNext,Ve=De(),Ke=typeof Ve=="function"?Ve(d()):Ve;Ke&&de(function(Ze){return U(U({},Ze),{},{current:Ke})})}},back:function(){var Me=Fe(),De=Me.getPrevious,Ve=De(),Ke=typeof Ve=="function"?Ve(d()):Ve;Ke&&de(function(Ze){return U(U({},Ze),{},{current:Ke})})},setCurrent:function(Me){if(Me){var De=F.get(Me).index;De<Fe().index?de(function(Ve){return U(U({},Ve),{},{current:Me,goal:null})}):de(function(Ve){return U(U({},Ve),{},{goal:Me})})}},register:function(Me,De,Ve){Ve?(H.current=H.current+1,F.set(Me,U(U({},De),{},{index:H.current}))):de(function(Ke){return U(U({},Ke),{},{steps:Array.from(F.keys())})})},deregister:function(Me){F.delete(Me),H.current=H.current-1,de(function(De){return U(U({},De),{},{steps:Array.from(F.keys())})})}};return o&&(o.current=je),je}),ve=X(xe,1),we=ve[0],Ne=function(je){return h.createElement(Kt.Provider,{value:we},h.createElement(zt.Provider,{value:se},je))};return U(U(U({},we),se),{},{render:Ne})};function nc(){return(0,h.useContext)(zt)}function Ro(){return(0,h.useContext)(Kt)}var Ha=function(r){var i=r.step,o=r.next,s=r.previous,d=r.relevant,g=ci(),A=g.values,x=nc(),w=x.current,F=x.goal,H=Ro(),re=H.register,ee=H.deregister,se=H.next,de=i===w,pe=d?d(A):!0,xe=(0,h.useRef)(o),ve=(0,h.useRef)(s),we=(0,h.useRef)();xe.current=o,ve.current=s,we.current=d,(0,h.useState)(function(){re(i,{name:i,getNext:function(){return xe.current},getPrevious:function(){return ve.current}},!0)}),(0,h.useEffect)(function(){return re(i,{name:i,getNext:function(){return xe.current},getPrevious:function(){return ve.current}}),function(){ee(i)}},[i]),(0,h.useEffect)(function(){F&&de&&F!==i&&se()},[F,de]);var Ne=function(je){return h.createElement(sr.Provider,{value:{relevant:function(Me){return we.current?we.current(Me):!0},multistep:!0}},de&&pe?je:null)};return{isCurrent:de,isRelevant:pe,step:i,render:Ne}};function ic(t){var r=t.children,i=E(t,["children"]),o=rc(i),s=o.render,d=E(o,["render"]);return s(typeof r=="function"?r(d):r)}ic.Step=function(r){var i=r.children,o=E(r,["children"]),s=Ha(o),d=s.render;return d(i)};var Jd=function(r){var i=r.field,o=useContext(Et),s=o.fieldMap,d=Mt(),g=d.getFullField,A=d.getOptions,x=g(i),w=A(),F=w.schema,H=te(x),re=st.get(F,H);if(!re)return null;var ee=_(i,re),se=ee.props,de=ee.componentType,pe=s[de];return React.createElement(pe,N({field:i},se))},Xd=function(){var r=Mt(),i=r.getOptions,o=i(),s=o.schema;return React.createElement(Xt,{schema:s})},Qd=function(r){return React.forwardRef(function(i,o){return React.createElement(jt.Consumer,null,function(s){return React.createElement(r,N({formApi:s,ref:o},i))})})},du=function(r){return React.forwardRef(function(i,o){return React.createElement(St.Consumer,null,function(s){return React.createElement(r,N({formState:s,ref:o},i))})})},pu=function(r,i){return{getValue:function(){return r.getValue(i)},setValue:function(s){return r.setValue(i,s)},getTouched:function(){return r.getTouched(i)},setTouched:function(s){return r.setTouched(i,s)},getError:function(){return r.getError(i)},setError:function(s){return r.setError(i,s)},reset:function(){return r.resetField(i)},validate:function(){return r.validateField(i)},exists:function(){return r.fieldExists(i)},getDirty:function(){return r.getDirty(i)},getPristine:function(){return r.getPristine(i)},getFieldState:function(){return r.getField(i).fieldApi.getFieldState()}}};function hu(t){var r=Mt(),i=useMemo(function(){return pu(r,t)},[t]);return i}function vu(t){var r=hu(t),i=Mt(),o=React.useState(),s=X(o,2),d=s[1],g=React.useCallback(function(){return d({})},[]);return ot(function(){var A=function(w){w===t&&g()};return i.emitter.on("field",A),function(){i.emitter.removeListener("field",A)}},[]),ot(function(){g()},[]),r.getFieldState()||{}}var ac=function(r){return function(i){return function(o){var s=vu(r);return React.createElement(i,N({fieldState:s},o))}}},Ns=function(r){return function(i){return function(o){var s=hu(r);return React.createElement(i,N({fieldApi:s},o))}}},Bs=function(r){var i=r.value,o=r.forwardedRef,s=r.children,d=E(r,["value","forwardedRef","children"]);return React.createElement("option",N({ref:o,value:i,key:i},d),s)},gu=null,za=a(80150),js=a(89356),Ki=a(63263),oc=a(30699),Do=a(58377),Yn=a(28834),yu=a(13038),sc=a(32752),Ga=a(44341);function Us(t,r,i){return r in t?Ga(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function di(t,r){var i=js(t);if(Ki){var o=Ki(t);r&&(o=oc(o).call(o,function(s){return Do(t,s).enumerable})),i.push.apply(i,o)}return i}function hr(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};if(r%2){var o;Yn(o=di(Object(i),!0)).call(o,function(d){Us(t,d,i[d])})}else if(yu)sc(t,yu(i));else{var s;Yn(s=di(Object(i))).call(s,function(d){Ga(t,d,Do(i,d))})}}return t}var pi=a(28583),Yi=a.n(pi),Vs=a(10240),Ji=a.n(Vs),ki=a(8575),Xi=a(51446),Ws=a(19996),Hs=a(78363),mu=a(95238),zs=a(53592);function Gs(t,r){(r==null||r>t.length)&&(r=t.length);for(var i=0,o=new Array(r);i<r;i++)o[i]=t[i];return o}function $s(t,r){var i;if(!!t){if(typeof t=="string")return Gs(t,r);var o=mu(i=Object.prototype.toString.call(t)).call(i,8,-1);if(o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set")return zs(t);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Gs(t,r)}}function Qi(t,r){var i=typeof Xi!="undefined"&&Ws(t)||t["@@iterator"];if(!i){if(Hs(t)||(i=$s(t))||r&&t&&typeof t.length=="number"){i&&(t=i);var o=0,s=function(){};return{s,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(w){throw w},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
76
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d=!0,g=!1,A;return{s:function(){i=i.call(t)},n:function(){var w=i.next();return d=w.done,w},e:function(w){g=!0,A=w},f:function(){try{!d&&i.return!=null&&i.return()}finally{if(g)throw A}}}}var lc=a(23882);function lr(t){return typeof Xi=="function"&&typeof lc=="symbol"?lr=function(i){return typeof i}:lr=function(i){return i&&typeof Xi=="function"&&i.constructor===Xi&&i!==Xi.prototype?"symbol":typeof i},lr(t)}function uc(t){if(Hs(t))return t}function xu(t,r){var i=t&&(typeof Xi!="undefined"&&Ws(t)||t["@@iterator"]);if(i!=null){var o=[],s=!0,d=!1,g,A;try{for(i=i.call(t);!(s=(g=i.next()).done)&&(o.push(g.value),!(r&&o.length===r));s=!0);}catch(x){d=!0,A=x}finally{try{!s&&i.return!=null&&i.return()}finally{if(d)throw A}}return o}}function No(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
77
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fn(t,r){return uc(t)||xu(t,r)||$s(t,r)||No()}var bu=a(69798);function Su(t,r,i,o,s,d,g){try{var A=t[d](g),x=A.value}catch(w){i(w);return}A.done?r(x):bu.resolve(x).then(o,s)}function Ks(t){return function(){var r=this,i=arguments;return new bu(function(o,s){var d=t.apply(r,i);function g(x){Su(d,o,s,g,A,"next",x)}function A(x){Su(d,o,s,g,A,"throw",x)}g(void 0)})}}var $a=a(63109),ur=a.n($a),fc=a(78580),Bo=a.n(fc),Ka=a(72119),Au=a.n(Ka),wu=a(66419),cc=a.n(wu),Ys=a(59340),Ya=a.n(Ys),dc=a(2991),er=a.n(dc),Cu=a(86902),Qt=a.n(Cu),pc=a(77766),gt=a.n(pc),hi=a(26295),Ja=a.n(hi),Js=a(20116),gn=a.n(Js),vi=a(31905),Zi=a(92495),Xa=a.n(Zi),hc=a(93320),Xs=a.n(hc),vc=a(78718),jo=a.n(vc),Qs=a(23560),ni=a.n(Qs),Jn=a(88996);function Uo(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function Zs(t,r){for(var i=0;i<r.length;i++){var o=r[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Ga(t,o.key,o)}}function qs(t,r,i){return r&&Zs(t.prototype,r),i&&Zs(t,i),t}var Eu=a(83863),Ou=a(79542),_s=a(24889);function qi(t){return qi=Ou?_s:function(i){return i.__proto__||_s(i)},qi(t)}function Qa(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&(t=qi(t),t!==null););return t}function Za(t,r,i){return typeof Reflect!="undefined"&&Eu?Za=Eu:Za=function(s,d,g){var A=Qa(s,d);if(!!A){var x=Do(A,d);return x.get?x.get.call(g):x.value}},Za(t,r,i||t)}var Tu=a(189);function qa(t,r){return qa=Ou||function(o,s){return o.__proto__=s,o},qa(t,r)}function Vo(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Tu(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&qa(t,r)}var _a=a(13535);function Wo(){if(typeof Reflect=="undefined"||!_a||_a.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_a(Boolean,[],function(){})),!0}catch(t){return!1}}function Xn(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Pu(t,r){return r&&(lr(r)==="object"||typeof r=="function")?r:Xn(t)}function el(t){var r=Wo();return function(){var o=qi(t),s;if(r){var d=qi(this).constructor;s=_a(o,arguments,d)}else s=o.apply(this,arguments);return Pu(this,s)}}var tl=a(94473),Iu=a.n(tl),Fu=a(57514),rl=a.n(Fu),gc=function(r){var i=function(d,g){return{name:d,value:g}};if(ni()(r.prototype.set)||ni()(r.prototype.get)||ni()(r.prototype.getAll)||ni()(r.prototype.has))return r;var o=function(s){Vo(g,s);var d=el(g);function g(A){var x;return Uo(this,g),x=d.call(this,A),x.entryList=[],x}return qs(g,[{key:"append",value:function(x,w,F){return this.entryList.push(i(x,w)),Za(qi(g.prototype),"append",this).call(this,x,w,F)}},{key:"set",value:function(x,w){var F,H=i(x,w);this.entryList=gn()(F=this.entryList).call(F,function(re){return re.name!==x}),this.entryList.push(H)}},{key:"get",value:function(x){var w,F=Iu()(w=this.entryList).call(w,function(H){return H.name===x});return F===void 0?null:F}},{key:"getAll",value:function(x){var w,F;return er()(w=gn()(F=this.entryList).call(F,function(H){return H.name===x})).call(w,function(H){return H.value})}},{key:"has",value:function(x){return this.entryList.some(function(w){return w.name===x})}}]),g}(r);return o};const yc=gc(rl());function mc(t){if(Hs(t))return Gs(t)}function _i(t){if(typeof Xi!="undefined"&&Ws(t)!=null||t["@@iterator"]!=null)return zs(t)}function ma(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
78
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dn(t){return mc(t)||_i(t)||$s(t)||ma()}var nl=a(3649),Nn=a.n(nl),ku=a(88996),il=ku.Buffer,ea=function(r){return":/?#[]@!$&'()*+,;=".indexOf(r)>-1},ta=function(r){return/^[a-z0-9\-._~]+$/i.test(r)};function Nr(t){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.escape,s=arguments.length>2?arguments[2]:void 0;return typeof t=="number"&&(t=t.toString()),typeof t!="string"||!t.length||!o?t:s?JSON.parse(t):er()(r=Dn(t)).call(r,function(d){var g,A;if(ta(d)||ea(d)&&o==="unsafe")return d;var x=er()(g=er()(A=il.from(d).toJSON().data||[]).call(A,function(w){var F;return Nn()(F="0".concat(w.toString(16).toUpperCase())).call(F,-2)})).call(g,function(w){return"%".concat(w)}).join("");return x}).join("")}function ii(t){var r=t.value;return Array.isArray(r)?Mi(t):lr(r)==="object"?Ho(t):xc(t)}function Mi(t){var r=t.key,i=t.value,o=t.style,s=t.explode,d=t.escape,g=function(H){return Nr(H,{escape:d})};if(o==="simple")return er()(i).call(i,function(F){return g(F)}).join(",");if(o==="label")return".".concat(er()(i).call(i,function(F){return g(F)}).join("."));if(o==="matrix")return er()(i).call(i,function(F){return g(F)}).reduce(function(F,H){var re;if(!F||s){var ee,se;return gt()(ee=gt()(se="".concat(F||"",";")).call(se,r,"=")).call(ee,H)}return gt()(re="".concat(F,",")).call(re,H)},"");if(o==="form"){var A=s?"&".concat(r,"="):",";return er()(i).call(i,function(F){return g(F)}).join(A)}if(o==="spaceDelimited"){var x=s?"".concat(r,"="):"";return er()(i).call(i,function(F){return g(F)}).join(" ".concat(x))}if(o==="pipeDelimited"){var w=s?"".concat(r,"="):"";return er()(i).call(i,function(F){return g(F)}).join("|".concat(w))}}function Ho(t){var r=t.key,i=t.value,o=t.style,s=t.explode,d=t.escape,g=function(w){return Nr(w,{escape:d})},A=Qt()(i);if(o==="simple")return A.reduce(function(x,w){var F,H,re,ee=g(i[w]),se=s?"=":",",de=x?"".concat(x,","):"";return gt()(F=gt()(H=gt()(re="".concat(de)).call(re,w)).call(H,se)).call(F,ee)},"");if(o==="label")return A.reduce(function(x,w){var F,H,re,ee=g(i[w]),se=s?"=":".",de=x?"".concat(x,"."):".";return gt()(F=gt()(H=gt()(re="".concat(de)).call(re,w)).call(H,se)).call(F,ee)},"");if(o==="matrix"&&s)return A.reduce(function(x,w){var F,H,re=g(i[w]),ee=x?"".concat(x,";"):";";return gt()(F=gt()(H="".concat(ee)).call(H,w,"=")).call(F,re)},"");if(o==="matrix")return A.reduce(function(x,w){var F,H,re=g(i[w]),ee=x?"".concat(x,","):";".concat(r,"=");return gt()(F=gt()(H="".concat(ee)).call(H,w,",")).call(F,re)},"");if(o==="form")return A.reduce(function(x,w){var F,H,re,ee,se=g(i[w]),de=x?gt()(F="".concat(x)).call(F,s?"&":","):"",pe=s?"=":",";return gt()(H=gt()(re=gt()(ee="".concat(de)).call(ee,w)).call(re,pe)).call(H,se)},"")}function xc(t){var r=t.key,i=t.value,o=t.style,s=t.escape,d=function(x){return Nr(x,{escape:s})};if(o==="simple")return d(i);if(o==="label")return".".concat(d(i));if(o==="matrix"){var g;return gt()(g=";".concat(r,"=")).call(g,d(i))}if(o==="form")return d(i);if(o==="deepObject")return d(i,{},!0)}var zo={serializeRes:Mu,mergeInQueryOrForm:Ru};function Li(t){return Go.apply(this,arguments)}function Go(){return Go=Ks(ur().mark(function t(r){var i,o,s,d,g,A=arguments;return ur().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(i=A.length>1&&A[1]!==void 0?A[1]:{},lr(r)==="object"&&(i=r,r=i.url),i.headers=i.headers||{},zo.mergeInQueryOrForm(i),i.headers&&Qt()(i.headers).forEach(function(F){var H=i.headers[F];typeof H=="string"&&(i.headers[F]=H.replace(/\n+/g," "))}),!i.requestInterceptor){w.next=12;break}return w.next=8,i.requestInterceptor(i);case 8:if(w.t0=w.sent,w.t0){w.next=11;break}w.t0=i;case 11:i=w.t0;case 12:return o=i.headers["content-type"]||i.headers["Content-Type"],/multipart\/form-data/i.test(o)&&(delete i.headers["content-type"],delete i.headers["Content-Type"]),w.prev=14,w.next=17,(i.userFetch||fetch)(i.url,i);case 17:return s=w.sent,w.next=20,zo.serializeRes(s,r,i);case 20:if(s=w.sent,!i.responseInterceptor){w.next=28;break}return w.next=24,i.responseInterceptor(s);case 24:if(w.t1=w.sent,w.t1){w.next=27;break}w.t1=s;case 27:s=w.t1;case 28:w.next=39;break;case 30:if(w.prev=30,w.t2=w.catch(14),s){w.next=34;break}throw w.t2;case 34:throw d=new Error(s.statusText),d.status=s.status,d.statusCode=s.status,d.responseError=w.t2,d;case 39:if(s.ok){w.next=45;break}throw g=new Error(s.statusText),g.status=s.status,g.statusCode=s.status,g.response=s,g;case 45:return w.abrupt("return",s);case 46:case"end":return w.stop()}},t,null,[[14,30]])})),Go.apply(this,arguments)}var al=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return/(json|xml|yaml|text)\b/.test(r)};function $o(t,r){return r&&(r.indexOf("application/json")===0||r.indexOf("+json")>0)?JSON.parse(t):Xs().safeLoad(t)}function Mu(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.loadSpec,s=o===void 0?!1:o,d={ok:t.ok,url:t.url||r,status:t.status,statusText:t.statusText,headers:sl(t.headers)},g=d.headers["content-type"],A=s||al(g),x=A?t.text:t.blob||t.buffer;return x.call(t).then(function(w){if(d.text=w,d.data=w,A)try{var F=$o(w,g);d.body=F,d.obj=F}catch(H){d.parseError=H}return d})}function ol(t){var r=Bo()(t).call(t,", ");return r?t.split(", "):t}function sl(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return ni()(Au()(t))?cc()(Au()(t).call(t)).reduce(function(r,i){var o=fn(i,2),s=o[0],d=o[1];return r[s]=ol(d),r},{}):{}}function eo(t,r){return!r&&typeof navigator!="undefined"&&(r=navigator),r&&r.product==="ReactNative"?!!(t&&lr(t)==="object"&&typeof t.uri=="string"):typeof File!="undefined"&&t instanceof File||typeof Blob!="undefined"&&t instanceof Blob||typeof Jn.Buffer!="undefined"&&t instanceof Jn.Buffer?!0:t!==null&&lr(t)==="object"&&typeof t.pipe=="function"}function Ko(t,r){return Array.isArray(t)&&t.some(function(i){return eo(i,r)})}var xa={form:",",spaceDelimited:"%20",pipeDelimited:"|"},Yo={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function ll(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=r.collectionFormat,s=r.allowEmptyValue,d=r.serializationOption,g=r.encoding,A=lr(r)==="object"&&!Array.isArray(r)?r.value:r,x=i?function(H){return H.toString()}:function(H){return encodeURIComponent(H)},w=x(t);if(typeof A=="undefined"&&s)return[[w,""]];if(eo(A)||Ko(A))return[[w,A]];if(d)return to(t,A,i,d);if(g){if([lr(g.style),lr(g.explode),lr(g.allowReserved)].some(function(H){return H!=="undefined"}))return to(t,A,i,jo()(g,["style","explode","allowReserved"]));if(g.contentType){if(g.contentType==="application/json"){var F=typeof A=="string"?A:Ya()(A);return[[w,x(F)]]}return[[w,x(A.toString())]]}return lr(A)!=="object"?[[w,x(A)]]:Array.isArray(A)&&A.every(function(H){return lr(H)!=="object"})?[[w,er()(A).call(A,x).join(",")]]:[[w,x(Ya()(A))]]}return lr(A)!=="object"?[[w,x(A)]]:Array.isArray(A)?o==="multi"?[[w,er()(A).call(A,x)]]:[[w,er()(A).call(A,x).join(Yo[o||"csv"])]]:[[w,""]]}function to(t,r,i,o){var s,d=o.style||"form",g=typeof o.explode=="undefined"?d==="form":o.explode,A=i?!1:o&&o.allowReserved?"unsafe":"reserved",x=function(ee){return Nr(ee,{escape:A})},w=i?function(re){return re}:function(re){return Nr(re,{escape:A})};if(lr(r)!=="object")return[[w(t),x(r)]];if(Array.isArray(r))return g?[[w(t),er()(r).call(r,x)]]:[[w(t),er()(r).call(r,x).join(xa[d])]];if(d==="deepObject"){var F;return er()(F=Qt()(r)).call(F,function(re){var ee;return[w(gt()(ee="".concat(t,"[")).call(ee,re,"]")),x(r[re])]})}if(g){var H;return er()(H=Qt()(r)).call(H,function(re){return[w(re),x(r[re])]})}return[[w(t),er()(s=Qt()(r)).call(s,function(re){var ee;return[gt()(ee="".concat(w(re),",")).call(ee,x(r[re]))]}).join(",")]]}function bc(t){return Ja()(t).reduce(function(r,i){var o=fn(i,2),s=o[0],d=o[1],g=Qi(ll(s,d,!0)),A;try{for(g.s();!(A=g.n()).done;){var x=fn(A.value,2),w=x[0],F=x[1];if(Array.isArray(F)){var H=Qi(F),re;try{for(H.s();!(re=H.n()).done;){var ee=re.value;r.append(w,ee)}}catch(se){H.e(se)}finally{H.f()}}else r.append(w,F)}}catch(se){g.e(se)}finally{g.f()}return r},new yc)}function Lu(t){var r=Qt()(t).reduce(function(i,o){var s=Qi(ll(o,t[o])),d;try{for(s.s();!(d=s.n()).done;){var g=fn(d.value,2),A=g[0],x=g[1];i[A]=x}}catch(w){s.e(w)}finally{s.f()}return i},{});return Xa().stringify(r,{encode:!1,indices:!1})||""}function Ru(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.url,i=r===void 0?"":r,o=t.query,s=t.form,d=function(){for(var xe=arguments.length,ve=new Array(xe),we=0;we<xe;we++)ve[we]=arguments[we];var Ne=gn()(ve).call(ve,function(Fe){return Fe}).join("&");return Ne?"?".concat(Ne):""};if(s){var g=Qt()(s).some(function(pe){var xe=s[pe].value;return eo(xe)||Ko(xe)}),A=t.headers["content-type"]||t.headers["Content-Type"];g||/multipart\/form-data/i.test(A)?t.body=bc(t.form):t.body=Lu(s),delete t.form}if(o){var x=i.split("?"),w=fn(x,2),F=w[0],H=w[1],re="";if(H){var ee=Xa().parse(H),se=Qt()(o);se.forEach(function(pe){return delete ee[pe]}),re=Xa().stringify(ee,{encode:!0})}var de=d(re,Lu(o));t.url=F+de,delete t.query}return t}function ul(t,r,i){return i=i||function(o){return o},r=r||function(o){return o},function(o){return typeof o=="string"&&(o={url:o}),zo.mergeInQueryOrForm(o),o=r(o),i(t(o))}}var fl=a(51942),cn=a.n(fl),ro=a(93476),ra=a.n(ro),Jo=a(92762),Du=a.n(Jo),no=a(13311),Nu=a.n(no),na=a(50308),ba=a.n(na);/*!
75
+ `+de)}else F[0]=re+" "+F[0]}function o(F,W){if(F[0]=(W.useColors?"%c":"")+W.namespace,!!W.useColors){var re="color: "+W.color,ee=0,le=0;F[0].replace(/%[a-zA-Z%]/g,function(de){de!=="%%"&&(ee++,de==="%c"&&(le=ee))}),F.splice(le,0,re)}}var s=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function d(){var F;try{F=localStorage.getItem("debug")}catch(W){}return!F&&typeof process!="undefined"&&"env"in process&&(F={}.DEBUG),{namespaces:F||"",colors:s,useColors:!0,formatArgs:o}}function y(){return{namespaces:{}.DEBUG||"",colors:[6,2,3,4,5,1],useColors:!0,formatArgs:i}}function A(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,W=arguments.length>1?arguments[1]:void 0;return function(){for(var re=arguments.length,ee=new Array(re),le=0;le<re;le++)ee[le]=arguments[le];F&&ee.unshift(F);var de=W.namespaces.split(",").map(function(we){return we[we.length-1]==="*"?new RegExp("^"+we.slice(0,we.length-1)+".*$"):new RegExp("^"+we+"$")}),he=de.some(function(we){return we.test(F)}),xe={color:r(F,W.colors),namespace:F,useColors:W.useColors};if(!1)var ve}}function x(F){return A(F,y())}function w(F){return A(F,d())}typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?t.exports=w:t.exports=x}),Ce=Te("informed:ObjMap "),Xe=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return String.prototype.replace.call(r,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean)},He=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,s=String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(d,y){return d!=null?d[y]:d},r);return s===void 0||s===r?o:s},Je=function(r){return".".concat(r).replace(/(.*)[.[].*/,"$1").replace(/\./,"")},ut=function(r){return r.replace(Je(r),"").replace(/\./,"")},ft=function(r,i){var o=Je(i),s=ut(i),d=o?He(r,o):r;return!!(d&&Object.hasOwnProperty.call(d,s.replace(/\[(.*)\]/,"$1")))},yt=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0;String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,d,y,A){return y===A.length-1?(s[d]=o,s[d]):s[d]===void 0?(Number.isInteger(+A[y+1])?s[d]=[]:s[d]={},s[d]):(Number.isInteger(+A[y+1])&&!Array.isArray(s[d])&&(s[d]=[]),s[d])},r)},Qe=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=!1;return String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,d,y,A){return s===void 0?s:(y===A.length-1&&(delete s[d],o=!0),s[d])},r),o},nt=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o;return String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,d,y,A){return s===void 0?s:(y===A.length-1&&Array.isArray(s)&&(o=s.splice(d,1)),s[d])},r),o},ct=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=Object.keys(r);return i.map(function(o){return r[o]})},dt=function(r){var i=Xe(r);return Number.isInteger(+i[i.length-1])},st=function(){function t(){b(this,t)}return S(t,null,[{key:"empty",value:function(i){return ct(i).length===0}},{key:"get",value:function(i,o){var s=He(i,o);return s}},{key:"has",value:function(i,o){return ft(i,o)}},{key:"set",value:function(i,o,s){if(s!==void 0)Ce("SETTING",o,s),yt(i,o,s);else if(dt(o)&&t.get(i,o)!==void 0){Ce("Special case SETTING",o,"to undefined"),yt(i,o,void 0);var d=Xe(o);d=d.slice(0,d.length-1),Ot(i,d)}else!dt(o)&&t.get(i,o)!==void 0&&(Ce("Special case REMOVING",o,"from object completley"),t.delete(i,o))}},{key:"delete",value:function(i,o){Ce("DELETE",o),dt(o)?(Ce("ARRAY",o),this.pullOut(i,o)):Qe(i,o);var s=Xe(o);s=s.slice(0,s.length-1),Ot(i,s)}},{key:"pullOut",value:function(i,o){var s=Xe(o),d=s[s.length-1];s=s.slice(0,s.length-1),Ce("Pulling out:",s,"index",d);var y=He(i,s);Ce("Array",y),Array.isArray(y)&&nt(y,d),Ot(i,s)}}]),t}();function Ot(t,r){if(r.length!==0){var i=He(t,r);(Array.isArray(i)?i.every(function(o){return o==null}):JSON.stringify(i)==="{}")&&Qe(t,r),Ot(t,r.slice(0,r.length-1))}}var Et=h.createContext({register:function(){},deregister:function(){},setValue:function(){},setTouched:function(){},setError:function(){},update:function(){},getField:function(){},expectRemoval:function(){},getInitialValue:function(){},getSavedValue:function(){}}),St=h.createContext({}),Ut=h.createContext({getFullField:function(){},getValues:function(){},getOptions:function(){return{}},setInitialValue:function(){},getInitialValue:function(){},getDerrivedValue:function(){},getSavedValue:function(){},removeSavedState:function(){}}),Dt=h.createContext(),Nt=h.createContext(),mt=h.createContext(),It=h.createContext(),ht=h.createContext(),zt=h.createContext(),Kt=h.createContext(),sr=h.createContext();function Mt(){var t=(0,h.useContext)(Ut);return t}function Wt(t){var r=(0,h.useRef)(),i=(0,h.useRef)(!0),o=(0,h.useState)(t),s=X(o,2),d=s[0],y=s[1];r.current=d;var A=function(F){r.current=F,i.current&&y(F)},x=function(){return r.current};return(0,h.useEffect)(function(){return function(){i.current=!1}},[]),[d,A,x]}var Bt=function(r){return r.type&&r.type.name?r.type.name:r.displayName||r.name||"Component"},k=function(r){var i={};if(r.inner){if(r.inner.length===0){st.set(i,r.path,r.message);return}var o=Oe(r.inner),s;try{for(o.s();!(s=o.n()).done;){var d=s.value;st.get(i,d.path)||st.set(i,d.path,d.message)}}catch(y){o.e(y)}finally{o.f()}}return i},Be=function(r,i){try{r.validateSync(i,{abortEarly:!1})}catch(s){var o=k(s);return o}},$=function(r){if(r.inner){if(r.inner.length===0)return;var i=r.inner[0];return i.message}},O=function(r,i){try{r.validateSync(i,{abortEarly:!1})}catch(o){return $(o)}},T=function(r,i){r(i);var o={};return r.errors&&r.errors.forEach(function(s){var d=s.message,y=s.dataPath,A=s.keyword,x=s.params,w=y;A==="required"&&(w="".concat(w,".").concat(x.missingProperty)),w=w.replace(".",""),st.set(o,w,d)}),o},oe=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){var i=Math.random()*16|0,o=r=="x"?i:i&3|8;return o.toString(16)})},D=function(r,i){var o;return function(){for(var d=arguments.length,y=new Array(d),A=0;A<d;A++)y[A]=arguments[A];var x=function(){clearTimeout(o),r.apply(void 0,y)};clearTimeout(o),o=setTimeout(x,i)}},_=function(r,i,o){var s=i["ui:control"],d=i["informed:props"],y=i["input:props"],A=i["ui:before"],x=i["ui:after"],w=i.oneOf,F=i.items,W=i.enum,re=i.title,ee=i.minimum,le=i.maximum,de=i.minLength,he=i.maxLength,xe=i.pattern,ve=i.type,we=i.properties,Ne=oe();y&&y.id&&(Ne=y.id);var Fe={componentType:s,field:o?"".concat(o,".").concat(r):r,type:ve,uiBefore:A,uiAfter:x,properties:ve==="object"?we:void 0,items:ve==="array"?F:void 0,props:U(U({label:re,id:Ne,min:ee,max:le,minLength:de,maxLength:he,pattern:xe},d),y)};if(w){var je=i.oneOf.map(function(De){var Ve=De["input:props"],Ke=Ve===void 0?{}:Ve;return U({value:De.const,label:De.title},Ke)});Fe.props.options=je}if(W){var ke=i.enum.map(function(De){return{value:De,label:De}});Fe.props.options=ke}if(F&&F.oneOf){var Me=F.oneOf.map(function(De){var Ve=De["input:props"],Ke=Ve===void 0?{}:Ve;return U({value:De.const,label:De.title},Ke)});Fe.props.options=Me}return Fe},fe=function(r,i,o){if(!r||i)return[];var s=r.properties,d=s===void 0?{}:s,y=r.allOf,A=r.propertyOrder,x=A===void 0?[]:A;if(Object.keys(d).length>0){var w=Object.keys(d).sort(function(F,W){var re=x.indexOf(F),ee=x.indexOf(W);return(re>-1?re:x.length+1)-(ee>-1?ee:x.length+1)}).map(function(F){var W=d[F],re=_(F,W,o);return re});return y&&w.push({componentType:"conditionals",allOf:y}),w}return[]},te=function(r){var i=r.replace(/\./g,".properties.").replace(/\[/g,".itmes[");return i="properties.".concat(i),i},ce=function(r,i){if(typeof r=="string")return r.split("").map(function(o){return o==="#"?/\d/:o==="*"?/[\w]/:o});if(typeof r=="function")return r(i);if(Array.isArray(r))return r;throw new Error("Formatter must be string, array, or function")},be=function(r,i){for(var o=0,s=-1,d=!0;d&&o<r.length;)r[o]==i[o]?s=o:d=!1,o=o+1;return s},Le=function(r,i){if(!r)return{val:r,offset:0};var o="".concat(r),s=ce(i,o),d=s.findIndex(function(he){return typeof he!="string"}),y=s.length-z(s).reverse().findIndex(function(he){return typeof he!="string"}),A=[],x=o.split(""),w=0,F=0,W=be(s.slice(0,d),x.slice(0,d));W>-1&&(w=W+1,A=A.concat(s.slice(0,W+1)),F=W+1),W<0&&(A=A.concat(s.slice(0,d)),F=d);for(var re=F;re<s.length;re++){var ee=s[re];if(w!=x.length){var le=x[w];if(typeof ee=="function")A.push(ee(le)),w=w+1;else{var de=typeof ee=="string"?ee===le:ee.test(le);de&&typeof ee=="string"?(A.push(ee),w=w+1):!de&&typeof ee=="string"?w!=x.length&&A.push(ee):de&&typeof ee!="string"?(A.push(le),w=w+1):!de&&typeof ee!="string"&&(w=w+1,re=re-1)}}else if(typeof ee=="string"&&re>=y)A.push(ee);else break}return{value:A.join(""),offset:o?A.length-o.length:0}},Re=function(r,i){var o,s,d=new Intl.NumberFormat(r,i),y=new Intl.NumberFormat(r),A=(o=(s=y.formatToParts(.1).find(function(he){var xe=he.type;return xe==="decimal"}))===null||s===void 0?void 0:s.value)!==null&&o!==void 0?o:".";function x(he,xe){return he instanceof RegExp&&xe instanceof RegExp&&he.source===xe.source&&he.global===xe.global&&he.ignoreCase===xe.ignoreCase&&he.multiline===xe.multiline}function w(he,xe){for(var ve=he.length;ve--;)if(xe(he[ve]))return ve;return-1}function F(he,xe,ve){var we=z(he);return Array.isArray(ve)?we.splice.apply(we,[xe,0].concat(z(ve))):we.splice(xe,0,ve),we}function W(he){return"".concat(he).replace(/\D/g,"")}function re(he){return"".concat(he).split(A).map(function(xe){return W(xe)}).join(".")}function ee(he){if(typeof he=="number")return he;var xe=parseFloat(re(he));return Number.isNaN(xe)?void 0:xe}function le(he){var xe=re(he),ve="".concat(xe).split(".")[1],we=d.formatToParts(Number(xe));ve==="0"&&we.push({type:"decimal",value:A},{type:"fraction",value:ve});var Ne=we.reduce(function(ke,Me){var De=Me.type,Ve=Me.value;return["decimal","fraction"].includes(De)&&ve==null?ke:["integer","fraction"].includes(De)?[].concat(z(ke),z(Ve.split("").filter(function(Ke,Ze){return De==="fraction"?Ze<ve.length:!0}).map(function(){return/\d/}))):De==="currency"?[].concat(z(ke),z(Ve.split(""))):[].concat(z(ke),[Ve])},[]),Fe=w(Ne,function(ke){return x(ke,/\d/)});Ne.indexOf(A)===-1&&"".concat(he).indexOf(A)!==-1&&(Ne=F(Ne,Fe+1,[A,"[]"]),Fe+=2);var je=Ne.slice(Fe+1).join("");return Ne=[].concat(z(Ne.slice(0,Fe+1)),[je]),Ne}var de=function(xe){if(xe!=null)return ee(xe)};return{formatter:le,parser:de}},We=Object.freeze({__proto__:null,getChildDisplayName:Bt,yupToFormErrors:k,validateYupSchema:Be,yupToFormError:$,validateYupField:O,validateAjvSchema:T,uuidv4:oe,debounce:D,computeFieldFromProperty:_,computeFieldsFromSchema:fe,getSchemaPathFromJsonPath:te,informedFormat:Le,createIntlNumberFormatter:Re}),ot=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?h.useLayoutEffect:h.useEffect,vt=function(r){var i=r.value,o=r.inputRef,s=r.maintainCursor,d=s===void 0?!0:s,y=Wt(0),A=X(y,3),x=A[0],w=A[1],F=A[2],W=Wt(0),re=X(W,3),ee=re[0],le=re[1],de=re[2];return ot(function(){if(o.current!=null&&F()){var he=F()+de();de()!=0&&d?o.current.setSelectionRange(he+1,he+1):d&&o.current.setSelectionRange(he,he)}},[i]),{setCursorOffset:le,setCursor:w,cursor:x,getCursor:F,cursorOffset:ee}},Ft=function(r,i){var o=(0,h.useRef)(!0),s=o.current;(0,h.useEffect)(function(){if(s)o.current=!1;else return r()},i)},At=Te("informed:useField "),bn=function(r,i,o,s,d){if(r!=null){if(d)return d(r);if(i)return i(r);if(o&&!s){var y=Le(r,o);return y.value}return r}},zr=function(r,i,o,s){if(i&&o)return i(r);if(s){var d=Le(r,s);return d.value}return r},Fr=function(r,i,o){var s=o.required;if(r||i)return function(d,y){if(i)return O(i,d);if(r)return r(d,y)};if(s)return function(d){return Sn(d,s)}},Ei=function(r){var i=r.fieldType,o=r.setValue,s=r.onChange,d=r.multiple,y=r.ref,A=function(w){return o(w)};return(i==="text"||i==="textArea"||i==="number")&&(A=function(w){return o(w.target.value,w)}),i==="select"&&(A=function(){var w=Array.from(y.current).filter(function(F){return F.selected}).map(function(F){return F.value});o(d?w:w[0]||"")}),i==="checkbox"&&(A=function(w){o(w.target.checked),s&&s(w)}),function(x){A(x)}},Qr=function(r){var i=r.setTouched,o=r.onBlur;return function(s){i(!0),o&&o(s)}},$i=function(r){var i=r.fieldType,o=r.maskedValue,s=r.multiple,d=r.value;switch(i){case"text":case"number":return!o&&o!==0?"":o;case"textArea":return o||"";case"select":return d||(s?[]:"");case"checkbox":return!!d;default:return d}},zn=function(r){switch(r){case"text":return r;case"number":return r;case"checkbox":return r;default:return}},Sn=function(r,i){if(i&&(r==null||r===""))return typeof i=="string"?i:"This field is required"};function Rn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,i=t.field,o=t.validate,s=t.asyncValidate,d=t.validationSchema,y=t.mask,A=t.maskWithCursorOffset,x=t.format,w=t.parse,F=t.formatter,W=t.parser,re=t.initialValue,ee=t.validateOnChange,le=t.validateOnBlur,de=t.validateOnMount,he=t.asyncValidateOnBlur,xe=t.maskOnBlur,ve=t.allowEmptyString,we=t.onValueChange,Ne=t.notify,Fe=t.keepState,je=t.maintainCursor,ke=t.debug,Me=t.shadow,De=t.step,Ve=t.fieldType,Ke=t.multiple,Ze=t.onChange,_e=t.onBlur,bt=t.formController,Rt=t.relevant,or=t.required,Dr=t.keepStateIfRelevant,Ir=t.initialize,rn=t.formatterDependencies,Er=rn===void 0?[]:rn,Hr=E(t,["field","validate","asyncValidate","validationSchema","mask","maskWithCursorOffset","format","parse","formatter","parser","initialValue","validateOnChange","validateOnBlur","validateOnMount","asyncValidateOnBlur","maskOnBlur","allowEmptyString","onValueChange","notify","keepState","maintainCursor","debug","shadow","step","fieldType","multiple","onChange","onBlur","formController","relevant","required","keepStateIfRelevant","initialize","formatterDependencies"]),In=(0,h.useState)(oe()),Yt=X(In,1),Ct=Yt[0],kt=(0,h.useContext)(Et),fr=(0,h.useContext)(sr),hn=fr||Dr,Sr=Mt(),ks=(0,h.useRef)(),ru=(0,h.useRef)(!0),Fo=(0,h.useRef)(),zi=(0,h.useRef)(!1),nu=function(){return!zi.current},Xf=function(){return zi.current};bt&&(kt=bt.updater,Sr=bt.getFormApi());var Ci=Fr(o,d,{required:or}),iu=(0,h.useState)(function(){return kt.getInitialValue(i)}),Pm=X(iu,1),Im=Pm[0],Qf=kt.getSavedValue(i),Zf,Kh;(Fe||hn)&&Qf?(At("Setting field ".concat(Yd,"'s kept state"),Qf),Zf=Qf.value,Kh=Qf.touched,Sr.removeSavedState(Yd)):re!=null?Zf=re:Zf=Im;var Fm=Wt(bn(Zf,y,F,W,Ir)),Ld=X(Fm,3),au=Ld[0],Rd=Ld[1],km=Ld[2],Mm=Wt(de?Ci(au):void 0),Dd=X(Mm,3),Yh=Dd[0],Jh=Dd[1],Lm=Dd[2],Rm=Wt(Kh),Nd=X(Rm,3),Xh=Nd[0],Dm=Nd[1],Qh=Nd[2],Nm=(0,h.useState)(function(){return zr(au,x,w,F)}),Zh=X(Nm,2),Bd=Zh[0],jd=Zh[1],qh=(0,h.useRef)();qh.current=Bd;var _h=(0,h.useRef)(re),ko=(0,h.useRef)(i),ev=(0,h.useRef)();_h.current=re,ko.current=i;var Bm=(0,h.useRef)(null),Gi=h.useMemo(function(){return r||Bm},[]),Ud=vt({value:au,inputRef:Gi,maintainCursor:!!je}),Vd=Ud.getCursor,jm=Ud.setCursor,Wd=Ud.setCursorOffset,Um=function(){return!0},Hd=function(cr){var vn=Rt||Um,Wn=Sr.getFullField(ko.current)||ko.current,Jt={path:Wn,parentPath:Wn.replace(/(.*)[.[].*/,"$1"),get:function(Hn,lu){return st.get(Hn,lu)}};return fr&&fr.relevant?vn(cr,Jt)&&fr.relevant(cr,Jt):vn(cr,Jt)},Vm=Wt(Hd(Sr.getValues())),zd=X(Vm,3),qf=zd[0],Wm=zd[1],tv=zd[2],Hm=function(cr){return fr&&fr.relevant?fr.relevant(cr):!0},zm=function(){var cr=Hd(Sr.getValues()),vn=tv();return cr!=vn&&Wm(cr),cr};(0,h.useEffect)(function(){!qf&&!Fe&&ks.current.reset()},[qf]);var ui=function(){return Me?Sr.getDerrivedValue(i):km()},ou=function(cr){var vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Wn=vn.preventUpdate;De&&Sr.getStep()<De?(At("Setting ".concat(i,"'s error to undefined as we are not at that step")),Jh(void 0),kt.setError(Ct,void 0,!Wn)):(At("Setting ".concat(i,"'s error to ").concat(cr)),Jh(cr),kt.setError(Ct,cr,!Wn))},Gd=function(cr,vn){var Wn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Jt=cr;zi.current=!0,At("Setting ".concat(i," to ").concat(Jt)),Ir&&(Jt=Ir(Jt));var Mo=Sr.getOptions(),Hn=Jt;if(Jt===""&&!ve&&!Wn.allowEmptyString&&!Mo.allowEmptyStrings&&(Jt=void 0),(t.type==="number"||Ve==="number")&&Jt!==void 0&&(Jt=+Jt),vn&&vn.target&&vn.target.selectionStart&&jm(vn.target.selectionStart),y&&!xe&&(Hn=y(Jt,Vd()),Jt=y(Jt,Vd())),A&&!xe){var lu=A(Jt,Vd());Hn=lu.value,Jt=lu.value,Wd(lu.offset)}if(x&&w&&(Jt=w(Jt),Hn=x(Jt)),F){var rv=Le(Jt,F);Wd(rv.offset),Hn=rv.value,Jt=Hn}W&&(Jt=Jt!=null?W(Jt):Jt),Ci&&ee&&!Wn.initial&&(At("Validating after change ".concat(i," ").concat(Jt)),ou(Ci(Jt,Sr.getValues()))),Rd(Jt),jd(Hn),we&&we(Jt),kt.setValue(Ct,Jt,!Wn.preventUpdate)};Ft(function(){ks.current.setValue(qh.current)},z(Er));var $d=function(cr,vn){var Wn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Jt=Wn.preventUpdate;if(At("Field ".concat(i," has been touched")),Ci&&le&&!vn&&cr&&(At("Validating after blur ".concat(i," ").concat(ui())),ou(Ci(ui(),Sr.getValues()))),s&&he&&!vn&&cr&&(At("Validating async after blur ".concat(i," ").concat(ui())),s(ui(),Sr.getValues())),y&&xe){var Mo=y(ui());Rd(Mo),jd(Mo),we&&we(Mo),kt.setValue(Ct,Mo,!Jt)}if(A&&xe){var Hn=A(ui());Wd(Hn.offset),Rd(Hn.value),jd(Hn.value),we&&we(Hn.value),kt.setValue(Ct,Hn.value,!Jt)}Dm(cr),kt.setTouched(Ct,cr,!Jt)},Gm=function(){var cr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},vn=cr.preventUpdate,Wn=bn(_h.current||kt.getInitialValue(ko.current),y,F,W,Ir);Gd(Wn,null,{initial:!0,preventUpdate:vn}),ou(de?Ci(Wn):void 0,{preventUpdate:vn}),$d(void 0,!0,{preventUpdate:vn}),zi.current=!1},$m=function(cr){Ci&&(At("Field validating ".concat(i," ").concat(ui())),ou(Ci(ui(),cr||Sr.getValues())))},Km=function(cr){s&&(At("Field async validating ".concat(i," ").concat(ui())),s(ui(),cr||Sr.getValues()))},Kd={setValue:Gd,setTouched:$d,setError:ou,reset:Gm,validate:$m,asyncValidate:Km,getValue:ui,getTouched:Qh,getError:Lm,getIsRelevant:tv,getDirty:Xf,getPristine:nu,getFieldState:function(){return{value:ui(),touched:Qh(),dirty:Xf(),pristine:nu()}},relevant:Hd,multistepRelevant:Hm,checkRelevant:zm};ks.current=Kd;var su={value:au,error:Yh,touched:Xh,maskedValue:Bd,isRelevant:qf,dirty:zi.current,pristine:!zi.current};Me&&(su={error:Yh,touched:Xh}),At("Render",Sr.getFullField(i),su),ot(function(){var sn=Sr.getFullField(ko.current);return At("Register",Ct,ko.current),Fo.current={field:sn,fieldId:Ct,fieldApi:Kd,fieldState:su,notify:Ne,keepState:Fe,inMultistep:hn,shadow:Me},kt.register(Ct,Fo.current),function(){var cr=Sr.getFullField(ko.current);At("Deregister",Ct,cr),kt.deregister(Ct)}},[]),(0,h.useEffect)(function(){var sn=Sr.getFullField(i);return ru.current?ru.current=!1:(At("Update",i,hn),Fo.current.field=sn,kt.update(Ct,Fo.current,ev.current)),function(){ev.current=sn}},[i]),ot(function(){ke&&Gi&&(Gi.current.style.border="5px solid orange",setTimeout(function(){Gi.current.style.borderWidth="2px",Gi.current.style.borderStyle="inset",Gi.current.style.borderColor="initial",Gi.current.style.borderImage="initial"},500))});var Ym=[].concat(z(Object.values(su)),z(Object.values(t)),z(Object.values(Hr))),Jm=function(cr){return(0,h.useMemo)(function(){return qf?cr:null},z(Ym))},Yd=i,Xm=Ei({fieldType:Ve,setValue:Gd,onChange:Ze,multiple:Ke,ref:Gi}),Qm=Qr({setTouched:$d,onBlur:_e}),Zm=$i({fieldType:Ve,maskedValue:Bd,multiple:Ke,value:au}),qm=zn(Ve);return{fieldState:su,fieldApi:Kd,render:Jm,ref:Gi,userProps:U(U({},Hr),{},{multiple:Ke,onChange:Ze,onBlur:_e,id:Hr.id||Ct}),informed:U({name:Yd,multiple:Ke,onChange:Xm,onBlur:Qm,value:Zm,ref:Gi,type:qm,id:Hr.id||Ct},Hr)}}var Zr=function(r){var i=h.forwardRef(function(o,s){var d=Rn(o,s),y=d.fieldState,A=d.fieldApi,x=d.render,w=d.ref,F=d.userProps;return x(h.createElement(r,N({fieldApi:A,fieldState:y,field:o.field,forwardedRef:w,debug:o.debug,type:o.type},F)))});return i.displayName="asField(".concat(Bt(r),")"),i},Oi=Te("informed:Text "),Ti=function(r){var i=r.fieldApi,o=r.fieldState,s=E(r,["fieldApi","fieldState"]),d=o.maskedValue,y=i.setValue,A=i.setTouched,x=s.onChange,w=s.onBlur,F=s.field,W=s.initialValue,re=s.forwardedRef,ee=s.debug,le=s.label,de=s.title,he=s.id,xe=E(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","title","id"]);return Oi("Render",F),ot(function(){ee&&re&&(re.current.style.background="red",setTimeout(function(){re.current.style.background="white"},500))}),h.createElement(h.Fragment,null,le?h.createElement("label",{htmlFor:he}," ",le," "):null,h.createElement("input",N({},xe,{id:he,name:F,ref:re,value:!d&&d!==0?"":d,onChange:function(we){y(we.target.value,we),x&&x(we)},onBlur:function(we){A(!0),w&&w(we)}})))},ln=Zr(Ti),An=function(r){var i=r.fieldApi,o=r.fieldState,s=E(r,["fieldApi","fieldState"]),d=o.maskedValue,y=i.setValue,A=i.setTouched,x=s.onChange,w=s.onBlur,F=s.field,W=s.initialValue,re=s.forwardedRef,ee=s.debug,le=s.label,de=s.id,he=E(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","id"]);return ot(function(){ee&&re&&(re.current.style.background="red",setTimeout(function(){re.current.style.background="white"},500))}),h.createElement(h.Fragment,null,le?h.createElement("label",{htmlFor:de}," ",le," "):null,h.createElement("textarea",N({},he,{id:de,name:F,ref:re,value:d||"",onChange:function(ve){y(ve.target.value,ve),x&&x(ve)},onBlur:function(ve){A(!0),w&&w(ve)}})))},Gn=Zr(An),$n=Te("informed:Select "),wn=function(r){var i=r.fieldApi,o=r.fieldState,s=E(r,["fieldApi","fieldState"]),d=o.value,y=i.setTouched,A=s.onChange,x=s.onBlur,w=s.field,F=s.initialValue,W=s.options,re=s.children,ee=s.forwardedRef,le=s.debug,de=s.multiple,he=s.label,xe=s.id,ve=E(s,["onChange","onBlur","field","initialValue","options","children","forwardedRef","debug","multiple","label","id"]),we=(0,h.useRef)(),Ne=function(je){var ke=Array.from((ee||we).current).filter(function(Me){return Me.selected}).map(function(Me){return Me.value});i.setValue(de?ke:ke[0]||""),A&&je&&A(je)};return ot(function(){le&&ee&&(ee.current.style.background="red",setTimeout(function(){ee.current.style.background="white"},500))}),$n("Render",w,d),h.createElement(h.Fragment,null,he?h.createElement("label",{htmlFor:xe}," ",he," "):null,h.createElement("select",N({},ve,{id:xe,multiple:de,name:w,ref:ee||we,value:d||(de?[]:""),onChange:Ne,onBlur:function(je){y(!0),x&&x(je)}}),W?W.map(function(Fe){return h.createElement("option",{key:Fe.value,value:Fe.value,disabled:Fe.disabled},Fe.label)}):re))},ei=Zr(wn),Pi=function(r){var i=r.fieldApi,o=r.fieldState,s=E(r,["fieldApi","fieldState"]),d=o.value,y=i.setValue,A=i.setTouched,x=s.onChange,w=s.onBlur,F=s.field,W=s.initialValue,re=s.debug,ee=s.forwardedRef,le=s.id,de=s.label,he=E(s,["onChange","onBlur","field","initialValue","debug","forwardedRef","id","label"]);return h.createElement(h.Fragment,null,de?h.createElement("label",{htmlFor:le}," ",de," "):null,h.createElement("input",N({},he,{id:le,name:F,ref:ee,checked:!!d,onChange:function(ve){y(ve.target.checked),x&&x(ve)},onBlur:function(ve){A(!0),w&&w(ve)},type:"checkbox"})))},Gr=Zr(Pi),qr=function(r){return h.forwardRef(function(i,o){return h.createElement(Dt.Consumer,null,function(s){var d=s.radioGroupApi,y=s.radioGroupState;return h.createElement(r,N({radioGroupApi:d,radioGroupState:y,ref:o},i))})})},ti=function(r){var i=r.radioGroupApi,o=r.radioGroupState,s=E(r,["radioGroupApi","radioGroupState"]),d=o.value,y=i.setValue,A=i.setTouched,x=i.onChange,w=i.onBlur,F=s.value,W=s.onChange,re=s.onBlur,ee=s.field,le=s.initialValue,de=s.forwardedRef,he=E(s,["value","onChange","onBlur","field","initialValue","forwardedRef"]);return h.createElement("input",N({},he,{name:ee,ref:de,value:F,checked:d===F,onChange:function(ve){!ve.target.checked||(y(F),W&&W(ve),x&&x(ve))},onBlur:function(ve){A(!0),re&&re(ve),w&&w(ve)},type:"radio"}))},hr=qr(ti),xt=function(t){Q(i,t);var r=Z(i);function i(){return b(this,i),r.apply(this,arguments)}return S(i,[{key:"render",value:function(){var s=this.props,d=s.options,y=s.children;return h.createElement(Dt.Provider,{value:this.groupContext},d?d.map(function(A){return h.createElement("label",{key:A.value},A.label," ",h.createElement(hr,{value:A.value}))}):y)}},{key:"groupContext",get:function(){return{radioGroupApi:U(U({},this.props.fieldApi),{},{onChange:this.props.onChange,onBlur:this.props.onBlur}),radioGroupState:this.props.fieldState}}}]),i}(h.Component),fi=Zr(xt);function Ii(){return(0,h.useContext)(mt)}var Fn=function(){var r=Ii(),i=r.add;return h.createElement("button",{onClick:function(){i()},type:"button"},"Add")};function qt(){return(0,h.useContext)(It)}var Kn=function(){var r=qt(),i=r.remove;return h.createElement("button",{onClick:function(){i()},type:"button"},"Remove")},ri=Te("informed:useArrayField "),ya=function(r){var i=r.field,o=r.initialValue,s=r.validate,d=r.arrayFieldApiRef,y=E(r,["field","initialValue","validate","arrayFieldApiRef"]),A=Mt(),x=(0,h.useState)(new Map),w=X(x,1),F=w[0],W=(0,h.useContext)(Et),re=A.getFullField(i),ee=W.getInitialValue(i)||o||[],le=A.getSavedValue(re)&&A.getSavedValue(re).value,de=Wt(le||ee),he=X(de,3),xe=he[0],ve=he[1],we=he[2],Ne=xe?xe.map(function(){return oe()}):[],Fe=Wt(Ne),je=X(Fe,3),ke=je[0],Me=je[1],De=je[2],Ve=(0,h.useMemo)(function(){return function(Yt,Ct){var kt=De()==null?0:De().length;return s?s(Yt,kt,Ct):void 0}}),Ke=Rn(U({field:i,validate:s?Ve:void 0,shadow:!0},y)),Ze=Ke.fieldApi;ot(function(){var Yt=function(kt){kt!==re&&(ri("".concat(re," changed")),RegExp("".concat(re,"\\[[0-9]+\\]")).test(kt)&&Ze.validate())};return A.emitter.on("value",Yt),function(){A.emitter.removeListener("value",Yt)}},[i]);var _e=function(Ct){ri("EXPECTING REMOVAL OF","".concat(i,"[").concat(Ct,"] and ").concat(i,"[").concat(ke.length-1,"]")),W.expectRemoval("".concat(i,"[").concat(Ct,"]")),W.expectRemoval("".concat(i,"[").concat(ke.length-1,"]"));var kt=ke.slice(0,Ct).concat(ke.slice(Ct+1,ke.length));Me(kt);var fr=we(),hn=fr.slice(0,Ct).concat(fr.slice(Ct+1,fr.length));ve(hn)},bt=function(Ct,kt){ri("Swapping","".concat(i,"[").concat(Ct,"] and ").concat(i,"[").concat(kt,"]"));var fr=z(ke);ke[Ct]&&ke[kt]?(fr[Ct]=ke[kt],fr[kt]=ke[Ct]):console.warn("Attempted to swap ".concat(Ct," with ").concat(kt," but one of them does not exist :(")),Me(fr)},Rt=function(){ke.push(oe()),Me(z(ke))},or=function(Ct){ke.push(oe()),Me(z(ke));var kt=z(we());kt[ke.length-1]=Ct,ve(kt)},Dr=function(){var Ct=W.getInitialValue(i)||o||[];ve(Ct);var kt=Ct?Ct.map(function(){return oe()}):[];Me(kt)},Ir=ke.map(function(Yt,Ct){var kt={remove:function(){return _e(Ct)}},fr={initialValue:xe&&xe[Ct],key:Yt,field:"".concat(i,"[").concat(Ct,"]"),index:Ct};return U(U({arrayFieldItemApi:kt,arrayFieldItemState:fr},kt),fr)}),rn={add:Rt,swap:bt,addWithInitialValue:or,reset:Dr};d&&(d.current=rn);var Er={fields:Ir,field:i},Hr=U(U({},W),{},{register:function(Ct,kt){F.set(Ct,kt);for(var fr=arguments.length,hn=new Array(fr>2?fr-2:0),Sr=2;Sr<fr;Sr++)hn[Sr-2]=arguments[Sr];W.register.apply(W,[Ct,kt].concat(hn))},deregister:function(Ct){F.delete(Ct);for(var kt=arguments.length,fr=new Array(kt>1?kt-1:0),hn=1;hn<kt;hn++)fr[hn-1]=arguments[hn];W.deregister.apply(W,[Ct].concat(fr))},getInitialValue:function(Ct){if(RegExp("".concat(re,"\\[[0-9]+\\]")).test(Ct)){var kt=Ct.replace(i,""),fr=st.get(we(),kt);return ri("Resetting ".concat(kt," to ").concat(fr)),fr}return W.getInitialValue(Ct)}}),In=function(Ct){return h.createElement(Et.Provider,{value:Hr},h.createElement(mt.Provider,{value:rn},h.createElement(Nt.Provider,{value:Er},Ct)))};return{render:In,add:Rt,swap:bt,addWithInitialValue:or,fields:Ir,arrayFieldState:Er,arrayFieldApi:rn,field:i}},qe=function(r,i){return U(U({},i),{},{getValue:function(s){return i.getValue("".concat(r,".").concat(s))},getTouched:function(s){return i.getTouched("".concat(r,".").concat(s))},getError:function(s){return i.getError("".concat(r,".").concat(s))},setValue:function(s,d){return i.setValue("".concat(r,".").concat(s),d)},setTouched:function(s,d){return i.setTouched("".concat(r,".").concat(s),d)},setError:function(s,d){return i.setError("".concat(r,".").concat(s),d)},getInitialValue:function(s){return i.getInitialValue("".concat(r,".").concat(s))},getSavedValue:function(s){return i.getSavedValue("".concat(r,".").concat(s))},getFullField:function(s){return"".concat(i.getFullField(r),".").concat(s)}})};function Pt(t){var r=Mt(),i=(0,h.useMemo)(function(){return qe(t,r)},[t]);return i}function ci(){var t=(0,h.useContext)(St);return t}var ae=function(r){var i=r.when,o=r.children,s=ci(),d=i(s);return d?o:null},Ae=function(r){var i=r.relevant,o=r.field,s=E(r,["relevant","field"]),d=Mt();if(i){var y=d.getFullField(o),A={path:y,parentPath:y.replace(/(.*)[.[].*/,"$1"),get:function(F,W){return st.get(F,W)}},x=function(F){var W=F.values;return i(W,A)};return h.createElement(ae,{when:x},h.createElement(Ge,N({field:o},s)))}else return h.createElement(Ge,N({field:o},s))},Ge=function(r){var i=r.children,o=E(r,["children"]),s=ya(o),d=s.render,y=s.arrayFieldState,A=s.arrayFieldApi,x=s.field;return d(typeof i=="function"?i(U(U({field:x,arrayFieldApi:A,arrayFieldState:y},A),y)):i)},tt=function(r){var i=r.arrayFieldItemState,o=r.arrayFieldItemApi,s=r.children,d=(0,h.useContext)(Et),y=Mt(),A=(0,h.useState)(0),x=X(A,2),w=x[0],F=x[1],W=(0,h.useState)(new Map),re=X(W,1),ee=re[0],le=i.field,de=Pt(le),he=function(){var ke=y.getState(),Me=ke.values,De=ke.errors,Ve=ke.touched,Ke={values:st.get(Me,le),errors:st.get(De,le),touched:st.get(Ve,le)};return Ke};(0,h.useEffect)(function(){var je=function(Me){var De=Me.slice(0,Me.lastIndexOf("[")!=-1?Me.lastIndexOf("]")+1:Me.length);De===le&&F(Math.random())};return y.emitter.on("value",je),function(){y.emitter.removeListener("value",je)}},[le]);var xe=function(){ee.forEach(function(ke){ke.fieldApi.reset()})},ve=he(),we=U(U({},d),{},{register:function(ke,Me,De){ee.set(ke,Me),d.register(ke,Me,De)},deregister:function(ke){ee.delete(ke);for(var Me=arguments.length,De=new Array(Me>1?Me-1:0),Ve=1;Ve<Me;Ve++)De[Ve-1]=arguments[Ve];d.deregister.apply(d,[ke].concat(De))}}),Ne=U(U(U({},o),de),{},{reset:xe}),Fe=U(U({},i),ve);return typeof s=="function"?h.createElement(Et.Provider,{value:we},h.createElement(It.Provider,{value:Ne},h.createElement(ht.Provider,{value:Fe},s(U(U({arrayFieldItemApi:Ne,arrayFieldItemState:Fe},Ne),Fe))))):h.createElement(Et.Provider,{value:we},h.createElement(It.Provider,{value:Ne},h.createElement(ht.Provider,{value:Fe},s)))};Ae.Items=function(t){var r=t.children,i=(0,h.useContext)(Nt),o=i.fields;return o.map(function(s){var d=s.arrayFieldItemState,y=s.arrayFieldItemApi,A=d.key;return h.createElement(tt,{key:A,arrayFieldItemApi:y,arrayFieldItemState:d},r)})};var rt=function(r){var i=r.components,o=(0,h.useContext)(Et),s=o.fieldMap;return i?i.map(function(d,y){var A=d["ui:control"],x=s[A];return h.createElement(x,{key:"ui-comp-".concat(y)})}):null},Gt=Te("informed:FormFields "),Xt=function t(r){var i=r.schema,o=r.prefix,s=r.onlyValidateSchema,d=(0,h.useContext)(Et),y=d.fieldMap,A=(0,h.useMemo)(function(){var x=fe(i,s,o),w=x.map(function(F,W){var re=F.field,ee=F.props,le=F.type,de=F.properties,he=F.items,xe=F.componentType,ve=F.uiBefore,we=F.uiAfter,Ne=F.allOf,Fe=y[xe];return Gt("Rendering Field",re,F),!Fe&&le==="object"&&de?h.createElement(t,{schema:F,prefix:re,key:"ScheamField-".concat(W)}):!Fe&&le==="array"&&he?h.createElement(kr,N({key:"ScheamField-".concat(W),field:re,items:he,uiBefore:ve,uiAfter:we},ee)):Fe&&xe==="array"&&he&&le==="array"?h.createElement(Fe,N({key:"ScheamField-".concat(W),field:re,items:he,uiBefore:ve,uiAfter:we},ee)):xe==="conditionals"?Ne.map(function(je){var ke=je.then,Me=je.if.properties,De=function(Ke){var Ze=Ke.values;return Object.keys(Me).every(function(_e){var bt=Me[_e];return Ze[_e]===bt.const})};return h.createElement(ae,{key:"ScheamField-".concat(W),when:De},h.createElement(t,{schema:ke}))}):Fe?h.createElement(Fe,N({key:"ScheamField-".concat(W),field:re},ee)):null});return w},[i,o]);return A},kr=function(r){var i=r.field,o=r.items,s=r.uiBefore,d=r.uiAfter,y=E(r,["field","items","uiBefore","uiAfter"]);return h.createElement(Ae,N({field:i},y),h.createElement(rt,{components:s}),h.createElement(Ae.Items,null,function(A){var x=A.field;return h.createElement(h.Fragment,null,h.createElement(rt,{components:o["ui:before"]}),h.createElement(Xt,{schema:o,prefix:x}),h.createElement(rt,{components:o["ui:after"]}))}),h.createElement(rt,{components:d}))},Mr={select:ei,input:ln,textarea:Gn,checkbox:Gr,radio:fi,add:Fn,remove:Kn,array:kr},_t=Te("informed:Controller "),uu=function(r,i){var o=Object.keys(i).find(function(d){return r.includes(d)});if(!!o){var s=r.slice(0,o.length);return s===o}},un=function(){},Ms=function(){function t(){var r=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};b(this,t),this.options=i,this.subscriptions=new Map;var o=i.ajv,s=i.schema,d=i.fieldMap;this.ajv=o?new o({allErrors:!0}):null,this.ajvValidate=o?this.ajv.compile(s):null,this.fieldMap=d||Mr,this.fieldsById=new Map,this.fieldsByName={get:function(A){var x;return r.fieldsById.forEach(function(w){w&&w.field===A&&(x=w)}),x}},this.onScreen={},this.expectedRemovals={},this.pulledOut={},this.savedValues={},this.state={pristine:!0,dirty:!1,invalid:!1,submits:0,step:0,validating:0,submitting:!1,values:{},errors:{},touched:{}},this.dummyField={fieldApi:{setValue:un,setTouched:un,setError:un,reset:un,validate:un,getValue:un,getTouched:un,getError:un,getFieldState:un,checkRelevant:un,getPristine:un,getDirty:un}},this.deregister=this.deregister.bind(this),this.register=this.register.bind(this),this.getValue=this.getValue.bind(this),this.getTouched=this.getTouched.bind(this),this.getError=this.getError.bind(this),this.getErrors=this.getErrors.bind(this),this.setValue=this.setValue.bind(this),this.getValues=this.getValues.bind(this),this.getStep=this.getStep.bind(this),this.setStep=this.setStep.bind(this),this.back=this.back.bind(this),this.next=this.next.bind(this),this.setCurrent=this.setCurrent.bind(this),this.setTouched=this.setTouched.bind(this),this.setError=this.setError.bind(this),this.setFormError=this.setFormError.bind(this),this.submitForm=this.submitForm.bind(this),this.reset=this.reset.bind(this),this.update=this.update.bind(this),this.validate=this.validate.bind(this),this.screenValid=this.screenValid.bind(this),this.keyDown=this.keyDown.bind(this),this.getField=this.getField.bind(this),this.getInitialValue=this.getInitialValue.bind(this),this.setInitialValue=this.setInitialValue.bind(this),this.getOptions=this.getOptions.bind(this),this.getFormState=this.getFormState.bind(this),this.expectRemoval=this.expectRemoval.bind(this),this.getSavedValue=this.getSavedValue.bind(this),this.removeSavedState=this.removeSavedState.bind(this),this.getDerrivedValue=this.getDerrivedValue.bind(this),this.setValues=this.setValues.bind(this),this.resetField=this.resetField.bind(this),this.fieldExists=this.fieldExists.bind(this),this.validateField=this.validateField.bind(this),this.notify=this.notify.bind(this),this.validating=this.validating.bind(this),this.validated=this.validated.bind(this),this.getDirty=this.getDirty.bind(this),this.getPristine=this.getPristine.bind(this),this.on=this.on.bind(this),this.emit=this.emit.bind(this),this.removeListener=this.removeListener.bind(this),this.updater={register:this.register,deregister:this.deregister,getField:this.getField,update:this.update,fieldMap:this.fieldMap,setValue:function(A,x){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,F=r.fieldsById.get(A);F.shadow||st.set(r.state.values,F.field,F.fieldApi.getValue()),F.fieldApi.relevant(r.state.values)||st.delete(r.state.values,F.field),r.fieldsById.forEach(function(W){var re=W.fieldApi.checkRelevant();(!W.fieldApi.multistepRelevant(r.state.values)||!re&&!W.keepState)&&(st.delete(r.state.values,W.field),st.delete(r.state.touched,W.field),st.delete(r.state.errors,W.field))}),w&&(r.emit("change"),r.emit("field",F.field),r.emit("value",F.field,x))},setTouched:function(A,x){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,F=r.fieldsById.get(A);!F.shadow&&F.fieldApi.getIsRelevant()&&st.set(r.state.touched,F.field,F.fieldApi.getTouched()),F.shadow&&F.fieldApi.getError()!=null&&F.fieldApi.relevant(r.state.values)&&st.set(r.state.touched,F.field,F.fieldApi.getTouched()),w&&(r.emit("change"),r.emit("field",F.field))},setError:function(A,x){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,F=r.fieldsById.get(A);!F.shadow&&F.fieldApi.getIsRelevant()&&st.set(r.state.errors,F.field,F.fieldApi.getError());var W=st.get(r.state.errors,F.field);(F.shadow&&F.fieldApi.getError()!=null&&F.fieldApi.relevant(r.state.values)||F.shadow&&F.fieldApi.getError()===void 0&&F.fieldApi.relevant(r.state.values)&&typeof W=="string")&&st.set(r.state.errors,F.field,F.fieldApi.getError()),w&&(r.emit("change"),r.emit("field",F.field))},expectRemoval:this.expectRemoval,getInitialValue:this.getInitialValue,getSavedValue:this.getSavedValue},this.formApi={setValue:this.setValue,setTouched:this.setTouched,setError:this.setError,setFormError:this.setFormError,setValues:this.setValues,setInitialValue:this.setInitialValue,getValue:this.getValue,getTouched:this.getTouched,getError:this.getError,reset:this.reset,submitForm:this.submitForm,getState:this.getFormState,getValues:this.getValues,getFullField:this.getFullField,fieldExists:this.fieldExists,getInitialValue:this.getInitialValue,validate:this.validate,validateField:this.validateField,screenValid:this.screenValid,resetField:this.resetField,getOptions:this.getOptions,emitter:this,getSavedValue:this.getSavedValue,removeSavedState:this.removeSavedState,getDerrivedValue:this.getDerrivedValue,getStep:this.getStep,setStep:this.setStep,next:this.next,back:this.back,setCurrent:this.setCurrent,validated:this.validated,validating:this.validating,getDirty:this.getDirty,getPristine:this.getPristine,getField:this.getField},this.on("value",function(y){delete r.state.error,r.notify(y)})}return S(t,[{key:"emit",value:function(i){for(var o=arguments.length,s=new Array(o>1?o-1:0),d=1;d<o;d++)s[d-1]=arguments[d];var y=this.subscriptions.get(i);y&&y.forEach(function(A){return A.apply(void 0,s)})}},{key:"on",value:function(i,o){this.subscriptions.get(i)||this.subscriptions.set(i,new Set);var s=this.subscriptions.get(i);s.add(o)}},{key:"removeListener",value:function(i,o){var s=this.subscriptions.get(i);s.delete(o)}},{key:"setOptions",value:function(i){this.options=i}},{key:"setValue",value:function(i,o,s){this.getField(i).fieldApi.setValue(o,null,U({allowEmptyString:this.options.allowEmptyStrings},s))}},{key:"setTouched",value:function(i,o){this.getField(i).fieldApi.setTouched(o)}},{key:"setError",value:function(i,o){this.getField(i).fieldApi.setError(o)}},{key:"setFormError",value:function(i){this.state.error=i,this.emit("change")}},{key:"validating",value:function(){this.state.validating=this.state.validating+1,this.emit("change")}},{key:"validated",value:function(i,o){if(this.state.validating=this.state.validating-1,this.getError(i)||this.setError(i,o),this.state.validating>0){this.emit("change");return}this.state.submitting&&(this.valid()?(_t("Submit",this.state),this.emit("submit")):(_t("Submit",this.state),this.emit("failure")),this.state.submitting=!1),this.emit("change")}},{key:"setStep",value:function(i){this.state.step=i,this.emit("change")}},{key:"setCurrent",value:function(i){this.state.Current=i,this.emit("change")}},{key:"back",value:function(i){this.state.step=this.state.step-1,this.state.Current=i,this.emit("change")}},{key:"next",value:function(i){this.validate(),this.screenValid()&&(this.state.step=this.state.step+1,this.state.Current=i),this.emit("change")}},{key:"setInitialValue",value:function(i,o){st.set(this.options.initialValues,i,o)}},{key:"getFormState",value:function(){return _t("Returning form state"),U(U({},this.state),{},{pristine:this.pristine(),dirty:this.dirty(),invalid:this.invalid()})}},{key:"getFormApi",value:function(){return this.formApi}},{key:"getDerrivedValue",value:function(i){var o=this.getValues();return st.get(o,i)}},{key:"getValue",value:function(i){var o=this.getField(i).fieldApi.getValue();return _t("Getting value for",i,o),o}},{key:"getTouched",value:function(i){var o=this.getField(i).fieldApi.getTouched();return _t("Getting touched for",i,o),o}},{key:"getError",value:function(i){var o=this.getField(i).fieldApi.getError();return _t("Getting error for",i,o),o}},{key:"getDirty",value:function(i){var o=this.getField(i).fieldApi.getDirty();return _t("Getting dirty for",i,o),o}},{key:"getPristine",value:function(i){var o=this.getField(i).fieldApi.getPristine();return _t("Getting pristine for",i,o),o}},{key:"getValues",value:function(){return _t("Gettings values"),this.state.values}},{key:"getAllTouched",value:function(){return _t("Gettings touched"),this.state.touched}},{key:"getErrors",value:function(){return _t("Gettings errors"),this.state.errors}},{key:"getOptions",value:function(){return this.options}},{key:"getStep",value:function(){return this.state.step}},{key:"getSavedValue",value:function(i){var o=this.fieldsByName.get(i);return o&&o.shadow?st.get(this.savedValues,"shadow-".concat(i)):st.get(this.savedValues,i)}},{key:"removeSavedState",value:function(i){var o=this.fieldsByName.get(i);return o&&o.shadow?st.delete(this.savedValues,"shadow-".concat(i)):st.delete(this.savedValues,i)}},{key:"getFullField",value:function(i){return i}},{key:"getInitialValue",value:function(i){return st.get(this.options.initialValues,i)}},{key:"getField",value:function(i){_t("Getting Field",i);var o=this.fieldsByName.get(i);return o||(console.warn("Attempting to get field ".concat(i," but it does not exist")),this.dummyField)}},{key:"notify",value:function(i){var o=this,s=this.getField(i);s&&s.notify&&s.notify.forEach(function(d){var y=".".concat(i),A="".concat(y.replace(/(.*)[.[].*/,"$1"),".").concat(d).slice(1),x=o.getField(A);x&&(_t("Notifying",x.field),x.fieldApi.validate(),x.fieldApi.checkRelevant())})}},{key:"validateField",value:function(i){this.getField(i).fieldApi.validate()}},{key:"resetField",value:function(i){this.getField(i).fieldApi.reset()}},{key:"fieldExists",value:function(i){return this.fieldsByName.get(i)!=null}},{key:"valid",value:function(){var i=this.getErrors();return!!(st.empty(i)&&!this.state.error)}},{key:"screenValid",value:function(){var i=Object.entries(this.onScreen).some(function(o){var s=X(o,2),d=s[1];return d.fieldApi.getError()});return!i}},{key:"invalid",value:function(){var i=this.getErrors();return!!(!st.empty(i)||this.state.error)}},{key:"pristine",value:function(){var i=!0;return this.fieldsById.forEach(function(o){o.fieldApi.getPristine()||(i=!1)}),i}},{key:"dirty",value:function(){return!this.pristine()}},{key:"reset",value:function(){_t("Resetting"),this.fieldsById.forEach(function(i){i.fieldApi.reset({preventUpdate:!0})}),this.emit("reset"),this.emit("change")}},{key:"setValues",value:function(i){_t("Setting values"),this.fieldsById.forEach(function(o){var s=st.get(i,o.field);s!==void 0&&o.fieldApi.setValue(s,null,{preventUpdate:!0})}),this.emit("change")}},{key:"validate",value:function(){var i=this;_t("Validating all fields");var o=this.getValues();if(this.options.validationSchema){var s=Be(this.options.validationSchema,o);this.fieldsById.forEach(function(x){if(st.has(s,x.field)){var w=st.get(s,x.field);i.setError(x.field,w)}else i.setError(x.field,void 0)})}if(this.options.schema&&this.options.ajv){var d=T(this.ajvValidate,o);this.fieldsById.forEach(function(x){if(st.has(d,x.field)){var w=st.get(d,x.field);i.setError(x.field,w)}else i.setError(x.field,void 0)})}if(this.fieldsById.forEach(function(x){x.fieldApi.validate(o),x.fieldApi.setTouched(!0,!0)}),this.options.validate){var y=this.options.validate(o);this.setFormError(y)}if(this.options.validateFields){var A=this.options.validateFields(o);this.fieldsById.forEach(function(x){if(st.has(A,x.field)){var w=st.get(A,x.field);i.setError(x.field,w)}})}}},{key:"asyncValidate",value:function(){_t("Async Validating all fields");var i=this.getValues();this.fieldsById.forEach(function(o){o.fieldApi.asyncValidate(i)})}},{key:"keyDown",value:function(i){if(i.keyCode==13&&this.options.preventEnter)return i.preventDefault(i),!1}},{key:"submitForm",value:function(i){this.state.submits=this.state.submits+1,this.state.submitting=!0,!this.options.dontPreventDefault&&i&&i.preventDefault(i),this.validate(),this.emit("change"),this.asyncValidate(),!(this.state.validating>0)&&(this.valid()?(_t("Submit",this.state),this.emit("submit")):(_t("Submit",this.state),this.emit("failure")),this.state.submitting=!1,this.emit("change"))}},{key:"mount",value:function(){var i=this;this.fieldsById.forEach(function(o){i.emit("field",o.field)})}},{key:"register",value:function(i,o,s){var d=o.field,y=o.state;_t("Register ID:",i,"Name:",d,y,"Initial",s);var A=d.slice(0,d.lastIndexOf("[")!=-1?d.lastIndexOf("]")+1:d.length),x;this.fieldsById.forEach(function(w,F){w&&w.field===d&&(x=F)}),x&&(o.keepState||o.inMultistep)?(_t("Already Registered",d),this.fieldsById.delete(x)):x&&(!o.keepState||!o.inMultistep)&&console.warn("Check to make sure you have not registered two fields with the fieldName",d),_t("Fields Registered",this.fieldsById.size),this.onScreen[i]=o,this.fieldsById.set(i,o),_t("clearing expected removal",A),delete this.expectedRemovals[A],delete this.pulledOut[A],!o.shadow&&(this.updater.setValue(i,o.fieldApi.getValue(),!1),this.updater.setError(i,o.fieldApi.getError(),!1),this.updater.setTouched(i,o.fieldApi.getTouched(),!1),s||this.emit("change"),this.emit("field",d))}},{key:"deregister",value:function(i){var o=this.fieldsById.get(i),s=o.field;_t("Deregister",i,s),delete this.onScreen[i];var d=uu(s,this.expectedRemovals),y=s.slice(0,s.lastIndexOf("[")!=-1?s.lastIndexOf("]")+1:s.length);(o.keepState||o.inMultistep)&&!d&&(_t("Saving field ".concat(s,"'s value"),o.fieldApi.getFieldState()),o.shadow?st.set(this.savedValues,"shadow-".concat(s),o.fieldApi.getFieldState()):st.set(this.savedValues,s,o.fieldApi.getFieldState())),(d||!o.keepState&&!o.inMultistep||!o.fieldApi.getIsRelevant()&&!o.keepState)&&(_t("Removing field",s),this.fieldsById.delete(i),d||(st.delete(this.state.values,s),st.delete(this.state.touched,s),st.delete(this.state.errors,s),o.shadow?st.delete(this.savedValues,"shadow-".concat(s)):st.delete(this.savedValues,s)),d&&this.pulledOut[y]&&(_t("Pulling out",s,"with magic value",y),st.pullOut(this.state.values,y),st.pullOut(this.state.touched,y),st.pullOut(this.state.errors,y),st.pullOut(this.savedValues,y),delete this.pulledOut[y])),this.emit("change")}},{key:"expectRemoval",value:function(i){_t("Expecting removal of",i),this.expectedRemovals[i]=!0,this.pulledOut[i]=!0}},{key:"update",value:function(i,o,s){_t("Update",i,o.field,s,o.fieldState.value);var d=o.fieldApi.getValue(),y=o.fieldApi.getError(),A=o.fieldApi.getTouched(),x=this.fieldsByName.get(s);s&&!x&&(st.set(this.state.values,s),st.set(this.state.errors,s),st.set(this.state.touched,s)),st.set(this.state.values,o.field,d),st.set(this.state.errors,o.field,y),st.set(this.state.touched,o.field,A),this.emit("change")}}]),t}(),Lo=Te("informed:FormProvider "),Ls=function(r){var i=r.children,o=r.formApi,s=r.formController,d=r.formState,y=E(r,["children","formApi","formController","formState"]);if(Lo("Render FormProvider"),o)return Lo("Render FormProvider with given values"),h.createElement(Et.Provider,{value:s.updater},h.createElement(Ut.Provider,{value:o},h.createElement(St.Provider,{value:d},i)));Lo("Render FormProvider with generated values");var A=Ds(y);return h.createElement(Et.Provider,{value:A.formController.updater},h.createElement(Ut.Provider,{value:A.formApi},h.createElement(St.Provider,{value:A.formState},i)))},Rs=Te("informed:useForm "),Ds=function(r){var i=r.dontPreventDefault,o=r.initialValues,s=r.validate,d=r.validateFields,y=r.allowEmptyStrings,A=r.preventEnter,x=r.getApi,w=r.apiRef,F=r.onChange,W=r.onReset,re=r.onSubmit,ee=r.onValueChange,le=r.onSubmitFailure,de=r.validationSchema,he=r.schema,xe=r.ajv,ve=r.fieldMap,we=r.onlyValidateSchema,Ne=E(r,["dontPreventDefault","initialValues","validate","validateFields","allowEmptyStrings","preventEnter","getApi","apiRef","onChange","onReset","onSubmit","onValueChange","onSubmitFailure","validationSchema","schema","ajv","fieldMap","onlyValidateSchema"]);Rs("Render useForm");var Fe=(0,h.useMemo)(function(){return{dontPreventDefault:i,initialValues:o,validate:s,validateFields:d,allowEmptyStrings:y,preventEnter:A,validationSchema:de,schema:he,ajv:xe,fieldMap:ve}},[i,o,s,d,y,A,de,he,xe,ve]),je=(0,h.useState)(function(){return new Ms(Fe)}),ke=X(je,1),Me=ke[0];(0,h.useEffect)(function(){Me.setOptions(Fe)},[Fe]),ot(function(){Me.mount()},[]);var De=(0,h.useState)(function(){return Me.getFormState()}),Ve=X(De,2),Ke=Ve[0],Ze=Ve[1];ot(function(){var Dr=function(){return F&&F(Me.getFormState())},Ir=function(){return W&&W()},rn=function(){return re&&re(Me.getFormState().values)},Er=function(){return ee&&ee(Me.getFormState().values)},Hr=function(){return le&&le(Me.getFormState().errors)};return Me.on("change",Dr),Me.on("reset",Ir),Me.on("submit",rn),Me.on("value",Er),Me.on("failure",Hr),function(){Me.removeListener("change",Dr),Me.removeListener("reset",Ir),Me.removeListener("submit",rn),Me.removeListener("value",Er),Me.removeListener("failure",Hr)}},[F,W,re,ee,le]),(0,h.useState)(function(){var Dr=function(){Rs("Setting form state"),Ze(Me.getFormState())};Me.on("change",Dr),x&&x(Me.getFormApi()),w&&(w.current=Me.getFormApi())});var _e=(0,h.useState)(function(){return Me.getFormApi()}),bt=X(_e,1),Rt=bt[0],or=function(Ir){return h.createElement(Ls,{formApi:Rt,formState:Ke,formController:Me},h.createElement(h.Fragment,null,Ir||h.createElement(Xt,{schema:he,onlyValidateSchema:we})))};return{formApi:Rt,formState:Ke,formController:Me,render:or,userProps:Ne}},fu=Te("informed:Form "),cu=function(r){var i=r.children,o=r.render,s=r.component,d=E(r,["children","render","component"]);fu("Render FORM");var y=Ds(d),A=y.formApi,x=y.formController,w=y.formState,F=y.render,W=y.userProps,re=function(){var le={formState:w,formApi:A};return s?h.createElement(s,le,i):o?o(le):typeof i=="function"?i(le):i};return F(h.createElement("form",N({},W,{onReset:x.reset,onSubmit:x.submitForm,onKeyDown:x.keyDown}),re()))},_f=function(r,i){return U(U({},i),{},{getValue:function(s){return i.getValue("".concat(r,".").concat(s))},getTouched:function(s){return i.getTouched("".concat(r,".").concat(s))},getError:function(s){return i.getError("".concat(r,".").concat(s))},setValue:function(s,d){return i.setValue("".concat(r,".").concat(s),d)},setTouched:function(s,d){return i.setTouched("".concat(r,".").concat(s),d)},setError:function(s,d){return i.setError("".concat(r,".").concat(s),d)},getInitialValue:function(s){return i.getInitialValue("".concat(r,".").concat(s))},getFullField:function(s){return"".concat(i.getFullField(r),".").concat(s)}})},ec=function(r,i){var o=i.register,s=i.deregister,d=i.setValue,y=i.setTouched,A=i.setError,x=i.update,w=i.getField,F=i.expectRemoval,W=i.getInitialValue,re=i.fieldMap,ee=i.getSavedValue;return{register:function(de){for(var he=arguments.length,xe=new Array(he>1?he-1:0),ve=1;ve<he;ve++)xe[ve-1]=arguments[ve];return o.apply(void 0,["".concat(r,".").concat(de)].concat(xe))},deregister:function(de){for(var he=arguments.length,xe=new Array(he>1?he-1:0),ve=1;ve<he;ve++)xe[ve-1]=arguments[ve];return s.apply(void 0,["".concat(r,".").concat(de)].concat(xe))},update:function(de){for(var he=arguments.length,xe=new Array(he>1?he-1:0),ve=1;ve<he;ve++)xe[ve-1]=arguments[ve];return x.apply(void 0,["".concat(r,".").concat(de)].concat(xe))},setValue:function(de){for(var he=arguments.length,xe=new Array(he>1?he-1:0),ve=1;ve<he;ve++)xe[ve-1]=arguments[ve];return d.apply(void 0,["".concat(r,".").concat(de)].concat(xe))},setTouched:function(de){for(var he=arguments.length,xe=new Array(he>1?he-1:0),ve=1;ve<he;ve++)xe[ve-1]=arguments[ve];return y.apply(void 0,["".concat(r,".").concat(de)].concat(xe))},setError:function(de){for(var he=arguments.length,xe=new Array(he>1?he-1:0),ve=1;ve<he;ve++)xe[ve-1]=arguments[ve];return A.apply(void 0,["".concat(r,".").concat(de)].concat(xe))},getField:function(de){for(var he=arguments.length,xe=new Array(he>1?he-1:0),ve=1;ve<he;ve++)xe[ve-1]=arguments[ve];return w.apply(void 0,["".concat(r,".").concat(de)].concat(xe))},expectRemoval:function(de){for(var he=arguments.length,xe=new Array(he>1?he-1:0),ve=1;ve<he;ve++)xe[ve-1]=arguments[ve];return F.apply(void 0,["".concat(r,".").concat(de)].concat(xe))},getInitialValue:function(de){return W("".concat(r,".").concat(de))},getSavedValue:function(de){return ee("".concat(r,".").concat(de))},fieldMap:re}},tc=function(r){var i=r.scope,o=r.children,s=useContext(Et),d=Mt(),y=ci(),A=useMemo(function(){return _f(i,d)},[i]),x=useMemo(function(){return ec(i,s)},[i]);return React.createElement(Et.Provider,{value:x},React.createElement(Ut.Provider,{value:A},React.createElement(St.Provider,{value:y},o)))},Fi=function(r){var i=ci(),o={};Object.keys(r).length>0?Object.keys(r).forEach(function(ee){o[ee]=i[ee]}):o=i;var s=o,d=s.pristine,y=s.dirty,A=s.invalid,x=s.values,w=s.errors,F=s.touched,W=s.validating,re=s.submitting;return React.createElement("pre",null,React.createElement("code",null,JSON.stringify({pristine:d,dirty:y,invalid:A,values:x,errors:w,touched:F,validating:W,submitting:re},null,2)))},rc=function(r){var i=r.initialStep,o=r.multistepApiRef,s=Mt(),d=s.getValues,y=s.validate,A=s.screenValid,x=(0,h.useState)(new Map),w=X(x,1),F=w[0],W=(0,h.useRef)(0),re=Wt({current:i,steps:[],goal:null}),ee=X(re,3),le=ee[0],de=ee[1],he=ee[2],xe=(0,h.useState)(function(){var Fe=function(){var Me=he(),De=Me.current,Ve=F.get(De);return Ve},je={getState:function(){return he()},getCurrentStep:Fe,getStep:function(Me){return F.get(Me)},getNumberOfSteps:function(){return F.size},next:function(){if(y(),A()){var Me=Fe(),De=Me.getNext,Ve=De(),Ke=typeof Ve=="function"?Ve(d()):Ve;Ke&&de(function(Ze){return U(U({},Ze),{},{current:Ke})})}},back:function(){var Me=Fe(),De=Me.getPrevious,Ve=De(),Ke=typeof Ve=="function"?Ve(d()):Ve;Ke&&de(function(Ze){return U(U({},Ze),{},{current:Ke})})},setCurrent:function(Me){if(Me){var De=F.get(Me).index;De<Fe().index?de(function(Ve){return U(U({},Ve),{},{current:Me,goal:null})}):de(function(Ve){return U(U({},Ve),{},{goal:Me})})}},register:function(Me,De,Ve){Ve?(W.current=W.current+1,F.set(Me,U(U({},De),{},{index:W.current}))):de(function(Ke){return U(U({},Ke),{},{steps:Array.from(F.keys())})})},deregister:function(Me){F.delete(Me),W.current=W.current-1,de(function(De){return U(U({},De),{},{steps:Array.from(F.keys())})})}};return o&&(o.current=je),je}),ve=X(xe,1),we=ve[0],Ne=function(je){return h.createElement(Kt.Provider,{value:we},h.createElement(zt.Provider,{value:le},je))};return U(U(U({},we),le),{},{render:Ne})};function nc(){return(0,h.useContext)(zt)}function Ro(){return(0,h.useContext)(Kt)}var Ha=function(r){var i=r.step,o=r.next,s=r.previous,d=r.relevant,y=ci(),A=y.values,x=nc(),w=x.current,F=x.goal,W=Ro(),re=W.register,ee=W.deregister,le=W.next,de=i===w,he=d?d(A):!0,xe=(0,h.useRef)(o),ve=(0,h.useRef)(s),we=(0,h.useRef)();xe.current=o,ve.current=s,we.current=d,(0,h.useState)(function(){re(i,{name:i,getNext:function(){return xe.current},getPrevious:function(){return ve.current}},!0)}),(0,h.useEffect)(function(){return re(i,{name:i,getNext:function(){return xe.current},getPrevious:function(){return ve.current}}),function(){ee(i)}},[i]),(0,h.useEffect)(function(){F&&de&&F!==i&&le()},[F,de]);var Ne=function(je){return h.createElement(sr.Provider,{value:{relevant:function(Me){return we.current?we.current(Me):!0},multistep:!0}},de&&he?je:null)};return{isCurrent:de,isRelevant:he,step:i,render:Ne}};function ic(t){var r=t.children,i=E(t,["children"]),o=rc(i),s=o.render,d=E(o,["render"]);return s(typeof r=="function"?r(d):r)}ic.Step=function(r){var i=r.children,o=E(r,["children"]),s=Ha(o),d=s.render;return d(i)};var Jd=function(r){var i=r.field,o=useContext(Et),s=o.fieldMap,d=Mt(),y=d.getFullField,A=d.getOptions,x=y(i),w=A(),F=w.schema,W=te(x),re=st.get(F,W);if(!re)return null;var ee=_(i,re),le=ee.props,de=ee.componentType,he=s[de];return React.createElement(he,N({field:i},le))},Xd=function(){var r=Mt(),i=r.getOptions,o=i(),s=o.schema;return React.createElement(Xt,{schema:s})},Qd=function(r){return React.forwardRef(function(i,o){return React.createElement(Ut.Consumer,null,function(s){return React.createElement(r,N({formApi:s,ref:o},i))})})},du=function(r){return React.forwardRef(function(i,o){return React.createElement(St.Consumer,null,function(s){return React.createElement(r,N({formState:s,ref:o},i))})})},pu=function(r,i){return{getValue:function(){return r.getValue(i)},setValue:function(s){return r.setValue(i,s)},getTouched:function(){return r.getTouched(i)},setTouched:function(s){return r.setTouched(i,s)},getError:function(){return r.getError(i)},setError:function(s){return r.setError(i,s)},reset:function(){return r.resetField(i)},validate:function(){return r.validateField(i)},exists:function(){return r.fieldExists(i)},getDirty:function(){return r.getDirty(i)},getPristine:function(){return r.getPristine(i)},getFieldState:function(){return r.getField(i).fieldApi.getFieldState()}}};function hu(t){var r=Mt(),i=useMemo(function(){return pu(r,t)},[t]);return i}function vu(t){var r=hu(t),i=Mt(),o=React.useState(),s=X(o,2),d=s[1],y=React.useCallback(function(){return d({})},[]);return ot(function(){var A=function(w){w===t&&y()};return i.emitter.on("field",A),function(){i.emitter.removeListener("field",A)}},[]),ot(function(){y()},[]),r.getFieldState()||{}}var ac=function(r){return function(i){return function(o){var s=vu(r);return React.createElement(i,N({fieldState:s},o))}}},Ns=function(r){return function(i){return function(o){var s=hu(r);return React.createElement(i,N({fieldApi:s},o))}}},Bs=function(r){var i=r.value,o=r.forwardedRef,s=r.children,d=E(r,["value","forwardedRef","children"]);return React.createElement("option",N({ref:o,value:i,key:i},d),s)},gu=null,za=a(80150),js=a(89356),Ki=a(63263),oc=a(30699),Do=a(58377),Yn=a(28834),yu=a(13038),sc=a(32752),Ga=a(44341);function Us(t,r,i){return r in t?Ga(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function di(t,r){var i=js(t);if(Ki){var o=Ki(t);r&&(o=oc(o).call(o,function(s){return Do(t,s).enumerable})),i.push.apply(i,o)}return i}function vr(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};if(r%2){var o;Yn(o=di(Object(i),!0)).call(o,function(d){Us(t,d,i[d])})}else if(yu)sc(t,yu(i));else{var s;Yn(s=di(Object(i))).call(s,function(d){Ga(t,d,Do(i,d))})}}return t}var pi=a(28583),Yi=a.n(pi),Vs=a(10240),Ji=a.n(Vs),ki=a(8575),Xi=a(51446),Ws=a(19996),Hs=a(78363),mu=a(95238),zs=a(53592);function Gs(t,r){(r==null||r>t.length)&&(r=t.length);for(var i=0,o=new Array(r);i<r;i++)o[i]=t[i];return o}function $s(t,r){var i;if(!!t){if(typeof t=="string")return Gs(t,r);var o=mu(i=Object.prototype.toString.call(t)).call(i,8,-1);if(o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set")return zs(t);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Gs(t,r)}}function Qi(t,r){var i=typeof Xi!="undefined"&&Ws(t)||t["@@iterator"];if(!i){if(Hs(t)||(i=$s(t))||r&&t&&typeof t.length=="number"){i&&(t=i);var o=0,s=function(){};return{s,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(w){throw w},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
76
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d=!0,y=!1,A;return{s:function(){i=i.call(t)},n:function(){var w=i.next();return d=w.done,w},e:function(w){y=!0,A=w},f:function(){try{!d&&i.return!=null&&i.return()}finally{if(y)throw A}}}}var lc=a(23882);function lr(t){return typeof Xi=="function"&&typeof lc=="symbol"?lr=function(i){return typeof i}:lr=function(i){return i&&typeof Xi=="function"&&i.constructor===Xi&&i!==Xi.prototype?"symbol":typeof i},lr(t)}function uc(t){if(Hs(t))return t}function xu(t,r){var i=t&&(typeof Xi!="undefined"&&Ws(t)||t["@@iterator"]);if(i!=null){var o=[],s=!0,d=!1,y,A;try{for(i=i.call(t);!(s=(y=i.next()).done)&&(o.push(y.value),!(r&&o.length===r));s=!0);}catch(x){d=!0,A=x}finally{try{!s&&i.return!=null&&i.return()}finally{if(d)throw A}}return o}}function No(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
77
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fn(t,r){return uc(t)||xu(t,r)||$s(t,r)||No()}var bu=a(69798);function Su(t,r,i,o,s,d,y){try{var A=t[d](y),x=A.value}catch(w){i(w);return}A.done?r(x):bu.resolve(x).then(o,s)}function Ks(t){return function(){var r=this,i=arguments;return new bu(function(o,s){var d=t.apply(r,i);function y(x){Su(d,o,s,y,A,"next",x)}function A(x){Su(d,o,s,y,A,"throw",x)}y(void 0)})}}var $a=a(63109),ur=a.n($a),fc=a(78580),Bo=a.n(fc),Ka=a(72119),Au=a.n(Ka),wu=a(66419),cc=a.n(wu),Ys=a(59340),Ya=a.n(Ys),dc=a(2991),er=a.n(dc),Cu=a(86902),Qt=a.n(Cu),pc=a(77766),gt=a.n(pc),hi=a(26295),Ja=a.n(hi),Js=a(20116),gn=a.n(Js),vi=a(31905),Zi=a(92495),Xa=a.n(Zi),hc=a(93320),Xs=a.n(hc),vc=a(78718),jo=a.n(vc),Qs=a(23560),ni=a.n(Qs),Jn=a(88996);function Uo(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function Zs(t,r){for(var i=0;i<r.length;i++){var o=r[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Ga(t,o.key,o)}}function qs(t,r,i){return r&&Zs(t.prototype,r),i&&Zs(t,i),t}var Eu=a(83863),Ou=a(79542),_s=a(24889);function qi(t){return qi=Ou?_s:function(i){return i.__proto__||_s(i)},qi(t)}function Qa(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&(t=qi(t),t!==null););return t}function Za(t,r,i){return typeof Reflect!="undefined"&&Eu?Za=Eu:Za=function(s,d,y){var A=Qa(s,d);if(!!A){var x=Do(A,d);return x.get?x.get.call(y):x.value}},Za(t,r,i||t)}var Tu=a(189);function qa(t,r){return qa=Ou||function(o,s){return o.__proto__=s,o},qa(t,r)}function Vo(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Tu(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&qa(t,r)}var _a=a(13535);function Wo(){if(typeof Reflect=="undefined"||!_a||_a.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_a(Boolean,[],function(){})),!0}catch(t){return!1}}function Xn(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Pu(t,r){return r&&(lr(r)==="object"||typeof r=="function")?r:Xn(t)}function el(t){var r=Wo();return function(){var o=qi(t),s;if(r){var d=qi(this).constructor;s=_a(o,arguments,d)}else s=o.apply(this,arguments);return Pu(this,s)}}var tl=a(94473),Iu=a.n(tl),Fu=a(57514),rl=a.n(Fu),gc=function(r){var i=function(d,y){return{name:d,value:y}};if(ni()(r.prototype.set)||ni()(r.prototype.get)||ni()(r.prototype.getAll)||ni()(r.prototype.has))return r;var o=function(s){Vo(y,s);var d=el(y);function y(A){var x;return Uo(this,y),x=d.call(this,A),x.entryList=[],x}return qs(y,[{key:"append",value:function(x,w,F){return this.entryList.push(i(x,w)),Za(qi(y.prototype),"append",this).call(this,x,w,F)}},{key:"set",value:function(x,w){var F,W=i(x,w);this.entryList=gn()(F=this.entryList).call(F,function(re){return re.name!==x}),this.entryList.push(W)}},{key:"get",value:function(x){var w,F=Iu()(w=this.entryList).call(w,function(W){return W.name===x});return F===void 0?null:F}},{key:"getAll",value:function(x){var w,F;return er()(w=gn()(F=this.entryList).call(F,function(W){return W.name===x})).call(w,function(W){return W.value})}},{key:"has",value:function(x){return this.entryList.some(function(w){return w.name===x})}}]),y}(r);return o};const yc=gc(rl());function mc(t){if(Hs(t))return Gs(t)}function _i(t){if(typeof Xi!="undefined"&&Ws(t)!=null||t["@@iterator"]!=null)return zs(t)}function ma(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
78
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dn(t){return mc(t)||_i(t)||$s(t)||ma()}var nl=a(3649),Nn=a.n(nl),ku=a(88996),il=ku.Buffer,ea=function(r){return":/?#[]@!$&'()*+,;=".indexOf(r)>-1},ta=function(r){return/^[a-z0-9\-._~]+$/i.test(r)};function Nr(t){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.escape,s=arguments.length>2?arguments[2]:void 0;return typeof t=="number"&&(t=t.toString()),typeof t!="string"||!t.length||!o?t:s?JSON.parse(t):er()(r=Dn(t)).call(r,function(d){var y,A;if(ta(d)||ea(d)&&o==="unsafe")return d;var x=er()(y=er()(A=il.from(d).toJSON().data||[]).call(A,function(w){var F;return Nn()(F="0".concat(w.toString(16).toUpperCase())).call(F,-2)})).call(y,function(w){return"%".concat(w)}).join("");return x}).join("")}function ii(t){var r=t.value;return Array.isArray(r)?Mi(t):lr(r)==="object"?Ho(t):xc(t)}function Mi(t){var r=t.key,i=t.value,o=t.style,s=t.explode,d=t.escape,y=function(W){return Nr(W,{escape:d})};if(o==="simple")return er()(i).call(i,function(F){return y(F)}).join(",");if(o==="label")return".".concat(er()(i).call(i,function(F){return y(F)}).join("."));if(o==="matrix")return er()(i).call(i,function(F){return y(F)}).reduce(function(F,W){var re;if(!F||s){var ee,le;return gt()(ee=gt()(le="".concat(F||"",";")).call(le,r,"=")).call(ee,W)}return gt()(re="".concat(F,",")).call(re,W)},"");if(o==="form"){var A=s?"&".concat(r,"="):",";return er()(i).call(i,function(F){return y(F)}).join(A)}if(o==="spaceDelimited"){var x=s?"".concat(r,"="):"";return er()(i).call(i,function(F){return y(F)}).join(" ".concat(x))}if(o==="pipeDelimited"){var w=s?"".concat(r,"="):"";return er()(i).call(i,function(F){return y(F)}).join("|".concat(w))}}function Ho(t){var r=t.key,i=t.value,o=t.style,s=t.explode,d=t.escape,y=function(w){return Nr(w,{escape:d})},A=Qt()(i);if(o==="simple")return A.reduce(function(x,w){var F,W,re,ee=y(i[w]),le=s?"=":",",de=x?"".concat(x,","):"";return gt()(F=gt()(W=gt()(re="".concat(de)).call(re,w)).call(W,le)).call(F,ee)},"");if(o==="label")return A.reduce(function(x,w){var F,W,re,ee=y(i[w]),le=s?"=":".",de=x?"".concat(x,"."):".";return gt()(F=gt()(W=gt()(re="".concat(de)).call(re,w)).call(W,le)).call(F,ee)},"");if(o==="matrix"&&s)return A.reduce(function(x,w){var F,W,re=y(i[w]),ee=x?"".concat(x,";"):";";return gt()(F=gt()(W="".concat(ee)).call(W,w,"=")).call(F,re)},"");if(o==="matrix")return A.reduce(function(x,w){var F,W,re=y(i[w]),ee=x?"".concat(x,","):";".concat(r,"=");return gt()(F=gt()(W="".concat(ee)).call(W,w,",")).call(F,re)},"");if(o==="form")return A.reduce(function(x,w){var F,W,re,ee,le=y(i[w]),de=x?gt()(F="".concat(x)).call(F,s?"&":","):"",he=s?"=":",";return gt()(W=gt()(re=gt()(ee="".concat(de)).call(ee,w)).call(re,he)).call(W,le)},"")}function xc(t){var r=t.key,i=t.value,o=t.style,s=t.escape,d=function(x){return Nr(x,{escape:s})};if(o==="simple")return d(i);if(o==="label")return".".concat(d(i));if(o==="matrix"){var y;return gt()(y=";".concat(r,"=")).call(y,d(i))}if(o==="form")return d(i);if(o==="deepObject")return d(i,{},!0)}var zo={serializeRes:Mu,mergeInQueryOrForm:Ru};function Li(t){return Go.apply(this,arguments)}function Go(){return Go=Ks(ur().mark(function t(r){var i,o,s,d,y,A=arguments;return ur().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(i=A.length>1&&A[1]!==void 0?A[1]:{},lr(r)==="object"&&(i=r,r=i.url),i.headers=i.headers||{},zo.mergeInQueryOrForm(i),i.headers&&Qt()(i.headers).forEach(function(F){var W=i.headers[F];typeof W=="string"&&(i.headers[F]=W.replace(/\n+/g," "))}),!i.requestInterceptor){w.next=12;break}return w.next=8,i.requestInterceptor(i);case 8:if(w.t0=w.sent,w.t0){w.next=11;break}w.t0=i;case 11:i=w.t0;case 12:return o=i.headers["content-type"]||i.headers["Content-Type"],/multipart\/form-data/i.test(o)&&(delete i.headers["content-type"],delete i.headers["Content-Type"]),w.prev=14,w.next=17,(i.userFetch||fetch)(i.url,i);case 17:return s=w.sent,w.next=20,zo.serializeRes(s,r,i);case 20:if(s=w.sent,!i.responseInterceptor){w.next=28;break}return w.next=24,i.responseInterceptor(s);case 24:if(w.t1=w.sent,w.t1){w.next=27;break}w.t1=s;case 27:s=w.t1;case 28:w.next=39;break;case 30:if(w.prev=30,w.t2=w.catch(14),s){w.next=34;break}throw w.t2;case 34:throw d=new Error(s.statusText),d.status=s.status,d.statusCode=s.status,d.responseError=w.t2,d;case 39:if(s.ok){w.next=45;break}throw y=new Error(s.statusText),y.status=s.status,y.statusCode=s.status,y.response=s,y;case 45:return w.abrupt("return",s);case 46:case"end":return w.stop()}},t,null,[[14,30]])})),Go.apply(this,arguments)}var al=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return/(json|xml|yaml|text)\b/.test(r)};function $o(t,r){return r&&(r.indexOf("application/json")===0||r.indexOf("+json")>0)?JSON.parse(t):Xs().safeLoad(t)}function Mu(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.loadSpec,s=o===void 0?!1:o,d={ok:t.ok,url:t.url||r,status:t.status,statusText:t.statusText,headers:sl(t.headers)},y=d.headers["content-type"],A=s||al(y),x=A?t.text:t.blob||t.buffer;return x.call(t).then(function(w){if(d.text=w,d.data=w,A)try{var F=$o(w,y);d.body=F,d.obj=F}catch(W){d.parseError=W}return d})}function ol(t){var r=Bo()(t).call(t,", ");return r?t.split(", "):t}function sl(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return ni()(Au()(t))?cc()(Au()(t).call(t)).reduce(function(r,i){var o=fn(i,2),s=o[0],d=o[1];return r[s]=ol(d),r},{}):{}}function eo(t,r){return!r&&typeof navigator!="undefined"&&(r=navigator),r&&r.product==="ReactNative"?!!(t&&lr(t)==="object"&&typeof t.uri=="string"):typeof File!="undefined"&&t instanceof File||typeof Blob!="undefined"&&t instanceof Blob||typeof Jn.Buffer!="undefined"&&t instanceof Jn.Buffer?!0:t!==null&&lr(t)==="object"&&typeof t.pipe=="function"}function Ko(t,r){return Array.isArray(t)&&t.some(function(i){return eo(i,r)})}var xa={form:",",spaceDelimited:"%20",pipeDelimited:"|"},Yo={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function ll(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=r.collectionFormat,s=r.allowEmptyValue,d=r.serializationOption,y=r.encoding,A=lr(r)==="object"&&!Array.isArray(r)?r.value:r,x=i?function(W){return W.toString()}:function(W){return encodeURIComponent(W)},w=x(t);if(typeof A=="undefined"&&s)return[[w,""]];if(eo(A)||Ko(A))return[[w,A]];if(d)return to(t,A,i,d);if(y){if([lr(y.style),lr(y.explode),lr(y.allowReserved)].some(function(W){return W!=="undefined"}))return to(t,A,i,jo()(y,["style","explode","allowReserved"]));if(y.contentType){if(y.contentType==="application/json"){var F=typeof A=="string"?A:Ya()(A);return[[w,x(F)]]}return[[w,x(A.toString())]]}return lr(A)!=="object"?[[w,x(A)]]:Array.isArray(A)&&A.every(function(W){return lr(W)!=="object"})?[[w,er()(A).call(A,x).join(",")]]:[[w,x(Ya()(A))]]}return lr(A)!=="object"?[[w,x(A)]]:Array.isArray(A)?o==="multi"?[[w,er()(A).call(A,x)]]:[[w,er()(A).call(A,x).join(Yo[o||"csv"])]]:[[w,""]]}function to(t,r,i,o){var s,d=o.style||"form",y=typeof o.explode=="undefined"?d==="form":o.explode,A=i?!1:o&&o.allowReserved?"unsafe":"reserved",x=function(ee){return Nr(ee,{escape:A})},w=i?function(re){return re}:function(re){return Nr(re,{escape:A})};if(lr(r)!=="object")return[[w(t),x(r)]];if(Array.isArray(r))return y?[[w(t),er()(r).call(r,x)]]:[[w(t),er()(r).call(r,x).join(xa[d])]];if(d==="deepObject"){var F;return er()(F=Qt()(r)).call(F,function(re){var ee;return[w(gt()(ee="".concat(t,"[")).call(ee,re,"]")),x(r[re])]})}if(y){var W;return er()(W=Qt()(r)).call(W,function(re){return[w(re),x(r[re])]})}return[[w(t),er()(s=Qt()(r)).call(s,function(re){var ee;return[gt()(ee="".concat(w(re),",")).call(ee,x(r[re]))]}).join(",")]]}function bc(t){return Ja()(t).reduce(function(r,i){var o=fn(i,2),s=o[0],d=o[1],y=Qi(ll(s,d,!0)),A;try{for(y.s();!(A=y.n()).done;){var x=fn(A.value,2),w=x[0],F=x[1];if(Array.isArray(F)){var W=Qi(F),re;try{for(W.s();!(re=W.n()).done;){var ee=re.value;r.append(w,ee)}}catch(le){W.e(le)}finally{W.f()}}else r.append(w,F)}}catch(le){y.e(le)}finally{y.f()}return r},new yc)}function Lu(t){var r=Qt()(t).reduce(function(i,o){var s=Qi(ll(o,t[o])),d;try{for(s.s();!(d=s.n()).done;){var y=fn(d.value,2),A=y[0],x=y[1];i[A]=x}}catch(w){s.e(w)}finally{s.f()}return i},{});return Xa().stringify(r,{encode:!1,indices:!1})||""}function Ru(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.url,i=r===void 0?"":r,o=t.query,s=t.form,d=function(){for(var xe=arguments.length,ve=new Array(xe),we=0;we<xe;we++)ve[we]=arguments[we];var Ne=gn()(ve).call(ve,function(Fe){return Fe}).join("&");return Ne?"?".concat(Ne):""};if(s){var y=Qt()(s).some(function(he){var xe=s[he].value;return eo(xe)||Ko(xe)}),A=t.headers["content-type"]||t.headers["Content-Type"];y||/multipart\/form-data/i.test(A)?t.body=bc(t.form):t.body=Lu(s),delete t.form}if(o){var x=i.split("?"),w=fn(x,2),F=w[0],W=w[1],re="";if(W){var ee=Xa().parse(W),le=Qt()(o);le.forEach(function(he){return delete ee[he]}),re=Xa().stringify(ee,{encode:!0})}var de=d(re,Lu(o));t.url=F+de,delete t.query}return t}function ul(t,r,i){return i=i||function(o){return o},r=r||function(o){return o},function(o){return typeof o=="string"&&(o={url:o}),zo.mergeInQueryOrForm(o),o=r(o),i(t(o))}}var fl=a(51942),cn=a.n(fl),ro=a(93476),ra=a.n(ro),Jo=a(92762),Du=a.n(Jo),no=a(13311),Nu=a.n(no),na=a(50308),ba=a.n(na);/*!
79
79
  * https://github.com/Starcounter-Jack/JSON-Patch
80
80
  * (c) 2017 Joachim Wester
81
81
  * MIT license
82
82
  */var ia=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,s){o.__proto__=s}||function(o,s){for(var d in s)s.hasOwnProperty(d)&&(o[d]=s[d])},t(r,i)};return function(r,i){t(r,i);function o(){this.constructor=r}r.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}}(),io=Object.prototype.hasOwnProperty;function gi(t,r){return io.call(t,r)}function Xo(t){if(Array.isArray(t)){for(var i=new Array(t.length),r=0;r<i.length;r++)i[r]=""+r;return i}if(Object.keys)return Object.keys(t);var i=[];for(var o in t)gi(t,o)&&i.push(o);return i}function Cn(t){switch(typeof t){case"object":return JSON.parse(JSON.stringify(t));case"undefined":return null;default:return t}}function Qo(t){for(var r=0,i=t.length,o;r<i;){if(o=t.charCodeAt(r),o>=48&&o<=57){r++;continue}return!1}return!0}function yi(t){return t.indexOf("/")===-1&&t.indexOf("~")===-1?t:t.replace(/~/g,"~0").replace(/\//g,"~1")}function Ri(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}function Di(t,r){var i;for(var o in t)if(gi(t,o)){if(t[o]===r)return yi(o)+"/";if(typeof t[o]=="object"&&(i=Di(t[o],r),i!=""))return yi(o)+"/"+i}return""}function Zd(t,r){if(t===r)return"/";var i=Di(t,r);if(i==="")throw new Error("Object not found in root");return"/"+i}function cl(t){if(t===void 0)return!0;if(t){if(Array.isArray(t)){for(var r=0,i=t.length;r<i;r++)if(cl(t[r]))return!0}else if(typeof t=="object"){for(var o=Xo(t),s=o.length,r=0;r<s;r++)if(cl(t[o[r]]))return!0}}return!1}function Bu(t,r){var i=[t];for(var o in r){var s=typeof r[o]=="object"?JSON.stringify(r[o],null,2):r[o];typeof s!="undefined"&&i.push(o+": "+s)}return i.join(`
83
- `)}var ju=function(t){ia(r,t);function r(i,o,s,d,g){var A=this.constructor,x=t.call(this,Bu(i,{name:o,index:s,operation:d,tree:g}))||this;return x.name=o,x.index=s,x.operation=d,x.tree=g,Object.setPrototypeOf(x,A.prototype),x.message=Bu(i,{name:o,index:s,operation:d,tree:g}),x}return r}(Error),Lr=ju,Sc=Cn,$r={add:function(t,r,i){return t[r]=this.value,{newDocument:i}},remove:function(t,r,i){var o=t[r];return delete t[r],{newDocument:i,removed:o}},replace:function(t,r,i){var o=t[r];return t[r]=this.value,{newDocument:i,removed:o}},move:function(t,r,i){var o=Br(i,this.path);o&&(o=Cn(o));var s=gr(i,{op:"remove",path:this.from}).removed;return gr(i,{op:"add",path:this.path,value:s}),{newDocument:i,removed:o}},copy:function(t,r,i){var o=Br(i,this.from);return gr(i,{op:"add",path:this.path,value:Cn(o)}),{newDocument:i}},test:function(t,r,i){return{newDocument:i,test:ao(t[r],this.value)}},_get:function(t,r,i){return this.value=t[r],{newDocument:i}}},Kr={add:function(t,r,i){return Qo(r)?t.splice(r,0,this.value):t[r]=this.value,{newDocument:i,index:r}},remove:function(t,r,i){var o=t.splice(r,1);return{newDocument:i,removed:o[0]}},replace:function(t,r,i){var o=t[r];return t[r]=this.value,{newDocument:i,removed:o}},move:$r.move,copy:$r.copy,test:$r.test,_get:$r._get};function Br(t,r){if(r=="")return t;var i={op:"_get",path:r};return gr(t,i),i.value}function gr(t,r,i,o,s,d){if(i===void 0&&(i=!1),o===void 0&&(o=!0),s===void 0&&(s=!0),d===void 0&&(d=0),i&&(typeof i=="function"?i(r,0,t,r.path):aa(r,0)),r.path===""){var g={newDocument:t};if(r.op==="add")return g.newDocument=r.value,g;if(r.op==="replace")return g.newDocument=r.value,g.removed=t,g;if(r.op==="move"||r.op==="copy")return g.newDocument=Br(t,r.from),r.op==="move"&&(g.removed=t),g;if(r.op==="test"){if(g.test=ao(t,r.value),g.test===!1)throw new Lr("Test operation failed","TEST_OPERATION_FAILED",d,r,t);return g.newDocument=t,g}else{if(r.op==="remove")return g.removed=t,g.newDocument=null,g;if(r.op==="_get")return r.value=t,g;if(i)throw new Lr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",d,r,t);return g}}else{o||(t=Cn(t));var A=r.path||"",x=A.split("/"),w=t,F=1,H=x.length,re=void 0,ee=void 0,se=void 0;for(typeof i=="function"?se=i:se=aa;;){if(ee=x[F],s&&ee=="__proto__")throw new TypeError("JSON-Patch: modifying `__proto__` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(i&&re===void 0&&(w[ee]===void 0?re=x.slice(0,F).join("/"):F==H-1&&(re=r.path),re!==void 0&&se(r,0,t,re)),F++,Array.isArray(w)){if(ee==="-")ee=w.length;else{if(i&&!Qo(ee))throw new Lr("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",d,r,t);Qo(ee)&&(ee=~~ee)}if(F>=H){if(i&&r.op==="add"&&ee>w.length)throw new Lr("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",d,r,t);var g=Kr[r.op].call(r,w,ee,t);if(g.test===!1)throw new Lr("Test operation failed","TEST_OPERATION_FAILED",d,r,t);return g}}else if(ee&&ee.indexOf("~")!=-1&&(ee=Ri(ee)),F>=H){var g=$r[r.op].call(r,w,ee,t);if(g.test===!1)throw new Lr("Test operation failed","TEST_OPERATION_FAILED",d,r,t);return g}w=w[ee]}}}function Qn(t,r,i,o,s){if(o===void 0&&(o=!0),s===void 0&&(s=!0),i&&!Array.isArray(r))throw new Lr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");o||(t=Cn(t));for(var d=new Array(r.length),g=0,A=r.length;g<A;g++)d[g]=gr(t,r[g],i,!0,s,g),t=d[g].newDocument;return d.newDocument=t,d}function Ac(t,r,i){var o=gr(t,r);if(o.test===!1)throw new Lr("Test operation failed","TEST_OPERATION_FAILED",i,r,t);return o.newDocument}function aa(t,r,i,o){if(typeof t!="object"||t===null||Array.isArray(t))throw new Lr("Operation is not an object","OPERATION_NOT_AN_OBJECT",r,t,i);if($r[t.op]){if(typeof t.path!="string")throw new Lr("Operation `path` property is not a string","OPERATION_PATH_INVALID",r,t,i);if(t.path.indexOf("/")!==0&&t.path.length>0)throw new Lr('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",r,t,i);if((t.op==="move"||t.op==="copy")&&typeof t.from!="string")throw new Lr("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",r,t,i);if((t.op==="add"||t.op==="replace"||t.op==="test")&&t.value===void 0)throw new Lr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",r,t,i);if((t.op==="add"||t.op==="replace"||t.op==="test")&&cl(t.value))throw new Lr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",r,t,i);if(i){if(t.op=="add"){var s=t.path.split("/").length,d=o.split("/").length;if(s!==d+1&&s!==d)throw new Lr("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",r,t,i)}else if(t.op==="replace"||t.op==="remove"||t.op==="_get"){if(t.path!==o)throw new Lr("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",r,t,i)}else if(t.op==="move"||t.op==="copy"){var g={op:"_get",path:t.from,value:void 0},A=Uu([g],i);if(A&&A.name==="OPERATION_PATH_UNRESOLVABLE")throw new Lr("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",r,t,i)}}}else throw new Lr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",r,t,i)}function Uu(t,r,i){try{if(!Array.isArray(t))throw new Lr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(r)Qn(Cn(r),Cn(t),i||!0);else{i=i||aa;for(var o=0;o<t.length;o++)i(t[o],o,r,void 0)}}catch(s){if(s instanceof Lr)return s;throw s}}function ao(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){var i=Array.isArray(t),o=Array.isArray(r),s,d,g;if(i&&o){if(d=t.length,d!=r.length)return!1;for(s=d;s--!=0;)if(!ao(t[s],r[s]))return!1;return!0}if(i!=o)return!1;var A=Object.keys(t);if(d=A.length,d!==Object.keys(r).length)return!1;for(s=d;s--!=0;)if(!r.hasOwnProperty(A[s]))return!1;for(s=d;s--!=0;)if(g=A[s],!ao(t[g],r[g]))return!1;return!0}return t!==t&&r!==r}/*!
83
+ `)}var ju=function(t){ia(r,t);function r(i,o,s,d,y){var A=this.constructor,x=t.call(this,Bu(i,{name:o,index:s,operation:d,tree:y}))||this;return x.name=o,x.index=s,x.operation=d,x.tree=y,Object.setPrototypeOf(x,A.prototype),x.message=Bu(i,{name:o,index:s,operation:d,tree:y}),x}return r}(Error),Lr=ju,Sc=Cn,$r={add:function(t,r,i){return t[r]=this.value,{newDocument:i}},remove:function(t,r,i){var o=t[r];return delete t[r],{newDocument:i,removed:o}},replace:function(t,r,i){var o=t[r];return t[r]=this.value,{newDocument:i,removed:o}},move:function(t,r,i){var o=Br(i,this.path);o&&(o=Cn(o));var s=yr(i,{op:"remove",path:this.from}).removed;return yr(i,{op:"add",path:this.path,value:s}),{newDocument:i,removed:o}},copy:function(t,r,i){var o=Br(i,this.from);return yr(i,{op:"add",path:this.path,value:Cn(o)}),{newDocument:i}},test:function(t,r,i){return{newDocument:i,test:ao(t[r],this.value)}},_get:function(t,r,i){return this.value=t[r],{newDocument:i}}},Kr={add:function(t,r,i){return Qo(r)?t.splice(r,0,this.value):t[r]=this.value,{newDocument:i,index:r}},remove:function(t,r,i){var o=t.splice(r,1);return{newDocument:i,removed:o[0]}},replace:function(t,r,i){var o=t[r];return t[r]=this.value,{newDocument:i,removed:o}},move:$r.move,copy:$r.copy,test:$r.test,_get:$r._get};function Br(t,r){if(r=="")return t;var i={op:"_get",path:r};return yr(t,i),i.value}function yr(t,r,i,o,s,d){if(i===void 0&&(i=!1),o===void 0&&(o=!0),s===void 0&&(s=!0),d===void 0&&(d=0),i&&(typeof i=="function"?i(r,0,t,r.path):aa(r,0)),r.path===""){var y={newDocument:t};if(r.op==="add")return y.newDocument=r.value,y;if(r.op==="replace")return y.newDocument=r.value,y.removed=t,y;if(r.op==="move"||r.op==="copy")return y.newDocument=Br(t,r.from),r.op==="move"&&(y.removed=t),y;if(r.op==="test"){if(y.test=ao(t,r.value),y.test===!1)throw new Lr("Test operation failed","TEST_OPERATION_FAILED",d,r,t);return y.newDocument=t,y}else{if(r.op==="remove")return y.removed=t,y.newDocument=null,y;if(r.op==="_get")return r.value=t,y;if(i)throw new Lr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",d,r,t);return y}}else{o||(t=Cn(t));var A=r.path||"",x=A.split("/"),w=t,F=1,W=x.length,re=void 0,ee=void 0,le=void 0;for(typeof i=="function"?le=i:le=aa;;){if(ee=x[F],s&&ee=="__proto__")throw new TypeError("JSON-Patch: modifying `__proto__` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(i&&re===void 0&&(w[ee]===void 0?re=x.slice(0,F).join("/"):F==W-1&&(re=r.path),re!==void 0&&le(r,0,t,re)),F++,Array.isArray(w)){if(ee==="-")ee=w.length;else{if(i&&!Qo(ee))throw new Lr("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",d,r,t);Qo(ee)&&(ee=~~ee)}if(F>=W){if(i&&r.op==="add"&&ee>w.length)throw new Lr("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",d,r,t);var y=Kr[r.op].call(r,w,ee,t);if(y.test===!1)throw new Lr("Test operation failed","TEST_OPERATION_FAILED",d,r,t);return y}}else if(ee&&ee.indexOf("~")!=-1&&(ee=Ri(ee)),F>=W){var y=$r[r.op].call(r,w,ee,t);if(y.test===!1)throw new Lr("Test operation failed","TEST_OPERATION_FAILED",d,r,t);return y}w=w[ee]}}}function Qn(t,r,i,o,s){if(o===void 0&&(o=!0),s===void 0&&(s=!0),i&&!Array.isArray(r))throw new Lr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");o||(t=Cn(t));for(var d=new Array(r.length),y=0,A=r.length;y<A;y++)d[y]=yr(t,r[y],i,!0,s,y),t=d[y].newDocument;return d.newDocument=t,d}function Ac(t,r,i){var o=yr(t,r);if(o.test===!1)throw new Lr("Test operation failed","TEST_OPERATION_FAILED",i,r,t);return o.newDocument}function aa(t,r,i,o){if(typeof t!="object"||t===null||Array.isArray(t))throw new Lr("Operation is not an object","OPERATION_NOT_AN_OBJECT",r,t,i);if($r[t.op]){if(typeof t.path!="string")throw new Lr("Operation `path` property is not a string","OPERATION_PATH_INVALID",r,t,i);if(t.path.indexOf("/")!==0&&t.path.length>0)throw new Lr('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",r,t,i);if((t.op==="move"||t.op==="copy")&&typeof t.from!="string")throw new Lr("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",r,t,i);if((t.op==="add"||t.op==="replace"||t.op==="test")&&t.value===void 0)throw new Lr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",r,t,i);if((t.op==="add"||t.op==="replace"||t.op==="test")&&cl(t.value))throw new Lr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",r,t,i);if(i){if(t.op=="add"){var s=t.path.split("/").length,d=o.split("/").length;if(s!==d+1&&s!==d)throw new Lr("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",r,t,i)}else if(t.op==="replace"||t.op==="remove"||t.op==="_get"){if(t.path!==o)throw new Lr("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",r,t,i)}else if(t.op==="move"||t.op==="copy"){var y={op:"_get",path:t.from,value:void 0},A=Uu([y],i);if(A&&A.name==="OPERATION_PATH_UNRESOLVABLE")throw new Lr("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",r,t,i)}}}else throw new Lr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",r,t,i)}function Uu(t,r,i){try{if(!Array.isArray(t))throw new Lr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(r)Qn(Cn(r),Cn(t),i||!0);else{i=i||aa;for(var o=0;o<t.length;o++)i(t[o],o,r,void 0)}}catch(s){if(s instanceof Lr)return s;throw s}}function ao(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){var i=Array.isArray(t),o=Array.isArray(r),s,d,y;if(i&&o){if(d=t.length,d!=r.length)return!1;for(s=d;s--!=0;)if(!ao(t[s],r[s]))return!1;return!0}if(i!=o)return!1;var A=Object.keys(t);if(d=A.length,d!==Object.keys(r).length)return!1;for(s=d;s--!=0;)if(!r.hasOwnProperty(A[s]))return!1;for(s=d;s--!=0;)if(y=A[s],!ao(t[y],r[y]))return!1;return!0}return t!==t&&r!==r}/*!
84
84
  * https://github.com/Starcounter-Jack/JSON-Patch
85
85
  * (c) 2017 Joachim Wester
86
86
  * MIT license
87
- */var dl=new WeakMap,pl=function(){function t(r){this.observers=new Map,this.obj=r}return t}(),Vu=function(){function t(r,i){this.callback=r,this.observer=i}return t}();function hl(t){return dl.get(t)}function wc(t,r){return t.observers.get(r)}function vl(t,r){t.observers.delete(r.callback)}function gl(t,r){r.unobserve()}function Wu(t,r){var i=[],o,s=hl(t);if(!s)s=new pl(t),dl.set(t,s);else{var d=wc(s,r);o=d&&d.observer}if(o)return o;if(o={},s.value=Cn(t),r){o.callback=r,o.next=null;var g=function(){Zo(o)},A=function(){clearTimeout(o.next),o.next=setTimeout(g)};typeof window!="undefined"&&(window.addEventListener("mouseup",A),window.addEventListener("keyup",A),window.addEventListener("mousedown",A),window.addEventListener("keydown",A),window.addEventListener("change",A))}return o.patches=i,o.object=t,o.unobserve=function(){Zo(o),clearTimeout(o.next),vl(s,o),typeof window!="undefined"&&(window.removeEventListener("mouseup",A),window.removeEventListener("keyup",A),window.removeEventListener("mousedown",A),window.removeEventListener("keydown",A),window.removeEventListener("change",A))},s.observers.set(r,new Vu(r,o)),o}function Zo(t,r){r===void 0&&(r=!1);var i=dl.get(t.object);oo(i.value,t.object,t.patches,"",r),t.patches.length&&Qn(i.value,t.patches);var o=t.patches;return o.length>0&&(t.patches=[],t.callback&&t.callback(o)),o}function oo(t,r,i,o,s){if(r!==t){typeof r.toJSON=="function"&&(r=r.toJSON());for(var d=Xo(r),g=Xo(t),A=!1,x=!1,w=g.length-1;w>=0;w--){var F=g[w],H=t[F];if(gi(r,F)&&!(r[F]===void 0&&H!==void 0&&Array.isArray(r)===!1)){var re=r[F];typeof H=="object"&&H!=null&&typeof re=="object"&&re!=null?oo(H,re,i,o+"/"+yi(F),s):H!==re&&(A=!0,s&&i.push({op:"test",path:o+"/"+yi(F),value:Cn(H)}),i.push({op:"replace",path:o+"/"+yi(F),value:Cn(re)}))}else Array.isArray(t)===Array.isArray(r)?(s&&i.push({op:"test",path:o+"/"+yi(F),value:Cn(H)}),i.push({op:"remove",path:o+"/"+yi(F)}),x=!0):(s&&i.push({op:"test",path:o,value:t}),i.push({op:"replace",path:o,value:r}),A=!0)}if(!(!x&&d.length==g.length))for(var w=0;w<d.length;w++){var F=d[w];!gi(t,F)&&r[F]!==void 0&&i.push({op:"add",path:o+"/"+yi(F),value:Cn(r[F])})}}}function Hu(t,r,i){i===void 0&&(i=!1);var o=[];return oo(t,r,o,"",i),o}const qo=Object.assign({},c,v,{JsonPatchError:ju,deepClone:Cn,escapePathComponent:yi,unescapePathComponent:Ri});var Cc=a(31312),_o=a.n(Cc),mi=a(50361),zu=a.n(mi);const ir={add:tr,replace:kn,remove:Ni,merge:Bi,mergeDeep:$u,context:yl,getIn:ji,applyPatch:Gu,parentPathMatch:ml,flatten:so,fullyNormalizeArray:Yu,normalizeArray:xl,isPromise:Ju,forEachNew:Ku,forEachNewPrimitive:Ec,isJsonPatch:Zu,isContextPatch:Tc,isPatch:rs,isMutation:uo,isAdditiveMutation:fo,isGenerator:Oc,isFunction:Xu,isObject:ai,isError:Qu};function Gu(t,r,i){if(i=i||{},r=hr(hr({},r),{},{path:r.path&&En(r.path)}),r.op==="merge"){var o=ns(t,r.path);cn()(o,r.value),Qn(t,[kn(r.path,o)])}else if(r.op==="mergeDeep"){var s=ns(t,r.path);for(var d in r.value){var g=r.value[d],A=Array.isArray(g);if(A){var x=s[d]||[];s[d]=gt()(x).call(x,g)}else if(ai(g)&&!A){var w=hr({},s[d]);for(var F in g)if(Object.prototype.hasOwnProperty.call(w,F)){w=_o()(zu()(w),g);break}else cn()(w,Us({},F,g[F]));s[d]=w}else s[d]=g}}else if(r.op==="add"&&r.path===""&&ai(r.value)){var H=Qt()(r.value).reduce(function(pe,xe){return pe.push({op:"add",path:"/".concat(En(xe)),value:r.value[xe]}),pe},[]);Qn(t,H)}else if(r.op==="replace"&&r.path===""){var re=r,ee=re.value;i.allowMetaPatches&&r.meta&&fo(r)&&(Array.isArray(r.value)||ai(r.value))&&(ee=hr(hr({},ee),r.meta)),t=ee}else if(Qn(t,[r]),i.allowMetaPatches&&r.meta&&fo(r)&&(Array.isArray(r.value)||ai(r.value))){var se=ns(t,r.path),de=hr(hr({},se),r.meta);Qn(t,[kn(r.path,de)])}return t}function En(t){return Array.isArray(t)?t.length<1?"":"/".concat(er()(t).call(t,function(r){return(r+"").replace(/~/g,"~0").replace(/\//g,"~1")}).join("/")):t}function tr(t,r){return{op:"add",path:t,value:r}}function kn(t,r,i){return{op:"replace",path:t,value:r,meta:i}}function Ni(t){return{op:"remove",path:t}}function Bi(t,r){return{type:"mutation",op:"merge",path:t,value:r}}function $u(t,r){return{type:"mutation",op:"mergeDeep",path:t,value:r}}function yl(t,r){return{type:"context",path:t,value:r}}function Ku(t,r){try{return es(t,ts,r)}catch(i){return i}}function Ec(t,r){try{return es(t,oa,r)}catch(i){return i}}function es(t,r,i){var o,s=er()(o=gn()(t).call(t,fo)).call(o,function(A){return r(A.value,i,A.path)})||[],d=so(s),g=lo(d);return g}function oa(t,r,i){if(i=i||[],Array.isArray(t))return er()(t).call(t,function(s,d){return oa(s,r,gt()(i).call(i,d))});if(ai(t)){var o;return er()(o=Qt()(t)).call(o,function(s){return oa(t[s],r,gt()(i).call(i,s))})}return r(t,i[i.length-1],i)}function ts(t,r,i){i=i||[];var o=[];if(i.length>0){var s=r(t,i[i.length-1],i);s&&(o=gt()(o).call(o,s))}if(Array.isArray(t)){var d=er()(t).call(t,function(x,w){return ts(x,r,gt()(i).call(i,w))});d&&(o=gt()(o).call(o,d))}else if(ai(t)){var g,A=er()(g=Qt()(t)).call(g,function(x){return ts(t[x],r,gt()(i).call(i,x))});A&&(o=gt()(o).call(o,A))}return o=so(o),o}function ml(t,r){if(!Array.isArray(r))return!1;for(var i=0,o=r.length;i<o;i+=1)if(r[i]!==t[i])return!1;return!0}function ji(t,r){return r.reduce(function(i,o){return typeof o!="undefined"&&i?i[o]:i},t)}function Yu(t){return lo(so(xl(t)))}function xl(t){return Array.isArray(t)?t:[t]}function so(t){var r;return gt()(r=[]).apply(r,Dn(er()(t).call(t,function(i){return Array.isArray(i)?so(i):i})))}function lo(t){return gn()(t).call(t,function(r){return typeof r!="undefined"})}function ai(t){return t&&lr(t)==="object"}function Ju(t){return ai(t)&&Xu(t.then)}function Xu(t){return t&&typeof t=="function"}function Qu(t){return t instanceof Error}function Zu(t){if(rs(t)){var r=t.op;return r==="add"||r==="remove"||r==="replace"}return!1}function Oc(t){return Object.prototype.toString.call(t)==="[object GeneratorFunction]"}function uo(t){return Zu(t)||rs(t)&&t.type==="mutation"}function fo(t){return uo(t)&&(t.op==="add"||t.op==="replace"||t.op==="merge"||t.op==="mergeDeep")}function Tc(t){return rs(t)&&t.type==="context"}function rs(t){return t&&lr(t)==="object"}function ns(t,r){try{return Br(t,r)}catch(i){return console.error(i),{}}}var Sa=a(52424),bl=a.n(Sa),is=a(54098),qu=a(9779),as=a.n(qu);function Sl(t,r){function i(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack;for(var o=arguments.length,s=new Array(o),d=0;d<o;d++)s[d]=arguments[d];this.message=s[0],r&&r.apply(this,s)}return i.prototype=new Error,i.prototype.name=t,i.prototype.constructor=i,i}var Pc=a(13692),_u=a.n(Pc),nn=a(47037),os=a.n(nn),ef=["properties"],tf=["properties"],rf=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],Aa=["schema/example","items/example"];function co(t){var r=t[t.length-1],i=t[t.length-2],o=t.join("/");return ef.indexOf(r)>-1&&tf.indexOf(i)===-1||rf.indexOf(o)>-1||Aa.some(function(s){return o.indexOf(s)>-1})}function nf(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.specmap,s=i.getBaseUrlForNodePath,d=s===void 0?function(w){var F;return o.getContext(gt()(F=[]).call(F,Dn(r),Dn(w))).baseDoc}:s,g=i.targetKeys,A=g===void 0?["$ref","$$ref"]:g,x=[];return _u()(t).forEach(function(){if(Bo()(A).call(A,this.key)&&os()(this.node)){var F=this.path,H=gt()(r).call(r,this.path),re=ss(this.node,d(F));x.push(o.replace(H,re))}}),x}function ss(t,r){var i,o=t.split("#"),s=fn(o,2),d=s[0],g=s[1],A=ki.resolve(d||"",r||"");return g?gt()(i="".concat(A,"#")).call(i,g):A}var Al="application/json, application/yaml",wa=new RegExp("^([a-z]+://|//)","i"),sa=Sl("JSONRefError",function(r,i,o){this.originalError=o,cn()(this,i||{})}),Bn={},wl=new(bl()),po=[function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="examples"},function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="content"&&t[7]==="example"},function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="content"&&t[7]==="examples"&&t[9]==="value"},function(t){return t[0]==="paths"&&t[3]==="requestBody"&&t[4]==="content"&&t[6]==="example"},function(t){return t[0]==="paths"&&t[3]==="requestBody"&&t[4]==="content"&&t[6]==="examples"&&t[8]==="value"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="example"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="example"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="examples"&&t[6]==="value"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="examples"&&t[7]==="value"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="content"&&t[6]==="example"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="content"&&t[6]==="examples"&&t[8]==="value"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[4]==="content"&&t[7]==="example"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="content"&&t[7]==="examples"&&t[9]==="value"}],Ic=function(r){return po.some(function(i){return i(r)})},Ca={key:"$ref",plugin:function(r,i,o,s){var d=s.getInstance(),g=Nn()(o).call(o,0,-1);if(!(co(g)||Ic(g))){var A=s.getContext(o),x=A.baseDoc;if(typeof r!="string")return new sa("$ref: must be a string (JSON-Ref)",{$ref:r,baseDoc:x,fullPath:o});var w=Ea(r),F=w[0],H=w[1]||"",re;try{re=x||F?El(F,x):null}catch(ve){return la(ve,{pointer:H,$ref:r,basePath:re,fullPath:o})}var ee,se;if(Mc(H,re,g,s)&&!d.useCircularStructures){var de=ss(r,re);return r===de?null:ir.replace(o,de)}if(re==null?(se=oi(H),ee=s.get(se),typeof ee=="undefined"&&(ee=new sa("Could not resolve reference: ".concat(r),{pointer:H,$ref:r,baseDoc:x,fullPath:o}))):(ee=Oa(re,H),ee.__value!=null?ee=ee.__value:ee=ee.catch(function(ve){throw la(ve,{pointer:H,$ref:r,baseDoc:x,fullPath:o})})),ee instanceof Error)return[ir.remove(o),ee];var pe=ss(r,re),xe=ir.replace(g,ee,{$$ref:pe});if(re&&re!==x)return[xe,ir.context(g,{baseDoc:re})];try{if(!Lc(s.state,xe)||d.useCircularStructures)return xe}catch(ve){return null}}}},Cl=cn()(Ca,{docCache:Bn,absoluteify:El,clearCache:ho,JSONRefError:sa,wrapError:la,getDoc:Ol,split:Ea,extractFromDoc:Oa,fetchJSON:Fc,extract:ls,jsonPointerToArray:oi,unescapeJsonPointerToken:ua});const af=Cl;function El(t,r){if(!wa.test(t)){if(!r){var i;throw new sa(gt()(i="Tried to resolve a relative URL, without having a basePath. path: '".concat(t,"' basePath: '")).call(i,r,"'"))}return ki.resolve(r,t)}return t}function la(t,r){var i;if(t&&t.response&&t.response.body){var o;i=gt()(o="".concat(t.response.body.code," ")).call(o,t.response.body.message)}else i=t.message;return new sa("Could not resolve reference: ".concat(i),r,t)}function Ea(t){return(t+"").split("#")}function Oa(t,r){var i=Bn[t];if(i&&!ir.isPromise(i))try{var o=ls(r,i);return cn()(ra().resolve(o),{__value:o})}catch(s){return ra().reject(s)}return Ol(t).then(function(s){return ls(r,s)})}function ho(t){typeof t!="undefined"?delete Bn[t]:Qt()(Bn).forEach(function(r){delete Bn[r]})}function Ol(t){var r=Bn[t];return r?ir.isPromise(r)?r:ra().resolve(r):(Bn[t]=Cl.fetchJSON(t).then(function(i){return Bn[t]=i,i}),Bn[t])}function Fc(t){return(0,is.fetch)(t,{headers:{Accept:Al},loadSpec:!0}).then(function(r){return r.text()}).then(function(r){return Xs().safeLoad(r)})}function ls(t,r){var i=oi(t);if(i.length<1)return r;var o=ir.getIn(r,i);if(typeof o=="undefined")throw new sa("Could not resolve pointer: ".concat(t," does not exist in document"),{pointer:t});return o}function oi(t){var r;if(typeof t!="string")throw new TypeError("Expected a string, got a ".concat(lr(t)));return t[0]==="/"&&(t=t.substr(1)),t===""?[]:er()(r=t.split("/")).call(r,ua)}function ua(t){return typeof t!="string"?t:as().unescape(t.replace(/~1/g,"/").replace(/~0/g,"~"))}function Ta(t){return as().escape(t.replace(/~/g,"~0").replace(/\//g,"~1"))}function kc(t){return t.length===0?"":"/".concat(er()(t).call(t,Ta).join("/"))}var of=function(r){return!r||r==="/"||r==="#"};function Tl(t,r){if(of(r))return!0;var i=t.charAt(r.length),o=Nn()(r).call(r,-1);return t.indexOf(r)===0&&(!i||i==="/"||i==="#")&&o!=="#"}function Mc(t,r,i,o){var s,d,g=wl.get(o);g||(g={},wl.set(o,g));var A=kc(i),x=gt()(s="".concat(r||"<specmap-base>","#")).call(s,t),w=A.replace(/allOf\/\d+\/?/g,""),F=o.contextTree.get([]).baseDoc;if(r==F&&Tl(w,t))return!0;var H="",re=i.some(function(ee){var se;return H=gt()(se="".concat(H,"/")).call(se,Ta(ee)),g[H]&&g[H].some(function(de){return Tl(de,x)||Tl(x,de)})});if(re)return!0;g[w]=gt()(d=g[w]||[]).call(d,x)}function Lc(t,r){var i=[t];return r.path.reduce(function(s,d){return i.push(s[d]),s[d]},t),o(r.value);function o(s){return ir.isObject(s)&&(i.indexOf(s)>=0||Qt()(s).some(function(d){return o(s[d])}))}}var yn=a(41609),sf=a.n(yn);const Rc={key:"allOf",plugin:function(r,i,o,s,d){if(!(d.meta&&d.meta.$$ref)){var g=Nn()(o).call(o,0,-1);if(!co(g)){if(!Array.isArray(r)){var A=new TypeError("allOf must be an array");return A.fullPath=o,A}var x=!1,w=d.value;if(g.forEach(function(re){!w||(w=w[re])}),w=hr({},w),!sf()(w)){delete w.allOf;var F=[];if(F.push(s.replace(g,{})),r.forEach(function(re,ee){if(!s.isObject(re)){if(x)return null;x=!0;var se=new TypeError("Elements in allOf must be objects");return se.fullPath=o,F.push(se)}F.push(s.mergeDeep(g,re));var de=Nn()(o).call(o,0,-1),pe=nf(re,de,{getBaseUrlForNodePath:function(ve){var we;return s.getContext(gt()(we=[]).call(we,Dn(o),[ee],Dn(ve))).baseDoc},specmap:s});F.push.apply(F,Dn(pe))}),F.push(s.mergeDeep(g,w)),!w.$$ref){var H;F.push(s.remove(gt()(H=[]).call(H,g,"$$ref")))}return F}}}}},Dc={key:"parameters",plugin:function(r,i,o,s){if(Array.isArray(r)&&r.length){var d=cn()([],r),g=Nn()(o).call(o,0,-1),A=hr({},ir.getIn(s.spec,g));return r.forEach(function(x,w){try{d[w].default=s.parameterMacro(A,x)}catch(H){var F=new Error(H);return F.fullPath=o,F}}),ir.replace(o,d)}return ir.replace(o,r)}},Nc={key:"properties",plugin:function(r,i,o,s){var d=hr({},r);for(var g in r)try{d[g].default=s.modelPropertyMacro(d[g])}catch(w){var A=new Error(w);return A.fullPath=o,A}var x=ir.replace(o,d);return x}};var lf=function(){function t(r){Uo(this,t),this.root=us(r||{})}return qs(t,[{key:"set",value:function(i,o){var s=this.getParent(i,!0);if(!s){vo(this.root,o,null);return}var d=i[i.length-1],g=s.children;if(g[d]){vo(g[d],o,s);return}g[d]=us(o,s)}},{key:"get",value:function(i){if(i=i||[],i.length<1)return this.root.value;for(var o=this.root,s,d,g=0;g<i.length&&(d=i[g],s=o.children,!!s[d]);g+=1)o=s[d];return o&&o.protoValue}},{key:"getParent",value:function(i,o){return!i||i.length<1?null:i.length<2?this.root:Nn()(i).call(i,0,-1).reduce(function(s,d){if(!s)return s;var g=s.children;return!g[d]&&o&&(g[d]=us(null,s)),g[d]},this.root)}}]),t}();function us(t,r){return vo({children:{}},t,r)}function vo(t,r,i){return t.value=r||{},t.protoValue=i?hr(hr({},i.protoValue),t.value):t.value,Qt()(t.children).forEach(function(o){var s=t.children[o];t.children[o]=vo(s,s.value,t)}),t}var uf=100,Bc=function(){function t(r){var i=this,o,s;Uo(this,t),cn()(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new lf,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:cn()(Object.create(this),ir,{getInstance:function(){return i}}),allowMetaPatches:!1},r),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=gn()(o=er()(s=this.plugins).call(s,this.wrapPlugin.bind(this))).call(o,ir.isFunction),this.patches.push(ir.add([],this.spec)),this.patches.push(ir.context([],this.context)),this.updatePatches(this.patches)}return qs(t,[{key:"debug",value:function(i){if(this.debugLevel===i){for(var o,s=arguments.length,d=new Array(s>1?s-1:0),g=1;g<s;g++)d[g-1]=arguments[g];(o=console).log.apply(o,d)}}},{key:"verbose",value:function(i){if(this.debugLevel==="verbose"){for(var o,s,d=arguments.length,g=new Array(d>1?d-1:0),A=1;A<d;A++)g[A-1]=arguments[A];(o=console).log.apply(o,gt()(s=["[".concat(i,"] ")]).call(s,g))}}},{key:"wrapPlugin",value:function(i,o){var s=this.pathDiscriminator,d=null,g;return i[this.pluginProp]?(d=i,g=i[this.pluginProp]):ir.isFunction(i)?g=i:ir.isObject(i)&&(g=A(i)),cn()(g.bind(d),{pluginName:i.name||o,isGenerator:ir.isGenerator(g)});function A(x){var w=function(H,re){return Array.isArray(H)?H.every(function(ee,se){return ee===re[se]}):!0};return ur().mark(function F(H,re){var ee,se,de,pe,xe,ve;return ur().wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:ve=function(je,ke,Me){var De,Ve,Ke,Ze,_e,bt,Rt,or,Dr,Ir,rn,Er,Hr;return ur().wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:if(ir.isObject(je)){Yt.next=6;break}if(x.key!==ke[ke.length-1]){Yt.next=4;break}return Yt.next=4,x.plugin(je,x.key,ke,re);case 4:Yt.next=30;break;case 6:De=ke.length-1,Ve=ke[De],Ke=ke.indexOf("properties"),Ze=Ve==="properties"&&De===Ke,_e=re.allowMetaPatches&&se[je.$$ref],bt=0,Rt=Qt()(je);case 12:if(!(bt<Rt.length)){Yt.next=30;break}if(or=Rt[bt],Dr=je[or],Ir=gt()(ke).call(ke,or),rn=ir.isObject(Dr),Er=je.$$ref,_e){Yt.next=22;break}if(!rn){Yt.next=22;break}return re.allowMetaPatches&&Er&&(se[Er]=!0),Yt.delegateYield(ve(Dr,Ir,Me),"t0",22);case 22:if(!(!Ze&&or===x.key)){Yt.next=27;break}if(Hr=w(s,ke),!(!s||Hr)){Yt.next=27;break}return Yt.next=27,x.plugin(Dr,or,Ir,re,Me);case 27:bt++,Yt.next=12;break;case 30:case"end":return Yt.stop()}},ee)},ee=ur().mark(ve),se={},de=Qi(gn()(H).call(H,ir.isAdditiveMutation)),Ne.prev=4,de.s();case 6:if((pe=de.n()).done){Ne.next=11;break}return xe=pe.value,Ne.delegateYield(ve(xe.value,xe.path,xe),"t0",9);case 9:Ne.next=6;break;case 11:Ne.next=16;break;case 13:Ne.prev=13,Ne.t1=Ne.catch(4),de.e(Ne.t1);case 16:return Ne.prev=16,de.f(),Ne.finish(16);case 19:case"end":return Ne.stop()}},F,null,[[4,13,16,19]])})}}},{key:"nextPlugin",value:function(){var i=this;return Nu()(this.wrappedPlugins,function(o){var s=i.getMutationsForPlugin(o);return s.length>0})}},{key:"nextPromisedPatch",value:function(){if(this.promisedPatches.length>0){var i;return ra().race(er()(i=this.promisedPatches).call(i,function(o){return o.value}))}}},{key:"getPluginHistory",value:function(i){var o=this.constructor.getPluginName(i);return this.pluginHistory[o]||[]}},{key:"getPluginRunCount",value:function(i){return this.getPluginHistory(i).length}},{key:"getPluginHistoryTip",value:function(i){var o=this.getPluginHistory(i),s=o&&o[o.length-1];return s||{}}},{key:"getPluginMutationIndex",value:function(i){var o=this.getPluginHistoryTip(i).mutationIndex;return typeof o!="number"?-1:o}},{key:"updatePluginHistory",value:function(i,o){var s=this.constructor.getPluginName(i);this.pluginHistory[s]=this.pluginHistory[s]||[],this.pluginHistory[s].push(o)}},{key:"updatePatches",value:function(i){var o=this;ir.normalizeArray(i).forEach(function(s){if(s instanceof Error){o.errors.push(s);return}try{if(!ir.isObject(s)){o.debug("updatePatches","Got a non-object patch",s);return}if(o.showDebug&&o.allPatches.push(s),ir.isPromise(s.value)){o.promisedPatches.push(s),o.promisedPatchThen(s);return}if(ir.isContextPatch(s)){o.setContext(s.path,s.value);return}if(ir.isMutation(s)){o.updateMutations(s);return}}catch(d){console.error(d),o.errors.push(d)}})}},{key:"updateMutations",value:function(i){lr(i.value)==="object"&&!Array.isArray(i.value)&&this.allowMetaPatches&&(i.value=hr({},i.value));var o=ir.applyPatch(this.state,i,{allowMetaPatches:this.allowMetaPatches});o&&(this.mutations.push(i),this.state=o)}},{key:"removePromisedPatch",value:function(i){var o,s=this.promisedPatches.indexOf(i);if(s<0){this.debug("Tried to remove a promisedPatch that isn't there!");return}Du()(o=this.promisedPatches).call(o,s,1)}},{key:"promisedPatchThen",value:function(i){var o=this;return i.value=i.value.then(function(s){var d=hr(hr({},i),{},{value:s});o.removePromisedPatch(i),o.updatePatches(d)}).catch(function(s){o.removePromisedPatch(i),o.updatePatches(s)}),i.value}},{key:"getMutations",value:function(i,o){var s;return i=i||0,typeof o!="number"&&(o=this.mutations.length),Nn()(s=this.mutations).call(s,i,o)}},{key:"getCurrentMutations",value:function(){return this.getMutationsForPlugin(this.getCurrentPlugin())}},{key:"getMutationsForPlugin",value:function(i){var o=this.getPluginMutationIndex(i);return this.getMutations(o+1)}},{key:"getCurrentPlugin",value:function(){return this.currentPlugin}},{key:"getLib",value:function(){return this.libMethods}},{key:"_get",value:function(i){return ir.getIn(this.state,i)}},{key:"_getContext",value:function(i){return this.contextTree.get(i)}},{key:"setContext",value:function(i,o){return this.contextTree.set(i,o)}},{key:"_hasRun",value:function(i){var o=this.getPluginRunCount(this.getCurrentPlugin());return o>(i||0)}},{key:"dispatch",value:function(){var i=this,o=this,s=this.nextPlugin();if(!s){var d=this.nextPromisedPatch();if(d)return d.then(function(){return i.dispatch()}).catch(function(){return i.dispatch()});var g={spec:this.state,errors:this.errors};return this.showDebug&&(g.patches=this.allPatches),ra().resolve(g)}if(o.pluginCount=o.pluginCount||{},o.pluginCount[s]=(o.pluginCount[s]||0)+1,o.pluginCount[s]>uf){var A;return ra().resolve({spec:o.state,errors:gt()(A=o.errors).call(A,new Error("We've reached a hard limit of ".concat(uf," plugin runs")))})}if(s!==this.currentPlugin&&this.promisedPatches.length){var x,w=er()(x=this.promisedPatches).call(x,function(re){return re.value});return ra().all(er()(w).call(w,function(re){return re.then(ba(),ba())})).then(function(){return i.dispatch()})}return F();function F(){o.currentPlugin=s;var re=o.getCurrentMutations(),ee=o.mutations.length-1;try{if(s.isGenerator){var se=Qi(s(re,o.getLib())),de;try{for(se.s();!(de=se.n()).done;){var pe=de.value;H(pe)}}catch(ve){se.e(ve)}finally{se.f()}}else{var xe=s(re,o.getLib());H(xe)}}catch(ve){console.error(ve),H([cn()(Object.create(ve),{plugin:s})])}finally{o.updatePluginHistory(s,{mutationIndex:ee})}return o.dispatch()}function H(re){re&&(re=ir.fullyNormalizeArray(re),o.updatePatches(re,s))}}}],[{key:"getPluginName",value:function(i){return i.pluginName}},{key:"getPatchesOfType",value:function(i,o){return gn()(i).call(i,o)}}]),t}();function jc(t){return new Bc(t).dispatch()}var On={refs:af,allOf:Rc,parameters:Dc,properties:Nc},go=a(13218),yo=a.n(go),Pa=function(r){return String.prototype.toLowerCase.call(r)},si=function(r){return r.replace(/[^\w]/gi,"_")};function ff(t){var r=t.openapi;return r?Ji()(r,"3"):!1}function qd(t){var r=t.swagger;return r?startsWith(r,"2"):!1}function xi(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=o.v2OperationIdCompatibilityMode;if(!t||lr(t)!=="object")return null;var d=(t.operationId||"").replace(/\s/g,"");return d.length?si(t.operationId):cf(r,i,{v2OperationIdCompatibilityMode:s})}function cf(t,r){var i,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=o.v2OperationIdCompatibilityMode;if(s){var d,g,A=gt()(d="".concat(r.toLowerCase(),"_")).call(d,t).replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return A=A||gt()(g="".concat(t.substring(1),"_")).call(g,r),A.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return gt()(i="".concat(Pa(r))).call(i,si(t))}function Pl(t,r){var i;return gt()(i="".concat(Pa(r),"-")).call(i,t)}function df(t,r){return!t||!t.paths?null:fs(t,function(i){var o=i.pathName,s=i.method,d=i.operation;if(!d||lr(d)!=="object")return!1;var g=d.operationId,A=xi(d,o,s),x=Pl(o,s);return[A,x,g].some(function(w){return w&&w===r})})}function fs(t,r){return fa(t,r,!0)||null}function fa(t,r,i){if(!t||lr(t)!=="object"||!t.paths||lr(t.paths)!=="object")return null;var o=t.paths;for(var s in o)for(var d in o[s])if(d.toUpperCase()!=="PARAMETERS"){var g=o[s][d];if(!(!g||lr(g)!=="object")){var A={spec:t,pathName:s,method:d.toUpperCase(),operation:g},x=r(A);if(i&&x)return A}}}function cs(t){var r=t.spec,i=r.paths,o={};if(!i||r.$$normalized)return t;for(var s in i){var d=i[s];if(!!yo()(d)){var g=d.parameters,A=function(H){var re=d[H];if(!yo()(re))return"continue";var ee=xi(re,s,H);if(ee){o[ee]?o[ee].push(re):o[ee]=[re];var se=o[ee];if(se.length>1)se.forEach(function(Ve,Ke){var Ze;Ve.__originalOperationId=Ve.__originalOperationId||Ve.operationId,Ve.operationId=gt()(Ze="".concat(ee)).call(Ze,Ke+1)});else if(typeof re.operationId!="undefined"){var de=se[0];de.__originalOperationId=de.__originalOperationId||re.operationId,de.operationId=ee}}if(H!=="parameters"){var pe=[],xe={};for(var ve in r)(ve==="produces"||ve==="consumes"||ve==="security")&&(xe[ve]=r[ve],pe.push(xe));if(g&&(xe.parameters=g,pe.push(xe)),pe.length){var we=Qi(pe),Ne;try{for(we.s();!(Ne=we.n()).done;){var Fe=Ne.value;for(var je in Fe)if(!re[je])re[je]=Fe[je];else if(je==="parameters"){var ke=Qi(Fe[je]),Me;try{var De=function(){var Ke=Me.value,Ze=re[je].some(function(_e){return _e.name&&_e.name===Ke.name||_e.$ref&&_e.$ref===Ke.$ref||_e.$$ref&&_e.$$ref===Ke.$$ref||_e===Ke});Ze||re[je].push(Ke)};for(ke.s();!(Me=ke.n()).done;)De()}catch(Ve){ke.e(Ve)}finally{ke.f()}}}}catch(Ve){we.e(Ve)}finally{we.f()}}}};for(var x in d)var w=A(x)}}return r.$$normalized=!0,t}function ds(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.requestInterceptor,o=r.responseInterceptor,s=t.withCredentials?"include":"same-origin";return function(d){return t({url:d,loadSpec:!0,requestInterceptor:i,responseInterceptor:o,headers:{Accept:Al},credentials:s}).then(function(g){return g.body})}}function Il(){On.refs.clearCache()}function pf(t){var r=t.fetch,i=t.spec,o=t.url,s=t.mode,d=t.allowMetaPatches,g=d===void 0?!0:d,A=t.pathDiscriminator,x=t.modelPropertyMacro,w=t.parameterMacro,F=t.requestInterceptor,H=t.responseInterceptor,re=t.skipNormalization,ee=t.useCircularStructures,se=t.http,de=t.baseDoc;if(de=de||o,se=r||se||Li,!i)return ds(se,{requestInterceptor:F,responseInterceptor:H})(de).then(pe);return pe(i);function pe(xe){de&&(On.refs.docCache[de]=xe),On.refs.fetchJSON=ds(se,{requestInterceptor:F,responseInterceptor:H});var ve=[On.refs];return typeof w=="function"&&ve.push(On.parameters),typeof x=="function"&&ve.push(On.properties),s!=="strict"&&ve.push(On.allOf),jc({spec:xe,context:{baseDoc:de},plugins:ve,allowMetaPatches:g,pathDiscriminator:A,parameterMacro:w,modelPropertyMacro:x,useCircularStructures:ee}).then(re?function(){var we=Ks(ur().mark(function Ne(Fe){return ur().wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return ke.abrupt("return",Fe);case 1:case"end":return ke.stop()}},Ne)}));return function(Ne){return we.apply(this,arguments)}}():cs)}}var mo=a(27361),Ia=a.n(mo);function Uc(t,r){return ps.apply(this,arguments)}function ps(){return ps=Ks(ur().mark(function t(r,i){var o,s,d,g,A,x,w,F,H,re,ee,se,de=arguments;return ur().wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return o=de.length>2&&de[2]!==void 0?de[2]:{},s=o.returnEntireTree,d=o.baseDoc,g=o.requestInterceptor,A=o.responseInterceptor,x=o.parameterMacro,w=o.modelPropertyMacro,F=o.useCircularStructures,H={pathDiscriminator:i,baseDoc:d,requestInterceptor:g,responseInterceptor:A,parameterMacro:x,modelPropertyMacro:w,useCircularStructures:F},re=cs({spec:r}),ee=re.spec,xe.next=6,pf(hr(hr({},H),{},{spec:ee,allowMetaPatches:!0,skipNormalization:!0}));case 6:return se=xe.sent,!s&&Array.isArray(i)&&i.length&&(se.spec=Ia()(se.spec,i)||null),xe.abrupt("return",se);case 9:case"end":return xe.stop()}},t)})),ps.apply(this,arguments)}var hs=function(){return null},Vc=function(r){return Array.isArray(r)?r:[r]},vs={mapTagOperations:Hc,makeExecute:xo};function xo(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return function(r){var i=r.pathName,o=r.method,s=r.operationId;return function(d){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.execute(hr(hr({spec:t.spec},jo()(t,"requestInterceptor","responseInterceptor","userFetch")),{},{pathName:i,method:o,parameters:d,operationId:s},g))}}}function Wc(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=vs.makeExecute(t),i=vs.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r}),o={};for(var s in i){o[s]={operations:{}};for(var d in i[s])o[s].operations[d]={execute:i[s][d]}}return{apis:o}}function hf(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=vs.makeExecute(t);return{apis:vs.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r})}}function Hc(t){var r=t.spec,i=t.cb,o=i===void 0?hs:i,s=t.defaultTag,d=s===void 0?"default":s,g=t.v2OperationIdCompatibilityMode,A={},x={};return fa(r,function(w){var F=w.pathName,H=w.method,re=w.operation,ee=re.tags?Vc(re.tags):[d];ee.forEach(function(se){if(typeof se=="string"){x[se]=x[se]||{};var de=x[se],pe=xi(re,F,H,{v2OperationIdCompatibilityMode:g}),xe=o({spec:r,pathName:F,method:H,operation:re,operationId:pe});if(A[pe]){var ve;A[pe]+=1,de[gt()(ve="".concat(pe)).call(ve,A[pe])]=xe}else if(typeof de[pe]!="undefined"){var we,Ne,Fe=A[pe]||1;A[pe]=Fe+1,de[gt()(we="".concat(pe)).call(we,A[pe])]=xe;var je=de[pe];delete de[pe],de[gt()(Ne="".concat(pe)).call(Ne,Fe)]=je}else de[pe]=xe}})}),x}var gs=a(95683);function vf(t,r){if(t==null)return{};var i={},o=js(t),s,d;for(d=0;d<o.length;d++)s=o[d],!(gs(r).call(r,s)>=0)&&(i[s]=t[s]);return i}function zc(t,r){if(t==null)return{};var i=vf(t,r),o,s;if(Ki){var d=Ki(t);for(s=0;s<d.length;s++)o=d[s],!(gs(r).call(r,o)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,o)||(i[o]=t[o]))}return i}var gf=a(68630),Fl=a.n(gf),Gc=a(1469),kl=a.n(Gc),bo=a(76489);const So={body:$c,header:Kc,query:Jc,path:Yc,formData:yf};function $c(t){var r=t.req,i=t.value;r.body=i}function yf(t){var r=t.req,i=t.value,o=t.parameter;(i||o.allowEmptyValue)&&(r.form=r.form||{},r.form[o.name]={value:i,allowEmptyValue:o.allowEmptyValue,collectionFormat:o.collectionFormat})}function Kc(t){var r=t.req,i=t.parameter,o=t.value;r.headers=r.headers||{},typeof o!="undefined"&&(r.headers[i.name]=o)}function Yc(t){var r=t.req,i=t.value,o=t.parameter;r.url=r.url.split("{".concat(o.name,"}")).join(encodeURIComponent(i))}function Jc(t){var r=t.req,i=t.value,o=t.parameter;if(r.query=r.query||{},i===!1&&o.type==="boolean"&&(i="false"),i===0&&["number","integer"].indexOf(o.type)>-1&&(i="0"),i)r.query[o.name]={collectionFormat:o.collectionFormat,value:i};else if(o.allowEmptyValue&&i!==void 0){var s=o.name;r.query[s]=r.query[s]||{},r.query[s].allowEmptyValue=!0}}function ys(t,r){return Bo()(r).call(r,"application/json")?typeof t=="string"?t:Ya()(t):t.toString()}function mf(t){var r=t.req,i=t.value,o=t.parameter,s=o.name,d=o.style,g=o.explode,A=o.content;if(A){var x=Qt()(A)[0];r.url=r.url.split("{".concat(s,"}")).join(Nr(ys(i,x),{escape:!0}));return}var w=ii({key:o.name,value:i,style:d||"simple",explode:g||!1,escape:!0});r.url=r.url.split("{".concat(s,"}")).join(w)}function Xc(t){var r=t.req,i=t.value,o=t.parameter;if(r.query=r.query||{},o.content){var s=Qt()(o.content)[0];r.query[o.name]=ys(i,s);return}if(i===!1&&(i="false"),i===0&&(i="0"),i)r.query[o.name]={value:i,serializationOption:jo()(o,["style","explode","allowReserved"])};else if(o.allowEmptyValue&&i!==void 0){var d=o.name;r.query[d]=r.query[d]||{},r.query[d].allowEmptyValue=!0}}var Qc=["accept","authorization","content-type"];function xf(t){var r=t.req,i=t.parameter,o=t.value;if(r.headers=r.headers||{},!(Qc.indexOf(i.name.toLowerCase())>-1)){if(i.content){var s=Qt()(i.content)[0];r.headers[i.name]=ys(o,s);return}typeof o!="undefined"&&(r.headers[i.name]=ii({key:i.name,value:o,style:i.style||"simple",explode:typeof i.explode=="undefined"?!1:i.explode,escape:!1}))}}function Ml(t){var r=t.req,i=t.parameter,o=t.value;r.headers=r.headers||{};var s=lr(o);if(i.content){var d,g=Qt()(i.content)[0];r.headers.Cookie=gt()(d="".concat(i.name,"=")).call(d,ys(o,g));return}if(s!=="undefined"){var A=s==="object"&&!Array.isArray(o)&&i.explode?"":"".concat(i.name,"=");r.headers.Cookie=A+ii({key:i.name,value:o,escape:!1,style:i.style||"form",explode:typeof i.explode=="undefined"?!1:i.explode})}}var bf=a(50706),Sf=a.n(bf);function Af(t,r){var i=t.operation,o=t.requestBody,s=t.securities,d=t.spec,g=t.attachContentTypeForEmptyPayload,A=t.requestContentType;r=Fa({request:r,securities:s,operation:i,spec:d});var x=i.requestBody||{},w=Qt()(x.content||{}),F=A&&w.indexOf(A)>-1;if(o||g){if(A&&F)r.headers["Content-Type"]=A;else if(!A){var H=w[0];H&&(r.headers["Content-Type"]=H,A=H)}}else A&&F&&(r.headers["Content-Type"]=A);if(!t.responseContentType&&i.responses){var re,ee=gn()(re=Ja()(i.responses)).call(re,function(de){var pe=fn(de,2),xe=pe[0],ve=pe[1],we=parseInt(xe,10);return we>=200&&we<300&&Fl()(ve.content)}).reduce(function(de,pe){var xe=fn(pe,2),ve=xe[1];return gt()(de).call(de,Qt()(ve.content))},[]);ee.length>0&&(r.headers.accept=ee.join(", "))}if(o)if(A){if(w.indexOf(A)>-1)if(A==="application/x-www-form-urlencoded"||A==="multipart/form-data")if(lr(o)==="object"){var se=(x.content[A]||{}).encoding||{};r.form={},Qt()(o).forEach(function(de){r.form[de]={value:o[de],encoding:se[de]||{}}})}else r.form=o;else r.body=o}else r.body=o;return r}function Fa(t){var r=t.request,i=t.securities,o=i===void 0?{}:i,s=t.operation,d=s===void 0?{}:s,g=t.spec,A=Yi()({},r),x=o.authorized,w=x===void 0?{}:x,F=d.security||g.security||[],H=w&&!!Qt()(w).length,re=Ia()(g,["components","securitySchemes"])||{};return A.headers=A.headers||{},A.query=A.query||{},!Qt()(o).length||!H||!F||Array.isArray(d.security)&&!d.security.length?r:(F.forEach(function(ee){Qt()(ee).forEach(function(se){var de=w[se],pe=re[se];if(!!de){var xe=de.value||de,ve=pe.type;if(de){if(ve==="apiKey")pe.in==="query"&&(A.query[pe.name]=xe),pe.in==="header"&&(A.headers[pe.name]=xe),pe.in==="cookie"&&(A.cookies[pe.name]=xe);else if(ve==="http"){if(/^basic$/i.test(pe.scheme)){var we,Ne=xe.username||"",Fe=xe.password||"",je=Sf()(gt()(we="".concat(Ne,":")).call(we,Fe));A.headers.Authorization="Basic ".concat(je)}/^bearer$/i.test(pe.scheme)&&(A.headers.Authorization="Bearer ".concat(xe))}else if(ve==="oauth2"||ve==="openIdConnect"){var ke,Me=de.token||{},De=pe["x-tokenName"]||"access_token",Ve=Me[De],Ke=Me.token_type;(!Ke||Ke.toLowerCase()==="bearer")&&(Ke="Bearer"),A.headers.Authorization=gt()(ke="".concat(Ke," ")).call(ke,Ve)}}}})}),A)}function wf(t,r){var i=t.spec,o=t.operation,s=t.securities,d=t.requestContentType,g=t.responseContentType,A=t.attachContentTypeForEmptyPayload;if(r=ms({request:r,securities:s,operation:o,spec:i}),r.body||r.form||A){var x,w;if(d)r.headers["Content-Type"]=d;else if(Array.isArray(o.consumes)){var F=fn(o.consumes,1);r.headers["Content-Type"]=F[0]}else if(Array.isArray(i.consumes)){var H=fn(i.consumes,1);r.headers["Content-Type"]=H[0]}else o.parameters&&gn()(x=o.parameters).call(x,function(pe){return pe.type==="file"}).length?r.headers["Content-Type"]="multipart/form-data":o.parameters&&gn()(w=o.parameters).call(w,function(pe){return pe.in==="formData"}).length&&(r.headers["Content-Type"]="application/x-www-form-urlencoded")}else if(d){var re,ee,se=o.parameters&&gn()(re=o.parameters).call(re,function(pe){return pe.in==="body"}).length>0,de=o.parameters&&gn()(ee=o.parameters).call(ee,function(pe){return pe.in==="formData"}).length>0;(se||de)&&(r.headers["Content-Type"]=d)}return!g&&Array.isArray(o.produces)&&o.produces.length>0&&(r.headers.accept=o.produces.join(", ")),r}function ms(t){var r=t.request,i=t.securities,o=i===void 0?{}:i,s=t.operation,d=s===void 0?{}:s,g=t.spec,A=Yi()({},r),x=o.authorized,w=x===void 0?{}:x,F=o.specSecurity,H=F===void 0?[]:F,re=d.security||H,ee=w&&!!Qt()(w).length,se=g.securityDefinitions;return A.headers=A.headers||{},A.query=A.query||{},!Qt()(o).length||!ee||!re||Array.isArray(d.security)&&!d.security.length?r:(re.forEach(function(de){Qt()(de).forEach(function(pe){var xe=w[pe];if(!!xe){var ve=xe.token,we=xe.value||xe,Ne=se[pe],Fe=Ne.type,je=Ne["x-tokenName"]||"access_token",ke=ve&&ve[je],Me=ve&&ve.token_type;if(xe){if(Fe==="apiKey"){var De=Ne.in==="query"?"query":"headers";A[De]=A[De]||{},A[De][Ne.name]=we}else if(Fe==="basic")if(we.header)A.headers.authorization=we.header;else{var Ve,Ke=we.username||"",Ze=we.password||"";we.base64=Sf()(gt()(Ve="".concat(Ke,":")).call(Ve,Ze)),A.headers.authorization="Basic ".concat(we.base64)}else if(Fe==="oauth2"&&ke){var _e;Me=!Me||Me.toLowerCase()==="bearer"?"Bearer":Me,A.headers.authorization=gt()(_e="".concat(Me," ")).call(_e,ke)}}}})}),A)}var Cf=function(r){return Array.isArray(r)?r:[]},Zc=Sl("OperationNotFoundError",function(r,i,o){this.originalError=o,cn()(this,i||{})}),qc=function(r,i){return gn()(i).call(i,function(o){return o.name===r})},yr=function(r){var i={};r.forEach(function(s){i[s.in]||(i[s.in]={}),i[s.in][s.name]=s});var o=[];return Qt()(i).forEach(function(s){Qt()(i[s]).forEach(function(d){o.push(i[s][d])})}),o},_c={buildRequest:ka};function Ll(t){var r=t.http,i=t.fetch,o=t.spec,s=t.operationId,d=t.pathName,g=t.method,A=t.parameters,x=t.securities,w=zc(t,["http","fetch","spec","operationId","pathName","method","parameters","securities"]),F=r||i||Li;d&&g&&!s&&(s=Pl(d,g));var H=_c.buildRequest(hr({spec:o,operationId:s,parameters:A,securities:x,http:F},w));return H.body&&(Fl()(H.body)||kl()(H.body))&&(H.body=Ya()(H.body)),F(H)}function ka(t){var r,i,o=t.spec,s=t.operationId,d=t.responseContentType,g=t.scheme,A=t.requestInterceptor,x=t.responseInterceptor,w=t.contextUrl,F=t.userFetch,H=t.server,re=t.serverVariables,ee=t.http,se=t.parameters,de=t.parameterBuilders,pe=ff(o);de||(pe?de=m:de=So);var xe=ee&&ee.withCredentials?"include":"same-origin",ve={url:"",credentials:xe,headers:{},cookies:{}};A&&(ve.requestInterceptor=A),x&&(ve.responseInterceptor=x),F&&(ve.userFetch=F);var we=df(o,s);if(!we)throw new Zc("Operation ".concat(s," not found"));var Ne=we.operation,Fe=Ne===void 0?{}:Ne,je=we.method,ke=we.pathName;if(ve.url+=Ao({spec:o,scheme:g,contextUrl:w,server:H,serverVariables:re,pathName:ke,method:je}),!s)return delete ve.cookies,ve;ve.url+=ke,ve.method="".concat(je).toUpperCase(),se=se||{};var Me=o.paths[ke]||{};d&&(ve.headers.accept=d);var De=yr(gt()(r=gt()(i=[]).call(i,Cf(Fe.parameters))).call(r,Cf(Me.parameters)));De.forEach(function(Ze){var _e=de[Ze.in],bt;if(Ze.in==="body"&&Ze.schema&&Ze.schema.properties&&(bt=se),bt=Ze&&Ze.name&&se[Ze.name],typeof bt=="undefined"){var Rt;bt=Ze&&Ze.name&&se[gt()(Rt="".concat(Ze.in,".")).call(Rt,Ze.name)]}else if(qc(Ze.name,De).length>1){var or;console.warn(gt()(or="Parameter '".concat(Ze.name,"' is ambiguous because the defined spec has more than one parameter with the name: '")).call(or,Ze.name,"' and the passed-in parameter values did not define an 'in' value."))}if(bt!==null){if(typeof Ze.default!="undefined"&&typeof bt=="undefined"&&(bt=Ze.default),typeof bt=="undefined"&&Ze.required&&!Ze.allowEmptyValue)throw new Error("Required parameter ".concat(Ze.name," is not provided"));if(pe&&Ze.schema&&Ze.schema.type==="object"&&typeof bt=="string")try{bt=JSON.parse(bt)}catch(Dr){throw new Error("Could not parse object parameter value string as JSON")}_e&&_e({req:ve,parameter:Ze,value:bt,operation:Fe,spec:o})}});var Ve=hr(hr({},t),{},{operation:Fe});if(pe?ve=Af(Ve,ve):ve=wf(Ve,ve),ve.cookies&&Qt()(ve.cookies).length){var Ke=Qt()(ve.cookies).reduce(function(Ze,_e){var bt=ve.cookies[_e],Rt=Ze?"&":"",or=bo.serialize(_e,bt);return Ze+Rt+or},"");ve.headers.Cookie=Ke}return ve.cookies&&delete ve.cookies,Ru(ve),ve}var Mn=function(r){return r?r.replace(/\W/g,""):null};function Ao(t){var r=ff(t.spec);return r?Rl(t):Tf(t)}function Rl(t){var r=t.spec,i=t.pathName,o=t.method,s=t.server,d=t.contextUrl,g=t.serverVariables,A=g===void 0?{}:g,x=Ia()(r,["paths",i,(o||"").toLowerCase(),"servers"])||Ia()(r,["paths",i,"servers"])||Ia()(r,["servers"]),w="",F=null;if(s&&x&&x.length){var H=er()(x).call(x,function(se){return se.url});H.indexOf(s)>-1&&(w=s,F=x[H.indexOf(s)])}if(!w&&x&&x.length){w=x[0].url;var re=fn(x,1);F=re[0]}if(w.indexOf("{")>-1){var ee=Of(w);ee.forEach(function(se){if(F.variables&&F.variables[se]){var de=F.variables[se],pe=A[se]||de.default,xe=new RegExp("{".concat(se,"}"),"g");w=w.replace(xe,pe)}})}return Ef(w,d)}function Ef(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=t&&r?ki.parse(ki.resolve(r,t)):ki.parse(t),o=ki.parse(r),s=Mn(i.protocol)||Mn(o.protocol)||"",d=i.host||o.host,g=i.pathname||"",A;if(s&&d){var x;A=gt()(x="".concat(s,"://")).call(x,d+g)}else A=g;return A[A.length-1]==="/"?Nn()(A).call(A,0,-1):A}function Of(t){for(var r=[],i=/{([^}]+)}/g,o;o=i.exec(t);)r.push(o[1]);return r}function Tf(t){var r=t.spec,i=t.scheme,o=t.contextUrl,s=o===void 0?"":o,d=ki.parse(s),g=Array.isArray(r.schemes)?r.schemes[0]:null,A=i||g||Mn(d.protocol)||"http",x=r.host||d.host||"",w=r.basePath||"",F;if(A&&x){var H;F=gt()(H="".concat(A,"://")).call(H,x+w)}else F=w;return F[F.length-1]==="/"?Nn()(F).call(F,0,-1):F}wr.http=Li,wr.makeHttp=ul.bind(null,wr.http),wr.resolve=pf,wr.resolveSubtree=Uc,wr.execute=Ll,wr.serializeRes=Mu,wr.serializeHeaders=sl,wr.clearCache=Il,wr.makeApisTagOperation=hf,wr.buildRequest=ka,wr.helpers={opId:xi},wr.getBaseUrl=Ao;function wr(t){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof t=="string"?i.url=t:i=t,!(this instanceof wr))return new wr(i);Yi()(this,i);var o=this.resolve().then(function(){return r.disableInterfaces||Yi()(r,wr.makeApisTagOperation(r)),r});return o.client=this,o}wr.prototype={http:Li,execute:function(r){return this.applyDefaults(),wr.execute(hr({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,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return wr.resolve(hr({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},i)).then(function(o){return r.originalSpec=r.spec,r.spec=o.spec,r.errors=o.errors,r})}},wr.prototype.applyDefaults=function(){var r=this.spec,i=this.url;if(i&&Ji()(i,"http")){var o=ki.parse(i);r.host||(r.host=o.host),r.schemes||(r.schemes=[o.protocol.replace(":","")]),r.basePath||(r.basePath="/")}};var ed=wr.helpers;const td=wr;var Ut=a(25446),Lt=a(76671),ar=a(7930),Ma=a(51027),Ui=a(78722),ca=a(17673),Vi=a(64776),xs=Object.defineProperty,rd=Object.defineProperties,Or=Object.getOwnPropertyDescriptors,Pf=Object.getOwnPropertySymbols,nd=Object.prototype.hasOwnProperty,id=Object.prototype.propertyIsEnumerable,wo=(t,r,i)=>r in t?xs(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,e=(t,r)=>{for(var i in r||(r={}))nd.call(r,i)&&wo(t,i,r[i]);if(Pf)for(var i of Pf(r))id.call(r,i)&&wo(t,i,r[i]);return t},n=(t,r)=>rd(t,Or(r)),u=(t,r,i)=>new Promise((o,s)=>{var d=x=>{try{A(i.next(x))}catch(w){s(w)}},g=x=>{try{A(i.throw(x))}catch(w){s(w)}},A=x=>x.done?o(x.value):Promise.resolve(x.value).then(d,g);A((i=i.apply(t,r)).next())});const l="/oauth2-redirect.html";class f{static authorizeImplicit({authorizationUrl:r,clientId:i,scopes:o,extraParams:s={},routingBasePath:d,redirectUri:g,successCallback:A,errorCallback:x}){const w=(0,Vi.p8)({date:new Date().toString()}),F=new URL(r),H=d==="/"?"":d,re=`${window.location.origin}${H}${l}`;F.searchParams.set("client_id",i),F.searchParams.set("redirect_uri",g||re),F.searchParams.set("response_type","token"),F.searchParams.set("state",w),Array.isArray(o)&&F.searchParams.set("scope",o.join(" "));for(const ee in s)F.searchParams.set(ee,s[ee]);window.redirectOAuth2={flow:"implicit",data:{authorizationUrl:r,clientId:i,scopes:o},state:w,successCallback:ee=>{A(ee),f.clearRedirectData("implicit")},errorCallback:ee=>{x(ee),f.clearRedirectData("implicit")}},window.open(F.toString())}static authorizeAuthorizationCode({authorizationUrl:r,tokenUrl:i,clientId:o,clientSecret:s,codeVerifier:d,codeChallenge:g,scopes:A,extraParams:x={},extraHeaders:w={},routingBasePath:F,redirectUri:H,successCallback:re,errorCallback:ee}){const se=new URL(r),de=F==="/"?"":F,pe=`${window.location.origin}${de}${l}`,xe=(0,Vi.p8)({date:new Date().toString()});se.searchParams.set("client_id",o),se.searchParams.set("redirect_uri",H||pe),se.searchParams.set("response_type","code"),se.searchParams.set("state",xe),Array.isArray(A)&&se.searchParams.set("scope",A.join(" ")),g&&(se.searchParams.set("code_challenge",g),se.searchParams.set("code_challenge_method","S256"));for(const ve in x)se.searchParams.set(ve,x[ve]);window.redirectOAuth2={flow:"authorizationCode",data:{authorizationUrl:r,clientId:o,scopes:A},state:xe,successCallback:ve=>u(this,[ve],function*({auth_code:we}){try{const Ne=yield fetch(i,{method:"POST",headers:e({"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},w),body:ca.stringify(e(n(e({client_id:o,client_secret:s},d&&{code_verifier:d}),{code:we,grant_type:"authorization_code",redirect_uri:H||pe}),x))});yield P(Ne,re,ee)}catch(Ne){ee(Ne)}f.clearRedirectData("authorizationCode")}),errorCallback:ve=>{ee(ve),f.clearRedirectData("authorizationCode")}},window.open(se.toString())}static clearRedirectData(r){window.redirectOAuth2={flow:r,data:{authorizationUrl:"",clientId:"",scopes:[]},state:"",successCallback:()=>{},errorCallback:()=>{}}}static authorizeClientCredentials(r){return u(this,arguments,function*({tokenUrl:i,clientId:o,clientSecret:s,scopes:d=[],extraParams:g={},extraHeaders:A={},successCallback:x,errorCallback:w}){try{const F=JSON.parse(JSON.stringify(e({client_id:o,client_secret:s,grant_type:"client_credentials",scope:Array.isArray(d)&&d.length?d.join(" "):void 0},g))),H=yield fetch(i,{method:"POST",headers:e({"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},A),body:ca.stringify(F)});yield P(H,x,w)}catch(F){w(F)}})}}const y=new f;function P(t,r,i){return u(this,null,function*(){if(t.ok){const o=yield t.json();r(o)}else i(new Error((t.headers.get("Content-Type")||"").indexOf("json")>-1?JSON.stringify(yield t.json()):yield t.text()))})}function B(t){return u(this,null,function*(){return(0,Vi.rS)(yield(0,Vi.JQ)(t))})}var W=a(68929),J;(function(t){t.STRING="string",t.ARRAY="array",t.OBJECT="object"})(J||(J={}));var ye;(function(t){t.BYTE="byte",t.BASE64="base64",t.BINARY="binary"})(ye||(ye={}));var Se=(t,r,i)=>new Promise((o,s)=>{var d=x=>{try{A(i.next(x))}catch(w){s(w)}},g=x=>{try{A(i.throw(x))}catch(w){s(w)}},A=x=>x.done?o(x.value):Promise.resolve(x.value).then(d,g);A((i=i.apply(t,r)).next())});const Ie=Object.values(ye),Ee=["application/octet-stream","application/pdf","application/gzip","application/zip"],Ue=["image/","audio/","video/"];function Ye(t){if(Ue.some(r=>t.startsWith(r)))return t}function et(t){return Ee.includes(t)?!0:Ue.some(r=>t.startsWith(r))}function at(t){const r=t.type==="array"?t.items:t;if(!r||!r.type||(r==null?void 0:r.type)==="any")return!0;const i=r.contentMediaType||"",o=r.format||r.contentEncoding||(et(i)?"binary":"");return r.type===J.STRING&&Ie.includes(o)}function lt(t,r){if(!t||!t.type||t.type==="any")return et(r);const i=t.format||t.contentEncoding||"";return t.type===J.STRING&&Ie.includes(i)}function it(t){return new Promise((r,i)=>{const o=new FileReader;o.onload=()=>{const d=o.result.replace(/data:.*\/.*;base64,/g,"");r(d)},o.onerror=()=>i(o.error),o.readAsDataURL(t)})}function pt({format:t,contentEncoding:r,contentMediaType:i}){return[t,r,i].includes(ye.BASE64)}function wt(t,r){return Se(this,null,function*(){const i=Object.values(t);let o=i.length===1?i[0]:i;return r.type===J.STRING&&pt(r)?o=yield it(i[0]):r.type===J.ARRAY&&r.items&&(pt(r.items)?o=yield Promise.all(i.map(d=>Se(this,null,function*(){return yield it(d)}))):o=i),o})}var $e=a(39713),Tt=a(23485),nr=a(8418),br=a(21096),Zt=a(67294),Tn=Object.defineProperty,mn=Object.defineProperties,Rr=Object.getOwnPropertyDescriptors,dn=Object.getOwnPropertySymbols,_r=Object.prototype.hasOwnProperty,jr=Object.prototype.propertyIsEnumerable,Tr=(t,r,i)=>r in t?Tn(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,vr=(t,r)=>{for(var i in r||(r={}))_r.call(r,i)&&Tr(t,i,r[i]);if(dn)for(var i of dn(r))jr.call(r,i)&&Tr(t,i,r[i]);return t},pn=(t,r)=>mn(t,Rr(r));const da=Tt.iv`
87
+ */var dl=new WeakMap,pl=function(){function t(r){this.observers=new Map,this.obj=r}return t}(),Vu=function(){function t(r,i){this.callback=r,this.observer=i}return t}();function hl(t){return dl.get(t)}function wc(t,r){return t.observers.get(r)}function vl(t,r){t.observers.delete(r.callback)}function gl(t,r){r.unobserve()}function Wu(t,r){var i=[],o,s=hl(t);if(!s)s=new pl(t),dl.set(t,s);else{var d=wc(s,r);o=d&&d.observer}if(o)return o;if(o={},s.value=Cn(t),r){o.callback=r,o.next=null;var y=function(){Zo(o)},A=function(){clearTimeout(o.next),o.next=setTimeout(y)};typeof window!="undefined"&&(window.addEventListener("mouseup",A),window.addEventListener("keyup",A),window.addEventListener("mousedown",A),window.addEventListener("keydown",A),window.addEventListener("change",A))}return o.patches=i,o.object=t,o.unobserve=function(){Zo(o),clearTimeout(o.next),vl(s,o),typeof window!="undefined"&&(window.removeEventListener("mouseup",A),window.removeEventListener("keyup",A),window.removeEventListener("mousedown",A),window.removeEventListener("keydown",A),window.removeEventListener("change",A))},s.observers.set(r,new Vu(r,o)),o}function Zo(t,r){r===void 0&&(r=!1);var i=dl.get(t.object);oo(i.value,t.object,t.patches,"",r),t.patches.length&&Qn(i.value,t.patches);var o=t.patches;return o.length>0&&(t.patches=[],t.callback&&t.callback(o)),o}function oo(t,r,i,o,s){if(r!==t){typeof r.toJSON=="function"&&(r=r.toJSON());for(var d=Xo(r),y=Xo(t),A=!1,x=!1,w=y.length-1;w>=0;w--){var F=y[w],W=t[F];if(gi(r,F)&&!(r[F]===void 0&&W!==void 0&&Array.isArray(r)===!1)){var re=r[F];typeof W=="object"&&W!=null&&typeof re=="object"&&re!=null?oo(W,re,i,o+"/"+yi(F),s):W!==re&&(A=!0,s&&i.push({op:"test",path:o+"/"+yi(F),value:Cn(W)}),i.push({op:"replace",path:o+"/"+yi(F),value:Cn(re)}))}else Array.isArray(t)===Array.isArray(r)?(s&&i.push({op:"test",path:o+"/"+yi(F),value:Cn(W)}),i.push({op:"remove",path:o+"/"+yi(F)}),x=!0):(s&&i.push({op:"test",path:o,value:t}),i.push({op:"replace",path:o,value:r}),A=!0)}if(!(!x&&d.length==y.length))for(var w=0;w<d.length;w++){var F=d[w];!gi(t,F)&&r[F]!==void 0&&i.push({op:"add",path:o+"/"+yi(F),value:Cn(r[F])})}}}function Hu(t,r,i){i===void 0&&(i=!1);var o=[];return oo(t,r,o,"",i),o}const qo=Object.assign({},c,v,{JsonPatchError:ju,deepClone:Cn,escapePathComponent:yi,unescapePathComponent:Ri});var Cc=a(31312),_o=a.n(Cc),mi=a(50361),zu=a.n(mi);const ir={add:tr,replace:kn,remove:Ni,merge:Bi,mergeDeep:$u,context:yl,getIn:ji,applyPatch:Gu,parentPathMatch:ml,flatten:so,fullyNormalizeArray:Yu,normalizeArray:xl,isPromise:Ju,forEachNew:Ku,forEachNewPrimitive:Ec,isJsonPatch:Zu,isContextPatch:Tc,isPatch:rs,isMutation:uo,isAdditiveMutation:fo,isGenerator:Oc,isFunction:Xu,isObject:ai,isError:Qu};function Gu(t,r,i){if(i=i||{},r=vr(vr({},r),{},{path:r.path&&En(r.path)}),r.op==="merge"){var o=ns(t,r.path);cn()(o,r.value),Qn(t,[kn(r.path,o)])}else if(r.op==="mergeDeep"){var s=ns(t,r.path);for(var d in r.value){var y=r.value[d],A=Array.isArray(y);if(A){var x=s[d]||[];s[d]=gt()(x).call(x,y)}else if(ai(y)&&!A){var w=vr({},s[d]);for(var F in y)if(Object.prototype.hasOwnProperty.call(w,F)){w=_o()(zu()(w),y);break}else cn()(w,Us({},F,y[F]));s[d]=w}else s[d]=y}}else if(r.op==="add"&&r.path===""&&ai(r.value)){var W=Qt()(r.value).reduce(function(he,xe){return he.push({op:"add",path:"/".concat(En(xe)),value:r.value[xe]}),he},[]);Qn(t,W)}else if(r.op==="replace"&&r.path===""){var re=r,ee=re.value;i.allowMetaPatches&&r.meta&&fo(r)&&(Array.isArray(r.value)||ai(r.value))&&(ee=vr(vr({},ee),r.meta)),t=ee}else if(Qn(t,[r]),i.allowMetaPatches&&r.meta&&fo(r)&&(Array.isArray(r.value)||ai(r.value))){var le=ns(t,r.path),de=vr(vr({},le),r.meta);Qn(t,[kn(r.path,de)])}return t}function En(t){return Array.isArray(t)?t.length<1?"":"/".concat(er()(t).call(t,function(r){return(r+"").replace(/~/g,"~0").replace(/\//g,"~1")}).join("/")):t}function tr(t,r){return{op:"add",path:t,value:r}}function kn(t,r,i){return{op:"replace",path:t,value:r,meta:i}}function Ni(t){return{op:"remove",path:t}}function Bi(t,r){return{type:"mutation",op:"merge",path:t,value:r}}function $u(t,r){return{type:"mutation",op:"mergeDeep",path:t,value:r}}function yl(t,r){return{type:"context",path:t,value:r}}function Ku(t,r){try{return es(t,ts,r)}catch(i){return i}}function Ec(t,r){try{return es(t,oa,r)}catch(i){return i}}function es(t,r,i){var o,s=er()(o=gn()(t).call(t,fo)).call(o,function(A){return r(A.value,i,A.path)})||[],d=so(s),y=lo(d);return y}function oa(t,r,i){if(i=i||[],Array.isArray(t))return er()(t).call(t,function(s,d){return oa(s,r,gt()(i).call(i,d))});if(ai(t)){var o;return er()(o=Qt()(t)).call(o,function(s){return oa(t[s],r,gt()(i).call(i,s))})}return r(t,i[i.length-1],i)}function ts(t,r,i){i=i||[];var o=[];if(i.length>0){var s=r(t,i[i.length-1],i);s&&(o=gt()(o).call(o,s))}if(Array.isArray(t)){var d=er()(t).call(t,function(x,w){return ts(x,r,gt()(i).call(i,w))});d&&(o=gt()(o).call(o,d))}else if(ai(t)){var y,A=er()(y=Qt()(t)).call(y,function(x){return ts(t[x],r,gt()(i).call(i,x))});A&&(o=gt()(o).call(o,A))}return o=so(o),o}function ml(t,r){if(!Array.isArray(r))return!1;for(var i=0,o=r.length;i<o;i+=1)if(r[i]!==t[i])return!1;return!0}function ji(t,r){return r.reduce(function(i,o){return typeof o!="undefined"&&i?i[o]:i},t)}function Yu(t){return lo(so(xl(t)))}function xl(t){return Array.isArray(t)?t:[t]}function so(t){var r;return gt()(r=[]).apply(r,Dn(er()(t).call(t,function(i){return Array.isArray(i)?so(i):i})))}function lo(t){return gn()(t).call(t,function(r){return typeof r!="undefined"})}function ai(t){return t&&lr(t)==="object"}function Ju(t){return ai(t)&&Xu(t.then)}function Xu(t){return t&&typeof t=="function"}function Qu(t){return t instanceof Error}function Zu(t){if(rs(t)){var r=t.op;return r==="add"||r==="remove"||r==="replace"}return!1}function Oc(t){return Object.prototype.toString.call(t)==="[object GeneratorFunction]"}function uo(t){return Zu(t)||rs(t)&&t.type==="mutation"}function fo(t){return uo(t)&&(t.op==="add"||t.op==="replace"||t.op==="merge"||t.op==="mergeDeep")}function Tc(t){return rs(t)&&t.type==="context"}function rs(t){return t&&lr(t)==="object"}function ns(t,r){try{return Br(t,r)}catch(i){return console.error(i),{}}}var Sa=a(52424),bl=a.n(Sa),is=a(54098),qu=a(9779),as=a.n(qu);function Sl(t,r){function i(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack;for(var o=arguments.length,s=new Array(o),d=0;d<o;d++)s[d]=arguments[d];this.message=s[0],r&&r.apply(this,s)}return i.prototype=new Error,i.prototype.name=t,i.prototype.constructor=i,i}var Pc=a(13692),_u=a.n(Pc),nn=a(47037),os=a.n(nn),ef=["properties"],tf=["properties"],rf=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],Aa=["schema/example","items/example"];function co(t){var r=t[t.length-1],i=t[t.length-2],o=t.join("/");return ef.indexOf(r)>-1&&tf.indexOf(i)===-1||rf.indexOf(o)>-1||Aa.some(function(s){return o.indexOf(s)>-1})}function nf(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.specmap,s=i.getBaseUrlForNodePath,d=s===void 0?function(w){var F;return o.getContext(gt()(F=[]).call(F,Dn(r),Dn(w))).baseDoc}:s,y=i.targetKeys,A=y===void 0?["$ref","$$ref"]:y,x=[];return _u()(t).forEach(function(){if(Bo()(A).call(A,this.key)&&os()(this.node)){var F=this.path,W=gt()(r).call(r,this.path),re=ss(this.node,d(F));x.push(o.replace(W,re))}}),x}function ss(t,r){var i,o=t.split("#"),s=fn(o,2),d=s[0],y=s[1],A=ki.resolve(d||"",r||"");return y?gt()(i="".concat(A,"#")).call(i,y):A}var Al="application/json, application/yaml",wa=new RegExp("^([a-z]+://|//)","i"),sa=Sl("JSONRefError",function(r,i,o){this.originalError=o,cn()(this,i||{})}),Bn={},wl=new(bl()),po=[function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="examples"},function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="content"&&t[7]==="example"},function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="content"&&t[7]==="examples"&&t[9]==="value"},function(t){return t[0]==="paths"&&t[3]==="requestBody"&&t[4]==="content"&&t[6]==="example"},function(t){return t[0]==="paths"&&t[3]==="requestBody"&&t[4]==="content"&&t[6]==="examples"&&t[8]==="value"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="example"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="example"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="examples"&&t[6]==="value"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="examples"&&t[7]==="value"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="content"&&t[6]==="example"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="content"&&t[6]==="examples"&&t[8]==="value"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[4]==="content"&&t[7]==="example"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="content"&&t[7]==="examples"&&t[9]==="value"}],Ic=function(r){return po.some(function(i){return i(r)})},Ca={key:"$ref",plugin:function(r,i,o,s){var d=s.getInstance(),y=Nn()(o).call(o,0,-1);if(!(co(y)||Ic(y))){var A=s.getContext(o),x=A.baseDoc;if(typeof r!="string")return new sa("$ref: must be a string (JSON-Ref)",{$ref:r,baseDoc:x,fullPath:o});var w=Ea(r),F=w[0],W=w[1]||"",re;try{re=x||F?El(F,x):null}catch(ve){return la(ve,{pointer:W,$ref:r,basePath:re,fullPath:o})}var ee,le;if(Mc(W,re,y,s)&&!d.useCircularStructures){var de=ss(r,re);return r===de?null:ir.replace(o,de)}if(re==null?(le=oi(W),ee=s.get(le),typeof ee=="undefined"&&(ee=new sa("Could not resolve reference: ".concat(r),{pointer:W,$ref:r,baseDoc:x,fullPath:o}))):(ee=Oa(re,W),ee.__value!=null?ee=ee.__value:ee=ee.catch(function(ve){throw la(ve,{pointer:W,$ref:r,baseDoc:x,fullPath:o})})),ee instanceof Error)return[ir.remove(o),ee];var he=ss(r,re),xe=ir.replace(y,ee,{$$ref:he});if(re&&re!==x)return[xe,ir.context(y,{baseDoc:re})];try{if(!Lc(s.state,xe)||d.useCircularStructures)return xe}catch(ve){return null}}}},Cl=cn()(Ca,{docCache:Bn,absoluteify:El,clearCache:ho,JSONRefError:sa,wrapError:la,getDoc:Ol,split:Ea,extractFromDoc:Oa,fetchJSON:Fc,extract:ls,jsonPointerToArray:oi,unescapeJsonPointerToken:ua});const af=Cl;function El(t,r){if(!wa.test(t)){if(!r){var i;throw new sa(gt()(i="Tried to resolve a relative URL, without having a basePath. path: '".concat(t,"' basePath: '")).call(i,r,"'"))}return ki.resolve(r,t)}return t}function la(t,r){var i;if(t&&t.response&&t.response.body){var o;i=gt()(o="".concat(t.response.body.code," ")).call(o,t.response.body.message)}else i=t.message;return new sa("Could not resolve reference: ".concat(i),r,t)}function Ea(t){return(t+"").split("#")}function Oa(t,r){var i=Bn[t];if(i&&!ir.isPromise(i))try{var o=ls(r,i);return cn()(ra().resolve(o),{__value:o})}catch(s){return ra().reject(s)}return Ol(t).then(function(s){return ls(r,s)})}function ho(t){typeof t!="undefined"?delete Bn[t]:Qt()(Bn).forEach(function(r){delete Bn[r]})}function Ol(t){var r=Bn[t];return r?ir.isPromise(r)?r:ra().resolve(r):(Bn[t]=Cl.fetchJSON(t).then(function(i){return Bn[t]=i,i}),Bn[t])}function Fc(t){return(0,is.fetch)(t,{headers:{Accept:Al},loadSpec:!0}).then(function(r){return r.text()}).then(function(r){return Xs().safeLoad(r)})}function ls(t,r){var i=oi(t);if(i.length<1)return r;var o=ir.getIn(r,i);if(typeof o=="undefined")throw new sa("Could not resolve pointer: ".concat(t," does not exist in document"),{pointer:t});return o}function oi(t){var r;if(typeof t!="string")throw new TypeError("Expected a string, got a ".concat(lr(t)));return t[0]==="/"&&(t=t.substr(1)),t===""?[]:er()(r=t.split("/")).call(r,ua)}function ua(t){return typeof t!="string"?t:as().unescape(t.replace(/~1/g,"/").replace(/~0/g,"~"))}function Ta(t){return as().escape(t.replace(/~/g,"~0").replace(/\//g,"~1"))}function kc(t){return t.length===0?"":"/".concat(er()(t).call(t,Ta).join("/"))}var of=function(r){return!r||r==="/"||r==="#"};function Tl(t,r){if(of(r))return!0;var i=t.charAt(r.length),o=Nn()(r).call(r,-1);return t.indexOf(r)===0&&(!i||i==="/"||i==="#")&&o!=="#"}function Mc(t,r,i,o){var s,d,y=wl.get(o);y||(y={},wl.set(o,y));var A=kc(i),x=gt()(s="".concat(r||"<specmap-base>","#")).call(s,t),w=A.replace(/allOf\/\d+\/?/g,""),F=o.contextTree.get([]).baseDoc;if(r==F&&Tl(w,t))return!0;var W="",re=i.some(function(ee){var le;return W=gt()(le="".concat(W,"/")).call(le,Ta(ee)),y[W]&&y[W].some(function(de){return Tl(de,x)||Tl(x,de)})});if(re)return!0;y[w]=gt()(d=y[w]||[]).call(d,x)}function Lc(t,r){var i=[t];return r.path.reduce(function(s,d){return i.push(s[d]),s[d]},t),o(r.value);function o(s){return ir.isObject(s)&&(i.indexOf(s)>=0||Qt()(s).some(function(d){return o(s[d])}))}}var yn=a(41609),sf=a.n(yn);const Rc={key:"allOf",plugin:function(r,i,o,s,d){if(!(d.meta&&d.meta.$$ref)){var y=Nn()(o).call(o,0,-1);if(!co(y)){if(!Array.isArray(r)){var A=new TypeError("allOf must be an array");return A.fullPath=o,A}var x=!1,w=d.value;if(y.forEach(function(re){!w||(w=w[re])}),w=vr({},w),!sf()(w)){delete w.allOf;var F=[];if(F.push(s.replace(y,{})),r.forEach(function(re,ee){if(!s.isObject(re)){if(x)return null;x=!0;var le=new TypeError("Elements in allOf must be objects");return le.fullPath=o,F.push(le)}F.push(s.mergeDeep(y,re));var de=Nn()(o).call(o,0,-1),he=nf(re,de,{getBaseUrlForNodePath:function(ve){var we;return s.getContext(gt()(we=[]).call(we,Dn(o),[ee],Dn(ve))).baseDoc},specmap:s});F.push.apply(F,Dn(he))}),F.push(s.mergeDeep(y,w)),!w.$$ref){var W;F.push(s.remove(gt()(W=[]).call(W,y,"$$ref")))}return F}}}}},Dc={key:"parameters",plugin:function(r,i,o,s){if(Array.isArray(r)&&r.length){var d=cn()([],r),y=Nn()(o).call(o,0,-1),A=vr({},ir.getIn(s.spec,y));return r.forEach(function(x,w){try{d[w].default=s.parameterMacro(A,x)}catch(W){var F=new Error(W);return F.fullPath=o,F}}),ir.replace(o,d)}return ir.replace(o,r)}},Nc={key:"properties",plugin:function(r,i,o,s){var d=vr({},r);for(var y in r)try{d[y].default=s.modelPropertyMacro(d[y])}catch(w){var A=new Error(w);return A.fullPath=o,A}var x=ir.replace(o,d);return x}};var lf=function(){function t(r){Uo(this,t),this.root=us(r||{})}return qs(t,[{key:"set",value:function(i,o){var s=this.getParent(i,!0);if(!s){vo(this.root,o,null);return}var d=i[i.length-1],y=s.children;if(y[d]){vo(y[d],o,s);return}y[d]=us(o,s)}},{key:"get",value:function(i){if(i=i||[],i.length<1)return this.root.value;for(var o=this.root,s,d,y=0;y<i.length&&(d=i[y],s=o.children,!!s[d]);y+=1)o=s[d];return o&&o.protoValue}},{key:"getParent",value:function(i,o){return!i||i.length<1?null:i.length<2?this.root:Nn()(i).call(i,0,-1).reduce(function(s,d){if(!s)return s;var y=s.children;return!y[d]&&o&&(y[d]=us(null,s)),y[d]},this.root)}}]),t}();function us(t,r){return vo({children:{}},t,r)}function vo(t,r,i){return t.value=r||{},t.protoValue=i?vr(vr({},i.protoValue),t.value):t.value,Qt()(t.children).forEach(function(o){var s=t.children[o];t.children[o]=vo(s,s.value,t)}),t}var uf=100,Bc=function(){function t(r){var i=this,o,s;Uo(this,t),cn()(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new lf,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:cn()(Object.create(this),ir,{getInstance:function(){return i}}),allowMetaPatches:!1},r),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=gn()(o=er()(s=this.plugins).call(s,this.wrapPlugin.bind(this))).call(o,ir.isFunction),this.patches.push(ir.add([],this.spec)),this.patches.push(ir.context([],this.context)),this.updatePatches(this.patches)}return qs(t,[{key:"debug",value:function(i){if(this.debugLevel===i){for(var o,s=arguments.length,d=new Array(s>1?s-1:0),y=1;y<s;y++)d[y-1]=arguments[y];(o=console).log.apply(o,d)}}},{key:"verbose",value:function(i){if(this.debugLevel==="verbose"){for(var o,s,d=arguments.length,y=new Array(d>1?d-1:0),A=1;A<d;A++)y[A-1]=arguments[A];(o=console).log.apply(o,gt()(s=["[".concat(i,"] ")]).call(s,y))}}},{key:"wrapPlugin",value:function(i,o){var s=this.pathDiscriminator,d=null,y;return i[this.pluginProp]?(d=i,y=i[this.pluginProp]):ir.isFunction(i)?y=i:ir.isObject(i)&&(y=A(i)),cn()(y.bind(d),{pluginName:i.name||o,isGenerator:ir.isGenerator(y)});function A(x){var w=function(W,re){return Array.isArray(W)?W.every(function(ee,le){return ee===re[le]}):!0};return ur().mark(function F(W,re){var ee,le,de,he,xe,ve;return ur().wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:ve=function(je,ke,Me){var De,Ve,Ke,Ze,_e,bt,Rt,or,Dr,Ir,rn,Er,Hr;return ur().wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:if(ir.isObject(je)){Yt.next=6;break}if(x.key!==ke[ke.length-1]){Yt.next=4;break}return Yt.next=4,x.plugin(je,x.key,ke,re);case 4:Yt.next=30;break;case 6:De=ke.length-1,Ve=ke[De],Ke=ke.indexOf("properties"),Ze=Ve==="properties"&&De===Ke,_e=re.allowMetaPatches&&le[je.$$ref],bt=0,Rt=Qt()(je);case 12:if(!(bt<Rt.length)){Yt.next=30;break}if(or=Rt[bt],Dr=je[or],Ir=gt()(ke).call(ke,or),rn=ir.isObject(Dr),Er=je.$$ref,_e){Yt.next=22;break}if(!rn){Yt.next=22;break}return re.allowMetaPatches&&Er&&(le[Er]=!0),Yt.delegateYield(ve(Dr,Ir,Me),"t0",22);case 22:if(!(!Ze&&or===x.key)){Yt.next=27;break}if(Hr=w(s,ke),!(!s||Hr)){Yt.next=27;break}return Yt.next=27,x.plugin(Dr,or,Ir,re,Me);case 27:bt++,Yt.next=12;break;case 30:case"end":return Yt.stop()}},ee)},ee=ur().mark(ve),le={},de=Qi(gn()(W).call(W,ir.isAdditiveMutation)),Ne.prev=4,de.s();case 6:if((he=de.n()).done){Ne.next=11;break}return xe=he.value,Ne.delegateYield(ve(xe.value,xe.path,xe),"t0",9);case 9:Ne.next=6;break;case 11:Ne.next=16;break;case 13:Ne.prev=13,Ne.t1=Ne.catch(4),de.e(Ne.t1);case 16:return Ne.prev=16,de.f(),Ne.finish(16);case 19:case"end":return Ne.stop()}},F,null,[[4,13,16,19]])})}}},{key:"nextPlugin",value:function(){var i=this;return Nu()(this.wrappedPlugins,function(o){var s=i.getMutationsForPlugin(o);return s.length>0})}},{key:"nextPromisedPatch",value:function(){if(this.promisedPatches.length>0){var i;return ra().race(er()(i=this.promisedPatches).call(i,function(o){return o.value}))}}},{key:"getPluginHistory",value:function(i){var o=this.constructor.getPluginName(i);return this.pluginHistory[o]||[]}},{key:"getPluginRunCount",value:function(i){return this.getPluginHistory(i).length}},{key:"getPluginHistoryTip",value:function(i){var o=this.getPluginHistory(i),s=o&&o[o.length-1];return s||{}}},{key:"getPluginMutationIndex",value:function(i){var o=this.getPluginHistoryTip(i).mutationIndex;return typeof o!="number"?-1:o}},{key:"updatePluginHistory",value:function(i,o){var s=this.constructor.getPluginName(i);this.pluginHistory[s]=this.pluginHistory[s]||[],this.pluginHistory[s].push(o)}},{key:"updatePatches",value:function(i){var o=this;ir.normalizeArray(i).forEach(function(s){if(s instanceof Error){o.errors.push(s);return}try{if(!ir.isObject(s)){o.debug("updatePatches","Got a non-object patch",s);return}if(o.showDebug&&o.allPatches.push(s),ir.isPromise(s.value)){o.promisedPatches.push(s),o.promisedPatchThen(s);return}if(ir.isContextPatch(s)){o.setContext(s.path,s.value);return}if(ir.isMutation(s)){o.updateMutations(s);return}}catch(d){console.error(d),o.errors.push(d)}})}},{key:"updateMutations",value:function(i){lr(i.value)==="object"&&!Array.isArray(i.value)&&this.allowMetaPatches&&(i.value=vr({},i.value));var o=ir.applyPatch(this.state,i,{allowMetaPatches:this.allowMetaPatches});o&&(this.mutations.push(i),this.state=o)}},{key:"removePromisedPatch",value:function(i){var o,s=this.promisedPatches.indexOf(i);if(s<0){this.debug("Tried to remove a promisedPatch that isn't there!");return}Du()(o=this.promisedPatches).call(o,s,1)}},{key:"promisedPatchThen",value:function(i){var o=this;return i.value=i.value.then(function(s){var d=vr(vr({},i),{},{value:s});o.removePromisedPatch(i),o.updatePatches(d)}).catch(function(s){o.removePromisedPatch(i),o.updatePatches(s)}),i.value}},{key:"getMutations",value:function(i,o){var s;return i=i||0,typeof o!="number"&&(o=this.mutations.length),Nn()(s=this.mutations).call(s,i,o)}},{key:"getCurrentMutations",value:function(){return this.getMutationsForPlugin(this.getCurrentPlugin())}},{key:"getMutationsForPlugin",value:function(i){var o=this.getPluginMutationIndex(i);return this.getMutations(o+1)}},{key:"getCurrentPlugin",value:function(){return this.currentPlugin}},{key:"getLib",value:function(){return this.libMethods}},{key:"_get",value:function(i){return ir.getIn(this.state,i)}},{key:"_getContext",value:function(i){return this.contextTree.get(i)}},{key:"setContext",value:function(i,o){return this.contextTree.set(i,o)}},{key:"_hasRun",value:function(i){var o=this.getPluginRunCount(this.getCurrentPlugin());return o>(i||0)}},{key:"dispatch",value:function(){var i=this,o=this,s=this.nextPlugin();if(!s){var d=this.nextPromisedPatch();if(d)return d.then(function(){return i.dispatch()}).catch(function(){return i.dispatch()});var y={spec:this.state,errors:this.errors};return this.showDebug&&(y.patches=this.allPatches),ra().resolve(y)}if(o.pluginCount=o.pluginCount||{},o.pluginCount[s]=(o.pluginCount[s]||0)+1,o.pluginCount[s]>uf){var A;return ra().resolve({spec:o.state,errors:gt()(A=o.errors).call(A,new Error("We've reached a hard limit of ".concat(uf," plugin runs")))})}if(s!==this.currentPlugin&&this.promisedPatches.length){var x,w=er()(x=this.promisedPatches).call(x,function(re){return re.value});return ra().all(er()(w).call(w,function(re){return re.then(ba(),ba())})).then(function(){return i.dispatch()})}return F();function F(){o.currentPlugin=s;var re=o.getCurrentMutations(),ee=o.mutations.length-1;try{if(s.isGenerator){var le=Qi(s(re,o.getLib())),de;try{for(le.s();!(de=le.n()).done;){var he=de.value;W(he)}}catch(ve){le.e(ve)}finally{le.f()}}else{var xe=s(re,o.getLib());W(xe)}}catch(ve){console.error(ve),W([cn()(Object.create(ve),{plugin:s})])}finally{o.updatePluginHistory(s,{mutationIndex:ee})}return o.dispatch()}function W(re){re&&(re=ir.fullyNormalizeArray(re),o.updatePatches(re,s))}}}],[{key:"getPluginName",value:function(i){return i.pluginName}},{key:"getPatchesOfType",value:function(i,o){return gn()(i).call(i,o)}}]),t}();function jc(t){return new Bc(t).dispatch()}var On={refs:af,allOf:Rc,parameters:Dc,properties:Nc},go=a(13218),yo=a.n(go),Pa=function(r){return String.prototype.toLowerCase.call(r)},si=function(r){return r.replace(/[^\w]/gi,"_")};function ff(t){var r=t.openapi;return r?Ji()(r,"3"):!1}function qd(t){var r=t.swagger;return r?startsWith(r,"2"):!1}function xi(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=o.v2OperationIdCompatibilityMode;if(!t||lr(t)!=="object")return null;var d=(t.operationId||"").replace(/\s/g,"");return d.length?si(t.operationId):cf(r,i,{v2OperationIdCompatibilityMode:s})}function cf(t,r){var i,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=o.v2OperationIdCompatibilityMode;if(s){var d,y,A=gt()(d="".concat(r.toLowerCase(),"_")).call(d,t).replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return A=A||gt()(y="".concat(t.substring(1),"_")).call(y,r),A.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return gt()(i="".concat(Pa(r))).call(i,si(t))}function Pl(t,r){var i;return gt()(i="".concat(Pa(r),"-")).call(i,t)}function df(t,r){return!t||!t.paths?null:fs(t,function(i){var o=i.pathName,s=i.method,d=i.operation;if(!d||lr(d)!=="object")return!1;var y=d.operationId,A=xi(d,o,s),x=Pl(o,s);return[A,x,y].some(function(w){return w&&w===r})})}function fs(t,r){return fa(t,r,!0)||null}function fa(t,r,i){if(!t||lr(t)!=="object"||!t.paths||lr(t.paths)!=="object")return null;var o=t.paths;for(var s in o)for(var d in o[s])if(d.toUpperCase()!=="PARAMETERS"){var y=o[s][d];if(!(!y||lr(y)!=="object")){var A={spec:t,pathName:s,method:d.toUpperCase(),operation:y},x=r(A);if(i&&x)return A}}}function cs(t){var r=t.spec,i=r.paths,o={};if(!i||r.$$normalized)return t;for(var s in i){var d=i[s];if(!!yo()(d)){var y=d.parameters,A=function(W){var re=d[W];if(!yo()(re))return"continue";var ee=xi(re,s,W);if(ee){o[ee]?o[ee].push(re):o[ee]=[re];var le=o[ee];if(le.length>1)le.forEach(function(Ve,Ke){var Ze;Ve.__originalOperationId=Ve.__originalOperationId||Ve.operationId,Ve.operationId=gt()(Ze="".concat(ee)).call(Ze,Ke+1)});else if(typeof re.operationId!="undefined"){var de=le[0];de.__originalOperationId=de.__originalOperationId||re.operationId,de.operationId=ee}}if(W!=="parameters"){var he=[],xe={};for(var ve in r)(ve==="produces"||ve==="consumes"||ve==="security")&&(xe[ve]=r[ve],he.push(xe));if(y&&(xe.parameters=y,he.push(xe)),he.length){var we=Qi(he),Ne;try{for(we.s();!(Ne=we.n()).done;){var Fe=Ne.value;for(var je in Fe)if(!re[je])re[je]=Fe[je];else if(je==="parameters"){var ke=Qi(Fe[je]),Me;try{var De=function(){var Ke=Me.value,Ze=re[je].some(function(_e){return _e.name&&_e.name===Ke.name||_e.$ref&&_e.$ref===Ke.$ref||_e.$$ref&&_e.$$ref===Ke.$$ref||_e===Ke});Ze||re[je].push(Ke)};for(ke.s();!(Me=ke.n()).done;)De()}catch(Ve){ke.e(Ve)}finally{ke.f()}}}}catch(Ve){we.e(Ve)}finally{we.f()}}}};for(var x in d)var w=A(x)}}return r.$$normalized=!0,t}function ds(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.requestInterceptor,o=r.responseInterceptor,s=t.withCredentials?"include":"same-origin";return function(d){return t({url:d,loadSpec:!0,requestInterceptor:i,responseInterceptor:o,headers:{Accept:Al},credentials:s}).then(function(y){return y.body})}}function Il(){On.refs.clearCache()}function pf(t){var r=t.fetch,i=t.spec,o=t.url,s=t.mode,d=t.allowMetaPatches,y=d===void 0?!0:d,A=t.pathDiscriminator,x=t.modelPropertyMacro,w=t.parameterMacro,F=t.requestInterceptor,W=t.responseInterceptor,re=t.skipNormalization,ee=t.useCircularStructures,le=t.http,de=t.baseDoc;if(de=de||o,le=r||le||Li,!i)return ds(le,{requestInterceptor:F,responseInterceptor:W})(de).then(he);return he(i);function he(xe){de&&(On.refs.docCache[de]=xe),On.refs.fetchJSON=ds(le,{requestInterceptor:F,responseInterceptor:W});var ve=[On.refs];return typeof w=="function"&&ve.push(On.parameters),typeof x=="function"&&ve.push(On.properties),s!=="strict"&&ve.push(On.allOf),jc({spec:xe,context:{baseDoc:de},plugins:ve,allowMetaPatches:y,pathDiscriminator:A,parameterMacro:w,modelPropertyMacro:x,useCircularStructures:ee}).then(re?function(){var we=Ks(ur().mark(function Ne(Fe){return ur().wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return ke.abrupt("return",Fe);case 1:case"end":return ke.stop()}},Ne)}));return function(Ne){return we.apply(this,arguments)}}():cs)}}var mo=a(27361),Ia=a.n(mo);function Uc(t,r){return ps.apply(this,arguments)}function ps(){return ps=Ks(ur().mark(function t(r,i){var o,s,d,y,A,x,w,F,W,re,ee,le,de=arguments;return ur().wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return o=de.length>2&&de[2]!==void 0?de[2]:{},s=o.returnEntireTree,d=o.baseDoc,y=o.requestInterceptor,A=o.responseInterceptor,x=o.parameterMacro,w=o.modelPropertyMacro,F=o.useCircularStructures,W={pathDiscriminator:i,baseDoc:d,requestInterceptor:y,responseInterceptor:A,parameterMacro:x,modelPropertyMacro:w,useCircularStructures:F},re=cs({spec:r}),ee=re.spec,xe.next=6,pf(vr(vr({},W),{},{spec:ee,allowMetaPatches:!0,skipNormalization:!0}));case 6:return le=xe.sent,!s&&Array.isArray(i)&&i.length&&(le.spec=Ia()(le.spec,i)||null),xe.abrupt("return",le);case 9:case"end":return xe.stop()}},t)})),ps.apply(this,arguments)}var hs=function(){return null},Vc=function(r){return Array.isArray(r)?r:[r]},vs={mapTagOperations:Hc,makeExecute:xo};function xo(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return function(r){var i=r.pathName,o=r.method,s=r.operationId;return function(d){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.execute(vr(vr({spec:t.spec},jo()(t,"requestInterceptor","responseInterceptor","userFetch")),{},{pathName:i,method:o,parameters:d,operationId:s},y))}}}function Wc(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=vs.makeExecute(t),i=vs.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r}),o={};for(var s in i){o[s]={operations:{}};for(var d in i[s])o[s].operations[d]={execute:i[s][d]}}return{apis:o}}function hf(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=vs.makeExecute(t);return{apis:vs.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r})}}function Hc(t){var r=t.spec,i=t.cb,o=i===void 0?hs:i,s=t.defaultTag,d=s===void 0?"default":s,y=t.v2OperationIdCompatibilityMode,A={},x={};return fa(r,function(w){var F=w.pathName,W=w.method,re=w.operation,ee=re.tags?Vc(re.tags):[d];ee.forEach(function(le){if(typeof le=="string"){x[le]=x[le]||{};var de=x[le],he=xi(re,F,W,{v2OperationIdCompatibilityMode:y}),xe=o({spec:r,pathName:F,method:W,operation:re,operationId:he});if(A[he]){var ve;A[he]+=1,de[gt()(ve="".concat(he)).call(ve,A[he])]=xe}else if(typeof de[he]!="undefined"){var we,Ne,Fe=A[he]||1;A[he]=Fe+1,de[gt()(we="".concat(he)).call(we,A[he])]=xe;var je=de[he];delete de[he],de[gt()(Ne="".concat(he)).call(Ne,Fe)]=je}else de[he]=xe}})}),x}var gs=a(95683);function vf(t,r){if(t==null)return{};var i={},o=js(t),s,d;for(d=0;d<o.length;d++)s=o[d],!(gs(r).call(r,s)>=0)&&(i[s]=t[s]);return i}function zc(t,r){if(t==null)return{};var i=vf(t,r),o,s;if(Ki){var d=Ki(t);for(s=0;s<d.length;s++)o=d[s],!(gs(r).call(r,o)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,o)||(i[o]=t[o]))}return i}var gf=a(68630),Fl=a.n(gf),Gc=a(1469),kl=a.n(Gc),bo=a(76489);const So={body:$c,header:Kc,query:Jc,path:Yc,formData:yf};function $c(t){var r=t.req,i=t.value;r.body=i}function yf(t){var r=t.req,i=t.value,o=t.parameter;(i||o.allowEmptyValue)&&(r.form=r.form||{},r.form[o.name]={value:i,allowEmptyValue:o.allowEmptyValue,collectionFormat:o.collectionFormat})}function Kc(t){var r=t.req,i=t.parameter,o=t.value;r.headers=r.headers||{},typeof o!="undefined"&&(r.headers[i.name]=o)}function Yc(t){var r=t.req,i=t.value,o=t.parameter;r.url=r.url.split("{".concat(o.name,"}")).join(encodeURIComponent(i))}function Jc(t){var r=t.req,i=t.value,o=t.parameter;if(r.query=r.query||{},i===!1&&o.type==="boolean"&&(i="false"),i===0&&["number","integer"].indexOf(o.type)>-1&&(i="0"),i)r.query[o.name]={collectionFormat:o.collectionFormat,value:i};else if(o.allowEmptyValue&&i!==void 0){var s=o.name;r.query[s]=r.query[s]||{},r.query[s].allowEmptyValue=!0}}function ys(t,r){return Bo()(r).call(r,"application/json")?typeof t=="string"?t:Ya()(t):t.toString()}function mf(t){var r=t.req,i=t.value,o=t.parameter,s=o.name,d=o.style,y=o.explode,A=o.content;if(A){var x=Qt()(A)[0];r.url=r.url.split("{".concat(s,"}")).join(Nr(ys(i,x),{escape:!0}));return}var w=ii({key:o.name,value:i,style:d||"simple",explode:y||!1,escape:!0});r.url=r.url.split("{".concat(s,"}")).join(w)}function Xc(t){var r=t.req,i=t.value,o=t.parameter;if(r.query=r.query||{},o.content){var s=Qt()(o.content)[0];r.query[o.name]=ys(i,s);return}if(i===!1&&(i="false"),i===0&&(i="0"),i)r.query[o.name]={value:i,serializationOption:jo()(o,["style","explode","allowReserved"])};else if(o.allowEmptyValue&&i!==void 0){var d=o.name;r.query[d]=r.query[d]||{},r.query[d].allowEmptyValue=!0}}var Qc=["accept","authorization","content-type"];function xf(t){var r=t.req,i=t.parameter,o=t.value;if(r.headers=r.headers||{},!(Qc.indexOf(i.name.toLowerCase())>-1)){if(i.content){var s=Qt()(i.content)[0];r.headers[i.name]=ys(o,s);return}typeof o!="undefined"&&(r.headers[i.name]=ii({key:i.name,value:o,style:i.style||"simple",explode:typeof i.explode=="undefined"?!1:i.explode,escape:!1}))}}function Ml(t){var r=t.req,i=t.parameter,o=t.value;r.headers=r.headers||{};var s=lr(o);if(i.content){var d,y=Qt()(i.content)[0];r.headers.Cookie=gt()(d="".concat(i.name,"=")).call(d,ys(o,y));return}if(s!=="undefined"){var A=s==="object"&&!Array.isArray(o)&&i.explode?"":"".concat(i.name,"=");r.headers.Cookie=A+ii({key:i.name,value:o,escape:!1,style:i.style||"form",explode:typeof i.explode=="undefined"?!1:i.explode})}}var bf=a(50706),Sf=a.n(bf);function Af(t,r){var i=t.operation,o=t.requestBody,s=t.securities,d=t.spec,y=t.attachContentTypeForEmptyPayload,A=t.requestContentType;r=Fa({request:r,securities:s,operation:i,spec:d});var x=i.requestBody||{},w=Qt()(x.content||{}),F=A&&w.indexOf(A)>-1;if(o||y){if(A&&F)r.headers["Content-Type"]=A;else if(!A){var W=w[0];W&&(r.headers["Content-Type"]=W,A=W)}}else A&&F&&(r.headers["Content-Type"]=A);if(!t.responseContentType&&i.responses){var re,ee=gn()(re=Ja()(i.responses)).call(re,function(de){var he=fn(de,2),xe=he[0],ve=he[1],we=parseInt(xe,10);return we>=200&&we<300&&Fl()(ve.content)}).reduce(function(de,he){var xe=fn(he,2),ve=xe[1];return gt()(de).call(de,Qt()(ve.content))},[]);ee.length>0&&(r.headers.accept=ee.join(", "))}if(o)if(A){if(w.indexOf(A)>-1)if(A==="application/x-www-form-urlencoded"||A==="multipart/form-data")if(lr(o)==="object"){var le=(x.content[A]||{}).encoding||{};r.form={},Qt()(o).forEach(function(de){r.form[de]={value:o[de],encoding:le[de]||{}}})}else r.form=o;else r.body=o}else r.body=o;return r}function Fa(t){var r=t.request,i=t.securities,o=i===void 0?{}:i,s=t.operation,d=s===void 0?{}:s,y=t.spec,A=Yi()({},r),x=o.authorized,w=x===void 0?{}:x,F=d.security||y.security||[],W=w&&!!Qt()(w).length,re=Ia()(y,["components","securitySchemes"])||{};return A.headers=A.headers||{},A.query=A.query||{},!Qt()(o).length||!W||!F||Array.isArray(d.security)&&!d.security.length?r:(F.forEach(function(ee){Qt()(ee).forEach(function(le){var de=w[le],he=re[le];if(!!de){var xe=de.value||de,ve=he.type;if(de){if(ve==="apiKey")he.in==="query"&&(A.query[he.name]=xe),he.in==="header"&&(A.headers[he.name]=xe),he.in==="cookie"&&(A.cookies[he.name]=xe);else if(ve==="http"){if(/^basic$/i.test(he.scheme)){var we,Ne=xe.username||"",Fe=xe.password||"",je=Sf()(gt()(we="".concat(Ne,":")).call(we,Fe));A.headers.Authorization="Basic ".concat(je)}/^bearer$/i.test(he.scheme)&&(A.headers.Authorization="Bearer ".concat(xe))}else if(ve==="oauth2"||ve==="openIdConnect"){var ke,Me=de.token||{},De=he["x-tokenName"]||"access_token",Ve=Me[De],Ke=Me.token_type;(!Ke||Ke.toLowerCase()==="bearer")&&(Ke="Bearer"),A.headers.Authorization=gt()(ke="".concat(Ke," ")).call(ke,Ve)}}}})}),A)}function wf(t,r){var i=t.spec,o=t.operation,s=t.securities,d=t.requestContentType,y=t.responseContentType,A=t.attachContentTypeForEmptyPayload;if(r=ms({request:r,securities:s,operation:o,spec:i}),r.body||r.form||A){var x,w;if(d)r.headers["Content-Type"]=d;else if(Array.isArray(o.consumes)){var F=fn(o.consumes,1);r.headers["Content-Type"]=F[0]}else if(Array.isArray(i.consumes)){var W=fn(i.consumes,1);r.headers["Content-Type"]=W[0]}else o.parameters&&gn()(x=o.parameters).call(x,function(he){return he.type==="file"}).length?r.headers["Content-Type"]="multipart/form-data":o.parameters&&gn()(w=o.parameters).call(w,function(he){return he.in==="formData"}).length&&(r.headers["Content-Type"]="application/x-www-form-urlencoded")}else if(d){var re,ee,le=o.parameters&&gn()(re=o.parameters).call(re,function(he){return he.in==="body"}).length>0,de=o.parameters&&gn()(ee=o.parameters).call(ee,function(he){return he.in==="formData"}).length>0;(le||de)&&(r.headers["Content-Type"]=d)}return!y&&Array.isArray(o.produces)&&o.produces.length>0&&(r.headers.accept=o.produces.join(", ")),r}function ms(t){var r=t.request,i=t.securities,o=i===void 0?{}:i,s=t.operation,d=s===void 0?{}:s,y=t.spec,A=Yi()({},r),x=o.authorized,w=x===void 0?{}:x,F=o.specSecurity,W=F===void 0?[]:F,re=d.security||W,ee=w&&!!Qt()(w).length,le=y.securityDefinitions;return A.headers=A.headers||{},A.query=A.query||{},!Qt()(o).length||!ee||!re||Array.isArray(d.security)&&!d.security.length?r:(re.forEach(function(de){Qt()(de).forEach(function(he){var xe=w[he];if(!!xe){var ve=xe.token,we=xe.value||xe,Ne=le[he],Fe=Ne.type,je=Ne["x-tokenName"]||"access_token",ke=ve&&ve[je],Me=ve&&ve.token_type;if(xe){if(Fe==="apiKey"){var De=Ne.in==="query"?"query":"headers";A[De]=A[De]||{},A[De][Ne.name]=we}else if(Fe==="basic")if(we.header)A.headers.authorization=we.header;else{var Ve,Ke=we.username||"",Ze=we.password||"";we.base64=Sf()(gt()(Ve="".concat(Ke,":")).call(Ve,Ze)),A.headers.authorization="Basic ".concat(we.base64)}else if(Fe==="oauth2"&&ke){var _e;Me=!Me||Me.toLowerCase()==="bearer"?"Bearer":Me,A.headers.authorization=gt()(_e="".concat(Me," ")).call(_e,ke)}}}})}),A)}var Cf=function(r){return Array.isArray(r)?r:[]},Zc=Sl("OperationNotFoundError",function(r,i,o){this.originalError=o,cn()(this,i||{})}),qc=function(r,i){return gn()(i).call(i,function(o){return o.name===r})},mr=function(r){var i={};r.forEach(function(s){i[s.in]||(i[s.in]={}),i[s.in][s.name]=s});var o=[];return Qt()(i).forEach(function(s){Qt()(i[s]).forEach(function(d){o.push(i[s][d])})}),o},_c={buildRequest:ka};function Ll(t){var r=t.http,i=t.fetch,o=t.spec,s=t.operationId,d=t.pathName,y=t.method,A=t.parameters,x=t.securities,w=zc(t,["http","fetch","spec","operationId","pathName","method","parameters","securities"]),F=r||i||Li;d&&y&&!s&&(s=Pl(d,y));var W=_c.buildRequest(vr({spec:o,operationId:s,parameters:A,securities:x,http:F},w));return W.body&&(Fl()(W.body)||kl()(W.body))&&(W.body=Ya()(W.body)),F(W)}function ka(t){var r,i,o=t.spec,s=t.operationId,d=t.responseContentType,y=t.scheme,A=t.requestInterceptor,x=t.responseInterceptor,w=t.contextUrl,F=t.userFetch,W=t.server,re=t.serverVariables,ee=t.http,le=t.parameters,de=t.parameterBuilders,he=ff(o);de||(he?de=m:de=So);var xe=ee&&ee.withCredentials?"include":"same-origin",ve={url:"",credentials:xe,headers:{},cookies:{}};A&&(ve.requestInterceptor=A),x&&(ve.responseInterceptor=x),F&&(ve.userFetch=F);var we=df(o,s);if(!we)throw new Zc("Operation ".concat(s," not found"));var Ne=we.operation,Fe=Ne===void 0?{}:Ne,je=we.method,ke=we.pathName;if(ve.url+=Ao({spec:o,scheme:y,contextUrl:w,server:W,serverVariables:re,pathName:ke,method:je}),!s)return delete ve.cookies,ve;ve.url+=ke,ve.method="".concat(je).toUpperCase(),le=le||{};var Me=o.paths[ke]||{};d&&(ve.headers.accept=d);var De=mr(gt()(r=gt()(i=[]).call(i,Cf(Fe.parameters))).call(r,Cf(Me.parameters)));De.forEach(function(Ze){var _e=de[Ze.in],bt;if(Ze.in==="body"&&Ze.schema&&Ze.schema.properties&&(bt=le),bt=Ze&&Ze.name&&le[Ze.name],typeof bt=="undefined"){var Rt;bt=Ze&&Ze.name&&le[gt()(Rt="".concat(Ze.in,".")).call(Rt,Ze.name)]}else if(qc(Ze.name,De).length>1){var or;console.warn(gt()(or="Parameter '".concat(Ze.name,"' is ambiguous because the defined spec has more than one parameter with the name: '")).call(or,Ze.name,"' and the passed-in parameter values did not define an 'in' value."))}if(bt!==null){if(typeof Ze.default!="undefined"&&typeof bt=="undefined"&&(bt=Ze.default),typeof bt=="undefined"&&Ze.required&&!Ze.allowEmptyValue)throw new Error("Required parameter ".concat(Ze.name," is not provided"));if(he&&Ze.schema&&Ze.schema.type==="object"&&typeof bt=="string")try{bt=JSON.parse(bt)}catch(Dr){throw new Error("Could not parse object parameter value string as JSON")}_e&&_e({req:ve,parameter:Ze,value:bt,operation:Fe,spec:o})}});var Ve=vr(vr({},t),{},{operation:Fe});if(he?ve=Af(Ve,ve):ve=wf(Ve,ve),ve.cookies&&Qt()(ve.cookies).length){var Ke=Qt()(ve.cookies).reduce(function(Ze,_e){var bt=ve.cookies[_e],Rt=Ze?"&":"",or=bo.serialize(_e,bt);return Ze+Rt+or},"");ve.headers.Cookie=Ke}return ve.cookies&&delete ve.cookies,Ru(ve),ve}var Mn=function(r){return r?r.replace(/\W/g,""):null};function Ao(t){var r=ff(t.spec);return r?Rl(t):Tf(t)}function Rl(t){var r=t.spec,i=t.pathName,o=t.method,s=t.server,d=t.contextUrl,y=t.serverVariables,A=y===void 0?{}:y,x=Ia()(r,["paths",i,(o||"").toLowerCase(),"servers"])||Ia()(r,["paths",i,"servers"])||Ia()(r,["servers"]),w="",F=null;if(s&&x&&x.length){var W=er()(x).call(x,function(le){return le.url});W.indexOf(s)>-1&&(w=s,F=x[W.indexOf(s)])}if(!w&&x&&x.length){w=x[0].url;var re=fn(x,1);F=re[0]}if(w.indexOf("{")>-1){var ee=Of(w);ee.forEach(function(le){if(F.variables&&F.variables[le]){var de=F.variables[le],he=A[le]||de.default,xe=new RegExp("{".concat(le,"}"),"g");w=w.replace(xe,he)}})}return Ef(w,d)}function Ef(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=t&&r?ki.parse(ki.resolve(r,t)):ki.parse(t),o=ki.parse(r),s=Mn(i.protocol)||Mn(o.protocol)||"",d=i.host||o.host,y=i.pathname||"",A;if(s&&d){var x;A=gt()(x="".concat(s,"://")).call(x,d+y)}else A=y;return A[A.length-1]==="/"?Nn()(A).call(A,0,-1):A}function Of(t){for(var r=[],i=/{([^}]+)}/g,o;o=i.exec(t);)r.push(o[1]);return r}function Tf(t){var r=t.spec,i=t.scheme,o=t.contextUrl,s=o===void 0?"":o,d=ki.parse(s),y=Array.isArray(r.schemes)?r.schemes[0]:null,A=i||y||Mn(d.protocol)||"http",x=r.host||d.host||"",w=r.basePath||"",F;if(A&&x){var W;F=gt()(W="".concat(A,"://")).call(W,x+w)}else F=w;return F[F.length-1]==="/"?Nn()(F).call(F,0,-1):F}wr.http=Li,wr.makeHttp=ul.bind(null,wr.http),wr.resolve=pf,wr.resolveSubtree=Uc,wr.execute=Ll,wr.serializeRes=Mu,wr.serializeHeaders=sl,wr.clearCache=Il,wr.makeApisTagOperation=hf,wr.buildRequest=ka,wr.helpers={opId:xi},wr.getBaseUrl=Ao;function wr(t){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof t=="string"?i.url=t:i=t,!(this instanceof wr))return new wr(i);Yi()(this,i);var o=this.resolve().then(function(){return r.disableInterfaces||Yi()(r,wr.makeApisTagOperation(r)),r});return o.client=this,o}wr.prototype={http:Li,execute:function(r){return this.applyDefaults(),wr.execute(vr({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,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return wr.resolve(vr({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},i)).then(function(o){return r.originalSpec=r.spec,r.spec=o.spec,r.errors=o.errors,r})}},wr.prototype.applyDefaults=function(){var r=this.spec,i=this.url;if(i&&Ji()(i,"http")){var o=ki.parse(i);r.host||(r.host=o.host),r.schemes||(r.schemes=[o.protocol.replace(":","")]),r.basePath||(r.basePath="/")}};var ed=wr.helpers;const td=wr;var jt=a(25446),Lt=a(76671),ar=a(7930),Ma=a(51027),Ui=a(78722),ca=a(17673),Vi=a(64776),xs=Object.defineProperty,rd=Object.defineProperties,Or=Object.getOwnPropertyDescriptors,Pf=Object.getOwnPropertySymbols,nd=Object.prototype.hasOwnProperty,id=Object.prototype.propertyIsEnumerable,wo=(t,r,i)=>r in t?xs(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,e=(t,r)=>{for(var i in r||(r={}))nd.call(r,i)&&wo(t,i,r[i]);if(Pf)for(var i of Pf(r))id.call(r,i)&&wo(t,i,r[i]);return t},n=(t,r)=>rd(t,Or(r)),u=(t,r,i)=>new Promise((o,s)=>{var d=x=>{try{A(i.next(x))}catch(w){s(w)}},y=x=>{try{A(i.throw(x))}catch(w){s(w)}},A=x=>x.done?o(x.value):Promise.resolve(x.value).then(d,y);A((i=i.apply(t,r)).next())});const l="/oauth2-redirect.html";class f{static authorizeImplicit({authorizationUrl:r,clientId:i,scopes:o,extraParams:s={},routingBasePath:d,redirectUri:y,successCallback:A,errorCallback:x}){const w=(0,Vi.p8)({date:new Date().toString()}),F=new URL(r),W=d==="/"?"":d,re=`${window.location.origin}${W}${l}`;F.searchParams.set("client_id",i),F.searchParams.set("redirect_uri",y||re),F.searchParams.set("response_type","token"),F.searchParams.set("state",w),Array.isArray(o)&&F.searchParams.set("scope",o.join(" "));for(const ee in s)F.searchParams.set(ee,s[ee]);window.redirectOAuth2={flow:"implicit",data:{authorizationUrl:r,clientId:i,scopes:o},state:w,successCallback:ee=>{A(ee),f.clearRedirectData("implicit")},errorCallback:ee=>{x(ee),f.clearRedirectData("implicit")}},window.open(F.toString())}static authorizeAuthorizationCode({authorizationUrl:r,tokenUrl:i,clientId:o,clientSecret:s,codeVerifier:d,codeChallenge:y,scopes:A,extraParams:x={},extraHeaders:w={},routingBasePath:F,redirectUri:W,successCallback:re,errorCallback:ee}){const le=new URL(r),de=F==="/"?"":F,he=`${window.location.origin}${de}${l}`,xe=(0,Vi.p8)({date:new Date().toString()});le.searchParams.set("client_id",o),le.searchParams.set("redirect_uri",W||he),le.searchParams.set("response_type","code"),le.searchParams.set("state",xe),Array.isArray(A)&&le.searchParams.set("scope",A.join(" ")),y&&(le.searchParams.set("code_challenge",y),le.searchParams.set("code_challenge_method","S256"));for(const ve in x)le.searchParams.set(ve,x[ve]);window.redirectOAuth2={flow:"authorizationCode",data:{authorizationUrl:r,clientId:o,scopes:A},state:xe,successCallback:ve=>u(this,[ve],function*({auth_code:we}){try{const Ne=yield fetch(i,{method:"POST",headers:e({"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},w),body:ca.stringify(e(n(e({client_id:o,client_secret:s},d&&{code_verifier:d}),{code:we,grant_type:"authorization_code",redirect_uri:W||he}),x))});yield P(Ne,re,ee)}catch(Ne){ee(Ne)}f.clearRedirectData("authorizationCode")}),errorCallback:ve=>{ee(ve),f.clearRedirectData("authorizationCode")}},window.open(le.toString())}static clearRedirectData(r){window.redirectOAuth2={flow:r,data:{authorizationUrl:"",clientId:"",scopes:[]},state:"",successCallback:()=>{},errorCallback:()=>{}}}static authorizeClientCredentials(r){return u(this,arguments,function*({tokenUrl:i,clientId:o,clientSecret:s,scopes:d=[],extraParams:y={},extraHeaders:A={},successCallback:x,errorCallback:w}){try{const F=JSON.parse(JSON.stringify(e({client_id:o,client_secret:s,grant_type:"client_credentials",scope:Array.isArray(d)&&d.length?d.join(" "):void 0},y))),W=yield fetch(i,{method:"POST",headers:e({"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},A),body:ca.stringify(F)});yield P(W,x,w)}catch(F){w(F)}})}}const g=new f;function P(t,r,i){return u(this,null,function*(){if(t.ok){const o=yield t.json();r(o)}else i(new Error((t.headers.get("Content-Type")||"").indexOf("json")>-1?JSON.stringify(yield t.json()):yield t.text()))})}function B(t){return u(this,null,function*(){return(0,Vi.rS)(yield(0,Vi.JQ)(t))})}var H=a(68929),J;(function(t){t.STRING="string",t.ARRAY="array",t.OBJECT="object"})(J||(J={}));var ye;(function(t){t.BYTE="byte",t.BASE64="base64",t.BINARY="binary"})(ye||(ye={}));var Se=(t,r,i)=>new Promise((o,s)=>{var d=x=>{try{A(i.next(x))}catch(w){s(w)}},y=x=>{try{A(i.throw(x))}catch(w){s(w)}},A=x=>x.done?o(x.value):Promise.resolve(x.value).then(d,y);A((i=i.apply(t,r)).next())});const Ie=Object.values(ye),Ee=["application/octet-stream","application/pdf","application/gzip","application/zip"],Ue=["image/","audio/","video/"];function Ye(t){if(Ue.some(r=>t.startsWith(r)))return t}function et(t){return Ee.includes(t)?!0:Ue.some(r=>t.startsWith(r))}function at(t){const r=t.type==="array"?t.items:t;if(!r||!r.type||(r==null?void 0:r.type)==="any")return!0;const i=r.contentMediaType||"",o=r.format||r.contentEncoding||(et(i)?"binary":"");return r.type===J.STRING&&Ie.includes(o)}function lt(t,r){if(!t||!t.type||t.type==="any")return et(r);const i=t.format||t.contentEncoding||"";return t.type===J.STRING&&Ie.includes(i)}function it(t){return new Promise((r,i)=>{const o=new FileReader;o.onload=()=>{const d=o.result.replace(/data:.*\/.*;base64,/g,"");r(d)},o.onerror=()=>i(o.error),o.readAsDataURL(t)})}function pt({format:t,contentEncoding:r,contentMediaType:i}){return[t,r,i].includes(ye.BASE64)}function wt(t,r){return Se(this,null,function*(){const i=Object.values(t);let o=i.length===1?i[0]:i;return r.type===J.STRING&&pt(r)?o=yield it(i[0]):r.type===J.ARRAY&&r.items&&(pt(r.items)?o=yield Promise.all(i.map(d=>Se(this,null,function*(){return yield it(d)}))):o=i),o})}var $e=a(39713),Tt=a(23485),nr=a(8418),br=a(21096),Zt=a(67294),Tn=Object.defineProperty,mn=Object.defineProperties,Rr=Object.getOwnPropertyDescriptors,dn=Object.getOwnPropertySymbols,_r=Object.prototype.hasOwnProperty,jr=Object.prototype.propertyIsEnumerable,Tr=(t,r,i)=>r in t?Tn(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,gr=(t,r)=>{for(var i in r||(r={}))_r.call(r,i)&&Tr(t,i,r[i]);if(dn)for(var i of dn(r))jr.call(r,i)&&Tr(t,i,r[i]);return t},pn=(t,r)=>mn(t,Rr(r));const da=Tt.iv`
88
88
  border: none;
89
89
  outline: none;
90
90
  padding: 8px;
@@ -119,7 +119,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
119
119
  cursor: pointer;
120
120
  text-align: center;
121
121
  ${({theme:t})=>(0,Tt.QG)({color:t.rightPanel.textColor})}
122
- `;function Dl(t,r){const{fullWidth:i,errorMessage:o,type:s}=t,[d,g]=(0,h.useState)(s==="password"),A=(0,h.useCallback)(()=>{g(!d)},[d]);return Zt.createElement(bi,{fullWidth:i,type:s},Zt.createElement(an,null,Zt.createElement(li,pn(vr({},t),{type:d?"password":"text",inputType:s,ref:r})),t.inputActionButton?Zt.createElement(Ur,{onClick:t.inputActionButton.onClick},t.inputActionButton.label):s==="password"?Zt.createElement(Ur,{onClick:A},d?"show":"hide"):null),o?Zt.createElement($e.Xq,null,o):null)}const Ln=(0,h.forwardRef)(Dl);function Vr(t){const r=Rn(vr({fieldType:"text"},t)),{userProps:i,render:o,fieldState:s}=r,d=r.informed;return o(Zt.createElement(Ln,pn(vr(vr({},i),d),{errorMessage:s.error})))}const Wr=Zr(({initValue:t,options:r,fieldApi:i,fieldState:o})=>{const s=r.map((w,F)=>({value:w.title||w.value,idx:F,origValue:w.value})),d=s.find(w=>w.origValue===t),[g,A]=(0,h.useState)(d==null?void 0:d.value);(0,nr.b6)(()=>{t&&i.setValue(t)});const x=(0,h.useCallback)(w=>{i.setValue(s[w.idx].origValue),A(s[w.idx].value)},[i,s]);return Zt.createElement(bi,{fullWidth:!0},Zt.createElement(br.Dropdown,{fullWidth:!0,variant:"dark",value:g,options:s,onChange:x}),o.error?Zt.createElement($e.Xq,null,o.error):null)});var Ra=a(67294);const nv=Zr(({initValue:t,paramEnum:r,fieldApi:i})=>{const[o,s]=(0,h.useState)(),d=r.map((x,w)=>({idx:w,value:x})),g=x=>{i.setValue(x.value),s(x.value)};(0,nr.b6)(()=>{if(!!t)if(Array.isArray(t)){const x=t.length?t[0]:"";s(x),i.setValue(x)}else s(t),i.setValue(t)});const A=()=>{i.setValue(""),s("")};return Ra.createElement(br.Dropdown,{clearable:!0,fullWidth:!0,variant:"dark",value:o,options:d,handleClear:A,onChange:g})});var _d=a(29163),Co=a(67294);const iv=({name:t,param:r,place:i,renderParameter:o})=>{var s,d,g,A,x;const[w,F]=(0,h.useState)([]),H=()=>{F([...w,w.length?w[w.length-1]+1:0])},re=se=>{F(w.filter(de=>de!==se))},ee=((s=r.schema.items)==null?void 0:s.fields)?(d=r.schema.items)==null?void 0:d.fields:[{schema:((g=r.schema.items)==null?void 0:g.schema)||r.schema.items,name:"",required:r.required,description:(A=r.schema.items)==null?void 0:A.description,externalDocs:(x=r.schema.items)==null?void 0:x.externalDocs,deprecated:!1,toggle:()=>null,expanded:!1}];return Co.createElement(Co.Fragment,null,Co.createElement(ep,null,Co.createElement($e.lX,{required:r.required},t,"(",w.length," items)"),Co.createElement("span",{onClick:H},"Add item +")),w==null?void 0:w.map((se,de)=>Co.createElement(ep,{key:se},Co.createElement(av,{onClick:()=>re(se)},"delete"),ee.map(pe=>o(pe,i,`${t}.[${se}]`,`[${de}]${pe.name&&"."+pe.name}`)))))},ep=_d.default.div`
122
+ `;function Dl(t,r){const{fullWidth:i,errorMessage:o,type:s}=t,[d,y]=(0,h.useState)(s==="password"),A=(0,h.useCallback)(()=>{y(!d)},[d]);return Zt.createElement(bi,{fullWidth:i,type:s},Zt.createElement(an,null,Zt.createElement(li,pn(gr({},t),{type:d?"password":"text",inputType:s,ref:r})),t.inputActionButton?Zt.createElement(Ur,{onClick:t.inputActionButton.onClick},t.inputActionButton.label):s==="password"?Zt.createElement(Ur,{onClick:A},d?"show":"hide"):null),o?Zt.createElement($e.Xq,null,o):null)}const Ln=(0,h.forwardRef)(Dl);function Vr(t){const r=Rn(gr({fieldType:"text"},t)),{userProps:i,render:o,fieldState:s}=r,d=r.informed;return o(Zt.createElement(Ln,pn(gr(gr({},i),d),{errorMessage:s.error})))}const Wr=Zr(({initValue:t,options:r,fieldApi:i,fieldState:o})=>{const s=r.map((w,F)=>({value:w.title||w.value,idx:F,origValue:w.value})),d=s.find(w=>w.origValue===t),[y,A]=(0,h.useState)(d==null?void 0:d.value);(0,nr.b6)(()=>{t&&i.setValue(t)});const x=(0,h.useCallback)(w=>{i.setValue(s[w.idx].origValue),A(s[w.idx].value)},[i,s]);return Zt.createElement(bi,{fullWidth:!0},Zt.createElement(br.Dropdown,{fullWidth:!0,variant:"dark",value:y,options:s,onChange:x}),o.error?Zt.createElement($e.Xq,null,o.error):null)});var Ra=a(67294);const nv=Zr(({initValue:t,paramEnum:r,fieldApi:i})=>{const[o,s]=(0,h.useState)(),d=r.map((x,w)=>({idx:w,value:x})),y=x=>{i.setValue(x.value),s(x.value)};(0,nr.b6)(()=>{if(!!t)if(Array.isArray(t)){const x=t.length?t[0]:"";s(x),i.setValue(x)}else s(t),i.setValue(t)});const A=()=>{i.setValue(""),s("")};return Ra.createElement(br.Dropdown,{clearable:!0,fullWidth:!0,variant:"dark",value:o,options:d,handleClear:A,onChange:y})});var _d=a(29163),Co=a(67294);const iv=({name:t,param:r,place:i,renderParameter:o})=>{const[s,d]=(0,h.useState)([]),y=(0,h.useCallback)(()=>{d([...s,s.length?s[s.length-1]+1:0])},[s]),A=(0,h.useCallback)(w=>{d(s.filter(F=>F!==w))},[s]),x=(0,h.useMemo)(()=>{var w,F,W,re,ee;return((w=r.schema.items)==null?void 0:w.fields)?(F=r.schema.items)==null?void 0:F.fields:[{schema:((W=r.schema.items)==null?void 0:W.schema)||r.schema.items,name:"",required:r.required,description:(re=r.schema.items)==null?void 0:re.description,externalDocs:(ee=r.schema.items)==null?void 0:ee.externalDocs,deprecated:!1,toggle:()=>null,expanded:!1}]},[r.required,r.schema.items]);return Co.createElement(Co.Fragment,null,Co.createElement(ep,null,Co.createElement($e.lX,{required:r.required},t,"(",s.length," items)"),Co.createElement("span",{onClick:y},"Add item +")),s==null?void 0:s.map((w,F)=>Co.createElement(ep,{key:w},Co.createElement(av,{onClick:()=>A(w)},"delete"),x.map(W=>o(W,i,`${(0,jt.A8)(t)}.[${w}]`,`[${F}]${W.name&&"."+W.name}`)))))},ep=_d.default.div`
123
123
  display: flex;
124
124
  width: 100%;
125
125
  align-items: center;
@@ -145,7 +145,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
145
145
  border: none;
146
146
  cursor: pointer;
147
147
  position: relative;
148
- `;var bs;(function(t){t.ARRAY="array",t.OBJECT="object"})(bs||(bs={}));function ov({schema:t,example:r}){return`(${t.type})`+(r?` ${r}`:"")}function sv(t){const r={};return t.forEach(i=>{i.in&&(r[i.in]||(r[i.in]=[]),r[i.in].push(i))}),r}function lv({schema:t,required:r}){return i=>{if(r&&!i)return"Field is required";if(r&&t.type===bs.ARRAY&&Array.isArray(i)){if(i.length>(t.rawSchema&&t.rawSchema.maxItems||1/0))return`Too many items selected, maximum ${t.rawSchema.maxItems}`;if(i.length<(t.rawSchema&&t.rawSchema.minItems||0)){const o=t.rawSchema.minItems;return`You should select at least ${o===1?`${o} item`:`${o} items`}`}}}}function uv(t){if(t.type===bs.ARRAY){const r=t.default||t.example;if(!r&&typeof t.rawSchema.items!="boolean"&&Array.isArray(t.rawSchema.items)){if(t.rawSchema.items[0].default)return[t.rawSchema.items[0].default];if(t.rawSchema.items[0].example)return[t.rawSchema.items[0].example]}if(!r&&typeof t.rawSchema.items!="boolean"&&!Array.isArray(t.rawSchema.items)&&(0,Lt.isObject)(t.rawSchema.items)){if(t.rawSchema.items.default)return[t.rawSchema.items.default];if(t.rawSchema.items.example)return[t.rawSchema.items.example]}return r||[]}else return(Number.isInteger(t.default)?t.default.toString():t.default)||t.example}function fv({oneOfType:t}){return t}var Zn=a(67294);const cv=["path","query","cookie","header"];function dv({id:t,param:r,values:i}){const o=(0,h.useMemo)(()=>lv(r),[r]),s=Array.isArray(r.schema.enum)&&r.schema.enum.length?r.schema.enum:void 0,d=uv(r.schema),g=t.split(".").map(A=>(0,Ut.dw)(A));return s?Zn.createElement($e.NI,null,Zn.createElement(nv,{initValue:d,paramEnum:s,field:t})):Zn.createElement(Vr,{fullWidth:!0,"data-cy":"parameter-input",id:t,field:t,placeholder:ov(r),validate:o,initialValue:d||(0,Ut.U2)(i,g),validateOnBlur:!0,validateOnChange:!0})}function pv({values:t,operation:r}){const i=(0,h.useMemo)(()=>sv(r.parameters||[]),[r]),o=(d,g,A,x)=>{var w;const F=A?(0,Ut.s1)(A,d.name):d.name,H=fv(d.schema),re=A?[g,A]:[d.in],ee=(0,Ut.s1)(...re,(0,Ut.A8)(d.name));return H&&console.warn(`Unsupported parameter definition: "${H}"`),d.schema.type===bs.ARRAY?Zn.createElement(iv,{key:ee,name:F,param:d,place:g,renderParameter:o}):d.schema.type===bs.OBJECT?(w=d.schema.fields)==null?void 0:w.map(se=>o(se,g,F)):Zn.createElement($e.NI,{key:ee},Zn.createElement($e.lX,{required:d.required},x||F,":"),H?Zn.createElement($e.GE,null,"Unsupported field schema definition"):Zn.createElement(dv,{id:ee,param:d,values:t}))},s=d=>{const g=i[d];return!g||!g.length?null:Zn.createElement(h.Fragment,{key:d},Zn.createElement($e.NI,null,Zn.createElement($e.iG,null," # ",d," parameters "),Zn.createElement("span",null,"\xA0")),g.map(A=>o(A,d)))};return Zn.createElement($e.iA,null,cv.map(s))}var ad=a(17828),mr=a(7241),hv=(t,r,i)=>new Promise((o,s)=>{var d=x=>{try{A(i.next(x))}catch(w){s(w)}},g=x=>{try{A(i.throw(x))}catch(w){s(w)}},A=x=>x.done?o(x.value):Promise.resolve(x.value).then(d,g);A((i=i.apply(t,r)).next())});function vv(t){return hv(this,null,function*(){return(yield fetch(t)).json()})}var tp=a(67294);const gv=Lt.styled.div`
148
+ `;var bs;(function(t){t.ARRAY="array",t.OBJECT="object"})(bs||(bs={}));function ov({schema:t,example:r}){return`(${t.type})`+(r?` ${r}`:"")}function sv(t){const r={};return t.forEach(i=>{i.in&&(r[i.in]||(r[i.in]=[]),r[i.in].push(i))}),r}function lv({schema:t,required:r}){return i=>{if(r&&!i)return"Field is required";if(r&&t.type===bs.ARRAY&&Array.isArray(i)){if(i.length>(t.rawSchema&&t.rawSchema.maxItems||1/0))return`Too many items selected, maximum ${t.rawSchema.maxItems}`;if(i.length<(t.rawSchema&&t.rawSchema.minItems||0)){const o=t.rawSchema.minItems;return`You should select at least ${o===1?`${o} item`:`${o} items`}`}}}}function uv(t){if(t.type===bs.ARRAY){const r=t.default||t.example;if(!r&&typeof t.rawSchema.items!="boolean"&&Array.isArray(t.rawSchema.items)){if(t.rawSchema.items[0].default)return[t.rawSchema.items[0].default];if(t.rawSchema.items[0].example)return[t.rawSchema.items[0].example]}if(!r&&typeof t.rawSchema.items!="boolean"&&!Array.isArray(t.rawSchema.items)&&(0,Lt.isObject)(t.rawSchema.items)){if(t.rawSchema.items.default)return[t.rawSchema.items.default];if(t.rawSchema.items.example)return[t.rawSchema.items.example]}return r||[]}else return(Number.isInteger(t.default)?t.default.toString():t.default)||t.example}function fv({oneOfType:t}){return t}var Zn=a(67294);const cv=["path","query","cookie","header"];function dv({id:t,param:r,values:i}){const o=(0,h.useMemo)(()=>lv(r),[r]),s=Array.isArray(r.schema.enum)&&r.schema.enum.length?r.schema.enum:void 0,d=uv(r.schema),y=t.split(".").map(A=>(0,jt.dw)(A));return s?Zn.createElement($e.NI,null,Zn.createElement(nv,{initValue:d,paramEnum:s,field:t})):Zn.createElement(Vr,{fullWidth:!0,"data-cy":"parameter-input",id:t,field:t,placeholder:ov(r),validate:o,initialValue:d||(0,jt.U2)(i,y),validateOnBlur:!0,validateOnChange:!0})}function pv({values:t,operation:r}){const i=(0,h.useMemo)(()=>sv(r.parameters||[]),[r]),o=(0,h.useCallback)((d,y,A,x)=>{var w;const F=A?(0,jt.s1)(A,d.name):d.name,W=fv(d.schema),re=A?[y,A]:[d.in],ee=(0,jt.s1)(...re,(0,jt.A8)(d.name));return W&&console.warn(`Unsupported parameter definition: "${W}"`),d.schema.type===bs.ARRAY?Zn.createElement(iv,{key:ee,name:F,param:d,place:y,renderParameter:o}):d.schema.type===bs.OBJECT?(w=d.schema.fields)==null?void 0:w.map(le=>o(le,y,F)):Zn.createElement($e.NI,{key:ee},Zn.createElement($e.lX,{required:d.required},x||F,":"),W?Zn.createElement($e.GE,null,"Unsupported field schema definition"):Zn.createElement(dv,{id:ee,param:d,values:t}))},[t]),s=(0,h.useCallback)(d=>{const y=i[d];return!y||!y.length?null:Zn.createElement(h.Fragment,{key:d},Zn.createElement($e.NI,null,Zn.createElement($e.iG,null," # ",d," parameters "),Zn.createElement("span",null,"\xA0")),y.map(A=>o(A,d)))},[i,o]);return Zn.createElement($e.iA,null,cv.map(s))}var ad=a(17828),dr=a(7241),hv=(t,r,i)=>new Promise((o,s)=>{var d=x=>{try{A(i.next(x))}catch(w){s(w)}},y=x=>{try{A(i.throw(x))}catch(w){s(w)}},A=x=>x.done?o(x.value):Promise.resolve(x.value).then(d,y);A((i=i.apply(t,r)).next())});function vv(t){return hv(this,null,function*(){return(yield fetch(t)).json()})}var tp=a(67294);const gv=Lt.styled.div`
149
149
  position: relative;
150
150
  height: 4px;
151
151
  display: block;
@@ -280,12 +280,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
280
280
  margin-top: 5px;
281
281
  }
282
282
  `}
283
- `;function Tv(t,r){const{fullWidth:i,id:o,label:s,nowrap:d}=t;return od.createElement(Ov,{fullWidth:i,nowrap:d},od.createElement(Cv,wv(Av({},t),{type:"checkbox",ref:r})),od.createElement(Ev,{htmlFor:o},s))}const ap=(0,h.forwardRef)(Tv);var Eo=a(24177),Nl=a(43398),Da=a(67294),Pv=Object.defineProperty,Iv=(t,r,i)=>r in t?Pv(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Fv=(t,r,i)=>(Iv(t,typeof r!="symbol"?r+"":r,i),i);const kv=11;class Mv extends h.Component{constructor(){super(...arguments);Fv(this,"state",{collapsed:!0})}onCheckBoxClick(r){const i=r.target.value,o=r.target.checked;this.props.fieldApi.setTouched(!0);const s=this.props.fieldApi.getValue()||[];let d;if(o)d=[...s,i];else{const g=s.indexOf(i);d=[...s.slice(0,g),...s.slice(g+1)]}this.props.fieldApi.setValue(d)}isFieldChecked(r){return this.props.fieldApi.getValue().includes(r)}toggle(){this.setState({collapsed:!this.state.collapsed})}selectAll(){this.props.fieldApi.setValue(this.props.items)}clearAll(){this.props.fieldApi.setValue([])}render(){const{items:r,fieldApi:i,validateOnChange:o,maxDisplayedItems:s,showControls:d,trimItemsLength:g}=this.props,{collapsed:A}=this.state,x=i.getError(),w=s||kv,F=g&&this.state.collapsed?r.slice(0,w):r;return Da.createElement("div",null,d?Da.createElement(Rv,null,Da.createElement(Nl.J4,{onClick:()=>{this.selectAll()}},"Select all"),Da.createElement(Nl.J4,{onClick:()=>{this.clearAll()}},"Clear")):null,Da.createElement("div",null,F.map(H=>Da.createElement(ap,{fullWidth:!0,id:H,value:H,checked:this.isFieldChecked(H),label:H,key:H,onChange:re=>{this.onCheckBoxClick(re),o&&i.validate()}})),r.length>w&&g?Da.createElement(Dv,{onClick:()=>{this.toggle()}},A?"Show all":"Collapse"):null),x?Da.createElement($e.Xq,null,x):"")}}const Lv=Zr(Mv),Rv=(0,Lt.styled)(Nl.xp)`
283
+ `;function Tv(t,r){const{fullWidth:i,id:o,label:s,nowrap:d}=t;return od.createElement(Ov,{fullWidth:i,nowrap:d},od.createElement(Cv,wv(Av({},t),{type:"checkbox",ref:r})),od.createElement(Ev,{htmlFor:o},s))}const ap=(0,h.forwardRef)(Tv);var Eo=a(24177),Nl=a(43398),Da=a(67294),Pv=Object.defineProperty,Iv=(t,r,i)=>r in t?Pv(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Fv=(t,r,i)=>(Iv(t,typeof r!="symbol"?r+"":r,i),i);const kv=11;class Mv extends h.Component{constructor(){super(...arguments);Fv(this,"state",{collapsed:!0})}onCheckBoxClick(r){const i=r.target.value,o=r.target.checked;this.props.fieldApi.setTouched(!0);const s=this.props.fieldApi.getValue()||[];let d;if(o)d=[...s,i];else{const y=s.indexOf(i);d=[...s.slice(0,y),...s.slice(y+1)]}this.props.fieldApi.setValue(d)}isFieldChecked(r){return this.props.fieldApi.getValue().includes(r)}toggle(){this.setState({collapsed:!this.state.collapsed})}selectAll(){this.props.fieldApi.setValue(this.props.items)}clearAll(){this.props.fieldApi.setValue([])}render(){const{items:r,fieldApi:i,validateOnChange:o,maxDisplayedItems:s,showControls:d,trimItemsLength:y}=this.props,{collapsed:A}=this.state,x=i.getError(),w=s||kv,F=y&&this.state.collapsed?r.slice(0,w):r;return Da.createElement("div",null,d?Da.createElement(Rv,null,Da.createElement(Nl.J4,{onClick:()=>{this.selectAll()}},"Select all"),Da.createElement(Nl.J4,{onClick:()=>{this.clearAll()}},"Clear")):null,Da.createElement("div",null,F.map(W=>Da.createElement(ap,{fullWidth:!0,id:W,value:W,checked:this.isFieldChecked(W),label:W,key:W,onChange:re=>{this.onCheckBoxClick(re),o&&i.validate()}})),r.length>w&&y?Da.createElement(Dv,{onClick:()=>{this.toggle()}},A?"Show all":"Collapse"):null),x?Da.createElement($e.Xq,null,x):"")}}const Lv=Zr(Mv),Rv=(0,Lt.styled)(Nl.xp)`
284
284
  opacity: 1;
285
285
  text-align: left;
286
286
  `,Dv=(0,Lt.styled)(Nl.J4)`
287
287
  float: right;
288
- `;var Bl=a(67294);function op(t){const{scopes:r,id:i}=t;let o=[];try{o=JSON.parse((0,Ut.YQ)(`auth.${i}.scopes`))}catch(s){}return!r||!r.length?Bl.createElement(Bl.Fragment,null):Bl.createElement($e.NI,null,Bl.createElement($e.lX,null," Scopes: "),Bl.createElement(Lv,{field:`auth.${i}.scopes`,initialValue:o,items:r,showControls:!0,trimItemsLength:!0}))}var Vt=a(67294),Nv=Object.defineProperty,Bv=Object.defineProperties,jv=Object.getOwnPropertyDescriptors,sp=Object.getOwnPropertySymbols,Uv=Object.prototype.hasOwnProperty,Vv=Object.prototype.propertyIsEnumerable,sd=(t,r,i)=>r in t?Nv(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Ff=(t,r)=>{for(var i in r||(r={}))Uv.call(r,i)&&sd(t,i,r[i]);if(sp)for(var i of sp(r))Vv.call(r,i)&&sd(t,i,r[i]);return t},ld=(t,r)=>Bv(t,jv(r)),jl=(t,r,i)=>(sd(t,typeof r!="symbol"?r+"":r,i),i),Wv=(t,r,i)=>new Promise((o,s)=>{var d=x=>{try{A(i.next(x))}catch(w){s(w)}},g=x=>{try{A(i.throw(x))}catch(w){s(w)}},A=x=>x.done?o(x.value):Promise.resolve(x.value).then(d,g);A((i=i.apply(t,r)).next())});function Hv(t){if(!t)return"Field is required"}class Ul extends h.Component{constructor(){super(...arguments);jl(this,"state",{error:null,loading:!1,showPkceOptions:!1}),jl(this,"clearToken",()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,"")}),jl(this,"togglePkceOptions",()=>{this.setState(({showPkceOptions:r})=>({showPkceOptions:!r}))}),jl(this,"handleCodeVerifierChange",r=>Wv(this,[r],function*({target:{value:i}}){const o=yield B(i);this.setState({codeVerifier:i,validCodeChallenge:o})}))}get values(){var r,i;return((i=(r=this.props.form.values)==null?void 0:r.auth)==null?void 0:i[this.props.id])||{}}get errors(){var r,i;return((i=(r=this.props.form.errors)==null?void 0:r.auth)==null?void 0:i[this.props.id])||{}}get pkceInputActionButtonProps(){if(this.state.codeVerifier!==void 0&&this.state.codeChallenge!==this.state.validCodeChallenge)return{label:"sync",onClick:()=>{this.state.codeVerifier&&this.setState({codeChallenge:this.state.validCodeChallenge})}}}componentDidMount(){if(this.props.usePkce){const r=(0,Vi.CY)(43);B(r).then(i=>{this.setState({codeVerifier:r,codeChallenge:i,validCodeChallenge:i})})}}handleAuthorize(r){if(!r)return;this.props.formApi.validate();const{flow:i,usePkce:o,id:s,tokenUrl:d,authCorsProxyUrl:g,tokenEndpointAuthMethod:A}=this.props;if(!(0,Vi.Qr)(this.errors))return;this.setState({loading:!0,error:null});const x=g?g+(0,mr.jg)(r):r,w=g&&d?g+(0,mr.jg)(d):d,F=this.props.formApi.getValue(`auth.${s}.scopes`),H={authorizationUrl:x.startsWith("http")?x:this.props.server+x,clientId:this.values.client_id,scopes:F,redirectUri:this.context.oAuth2RedirectURI,routingBasePath:this.context.routingBasePath,successCallback:re=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,re),this.setState({loading:!1,error:null})},errorCallback:re=>{this.setState({loading:!1,error:(re==null?void 0:re.message)||"Failed to retrieve the access token"})}};if(i==="implicit"&&f.authorizeImplicit(H),!(0,mr.xl)(A)){console.log(`Unsupported token endpoint auth method: ${A}`);return}i==="authorizationCode"&&f.authorizeAuthorizationCode(Ff(ld(Ff({},H),{tokenUrl:(w==null?void 0:w.startsWith("http"))?w:this.props.server+w,clientSecret:this.values.client_secret,extraHeaders:(0,mr.Or)({authMethod:A,clientId:this.values.client_id,clientSecret:this.values.client_secret})}),o&&{codeVerifier:this.state.codeVerifier,codeChallenge:this.state.codeChallenge}))}handleLogout(){this.clearToken(),this.setState({error:null})}handleCancel(){this.setState({loading:!1,error:null}),f.clearRedirectData(this.props.flow)}render(){const{error:r,loading:i}=this.state,{id:o,scopes:s,authorizationUrl:d,flow:g,usePkce:A,defaultValues:x}=this.props;if(!d)return Vt.createElement($e.Xq,null,"No flow info");let w=(0,Ut.YQ)(`auth.${o}.token`)||JSON.stringify(x==null?void 0:x.token);w=w?JSON.parse(w):"";const F=(0,Ut.Al)(o,"client_id"),H={field:`auth.${o}.client_id`,fullWidth:!0,initialValue:(0,Ut.YQ)(`auth.${o}.client_id`)||this.props.clientId||(x==null?void 0:x.client_id),initValue:(0,Ut.YQ)(`auth.${o}.client_id`)||this.props.clientId||(x==null?void 0:x.client_id),placeholder:"Your OAuth2 app Client ID",validate:Hv,validateOnBlur:!0,validateOnChange:!0};return Vt.createElement("div",null,Vt.createElement($e.n5,null,Vt.createElement($e.NI,null,Vt.createElement($e.lX,null," Client ID: "),F?Vt.createElement(Wr,ld(Ff({},H),{options:F})):Vt.createElement(Vr,ld(Ff({},H),{"data-cy":"client-id-input"}))),g==="authorizationCode"&&Vt.createElement(Vt.Fragment,null,(!(A==null?void 0:A.hideClientSecretInput)||!A)&&Vt.createElement($e.NI,null,Vt.createElement($e.lX,null,"Client Secret:"),Vt.createElement(Vr,{type:"password",fullWidth:!0,field:`auth.${o}.client_secret`,initialValue:(0,Ut.YQ)(`auth.${o}.client_secret`)||(x==null?void 0:x.client_secret),validateOnBlur:!0,validateOnChange:!0,"data-cy":"client-secret-input"})),A&&!A.disableManualConfiguration&&Vt.createElement($v,null,Vt.createElement(ap,{id:"pkce-opitons-toggle",label:"Configure PKCE manually",checked:this.state.showPkceOptions,onChange:this.togglePkceOptions,"data-cy":"pkce-options-toggle"}),this.state.showPkceOptions&&Vt.createElement(Kv,null,Vt.createElement($e.NI,null,Vt.createElement($e.lX,null,"Code Verifier"),Vt.createElement(Ln,{fullWidth:!0,value:this.state.codeVerifier,onChange:this.handleCodeVerifierChange,"data-cy":"code-verifier-input"})),Vt.createElement($e.NI,null,Vt.createElement($e.lX,null,"Code Challenge"),Vt.createElement(Ln,{fullWidth:!0,value:this.state.codeChallenge,onChange:({target:{value:re}})=>{this.setState({codeChallenge:re})},inputActionButton:this.pkceInputActionButtonProps,"data-cy":"code-challenge-input"}))))),Vt.createElement(Vr,{fullWidth:!0,field:`auth.${o}.token`,type:"hidden",initialValue:w}),Vt.createElement(op,{id:o,scopes:s}),this.values.token&&this.values.token.access_token?Vt.createElement($e.NI,null,Vt.createElement($e.lX,null," Access Token: "),Vt.createElement(Ln,{disabled:!0,type:"password",fullWidth:!0,value:this.values.token.access_token})):null),Vt.createElement(Gv,null,this.values.token&&this.values.token.access_token?Vt.createElement(Eo.zx,{fullWidth:!0,onClick:()=>{this.handleLogout()}},"Log out"):i?Vt.createElement(Vt.Fragment,null,Vt.createElement(Eo.zx,{fullWidth:!0,onClick:()=>{this.handleCancel()}},"Cancel"),Vt.createElement(rp,null)):Vt.createElement(Eo.zx,{fullWidth:!0,disabled:!(0,Vi.Qr)(this.errors),onClick:()=>{this.handleAuthorize(d)}},"Authorize")),i||r||!this.values.token||!this.values.token.access_token&&Vt.createElement($e.n5,null,Vt.createElement($e.NI,null,i?Vt.createElement($e.GE,null,"Please, finish your authorization flow or cancel authorization."):r?Vt.createElement(Vt.Fragment,null,Vt.createElement(zv,null,Vt.createElement($e.Xq,null,r))):!this.values.token||!this.values.token.access_token?Vt.createElement($e.GE,null," No Access Token. Please, Authorize. "):null)))}}jl(Ul,"contextType",Lt.OptionsContext);const zv=Lt.styled.div`
288
+ `;var Bl=a(67294);function op(t){const{scopes:r,id:i}=t;let o=[];try{o=JSON.parse((0,jt.YQ)(`auth.${i}.scopes`))}catch(s){}return!r||!r.length?Bl.createElement(Bl.Fragment,null):Bl.createElement($e.NI,null,Bl.createElement($e.lX,null," Scopes: "),Bl.createElement(Lv,{field:`auth.${i}.scopes`,initialValue:o,items:r,showControls:!0,trimItemsLength:!0}))}var Vt=a(67294),Nv=Object.defineProperty,Bv=Object.defineProperties,jv=Object.getOwnPropertyDescriptors,sp=Object.getOwnPropertySymbols,Uv=Object.prototype.hasOwnProperty,Vv=Object.prototype.propertyIsEnumerable,sd=(t,r,i)=>r in t?Nv(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Ff=(t,r)=>{for(var i in r||(r={}))Uv.call(r,i)&&sd(t,i,r[i]);if(sp)for(var i of sp(r))Vv.call(r,i)&&sd(t,i,r[i]);return t},ld=(t,r)=>Bv(t,jv(r)),jl=(t,r,i)=>(sd(t,typeof r!="symbol"?r+"":r,i),i),Wv=(t,r,i)=>new Promise((o,s)=>{var d=x=>{try{A(i.next(x))}catch(w){s(w)}},y=x=>{try{A(i.throw(x))}catch(w){s(w)}},A=x=>x.done?o(x.value):Promise.resolve(x.value).then(d,y);A((i=i.apply(t,r)).next())});function Hv(t){if(!t)return"Field is required"}class Ul extends h.Component{constructor(){super(...arguments);jl(this,"state",{error:null,loading:!1,showPkceOptions:!1}),jl(this,"clearToken",()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,"")}),jl(this,"togglePkceOptions",()=>{this.setState(({showPkceOptions:r})=>({showPkceOptions:!r}))}),jl(this,"handleCodeVerifierChange",r=>Wv(this,[r],function*({target:{value:i}}){const o=yield B(i);this.setState({codeVerifier:i,validCodeChallenge:o})}))}get values(){var r,i;return((i=(r=this.props.form.values)==null?void 0:r.auth)==null?void 0:i[this.props.id])||{}}get errors(){var r,i;return((i=(r=this.props.form.errors)==null?void 0:r.auth)==null?void 0:i[this.props.id])||{}}get pkceInputActionButtonProps(){if(this.state.codeVerifier!==void 0&&this.state.codeChallenge!==this.state.validCodeChallenge)return{label:"sync",onClick:()=>{this.state.codeVerifier&&this.setState({codeChallenge:this.state.validCodeChallenge})}}}componentDidMount(){if(this.props.usePkce){const r=(0,Vi.CY)(43);B(r).then(i=>{this.setState({codeVerifier:r,codeChallenge:i,validCodeChallenge:i})})}}handleAuthorize(r){if(!r)return;this.props.formApi.validate();const{flow:i,usePkce:o,id:s,tokenUrl:d,authCorsProxyUrl:y,tokenEndpointAuthMethod:A}=this.props;if(!(0,Vi.Qr)(this.errors))return;this.setState({loading:!0,error:null});const x=y?y+(0,dr.jg)(r):r,w=y&&d?y+(0,dr.jg)(d):d,F=this.props.formApi.getValue(`auth.${s}.scopes`),W={authorizationUrl:x.startsWith("http")?x:this.props.server+x,clientId:this.values.client_id,scopes:F,redirectUri:this.context.oAuth2RedirectURI,routingBasePath:this.context.routingBasePath,successCallback:re=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,re),this.setState({loading:!1,error:null})},errorCallback:re=>{this.setState({loading:!1,error:(re==null?void 0:re.message)||"Failed to retrieve the access token"})}};if(i==="implicit"&&f.authorizeImplicit(W),!(0,dr.xl)(A)){console.log(`Unsupported token endpoint auth method: ${A}`);return}i==="authorizationCode"&&f.authorizeAuthorizationCode(Ff(ld(Ff({},W),{tokenUrl:(w==null?void 0:w.startsWith("http"))?w:this.props.server+w,clientSecret:this.values.client_secret,extraHeaders:(0,dr.Or)({authMethod:A,clientId:this.values.client_id,clientSecret:this.values.client_secret})}),o&&{codeVerifier:this.state.codeVerifier,codeChallenge:this.state.codeChallenge}))}handleLogout(){this.clearToken(),this.setState({error:null})}handleCancel(){this.setState({loading:!1,error:null}),f.clearRedirectData(this.props.flow)}render(){const{error:r,loading:i}=this.state,{id:o,scopes:s,authorizationUrl:d,flow:y,usePkce:A,defaultValues:x}=this.props;if(!d)return Vt.createElement($e.Xq,null,"No flow info");let w=(0,jt.YQ)(`auth.${o}.token`)||JSON.stringify(x==null?void 0:x.token);w=w?JSON.parse(w):"";const F=(0,jt.Al)(o,"client_id"),W={field:`auth.${o}.client_id`,fullWidth:!0,initialValue:(0,jt.YQ)(`auth.${o}.client_id`)||this.props.clientId||(x==null?void 0:x.client_id),initValue:(0,jt.YQ)(`auth.${o}.client_id`)||this.props.clientId||(x==null?void 0:x.client_id),placeholder:"Your OAuth2 app Client ID",validate:Hv,validateOnBlur:!0,validateOnChange:!0};return Vt.createElement("div",null,Vt.createElement($e.n5,null,Vt.createElement($e.NI,null,Vt.createElement($e.lX,null," Client ID: "),F?Vt.createElement(Wr,ld(Ff({},W),{options:F})):Vt.createElement(Vr,ld(Ff({},W),{"data-cy":"client-id-input"}))),y==="authorizationCode"&&Vt.createElement(Vt.Fragment,null,(!(A==null?void 0:A.hideClientSecretInput)||!A)&&Vt.createElement($e.NI,null,Vt.createElement($e.lX,null,"Client Secret:"),Vt.createElement(Vr,{type:"password",fullWidth:!0,field:`auth.${o}.client_secret`,initialValue:(0,jt.YQ)(`auth.${o}.client_secret`)||(x==null?void 0:x.client_secret),validateOnBlur:!0,validateOnChange:!0,"data-cy":"client-secret-input"})),A&&!A.disableManualConfiguration&&Vt.createElement($v,null,Vt.createElement(ap,{id:"pkce-opitons-toggle",label:"Configure PKCE manually",checked:this.state.showPkceOptions,onChange:this.togglePkceOptions,"data-cy":"pkce-options-toggle"}),this.state.showPkceOptions&&Vt.createElement(Kv,null,Vt.createElement($e.NI,null,Vt.createElement($e.lX,null,"Code Verifier"),Vt.createElement(Ln,{fullWidth:!0,value:this.state.codeVerifier,onChange:this.handleCodeVerifierChange,"data-cy":"code-verifier-input"})),Vt.createElement($e.NI,null,Vt.createElement($e.lX,null,"Code Challenge"),Vt.createElement(Ln,{fullWidth:!0,value:this.state.codeChallenge,onChange:({target:{value:re}})=>{this.setState({codeChallenge:re})},inputActionButton:this.pkceInputActionButtonProps,"data-cy":"code-challenge-input"}))))),Vt.createElement(Vr,{fullWidth:!0,field:`auth.${o}.token`,type:"hidden",initialValue:w}),Vt.createElement(op,{id:o,scopes:s}),this.values.token&&this.values.token.access_token?Vt.createElement($e.NI,null,Vt.createElement($e.lX,null," Access Token: "),Vt.createElement(Ln,{disabled:!0,type:"password",fullWidth:!0,value:this.values.token.access_token})):null),Vt.createElement(Gv,null,this.values.token&&this.values.token.access_token?Vt.createElement(Eo.zx,{fullWidth:!0,onClick:()=>{this.handleLogout()}},"Log out"):i?Vt.createElement(Vt.Fragment,null,Vt.createElement(Eo.zx,{fullWidth:!0,onClick:()=>{this.handleCancel()}},"Cancel"),Vt.createElement(rp,null)):Vt.createElement(Eo.zx,{fullWidth:!0,disabled:!(0,Vi.Qr)(this.errors),onClick:()=>{this.handleAuthorize(d)}},"Authorize")),i||r||!this.values.token||!this.values.token.access_token&&Vt.createElement($e.n5,null,Vt.createElement($e.NI,null,i?Vt.createElement($e.GE,null,"Please, finish your authorization flow or cancel authorization."):r?Vt.createElement(Vt.Fragment,null,Vt.createElement(zv,null,Vt.createElement($e.Xq,null,r))):!this.values.token||!this.values.token.access_token?Vt.createElement($e.GE,null," No Access Token. Please, Authorize. "):null)))}}jl(Ul,"contextType",Lt.OptionsContext);const zv=Lt.styled.div`
289
289
  font-family: monospace;
290
290
  margin-top: 10px;
291
291
  line-height: 1;
@@ -297,7 +297,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
297
297
  padding: 8px 0 20px;
298
298
  `,Kv=Lt.styled.div`
299
299
  padding: 4px 0;
300
- `;var Ss=a(25973),en=a(67294),Yv=(t,r,i)=>new Promise((o,s)=>{var d=x=>{try{A(i.next(x))}catch(w){s(w)}},g=x=>{try{A(i.throw(x))}catch(w){s(w)}},A=x=>x.done?o(x.value):Promise.resolve(x.value).then(d,g);A((i=i.apply(t,r)).next())});function Jv(t){var r,i;const{scheme:o,defaultValues:s}=t,[d,g]=(0,h.useState)({}),[A,x]=(0,h.useState)(),[w,F]=(0,h.useState)(!1);(0,h.useEffect)(()=>{H(o.openIdConnectUrl)},[o.openIdConnectUrl]);const H=re=>Yv(this,null,function*(){F(!0),x("");try{const ee=yield vv(re);g(ee)}catch(ee){x(ee.message)}F(!1)});return w?en.createElement(Xv,null):A?en.createElement(lp,{message:A}):en.createElement("div",null,en.createElement("div",null,((r=d==null?void 0:d.response_types_supported)==null?void 0:r.includes("token"))?en.createElement(en.Fragment,null,en.createElement(Ss.S6,null,"OAuth2 Implicit Flow"),en.createElement(Ul,{key:t.id,authorizationUrl:d.authorization_endpoint,authCorsProxyUrl:t.authCorsProxyUrl,scopes:d.scopes_supported,server:t.server,id:t.id,form:t.form,formApi:t.formApi,clientId:t.clientId,flow:"implicit",defaultValues:s})):((i=d==null?void 0:d.response_types_supported)==null?void 0:i.includes("code"))?en.createElement(en.Fragment,null,en.createElement(Ss.S6,null,"OAuth2 Authorization Flow"),en.createElement(Ul,{key:t.id,authorizationUrl:d.authorization_endpoint,tokenUrl:d.token_endpoint,authCorsProxyUrl:t.authCorsProxyUrl,scopes:d.scopes_supported,server:t.server,id:t.id,form:t.form,formApi:t.formApi,clientId:t.clientId,tokenEndpointAuthMethod:d==null?void 0:d.token_endpoint_auth_methods_supported,flow:"authorizationCode",defaultValues:s})):en.createElement("div",null,"Unsupported flow")))}function Xv(){return en.createElement("div",null,en.createElement("div",null,en.createElement("div",null,"Fetching OpenID Connect metadata..."),en.createElement(rp,null)))}function lp({message:t}){return en.createElement("div",null,en.createElement("div",null,en.createElement($e.Xq,null,t)))}var Yr=a(67294),Qv=Object.defineProperty,Zv=Object.defineProperties,qv=Object.getOwnPropertyDescriptors,up=Object.getOwnPropertySymbols,_v=Object.prototype.hasOwnProperty,eg=Object.prototype.propertyIsEnumerable,ud=(t,r,i)=>r in t?Qv(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,fp=(t,r)=>{for(var i in r||(r={}))_v.call(r,i)&&ud(t,i,r[i]);if(up)for(var i of up(r))eg.call(r,i)&&ud(t,i,r[i]);return t},cp=(t,r)=>Zv(t,qv(r)),kf=(t,r,i)=>(ud(t,typeof r!="symbol"?r+"":r,i),i),tg=(t,r,i)=>new Promise((o,s)=>{var d=x=>{try{A(i.next(x))}catch(w){s(w)}},g=x=>{try{A(i.throw(x))}catch(w){s(w)}},A=x=>x.done?o(x.value):Promise.resolve(x.value).then(d,g);A((i=i.apply(t,r)).next())});function rg(t){if(!t)return"Token is required"}class ng extends h.Component{constructor(){super(...arguments);kf(this,"state",{error:"",loading:!1,tokenMasked:!0}),kf(this,"clearToken",()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,""),(0,Ut.WW)(`auth.${this.props.id}.token`,"")}),kf(this,"toggleTokenMask",()=>{this.setState({tokenMasked:!this.state.tokenMasked})}),kf(this,"requestToken",()=>tg(this,null,function*(){if(this.state.loading)return;const{server:r,flow:i,authCorsProxyUrl:o}=this.props,s=o&&i.tokenUrl?o+(0,mr.jg)(i.tokenUrl):i.tokenUrl;if(this.errors.client_id||this.errors.client_secret){console.log("Provide client_id and client_secret");return}const d=this.values.client_id,g=this.values.client_secret;if(!d||!g){console.log("Provide client_id and client_secret");return}this.setState({loading:!0});const A=i["x-tokenEndpointAuthMethod"];if(!(0,mr.xl)(A)){console.log(`Unsupported token endpoint auth method: ${A}`);return}yield f.authorizeClientCredentials({tokenUrl:s.startsWith("http")?s:r+s,clientId:d,clientSecret:g,scopes:this.values.scopes,extraHeaders:(0,mr.Or)({authMethod:A,clientId:d,clientSecret:g}),successCallback:x=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,x),this.setState({loading:!1})},errorCallback:x=>{this.clearToken(),this.setState({error:x.message,loading:!1})}})}))}get values(){var r,i,o;return((o=(i=(r=this.props.form)==null?void 0:r.values)==null?void 0:i.auth)==null?void 0:o[this.props.id])||{}}get errors(){var r,i;return((i=(r=this.props.form.errors)==null?void 0:r.auth)==null?void 0:i[this.props.id])||{}}render(){const{loading:r,error:i,tokenMasked:o}=this.state,{id:s,defaultValues:d}=this.props,g=Object.keys(this.props.flow.scopes);let A=(0,Ut.YQ)(`auth.${s}.token`)||JSON.stringify(d==null?void 0:d.token);A=A?JSON.parse(A):"";const x=(0,Ut.Al)(s,"client_id"),w={field:`auth.${s}.client_id`,fullWidth:!0,initialValue:(0,Ut.YQ)(`auth.${s}.client_id`)||this.props.clientId||(d==null?void 0:d.client_id),initValue:(0,Ut.YQ)(`auth.${s}.client_id`)||this.props.clientId||(d==null?void 0:d.client_id),placeholder:"Your OAuth2 app Client ID"};return Yr.createElement(Yr.Fragment,null,Yr.createElement($e.n5,null,Yr.createElement($e.NI,null,Yr.createElement($e.lX,null,"Client ID:"),x?Yr.createElement(Wr,cp(fp({},w),{options:x})):Yr.createElement(Vr,cp(fp({},w),{type:"password"}))),Yr.createElement($e.NI,null,Yr.createElement($e.lX,null,"Client Secret:"),Yr.createElement(Vr,{type:"password",fullWidth:!0,field:`auth.${s}.client_secret`,initialValue:(0,Ut.YQ)(`auth.${s}.client_secret`)||(d==null?void 0:d.client_secret)})),Yr.createElement(Vr,{fullWidth:!0,field:`auth.${s}.token`,type:"hidden",initialValue:A,validate:rg}),Yr.createElement(op,{id:s,scopes:g})),Yr.createElement(Eo.zx,{color:"primary",onClick:this.requestToken,blinking:r},r?"Loading...":"Request Token"),Yr.createElement($e.ph,null," Access Token "),i?Yr.createElement($e.Xq,{style:{marginBottom:"1em"}},"Failed to request token: ",Yr.createElement("pre",null,i)," "):this.values.token&&this.values.token.access_token?Yr.createElement($e.TR,null,Yr.createElement($e.WA,{length:this.values.token.access_token.length,masked:o},this.values.token.access_token),Yr.createElement($e.lf,{onClick:this.toggleTokenMask},o?"Show":"Hide"," "),Yr.createElement($e.h,{onClick:this.clearToken}," Clear ")):Yr.createElement($e.Xq,{style:{marginBottom:"1em"}},"No token"))}}const ig=ng;var $t=a(67294),ag=Object.defineProperty,og=Object.defineProperties,sg=Object.getOwnPropertyDescriptors,dp=Object.getOwnPropertySymbols,lg=Object.prototype.hasOwnProperty,ug=Object.prototype.propertyIsEnumerable,fd=(t,r,i)=>r in t?ag(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,As=(t,r)=>{for(var i in r||(r={}))lg.call(r,i)&&fd(t,i,r[i]);if(dp)for(var i of dp(r))ug.call(r,i)&&fd(t,i,r[i]);return t},Vl=(t,r)=>og(t,sg(r)),pp=(t,r,i)=>(fd(t,typeof r!="symbol"?r+"":r,i),i);function Wl(t){if(!t)return"Field is required"}const fg=function(t){const r=document.cookie.match("\\b"+t+"=([^;]*)\\b");return r?r[1]:void 0};function hp(t){if(t.in==="cookie")return fg(t.name)}class cg extends h.Component{constructor(){super(...arguments);pp(this,"state",{activeScheme:0}),pp(this,"handleSchemeChange",r=>{this.setState({activeScheme:r.idx}),(0,Ut.WW)("securityRequirementName",r.value)})}static getDerivedStateFromProps(r){const o=r.operation.security.map(g=>g.schemes.map(A=>A.id).join(" and ")),s=(0,Ut.YQ)("securityRequirementName"),d=o.findIndex(g=>g===s);return{activeScheme:d<0?0:d}}render(){const{securityDefaults:r}=this.props,{activeScheme:i}=this.state,o=this.props.operation.security,d=o.map(g=>g.schemes.map(A=>A.id).join(" and ")).filter(Boolean).map((g,A)=>({value:g,idx:A}));return d.length===0?$t.createElement(lp,{message:"Cannot find security schema in the definition"}):$t.createElement($t.Fragment,null,$t.createElement($e.n5,null,d.length>1&&$t.createElement($e.NI,null,$t.createElement($e.lX,null," Security scheme: "),$t.createElement(br.Dropdown,{variant:"dark",fullWidth:!0,options:d,value:d[i].value,onChange:this.handleSchemeChange}))||null,o[i].schemes.map(g=>{var A,x,w,F,H,re,ee;const se=(0,Ut.A8)(g.id);if(g.type==="apiKey"){const de=(0,Ut.Al)(se,""),pe={field:`auth.${se}`,fullWidth:!0,initialValue:hp(g)||(0,Ut.YQ)(`auth.${se}`)||(r==null?void 0:r[se]),initValue:hp(g)||(0,Ut.YQ)(`auth.${se}`)||(r==null?void 0:r[se]),validate:Wl,validateOnBlur:!0,validateOnChange:!0};return $t.createElement($e.NI,{key:se},$t.createElement($e.lX,null," ",g.name,": "),de?$t.createElement(Wr,Vl(As({},pe),{options:de})):$t.createElement(Vr,Vl(As({},pe),{type:"password","data-cy":"apiKey-auth-password"})))}else if(g.type==="http"){if(g.scheme==="basic"){const de=(0,Ut.Al)(se,"username"),pe={field:`auth.${se}.username`,fullWidth:!0,initialValue:(0,Ut.YQ)(`auth.${se}.username`)||((A=r==null?void 0:r[se])==null?void 0:A.username),initValue:(0,Ut.YQ)(`auth.${se}.username`)||((x=r==null?void 0:r[se])==null?void 0:x.username),validate:Wl,validateOnBlur:!0,validateOnChange:!0};return $t.createElement(h.Fragment,{key:se},$t.createElement($e.NI,null,$t.createElement($e.lX,null," ",(0,Ma.l)("tryItAuthBasicUsername"),": "),de?$t.createElement(Wr,Vl(As({},pe),{options:de})):$t.createElement(Vr,As({},pe))),$t.createElement($e.NI,null,$t.createElement($e.lX,null," ",(0,Ma.l)("tryItAuthBasicPassword"),": "),$t.createElement(Vr,{type:"password","data-cy":"http-auth-password",fullWidth:!0,field:`auth.${se}.password`,initialValue:(0,Ut.YQ)(`auth.${se}.password`)||((w=r==null?void 0:r[se])==null?void 0:w.password)||"",validateOnBlur:!0,validateOnChange:!0})))}else if(g.scheme==="bearer"){const de=(0,Ut.Al)(se,""),pe={field:`auth.${se}`,fullWidth:!0,initialValue:(0,Ut.YQ)(`auth.${se}`)||(r==null?void 0:r[se]),initValue:(0,Ut.YQ)(`auth.${se}`)||(r==null?void 0:r[se]),validate:Wl,validateOnBlur:!0,validateOnChange:!0};return $t.createElement(h.Fragment,{key:se},$t.createElement($e.NI,null,$t.createElement($e.lX,null," Bearer Token: "),de?$t.createElement(Wr,Vl(As({},pe),{options:de})):$t.createElement(Vr,Vl(As({},pe),{type:"password",placeholder:"(without 'Bearer')"}))))}}else{if(g.type==="oauth2"&&g.flows&&g.flows.clientCredentials)return $t.createElement(ig,{key:se,flow:g.flows.clientCredentials,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:se,form:this.props.form,formApi:this.props.formApi,clientId:g.flows.clientCredentials["x-defaultClientId"]||g["x-defaultClientId"],defaultValues:r==null?void 0:r[se]});if(g.type==="oauth2"&&g.flows&&g.flows.implicit)return $t.createElement(Ul,{key:se,authorizationUrl:g.flows.implicit.authorizationUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys(((H=(F=g==null?void 0:g.flows)==null?void 0:F.implicit)==null?void 0:H.scopes)||{}),server:this.props.activeServer,id:se,form:this.props.form,formApi:this.props.formApi,clientId:g.flows.implicit["x-defaultClientId"]||g["x-defaultClientId"],flow:"implicit",defaultValues:r==null?void 0:r[se]});if(g.type==="oauth2"&&g.flows&&g.flows.authorizationCode)return $t.createElement(Ul,{key:se,authorizationUrl:g.flows.authorizationCode.authorizationUrl,tokenUrl:g.flows.authorizationCode.tokenUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys(((re=g.flows.authorizationCode)==null?void 0:re.scopes)||{}),server:this.props.activeServer,id:se,form:this.props.form,formApi:this.props.formApi,clientId:g.flows.authorizationCode["x-defaultClientId"]||g["x-defaultClientId"],flow:"authorizationCode",tokenEndpointAuthMethod:g.flows.authorizationCode["x-tokenEndpointAuthMethod"],usePkce:g.flows.authorizationCode["x-usePkce"],defaultValues:r==null?void 0:r[se]});if(g.type==="oauth2"){let de=(0,Ut.YQ)(`auth.${se}.token`)||JSON.stringify((ee=r==null?void 0:r[se])==null?void 0:ee.token);return de=de?JSON.parse(de):{},$t.createElement(h.Fragment,{key:se},$t.createElement($e.NI,null,$t.createElement($e.lX,null," Access Token Type: "),$t.createElement(Vr,{fullWidth:!0,field:`auth.${se}.token.token_type`,initialValue:de.token_type||"Bearer"})),$t.createElement($e.NI,null,$t.createElement($e.lX,null," Access Token: "),$t.createElement(Vr,{type:"password",fullWidth:!0,field:`auth.${se}.token.access_token`,validate:Wl,initialValue:de.access_token,validateOnBlur:!0,validateOnChange:!0})))}else if(g.type==="openIdConnect")return $t.createElement(Jv,{key:se,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:se,form:this.props.form,formApi:this.props.formApi,scheme:g,clientId:g["x-defaultClientId"],defaultValues:r==null?void 0:r[se]})}})),$t.createElement("small",null,$t.createElement("strong",null,"Note"),": Your credentials will be saved until the end of the browser session"))}}var vp=a(39895),cd=a(67294);const dg=Lt.styled.div`
300
+ `;var Ss=a(25973),en=a(67294),Yv=(t,r,i)=>new Promise((o,s)=>{var d=x=>{try{A(i.next(x))}catch(w){s(w)}},y=x=>{try{A(i.throw(x))}catch(w){s(w)}},A=x=>x.done?o(x.value):Promise.resolve(x.value).then(d,y);A((i=i.apply(t,r)).next())});function Jv(t){var r,i;const{scheme:o,defaultValues:s}=t,[d,y]=(0,h.useState)({}),[A,x]=(0,h.useState)(),[w,F]=(0,h.useState)(!1);(0,h.useEffect)(()=>{W(o.openIdConnectUrl)},[o.openIdConnectUrl]);const W=re=>Yv(this,null,function*(){F(!0),x("");try{const ee=yield vv(re);y(ee)}catch(ee){x(ee.message)}F(!1)});return w?en.createElement(Xv,null):A?en.createElement(lp,{message:A}):en.createElement("div",null,en.createElement("div",null,((r=d==null?void 0:d.response_types_supported)==null?void 0:r.includes("token"))?en.createElement(en.Fragment,null,en.createElement(Ss.S6,null,"OAuth2 Implicit Flow"),en.createElement(Ul,{key:t.id,authorizationUrl:d.authorization_endpoint,authCorsProxyUrl:t.authCorsProxyUrl,scopes:d.scopes_supported,server:t.server,id:t.id,form:t.form,formApi:t.formApi,clientId:t.clientId,flow:"implicit",defaultValues:s})):((i=d==null?void 0:d.response_types_supported)==null?void 0:i.includes("code"))?en.createElement(en.Fragment,null,en.createElement(Ss.S6,null,"OAuth2 Authorization Flow"),en.createElement(Ul,{key:t.id,authorizationUrl:d.authorization_endpoint,tokenUrl:d.token_endpoint,authCorsProxyUrl:t.authCorsProxyUrl,scopes:d.scopes_supported,server:t.server,id:t.id,form:t.form,formApi:t.formApi,clientId:t.clientId,tokenEndpointAuthMethod:d==null?void 0:d.token_endpoint_auth_methods_supported,flow:"authorizationCode",defaultValues:s})):en.createElement("div",null,"Unsupported flow")))}function Xv(){return en.createElement("div",null,en.createElement("div",null,en.createElement("div",null,"Fetching OpenID Connect metadata..."),en.createElement(rp,null)))}function lp({message:t}){return en.createElement("div",null,en.createElement("div",null,en.createElement($e.Xq,null,t)))}var Yr=a(67294),Qv=Object.defineProperty,Zv=Object.defineProperties,qv=Object.getOwnPropertyDescriptors,up=Object.getOwnPropertySymbols,_v=Object.prototype.hasOwnProperty,eg=Object.prototype.propertyIsEnumerable,ud=(t,r,i)=>r in t?Qv(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,fp=(t,r)=>{for(var i in r||(r={}))_v.call(r,i)&&ud(t,i,r[i]);if(up)for(var i of up(r))eg.call(r,i)&&ud(t,i,r[i]);return t},cp=(t,r)=>Zv(t,qv(r)),kf=(t,r,i)=>(ud(t,typeof r!="symbol"?r+"":r,i),i),tg=(t,r,i)=>new Promise((o,s)=>{var d=x=>{try{A(i.next(x))}catch(w){s(w)}},y=x=>{try{A(i.throw(x))}catch(w){s(w)}},A=x=>x.done?o(x.value):Promise.resolve(x.value).then(d,y);A((i=i.apply(t,r)).next())});function rg(t){if(!t)return"Token is required"}class ng extends h.Component{constructor(){super(...arguments);kf(this,"state",{error:"",loading:!1,tokenMasked:!0}),kf(this,"clearToken",()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,""),(0,jt.WW)(`auth.${this.props.id}.token`,"")}),kf(this,"toggleTokenMask",()=>{this.setState({tokenMasked:!this.state.tokenMasked})}),kf(this,"requestToken",()=>tg(this,null,function*(){if(this.state.loading)return;const{server:r,flow:i,authCorsProxyUrl:o}=this.props,s=o&&i.tokenUrl?o+(0,dr.jg)(i.tokenUrl):i.tokenUrl;if(this.errors.client_id||this.errors.client_secret){console.log("Provide client_id and client_secret");return}const d=this.values.client_id,y=this.values.client_secret;if(!d||!y){console.log("Provide client_id and client_secret");return}this.setState({loading:!0});const A=i["x-tokenEndpointAuthMethod"];if(!(0,dr.xl)(A)){console.log(`Unsupported token endpoint auth method: ${A}`);return}yield f.authorizeClientCredentials({tokenUrl:s.startsWith("http")?s:r+s,clientId:d,clientSecret:y,scopes:this.values.scopes,extraHeaders:(0,dr.Or)({authMethod:A,clientId:d,clientSecret:y}),successCallback:x=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,x),this.setState({loading:!1})},errorCallback:x=>{this.clearToken(),this.setState({error:x.message,loading:!1})}})}))}get values(){var r,i,o;return((o=(i=(r=this.props.form)==null?void 0:r.values)==null?void 0:i.auth)==null?void 0:o[this.props.id])||{}}get errors(){var r,i;return((i=(r=this.props.form.errors)==null?void 0:r.auth)==null?void 0:i[this.props.id])||{}}render(){const{loading:r,error:i,tokenMasked:o}=this.state,{id:s,defaultValues:d}=this.props,y=Object.keys(this.props.flow.scopes);let A=(0,jt.YQ)(`auth.${s}.token`)||JSON.stringify(d==null?void 0:d.token);A=A?JSON.parse(A):"";const x=(0,jt.Al)(s,"client_id"),w={field:`auth.${s}.client_id`,fullWidth:!0,initialValue:(0,jt.YQ)(`auth.${s}.client_id`)||this.props.clientId||(d==null?void 0:d.client_id),initValue:(0,jt.YQ)(`auth.${s}.client_id`)||this.props.clientId||(d==null?void 0:d.client_id),placeholder:"Your OAuth2 app Client ID"};return Yr.createElement(Yr.Fragment,null,Yr.createElement($e.n5,null,Yr.createElement($e.NI,null,Yr.createElement($e.lX,null,"Client ID:"),x?Yr.createElement(Wr,cp(fp({},w),{options:x})):Yr.createElement(Vr,cp(fp({},w),{type:"password"}))),Yr.createElement($e.NI,null,Yr.createElement($e.lX,null,"Client Secret:"),Yr.createElement(Vr,{type:"password",fullWidth:!0,field:`auth.${s}.client_secret`,initialValue:(0,jt.YQ)(`auth.${s}.client_secret`)||(d==null?void 0:d.client_secret)})),Yr.createElement(Vr,{fullWidth:!0,field:`auth.${s}.token`,type:"hidden",initialValue:A,validate:rg}),Yr.createElement(op,{id:s,scopes:y})),Yr.createElement(Eo.zx,{color:"primary",onClick:this.requestToken,blinking:r},r?"Loading...":"Request Token"),Yr.createElement($e.ph,null," Access Token "),i?Yr.createElement($e.Xq,{style:{marginBottom:"1em"}},"Failed to request token: ",Yr.createElement("pre",null,i)," "):this.values.token&&this.values.token.access_token?Yr.createElement($e.TR,null,Yr.createElement($e.WA,{length:this.values.token.access_token.length,masked:o},this.values.token.access_token),Yr.createElement($e.lf,{onClick:this.toggleTokenMask},o?"Show":"Hide"," "),Yr.createElement($e.h,{onClick:this.clearToken}," Clear ")):Yr.createElement($e.Xq,{style:{marginBottom:"1em"}},"No token"))}}const ig=ng;var $t=a(67294),ag=Object.defineProperty,og=Object.defineProperties,sg=Object.getOwnPropertyDescriptors,dp=Object.getOwnPropertySymbols,lg=Object.prototype.hasOwnProperty,ug=Object.prototype.propertyIsEnumerable,fd=(t,r,i)=>r in t?ag(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,As=(t,r)=>{for(var i in r||(r={}))lg.call(r,i)&&fd(t,i,r[i]);if(dp)for(var i of dp(r))ug.call(r,i)&&fd(t,i,r[i]);return t},Vl=(t,r)=>og(t,sg(r)),pp=(t,r,i)=>(fd(t,typeof r!="symbol"?r+"":r,i),i);function Wl(t){if(!t)return"Field is required"}const fg=function(t){const r=document.cookie.match("\\b"+t+"=([^;]*)\\b");return r?r[1]:void 0};function hp(t){if(t.in==="cookie")return fg(t.name)}class cg extends h.Component{constructor(){super(...arguments);pp(this,"state",{activeScheme:0}),pp(this,"handleSchemeChange",r=>{this.setState({activeScheme:r.idx}),(0,jt.WW)("securityRequirementName",r.value)})}static getDerivedStateFromProps(r){const o=r.operation.security.map(y=>y.schemes.map(A=>A.id).join(" and ")),s=(0,jt.YQ)("securityRequirementName"),d=o.findIndex(y=>y===s);return{activeScheme:d<0?0:d}}render(){const{securityDefaults:r}=this.props,{activeScheme:i}=this.state,o=this.props.operation.security,d=o.map(y=>y.schemes.map(A=>A.id).join(" and ")).filter(Boolean).map((y,A)=>({value:y,idx:A}));return d.length===0?$t.createElement(lp,{message:"Cannot find security schema in the definition"}):$t.createElement($t.Fragment,null,$t.createElement($e.n5,null,d.length>1&&$t.createElement($e.NI,null,$t.createElement($e.lX,null," Security scheme: "),$t.createElement(br.Dropdown,{variant:"dark",fullWidth:!0,options:d,value:d[i].value,onChange:this.handleSchemeChange}))||null,o[i].schemes.map(y=>{var A,x,w,F,W,re,ee;const le=(0,jt.A8)(y.id);if(y.type==="apiKey"){const de=(0,jt.Al)(le,""),he={field:`auth.${le}`,fullWidth:!0,initialValue:hp(y)||(0,jt.YQ)(`auth.${le}`)||(r==null?void 0:r[le]),initValue:hp(y)||(0,jt.YQ)(`auth.${le}`)||(r==null?void 0:r[le]),validate:Wl,validateOnBlur:!0,validateOnChange:!0};return $t.createElement($e.NI,{key:le},$t.createElement($e.lX,null," ",y.name,": "),de?$t.createElement(Wr,Vl(As({},he),{options:de})):$t.createElement(Vr,Vl(As({},he),{type:"password","data-cy":"apiKey-auth-password"})))}else if(y.type==="http"){if(y.scheme==="basic"){const de=(0,jt.Al)(le,"username"),he={field:`auth.${le}.username`,fullWidth:!0,initialValue:(0,jt.YQ)(`auth.${le}.username`)||((A=r==null?void 0:r[le])==null?void 0:A.username),initValue:(0,jt.YQ)(`auth.${le}.username`)||((x=r==null?void 0:r[le])==null?void 0:x.username),validate:Wl,validateOnBlur:!0,validateOnChange:!0};return $t.createElement(h.Fragment,{key:le},$t.createElement($e.NI,null,$t.createElement($e.lX,null," ",(0,Ma.l)("tryItAuthBasicUsername"),": "),de?$t.createElement(Wr,Vl(As({},he),{options:de})):$t.createElement(Vr,As({},he))),$t.createElement($e.NI,null,$t.createElement($e.lX,null," ",(0,Ma.l)("tryItAuthBasicPassword"),": "),$t.createElement(Vr,{type:"password","data-cy":"http-auth-password",fullWidth:!0,field:`auth.${le}.password`,initialValue:(0,jt.YQ)(`auth.${le}.password`)||((w=r==null?void 0:r[le])==null?void 0:w.password)||"",validateOnBlur:!0,validateOnChange:!0})))}else if(y.scheme==="bearer"){const de=(0,jt.Al)(le,""),he={field:`auth.${le}`,fullWidth:!0,initialValue:(0,jt.YQ)(`auth.${le}`)||(r==null?void 0:r[le]),initValue:(0,jt.YQ)(`auth.${le}`)||(r==null?void 0:r[le]),validate:Wl,validateOnBlur:!0,validateOnChange:!0};return $t.createElement(h.Fragment,{key:le},$t.createElement($e.NI,null,$t.createElement($e.lX,null," Bearer Token: "),de?$t.createElement(Wr,Vl(As({},he),{options:de})):$t.createElement(Vr,Vl(As({},he),{type:"password",placeholder:"(without 'Bearer')"}))))}}else{if(y.type==="oauth2"&&y.flows&&y.flows.clientCredentials)return $t.createElement(ig,{key:le,flow:y.flows.clientCredentials,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:le,form:this.props.form,formApi:this.props.formApi,clientId:y.flows.clientCredentials["x-defaultClientId"]||y["x-defaultClientId"],defaultValues:r==null?void 0:r[le]});if(y.type==="oauth2"&&y.flows&&y.flows.implicit)return $t.createElement(Ul,{key:le,authorizationUrl:y.flows.implicit.authorizationUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys(((W=(F=y==null?void 0:y.flows)==null?void 0:F.implicit)==null?void 0:W.scopes)||{}),server:this.props.activeServer,id:le,form:this.props.form,formApi:this.props.formApi,clientId:y.flows.implicit["x-defaultClientId"]||y["x-defaultClientId"],flow:"implicit",defaultValues:r==null?void 0:r[le]});if(y.type==="oauth2"&&y.flows&&y.flows.authorizationCode)return $t.createElement(Ul,{key:le,authorizationUrl:y.flows.authorizationCode.authorizationUrl,tokenUrl:y.flows.authorizationCode.tokenUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys(((re=y.flows.authorizationCode)==null?void 0:re.scopes)||{}),server:this.props.activeServer,id:le,form:this.props.form,formApi:this.props.formApi,clientId:y.flows.authorizationCode["x-defaultClientId"]||y["x-defaultClientId"],flow:"authorizationCode",tokenEndpointAuthMethod:y.flows.authorizationCode["x-tokenEndpointAuthMethod"],usePkce:y.flows.authorizationCode["x-usePkce"],defaultValues:r==null?void 0:r[le]});if(y.type==="oauth2"){let de=(0,jt.YQ)(`auth.${le}.token`)||JSON.stringify((ee=r==null?void 0:r[le])==null?void 0:ee.token);return de=de?JSON.parse(de):{},$t.createElement(h.Fragment,{key:le},$t.createElement($e.NI,null,$t.createElement($e.lX,null," Access Token Type: "),$t.createElement(Vr,{fullWidth:!0,field:`auth.${le}.token.token_type`,initialValue:de.token_type||"Bearer"})),$t.createElement($e.NI,null,$t.createElement($e.lX,null," Access Token: "),$t.createElement(Vr,{type:"password",fullWidth:!0,field:`auth.${le}.token.access_token`,validate:Wl,initialValue:de.access_token,validateOnBlur:!0,validateOnChange:!0})))}else if(y.type==="openIdConnect")return $t.createElement(Jv,{key:le,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:le,form:this.props.form,formApi:this.props.formApi,scheme:y,clientId:y["x-defaultClientId"],defaultValues:r==null?void 0:r[le]})}})),$t.createElement("small",null,$t.createElement("strong",null,"Note"),": Your credentials will be saved until the end of the browser session"))}}var vp=a(39895),cd=a(67294);const dg=Lt.styled.div`
301
301
  display: flex;
302
302
  font-size: 12px;
303
303
  button {
@@ -343,7 +343,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
343
343
  cursor: default;
344
344
  color: ${(0,vp.DZ)(.3,r.colors.text.light)};
345
345
  `||""}
346
- `;class pg extends h.Component{render(){const{onChange:r,active:i,hasResponse:o}=this.props;return cd.createElement(dg,null,cd.createElement(gp,{onClick:()=>r(0),active:i===0},o?"Edit Request":"Request"),cd.createElement(gp,{onClick:()=>o&&r(1),active:i===1,disabled:!o}," ","Response"," "))}}var hg=a(9996),vg=a.n(hg),dd=a(67897),Mf=a(49376),gg=a(67294),yg=Object.defineProperty,Lf=Object.getOwnPropertySymbols,yp=Object.prototype.hasOwnProperty,mp=Object.prototype.propertyIsEnumerable,xp=(t,r,i)=>r in t?yg(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,mg=(t,r)=>{for(var i in r||(r={}))yp.call(r,i)&&xp(t,i,r[i]);if(Lf)for(var i of Lf(r))mp.call(r,i)&&xp(t,i,r[i]);return t},bp=(t,r)=>{var i={};for(var o in t)yp.call(t,o)&&r.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&Lf)for(var o of Lf(t))r.indexOf(o)<0&&mp.call(t,o)&&(i[o]=t[o]);return i},xg=(t,r,i)=>new Promise((o,s)=>{var d=x=>{try{A(i.next(x))}catch(w){s(w)}},g=x=>{try{A(i.throw(x))}catch(w){s(w)}},A=x=>x.done?o(x.value):Promise.resolve(x.value).then(d,g);A((i=i.apply(t,r)).next())});const Sp=(0,h.forwardRef)((t,r)=>{var i=bp(t,[]);const o=i,{schema:s,contentName:d,onChange:g,name:A}=o,x=bp(o,["schema","contentName","onChange","name"]),{render:w}=Rn(mg({field:A},x)),F=H=>xg(void 0,null,function*(){const re=yield wt(H.target.files,s);g(d,re)});return w(gg.createElement("input",{"data-cy":"file-upload-input",type:"file",id:i.id,className:i.className,name:i.name,onChange:F,multiple:i.multiple,accept:i.accept,ref:r}))});Sp.displayName="FileUpload";var Na=a(67294);const bg=(0,za.Pi)(t=>{var r;const{mediaType:i,onChange:o,formApi:s}=t,d=i.examples||{},{exampleKey:g}=(0,dd.C6)(i.operation,d),A=(r=d[g])==null?void 0:r.rawValue,x=Sg(i);(0,h.useEffect)(()=>s&&x.forEach(F=>{var H,re;const ee=A==null?void 0:A[F.name],se=(re=(H=F.example)!=null?H:ee==null?void 0:ee.example)!=null?re:ee,de=typeof se=="object"?JSON.stringify(se):se;se!==void 0&&s.setValue("body."+F.name,`${de}`)}),[g]);const w=i.schema||{};return lt(w,i.name)?Na.createElement(Ap,null,Na.createElement($e.NI,null,Na.createElement(wp,{fullWidth:!0,id:`body.${i.name}`,name:`body.${i.name}`,accept:Ye(i.name),schema:w,contentName:i.name,onChange:o}))):w.type!==J.OBJECT&&!x?(console.warn(`Invalid schema for request body and mime type: "${i.name}"`,w),null):Na.createElement(Ap,null,x.map(F=>{const H=F.schema||{},re=i.name===Mf.T.MULTIPART&&at(H),ee=H.contentMediaType||"",se=re?Na.createElement(wp,{fullWidth:!0,id:"body."+F.name,name:"body."+F.name,accept:Ye(ee),multiple:H.type==="array",schema:H,contentName:F.name,onChange:o}):Na.createElement(Vr,{fullWidth:!0,id:"body."+F.name,field:"body."+F.name,placeholder:H.description||F.name});return Na.createElement($e.NI,{key:F.name},Na.createElement($e.lX,null,F.name,":"),se)}))});function Sg(t){var r,i,o,s,d;return(((i=(r=t.schema)==null?void 0:r.oneOf)==null?void 0:i.length)?((s=t.schema)==null?void 0:s.oneOf[(o=t.schema)==null?void 0:o.activeOneOf].fields)||[]:((d=t.schema)==null?void 0:d.fields)||[]).filter(g=>!g.schema.readOnly)}const Ap=Lt.styled.div`
346
+ `;class pg extends h.Component{render(){const{onChange:r,active:i,hasResponse:o}=this.props;return cd.createElement(dg,null,cd.createElement(gp,{onClick:()=>r(0),active:i===0},o?"Edit Request":"Request"),cd.createElement(gp,{onClick:()=>o&&r(1),active:i===1,disabled:!o}," ","Response"," "))}}var hg=a(9996),vg=a.n(hg),dd=a(67897),Mf=a(49376),gg=a(67294),yg=Object.defineProperty,Lf=Object.getOwnPropertySymbols,yp=Object.prototype.hasOwnProperty,mp=Object.prototype.propertyIsEnumerable,xp=(t,r,i)=>r in t?yg(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,mg=(t,r)=>{for(var i in r||(r={}))yp.call(r,i)&&xp(t,i,r[i]);if(Lf)for(var i of Lf(r))mp.call(r,i)&&xp(t,i,r[i]);return t},bp=(t,r)=>{var i={};for(var o in t)yp.call(t,o)&&r.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&Lf)for(var o of Lf(t))r.indexOf(o)<0&&mp.call(t,o)&&(i[o]=t[o]);return i},xg=(t,r,i)=>new Promise((o,s)=>{var d=x=>{try{A(i.next(x))}catch(w){s(w)}},y=x=>{try{A(i.throw(x))}catch(w){s(w)}},A=x=>x.done?o(x.value):Promise.resolve(x.value).then(d,y);A((i=i.apply(t,r)).next())});const Sp=(0,h.forwardRef)((t,r)=>{var i=bp(t,[]);const o=i,{schema:s,contentName:d,onChange:y,name:A}=o,x=bp(o,["schema","contentName","onChange","name"]),{render:w}=Rn(mg({field:A},x)),F=W=>xg(void 0,null,function*(){const re=yield wt(W.target.files,s);y(d,re)});return w(gg.createElement("input",{"data-cy":"file-upload-input",type:"file",id:i.id,className:i.className,name:i.name,onChange:F,multiple:i.multiple,accept:i.accept,ref:r}))});Sp.displayName="FileUpload";var Na=a(67294);const bg=(0,za.Pi)(t=>{var r;const{mediaType:i,onChange:o,formApi:s}=t,d=i.examples||{},{exampleKey:y}=(0,dd.C6)(i.operation,d),A=(r=d[y])==null?void 0:r.rawValue,x=Sg(i);(0,h.useEffect)(()=>s&&x.forEach(F=>{var W,re;const ee=A==null?void 0:A[F.name],le=(re=(W=F.example)!=null?W:ee==null?void 0:ee.example)!=null?re:ee,de=typeof le=="object"?JSON.stringify(le):le;le!==void 0&&s.setValue("body."+F.name,`${de}`)}),[y]);const w=i.schema||{};return lt(w,i.name)?Na.createElement(Ap,null,Na.createElement($e.NI,null,Na.createElement(wp,{fullWidth:!0,id:`body.${i.name}`,name:`body.${i.name}`,accept:Ye(i.name),schema:w,contentName:i.name,onChange:o}))):w.type!==J.OBJECT&&!x?(console.warn(`Invalid schema for request body and mime type: "${i.name}"`,w),null):Na.createElement(Ap,null,x.map(F=>{const W=F.schema||{},re=i.name===Mf.T.MULTIPART&&at(W),ee=W.contentMediaType||"",le=re?Na.createElement(wp,{fullWidth:!0,id:"body."+F.name,name:"body."+F.name,accept:Ye(ee),multiple:W.type==="array",schema:W,contentName:F.name,onChange:o}):Na.createElement(Vr,{fullWidth:!0,id:"body."+F.name,field:"body."+F.name,placeholder:W.description||F.name});return Na.createElement($e.NI,{key:F.name},Na.createElement($e.lX,null,F.name,":"),le)}))});function Sg(t){var r,i,o,s,d;return(((i=(r=t.schema)==null?void 0:r.oneOf)==null?void 0:i.length)?((s=t.schema)==null?void 0:s.oneOf[(o=t.schema)==null?void 0:o.activeOneOf].fields)||[]:((d=t.schema)==null?void 0:d.fields)||[]).filter(y=>!y.schema.readOnly)}const Ap=Lt.styled.div`
347
347
  > div {
348
348
  margin-top: 10px;
349
349
  }
@@ -354,36 +354,36 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
354
354
  `,Ag=(0,Tt.ZP)(Eo.A3)`
355
355
  border-radius: ${({theme:t})=>t.components.panels.borderRadius};
356
356
  margin-bottom: 10px;
357
- `;var wg=a(35310),ws=a(4631);function Rf(t,r){r===void 0&&(r=!1);var i=t.length,o=0,s="",d=0,g=16,A=0,x=0,w=0,F=0,H=0;function re(we,Ne){for(var Fe=0,je=0;Fe<we||!Ne;){var ke=t.charCodeAt(o);if(ke>=48&&ke<=57)je=je*16+ke-48;else if(ke>=65&&ke<=70)je=je*16+ke-65+10;else if(ke>=97&&ke<=102)je=je*16+ke-97+10;else break;o++,Fe++}return Fe<we&&(je=-1),je}function ee(we){o=we,s="",d=0,g=16,H=0}function se(){var we=o;if(t.charCodeAt(o)===48)o++;else for(o++;o<t.length&&Cs(t.charCodeAt(o));)o++;if(o<t.length&&t.charCodeAt(o)===46)if(o++,o<t.length&&Cs(t.charCodeAt(o)))for(o++;o<t.length&&Cs(t.charCodeAt(o));)o++;else return H=3,t.substring(we,o);var Ne=o;if(o<t.length&&(t.charCodeAt(o)===69||t.charCodeAt(o)===101))if(o++,(o<t.length&&t.charCodeAt(o)===43||t.charCodeAt(o)===45)&&o++,o<t.length&&Cs(t.charCodeAt(o))){for(o++;o<t.length&&Cs(t.charCodeAt(o));)o++;Ne=o}else H=3;return t.substring(we,Ne)}function de(){for(var we="",Ne=o;;){if(o>=i){we+=t.substring(Ne,o),H=2;break}var Fe=t.charCodeAt(o);if(Fe===34){we+=t.substring(Ne,o),o++;break}if(Fe===92){if(we+=t.substring(Ne,o),o++,o>=i){H=2;break}var je=t.charCodeAt(o++);switch(je){case 34:we+='"';break;case 92:we+="\\";break;case 47:we+="/";break;case 98:we+="\b";break;case 102:we+="\f";break;case 110:we+=`
358
- `;break;case 114:we+="\r";break;case 116:we+=" ";break;case 117:var ke=re(4,!0);ke>=0?we+=String.fromCharCode(ke):H=4;break;default:H=5}Ne=o;continue}if(Fe>=0&&Fe<=31)if(Hl(Fe)){we+=t.substring(Ne,o),H=2;break}else H=6;o++}return we}function pe(){if(s="",H=0,d=o,x=A,F=w,o>=i)return d=i,g=17;var we=t.charCodeAt(o);if(pd(we)){do o++,s+=String.fromCharCode(we),we=t.charCodeAt(o);while(pd(we));return g=15}if(Hl(we))return o++,s+=String.fromCharCode(we),we===13&&t.charCodeAt(o)===10&&(o++,s+=`
359
- `),A++,w=o,g=14;switch(we){case 123:return o++,g=1;case 125:return o++,g=2;case 91:return o++,g=3;case 93:return o++,g=4;case 58:return o++,g=6;case 44:return o++,g=5;case 34:return o++,s=de(),g=10;case 47:var Ne=o-1;if(t.charCodeAt(o+1)===47){for(o+=2;o<i&&!Hl(t.charCodeAt(o));)o++;return s=t.substring(Ne,o),g=12}if(t.charCodeAt(o+1)===42){o+=2;for(var Fe=i-1,je=!1;o<Fe;){var ke=t.charCodeAt(o);if(ke===42&&t.charCodeAt(o+1)===47){o+=2,je=!0;break}o++,Hl(ke)&&(ke===13&&t.charCodeAt(o)===10&&o++,A++,w=o)}return je||(o++,H=1),s=t.substring(Ne,o),g=13}return s+=String.fromCharCode(we),o++,g=16;case 45:if(s+=String.fromCharCode(we),o++,o===i||!Cs(t.charCodeAt(o)))return g=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s+=se(),g=11;default:for(;o<i&&xe(we);)o++,we=t.charCodeAt(o);if(d!==o){switch(s=t.substring(d,o),s){case"true":return g=8;case"false":return g=9;case"null":return g=7}return g=16}return s+=String.fromCharCode(we),o++,g=16}}function xe(we){if(pd(we)||Hl(we))return!1;switch(we){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function ve(){var we;do we=pe();while(we>=12&&we<=15);return we}return{setPosition:ee,getPosition:function(){return o},scan:r?ve:pe,getToken:function(){return g},getTokenValue:function(){return s},getTokenOffset:function(){return d},getTokenLength:function(){return o-d},getTokenStartLine:function(){return x},getTokenStartCharacter:function(){return d-F},getTokenError:function(){return H}}}function pd(t){return t===32||t===9||t===11||t===12||t===160||t===5760||t>=8192&&t<=8203||t===8239||t===8287||t===12288||t===65279}function Hl(t){return t===10||t===13||t===8232||t===8233}function Cs(t){return t>=48&&t<=57}function Cg(t,r,i){var o,s,d,g,A;if(r){for(g=r.offset,A=g+r.length,d=g;d>0&&!Cp(t,d-1);)d--;for(var x=A;x<t.length&&!Cp(t,x);)x++;s=t.substring(d,x),o=Eg(s,i)}else s=t,o=0,d=0,g=0,A=t.length;var w=Og(i,t),F=!1,H=0,re;i.insertSpaces?re=hd(" ",i.tabSize||4):re=" ";var ee=Rf(s,!1),se=!1;function de(){return w+hd(re,o+H)}function pe(){var Ke=ee.scan();for(F=!1;Ke===15||Ke===14;)F=F||Ke===14,Ke=ee.scan();return se=Ke===16||ee.getTokenError()!==0,Ke}var xe=[];function ve(Ke,Ze,_e){!se&&Ze<A&&_e>g&&t.substring(Ze,_e)!==Ke&&xe.push({offset:Ze,length:_e-Ze,content:Ke})}var we=pe();if(we!==17){var Ne=ee.getTokenOffset()+d,Fe=hd(re,o);ve(Fe,d,Ne)}for(;we!==17;){for(var je=ee.getTokenOffset()+ee.getTokenLength()+d,ke=pe(),Me="";!F&&(ke===12||ke===13);){var De=ee.getTokenOffset()+d;ve(" ",je,De),je=ee.getTokenOffset()+ee.getTokenLength()+d,Me=ke===12?de():"",ke=pe()}if(ke===2)we!==1&&(H--,Me=de());else if(ke===4)we!==3&&(H--,Me=de());else{switch(we){case 3:case 1:H++,Me=de();break;case 5:case 12:Me=de();break;case 13:F?Me=de():Me=" ";break;case 6:Me=" ";break;case 10:if(ke===6){Me="";break}case 7:case 8:case 9:case 11:case 2:case 4:ke===12||ke===13?Me=" ":ke!==5&&ke!==17&&(se=!0);break;case 16:se=!0;break}F&&(ke===12||ke===13)&&(Me=de())}var Ve=ee.getTokenOffset()+d;ve(Me,je,Ve),we=ke}return xe}function hd(t,r){for(var i="",o=0;o<r;o++)i+=t;return i}function Eg(t,r){for(var i=0,o=0,s=r.tabSize||4;i<t.length;){var d=t.charAt(i);if(d===" ")o++;else if(d===" ")o+=s;else break;i++}return Math.floor(o/s)}function Og(t,r){for(var i=0;i<r.length;i++){var o=r.charAt(i);if(o==="\r")return i+1<r.length&&r.charAt(i+1)===`
357
+ `;var wg=a(35310),ws=a(4631);function Rf(t,r){r===void 0&&(r=!1);var i=t.length,o=0,s="",d=0,y=16,A=0,x=0,w=0,F=0,W=0;function re(we,Ne){for(var Fe=0,je=0;Fe<we||!Ne;){var ke=t.charCodeAt(o);if(ke>=48&&ke<=57)je=je*16+ke-48;else if(ke>=65&&ke<=70)je=je*16+ke-65+10;else if(ke>=97&&ke<=102)je=je*16+ke-97+10;else break;o++,Fe++}return Fe<we&&(je=-1),je}function ee(we){o=we,s="",d=0,y=16,W=0}function le(){var we=o;if(t.charCodeAt(o)===48)o++;else for(o++;o<t.length&&Cs(t.charCodeAt(o));)o++;if(o<t.length&&t.charCodeAt(o)===46)if(o++,o<t.length&&Cs(t.charCodeAt(o)))for(o++;o<t.length&&Cs(t.charCodeAt(o));)o++;else return W=3,t.substring(we,o);var Ne=o;if(o<t.length&&(t.charCodeAt(o)===69||t.charCodeAt(o)===101))if(o++,(o<t.length&&t.charCodeAt(o)===43||t.charCodeAt(o)===45)&&o++,o<t.length&&Cs(t.charCodeAt(o))){for(o++;o<t.length&&Cs(t.charCodeAt(o));)o++;Ne=o}else W=3;return t.substring(we,Ne)}function de(){for(var we="",Ne=o;;){if(o>=i){we+=t.substring(Ne,o),W=2;break}var Fe=t.charCodeAt(o);if(Fe===34){we+=t.substring(Ne,o),o++;break}if(Fe===92){if(we+=t.substring(Ne,o),o++,o>=i){W=2;break}var je=t.charCodeAt(o++);switch(je){case 34:we+='"';break;case 92:we+="\\";break;case 47:we+="/";break;case 98:we+="\b";break;case 102:we+="\f";break;case 110:we+=`
358
+ `;break;case 114:we+="\r";break;case 116:we+=" ";break;case 117:var ke=re(4,!0);ke>=0?we+=String.fromCharCode(ke):W=4;break;default:W=5}Ne=o;continue}if(Fe>=0&&Fe<=31)if(Hl(Fe)){we+=t.substring(Ne,o),W=2;break}else W=6;o++}return we}function he(){if(s="",W=0,d=o,x=A,F=w,o>=i)return d=i,y=17;var we=t.charCodeAt(o);if(pd(we)){do o++,s+=String.fromCharCode(we),we=t.charCodeAt(o);while(pd(we));return y=15}if(Hl(we))return o++,s+=String.fromCharCode(we),we===13&&t.charCodeAt(o)===10&&(o++,s+=`
359
+ `),A++,w=o,y=14;switch(we){case 123:return o++,y=1;case 125:return o++,y=2;case 91:return o++,y=3;case 93:return o++,y=4;case 58:return o++,y=6;case 44:return o++,y=5;case 34:return o++,s=de(),y=10;case 47:var Ne=o-1;if(t.charCodeAt(o+1)===47){for(o+=2;o<i&&!Hl(t.charCodeAt(o));)o++;return s=t.substring(Ne,o),y=12}if(t.charCodeAt(o+1)===42){o+=2;for(var Fe=i-1,je=!1;o<Fe;){var ke=t.charCodeAt(o);if(ke===42&&t.charCodeAt(o+1)===47){o+=2,je=!0;break}o++,Hl(ke)&&(ke===13&&t.charCodeAt(o)===10&&o++,A++,w=o)}return je||(o++,W=1),s=t.substring(Ne,o),y=13}return s+=String.fromCharCode(we),o++,y=16;case 45:if(s+=String.fromCharCode(we),o++,o===i||!Cs(t.charCodeAt(o)))return y=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s+=le(),y=11;default:for(;o<i&&xe(we);)o++,we=t.charCodeAt(o);if(d!==o){switch(s=t.substring(d,o),s){case"true":return y=8;case"false":return y=9;case"null":return y=7}return y=16}return s+=String.fromCharCode(we),o++,y=16}}function xe(we){if(pd(we)||Hl(we))return!1;switch(we){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function ve(){var we;do we=he();while(we>=12&&we<=15);return we}return{setPosition:ee,getPosition:function(){return o},scan:r?ve:he,getToken:function(){return y},getTokenValue:function(){return s},getTokenOffset:function(){return d},getTokenLength:function(){return o-d},getTokenStartLine:function(){return x},getTokenStartCharacter:function(){return d-F},getTokenError:function(){return W}}}function pd(t){return t===32||t===9||t===11||t===12||t===160||t===5760||t>=8192&&t<=8203||t===8239||t===8287||t===12288||t===65279}function Hl(t){return t===10||t===13||t===8232||t===8233}function Cs(t){return t>=48&&t<=57}function Cg(t,r,i){var o,s,d,y,A;if(r){for(y=r.offset,A=y+r.length,d=y;d>0&&!Cp(t,d-1);)d--;for(var x=A;x<t.length&&!Cp(t,x);)x++;s=t.substring(d,x),o=Eg(s,i)}else s=t,o=0,d=0,y=0,A=t.length;var w=Og(i,t),F=!1,W=0,re;i.insertSpaces?re=hd(" ",i.tabSize||4):re=" ";var ee=Rf(s,!1),le=!1;function de(){return w+hd(re,o+W)}function he(){var Ke=ee.scan();for(F=!1;Ke===15||Ke===14;)F=F||Ke===14,Ke=ee.scan();return le=Ke===16||ee.getTokenError()!==0,Ke}var xe=[];function ve(Ke,Ze,_e){!le&&Ze<A&&_e>y&&t.substring(Ze,_e)!==Ke&&xe.push({offset:Ze,length:_e-Ze,content:Ke})}var we=he();if(we!==17){var Ne=ee.getTokenOffset()+d,Fe=hd(re,o);ve(Fe,d,Ne)}for(;we!==17;){for(var je=ee.getTokenOffset()+ee.getTokenLength()+d,ke=he(),Me="";!F&&(ke===12||ke===13);){var De=ee.getTokenOffset()+d;ve(" ",je,De),je=ee.getTokenOffset()+ee.getTokenLength()+d,Me=ke===12?de():"",ke=he()}if(ke===2)we!==1&&(W--,Me=de());else if(ke===4)we!==3&&(W--,Me=de());else{switch(we){case 3:case 1:W++,Me=de();break;case 5:case 12:Me=de();break;case 13:F?Me=de():Me=" ";break;case 6:Me=" ";break;case 10:if(ke===6){Me="";break}case 7:case 8:case 9:case 11:case 2:case 4:ke===12||ke===13?Me=" ":ke!==5&&ke!==17&&(le=!0);break;case 16:le=!0;break}F&&(ke===12||ke===13)&&(Me=de())}var Ve=ee.getTokenOffset()+d;ve(Me,je,Ve),we=ke}return xe}function hd(t,r){for(var i="",o=0;o<r;o++)i+=t;return i}function Eg(t,r){for(var i=0,o=0,s=r.tabSize||4;i<t.length;){var d=t.charAt(i);if(d===" ")o++;else if(d===" ")o+=s;else break;i++}return Math.floor(o/s)}function Og(t,r){for(var i=0;i<r.length;i++){var o=r.charAt(i);if(o==="\r")return i+1<r.length&&r.charAt(i+1)===`
360
360
  `?`\r
361
361
  `:"\r";if(o===`
362
362
  `)return`
363
363
  `}return t&&t.eol||`
364
364
  `}function Cp(t,r){return`\r
365
- `.indexOf(t.charAt(r))!==-1}var zl;(function(t){t.DEFAULT={allowTrailingComma:!1}})(zl||(zl={}));function Tg(t,r){var i=[],o=new Object,s=void 0,d={value:{},offset:0,length:0,type:"object",parent:void 0},g=!1;function A(x,w,F,H){d.value=x,d.offset=w,d.length=F,d.type=H,d.colonOffset=void 0,s=d}try{Df(t,{onObjectBegin:function(x,w){if(r<=x)throw o;s=void 0,g=r>x,i.push("")},onObjectProperty:function(x,w,F){if(r<w||(A(x,w,F,"property"),i[i.length-1]=x,r<=w+F))throw o},onObjectEnd:function(x,w){if(r<=x)throw o;s=void 0,i.pop()},onArrayBegin:function(x,w){if(r<=x)throw o;s=void 0,i.push(0)},onArrayEnd:function(x,w){if(r<=x)throw o;s=void 0,i.pop()},onLiteralValue:function(x,w,F){if(r<w||(A(x,w,F,Tp(x)),r<=w+F))throw o},onSeparator:function(x,w,F){if(r<=w)throw o;if(x===":"&&s&&s.type==="property")s.colonOffset=w,g=!1,s=void 0;else if(x===","){var H=i[i.length-1];typeof H=="number"?i[i.length-1]=H+1:(g=!0,i[i.length-1]=""),s=void 0}}})}catch(x){if(x!==o)throw x}return{path:i,previousNode:s,isAtPropertyKey:g,matches:function(x){for(var w=0,F=0;w<x.length&&F<i.length;F++)if(x[w]===i[F]||x[w]==="*")w++;else if(x[w]!=="**")return!1;return w===x.length}}}function Pg(t,r,i){r===void 0&&(r=[]),i===void 0&&(i=zl.DEFAULT);var o=null,s=[],d=[];function g(x){Array.isArray(s)?s.push(x):o!==null&&(s[o]=x)}var A={onObjectBegin:function(){var x={};g(x),d.push(s),s=x,o=null},onObjectProperty:function(x){o=x},onObjectEnd:function(){s=d.pop()},onArrayBegin:function(){var x=[];g(x),d.push(s),s=x,o=null},onArrayEnd:function(){s=d.pop()},onLiteralValue:g,onError:function(x,w,F){r.push({error:x,offset:w,length:F})}};return Df(t,A,i),s[0]}function Ig(t,r,i){r===void 0&&(r=[]),i===void 0&&(i=zl.DEFAULT);var o={type:"array",offset:-1,length:-1,children:[],parent:void 0};function s(x){o.type==="property"&&(o.length=x-o.offset,o=o.parent)}function d(x){return o.children.push(x),x}var g={onObjectBegin:function(x){o=d({type:"object",offset:x,length:-1,parent:o,children:[]})},onObjectProperty:function(x,w,F){o=d({type:"property",offset:w,length:-1,parent:o,children:[]}),o.children.push({type:"string",value:x,offset:w,length:F,parent:o})},onObjectEnd:function(x,w){s(x+w),o.length=x+w-o.offset,o=o.parent,s(x+w)},onArrayBegin:function(x,w){o=d({type:"array",offset:x,length:-1,parent:o,children:[]})},onArrayEnd:function(x,w){o.length=x+w-o.offset,o=o.parent,s(x+w)},onLiteralValue:function(x,w,F){d({type:Tp(x),offset:w,length:F,parent:o,value:x}),s(w+F)},onSeparator:function(x,w,F){o.type==="property"&&(x===":"?o.colonOffset=w:x===","&&s(w))},onError:function(x,w,F){r.push({error:x,offset:w,length:F})}};Df(t,g,i);var A=o.children[0];return A&&delete A.parent,A}function Fg(t,r){if(!!t){for(var i=t,o=0,s=r;o<s.length;o++){var d=s[o];if(typeof d=="string"){if(i.type!=="object"||!Array.isArray(i.children))return;for(var g=!1,A=0,x=i.children;A<x.length;A++){var w=x[A];if(Array.isArray(w.children)&&w.children[0].value===d){i=w.children[1],g=!0;break}}if(!g)return}else{var F=d;if(i.type!=="array"||F<0||!Array.isArray(i.children)||F>=i.children.length)return;i=i.children[F]}}return i}}function Ep(t){if(!t.parent||!t.parent.children)return[];var r=Ep(t.parent);if(t.parent.type==="property"){var i=t.parent.children[0].value;r.push(i)}else if(t.parent.type==="array"){var o=t.parent.children.indexOf(t);o!==-1&&r.push(o)}return r}function vd(t){switch(t.type){case"array":return t.children.map(vd);case"object":for(var r=Object.create(null),i=0,o=t.children;i<o.length;i++){var s=o[i],d=s.children[1];d&&(r[s.children[0].value]=vd(d))}return r;case"null":case"string":case"number":case"boolean":return t.value;default:return}}function kg(t,r,i){return i===void 0&&(i=!1),r>=t.offset&&r<t.offset+t.length||i&&r===t.offset+t.length}function Op(t,r,i){if(i===void 0&&(i=!1),kg(t,r,i)){var o=t.children;if(Array.isArray(o))for(var s=0;s<o.length&&o[s].offset<=r;s++){var d=Op(o[s],r,i);if(d)return d}return t}}function Df(t,r,i){i===void 0&&(i=zl.DEFAULT);var o=Rf(t,!1);function s(De){return De?function(){return De(o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter())}:function(){return!0}}function d(De){return De?function(Ve){return De(Ve,o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter())}:function(){return!0}}var g=s(r.onObjectBegin),A=d(r.onObjectProperty),x=s(r.onObjectEnd),w=s(r.onArrayBegin),F=s(r.onArrayEnd),H=d(r.onLiteralValue),re=d(r.onSeparator),ee=s(r.onComment),se=d(r.onError),de=i&&i.disallowComments,pe=i&&i.allowTrailingComma;function xe(){for(;;){var De=o.scan();switch(o.getTokenError()){case 4:ve(14);break;case 5:ve(15);break;case 3:ve(13);break;case 1:de||ve(11);break;case 2:ve(12);break;case 6:ve(16);break}switch(De){case 12:case 13:de?ve(10):ee();break;case 16:ve(1);break;case 15:case 14:break;default:return De}}}function ve(De,Ve,Ke){if(Ve===void 0&&(Ve=[]),Ke===void 0&&(Ke=[]),se(De),Ve.length+Ke.length>0)for(var Ze=o.getToken();Ze!==17;){if(Ve.indexOf(Ze)!==-1){xe();break}else if(Ke.indexOf(Ze)!==-1)break;Ze=xe()}}function we(De){var Ve=o.getTokenValue();return De?H(Ve):A(Ve),xe(),!0}function Ne(){switch(o.getToken()){case 11:var De=o.getTokenValue(),Ve=Number(De);isNaN(Ve)&&(ve(2),Ve=0),H(Ve);break;case 7:H(null);break;case 8:H(!0);break;case 9:H(!1);break;default:return!1}return xe(),!0}function Fe(){return o.getToken()!==10?(ve(3,[],[2,5]),!1):(we(!1),o.getToken()===6?(re(":"),xe(),Me()||ve(4,[],[2,5])):ve(5,[],[2,5]),!0)}function je(){g(),xe();for(var De=!1;o.getToken()!==2&&o.getToken()!==17;){if(o.getToken()===5){if(De||ve(4,[],[]),re(","),xe(),o.getToken()===2&&pe)break}else De&&ve(6,[],[]);Fe()||ve(4,[],[2,5]),De=!0}return x(),o.getToken()!==2?ve(7,[2],[]):xe(),!0}function ke(){w(),xe();for(var De=!1;o.getToken()!==4&&o.getToken()!==17;){if(o.getToken()===5){if(De||ve(4,[],[]),re(","),xe(),o.getToken()===4&&pe)break}else De&&ve(6,[],[]);Me()||ve(4,[],[4,5]),De=!0}return F(),o.getToken()!==4?ve(8,[4],[]):xe(),!0}function Me(){switch(o.getToken()){case 3:return ke();case 1:return je();case 10:return we(!0);default:return Ne()}}return xe(),o.getToken()===17?i.allowEmptyContent?!0:(ve(4,[],[]),!1):Me()?(o.getToken()!==17&&ve(9,[],[]),!0):(ve(4,[],[]),!1)}function Mg(t,r){var i=Rf(t),o=[],s,d=0,g;do switch(g=i.getPosition(),s=i.scan(),s){case 12:case 13:case 17:d!==g&&o.push(t.substring(d,g)),r!==void 0&&o.push(i.getTokenValue().replace(/[^\r\n]/g,r)),d=i.getPosition();break}while(s!==17);return o.join("")}function Tp(t){switch(typeof t){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(t){if(Array.isArray(t))return"array"}else return"null";return"object"}default:return"null"}}function _m(t,r,i){return Lg(t,r,void 0,i)}function Lg(t,r,i,o){for(var s,d=r.slice(),g=[],A=parseTree(t,g),x=void 0,w=void 0;d.length>0&&(w=d.pop(),x=findNodeAtLocation(A,d),x===void 0&&i!==void 0);)typeof w=="string"?i=(s={},s[w]=i,s):i=[i];if(x)if(x.type==="object"&&typeof w=="string"&&Array.isArray(x.children)){var F=findNodeAtLocation(x,[w]);if(F!==void 0)if(i===void 0){if(!F.parent)throw new Error("Malformed AST");var H=x.children.indexOf(F.parent),re=void 0,ee=F.parent.offset+F.parent.length;if(H>0){var se=x.children[H-1];re=se.offset+se.length}else if(re=x.offset+1,x.children.length>1){var de=x.children[1];ee=de.offset}return Oo(t,{offset:re,length:ee-re,content:""},o)}else return Oo(t,{offset:F.offset,length:F.length,content:JSON.stringify(i)},o);else{if(i===void 0)return[];var pe=JSON.stringify(w)+": "+JSON.stringify(i),xe=o.getInsertionIndex?o.getInsertionIndex(x.children.map(function(De){return De.children[0].value})):x.children.length,ve=void 0;if(xe>0){var se=x.children[xe-1];ve={offset:se.offset+se.length,length:0,content:","+pe}}else x.children.length===0?ve={offset:x.offset+1,length:0,content:pe}:ve={offset:x.offset+1,length:0,content:pe+","};return Oo(t,ve,o)}}else if(x.type==="array"&&typeof w=="number"&&Array.isArray(x.children)){var we=w;if(we===-1){var pe=""+JSON.stringify(i),ve=void 0;if(x.children.length===0)ve={offset:x.offset+1,length:0,content:pe};else{var se=x.children[x.children.length-1];ve={offset:se.offset+se.length,length:0,content:","+pe}}return Oo(t,ve,o)}else if(i===void 0&&x.children.length>=0){var Ne=w,Fe=x.children[Ne],ve=void 0;if(x.children.length===1)ve={offset:x.offset+1,length:x.length-2,content:""};else if(x.children.length-1===Ne){var se=x.children[Ne-1],je=se.offset+se.length,ke=x.offset+x.length;ve={offset:je,length:ke-2-je,content:""}}else ve={offset:Fe.offset,length:x.children[Ne+1].offset-Fe.offset,content:""};return Oo(t,ve,o)}else if(i!==void 0){var ve=void 0,pe=""+JSON.stringify(i);if(!o.isArrayInsertion&&x.children.length>w){var Me=x.children[w];ve={offset:Me.offset,length:Me.length,content:pe}}else if(x.children.length===0||w===0)ve={offset:x.offset+1,length:0,content:x.children.length===0?pe:pe+","};else{var xe=w>x.children.length?x.children.length:w,se=x.children[xe-1];ve={offset:se.offset+se.length,length:0,content:","+pe}}return Oo(t,ve,o)}else throw new Error("Can not "+(i===void 0?"remove":o.isArrayInsertion?"insert":"modify")+" Array index "+we+" as length is not sufficient")}else throw new Error("Can not add "+(typeof w!="number"?"index":"property")+" to parent of type "+x.type);else{if(i===void 0)throw new Error("Can not delete in empty document");return Oo(t,{offset:A?A.offset:0,length:A?A.length:0,content:JSON.stringify(i)},o)}}function Oo(t,r,i){if(!i.formattingOptions)return[r];var o=Pp(t,r),s=r.offset,d=r.offset+r.content.length;if(r.length===0||r.content.length===0){for(;s>0&&!isEOL(o,s-1);)s--;for(;d<o.length&&!isEOL(o,d);)d++}for(var g=format(o,{offset:s,length:d-s},i.formattingOptions),A=g.length-1;A>=0;A--){var x=g[A];o=Pp(o,x),s=Math.min(s,x.offset),d=Math.max(d,x.offset+x.length),d+=x.content.length-x.length}var w=t.length-(o.length-d)-s;return[{offset:s,length:w,content:o.substring(s,d)}]}function Pp(t,r){return t.substring(0,r.offset)+r.content+t.substring(r.offset+r.length)}function e0(t,r){return`\r
366
- `.indexOf(t.charAt(r))!==-1}var Es=Rf,t0=Tg,Rg=Pg,r0=Ig,n0=Fg,Dg=Op,Ng=Ep,Bg=vd,i0=Df,a0=Mg;function o0(t){switch(t){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}function jg(t,r,i){return Cg(t,r,i)}function s0(t,r,i,o){return edit.setProperty(t,r,i,o)}function l0(t,r){for(var i=r.length-1;i>=0;i--)t=edit.applyEdit(t,r[i]);return t}function Gl(t,r){if(t===r)return!0;if(t==null||r===null||r===void 0||typeof t!=typeof r||typeof t!="object"||Array.isArray(t)!==Array.isArray(r))return!1;var i,o;if(Array.isArray(t)){if(t.length!==r.length)return!1;for(i=0;i<t.length;i++)if(!Gl(t[i],r[i]))return!1}else{var s=[];for(o in t)s.push(o);s.sort();var d=[];for(o in r)d.push(o);if(d.sort(),!Gl(s,d))return!1;for(i=0;i<s.length;i++)if(!Gl(t[s[i]],r[s[i]]))return!1}return!0}function qn(t){return typeof t=="number"}function pa(t){return typeof t!="undefined"}function Wi(t){return typeof t=="boolean"}function Ug(t){return typeof t=="string"}var Ip;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647})(Ip||(Ip={}));var Nf;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647})(Nf||(Nf={}));var Si;(function(t){function r(o,s){return o===Number.MAX_VALUE&&(o=Nf.MAX_VALUE),s===Number.MAX_VALUE&&(s=Nf.MAX_VALUE),{line:o,character:s}}t.create=r;function i(o){var s=o;return ze.objectLiteral(s)&&ze.uinteger(s.line)&&ze.uinteger(s.character)}t.is=i})(Si||(Si={}));var dr;(function(t){function r(o,s,d,g){if(ze.uinteger(o)&&ze.uinteger(s)&&ze.uinteger(d)&&ze.uinteger(g))return{start:Si.create(o,s),end:Si.create(d,g)};if(Si.is(o)&&Si.is(s))return{start:o,end:s};throw new Error("Range#create called with invalid arguments["+o+", "+s+", "+d+", "+g+"]")}t.create=r;function i(o){var s=o;return ze.objectLiteral(s)&&Si.is(s.start)&&Si.is(s.end)}t.is=i})(dr||(dr={}));var $l;(function(t){function r(o,s){return{uri:o,range:s}}t.create=r;function i(o){var s=o;return ze.defined(s)&&dr.is(s.range)&&(ze.string(s.uri)||ze.undefined(s.uri))}t.is=i})($l||($l={}));var Fp;(function(t){function r(o,s,d,g){return{targetUri:o,targetRange:s,targetSelectionRange:d,originSelectionRange:g}}t.create=r;function i(o){var s=o;return ze.defined(s)&&dr.is(s.targetRange)&&ze.string(s.targetUri)&&(dr.is(s.targetSelectionRange)||ze.undefined(s.targetSelectionRange))&&(dr.is(s.originSelectionRange)||ze.undefined(s.originSelectionRange))}t.is=i})(Fp||(Fp={}));var gd;(function(t){function r(o,s,d,g){return{red:o,green:s,blue:d,alpha:g}}t.create=r;function i(o){var s=o;return ze.numberRange(s.red,0,1)&&ze.numberRange(s.green,0,1)&&ze.numberRange(s.blue,0,1)&&ze.numberRange(s.alpha,0,1)}t.is=i})(gd||(gd={}));var kp;(function(t){function r(o,s){return{range:o,color:s}}t.create=r;function i(o){var s=o;return dr.is(s.range)&&gd.is(s.color)}t.is=i})(kp||(kp={}));var Mp;(function(t){function r(o,s,d){return{label:o,textEdit:s,additionalTextEdits:d}}t.create=r;function i(o){var s=o;return ze.string(s.label)&&(ze.undefined(s.textEdit)||Ai.is(s))&&(ze.undefined(s.additionalTextEdits)||ze.typedArray(s.additionalTextEdits,Ai.is))}t.is=i})(Mp||(Mp={}));var Kl;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(Kl||(Kl={}));var Lp;(function(t){function r(o,s,d,g,A){var x={startLine:o,endLine:s};return ze.defined(d)&&(x.startCharacter=d),ze.defined(g)&&(x.endCharacter=g),ze.defined(A)&&(x.kind=A),x}t.create=r;function i(o){var s=o;return ze.uinteger(s.startLine)&&ze.uinteger(s.startLine)&&(ze.undefined(s.startCharacter)||ze.uinteger(s.startCharacter))&&(ze.undefined(s.endCharacter)||ze.uinteger(s.endCharacter))&&(ze.undefined(s.kind)||ze.string(s.kind))}t.is=i})(Lp||(Lp={}));var yd;(function(t){function r(o,s){return{location:o,message:s}}t.create=r;function i(o){var s=o;return ze.defined(s)&&$l.is(s.location)&&ze.string(s.message)}t.is=i})(yd||(yd={}));var Ht;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(Ht||(Ht={}));var Rp;(function(t){t.Unnecessary=1,t.Deprecated=2})(Rp||(Rp={}));var Dp;(function(t){function r(i){var o=i;return o!=null&&ze.string(o.href)}t.is=r})(Dp||(Dp={}));var ha;(function(t){function r(o,s,d,g,A,x){var w={range:o,message:s};return ze.defined(d)&&(w.severity=d),ze.defined(g)&&(w.code=g),ze.defined(A)&&(w.source=A),ze.defined(x)&&(w.relatedInformation=x),w}t.create=r;function i(o){var s,d=o;return ze.defined(d)&&dr.is(d.range)&&ze.string(d.message)&&(ze.number(d.severity)||ze.undefined(d.severity))&&(ze.integer(d.code)||ze.string(d.code)||ze.undefined(d.code))&&(ze.undefined(d.codeDescription)||ze.string((s=d.codeDescription)===null||s===void 0?void 0:s.href))&&(ze.string(d.source)||ze.undefined(d.source))&&(ze.undefined(d.relatedInformation)||ze.typedArray(d.relatedInformation,yd.is))}t.is=i})(ha||(ha={}));var Yl;(function(t){function r(o,s){for(var d=[],g=2;g<arguments.length;g++)d[g-2]=arguments[g];var A={title:o,command:s};return ze.defined(d)&&d.length>0&&(A.arguments=d),A}t.create=r;function i(o){var s=o;return ze.defined(s)&&ze.string(s.title)&&ze.string(s.command)}t.is=i})(Yl||(Yl={}));var Ai;(function(t){function r(d,g){return{range:d,newText:g}}t.replace=r;function i(d,g){return{range:{start:d,end:d},newText:g}}t.insert=i;function o(d){return{range:d,newText:""}}t.del=o;function s(d){var g=d;return ze.objectLiteral(g)&&ze.string(g.newText)&&dr.is(g.range)}t.is=s})(Ai||(Ai={}));var Os;(function(t){function r(o,s,d){var g={label:o};return s!==void 0&&(g.needsConfirmation=s),d!==void 0&&(g.description=d),g}t.create=r;function i(o){var s=o;return s!==void 0&&ze.objectLiteral(s)&&ze.string(s.label)&&(ze.boolean(s.needsConfirmation)||s.needsConfirmation===void 0)&&(ze.string(s.description)||s.description===void 0)}t.is=i})(Os||(Os={}));var Pn;(function(t){function r(i){var o=i;return typeof o=="string"}t.is=r})(Pn||(Pn={}));var Ba;(function(t){function r(d,g,A){return{range:d,newText:g,annotationId:A}}t.replace=r;function i(d,g,A){return{range:{start:d,end:d},newText:g,annotationId:A}}t.insert=i;function o(d,g){return{range:d,newText:"",annotationId:g}}t.del=o;function s(d){var g=d;return Ai.is(g)&&(Os.is(g.annotationId)||Pn.is(g.annotationId))}t.is=s})(Ba||(Ba={}));var Bf;(function(t){function r(o,s){return{textDocument:o,edits:s}}t.create=r;function i(o){var s=o;return ze.defined(s)&&Uf.is(s.textDocument)&&Array.isArray(s.edits)}t.is=i})(Bf||(Bf={}));var Jl;(function(t){function r(o,s,d){var g={kind:"create",uri:o};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(g.options=s),d!==void 0&&(g.annotationId=d),g}t.create=r;function i(o){var s=o;return s&&s.kind==="create"&&ze.string(s.uri)&&(s.options===void 0||(s.options.overwrite===void 0||ze.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||ze.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||Pn.is(s.annotationId))}t.is=i})(Jl||(Jl={}));var Xl;(function(t){function r(o,s,d,g){var A={kind:"rename",oldUri:o,newUri:s};return d!==void 0&&(d.overwrite!==void 0||d.ignoreIfExists!==void 0)&&(A.options=d),g!==void 0&&(A.annotationId=g),A}t.create=r;function i(o){var s=o;return s&&s.kind==="rename"&&ze.string(s.oldUri)&&ze.string(s.newUri)&&(s.options===void 0||(s.options.overwrite===void 0||ze.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||ze.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||Pn.is(s.annotationId))}t.is=i})(Xl||(Xl={}));var Ql;(function(t){function r(o,s,d){var g={kind:"delete",uri:o};return s!==void 0&&(s.recursive!==void 0||s.ignoreIfNotExists!==void 0)&&(g.options=s),d!==void 0&&(g.annotationId=d),g}t.create=r;function i(o){var s=o;return s&&s.kind==="delete"&&ze.string(s.uri)&&(s.options===void 0||(s.options.recursive===void 0||ze.boolean(s.options.recursive))&&(s.options.ignoreIfNotExists===void 0||ze.boolean(s.options.ignoreIfNotExists)))&&(s.annotationId===void 0||Pn.is(s.annotationId))}t.is=i})(Ql||(Ql={}));var md;(function(t){function r(i){var o=i;return o&&(o.changes!==void 0||o.documentChanges!==void 0)&&(o.documentChanges===void 0||o.documentChanges.every(function(s){return ze.string(s.kind)?Jl.is(s)||Xl.is(s)||Ql.is(s):Bf.is(s)}))}t.is=r})(md||(md={}));var jf=function(){function t(r,i){this.edits=r,this.changeAnnotations=i}return t.prototype.insert=function(r,i,o){var s,d;if(o===void 0?s=Ai.insert(r,i):Pn.is(o)?(d=o,s=Ba.insert(r,i,o)):(this.assertChangeAnnotations(this.changeAnnotations),d=this.changeAnnotations.manage(o),s=Ba.insert(r,i,d)),this.edits.push(s),d!==void 0)return d},t.prototype.replace=function(r,i,o){var s,d;if(o===void 0?s=Ai.replace(r,i):Pn.is(o)?(d=o,s=Ba.replace(r,i,o)):(this.assertChangeAnnotations(this.changeAnnotations),d=this.changeAnnotations.manage(o),s=Ba.replace(r,i,d)),this.edits.push(s),d!==void 0)return d},t.prototype.delete=function(r,i){var o,s;if(i===void 0?o=Ai.del(r):Pn.is(i)?(s=i,o=Ba.del(r,i)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(i),o=Ba.del(r,s)),this.edits.push(o),s!==void 0)return s},t.prototype.add=function(r){this.edits.push(r)},t.prototype.all=function(){return this.edits},t.prototype.clear=function(){this.edits.splice(0,this.edits.length)},t.prototype.assertChangeAnnotations=function(r){if(r===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},t}(),Np=function(){function t(r){this._annotations=r===void 0?Object.create(null):r,this._counter=0,this._size=0}return t.prototype.all=function(){return this._annotations},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),t.prototype.manage=function(r,i){var o;if(Pn.is(r)?o=r:(o=this.nextId(),i=r),this._annotations[o]!==void 0)throw new Error("Id "+o+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+o);return this._annotations[o]=i,this._size++,o},t.prototype.nextId=function(){return this._counter++,this._counter.toString()},t}(),u0=function(){function t(r){var i=this;this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new Np(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(function(o){if(Bf.is(o)){var s=new jf(o.edits,i._changeAnnotations);i._textEditChanges[o.textDocument.uri]=s}})):r.changes&&Object.keys(r.changes).forEach(function(o){var s=new jf(r.changes[o]);i._textEditChanges[o]=s})):this._workspaceEdit={}}return Object.defineProperty(t.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),t.prototype.getTextEditChange=function(r){if(Uf.is(r)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:r.uri,version:r.version},o=this._textEditChanges[i.uri];if(!o){var s=[],d={textDocument:i,edits:s};this._workspaceEdit.documentChanges.push(d),o=new jf(s,this._changeAnnotations),this._textEditChanges[i.uri]=o}return o}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var o=this._textEditChanges[r];if(!o){var s=[];this._workspaceEdit.changes[r]=s,o=new jf(s),this._textEditChanges[r]=o}return o}},t.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Np,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},t.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},t.prototype.createFile=function(r,i,o){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;Os.is(i)||Pn.is(i)?s=i:o=i;var d,g;if(s===void 0?d=Jl.create(r,o):(g=Pn.is(s)?s:this._changeAnnotations.manage(s),d=Jl.create(r,o,g)),this._workspaceEdit.documentChanges.push(d),g!==void 0)return g},t.prototype.renameFile=function(r,i,o,s){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var d;Os.is(o)||Pn.is(o)?d=o:s=o;var g,A;if(d===void 0?g=Xl.create(r,i,s):(A=Pn.is(d)?d:this._changeAnnotations.manage(d),g=Xl.create(r,i,s,A)),this._workspaceEdit.documentChanges.push(g),A!==void 0)return A},t.prototype.deleteFile=function(r,i,o){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;Os.is(i)||Pn.is(i)?s=i:o=i;var d,g;if(s===void 0?d=Ql.create(r,o):(g=Pn.is(s)?s:this._changeAnnotations.manage(s),d=Ql.create(r,o,g)),this._workspaceEdit.documentChanges.push(d),g!==void 0)return g},t}(),Bp;(function(t){function r(o){return{uri:o}}t.create=r;function i(o){var s=o;return ze.defined(s)&&ze.string(s.uri)}t.is=i})(Bp||(Bp={}));var jp;(function(t){function r(o,s){return{uri:o,version:s}}t.create=r;function i(o){var s=o;return ze.defined(s)&&ze.string(s.uri)&&ze.integer(s.version)}t.is=i})(jp||(jp={}));var Uf;(function(t){function r(o,s){return{uri:o,version:s}}t.create=r;function i(o){var s=o;return ze.defined(s)&&ze.string(s.uri)&&(s.version===null||ze.integer(s.version))}t.is=i})(Uf||(Uf={}));var Up;(function(t){function r(o,s,d,g){return{uri:o,languageId:s,version:d,text:g}}t.create=r;function i(o){var s=o;return ze.defined(s)&&ze.string(s.uri)&&ze.string(s.languageId)&&ze.integer(s.version)&&ze.string(s.text)}t.is=i})(Up||(Up={}));var va;(function(t){t.PlainText="plaintext",t.Markdown="markdown"})(va||(va={})),function(t){function r(i){var o=i;return o===t.PlainText||o===t.Markdown}t.is=r}(va||(va={}));var xd;(function(t){function r(i){var o=i;return ze.objectLiteral(i)&&va.is(o.kind)&&ze.string(o.value)}t.is=r})(xd||(xd={}));var _n;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(_n||(_n={}));var on;(function(t){t.PlainText=1,t.Snippet=2})(on||(on={}));var Vp;(function(t){t.Deprecated=1})(Vp||(Vp={}));var Wp;(function(t){function r(o,s,d){return{newText:o,insert:s,replace:d}}t.create=r;function i(o){var s=o;return s&&ze.string(s.newText)&&dr.is(s.insert)&&dr.is(s.replace)}t.is=i})(Wp||(Wp={}));var Hp;(function(t){t.asIs=1,t.adjustIndentation=2})(Hp||(Hp={}));var bd;(function(t){function r(i){return{label:i}}t.create=r})(bd||(bd={}));var zp;(function(t){function r(i,o){return{items:i||[],isIncomplete:!!o}}t.create=r})(zp||(zp={}));var Vf;(function(t){function r(o){return o.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=r;function i(o){var s=o;return ze.string(s)||ze.objectLiteral(s)&&ze.string(s.language)&&ze.string(s.value)}t.is=i})(Vf||(Vf={}));var Gp;(function(t){function r(i){var o=i;return!!o&&ze.objectLiteral(o)&&(xd.is(o.contents)||Vf.is(o.contents)||ze.typedArray(o.contents,Vf.is))&&(i.range===void 0||dr.is(i.range))}t.is=r})(Gp||(Gp={}));var $p;(function(t){function r(i,o){return o?{label:i,documentation:o}:{label:i}}t.create=r})($p||($p={}));var Kp;(function(t){function r(i,o){for(var s=[],d=2;d<arguments.length;d++)s[d-2]=arguments[d];var g={label:i};return ze.defined(o)&&(g.documentation=o),ze.defined(s)?g.parameters=s:g.parameters=[],g}t.create=r})(Kp||(Kp={}));var Yp;(function(t){t.Text=1,t.Read=2,t.Write=3})(Yp||(Yp={}));var Jp;(function(t){function r(i,o){var s={range:i};return ze.number(o)&&(s.kind=o),s}t.create=r})(Jp||(Jp={}));var Hi;(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(Hi||(Hi={}));var Xp;(function(t){t.Deprecated=1})(Xp||(Xp={}));var Qp;(function(t){function r(i,o,s,d,g){var A={name:i,kind:o,location:{uri:d,range:s}};return g&&(A.containerName=g),A}t.create=r})(Qp||(Qp={}));var Zp;(function(t){function r(o,s,d,g,A,x){var w={name:o,detail:s,kind:d,range:g,selectionRange:A};return x!==void 0&&(w.children=x),w}t.create=r;function i(o){var s=o;return s&&ze.string(s.name)&&ze.number(s.kind)&&dr.is(s.range)&&dr.is(s.selectionRange)&&(s.detail===void 0||ze.string(s.detail))&&(s.deprecated===void 0||ze.boolean(s.deprecated))&&(s.children===void 0||Array.isArray(s.children))&&(s.tags===void 0||Array.isArray(s.tags))}t.is=i})(Zp||(Zp={}));var qp;(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(qp||(qp={}));var _p;(function(t){function r(o,s){var d={diagnostics:o};return s!=null&&(d.only=s),d}t.create=r;function i(o){var s=o;return ze.defined(s)&&ze.typedArray(s.diagnostics,ha.is)&&(s.only===void 0||ze.typedArray(s.only,ze.string))}t.is=i})(_p||(_p={}));var eh;(function(t){function r(o,s,d){var g={title:o},A=!0;return typeof s=="string"?(A=!1,g.kind=s):Yl.is(s)?g.command=s:g.edit=s,A&&d!==void 0&&(g.kind=d),g}t.create=r;function i(o){var s=o;return s&&ze.string(s.title)&&(s.diagnostics===void 0||ze.typedArray(s.diagnostics,ha.is))&&(s.kind===void 0||ze.string(s.kind))&&(s.edit!==void 0||s.command!==void 0)&&(s.command===void 0||Yl.is(s.command))&&(s.isPreferred===void 0||ze.boolean(s.isPreferred))&&(s.edit===void 0||md.is(s.edit))}t.is=i})(eh||(eh={}));var th;(function(t){function r(o,s){var d={range:o};return ze.defined(s)&&(d.data=s),d}t.create=r;function i(o){var s=o;return ze.defined(s)&&dr.is(s.range)&&(ze.undefined(s.command)||Yl.is(s.command))}t.is=i})(th||(th={}));var rh;(function(t){function r(o,s){return{tabSize:o,insertSpaces:s}}t.create=r;function i(o){var s=o;return ze.defined(s)&&ze.uinteger(s.tabSize)&&ze.boolean(s.insertSpaces)}t.is=i})(rh||(rh={}));var nh;(function(t){function r(o,s,d){return{range:o,target:s,data:d}}t.create=r;function i(o){var s=o;return ze.defined(s)&&dr.is(s.range)&&(ze.undefined(s.target)||ze.string(s.target))}t.is=i})(nh||(nh={}));var Wf;(function(t){function r(o,s){return{range:o,parent:s}}t.create=r;function i(o){var s=o;return s!==void 0&&dr.is(s.range)&&(s.parent===void 0||t.is(s.parent))}t.is=i})(Wf||(Wf={}));var f0=null,ih;(function(t){function r(d,g,A,x){return new Vg(d,g,A,x)}t.create=r;function i(d){var g=d;return!!(ze.defined(g)&&ze.string(g.uri)&&(ze.undefined(g.languageId)||ze.string(g.languageId))&&ze.uinteger(g.lineCount)&&ze.func(g.getText)&&ze.func(g.positionAt)&&ze.func(g.offsetAt))}t.is=i;function o(d,g){for(var A=d.getText(),x=s(g,function(se,de){var pe=se.range.start.line-de.range.start.line;return pe===0?se.range.start.character-de.range.start.character:pe}),w=A.length,F=x.length-1;F>=0;F--){var H=x[F],re=d.offsetAt(H.range.start),ee=d.offsetAt(H.range.end);if(ee<=w)A=A.substring(0,re)+H.newText+A.substring(ee,A.length);else throw new Error("Overlapping edit");w=re}return A}t.applyEdits=o;function s(d,g){if(d.length<=1)return d;var A=d.length/2|0,x=d.slice(0,A),w=d.slice(A);s(x,g),s(w,g);for(var F=0,H=0,re=0;F<x.length&&H<w.length;){var ee=g(x[F],w[H]);ee<=0?d[re++]=x[F++]:d[re++]=w[H++]}for(;F<x.length;)d[re++]=x[F++];for(;H<w.length;)d[re++]=w[H++];return d}})(ih||(ih={}));var Vg=function(){function t(r,i,o,s){this._uri=r,this._languageId=i,this._version=o,this._content=s,this._lineOffsets=void 0}return Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),t.prototype.getText=function(r){if(r){var i=this.offsetAt(r.start),o=this.offsetAt(r.end);return this._content.substring(i,o)}return this._content},t.prototype.update=function(r,i){this._content=r.text,this._version=i,this._lineOffsets=void 0},t.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var r=[],i=this._content,o=!0,s=0;s<i.length;s++){o&&(r.push(s),o=!1);var d=i.charAt(s);o=d==="\r"||d===`
365
+ `.indexOf(t.charAt(r))!==-1}var zl;(function(t){t.DEFAULT={allowTrailingComma:!1}})(zl||(zl={}));function Tg(t,r){var i=[],o=new Object,s=void 0,d={value:{},offset:0,length:0,type:"object",parent:void 0},y=!1;function A(x,w,F,W){d.value=x,d.offset=w,d.length=F,d.type=W,d.colonOffset=void 0,s=d}try{Df(t,{onObjectBegin:function(x,w){if(r<=x)throw o;s=void 0,y=r>x,i.push("")},onObjectProperty:function(x,w,F){if(r<w||(A(x,w,F,"property"),i[i.length-1]=x,r<=w+F))throw o},onObjectEnd:function(x,w){if(r<=x)throw o;s=void 0,i.pop()},onArrayBegin:function(x,w){if(r<=x)throw o;s=void 0,i.push(0)},onArrayEnd:function(x,w){if(r<=x)throw o;s=void 0,i.pop()},onLiteralValue:function(x,w,F){if(r<w||(A(x,w,F,Tp(x)),r<=w+F))throw o},onSeparator:function(x,w,F){if(r<=w)throw o;if(x===":"&&s&&s.type==="property")s.colonOffset=w,y=!1,s=void 0;else if(x===","){var W=i[i.length-1];typeof W=="number"?i[i.length-1]=W+1:(y=!0,i[i.length-1]=""),s=void 0}}})}catch(x){if(x!==o)throw x}return{path:i,previousNode:s,isAtPropertyKey:y,matches:function(x){for(var w=0,F=0;w<x.length&&F<i.length;F++)if(x[w]===i[F]||x[w]==="*")w++;else if(x[w]!=="**")return!1;return w===x.length}}}function Pg(t,r,i){r===void 0&&(r=[]),i===void 0&&(i=zl.DEFAULT);var o=null,s=[],d=[];function y(x){Array.isArray(s)?s.push(x):o!==null&&(s[o]=x)}var A={onObjectBegin:function(){var x={};y(x),d.push(s),s=x,o=null},onObjectProperty:function(x){o=x},onObjectEnd:function(){s=d.pop()},onArrayBegin:function(){var x=[];y(x),d.push(s),s=x,o=null},onArrayEnd:function(){s=d.pop()},onLiteralValue:y,onError:function(x,w,F){r.push({error:x,offset:w,length:F})}};return Df(t,A,i),s[0]}function Ig(t,r,i){r===void 0&&(r=[]),i===void 0&&(i=zl.DEFAULT);var o={type:"array",offset:-1,length:-1,children:[],parent:void 0};function s(x){o.type==="property"&&(o.length=x-o.offset,o=o.parent)}function d(x){return o.children.push(x),x}var y={onObjectBegin:function(x){o=d({type:"object",offset:x,length:-1,parent:o,children:[]})},onObjectProperty:function(x,w,F){o=d({type:"property",offset:w,length:-1,parent:o,children:[]}),o.children.push({type:"string",value:x,offset:w,length:F,parent:o})},onObjectEnd:function(x,w){s(x+w),o.length=x+w-o.offset,o=o.parent,s(x+w)},onArrayBegin:function(x,w){o=d({type:"array",offset:x,length:-1,parent:o,children:[]})},onArrayEnd:function(x,w){o.length=x+w-o.offset,o=o.parent,s(x+w)},onLiteralValue:function(x,w,F){d({type:Tp(x),offset:w,length:F,parent:o,value:x}),s(w+F)},onSeparator:function(x,w,F){o.type==="property"&&(x===":"?o.colonOffset=w:x===","&&s(w))},onError:function(x,w,F){r.push({error:x,offset:w,length:F})}};Df(t,y,i);var A=o.children[0];return A&&delete A.parent,A}function Fg(t,r){if(!!t){for(var i=t,o=0,s=r;o<s.length;o++){var d=s[o];if(typeof d=="string"){if(i.type!=="object"||!Array.isArray(i.children))return;for(var y=!1,A=0,x=i.children;A<x.length;A++){var w=x[A];if(Array.isArray(w.children)&&w.children[0].value===d){i=w.children[1],y=!0;break}}if(!y)return}else{var F=d;if(i.type!=="array"||F<0||!Array.isArray(i.children)||F>=i.children.length)return;i=i.children[F]}}return i}}function Ep(t){if(!t.parent||!t.parent.children)return[];var r=Ep(t.parent);if(t.parent.type==="property"){var i=t.parent.children[0].value;r.push(i)}else if(t.parent.type==="array"){var o=t.parent.children.indexOf(t);o!==-1&&r.push(o)}return r}function vd(t){switch(t.type){case"array":return t.children.map(vd);case"object":for(var r=Object.create(null),i=0,o=t.children;i<o.length;i++){var s=o[i],d=s.children[1];d&&(r[s.children[0].value]=vd(d))}return r;case"null":case"string":case"number":case"boolean":return t.value;default:return}}function kg(t,r,i){return i===void 0&&(i=!1),r>=t.offset&&r<t.offset+t.length||i&&r===t.offset+t.length}function Op(t,r,i){if(i===void 0&&(i=!1),kg(t,r,i)){var o=t.children;if(Array.isArray(o))for(var s=0;s<o.length&&o[s].offset<=r;s++){var d=Op(o[s],r,i);if(d)return d}return t}}function Df(t,r,i){i===void 0&&(i=zl.DEFAULT);var o=Rf(t,!1);function s(De){return De?function(){return De(o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter())}:function(){return!0}}function d(De){return De?function(Ve){return De(Ve,o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter())}:function(){return!0}}var y=s(r.onObjectBegin),A=d(r.onObjectProperty),x=s(r.onObjectEnd),w=s(r.onArrayBegin),F=s(r.onArrayEnd),W=d(r.onLiteralValue),re=d(r.onSeparator),ee=s(r.onComment),le=d(r.onError),de=i&&i.disallowComments,he=i&&i.allowTrailingComma;function xe(){for(;;){var De=o.scan();switch(o.getTokenError()){case 4:ve(14);break;case 5:ve(15);break;case 3:ve(13);break;case 1:de||ve(11);break;case 2:ve(12);break;case 6:ve(16);break}switch(De){case 12:case 13:de?ve(10):ee();break;case 16:ve(1);break;case 15:case 14:break;default:return De}}}function ve(De,Ve,Ke){if(Ve===void 0&&(Ve=[]),Ke===void 0&&(Ke=[]),le(De),Ve.length+Ke.length>0)for(var Ze=o.getToken();Ze!==17;){if(Ve.indexOf(Ze)!==-1){xe();break}else if(Ke.indexOf(Ze)!==-1)break;Ze=xe()}}function we(De){var Ve=o.getTokenValue();return De?W(Ve):A(Ve),xe(),!0}function Ne(){switch(o.getToken()){case 11:var De=o.getTokenValue(),Ve=Number(De);isNaN(Ve)&&(ve(2),Ve=0),W(Ve);break;case 7:W(null);break;case 8:W(!0);break;case 9:W(!1);break;default:return!1}return xe(),!0}function Fe(){return o.getToken()!==10?(ve(3,[],[2,5]),!1):(we(!1),o.getToken()===6?(re(":"),xe(),Me()||ve(4,[],[2,5])):ve(5,[],[2,5]),!0)}function je(){y(),xe();for(var De=!1;o.getToken()!==2&&o.getToken()!==17;){if(o.getToken()===5){if(De||ve(4,[],[]),re(","),xe(),o.getToken()===2&&he)break}else De&&ve(6,[],[]);Fe()||ve(4,[],[2,5]),De=!0}return x(),o.getToken()!==2?ve(7,[2],[]):xe(),!0}function ke(){w(),xe();for(var De=!1;o.getToken()!==4&&o.getToken()!==17;){if(o.getToken()===5){if(De||ve(4,[],[]),re(","),xe(),o.getToken()===4&&he)break}else De&&ve(6,[],[]);Me()||ve(4,[],[4,5]),De=!0}return F(),o.getToken()!==4?ve(8,[4],[]):xe(),!0}function Me(){switch(o.getToken()){case 3:return ke();case 1:return je();case 10:return we(!0);default:return Ne()}}return xe(),o.getToken()===17?i.allowEmptyContent?!0:(ve(4,[],[]),!1):Me()?(o.getToken()!==17&&ve(9,[],[]),!0):(ve(4,[],[]),!1)}function Mg(t,r){var i=Rf(t),o=[],s,d=0,y;do switch(y=i.getPosition(),s=i.scan(),s){case 12:case 13:case 17:d!==y&&o.push(t.substring(d,y)),r!==void 0&&o.push(i.getTokenValue().replace(/[^\r\n]/g,r)),d=i.getPosition();break}while(s!==17);return o.join("")}function Tp(t){switch(typeof t){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(t){if(Array.isArray(t))return"array"}else return"null";return"object"}default:return"null"}}function _m(t,r,i){return Lg(t,r,void 0,i)}function Lg(t,r,i,o){for(var s,d=r.slice(),y=[],A=parseTree(t,y),x=void 0,w=void 0;d.length>0&&(w=d.pop(),x=findNodeAtLocation(A,d),x===void 0&&i!==void 0);)typeof w=="string"?i=(s={},s[w]=i,s):i=[i];if(x)if(x.type==="object"&&typeof w=="string"&&Array.isArray(x.children)){var F=findNodeAtLocation(x,[w]);if(F!==void 0)if(i===void 0){if(!F.parent)throw new Error("Malformed AST");var W=x.children.indexOf(F.parent),re=void 0,ee=F.parent.offset+F.parent.length;if(W>0){var le=x.children[W-1];re=le.offset+le.length}else if(re=x.offset+1,x.children.length>1){var de=x.children[1];ee=de.offset}return Oo(t,{offset:re,length:ee-re,content:""},o)}else return Oo(t,{offset:F.offset,length:F.length,content:JSON.stringify(i)},o);else{if(i===void 0)return[];var he=JSON.stringify(w)+": "+JSON.stringify(i),xe=o.getInsertionIndex?o.getInsertionIndex(x.children.map(function(De){return De.children[0].value})):x.children.length,ve=void 0;if(xe>0){var le=x.children[xe-1];ve={offset:le.offset+le.length,length:0,content:","+he}}else x.children.length===0?ve={offset:x.offset+1,length:0,content:he}:ve={offset:x.offset+1,length:0,content:he+","};return Oo(t,ve,o)}}else if(x.type==="array"&&typeof w=="number"&&Array.isArray(x.children)){var we=w;if(we===-1){var he=""+JSON.stringify(i),ve=void 0;if(x.children.length===0)ve={offset:x.offset+1,length:0,content:he};else{var le=x.children[x.children.length-1];ve={offset:le.offset+le.length,length:0,content:","+he}}return Oo(t,ve,o)}else if(i===void 0&&x.children.length>=0){var Ne=w,Fe=x.children[Ne],ve=void 0;if(x.children.length===1)ve={offset:x.offset+1,length:x.length-2,content:""};else if(x.children.length-1===Ne){var le=x.children[Ne-1],je=le.offset+le.length,ke=x.offset+x.length;ve={offset:je,length:ke-2-je,content:""}}else ve={offset:Fe.offset,length:x.children[Ne+1].offset-Fe.offset,content:""};return Oo(t,ve,o)}else if(i!==void 0){var ve=void 0,he=""+JSON.stringify(i);if(!o.isArrayInsertion&&x.children.length>w){var Me=x.children[w];ve={offset:Me.offset,length:Me.length,content:he}}else if(x.children.length===0||w===0)ve={offset:x.offset+1,length:0,content:x.children.length===0?he:he+","};else{var xe=w>x.children.length?x.children.length:w,le=x.children[xe-1];ve={offset:le.offset+le.length,length:0,content:","+he}}return Oo(t,ve,o)}else throw new Error("Can not "+(i===void 0?"remove":o.isArrayInsertion?"insert":"modify")+" Array index "+we+" as length is not sufficient")}else throw new Error("Can not add "+(typeof w!="number"?"index":"property")+" to parent of type "+x.type);else{if(i===void 0)throw new Error("Can not delete in empty document");return Oo(t,{offset:A?A.offset:0,length:A?A.length:0,content:JSON.stringify(i)},o)}}function Oo(t,r,i){if(!i.formattingOptions)return[r];var o=Pp(t,r),s=r.offset,d=r.offset+r.content.length;if(r.length===0||r.content.length===0){for(;s>0&&!isEOL(o,s-1);)s--;for(;d<o.length&&!isEOL(o,d);)d++}for(var y=format(o,{offset:s,length:d-s},i.formattingOptions),A=y.length-1;A>=0;A--){var x=y[A];o=Pp(o,x),s=Math.min(s,x.offset),d=Math.max(d,x.offset+x.length),d+=x.content.length-x.length}var w=t.length-(o.length-d)-s;return[{offset:s,length:w,content:o.substring(s,d)}]}function Pp(t,r){return t.substring(0,r.offset)+r.content+t.substring(r.offset+r.length)}function e0(t,r){return`\r
366
+ `.indexOf(t.charAt(r))!==-1}var Es=Rf,t0=Tg,Rg=Pg,r0=Ig,n0=Fg,Dg=Op,Ng=Ep,Bg=vd,i0=Df,a0=Mg;function o0(t){switch(t){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}function jg(t,r,i){return Cg(t,r,i)}function s0(t,r,i,o){return edit.setProperty(t,r,i,o)}function l0(t,r){for(var i=r.length-1;i>=0;i--)t=edit.applyEdit(t,r[i]);return t}function Gl(t,r){if(t===r)return!0;if(t==null||r===null||r===void 0||typeof t!=typeof r||typeof t!="object"||Array.isArray(t)!==Array.isArray(r))return!1;var i,o;if(Array.isArray(t)){if(t.length!==r.length)return!1;for(i=0;i<t.length;i++)if(!Gl(t[i],r[i]))return!1}else{var s=[];for(o in t)s.push(o);s.sort();var d=[];for(o in r)d.push(o);if(d.sort(),!Gl(s,d))return!1;for(i=0;i<s.length;i++)if(!Gl(t[s[i]],r[s[i]]))return!1}return!0}function qn(t){return typeof t=="number"}function pa(t){return typeof t!="undefined"}function Wi(t){return typeof t=="boolean"}function Ug(t){return typeof t=="string"}var Ip;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647})(Ip||(Ip={}));var Nf;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647})(Nf||(Nf={}));var Si;(function(t){function r(o,s){return o===Number.MAX_VALUE&&(o=Nf.MAX_VALUE),s===Number.MAX_VALUE&&(s=Nf.MAX_VALUE),{line:o,character:s}}t.create=r;function i(o){var s=o;return ze.objectLiteral(s)&&ze.uinteger(s.line)&&ze.uinteger(s.character)}t.is=i})(Si||(Si={}));var pr;(function(t){function r(o,s,d,y){if(ze.uinteger(o)&&ze.uinteger(s)&&ze.uinteger(d)&&ze.uinteger(y))return{start:Si.create(o,s),end:Si.create(d,y)};if(Si.is(o)&&Si.is(s))return{start:o,end:s};throw new Error("Range#create called with invalid arguments["+o+", "+s+", "+d+", "+y+"]")}t.create=r;function i(o){var s=o;return ze.objectLiteral(s)&&Si.is(s.start)&&Si.is(s.end)}t.is=i})(pr||(pr={}));var $l;(function(t){function r(o,s){return{uri:o,range:s}}t.create=r;function i(o){var s=o;return ze.defined(s)&&pr.is(s.range)&&(ze.string(s.uri)||ze.undefined(s.uri))}t.is=i})($l||($l={}));var Fp;(function(t){function r(o,s,d,y){return{targetUri:o,targetRange:s,targetSelectionRange:d,originSelectionRange:y}}t.create=r;function i(o){var s=o;return ze.defined(s)&&pr.is(s.targetRange)&&ze.string(s.targetUri)&&(pr.is(s.targetSelectionRange)||ze.undefined(s.targetSelectionRange))&&(pr.is(s.originSelectionRange)||ze.undefined(s.originSelectionRange))}t.is=i})(Fp||(Fp={}));var gd;(function(t){function r(o,s,d,y){return{red:o,green:s,blue:d,alpha:y}}t.create=r;function i(o){var s=o;return ze.numberRange(s.red,0,1)&&ze.numberRange(s.green,0,1)&&ze.numberRange(s.blue,0,1)&&ze.numberRange(s.alpha,0,1)}t.is=i})(gd||(gd={}));var kp;(function(t){function r(o,s){return{range:o,color:s}}t.create=r;function i(o){var s=o;return pr.is(s.range)&&gd.is(s.color)}t.is=i})(kp||(kp={}));var Mp;(function(t){function r(o,s,d){return{label:o,textEdit:s,additionalTextEdits:d}}t.create=r;function i(o){var s=o;return ze.string(s.label)&&(ze.undefined(s.textEdit)||Ai.is(s))&&(ze.undefined(s.additionalTextEdits)||ze.typedArray(s.additionalTextEdits,Ai.is))}t.is=i})(Mp||(Mp={}));var Kl;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(Kl||(Kl={}));var Lp;(function(t){function r(o,s,d,y,A){var x={startLine:o,endLine:s};return ze.defined(d)&&(x.startCharacter=d),ze.defined(y)&&(x.endCharacter=y),ze.defined(A)&&(x.kind=A),x}t.create=r;function i(o){var s=o;return ze.uinteger(s.startLine)&&ze.uinteger(s.startLine)&&(ze.undefined(s.startCharacter)||ze.uinteger(s.startCharacter))&&(ze.undefined(s.endCharacter)||ze.uinteger(s.endCharacter))&&(ze.undefined(s.kind)||ze.string(s.kind))}t.is=i})(Lp||(Lp={}));var yd;(function(t){function r(o,s){return{location:o,message:s}}t.create=r;function i(o){var s=o;return ze.defined(s)&&$l.is(s.location)&&ze.string(s.message)}t.is=i})(yd||(yd={}));var Ht;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(Ht||(Ht={}));var Rp;(function(t){t.Unnecessary=1,t.Deprecated=2})(Rp||(Rp={}));var Dp;(function(t){function r(i){var o=i;return o!=null&&ze.string(o.href)}t.is=r})(Dp||(Dp={}));var ha;(function(t){function r(o,s,d,y,A,x){var w={range:o,message:s};return ze.defined(d)&&(w.severity=d),ze.defined(y)&&(w.code=y),ze.defined(A)&&(w.source=A),ze.defined(x)&&(w.relatedInformation=x),w}t.create=r;function i(o){var s,d=o;return ze.defined(d)&&pr.is(d.range)&&ze.string(d.message)&&(ze.number(d.severity)||ze.undefined(d.severity))&&(ze.integer(d.code)||ze.string(d.code)||ze.undefined(d.code))&&(ze.undefined(d.codeDescription)||ze.string((s=d.codeDescription)===null||s===void 0?void 0:s.href))&&(ze.string(d.source)||ze.undefined(d.source))&&(ze.undefined(d.relatedInformation)||ze.typedArray(d.relatedInformation,yd.is))}t.is=i})(ha||(ha={}));var Yl;(function(t){function r(o,s){for(var d=[],y=2;y<arguments.length;y++)d[y-2]=arguments[y];var A={title:o,command:s};return ze.defined(d)&&d.length>0&&(A.arguments=d),A}t.create=r;function i(o){var s=o;return ze.defined(s)&&ze.string(s.title)&&ze.string(s.command)}t.is=i})(Yl||(Yl={}));var Ai;(function(t){function r(d,y){return{range:d,newText:y}}t.replace=r;function i(d,y){return{range:{start:d,end:d},newText:y}}t.insert=i;function o(d){return{range:d,newText:""}}t.del=o;function s(d){var y=d;return ze.objectLiteral(y)&&ze.string(y.newText)&&pr.is(y.range)}t.is=s})(Ai||(Ai={}));var Os;(function(t){function r(o,s,d){var y={label:o};return s!==void 0&&(y.needsConfirmation=s),d!==void 0&&(y.description=d),y}t.create=r;function i(o){var s=o;return s!==void 0&&ze.objectLiteral(s)&&ze.string(s.label)&&(ze.boolean(s.needsConfirmation)||s.needsConfirmation===void 0)&&(ze.string(s.description)||s.description===void 0)}t.is=i})(Os||(Os={}));var Pn;(function(t){function r(i){var o=i;return typeof o=="string"}t.is=r})(Pn||(Pn={}));var Ba;(function(t){function r(d,y,A){return{range:d,newText:y,annotationId:A}}t.replace=r;function i(d,y,A){return{range:{start:d,end:d},newText:y,annotationId:A}}t.insert=i;function o(d,y){return{range:d,newText:"",annotationId:y}}t.del=o;function s(d){var y=d;return Ai.is(y)&&(Os.is(y.annotationId)||Pn.is(y.annotationId))}t.is=s})(Ba||(Ba={}));var Bf;(function(t){function r(o,s){return{textDocument:o,edits:s}}t.create=r;function i(o){var s=o;return ze.defined(s)&&Uf.is(s.textDocument)&&Array.isArray(s.edits)}t.is=i})(Bf||(Bf={}));var Jl;(function(t){function r(o,s,d){var y={kind:"create",uri:o};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(y.options=s),d!==void 0&&(y.annotationId=d),y}t.create=r;function i(o){var s=o;return s&&s.kind==="create"&&ze.string(s.uri)&&(s.options===void 0||(s.options.overwrite===void 0||ze.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||ze.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||Pn.is(s.annotationId))}t.is=i})(Jl||(Jl={}));var Xl;(function(t){function r(o,s,d,y){var A={kind:"rename",oldUri:o,newUri:s};return d!==void 0&&(d.overwrite!==void 0||d.ignoreIfExists!==void 0)&&(A.options=d),y!==void 0&&(A.annotationId=y),A}t.create=r;function i(o){var s=o;return s&&s.kind==="rename"&&ze.string(s.oldUri)&&ze.string(s.newUri)&&(s.options===void 0||(s.options.overwrite===void 0||ze.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||ze.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||Pn.is(s.annotationId))}t.is=i})(Xl||(Xl={}));var Ql;(function(t){function r(o,s,d){var y={kind:"delete",uri:o};return s!==void 0&&(s.recursive!==void 0||s.ignoreIfNotExists!==void 0)&&(y.options=s),d!==void 0&&(y.annotationId=d),y}t.create=r;function i(o){var s=o;return s&&s.kind==="delete"&&ze.string(s.uri)&&(s.options===void 0||(s.options.recursive===void 0||ze.boolean(s.options.recursive))&&(s.options.ignoreIfNotExists===void 0||ze.boolean(s.options.ignoreIfNotExists)))&&(s.annotationId===void 0||Pn.is(s.annotationId))}t.is=i})(Ql||(Ql={}));var md;(function(t){function r(i){var o=i;return o&&(o.changes!==void 0||o.documentChanges!==void 0)&&(o.documentChanges===void 0||o.documentChanges.every(function(s){return ze.string(s.kind)?Jl.is(s)||Xl.is(s)||Ql.is(s):Bf.is(s)}))}t.is=r})(md||(md={}));var jf=function(){function t(r,i){this.edits=r,this.changeAnnotations=i}return t.prototype.insert=function(r,i,o){var s,d;if(o===void 0?s=Ai.insert(r,i):Pn.is(o)?(d=o,s=Ba.insert(r,i,o)):(this.assertChangeAnnotations(this.changeAnnotations),d=this.changeAnnotations.manage(o),s=Ba.insert(r,i,d)),this.edits.push(s),d!==void 0)return d},t.prototype.replace=function(r,i,o){var s,d;if(o===void 0?s=Ai.replace(r,i):Pn.is(o)?(d=o,s=Ba.replace(r,i,o)):(this.assertChangeAnnotations(this.changeAnnotations),d=this.changeAnnotations.manage(o),s=Ba.replace(r,i,d)),this.edits.push(s),d!==void 0)return d},t.prototype.delete=function(r,i){var o,s;if(i===void 0?o=Ai.del(r):Pn.is(i)?(s=i,o=Ba.del(r,i)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(i),o=Ba.del(r,s)),this.edits.push(o),s!==void 0)return s},t.prototype.add=function(r){this.edits.push(r)},t.prototype.all=function(){return this.edits},t.prototype.clear=function(){this.edits.splice(0,this.edits.length)},t.prototype.assertChangeAnnotations=function(r){if(r===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},t}(),Np=function(){function t(r){this._annotations=r===void 0?Object.create(null):r,this._counter=0,this._size=0}return t.prototype.all=function(){return this._annotations},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),t.prototype.manage=function(r,i){var o;if(Pn.is(r)?o=r:(o=this.nextId(),i=r),this._annotations[o]!==void 0)throw new Error("Id "+o+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+o);return this._annotations[o]=i,this._size++,o},t.prototype.nextId=function(){return this._counter++,this._counter.toString()},t}(),u0=function(){function t(r){var i=this;this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new Np(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(function(o){if(Bf.is(o)){var s=new jf(o.edits,i._changeAnnotations);i._textEditChanges[o.textDocument.uri]=s}})):r.changes&&Object.keys(r.changes).forEach(function(o){var s=new jf(r.changes[o]);i._textEditChanges[o]=s})):this._workspaceEdit={}}return Object.defineProperty(t.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),t.prototype.getTextEditChange=function(r){if(Uf.is(r)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:r.uri,version:r.version},o=this._textEditChanges[i.uri];if(!o){var s=[],d={textDocument:i,edits:s};this._workspaceEdit.documentChanges.push(d),o=new jf(s,this._changeAnnotations),this._textEditChanges[i.uri]=o}return o}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var o=this._textEditChanges[r];if(!o){var s=[];this._workspaceEdit.changes[r]=s,o=new jf(s),this._textEditChanges[r]=o}return o}},t.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Np,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},t.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},t.prototype.createFile=function(r,i,o){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;Os.is(i)||Pn.is(i)?s=i:o=i;var d,y;if(s===void 0?d=Jl.create(r,o):(y=Pn.is(s)?s:this._changeAnnotations.manage(s),d=Jl.create(r,o,y)),this._workspaceEdit.documentChanges.push(d),y!==void 0)return y},t.prototype.renameFile=function(r,i,o,s){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var d;Os.is(o)||Pn.is(o)?d=o:s=o;var y,A;if(d===void 0?y=Xl.create(r,i,s):(A=Pn.is(d)?d:this._changeAnnotations.manage(d),y=Xl.create(r,i,s,A)),this._workspaceEdit.documentChanges.push(y),A!==void 0)return A},t.prototype.deleteFile=function(r,i,o){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;Os.is(i)||Pn.is(i)?s=i:o=i;var d,y;if(s===void 0?d=Ql.create(r,o):(y=Pn.is(s)?s:this._changeAnnotations.manage(s),d=Ql.create(r,o,y)),this._workspaceEdit.documentChanges.push(d),y!==void 0)return y},t}(),Bp;(function(t){function r(o){return{uri:o}}t.create=r;function i(o){var s=o;return ze.defined(s)&&ze.string(s.uri)}t.is=i})(Bp||(Bp={}));var jp;(function(t){function r(o,s){return{uri:o,version:s}}t.create=r;function i(o){var s=o;return ze.defined(s)&&ze.string(s.uri)&&ze.integer(s.version)}t.is=i})(jp||(jp={}));var Uf;(function(t){function r(o,s){return{uri:o,version:s}}t.create=r;function i(o){var s=o;return ze.defined(s)&&ze.string(s.uri)&&(s.version===null||ze.integer(s.version))}t.is=i})(Uf||(Uf={}));var Up;(function(t){function r(o,s,d,y){return{uri:o,languageId:s,version:d,text:y}}t.create=r;function i(o){var s=o;return ze.defined(s)&&ze.string(s.uri)&&ze.string(s.languageId)&&ze.integer(s.version)&&ze.string(s.text)}t.is=i})(Up||(Up={}));var va;(function(t){t.PlainText="plaintext",t.Markdown="markdown"})(va||(va={})),function(t){function r(i){var o=i;return o===t.PlainText||o===t.Markdown}t.is=r}(va||(va={}));var xd;(function(t){function r(i){var o=i;return ze.objectLiteral(i)&&va.is(o.kind)&&ze.string(o.value)}t.is=r})(xd||(xd={}));var _n;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(_n||(_n={}));var on;(function(t){t.PlainText=1,t.Snippet=2})(on||(on={}));var Vp;(function(t){t.Deprecated=1})(Vp||(Vp={}));var Wp;(function(t){function r(o,s,d){return{newText:o,insert:s,replace:d}}t.create=r;function i(o){var s=o;return s&&ze.string(s.newText)&&pr.is(s.insert)&&pr.is(s.replace)}t.is=i})(Wp||(Wp={}));var Hp;(function(t){t.asIs=1,t.adjustIndentation=2})(Hp||(Hp={}));var bd;(function(t){function r(i){return{label:i}}t.create=r})(bd||(bd={}));var zp;(function(t){function r(i,o){return{items:i||[],isIncomplete:!!o}}t.create=r})(zp||(zp={}));var Vf;(function(t){function r(o){return o.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=r;function i(o){var s=o;return ze.string(s)||ze.objectLiteral(s)&&ze.string(s.language)&&ze.string(s.value)}t.is=i})(Vf||(Vf={}));var Gp;(function(t){function r(i){var o=i;return!!o&&ze.objectLiteral(o)&&(xd.is(o.contents)||Vf.is(o.contents)||ze.typedArray(o.contents,Vf.is))&&(i.range===void 0||pr.is(i.range))}t.is=r})(Gp||(Gp={}));var $p;(function(t){function r(i,o){return o?{label:i,documentation:o}:{label:i}}t.create=r})($p||($p={}));var Kp;(function(t){function r(i,o){for(var s=[],d=2;d<arguments.length;d++)s[d-2]=arguments[d];var y={label:i};return ze.defined(o)&&(y.documentation=o),ze.defined(s)?y.parameters=s:y.parameters=[],y}t.create=r})(Kp||(Kp={}));var Yp;(function(t){t.Text=1,t.Read=2,t.Write=3})(Yp||(Yp={}));var Jp;(function(t){function r(i,o){var s={range:i};return ze.number(o)&&(s.kind=o),s}t.create=r})(Jp||(Jp={}));var Hi;(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(Hi||(Hi={}));var Xp;(function(t){t.Deprecated=1})(Xp||(Xp={}));var Qp;(function(t){function r(i,o,s,d,y){var A={name:i,kind:o,location:{uri:d,range:s}};return y&&(A.containerName=y),A}t.create=r})(Qp||(Qp={}));var Zp;(function(t){function r(o,s,d,y,A,x){var w={name:o,detail:s,kind:d,range:y,selectionRange:A};return x!==void 0&&(w.children=x),w}t.create=r;function i(o){var s=o;return s&&ze.string(s.name)&&ze.number(s.kind)&&pr.is(s.range)&&pr.is(s.selectionRange)&&(s.detail===void 0||ze.string(s.detail))&&(s.deprecated===void 0||ze.boolean(s.deprecated))&&(s.children===void 0||Array.isArray(s.children))&&(s.tags===void 0||Array.isArray(s.tags))}t.is=i})(Zp||(Zp={}));var qp;(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(qp||(qp={}));var _p;(function(t){function r(o,s){var d={diagnostics:o};return s!=null&&(d.only=s),d}t.create=r;function i(o){var s=o;return ze.defined(s)&&ze.typedArray(s.diagnostics,ha.is)&&(s.only===void 0||ze.typedArray(s.only,ze.string))}t.is=i})(_p||(_p={}));var eh;(function(t){function r(o,s,d){var y={title:o},A=!0;return typeof s=="string"?(A=!1,y.kind=s):Yl.is(s)?y.command=s:y.edit=s,A&&d!==void 0&&(y.kind=d),y}t.create=r;function i(o){var s=o;return s&&ze.string(s.title)&&(s.diagnostics===void 0||ze.typedArray(s.diagnostics,ha.is))&&(s.kind===void 0||ze.string(s.kind))&&(s.edit!==void 0||s.command!==void 0)&&(s.command===void 0||Yl.is(s.command))&&(s.isPreferred===void 0||ze.boolean(s.isPreferred))&&(s.edit===void 0||md.is(s.edit))}t.is=i})(eh||(eh={}));var th;(function(t){function r(o,s){var d={range:o};return ze.defined(s)&&(d.data=s),d}t.create=r;function i(o){var s=o;return ze.defined(s)&&pr.is(s.range)&&(ze.undefined(s.command)||Yl.is(s.command))}t.is=i})(th||(th={}));var rh;(function(t){function r(o,s){return{tabSize:o,insertSpaces:s}}t.create=r;function i(o){var s=o;return ze.defined(s)&&ze.uinteger(s.tabSize)&&ze.boolean(s.insertSpaces)}t.is=i})(rh||(rh={}));var nh;(function(t){function r(o,s,d){return{range:o,target:s,data:d}}t.create=r;function i(o){var s=o;return ze.defined(s)&&pr.is(s.range)&&(ze.undefined(s.target)||ze.string(s.target))}t.is=i})(nh||(nh={}));var Wf;(function(t){function r(o,s){return{range:o,parent:s}}t.create=r;function i(o){var s=o;return s!==void 0&&pr.is(s.range)&&(s.parent===void 0||t.is(s.parent))}t.is=i})(Wf||(Wf={}));var f0=null,ih;(function(t){function r(d,y,A,x){return new Vg(d,y,A,x)}t.create=r;function i(d){var y=d;return!!(ze.defined(y)&&ze.string(y.uri)&&(ze.undefined(y.languageId)||ze.string(y.languageId))&&ze.uinteger(y.lineCount)&&ze.func(y.getText)&&ze.func(y.positionAt)&&ze.func(y.offsetAt))}t.is=i;function o(d,y){for(var A=d.getText(),x=s(y,function(le,de){var he=le.range.start.line-de.range.start.line;return he===0?le.range.start.character-de.range.start.character:he}),w=A.length,F=x.length-1;F>=0;F--){var W=x[F],re=d.offsetAt(W.range.start),ee=d.offsetAt(W.range.end);if(ee<=w)A=A.substring(0,re)+W.newText+A.substring(ee,A.length);else throw new Error("Overlapping edit");w=re}return A}t.applyEdits=o;function s(d,y){if(d.length<=1)return d;var A=d.length/2|0,x=d.slice(0,A),w=d.slice(A);s(x,y),s(w,y);for(var F=0,W=0,re=0;F<x.length&&W<w.length;){var ee=y(x[F],w[W]);ee<=0?d[re++]=x[F++]:d[re++]=w[W++]}for(;F<x.length;)d[re++]=x[F++];for(;W<w.length;)d[re++]=w[W++];return d}})(ih||(ih={}));var Vg=function(){function t(r,i,o,s){this._uri=r,this._languageId=i,this._version=o,this._content=s,this._lineOffsets=void 0}return Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),t.prototype.getText=function(r){if(r){var i=this.offsetAt(r.start),o=this.offsetAt(r.end);return this._content.substring(i,o)}return this._content},t.prototype.update=function(r,i){this._content=r.text,this._version=i,this._lineOffsets=void 0},t.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var r=[],i=this._content,o=!0,s=0;s<i.length;s++){o&&(r.push(s),o=!1);var d=i.charAt(s);o=d==="\r"||d===`
367
367
  `,d==="\r"&&s+1<i.length&&i.charAt(s+1)===`
368
- `&&s++}o&&i.length>0&&r.push(i.length),this._lineOffsets=r}return this._lineOffsets},t.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var i=this.getLineOffsets(),o=0,s=i.length;if(s===0)return Si.create(0,r);for(;o<s;){var d=Math.floor((o+s)/2);i[d]>r?s=d:o=d+1}var g=o-1;return Si.create(g,r-i[g])},t.prototype.offsetAt=function(r){var i=this.getLineOffsets();if(r.line>=i.length)return this._content.length;if(r.line<0)return 0;var o=i[r.line],s=r.line+1<i.length?i[r.line+1]:this._content.length;return Math.max(Math.min(o+r.character,s),o)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),t}(),ze;(function(t){var r=Object.prototype.toString;function i(ee){return typeof ee!="undefined"}t.defined=i;function o(ee){return typeof ee=="undefined"}t.undefined=o;function s(ee){return ee===!0||ee===!1}t.boolean=s;function d(ee){return r.call(ee)==="[object String]"}t.string=d;function g(ee){return r.call(ee)==="[object Number]"}t.number=g;function A(ee,se,de){return r.call(ee)==="[object Number]"&&se<=ee&&ee<=de}t.numberRange=A;function x(ee){return r.call(ee)==="[object Number]"&&-2147483648<=ee&&ee<=2147483647}t.integer=x;function w(ee){return r.call(ee)==="[object Number]"&&0<=ee&&ee<=2147483647}t.uinteger=w;function F(ee){return r.call(ee)==="[object Function]"}t.func=F;function H(ee){return ee!==null&&typeof ee=="object"}t.objectLiteral=H;function re(ee,se){return Array.isArray(ee)&&ee.every(se)}t.typedArray=re})(ze||(ze={}));var ah=function(){function t(r,i,o,s){this._uri=r,this._languageId=i,this._version=o,this._content=s,this._lineOffsets=void 0}return Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),t.prototype.getText=function(r){if(r){var i=this.offsetAt(r.start),o=this.offsetAt(r.end);return this._content.substring(i,o)}return this._content},t.prototype.update=function(r,i){for(var o=0,s=r;o<s.length;o++){var d=s[o];if(t.isIncremental(d)){var g=sh(d.range),A=this.offsetAt(g.start),x=this.offsetAt(g.end);this._content=this._content.substring(0,A)+d.text+this._content.substring(x,this._content.length);var w=Math.max(g.start.line,0),F=Math.max(g.end.line,0),H=this._lineOffsets,re=oh(d.text,!1,A);if(F-w===re.length)for(var ee=0,se=re.length;ee<se;ee++)H[ee+w+1]=re[ee];else re.length<1e4?H.splice.apply(H,[w+1,F-w].concat(re)):this._lineOffsets=H=H.slice(0,w+1).concat(re,H.slice(F+1));var de=d.text.length-(x-A);if(de!==0)for(var ee=w+1+re.length,se=H.length;ee<se;ee++)H[ee]=H[ee]+de}else if(t.isFull(d))this._content=d.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received")}this._version=i},t.prototype.getLineOffsets=function(){return this._lineOffsets===void 0&&(this._lineOffsets=oh(this._content,!0)),this._lineOffsets},t.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var i=this.getLineOffsets(),o=0,s=i.length;if(s===0)return{line:0,character:r};for(;o<s;){var d=Math.floor((o+s)/2);i[d]>r?s=d:o=d+1}var g=o-1;return{line:g,character:r-i[g]}},t.prototype.offsetAt=function(r){var i=this.getLineOffsets();if(r.line>=i.length)return this._content.length;if(r.line<0)return 0;var o=i[r.line],s=r.line+1<i.length?i[r.line+1]:this._content.length;return Math.max(Math.min(o+r.character,s),o)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),t.isIncremental=function(r){var i=r;return i!=null&&typeof i.text=="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength=="number")},t.isFull=function(r){var i=r;return i!=null&&typeof i.text=="string"&&i.range===void 0&&i.rangeLength===void 0},t}(),Hf;(function(t){function r(s,d,g,A){return new ah(s,d,g,A)}t.create=r;function i(s,d,g){if(s instanceof ah)return s.update(d,g),s;throw new Error("TextDocument.update: document must be created by TextDocument.create")}t.update=i;function o(s,d){for(var g=s.getText(),A=Sd(d.map(Wg),function(se,de){var pe=se.range.start.line-de.range.start.line;return pe===0?se.range.start.character-de.range.start.character:pe}),x=0,w=[],F=0,H=A;F<H.length;F++){var re=H[F],ee=s.offsetAt(re.range.start);if(ee<x)throw new Error("Overlapping edit");ee>x&&w.push(g.substring(x,ee)),re.newText.length&&w.push(re.newText),x=s.offsetAt(re.range.end)}return w.push(g.substr(x)),w.join("")}t.applyEdits=o})(Hf||(Hf={}));function Sd(t,r){if(t.length<=1)return t;var i=t.length/2|0,o=t.slice(0,i),s=t.slice(i);Sd(o,r),Sd(s,r);for(var d=0,g=0,A=0;d<o.length&&g<s.length;){var x=r(o[d],s[g]);x<=0?t[A++]=o[d++]:t[A++]=s[g++]}for(;d<o.length;)t[A++]=o[d++];for(;g<s.length;)t[A++]=s[g++];return t}function oh(t,r,i){i===void 0&&(i=0);for(var o=r?[i]:[],s=0;s<t.length;s++){var d=t.charCodeAt(s);(d===13||d===10)&&(d===13&&s+1<t.length&&t.charCodeAt(s+1)===10&&s++,o.push(i+s+1))}return o}function sh(t){var r=t.start,i=t.end;return r.line>i.line||r.line===i.line&&r.character>i.character?{start:i,end:r}:t}function Wg(t){var r=sh(t.range);return r!==t.range?{newText:t.newText,range:r}:t}var rr;(function(t){t[t.Undefined=0]="Undefined",t[t.EnumValueMismatch=1]="EnumValueMismatch",t[t.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",t[t.UnexpectedEndOfString=258]="UnexpectedEndOfString",t[t.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",t[t.InvalidUnicode=260]="InvalidUnicode",t[t.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",t[t.InvalidCharacter=262]="InvalidCharacter",t[t.PropertyExpected=513]="PropertyExpected",t[t.CommaExpected=514]="CommaExpected",t[t.ColonExpected=515]="ColonExpected",t[t.ValueExpected=516]="ValueExpected",t[t.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",t[t.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",t[t.TrailingComma=519]="TrailingComma",t[t.DuplicateKey=520]="DuplicateKey",t[t.CommentNotPermitted=521]="CommentNotPermitted",t[t.SchemaResolveError=768]="SchemaResolveError"})(rr||(rr={}));var lh;(function(t){t.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[va.Markdown,va.PlainText],commitCharactersSupport:!0}}}}})(lh||(lh={}));var To=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,s){o.__proto__=s}||function(o,s){for(var d in s)s.hasOwnProperty(d)&&(o[d]=s[d])},t(r,i)};return function(r,i){t(r,i);function o(){this.constructor=r}r.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}}(),Hg={"color-hex":{errorMessage:"Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA.",pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:"String is not a RFC3339 date-time.",pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:"String is not a RFC3339 date.",pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:"String is not a RFC3339 time.",pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:"String is not an e-mail address.",pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}},Po=function(){function t(r,i,o){this.offset=i,this.length=o,this.parent=r}return Object.defineProperty(t.prototype,"children",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},t}(),zg=function(t){To(r,t);function r(i,o){var s=t.call(this,i,o)||this;return s.type="null",s.value=null,s}return r}(Po),uh=function(t){To(r,t);function r(i,o,s){var d=t.call(this,i,s)||this;return d.type="boolean",d.value=o,d}return r}(Po),Gg=function(t){To(r,t);function r(i,o){var s=t.call(this,i,o)||this;return s.type="array",s.items=[],s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.items},enumerable:!0,configurable:!0}),r}(Po),$g=function(t){To(r,t);function r(i,o){var s=t.call(this,i,o)||this;return s.type="number",s.isInteger=!0,s.value=Number.NaN,s}return r}(Po),fh=function(t){To(r,t);function r(i,o,s){var d=t.call(this,i,o,s)||this;return d.type="string",d.value="",d}return r}(Po),Kg=function(t){To(r,t);function r(i,o){var s=t.call(this,i,o)||this;return s.type="property",s.colonOffset=-1,s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!0,configurable:!0}),r}(Po),Yg=function(t){To(r,t);function r(i,o){var s=t.call(this,i,o)||this;return s.type="object",s.properties=[],s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.properties},enumerable:!0,configurable:!0}),r}(Po);function jn(t){return Wi(t)?t?{}:{not:{}}:t}var ch;(function(t){t[t.Key=0]="Key",t[t.Enum=1]="Enum"})(ch||(ch={}));var Jg=function(){function t(r,i){r===void 0&&(r=-1),i===void 0&&(i=null),this.focusOffset=r,this.exclude=i,this.schemas=[]}return t.prototype.add=function(r){this.schemas.push(r)},t.prototype.merge=function(r){var i;(i=this.schemas).push.apply(i,r.schemas)},t.prototype.include=function(r){return(this.focusOffset===-1||dh(r,this.focusOffset))&&r!==this.exclude},t.prototype.newSub=function(){return new t(-1,this.exclude)},t}(),Ad=function(){function t(){}return Object.defineProperty(t.prototype,"schemas",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.add=function(r){},t.prototype.merge=function(r){},t.prototype.include=function(r){return!0},t.prototype.newSub=function(){return this},t.instance=new t,t}(),Un=function(){function t(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=null}return t.prototype.hasProblems=function(){return!!this.problems.length},t.prototype.mergeAll=function(r){for(var i=0,o=r;i<o.length;i++){var s=o[i];this.merge(s)}},t.prototype.merge=function(r){this.problems=this.problems.concat(r.problems)},t.prototype.mergeEnumValues=function(r){if(!this.enumValueMatch&&!r.enumValueMatch&&this.enumValues&&r.enumValues){this.enumValues=this.enumValues.concat(r.enumValues);for(var i=0,o=this.problems;i<o.length;i++){var s=o[i];s.code===rr.EnumValueMismatch&&(s.message="Value is not accepted. Valid values: "+this.enumValues.map(function(d){return JSON.stringify(d)}).join(", ")+".")}}},t.prototype.mergePropertyMatch=function(r){this.merge(r),this.propertiesMatches++,(r.enumValueMatch||!r.hasProblems()&&r.propertiesMatches)&&this.propertiesValueMatches++,r.enumValueMatch&&r.enumValues&&r.enumValues.length===1&&this.primaryValueMatches++},t.prototype.compare=function(r){var i=this.hasProblems();return i!==r.hasProblems()?i?-1:1:this.enumValueMatch!==r.enumValueMatch?r.enumValueMatch?-1:1:this.primaryValueMatches!==r.primaryValueMatches?this.primaryValueMatches-r.primaryValueMatches:this.propertiesValueMatches!==r.propertiesValueMatches?this.propertiesValueMatches-r.propertiesValueMatches:this.propertiesMatches-r.propertiesMatches},t}();function Xg(t,r){return r===void 0&&(r=[]),new ph(t,r,[])}function ja(t){return Bg(t)}function wd(t){return Ng(t)}function dh(t,r,i){return i===void 0&&(i=!1),r>=t.offset&&r<t.offset+t.length||i&&r===t.offset+t.length}var ph=function(){function t(r,i,o){i===void 0&&(i=[]),o===void 0&&(o=[]),this.root=r,this.syntaxErrors=i,this.comments=o}return t.prototype.getNodeFromOffset=function(r,i){if(i===void 0&&(i=!1),this.root)return Dg(this.root,r,i)},t.prototype.visit=function(r){if(this.root){var i=function(o){var s=r(o),d=o.children;if(Array.isArray(d))for(var g=0;g<d.length&&s;g++)s=i(d[g]);return s};i(this.root)}},t.prototype.validate=function(r,i){if(this.root&&i){var o=new Un;return xn(this.root,i,o,Ad.instance),o.problems.map(function(s){var d=dr.create(r.positionAt(s.location.offset),r.positionAt(s.location.offset+s.location.length));return ha.create(d,s.message,s.severity,s.code)})}return null},t.prototype.getMatchingSchemas=function(r,i,o){i===void 0&&(i=-1),o===void 0&&(o=null);var s=new Jg(i,o);return this.root&&r&&xn(this.root,r,new Un,s),s.schemas},t}();function xn(t,r,i,o){if(!t||!o.include(t))return;switch(t.type){case"object":x(t,r,i,o);break;case"array":A(t,r,i,o);break;case"string":g(t,r,i,o);break;case"number":d(t,r,i,o);break;case"property":return xn(t.valueNode,r,i,o)}s(),o.add({node:t,schema:r});function s(){function w(Ze){return t.type===Ze||Ze==="integer"&&t.type==="number"&&t.isInteger||r.nullable&&t.value===null}if(Array.isArray(r.type)?r.type.some(w)||i.problems.push({location:{offset:t.offset,length:t.length},severity:Ht.Warning,message:r.errorMessage||"Incorrect type. Expected one of "+r.type.join(", ")+"."}):r.type&&(w(r.type)||i.problems.push({location:{offset:t.offset,length:t.length},severity:Ht.Warning,message:r.errorMessage||'Incorrect type. Expected "'+r.type+'".'})),Array.isArray(r.allOf))for(var F=0,H=r.allOf;F<H.length;F++){var re=H[F];xn(t,jn(re),i,o)}var ee=jn(r.not);if(ee){var se=new Un,de=o.newSub();xn(t,ee,se,de),se.hasProblems()||i.problems.push({location:{offset:t.offset,length:t.length},severity:Ht.Warning,message:"Matches a schema that is not allowed."});for(var pe=0,xe=de.schemas;pe<xe.length;pe++){var ve=xe[pe];ve.inverted=!ve.inverted,o.add(ve)}}var we=function(Ze,_e){for(var bt=[],Rt=null,or=0,Dr=Ze;or<Dr.length;or++){var Ir=Dr[or],rn=jn(Ir),Er=new Un,Hr=o.newSub();if(xn(t,rn,Er,Hr),Er.hasProblems()||bt.push(rn),!Rt)Rt={schema:rn,validationResult:Er,matchingSchemas:Hr};else if(!_e&&!Er.hasProblems()&&!Rt.validationResult.hasProblems())Rt.matchingSchemas.merge(Hr),Rt.validationResult.propertiesMatches+=Er.propertiesMatches,Rt.validationResult.propertiesValueMatches+=Er.propertiesValueMatches;else{var In=Er.compare(Rt.validationResult);In>0?Rt={schema:rn,validationResult:Er,matchingSchemas:Hr}:In===0&&(Rt.matchingSchemas.merge(Hr),Rt.validationResult.mergeEnumValues(Er))}}return bt.length>1&&_e&&i.problems.push({location:{offset:t.offset,length:1},severity:Ht.Warning,message:"Matches multiple schemas when only one must validate."}),Rt!==null&&(i.merge(Rt.validationResult),i.propertiesMatches+=Rt.validationResult.propertiesMatches,i.propertiesValueMatches+=Rt.validationResult.propertiesValueMatches,o.merge(Rt.matchingSchemas)),bt.length};Array.isArray(r.anyOf)&&we(r.anyOf,!1),Array.isArray(r.oneOf)&&we(r.oneOf,!0);var Ne=function(Ze){var _e=new Un,bt=o.newSub();xn(t,jn(Ze),_e,bt),i.merge(_e),i.propertiesMatches+=_e.propertiesMatches,i.propertiesValueMatches+=_e.propertiesValueMatches,o.merge(bt)},Fe=function(Ze,_e,bt){var Rt=jn(Ze),or=new Un,Dr=o.newSub();xn(t,Rt,or,Dr),o.merge(Dr),or.hasProblems()?bt&&Ne(bt):_e&&Ne(_e)},je=jn(r.if);if(je&&Fe(je,jn(r.then),jn(r.else)),Array.isArray(r.enum)){for(var ke=ja(t),Me=!1,De=0,Ve=r.enum;De<Ve.length;De++){var Ke=Ve[De];if(Gl(ke,Ke)){Me=!0;break}}i.enumValues=r.enum,i.enumValueMatch=Me,Me||i.problems.push({location:{offset:t.offset,length:t.length},severity:Ht.Warning,code:rr.EnumValueMismatch,message:r.errorMessage||"Value is not accepted. Valid values: "+r.enum.map(function(Ze){return JSON.stringify(Ze)}).join(", ")+"."})}if(pa(r.const)){var ke=ja(t);Gl(ke,r.const)?i.enumValueMatch=!0:(i.problems.push({location:{offset:t.offset,length:t.length},severity:Ht.Warning,code:rr.EnumValueMismatch,message:r.errorMessage||"Value must be "+JSON.stringify(r.const)+"."}),i.enumValueMatch=!1),i.enumValues=[r.const]}r.deprecationMessage&&t.parent&&i.problems.push({location:{offset:t.parent.offset,length:t.parent.length},severity:Ht.Warning,message:r.deprecationMessage})}function d(w,F,H,re){var ee=w.value;qn(F.multipleOf)&&ee%F.multipleOf!=0&&H.problems.push({location:{offset:w.offset,length:w.length},severity:Ht.Warning,message:"Value is not divisible by "+F.multipleOf+"."});function se(Ne,Fe){if(qn(Fe))return Fe;if(Wi(Fe)&&Fe)return Ne}function de(Ne,Fe){if(!Wi(Fe)||!Fe)return Ne}var pe=se(F.minimum,F.exclusiveMinimum);qn(pe)&&ee<=pe&&H.problems.push({location:{offset:w.offset,length:w.length},severity:Ht.Warning,message:"Value is below the exclusive minimum of "+pe+"."});var xe=se(F.maximum,F.exclusiveMaximum);qn(xe)&&ee>=xe&&H.problems.push({location:{offset:w.offset,length:w.length},severity:Ht.Warning,message:"Value is above the exclusive maximum of "+xe+"."});var ve=de(F.minimum,F.exclusiveMinimum);qn(ve)&&ee<ve&&H.problems.push({location:{offset:w.offset,length:w.length},severity:Ht.Warning,message:"Value is below the minimum of "+ve+"."});var we=de(F.maximum,F.exclusiveMaximum);qn(we)&&ee>we&&H.problems.push({location:{offset:w.offset,length:w.length},severity:Ht.Warning,message:"Value is above the maximum of "+we+"."})}function g(w,F,H,re){if(qn(F.minLength)&&w.value.length<F.minLength&&H.problems.push({location:{offset:w.offset,length:w.length},severity:Ht.Warning,message:"String is shorter than the minimum length of "+F.minLength+"."}),qn(F.maxLength)&&w.value.length>F.maxLength&&H.problems.push({location:{offset:w.offset,length:w.length},severity:Ht.Warning,message:"String is longer than the maximum length of "+F.maxLength+"."}),Ug(F.pattern)){var ee=new RegExp(F.pattern);ee.test(w.value)||H.problems.push({location:{offset:w.offset,length:w.length},severity:Ht.Warning,message:F.patternErrorMessage||F.errorMessage||'String does not match the pattern of "'+F.pattern+'".'})}if(F.format)switch(F.format){case"uri":case"uri-reference":{var se=void 0;if(!w.value)se="URI expected.";else{var de=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(w.value);de?!de[2]&&F.format==="uri"&&(se="URI with a scheme is expected."):se="URI is expected."}se&&H.problems.push({location:{offset:w.offset,length:w.length},severity:Ht.Warning,message:F.patternErrorMessage||F.errorMessage||"String is not a URI: "+se})}break;case"color-hex":case"date-time":case"date":case"time":case"email":var pe=Hg[F.format];(!w.value||!pe.pattern.exec(w.value))&&H.problems.push({location:{offset:w.offset,length:w.length},severity:Ht.Warning,message:F.patternErrorMessage||F.errorMessage||pe.errorMessage});break;default:}}function A(w,F,H,re){if(Array.isArray(F.items)){for(var ee=F.items,se=0;se<ee.length;se++){var de=ee[se],pe=jn(de),xe=new Un,ve=w.items[se];ve?(xn(ve,pe,xe,re),H.mergePropertyMatch(xe)):w.items.length>=ee.length&&H.propertiesValueMatches++}if(w.items.length>ee.length)if(typeof F.additionalItems=="object")for(var we=ee.length;we<w.items.length;we++){var xe=new Un;xn(w.items[we],F.additionalItems,xe,re),H.mergePropertyMatch(xe)}else F.additionalItems===!1&&H.problems.push({location:{offset:w.offset,length:w.length},severity:Ht.Warning,message:"Array has too many items according to schema. Expected "+ee.length+" or fewer."})}else{var Ne=jn(F.items);if(Ne)for(var Fe=0,je=w.items;Fe<je.length;Fe++){var ve=je[Fe],xe=new Un;xn(ve,Ne,xe,re),H.mergePropertyMatch(xe)}}var ke=jn(F.contains);if(ke){var Me=w.items.some(function(Ke){var Ze=new Un;return xn(Ke,ke,Ze,Ad.instance),!Ze.hasProblems()});Me||H.problems.push({location:{offset:w.offset,length:w.length},severity:Ht.Warning,message:F.errorMessage||"Array does not contain required item."})}if(qn(F.minItems)&&w.items.length<F.minItems&&H.problems.push({location:{offset:w.offset,length:w.length},severity:Ht.Warning,message:"Array has too few items. Expected "+F.minItems+" or more."}),qn(F.maxItems)&&w.items.length>F.maxItems&&H.problems.push({location:{offset:w.offset,length:w.length},severity:Ht.Warning,message:"Array has too many items. Expected "+F.maxItems+" or fewer."}),F.uniqueItems===!0){var De=ja(w),Ve=De.some(function(Ke,Ze){return Ze!==De.lastIndexOf(Ke)});Ve&&H.problems.push({location:{offset:w.offset,length:w.length},severity:Ht.Warning,message:"Array has duplicate items."})}}function x(w,F,H,re){for(var ee=Object.create(null),se=[],de=0,pe=w.properties;de<pe.length;de++){var xe=pe[de],ve=xe.keyNode.value;ee[ve]=xe.valueNode,se.push(ve)}if(Array.isArray(F.required))for(var we=0,Ne=F.required;we<Ne.length;we++){var Fe=Ne[we];if(!ee[Fe]){var je=w.parent&&w.parent.type==="property"&&w.parent.keyNode,ke=je?{offset:je.offset,length:je.length}:{offset:w.offset,length:1};H.problems.push({location:ke,severity:Ht.Warning,message:'Missing property "'+Fe+'".'})}}var Me=function(Ci){for(var iu=se.indexOf(Ci);iu>=0;)se.splice(iu,1),iu=se.indexOf(Ci)};if(F.properties)for(var De=0,Ve=Object.keys(F.properties);De<Ve.length;De++){var Fe=Ve[De];Me(Fe);var Ke=F.properties[Fe],Ze=ee[Fe];if(Ze)if(Wi(Ke))if(Ke)H.propertiesMatches++,H.propertiesValueMatches++;else{var xe=Ze.parent;H.problems.push({location:{offset:xe.keyNode.offset,length:xe.keyNode.length},severity:Ht.Warning,message:F.errorMessage||"Property "+Fe+" is not allowed."})}else{var _e=new Un;xn(Ze,Ke,_e,re),H.mergePropertyMatch(_e)}}if(F.patternProperties)for(var bt=0,Rt=Object.keys(F.patternProperties);bt<Rt.length;bt++)for(var or=Rt[bt],Dr=new RegExp(or),Ir=0,rn=se.slice(0);Ir<rn.length;Ir++){var Fe=rn[Ir];if(Dr.test(Fe)){Me(Fe);var Ze=ee[Fe];if(Ze){var Ke=F.patternProperties[or];if(Wi(Ke))if(Ke)H.propertiesMatches++,H.propertiesValueMatches++;else{var xe=Ze.parent;H.problems.push({location:{offset:xe.keyNode.offset,length:xe.keyNode.length},severity:Ht.Warning,message:F.errorMessage||"Property "+Fe+" is not allowed."})}else{var _e=new Un;xn(Ze,Ke,_e,re),H.mergePropertyMatch(_e)}}}}if(typeof F.additionalProperties=="object")for(var Er=0,Hr=se;Er<Hr.length;Er++){var Fe=Hr[Er],Ze=ee[Fe];if(Ze){var _e=new Un;xn(Ze,F.additionalProperties,_e,re),H.mergePropertyMatch(_e)}}else if(F.additionalProperties===!1&&se.length>0)for(var In=0,Yt=se;In<Yt.length;In++){var Fe=Yt[In],Ze=ee[Fe];if(Ze){var xe=Ze.parent;H.problems.push({location:{offset:xe.keyNode.offset,length:xe.keyNode.length},severity:Ht.Warning,message:F.errorMessage||"Property "+Fe+" is not allowed."})}}if(qn(F.maxProperties)&&w.properties.length>F.maxProperties&&H.problems.push({location:{offset:w.offset,length:w.length},severity:Ht.Warning,message:"Object has more properties than limit of "+F.maxProperties+"."}),qn(F.minProperties)&&w.properties.length<F.minProperties&&H.problems.push({location:{offset:w.offset,length:w.length},severity:Ht.Warning,message:"Object has fewer properties than the required number of "+F.minProperties}),F.dependencies)for(var Ct=0,kt=Object.keys(F.dependencies);Ct<kt.length;Ct++){var ve=kt[Ct],fr=ee[ve];if(fr){var hn=F.dependencies[ve];if(Array.isArray(hn))for(var Sr=0,ks=hn;Sr<ks.length;Sr++){var ru=ks[Sr];ee[ru]?H.propertiesValueMatches++:H.problems.push({location:{offset:w.offset,length:w.length},severity:Ht.Warning,message:"Object is missing property "+ru+" required by property {$key}."})}else{var Ke=jn(hn);if(Ke){var _e=new Un;xn(w,Ke,_e,re),H.mergePropertyMatch(_e)}}}}var Fo=jn(F.propertyNames);if(Fo)for(var zi=0,nu=w.properties;zi<nu.length;zi++){var Xf=nu[zi],ve=Xf.keyNode;ve&&xn(ve,Fo,H,Ad.instance)}}}function Qg(t,r){var i=[],o=-1,s=t.getText(),d=Es(s,!1),g=r&&r.collectComments?[]:void 0;function A(){for(;;){var je=d.scan();switch(H(),je){case 12:case 13:Array.isArray(g)&&g.push(dr.create(t.positionAt(d.getTokenOffset()),t.positionAt(d.getTokenOffset()+d.getTokenLength())));break;case 15:case 14:break;default:return je}}}function x(je){return d.getToken()===je?(A(),!0):!1}function w(je,ke,Me,De,Ve){if(Ve===void 0&&(Ve=Ht.Error),i.length===0||Me!==o){var Ke=dr.create(t.positionAt(Me),t.positionAt(De));i.push(ha.create(Ke,je,Ve,ke,t.languageId)),o=Me}}function F(je,ke,Me,De,Ve){Me===void 0&&(Me=null),De===void 0&&(De=[]),Ve===void 0&&(Ve=[]);var Ke=d.getTokenOffset(),Ze=d.getTokenOffset()+d.getTokenLength();if(Ke===Ze&&Ke>0){for(Ke--;Ke>0&&/\s/.test(s.charAt(Ke));)Ke--;Ze=Ke+1}if(w(je,ke,Ke,Ze),Me&&re(Me,!1),De.length+Ve.length>0)for(var _e=d.getToken();_e!==17;){if(De.indexOf(_e)!==-1){A();break}else if(Ve.indexOf(_e)!==-1)break;_e=A()}return Me}function H(){switch(d.getTokenError()){case 4:return F("Invalid unicode sequence in string.",rr.InvalidUnicode),!0;case 5:return F("Invalid escape character in string.",rr.InvalidEscapeCharacter),!0;case 3:return F("Unexpected end of number.",rr.UnexpectedEndOfNumber),!0;case 1:return F("Unexpected end of comment.",rr.UnexpectedEndOfComment),!0;case 2:return F("Unexpected end of string.",rr.UnexpectedEndOfString),!0;case 6:return F("Invalid characters in string. Control characters must be escaped.",rr.InvalidCharacter),!0}return!1}function re(je,ke){return je.length=d.getTokenOffset()+d.getTokenLength()-je.offset,ke&&A(),je}function ee(je){if(d.getToken()!==3)return null;var ke=new Gg(je,d.getTokenOffset());A();for(var Me=0,De=!1;d.getToken()!==4&&d.getToken()!==17;){if(d.getToken()===5){De||F("Value expected",rr.ValueExpected);var Ve=d.getTokenOffset();if(A(),d.getToken()===4){De&&w("Trailing comma",rr.TrailingComma,Ve,Ve+1);continue}}else De&&F("Expected comma",rr.CommaExpected);var Ke=we(ke,Me++);Ke?ke.items.push(Ke):F("Value expected",rr.ValueExpected,null,[],[4,5]),De=!0}return d.getToken()!==4?F("Expected comma or closing bracket",rr.CommaOrCloseBacketExpected,ke):re(ke,!0)}function se(je,ke){var Me=new Kg(je,d.getTokenOffset()),De=pe(Me);if(!De)if(d.getToken()===16){F("Property keys must be doublequoted",rr.Undefined);var Ve=new fh(Me,d.getTokenOffset(),d.getTokenLength());Ve.value=d.getTokenValue(),De=Ve,A()}else return null;Me.keyNode=De;var Ke=ke[De.value];if(Ke?(w("Duplicate object key",rr.DuplicateKey,Me.keyNode.offset,Me.keyNode.offset+Me.keyNode.length,Ht.Warning),typeof Ke=="object"&&w("DuplicateKeyWarning",rr.DuplicateKey,Ke.keyNode.offset,Ke.keyNode.offset+Ke.keyNode.length,Ht.Warning),ke[De.value]=!0):ke[De.value]=Me,d.getToken()===6)Me.colonOffset=d.getTokenOffset(),A();else if(F("Colon expected",rr.ColonExpected),d.getToken()===10&&t.positionAt(De.offset+De.length).line<t.positionAt(d.getTokenOffset()).line)return Me.length=De.length,Me;var Ze=we(Me,De.value);return Ze?(Me.valueNode=Ze,Me.length=Ze.offset+Ze.length-Me.offset,Me):F("Value expected",rr.ValueExpected,Me,[],[2,5])}function de(je){if(d.getToken()!==1)return null;var ke=new Yg(je,d.getTokenOffset()),Me=Object.create(null);A();for(var De=!1;d.getToken()!==2&&d.getToken()!==17;){if(d.getToken()===5){De||F("Property expected",rr.PropertyExpected);var Ve=d.getTokenOffset();if(A(),d.getToken()===2){De&&w("Trailing comma",rr.TrailingComma,Ve,Ve+1);continue}}else De&&F("Expected comma",rr.CommaExpected);var Ke=se(ke,Me);Ke?ke.properties.push(Ke):F("Property expected",rr.PropertyExpected,null,[],[2,5]),De=!0}return d.getToken()!==2?F("Expected comma or closing brace",rr.CommaOrCloseBraceExpected,ke):re(ke,!0)}function pe(je){if(d.getToken()!==10)return null;var ke=new fh(je,d.getTokenOffset());return ke.value=d.getTokenValue(),re(ke,!0)}function xe(je){if(d.getToken()!==11)return null;var ke=new $g(je,d.getTokenOffset());if(d.getTokenError()===0){var Me=d.getTokenValue();try{var De=JSON.parse(Me);if(!qn(De))return F("Invalid number format.",rr.Undefined,ke);ke.value=De}catch(Ve){return F("Invalid number format.",rr.Undefined,ke)}ke.isInteger=Me.indexOf(".")===-1}return re(ke,!0)}function ve(je){var ke;switch(d.getToken()){case 7:return re(new zg(je,d.getTokenOffset()),!0);case 8:return re(new uh(je,!0,d.getTokenOffset()),!0);case 9:return re(new uh(je,!1,d.getTokenOffset()),!0);default:return null}}function we(je,ke){return ee(je)||de(je)||pe(je)||xe(je)||ve(je)}var Ne=null,Fe=A();return Fe!==17&&(Ne=we(null,null),Ne?d.getToken()!==17&&F("End of file expected.",rr.Undefined):F("Expected a JSON object, array or literal.",rr.Undefined)),new ph(Ne,i,g)}function Cd(t,r,i){if(t!==null&&typeof t=="object"){var o=r+" ";if(Array.isArray(t)){if(t.length===0)return"[]";for(var s=`[
368
+ `&&s++}o&&i.length>0&&r.push(i.length),this._lineOffsets=r}return this._lineOffsets},t.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var i=this.getLineOffsets(),o=0,s=i.length;if(s===0)return Si.create(0,r);for(;o<s;){var d=Math.floor((o+s)/2);i[d]>r?s=d:o=d+1}var y=o-1;return Si.create(y,r-i[y])},t.prototype.offsetAt=function(r){var i=this.getLineOffsets();if(r.line>=i.length)return this._content.length;if(r.line<0)return 0;var o=i[r.line],s=r.line+1<i.length?i[r.line+1]:this._content.length;return Math.max(Math.min(o+r.character,s),o)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),t}(),ze;(function(t){var r=Object.prototype.toString;function i(ee){return typeof ee!="undefined"}t.defined=i;function o(ee){return typeof ee=="undefined"}t.undefined=o;function s(ee){return ee===!0||ee===!1}t.boolean=s;function d(ee){return r.call(ee)==="[object String]"}t.string=d;function y(ee){return r.call(ee)==="[object Number]"}t.number=y;function A(ee,le,de){return r.call(ee)==="[object Number]"&&le<=ee&&ee<=de}t.numberRange=A;function x(ee){return r.call(ee)==="[object Number]"&&-2147483648<=ee&&ee<=2147483647}t.integer=x;function w(ee){return r.call(ee)==="[object Number]"&&0<=ee&&ee<=2147483647}t.uinteger=w;function F(ee){return r.call(ee)==="[object Function]"}t.func=F;function W(ee){return ee!==null&&typeof ee=="object"}t.objectLiteral=W;function re(ee,le){return Array.isArray(ee)&&ee.every(le)}t.typedArray=re})(ze||(ze={}));var ah=function(){function t(r,i,o,s){this._uri=r,this._languageId=i,this._version=o,this._content=s,this._lineOffsets=void 0}return Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),t.prototype.getText=function(r){if(r){var i=this.offsetAt(r.start),o=this.offsetAt(r.end);return this._content.substring(i,o)}return this._content},t.prototype.update=function(r,i){for(var o=0,s=r;o<s.length;o++){var d=s[o];if(t.isIncremental(d)){var y=sh(d.range),A=this.offsetAt(y.start),x=this.offsetAt(y.end);this._content=this._content.substring(0,A)+d.text+this._content.substring(x,this._content.length);var w=Math.max(y.start.line,0),F=Math.max(y.end.line,0),W=this._lineOffsets,re=oh(d.text,!1,A);if(F-w===re.length)for(var ee=0,le=re.length;ee<le;ee++)W[ee+w+1]=re[ee];else re.length<1e4?W.splice.apply(W,[w+1,F-w].concat(re)):this._lineOffsets=W=W.slice(0,w+1).concat(re,W.slice(F+1));var de=d.text.length-(x-A);if(de!==0)for(var ee=w+1+re.length,le=W.length;ee<le;ee++)W[ee]=W[ee]+de}else if(t.isFull(d))this._content=d.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received")}this._version=i},t.prototype.getLineOffsets=function(){return this._lineOffsets===void 0&&(this._lineOffsets=oh(this._content,!0)),this._lineOffsets},t.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var i=this.getLineOffsets(),o=0,s=i.length;if(s===0)return{line:0,character:r};for(;o<s;){var d=Math.floor((o+s)/2);i[d]>r?s=d:o=d+1}var y=o-1;return{line:y,character:r-i[y]}},t.prototype.offsetAt=function(r){var i=this.getLineOffsets();if(r.line>=i.length)return this._content.length;if(r.line<0)return 0;var o=i[r.line],s=r.line+1<i.length?i[r.line+1]:this._content.length;return Math.max(Math.min(o+r.character,s),o)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),t.isIncremental=function(r){var i=r;return i!=null&&typeof i.text=="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength=="number")},t.isFull=function(r){var i=r;return i!=null&&typeof i.text=="string"&&i.range===void 0&&i.rangeLength===void 0},t}(),Hf;(function(t){function r(s,d,y,A){return new ah(s,d,y,A)}t.create=r;function i(s,d,y){if(s instanceof ah)return s.update(d,y),s;throw new Error("TextDocument.update: document must be created by TextDocument.create")}t.update=i;function o(s,d){for(var y=s.getText(),A=Sd(d.map(Wg),function(le,de){var he=le.range.start.line-de.range.start.line;return he===0?le.range.start.character-de.range.start.character:he}),x=0,w=[],F=0,W=A;F<W.length;F++){var re=W[F],ee=s.offsetAt(re.range.start);if(ee<x)throw new Error("Overlapping edit");ee>x&&w.push(y.substring(x,ee)),re.newText.length&&w.push(re.newText),x=s.offsetAt(re.range.end)}return w.push(y.substr(x)),w.join("")}t.applyEdits=o})(Hf||(Hf={}));function Sd(t,r){if(t.length<=1)return t;var i=t.length/2|0,o=t.slice(0,i),s=t.slice(i);Sd(o,r),Sd(s,r);for(var d=0,y=0,A=0;d<o.length&&y<s.length;){var x=r(o[d],s[y]);x<=0?t[A++]=o[d++]:t[A++]=s[y++]}for(;d<o.length;)t[A++]=o[d++];for(;y<s.length;)t[A++]=s[y++];return t}function oh(t,r,i){i===void 0&&(i=0);for(var o=r?[i]:[],s=0;s<t.length;s++){var d=t.charCodeAt(s);(d===13||d===10)&&(d===13&&s+1<t.length&&t.charCodeAt(s+1)===10&&s++,o.push(i+s+1))}return o}function sh(t){var r=t.start,i=t.end;return r.line>i.line||r.line===i.line&&r.character>i.character?{start:i,end:r}:t}function Wg(t){var r=sh(t.range);return r!==t.range?{newText:t.newText,range:r}:t}var rr;(function(t){t[t.Undefined=0]="Undefined",t[t.EnumValueMismatch=1]="EnumValueMismatch",t[t.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",t[t.UnexpectedEndOfString=258]="UnexpectedEndOfString",t[t.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",t[t.InvalidUnicode=260]="InvalidUnicode",t[t.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",t[t.InvalidCharacter=262]="InvalidCharacter",t[t.PropertyExpected=513]="PropertyExpected",t[t.CommaExpected=514]="CommaExpected",t[t.ColonExpected=515]="ColonExpected",t[t.ValueExpected=516]="ValueExpected",t[t.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",t[t.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",t[t.TrailingComma=519]="TrailingComma",t[t.DuplicateKey=520]="DuplicateKey",t[t.CommentNotPermitted=521]="CommentNotPermitted",t[t.SchemaResolveError=768]="SchemaResolveError"})(rr||(rr={}));var lh;(function(t){t.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[va.Markdown,va.PlainText],commitCharactersSupport:!0}}}}})(lh||(lh={}));var To=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,s){o.__proto__=s}||function(o,s){for(var d in s)s.hasOwnProperty(d)&&(o[d]=s[d])},t(r,i)};return function(r,i){t(r,i);function o(){this.constructor=r}r.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}}(),Hg={"color-hex":{errorMessage:"Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA.",pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:"String is not a RFC3339 date-time.",pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:"String is not a RFC3339 date.",pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:"String is not a RFC3339 time.",pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:"String is not an e-mail address.",pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}},Po=function(){function t(r,i,o){this.offset=i,this.length=o,this.parent=r}return Object.defineProperty(t.prototype,"children",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},t}(),zg=function(t){To(r,t);function r(i,o){var s=t.call(this,i,o)||this;return s.type="null",s.value=null,s}return r}(Po),uh=function(t){To(r,t);function r(i,o,s){var d=t.call(this,i,s)||this;return d.type="boolean",d.value=o,d}return r}(Po),Gg=function(t){To(r,t);function r(i,o){var s=t.call(this,i,o)||this;return s.type="array",s.items=[],s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.items},enumerable:!0,configurable:!0}),r}(Po),$g=function(t){To(r,t);function r(i,o){var s=t.call(this,i,o)||this;return s.type="number",s.isInteger=!0,s.value=Number.NaN,s}return r}(Po),fh=function(t){To(r,t);function r(i,o,s){var d=t.call(this,i,o,s)||this;return d.type="string",d.value="",d}return r}(Po),Kg=function(t){To(r,t);function r(i,o){var s=t.call(this,i,o)||this;return s.type="property",s.colonOffset=-1,s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!0,configurable:!0}),r}(Po),Yg=function(t){To(r,t);function r(i,o){var s=t.call(this,i,o)||this;return s.type="object",s.properties=[],s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.properties},enumerable:!0,configurable:!0}),r}(Po);function jn(t){return Wi(t)?t?{}:{not:{}}:t}var ch;(function(t){t[t.Key=0]="Key",t[t.Enum=1]="Enum"})(ch||(ch={}));var Jg=function(){function t(r,i){r===void 0&&(r=-1),i===void 0&&(i=null),this.focusOffset=r,this.exclude=i,this.schemas=[]}return t.prototype.add=function(r){this.schemas.push(r)},t.prototype.merge=function(r){var i;(i=this.schemas).push.apply(i,r.schemas)},t.prototype.include=function(r){return(this.focusOffset===-1||dh(r,this.focusOffset))&&r!==this.exclude},t.prototype.newSub=function(){return new t(-1,this.exclude)},t}(),Ad=function(){function t(){}return Object.defineProperty(t.prototype,"schemas",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.add=function(r){},t.prototype.merge=function(r){},t.prototype.include=function(r){return!0},t.prototype.newSub=function(){return this},t.instance=new t,t}(),Un=function(){function t(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=null}return t.prototype.hasProblems=function(){return!!this.problems.length},t.prototype.mergeAll=function(r){for(var i=0,o=r;i<o.length;i++){var s=o[i];this.merge(s)}},t.prototype.merge=function(r){this.problems=this.problems.concat(r.problems)},t.prototype.mergeEnumValues=function(r){if(!this.enumValueMatch&&!r.enumValueMatch&&this.enumValues&&r.enumValues){this.enumValues=this.enumValues.concat(r.enumValues);for(var i=0,o=this.problems;i<o.length;i++){var s=o[i];s.code===rr.EnumValueMismatch&&(s.message="Value is not accepted. Valid values: "+this.enumValues.map(function(d){return JSON.stringify(d)}).join(", ")+".")}}},t.prototype.mergePropertyMatch=function(r){this.merge(r),this.propertiesMatches++,(r.enumValueMatch||!r.hasProblems()&&r.propertiesMatches)&&this.propertiesValueMatches++,r.enumValueMatch&&r.enumValues&&r.enumValues.length===1&&this.primaryValueMatches++},t.prototype.compare=function(r){var i=this.hasProblems();return i!==r.hasProblems()?i?-1:1:this.enumValueMatch!==r.enumValueMatch?r.enumValueMatch?-1:1:this.primaryValueMatches!==r.primaryValueMatches?this.primaryValueMatches-r.primaryValueMatches:this.propertiesValueMatches!==r.propertiesValueMatches?this.propertiesValueMatches-r.propertiesValueMatches:this.propertiesMatches-r.propertiesMatches},t}();function Xg(t,r){return r===void 0&&(r=[]),new ph(t,r,[])}function ja(t){return Bg(t)}function wd(t){return Ng(t)}function dh(t,r,i){return i===void 0&&(i=!1),r>=t.offset&&r<t.offset+t.length||i&&r===t.offset+t.length}var ph=function(){function t(r,i,o){i===void 0&&(i=[]),o===void 0&&(o=[]),this.root=r,this.syntaxErrors=i,this.comments=o}return t.prototype.getNodeFromOffset=function(r,i){if(i===void 0&&(i=!1),this.root)return Dg(this.root,r,i)},t.prototype.visit=function(r){if(this.root){var i=function(o){var s=r(o),d=o.children;if(Array.isArray(d))for(var y=0;y<d.length&&s;y++)s=i(d[y]);return s};i(this.root)}},t.prototype.validate=function(r,i){if(this.root&&i){var o=new Un;return xn(this.root,i,o,Ad.instance),o.problems.map(function(s){var d=pr.create(r.positionAt(s.location.offset),r.positionAt(s.location.offset+s.location.length));return ha.create(d,s.message,s.severity,s.code)})}return null},t.prototype.getMatchingSchemas=function(r,i,o){i===void 0&&(i=-1),o===void 0&&(o=null);var s=new Jg(i,o);return this.root&&r&&xn(this.root,r,new Un,s),s.schemas},t}();function xn(t,r,i,o){if(!t||!o.include(t))return;switch(t.type){case"object":x(t,r,i,o);break;case"array":A(t,r,i,o);break;case"string":y(t,r,i,o);break;case"number":d(t,r,i,o);break;case"property":return xn(t.valueNode,r,i,o)}s(),o.add({node:t,schema:r});function s(){function w(Ze){return t.type===Ze||Ze==="integer"&&t.type==="number"&&t.isInteger||r.nullable&&t.value===null}if(Array.isArray(r.type)?r.type.some(w)||i.problems.push({location:{offset:t.offset,length:t.length},severity:Ht.Warning,message:r.errorMessage||"Incorrect type. Expected one of "+r.type.join(", ")+"."}):r.type&&(w(r.type)||i.problems.push({location:{offset:t.offset,length:t.length},severity:Ht.Warning,message:r.errorMessage||'Incorrect type. Expected "'+r.type+'".'})),Array.isArray(r.allOf))for(var F=0,W=r.allOf;F<W.length;F++){var re=W[F];xn(t,jn(re),i,o)}var ee=jn(r.not);if(ee){var le=new Un,de=o.newSub();xn(t,ee,le,de),le.hasProblems()||i.problems.push({location:{offset:t.offset,length:t.length},severity:Ht.Warning,message:"Matches a schema that is not allowed."});for(var he=0,xe=de.schemas;he<xe.length;he++){var ve=xe[he];ve.inverted=!ve.inverted,o.add(ve)}}var we=function(Ze,_e){for(var bt=[],Rt=null,or=0,Dr=Ze;or<Dr.length;or++){var Ir=Dr[or],rn=jn(Ir),Er=new Un,Hr=o.newSub();if(xn(t,rn,Er,Hr),Er.hasProblems()||bt.push(rn),!Rt)Rt={schema:rn,validationResult:Er,matchingSchemas:Hr};else if(!_e&&!Er.hasProblems()&&!Rt.validationResult.hasProblems())Rt.matchingSchemas.merge(Hr),Rt.validationResult.propertiesMatches+=Er.propertiesMatches,Rt.validationResult.propertiesValueMatches+=Er.propertiesValueMatches;else{var In=Er.compare(Rt.validationResult);In>0?Rt={schema:rn,validationResult:Er,matchingSchemas:Hr}:In===0&&(Rt.matchingSchemas.merge(Hr),Rt.validationResult.mergeEnumValues(Er))}}return bt.length>1&&_e&&i.problems.push({location:{offset:t.offset,length:1},severity:Ht.Warning,message:"Matches multiple schemas when only one must validate."}),Rt!==null&&(i.merge(Rt.validationResult),i.propertiesMatches+=Rt.validationResult.propertiesMatches,i.propertiesValueMatches+=Rt.validationResult.propertiesValueMatches,o.merge(Rt.matchingSchemas)),bt.length};Array.isArray(r.anyOf)&&we(r.anyOf,!1),Array.isArray(r.oneOf)&&we(r.oneOf,!0);var Ne=function(Ze){var _e=new Un,bt=o.newSub();xn(t,jn(Ze),_e,bt),i.merge(_e),i.propertiesMatches+=_e.propertiesMatches,i.propertiesValueMatches+=_e.propertiesValueMatches,o.merge(bt)},Fe=function(Ze,_e,bt){var Rt=jn(Ze),or=new Un,Dr=o.newSub();xn(t,Rt,or,Dr),o.merge(Dr),or.hasProblems()?bt&&Ne(bt):_e&&Ne(_e)},je=jn(r.if);if(je&&Fe(je,jn(r.then),jn(r.else)),Array.isArray(r.enum)){for(var ke=ja(t),Me=!1,De=0,Ve=r.enum;De<Ve.length;De++){var Ke=Ve[De];if(Gl(ke,Ke)){Me=!0;break}}i.enumValues=r.enum,i.enumValueMatch=Me,Me||i.problems.push({location:{offset:t.offset,length:t.length},severity:Ht.Warning,code:rr.EnumValueMismatch,message:r.errorMessage||"Value is not accepted. Valid values: "+r.enum.map(function(Ze){return JSON.stringify(Ze)}).join(", ")+"."})}if(pa(r.const)){var ke=ja(t);Gl(ke,r.const)?i.enumValueMatch=!0:(i.problems.push({location:{offset:t.offset,length:t.length},severity:Ht.Warning,code:rr.EnumValueMismatch,message:r.errorMessage||"Value must be "+JSON.stringify(r.const)+"."}),i.enumValueMatch=!1),i.enumValues=[r.const]}r.deprecationMessage&&t.parent&&i.problems.push({location:{offset:t.parent.offset,length:t.parent.length},severity:Ht.Warning,message:r.deprecationMessage})}function d(w,F,W,re){var ee=w.value;qn(F.multipleOf)&&ee%F.multipleOf!=0&&W.problems.push({location:{offset:w.offset,length:w.length},severity:Ht.Warning,message:"Value is not divisible by "+F.multipleOf+"."});function le(Ne,Fe){if(qn(Fe))return Fe;if(Wi(Fe)&&Fe)return Ne}function de(Ne,Fe){if(!Wi(Fe)||!Fe)return Ne}var he=le(F.minimum,F.exclusiveMinimum);qn(he)&&ee<=he&&W.problems.push({location:{offset:w.offset,length:w.length},severity:Ht.Warning,message:"Value is below the exclusive minimum of "+he+"."});var xe=le(F.maximum,F.exclusiveMaximum);qn(xe)&&ee>=xe&&W.problems.push({location:{offset:w.offset,length:w.length},severity:Ht.Warning,message:"Value is above the exclusive maximum of "+xe+"."});var ve=de(F.minimum,F.exclusiveMinimum);qn(ve)&&ee<ve&&W.problems.push({location:{offset:w.offset,length:w.length},severity:Ht.Warning,message:"Value is below the minimum of "+ve+"."});var we=de(F.maximum,F.exclusiveMaximum);qn(we)&&ee>we&&W.problems.push({location:{offset:w.offset,length:w.length},severity:Ht.Warning,message:"Value is above the maximum of "+we+"."})}function y(w,F,W,re){if(qn(F.minLength)&&w.value.length<F.minLength&&W.problems.push({location:{offset:w.offset,length:w.length},severity:Ht.Warning,message:"String is shorter than the minimum length of "+F.minLength+"."}),qn(F.maxLength)&&w.value.length>F.maxLength&&W.problems.push({location:{offset:w.offset,length:w.length},severity:Ht.Warning,message:"String is longer than the maximum length of "+F.maxLength+"."}),Ug(F.pattern)){var ee=new RegExp(F.pattern);ee.test(w.value)||W.problems.push({location:{offset:w.offset,length:w.length},severity:Ht.Warning,message:F.patternErrorMessage||F.errorMessage||'String does not match the pattern of "'+F.pattern+'".'})}if(F.format)switch(F.format){case"uri":case"uri-reference":{var le=void 0;if(!w.value)le="URI expected.";else{var de=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(w.value);de?!de[2]&&F.format==="uri"&&(le="URI with a scheme is expected."):le="URI is expected."}le&&W.problems.push({location:{offset:w.offset,length:w.length},severity:Ht.Warning,message:F.patternErrorMessage||F.errorMessage||"String is not a URI: "+le})}break;case"color-hex":case"date-time":case"date":case"time":case"email":var he=Hg[F.format];(!w.value||!he.pattern.exec(w.value))&&W.problems.push({location:{offset:w.offset,length:w.length},severity:Ht.Warning,message:F.patternErrorMessage||F.errorMessage||he.errorMessage});break;default:}}function A(w,F,W,re){if(Array.isArray(F.items)){for(var ee=F.items,le=0;le<ee.length;le++){var de=ee[le],he=jn(de),xe=new Un,ve=w.items[le];ve?(xn(ve,he,xe,re),W.mergePropertyMatch(xe)):w.items.length>=ee.length&&W.propertiesValueMatches++}if(w.items.length>ee.length)if(typeof F.additionalItems=="object")for(var we=ee.length;we<w.items.length;we++){var xe=new Un;xn(w.items[we],F.additionalItems,xe,re),W.mergePropertyMatch(xe)}else F.additionalItems===!1&&W.problems.push({location:{offset:w.offset,length:w.length},severity:Ht.Warning,message:"Array has too many items according to schema. Expected "+ee.length+" or fewer."})}else{var Ne=jn(F.items);if(Ne)for(var Fe=0,je=w.items;Fe<je.length;Fe++){var ve=je[Fe],xe=new Un;xn(ve,Ne,xe,re),W.mergePropertyMatch(xe)}}var ke=jn(F.contains);if(ke){var Me=w.items.some(function(Ke){var Ze=new Un;return xn(Ke,ke,Ze,Ad.instance),!Ze.hasProblems()});Me||W.problems.push({location:{offset:w.offset,length:w.length},severity:Ht.Warning,message:F.errorMessage||"Array does not contain required item."})}if(qn(F.minItems)&&w.items.length<F.minItems&&W.problems.push({location:{offset:w.offset,length:w.length},severity:Ht.Warning,message:"Array has too few items. Expected "+F.minItems+" or more."}),qn(F.maxItems)&&w.items.length>F.maxItems&&W.problems.push({location:{offset:w.offset,length:w.length},severity:Ht.Warning,message:"Array has too many items. Expected "+F.maxItems+" or fewer."}),F.uniqueItems===!0){var De=ja(w),Ve=De.some(function(Ke,Ze){return Ze!==De.lastIndexOf(Ke)});Ve&&W.problems.push({location:{offset:w.offset,length:w.length},severity:Ht.Warning,message:"Array has duplicate items."})}}function x(w,F,W,re){for(var ee=Object.create(null),le=[],de=0,he=w.properties;de<he.length;de++){var xe=he[de],ve=xe.keyNode.value;ee[ve]=xe.valueNode,le.push(ve)}if(Array.isArray(F.required))for(var we=0,Ne=F.required;we<Ne.length;we++){var Fe=Ne[we];if(!ee[Fe]){var je=w.parent&&w.parent.type==="property"&&w.parent.keyNode,ke=je?{offset:je.offset,length:je.length}:{offset:w.offset,length:1};W.problems.push({location:ke,severity:Ht.Warning,message:'Missing property "'+Fe+'".'})}}var Me=function(Ci){for(var iu=le.indexOf(Ci);iu>=0;)le.splice(iu,1),iu=le.indexOf(Ci)};if(F.properties)for(var De=0,Ve=Object.keys(F.properties);De<Ve.length;De++){var Fe=Ve[De];Me(Fe);var Ke=F.properties[Fe],Ze=ee[Fe];if(Ze)if(Wi(Ke))if(Ke)W.propertiesMatches++,W.propertiesValueMatches++;else{var xe=Ze.parent;W.problems.push({location:{offset:xe.keyNode.offset,length:xe.keyNode.length},severity:Ht.Warning,message:F.errorMessage||"Property "+Fe+" is not allowed."})}else{var _e=new Un;xn(Ze,Ke,_e,re),W.mergePropertyMatch(_e)}}if(F.patternProperties)for(var bt=0,Rt=Object.keys(F.patternProperties);bt<Rt.length;bt++)for(var or=Rt[bt],Dr=new RegExp(or),Ir=0,rn=le.slice(0);Ir<rn.length;Ir++){var Fe=rn[Ir];if(Dr.test(Fe)){Me(Fe);var Ze=ee[Fe];if(Ze){var Ke=F.patternProperties[or];if(Wi(Ke))if(Ke)W.propertiesMatches++,W.propertiesValueMatches++;else{var xe=Ze.parent;W.problems.push({location:{offset:xe.keyNode.offset,length:xe.keyNode.length},severity:Ht.Warning,message:F.errorMessage||"Property "+Fe+" is not allowed."})}else{var _e=new Un;xn(Ze,Ke,_e,re),W.mergePropertyMatch(_e)}}}}if(typeof F.additionalProperties=="object")for(var Er=0,Hr=le;Er<Hr.length;Er++){var Fe=Hr[Er],Ze=ee[Fe];if(Ze){var _e=new Un;xn(Ze,F.additionalProperties,_e,re),W.mergePropertyMatch(_e)}}else if(F.additionalProperties===!1&&le.length>0)for(var In=0,Yt=le;In<Yt.length;In++){var Fe=Yt[In],Ze=ee[Fe];if(Ze){var xe=Ze.parent;W.problems.push({location:{offset:xe.keyNode.offset,length:xe.keyNode.length},severity:Ht.Warning,message:F.errorMessage||"Property "+Fe+" is not allowed."})}}if(qn(F.maxProperties)&&w.properties.length>F.maxProperties&&W.problems.push({location:{offset:w.offset,length:w.length},severity:Ht.Warning,message:"Object has more properties than limit of "+F.maxProperties+"."}),qn(F.minProperties)&&w.properties.length<F.minProperties&&W.problems.push({location:{offset:w.offset,length:w.length},severity:Ht.Warning,message:"Object has fewer properties than the required number of "+F.minProperties}),F.dependencies)for(var Ct=0,kt=Object.keys(F.dependencies);Ct<kt.length;Ct++){var ve=kt[Ct],fr=ee[ve];if(fr){var hn=F.dependencies[ve];if(Array.isArray(hn))for(var Sr=0,ks=hn;Sr<ks.length;Sr++){var ru=ks[Sr];ee[ru]?W.propertiesValueMatches++:W.problems.push({location:{offset:w.offset,length:w.length},severity:Ht.Warning,message:"Object is missing property "+ru+" required by property {$key}."})}else{var Ke=jn(hn);if(Ke){var _e=new Un;xn(w,Ke,_e,re),W.mergePropertyMatch(_e)}}}}var Fo=jn(F.propertyNames);if(Fo)for(var zi=0,nu=w.properties;zi<nu.length;zi++){var Xf=nu[zi],ve=Xf.keyNode;ve&&xn(ve,Fo,W,Ad.instance)}}}function Qg(t,r){var i=[],o=-1,s=t.getText(),d=Es(s,!1),y=r&&r.collectComments?[]:void 0;function A(){for(;;){var je=d.scan();switch(W(),je){case 12:case 13:Array.isArray(y)&&y.push(pr.create(t.positionAt(d.getTokenOffset()),t.positionAt(d.getTokenOffset()+d.getTokenLength())));break;case 15:case 14:break;default:return je}}}function x(je){return d.getToken()===je?(A(),!0):!1}function w(je,ke,Me,De,Ve){if(Ve===void 0&&(Ve=Ht.Error),i.length===0||Me!==o){var Ke=pr.create(t.positionAt(Me),t.positionAt(De));i.push(ha.create(Ke,je,Ve,ke,t.languageId)),o=Me}}function F(je,ke,Me,De,Ve){Me===void 0&&(Me=null),De===void 0&&(De=[]),Ve===void 0&&(Ve=[]);var Ke=d.getTokenOffset(),Ze=d.getTokenOffset()+d.getTokenLength();if(Ke===Ze&&Ke>0){for(Ke--;Ke>0&&/\s/.test(s.charAt(Ke));)Ke--;Ze=Ke+1}if(w(je,ke,Ke,Ze),Me&&re(Me,!1),De.length+Ve.length>0)for(var _e=d.getToken();_e!==17;){if(De.indexOf(_e)!==-1){A();break}else if(Ve.indexOf(_e)!==-1)break;_e=A()}return Me}function W(){switch(d.getTokenError()){case 4:return F("Invalid unicode sequence in string.",rr.InvalidUnicode),!0;case 5:return F("Invalid escape character in string.",rr.InvalidEscapeCharacter),!0;case 3:return F("Unexpected end of number.",rr.UnexpectedEndOfNumber),!0;case 1:return F("Unexpected end of comment.",rr.UnexpectedEndOfComment),!0;case 2:return F("Unexpected end of string.",rr.UnexpectedEndOfString),!0;case 6:return F("Invalid characters in string. Control characters must be escaped.",rr.InvalidCharacter),!0}return!1}function re(je,ke){return je.length=d.getTokenOffset()+d.getTokenLength()-je.offset,ke&&A(),je}function ee(je){if(d.getToken()!==3)return null;var ke=new Gg(je,d.getTokenOffset());A();for(var Me=0,De=!1;d.getToken()!==4&&d.getToken()!==17;){if(d.getToken()===5){De||F("Value expected",rr.ValueExpected);var Ve=d.getTokenOffset();if(A(),d.getToken()===4){De&&w("Trailing comma",rr.TrailingComma,Ve,Ve+1);continue}}else De&&F("Expected comma",rr.CommaExpected);var Ke=we(ke,Me++);Ke?ke.items.push(Ke):F("Value expected",rr.ValueExpected,null,[],[4,5]),De=!0}return d.getToken()!==4?F("Expected comma or closing bracket",rr.CommaOrCloseBacketExpected,ke):re(ke,!0)}function le(je,ke){var Me=new Kg(je,d.getTokenOffset()),De=he(Me);if(!De)if(d.getToken()===16){F("Property keys must be doublequoted",rr.Undefined);var Ve=new fh(Me,d.getTokenOffset(),d.getTokenLength());Ve.value=d.getTokenValue(),De=Ve,A()}else return null;Me.keyNode=De;var Ke=ke[De.value];if(Ke?(w("Duplicate object key",rr.DuplicateKey,Me.keyNode.offset,Me.keyNode.offset+Me.keyNode.length,Ht.Warning),typeof Ke=="object"&&w("DuplicateKeyWarning",rr.DuplicateKey,Ke.keyNode.offset,Ke.keyNode.offset+Ke.keyNode.length,Ht.Warning),ke[De.value]=!0):ke[De.value]=Me,d.getToken()===6)Me.colonOffset=d.getTokenOffset(),A();else if(F("Colon expected",rr.ColonExpected),d.getToken()===10&&t.positionAt(De.offset+De.length).line<t.positionAt(d.getTokenOffset()).line)return Me.length=De.length,Me;var Ze=we(Me,De.value);return Ze?(Me.valueNode=Ze,Me.length=Ze.offset+Ze.length-Me.offset,Me):F("Value expected",rr.ValueExpected,Me,[],[2,5])}function de(je){if(d.getToken()!==1)return null;var ke=new Yg(je,d.getTokenOffset()),Me=Object.create(null);A();for(var De=!1;d.getToken()!==2&&d.getToken()!==17;){if(d.getToken()===5){De||F("Property expected",rr.PropertyExpected);var Ve=d.getTokenOffset();if(A(),d.getToken()===2){De&&w("Trailing comma",rr.TrailingComma,Ve,Ve+1);continue}}else De&&F("Expected comma",rr.CommaExpected);var Ke=le(ke,Me);Ke?ke.properties.push(Ke):F("Property expected",rr.PropertyExpected,null,[],[2,5]),De=!0}return d.getToken()!==2?F("Expected comma or closing brace",rr.CommaOrCloseBraceExpected,ke):re(ke,!0)}function he(je){if(d.getToken()!==10)return null;var ke=new fh(je,d.getTokenOffset());return ke.value=d.getTokenValue(),re(ke,!0)}function xe(je){if(d.getToken()!==11)return null;var ke=new $g(je,d.getTokenOffset());if(d.getTokenError()===0){var Me=d.getTokenValue();try{var De=JSON.parse(Me);if(!qn(De))return F("Invalid number format.",rr.Undefined,ke);ke.value=De}catch(Ve){return F("Invalid number format.",rr.Undefined,ke)}ke.isInteger=Me.indexOf(".")===-1}return re(ke,!0)}function ve(je){var ke;switch(d.getToken()){case 7:return re(new zg(je,d.getTokenOffset()),!0);case 8:return re(new uh(je,!0,d.getTokenOffset()),!0);case 9:return re(new uh(je,!1,d.getTokenOffset()),!0);default:return null}}function we(je,ke){return ee(je)||de(je)||he(je)||xe(je)||ve(je)}var Ne=null,Fe=A();return Fe!==17&&(Ne=we(null,null),Ne?d.getToken()!==17&&F("End of file expected.",rr.Undefined):F("Expected a JSON object, array or literal.",rr.Undefined)),new ph(Ne,i,y)}function Cd(t,r,i){if(t!==null&&typeof t=="object"){var o=r+" ";if(Array.isArray(t)){if(t.length===0)return"[]";for(var s=`[
369
369
  `,d=0;d<t.length;d++)s+=o+Cd(t[d],o,i),d<t.length-1&&(s+=","),s+=`
370
- `;return s+=r+"]",s}else{var g=Object.keys(t);if(g.length===0)return"{}";for(var s=`{
371
- `,d=0;d<g.length;d++){var A=g[d];s+=o+JSON.stringify(A)+": "+Cd(t[A],o,i),d<g.length-1&&(s+=","),s+=`
372
- `}return s+=r+"}",s}}return i(t)}function Zg(t,r){if(t.length<r.length)return!1;for(var i=0;i<r.length;i++)if(t[i]!==r[i])return!1;return!0}function Ed(t,r){var i=t.length-r.length;return i>0?t.lastIndexOf(r)===i:i===0?t===r:!1}function qg(t){return t.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function c0(t,r){for(var i="";r>0;)(r&1)==1&&(i+=t),t+=t,r=r>>>1;return i}var _g=[",","}","]"],ey=[":"],ty=function(){function t(r,i,o,s){i===void 0&&(i=[]),o===void 0&&(o=Promise),s===void 0&&(s={}),this.schemaService=r,this.contributions=i,this.promiseConstructor=o,this.clientCapabilities=s,this.templateVarIdCounter=0}return t.prototype.doResolve=function(r){for(var i=this.contributions.length-1;i>=0;i--)if(this.contributions[i].resolveCompletion){var o=this.contributions[i].resolveCompletion(r);if(o)return o}return this.promiseConstructor.resolve(r)},t.prototype.doComplete=function(r,i,o){var s=this,d={items:[],isIncomplete:!1},g=r.getText(),A=r.offsetAt(i),x=o.getNodeFromOffset(A,!0);if(this.isInComment(r,x?x.offset:0,A))return Promise.resolve(d);if(x&&A===x.offset+x.length&&A>0){var w=g[A-1];(x.type==="object"&&w==="}"||x.type==="array"&&w==="]")&&(x=x.parent)}var F=this.getCurrentWord(r,A),H=null;if(x&&(x.type==="string"||x.type==="number"||x.type==="boolean"||x.type==="null"))H=dr.create(r.positionAt(x.offset),r.positionAt(x.offset+x.length));else{var re=A-F.length;re>0&&g[re-1]==='"'&&re--,H=dr.create(r.positionAt(re),i)}var ee=this.doesSupportsCommitCharacters(),se={},de={add:function(pe){var xe=se[pe.label];xe?xe.documentation||(xe.documentation=pe.documentation):(se[pe.label]=pe,H&&(pe.textEdit=Ai.replace(H,pe.insertText)),ee&&(pe.commitCharacters=pe.kind===_n.Property?ey:_g),d.items.push(pe))},setAsIncomplete:function(){d.isIncomplete=!0},error:function(pe){console.error(pe)},log:function(pe){console.log(pe)},getNumberOfProposals:function(){return d.items.length}};return this.schemaService.getSchemaForResource(r.uri,o).then(function(pe){var xe=[],ve=!0,we="",Ne=null;if(x&&x.type==="string"){var Fe=x.parent;Fe&&Fe.type==="property"&&Fe.keyNode===x&&(ve=!Fe.valueNode,Ne=Fe,we=g.substr(x.offset+1,x.length-2),Fe&&(x=Fe.parent))}if(x&&x.type==="object"){if(x.offset===A)return d;var je=x.properties;je.forEach(function(Ve){(!Ne||Ne!==Ve)&&(se[Ve.keyNode.value]=bd.create("__"))});var ke="";ve&&(ke=s.evaluateSeparatorAfter(r,r.offsetAt(H.end))),pe?s.getPropertyCompletions(pe,o,x,ve,ke,de):s.getSchemaLessPropertyCompletions(o,x,we,de);var Me=wd(x);s.contributions.forEach(function(Ve){var Ke=Ve.collectPropertyCompletions(r.uri,Me,F,ve,ke==="",de);Ke&&xe.push(Ke)}),!pe&&F.length>0&&g.charAt(A-F.length-1)!=='"'&&(de.add({kind:_n.Property,label:s.getLabelForValue(F),insertText:s.getInsertTextForProperty(F,null,!1,ke),insertTextFormat:on.Snippet,documentation:""}),de.setAsIncomplete())}var De={};return pe?s.getValueCompletions(pe,o,x,A,r,de,De):s.getSchemaLessValueCompletions(o,x,A,r,de),s.contributions.length>0&&s.getContributedValueCompletions(o,x,A,r,de,xe),s.promiseConstructor.all(xe).then(function(){if(de.getNumberOfProposals()===0){var Ve=A;x&&(x.type==="string"||x.type==="number"||x.type==="boolean"||x.type==="null")&&(Ve=x.offset+x.length);var Ke=s.evaluateSeparatorAfter(r,Ve);s.addFillerValueCompletions(De,Ke,de)}return d})})},t.prototype.getPropertyCompletions=function(r,i,o,s,d,g){var A=this,x=i.getMatchingSchemas(r.schema,o.offset);x.forEach(function(w){if(w.node===o&&!w.inverted){var F=w.schema.properties;F&&Object.keys(F).forEach(function(H){var re=F[H],ee=!1;if(typeof re=="object"&&re.allOf)for(var se=0,de=re.allOf;se<de.length;se++){var pe=de[se];if(pe.readOnly){ee=!0;break}}if(typeof re=="object"&&!re.deprecationMessage&&!re.doNotSuggest&&!ee){var xe={kind:_n.Property,label:A.sanitizeLabel(H),insertText:A.getInsertTextForProperty(H,re,s,d),insertTextFormat:on.Snippet,filterText:A.getFilterTextForValue(H),documentation:A.fromMarkup(re.markdownDescription)||re.description||""};Ed(xe.insertText,"$1"+d)&&(xe.command={title:"Suggest",command:"editor.action.triggerSuggest"}),g.add(xe)}})}})},t.prototype.getSchemaLessPropertyCompletions=function(r,i,o,s){var d=this,g=function(x){x.properties.forEach(function(w){var F=w.keyNode.value;s.add({kind:_n.Property,label:d.sanitizeLabel(F),insertText:d.getInsertTextForValue(F,""),insertTextFormat:on.Snippet,filterText:d.getFilterTextForValue(F),documentation:""})})};if(i.parent)if(i.parent.type==="property"){var A=i.parent.keyNode.value;r.visit(function(x){return x.type==="property"&&x!==i.parent&&x.keyNode.value===A&&x.valueNode&&x.valueNode.type==="object"&&g(x.valueNode),!0})}else i.parent.type==="array"&&i.parent.items.forEach(function(x){x.type==="object"&&x!==i&&g(x)});else i.type==="object"&&s.add({kind:_n.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",null,!0,""),insertTextFormat:on.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})},t.prototype.getSchemaLessValueCompletions=function(r,i,o,s,d){var g=this,A=o;if(i&&(i.type==="string"||i.type==="number"||i.type==="boolean"||i.type==="null")&&(A=i.offset+i.length,i=i.parent),!i){d.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:on.Snippet,documentation:""}),d.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:on.Snippet,documentation:""});return}var x=this.evaluateSeparatorAfter(s,A),w=function(ee){dh(ee.parent,o,!0)||d.add({kind:g.getSuggestionKind(ee.type),label:g.getLabelTextForMatchingNode(ee,s),insertText:g.getInsertTextForMatchingNode(ee,s,x),insertTextFormat:on.Snippet,documentation:""}),ee.type==="boolean"&&g.addBooleanValueCompletion(!ee.value,x,d)};if(i.type==="property"&&o>i.colonOffset){var F=i.valueNode;if(F&&(o>F.offset+F.length||F.type==="object"||F.type==="array"))return;var H=i.keyNode.value;r.visit(function(ee){return ee.type==="property"&&ee.keyNode.value===H&&ee.valueNode&&w(ee.valueNode),!0}),H==="$schema"&&i.parent&&!i.parent.parent&&this.addDollarSchemaCompletions(x,d)}if(i.type==="array")if(i.parent&&i.parent.type==="property"){var re=i.parent.keyNode.value;r.visit(function(ee){return ee.type==="property"&&ee.keyNode.value===re&&ee.valueNode&&ee.valueNode.type==="array"&&ee.valueNode.items.forEach(w),!0})}else i.items.forEach(w)},t.prototype.getValueCompletions=function(r,i,o,s,d,g,A){var x=this,w=s,F=null,H=null;if(o&&(o.type==="string"||o.type==="number"||o.type==="boolean"||o.type==="null")&&(w=o.offset+o.length,H=o,o=o.parent),!o){this.addSchemaValueCompletions(r.schema,"",g,A);return}if(o.type==="property"&&s>o.colonOffset){var re=o.valueNode;if(re&&s>re.offset+re.length)return;F=o.keyNode.value,o=o.parent}if(o&&(F!==null||o.type==="array")){var ee=this.evaluateSeparatorAfter(d,w),se=i.getMatchingSchemas(r.schema,o.offset,H);se.forEach(function(de){if(de.node===o&&!de.inverted&&de.schema){if(o.type==="array"&&de.schema.items)if(Array.isArray(de.schema.items)){var pe=x.findItemAtOffset(o,d,s);pe<de.schema.items.length&&x.addSchemaValueCompletions(de.schema.items[pe],ee,g,A)}else x.addSchemaValueCompletions(de.schema.items,ee,g,A);if(de.schema.properties){var xe=de.schema.properties[F];xe&&x.addSchemaValueCompletions(xe,ee,g,A)}}}),F==="$schema"&&!o.parent&&this.addDollarSchemaCompletions(ee,g),A.boolean&&(this.addBooleanValueCompletion(!0,ee,g),this.addBooleanValueCompletion(!1,ee,g)),A.null&&this.addNullValueCompletion(ee,g)}},t.prototype.getContributedValueCompletions=function(r,i,o,s,d,g){if(!i)this.contributions.forEach(function(F){var H=F.collectDefaultCompletions(s.uri,d);H&&g.push(H)});else if((i.type==="string"||i.type==="number"||i.type==="boolean"||i.type==="null")&&(i=i.parent),i.type==="property"&&o>i.colonOffset){var A=i.keyNode.value,x=i.valueNode;if(!x||o<=x.offset+x.length){var w=wd(i.parent);this.contributions.forEach(function(F){var H=F.collectValueCompletions(s.uri,w,A,d);H&&g.push(H)})}}},t.prototype.addSchemaValueCompletions=function(r,i,o,s){var d=this;typeof r=="object"&&(this.addEnumValueCompletions(r,i,o),this.addDefaultValueCompletions(r,i,o),this.collectTypes(r,s),Array.isArray(r.allOf)&&r.allOf.forEach(function(g){return d.addSchemaValueCompletions(g,i,o,s)}),Array.isArray(r.anyOf)&&r.anyOf.forEach(function(g){return d.addSchemaValueCompletions(g,i,o,s)}),Array.isArray(r.oneOf)&&r.oneOf.forEach(function(g){return d.addSchemaValueCompletions(g,i,o,s)}))},t.prototype.addDefaultValueCompletions=function(r,i,o,s){var d=this;s===void 0&&(s=0);var g=!1;if(pa(r.default)){for(var A=r.type,x=r.default,w=s;w>0;w--)x=[x],A="array";o.add({kind:this.getSuggestionKind(A),label:this.getLabelForValue(x),insertText:this.getInsertTextForValue(x,i),insertTextFormat:on.Snippet}),g=!0}Array.isArray(r.examples)&&r.examples.forEach(function(F){for(var H=r.type,re=F,ee=s;ee>0;ee--)re=[re],H="array";o.add({kind:d.getSuggestionKind(H),label:d.getLabelForValue(re),insertText:d.getInsertTextForValue(re,i),insertTextFormat:on.Snippet}),g=!0}),Array.isArray(r.defaultSnippets)&&r.defaultSnippets.forEach(function(F){var H=r.type,re=F.body,ee=F.label,se,de;if(pa(re)){for(var pe=r.type,xe=s;xe>0;xe--)re=[re],pe="array";se=d.getInsertTextForSnippetValue(re,i),de=d.getFilterTextForSnippetValue(re),ee=ee||d.getLabelForSnippetValue(re)}else if(typeof F.bodyText=="string"){for(var ve="",we="",Ne="",xe=s;xe>0;xe--)ve=ve+Ne+`[
370
+ `;return s+=r+"]",s}else{var y=Object.keys(t);if(y.length===0)return"{}";for(var s=`{
371
+ `,d=0;d<y.length;d++){var A=y[d];s+=o+JSON.stringify(A)+": "+Cd(t[A],o,i),d<y.length-1&&(s+=","),s+=`
372
+ `}return s+=r+"}",s}}return i(t)}function Zg(t,r){if(t.length<r.length)return!1;for(var i=0;i<r.length;i++)if(t[i]!==r[i])return!1;return!0}function Ed(t,r){var i=t.length-r.length;return i>0?t.lastIndexOf(r)===i:i===0?t===r:!1}function qg(t){return t.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function c0(t,r){for(var i="";r>0;)(r&1)==1&&(i+=t),t+=t,r=r>>>1;return i}var _g=[",","}","]"],ey=[":"],ty=function(){function t(r,i,o,s){i===void 0&&(i=[]),o===void 0&&(o=Promise),s===void 0&&(s={}),this.schemaService=r,this.contributions=i,this.promiseConstructor=o,this.clientCapabilities=s,this.templateVarIdCounter=0}return t.prototype.doResolve=function(r){for(var i=this.contributions.length-1;i>=0;i--)if(this.contributions[i].resolveCompletion){var o=this.contributions[i].resolveCompletion(r);if(o)return o}return this.promiseConstructor.resolve(r)},t.prototype.doComplete=function(r,i,o){var s=this,d={items:[],isIncomplete:!1},y=r.getText(),A=r.offsetAt(i),x=o.getNodeFromOffset(A,!0);if(this.isInComment(r,x?x.offset:0,A))return Promise.resolve(d);if(x&&A===x.offset+x.length&&A>0){var w=y[A-1];(x.type==="object"&&w==="}"||x.type==="array"&&w==="]")&&(x=x.parent)}var F=this.getCurrentWord(r,A),W=null;if(x&&(x.type==="string"||x.type==="number"||x.type==="boolean"||x.type==="null"))W=pr.create(r.positionAt(x.offset),r.positionAt(x.offset+x.length));else{var re=A-F.length;re>0&&y[re-1]==='"'&&re--,W=pr.create(r.positionAt(re),i)}var ee=this.doesSupportsCommitCharacters(),le={},de={add:function(he){var xe=le[he.label];xe?xe.documentation||(xe.documentation=he.documentation):(le[he.label]=he,W&&(he.textEdit=Ai.replace(W,he.insertText)),ee&&(he.commitCharacters=he.kind===_n.Property?ey:_g),d.items.push(he))},setAsIncomplete:function(){d.isIncomplete=!0},error:function(he){console.error(he)},log:function(he){console.log(he)},getNumberOfProposals:function(){return d.items.length}};return this.schemaService.getSchemaForResource(r.uri,o).then(function(he){var xe=[],ve=!0,we="",Ne=null;if(x&&x.type==="string"){var Fe=x.parent;Fe&&Fe.type==="property"&&Fe.keyNode===x&&(ve=!Fe.valueNode,Ne=Fe,we=y.substr(x.offset+1,x.length-2),Fe&&(x=Fe.parent))}if(x&&x.type==="object"){if(x.offset===A)return d;var je=x.properties;je.forEach(function(Ve){(!Ne||Ne!==Ve)&&(le[Ve.keyNode.value]=bd.create("__"))});var ke="";ve&&(ke=s.evaluateSeparatorAfter(r,r.offsetAt(W.end))),he?s.getPropertyCompletions(he,o,x,ve,ke,de):s.getSchemaLessPropertyCompletions(o,x,we,de);var Me=wd(x);s.contributions.forEach(function(Ve){var Ke=Ve.collectPropertyCompletions(r.uri,Me,F,ve,ke==="",de);Ke&&xe.push(Ke)}),!he&&F.length>0&&y.charAt(A-F.length-1)!=='"'&&(de.add({kind:_n.Property,label:s.getLabelForValue(F),insertText:s.getInsertTextForProperty(F,null,!1,ke),insertTextFormat:on.Snippet,documentation:""}),de.setAsIncomplete())}var De={};return he?s.getValueCompletions(he,o,x,A,r,de,De):s.getSchemaLessValueCompletions(o,x,A,r,de),s.contributions.length>0&&s.getContributedValueCompletions(o,x,A,r,de,xe),s.promiseConstructor.all(xe).then(function(){if(de.getNumberOfProposals()===0){var Ve=A;x&&(x.type==="string"||x.type==="number"||x.type==="boolean"||x.type==="null")&&(Ve=x.offset+x.length);var Ke=s.evaluateSeparatorAfter(r,Ve);s.addFillerValueCompletions(De,Ke,de)}return d})})},t.prototype.getPropertyCompletions=function(r,i,o,s,d,y){var A=this,x=i.getMatchingSchemas(r.schema,o.offset);x.forEach(function(w){if(w.node===o&&!w.inverted){var F=w.schema.properties;F&&Object.keys(F).forEach(function(W){var re=F[W],ee=!1;if(typeof re=="object"&&re.allOf)for(var le=0,de=re.allOf;le<de.length;le++){var he=de[le];if(he.readOnly){ee=!0;break}}if(typeof re=="object"&&!re.deprecationMessage&&!re.doNotSuggest&&!ee){var xe={kind:_n.Property,label:A.sanitizeLabel(W),insertText:A.getInsertTextForProperty(W,re,s,d),insertTextFormat:on.Snippet,filterText:A.getFilterTextForValue(W),documentation:A.fromMarkup(re.markdownDescription)||re.description||""};Ed(xe.insertText,"$1"+d)&&(xe.command={title:"Suggest",command:"editor.action.triggerSuggest"}),y.add(xe)}})}})},t.prototype.getSchemaLessPropertyCompletions=function(r,i,o,s){var d=this,y=function(x){x.properties.forEach(function(w){var F=w.keyNode.value;s.add({kind:_n.Property,label:d.sanitizeLabel(F),insertText:d.getInsertTextForValue(F,""),insertTextFormat:on.Snippet,filterText:d.getFilterTextForValue(F),documentation:""})})};if(i.parent)if(i.parent.type==="property"){var A=i.parent.keyNode.value;r.visit(function(x){return x.type==="property"&&x!==i.parent&&x.keyNode.value===A&&x.valueNode&&x.valueNode.type==="object"&&y(x.valueNode),!0})}else i.parent.type==="array"&&i.parent.items.forEach(function(x){x.type==="object"&&x!==i&&y(x)});else i.type==="object"&&s.add({kind:_n.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",null,!0,""),insertTextFormat:on.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})},t.prototype.getSchemaLessValueCompletions=function(r,i,o,s,d){var y=this,A=o;if(i&&(i.type==="string"||i.type==="number"||i.type==="boolean"||i.type==="null")&&(A=i.offset+i.length,i=i.parent),!i){d.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:on.Snippet,documentation:""}),d.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:on.Snippet,documentation:""});return}var x=this.evaluateSeparatorAfter(s,A),w=function(ee){dh(ee.parent,o,!0)||d.add({kind:y.getSuggestionKind(ee.type),label:y.getLabelTextForMatchingNode(ee,s),insertText:y.getInsertTextForMatchingNode(ee,s,x),insertTextFormat:on.Snippet,documentation:""}),ee.type==="boolean"&&y.addBooleanValueCompletion(!ee.value,x,d)};if(i.type==="property"&&o>i.colonOffset){var F=i.valueNode;if(F&&(o>F.offset+F.length||F.type==="object"||F.type==="array"))return;var W=i.keyNode.value;r.visit(function(ee){return ee.type==="property"&&ee.keyNode.value===W&&ee.valueNode&&w(ee.valueNode),!0}),W==="$schema"&&i.parent&&!i.parent.parent&&this.addDollarSchemaCompletions(x,d)}if(i.type==="array")if(i.parent&&i.parent.type==="property"){var re=i.parent.keyNode.value;r.visit(function(ee){return ee.type==="property"&&ee.keyNode.value===re&&ee.valueNode&&ee.valueNode.type==="array"&&ee.valueNode.items.forEach(w),!0})}else i.items.forEach(w)},t.prototype.getValueCompletions=function(r,i,o,s,d,y,A){var x=this,w=s,F=null,W=null;if(o&&(o.type==="string"||o.type==="number"||o.type==="boolean"||o.type==="null")&&(w=o.offset+o.length,W=o,o=o.parent),!o){this.addSchemaValueCompletions(r.schema,"",y,A);return}if(o.type==="property"&&s>o.colonOffset){var re=o.valueNode;if(re&&s>re.offset+re.length)return;F=o.keyNode.value,o=o.parent}if(o&&(F!==null||o.type==="array")){var ee=this.evaluateSeparatorAfter(d,w),le=i.getMatchingSchemas(r.schema,o.offset,W);le.forEach(function(de){if(de.node===o&&!de.inverted&&de.schema){if(o.type==="array"&&de.schema.items)if(Array.isArray(de.schema.items)){var he=x.findItemAtOffset(o,d,s);he<de.schema.items.length&&x.addSchemaValueCompletions(de.schema.items[he],ee,y,A)}else x.addSchemaValueCompletions(de.schema.items,ee,y,A);if(de.schema.properties){var xe=de.schema.properties[F];xe&&x.addSchemaValueCompletions(xe,ee,y,A)}}}),F==="$schema"&&!o.parent&&this.addDollarSchemaCompletions(ee,y),A.boolean&&(this.addBooleanValueCompletion(!0,ee,y),this.addBooleanValueCompletion(!1,ee,y)),A.null&&this.addNullValueCompletion(ee,y)}},t.prototype.getContributedValueCompletions=function(r,i,o,s,d,y){if(!i)this.contributions.forEach(function(F){var W=F.collectDefaultCompletions(s.uri,d);W&&y.push(W)});else if((i.type==="string"||i.type==="number"||i.type==="boolean"||i.type==="null")&&(i=i.parent),i.type==="property"&&o>i.colonOffset){var A=i.keyNode.value,x=i.valueNode;if(!x||o<=x.offset+x.length){var w=wd(i.parent);this.contributions.forEach(function(F){var W=F.collectValueCompletions(s.uri,w,A,d);W&&y.push(W)})}}},t.prototype.addSchemaValueCompletions=function(r,i,o,s){var d=this;typeof r=="object"&&(this.addEnumValueCompletions(r,i,o),this.addDefaultValueCompletions(r,i,o),this.collectTypes(r,s),Array.isArray(r.allOf)&&r.allOf.forEach(function(y){return d.addSchemaValueCompletions(y,i,o,s)}),Array.isArray(r.anyOf)&&r.anyOf.forEach(function(y){return d.addSchemaValueCompletions(y,i,o,s)}),Array.isArray(r.oneOf)&&r.oneOf.forEach(function(y){return d.addSchemaValueCompletions(y,i,o,s)}))},t.prototype.addDefaultValueCompletions=function(r,i,o,s){var d=this;s===void 0&&(s=0);var y=!1;if(pa(r.default)){for(var A=r.type,x=r.default,w=s;w>0;w--)x=[x],A="array";o.add({kind:this.getSuggestionKind(A),label:this.getLabelForValue(x),insertText:this.getInsertTextForValue(x,i),insertTextFormat:on.Snippet}),y=!0}Array.isArray(r.examples)&&r.examples.forEach(function(F){for(var W=r.type,re=F,ee=s;ee>0;ee--)re=[re],W="array";o.add({kind:d.getSuggestionKind(W),label:d.getLabelForValue(re),insertText:d.getInsertTextForValue(re,i),insertTextFormat:on.Snippet}),y=!0}),Array.isArray(r.defaultSnippets)&&r.defaultSnippets.forEach(function(F){var W=r.type,re=F.body,ee=F.label,le,de;if(pa(re)){for(var he=r.type,xe=s;xe>0;xe--)re=[re],he="array";le=d.getInsertTextForSnippetValue(re,i),de=d.getFilterTextForSnippetValue(re),ee=ee||d.getLabelForSnippetValue(re)}else if(typeof F.bodyText=="string"){for(var ve="",we="",Ne="",xe=s;xe>0;xe--)ve=ve+Ne+`[
373
373
  `,we=we+`
374
- `+Ne+"]",Ne+=" ",H="array";se=ve+Ne+F.bodyText.split(`
374
+ `+Ne+"]",Ne+=" ",W="array";le=ve+Ne+F.bodyText.split(`
375
375
  `).join(`
376
- `+Ne)+we+i,ee=ee||d.sanitizeLabel(se),de=se.replace(/[\n]/g,"")}o.add({kind:d.getSuggestionKind(H),label:ee,documentation:d.fromMarkup(F.markdownDescription)||F.description,insertText:se,insertTextFormat:on.Snippet,filterText:de}),g=!0}),!g&&typeof r.items=="object"&&!Array.isArray(r.items)&&this.addDefaultValueCompletions(r.items,i,o,s+1)},t.prototype.addEnumValueCompletions=function(r,i,o){if(pa(r.const)&&o.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(r.const),insertText:this.getInsertTextForValue(r.const,i),insertTextFormat:on.Snippet,documentation:this.fromMarkup(r.markdownDescription)||r.description}),Array.isArray(r.enum))for(var s=0,d=r.enum.length;s<d;s++){var g=r.enum[s],A=this.fromMarkup(r.markdownDescription)||r.description;r.markdownEnumDescriptions&&s<r.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?A=this.fromMarkup(r.markdownEnumDescriptions[s]):r.enumDescriptions&&s<r.enumDescriptions.length&&(A=r.enumDescriptions[s]),o.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(g),insertText:this.getInsertTextForValue(g,i),insertTextFormat:on.Snippet,documentation:A})}},t.prototype.collectTypes=function(r,i){if(!(Array.isArray(r.enum)||pa(r.const))){var o=r.type;Array.isArray(o)?o.forEach(function(s){return i[s]=!0}):i[o]=!0}},t.prototype.addFillerValueCompletions=function(r,i,o){r.object&&o.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},i),insertTextFormat:on.Snippet,detail:"New object",documentation:""}),r.array&&o.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],i),insertTextFormat:on.Snippet,detail:"New array",documentation:""})},t.prototype.addBooleanValueCompletion=function(r,i,o){o.add({kind:this.getSuggestionKind("boolean"),label:r?"true":"false",insertText:this.getInsertTextForValue(r,i),insertTextFormat:on.Snippet,documentation:""})},t.prototype.addNullValueCompletion=function(r,i){i.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+r,insertTextFormat:on.Snippet,documentation:""})},t.prototype.addDollarSchemaCompletions=function(r,i){var o=this,s=this.schemaService.getRegisteredSchemaIds(function(d){return d==="http"||d==="https"});s.forEach(function(d){return i.add({kind:_n.Module,label:o.getLabelForValue(d),filterText:o.getFilterTextForValue(d),insertText:o.getInsertTextForValue(d,r),insertTextFormat:on.Snippet,documentation:""})})},t.prototype.sanitizeLabel=function(r){return r=r.replace(/[\n]/g,"\u21B5"),r.length>57&&(r=r.substr(0,57).trim()+"..."),r},t.prototype.getLabelForValue=function(r){return this.sanitizeLabel(JSON.stringify(r))},t.prototype.getFilterTextForValue=function(r){return JSON.stringify(r)},t.prototype.getFilterTextForSnippetValue=function(r){return JSON.stringify(r).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},t.prototype.getLabelForSnippetValue=function(r){var i=JSON.stringify(r);return i=i.replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1"),this.sanitizeLabel(i)},t.prototype.getInsertTextForPlainText=function(r){return r.replace(/[\\\$\}]/g,"\\$&")},t.prototype.getInsertTextForValue=function(r,i){var o=JSON.stringify(r,null," ");return o==="{}"?"{$1}"+i:o==="[]"?"[$1]"+i:this.getInsertTextForPlainText(o+i)},t.prototype.getInsertTextForSnippetValue=function(r,i){var o=function(s){return typeof s=="string"&&s[0]==="^"?s.substr(1):JSON.stringify(s)};return Cd(r,"",o)+i},t.prototype.getInsertTextForGuessedValue=function(r,i){switch(typeof r){case"object":return r===null?"${1:null}"+i:this.getInsertTextForValue(r,i);case"string":var o=JSON.stringify(r);return o=o.substr(1,o.length-2),o=this.getInsertTextForPlainText(o),'"${1:'+o+'}"'+i;case"number":case"boolean":return"${1:"+JSON.stringify(r)+"}"+i}return this.getInsertTextForValue(r,i)},t.prototype.getSuggestionKind=function(r){if(Array.isArray(r)){var i=r;r=i.length>0?i[0]:null}if(!r)return _n.Value;switch(r){case"string":return _n.Value;case"object":return _n.Module;case"property":return _n.Property;default:return _n.Value}},t.prototype.getLabelTextForMatchingNode=function(r,i){switch(r.type){case"array":return"[]";case"object":return"{}";default:var o=i.getText().substr(r.offset,r.length);return o}},t.prototype.getInsertTextForMatchingNode=function(r,i,o){switch(r.type){case"array":return this.getInsertTextForValue([],o);case"object":return this.getInsertTextForValue({},o);default:var s=i.getText().substr(r.offset,r.length)+o;return this.getInsertTextForPlainText(s)}},t.prototype.getInsertTextForProperty=function(r,i,o,s){var d=this.getInsertTextForValue(r,"");if(!o)return d;var g=d+": ",A,x=0;if(i){if(Array.isArray(i.defaultSnippets)){if(i.defaultSnippets.length===1){var w=i.defaultSnippets[0].body;pa(w)&&(A=this.getInsertTextForSnippetValue(w,""))}x+=i.defaultSnippets.length}if(i.enum&&(!A&&i.enum.length===1&&(A=this.getInsertTextForGuessedValue(i.enum[0],"")),x+=i.enum.length),pa(i.default)&&(A||(A=this.getInsertTextForGuessedValue(i.default,"")),x++),x===0){var F=Array.isArray(i.type)?i.type[0]:i.type;switch(F||(i.properties?F="object":i.items&&(F="array")),F){case"boolean":A="$1";break;case"string":A='"$1"';break;case"object":A="{$1}";break;case"array":A="[$1]";break;case"number":case"integer":A="${1:0}";break;case"null":A="${1:null}";break;default:return d}}}return(!A||x>1)&&(A="$1"),g+A+s},t.prototype.getCurrentWord=function(r,i){for(var o=i-1,s=r.getText();o>=0&&`
377
- \r\v":{[,]}`.indexOf(s.charAt(o))===-1;)o--;return s.substring(o+1,i)},t.prototype.evaluateSeparatorAfter=function(r,i){var o=Es(r.getText(),!0);o.setPosition(i);var s=o.scan();switch(s){case 5:case 2:case 4:case 17:return"";default:return","}},t.prototype.findItemAtOffset=function(r,i,o){for(var s=Es(i.getText(),!0),d=r.items,g=d.length-1;g>=0;g--){var A=d[g];if(o>A.offset+A.length){s.setPosition(A.offset+A.length);var x=s.scan();return x===5&&o>=s.getTokenOffset()+s.getTokenLength()?g+1:g}else if(o>=A.offset)return g}return 0},t.prototype.isInComment=function(r,i,o){var s=Es(r.getText(),!1);s.setPosition(i);for(var d=s.scan();d!==17&&s.getTokenOffset()+s.getTokenLength()<o;)d=s.scan();return(d===12||d===13)&&s.getTokenOffset()<=o},t.prototype.fromMarkup=function(r){if(r&&this.doesSupportMarkdown())return{kind:va.Markdown,value:r}},t.prototype.doesSupportMarkdown=function(){if(!pa(this.supportsMarkdown)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsMarkdown=r&&r.completionItem&&Array.isArray(r.completionItem.documentationFormat)&&r.completionItem.documentationFormat.indexOf(va.Markdown)!==-1}return this.supportsMarkdown},t.prototype.doesSupportsCommitCharacters=function(){if(!pa(this.supportsCommitCharacters)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsCommitCharacters=r&&r.completionItem&&!!r.completionItem.commitCharactersSupport}return this.supportsCommitCharacters},t}(),ry=function(){function t(r,i,o){i===void 0&&(i=[]),this.schemaService=r,this.contributions=i,this.promise=o||Promise}return t.prototype.doHover=function(r,i,o){var s=r.offsetAt(i),d=o.getNodeFromOffset(s);if(!d||(d.type==="object"||d.type==="array")&&s>d.offset+1&&s<d.offset+d.length-1)return this.promise.resolve(null);var g=d;if(d.type==="string"){var A=d.parent;if(A&&A.type==="property"&&A.keyNode===d&&(d=A.valueNode,!d))return this.promise.resolve(null)}for(var x=dr.create(r.positionAt(g.offset),r.positionAt(g.offset+g.length)),w=function(se){var de={contents:se,range:x};return de},F=wd(d),H=this.contributions.length-1;H>=0;H--){var re=this.contributions[H],ee=re.getInfoContribution(r.uri,F);if(ee)return ee.then(function(se){return w(se)})}return this.schemaService.getSchemaForResource(r.uri,o).then(function(se){if(se){var de=o.getMatchingSchemas(se.schema,d.offset),pe=null,xe=null,ve=null,we=null;de.every(function(Fe){if(Fe.node===d&&!Fe.inverted&&Fe.schema&&(pe=pe||Fe.schema.title,xe=xe||Fe.schema.markdownDescription||Od(Fe.schema.description),Fe.schema.enum)){var je=Fe.schema.enum.indexOf(ja(d));Fe.schema.markdownEnumDescriptions?ve=Fe.schema.markdownEnumDescriptions[je]:Fe.schema.enumDescriptions&&(ve=Od(Fe.schema.enumDescriptions[je])),ve&&(we=Fe.schema.enum[je],typeof we!="string"&&(we=JSON.stringify(we)))}return!0});var Ne="";return pe&&(Ne=Od(pe)),xe&&(Ne.length>0&&(Ne+=`
376
+ `+Ne)+we+i,ee=ee||d.sanitizeLabel(le),de=le.replace(/[\n]/g,"")}o.add({kind:d.getSuggestionKind(W),label:ee,documentation:d.fromMarkup(F.markdownDescription)||F.description,insertText:le,insertTextFormat:on.Snippet,filterText:de}),y=!0}),!y&&typeof r.items=="object"&&!Array.isArray(r.items)&&this.addDefaultValueCompletions(r.items,i,o,s+1)},t.prototype.addEnumValueCompletions=function(r,i,o){if(pa(r.const)&&o.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(r.const),insertText:this.getInsertTextForValue(r.const,i),insertTextFormat:on.Snippet,documentation:this.fromMarkup(r.markdownDescription)||r.description}),Array.isArray(r.enum))for(var s=0,d=r.enum.length;s<d;s++){var y=r.enum[s],A=this.fromMarkup(r.markdownDescription)||r.description;r.markdownEnumDescriptions&&s<r.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?A=this.fromMarkup(r.markdownEnumDescriptions[s]):r.enumDescriptions&&s<r.enumDescriptions.length&&(A=r.enumDescriptions[s]),o.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(y),insertText:this.getInsertTextForValue(y,i),insertTextFormat:on.Snippet,documentation:A})}},t.prototype.collectTypes=function(r,i){if(!(Array.isArray(r.enum)||pa(r.const))){var o=r.type;Array.isArray(o)?o.forEach(function(s){return i[s]=!0}):i[o]=!0}},t.prototype.addFillerValueCompletions=function(r,i,o){r.object&&o.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},i),insertTextFormat:on.Snippet,detail:"New object",documentation:""}),r.array&&o.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],i),insertTextFormat:on.Snippet,detail:"New array",documentation:""})},t.prototype.addBooleanValueCompletion=function(r,i,o){o.add({kind:this.getSuggestionKind("boolean"),label:r?"true":"false",insertText:this.getInsertTextForValue(r,i),insertTextFormat:on.Snippet,documentation:""})},t.prototype.addNullValueCompletion=function(r,i){i.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+r,insertTextFormat:on.Snippet,documentation:""})},t.prototype.addDollarSchemaCompletions=function(r,i){var o=this,s=this.schemaService.getRegisteredSchemaIds(function(d){return d==="http"||d==="https"});s.forEach(function(d){return i.add({kind:_n.Module,label:o.getLabelForValue(d),filterText:o.getFilterTextForValue(d),insertText:o.getInsertTextForValue(d,r),insertTextFormat:on.Snippet,documentation:""})})},t.prototype.sanitizeLabel=function(r){return r=r.replace(/[\n]/g,"\u21B5"),r.length>57&&(r=r.substr(0,57).trim()+"..."),r},t.prototype.getLabelForValue=function(r){return this.sanitizeLabel(JSON.stringify(r))},t.prototype.getFilterTextForValue=function(r){return JSON.stringify(r)},t.prototype.getFilterTextForSnippetValue=function(r){return JSON.stringify(r).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},t.prototype.getLabelForSnippetValue=function(r){var i=JSON.stringify(r);return i=i.replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1"),this.sanitizeLabel(i)},t.prototype.getInsertTextForPlainText=function(r){return r.replace(/[\\\$\}]/g,"\\$&")},t.prototype.getInsertTextForValue=function(r,i){var o=JSON.stringify(r,null," ");return o==="{}"?"{$1}"+i:o==="[]"?"[$1]"+i:this.getInsertTextForPlainText(o+i)},t.prototype.getInsertTextForSnippetValue=function(r,i){var o=function(s){return typeof s=="string"&&s[0]==="^"?s.substr(1):JSON.stringify(s)};return Cd(r,"",o)+i},t.prototype.getInsertTextForGuessedValue=function(r,i){switch(typeof r){case"object":return r===null?"${1:null}"+i:this.getInsertTextForValue(r,i);case"string":var o=JSON.stringify(r);return o=o.substr(1,o.length-2),o=this.getInsertTextForPlainText(o),'"${1:'+o+'}"'+i;case"number":case"boolean":return"${1:"+JSON.stringify(r)+"}"+i}return this.getInsertTextForValue(r,i)},t.prototype.getSuggestionKind=function(r){if(Array.isArray(r)){var i=r;r=i.length>0?i[0]:null}if(!r)return _n.Value;switch(r){case"string":return _n.Value;case"object":return _n.Module;case"property":return _n.Property;default:return _n.Value}},t.prototype.getLabelTextForMatchingNode=function(r,i){switch(r.type){case"array":return"[]";case"object":return"{}";default:var o=i.getText().substr(r.offset,r.length);return o}},t.prototype.getInsertTextForMatchingNode=function(r,i,o){switch(r.type){case"array":return this.getInsertTextForValue([],o);case"object":return this.getInsertTextForValue({},o);default:var s=i.getText().substr(r.offset,r.length)+o;return this.getInsertTextForPlainText(s)}},t.prototype.getInsertTextForProperty=function(r,i,o,s){var d=this.getInsertTextForValue(r,"");if(!o)return d;var y=d+": ",A,x=0;if(i){if(Array.isArray(i.defaultSnippets)){if(i.defaultSnippets.length===1){var w=i.defaultSnippets[0].body;pa(w)&&(A=this.getInsertTextForSnippetValue(w,""))}x+=i.defaultSnippets.length}if(i.enum&&(!A&&i.enum.length===1&&(A=this.getInsertTextForGuessedValue(i.enum[0],"")),x+=i.enum.length),pa(i.default)&&(A||(A=this.getInsertTextForGuessedValue(i.default,"")),x++),x===0){var F=Array.isArray(i.type)?i.type[0]:i.type;switch(F||(i.properties?F="object":i.items&&(F="array")),F){case"boolean":A="$1";break;case"string":A='"$1"';break;case"object":A="{$1}";break;case"array":A="[$1]";break;case"number":case"integer":A="${1:0}";break;case"null":A="${1:null}";break;default:return d}}}return(!A||x>1)&&(A="$1"),y+A+s},t.prototype.getCurrentWord=function(r,i){for(var o=i-1,s=r.getText();o>=0&&`
377
+ \r\v":{[,]}`.indexOf(s.charAt(o))===-1;)o--;return s.substring(o+1,i)},t.prototype.evaluateSeparatorAfter=function(r,i){var o=Es(r.getText(),!0);o.setPosition(i);var s=o.scan();switch(s){case 5:case 2:case 4:case 17:return"";default:return","}},t.prototype.findItemAtOffset=function(r,i,o){for(var s=Es(i.getText(),!0),d=r.items,y=d.length-1;y>=0;y--){var A=d[y];if(o>A.offset+A.length){s.setPosition(A.offset+A.length);var x=s.scan();return x===5&&o>=s.getTokenOffset()+s.getTokenLength()?y+1:y}else if(o>=A.offset)return y}return 0},t.prototype.isInComment=function(r,i,o){var s=Es(r.getText(),!1);s.setPosition(i);for(var d=s.scan();d!==17&&s.getTokenOffset()+s.getTokenLength()<o;)d=s.scan();return(d===12||d===13)&&s.getTokenOffset()<=o},t.prototype.fromMarkup=function(r){if(r&&this.doesSupportMarkdown())return{kind:va.Markdown,value:r}},t.prototype.doesSupportMarkdown=function(){if(!pa(this.supportsMarkdown)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsMarkdown=r&&r.completionItem&&Array.isArray(r.completionItem.documentationFormat)&&r.completionItem.documentationFormat.indexOf(va.Markdown)!==-1}return this.supportsMarkdown},t.prototype.doesSupportsCommitCharacters=function(){if(!pa(this.supportsCommitCharacters)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsCommitCharacters=r&&r.completionItem&&!!r.completionItem.commitCharactersSupport}return this.supportsCommitCharacters},t}(),ry=function(){function t(r,i,o){i===void 0&&(i=[]),this.schemaService=r,this.contributions=i,this.promise=o||Promise}return t.prototype.doHover=function(r,i,o){var s=r.offsetAt(i),d=o.getNodeFromOffset(s);if(!d||(d.type==="object"||d.type==="array")&&s>d.offset+1&&s<d.offset+d.length-1)return this.promise.resolve(null);var y=d;if(d.type==="string"){var A=d.parent;if(A&&A.type==="property"&&A.keyNode===d&&(d=A.valueNode,!d))return this.promise.resolve(null)}for(var x=pr.create(r.positionAt(y.offset),r.positionAt(y.offset+y.length)),w=function(le){var de={contents:le,range:x};return de},F=wd(d),W=this.contributions.length-1;W>=0;W--){var re=this.contributions[W],ee=re.getInfoContribution(r.uri,F);if(ee)return ee.then(function(le){return w(le)})}return this.schemaService.getSchemaForResource(r.uri,o).then(function(le){if(le){var de=o.getMatchingSchemas(le.schema,d.offset),he=null,xe=null,ve=null,we=null;de.every(function(Fe){if(Fe.node===d&&!Fe.inverted&&Fe.schema&&(he=he||Fe.schema.title,xe=xe||Fe.schema.markdownDescription||Od(Fe.schema.description),Fe.schema.enum)){var je=Fe.schema.enum.indexOf(ja(d));Fe.schema.markdownEnumDescriptions?ve=Fe.schema.markdownEnumDescriptions[je]:Fe.schema.enumDescriptions&&(ve=Od(Fe.schema.enumDescriptions[je])),ve&&(we=Fe.schema.enum[je],typeof we!="string"&&(we=JSON.stringify(we)))}return!0});var Ne="";return he&&(Ne=Od(he)),xe&&(Ne.length>0&&(Ne+=`
378
378
 
379
379
  `),Ne+=xe),ve&&(Ne.length>0&&(Ne+=`
380
380
 
381
381
  `),Ne+="`"+ny(we)+"`: "+ve),w([Ne])}return null})},t}();function Od(t){if(t){var r=t.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1
382
382
 
383
- $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function ny(t){return t.indexOf("`")!==-1?"`` "+t+" ``":t}var iy=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,s){o.__proto__=s}||function(o,s){for(var d in s)s.hasOwnProperty(d)&&(o[d]=s[d])},t(r,i)};return function(r,i){t(r,i);function o(){this.constructor=r}r.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}}(),Jr,Zl;if(typeof process=="object")Zl=!1;else if(typeof navigator=="object"){var ay=navigator.userAgent;Zl=ay.indexOf("Windows")>=0}function d0(t){return 55296<=t&&t<=56319}function p0(t){return 56320<=t&&t<=57343}function h0(t){return t>=97&&t<=102}function oy(t){return t>=97&&t<=122}function sy(t){return t>=65&&t<=90}function v0(t){return oy(t)||sy(t)}var ly=/^\w[\w\d+.-]*$/,uy=/^\//,fy=/^\/\//;function cy(t,r){if(!t.scheme&&r)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+t.authority+'", path: "'+t.path+'", query: "'+t.query+'", fragment: "'+t.fragment+'"}');if(t.scheme&&!ly.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!uy.test(t.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(fy.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function dy(t,r){return!t&&!r?"file":t}function py(t,r){switch(t){case"https":case"http":case"file":r?r[0]!==wi&&(r=wi+r):r=wi;break}return r}var xr="",wi="/",hy=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,Td=function(){function t(r,i,o,s,d,g){g===void 0&&(g=!1),typeof r=="object"?(this.scheme=r.scheme||xr,this.authority=r.authority||xr,this.path=r.path||xr,this.query=r.query||xr,this.fragment=r.fragment||xr):(this.scheme=dy(r,g),this.authority=i||xr,this.path=py(this.scheme,o||xr),this.query=s||xr,this.fragment=d||xr,cy(this,g))}return t.isUri=function(r){return r instanceof t?!0:r?typeof r.authority=="string"&&typeof r.fragment=="string"&&typeof r.path=="string"&&typeof r.query=="string"&&typeof r.scheme=="string"&&typeof r.fsPath=="function"&&typeof r.with=="function"&&typeof r.toString=="function":!1},Object.defineProperty(t.prototype,"fsPath",{get:function(){return yh(this,!1)},enumerable:!0,configurable:!0}),t.prototype.with=function(r){if(!r)return this;var i=r.scheme,o=r.authority,s=r.path,d=r.query,g=r.fragment;return i===void 0?i=this.scheme:i===null&&(i=xr),o===void 0?o=this.authority:o===null&&(o=xr),s===void 0?s=this.path:s===null&&(s=xr),d===void 0?d=this.query:d===null&&(d=xr),g===void 0?g=this.fragment:g===null&&(g=xr),i===this.scheme&&o===this.authority&&s===this.path&&d===this.query&&g===this.fragment?this:new Ts(i,o,s,d,g)},t.parse=function(r,i){i===void 0&&(i=!1);var o=hy.exec(r);return o?new Ts(o[2]||xr,zf(o[4]||xr),zf(o[5]||xr),zf(o[7]||xr),zf(o[9]||xr),i):new Ts(xr,xr,xr,xr,xr)},t.file=function(r){var i=xr;if(Zl&&(r=r.replace(/\\/g,wi)),r[0]===wi&&r[1]===wi){var o=r.indexOf(wi,2);o===-1?(i=r.substring(2),r=wi):(i=r.substring(2,o),r=r.substring(o)||wi)}return new Ts("file",i,r,xr,xr)},t.from=function(r){return new Ts(r.scheme,r.authority,r.path,r.query,r.fragment)},t.prototype.toString=function(r){return r===void 0&&(r=!1),Pd(this,r)},t.prototype.toJSON=function(){return this},t.revive=function(r){if(r){if(r instanceof t)return r;var i=new Ts(r);return i._formatted=r.external,i._fsPath=r._sep===hh?r.fsPath:null,i}else return r},t}(),hh=Zl?1:void 0,Ts=function(t){iy(r,t);function r(){var i=t!==null&&t.apply(this,arguments)||this;return i._formatted=null,i._fsPath=null,i}return Object.defineProperty(r.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=yh(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),r.prototype.toString=function(i){return i===void 0&&(i=!1),i?Pd(this,!0):(this._formatted||(this._formatted=Pd(this,!1)),this._formatted)},r.prototype.toJSON=function(){var i={$mid:1};return this._fsPath&&(i.fsPath=this._fsPath,i._sep=hh),this._formatted&&(i.external=this._formatted),this.path&&(i.path=this.path),this.scheme&&(i.scheme=this.scheme),this.authority&&(i.authority=this.authority),this.query&&(i.query=this.query),this.fragment&&(i.fragment=this.fragment),i},r}(Td),vh=(Jr={},Jr[58]="%3A",Jr[47]="%2F",Jr[63]="%3F",Jr[35]="%23",Jr[91]="%5B",Jr[93]="%5D",Jr[64]="%40",Jr[33]="%21",Jr[36]="%24",Jr[38]="%26",Jr[39]="%27",Jr[40]="%28",Jr[41]="%29",Jr[42]="%2A",Jr[43]="%2B",Jr[44]="%2C",Jr[59]="%3B",Jr[61]="%3D",Jr[32]="%20",Jr);function gh(t,r){for(var i=void 0,o=-1,s=0;s<t.length;s++){var d=t.charCodeAt(s);if(d>=97&&d<=122||d>=65&&d<=90||d>=48&&d<=57||d===45||d===46||d===95||d===126||r&&d===47)o!==-1&&(i+=encodeURIComponent(t.substring(o,s)),o=-1),i!==void 0&&(i+=t.charAt(s));else{i===void 0&&(i=t.substr(0,s));var g=vh[d];g!==void 0?(o!==-1&&(i+=encodeURIComponent(t.substring(o,s)),o=-1),i+=g):o===-1&&(o=s)}}return o!==-1&&(i+=encodeURIComponent(t.substring(o))),i!==void 0?i:t}function vy(t){for(var r=void 0,i=0;i<t.length;i++){var o=t.charCodeAt(i);o===35||o===63?(r===void 0&&(r=t.substr(0,i)),r+=vh[o]):r!==void 0&&(r+=t[i])}return r!==void 0?r:t}function yh(t,r){var i;return t.authority&&t.path.length>1&&t.scheme==="file"?i="//"+t.authority+t.path:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?r?i=t.path.substr(1):i=t.path[1].toLowerCase()+t.path.substr(2):i=t.path,Zl&&(i=i.replace(/\//g,"\\")),i}function Pd(t,r){var i=r?vy:gh,o="",s=t.scheme,d=t.authority,g=t.path,A=t.query,x=t.fragment;if(s&&(o+=s,o+=":"),(d||s==="file")&&(o+=wi,o+=wi),d){var w=d.indexOf("@");if(w!==-1){var F=d.substr(0,w);d=d.substr(w+1),w=F.indexOf(":"),w===-1?o+=i(F,!1):(o+=i(F.substr(0,w),!1),o+=":",o+=i(F.substr(w+1),!1)),o+="@"}d=d.toLowerCase(),w=d.indexOf(":"),w===-1?o+=i(d,!1):(o+=i(d.substr(0,w),!1),o+=d.substr(w))}if(g){if(g.length>=3&&g.charCodeAt(0)===47&&g.charCodeAt(2)===58){var H=g.charCodeAt(1);H>=65&&H<=90&&(g="/"+String.fromCharCode(H+32)+":"+g.substr(3))}else if(g.length>=2&&g.charCodeAt(1)===58){var H=g.charCodeAt(0);H>=65&&H<=90&&(g=String.fromCharCode(H+32)+":"+g.substr(2))}o+=i(g,!0)}return A&&(o+="?",o+=i(A,!1)),x&&(o+="#",o+=r?x:gh(x,!1)),o}function mh(t){try{return decodeURIComponent(t)}catch(r){return t.length>3?t.substr(0,3)+mh(t.substr(3)):t}}var xh=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function zf(t){return t.match(xh)?t.replace(xh,function(r){return mh(r)}):t}var gy=function(){function t(r){try{this.patternRegExp=new RegExp(qg(r)+"$")}catch(i){this.patternRegExp=null}this.schemas=[]}return t.prototype.addSchema=function(r){this.schemas.push(r)},t.prototype.matchesPattern=function(r){return this.patternRegExp&&this.patternRegExp.test(r)},t.prototype.getSchemas=function(){return this.schemas},t}(),yy=function(){function t(r,i,o){this.service=r,this.url=i,this.dependencies={},o&&(this.unresolvedSchema=this.service.promise.resolve(new Ps(o)))}return t.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},t.prototype.getResolvedSchema=function(){var r=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then(function(i){return r.service.resolveSchemaContent(i,r.url,r.dependencies)})),this.resolvedSchema},t.prototype.clearSchema=function(){this.resolvedSchema=null,this.unresolvedSchema=null,this.dependencies={}},t}(),Ps=function(){function t(r,i){i===void 0&&(i=[]),this.schema=r,this.errors=i}return t}(),bh=function(){function t(r,i){i===void 0&&(i=[]),this.schema=r,this.errors=i}return t.prototype.getSection=function(r){return jn(this.getSectionRecursive(r,this.schema))},t.prototype.getSectionRecursive=function(r,i){if(!i||typeof i=="boolean"||r.length===0)return i;var o=r.shift();if(i.properties&&typeof i.properties[o])return this.getSectionRecursive(r,i.properties[o]);if(i.patternProperties)for(var s=0,d=Object.keys(i.patternProperties);s<d.length;s++){var g=d[s],A=new RegExp(g);if(A.test(o))return this.getSectionRecursive(r,i.patternProperties[g])}else{if(typeof i.additionalProperties=="object")return this.getSectionRecursive(r,i.additionalProperties);if(o.match("[0-9]+")){if(Array.isArray(i.items)){var x=parseInt(o,10);if(!isNaN(x)&&i.items[x])return this.getSectionRecursive(r,i.items[x])}else if(i.items)return this.getSectionRecursive(r,i.items)}}return null},t}(),my=function(){function t(r,i,o){this.contextService=i,this.requestService=r,this.promiseConstructor=o||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations={},this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={}}return t.prototype.getRegisteredSchemaIds=function(r){return Object.keys(this.registeredSchemasIds).filter(function(i){var o=Td.parse(i).scheme;return o!=="schemaservice"&&(!r||r(o))})},Object.defineProperty(t.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},t.prototype.onResourceChange=function(r){var i=this,o=!1;r=this.normalizeId(r);for(var s=[r],d=Object.keys(this.schemasById).map(function(w){return i.schemasById[w]});s.length;)for(var g=s.pop(),A=0;A<d.length;A++){var x=d[A];x&&(x.url===g||x.dependencies[g])&&(x.url!==g&&s.push(x.url),x.clearSchema(),d[A]=void 0,o=!0)}return o},t.prototype.normalizeId=function(r){try{return Td.parse(r).toString()}catch(i){return r}},t.prototype.setSchemaContributions=function(r){if(r.schemas){var i=r.schemas;for(var o in i){var s=this.normalizeId(o);this.contributionSchemas[s]=this.addSchemaHandle(s,i[o])}}if(r.schemaAssociations){var d=r.schemaAssociations;for(var g in d){var A=d[g];this.contributionAssociations[g]=A;for(var x=this.getOrAddFilePatternAssociation(g),w=0,F=A;w<F.length;w++){var H=F[w],o=this.normalizeId(H);x.addSchema(o)}}}},t.prototype.addSchemaHandle=function(r,i){var o=new yy(this,r,i);return this.schemasById[r]=o,o},t.prototype.getOrAddSchemaHandle=function(r,i){return this.schemasById[r]||this.addSchemaHandle(r,i)},t.prototype.getOrAddFilePatternAssociation=function(r){var i=this.filePatternAssociationById[r];return i||(i=new gy(r),this.filePatternAssociationById[r]=i,this.filePatternAssociations.push(i)),i},t.prototype.registerExternalSchema=function(r,i,o){i===void 0&&(i=null);var s=this.normalizeId(r);if(this.registeredSchemasIds[s]=!0,i)for(var d=0,g=i;d<g.length;d++){var A=g[d];this.getOrAddFilePatternAssociation(A).addSchema(s)}return o?this.addSchemaHandle(s,o):this.getOrAddSchemaHandle(s)},t.prototype.clearExternalSchemas=function(){this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={};for(var r in this.contributionSchemas)this.schemasById[r]=this.contributionSchemas[r],this.registeredSchemasIds[r]=!0;for(var i in this.contributionAssociations)for(var o=this.getOrAddFilePatternAssociation(i),s=0,d=this.contributionAssociations[i];s<d.length;s++){var g=d[s],r=this.normalizeId(g);o.addSchema(r)}},t.prototype.getResolvedSchema=function(r){var i=this.normalizeId(r),o=this.schemasById[i];return o?o.getResolvedSchema():this.promise.resolve(null)},t.prototype.loadSchema=function(r){if(!this.requestService){var i="Unable to load schema from '"+Gf(r)+"'. No schema request service available";return this.promise.resolve(new Ps({},[i]))}return this.requestService(r).then(function(o){if(!o){var s="Unable to load schema from '"+Gf(r)+"': No content.";return new Ps({},[s])}var d={},g=[];d=Rg(o,g);var A=g.length?["Unable to parse content from '"+Gf(r)+"': Parse error at offset "+g[0].offset]:[];return new Ps(d,A)},function(o){var s="Unable to load schema from '"+Gf(r)+"': "+o.toString();return new Ps({},[s])})},t.prototype.resolveSchemaContent=function(r,i,o){var s=this,d=r.errors.slice(0),g=r.schema;if(g.$schema){var A=this.normalizeId(g.$schema);if(A==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new bh({},["Draft-03 schemas are not supported."]));A==="https://json-schema.org/draft/2019-09/schema"&&r.errors.push("Draft 2019-09 schemas are not yet fully supported.")}var x=this.contextService,w=function(ee,se){if(!se)return ee;var de=ee;return se[0]==="/"&&(se=se.substr(1)),se.split("/").some(function(pe){return de=de[pe],!de}),de},F=function(ee,se,de,pe){var xe=w(se,pe);if(xe)for(var ve in xe)xe.hasOwnProperty(ve)&&!ee.hasOwnProperty(ve)&&(ee[ve]=xe[ve]);else d.push("$ref '"+pe+"' in '"+de+"' can not be resolved.")},H=function(ee,se,de,pe,xe){x&&!/^\w+:\/\/.*/.test(se)&&(se=x.resolveRelativePath(se,pe)),se=s.normalizeId(se);var ve=s.getOrAddSchemaHandle(se);return ve.getUnresolvedSchema().then(function(we){if(xe[se]=!0,we.errors.length){var Ne=de?se+"#"+de:se;d.push("Problems loading reference '"+Ne+"': "+we.errors[0]+".")}return F(ee,we.schema,se,de),re(ee,we.schema,se,ve.dependencies)})},re=function(ee,se,de,pe){if(!ee||typeof ee!="object")return Promise.resolve(null);for(var xe=[ee],ve=[],we=[],Ne=function(){for(var De=[],Ve=0;Ve<arguments.length;Ve++)De[Ve]=arguments[Ve];for(var Ke=0,Ze=De;Ke<Ze.length;Ke++){var _e=Ze[Ke];typeof _e=="object"&&xe.push(_e)}},Fe=function(){for(var De=[],Ve=0;Ve<arguments.length;Ve++)De[Ve]=arguments[Ve];for(var Ke=0,Ze=De;Ke<Ze.length;Ke++){var _e=Ze[Ke];if(typeof _e=="object")for(var bt in _e){var Rt=_e[bt];typeof Rt=="object"&&xe.push(Rt)}}},je=function(){for(var De=[],Ve=0;Ve<arguments.length;Ve++)De[Ve]=arguments[Ve];for(var Ke=0,Ze=De;Ke<Ze.length;Ke++){var _e=Ze[Ke];if(Array.isArray(_e))for(var bt=0,Rt=_e;bt<Rt.length;bt++){var or=Rt[bt];typeof or=="object"&&xe.push(or)}}},ke=function(De){for(var Ve=[];De.$ref;){var Ke=De.$ref,Ze=Ke.split("#",2);if(delete De.$ref,Ze[0].length>0){we.push(H(De,Ze[0],Ze[1],de,pe));return}else Ve.indexOf(Ke)===-1&&(F(De,se,de,Ze[1]),Ve.push(Ke))}Ne(De.items,De.additionalProperties,De.not,De.contains,De.propertyNames,De.if,De.then,De.else),Fe(De.definitions,De.properties,De.patternProperties,De.dependencies),je(De.anyOf,De.allOf,De.oneOf,De.items)};xe.length;){var Me=xe.pop();ve.indexOf(Me)>=0||(ve.push(Me),ke(Me))}return s.promise.all(we)};return re(g,g,i,o).then(function(ee){return new bh(g,d)})},t.prototype.getSchemaForResource=function(r,i){if(i&&i.root&&i.root.type==="object"){var o=i.root.properties.filter(function(se){return se.keyNode.value==="$schema"&&se.valueNode&&se.valueNode.type==="string"});if(o.length>0){var s=ja(o[0].valueNode);if(s&&Zg(s,".")&&this.contextService&&(s=this.contextService.resolveRelativePath(s,r)),s){var d=this.normalizeId(s);return this.getOrAddSchemaHandle(d).getResolvedSchema()}}}for(var g=Object.create(null),A=[],x=0,w=this.filePatternAssociations;x<w.length;x++){var F=w[x];if(F.matchesPattern(r))for(var H=0,re=F.getSchemas();H<re.length;H++){var ee=re[H];g[ee]||(A.push(ee),g[ee]=!0)}}return A.length>0?this.createCombinedSchema(r,A).getResolvedSchema():this.promise.resolve(null)},t.prototype.createCombinedSchema=function(r,i){if(i.length===1)return this.getOrAddSchemaHandle(i[0]);var o="schemaservice://combinedSchema/"+encodeURIComponent(r),s={allOf:i.map(function(d){return{$ref:d}})};return this.addSchemaHandle(o,s)},t}();function Gf(t){try{}catch(r){}return t}var xy=function(){function t(r,i){this.jsonSchemaService=r,this.promise=i,this.validationEnabled=!0}return t.prototype.configure=function(r){r&&(this.validationEnabled=r.validate,this.commentSeverity=r.allowComments?void 0:Ht.Error)},t.prototype.doValidation=function(r,i,o,s){var d=this;if(!this.validationEnabled)return this.promise.resolve([]);var g=[],A={},x=function(H){var re=H.range.start.line+" "+H.range.start.character+" "+H.message;A[re]||(A[re]=!0,g.push(H))},w=function(H){var re=o?wh(o.trailingCommas):Ht.Error,ee=o?wh(o.comments):d.commentSeverity;if(H){if(H.errors.length&&i.root){var se=i.root,de=se.type==="object"?se.properties[0]:null;if(de&&de.keyNode.value==="$schema"){var pe=de.valueNode||de,xe=dr.create(r.positionAt(pe.offset),r.positionAt(pe.offset+pe.length));x(ha.create(xe,H.errors[0],Ht.Warning,rr.SchemaResolveError))}else{var xe=dr.create(r.positionAt(se.offset),r.positionAt(se.offset+1));x(ha.create(xe,H.errors[0],Ht.Warning,rr.SchemaResolveError))}}else{var ve=i.validate(r,H.schema);ve&&ve.forEach(x)}Sh(H.schema)&&(ee=void 0),Ah(H.schema)&&(re=void 0)}for(var we=0,Ne=i.syntaxErrors;we<Ne.length;we++){var Fe=Ne[we];if(Fe.code===rr.TrailingComma){if(typeof re!="number")continue;Fe.severity=re}x(Fe)}if(typeof ee=="number"){var je="Comments are not permitted in JSON.";i.comments.forEach(function(ke){x(ha.create(ke,je,ee,rr.CommentNotPermitted))})}return g};if(s){var F=s.id||"schemaservice://untitled/"+by++;return this.jsonSchemaService.resolveSchemaContent(new Ps(s),F,{}).then(function(H){return w(H)})}return this.jsonSchemaService.getSchemaForResource(r.uri,i).then(function(H){return w(H)})},t}(),by=0;function Sh(t){if(t&&typeof t=="object"){if(Wi(t.allowComments))return t.allowComments;if(t.allOf)for(var r=0,i=t.allOf;r<i.length;r++){var o=i[r],s=Sh(o);if(Wi(s))return s}}}function Ah(t){if(t&&typeof t=="object"){if(Wi(t.allowTrailingCommas))return t.allowTrailingCommas;if(Wi(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(t.allOf)for(var r=0,i=t.allOf;r<i.length;r++){var o=i[r],s=Ah(o);if(Wi(s))return s}}}function wh(t){switch(t){case"error":return Ht.Error;case"warning":return Ht.Warning;case"ignore":return}}var Ch=48,Sy=57,Ay=65,$f=97,wy=102;function Xr(t){return t<Ch?0:t<=Sy?t-Ch:(t<$f&&(t+=$f-Ay),t>=$f&&t<=wy?t-$f+10:0)}function Cy(t){if(t[0]!=="#")return null;switch(t.length){case 4:return{red:Xr(t.charCodeAt(1))*17/255,green:Xr(t.charCodeAt(2))*17/255,blue:Xr(t.charCodeAt(3))*17/255,alpha:1};case 5:return{red:Xr(t.charCodeAt(1))*17/255,green:Xr(t.charCodeAt(2))*17/255,blue:Xr(t.charCodeAt(3))*17/255,alpha:Xr(t.charCodeAt(4))*17/255};case 7:return{red:(Xr(t.charCodeAt(1))*16+Xr(t.charCodeAt(2)))/255,green:(Xr(t.charCodeAt(3))*16+Xr(t.charCodeAt(4)))/255,blue:(Xr(t.charCodeAt(5))*16+Xr(t.charCodeAt(6)))/255,alpha:1};case 9:return{red:(Xr(t.charCodeAt(1))*16+Xr(t.charCodeAt(2)))/255,green:(Xr(t.charCodeAt(3))*16+Xr(t.charCodeAt(4)))/255,blue:(Xr(t.charCodeAt(5))*16+Xr(t.charCodeAt(6)))/255,alpha:(Xr(t.charCodeAt(7))*16+Xr(t.charCodeAt(8)))/255}}return null}function g0(t,r,i,o){return o===void 0&&(o=1),{red:t/255,green:r/255,blue:i/255,alpha:o}}var Ey=function(){function t(r){this.schemaService=r}return t.prototype.findDocumentSymbols=function(r,i,o){var s=this;o===void 0&&(o={resultLimit:Number.MAX_VALUE});var d=i.root;if(!d)return null;var g=o.resultLimit,A=r.uri;if((A==="vscode://defaultsettings/keybindings.json"||Ed(A.toLowerCase(),"/user/keybindings.json"))&&d.type==="array"){for(var x=[],w=0,F=d.items;w<F.length;w++){var H=F[w];if(H.type==="object")for(var re=0,ee=H.properties;re<ee.length;re++){var se=ee[re];if(se.keyNode.value==="key"&&se.valueNode){var de=$l.create(r.uri,Ua(r,H));if(x.push({name:ja(se.valueNode),kind:Hi.Function,location:de}),g--,g<=0)return o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(A),x}}}return x}var pe=function(ve,we,Ne){return g>=0&&(we.type==="array"?we.items.forEach(function(Fe){return pe(ve,Fe,Ne)}):we.type==="object"&&we.properties.forEach(function(Fe){if(g>=0){var je=Fe.valueNode;if(je){g--;var ke=$l.create(r.uri,Ua(r,Fe)),Me=Ne?Ne+"."+Fe.keyNode.value:Fe.keyNode.value;ve.push({name:s.getKeyLabel(Fe),kind:s.getSymbolKind(je.type),location:ke,containerName:Ne}),pe(ve,je,Me)}}})),ve},xe=pe([],d,void 0);return g<0&&(xe.pop(),o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(A)),xe},t.prototype.findDocumentSymbols2=function(r,i,o){var s=this;o===void 0&&(o={resultLimit:Number.MAX_VALUE});var d=i.root;if(!d)return null;var g=o.resultLimit,A=r.uri;if((A==="vscode://defaultsettings/keybindings.json"||Ed(A.toLowerCase(),"/user/keybindings.json"))&&d.type==="array"){for(var x=[],w=0,F=d.items;w<F.length;w++){var H=F[w];if(H.type==="object")for(var re=0,ee=H.properties;re<ee.length;re++){var se=ee[re];if(se.keyNode.value==="key"&&se.valueNode){var de=Ua(r,H),pe=Ua(r,se.keyNode);if(x.push({name:ja(se.valueNode),kind:Hi.Function,range:de,selectionRange:pe}),g--,g<=0)return o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(A),x}}}return x}var xe=function(we,Ne){return g>=0&&(Ne.type==="array"?Ne.items.forEach(function(Fe,je){if(Fe&&g>=0){g--;var ke=Ua(r,Fe),Me=ke,De=String(je),Ve=xe([],Fe);we.push({name:De,kind:s.getSymbolKind(Fe.type),range:ke,selectionRange:Me,children:Ve})}}):Ne.type==="object"&&Ne.properties.forEach(function(Fe){var je=Fe.valueNode;if(je&&g>=0){g--;var ke=Ua(r,Fe),Me=Ua(r,Fe.keyNode),De=xe([],je);we.push({name:s.getKeyLabel(Fe),kind:s.getSymbolKind(je.type),range:ke,selectionRange:Me,children:De})}})),we},ve=xe([],d);return g<0&&(ve.pop(),o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(A)),ve},t.prototype.getSymbolKind=function(r){switch(r){case"object":return Hi.Module;case"string":return Hi.String;case"number":return Hi.Number;case"array":return Hi.Array;case"boolean":return Hi.Boolean;default:return Hi.Variable}},t.prototype.getKeyLabel=function(r){var i=r.keyNode.value;return i&&(i=i.replace(/[\n]/g,"\u21B5")),i&&i.trim()?i:'"'+i+'"'},t.prototype.findDocumentColors=function(r,i,o){return this.schemaService.getSchemaForResource(r.uri,i).then(function(s){var d=[];if(s)for(var g=o&&typeof o.resultLimit=="number"?o.resultLimit:Number.MAX_VALUE,A=i.getMatchingSchemas(s.schema),x={},w=0,F=A;w<F.length;w++){var H=F[w];if(!H.inverted&&H.schema&&(H.schema.format==="color"||H.schema.format==="color-hex")&&H.node&&H.node.type==="string"){var re=String(H.node.offset);if(!x[re]){var ee=Cy(ja(H.node));if(ee){var se=Ua(r,H.node);d.push({color:ee,range:se})}if(x[re]=!0,g--,g<=0)return o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(r.uri),d}}}return d})},t.prototype.getColorPresentations=function(r,i,o,s){var d=[],g=Math.round(o.red*255),A=Math.round(o.green*255),x=Math.round(o.blue*255);function w(H){var re=H.toString(16);return re.length!==2?"0"+re:re}var F;return o.alpha===1?F="#"+w(g)+w(A)+w(x):F="#"+w(g)+w(A)+w(x)+w(Math.round(o.alpha*255)),d.push({label:F,textEdit:Ai.replace(s,JSON.stringify(F))}),d},t}();function Ua(t,r){return dr.create(t.positionAt(r.offset),t.positionAt(r.offset+r.length))}var Oy={schemaAssociations:{},schemas:{}};function Ty(t,r){var i=[],o=[],s=[],d=-1,g=Es(t.getText(),!1),A=g.scan();function x(Ve){i.push(Ve),o.push(s.length)}for(;A!==17;){switch(A){case 1:case 3:{var w=t.positionAt(g.getTokenOffset()).line,F={startLine:w,endLine:w,kind:A===1?"object":"array"};s.push(F);break}case 2:case 4:{var H=A===2?"object":"array";if(s.length>0&&s[s.length-1].kind===H){var F=s.pop(),re=t.positionAt(g.getTokenOffset()).line;F&&re>F.startLine+1&&d!==F.startLine&&(F.endLine=re-1,x(F),d=F.startLine)}break}case 13:{var w=t.positionAt(g.getTokenOffset()).line,ee=t.positionAt(g.getTokenOffset()+g.getTokenLength()).line;g.getTokenError()===1&&w+1<t.lineCount?g.setPosition(t.offsetAt(Si.create(w+1,0))):w<ee&&(x({startLine:w,endLine:ee,kind:Kl.Comment}),d=w);break}case 12:{var se=t.getText().substr(g.getTokenOffset(),g.getTokenLength()),de=se.match(/^\/\/\s*#(region\b)|(endregion\b)/);if(de){var re=t.positionAt(g.getTokenOffset()).line;if(de[1]){var F={startLine:re,endLine:re,kind:Kl.Region};s.push(F)}else{for(var pe=s.length-1;pe>=0&&s[pe].kind!==Kl.Region;)pe--;if(pe>=0){var F=s[pe];s.length=pe,re>F.startLine&&d!==F.startLine&&(F.endLine=re,x(F),d=F.startLine)}}}break}}A=g.scan()}var xe=r&&r.rangeLimit;if(typeof xe!="number"||i.length<=xe)return i;r&&r.onRangeLimitExceeded&&r.onRangeLimitExceeded(t.uri);for(var ve=[],we=0,Ne=o;we<Ne.length;we++){var Fe=Ne[we];Fe<30&&(ve[Fe]=(ve[Fe]||0)+1)}for(var je=0,ke=0,pe=0;pe<ve.length;pe++){var Me=ve[pe];if(Me){if(Me+je>xe){ke=pe;break}je+=Me}}for(var De=[],pe=0;pe<i.length;pe++){var Fe=o[pe];typeof Fe=="number"&&(Fe<ke||Fe===ke&&je++<xe)&&De.push(i[pe])}return De}function Py(t,r,i){function o(A){for(var x=t.offsetAt(A),w=i.getNodeFromOffset(x,!0),F=[];w;){switch(w.type){case"string":case"object":case"array":var H=w.offset+1,re=w.offset+w.length-1;H<re&&x>=H&&x<=re&&F.push(s(H,re)),F.push(s(w.offset,w.offset+w.length));break;case"number":case"boolean":case"null":case"property":F.push(s(w.offset,w.offset+w.length));break}if(w.type==="property"||w.parent&&w.parent.type==="array"){var ee=g(w.offset+w.length,5);ee!==-1&&F.push(s(w.offset,ee))}w=w.parent}for(var se=void 0,de=F.length-1;de>=0;de--)se=Wf.create(F[de],se);return se||(se=Wf.create(dr.create(A,A))),se}function s(A,x){return dr.create(t.positionAt(A),t.positionAt(x))}var d=Es(t.getText(),!0);function g(A,x){d.setPosition(A);var w=d.scan();return w===x?d.getTokenOffset()+d.getTokenLength():-1}return r.map(o)}function Iy(t){var r=t.promiseConstructor||Promise,i=new my(t.schemaRequestService,t.workspaceContext,r);i.setSchemaContributions(Oy);var o=new ty(i,t.contributions,r,t.clientCapabilities),s=new ry(i,t.contributions,r),d=new Ey(i),g=new xy(i,r);return{configure:function(A){i.clearExternalSchemas(),A.schemas&&A.schemas.forEach(function(x){i.registerExternalSchema(x.uri,x.fileMatch,x.schema)}),g.configure(A)},resetSchema:function(A){return i.onResourceChange(A)},doValidation:g.doValidation.bind(g),parseJSONDocument:function(A){return Qg(A,{collectComments:!0})},newJSONDocument:function(A,x){return Xg(A,x)},doComplete:o.doComplete.bind(o),findDocumentSymbols:d.findDocumentSymbols.bind(d),findDocumentSymbols2:d.findDocumentSymbols2.bind(d),findColorSymbols:function(A,x){return d.findDocumentColors(A,x).then(function(w){return w.map(function(F){return F.range})})},findDocumentColors:d.findDocumentColors.bind(d),getColorPresentations:d.getColorPresentations.bind(d),doHover:s.doHover.bind(s),getFoldingRanges:Ty,getSelectionRanges:Py,format:function(A,x,w){var F=void 0;if(x){var H=A.offsetAt(x.start),re=A.offsetAt(x.end)-H;F={offset:H,length:re}}var ee={tabSize:w?w.tabSize:4,insertSpaces:w?w.insertSpaces:!0,eol:`
384
- `};return jg(A.getText(),F,ee).map(function(se){return Ai.replace(dr.create(A.positionAt(se.offset),A.positionAt(se.offset+se.length)),se.content)})}}}var y0=a(96876),m0=a(4328),x0=a(3256),b0=a(71707),S0=a(82801),A0=a(32095),w0=a(86081),C0=a(44254),E0=a(75019),O0=a(13837),Eh=(t,r,i)=>new Promise((o,s)=>{var d=x=>{try{A(i.next(x))}catch(w){s(w)}},g=x=>{try{A(i.throw(x))}catch(w){s(w)}},A=x=>x.done?o(x.value):Promise.resolve(x.value).then(d,g);A((i=i.apply(t,r)).next())});const Is=Iy({});ws.registerHelper("lint","json",function(t,r){return Eh(this,null,function*(){const{schema:i,setError:o}=r;Is.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:i}]});const s=Hf.create(r.id+".json","json",0,t),d=Is.parseJSONDocument(s),g=yield Is.doValidation(s,d);return g.length?o&&o(g[0].message):o&&o(void 0),g.map(A=>({from:ws.Pos(A.range.start.line,A.range.start.character),to:ws.Pos(A.range.end.line,A.range.end.character),message:A.message}))})}),ws.registerHelper("hint","json",(t,r)=>Eh(void 0,null,function*(){const i=r.schema;if(!i)return;Is.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:i}]});const o=t.getDoc().getCursor(),s=t.getTokenAt(o),d=Hf.create(r.id+".json","json",0,t.getValue()),g=Is.parseJSONDocument(d),A=yield Is.doComplete(d,{line:o.line,character:o.ch},g),x=F=>{let H="";for(;F--;)H+=" ";return H};let w=A?A.items.map(F=>({text:F.insertText,displayText:F.label,filter:F.filterText||F.label,from:{line:F.textEdit.range.start.line,ch:F.textEdit.range.start.character},to:{line:F.textEdit.range.end.line,ch:F.textEdit.range.end.character},hint:(H,re,ee)=>{const se="_$__REDOC_CURSOR_HERE";let de=ee.text.replace(/(\$1|\${1:[^}]+})/,se)||"";if(de=de.replace(/(\$\d+|\${[^}]+})/g,"")||"",H.setSelection(ee.from,ee.to),de.indexOf(`
385
- `)>-1){const xe=H.getLine(H.getCursor().line).search(/(\S|$)/);de=de.replace(/\n/g,`
386
- `+x(xe))}H.replaceSelection(de);const pe=H.getSearchCursor(se,ee.from);pe.findNext()&&(H.setCursor(pe.from()),pe.replace(""))}})):[];return/(property|string)/.test(s.type||"")&&(w=w.filter(F=>F.filter.replace(/(^"|"$)/g,"").startsWith(s.string.replace(/(^"|"$)/g,"")))),{from:ws.Pos(o.line,s.start),to:ws.Pos(o.line,o.ch),list:w}}));var Kf=a(67294),Fy=Object.defineProperty,ky=(t,r,i)=>r in t?Fy(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,ql=(t,r,i)=>(ky(t,typeof r!="symbol"?r+"":r,i),i);const My=Lt.createGlobalStyle`
383
+ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function ny(t){return t.indexOf("`")!==-1?"`` "+t+" ``":t}var iy=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,s){o.__proto__=s}||function(o,s){for(var d in s)s.hasOwnProperty(d)&&(o[d]=s[d])},t(r,i)};return function(r,i){t(r,i);function o(){this.constructor=r}r.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}}(),Jr,Zl;if(typeof process=="object")Zl=!1;else if(typeof navigator=="object"){var ay=navigator.userAgent;Zl=ay.indexOf("Windows")>=0}function d0(t){return 55296<=t&&t<=56319}function p0(t){return 56320<=t&&t<=57343}function h0(t){return t>=97&&t<=102}function oy(t){return t>=97&&t<=122}function sy(t){return t>=65&&t<=90}function v0(t){return oy(t)||sy(t)}var ly=/^\w[\w\d+.-]*$/,uy=/^\//,fy=/^\/\//;function cy(t,r){if(!t.scheme&&r)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+t.authority+'", path: "'+t.path+'", query: "'+t.query+'", fragment: "'+t.fragment+'"}');if(t.scheme&&!ly.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!uy.test(t.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(fy.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function dy(t,r){return!t&&!r?"file":t}function py(t,r){switch(t){case"https":case"http":case"file":r?r[0]!==wi&&(r=wi+r):r=wi;break}return r}var xr="",wi="/",hy=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,Td=function(){function t(r,i,o,s,d,y){y===void 0&&(y=!1),typeof r=="object"?(this.scheme=r.scheme||xr,this.authority=r.authority||xr,this.path=r.path||xr,this.query=r.query||xr,this.fragment=r.fragment||xr):(this.scheme=dy(r,y),this.authority=i||xr,this.path=py(this.scheme,o||xr),this.query=s||xr,this.fragment=d||xr,cy(this,y))}return t.isUri=function(r){return r instanceof t?!0:r?typeof r.authority=="string"&&typeof r.fragment=="string"&&typeof r.path=="string"&&typeof r.query=="string"&&typeof r.scheme=="string"&&typeof r.fsPath=="function"&&typeof r.with=="function"&&typeof r.toString=="function":!1},Object.defineProperty(t.prototype,"fsPath",{get:function(){return yh(this,!1)},enumerable:!0,configurable:!0}),t.prototype.with=function(r){if(!r)return this;var i=r.scheme,o=r.authority,s=r.path,d=r.query,y=r.fragment;return i===void 0?i=this.scheme:i===null&&(i=xr),o===void 0?o=this.authority:o===null&&(o=xr),s===void 0?s=this.path:s===null&&(s=xr),d===void 0?d=this.query:d===null&&(d=xr),y===void 0?y=this.fragment:y===null&&(y=xr),i===this.scheme&&o===this.authority&&s===this.path&&d===this.query&&y===this.fragment?this:new Ts(i,o,s,d,y)},t.parse=function(r,i){i===void 0&&(i=!1);var o=hy.exec(r);return o?new Ts(o[2]||xr,zf(o[4]||xr),zf(o[5]||xr),zf(o[7]||xr),zf(o[9]||xr),i):new Ts(xr,xr,xr,xr,xr)},t.file=function(r){var i=xr;if(Zl&&(r=r.replace(/\\/g,wi)),r[0]===wi&&r[1]===wi){var o=r.indexOf(wi,2);o===-1?(i=r.substring(2),r=wi):(i=r.substring(2,o),r=r.substring(o)||wi)}return new Ts("file",i,r,xr,xr)},t.from=function(r){return new Ts(r.scheme,r.authority,r.path,r.query,r.fragment)},t.prototype.toString=function(r){return r===void 0&&(r=!1),Pd(this,r)},t.prototype.toJSON=function(){return this},t.revive=function(r){if(r){if(r instanceof t)return r;var i=new Ts(r);return i._formatted=r.external,i._fsPath=r._sep===hh?r.fsPath:null,i}else return r},t}(),hh=Zl?1:void 0,Ts=function(t){iy(r,t);function r(){var i=t!==null&&t.apply(this,arguments)||this;return i._formatted=null,i._fsPath=null,i}return Object.defineProperty(r.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=yh(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),r.prototype.toString=function(i){return i===void 0&&(i=!1),i?Pd(this,!0):(this._formatted||(this._formatted=Pd(this,!1)),this._formatted)},r.prototype.toJSON=function(){var i={$mid:1};return this._fsPath&&(i.fsPath=this._fsPath,i._sep=hh),this._formatted&&(i.external=this._formatted),this.path&&(i.path=this.path),this.scheme&&(i.scheme=this.scheme),this.authority&&(i.authority=this.authority),this.query&&(i.query=this.query),this.fragment&&(i.fragment=this.fragment),i},r}(Td),vh=(Jr={},Jr[58]="%3A",Jr[47]="%2F",Jr[63]="%3F",Jr[35]="%23",Jr[91]="%5B",Jr[93]="%5D",Jr[64]="%40",Jr[33]="%21",Jr[36]="%24",Jr[38]="%26",Jr[39]="%27",Jr[40]="%28",Jr[41]="%29",Jr[42]="%2A",Jr[43]="%2B",Jr[44]="%2C",Jr[59]="%3B",Jr[61]="%3D",Jr[32]="%20",Jr);function gh(t,r){for(var i=void 0,o=-1,s=0;s<t.length;s++){var d=t.charCodeAt(s);if(d>=97&&d<=122||d>=65&&d<=90||d>=48&&d<=57||d===45||d===46||d===95||d===126||r&&d===47)o!==-1&&(i+=encodeURIComponent(t.substring(o,s)),o=-1),i!==void 0&&(i+=t.charAt(s));else{i===void 0&&(i=t.substr(0,s));var y=vh[d];y!==void 0?(o!==-1&&(i+=encodeURIComponent(t.substring(o,s)),o=-1),i+=y):o===-1&&(o=s)}}return o!==-1&&(i+=encodeURIComponent(t.substring(o))),i!==void 0?i:t}function vy(t){for(var r=void 0,i=0;i<t.length;i++){var o=t.charCodeAt(i);o===35||o===63?(r===void 0&&(r=t.substr(0,i)),r+=vh[o]):r!==void 0&&(r+=t[i])}return r!==void 0?r:t}function yh(t,r){var i;return t.authority&&t.path.length>1&&t.scheme==="file"?i="//"+t.authority+t.path:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?r?i=t.path.substr(1):i=t.path[1].toLowerCase()+t.path.substr(2):i=t.path,Zl&&(i=i.replace(/\//g,"\\")),i}function Pd(t,r){var i=r?vy:gh,o="",s=t.scheme,d=t.authority,y=t.path,A=t.query,x=t.fragment;if(s&&(o+=s,o+=":"),(d||s==="file")&&(o+=wi,o+=wi),d){var w=d.indexOf("@");if(w!==-1){var F=d.substr(0,w);d=d.substr(w+1),w=F.indexOf(":"),w===-1?o+=i(F,!1):(o+=i(F.substr(0,w),!1),o+=":",o+=i(F.substr(w+1),!1)),o+="@"}d=d.toLowerCase(),w=d.indexOf(":"),w===-1?o+=i(d,!1):(o+=i(d.substr(0,w),!1),o+=d.substr(w))}if(y){if(y.length>=3&&y.charCodeAt(0)===47&&y.charCodeAt(2)===58){var W=y.charCodeAt(1);W>=65&&W<=90&&(y="/"+String.fromCharCode(W+32)+":"+y.substr(3))}else if(y.length>=2&&y.charCodeAt(1)===58){var W=y.charCodeAt(0);W>=65&&W<=90&&(y=String.fromCharCode(W+32)+":"+y.substr(2))}o+=i(y,!0)}return A&&(o+="?",o+=i(A,!1)),x&&(o+="#",o+=r?x:gh(x,!1)),o}function mh(t){try{return decodeURIComponent(t)}catch(r){return t.length>3?t.substr(0,3)+mh(t.substr(3)):t}}var xh=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function zf(t){return t.match(xh)?t.replace(xh,function(r){return mh(r)}):t}var gy=function(){function t(r){try{this.patternRegExp=new RegExp(qg(r)+"$")}catch(i){this.patternRegExp=null}this.schemas=[]}return t.prototype.addSchema=function(r){this.schemas.push(r)},t.prototype.matchesPattern=function(r){return this.patternRegExp&&this.patternRegExp.test(r)},t.prototype.getSchemas=function(){return this.schemas},t}(),yy=function(){function t(r,i,o){this.service=r,this.url=i,this.dependencies={},o&&(this.unresolvedSchema=this.service.promise.resolve(new Ps(o)))}return t.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},t.prototype.getResolvedSchema=function(){var r=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then(function(i){return r.service.resolveSchemaContent(i,r.url,r.dependencies)})),this.resolvedSchema},t.prototype.clearSchema=function(){this.resolvedSchema=null,this.unresolvedSchema=null,this.dependencies={}},t}(),Ps=function(){function t(r,i){i===void 0&&(i=[]),this.schema=r,this.errors=i}return t}(),bh=function(){function t(r,i){i===void 0&&(i=[]),this.schema=r,this.errors=i}return t.prototype.getSection=function(r){return jn(this.getSectionRecursive(r,this.schema))},t.prototype.getSectionRecursive=function(r,i){if(!i||typeof i=="boolean"||r.length===0)return i;var o=r.shift();if(i.properties&&typeof i.properties[o])return this.getSectionRecursive(r,i.properties[o]);if(i.patternProperties)for(var s=0,d=Object.keys(i.patternProperties);s<d.length;s++){var y=d[s],A=new RegExp(y);if(A.test(o))return this.getSectionRecursive(r,i.patternProperties[y])}else{if(typeof i.additionalProperties=="object")return this.getSectionRecursive(r,i.additionalProperties);if(o.match("[0-9]+")){if(Array.isArray(i.items)){var x=parseInt(o,10);if(!isNaN(x)&&i.items[x])return this.getSectionRecursive(r,i.items[x])}else if(i.items)return this.getSectionRecursive(r,i.items)}}return null},t}(),my=function(){function t(r,i,o){this.contextService=i,this.requestService=r,this.promiseConstructor=o||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations={},this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={}}return t.prototype.getRegisteredSchemaIds=function(r){return Object.keys(this.registeredSchemasIds).filter(function(i){var o=Td.parse(i).scheme;return o!=="schemaservice"&&(!r||r(o))})},Object.defineProperty(t.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},t.prototype.onResourceChange=function(r){var i=this,o=!1;r=this.normalizeId(r);for(var s=[r],d=Object.keys(this.schemasById).map(function(w){return i.schemasById[w]});s.length;)for(var y=s.pop(),A=0;A<d.length;A++){var x=d[A];x&&(x.url===y||x.dependencies[y])&&(x.url!==y&&s.push(x.url),x.clearSchema(),d[A]=void 0,o=!0)}return o},t.prototype.normalizeId=function(r){try{return Td.parse(r).toString()}catch(i){return r}},t.prototype.setSchemaContributions=function(r){if(r.schemas){var i=r.schemas;for(var o in i){var s=this.normalizeId(o);this.contributionSchemas[s]=this.addSchemaHandle(s,i[o])}}if(r.schemaAssociations){var d=r.schemaAssociations;for(var y in d){var A=d[y];this.contributionAssociations[y]=A;for(var x=this.getOrAddFilePatternAssociation(y),w=0,F=A;w<F.length;w++){var W=F[w],o=this.normalizeId(W);x.addSchema(o)}}}},t.prototype.addSchemaHandle=function(r,i){var o=new yy(this,r,i);return this.schemasById[r]=o,o},t.prototype.getOrAddSchemaHandle=function(r,i){return this.schemasById[r]||this.addSchemaHandle(r,i)},t.prototype.getOrAddFilePatternAssociation=function(r){var i=this.filePatternAssociationById[r];return i||(i=new gy(r),this.filePatternAssociationById[r]=i,this.filePatternAssociations.push(i)),i},t.prototype.registerExternalSchema=function(r,i,o){i===void 0&&(i=null);var s=this.normalizeId(r);if(this.registeredSchemasIds[s]=!0,i)for(var d=0,y=i;d<y.length;d++){var A=y[d];this.getOrAddFilePatternAssociation(A).addSchema(s)}return o?this.addSchemaHandle(s,o):this.getOrAddSchemaHandle(s)},t.prototype.clearExternalSchemas=function(){this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={};for(var r in this.contributionSchemas)this.schemasById[r]=this.contributionSchemas[r],this.registeredSchemasIds[r]=!0;for(var i in this.contributionAssociations)for(var o=this.getOrAddFilePatternAssociation(i),s=0,d=this.contributionAssociations[i];s<d.length;s++){var y=d[s],r=this.normalizeId(y);o.addSchema(r)}},t.prototype.getResolvedSchema=function(r){var i=this.normalizeId(r),o=this.schemasById[i];return o?o.getResolvedSchema():this.promise.resolve(null)},t.prototype.loadSchema=function(r){if(!this.requestService){var i="Unable to load schema from '"+Gf(r)+"'. No schema request service available";return this.promise.resolve(new Ps({},[i]))}return this.requestService(r).then(function(o){if(!o){var s="Unable to load schema from '"+Gf(r)+"': No content.";return new Ps({},[s])}var d={},y=[];d=Rg(o,y);var A=y.length?["Unable to parse content from '"+Gf(r)+"': Parse error at offset "+y[0].offset]:[];return new Ps(d,A)},function(o){var s="Unable to load schema from '"+Gf(r)+"': "+o.toString();return new Ps({},[s])})},t.prototype.resolveSchemaContent=function(r,i,o){var s=this,d=r.errors.slice(0),y=r.schema;if(y.$schema){var A=this.normalizeId(y.$schema);if(A==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new bh({},["Draft-03 schemas are not supported."]));A==="https://json-schema.org/draft/2019-09/schema"&&r.errors.push("Draft 2019-09 schemas are not yet fully supported.")}var x=this.contextService,w=function(ee,le){if(!le)return ee;var de=ee;return le[0]==="/"&&(le=le.substr(1)),le.split("/").some(function(he){return de=de[he],!de}),de},F=function(ee,le,de,he){var xe=w(le,he);if(xe)for(var ve in xe)xe.hasOwnProperty(ve)&&!ee.hasOwnProperty(ve)&&(ee[ve]=xe[ve]);else d.push("$ref '"+he+"' in '"+de+"' can not be resolved.")},W=function(ee,le,de,he,xe){x&&!/^\w+:\/\/.*/.test(le)&&(le=x.resolveRelativePath(le,he)),le=s.normalizeId(le);var ve=s.getOrAddSchemaHandle(le);return ve.getUnresolvedSchema().then(function(we){if(xe[le]=!0,we.errors.length){var Ne=de?le+"#"+de:le;d.push("Problems loading reference '"+Ne+"': "+we.errors[0]+".")}return F(ee,we.schema,le,de),re(ee,we.schema,le,ve.dependencies)})},re=function(ee,le,de,he){if(!ee||typeof ee!="object")return Promise.resolve(null);for(var xe=[ee],ve=[],we=[],Ne=function(){for(var De=[],Ve=0;Ve<arguments.length;Ve++)De[Ve]=arguments[Ve];for(var Ke=0,Ze=De;Ke<Ze.length;Ke++){var _e=Ze[Ke];typeof _e=="object"&&xe.push(_e)}},Fe=function(){for(var De=[],Ve=0;Ve<arguments.length;Ve++)De[Ve]=arguments[Ve];for(var Ke=0,Ze=De;Ke<Ze.length;Ke++){var _e=Ze[Ke];if(typeof _e=="object")for(var bt in _e){var Rt=_e[bt];typeof Rt=="object"&&xe.push(Rt)}}},je=function(){for(var De=[],Ve=0;Ve<arguments.length;Ve++)De[Ve]=arguments[Ve];for(var Ke=0,Ze=De;Ke<Ze.length;Ke++){var _e=Ze[Ke];if(Array.isArray(_e))for(var bt=0,Rt=_e;bt<Rt.length;bt++){var or=Rt[bt];typeof or=="object"&&xe.push(or)}}},ke=function(De){for(var Ve=[];De.$ref;){var Ke=De.$ref,Ze=Ke.split("#",2);if(delete De.$ref,Ze[0].length>0){we.push(W(De,Ze[0],Ze[1],de,he));return}else Ve.indexOf(Ke)===-1&&(F(De,le,de,Ze[1]),Ve.push(Ke))}Ne(De.items,De.additionalProperties,De.not,De.contains,De.propertyNames,De.if,De.then,De.else),Fe(De.definitions,De.properties,De.patternProperties,De.dependencies),je(De.anyOf,De.allOf,De.oneOf,De.items)};xe.length;){var Me=xe.pop();ve.indexOf(Me)>=0||(ve.push(Me),ke(Me))}return s.promise.all(we)};return re(y,y,i,o).then(function(ee){return new bh(y,d)})},t.prototype.getSchemaForResource=function(r,i){if(i&&i.root&&i.root.type==="object"){var o=i.root.properties.filter(function(le){return le.keyNode.value==="$schema"&&le.valueNode&&le.valueNode.type==="string"});if(o.length>0){var s=ja(o[0].valueNode);if(s&&Zg(s,".")&&this.contextService&&(s=this.contextService.resolveRelativePath(s,r)),s){var d=this.normalizeId(s);return this.getOrAddSchemaHandle(d).getResolvedSchema()}}}for(var y=Object.create(null),A=[],x=0,w=this.filePatternAssociations;x<w.length;x++){var F=w[x];if(F.matchesPattern(r))for(var W=0,re=F.getSchemas();W<re.length;W++){var ee=re[W];y[ee]||(A.push(ee),y[ee]=!0)}}return A.length>0?this.createCombinedSchema(r,A).getResolvedSchema():this.promise.resolve(null)},t.prototype.createCombinedSchema=function(r,i){if(i.length===1)return this.getOrAddSchemaHandle(i[0]);var o="schemaservice://combinedSchema/"+encodeURIComponent(r),s={allOf:i.map(function(d){return{$ref:d}})};return this.addSchemaHandle(o,s)},t}();function Gf(t){try{}catch(r){}return t}var xy=function(){function t(r,i){this.jsonSchemaService=r,this.promise=i,this.validationEnabled=!0}return t.prototype.configure=function(r){r&&(this.validationEnabled=r.validate,this.commentSeverity=r.allowComments?void 0:Ht.Error)},t.prototype.doValidation=function(r,i,o,s){var d=this;if(!this.validationEnabled)return this.promise.resolve([]);var y=[],A={},x=function(W){var re=W.range.start.line+" "+W.range.start.character+" "+W.message;A[re]||(A[re]=!0,y.push(W))},w=function(W){var re=o?wh(o.trailingCommas):Ht.Error,ee=o?wh(o.comments):d.commentSeverity;if(W){if(W.errors.length&&i.root){var le=i.root,de=le.type==="object"?le.properties[0]:null;if(de&&de.keyNode.value==="$schema"){var he=de.valueNode||de,xe=pr.create(r.positionAt(he.offset),r.positionAt(he.offset+he.length));x(ha.create(xe,W.errors[0],Ht.Warning,rr.SchemaResolveError))}else{var xe=pr.create(r.positionAt(le.offset),r.positionAt(le.offset+1));x(ha.create(xe,W.errors[0],Ht.Warning,rr.SchemaResolveError))}}else{var ve=i.validate(r,W.schema);ve&&ve.forEach(x)}Sh(W.schema)&&(ee=void 0),Ah(W.schema)&&(re=void 0)}for(var we=0,Ne=i.syntaxErrors;we<Ne.length;we++){var Fe=Ne[we];if(Fe.code===rr.TrailingComma){if(typeof re!="number")continue;Fe.severity=re}x(Fe)}if(typeof ee=="number"){var je="Comments are not permitted in JSON.";i.comments.forEach(function(ke){x(ha.create(ke,je,ee,rr.CommentNotPermitted))})}return y};if(s){var F=s.id||"schemaservice://untitled/"+by++;return this.jsonSchemaService.resolveSchemaContent(new Ps(s),F,{}).then(function(W){return w(W)})}return this.jsonSchemaService.getSchemaForResource(r.uri,i).then(function(W){return w(W)})},t}(),by=0;function Sh(t){if(t&&typeof t=="object"){if(Wi(t.allowComments))return t.allowComments;if(t.allOf)for(var r=0,i=t.allOf;r<i.length;r++){var o=i[r],s=Sh(o);if(Wi(s))return s}}}function Ah(t){if(t&&typeof t=="object"){if(Wi(t.allowTrailingCommas))return t.allowTrailingCommas;if(Wi(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(t.allOf)for(var r=0,i=t.allOf;r<i.length;r++){var o=i[r],s=Ah(o);if(Wi(s))return s}}}function wh(t){switch(t){case"error":return Ht.Error;case"warning":return Ht.Warning;case"ignore":return}}var Ch=48,Sy=57,Ay=65,$f=97,wy=102;function Xr(t){return t<Ch?0:t<=Sy?t-Ch:(t<$f&&(t+=$f-Ay),t>=$f&&t<=wy?t-$f+10:0)}function Cy(t){if(t[0]!=="#")return null;switch(t.length){case 4:return{red:Xr(t.charCodeAt(1))*17/255,green:Xr(t.charCodeAt(2))*17/255,blue:Xr(t.charCodeAt(3))*17/255,alpha:1};case 5:return{red:Xr(t.charCodeAt(1))*17/255,green:Xr(t.charCodeAt(2))*17/255,blue:Xr(t.charCodeAt(3))*17/255,alpha:Xr(t.charCodeAt(4))*17/255};case 7:return{red:(Xr(t.charCodeAt(1))*16+Xr(t.charCodeAt(2)))/255,green:(Xr(t.charCodeAt(3))*16+Xr(t.charCodeAt(4)))/255,blue:(Xr(t.charCodeAt(5))*16+Xr(t.charCodeAt(6)))/255,alpha:1};case 9:return{red:(Xr(t.charCodeAt(1))*16+Xr(t.charCodeAt(2)))/255,green:(Xr(t.charCodeAt(3))*16+Xr(t.charCodeAt(4)))/255,blue:(Xr(t.charCodeAt(5))*16+Xr(t.charCodeAt(6)))/255,alpha:(Xr(t.charCodeAt(7))*16+Xr(t.charCodeAt(8)))/255}}return null}function g0(t,r,i,o){return o===void 0&&(o=1),{red:t/255,green:r/255,blue:i/255,alpha:o}}var Ey=function(){function t(r){this.schemaService=r}return t.prototype.findDocumentSymbols=function(r,i,o){var s=this;o===void 0&&(o={resultLimit:Number.MAX_VALUE});var d=i.root;if(!d)return null;var y=o.resultLimit,A=r.uri;if((A==="vscode://defaultsettings/keybindings.json"||Ed(A.toLowerCase(),"/user/keybindings.json"))&&d.type==="array"){for(var x=[],w=0,F=d.items;w<F.length;w++){var W=F[w];if(W.type==="object")for(var re=0,ee=W.properties;re<ee.length;re++){var le=ee[re];if(le.keyNode.value==="key"&&le.valueNode){var de=$l.create(r.uri,Ua(r,W));if(x.push({name:ja(le.valueNode),kind:Hi.Function,location:de}),y--,y<=0)return o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(A),x}}}return x}var he=function(ve,we,Ne){return y>=0&&(we.type==="array"?we.items.forEach(function(Fe){return he(ve,Fe,Ne)}):we.type==="object"&&we.properties.forEach(function(Fe){if(y>=0){var je=Fe.valueNode;if(je){y--;var ke=$l.create(r.uri,Ua(r,Fe)),Me=Ne?Ne+"."+Fe.keyNode.value:Fe.keyNode.value;ve.push({name:s.getKeyLabel(Fe),kind:s.getSymbolKind(je.type),location:ke,containerName:Ne}),he(ve,je,Me)}}})),ve},xe=he([],d,void 0);return y<0&&(xe.pop(),o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(A)),xe},t.prototype.findDocumentSymbols2=function(r,i,o){var s=this;o===void 0&&(o={resultLimit:Number.MAX_VALUE});var d=i.root;if(!d)return null;var y=o.resultLimit,A=r.uri;if((A==="vscode://defaultsettings/keybindings.json"||Ed(A.toLowerCase(),"/user/keybindings.json"))&&d.type==="array"){for(var x=[],w=0,F=d.items;w<F.length;w++){var W=F[w];if(W.type==="object")for(var re=0,ee=W.properties;re<ee.length;re++){var le=ee[re];if(le.keyNode.value==="key"&&le.valueNode){var de=Ua(r,W),he=Ua(r,le.keyNode);if(x.push({name:ja(le.valueNode),kind:Hi.Function,range:de,selectionRange:he}),y--,y<=0)return o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(A),x}}}return x}var xe=function(we,Ne){return y>=0&&(Ne.type==="array"?Ne.items.forEach(function(Fe,je){if(Fe&&y>=0){y--;var ke=Ua(r,Fe),Me=ke,De=String(je),Ve=xe([],Fe);we.push({name:De,kind:s.getSymbolKind(Fe.type),range:ke,selectionRange:Me,children:Ve})}}):Ne.type==="object"&&Ne.properties.forEach(function(Fe){var je=Fe.valueNode;if(je&&y>=0){y--;var ke=Ua(r,Fe),Me=Ua(r,Fe.keyNode),De=xe([],je);we.push({name:s.getKeyLabel(Fe),kind:s.getSymbolKind(je.type),range:ke,selectionRange:Me,children:De})}})),we},ve=xe([],d);return y<0&&(ve.pop(),o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(A)),ve},t.prototype.getSymbolKind=function(r){switch(r){case"object":return Hi.Module;case"string":return Hi.String;case"number":return Hi.Number;case"array":return Hi.Array;case"boolean":return Hi.Boolean;default:return Hi.Variable}},t.prototype.getKeyLabel=function(r){var i=r.keyNode.value;return i&&(i=i.replace(/[\n]/g,"\u21B5")),i&&i.trim()?i:'"'+i+'"'},t.prototype.findDocumentColors=function(r,i,o){return this.schemaService.getSchemaForResource(r.uri,i).then(function(s){var d=[];if(s)for(var y=o&&typeof o.resultLimit=="number"?o.resultLimit:Number.MAX_VALUE,A=i.getMatchingSchemas(s.schema),x={},w=0,F=A;w<F.length;w++){var W=F[w];if(!W.inverted&&W.schema&&(W.schema.format==="color"||W.schema.format==="color-hex")&&W.node&&W.node.type==="string"){var re=String(W.node.offset);if(!x[re]){var ee=Cy(ja(W.node));if(ee){var le=Ua(r,W.node);d.push({color:ee,range:le})}if(x[re]=!0,y--,y<=0)return o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(r.uri),d}}}return d})},t.prototype.getColorPresentations=function(r,i,o,s){var d=[],y=Math.round(o.red*255),A=Math.round(o.green*255),x=Math.round(o.blue*255);function w(W){var re=W.toString(16);return re.length!==2?"0"+re:re}var F;return o.alpha===1?F="#"+w(y)+w(A)+w(x):F="#"+w(y)+w(A)+w(x)+w(Math.round(o.alpha*255)),d.push({label:F,textEdit:Ai.replace(s,JSON.stringify(F))}),d},t}();function Ua(t,r){return pr.create(t.positionAt(r.offset),t.positionAt(r.offset+r.length))}var Oy={schemaAssociations:{},schemas:{}};function Ty(t,r){var i=[],o=[],s=[],d=-1,y=Es(t.getText(),!1),A=y.scan();function x(Ve){i.push(Ve),o.push(s.length)}for(;A!==17;){switch(A){case 1:case 3:{var w=t.positionAt(y.getTokenOffset()).line,F={startLine:w,endLine:w,kind:A===1?"object":"array"};s.push(F);break}case 2:case 4:{var W=A===2?"object":"array";if(s.length>0&&s[s.length-1].kind===W){var F=s.pop(),re=t.positionAt(y.getTokenOffset()).line;F&&re>F.startLine+1&&d!==F.startLine&&(F.endLine=re-1,x(F),d=F.startLine)}break}case 13:{var w=t.positionAt(y.getTokenOffset()).line,ee=t.positionAt(y.getTokenOffset()+y.getTokenLength()).line;y.getTokenError()===1&&w+1<t.lineCount?y.setPosition(t.offsetAt(Si.create(w+1,0))):w<ee&&(x({startLine:w,endLine:ee,kind:Kl.Comment}),d=w);break}case 12:{var le=t.getText().substr(y.getTokenOffset(),y.getTokenLength()),de=le.match(/^\/\/\s*#(region\b)|(endregion\b)/);if(de){var re=t.positionAt(y.getTokenOffset()).line;if(de[1]){var F={startLine:re,endLine:re,kind:Kl.Region};s.push(F)}else{for(var he=s.length-1;he>=0&&s[he].kind!==Kl.Region;)he--;if(he>=0){var F=s[he];s.length=he,re>F.startLine&&d!==F.startLine&&(F.endLine=re,x(F),d=F.startLine)}}}break}}A=y.scan()}var xe=r&&r.rangeLimit;if(typeof xe!="number"||i.length<=xe)return i;r&&r.onRangeLimitExceeded&&r.onRangeLimitExceeded(t.uri);for(var ve=[],we=0,Ne=o;we<Ne.length;we++){var Fe=Ne[we];Fe<30&&(ve[Fe]=(ve[Fe]||0)+1)}for(var je=0,ke=0,he=0;he<ve.length;he++){var Me=ve[he];if(Me){if(Me+je>xe){ke=he;break}je+=Me}}for(var De=[],he=0;he<i.length;he++){var Fe=o[he];typeof Fe=="number"&&(Fe<ke||Fe===ke&&je++<xe)&&De.push(i[he])}return De}function Py(t,r,i){function o(A){for(var x=t.offsetAt(A),w=i.getNodeFromOffset(x,!0),F=[];w;){switch(w.type){case"string":case"object":case"array":var W=w.offset+1,re=w.offset+w.length-1;W<re&&x>=W&&x<=re&&F.push(s(W,re)),F.push(s(w.offset,w.offset+w.length));break;case"number":case"boolean":case"null":case"property":F.push(s(w.offset,w.offset+w.length));break}if(w.type==="property"||w.parent&&w.parent.type==="array"){var ee=y(w.offset+w.length,5);ee!==-1&&F.push(s(w.offset,ee))}w=w.parent}for(var le=void 0,de=F.length-1;de>=0;de--)le=Wf.create(F[de],le);return le||(le=Wf.create(pr.create(A,A))),le}function s(A,x){return pr.create(t.positionAt(A),t.positionAt(x))}var d=Es(t.getText(),!0);function y(A,x){d.setPosition(A);var w=d.scan();return w===x?d.getTokenOffset()+d.getTokenLength():-1}return r.map(o)}function Iy(t){var r=t.promiseConstructor||Promise,i=new my(t.schemaRequestService,t.workspaceContext,r);i.setSchemaContributions(Oy);var o=new ty(i,t.contributions,r,t.clientCapabilities),s=new ry(i,t.contributions,r),d=new Ey(i),y=new xy(i,r);return{configure:function(A){i.clearExternalSchemas(),A.schemas&&A.schemas.forEach(function(x){i.registerExternalSchema(x.uri,x.fileMatch,x.schema)}),y.configure(A)},resetSchema:function(A){return i.onResourceChange(A)},doValidation:y.doValidation.bind(y),parseJSONDocument:function(A){return Qg(A,{collectComments:!0})},newJSONDocument:function(A,x){return Xg(A,x)},doComplete:o.doComplete.bind(o),findDocumentSymbols:d.findDocumentSymbols.bind(d),findDocumentSymbols2:d.findDocumentSymbols2.bind(d),findColorSymbols:function(A,x){return d.findDocumentColors(A,x).then(function(w){return w.map(function(F){return F.range})})},findDocumentColors:d.findDocumentColors.bind(d),getColorPresentations:d.getColorPresentations.bind(d),doHover:s.doHover.bind(s),getFoldingRanges:Ty,getSelectionRanges:Py,format:function(A,x,w){var F=void 0;if(x){var W=A.offsetAt(x.start),re=A.offsetAt(x.end)-W;F={offset:W,length:re}}var ee={tabSize:w?w.tabSize:4,insertSpaces:w?w.insertSpaces:!0,eol:`
384
+ `};return jg(A.getText(),F,ee).map(function(le){return Ai.replace(pr.create(A.positionAt(le.offset),A.positionAt(le.offset+le.length)),le.content)})}}}var y0=a(96876),m0=a(4328),x0=a(3256),b0=a(71707),S0=a(82801),A0=a(32095),w0=a(86081),C0=a(44254),E0=a(75019),O0=a(13837),Eh=(t,r,i)=>new Promise((o,s)=>{var d=x=>{try{A(i.next(x))}catch(w){s(w)}},y=x=>{try{A(i.throw(x))}catch(w){s(w)}},A=x=>x.done?o(x.value):Promise.resolve(x.value).then(d,y);A((i=i.apply(t,r)).next())});const Is=Iy({});ws.registerHelper("lint","json",function(t,r){return Eh(this,null,function*(){const{schema:i,setError:o}=r;Is.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:i}]});const s=Hf.create(r.id+".json","json",0,t),d=Is.parseJSONDocument(s),y=yield Is.doValidation(s,d);return y.length?o&&o(y[0].message):o&&o(void 0),y.map(A=>({from:ws.Pos(A.range.start.line,A.range.start.character),to:ws.Pos(A.range.end.line,A.range.end.character),message:A.message}))})}),ws.registerHelper("hint","json",(t,r)=>Eh(void 0,null,function*(){const i=r.schema;if(!i)return;Is.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:i}]});const o=t.getDoc().getCursor(),s=t.getTokenAt(o),d=Hf.create(r.id+".json","json",0,t.getValue()),y=Is.parseJSONDocument(d),A=yield Is.doComplete(d,{line:o.line,character:o.ch},y),x=F=>{let W="";for(;F--;)W+=" ";return W};let w=A?A.items.map(F=>({text:F.insertText,displayText:F.label,filter:F.filterText||F.label,from:{line:F.textEdit.range.start.line,ch:F.textEdit.range.start.character},to:{line:F.textEdit.range.end.line,ch:F.textEdit.range.end.character},hint:(W,re,ee)=>{const le="_$__REDOC_CURSOR_HERE";let de=ee.text.replace(/(\$1|\${1:[^}]+})/,le)||"";if(de=de.replace(/(\$\d+|\${[^}]+})/g,"")||"",W.setSelection(ee.from,ee.to),de.indexOf(`
385
+ `)>-1){const xe=W.getLine(W.getCursor().line).search(/(\S|$)/);de=de.replace(/\n/g,`
386
+ `+x(xe))}W.replaceSelection(de);const he=W.getSearchCursor(le,ee.from);he.findNext()&&(W.setCursor(he.from()),he.replace(""))}})):[];return/(property|string)/.test(s.type||"")&&(w=w.filter(F=>F.filter.replace(/(^"|"$)/g,"").startsWith(s.string.replace(/(^"|"$)/g,"")))),{from:ws.Pos(o.line,s.start),to:ws.Pos(o.line,o.ch),list:w}}));var Kf=a(67294),Fy=Object.defineProperty,ky=(t,r,i)=>r in t?Fy(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,ql=(t,r,i)=>(ky(t,typeof r!="symbol"?r+"":r,i),i);const My=Lt.createGlobalStyle`
387
387
  .cm-s-material.CodeMirror {
388
388
  background-color: ${({theme:t})=>t.rightPanel.panelControlsBackgroundColor}!important;
389
389
  color: ${({theme:t})=>t.colors.text.light}!important;
@@ -431,7 +431,7 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function ny(t){return t.i
431
431
  flex: 1;
432
432
  border-radius: ${({theme:t})=>t.components.panels.borderRadius};
433
433
  }
434
- `;class Ly extends h.PureComponent{constructor(){super(...arguments);ql(this,"editor"),ql(this,"_onKeyUp",(r,i)=>{/^[a-zA-Z0-9_":]$/.test(i.key)&&this.editor.execCommand("autocomplete")}),ql(this,"initEditor",r=>{this.editor=r,r.on("keyup",this._onKeyUp)}),ql(this,"refreshEditor",()=>{this.editor.refresh()}),ql(this,"showHintHandler",()=>this.editor.showHint({completeSingle:!0}))}componentDidMount(){setTimeout(()=>{this.editor.refresh()},0),document.addEventListener("click",this.refreshEditor)}componentWillUnmount(){document.removeEventListener("click",this.refreshEditor)}render(){const{value:r}=this.props.fieldState,{setValue:i,setTouched:o,setError:s}=this.props.fieldApi,{onChange:d,onBlur:g,forwardedRef:A}=this.props;return Kf.createElement(Kf.Fragment,null,Kf.createElement(My,null),Kf.createElement(wg.fk,{editorDidMount:this.initEditor,value:r||"",ref:A,onBeforeChange:(x,w,F)=>{i(F),d&&d(F)},onBlur:x=>{o(!1),g&&g(x)},options:{mode:this.props.mode||Mf.T.JSON,theme:"material",matchBrackets:!0,autoCloseBrackets:!0,tabSize:2,foldGutter:!0,extraKeys:{"Cmd-Space":this.showHintHandler,"Ctrl-Space":this.showHintHandler},hintOptions:{id:this.props.id,completeSingle:!1,schema:this.props.schema},lint:{id:this.props.id,schema:this.props.schema,setError:s}}}))}}const Ry=Zr(Ly);var ga=a(67294),Dy=Object.defineProperty,Ny=Object.defineProperties,By=Object.getOwnPropertyDescriptors,Oh=Object.getOwnPropertySymbols,jy=Object.prototype.hasOwnProperty,Uy=Object.prototype.propertyIsEnumerable,Th=(t,r,i)=>r in t?Dy(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Vy=(t,r)=>{for(var i in r||(r={}))jy.call(r,i)&&Th(t,i,r[i]);if(Oh)for(var i of Oh(r))Uy.call(r,i)&&Th(t,i,r[i]);return t},Wy=(t,r)=>Ny(t,By(r));const Hy=(0,za.Pi)(({body:t,formApi:r,resolvedBody:i,properties:o,id:s,validate:d})=>{var g,A;const x=t.content,w=de=>{var pe;if(!x||!x.hasSample)return"";const xe=(pe=x.active)==null?void 0:pe.examples;if(!(xe==null?void 0:xe[de]))return"";const ve=xe==null?void 0:xe[de].value,we=o?vg()(ve,o,{arrayMerge:Vi.lN}):ve;return JSON.stringify(we,null,2)},F=(g=x==null?void 0:x.operation)==null?void 0:g.activeExampleName,H=de=>{x==null||x.activateExampleName(de),r.setValue("body",w(de))},re=(de,pe)=>{const{setValue:xe}=r;xe(`body.${de}`,pe)};(0,h.useEffect)(()=>{var de,pe;if((de=x==null?void 0:x.operation)==null?void 0:de.activeMimeName){const xe=(0,mr.P6)(s,x.operation.activeMimeName,F,(pe=x==null?void 0:x.active)==null?void 0:pe.examples);r.setValue("body",(0,Ut.YQ)(xe)||w(F||""))}else r.setValue("body",JSON.stringify(o||{},null,2))},[F,(A=x==null?void 0:x.operation)==null?void 0:A.activeMimeName,x==null?void 0:x.active]);const ee=de=>ga.createElement(Lt.DropdownOrLabel,Wy(Vy({},de),{variant:"dark",fullWidth:!0,Label:Ag,Dropdown:br.Dropdown})),se=(0,h.useCallback)((de="",pe="",xe=[])=>ve=>{(0,Ut.WW)((0,mr.P6)(s,de,pe,xe),ve)},[s]);return ga.createElement(ga.Fragment,null,ga.createElement(Lt.MediaTypesSwitch,{content:t.content,renderDropdown:ee},de=>{const pe=de.examples||{},xe=Object.keys(pe),ve=de.schema,we=lt(ve||{},de.name)||de.name===Mf.T.MULTIPART||de.name===Mf.T.URL_ENCODED,{exampleKey:Ne}=(0,dd.C6)(de.operation,pe),Fe=(0,Ut.YQ)((0,mr.P6)(s,de.name,Ne,pe))||(0,mr.oY)(pe[Ne],o);return ga.createElement(ga.Fragment,null,xe.length&&xe.length!==1&&ga.createElement(dd.b_,{examples:pe,onChange:H,exampleKey:Ne})||null,we?ga.createElement(bg,{mediaType:de,formApi:r,onChange:re}):ga.createElement(Ry,{id:"body"+s,field:"body",initialValue:Fe,schema:((i==null?void 0:i.content[de.name])||{}).schema,mode:de.name,validate:d,onChange:se(de.name,Ne,pe)}))}))}),zy=(0,h.memo)(Hy);var Va=a(67294);function Gy({response:t}){return Va.createElement(Va.Fragment,null,Va.createElement(kh,null," Body: "),$y(t))}function $y(t){return t.body?Va.createElement(Lt.JsonViewer,{data:t.body}):t.fileInfo?Va.createElement(Lt.SourceCodeWithFile,{fileInfo:t.fileInfo}):t.data!==null?t.data?Va.createElement(Lt.SourceCodeWithText,{lang:(0,Lt.langFromMime)(t.headers["Content-Type"]||"text/plain"),source:t.data}):Va.createElement(Mh,null,Va.createElement("i",null,"(no content)")):null}var Wa=a(67294);function Ky({headers:t}){const r=(0,h.useContext)(Lt.OptionsContext),[i,o]=(0,h.useState)(!0),{maxResponseHeadersToShowInTryIt:s}=r,d=Object.keys(t),g=!!s&&d.length>s,A=g&&i?[...d].splice(0,s):[...d],x=()=>{o(!i)};return Wa.createElement(Wa.Fragment,null,Wa.createElement(kh,null," Headers: "),Wa.createElement(Mh,null,A.map(w=>Wa.createElement("div",{key:w},Wa.createElement(Ph,null,w,":"),Wa.createElement("code",null,t[w]))),g&&Wa.createElement(Ih,{onClick:x},i?"Show more...":"Hide headers")))}const Ph=Lt.styled.strong`
434
+ `;class Ly extends h.PureComponent{constructor(){super(...arguments);ql(this,"editor"),ql(this,"_onKeyUp",(r,i)=>{/^[a-zA-Z0-9_":]$/.test(i.key)&&this.editor.execCommand("autocomplete")}),ql(this,"initEditor",r=>{this.editor=r,r.on("keyup",this._onKeyUp)}),ql(this,"refreshEditor",()=>{this.editor.refresh()}),ql(this,"showHintHandler",()=>this.editor.showHint({completeSingle:!0}))}componentDidMount(){setTimeout(()=>{this.editor.refresh()},0),document.addEventListener("click",this.refreshEditor)}componentWillUnmount(){document.removeEventListener("click",this.refreshEditor)}render(){const{value:r}=this.props.fieldState,{setValue:i,setTouched:o,setError:s}=this.props.fieldApi,{onChange:d,onBlur:y,forwardedRef:A}=this.props;return Kf.createElement(Kf.Fragment,null,Kf.createElement(My,null),Kf.createElement(wg.fk,{editorDidMount:this.initEditor,value:r||"",ref:A,onBeforeChange:(x,w,F)=>{i(F),d&&d(F)},onBlur:x=>{o(!1),y&&y(x)},options:{mode:this.props.mode||Mf.T.JSON,theme:"material",matchBrackets:!0,autoCloseBrackets:!0,tabSize:2,foldGutter:!0,extraKeys:{"Cmd-Space":this.showHintHandler,"Ctrl-Space":this.showHintHandler},hintOptions:{id:this.props.id,completeSingle:!1,schema:this.props.schema},lint:{id:this.props.id,schema:this.props.schema,setError:s}}}))}}const Ry=Zr(Ly);var ga=a(67294),Dy=Object.defineProperty,Ny=Object.defineProperties,By=Object.getOwnPropertyDescriptors,Oh=Object.getOwnPropertySymbols,jy=Object.prototype.hasOwnProperty,Uy=Object.prototype.propertyIsEnumerable,Th=(t,r,i)=>r in t?Dy(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Vy=(t,r)=>{for(var i in r||(r={}))jy.call(r,i)&&Th(t,i,r[i]);if(Oh)for(var i of Oh(r))Uy.call(r,i)&&Th(t,i,r[i]);return t},Wy=(t,r)=>Ny(t,By(r));const Hy=(0,za.Pi)(({body:t,formApi:r,resolvedBody:i,properties:o,id:s,validate:d})=>{var y,A;const x=t.content,w=de=>{var he;if(!x||!x.hasSample)return"";const xe=(he=x.active)==null?void 0:he.examples;if(!(xe==null?void 0:xe[de]))return"";const ve=xe==null?void 0:xe[de].value,we=o?vg()(ve,o,{arrayMerge:Vi.lN}):ve;return JSON.stringify(we,null,2)},F=(y=x==null?void 0:x.operation)==null?void 0:y.activeExampleName,W=de=>{x==null||x.activateExampleName(de),r.setValue("body",w(de))},re=(de,he)=>{const{setValue:xe}=r;xe(`body.${de}`,he)};(0,h.useEffect)(()=>{var de,he;if((de=x==null?void 0:x.operation)==null?void 0:de.activeMimeName){const xe=(0,dr.P6)(s,x.operation.activeMimeName,F,(he=x==null?void 0:x.active)==null?void 0:he.examples);r.setValue("body",(0,jt.YQ)(xe)||w(F||""))}else r.setValue("body",JSON.stringify(o||{},null,2))},[F,(A=x==null?void 0:x.operation)==null?void 0:A.activeMimeName,x==null?void 0:x.active]);const ee=de=>ga.createElement(Lt.DropdownOrLabel,Wy(Vy({},de),{variant:"dark",fullWidth:!0,Label:Ag,Dropdown:br.Dropdown})),le=(0,h.useCallback)((de="",he="",xe=[])=>ve=>{(0,jt.WW)((0,dr.P6)(s,de,he,xe),ve)},[s]);return ga.createElement(ga.Fragment,null,ga.createElement(Lt.MediaTypesSwitch,{content:t.content,renderDropdown:ee},de=>{const he=de.examples||{},xe=Object.keys(he),ve=de.schema,we=lt(ve||{},de.name)||de.name===Mf.T.MULTIPART||de.name===Mf.T.URL_ENCODED,{exampleKey:Ne}=(0,dd.C6)(de.operation,he),Fe=(0,jt.YQ)((0,dr.P6)(s,de.name,Ne,he))||(0,dr.oY)(he[Ne],o);return ga.createElement(ga.Fragment,null,xe.length&&xe.length!==1&&ga.createElement(dd.b_,{examples:he,onChange:W,exampleKey:Ne})||null,we?ga.createElement(bg,{mediaType:de,formApi:r,onChange:re}):ga.createElement(Ry,{id:"body"+s,field:"body",initialValue:Fe,schema:((i==null?void 0:i.content[de.name])||{}).schema,mode:de.name,validate:d,onChange:le(de.name,Ne,he)}))}))}),zy=(0,h.memo)(Hy);var Va=a(67294);function Gy({response:t}){return Va.createElement(Va.Fragment,null,Va.createElement(kh,null," Body: "),$y(t))}function $y(t){return t.body?Va.createElement(Lt.JsonViewer,{data:t.body}):t.fileInfo?Va.createElement(Lt.SourceCodeWithFile,{fileInfo:t.fileInfo}):t.data!==null?t.data?Va.createElement(Lt.SourceCodeWithText,{lang:(0,Lt.langFromMime)(t.headers["Content-Type"]||"text/plain"),source:t.data}):Va.createElement(Mh,null,Va.createElement("i",null,"(no content)")):null}var Wa=a(67294);function Ky({headers:t}){const r=(0,h.useContext)(Lt.OptionsContext),[i,o]=(0,h.useState)(!0),{maxResponseHeadersToShowInTryIt:s}=r,d=Object.keys(t),y=!!s&&d.length>s,A=y&&i?[...d].splice(0,s):[...d],x=()=>{o(!i)};return Wa.createElement(Wa.Fragment,null,Wa.createElement(kh,null," Headers: "),Wa.createElement(Mh,null,A.map(w=>Wa.createElement("div",{key:w},Wa.createElement(Ph,null,w,":"),Wa.createElement("code",null,t[w]))),y&&Wa.createElement(Ih,{onClick:x},i?"Show more...":"Hide headers")))}const Ph=Lt.styled.strong`
435
435
  text-transform: capitalize;
436
436
  display: inline-block;
437
437
  padding-right: 5px;
@@ -464,18 +464,18 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function ny(t){return t.i
464
464
  `,Mh=(0,Lt.styled)(Nl.nr)`
465
465
  border-top-left-radius: 0;
466
466
  border-top-right-radius: 0;
467
- `;class Qy extends h.PureComponent{render(){const{error:r,response:i,time:o}=this.props,s=i||r&&r.response,d=s&&s.data&&s.data.length||0;let g;return d>1e6?g=(d/1e6).toFixed(2)+" MB":d>1e3?g=(d/1e3).toFixed(2)+" KB":g=d+" B",r&&!r.response||!s?Cr.createElement(Cr.Fragment,null,Cr.createElement(Fh,null," Could not get any response "),Cr.createElement(Xy,null,r&&r.message||"Unknown error"),Cr.createElement("br",null),Cr.createElement(Fh,null," Why this might have happened:"),Cr.createElement("div",null," - CORS is misconfigured on the server"),Cr.createElement("div",null," - ","The server couldn't send a response"),Cr.createElement("div",null," - No internet access"),Cr.createElement("div",null," - Documentation issue - contact API owner"),Cr.createElement("div",null," - Misconfigured security definition")):s?Cr.createElement(Cr.Fragment,null,Cr.createElement(Yy,null,Cr.createElement(Jy,{code:s.status},Cr.createElement("span",null," Status: "),s.status," ",s.statusText),Cr.createElement(Id,null,Cr.createElement("span",null," Time: "),o,"ms"),Cr.createElement(Id,null,Cr.createElement("span",null," Size: "),g)),Cr.createElement("div",null,Cr.createElement(Ky,{headers:s.headers}),Cr.createElement(Gy,{response:s}))):Cr.createElement(Cr.Fragment,null,"Something went wrong")}}var Lh=a(46538),_l=a(67294);function Zy(t,r,i){const o=r.path||{},s=r.query||{},d=Object.keys(s);let g=(0,mr.v5)(t,o);const A=x=>i.find(w=>w.name===x&&w.in==="query");return d.length&&(g+="?"+d.map(x=>{if(!s[x])return"";const w=A(x);return w?(0,Lt.serializeParameterValue)(w,s[x]):`${x}=${encodeURIComponent(s[x])}`}).filter(Boolean).join("&")),g}const qy=({loading:t,operation:r,hasResponse:i,execute:o,params:s={}})=>_l.createElement(em,null,_l.createElement(Lh.__,null,_l.createElement(Eo.FH,{type:r.httpVerb},r.httpVerb),_l.createElement(Lh.y$,{wrap:"true"},Zy(r.path,s,r.parameters))),_l.createElement(_y,{"data-cy":"send-button",color:"primary",blinking:t,onClick:()=>!t&&o()},t?"Sending...":i?"Resend":"Send")),_y=(0,Lt.styled)(Eo.zx)`
467
+ `;class Qy extends h.PureComponent{render(){const{error:r,response:i,time:o}=this.props,s=i||r&&r.response,d=s&&s.data&&s.data.length||0;let y;return d>1e6?y=(d/1e6).toFixed(2)+" MB":d>1e3?y=(d/1e3).toFixed(2)+" KB":y=d+" B",r&&!r.response||!s?Cr.createElement(Cr.Fragment,null,Cr.createElement(Fh,null," Could not get any response "),Cr.createElement(Xy,null,r&&r.message||"Unknown error"),Cr.createElement("br",null),Cr.createElement(Fh,null," Why this might have happened:"),Cr.createElement("div",null," - CORS is misconfigured on the server"),Cr.createElement("div",null," - ","The server couldn't send a response"),Cr.createElement("div",null," - No internet access"),Cr.createElement("div",null," - Documentation issue - contact API owner"),Cr.createElement("div",null," - Misconfigured security definition")):s?Cr.createElement(Cr.Fragment,null,Cr.createElement(Yy,null,Cr.createElement(Jy,{code:s.status},Cr.createElement("span",null," Status: "),s.status," ",s.statusText),Cr.createElement(Id,null,Cr.createElement("span",null," Time: "),o,"ms"),Cr.createElement(Id,null,Cr.createElement("span",null," Size: "),y)),Cr.createElement("div",null,Cr.createElement(Ky,{headers:s.headers}),Cr.createElement(Gy,{response:s}))):Cr.createElement(Cr.Fragment,null,"Something went wrong")}}var Lh=a(46538),_l=a(67294);function Zy(t,r,i){const o=r.path||{},s=r.query||{},d=Object.keys(s);let y=(0,dr.v5)(t,o);const A=x=>i.find(w=>w.name===x&&w.in==="query");return d.length&&(y+="?"+d.map(x=>{if(!s[x])return"";const w=A(x);return w?(0,Lt.serializeParameterValue)(w,s[x]):`${x}=${encodeURIComponent(s[x])}`}).filter(Boolean).join("&")),y}const qy=({loading:t,operation:r,hasResponse:i,execute:o,params:s={}})=>_l.createElement(em,null,_l.createElement(Lh.__,null,_l.createElement(Eo.FH,{type:r.httpVerb},r.httpVerb),_l.createElement(Lh.y$,{wrap:"true"},Zy(r.path,s,r.parameters))),_l.createElement(_y,{"data-cy":"send-button",color:"primary",blinking:t,onClick:()=>!t&&o()},t?"Sending...":i?"Resend":"Send")),_y=(0,Lt.styled)(Eo.zx)`
468
468
  width: ${({theme:t})=>t.components.tryItSendButton.fullWidth?"100%":"auto"};
469
469
  `,em=(0,Lt.styled)(Ui.k1)`
470
470
  ${({theme:t})=>t.components.tryItSendButton.fullWidth?`
471
471
  flex-direction: column;
472
472
  align-items: flex-start;`:""};
473
- `,tm=(0,h.memo)(qy);var eu=a(67294);function rm({name:t,value:r,description:i,variableEnum:o,onChange:s,defaultValue:d}){const g=(0,h.useCallback)(w=>s(w.target.value),[s]),A=(0,h.useCallback)(w=>s(w.value),[s]),x=o?o.map((w,F)=>({value:w,idx:F})):[];return eu.createElement($e.NI,null,eu.createElement($e.lX,null,t,":"),x&&x.length?eu.createElement(br.Dropdown,{fullWidth:!0,variant:"dark",value:r,options:x,onChange:A}):eu.createElement(Ln,{fullWidth:!0,value:r,onChange:g,placeholder:d}),i&&eu.createElement(nm,{compact:!0,source:i}))}const nm=(0,Lt.styled)(Lt.Markdown)`
473
+ `,tm=(0,h.memo)(qy);var eu=a(67294);function rm({name:t,value:r,description:i,variableEnum:o,onChange:s,defaultValue:d}){const y=(0,h.useCallback)(w=>s(w.target.value),[s]),A=(0,h.useCallback)(w=>s(w.value),[s]),x=o?o.map((w,F)=>({value:w,idx:F})):[];return eu.createElement($e.NI,null,eu.createElement($e.lX,null,t,":"),x&&x.length?eu.createElement(br.Dropdown,{fullWidth:!0,variant:"dark",value:r,options:x,onChange:A}):eu.createElement(Ln,{fullWidth:!0,value:r,onChange:y,placeholder:d}),i&&eu.createElement(nm,{compact:!0,source:i}))}const nm=(0,Lt.styled)(Lt.Markdown)`
474
474
  margin-top: 5px;
475
475
  color: #d0d0d0;
476
- `;var tu=a(67294),im=Object.defineProperty,am=Object.defineProperties,om=Object.getOwnPropertyDescriptors,Rh=Object.getOwnPropertySymbols,sm=Object.prototype.hasOwnProperty,lm=Object.prototype.propertyIsEnumerable,Dh=(t,r,i)=>r in t?im(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Nh=(t,r)=>{for(var i in r||(r={}))sm.call(r,i)&&Dh(t,i,r[i]);if(Rh)for(var i of Rh(r))lm.call(r,i)&&Dh(t,i,r[i]);return t},Bh=(t,r)=>am(t,om(r));const um=(0,za.Pi)(({operation:t,onChange:r})=>{const{servers:i}=t,o=(0,Ut.YQ)("serverUrl"),s=i.findIndex(de=>de.url===o),[d,g]=(0,h.useState)(s<0?0:s),[A,x]=(0,h.useState)({}),w=(0,Lt.useStore)(),F=w==null?void 0:w.options.unstable_hideServerUrlInTryIt;(0,nr.b6)(()=>{const de=(0,mr.fz)(i,d);r(de),x(de.variables)});const H=({serverUrl:de=""})=>{var pe,xe;const ve=i.find(je=>je.url===de),we=i.findIndex(je=>je.url===de),Ne=(0,mr.mj)(ve);r({url:de,variables:Ne}),(0,Ut.WW)("serverUrl",de),g(we),x(Ne);const Fe=(0,ad.Ze)({operation:t,serverUrl:de});(xe=w==null?void 0:(pe=w.options.events).targetServerSwitch)==null||xe.call(pe,Fe)},re=(de,pe)=>{const xe=i[d],ve=pe||pe===""?pe:(0,mr.mj)(xe)[de],we=Bh(Nh({},A),{[de]:ve});x(we),(0,mr.UY)(de,ve),r(Bh(Nh({},xe),{variables:we}))},ee=i.map((de,pe)=>{const xe=(0,mr.nq)((0,mr.v5)(de.url,A),de.variables),ve=F?de.description||xe:`${de.description?`${de.description} - `:""}${xe}`;return{idx:pe,serverUrl:de.url,value:ve}}),se=Object.keys(A);return tu.createElement(fm,{"data-cy":"console-target-server"},tu.createElement($e.lX,{htmlFor:"server"},"Target server: "),tu.createElement($e.NI,null,tu.createElement(br.Dropdown,{variant:"dark",value:ee[d].value,options:ee,fullWidth:!0,onChange:H})),se==null?void 0:se.map(de=>{var pe;const xe=(pe=i[d].variables)==null?void 0:pe[de];if(xe)return tu.createElement(rm,{key:de,name:de,value:A[de],defaultValue:xe.default,onChange:ve=>re(de,ve),variableEnum:xe.enum,description:xe.description})}))}),fm=Lt.styled.div`
476
+ `;var tu=a(67294),im=Object.defineProperty,am=Object.defineProperties,om=Object.getOwnPropertyDescriptors,Rh=Object.getOwnPropertySymbols,sm=Object.prototype.hasOwnProperty,lm=Object.prototype.propertyIsEnumerable,Dh=(t,r,i)=>r in t?im(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Nh=(t,r)=>{for(var i in r||(r={}))sm.call(r,i)&&Dh(t,i,r[i]);if(Rh)for(var i of Rh(r))lm.call(r,i)&&Dh(t,i,r[i]);return t},Bh=(t,r)=>am(t,om(r));const um=(0,za.Pi)(({operation:t,onChange:r})=>{const{servers:i}=t,o=(0,jt.YQ)("serverUrl"),s=i.findIndex(de=>de.url===o),[d,y]=(0,h.useState)(s<0?0:s),[A,x]=(0,h.useState)({}),w=(0,Lt.useStore)(),F=w==null?void 0:w.options.unstable_hideServerUrlInTryIt;(0,nr.b6)(()=>{const de=(0,dr.fz)(i,d);r(de),x(de.variables)});const W=({serverUrl:de=""})=>{var he,xe;const ve=i.find(je=>je.url===de),we=i.findIndex(je=>je.url===de),Ne=(0,dr.mj)(ve);r({url:de,variables:Ne}),(0,jt.WW)("serverUrl",de),y(we),x(Ne);const Fe=(0,ad.Ze)({operation:t,serverUrl:de});(xe=w==null?void 0:(he=w.options.events).targetServerSwitch)==null||xe.call(he,Fe)},re=(de,he)=>{const xe=i[d],ve=he||he===""?he:(0,dr.mj)(xe)[de],we=Bh(Nh({},A),{[de]:ve});x(we),(0,dr.UY)(de,ve),r(Bh(Nh({},xe),{variables:we}))},ee=i.map((de,he)=>{const xe=(0,dr.nq)((0,dr.v5)(de.url,A),de.variables),ve=F?de.description||xe:`${de.description?`${de.description} - `:""}${xe}`;return{idx:he,serverUrl:de.url,value:ve}}),le=Object.keys(A);return tu.createElement(fm,{"data-cy":"console-target-server"},tu.createElement($e.lX,{htmlFor:"server"},"Target server: "),tu.createElement($e.NI,null,tu.createElement(br.Dropdown,{variant:"dark",value:ee[d].value,options:ee,fullWidth:!0,onChange:W})),le==null?void 0:le.map(de=>{var he;const xe=(he=i[d].variables)==null?void 0:he[de];if(xe)return tu.createElement(rm,{key:de,name:de,value:A[de],defaultValue:xe.default,onChange:ve=>re(de,ve),variableEnum:xe.enum,description:xe.description})}))}),fm=Lt.styled.div`
477
477
  margin-bottom: 20px;
478
- `;var cm=a(72940),Io=a(67294),dm=Object.defineProperty,pm=Object.defineProperties,hm=Object.getOwnPropertyDescriptors,Yf=Object.getOwnPropertySymbols,jh=Object.prototype.hasOwnProperty,Uh=Object.prototype.propertyIsEnumerable,Vh=(t,r,i)=>r in t?dm(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,vm=(t,r)=>{for(var i in r||(r={}))jh.call(r,i)&&Vh(t,i,r[i]);if(Yf)for(var i of Yf(r))Uh.call(r,i)&&Vh(t,i,r[i]);return t},gm=(t,r)=>pm(t,hm(r)),ym=(t,r)=>{var i={};for(var o in t)jh.call(t,o)&&r.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&Yf)for(var o of Yf(t))r.indexOf(o)<0&&Uh.call(t,o)&&(i[o]=t[o]);return i};function Fd(t){var r=t,{header:i,error:o,success:s}=r,d=ym(r,["header","error","success"]);const g=({toggle:A,expanded:x})=>Io.createElement(Ui.h4,{onClick:A,isExpanded:x,"data-cy":d["data-cy"]},Io.createElement(Ui.xz,null,Io.createElement(Ui.Dx,null,i),Io.createElement(Lt.ShelfIcon,{direction:x?"down":"right"})),o&&Io.createElement(Lt.CrossIcon,{size:"14px",color:"#ff908b"})||null,s&&Io.createElement(Lt.LockIcon,{size:"14px",color:"#56ff26"})||null);return Io.createElement(mm,gm(vm({},d),{header:g}))}const mm=(0,Tt.ZP)(Ui.s_)`
478
+ `;var cm=a(72940),Io=a(67294),dm=Object.defineProperty,pm=Object.defineProperties,hm=Object.getOwnPropertyDescriptors,Yf=Object.getOwnPropertySymbols,jh=Object.prototype.hasOwnProperty,Uh=Object.prototype.propertyIsEnumerable,Vh=(t,r,i)=>r in t?dm(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,vm=(t,r)=>{for(var i in r||(r={}))jh.call(r,i)&&Vh(t,i,r[i]);if(Yf)for(var i of Yf(r))Uh.call(r,i)&&Vh(t,i,r[i]);return t},gm=(t,r)=>pm(t,hm(r)),ym=(t,r)=>{var i={};for(var o in t)jh.call(t,o)&&r.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&Yf)for(var o of Yf(t))r.indexOf(o)<0&&Uh.call(t,o)&&(i[o]=t[o]);return i};function Fd(t){var r=t,{header:i,error:o,success:s}=r,d=ym(r,["header","error","success"]);const y=({toggle:A,expanded:x})=>Io.createElement(Ui.h4,{onClick:A,isExpanded:x,"data-cy":d["data-cy"]},Io.createElement(Ui.xz,null,Io.createElement(Ui.Dx,null,i),Io.createElement(Lt.ShelfIcon,{direction:x?"down":"right"})),o&&Io.createElement(Lt.CrossIcon,{size:"14px",color:"#ff908b"})||null,s&&Io.createElement(Lt.LockIcon,{size:"14px",color:"#56ff26"})||null);return Io.createElement(mm,gm(vm({},d),{header:y}))}const mm=(0,Tt.ZP)(Ui.s_)`
479
479
  ${Ui.h4} {
480
480
  color: white;
481
481
  border: 1px solid ${({error:t})=>t?"#ff908b":"#89949f"};
@@ -492,10 +492,10 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function ny(t){return t.i
492
492
  border: 1px solid ${({error:t})=>t?"#ff908b":"#89949f"};
493
493
  border-top: 0;
494
494
  }
495
- `;var Pr=a(67294),Wh=Object.defineProperty,xm=Object.defineProperties,bm=Object.getOwnPropertyDescriptor,Sm=Object.getOwnPropertyDescriptors,Jf=Object.getOwnPropertySymbols,Hh=Object.prototype.hasOwnProperty,zh=Object.prototype.propertyIsEnumerable,kd=(t,r,i)=>r in t?Wh(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,tn=(t,r)=>{for(var i in r||(r={}))Hh.call(r,i)&&kd(t,i,r[i]);if(Jf)for(var i of Jf(r))zh.call(r,i)&&kd(t,i,r[i]);return t},Vn=(t,r)=>xm(t,Sm(r)),Am=(t,r)=>{var i={};for(var o in t)Hh.call(t,o)&&r.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&Jf)for(var o of Jf(t))r.indexOf(o)<0&&zh.call(t,o)&&(i[o]=t[o]);return i},wm=(t,r,i,o)=>{for(var s=o>1?void 0:o?bm(r,i):r,d=t.length-1,g;d>=0;d--)(g=t[d])&&(s=(o?g(r,i,s):g(s))||s);return o&&s&&Wh(r,i,s),s},Fs=(t,r,i)=>(kd(t,typeof r!="symbol"?r+"":r,i),i),Gh=(t,r,i)=>new Promise((o,s)=>{var d=x=>{try{A(i.next(x))}catch(w){s(w)}},g=x=>{try{A(i.throw(x))}catch(w){s(w)}},A=x=>x.done?o(x.value):Promise.resolve(x.value).then(d,g);A((i=i.apply(t,r)).next())});function $h(t){return t.startsWith("//")?"https:"+t:t}const Cm={flex:1,display:"flex",flexDirection:"column"};let Md=class extends h.Component{constructor(t){super(t);Fs(this,"formApi"),Fs(this,"setFormApi",r=>{this.formApi=r;const i=r.getState(),{values:o}=i,s=Am(i,["values"]);setTimeout(()=>{const d=Vn(tn({},s),{values:Vn(tn({},o),{query:(0,mr.FU)(o.query||{})})});this.setState({form:d})},0)}),Fs(this,"handleValueChange",r=>{const i=Vn(tn({},r),{query:(0,mr.FU)(r.query||{})});this.setState(o=>({form:Vn(tn({},o.form),{values:i})}),()=>{(0,mr.Hc)(this.state.form),this.props.operation.setRequestValues(r)})}),Fs(this,"handleTabChange",r=>{this.setState({activeTab:r})}),Fs(this,"handleServerChange",r=>{this.setState({server:r}),this.props.operation.setActiveServer(r)}),Fs(this,"handleExecute",()=>Gh(this,null,function*(){var r,i,o,s,d,g,A,x,w,F;const{store:H,operation:re,onResponse:ee}=this.props;(r=this.formApi)==null||r.submitForm();const{invalid:se}=this.state.form||((i=this.formApi)==null?void 0:i.getState());if(se){this.setState({shaking:!0}),setTimeout(()=>this.setState({shaking:!1}),1e3),(s=(o=H==null?void 0:H.options.events)==null?void 0:o.tryItSent)==null||s.call(o,{eventType:ad.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"ValidationFailed",operationId:re.operationId,operationPath:re.path,operationHttpVerb:re.httpVerb,operationSummary:re.description});return}const{values:de}=this.state.form||((d=this.formApi)==null?void 0:d.getState()),{servers:pe,requestBody:xe}=this.props.operation,ve=xe&&xe.content&&xe.content.active&&xe.content.active.name||"";let we=de.body;if(/json/.test(ve))try{we=JSON.parse(we)}catch(_e){console.error(_e)}this.setState({loading:!0});const Ne=this.state.resolvedRawSpec,Fe=(re.httpVerb||"").toLowerCase();if(!pe)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 je=pe.find(_e=>this.state.server.url.endsWith(_e.url.endsWith("/")?_e.url.substring(0,_e.url.length-1):_e.url)),ke=Date.now();let Me,De=de.auth;if(de.auth){const _e=Object.keys(de.auth)[0],bt=(0,Ut.dw)(_e);Me=Vn(tn({},Ne),{components:Vn(tn({},Ne==null?void 0:Ne.components),{securitySchemes:Vn(tn({},Ne==null?void 0:Ne.components.securitySchemes),{[bt]:Vn(tn({},Ne==null?void 0:Ne.components.securitySchemes[bt]),{type:(Ne==null?void 0:Ne.components.securitySchemes[bt].type)==="openIdConnect"?"oauth2":Ne==null?void 0:Ne.components.securitySchemes[bt].type})})})});const Rt=(Ne==null?void 0:Ne.components.securitySchemes[bt].in)==="cookie"?"Cookie":bt,or=(Ne==null?void 0:Ne.components.securitySchemes[bt].in)==="cookie"?`${Ne==null?void 0:Ne.components.securitySchemes[bt].name}=${De[_e]}`:De[_e];De=Vn(tn({},De),{[Rt]:or})}else Me=tn({},Ne);Me.servers=pe;const Ve=H.options.corsProxyUrl;Ve&&pe.length&&(Me.servers=pe.map(_e=>Vn(tn({},_e),{url:Ve+$h(_e.url)})),Me.paths=Vn(tn({},Me.paths),{[re.path]:Vn(tn({},Me.paths[re.path]),{[Fe]:Vn(tn({},Me.paths[re.path][Fe]),{servers:void 0}),servers:void 0})}));const Ke=((A=(g=xe==null?void 0:xe.content)==null?void 0:g.active)==null?void 0:A.name)||null;if(Ke&&we&&et(Ke)){const _e=Object.values(we);we=_e.length>1?_e:_e[0]}const Ze={server:Ve?Ve+$h(je.url):je.url,serverVariables:this.state.server.variables,spec:Me,pathName:re.path,method:re.httpVerb,parameters:tn(tn(tn(tn({},de.path),de.query),de.header),de.cookie),securities:{authorized:De},requestBody:we,requestContentType:Ke,responseContentType:((x=de.header)==null?void 0:x.Accept)||null,requestInterceptor:(0,mr.Tz)(H.options,re,De)};try{const _e=yield td.execute(Ze),bt=_e==null?void 0:_e.data;bt instanceof Blob&&(et(bt.type)&&(_e.fileInfo={rawData:bt,fileName:(0,mr.AM)(_e.headers)}),_e.data=yield bt.text()),ee==null||ee({request:Ze,response:_e}),this.setState({response:_e,error:void 0})}catch(_e){_e&&_e.response&&_e.response.data instanceof Blob&&(_e.response.data=yield _e.response.data.text(),ee==null||ee({request:Ze,response:_e.response})),this.setState({response:void 0,error:_e})}finally{this.setState({loading:!1,activeTab:1,time:Date.now()-ke}),(F=(w=H==null?void 0:H.options.events)==null?void 0:w.tryItSent)==null||F.call(w,{eventType:ad.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"Sent",operationId:re.operationId,operationPath:re.path,operationHttpVerb:re.httpVerb,operationSummary:re.description})}})),this.state={form:{values:{path:(0,mr.ZS)(t.operation.parameters,"path"),cookie:(0,mr.ZS)(t.operation.parameters,"cookie"),header:(0,mr.ZS)(t.operation.parameters,"header"),query:(0,mr.ZS)(t.operation.parameters,"query")}},shaking:!1,loading:!1,activeTab:0,server:{}}}componentDidMount(){return Gh(this,null,function*(){var t;const{store:r,operation:i}=this.props,o=yield r.dereferenceSpecForTryIt(i);this.setState({resolvedRawSpec:o}),(t=this.formApi)==null||t.setValues({})})}componentDidUpdate(t){t.operation!==this.props.operation&&this.setState({response:void 0,error:void 0,activeTab:0})}render(){const{operation:t,className:r,rootElement:i}=this.props,{shaking:o,activeTab:s,form:d,response:g,loading:A,error:x}=this.state,w=!!(g||x);return Pr.createElement(Om,{shaking:o,className:r,rootElement:i},Pr.createElement(Ui.k1,null,Pr.createElement(pg,{active:s,hasResponse:w,onChange:this.handleTabChange}),this.props.onClose&&Pr.createElement(Ss.PZ,{onClick:this.props.onClose}," \u2715 ")),Pr.createElement(Ss.RE,{hidden:s!==0,"data-cy":"console-request-body"},this.renderRequest()),Pr.createElement(Ss.RE,{hidden:s!==1,"data-cy":"console-response-body"},this.renderResponse()),Pr.createElement(tm,{hasResponse:w,params:d.values,operation:t,loading:A,execute:this.handleExecute}))}renderRequest(){var t;const{operation:r,store:i,properties:o,securityDefaults:s}=this.props,{form:d,resolvedRawSpec:g,server:A}=this.state,x=d.errors||{},w=x.path||x.cookie||x.header||x.query,F=g&&Lt.JsonPointer.get(g,r.pointer);let H=d.values&&d.values.auth&&Object.keys(d.values.auth)[0];(!H||!d.values.auth[H])&&(H=void 0),H&&(d.values.auth[H].token!==void 0||d.values.auth[H].client_id!==void 0||d.values.auth[H].client_secret!==void 0)&&(!d.values.auth[H].token||!d.values.auth[H].token.access_token)&&(H=void 0),H&&d.values.auth[H].username!=null&&(!d.values.auth[H].username||!d.values.auth[H].password)&&(H=void 0);const re=r.parameters||[],ee=(t=i==null?void 0:i.options.hooks)==null?void 0:t.ReplaceTryItSecurityPanel;return!g&&Pr.createElement(Pr.Fragment,null,"Loading...")||Pr.createElement(cu,{onValueChange:this.handleValueChange,getApi:this.setFormApi,style:Vn(tn({},Cm),{margin:0})},Pr.createElement(um,{operation:r,onChange:this.handleServerChange}),Pr.createElement(Ui.UQ,{initialActiveIdx:r.security.length&&H?1:0},r.security.length&&this.formApi&&Pr.createElement(Fd,{header:(0,Ma.l)("tryItAuth"),"data-cy":"security-trigger",renderChildrenHidden:!0,error:!H&&!!x.auth,success:!!H},ee?Pr.createElement(Tm,{field:"auth",validate:Wl},se=>Pr.createElement(ar.Q,{Hook:ee,props:{server:A,operation:r,onChange:se,OAuth2:f}})):Pr.createElement(cg,{formApi:this.formApi,form:d,operation:r,activeServer:A.url,authCorsProxyUrl:i.options.authCorsProxyUrl,securityDefaults:s}))||null,r.requestBody&&this.formApi&&Pr.createElement(Fd,{header:(0,Ma.l)("tryItBody"),"data-cy":"body-trigger",renderChildrenHidden:!0,error:!!x.body},Pr.createElement(zy,{validate:Em,formApi:this.formApi,body:r.requestBody,id:r.id,resolvedBody:F==null?void 0:F.requestBody,properties:o}))||null,re.length&&Pr.createElement(Fd,{header:(0,Ma.l)("tryItParameters"),"data-cy":"parameters-trigger",error:w,renderChildrenHidden:!0},Pr.createElement(pv,{operation:r,values:d.values,errors:d.errors||{}}))||null))}renderResponse(){const{response:t,error:r,time:i}=this.state;return Pr.createElement(Qy,{response:t,error:r,time:i})}};Md=wm([za.Pi],Md);function Em(){}function Om(t){const{shaking:r,className:i,children:o,rootElement:s}=t,[d]=(0,nr.Bs)(s);return Pr.createElement(Ss.q2,{shaking:r,className:i,"data-cy":"console",fullWidth:d==null?void 0:d.width},o)}function Tm(t){const{fieldApi:r,render:i,userProps:o}=Rn(tn({},t)),{setValue:s}=r,{children:d}=o;return i(Pr.createElement(Pr.Fragment,null,d(s)))}},68929:()=>{},17648:p=>{"use strict";var I="Function.prototype.bind called on incompatible ",a=Array.prototype.slice,c=Object.prototype.toString,v="[object Function]";p.exports=function(h){var b=this;if(typeof b!="function"||c.call(b)!==v)throw new TypeError(I+b);for(var C=a.call(arguments,1),S,L=function(){if(this instanceof S){var K=b.apply(this,C.concat(a.call(arguments)));return Object(K)===K?K:this}else return b.apply(h,C.concat(a.call(arguments)))},N=Math.max(0,b.length-C.length),j=[],U=0;U<N;U++)j.push("$"+U);if(S=Function("binder","return function ("+j.join(",")+"){ return binder.apply(this,arguments); }")(L),b.prototype){var Q=function(){};Q.prototype=b.prototype,S.prototype=new Q,Q.prototype=null}return S}},58612:(p,I,a)=>{"use strict";var c=a(17648);p.exports=Function.prototype.bind||c},40210:(p,I,a)=>{"use strict";var c,v=SyntaxError,m=Function,h=TypeError,b=function(ge){try{return m('"use strict"; return ('+ge+").constructor;")()}catch(me){}},C=Object.getOwnPropertyDescriptor;if(C)try{C({},"")}catch(ge){C=null}var S=function(){throw new h},L=C?function(){try{return arguments.callee,S}catch(ge){try{return C(arguments,"callee").get}catch(me){return S}}}():S,N=a(41405)(),j=Object.getPrototypeOf||function(ge){return ge.__proto__},U={},Q=typeof Uint8Array=="undefined"?c:j(Uint8Array),K={"%AggregateError%":typeof AggregateError=="undefined"?c:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?c:ArrayBuffer,"%ArrayIteratorPrototype%":N?j([][Symbol.iterator]()):c,"%AsyncFromSyncIteratorPrototype%":c,"%AsyncFunction%":U,"%AsyncGenerator%":U,"%AsyncGeneratorFunction%":U,"%AsyncIteratorPrototype%":U,"%Atomics%":typeof Atomics=="undefined"?c:Atomics,"%BigInt%":typeof BigInt=="undefined"?c:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?c:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?c:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?c:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?c:FinalizationRegistry,"%Function%":m,"%GeneratorFunction%":U,"%Int8Array%":typeof Int8Array=="undefined"?c:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?c:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?c:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":N?j(j([][Symbol.iterator]())):c,"%JSON%":typeof JSON=="object"?JSON:c,"%Map%":typeof Map=="undefined"?c:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!N?c:j(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?c:Promise,"%Proxy%":typeof Proxy=="undefined"?c:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?c:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?c:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!N?c:j(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?c:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":N?j(""[Symbol.iterator]()):c,"%Symbol%":N?Symbol:c,"%SyntaxError%":v,"%ThrowTypeError%":L,"%TypedArray%":Q,"%TypeError%":h,"%Uint8Array%":typeof Uint8Array=="undefined"?c:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?c:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?c:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?c:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?c:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?c:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?c:WeakSet},M=function ge(me){var he;if(me==="%AsyncFunction%")he=b("async function () {}");else if(me==="%GeneratorFunction%")he=b("function* () {}");else if(me==="%AsyncGeneratorFunction%")he=b("async function* () {}");else if(me==="%AsyncGenerator%"){var le=ge("%AsyncGeneratorFunction%");le&&(he=le.prototype)}else if(me==="%AsyncIteratorPrototype%"){var ie=ge("%AsyncGenerator%");ie&&(he=j(ie.prototype))}return K[me]=he,he},Y={"%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"]},R=a(58612),E=a(17642),V=R.call(Function.call,Array.prototype.concat),G=R.call(Function.apply,Array.prototype.splice),Z=R.call(Function.call,String.prototype.replace),X=R.call(Function.call,String.prototype.slice),z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ue=/\\(\\)?/g,q=function(me){var he=X(me,0,1),le=X(me,-1);if(he==="%"&&le!=="%")throw new v("invalid intrinsic syntax, expected closing `%`");if(le==="%"&&he!=="%")throw new v("invalid intrinsic syntax, expected opening `%`");var ie=[];return Z(me,z,function(Oe,Pe,Te,Ce){ie[ie.length]=Te?Z(Ce,ue,"$1"):Pe||Oe}),ie},ne=function(me,he){var le=me,ie;if(E(Y,le)&&(ie=Y[le],le="%"+ie[0]+"%"),E(K,le)){var Oe=K[le];if(Oe===U&&(Oe=M(le)),typeof Oe=="undefined"&&!he)throw new h("intrinsic "+me+" exists, but is not available. Please file an issue!");return{alias:ie,name:le,value:Oe}}throw new v("intrinsic "+me+" does not exist!")};p.exports=function(me,he){if(typeof me!="string"||me.length===0)throw new h("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof he!="boolean")throw new h('"allowMissing" argument must be a boolean');var le=q(me),ie=le.length>0?le[0]:"",Oe=ne("%"+ie+"%",he),Pe=Oe.name,Te=Oe.value,Ce=!1,Xe=Oe.alias;Xe&&(ie=Xe[0],G(le,V([0,1],Xe)));for(var He=1,Je=!0;He<le.length;He+=1){var ut=le[He],ft=X(ut,0,1),yt=X(ut,-1);if((ft==='"'||ft==="'"||ft==="`"||yt==='"'||yt==="'"||yt==="`")&&ft!==yt)throw new v("property names with quotes must have matching quotes");if((ut==="constructor"||!Je)&&(Ce=!0),ie+="."+ut,Pe="%"+ie+"%",E(K,Pe))Te=K[Pe];else if(Te!=null){if(!(ut in Te)){if(!he)throw new h("base intrinsic for "+me+" exists, but the property is not available.");return}if(C&&He+1>=le.length){var Qe=C(Te,ut);Je=!!Qe,Je&&"get"in Qe&&!("originalValue"in Qe.get)?Te=Qe.get:Te=Te[ut]}else Je=E(Te,ut),Te=Te[ut];Je&&!Ce&&(K[Pe]=Te)}}return Te}},41405:(p,I,a)=>{"use strict";var c=typeof Symbol!="undefined"&&Symbol,v=a(55419);p.exports=function(){return typeof c!="function"||typeof Symbol!="function"||typeof c("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:v()}},55419:p=>{"use strict";p.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var a={},c=Symbol("test"),v=Object(c);if(typeof c=="string"||Object.prototype.toString.call(c)!=="[object Symbol]"||Object.prototype.toString.call(v)!=="[object Symbol]")return!1;var m=42;a[c]=m;for(c in a)return!1;if(typeof Object.keys=="function"&&Object.keys(a).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(a).length!==0)return!1;var h=Object.getOwnPropertySymbols(a);if(h.length!==1||h[0]!==c||!Object.prototype.propertyIsEnumerable.call(a,c))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var b=Object.getOwnPropertyDescriptor(a,c);if(b.value!==m||b.enumerable!==!0)return!1}return!0}},17642:(p,I,a)=>{"use strict";var c=a(58612);p.exports=c.call(Function.call,Object.prototype.hasOwnProperty)},57514:p=>{p.exports=window.FormData},93320:(p,I,a)=>{"use strict";var c=a(51294);p.exports=c},51294:(p,I,a)=>{"use strict";var c=a(40028),v=a(96157);function m(h){return function(){throw new Error("Function "+h+" is deprecated and cannot be used.")}}p.exports.Type=a(53899),p.exports.Schema=a(82409),p.exports.FAILSAFE_SCHEMA=a(75322),p.exports.JSON_SCHEMA=a(65796),p.exports.CORE_SCHEMA=a(17318),p.exports.DEFAULT_SAFE_SCHEMA=a(5972),p.exports.DEFAULT_FULL_SCHEMA=a(19321),p.exports.load=c.load,p.exports.loadAll=c.loadAll,p.exports.safeLoad=c.safeLoad,p.exports.safeLoadAll=c.safeLoadAll,p.exports.dump=v.dump,p.exports.safeDump=v.safeDump,p.exports.YAMLException=a(14884),p.exports.MINIMAL_SCHEMA=a(75322),p.exports.SAFE_SCHEMA=a(5972),p.exports.DEFAULT_SCHEMA=a(19321),p.exports.scan=m("scan"),p.exports.parse=m("parse"),p.exports.compose=m("compose"),p.exports.addConstructor=m("addConstructor")},25596:p=>{"use strict";function I(b){return typeof b=="undefined"||b===null}function a(b){return typeof b=="object"&&b!==null}function c(b){return Array.isArray(b)?b:I(b)?[]:[b]}function v(b,C){var S,L,N,j;if(C)for(j=Object.keys(C),S=0,L=j.length;S<L;S+=1)N=j[S],b[N]=C[N];return b}function m(b,C){var S="",L;for(L=0;L<C;L+=1)S+=b;return S}function h(b){return b===0&&Number.NEGATIVE_INFINITY===1/b}p.exports.isNothing=I,p.exports.isObject=a,p.exports.toArray=c,p.exports.repeat=m,p.exports.isNegativeZero=h,p.exports.extend=v},96157:(p,I,a)=>{"use strict";var c=a(25596),v=a(14884),m=a(19321),h=a(5972),b=Object.prototype.toString,C=Object.prototype.hasOwnProperty,S=9,L=10,N=13,j=32,U=33,Q=34,K=35,M=37,Y=38,R=39,E=42,V=44,G=45,Z=58,X=61,z=62,ue=63,q=64,ne=91,ge=93,me=96,he=123,le=124,ie=125,Oe={};Oe[0]="\\0",Oe[7]="\\a",Oe[8]="\\b",Oe[9]="\\t",Oe[10]="\\n",Oe[11]="\\v",Oe[12]="\\f",Oe[13]="\\r",Oe[27]="\\e",Oe[34]='\\"',Oe[92]="\\\\",Oe[133]="\\N",Oe[160]="\\_",Oe[8232]="\\L",Oe[8233]="\\P";var Pe=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Te(D,_){var fe,te,ce,be,Le,Re,We;if(_===null)return{};for(fe={},te=Object.keys(_),ce=0,be=te.length;ce<be;ce+=1)Le=te[ce],Re=String(_[Le]),Le.slice(0,2)==="!!"&&(Le="tag:yaml.org,2002:"+Le.slice(2)),We=D.compiledTypeMap.fallback[Le],We&&C.call(We.styleAliases,Re)&&(Re=We.styleAliases[Re]),fe[Le]=Re;return fe}function Ce(D){var _,fe,te;if(_=D.toString(16).toUpperCase(),D<=255)fe="x",te=2;else if(D<=65535)fe="u",te=4;else if(D<=4294967295)fe="U",te=8;else throw new v("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+fe+c.repeat("0",te-_.length)+_}function Xe(D){this.schema=D.schema||m,this.indent=Math.max(1,D.indent||2),this.noArrayIndent=D.noArrayIndent||!1,this.skipInvalid=D.skipInvalid||!1,this.flowLevel=c.isNothing(D.flowLevel)?-1:D.flowLevel,this.styleMap=Te(this.schema,D.styles||null),this.sortKeys=D.sortKeys||!1,this.lineWidth=D.lineWidth||80,this.noRefs=D.noRefs||!1,this.noCompatMode=D.noCompatMode||!1,this.condenseFlow=D.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function He(D,_){for(var fe=c.repeat(" ",_),te=0,ce=-1,be="",Le,Re=D.length;te<Re;)ce=D.indexOf(`
495
+ `;var Pr=a(67294),Wh=Object.defineProperty,xm=Object.defineProperties,bm=Object.getOwnPropertyDescriptor,Sm=Object.getOwnPropertyDescriptors,Jf=Object.getOwnPropertySymbols,Hh=Object.prototype.hasOwnProperty,zh=Object.prototype.propertyIsEnumerable,kd=(t,r,i)=>r in t?Wh(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,tn=(t,r)=>{for(var i in r||(r={}))Hh.call(r,i)&&kd(t,i,r[i]);if(Jf)for(var i of Jf(r))zh.call(r,i)&&kd(t,i,r[i]);return t},Vn=(t,r)=>xm(t,Sm(r)),Am=(t,r)=>{var i={};for(var o in t)Hh.call(t,o)&&r.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&Jf)for(var o of Jf(t))r.indexOf(o)<0&&zh.call(t,o)&&(i[o]=t[o]);return i},wm=(t,r,i,o)=>{for(var s=o>1?void 0:o?bm(r,i):r,d=t.length-1,y;d>=0;d--)(y=t[d])&&(s=(o?y(r,i,s):y(s))||s);return o&&s&&Wh(r,i,s),s},Fs=(t,r,i)=>(kd(t,typeof r!="symbol"?r+"":r,i),i),Gh=(t,r,i)=>new Promise((o,s)=>{var d=x=>{try{A(i.next(x))}catch(w){s(w)}},y=x=>{try{A(i.throw(x))}catch(w){s(w)}},A=x=>x.done?o(x.value):Promise.resolve(x.value).then(d,y);A((i=i.apply(t,r)).next())});function $h(t){return t.startsWith("//")?"https:"+t:t}const Cm={flex:1,display:"flex",flexDirection:"column"};let Md=class extends h.Component{constructor(t){super(t);Fs(this,"formApi"),Fs(this,"setFormApi",r=>{this.formApi=r;const i=r.getState(),{values:o}=i,s=Am(i,["values"]);setTimeout(()=>{const d=Vn(tn({},s),{values:Vn(tn({},o),{query:(0,dr.FU)(o.query||{}),path:(0,dr.FU)(o.path||{})})});this.setState({form:d})},0)}),Fs(this,"handleValueChange",r=>{const i=Vn(tn({},r),{query:(0,dr.FU)(r.query||{}),path:(0,dr.FU)(r.path||{})});this.setState(o=>({form:Vn(tn({},o.form),{values:i})}),()=>{(0,dr.Hc)(this.state.form),this.props.operation.setRequestValues(r)})}),Fs(this,"handleTabChange",r=>{this.setState({activeTab:r})}),Fs(this,"handleServerChange",r=>{this.setState({server:r}),this.props.operation.setActiveServer(r)}),Fs(this,"handleExecute",()=>Gh(this,null,function*(){var r,i,o,s,d,y,A,x,w,F;const{store:W,operation:re,onResponse:ee}=this.props;(r=this.formApi)==null||r.submitForm();const{invalid:le}=this.state.form||((i=this.formApi)==null?void 0:i.getState());if(le){this.setState({shaking:!0}),setTimeout(()=>this.setState({shaking:!1}),1e3),(s=(o=W==null?void 0:W.options.events)==null?void 0:o.tryItSent)==null||s.call(o,{eventType:ad.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"ValidationFailed",operationId:re.operationId,operationPath:re.path,operationHttpVerb:re.httpVerb,operationSummary:re.description});return}const{values:de}=this.state.form||((d=this.formApi)==null?void 0:d.getState()),{servers:he,requestBody:xe}=this.props.operation,ve=xe&&xe.content&&xe.content.active&&xe.content.active.name||"";let we=de.body;if(/json/.test(ve))try{we=JSON.parse(we)}catch(_e){console.error(_e)}this.setState({loading:!0});const Ne=this.state.resolvedRawSpec,Fe=(re.httpVerb||"").toLowerCase();if(!he)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 je=he.find(_e=>this.state.server.url.endsWith(_e.url.endsWith("/")?_e.url.substring(0,_e.url.length-1):_e.url)),ke=Date.now();let Me,De=de.auth;if(de.auth){const _e=Object.keys(de.auth)[0],bt=(0,jt.dw)(_e);Me=Vn(tn({},Ne),{components:Vn(tn({},Ne==null?void 0:Ne.components),{securitySchemes:Vn(tn({},Ne==null?void 0:Ne.components.securitySchemes),{[bt]:Vn(tn({},Ne==null?void 0:Ne.components.securitySchemes[bt]),{type:(Ne==null?void 0:Ne.components.securitySchemes[bt].type)==="openIdConnect"?"oauth2":Ne==null?void 0:Ne.components.securitySchemes[bt].type})})})});const Rt=(Ne==null?void 0:Ne.components.securitySchemes[bt].in)==="cookie"?"Cookie":bt,or=(Ne==null?void 0:Ne.components.securitySchemes[bt].in)==="cookie"?`${Ne==null?void 0:Ne.components.securitySchemes[bt].name}=${De[_e]}`:De[_e];De=Vn(tn({},De),{[Rt]:or})}else Me=tn({},Ne);Me.servers=he;const Ve=W.options.corsProxyUrl;Ve&&he.length&&(Me.servers=he.map(_e=>Vn(tn({},_e),{url:Ve+$h(_e.url)})),Me.paths=Vn(tn({},Me.paths),{[re.path]:Vn(tn({},Me.paths[re.path]),{[Fe]:Vn(tn({},Me.paths[re.path][Fe]),{servers:void 0}),servers:void 0})}));const Ke=((A=(y=xe==null?void 0:xe.content)==null?void 0:y.active)==null?void 0:A.name)||null;if(Ke&&we&&et(Ke)){const _e=Object.values(we);we=_e.length>1?_e:_e[0]}const Ze={server:Ve?Ve+$h(je.url):je.url,serverVariables:this.state.server.variables,spec:Me,pathName:re.path,method:re.httpVerb,parameters:tn(tn(tn(tn({},de.path),de.query),de.header),de.cookie),securities:{authorized:De},requestBody:we,requestContentType:Ke,responseContentType:((x=de.header)==null?void 0:x.Accept)||null,requestInterceptor:(0,dr.Tz)(W.options,re,De)};try{const _e=yield td.execute(Ze),bt=_e==null?void 0:_e.data;bt instanceof Blob&&(et(bt.type)&&(_e.fileInfo={rawData:bt,fileName:(0,dr.AM)(_e.headers)}),_e.data=yield bt.text()),ee==null||ee({request:Ze,response:_e}),this.setState({response:_e,error:void 0})}catch(_e){_e&&_e.response&&_e.response.data instanceof Blob&&(_e.response.data=yield _e.response.data.text(),ee==null||ee({request:Ze,response:_e.response})),this.setState({response:void 0,error:_e})}finally{this.setState({loading:!1,activeTab:1,time:Date.now()-ke}),(F=(w=W==null?void 0:W.options.events)==null?void 0:w.tryItSent)==null||F.call(w,{eventType:ad.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"Sent",operationId:re.operationId,operationPath:re.path,operationHttpVerb:re.httpVerb,operationSummary:re.description})}})),this.state={form:{values:{path:(0,dr.ZS)(t.operation.parameters,"path"),cookie:(0,dr.ZS)(t.operation.parameters,"cookie"),header:(0,dr.ZS)(t.operation.parameters,"header"),query:(0,dr.ZS)(t.operation.parameters,"query")}},shaking:!1,loading:!1,activeTab:0,server:{}}}componentDidMount(){return Gh(this,null,function*(){var t;const{store:r,operation:i}=this.props,o=yield r.dereferenceSpecForTryIt(i);this.setState({resolvedRawSpec:o}),(t=this.formApi)==null||t.setValues({})})}componentDidUpdate(t){t.operation!==this.props.operation&&this.setState({response:void 0,error:void 0,activeTab:0})}render(){const{operation:t,className:r,rootElement:i}=this.props,{shaking:o,activeTab:s,form:d,response:y,loading:A,error:x}=this.state,w=!!(y||x);return Pr.createElement(Om,{shaking:o,className:r,rootElement:i},Pr.createElement(Ui.k1,null,Pr.createElement(pg,{active:s,hasResponse:w,onChange:this.handleTabChange}),this.props.onClose&&Pr.createElement(Ss.PZ,{onClick:this.props.onClose}," \u2715 ")),Pr.createElement(Ss.RE,{hidden:s!==0,"data-cy":"console-request-body"},this.renderRequest()),Pr.createElement(Ss.RE,{hidden:s!==1,"data-cy":"console-response-body"},this.renderResponse()),Pr.createElement(tm,{hasResponse:w,params:d.values,operation:t,loading:A,execute:this.handleExecute}))}renderRequest(){var t;const{operation:r,store:i,properties:o,securityDefaults:s}=this.props,{form:d,resolvedRawSpec:y,server:A}=this.state,x=d.errors||{},w=x.path||x.cookie||x.header||x.query,F=y&&Lt.JsonPointer.get(y,r.pointer);let W=d.values&&d.values.auth&&Object.keys(d.values.auth)[0];(!W||!d.values.auth[W])&&(W=void 0),W&&(d.values.auth[W].token!==void 0||d.values.auth[W].client_id!==void 0||d.values.auth[W].client_secret!==void 0)&&(!d.values.auth[W].token||!d.values.auth[W].token.access_token)&&(W=void 0),W&&d.values.auth[W].username!=null&&(!d.values.auth[W].username||!d.values.auth[W].password)&&(W=void 0);const re=r.parameters||[],ee=(t=i==null?void 0:i.options.hooks)==null?void 0:t.ReplaceTryItSecurityPanel;return!y&&Pr.createElement(Pr.Fragment,null,"Loading...")||Pr.createElement(cu,{onValueChange:this.handleValueChange,getApi:this.setFormApi,style:Vn(tn({},Cm),{margin:0})},Pr.createElement(um,{operation:r,onChange:this.handleServerChange}),Pr.createElement(Ui.UQ,{initialActiveIdx:r.security.length&&W?1:0},r.security.length&&this.formApi&&Pr.createElement(Fd,{header:(0,Ma.l)("tryItAuth"),"data-cy":"security-trigger",renderChildrenHidden:!0,error:!W&&!!x.auth,success:!!W},ee?Pr.createElement(Tm,{field:"auth",validate:Wl},le=>Pr.createElement(ar.Q,{Hook:ee,props:{server:A,operation:r,onChange:le,OAuth2:f}})):Pr.createElement(cg,{formApi:this.formApi,form:d,operation:r,activeServer:A.url,authCorsProxyUrl:i.options.authCorsProxyUrl,securityDefaults:s}))||null,r.requestBody&&this.formApi&&Pr.createElement(Fd,{header:(0,Ma.l)("tryItBody"),"data-cy":"body-trigger",renderChildrenHidden:!0,error:!!x.body},Pr.createElement(zy,{validate:Em,formApi:this.formApi,body:r.requestBody,id:r.id,resolvedBody:F==null?void 0:F.requestBody,properties:o}))||null,re.length&&Pr.createElement(Fd,{header:(0,Ma.l)("tryItParameters"),"data-cy":"parameters-trigger",error:w,renderChildrenHidden:!0},Pr.createElement(pv,{operation:r,values:d.values,errors:d.errors||{}}))||null))}renderResponse(){const{response:t,error:r,time:i}=this.state;return Pr.createElement(Qy,{response:t,error:r,time:i})}};Md=wm([za.Pi],Md);function Em(){}function Om(t){const{shaking:r,className:i,children:o,rootElement:s}=t,[d]=(0,nr.Bs)(s);return Pr.createElement(Ss.q2,{shaking:r,className:i,"data-cy":"console",fullWidth:d==null?void 0:d.width},o)}function Tm(t){const{fieldApi:r,render:i,userProps:o}=Rn(tn({},t)),{setValue:s}=r,{children:d}=o;return i(Pr.createElement(Pr.Fragment,null,d(s)))}},68929:()=>{},17648:p=>{"use strict";var I="Function.prototype.bind called on incompatible ",a=Array.prototype.slice,c=Object.prototype.toString,v="[object Function]";p.exports=function(h){var b=this;if(typeof b!="function"||c.call(b)!==v)throw new TypeError(I+b);for(var C=a.call(arguments,1),S,L=function(){if(this instanceof S){var K=b.apply(this,C.concat(a.call(arguments)));return Object(K)===K?K:this}else return b.apply(h,C.concat(a.call(arguments)))},N=Math.max(0,b.length-C.length),j=[],U=0;U<N;U++)j.push("$"+U);if(S=Function("binder","return function ("+j.join(",")+"){ return binder.apply(this,arguments); }")(L),b.prototype){var Q=function(){};Q.prototype=b.prototype,S.prototype=new Q,Q.prototype=null}return S}},58612:(p,I,a)=>{"use strict";var c=a(17648);p.exports=Function.prototype.bind||c},40210:(p,I,a)=>{"use strict";var c,v=SyntaxError,m=Function,h=TypeError,b=function(ge){try{return m('"use strict"; return ('+ge+").constructor;")()}catch(me){}},C=Object.getOwnPropertyDescriptor;if(C)try{C({},"")}catch(ge){C=null}var S=function(){throw new h},L=C?function(){try{return arguments.callee,S}catch(ge){try{return C(arguments,"callee").get}catch(me){return S}}}():S,N=a(41405)(),j=Object.getPrototypeOf||function(ge){return ge.__proto__},U={},Q=typeof Uint8Array=="undefined"?c:j(Uint8Array),K={"%AggregateError%":typeof AggregateError=="undefined"?c:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?c:ArrayBuffer,"%ArrayIteratorPrototype%":N?j([][Symbol.iterator]()):c,"%AsyncFromSyncIteratorPrototype%":c,"%AsyncFunction%":U,"%AsyncGenerator%":U,"%AsyncGeneratorFunction%":U,"%AsyncIteratorPrototype%":U,"%Atomics%":typeof Atomics=="undefined"?c:Atomics,"%BigInt%":typeof BigInt=="undefined"?c:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?c:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?c:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?c:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?c:FinalizationRegistry,"%Function%":m,"%GeneratorFunction%":U,"%Int8Array%":typeof Int8Array=="undefined"?c:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?c:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?c:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":N?j(j([][Symbol.iterator]())):c,"%JSON%":typeof JSON=="object"?JSON:c,"%Map%":typeof Map=="undefined"?c:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!N?c:j(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?c:Promise,"%Proxy%":typeof Proxy=="undefined"?c:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?c:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?c:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!N?c:j(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?c:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":N?j(""[Symbol.iterator]()):c,"%Symbol%":N?Symbol:c,"%SyntaxError%":v,"%ThrowTypeError%":L,"%TypedArray%":Q,"%TypeError%":h,"%Uint8Array%":typeof Uint8Array=="undefined"?c:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?c:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?c:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?c:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?c:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?c:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?c:WeakSet},M=function ge(me){var pe;if(me==="%AsyncFunction%")pe=b("async function () {}");else if(me==="%GeneratorFunction%")pe=b("function* () {}");else if(me==="%AsyncGeneratorFunction%")pe=b("async function* () {}");else if(me==="%AsyncGenerator%"){var se=ge("%AsyncGeneratorFunction%");se&&(pe=se.prototype)}else if(me==="%AsyncIteratorPrototype%"){var ie=ge("%AsyncGenerator%");ie&&(pe=j(ie.prototype))}return K[me]=pe,pe},Y={"%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"]},R=a(58612),E=a(17642),V=R.call(Function.call,Array.prototype.concat),G=R.call(Function.apply,Array.prototype.splice),Z=R.call(Function.call,String.prototype.replace),X=R.call(Function.call,String.prototype.slice),z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ue=/\\(\\)?/g,q=function(me){var pe=X(me,0,1),se=X(me,-1);if(pe==="%"&&se!=="%")throw new v("invalid intrinsic syntax, expected closing `%`");if(se==="%"&&pe!=="%")throw new v("invalid intrinsic syntax, expected opening `%`");var ie=[];return Z(me,z,function(Oe,Pe,Te,Ce){ie[ie.length]=Te?Z(Ce,ue,"$1"):Pe||Oe}),ie},ne=function(me,pe){var se=me,ie;if(E(Y,se)&&(ie=Y[se],se="%"+ie[0]+"%"),E(K,se)){var Oe=K[se];if(Oe===U&&(Oe=M(se)),typeof Oe=="undefined"&&!pe)throw new h("intrinsic "+me+" exists, but is not available. Please file an issue!");return{alias:ie,name:se,value:Oe}}throw new v("intrinsic "+me+" does not exist!")};p.exports=function(me,pe){if(typeof me!="string"||me.length===0)throw new h("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof pe!="boolean")throw new h('"allowMissing" argument must be a boolean');var se=q(me),ie=se.length>0?se[0]:"",Oe=ne("%"+ie+"%",pe),Pe=Oe.name,Te=Oe.value,Ce=!1,Xe=Oe.alias;Xe&&(ie=Xe[0],G(se,V([0,1],Xe)));for(var He=1,Je=!0;He<se.length;He+=1){var ut=se[He],ft=X(ut,0,1),yt=X(ut,-1);if((ft==='"'||ft==="'"||ft==="`"||yt==='"'||yt==="'"||yt==="`")&&ft!==yt)throw new v("property names with quotes must have matching quotes");if((ut==="constructor"||!Je)&&(Ce=!0),ie+="."+ut,Pe="%"+ie+"%",E(K,Pe))Te=K[Pe];else if(Te!=null){if(!(ut in Te)){if(!pe)throw new h("base intrinsic for "+me+" exists, but the property is not available.");return}if(C&&He+1>=se.length){var Qe=C(Te,ut);Je=!!Qe,Je&&"get"in Qe&&!("originalValue"in Qe.get)?Te=Qe.get:Te=Te[ut]}else Je=E(Te,ut),Te=Te[ut];Je&&!Ce&&(K[Pe]=Te)}}return Te}},41405:(p,I,a)=>{"use strict";var c=typeof Symbol!="undefined"&&Symbol,v=a(55419);p.exports=function(){return typeof c!="function"||typeof Symbol!="function"||typeof c("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:v()}},55419:p=>{"use strict";p.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var a={},c=Symbol("test"),v=Object(c);if(typeof c=="string"||Object.prototype.toString.call(c)!=="[object Symbol]"||Object.prototype.toString.call(v)!=="[object Symbol]")return!1;var m=42;a[c]=m;for(c in a)return!1;if(typeof Object.keys=="function"&&Object.keys(a).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(a).length!==0)return!1;var h=Object.getOwnPropertySymbols(a);if(h.length!==1||h[0]!==c||!Object.prototype.propertyIsEnumerable.call(a,c))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var b=Object.getOwnPropertyDescriptor(a,c);if(b.value!==m||b.enumerable!==!0)return!1}return!0}},17642:(p,I,a)=>{"use strict";var c=a(58612);p.exports=c.call(Function.call,Object.prototype.hasOwnProperty)},57514:p=>{p.exports=window.FormData},93320:(p,I,a)=>{"use strict";var c=a(51294);p.exports=c},51294:(p,I,a)=>{"use strict";var c=a(40028),v=a(96157);function m(h){return function(){throw new Error("Function "+h+" is deprecated and cannot be used.")}}p.exports.Type=a(53899),p.exports.Schema=a(82409),p.exports.FAILSAFE_SCHEMA=a(75322),p.exports.JSON_SCHEMA=a(65796),p.exports.CORE_SCHEMA=a(17318),p.exports.DEFAULT_SAFE_SCHEMA=a(5972),p.exports.DEFAULT_FULL_SCHEMA=a(19321),p.exports.load=c.load,p.exports.loadAll=c.loadAll,p.exports.safeLoad=c.safeLoad,p.exports.safeLoadAll=c.safeLoadAll,p.exports.dump=v.dump,p.exports.safeDump=v.safeDump,p.exports.YAMLException=a(14884),p.exports.MINIMAL_SCHEMA=a(75322),p.exports.SAFE_SCHEMA=a(5972),p.exports.DEFAULT_SCHEMA=a(19321),p.exports.scan=m("scan"),p.exports.parse=m("parse"),p.exports.compose=m("compose"),p.exports.addConstructor=m("addConstructor")},25596:p=>{"use strict";function I(b){return typeof b=="undefined"||b===null}function a(b){return typeof b=="object"&&b!==null}function c(b){return Array.isArray(b)?b:I(b)?[]:[b]}function v(b,C){var S,L,N,j;if(C)for(j=Object.keys(C),S=0,L=j.length;S<L;S+=1)N=j[S],b[N]=C[N];return b}function m(b,C){var S="",L;for(L=0;L<C;L+=1)S+=b;return S}function h(b){return b===0&&Number.NEGATIVE_INFINITY===1/b}p.exports.isNothing=I,p.exports.isObject=a,p.exports.toArray=c,p.exports.repeat=m,p.exports.isNegativeZero=h,p.exports.extend=v},96157:(p,I,a)=>{"use strict";var c=a(25596),v=a(14884),m=a(19321),h=a(5972),b=Object.prototype.toString,C=Object.prototype.hasOwnProperty,S=9,L=10,N=13,j=32,U=33,Q=34,K=35,M=37,Y=38,R=39,E=42,V=44,G=45,Z=58,X=61,z=62,ue=63,q=64,ne=91,ge=93,me=96,pe=123,se=124,ie=125,Oe={};Oe[0]="\\0",Oe[7]="\\a",Oe[8]="\\b",Oe[9]="\\t",Oe[10]="\\n",Oe[11]="\\v",Oe[12]="\\f",Oe[13]="\\r",Oe[27]="\\e",Oe[34]='\\"',Oe[92]="\\\\",Oe[133]="\\N",Oe[160]="\\_",Oe[8232]="\\L",Oe[8233]="\\P";var Pe=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Te(D,_){var fe,te,ce,be,Le,Re,We;if(_===null)return{};for(fe={},te=Object.keys(_),ce=0,be=te.length;ce<be;ce+=1)Le=te[ce],Re=String(_[Le]),Le.slice(0,2)==="!!"&&(Le="tag:yaml.org,2002:"+Le.slice(2)),We=D.compiledTypeMap.fallback[Le],We&&C.call(We.styleAliases,Re)&&(Re=We.styleAliases[Re]),fe[Le]=Re;return fe}function Ce(D){var _,fe,te;if(_=D.toString(16).toUpperCase(),D<=255)fe="x",te=2;else if(D<=65535)fe="u",te=4;else if(D<=4294967295)fe="U",te=8;else throw new v("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+fe+c.repeat("0",te-_.length)+_}function Xe(D){this.schema=D.schema||m,this.indent=Math.max(1,D.indent||2),this.noArrayIndent=D.noArrayIndent||!1,this.skipInvalid=D.skipInvalid||!1,this.flowLevel=c.isNothing(D.flowLevel)?-1:D.flowLevel,this.styleMap=Te(this.schema,D.styles||null),this.sortKeys=D.sortKeys||!1,this.lineWidth=D.lineWidth||80,this.noRefs=D.noRefs||!1,this.noCompatMode=D.noCompatMode||!1,this.condenseFlow=D.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function He(D,_){for(var fe=c.repeat(" ",_),te=0,ce=-1,be="",Le,Re=D.length;te<Re;)ce=D.indexOf(`
496
496
  `,te),ce===-1?(Le=D.slice(te),te=Re):(Le=D.slice(te,ce+1),te=ce+1),Le.length&&Le!==`
497
497
  `&&(be+=fe),be+=Le;return be}function Je(D,_){return`
498
- `+c.repeat(" ",D.indent*_)}function ut(D,_){var fe,te,ce;for(fe=0,te=D.implicitTypes.length;fe<te;fe+=1)if(ce=D.implicitTypes[fe],ce.resolve(_))return!0;return!1}function ft(D){return D===j||D===S}function yt(D){return 32<=D&&D<=126||161<=D&&D<=55295&&D!==8232&&D!==8233||57344<=D&&D<=65533&&D!==65279||65536<=D&&D<=1114111}function Qe(D){return yt(D)&&!ft(D)&&D!==65279&&D!==N&&D!==L}function nt(D,_){return yt(D)&&D!==65279&&D!==V&&D!==ne&&D!==ge&&D!==he&&D!==ie&&D!==Z&&(D!==K||_&&Qe(_))}function ct(D){return yt(D)&&D!==65279&&!ft(D)&&D!==G&&D!==ue&&D!==Z&&D!==V&&D!==ne&&D!==ge&&D!==he&&D!==ie&&D!==K&&D!==Y&&D!==E&&D!==U&&D!==le&&D!==X&&D!==z&&D!==R&&D!==Q&&D!==M&&D!==q&&D!==me}function dt(D){var _=/^\n* /;return _.test(D)}var st=1,Ot=2,Et=3,St=4,jt=5;function Dt(D,_,fe,te,ce){var be,Le,Re,We=!1,ot=!1,vt=te!==-1,Ft=-1,At=ct(D.charCodeAt(0))&&!ft(D.charCodeAt(D.length-1));if(_)for(be=0;be<D.length;be++){if(Le=D.charCodeAt(be),!yt(Le))return jt;Re=be>0?D.charCodeAt(be-1):null,At=At&&nt(Le,Re)}else{for(be=0;be<D.length;be++){if(Le=D.charCodeAt(be),Le===L)We=!0,vt&&(ot=ot||be-Ft-1>te&&D[Ft+1]!==" ",Ft=be);else if(!yt(Le))return jt;Re=be>0?D.charCodeAt(be-1):null,At=At&&nt(Le,Re)}ot=ot||vt&&be-Ft-1>te&&D[Ft+1]!==" "}return!We&&!ot?At&&!ce(D)?st:Ot:fe>9&&dt(D)?jt:ot?St:Et}function Nt(D,_,fe,te){D.dump=function(){if(_.length===0)return"''";if(!D.noCompatMode&&Pe.indexOf(_)!==-1)return"'"+_+"'";var ce=D.indent*Math.max(1,fe),be=D.lineWidth===-1?-1:Math.max(Math.min(D.lineWidth,40),D.lineWidth-ce),Le=te||D.flowLevel>-1&&fe>=D.flowLevel;function Re(We){return ut(D,We)}switch(Dt(_,Le,D.indent,be,Re)){case st:return _;case Ot:return"'"+_.replace(/'/g,"''")+"'";case Et:return"|"+mt(_,D.indent)+It(He(_,ce));case St:return">"+mt(_,D.indent)+It(He(ht(_,be),ce));case jt:return'"'+Kt(_,be)+'"';default:throw new v("impossible error: invalid scalar style")}}()}function mt(D,_){var fe=dt(D)?String(_):"",te=D[D.length-1]===`
498
+ `+c.repeat(" ",D.indent*_)}function ut(D,_){var fe,te,ce;for(fe=0,te=D.implicitTypes.length;fe<te;fe+=1)if(ce=D.implicitTypes[fe],ce.resolve(_))return!0;return!1}function ft(D){return D===j||D===S}function yt(D){return 32<=D&&D<=126||161<=D&&D<=55295&&D!==8232&&D!==8233||57344<=D&&D<=65533&&D!==65279||65536<=D&&D<=1114111}function Qe(D){return yt(D)&&!ft(D)&&D!==65279&&D!==N&&D!==L}function nt(D,_){return yt(D)&&D!==65279&&D!==V&&D!==ne&&D!==ge&&D!==pe&&D!==ie&&D!==Z&&(D!==K||_&&Qe(_))}function ct(D){return yt(D)&&D!==65279&&!ft(D)&&D!==G&&D!==ue&&D!==Z&&D!==V&&D!==ne&&D!==ge&&D!==pe&&D!==ie&&D!==K&&D!==Y&&D!==E&&D!==U&&D!==se&&D!==X&&D!==z&&D!==R&&D!==Q&&D!==M&&D!==q&&D!==me}function dt(D){var _=/^\n* /;return _.test(D)}var st=1,Ot=2,Et=3,St=4,Ut=5;function Dt(D,_,fe,te,ce){var be,Le,Re,We=!1,ot=!1,vt=te!==-1,Ft=-1,At=ct(D.charCodeAt(0))&&!ft(D.charCodeAt(D.length-1));if(_)for(be=0;be<D.length;be++){if(Le=D.charCodeAt(be),!yt(Le))return Ut;Re=be>0?D.charCodeAt(be-1):null,At=At&&nt(Le,Re)}else{for(be=0;be<D.length;be++){if(Le=D.charCodeAt(be),Le===L)We=!0,vt&&(ot=ot||be-Ft-1>te&&D[Ft+1]!==" ",Ft=be);else if(!yt(Le))return Ut;Re=be>0?D.charCodeAt(be-1):null,At=At&&nt(Le,Re)}ot=ot||vt&&be-Ft-1>te&&D[Ft+1]!==" "}return!We&&!ot?At&&!ce(D)?st:Ot:fe>9&&dt(D)?Ut:ot?St:Et}function Nt(D,_,fe,te){D.dump=function(){if(_.length===0)return"''";if(!D.noCompatMode&&Pe.indexOf(_)!==-1)return"'"+_+"'";var ce=D.indent*Math.max(1,fe),be=D.lineWidth===-1?-1:Math.max(Math.min(D.lineWidth,40),D.lineWidth-ce),Le=te||D.flowLevel>-1&&fe>=D.flowLevel;function Re(We){return ut(D,We)}switch(Dt(_,Le,D.indent,be,Re)){case st:return _;case Ot:return"'"+_.replace(/'/g,"''")+"'";case Et:return"|"+mt(_,D.indent)+It(He(_,ce));case St:return">"+mt(_,D.indent)+It(He(ht(_,be),ce));case Ut:return'"'+Kt(_,be)+'"';default:throw new v("impossible error: invalid scalar style")}}()}function mt(D,_){var fe=dt(D)?String(_):"",te=D[D.length-1]===`
499
499
  `,ce=te&&(D[D.length-2]===`
500
500
  `||D===`
501
501
  `),be=ce?"+":te?"":"-";return fe+be+`
@@ -508,25 +508,25 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function ny(t){return t.i
508
508
  `,D.length-ce>_&&Le>ce?We+=D.slice(ce,Le)+`
509
509
  `+D.slice(Le+1):We+=D.slice(ce),We.slice(1)}function Kt(D){for(var _="",fe,te,ce,be=0;be<D.length;be++){if(fe=D.charCodeAt(be),fe>=55296&&fe<=56319&&(te=D.charCodeAt(be+1),te>=56320&&te<=57343)){_+=Ce((fe-55296)*1024+te-56320+65536),be++;continue}ce=Oe[fe],_+=!ce&&yt(fe)?D[be]:ce||Ce(fe)}return _}function sr(D,_,fe){var te="",ce=D.tag,be,Le;for(be=0,Le=fe.length;be<Le;be+=1)Be(D,_,fe[be],!1,!1)&&(be!==0&&(te+=","+(D.condenseFlow?"":" ")),te+=D.dump);D.tag=ce,D.dump="["+te+"]"}function Mt(D,_,fe,te){var ce="",be=D.tag,Le,Re;for(Le=0,Re=fe.length;Le<Re;Le+=1)Be(D,_+1,fe[Le],!0,!0)&&((!te||Le!==0)&&(ce+=Je(D,_)),D.dump&&L===D.dump.charCodeAt(0)?ce+="-":ce+="- ",ce+=D.dump);D.tag=be,D.dump=ce||"[]"}function Wt(D,_,fe){var te="",ce=D.tag,be=Object.keys(fe),Le,Re,We,ot,vt;for(Le=0,Re=be.length;Le<Re;Le+=1)vt="",Le!==0&&(vt+=", "),D.condenseFlow&&(vt+='"'),We=be[Le],ot=fe[We],!!Be(D,_,We,!1,!1)&&(D.dump.length>1024&&(vt+="? "),vt+=D.dump+(D.condenseFlow?'"':"")+":"+(D.condenseFlow?"":" "),!!Be(D,_,ot,!1,!1)&&(vt+=D.dump,te+=vt));D.tag=ce,D.dump="{"+te+"}"}function Bt(D,_,fe,te){var ce="",be=D.tag,Le=Object.keys(fe),Re,We,ot,vt,Ft,At;if(D.sortKeys===!0)Le.sort();else if(typeof D.sortKeys=="function")Le.sort(D.sortKeys);else if(D.sortKeys)throw new v("sortKeys must be a boolean or a function");for(Re=0,We=Le.length;Re<We;Re+=1)At="",(!te||Re!==0)&&(At+=Je(D,_)),ot=Le[Re],vt=fe[ot],!!Be(D,_+1,ot,!0,!0,!0)&&(Ft=D.tag!==null&&D.tag!=="?"||D.dump&&D.dump.length>1024,Ft&&(D.dump&&L===D.dump.charCodeAt(0)?At+="?":At+="? "),At+=D.dump,Ft&&(At+=Je(D,_)),!!Be(D,_+1,vt,!0,Ft)&&(D.dump&&L===D.dump.charCodeAt(0)?At+=":":At+=": ",At+=D.dump,ce+=At));D.tag=be,D.dump=ce||"{}"}function k(D,_,fe){var te,ce,be,Le,Re,We;for(ce=fe?D.explicitTypes:D.implicitTypes,be=0,Le=ce.length;be<Le;be+=1)if(Re=ce[be],(Re.instanceOf||Re.predicate)&&(!Re.instanceOf||typeof _=="object"&&_ instanceof Re.instanceOf)&&(!Re.predicate||Re.predicate(_))){if(D.tag=fe?Re.tag:"?",Re.represent){if(We=D.styleMap[Re.tag]||Re.defaultStyle,b.call(Re.represent)==="[object Function]")te=Re.represent(_,We);else if(C.call(Re.represent,We))te=Re.represent[We](_,We);else throw new v("!<"+Re.tag+'> tag resolver accepts not "'+We+'" style');D.dump=te}return!0}return!1}function Be(D,_,fe,te,ce,be){D.tag=null,D.dump=fe,k(D,fe,!1)||k(D,fe,!0);var Le=b.call(D.dump);te&&(te=D.flowLevel<0||D.flowLevel>_);var Re=Le==="[object Object]"||Le==="[object Array]",We,ot;if(Re&&(We=D.duplicates.indexOf(fe),ot=We!==-1),(D.tag!==null&&D.tag!=="?"||ot||D.indent!==2&&_>0)&&(ce=!1),ot&&D.usedDuplicates[We])D.dump="*ref_"+We;else{if(Re&&ot&&!D.usedDuplicates[We]&&(D.usedDuplicates[We]=!0),Le==="[object Object]")te&&Object.keys(D.dump).length!==0?(Bt(D,_,D.dump,ce),ot&&(D.dump="&ref_"+We+D.dump)):(Wt(D,_,D.dump),ot&&(D.dump="&ref_"+We+" "+D.dump));else if(Le==="[object Array]"){var vt=D.noArrayIndent&&_>0?_-1:_;te&&D.dump.length!==0?(Mt(D,vt,D.dump,ce),ot&&(D.dump="&ref_"+We+D.dump)):(sr(D,vt,D.dump),ot&&(D.dump="&ref_"+We+" "+D.dump))}else if(Le==="[object String]")D.tag!=="?"&&Nt(D,D.dump,_,be);else{if(D.skipInvalid)return!1;throw new v("unacceptable kind of an object to dump "+Le)}D.tag!==null&&D.tag!=="?"&&(D.dump="!<"+D.tag+"> "+D.dump)}return!0}function $(D,_){var fe=[],te=[],ce,be;for(O(D,fe,te),ce=0,be=te.length;ce<be;ce+=1)_.duplicates.push(fe[te[ce]]);_.usedDuplicates=new Array(be)}function O(D,_,fe){var te,ce,be;if(D!==null&&typeof D=="object")if(ce=_.indexOf(D),ce!==-1)fe.indexOf(ce)===-1&&fe.push(ce);else if(_.push(D),Array.isArray(D))for(ce=0,be=D.length;ce<be;ce+=1)O(D[ce],_,fe);else for(te=Object.keys(D),ce=0,be=te.length;ce<be;ce+=1)O(D[te[ce]],_,fe)}function T(D,_){_=_||{};var fe=new Xe(_);return fe.noRefs||$(D,fe),Be(fe,0,D,!0,!0)?fe.dump+`
510
510
  `:""}function oe(D,_){return T(D,c.extend({schema:h},_))}p.exports.dump=T,p.exports.safeDump=oe},14884:p=>{"use strict";function I(a,c){Error.call(this),this.name="YAMLException",this.reason=a,this.mark=c,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}I.prototype=Object.create(Error.prototype),I.prototype.constructor=I,I.prototype.toString=function(c){var v=this.name+": ";return v+=this.reason||"(unknown reason)",!c&&this.mark&&(v+=" "+this.mark.toString()),v},p.exports=I},40028:(p,I,a)=>{"use strict";var c=a(25596),v=a(14884),m=a(77334),h=a(5972),b=a(19321),C=Object.prototype.hasOwnProperty,S=1,L=2,N=3,j=4,U=1,Q=2,K=3,M=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Y=/[\x85\u2028\u2029]/,R=/[,\[\]\{\}]/,E=/^(?:!|!!|![a-z\-]+!)$/i,V=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function G(k){return Object.prototype.toString.call(k)}function Z(k){return k===10||k===13}function X(k){return k===9||k===32}function z(k){return k===9||k===32||k===10||k===13}function ue(k){return k===44||k===91||k===93||k===123||k===125}function q(k){var Be;return 48<=k&&k<=57?k-48:(Be=k|32,97<=Be&&Be<=102?Be-97+10:-1)}function ne(k){return k===120?2:k===117?4:k===85?8:0}function ge(k){return 48<=k&&k<=57?k-48:-1}function me(k){return k===48?"\0":k===97?"\x07":k===98?"\b":k===116||k===9?" ":k===110?`
511
- `:k===118?"\v":k===102?"\f":k===114?"\r":k===101?"":k===32?" ":k===34?'"':k===47?"/":k===92?"\\":k===78?"\x85":k===95?"\xA0":k===76?"\u2028":k===80?"\u2029":""}function he(k){return k<=65535?String.fromCharCode(k):String.fromCharCode((k-65536>>10)+55296,(k-65536&1023)+56320)}for(var le=new Array(256),ie=new Array(256),Oe=0;Oe<256;Oe++)le[Oe]=me(Oe)?1:0,ie[Oe]=me(Oe);function Pe(k,Be){this.input=k,this.filename=Be.filename||null,this.schema=Be.schema||b,this.onWarning=Be.onWarning||null,this.legacy=Be.legacy||!1,this.json=Be.json||!1,this.listener=Be.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=k.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function Te(k,Be){return new v(Be,new m(k.filename,k.input,k.position,k.line,k.position-k.lineStart))}function Ce(k,Be){throw Te(k,Be)}function Xe(k,Be){k.onWarning&&k.onWarning.call(null,Te(k,Be))}var He={YAML:function(Be,$,O){var T,oe,D;Be.version!==null&&Ce(Be,"duplication of %YAML directive"),O.length!==1&&Ce(Be,"YAML directive accepts exactly one argument"),T=/^([0-9]+)\.([0-9]+)$/.exec(O[0]),T===null&&Ce(Be,"ill-formed argument of the YAML directive"),oe=parseInt(T[1],10),D=parseInt(T[2],10),oe!==1&&Ce(Be,"unacceptable YAML version of the document"),Be.version=O[0],Be.checkLineBreaks=D<2,D!==1&&D!==2&&Xe(Be,"unsupported YAML version of the document")},TAG:function(Be,$,O){var T,oe;O.length!==2&&Ce(Be,"TAG directive accepts exactly two arguments"),T=O[0],oe=O[1],E.test(T)||Ce(Be,"ill-formed tag handle (first argument) of the TAG directive"),C.call(Be.tagMap,T)&&Ce(Be,'there is a previously declared suffix for "'+T+'" tag handle'),V.test(oe)||Ce(Be,"ill-formed tag prefix (second argument) of the TAG directive"),Be.tagMap[T]=oe}};function Je(k,Be,$,O){var T,oe,D,_;if(Be<$){if(_=k.input.slice(Be,$),O)for(T=0,oe=_.length;T<oe;T+=1)D=_.charCodeAt(T),D===9||32<=D&&D<=1114111||Ce(k,"expected valid JSON character");else M.test(_)&&Ce(k,"the stream contains non-printable characters");k.result+=_}}function ut(k,Be,$,O){var T,oe,D,_;for(c.isObject($)||Ce(k,"cannot merge mappings; the provided source object is unacceptable"),T=Object.keys($),D=0,_=T.length;D<_;D+=1)oe=T[D],C.call(Be,oe)||(Be[oe]=$[oe],O[oe]=!0)}function ft(k,Be,$,O,T,oe,D,_){var fe,te;if(Array.isArray(T))for(T=Array.prototype.slice.call(T),fe=0,te=T.length;fe<te;fe+=1)Array.isArray(T[fe])&&Ce(k,"nested arrays are not supported inside keys"),typeof T=="object"&&G(T[fe])==="[object Object]"&&(T[fe]="[object Object]");if(typeof T=="object"&&G(T)==="[object Object]"&&(T="[object Object]"),T=String(T),Be===null&&(Be={}),O==="tag:yaml.org,2002:merge")if(Array.isArray(oe))for(fe=0,te=oe.length;fe<te;fe+=1)ut(k,Be,oe[fe],$);else ut(k,Be,oe,$);else!k.json&&!C.call($,T)&&C.call(Be,T)&&(k.line=D||k.line,k.position=_||k.position,Ce(k,"duplicated mapping key")),Be[T]=oe,delete $[T];return Be}function yt(k){var Be;Be=k.input.charCodeAt(k.position),Be===10?k.position++:Be===13?(k.position++,k.input.charCodeAt(k.position)===10&&k.position++):Ce(k,"a line break is expected"),k.line+=1,k.lineStart=k.position}function Qe(k,Be,$){for(var O=0,T=k.input.charCodeAt(k.position);T!==0;){for(;X(T);)T=k.input.charCodeAt(++k.position);if(Be&&T===35)do T=k.input.charCodeAt(++k.position);while(T!==10&&T!==13&&T!==0);if(Z(T))for(yt(k),T=k.input.charCodeAt(k.position),O++,k.lineIndent=0;T===32;)k.lineIndent++,T=k.input.charCodeAt(++k.position);else break}return $!==-1&&O!==0&&k.lineIndent<$&&Xe(k,"deficient indentation"),O}function nt(k){var Be=k.position,$;return $=k.input.charCodeAt(Be),!!(($===45||$===46)&&$===k.input.charCodeAt(Be+1)&&$===k.input.charCodeAt(Be+2)&&(Be+=3,$=k.input.charCodeAt(Be),$===0||z($)))}function ct(k,Be){Be===1?k.result+=" ":Be>1&&(k.result+=c.repeat(`
512
- `,Be-1))}function dt(k,Be,$){var O,T,oe,D,_,fe,te,ce,be=k.kind,Le=k.result,Re;if(Re=k.input.charCodeAt(k.position),z(Re)||ue(Re)||Re===35||Re===38||Re===42||Re===33||Re===124||Re===62||Re===39||Re===34||Re===37||Re===64||Re===96||(Re===63||Re===45)&&(T=k.input.charCodeAt(k.position+1),z(T)||$&&ue(T)))return!1;for(k.kind="scalar",k.result="",oe=D=k.position,_=!1;Re!==0;){if(Re===58){if(T=k.input.charCodeAt(k.position+1),z(T)||$&&ue(T))break}else if(Re===35){if(O=k.input.charCodeAt(k.position-1),z(O))break}else{if(k.position===k.lineStart&&nt(k)||$&&ue(Re))break;if(Z(Re))if(fe=k.line,te=k.lineStart,ce=k.lineIndent,Qe(k,!1,-1),k.lineIndent>=Be){_=!0,Re=k.input.charCodeAt(k.position);continue}else{k.position=D,k.line=fe,k.lineStart=te,k.lineIndent=ce;break}}_&&(Je(k,oe,D,!1),ct(k,k.line-fe),oe=D=k.position,_=!1),X(Re)||(D=k.position+1),Re=k.input.charCodeAt(++k.position)}return Je(k,oe,D,!1),k.result?!0:(k.kind=be,k.result=Le,!1)}function st(k,Be){var $,O,T;if($=k.input.charCodeAt(k.position),$!==39)return!1;for(k.kind="scalar",k.result="",k.position++,O=T=k.position;($=k.input.charCodeAt(k.position))!==0;)if($===39)if(Je(k,O,k.position,!0),$=k.input.charCodeAt(++k.position),$===39)O=k.position,k.position++,T=k.position;else return!0;else Z($)?(Je(k,O,T,!0),ct(k,Qe(k,!1,Be)),O=T=k.position):k.position===k.lineStart&&nt(k)?Ce(k,"unexpected end of the document within a single quoted scalar"):(k.position++,T=k.position);Ce(k,"unexpected end of the stream within a single quoted scalar")}function Ot(k,Be){var $,O,T,oe,D,_;if(_=k.input.charCodeAt(k.position),_!==34)return!1;for(k.kind="scalar",k.result="",k.position++,$=O=k.position;(_=k.input.charCodeAt(k.position))!==0;){if(_===34)return Je(k,$,k.position,!0),k.position++,!0;if(_===92){if(Je(k,$,k.position,!0),_=k.input.charCodeAt(++k.position),Z(_))Qe(k,!1,Be);else if(_<256&&le[_])k.result+=ie[_],k.position++;else if((D=ne(_))>0){for(T=D,oe=0;T>0;T--)_=k.input.charCodeAt(++k.position),(D=q(_))>=0?oe=(oe<<4)+D:Ce(k,"expected hexadecimal character");k.result+=he(oe),k.position++}else Ce(k,"unknown escape sequence");$=O=k.position}else Z(_)?(Je(k,$,O,!0),ct(k,Qe(k,!1,Be)),$=O=k.position):k.position===k.lineStart&&nt(k)?Ce(k,"unexpected end of the document within a double quoted scalar"):(k.position++,O=k.position)}Ce(k,"unexpected end of the stream within a double quoted scalar")}function Et(k,Be){var $=!0,O,T=k.tag,oe,D=k.anchor,_,fe,te,ce,be,Le={},Re,We,ot,vt;if(vt=k.input.charCodeAt(k.position),vt===91)fe=93,be=!1,oe=[];else if(vt===123)fe=125,be=!0,oe={};else return!1;for(k.anchor!==null&&(k.anchorMap[k.anchor]=oe),vt=k.input.charCodeAt(++k.position);vt!==0;){if(Qe(k,!0,Be),vt=k.input.charCodeAt(k.position),vt===fe)return k.position++,k.tag=T,k.anchor=D,k.kind=be?"mapping":"sequence",k.result=oe,!0;$||Ce(k,"missed comma between flow collection entries"),We=Re=ot=null,te=ce=!1,vt===63&&(_=k.input.charCodeAt(k.position+1),z(_)&&(te=ce=!0,k.position++,Qe(k,!0,Be))),O=k.line,ht(k,Be,S,!1,!0),We=k.tag,Re=k.result,Qe(k,!0,Be),vt=k.input.charCodeAt(k.position),(ce||k.line===O)&&vt===58&&(te=!0,vt=k.input.charCodeAt(++k.position),Qe(k,!0,Be),ht(k,Be,S,!1,!0),ot=k.result),be?ft(k,oe,Le,We,Re,ot):te?oe.push(ft(k,null,Le,We,Re,ot)):oe.push(Re),Qe(k,!0,Be),vt=k.input.charCodeAt(k.position),vt===44?($=!0,vt=k.input.charCodeAt(++k.position)):$=!1}Ce(k,"unexpected end of the stream within a flow collection")}function St(k,Be){var $,O,T=U,oe=!1,D=!1,_=Be,fe=0,te=!1,ce,be;if(be=k.input.charCodeAt(k.position),be===124)O=!1;else if(be===62)O=!0;else return!1;for(k.kind="scalar",k.result="";be!==0;)if(be=k.input.charCodeAt(++k.position),be===43||be===45)U===T?T=be===43?K:Q:Ce(k,"repeat of a chomping mode identifier");else if((ce=ge(be))>=0)ce===0?Ce(k,"bad explicit indentation width of a block scalar; it cannot be less than one"):D?Ce(k,"repeat of an indentation width identifier"):(_=Be+ce-1,D=!0);else break;if(X(be)){do be=k.input.charCodeAt(++k.position);while(X(be));if(be===35)do be=k.input.charCodeAt(++k.position);while(!Z(be)&&be!==0)}for(;be!==0;){for(yt(k),k.lineIndent=0,be=k.input.charCodeAt(k.position);(!D||k.lineIndent<_)&&be===32;)k.lineIndent++,be=k.input.charCodeAt(++k.position);if(!D&&k.lineIndent>_&&(_=k.lineIndent),Z(be)){fe++;continue}if(k.lineIndent<_){T===K?k.result+=c.repeat(`
511
+ `:k===118?"\v":k===102?"\f":k===114?"\r":k===101?"":k===32?" ":k===34?'"':k===47?"/":k===92?"\\":k===78?"\x85":k===95?"\xA0":k===76?"\u2028":k===80?"\u2029":""}function pe(k){return k<=65535?String.fromCharCode(k):String.fromCharCode((k-65536>>10)+55296,(k-65536&1023)+56320)}for(var se=new Array(256),ie=new Array(256),Oe=0;Oe<256;Oe++)se[Oe]=me(Oe)?1:0,ie[Oe]=me(Oe);function Pe(k,Be){this.input=k,this.filename=Be.filename||null,this.schema=Be.schema||b,this.onWarning=Be.onWarning||null,this.legacy=Be.legacy||!1,this.json=Be.json||!1,this.listener=Be.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=k.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function Te(k,Be){return new v(Be,new m(k.filename,k.input,k.position,k.line,k.position-k.lineStart))}function Ce(k,Be){throw Te(k,Be)}function Xe(k,Be){k.onWarning&&k.onWarning.call(null,Te(k,Be))}var He={YAML:function(Be,$,O){var T,oe,D;Be.version!==null&&Ce(Be,"duplication of %YAML directive"),O.length!==1&&Ce(Be,"YAML directive accepts exactly one argument"),T=/^([0-9]+)\.([0-9]+)$/.exec(O[0]),T===null&&Ce(Be,"ill-formed argument of the YAML directive"),oe=parseInt(T[1],10),D=parseInt(T[2],10),oe!==1&&Ce(Be,"unacceptable YAML version of the document"),Be.version=O[0],Be.checkLineBreaks=D<2,D!==1&&D!==2&&Xe(Be,"unsupported YAML version of the document")},TAG:function(Be,$,O){var T,oe;O.length!==2&&Ce(Be,"TAG directive accepts exactly two arguments"),T=O[0],oe=O[1],E.test(T)||Ce(Be,"ill-formed tag handle (first argument) of the TAG directive"),C.call(Be.tagMap,T)&&Ce(Be,'there is a previously declared suffix for "'+T+'" tag handle'),V.test(oe)||Ce(Be,"ill-formed tag prefix (second argument) of the TAG directive"),Be.tagMap[T]=oe}};function Je(k,Be,$,O){var T,oe,D,_;if(Be<$){if(_=k.input.slice(Be,$),O)for(T=0,oe=_.length;T<oe;T+=1)D=_.charCodeAt(T),D===9||32<=D&&D<=1114111||Ce(k,"expected valid JSON character");else M.test(_)&&Ce(k,"the stream contains non-printable characters");k.result+=_}}function ut(k,Be,$,O){var T,oe,D,_;for(c.isObject($)||Ce(k,"cannot merge mappings; the provided source object is unacceptable"),T=Object.keys($),D=0,_=T.length;D<_;D+=1)oe=T[D],C.call(Be,oe)||(Be[oe]=$[oe],O[oe]=!0)}function ft(k,Be,$,O,T,oe,D,_){var fe,te;if(Array.isArray(T))for(T=Array.prototype.slice.call(T),fe=0,te=T.length;fe<te;fe+=1)Array.isArray(T[fe])&&Ce(k,"nested arrays are not supported inside keys"),typeof T=="object"&&G(T[fe])==="[object Object]"&&(T[fe]="[object Object]");if(typeof T=="object"&&G(T)==="[object Object]"&&(T="[object Object]"),T=String(T),Be===null&&(Be={}),O==="tag:yaml.org,2002:merge")if(Array.isArray(oe))for(fe=0,te=oe.length;fe<te;fe+=1)ut(k,Be,oe[fe],$);else ut(k,Be,oe,$);else!k.json&&!C.call($,T)&&C.call(Be,T)&&(k.line=D||k.line,k.position=_||k.position,Ce(k,"duplicated mapping key")),Be[T]=oe,delete $[T];return Be}function yt(k){var Be;Be=k.input.charCodeAt(k.position),Be===10?k.position++:Be===13?(k.position++,k.input.charCodeAt(k.position)===10&&k.position++):Ce(k,"a line break is expected"),k.line+=1,k.lineStart=k.position}function Qe(k,Be,$){for(var O=0,T=k.input.charCodeAt(k.position);T!==0;){for(;X(T);)T=k.input.charCodeAt(++k.position);if(Be&&T===35)do T=k.input.charCodeAt(++k.position);while(T!==10&&T!==13&&T!==0);if(Z(T))for(yt(k),T=k.input.charCodeAt(k.position),O++,k.lineIndent=0;T===32;)k.lineIndent++,T=k.input.charCodeAt(++k.position);else break}return $!==-1&&O!==0&&k.lineIndent<$&&Xe(k,"deficient indentation"),O}function nt(k){var Be=k.position,$;return $=k.input.charCodeAt(Be),!!(($===45||$===46)&&$===k.input.charCodeAt(Be+1)&&$===k.input.charCodeAt(Be+2)&&(Be+=3,$=k.input.charCodeAt(Be),$===0||z($)))}function ct(k,Be){Be===1?k.result+=" ":Be>1&&(k.result+=c.repeat(`
512
+ `,Be-1))}function dt(k,Be,$){var O,T,oe,D,_,fe,te,ce,be=k.kind,Le=k.result,Re;if(Re=k.input.charCodeAt(k.position),z(Re)||ue(Re)||Re===35||Re===38||Re===42||Re===33||Re===124||Re===62||Re===39||Re===34||Re===37||Re===64||Re===96||(Re===63||Re===45)&&(T=k.input.charCodeAt(k.position+1),z(T)||$&&ue(T)))return!1;for(k.kind="scalar",k.result="",oe=D=k.position,_=!1;Re!==0;){if(Re===58){if(T=k.input.charCodeAt(k.position+1),z(T)||$&&ue(T))break}else if(Re===35){if(O=k.input.charCodeAt(k.position-1),z(O))break}else{if(k.position===k.lineStart&&nt(k)||$&&ue(Re))break;if(Z(Re))if(fe=k.line,te=k.lineStart,ce=k.lineIndent,Qe(k,!1,-1),k.lineIndent>=Be){_=!0,Re=k.input.charCodeAt(k.position);continue}else{k.position=D,k.line=fe,k.lineStart=te,k.lineIndent=ce;break}}_&&(Je(k,oe,D,!1),ct(k,k.line-fe),oe=D=k.position,_=!1),X(Re)||(D=k.position+1),Re=k.input.charCodeAt(++k.position)}return Je(k,oe,D,!1),k.result?!0:(k.kind=be,k.result=Le,!1)}function st(k,Be){var $,O,T;if($=k.input.charCodeAt(k.position),$!==39)return!1;for(k.kind="scalar",k.result="",k.position++,O=T=k.position;($=k.input.charCodeAt(k.position))!==0;)if($===39)if(Je(k,O,k.position,!0),$=k.input.charCodeAt(++k.position),$===39)O=k.position,k.position++,T=k.position;else return!0;else Z($)?(Je(k,O,T,!0),ct(k,Qe(k,!1,Be)),O=T=k.position):k.position===k.lineStart&&nt(k)?Ce(k,"unexpected end of the document within a single quoted scalar"):(k.position++,T=k.position);Ce(k,"unexpected end of the stream within a single quoted scalar")}function Ot(k,Be){var $,O,T,oe,D,_;if(_=k.input.charCodeAt(k.position),_!==34)return!1;for(k.kind="scalar",k.result="",k.position++,$=O=k.position;(_=k.input.charCodeAt(k.position))!==0;){if(_===34)return Je(k,$,k.position,!0),k.position++,!0;if(_===92){if(Je(k,$,k.position,!0),_=k.input.charCodeAt(++k.position),Z(_))Qe(k,!1,Be);else if(_<256&&se[_])k.result+=ie[_],k.position++;else if((D=ne(_))>0){for(T=D,oe=0;T>0;T--)_=k.input.charCodeAt(++k.position),(D=q(_))>=0?oe=(oe<<4)+D:Ce(k,"expected hexadecimal character");k.result+=pe(oe),k.position++}else Ce(k,"unknown escape sequence");$=O=k.position}else Z(_)?(Je(k,$,O,!0),ct(k,Qe(k,!1,Be)),$=O=k.position):k.position===k.lineStart&&nt(k)?Ce(k,"unexpected end of the document within a double quoted scalar"):(k.position++,O=k.position)}Ce(k,"unexpected end of the stream within a double quoted scalar")}function Et(k,Be){var $=!0,O,T=k.tag,oe,D=k.anchor,_,fe,te,ce,be,Le={},Re,We,ot,vt;if(vt=k.input.charCodeAt(k.position),vt===91)fe=93,be=!1,oe=[];else if(vt===123)fe=125,be=!0,oe={};else return!1;for(k.anchor!==null&&(k.anchorMap[k.anchor]=oe),vt=k.input.charCodeAt(++k.position);vt!==0;){if(Qe(k,!0,Be),vt=k.input.charCodeAt(k.position),vt===fe)return k.position++,k.tag=T,k.anchor=D,k.kind=be?"mapping":"sequence",k.result=oe,!0;$||Ce(k,"missed comma between flow collection entries"),We=Re=ot=null,te=ce=!1,vt===63&&(_=k.input.charCodeAt(k.position+1),z(_)&&(te=ce=!0,k.position++,Qe(k,!0,Be))),O=k.line,ht(k,Be,S,!1,!0),We=k.tag,Re=k.result,Qe(k,!0,Be),vt=k.input.charCodeAt(k.position),(ce||k.line===O)&&vt===58&&(te=!0,vt=k.input.charCodeAt(++k.position),Qe(k,!0,Be),ht(k,Be,S,!1,!0),ot=k.result),be?ft(k,oe,Le,We,Re,ot):te?oe.push(ft(k,null,Le,We,Re,ot)):oe.push(Re),Qe(k,!0,Be),vt=k.input.charCodeAt(k.position),vt===44?($=!0,vt=k.input.charCodeAt(++k.position)):$=!1}Ce(k,"unexpected end of the stream within a flow collection")}function St(k,Be){var $,O,T=U,oe=!1,D=!1,_=Be,fe=0,te=!1,ce,be;if(be=k.input.charCodeAt(k.position),be===124)O=!1;else if(be===62)O=!0;else return!1;for(k.kind="scalar",k.result="";be!==0;)if(be=k.input.charCodeAt(++k.position),be===43||be===45)U===T?T=be===43?K:Q:Ce(k,"repeat of a chomping mode identifier");else if((ce=ge(be))>=0)ce===0?Ce(k,"bad explicit indentation width of a block scalar; it cannot be less than one"):D?Ce(k,"repeat of an indentation width identifier"):(_=Be+ce-1,D=!0);else break;if(X(be)){do be=k.input.charCodeAt(++k.position);while(X(be));if(be===35)do be=k.input.charCodeAt(++k.position);while(!Z(be)&&be!==0)}for(;be!==0;){for(yt(k),k.lineIndent=0,be=k.input.charCodeAt(k.position);(!D||k.lineIndent<_)&&be===32;)k.lineIndent++,be=k.input.charCodeAt(++k.position);if(!D&&k.lineIndent>_&&(_=k.lineIndent),Z(be)){fe++;continue}if(k.lineIndent<_){T===K?k.result+=c.repeat(`
513
513
  `,oe?1+fe:fe):T===U&&oe&&(k.result+=`
514
514
  `);break}for(O?X(be)?(te=!0,k.result+=c.repeat(`
515
515
  `,oe?1+fe:fe)):te?(te=!1,k.result+=c.repeat(`
516
516
  `,fe+1)):fe===0?oe&&(k.result+=" "):k.result+=c.repeat(`
517
517
  `,fe):k.result+=c.repeat(`
518
- `,oe?1+fe:fe),oe=!0,D=!0,fe=0,$=k.position;!Z(be)&&be!==0;)be=k.input.charCodeAt(++k.position);Je(k,$,k.position,!1)}return!0}function jt(k,Be){var $,O=k.tag,T=k.anchor,oe=[],D,_=!1,fe;for(k.anchor!==null&&(k.anchorMap[k.anchor]=oe),fe=k.input.charCodeAt(k.position);fe!==0&&!(fe!==45||(D=k.input.charCodeAt(k.position+1),!z(D)));){if(_=!0,k.position++,Qe(k,!0,-1)&&k.lineIndent<=Be){oe.push(null),fe=k.input.charCodeAt(k.position);continue}if($=k.line,ht(k,Be,N,!1,!0),oe.push(k.result),Qe(k,!0,-1),fe=k.input.charCodeAt(k.position),(k.line===$||k.lineIndent>Be)&&fe!==0)Ce(k,"bad indentation of a sequence entry");else if(k.lineIndent<Be)break}return _?(k.tag=O,k.anchor=T,k.kind="sequence",k.result=oe,!0):!1}function Dt(k,Be,$){var O,T,oe,D,_=k.tag,fe=k.anchor,te={},ce={},be=null,Le=null,Re=null,We=!1,ot=!1,vt;for(k.anchor!==null&&(k.anchorMap[k.anchor]=te),vt=k.input.charCodeAt(k.position);vt!==0;){if(O=k.input.charCodeAt(k.position+1),oe=k.line,D=k.position,(vt===63||vt===58)&&z(O))vt===63?(We&&(ft(k,te,ce,be,Le,null),be=Le=Re=null),ot=!0,We=!0,T=!0):We?(We=!1,T=!0):Ce(k,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),k.position+=1,vt=O;else if(ht(k,$,L,!1,!0))if(k.line===oe){for(vt=k.input.charCodeAt(k.position);X(vt);)vt=k.input.charCodeAt(++k.position);if(vt===58)vt=k.input.charCodeAt(++k.position),z(vt)||Ce(k,"a whitespace character is expected after the key-value separator within a block mapping"),We&&(ft(k,te,ce,be,Le,null),be=Le=Re=null),ot=!0,We=!1,T=!1,be=k.tag,Le=k.result;else if(ot)Ce(k,"can not read an implicit mapping pair; a colon is missed");else return k.tag=_,k.anchor=fe,!0}else if(ot)Ce(k,"can not read a block mapping entry; a multiline key may not be an implicit key");else return k.tag=_,k.anchor=fe,!0;else break;if((k.line===oe||k.lineIndent>Be)&&(ht(k,Be,j,!0,T)&&(We?Le=k.result:Re=k.result),We||(ft(k,te,ce,be,Le,Re,oe,D),be=Le=Re=null),Qe(k,!0,-1),vt=k.input.charCodeAt(k.position)),k.lineIndent>Be&&vt!==0)Ce(k,"bad indentation of a mapping entry");else if(k.lineIndent<Be)break}return We&&ft(k,te,ce,be,Le,null),ot&&(k.tag=_,k.anchor=fe,k.kind="mapping",k.result=te),ot}function Nt(k){var Be,$=!1,O=!1,T,oe,D;if(D=k.input.charCodeAt(k.position),D!==33)return!1;if(k.tag!==null&&Ce(k,"duplication of a tag property"),D=k.input.charCodeAt(++k.position),D===60?($=!0,D=k.input.charCodeAt(++k.position)):D===33?(O=!0,T="!!",D=k.input.charCodeAt(++k.position)):T="!",Be=k.position,$){do D=k.input.charCodeAt(++k.position);while(D!==0&&D!==62);k.position<k.length?(oe=k.input.slice(Be,k.position),D=k.input.charCodeAt(++k.position)):Ce(k,"unexpected end of the stream within a verbatim tag")}else{for(;D!==0&&!z(D);)D===33&&(O?Ce(k,"tag suffix cannot contain exclamation marks"):(T=k.input.slice(Be-1,k.position+1),E.test(T)||Ce(k,"named tag handle cannot contain such characters"),O=!0,Be=k.position+1)),D=k.input.charCodeAt(++k.position);oe=k.input.slice(Be,k.position),R.test(oe)&&Ce(k,"tag suffix cannot contain flow indicator characters")}return oe&&!V.test(oe)&&Ce(k,"tag name cannot contain such characters: "+oe),$?k.tag=oe:C.call(k.tagMap,T)?k.tag=k.tagMap[T]+oe:T==="!"?k.tag="!"+oe:T==="!!"?k.tag="tag:yaml.org,2002:"+oe:Ce(k,'undeclared tag handle "'+T+'"'),!0}function mt(k){var Be,$;if($=k.input.charCodeAt(k.position),$!==38)return!1;for(k.anchor!==null&&Ce(k,"duplication of an anchor property"),$=k.input.charCodeAt(++k.position),Be=k.position;$!==0&&!z($)&&!ue($);)$=k.input.charCodeAt(++k.position);return k.position===Be&&Ce(k,"name of an anchor node must contain at least one character"),k.anchor=k.input.slice(Be,k.position),!0}function It(k){var Be,$,O;if(O=k.input.charCodeAt(k.position),O!==42)return!1;for(O=k.input.charCodeAt(++k.position),Be=k.position;O!==0&&!z(O)&&!ue(O);)O=k.input.charCodeAt(++k.position);return k.position===Be&&Ce(k,"name of an alias node must contain at least one character"),$=k.input.slice(Be,k.position),C.call(k.anchorMap,$)||Ce(k,'unidentified alias "'+$+'"'),k.result=k.anchorMap[$],Qe(k,!0,-1),!0}function ht(k,Be,$,O,T){var oe,D,_,fe=1,te=!1,ce=!1,be,Le,Re,We,ot;if(k.listener!==null&&k.listener("open",k),k.tag=null,k.anchor=null,k.kind=null,k.result=null,oe=D=_=j===$||N===$,O&&Qe(k,!0,-1)&&(te=!0,k.lineIndent>Be?fe=1:k.lineIndent===Be?fe=0:k.lineIndent<Be&&(fe=-1)),fe===1)for(;Nt(k)||mt(k);)Qe(k,!0,-1)?(te=!0,_=oe,k.lineIndent>Be?fe=1:k.lineIndent===Be?fe=0:k.lineIndent<Be&&(fe=-1)):_=!1;if(_&&(_=te||T),(fe===1||j===$)&&(S===$||L===$?We=Be:We=Be+1,ot=k.position-k.lineStart,fe===1?_&&(jt(k,ot)||Dt(k,ot,We))||Et(k,We)?ce=!0:(D&&St(k,We)||st(k,We)||Ot(k,We)?ce=!0:It(k)?(ce=!0,(k.tag!==null||k.anchor!==null)&&Ce(k,"alias node should not have any properties")):dt(k,We,S===$)&&(ce=!0,k.tag===null&&(k.tag="?")),k.anchor!==null&&(k.anchorMap[k.anchor]=k.result)):fe===0&&(ce=_&&jt(k,ot))),k.tag!==null&&k.tag!=="!")if(k.tag==="?"){for(k.result!==null&&k.kind!=="scalar"&&Ce(k,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+k.kind+'"'),be=0,Le=k.implicitTypes.length;be<Le;be+=1)if(Re=k.implicitTypes[be],Re.resolve(k.result)){k.result=Re.construct(k.result),k.tag=Re.tag,k.anchor!==null&&(k.anchorMap[k.anchor]=k.result);break}}else C.call(k.typeMap[k.kind||"fallback"],k.tag)?(Re=k.typeMap[k.kind||"fallback"][k.tag],k.result!==null&&Re.kind!==k.kind&&Ce(k,"unacceptable node kind for !<"+k.tag+'> tag; it should be "'+Re.kind+'", not "'+k.kind+'"'),Re.resolve(k.result)?(k.result=Re.construct(k.result),k.anchor!==null&&(k.anchorMap[k.anchor]=k.result)):Ce(k,"cannot resolve a node with !<"+k.tag+"> explicit tag")):Ce(k,"unknown tag !<"+k.tag+">");return k.listener!==null&&k.listener("close",k),k.tag!==null||k.anchor!==null||ce}function zt(k){var Be=k.position,$,O,T,oe=!1,D;for(k.version=null,k.checkLineBreaks=k.legacy,k.tagMap={},k.anchorMap={};(D=k.input.charCodeAt(k.position))!==0&&(Qe(k,!0,-1),D=k.input.charCodeAt(k.position),!(k.lineIndent>0||D!==37));){for(oe=!0,D=k.input.charCodeAt(++k.position),$=k.position;D!==0&&!z(D);)D=k.input.charCodeAt(++k.position);for(O=k.input.slice($,k.position),T=[],O.length<1&&Ce(k,"directive name must not be less than one character in length");D!==0;){for(;X(D);)D=k.input.charCodeAt(++k.position);if(D===35){do D=k.input.charCodeAt(++k.position);while(D!==0&&!Z(D));break}if(Z(D))break;for($=k.position;D!==0&&!z(D);)D=k.input.charCodeAt(++k.position);T.push(k.input.slice($,k.position))}D!==0&&yt(k),C.call(He,O)?He[O](k,O,T):Xe(k,'unknown document directive "'+O+'"')}if(Qe(k,!0,-1),k.lineIndent===0&&k.input.charCodeAt(k.position)===45&&k.input.charCodeAt(k.position+1)===45&&k.input.charCodeAt(k.position+2)===45?(k.position+=3,Qe(k,!0,-1)):oe&&Ce(k,"directives end mark is expected"),ht(k,k.lineIndent-1,j,!1,!0),Qe(k,!0,-1),k.checkLineBreaks&&Y.test(k.input.slice(Be,k.position))&&Xe(k,"non-ASCII line breaks are interpreted as content"),k.documents.push(k.result),k.position===k.lineStart&&nt(k)){k.input.charCodeAt(k.position)===46&&(k.position+=3,Qe(k,!0,-1));return}if(k.position<k.length-1)Ce(k,"end of the stream or a document separator is expected");else return}function Kt(k,Be){k=String(k),Be=Be||{},k.length!==0&&(k.charCodeAt(k.length-1)!==10&&k.charCodeAt(k.length-1)!==13&&(k+=`
518
+ `,oe?1+fe:fe),oe=!0,D=!0,fe=0,$=k.position;!Z(be)&&be!==0;)be=k.input.charCodeAt(++k.position);Je(k,$,k.position,!1)}return!0}function Ut(k,Be){var $,O=k.tag,T=k.anchor,oe=[],D,_=!1,fe;for(k.anchor!==null&&(k.anchorMap[k.anchor]=oe),fe=k.input.charCodeAt(k.position);fe!==0&&!(fe!==45||(D=k.input.charCodeAt(k.position+1),!z(D)));){if(_=!0,k.position++,Qe(k,!0,-1)&&k.lineIndent<=Be){oe.push(null),fe=k.input.charCodeAt(k.position);continue}if($=k.line,ht(k,Be,N,!1,!0),oe.push(k.result),Qe(k,!0,-1),fe=k.input.charCodeAt(k.position),(k.line===$||k.lineIndent>Be)&&fe!==0)Ce(k,"bad indentation of a sequence entry");else if(k.lineIndent<Be)break}return _?(k.tag=O,k.anchor=T,k.kind="sequence",k.result=oe,!0):!1}function Dt(k,Be,$){var O,T,oe,D,_=k.tag,fe=k.anchor,te={},ce={},be=null,Le=null,Re=null,We=!1,ot=!1,vt;for(k.anchor!==null&&(k.anchorMap[k.anchor]=te),vt=k.input.charCodeAt(k.position);vt!==0;){if(O=k.input.charCodeAt(k.position+1),oe=k.line,D=k.position,(vt===63||vt===58)&&z(O))vt===63?(We&&(ft(k,te,ce,be,Le,null),be=Le=Re=null),ot=!0,We=!0,T=!0):We?(We=!1,T=!0):Ce(k,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),k.position+=1,vt=O;else if(ht(k,$,L,!1,!0))if(k.line===oe){for(vt=k.input.charCodeAt(k.position);X(vt);)vt=k.input.charCodeAt(++k.position);if(vt===58)vt=k.input.charCodeAt(++k.position),z(vt)||Ce(k,"a whitespace character is expected after the key-value separator within a block mapping"),We&&(ft(k,te,ce,be,Le,null),be=Le=Re=null),ot=!0,We=!1,T=!1,be=k.tag,Le=k.result;else if(ot)Ce(k,"can not read an implicit mapping pair; a colon is missed");else return k.tag=_,k.anchor=fe,!0}else if(ot)Ce(k,"can not read a block mapping entry; a multiline key may not be an implicit key");else return k.tag=_,k.anchor=fe,!0;else break;if((k.line===oe||k.lineIndent>Be)&&(ht(k,Be,j,!0,T)&&(We?Le=k.result:Re=k.result),We||(ft(k,te,ce,be,Le,Re,oe,D),be=Le=Re=null),Qe(k,!0,-1),vt=k.input.charCodeAt(k.position)),k.lineIndent>Be&&vt!==0)Ce(k,"bad indentation of a mapping entry");else if(k.lineIndent<Be)break}return We&&ft(k,te,ce,be,Le,null),ot&&(k.tag=_,k.anchor=fe,k.kind="mapping",k.result=te),ot}function Nt(k){var Be,$=!1,O=!1,T,oe,D;if(D=k.input.charCodeAt(k.position),D!==33)return!1;if(k.tag!==null&&Ce(k,"duplication of a tag property"),D=k.input.charCodeAt(++k.position),D===60?($=!0,D=k.input.charCodeAt(++k.position)):D===33?(O=!0,T="!!",D=k.input.charCodeAt(++k.position)):T="!",Be=k.position,$){do D=k.input.charCodeAt(++k.position);while(D!==0&&D!==62);k.position<k.length?(oe=k.input.slice(Be,k.position),D=k.input.charCodeAt(++k.position)):Ce(k,"unexpected end of the stream within a verbatim tag")}else{for(;D!==0&&!z(D);)D===33&&(O?Ce(k,"tag suffix cannot contain exclamation marks"):(T=k.input.slice(Be-1,k.position+1),E.test(T)||Ce(k,"named tag handle cannot contain such characters"),O=!0,Be=k.position+1)),D=k.input.charCodeAt(++k.position);oe=k.input.slice(Be,k.position),R.test(oe)&&Ce(k,"tag suffix cannot contain flow indicator characters")}return oe&&!V.test(oe)&&Ce(k,"tag name cannot contain such characters: "+oe),$?k.tag=oe:C.call(k.tagMap,T)?k.tag=k.tagMap[T]+oe:T==="!"?k.tag="!"+oe:T==="!!"?k.tag="tag:yaml.org,2002:"+oe:Ce(k,'undeclared tag handle "'+T+'"'),!0}function mt(k){var Be,$;if($=k.input.charCodeAt(k.position),$!==38)return!1;for(k.anchor!==null&&Ce(k,"duplication of an anchor property"),$=k.input.charCodeAt(++k.position),Be=k.position;$!==0&&!z($)&&!ue($);)$=k.input.charCodeAt(++k.position);return k.position===Be&&Ce(k,"name of an anchor node must contain at least one character"),k.anchor=k.input.slice(Be,k.position),!0}function It(k){var Be,$,O;if(O=k.input.charCodeAt(k.position),O!==42)return!1;for(O=k.input.charCodeAt(++k.position),Be=k.position;O!==0&&!z(O)&&!ue(O);)O=k.input.charCodeAt(++k.position);return k.position===Be&&Ce(k,"name of an alias node must contain at least one character"),$=k.input.slice(Be,k.position),C.call(k.anchorMap,$)||Ce(k,'unidentified alias "'+$+'"'),k.result=k.anchorMap[$],Qe(k,!0,-1),!0}function ht(k,Be,$,O,T){var oe,D,_,fe=1,te=!1,ce=!1,be,Le,Re,We,ot;if(k.listener!==null&&k.listener("open",k),k.tag=null,k.anchor=null,k.kind=null,k.result=null,oe=D=_=j===$||N===$,O&&Qe(k,!0,-1)&&(te=!0,k.lineIndent>Be?fe=1:k.lineIndent===Be?fe=0:k.lineIndent<Be&&(fe=-1)),fe===1)for(;Nt(k)||mt(k);)Qe(k,!0,-1)?(te=!0,_=oe,k.lineIndent>Be?fe=1:k.lineIndent===Be?fe=0:k.lineIndent<Be&&(fe=-1)):_=!1;if(_&&(_=te||T),(fe===1||j===$)&&(S===$||L===$?We=Be:We=Be+1,ot=k.position-k.lineStart,fe===1?_&&(Ut(k,ot)||Dt(k,ot,We))||Et(k,We)?ce=!0:(D&&St(k,We)||st(k,We)||Ot(k,We)?ce=!0:It(k)?(ce=!0,(k.tag!==null||k.anchor!==null)&&Ce(k,"alias node should not have any properties")):dt(k,We,S===$)&&(ce=!0,k.tag===null&&(k.tag="?")),k.anchor!==null&&(k.anchorMap[k.anchor]=k.result)):fe===0&&(ce=_&&Ut(k,ot))),k.tag!==null&&k.tag!=="!")if(k.tag==="?"){for(k.result!==null&&k.kind!=="scalar"&&Ce(k,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+k.kind+'"'),be=0,Le=k.implicitTypes.length;be<Le;be+=1)if(Re=k.implicitTypes[be],Re.resolve(k.result)){k.result=Re.construct(k.result),k.tag=Re.tag,k.anchor!==null&&(k.anchorMap[k.anchor]=k.result);break}}else C.call(k.typeMap[k.kind||"fallback"],k.tag)?(Re=k.typeMap[k.kind||"fallback"][k.tag],k.result!==null&&Re.kind!==k.kind&&Ce(k,"unacceptable node kind for !<"+k.tag+'> tag; it should be "'+Re.kind+'", not "'+k.kind+'"'),Re.resolve(k.result)?(k.result=Re.construct(k.result),k.anchor!==null&&(k.anchorMap[k.anchor]=k.result)):Ce(k,"cannot resolve a node with !<"+k.tag+"> explicit tag")):Ce(k,"unknown tag !<"+k.tag+">");return k.listener!==null&&k.listener("close",k),k.tag!==null||k.anchor!==null||ce}function zt(k){var Be=k.position,$,O,T,oe=!1,D;for(k.version=null,k.checkLineBreaks=k.legacy,k.tagMap={},k.anchorMap={};(D=k.input.charCodeAt(k.position))!==0&&(Qe(k,!0,-1),D=k.input.charCodeAt(k.position),!(k.lineIndent>0||D!==37));){for(oe=!0,D=k.input.charCodeAt(++k.position),$=k.position;D!==0&&!z(D);)D=k.input.charCodeAt(++k.position);for(O=k.input.slice($,k.position),T=[],O.length<1&&Ce(k,"directive name must not be less than one character in length");D!==0;){for(;X(D);)D=k.input.charCodeAt(++k.position);if(D===35){do D=k.input.charCodeAt(++k.position);while(D!==0&&!Z(D));break}if(Z(D))break;for($=k.position;D!==0&&!z(D);)D=k.input.charCodeAt(++k.position);T.push(k.input.slice($,k.position))}D!==0&&yt(k),C.call(He,O)?He[O](k,O,T):Xe(k,'unknown document directive "'+O+'"')}if(Qe(k,!0,-1),k.lineIndent===0&&k.input.charCodeAt(k.position)===45&&k.input.charCodeAt(k.position+1)===45&&k.input.charCodeAt(k.position+2)===45?(k.position+=3,Qe(k,!0,-1)):oe&&Ce(k,"directives end mark is expected"),ht(k,k.lineIndent-1,j,!1,!0),Qe(k,!0,-1),k.checkLineBreaks&&Y.test(k.input.slice(Be,k.position))&&Xe(k,"non-ASCII line breaks are interpreted as content"),k.documents.push(k.result),k.position===k.lineStart&&nt(k)){k.input.charCodeAt(k.position)===46&&(k.position+=3,Qe(k,!0,-1));return}if(k.position<k.length-1)Ce(k,"end of the stream or a document separator is expected");else return}function Kt(k,Be){k=String(k),Be=Be||{},k.length!==0&&(k.charCodeAt(k.length-1)!==10&&k.charCodeAt(k.length-1)!==13&&(k+=`
519
519
  `),k.charCodeAt(0)===65279&&(k=k.slice(1)));var $=new Pe(k,Be),O=k.indexOf("\0");for(O!==-1&&($.position=O,Ce($,"null byte is not allowed in input")),$.input+="\0";$.input.charCodeAt($.position)===32;)$.lineIndent+=1,$.position+=1;for(;$.position<$.length-1;)zt($);return $.documents}function sr(k,Be,$){Be!==null&&typeof Be=="object"&&typeof $=="undefined"&&($=Be,Be=null);var O=Kt(k,$);if(typeof Be!="function")return O;for(var T=0,oe=O.length;T<oe;T+=1)Be(O[T])}function Mt(k,Be){var $=Kt(k,Be);if($.length!==0){if($.length===1)return $[0];throw new v("expected a single document in the stream, but found more")}}function Wt(k,Be,$){return typeof Be=="object"&&Be!==null&&typeof $=="undefined"&&($=Be,Be=null),sr(k,Be,c.extend({schema:h},$))}function Bt(k,Be){return Mt(k,c.extend({schema:h},Be))}p.exports.loadAll=sr,p.exports.load=Mt,p.exports.safeLoadAll=Wt,p.exports.safeLoad=Bt},77334:(p,I,a)=>{"use strict";var c=a(25596);function v(m,h,b,C,S){this.name=m,this.buffer=h,this.position=b,this.line=C,this.column=S}v.prototype.getSnippet=function(h,b){var C,S,L,N,j;if(!this.buffer)return null;for(h=h||4,b=b||75,C="",S=this.position;S>0&&`\0\r
520
520
  \x85\u2028\u2029`.indexOf(this.buffer.charAt(S-1))===-1;)if(S-=1,this.position-S>b/2-1){C=" ... ",S+=5;break}for(L="",N=this.position;N<this.buffer.length&&`\0\r
521
521
  \x85\u2028\u2029`.indexOf(this.buffer.charAt(N))===-1;)if(N+=1,N-this.position>b/2-1){L=" ... ",N-=5;break}return j=this.buffer.slice(S,N),c.repeat(" ",h)+C+j+L+`
522
522
  `+c.repeat(" ",h+this.position-S+C.length)+"^"},v.prototype.toString=function(h){var b,C="";return this.name&&(C+='in "'+this.name+'" '),C+="at line "+(this.line+1)+", column "+(this.column+1),h||(b=this.getSnippet(),b&&(C+=`:
523
523
  `+b)),C},p.exports=v},82409:(p,I,a)=>{"use strict";var c=a(25596),v=a(14884),m=a(53899);function h(S,L,N){var j=[];return S.include.forEach(function(U){N=h(U,L,N)}),S[L].forEach(function(U){N.forEach(function(Q,K){Q.tag===U.tag&&Q.kind===U.kind&&j.push(K)}),N.push(U)}),N.filter(function(U,Q){return j.indexOf(Q)===-1})}function b(){var S={scalar:{},sequence:{},mapping:{},fallback:{}},L,N;function j(U){S[U.kind][U.tag]=S.fallback[U.tag]=U}for(L=0,N=arguments.length;L<N;L+=1)arguments[L].forEach(j);return S}function C(S){this.include=S.include||[],this.implicit=S.implicit||[],this.explicit=S.explicit||[],this.implicit.forEach(function(L){if(L.loadKind&&L.loadKind!=="scalar")throw new v("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=h(this,"implicit",[]),this.compiledExplicit=h(this,"explicit",[]),this.compiledTypeMap=b(this.compiledImplicit,this.compiledExplicit)}C.DEFAULT=null,C.create=function(){var L,N;switch(arguments.length){case 1:L=C.DEFAULT,N=arguments[0];break;case 2:L=arguments[0],N=arguments[1];break;default:throw new v("Wrong number of arguments for Schema.create function")}if(L=c.toArray(L),N=c.toArray(N),!L.every(function(j){return j instanceof C}))throw new v("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!N.every(function(j){return j instanceof m}))throw new v("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new C({include:L,explicit:N})},p.exports=C},17318:(p,I,a)=>{"use strict";var c=a(82409);p.exports=new c({include:[a(65796)]})},19321:(p,I,a)=>{"use strict";var c=a(82409);p.exports=c.DEFAULT=new c({include:[a(5972)],explicit:[a(70575),a(97287),a(89811)]})},5972:(p,I,a)=>{"use strict";var c=a(82409);p.exports=new c({include:[a(17318)],implicit:[a(56145),a(243)],explicit:[a(18964),a(3878),a(68244),a(67300)]})},75322:(p,I,a)=>{"use strict";var c=a(82409);p.exports=new c({explicit:[a(79483),a(43745),a(86553)]})},65796:(p,I,a)=>{"use strict";var c=a(82409);p.exports=new c({include:[a(75322)],implicit:[a(3022),a(2648),a(95979),a(53456)]})},53899:(p,I,a)=>{"use strict";var c=a(14884),v=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],m=["scalar","sequence","mapping"];function h(C){var S={};return C!==null&&Object.keys(C).forEach(function(L){C[L].forEach(function(N){S[String(N)]=L})}),S}function b(C,S){if(S=S||{},Object.keys(S).forEach(function(L){if(v.indexOf(L)===-1)throw new c('Unknown option "'+L+'" is met in definition of "'+C+'" YAML type.')}),this.tag=C,this.kind=S.kind||null,this.resolve=S.resolve||function(){return!0},this.construct=S.construct||function(L){return L},this.instanceOf=S.instanceOf||null,this.predicate=S.predicate||null,this.represent=S.represent||null,this.defaultStyle=S.defaultStyle||null,this.styleAliases=h(S.styleAliases||null),m.indexOf(this.kind)===-1)throw new c('Unknown kind "'+this.kind+'" is specified for "'+C+'" YAML type.')}p.exports=b},18964:(p,I,a)=>{"use strict";var c;try{var v=void 0;c=a(48764).Buffer}catch(N){}var m=a(53899),h=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
524
- \r`;function b(N){if(N===null)return!1;var j,U,Q=0,K=N.length,M=h;for(U=0;U<K;U++)if(j=M.indexOf(N.charAt(U)),!(j>64)){if(j<0)return!1;Q+=6}return Q%8==0}function C(N){var j,U,Q=N.replace(/[\r\n=]/g,""),K=Q.length,M=h,Y=0,R=[];for(j=0;j<K;j++)j%4==0&&j&&(R.push(Y>>16&255),R.push(Y>>8&255),R.push(Y&255)),Y=Y<<6|M.indexOf(Q.charAt(j));return U=K%4*6,U===0?(R.push(Y>>16&255),R.push(Y>>8&255),R.push(Y&255)):U===18?(R.push(Y>>10&255),R.push(Y>>2&255)):U===12&&R.push(Y>>4&255),c?c.from?c.from(R):new c(R):R}function S(N){var j="",U=0,Q,K,M=N.length,Y=h;for(Q=0;Q<M;Q++)Q%3==0&&Q&&(j+=Y[U>>18&63],j+=Y[U>>12&63],j+=Y[U>>6&63],j+=Y[U&63]),U=(U<<8)+N[Q];return K=M%3,K===0?(j+=Y[U>>18&63],j+=Y[U>>12&63],j+=Y[U>>6&63],j+=Y[U&63]):K===2?(j+=Y[U>>10&63],j+=Y[U>>4&63],j+=Y[U<<2&63],j+=Y[64]):K===1&&(j+=Y[U>>2&63],j+=Y[U<<4&63],j+=Y[64],j+=Y[64]),j}function L(N){return c&&c.isBuffer(N)}p.exports=new m("tag:yaml.org,2002:binary",{kind:"scalar",resolve:b,construct:C,predicate:L,represent:S})},2648:(p,I,a)=>{"use strict";var c=a(53899);function v(b){if(b===null)return!1;var C=b.length;return C===4&&(b==="true"||b==="True"||b==="TRUE")||C===5&&(b==="false"||b==="False"||b==="FALSE")}function m(b){return b==="true"||b==="True"||b==="TRUE"}function h(b){return Object.prototype.toString.call(b)==="[object Boolean]"}p.exports=new c("tag:yaml.org,2002:bool",{kind:"scalar",resolve:v,construct:m,predicate:h,represent:{lowercase:function(b){return b?"true":"false"},uppercase:function(b){return b?"TRUE":"FALSE"},camelcase:function(b){return b?"True":"False"}},defaultStyle:"lowercase"})},53456:(p,I,a)=>{"use strict";var c=a(25596),v=a(53899),m=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function h(N){return!(N===null||!m.test(N)||N[N.length-1]==="_")}function b(N){var j,U,Q,K;return j=N.replace(/_/g,"").toLowerCase(),U=j[0]==="-"?-1:1,K=[],"+-".indexOf(j[0])>=0&&(j=j.slice(1)),j===".inf"?U===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:j===".nan"?NaN:j.indexOf(":")>=0?(j.split(":").forEach(function(M){K.unshift(parseFloat(M,10))}),j=0,Q=1,K.forEach(function(M){j+=M*Q,Q*=60}),U*j):U*parseFloat(j,10)}var C=/^[-+]?[0-9]+e/;function S(N,j){var U;if(isNaN(N))switch(j){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===N)switch(j){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===N)switch(j){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(c.isNegativeZero(N))return"-0.0";return U=N.toString(10),C.test(U)?U.replace("e",".e"):U}function L(N){return Object.prototype.toString.call(N)==="[object Number]"&&(N%1!=0||c.isNegativeZero(N))}p.exports=new v("tag:yaml.org,2002:float",{kind:"scalar",resolve:h,construct:b,predicate:L,represent:S,defaultStyle:"lowercase"})},95979:(p,I,a)=>{"use strict";var c=a(25596),v=a(53899);function m(N){return 48<=N&&N<=57||65<=N&&N<=70||97<=N&&N<=102}function h(N){return 48<=N&&N<=55}function b(N){return 48<=N&&N<=57}function C(N){if(N===null)return!1;var j=N.length,U=0,Q=!1,K;if(!j)return!1;if(K=N[U],(K==="-"||K==="+")&&(K=N[++U]),K==="0"){if(U+1===j)return!0;if(K=N[++U],K==="b"){for(U++;U<j;U++)if(K=N[U],K!=="_"){if(K!=="0"&&K!=="1")return!1;Q=!0}return Q&&K!=="_"}if(K==="x"){for(U++;U<j;U++)if(K=N[U],K!=="_"){if(!m(N.charCodeAt(U)))return!1;Q=!0}return Q&&K!=="_"}for(;U<j;U++)if(K=N[U],K!=="_"){if(!h(N.charCodeAt(U)))return!1;Q=!0}return Q&&K!=="_"}if(K==="_")return!1;for(;U<j;U++)if(K=N[U],K!=="_"){if(K===":")break;if(!b(N.charCodeAt(U)))return!1;Q=!0}return!Q||K==="_"?!1:K!==":"?!0:/^(:[0-5]?[0-9])+$/.test(N.slice(U))}function S(N){var j=N,U=1,Q,K,M=[];return j.indexOf("_")!==-1&&(j=j.replace(/_/g,"")),Q=j[0],(Q==="-"||Q==="+")&&(Q==="-"&&(U=-1),j=j.slice(1),Q=j[0]),j==="0"?0:Q==="0"?j[1]==="b"?U*parseInt(j.slice(2),2):j[1]==="x"?U*parseInt(j,16):U*parseInt(j,8):j.indexOf(":")!==-1?(j.split(":").forEach(function(Y){M.unshift(parseInt(Y,10))}),j=0,K=1,M.forEach(function(Y){j+=Y*K,K*=60}),U*j):U*parseInt(j,10)}function L(N){return Object.prototype.toString.call(N)==="[object Number]"&&N%1==0&&!c.isNegativeZero(N)}p.exports=new v("tag:yaml.org,2002:int",{kind:"scalar",resolve:C,construct:S,predicate:L,represent:{binary:function(N){return N>=0?"0b"+N.toString(2):"-0b"+N.toString(2).slice(1)},octal:function(N){return N>=0?"0"+N.toString(8):"-0"+N.toString(8).slice(1)},decimal:function(N){return N.toString(10)},hexadecimal:function(N){return N>=0?"0x"+N.toString(16).toUpperCase():"-0x"+N.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},89811:(p,I,a)=>{"use strict";var c;try{var v=void 0;c=a(88150)}catch(L){typeof window!="undefined"&&(c=window.esprima)}var m=a(53899);function h(L){if(L===null)return!1;try{var N="("+L+")",j=c.parse(N,{range:!0});return!(j.type!=="Program"||j.body.length!==1||j.body[0].type!=="ExpressionStatement"||j.body[0].expression.type!=="ArrowFunctionExpression"&&j.body[0].expression.type!=="FunctionExpression")}catch(U){return!1}}function b(L){var N="("+L+")",j=c.parse(N,{range:!0}),U=[],Q;if(j.type!=="Program"||j.body.length!==1||j.body[0].type!=="ExpressionStatement"||j.body[0].expression.type!=="ArrowFunctionExpression"&&j.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return j.body[0].expression.params.forEach(function(K){U.push(K.name)}),Q=j.body[0].expression.body.range,j.body[0].expression.body.type==="BlockStatement"?new Function(U,N.slice(Q[0]+1,Q[1]-1)):new Function(U,"return "+N.slice(Q[0],Q[1]))}function C(L){return L.toString()}function S(L){return Object.prototype.toString.call(L)==="[object Function]"}p.exports=new m("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:h,construct:b,predicate:S,represent:C})},97287:(p,I,a)=>{"use strict";var c=a(53899);function v(C){if(C===null||C.length===0)return!1;var S=C,L=/\/([gim]*)$/.exec(C),N="";return!(S[0]==="/"&&(L&&(N=L[1]),N.length>3||S[S.length-N.length-1]!=="/"))}function m(C){var S=C,L=/\/([gim]*)$/.exec(C),N="";return S[0]==="/"&&(L&&(N=L[1]),S=S.slice(1,S.length-N.length-1)),new RegExp(S,N)}function h(C){var S="/"+C.source+"/";return C.global&&(S+="g"),C.multiline&&(S+="m"),C.ignoreCase&&(S+="i"),S}function b(C){return Object.prototype.toString.call(C)==="[object RegExp]"}p.exports=new c("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:v,construct:m,predicate:b,represent:h})},70575:(p,I,a)=>{"use strict";var c=a(53899);function v(){return!0}function m(){}function h(){return""}function b(C){return typeof C=="undefined"}p.exports=new c("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:v,construct:m,predicate:b,represent:h})},86553:(p,I,a)=>{"use strict";var c=a(53899);p.exports=new c("tag:yaml.org,2002:map",{kind:"mapping",construct:function(v){return v!==null?v:{}}})},243:(p,I,a)=>{"use strict";var c=a(53899);function v(m){return m==="<<"||m===null}p.exports=new c("tag:yaml.org,2002:merge",{kind:"scalar",resolve:v})},3022:(p,I,a)=>{"use strict";var c=a(53899);function v(b){if(b===null)return!0;var C=b.length;return C===1&&b==="~"||C===4&&(b==="null"||b==="Null"||b==="NULL")}function m(){return null}function h(b){return b===null}p.exports=new c("tag:yaml.org,2002:null",{kind:"scalar",resolve:v,construct:m,predicate:h,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},3878:(p,I,a)=>{"use strict";var c=a(53899),v=Object.prototype.hasOwnProperty,m=Object.prototype.toString;function h(C){if(C===null)return!0;var S=[],L,N,j,U,Q,K=C;for(L=0,N=K.length;L<N;L+=1){if(j=K[L],Q=!1,m.call(j)!=="[object Object]")return!1;for(U in j)if(v.call(j,U))if(!Q)Q=!0;else return!1;if(!Q)return!1;if(S.indexOf(U)===-1)S.push(U);else return!1}return!0}function b(C){return C!==null?C:[]}p.exports=new c("tag:yaml.org,2002:omap",{kind:"sequence",resolve:h,construct:b})},68244:(p,I,a)=>{"use strict";var c=a(53899),v=Object.prototype.toString;function m(b){if(b===null)return!0;var C,S,L,N,j,U=b;for(j=new Array(U.length),C=0,S=U.length;C<S;C+=1){if(L=U[C],v.call(L)!=="[object Object]"||(N=Object.keys(L),N.length!==1))return!1;j[C]=[N[0],L[N[0]]]}return!0}function h(b){if(b===null)return[];var C,S,L,N,j,U=b;for(j=new Array(U.length),C=0,S=U.length;C<S;C+=1)L=U[C],N=Object.keys(L),j[C]=[N[0],L[N[0]]];return j}p.exports=new c("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:m,construct:h})},43745:(p,I,a)=>{"use strict";var c=a(53899);p.exports=new c("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(v){return v!==null?v:[]}})},67300:(p,I,a)=>{"use strict";var c=a(53899),v=Object.prototype.hasOwnProperty;function m(b){if(b===null)return!0;var C,S=b;for(C in S)if(v.call(S,C)&&S[C]!==null)return!1;return!0}function h(b){return b!==null?b:{}}p.exports=new c("tag:yaml.org,2002:set",{kind:"mapping",resolve:m,construct:h})},79483:(p,I,a)=>{"use strict";var c=a(53899);p.exports=new c("tag:yaml.org,2002:str",{kind:"scalar",construct:function(v){return v!==null?v:""}})},56145:(p,I,a)=>{"use strict";var c=a(53899),v=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),m=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 h(S){return S===null?!1:v.exec(S)!==null||m.exec(S)!==null}function b(S){var L,N,j,U,Q,K,M,Y=0,R=null,E,V,G;if(L=v.exec(S),L===null&&(L=m.exec(S)),L===null)throw new Error("Date resolve error");if(N=+L[1],j=+L[2]-1,U=+L[3],!L[4])return new Date(Date.UTC(N,j,U));if(Q=+L[4],K=+L[5],M=+L[6],L[7]){for(Y=L[7].slice(0,3);Y.length<3;)Y+="0";Y=+Y}return L[9]&&(E=+L[10],V=+(L[11]||0),R=(E*60+V)*6e4,L[9]==="-"&&(R=-R)),G=new Date(Date.UTC(N,j,U,Q,K,M,Y)),R&&G.setTime(G.getTime()-R),G}function C(S){return S.toISOString()}p.exports=new c("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:h,construct:b,instanceOf:Date,represent:C})},18552:(p,I,a)=>{var c=a(10852),v=a(55639),m=c(v,"DataView");p.exports=m},1989:(p,I,a)=>{var c=a(51789),v=a(80401),m=a(57667),h=a(21327),b=a(81866);function C(S){var L=-1,N=S==null?0:S.length;for(this.clear();++L<N;){var j=S[L];this.set(j[0],j[1])}}C.prototype.clear=c,C.prototype.delete=v,C.prototype.get=m,C.prototype.has=h,C.prototype.set=b,p.exports=C},38407:(p,I,a)=>{var c=a(27040),v=a(14125),m=a(82117),h=a(67518),b=a(13399);function C(S){var L=-1,N=S==null?0:S.length;for(this.clear();++L<N;){var j=S[L];this.set(j[0],j[1])}}C.prototype.clear=c,C.prototype.delete=v,C.prototype.get=m,C.prototype.has=h,C.prototype.set=b,p.exports=C},57071:(p,I,a)=>{var c=a(10852),v=a(55639),m=c(v,"Map");p.exports=m},83369:(p,I,a)=>{var c=a(24785),v=a(11285),m=a(96e3),h=a(49916),b=a(95265);function C(S){var L=-1,N=S==null?0:S.length;for(this.clear();++L<N;){var j=S[L];this.set(j[0],j[1])}}C.prototype.clear=c,C.prototype.delete=v,C.prototype.get=m,C.prototype.has=h,C.prototype.set=b,p.exports=C},53818:(p,I,a)=>{var c=a(10852),v=a(55639),m=c(v,"Promise");p.exports=m},58525:(p,I,a)=>{var c=a(10852),v=a(55639),m=c(v,"Set");p.exports=m},88668:(p,I,a)=>{var c=a(83369),v=a(90619),m=a(72385);function h(b){var C=-1,S=b==null?0:b.length;for(this.__data__=new c;++C<S;)this.add(b[C])}h.prototype.add=h.prototype.push=v,h.prototype.has=m,p.exports=h},46384:(p,I,a)=>{var c=a(38407),v=a(37465),m=a(63779),h=a(67599),b=a(44758),C=a(34309);function S(L){var N=this.__data__=new c(L);this.size=N.size}S.prototype.clear=v,S.prototype.delete=m,S.prototype.get=h,S.prototype.has=b,S.prototype.set=C,p.exports=S},62705:(p,I,a)=>{var c=a(55639),v=c.Symbol;p.exports=v},11149:(p,I,a)=>{var c=a(55639),v=c.Uint8Array;p.exports=v},70577:(p,I,a)=>{var c=a(10852),v=a(55639),m=c(v,"WeakMap");p.exports=m},96874:p=>{function I(a,c,v){switch(v.length){case 0:return a.call(c);case 1:return a.call(c,v[0]);case 2:return a.call(c,v[0],v[1]);case 3:return a.call(c,v[0],v[1],v[2])}return a.apply(c,v)}p.exports=I},77412:p=>{function I(a,c){for(var v=-1,m=a==null?0:a.length;++v<m&&c(a[v],v,a)!==!1;);return a}p.exports=I},34963:p=>{function I(a,c){for(var v=-1,m=a==null?0:a.length,h=0,b=[];++v<m;){var C=a[v];c(C,v,a)&&(b[h++]=C)}return b}p.exports=I},14636:(p,I,a)=>{var c=a(22545),v=a(35694),m=a(1469),h=a(44144),b=a(65776),C=a(36719),S=Object.prototype,L=S.hasOwnProperty;function N(j,U){var Q=m(j),K=!Q&&v(j),M=!Q&&!K&&h(j),Y=!Q&&!K&&!M&&C(j),R=Q||K||M||Y,E=R?c(j.length,String):[],V=E.length;for(var G in j)(U||L.call(j,G))&&!(R&&(G=="length"||M&&(G=="offset"||G=="parent")||Y&&(G=="buffer"||G=="byteLength"||G=="byteOffset")||b(G,V)))&&E.push(G);return E}p.exports=N},29932:p=>{function I(a,c){for(var v=-1,m=a==null?0:a.length,h=Array(m);++v<m;)h[v]=c(a[v],v,a);return h}p.exports=I},62488:p=>{function I(a,c){for(var v=-1,m=c.length,h=a.length;++v<m;)a[h+v]=c[v];return a}p.exports=I},82908:p=>{function I(a,c){for(var v=-1,m=a==null?0:a.length;++v<m;)if(c(a[v],v,a))return!0;return!1}p.exports=I},34865:(p,I,a)=>{var c=a(89465),v=a(77813),m=Object.prototype,h=m.hasOwnProperty;function b(C,S,L){var N=C[S];(!(h.call(C,S)&&v(N,L))||L===void 0&&!(S in C))&&c(C,S,L)}p.exports=b},18470:(p,I,a)=>{var c=a(77813);function v(m,h){for(var b=m.length;b--;)if(c(m[b][0],h))return b;return-1}p.exports=v},44037:(p,I,a)=>{var c=a(98363),v=a(3674);function m(h,b){return h&&c(b,v(b),h)}p.exports=m},63886:(p,I,a)=>{var c=a(98363),v=a(81704);function m(h,b){return h&&c(b,v(b),h)}p.exports=m},89465:(p,I,a)=>{var c=a(38777);function v(m,h,b){h=="__proto__"&&c?c(m,h,{configurable:!0,enumerable:!0,value:b,writable:!0}):m[h]=b}p.exports=v},29750:p=>{function I(a,c,v){return a===a&&(v!==void 0&&(a=a<=v?a:v),c!==void 0&&(a=a>=c?a:c)),a}p.exports=I},85990:(p,I,a)=>{var c=a(46384),v=a(77412),m=a(34865),h=a(44037),b=a(63886),C=a(64626),S=a(278),L=a(18805),N=a(1911),j=a(58234),U=a(46904),Q=a(98882),K=a(43824),M=a(29148),Y=a(38517),R=a(1469),E=a(44144),V=a(56688),G=a(13218),Z=a(72928),X=a(3674),z=a(81704),ue=1,q=2,ne=4,ge="[object Arguments]",me="[object Array]",he="[object Boolean]",le="[object Date]",ie="[object Error]",Oe="[object Function]",Pe="[object GeneratorFunction]",Te="[object Map]",Ce="[object Number]",Xe="[object Object]",He="[object RegExp]",Je="[object Set]",ut="[object String]",ft="[object Symbol]",yt="[object WeakMap]",Qe="[object ArrayBuffer]",nt="[object DataView]",ct="[object Float32Array]",dt="[object Float64Array]",st="[object Int8Array]",Ot="[object Int16Array]",Et="[object Int32Array]",St="[object Uint8Array]",jt="[object Uint8ClampedArray]",Dt="[object Uint16Array]",Nt="[object Uint32Array]",mt={};mt[ge]=mt[me]=mt[Qe]=mt[nt]=mt[he]=mt[le]=mt[ct]=mt[dt]=mt[st]=mt[Ot]=mt[Et]=mt[Te]=mt[Ce]=mt[Xe]=mt[He]=mt[Je]=mt[ut]=mt[ft]=mt[St]=mt[jt]=mt[Dt]=mt[Nt]=!0,mt[ie]=mt[Oe]=mt[yt]=!1;function It(ht,zt,Kt,sr,Mt,Wt){var Bt,k=zt&ue,Be=zt&q,$=zt&ne;if(Kt&&(Bt=Mt?Kt(ht,sr,Mt,Wt):Kt(ht)),Bt!==void 0)return Bt;if(!G(ht))return ht;var O=R(ht);if(O){if(Bt=K(ht),!k)return S(ht,Bt)}else{var T=Q(ht),oe=T==Oe||T==Pe;if(E(ht))return C(ht,k);if(T==Xe||T==ge||oe&&!Mt){if(Bt=Be||oe?{}:Y(ht),!k)return Be?N(ht,b(Bt,ht)):L(ht,h(Bt,ht))}else{if(!mt[T])return Mt?ht:{};Bt=M(ht,T,k)}}Wt||(Wt=new c);var D=Wt.get(ht);if(D)return D;Wt.set(ht,Bt),Z(ht)?ht.forEach(function(te){Bt.add(It(te,zt,Kt,te,ht,Wt))}):V(ht)&&ht.forEach(function(te,ce){Bt.set(ce,It(te,zt,Kt,ce,ht,Wt))});var _=$?Be?U:j:Be?z:X,fe=O?void 0:_(ht);return v(fe||ht,function(te,ce){fe&&(ce=te,te=ht[ce]),m(Bt,ce,It(te,zt,Kt,ce,ht,Wt))}),Bt}p.exports=It},3118:(p,I,a)=>{var c=a(13218),v=Object.create,m=function(){function h(){}return function(b){if(!c(b))return{};if(v)return v(b);h.prototype=b;var C=new h;return h.prototype=void 0,C}}();p.exports=m},41848:p=>{function I(a,c,v,m){for(var h=a.length,b=v+(m?1:-1);m?b--:++b<h;)if(c(a[b],b,a))return b;return-1}p.exports=I},35764:(p,I,a)=>{var c=a(62488),v=a(37285);function m(h,b,C,S,L){var N=-1,j=h.length;for(C||(C=v),L||(L=[]);++N<j;){var U=h[N];b>0&&C(U)?b>1?m(U,b-1,C,S,L):c(L,U):S||(L[L.length]=U)}return L}p.exports=m},97786:(p,I,a)=>{var c=a(71811),v=a(40327);function m(h,b){b=c(b,h);for(var C=0,S=b.length;h!=null&&C<S;)h=h[v(b[C++])];return C&&C==S?h:void 0}p.exports=m},68866:(p,I,a)=>{var c=a(62488),v=a(1469);function m(h,b,C){var S=b(h);return v(h)?S:c(S,C(h))}p.exports=m},44239:(p,I,a)=>{var c=a(62705),v=a(89607),m=a(2333),h="[object Null]",b="[object Undefined]",C=c?c.toStringTag:void 0;function S(L){return L==null?L===void 0?b:h:C&&C in Object(L)?v(L):m(L)}p.exports=S},13:p=>{function I(a,c){return a!=null&&c in Object(a)}p.exports=I},9454:(p,I,a)=>{var c=a(44239),v=a(37005),m="[object Arguments]";function h(b){return v(b)&&c(b)==m}p.exports=h},90939:(p,I,a)=>{var c=a(2492),v=a(37005);function m(h,b,C,S,L){return h===b?!0:h==null||b==null||!v(h)&&!v(b)?h!==h&&b!==b:c(h,b,C,S,m,L)}p.exports=m},2492:(p,I,a)=>{var c=a(46384),v=a(67114),m=a(18351),h=a(16096),b=a(98882),C=a(1469),S=a(44144),L=a(36719),N=1,j="[object Arguments]",U="[object Array]",Q="[object Object]",K=Object.prototype,M=K.hasOwnProperty;function Y(R,E,V,G,Z,X){var z=C(R),ue=C(E),q=z?U:b(R),ne=ue?U:b(E);q=q==j?Q:q,ne=ne==j?Q:ne;var ge=q==Q,me=ne==Q,he=q==ne;if(he&&S(R)){if(!S(E))return!1;z=!0,ge=!1}if(he&&!ge)return X||(X=new c),z||L(R)?v(R,E,V,G,Z,X):m(R,E,q,V,G,Z,X);if(!(V&N)){var le=ge&&M.call(R,"__wrapped__"),ie=me&&M.call(E,"__wrapped__");if(le||ie){var Oe=le?R.value():R,Pe=ie?E.value():E;return X||(X=new c),Z(Oe,Pe,V,G,X)}}return he?(X||(X=new c),h(R,E,V,G,Z,X)):!1}p.exports=Y},25588:(p,I,a)=>{var c=a(98882),v=a(37005),m="[object Map]";function h(b){return v(b)&&c(b)==m}p.exports=h},2958:(p,I,a)=>{var c=a(46384),v=a(90939),m=1,h=2;function b(C,S,L,N){var j=L.length,U=j,Q=!N;if(C==null)return!U;for(C=Object(C);j--;){var K=L[j];if(Q&&K[2]?K[1]!==C[K[0]]:!(K[0]in C))return!1}for(;++j<U;){K=L[j];var M=K[0],Y=C[M],R=K[1];if(Q&&K[2]){if(Y===void 0&&!(M in C))return!1}else{var E=new c;if(N)var V=N(Y,R,M,C,S,E);if(!(V===void 0?v(R,Y,m|h,N,E):V))return!1}}return!0}p.exports=b},28458:(p,I,a)=>{var c=a(23560),v=a(15346),m=a(13218),h=a(80346),b=/[\\^$.*+?()[\]{}|]/g,C=/^\[object .+?Constructor\]$/,S=Function.prototype,L=Object.prototype,N=S.toString,j=L.hasOwnProperty,U=RegExp("^"+N.call(j).replace(b,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Q(K){if(!m(K)||v(K))return!1;var M=c(K)?U:C;return M.test(h(K))}p.exports=Q},29221:(p,I,a)=>{var c=a(98882),v=a(37005),m="[object Set]";function h(b){return v(b)&&c(b)==m}p.exports=h},38749:(p,I,a)=>{var c=a(44239),v=a(41780),m=a(37005),h="[object Arguments]",b="[object Array]",C="[object Boolean]",S="[object Date]",L="[object Error]",N="[object Function]",j="[object Map]",U="[object Number]",Q="[object Object]",K="[object RegExp]",M="[object Set]",Y="[object String]",R="[object WeakMap]",E="[object ArrayBuffer]",V="[object DataView]",G="[object Float32Array]",Z="[object Float64Array]",X="[object Int8Array]",z="[object Int16Array]",ue="[object Int32Array]",q="[object Uint8Array]",ne="[object Uint8ClampedArray]",ge="[object Uint16Array]",me="[object Uint32Array]",he={};he[G]=he[Z]=he[X]=he[z]=he[ue]=he[q]=he[ne]=he[ge]=he[me]=!0,he[h]=he[b]=he[E]=he[C]=he[V]=he[S]=he[L]=he[N]=he[j]=he[U]=he[Q]=he[K]=he[M]=he[Y]=he[R]=!1;function le(ie){return m(ie)&&v(ie.length)&&!!he[c(ie)]}p.exports=le},67206:(p,I,a)=>{var c=a(91573),v=a(16432),m=a(6557),h=a(1469),b=a(39601);function C(S){return typeof S=="function"?S:S==null?m:typeof S=="object"?h(S)?v(S[0],S[1]):c(S):b(S)}p.exports=C},280:(p,I,a)=>{var c=a(25726),v=a(86916),m=Object.prototype,h=m.hasOwnProperty;function b(C){if(!c(C))return v(C);var S=[];for(var L in Object(C))h.call(C,L)&&L!="constructor"&&S.push(L);return S}p.exports=b},10313:(p,I,a)=>{var c=a(13218),v=a(25726),m=a(33498),h=Object.prototype,b=h.hasOwnProperty;function C(S){if(!c(S))return m(S);var L=v(S),N=[];for(var j in S)j=="constructor"&&(L||!b.call(S,j))||N.push(j);return N}p.exports=C},91573:(p,I,a)=>{var c=a(2958),v=a(1499),m=a(42634);function h(b){var C=v(b);return C.length==1&&C[0][2]?m(C[0][0],C[0][1]):function(S){return S===b||c(S,b,C)}}p.exports=h},16432:(p,I,a)=>{var c=a(90939),v=a(27361),m=a(79095),h=a(15403),b=a(89162),C=a(42634),S=a(40327),L=1,N=2;function j(U,Q){return h(U)&&b(Q)?C(S(U),Q):function(K){var M=v(K,U);return M===void 0&&M===Q?m(K,U):c(Q,M,L|N)}}p.exports=j},25970:(p,I,a)=>{var c=a(63012),v=a(79095);function m(h,b){return c(h,b,function(C,S){return v(h,S)})}p.exports=m},63012:(p,I,a)=>{var c=a(97786),v=a(10611),m=a(71811);function h(b,C,S){for(var L=-1,N=C.length,j={};++L<N;){var U=C[L],Q=c(b,U);S(Q,U)&&v(j,m(U,b),Q)}return j}p.exports=h},40371:p=>{function I(a){return function(c){return c==null?void 0:c[a]}}p.exports=I},79152:(p,I,a)=>{var c=a(97786);function v(m){return function(h){return c(h,m)}}p.exports=v},5976:(p,I,a)=>{var c=a(6557),v=a(45357),m=a(30061);function h(b,C){return m(v(b,C,c),b+"")}p.exports=h},10611:(p,I,a)=>{var c=a(34865),v=a(71811),m=a(65776),h=a(13218),b=a(40327);function C(S,L,N,j){if(!h(S))return S;L=v(L,S);for(var U=-1,Q=L.length,K=Q-1,M=S;M!=null&&++U<Q;){var Y=b(L[U]),R=N;if(Y==="__proto__"||Y==="constructor"||Y==="prototype")return S;if(U!=K){var E=M[Y];R=j?j(E,Y,M):void 0,R===void 0&&(R=h(E)?E:m(L[U+1])?[]:{})}c(M,Y,R),M=M[Y]}return S}p.exports=C},56560:(p,I,a)=>{var c=a(75703),v=a(38777),m=a(6557),h=v?function(b,C){return v(b,"toString",{configurable:!0,enumerable:!1,value:c(C),writable:!0})}:m;p.exports=h},22545:p=>{function I(a,c){for(var v=-1,m=Array(a);++v<a;)m[v]=c(v);return m}p.exports=I},80531:(p,I,a)=>{var c=a(62705),v=a(29932),m=a(1469),h=a(33448),b=1/0,C=c?c.prototype:void 0,S=C?C.toString:void 0;function L(N){if(typeof N=="string")return N;if(m(N))return v(N,L)+"";if(h(N))return S?S.call(N):"";var j=N+"";return j=="0"&&1/N==-b?"-0":j}p.exports=L},27561:(p,I,a)=>{var c=a(67990),v=/^\s+/;function m(h){return h&&h.slice(0,c(h)+1).replace(v,"")}p.exports=m},7518:p=>{function I(a){return function(c){return a(c)}}p.exports=I},74757:p=>{function I(a,c){return a.has(c)}p.exports=I},71811:(p,I,a)=>{var c=a(1469),v=a(15403),m=a(55514),h=a(79833);function b(C,S){return c(C)?C:v(C,S)?[C]:m(h(C))}p.exports=b},74318:(p,I,a)=>{var c=a(11149);function v(m){var h=new m.constructor(m.byteLength);return new c(h).set(new c(m)),h}p.exports=v},64626:(p,I,a)=>{p=a.nmd(p);var c=a(55639),v=I&&!I.nodeType&&I,m=v&&!0&&p&&!p.nodeType&&p,h=m&&m.exports===v,b=h?c.Buffer:void 0,C=b?b.allocUnsafe:void 0;function S(L,N){if(N)return L.slice();var j=L.length,U=C?C(j):new L.constructor(j);return L.copy(U),U}p.exports=S},57157:(p,I,a)=>{var c=a(74318);function v(m,h){var b=h?c(m.buffer):m.buffer;return new m.constructor(b,m.byteOffset,m.byteLength)}p.exports=v},93147:p=>{var I=/\w*$/;function a(c){var v=new c.constructor(c.source,I.exec(c));return v.lastIndex=c.lastIndex,v}p.exports=a},40419:(p,I,a)=>{var c=a(62705),v=c?c.prototype:void 0,m=v?v.valueOf:void 0;function h(b){return m?Object(m.call(b)):{}}p.exports=h},77133:(p,I,a)=>{var c=a(74318);function v(m,h){var b=h?c(m.buffer):m.buffer;return new m.constructor(b,m.byteOffset,m.length)}p.exports=v},278:p=>{function I(a,c){var v=-1,m=a.length;for(c||(c=Array(m));++v<m;)c[v]=a[v];return c}p.exports=I},98363:(p,I,a)=>{var c=a(34865),v=a(89465);function m(h,b,C,S){var L=!C;C||(C={});for(var N=-1,j=b.length;++N<j;){var U=b[N],Q=S?S(C[U],h[U],U,C,h):void 0;Q===void 0&&(Q=h[U]),L?v(C,U,Q):c(C,U,Q)}return C}p.exports=m},18805:(p,I,a)=>{var c=a(98363),v=a(99551);function m(h,b){return c(h,v(h),b)}p.exports=m},1911:(p,I,a)=>{var c=a(98363),v=a(51442);function m(h,b){return c(h,v(h),b)}p.exports=m},14429:(p,I,a)=>{var c=a(55639),v=c["__core-js_shared__"];p.exports=v},21463:(p,I,a)=>{var c=a(5976),v=a(16612);function m(h){return c(function(b,C){var S=-1,L=C.length,N=L>1?C[L-1]:void 0,j=L>2?C[2]:void 0;for(N=h.length>3&&typeof N=="function"?(L--,N):void 0,j&&v(C[0],C[1],j)&&(N=L<3?void 0:N,L=1),b=Object(b);++S<L;){var U=C[S];U&&h(b,U,S,N)}return b})}p.exports=m},67740:(p,I,a)=>{var c=a(67206),v=a(98612),m=a(3674);function h(b){return function(C,S,L){var N=Object(C);if(!v(C)){var j=c(S,3);C=m(C),S=function(Q){return j(N[Q],Q,N)}}var U=b(C,S,L);return U>-1?N[j?C[U]:U]:void 0}}p.exports=h},38777:(p,I,a)=>{var c=a(10852),v=function(){try{var m=c(Object,"defineProperty");return m({},"",{}),m}catch(h){}}();p.exports=v},67114:(p,I,a)=>{var c=a(88668),v=a(82908),m=a(74757),h=1,b=2;function C(S,L,N,j,U,Q){var K=N&h,M=S.length,Y=L.length;if(M!=Y&&!(K&&Y>M))return!1;var R=Q.get(S),E=Q.get(L);if(R&&E)return R==L&&E==S;var V=-1,G=!0,Z=N&b?new c:void 0;for(Q.set(S,L),Q.set(L,S);++V<M;){var X=S[V],z=L[V];if(j)var ue=K?j(z,X,V,L,S,Q):j(X,z,V,S,L,Q);if(ue!==void 0){if(ue)continue;G=!1;break}if(Z){if(!v(L,function(q,ne){if(!m(Z,ne)&&(X===q||U(X,q,N,j,Q)))return Z.push(ne)})){G=!1;break}}else if(!(X===z||U(X,z,N,j,Q))){G=!1;break}}return Q.delete(S),Q.delete(L),G}p.exports=C},18351:(p,I,a)=>{var c=a(62705),v=a(11149),m=a(77813),h=a(67114),b=a(68776),C=a(21814),S=1,L=2,N="[object Boolean]",j="[object Date]",U="[object Error]",Q="[object Map]",K="[object Number]",M="[object RegExp]",Y="[object Set]",R="[object String]",E="[object Symbol]",V="[object ArrayBuffer]",G="[object DataView]",Z=c?c.prototype:void 0,X=Z?Z.valueOf:void 0;function z(ue,q,ne,ge,me,he,le){switch(ne){case G:if(ue.byteLength!=q.byteLength||ue.byteOffset!=q.byteOffset)return!1;ue=ue.buffer,q=q.buffer;case V:return!(ue.byteLength!=q.byteLength||!he(new v(ue),new v(q)));case N:case j:case K:return m(+ue,+q);case U:return ue.name==q.name&&ue.message==q.message;case M:case R:return ue==q+"";case Q:var ie=b;case Y:var Oe=ge&S;if(ie||(ie=C),ue.size!=q.size&&!Oe)return!1;var Pe=le.get(ue);if(Pe)return Pe==q;ge|=L,le.set(ue,q);var Te=h(ie(ue),ie(q),ge,me,he,le);return le.delete(ue),Te;case E:if(X)return X.call(ue)==X.call(q)}return!1}p.exports=z},16096:(p,I,a)=>{var c=a(58234),v=1,m=Object.prototype,h=m.hasOwnProperty;function b(C,S,L,N,j,U){var Q=L&v,K=c(C),M=K.length,Y=c(S),R=Y.length;if(M!=R&&!Q)return!1;for(var E=M;E--;){var V=K[E];if(!(Q?V in S:h.call(S,V)))return!1}var G=U.get(C),Z=U.get(S);if(G&&Z)return G==S&&Z==C;var X=!0;U.set(C,S),U.set(S,C);for(var z=Q;++E<M;){V=K[E];var ue=C[V],q=S[V];if(N)var ne=Q?N(q,ue,V,S,C,U):N(ue,q,V,C,S,U);if(!(ne===void 0?ue===q||j(ue,q,L,N,U):ne)){X=!1;break}z||(z=V=="constructor")}if(X&&!z){var ge=C.constructor,me=S.constructor;ge!=me&&"constructor"in C&&"constructor"in S&&!(typeof ge=="function"&&ge instanceof ge&&typeof me=="function"&&me instanceof me)&&(X=!1)}return U.delete(C),U.delete(S),X}p.exports=b},99021:(p,I,a)=>{var c=a(85564),v=a(45357),m=a(30061);function h(b){return m(v(b,void 0,c),b+"")}p.exports=h},31957:(p,I,a)=>{var c=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g;p.exports=c},58234:(p,I,a)=>{var c=a(68866),v=a(99551),m=a(3674);function h(b){return c(b,m,v)}p.exports=h},46904:(p,I,a)=>{var c=a(68866),v=a(51442),m=a(81704);function h(b){return c(b,m,v)}p.exports=h},45050:(p,I,a)=>{var c=a(37019);function v(m,h){var b=m.__data__;return c(h)?b[typeof h=="string"?"string":"hash"]:b.map}p.exports=v},1499:(p,I,a)=>{var c=a(89162),v=a(3674);function m(h){for(var b=v(h),C=b.length;C--;){var S=b[C],L=h[S];b[C]=[S,L,c(L)]}return b}p.exports=m},10852:(p,I,a)=>{var c=a(28458),v=a(47801);function m(h,b){var C=v(h,b);return c(C)?C:void 0}p.exports=m},85924:(p,I,a)=>{var c=a(5569),v=c(Object.getPrototypeOf,Object);p.exports=v},89607:(p,I,a)=>{var c=a(62705),v=Object.prototype,m=v.hasOwnProperty,h=v.toString,b=c?c.toStringTag:void 0;function C(S){var L=m.call(S,b),N=S[b];try{S[b]=void 0;var j=!0}catch(Q){}var U=h.call(S);return j&&(L?S[b]=N:delete S[b]),U}p.exports=C},99551:(p,I,a)=>{var c=a(34963),v=a(70479),m=Object.prototype,h=m.propertyIsEnumerable,b=Object.getOwnPropertySymbols,C=b?function(S){return S==null?[]:(S=Object(S),c(b(S),function(L){return h.call(S,L)}))}:v;p.exports=C},51442:(p,I,a)=>{var c=a(62488),v=a(85924),m=a(99551),h=a(70479),b=Object.getOwnPropertySymbols,C=b?function(S){for(var L=[];S;)c(L,m(S)),S=v(S);return L}:h;p.exports=C},98882:(p,I,a)=>{var c=a(18552),v=a(57071),m=a(53818),h=a(58525),b=a(70577),C=a(44239),S=a(80346),L="[object Map]",N="[object Object]",j="[object Promise]",U="[object Set]",Q="[object WeakMap]",K="[object DataView]",M=S(c),Y=S(v),R=S(m),E=S(h),V=S(b),G=C;(c&&G(new c(new ArrayBuffer(1)))!=K||v&&G(new v)!=L||m&&G(m.resolve())!=j||h&&G(new h)!=U||b&&G(new b)!=Q)&&(G=function(Z){var X=C(Z),z=X==N?Z.constructor:void 0,ue=z?S(z):"";if(ue)switch(ue){case M:return K;case Y:return L;case R:return j;case E:return U;case V:return Q}return X}),p.exports=G},47801:p=>{function I(a,c){return a==null?void 0:a[c]}p.exports=I},222:(p,I,a)=>{var c=a(71811),v=a(35694),m=a(1469),h=a(65776),b=a(41780),C=a(40327);function S(L,N,j){N=c(N,L);for(var U=-1,Q=N.length,K=!1;++U<Q;){var M=C(N[U]);if(!(K=L!=null&&j(L,M)))break;L=L[M]}return K||++U!=Q?K:(Q=L==null?0:L.length,!!Q&&b(Q)&&h(M,Q)&&(m(L)||v(L)))}p.exports=S},51789:(p,I,a)=>{var c=a(94536);function v(){this.__data__=c?c(null):{},this.size=0}p.exports=v},80401:p=>{function I(a){var c=this.has(a)&&delete this.__data__[a];return this.size-=c?1:0,c}p.exports=I},57667:(p,I,a)=>{var c=a(94536),v="__lodash_hash_undefined__",m=Object.prototype,h=m.hasOwnProperty;function b(C){var S=this.__data__;if(c){var L=S[C];return L===v?void 0:L}return h.call(S,C)?S[C]:void 0}p.exports=b},21327:(p,I,a)=>{var c=a(94536),v=Object.prototype,m=v.hasOwnProperty;function h(b){var C=this.__data__;return c?C[b]!==void 0:m.call(C,b)}p.exports=h},81866:(p,I,a)=>{var c=a(94536),v="__lodash_hash_undefined__";function m(h,b){var C=this.__data__;return this.size+=this.has(h)?0:1,C[h]=c&&b===void 0?v:b,this}p.exports=m},43824:p=>{var I=Object.prototype,a=I.hasOwnProperty;function c(v){var m=v.length,h=new v.constructor(m);return m&&typeof v[0]=="string"&&a.call(v,"index")&&(h.index=v.index,h.input=v.input),h}p.exports=c},29148:(p,I,a)=>{var c=a(74318),v=a(57157),m=a(93147),h=a(40419),b=a(77133),C="[object Boolean]",S="[object Date]",L="[object Map]",N="[object Number]",j="[object RegExp]",U="[object Set]",Q="[object String]",K="[object Symbol]",M="[object ArrayBuffer]",Y="[object DataView]",R="[object Float32Array]",E="[object Float64Array]",V="[object Int8Array]",G="[object Int16Array]",Z="[object Int32Array]",X="[object Uint8Array]",z="[object Uint8ClampedArray]",ue="[object Uint16Array]",q="[object Uint32Array]";function ne(ge,me,he){var le=ge.constructor;switch(me){case M:return c(ge);case C:case S:return new le(+ge);case Y:return v(ge,he);case R:case E:case V:case G:case Z:case X:case z:case ue:case q:return b(ge,he);case L:return new le;case N:case Q:return new le(ge);case j:return m(ge);case U:return new le;case K:return h(ge)}}p.exports=ne},38517:(p,I,a)=>{var c=a(3118),v=a(85924),m=a(25726);function h(b){return typeof b.constructor=="function"&&!m(b)?c(v(b)):{}}p.exports=h},37285:(p,I,a)=>{var c=a(62705),v=a(35694),m=a(1469),h=c?c.isConcatSpreadable:void 0;function b(C){return m(C)||v(C)||!!(h&&C&&C[h])}p.exports=b},65776:p=>{var I=9007199254740991,a=/^(?:0|[1-9]\d*)$/;function c(v,m){var h=typeof v;return m=m==null?I:m,!!m&&(h=="number"||h!="symbol"&&a.test(v))&&v>-1&&v%1==0&&v<m}p.exports=c},16612:(p,I,a)=>{var c=a(77813),v=a(98612),m=a(65776),h=a(13218);function b(C,S,L){if(!h(L))return!1;var N=typeof S;return(N=="number"?v(L)&&m(S,L.length):N=="string"&&S in L)?c(L[S],C):!1}p.exports=b},15403:(p,I,a)=>{var c=a(1469),v=a(33448),m=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,h=/^\w*$/;function b(C,S){if(c(C))return!1;var L=typeof C;return L=="number"||L=="symbol"||L=="boolean"||C==null||v(C)?!0:h.test(C)||!m.test(C)||S!=null&&C in Object(S)}p.exports=b},37019:p=>{function I(a){var c=typeof a;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?a!=="__proto__":a===null}p.exports=I},15346:(p,I,a)=>{var c=a(14429),v=function(){var h=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||"");return h?"Symbol(src)_1."+h:""}();function m(h){return!!v&&v in h}p.exports=m},25726:p=>{var I=Object.prototype;function a(c){var v=c&&c.constructor,m=typeof v=="function"&&v.prototype||I;return c===m}p.exports=a},89162:(p,I,a)=>{var c=a(13218);function v(m){return m===m&&!c(m)}p.exports=v},27040:p=>{function I(){this.__data__=[],this.size=0}p.exports=I},14125:(p,I,a)=>{var c=a(18470),v=Array.prototype,m=v.splice;function h(b){var C=this.__data__,S=c(C,b);if(S<0)return!1;var L=C.length-1;return S==L?C.pop():m.call(C,S,1),--this.size,!0}p.exports=h},82117:(p,I,a)=>{var c=a(18470);function v(m){var h=this.__data__,b=c(h,m);return b<0?void 0:h[b][1]}p.exports=v},67518:(p,I,a)=>{var c=a(18470);function v(m){return c(this.__data__,m)>-1}p.exports=v},13399:(p,I,a)=>{var c=a(18470);function v(m,h){var b=this.__data__,C=c(b,m);return C<0?(++this.size,b.push([m,h])):b[C][1]=h,this}p.exports=v},24785:(p,I,a)=>{var c=a(1989),v=a(38407),m=a(57071);function h(){this.size=0,this.__data__={hash:new c,map:new(m||v),string:new c}}p.exports=h},11285:(p,I,a)=>{var c=a(45050);function v(m){var h=c(this,m).delete(m);return this.size-=h?1:0,h}p.exports=v},96e3:(p,I,a)=>{var c=a(45050);function v(m){return c(this,m).get(m)}p.exports=v},49916:(p,I,a)=>{var c=a(45050);function v(m){return c(this,m).has(m)}p.exports=v},95265:(p,I,a)=>{var c=a(45050);function v(m,h){var b=c(this,m),C=b.size;return b.set(m,h),this.size+=b.size==C?0:1,this}p.exports=v},68776:p=>{function I(a){var c=-1,v=Array(a.size);return a.forEach(function(m,h){v[++c]=[h,m]}),v}p.exports=I},42634:p=>{function I(a,c){return function(v){return v==null?!1:v[a]===c&&(c!==void 0||a in Object(v))}}p.exports=I},24523:(p,I,a)=>{var c=a(88306),v=500;function m(h){var b=c(h,function(S){return C.size===v&&C.clear(),S}),C=b.cache;return b}p.exports=m},94536:(p,I,a)=>{var c=a(10852),v=c(Object,"create");p.exports=v},86916:(p,I,a)=>{var c=a(5569),v=c(Object.keys,Object);p.exports=v},33498:p=>{function I(a){var c=[];if(a!=null)for(var v in Object(a))c.push(v);return c}p.exports=I},31167:(p,I,a)=>{p=a.nmd(p);var c=a(31957),v=I&&!I.nodeType&&I,m=v&&!0&&p&&!p.nodeType&&p,h=m&&m.exports===v,b=h&&c.process,C=function(){try{var S=m&&m.require&&m.require("util").types;return S||b&&b.binding&&b.binding("util")}catch(L){}}();p.exports=C},2333:p=>{var I=Object.prototype,a=I.toString;function c(v){return a.call(v)}p.exports=c},5569:p=>{function I(a,c){return function(v){return a(c(v))}}p.exports=I},45357:(p,I,a)=>{var c=a(96874),v=Math.max;function m(h,b,C){return b=v(b===void 0?h.length-1:b,0),function(){for(var S=arguments,L=-1,N=v(S.length-b,0),j=Array(N);++L<N;)j[L]=S[b+L];L=-1;for(var U=Array(b+1);++L<b;)U[L]=S[L];return U[b]=C(j),c(h,this,U)}}p.exports=m},55639:(p,I,a)=>{var c=a(31957),v=typeof self=="object"&&self&&self.Object===Object&&self,m=c||v||Function("return this")();p.exports=m},90619:p=>{var I="__lodash_hash_undefined__";function a(c){return this.__data__.set(c,I),this}p.exports=a},72385:p=>{function I(a){return this.__data__.has(a)}p.exports=I},21814:p=>{function I(a){var c=-1,v=Array(a.size);return a.forEach(function(m){v[++c]=m}),v}p.exports=I},30061:(p,I,a)=>{var c=a(56560),v=a(21275),m=v(c);p.exports=m},21275:p=>{var I=800,a=16,c=Date.now;function v(m){var h=0,b=0;return function(){var C=c(),S=a-(C-b);if(b=C,S>0){if(++h>=I)return arguments[0]}else h=0;return m.apply(void 0,arguments)}}p.exports=v},37465:(p,I,a)=>{var c=a(38407);function v(){this.__data__=new c,this.size=0}p.exports=v},63779:p=>{function I(a){var c=this.__data__,v=c.delete(a);return this.size=c.size,v}p.exports=I},67599:p=>{function I(a){return this.__data__.get(a)}p.exports=I},44758:p=>{function I(a){return this.__data__.has(a)}p.exports=I},34309:(p,I,a)=>{var c=a(38407),v=a(57071),m=a(83369),h=200;function b(C,S){var L=this.__data__;if(L instanceof c){var N=L.__data__;if(!v||N.length<h-1)return N.push([C,S]),this.size=++L.size,this;L=this.__data__=new m(N)}return L.set(C,S),this.size=L.size,this}p.exports=b},55514:(p,I,a)=>{var c=a(24523),v=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,m=/\\(\\)?/g,h=c(function(b){var C=[];return b.charCodeAt(0)===46&&C.push(""),b.replace(v,function(S,L,N,j){C.push(N?j.replace(m,"$1"):L||S)}),C});p.exports=h},40327:(p,I,a)=>{var c=a(33448),v=1/0;function m(h){if(typeof h=="string"||c(h))return h;var b=h+"";return b=="0"&&1/h==-v?"-0":b}p.exports=m},80346:p=>{var I=Function.prototype,a=I.toString;function c(v){if(v!=null){try{return a.call(v)}catch(m){}try{return v+""}catch(m){}}return""}p.exports=c},67990:p=>{var I=/\s/;function a(c){for(var v=c.length;v--&&I.test(c.charAt(v)););return v}p.exports=a},28583:(p,I,a)=>{var c=a(34865),v=a(98363),m=a(21463),h=a(98612),b=a(25726),C=a(3674),S=Object.prototype,L=S.hasOwnProperty,N=m(function(j,U){if(b(U)||h(U)){v(U,C(U),j);return}for(var Q in U)L.call(U,Q)&&c(j,Q,U[Q])});p.exports=N},50361:(p,I,a)=>{var c=a(85990),v=1,m=4;function h(b){return c(b,v|m)}p.exports=h},75703:p=>{function I(a){return function(){return a}}p.exports=I},77813:p=>{function I(a,c){return a===c||a!==a&&c!==c}p.exports=I},13311:(p,I,a)=>{var c=a(67740),v=a(30998),m=c(v);p.exports=m},30998:(p,I,a)=>{var c=a(41848),v=a(67206),m=a(40554),h=Math.max;function b(C,S,L){var N=C==null?0:C.length;if(!N)return-1;var j=L==null?0:m(L);return j<0&&(j=h(N+j,0)),c(C,v(S,3),j)}p.exports=b},85564:(p,I,a)=>{var c=a(35764);function v(m){var h=m==null?0:m.length;return h?c(m,1):[]}p.exports=v},27361:(p,I,a)=>{var c=a(97786);function v(m,h,b){var C=m==null?void 0:c(m,h);return C===void 0?b:C}p.exports=v},79095:(p,I,a)=>{var c=a(13),v=a(222);function m(h,b){return h!=null&&v(h,b,c)}p.exports=m},6557:p=>{function I(a){return a}p.exports=I},35694:(p,I,a)=>{var c=a(9454),v=a(37005),m=Object.prototype,h=m.hasOwnProperty,b=m.propertyIsEnumerable,C=c(function(){return arguments}())?c:function(S){return v(S)&&h.call(S,"callee")&&!b.call(S,"callee")};p.exports=C},1469:p=>{var I=Array.isArray;p.exports=I},98612:(p,I,a)=>{var c=a(23560),v=a(41780);function m(h){return h!=null&&v(h.length)&&!c(h)}p.exports=m},44144:(p,I,a)=>{p=a.nmd(p);var c=a(55639),v=a(95062),m=I&&!I.nodeType&&I,h=m&&!0&&p&&!p.nodeType&&p,b=h&&h.exports===m,C=b?c.Buffer:void 0,S=C?C.isBuffer:void 0,L=S||v;p.exports=L},41609:(p,I,a)=>{var c=a(280),v=a(98882),m=a(35694),h=a(1469),b=a(98612),C=a(44144),S=a(25726),L=a(36719),N="[object Map]",j="[object Set]",U=Object.prototype,Q=U.hasOwnProperty;function K(M){if(M==null)return!0;if(b(M)&&(h(M)||typeof M=="string"||typeof M.splice=="function"||C(M)||L(M)||m(M)))return!M.length;var Y=v(M);if(Y==N||Y==j)return!M.size;if(S(M))return!c(M).length;for(var R in M)if(Q.call(M,R))return!1;return!0}p.exports=K},23560:(p,I,a)=>{var c=a(44239),v=a(13218),m="[object AsyncFunction]",h="[object Function]",b="[object GeneratorFunction]",C="[object Proxy]";function S(L){if(!v(L))return!1;var N=c(L);return N==h||N==b||N==m||N==C}p.exports=S},41780:p=>{var I=9007199254740991;function a(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=I}p.exports=a},56688:(p,I,a)=>{var c=a(25588),v=a(7518),m=a(31167),h=m&&m.isMap,b=h?v(h):c;p.exports=b},13218:p=>{function I(a){var c=typeof a;return a!=null&&(c=="object"||c=="function")}p.exports=I},37005:p=>{function I(a){return a!=null&&typeof a=="object"}p.exports=I},68630:(p,I,a)=>{var c=a(44239),v=a(85924),m=a(37005),h="[object Object]",b=Function.prototype,C=Object.prototype,S=b.toString,L=C.hasOwnProperty,N=S.call(Object);function j(U){if(!m(U)||c(U)!=h)return!1;var Q=v(U);if(Q===null)return!0;var K=L.call(Q,"constructor")&&Q.constructor;return typeof K=="function"&&K instanceof K&&S.call(K)==N}p.exports=j},72928:(p,I,a)=>{var c=a(29221),v=a(7518),m=a(31167),h=m&&m.isSet,b=h?v(h):c;p.exports=b},47037:(p,I,a)=>{var c=a(44239),v=a(1469),m=a(37005),h="[object String]";function b(C){return typeof C=="string"||!v(C)&&m(C)&&c(C)==h}p.exports=b},33448:(p,I,a)=>{var c=a(44239),v=a(37005),m="[object Symbol]";function h(b){return typeof b=="symbol"||v(b)&&c(b)==m}p.exports=h},36719:(p,I,a)=>{var c=a(38749),v=a(7518),m=a(31167),h=m&&m.isTypedArray,b=h?v(h):c;p.exports=b},3674:(p,I,a)=>{var c=a(14636),v=a(280),m=a(98612);function h(b){return m(b)?c(b):v(b)}p.exports=h},81704:(p,I,a)=>{var c=a(14636),v=a(10313),m=a(98612);function h(b){return m(b)?c(b,!0):v(b)}p.exports=h},88306:(p,I,a)=>{var c=a(83369),v="Expected a function";function m(h,b){if(typeof h!="function"||b!=null&&typeof b!="function")throw new TypeError(v);var C=function(){var S=arguments,L=b?b.apply(this,S):S[0],N=C.cache;if(N.has(L))return N.get(L);var j=h.apply(this,S);return C.cache=N.set(L,j)||N,j};return C.cache=new(m.Cache||c),C}m.Cache=c,p.exports=m},50308:p=>{function I(){}p.exports=I},78718:(p,I,a)=>{var c=a(25970),v=a(99021),m=v(function(h,b){return h==null?{}:c(h,b)});p.exports=m},39601:(p,I,a)=>{var c=a(40371),v=a(79152),m=a(15403),h=a(40327);function b(C){return m(C)?c(h(C)):v(C)}p.exports=b},10240:(p,I,a)=>{var c=a(29750),v=a(80531),m=a(40554),h=a(79833);function b(C,S,L){return C=h(C),L=L==null?0:c(m(L),0,C.length),S=v(S),C.slice(L,L+S.length)==S}p.exports=b},70479:p=>{function I(){return[]}p.exports=I},95062:p=>{function I(){return!1}p.exports=I},18601:(p,I,a)=>{var c=a(14841),v=1/0,m=17976931348623157e292;function h(b){if(!b)return b===0?b:0;if(b=c(b),b===v||b===-v){var C=b<0?-1:1;return C*m}return b===b?b:0}p.exports=h},40554:(p,I,a)=>{var c=a(18601);function v(m){var h=c(m),b=h%1;return h===h?b?h-b:h:0}p.exports=v},14841:(p,I,a)=>{var c=a(27561),v=a(13218),m=a(33448),h=0/0,b=/^[-+]0x[0-9a-f]+$/i,C=/^0b[01]+$/i,S=/^0o[0-7]+$/i,L=parseInt;function N(j){if(typeof j=="number")return j;if(m(j))return h;if(v(j)){var U=typeof j.valueOf=="function"?j.valueOf():j;j=v(U)?U+"":U}if(typeof j!="string")return j===0?j:+j;j=c(j);var Q=C.test(j);return Q||S.test(j)?L(j.slice(2),Q?2:8):b.test(j)?h:+j}p.exports=N},79833:(p,I,a)=>{var c=a(80531);function v(m){return m==null?"":c(m)}p.exports=v},70631:(p,I,a)=>{var c=typeof Map=="function"&&Map.prototype,v=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,m=c&&v&&typeof v.get=="function"?v.get:null,h=c&&Map.prototype.forEach,b=typeof Set=="function"&&Set.prototype,C=Object.getOwnPropertyDescriptor&&b?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,S=b&&C&&typeof C.get=="function"?C.get:null,L=b&&Set.prototype.forEach,N=typeof WeakMap=="function"&&WeakMap.prototype,j=N?WeakMap.prototype.has:null,U=typeof WeakSet=="function"&&WeakSet.prototype,Q=U?WeakSet.prototype.has:null,K=typeof WeakRef=="function"&&WeakRef.prototype,M=K?WeakRef.prototype.deref:null,Y=Boolean.prototype.valueOf,R=Object.prototype.toString,E=Function.prototype.toString,V=String.prototype.match,G=String.prototype.slice,Z=String.prototype.replace,X=String.prototype.toUpperCase,z=String.prototype.toLowerCase,ue=RegExp.prototype.test,q=Array.prototype.concat,ne=Array.prototype.join,ge=Array.prototype.slice,me=Math.floor,he=typeof BigInt=="function"?BigInt.prototype.valueOf:null,le=Object.getOwnPropertySymbols,ie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Oe=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Pe=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Oe?"object":"symbol")?Symbol.toStringTag:null,Te=Object.prototype.propertyIsEnumerable,Ce=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(te){return te.__proto__}:null);function Xe(te,ce){if(te===1/0||te===-1/0||te!==te||te&&te>-1e3&&te<1e3||ue.call(/e/,ce))return ce;var be=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof te=="number"){var Le=te<0?-me(-te):me(te);if(Le!==te){var Re=String(Le),We=G.call(ce,Re.length+1);return Z.call(Re,be,"$&_")+"."+Z.call(Z.call(We,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Z.call(ce,be,"$&_")}var He=a(24654),Je=He.custom,ut=St(Je)?Je:null;p.exports=function te(ce,be,Le,Re){var We=be||{};if(Nt(We,"quoteStyle")&&We.quoteStyle!=="single"&&We.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Nt(We,"maxStringLength")&&(typeof We.maxStringLength=="number"?We.maxStringLength<0&&We.maxStringLength!==1/0:We.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var ot=Nt(We,"customInspect")?We.customInspect:!0;if(typeof ot!="boolean"&&ot!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Nt(We,"indent")&&We.indent!==null&&We.indent!==" "&&!(parseInt(We.indent,10)===We.indent&&We.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Nt(We,"numericSeparator")&&typeof We.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var vt=We.numericSeparator;if(typeof ce=="undefined")return"undefined";if(ce===null)return"null";if(typeof ce=="boolean")return ce?"true":"false";if(typeof ce=="string")return k(ce,We);if(typeof ce=="number"){if(ce===0)return 1/0/ce>0?"0":"-0";var Ft=String(ce);return vt?Xe(ce,Ft):Ft}if(typeof ce=="bigint"){var At=String(ce)+"n";return vt?Xe(ce,At):At}var bn=typeof We.depth=="undefined"?5:We.depth;if(typeof Le=="undefined"&&(Le=0),Le>=bn&&bn>0&&typeof ce=="object")return Qe(ce)?"[Array]":"[Object]";var zr=D(We,Le);if(typeof Re=="undefined")Re=[];else if(ht(Re,ce)>=0)return"[Circular]";function Fr(Gr,qr,ti){if(qr&&(Re=ge.call(Re),Re.push(qr)),ti){var pr={depth:We.depth};return Nt(We,"quoteStyle")&&(pr.quoteStyle=We.quoteStyle),te(Gr,pr,Le+1,Re)}return te(Gr,We,Le+1,Re)}if(typeof ce=="function"&&!ct(ce)){var Ei=It(ce),Qr=fe(ce,Fr);return"[Function"+(Ei?": "+Ei:" (anonymous)")+"]"+(Qr.length>0?" { "+ne.call(Qr,", ")+" }":"")}if(St(ce)){var $i=Oe?Z.call(String(ce),/^(Symbol\(.*\))_[^)]*$/,"$1"):ie.call(ce);return typeof ce=="object"&&!Oe?$($i):$i}if(Bt(ce)){for(var zn="<"+z.call(String(ce.nodeName)),Sn=ce.attributes||[],Rn=0;Rn<Sn.length;Rn++)zn+=" "+Sn[Rn].name+"="+ft(yt(Sn[Rn].value),"double",We);return zn+=">",ce.childNodes&&ce.childNodes.length&&(zn+="..."),zn+="</"+z.call(String(ce.nodeName))+">",zn}if(Qe(ce)){if(ce.length===0)return"[]";var Zr=fe(ce,Fr);return zr&&!oe(Zr)?"["+_(Zr,zr)+"]":"[ "+ne.call(Zr,", ")+" ]"}if(dt(ce)){var Oi=fe(ce,Fr);return!("cause"in Error.prototype)&&"cause"in ce&&!Te.call(ce,"cause")?"{ ["+String(ce)+"] "+ne.call(q.call("[cause]: "+Fr(ce.cause),Oi),", ")+" }":Oi.length===0?"["+String(ce)+"]":"{ ["+String(ce)+"] "+ne.call(Oi,", ")+" }"}if(typeof ce=="object"&&ot){if(ut&&typeof ce[ut]=="function"&&He)return He(ce,{depth:bn-Le});if(ot!=="symbol"&&typeof ce.inspect=="function")return ce.inspect()}if(zt(ce)){var Ti=[];return h.call(ce,function(Gr,qr){Ti.push(Fr(qr,ce,!0)+" => "+Fr(Gr,ce))}),T("Map",m.call(ce),Ti,zr)}if(Mt(ce)){var ln=[];return L.call(ce,function(Gr){ln.push(Fr(Gr,ce))}),T("Set",S.call(ce),ln,zr)}if(Kt(ce))return O("WeakMap");if(Wt(ce))return O("WeakSet");if(sr(ce))return O("WeakRef");if(Ot(ce))return $(Fr(Number(ce)));if(jt(ce))return $(Fr(he.call(ce)));if(Et(ce))return $(Y.call(ce));if(st(ce))return $(Fr(String(ce)));if(!nt(ce)&&!ct(ce)){var An=fe(ce,Fr),Gn=Ce?Ce(ce)===Object.prototype:ce instanceof Object||ce.constructor===Object,$n=ce instanceof Object?"":"null prototype",wn=!Gn&&Pe&&Object(ce)===ce&&Pe in ce?G.call(mt(ce),8,-1):$n?"Object":"",ei=Gn||typeof ce.constructor!="function"?"":ce.constructor.name?ce.constructor.name+" ":"",Pi=ei+(wn||$n?"["+ne.call(q.call([],wn||[],$n||[]),": ")+"] ":"");return An.length===0?Pi+"{}":zr?Pi+"{"+_(An,zr)+"}":Pi+"{ "+ne.call(An,", ")+" }"}return String(ce)};function ft(te,ce,be){var Le=(be.quoteStyle||ce)==="double"?'"':"'";return Le+te+Le}function yt(te){return Z.call(String(te),/"/g,"&quot;")}function Qe(te){return mt(te)==="[object Array]"&&(!Pe||!(typeof te=="object"&&Pe in te))}function nt(te){return mt(te)==="[object Date]"&&(!Pe||!(typeof te=="object"&&Pe in te))}function ct(te){return mt(te)==="[object RegExp]"&&(!Pe||!(typeof te=="object"&&Pe in te))}function dt(te){return mt(te)==="[object Error]"&&(!Pe||!(typeof te=="object"&&Pe in te))}function st(te){return mt(te)==="[object String]"&&(!Pe||!(typeof te=="object"&&Pe in te))}function Ot(te){return mt(te)==="[object Number]"&&(!Pe||!(typeof te=="object"&&Pe in te))}function Et(te){return mt(te)==="[object Boolean]"&&(!Pe||!(typeof te=="object"&&Pe in te))}function St(te){if(Oe)return te&&typeof te=="object"&&te instanceof Symbol;if(typeof te=="symbol")return!0;if(!te||typeof te!="object"||!ie)return!1;try{return ie.call(te),!0}catch(ce){}return!1}function jt(te){if(!te||typeof te!="object"||!he)return!1;try{return he.call(te),!0}catch(ce){}return!1}var Dt=Object.prototype.hasOwnProperty||function(te){return te in this};function Nt(te,ce){return Dt.call(te,ce)}function mt(te){return R.call(te)}function It(te){if(te.name)return te.name;var ce=V.call(E.call(te),/^function\s*([\w$]+)/);return ce?ce[1]:null}function ht(te,ce){if(te.indexOf)return te.indexOf(ce);for(var be=0,Le=te.length;be<Le;be++)if(te[be]===ce)return be;return-1}function zt(te){if(!m||!te||typeof te!="object")return!1;try{m.call(te);try{S.call(te)}catch(ce){return!0}return te instanceof Map}catch(ce){}return!1}function Kt(te){if(!j||!te||typeof te!="object")return!1;try{j.call(te,j);try{Q.call(te,Q)}catch(ce){return!0}return te instanceof WeakMap}catch(ce){}return!1}function sr(te){if(!M||!te||typeof te!="object")return!1;try{return M.call(te),!0}catch(ce){}return!1}function Mt(te){if(!S||!te||typeof te!="object")return!1;try{S.call(te);try{m.call(te)}catch(ce){return!0}return te instanceof Set}catch(ce){}return!1}function Wt(te){if(!Q||!te||typeof te!="object")return!1;try{Q.call(te,Q);try{j.call(te,j)}catch(ce){return!0}return te instanceof WeakSet}catch(ce){}return!1}function Bt(te){return!te||typeof te!="object"?!1:typeof HTMLElement!="undefined"&&te instanceof HTMLElement?!0:typeof te.nodeName=="string"&&typeof te.getAttribute=="function"}function k(te,ce){if(te.length>ce.maxStringLength){var be=te.length-ce.maxStringLength,Le="... "+be+" more character"+(be>1?"s":"");return k(G.call(te,0,ce.maxStringLength),ce)+Le}var Re=Z.call(Z.call(te,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Be);return ft(Re,"single",ce)}function Be(te){var ce=te.charCodeAt(0),be={8:"b",9:"t",10:"n",12:"f",13:"r"}[ce];return be?"\\"+be:"\\x"+(ce<16?"0":"")+X.call(ce.toString(16))}function $(te){return"Object("+te+")"}function O(te){return te+" { ? }"}function T(te,ce,be,Le){var Re=Le?_(be,Le):ne.call(be,", ");return te+" ("+ce+") {"+Re+"}"}function oe(te){for(var ce=0;ce<te.length;ce++)if(ht(te[ce],`
524
+ \r`;function b(N){if(N===null)return!1;var j,U,Q=0,K=N.length,M=h;for(U=0;U<K;U++)if(j=M.indexOf(N.charAt(U)),!(j>64)){if(j<0)return!1;Q+=6}return Q%8==0}function C(N){var j,U,Q=N.replace(/[\r\n=]/g,""),K=Q.length,M=h,Y=0,R=[];for(j=0;j<K;j++)j%4==0&&j&&(R.push(Y>>16&255),R.push(Y>>8&255),R.push(Y&255)),Y=Y<<6|M.indexOf(Q.charAt(j));return U=K%4*6,U===0?(R.push(Y>>16&255),R.push(Y>>8&255),R.push(Y&255)):U===18?(R.push(Y>>10&255),R.push(Y>>2&255)):U===12&&R.push(Y>>4&255),c?c.from?c.from(R):new c(R):R}function S(N){var j="",U=0,Q,K,M=N.length,Y=h;for(Q=0;Q<M;Q++)Q%3==0&&Q&&(j+=Y[U>>18&63],j+=Y[U>>12&63],j+=Y[U>>6&63],j+=Y[U&63]),U=(U<<8)+N[Q];return K=M%3,K===0?(j+=Y[U>>18&63],j+=Y[U>>12&63],j+=Y[U>>6&63],j+=Y[U&63]):K===2?(j+=Y[U>>10&63],j+=Y[U>>4&63],j+=Y[U<<2&63],j+=Y[64]):K===1&&(j+=Y[U>>2&63],j+=Y[U<<4&63],j+=Y[64],j+=Y[64]),j}function L(N){return c&&c.isBuffer(N)}p.exports=new m("tag:yaml.org,2002:binary",{kind:"scalar",resolve:b,construct:C,predicate:L,represent:S})},2648:(p,I,a)=>{"use strict";var c=a(53899);function v(b){if(b===null)return!1;var C=b.length;return C===4&&(b==="true"||b==="True"||b==="TRUE")||C===5&&(b==="false"||b==="False"||b==="FALSE")}function m(b){return b==="true"||b==="True"||b==="TRUE"}function h(b){return Object.prototype.toString.call(b)==="[object Boolean]"}p.exports=new c("tag:yaml.org,2002:bool",{kind:"scalar",resolve:v,construct:m,predicate:h,represent:{lowercase:function(b){return b?"true":"false"},uppercase:function(b){return b?"TRUE":"FALSE"},camelcase:function(b){return b?"True":"False"}},defaultStyle:"lowercase"})},53456:(p,I,a)=>{"use strict";var c=a(25596),v=a(53899),m=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function h(N){return!(N===null||!m.test(N)||N[N.length-1]==="_")}function b(N){var j,U,Q,K;return j=N.replace(/_/g,"").toLowerCase(),U=j[0]==="-"?-1:1,K=[],"+-".indexOf(j[0])>=0&&(j=j.slice(1)),j===".inf"?U===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:j===".nan"?NaN:j.indexOf(":")>=0?(j.split(":").forEach(function(M){K.unshift(parseFloat(M,10))}),j=0,Q=1,K.forEach(function(M){j+=M*Q,Q*=60}),U*j):U*parseFloat(j,10)}var C=/^[-+]?[0-9]+e/;function S(N,j){var U;if(isNaN(N))switch(j){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===N)switch(j){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===N)switch(j){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(c.isNegativeZero(N))return"-0.0";return U=N.toString(10),C.test(U)?U.replace("e",".e"):U}function L(N){return Object.prototype.toString.call(N)==="[object Number]"&&(N%1!=0||c.isNegativeZero(N))}p.exports=new v("tag:yaml.org,2002:float",{kind:"scalar",resolve:h,construct:b,predicate:L,represent:S,defaultStyle:"lowercase"})},95979:(p,I,a)=>{"use strict";var c=a(25596),v=a(53899);function m(N){return 48<=N&&N<=57||65<=N&&N<=70||97<=N&&N<=102}function h(N){return 48<=N&&N<=55}function b(N){return 48<=N&&N<=57}function C(N){if(N===null)return!1;var j=N.length,U=0,Q=!1,K;if(!j)return!1;if(K=N[U],(K==="-"||K==="+")&&(K=N[++U]),K==="0"){if(U+1===j)return!0;if(K=N[++U],K==="b"){for(U++;U<j;U++)if(K=N[U],K!=="_"){if(K!=="0"&&K!=="1")return!1;Q=!0}return Q&&K!=="_"}if(K==="x"){for(U++;U<j;U++)if(K=N[U],K!=="_"){if(!m(N.charCodeAt(U)))return!1;Q=!0}return Q&&K!=="_"}for(;U<j;U++)if(K=N[U],K!=="_"){if(!h(N.charCodeAt(U)))return!1;Q=!0}return Q&&K!=="_"}if(K==="_")return!1;for(;U<j;U++)if(K=N[U],K!=="_"){if(K===":")break;if(!b(N.charCodeAt(U)))return!1;Q=!0}return!Q||K==="_"?!1:K!==":"?!0:/^(:[0-5]?[0-9])+$/.test(N.slice(U))}function S(N){var j=N,U=1,Q,K,M=[];return j.indexOf("_")!==-1&&(j=j.replace(/_/g,"")),Q=j[0],(Q==="-"||Q==="+")&&(Q==="-"&&(U=-1),j=j.slice(1),Q=j[0]),j==="0"?0:Q==="0"?j[1]==="b"?U*parseInt(j.slice(2),2):j[1]==="x"?U*parseInt(j,16):U*parseInt(j,8):j.indexOf(":")!==-1?(j.split(":").forEach(function(Y){M.unshift(parseInt(Y,10))}),j=0,K=1,M.forEach(function(Y){j+=Y*K,K*=60}),U*j):U*parseInt(j,10)}function L(N){return Object.prototype.toString.call(N)==="[object Number]"&&N%1==0&&!c.isNegativeZero(N)}p.exports=new v("tag:yaml.org,2002:int",{kind:"scalar",resolve:C,construct:S,predicate:L,represent:{binary:function(N){return N>=0?"0b"+N.toString(2):"-0b"+N.toString(2).slice(1)},octal:function(N){return N>=0?"0"+N.toString(8):"-0"+N.toString(8).slice(1)},decimal:function(N){return N.toString(10)},hexadecimal:function(N){return N>=0?"0x"+N.toString(16).toUpperCase():"-0x"+N.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},89811:(p,I,a)=>{"use strict";var c;try{var v=void 0;c=a(88150)}catch(L){typeof window!="undefined"&&(c=window.esprima)}var m=a(53899);function h(L){if(L===null)return!1;try{var N="("+L+")",j=c.parse(N,{range:!0});return!(j.type!=="Program"||j.body.length!==1||j.body[0].type!=="ExpressionStatement"||j.body[0].expression.type!=="ArrowFunctionExpression"&&j.body[0].expression.type!=="FunctionExpression")}catch(U){return!1}}function b(L){var N="("+L+")",j=c.parse(N,{range:!0}),U=[],Q;if(j.type!=="Program"||j.body.length!==1||j.body[0].type!=="ExpressionStatement"||j.body[0].expression.type!=="ArrowFunctionExpression"&&j.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return j.body[0].expression.params.forEach(function(K){U.push(K.name)}),Q=j.body[0].expression.body.range,j.body[0].expression.body.type==="BlockStatement"?new Function(U,N.slice(Q[0]+1,Q[1]-1)):new Function(U,"return "+N.slice(Q[0],Q[1]))}function C(L){return L.toString()}function S(L){return Object.prototype.toString.call(L)==="[object Function]"}p.exports=new m("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:h,construct:b,predicate:S,represent:C})},97287:(p,I,a)=>{"use strict";var c=a(53899);function v(C){if(C===null||C.length===0)return!1;var S=C,L=/\/([gim]*)$/.exec(C),N="";return!(S[0]==="/"&&(L&&(N=L[1]),N.length>3||S[S.length-N.length-1]!=="/"))}function m(C){var S=C,L=/\/([gim]*)$/.exec(C),N="";return S[0]==="/"&&(L&&(N=L[1]),S=S.slice(1,S.length-N.length-1)),new RegExp(S,N)}function h(C){var S="/"+C.source+"/";return C.global&&(S+="g"),C.multiline&&(S+="m"),C.ignoreCase&&(S+="i"),S}function b(C){return Object.prototype.toString.call(C)==="[object RegExp]"}p.exports=new c("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:v,construct:m,predicate:b,represent:h})},70575:(p,I,a)=>{"use strict";var c=a(53899);function v(){return!0}function m(){}function h(){return""}function b(C){return typeof C=="undefined"}p.exports=new c("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:v,construct:m,predicate:b,represent:h})},86553:(p,I,a)=>{"use strict";var c=a(53899);p.exports=new c("tag:yaml.org,2002:map",{kind:"mapping",construct:function(v){return v!==null?v:{}}})},243:(p,I,a)=>{"use strict";var c=a(53899);function v(m){return m==="<<"||m===null}p.exports=new c("tag:yaml.org,2002:merge",{kind:"scalar",resolve:v})},3022:(p,I,a)=>{"use strict";var c=a(53899);function v(b){if(b===null)return!0;var C=b.length;return C===1&&b==="~"||C===4&&(b==="null"||b==="Null"||b==="NULL")}function m(){return null}function h(b){return b===null}p.exports=new c("tag:yaml.org,2002:null",{kind:"scalar",resolve:v,construct:m,predicate:h,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},3878:(p,I,a)=>{"use strict";var c=a(53899),v=Object.prototype.hasOwnProperty,m=Object.prototype.toString;function h(C){if(C===null)return!0;var S=[],L,N,j,U,Q,K=C;for(L=0,N=K.length;L<N;L+=1){if(j=K[L],Q=!1,m.call(j)!=="[object Object]")return!1;for(U in j)if(v.call(j,U))if(!Q)Q=!0;else return!1;if(!Q)return!1;if(S.indexOf(U)===-1)S.push(U);else return!1}return!0}function b(C){return C!==null?C:[]}p.exports=new c("tag:yaml.org,2002:omap",{kind:"sequence",resolve:h,construct:b})},68244:(p,I,a)=>{"use strict";var c=a(53899),v=Object.prototype.toString;function m(b){if(b===null)return!0;var C,S,L,N,j,U=b;for(j=new Array(U.length),C=0,S=U.length;C<S;C+=1){if(L=U[C],v.call(L)!=="[object Object]"||(N=Object.keys(L),N.length!==1))return!1;j[C]=[N[0],L[N[0]]]}return!0}function h(b){if(b===null)return[];var C,S,L,N,j,U=b;for(j=new Array(U.length),C=0,S=U.length;C<S;C+=1)L=U[C],N=Object.keys(L),j[C]=[N[0],L[N[0]]];return j}p.exports=new c("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:m,construct:h})},43745:(p,I,a)=>{"use strict";var c=a(53899);p.exports=new c("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(v){return v!==null?v:[]}})},67300:(p,I,a)=>{"use strict";var c=a(53899),v=Object.prototype.hasOwnProperty;function m(b){if(b===null)return!0;var C,S=b;for(C in S)if(v.call(S,C)&&S[C]!==null)return!1;return!0}function h(b){return b!==null?b:{}}p.exports=new c("tag:yaml.org,2002:set",{kind:"mapping",resolve:m,construct:h})},79483:(p,I,a)=>{"use strict";var c=a(53899);p.exports=new c("tag:yaml.org,2002:str",{kind:"scalar",construct:function(v){return v!==null?v:""}})},56145:(p,I,a)=>{"use strict";var c=a(53899),v=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),m=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 h(S){return S===null?!1:v.exec(S)!==null||m.exec(S)!==null}function b(S){var L,N,j,U,Q,K,M,Y=0,R=null,E,V,G;if(L=v.exec(S),L===null&&(L=m.exec(S)),L===null)throw new Error("Date resolve error");if(N=+L[1],j=+L[2]-1,U=+L[3],!L[4])return new Date(Date.UTC(N,j,U));if(Q=+L[4],K=+L[5],M=+L[6],L[7]){for(Y=L[7].slice(0,3);Y.length<3;)Y+="0";Y=+Y}return L[9]&&(E=+L[10],V=+(L[11]||0),R=(E*60+V)*6e4,L[9]==="-"&&(R=-R)),G=new Date(Date.UTC(N,j,U,Q,K,M,Y)),R&&G.setTime(G.getTime()-R),G}function C(S){return S.toISOString()}p.exports=new c("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:h,construct:b,instanceOf:Date,represent:C})},18552:(p,I,a)=>{var c=a(10852),v=a(55639),m=c(v,"DataView");p.exports=m},1989:(p,I,a)=>{var c=a(51789),v=a(80401),m=a(57667),h=a(21327),b=a(81866);function C(S){var L=-1,N=S==null?0:S.length;for(this.clear();++L<N;){var j=S[L];this.set(j[0],j[1])}}C.prototype.clear=c,C.prototype.delete=v,C.prototype.get=m,C.prototype.has=h,C.prototype.set=b,p.exports=C},38407:(p,I,a)=>{var c=a(27040),v=a(14125),m=a(82117),h=a(67518),b=a(13399);function C(S){var L=-1,N=S==null?0:S.length;for(this.clear();++L<N;){var j=S[L];this.set(j[0],j[1])}}C.prototype.clear=c,C.prototype.delete=v,C.prototype.get=m,C.prototype.has=h,C.prototype.set=b,p.exports=C},57071:(p,I,a)=>{var c=a(10852),v=a(55639),m=c(v,"Map");p.exports=m},83369:(p,I,a)=>{var c=a(24785),v=a(11285),m=a(96e3),h=a(49916),b=a(95265);function C(S){var L=-1,N=S==null?0:S.length;for(this.clear();++L<N;){var j=S[L];this.set(j[0],j[1])}}C.prototype.clear=c,C.prototype.delete=v,C.prototype.get=m,C.prototype.has=h,C.prototype.set=b,p.exports=C},53818:(p,I,a)=>{var c=a(10852),v=a(55639),m=c(v,"Promise");p.exports=m},58525:(p,I,a)=>{var c=a(10852),v=a(55639),m=c(v,"Set");p.exports=m},88668:(p,I,a)=>{var c=a(83369),v=a(90619),m=a(72385);function h(b){var C=-1,S=b==null?0:b.length;for(this.__data__=new c;++C<S;)this.add(b[C])}h.prototype.add=h.prototype.push=v,h.prototype.has=m,p.exports=h},46384:(p,I,a)=>{var c=a(38407),v=a(37465),m=a(63779),h=a(67599),b=a(44758),C=a(34309);function S(L){var N=this.__data__=new c(L);this.size=N.size}S.prototype.clear=v,S.prototype.delete=m,S.prototype.get=h,S.prototype.has=b,S.prototype.set=C,p.exports=S},62705:(p,I,a)=>{var c=a(55639),v=c.Symbol;p.exports=v},11149:(p,I,a)=>{var c=a(55639),v=c.Uint8Array;p.exports=v},70577:(p,I,a)=>{var c=a(10852),v=a(55639),m=c(v,"WeakMap");p.exports=m},96874:p=>{function I(a,c,v){switch(v.length){case 0:return a.call(c);case 1:return a.call(c,v[0]);case 2:return a.call(c,v[0],v[1]);case 3:return a.call(c,v[0],v[1],v[2])}return a.apply(c,v)}p.exports=I},77412:p=>{function I(a,c){for(var v=-1,m=a==null?0:a.length;++v<m&&c(a[v],v,a)!==!1;);return a}p.exports=I},34963:p=>{function I(a,c){for(var v=-1,m=a==null?0:a.length,h=0,b=[];++v<m;){var C=a[v];c(C,v,a)&&(b[h++]=C)}return b}p.exports=I},14636:(p,I,a)=>{var c=a(22545),v=a(35694),m=a(1469),h=a(44144),b=a(65776),C=a(36719),S=Object.prototype,L=S.hasOwnProperty;function N(j,U){var Q=m(j),K=!Q&&v(j),M=!Q&&!K&&h(j),Y=!Q&&!K&&!M&&C(j),R=Q||K||M||Y,E=R?c(j.length,String):[],V=E.length;for(var G in j)(U||L.call(j,G))&&!(R&&(G=="length"||M&&(G=="offset"||G=="parent")||Y&&(G=="buffer"||G=="byteLength"||G=="byteOffset")||b(G,V)))&&E.push(G);return E}p.exports=N},29932:p=>{function I(a,c){for(var v=-1,m=a==null?0:a.length,h=Array(m);++v<m;)h[v]=c(a[v],v,a);return h}p.exports=I},62488:p=>{function I(a,c){for(var v=-1,m=c.length,h=a.length;++v<m;)a[h+v]=c[v];return a}p.exports=I},82908:p=>{function I(a,c){for(var v=-1,m=a==null?0:a.length;++v<m;)if(c(a[v],v,a))return!0;return!1}p.exports=I},34865:(p,I,a)=>{var c=a(89465),v=a(77813),m=Object.prototype,h=m.hasOwnProperty;function b(C,S,L){var N=C[S];(!(h.call(C,S)&&v(N,L))||L===void 0&&!(S in C))&&c(C,S,L)}p.exports=b},18470:(p,I,a)=>{var c=a(77813);function v(m,h){for(var b=m.length;b--;)if(c(m[b][0],h))return b;return-1}p.exports=v},44037:(p,I,a)=>{var c=a(98363),v=a(3674);function m(h,b){return h&&c(b,v(b),h)}p.exports=m},63886:(p,I,a)=>{var c=a(98363),v=a(81704);function m(h,b){return h&&c(b,v(b),h)}p.exports=m},89465:(p,I,a)=>{var c=a(38777);function v(m,h,b){h=="__proto__"&&c?c(m,h,{configurable:!0,enumerable:!0,value:b,writable:!0}):m[h]=b}p.exports=v},29750:p=>{function I(a,c,v){return a===a&&(v!==void 0&&(a=a<=v?a:v),c!==void 0&&(a=a>=c?a:c)),a}p.exports=I},85990:(p,I,a)=>{var c=a(46384),v=a(77412),m=a(34865),h=a(44037),b=a(63886),C=a(64626),S=a(278),L=a(18805),N=a(1911),j=a(58234),U=a(46904),Q=a(98882),K=a(43824),M=a(29148),Y=a(38517),R=a(1469),E=a(44144),V=a(56688),G=a(13218),Z=a(72928),X=a(3674),z=a(81704),ue=1,q=2,ne=4,ge="[object Arguments]",me="[object Array]",pe="[object Boolean]",se="[object Date]",ie="[object Error]",Oe="[object Function]",Pe="[object GeneratorFunction]",Te="[object Map]",Ce="[object Number]",Xe="[object Object]",He="[object RegExp]",Je="[object Set]",ut="[object String]",ft="[object Symbol]",yt="[object WeakMap]",Qe="[object ArrayBuffer]",nt="[object DataView]",ct="[object Float32Array]",dt="[object Float64Array]",st="[object Int8Array]",Ot="[object Int16Array]",Et="[object Int32Array]",St="[object Uint8Array]",Ut="[object Uint8ClampedArray]",Dt="[object Uint16Array]",Nt="[object Uint32Array]",mt={};mt[ge]=mt[me]=mt[Qe]=mt[nt]=mt[pe]=mt[se]=mt[ct]=mt[dt]=mt[st]=mt[Ot]=mt[Et]=mt[Te]=mt[Ce]=mt[Xe]=mt[He]=mt[Je]=mt[ut]=mt[ft]=mt[St]=mt[Ut]=mt[Dt]=mt[Nt]=!0,mt[ie]=mt[Oe]=mt[yt]=!1;function It(ht,zt,Kt,sr,Mt,Wt){var Bt,k=zt&ue,Be=zt&q,$=zt&ne;if(Kt&&(Bt=Mt?Kt(ht,sr,Mt,Wt):Kt(ht)),Bt!==void 0)return Bt;if(!G(ht))return ht;var O=R(ht);if(O){if(Bt=K(ht),!k)return S(ht,Bt)}else{var T=Q(ht),oe=T==Oe||T==Pe;if(E(ht))return C(ht,k);if(T==Xe||T==ge||oe&&!Mt){if(Bt=Be||oe?{}:Y(ht),!k)return Be?N(ht,b(Bt,ht)):L(ht,h(Bt,ht))}else{if(!mt[T])return Mt?ht:{};Bt=M(ht,T,k)}}Wt||(Wt=new c);var D=Wt.get(ht);if(D)return D;Wt.set(ht,Bt),Z(ht)?ht.forEach(function(te){Bt.add(It(te,zt,Kt,te,ht,Wt))}):V(ht)&&ht.forEach(function(te,ce){Bt.set(ce,It(te,zt,Kt,ce,ht,Wt))});var _=$?Be?U:j:Be?z:X,fe=O?void 0:_(ht);return v(fe||ht,function(te,ce){fe&&(ce=te,te=ht[ce]),m(Bt,ce,It(te,zt,Kt,ce,ht,Wt))}),Bt}p.exports=It},3118:(p,I,a)=>{var c=a(13218),v=Object.create,m=function(){function h(){}return function(b){if(!c(b))return{};if(v)return v(b);h.prototype=b;var C=new h;return h.prototype=void 0,C}}();p.exports=m},41848:p=>{function I(a,c,v,m){for(var h=a.length,b=v+(m?1:-1);m?b--:++b<h;)if(c(a[b],b,a))return b;return-1}p.exports=I},35764:(p,I,a)=>{var c=a(62488),v=a(37285);function m(h,b,C,S,L){var N=-1,j=h.length;for(C||(C=v),L||(L=[]);++N<j;){var U=h[N];b>0&&C(U)?b>1?m(U,b-1,C,S,L):c(L,U):S||(L[L.length]=U)}return L}p.exports=m},97786:(p,I,a)=>{var c=a(71811),v=a(40327);function m(h,b){b=c(b,h);for(var C=0,S=b.length;h!=null&&C<S;)h=h[v(b[C++])];return C&&C==S?h:void 0}p.exports=m},68866:(p,I,a)=>{var c=a(62488),v=a(1469);function m(h,b,C){var S=b(h);return v(h)?S:c(S,C(h))}p.exports=m},44239:(p,I,a)=>{var c=a(62705),v=a(89607),m=a(2333),h="[object Null]",b="[object Undefined]",C=c?c.toStringTag:void 0;function S(L){return L==null?L===void 0?b:h:C&&C in Object(L)?v(L):m(L)}p.exports=S},13:p=>{function I(a,c){return a!=null&&c in Object(a)}p.exports=I},9454:(p,I,a)=>{var c=a(44239),v=a(37005),m="[object Arguments]";function h(b){return v(b)&&c(b)==m}p.exports=h},90939:(p,I,a)=>{var c=a(2492),v=a(37005);function m(h,b,C,S,L){return h===b?!0:h==null||b==null||!v(h)&&!v(b)?h!==h&&b!==b:c(h,b,C,S,m,L)}p.exports=m},2492:(p,I,a)=>{var c=a(46384),v=a(67114),m=a(18351),h=a(16096),b=a(98882),C=a(1469),S=a(44144),L=a(36719),N=1,j="[object Arguments]",U="[object Array]",Q="[object Object]",K=Object.prototype,M=K.hasOwnProperty;function Y(R,E,V,G,Z,X){var z=C(R),ue=C(E),q=z?U:b(R),ne=ue?U:b(E);q=q==j?Q:q,ne=ne==j?Q:ne;var ge=q==Q,me=ne==Q,pe=q==ne;if(pe&&S(R)){if(!S(E))return!1;z=!0,ge=!1}if(pe&&!ge)return X||(X=new c),z||L(R)?v(R,E,V,G,Z,X):m(R,E,q,V,G,Z,X);if(!(V&N)){var se=ge&&M.call(R,"__wrapped__"),ie=me&&M.call(E,"__wrapped__");if(se||ie){var Oe=se?R.value():R,Pe=ie?E.value():E;return X||(X=new c),Z(Oe,Pe,V,G,X)}}return pe?(X||(X=new c),h(R,E,V,G,Z,X)):!1}p.exports=Y},25588:(p,I,a)=>{var c=a(98882),v=a(37005),m="[object Map]";function h(b){return v(b)&&c(b)==m}p.exports=h},2958:(p,I,a)=>{var c=a(46384),v=a(90939),m=1,h=2;function b(C,S,L,N){var j=L.length,U=j,Q=!N;if(C==null)return!U;for(C=Object(C);j--;){var K=L[j];if(Q&&K[2]?K[1]!==C[K[0]]:!(K[0]in C))return!1}for(;++j<U;){K=L[j];var M=K[0],Y=C[M],R=K[1];if(Q&&K[2]){if(Y===void 0&&!(M in C))return!1}else{var E=new c;if(N)var V=N(Y,R,M,C,S,E);if(!(V===void 0?v(R,Y,m|h,N,E):V))return!1}}return!0}p.exports=b},28458:(p,I,a)=>{var c=a(23560),v=a(15346),m=a(13218),h=a(80346),b=/[\\^$.*+?()[\]{}|]/g,C=/^\[object .+?Constructor\]$/,S=Function.prototype,L=Object.prototype,N=S.toString,j=L.hasOwnProperty,U=RegExp("^"+N.call(j).replace(b,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Q(K){if(!m(K)||v(K))return!1;var M=c(K)?U:C;return M.test(h(K))}p.exports=Q},29221:(p,I,a)=>{var c=a(98882),v=a(37005),m="[object Set]";function h(b){return v(b)&&c(b)==m}p.exports=h},38749:(p,I,a)=>{var c=a(44239),v=a(41780),m=a(37005),h="[object Arguments]",b="[object Array]",C="[object Boolean]",S="[object Date]",L="[object Error]",N="[object Function]",j="[object Map]",U="[object Number]",Q="[object Object]",K="[object RegExp]",M="[object Set]",Y="[object String]",R="[object WeakMap]",E="[object ArrayBuffer]",V="[object DataView]",G="[object Float32Array]",Z="[object Float64Array]",X="[object Int8Array]",z="[object Int16Array]",ue="[object Int32Array]",q="[object Uint8Array]",ne="[object Uint8ClampedArray]",ge="[object Uint16Array]",me="[object Uint32Array]",pe={};pe[G]=pe[Z]=pe[X]=pe[z]=pe[ue]=pe[q]=pe[ne]=pe[ge]=pe[me]=!0,pe[h]=pe[b]=pe[E]=pe[C]=pe[V]=pe[S]=pe[L]=pe[N]=pe[j]=pe[U]=pe[Q]=pe[K]=pe[M]=pe[Y]=pe[R]=!1;function se(ie){return m(ie)&&v(ie.length)&&!!pe[c(ie)]}p.exports=se},67206:(p,I,a)=>{var c=a(91573),v=a(16432),m=a(6557),h=a(1469),b=a(39601);function C(S){return typeof S=="function"?S:S==null?m:typeof S=="object"?h(S)?v(S[0],S[1]):c(S):b(S)}p.exports=C},280:(p,I,a)=>{var c=a(25726),v=a(86916),m=Object.prototype,h=m.hasOwnProperty;function b(C){if(!c(C))return v(C);var S=[];for(var L in Object(C))h.call(C,L)&&L!="constructor"&&S.push(L);return S}p.exports=b},10313:(p,I,a)=>{var c=a(13218),v=a(25726),m=a(33498),h=Object.prototype,b=h.hasOwnProperty;function C(S){if(!c(S))return m(S);var L=v(S),N=[];for(var j in S)j=="constructor"&&(L||!b.call(S,j))||N.push(j);return N}p.exports=C},91573:(p,I,a)=>{var c=a(2958),v=a(1499),m=a(42634);function h(b){var C=v(b);return C.length==1&&C[0][2]?m(C[0][0],C[0][1]):function(S){return S===b||c(S,b,C)}}p.exports=h},16432:(p,I,a)=>{var c=a(90939),v=a(27361),m=a(79095),h=a(15403),b=a(89162),C=a(42634),S=a(40327),L=1,N=2;function j(U,Q){return h(U)&&b(Q)?C(S(U),Q):function(K){var M=v(K,U);return M===void 0&&M===Q?m(K,U):c(Q,M,L|N)}}p.exports=j},25970:(p,I,a)=>{var c=a(63012),v=a(79095);function m(h,b){return c(h,b,function(C,S){return v(h,S)})}p.exports=m},63012:(p,I,a)=>{var c=a(97786),v=a(10611),m=a(71811);function h(b,C,S){for(var L=-1,N=C.length,j={};++L<N;){var U=C[L],Q=c(b,U);S(Q,U)&&v(j,m(U,b),Q)}return j}p.exports=h},40371:p=>{function I(a){return function(c){return c==null?void 0:c[a]}}p.exports=I},79152:(p,I,a)=>{var c=a(97786);function v(m){return function(h){return c(h,m)}}p.exports=v},5976:(p,I,a)=>{var c=a(6557),v=a(45357),m=a(30061);function h(b,C){return m(v(b,C,c),b+"")}p.exports=h},10611:(p,I,a)=>{var c=a(34865),v=a(71811),m=a(65776),h=a(13218),b=a(40327);function C(S,L,N,j){if(!h(S))return S;L=v(L,S);for(var U=-1,Q=L.length,K=Q-1,M=S;M!=null&&++U<Q;){var Y=b(L[U]),R=N;if(Y==="__proto__"||Y==="constructor"||Y==="prototype")return S;if(U!=K){var E=M[Y];R=j?j(E,Y,M):void 0,R===void 0&&(R=h(E)?E:m(L[U+1])?[]:{})}c(M,Y,R),M=M[Y]}return S}p.exports=C},56560:(p,I,a)=>{var c=a(75703),v=a(38777),m=a(6557),h=v?function(b,C){return v(b,"toString",{configurable:!0,enumerable:!1,value:c(C),writable:!0})}:m;p.exports=h},22545:p=>{function I(a,c){for(var v=-1,m=Array(a);++v<a;)m[v]=c(v);return m}p.exports=I},80531:(p,I,a)=>{var c=a(62705),v=a(29932),m=a(1469),h=a(33448),b=1/0,C=c?c.prototype:void 0,S=C?C.toString:void 0;function L(N){if(typeof N=="string")return N;if(m(N))return v(N,L)+"";if(h(N))return S?S.call(N):"";var j=N+"";return j=="0"&&1/N==-b?"-0":j}p.exports=L},27561:(p,I,a)=>{var c=a(67990),v=/^\s+/;function m(h){return h&&h.slice(0,c(h)+1).replace(v,"")}p.exports=m},7518:p=>{function I(a){return function(c){return a(c)}}p.exports=I},74757:p=>{function I(a,c){return a.has(c)}p.exports=I},71811:(p,I,a)=>{var c=a(1469),v=a(15403),m=a(55514),h=a(79833);function b(C,S){return c(C)?C:v(C,S)?[C]:m(h(C))}p.exports=b},74318:(p,I,a)=>{var c=a(11149);function v(m){var h=new m.constructor(m.byteLength);return new c(h).set(new c(m)),h}p.exports=v},64626:(p,I,a)=>{p=a.nmd(p);var c=a(55639),v=I&&!I.nodeType&&I,m=v&&!0&&p&&!p.nodeType&&p,h=m&&m.exports===v,b=h?c.Buffer:void 0,C=b?b.allocUnsafe:void 0;function S(L,N){if(N)return L.slice();var j=L.length,U=C?C(j):new L.constructor(j);return L.copy(U),U}p.exports=S},57157:(p,I,a)=>{var c=a(74318);function v(m,h){var b=h?c(m.buffer):m.buffer;return new m.constructor(b,m.byteOffset,m.byteLength)}p.exports=v},93147:p=>{var I=/\w*$/;function a(c){var v=new c.constructor(c.source,I.exec(c));return v.lastIndex=c.lastIndex,v}p.exports=a},40419:(p,I,a)=>{var c=a(62705),v=c?c.prototype:void 0,m=v?v.valueOf:void 0;function h(b){return m?Object(m.call(b)):{}}p.exports=h},77133:(p,I,a)=>{var c=a(74318);function v(m,h){var b=h?c(m.buffer):m.buffer;return new m.constructor(b,m.byteOffset,m.length)}p.exports=v},278:p=>{function I(a,c){var v=-1,m=a.length;for(c||(c=Array(m));++v<m;)c[v]=a[v];return c}p.exports=I},98363:(p,I,a)=>{var c=a(34865),v=a(89465);function m(h,b,C,S){var L=!C;C||(C={});for(var N=-1,j=b.length;++N<j;){var U=b[N],Q=S?S(C[U],h[U],U,C,h):void 0;Q===void 0&&(Q=h[U]),L?v(C,U,Q):c(C,U,Q)}return C}p.exports=m},18805:(p,I,a)=>{var c=a(98363),v=a(99551);function m(h,b){return c(h,v(h),b)}p.exports=m},1911:(p,I,a)=>{var c=a(98363),v=a(51442);function m(h,b){return c(h,v(h),b)}p.exports=m},14429:(p,I,a)=>{var c=a(55639),v=c["__core-js_shared__"];p.exports=v},21463:(p,I,a)=>{var c=a(5976),v=a(16612);function m(h){return c(function(b,C){var S=-1,L=C.length,N=L>1?C[L-1]:void 0,j=L>2?C[2]:void 0;for(N=h.length>3&&typeof N=="function"?(L--,N):void 0,j&&v(C[0],C[1],j)&&(N=L<3?void 0:N,L=1),b=Object(b);++S<L;){var U=C[S];U&&h(b,U,S,N)}return b})}p.exports=m},67740:(p,I,a)=>{var c=a(67206),v=a(98612),m=a(3674);function h(b){return function(C,S,L){var N=Object(C);if(!v(C)){var j=c(S,3);C=m(C),S=function(Q){return j(N[Q],Q,N)}}var U=b(C,S,L);return U>-1?N[j?C[U]:U]:void 0}}p.exports=h},38777:(p,I,a)=>{var c=a(10852),v=function(){try{var m=c(Object,"defineProperty");return m({},"",{}),m}catch(h){}}();p.exports=v},67114:(p,I,a)=>{var c=a(88668),v=a(82908),m=a(74757),h=1,b=2;function C(S,L,N,j,U,Q){var K=N&h,M=S.length,Y=L.length;if(M!=Y&&!(K&&Y>M))return!1;var R=Q.get(S),E=Q.get(L);if(R&&E)return R==L&&E==S;var V=-1,G=!0,Z=N&b?new c:void 0;for(Q.set(S,L),Q.set(L,S);++V<M;){var X=S[V],z=L[V];if(j)var ue=K?j(z,X,V,L,S,Q):j(X,z,V,S,L,Q);if(ue!==void 0){if(ue)continue;G=!1;break}if(Z){if(!v(L,function(q,ne){if(!m(Z,ne)&&(X===q||U(X,q,N,j,Q)))return Z.push(ne)})){G=!1;break}}else if(!(X===z||U(X,z,N,j,Q))){G=!1;break}}return Q.delete(S),Q.delete(L),G}p.exports=C},18351:(p,I,a)=>{var c=a(62705),v=a(11149),m=a(77813),h=a(67114),b=a(68776),C=a(21814),S=1,L=2,N="[object Boolean]",j="[object Date]",U="[object Error]",Q="[object Map]",K="[object Number]",M="[object RegExp]",Y="[object Set]",R="[object String]",E="[object Symbol]",V="[object ArrayBuffer]",G="[object DataView]",Z=c?c.prototype:void 0,X=Z?Z.valueOf:void 0;function z(ue,q,ne,ge,me,pe,se){switch(ne){case G:if(ue.byteLength!=q.byteLength||ue.byteOffset!=q.byteOffset)return!1;ue=ue.buffer,q=q.buffer;case V:return!(ue.byteLength!=q.byteLength||!pe(new v(ue),new v(q)));case N:case j:case K:return m(+ue,+q);case U:return ue.name==q.name&&ue.message==q.message;case M:case R:return ue==q+"";case Q:var ie=b;case Y:var Oe=ge&S;if(ie||(ie=C),ue.size!=q.size&&!Oe)return!1;var Pe=se.get(ue);if(Pe)return Pe==q;ge|=L,se.set(ue,q);var Te=h(ie(ue),ie(q),ge,me,pe,se);return se.delete(ue),Te;case E:if(X)return X.call(ue)==X.call(q)}return!1}p.exports=z},16096:(p,I,a)=>{var c=a(58234),v=1,m=Object.prototype,h=m.hasOwnProperty;function b(C,S,L,N,j,U){var Q=L&v,K=c(C),M=K.length,Y=c(S),R=Y.length;if(M!=R&&!Q)return!1;for(var E=M;E--;){var V=K[E];if(!(Q?V in S:h.call(S,V)))return!1}var G=U.get(C),Z=U.get(S);if(G&&Z)return G==S&&Z==C;var X=!0;U.set(C,S),U.set(S,C);for(var z=Q;++E<M;){V=K[E];var ue=C[V],q=S[V];if(N)var ne=Q?N(q,ue,V,S,C,U):N(ue,q,V,C,S,U);if(!(ne===void 0?ue===q||j(ue,q,L,N,U):ne)){X=!1;break}z||(z=V=="constructor")}if(X&&!z){var ge=C.constructor,me=S.constructor;ge!=me&&"constructor"in C&&"constructor"in S&&!(typeof ge=="function"&&ge instanceof ge&&typeof me=="function"&&me instanceof me)&&(X=!1)}return U.delete(C),U.delete(S),X}p.exports=b},99021:(p,I,a)=>{var c=a(85564),v=a(45357),m=a(30061);function h(b){return m(v(b,void 0,c),b+"")}p.exports=h},31957:(p,I,a)=>{var c=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g;p.exports=c},58234:(p,I,a)=>{var c=a(68866),v=a(99551),m=a(3674);function h(b){return c(b,m,v)}p.exports=h},46904:(p,I,a)=>{var c=a(68866),v=a(51442),m=a(81704);function h(b){return c(b,m,v)}p.exports=h},45050:(p,I,a)=>{var c=a(37019);function v(m,h){var b=m.__data__;return c(h)?b[typeof h=="string"?"string":"hash"]:b.map}p.exports=v},1499:(p,I,a)=>{var c=a(89162),v=a(3674);function m(h){for(var b=v(h),C=b.length;C--;){var S=b[C],L=h[S];b[C]=[S,L,c(L)]}return b}p.exports=m},10852:(p,I,a)=>{var c=a(28458),v=a(47801);function m(h,b){var C=v(h,b);return c(C)?C:void 0}p.exports=m},85924:(p,I,a)=>{var c=a(5569),v=c(Object.getPrototypeOf,Object);p.exports=v},89607:(p,I,a)=>{var c=a(62705),v=Object.prototype,m=v.hasOwnProperty,h=v.toString,b=c?c.toStringTag:void 0;function C(S){var L=m.call(S,b),N=S[b];try{S[b]=void 0;var j=!0}catch(Q){}var U=h.call(S);return j&&(L?S[b]=N:delete S[b]),U}p.exports=C},99551:(p,I,a)=>{var c=a(34963),v=a(70479),m=Object.prototype,h=m.propertyIsEnumerable,b=Object.getOwnPropertySymbols,C=b?function(S){return S==null?[]:(S=Object(S),c(b(S),function(L){return h.call(S,L)}))}:v;p.exports=C},51442:(p,I,a)=>{var c=a(62488),v=a(85924),m=a(99551),h=a(70479),b=Object.getOwnPropertySymbols,C=b?function(S){for(var L=[];S;)c(L,m(S)),S=v(S);return L}:h;p.exports=C},98882:(p,I,a)=>{var c=a(18552),v=a(57071),m=a(53818),h=a(58525),b=a(70577),C=a(44239),S=a(80346),L="[object Map]",N="[object Object]",j="[object Promise]",U="[object Set]",Q="[object WeakMap]",K="[object DataView]",M=S(c),Y=S(v),R=S(m),E=S(h),V=S(b),G=C;(c&&G(new c(new ArrayBuffer(1)))!=K||v&&G(new v)!=L||m&&G(m.resolve())!=j||h&&G(new h)!=U||b&&G(new b)!=Q)&&(G=function(Z){var X=C(Z),z=X==N?Z.constructor:void 0,ue=z?S(z):"";if(ue)switch(ue){case M:return K;case Y:return L;case R:return j;case E:return U;case V:return Q}return X}),p.exports=G},47801:p=>{function I(a,c){return a==null?void 0:a[c]}p.exports=I},222:(p,I,a)=>{var c=a(71811),v=a(35694),m=a(1469),h=a(65776),b=a(41780),C=a(40327);function S(L,N,j){N=c(N,L);for(var U=-1,Q=N.length,K=!1;++U<Q;){var M=C(N[U]);if(!(K=L!=null&&j(L,M)))break;L=L[M]}return K||++U!=Q?K:(Q=L==null?0:L.length,!!Q&&b(Q)&&h(M,Q)&&(m(L)||v(L)))}p.exports=S},51789:(p,I,a)=>{var c=a(94536);function v(){this.__data__=c?c(null):{},this.size=0}p.exports=v},80401:p=>{function I(a){var c=this.has(a)&&delete this.__data__[a];return this.size-=c?1:0,c}p.exports=I},57667:(p,I,a)=>{var c=a(94536),v="__lodash_hash_undefined__",m=Object.prototype,h=m.hasOwnProperty;function b(C){var S=this.__data__;if(c){var L=S[C];return L===v?void 0:L}return h.call(S,C)?S[C]:void 0}p.exports=b},21327:(p,I,a)=>{var c=a(94536),v=Object.prototype,m=v.hasOwnProperty;function h(b){var C=this.__data__;return c?C[b]!==void 0:m.call(C,b)}p.exports=h},81866:(p,I,a)=>{var c=a(94536),v="__lodash_hash_undefined__";function m(h,b){var C=this.__data__;return this.size+=this.has(h)?0:1,C[h]=c&&b===void 0?v:b,this}p.exports=m},43824:p=>{var I=Object.prototype,a=I.hasOwnProperty;function c(v){var m=v.length,h=new v.constructor(m);return m&&typeof v[0]=="string"&&a.call(v,"index")&&(h.index=v.index,h.input=v.input),h}p.exports=c},29148:(p,I,a)=>{var c=a(74318),v=a(57157),m=a(93147),h=a(40419),b=a(77133),C="[object Boolean]",S="[object Date]",L="[object Map]",N="[object Number]",j="[object RegExp]",U="[object Set]",Q="[object String]",K="[object Symbol]",M="[object ArrayBuffer]",Y="[object DataView]",R="[object Float32Array]",E="[object Float64Array]",V="[object Int8Array]",G="[object Int16Array]",Z="[object Int32Array]",X="[object Uint8Array]",z="[object Uint8ClampedArray]",ue="[object Uint16Array]",q="[object Uint32Array]";function ne(ge,me,pe){var se=ge.constructor;switch(me){case M:return c(ge);case C:case S:return new se(+ge);case Y:return v(ge,pe);case R:case E:case V:case G:case Z:case X:case z:case ue:case q:return b(ge,pe);case L:return new se;case N:case Q:return new se(ge);case j:return m(ge);case U:return new se;case K:return h(ge)}}p.exports=ne},38517:(p,I,a)=>{var c=a(3118),v=a(85924),m=a(25726);function h(b){return typeof b.constructor=="function"&&!m(b)?c(v(b)):{}}p.exports=h},37285:(p,I,a)=>{var c=a(62705),v=a(35694),m=a(1469),h=c?c.isConcatSpreadable:void 0;function b(C){return m(C)||v(C)||!!(h&&C&&C[h])}p.exports=b},65776:p=>{var I=9007199254740991,a=/^(?:0|[1-9]\d*)$/;function c(v,m){var h=typeof v;return m=m==null?I:m,!!m&&(h=="number"||h!="symbol"&&a.test(v))&&v>-1&&v%1==0&&v<m}p.exports=c},16612:(p,I,a)=>{var c=a(77813),v=a(98612),m=a(65776),h=a(13218);function b(C,S,L){if(!h(L))return!1;var N=typeof S;return(N=="number"?v(L)&&m(S,L.length):N=="string"&&S in L)?c(L[S],C):!1}p.exports=b},15403:(p,I,a)=>{var c=a(1469),v=a(33448),m=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,h=/^\w*$/;function b(C,S){if(c(C))return!1;var L=typeof C;return L=="number"||L=="symbol"||L=="boolean"||C==null||v(C)?!0:h.test(C)||!m.test(C)||S!=null&&C in Object(S)}p.exports=b},37019:p=>{function I(a){var c=typeof a;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?a!=="__proto__":a===null}p.exports=I},15346:(p,I,a)=>{var c=a(14429),v=function(){var h=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||"");return h?"Symbol(src)_1."+h:""}();function m(h){return!!v&&v in h}p.exports=m},25726:p=>{var I=Object.prototype;function a(c){var v=c&&c.constructor,m=typeof v=="function"&&v.prototype||I;return c===m}p.exports=a},89162:(p,I,a)=>{var c=a(13218);function v(m){return m===m&&!c(m)}p.exports=v},27040:p=>{function I(){this.__data__=[],this.size=0}p.exports=I},14125:(p,I,a)=>{var c=a(18470),v=Array.prototype,m=v.splice;function h(b){var C=this.__data__,S=c(C,b);if(S<0)return!1;var L=C.length-1;return S==L?C.pop():m.call(C,S,1),--this.size,!0}p.exports=h},82117:(p,I,a)=>{var c=a(18470);function v(m){var h=this.__data__,b=c(h,m);return b<0?void 0:h[b][1]}p.exports=v},67518:(p,I,a)=>{var c=a(18470);function v(m){return c(this.__data__,m)>-1}p.exports=v},13399:(p,I,a)=>{var c=a(18470);function v(m,h){var b=this.__data__,C=c(b,m);return C<0?(++this.size,b.push([m,h])):b[C][1]=h,this}p.exports=v},24785:(p,I,a)=>{var c=a(1989),v=a(38407),m=a(57071);function h(){this.size=0,this.__data__={hash:new c,map:new(m||v),string:new c}}p.exports=h},11285:(p,I,a)=>{var c=a(45050);function v(m){var h=c(this,m).delete(m);return this.size-=h?1:0,h}p.exports=v},96e3:(p,I,a)=>{var c=a(45050);function v(m){return c(this,m).get(m)}p.exports=v},49916:(p,I,a)=>{var c=a(45050);function v(m){return c(this,m).has(m)}p.exports=v},95265:(p,I,a)=>{var c=a(45050);function v(m,h){var b=c(this,m),C=b.size;return b.set(m,h),this.size+=b.size==C?0:1,this}p.exports=v},68776:p=>{function I(a){var c=-1,v=Array(a.size);return a.forEach(function(m,h){v[++c]=[h,m]}),v}p.exports=I},42634:p=>{function I(a,c){return function(v){return v==null?!1:v[a]===c&&(c!==void 0||a in Object(v))}}p.exports=I},24523:(p,I,a)=>{var c=a(88306),v=500;function m(h){var b=c(h,function(S){return C.size===v&&C.clear(),S}),C=b.cache;return b}p.exports=m},94536:(p,I,a)=>{var c=a(10852),v=c(Object,"create");p.exports=v},86916:(p,I,a)=>{var c=a(5569),v=c(Object.keys,Object);p.exports=v},33498:p=>{function I(a){var c=[];if(a!=null)for(var v in Object(a))c.push(v);return c}p.exports=I},31167:(p,I,a)=>{p=a.nmd(p);var c=a(31957),v=I&&!I.nodeType&&I,m=v&&!0&&p&&!p.nodeType&&p,h=m&&m.exports===v,b=h&&c.process,C=function(){try{var S=m&&m.require&&m.require("util").types;return S||b&&b.binding&&b.binding("util")}catch(L){}}();p.exports=C},2333:p=>{var I=Object.prototype,a=I.toString;function c(v){return a.call(v)}p.exports=c},5569:p=>{function I(a,c){return function(v){return a(c(v))}}p.exports=I},45357:(p,I,a)=>{var c=a(96874),v=Math.max;function m(h,b,C){return b=v(b===void 0?h.length-1:b,0),function(){for(var S=arguments,L=-1,N=v(S.length-b,0),j=Array(N);++L<N;)j[L]=S[b+L];L=-1;for(var U=Array(b+1);++L<b;)U[L]=S[L];return U[b]=C(j),c(h,this,U)}}p.exports=m},55639:(p,I,a)=>{var c=a(31957),v=typeof self=="object"&&self&&self.Object===Object&&self,m=c||v||Function("return this")();p.exports=m},90619:p=>{var I="__lodash_hash_undefined__";function a(c){return this.__data__.set(c,I),this}p.exports=a},72385:p=>{function I(a){return this.__data__.has(a)}p.exports=I},21814:p=>{function I(a){var c=-1,v=Array(a.size);return a.forEach(function(m){v[++c]=m}),v}p.exports=I},30061:(p,I,a)=>{var c=a(56560),v=a(21275),m=v(c);p.exports=m},21275:p=>{var I=800,a=16,c=Date.now;function v(m){var h=0,b=0;return function(){var C=c(),S=a-(C-b);if(b=C,S>0){if(++h>=I)return arguments[0]}else h=0;return m.apply(void 0,arguments)}}p.exports=v},37465:(p,I,a)=>{var c=a(38407);function v(){this.__data__=new c,this.size=0}p.exports=v},63779:p=>{function I(a){var c=this.__data__,v=c.delete(a);return this.size=c.size,v}p.exports=I},67599:p=>{function I(a){return this.__data__.get(a)}p.exports=I},44758:p=>{function I(a){return this.__data__.has(a)}p.exports=I},34309:(p,I,a)=>{var c=a(38407),v=a(57071),m=a(83369),h=200;function b(C,S){var L=this.__data__;if(L instanceof c){var N=L.__data__;if(!v||N.length<h-1)return N.push([C,S]),this.size=++L.size,this;L=this.__data__=new m(N)}return L.set(C,S),this.size=L.size,this}p.exports=b},55514:(p,I,a)=>{var c=a(24523),v=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,m=/\\(\\)?/g,h=c(function(b){var C=[];return b.charCodeAt(0)===46&&C.push(""),b.replace(v,function(S,L,N,j){C.push(N?j.replace(m,"$1"):L||S)}),C});p.exports=h},40327:(p,I,a)=>{var c=a(33448),v=1/0;function m(h){if(typeof h=="string"||c(h))return h;var b=h+"";return b=="0"&&1/h==-v?"-0":b}p.exports=m},80346:p=>{var I=Function.prototype,a=I.toString;function c(v){if(v!=null){try{return a.call(v)}catch(m){}try{return v+""}catch(m){}}return""}p.exports=c},67990:p=>{var I=/\s/;function a(c){for(var v=c.length;v--&&I.test(c.charAt(v)););return v}p.exports=a},28583:(p,I,a)=>{var c=a(34865),v=a(98363),m=a(21463),h=a(98612),b=a(25726),C=a(3674),S=Object.prototype,L=S.hasOwnProperty,N=m(function(j,U){if(b(U)||h(U)){v(U,C(U),j);return}for(var Q in U)L.call(U,Q)&&c(j,Q,U[Q])});p.exports=N},50361:(p,I,a)=>{var c=a(85990),v=1,m=4;function h(b){return c(b,v|m)}p.exports=h},75703:p=>{function I(a){return function(){return a}}p.exports=I},77813:p=>{function I(a,c){return a===c||a!==a&&c!==c}p.exports=I},13311:(p,I,a)=>{var c=a(67740),v=a(30998),m=c(v);p.exports=m},30998:(p,I,a)=>{var c=a(41848),v=a(67206),m=a(40554),h=Math.max;function b(C,S,L){var N=C==null?0:C.length;if(!N)return-1;var j=L==null?0:m(L);return j<0&&(j=h(N+j,0)),c(C,v(S,3),j)}p.exports=b},85564:(p,I,a)=>{var c=a(35764);function v(m){var h=m==null?0:m.length;return h?c(m,1):[]}p.exports=v},27361:(p,I,a)=>{var c=a(97786);function v(m,h,b){var C=m==null?void 0:c(m,h);return C===void 0?b:C}p.exports=v},79095:(p,I,a)=>{var c=a(13),v=a(222);function m(h,b){return h!=null&&v(h,b,c)}p.exports=m},6557:p=>{function I(a){return a}p.exports=I},35694:(p,I,a)=>{var c=a(9454),v=a(37005),m=Object.prototype,h=m.hasOwnProperty,b=m.propertyIsEnumerable,C=c(function(){return arguments}())?c:function(S){return v(S)&&h.call(S,"callee")&&!b.call(S,"callee")};p.exports=C},1469:p=>{var I=Array.isArray;p.exports=I},98612:(p,I,a)=>{var c=a(23560),v=a(41780);function m(h){return h!=null&&v(h.length)&&!c(h)}p.exports=m},44144:(p,I,a)=>{p=a.nmd(p);var c=a(55639),v=a(95062),m=I&&!I.nodeType&&I,h=m&&!0&&p&&!p.nodeType&&p,b=h&&h.exports===m,C=b?c.Buffer:void 0,S=C?C.isBuffer:void 0,L=S||v;p.exports=L},41609:(p,I,a)=>{var c=a(280),v=a(98882),m=a(35694),h=a(1469),b=a(98612),C=a(44144),S=a(25726),L=a(36719),N="[object Map]",j="[object Set]",U=Object.prototype,Q=U.hasOwnProperty;function K(M){if(M==null)return!0;if(b(M)&&(h(M)||typeof M=="string"||typeof M.splice=="function"||C(M)||L(M)||m(M)))return!M.length;var Y=v(M);if(Y==N||Y==j)return!M.size;if(S(M))return!c(M).length;for(var R in M)if(Q.call(M,R))return!1;return!0}p.exports=K},23560:(p,I,a)=>{var c=a(44239),v=a(13218),m="[object AsyncFunction]",h="[object Function]",b="[object GeneratorFunction]",C="[object Proxy]";function S(L){if(!v(L))return!1;var N=c(L);return N==h||N==b||N==m||N==C}p.exports=S},41780:p=>{var I=9007199254740991;function a(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=I}p.exports=a},56688:(p,I,a)=>{var c=a(25588),v=a(7518),m=a(31167),h=m&&m.isMap,b=h?v(h):c;p.exports=b},13218:p=>{function I(a){var c=typeof a;return a!=null&&(c=="object"||c=="function")}p.exports=I},37005:p=>{function I(a){return a!=null&&typeof a=="object"}p.exports=I},68630:(p,I,a)=>{var c=a(44239),v=a(85924),m=a(37005),h="[object Object]",b=Function.prototype,C=Object.prototype,S=b.toString,L=C.hasOwnProperty,N=S.call(Object);function j(U){if(!m(U)||c(U)!=h)return!1;var Q=v(U);if(Q===null)return!0;var K=L.call(Q,"constructor")&&Q.constructor;return typeof K=="function"&&K instanceof K&&S.call(K)==N}p.exports=j},72928:(p,I,a)=>{var c=a(29221),v=a(7518),m=a(31167),h=m&&m.isSet,b=h?v(h):c;p.exports=b},47037:(p,I,a)=>{var c=a(44239),v=a(1469),m=a(37005),h="[object String]";function b(C){return typeof C=="string"||!v(C)&&m(C)&&c(C)==h}p.exports=b},33448:(p,I,a)=>{var c=a(44239),v=a(37005),m="[object Symbol]";function h(b){return typeof b=="symbol"||v(b)&&c(b)==m}p.exports=h},36719:(p,I,a)=>{var c=a(38749),v=a(7518),m=a(31167),h=m&&m.isTypedArray,b=h?v(h):c;p.exports=b},3674:(p,I,a)=>{var c=a(14636),v=a(280),m=a(98612);function h(b){return m(b)?c(b):v(b)}p.exports=h},81704:(p,I,a)=>{var c=a(14636),v=a(10313),m=a(98612);function h(b){return m(b)?c(b,!0):v(b)}p.exports=h},88306:(p,I,a)=>{var c=a(83369),v="Expected a function";function m(h,b){if(typeof h!="function"||b!=null&&typeof b!="function")throw new TypeError(v);var C=function(){var S=arguments,L=b?b.apply(this,S):S[0],N=C.cache;if(N.has(L))return N.get(L);var j=h.apply(this,S);return C.cache=N.set(L,j)||N,j};return C.cache=new(m.Cache||c),C}m.Cache=c,p.exports=m},50308:p=>{function I(){}p.exports=I},78718:(p,I,a)=>{var c=a(25970),v=a(99021),m=v(function(h,b){return h==null?{}:c(h,b)});p.exports=m},39601:(p,I,a)=>{var c=a(40371),v=a(79152),m=a(15403),h=a(40327);function b(C){return m(C)?c(h(C)):v(C)}p.exports=b},10240:(p,I,a)=>{var c=a(29750),v=a(80531),m=a(40554),h=a(79833);function b(C,S,L){return C=h(C),L=L==null?0:c(m(L),0,C.length),S=v(S),C.slice(L,L+S.length)==S}p.exports=b},70479:p=>{function I(){return[]}p.exports=I},95062:p=>{function I(){return!1}p.exports=I},18601:(p,I,a)=>{var c=a(14841),v=1/0,m=17976931348623157e292;function h(b){if(!b)return b===0?b:0;if(b=c(b),b===v||b===-v){var C=b<0?-1:1;return C*m}return b===b?b:0}p.exports=h},40554:(p,I,a)=>{var c=a(18601);function v(m){var h=c(m),b=h%1;return h===h?b?h-b:h:0}p.exports=v},14841:(p,I,a)=>{var c=a(27561),v=a(13218),m=a(33448),h=0/0,b=/^[-+]0x[0-9a-f]+$/i,C=/^0b[01]+$/i,S=/^0o[0-7]+$/i,L=parseInt;function N(j){if(typeof j=="number")return j;if(m(j))return h;if(v(j)){var U=typeof j.valueOf=="function"?j.valueOf():j;j=v(U)?U+"":U}if(typeof j!="string")return j===0?j:+j;j=c(j);var Q=C.test(j);return Q||S.test(j)?L(j.slice(2),Q?2:8):b.test(j)?h:+j}p.exports=N},79833:(p,I,a)=>{var c=a(80531);function v(m){return m==null?"":c(m)}p.exports=v},70631:(p,I,a)=>{var c=typeof Map=="function"&&Map.prototype,v=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,m=c&&v&&typeof v.get=="function"?v.get:null,h=c&&Map.prototype.forEach,b=typeof Set=="function"&&Set.prototype,C=Object.getOwnPropertyDescriptor&&b?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,S=b&&C&&typeof C.get=="function"?C.get:null,L=b&&Set.prototype.forEach,N=typeof WeakMap=="function"&&WeakMap.prototype,j=N?WeakMap.prototype.has:null,U=typeof WeakSet=="function"&&WeakSet.prototype,Q=U?WeakSet.prototype.has:null,K=typeof WeakRef=="function"&&WeakRef.prototype,M=K?WeakRef.prototype.deref:null,Y=Boolean.prototype.valueOf,R=Object.prototype.toString,E=Function.prototype.toString,V=String.prototype.match,G=String.prototype.slice,Z=String.prototype.replace,X=String.prototype.toUpperCase,z=String.prototype.toLowerCase,ue=RegExp.prototype.test,q=Array.prototype.concat,ne=Array.prototype.join,ge=Array.prototype.slice,me=Math.floor,pe=typeof BigInt=="function"?BigInt.prototype.valueOf:null,se=Object.getOwnPropertySymbols,ie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Oe=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Pe=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Oe?"object":"symbol")?Symbol.toStringTag:null,Te=Object.prototype.propertyIsEnumerable,Ce=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(te){return te.__proto__}:null);function Xe(te,ce){if(te===1/0||te===-1/0||te!==te||te&&te>-1e3&&te<1e3||ue.call(/e/,ce))return ce;var be=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof te=="number"){var Le=te<0?-me(-te):me(te);if(Le!==te){var Re=String(Le),We=G.call(ce,Re.length+1);return Z.call(Re,be,"$&_")+"."+Z.call(Z.call(We,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Z.call(ce,be,"$&_")}var He=a(24654),Je=He.custom,ut=St(Je)?Je:null;p.exports=function te(ce,be,Le,Re){var We=be||{};if(Nt(We,"quoteStyle")&&We.quoteStyle!=="single"&&We.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Nt(We,"maxStringLength")&&(typeof We.maxStringLength=="number"?We.maxStringLength<0&&We.maxStringLength!==1/0:We.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var ot=Nt(We,"customInspect")?We.customInspect:!0;if(typeof ot!="boolean"&&ot!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Nt(We,"indent")&&We.indent!==null&&We.indent!==" "&&!(parseInt(We.indent,10)===We.indent&&We.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Nt(We,"numericSeparator")&&typeof We.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var vt=We.numericSeparator;if(typeof ce=="undefined")return"undefined";if(ce===null)return"null";if(typeof ce=="boolean")return ce?"true":"false";if(typeof ce=="string")return k(ce,We);if(typeof ce=="number"){if(ce===0)return 1/0/ce>0?"0":"-0";var Ft=String(ce);return vt?Xe(ce,Ft):Ft}if(typeof ce=="bigint"){var At=String(ce)+"n";return vt?Xe(ce,At):At}var bn=typeof We.depth=="undefined"?5:We.depth;if(typeof Le=="undefined"&&(Le=0),Le>=bn&&bn>0&&typeof ce=="object")return Qe(ce)?"[Array]":"[Object]";var zr=D(We,Le);if(typeof Re=="undefined")Re=[];else if(ht(Re,ce)>=0)return"[Circular]";function Fr(Gr,qr,ti){if(qr&&(Re=ge.call(Re),Re.push(qr)),ti){var hr={depth:We.depth};return Nt(We,"quoteStyle")&&(hr.quoteStyle=We.quoteStyle),te(Gr,hr,Le+1,Re)}return te(Gr,We,Le+1,Re)}if(typeof ce=="function"&&!ct(ce)){var Ei=It(ce),Qr=fe(ce,Fr);return"[Function"+(Ei?": "+Ei:" (anonymous)")+"]"+(Qr.length>0?" { "+ne.call(Qr,", ")+" }":"")}if(St(ce)){var $i=Oe?Z.call(String(ce),/^(Symbol\(.*\))_[^)]*$/,"$1"):ie.call(ce);return typeof ce=="object"&&!Oe?$($i):$i}if(Bt(ce)){for(var zn="<"+z.call(String(ce.nodeName)),Sn=ce.attributes||[],Rn=0;Rn<Sn.length;Rn++)zn+=" "+Sn[Rn].name+"="+ft(yt(Sn[Rn].value),"double",We);return zn+=">",ce.childNodes&&ce.childNodes.length&&(zn+="..."),zn+="</"+z.call(String(ce.nodeName))+">",zn}if(Qe(ce)){if(ce.length===0)return"[]";var Zr=fe(ce,Fr);return zr&&!oe(Zr)?"["+_(Zr,zr)+"]":"[ "+ne.call(Zr,", ")+" ]"}if(dt(ce)){var Oi=fe(ce,Fr);return!("cause"in Error.prototype)&&"cause"in ce&&!Te.call(ce,"cause")?"{ ["+String(ce)+"] "+ne.call(q.call("[cause]: "+Fr(ce.cause),Oi),", ")+" }":Oi.length===0?"["+String(ce)+"]":"{ ["+String(ce)+"] "+ne.call(Oi,", ")+" }"}if(typeof ce=="object"&&ot){if(ut&&typeof ce[ut]=="function"&&He)return He(ce,{depth:bn-Le});if(ot!=="symbol"&&typeof ce.inspect=="function")return ce.inspect()}if(zt(ce)){var Ti=[];return h.call(ce,function(Gr,qr){Ti.push(Fr(qr,ce,!0)+" => "+Fr(Gr,ce))}),T("Map",m.call(ce),Ti,zr)}if(Mt(ce)){var ln=[];return L.call(ce,function(Gr){ln.push(Fr(Gr,ce))}),T("Set",S.call(ce),ln,zr)}if(Kt(ce))return O("WeakMap");if(Wt(ce))return O("WeakSet");if(sr(ce))return O("WeakRef");if(Ot(ce))return $(Fr(Number(ce)));if(Ut(ce))return $(Fr(pe.call(ce)));if(Et(ce))return $(Y.call(ce));if(st(ce))return $(Fr(String(ce)));if(!nt(ce)&&!ct(ce)){var An=fe(ce,Fr),Gn=Ce?Ce(ce)===Object.prototype:ce instanceof Object||ce.constructor===Object,$n=ce instanceof Object?"":"null prototype",wn=!Gn&&Pe&&Object(ce)===ce&&Pe in ce?G.call(mt(ce),8,-1):$n?"Object":"",ei=Gn||typeof ce.constructor!="function"?"":ce.constructor.name?ce.constructor.name+" ":"",Pi=ei+(wn||$n?"["+ne.call(q.call([],wn||[],$n||[]),": ")+"] ":"");return An.length===0?Pi+"{}":zr?Pi+"{"+_(An,zr)+"}":Pi+"{ "+ne.call(An,", ")+" }"}return String(ce)};function ft(te,ce,be){var Le=(be.quoteStyle||ce)==="double"?'"':"'";return Le+te+Le}function yt(te){return Z.call(String(te),/"/g,"&quot;")}function Qe(te){return mt(te)==="[object Array]"&&(!Pe||!(typeof te=="object"&&Pe in te))}function nt(te){return mt(te)==="[object Date]"&&(!Pe||!(typeof te=="object"&&Pe in te))}function ct(te){return mt(te)==="[object RegExp]"&&(!Pe||!(typeof te=="object"&&Pe in te))}function dt(te){return mt(te)==="[object Error]"&&(!Pe||!(typeof te=="object"&&Pe in te))}function st(te){return mt(te)==="[object String]"&&(!Pe||!(typeof te=="object"&&Pe in te))}function Ot(te){return mt(te)==="[object Number]"&&(!Pe||!(typeof te=="object"&&Pe in te))}function Et(te){return mt(te)==="[object Boolean]"&&(!Pe||!(typeof te=="object"&&Pe in te))}function St(te){if(Oe)return te&&typeof te=="object"&&te instanceof Symbol;if(typeof te=="symbol")return!0;if(!te||typeof te!="object"||!ie)return!1;try{return ie.call(te),!0}catch(ce){}return!1}function Ut(te){if(!te||typeof te!="object"||!pe)return!1;try{return pe.call(te),!0}catch(ce){}return!1}var Dt=Object.prototype.hasOwnProperty||function(te){return te in this};function Nt(te,ce){return Dt.call(te,ce)}function mt(te){return R.call(te)}function It(te){if(te.name)return te.name;var ce=V.call(E.call(te),/^function\s*([\w$]+)/);return ce?ce[1]:null}function ht(te,ce){if(te.indexOf)return te.indexOf(ce);for(var be=0,Le=te.length;be<Le;be++)if(te[be]===ce)return be;return-1}function zt(te){if(!m||!te||typeof te!="object")return!1;try{m.call(te);try{S.call(te)}catch(ce){return!0}return te instanceof Map}catch(ce){}return!1}function Kt(te){if(!j||!te||typeof te!="object")return!1;try{j.call(te,j);try{Q.call(te,Q)}catch(ce){return!0}return te instanceof WeakMap}catch(ce){}return!1}function sr(te){if(!M||!te||typeof te!="object")return!1;try{return M.call(te),!0}catch(ce){}return!1}function Mt(te){if(!S||!te||typeof te!="object")return!1;try{S.call(te);try{m.call(te)}catch(ce){return!0}return te instanceof Set}catch(ce){}return!1}function Wt(te){if(!Q||!te||typeof te!="object")return!1;try{Q.call(te,Q);try{j.call(te,j)}catch(ce){return!0}return te instanceof WeakSet}catch(ce){}return!1}function Bt(te){return!te||typeof te!="object"?!1:typeof HTMLElement!="undefined"&&te instanceof HTMLElement?!0:typeof te.nodeName=="string"&&typeof te.getAttribute=="function"}function k(te,ce){if(te.length>ce.maxStringLength){var be=te.length-ce.maxStringLength,Le="... "+be+" more character"+(be>1?"s":"");return k(G.call(te,0,ce.maxStringLength),ce)+Le}var Re=Z.call(Z.call(te,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Be);return ft(Re,"single",ce)}function Be(te){var ce=te.charCodeAt(0),be={8:"b",9:"t",10:"n",12:"f",13:"r"}[ce];return be?"\\"+be:"\\x"+(ce<16?"0":"")+X.call(ce.toString(16))}function $(te){return"Object("+te+")"}function O(te){return te+" { ? }"}function T(te,ce,be,Le){var Re=Le?_(be,Le):ne.call(be,", ");return te+" ("+ce+") {"+Re+"}"}function oe(te){for(var ce=0;ce<te.length;ce++)if(ht(te[ce],`
525
525
  `)>=0)return!1;return!0}function D(te,ce){var be;if(te.indent===" ")be=" ";else if(typeof te.indent=="number"&&te.indent>0)be=ne.call(Array(te.indent+1)," ");else return null;return{base:be,prev:ne.call(Array(ce+1),be)}}function _(te,ce){if(te.length===0)return"";var be=`
526
526
  `+ce.prev+ce.base;return be+ne.call(te,","+be)+`
527
- `+ce.prev}function fe(te,ce){var be=Qe(te),Le=[];if(be){Le.length=te.length;for(var Re=0;Re<te.length;Re++)Le[Re]=Nt(te,Re)?ce(te[Re],te):""}var We=typeof le=="function"?le(te):[],ot;if(Oe){ot={};for(var vt=0;vt<We.length;vt++)ot["$"+We[vt]]=We[vt]}for(var Ft in te)!Nt(te,Ft)||be&&String(Number(Ft))===Ft&&Ft<te.length||Oe&&ot["$"+Ft]instanceof Symbol||(ue.call(/[^\w$]/,Ft)?Le.push(ce(Ft,te)+": "+ce(te[Ft],te)):Le.push(Ft+": "+ce(te[Ft],te)));if(typeof le=="function")for(var At=0;At<We.length;At++)Te.call(te,We[At])&&Le.push("["+ce(We[At])+"]: "+ce(te[We[At]],te));return Le}},9779:(p,I,a)=>{"use strict";var c=I,v=a(48764).Buffer;c.unescapeBuffer=function(L,N){for(var j=new v(L.length),U=0,Q,K,M,Y=0,R=0;Y<=L.length;Y++){var E=Y<L.length?L.charCodeAt(Y):NaN;switch(U){case 0:switch(E){case 37:Q=0,K=0,U=1;break;case 43:N&&(E=32);default:j[R++]=E;break}break;case 1:if(M=E,E>=48&&E<=57)Q=E-48;else if(E>=65&&E<=70)Q=E-65+10;else if(E>=97&&E<=102)Q=E-97+10;else{j[R++]=37,j[R++]=E,U=0;break}U=2;break;case 2:if(U=0,E>=48&&E<=57)K=E-48;else if(E>=65&&E<=70)K=E-65+10;else if(E>=97&&E<=102)K=E-97+10;else{j[R++]=37,j[R++]=M,j[R++]=E;break}j[R++]=16*Q+K;break}}return j.slice(0,R-1)};function m(L,N){try{return decodeURIComponent(L)}catch(j){return c.unescapeBuffer(L,N).toString()}}c.unescape=m;for(var h=new Array(256),b=0;b<256;++b)h[b]="%"+((b<16?"0":"")+b.toString(16)).toUpperCase();c.escape=function(L){typeof L!="string"&&(L+="");for(var N="",j=0,U=0;U<L.length;++U){var Q=L.charCodeAt(U);if(!(Q===33||Q===45||Q===46||Q===95||Q===126||Q>=39&&Q<=42||Q>=48&&Q<=57||Q>=65&&Q<=90||Q>=97&&Q<=122)){if(U-j>0&&(N+=L.slice(j,U)),Q<128){j=U+1,N+=h[Q];continue}if(Q<2048){j=U+1,N+=h[192|Q>>6]+h[128|Q&63];continue}if(Q<55296||Q>=57344){j=U+1,N+=h[224|Q>>12]+h[128|Q>>6&63]+h[128|Q&63];continue}++U;var K;if(U<L.length)K=L.charCodeAt(U)&1023;else throw new URIError("URI malformed");j=U+1,Q=65536+((Q&1023)<<10|K),N+=h[240|Q>>18]+h[128|Q>>12&63]+h[128|Q>>6&63]+h[128|Q&63]}}return j===0?L:j<L.length?N+L.slice(j):N};var C=function(L){return typeof L=="string"?L:typeof L=="number"&&isFinite(L)?""+L:typeof L=="boolean"?L?"true":"false":""};c.stringify=c.encode=function(L,N,j,U){N=N||"&",j=j||"=";var Q=c.escape;if(U&&typeof U.encodeURIComponent=="function"&&(Q=U.encodeURIComponent),L!==null&&typeof L=="object"){for(var K=Object.keys(L),M=K.length,Y=M-1,R="",E=0;E<M;++E){var V=K[E],G=L[V],Z=Q(C(V))+j;if(Array.isArray(G)){for(var X=G.length,z=X-1,ue=0;ue<X;++ue)R+=Z+Q(C(G[ue])),ue<z&&(R+=N);X&&E<Y&&(R+=N)}else R+=Z+Q(C(G)),E<Y&&(R+=N)}return R}return""},c.parse=c.decode=function(L,N,j,U){N=N||"&",j=j||"=";var Q={};if(typeof L!="string"||L.length===0)return Q;typeof N!="string"&&(N+="");var K=j.length,M=N.length,Y=1e3;U&&typeof U.maxKeys=="number"&&(Y=U.maxKeys);var R=1/0;Y>0&&(R=Y);var E=c.unescape;U&&typeof U.decodeURIComponent=="function"&&(E=U.decodeURIComponent);for(var V=E!==m,G=[],Z=0,X=0,z=0,ue="",q="",ne=V,ge=V,me=0,he=0;he<L.length;++he){var le=L.charCodeAt(he);if(le===N.charCodeAt(X)){if(++X===M){var ie=he-X+1;if(z<K?Z<ie&&(ue+=L.slice(Z,ie)):Z<ie&&(q+=L.slice(Z,ie)),ne&&(ue=S(ue,E)),ge&&(q=S(q,E)),G.indexOf(ue)===-1)Q[ue]=q,G[G.length]=ue;else{var Oe=Q[ue];Oe instanceof Array?Oe[Oe.length]=q:Q[ue]=[Oe,q]}if(--R==0)break;ne=ge=V,me=0,ue=q="",Z=he+1,X=z=0}continue}else X=0,ge||(le===37?me=1:me>0&&(le>=48&&le<=57||le>=65&&le<=70||le>=97&&le<=102)?++me==3&&(ge=!0):me=0);if(z<K)if(le===j.charCodeAt(z)){if(++z===K){var ie=he-z+1;Z<ie&&(ue+=L.slice(Z,ie)),me=0,Z=he+1}continue}else z=0,ne||(le===37?me=1:me>0&&(le>=48&&le<=57||le>=65&&le<=70||le>=97&&le<=102)?++me==3&&(ne=!0):me=0);le===43&&(z<K?(he-Z>0&&(ue+=L.slice(Z,he)),ue+="%20",ne=!0):(he-Z>0&&(q+=L.slice(Z,he)),q+="%20",ge=!0),Z=he+1)}if(R>0&&(Z<L.length||z>0))if(Z<L.length&&(z<K?ue+=L.slice(Z):X<M&&(q+=L.slice(Z))),ne&&(ue=S(ue,E)),ge&&(q=S(q,E)),G.indexOf(ue)===-1)Q[ue]=q,G[G.length]=ue;else{var Oe=Q[ue];Oe instanceof Array?Oe[Oe.length]=q:Q[ue]=[Oe,q]}return Q};function S(L,N){try{return N(L)}catch(j){return c.unescape(L,!0)}}},35310:(p,I,a)=>{"use strict";var c;function v(){return v=Object.assign||function(Q){for(var K=1;K<arguments.length;K++){var M=arguments[K];for(var Y in M)Object.prototype.hasOwnProperty.call(M,Y)&&(Q[Y]=M[Y])}return Q},v.apply(this,arguments)}function m(Q){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(M){return typeof M}:m=function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},m(Q)}var h=function(){var Q=function(M,Y){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,E){R.__proto__=E}||function(R,E){for(var V in E)E.hasOwnProperty(V)&&(R[V]=E[V])},Q(M,Y)};return function(K,M){Q(K,M);function Y(){this.constructor=K}K.prototype=M===null?Object.create(M):(Y.prototype=M.prototype,new Y)}}();c={value:!0},c=I.fk=void 0;var b=a(67294),C=typeof navigator=="undefined"||a.g.PREVENT_CODEMIRROR_RENDER===!0,S;C||(S=a(4631));var L=function(){function Q(){}return Q.equals=function(K,M){var Y=this,R=Object.keys,E=m(K),V=m(M);return K&&M&&E==="object"&&E===V?R(K).length===R(M).length&&R(K).every(function(G){return Y.equals(K[G],M[G])}):K===M},Q}(),N=function(){function Q(K,M){this.editor=K,this.props=M}return Q.prototype.delegateCursor=function(K,M,Y){var R=this.editor.getDoc();Y&&this.editor.focus(),M?R.setCursor(K):R.setCursor(K,null,{scroll:!1})},Q.prototype.delegateScroll=function(K){this.editor.scrollTo(K.x,K.y)},Q.prototype.delegateSelection=function(K,M){var Y=this.editor.getDoc();Y.setSelections(K),M&&this.editor.focus()},Q.prototype.apply=function(K){K&&K.selection&&K.selection.ranges&&this.delegateSelection(K.selection.ranges,K.selection.focus||!1),K&&K.cursor&&this.delegateCursor(K.cursor,K.autoScroll||!1,this.editor.getOption("autofocus")||!1),K&&K.scroll&&this.delegateScroll(K.scroll)},Q.prototype.applyNext=function(K,M,Y){K&&K.selection&&K.selection.ranges&&M&&M.selection&&M.selection.ranges&&!L.equals(K.selection.ranges,M.selection.ranges)&&this.delegateSelection(M.selection.ranges,M.selection.focus||!1),K&&K.cursor&&M&&M.cursor&&!L.equals(K.cursor,M.cursor)&&this.delegateCursor(Y.cursor||M.cursor,M.autoScroll||!1,M.autoCursor||!1),K&&K.scroll&&M&&M.scroll&&!L.equals(K.scroll,M.scroll)&&this.delegateScroll(M.scroll)},Q.prototype.applyUserDefined=function(K,M){M&&M.cursor&&this.delegateCursor(M.cursor,K.autoScroll||!1,this.editor.getOption("autofocus")||!1)},Q.prototype.wire=function(K){var M=this;Object.keys(K||{}).filter(function(Y){return/^on/.test(Y)}).forEach(function(Y){switch(Y){case"onBlur":M.editor.on("blur",function(R,E){M.props.onBlur(M.editor,E)});break;case"onContextMenu":{M.editor.on("contextmenu",function(R,E){M.props.onContextMenu(M.editor,E)});break}case"onCopy":{M.editor.on("copy",function(R,E){M.props.onCopy(M.editor,E)});break}case"onCursor":M.editor.on("cursorActivity",function(R){M.props.onCursor(M.editor,M.editor.getDoc().getCursor())});break;case"onCursorActivity":M.editor.on("cursorActivity",function(R){M.props.onCursorActivity(M.editor)});break;case"onCut":{M.editor.on("cut",function(R,E){M.props.onCut(M.editor,E)});break}case"onDblClick":{M.editor.on("dblclick",function(R,E){M.props.onDblClick(M.editor,E)});break}case"onDragEnter":M.editor.on("dragenter",function(R,E){M.props.onDragEnter(M.editor,E)});break;case"onDragLeave":{M.editor.on("dragleave",function(R,E){M.props.onDragLeave(M.editor,E)});break}case"onDragOver":M.editor.on("dragover",function(R,E){M.props.onDragOver(M.editor,E)});break;case"onDragStart":{M.editor.on("dragstart",function(R,E){M.props.onDragStart(M.editor,E)});break}case"onDrop":M.editor.on("drop",function(R,E){M.props.onDrop(M.editor,E)});break;case"onFocus":M.editor.on("focus",function(R,E){M.props.onFocus(M.editor,E)});break;case"onGutterClick":M.editor.on("gutterClick",function(R,E,V,G){M.props.onGutterClick(M.editor,E,V,G)});break;case"onInputRead":M.editor.on("inputRead",function(R,E){M.props.onInputRead(M.editor,E)});break;case"onKeyDown":M.editor.on("keydown",function(R,E){M.props.onKeyDown(M.editor,E)});break;case"onKeyHandled":M.editor.on("keyHandled",function(R,E,V){M.props.onKeyHandled(M.editor,E,V)});break;case"onKeyPress":M.editor.on("keypress",function(R,E){M.props.onKeyPress(M.editor,E)});break;case"onKeyUp":M.editor.on("keyup",function(R,E){M.props.onKeyUp(M.editor,E)});break;case"onMouseDown":{M.editor.on("mousedown",function(R,E){M.props.onMouseDown(M.editor,E)});break}case"onPaste":{M.editor.on("paste",function(R,E){M.props.onPaste(M.editor,E)});break}case"onRenderLine":{M.editor.on("renderLine",function(R,E,V){M.props.onRenderLine(M.editor,E,V)});break}case"onScroll":M.editor.on("scroll",function(R){M.props.onScroll(M.editor,M.editor.getScrollInfo())});break;case"onSelection":M.editor.on("beforeSelectionChange",function(R,E){M.props.onSelection(M.editor,E)});break;case"onTouchStart":{M.editor.on("touchstart",function(R,E){M.props.onTouchStart(M.editor,E)});break}case"onUpdate":M.editor.on("update",function(R){M.props.onUpdate(M.editor)});break;case"onViewportChange":M.editor.on("viewportChange",function(R,E,V){M.props.onViewportChange(M.editor,E,V)});break}})},Q}(),j=function(Q){h(K,Q);function K(M){var Y=Q.call(this,M)||this;return C||(Y.applied=!1,Y.appliedNext=!1,Y.appliedUserDefined=!1,Y.deferred=null,Y.emulating=!1,Y.hydrated=!1,Y.initCb=function(){Y.props.editorDidConfigure&&Y.props.editorDidConfigure(Y.editor)},Y.mounted=!1),Y}return K.prototype.hydrate=function(M){var Y=this,R=M&&M.options?M.options:{},E=v({},S.defaults,this.editor.options,R),V=Object.keys(E).some(function(G){return Y.editor.getOption(G)!==E[G]});V&&Object.keys(E).forEach(function(G){R.hasOwnProperty(G)&&Y.editor.getOption(G)!==E[G]&&(Y.editor.setOption(G,E[G]),Y.mirror.setOption(G,E[G]))}),this.hydrated||(this.deferred?this.resolveChange(M.value):this.initChange(M.value||"")),this.hydrated=!0},K.prototype.initChange=function(M){this.emulating=!0;var Y=this.editor.getDoc(),R=Y.lastLine(),E=Y.getLine(Y.lastLine()).length;Y.replaceRange(M||"",{line:0,ch:0},{line:R,ch:E}),this.mirror.setValue(M),Y.clearHistory(),this.mirror.clearHistory(),this.emulating=!1},K.prototype.resolveChange=function(M){this.emulating=!0;var Y=this.editor.getDoc();if(this.deferred.origin==="undo"?Y.undo():this.deferred.origin==="redo"?Y.redo():Y.replaceRange(this.deferred.text,this.deferred.from,this.deferred.to,this.deferred.origin),M&&M!==Y.getValue()){var R=Y.getCursor();Y.setValue(M),Y.setCursor(R)}this.emulating=!1,this.deferred=null},K.prototype.mirrorChange=function(M){var Y=this.editor.getDoc();return M.origin==="undo"?(Y.setHistory(this.mirror.getHistory()),this.mirror.undo()):M.origin==="redo"?(Y.setHistory(this.mirror.getHistory()),this.mirror.redo()):this.mirror.replaceRange(M.text,M.from,M.to,M.origin),this.mirror.getValue()},K.prototype.componentDidMount=function(){var M=this;C||(this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&S.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=S(this.ref,this.props.options),this.shared=new N(this.editor,this.props),this.mirror=S(function(){},this.props.options),this.editor.on("electricInput",function(){M.mirror.setHistory(M.editor.getDoc().getHistory())}),this.editor.on("cursorActivity",function(){M.mirror.setCursor(M.editor.getDoc().getCursor())}),this.editor.on("beforeChange",function(Y,R){if(!M.emulating){R.cancel(),M.deferred=R;var E=M.mirrorChange(M.deferred);M.props.onBeforeChange&&M.props.onBeforeChange(M.editor,M.deferred,E)}}),this.editor.on("change",function(Y,R){!M.mounted||M.props.onChange&&M.props.onChange(M.editor,R,M.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))},K.prototype.componentDidUpdate=function(M){if(!C){var Y={cursor:null};this.props.value!==M.value&&(this.hydrated=!1),!this.props.autoCursor&&this.props.autoCursor!==void 0&&(Y.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.appliedNext||(this.shared.applyNext(M,this.props,Y),this.appliedNext=!0),this.shared.applyUserDefined(M,Y),this.appliedUserDefined=!0}},K.prototype.componentWillUnmount=function(){C||this.props.editorWillUnmount&&this.props.editorWillUnmount(S)},K.prototype.shouldComponentUpdate=function(M,Y){return!C},K.prototype.render=function(){var M=this;if(C)return null;var Y=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return b.createElement("div",{className:Y,ref:function(E){return M.ref=E}})},K}(b.Component);I.fk=j;var U=function(Q){h(K,Q);function K(M){var Y=Q.call(this,M)||this;return C||(Y.applied=!1,Y.appliedUserDefined=!1,Y.continueChange=!1,Y.detached=!1,Y.hydrated=!1,Y.initCb=function(){Y.props.editorDidConfigure&&Y.props.editorDidConfigure(Y.editor)},Y.mounted=!1,Y.onBeforeChangeCb=function(){Y.continueChange=!0}),Y}return K.prototype.hydrate=function(M){var Y=this,R=M&&M.options?M.options:{},E=v({},S.defaults,this.editor.options,R),V=Object.keys(E).some(function(z){return Y.editor.getOption(z)!==E[z]});if(V&&Object.keys(E).forEach(function(z){R.hasOwnProperty(z)&&Y.editor.getOption(z)!==E[z]&&Y.editor.setOption(z,E[z])}),!this.hydrated){var G=this.editor.getDoc(),Z=G.lastLine(),X=G.getLine(G.lastLine()).length;G.replaceRange(M.value||"",{line:0,ch:0},{line:Z,ch:X})}this.hydrated=!0},K.prototype.componentDidMount=function(){var M=this;C||(this.detached=this.props.detach===!0,this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&S.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=S(this.ref,this.props.options),this.shared=new N(this.editor,this.props),this.editor.on("beforeChange",function(Y,R){M.props.onBeforeChange&&M.props.onBeforeChange(M.editor,R,M.editor.getValue(),M.onBeforeChangeCb)}),this.editor.on("change",function(Y,R){!M.mounted||!M.props.onChange||(M.props.onBeforeChange?M.continueChange&&M.props.onChange(M.editor,R,M.editor.getValue()):M.props.onChange(M.editor,R,M.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))},K.prototype.componentDidUpdate=function(M){if(this.detached&&this.props.detach===!1&&(this.detached=!1,M.editorDidAttach&&M.editorDidAttach(this.editor)),!this.detached&&this.props.detach===!0&&(this.detached=!0,M.editorDidDetach&&M.editorDidDetach(this.editor)),!(C||this.detached)){var Y={cursor:null};this.props.value!==M.value&&(this.hydrated=!1,this.applied=!1,this.appliedUserDefined=!1),!M.autoCursor&&M.autoCursor!==void 0&&(Y.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.applied||(this.shared.apply(M),this.applied=!0),this.appliedUserDefined||(this.shared.applyUserDefined(M,Y),this.appliedUserDefined=!0)}},K.prototype.componentWillUnmount=function(){C||this.props.editorWillUnmount&&this.props.editorWillUnmount(S)},K.prototype.shouldComponentUpdate=function(M,Y){var R=!0;return C&&(R=!1),this.detached&&M.detach&&(R=!1),R},K.prototype.render=function(){var M=this;if(C)return null;var Y=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return b.createElement("div",{className:Y,ref:function(E){return M.ref=E}})},K}(b.Component);c=U},35666:p=>{var I=function(a){"use strict";var c=Object.prototype,v=c.hasOwnProperty,m,h=typeof Symbol=="function"?Symbol:{},b=h.iterator||"@@iterator",C=h.asyncIterator||"@@asyncIterator",S=h.toStringTag||"@@toStringTag";function L(Pe,Te,Ce){return Object.defineProperty(Pe,Te,{value:Ce,enumerable:!0,configurable:!0,writable:!0}),Pe[Te]}try{L({},"")}catch(Pe){L=function(Te,Ce,Xe){return Te[Ce]=Xe}}function N(Pe,Te,Ce,Xe){var He=Te&&Te.prototype instanceof R?Te:R,Je=Object.create(He.prototype),ut=new le(Xe||[]);return Je._invoke=ne(Pe,Ce,ut),Je}a.wrap=N;function j(Pe,Te,Ce){try{return{type:"normal",arg:Pe.call(Te,Ce)}}catch(Xe){return{type:"throw",arg:Xe}}}var U="suspendedStart",Q="suspendedYield",K="executing",M="completed",Y={};function R(){}function E(){}function V(){}var G={};G[b]=function(){return this};var Z=Object.getPrototypeOf,X=Z&&Z(Z(ie([])));X&&X!==c&&v.call(X,b)&&(G=X);var z=V.prototype=R.prototype=Object.create(G);E.prototype=z.constructor=V,V.constructor=E,E.displayName=L(V,S,"GeneratorFunction");function ue(Pe){["next","throw","return"].forEach(function(Te){L(Pe,Te,function(Ce){return this._invoke(Te,Ce)})})}a.isGeneratorFunction=function(Pe){var Te=typeof Pe=="function"&&Pe.constructor;return Te?Te===E||(Te.displayName||Te.name)==="GeneratorFunction":!1},a.mark=function(Pe){return Object.setPrototypeOf?Object.setPrototypeOf(Pe,V):(Pe.__proto__=V,L(Pe,S,"GeneratorFunction")),Pe.prototype=Object.create(z),Pe},a.awrap=function(Pe){return{__await:Pe}};function q(Pe,Te){function Ce(Je,ut,ft,yt){var Qe=j(Pe[Je],Pe,ut);if(Qe.type==="throw")yt(Qe.arg);else{var nt=Qe.arg,ct=nt.value;return ct&&typeof ct=="object"&&v.call(ct,"__await")?Te.resolve(ct.__await).then(function(dt){Ce("next",dt,ft,yt)},function(dt){Ce("throw",dt,ft,yt)}):Te.resolve(ct).then(function(dt){nt.value=dt,ft(nt)},function(dt){return Ce("throw",dt,ft,yt)})}}var Xe;function He(Je,ut){function ft(){return new Te(function(yt,Qe){Ce(Je,ut,yt,Qe)})}return Xe=Xe?Xe.then(ft,ft):ft()}this._invoke=He}ue(q.prototype),q.prototype[C]=function(){return this},a.AsyncIterator=q,a.async=function(Pe,Te,Ce,Xe,He){He===void 0&&(He=Promise);var Je=new q(N(Pe,Te,Ce,Xe),He);return a.isGeneratorFunction(Te)?Je:Je.next().then(function(ut){return ut.done?ut.value:Je.next()})};function ne(Pe,Te,Ce){var Xe=U;return function(Je,ut){if(Xe===K)throw new Error("Generator is already running");if(Xe===M){if(Je==="throw")throw ut;return Oe()}for(Ce.method=Je,Ce.arg=ut;;){var ft=Ce.delegate;if(ft){var yt=ge(ft,Ce);if(yt){if(yt===Y)continue;return yt}}if(Ce.method==="next")Ce.sent=Ce._sent=Ce.arg;else if(Ce.method==="throw"){if(Xe===U)throw Xe=M,Ce.arg;Ce.dispatchException(Ce.arg)}else Ce.method==="return"&&Ce.abrupt("return",Ce.arg);Xe=K;var Qe=j(Pe,Te,Ce);if(Qe.type==="normal"){if(Xe=Ce.done?M:Q,Qe.arg===Y)continue;return{value:Qe.arg,done:Ce.done}}else Qe.type==="throw"&&(Xe=M,Ce.method="throw",Ce.arg=Qe.arg)}}}function ge(Pe,Te){var Ce=Pe.iterator[Te.method];if(Ce===m){if(Te.delegate=null,Te.method==="throw"){if(Pe.iterator.return&&(Te.method="return",Te.arg=m,ge(Pe,Te),Te.method==="throw"))return Y;Te.method="throw",Te.arg=new TypeError("The iterator does not provide a 'throw' method")}return Y}var Xe=j(Ce,Pe.iterator,Te.arg);if(Xe.type==="throw")return Te.method="throw",Te.arg=Xe.arg,Te.delegate=null,Y;var He=Xe.arg;if(!He)return Te.method="throw",Te.arg=new TypeError("iterator result is not an object"),Te.delegate=null,Y;if(He.done)Te[Pe.resultName]=He.value,Te.next=Pe.nextLoc,Te.method!=="return"&&(Te.method="next",Te.arg=m);else return He;return Te.delegate=null,Y}ue(z),L(z,S,"Generator"),z[b]=function(){return this},z.toString=function(){return"[object Generator]"};function me(Pe){var Te={tryLoc:Pe[0]};1 in Pe&&(Te.catchLoc=Pe[1]),2 in Pe&&(Te.finallyLoc=Pe[2],Te.afterLoc=Pe[3]),this.tryEntries.push(Te)}function he(Pe){var Te=Pe.completion||{};Te.type="normal",delete Te.arg,Pe.completion=Te}function le(Pe){this.tryEntries=[{tryLoc:"root"}],Pe.forEach(me,this),this.reset(!0)}a.keys=function(Pe){var Te=[];for(var Ce in Pe)Te.push(Ce);return Te.reverse(),function Xe(){for(;Te.length;){var He=Te.pop();if(He in Pe)return Xe.value=He,Xe.done=!1,Xe}return Xe.done=!0,Xe}};function ie(Pe){if(Pe){var Te=Pe[b];if(Te)return Te.call(Pe);if(typeof Pe.next=="function")return Pe;if(!isNaN(Pe.length)){var Ce=-1,Xe=function He(){for(;++Ce<Pe.length;)if(v.call(Pe,Ce))return He.value=Pe[Ce],He.done=!1,He;return He.value=m,He.done=!0,He};return Xe.next=Xe}}return{next:Oe}}a.values=ie;function Oe(){return{value:m,done:!0}}return le.prototype={constructor:le,reset:function(Pe){if(this.prev=0,this.next=0,this.sent=this._sent=m,this.done=!1,this.delegate=null,this.method="next",this.arg=m,this.tryEntries.forEach(he),!Pe)for(var Te in this)Te.charAt(0)==="t"&&v.call(this,Te)&&!isNaN(+Te.slice(1))&&(this[Te]=m)},stop:function(){this.done=!0;var Pe=this.tryEntries[0],Te=Pe.completion;if(Te.type==="throw")throw Te.arg;return this.rval},dispatchException:function(Pe){if(this.done)throw Pe;var Te=this;function Ce(yt,Qe){return Je.type="throw",Je.arg=Pe,Te.next=yt,Qe&&(Te.method="next",Te.arg=m),!!Qe}for(var Xe=this.tryEntries.length-1;Xe>=0;--Xe){var He=this.tryEntries[Xe],Je=He.completion;if(He.tryLoc==="root")return Ce("end");if(He.tryLoc<=this.prev){var ut=v.call(He,"catchLoc"),ft=v.call(He,"finallyLoc");if(ut&&ft){if(this.prev<He.catchLoc)return Ce(He.catchLoc,!0);if(this.prev<He.finallyLoc)return Ce(He.finallyLoc)}else if(ut){if(this.prev<He.catchLoc)return Ce(He.catchLoc,!0)}else if(ft){if(this.prev<He.finallyLoc)return Ce(He.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(Pe,Te){for(var Ce=this.tryEntries.length-1;Ce>=0;--Ce){var Xe=this.tryEntries[Ce];if(Xe.tryLoc<=this.prev&&v.call(Xe,"finallyLoc")&&this.prev<Xe.finallyLoc){var He=Xe;break}}He&&(Pe==="break"||Pe==="continue")&&He.tryLoc<=Te&&Te<=He.finallyLoc&&(He=null);var Je=He?He.completion:{};return Je.type=Pe,Je.arg=Te,He?(this.method="next",this.next=He.finallyLoc,Y):this.complete(Je)},complete:function(Pe,Te){if(Pe.type==="throw")throw Pe.arg;return Pe.type==="break"||Pe.type==="continue"?this.next=Pe.arg:Pe.type==="return"?(this.rval=this.arg=Pe.arg,this.method="return",this.next="end"):Pe.type==="normal"&&Te&&(this.next=Te),Y},finish:function(Pe){for(var Te=this.tryEntries.length-1;Te>=0;--Te){var Ce=this.tryEntries[Te];if(Ce.finallyLoc===Pe)return this.complete(Ce.completion,Ce.afterLoc),he(Ce),Y}},catch:function(Pe){for(var Te=this.tryEntries.length-1;Te>=0;--Te){var Ce=this.tryEntries[Te];if(Ce.tryLoc===Pe){var Xe=Ce.completion;if(Xe.type==="throw"){var He=Xe.arg;he(Ce)}return He}}throw new Error("illegal catch attempt")},delegateYield:function(Pe,Te,Ce){return this.delegate={iterator:ie(Pe),resultName:Te,nextLoc:Ce},this.method==="next"&&(this.arg=m),Y}},a}(p.exports);try{regeneratorRuntime=I}catch(a){Function("r","regeneratorRuntime = r")(I)}},37478:(p,I,a)=>{"use strict";var c=a(40210),v=a(21924),m=a(70631),h=c("%TypeError%"),b=c("%WeakMap%",!0),C=c("%Map%",!0),S=v("WeakMap.prototype.get",!0),L=v("WeakMap.prototype.set",!0),N=v("WeakMap.prototype.has",!0),j=v("Map.prototype.get",!0),U=v("Map.prototype.set",!0),Q=v("Map.prototype.has",!0),K=function(E,V){for(var G=E,Z;(Z=G.next)!==null;G=Z)if(Z.key===V)return G.next=Z.next,Z.next=E.next,E.next=Z,Z},M=function(E,V){var G=K(E,V);return G&&G.value},Y=function(E,V,G){var Z=K(E,V);Z?Z.value=G:E.next={key:V,next:E.next,value:G}},R=function(E,V){return!!K(E,V)};p.exports=function(){var V,G,Z,X={assert:function(z){if(!X.has(z))throw new h("Side channel does not contain "+m(z))},get:function(z){if(b&&z&&(typeof z=="object"||typeof z=="function")){if(V)return S(V,z)}else if(C){if(G)return j(G,z)}else if(Z)return M(Z,z)},has:function(z){if(b&&z&&(typeof z=="object"||typeof z=="function")){if(V)return N(V,z)}else if(C){if(G)return Q(G,z)}else if(Z)return R(Z,z);return!1},set:function(z,ue){b&&z&&(typeof z=="object"||typeof z=="function")?(V||(V=new b),L(V,z,ue)):C?(G||(G=new C),U(G,z,ue)):(Z||(Z={key:{},next:null}),Y(Z,z,ue))}};return X}},13837:(p,I,a)=>{var c=a(93379),v=a(17438);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[p.id,v,""]]);var m={};m.insert="head",m.singleton=!1;var h=c(v,m);p.exports=v.locals||{}},75019:(p,I,a)=>{var c=a(93379),v=a(58635);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[p.id,v,""]]);var m={};m.insert="head",m.singleton=!1;var h=c(v,m);p.exports=v.locals||{}},86081:(p,I,a)=>{var c=a(93379),v=a(45272);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[p.id,v,""]]);var m={};m.insert="head",m.singleton=!1;var h=c(v,m);p.exports=v.locals||{}},44254:(p,I,a)=>{var c=a(93379),v=a(40961);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[p.id,v,""]]);var m={};m.insert="head",m.singleton=!1;var h=c(v,m);p.exports=v.locals||{}},88996:(p,I,a)=>{"use strict";/*!
527
+ `+ce.prev}function fe(te,ce){var be=Qe(te),Le=[];if(be){Le.length=te.length;for(var Re=0;Re<te.length;Re++)Le[Re]=Nt(te,Re)?ce(te[Re],te):""}var We=typeof se=="function"?se(te):[],ot;if(Oe){ot={};for(var vt=0;vt<We.length;vt++)ot["$"+We[vt]]=We[vt]}for(var Ft in te)!Nt(te,Ft)||be&&String(Number(Ft))===Ft&&Ft<te.length||Oe&&ot["$"+Ft]instanceof Symbol||(ue.call(/[^\w$]/,Ft)?Le.push(ce(Ft,te)+": "+ce(te[Ft],te)):Le.push(Ft+": "+ce(te[Ft],te)));if(typeof se=="function")for(var At=0;At<We.length;At++)Te.call(te,We[At])&&Le.push("["+ce(We[At])+"]: "+ce(te[We[At]],te));return Le}},9779:(p,I,a)=>{"use strict";var c=I,v=a(48764).Buffer;c.unescapeBuffer=function(L,N){for(var j=new v(L.length),U=0,Q,K,M,Y=0,R=0;Y<=L.length;Y++){var E=Y<L.length?L.charCodeAt(Y):NaN;switch(U){case 0:switch(E){case 37:Q=0,K=0,U=1;break;case 43:N&&(E=32);default:j[R++]=E;break}break;case 1:if(M=E,E>=48&&E<=57)Q=E-48;else if(E>=65&&E<=70)Q=E-65+10;else if(E>=97&&E<=102)Q=E-97+10;else{j[R++]=37,j[R++]=E,U=0;break}U=2;break;case 2:if(U=0,E>=48&&E<=57)K=E-48;else if(E>=65&&E<=70)K=E-65+10;else if(E>=97&&E<=102)K=E-97+10;else{j[R++]=37,j[R++]=M,j[R++]=E;break}j[R++]=16*Q+K;break}}return j.slice(0,R-1)};function m(L,N){try{return decodeURIComponent(L)}catch(j){return c.unescapeBuffer(L,N).toString()}}c.unescape=m;for(var h=new Array(256),b=0;b<256;++b)h[b]="%"+((b<16?"0":"")+b.toString(16)).toUpperCase();c.escape=function(L){typeof L!="string"&&(L+="");for(var N="",j=0,U=0;U<L.length;++U){var Q=L.charCodeAt(U);if(!(Q===33||Q===45||Q===46||Q===95||Q===126||Q>=39&&Q<=42||Q>=48&&Q<=57||Q>=65&&Q<=90||Q>=97&&Q<=122)){if(U-j>0&&(N+=L.slice(j,U)),Q<128){j=U+1,N+=h[Q];continue}if(Q<2048){j=U+1,N+=h[192|Q>>6]+h[128|Q&63];continue}if(Q<55296||Q>=57344){j=U+1,N+=h[224|Q>>12]+h[128|Q>>6&63]+h[128|Q&63];continue}++U;var K;if(U<L.length)K=L.charCodeAt(U)&1023;else throw new URIError("URI malformed");j=U+1,Q=65536+((Q&1023)<<10|K),N+=h[240|Q>>18]+h[128|Q>>12&63]+h[128|Q>>6&63]+h[128|Q&63]}}return j===0?L:j<L.length?N+L.slice(j):N};var C=function(L){return typeof L=="string"?L:typeof L=="number"&&isFinite(L)?""+L:typeof L=="boolean"?L?"true":"false":""};c.stringify=c.encode=function(L,N,j,U){N=N||"&",j=j||"=";var Q=c.escape;if(U&&typeof U.encodeURIComponent=="function"&&(Q=U.encodeURIComponent),L!==null&&typeof L=="object"){for(var K=Object.keys(L),M=K.length,Y=M-1,R="",E=0;E<M;++E){var V=K[E],G=L[V],Z=Q(C(V))+j;if(Array.isArray(G)){for(var X=G.length,z=X-1,ue=0;ue<X;++ue)R+=Z+Q(C(G[ue])),ue<z&&(R+=N);X&&E<Y&&(R+=N)}else R+=Z+Q(C(G)),E<Y&&(R+=N)}return R}return""},c.parse=c.decode=function(L,N,j,U){N=N||"&",j=j||"=";var Q={};if(typeof L!="string"||L.length===0)return Q;typeof N!="string"&&(N+="");var K=j.length,M=N.length,Y=1e3;U&&typeof U.maxKeys=="number"&&(Y=U.maxKeys);var R=1/0;Y>0&&(R=Y);var E=c.unescape;U&&typeof U.decodeURIComponent=="function"&&(E=U.decodeURIComponent);for(var V=E!==m,G=[],Z=0,X=0,z=0,ue="",q="",ne=V,ge=V,me=0,pe=0;pe<L.length;++pe){var se=L.charCodeAt(pe);if(se===N.charCodeAt(X)){if(++X===M){var ie=pe-X+1;if(z<K?Z<ie&&(ue+=L.slice(Z,ie)):Z<ie&&(q+=L.slice(Z,ie)),ne&&(ue=S(ue,E)),ge&&(q=S(q,E)),G.indexOf(ue)===-1)Q[ue]=q,G[G.length]=ue;else{var Oe=Q[ue];Oe instanceof Array?Oe[Oe.length]=q:Q[ue]=[Oe,q]}if(--R==0)break;ne=ge=V,me=0,ue=q="",Z=pe+1,X=z=0}continue}else X=0,ge||(se===37?me=1:me>0&&(se>=48&&se<=57||se>=65&&se<=70||se>=97&&se<=102)?++me==3&&(ge=!0):me=0);if(z<K)if(se===j.charCodeAt(z)){if(++z===K){var ie=pe-z+1;Z<ie&&(ue+=L.slice(Z,ie)),me=0,Z=pe+1}continue}else z=0,ne||(se===37?me=1:me>0&&(se>=48&&se<=57||se>=65&&se<=70||se>=97&&se<=102)?++me==3&&(ne=!0):me=0);se===43&&(z<K?(pe-Z>0&&(ue+=L.slice(Z,pe)),ue+="%20",ne=!0):(pe-Z>0&&(q+=L.slice(Z,pe)),q+="%20",ge=!0),Z=pe+1)}if(R>0&&(Z<L.length||z>0))if(Z<L.length&&(z<K?ue+=L.slice(Z):X<M&&(q+=L.slice(Z))),ne&&(ue=S(ue,E)),ge&&(q=S(q,E)),G.indexOf(ue)===-1)Q[ue]=q,G[G.length]=ue;else{var Oe=Q[ue];Oe instanceof Array?Oe[Oe.length]=q:Q[ue]=[Oe,q]}return Q};function S(L,N){try{return N(L)}catch(j){return c.unescape(L,!0)}}},35310:(p,I,a)=>{"use strict";var c;function v(){return v=Object.assign||function(Q){for(var K=1;K<arguments.length;K++){var M=arguments[K];for(var Y in M)Object.prototype.hasOwnProperty.call(M,Y)&&(Q[Y]=M[Y])}return Q},v.apply(this,arguments)}function m(Q){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(M){return typeof M}:m=function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},m(Q)}var h=function(){var Q=function(M,Y){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,E){R.__proto__=E}||function(R,E){for(var V in E)E.hasOwnProperty(V)&&(R[V]=E[V])},Q(M,Y)};return function(K,M){Q(K,M);function Y(){this.constructor=K}K.prototype=M===null?Object.create(M):(Y.prototype=M.prototype,new Y)}}();c={value:!0},c=I.fk=void 0;var b=a(67294),C=typeof navigator=="undefined"||a.g.PREVENT_CODEMIRROR_RENDER===!0,S;C||(S=a(4631));var L=function(){function Q(){}return Q.equals=function(K,M){var Y=this,R=Object.keys,E=m(K),V=m(M);return K&&M&&E==="object"&&E===V?R(K).length===R(M).length&&R(K).every(function(G){return Y.equals(K[G],M[G])}):K===M},Q}(),N=function(){function Q(K,M){this.editor=K,this.props=M}return Q.prototype.delegateCursor=function(K,M,Y){var R=this.editor.getDoc();Y&&this.editor.focus(),M?R.setCursor(K):R.setCursor(K,null,{scroll:!1})},Q.prototype.delegateScroll=function(K){this.editor.scrollTo(K.x,K.y)},Q.prototype.delegateSelection=function(K,M){var Y=this.editor.getDoc();Y.setSelections(K),M&&this.editor.focus()},Q.prototype.apply=function(K){K&&K.selection&&K.selection.ranges&&this.delegateSelection(K.selection.ranges,K.selection.focus||!1),K&&K.cursor&&this.delegateCursor(K.cursor,K.autoScroll||!1,this.editor.getOption("autofocus")||!1),K&&K.scroll&&this.delegateScroll(K.scroll)},Q.prototype.applyNext=function(K,M,Y){K&&K.selection&&K.selection.ranges&&M&&M.selection&&M.selection.ranges&&!L.equals(K.selection.ranges,M.selection.ranges)&&this.delegateSelection(M.selection.ranges,M.selection.focus||!1),K&&K.cursor&&M&&M.cursor&&!L.equals(K.cursor,M.cursor)&&this.delegateCursor(Y.cursor||M.cursor,M.autoScroll||!1,M.autoCursor||!1),K&&K.scroll&&M&&M.scroll&&!L.equals(K.scroll,M.scroll)&&this.delegateScroll(M.scroll)},Q.prototype.applyUserDefined=function(K,M){M&&M.cursor&&this.delegateCursor(M.cursor,K.autoScroll||!1,this.editor.getOption("autofocus")||!1)},Q.prototype.wire=function(K){var M=this;Object.keys(K||{}).filter(function(Y){return/^on/.test(Y)}).forEach(function(Y){switch(Y){case"onBlur":M.editor.on("blur",function(R,E){M.props.onBlur(M.editor,E)});break;case"onContextMenu":{M.editor.on("contextmenu",function(R,E){M.props.onContextMenu(M.editor,E)});break}case"onCopy":{M.editor.on("copy",function(R,E){M.props.onCopy(M.editor,E)});break}case"onCursor":M.editor.on("cursorActivity",function(R){M.props.onCursor(M.editor,M.editor.getDoc().getCursor())});break;case"onCursorActivity":M.editor.on("cursorActivity",function(R){M.props.onCursorActivity(M.editor)});break;case"onCut":{M.editor.on("cut",function(R,E){M.props.onCut(M.editor,E)});break}case"onDblClick":{M.editor.on("dblclick",function(R,E){M.props.onDblClick(M.editor,E)});break}case"onDragEnter":M.editor.on("dragenter",function(R,E){M.props.onDragEnter(M.editor,E)});break;case"onDragLeave":{M.editor.on("dragleave",function(R,E){M.props.onDragLeave(M.editor,E)});break}case"onDragOver":M.editor.on("dragover",function(R,E){M.props.onDragOver(M.editor,E)});break;case"onDragStart":{M.editor.on("dragstart",function(R,E){M.props.onDragStart(M.editor,E)});break}case"onDrop":M.editor.on("drop",function(R,E){M.props.onDrop(M.editor,E)});break;case"onFocus":M.editor.on("focus",function(R,E){M.props.onFocus(M.editor,E)});break;case"onGutterClick":M.editor.on("gutterClick",function(R,E,V,G){M.props.onGutterClick(M.editor,E,V,G)});break;case"onInputRead":M.editor.on("inputRead",function(R,E){M.props.onInputRead(M.editor,E)});break;case"onKeyDown":M.editor.on("keydown",function(R,E){M.props.onKeyDown(M.editor,E)});break;case"onKeyHandled":M.editor.on("keyHandled",function(R,E,V){M.props.onKeyHandled(M.editor,E,V)});break;case"onKeyPress":M.editor.on("keypress",function(R,E){M.props.onKeyPress(M.editor,E)});break;case"onKeyUp":M.editor.on("keyup",function(R,E){M.props.onKeyUp(M.editor,E)});break;case"onMouseDown":{M.editor.on("mousedown",function(R,E){M.props.onMouseDown(M.editor,E)});break}case"onPaste":{M.editor.on("paste",function(R,E){M.props.onPaste(M.editor,E)});break}case"onRenderLine":{M.editor.on("renderLine",function(R,E,V){M.props.onRenderLine(M.editor,E,V)});break}case"onScroll":M.editor.on("scroll",function(R){M.props.onScroll(M.editor,M.editor.getScrollInfo())});break;case"onSelection":M.editor.on("beforeSelectionChange",function(R,E){M.props.onSelection(M.editor,E)});break;case"onTouchStart":{M.editor.on("touchstart",function(R,E){M.props.onTouchStart(M.editor,E)});break}case"onUpdate":M.editor.on("update",function(R){M.props.onUpdate(M.editor)});break;case"onViewportChange":M.editor.on("viewportChange",function(R,E,V){M.props.onViewportChange(M.editor,E,V)});break}})},Q}(),j=function(Q){h(K,Q);function K(M){var Y=Q.call(this,M)||this;return C||(Y.applied=!1,Y.appliedNext=!1,Y.appliedUserDefined=!1,Y.deferred=null,Y.emulating=!1,Y.hydrated=!1,Y.initCb=function(){Y.props.editorDidConfigure&&Y.props.editorDidConfigure(Y.editor)},Y.mounted=!1),Y}return K.prototype.hydrate=function(M){var Y=this,R=M&&M.options?M.options:{},E=v({},S.defaults,this.editor.options,R),V=Object.keys(E).some(function(G){return Y.editor.getOption(G)!==E[G]});V&&Object.keys(E).forEach(function(G){R.hasOwnProperty(G)&&Y.editor.getOption(G)!==E[G]&&(Y.editor.setOption(G,E[G]),Y.mirror.setOption(G,E[G]))}),this.hydrated||(this.deferred?this.resolveChange(M.value):this.initChange(M.value||"")),this.hydrated=!0},K.prototype.initChange=function(M){this.emulating=!0;var Y=this.editor.getDoc(),R=Y.lastLine(),E=Y.getLine(Y.lastLine()).length;Y.replaceRange(M||"",{line:0,ch:0},{line:R,ch:E}),this.mirror.setValue(M),Y.clearHistory(),this.mirror.clearHistory(),this.emulating=!1},K.prototype.resolveChange=function(M){this.emulating=!0;var Y=this.editor.getDoc();if(this.deferred.origin==="undo"?Y.undo():this.deferred.origin==="redo"?Y.redo():Y.replaceRange(this.deferred.text,this.deferred.from,this.deferred.to,this.deferred.origin),M&&M!==Y.getValue()){var R=Y.getCursor();Y.setValue(M),Y.setCursor(R)}this.emulating=!1,this.deferred=null},K.prototype.mirrorChange=function(M){var Y=this.editor.getDoc();return M.origin==="undo"?(Y.setHistory(this.mirror.getHistory()),this.mirror.undo()):M.origin==="redo"?(Y.setHistory(this.mirror.getHistory()),this.mirror.redo()):this.mirror.replaceRange(M.text,M.from,M.to,M.origin),this.mirror.getValue()},K.prototype.componentDidMount=function(){var M=this;C||(this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&S.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=S(this.ref,this.props.options),this.shared=new N(this.editor,this.props),this.mirror=S(function(){},this.props.options),this.editor.on("electricInput",function(){M.mirror.setHistory(M.editor.getDoc().getHistory())}),this.editor.on("cursorActivity",function(){M.mirror.setCursor(M.editor.getDoc().getCursor())}),this.editor.on("beforeChange",function(Y,R){if(!M.emulating){R.cancel(),M.deferred=R;var E=M.mirrorChange(M.deferred);M.props.onBeforeChange&&M.props.onBeforeChange(M.editor,M.deferred,E)}}),this.editor.on("change",function(Y,R){!M.mounted||M.props.onChange&&M.props.onChange(M.editor,R,M.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))},K.prototype.componentDidUpdate=function(M){if(!C){var Y={cursor:null};this.props.value!==M.value&&(this.hydrated=!1),!this.props.autoCursor&&this.props.autoCursor!==void 0&&(Y.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.appliedNext||(this.shared.applyNext(M,this.props,Y),this.appliedNext=!0),this.shared.applyUserDefined(M,Y),this.appliedUserDefined=!0}},K.prototype.componentWillUnmount=function(){C||this.props.editorWillUnmount&&this.props.editorWillUnmount(S)},K.prototype.shouldComponentUpdate=function(M,Y){return!C},K.prototype.render=function(){var M=this;if(C)return null;var Y=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return b.createElement("div",{className:Y,ref:function(E){return M.ref=E}})},K}(b.Component);I.fk=j;var U=function(Q){h(K,Q);function K(M){var Y=Q.call(this,M)||this;return C||(Y.applied=!1,Y.appliedUserDefined=!1,Y.continueChange=!1,Y.detached=!1,Y.hydrated=!1,Y.initCb=function(){Y.props.editorDidConfigure&&Y.props.editorDidConfigure(Y.editor)},Y.mounted=!1,Y.onBeforeChangeCb=function(){Y.continueChange=!0}),Y}return K.prototype.hydrate=function(M){var Y=this,R=M&&M.options?M.options:{},E=v({},S.defaults,this.editor.options,R),V=Object.keys(E).some(function(z){return Y.editor.getOption(z)!==E[z]});if(V&&Object.keys(E).forEach(function(z){R.hasOwnProperty(z)&&Y.editor.getOption(z)!==E[z]&&Y.editor.setOption(z,E[z])}),!this.hydrated){var G=this.editor.getDoc(),Z=G.lastLine(),X=G.getLine(G.lastLine()).length;G.replaceRange(M.value||"",{line:0,ch:0},{line:Z,ch:X})}this.hydrated=!0},K.prototype.componentDidMount=function(){var M=this;C||(this.detached=this.props.detach===!0,this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&S.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=S(this.ref,this.props.options),this.shared=new N(this.editor,this.props),this.editor.on("beforeChange",function(Y,R){M.props.onBeforeChange&&M.props.onBeforeChange(M.editor,R,M.editor.getValue(),M.onBeforeChangeCb)}),this.editor.on("change",function(Y,R){!M.mounted||!M.props.onChange||(M.props.onBeforeChange?M.continueChange&&M.props.onChange(M.editor,R,M.editor.getValue()):M.props.onChange(M.editor,R,M.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))},K.prototype.componentDidUpdate=function(M){if(this.detached&&this.props.detach===!1&&(this.detached=!1,M.editorDidAttach&&M.editorDidAttach(this.editor)),!this.detached&&this.props.detach===!0&&(this.detached=!0,M.editorDidDetach&&M.editorDidDetach(this.editor)),!(C||this.detached)){var Y={cursor:null};this.props.value!==M.value&&(this.hydrated=!1,this.applied=!1,this.appliedUserDefined=!1),!M.autoCursor&&M.autoCursor!==void 0&&(Y.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.applied||(this.shared.apply(M),this.applied=!0),this.appliedUserDefined||(this.shared.applyUserDefined(M,Y),this.appliedUserDefined=!0)}},K.prototype.componentWillUnmount=function(){C||this.props.editorWillUnmount&&this.props.editorWillUnmount(S)},K.prototype.shouldComponentUpdate=function(M,Y){var R=!0;return C&&(R=!1),this.detached&&M.detach&&(R=!1),R},K.prototype.render=function(){var M=this;if(C)return null;var Y=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return b.createElement("div",{className:Y,ref:function(E){return M.ref=E}})},K}(b.Component);c=U},35666:p=>{var I=function(a){"use strict";var c=Object.prototype,v=c.hasOwnProperty,m,h=typeof Symbol=="function"?Symbol:{},b=h.iterator||"@@iterator",C=h.asyncIterator||"@@asyncIterator",S=h.toStringTag||"@@toStringTag";function L(Pe,Te,Ce){return Object.defineProperty(Pe,Te,{value:Ce,enumerable:!0,configurable:!0,writable:!0}),Pe[Te]}try{L({},"")}catch(Pe){L=function(Te,Ce,Xe){return Te[Ce]=Xe}}function N(Pe,Te,Ce,Xe){var He=Te&&Te.prototype instanceof R?Te:R,Je=Object.create(He.prototype),ut=new se(Xe||[]);return Je._invoke=ne(Pe,Ce,ut),Je}a.wrap=N;function j(Pe,Te,Ce){try{return{type:"normal",arg:Pe.call(Te,Ce)}}catch(Xe){return{type:"throw",arg:Xe}}}var U="suspendedStart",Q="suspendedYield",K="executing",M="completed",Y={};function R(){}function E(){}function V(){}var G={};G[b]=function(){return this};var Z=Object.getPrototypeOf,X=Z&&Z(Z(ie([])));X&&X!==c&&v.call(X,b)&&(G=X);var z=V.prototype=R.prototype=Object.create(G);E.prototype=z.constructor=V,V.constructor=E,E.displayName=L(V,S,"GeneratorFunction");function ue(Pe){["next","throw","return"].forEach(function(Te){L(Pe,Te,function(Ce){return this._invoke(Te,Ce)})})}a.isGeneratorFunction=function(Pe){var Te=typeof Pe=="function"&&Pe.constructor;return Te?Te===E||(Te.displayName||Te.name)==="GeneratorFunction":!1},a.mark=function(Pe){return Object.setPrototypeOf?Object.setPrototypeOf(Pe,V):(Pe.__proto__=V,L(Pe,S,"GeneratorFunction")),Pe.prototype=Object.create(z),Pe},a.awrap=function(Pe){return{__await:Pe}};function q(Pe,Te){function Ce(Je,ut,ft,yt){var Qe=j(Pe[Je],Pe,ut);if(Qe.type==="throw")yt(Qe.arg);else{var nt=Qe.arg,ct=nt.value;return ct&&typeof ct=="object"&&v.call(ct,"__await")?Te.resolve(ct.__await).then(function(dt){Ce("next",dt,ft,yt)},function(dt){Ce("throw",dt,ft,yt)}):Te.resolve(ct).then(function(dt){nt.value=dt,ft(nt)},function(dt){return Ce("throw",dt,ft,yt)})}}var Xe;function He(Je,ut){function ft(){return new Te(function(yt,Qe){Ce(Je,ut,yt,Qe)})}return Xe=Xe?Xe.then(ft,ft):ft()}this._invoke=He}ue(q.prototype),q.prototype[C]=function(){return this},a.AsyncIterator=q,a.async=function(Pe,Te,Ce,Xe,He){He===void 0&&(He=Promise);var Je=new q(N(Pe,Te,Ce,Xe),He);return a.isGeneratorFunction(Te)?Je:Je.next().then(function(ut){return ut.done?ut.value:Je.next()})};function ne(Pe,Te,Ce){var Xe=U;return function(Je,ut){if(Xe===K)throw new Error("Generator is already running");if(Xe===M){if(Je==="throw")throw ut;return Oe()}for(Ce.method=Je,Ce.arg=ut;;){var ft=Ce.delegate;if(ft){var yt=ge(ft,Ce);if(yt){if(yt===Y)continue;return yt}}if(Ce.method==="next")Ce.sent=Ce._sent=Ce.arg;else if(Ce.method==="throw"){if(Xe===U)throw Xe=M,Ce.arg;Ce.dispatchException(Ce.arg)}else Ce.method==="return"&&Ce.abrupt("return",Ce.arg);Xe=K;var Qe=j(Pe,Te,Ce);if(Qe.type==="normal"){if(Xe=Ce.done?M:Q,Qe.arg===Y)continue;return{value:Qe.arg,done:Ce.done}}else Qe.type==="throw"&&(Xe=M,Ce.method="throw",Ce.arg=Qe.arg)}}}function ge(Pe,Te){var Ce=Pe.iterator[Te.method];if(Ce===m){if(Te.delegate=null,Te.method==="throw"){if(Pe.iterator.return&&(Te.method="return",Te.arg=m,ge(Pe,Te),Te.method==="throw"))return Y;Te.method="throw",Te.arg=new TypeError("The iterator does not provide a 'throw' method")}return Y}var Xe=j(Ce,Pe.iterator,Te.arg);if(Xe.type==="throw")return Te.method="throw",Te.arg=Xe.arg,Te.delegate=null,Y;var He=Xe.arg;if(!He)return Te.method="throw",Te.arg=new TypeError("iterator result is not an object"),Te.delegate=null,Y;if(He.done)Te[Pe.resultName]=He.value,Te.next=Pe.nextLoc,Te.method!=="return"&&(Te.method="next",Te.arg=m);else return He;return Te.delegate=null,Y}ue(z),L(z,S,"Generator"),z[b]=function(){return this},z.toString=function(){return"[object Generator]"};function me(Pe){var Te={tryLoc:Pe[0]};1 in Pe&&(Te.catchLoc=Pe[1]),2 in Pe&&(Te.finallyLoc=Pe[2],Te.afterLoc=Pe[3]),this.tryEntries.push(Te)}function pe(Pe){var Te=Pe.completion||{};Te.type="normal",delete Te.arg,Pe.completion=Te}function se(Pe){this.tryEntries=[{tryLoc:"root"}],Pe.forEach(me,this),this.reset(!0)}a.keys=function(Pe){var Te=[];for(var Ce in Pe)Te.push(Ce);return Te.reverse(),function Xe(){for(;Te.length;){var He=Te.pop();if(He in Pe)return Xe.value=He,Xe.done=!1,Xe}return Xe.done=!0,Xe}};function ie(Pe){if(Pe){var Te=Pe[b];if(Te)return Te.call(Pe);if(typeof Pe.next=="function")return Pe;if(!isNaN(Pe.length)){var Ce=-1,Xe=function He(){for(;++Ce<Pe.length;)if(v.call(Pe,Ce))return He.value=Pe[Ce],He.done=!1,He;return He.value=m,He.done=!0,He};return Xe.next=Xe}}return{next:Oe}}a.values=ie;function Oe(){return{value:m,done:!0}}return se.prototype={constructor:se,reset:function(Pe){if(this.prev=0,this.next=0,this.sent=this._sent=m,this.done=!1,this.delegate=null,this.method="next",this.arg=m,this.tryEntries.forEach(pe),!Pe)for(var Te in this)Te.charAt(0)==="t"&&v.call(this,Te)&&!isNaN(+Te.slice(1))&&(this[Te]=m)},stop:function(){this.done=!0;var Pe=this.tryEntries[0],Te=Pe.completion;if(Te.type==="throw")throw Te.arg;return this.rval},dispatchException:function(Pe){if(this.done)throw Pe;var Te=this;function Ce(yt,Qe){return Je.type="throw",Je.arg=Pe,Te.next=yt,Qe&&(Te.method="next",Te.arg=m),!!Qe}for(var Xe=this.tryEntries.length-1;Xe>=0;--Xe){var He=this.tryEntries[Xe],Je=He.completion;if(He.tryLoc==="root")return Ce("end");if(He.tryLoc<=this.prev){var ut=v.call(He,"catchLoc"),ft=v.call(He,"finallyLoc");if(ut&&ft){if(this.prev<He.catchLoc)return Ce(He.catchLoc,!0);if(this.prev<He.finallyLoc)return Ce(He.finallyLoc)}else if(ut){if(this.prev<He.catchLoc)return Ce(He.catchLoc,!0)}else if(ft){if(this.prev<He.finallyLoc)return Ce(He.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(Pe,Te){for(var Ce=this.tryEntries.length-1;Ce>=0;--Ce){var Xe=this.tryEntries[Ce];if(Xe.tryLoc<=this.prev&&v.call(Xe,"finallyLoc")&&this.prev<Xe.finallyLoc){var He=Xe;break}}He&&(Pe==="break"||Pe==="continue")&&He.tryLoc<=Te&&Te<=He.finallyLoc&&(He=null);var Je=He?He.completion:{};return Je.type=Pe,Je.arg=Te,He?(this.method="next",this.next=He.finallyLoc,Y):this.complete(Je)},complete:function(Pe,Te){if(Pe.type==="throw")throw Pe.arg;return Pe.type==="break"||Pe.type==="continue"?this.next=Pe.arg:Pe.type==="return"?(this.rval=this.arg=Pe.arg,this.method="return",this.next="end"):Pe.type==="normal"&&Te&&(this.next=Te),Y},finish:function(Pe){for(var Te=this.tryEntries.length-1;Te>=0;--Te){var Ce=this.tryEntries[Te];if(Ce.finallyLoc===Pe)return this.complete(Ce.completion,Ce.afterLoc),pe(Ce),Y}},catch:function(Pe){for(var Te=this.tryEntries.length-1;Te>=0;--Te){var Ce=this.tryEntries[Te];if(Ce.tryLoc===Pe){var Xe=Ce.completion;if(Xe.type==="throw"){var He=Xe.arg;pe(Ce)}return He}}throw new Error("illegal catch attempt")},delegateYield:function(Pe,Te,Ce){return this.delegate={iterator:ie(Pe),resultName:Te,nextLoc:Ce},this.method==="next"&&(this.arg=m),Y}},a}(p.exports);try{regeneratorRuntime=I}catch(a){Function("r","regeneratorRuntime = r")(I)}},37478:(p,I,a)=>{"use strict";var c=a(40210),v=a(21924),m=a(70631),h=c("%TypeError%"),b=c("%WeakMap%",!0),C=c("%Map%",!0),S=v("WeakMap.prototype.get",!0),L=v("WeakMap.prototype.set",!0),N=v("WeakMap.prototype.has",!0),j=v("Map.prototype.get",!0),U=v("Map.prototype.set",!0),Q=v("Map.prototype.has",!0),K=function(E,V){for(var G=E,Z;(Z=G.next)!==null;G=Z)if(Z.key===V)return G.next=Z.next,Z.next=E.next,E.next=Z,Z},M=function(E,V){var G=K(E,V);return G&&G.value},Y=function(E,V,G){var Z=K(E,V);Z?Z.value=G:E.next={key:V,next:E.next,value:G}},R=function(E,V){return!!K(E,V)};p.exports=function(){var V,G,Z,X={assert:function(z){if(!X.has(z))throw new h("Side channel does not contain "+m(z))},get:function(z){if(b&&z&&(typeof z=="object"||typeof z=="function")){if(V)return S(V,z)}else if(C){if(G)return j(G,z)}else if(Z)return M(Z,z)},has:function(z){if(b&&z&&(typeof z=="object"||typeof z=="function")){if(V)return N(V,z)}else if(C){if(G)return Q(G,z)}else if(Z)return R(Z,z);return!1},set:function(z,ue){b&&z&&(typeof z=="object"||typeof z=="function")?(V||(V=new b),L(V,z,ue)):C?(G||(G=new C),U(G,z,ue)):(Z||(Z={key:{},next:null}),Y(Z,z,ue))}};return X}},13837:(p,I,a)=>{var c=a(93379),v=a(17438);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[p.id,v,""]]);var m={};m.insert="head",m.singleton=!1;var h=c(v,m);p.exports=v.locals||{}},75019:(p,I,a)=>{var c=a(93379),v=a(58635);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[p.id,v,""]]);var m={};m.insert="head",m.singleton=!1;var h=c(v,m);p.exports=v.locals||{}},86081:(p,I,a)=>{var c=a(93379),v=a(45272);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[p.id,v,""]]);var m={};m.insert="head",m.singleton=!1;var h=c(v,m);p.exports=v.locals||{}},44254:(p,I,a)=>{var c=a(93379),v=a(40961);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[p.id,v,""]]);var m={};m.insert="head",m.singleton=!1;var h=c(v,m);p.exports=v.locals||{}},88996:(p,I,a)=>{"use strict";/*!
528
528
  * The buffer module from node.js, for the browser.
529
529
  *
530
530
  * @author Feross Aboukhadijeh <https://feross.org>
531
531
  * @license MIT
532
- */const c=a(79742),v=a(80645),m=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;I.Buffer=S,I.SlowBuffer=V,I.INSPECT_MAX_BYTES=50;const h=2147483647;I.kMaxLength=h,S.TYPED_ARRAY_SUPPORT=b(),!S.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function b(){try{const $=new Uint8Array(1),O={foo:function(){return 42}};return Object.setPrototypeOf(O,Uint8Array.prototype),Object.setPrototypeOf($,O),$.foo()===42}catch($){return!1}}Object.defineProperty(S.prototype,"parent",{enumerable:!0,get:function(){if(!!S.isBuffer(this))return this.buffer}}),Object.defineProperty(S.prototype,"offset",{enumerable:!0,get:function(){if(!!S.isBuffer(this))return this.byteOffset}});function C($){if($>h)throw new RangeError('The value "'+$+'" is invalid for option "size"');const O=new Uint8Array($);return Object.setPrototypeOf(O,S.prototype),O}function S($,O,T){if(typeof $=="number"){if(typeof O=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return U($)}return L($,O,T)}S.poolSize=8192;function L($,O,T){if(typeof $=="string")return Q($,O);if(ArrayBuffer.isView($))return M($);if($==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof $);if(Mt($,ArrayBuffer)||$&&Mt($.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Mt($,SharedArrayBuffer)||$&&Mt($.buffer,SharedArrayBuffer)))return Y($,O,T);if(typeof $=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const oe=$.valueOf&&$.valueOf();if(oe!=null&&oe!==$)return S.from(oe,O,T);const D=R($);if(D)return D;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof $[Symbol.toPrimitive]=="function")return S.from($[Symbol.toPrimitive]("string"),O,T);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof $)}S.from=function($,O,T){return L($,O,T)},Object.setPrototypeOf(S.prototype,Uint8Array.prototype),Object.setPrototypeOf(S,Uint8Array);function N($){if(typeof $!="number")throw new TypeError('"size" argument must be of type number');if($<0)throw new RangeError('The value "'+$+'" is invalid for option "size"')}function j($,O,T){return N($),$<=0?C($):O!==void 0?typeof T=="string"?C($).fill(O,T):C($).fill(O):C($)}S.alloc=function($,O,T){return j($,O,T)};function U($){return N($),C($<0?0:E($)|0)}S.allocUnsafe=function($){return U($)},S.allocUnsafeSlow=function($){return U($)};function Q($,O){if((typeof O!="string"||O==="")&&(O="utf8"),!S.isEncoding(O))throw new TypeError("Unknown encoding: "+O);const T=G($,O)|0;let oe=C(T);const D=oe.write($,O);return D!==T&&(oe=oe.slice(0,D)),oe}function K($){const O=$.length<0?0:E($.length)|0,T=C(O);for(let oe=0;oe<O;oe+=1)T[oe]=$[oe]&255;return T}function M($){if(Mt($,Uint8Array)){const O=new Uint8Array($);return Y(O.buffer,O.byteOffset,O.byteLength)}return K($)}function Y($,O,T){if(O<0||$.byteLength<O)throw new RangeError('"offset" is outside of buffer bounds');if($.byteLength<O+(T||0))throw new RangeError('"length" is outside of buffer bounds');let oe;return O===void 0&&T===void 0?oe=new Uint8Array($):T===void 0?oe=new Uint8Array($,O):oe=new Uint8Array($,O,T),Object.setPrototypeOf(oe,S.prototype),oe}function R($){if(S.isBuffer($)){const O=E($.length)|0,T=C(O);return T.length===0||$.copy(T,0,0,O),T}if($.length!==void 0)return typeof $.length!="number"||Wt($.length)?C(0):K($);if($.type==="Buffer"&&Array.isArray($.data))return K($.data)}function E($){if($>=h)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h.toString(16)+" bytes");return $|0}function V($){return+$!=$&&($=0),S.alloc(+$)}S.isBuffer=function(O){return O!=null&&O._isBuffer===!0&&O!==S.prototype},S.compare=function(O,T){if(Mt(O,Uint8Array)&&(O=S.from(O,O.offset,O.byteLength)),Mt(T,Uint8Array)&&(T=S.from(T,T.offset,T.byteLength)),!S.isBuffer(O)||!S.isBuffer(T))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(O===T)return 0;let oe=O.length,D=T.length;for(let _=0,fe=Math.min(oe,D);_<fe;++_)if(O[_]!==T[_]){oe=O[_],D=T[_];break}return oe<D?-1:D<oe?1:0},S.isEncoding=function(O){switch(String(O).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},S.concat=function(O,T){if(!Array.isArray(O))throw new TypeError('"list" argument must be an Array of Buffers');if(O.length===0)return S.alloc(0);let oe;if(T===void 0)for(T=0,oe=0;oe<O.length;++oe)T+=O[oe].length;const D=S.allocUnsafe(T);let _=0;for(oe=0;oe<O.length;++oe){let fe=O[oe];if(Mt(fe,Uint8Array))_+fe.length>D.length?(S.isBuffer(fe)||(fe=S.from(fe)),fe.copy(D,_)):Uint8Array.prototype.set.call(D,fe,_);else if(S.isBuffer(fe))fe.copy(D,_);else throw new TypeError('"list" argument must be an Array of Buffers');_+=fe.length}return D};function G($,O){if(S.isBuffer($))return $.length;if(ArrayBuffer.isView($)||Mt($,ArrayBuffer))return $.byteLength;if(typeof $!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof $);const T=$.length,oe=arguments.length>2&&arguments[2]===!0;if(!oe&&T===0)return 0;let D=!1;for(;;)switch(O){case"ascii":case"latin1":case"binary":return T;case"utf8":case"utf-8":return It($).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T*2;case"hex":return T>>>1;case"base64":return Kt($).length;default:if(D)return oe?-1:It($).length;O=(""+O).toLowerCase(),D=!0}}S.byteLength=G;function Z($,O,T){let oe=!1;if((O===void 0||O<0)&&(O=0),O>this.length||((T===void 0||T>this.length)&&(T=this.length),T<=0)||(T>>>=0,O>>>=0,T<=O))return"";for($||($="utf8");;)switch($){case"hex":return Xe(this,O,T);case"utf8":case"utf-8":return ie(this,O,T);case"ascii":return Te(this,O,T);case"latin1":case"binary":return Ce(this,O,T);case"base64":return le(this,O,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return He(this,O,T);default:if(oe)throw new TypeError("Unknown encoding: "+$);$=($+"").toLowerCase(),oe=!0}}S.prototype._isBuffer=!0;function X($,O,T){const oe=$[O];$[O]=$[T],$[T]=oe}S.prototype.swap16=function(){const O=this.length;if(O%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let T=0;T<O;T+=2)X(this,T,T+1);return this},S.prototype.swap32=function(){const O=this.length;if(O%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let T=0;T<O;T+=4)X(this,T,T+3),X(this,T+1,T+2);return this},S.prototype.swap64=function(){const O=this.length;if(O%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let T=0;T<O;T+=8)X(this,T,T+7),X(this,T+1,T+6),X(this,T+2,T+5),X(this,T+3,T+4);return this},S.prototype.toString=function(){const O=this.length;return O===0?"":arguments.length===0?ie(this,0,O):Z.apply(this,arguments)},S.prototype.toLocaleString=S.prototype.toString,S.prototype.equals=function(O){if(!S.isBuffer(O))throw new TypeError("Argument must be a Buffer");return this===O?!0:S.compare(this,O)===0},S.prototype.inspect=function(){let O="";const T=I.INSPECT_MAX_BYTES;return O=this.toString("hex",0,T).replace(/(.{2})/g,"$1 ").trim(),this.length>T&&(O+=" ... "),"<Buffer "+O+">"},m&&(S.prototype[m]=S.prototype.inspect),S.prototype.compare=function(O,T,oe,D,_){if(Mt(O,Uint8Array)&&(O=S.from(O,O.offset,O.byteLength)),!S.isBuffer(O))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof O);if(T===void 0&&(T=0),oe===void 0&&(oe=O?O.length:0),D===void 0&&(D=0),_===void 0&&(_=this.length),T<0||oe>O.length||D<0||_>this.length)throw new RangeError("out of range index");if(D>=_&&T>=oe)return 0;if(D>=_)return-1;if(T>=oe)return 1;if(T>>>=0,oe>>>=0,D>>>=0,_>>>=0,this===O)return 0;let fe=_-D,te=oe-T;const ce=Math.min(fe,te),be=this.slice(D,_),Le=O.slice(T,oe);for(let Re=0;Re<ce;++Re)if(be[Re]!==Le[Re]){fe=be[Re],te=Le[Re];break}return fe<te?-1:te<fe?1:0};function z($,O,T,oe,D){if($.length===0)return-1;if(typeof T=="string"?(oe=T,T=0):T>2147483647?T=2147483647:T<-2147483648&&(T=-2147483648),T=+T,Wt(T)&&(T=D?0:$.length-1),T<0&&(T=$.length+T),T>=$.length){if(D)return-1;T=$.length-1}else if(T<0)if(D)T=0;else return-1;if(typeof O=="string"&&(O=S.from(O,oe)),S.isBuffer(O))return O.length===0?-1:ue($,O,T,oe,D);if(typeof O=="number")return O=O&255,typeof Uint8Array.prototype.indexOf=="function"?D?Uint8Array.prototype.indexOf.call($,O,T):Uint8Array.prototype.lastIndexOf.call($,O,T):ue($,[O],T,oe,D);throw new TypeError("val must be string, number or Buffer")}function ue($,O,T,oe,D){let _=1,fe=$.length,te=O.length;if(oe!==void 0&&(oe=String(oe).toLowerCase(),oe==="ucs2"||oe==="ucs-2"||oe==="utf16le"||oe==="utf-16le")){if($.length<2||O.length<2)return-1;_=2,fe/=2,te/=2,T/=2}function ce(Le,Re){return _===1?Le[Re]:Le.readUInt16BE(Re*_)}let be;if(D){let Le=-1;for(be=T;be<fe;be++)if(ce($,be)===ce(O,Le===-1?0:be-Le)){if(Le===-1&&(Le=be),be-Le+1===te)return Le*_}else Le!==-1&&(be-=be-Le),Le=-1}else for(T+te>fe&&(T=fe-te),be=T;be>=0;be--){let Le=!0;for(let Re=0;Re<te;Re++)if(ce($,be+Re)!==ce(O,Re)){Le=!1;break}if(Le)return be}return-1}S.prototype.includes=function(O,T,oe){return this.indexOf(O,T,oe)!==-1},S.prototype.indexOf=function(O,T,oe){return z(this,O,T,oe,!0)},S.prototype.lastIndexOf=function(O,T,oe){return z(this,O,T,oe,!1)};function q($,O,T,oe){T=Number(T)||0;const D=$.length-T;oe?(oe=Number(oe),oe>D&&(oe=D)):oe=D;const _=O.length;oe>_/2&&(oe=_/2);let fe;for(fe=0;fe<oe;++fe){const te=parseInt(O.substr(fe*2,2),16);if(Wt(te))return fe;$[T+fe]=te}return fe}function ne($,O,T,oe){return sr(It(O,$.length-T),$,T,oe)}function ge($,O,T,oe){return sr(ht(O),$,T,oe)}function me($,O,T,oe){return sr(Kt(O),$,T,oe)}function he($,O,T,oe){return sr(zt(O,$.length-T),$,T,oe)}S.prototype.write=function(O,T,oe,D){if(T===void 0)D="utf8",oe=this.length,T=0;else if(oe===void 0&&typeof T=="string")D=T,oe=this.length,T=0;else if(isFinite(T))T=T>>>0,isFinite(oe)?(oe=oe>>>0,D===void 0&&(D="utf8")):(D=oe,oe=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const _=this.length-T;if((oe===void 0||oe>_)&&(oe=_),O.length>0&&(oe<0||T<0)||T>this.length)throw new RangeError("Attempt to write outside buffer bounds");D||(D="utf8");let fe=!1;for(;;)switch(D){case"hex":return q(this,O,T,oe);case"utf8":case"utf-8":return ne(this,O,T,oe);case"ascii":case"latin1":case"binary":return ge(this,O,T,oe);case"base64":return me(this,O,T,oe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he(this,O,T,oe);default:if(fe)throw new TypeError("Unknown encoding: "+D);D=(""+D).toLowerCase(),fe=!0}},S.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function le($,O,T){return O===0&&T===$.length?c.fromByteArray($):c.fromByteArray($.slice(O,T))}function ie($,O,T){T=Math.min($.length,T);const oe=[];let D=O;for(;D<T;){const _=$[D];let fe=null,te=_>239?4:_>223?3:_>191?2:1;if(D+te<=T){let ce,be,Le,Re;switch(te){case 1:_<128&&(fe=_);break;case 2:ce=$[D+1],(ce&192)==128&&(Re=(_&31)<<6|ce&63,Re>127&&(fe=Re));break;case 3:ce=$[D+1],be=$[D+2],(ce&192)==128&&(be&192)==128&&(Re=(_&15)<<12|(ce&63)<<6|be&63,Re>2047&&(Re<55296||Re>57343)&&(fe=Re));break;case 4:ce=$[D+1],be=$[D+2],Le=$[D+3],(ce&192)==128&&(be&192)==128&&(Le&192)==128&&(Re=(_&15)<<18|(ce&63)<<12|(be&63)<<6|Le&63,Re>65535&&Re<1114112&&(fe=Re))}}fe===null?(fe=65533,te=1):fe>65535&&(fe-=65536,oe.push(fe>>>10&1023|55296),fe=56320|fe&1023),oe.push(fe),D+=te}return Pe(oe)}const Oe=4096;function Pe($){const O=$.length;if(O<=Oe)return String.fromCharCode.apply(String,$);let T="",oe=0;for(;oe<O;)T+=String.fromCharCode.apply(String,$.slice(oe,oe+=Oe));return T}function Te($,O,T){let oe="";T=Math.min($.length,T);for(let D=O;D<T;++D)oe+=String.fromCharCode($[D]&127);return oe}function Ce($,O,T){let oe="";T=Math.min($.length,T);for(let D=O;D<T;++D)oe+=String.fromCharCode($[D]);return oe}function Xe($,O,T){const oe=$.length;(!O||O<0)&&(O=0),(!T||T<0||T>oe)&&(T=oe);let D="";for(let _=O;_<T;++_)D+=Bt[$[_]];return D}function He($,O,T){const oe=$.slice(O,T);let D="";for(let _=0;_<oe.length-1;_+=2)D+=String.fromCharCode(oe[_]+oe[_+1]*256);return D}S.prototype.slice=function(O,T){const oe=this.length;O=~~O,T=T===void 0?oe:~~T,O<0?(O+=oe,O<0&&(O=0)):O>oe&&(O=oe),T<0?(T+=oe,T<0&&(T=0)):T>oe&&(T=oe),T<O&&(T=O);const D=this.subarray(O,T);return Object.setPrototypeOf(D,S.prototype),D};function Je($,O,T){if($%1!=0||$<0)throw new RangeError("offset is not uint");if($+O>T)throw new RangeError("Trying to access beyond buffer length")}S.prototype.readUintLE=S.prototype.readUIntLE=function(O,T,oe){O=O>>>0,T=T>>>0,oe||Je(O,T,this.length);let D=this[O],_=1,fe=0;for(;++fe<T&&(_*=256);)D+=this[O+fe]*_;return D},S.prototype.readUintBE=S.prototype.readUIntBE=function(O,T,oe){O=O>>>0,T=T>>>0,oe||Je(O,T,this.length);let D=this[O+--T],_=1;for(;T>0&&(_*=256);)D+=this[O+--T]*_;return D},S.prototype.readUint8=S.prototype.readUInt8=function(O,T){return O=O>>>0,T||Je(O,1,this.length),this[O]},S.prototype.readUint16LE=S.prototype.readUInt16LE=function(O,T){return O=O>>>0,T||Je(O,2,this.length),this[O]|this[O+1]<<8},S.prototype.readUint16BE=S.prototype.readUInt16BE=function(O,T){return O=O>>>0,T||Je(O,2,this.length),this[O]<<8|this[O+1]},S.prototype.readUint32LE=S.prototype.readUInt32LE=function(O,T){return O=O>>>0,T||Je(O,4,this.length),(this[O]|this[O+1]<<8|this[O+2]<<16)+this[O+3]*16777216},S.prototype.readUint32BE=S.prototype.readUInt32BE=function(O,T){return O=O>>>0,T||Je(O,4,this.length),this[O]*16777216+(this[O+1]<<16|this[O+2]<<8|this[O+3])},S.prototype.readBigUInt64LE=k(function(O){O=O>>>0,jt(O,"offset");const T=this[O],oe=this[O+7];(T===void 0||oe===void 0)&&Dt(O,this.length-8);const D=T+this[++O]*Ar(2,8)+this[++O]*Ar(2,16)+this[++O]*Ar(2,24),_=this[++O]+this[++O]*Ar(2,8)+this[++O]*Ar(2,16)+oe*Ar(2,24);return BigInt(D)+(BigInt(_)<<BigInt(32))}),S.prototype.readBigUInt64BE=k(function(O){O=O>>>0,jt(O,"offset");const T=this[O],oe=this[O+7];(T===void 0||oe===void 0)&&Dt(O,this.length-8);const D=T*Ar(2,24)+this[++O]*Ar(2,16)+this[++O]*Ar(2,8)+this[++O],_=this[++O]*Ar(2,24)+this[++O]*Ar(2,16)+this[++O]*Ar(2,8)+oe;return(BigInt(D)<<BigInt(32))+BigInt(_)}),S.prototype.readIntLE=function(O,T,oe){O=O>>>0,T=T>>>0,oe||Je(O,T,this.length);let D=this[O],_=1,fe=0;for(;++fe<T&&(_*=256);)D+=this[O+fe]*_;return _*=128,D>=_&&(D-=Math.pow(2,8*T)),D},S.prototype.readIntBE=function(O,T,oe){O=O>>>0,T=T>>>0,oe||Je(O,T,this.length);let D=T,_=1,fe=this[O+--D];for(;D>0&&(_*=256);)fe+=this[O+--D]*_;return _*=128,fe>=_&&(fe-=Math.pow(2,8*T)),fe},S.prototype.readInt8=function(O,T){return O=O>>>0,T||Je(O,1,this.length),this[O]&128?(255-this[O]+1)*-1:this[O]},S.prototype.readInt16LE=function(O,T){O=O>>>0,T||Je(O,2,this.length);const oe=this[O]|this[O+1]<<8;return oe&32768?oe|4294901760:oe},S.prototype.readInt16BE=function(O,T){O=O>>>0,T||Je(O,2,this.length);const oe=this[O+1]|this[O]<<8;return oe&32768?oe|4294901760:oe},S.prototype.readInt32LE=function(O,T){return O=O>>>0,T||Je(O,4,this.length),this[O]|this[O+1]<<8|this[O+2]<<16|this[O+3]<<24},S.prototype.readInt32BE=function(O,T){return O=O>>>0,T||Je(O,4,this.length),this[O]<<24|this[O+1]<<16|this[O+2]<<8|this[O+3]},S.prototype.readBigInt64LE=k(function(O){O=O>>>0,jt(O,"offset");const T=this[O],oe=this[O+7];(T===void 0||oe===void 0)&&Dt(O,this.length-8);const D=this[O+4]+this[O+5]*Ar(2,8)+this[O+6]*Ar(2,16)+(oe<<24);return(BigInt(D)<<BigInt(32))+BigInt(T+this[++O]*Ar(2,8)+this[++O]*Ar(2,16)+this[++O]*Ar(2,24))}),S.prototype.readBigInt64BE=k(function(O){O=O>>>0,jt(O,"offset");const T=this[O],oe=this[O+7];(T===void 0||oe===void 0)&&Dt(O,this.length-8);const D=(T<<24)+this[++O]*Ar(2,16)+this[++O]*Ar(2,8)+this[++O];return(BigInt(D)<<BigInt(32))+BigInt(this[++O]*Ar(2,24)+this[++O]*Ar(2,16)+this[++O]*Ar(2,8)+oe)}),S.prototype.readFloatLE=function(O,T){return O=O>>>0,T||Je(O,4,this.length),v.read(this,O,!0,23,4)},S.prototype.readFloatBE=function(O,T){return O=O>>>0,T||Je(O,4,this.length),v.read(this,O,!1,23,4)},S.prototype.readDoubleLE=function(O,T){return O=O>>>0,T||Je(O,8,this.length),v.read(this,O,!0,52,8)},S.prototype.readDoubleBE=function(O,T){return O=O>>>0,T||Je(O,8,this.length),v.read(this,O,!1,52,8)};function ut($,O,T,oe,D,_){if(!S.isBuffer($))throw new TypeError('"buffer" argument must be a Buffer instance');if(O>D||O<_)throw new RangeError('"value" argument is out of bounds');if(T+oe>$.length)throw new RangeError("Index out of range")}S.prototype.writeUintLE=S.prototype.writeUIntLE=function(O,T,oe,D){if(O=+O,T=T>>>0,oe=oe>>>0,!D){const te=Math.pow(2,8*oe)-1;ut(this,O,T,oe,te,0)}let _=1,fe=0;for(this[T]=O&255;++fe<oe&&(_*=256);)this[T+fe]=O/_&255;return T+oe},S.prototype.writeUintBE=S.prototype.writeUIntBE=function(O,T,oe,D){if(O=+O,T=T>>>0,oe=oe>>>0,!D){const te=Math.pow(2,8*oe)-1;ut(this,O,T,oe,te,0)}let _=oe-1,fe=1;for(this[T+_]=O&255;--_>=0&&(fe*=256);)this[T+_]=O/fe&255;return T+oe},S.prototype.writeUint8=S.prototype.writeUInt8=function(O,T,oe){return O=+O,T=T>>>0,oe||ut(this,O,T,1,255,0),this[T]=O&255,T+1},S.prototype.writeUint16LE=S.prototype.writeUInt16LE=function(O,T,oe){return O=+O,T=T>>>0,oe||ut(this,O,T,2,65535,0),this[T]=O&255,this[T+1]=O>>>8,T+2},S.prototype.writeUint16BE=S.prototype.writeUInt16BE=function(O,T,oe){return O=+O,T=T>>>0,oe||ut(this,O,T,2,65535,0),this[T]=O>>>8,this[T+1]=O&255,T+2},S.prototype.writeUint32LE=S.prototype.writeUInt32LE=function(O,T,oe){return O=+O,T=T>>>0,oe||ut(this,O,T,4,4294967295,0),this[T+3]=O>>>24,this[T+2]=O>>>16,this[T+1]=O>>>8,this[T]=O&255,T+4},S.prototype.writeUint32BE=S.prototype.writeUInt32BE=function(O,T,oe){return O=+O,T=T>>>0,oe||ut(this,O,T,4,4294967295,0),this[T]=O>>>24,this[T+1]=O>>>16,this[T+2]=O>>>8,this[T+3]=O&255,T+4};function ft($,O,T,oe,D){St(O,oe,D,$,T,7);let _=Number(O&BigInt(4294967295));$[T++]=_,_=_>>8,$[T++]=_,_=_>>8,$[T++]=_,_=_>>8,$[T++]=_;let fe=Number(O>>BigInt(32)&BigInt(4294967295));return $[T++]=fe,fe=fe>>8,$[T++]=fe,fe=fe>>8,$[T++]=fe,fe=fe>>8,$[T++]=fe,T}function yt($,O,T,oe,D){St(O,oe,D,$,T,7);let _=Number(O&BigInt(4294967295));$[T+7]=_,_=_>>8,$[T+6]=_,_=_>>8,$[T+5]=_,_=_>>8,$[T+4]=_;let fe=Number(O>>BigInt(32)&BigInt(4294967295));return $[T+3]=fe,fe=fe>>8,$[T+2]=fe,fe=fe>>8,$[T+1]=fe,fe=fe>>8,$[T]=fe,T+8}S.prototype.writeBigUInt64LE=k(function(O,T=0){return ft(this,O,T,BigInt(0),BigInt("0xffffffffffffffff"))}),S.prototype.writeBigUInt64BE=k(function(O,T=0){return yt(this,O,T,BigInt(0),BigInt("0xffffffffffffffff"))}),S.prototype.writeIntLE=function(O,T,oe,D){if(O=+O,T=T>>>0,!D){const ce=Math.pow(2,8*oe-1);ut(this,O,T,oe,ce-1,-ce)}let _=0,fe=1,te=0;for(this[T]=O&255;++_<oe&&(fe*=256);)O<0&&te===0&&this[T+_-1]!==0&&(te=1),this[T+_]=(O/fe>>0)-te&255;return T+oe},S.prototype.writeIntBE=function(O,T,oe,D){if(O=+O,T=T>>>0,!D){const ce=Math.pow(2,8*oe-1);ut(this,O,T,oe,ce-1,-ce)}let _=oe-1,fe=1,te=0;for(this[T+_]=O&255;--_>=0&&(fe*=256);)O<0&&te===0&&this[T+_+1]!==0&&(te=1),this[T+_]=(O/fe>>0)-te&255;return T+oe},S.prototype.writeInt8=function(O,T,oe){return O=+O,T=T>>>0,oe||ut(this,O,T,1,127,-128),O<0&&(O=255+O+1),this[T]=O&255,T+1},S.prototype.writeInt16LE=function(O,T,oe){return O=+O,T=T>>>0,oe||ut(this,O,T,2,32767,-32768),this[T]=O&255,this[T+1]=O>>>8,T+2},S.prototype.writeInt16BE=function(O,T,oe){return O=+O,T=T>>>0,oe||ut(this,O,T,2,32767,-32768),this[T]=O>>>8,this[T+1]=O&255,T+2},S.prototype.writeInt32LE=function(O,T,oe){return O=+O,T=T>>>0,oe||ut(this,O,T,4,2147483647,-2147483648),this[T]=O&255,this[T+1]=O>>>8,this[T+2]=O>>>16,this[T+3]=O>>>24,T+4},S.prototype.writeInt32BE=function(O,T,oe){return O=+O,T=T>>>0,oe||ut(this,O,T,4,2147483647,-2147483648),O<0&&(O=4294967295+O+1),this[T]=O>>>24,this[T+1]=O>>>16,this[T+2]=O>>>8,this[T+3]=O&255,T+4},S.prototype.writeBigInt64LE=k(function(O,T=0){return ft(this,O,T,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),S.prototype.writeBigInt64BE=k(function(O,T=0){return yt(this,O,T,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Qe($,O,T,oe,D,_){if(T+oe>$.length)throw new RangeError("Index out of range");if(T<0)throw new RangeError("Index out of range")}function nt($,O,T,oe,D){return O=+O,T=T>>>0,D||Qe($,O,T,4,34028234663852886e22,-34028234663852886e22),v.write($,O,T,oe,23,4),T+4}S.prototype.writeFloatLE=function(O,T,oe){return nt(this,O,T,!0,oe)},S.prototype.writeFloatBE=function(O,T,oe){return nt(this,O,T,!1,oe)};function ct($,O,T,oe,D){return O=+O,T=T>>>0,D||Qe($,O,T,8,17976931348623157e292,-17976931348623157e292),v.write($,O,T,oe,52,8),T+8}S.prototype.writeDoubleLE=function(O,T,oe){return ct(this,O,T,!0,oe)},S.prototype.writeDoubleBE=function(O,T,oe){return ct(this,O,T,!1,oe)},S.prototype.copy=function(O,T,oe,D){if(!S.isBuffer(O))throw new TypeError("argument should be a Buffer");if(oe||(oe=0),!D&&D!==0&&(D=this.length),T>=O.length&&(T=O.length),T||(T=0),D>0&&D<oe&&(D=oe),D===oe||O.length===0||this.length===0)return 0;if(T<0)throw new RangeError("targetStart out of bounds");if(oe<0||oe>=this.length)throw new RangeError("Index out of range");if(D<0)throw new RangeError("sourceEnd out of bounds");D>this.length&&(D=this.length),O.length-T<D-oe&&(D=O.length-T+oe);const _=D-oe;return this===O&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(T,oe,D):Uint8Array.prototype.set.call(O,this.subarray(oe,D),T),_},S.prototype.fill=function(O,T,oe,D){if(typeof O=="string"){if(typeof T=="string"?(D=T,T=0,oe=this.length):typeof oe=="string"&&(D=oe,oe=this.length),D!==void 0&&typeof D!="string")throw new TypeError("encoding must be a string");if(typeof D=="string"&&!S.isEncoding(D))throw new TypeError("Unknown encoding: "+D);if(O.length===1){const fe=O.charCodeAt(0);(D==="utf8"&&fe<128||D==="latin1")&&(O=fe)}}else typeof O=="number"?O=O&255:typeof O=="boolean"&&(O=Number(O));if(T<0||this.length<T||this.length<oe)throw new RangeError("Out of range index");if(oe<=T)return this;T=T>>>0,oe=oe===void 0?this.length:oe>>>0,O||(O=0);let _;if(typeof O=="number")for(_=T;_<oe;++_)this[_]=O;else{const fe=S.isBuffer(O)?O:S.from(O,D),te=fe.length;if(te===0)throw new TypeError('The value "'+O+'" is invalid for argument "value"');for(_=0;_<oe-T;++_)this[_+T]=fe[_%te]}return this};const dt={};function st($,O,T){dt[$]=class extends T{constructor(){super();Object.defineProperty(this,"message",{value:O.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${$}]`,this.stack,delete this.name}get code(){return $}set code(D){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:D,writable:!0})}toString(){return`${this.name} [${$}]: ${this.message}`}}}st("ERR_BUFFER_OUT_OF_BOUNDS",function($){return $?`${$} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),st("ERR_INVALID_ARG_TYPE",function($,O){return`The "${$}" argument must be of type number. Received type ${typeof O}`},TypeError),st("ERR_OUT_OF_RANGE",function($,O,T){let oe=`The value of "${$}" is out of range.`,D=T;return Number.isInteger(T)&&Math.abs(T)>Ar(2,32)?D=Ot(String(T)):typeof T=="bigint"&&(D=String(T),(T>Ar(BigInt(2),BigInt(32))||T<-Ar(BigInt(2),BigInt(32)))&&(D=Ot(D)),D+="n"),oe+=` It must be ${O}. Received ${D}`,oe},RangeError);function Ot($){let O="",T=$.length;const oe=$[0]==="-"?1:0;for(;T>=oe+4;T-=3)O=`_${$.slice(T-3,T)}${O}`;return`${$.slice(0,T)}${O}`}function Et($,O,T){jt(O,"offset"),($[O]===void 0||$[O+T]===void 0)&&Dt(O,$.length-(T+1))}function St($,O,T,oe,D,_){if($>T||$<O){const fe=typeof O=="bigint"?"n":"";let te;throw _>3?O===0||O===BigInt(0)?te=`>= 0${fe} and < 2${fe} ** ${(_+1)*8}${fe}`:te=`>= -(2${fe} ** ${(_+1)*8-1}${fe}) and < 2 ** ${(_+1)*8-1}${fe}`:te=`>= ${O}${fe} and <= ${T}${fe}`,new dt.ERR_OUT_OF_RANGE("value",te,$)}Et(oe,D,_)}function jt($,O){if(typeof $!="number")throw new dt.ERR_INVALID_ARG_TYPE(O,"number",$)}function Dt($,O,T){throw Math.floor($)!==$?(jt($,T),new dt.ERR_OUT_OF_RANGE(T||"offset","an integer",$)):O<0?new dt.ERR_BUFFER_OUT_OF_BOUNDS:new dt.ERR_OUT_OF_RANGE(T||"offset",`>= ${T?1:0} and <= ${O}`,$)}const Nt=/[^+/0-9A-Za-z-_]/g;function mt($){if($=$.split("=")[0],$=$.trim().replace(Nt,""),$.length<2)return"";for(;$.length%4!=0;)$=$+"=";return $}function It($,O){O=O||1/0;let T;const oe=$.length;let D=null;const _=[];for(let fe=0;fe<oe;++fe){if(T=$.charCodeAt(fe),T>55295&&T<57344){if(!D){if(T>56319){(O-=3)>-1&&_.push(239,191,189);continue}else if(fe+1===oe){(O-=3)>-1&&_.push(239,191,189);continue}D=T;continue}if(T<56320){(O-=3)>-1&&_.push(239,191,189),D=T;continue}T=(D-55296<<10|T-56320)+65536}else D&&(O-=3)>-1&&_.push(239,191,189);if(D=null,T<128){if((O-=1)<0)break;_.push(T)}else if(T<2048){if((O-=2)<0)break;_.push(T>>6|192,T&63|128)}else if(T<65536){if((O-=3)<0)break;_.push(T>>12|224,T>>6&63|128,T&63|128)}else if(T<1114112){if((O-=4)<0)break;_.push(T>>18|240,T>>12&63|128,T>>6&63|128,T&63|128)}else throw new Error("Invalid code point")}return _}function ht($){const O=[];for(let T=0;T<$.length;++T)O.push($.charCodeAt(T)&255);return O}function zt($,O){let T,oe,D;const _=[];for(let fe=0;fe<$.length&&!((O-=2)<0);++fe)T=$.charCodeAt(fe),oe=T>>8,D=T%256,_.push(D),_.push(oe);return _}function Kt($){return c.toByteArray(mt($))}function sr($,O,T,oe){let D;for(D=0;D<oe&&!(D+T>=O.length||D>=$.length);++D)O[D+T]=$[D];return D}function Mt($,O){return $ instanceof O||$!=null&&$.constructor!=null&&$.constructor.name!=null&&$.constructor.name===O.name}function Wt($){return $!==$}const Bt=function(){const $="0123456789abcdef",O=new Array(256);for(let T=0;T<16;++T){const oe=T*16;for(let D=0;D<16;++D)O[oe+D]=$[T]+$[D]}return O}();function k($){return typeof BigInt=="undefined"?Be:$}function Be(){throw new Error("BigInt not supported")}},24269:p=>{"use strict";var I=String.prototype.replace,a=/%20/g,c={RFC1738:"RFC1738",RFC3986:"RFC3986"};p.exports={default:c.RFC3986,formatters:{RFC1738:function(v){return I.call(v,a,"+")},RFC3986:function(v){return String(v)}},RFC1738:c.RFC1738,RFC3986:c.RFC3986}},92495:(p,I,a)=>{"use strict";var c=a(57347),v=a(73777),m=a(24269);p.exports={formats:m,parse:v,stringify:c}},73777:(p,I,a)=>{"use strict";var c=a(58760),v=Object.prototype.hasOwnProperty,m=Array.isArray,h={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:c.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},b=function(K){return K.replace(/&#(\d+);/g,function(M,Y){return String.fromCharCode(parseInt(Y,10))})},C=function(K,M){return K&&typeof K=="string"&&M.comma&&K.indexOf(",")>-1?K.split(","):K},S="utf8=%26%2310003%3B",L="utf8=%E2%9C%93",N=function(M,Y){var R={},E=Y.ignoreQueryPrefix?M.replace(/^\?/,""):M,V=Y.parameterLimit===1/0?void 0:Y.parameterLimit,G=E.split(Y.delimiter,V),Z=-1,X,z=Y.charset;if(Y.charsetSentinel)for(X=0;X<G.length;++X)G[X].indexOf("utf8=")===0&&(G[X]===L?z="utf-8":G[X]===S&&(z="iso-8859-1"),Z=X,X=G.length);for(X=0;X<G.length;++X)if(X!==Z){var ue=G[X],q=ue.indexOf("]="),ne=q===-1?ue.indexOf("="):q+1,ge,me;ne===-1?(ge=Y.decoder(ue,h.decoder,z,"key"),me=Y.strictNullHandling?null:""):(ge=Y.decoder(ue.slice(0,ne),h.decoder,z,"key"),me=c.maybeMap(C(ue.slice(ne+1),Y),function(he){return Y.decoder(he,h.decoder,z,"value")})),me&&Y.interpretNumericEntities&&z==="iso-8859-1"&&(me=b(me)),ue.indexOf("[]=")>-1&&(me=m(me)?[me]:me),v.call(R,ge)?R[ge]=c.combine(R[ge],me):R[ge]=me}return R},j=function(K,M,Y,R){for(var E=R?M:C(M,Y),V=K.length-1;V>=0;--V){var G,Z=K[V];if(Z==="[]"&&Y.parseArrays)G=[].concat(E);else{G=Y.plainObjects?Object.create(null):{};var X=Z.charAt(0)==="["&&Z.charAt(Z.length-1)==="]"?Z.slice(1,-1):Z,z=parseInt(X,10);!Y.parseArrays&&X===""?G={0:E}:!isNaN(z)&&Z!==X&&String(z)===X&&z>=0&&Y.parseArrays&&z<=Y.arrayLimit?(G=[],G[z]=E):G[X]=E}E=G}return E},U=function(M,Y,R,E){if(!!M){var V=R.allowDots?M.replace(/\.([^.[]+)/g,"[$1]"):M,G=/(\[[^[\]]*])/,Z=/(\[[^[\]]*])/g,X=R.depth>0&&G.exec(V),z=X?V.slice(0,X.index):V,ue=[];if(z){if(!R.plainObjects&&v.call(Object.prototype,z)&&!R.allowPrototypes)return;ue.push(z)}for(var q=0;R.depth>0&&(X=Z.exec(V))!==null&&q<R.depth;){if(q+=1,!R.plainObjects&&v.call(Object.prototype,X[1].slice(1,-1))&&!R.allowPrototypes)return;ue.push(X[1])}return X&&ue.push("["+V.slice(X.index)+"]"),j(ue,Y,R,E)}},Q=function(M){if(!M)return h;if(M.decoder!==null&&M.decoder!==void 0&&typeof M.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof M.charset!="undefined"&&M.charset!=="utf-8"&&M.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var Y=typeof M.charset=="undefined"?h.charset:M.charset;return{allowDots:typeof M.allowDots=="undefined"?h.allowDots:!!M.allowDots,allowPrototypes:typeof M.allowPrototypes=="boolean"?M.allowPrototypes:h.allowPrototypes,allowSparse:typeof M.allowSparse=="boolean"?M.allowSparse:h.allowSparse,arrayLimit:typeof M.arrayLimit=="number"?M.arrayLimit:h.arrayLimit,charset:Y,charsetSentinel:typeof M.charsetSentinel=="boolean"?M.charsetSentinel:h.charsetSentinel,comma:typeof M.comma=="boolean"?M.comma:h.comma,decoder:typeof M.decoder=="function"?M.decoder:h.decoder,delimiter:typeof M.delimiter=="string"||c.isRegExp(M.delimiter)?M.delimiter:h.delimiter,depth:typeof M.depth=="number"||M.depth===!1?+M.depth:h.depth,ignoreQueryPrefix:M.ignoreQueryPrefix===!0,interpretNumericEntities:typeof M.interpretNumericEntities=="boolean"?M.interpretNumericEntities:h.interpretNumericEntities,parameterLimit:typeof M.parameterLimit=="number"?M.parameterLimit:h.parameterLimit,parseArrays:M.parseArrays!==!1,plainObjects:typeof M.plainObjects=="boolean"?M.plainObjects:h.plainObjects,strictNullHandling:typeof M.strictNullHandling=="boolean"?M.strictNullHandling:h.strictNullHandling}};p.exports=function(K,M){var Y=Q(M);if(K===""||K===null||typeof K=="undefined")return Y.plainObjects?Object.create(null):{};for(var R=typeof K=="string"?N(K,Y):K,E=Y.plainObjects?Object.create(null):{},V=Object.keys(R),G=0;G<V.length;++G){var Z=V[G],X=U(Z,R[Z],Y,typeof K=="string");E=c.merge(E,X,Y)}return Y.allowSparse===!0?E:c.compact(E)}},57347:(p,I,a)=>{"use strict";var c=a(37478),v=a(58760),m=a(24269),h=Object.prototype.hasOwnProperty,b={brackets:function(R){return R+"[]"},comma:"comma",indices:function(R,E){return R+"["+E+"]"},repeat:function(R){return R}},C=Array.isArray,S=Array.prototype.push,L=function(Y,R){S.apply(Y,C(R)?R:[R])},N=Date.prototype.toISOString,j=m.default,U={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:v.encode,encodeValuesOnly:!1,format:j,formatter:m.formatters[j],indices:!1,serializeDate:function(R){return N.call(R)},skipNulls:!1,strictNullHandling:!1},Q=function(R){return typeof R=="string"||typeof R=="number"||typeof R=="boolean"||typeof R=="symbol"||typeof R=="bigint"},K=function Y(R,E,V,G,Z,X,z,ue,q,ne,ge,me,he,le,ie){var Oe=R;if(ie.has(R))throw new RangeError("Cyclic object value");if(typeof z=="function"?Oe=z(E,Oe):Oe instanceof Date?Oe=ne(Oe):V==="comma"&&C(Oe)&&(Oe=v.maybeMap(Oe,function(Qe){return Qe instanceof Date?ne(Qe):Qe})),Oe===null){if(G)return X&&!he?X(E,U.encoder,le,"key",ge):E;Oe=""}if(Q(Oe)||v.isBuffer(Oe)){if(X){var Pe=he?E:X(E,U.encoder,le,"key",ge);return[me(Pe)+"="+me(X(Oe,U.encoder,le,"value",ge))]}return[me(E)+"="+me(String(Oe))]}var Te=[];if(typeof Oe=="undefined")return Te;var Ce;if(V==="comma"&&C(Oe))Ce=[{value:Oe.length>0?Oe.join(",")||null:void 0}];else if(C(z))Ce=z;else{var Xe=Object.keys(Oe);Ce=ue?Xe.sort(ue):Xe}for(var He=0;He<Ce.length;++He){var Je=Ce[He],ut=typeof Je=="object"&&Je.value!==void 0?Je.value:Oe[Je];if(!(Z&&ut===null)){var ft=C(Oe)?typeof V=="function"?V(E,Je):E:E+(q?"."+Je:"["+Je+"]");ie.set(R,!0);var yt=c();L(Te,Y(ut,ft,V,G,Z,X,z,ue,q,ne,ge,me,he,le,yt))}}return Te},M=function(R){if(!R)return U;if(R.encoder!==null&&R.encoder!==void 0&&typeof R.encoder!="function")throw new TypeError("Encoder has to be a function.");var E=R.charset||U.charset;if(typeof R.charset!="undefined"&&R.charset!=="utf-8"&&R.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var V=m.default;if(typeof R.format!="undefined"){if(!h.call(m.formatters,R.format))throw new TypeError("Unknown format option provided.");V=R.format}var G=m.formatters[V],Z=U.filter;return(typeof R.filter=="function"||C(R.filter))&&(Z=R.filter),{addQueryPrefix:typeof R.addQueryPrefix=="boolean"?R.addQueryPrefix:U.addQueryPrefix,allowDots:typeof R.allowDots=="undefined"?U.allowDots:!!R.allowDots,charset:E,charsetSentinel:typeof R.charsetSentinel=="boolean"?R.charsetSentinel:U.charsetSentinel,delimiter:typeof R.delimiter=="undefined"?U.delimiter:R.delimiter,encode:typeof R.encode=="boolean"?R.encode:U.encode,encoder:typeof R.encoder=="function"?R.encoder:U.encoder,encodeValuesOnly:typeof R.encodeValuesOnly=="boolean"?R.encodeValuesOnly:U.encodeValuesOnly,filter:Z,format:V,formatter:G,serializeDate:typeof R.serializeDate=="function"?R.serializeDate:U.serializeDate,skipNulls:typeof R.skipNulls=="boolean"?R.skipNulls:U.skipNulls,sort:typeof R.sort=="function"?R.sort:null,strictNullHandling:typeof R.strictNullHandling=="boolean"?R.strictNullHandling:U.strictNullHandling}};p.exports=function(Y,R){var E=Y,V=M(R),G,Z;typeof V.filter=="function"?(Z=V.filter,E=Z("",E)):C(V.filter)&&(Z=V.filter,G=Z);var X=[];if(typeof E!="object"||E===null)return"";var z;R&&R.arrayFormat in b?z=R.arrayFormat:R&&"indices"in R?z=R.indices?"indices":"repeat":z="indices";var ue=b[z];G||(G=Object.keys(E)),V.sort&&G.sort(V.sort);for(var q=c(),ne=0;ne<G.length;++ne){var ge=G[ne];V.skipNulls&&E[ge]===null||L(X,K(E[ge],ge,ue,V.strictNullHandling,V.skipNulls,V.encode?V.encoder:null,V.filter,V.sort,V.allowDots,V.serializeDate,V.format,V.formatter,V.encodeValuesOnly,V.charset,q))}var me=X.join(V.delimiter),he=V.addQueryPrefix===!0?"?":"";return V.charsetSentinel&&(V.charset==="iso-8859-1"?he+="utf8=%26%2310003%3B&":he+="utf8=%E2%9C%93&"),me.length>0?he+me:""}},58760:(p,I,a)=>{"use strict";var c=a(24269),v=Object.prototype.hasOwnProperty,m=Array.isArray,h=function(){for(var R=[],E=0;E<256;++E)R.push("%"+((E<16?"0":"")+E.toString(16)).toUpperCase());return R}(),b=function(E){for(;E.length>1;){var V=E.pop(),G=V.obj[V.prop];if(m(G)){for(var Z=[],X=0;X<G.length;++X)typeof G[X]!="undefined"&&Z.push(G[X]);V.obj[V.prop]=Z}}},C=function(E,V){for(var G=V&&V.plainObjects?Object.create(null):{},Z=0;Z<E.length;++Z)typeof E[Z]!="undefined"&&(G[Z]=E[Z]);return G},S=function R(E,V,G){if(!V)return E;if(typeof V!="object"){if(m(E))E.push(V);else if(E&&typeof E=="object")(G&&(G.plainObjects||G.allowPrototypes)||!v.call(Object.prototype,V))&&(E[V]=!0);else return[E,V];return E}if(!E||typeof E!="object")return[E].concat(V);var Z=E;return m(E)&&!m(V)&&(Z=C(E,G)),m(E)&&m(V)?(V.forEach(function(X,z){if(v.call(E,z)){var ue=E[z];ue&&typeof ue=="object"&&X&&typeof X=="object"?E[z]=R(ue,X,G):E.push(X)}else E[z]=X}),E):Object.keys(V).reduce(function(X,z){var ue=V[z];return v.call(X,z)?X[z]=R(X[z],ue,G):X[z]=ue,X},Z)},L=function(E,V){return Object.keys(V).reduce(function(G,Z){return G[Z]=V[Z],G},E)},N=function(R,E,V){var G=R.replace(/\+/g," ");if(V==="iso-8859-1")return G.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(G)}catch(Z){return G}},j=function(E,V,G,Z,X){if(E.length===0)return E;var z=E;if(typeof E=="symbol"?z=Symbol.prototype.toString.call(E):typeof E!="string"&&(z=String(E)),G==="iso-8859-1")return escape(z).replace(/%u[0-9a-f]{4}/gi,function(ge){return"%26%23"+parseInt(ge.slice(2),16)+"%3B"});for(var ue="",q=0;q<z.length;++q){var ne=z.charCodeAt(q);if(ne===45||ne===46||ne===95||ne===126||ne>=48&&ne<=57||ne>=65&&ne<=90||ne>=97&&ne<=122||X===c.RFC1738&&(ne===40||ne===41)){ue+=z.charAt(q);continue}if(ne<128){ue=ue+h[ne];continue}if(ne<2048){ue=ue+(h[192|ne>>6]+h[128|ne&63]);continue}if(ne<55296||ne>=57344){ue=ue+(h[224|ne>>12]+h[128|ne>>6&63]+h[128|ne&63]);continue}q+=1,ne=65536+((ne&1023)<<10|z.charCodeAt(q)&1023),ue+=h[240|ne>>18]+h[128|ne>>12&63]+h[128|ne>>6&63]+h[128|ne&63]}return ue},U=function(E){for(var V=[{obj:{o:E},prop:"o"}],G=[],Z=0;Z<V.length;++Z)for(var X=V[Z],z=X.obj[X.prop],ue=Object.keys(z),q=0;q<ue.length;++q){var ne=ue[q],ge=z[ne];typeof ge=="object"&&ge!==null&&G.indexOf(ge)===-1&&(V.push({obj:z,prop:ne}),G.push(ge))}return b(V),E},Q=function(E){return Object.prototype.toString.call(E)==="[object RegExp]"},K=function(E){return!E||typeof E!="object"?!1:!!(E.constructor&&E.constructor.isBuffer&&E.constructor.isBuffer(E))},M=function(E,V){return[].concat(E,V)},Y=function(E,V){if(m(E)){for(var G=[],Z=0;Z<E.length;Z+=1)G.push(V(E[Z]));return G}return V(E)};p.exports={arrayToObject:C,assign:L,combine:M,compact:U,decode:N,encode:j,isBuffer:K,isRegExp:Q,maybeMap:Y,merge:S}},13692:p=>{var I=p.exports=function(M){return new a(M)};function a(M){this.value=M}a.prototype.get=function(M){for(var Y=this.value,R=0;R<M.length;R++){var E=M[R];if(!Y||!K.call(Y,E)){Y=void 0;break}Y=Y[E]}return Y},a.prototype.has=function(M){for(var Y=this.value,R=0;R<M.length;R++){var E=M[R];if(!Y||!K.call(Y,E))return!1;Y=Y[E]}return!0},a.prototype.set=function(M,Y){for(var R=this.value,E=0;E<M.length-1;E++){var V=M[E];K.call(R,V)||(R[V]={}),R=R[V]}return R[M[E]]=Y,Y},a.prototype.map=function(M){return c(this.value,M,!0)},a.prototype.forEach=function(M){return this.value=c(this.value,M,!1),this.value},a.prototype.reduce=function(M,Y){var R=arguments.length===1,E=R?this.value:Y;return this.forEach(function(V){(!this.isRoot||!R)&&(E=M.call(this,E,V))}),E},a.prototype.paths=function(){var M=[];return this.forEach(function(Y){M.push(this.path)}),M},a.prototype.nodes=function(){var M=[];return this.forEach(function(Y){M.push(this.node)}),M},a.prototype.clone=function(){var M=[],Y=[];return function R(E){for(var V=0;V<M.length;V++)if(M[V]===E)return Y[V];if(typeof E=="object"&&E!==null){var G=v(E);return M.push(E),Y.push(G),Q(m(E),function(Z){G[Z]=R(E[Z])}),M.pop(),Y.pop(),G}else return E}(this.value)};function c(M,Y,R){var E=[],V=[],G=!0;return function Z(X){var z=R?v(X):X,ue={},q=!0,ne={node:z,node_:X,path:[].concat(E),parent:V[V.length-1],parents:V,key:E.slice(-1)[0],isRoot:E.length===0,level:E.length,circular:null,update:function(he,le){ne.isRoot||(ne.parent.node[ne.key]=he),ne.node=he,le&&(q=!1)},delete:function(he){delete ne.parent.node[ne.key],he&&(q=!1)},remove:function(he){U(ne.parent.node)?ne.parent.node.splice(ne.key,1):delete ne.parent.node[ne.key],he&&(q=!1)},keys:null,before:function(he){ue.before=he},after:function(he){ue.after=he},pre:function(he){ue.pre=he},post:function(he){ue.post=he},stop:function(){G=!1},block:function(){q=!1}};if(!G)return ne;function ge(){if(typeof ne.node=="object"&&ne.node!==null){(!ne.keys||ne.node_!==ne.node)&&(ne.keys=m(ne.node)),ne.isLeaf=ne.keys.length==0;for(var he=0;he<V.length;he++)if(V[he].node_===X){ne.circular=V[he];break}}else ne.isLeaf=!0,ne.keys=null;ne.notLeaf=!ne.isLeaf,ne.notRoot=!ne.isRoot}ge();var me=Y.call(ne,ne.node);return me!==void 0&&ne.update&&ne.update(me),ue.before&&ue.before.call(ne,ne.node),q&&(typeof ne.node=="object"&&ne.node!==null&&!ne.circular&&(V.push(ne),ge(),Q(ne.keys,function(he,le){E.push(he),ue.pre&&ue.pre.call(ne,ne.node[he],he);var ie=Z(ne.node[he]);R&&K.call(ne.node,he)&&(ne.node[he]=ie.node),ie.isLast=le==ne.keys.length-1,ie.isFirst=le==0,ue.post&&ue.post.call(ne,ie),E.pop()}),V.pop()),ue.after&&ue.after.call(ne,ne.node)),ne}(M).node}function v(M){if(typeof M=="object"&&M!==null){var Y;if(U(M))Y=[];else if(b(M))Y=new Date(M.getTime?M.getTime():M);else if(C(M))Y=new RegExp(M);else if(S(M))Y={message:M.message};else if(L(M))Y=new Boolean(M);else if(N(M))Y=new Number(M);else if(j(M))Y=new String(M);else if(Object.create&&Object.getPrototypeOf)Y=Object.create(Object.getPrototypeOf(M));else if(M.constructor===Object)Y={};else{var R=M.constructor&&M.constructor.prototype||M.__proto__||{},E=function(){};E.prototype=R,Y=new E}return Q(m(M),function(V){Y[V]=M[V]}),Y}else return M}var m=Object.keys||function(Y){var R=[];for(var E in Y)R.push(E);return R};function h(M){return Object.prototype.toString.call(M)}function b(M){return h(M)==="[object Date]"}function C(M){return h(M)==="[object RegExp]"}function S(M){return h(M)==="[object Error]"}function L(M){return h(M)==="[object Boolean]"}function N(M){return h(M)==="[object Number]"}function j(M){return h(M)==="[object String]"}var U=Array.isArray||function(Y){return Object.prototype.toString.call(Y)==="[object Array]"},Q=function(M,Y){if(M.forEach)return M.forEach(Y);for(var R=0;R<M.length;R++)Y(M[R],R,M)};Q(m(a.prototype),function(M){I[M]=function(Y){var R=[].slice.call(arguments,1),E=new a(Y);return E[M].apply(E,R)}});var K=Object.hasOwnProperty||function(M,Y){return Y in M}},56089:p=>{"use strict";p.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg=="},17735:p=>{"use strict";p.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII="},96192:p=>{"use strict";p.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC"},71090:p=>{"use strict";p.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII="},46050:p=>{"use strict";p.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII="},24654:()=>{}}]);
532
+ */const c=a(79742),v=a(80645),m=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;I.Buffer=S,I.SlowBuffer=V,I.INSPECT_MAX_BYTES=50;const h=2147483647;I.kMaxLength=h,S.TYPED_ARRAY_SUPPORT=b(),!S.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function b(){try{const $=new Uint8Array(1),O={foo:function(){return 42}};return Object.setPrototypeOf(O,Uint8Array.prototype),Object.setPrototypeOf($,O),$.foo()===42}catch($){return!1}}Object.defineProperty(S.prototype,"parent",{enumerable:!0,get:function(){if(!!S.isBuffer(this))return this.buffer}}),Object.defineProperty(S.prototype,"offset",{enumerable:!0,get:function(){if(!!S.isBuffer(this))return this.byteOffset}});function C($){if($>h)throw new RangeError('The value "'+$+'" is invalid for option "size"');const O=new Uint8Array($);return Object.setPrototypeOf(O,S.prototype),O}function S($,O,T){if(typeof $=="number"){if(typeof O=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return U($)}return L($,O,T)}S.poolSize=8192;function L($,O,T){if(typeof $=="string")return Q($,O);if(ArrayBuffer.isView($))return M($);if($==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof $);if(Mt($,ArrayBuffer)||$&&Mt($.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Mt($,SharedArrayBuffer)||$&&Mt($.buffer,SharedArrayBuffer)))return Y($,O,T);if(typeof $=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const oe=$.valueOf&&$.valueOf();if(oe!=null&&oe!==$)return S.from(oe,O,T);const D=R($);if(D)return D;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof $[Symbol.toPrimitive]=="function")return S.from($[Symbol.toPrimitive]("string"),O,T);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof $)}S.from=function($,O,T){return L($,O,T)},Object.setPrototypeOf(S.prototype,Uint8Array.prototype),Object.setPrototypeOf(S,Uint8Array);function N($){if(typeof $!="number")throw new TypeError('"size" argument must be of type number');if($<0)throw new RangeError('The value "'+$+'" is invalid for option "size"')}function j($,O,T){return N($),$<=0?C($):O!==void 0?typeof T=="string"?C($).fill(O,T):C($).fill(O):C($)}S.alloc=function($,O,T){return j($,O,T)};function U($){return N($),C($<0?0:E($)|0)}S.allocUnsafe=function($){return U($)},S.allocUnsafeSlow=function($){return U($)};function Q($,O){if((typeof O!="string"||O==="")&&(O="utf8"),!S.isEncoding(O))throw new TypeError("Unknown encoding: "+O);const T=G($,O)|0;let oe=C(T);const D=oe.write($,O);return D!==T&&(oe=oe.slice(0,D)),oe}function K($){const O=$.length<0?0:E($.length)|0,T=C(O);for(let oe=0;oe<O;oe+=1)T[oe]=$[oe]&255;return T}function M($){if(Mt($,Uint8Array)){const O=new Uint8Array($);return Y(O.buffer,O.byteOffset,O.byteLength)}return K($)}function Y($,O,T){if(O<0||$.byteLength<O)throw new RangeError('"offset" is outside of buffer bounds');if($.byteLength<O+(T||0))throw new RangeError('"length" is outside of buffer bounds');let oe;return O===void 0&&T===void 0?oe=new Uint8Array($):T===void 0?oe=new Uint8Array($,O):oe=new Uint8Array($,O,T),Object.setPrototypeOf(oe,S.prototype),oe}function R($){if(S.isBuffer($)){const O=E($.length)|0,T=C(O);return T.length===0||$.copy(T,0,0,O),T}if($.length!==void 0)return typeof $.length!="number"||Wt($.length)?C(0):K($);if($.type==="Buffer"&&Array.isArray($.data))return K($.data)}function E($){if($>=h)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h.toString(16)+" bytes");return $|0}function V($){return+$!=$&&($=0),S.alloc(+$)}S.isBuffer=function(O){return O!=null&&O._isBuffer===!0&&O!==S.prototype},S.compare=function(O,T){if(Mt(O,Uint8Array)&&(O=S.from(O,O.offset,O.byteLength)),Mt(T,Uint8Array)&&(T=S.from(T,T.offset,T.byteLength)),!S.isBuffer(O)||!S.isBuffer(T))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(O===T)return 0;let oe=O.length,D=T.length;for(let _=0,fe=Math.min(oe,D);_<fe;++_)if(O[_]!==T[_]){oe=O[_],D=T[_];break}return oe<D?-1:D<oe?1:0},S.isEncoding=function(O){switch(String(O).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},S.concat=function(O,T){if(!Array.isArray(O))throw new TypeError('"list" argument must be an Array of Buffers');if(O.length===0)return S.alloc(0);let oe;if(T===void 0)for(T=0,oe=0;oe<O.length;++oe)T+=O[oe].length;const D=S.allocUnsafe(T);let _=0;for(oe=0;oe<O.length;++oe){let fe=O[oe];if(Mt(fe,Uint8Array))_+fe.length>D.length?(S.isBuffer(fe)||(fe=S.from(fe)),fe.copy(D,_)):Uint8Array.prototype.set.call(D,fe,_);else if(S.isBuffer(fe))fe.copy(D,_);else throw new TypeError('"list" argument must be an Array of Buffers');_+=fe.length}return D};function G($,O){if(S.isBuffer($))return $.length;if(ArrayBuffer.isView($)||Mt($,ArrayBuffer))return $.byteLength;if(typeof $!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof $);const T=$.length,oe=arguments.length>2&&arguments[2]===!0;if(!oe&&T===0)return 0;let D=!1;for(;;)switch(O){case"ascii":case"latin1":case"binary":return T;case"utf8":case"utf-8":return It($).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T*2;case"hex":return T>>>1;case"base64":return Kt($).length;default:if(D)return oe?-1:It($).length;O=(""+O).toLowerCase(),D=!0}}S.byteLength=G;function Z($,O,T){let oe=!1;if((O===void 0||O<0)&&(O=0),O>this.length||((T===void 0||T>this.length)&&(T=this.length),T<=0)||(T>>>=0,O>>>=0,T<=O))return"";for($||($="utf8");;)switch($){case"hex":return Xe(this,O,T);case"utf8":case"utf-8":return ie(this,O,T);case"ascii":return Te(this,O,T);case"latin1":case"binary":return Ce(this,O,T);case"base64":return se(this,O,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return He(this,O,T);default:if(oe)throw new TypeError("Unknown encoding: "+$);$=($+"").toLowerCase(),oe=!0}}S.prototype._isBuffer=!0;function X($,O,T){const oe=$[O];$[O]=$[T],$[T]=oe}S.prototype.swap16=function(){const O=this.length;if(O%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let T=0;T<O;T+=2)X(this,T,T+1);return this},S.prototype.swap32=function(){const O=this.length;if(O%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let T=0;T<O;T+=4)X(this,T,T+3),X(this,T+1,T+2);return this},S.prototype.swap64=function(){const O=this.length;if(O%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let T=0;T<O;T+=8)X(this,T,T+7),X(this,T+1,T+6),X(this,T+2,T+5),X(this,T+3,T+4);return this},S.prototype.toString=function(){const O=this.length;return O===0?"":arguments.length===0?ie(this,0,O):Z.apply(this,arguments)},S.prototype.toLocaleString=S.prototype.toString,S.prototype.equals=function(O){if(!S.isBuffer(O))throw new TypeError("Argument must be a Buffer");return this===O?!0:S.compare(this,O)===0},S.prototype.inspect=function(){let O="";const T=I.INSPECT_MAX_BYTES;return O=this.toString("hex",0,T).replace(/(.{2})/g,"$1 ").trim(),this.length>T&&(O+=" ... "),"<Buffer "+O+">"},m&&(S.prototype[m]=S.prototype.inspect),S.prototype.compare=function(O,T,oe,D,_){if(Mt(O,Uint8Array)&&(O=S.from(O,O.offset,O.byteLength)),!S.isBuffer(O))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof O);if(T===void 0&&(T=0),oe===void 0&&(oe=O?O.length:0),D===void 0&&(D=0),_===void 0&&(_=this.length),T<0||oe>O.length||D<0||_>this.length)throw new RangeError("out of range index");if(D>=_&&T>=oe)return 0;if(D>=_)return-1;if(T>=oe)return 1;if(T>>>=0,oe>>>=0,D>>>=0,_>>>=0,this===O)return 0;let fe=_-D,te=oe-T;const ce=Math.min(fe,te),be=this.slice(D,_),Le=O.slice(T,oe);for(let Re=0;Re<ce;++Re)if(be[Re]!==Le[Re]){fe=be[Re],te=Le[Re];break}return fe<te?-1:te<fe?1:0};function z($,O,T,oe,D){if($.length===0)return-1;if(typeof T=="string"?(oe=T,T=0):T>2147483647?T=2147483647:T<-2147483648&&(T=-2147483648),T=+T,Wt(T)&&(T=D?0:$.length-1),T<0&&(T=$.length+T),T>=$.length){if(D)return-1;T=$.length-1}else if(T<0)if(D)T=0;else return-1;if(typeof O=="string"&&(O=S.from(O,oe)),S.isBuffer(O))return O.length===0?-1:ue($,O,T,oe,D);if(typeof O=="number")return O=O&255,typeof Uint8Array.prototype.indexOf=="function"?D?Uint8Array.prototype.indexOf.call($,O,T):Uint8Array.prototype.lastIndexOf.call($,O,T):ue($,[O],T,oe,D);throw new TypeError("val must be string, number or Buffer")}function ue($,O,T,oe,D){let _=1,fe=$.length,te=O.length;if(oe!==void 0&&(oe=String(oe).toLowerCase(),oe==="ucs2"||oe==="ucs-2"||oe==="utf16le"||oe==="utf-16le")){if($.length<2||O.length<2)return-1;_=2,fe/=2,te/=2,T/=2}function ce(Le,Re){return _===1?Le[Re]:Le.readUInt16BE(Re*_)}let be;if(D){let Le=-1;for(be=T;be<fe;be++)if(ce($,be)===ce(O,Le===-1?0:be-Le)){if(Le===-1&&(Le=be),be-Le+1===te)return Le*_}else Le!==-1&&(be-=be-Le),Le=-1}else for(T+te>fe&&(T=fe-te),be=T;be>=0;be--){let Le=!0;for(let Re=0;Re<te;Re++)if(ce($,be+Re)!==ce(O,Re)){Le=!1;break}if(Le)return be}return-1}S.prototype.includes=function(O,T,oe){return this.indexOf(O,T,oe)!==-1},S.prototype.indexOf=function(O,T,oe){return z(this,O,T,oe,!0)},S.prototype.lastIndexOf=function(O,T,oe){return z(this,O,T,oe,!1)};function q($,O,T,oe){T=Number(T)||0;const D=$.length-T;oe?(oe=Number(oe),oe>D&&(oe=D)):oe=D;const _=O.length;oe>_/2&&(oe=_/2);let fe;for(fe=0;fe<oe;++fe){const te=parseInt(O.substr(fe*2,2),16);if(Wt(te))return fe;$[T+fe]=te}return fe}function ne($,O,T,oe){return sr(It(O,$.length-T),$,T,oe)}function ge($,O,T,oe){return sr(ht(O),$,T,oe)}function me($,O,T,oe){return sr(Kt(O),$,T,oe)}function pe($,O,T,oe){return sr(zt(O,$.length-T),$,T,oe)}S.prototype.write=function(O,T,oe,D){if(T===void 0)D="utf8",oe=this.length,T=0;else if(oe===void 0&&typeof T=="string")D=T,oe=this.length,T=0;else if(isFinite(T))T=T>>>0,isFinite(oe)?(oe=oe>>>0,D===void 0&&(D="utf8")):(D=oe,oe=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const _=this.length-T;if((oe===void 0||oe>_)&&(oe=_),O.length>0&&(oe<0||T<0)||T>this.length)throw new RangeError("Attempt to write outside buffer bounds");D||(D="utf8");let fe=!1;for(;;)switch(D){case"hex":return q(this,O,T,oe);case"utf8":case"utf-8":return ne(this,O,T,oe);case"ascii":case"latin1":case"binary":return ge(this,O,T,oe);case"base64":return me(this,O,T,oe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pe(this,O,T,oe);default:if(fe)throw new TypeError("Unknown encoding: "+D);D=(""+D).toLowerCase(),fe=!0}},S.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function se($,O,T){return O===0&&T===$.length?c.fromByteArray($):c.fromByteArray($.slice(O,T))}function ie($,O,T){T=Math.min($.length,T);const oe=[];let D=O;for(;D<T;){const _=$[D];let fe=null,te=_>239?4:_>223?3:_>191?2:1;if(D+te<=T){let ce,be,Le,Re;switch(te){case 1:_<128&&(fe=_);break;case 2:ce=$[D+1],(ce&192)==128&&(Re=(_&31)<<6|ce&63,Re>127&&(fe=Re));break;case 3:ce=$[D+1],be=$[D+2],(ce&192)==128&&(be&192)==128&&(Re=(_&15)<<12|(ce&63)<<6|be&63,Re>2047&&(Re<55296||Re>57343)&&(fe=Re));break;case 4:ce=$[D+1],be=$[D+2],Le=$[D+3],(ce&192)==128&&(be&192)==128&&(Le&192)==128&&(Re=(_&15)<<18|(ce&63)<<12|(be&63)<<6|Le&63,Re>65535&&Re<1114112&&(fe=Re))}}fe===null?(fe=65533,te=1):fe>65535&&(fe-=65536,oe.push(fe>>>10&1023|55296),fe=56320|fe&1023),oe.push(fe),D+=te}return Pe(oe)}const Oe=4096;function Pe($){const O=$.length;if(O<=Oe)return String.fromCharCode.apply(String,$);let T="",oe=0;for(;oe<O;)T+=String.fromCharCode.apply(String,$.slice(oe,oe+=Oe));return T}function Te($,O,T){let oe="";T=Math.min($.length,T);for(let D=O;D<T;++D)oe+=String.fromCharCode($[D]&127);return oe}function Ce($,O,T){let oe="";T=Math.min($.length,T);for(let D=O;D<T;++D)oe+=String.fromCharCode($[D]);return oe}function Xe($,O,T){const oe=$.length;(!O||O<0)&&(O=0),(!T||T<0||T>oe)&&(T=oe);let D="";for(let _=O;_<T;++_)D+=Bt[$[_]];return D}function He($,O,T){const oe=$.slice(O,T);let D="";for(let _=0;_<oe.length-1;_+=2)D+=String.fromCharCode(oe[_]+oe[_+1]*256);return D}S.prototype.slice=function(O,T){const oe=this.length;O=~~O,T=T===void 0?oe:~~T,O<0?(O+=oe,O<0&&(O=0)):O>oe&&(O=oe),T<0?(T+=oe,T<0&&(T=0)):T>oe&&(T=oe),T<O&&(T=O);const D=this.subarray(O,T);return Object.setPrototypeOf(D,S.prototype),D};function Je($,O,T){if($%1!=0||$<0)throw new RangeError("offset is not uint");if($+O>T)throw new RangeError("Trying to access beyond buffer length")}S.prototype.readUintLE=S.prototype.readUIntLE=function(O,T,oe){O=O>>>0,T=T>>>0,oe||Je(O,T,this.length);let D=this[O],_=1,fe=0;for(;++fe<T&&(_*=256);)D+=this[O+fe]*_;return D},S.prototype.readUintBE=S.prototype.readUIntBE=function(O,T,oe){O=O>>>0,T=T>>>0,oe||Je(O,T,this.length);let D=this[O+--T],_=1;for(;T>0&&(_*=256);)D+=this[O+--T]*_;return D},S.prototype.readUint8=S.prototype.readUInt8=function(O,T){return O=O>>>0,T||Je(O,1,this.length),this[O]},S.prototype.readUint16LE=S.prototype.readUInt16LE=function(O,T){return O=O>>>0,T||Je(O,2,this.length),this[O]|this[O+1]<<8},S.prototype.readUint16BE=S.prototype.readUInt16BE=function(O,T){return O=O>>>0,T||Je(O,2,this.length),this[O]<<8|this[O+1]},S.prototype.readUint32LE=S.prototype.readUInt32LE=function(O,T){return O=O>>>0,T||Je(O,4,this.length),(this[O]|this[O+1]<<8|this[O+2]<<16)+this[O+3]*16777216},S.prototype.readUint32BE=S.prototype.readUInt32BE=function(O,T){return O=O>>>0,T||Je(O,4,this.length),this[O]*16777216+(this[O+1]<<16|this[O+2]<<8|this[O+3])},S.prototype.readBigUInt64LE=k(function(O){O=O>>>0,Ut(O,"offset");const T=this[O],oe=this[O+7];(T===void 0||oe===void 0)&&Dt(O,this.length-8);const D=T+this[++O]*Ar(2,8)+this[++O]*Ar(2,16)+this[++O]*Ar(2,24),_=this[++O]+this[++O]*Ar(2,8)+this[++O]*Ar(2,16)+oe*Ar(2,24);return BigInt(D)+(BigInt(_)<<BigInt(32))}),S.prototype.readBigUInt64BE=k(function(O){O=O>>>0,Ut(O,"offset");const T=this[O],oe=this[O+7];(T===void 0||oe===void 0)&&Dt(O,this.length-8);const D=T*Ar(2,24)+this[++O]*Ar(2,16)+this[++O]*Ar(2,8)+this[++O],_=this[++O]*Ar(2,24)+this[++O]*Ar(2,16)+this[++O]*Ar(2,8)+oe;return(BigInt(D)<<BigInt(32))+BigInt(_)}),S.prototype.readIntLE=function(O,T,oe){O=O>>>0,T=T>>>0,oe||Je(O,T,this.length);let D=this[O],_=1,fe=0;for(;++fe<T&&(_*=256);)D+=this[O+fe]*_;return _*=128,D>=_&&(D-=Math.pow(2,8*T)),D},S.prototype.readIntBE=function(O,T,oe){O=O>>>0,T=T>>>0,oe||Je(O,T,this.length);let D=T,_=1,fe=this[O+--D];for(;D>0&&(_*=256);)fe+=this[O+--D]*_;return _*=128,fe>=_&&(fe-=Math.pow(2,8*T)),fe},S.prototype.readInt8=function(O,T){return O=O>>>0,T||Je(O,1,this.length),this[O]&128?(255-this[O]+1)*-1:this[O]},S.prototype.readInt16LE=function(O,T){O=O>>>0,T||Je(O,2,this.length);const oe=this[O]|this[O+1]<<8;return oe&32768?oe|4294901760:oe},S.prototype.readInt16BE=function(O,T){O=O>>>0,T||Je(O,2,this.length);const oe=this[O+1]|this[O]<<8;return oe&32768?oe|4294901760:oe},S.prototype.readInt32LE=function(O,T){return O=O>>>0,T||Je(O,4,this.length),this[O]|this[O+1]<<8|this[O+2]<<16|this[O+3]<<24},S.prototype.readInt32BE=function(O,T){return O=O>>>0,T||Je(O,4,this.length),this[O]<<24|this[O+1]<<16|this[O+2]<<8|this[O+3]},S.prototype.readBigInt64LE=k(function(O){O=O>>>0,Ut(O,"offset");const T=this[O],oe=this[O+7];(T===void 0||oe===void 0)&&Dt(O,this.length-8);const D=this[O+4]+this[O+5]*Ar(2,8)+this[O+6]*Ar(2,16)+(oe<<24);return(BigInt(D)<<BigInt(32))+BigInt(T+this[++O]*Ar(2,8)+this[++O]*Ar(2,16)+this[++O]*Ar(2,24))}),S.prototype.readBigInt64BE=k(function(O){O=O>>>0,Ut(O,"offset");const T=this[O],oe=this[O+7];(T===void 0||oe===void 0)&&Dt(O,this.length-8);const D=(T<<24)+this[++O]*Ar(2,16)+this[++O]*Ar(2,8)+this[++O];return(BigInt(D)<<BigInt(32))+BigInt(this[++O]*Ar(2,24)+this[++O]*Ar(2,16)+this[++O]*Ar(2,8)+oe)}),S.prototype.readFloatLE=function(O,T){return O=O>>>0,T||Je(O,4,this.length),v.read(this,O,!0,23,4)},S.prototype.readFloatBE=function(O,T){return O=O>>>0,T||Je(O,4,this.length),v.read(this,O,!1,23,4)},S.prototype.readDoubleLE=function(O,T){return O=O>>>0,T||Je(O,8,this.length),v.read(this,O,!0,52,8)},S.prototype.readDoubleBE=function(O,T){return O=O>>>0,T||Je(O,8,this.length),v.read(this,O,!1,52,8)};function ut($,O,T,oe,D,_){if(!S.isBuffer($))throw new TypeError('"buffer" argument must be a Buffer instance');if(O>D||O<_)throw new RangeError('"value" argument is out of bounds');if(T+oe>$.length)throw new RangeError("Index out of range")}S.prototype.writeUintLE=S.prototype.writeUIntLE=function(O,T,oe,D){if(O=+O,T=T>>>0,oe=oe>>>0,!D){const te=Math.pow(2,8*oe)-1;ut(this,O,T,oe,te,0)}let _=1,fe=0;for(this[T]=O&255;++fe<oe&&(_*=256);)this[T+fe]=O/_&255;return T+oe},S.prototype.writeUintBE=S.prototype.writeUIntBE=function(O,T,oe,D){if(O=+O,T=T>>>0,oe=oe>>>0,!D){const te=Math.pow(2,8*oe)-1;ut(this,O,T,oe,te,0)}let _=oe-1,fe=1;for(this[T+_]=O&255;--_>=0&&(fe*=256);)this[T+_]=O/fe&255;return T+oe},S.prototype.writeUint8=S.prototype.writeUInt8=function(O,T,oe){return O=+O,T=T>>>0,oe||ut(this,O,T,1,255,0),this[T]=O&255,T+1},S.prototype.writeUint16LE=S.prototype.writeUInt16LE=function(O,T,oe){return O=+O,T=T>>>0,oe||ut(this,O,T,2,65535,0),this[T]=O&255,this[T+1]=O>>>8,T+2},S.prototype.writeUint16BE=S.prototype.writeUInt16BE=function(O,T,oe){return O=+O,T=T>>>0,oe||ut(this,O,T,2,65535,0),this[T]=O>>>8,this[T+1]=O&255,T+2},S.prototype.writeUint32LE=S.prototype.writeUInt32LE=function(O,T,oe){return O=+O,T=T>>>0,oe||ut(this,O,T,4,4294967295,0),this[T+3]=O>>>24,this[T+2]=O>>>16,this[T+1]=O>>>8,this[T]=O&255,T+4},S.prototype.writeUint32BE=S.prototype.writeUInt32BE=function(O,T,oe){return O=+O,T=T>>>0,oe||ut(this,O,T,4,4294967295,0),this[T]=O>>>24,this[T+1]=O>>>16,this[T+2]=O>>>8,this[T+3]=O&255,T+4};function ft($,O,T,oe,D){St(O,oe,D,$,T,7);let _=Number(O&BigInt(4294967295));$[T++]=_,_=_>>8,$[T++]=_,_=_>>8,$[T++]=_,_=_>>8,$[T++]=_;let fe=Number(O>>BigInt(32)&BigInt(4294967295));return $[T++]=fe,fe=fe>>8,$[T++]=fe,fe=fe>>8,$[T++]=fe,fe=fe>>8,$[T++]=fe,T}function yt($,O,T,oe,D){St(O,oe,D,$,T,7);let _=Number(O&BigInt(4294967295));$[T+7]=_,_=_>>8,$[T+6]=_,_=_>>8,$[T+5]=_,_=_>>8,$[T+4]=_;let fe=Number(O>>BigInt(32)&BigInt(4294967295));return $[T+3]=fe,fe=fe>>8,$[T+2]=fe,fe=fe>>8,$[T+1]=fe,fe=fe>>8,$[T]=fe,T+8}S.prototype.writeBigUInt64LE=k(function(O,T=0){return ft(this,O,T,BigInt(0),BigInt("0xffffffffffffffff"))}),S.prototype.writeBigUInt64BE=k(function(O,T=0){return yt(this,O,T,BigInt(0),BigInt("0xffffffffffffffff"))}),S.prototype.writeIntLE=function(O,T,oe,D){if(O=+O,T=T>>>0,!D){const ce=Math.pow(2,8*oe-1);ut(this,O,T,oe,ce-1,-ce)}let _=0,fe=1,te=0;for(this[T]=O&255;++_<oe&&(fe*=256);)O<0&&te===0&&this[T+_-1]!==0&&(te=1),this[T+_]=(O/fe>>0)-te&255;return T+oe},S.prototype.writeIntBE=function(O,T,oe,D){if(O=+O,T=T>>>0,!D){const ce=Math.pow(2,8*oe-1);ut(this,O,T,oe,ce-1,-ce)}let _=oe-1,fe=1,te=0;for(this[T+_]=O&255;--_>=0&&(fe*=256);)O<0&&te===0&&this[T+_+1]!==0&&(te=1),this[T+_]=(O/fe>>0)-te&255;return T+oe},S.prototype.writeInt8=function(O,T,oe){return O=+O,T=T>>>0,oe||ut(this,O,T,1,127,-128),O<0&&(O=255+O+1),this[T]=O&255,T+1},S.prototype.writeInt16LE=function(O,T,oe){return O=+O,T=T>>>0,oe||ut(this,O,T,2,32767,-32768),this[T]=O&255,this[T+1]=O>>>8,T+2},S.prototype.writeInt16BE=function(O,T,oe){return O=+O,T=T>>>0,oe||ut(this,O,T,2,32767,-32768),this[T]=O>>>8,this[T+1]=O&255,T+2},S.prototype.writeInt32LE=function(O,T,oe){return O=+O,T=T>>>0,oe||ut(this,O,T,4,2147483647,-2147483648),this[T]=O&255,this[T+1]=O>>>8,this[T+2]=O>>>16,this[T+3]=O>>>24,T+4},S.prototype.writeInt32BE=function(O,T,oe){return O=+O,T=T>>>0,oe||ut(this,O,T,4,2147483647,-2147483648),O<0&&(O=4294967295+O+1),this[T]=O>>>24,this[T+1]=O>>>16,this[T+2]=O>>>8,this[T+3]=O&255,T+4},S.prototype.writeBigInt64LE=k(function(O,T=0){return ft(this,O,T,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),S.prototype.writeBigInt64BE=k(function(O,T=0){return yt(this,O,T,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Qe($,O,T,oe,D,_){if(T+oe>$.length)throw new RangeError("Index out of range");if(T<0)throw new RangeError("Index out of range")}function nt($,O,T,oe,D){return O=+O,T=T>>>0,D||Qe($,O,T,4,34028234663852886e22,-34028234663852886e22),v.write($,O,T,oe,23,4),T+4}S.prototype.writeFloatLE=function(O,T,oe){return nt(this,O,T,!0,oe)},S.prototype.writeFloatBE=function(O,T,oe){return nt(this,O,T,!1,oe)};function ct($,O,T,oe,D){return O=+O,T=T>>>0,D||Qe($,O,T,8,17976931348623157e292,-17976931348623157e292),v.write($,O,T,oe,52,8),T+8}S.prototype.writeDoubleLE=function(O,T,oe){return ct(this,O,T,!0,oe)},S.prototype.writeDoubleBE=function(O,T,oe){return ct(this,O,T,!1,oe)},S.prototype.copy=function(O,T,oe,D){if(!S.isBuffer(O))throw new TypeError("argument should be a Buffer");if(oe||(oe=0),!D&&D!==0&&(D=this.length),T>=O.length&&(T=O.length),T||(T=0),D>0&&D<oe&&(D=oe),D===oe||O.length===0||this.length===0)return 0;if(T<0)throw new RangeError("targetStart out of bounds");if(oe<0||oe>=this.length)throw new RangeError("Index out of range");if(D<0)throw new RangeError("sourceEnd out of bounds");D>this.length&&(D=this.length),O.length-T<D-oe&&(D=O.length-T+oe);const _=D-oe;return this===O&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(T,oe,D):Uint8Array.prototype.set.call(O,this.subarray(oe,D),T),_},S.prototype.fill=function(O,T,oe,D){if(typeof O=="string"){if(typeof T=="string"?(D=T,T=0,oe=this.length):typeof oe=="string"&&(D=oe,oe=this.length),D!==void 0&&typeof D!="string")throw new TypeError("encoding must be a string");if(typeof D=="string"&&!S.isEncoding(D))throw new TypeError("Unknown encoding: "+D);if(O.length===1){const fe=O.charCodeAt(0);(D==="utf8"&&fe<128||D==="latin1")&&(O=fe)}}else typeof O=="number"?O=O&255:typeof O=="boolean"&&(O=Number(O));if(T<0||this.length<T||this.length<oe)throw new RangeError("Out of range index");if(oe<=T)return this;T=T>>>0,oe=oe===void 0?this.length:oe>>>0,O||(O=0);let _;if(typeof O=="number")for(_=T;_<oe;++_)this[_]=O;else{const fe=S.isBuffer(O)?O:S.from(O,D),te=fe.length;if(te===0)throw new TypeError('The value "'+O+'" is invalid for argument "value"');for(_=0;_<oe-T;++_)this[_+T]=fe[_%te]}return this};const dt={};function st($,O,T){dt[$]=class extends T{constructor(){super();Object.defineProperty(this,"message",{value:O.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${$}]`,this.stack,delete this.name}get code(){return $}set code(D){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:D,writable:!0})}toString(){return`${this.name} [${$}]: ${this.message}`}}}st("ERR_BUFFER_OUT_OF_BOUNDS",function($){return $?`${$} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),st("ERR_INVALID_ARG_TYPE",function($,O){return`The "${$}" argument must be of type number. Received type ${typeof O}`},TypeError),st("ERR_OUT_OF_RANGE",function($,O,T){let oe=`The value of "${$}" is out of range.`,D=T;return Number.isInteger(T)&&Math.abs(T)>Ar(2,32)?D=Ot(String(T)):typeof T=="bigint"&&(D=String(T),(T>Ar(BigInt(2),BigInt(32))||T<-Ar(BigInt(2),BigInt(32)))&&(D=Ot(D)),D+="n"),oe+=` It must be ${O}. Received ${D}`,oe},RangeError);function Ot($){let O="",T=$.length;const oe=$[0]==="-"?1:0;for(;T>=oe+4;T-=3)O=`_${$.slice(T-3,T)}${O}`;return`${$.slice(0,T)}${O}`}function Et($,O,T){Ut(O,"offset"),($[O]===void 0||$[O+T]===void 0)&&Dt(O,$.length-(T+1))}function St($,O,T,oe,D,_){if($>T||$<O){const fe=typeof O=="bigint"?"n":"";let te;throw _>3?O===0||O===BigInt(0)?te=`>= 0${fe} and < 2${fe} ** ${(_+1)*8}${fe}`:te=`>= -(2${fe} ** ${(_+1)*8-1}${fe}) and < 2 ** ${(_+1)*8-1}${fe}`:te=`>= ${O}${fe} and <= ${T}${fe}`,new dt.ERR_OUT_OF_RANGE("value",te,$)}Et(oe,D,_)}function Ut($,O){if(typeof $!="number")throw new dt.ERR_INVALID_ARG_TYPE(O,"number",$)}function Dt($,O,T){throw Math.floor($)!==$?(Ut($,T),new dt.ERR_OUT_OF_RANGE(T||"offset","an integer",$)):O<0?new dt.ERR_BUFFER_OUT_OF_BOUNDS:new dt.ERR_OUT_OF_RANGE(T||"offset",`>= ${T?1:0} and <= ${O}`,$)}const Nt=/[^+/0-9A-Za-z-_]/g;function mt($){if($=$.split("=")[0],$=$.trim().replace(Nt,""),$.length<2)return"";for(;$.length%4!=0;)$=$+"=";return $}function It($,O){O=O||1/0;let T;const oe=$.length;let D=null;const _=[];for(let fe=0;fe<oe;++fe){if(T=$.charCodeAt(fe),T>55295&&T<57344){if(!D){if(T>56319){(O-=3)>-1&&_.push(239,191,189);continue}else if(fe+1===oe){(O-=3)>-1&&_.push(239,191,189);continue}D=T;continue}if(T<56320){(O-=3)>-1&&_.push(239,191,189),D=T;continue}T=(D-55296<<10|T-56320)+65536}else D&&(O-=3)>-1&&_.push(239,191,189);if(D=null,T<128){if((O-=1)<0)break;_.push(T)}else if(T<2048){if((O-=2)<0)break;_.push(T>>6|192,T&63|128)}else if(T<65536){if((O-=3)<0)break;_.push(T>>12|224,T>>6&63|128,T&63|128)}else if(T<1114112){if((O-=4)<0)break;_.push(T>>18|240,T>>12&63|128,T>>6&63|128,T&63|128)}else throw new Error("Invalid code point")}return _}function ht($){const O=[];for(let T=0;T<$.length;++T)O.push($.charCodeAt(T)&255);return O}function zt($,O){let T,oe,D;const _=[];for(let fe=0;fe<$.length&&!((O-=2)<0);++fe)T=$.charCodeAt(fe),oe=T>>8,D=T%256,_.push(D),_.push(oe);return _}function Kt($){return c.toByteArray(mt($))}function sr($,O,T,oe){let D;for(D=0;D<oe&&!(D+T>=O.length||D>=$.length);++D)O[D+T]=$[D];return D}function Mt($,O){return $ instanceof O||$!=null&&$.constructor!=null&&$.constructor.name!=null&&$.constructor.name===O.name}function Wt($){return $!==$}const Bt=function(){const $="0123456789abcdef",O=new Array(256);for(let T=0;T<16;++T){const oe=T*16;for(let D=0;D<16;++D)O[oe+D]=$[T]+$[D]}return O}();function k($){return typeof BigInt=="undefined"?Be:$}function Be(){throw new Error("BigInt not supported")}},24269:p=>{"use strict";var I=String.prototype.replace,a=/%20/g,c={RFC1738:"RFC1738",RFC3986:"RFC3986"};p.exports={default:c.RFC3986,formatters:{RFC1738:function(v){return I.call(v,a,"+")},RFC3986:function(v){return String(v)}},RFC1738:c.RFC1738,RFC3986:c.RFC3986}},92495:(p,I,a)=>{"use strict";var c=a(57347),v=a(73777),m=a(24269);p.exports={formats:m,parse:v,stringify:c}},73777:(p,I,a)=>{"use strict";var c=a(58760),v=Object.prototype.hasOwnProperty,m=Array.isArray,h={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:c.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},b=function(K){return K.replace(/&#(\d+);/g,function(M,Y){return String.fromCharCode(parseInt(Y,10))})},C=function(K,M){return K&&typeof K=="string"&&M.comma&&K.indexOf(",")>-1?K.split(","):K},S="utf8=%26%2310003%3B",L="utf8=%E2%9C%93",N=function(M,Y){var R={},E=Y.ignoreQueryPrefix?M.replace(/^\?/,""):M,V=Y.parameterLimit===1/0?void 0:Y.parameterLimit,G=E.split(Y.delimiter,V),Z=-1,X,z=Y.charset;if(Y.charsetSentinel)for(X=0;X<G.length;++X)G[X].indexOf("utf8=")===0&&(G[X]===L?z="utf-8":G[X]===S&&(z="iso-8859-1"),Z=X,X=G.length);for(X=0;X<G.length;++X)if(X!==Z){var ue=G[X],q=ue.indexOf("]="),ne=q===-1?ue.indexOf("="):q+1,ge,me;ne===-1?(ge=Y.decoder(ue,h.decoder,z,"key"),me=Y.strictNullHandling?null:""):(ge=Y.decoder(ue.slice(0,ne),h.decoder,z,"key"),me=c.maybeMap(C(ue.slice(ne+1),Y),function(pe){return Y.decoder(pe,h.decoder,z,"value")})),me&&Y.interpretNumericEntities&&z==="iso-8859-1"&&(me=b(me)),ue.indexOf("[]=")>-1&&(me=m(me)?[me]:me),v.call(R,ge)?R[ge]=c.combine(R[ge],me):R[ge]=me}return R},j=function(K,M,Y,R){for(var E=R?M:C(M,Y),V=K.length-1;V>=0;--V){var G,Z=K[V];if(Z==="[]"&&Y.parseArrays)G=[].concat(E);else{G=Y.plainObjects?Object.create(null):{};var X=Z.charAt(0)==="["&&Z.charAt(Z.length-1)==="]"?Z.slice(1,-1):Z,z=parseInt(X,10);!Y.parseArrays&&X===""?G={0:E}:!isNaN(z)&&Z!==X&&String(z)===X&&z>=0&&Y.parseArrays&&z<=Y.arrayLimit?(G=[],G[z]=E):G[X]=E}E=G}return E},U=function(M,Y,R,E){if(!!M){var V=R.allowDots?M.replace(/\.([^.[]+)/g,"[$1]"):M,G=/(\[[^[\]]*])/,Z=/(\[[^[\]]*])/g,X=R.depth>0&&G.exec(V),z=X?V.slice(0,X.index):V,ue=[];if(z){if(!R.plainObjects&&v.call(Object.prototype,z)&&!R.allowPrototypes)return;ue.push(z)}for(var q=0;R.depth>0&&(X=Z.exec(V))!==null&&q<R.depth;){if(q+=1,!R.plainObjects&&v.call(Object.prototype,X[1].slice(1,-1))&&!R.allowPrototypes)return;ue.push(X[1])}return X&&ue.push("["+V.slice(X.index)+"]"),j(ue,Y,R,E)}},Q=function(M){if(!M)return h;if(M.decoder!==null&&M.decoder!==void 0&&typeof M.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof M.charset!="undefined"&&M.charset!=="utf-8"&&M.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var Y=typeof M.charset=="undefined"?h.charset:M.charset;return{allowDots:typeof M.allowDots=="undefined"?h.allowDots:!!M.allowDots,allowPrototypes:typeof M.allowPrototypes=="boolean"?M.allowPrototypes:h.allowPrototypes,allowSparse:typeof M.allowSparse=="boolean"?M.allowSparse:h.allowSparse,arrayLimit:typeof M.arrayLimit=="number"?M.arrayLimit:h.arrayLimit,charset:Y,charsetSentinel:typeof M.charsetSentinel=="boolean"?M.charsetSentinel:h.charsetSentinel,comma:typeof M.comma=="boolean"?M.comma:h.comma,decoder:typeof M.decoder=="function"?M.decoder:h.decoder,delimiter:typeof M.delimiter=="string"||c.isRegExp(M.delimiter)?M.delimiter:h.delimiter,depth:typeof M.depth=="number"||M.depth===!1?+M.depth:h.depth,ignoreQueryPrefix:M.ignoreQueryPrefix===!0,interpretNumericEntities:typeof M.interpretNumericEntities=="boolean"?M.interpretNumericEntities:h.interpretNumericEntities,parameterLimit:typeof M.parameterLimit=="number"?M.parameterLimit:h.parameterLimit,parseArrays:M.parseArrays!==!1,plainObjects:typeof M.plainObjects=="boolean"?M.plainObjects:h.plainObjects,strictNullHandling:typeof M.strictNullHandling=="boolean"?M.strictNullHandling:h.strictNullHandling}};p.exports=function(K,M){var Y=Q(M);if(K===""||K===null||typeof K=="undefined")return Y.plainObjects?Object.create(null):{};for(var R=typeof K=="string"?N(K,Y):K,E=Y.plainObjects?Object.create(null):{},V=Object.keys(R),G=0;G<V.length;++G){var Z=V[G],X=U(Z,R[Z],Y,typeof K=="string");E=c.merge(E,X,Y)}return Y.allowSparse===!0?E:c.compact(E)}},57347:(p,I,a)=>{"use strict";var c=a(37478),v=a(58760),m=a(24269),h=Object.prototype.hasOwnProperty,b={brackets:function(R){return R+"[]"},comma:"comma",indices:function(R,E){return R+"["+E+"]"},repeat:function(R){return R}},C=Array.isArray,S=Array.prototype.push,L=function(Y,R){S.apply(Y,C(R)?R:[R])},N=Date.prototype.toISOString,j=m.default,U={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:v.encode,encodeValuesOnly:!1,format:j,formatter:m.formatters[j],indices:!1,serializeDate:function(R){return N.call(R)},skipNulls:!1,strictNullHandling:!1},Q=function(R){return typeof R=="string"||typeof R=="number"||typeof R=="boolean"||typeof R=="symbol"||typeof R=="bigint"},K=function Y(R,E,V,G,Z,X,z,ue,q,ne,ge,me,pe,se,ie){var Oe=R;if(ie.has(R))throw new RangeError("Cyclic object value");if(typeof z=="function"?Oe=z(E,Oe):Oe instanceof Date?Oe=ne(Oe):V==="comma"&&C(Oe)&&(Oe=v.maybeMap(Oe,function(Qe){return Qe instanceof Date?ne(Qe):Qe})),Oe===null){if(G)return X&&!pe?X(E,U.encoder,se,"key",ge):E;Oe=""}if(Q(Oe)||v.isBuffer(Oe)){if(X){var Pe=pe?E:X(E,U.encoder,se,"key",ge);return[me(Pe)+"="+me(X(Oe,U.encoder,se,"value",ge))]}return[me(E)+"="+me(String(Oe))]}var Te=[];if(typeof Oe=="undefined")return Te;var Ce;if(V==="comma"&&C(Oe))Ce=[{value:Oe.length>0?Oe.join(",")||null:void 0}];else if(C(z))Ce=z;else{var Xe=Object.keys(Oe);Ce=ue?Xe.sort(ue):Xe}for(var He=0;He<Ce.length;++He){var Je=Ce[He],ut=typeof Je=="object"&&Je.value!==void 0?Je.value:Oe[Je];if(!(Z&&ut===null)){var ft=C(Oe)?typeof V=="function"?V(E,Je):E:E+(q?"."+Je:"["+Je+"]");ie.set(R,!0);var yt=c();L(Te,Y(ut,ft,V,G,Z,X,z,ue,q,ne,ge,me,pe,se,yt))}}return Te},M=function(R){if(!R)return U;if(R.encoder!==null&&R.encoder!==void 0&&typeof R.encoder!="function")throw new TypeError("Encoder has to be a function.");var E=R.charset||U.charset;if(typeof R.charset!="undefined"&&R.charset!=="utf-8"&&R.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var V=m.default;if(typeof R.format!="undefined"){if(!h.call(m.formatters,R.format))throw new TypeError("Unknown format option provided.");V=R.format}var G=m.formatters[V],Z=U.filter;return(typeof R.filter=="function"||C(R.filter))&&(Z=R.filter),{addQueryPrefix:typeof R.addQueryPrefix=="boolean"?R.addQueryPrefix:U.addQueryPrefix,allowDots:typeof R.allowDots=="undefined"?U.allowDots:!!R.allowDots,charset:E,charsetSentinel:typeof R.charsetSentinel=="boolean"?R.charsetSentinel:U.charsetSentinel,delimiter:typeof R.delimiter=="undefined"?U.delimiter:R.delimiter,encode:typeof R.encode=="boolean"?R.encode:U.encode,encoder:typeof R.encoder=="function"?R.encoder:U.encoder,encodeValuesOnly:typeof R.encodeValuesOnly=="boolean"?R.encodeValuesOnly:U.encodeValuesOnly,filter:Z,format:V,formatter:G,serializeDate:typeof R.serializeDate=="function"?R.serializeDate:U.serializeDate,skipNulls:typeof R.skipNulls=="boolean"?R.skipNulls:U.skipNulls,sort:typeof R.sort=="function"?R.sort:null,strictNullHandling:typeof R.strictNullHandling=="boolean"?R.strictNullHandling:U.strictNullHandling}};p.exports=function(Y,R){var E=Y,V=M(R),G,Z;typeof V.filter=="function"?(Z=V.filter,E=Z("",E)):C(V.filter)&&(Z=V.filter,G=Z);var X=[];if(typeof E!="object"||E===null)return"";var z;R&&R.arrayFormat in b?z=R.arrayFormat:R&&"indices"in R?z=R.indices?"indices":"repeat":z="indices";var ue=b[z];G||(G=Object.keys(E)),V.sort&&G.sort(V.sort);for(var q=c(),ne=0;ne<G.length;++ne){var ge=G[ne];V.skipNulls&&E[ge]===null||L(X,K(E[ge],ge,ue,V.strictNullHandling,V.skipNulls,V.encode?V.encoder:null,V.filter,V.sort,V.allowDots,V.serializeDate,V.format,V.formatter,V.encodeValuesOnly,V.charset,q))}var me=X.join(V.delimiter),pe=V.addQueryPrefix===!0?"?":"";return V.charsetSentinel&&(V.charset==="iso-8859-1"?pe+="utf8=%26%2310003%3B&":pe+="utf8=%E2%9C%93&"),me.length>0?pe+me:""}},58760:(p,I,a)=>{"use strict";var c=a(24269),v=Object.prototype.hasOwnProperty,m=Array.isArray,h=function(){for(var R=[],E=0;E<256;++E)R.push("%"+((E<16?"0":"")+E.toString(16)).toUpperCase());return R}(),b=function(E){for(;E.length>1;){var V=E.pop(),G=V.obj[V.prop];if(m(G)){for(var Z=[],X=0;X<G.length;++X)typeof G[X]!="undefined"&&Z.push(G[X]);V.obj[V.prop]=Z}}},C=function(E,V){for(var G=V&&V.plainObjects?Object.create(null):{},Z=0;Z<E.length;++Z)typeof E[Z]!="undefined"&&(G[Z]=E[Z]);return G},S=function R(E,V,G){if(!V)return E;if(typeof V!="object"){if(m(E))E.push(V);else if(E&&typeof E=="object")(G&&(G.plainObjects||G.allowPrototypes)||!v.call(Object.prototype,V))&&(E[V]=!0);else return[E,V];return E}if(!E||typeof E!="object")return[E].concat(V);var Z=E;return m(E)&&!m(V)&&(Z=C(E,G)),m(E)&&m(V)?(V.forEach(function(X,z){if(v.call(E,z)){var ue=E[z];ue&&typeof ue=="object"&&X&&typeof X=="object"?E[z]=R(ue,X,G):E.push(X)}else E[z]=X}),E):Object.keys(V).reduce(function(X,z){var ue=V[z];return v.call(X,z)?X[z]=R(X[z],ue,G):X[z]=ue,X},Z)},L=function(E,V){return Object.keys(V).reduce(function(G,Z){return G[Z]=V[Z],G},E)},N=function(R,E,V){var G=R.replace(/\+/g," ");if(V==="iso-8859-1")return G.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(G)}catch(Z){return G}},j=function(E,V,G,Z,X){if(E.length===0)return E;var z=E;if(typeof E=="symbol"?z=Symbol.prototype.toString.call(E):typeof E!="string"&&(z=String(E)),G==="iso-8859-1")return escape(z).replace(/%u[0-9a-f]{4}/gi,function(ge){return"%26%23"+parseInt(ge.slice(2),16)+"%3B"});for(var ue="",q=0;q<z.length;++q){var ne=z.charCodeAt(q);if(ne===45||ne===46||ne===95||ne===126||ne>=48&&ne<=57||ne>=65&&ne<=90||ne>=97&&ne<=122||X===c.RFC1738&&(ne===40||ne===41)){ue+=z.charAt(q);continue}if(ne<128){ue=ue+h[ne];continue}if(ne<2048){ue=ue+(h[192|ne>>6]+h[128|ne&63]);continue}if(ne<55296||ne>=57344){ue=ue+(h[224|ne>>12]+h[128|ne>>6&63]+h[128|ne&63]);continue}q+=1,ne=65536+((ne&1023)<<10|z.charCodeAt(q)&1023),ue+=h[240|ne>>18]+h[128|ne>>12&63]+h[128|ne>>6&63]+h[128|ne&63]}return ue},U=function(E){for(var V=[{obj:{o:E},prop:"o"}],G=[],Z=0;Z<V.length;++Z)for(var X=V[Z],z=X.obj[X.prop],ue=Object.keys(z),q=0;q<ue.length;++q){var ne=ue[q],ge=z[ne];typeof ge=="object"&&ge!==null&&G.indexOf(ge)===-1&&(V.push({obj:z,prop:ne}),G.push(ge))}return b(V),E},Q=function(E){return Object.prototype.toString.call(E)==="[object RegExp]"},K=function(E){return!E||typeof E!="object"?!1:!!(E.constructor&&E.constructor.isBuffer&&E.constructor.isBuffer(E))},M=function(E,V){return[].concat(E,V)},Y=function(E,V){if(m(E)){for(var G=[],Z=0;Z<E.length;Z+=1)G.push(V(E[Z]));return G}return V(E)};p.exports={arrayToObject:C,assign:L,combine:M,compact:U,decode:N,encode:j,isBuffer:K,isRegExp:Q,maybeMap:Y,merge:S}},13692:p=>{var I=p.exports=function(M){return new a(M)};function a(M){this.value=M}a.prototype.get=function(M){for(var Y=this.value,R=0;R<M.length;R++){var E=M[R];if(!Y||!K.call(Y,E)){Y=void 0;break}Y=Y[E]}return Y},a.prototype.has=function(M){for(var Y=this.value,R=0;R<M.length;R++){var E=M[R];if(!Y||!K.call(Y,E))return!1;Y=Y[E]}return!0},a.prototype.set=function(M,Y){for(var R=this.value,E=0;E<M.length-1;E++){var V=M[E];K.call(R,V)||(R[V]={}),R=R[V]}return R[M[E]]=Y,Y},a.prototype.map=function(M){return c(this.value,M,!0)},a.prototype.forEach=function(M){return this.value=c(this.value,M,!1),this.value},a.prototype.reduce=function(M,Y){var R=arguments.length===1,E=R?this.value:Y;return this.forEach(function(V){(!this.isRoot||!R)&&(E=M.call(this,E,V))}),E},a.prototype.paths=function(){var M=[];return this.forEach(function(Y){M.push(this.path)}),M},a.prototype.nodes=function(){var M=[];return this.forEach(function(Y){M.push(this.node)}),M},a.prototype.clone=function(){var M=[],Y=[];return function R(E){for(var V=0;V<M.length;V++)if(M[V]===E)return Y[V];if(typeof E=="object"&&E!==null){var G=v(E);return M.push(E),Y.push(G),Q(m(E),function(Z){G[Z]=R(E[Z])}),M.pop(),Y.pop(),G}else return E}(this.value)};function c(M,Y,R){var E=[],V=[],G=!0;return function Z(X){var z=R?v(X):X,ue={},q=!0,ne={node:z,node_:X,path:[].concat(E),parent:V[V.length-1],parents:V,key:E.slice(-1)[0],isRoot:E.length===0,level:E.length,circular:null,update:function(pe,se){ne.isRoot||(ne.parent.node[ne.key]=pe),ne.node=pe,se&&(q=!1)},delete:function(pe){delete ne.parent.node[ne.key],pe&&(q=!1)},remove:function(pe){U(ne.parent.node)?ne.parent.node.splice(ne.key,1):delete ne.parent.node[ne.key],pe&&(q=!1)},keys:null,before:function(pe){ue.before=pe},after:function(pe){ue.after=pe},pre:function(pe){ue.pre=pe},post:function(pe){ue.post=pe},stop:function(){G=!1},block:function(){q=!1}};if(!G)return ne;function ge(){if(typeof ne.node=="object"&&ne.node!==null){(!ne.keys||ne.node_!==ne.node)&&(ne.keys=m(ne.node)),ne.isLeaf=ne.keys.length==0;for(var pe=0;pe<V.length;pe++)if(V[pe].node_===X){ne.circular=V[pe];break}}else ne.isLeaf=!0,ne.keys=null;ne.notLeaf=!ne.isLeaf,ne.notRoot=!ne.isRoot}ge();var me=Y.call(ne,ne.node);return me!==void 0&&ne.update&&ne.update(me),ue.before&&ue.before.call(ne,ne.node),q&&(typeof ne.node=="object"&&ne.node!==null&&!ne.circular&&(V.push(ne),ge(),Q(ne.keys,function(pe,se){E.push(pe),ue.pre&&ue.pre.call(ne,ne.node[pe],pe);var ie=Z(ne.node[pe]);R&&K.call(ne.node,pe)&&(ne.node[pe]=ie.node),ie.isLast=se==ne.keys.length-1,ie.isFirst=se==0,ue.post&&ue.post.call(ne,ie),E.pop()}),V.pop()),ue.after&&ue.after.call(ne,ne.node)),ne}(M).node}function v(M){if(typeof M=="object"&&M!==null){var Y;if(U(M))Y=[];else if(b(M))Y=new Date(M.getTime?M.getTime():M);else if(C(M))Y=new RegExp(M);else if(S(M))Y={message:M.message};else if(L(M))Y=new Boolean(M);else if(N(M))Y=new Number(M);else if(j(M))Y=new String(M);else if(Object.create&&Object.getPrototypeOf)Y=Object.create(Object.getPrototypeOf(M));else if(M.constructor===Object)Y={};else{var R=M.constructor&&M.constructor.prototype||M.__proto__||{},E=function(){};E.prototype=R,Y=new E}return Q(m(M),function(V){Y[V]=M[V]}),Y}else return M}var m=Object.keys||function(Y){var R=[];for(var E in Y)R.push(E);return R};function h(M){return Object.prototype.toString.call(M)}function b(M){return h(M)==="[object Date]"}function C(M){return h(M)==="[object RegExp]"}function S(M){return h(M)==="[object Error]"}function L(M){return h(M)==="[object Boolean]"}function N(M){return h(M)==="[object Number]"}function j(M){return h(M)==="[object String]"}var U=Array.isArray||function(Y){return Object.prototype.toString.call(Y)==="[object Array]"},Q=function(M,Y){if(M.forEach)return M.forEach(Y);for(var R=0;R<M.length;R++)Y(M[R],R,M)};Q(m(a.prototype),function(M){I[M]=function(Y){var R=[].slice.call(arguments,1),E=new a(Y);return E[M].apply(E,R)}});var K=Object.hasOwnProperty||function(M,Y){return Y in M}},56089:p=>{"use strict";p.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg=="},17735:p=>{"use strict";p.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII="},96192:p=>{"use strict";p.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC"},71090:p=>{"use strict";p.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII="},46050:p=>{"use strict";p.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII="},24654:()=>{}}]);