Files
qhmes/deploy-qhmes/frontend/js/htmlmixed-NhwyF9-q.js

25 lines
224 KiB
Java
Raw Normal View History

2026-05-15 11:34:12 +08:00
import{a as Su}from"./antd-vue-vendor-BPnV8VqP.js";var zn={exports:{}},Cu=zn.exports,ml;function Bn(){return ml||(ml=1,(function(tn,Rn){(function(E,Oe){tn.exports=Oe()})(Cu,(function(){"use strict";var E=navigator.userAgent,Oe=navigator.platform,ve=/gecko\/\d/i.test(E),Je=/MSIE \d/.test(E),vt=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(E),Ee=/Edge\/(\d+)/.exec(E),H=Je||vt||Ee,te=H&&(Je?document.documentMode||6:+(Ee||vt)[1]),q=!Ee&&/WebKit\//.test(E),re=q&&/Qt\/\d+\.\d+/.test(E),_=!Ee&&/Chrome\/(\d+)/.exec(E),oe=_&&+_[1],ne=/Opera\//.test(E),Me=/Apple Computer/.test(navigator.vendor),Ne=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(E),Fe=/PhantomJS/.test(E),ee=Me&&(/Mobile\/\w+/.test(E)||navigator.maxTouchPoints>2),J=/Android/.test(E),ie=ee||J||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(E),pe=ee||/Mac/.test(Oe),Ke=/\bCrOS\b/.test(E),ot=/win/i.test(Oe),Ie=ne&&E.match(/Version\/(\d*\.\d*)/);Ie&&(Ie=Number(Ie[1])),Ie&&Ie>=15&&(ne=!1,q=!0);var Be=pe&&(re||ne&&(Ie==null||Ie<12.11)),X=ve||H&&te>=9;function G(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var we=function(e,t){var n=e.className,r=G(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function k(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function z(e,t){return k(e).appendChild(t)}function c(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),typeof t=="string")i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function O(e,t,n,r){var i=c(e,t,n,r);return i.setAttribute("role","presentation"),i}var T;document.createRange?T=function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:T=function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(i){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};function U(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function fe(e){var t=e.ownerDocument||e,n;try{n=e.activeElement}catch(r){n=t.body||null}for(;n&&n.shadowRoot&&n.shadowRoot.activeElement;)n=n.shadowRoot.activeElement;return n}function Ae(e,t){var n=e.className;G(t).test(n)||(e.className+=(n?" ":"")+t)}function Tt(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!G(n[r]).test(t)&&(t+=" "+n[r]);return t}var Ut=function(e){e.select()};ee?Ut=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:H&&(Ut=function(e){try{e.select()}catch(t){}});function rt(e){return e.display.wrapper.ownerDocument}function gt(e){return be(e.display.wrapper)}function be(e){return e.getRootNode?e.getRootNode():e.ownerDocument}function Y(e){return rt(e).defaultView}function j(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function V(e,t,n){t||(t={});for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n!==!1||!Object.prototype.hasOwnProperty.call(t,r))&&(t[r]=e[r]);return t}function se(e,t,n,r,i){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var o=r||0,a=i||0;;){var l=e.indexOf(" ",o);if(l<0||l>=t)return a+(t-o);a+=l-o,a+=n-a%n,o=l+1}}var Q=function(){this.id=null,this.f=null,this.time=0,this.handler=j(this.onTimeout,this)};Q.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},Q.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};function I(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}var Ye=50,Mt={toString:function(){return"CodeMirror.Pass"}},at={scroll:!1},xt={origin:"*mouse"},ce={origin:"+move"};function We(e,t,n){for(var r=0,i=0;;){var o=e.indexOf(" ",r);o==-1&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,i+=n-i%n,r=o+1,i>=t)return r}}var lt=[""];function wt(e){for(;lt.length<=e;)lt.push(le(lt)+" ");return lt[e]}function le(e){return e[e.length-1
b`.split(/\n/).length!=3?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf(`
`,t);i==-1&&(i=e.length);var o=e.slice(t,e.charAt(i-1)=="\r"?i-1:i),a=o.indexOf("\r");a!=-1?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},or=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(n){}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},Gn=(function(){var e=c("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")})(),Dt=null;function Si(e){if(Dt!=null)return Dt;var t=z(e,c("span","x")),n=t.getBoundingClientRect(),r=T(t,0,1).getBoundingClientRect();return Dt=Math.abs(n.left-r.left)>1}var Dr={},Ot={};function Wt(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Dr[e]=t}function mr(e,t){Ot[e]=t}function Or(e){if(typeof e=="string"&&Ot.hasOwnProperty(e))e=Ot[e];else if(e&&typeof e.name=="string"&&Ot.hasOwnProperty(e.name)){var t=Ot[e.name];typeof t=="string"&&(t={name:t}),e=x(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Or("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Or("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Wr(e,t){t=Or(t);var n=Dr[t.name];if(!n)return Wr(e,"text/plain");var r=n(e,t);if(ar.hasOwnProperty(t.name)){var i=ar[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var ar={};function Pr(e,t){var n=ar.hasOwnProperty(e)?ar[e]:ar[e]={};V(t,n)}function It(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function on(e,t){for(var n;e.innerMode&&(n=e.innerMode(t),!(!n||n.mode==e));)t=n.state,e=n.mode;return n||{mode:e,state:t}}function zr(e,t,n){return e.startState?e.startState(t,n):!0}var Le=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};Le.prototype.eol=function(){return this.pos>=this.string.length},Le.prototype.sol=function(){return this.pos==this.lineStart},Le.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Le.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Le.prototype.eat=function(e){var t=this.string.charAt(this.pos),n;if(typeof e=="string"?n=t==e:n=t&&(e.test?e.test(t):e(t)),n)return++this.pos,t},Le.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Le.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Le.prototype.skipToEnd=function(){this.pos=this.string.length},Le.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Le.prototype.backUp=function(e){this.pos-=e},Le.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=se(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?se(this.string,this.lineStart,this.tabSize):0)},Le.prototype.indentation=function(){return se(this.string,null,this.tabSize)-(this.lineStart?se(this.string,this.lineStart,this.tabSize):0)},Le.prototype.match=function(e,t,n){if(typeof e=="string"){var r=function(a){return n?a.toLowerCase():a},i=this.string.substr(this.pos,e.length);if(r(i)==r(e))return t!==!1&&(this.pos+=e.length),!0}else{var o=this.string.slice(this.pos).match(e);return o&&o.index>0?null:(o&&t!==!1&&(this.pos+=o[0].length),o)}},Le.prototype.current=function(){return this.string.slice(this.start,this.pos)},Le.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Le.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)
`?(S=d.appendChild(c("span",g[0]=="\r"?"":"","cm-invalidchar")),S.setAttribute("cm-text",g[0]),e.col+=1):(S=e.cm.options.specialCharPlaceholder(g[0]),S.setAttribute("cm-text",g[0]),H&&te<9?d.appendChild(c("span",[S])):d.appendChild(S),e.col+=1);e.map.push(e.pos,e.pos+1,S),e.pos++}}if(e.trailingSpace=l.charCodeAt(t.length-1)==32,n||r||i||u||o||a){var W=n||"";r&&(W+=r),i&&(W+=i);var A=c("span",[d],W,o);if(a)for(var P in a)a.hasOwnProperty(P)&&P!="style"&&P!="class"&&A.setAttribute(P,a[P]);return e.content.appendChild(A)}e.content.appendChild(d)}}function Ul(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);o==" "&&n&&(i==e.length-1||e.charCodeAt(i+1)==32)&&(o=" "),r+=o,n=o==" "}return r}function Gl(e,t){return function(n,r,i,o,a,l,s){i=i?i+" cm-force-border":"cm-force-border";for(var u=n.pos,d=u+r.length;;){for(var p=void 0,g=0;g<t.length&&(p=t[g],!(p.to>u&&p.from<=u));g++);if(p.to>=d)return e(n,r,i,o,a,l,s);e(n,r.slice(0,p.to-u),i,o,null,l,s),o=null,r=r.slice(p.to-u),u=p.to}}}function Fo(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function ql(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(!r){for(var a=1;a<n.length;a+=2)t.addToken(t,i.slice(o,o=n[a]),Ho(n[a+1],t.cm.options));return}for(var l=i.length,s=0,u=1,d="",p,g,v=0,b,S,L,N,W;;){if(v==s){b=S=L=g="",W=null,N=null,v=1/0;for(var A=[],P=void 0,K=0;K<r.length;++K){var B=r[K],$=B.marker;if($.type=="bookmark"&&B.from==s&&$.widgetNode)A.push($);else if(B.from<=s&&(B.to==null||B.to>s||$.collapsed&&B.to==s&&B.from==s)){if(B.to!=null&&B.to!=s&&v>B.to&&(v=B.to,S=""),$.className&&(b+=" "+$.className),$.css&&(g=(g?g+";":"")+$.css),$.startStyle&&B.from==s&&(L+=" "+$.startStyle),$.endStyle&&B.to==v&&(P||(P=[])).push($.endStyle,B.to),$.title&&((W||(W={})).title=$.title),$.attributes)for(var ye in $.attributes)(W||(W={}))[ye]=$.attributes[ye];$.collapsed&&(!N||Mi(N.marker,$)<0)&&(N=B)}else B.from>s&&v>B.from&&(v=B.from)}if(P)for(var je=0;je<P.length;je+=2)P[je+1]==v&&(S+=" "+P[je]);if(!N||N.from==s)for(var ke=0;ke<A.length;++ke)Fo(t,0,A[ke]);if(N&&(N.from||0)==s){if(Fo(t,(N.to==null?l+1:N.to)-s,N.marker,N.from==null),N.to==null)return;N.to==s&&(N=!1)}}if(s>=l)break;for(var bt=Math.min(l,v);;){if(d){var dt=s+d.length;if(!N){var ze=dt>bt?d.slice(0,bt-s):d;t.addToken(t,ze,p?p+b:b,L,s+ze.length==v?S:"",g,W)}if(dt>=bt){d=d.slice(bt-s),s=bt;break}s=dt,L=""}d=i.slice(o,o=n[u++]),p=Ho(n[u++],t.cm.options)}}}function Io(e,t,n){this.line=t,this.rest=El(t),this.size=this.rest?f(le(this.rest))-n+1:1,this.node=this.text=null,this.hidden=lr(e,t)}function Qn(e,t,n){for(var r=[],i,o=t;o<n;o=i){var a=new Io(e.doc,F(e.doc,o),o);i=o+a.size,r.push(a)}return r}var Fr=null;function jl(e){Fr?Fr.ops.push(e):e.ownsGroup=Fr={ops:[e],delayedCallbacks:[]}}function Xl(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}function Yl(e,t){var n=e.ownsGroup;if(n)try{Xl(n)}finally{Fr=null,t(n)}}var un=null;function Ue(e,t){var n=jt(e,t);if(n.length){var r=Array.prototype.slice.call(arguments,2),i;Fr?i=Fr.delayedCallbacks:un?i=un:(i=un=[],setTimeout(Zl,0));for(var o=function(l){i.push(function(){return n[l].apply(null,r)})},a=0;a<n.length;++a)o(a)}}function Zl(){var e=un;un=null;for(var t=0;t<e.length;++t)e[t]()}function Bo(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];o=="text"?Ql(e,t):o=="gutter"?Ko(e,t,n,r):o=="class"?Oi(e,t):o=="widget"&&Vl(e,t,r)}t.changes=null}function fn(e){return e.node==e.text&&(e.node=c("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),H&&te<8&&(e.node.style.
top: `+P+"px; width: "+(K==null?s-A:K)+`px;
height: `+(B-P)+"px"))}function p(A,P,K){var B=F(i,A),$=B.text.length,ye,je;function ke(ze,ht){return ei(e,y(A,ze),"div",B,ht)}function bt(ze,ht,Ze){var Re=ra(e,B,null,ze),He=ht=="ltr"==(Ze=="after")?"left":"right",Te=Ze=="after"?Re.begin:Re.end-(/\s/.test(B.text.charAt(Re.end-1))?2:1);return ke(Te,He)[He]}var dt=ae(B,i.direction);return tr(dt,P||0,K==null?$:K,function(ze,ht,Ze,Re){var He=Ze=="ltr",Te=ke(ze,He?"left":"right"),pt=ke(ht-1,He?"right":"left"),$r=P==null&&ze==0,vr=K==null&&ht==$,tt=Re==0,_t=!dt||Re==dt.length-1;if(pt.top-Te.top<=3){var Xe=(u?$r:vr)&&tt,go=(u?vr:$r)&&_t,$t=Xe?l:(He?Te:pt).left,Tr=go?s:(He?pt:Te).right;d($t,Te.top,Tr-$t,Te.bottom)}else{var Mr,it,en,mo;He?(Mr=u&&$r&&tt?l:Te.left,it=u?s:bt(ze,Ze,"before"),en=u?l:bt(ht,Ze,"after"),mo=u&&vr&&_t?s:pt.right):(Mr=u?bt(ze,Ze,"before"):l,it=!u&&$r&&tt?s:Te.right,en=!u&&vr&&_t?l:pt.left,mo=u?bt(ht,Ze,"after"):s),d(Mr,Te.top,it-Mr,Te.bottom),Te.bottom<pt.top&&d(l,Te.bottom,null,pt.top),d(en,pt.top,mo-en,pt.bottom)}(!ye||ri(Te,ye)<0)&&(ye=Te),ri(pt,ye)<0&&(ye=pt),(!je||ri(Te,je)<0)&&(je=Te),ri(pt,je)<0&&(je=pt)}),{start:ye,end:je}}var g=t.from(),v=t.to();if(g.line==v.line)p(g.line,g.ch,v.ch);else{var b=F(i,g.line),S=F(i,v.line),L=Pt(b)==Pt(S),N=p(g.line,g.ch,L?b.text.length+1:null).end,W=p(v.line,L?0:null,v.ch).start;L&&(N.top<W.top-2?(d(N.right,N.top,null,N.bottom),d(l,W.top,W.left,W.bottom)):d(N.right,N.top,W.left-N.right,N.bottom)),N.bottom<W.top&&d(l,N.bottom,null,W.top)}n.appendChild(o)}function Ui(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||Kr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function aa(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||qi(e))}function Gi(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Kr(e))},100)}function qi(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Se(e,"focus",e,t),e.state.focused=!0,Ae(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),q&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Ui(e))}function Kr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Se(e,"blur",e,t),e.state.focused=!1,we(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function ni(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,a=0;a<t.view.length;a++){var l=t.view[a],s=e.options.lineWrapping,u=void 0,d=0;if(!l.hidden){if(i+=l.line.height,H&&te<8){var p=l.node.offsetTop+l.node.offsetHeight;u=p-n,n=p}else{var g=l.node.getBoundingClientRect();u=g.bottom-g.top,!s&&l.text.firstChild&&(d=l.text.firstChild.getBoundingClientRect().right-g.left-1)}var v=l.line.height-u;if((v>.005||v<-.005)&&(i<r&&(o-=v),kt(l.line,u),la(l.line),l.rest))for(var b=0;b<l.rest.length;b++)la(l.rest[b]);if(d>e.display.sizerWidth){var S=Math.ceil(d/Rr(e.display));S>e.display.maxLineLength&&(e.display.maxLineLength=S,e.display.maxLine=l.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function la(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function ii(e,t,n){var r=n&&n.top!=null?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-Vn(e));var i=n&&n.bottom!=null?n.bottom:r+e.wrapper.clientHeight,o=h(t,r),a=h(t,i);if(n&&n.ensure){var l=n.ensure.from.line,s=n.ensure.to.line;l<o?(o=l,a=h(t,Zt(F(t,l))+e.wrapper.clientHeight)):Math.min(s,t.lastLine())>=a&&(o=h(t,Zt(F(t,s))-e.wrapper.clientHeight),a=s)}return{from:o,to:Math.max(a,o+1)}}function c
top: `+(t.top-n.viewOffset-Vn(e.display))+`px;
height: `+(t.bottom-t.top+Rt(e)+n.barHeight)+`px;
left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(i),e.display.lineSpace.removeChild(a)}}}function ds(e,t,n,r){r==null&&(r=0);var i;!e.options.lineWrapping&&t==n&&(n=t.sticky=="before"?y(t.line,t.ch+1,"before"):t,t=t.ch?y(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,l=zt(e,t),s=!n||n==t?l:zt(e,n);i={left:Math.min(l.left,s.left),top:Math.min(l.top,s.top)-r,right:Math.max(l.left,s.left),bottom:Math.max(l.bottom,s.bottom)+r};var u=ji(e,i),d=e.doc.scrollTop,p=e.doc.scrollLeft;if(u.scrollTop!=null&&(vn(e,u.scrollTop),Math.abs(e.doc.scrollTop-d)>1&&(a=!0)),u.scrollLeft!=null&&(kr(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-p)>1&&(a=!0)),!a)break}return i}function hs(e,t){var n=ji(e,t);n.scrollTop!=null&&vn(e,n.scrollTop),n.scrollLeft!=null&&kr(e,n.scrollLeft)}function ji(e,t){var n=e.display,r=Br(e.display);t.top<0&&(t.top=0);var i=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:n.scroller.scrollTop,o=Pi(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var l=e.doc.height+Wi(n),s=t.top<r,u=t.bottom>l-r;if(t.top<i)a.scrollTop=s?0:t.top;else if(t.bottom>i+o){var d=Math.min(t.top,(u?l:t.bottom)-o);d!=i&&(a.scrollTop=d)}var p=e.options.fixedGutter?0:n.gutters.offsetWidth,g=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:n.scroller.scrollLeft-p,v=yr(e)-n.gutters.offsetWidth,b=t.right-t.left>v;return b&&(t.right=t.left+v),t.left<10?a.scrollLeft=0:t.left<g?a.scrollLeft=Math.max(0,t.left+p-(b?0:10)):t.right>v+g-3&&(a.scrollLeft=t.right+(b?0:10)-v),a}function Xi(e,t){t!=null&&(oi(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function _r(e){oi(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function pn(e,t,n){(t!=null||n!=null)&&oi(e),t!=null&&(e.curOp.scrollLeft=t),n!=null&&(e.curOp.scrollTop=n)}function ps(e,t){oi(e),e.curOp.scrollToPos=t}function oi(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=ea(e,t.from),r=ea(e,t.to);sa(e,n,r,t.margin)}}function sa(e,t,n,r){var i=ji(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});pn(e,i.scrollLeft,i.scrollTop)}function vn(e,t){Math.abs(e.doc.scrollTop-t)<2||(ve||Zi(e,{top:t}),ua(e,t,!0),ve&&Zi(e),yn(e,100))}function ua(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function kr(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r)&&(e.doc.scrollLeft=t,pa(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function gn(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Wi(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Rt(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Sr=function(e,t,n){this.cm=n;var r=this.vert=c("div",[c("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=c("div",[c("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),R(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),R(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,H&&te<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Sr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.
`},setDirection:qe(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&Ds(this.cm))})}),ct.prototype.eachLine=ct.prototype.iter;var qa=0;function Us(e){var t=this;if(ja(t),!(Ce(t,e)||Jt(t.display,e))){$e(e),H&&(qa=+new Date);var n=xr(t,e,!0),r=e.dataTransfer.files;if(!(!n||t.isReadOnly()))if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),a=0,l=function(){++a==i&&Ge(t,function(){n=Z(t.doc,n);var v={from:n,to:n,text:t.doc.splitLines(o.filter(function(b){return b!=null}).join(t.doc.lineSeparator())),origin:"paste"};jr(t.doc,v),Da(t.doc,fr(Z(t.doc,n),Z(t.doc,cr(v))))})()},s=function(v,b){if(t.options.allowDropFileTypes&&I(t.options.allowDropFileTypes,v.type)==-1){l();return}var S=new FileReader;S.onerror=function(){return l()},S.onload=function(){var L=S.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(L)){l();return}o[b]=L,l()},S.readAsText(v)},u=0;u<r.length;u++)s(r[u],u);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var d=e.dataTransfer.getData("Text");if(d){var p;if(t.state.draggingText&&!t.state.draggingText.copy&&(p=t.listSelections()),ci(t.doc,fr(n,n)),p)for(var g=0;g<p.length;++g)Xr(t.doc,"",p[g].anchor,p[g].head,"drag");t.replaceSelection(d,"around","paste"),t.display.input.focus()}}catch(v){}}}}function Gs(e,t){if(H&&(!e.state.draggingText||+new Date-qa<100)){nr(t);return}if(!(Ce(e,t)||Jt(e.display,t))&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!Me)){var n=c("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ne&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),ne&&n.parentNode.removeChild(n)}}function qs(e,t){var n=xr(e,t);if(n){var r=document.createDocumentFragment();_i(e,n,r),e.display.dragCursor||(e.display.dragCursor=c("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),z(e.display.dragCursor,r)}}function ja(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Xa(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation(function(){for(var o=0;o<n.length;o++)e(n[o])})}}var Ya=!1;function js(){Ya||(Xs(),Ya=!0)}function Xs(){var e;R(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Xa(Ys)},100))}),R(window,"blur",function(){return Xa(Kr)})}function Ys(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var pr={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"},Mn=0;Mn<10;Mn++)pr[Mn+48]=pr[Mn+96]=String(Mn);for(var pi=65;pi<=90;pi++)pr[pi]=String.fromCharCode(pi);for(var Nn=1;Nn<=12;Nn++)pr[Nn+111]=pr[Nn+63235]="F"+Nn;var Vt={};Vt.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"},Vt.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"u
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Va(e,t){var n=F(e.doc,t),r=Pt(n);return r!=n&&(t=f(r)),lo(!0,e,r,t,1)}function Vs(e,t){var n=F(e.doc,t),r=Hl(n);return r!=n&&(t=f(r)),lo(!0,e,n,t,-1)}function $a(e,t){var n=Va(e,t.line),r=F(e.doc,n.line),i=ae(r,e.doc.direction);if(!i||i[0].level==0){var o=Math.max(n.ch,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return y(n.line,a?0:o,n.sticky)}return n}function gi(e,t,n){if(typeof t=="string"&&(t=An[t],!t))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=Mt}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}function $s(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=Zr(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&Zr(t,e.options.extraKeys,n,e)||Zr(t,e.options.keyMap,n,e)}var eu=new Q;function Dn(e,t,n,r){var i=e.state.keySeq;if(i){if(Za(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:eu.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),el(e,i+" "+t,n,r))return!0}return el(e,t,n,r)}function el(e,t,n,r){var i=$s(e,t,r);return i=="multi"&&(e.state.keySeq=t),i=="handled"&&Ue(e,"keyHandled",e,t,n),(i=="handled"||i=="multi")&&($e(n),Ui(e)),!!i}function tl(e,t){var n=Qa(t,!0);return n?t.shiftKey&&!e.state.keySeq?Dn(e,"Shift-"+n,t,function(r){return gi(e,r,!0)})||Dn(e,n,t,function(r){if(typeof r=="string"?/^go[A-Z]/.test(r):r.motion)return gi(e,r)}):Dn(e,n,t,function(r){return gi(e,r)}):!1}function tu(e,t,n){return Dn(e,"'"+n+"'",t,function(r){return gi(e,r,!0)})}var so=null;function rl(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&(t.curOp.focus=fe(gt(t)),!Ce(t,e))){H&&te<11&&e.keyCode==27&&(e.returnValue=!1);var n=e.keyCode;t.display.shift=n==16||e.shiftKey;var r=tl(t,e);ne&&(so=r?n:null,!r&&n==88&&!Gn&&(pe?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),ve&&!pe&&!r&&n==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),n==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&ru(t)}}function ru(e){var t=e.display.lineDiv;Ae(t,"CodeMirror-crosshair");function n(r){(r.keyCode==18||!r.altKey)&&(we(t,"CodeMirror-crosshair"),Ve(document,"keyup",n),Ve(document,"mouseover",n))}R(document,"keyup",n),R(document,"mouseover",n)}function nl(e){e.keyCode==16&&(this.doc.sel.shift=!1),Ce(this,e)}function il(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&!(Jt(t.display,e)||Ce(t,e)||e.ctrlKey&&!e.altKey||pe&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(ne&&n==so){so=null,$e(e);return}if(!(ne&&(!e.which||e.which<10)&&tl(t,e))){var i=String.fromCharCode(r==null?n:r);i!="\b"&&(tu(t,e,i)||t.display.input.onKeyPress(e))}}}var nu=400,uo=function(e,t,n){this.time=e,this.pos=t,this.button=n};uo.prototype.compare=function(e,t,n){return this.time+nu>e&&D(t,this.pos)==0&&n==this.button};var On,Wn;function iu(e,t){var n=+new Date;return Wn&&Wn.compare(n,e,t)?(On=Wn=null,"triple"):On&&On.compare(n,e,t)?(Wn=new uo(n,e,t),On=null,"double"):(On=new uo(n,e,t),Wn=null,"single")}function ol(e){var t=this,n=t.display;if(!(Ce(t,e)||n.activeTouch&&n.input.supportsTouch())){if(n.input.ensurePolled(),n.shift=e.shiftKey,Jt(n,e)){q||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));return}if(!fo(t,e)){var r=xr(t,e),i=At(e),o=r?iu(r,i):"single";Y(t).focus(),i==1&&t.state.selectingText&&t.state.selectingText(e),!(r&&ou(t,i,r,o,e))&&(i==1?r?lu(t,r,o,e):rn(e)==n.scroller&&$e(e):i==2?(r&&fi(t.doc,r),setTimeout(function(){return n.input.focus()},20)):i==3&&(X?t.display.input.onContextMenu(e):Gi(t)))}}}function ou(e,t,n,r,i){var o="Click";return r=="double"?o="Double"+o:r=="triple"&&(o="Triple"+o),o=(t==1?"Left":t==2?"Middle":"Right")+o,Dn(e,Ja(o,i),i,function(a){if(typeof a=="string"&&(a=An[a]),!a)return!1;var l=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),l=a(e,n)!=Mt}finally{e.state.suppressEdits=!1}return l})}function au(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(
`)==t){if(r.ranges.length%Et.text.length==0){u=[];for(var d=0;d<Et.text.length;d++)u.push(o.splitLines(Et.text[d]))}}else s.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(u=me(s,function(N){return[N]}));for(var p=e.curOp.updateInput,g=r.ranges.length-1;g>=0;g--){var v=r.ranges[g],b=v.from(),S=v.to();v.empty()&&(n&&n>0?b=y(b.line,b.ch-n):e.state.overwrite&&!l?S=y(S.line,Math.min(F(o,S.line).text.length,S.ch+le(s).length)):l&&Et&&Et.lineWise&&Et.text.join(`
`)==s.join(`
`)&&(b=S=y(b.line,0)));var L={from:b,to:S,text:u?u[g%u.length]:s,origin:i||(l?"paste":e.state.cutIncoming>a?"cut":"+input")};jr(e.doc,L),Ue(e,"inputRead",e,L)}t&&!l&&dl(e,t),_r(e),e.curOp.updateInput<2&&(e.curOp.updateInput=p),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function cl(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&t.hasFocus()&&yt(t,function(){return ho(t,n,0,null,"paste")}),!0}function dl(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var l=0;l<o.electricChars.length;l++)if(t.indexOf(o.electricChars.charAt(l))>-1){a=Pn(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(F(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Pn(e,i.head.line,"smart"));a&&Ue(e,"electricInput",e,i.head.line)}}}function hl(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:y(i,0),head:y(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function po(e,t,n,r){e.setAttribute("autocorrect",n?"on":"off"),e.setAttribute("autocapitalize",r?"on":"off"),e.setAttribute("spellcheck",!!t)}function pl(){var e=c("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=c("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return q?e.style.width="1000px":e.setAttribute("wrap","off"),ee&&(e.style.border="1px solid black"),t}function gu(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){Y(this).focus(),this.display.input.focus()},setOption:function(r,i){var o=this.options,a=o[r];o[r]==i&&r!="mode"||(o[r]=i,t.hasOwnProperty(r)&&Ge(this,t[r])(this,i,a),Se(this,"optionChange",this,r))},getOption:function(r){return this.options[r]},getDoc:function(){return this.doc},addKeyMap:function(r,i){this.state.keyMaps[i?"push":"unshift"](vi(r))},removeKeyMap:function(r){for(var i=this.state.keyMaps,o=0;o<i.length;++o)if(i[o]==r||i[o].name==r)return i.splice(o,1),!0},addOverlay:nt(function(r,i){var o=r.token?r:e.getMode(this.options,r);if(o.startState)throw new Error("Overlays may not be stateful.");m(this.state.overlays,{mode:o,modeSpec:r,opaque:i&&i.opaque,priority:i&&i.priority||0},function(a){return a.priority}),this.state.modeGen++,ft(this)}),removeOverlay:nt(function(r){for(var i=this.state.overlays,o=0;o<i.length;++o){var a=i[o].modeSpec;if(a==r||typeof r=="string"&&a.name==r){i.splice(o,1),this.state.modeGen++,ft(this);return}}}),indentLine:nt(function(r,i,o){typeof i!="string"&&typeof i!="number"&&(i==null?i=this.options.smartIndent?"smart":"prev":i=i?"add":"subtract"),w(this.doc,r)&&Pn(this,r,i,o)}),indentSelection:nt(function(r){for(var i=this.doc.sel.ranges,o=-1,a=0;a<i.length;a++){var l=i[a];if(l.empty())l.head.line>o&&(Pn(this,l.head.line,r,!0),o=l.head.line,a==this.doc.sel.primIndex&&_r(this));else{var s=l.from(),u=l.to(),d=Math.max(o,s.line);o=Math.min(this.lastLine(),u.line-(u.ch?0:1))+1;for(var p=d;p<o;++p)Pn(this,p,r);var g=this.doc.sel.ranges;s.ch==0&&i.length==g.length&&g[a].from().ch>0&&io(this.doc,a,new he(s,g[a].to()),at)}}}),getTokenAt:function(r,i){return Co(this,r,i)},getLineTokens:function(r,i){return Co(this,y(r),i,!0)},getTokenTypeAt:function(r){r=Z(this.doc,r);var i=wo(this,F(this.doc,r.line)),o=0,a=(i.length-1)/2,l=r.ch,s;if(l==0)s=i[2];else for(;;){var u=o+a>>1;if((u?i[u*2-1]:0)>=l)a=u;else if(i[u*2+1]<l)o=u+1;else{s=i[u*2+2];break}}var d=s?s.indexOf("overlay "):-1;return d<0?s:d==0?null:s.slice(0,d-1)},getModeAt:function(r){var i=this.doc.mode;return i.innerMode?e.innerMode(i,this.getTokenAt(r).state).mode:i},getHelper:function(r,i){return this.getHelpers(r,i)[0]},getHelpers:function(r,i){var o=[];if(!n.hasOwnProperty(i))return o;var a=n[i],l=this.getModeAt(r);if(typeof l[i]=="string")a[l[i]]&&o.push(a[l
`,L=Gt(S,v)?"w":g&&S==`
`?"n":!g||/\s/.test(S)?null:"p";if(g&&!b&&!L&&(L="s"),p&&p!=L){n<0&&(n=1,d(),t.sticky="after");break}if(L&&(p=L),n>0&&!d(!b))break}var N=di(e,t,o,a,!0);return de(o,N)&&(N.hitSide=!0),N}function vl(e,t,n,r){var i=e.doc,o=t.left,a;if(r=="page"){var l=Math.min(e.display.wrapper.clientHeight,Y(e).innerHeight||i(e).documentElement.clientHeight),s=Math.max(l-.5*Br(e.display),3);a=(n>0?t.bottom:t.top)+n*s}else r=="line"&&(a=n>0?t.bottom+3:t.top-3);for(var u;u=Fi(e,o,a),!!u.outside;){if(n<0?a<=0:a>=i.height){u.hitSide=!0;break}a+=n*5}return u}var ge=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Q,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ge.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;i.contentEditable=!0,po(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize);function o(l){for(var s=l.target;s;s=s.parentNode){if(s==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(s.className))break}return!1}R(i,"paste",function(l){!o(l)||Ce(r,l)||cl(l,r)||te<=11&&setTimeout(Ge(r,function(){return t.updateFromDOM()}),20)}),R(i,"compositionstart",function(l){t.composing={data:l.data,done:!1}}),R(i,"compositionupdate",function(l){t.composing||(t.composing={data:l.data,done:!1})}),R(i,"compositionend",function(l){t.composing&&(l.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),R(i,"touchstart",function(){return n.forceCompositionEnd()}),R(i,"input",function(){t.composing||t.readFromDOMSoon()});function a(l){if(!(!o(l)||Ce(r,l))){if(r.somethingSelected())yi({lineWise:!1,text:r.getSelections()}),l.type=="cut"&&r.replaceSelection("",null,"cut");else if(r.options.lineWiseCopyCut){var s=hl(r);yi({lineWise:!0,text:s.text}),l.type=="cut"&&r.operation(function(){r.setSelections(s.ranges,0,at),r.replaceSelection("",null,"cut")})}else return;if(l.clipboardData){l.clipboardData.clearData();var u=Et.text.join(`
`);if(l.clipboardData.setData("Text",u),l.clipboardData.getData("Text")==u){l.preventDefault();return}}var d=pl(),p=d.firstChild;po(p),r.display.lineSpace.insertBefore(d,r.display.lineSpace.firstChild),p.value=Et.text.join(`
`);var g=fe(be(i));Ut(p),setTimeout(function(){r.display.lineSpace.removeChild(d),g.focus(),g==i&&n.showPrimarySelection()},50)}}R(i,"copy",a),R(i,"cut",a)},ge.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},ge.prototype.prepareSelection=function(){var e=oa(this.cm,!1);return e.focus=fe(be(this.div))==this.div,e},ge.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},ge.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ge.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,n=t.doc.sel.primary(),r=n.from(),i=n.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||i.line<t.display.viewFrom){e.removeAllRanges();return}var o=bi(t,e.anchorNode,e.anchorOffset),a=bi(t,e.focusNode,e.focusOffset);if(!(o&&!o.bad&&a&&!a.bad&&D(Hr(o,a),r)==0&&D(ut(o,a),i)==0)){var l=t.display.view,s=r.line>=t.display.viewFrom&&gl(t,r)||{node:l[0].measure.map[2],offset:0},u=i.line<t.display.viewTo&&gl(t,i);if(!u){var d=l[l.length-1].measure,p=d.maps?d.maps[d.maps.length-1]:d.map;u={node:p[p.length-1],offset:p[p.length-2]-p[p.length-3]}}if(!s||!u){e.removeAllRanges();return}var g=e.rangeCount&&e.getRangeAt(0),v;try{v=T(s.node,s.offset,u.offset,u.node)}catch(b){}v&&(!ve&&t.state.focused?(e.collapse(s.node,s.offset),v.collapsed||(e.removeAllRanges(),e.addRange(v))):(e.removeAllRanges(),e.addRange(v)),g&&e.anchorNode==null?e.addRange(g):ve&&this.startGracePeriod()),this.rememberSelection()}},ge.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)},ge.prototype.showMultipleSelections=function(e){z(this.cm.display.cursorDiv,e.cursors),z(this.cm.display.selectionDiv,e.selection)},ge.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},ge.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return U(this.div,t)},ge.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||fe(be(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ge.prototype.blur=function(){this.div.blur()},ge.prototype.getField=function(){return this.div},ge.prototype.supportsTouch=function(){return!0},ge.prototype.receivedFocus=function(){var e=this,t=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):yt(this.cm,function(){return t.cm.curOp.selectionChanged=!0});function n(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,n))}this.polling.set(this.cm.options.pollInterval,n)},ge.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},ge.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),t=this.cm;if(J&&_&&this.cm.display.gutterSpecs.length&&mu(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var n=bi(t,e.anchorNode,e.anchorOffset),r=bi(t,e.focusNode,e.focusOffset);n&&r&&yt(t,function(){et(t.doc,fr(n,r),at),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)})}}},ge.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,n=e.doc.sel.primary(),r=n.from(),i=n.to();if(r.ch==0&&r.line>e.firstLine()&&(r=y(r.line-1,F(e.doc,r.line-1).length)),i.ch==F(e.doc,i.line
`),Ut(i))}else return;a.type=="cut"&&(r.state.cutIncoming=+new Date)}}R(i,"cut",o),R(i,"copy",o),R(e.scroller,"paste",function(a){if(!(Jt(e,a)||Ce(r,a))){if(!i.dispatchEvent){r.state.pasteIncoming=+new Date,n.focus();return}var l=new Event("paste");l.clipboardData=a.clipboardData,i.dispatchEvent(l)}}),R(e.lineSpace,"selectstart",function(a){Jt(e,a)||$e(a)}),R(i,"compositionstart",function(){var a=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:a,range:r.markText(a,r.getCursor("to"),{className:"CodeMirror-composing"})}}),R(i,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},De.prototype.createField=function(e){this.wrapper=pl(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;po(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},De.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},De.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=oa(e);if(e.options.moveInputWithCursor){var i=zt(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},De.prototype.showSelection=function(e){var t=this.cm,n=t.display;z(n.cursorDiv,e.cursors),z(n.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},De.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&Ut(this.textarea),H&&te>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",H&&te>=9&&(this.hasSelection=null));this.resetting=!1}},De.prototype.getField=function(){return this.textarea},De.prototype.supportsTouch=function(){return!1},De.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ie||fe(be(this.textarea))!=this.textarea))try{this.textarea.focus()}catch(e){}},De.prototype.blur=function(){this.textarea.blur()},De.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},De.prototype.receivedFocus=function(){this.slowPoll()},De.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},De.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function n(){var r=t.poll();!r&&!e?(e=!0,t.polling.set(60,n)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,n)},De.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||or(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(H&&te>=9&&this.hasSelection===i||pe&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(o==8203&&!r&&(r=""),o==8666)return this.reset(),this.cm.execCommand("undo")}for(var a=0,l=Math.min(r.length,i.length);a<l&&r.charCodeAt(a)==i.charCodeAt(a);)++a;return yt(t,function(){ho(t,i.slice(a),r.length-a,null,e.composing?"*compose":null),i.length>1e3||i.indexOf(`
`)>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},De.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},De.prototype.onKeyPress=function(){H&&te>=9&&(this.hasSelection=null),this.fastPoll()},De.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=xr(n,e),a=r.scroller.scrollTop;if(!o||ne)return;var l=n.options.resetSelectionOnContextMenu;l&&n.doc.sel.contains(o)==-1&&Ge(n,et)(n.doc,fr(o),at);var s=i.style.cssText,u=t.wrapper.style.cssText,d=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",i.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(e.clientY-d.top-5)+"px; left: "+(e.clientX-d.left-5)+`px;
z-index: 1000; background: `+(H?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var p;q&&(p=i.ownerDocument.defaultView.scrollY),r.input.focus(),q&&i.ownerDocument.defaultView.scrollTo(null,p),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=v,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll);function g(){if(i.selectionStart!=null){var S=n.somethingSelected(),L=""+(S?i.value:"");i.value="",i.value=L,t.prevInput=S?"":"",i.selectionStart=1,i.selectionEnd=L.length,r.selForContextMenu=n.doc.sel}}function v(){if(t.contextMenuPending==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=u,i.style.cssText=s,H&&te<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=a),i.selectionStart!=null)){(!H||H&&te<9)&&g();var S=0,L=function(){r.selForContextMenu==n.doc.sel&&i.selectionStart==0&&i.selectionEnd>0&&t.prevInput==""?Ge(n,Ha)(n):S++<10?r.detectingSelectAll=setTimeout(L,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(L,200)}}if(H&&te>=9&&g(),X){nr(e);var b=function(){Ve(window,"mouseup",b),setTimeout(v,20)};R(window,"mouseup",b)}else setTimeout(v,50)},De.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},De.prototype.setUneditable=function(){},De.prototype.needsContentAttribute=!1;function xu(e,t){if(t=t?V(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var n=fe(be(e));t.autofocus=n==e||e.getAttribute("autofocus")!=null&&n==document.body}function r(){e.value=l.getValue()}var i;if(e.form&&(R(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(s){}}t.finishInit=function(s){s.save=r,s.getTextArea=function(){return e},s.toTextArea=function(){s.toTextArea=isNaN,r(),e.parentNode.removeChild(s.getWrapperElement()),e.style.display="",e.form&&(Ve(e.form,"submit",r),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=i))}},e.style.display="none";var l=xe(function(s){return e.parentNode.insertBefore(s,e.nextSibling)},t);return l}function wu(e){e.off=Ve,e.on=R,e.wheelEventPixels=Ns,e.Doc=ct,e.splitLines=Lt,e.countColumn=se,e.findColumn=We,e.isWordChar=Qe,e.Pass=Mt,e.signal=Se,e.Line=Er,e.changeEnd=cr,e.scrollbarModel=ca,e.Pos=y,e.cmpPos=D,e.modes=Dr,e.mimeModes=Ot,e.resolveMode=Or,e.getMode=Wr,e.modeExtensions=ar,e.extendMode=Pr,e.copyState=It,e.startState=zr,e.innerMode=on,e.commands=An,e.keyMap=Vt,e.keyName=Qa,e.isModifierKey=Za,e.lookupKey=Zr,e.normalizeKeyMap=Js,e.StringStream=Le,e.SharedTextMarker=Tn,e.TextMarker=hr,e.LineWidget=Ln,e.e_preventDefault=$e,e.e_stopPropagation=Nr,e.e_stop=nr,e.addClass=Ae,e.contains=U,e.rmClass=we,e.keyNames=pr}du(xe),gu(xe);var ku="iter insert remove copy getEditor constructor".split(" ");for(var xi in ct.prototype)ct.prototype.hasOwnProperty(xi)&&I(ku,xi)<0&&(xe.prototype[xi]=(function(e){return function(){return e.apply(this.doc,arguments)}})(ct.prototype[xi]));return Nt(ct),xe.inputStyles={textarea:De,contenteditable:ge},xe.defineMode=function(e){!xe.defaults.mode&&e!="null"&&(xe.defaults.mode=e),Wt.apply(this,arguments)},xe.defineMIME=mr,xe.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),xe.defineMIME("text/plain","null"),xe.defineExtension=function(e,t){xe.prototype[e]=t},xe.defineDocExtension=function(e,t){ct.prototype[e]=t},xe.fromTextArea=xu,wu(xe),xe.version="5.65.21",xe}))})(zn,zn.exports)),zn.exports}var Lu=Bn();const Nu=Su(Lu);var Hn={exports:{}},Au=Hn.exports,yl;function kl(){return yl||(yl=1,(function(tn,Rn){(function(E){E(Bn())})(function(E){"use strict";E.defineMode("javascript",function(Oe,ve){var Je=Oe.indentUnit,vt=ve.statementIndent,Ee=ve.jsonld,H=ve.json||Ee,te=ve.trackScope!==!1,q=ve.typescript,re=ve.wordCharacters||/[\w$\xa1-\uffff]/,_=(function(){function f(_e){return{type:_e,style:"keyword"}}var h=f("keyword a"),w=f("keyword b"),C=f("keyword c"