ber-security.graylog.graylog-plugin-alert-wizard.5.2.1.source-code.17a63c96eb9a52f5847f13d40801a937.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of graylog-plugin-alert-wizard Show documentation
Show all versions of graylog-plugin-alert-wizard Show documentation
Graylog ${project.artifactId} plugin.
The newest version!
(()=>{var X=(_,b)=>()=>(b||_((b={exports:{}}).exports,b),b.exports);var J=X((K,U)=>{ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(_,b,Y){"use strict";var V=_("./lib/dom"),z=_("./lib/oop"),B=_("./lib/event_emitter").EventEmitter,A=_("./lib/lang"),$=_("./range").Range,T=_("./range_list").RangeList,k=_("./keyboard/hash_handler").HashHandler,O=_("./tokenizer").Tokenizer,N=_("./clipboard"),C={CURRENT_WORD:function(n){return n.session.getTextRange(n.session.getWordRange())},SELECTION:function(n,e,t){var s=n.session.getTextRange();return t?s.replace(/\n\r?([ \t]*\S)/g,`
`+t+"$1"):s},CURRENT_LINE:function(n){return n.session.getLine(n.getCursorPosition().row)},PREV_LINE:function(n){return n.session.getLine(n.getCursorPosition().row-1)},LINE_INDEX:function(n){return n.getCursorPosition().row},LINE_NUMBER:function(n){return n.getCursorPosition().row+1},SOFT_TABS:function(n){return n.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(n){return n.session.getTabSize()},CLIPBOARD:function(n){return N.getText&&N.getText()},FILENAME:function(n){return/[^/\\]*$/.exec(this.FILEPATH(n))[0]},FILENAME_BASE:function(n){return/[^/\\]*$/.exec(this.FILEPATH(n))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(n){return this.FILEPATH(n).replace(/[^/\\]*$/,"")},FILEPATH:function(n){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(n){var e=n.session.$mode||{};return e.blockComment&&e.blockComment.start||""},BLOCK_COMMENT_END:function(n){var e=n.session.$mode||{};return e.blockComment&&e.blockComment.end||""},LINE_COMMENT:function(n){var e=n.session.$mode||{};return e.lineCommentStart||""},CURRENT_YEAR:E.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:E.bind(null,{year:"2-digit"}),CURRENT_MONTH:E.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:E.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:E.bind(null,{month:"short"}),CURRENT_DATE:E.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:E.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:E.bind(null,{weekday:"short"}),CURRENT_HOUR:E.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:E.bind(null,{minute:"2-digit"}),CURRENT_SECOND:E.bind(null,{second:"2-digit"})};C.SELECTED_TEXT=C.SELECTION;function E(n){var e=new Date().toLocaleString("en-us",n);return e.length==1?"0"+e:e}var R=function(){this.snippetMap={},this.snippetNameMap={}};(function(){z.implement(this,B),this.getTokenizer=function(){return R.$tokenizer||this.createTokenizer()},this.createTokenizer=function(){function e(i){return i=i.substr(1),/^\d+$/.test(i)?[{tabstopId:parseInt(i,10)}]:[{text:i}]}function t(i){return"(?:[^\\\\"+i+"]|\\\\.)"}var s={regex:"/("+t("/")+"+)/",onMatch:function(i,c,o){var r=o[0];return r.fmtString=!0,r.guard=i.slice(1,-1),r.flag="",""},next:"formatString"};return R.$tokenizer=new O({start:[{regex:/\\./,onMatch:function(i,c,o){var r=i[1];return(r=="}"&&o.length||"`$\\".indexOf(r)!=-1)&&(i=r),[i]}},{regex:/}/,onMatch:function(i,c,o){return[o.length?o.shift():i]}},{regex:/\$(?:\d+|\w+)/,onMatch:e},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(i,c,o){var r=e(i.substr(1));return o.unshift(r[0]),r},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+t("\\|")+"*\\|",onMatch:function(i,c,o){var r=i.slice(1,-1).replace(/\\[,|\\]|,/g,function(f){return f.length==2?f[1]:"\0"}).split("\0").map(function(f){return{value:f}});return o[0].choices=r,[r[0]]},next:"start"},s,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(i,c,o){return o.length&&o[0].expectElse?(o[0].expectElse=!1,o[0].ifEnd={elseEnd:o[0]},[o[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(i,c,o){var r=i[1];return r=="}"&&o.length||"`$\\".indexOf(r)!=-1?i=r:r=="n"?i=`
`:r=="t"?i=" ":"ulULE".indexOf(r)!=-1&&(i={changeCase:r,local:r>"a"}),[i]}},{regex:"/\\w*}",onMatch:function(i,c,o){var r=o.shift();return r&&(r.flag=i.slice(1,-1)),this.next=r&&r.tabstopId?"start":"",[r||i]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(i,c,o){return[{text:i.slice(1)}]}},{regex:/\${\w+/,onMatch:function(i,c,o){var r={text:i.slice(2)};return o.unshift(r),[r]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(i,c,o){var r=o.shift();return this.next=r&&r.tabstopId?"start":"",[r||i]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(i,c,o){var r=o[0];return r.formatFunction=i.slice(2,-1),[o.shift()]},next:"formatString"},s,{regex:/:[\?\-+]?/,onMatch:function(i,c,o){i[1]=="+"&&(o[0].ifEnd=o[0]),i[1]=="?"&&(o[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),R.$tokenizer},this.tokenizeTmSnippet=function(e,t){return this.getTokenizer().getLineTokens(e,t).tokens.map(function(s){return s.value||s})},this.getVariableValue=function(e,t,s){if(/^\d+$/.test(t))return(this.variables.__||{})[t]||"";if(/^[A-Z]\d+$/.test(t))return(this.variables[t[0]+"__"]||{})[t.substr(1)]||"";if(t=t.replace(/^TM_/,""),!this.variables.hasOwnProperty(t))return"";var i=this.variables[t];return typeof i=="function"&&(i=this.variables[t](e,t,s)),i==null?"":i},this.variables=C,this.tmStrFormat=function(e,t,s){if(!t.fmt)return e;var i=t.flag||"",c=t.guard;c=new RegExp(c,i.replace(/[^gim]/g,""));var o=typeof t.fmt=="string"?this.tokenizeTmSnippet(t.fmt,"formatString"):t.fmt,r=this,f=e.replace(c,function(){var a=r.variables.__;r.variables.__=[].slice.call(arguments);for(var u=r.resolveVariables(o,s),S="E",m=0;m1?(P=M[M.length-1].length,j+=M.length-1):P+=v.length,D+=v}else v&&(v.start?v.end={row:j,column:P}:v.start={row:j,column:P})}),{text:D,tabstops:a,tokens:f}};this.getDisplayTextForSnippet=function(e,t){var s=n.call(this,e,t);return s.text},this.insertSnippetForSelection=function(e,t,s){var i=n.call(this,e,t),c=e.getSelectionRange();s&&s.compareRange(c)===0&&(c=s);var o=e.session.replace(c,i.text),r=new h(e),f=e.inVirtualSelectionMode&&e.selection.index;r.addTabstops(i.tabstops,c.start,o,f)},this.insertSnippet=function(e,t,s){var i=this;if(e.inVirtualSelectionMode)return i.insertSnippetForSelection(e,t,s);e.forEachSelection(function(){i.insertSnippetForSelection(e,t,s)},null,{keepOrder:!0}),e.tabstopManager&&e.tabstopManager.tabNext()},this.$getScope=function(e){var t=e.session.$mode.$id||"";if(t=t.split("/").pop(),t==="html"||t==="php"){t==="php"&&!e.session.$mode.inlinePhp&&(t="html");var s=e.getCursorPosition(),i=e.session.getState(s.row);typeof i=="object"&&(i=i[0]),i.substring&&(i.substring(0,3)=="js-"?t="javascript":i.substring(0,4)=="css-"?t="css":i.substring(0,4)=="php-"&&(t="php"))}return t},this.getActiveScopes=function(e){var t=this.$getScope(e),s=[t],i=this.snippetMap;return i[t]&&i[t].includeScopes&&s.push.apply(s,i[t].includeScopes),s.push("_"),s},this.expandWithTab=function(e,t){var s=this,i=e.forEachSelection(function(){return s.expandSnippetForSelection(e,t)},null,{keepOrder:!0});return i&&e.tabstopManager&&e.tabstopManager.tabNext(),i},this.expandSnippetForSelection=function(e,t){var s=e.getCursorPosition(),i=e.session.getLine(s.row),c=i.substring(0,s.column),o=i.substr(s.column),r=this.snippetMap,f;return this.getActiveScopes(e).some(function(a){var u=r[a];return u&&(f=this.findMatchingSnippet(u,c,o)),!!f},this),f?(t&&t.dryRun||(e.session.doc.removeInLine(s.row,s.column-f.replaceBefore.length,s.column+f.replaceAfter.length),this.variables.M__=f.matchBefore,this.variables.T__=f.matchAfter,this.insertSnippetForSelection(e,f.content),this.variables.M__=this.variables.T__=null),!0):!1},this.findMatchingSnippet=function(e,t,s){for(var i=e.length;i--;){var c=e[i];if(!(c.startRe&&!c.startRe.test(t))&&!(c.endRe&&!c.endRe.test(s))&&!(!c.startRe&&!c.endRe))return c.matchBefore=c.startRe?c.startRe.exec(t):[""],c.matchAfter=c.endRe?c.endRe.exec(s):[""],c.replaceBefore=c.triggerRe?c.triggerRe.exec(t)[0]:"",c.replaceAfter=c.endTriggerRe?c.endTriggerRe.exec(s)[0]:"",c}},this.snippetMap={},this.snippetNameMap={},this.register=function(e,t){var s=this.snippetMap,i=this.snippetNameMap,c=this;e||(e=[]);function o(a){return a&&!/^\^?\(.*\)\$?$|^\\b$/.test(a)&&(a="(?:"+a+")"),a||""}function r(a,u,S){return a=o(a),u=o(u),S?(a=u+a,a&&a[a.length-1]!="$"&&(a=a+"$")):(a=a+u,a&&a[0]!="^"&&(a="^"+a)),new RegExp(a)}function f(a){a.scope||(a.scope=t||"_"),t=a.scope,s[t]||(s[t]=[],i[t]={});var u=i[t];if(a.name){var S=u[a.name];S&&c.unregister(S),u[a.name]=a}s[t].push(a),a.prefix&&(a.tabTrigger=a.prefix),!a.content&&a.body&&(a.content=Array.isArray(a.body)?a.body.join(`
`):a.body),a.tabTrigger&&!a.trigger&&(!a.guard&&/^\w/.test(a.tabTrigger)&&(a.guard="\\b"),a.trigger=A.escapeRegExp(a.tabTrigger)),!(!a.trigger&&!a.guard&&!a.endTrigger&&!a.endGuard)&&(a.startRe=r(a.trigger,a.guard,!0),a.triggerRe=new RegExp(a.trigger),a.endRe=r(a.endTrigger,a.endGuard,!0),a.endTriggerRe=new RegExp(a.endTrigger))}Array.isArray(e)?e.forEach(f):Object.keys(e).forEach(function(a){f(e[a])}),this._signal("registerSnippets",{scope:t})},this.unregister=function(e,t){var s=this.snippetMap,i=this.snippetNameMap;function c(o){var r=i[o.scope||t];if(r&&r[o.name]){delete r[o.name];var f=s[o.scope||t],a=f&&f.indexOf(o);a>=0&&f.splice(a,1)}}e.content?c(e):Array.isArray(e)&&e.forEach(c)},this.parseSnippetFile=function(e){e=e.replace(/\r/g,"");for(var t=[],s={},i=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,c;c=i.exec(e);){if(c[1])try{s=JSON.parse(c[1]),t.push(s)}catch{}if(c[4])s.content=c[4].replace(/^\t/gm,""),t.push(s),s={};else{var o=c[2],r=c[3];if(o=="regex"){var f=/\/((?:[^\/\\]|\\.)*)|$/g;s.guard=f.exec(r)[1],s.trigger=f.exec(r)[1],s.endTrigger=f.exec(r)[1],s.endGuard=f.exec(r)[1]}else o=="snippet"?(s.tabTrigger=r.match(/^\S*/)[0],s.name||(s.name=r)):o&&(s[o]=r)}}return t},this.getSnippetByName=function(e,t){var s=this.snippetNameMap,i;return this.getActiveScopes(t).some(function(c){var o=s[c];return o&&(i=o[e]),!!i},this),i}}).call(R.prototype);var h=function(n){if(n.tabstopManager)return n.tabstopManager;n.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=A.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(n)};(function(){this.attach=function(n){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=n,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},this.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges=null,this.tabstops=null,this.selectedTabstop=null,this.editor.removeListener("change",this.$onChange),this.editor.removeListener("changeSelection",this.$onChangeSelection),this.editor.removeListener("changeSession",this.$onChangeSession),this.editor.commands.removeListener("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.editor=null},this.onChange=function(n){for(var e=n.action[0]=="r",t=this.selectedTabstop||{},s=t.parents||{},i=(this.tabstops||[]).slice(),c=0;c2&&(this.tabstops.length&&o.push(o.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,o))},this.addTabstopMarkers=function(n){var e=this.editor.session;n.forEach(function(t){t.markerId||(t.markerId=e.addMarker(t,"ace_snippet-marker","text"))})},this.removeTabstopMarkers=function(n){var e=this.editor.session;n.forEach(function(t){e.removeMarker(t.markerId),t.markerId=null})},this.removeRange=function(n){var e=n.tabstop.indexOf(n);e!=-1&&n.tabstop.splice(e,1),e=this.ranges.indexOf(n),e!=-1&&this.ranges.splice(e,1),e=n.tabstop.rangeList.ranges.indexOf(n),e!=-1&&n.tabstop.splice(e,1),this.editor.session.removeMarker(n.markerId),n.tabstop.length||(e=this.tabstops.indexOf(n.tabstop),e!=-1&&this.tabstops.splice(e,1),this.tabstops.length||this.detach())},this.keyboardHandler=new k,this.keyboardHandler.bindKeys({Tab:function(n){b.snippetManager&&b.snippetManager.expandWithTab(n)||(n.tabstopManager.tabNext(1),n.renderer.scrollCursorIntoView())},"Shift-Tab":function(n){n.tabstopManager.tabNext(-1),n.renderer.scrollCursorIntoView()},Esc:function(n){n.tabstopManager.detach()}})}).call(h.prototype);var l=function(n,e){n.row==0&&(n.column+=e.column),n.row+=e.row},p=function(n,e){n.row==e.row&&(n.column-=e.column),n.row-=e.row};V.importCssString(`
.ace_snippet-marker {
-moz-box-sizing: border-box;
box-sizing: border-box;
background: rgba(194, 193, 208, 0.09);
border: 1px dotted rgba(211, 208, 235, 0.62);
position: absolute;
}`,"snippets.css",!1),b.snippetManager=new R;var g=_("./editor").Editor;(function(){this.insertSnippet=function(n,e){return b.snippetManager.insertSnippet(this,n,e)},this.expandSnippet=function(n){return b.snippetManager.expandWithTab(this,n)}}).call(g.prototype)});ace.define("ace/ext/emmet",["require","exports","module","ace/keyboard/hash_handler","ace/editor","ace/snippets","ace/range","ace/config","resources","resources","tabStops","resources","utils","actions"],function(_,b,Y){"use strict";var V=_("../keyboard/hash_handler").HashHandler,z=_("../editor").Editor,B=_("../snippets").snippetManager,A=_("../range").Range,$=_("../config"),T,k,O=function(){function h(){}return h.prototype.setupContext=function(l){this.ace=l,this.indentation=l.session.getTabString(),T||(T=window.emmet);var p=T.resources||T.require("resources");p.setVariable("indentation",this.indentation),this.$syntax=null,this.$syntax=this.getSyntax()},h.prototype.getSelectionRange=function(){var l=this.ace.getSelectionRange(),p=this.ace.session.doc;return{start:p.positionToIndex(l.start),end:p.positionToIndex(l.end)}},h.prototype.createSelection=function(l,p){var g=this.ace.session.doc;this.ace.selection.setRange({start:g.indexToPosition(l),end:g.indexToPosition(p)})},h.prototype.getCurrentLineRange=function(){var l=this.ace,p=l.getCursorPosition().row,g=l.session.getLine(p).length,n=l.session.doc.positionToIndex({row:p,column:0});return{start:n,end:n+g}},h.prototype.getCaretPos=function(){var l=this.ace.getCursorPosition();return this.ace.session.doc.positionToIndex(l)},h.prototype.setCaretPos=function(l){var p=this.ace.session.doc.indexToPosition(l);this.ace.selection.moveToPosition(p)},h.prototype.getCurrentLine=function(){var l=this.ace.getCursorPosition().row;return this.ace.session.getLine(l)},h.prototype.replaceContent=function(l,p,g,n){g==null&&(g=p==null?this.getContent().length:p),p==null&&(p=0);var e=this.ace,t=e.session.doc,s=A.fromPoints(t.indexToPosition(p),t.indexToPosition(g));e.session.remove(s),s.end=s.start,l=this.$updateTabstops(l),B.insertSnippet(e,l)},h.prototype.getContent=function(){return this.ace.getValue()},h.prototype.getSyntax=function(){if(this.$syntax)return this.$syntax;var l=this.ace.session.$modeId.split("/").pop();if(l=="html"||l=="php"){var p=this.ace.getCursorPosition(),g=this.ace.session.getState(p.row);typeof g!="string"&&(g=g[0]),g&&(g=g.split("-"),g.length>1?l=g[0]:l=="php"&&(l="html"))}return l},h.prototype.getProfileName=function(){var l=T.resources||T.require("resources");switch(this.getSyntax()){case"css":return"css";case"xml":case"xsl":return"xml";case"html":var p=l.getVariable("profile");return p||(p=this.ace.session.getLines(0,2).join("").search(/]+XHTML/i)!=-1?"xhtml":"html"),p;default:var g=this.ace.session.$mode;return g.emmetConfig&&g.emmetConfig.profile||"xhtml"}},h.prototype.prompt=function(l){return prompt(l)},h.prototype.getSelection=function(){return this.ace.session.getTextRange()},h.prototype.getFilePath=function(){return""},h.prototype.$updateTabstops=function(l){var p=1e3,g=0,n=null,e=T.tabStops||T.require("tabStops"),t=T.resources||T.require("resources"),s=t.getVocabulary("user"),i={tabstop:function(o){var r=parseInt(o.group,10),f=r===0;f?r=++g:r+=p;var a=o.placeholder;a&&(a=e.processText(a,i));var u="${"+r+(a?":"+a:"")+"}";return f&&(n=[o.start,u]),u},escape:function(o){return o=="$"?"\\$":o=="\\"?"\\\\":o}};if(l=e.processText(l,i),s.variables.insert_final_tabstop&&!/\$\{0\}$/.test(l))l+="${0}";else if(n){var c=T.utils?T.utils.common:T.require("utils");l=c.replaceSubstring(l,"${0}",n[0],n[1])}return l},h}(),N={expand_abbreviation:{mac:"ctrl+alt+e",win:"alt+e"},match_pair_outward:{mac:"ctrl+d",win:"ctrl+,"},match_pair_inward:{mac:"ctrl+j",win:"ctrl+shift+0"},matching_pair:{mac:"ctrl+alt+j",win:"alt+j"},next_edit_point:"alt+right",prev_edit_point:"alt+left",toggle_comment:{mac:"command+/",win:"ctrl+/"},split_join_tag:{mac:"shift+command+'",win:"shift+ctrl+`"},remove_tag:{mac:"command+'",win:"shift+ctrl+;"},evaluate_math_expression:{mac:"shift+command+y",win:"shift+ctrl+y"},increment_number_by_1:"ctrl+up",decrement_number_by_1:"ctrl+down",increment_number_by_01:"alt+up",decrement_number_by_01:"alt+down",increment_number_by_10:{mac:"alt+command+up",win:"shift+alt+up"},decrement_number_by_10:{mac:"alt+command+down",win:"shift+alt+down"},select_next_item:{mac:"shift+command+.",win:"shift+ctrl+."},select_previous_item:{mac:"shift+command+,",win:"shift+ctrl+,"},reflect_css_value:{mac:"shift+command+r",win:"shift+ctrl+r"},encode_decode_data_url:{mac:"shift+ctrl+d",win:"ctrl+'"},expand_abbreviation_with_tab:"Tab",wrap_with_abbreviation:{mac:"shift+ctrl+a",win:"shift+ctrl+a"}},C=new O;b.commands=new V,b.runEmmetCommand=function h(l){if(this.action=="expand_abbreviation_with_tab"){if(!l.selection.isEmpty())return!1;var p=l.selection.lead,g=l.session.getTokenAt(p.row,p.column);if(g&&/\btag\b/.test(g.type))return!1}try{C.setupContext(l);var n=T.actions||T.require("actions");if(this.action=="wrap_with_abbreviation")return setTimeout(function(){n.run("wrap_with_abbreviation",C)},0);var e=n.run(this.action,C)}catch(s){if(!T){var t=b.load(h.bind(this,l));return this.action=="expand_abbreviation_with_tab"?!1:t}l._signal("changeStatus",typeof s=="string"?s:s.message),$.warn(s),e=!1}return e};for(var E in N)b.commands.addCommand({name:"emmet:"+E,action:E,bindKey:N[E],exec:b.runEmmetCommand,multiSelectAction:"forEach"});b.updateCommands=function(h,l){l?h.keyBinding.addKeyboardHandler(b.commands):h.keyBinding.removeKeyboardHandler(b.commands)},b.isSupportedMode=function(h){if(!h)return!1;if(h.emmetConfig)return!0;var l=h.$id||h;return/css|less|scss|sass|stylus|html|php|twig|ejs|handlebars/.test(l)},b.isAvailable=function(h,l){if(/(evaluate_math_expression|expand_abbreviation)$/.test(l))return!0;var p=h.session.$mode,g=b.isSupportedMode(p);if(g&&p.$modes)try{C.setupContext(h),/js|php/.test(C.getSyntax())&&(g=!1)}catch{}return g};var R=function(h,l){var p=l;if(p){var g=b.isSupportedMode(p.session.$mode);h.enableEmmet===!1&&(g=!1),g&&b.load(),b.updateCommands(p,g)}};b.load=function(h){return typeof k!="string"?($.warn("script for emmet-core is not loaded"),!1):($.loadModule(k,function(){k=null,h&&h()}),!0)},b.AceEmmetEditor=O,$.defineOptions(z.prototype,"editor",{enableEmmet:{set:function(h){this[h?"on":"removeListener"]("changeMode",R),R({enableEmmet:!!h},this)},value:!0}}),b.setCore=function(h){typeof h=="string"?k=h:T=h}});(function(){ace.require(["ace/ext/emmet"],function(_){typeof U=="object"&&typeof K=="object"&&U&&(U.exports=_)})})()});J();})();
//# sourceMappingURL=17a63c96eb9a52f5847f13d40801a937.js.map