web-interface.assets.2b1b8f8b9e8f1e423a69afd121fd7da9.js.map Maven / Gradle / Ivy
{"version":3,"sources":["webpack://graylog-web-interface/2b1b8f8b9e8f1e423a69afd121fd7da9.js"],"sourcesContent":["ace.define(\"ace/mode/folding/coffee\",[\"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 () { };\noop.inherits(FoldMode, BaseFoldMode);\n(function () {\n this.commentBlock = function (session, row) {\n var re = /\\S/;\n var line = session.getLine(row);\n var startLevel = line.search(re);\n if (startLevel == -1 || line[startLevel] != \"#\")\n return;\n var startColumn = line.length;\n var maxRow = session.getLength();\n var startRow = row;\n var endRow = row;\n while (++row < maxRow) {\n line = session.getLine(row);\n var level = line.search(re);\n if (level == -1)\n continue;\n if (line[level] != \"#\")\n break;\n endRow = row;\n }\n if (endRow > startRow) {\n var endColumn = session.getLine(endRow).length;\n return new Range(startRow, startColumn, endRow, endColumn);\n }\n };\n this.getFoldWidgetRange = function (session, foldStyle, row) {\n var range = this.indentationBlock(session, row);\n if (range)\n return range;\n range = this.commentBlock(session, row);\n if (range)\n return range;\n };\n this.getFoldWidget = function (session, foldStyle, row) {\n var line = session.getLine(row);\n var indent = line.search(/\\S/);\n var next = session.getLine(row + 1);\n var prev = session.getLine(row - 1);\n var prevIndent = prev.search(/\\S/);\n var nextIndent = next.search(/\\S/);\n if (indent == -1) {\n session.foldWidgets[row - 1] = prevIndent != -1 && prevIndent < nextIndent ? \"start\" : \"\";\n return \"\";\n }\n if (prevIndent == -1) {\n if (indent == nextIndent && line[indent] == \"#\" && next[indent] == \"#\") {\n session.foldWidgets[row - 1] = \"\";\n session.foldWidgets[row + 1] = \"\";\n return \"start\";\n }\n }\n else if (prevIndent == indent && line[indent] == \"#\" && prev[indent] == \"#\") {\n if (session.getLine(row - 2).search(/\\S/) == -1) {\n session.foldWidgets[row - 1] = \"start\";\n session.foldWidgets[row + 1] = \"\";\n return \"\";\n }\n }\n if (prevIndent != -1 && prevIndent < indent)\n session.foldWidgets[row - 1] = \"start\";\n else\n session.foldWidgets[row - 1] = \"\";\n if (indent < nextIndent)\n return \"start\";\n else\n return \"\";\n };\n}).call(FoldMode.prototype);\n\n});\n\nace.define(\"ace/mode/space_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 SpaceHighlightRules = function () {\n this.$rules = {\n \"start\": [\n {\n token: \"empty_line\",\n regex: / */,\n next: \"key\"\n },\n {\n token: \"empty_line\",\n regex: /$/,\n next: \"key\"\n }\n ],\n \"key\": [\n {\n token: \"variable\",\n regex: /\\S+/\n },\n {\n token: \"empty_line\",\n regex: /$/,\n next: \"start\"\n }, {\n token: \"keyword.operator\",\n regex: / /,\n next: \"value\"\n }\n ],\n \"value\": [\n {\n token: \"keyword.operator\",\n regex: /$/,\n next: \"start\"\n },\n {\n token: \"string\",\n regex: /[^$]/\n }\n ]\n };\n};\noop.inherits(SpaceHighlightRules, TextHighlightRules);\nexports.SpaceHighlightRules = SpaceHighlightRules;\n\n});\n\nace.define(\"ace/mode/space\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/mode/text\",\"ace/mode/folding/coffee\",\"ace/mode/space_highlight_rules\"], function(require, exports, module){\"use strict\";\nvar oop = require(\"../lib/oop\");\nvar TextMode = require(\"./text\").Mode;\nvar FoldMode = require(\"./folding/coffee\").FoldMode;\nvar SpaceHighlightRules = require(\"./space_highlight_rules\").SpaceHighlightRules;\nvar Mode = function () {\n this.HighlightRules = SpaceHighlightRules;\n this.foldingRules = new FoldMode();\n this.$behaviour = this.$defaultBehaviour;\n};\noop.inherits(Mode, TextMode);\n(function () {\n this.$id = \"ace/mode/space\";\n}).call(Mode.prototype);\nexports.Mode = Mode;\n\n}); (function() {\n ace.require([\"ace/mode/space\"], function(m) {\n if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n module.exports = m;\n }\n });\n })();\n "],"mappings":"oEAAA,IAAAA,EAAAC,EAAA,CAAAC,EAAAC,IAAA,KAAI,OAAO,0BAA0B,CAAC,UAAU,UAAU,SAAS,cAAc,6BAA6B,WAAW,EAAG,SAASC,EAASF,EAASC,EAAO,CAAC,aAC/J,IAAIE,EAAMD,EAAQ,eAAe,EAC7BE,EAAeF,EAAQ,aAAa,EAAE,SACtCG,EAAQH,EAAQ,aAAa,EAAE,MAC/BI,EAAWN,EAAQ,SAAW,UAAY,CAAE,EAChDG,EAAI,SAASG,EAAUF,CAAY,EAClC,UAAY,CACT,KAAK,aAAe,SAAUG,EAASC,EAAK,CACxC,IAAIC,EAAK,KACLC,EAAOH,EAAQ,QAAQC,CAAG,EAC1BG,EAAaD,EAAK,OAAOD,CAAE,EAC/B,GAAI,EAAAE,GAAc,IAAMD,EAAKC,CAAU,GAAK,KAM5C,SAJIC,EAAcF,EAAK,OACnBG,EAASN,EAAQ,UAAU,EAC3BO,EAAWN,EACXO,EAASP,EACN,EAAEA,EAAMK,GAAQ,CACnBH,EAAOH,EAAQ,QAAQC,CAAG,EAC1B,IAAIQ,EAAQN,EAAK,OAAOD,CAAE,EAC1B,GAAIO,GAAS,GAEb,IAAIN,EAAKM,CAAK,GAAK,IACf,MACJD,EAASP,EACb,CACA,GAAIO,EAASD,EAAU,CACnB,IAAIG,EAAYV,EAAQ,QAAQQ,CAAM,EAAE,OACxC,OAAO,IAAIV,EAAMS,EAAUF,EAAaG,EAAQE,CAAS,CAC7D,EACJ,EACA,KAAK,mBAAqB,SAAUV,EAASW,EAAWV,EAAK,CACzD,IAAIW,EAAQ,KAAK,iBAAiBZ,EAASC,CAAG,EAI9C,GAHIW,IAEJA,EAAQ,KAAK,a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MAAS,CACL,CACI,MAAO,aACP,MAAO,KACP,KAAM,KACV,EACA,CACI,MAAO,aACP,MAAO,IACP,KAAM,KACV,CACJ,EACA,IAAO,CACH,CACI,MAAO,WACP,MAAO,KACX,EACA,CACI,MAAO,aACP,MAAO,IACP,KAAM,OACV,EAAG,CACC,MAAO,mBACP,MAAO,IACP,KAAM,OACV,CACJ,EACA,MAAS,CACL,CACI,MAAO,mBACP,MAAO,IACP,KAAM,OACV,EACA,CACI,MAAO,SACP,MAAO,MACX,CACJ,CACJ,CACJ,EACAvB,EAAI,SAASuB,EAAqBD,CAAkB,EACpDzB,EAAQ,oBAAsB0B,CAE9B,CAAC,EAED,IAAI,OAAO,iBAAiB,CAAC,UAAU,UAAU,SAAS,cAAc,gBAAgB,0BAA0B,gCAAgC,EAAG,SAASxB,EAASF,EAASC,EAAO,CAAC,aACxL,IAAIE,EAAMD,EAAQ,YAAY,EAC1ByB,EAAWzB,EAAQ,QAAQ,EAAE,KAC7BI,EAAWJ,EAAQ,kBAAkB,EAAE,SACvCwB,EAAsBxB,EAAQ,yBAAyB,EAAE,oBACzD0B,EAAO,UAAY,CACnB,KAAK,eAAiBF,EACtB,KAAK,aAAe,IAAIpB,EACxB,KAAK,WAAa,KAAK,iBAC3B,EACAH,EAAI,SAASyB,EAAMD,CAAQ,EAC1B,UAAY,CACT,KAAK,IAAM,gBACf,EAAG,KAAKC,EAAK,SAAS,EACtB5B,EAAQ,KAAO4B,CAEf,CAAC,GAAmB,UAAW,CACX,IAAI,QAAQ,CAAC,gBAAgB,EAAG,SAASC,EAAG,CACpC,OAAO5B,GAAU,UAAY,OAAOD,GAAW,UAAYC,IAC3DA,EAAO,QAAU4B,EAEzB,CAAC,CACL,GAAG","names":["require_b1b8f8b9e8f1e423a69afd121fd7da9","__commonJSMin","exports","module","require","oop","BaseFoldMode","Range","FoldMode","session","row","re","line","startLevel","startColumn","maxRow","startRow","endRow","level","endColumn","foldStyle","range","indent","next","prev","prevIndent","nextIndent","TextHighlightRules","SpaceHighlightRules","TextMode","Mode","m"],"sourceRoot":"","file":"2b1b8f8b9e8f1e423a69afd121fd7da9.js"}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy