text: ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],function(r,e,m){"use strict";e.isDark=false;e.cssClass="ace-tm";e.cssText=".ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==\") right repeat-y;}";e.$id="ace/theme/textmate";var d=r("../lib/dom");d.importCssString(e.cssText,e.cssClass);});ace.define("ace/ext/textarea",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/net","ace/ace","ace/theme/textmate"],function(r,a,m){"use strict";var b=r("../lib/event");var U=r("../lib/useragent");var n=r("../lib/net");var c=r("../ace");r("../theme/textmate");m.exports=a=c;var g=function(e,i,p){var j=e.style[p];if(!j){if(window.getComputedStyle){j=window.getComputedStyle(e,'').getPropertyValue(p);}else{j=e.currentStyle[p];}}if(!j||j=='auto'||j=='intrinsic'){j=i.style[p];}return j;};function d(e,i){for(var j in i){e.style[j]=i[j];}}function s(e,i){if(e.type!='textarea'){throw new Error("Textarea required!");}var p=e.parentNode;var j=document.createElement('div');var k=function(){var q='position:relative;';['margin-top','margin-left','margin-right','margin-bottom'].forEach(function(u){q+=u+':'+g(e,j,u)+';';});var w=g(e,j,'width')||(e.clientWidth+"px");var t=g(e,j,'height')||(e.clientHeight+"px");q+='height:'+t+';width:'+w+';';q+='display:inline-block;';j.setAttribute('style',q);};b.addListener(window,'resize',k);k();p.insertBefore(j,e.nextSibling);while(p!==document){if(p.tagName.toUpperCase()==='FORM'){var o=p.onsubmit;p.onsubmit=function(q){e.value=i();if(o){o.call(this,q);}};break;}p=p.parentNode;}return j;}a.transformTextarea=function(i,o){var j=i.autofocus||document.activeElement==i;var k;var p=s(i,function(){return k.getValue();});i.style.display='none';p.style.background='white';var q=document.createElement("div");d(q,{top:"0px",left:"0px",right:"0px",bottom:"0px",border:"1px solid gray",position:"absolute"});p.appendChild(q);var t=document.createElement("div");d(t,{position:"absolute",right:"0px",bottom:"0px",cursor:"nw-resize",border:"solid 9px",borderColor:"lightblue gray gray #ceade6",zIndex:101});var u=document.createElement("div");var v={top:"0px",left:"20%",right:"0px",bottom:"0px",position:"absolute",padding:"5px",zIndex:100,color:"white",display:"none",overflow:"auto",fontSize:"14px",boxShadow:"-5px 2px 3px gray"};if(!U.isOldIE){v.backgroundColor="rgba(0, 0, 0, 0.6)";}else{v.backgroundColor="#333";}d(u,v);p.appendChild(u);o=o||a.defaultOptions;var w=c.edit(q);k=w.getSession();k.setValue(i.value||i.innerHTML);if(j)w.focus();p.appendChild(t);f(w,q,u,c,o);h(u,t,w);var z="";b.addListener(t,"mousemove",function(e){var A=this.getBoundingClientRect();var x=e.clientX-A.left,y=e.clientY-A.top;if(x+y<(A.width+A.height)/2){this.style.cursor="pointer";z="toggle";}else{z="resize";this.style.cursor="nw-resize";}});b.addListener(t,"mousedown",function(e){e.preventDefault();if(z=="toggle"){w.setDisplaySettings();return;}p.style.zIndex=100000;var x=p.getBoundingClientRect();var y=x.width+x.left-e.clientX;var A=x.height+x.top-e.clientY;b.capture(t,function(e){p.style.width=e.clientX-x.left+y+"px";p.style.height=e.clientY-x.top+A+"px";w.resize();},function(){});});return w;};function l(u,m,e){n.loadScript(u,function(){r([m],e);});}function f(e,i,j,c,o){var k=e.getSession();var p=e.renderer;function t(v){return v==="true"||v==true;}e.setDisplaySettings=function(q){if(q==null)q=j.style.display=="none";if(q){j.style.display="block";j.hideButton.focus();e.on("focus",function u(){e.removeListener("focus",u);j.style.display="none";});}else{e.focus();}};e.$setOption=e.setOption;e.$getOption=e.getOption;e.setOption=function(q,v){switch(q){case"mode":e.$setOption("mode","ace/mode/"+v);break;case"theme":e.$setOption("theme","ace/theme/"+v);break;case"keybindings":switch(v){case"vim":e.setKeyboardHandler("ace/keyboard/vim");break;case"emacs":e.setKeyboardHandler("ace/keyboard/emacs");break;default:e.setKeyboardHandler(null);}break;case"wrap":case"fontSize":e.$setOption(q,v);break;default:e.$setOption(q,t(v));}};e.getOption=function(q){switch(q){case"mode":return e.$getOption("mode").substr("ace/mode/".length);break;case"theme":return e.$getOption("theme").substr("ace/theme/".length);break;case"keybindings":var v=e.getKeyboardHandler();switch(v&&v.$id){case"ace/keyboard/vim":return"vim";case"ace/keyboard/emacs":return"emacs";default:return"ace";}break;default:return e.$getOption(q);}};e.setOptions(o);return e;}function h(j,k,o){var B=null;var p={mode:"Mode:",wrap:"Soft Wrap:",theme:"Theme:",fontSize:"Font Size:",showGutter:"Display Gutter:",keybindings:"Keyboard",showPrintMargin:"Show Print Margin:",useSoftTabs:"Use Soft Tabs:",showInvisibles:"Show Invisibles"};var q={mode:{text:"Plain",javascript:"JavaScript",xml:"XML",html:"HTML",css:"CSS",scss:"SCSS",python:"Python",php:"PHP",java:"Java",ruby:"Ruby",c_cpp:"C/C++",coffee:"CoffeeScript",json:"json",perl:"Perl",clojure:"Clojure",ocaml:"OCaml",csharp:"C#",haxe:"haXe",svg:"SVG",textile:"Textile",groovy:"Groovy",liquid:"Liquid",Scala:"Scala"},theme:{clouds:"Clouds",clouds_midnight:"Clouds Midnight",cobalt:"Cobalt",crimson_editor:"Crimson Editor",dawn:"Dawn",gob:"Green on Black",eclipse:"Eclipse",idle_fingers:"Idle Fingers",kr_theme:"Kr Theme",merbivore:"Merbivore",merbivore_soft:"Merbivore Soft",mono_industrial:"Mono Industrial",monokai:"Monokai",pastel_on_dark:"Pastel On Dark",solarized_dark:"Solarized Dark",solarized_light:"Solarized Light",textmate:"Textmate",twilight:"Twilight",vibrant_ink:"Vibrant Ink"},showGutter:B,fontSize:{"10px":"10px","11px":"11px","12px":"12px","14px":"14px","16px":"16px"},wrap:{off:"Off",40:"40",80:"80",free:"Free"},keybindings:{ace:"ace",vim:"vim",emacs:"emacs"},showPrintMargin:B,useSoftTabs:B,showInvisibles:B};var t=[];t.push("<table><tr><th>Setting</th><th>Value</th></tr>");function u(e,v,C,D){if(!C){e.push("<input type='checkbox' title='",v,"' ",D+""=="true"?"checked='true'":"","'></input>");return;}e.push("<select title='"+v+"'>");for(var E in C){e.push("<option value='"+E+"' ");if(D==E){e.push(" selected ");}e.push(">",C[E],"</option>");}e.push("</select>");}for(var v in a.defaultOptions){t.push("<tr><td>",p[v],"</td>");t.push("<td>");u(t,v,q[v],o.getOption(v));t.push("</td></tr>");}t.push("</table>");j.innerHTML=t.join("");var w=function(e){var C=e.currentTarget;o.setOption(C.title,C.value);};var x=function(e){var C=e.currentTarget;o.setOption(C.title,C.checked);};var y=j.getElementsByTagName("select");for(var i=0;i<y.length;i++)y[i].onchange=w;var z=j.getElementsByTagName("input");for(var i=0;i<z.length;i++)z[i].onclick=x;var A=document.createElement("input");A.type="button";A.value="Hide";b.addListener(A,"click",function(){o.setDisplaySettings(false);});j.appendChild(A);j.hideButton=A;}a.defaultOptions={mode:"javascript",theme:"textmate",wrap:"off",fontSize:"12px",showGutter:"false",keybindings:"ace",showPrintMargin:"false",useSoftTabs:"true",showInvisibles:"false"};});(function(){ace.require(["ace/ext/textarea"],function(m){if(typeof module=="object"&&typeof exports=="object"&&module){module.exports=m;}});})();
  