wide/static/js/lib.min.js

63 lines
1.3 MiB
JavaScript
Raw Normal View History

2019-05-17 06:28:50 +03:00
/*
* Copyright (c) 2014-present, b3log.org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
2018-10-05 18:11:52 +03:00
!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(h,e){var t=[],c=t.slice,g=t.concat,a=t.push,i=t.indexOf,n={},r=n.toString,m=n.hasOwnProperty,v={},y=h.document,o="2.1.1",C=function(e,t){return new C.fn.init(e,t)},s=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,u=/^-ms-/,l=/-([\da-z])/gi,f=function(e,t){return t.toUpperCase()};function p(e){var t=e.length,n=C.type(e);return"function"!==n&&!C.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e))}C.fn=C.prototype={jquery:o,constructor:C,selector:"",length:0,toArray:function(){return c.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:c.call(this)},pushStack:function(e){var t=C.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return C.each(this,e,t)},map:function(n){return this.pushStack(C.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(c.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:a,sort:t.sort,splice:t.splice},C.extend=C.fn.extend=function(){var e,t,n,r,i,o,s=arguments[0]||{},a=1,u=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[a]||{},a++),"object"==typeof s||C.isFunction(s)||(s={}),a===u&&(s=this,a--);a<u;a++)if(null!=(e=arguments[a]))for(t in e)n=s[t],s!==(r=e[t])&&(l&&r&&(C.isPlainObject(r)||(i=C.isArray(r)))?(o=i?(i=!1,n&&C.isArray(n)?n:[]):n&&C.isPlainObject(n)?n:{},s[t]=C.extend(l,o,r)):void 0!==r&&(s[t]=r));return s},C.extend({expando:"jQuery"+(o+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===C.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!C.isArray(e)&&0<=e-parseFloat(e)},isPlainObject:function(e){return"object"===C.type(e)&&!e.nodeType&&!C.isWindow(e)&&!(e.constructor&&!m.call(e.constructor.prototype,"isPrototypeOf"))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[r.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;(e=C.trim(e))&&(1===e.indexOf("use strict")?((t=y.createElement("script")).text=e,y.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(u,"ms-").replace(l,f)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r=0,i=e.length,o=p(e);if(n){if(o)for(;r<i&&!1!==t.apply(e[r],n);r++);else for(r in e)if(!1===t.apply(e[r],n))break}else if(o)for(;r<i&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(s,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(p(Object(e))?C.merge(n,"string"==typeof e?[e]:e):a.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:i.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,s=!n;i<o;i++)!t(e[i],i)!==s&&r.push(e[i]);return r},map:function(e,t,n){var r,i=0,o=e.length,s=[];if(p(e))for(;i<o;i++)null!=(r=t(e[i],i,n))&&s.push(r);else for(i in e)null!=(r=t(e[i],i,n))&&s.push(r);return g.apply([],s)},guid:1,proxy:function(e,t){var n,r,i;return"string"==typeof t&&(n=e[t],t=e,e=n),C.isFunction(e)?(r=c.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(c.call(arguments)))}).guid=e.guid=e.guid||C.guid++,i):void 0},now:Date.now,support:v}),C.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var d=function
!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(P){function s(t,e){var i,s,n,o=t.nodeName.toLowerCase();return"area"===o?(s=(i=t.parentNode).name,!(!t.href||!s||"map"!==i.nodeName.toLowerCase())&&(!!(n=P("img[usemap='#"+s+"']")[0])&&a(n))):(/^(input|select|textarea|button|object)$/.test(o)?!t.disabled:"a"===o&&t.href||e)&&a(t)}function a(t){return P.expr.filters.visible(t)&&!P(t).parents().addBack().filter(function(){return"hidden"===P.css(this,"visibility")}).length}function t(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},P.extend(this._defaults,this.regional[""]),this.regional.en=P.extend(!0,{},this.regional[""]),this.regional["en-US"]=P.extend(!0,{},this.regional.en),this.dpDiv=i(P("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function i(t){var e="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.delegate(e,"mouseout",function(){P(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&P(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&P(this).removeClass("ui-datepicker-next-hover")}).delegate(e,"mouseover",o)}function o(){P.datepicker._isDisabledDatepicker(g.inline?g.dpDiv.parent()[0]:g.input[0])||(P(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),P(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&P(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&P(this).addClass("ui-datepicker-next-hover"))}function u(t,e){for(var i in P.extend(t,e),e)null==e[i]&&(t[i]=e[i]);return t}function e(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger("change")}}var n,r,h,l;P.ui=P.ui||{},P.extend(P.ui,{version:"1.11.4",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),P.fn.extend({scrollParent:function(t){var e=this.css("position"),i="absolute"===e,s=t?/(auto|scroll|hidden)/:/(auto|scroll)/,n=this.parents().filter(function(){var t=P(this);return(!i||"static"!==t.css("position"))&&s.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x")
!function($){var min=Math.min,max=Math.max,round=Math.floor,isStr=function(e){return"string"===$.type(e)},runPluginCallbacks=function(Instance,a_fn){if($.isArray(a_fn))for(var i=0,c=a_fn.length;i<c;i++){var fn=a_fn[i];try{isStr(fn)&&(fn=eval(fn)),$.isFunction(fn)&&g(fn)(Instance)}catch(e){}}function g(e){return e}},Ya,Za,$a,_a,ab,bb,cb,db,eb,fb;$.layout={version:"1.4.4",revision:1.0404,browser:{},effects:{slide:{all:{duration:"fast"},north:{direction:"up"},south:{direction:"down"},east:{direction:"right"},west:{direction:"left"}},drop:{all:{duration:"slow"},north:{direction:"up"},south:{direction:"down"},east:{direction:"right"},west:{direction:"left"}},scale:{all:{duration:"fast"}},blind:{},clip:{},explode:{},fade:{},fold:{},puff:{},size:{all:{easing:"swing"}}},config:{optionRootKeys:"effects,panes,north,south,west,east,center".split(","),allPanes:"north,south,west,east,center".split(","),borderPanes:"north,south,west,east".split(","),oppositeEdge:{north:"south",south:"north",east:"west",west:"east"},offscreenCSS:{left:"-99999px",right:"auto"},offscreenReset:"offscreenReset",hidden:{visibility:"hidden"},visible:{visibility:"visible"},resizers:{cssReq:{position:"absolute",padding:0,margin:0,fontSize:"1px",textAlign:"left",overflow:"hidden"},cssDemo:{background:"#DDD",border:"none"}},togglers:{cssReq:{position:"absolute",display:"flex",padding:0,margin:0,overflow:"hidden",textAlign:"center",fontSize:"1px",cursor:"pointer",zIndex:1},cssDemo:{background:"#AAA"}},content:{cssReq:{position:"relative"},cssDemo:{overflow:"auto",padding:"10px"},cssDemoPane:{overflow:"hidden",padding:0}},panes:{cssReq:{position:"absolute",margin:0},cssDemo:{padding:"10px",background:"#FFF",border:"1px solid #BBB",overflow:"auto"}},north:{side:"top",sizeType:"Height",dir:"horz",cssReq:{top:0,bottom:"auto",left:0,right:0,width:"auto"}},south:{side:"bottom",sizeType:"Height",dir:"horz",cssReq:{top:"auto",bottom:0,left:0,right:0,width:"auto"}},east:{side:"right",sizeType:"Width",dir:"vert",cssReq:{left:"auto",right:0,top:"auto",bottom:"auto",height:"auto"}},west:{side:"left",sizeType:"Width",dir:"vert",cssReq:{left:0,right:"auto",top:"auto",bottom:"auto",height:"auto"}},center:{dir:"center",cssReq:{left:"auto",right:"auto",top:"auto",bottom:"auto",height:"auto",width:"auto"}}},callbacks:{},getParentPaneElem:function(e){var t=$(e),i=t.data("layout")||t.data("parentLayout");if(i){var s=i.container;if(s.data("layoutPane"))return s;var n=s.closest("."+$.layout.defaults.panes.paneClass);if(n.data("layoutPane"))return n}return null},getParentPaneInstance:function(e){var t=$.layout.getParentPaneElem(e);return t?t.data("layoutPane"):null},getParentLayoutInstance:function(e){var t=$.layout.getParentPaneElem(e);return t?t.data("parentLayout"):null},getEventObject:function(e){return"object"==typeof e&&e.stopPropagation?e:null},parsePaneName:function(e){var t=$.layout.getEventObject(e),i=e;return t&&(t.stopPropagation(),i=$(this).data("layoutEdge")),i&&!/^(west|east|north|south|center)$/.test(i)&&($.layout.msg('LAYOUT ERROR - Invalid pane-name: "'+i+'"'),i="error"),i},plugins:{draggable:!!$.fn.draggable,effects:{core:!!$.effects,slide:$.effects&&($.effects.slide||$.effects.effect&&$.effects.effect.slide)}},onCreate:[],onLoad:[],onReady:[],onDestroy:[],onUnload:[],afterOpen:[],afterClose:[],scrollbarWidth:function(){return window.scrollbarWidth||$.layout.getScrollbarSize("width")},scrollbarHeight:function(){return window.scrollbarHeight||$.layout.getScrollbarSize("height")},getScrollbarSize:function(e){var t=$('<div style="position: absolute; top: -10000px; left: -10000px; width: 100px; height: 100px; border: 0; overflow: scroll;"></div>').appendTo("body"),i={width:t.outerWidth-t[0].clientWidth,height:100-t[0].clientHeight};return t.remove(),window.scrollbarWidth=i.width,window.scrollbarHeight=i.height,e.match(/^(width|height)$/)?i[e]:i},disableTextSelection:function(){var e=$(document),t="textSelectionDisabled",i="textSelectionInitialized";$.fn.disableSelection&&(e.data(i)||e.on("mouseup",$.layout.enableTextSelection).data(i,!0),e.data(t)||e.disableSelection().
!function(e,n){"function"==typeof define&&define.amd?define([],n):"undefined"!=typeof module&&module.exports?module.exports=n():e.ReconnectingWebSocket=n()}(this,function(){function d(c,i){i=i||[],this.debug=!1,this.reconnectInterval=1e3,this.reconnectDecay=1.5,this.reconnectAttempts=0,this.timeoutInterval=2e3;var s,u=this,l=!1,r=!1;this.url=c,this.protocols=i,this.readyState=WebSocket.CONNECTING,this.URL=c,this.onopen=function(e){},this.onclose=function(e){},this.onconnecting=function(e){},this.onmessage=function(e){},function n(o){s=new WebSocket(c,i),o||u.onconnecting(),(u.debug||d.debugAll)&&console.debug("ReconnectingWebSocket","attempt-connect",c);var e=s,t=setTimeout(function(){(u.debug||d.debugAll)&&console.debug("ReconnectingWebSocket","connection-timeout",c),r=!0,e.close(),r=!1},u.timeoutInterval);s.onopen=function(e){clearTimeout(t),(u.debug||d.debugAll)&&console.debug("ReconnectingWebSocket","onopen",c),u.readyState=WebSocket.OPEN,o=!1,u.reconnectAttempts=0,u.onopen(e)},s.onclose=function(e){clearTimeout(t),s=null,l?(u.readyState=WebSocket.CLOSED,u.onclose(e)):(u.readyState=WebSocket.CONNECTING,u.onconnecting(),o||r||((u.debug||d.debugAll)&&console.debug("ReconnectingWebSocket","onclose",c),u.onclose(e)),setTimeout(function(){u.reconnectAttempts++,n(!0)},u.reconnectInterval*Math.pow(u.reconnectDecay,u.reconnectAttempts)))},s.onmessage=function(e){(u.debug||d.debugAll)&&console.debug("ReconnectingWebSocket","onmessage",c,e.data),u.onmessage(e)},s.onerror=function(e){(u.debug||d.debugAll)&&console.debug("ReconnectingWebSocket","onerror",c,e),u.onerror(e)}}(!(this.onerror=function(e){})),this.send=function(e){if(s)return(u.debug||d.debugAll)&&console.debug("ReconnectingWebSocket","send",c,e),s.send(e);throw"INVALID_STATE_ERR : Pausing to reconnect websocket"},this.close=function(){l=!0,s&&s.close()},this.refresh=function(){s&&s.close()}}return d.debugAll=!1,d});
!function(t,e){"function"==typeof define&&define.amd?define([],function(){return t.returnExportsGlobal=e()}):"object"==typeof exports?module.exports=e():t.Autolinker=e()}(this,function(){var t,e,r,i,m=function(t){m.Util.assign(this,t),this.matchValidator=new m.MatchValidator};return m.prototype={constructor:m,urls:!0,email:!0,twitter:!0,newWindow:!0,stripPrefix:!0,className:"",htmlCharacterEntitiesRegex:/(&nbsp;|&#160;|&lt;|&#60;|&gt;|&#62;)/gi,matcherRegex:(r=/[A-Za-z0-9\.\-]*[A-Za-z0-9\-]/,i=/\.(?:international|construction|contractors|enterprises|photography|productions|foundation|immobilien|industries|management|properties|technology|christmas|community|directory|education|equipment|institute|marketing|solutions|vacations|bargains|boutique|builders|catering|cleaning|clothing|computer|democrat|diamonds|graphics|holdings|lighting|partners|plumbing|supplies|training|ventures|academy|careers|company|cruises|domains|exposed|flights|florist|gallery|guitars|holiday|kitchen|neustar|okinawa|recipes|rentals|reviews|shiksha|singles|support|systems|agency|berlin|camera|center|coffee|condos|dating|estate|events|expert|futbol|kaufen|luxury|maison|monash|museum|nagoya|photos|repair|report|social|supply|tattoo|tienda|travel|viajes|villas|vision|voting|voyage|actor|build|cards|cheap|codes|dance|email|glass|house|mango|ninja|parts|photo|shoes|solar|today|tokyo|tools|watch|works|aero|arpa|asia|best|bike|blue|buzz|camp|club|cool|coop|farm|fish|gift|guru|info|jobs|kiwi|kred|land|limo|link|menu|mobi|moda|name|pics|pink|post|qpon|rich|ruhr|sexy|tips|vote|voto|wang|wien|wiki|zone|bar|bid|biz|cab|cat|ceo|com|edu|gov|int|kim|mil|net|onl|org|pro|pub|red|tel|uno|wed|xxx|xyz|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw)\b/,new RegExp(["(",/(^|[^\w])@(\w{1,15})/.source,")","|","(",/(?:[\-;:&=\+\$,\w\.]+@)/.source,r.source,i.source,")","|","(","(?:","(",/(?:[A-Za-z][-.+A-Za-z0-9]+:(?![A-Za-z][-.+A-Za-z0-9]+:\/\/)(?!\d+\/?)(?:\/\/)?)/.source,r.source,")","|","(?:","(.?//)?",/(?:www\.)/.source,r.source,")","|","(?:","(.?//)?",r.source,i.source,")",")","(?:"+/[\-A-Za-z0-9+&@#\/%=~_()|'$*\[\]?!:,.;]*[\-A-Za-z0-9+&@#\/%=~_()|'$*\[\]]/.source+")?",")"].join(""),"gi")),charBeforeProtocolRelMatchRegex:/^(.)?\/\//,link:function(t){var a=this,e=this.getHtmlParser(),o=this.htmlCharacterEntitiesRegex,c=0,l=[];return e.parse(t,{processHtmlNode:function(t,e,r){"a"===e&&(r?c=Math.max(c-1,0):c++),l.push(t)},processTextNode:function(t){if(0===c)for(var e=m.Util.splitAndCapture(t,o),r=0,i=e.length;r<i;r++){var n=e[r],s=a.processTextNode(n);l.push(s)}else l.push(t)}}),l.join("")},getHtmlParser:function(){var t=this.htmlParser;return t||(t=this.htmlParser=new m.HtmlParser),t},getTagBuilder:function(){var t=this.tagBuilder;return t||(t=this.tagBuilder=new m.AnchorTagBuilder({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),t},processTextNode:function(t){var u=this;return t.replace(this.matcherRegex,function(t,e,r,i,n,s,a,o,c){var l=u.processCandidateMatch(t,e,r,i,n,s,a,o,c);if(l){var h=u.createMatchReturnVal(l.match,l.matchStr);return l.prefixStr+h+l.suffixStr}return t})},processCandidateMatch:function(t,e,r,i,n,s,a,o,c){var l,h=o||c,u="",g="";if(e&&!this.twitter||n&&!this.email||s&&!this.urls||!this.matchValidator.isValidMatch(s,a,h))return null;if(this.matchHasUnbalancedClosingParen(t)&&(t=t.substr(0,t.length-1),g=")"),n)l=new m.match.Email({matchedT
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.emmetCodeMirror=e()}}(function(){var define,module,exports;return function a(o,s,y){function l(n,e){if(!s[n]){if(!o[n]){var t="function"==typeof require&&require;if(!e&&t)return t(n,!0);if(c)return c(n,!0);var r=new Error("Cannot find module '"+n+"'");throw r.code="MODULE_NOT_FOUND",r}var i=s[n]={exports:{}};o[n][0].call(i.exports,function(e){var t=o[n][1][e];return l(t||e)},i,i.exports,a,o,s,y)}return s[n].exports}for(var c="function"==typeof require&&require,e=0;e<y.length;e++)l(y[e]);return l}({1:[function(e,t,n){"use strict";var r=function(){function r(e,t){for(var n in t){var r=t[n];r.configurable=!0,r.value&&(r.writable=!0)}Object.defineProperties(e,t)}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}();Object.defineProperty(n,"__esModule",{value:!0});var i,o=(i=e("./emmet"))&&i.__esModule?i.default:i;n.modeMap={"text/html":"html","application/xml":"xml","text/xsl":"xsl","text/css":"css","text/x-less":"less","text/x-scss":"scss","text/x-sass":"sass"};var a=function(){function n(e){var t=void 0===arguments[1]?0:arguments[1];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this.context=e,this.selectionIndex=t||0}var t,e;return r(n,{selectionList:{value:function(){var r=this.context;return r.listSelections().map(function(e){var t=s(r,e.anchor),n=s(r,e.head);return{start:Math.min(t,n),end:Math.max(t,n)}})}},getCaretPos:{value:function(){return this.getSelectionRange().start}},setCaretPos:{value:function(e){this.createSelection(e)}},getSelectionRange:{value:function(){return this.selectionList()[this.selectionIndex]}},createSelection:{value:function(e,t){void 0===t&&(t=e);var n=this.selectionList(),r=this.context;n[this.selectionIndex]={start:e,end:t},this.context.setSelections(n.map(function(e){return{head:y(r,e.start),anchor:y(r,e.end)}}))}},getSelection:{value:function(){var e=this.getSelectionRange();return e.start=y(this.context,e.start),e.end=y(this.context,e.end),this.context.getRange(e.start,e.end)}},getCurrentLineRange:{value:function(){var e=y(this.context,this.getCaretPos());return{start:s(this.context,e.line,0),end:s(this.context,e.line,this.context.getLine(e.line).length)}}},getCurrentLine:{value:function(){var e=y(this.context,this.getCaretPos());return this.context.getLine(e.line)||""}},replaceContent:{value:function(e,t,n,r){void 0===n&&(n=void 0===t?this.getContent().length:t),void 0===t&&(t=0),e=this.normalize(e),r||(e=o.utils.common.padString(e,o.utils.common.getLinePaddingFromPosition(this.getContent(),t)));var i=o.tabStops.extract(e,{escape:function(e){return e}});e=i.text;var a=i.tabstops[0]||{start:e.length,end:e.length};a.start+=t,a.end+=t,this.context.replaceRange(e,y(this.context,t),y(this.context,n)),this.createSelection(a.start,a.end)}},normalize:{value:function(e){var t="\t",n=this.context;return n.getOption("indentWithTabs")||(t=o.utils.common.repeatString(" ",n.getOption("indentUnit"))),o.utils.editor.normalize(e,{indentation:t})}},getContent:{value:function(){return this.context.getValue()}},getSyntax:{value:function(){var e=this.context,t=(e.posFromIndex(this.getCaretPos()),e.getModeAt(e.getCursor())),n=t.name;return"xml"===n&&t.configuration&&(n=t.configuration),n||o.utils.action.detectSyntax(this,n)}},getProfileName:{value:function(){return this.context.getOption("profile")?this.context.getOption("profile"):o.utils.action.detectProfile(this)}},prompt:{value:(t=function(e){return prompt(e)},e=function(e){return t.apply(this,arguments)},e.toString=function(){return t.toString()},e)},getFilePath:{value:function(){return location.href}},isValidSyntax:{value:function(){return o.resources.hasSyntax(this.getSyntax())}}}),n}();function s(e,t){return 2<arguments.length&&"object"!=typeof t&&(t={line:arguments[1],ch:arguments[2]}),e.indexFromPos(t)}function y(e,t){ret
!function(){var e,t,n,_,V={};function P(e,t){for(var n=0;n<t.length;n+=1)if(t[n]===e)return!0;return!1}function I(e){return e.replace(/^\s+|\s+$/g,"")}function r(e,t){"use strict";return new i(e,t).beautify()}e=V,t="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ--ℝℤΩℨK--ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA--zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",n=new RegExp("["+t+"]"),_=new RegExp("["+t+"̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‌‍‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍--_]"),e.newline=/[\n\r\u2028\u2029]/,e.isIdentifierStart=function(e){return e<65?36===e:e<91||(e<97?95===e:e<123||170<=e&&n.test(String.fromCharCode(e)))},e.isIdentifierChar=function(e){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||170<=e&&_.test(String.fromCharCode(e))))};var C={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function i(_,e){"use strict";var a,r,i,o,s
!function(){function E(t){return t.replace(/\s+$/g,"")}function s(t,e,i,n){var s,h,r,a,_,o,c,p,u,g,l;for(void 0!==(e=e||{}).wrap_line_length&&0!==parseInt(e.wrap_line_length,10)||void 0===e.max_char||0===parseInt(e.max_char,10)||(e.wrap_line_length=e.max_char),h=void 0!==e.indent_inner_html&&e.indent_inner_html,r=void 0===e.indent_size?4:parseInt(e.indent_size,10),a=void 0===e.indent_char?" ":e.indent_char,o=void 0===e.brace_style?"collapse":e.brace_style,_=0===parseInt(e.wrap_line_length,10)?32786:parseInt(e.wrap_line_length||250,10),c=e.unformatted||["a","span","img","bdo","em","strong","dfn","code","samp","kbd","var","cite","abbr","acronym","q","sub","sup","tt","i","b","big","small","u","s","strike","font","ins","del","pre","address","dt","h1","h2","h3","h4","h5","h6"],p=void 0===e.preserve_newlines||e.preserve_newlines,u=p?isNaN(parseInt(e.max_preserve_newlines,10))?32786:parseInt(e.max_preserve_newlines,10):0,g=void 0!==e.indent_handlebars&&e.indent_handlebars,l=void 0!==e.end_with_newline&&e.end_with_newline,(s=new function(){return this.pos=0,this.token="",this.current_mode="CONTENT",this.tags={parent:"parent1",parentcount:1,parent1:""},this.tag_type="",this.token_text=this.last_token=this.last_text=this.token_type="",this.newlines=0,this.indent_content=h,this.Utils={whitespace:"\n\r\t ".split(""),single_token:"br,input,link,meta,!doctype,basefont,base,area,hr,wbr,param,img,isindex,?xml,embed,?php,?,?=".split(","),extra_liners:"head,body,/html".split(","),in_array:function(t,e){for(var i=0;i<e.length;i++)if(t===e[i])return!0;return!1}},this.is_whitespace=function(t){for(;0<t.length;t++)if(!this.Utils.in_array(t.charAt(0),this.Utils.whitespace))return!1;return!0},this.traverse_whitespace=function(){var t="";if(t=this.input.charAt(this.pos),this.Utils.in_array(t,this.Utils.whitespace)){for(this.newlines=0;this.Utils.in_array(t,this.Utils.whitespace);)p&&"\n"===t&&this.newlines<=u&&(this.newlines+=1),this.pos++,t=this.input.charAt(this.pos);return!0}return!1},this.space_or_wrap=function(t){this.line_char_count>=this.wrap_line_length?(this.print_newline(!1,t),this.print_indentation(t)):(this.line_char_count++,t.push(" "))},this.get_content=function(){for(var t="",e=[];"<"!==this.input.charAt(this.pos);){if(this.pos>=this.input.length)return e.length?e.join(""):["","TK_EOF"];if(this.traverse_whitespace())this.space_or_wrap(e);else{if(g){var i=this.input.substr(this.pos,3);if("{{#"===i||"{{/"===i)break;if("{{"===this.input.substr(this.pos,2)&&"{{else}}"===this.get_tag(!0))break}t=this.input.charAt(this.pos),this.pos++,this.line_char_count++,e.push(t)}}return e.length?e.join(""):""},this.get_contents_to=function(t){if(this.pos===this.input.length)return["","TK_EOF"];var e="",i=new RegExp("</"+t+"\\s*>","igm");i.lastIndex=this.pos;var n=i.exec(this.input),s=n?n.index:this.input.length;return this.pos<s&&(e=this.input.substring(this.pos,s),this.pos=s),e},this.record_tag=function(t){this.tags[t+"count"]?this.tags[t+"count"]++:this.tags[t+"count"]=1,this.tags[t+this.tags[t+"count"]]=this.indent_level,this.tags[t+this.tags[t+"count"]+"parent"]=this.tags.parent,this.tags.parent=t+this.tags[t+"count"]},this.retrieve_tag=function(t){if(this.tags[t+"count"]){for(var e=this.tags.parent;e&&t+this.tags[t+"count"]!==e;)e=this.tags[e+"parent"];e&&(this.indent_level=this.tags[t+this.tags[t+"count"]],this.tags.parent=this.tags[e+"parent"]),delete this.tags[t+this.tags[t+"count"]+"parent"],delete this.tags[t+this.tags[t+"count"]],1===this.tags[t+"count"]?delete this.tags[t+"count"]:this.tags[t+"count"]--}},this.indent_to_tag=function(t){if(this.tags[t+"count"]){for(var e=this.tags.parent;e&&t+this.tags[t+"count"]!==e;)e=this.tags[e+"parent"];e&&(this.indent_level=this.tags[t+this.tags[t+"count"]])}},this.get_tag=function(t){var e,i,n="",s=[],h="",r=!1,a=this.pos,_=this.line_char_count;t=void 0!==t&&t;do{if(this.pos>=this.input.length)return t&&(this.pos=a,this.line_char_count=_),s.length?s.join(""):["","TK_EOF"];if(n=this.input.charAt(this.pos),this.pos++,this.Utils.in_array(n,this.Utils.whitespace))r=!0;else{if("'"!==n&&'"'!==n||(n+=th
!function(){function $(i,e){var n=(e=e||{}).indent_size||4,t=e.indent_char||" ",r=void 0===e.selector_separator_newline||e.selector_separator_newline,s=void 0!==e.end_with_newline&&e.end_with_newline;"string"==typeof n&&(n=parseInt(n,10));var u,a=/^\s+$/,f=-1;function p(){return(u=i.charAt(++f))||""}function o(e){var n=f;return e&&l(),result=i.charAt(f+1)||"",f=n-1,p(),result}function c(e){for(var n=f;p();)if("\\"===u)p();else{if(-1!==e.indexOf(u))break;if("\n"===u)break}return i.substring(n,f+1)}function l(){for(var e="";a.test(o());)p(),e+=u;return e}function h(){var e="";for(u&&a.test(u)&&(e=u);a.test(p());)e+=u;return e}function d(e){var n=f;e="/"===o();for(p();p();){if(!e&&"*"===u&&"/"===o()){p();break}if(e&&"\n"===u)return i.substring(n,f)}return i.substring(n,f)+u}function g(e){return i.substring(f-e.length,f).toLowerCase()===e}function _(){for(var e=f+1;e<i.length;e++){var n=i.charAt(e);if("{"===n)return!0;if(";"===n||"}"===n||")"===n)return!1}return!1}var w=i.match(/^[\t ]*/)[0],v=new Array(n+1).join(t),L=0,b=0;var S={"{":function(e){S.singleSpace(),y.push(e),S.newLine()},"}":function(e){S.newLine(),y.push(e),S.newLine()},_lastCharWhitespace:function(){return a.test(y[y.length-1])},newLine:function(e){e||S.trim(),y.length&&y.push("\n"),w&&y.push(w)},singleSpace:function(){y.length&&!S._lastCharWhitespace()&&y.push(" ")},trim:function(){for(;S._lastCharWhitespace();)y.pop()}},y=[];w&&y.push(w);for(var m,O,A,E=!1,C=!1,N="",R="";;){var T=h(),U=""!==T,k=-1!==T.indexOf("\n");R=N,N=u;if(!u)break;if("/"===u&&"*"===o()){var x=g("");S.newLine(),y.push(d()),S.newLine(),x&&S.newLine(!0)}else if("/"===u&&"/"===o())k||"{"===R||S.trim(),S.singleSpace(),y.push(d()),S.newLine();else if("@"===u){U&&S.singleSpace(),y.push(u);var I=(m=": ,;{}()[]/='\"",void 0,void 0,O=f,A=c(m),f=O-1,p(),A).replace(/\s$/,"");I in $.NESTED_AT_RULE?(b+=1,I in $.CONDITIONAL_GROUP_RULE&&(C=!0)):0<=": ".indexOf(I[I.length-1])&&(p(),I=c(": ").replace(/\s$/,""),y.push(I),S.singleSpace())}else"{"===u?"}"===o(!0)?(l(),p(),S.singleSpace(),y.push("{}")):(L++,w+=v,S["{"](u),E=C?(C=!1,b<L):b<=L):"}"===u?(L--,w=w.slice(0,-n),S["}"](u),E=!1,b&&b--):":"===u?(l(),!E&&!C||g("&")||_()?":"===o()?(p(),y.push("::")):y.push(":"):(y.push(":"),S.singleSpace())):'"'===u||"'"===u?(U&&S.singleSpace(),y.push(c(u))):";"===u?(y.push(u),S.newLine()):"("===u?g("url")?(y.push(u),l(),p()&&(")"!==u&&'"'!==u&&"'"!==u?y.push(c(")")):f--)):(U&&S.singleSpace(),y.push(u),l()):")"===u?y.push(u):","===u?(y.push(u),l(),!E&&r?S.newLine():S.singleSpace()):("]"===u||("["===u?U&&S.singleSpace():"="===u?l():U&&S.singleSpace()),y.push(u))}var D=y.join("").replace(/[\r\n\t ]+$/,"");return s&&(D+="\n"),D}$.NESTED_AT_RULE={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},$.CONDITIONAL_GROUP_RULE={"@media":!0,"@supports":!0,"@document":!0},"function"==typeof define&&define.amd?define([],function(){return{css_beautify:$}}):"undefined"!=typeof exports?exports.css_beautify=$:"undefined"!=typeof window?window.css_beautify=$:"undefined"!=typeof global&&(global.css_beautify=$)}();
!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(h){var s,i=0,a=Array.prototype.slice;h.cleanData=(s=h.cleanData,function(t){var e,i,n;for(n=0;null!=(i=t[n]);n++)try{(e=h._data(i,"events"))&&e.remove&&h(i).triggerHandler("remove")}catch(t){}s(t)}),h.widget=function(t,i,e){var n,s,o,r,a={},u=t.split(".")[0];return t=t.split(".")[1],n=u+"-"+t,e||(e=i,i=h.Widget),h.expr[":"][n.toLowerCase()]=function(t){return!!h.data(t,n)},h[u]=h[u]||{},s=h[u][t],o=h[u][t]=function(t,e){if(!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},h.extend(o,s,{version:e.version,_proto:h.extend({},e),_childConstructors:[]}),(r=new i).options=h.widget.extend({},r.options),h.each(e,function(e,n){var s,o;h.isFunction(n)?a[e]=(s=function(){return i.prototype[e].apply(this,arguments)},o=function(t){return i.prototype[e].apply(this,t)},function(){var t,e=this._super,i=this._superApply;return this._super=s,this._superApply=o,t=n.apply(this,arguments),this._super=e,this._superApply=i,t}):a[e]=n}),o.prototype=h.widget.extend(r,{widgetEventPrefix:s&&r.widgetEventPrefix||t},a,{constructor:o,namespace:u,widgetName:t,widgetFullName:n}),s?(h.each(s._childConstructors,function(t,e){var i=e.prototype;h.widget(i.namespace+"."+i.widgetName,o,e._proto)}),delete s._childConstructors):i._childConstructors.push(o),h.widget.bridge(t,o),o},h.widget.extend=function(t){for(var e,i,n=a.call(arguments,1),s=0,o=n.length;s<o;s++)for(e in n[s])i=n[s][e],n[s].hasOwnProperty(e)&&void 0!==i&&(h.isPlainObject(i)?t[e]=h.isPlainObject(t[e])?h.widget.extend({},t[e],i):h.widget.extend({},i):t[e]=i);return t},h.widget.bridge=function(o,e){var r=e.prototype.widgetFullName||o;h.fn[o]=function(i){var t="string"==typeof i,n=a.call(arguments,1),s=this;return i=!t&&n.length?h.widget.extend.apply(null,[i].concat(n)):i,t?this.each(function(){var t,e=h.data(this,r);return"instance"===i?(s=e,!1):e?h.isFunction(e[i])&&"_"!==i.charAt(0)?(t=e[i].apply(e,n))!==e&&void 0!==t?(s=t&&t.jquery?s.pushStack(t.get()):t,!1):void 0:h.error("no such method '"+i+"' for "+o+" widget instance"):h.error("cannot call methods on "+o+" prior to initialization; attempted to call method '"+i+"'")}):this.each(function(){var t=h.data(this,r);t?(t.option(i||{}),t._init&&t._init()):h.data(this,r,new e(i,this))}),s}},h.Widget=function(){},h.Widget._childConstructors=[],h.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(t,e){e=h(e||this.defaultElement||this)[0],this.element=h(e),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=h.widget.extend({},this.options,this._getCreateOptions(),t),this.bindings=h(),this.hoverable=h(),this.focusable=h(),e!==this&&(h.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=h(e.style?e.ownerDocument:e.document||e),this.window=h(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:h.noop,_getCreateEventData:h.noop,_create:h.noop,_init:h.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(h.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:h.noop,widget:function(){return this.element},option:function(t,e){var i,n,s,o=t;if(0===arguments.length)return h.widget.extend({},this.options);if("string"==typeof t)if(o={},t=(i=t.split(".")).shift(),i.length){for(n=o[t]=h.widget.extend({},this.options[t]),s=0;s<i.length-1;s++)n[i[s]]=n[i[s]]||{},n=n[i[s]];if(t=i.pop(),1===arguments.length)return void 0===n[t]?null:n[t];n[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];o[t]=e}retu
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e(window.jQuery)}(function(m){"use strict";var n=0;m.ajaxTransport("iframe",function(a){if(a.async){var o,i,t,p=a.initialIframeSrc||"javascript:false;";return{send:function(e,r){(o=m('<form style="display:none;"></form>')).attr("accept-charset",a.formAcceptCharset),t=/\?/.test(a.url)?"&":"?","DELETE"===a.type?(a.url=a.url+t+"_method=DELETE",a.type="POST"):"PUT"===a.type?(a.url=a.url+t+"_method=PUT",a.type="POST"):"PATCH"===a.type&&(a.url=a.url+t+"_method=PATCH",a.type="POST"),i=m('<iframe src="'+p+'" name="iframe-transport-'+(n+=1)+'"></iframe>').bind("load",function(){var n,t=m.isArray(a.paramName)?a.paramName:[a.paramName];i.unbind("load").bind("load",function(){var t;try{if(!(t=i.contents()).length||!t[0].firstChild)throw new Error}catch(e){t=void 0}r(200,"success",{iframe:t}),m('<iframe src="'+p+'"></iframe>').appendTo(o),window.setTimeout(function(){o.remove()},0)}),o.prop("target",i.prop("name")).prop("action",a.url).prop("method",a.type),a.formData&&m.each(a.formData,function(e,t){m('<input type="hidden"/>').prop("name",t.name).val(t.value).appendTo(o)}),a.fileInput&&a.fileInput.length&&"POST"===a.type&&(n=a.fileInput.clone(),a.fileInput.after(function(e){return n[e]}),a.paramName&&a.fileInput.each(function(e){m(this).prop("name",t[e]||a.paramName)}),o.append(a.fileInput).prop("enctype","multipart/form-data").prop("encoding","multipart/form-data"),a.fileInput.removeAttr("form")),o.submit(),n&&n.length&&a.fileInput.each(function(e,t){var r=m(n[e]);m(t).prop("name",r.prop("name")).attr("form",r.attr("form")),r.replaceWith(t)})}),o.append(i).appendTo(document.body)},abort:function(){i&&i.unbind("load").prop("src",p),o&&o.remove()}}}}),m.ajaxSetup({converters:{"iframe text":function(e){return e&&m(e[0].body).text()},"iframe json":function(e){return e&&m.parseJSON(m(e[0].body).text())},"iframe html":function(e){return e&&m(e[0].body).html()},"iframe xml":function(e){var t=e&&e[0];return t&&m.isXMLDoc(t)?t:m.parseXML(t.XMLDocument&&t.XMLDocument.xml||m(t.body).html())},"iframe script":function(e){return e&&m.globalEval(m(e[0].body).text())}}})});
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","jquery.ui.widget"],e):e(window.jQuery)}(function(m){"use strict";function e(i){var r="dragover"===i;return function(e){e.dataTransfer=e.originalEvent&&e.originalEvent.dataTransfer;var t=e.dataTransfer;t&&-1!==m.inArray("Files",t.types)&&!1!==this._trigger(i,m.Event(i,{delegatedEvent:e}))&&(e.preventDefault(),r&&(t.dropEffect="copy"))}}m.support.fileInput=!(new RegExp("(Android (1\\.[0156]|2\\.[01]))|(Windows Phone (OS 7|8\\.0))|(XBLWP)|(ZuneWP)|(WPDesktop)|(w(eb)?OSBrowser)|(webOS)|(Kindle/(1\\.0|2\\.[05]|3\\.0))").test(window.navigator.userAgent)||m('<input type="file">').prop("disabled")),m.support.xhrFileUpload=!(!window.ProgressEvent||!window.FileReader),m.support.xhrFormDataFileUpload=!!window.FormData,m.support.blobSlice=window.Blob&&(Blob.prototype.slice||Blob.prototype.webkitSlice||Blob.prototype.mozSlice),m.widget("blueimp.fileupload",{options:{dropZone:m(document),pasteZone:void 0,fileInput:void 0,replaceFileInput:!0,paramName:void 0,singleFileUploads:!0,limitMultiFileUploads:void 0,limitMultiFileUploadSize:void 0,limitMultiFileUploadSizeOverhead:512,sequentialUploads:!1,limitConcurrentUploads:void 0,forceIframeTransport:!1,redirect:void 0,redirectParamName:void 0,postMessage:void 0,multipart:!0,maxChunkSize:void 0,uploadedBytes:void 0,recalculateProgress:!0,progressInterval:100,bitrateInterval:500,autoUpload:!0,messages:{uploadedBytes:"Uploaded bytes exceed file size"},i18n:function(i,e){return i=this.messages[i]||i.toString(),e&&m.each(e,function(e,t){i=i.replace("{"+e+"}",t)}),i},formData:function(e){return e.serializeArray()},add:function(e,t){if(e.isDefaultPrevented())return!1;(t.autoUpload||!1!==t.autoUpload&&m(this).fileupload("option","autoUpload"))&&t.process().done(function(){t.submit()})},processData:!1,contentType:!1,cache:!1},_specialOptions:["fileInput","dropZone","pasteZone","multipart","forceIframeTransport"],_blobSlice:m.support.blobSlice&&function(){return(this.slice||this.webkitSlice||this.mozSlice).apply(this,arguments)},_BitrateTimer:function(){this.timestamp=Date.now?Date.now():(new Date).getTime(),this.loaded=0,this.bitrate=0,this.getBitrate=function(e,t,i){var r=e-this.timestamp;return(!this.bitrate||!i||i<r)&&(this.bitrate=(t-this.loaded)*(1e3/r)*8,this.loaded=t,this.timestamp=e),this.bitrate}},_isXHRUpload:function(e){return!e.forceIframeTransport&&(!e.multipart&&m.support.xhrFileUpload||m.support.xhrFormDataFileUpload)},_getFormData:function(e){var i;return"function"===m.type(e.formData)?e.formData(e.form):m.isArray(e.formData)?e.formData:"object"===m.type(e.formData)?(i=[],m.each(e.formData,function(e,t){i.push({name:e,value:t})}),i):[]},_getTotal:function(e){var i=0;return m.each(e,function(e,t){i+=t.size||1}),i},_initProgressObject:function(e){var t={loaded:0,total:0,bitrate:0};e._progress?m.extend(e._progress,t):e._progress=t},_initResponseObject:function(e){var t;if(e._response)for(t in e._response)e._response.hasOwnProperty(t)&&delete e._response[t];else e._response={}},_onProgress:function(e,t){if(e.lengthComputable){var i,r=Date.now?Date.now():(new Date).getTime();if(t._time&&t.progressInterval&&r-t._time<t.progressInterval&&e.loaded!==e.total)return;t._time=r,i=Math.floor(e.loaded/e.total*(t.chunkSize||t._progress.total))+(t.uploadedBytes||0),this._progress.loaded+=i-t._progress.loaded,this._progress.bitrate=this._bitrateTimer.getBitrate(r,this._progress.loaded,t.bitrateInterval),t._progress.loaded=t.loaded=i,t._progress.bitrate=t.bitrate=t._bitrateTimer.getBitrate(r,i,t.bitrateInterval),this._trigger("progress",m.Event("progress",{delegatedEvent:e}),t),this._trigger("progressall",m.Event("progressall",{delegatedEvent:e}),this._progress)}},_initProgressListener:function(i){var r=this,e=i.xhr?i.xhr():m.ajaxSettings.xhr();e.upload&&(m(e.upload).bind("progress",function(e){var t=e.originalEvent;e.lengthComputable=t.lengthComputable,e.loaded=t.loaded,e.total=t.total,r._onProgress(e,i)}),i.xhr=function(){return e})},_isInstanceOf:function(e,t){return Object.prototype.toString.call(t)==="[object "+e+
!function(e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else{if("function"==typeof define&&define.amd)return define([],e);this.CodeMirror=e()}}(function(){var d=/gecko\/\d/i.test(navigator.userAgent),e=/MSIE \d/.test(navigator.userAgent),t=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),w=e||t,x=w&&(e?document.documentMode||6:t[1]),p=/WebKit\//.test(navigator.userAgent),r=p&&/Qt\/\d+\.\d+/.test(navigator.userAgent),n=/Chrome\//.test(navigator.userAgent),g=/Opera\//.test(navigator.userAgent),a=/Apple Computer/.test(navigator.vendor),i=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(navigator.userAgent),u=/PhantomJS/.test(navigator.userAgent),l=/AppleWebKit/.test(navigator.userAgent)&&/Mobile\/\w+/.test(navigator.userAgent),c=l||/Android|webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(navigator.userAgent),v=l||/Mac/.test(navigator.platform),o=/win/i.test(navigator.platform),s=g&&navigator.userAgent.match(/Version\/(\d*\.\d*)/);s&&(s=Number(s[1])),s&&15<=s&&(p=!(g=!1));var f=v&&(r||g&&(null==s||s<12.11)),h=d||w&&9<=x,m=!1,y=!1;function b(e,t){if(!(this instanceof b))return new b(e,t);this.options=t=t?uo(t):{},uo(Vr,t,!1),H(t);var r=t.value;"string"==typeof r&&(r=new si(r,t.mode)),this.doc=r;var n=new b.inputStyles[t.inputStyle](this),i=this.display=new C(e,r,n);A(i.wrapper.CodeMirror=this),M(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),t.autofocus&&!c&&i.input.focus(),z(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,draggingText:!1,highlight:new Qi,keySeq:null,specialChars:null};var o=this;for(var l in w&&x<11&&setTimeout(function(){o.display.input.reset(!0)},20),function(i){var o=i.display;zi(o.scroller,"mousedown",Gt(i,tr)),zi(o.scroller,"dblclick",w&&x<11?Gt(i,function(e){if(!Vi(i,e)){var t=er(i,e);if(t&&!nr(i,e)&&!Jt(i.display,e)){Oi(e);var r=i.findWordAt(t);Ee(i.doc,r.anchor,r.head)}}}):function(e){Vi(i,e)||Oi(e)});h||zi(o.scroller,"contextmenu",function(e){Cr(i,e)});var r,n={end:0};function l(){o.activeTouch&&(r=setTimeout(function(){o.activeTouch=null},1e3),(n=o.activeTouch).end=+new Date)}function s(e,t){if(null==t.left)return!0;var r=t.left-e.left,n=t.top-e.top;return 400<r*r+n*n}function e(e){Vi(i,e)||Pi(e)}zi(o.scroller,"touchstart",function(e){if(!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(e)){clearTimeout(r);var t=+new Date;o.activeTouch={start:t,moved:!1,prev:t-n.end<=300?n:null},1==e.touches.length&&(o.activeTouch.left=e.touches[0].pageX,o.activeTouch.top=e.touches[0].pageY)}}),zi(o.scroller,"touchmove",function(){o.activeTouch&&(o.activeTouch.moved=!0)}),zi(o.scroller,"touchend",function(e){var t=o.activeTouch;if(t&&!Jt(o,e)&&null!=t.left&&!t.moved&&new Date-t.start<300){var r,n=i.coordsChar(o.activeTouch,"page");r=!t.prev||s(t,t.prev)?new Ae(n,n):!t.prev.prev||s(t,t.prev.prev)?i.findWordAt(n):new Ae(ce(n.line,0),He(i.doc,ce(n.line+1,0))),i.setSelection(r.anchor,r.head),i.focus(),Oi(e)}l()}),zi(o.scroller,"touchcancel",l),zi(o.scroller,"scroll",function(){o.scroller.clientHeight&&(lr(i,o.scroller.scrollTop),sr(i,o.scroller.scrollLeft,!0),Ri(i,"scroll",i))}),zi(o.scroller,"mousewheel",function(e){fr(i,e)}),zi(o.scroller,"DOMMouseScroll",function(e){fr(i,e)}),zi(o.wrapper,"scroll",function(){o.wrapper.scrollTop=o.wrapper.scrollLeft=0}),i.options.dragDrop&&(zi(o.scroller,"dragstart",function(e){!function(e,t){if(w&&(!e.state.draggingText||+new Date-ir<100))return Pi(t);if(Vi(e,t)||Jt(e.display,t))return;if(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.setDragImage&&!a){var r=bo("img",null,null,"position: fixed; left: 0; top: 0;");r.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",g&&(r.width=r.height=1,e.display.wrapper.appendChild(r),r._top=r.offsetTop),t.dataTransfer.setDragImage(r,0,0),g&&r.parentNode.removeChild(r)}}(i,e)}),zi(o.scroller,"dragenter",e),zi(o.scroller,"dragover",e),zi(o.scroller,"drop",Gt(i,or)));var t=o.input.getField();z
!function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)}(function(s){"use strict";var p="CodeMirror-lint-markers";function a(t){t.parentNode&&t.parentNode.removeChild(t)}function f(t,e,n){var o=function(t,e){var n=document.createElement("div");function o(t){if(!n.parentNode)return s.off(document,"mousemove",o);n.style.top=Math.max(0,t.clientY-n.offsetHeight-5)+"px",n.style.left=t.clientX+5+"px"}return n.className="CodeMirror-lint-tooltip",n.appendChild(e.cloneNode(!0)),document.body.appendChild(n),s.on(document,"mousemove",o),o(t),null!=n.style.opacity&&(n.style.opacity=1),n}(t,e);function r(){var t;s.off(n,"mouseout",r),o&&((t=o).parentNode&&(null==t.style.opacity&&a(t),t.style.opacity=0,setTimeout(function(){a(t)},600)),o=null)}var i=setInterval(function(){if(o)for(var t=n;;t=t.parentNode){if(t&&11==t.nodeType&&(t=t.host),t==document.body)return;if(!t){r();break}}if(!o)return clearInterval(i)},400);s.on(n,"mouseout",r)}function l(e,t,n){this.marked=[],this.options=t,this.timeout=null,this.hasGutter=n,this.onMouseOver=function(t){!function(t,e){var n=e.target||e.srcElement;if(!/\bCodeMirror-lint-mark-/.test(n.className))return;for(var o=n.getBoundingClientRect(),r=(o.left+o.right)/2,i=(o.top+o.bottom)/2,a=t.findMarksAt(t.coordsChar({left:r,top:i},"client")),s=0;s<a.length;++s){var l=a[s].__annotation;if(l)return u=l,void 0,m=(c=e).target||c.srcElement,f(c,h(u),m)}var u,c,m}(e,t)}}function v(t){var e=t.state.lint;e.hasGutter&&t.clearGutter(p);for(var n=0;n<e.marked.length;++n)e.marked[n].clear();e.marked.length=0}function g(e,t,n,o){var r=document.createElement("div"),i=r;return r.className="CodeMirror-lint-marker-"+t,n&&((i=r.appendChild(document.createElement("div"))).className="CodeMirror-lint-marker-multiple"),0!=o&&s.on(i,"mouseover",function(t){f(t,e,i)}),r}function h(t){var e=t.severity;e||(e="error");var n=document.createElement("div");return n.className="CodeMirror-lint-message-"+e,n.appendChild(document.createTextNode(t.message)),n}function u(t){var e=t.state.lint.options,n=e.options||e;e.async||e.getAnnotations.async?e.getAnnotations(t.getValue(),o,n,t):o(t,e.getAnnotations(t.getValue(),n,t))}function o(t,e){v(t);for(var n,o,r=t.state.lint,i=r.options,a=function(t){for(var e=[],n=0;n<t.length;++n){var o=t[n],r=o.from.line;(e[r]||(e[r]=[])).push(o)}return e}(e),s=0;s<a.length;++s){var l=a[s];if(l){for(var u=null,c=r.hasGutter&&document.createDocumentFragment(),m=0;m<l.length;++m){var f=l[m],d=f.severity;d||(d="error"),o=d,u="error"==(n=u)?n:o,i.formatAnnotation&&(f=i.formatAnnotation(f)),r.hasGutter&&c.appendChild(h(f)),f.to&&r.marked.push(t.markText(f.from,f.to,{className:"CodeMirror-lint-mark-"+d,__annotation:f}))}r.hasGutter&&t.setGutterMarker(s,p,g(c,u,1<l.length,r.options.tooltips))}}i.onUpdateLinting&&i.onUpdateLinting(e,a,t)}function c(t){var e=t.state.lint;e&&(clearTimeout(e.timeout),e.timeout=setTimeout(function(){u(t)},e.options.delay||500))}s.defineOption("lint",!1,function(t,e,n){if(n&&n!=s.Init&&(v(t),t.off("change",c),s.off(t.getWrapperElement(),"mouseover",t.state.lint.onMouseOver),clearTimeout(t.state.lint.timeout),delete t.state.lint),e){for(var o=t.getOption("gutters"),r=!1,i=0;i<o.length;++i)o[i]==p&&(r=!0);var a=t.state.lint=new l(t,function(t,e){if(e instanceof Function)return{getAnnotations:e};if(e&&!0!==e||(e={}),e.getAnnotations||(e.getAnnotations=t.getHelper(s.Pos(0,0),"lint")),!e.getAnnotations)throw new Error("Required option 'getAnnotations' missing (lint addon)");return e}(t,e),r);t.on("change",c),0!=a.options.tooltips&&s.on(t.getWrapperElement(),"mouseover",a.onMouseOver),u(t)}})});
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(n){"use strict";n.registerHelper("lint","json",function(e){var t=[];jsonlint.parseError=function(e,o){var r=o.loc;t.push({from:n.Pos(r.first_line-1,r.first_column),to:n.Pos(r.last_line-1,r.last_column),message:e})};try{jsonlint.parse(e)}catch(e){}return t})});
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(r){"use strict";var a="CodeMirror-activeline",s="CodeMirror-activeline-background";function c(e){for(var t=0;t<e.state.activeLines.length;t++)e.removeLineClass(e.state.activeLines[t],"wrap",a),e.removeLineClass(e.state.activeLines[t],"background",s)}function o(t,e){for(var n=[],i=0;i<e.length;i++){var r=e[i];if(r.empty()){var o=t.getLineHandleVisualStart(r.head.line);n[n.length-1]!=o&&n.push(o)}}(function(e,t){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0})(t.state.activeLines,n)||t.operation(function(){c(t);for(var e=0;e<n.length;e++)t.addLineClass(n[e],"wrap",a),t.addLineClass(n[e],"background",s);t.state.activeLines=n})}function f(e,t){o(e,t.ranges)}r.defineOption("styleActiveLine",!1,function(e,t,n){var i=n&&n!=r.Init;t&&!i?(e.state.activeLines=[],o(e,e.listSelections()),e.on("beforeSelectionChange",f)):!t&&i&&(e.off("beforeSelectionChange",f),c(e),delete e.state.activeLines)})});
!function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)}(function(b){"use strict";var k="CodeMirror-hint",A="CodeMirror-hint-active";function n(t,e){this.cm=t,this.options=this.buildOptions(e),this.widget=this.onClose=null}function x(t){return"string"==typeof t?t:t.text}function T(t,e){for(;e&&e!=t;){if("LI"===e.nodeName.toUpperCase()&&e.parentNode==t)return e;e=e.parentNode}}function p(o,t){this.completion=o,this.data=t;var i=this,s=o.cm,c=this.hints=document.createElement("ul");c.className="CodeMirror-hints",this.selectedHint=t.selectedHint||0;for(var e=t.list,n=0;n<e.length;++n){var l=c.appendChild(document.createElement("li")),r=e[n],h=k+(n!=this.selectedHint?"":" "+A);null!=r.className&&(h=r.className+" "+h),l.className=h,r.render?r.render(l,t,r):l.appendChild($(r.displayText||x(r))[0]),l.hintId=n}var f=s.cursorCoords(o.options.alignWithWord?t.from:null),a=f.left,u=f.bottom,p=!0;c.style.left=a+"px",c.style.top=u+"px";var d=window.innerWidth||Math.max(document.body.offsetWidth,document.documentElement.offsetWidth),m=window.innerHeight||Math.max(document.body.offsetHeight,document.documentElement.offsetHeight);(o.options.container||document.body).appendChild(c);var g=c.getBoundingClientRect();if(0<g.bottom-m){var v=g.bottom-g.top;if(0<f.top-(f.bottom-g.top)-v)c.style.top=(u=f.top-v)+"px",p=!1;else if(m<v){c.style.height=m-5+"px",c.style.top=(u=f.bottom-g.top)+"px";var w=s.getCursor();t.from.ch!=w.ch&&(f=s.cursorCoords(w),c.style.left=(a=f.left)+"px",g=c.getBoundingClientRect())}}var y,C=g.left-d;(0<C&&(g.right-g.left>d&&(c.style.width=d-5+"px",C-=g.right-g.left-d),c.style.left=(a=f.left-C)+"px"),s.addKeyMap(this.keyMap=function(t,n){var o={Up:function(){n.moveFocus(-1)},Down:function(){n.moveFocus(1)},PageUp:function(){n.moveFocus(1-n.menuSize(),!0)},PageDown:function(){n.moveFocus(n.menuSize()-1,!0)},Home:function(){n.setFocus(0)},End:function(){n.setFocus(n.length-1)},Enter:n.pick,Tab:n.pick,Esc:n.close},e=t.options.customKeys,s=e?{}:o;function i(t,e){var i;i="string"!=typeof e?function(t){return e(t,n)}:o.hasOwnProperty(e)?o[e]:e,s[t]=i}if(e)for(var c in e)e.hasOwnProperty(c)&&i(c,e[c]);var l=t.options.extraKeys;if(l)for(var c in l)l.hasOwnProperty(c)&&i(c,l[c]);return s}(o,{moveFocus:function(t,e){i.changeActive(i.selectedHint+t,e)},setFocus:function(t){i.changeActive(t)},menuSize:function(){return i.screenAmount()},length:e.length,close:function(){o.close()},pick:function(){i.pick()},data:t})),o.options.closeOnUnfocus)&&(s.on("blur",this.onBlur=function(){y=setTimeout(function(){o.close()},100)}),s.on("focus",this.onFocus=function(){clearTimeout(y)}));var H=s.getScrollInfo();return s.on("scroll",this.onScroll=function(){var t=s.getScrollInfo(),e=s.getWrapperElement().getBoundingClientRect(),i=u+H.top-t.top,n=i-(window.pageYOffset||(document.documentElement||document.body).scrollTop);if(p||(n+=c.offsetHeight),n<=e.top||n>=e.bottom)return o.close();c.style.top=i+"px",c.style.left=a+H.left-t.left+"px"}),b.on(c,"dblclick",function(t){var e=T(c,t.target||t.srcElement);e&&null!=e.hintId&&(i.changeActive(e.hintId),i.pick())}),b.on(c,"click",function(t){var e=T(c,t.target||t.srcElement);e&&null!=e.hintId&&(i.changeActive(e.hintId),o.options.completeOnSingleClick&&i.pick())}),b.on(c,"mousedown",function(){setTimeout(function(){s.focus()},20)}),b.signal(t,"select",e[0],c.firstChild),!0}b.showHint=function(t,e,i){if(!e)return t.showHint(i);i&&i.async&&(e.async=!0);var n={hint:e};if(i)for(var o in i)n[o]=i[o];return t.showHint(n)},b.defineExtension("showHint",function(t){if(!(1<this.listSelections().length||this.somethingSelected())){this.state.completionActive&&this.state.completionActive.close();var e=this.state.completionActive=new n(this,t),i=e.options.hint;if(i){if(b.signal(this,"startCompletion",this),!i.async)return e.showHints(i(this,e.options));i(this,function(t){e.showHints(t)},e.options)}}}),n.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.widget&&t
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(y){"use strict";var b=/[\w$]+/;y.registerHelper("hint","anyword",function(e,r){for(var o=r&&r.word||b,t=r&&r.range||500,i=e.getCursor(),n=e.getLine(i.line),f=i.ch,a=f;a&&o.test(n.charAt(a-1));)--a;for(var c=a!=f&&n.slice(a,f),s=[],l={},d=new RegExp(o.source,"g"),u=-1;u<=1;u+=2)for(var p=i.line,g=Math.min(Math.max(p+u*t,e.firstLine()),e.lastLine())+u;p!=g;p+=u)for(var h,m=e.getLine(p);h=d.exec(m);)p==i.line&&h[0]===c||c&&0!=h[0].lastIndexOf(c,0)||Object.prototype.hasOwnProperty.call(l,h[0])||(l[h[0]]=!0,s.push(h[0]));return{list:s,from:y.Pos(i.line,a),to:y.Pos(i.line,f)}})});
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(a){"use strict";function t(e){for(var r=e.display.lineSpace.childNodes.length-1;0<=r;r--){var o=e.display.lineSpace.childNodes[r];/(^|\s)CodeMirror-ruler($|\s)/.test(o.className)&&o.parentNode.removeChild(o)}}function i(e){for(var r=e.getOption("rulers"),o=e.defaultCharWidth(),t=e.charCoords(a.Pos(e.firstLine(),0),"div").left,i=e.display.scroller.offsetHeight+30,l=0;l<r.length;l++){var s=document.createElement("div");s.className="CodeMirror-ruler";var n,d=r[l];"number"==typeof d?n=d:(n=d.column,d.className&&(s.className+=" "+d.className),d.color&&(s.style.borderColor=d.color),d.lineStyle&&(s.style.borderLeftStyle=d.lineStyle),d.width&&(s.style.borderLeftWidth=d.width),r[l].className),s.style.left=t+n*o+"px",s.style.top="-50px",s.style.bottom="-20px",s.style.minHeight=i+"px",e.display.lineSpace.insertBefore(s,e.display.cursorDiv)}}function l(e){t(e),i(e)}a.defineOption("rulers",!1,function(e,r,o){o&&o!=a.Init&&(t(e),e.off("refresh",l)),r&&r.length&&(i(e),e.on("refresh",l))})});
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(x){var n={pairs:"()[]{}''\"\"",triples:"",explode:"[]{}"},C=x.Pos;function k(e,t){return"pairs"==t&&"string"==typeof e?e:"object"==typeof e&&null!=e[t]?e[t]:n[t]}x.defineOption("autoCloseBrackets",!1,function(e,t,n){n&&n!=x.Init&&(e.removeKeyMap(r),e.state.closeBrackets=null),t&&(e.state.closeBrackets=t,e.addKeyMap(r))});for(var e=n.pairs+"`",r={Backspace:function(e){var t=P(e);if(!t||e.getOption("disableInput"))return x.Pass;for(var n=k(t,"pairs"),r=e.listSelections(),i=0;i<r.length;i++){if(!r[i].empty())return x.Pass;var a=s(e,r[i].head);if(!a||n.indexOf(a)%2!=0)return x.Pass}for(var i=r.length-1;0<=i;i--){var o=r[i].head;e.replaceRange("",C(o.line,o.ch-1),C(o.line,o.ch+1))}},Enter:function(n){var e=P(n),t=e&&k(e,"explode");if(!t||n.getOption("disableInput"))return x.Pass;for(var r=n.listSelections(),i=0;i<r.length;i++){if(!r[i].empty())return x.Pass;var a=s(n,r[i].head);if(!a||t.indexOf(a)%2!=0)return x.Pass}n.operation(function(){n.replaceSelection("\n\n",null),n.execCommand("goCharLeft"),r=n.listSelections();for(var e=0;e<r.length;e++){var t=r[e].head.line;n.indentLine(t,null,!0),n.indentLine(t+1,null,!0)}})}},t=0;t<e.length;t++)r["'"+e.charAt(t)+"'"]=i(e.charAt(t));function i(t){return function(e){return function(n,e){var t=P(n);if(!t||n.getOption("disableInput"))return x.Pass;var r=k(t,"pairs"),i=r.indexOf(e);if(-1==i)return x.Pass;for(var a,o=k(t,"triples"),s=r.charAt(i+1)==e,l=n.listSelections(),c=i%2==0,f=0;f<l.length;f++){var u,h=l[f],d=h.head,p=n.getRange(d,C(d.line,d.ch+1));if(c&&!h.empty())u="surround";else if(!s&&c||p!=e)if(s&&1<d.ch&&0<=o.indexOf(e)&&n.getRange(C(d.line,d.ch-2),d)==e+e&&(d.ch<=2||n.getRange(C(d.line,d.ch-3),C(d.line,d.ch-2))!=e))u="addFour";else if(s){if(x.isWordChar(p)||!y(n,d,e))return x.Pass;u="both"}else{if(!c||!(n.getLine(d.line).length==d.ch||(g=p,void 0,-1<(v=r.lastIndexOf(g))&&v%2==1)||/\s/.test(p)))return x.Pass;u="both"}else u=0<=o.indexOf(e)&&n.getRange(d,C(d.line,d.ch+3))==e+e+e?"skipThree":"skip";if(a){if(a!=u)return x.Pass}else a=u}var g,v;var m=i%2?r.charAt(i-1):e,b=i%2?e:r.charAt(i+1);n.operation(function(){if("skip"==a)n.execCommand("goCharRight");else if("skipThree"==a)for(var e=0;e<3;e++)n.execCommand("goCharRight");else if("surround"==a){for(var t=n.getSelections(),e=0;e<t.length;e++)t[e]=m+t[e]+b;n.replaceSelections(t,"around")}else"both"==a?(n.replaceSelection(m+b,null),n.execCommand("goCharLeft")):"addFour"==a&&(n.replaceSelection(m+m+m+m,"before"),n.execCommand("goCharRight"))})}(e,t)}}function P(e){var t=e.state.closeBrackets;return t?e.getModeAt(e.getCursor()).closeBrackets||t:null}function s(e,t){var n=e.getRange(C(t.line,t.ch-1),C(t.line,t.ch+1));return 2==n.length?n:null}function y(e,t,n){var r=e.getLine(t.line),i=e.getTokenAt(t);if(/\bstring2?\b/.test(i.type))return!1;var a=new x.StringStream(r.slice(0,t.ch)+n+r.slice(t.ch),4);for(a.pos=a.start=i.start;;){var o=e.getMode().token(a,i.state);if(a.pos>=t.ch+1)return/\bstring2?\b/.test(o);a.start=a.pos}}});
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(i){var u=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),g=i.Pos,p={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<"};function h(e,t,n,i){var r=e.getLineHandle(t.line),o=t.ch-1,a=0<=o&&p[r.text.charAt(o)]||p[r.text.charAt(++o)];if(!a)return null;var c=">"==a.charAt(1)?1:-1;if(n&&0<c!=(o==t.ch))return null;var f=e.getTokenTypeAt(g(t.line,o+1)),l=s(e,g(t.line,o+(0<c?1:0)),c,f||null,i);return null==l?null:{from:g(t.line,o),to:l&&l.pos,match:l&&l.ch==a.charAt(0),forward:0<c}}function s(e,t,n,i,r){for(var o=r&&r.maxScanLineLength||1e4,a=r&&r.maxScanLines||1e3,c=[],f=r&&r.bracketRegex?r.bracketRegex:/[(){}[\]]/,l=0<n?Math.min(t.line+a,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-a),u=t.line;u!=l;u+=n){var h=e.getLine(u);if(h){var s=0<n?0:h.length-1,m=0<n?h.length:-1;if(!(h.length>o))for(u==t.line&&(s=t.ch-(n<0?1:0));s!=m;s+=n){var d=h.charAt(s);if(f.test(d)&&(void 0===i||e.getTokenTypeAt(g(u,s+1))==i))if(">"==p[d].charAt(1)==0<n)c.push(d);else{if(!c.length)return{pos:g(u,s),ch:d};c.pop()}}}}return u-n!=(0<n?e.lastLine():e.firstLine())&&null}function t(e,t,n){for(var i=e.state.matchBrackets.maxHighlightLineLength||1e3,r=[],o=e.listSelections(),a=0;a<o.length;a++){var c=o[a].empty()&&h(e,o[a].head,!1,n);if(c&&e.getLine(c.from.line).length<=i){var f=c.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";r.push(e.markText(c.from,g(c.from.line,c.from.ch+1),{className:f})),c.to&&e.getLine(c.to.line).length<=i&&r.push(e.markText(c.to,g(c.to.line,c.to.ch+1),{className:f}))}}if(r.length){u&&e.state.focused&&e.focus();var l=function(){e.operation(function(){for(var e=0;e<r.length;e++)r[e].clear()})};if(!t)return l;setTimeout(l,800)}}var n=null;function r(e){e.operation(function(){n&&(n(),n=null),n=t(e,!1,e.state.matchBrackets)})}i.defineOption("matchBrackets",!1,function(e,t,n){n&&n!=i.Init&&e.off("cursorActivity",r),t&&(e.state.matchBrackets="object"==typeof t?t:{},e.on("cursorActivity",r))}),i.defineExtension("matchBrackets",function(){t(this,!0)}),i.defineExtension("findMatchingBracket",function(e,t,n){return h(this,e,t,n)}),i.defineExtension("scanForBracket",function(e,t,n,i){return s(this,e,t,n,i)})});
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../fold/xml-fold")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../fold/xml-fold"],e):e(CodeMirror)}(function(v){v.defineOption("autoCloseTags",!1,function(e,t,n){if(n!=v.Init&&n&&e.removeKeyMap("autoCloseTags"),t){var o={name:"autoCloseTags"};("object"!=typeof t||t.whenClosing)&&(o["'/'"]=function(e){return(t=e).getOption("disableInput")?v.Pass:a(t,!0);var t}),("object"!=typeof t||t.whenOpening)&&(o["'>'"]=function(e){return function(e){if(e.getOption("disableInput"))return v.Pass;for(var t=e.listSelections(),n=[],o=0;o<t.length;o++){if(!t[o].empty())return v.Pass;var a=t[o].head,r=e.getTokenAt(a),i=v.innerMode(e.getMode(),r.state),s=i.state;if("xml"!=i.mode.name||!s.tagName)return v.Pass;var l=e.getOption("autoCloseTags"),c="html"==i.mode.configuration,d="object"==typeof l&&l.dontCloseTags||c&&b,f="object"==typeof l&&l.indentTags||c&&y,g=s.tagName;r.end>a.ch&&(g=g.slice(0,g.length-r.end+a.ch));var u=g.toLowerCase();if(!g||"string"==r.type&&(r.end!=a.ch||!/[\"\']/.test(r.string.charAt(r.string.length-1))||1==r.string.length)||"tag"==r.type&&"closeTag"==s.type||r.string.indexOf("/")==r.string.length-1||d&&-1<x(d,u)||P(e,g,a,s,!0))return v.Pass;var m=f&&-1<x(f,u);n[o]={indent:m,text:">"+(m?"\n\n":"")+"</"+g+">",newPos:m?v.Pos(a.line+1,0):v.Pos(a.line,a.ch+1)}}for(var o=t.length-1;0<=o;o--){var h=n[o];e.replaceRange(h.text,t[o].head,t[o].anchor,"+insert");var p=e.listSelections().slice(0);p[o]={head:h.newPos,anchor:h.newPos},e.setSelections(p),h.indent&&(e.indentLine(h.newPos.line,null,!0),e.indentLine(h.newPos.line+1,null,!0))}}(e)}),e.addKeyMap(o)}});var b=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],y=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function a(e,t){for(var n=e.listSelections(),o=[],a=t?"/":"</",r=0;r<n.length;r++){if(!n[r].empty())return v.Pass;var i=n[r].head,s=e.getTokenAt(i),l=v.innerMode(e.getMode(),s.state),c=l.state;if(t&&("string"==s.type||"<"!=s.string.charAt(0)||s.start!=i.ch-1))return v.Pass;if("xml"!=l.mode.name)if("htmlmixed"==e.getMode().name&&"javascript"==l.mode.name)o[r]=a+"script>";else{if("htmlmixed"!=e.getMode().name||"css"!=l.mode.name)return v.Pass;o[r]=a+"style>"}else{if(!c.context||!c.context.tagName||P(e,c.context.tagName,i,c))return v.Pass;o[r]=a+c.context.tagName+">"}}e.replaceSelections(o),n=e.listSelections();for(r=0;r<n.length;r++)(r==n.length-1||n[r].head.line<n[r+1].head.line)&&e.indentLine(n[r].head.line)}function x(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,o=e.length;n<o;++n)if(e[n]==t)return n;return-1}function P(e,t,n,o,a){if(!v.scanForClosingTag)return!1;var r=Math.min(e.lastLine()+1,n.line+500),i=v.scanForClosingTag(e,n,null,r);if(!i||i.tag!=t)return!1;for(var s=o.context,l=a?1:0;s&&s.tagName==t;s=s.prev)++l;n=i.to;for(var c=1;c<l;c++){var d=v.scanForClosingTag(e,n,null,r);if(!d||d.tag!=t)return!1;n=d.to}return!0}v.commands.closeTag=function(e){return a(e)}});
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(r){"use strict";var a=r.Pos;function i(h,f,e,t){if(this.atOccurrence=!1,this.doc=h,null==t&&"string"==typeof f&&(t=!1),e=e?h.clipPos(e):a(0,0),this.pos={from:e,to:e},"string"!=typeof f)f.global||(f=new RegExp(f.source,f.ignoreCase?"ig":"g")),this.matches=function(e,t){if(e){f.lastIndex=0;for(var n=h.getLine(t.line).slice(0,t.ch),i=0;;){f.lastIndex=i;var r=f.exec(n);if(!r)break;if(s=(o=r).index,(i=o.index+(o[0].length||1))==n.length)break}(l=o&&o[0].length||0)||(0==s&&0==n.length?o=void 0:s!=h.getLine(t.line).length&&l++)}else{f.lastIndex=t.ch;n=h.getLine(t.line);var o,s,l=(o=f.exec(n))&&o[0].length||0;(s=o&&o.index)+l==n.length||l||(l=1)}if(o&&l)return{from:a(t.line,s),to:a(t.line,s+l),match:o}};else{var o=f;t&&(f=f.toLowerCase());var c=t?function(e){return e.toLowerCase()}:function(e){return e},u=f.split("\n");if(1==u.length)f.length?this.matches=function(e,t){if(e){var n=h.getLine(t.line).slice(0,t.ch);if(-1<(r=(i=c(n)).lastIndexOf(f)))return r=s(n,i,r),{from:a(t.line,r),to:a(t.line,r+o.length)}}else{var i,r;n=h.getLine(t.line).slice(t.ch);if(-1<(r=(i=c(n)).indexOf(f)))return r=s(n,i,r)+t.ch,{from:a(t.line,r),to:a(t.line,r+o.length)}}}:this.matches=function(){};else{var g=o.split("\n");this.matches=function(e,t){var n=u.length-1;if(e){if(t.line-(u.length-1)<h.firstLine())return;if(c(h.getLine(t.line).slice(0,g[n].length))!=u[u.length-1])return;for(var i=a(t.line,g[n].length),r=t.line-1,o=n-1;1<=o;--o,--r)if(u[o]!=c(h.getLine(r)))return;var s=(l=h.getLine(r)).length-g[0].length;if(c(l.slice(s))!=u[0])return;return{from:a(r,s),to:i}}if(!(t.line+(u.length-1)>h.lastLine())){var l;s=(l=h.getLine(t.line)).length-g[0].length;if(c(l.slice(s))==u[0]){var f=a(t.line,s);for(r=t.line+1,o=1;o<n;++o,++r)if(u[o]!=c(h.getLine(r)))return;if(c(h.getLine(r).slice(0,g[n].length))==u[n])return{from:f,to:a(r,g[n].length)}}}}}}}function s(e,t,n){if(e.length==t.length)return n;for(var i=Math.min(n,e.length);;){var r=e.slice(0,i).toLowerCase().length;if(r<n)++i;else{if(!(n<r))return i;--i}}}i.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(e){var n=this,t=this.doc.clipPos(e?this.pos.from:this.pos.to);function i(e){var t=a(e,0);return n.pos={from:t,to:t},n.atOccurrence=!1}for(;;){if(this.pos=this.matches(e,t))return this.atOccurrence=!0,this.pos.match||!0;if(e){if(!t.line)return i(0);t=a(t.line-1,this.doc.getLine(t.line-1).length)}else{var r=this.doc.lineCount();if(t.line==r-1)return i(r);t=a(t.line+1,0)}}},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(e){if(this.atOccurrence){var t=r.splitLines(e);this.doc.replaceRange(t,this.pos.from,this.pos.to),this.pos.to=a(this.pos.from.line+t.length-1,t[t.length-1].length+(1==t.length?this.pos.from.ch:0))}}},r.defineExtension("getSearchCursor",function(e,t,n){return new i(this.doc,e,t,n)}),r.defineDocExtension("getSearchCursor",function(e,t,n){return new i(this,e,t,n)}),r.defineExtension("selectMatches",function(e,t){for(var n=[],i=this.getSearchCursor(e,this.getCursor("from"),t);i.findNext()&&!(0<r.cmpPos(i.to(),this.getCursor("to")));)n.push({anchor:i.from(),head:i.to()});n.length&&this.setSelections(n,0)})});
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("./searchcursor"),require("../dialog/dialog")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","./searchcursor","../dialog/dialog"],e):e(CodeMirror)}(function(t){"use strict";function o(){this.posFrom=this.posTo=this.query=null,this.overlay=null}function a(e){return e.state.search||(e.state.search=new o)}function c(e){return"string"==typeof e&&e==e.toLowerCase()}function u(e,o,r){return e.getSearchCursor(o,r,c(o))}function r(e,o,r,n,t){e.openDialog?e.openDialog(o,t,{value:n}):t(prompt(r,n))}function s(e){var o=e.match(/^\/(.*)\/([a-z]*)$/);if(o)try{e=new RegExp(o[1],-1==o[2].indexOf("i")?"":"i")}catch(e){}return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function n(n,t){var i=a(n);if(i.query)return l(n,t);r(n,'Search: <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use /re/ syntax for regexp search)</span>',"Search for:",n.getSelection(),function(o){n.operation(function(){var r,e;o&&!i.query&&(i.query=s(o),n.removeOverlay(i.overlay,c(i.query)),i.overlay=(r=i.query,e=c(i.query),"string"==typeof r?r=new RegExp(r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),e?"gi":"g"):r.global||(r=new RegExp(r.source,r.ignoreCase?"gi":"g")),{token:function(e){r.lastIndex=e.pos;var o=r.exec(e.string);if(o&&o.index==e.pos)return e.pos+=o[0].length,"searching";o?e.pos=o.index:e.skipToEnd()}}),n.addOverlay(i.overlay),n.showMatchesOnScrollbar&&(i.annotate&&(i.annotate.clear(),i.annotate=null),i.annotate=n.showMatchesOnScrollbar(i.query,c(i.query))),i.posFrom=i.posTo=n.getCursor(),l(n,t))})})}function l(r,n){r.operation(function(){var e=a(r),o=u(r,e.query,n?e.posFrom:e.posTo);(o.find(n)||(o=u(r,e.query,n?t.Pos(r.lastLine()):t.Pos(r.firstLine(),0))).find(n))&&(r.setSelection(o.from(),o.to()),r.scrollIntoView({from:o.from(),to:o.to()}),e.posFrom=o.from(),e.posTo=o.to())})}function i(o){o.operation(function(){var e=a(o);e.query&&(e.query=null,o.removeOverlay(e.overlay),e.annotate&&(e.annotate.clear(),e.annotate=null))})}function f(f,e){f.getOption("readOnly")||r(f,'Replace: <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use /re/ syntax for regexp search)</span>',"Replace:",f.getSelection(),function(l){l&&(l=s(l),r(f,'With: <input type="text" style="width: 10em" class="CodeMirror-search-field"/>',"Replace with:","",function(o){if(e)f.operation(function(){for(var e=u(f,l);e.findNext();)if("string"!=typeof l){var r=f.getRange(e.from(),e.to()).match(l);e.replace(o.replace(/\$(\d)/g,function(e,o){return r[o]}))}else e.replace(o)});else{i(f);var a=u(f,l,f.getCursor()),c=function(){var e,o,r,n,t,i=a.from();!(e=a.findNext())&&(a=u(f,l),!(e=a.findNext())||i&&a.from().line==i.line&&a.from().ch==i.ch)||(f.setSelection(a.from(),a.to()),f.scrollIntoView({from:a.from(),to:a.to()}),r="Replace? <button>Yes</button> <button>No</button> <button>Stop</button>",n="Replace?",t=[function(){s(e)},c],(o=f).openConfirm?o.openConfirm(r,t):confirm(n)&&t[0]())},s=function(r){a.replace("string"==typeof l?o:o.replace(/\$(\d)/g,function(e,o){return r[o]})),c()};c()}}))})}t.commands.find=function(e){i(e),n(e)},t.commands.findNext=n,t.commands.findPrev=function(e){n(e,!0)},t.commands.clearSearch=i,t.commands.replace=f,t.commands.replaceAll=function(e){f(e,!0)}});
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(s){function d(e,o,n){var t;return(t=e.getWrapperElement().appendChild(document.createElement("div"))).className=n?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof o?t.innerHTML=o:t.appendChild(o),t}function p(e,o){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=o}s.defineExtension("openDialog",function(e,o,n){n||(n={}),p(this,null);var t=d(this,e,n.bottom),i=!1,r=this;function u(e){if("string"==typeof e)c.value=e;else{if(i)return;i=!0,t.parentNode.removeChild(t),r.focus(),n.onClose&&n.onClose(t)}}var l,c=t.getElementsByTagName("input")[0];return c?(n.value&&(c.value=n.value,!1!==n.selectValueOnOpen&&c.select()),n.onInput&&s.on(c,"input",function(e){n.onInput(e,c.value,u)}),n.onKeyUp&&s.on(c,"keyup",function(e){n.onKeyUp(e,c.value,u)}),s.on(c,"keydown",function(e){n&&n.onKeyDown&&n.onKeyDown(e,c.value,u)||((27==e.keyCode||!1!==n.closeOnEnter&&13==e.keyCode)&&(c.blur(),s.e_stop(e),u()),13==e.keyCode&&o(c.value,e))}),!1!==n.closeOnBlur&&s.on(c,"blur",u),c.focus()):(l=t.getElementsByTagName("button")[0])&&(s.on(l,"click",function(){u(),r.focus()}),!1!==n.closeOnBlur&&s.on(l,"blur",u),l.focus()),u}),s.defineExtension("openConfirm",function(e,o,n){p(this,null);var t=d(this,e,n&&n.bottom),i=t.getElementsByTagName("button"),r=!1,u=this,l=1;function c(){r||(r=!0,t.parentNode.removeChild(t),u.focus())}i[0].focus();for(var a=0;a<i.length;++a){var f=i[a];!function(o){s.on(f,"click",function(e){s.e_preventDefault(e),c(),o&&o(u)})}(o[a]),s.on(f,"blur",function(){--l,setTimeout(function(){l<=0&&c()},200)}),s.on(f,"focus",function(){++l})}}),s.defineExtension("openNotification",function(e,o){p(this,u);var n,t=d(this,e,o&&o.bottom),i=!1,r=o&&void 0!==o.duration?o.duration:5e3;function u(){i||(i=!0,clearTimeout(n),t.parentNode.removeChild(t))}return s.on(t,"click",function(e){s.e_preventDefault(e),u()}),r&&(n=setTimeout(u,r)),u})});
!function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)}(function(r){"use strict";function o(t){"object"==typeof t&&(this.minChars=t.minChars,this.style=t.style,this.showToken=t.showToken,this.delay=t.delay,this.wordsOnly=t.wordsOnly),null==this.style&&(this.style="matchhighlight"),null==this.minChars&&(this.minChars=2),null==this.delay&&(this.delay=100),null==this.wordsOnly&&(this.wordsOnly=!1),this.overlay=this.timeout=null}function l(t){var e=t.state.matchHighlighter;clearTimeout(e.timeout),e.timeout=setTimeout(function(){h(t)},e.delay)}function h(a){a.operation(function(){var t=a.state.matchHighlighter;if(t.overlay&&(a.removeOverlay(t.overlay),t.overlay=null),a.somethingSelected()||!t.showToken){var e=a.getCursor("from"),i=a.getCursor("to");if(e.line==i.line&&(!t.wordsOnly||function(t,e,i){{if(null===t.getRange(e,i).match(/^\w+$/))return!1;if(0<e.ch){var n={line:e.line,ch:e.ch-1},r=t.getRange(n,e);if(null===r.match(/\W/))return!1}if(i.ch<t.getLine(e.line).length){var n={line:i.line,ch:i.ch+1},r=t.getRange(i,n);if(null===r.match(/\W/))return!1}return!0}}(a,e,i))){var n=a.getRange(e,i).replace(/^\s+|\s+$/g,"");n.length>=t.minChars&&a.addOverlay(t.overlay=c(n,!1,t.style))}}else{for(var r=!0===t.showToken?/[\w$]/:t.showToken,o=a.getCursor(),l=a.getLine(o.line),h=o.ch,s=h;h&&r.test(l.charAt(h-1));)--h;for(;s<l.length&&r.test(l.charAt(s));)++s;h<s&&a.addOverlay(t.overlay=c(l.slice(h,s),r,t.style))}})}function c(n,r,o){return{token:function(t){if(t.match(n)&&(!r||(i=r,!((e=t).start&&i.test(e.string.charAt(e.start-1))||e.pos!=e.string.length&&i.test(e.string.charAt(e.pos))))))return o;var e,i;t.next(),t.skipTo(n.charAt(0))||t.skipToEnd()}}}r.defineOption("highlightSelectionMatches",!1,function(t,e,i){if(i&&i!=r.Init){var n=t.state.matchHighlighter.overlay;n&&t.removeOverlay(n),clearTimeout(t.state.matchHighlighter.timeout),t.state.matchHighlighter=null,t.off("cursorActivity",l)}e&&(t.state.matchHighlighter=new o(e),h(t),t.on("cursorActivity",l))})});
!function(n){"object"==typeof exports&&"object"==typeof module?n(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}(function(a){"use strict";function i(i,t,n,f){if(n&&n.call){var l=n;n=null}else l=c(i,n,"rangeFinder");"number"==typeof t&&(t=a.Pos(t,0));var d=c(i,n,"minFoldSize");function o(n){var o=l(i,t);if(!o||o.to.line-o.from.line<d)return null;for(var e=i.findMarksAt(o.from),r=0;r<e.length;++r)if(e[r].__isFold&&"fold"!==f){if(!n)return null;o.cleared=!0,e[r].clear()}return o}var e=o(!0);if(c(i,n,"scanUp"))for(;!e&&t.line>i.firstLine();)t=a.Pos(t.line-1,0),e=o(!1);if(e&&!e.cleared&&"unfold"!==f){var r=function(n,o){var e=c(n,o,"widget");if("string"==typeof e){var r=document.createTextNode(e);(e=document.createElement("span")).appendChild(r),e.className="CodeMirror-foldmarker"}return e}(i,n);a.on(r,"mousedown",function(n){u.clear(),a.e_preventDefault(n)});var u=i.markText(e.from,e.to,{replacedWith:r,clearOnEnter:!0,__isFold:!0});u.on("clear",function(n,o){a.signal(i,"unfold",i,n,o)}),a.signal(i,"fold",i,e.from,e.to)}}a.newFoldFunction=function(e,r){return function(n,o){i(n,o,{rangeFinder:e,widget:r})}},a.defineExtension("foldCode",function(n,o,e){i(this,n,o,e)}),a.defineExtension("isFolded",function(n){for(var o=this.findMarksAt(n),e=0;e<o.length;++e)if(o[e].__isFold)return!0}),a.commands.toggleFold=function(n){n.foldCode(n.getCursor())},a.commands.fold=function(n){n.foldCode(n.getCursor(),null,"fold")},a.commands.unfold=function(n){n.foldCode(n.getCursor(),null,"unfold")},a.commands.foldAll=function(e){e.operation(function(){for(var n=e.firstLine(),o=e.lastLine();n<=o;n++)e.foldCode(a.Pos(n,0),null,"fold")})},a.commands.unfoldAll=function(e){e.operation(function(){for(var n=e.firstLine(),o=e.lastLine();n<=o;n++)e.foldCode(a.Pos(n,0),null,"unfold")})},a.registerHelper("fold","combine",function(){var i=Array.prototype.slice.call(arguments,0);return function(n,o){for(var e=0;e<i.length;++e){var r=i[e](n,o);if(r)return r}}}),a.registerHelper("fold","auto",function(n,o){for(var e=n.getHelpers(o,"fold"),r=0;r<e.length;r++){var i=e[r](n,o);if(i)return i}});var t={rangeFinder:a.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1};function c(n,o,e){if(o&&void 0!==o[e])return o[e];var r=n.options.foldOptions;return r&&void 0!==r[e]?r[e]:t[e]}a.defineOption("foldOptions",null),a.defineExtension("foldOption",function(n,o){return c(this,n,o)})});
!function(o){"object"==typeof exports&&"object"==typeof module?o(require("../../lib/codemirror"),require("./foldcode")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","./foldcode"],o):o(CodeMirror)}(function(r){"use strict";r.defineOption("foldGutter",!1,function(o,t,e){e&&e!=r.Init&&(o.clearGutter(o.state.foldGutter.options.gutter),o.state.foldGutter=null,o.off("gutterClick",d),o.off("change",a),o.off("viewportChange",p),o.off("fold",s),o.off("unfold",s),o.off("swapDoc",f)),t&&(o.state.foldGutter=new n(function(o){!0===o&&(o={});null==o.gutter&&(o.gutter="CodeMirror-foldgutter");null==o.indicatorOpen&&(o.indicatorOpen="CodeMirror-foldgutter-open");null==o.indicatorFolded&&(o.indicatorFolded="CodeMirror-foldgutter-folded");return o}(t)),f(o),o.on("gutterClick",d),o.on("change",a),o.on("viewportChange",p),o.on("fold",s),o.on("unfold",s),o.on("swapDoc",f))});var u=r.Pos;function n(o){this.options=o,this.from=this.to=0}function l(o,t){for(var e=o.findMarksAt(u(t)),r=0;r<e.length;++r)if(e[r].__isFold&&e[r].find().from.line==t)return e[r]}function c(o){if("string"!=typeof o)return o.cloneNode(!0);var t=document.createElement("div");return t.className=o+" CodeMirror-guttermarker-subtle",t}function i(n,o,t){var i=n.state.foldGutter.options,f=o,d=n.foldOption(i,"minFoldSize"),a=n.foldOption(i,"rangeFinder");n.eachLine(o,t,function(o){var t=null;if(l(n,f))t=c(i.indicatorFolded);else{var e=u(f,0),r=a&&a(n,e);r&&r.to.line-r.from.line>=d&&(t=c(i.indicatorOpen))}n.setGutterMarker(o,i.gutter,t),++f})}function f(o){var t=o.getViewport(),e=o.state.foldGutter;e&&(o.operation(function(){i(o,t.from,t.to)}),e.from=t.from,e.to=t.to)}function d(o,t,e){var r=o.state.foldGutter;if(r){var n=r.options;if(e==n.gutter){var i=l(o,t);i?i.clear():o.foldCode(u(t,0),n.rangeFinder)}}}function a(o){var t=o.state.foldGutter;if(t){var e=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){f(o)},e.foldOnChangeTimeSpan||600)}}function p(t){var e=t.state.foldGutter;if(e){var o=e.options;clearTimeout(e.changeUpdate),e.changeUpdate=setTimeout(function(){var o=t.getViewport();e.from==e.to||20<o.from-e.to||20<e.from-o.to?f(t):t.operation(function(){o.from<e.from&&(i(t,o.from,e.from),e.from=o.from),o.to>e.to&&(i(t,e.to,o.to),e.to=o.to)})},o.updateViewportTimeSpan||400)}}function s(o,t){var e=o.state.foldGutter;if(e){var r=t.line;r>=e.from&&r<e.to&&i(o,r,r+1)}}});
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(k){"use strict";k.registerHelper("fold","brace",function(i,o){var l,f=o.line,s=i.getLine(f);function e(e){for(var r=o.ch,n=0;;){var t=r<=0?-1:s.lastIndexOf(e,r-1);if(-1!=t){if(1==n&&t<o.ch)break;if(l=i.getTokenTypeAt(k.Pos(f,t+1)),!/^(comment|string)/.test(l))return t+1;r=t-1}else{if(1==n)break;n=1,r=s.length}}}var r,n="{",t="}";if(null==(r=e("{"))&&(t="]",r=e(n="[")),null!=r){var u,a,d=1,c=i.lastLine();e:for(var g=f;g<=c;++g)for(var v=i.getLine(g),p=g==f?r:0;;){var m=v.indexOf(n,p),P=v.indexOf(t,p);if(m<0&&(m=v.length),P<0&&(P=v.length),(p=Math.min(m,P))==v.length)break;if(i.getTokenTypeAt(k.Pos(g,p+1))==l)if(p==m)++d;else if(!--d){u=g,a=p;break e}++p}if(null!=u&&(f!=u||a!=r))return{from:k.Pos(f,r),to:k.Pos(u,a)}}}),k.registerHelper("fold","import",function(o,e){function r(e){if(e<o.firstLine()||e>o.lastLine())return null;var r=o.getTokenAt(k.Pos(e,1));if(/\S/.test(r.string)||(r=o.getTokenAt(k.Pos(e,r.end+1))),"keyword"!=r.type||"import"!=r.string)return null;for(var n=e,t=Math.min(o.lastLine(),e+10);n<=t;++n){var i=o.getLine(n).indexOf(";");if(-1!=i)return{startCh:r.end,end:k.Pos(n,i)}}}var n,t=r(e=e.line);if(!t||r(e-1)||(n=r(e-2))&&n.end.line==e-1)return null;for(var i=t.end;;){var l=r(i.line+1);if(null==l)break;i=l.end}return{from:o.clipPos(k.Pos(e,t.startCh+1)),to:i}}),k.registerHelper("fold","include",function(n,e){function r(e){if(e<n.firstLine()||e>n.lastLine())return null;var r=n.getTokenAt(k.Pos(e,1));return/\S/.test(r.string)||(r=n.getTokenAt(k.Pos(e,r.end+1))),"meta"==r.type&&"#include"==r.string.slice(0,8)?r.start+8:void 0}var t=r(e=e.line);if(null==t||null!=r(e-1))return null;for(var i=e;;){if(null==r(i+1))break;++i}return{from:k.Pos(e,t+1),to:n.clipPos(k.Pos(i))}})});
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";var a=e.Pos;var n="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",i=new RegExp("<(/?)(["+n+"][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-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*)","g");function s(e,n,t,i){this.line=n,this.ch=t,this.cm=e,this.text=e.getLine(n),this.min=i?i.from:e.firstLine(),this.max=i?i.to-1:e.lastLine()}function r(e,n){var t=e.cm.getTokenTypeAt(a(e.line,n));return t&&/\btag\b/.test(t)}function u(e){if(!(e.line>=e.max))return e.ch=0,e.text=e.cm.getLine(++e.line),!0}function f(e){if(!(e.line<=e.min))return e.text=e.cm.getLine(--e.line),e.ch=e.text.length,!0}function h(e){for(;;){var n=e.text.indexOf(">",e.ch);if(-1==n){if(u(e))continue;return}if(r(e,n+1)){var t=e.text.lastIndexOf("/",n),i=-1<t&&!/\S/.test(e.text.slice(t+1,n));return e.ch=n+1,i?"selfClose":"regular"}e.ch=n+1}}function F(e){for(;;){var n=e.ch?e.text.lastIndexOf("<",e.ch-1):-1;if(-1==n){if(f(e))continue;return}if(r(e,n+1)){i.lastIndex=n,e.ch=n;var t=i.exec(e.text);if(t&&t.index==n)return t}else e.ch=n}}function l(e){for(;;){i.lastIndex=e.ch;var n=i.exec(e.text);if(!n){if(u(e))continue;return}if(r(e,n.index+1))return e.ch=n.index+n[0].length,n;e.ch=n.index+1}}function c(e){for(;;){var n=e.ch?e.text.lastIndexOf(">",e.ch-1):-1;if(-1==n){if(f(e))continue;return}if(r(e,n+1)){var t=e.text.lastIndexOf("/",n),i=-1<t&&!/\S/.test(e.text.slice(t+1,n));return e.ch=n+1,i?"selfClose":"regular"}e.ch=n}}function x(e,n){for(var t=[];;){var i,r=l(e),u=e.line,f=e.ch-(r?r[0].length:0);if(!r||!(i=h(e)))return;if("selfClose"!=i)if(r[1]){for(var o=t.length-1;0<=o;--o)if(t[o]==r[2]){t.length=o;break}if(o<0&&(!n||n==r[2]))return{tag:r[2],from:a(u,f),to:a(e.line,e.ch)}}else t.push(r[2])}}function g(e,n){for(var t=[];;){var i=c(e);if(!i)return;if("selfClose"!=i){var r=e.line,u=e.ch,f=F(e);if(!f)return;if(f[1])t.push(f[2]);else{for(var o=t.length-1;0<=o;--o)if(t[o]==f[2]){t.length=o;break}if(o<0&&(!n||n==f[2]))return{tag:f[2],from:a(e.line,e.ch),to:a(r,u)}}}else F(e)}}e.registerHelper("fold","xml",function(e,n){for(var t=new s(e,n.line,0);;){var i,r=l(t);if(!r||t.line!=n.line||!(i=h(t)))return;if(!r[1]&&"selfClose"!=i){n=a(t.line,t.ch);var u=x(t,r[2]);return u&&{from:n,to:u.from}}}}),e.findMatchingTag=function(e,n,t){var i=new s(e,n.line,n.ch,t);if(-1!=i.text.indexOf(">")||-1!=i.text.indexOf("<")){var r=h(i),u=r&&a(i.line,i.ch),f=r&&F(i);if(r&&f&&(l=n,!(0<((o=i).line-l.line||o.ch-l.ch)))){var o,l,c={from:a(i.line,i.ch),to:u,tag:f[2]};return"selfClose"==r?{open:c,close:null,at:"open"}:f[1]?{open:g(i,f[2]),close:c,at:"close"}:{open:c,close:x(i=new s(e,u.line,u.ch,t),f[2]),at:"open"}}}},e.findEnclosingTag=function(e,n,t){for(var i=new s(e,n.line,n.ch,t);;){var r=g(i);if(!r)break;var u=x(new s(e,n.line,n.ch,t),r.tag);if(u)return{open:r,close:u}}},e.scanForClosingTag=function(e,n,t,i){return x(new s(e,n.line,n.ch,i?{from:0,to:i}:null),t)}});
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(d){"use strict";d.registerHelper("fold","markdown",function(t,e){function i(e){var n=t.getTokenTypeAt(d.Pos(e,0));return n&&/\bheader\b/.test(n)}function n(e,n,t){var r=n&&n.match(/^#+/);return r&&i(e)?r[0].length:(r=t&&t.match(/^[=\-]+\s*$/))&&i(e+1)?"="==t[0]?1:2:100}var r=t.getLine(e.line),o=t.getLine(e.line+1),f=n(e.line,r,o);if(100!==f){for(var l=t.lastLine(),c=e.line,u=t.getLine(c+2);c<l&&!(n(c+1,o,u)<=f);)++c,o=u,u=t.getLine(c+2);return{from:d.Pos(e.line,r.length),to:d.Pos(c,t.getLine(c).length)}}})});
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(C){"use strict";C.registerGlobalHelper("fold","comment",function(e){return e.blockCommentStart&&e.blockCommentEnd},function(e,t){var n=e.getModeAt(t),o=n.blockCommentStart,r=n.blockCommentEnd;if(o&&r){for(var i,f=t.line,l=e.getLine(f),c=t.ch,m=0;;){var a=c<=0?-1:l.lastIndexOf(o,c-1);if(-1!=a){if(1==m&&a<t.ch)return;if(/comment/.test(e.getTokenTypeAt(C.Pos(f,a+1)))){i=a+o.length;break}c=a-1}else{if(1==m)return;m=1,c=l.length}}var d,u,b=1,s=e.lastLine();e:for(var g=f;g<=s;++g)for(var h=e.getLine(g),k=g==f?i:0;;){var v=h.indexOf(o,k),p=h.indexOf(r,k);if(v<0&&(v=h.length),p<0&&(p=h.length),(k=Math.min(v,p))==h.length)break;if(k==v)++b;else if(!--b){d=g,u=k;break e}++k}if(null!=d&&(f!=d||u!=i))return{from:C.Pos(f,i),to:C.Pos(d,u)}}})});
!function(r){"object"==typeof exports&&"object"==typeof module?r(require("../../lib/codemirror"),"cjs"):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],function(e){r(e,"amd")}):r(CodeMirror,"plain")}(function(a,d){a.modeURL||(a.modeURL="../mode/%N/%N.js");var f={};function u(e,r){var o=a.modes[e].dependencies;if(!o)return r();for(var n=[],t=0;t<o.length;++t)a.modes.hasOwnProperty(o[t])||n.push(o[t]);if(!n.length)return r();var i,d,f,u=(i=r,d=n.length,f=d,function(){0==--f&&i()});for(t=0;t<n.length;++t)a.requireMode(n[t],u)}a.requireMode=function(e,r){if("string"!=typeof e&&(e=e.name),a.modes.hasOwnProperty(e))return u(e,r);if(f.hasOwnProperty(e))return f[e].push(r);var o=a.modeURL.replace(/%N/g,e);if("plain"==d){var n=document.createElement("script");n.src=o;var t=document.getElementsByTagName("script")[0],i=f[e]=[r];a.on(n,"load",function(){u(e,function(){for(var e=0;e<i.length;++e)i[e]()})}),t.parentNode.insertBefore(n,t)}else"cjs"==d?(require(o),r()):"amd"==d&&requirejs([o],r)},a.autoLoadMode=function(e,r){a.modes.hasOwnProperty(r)||a.requireMode(r,function(){e.setOption("mode",e.getOption("mode"))})}});
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";var O={},M=/[^\s\u00a0]/,E=e.Pos;function s(e){var n=e.search(M);return-1==n?0:n}e.commands.toggleComment=function(e){for(var n=1/0,t=e.listSelections(),i=null,l=t.length-1;0<=l;l--){var o=t[l].from(),a=t[l].to();o.line>=n||(a.line>=n&&(a=E(n,0)),n=o.line,null==i?i=e.uncomment(o,a)?"un":(e.lineComment(o,a),"line"):"un"==i?e.uncomment(o,a):e.lineComment(o,a))}},e.defineExtension("lineComment",function(l,e,o){o||(o=O);var a=this,n=a.getModeAt(l),r=o.lineComment||n.lineComment;if(r){var m=a.getLine(l.line);if(null!=m){var c=Math.min(0!=e.ch||e.line==l.line?e.line+1:e.line,a.lastLine()+1),f=null==o.padding?" ":o.padding,g=o.commentBlankLines||l.line==e.line;a.operation(function(){if(o.indent)for(var e=m.slice(0,s(m)),n=l.line;n<c;++n){var t=a.getLine(n),i=e.length;(g||M.test(t))&&(t.slice(0,i)!=e&&(i=s(t)),a.replaceRange(e+r+f,E(n,0),E(n,i)))}else for(n=l.line;n<c;++n)(g||M.test(a.getLine(n)))&&a.replaceRange(r+f,E(n,0))})}}else(o.blockCommentStart||n.blockCommentStart)&&(o.fullLines=!0,a.blockComment(l,e,o))}),e.defineExtension("blockComment",function(i,l,o){o||(o=O);var a=this,r=a.getModeAt(i),m=o.blockCommentStart||r.blockCommentStart,c=o.blockCommentEnd||r.blockCommentEnd;if(m&&c){var f=Math.min(l.line,a.lastLine());f!=i.line&&0==l.ch&&M.test(a.getLine(f))&&--f;var g=null==o.padding?" ":o.padding;i.line>f||a.operation(function(){if(0!=o.fullLines){var e=M.test(a.getLine(f));a.replaceRange(g+c,E(f)),a.replaceRange(m+g,E(i.line,0));var n=o.blockCommentLead||r.blockCommentLead;if(null!=n)for(var t=i.line+1;t<=f;++t)(t!=f||e)&&a.replaceRange(n+g,E(t,0))}else a.replaceRange(c,l),a.replaceRange(m,i)})}else(o.lineComment||r.lineComment)&&0!=o.fullLines&&a.lineComment(i,l,o)}),e.defineExtension("uncomment",function(e,n,t){t||(t=O);var l,o=this,i=o.getModeAt(e),a=Math.min(0!=n.ch||n.line==e.line?n.line:n.line-1,o.lastLine()),r=Math.min(e.line,a),m=t.lineComment||i.lineComment,c=[],f=null==t.padding?" ":t.padding;e:if(m){for(var g=r;g<=a;++g){var s=o.getLine(g),d=s.indexOf(m);if(-1<d&&!/comment/.test(o.getTokenTypeAt(E(g,d+1)))&&(d=-1),-1==d&&(g!=a||g==r)&&M.test(s))break e;if(-1<d&&M.test(s.slice(0,d)))break e;c.push(s)}if(o.operation(function(){for(var e=r;e<=a;++e){var n=c[e-r],t=n.indexOf(m),i=t+m.length;t<0||(n.slice(i,i+f.length)==f&&(i+=f.length),l=!0,o.replaceRange("",E(e,t),E(e,i)))}}),l)return!0}var u=t.blockCommentStart||i.blockCommentStart,h=t.blockCommentEnd||i.blockCommentEnd;if(!u||!h)return!1;var p=t.blockCommentLead||i.blockCommentLead,v=o.getLine(r),C=a==r?v:o.getLine(a),b=v.indexOf(u),k=C.lastIndexOf(h);if(-1==k&&r!=a&&(C=o.getLine(--a),k=C.lastIndexOf(h)),-1==b||-1==k||!/comment/.test(o.getTokenTypeAt(E(r,b+1)))||!/comment/.test(o.getTokenTypeAt(E(a,k+1))))return!1;var L=v.lastIndexOf(u,e.ch),x=-1==L?-1:v.slice(0,e.ch).indexOf(h,L+u.length);if(-1!=L&&-1!=x&&x+h.length!=e.ch)return!1;x=C.indexOf(h,n.ch);var R=C.slice(n.ch).lastIndexOf(u,x-n.ch);return L=-1==x||-1==R?-1:n.ch+R,(-1==x||-1==L||L==n.ch)&&(o.operation(function(){o.replaceRange("",E(a,k-(f&&C.slice(k-f.length,k)==f?f.length:0)),E(a,k+h.length));var e=b+u.length;if(f&&v.slice(e,e+f.length)==f&&(e+=f.length),o.replaceRange("",E(r,b),E(r,e)),p)for(var n=r+1;n<=a;++n){var t=o.getLine(n),i=t.indexOf(p);if(-1!=i&&!M.test(t.slice(0,i))){var l=i+p.length;f&&t.slice(l,l+f.length)==f&&(l+=f.length),o.replaceRange("",E(n,i),E(n,l))}}}),!0)})});
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../lib/codemirror")):"function"==typeof define&&define.amd?define(["../lib/codemirror"],e):e(CodeMirror)}(function(x){"use strict";x.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["pgp"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists.txt$/},{name:"CoffeeScript",mime:"text/x-coffeescript",mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history).md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy"]},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Jade",mime:"text/x-jade",mode:"jade",ext:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"Jinja2",mime:"null",mode:"jinja2"},{name:"Julia",mime:"text/x-julia",
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("go",function(e){var i,o=e.indentUnit,a={break:!0,case:!0,chan:!0,const:!0,continue:!0,default:!0,defer:!0,else:!0,fallthrough:!0,for:!0,func:!0,go:!0,goto:!0,if:!0,import:!0,interface:!0,map:!0,package:!0,range:!0,return:!0,select:!0,struct:!0,switch:!0,type:!0,var:!0,bool:!0,byte:!0,complex64:!0,complex128:!0,float32:!0,float64:!0,int8:!0,int16:!0,int32:!0,int64:!0,string:!0,uint8:!0,uint16:!0,uint32:!0,uint64:!0,int:!0,uint:!0,uintptr:!0},c={true:!0,false:!0,iota:!0,nil:!0,append:!0,cap:!0,close:!0,complex:!0,copy:!0,imag:!0,len:!0,make:!0,new:!0,panic:!0,print:!0,println:!0,real:!0,recover:!0},u=/[+\-*&^%:=<>!|\/]/;function l(e,t){var o,n=e.next();if('"'==n||"'"==n||"`"==n)return t.tokenize=(o=n,function(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if(n==o&&!r){i=!0;break}r=!r&&"\\"==n}return(i||!r&&"`"!=o)&&(t.tokenize=l),"string"}),t.tokenize(e,t);if(/[\d\.]/.test(n))return"."==n?e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):"0"==n?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(/[\[\]{}\(\),;\:\.]/.test(n))return i=n,null;if("/"==n){if(e.eat("*"))return(t.tokenize=f)(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(u.test(n))return e.eatWhile(u),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var r=e.current();return a.propertyIsEnumerable(r)?("case"!=r&&"default"!=r||(i="case"),"keyword"):c.propertyIsEnumerable(r)?"atom":"variable"}function f(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=l;break}r="*"==n}return"comment"}function r(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function d(e,t,n){return e.context=new r(e.indented,t,n,null,e.context)}function p(e){if(e.context.prev){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}}return{startState:function(e){return{tokenize:null,context:new r((e||0)-o,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0,"case"==n.type&&(n.type="}")),e.eatSpace())return null;i=null;var r=(t.tokenize||l)(e,t);return"comment"==r||(null==n.align&&(n.align=!0),"{"==i?d(t,e.column(),"}"):"["==i?d(t,e.column(),"]"):"("==i?d(t,e.column(),")"):"case"==i?n.type="case":"}"==i&&"}"==n.type?n=p(t):i==n.type&&p(t),t.startOfLine=!1),r},indent:function(e,t){if(e.tokenize!=l&&null!=e.tokenize)return 0;var n=e.context,r=t&&t.charAt(0);if("case"==n.type&&/^(?:case|default)\b/.test(t))return e.context.type="}",n.indented;var i=r==n.type;return n.align?n.column+(i?0:1):n.indented+(i?0:o)},electricChars:"{}):",fold:"brace",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}}),e.defineMIME("text/x-go","go")});
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(k){"use strict";function e(e){for(var t={},r=e.split(" "),o=0;o<r.length;++o)t[r[o]]=!0;return t}k.defineMode("clike",function(e,t){var i,a=e.indentUnit,l=t.statementIndentUnit||a,s=t.dontAlignCalls,c=t.keywords||{},u=t.builtin||{},d=t.blockKeywords||{},f=t.atoms||{},m=t.hooks||{},g=t.multiLineStrings,n=!1!==t.indentStatements,p=/[+\-*&%=<>!?|\/]/;function h(e,t){var a,r=e.next();if(m[r]){var o=m[r](e,t);if(!1!==o)return o}if('"'==r||"'"==r)return t.tokenize=(a=r,function(e,t){for(var r,o=!1,n=!1;null!=(r=e.next());){if(r==a&&!o){n=!0;break}o=!o&&"\\"==r}return(n||!o&&!g)&&(t.tokenize=null),"string"}),t.tokenize(e,t);if(/[\[\]{}\(\),;\:\.]/.test(r))return i=r,null;if(/\d/.test(r))return e.eatWhile(/[\w\.]/),"number";if("/"==r){if(e.eat("*"))return(t.tokenize=x)(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(p.test(r))return e.eatWhile(p),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var n=e.current();return c.propertyIsEnumerable(n)?(d.propertyIsEnumerable(n)&&(i="newstatement"),"keyword"):u.propertyIsEnumerable(n)?(d.propertyIsEnumerable(n)&&(i="newstatement"),"builtin"):f.propertyIsEnumerable(n)?"atom":"variable"}function x(e,t){for(var r,o=!1;r=e.next();){if("/"==r&&o){t.tokenize=null;break}o="*"==r}return"comment"}function y(e,t,r,o,n){this.indented=e,this.column=t,this.type=r,this.align=o,this.prev=n}function b(e,t,r){var o=e.indented;return e.context&&"statement"==e.context.type&&(o=e.context.indented),e.context=new y(o,t,r,null,e.context)}function w(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}return{startState:function(e){return{tokenize:null,context:new y((e||0)-a,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var r=t.context;if(e.sol()&&(null==r.align&&(r.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;i=null;var o=(t.tokenize||h)(e,t);if("comment"==o||"meta"==o)return o;if(null==r.align&&(r.align=!0),";"!=i&&":"!=i&&","!=i||"statement"!=r.type)if("{"==i)b(t,e.column(),"}");else if("["==i)b(t,e.column(),"]");else if("("==i)b(t,e.column(),")");else if("}"==i){for(;"statement"==r.type;)r=w(t);for("}"==r.type&&(r=w(t));"statement"==r.type;)r=w(t)}else i==r.type?w(t):n&&(("}"==r.type||"top"==r.type)&&";"!=i||"statement"==r.type&&"newstatement"==i)&&b(t,e.column(),"statement");else w(t);return t.startOfLine=!1,o},indent:function(e,t){if(e.tokenize!=h&&null!=e.tokenize)return k.Pass;var r=e.context,o=t&&t.charAt(0);"statement"==r.type&&"}"==o&&(r=r.prev);var n=o==r.type;return"statement"==r.type?r.indented+("{"==o?0:l):!r.align||s&&")"==r.type?")"!=r.type||n?r.indented+(n?0:a):r.indented+l:r.column+(n?0:1)},electricChars:"{}",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}});var t="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";function r(e,t){if(!t.startOfLine)return!1;for(;;){if(!e.skipTo("\\")){e.skipToEnd(),t.tokenize=null;break}if(e.next(),e.eol()){t.tokenize=r;break}}return"meta"}function o(e,t){if(e.backUp(1),e.match(/(R|u8R|uR|UR|LR)/)){var r=e.match(/"([^\s\\()]{0,16})\(/);return!!r&&(t.cpp11RawStringDelim=r[1],(t.tokenize=a)(e,t))}return e.match(/(u8|u|U|L)/)?!!e.match(/["']/,!1)&&"string":(e.next(),!1)}function n(e,t){for(var r;null!=(r=e.next());)if('"'==r&&!e.eat('"')){t.tokenize=null;break}return"string"}function a(e,t){var r=t.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&");return e.match(new RegExp(".*?\\)"+r+'"'))?t.tokenize=null:e.skipToEnd(),"string"}function i(e,t){"string"==typeof e&&(e=[e]);var r=[];function o(e){if(e)for(var t in e)e.hasOwnProperty(t)&&r.push(t)}o(t.keywords),o(t.builtin),o(t.atoms),r.length&&(t.helperType=e[0],k.registerHelper("hintWords",e[0],r));for(var n=0;n<e.length;++n)k.defineMIME(e[n]
!function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)}(function(T){"use strict";T.defineMode("xml",function(t,e){var i=t.indentUnit,l=e.multilineTagIndentFactor||1,u=e.multilineTagIndentPastTag;null==u&&(u=!0);var d,a,c=e.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,menuitem:!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},f=e.alignCDATA;function s(e,n){function t(t){return(n.tokenize=t)(e,n)}var r=e.next();return"<"==r?e.eat("!")?e.eat("[")?e.match("CDATA[")?t(o("atom","]]>")):null:e.match("--")?t(o("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),t(function r(o){return function(t,e){for(var n;null!=(n=t.next());){if("<"==n)return e.tokenize=r(o+1),e.tokenize(t,e);if(">"==n){if(1!=o)return e.tokenize=r(o-1),e.tokenize(t,e);e.tokenize=s;break}}return"meta"}}(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),n.tokenize=o("meta","?>"),"meta"):(d=e.eat("/")?"closeTag":"openTag",n.tokenize=m,"tag bracket"):"&"!=r?(e.eatWhile(/[^&<]/),null):(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error"}function m(t,e){var n=t.next();if(">"==n||"/"==n&&t.eat(">"))return e.tokenize=s,d=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return d="equals",null;if("<"!=n)return/[\'\"]/.test(n)?(e.tokenize=(r=n,(o=function(t,e){for(;!t.eol();)if(t.next()==r){e.tokenize=m;break}return"string"}).isInAttribute=!0,o),e.stringStartCol=t.column(),e.tokenize(t,e)):(t.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word");e.tokenize=s,e.state=x,e.tagName=e.tagStart=null;var r,o,a=e.tokenize(t,e);return a?a+" tag error":"tag error"}function o(n,r){return function(t,e){for(;!t.eol();){if(t.match(r)){e.tokenize=s;break}t.next()}return n}}function g(t,e,n){this.prev=t.context,this.tagName=e,this.indent=t.indented,this.startOfLine=n,(c.doNotIndent.hasOwnProperty(e)||t.context&&t.context.noIndent)&&(this.noIndent=!0)}function p(t){t.context&&(t.context=t.context.prev)}function h(t,e){for(var n;;){if(!t.context)return;if(n=t.context.tagName,!c.contextGrabbers.hasOwnProperty(n)||!c.contextGrabbers[n].hasOwnProperty(e))return;p(t)}}function x(t,e,n){return"openTag"==t?(n.tagStart=e.column(),r):"closeTag"==t?b:x}function r(t,e,n){return"word"==t?(n.tagName=e.current(),a="tag",y):(a="error",r)}function b(t,e,n){if("word"!=t)return a="error",w;var r=e.current();return n.context&&n.context.tagName!=r&&c.implicitlyClosed.hasOwnProperty(n.context.tagName)&&p(n),n.context&&n.context.tagName==r?(a="tag",k):(a="tag error",w)}function k(t,e,n){return"endTag"!=t?(a="error",k):(p(n),x)}function w(t,e,n){return a="error",k(t,0,n)}function y(t,e,n){if("word"==t)return a="attribute",v;if("endTag"!=t&&"selfcloseTag"!=t)return a="error",y;var r=n.tagName,o=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==t||c.autoSelfClosers.hasOwnProperty(r)?h(n,r):(h(n,r),n.context=new g(n,r,o==n.indented)),x}function v(t,e,n){return"equals"==t?z:(c.allowMissing||(a="error"),y(t,0,n))}function z(t,e,n){return"string"==t?N:"word"==t&&c.allowUnquoted?(a="string",y):(a="error",y(t,0,n))}function N(t,
!function(t){"object"==typeof exports&&"object"==typeof module?t(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"],t):t(CodeMirror)}(function(u){"use strict";u.defineMode("htmlmixed",function(t,e){var r=u.getMode(t,{name:"xml",htmlMode:!0,multilineTagIndentFactor:e.multilineTagIndentFactor,multilineTagIndentPastTag:e.multilineTagIndentPastTag}),s=u.getMode(t,"css"),i=[],a=e&&e.scriptTypes;if(i.push({matches:/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^$/i,mode:u.getMode(t,"javascript")}),a)for(var o=0;o<a.length;++o){var l=a[o];i.push({matches:l.matches,mode:l.mode&&u.getMode(t,l.mode)})}function n(t,e){var a=e.htmlState.tagName;a&&(a=a.toLowerCase());var o=r.token(t,e.htmlState);if("script"==a&&/\btag\b/.test(o)&&">"==t.current()){var l=t.string.slice(Math.max(0,t.pos-100),t.pos).match(/\btype\s*=\s*("[^"]+"|'[^']+'|\S+)[^<]*$/i);(l=l?l[1]:"")&&/[\"\']/.test(l.charAt(0))&&(l=l.slice(1,l.length-1));for(var n=0;n<i.length;++n){var c=i[n];if("string"==typeof c.matches?l==c.matches:c.matches.test(l)){c.mode&&(e.token=m,e.localMode=c.mode,e.localState=c.mode.startState&&c.mode.startState(r.indent(e.htmlState,"")));break}}}else"style"==a&&/\btag\b/.test(o)&&">"==t.current()&&(e.token=d,e.localMode=s,e.localState=s.startState(r.indent(e.htmlState,"")));return o}function c(t,e,a){var o=t.current(),l=o.search(e);return-1<l?t.backUp(o.length-l):o.match(/<\/?$/)&&(t.backUp(o.length),t.match(e,!1)||t.match(o)),a}function m(t,e){return t.match(/^<\/\s*script\s*>/i,!1)?(e.token=n,e.localState=e.localMode=null,null):c(t,/<\/\s*script\s*>/,e.localMode.token(t,e.localState))}function d(t,e){return t.match(/^<\/\s*style\s*>/i,!1)?(e.token=n,e.localState=e.localMode=null,null):c(t,/<\/\s*style\s*>/,s.token(t,e.localState))}return i.push({matches:/./,mode:u.getMode(t,"text/plain")}),{startState:function(){return{token:n,localMode:null,localState:null,htmlState:r.startState()}},copyState:function(t){if(t.localState)var e=u.copyState(t.localMode,t.localState);return{token:t.token,localMode:t.localMode,localState:e,htmlState:u.copyState(r,t.htmlState)}},token:function(t,e){return e.token(t,e)},indent:function(t,e){return!t.localMode||/^\s*<\//.test(e)?r.indent(t.htmlState,e):t.localMode.indent?t.localMode.indent(t.localState,e):u.Pass},innerMode:function(t){return{state:t.localState||t.htmlState,mode:t.localMode||r}}}},"xml","javascript","css"),u.defineMIME("text/html","htmlmixed")});
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(Ve){"use strict";Ve.defineMode("javascript",function(e,f){var n,a,s=e.indentUnit,d=f.statementIndent,o=f.jsonld,c=f.json||o,p=f.typescript,l=f.wordCharacters||/[\w$\xa1-\uffff]/,u=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),r=e("keyword b"),n=e("keyword c"),a=e("operator"),i={type:"atom",style:"atom"},o={if:e("if"),while:t,with:t,else:r,do:r,try:r,finally:r,return:n,break:n,continue:n,new:n,delete:n,throw:n,debugger:n,var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:a,typeof:a,instanceof:a,true:i,false:i,null:i,undefined:i,NaN:i,Infinity:i,this:e("this"),module:e("module"),class:e("class"),super:e("atom"),yield:n,export:e("export"),import:e("import"),extends:n};if(p){var c={type:"variable",style:"variable-3"},l={interface:e("interface"),extends:e("extends"),constructor:e("constructor"),public:e("public"),private:e("private"),protected:e("protected"),static:e("static"),string:c,number:c,bool:c,any:c};for(var u in l)o[u]=l[u]}return o}(),v=/[+\-*&%=<>!?|~^]/,m=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function y(e,t,r){return n=e,a=r,t}function k(e,t){var a,r=e.next();if('"'==r||"'"==r)return t.tokenize=(a=r,function(e,t){var r,n=!1;if(o&&"@"==e.peek()&&e.match(m))return t.tokenize=k,y("jsonld-keyword","meta");for(;null!=(r=e.next())&&(r!=a||n);)n=!n&&"\\"==r;return n||(t.tokenize=k),y("string","string")}),t.tokenize(e,t);if("."==r&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return y("number","number");if("."==r&&e.match(".."))return y("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return y(r);if("="==r&&e.eat(">"))return y("=>","operator");if("0"==r&&e.eat(/x/i))return e.eatWhile(/[\da-f]/i),y("number","number");if(/\d/.test(r))return e.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/),y("number","number");if("/"==r)return e.eat("*")?(t.tokenize=b)(e,t):e.eat("/")?(e.skipToEnd(),y("comment","comment")):"operator"==t.lastType||"keyword c"==t.lastType||"sof"==t.lastType||/^[\[{}\(,;:]$/.test(t.lastType)?(function(e){for(var t,r=!1,n=!1;null!=(t=e.next());){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}r=!r&&"\\"==t}}(e),e.match(/^\b(([gimyu])(?![gimyu]*\2))+\b/),y("regexp","string-2")):(e.eatWhile(v),y("operator","operator",e.current()));if("`"==r)return(t.tokenize=x)(e,t);if("#"==r)return e.skipToEnd(),y("error","error");if(v.test(r))return e.eatWhile(v),y("operator","operator",e.current());if(l.test(r)){e.eatWhile(l);var n=e.current(),i=u.propertyIsEnumerable(n)&&u[n];return i&&"."!=t.lastType?y(i.type,i.style,n):y("variable","variable",n)}}function b(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=k;break}n="*"==r}return y("comment","comment")}function x(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=k;break}n=!n&&"\\"==r}return y("quasi","string-2",e.current())}var h="([{}])";function i(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(r<0)){for(var n=0,a=!1,i=r-1;0<=i;--i){var o=e.string.charAt(i),c=h.indexOf(o);if(0<=c&&c<3){if(!n){++i;break}if(0==--n)break}else if(3<=c&&c<6)++n;else if(l.test(o))a=!0;else{if(/["'\/]/.test(o))return;if(a&&!n){++i;break}}}a&&!n&&(t.fatArrowAt=i)}}var g={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function w(e,t,r,n,a,i){this.indented=e,this.column=t,this.type=r,this.prev=a,this.info=i,null!=n&&(this.align=n)}function j(e,t){for(var r=e.localVars;r;r=r.next)if(r.name==t)return!0;for(var n=e.context;n;n=n.prev)for(r=n.vars;r;r=r.next)if(r.name==t)return!0}var M={state:null,column:null,marked:null,cc:null};function V(){for(var e=arguments.length-1;0<=e;e--)M.cc.push(arguments[e])}function E(){return V.apply(null,arguments),!0}function r(r){function e(e){for(var t=e;t;t=t.next)if(t.name==r)return!0;return!
!function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror"),require("../xml/xml"),require("../meta")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../xml/xml","../meta"],t):t(CodeMirror)}(function(P){"use strict";P.defineMode("markdown",function(o,x){var n=P.modes.hasOwnProperty("xml"),S=P.getMode(o,n?{name:"xml",htmlMode:!0}:"text/plain");void 0===x.highlightFormatting&&(x.highlightFormatting=!1),void 0===x.maxBlockquoteDepth&&(x.maxBlockquoteDepth=0),void 0===x.underscoresBreakWords&&(x.underscoresBreakWords=!0),void 0===x.fencedCodeBlocks&&(x.fencedCodeBlocks=!1),void 0===x.taskLists&&(x.taskLists=!1),void 0===x.strikethrough&&(x.strikethrough=!1);var L=0,r="header",l="comment",a="quote",h="variable-2",g="variable-3",s="keyword",f="hr",F="tag",u="formatting",b="link",q="link",m="link",M="string",c="em",d="strong",k="strikethrough",p=/^([*\-=_])(?:\s*\1){2,}\s*$/,v=/^[*\-+]\s+/,w=/^[0-9]+\.\s+/,C=/^\[(x| )\](?=\s)/,D=/^#+/,H=/^(?:\={1,}|-{1,})$/,i=/^[^#!\[\]*_\\<>` "'(~]+/;function T(t,e,i){return e.f=e.inline=i,i(t,e)}function B(t){return t.linkTitle=!1,t.em=!1,t.strong=!1,t.strikethrough=!1,t.quote=0,n||t.f!=_||(t.f=j,t.block=y),t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.thisLineHasContent=!1,null}function y(t,e){var i=t.sol(),n=!1!==e.list;!1!==e.list&&0<=e.indentationDiff?(e.indentationDiff<4&&(e.indentation-=e.indentationDiff),e.list=null):!1!==e.list&&0<e.indentation?(e.list=null,e.listDepth=Math.floor(e.indentation/4)):!1!==e.list&&(e.list=!1,e.listDepth=0);var r=null;if(4<=e.indentationDiff)return e.indentation-=4,t.skipToEnd(),l;if(t.eatSpace())return null;if(r=t.match(D))return e.header=r[0].length<=6?r[0].length:6,x.highlightFormatting&&(e.formatting="header"),e.f=e.inline,O(e);if(e.prevLineHasContent&&(r=t.match(H)))return e.header="="==r[0].charAt(0)?1:2,x.highlightFormatting&&(e.formatting="header"),e.f=e.inline,O(e);if(t.eat(">"))return e.indentation++,e.quote=i?1:e.quote+1,x.highlightFormatting&&(e.formatting="quote"),t.eatSpace(),O(e);if("["===t.peek())return T(t,e,U);if(t.match(p,!0))return f;if(e.prevLineHasContent&&!n||!t.match(v,!1)&&!t.match(w,!1))return x.fencedCodeBlocks&&t.match(/^```[ \t]*([\w+#]*)/,!0)?(e.localMode=function(t){if(P.findModeByName){var e=P.findModeByName(t);e&&(t=e.mime||e.mimes[0])}var i=P.getMode(o,t);return"null"==i.name?null:i}(RegExp.$1),e.localMode&&(e.localState=e.localMode.startState()),e.f=e.block=$,x.highlightFormatting&&(e.formatting="code-block"),e.code=!0,O(e)):T(t,e,e.inline);var a=null;return a=t.match(v,!0)?"ul":(t.match(w,!0),"ol"),e.indentation+=4,e.list=!0,e.listDepth++,x.taskLists&&t.match(C,!1)&&(e.taskList=!0),e.f=e.inline,x.highlightFormatting&&(e.formatting=["list","list-"+a]),O(e)}function _(t,e){var i=S.token(t,e.htmlState);return(n&&null===e.htmlState.tagStart&&!e.htmlState.context||e.md_inside&&-1<t.current().indexOf(">"))&&(e.f=j,e.block=y,e.htmlState=null),i}function $(t,e){return t.sol()&&t.match("```",!1)?(e.localMode=e.localState=null,e.f=e.block=N,null):e.localMode?e.localMode.token(t,e.localState):(t.skipToEnd(),l)}function N(t,e){t.match("```"),e.block=y,e.f=j,x.highlightFormatting&&(e.formatting="code-block"),e.code=!0;var i=O(e);return e.code=!1,i}function O(t){var e=[];if(t.formatting){e.push(u),"string"==typeof t.formatting&&(t.formatting=[t.formatting]);for(var i=0;i<t.formatting.length;i++)e.push(u+"-"+t.formatting[i]),"header"===t.formatting[i]&&e.push(u+"-"+t.formatting[i]+"-"+t.header),"quote"===t.formatting[i]&&(!x.maxBlockquoteDepth||x.maxBlockquoteDepth>=t.quote?e.push(u+"-"+t.formatting[i]+"-"+t.quote):e.push("error"))}if(t.taskOpen)return e.push("meta"),e.length?e.join(" "):null;if(t.taskClosed)return e.push("property"),e.length?e.join(" "):null;if(t.linkHref)return e.push(M),e.length?e.join(" "):null;if(t.strong&&e.push(d),t.em&&e.push(c),t.strikethrough&&e.push(k),t.linkText&&e.push(m),t.code&&e.push(l),t.header&&(e.push(r),e.push(r+"-"+t.header)),t.quote&&(e.push(a),!x.maxBlockquoteDepth||x.maxBlockquoteDepth>=t.quote?e.push(a+"-"+t.quote):e.push(a+"-"+x.maxBl
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(P){"use strict";function e(e){for(var t={},r=0;r<e.length;++r)t[e[r]]=!0;return t}P.defineMode("css",function(e,t){t.propertyKeywords||(t=P.resolveMode("text/css"));var o,a,i=e.indentUnit,n=t.tokenHooks,l=t.documentTypes||{},s=t.mediaTypes||{},c=t.mediaFeatures||{},d=t.propertyKeywords||{},u=t.nonStandardPropertyKeywords||{},p=t.fontProperties||{},m=t.counterDescriptors||{},r=t.colorKeywords||{},h=t.valueKeywords||{},g=t.allowNested;function b(e,t){return o=t,e}function f(a){return function(e,t){for(var r,o=!1;null!=(r=e.next());){if(r==a&&!o){")"==a&&e.backUp(1);break}o=!o&&"\\"==r}return(r==a||!o&&")"!=a)&&(t.tokenize=null),b("string","string")}}function k(e,t){return e.next(),e.match(/\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=f(")"),b(null,"(")}function y(e,t,r){this.type=e,this.indent=t,this.prev=r}function w(e,t,r){return e.context=new y(r,t.indentation()+i,e.context),r}function v(e){return e.context=e.context.prev,e.context.type}function x(e,t,r){return j[r.context.type](e,t,r)}function z(e,t,r,o){for(var a=o||1;0<a;a--)r.context=r.context.prev;return x(e,t,r)}function q(e){var t=e.current().toLowerCase();a=h.hasOwnProperty(t)?"atom":r.hasOwnProperty(t)?"keyword":"variable"}var j={top:function(e,t,r){if("{"==e)return w(r,t,"block");if("}"==e&&r.context.prev)return v(r);if(/@(media|supports|(-moz-)?document)/.test(e))return w(r,t,"atBlock");if(/@(font-face|counter-style)/.test(e))return r.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return w(r,t,"at");if("hash"==e)a="builtin";else if("word"==e)a="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return w(r,t,"interpolation");if(":"==e)return"pseudo";if(g&&"("==e)return w(r,t,"parens")}return r.context.type},block:function(e,t,r){if("word"!=e)return"meta"==e?"block":g||"hash"!=e&&"qualifier"!=e?j.top(e,t,r):(a="error","block");var o=t.current().toLowerCase();return d.hasOwnProperty(o)?(a="property","maybeprop"):u.hasOwnProperty(o)?(a="string-2","maybeprop"):g?(a=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(a+=" error","maybeprop")},maybeprop:function(e,t,r){return":"==e?w(r,t,"prop"):x(e,t,r)},prop:function(e,t,r){if(";"==e)return v(r);if("{"==e&&g)return w(r,t,"propBlock");if("}"==e||"{"==e)return z(e,t,r);if("("==e)return w(r,t,"parens");if("hash"!=e||/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t.current())){if("word"==e)q(t);else if("interpolation"==e)return w(r,t,"interpolation")}else a+=" error";return"prop"},propBlock:function(e,t,r){return"}"==e?v(r):"word"==e?(a="property","maybeprop"):r.context.type},parens:function(e,t,r){return"{"==e||"}"==e?z(e,t,r):")"==e?v(r):"("==e?w(r,t,"parens"):"interpolation"==e?w(r,t,"interpolation"):("word"==e&&q(t),"parens")},pseudo:function(e,t,r){return"word"==e?(a="variable-3",r.context.type):x(e,t,r)},atBlock:function(e,t,r){if("("==e)return w(r,t,"atBlock_parens");if("}"==e)return z(e,t,r);if("{"==e)return v(r)&&w(r,t,g?"block":"top");if("word"==e){var o=t.current().toLowerCase();a="only"==o||"not"==o||"and"==o||"or"==o?"keyword":l.hasOwnProperty(o)?"tag":s.hasOwnProperty(o)?"attribute":c.hasOwnProperty(o)?"property":d.hasOwnProperty(o)?"property":u.hasOwnProperty(o)?"string-2":h.hasOwnProperty(o)?"atom":"error"}return r.context.type},atBlock_parens:function(e,t,r){return")"==e?v(r):"{"==e||"}"==e?z(e,t,r,2):j.atBlock(e,t,r)},restricted_atBlock_before:function(e,t,r){return"{"==e?w(r,t,"restricted_atBlock"):"word"==e&&"@counter-style"==r.stateArg?(a="variable","restricted_atBlock_before"):x(e,t,r)},restricted_atBlock:function(e,t,r){return"}"==e?(r.stateArg=null,v(r)):"word"==e?(a="@font-face"==r.stateArg&&!p.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==r.stateArg&&!m.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(e,t,r){return"wor
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("shell",function(){var o={};function e(e,t){for(var n=t.split(" "),r=0;r<n.length;r++)o[n[r]]=e}function s(o){return function(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if(n===o&&!i){r=!0;break}if("$"===n&&!i&&"'"!==o){i=!0,e.backUp(1),t.tokens.unshift(u);break}i=!i&&"\\"===n}return!r&&i||t.tokens.shift(),"`"===o||")"===o?"quote":"string"}}e("atom","true false"),e("keyword","if then do else elif while until for in esac fi fin fil done exit set unset export function"),e("builtin","ab awk bash beep cat cc cd chown chmod chroot clear cp curl cut diff echo find gawk gcc get git grep kill killall ln ls make mkdir openssl mv nc node npm ping ps restart rm rmdir sed service sh shopt shred source sort sleep ssh start stop su sudo tee telnet top touch vi vim wall wc wget who write yes zsh");var u=function(e,t){1<t.tokens.length&&e.eat("$");var n=e.next(),r=/\w/;return"{"===n&&(r=/[^}]/),"("===n?(t.tokens[0]=s(")"),f(e,t)):(/\d/.test(n)||(e.eatWhile(r),e.eat("}")),t.tokens.shift(),"def")};function f(e,t){return(t.tokens[0]||function(e,t){if(e.eatSpace())return null;var n=e.sol(),r=e.next();if("\\"===r)return e.next(),null;if("'"===r||'"'===r||"`"===r)return t.tokens.unshift(s(r)),f(e,t);if("#"===r)return n&&e.eat("!")?(e.skipToEnd(),"meta"):(e.skipToEnd(),"comment");if("$"===r)return t.tokens.unshift(u),f(e,t);if("+"===r||"="===r)return"operator";if("-"===r)return e.eat("-"),e.eatWhile(/\w/),"attribute";if(/\d/.test(r)&&(e.eatWhile(/\d/),e.eol()||!/\w/.test(e.peek())))return"number";e.eatWhile(/[\w-]/);var i=e.current();return"="===e.peek()&&/\w+/.test(i)?"def":o.hasOwnProperty(i)?o[i]:null})(e,t)}return{startState:function(){return{tokens:[]}},token:function(e,t){return f(e,t)},lineComment:"#",fold:"brace"}}),e.defineMIME("text/x-sh","shell")});
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(f){"use strict";f.defineMode("sql",function(n,e){var o=e.client||{},s=e.atoms||{false:!0,true:!0,null:!0},l=e.builtin||{},c=e.keywords||{},u=e.operatorChars||/^[*+\-%<>!=&|~^]/,d=e.support||{},m=e.hooks||{},p=e.dateSQL||{date:!0,time:!0,timestamp:!0};function b(e,t){var n,r=e.next();if(m[r]){var a=m[r](e,t);if(!1!==a)return a}if(1==d.hexNumber&&("0"==r&&e.match(/^[xX][0-9a-fA-F]+/)||("x"==r||"X"==r)&&e.match(/^'[0-9a-fA-F]+'/)))return"number";if(1==d.binaryNumber&&(("b"==r||"B"==r)&&e.match(/^'[01]+'/)||"0"==r&&e.match(/^b[01]+/)))return"number";if(47<r.charCodeAt(0)&&r.charCodeAt(0)<58)return e.match(/^[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?/),1==d.decimallessFloat&&e.eat("."),"number";if("?"==r&&(e.eatSpace()||e.eol()||e.eat(";")))return"variable-3";if("'"==r||'"'==r&&d.doubleQuote)return t.tokenize=(n=r,function(e,t){for(var r,a=!1;null!=(r=e.next());){if(r==n&&!a){t.tokenize=b;break}a=!a&&"\\"==r}return"string"}),t.tokenize(e,t);if((1==d.nCharCast&&("n"==r||"N"==r)||1==d.charsetCast&&"_"==r&&e.match(/[a-z][a-z0-9]*/i))&&("'"==e.peek()||'"'==e.peek()))return"keyword";if(/^[\(\),\;\[\]]/.test(r))return null;if(d.commentSlashSlash&&"/"==r&&e.eat("/"))return e.skipToEnd(),"comment";if(d.commentHash&&"#"==r||"-"==r&&e.eat("-")&&(!d.commentSpaceRequired||e.eat(" ")))return e.skipToEnd(),"comment";if("/"==r&&e.eat("*"))return t.tokenize=h,t.tokenize(e,t);if("."==r)return 1==d.zerolessFloat&&e.match(/^(?:\d+(?:e[+-]?\d+)?)/i)?"number":1==d.ODBCdotTable&&e.match(/^[a-zA-Z_]+/)?"variable-2":void 0;if(u.test(r))return e.eatWhile(u),null;if("{"==r&&(e.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||e.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";e.eatWhile(/^[_\w\d]/);var i=e.current().toLowerCase();return p.hasOwnProperty(i)&&(e.match(/^( )+'[^']*'/)||e.match(/^( )+"[^"]*"/))?"number":s.hasOwnProperty(i)?"atom":l.hasOwnProperty(i)?"builtin":c.hasOwnProperty(i)?"keyword":o.hasOwnProperty(i)?"string-2":null}function h(e,t){for(;;){if(!e.skipTo("*")){e.skipToEnd();break}if(e.next(),e.eat("/")){t.tokenize=b;break}}return"comment"}function i(e,t,r){t.context={prev:t.context,indent:e.indentation(),col:e.column(),type:r}}return{startState:function(){return{tokenize:b,context:null}},token:function(e,t){if(e.sol()&&t.context&&null==t.context.align&&(t.context.align=!1),e.eatSpace())return null;var r=t.tokenize(e,t);if("comment"==r)return r;t.context&&null==t.context.align&&(t.context.align=!0);var a,n=e.current();return"("==n?i(e,t,")"):"["==n?i(e,t,"]"):t.context&&t.context.type==n&&((a=t).indent=a.context.indent,a.context=a.context.prev),r},indent:function(e,t){var r=e.context;if(!r)return f.Pass;var a=t.charAt(0)==r.type;return r.align?r.col+(a?0:1):r.indent+(a?0:n.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:d.commentSlashSlash?"//":d.commentHash?"#":null}}),function(){function e(e){for(var t;null!=(t=e.next());)if("`"==t&&!e.eat("`"))return"variable-2";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"variable-2":null}function t(e){return e.eat("@")&&(e.match(/^session\./),e.match(/^local\./),e.match(/^global\./)),e.eat("'")?(e.match(/^.*'/),"variable-2"):e.eat('"')?(e.match(/^.*"/),"variable-2"):e.eat("`")?(e.match(/^.*`/),"variable-2"):e.match(/^[0-9a-zA-Z$\.\_]+/)?"variable-2":null}function r(e){return e.eat("N")?"atom":e.match(/^[a-zA-Z.#!?]/)?"variable-2":null}var a="alter and as asc between by count create delete desc distinct drop from having in insert into is join like not on or order select set table union update values where ";function n(e){for(var t={},r=e.split(" "),a=0;a<r.length;++a)t[r[a]]=!0;return t}f.defineMIME("text/x-sql",{name:"sql",keywords:n(a+"begin"),builtin:n("bool boolean bit blob enum long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinar
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../lib/codemirror"),require("../addon/search/searchcursor"),require("../addon/dialog/dialog"),require("../addon/edit/matchbrackets.js")):"function"==typeof define&&define.amd?define(["../lib/codemirror","../addon/search/searchcursor","../addon/dialog/dialog","../addon/edit/matchbrackets"],e):e(CodeMirror)}(function(_e){"use strict";var Ve=[{keys:"<Left>",type:"keyToKey",toKeys:"h"},{keys:"<Right>",type:"keyToKey",toKeys:"l"},{keys:"<Up>",type:"keyToKey",toKeys:"k"},{keys:"<Down>",type:"keyToKey",toKeys:"j"},{keys:"<Space>",type:"keyToKey",toKeys:"l"},{keys:"<BS>",type:"keyToKey",toKeys:"h",context:"normal"},{keys:"<C-Space>",type:"keyToKey",toKeys:"W"},{keys:"<C-BS>",type:"keyToKey",toKeys:"B",context:"normal"},{keys:"<S-Space>",type:"keyToKey",toKeys:"w"},{keys:"<S-BS>",type:"keyToKey",toKeys:"b",context:"normal"},{keys:"<C-n>",type:"keyToKey",toKeys:"j"},{keys:"<C-p>",type:"keyToKey",toKeys:"k"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"xi",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"dcc",context:"visual"},{keys:"<Home>",type:"keyToKey",toKeys:"0"},{keys:"<End>",type:"keyToKey",toKeys:"$"},{keys:"<PageUp>",type:"keyToKey",toKeys:"<C-b>"},{keys:"<PageDown>",type:"keyToKey",toKeys:"<C-f>"},{keys:"<CR>",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"<C-f>",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"<C-b>",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"<C-d>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"<C-u>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionAr
var jsonlint=function(){var t={trace:function(){},yy:{},symbols_:{error:2,JSONString:3,STRING:4,JSONNumber:5,NUMBER:6,JSONNullLiteral:7,NULL:8,JSONBooleanLiteral:9,TRUE:10,FALSE:11,JSONText:12,JSONValue:13,EOF:14,JSONObject:15,JSONArray:16,"{":17,"}":18,JSONMemberList:19,JSONMember:20,":":21,",":22,"[":23,"]":24,JSONElementList:25,$accept:0,$end:1},terminals_:{2:"error",4:"STRING",6:"NUMBER",8:"NULL",10:"TRUE",11:"FALSE",14:"EOF",17:"{",18:"}",21:":",22:",",23:"[",24:"]"},productions_:[0,[3,1],[5,1],[7,1],[9,1],[9,1],[12,2],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[15,2],[15,3],[20,3],[19,1],[19,3],[16,2],[16,3],[25,1],[25,3]],performAction:function(t,e,i,n,s,r,h){var l=r.length-1;switch(s){case 1:this.$=t.replace(/\\(\\|")/g,"$1").replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g,"\t").replace(/\\v/g,"\v").replace(/\\f/g,"\f").replace(/\\b/g,"\b");break;case 2:this.$=Number(t);break;case 3:this.$=null;break;case 4:this.$=!0;break;case 5:this.$=!1;break;case 6:return this.$=r[l-1];case 13:this.$={};break;case 14:this.$=r[l-1];break;case 15:this.$=[r[l-2],r[l]];break;case 16:this.$={},this.$[r[l][0]]=r[l][1];break;case 17:this.$=r[l-2],r[l-2][r[l][0]]=r[l][1];break;case 18:this.$=[];break;case 19:this.$=r[l-1];break;case 20:this.$=[r[l]];break;case 21:this.$=r[l-2],r[l-2].push(r[l])}},table:[{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],12:1,13:2,15:7,16:8,17:[1,14],23:[1,15]},{1:[3]},{14:[1,16]},{14:[2,7],18:[2,7],22:[2,7],24:[2,7]},{14:[2,8],18:[2,8],22:[2,8],24:[2,8]},{14:[2,9],18:[2,9],22:[2,9],24:[2,9]},{14:[2,10],18:[2,10],22:[2,10],24:[2,10]},{14:[2,11],18:[2,11],22:[2,11],24:[2,11]},{14:[2,12],18:[2,12],22:[2,12],24:[2,12]},{14:[2,3],18:[2,3],22:[2,3],24:[2,3]},{14:[2,4],18:[2,4],22:[2,4],24:[2,4]},{14:[2,5],18:[2,5],22:[2,5],24:[2,5]},{14:[2,1],18:[2,1],21:[2,1],22:[2,1],24:[2,1]},{14:[2,2],18:[2,2],22:[2,2],24:[2,2]},{3:20,4:[1,12],18:[1,17],19:18,20:19},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:23,15:7,16:8,17:[1,14],23:[1,15],24:[1,21],25:22},{1:[2,6]},{14:[2,13],18:[2,13],22:[2,13],24:[2,13]},{18:[1,24],22:[1,25]},{18:[2,16],22:[2,16]},{21:[1,26]},{14:[2,18],18:[2,18],22:[2,18],24:[2,18]},{22:[1,28],24:[1,27]},{22:[2,20],24:[2,20]},{14:[2,14],18:[2,14],22:[2,14],24:[2,14]},{3:20,4:[1,12],20:29},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:30,15:7,16:8,17:[1,14],23:[1,15]},{14:[2,19],18:[2,19],22:[2,19],24:[2,19]},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:31,15:7,16:8,17:[1,14],23:[1,15]},{18:[2,17],22:[2,17]},{18:[2,15],22:[2,15]},{22:[2,21],24:[2,21]}],defaultActions:{16:[2,6]},parseError:function(t,e){throw new Error(t)},parse:function(t){var e=this,i=[0],n=[null],s=[],r=this.table,h="",l=0,o=0,a=0;this.lexer.setInput(t),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var c=this.lexer.yylloc;function u(){var t;return"number"!=typeof(t=e.lexer.lex()||1)&&(t=e.symbols_[t]||t),t}s.push(c),"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var y,p,f,g,m,d,x,_,b,E,S={};;){if(f=i[i.length-1],void 0===(g=this.defaultActions[f]?this.defaultActions[f]:(null==y&&(y=u()),r[f]&&r[f][y]))||!g.length||!g[0]){if(!a){for(d in b=[],r[f])this.terminals_[d]&&2<d&&b.push("'"+this.terminals_[d]+"'");var k="";k=this.lexer.showPosition?"Parse error on line "+(l+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+b.join(", ")+", got '"+this.terminals_[y]+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==y?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(k,{text:this.lexer.match,token:this.terminals_[y]||y,line:this.lexer.yylineno,loc:c,expected:b})}if(3==a){if(1==y)throw new Error(k||"Parsing halted.");o=this.lexer.yyleng,h=this.lexer.yytext,l=this.lexer.yylineno,c=this.lexer.yylloc,y=u()}for(;!(2..toString()in r[f]);){if(0==f)throw new Error(k||"Parsing halted.");E=1,i.length=i.length-2*E,n.length=n.length-E,s.length=s.length-E,f=i[i.length-1]}p=y,y=2,g=r[f=i[i.length-1]]&&r[f][2],a=3}if(g[0]instanceof Array&&1<g.length)throw new Error("Parse
goLintFound=[],function(n){"use strict";n.registerHelper("lint","go",function(n){return goLintFound})}(CodeMirror);