o=!0;break}if(e&&t.match('"""')){o=!0;break}r=t.next(),!i&&"$"==r&&t.match("{")&&t.skipTo("}"),i=!i&&"\\"==r&&!e}return!o&&e||(n.tokenize=null),"string"}}functiony(e){returnfunction(t,n){for(varr,i=!1,o=!1;!t.eol();){if(!i&&t.match('"')&&("single"==e||t.match('""'))){o=!0;break}if(!i&&t.match("``")){x=y(e),o=!0;break}r=t.next(),i="single"==e&&!i&&"\\"==r}returno&&(n.tokenize=null),"string"}}e.defineMode("clike",function(a,l){functionc(e,t){varn=e.next();if(C[n]){varr=C[n](e,t);if(r!==!1)returnr}if('"'==n||"'"==n)returnt.tokenize=u(n),t.tokenize(e,t);if(A.test(n))returnp=n,null;if(E.test(n)){if(e.backUp(1),e.match(z))return"number";e.next()}if("/"==n){if(e.eat("*"))returnt.tokenize=f,f(e,t);if(e.eat("/"))returne.skipToEnd(),"comment"}if(O.test(n)){for(;!e.match(/^\/[\/*]/,!1)&&e.eat(O););return"operator"}if(e.eatWhile(/[\w\$_\xa1-\uffff]/),T)for(;e.match(T);)e.eatWhile(/[\w\$_\xa1-\uffff]/);vari=e.current();returns(y,i)?(s(x,i)&&(p="newstatement"),s(w,i)&&(h=!0),"keyword"):s(b,i)?"variable-3":s(k,i)?(s(x,i)&&(p="newstatement"),"builtin"):s(_,i)?"atom":"variable"}functionu(e){returnfunction(t,n){for(varr,i=!1,o=!1;null!=(r=t.next());){if(r==e&&!i){o=!0;break}i=!i&&"\\"==r}return(o||!i&&!S)&&(n.tokenize=null),"string"}}functionf(e,t){for(varn,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}functiond(e,t){l.typeFirstDefinitions&&e.eol()&&o(t.context)&&(t.typeAtEndOfLine=i(e,t,e.pos))}varp,h,m=a.indentUnit,g=l.statementIndentUnit||m,v=l.dontAlignCalls,y=l.keywords||{},b=l.types||{},k=l.builtin||{},x=l.blockKeywords||{},w=l.defKeywords||{},_=l.atoms||{},C=l.hooks||{},S=l.multiLineStrings,M=l.indentStatements!==!1,L=l.indentSwitch!==!1,T=l.namespaceSeparator,A=l.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,E=l.numberStart||/[\d\.]/,z=l.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,O=l.isOperatorChar||/[+\-*&%=<>!?|\/]/,I=l.endStatement||/^[;:,]$/;return{startState:function(e){return{tokenize:null,context:newt((e||0)-m,0,"top",null,(!1)),indented:0,startOfLine:!0,prevToken:null}},token:function(e,t){vara=t.context;if(e.sol()&&(null==a.align&&(a.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())returnd(e,t),null;p=h=null;vars=(t.tokenize||c)(e,t);if("comment"==s||"meta"==s)returns;if(null==a.align&&(a.align=!0),I.test(p))for(;"statement"==t.context.type;)r(t);elseif("{"==p)n(t,e.column(),"}");elseif("["==p)n(t,e.column(),"]");elseif("("==p)n(t,e.column(),")");elseif("}"==p){for(;"statement"==a.type;)a=r(t);for("}"==a.type&&(a=r(t));"statement"==a.type;)a=r(t)}elsep==a.type?r(t):M&&(("}"==a.type||"top"==a.type)&&";"!=p||"statement"==a.type&&"newstatement"==p)&&n(t,e.column(),"statement",e.current());if("variable"==s&&("def"==t.prevToken||l.typeFirstDefinitions&&i(e,t,e.start)&&o(t.context)&&e.match(/^\s*\(/,!1))&&(s="def"),C.token){varu=C.token(e,t,s);void0!==u&&(s=u)}return"def"==s&&l.styleDefs===!1&&(s="variable"),t.startOfLine=!1,t.prevToken=h?"def":s||p,d(e,t),s},indent:function(t,n){if(t.tokenize!=c&&null!=t.tokenize||t.typeAtEndOfLine)returne.Pass;varr=t.context,i=n&&n.charAt(0);if("statement"==r.type&&"}"==i&&(r=r.prev),l.dontIndentStatements)for(;"statement"==r.type&&l.dontIndentStatements.test(r.info);)r=r.prev;if(C.indent){varo=C.indent(t,r,n);if("number"==typeofo)returno}vara=i==r.type,s=r.prev&&"switch"==r.prev.info;if(l.allmanIndentation&&/[{(]/.test(i)){for(;"top"!=r.type&&"}"!=r.type;)r=r.prev;returnr.indented}return"statement"==r.type?r.indented+("{"==i?0:g):!r.align||v&&")"==r.type?")"!=r.type||a?r.indented+(a?0:m)+(a||!s||/^(?:case|default)\b/.test(n)?0:m):r.indented+g:r.column+(a?0:1)},electricInput:L?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}});varb="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile",k="int long char short double float unsigned signed void size_t ptrdiff_t";m(["text/x-csrc","text/x-c","text/x-chdr"],{n
e.match(/^0o[0-7]+/i)&&(o=!0),e.match(/^[1-9]\d*(e[\+\-]?\d+)?/)&&(e.eat(/J/i),o=!0),e.match(/^0(?![\dx])/i)&&(o=!0),o)returne.eat(/L/i),"number"}returne.match(M)?(t.tokenize=u(e.current()),t.tokenize(e,t)):e.match(b)||e.match(y)?"punctuation":e.match(v)||e.match(C)?"operator":e.match(g)?"punctuation":"."==t.lastToken&&e.match(S)?"property":e.match(L)||e.match(r)?"keyword":e.match(T)?"builtin":e.match(/^(self|cls)\b/)?"variable-2":e.match(S)?"def"==t.lastToken||"class"==t.lastToken?"def":"variable":(e.next(),m)}functionu(e){functiont(t,i){for(;!t.eol();)if(t.eatWhile(/[^'"\\]/),t.eat("\\")){if(t.next(),n&&t.eol())returnr}else{if(t.match(e))returni.tokenize=l,r;t.eat(/['"]/)}if(n){if(s.singleLineStringErrors)returnm;i.tokenize=l}returnr}for(;"rubf".indexOf(e.charAt(0).toLowerCase())>=0;)e=e.substr(1);varn=1==e.length,r="string";returnt.isString=!0,t}functionf(e){for(;"py"!=n(e).type;)e.scopes.pop();e.scopes.push({offset:n(e).offset+a.indentUnit,type:"py",align:null})}functiond(e,t,n){varr=e.match(/^([\s\[\{\(]|#.*)*$/,!1)?null:e.column()+1;t.scopes.push({offset:t.indent+k,type:n,align:r})}functionp(e,t){for(varr=e.indentation();t.scopes.length>1&&n(t).offset>r;){if("py"!=n(t).type)return!0;t.scopes.pop()}returnn(t).offset!=r}functionh(e,t){e.sol()&&(t.beginningOfLine=!0);varr=t.tokenize(e,t),i=e.current();if(t.beginningOfLine&&"@"==i)returne.match(S,!1)?"meta":_?"operator":m;/\S/.test(i)&&(t.beginningOfLine=!1),"variable"!=r&&"builtin"!=r||"meta"!=t.lastToken||(r="meta"),"pass"!=i&&"return"!=i||(t.dedent+=1),"lambda"==i&&(t.lambda=!0),":"!=i||t.lambda||"py"!=n(t).type||f(t);varo=1==i.length?"[({".indexOf(i):-1;if(o!=-1&&d(e,t,"])}".slice(o,o+1)),o="])}".indexOf(i),o!=-1){if(n(t).type!=i)returnm;t.indent=t.scopes.pop().offset-k}returnt.dedent>0&&e.eol()&&"py"==n(t).type&&(t.scopes.length>1&&t.scopes.pop(),t.dedent-=1),r}varm="error",g=s.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.]/,v=s.doubleOperators||/^([!<>]==|<>|<<|>>|\/\/|\*\*)/,y=s.doubleDelimiters||/^(\+=|\-=|\*=|%=|\/=|&=|\|=|\^=)/,b=s.tripleDelimiters||/^(\/\/=|>>=|<<=|\*\*=)/,k=s.hangingIndent||a.indentUnit,x=i,w=o;void0!=s.extra_keywords&&(x=x.concat(s.extra_keywords)),void0!=s.extra_builtins&&(w=w.concat(s.extra_builtins));var_=!(s.version&&Number(s.version)<3);if(_){varC=s.singleOperators||/^[\+\-\*\/%&|\^~<>!@]/,S=s.identifiers||/^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*/;x=x.concat(["nonlocal","False","True","None","async","await"]),w=w.concat(["ascii","bytes","exec","print"]);varM=newRegExp("^(([rbuf]|(br))?('{3}|\"{3}|['\"]))","i")}else{varC=s.singleOperators||/^[\+\-\*\/%&|\^~<>!]/,S=s.identifiers||/^[_A-Za-z][_A-Za-z0-9]*/;x=x.concat(["exec","print"]),w=w.concat(["apply","basestring","buffer","cmp","coerce","execfile","file","intern","long","raw_input","reduce","reload","unichr","unicode","xrange","False","True","None"]);varM=newRegExp("^(([rub]|(ur)|(br))?('{3}|\"{3}|['\"]))","i")}varL=t(x),T=t(w),A={startState:function(e){return{tokenize:l,scopes:[{offset:e||0,type:"py",align:null}],indent:e||0,lastToken:null,lambda:!1,dedent:0}},token:function(e,t){varn=t.errorToken;n&&(t.errorToken=!1);varr=h(e,t);returnr&&"comment"!=r&&(t.lastToken="keyword"==r||"punctuation"==r?e.current():r),"punctuation"==r&&(r=null),e.eol()&&t.lambda&&(t.lambda=!1),n?r+" "+m:r},indent:function(t,r){if(t.tokenize!=l)returnt.tokenize.isString?e.Pass:0;vari=n(t),o=i.type==r.charAt(0);returnnull!=i.align?i.align-(o?1:0):i.offset-(o?k:0)},electricInput:/^\s*[\}\]\)]$/,closeBrackets:{triples:"'\""},lineComment:"#",fold:"indent"};returnA}),e.defineMIME("text/x-python","python");vara=function(e){returne.split(" ")};e.defineMIME("text/x-cython",{name:"python",extra_keywords:a("by cdef cimport cpdef ctypedef enum exceptextern gil include nogil property publicreadonly struct union DEF IF ELIF ELSE")})}),function(e){"object"==typeofexports&&"object"==typeofmodule?e(require("../../lib/codemirror")):"function"==typeofdefine&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("shell",function(){
atoms:i("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:i("date time timestamp"),support:i("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":n,"`":t,"\\":r}}),e.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:i("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:i("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:i("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:i("commentSlashSlash decimallessFloat"),hooks:{}}),e.defineMIME("text/x-plsql",{name:"sql",client:i("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:i("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:i("absacosadd_monthsasciiasinatanatan2averagebfilebfilenamebigserialbitblobceilcharacterchartorowidchrclobconcatconvertcoscoshcountdecdecodederefdualdumpdup_val_on_indexemptyerrorexpfalsefloatfloorfoundglbgreatesthextorawinitcapinstrinstrbintintegerisopenlast_dayleastlengthlengthblnlowerlpadltrimlubmake_refmaxminmlslabelmodmonths_betweennaturalnaturalnncharnclobnew_timenext_day
n&&(n.clear(),this.latestRegister=t,e.openDialog&&(this.onRecordingDone=e.openDialog("(recording)["+t+"]",null,{bottom:!0})),this.isRecording=!0)}};varkt,xt,wt={buildKeyMap:function(){},getRegisterController:function(){returnkt.registerController},resetVimGlobalState_:C,getVimGlobalState_:function(){returnkt},maybeInitVimState_:_,suppressErrorLogging:!1,InsertModeKey:rt,map:function(e,t,n){Nt.map(e,t,n)},unmap:function(e,t){Nt.unmap(e,t)},setOption:k,getOption:x,defineOption:b,defineEx:function(e,t,n){if(t){if(0!==e.indexOf(t))thrownewError('(Vim.defineEx) "'+t+'" is not a prefix of "'+e+'", command not registered')}elset=e;It[e]=n,Nt.commandMap_[t]={name:e,shortName:t,type:"api"}},handleKey:function(e,t,n){varr=this.findKey(e,t,n);if("function"==typeofr)returnr()},findKey:function(n,r,i){functiono(){vare=kt.macroModeState;if(e.isRecording){if("q"==r)returne.exitMacroRecordMode(),M(n),!0;"mapping"!=i&&Ze(e,r)}}functiona(){if("<Esc>"==r)returnM(n),f.visualMode?le(n):f.insertMode&&Ke(n),!0}functions(t){for(vari;t;)i=/<\w+-.+?>|<\w+>|./.exec(t),r=i[0],t=t.substring(i.index+r.length),e.Vim.handleKey(n,r,"mapping")}functionl(){if(a())return!0;for(vare=f.inputState.keyBuffer=f.inputState.keyBuffer+r,i=1==r.length,o=_t.matchCommand(e,t,f.inputState,"insert");e.length>1&&"full"!=o.type;){vare=f.inputState.keyBuffer=e.slice(1),s=_t.matchCommand(e,t,f.inputState,"insert");"none"!=s.type&&(o=s)}if("none"==o.type)returnM(n),!1;if("partial"==o.type)returnxt&&window.clearTimeout(xt),xt=window.setTimeout(function(){f.insertMode&&f.inputState.keyBuffer&&M(n)},x("insertModeEscKeysTimeout")),!i;if(xt&&window.clearTimeout(xt),i){for(varl=n.listSelections(),c=0;c<l.length;c++){varu=l[c].head;n.replaceRange("",R(u,0,-(e.length-1)),u,"+input")}kt.macroModeState.lastInsertModeChanges.changes.pop()}returnM(n),o.command}functionc(){if(o()||a())return!0;vare=f.inputState.keyBuffer=f.inputState.keyBuffer+r;if(/^[1-9]\d*$/.test(e))return!0;vari=/^(\d*)(.*)$/.exec(e);if(!i)returnM(n),!1;vars=f.visualMode?"visual":"normal",l=_t.matchCommand(i[2]||i[1],t,f.inputState,s);if("none"==l.type)returnM(n),!1;if("partial"==l.type)return!0;f.inputState.keyBuffer="";vari=/^(\d*)(.*)$/.exec(e);returni[1]&&"0"!=i[1]&&f.inputState.pushRepeatDigit(i[1]),l.command}varu,f=_(n);returnu=f.insertMode?l():c(),u===!1?void0:u===!0?function(){return!0}:function(){returnn.operation(function(){n.curOp.isVimOp=!0;try{"keyToKey"==u.type?s(u.toKeys):_t.processCommand(n,f,u)}catch(t){thrown.state.vim=void0,_(n),e.Vim.suppressErrorLogging||console.log(t),t}return!0})}},handleEx:function(e,t){Nt.processCommand(e,t)},defineMotion:z,defineAction:N,defineOperator:I,mapCommand:Ge,_mapCommand:Ve,defineRegister:T,exitVisualMode:le,exitInsertMode:Ke};S.prototype.pushRepeatDigit=function(e){this.operator?this.motionRepeat=this.motionRepeat.concat(e):this.prefixRepeat=this.prefixRepeat.concat(e)},S.prototype.getRepeat=function(){vare=0;return(this.prefixRepeat.length>0||this.motionRepeat.length>0)&&(e=1,this.prefixRepeat.length>0&&(e*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(e*=parseInt(this.motionRepeat.join(""),10))),e},L.prototype={setText:function(e,t,n){this.keyBuffer=[e||""],this.linewise=!!t,this.blockwise=!!n},pushText:function(e,t){t&&(this.linewise||this.keyBuffer.push("\n"),this.linewise=!0),this.keyBuffer.push(e)},pushInsertModeChanges:function(e){this.insertModeChanges.push(bt(e))},pushSearchQuery:function(e){this.searchQueries.push(e)},clear:function(){this.keyBuffer=[],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!1},toString:function(){returnthis.keyBuffer.join("")}},A.prototype={pushText:function(e,t,n,r,i){r&&"\n"==n.charAt(0)&&(n=n.slice(1)+"\n"),r&&"\n"!==n.charAt(n.length-1)&&(n+="\n");varo=this.isValidRegister(e)?this.getRegister(e):null;if(!o){switch(t){case"yank":this.registers[0]=newL(n,r,i);break;case"delete":case"change":n.indexOf("\n")==-1?this.registers["-"]=newL(n,r):(this.shiftNumericRegisters_(),this.registers[1]=newL(n,r))}returnvoidthis.unnamedRegister.setText(n,r,i
scope:"local"},this.set(e,t)},setglobal:function(e,t){t.setCfg={scope:"global"},this.set(e,t)},registers:function(e,t){varn=t.args,r=kt.registerController.registers,i="----------Registers----------<br><br>";if(n){varo;n=n.join("");for(vara=0;a<n.length;a++)if(o=n.charAt(a),kt.registerController.isValidRegister(o)){vars=r[o]||newL;i+='"'+o+" "+s.toString()+"<br>"}}elsefor(varoinr){varl=r[o].toString();l.length&&(i+='"'+o+" "+l+"<br>")}Ne(e,i)},sort:function(t,n){functioni(){if(n.argString){vart=newe.StringStream(n.argString);if(t.eat("!")&&(a=!0),t.eol())return;if(!t.eatSpace())return"Invalid arguments";varr=t.match(/[a-z]+/);if(r){r=r[0],s=r.indexOf("i")!=-1,l=r.indexOf("u")!=-1;vari=r.indexOf("d")!=-1&&1,o=r.indexOf("x")!=-1&&1,u=r.indexOf("o")!=-1&&1;if(i+o+u>1)return"Invalid arguments";c=i&&"decimal"||o&&"hex"||u&&"octal"}if(t.match(/\/.*\//))return"patterns not supported"}}functiono(e,t){if(a){varn;n=e,e=t,t=n}s&&(e=e.toLowerCase(),t=t.toLowerCase());varr=c&&g.exec(e),i=c&&g.exec(t);returnr?(r=parseInt((r[1]+r[2]).toLowerCase(),v),i=parseInt((i[1]+i[2]).toLowerCase(),v),r-i):e<t?-1:1}vara,s,l,c,u=i();if(u)returnvoidNe(t,u+": "+n.argString);varf=n.line||t.firstLine(),d=n.lineEnd||n.line||t.lastLine();if(f!=d){varp=r(f,0),h=r(d,X(t,d)),m=t.getRange(p,h).split("\n"),g="decimal"==c?/(-?)([\d]+)/:"hex"==c?/(-?)(?:0x)?([0-9a-f]+)/i:"octal"==c?/([0-7]+)/:null,v="decimal"==c?10:"hex"==c?16:"octal"==c?8:null,y=[],b=[];if(c)for(vark=0;k<m.length;k++)g.exec(m[k])?y.push(m[k]):b.push(m[k]);elseb=m;if(y.sort(o),b.sort(o),m=a?y.concat(b):b.concat(y),l){varx,w=m;m=[];for(vark=0;k<w.length;k++)w[k]!=x&&m.push(w[k]),x=w[k]}t.replaceRange(m.join("\n"),p,h)}},global:function(e,t){varn=t.argString;if(!n)returnvoidNe(e,"Regular Expression missing from global");varr,i=void0!==t.line?t.line:e.firstLine(),o=t.lineEnd||t.line||e.lastLine(),a=Te(n),s=n;if(a.length&&(s=a[0],r=a.slice(1,a.length).join("/")),s)try{je(e,s,!0,!0)}catch(l){returnvoidNe(e,"Invalid regex: "+s)}for(varc=Me(e).getQuery(),u=[],f="",d=i;d<=o;d++){varp=c.test(e.getLine(d));p&&(u.push(d+1),f+=e.getLine(d)+"<br>")}if(!r)returnvoidNe(e,f);varh=0,m=function(){if(h<u.length){vart=u[h]+r;Nt.processCommand(e,t,{callback:m})}h++};m()},substitute:function(e,t){if(!e.getSearchCursor)thrownewError("Search feature not available. Requires searchcursor.js or any other getSearchCursor implementation.");varn,i,o,a,s=t.argString,l=s?Te(s):[],c="",u=!1,f=!1;if(l.length)n=l[0],c=l[1],void0!==c&&(c=x("pcre")?Oe(c):ze(c),kt.lastSubstituteReplacePart=c),i=l[2]?l[2].split(" "):[];elseif(s&&s.length)returnvoidNe(e,"Substitutions should be of the form :s/pattern/replace/");if(i&&(o=i[0],a=parseInt(i[1]),o&&(o.indexOf("c")!=-1&&(u=!0,o.replace("c","")),o.indexOf("g")!=-1&&(f=!0,o.replace("g","")),n=n+"/"+o)),n)try{je(e,n,!0,!0)}catch(d){returnvoidNe(e,"Invalid regex: "+n)}if(c=c||kt.lastSubstituteReplacePart,void0===c)returnvoidNe(e,"No previous substitute regular expression");varp=Me(e),h=p.getQuery(),m=void0!==t.line?t.line:e.getCursor().line,g=t.lineEnd||m;m==e.firstLine()&&g==e.lastLine()&&(g=1/0),a&&(m=g,g=m+a-1);varv=q(e,r(m,0)),y=e.getSearchCursor(h,v);Ue(e,u,f,m,g,y,h,c,t.callback)},redo:e.commands.redo,undo:e.commands.undo,write:function(t){e.commands.save?e.commands.save(t):t.save&&t.save()},nohlsearch:function(e){Fe(e)},yank:function(e){vart=H(e.getCursor()),n=t.line,r=e.getLine(n);kt.registerController.pushText("0","yank",r,!0,!0)},delmarks:function(t,n){if(!n.argString||!Z(n.argString))returnvoidNe(t,"Argument required");for(varr=t.state.vim,i=newe.StringStream(Z(n.argString));!i.eol();){i.eatSpace();varo=i.pos;if(!i.match(/[a-zA-Z]/,!1))returnvoidNe(t,"Invalid argument: "+n.argString.substring(o));vara=i.next();if(i.match("-",!0)){if(!i.match(/[a-zA-Z]/,!1))returnvoidNe(t,"Invalid argument: "+n.argString.substring(o));vars=a,l=i.next();if(!(p(s)&&p(l)||g(s)&&g(l)))returnvoidNe(t,"Invalid argument: "+s+"-");varc=s.charCodeAt(0),u=l.charCodeAt(0);if(c>=u)returnvoidNe(t,"Invalid argument: "+n.argString.subst