patch_file/ckeditor/plugins/codemirror/js/codemirror.mode.php.min.js

83 lines
67 KiB
JavaScript

(function(b){"object"==typeof exports&&"object"==typeof module?b(require("../../lib/codemirror"),require("../xml/xml"),require("../javascript/javascript"),require("../css/css")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],b):b(CodeMirror)})(function(b){b.defineMode("htmlmixed",function(h,o){function s(b,j){var c=j.htmlState.tagName,B=a.token(b,j.htmlState);if("script"==c&&/\btag\b/.test(B)&&">"==b.current()){(c=(c=b.string.slice(Math.max(0,
b.pos-100),b.pos).match(/\btype\s*=\s*("[^"]+"|'[^']+'|\S+)[^<]*$/i))?c[1]:"")&&/[\"\']/.test(c.charAt(0))&&(c=c.slice(1,c.length-1));for(var l=0;l<v.length;++l){var p=v[l];if("string"==typeof p.matches?c==p.matches:p.matches.test(c)){p.mode&&(j.token=q,j.localMode=p.mode,j.localState=p.mode.startState&&p.mode.startState(a.indent(j.htmlState,"")));break}}}else"style"==c&&(/\btag\b/.test(B)&&">"==b.current())&&(j.token=e,j.localMode=d,j.localState=d.startState(a.indent(j.htmlState,"")));return B}function k(a,
b,c){var d=a.current(),e=d.search(b);-1<e?a.backUp(d.length-e):d.match(/<\/?$/)&&(a.backUp(d.length),a.match(b,!1)||a.match(d));return c}function q(a,b){return a.match(/^<\/\s*script\s*>/i,!1)?(b.token=s,b.localState=b.localMode=null,s(a,b)):k(a,/<\/\s*script\s*>/,b.localMode.token(a,b.localState))}function e(a,b){return a.match(/^<\/\s*style\s*>/i,!1)?(b.token=s,b.localState=b.localMode=null,s(a,b)):k(a,/<\/\s*style\s*>/,d.token(a,b.localState))}var a=b.getMode(h,{name:"xml",htmlMode:!0,multilineTagIndentFactor:o.multilineTagIndentFactor,
multilineTagIndentPastTag:o.multilineTagIndentPastTag}),d=b.getMode(h,"css"),v=[],l=o&&o.scriptTypes;v.push({matches:/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^$/i,mode:b.getMode(h,"javascript")});if(l)for(var p=0;p<l.length;++p){var C=l[p];v.push({matches:C.matches,mode:C.mode&&b.getMode(h,C.mode)})}v.push({matches:/./,mode:b.getMode(h,"text/plain")});return{startState:function(){var b=a.startState();return{token:s,localMode:null,localState:null,htmlState:b}},copyState:function(d){if(d.localState)var e=
b.copyState(d.localMode,d.localState);return{token:d.token,localMode:d.localMode,localState:e,htmlState:b.copyState(a,d.htmlState)}},token:function(a,b){return b.token(a,b)},indent:function(d,e){return!d.localMode||/^\s*<\//.test(e)?a.indent(d.htmlState,e):d.localMode.indent?d.localMode.indent(d.localState,e):b.Pass},innerMode:function(b){return{state:b.localState||b.htmlState,mode:b.localMode||a}}}},"xml","javascript","css");b.defineMIME("text/html","htmlmixed")});
(function(b){"object"==typeof exports&&"object"==typeof module?b(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],b):b(CodeMirror)})(function(b){b.defineMode("xml",function(h,o){function s(n,F){function c(a){F.tokenize=a;return a(n,F)}var b=n.next();if("<"==b){if(n.eat("!"))return n.eat("[")?n.match("CDATA[")?c(e("atom","]]\>")):null:n.match("--")?c(e("comment","--\>")):n.match("DOCTYPE",!0,!0)?(n.eatWhile(/[\w\._\-]/),c(a(1))):null;if(n.eat("?"))return n.eatWhile(/[\w\._\-]/),
F.tokenize=e("meta","?>"),"meta";x=n.eat("/")?"closeTag":"openTag";F.tokenize=k;return"tag bracket"}if("&"==b)return(n.eat("#")?n.eat("x")?n.eatWhile(/[a-fA-F\d]/)&&n.eat(";"):n.eatWhile(/[\d]/)&&n.eat(";"):n.eatWhile(/[\w\.\-:]/)&&n.eat(";"))?"atom":"error";n.eatWhile(/[^&<]/);return null}function k(n,a){var c=n.next();if(">"==c||"/"==c&&n.eat(">"))return a.tokenize=s,x=">"==c?"endTag":"selfcloseTag","tag bracket";if("="==c)return x="equals",null;if("<"==c)return a.tokenize=s,a.state=p,a.tagName=
a.tagStart=null,(c=a.tokenize(n,a))?c+" tag error":"tag error";if(/[\'\"]/.test(c))return a.tokenize=q(c),a.stringStartCol=n.column(),a.tokenize(n,a);n.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/);return"word"}function q(a){var c=function(c,b){for(;!c.eol();)if(c.next()==a){b.tokenize=k;break}return"string"};c.isInAttribute=!0;return c}function e(a,c){return function(b,d){for(;!b.eol();){if(b.match(c)){d.tokenize=s;break}b.next()}return a}}function a(n){return function(c,b){for(var d;null!=(d=
c.next());){if("<"==d)return b.tokenize=a(n+1),b.tokenize(c,b);if(">"==d)if(1==n){b.tokenize=s;break}else return b.tokenize=a(n-1),b.tokenize(c,b)}return"meta"}}function d(a,c,b){this.prev=a.context;this.tagName=c;this.indent=a.indented;this.startOfLine=b;if(m.doNotIndent.hasOwnProperty(c)||a.context&&a.context.noIndent)this.noIndent=!0}function v(a){a.context&&(a.context=a.context.prev)}function l(a,c){for(var b;a.context;){b=a.context.tagName;if(!m.contextGrabbers.hasOwnProperty(b)||!m.contextGrabbers[b].hasOwnProperty(c))break;
v(a)}}function p(a,c,b){return"openTag"==a?(b.tagStart=c.column(),C):"closeTag"==a?G:p}function C(a,c,b){if("word"==a)return b.tagName=c.current(),y="tag",B;y="error";return C}function G(a,b,d){if("word"==a){a=b.current();d.context&&(d.context.tagName!=a&&m.implicitlyClosed.hasOwnProperty(d.context.tagName))&&v(d);if(d.context&&d.context.tagName==a)return y="tag",j;y="tag error";return c}y="error";return c}function j(a,c,b){if("endTag"!=a)return y="error",j;v(b);return p}function c(a,c,b){y="error";
return j(a,c,b)}function B(a,c,b){if("word"==a)return y="attribute",H;if("endTag"==a||"selfcloseTag"==a){var c=b.tagName,e=b.tagStart;b.tagName=b.tagStart=null;"selfcloseTag"==a||m.autoSelfClosers.hasOwnProperty(c)?l(b,c):(l(b,c),b.context=new d(b,c,e==b.indented));return p}y="error";return B}function H(a,c,b){if("equals"==a)return I;m.allowMissing||(y="error");return B(a,c,b)}function I(a,c,b){if("string"==a)return t;if("word"==a&&m.allowUnquoted)return y="string",B;y="error";return B(a,c,b)}function t(a,
c,b){return"string"==a?t:B(a,c,b)}var r=h.indentUnit,u=o.multilineTagIndentFactor||1,z=o.multilineTagIndentPastTag;null==z&&(z=!0);var m=o.htmlMode?{autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},
optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0}:{autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},
doNotIndent:{},allowUnquoted:!1,allowMissing:!1,caseFold:!1},D=o.alignCDATA,x,y;return{startState:function(){return{tokenize:s,state:p,indented:0,tagName:null,tagStart:null,context:null}},token:function(a,c){!c.tagName&&a.sol()&&(c.indented=a.indentation());if(a.eatSpace())return null;x=null;var b=c.tokenize(a,c);if((b||x)&&"comment"!=b)y=null,c.state=c.state(x||b,a,c),y&&(b="error"==y?b+" error":y);return b},indent:function(a,c,d){var e=a.context;if(a.tokenize.isInAttribute)return a.tagStart==a.indented?
a.stringStartCol+1:a.indented+r;if(e&&e.noIndent)return b.Pass;if(a.tokenize!=k&&a.tokenize!=s)return d?d.match(/^(\s*)/)[0].length:0;if(a.tagName)return z?a.tagStart+a.tagName.length+2:a.tagStart+r*u;if(D&&/<!\[CDATA\[/.test(c))return 0;if((a=c&&/^<(\/)?([\w_:\.-]*)/.exec(c))&&a[1])for(;e;)if(e.tagName==a[2]){e=e.prev;break}else if(m.implicitlyClosed.hasOwnProperty(e.tagName))e=e.prev;else break;else if(a)for(;e;)if((c=m.contextGrabbers[e.tagName])&&c.hasOwnProperty(a[2]))e=e.prev;else break;for(;e&&
!e.startOfLine;)e=e.prev;return e?e.indent+r:0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<\!--",blockCommentEnd:"--\>",configuration:o.htmlMode?"html":"xml",helperType:o.htmlMode?"html":"xml"}});b.defineMIME("text/xml","xml");b.defineMIME("application/xml","xml");b.mimeModes.hasOwnProperty("text/html")||b.defineMIME("text/html",{name:"xml",htmlMode:!0})});
(function(b){"object"==typeof exports&&"object"==typeof module?b(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],b):b(CodeMirror)})(function(b){b.defineMode("javascript",function(h,o){var s,k,q,e;function a(f,a,c){O=f;R=c;return a}function d(f,c){var b=f.next();if('"'==b||"'"==b)return c.tokenize=v(b),c.tokenize(f,c);if("."==b&&f.match(/^\d+(?:[eE][+\-]?\d+)?/))return a("number","number");if("."==b&&f.match(".."))return a("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(b))return a(b);
if("="==b&&f.eat(">"))return a("=>","operator");if("0"==b&&f.eat(/x/i))return f.eatWhile(/[\da-f]/i),a("number","number");if(/\d/.test(b))return f.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/),a("number","number");if("/"==b){if(f.eat("*"))return c.tokenize=l,l(f,c);if(f.eat("/"))return f.skipToEnd(),a("comment","comment");if("operator"==c.lastType||"keyword c"==c.lastType||"sof"==c.lastType||/^[\[{}\(,;:]$/.test(c.lastType)){a:for(var b=!1,g,i=!1;null!=(g=f.next());){if(!b){if("/"==g&&!i)break a;"["==
g?i=!0:i&&"]"==g&&(i=!1)}b=!b&&"\\"==g}f.eatWhile(/[gimy]/);return a("regexp","string-2")}f.eatWhile(W);return a("operator","operator",f.current())}if("`"==b)return c.tokenize=p,p(f,c);if("#"==b)return f.skipToEnd(),a("error","error");if(W.test(b))return f.eatWhile(W),a("operator","operator",f.current());f.eatWhile(/[\w\$_]/);b=f.current();return(g=ba.propertyIsEnumerable(b)&&ba[b])&&"."!=c.lastType?a(g.type,g.style,b):a("variable","variable",b)}function v(f){return function(b,c){var g=!1,i;if(S&&
"@"==b.peek()&&b.match(ma))return c.tokenize=d,a("jsonld-keyword","meta");for(;null!=(i=b.next())&&(i!=f||g);)g=!g&&"\\"==i;g||(c.tokenize=d);return a("string","string")}}function l(f,b){for(var c=!1,g;g=f.next();){if("/"==g&&c){b.tokenize=d;break}c="*"==g}return a("comment","comment")}function p(f,b){for(var c=!1,g;null!=(g=f.next());){if(!c&&("`"==g||"$"==g&&f.eat("{"))){b.tokenize=d;break}c=!c&&"\\"==g}return a("quasi","string-2",f.current())}function C(f,a){a.fatArrowAt&&(a.fatArrowAt=null);var c=
f.string.indexOf("=>",f.start);if(!(0>c)){for(var b=0,g=!1,c=c-1;0<=c;--c){var i=f.string.charAt(c),d=na.indexOf(i);if(0<=d&&3>d){if(!b){++c;break}if(0==--b)break}else if(3<=d&&6>d)++b;else if(/[$\w]/.test(i))g=!0;else if(g&&!b){++c;break}}g&&!b&&(a.fatArrowAt=c)}}function G(f,a,c,b,g,i){this.indented=f;this.column=a;this.type=c;this.prev=g;this.info=i;null!=b&&(this.align=b)}function j(){for(var f=arguments.length-1;0<=f;f--)s.push(arguments[f])}function c(){j.apply(null,arguments);return!0}function B(f){function a(c){for(;c;c=
c.next)if(c.name==f)return!0;return!1}var c=k;c.context?(q="def",a(c.localVars)||(c.localVars={name:f,next:c.localVars})):!a(c.globalVars)&&o.globalVars&&(c.globalVars={name:f,next:c.globalVars})}function H(){k.context={prev:k.context,vars:k.localVars};k.localVars=oa}function I(){k.localVars=k.context.vars;k.context=k.context.prev}function t(f,a){var c=function(){var c=k,b=c.indented;"stat"==c.lexical.type&&(b=c.lexical.indented);c.lexical=new G(b,e.column(),f,null,c.lexical,a)};c.lex=!0;return c}
function r(){var f=k;f.lexical.prev&&(")"==f.lexical.type&&(f.indented=f.lexical.indented),f.lexical=f.lexical.prev)}function u(f){function a(b){return b==f?c():";"==f?j():c(a)}return a}function z(f,a){return"var"==f?c(t("vardef",a.length),X,u(";"),r):"keyword a"==f?c(t("form"),m,z,r):"keyword b"==f?c(t("form"),z,r):"{"==f?c(t("}"),A,r):";"==f?c():"if"==f?("else"==k.lexical.info&&k.cc[k.cc.length-1]==r&&k.cc.pop()(),c(t("form"),m,z,r,ca)):"function"==f?c(K):"for"==f?c(t("form"),da,z,r):"variable"==
f?c(t("stat"),pa):"switch"==f?c(t("form"),m,t("}","switch"),u("{"),A,r,r):"case"==f?c(m,u(":")):"default"==f?c(u(":")):"catch"==f?c(t("form"),H,u("("),Y,u(")"),z,r,I):"module"==f?c(t("form"),H,qa,I,r):"class"==f?c(t("form"),ra,sa,r):"export"==f?c(t("form"),ta,r):"import"==f?c(t("form"),ua,r):j(t("stat"),m,u(";"),r)}function m(f){return x(f,!1)}function D(f){return x(f,!0)}function x(f,a){if(k.fatArrowAt==e.start){var b=a?ea:fa;if("("==f)return c(H,t(")"),E(L,")"),r,u("=>"),b,I);if("variable"==f)return j(H,
L,u("=>"),b,I)}b=a?V:F;return ga.hasOwnProperty(f)?c(b):"function"==f?c(K,b):"keyword c"==f?c(a?n:y):"("==f?c(t(")"),y,T,u(")"),r,b):"operator"==f||"spread"==f?c(a?D:m):"["==f?c(t("]"),va,r,b):"{"==f?g(J,"}",null,b):"quasi"==f?j(Q,b):c()}function y(f){return f.match(/[;\}\)\],]/)?j():j(m)}function n(f){return f.match(/[;\}\)\],]/)?j():j(D)}function F(f,a){return","==f?c(m):V(f,a,!1)}function V(a,b,i){var d=!1==i?F:V,e=!1==i?m:D;if("=>"==b)return c(H,i?ea:fa,I);if("operator"==a)return/\+\+|--/.test(b)?
c(d):"?"==b?c(m,u(":"),e):c(e);if("quasi"==a)return j(Q,d);if(";"!=a){if("("==a)return g(D,")","call",d);if("."==a)return c(Z,d);if("["==a)return c(t("]"),y,u("]"),r,d)}}function Q(a,b){return"quasi"!=a?j():"${"!=b.slice(b.length-2)?c(Q):c(m,la)}function la(a){if("}"==a)return q="string-2",k.tokenize=p,c(Q)}function fa(a){C(e,k);return"{"==a?j(z):j(m)}function ea(a){C(e,k);return"{"==a?j(z):j(D)}function pa(a){return":"==a?c(r,z):j(F,u(";"),r)}function Z(a){if("variable"==a)return q="property",c()}
function J(a,b){if("variable"==a){if(q="property","get"==b||"set"==b)return c(P)}else if("number"==a||"string"==a)q=S?"property":a+" property";else if("["==a)return c(m,u("]"),w);if(ga.hasOwnProperty(a))return c(w)}function P(a){if("variable"!=a)return j(w);q="property";return c(K)}function w(a){if(":"==a)return c(D);if("("==a)return j(K)}function E(a,b){function g(i){return","==i?(i=k.lexical,"call"==i.info&&(i.pos=(i.pos||0)+1),c(a,g)):i==b?c():c(u(b))}return function(i){return i==b?c():j(a,g)}}
function g(a,b,g){for(var i=3;i<arguments.length;i++)s.push(arguments[i]);return c(t(b,g),E(a,b),r)}function A(a){return"}"==a?c():j(z,A)}function i(a){if(ha&&":"==a)return c(wa)}function wa(a){if("variable"==a)return q="variable-3",c()}function X(){return j(L,i,$,xa)}function L(a,b){if("variable"==a)return B(b),c();if("["==a)return g(L,"]");if("{"==a)return g(ya,"}")}function ya(a,b){if("variable"==a&&!e.match(/^\s*:/,!1))return B(b),c($);"variable"==a&&(q="property");return c(u(":"),L,$)}function $(a,
b){if("="==b)return c(D)}function xa(a){if(","==a)return c(X)}function ca(a,b){if("keyword b"==a&&"else"==b)return c(t("form","else"),z,r)}function da(a){if("("==a)return c(t(")"),za,u(")"),r)}function za(a){return"var"==a?c(X,u(";"),U):";"==a?c(U):"variable"==a?c(Aa):j(m,u(";"),U)}function Aa(a,b){return"in"==b||"of"==b?(q="keyword",c(m)):c(F,U)}function U(a,b){return";"==a?c(ia):"in"==b||"of"==b?(q="keyword",c(m)):j(m,u(";"),ia)}function ia(a){")"!=a&&c(m)}function K(a,b){if("*"==b)return q="keyword",
c(K);if("variable"==a)return B(b),c(K);if("("==a)return c(H,t(")"),E(Y,")"),r,z,I)}function Y(a){return"spread"==a?c(Y):j(L,i)}function ra(a,b){if("variable"==a)return B(b),c(Ba)}function Ba(a,b){if("extends"==b)return c(m)}function sa(a){if("{"==a)return g(J,"}")}function qa(a,b){if("string"==a)return c(z);if("variable"==a)return B(b),c(aa)}function ta(a,b){return"*"==b?(q="keyword",c(aa,u(";"))):"default"==b?(q="keyword",c(m,u(";"))):j(z)}function ua(a){return"string"==a?c():j(ja,aa)}function ja(a,
b){if("{"==a)return g(ja,"}");"variable"==a&&B(b);return c()}function aa(a,b){if("from"==b)return q="keyword",c(m)}function va(a){return"]"==a?c():j(D,Ca)}function Ca(a){return"for"==a?j(T,u("]")):","==a?c(E(D,"]")):j(E(D,"]"))}function T(a){if("for"==a)return c(da,T);if("if"==a)return c(m,T)}var M=h.indentUnit,ka=o.statementIndent,S=o.jsonld,N=o.json||S,ha=o.typescript,ba=function(){function a(b){return{type:b,style:"keyword"}}var b=a("keyword a"),c=a("keyword b"),g=a("keyword c"),i=a("operator"),
d={type:"atom",style:"atom"},b={"if":a("if"),"while":b,"with":b,"else":c,"do":c,"try":c,"finally":c,"return":g,"break":g,"continue":g,"new":g,"delete":g,"throw":g,"debugger":g,"var":a("var"),"const":a("var"),let:a("var"),"function":a("function"),"catch":a("catch"),"for":a("for"),"switch":a("switch"),"case":a("case"),"default":a("default"),"in":i,"typeof":i,"instanceof":i,"true":d,"false":d,"null":d,undefined:d,NaN:d,Infinity:d,"this":a("this"),module:a("module"),"class":a("class"),"super":a("atom"),
yield:g,"export":a("export"),"import":a("import"),"extends":g};if(ha){var c={type:"variable",style:"variable-3"},c={"interface":a("interface"),"extends":a("extends"),constructor:a("constructor"),"public":a("public"),"private":a("private"),"protected":a("protected"),"static":a("static"),string:c,number:c,bool:c,any:c},e;for(e in c)b[e]=c[e]}return b}(),W=/[+\-*&%=<>!?|~^]/,ma=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/,O,R,na="([{}])",ga={atom:!0,number:!0,
variable:!0,string:!0,regexp:!0,"this":!0,"jsonld-keyword":!0};s=q=k=null;e=void 0;var oa={name:"this",next:{name:"arguments"}};r.lex=!0;return{startState:function(a){a={tokenize:d,lastType:"sof",cc:[],lexical:new G((a||0)-M,0,"block",!1),localVars:o.localVars,context:o.localVars&&{vars:o.localVars},indented:0};o.globalVars&&"object"==typeof o.globalVars&&(a.globalVars=o.globalVars);return a},token:function(a,b){a.sol()&&(b.lexical.hasOwnProperty("align")||(b.lexical.align=!1),b.indented=a.indentation(),
C(a,b));if(b.tokenize!=l&&a.eatSpace())return null;var c=b.tokenize(a,b);if("comment"==O)return c;b.lastType="operator"==O&&("++"==R||"--"==R)?"incdec":O;var g;a:{var i=O,d=R,A=b.cc;k=b;e=a;q=null;s=A;b.lexical.hasOwnProperty("align")||(b.lexical.align=!0);for(;;)if((A.length?A.pop():N?m:z)(i,d)){for(;A.length&&A[A.length-1].lex;)A.pop()();if(q){g=q;break a}if(g="variable"==i)b:{for(g=b.localVars;g;g=g.next)if(g.name==d){g=!0;break b}for(i=b.context;i;i=i.prev)for(g=i.vars;g;g=g.next)if(g.name==d){g=
!0;break b}g=void 0}if(g){g="variable-2";break a}g=c;break a}}return g},indent:function(a,c){if(a.tokenize==l)return b.Pass;if(a.tokenize!=d)return 0;var g=c&&c.charAt(0),i=a.lexical;if(!/^\s*else\b/.test(c))for(var e=a.cc.length-1;0<=e;--e){var A=a.cc[e];if(A==r)i=i.prev;else if(A!=ca)break}"stat"==i.type&&"}"==g&&(i=i.prev);ka&&(")"==i.type&&"stat"==i.prev.type)&&(i=i.prev);e=i.type;A=g==e;return"vardef"==e?i.indented+("operator"==a.lastType||","==a.lastType?i.info+1:0):"form"==e&&"{"==g?i.indented:
"form"==e?i.indented+M:"stat"==e?i.indented+("operator"==a.lastType||","==a.lastType?ka||M:0):"switch"==i.info&&!A&&!1!=o.doubleIndentSwitch?i.indented+(/^(?:case|default)\b/.test(c)?M:2*M):i.align?i.column+(A?0:1):i.indented+(A?0:M)},electricChars:":{}",blockCommentStart:N?null:"/*",blockCommentEnd:N?null:"*/",lineComment:N?null:"//",fold:"brace",helperType:N?"json":"javascript",jsonldMode:S,jsonMode:N}});b.registerHelper("wordChars","javascript",/[\\w$]/);b.defineMIME("text/javascript","javascript");
b.defineMIME("text/ecmascript","javascript");b.defineMIME("application/javascript","javascript");b.defineMIME("application/ecmascript","javascript");b.defineMIME("application/json",{name:"javascript",json:!0});b.defineMIME("application/x-json",{name:"javascript",json:!0});b.defineMIME("application/ld+json",{name:"javascript",jsonld:!0});b.defineMIME("text/typescript",{name:"javascript",typescript:!0});b.defineMIME("application/typescript",{name:"javascript",typescript:!0})});
(function(b){"object"==typeof exports&&"object"==typeof module?b(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],b):b(CodeMirror)})(function(b){function h(a){for(var b={},c=0;c<a.length;++c)b[a[c]]=!0;return b}function o(a,b){for(var c=!1,d;null!=(d=a.next());){if(c&&"/"==d){b.tokenize=null;break}c="*"==d}return["comment","comment"]}function s(a,b){a.skipTo("--\>")?(a.match("--\>"),b.tokenize=null):a.skipToEnd();return["comment","comment"]}b.defineMode("css",
function(a,c){function d(a,b){P=b;return a}function e(a,b){var c=a.next();if(F[c]){var n=F[c](a,b);if(!1!==n)return n}if("@"==c)return a.eatWhile(/[\w\\\-]/),d("def",a.current());if("="==c||("~"==c||"|"==c)&&a.eat("="))return d(null,"compare");if('"'==c||"'"==c)return b.tokenize=l(c),b.tokenize(a,b);if("#"==c)return a.eatWhile(/[\w\\\-]/),d("atom","hash");if("!"==c)return a.match(/^\s*\w*/),d("keyword","important");if(/\d/.test(c)||"."==c&&a.eat(/\d/))return a.eatWhile(/[\w.%]/),d("number","unit");
if("-"===c){if(/[\d.]/.test(a.peek()))return a.eatWhile(/[\w.%]/),d("number","unit");if(a.match(/^\w+-/))return d("meta","meta")}else return/[,+>*\/]/.test(c)?d(null,"select-op"):"."==c&&a.match(/^-?[_a-z][_a-z0-9-]*/i)?d("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(c)?d(null,c):"u"==c&&a.match("rl(")?(a.backUp(1),b.tokenize=p,d("property","word")):/[\w\\\-]/.test(c)?(a.eatWhile(/[\w\\\-]/),d("property","word")):d(null,null)}function l(a){return function(b,c){for(var e=!1,n;null!=(n=b.next());){if(n==
a&&!e){")"==a&&b.backUp(1);break}e=!e&&"\\"==n}if(n==a||!e&&")"!=a)c.tokenize=null;return d("string","string")}}function p(a,b){a.next();b.tokenize=a.match(/\s*[\"\')]/,!1)?null:l(")");return d(null,"(")}function j(a,b,c){this.type=a;this.indent=b;this.prev=c}function m(a,b,c){a.context=new j(c,b.indentation()+n,a.context);return c}function v(a){a.context=a.context.prev;return a.context.type}function h(a,b,c,d){for(d=d||1;0<d;d--)c.context=c.context.prev;return E[c.context.type](a,b,c)}function y(a){a=
a.current().toLowerCase();w=G.hasOwnProperty(a)?"atom":s.hasOwnProperty(a)?"keyword":"variable"}c.propertyKeywords||(c=b.resolveMode("text/css"));var n=a.indentUnit,F=c.tokenHooks,k=c.mediaTypes||{},o=c.mediaFeatures||{},C=c.propertyKeywords||{},q=c.nonStandardPropertyKeywords||{},s=c.colorKeywords||{},G=c.valueKeywords||{},Z=c.fontProperties||{},J=c.allowNested,P,w,E={top:function(a,b,c){if("{"==a)return m(c,b,"block");if("}"==a&&c.context.prev)return v(c);if("@media"==a)return m(c,b,"media");if("@font-face"==
a)return"font_face_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/.test(a))return"keyframes";if(a&&"@"==a.charAt(0))return m(c,b,"at");if("hash"==a)w="builtin";else if("word"==a)w="tag";else{if("variable-definition"==a)return"maybeprop";if("interpolation"==a)return m(c,b,"interpolation");if(":"==a)return"pseudo";if(J&&"("==a)return m(c,b,"parens")}return c.context.type},block:function(a,b,c){if("word"==a){a=b.current().toLowerCase();if(C.hasOwnProperty(a))return w="property","maybeprop";if(q.hasOwnProperty(a))return w=
"string-2","maybeprop";if(J)return w=b.match(/^\s*:/,!1)?"property":"tag","block";w+=" error";return"maybeprop"}return"meta"==a?"block":!J&&("hash"==a||"qualifier"==a)?(w="error","block"):E.top(a,b,c)},maybeprop:function(a,b,c){return":"==a?m(c,b,"prop"):E[c.context.type](a,b,c)},prop:function(a,b,c){if(";"==a)return v(c);if("{"==a&&J)return m(c,b,"propBlock");if("}"==a||"{"==a)return h(a,b,c);if("("==a)return m(c,b,"parens");if("hash"==a&&!/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(b.current()))w+=
" error";else if("word"==a)y(b);else if("interpolation"==a)return m(c,b,"interpolation");return"prop"},propBlock:function(a,b,c){return"}"==a?v(c):"word"==a?(w="property","maybeprop"):c.context.type},parens:function(a,b,c){if("{"==a||"}"==a)return h(a,b,c);if(")"==a)return v(c);if("("==a)return m(c,b,"parens");"word"==a&&y(b);return"parens"},pseudo:function(a,b,c){return"word"==a?(w="variable-3",c.context.type):E[c.context.type](a,b,c)},media:function(a,b,c){if("("==a)return m(c,b,"media_parens");
if("}"==a)return h(a,b,c);if("{"==a)return v(c)&&m(c,b,J?"block":"top");"word"==a&&(a=b.current().toLowerCase(),w="only"==a||"not"==a||"and"==a?"keyword":k.hasOwnProperty(a)?"attribute":o.hasOwnProperty(a)?"property":"error");return c.context.type},media_parens:function(a,b,c){return")"==a?v(c):"{"==a||"}"==a?h(a,b,c,2):E.media(a,b,c)},font_face_before:function(a,b,c){return"{"==a?m(c,b,"font_face"):E[c.context.type](a,b,c)},font_face:function(a,b,c){return"}"==a?v(c):"word"==a?(w=Z.hasOwnProperty(b.current().toLowerCase())?
"property":"error","maybeprop"):"font_face"},keyframes:function(a,b,c){return"word"==a?(w="variable","keyframes"):"{"==a?m(c,b,"top"):E[c.context.type](a,b,c)},at:function(a,b,c){if(";"==a)return v(c);if("{"==a||"}"==a)return h(a,b,c);"word"==a?w="tag":"hash"==a&&(w="builtin");return"at"},interpolation:function(a,b,c){if("}"==a)return v(c);if("{"==a||";"==a)return h(a,b,c);"variable"!=a&&(w="error");return"interpolation"}};return{startState:function(a){return{tokenize:null,state:"top",context:new j("top",
a||0,null)}},token:function(a,b){if(!b.tokenize&&a.eatSpace())return null;var c=(b.tokenize||e)(a,b);c&&"object"==typeof c&&(P=c[1],c=c[0]);w=c;b.state=E[b.state](P,a,b);return w},indent:function(a,b){var c=a.context,d=b&&b.charAt(0),e=c.indent;if("prop"==c.type&&("}"==d||")"==d))c=c.prev;if(c.prev&&("}"==d&&("block"==c.type||"top"==c.type||"interpolation"==c.type||"font_face"==c.type)||")"==d&&("parens"==c.type||"media_parens"==c.type)||"{"==d&&("at"==c.type||"media"==c.type)))e=c.indent-n;return e},
electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",fold:"brace"}});var k="all aural braille handheld print projection screen tty tv embossed".split(" "),q=h(k),e="width min-width max-width height min-height max-height device-width min-device-width max-device-width device-height min-device-height max-device-height aspect-ratio min-aspect-ratio max-aspect-ratio device-aspect-ratio min-device-aspect-ratio max-device-aspect-ratio color min-color max-color color-index min-color-index max-color-index monochrome min-monochrome max-monochrome resolution min-resolution max-resolution scan grid".split(" "),
a=h(e),d="align-content align-items align-self alignment-adjust alignment-baseline anchor-point animation animation-delay animation-direction animation-duration animation-fill-mode animation-iteration-count animation-name animation-play-state animation-timing-function appearance azimuth backface-visibility background background-attachment background-clip background-color background-image background-origin background-position background-repeat background-size baseline-shift binding bleed bookmark-label bookmark-level bookmark-state bookmark-target border border-bottom border-bottom-color border-bottom-left-radius border-bottom-right-radius border-bottom-style border-bottom-width border-collapse border-color border-image border-image-outset border-image-repeat border-image-slice border-image-source border-image-width border-left border-left-color border-left-style border-left-width border-radius border-right border-right-color border-right-style border-right-width border-spacing border-style border-top border-top-color border-top-left-radius border-top-right-radius border-top-style border-top-width border-width bottom box-decoration-break box-shadow box-sizing break-after break-before break-inside caption-side clear clip color color-profile column-count column-fill column-gap column-rule column-rule-color column-rule-style column-rule-width column-span column-width columns content counter-increment counter-reset crop cue cue-after cue-before cursor direction display dominant-baseline drop-initial-after-adjust drop-initial-after-align drop-initial-before-adjust drop-initial-before-align drop-initial-size drop-initial-value elevation empty-cells fit fit-position flex flex-basis flex-direction flex-flow flex-grow flex-shrink flex-wrap float float-offset flow-from flow-into font font-feature-settings font-family font-kerning font-language-override font-size font-size-adjust font-stretch font-style font-synthesis font-variant font-variant-alternates font-variant-caps font-variant-east-asian font-variant-ligatures font-variant-numeric font-variant-position font-weight grid grid-area grid-auto-columns grid-auto-flow grid-auto-position grid-auto-rows grid-column grid-column-end grid-column-start grid-row grid-row-end grid-row-start grid-template grid-template-areas grid-template-columns grid-template-rows hanging-punctuation height hyphens icon image-orientation image-rendering image-resolution inline-box-align justify-content left letter-spacing line-break line-height line-stacking line-stacking-ruby line-stacking-shift line-stacking-strategy list-style list-style-image list-style-position list-style-type margin margin-bottom margin-left margin-right margin-top marker-offset marks marquee-direction marquee-loop marquee-play-count marquee-speed marquee-style max-height max-width min-height min-width move-to nav-down nav-index nav-left nav-right nav-up object-fit object-position opacity order orphans outline outline-color outline-offset outline-style outline-width overflow overflow-style overflow-wrap overflow-x overflow-y padding padding-bottom padding-left padding-right padding-top page page-break-after page-break-before page-break-inside page-policy pause pause-after pause-before perspective perspective-origin pitch pitch-range play-during position presentation-level punctuation-trim quotes region-break-after region-break-before region-break-inside region-fragment rendering-intent resize rest rest-after rest-before richness right rotation rotation-point ruby-align ruby-overhang ruby-position ruby-span shape-image-threshold shape-inside shape-margin shape-outside size speak speak-as speak-header speak-numeral speak-punctuation speech-rate stress string-set tab-size table-layout target target-name target-new target-position text-align text-align-last text-decoration text-decoration-color text-decoration-line text-decoration-skip text-decoration-style text-emphasis text-emphasis-color text-emphasis-position text-emphasis-style text-height text-indent text-justify text-outline text-overflow text-shadow text-size-adjust text-space-collapse text-transform text-underline-position text-wrap top transform transform-origin transform-style transition transition-delay transition-duration transition-property transition-timing-function unicode-bidi vertical-align visibility voice-balance voice-duration voice-family voice-pitch voice-range voice-rate voice-stress voice-volume volume white-space widows width word-break word-spacing word-wrap z-index clip-path clip-rule mask enable-background filter flood-color flood-opacity lighting-color stop-color stop-opacity pointer-events color-interpolation color-interpolation-filters color-rendering fill fill-opacity fill-rule image-rendering marker marker-end marker-mid marker-start shape-rendering stroke stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-rendering baseline-shift dominant-baseline glyph-orientation-horizontal glyph-orientation-vertical text-anchor writing-mode".split(" "),
v=h(d),l="scrollbar-arrow-color scrollbar-base-color scrollbar-dark-shadow-color scrollbar-face-color scrollbar-highlight-color scrollbar-shadow-color scrollbar-3d-light-color scrollbar-track-color shape-inside searchfield-cancel-button searchfield-decoration searchfield-results-button searchfield-results-decoration zoom".split(" "),l=h(l),p="aliceblue antiquewhite aqua aquamarine azure beige bisque black blanchedalmond blue blueviolet brown burlywood cadetblue chartreuse chocolate coral cornflowerblue cornsilk crimson cyan darkblue darkcyan darkgoldenrod darkgray darkgreen darkkhaki darkmagenta darkolivegreen darkorange darkorchid darkred darksalmon darkseagreen darkslateblue darkslategray darkturquoise darkviolet deeppink deepskyblue dimgray dodgerblue firebrick floralwhite forestgreen fuchsia gainsboro ghostwhite gold goldenrod gray grey green greenyellow honeydew hotpink indianred indigo ivory khaki lavender lavenderblush lawngreen lemonchiffon lightblue lightcoral lightcyan lightgoldenrodyellow lightgray lightgreen lightpink lightsalmon lightseagreen lightskyblue lightslategray lightsteelblue lightyellow lime limegreen linen magenta maroon mediumaquamarine mediumblue mediumorchid mediumpurple mediumseagreen mediumslateblue mediumspringgreen mediumturquoise mediumvioletred midnightblue mintcream mistyrose moccasin navajowhite navy oldlace olive olivedrab orange orangered orchid palegoldenrod palegreen paleturquoise palevioletred papayawhip peachpuff peru pink plum powderblue purple red rosybrown royalblue saddlebrown salmon sandybrown seagreen seashell sienna silver skyblue slateblue slategray snow springgreen steelblue tan teal thistle tomato turquoise violet wheat white whitesmoke yellow yellowgreen".split(" "),
C=h(p),G="above absolute activeborder activecaption afar after-white-space ahead alias all all-scroll alternate always amharic amharic-abegede antialiased appworkspace arabic-indic armenian asterisks auto avoid avoid-column avoid-page avoid-region background backwards baseline below bidi-override binary bengali blink block block-axis bold bolder border border-box both bottom break break-all break-word button button-bevel buttonface buttonhighlight buttonshadow buttontext cambodian capitalize caps-lock-indicator caption captiontext caret cell center checkbox circle cjk-earthly-branch cjk-heavenly-stem cjk-ideographic clear clip close-quote col-resize collapse column compact condensed contain content content-box context-menu continuous copy cover crop cross crosshair currentcolor cursive dashed decimal decimal-leading-zero default default-button destination-atop destination-in destination-out destination-over devanagari disc discard document dot-dash dot-dot-dash dotted double down e-resize ease ease-in ease-in-out ease-out element ellipse ellipsis embed end ethiopic ethiopic-abegede ethiopic-abegede-am-et ethiopic-abegede-gez ethiopic-abegede-ti-er ethiopic-abegede-ti-et ethiopic-halehame-aa-er ethiopic-halehame-aa-et ethiopic-halehame-am-et ethiopic-halehame-gez ethiopic-halehame-om-et ethiopic-halehame-sid-et ethiopic-halehame-so-et ethiopic-halehame-ti-er ethiopic-halehame-ti-et ethiopic-halehame-tig ew-resize expanded extra-condensed extra-expanded fantasy fast fill fixed flat footnotes forwards from geometricPrecision georgian graytext groove gujarati gurmukhi hand hangul hangul-consonant hebrew help hidden hide higher highlight highlighttext hiragana hiragana-iroha horizontal hsl hsla icon ignore inactiveborder inactivecaption inactivecaptiontext infinite infobackground infotext inherit initial inline inline-axis inline-block inline-table inset inside intrinsic invert italic justify kannada katakana katakana-iroha keep-all khmer landscape lao large larger left level lighter line-through linear lines list-item listbox listitem local logical loud lower lower-alpha lower-armenian lower-greek lower-hexadecimal lower-latin lower-norwegian lower-roman lowercase ltr malayalam match media-controls-background media-current-time-display media-fullscreen-button media-mute-button media-play-button media-return-to-realtime-button media-rewind-button media-seek-back-button media-seek-forward-button media-slider media-sliderthumb media-time-remaining-display media-volume-slider media-volume-slider-container media-volume-sliderthumb medium menu menulist menulist-button menulist-text menulist-textfield menutext message-box middle min-intrinsic mix mongolian monospace move multiple myanmar n-resize narrower ne-resize nesw-resize no-close-quote no-drop no-open-quote no-repeat none normal not-allowed nowrap ns-resize nw-resize nwse-resize oblique octal open-quote optimizeLegibility optimizeSpeed oriya oromo outset outside outside-shape overlay overline padding padding-box painted page paused persian plus-darker plus-lighter pointer polygon portrait pre pre-line pre-wrap preserve-3d progress push-button radio read-only read-write read-write-plaintext-only rectangle region relative repeat repeat-x repeat-y reset reverse rgb rgba ridge right round row-resize rtl run-in running s-resize sans-serif scroll scrollbar se-resize searchfield searchfield-cancel-button searchfield-decoration searchfield-results-button searchfield-results-decoration semi-condensed semi-expanded separate serif show sidama single skip-white-space slide slider-horizontal slider-vertical sliderthumb-horizontal sliderthumb-vertical slow small small-caps small-caption smaller solid somali source-atop source-in source-out source-over space square square-button start static status-bar stretch stroke sub subpixel-antialiased super sw-resize table table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group telugu text text-bottom text-top textarea textfield thai thick thin threeddarkshadow threedface threedhighlight threedlightshadow threedshadow tibetan tigre tigrinya-er tigrinya-er-abegede tigrinya-et tigrinya-et-abegede to top transparent ultra-condensed ultra-expanded underline up upper-alpha upper-armenian upper-greek upper-hexadecimal upper-latin upper-norwegian upper-roman uppercase urdu url vertical vertical-text visible visibleFill visiblePainted visibleStroke visual w-resize wait wave wider window windowframe windowtext x-large x-small xor xx-large xx-small".split(" "),
j=h(G),c=h("font-family src unicode-range font-variant font-feature-settings font-stretch font-weight font-style".split(" ")),k=k.concat(e).concat(d).concat(l).concat(p).concat(G);b.registerHelper("hintWords","css",k);b.defineMIME("text/css",{mediaTypes:q,mediaFeatures:a,propertyKeywords:v,nonStandardPropertyKeywords:l,colorKeywords:C,valueKeywords:j,fontProperties:c,tokenHooks:{"<":function(a,c){if(!a.match("!--"))return!1;c.tokenize=s;return s(a,c)},"/":function(a,c){if(!a.eat("*"))return!1;c.tokenize=
o;return o(a,c)}},name:"css"});b.defineMIME("text/x-scss",{mediaTypes:q,mediaFeatures:a,propertyKeywords:v,nonStandardPropertyKeywords:l,colorKeywords:C,valueKeywords:j,fontProperties:c,allowNested:!0,tokenHooks:{"/":function(a,c){return a.eat("/")?(a.skipToEnd(),["comment","comment"]):a.eat("*")?(c.tokenize=o,o(a,c)):["operator","operator"]},":":function(a){return a.match(/\s*{/)?[null,"{"]:!1},$:function(a){a.match(/^[\w-]+/);return a.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2",
"variable"]},"#":function(a){return!a.eat("{")?!1:[null,"interpolation"]}},name:"css",helperType:"scss"});b.defineMIME("text/x-less",{mediaTypes:q,mediaFeatures:a,propertyKeywords:v,nonStandardPropertyKeywords:l,colorKeywords:C,valueKeywords:j,fontProperties:c,allowNested:!0,tokenHooks:{"/":function(a,c){return a.eat("/")?(a.skipToEnd(),["comment","comment"]):a.eat("*")?(c.tokenize=o,o(a,c)):["operator","operator"]},"@":function(a){if(a.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/,
!1))return!1;a.eatWhile(/[\w\\\-]/);return a.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"})});
(function(b){"object"==typeof exports&&"object"==typeof module?b(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],b):b(CodeMirror)})(function(b){function h(a){for(var b={},a=a.split(" "),e=0;e<a.length;++e)b[a[e]]=!0;return b}function o(a,b){if(!b.startOfLine)return!1;for(;;)if(a.skipTo("\\")){if(a.next(),a.eol()){b.tokenize=o;break}}else{a.skipToEnd();b.tokenize=null;break}return"meta"}function s(a,b){a.backUp(1);if(a.match(/(R|u8R|uR|UR|LR)/)){var e=
a.match(/"(.{0,16})\(/);if(!e)return!1;b.cpp11RawStringDelim=e[1];b.tokenize=q;return q(a,b)}if(a.match(/(u8|u|U|L)/))return a.match(/["']/,!1)?"string":!1;a.next();return!1}function k(a,b){for(var e;null!=(e=a.next());)if('"'==e&&!a.eat('"')){b.tokenize=null;break}return"string"}function q(a,b){a.match(RegExp(".*?\\)"+b.cpp11RawStringDelim+'"'))?b.tokenize=null:a.skipToEnd();return"string"}function e(a,d){function e(a){if(a)for(var b in a)a.hasOwnProperty(b)&&l.push(b)}"string"==typeof a&&(a=[a]);
var l=[];e(d.keywords);e(d.builtin);e(d.atoms);l.length&&(d.helperType=a[0],b.registerHelper("hintWords",a[0],l));for(var p=0;p<a.length;++p)b.defineMIME(a[p],d)}b.defineMode("clike",function(a,d){function e(a,c){var b=a.next();if(z[b]){var d=z[b](a,c);if(!1!==d)return d}if('"'==b||"'"==b)return c.tokenize=l(b),c.tokenize(a,c);if(/[\[\]{}\(\),;\:\.]/.test(b))return x=b,null;if(/\d/.test(b))return a.eatWhile(/[\w\.]/),"number";if("/"==b){if(a.eat("*"))return c.tokenize=p,p(a,c);if(a.eat("/"))return a.skipToEnd(),
"comment"}if(D.test(b))return a.eatWhile(D),"operator";a.eatWhile(/[\w\$_]/);b=a.current();return s.propertyIsEnumerable(b)?(r.propertyIsEnumerable(b)&&(x="newstatement"),"keyword"):t.propertyIsEnumerable(b)?(r.propertyIsEnumerable(b)&&(x="newstatement"),"builtin"):u.propertyIsEnumerable(b)?"atom":"variable"}function l(a){return function(b,c){for(var d=!1,e,l=!1;null!=(e=b.next());){if(e==a&&!d){l=!0;break}d=!d&&"\\"==e}if(l||!d&&!m)c.tokenize=null;return"string"}}function p(a,b){for(var c=!1,d;d=
a.next();){if("/"==d&&c){b.tokenize=null;break}c="*"==d}return"comment"}function h(a,b,c,d,e){this.indented=a;this.column=b;this.type=c;this.align=d;this.prev=e}function k(a,b,c){var d=a.indented;a.context&&"statement"==a.context.type&&(d=a.context.indented);return a.context=new h(d,b,c,null,a.context)}function j(a){var b=a.context.type;if(")"==b||"]"==b||"}"==b)a.indented=a.context.indented;return a.context=a.context.prev}var c=a.indentUnit,o=d.statementIndentUnit||c,q=d.dontAlignCalls,s=d.keywords||
{},t=d.builtin||{},r=d.blockKeywords||{},u=d.atoms||{},z=d.hooks||{},m=d.multiLineStrings,D=/[+\-*&%=<>!?|\/]/,x;return{startState:function(a){return{tokenize:null,context:new h((a||0)-c,0,"top",!1),indented:0,startOfLine:!0}},token:function(a,b){var c=b.context;a.sol()&&(null==c.align&&(c.align=!1),b.indented=a.indentation(),b.startOfLine=!0);if(a.eatSpace())return null;x=null;var d=(b.tokenize||e)(a,b);if("comment"==d||"meta"==d)return d;null==c.align&&(c.align=!0);if((";"==x||":"==x||","==x)&&
"statement"==c.type)j(b);else if("{"==x)k(b,a.column(),"}");else if("["==x)k(b,a.column(),"]");else if("("==x)k(b,a.column(),")");else if("}"==x){for(;"statement"==c.type;)c=j(b);for("}"==c.type&&(c=j(b));"statement"==c.type;)c=j(b)}else x==c.type?j(b):(("}"==c.type||"top"==c.type)&&";"!=x||"statement"==c.type&&"newstatement"==x)&&k(b,a.column(),"statement");b.startOfLine=!1;return d},indent:function(a,d){if(a.tokenize!=e&&null!=a.tokenize)return b.Pass;var l=a.context,p=d&&d.charAt(0);"statement"==
l.type&&"}"==p&&(l=l.prev);var j=p==l.type;return"statement"==l.type?l.indented+("{"==p?0:o):l.align&&(!q||")"!=l.type)?l.column+(j?0:1):")"==l.type&&!j?l.indented+o:l.indented+(j?0:c)},electricChars:"{}",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}});e(["text/x-csrc","text/x-c","text/x-chdr"],{name:"clike",keywords:h("auto if break int case long char register continue return default short do sizeof double static else struct entry switch extern typedef float union for unsigned goto while enum void const signed volatile"),
blockKeywords:h("case do else for if switch while struct"),atoms:h("null"),hooks:{"#":o},modeProps:{fold:["brace","include"]}});e(["text/x-c++src","text/x-c++hdr"],{name:"clike",keywords:h("auto if break int case long char register continue return default short do sizeof double static else struct entry switch extern typedef float union for unsigned goto while enum void const signed volatile asm dynamic_cast namespace reinterpret_cast try bool explicit new static_cast typeid catch operator template typename class friend private this using const_cast inline public throw virtual delete mutable protected wchar_t alignas alignof constexpr decltype nullptr noexcept thread_local final static_assert override"),
blockKeywords:h("catch class do else finally for if struct switch try while"),atoms:h("true false null"),hooks:{"#":o,u:s,U:s,L:s,R:s},modeProps:{fold:["brace","include"]}});e("text/x-java",{name:"clike",keywords:h("abstract assert boolean break byte case catch char class const continue default do double else enum extends final finally float for goto if implements import instanceof int interface long native new package private protected public return short static strictfp super switch synchronized this throw throws transient try void volatile while"),
blockKeywords:h("catch class do else finally for if switch try while"),atoms:h("true false null"),hooks:{"@":function(a){a.eatWhile(/[\w\$_]/);return"meta"}},modeProps:{fold:["brace","import"]}});e("text/x-csharp",{name:"clike",keywords:h("abstract as base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in interface internal is lock namespace new operator out override params private protected public readonly ref return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),
blockKeywords:h("catch class do else finally for foreach if struct switch try while"),builtin:h("Boolean Byte Char DateTime DateTimeOffset Decimal Double Guid Int16 Int32 Int64 Object SByte Single String TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),atoms:h("true false null"),hooks:{"@":function(a,b){if(a.eat('"'))return b.tokenize=k,k(a,b);a.eatWhile(/[\w\$_]/);return"meta"}}});e("text/x-scala",{name:"clike",keywords:h("abstract case catch class def do else extends false final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try trye type val var while with yield _ : = => <- <: <% >: # @ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector :: #:: Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),
blockKeywords:h("catch class do else finally for forSome if match switch try while"),atoms:h("true false null"),hooks:{"@":function(a){a.eatWhile(/[\w\$_]/);return"meta"}}});e(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:h("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4 sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadowconst attribute uniform varying break continue discard return for while do if else struct in out inout"),
blockKeywords:h("for while do if else struct"),builtin:h("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smootstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),
atoms:h("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragColor gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),
hooks:{"#":o},modeProps:{fold:["brace","include"]}})});
(function(b){"object"==typeof exports&&"object"==typeof module?b(require("../../lib/codemirror"),require("../htmlmixed/htmlmixed"),require("../clike/clike")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed","../clike/clike"],b):b(CodeMirror)})(function(b){function h(b){for(var a={},b=b.split(" "),d=0;d<b.length;++d)a[b[d]]=!0;return a}function o(b){return function(a,d){a.match(b)?d.tokenize=null:a.skipToEnd();return"string"}}function s(b){return 0==b.length?
k:function(a,d){for(var h=b[0],l=0;l<h.length;l++)if(a.match(h[l][0]))return d.tokenize=s(b.slice(1)),h[l][1];d.tokenize=k;return"string"}}function k(b,a){var d=!1,h,l=!1;if('"'==b.current())return"string";if(b.match("${",!1)||b.match("{$",!1))return a.tokenize=null,"string";if(b.match(/\$[a-zA-Z_][a-zA-Z0-9_]*/))return b.match("[",!1)&&(a.tokenize=s([[["[",null]],[[/\d[\w\.]*/,"number"],[/\$[a-zA-Z_][a-zA-Z0-9_]*/,"variable-2"],[/[\w\$]+/,"variable"]],[["]",null]]])),b.match(/\-\>\w/,!1)&&(a.tokenize=
s([[["->",null]],[[/[\w]+/,"variable"]]])),"variable-2";for(;!b.eol()&&!b.match("{$",!1)&&(!b.match(/(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1)||d);){h=b.next();if(!d&&'"'==h){l=!0;break}d=!d&&"\\"==h}l&&(a.tokenize=null,a.phpEncapsStack.pop());return"string"}b.registerHelper("hintWords","php","abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__ func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once".split(" "));
b.registerHelper("wordChars","php",/[\\w$]/);var q={name:"clike",helperType:"php",keywords:h("abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally"),
blockKeywords:h("catch do else elseif for foreach if switch try while finally"),atoms:h("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__"),builtin:h("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once"),
multiLineStrings:!0,hooks:{$:function(b){b.eatWhile(/[\w\$_]/);return"variable-2"},"<":function(b,a){return b.match(/<</)?(b.eatWhile(/[\w\.]/),a.tokenize=o(b.current().slice(3)),a.tokenize(b,a)):!1},"#":function(b){for(;!b.eol()&&!b.match("?>",!1);)b.next();return"comment"},"/":function(b){if(b.eat("/")){for(;!b.eol()&&!b.match("?>",!1);)b.next();return"comment"}return!1},'"':function(b,a){a.phpEncapsStack||(a.phpEncapsStack=[]);a.phpEncapsStack.push(0);a.tokenize=k;return a.tokenize(b,a)},"{":function(b,
a){a.phpEncapsStack&&0<a.phpEncapsStack.length&&a.phpEncapsStack[a.phpEncapsStack.length-1]++;return!1},"}":function(b,a){a.phpEncapsStack&&0<a.phpEncapsStack.length&&0==--a.phpEncapsStack[a.phpEncapsStack.length-1]&&(a.tokenize=k);return!1}}};b.defineMode("php",function(e,a){var d=b.getMode(e,"text/html"),h=b.getMode(e,q);return{startState:function(){var e=b.startState(d),p=b.startState(h);return{html:e,php:p,curMode:a.startOpen?h:d,curState:a.startOpen?p:e,pending:null}},copyState:function(a){var e=
b.copyState(d,a.html),k=b.copyState(h,a.php);return{html:e,php:k,curMode:a.curMode,curState:a.curMode==d?e:k,pending:a.pending}},token:function(a,b){var e=b.curMode==h;a.sol()&&(b.pending&&'"'!=b.pending&&"'"!=b.pending)&&(b.pending=null);if(e)return e&&null==b.php.tokenize&&a.match("?>")?(b.curMode=d,b.curState=b.html,"meta"):h.token(a,b.curState);if(a.match(/^<\?\w*/))return b.curMode=h,b.curState=b.php,"meta";if('"'==b.pending||"'"==b.pending){for(;!a.eol()&&a.next()!=b.pending;);e="string"}else b.pending&&
a.pos<b.pending.end?(a.pos=b.pending.end,e=b.pending.style):e=d.token(a,b.curState);b.pending&&(b.pending=null);var k=a.current(),j=k.search(/<\?/),c;-1!=j&&(b.pending="string"==e&&(c=k.match(/[\'\"]$/))&&!/\?>/.test(k)?c[0]:{end:a.pos,style:e},a.backUp(k.length-j));return e},indent:function(a,b){return a.curMode!=h&&/^\s*<\//.test(b)||a.curMode==h&&/^\?>/.test(b)?d.indent(a.html,b):a.curMode.indent(a.curState,b)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(a){return{state:a.curState,
mode:a.curMode}}}},"htmlmixed","clike");b.defineMIME("application/x-httpd-php","php");b.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0});b.defineMIME("text/x-php",q)});