All Downloads are FREE. Search and download functionalities are using the official Maven repository.

web-interface.assets.a223748cd69094dd12b486353b22f479.js Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
(()=>{var L=(r,g)=>()=>(g||r((g={exports:{}}).exports,g),g.exports);var F=L((_,b)=>{ace.define("ace/mode/latex_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(r,g,m){"use strict";var h=r("../lib/oop"),f=r("./text_highlight_rules").TextHighlightRules,p=function(){this.$rules={start:[{token:"comment",regex:"%.*$"},{token:["keyword","lparen","variable.parameter","rparen","lparen","storage.type","rparen"],regex:"(\\\\(?:documentclass|usepackage|input))(?:(\\[)([^\\]]*)(\\]))?({)([^}]*)(})"},{token:["keyword","lparen","variable.parameter","rparen"],regex:"(\\\\(?:label|v?ref|cite(?:[^{]*)))(?:({)([^}]*)(}))?"},{token:["storage.type","lparen","variable.parameter","rparen"],regex:"(\\\\begin)({)(verbatim)(})",next:"verbatim"},{token:["storage.type","lparen","variable.parameter","rparen"],regex:"(\\\\begin)({)(lstlisting)(})",next:"lstlisting"},{token:["storage.type","lparen","variable.parameter","rparen"],regex:"(\\\\(?:begin|end))({)([\\w*]*)(})"},{token:"storage.type",regex:/\\verb\b\*?/,next:[{token:["keyword.operator","string","keyword.operator"],regex:"(.)(.*?)(\\1|$)|",next:"start"}]},{token:"storage.type",regex:"\\\\[a-zA-Z]+"},{token:"lparen",regex:"[[({]"},{token:"rparen",regex:"[\\])}]"},{token:"constant.character.escape",regex:"\\\\[^a-zA-Z]?"},{token:"string",regex:"\\${1,2}",next:"equation"}],equation:[{token:"comment",regex:"%.*$"},{token:"string",regex:"\\${1,2}",next:"start"},{token:"constant.character.escape",regex:"\\\\(?:[^a-zA-Z]|[a-zA-Z]+)"},{token:"error",regex:"^\\s*$",next:"start"},{defaultToken:"string"}],verbatim:[{token:["storage.type","lparen","variable.parameter","rparen"],regex:"(\\\\end)({)(verbatim)(})",next:"start"},{defaultToken:"text"}],lstlisting:[{token:["storage.type","lparen","variable.parameter","rparen"],regex:"(\\\\end)({)(lstlisting)(})",next:"start"},{defaultToken:"text"}]},this.normalizeRules()};h.inherits(p,f),g.LatexHighlightRules=p});ace.define("ace/mode/folding/latex",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range","ace/token_iterator"],function(r,g,m){"use strict";var h=r("../../lib/oop"),f=r("./fold_mode").FoldMode,p=r("../../range").Range,k=r("../../token_iterator").TokenIterator,x={"\\subparagraph":1,"\\paragraph":2,"\\subsubsubsection":3,"\\subsubsection":4,"\\subsection":5,"\\section":6,"\\chapter":7,"\\part":8,"\\begin":9,"\\end":10},d=g.FoldMode=function(){};h.inherits(d,f),(function(){this.foldingStartMarker=/^\s*\\(begin)|\s*\\(part|chapter|(?:sub)*(?:section|paragraph))\b|{\s*$/,this.foldingStopMarker=/^\s*\\(end)\b|^\s*}/,this.getFoldWidgetRange=function(t,n,o){var l=t.doc.getLine(o),e=this.foldingStartMarker.exec(l);if(e)return e[1]?this.latexBlock(t,o,e[0].length-1):e[2]?this.latexSection(t,o,e[0].length-1):this.openingBracketBlock(t,"{",o,e.index);var e=this.foldingStopMarker.exec(l);if(e)return e[1]?this.latexBlock(t,o,e[0].length-1):this.closingBracketBlock(t,"}",o,e.index+e[0].length)},this.latexBlock=function(t,u,o,l){var e={"\\begin":1,"\\end":-1},a=new k(t,u,o),i=a.getCurrentToken();if(!(!i||!(i.type=="storage.type"||i.type=="constant.character.escape"))){var c=i.value,s=e[c],y=function(){var M=a.stepForward(),C=M&&M.type=="lparen"?a.stepForward().value:"";return s===-1&&(a.stepBackward(),C&&a.stepBackward()),C},v=[y()],R=s===-1?a.getCurrentTokenColumn():t.getLine(u).length,T=u;for(a.step=s===-1?a.stepBackward:a.stepForward;i=a.step();)if(!(!i||!(i.type=="storage.type"||i.type=="constant.character.escape"))){var w=e[i.value];if(w){var B=y();if(w===s)v.unshift(B);else if(v.shift()!==B||!v.length)break}}if(!v.length){if(s==1&&(a.stepBackward(),a.stepBackward()),l)return a.getCurrentTokenRange();var u=a.getCurrentTokenRow();return s===-1?new p(u,t.getLine(u).length,T,R):new p(T,R,u,a.getCurrentTokenColumn())}}},this.latexSection=function(t,n,o){var l=new k(t,n,o),e=l.getCurrentToken();if(!(!e||e.type!="storage.type")){for(var a=x[e.value]||0,i=0,c=n;e=l.stepForward();)if(e.type==="storage.type"){var s=x[e.value]||0;if(s>=9){if(i||(c=l.getCurrentTokenRow()-1),i+=s==9?1:-1,i<0)break}else if(s>=a)break}for(i||(c=l.getCurrentTokenRow()-1);c>n&&!/\S/.test(t.getLine(c));)c--;return new p(n,t.getLine(n).length,c,t.getLine(c).length)}}}).call(d.prototype)});ace.define("ace/mode/latex",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/latex_highlight_rules","ace/mode/behaviour/cstyle","ace/mode/folding/latex"],function(r,g,m){"use strict";var h=r("../lib/oop"),f=r("./text").Mode,p=r("./latex_highlight_rules").LatexHighlightRules,k=r("./behaviour/cstyle").CstyleBehaviour,x=r("./folding/latex").FoldMode,d=function(){this.HighlightRules=p,this.foldingRules=new x,this.$behaviour=new k({braces:!0})};h.inherits(d,f),(function(){this.type="text",this.lineCommentStart="%",this.$id="ace/mode/latex",this.getMatching=function(t,n,o){n==null&&(n=t.selection.lead),typeof n=="object"&&(o=n.column,n=n.row);var l=t.getTokenAt(n,o);if(l&&(l.value=="\\begin"||l.value=="\\end"))return this.foldingRules.latexBlock(t,n,o,!0)}}).call(d.prototype),g.Mode=d});(function(){ace.require(["ace/mode/latex"],function(r){typeof b=="object"&&typeof _=="object"&&b&&(b.exports=r)})})()});F();})();

//# sourceMappingURL=a223748cd69094dd12b486353b22f479.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy