text: !function(){"use strict";function e(e,n){return e.line-n.line||e.ch-n.ch}function n(e,n,t,r){this.line=n,this.ch=t,this.cm=e,this.text=e.getLine(n),this.min=r?r.from:e.firstLine(),this.max=r?r.to-1:e.lastLine()}function t(e,n){var t=e.cm.getTokenTypeAt(h(e.line,n));return t&&/\btag\b/.test(t)}function r(e){return e.line>=e.max?void 0:(e.ch=0,e.text=e.cm.getLine(++e.line),!0)}function i(e){return e.line<=e.min?void 0:(e.text=e.cm.getLine(--e.line),e.ch=e.text.length,!0)}function f(e){for(;;){var n=e.text.indexOf(">",e.ch);if(-1==n){if(r(e))continue;return}{if(t(e,n+1)){var i=e.text.lastIndexOf("/",n),f=i>-1&&!/\S/.test(e.text.slice(i+1,n));return e.ch=n+1,f?"selfClose":"regular"}e.ch=n+1}}}function o(e){for(;;){var n=e.ch?e.text.lastIndexOf("<",e.ch-1):-1;if(-1==n){if(i(e))continue;return}if(t(e,n+1)){g.lastIndex=n,e.ch=n;var r=g.exec(e.text);if(r&&r.index==n)return r}else e.ch=n}}function u(e){for(;;){g.lastIndex=e.ch;var n=g.exec(e.text);if(!n){if(r(e))continue;return}{if(t(e,n.index+1))return e.ch=n.index+n[0].length,n;e.ch=n.index+1}}}function l(e){for(;;){var n=e.ch?e.text.lastIndexOf(">",e.ch-1):-1;if(-1==n){if(i(e))continue;return}{if(t(e,n+1)){var r=e.text.lastIndexOf("/",n),f=r>-1&&!/\S/.test(e.text.slice(r+1,n));return e.ch=n+1,f?"selfClose":"regular"}e.ch=n}}}function c(e,n){for(var t=[];;){var r,i=u(e),o=e.line,l=e.ch-(i?i[0].length:0);if(!i||!(r=f(e)))return;if("selfClose"!=r)if(i[1]){for(var c=t.length-1;c>=0;--c)if(t[c]==i[2]){t.length=c;break}if(0>c&&(!n||n==i[2]))return{tag:i[2],from:h(o,l),to:h(e.line,e.ch)}}else t.push(i[2])}}function a(e,n){for(var t=[];;){var r=l(e);if(!r)return;if("selfClose"!=r){var i=e.line,f=e.ch,u=o(e);if(!u)return;if(u[1])t.push(u[2]);else{for(var c=t.length-1;c>=0;--c)if(t[c]==u[2]){t.length=c;break}if(0>c&&(!n||n==u[2]))return{tag:u[2],from:h(e.line,e.ch),to:h(i,f)}}}else o(e)}}var h=CodeMirror.Pos,s="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",x=s+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",g=new RegExp("<(/?)(["+s+"]["+x+"]*)","g");CodeMirror.registerHelper("fold","xml",function(e,t){for(var r=new n(e,t.line,0);;){var i,o=u(r);if(!o||r.line!=t.line||!(i=f(r)))return;if(!o[1]&&"selfClose"!=i){var t=h(r.line,r.ch),l=c(r,o[2]);return l&&{from:t,to:l.from}}}}),CodeMirror.tagRangeFinder=CodeMirror.fold.xml,CodeMirror.findMatchingTag=function(t,r,i){var u=new n(t,r.line,r.ch,i);if(-1!=u.text.indexOf(">")||-1!=u.text.indexOf("<")){var l=f(u),s=l&&h(u.line,u.ch),x=l&&o(u);if(l&&"selfClose"!=l&&x&&!(e(u,r)>0)){var g={from:h(u.line,u.ch),to:s,tag:x[2]};return x[1]?{open:a(u,x[2]),close:g,at:"close"}:(u=new n(t,s.line,s.ch,i),{open:g,close:c(u,x[2]),at:"open"})}}},CodeMirror.findEnclosingTag=function(e,t,r){for(var i=new n(e,t.line,t.ch,r);;){var f=a(i);if(!f)break;var o=new n(e,t.line,t.ch,r),u=c(o,f.tag);if(u)return{open:f,close:u}}}}();