{"version":3,"file":"mode-diff-6c233c8c.js","sources":["../../node_modules/ace-builds/src-noconflict/mode-diff.js"],"sourcesContent":["ace.define(\"ace/mode/diff_highlight_rules\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/mode/text_highlight_rules\"], function(require, exports, module){\"use strict\";\nvar oop = require(\"../lib/oop\");\nvar TextHighlightRules = require(\"./text_highlight_rules\").TextHighlightRules;\nvar DiffHighlightRules = function () {\n this.$rules = {\n \"start\": [{\n regex: \"^(?:\\\\*{15}|={67}|-{3}|\\\\+{3})$\",\n token: \"punctuation.definition.separator.diff\",\n \"name\": \"keyword\"\n }, {\n regex: \"^(@@)(\\\\s*.+?\\\\s*)(@@)(.*)$\",\n token: [\n \"constant\",\n \"constant.numeric\",\n \"constant\",\n \"comment.doc.tag\"\n ]\n }, {\n regex: \"^(\\\\d+)([,\\\\d]+)(a|d|c)(\\\\d+)([,\\\\d]+)(.*)$\",\n token: [\n \"constant.numeric\",\n \"punctuation.definition.range.diff\",\n \"constant.function\",\n \"constant.numeric\",\n \"punctuation.definition.range.diff\",\n \"invalid\"\n ],\n \"name\": \"meta.\"\n }, {\n regex: \"^(\\\\-{3}|\\\\+{3}|\\\\*{3})( .+)$\",\n token: [\n \"constant.numeric\",\n \"meta.tag\"\n ]\n }, {\n regex: \"^([!+>])(.*?)(\\\\s*)$\",\n token: [\n \"support.constant\",\n \"text\",\n \"invalid\"\n ]\n }, {\n regex: \"^([<\\\\-])(.*?)(\\\\s*)$\",\n token: [\n \"support.function\",\n \"string\",\n \"invalid\"\n ]\n }, {\n regex: \"^(diff)(\\\\s+--\\\\w+)?(.+?)( .+)?$\",\n token: [\"variable\", \"variable\", \"keyword\", \"variable\"]\n }, {\n regex: \"^Index.+$\",\n token: \"variable\"\n }, {\n regex: \"^\\\\s+$\",\n token: \"text\"\n }, {\n regex: \"\\\\s*$\",\n token: \"invalid\"\n }, {\n defaultToken: \"invisible\",\n caseInsensitive: true\n }\n ]\n };\n};\noop.inherits(DiffHighlightRules, TextHighlightRules);\nexports.DiffHighlightRules = DiffHighlightRules;\n\n});\n\nace.define(\"ace/mode/folding/diff\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/mode/folding/fold_mode\",\"ace/range\"], function(require, exports, module){\"use strict\";\nvar oop = require(\"../../lib/oop\");\nvar BaseFoldMode = require(\"./fold_mode\").FoldMode;\nvar Range = require(\"../../range\").Range;\nvar FoldMode = exports.FoldMode = function (levels, flag) {\n this.regExpList = levels;\n this.flag = flag;\n this.foldingStartMarker = RegExp(\"^(\" + levels.join(\"|\") + \")\", this.flag);\n};\noop.inherits(FoldMode, BaseFoldMode);\n(function () {\n this.getFoldWidgetRange = function (session, foldStyle, row) {\n var line = session.getLine(row);\n var start = { row: row, column: line.length };\n var regList = this.regExpList;\n for (var i = 1; i <= regList.length; i++) {\n var re = RegExp(\"^(\" + regList.slice(0, i).join(\"|\") + \")\", this.flag);\n if (re.test(line))\n break;\n }\n for (var l = session.getLength(); ++row < l;) {\n line = session.getLine(row);\n if (re.test(line))\n break;\n }\n if (row == start.row + 1)\n return;\n return new Range(start.row, start.column, row - 1, line.length);\n };\n}).call(FoldMode.prototype);\n\n});\n\nace.define(\"ace/mode/diff\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/mode/text\",\"ace/mode/diff_highlight_rules\",\"ace/mode/folding/diff\"], function(require, exports, module){\"use strict\";\nvar oop = require(\"../lib/oop\");\nvar TextMode = require(\"./text\").Mode;\nvar HighlightRules = require(\"./diff_highlight_rules\").DiffHighlightRules;\nvar FoldMode = require(\"./folding/diff\").FoldMode;\nvar Mode = function () {\n this.HighlightRules = HighlightRules;\n this.foldingRules = new FoldMode([\"diff\", \"@@|\\\\*{5}\"], \"i\");\n};\noop.inherits(Mode, TextMode);\n(function () {\n this.$id = \"ace/mode/diff\";\n this.snippetFileId = \"ace/snippets/diff\";\n}).call(Mode.prototype);\nexports.Mode = Mode;\n\n}); (function() {\n ace.require([\"ace/mode/diff\"], function(m) {\n if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n module.exports = m;\n }\n });\n })();\n "],"names":["require","exports","module","oop","TextHighlightRules","DiffHighlightRules","BaseFoldMode","Range","FoldMode","levels","flag","session","foldStyle","row","line","start","regList","i","re","l","TextMode","HighlightRules","Mode","m"],"mappings":"gaAAA,IAAI,OAAO,gCAAgC,CAAC,UAAU,UAAU,SAAS,cAAc,+BAA+B,EAAG,SAASA,EAASC,EAASC,EAAO,CAC3J,IAAIC,EAAMH,EAAQ,YAAY,EAC1BI,EAAqBJ,EAAQ,wBAAwB,EAAE,mBACvDK,EAAqB,UAAY,CACjC,KAAK,OAAS,CACV,MAAS,CAAC,CACF,MAAO,kCACP,MAAO,wCACP,KAAQ,SACxB,EAAe,CACC,MAAO,8BACP,MAAO,CACH,WACA,mBACA,WACA,iBACH,CACjB,EAAe,CACC,MAAO,8CACP,MAAO,CACH,mBACA,oCACA,oBACA,mBACA,oCACA,SACH,EACD,KAAQ,OACxB,EAAe,CACC,MAAO,gCACP,MAAO,CACH,mBACA,UACH,CACjB,EAAe,CACC,MAAO,uBACP,MAAO,CACH,mBACA,OACA,SACH,CACjB,EAAe,CACC,MAAO,wBACP,MAAO,CACH,mBACA,SACA,SACH,CACjB,EAAe,CACC,MAAO,mCACP,MAAO,CAAC,WAAY,WAAY,UAAW,UAAU,CACrE,EAAe,CACC,MAAO,YACP,MAAO,UACvB,EAAe,CACC,MAAO,SACP,MAAO,MACvB,EAAe,CACC,MAAO,QACP,MAAO,SACvB,EAAe,CACC,aAAc,YACd,gBAAiB,EACpB,CACJ,CACT,CACA,EACAF,EAAI,SAASE,EAAoBD,CAAkB,EACnDH,EAAQ,mBAAqBI,CAE7B,CAAC,EAED,IAAI,OAAO,wBAAwB,CAAC,UAAU,UAAU,SAAS,cAAc,6BAA6B,WAAW,EAAG,SAASL,EAASC,EAASC,EAAO,CAC5J,IAAIC,EAAMH,EAAQ,eAAe,EAC7BM,EAAeN,EAAQ,aAAa,EAAE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