import{d8 as du}from"./index-BJCd-jqX.js";var fi={exports:{}},pu=fi.exports,ua;function ca(){return ua||(ua=1,(function(sl,da){(function(_,ur){sl.exports=ur()})(pu,(function(){var _=navigator.userAgent,ur=navigator.platform,re=/gecko\/\d/i.test(_),yt=/MSIE \d/.test(_),zr=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(_),mt=/Edge\/(\d+)/.exec(_),P=yt||zr||mt,Z=P&&(yt?document.documentMode||6:+(mt||zr)[1]),I=!mt&&/WebKit\//.test(_),fr=I&&/Qt\/\d+\.\d+/.test(_),Qe=!mt&&/Chrome\/(\d+)/.exec(_),Rr=Qe&&+Qe[1],Re=/Opera\//.test(_),hr=/Apple Computer/.test(navigator.vendor),qt=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(_),cr=/PhantomJS/.test(_),j=hr&&(/Mobile\/\w+/.test(_)||navigator.maxTouchPoints>2),Ke=/Android/.test(_),Yt=j||Ke||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(_),be=j||/Mac/.test(ur),Zt=/\bCrOS\b/.test(_),hi=/win/i.test(ur),je=Re&&_.match(/Version\/(\d*\.\d*)/);je&&(je=Number(je[1])),je&&je>=15&&(Re=!1,I=!0);var Cn=be&&(fr||Re&&(je==null||je<12.11)),dr=re||P&&Z>=9;function Ot(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var it=function(e,t){var n=e.className,r=Ot(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 w(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function N(e,t){return w(e).appendChild(t)}function v(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 l=0;l=t)return o+(t-l);o+=a-l,o+=n-o%n,l=a+1}}var B=function(){this.id=null,this.f=null,this.time=0,this.handler=Ae(this.onTimeout,this)};B.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},B.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n=t)return r+Math.min(o,t-i);if(i+=l-r,i+=n-i%n,r=l+1,i>=t)return r}}var Xe=[""];function at(e){for(;Xe.length<=e;)Xe.push(U(Xe)+" ");return Xe[e]}function U(e){return e[e.length-1]}function pr(e,t){for(var n=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||ci.test(e))}function vr(e,t){return t?t.source.indexOf("\\w")>-1&&Ur(e)?!0:t.test(e):Ur(e)}function Mn(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var gr=/[\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 _r(e){return e.charCodeAt(0)>=768&&gr.test(e)}function st(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var i=(t+n)/2,l=r<0?Math.ceil(i):Math.floor(i);if(l==t)return e(l)?t:n;e(l)?n=l:t=l+r}}function jt(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,l=0;lt||t==n&&o.to==t)&&(r(Math.max(o.from,t),Math.min(o.to,n),o.level==1?"rtl":"ltr",l),i=!0)}i||r(t,n,"ltr")}var ut=null;function qe(e,t,n){var r;ut=null;for(var i=0;it)return i;l.to==t&&(l.from!=l.to&&n=="before"?r=i:ut=i),l.from==t&&(l.from!=l.to&&n!="before"?r=i:ut=i)}return r??ut}var di=(function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(u){return u<=247?e.charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?t.charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":u==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,l=/[LRr]/,o=/[Lb1n]/,a=/[1n]/;function s(u,h,c){this.level=u,this.from=h,this.to=c}return function(u,h){var c=h=="ltr"?"L":"R";if(u.length==0||h=="ltr"&&!r.test(u))return!1;for(var y=u.length,g=[],b=0;b-1&&(r[t]=i.slice(0,l).concat(i.slice(l+1)))}}}function V(e,t){var n=Kr(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function Te(e){e.prototype.on=function(t,n){L(this,t,n)},e.prototype.off=function(t,n){we(this,t,n)}}function Se(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Vt(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Xr(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function wt(e){Se(e),Vt(e)}function Ne(e){return e.target||e.srcElement}function qr(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),be&&e.ctrlKey&&t==1&&(t=3),t}var pi=(function(){if(P&&Z<9)return!1;var e=v("div");return"draggable"in e||"dragDrop"in e})(),Ze;function vi(e){if(Ze==null){var t=v("span","​");N(e,v("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Ze=t.offsetWidth<=1&&t.offsetHeight>2&&!(P&&Z<8))}var n=Ze?v("span","​"):v("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}var yr;function Nn(e){if(yr!=null)return yr;var t=N(e,document.createTextNode("AخA")),n=Pe(t,0,1).getBoundingClientRect(),r=Pe(t,1,2).getBoundingClientRect();return w(e),!n||n.left==n.right?!1:yr=r.right-n.right<3}var Yr=` 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 l=e.slice(t,e.charAt(i-1)=="\r"?i-1:i),o=l.indexOf("\r");o!=-1?(n.push(l.slice(0,o)),t+=o+1):(n.push(l),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Ht=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},ft=(function(){var e=v("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")})(),ht=null;function On(e){if(ht!=null)return ht;var t=N(e,v("span","x")),n=t.getBoundingClientRect(),r=Pe(t,0,1).getBoundingClientRect();return ht=Math.abs(n.left-r.left)>1}var $e={},Et={};function Wn(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),$e[e]=t}function mr(e,t){Et[e]=t}function Ie(e){if(typeof e=="string"&&Et.hasOwnProperty(e))e=Et[e];else if(e&&typeof e.name=="string"&&Et.hasOwnProperty(e.name)){var t=Et[e.name];typeof t=="string"&&(t={name:t}),e=Tn(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ie("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ie("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function St(e,t){t=Ie(t);var n=$e[t.name];if(!n)return St(e,"text/plain");var r=n(e,t);if(Ft.hasOwnProperty(t.name)){var i=Ft[t.name];for(var l in i)i.hasOwnProperty(l)&&(r.hasOwnProperty(l)&&(r["_"+l]=r[l]),r[l]=i[l])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var o in t.modeProps)r[o]=t.modeProps[o];return r}var Ft={};function Hn(e,t){var n=Ft.hasOwnProperty(e)?Ft[e]:Ft[e]={};H(t,n)}function Ct(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 Pt(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.post},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.lastColumnPos0?null:(l&&t!==!1&&(this.pos+=l[0].length),l)}},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)},le.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function D(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],l=i.chunkSize();if(t=e.first&&tn?p(n,D(e,n).text.length):pa(t,D(e,t.line).text.length)}function pa(e,t){var n=e.ch;return n==null||n>t?p(e.line,t):n<0?p(e.line,0):e}function ul(e,t){for(var n=[],r=0;rthis.maxLookAhead&&(this.maxLookAhead=e),t},dt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},dt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},dt.fromSaved=function(e,t,n){return t instanceof En?new dt(e,Ct(e.mode,t.state),n,t.lookAhead):new dt(e,Ct(e.mode,t),n)},dt.prototype.save=function(e){var t=e!==!1?Ct(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new En(t,this.maxLookAhead):t};function fl(e,t,n,r){var i=[e.state.modeGen],l={};gl(e,t.text,e.doc.mode,n,function(u,h){return i.push(u,h)},l,r);for(var o=n.state,a=function(u){n.baseTokens=i;var h=e.state.overlays[u],c=1,y=0;n.state=!0,gl(e,t.text,h.mode,n,function(g,b){for(var x=c;yg&&i.splice(c,1,g,i[c+1],S),c+=2,y=Math.min(g,S)}if(b)if(h.opaque)i.splice(x,c-x,g,"overlay "+b),c=x+2;else for(;xe.options.maxHighlightLength&&Ct(e.doc.mode,r.state),l=fl(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=l.styles,l.classes?t.styleClasses=l.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Jr(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new dt(r,!0,t);var l=va(e,t,n),o=l>r.first&&D(r,l-1).stateAfter,a=o?dt.fromSaved(r,o,l):new dt(r,Zr(r.mode),l);return r.iter(l,t,function(s){gi(e,s.text,a);var u=a.line;s.stateAfter=u==t-1||u%5==0||u>=i.viewFrom&&ut.start)return l}throw new Error("Mode "+e.name+" failed to advance stream.")}var dl=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function pl(e,t,n,r){var i=e.doc,l=i.mode,o;t=F(i,t);var a=D(i,t.line),s=Jr(e,t.line,n),u=new le(a.text,e.options.tabSize,s),h;for(r&&(h=[]);(r||u.pose.options.maxHighlightLength?(a=!1,o&&gi(e,t,r,h.pos),h.pos=t.length,c=null):c=vl(yi(n,h,r.state,y),l),y){var g=y[0].name;g&&(c="m-"+(c?g+" "+c:g))}if(!a||u!=c){for(;so;--a){if(a<=l.first)return l.first;var s=D(l,a-1),u=s.stateAfter;if(u&&(!n||a+(u instanceof En?u.lookAhead:0)<=l.modeFrontier))return a;var h=O(s.text,null,e.options.tabSize);(i==null||r>h)&&(i=a-1,r=h)}return i}function ga(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var i=D(e,r).stateAfter;if(i&&(!(i instanceof En)||r+i.lookAhead=t:l.to>t);(r||(r=[])).push(new Fn(o,l.from,s?null:l.to))}}return r}function Sa(e,t,n){var r;if(e)for(var i=0;i=t:l.to>t);if(a||l.from==t&&o.type=="bookmark"&&(!n||l.marker.insertLeft)){var s=l.from==null||(o.inclusiveLeft?l.from<=t:l.from0&&a)for(var M=0;M0)){var h=[s,1],c=m(u.from,a.from),y=m(u.to,a.to);(c<0||!o.inclusiveLeft&&!c)&&h.push({from:u.from,to:a.from}),(y>0||!o.inclusiveRight&&!y)&&h.push({from:a.to,to:u.to}),i.splice.apply(i,h),s+=h.length-3}}return i}function bl(e){var t=e.markedSpans;if(t){for(var n=0;nt)&&(!r||bi(r,l.marker)<0)&&(r=l.marker)}return r}function Cl(e,t,n,r,i){var l=D(e,t),o=Lt&&l.markedSpans;if(o)for(var a=0;a=0&&c<=0||h<=0&&c>=0)&&(h<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?m(u.to,n)>=0:m(u.to,n)>0)||h>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?m(u.from,r)<=0:m(u.from,r)<0)))return!0}}}function et(e){for(var t;t=Sl(e);)e=t.find(-1,!0).line;return e}function La(e){for(var t;t=Bn(e);)e=t.find(1,!0).line;return e}function Ta(e){for(var t,n;t=Bn(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function xi(e,t){var n=D(e,t),r=et(n);return n==r?t:X(r)}function kl(e,t){if(t>e.lastLine())return t;var n=D(e,t),r;if(!It(e,n))return t;for(;r=Bn(n);)n=r.find(1,!0).line;return X(n)+1}function It(e,t){var n=Lt&&t.markedSpans;if(n){for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=i,t.maxLine=r)})}var xr=function(e,t,n){this.text=e,xl(this,t),this.height=n?n(this):1};xr.prototype.lineNo=function(){return X(this)},Te(xr);function Ma(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),bl(e),xl(e,n);var i=r?r(e):1;i!=e.height&&Je(e,i)}function Da(e){e.parent=null,bl(e)}var Aa={},Na={};function Ll(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Na:Aa;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function Tl(e,t){var n=lt("span",null,null,I?"padding-right: .1px":null),r={pre:lt("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var l=i?t.rest[i-1]:t.line,o=void 0;r.pos=0,r.addToken=Wa,Nn(e.display.measure)&&(o=Ye(l,e.doc.direction))&&(r.addToken=Ea(r.addToken,o)),r.map=[];var a=t!=e.display.externalMeasured&&X(l);Fa(l,r,hl(e,l,a)),l.styleClasses&&(l.styleClasses.bgClass&&(r.bgClass=bt(l.styleClasses.bgClass,r.bgClass||"")),l.styleClasses.textClass&&(r.textClass=bt(l.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(vi(e.display.measure))),i==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(I){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return V(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=bt(r.pre.className,r.textClass||"")),r}function Oa(e){var t=v("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Wa(e,t,n,r,i,l,o){if(t){var a=e.splitSpaces?Ha(t,e.trailingSpace):t,s=e.cm.state.specialChars,u=!1,h;if(!s.test(t))e.col+=t.length,h=document.createTextNode(a),e.map.push(e.pos,e.pos+t.length,h),P&&Z<9&&(u=!0),e.pos+=t.length;else{h=document.createDocumentFragment();for(var c=0;;){s.lastIndex=c;var y=s.exec(t),g=y?y.index-c:t.length-c;if(g){var b=document.createTextNode(a.slice(c,c+g));P&&Z<9?h.appendChild(v("span",[b])):h.appendChild(b),e.map.push(e.pos,e.pos+g,b),e.col+=g,e.pos+=g}if(!y)break;c+=g+1;var x=void 0;if(y[0]==" "){var S=e.cm.options.tabSize,C=S-e.col%S;x=h.appendChild(v("span",at(C),"cm-tab")),x.setAttribute("role","presentation"),x.setAttribute("cm-text"," "),e.col+=C}else y[0]=="\r"||y[0]==` `?(x=h.appendChild(v("span",y[0]=="\r"?"␍":"␤","cm-invalidchar")),x.setAttribute("cm-text",y[0]),e.col+=1):(x=e.cm.options.specialCharPlaceholder(y[0]),x.setAttribute("cm-text",y[0]),P&&Z<9?h.appendChild(v("span",[x])):h.appendChild(x),e.col+=1);e.map.push(e.pos,e.pos+1,x),e.pos++}}if(e.trailingSpace=a.charCodeAt(t.length-1)==32,n||r||i||u||l||o){var T=n||"";r&&(T+=r),i&&(T+=i);var k=v("span",[h],T,l);if(o)for(var M in o)o.hasOwnProperty(M)&&M!="style"&&M!="class"&&k.setAttribute(M,o[M]);return e.content.appendChild(k)}e.content.appendChild(h)}}function Ha(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;iu&&c.from<=u));y++);if(c.to>=h)return e(n,r,i,l,o,a,s);e(n,r.slice(0,c.to-u),i,l,null,a,s),l=null,r=r.slice(c.to-u),u=c.to}}}function Ml(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 Fa(e,t,n){var r=e.markedSpans,i=e.text,l=0;if(!r){for(var o=1;os||z.collapsed&&A.to==s&&A.from==s)){if(A.to!=null&&A.to!=s&&g>A.to&&(g=A.to,x=""),z.className&&(b+=" "+z.className),z.css&&(y=(y?y+";":"")+z.css),z.startStyle&&A.from==s&&(S+=" "+z.startStyle),z.endStyle&&A.to==g&&(M||(M=[])).push(z.endStyle,A.to),z.title&&((T||(T={})).title=z.title),z.attributes)for(var Q in z.attributes)(T||(T={}))[Q]=z.attributes[Q];z.collapsed&&(!C||bi(C.marker,z)<0)&&(C=A)}else A.from>s&&g>A.from&&(g=A.from)}if(M)for(var ge=0;ge=a)break;for(var ze=Math.min(a,g);;){if(h){var He=s+h.length;if(!C){var se=He>ze?h.slice(0,ze-s):h;t.addToken(t,se,c?c+b:b,S,s+se.length==g?x:"",y,T)}if(He>=ze){h=h.slice(ze-s),s=ze;break}s=He,S=""}h=i.slice(l,l=n[u++]),c=Ll(n[u++],t.cm.options)}}}function Dl(e,t,n){this.line=t,this.rest=Ta(t),this.size=this.rest?X(U(this.rest))-n+1:1,this.node=this.text=null,this.hidden=It(e,t)}function Rn(e,t,n){for(var r=[],i,l=t;l2&&l.push((s.bottom+u.top)/2-n.top)}}l.push(n.bottom-n.top)}}function Fl(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;rn)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function qa(e,t){t=et(t);var n=X(t),r=e.display.externalMeasured=new Dl(e.doc,t,n);r.lineN=n;var i=r.built=Tl(e,r);return r.text=i.pre,N(e.display.lineMeasure,i.pre),r}function Pl(e,t,n,r){return vt(e,Sr(e,t),n,r)}function Ti(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(l=s-a,i=l-1,t>=s&&(o="right")),i!=null){if(r=e[u+2],a==s&&n==(r.insertLeft?"left":"right")&&(o=n),n=="left"&&i==0)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[(u-=3)+2],o="left";if(n=="right"&&i==s-a)for(;u=0&&(n=e[i]).left==n.right;i--);return n}function Za(e,t,n,r){var i=Bl(t.map,n,r),l=i.node,o=i.start,a=i.end,s=i.collapse,u;if(l.nodeType==3){for(var h=0;h<4;h++){for(;o&&_r(t.line.text.charAt(i.coverStart+o));)--o;for(;i.coverStart+a0&&(s=r="right");var c;e.options.lineWrapping&&(c=l.getClientRects()).length>1?u=c[r=="right"?c.length-1:0]:u=l.getBoundingClientRect()}if(P&&Z<9&&!o&&(!u||!u.left&&!u.right)){var y=l.parentNode.getClientRects()[0];y?u={left:y.left,right:y.left+kr(e.display),top:y.top,bottom:y.bottom}:u=Il}for(var g=u.top-t.rect.top,b=u.bottom-t.rect.top,x=(g+b)/2,S=t.view.measure.heights,C=0;C=r.text.length?(s=r.text.length,u="before"):s<=0&&(s=0,u="after"),!a)return o(u=="before"?s-1:s,u=="before");function h(b,x,S){var C=a[x],T=C.level==1;return o(S?b-1:b,T!=S)}var c=qe(a,s,u),y=ut,g=h(s,c,u=="before");return y!=null&&(g.other=h(s,y,u!="before")),g}function Kl(e,t){var n=0;t=F(e.doc,t),e.options.lineWrapping||(n=kr(e.display)*t.ch);var r=D(e.doc,t.line),i=Tt(r)+Gn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Di(e,t,n,r,i){var l=p(e,t,n);return l.xRel=i,r&&(l.outside=r),l}function Ai(e,t,n){var r=e.doc;if(n+=e.display.viewOffset,n<0)return Di(r.first,0,null,-1,-1);var i=ct(r,n),l=r.first+r.size-1;if(i>l)return Di(r.first+r.size-1,D(r,l).text.length,null,1,1);t<0&&(t=0);for(var o=D(r,i);;){var a=Qa(e,o,i,t,n),s=ka(o,a.ch+(a.xRel>0||a.outside>0?1:0));if(!s)return a;var u=s.find(1);if(u.line==i)return u;o=D(r,i=u.line)}}function Xl(e,t,n,r){r-=Mi(t);var i=t.text.length,l=ne(function(o){return vt(e,n,o-1).bottom<=r},i,0);return i=ne(function(o){return vt(e,n,o).top>r},l,i),{begin:l,end:i}}function ql(e,t,n,r){n||(n=Sr(e,t));var i=Un(e,t,vt(e,n,r),"line").top;return Xl(e,t,n,i)}function Ni(e,t,n,r){return e.bottom<=n?!1:e.top>n?!0:(r?e.left:e.right)>t}function Qa(e,t,n,r,i){i-=Tt(t);var l=Sr(e,t),o=Mi(t),a=0,s=t.text.length,u=!0,h=Ye(t,e.doc.direction);if(h){var c=(e.options.lineWrapping?Va:ja)(e,t,n,l,h,r,i);u=c.level!=1,a=u?c.from:c.to-1,s=u?c.to:c.from-1}var y=null,g=null,b=ne(function(W){var A=vt(e,l,W);return A.top+=o,A.bottom+=o,Ni(A,r,i,!1)?(A.top<=i&&A.left<=r&&(y=W,g=A),!0):!1},a,s),x,S,C=!1;if(g){var T=r-g.left=M.bottom?1:0}return b=st(t.text,b,1),Di(n,b,S,C,r-x)}function ja(e,t,n,r,i,l,o){var a=ne(function(c){var y=i[c],g=y.level!=1;return Ni(tt(e,p(n,g?y.to:y.from,g?"before":"after"),"line",t,r),l,o,!0)},0,i.length-1),s=i[a];if(a>0){var u=s.level!=1,h=tt(e,p(n,u?s.from:s.to,u?"after":"before"),"line",t,r);Ni(h,l,o,!0)&&h.top>o&&(s=i[a-1])}return s}function Va(e,t,n,r,i,l,o){var a=Xl(e,t,r,o),s=a.begin,u=a.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var h=null,c=null,y=0;y=u||g.to<=s)){var b=g.level!=1,x=vt(e,r,b?Math.min(u,g.to)-1:Math.max(s,g.from)).right,S=xS)&&(h=g,c=S)}}return h||(h=i[i.length-1]),h.fromu&&(h={from:h.from,to:u,level:h.level}),h}var er;function Cr(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(er==null){er=v("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)er.appendChild(document.createTextNode("x")),er.appendChild(v("br"));er.appendChild(document.createTextNode("x"))}N(e.measure,er);var n=er.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),w(e.measure),n||1}function kr(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=v("span","xxxxxxxxxx"),n=v("pre",[t],"CodeMirror-line-like");N(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Oi(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,l=t.gutters.firstChild,o=0;l;l=l.nextSibling,++o){var a=e.display.gutterSpecs[o].className;n[a]=l.offsetLeft+l.clientLeft+i,r[a]=l.clientWidth}return{fixedPos:Wi(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Wi(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Yl(e){var t=Cr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/kr(e.display)-3);return function(i){if(It(e.doc,i))return 0;var l=0;if(i.widgets)for(var o=0;o0&&(u=D(e.doc,s.line).text).length==s.ch){var h=O(u,u.length,e.options.tabSize)-u.length;s=p(s.line,Math.max(0,Math.round((l-El(e.display).left)/kr(e.display))-h))}return s}function rr(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var n=e.display.view,r=0;rt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Lt&&xi(e.doc,t)i.viewFrom?zt(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)zt(e);else if(t<=i.viewFrom){var l=Kn(e,n,n+r,1);l?(i.view=i.view.slice(l.index),i.viewFrom=l.lineN,i.viewTo+=r):zt(e)}else if(n>=i.viewTo){var o=Kn(e,t,t,-1);o?(i.view=i.view.slice(0,o.index),i.viewTo=o.lineN):zt(e)}else{var a=Kn(e,t,t,-1),s=Kn(e,n,n+r,1);a&&s?(i.view=i.view.slice(0,a.index).concat(Rn(e,a.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=r):zt(e)}var u=i.externalMeasured;u&&(n=i.lineN&&t=r.viewTo)){var l=r.view[rr(e,t)];if(l.node!=null){var o=l.changes||(l.changes=[]);G(o,n)==-1&&o.push(n)}}}function zt(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Kn(e,t,n,r){var i=rr(e,t),l,o=e.display.view;if(!Lt||n==e.doc.first+e.doc.size)return{index:i,lineN:n};for(var a=e.display.viewFrom,s=0;s0){if(i==o.length-1)return null;l=a+o[i].size-t,i++}else l=a-t;t+=l,n+=l}for(;xi(e.doc,n)!=n;){if(i==(r<0?0:o.length-1))return null;n+=r*o[i-(r<0?1:0)].size,i+=r}return{index:i,lineN:n}}function $a(e,t,n){var r=e.display,i=r.view;i.length==0||t>=r.viewTo||n<=r.viewFrom?(r.view=Rn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=Rn(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,rr(e,n)))),r.viewTo=n}function Zl(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||s.to().line0?o:e.defaultCharWidth())+"px"}if(r.other){var a=n.appendChild(v("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));a.style.display="",a.style.left=r.other.left+"px",a.style.top=r.other.top+"px",a.style.height=(r.other.bottom-r.other.top)*.85+"px"}}function Xn(e,t){return e.top-t.top||e.left-t.left}function es(e,t,n){var r=e.display,i=e.doc,l=document.createDocumentFragment(),o=El(e.display),a=o.left,s=Math.max(r.sizerWidth,$t(e)-r.sizer.offsetLeft)-o.right,u=i.direction=="ltr";function h(k,M,W,A){M<0&&(M=0),M=Math.round(M),A=Math.round(A),l.appendChild(v("div",null,"CodeMirror-selected","position: absolute; left: "+k+`px; top: `+M+"px; width: "+(W??s-k)+`px; height: `+(A-M)+"px"))}function c(k,M,W){var A=D(i,k),z=A.text.length,Q,ge;function te(se,Ee){return _n(e,p(k,se),"div",A,Ee)}function ze(se,Ee,me){var he=ql(e,A,null,se),ue=Ee=="ltr"==(me=="after")?"left":"right",oe=me=="after"?he.begin:he.end-(/\s/.test(A.text.charAt(he.end-1))?2:1);return te(oe,ue)[ue]}var He=Ye(A,i.direction);return jt(He,M||0,W??z,function(se,Ee,me,he){var ue=me=="ltr",oe=te(se,ue?"left":"right"),Fe=te(Ee-1,ue?"right":"left"),Ir=M==null&&se==0,Xt=W==null&&Ee==z,ke=he==0,gt=!He||he==He.length-1;if(Fe.top-oe.top<=3){var ye=(u?Ir:Xt)&&ke,ol=(u?Xt:Ir)&>,Nt=ye?a:(ue?oe:Fe).left,ar=ol?s:(ue?Fe:oe).right;h(Nt,oe.top,ar-Nt,oe.bottom)}else{var sr,De,Br,al;ue?(sr=u&&Ir&&ke?a:oe.left,De=u?s:ze(se,me,"before"),Br=u?a:ze(Ee,me,"after"),al=u&&Xt&>?s:Fe.right):(sr=u?ze(se,me,"before"):a,De=!u&&Ir&&ke?s:oe.right,Br=!u&&Xt&>?a:Fe.left,al=u?ze(Ee,me,"after"):s),h(sr,oe.top,De-sr,oe.bottom),oe.bottom0?t.blinker=setInterval(function(){e.hasFocus()||Lr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Ql(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Ii(e))}function Pi(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Lr(e))},100)}function Ii(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(V(e,"focus",e,t),e.state.focused=!0,Ge(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),I&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Fi(e))}function Lr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(V(e,"blur",e,t),e.state.focused=!1,it(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function qn(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,l=0,o=0;o.005||g<-.005)&&(ie.display.sizerWidth){var x=Math.ceil(h/kr(e.display));x>e.display.maxLineLength&&(e.display.maxLineLength=x,e.display.maxLine=a.line,e.display.maxLineChanged=!0)}}}Math.abs(l)>2&&(t.scroller.scrollTop+=l)}function jl(e){if(e.widgets)for(var t=0;t=o&&(l=ct(t,Tt(D(t,s))-e.wrapper.clientHeight),o=s)}return{from:l,to:Math.max(o,l+1)}}function ts(e,t){if(!ie(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null,l=n.wrapper.ownerDocument;if(t.top+r.top<0?i=!0:t.bottom+r.top>(l.defaultView.innerHeight||l.documentElement.clientHeight)&&(i=!1),i!=null&&!cr){var o=v("div","​",null,`position: absolute; top: `+(t.top-n.viewOffset-Gn(e.display))+`px; height: `+(t.bottom-t.top+pt(e)+n.barHeight)+`px; left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}function rs(e,t,n,r){r==null&&(r=0);var i;!e.options.lineWrapping&&t==n&&(n=t.sticky=="before"?p(t.line,t.ch+1,"before"):t,t=t.ch?p(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var l=0;l<5;l++){var o=!1,a=tt(e,t),s=!n||n==t?a:tt(e,n);i={left:Math.min(a.left,s.left),top:Math.min(a.top,s.top)-r,right:Math.max(a.left,s.left),bottom:Math.max(a.bottom,s.bottom)+r};var u=Bi(e,i),h=e.doc.scrollTop,c=e.doc.scrollLeft;if(u.scrollTop!=null&&(nn(e,u.scrollTop),Math.abs(e.doc.scrollTop-h)>1&&(o=!0)),u.scrollLeft!=null&&(nr(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-c)>1&&(o=!0)),!o)break}return i}function ns(e,t){var n=Bi(e,t);n.scrollTop!=null&&nn(e,n.scrollTop),n.scrollLeft!=null&&nr(e,n.scrollLeft)}function Bi(e,t){var n=e.display,r=Cr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:n.scroller.scrollTop,l=Li(e),o={};t.bottom-t.top>l&&(t.bottom=t.top+l);var a=e.doc.height+ki(n),s=t.topa-r;if(t.topi+l){var h=Math.min(t.top,(u?a:t.bottom)-l);h!=i&&(o.scrollTop=h)}var c=e.options.fixedGutter?0:n.gutters.offsetWidth,y=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:n.scroller.scrollLeft-c,g=$t(e)-n.gutters.offsetWidth,b=t.right-t.left>g;return b&&(t.right=t.left+g),t.left<10?o.scrollLeft=0:t.leftg+y-3&&(o.scrollLeft=t.right+(b?0:10)-g),o}function zi(e,t){t!=null&&(Zn(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Tr(e){Zn(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function rn(e,t,n){(t!=null||n!=null)&&Zn(e),t!=null&&(e.curOp.scrollLeft=t),n!=null&&(e.curOp.scrollTop=n)}function is(e,t){Zn(e),e.curOp.scrollToPos=t}function Zn(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=Kl(e,t.from),r=Kl(e,t.to);Vl(e,n,r,t.margin)}}function Vl(e,t,n,r){var i=Bi(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});rn(e,i.scrollLeft,i.scrollTop)}function nn(e,t){Math.abs(e.doc.scrollTop-t)<2||(re||Gi(e,{top:t}),$l(e,t,!0),re&&Gi(e),an(e,100))}function $l(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 nr(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,io(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function ln(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+ki(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+pt(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var ir=function(e,t,n){this.cm=n;var r=this.vert=v("div",[v("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=v("div",[v("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),L(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),L(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,P&&Z<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ir.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.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var l=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+l)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(r==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},ir.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ir.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ir.prototype.zeroWidthHack=function(){var e=be&&!qt?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new B,this.disableVert=new B},ir.prototype.enableZeroWidthBar=function(e,t,n){e.style.visibility="";function r(){var i=e.getBoundingClientRect(),l=n=="vert"?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1);l!=e?e.style.visibility="hidden":t.set(1e3,r)}t.set(1e3,r)},ir.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var on=function(){};on.prototype.update=function(){return{bottom:0,right:0}},on.prototype.setScrollLeft=function(){},on.prototype.setScrollTop=function(){},on.prototype.clear=function(){};function Mr(e,t){t||(t=ln(e));var n=e.display.barWidth,r=e.display.barHeight;eo(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&qn(e),eo(e,ln(e)),n=e.display.barWidth,r=e.display.barHeight}function eo(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}var to={native:ir,null:on};function ro(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&it(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new to[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),L(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){n=="horizontal"?nr(e,t):nn(e,t)},e),e.display.scrollbars.addClass&&Ge(e.display.wrapper,e.display.scrollbars.addClass)}var ls=0;function lr(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:++ls,markArrays:null},Pa(e.curOp)}function or(e){var t=e.curOp;t&&Ba(t,function(n){for(var r=0;r=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Jn(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function ss(e){e.updatedDisplay=e.mustUpdate&&Ri(e.cm,e.update)}function us(e){var t=e.cm,n=t.display;e.updatedDisplay&&qn(t),e.barMeasure=ln(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Pl(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+pt(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-$t(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function fs(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var n=+new Date+e.options.workTime,r=Jr(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(l){if(r.line>=e.display.viewFrom){var o=l.styles,a=l.text.length>e.options.maxHighlightLength?Ct(t.mode,r.state):null,s=fl(e,l,r,!0);a&&(r.state=a),l.styles=s.styles;var u=l.styleClasses,h=s.classes;h?l.styleClasses=h:u&&(l.styleClasses=null);for(var c=!o||o.length!=l.styles.length||u!=h&&(!u||!h||u.bgClass!=h.bgClass||u.textClass!=h.textClass),y=0;!c&&yn)return an(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Be(e,function(){for(var l=0;l=n.viewFrom&&t.visible.to<=n.viewTo&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&Zl(e)==0)return!1;lo(e)&&(zt(e),t.dims=Oi(e));var i=r.first+r.size,l=Math.max(t.visible.from-e.options.viewportMargin,r.first),o=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFromo&&n.viewTo-o<20&&(o=Math.min(i,n.viewTo)),Lt&&(l=xi(e.doc,l),o=kl(e.doc,o));var a=l!=n.viewFrom||o!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;$a(e,l,o),n.viewOffset=Tt(D(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var s=Zl(e);if(!a&&s==0&&!t.force&&n.renderedView==n.view&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo))return!1;var u=ps(e);return s>4&&(n.lineDiv.style.display="none"),gs(e,n.updateLineNumbers,t.dims),s>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,vs(u),w(n.cursorDiv),w(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,a&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,an(e,400)),n.updateLineNumbers=null,!0}function no(e,t){for(var n=t.viewport,r=!0;;r=!1){if(!r||!e.options.lineWrapping||t.oldDisplayWidth==$t(e)){if(n&&n.top!=null&&(n={top:Math.min(e.doc.height+ki(e.display)-Li(e),n.top)}),t.visible=Yn(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else r&&(t.visible=Yn(e.display,e.doc,n));if(!Ri(e,t))break;qn(e);var i=ln(e);tn(e),Mr(e,i),_i(e,i),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Gi(e,t){var n=new Jn(e,t);if(Ri(e,n)){qn(e),no(e,n);var r=ln(e);tn(e),Mr(e,r),_i(e,r),n.finish()}}function gs(e,t,n){var r=e.display,i=e.options.lineNumbers,l=r.lineDiv,o=l.firstChild;function a(b){var x=b.nextSibling;return I&&be&&e.display.currentWheelTarget==b?b.style.display="none":b.parentNode.removeChild(b),x}for(var s=r.view,u=r.viewFrom,h=0;h-1&&(g=!1),Al(e,c,u,n)),g&&(w(c.lineNumber),c.lineNumber.appendChild(document.createTextNode(d(e.options,u)))),o=c.node.nextSibling}u+=c.size}for(;o;)o=a(o)}function Ui(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",de(e,"gutterChanged",e)}function _i(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+pt(e)+"px"}function io(e){var t=e.display,n=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var r=Wi(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,l=r+"px",o=0;o=105&&(i.wrapper.style.clipPath="inset(0px)"),i.wrapper.setAttribute("translate","no"),P&&Z<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),!I&&!(re&&Yt)&&(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,i.gutterSpecs=Ki(r.gutters,r.lineNumbers),oo(i),n.init(i)}var Qn=0,Dt=null;P?Dt=-.53:re?Dt=15:Qe?Dt=-.7:hr&&(Dt=-1/3);function ao(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),n==null&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:n==null&&(n=e.wheelDelta),{x:t,y:n}}function ms(e){var t=ao(e);return t.x*=Dt,t.y*=Dt,t}function so(e,t){Qe&&Rr==102&&(e.display.chromeScrollHack==null?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var n=ao(t),r=n.x,i=n.y,l=Dt;t.deltaMode===0&&(r=t.deltaX,i=t.deltaY,l=1);var o=e.display,a=o.scroller,s=a.scrollWidth>a.clientWidth,u=a.scrollHeight>a.clientHeight;if(r&&s||i&&u){if(i&&be&&I){e:for(var h=t.target,c=o.view;h!=a;h=h.parentNode)for(var y=0;y=0&&m(e,r.to())<=0)return n}return-1};var q=function(e,t){this.anchor=e,this.head=t};q.prototype.from=function(){return fe(this.anchor,this.head)},q.prototype.to=function(){return K(this.anchor,this.head)},q.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function rt(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort(function(y,g){return m(y.from(),g.from())}),n=G(t,i);for(var l=1;l0:s>=0){var u=fe(a.from(),o.from()),h=K(a.to(),o.to()),c=a.empty()?o.from()==o.head:a.from()==a.head;l<=n&&--n,t.splice(--l,2,new q(c?h:u,c?u:h))}}return new _e(t,n)}function Rt(e,t){return new _e([new q(e,t||e)],0)}function Gt(e){return e.text?p(e.from.line+e.text.length-1,U(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function uo(e,t){if(m(e,t.from)<0)return e;if(m(e,t.to)<=0)return Gt(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Gt(t).ch-t.to.ch),p(n,r)}function Xi(e,t){for(var n=[],r=0;r1&&e.remove(a.line+1,b-1),e.insert(a.line+1,C)}de(e,"change",e,t)}function Ut(e,t,n){function r(i,l,o){if(i.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges)return e.done.pop(),U(e.done)}function go(e,t,n,r){var i=e.history;i.undone.length=0;var l=+new Date,o,a;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&i.lastModTime>l-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(o=ws(i,i.lastOp==r)))a=U(o.changes),m(t.from,t.to)==0&&m(t.from,a.to)==0?a.to=Gt(t):o.changes.push(Zi(e,t));else{var s=U(i.done);for((!s||!s.ranges)&&Vn(e.sel,i.done),o={changes:[Zi(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=l,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||V(e,"historyAdded")}function Ss(e,t,n,r){var i=t.charAt(0);return i=="*"||i=="+"&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Cs(e,t,n,r){var i=e.history,l=r&&r.origin;n==i.lastSelOp||l&&i.lastSelOrigin==l&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==l||Ss(e,l,U(i.done),t))?i.done[i.done.length-1]=t:Vn(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=l,i.lastSelOp=n,r&&r.clearRedo!==!1&&vo(i.undone)}function Vn(e,t){var n=U(t);n&&n.ranges&&n.equals(e)||t.push(e)}function yo(e,t,n,r){var i=t["spans_"+e.id],l=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(o){o.markedSpans&&((i||(i=t["spans_"+e.id]={}))[l]=o.markedSpans),++l})}function ks(e){if(!e)return null;for(var t,n=0;n-1&&(U(a)[c]=u[c],delete u[c])}}return r}function Ji(e,t,n,r){if(r){var i=e.anchor;if(n){var l=m(t,i)<0;l!=m(n,i)<0?(i=t,t=n):l!=m(t,n)<0&&(t=n)}return new q(i,t)}else return new q(n||t,t)}function $n(e,t,n,r,i){i==null&&(i=e.cm&&(e.cm.display.shift||e.extend)),Ce(e,new _e([Ji(e.sel.primary(),t,n,i)],0),r)}function bo(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),l=0;l=t.ch:a.to>t.ch))){if(i&&(V(s,"beforeCursorEnter"),s.explicitlyCleared))if(l.markedSpans){--o;continue}else break;if(!s.atomic)continue;if(n){var c=s.find(r<0?1:-1),y=void 0;if((r<0?h:u)&&(c=Lo(e,c,-r,c&&c.line==t.line?l:null)),c&&c.line==t.line&&(y=m(c,n))&&(r<0?y<0:y>0))return Ar(e,c,t,r,i)}var g=s.find(r<0?-1:1);return(r<0?u:h)&&(g=Lo(e,g,r,g.line==t.line?l:null)),g?Ar(e,g,t,r,i):null}}return t}function ti(e,t,n,r,i){var l=r||1,o=Ar(e,t,n,l,i)||!i&&Ar(e,t,n,l,!0)||Ar(e,t,n,-l,i)||!i&&Ar(e,t,n,-l,!0);return o||(e.cantEdit=!0,p(e.first,0))}function Lo(e,t,n,r){return n<0&&t.ch==0?t.line>e.first?F(e,p(t.line-1)):null:n>0&&t.ch==(r||D(e,t.line)).text.length?t.line=0;--i)Do(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else Do(e,t)}}function Do(e,t){if(!(t.text.length==1&&t.text[0]==""&&m(t.from,t.to)==0)){var n=Xi(e,t);go(e,t,n,e.cm?e.cm.curOp.id:NaN),fn(e,t,n,mi(e,t));var r=[];Ut(e,function(i,l){!l&&G(r,i.history)==-1&&(Wo(i.history,t),r.push(i.history)),fn(i,t,null,mi(i,t))})}}function ri(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!(r&&!n)){for(var i=e.history,l,o=e.sel,a=t=="undo"?i.done:i.undone,s=t=="undo"?i.undone:i.done,u=0;u=0;--g){var b=y(g);if(b)return b.v}}}}function Ao(e,t){if(t!=0&&(e.first+=t,e.sel=new _e(pr(e.sel.ranges,function(i){return new q(p(i.anchor.line+t,i.anchor.ch),p(i.head.line+t,i.head.ch))}),e.sel.primIndex),e.cm)){Oe(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.linel&&(t={from:t.from,to:p(l,D(e,l).text.length),text:[t.text[0]],origin:t.origin}),t.removed=kt(e,t.from,t.to),n||(n=Xi(e,t)),e.cm?Ms(e.cm,t,r):Yi(e,t,r),ei(e,n,ee),e.cantEdit&&ti(e,p(e.firstLine(),0))&&(e.cantEdit=!1)}}function Ms(e,t,n){var r=e.doc,i=e.display,l=t.from,o=t.to,a=!1,s=l.line;e.options.lineWrapping||(s=X(et(D(r,l.line))),r.iter(s,o.line+1,function(g){if(g==i.maxLine)return a=!0,!0})),r.sel.contains(t.from,t.to)>-1&&An(e),Yi(r,t,n,Yl(e)),e.options.lineWrapping||(r.iter(s,l.line+t.text.length,function(g){var b=zn(g);b>i.maxLineLength&&(i.maxLine=g,i.maxLineLength=b,i.maxLineChanged=!0,a=!1)}),a&&(e.curOp.updateMaxLine=!0)),ga(r,l.line),an(e,400);var u=t.text.length-(o.line-l.line)-1;t.full?Oe(e):l.line==o.line&&t.text.length==1&&!ho(e.doc,t)?Bt(e,l.line,"text"):Oe(e,l.line,o.line+1,u);var h=Le(e,"changes"),c=Le(e,"change");if(c||h){var y={from:l,to:o,text:t.text,removed:t.removed,origin:t.origin};c&&de(e,"change",e,y),h&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(y)}e.display.selForContextMenu=null}function Or(e,t,n,r,i){var l;r||(r=n),m(r,n)<0&&(l=[r,n],n=l[0],r=l[1]),typeof t=="string"&&(t=e.splitLines(t)),Nr(e,{from:n,to:r,text:t,origin:i})}function No(e,t,n,r){n1||!(this.children[0]instanceof cn))){var a=[];this.collapse(a),this.children=[new cn(a)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var o=i.lines.length%25+25,a=o;a10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;re.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=h,e.display.maxLineChanged=!0)}r!=null&&e&&this.collapsed&&Oe(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Co(e.doc)),e&&de(e,"markerCleared",e,this,r,i),t&&or(e),this.parent&&this.parent.clear()}},_t.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var n,r,i=0;i0||o==0&&l.clearWhenEmpty!==!1)return l;if(l.replacedWith&&(l.collapsed=!0,l.widgetNode=lt("span",[l.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||l.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(l.widgetNode.insertLeft=!0)),l.collapsed){if(Cl(e,t.line,t,n,l)||t.line!=n.line&&Cl(e,n.line,t,n,l))throw new Error("Inserting collapsed marker partially overlapping an existing one");ma()}l.addToHistory&&go(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var a=t.line,s=e.cm,u;if(e.iter(a,n.line+1,function(c){s&&l.collapsed&&!s.options.lineWrapping&&et(c)==s.display.maxLine&&(u=!0),l.collapsed&&a!=t.line&&Je(c,0),xa(c,new Fn(l,a==t.line?t.ch:null,a==n.line?n.ch:null),e.cm&&e.cm.curOp),++a}),l.collapsed&&e.iter(t.line,n.line+1,function(c){It(e,c)&&Je(c,0)}),l.clearOnEnter&&L(l,"beforeCursorEnter",function(){return l.clear()}),l.readOnly&&(ya(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),l.collapsed&&(l.id=++Eo,l.atomic=!0),s){if(u&&(s.curOp.updateMaxLine=!0),l.collapsed)Oe(s,t.line,n.line+1);else if(l.className||l.startStyle||l.endStyle||l.css||l.attributes||l.title)for(var h=t.line;h<=n.line;h++)Bt(s,h,"text");l.atomic&&Co(s.doc),de(s,"markerAdded",s,l)}return l}var vn=function(e,t){this.markers=e,this.primary=t;for(var n=0;n=0;s--)Nr(this,r[s]);a?wo(this,a):this.cm&&Tr(this.cm)}),undo:ve(function(){ri(this,"undo")}),redo:ve(function(){ri(this,"redo")}),undoSelection:ve(function(){ri(this,"undo",!0)}),redoSelection:ve(function(){ri(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=F(this,e),t=F(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(l){var o=l.markedSpans;if(o)for(var a=0;a=s.to||s.from==null&&i!=e.line||s.from!=null&&i==t.line&&s.from>=t.ch)&&(!n||n(s.marker))&&r.push(s.marker.parent||s.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=l,++n}),F(this,p(n,t))},indexFromPos:function(e){e=F(this,e);var t=e.ch;if(e.linet&&(t=e.from),e.to!=null&&e.to-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var h=e.dataTransfer.getData("Text");if(h){var c;if(t.state.draggingText&&!t.state.draggingText.copy&&(c=t.listSelections()),ei(t.doc,Rt(n,n)),c)for(var y=0;y=0;a--)Or(e.doc,"",r[a].from,r[a].to,"+delete");Tr(e)})}function ji(e,t,n){var r=st(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Vi(e,t,n){var r=ji(e,t.ch,n);return r==null?null:new p(t.line,r,n<0?"after":"before")}function $i(e,t,n,r,i){if(e){t.doc.direction=="rtl"&&(i=-i);var l=Ye(n,t.doc.direction);if(l){var o=i<0?U(l):l[0],a=i<0==(o.level==1),s=a?"after":"before",u;if(o.level>0||t.doc.direction=="rtl"){var h=Sr(t,n);u=i<0?n.text.length-1:0;var c=vt(t,h,u).top;u=ne(function(y){return vt(t,h,y).top==c},i<0==(o.level==1)?o.from:o.to-1,u),s=="before"&&(u=ji(n,u,1))}else u=i<0?o.to:o.from;return new p(r,u,s)}}return new p(r,i<0?n.text.length:0,i<0?"before":"after")}function Gs(e,t,n,r){var i=Ye(t,e.doc.direction);if(!i)return Vi(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var l=qe(i,n.ch,n.sticky),o=i[l];if(e.doc.direction=="ltr"&&o.level%2==0&&(r>0?o.to>n.ch:o.from=o.from&&y>=h.begin)){var g=c?"before":"after";return new p(n.line,y,g)}}var b=function(C,T,k){for(var M=function(Q,ge){return ge?new p(n.line,a(Q,1),"before"):new p(n.line,Q,"after")};C>=0&&C0==(W.level!=1),z=A?k.begin:a(k.end,-1);if(W.from<=z&&z0?h.end:a(h.begin,-1);return S!=null&&!(r>0&&S==t.text.length)&&(x=b(r>0?0:i.length-1,r,u(S)),x)?x:null}var mn={selectAll:To,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),ee)},killLine:function(e){return Er(e,function(t){if(t.empty()){var n=D(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)i=new p(i.line,i.ch+1),e.replaceRange(l.charAt(i.ch-1)+l.charAt(i.ch-2),p(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var o=D(e.doc,i.line-1).text;o&&(i=new p(i.line,1),e.replaceRange(l.charAt(0)+e.doc.lineSeparator()+o.charAt(o.length-1),p(i.line-1,o.length-1),i,"+transpose"))}}n.push(new q(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return Be(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;re&&m(t,this.pos)==0&&n==this.button};var xn,wn;function Zs(e,t){var n=+new Date;return wn&&wn.compare(n,e,t)?(xn=wn=null,"triple"):xn&&xn.compare(n,e,t)?(wn=new tl(n,e,t),xn=null,"double"):(xn=new tl(n,e,t),wn=null,"single")}function Qo(e){var t=this,n=t.display;if(!(ie(t,e)||n.activeTouch&&n.input.supportsTouch())){if(n.input.ensurePolled(),n.shift=e.shiftKey,Mt(n,e)){I||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));return}if(!rl(t,e)){var r=tr(t,e),i=qr(e),l=r?Zs(r,i):"single";xt(t).focus(),i==1&&t.state.selectingText&&t.state.selectingText(e),!(r&&Js(t,i,r,l,e))&&(i==1?r?js(t,r,l,e):Ne(e)==n.scroller&&Se(e):i==2?(r&&$n(t.doc,r),setTimeout(function(){return n.input.focus()},20)):i==3&&(dr?t.display.input.onContextMenu(e):Pi(t)))}}}function Js(e,t,n,r,i){var l="Click";return r=="double"?l="Double"+l:r=="triple"&&(l="Triple"+l),l=(t==1?"Left":t==2?"Middle":"Right")+l,bn(e,Go(l,i),i,function(o){if(typeof o=="string"&&(o=mn[o]),!o)return!1;var a=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),a=o(e,n)!=J}finally{e.state.suppressEdits=!1}return a})}function Qs(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(i.unit==null){var l=Zt?n.shiftKey&&n.metaKey:n.altKey;i.unit=l?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(i.extend==null||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),i.addNew==null&&(i.addNew=be?n.metaKey:n.ctrlKey),i.moveOnDrag==null&&(i.moveOnDrag=!(be?n.altKey:n.ctrlKey)),i}function js(e,t,n,r){P?setTimeout(Ae(Ql,e),0):e.curOp.focus=xe(ce(e));var i=Qs(e,n,r),l=e.doc.sel,o;e.options.dragDrop&&pi&&!e.isReadOnly()&&n=="single"&&(o=l.contains(t))>-1&&(m((o=l.ranges[o]).from(),t)<0||t.xRel>0)&&(m(o.to(),t)>0||t.xRel<0)?Vs(e,r,t,i):$s(e,r,t,i)}function Vs(e,t,n,r){var i=e.display,l=!1,o=pe(e,function(u){I&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Pi(e)),we(i.wrapper.ownerDocument,"mouseup",o),we(i.wrapper.ownerDocument,"mousemove",a),we(i.scroller,"dragstart",s),we(i.scroller,"drop",o),l||(Se(u),r.addNew||$n(e.doc,n,null,null,r.extend),I&&!hr||P&&Z==9?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()},20):i.input.focus())}),a=function(u){l=l||Math.abs(t.clientX-u.clientX)+Math.abs(t.clientY-u.clientY)>=10},s=function(){return l=!0};I&&(i.scroller.draggable=!0),e.state.draggingText=o,o.copy=!r.moveOnDrag,L(i.wrapper.ownerDocument,"mouseup",o),L(i.wrapper.ownerDocument,"mousemove",a),L(i.scroller,"dragstart",s),L(i.scroller,"drop",o),e.state.delayingBlurEvent=!0,setTimeout(function(){return i.input.focus()},20),i.scroller.dragDrop&&i.scroller.dragDrop()}function jo(e,t,n){if(n=="char")return new q(t,t);if(n=="word")return e.findWordAt(t);if(n=="line")return new q(p(t.line,0),F(e.doc,p(t.line+1,0)));var r=n(e,t);return new q(r.from,r.to)}function $s(e,t,n,r){P&&Pi(e);var i=e.display,l=e.doc;Se(t);var o,a,s=l.sel,u=s.ranges;if(r.addNew&&!r.extend?(a=l.sel.contains(n),a>-1?o=u[a]:o=new q(n,n)):(o=l.sel.primary(),a=l.sel.primIndex),r.unit=="rectangle")r.addNew||(o=new q(n,n)),n=tr(e,t,!0,!0),a=-1;else{var h=jo(e,n,r.unit);r.extend?o=Ji(o,h.anchor,h.head,r.extend):o=h}r.addNew?a==-1?(a=u.length,Ce(l,rt(e,u.concat([o]),a),{scroll:!1,origin:"*mouse"})):u.length>1&&u[a].empty()&&r.unit=="char"&&!r.extend?(Ce(l,rt(e,u.slice(0,a).concat(u.slice(a+1)),0),{scroll:!1,origin:"*mouse"}),s=l.sel):Qi(l,a,o,Qt):(a=0,Ce(l,new _e([o],0),Qt),s=l.sel);var c=n;function y(k){if(m(c,k)!=0)if(c=k,r.unit=="rectangle"){for(var M=[],W=e.options.tabSize,A=O(D(l,n.line).text,n.ch,W),z=O(D(l,k.line).text,k.ch,W),Q=Math.min(A,z),ge=Math.max(A,z),te=Math.min(n.line,k.line),ze=Math.min(e.lastLine(),Math.max(n.line,k.line));te<=ze;te++){var He=D(l,te).text,se=ot(He,Q,W);Q==ge?M.push(new q(p(te,se),p(te,se))):He.length>se&&M.push(new q(p(te,se),p(te,ot(He,ge,W))))}M.length||M.push(new q(n,n)),Ce(l,rt(e,s.ranges.slice(0,a).concat(M),a),{origin:"*mouse",scroll:!1}),e.scrollIntoView(k)}else{var Ee=o,me=jo(e,k,r.unit),he=Ee.anchor,ue;m(me.anchor,he)>0?(ue=me.head,he=fe(Ee.from(),me.anchor)):(ue=me.anchor,he=K(Ee.to(),me.head));var oe=s.ranges.slice(0);oe[a]=eu(e,new q(F(l,he),ue)),Ce(l,rt(e,oe,a),Qt)}}var g=i.wrapper.getBoundingClientRect(),b=0;function x(k){var M=++b,W=tr(e,k,!0,r.unit=="rectangle");if(W)if(m(W,c)!=0){e.curOp.focus=xe(ce(e)),y(W);var A=Yn(i,l);(W.line>=A.to||W.lineg.bottom?20:0;z&&setTimeout(pe(e,function(){b==M&&(i.scroller.scrollTop+=z,x(k))}),50)}}function S(k){e.state.selectingText=!1,b=1/0,k&&(Se(k),i.input.focus()),we(i.wrapper.ownerDocument,"mousemove",C),we(i.wrapper.ownerDocument,"mouseup",T),l.history.lastSelOrigin=null}var C=pe(e,function(k){k.buttons===0||!qr(k)?S(k):x(k)}),T=pe(e,S);e.state.selectingText=T,L(i.wrapper.ownerDocument,"mousemove",C),L(i.wrapper.ownerDocument,"mouseup",T)}function eu(e,t){var n=t.anchor,r=t.head,i=D(e.doc,n.line);if(m(n,r)==0&&n.sticky==r.sticky)return t;var l=Ye(i);if(!l)return t;var o=qe(l,n.ch,n.sticky),a=l[o];if(a.from!=n.ch&&a.to!=n.ch)return t;var s=o+(a.from==n.ch==(a.level!=1)?0:1);if(s==0||s==l.length)return t;var u;if(r.line!=n.line)u=(r.line-n.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var h=qe(l,r.ch,r.sticky),c=h-o||(r.ch-n.ch)*(a.level==1?-1:1);h==s-1||h==s?u=c<0:u=c>0}var y=l[s+(u?-1:0)],g=u==(y.level==1),b=g?y.from:y.to,x=g?"after":"before";return n.ch==b&&n.sticky==x?t:new q(new p(n.line,b,x),r)}function Vo(e,t,n,r){var i,l;if(t.touches)i=t.touches[0].clientX,l=t.touches[0].clientY;else try{i=t.clientX,l=t.clientY}catch{return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Se(t);var o=e.display,a=o.lineDiv.getBoundingClientRect();if(l>a.bottom||!Le(e,n))return Xr(t);l-=a.top-o.viewOffset;for(var s=0;s=i){var h=ct(e.doc,l),c=e.display.gutterSpecs[s];return V(e,n,e,h,c.className,t),Xr(t)}}}function rl(e,t){return Vo(e,t,"gutterClick",!0)}function $o(e,t){Mt(e.display,t)||tu(e,t)||ie(e,t,"contextmenu")||dr||e.display.input.onContextMenu(t)}function tu(e,t){return Le(e,"gutterContextMenu")?Vo(e,t,"gutterContextMenu",!1):!1}function ea(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),en(e)}var Fr={toString:function(){return"CodeMirror.Init"}},ta={},oi={};function ru(e){var t=e.optionHandlers;function n(r,i,l,o){e.defaults[r]=i,l&&(t[r]=o?function(a,s,u){u!=Fr&&l(a,s,u)}:l)}e.defineOption=n,e.Init=Fr,n("value","",function(r,i){return r.setValue(i)},!0),n("mode",null,function(r,i){r.doc.modeOption=i,qi(r)},!0),n("indentUnit",2,qi,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(r){un(r),en(r),Oe(r)},!0),n("lineSeparator",null,function(r,i){if(r.doc.lineSep=i,!!i){var l=[],o=r.doc.first;r.doc.iter(function(s){for(var u=0;;){var h=s.text.indexOf(i,u);if(h==-1)break;u=h+i.length,l.push(p(o,h))}o++});for(var a=l.length-1;a>=0;a--)Or(r.doc,i,l[a],p(l[a].line,l[a].ch+i.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(r,i,l){r.state.specialChars=new RegExp(i.source+(i.test(" ")?"":"| "),"g"),l!=Fr&&r.refresh()}),n("specialCharPlaceholder",Oa,function(r){return r.refresh()},!0),n("electricChars",!0),n("inputStyle",Yt?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(r,i){return r.getInputField().spellcheck=i},!0),n("autocorrect",!1,function(r,i){return r.getInputField().autocorrect=i},!0),n("autocapitalize",!1,function(r,i){return r.getInputField().autocapitalize=i},!0),n("rtlMoveVisually",!hi),n("wholeLineUpdateBefore",!0),n("theme","default",function(r){ea(r),sn(r)},!0),n("keyMap","default",function(r,i,l){var o=ii(i),a=l!=Fr&&ii(l);a&&a.detach&&a.detach(r,o),o.attach&&o.attach(r,a||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,iu,!0),n("gutters",[],function(r,i){r.display.gutterSpecs=Ki(i,r.options.lineNumbers),sn(r)},!0),n("fixedGutter",!0,function(r,i){r.display.gutters.style.left=i?Wi(r.display)+"px":"0",r.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(r){return Mr(r)},!0),n("scrollbarStyle","native",function(r){ro(r),Mr(r),r.display.scrollbars.setScrollTop(r.doc.scrollTop),r.display.scrollbars.setScrollLeft(r.doc.scrollLeft)},!0),n("lineNumbers",!1,function(r,i){r.display.gutterSpecs=Ki(r.options.gutters,i),sn(r)},!0),n("firstLineNumber",1,sn,!0),n("lineNumberFormatter",function(r){return r},sn,!0),n("showCursorWhenSelecting",!1,tn,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(r,i){i=="nocursor"&&(Lr(r),r.display.input.blur()),r.display.input.readOnlyChanged(i)}),n("screenReaderLabel",null,function(r,i){i=i===""?null:i,r.display.input.screenReaderLabelChanged(i)}),n("disableInput",!1,function(r,i){i||r.display.input.reset()},!0),n("dragDrop",!0,nu),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,tn,!0),n("singleCursorHeightPerLine",!0,tn,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,un,!0),n("addModeClass",!1,un,!0),n("pollInterval",100),n("undoDepth",200,function(r,i){return r.doc.history.undoDepth=i}),n("historyEventDelay",1250),n("viewportMargin",10,function(r){return r.refresh()},!0),n("maxHighlightLength",1e4,un,!0),n("moveInputWithCursor",!0,function(r,i){i||r.display.input.resetPosition()}),n("tabindex",null,function(r,i){return r.display.input.getField().tabIndex=i||""}),n("autofocus",null),n("direction","ltr",function(r,i){return r.doc.setDirection(i)},!0),n("phrases",null)}function nu(e,t,n){var r=n&&n!=Fr;if(!t!=!r){var i=e.display.dragFunctions,l=t?L:we;l(e.display.scroller,"dragstart",i.start),l(e.display.scroller,"dragenter",i.enter),l(e.display.scroller,"dragover",i.over),l(e.display.scroller,"dragleave",i.leave),l(e.display.scroller,"drop",i.drop)}}function iu(e){e.options.lineWrapping?(Ge(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(it(e.display.wrapper,"CodeMirror-wrap"),Si(e)),Hi(e),Oe(e),en(e),setTimeout(function(){return Mr(e)},100)}function $(e,t){var n=this;if(!(this instanceof $))return new $(e,t);this.options=t=t?H(t):{},H(ta,t,!1);var r=t.value;typeof r=="string"?r=new We(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new $.inputStyles[t.inputStyle](this),l=this.display=new ys(e,r,i,t);l.wrapper.CodeMirror=this,ea(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ro(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 B,keySeq:null,specialChars:null},t.autofocus&&!Yt&&l.input.focus(),P&&Z<11&&setTimeout(function(){return n.display.input.reset(!0)},20),lu(this),Ps(),lr(this),this.curOp.forceUpdate=!0,co(this,r),t.autofocus&&!Yt||this.hasFocus()?setTimeout(function(){n.hasFocus()&&!n.state.focused&&Ii(n)},20):Lr(this);for(var o in oi)oi.hasOwnProperty(o)&&oi[o](this,t[o],Fr);lo(this),t.finishInit&&t.finishInit(this);for(var a=0;a400}L(t.scroller,"touchstart",function(s){if(!ie(e,s)&&!l(s)&&!rl(e,s)){t.input.ensurePolled(),clearTimeout(n);var u=+new Date;t.activeTouch={start:u,moved:!1,prev:u-r.end<=300?r:null},s.touches.length==1&&(t.activeTouch.left=s.touches[0].pageX,t.activeTouch.top=s.touches[0].pageY)}}),L(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),L(t.scroller,"touchend",function(s){var u=t.activeTouch;if(u&&!Mt(t,s)&&u.left!=null&&!u.moved&&new Date-u.start<300){var h=e.coordsChar(t.activeTouch,"page"),c;!u.prev||o(u,u.prev)?c=new q(h,h):!u.prev.prev||o(u,u.prev.prev)?c=e.findWordAt(h):c=new q(p(h.line,0),F(e.doc,p(h.line+1,0))),e.setSelection(c.anchor,c.head),e.focus(),Se(s)}i()}),L(t.scroller,"touchcancel",i),L(t.scroller,"scroll",function(){t.scroller.clientHeight&&(nn(e,t.scroller.scrollTop),nr(e,t.scroller.scrollLeft,!0),V(e,"scroll",e))}),L(t.scroller,"mousewheel",function(s){return so(e,s)}),L(t.scroller,"DOMMouseScroll",function(s){return so(e,s)}),L(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(s){ie(e,s)||wt(s)},over:function(s){ie(e,s)||(Fs(e,s),wt(s))},start:function(s){return Es(e,s)},drop:pe(e,Hs),leave:function(s){ie(e,s)||Io(e)}};var a=t.input.getField();L(a,"keyup",function(s){return Zo.call(e,s)}),L(a,"keydown",pe(e,Yo)),L(a,"keypress",pe(e,Jo)),L(a,"focus",function(s){return Ii(e,s)}),L(a,"blur",function(s){return Lr(e,s)})}var nl=[];$.defineInitHook=function(e){return nl.push(e)};function Sn(e,t,n,r){var i=e.doc,l;n==null&&(n="add"),n=="smart"&&(i.mode.indent?l=Jr(e,t).state:n="prev");var o=e.options.tabSize,a=D(i,t),s=O(a.text,null,o);a.stateAfter&&(a.stateAfter=null);var u=a.text.match(/^\s*/)[0],h;if(!r&&!/\S/.test(a.text))h=0,n="not";else if(n=="smart"&&(h=i.mode.indent(l,a.text.slice(u.length),a.text),h==J||h>150)){if(!r)return;n="prev"}n=="prev"?t>i.first?h=O(D(i,t-1).text,null,o):h=0:n=="add"?h=s+e.options.indentUnit:n=="subtract"?h=s-e.options.indentUnit:typeof n=="number"&&(h=s+n),h=Math.max(0,h);var c="",y=0;if(e.options.indentWithTabs)for(var g=Math.floor(h/o);g;--g)y+=o,c+=" ";if(yo,s=Yr(t),u=null;if(a&&r.ranges.length>1)if(nt&&nt.text.join(` `)==t){if(r.ranges.length%nt.text.length==0){u=[];for(var h=0;h=0;y--){var g=r.ranges[y],b=g.from(),x=g.to();g.empty()&&(n&&n>0?b=p(b.line,b.ch-n):e.state.overwrite&&!a?x=p(x.line,Math.min(D(l,x.line).text.length,x.ch+U(s).length)):a&&nt&&nt.lineWise&&nt.text.join(` `)==s.join(` `)&&(b=x=p(b.line,0)));var S={from:b,to:x,text:u?u[y%u.length]:s,origin:i||(a?"paste":e.state.cutIncoming>o?"cut":"+input")};Nr(e.doc,S),de(e,"inputRead",e,S)}t&&!a&&na(e,t),Tr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=c),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function ra(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&t.hasFocus()&&Be(t,function(){return il(t,n,0,null,"paste")}),!0}function na(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 l=e.getModeAt(i.head),o=!1;if(l.electricChars){for(var a=0;a-1){o=Sn(e,i.head.line,"smart");break}}else l.electricInput&&l.electricInput.test(D(e.doc,i.head.line).text.slice(0,i.head.ch))&&(o=Sn(e,i.head.line,"smart"));o&&de(e,"electricInput",e,i.head.line)}}}function ia(e){for(var t=[],n=[],r=0;rl&&(Sn(this,a.head.line,r,!0),l=a.head.line,o==this.doc.sel.primIndex&&Tr(this));else{var s=a.from(),u=a.to(),h=Math.max(l,s.line);l=Math.min(this.lastLine(),u.line-(u.ch?0:1))+1;for(var c=h;c0&&Qi(this.doc,o,new q(s,y[o].to()),ee)}}}),getTokenAt:function(r,i){return pl(this,r,i)},getLineTokens:function(r,i){return pl(this,p(r),i,!0)},getTokenTypeAt:function(r){r=F(this.doc,r);var i=hl(this,D(this.doc,r.line)),l=0,o=(i.length-1)/2,a=r.ch,s;if(a==0)s=i[2];else for(;;){var u=l+o>>1;if((u?i[u*2-1]:0)>=a)o=u;else if(i[u*2+1]s&&(r=s,o=!0),a=D(this.doc,r)}else a=r;return Un(this,a,{top:0,left:0},i||"page",l||o).top+(o?this.doc.height-Tt(a):0)},defaultTextHeight:function(){return Cr(this.display)},defaultCharWidth:function(){return kr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(r,i,l,o,a){var s=this.display;r=tt(this,F(this.doc,r));var u=r.bottom,h=r.left;if(i.style.position="absolute",i.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(i),s.sizer.appendChild(i),o=="over")u=r.top;else if(o=="above"||o=="near"){var c=Math.max(s.wrapper.clientHeight,this.doc.height),y=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);(o=="above"||r.bottom+i.offsetHeight>c)&&r.top>i.offsetHeight?u=r.top-i.offsetHeight:r.bottom+i.offsetHeight<=c&&(u=r.bottom),h+i.offsetWidth>y&&(h=y-i.offsetWidth)}i.style.top=u+"px",i.style.left=i.style.right="",a=="right"?(h=s.sizer.clientWidth-i.offsetWidth,i.style.right="0px"):(a=="left"?h=0:a=="middle"&&(h=(s.sizer.clientWidth-i.offsetWidth)/2),i.style.left=h+"px"),l&&ns(this,{left:h,top:u,right:h+i.offsetWidth,bottom:u+i.offsetHeight})},triggerOnKeyDown:Me(Yo),triggerOnKeyPress:Me(Jo),triggerOnKeyUp:Zo,triggerOnMouseDown:Me(Qo),execCommand:function(r){if(mn.hasOwnProperty(r))return mn[r].call(null,this)},triggerElectric:Me(function(r){na(this,r)}),findPosH:function(r,i,l,o){var a=1;i<0&&(a=-1,i=-i);for(var s=F(this.doc,r),u=0;u0&&h(l.charAt(o-1));)--o;for(;a.5||this.options.lineWrapping)&&Hi(this),V(this,"refresh",this)}),swapDoc:Me(function(r){var i=this.doc;return i.cm=null,this.state.selectingText&&this.state.selectingText(),co(this,r),en(this),this.display.input.reset(),rn(this,r.scrollLeft,r.scrollTop),this.curOp.forceScroll=!0,de(this,"swapDoc",this,i),i}),phrase:function(r){var i=this.options.phrases;return i&&Object.prototype.hasOwnProperty.call(i,r)?i[r]:r},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}},Te(e),e.registerHelper=function(r,i,l){n.hasOwnProperty(r)||(n[r]=e[r]={_global:[]}),n[r][i]=l},e.registerGlobalHelper=function(r,i,l,o){e.registerHelper(r,i,o),n[r]._global.push({pred:l,val:o})}}function ll(e,t,n,r,i){var l=t,o=n,a=D(e,t.line),s=i&&e.direction=="rtl"?-n:n;function u(){var T=t.line+s;return T=e.first+e.size?!1:(t=new p(T,t.ch,t.sticky),a=D(e,T))}function h(T){var k;if(r=="codepoint"){var M=a.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(M))k=null;else{var W=n>0?M>=55296&&M<56320:M>=56320&&M<57343;k=new p(t.line,Math.max(0,Math.min(a.text.length,t.ch+n*(W?2:1))),-n)}}else i?k=Gs(e.cm,a,t,n):k=Vi(a,t,n);if(k==null)if(!T&&u())t=$i(i,e.cm,a,t.line,s);else return!1;else t=k;return!0}if(r=="char"||r=="codepoint")h();else if(r=="column")h(!0);else if(r=="word"||r=="group")for(var c=null,y=r=="group",g=e.cm&&e.cm.getHelper(t,"wordChars"),b=!0;!(n<0&&!h(!b));b=!1){var x=a.text.charAt(t.ch)||` `,S=vr(x,g)?"w":y&&x==` `?"n":!y||/\s/.test(x)?null:"p";if(y&&!b&&!S&&(S="s"),c&&c!=S){n<0&&(n=1,h(),t.sticky="after");break}if(S&&(c=S),n>0&&!h(!b))break}var C=ti(e,t,l,o,!0);return E(l,C)&&(C.hitSide=!0),C}function aa(e,t,n,r){var i=e.doc,l=t.left,o;if(r=="page"){var a=Math.min(e.display.wrapper.clientHeight,xt(e).innerHeight||i(e).documentElement.clientHeight),s=Math.max(a-.5*Cr(e.display),3);o=(n>0?t.bottom:t.top)+n*s}else r=="line"&&(o=n>0?t.bottom+3:t.top-3);for(var u;u=Ai(e,l,o),!!u.outside;){if(n<0?o<=0:o>=i.height){u.hitSide=!0;break}o+=n*5}return u}var Y=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new B,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Y.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;i.contentEditable=!0,la(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize);function l(a){for(var s=a.target;s;s=s.parentNode){if(s==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(s.className))break}return!1}L(i,"paste",function(a){!l(a)||ie(r,a)||ra(a,r)||Z<=11&&setTimeout(pe(r,function(){return t.updateFromDOM()}),20)}),L(i,"compositionstart",function(a){t.composing={data:a.data,done:!1}}),L(i,"compositionupdate",function(a){t.composing||(t.composing={data:a.data,done:!1})}),L(i,"compositionend",function(a){t.composing&&(a.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),L(i,"touchstart",function(){return n.forceCompositionEnd()}),L(i,"input",function(){t.composing||t.readFromDOMSoon()});function o(a){if(!(!l(a)||ie(r,a))){if(r.somethingSelected())ai({lineWise:!1,text:r.getSelections()}),a.type=="cut"&&r.replaceSelection("",null,"cut");else if(r.options.lineWiseCopyCut){var s=ia(r);ai({lineWise:!0,text:s.text}),a.type=="cut"&&r.operation(function(){r.setSelections(s.ranges,0,ee),r.replaceSelection("",null,"cut")})}else return;if(a.clipboardData){a.clipboardData.clearData();var u=nt.text.join(` `);if(a.clipboardData.setData("Text",u),a.clipboardData.getData("Text")==u){a.preventDefault();return}}var h=oa(),c=h.firstChild;r.display.lineSpace.insertBefore(h,r.display.lineSpace.firstChild),c.value=nt.text.join(` `);var y=xe(i.ownerDocument);Jt(c),setTimeout(function(){r.display.lineSpace.removeChild(h),y.focus(),y==i&&n.showPrimarySelection()},50)}}L(i,"copy",o),L(i,"cut",o)},Y.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Y.prototype.prepareSelection=function(){var e=Jl(this.cm,!1);return e.focus=xe(this.div.ownerDocument)==this.div,e},Y.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Y.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Y.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&&sa(t,r)||{node:a[0].measure.map[2],offset:0},u=i.linee.firstLine()&&(r=p(r.line-1,D(e.doc,r.line-1).length)),i.ch==D(e.doc,i.line).text.length&&i.linet.viewTo-1)return!1;var l,o,a;r.line==t.viewFrom||(l=rr(e,r.line))==0?(o=X(t.view[0].line),a=t.view[0].node):(o=X(t.view[l].line),a=t.view[l-1].node.nextSibling);var s=rr(e,i.line),u,h;if(s==t.view.length-1?(u=t.viewTo-1,h=t.lineDiv.lastChild):(u=X(t.view[s+1].line)-1,h=t.view[s+1].node.previousSibling),!a)return!1;for(var c=e.doc.splitLines(su(e,a,h,o,u)),y=kt(e.doc,p(o,0),p(u,D(e.doc,u).text.length));c.length>1&&y.length>1;)if(U(c)==U(y))c.pop(),y.pop(),u--;else if(c[0]==y[0])c.shift(),y.shift(),o++;else break;for(var g=0,b=0,x=c[0],S=y[0],C=Math.min(x.length,S.length);gr.ch&&T.charCodeAt(T.length-b-1)==k.charCodeAt(k.length-b-1);)g--,b++;c[c.length-1]=T.slice(0,T.length-b).replace(/^\u200b+/,""),c[0]=c[0].slice(g).replace(/\u200b+$/,"");var W=p(o,g),A=p(u,y.length?U(y).length-b:0);if(c.length>1||c[0]||m(W,A))return Or(e.doc,c,W,A,"+input"),!0},Y.prototype.ensurePolled=function(){this.forceCompositionEnd()},Y.prototype.reset=function(){this.forceCompositionEnd()},Y.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Y.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))},Y.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Be(this.cm,function(){return Oe(e.cm)})},Y.prototype.setUneditable=function(e){e.contentEditable="false"},Y.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||pe(this.cm,il)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},Y.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Y.prototype.onContextMenu=function(){},Y.prototype.resetPosition=function(){},Y.prototype.needsContentAttribute=!0;function sa(e,t){var n=Ti(e,t.line);if(!n||n.hidden)return null;var r=D(e.doc,t.line),i=Fl(n,r,t.line),l=Ye(r,e.doc.direction),o="left";if(l){var a=qe(l,t.ch);o=a%2?"right":"left"}var s=Bl(i.map,t.ch,o);return s.offset=s.collapse=="right"?s.end:s.start,s}function au(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Pr(e,t){return t&&(e.bad=!0),e}function su(e,t,n,r,i){var l="",o=!1,a=e.doc.lineSeparator(),s=!1;function u(g){return function(b){return b.id==g}}function h(){o&&(l+=a,s&&(l+=a),o=s=!1)}function c(g){g&&(h(),l+=g)}function y(g){if(g.nodeType==1){var b=g.getAttribute("cm-text");if(b){c(b);return}var x=g.getAttribute("cm-marker"),S;if(x){var C=e.findMarks(p(r,0),p(i+1,0),u(+x));C.length&&(S=C[0].find(0))&&c(kt(e.doc,S.from,S.to).join(a));return}if(g.getAttribute("contenteditable")=="false")return;var T=/^(pre|div|p|li|table|br)$/i.test(g.nodeName);if(!/^br$/i.test(g.nodeName)&&g.textContent.length==0)return;T&&h();for(var k=0;k=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),L(i,"paste",function(o){ie(r,o)||ra(o,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())});function l(o){if(!ie(r,o)){if(r.somethingSelected())ai({lineWise:!1,text:r.getSelections()});else if(r.options.lineWiseCopyCut){var a=ia(r);ai({lineWise:!0,text:a.text}),o.type=="cut"?r.setSelections(a.ranges,null,ee):(n.prevInput="",i.value=a.text.join(` `),Jt(i))}else return;o.type=="cut"&&(r.state.cutIncoming=+new Date)}}L(i,"cut",l),L(i,"copy",l),L(e.scroller,"paste",function(o){if(!(Mt(e,o)||ie(r,o))){if(!i.dispatchEvent){r.state.pasteIncoming=+new Date,n.focus();return}var a=new Event("paste");a.clipboardData=o.clipboardData,i.dispatchEvent(a)}}),L(e.lineSpace,"selectstart",function(o){Mt(e,o)||Se(o)}),L(i,"compositionstart",function(){var o=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:o,range:r.markText(o,r.getCursor("to"),{className:"CodeMirror-composing"})}}),L(i,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},ae.prototype.createField=function(e){this.wrapper=oa(),this.textarea=this.wrapper.firstChild},ae.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},ae.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Jl(e);if(e.options.moveInputWithCursor){var i=tt(e,n.sel.primary().head,"div"),l=t.wrapper.getBoundingClientRect(),o=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+o.top-l.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+o.left-l.left))}return r},ae.prototype.showSelection=function(e){var t=this.cm,n=t.display;N(n.cursorDiv,e.cursors),N(n.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},ae.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&&Jt(this.textarea),P&&Z>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",P&&Z>=9&&(this.hasSelection=null));this.resetting=!1}},ae.prototype.getField=function(){return this.textarea},ae.prototype.supportsTouch=function(){return!1},ae.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Yt||xe(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch{}},ae.prototype.blur=function(){this.textarea.blur()},ae.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ae.prototype.receivedFocus=function(){this.slowPoll()},ae.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},ae.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)},ae.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||Ht(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(P&&Z>=9&&this.hasSelection===i||be&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var l=i.charCodeAt(0);if(l==8203&&!r&&(r="​"),l==8666)return this.reset(),this.cm.execCommand("undo")}for(var o=0,a=Math.min(r.length,i.length);o1e3||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},ae.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ae.prototype.onKeyPress=function(){P&&Z>=9&&(this.hasSelection=null),this.fastPoll()},ae.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var l=tr(n,e),o=r.scroller.scrollTop;if(!l||Re)return;var a=n.options.resetSelectionOnContextMenu;a&&n.doc.sel.contains(l)==-1&&pe(n,Ce)(n.doc,Rt(l),ee);var s=i.style.cssText,u=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",i.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+`px; z-index: 1000; background: `+(P?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var c;I&&(c=i.ownerDocument.defaultView.scrollY),r.input.focus(),I&&i.ownerDocument.defaultView.scrollTo(null,c),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=g,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll);function y(){if(i.selectionStart!=null){var x=n.somethingSelected(),S="​"+(x?i.value:"");i.value="⇚",i.value=S,t.prevInput=x?"":"​",i.selectionStart=1,i.selectionEnd=S.length,r.selForContextMenu=n.doc.sel}}function g(){if(t.contextMenuPending==g&&(t.contextMenuPending=!1,t.wrapper.style.cssText=u,i.style.cssText=s,P&&Z<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=o),i.selectionStart!=null)){(!P||P&&Z<9)&&y();var x=0,S=function(){r.selForContextMenu==n.doc.sel&&i.selectionStart==0&&i.selectionEnd>0&&t.prevInput=="​"?pe(n,To)(n):x++<10?r.detectingSelectAll=setTimeout(S,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(S,200)}}if(P&&Z>=9&&y(),dr){wt(e);var b=function(){we(window,"mouseup",b),setTimeout(g,20)};L(window,"mouseup",b)}else setTimeout(g,50)},ae.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},ae.prototype.setUneditable=function(){},ae.prototype.needsContentAttribute=!1;function fu(e,t){if(t=t?H(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=xe(e.ownerDocument);t.autofocus=n==e||e.getAttribute("autofocus")!=null&&n==document.body}function r(){e.value=a.getValue()}var i;if(e.form&&(L(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var l=e.form;i=l.submit;try{var o=l.submit=function(){r(),l.submit=i,l.submit(),l.submit=o}}catch{}}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&&(we(e.form,"submit",r),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=i))}},e.style.display="none";var a=$(function(s){return e.parentNode.insertBefore(s,e.nextSibling)},t);return a}function hu(e){e.off=we,e.on=L,e.wheelEventPixels=ms,e.Doc=We,e.splitLines=Yr,e.countColumn=O,e.findColumn=ot,e.isWordChar=Ur,e.Pass=J,e.signal=V,e.Line=xr,e.changeEnd=Gt,e.scrollbarModel=to,e.Pos=p,e.cmpPos=m,e.modes=$e,e.mimeModes=Et,e.resolveMode=Ie,e.getMode=St,e.modeExtensions=Ft,e.extendMode=Hn,e.copyState=Ct,e.startState=Zr,e.innerMode=Pt,e.commands=mn,e.keyMap=At,e.keyName=Uo,e.isModifierKey=Ro,e.lookupKey=Hr,e.normalizeKeyMap=Rs,e.StringStream=le,e.SharedTextMarker=vn,e.TextMarker=_t,e.LineWidget=pn,e.e_preventDefault=Se,e.e_stopPropagation=Vt,e.e_stop=wt,e.addClass=Ge,e.contains=Ve,e.rmClass=it,e.keyNames=Kt}ru($),ou($);var cu="iter insert remove copy getEditor constructor".split(" ");for(var ui in We.prototype)We.prototype.hasOwnProperty(ui)&&G(cu,ui)<0&&($.prototype[ui]=(function(e){return function(){return e.apply(this.doc,arguments)}})(We.prototype[ui]));return Te(We),$.inputStyles={textarea:ae,contenteditable:Y},$.defineMode=function(e){!$.defaults.mode&&e!="null"&&($.defaults.mode=e),Wn.apply(this,arguments)},$.defineMIME=mr,$.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),$.defineMIME("text/plain","null"),$.defineExtension=function(e,t){$.prototype[e]=t},$.defineDocExtension=function(e,t){We.prototype[e]=t},$.fromTextArea=fu,hu($),$.version="5.65.9",$}))})(fi)),fi.exports}var vu=ca();const mu=du(vu);var fa={exports:{}},ha;function gu(){return ha||(ha=1,(function(sl,da){(function(_){_(ca())})(function(_){_.defineMode("javascript",function(ur,re){var yt=ur.indentUnit,zr=re.statementIndent,mt=re.jsonld,P=re.json||mt,Z=re.trackScope!==!1,I=re.typescript,fr=re.wordCharacters||/[\w$\xa1-\uffff]/,Qe=(function(){function f(fe){return{type:fe,style:"keyword"}}var d=f("keyword a"),p=f("keyword b"),m=f("keyword c"),E=f("keyword d"),R=f("operator"),K={type:"atom",style:"atom"};return{if:f("if"),while:d,with:d,else:p,do:p,try:p,finally:p,return:E,break:E,continue:E,new:f("new"),delete:m,void:m,throw:m,debugger:f("debugger"),var:f("var"),const:f("var"),let:f("var"),function:f("function"),catch:f("catch"),for:f("for"),switch:f("switch"),case:f("case"),default:f("default"),in:R,typeof:R,instanceof:R,true:K,false:K,null:K,undefined:K,NaN:K,Infinity:K,this:f("this"),class:f("class"),super:f("atom"),yield:m,export:f("export"),import:f("import"),extends:m,await:m}})(),Rr=/[+\-*&%=<>!?|~^@]/,Re=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function hr(f){for(var d=!1,p,m=!1;(p=f.next())!=null;){if(!d){if(p=="/"&&!m)return;p=="["?m=!0:m&&p=="]"&&(m=!1)}d=!d&&p=="\\"}}var qt,cr;function j(f,d,p){return qt=f,cr=p,d}function Ke(f,d){var p=f.next();if(p=='"'||p=="'")return d.tokenize=Yt(p),d.tokenize(f,d);if(p=="."&&f.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return j("number","number");if(p=="."&&f.match(".."))return j("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(p))return j(p);if(p=="="&&f.eat(">"))return j("=>","operator");if(p=="0"&&f.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return j("number","number");if(/\d/.test(p))return f.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),j("number","number");if(p=="/")return f.eat("*")?(d.tokenize=be,be(f,d)):f.eat("/")?(f.skipToEnd(),j("comment","comment")):ct(f,d,1)?(hr(f),f.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),j("regexp","string-2")):(f.eat("="),j("operator","operator",f.current()));if(p=="`")return d.tokenize=Zt,Zt(f,d);if(p=="#"&&f.peek()=="!")return f.skipToEnd(),j("meta","meta");if(p=="#"&&f.eatWhile(fr))return j("variable","property");if(p=="<"&&f.match("!--")||p=="-"&&f.match("->")&&!/\S/.test(f.string.slice(0,f.start)))return f.skipToEnd(),j("comment","comment");if(Rr.test(p))return(p!=">"||!d.lexical||d.lexical.type!=">")&&(f.eat("=")?(p=="!"||p=="=")&&f.eat("="):/[<>*+\-|&?]/.test(p)&&(f.eat(p),p==">"&&f.eat(p))),p=="?"&&f.eat(".")?j("."):j("operator","operator",f.current());if(fr.test(p)){f.eatWhile(fr);var m=f.current();if(d.lastType!="."){if(Qe.propertyIsEnumerable(m)){var E=Qe[m];return j(E.type,E.style,m)}if(m=="async"&&f.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return j("async","keyword",m)}return j("variable","variable",m)}}function Yt(f){return function(d,p){var m=!1,E;if(mt&&d.peek()=="@"&&d.match(Re))return p.tokenize=Ke,j("jsonld-keyword","meta");for(;(E=d.next())!=null&&!(E==f&&!m);)m=!m&&E=="\\";return m||(p.tokenize=Ke),j("string","string")}}function be(f,d){for(var p=!1,m;m=f.next();){if(m=="/"&&p){d.tokenize=Ke;break}p=m=="*"}return j("comment","comment")}function Zt(f,d){for(var p=!1,m;(m=f.next())!=null;){if(!p&&(m=="`"||m=="$"&&f.eat("{"))){d.tokenize=Ke;break}p=!p&&m=="\\"}return j("quasi","string-2",f.current())}var hi="([{}])";function je(f,d){d.fatArrowAt&&(d.fatArrowAt=null);var p=f.string.indexOf("=>",f.start);if(!(p<0)){if(I){var m=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(f.string.slice(f.start,p));m&&(p=m.index)}for(var E=0,R=!1,K=p-1;K>=0;--K){var fe=f.string.charAt(K),Ue=hi.indexOf(fe);if(Ue>=0&&Ue<3){if(!E){++K;break}if(--E==0){fe=="("&&(R=!0);break}}else if(Ue>=3&&Ue<6)++E;else if(fr.test(fe))R=!0;else if(/["'\/`]/.test(fe))for(;;--K){if(K==0)return;var F=f.string.charAt(K-1);if(F==fe&&f.string.charAt(K-2)!="\\"){K--;break}}else if(R&&!E){++K;break}}R&&!E&&(d.fatArrowAt=K)}}var Cn={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function dr(f,d,p,m,E,R){this.indented=f,this.column=d,this.type=p,this.prev=E,this.info=R,m!=null&&(this.align=m)}function Ot(f,d){if(!Z)return!1;for(var p=f.localVars;p;p=p.next)if(p.name==d)return!0;for(var m=f.context;m;m=m.prev)for(var p=m.vars;p;p=p.next)if(p.name==d)return!0}function it(f,d,p,m,E){var R=f.cc;for(w.state=f,w.stream=E,w.marked=null,w.cc=R,w.style=d,f.lexical.hasOwnProperty("align")||(f.lexical.align=!0);;){var K=R.length?R.pop():P?J:G;if(K(p,m)){for(;R.length&&R[R.length-1].lex;)R.pop()();return w.marked?w.marked:p=="variable"&&Ot(f,m)?"variable-2":d}}}var w={state:null,marked:null,cc:null};function N(){for(var f=arguments.length-1;f>=0;f--)w.cc.push(arguments[f])}function v(){return N.apply(null,arguments),!0}function lt(f,d){for(var p=d;p;p=p.next)if(p.name==f)return!0;return!1}function Pe(f){var d=w.state;if(w.marked="def",!!Z){if(d.context){if(d.lexical.info=="var"&&d.context&&d.context.block){var p=Ve(f,d.context);if(p!=null){d.context=p;return}}else if(!lt(f,d.localVars)){d.localVars=new bt(f,d.localVars);return}}re.globalVars&&!lt(f,d.globalVars)&&(d.globalVars=new bt(f,d.globalVars))}}function Ve(f,d){if(d)if(d.block){var p=Ve(f,d.prev);return p?p==d.prev?d:new Ge(p,d.vars,!0):null}else return lt(f,d.vars)?d:new Ge(d.prev,new bt(f,d.vars),!1);else return null}function xe(f){return f=="public"||f=="private"||f=="protected"||f=="abstract"||f=="readonly"}function Ge(f,d,p){this.prev=f,this.vars=d,this.block=p}function bt(f,d){this.name=f,this.next=d}var Jt=new bt("this",new bt("arguments",null));function ce(){w.state.context=new Ge(w.state.context,w.state.localVars,!1),w.state.localVars=Jt}function xt(){w.state.context=new Ge(w.state.context,w.state.localVars,!0),w.state.localVars=null}ce.lex=xt.lex=!0;function Ae(){w.state.localVars=w.state.context.vars,w.state.context=w.state.context.prev}Ae.lex=!0;function H(f,d){var p=function(){var m=w.state,E=m.indented;if(m.lexical.type=="stat")E=m.lexical.indented;else for(var R=m.lexical;R&&R.type==")"&&R.align;R=R.prev)E=R.indented;m.lexical=new dr(E,w.stream.column(),f,null,m.lexical,d)};return p.lex=!0,p}function O(){var f=w.state;f.lexical.prev&&(f.lexical.type==")"&&(f.indented=f.lexical.indented),f.lexical=f.lexical.prev)}O.lex=!0;function B(f){function d(p){return p==f?v():f==";"||p=="}"||p==")"||p=="]"?N():v(d)}return d}function G(f,d){return f=="var"?v(H("vardef",d),wt,B(";"),O):f=="keyword a"?v(H("form"),Qt,G,O):f=="keyword b"?v(H("form"),G,O):f=="keyword d"?w.stream.match(/^\s*$/,!1)?v():v(H("stat"),ot,B(";"),O):f=="debugger"?v(B(";")):f=="{"?v(H("}"),xt,ut,O,Ae):f==";"?v():f=="if"?(w.state.lexical.info=="else"&&w.state.cc[w.state.cc.length-1]==O&&w.state.cc.pop()(),v(H("form"),Qt,G,O,yr)):f=="function"?v(ft):f=="for"?v(H("form"),xt,Nn,G,Ae,O):f=="class"||I&&d=="interface"?(w.marked="keyword",v(H("form",f=="class"?f:d),Wn,O)):f=="variable"?I&&d=="declare"?(w.marked="keyword",v(G)):I&&(d=="module"||d=="enum"||d=="type")&&w.stream.match(/^\s*\w/,!1)?(w.marked="keyword",d=="enum"?v(br):d=="type"?v(On,B("operator"),L,B(";")):v(H("form"),Ne,B("{"),H("}"),ut,O,O)):I&&d=="namespace"?(w.marked="keyword",v(H("form"),J,G,O)):I&&d=="abstract"?(w.marked="keyword",v(G)):v(H("stat"),vr):f=="switch"?v(H("form"),Qt,B("{"),H("}","switch"),xt,ut,O,O,Ae):f=="case"?v(J,B(":")):f=="default"?v(B(":")):f=="catch"?v(H("form"),ce,kn,G,O,Ae):f=="export"?v(H("stat"),Ft,O):f=="import"?v(H("stat"),Ct,O):f=="async"?v(G):d=="@"?v(J,G):N(H("stat"),J,B(";"),O)}function kn(f){if(f=="(")return v($e,B(")"))}function J(f,d){return Wt(f,d,!1)}function ee(f,d){return Wt(f,d,!0)}function Qt(f){return f!="("?N():v(H(")"),ot,B(")"),O)}function Wt(f,d,p){if(w.state.fatArrowAt==w.stream.start){var m=p?Gr:Ln;if(f=="(")return v(ce,H(")"),ne($e,")"),O,B("=>"),m,Ae);if(f=="variable")return N(ce,Ne,B("=>"),m,Ae)}var E=p?at:Xe;return Cn.hasOwnProperty(f)?v(E):f=="function"?v(ft,E):f=="class"||I&&d=="interface"?(w.marked="keyword",v(H("form"),Et,O)):f=="keyword c"||f=="async"?v(p?ee:J):f=="("?v(H(")"),ot,B(")"),O,E):f=="operator"||f=="spread"?v(p?ee:J):f=="["?v(H("]"),kt,O,E):f=="{"?jt(gr,"}",null,E):f=="quasi"?N(U,E):f=="new"?v(Tn(p)):v()}function ot(f){return f.match(/[;\}\)\],]/)?N():N(J)}function Xe(f,d){return f==","?v(ot):at(f,d,!1)}function at(f,d,p){var m=p==!1?Xe:at,E=p==!1?J:ee;if(f=="=>")return v(ce,p?Gr:Ln,Ae);if(f=="operator")return/\+\+|--/.test(d)||I&&d=="!"?v(m):I&&d=="<"&&w.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?v(H(">"),ne(L,">"),O,m):d=="?"?v(J,B(":"),E):v(E);if(f=="quasi")return N(U,m);if(f!=";"){if(f=="(")return jt(ee,")","call",m);if(f==".")return v(Mn,m);if(f=="[")return v(H("]"),ot,B("]"),O,m);if(I&&d=="as")return w.marked="keyword",v(L,m);if(f=="regexp")return w.state.lastType=w.marked="operator",w.stream.backUp(w.stream.pos-w.stream.start-1),v(E)}}function U(f,d){return f!="quasi"?N():d.slice(d.length-2)!="${"?v(U):v(ot,pr)}function pr(f){if(f=="}")return w.marked="string-2",w.state.tokenize=Zt,v(U)}function Ln(f){return je(w.stream,w.state),N(f=="{"?G:J)}function Gr(f){return je(w.stream,w.state),N(f=="{"?G:ee)}function Tn(f){return function(d){return d=="."?v(f?Ur:ci):d=="variable"&&I?v(Se,f?at:Xe):N(f?ee:J)}}function ci(f,d){if(d=="target")return w.marked="keyword",v(Xe)}function Ur(f,d){if(d=="target")return w.marked="keyword",v(at)}function vr(f){return f==":"?v(O,G):N(Xe,B(";"),O)}function Mn(f){if(f=="variable")return w.marked="property",v()}function gr(f,d){if(f=="async")return w.marked="property",v(gr);if(f=="variable"||w.style=="keyword"){if(w.marked="property",d=="get"||d=="set")return v(_r);var p;return I&&w.state.fatArrowAt==w.stream.start&&(p=w.stream.match(/^\s*:\s*/,!1))&&(w.state.fatArrowAt=w.stream.pos+p[0].length),v(st)}else{if(f=="number"||f=="string")return w.marked=mt?"property":w.style+" property",v(st);if(f=="jsonld-keyword")return v(st);if(I&&xe(d))return w.marked="keyword",v(gr);if(f=="[")return v(J,qe,B("]"),st);if(f=="spread")return v(ee,st);if(d=="*")return w.marked="keyword",v(gr);if(f==":")return N(st)}}function _r(f){return f!="variable"?N(st):(w.marked="property",v(ft))}function st(f){if(f==":")return v(ee);if(f=="(")return N(ft)}function ne(f,d,p){function m(E,R){if(p?p.indexOf(E)>-1:E==","){var K=w.state.lexical;return K.info=="call"&&(K.pos=(K.pos||0)+1),v(function(fe,Ue){return fe==d||Ue==d?N():N(f)},m)}return E==d||R==d?v():p&&p.indexOf(";")>-1?N(f):v(B(d))}return function(E,R){return E==d||R==d?v():N(f,m)}}function jt(f,d,p){for(var m=3;m"),L);if(f=="quasi")return N(ie,Te)}function Kr(f){if(f=="=>")return v(L)}function we(f){return f.match(/[\}\)\]]/)?v():f==","||f==";"?v(we):N(V,we)}function V(f,d){if(f=="variable"||w.style=="keyword")return w.marked="property",v(V);if(d=="?"||f=="number"||f=="string")return v(V);if(f==":")return v(L);if(f=="[")return v(B("variable"),di,B("]"),V);if(f=="(")return N(ht,V);if(!f.match(/[;\}\)\],]/))return v()}function ie(f,d){return f!="quasi"?N():d.slice(d.length-2)!="${"?v(ie):v(L,An)}function An(f){if(f=="}")return w.marked="string-2",w.state.tokenize=Zt,v(ie)}function Le(f,d){return f=="variable"&&w.stream.match(/^\s*[?:]/,!1)||d=="?"?v(Le):f==":"?v(L):f=="spread"?v(Le):N(L)}function Te(f,d){if(d=="<")return v(H(">"),ne(L,">"),O,Te);if(d=="|"||f=="."||d=="&")return v(L);if(f=="[")return v(L,B("]"),Te);if(d=="extends"||d=="implements")return w.marked="keyword",v(L);if(d=="?")return v(L,B(":"),L)}function Se(f,d){if(d=="<")return v(H(">"),ne(L,">"),O,Te)}function Vt(){return N(L,Xr)}function Xr(f,d){if(d=="=")return v(L)}function wt(f,d){return d=="enum"?(w.marked="keyword",v(br)):N(Ne,qe,Ze,vi)}function Ne(f,d){if(I&&xe(d))return w.marked="keyword",v(Ne);if(f=="variable")return Pe(d),v();if(f=="spread")return v(Ne);if(f=="[")return jt(pi,"]");if(f=="{")return jt(qr,"}")}function qr(f,d){return f=="variable"&&!w.stream.match(/^\s*:/,!1)?(Pe(d),v(Ze)):(f=="variable"&&(w.marked="property"),f=="spread"?v(Ne):f=="}"?N():f=="["?v(J,B("]"),B(":"),qr):v(B(":"),Ne,Ze))}function pi(){return N(Ne,Ze)}function Ze(f,d){if(d=="=")return v(ee)}function vi(f){if(f==",")return v(wt)}function yr(f,d){if(f=="keyword b"&&d=="else")return v(H("form","else"),G,O)}function Nn(f,d){if(d=="await")return v(Nn);if(f=="(")return v(H(")"),Yr,O)}function Yr(f){return f=="var"?v(wt,Ht):f=="variable"?v(Ht):N(Ht)}function Ht(f,d){return f==")"?v():f==";"?v(Ht):d=="in"||d=="of"?(w.marked="keyword",v(J,Ht)):N(J,Ht)}function ft(f,d){if(d=="*")return w.marked="keyword",v(ft);if(f=="variable")return Pe(d),v(ft);if(f=="(")return v(ce,H(")"),ne($e,")"),O,Ye,G,Ae);if(I&&d=="<")return v(H(">"),ne(Vt,">"),O,ft)}function ht(f,d){if(d=="*")return w.marked="keyword",v(ht);if(f=="variable")return Pe(d),v(ht);if(f=="(")return v(ce,H(")"),ne($e,")"),O,Ye,Ae);if(I&&d=="<")return v(H(">"),ne(Vt,">"),O,ht)}function On(f,d){if(f=="keyword"||f=="variable")return w.marked="type",v(On);if(d=="<")return v(H(">"),ne(Vt,">"),O)}function $e(f,d){return d=="@"&&v(J,$e),f=="spread"?v($e):I&&xe(d)?(w.marked="keyword",v($e)):I&&f=="this"?v(qe,Ze):N(Ne,qe,Ze)}function Et(f,d){return f=="variable"?Wn(f,d):mr(f,d)}function Wn(f,d){if(f=="variable")return Pe(d),v(mr)}function mr(f,d){if(d=="<")return v(H(">"),ne(Vt,">"),O,mr);if(d=="extends"||d=="implements"||I&&f==",")return d=="implements"&&(w.marked="keyword"),v(I?L:J,mr);if(f=="{")return v(H("}"),Ie,O)}function Ie(f,d){if(f=="async"||f=="variable"&&(d=="static"||d=="get"||d=="set"||I&&xe(d))&&w.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return w.marked="keyword",v(Ie);if(f=="variable"||w.style=="keyword")return w.marked="property",v(St,Ie);if(f=="number"||f=="string")return v(St,Ie);if(f=="[")return v(J,qe,B("]"),St,Ie);if(d=="*")return w.marked="keyword",v(Ie);if(I&&f=="(")return N(ht,Ie);if(f==";"||f==",")return v(Ie);if(f=="}")return v();if(d=="@")return v(J,Ie)}function St(f,d){if(d=="!"||d=="?")return v(St);if(f==":")return v(L,Ze);if(d=="=")return v(ee);var p=w.state.lexical.prev,m=p&&p.info=="interface";return N(m?ht:ft)}function Ft(f,d){return d=="*"?(w.marked="keyword",v(D,B(";"))):d=="default"?(w.marked="keyword",v(J,B(";"))):f=="{"?v(ne(Hn,"}"),D,B(";")):N(G)}function Hn(f,d){if(d=="as")return w.marked="keyword",v(B("variable"));if(f=="variable")return N(ee,Hn)}function Ct(f){return f=="string"?v():f=="("?N(J):f=="."?N(Xe):N(Pt,Zr,D)}function Pt(f,d){return f=="{"?jt(Pt,"}"):(f=="variable"&&Pe(d),d=="*"&&(w.marked="keyword"),v(le))}function Zr(f){if(f==",")return v(Pt,Zr)}function le(f,d){if(d=="as")return w.marked="keyword",v(Pt)}function D(f,d){if(d=="from")return w.marked="keyword",v(J)}function kt(f){return f=="]"?v():N(ne(ee,"]"))}function br(){return N(H("form"),Ne,B("{"),H("}"),ne(Je,"}"),O,O)}function Je(){return N(Ne,Ze)}function X(f,d){return f.lastType=="operator"||f.lastType==","||Rr.test(d.charAt(0))||/[,.]/.test(d.charAt(0))}function ct(f,d,p){return d.tokenize==Ke&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(d.lastType)||d.lastType=="quasi"&&/\{\s*$/.test(f.string.slice(0,f.pos-(p||0)))}return{startState:function(f){var d={tokenize:Ke,lastType:"sof",cc:[],lexical:new dr((f||0)-yt,0,"block",!1),localVars:re.localVars,context:re.localVars&&new Ge(null,null,!1),indented:f||0};return re.globalVars&&typeof re.globalVars=="object"&&(d.globalVars=re.globalVars),d},token:function(f,d){if(f.sol()&&(d.lexical.hasOwnProperty("align")||(d.lexical.align=!1),d.indented=f.indentation(),je(f,d)),d.tokenize!=be&&f.eatSpace())return null;var p=d.tokenize(f,d);return qt=="comment"?p:(d.lastType=qt=="operator"&&(cr=="++"||cr=="--")?"incdec":qt,it(d,p,qt,cr,f))},indent:function(f,d){if(f.tokenize==be||f.tokenize==Zt)return _.Pass;if(f.tokenize!=Ke)return 0;var p=d&&d.charAt(0),m=f.lexical,E;if(!/^\s*else\b/.test(d))for(var R=f.cc.length-1;R>=0;--R){var K=f.cc[R];if(K==O)m=m.prev;else if(K!=yr&&K!=Ae)break}for(;(m.type=="stat"||m.type=="form")&&(p=="}"||(E=f.cc[f.cc.length-1])&&(E==Xe||E==at)&&!/^[,\.=+\-*:?[\(]/.test(d));)m=m.prev;zr&&m.type==")"&&m.prev.type=="stat"&&(m=m.prev);var fe=m.type,Ue=p==fe;return fe=="vardef"?m.indented+(f.lastType=="operator"||f.lastType==","?m.info.length+1:0):fe=="form"&&p=="{"?m.indented:fe=="form"?m.indented+yt:fe=="stat"?m.indented+(X(f,d)?zr||yt:0):m.info=="switch"&&!Ue&&re.doubleIndentSwitch!=!1?m.indented+(/^(?:case|default)\b/.test(d)?yt:2*yt):m.align?m.column+(Ue?0:1):m.indented+(Ue?0:yt)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:P?null:"/*",blockCommentEnd:P?null:"*/",blockCommentContinue:P?null:" * ",lineComment:P?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:P?"json":"javascript",jsonldMode:mt,jsonMode:P,expressionAllowed:ct,skipExpression:function(f){it(f,"atom","atom","true",new _.StringStream("",2,null))}}}),_.registerHelper("wordChars","javascript",/[\w$]/),_.defineMIME("text/javascript","javascript"),_.defineMIME("text/ecmascript","javascript"),_.defineMIME("application/javascript","javascript"),_.defineMIME("application/x-javascript","javascript"),_.defineMIME("application/ecmascript","javascript"),_.defineMIME("application/json",{name:"javascript",json:!0}),_.defineMIME("application/x-json",{name:"javascript",json:!0}),_.defineMIME("application/manifest+json",{name:"javascript",json:!0}),_.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),_.defineMIME("text/typescript",{name:"javascript",typescript:!0}),_.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})()),fa.exports}gu();export{mu as C,ca as r};