2
0

chunk-1d6f090d.9e43728b.js 38 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1d6f090d"],{"0dd0":function(n,e,t){},"3f23":function(n,e){n.exports='/* Jison generated parser */\nvar jsonlint = (function(){\nvar parser = {trace: function trace() { },\nyy: {},\nsymbols_: {"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},\nterminals_: {2:"error",4:"STRING",6:"NUMBER",8:"NULL",10:"TRUE",11:"FALSE",14:"EOF",17:"{",18:"}",21:":",22:",",23:"[",24:"]"},\nproductions_: [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]],\nperformAction: function anonymous(yytext,yyleng,yylineno,yy,yystate,$$,_$) {\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1: // replace escaped characters with actual character\n this.$ = yytext.replace(/\\\\(\\\\|")/g, "$"+"1")\n .replace(/\\\\n/g,\'\\n\')\n .replace(/\\\\r/g,\'\\r\')\n .replace(/\\\\t/g,\'\\t\')\n .replace(/\\\\v/g,\'\\v\')\n .replace(/\\\\f/g,\'\\f\')\n .replace(/\\\\b/g,\'\\b\');\n \nbreak;\ncase 2:this.$ = Number(yytext);\nbreak;\ncase 3:this.$ = null;\nbreak;\ncase 4:this.$ = true;\nbreak;\ncase 5:this.$ = false;\nbreak;\ncase 6:return this.$ = $$[$0-1];\nbreak;\ncase 13:this.$ = {};\nbreak;\ncase 14:this.$ = $$[$0-1];\nbreak;\ncase 15:this.$ = [$$[$0-2], $$[$0]];\nbreak;\ncase 16:this.$ = {}; this.$[$$[$0][0]] = $$[$0][1];\nbreak;\ncase 17:this.$ = $$[$0-2]; $$[$0-2][$$[$0][0]] = $$[$0][1];\nbreak;\ncase 18:this.$ = [];\nbreak;\ncase 19:this.$ = $$[$0-1];\nbreak;\ncase 20:this.$ = [$$[$0]];\nbreak;\ncase 21:this.$ = $$[$0-2]; $$[$0-2].push($$[$0]);\nbreak;\n}\n},\ntable: [{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]}],\ndefaultActions: {16:[2,6]},\nparseError: function parseError(str, hash) {\n throw new Error(str);\n},\nparse: function parse(input) {\n var self = this,\n stack = [0],\n vstack = [null], // semantic value stack\n lstack = [], // location stack\n table = this.table,\n yytext = \'\',\n yylineno = 0,\n yyleng = 0,\n recovering = 0,\n TERROR = 2,\n EOF = 1;\n\n //this.reductionCount = this.shiftCount = 0;\n\n this.lexer.setInput(input);\n this.lexer.yy = this.yy;\n this.yy.lexer = this.lexer;\n if (typeof this.lexer.yylloc == \'undefined\')\n this.lexer.yylloc = {};\n var yyloc = this.lexer.yylloc;\n lstack.push(yyloc);\n\n if (typeof this.yy.parseError === \'function\')\n this.parseError = this.yy.parseError;\n\n function popStack (n) {\n stack.length = stack.length - 2*n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n\n function lex() {\n var token;\n token = self.lexer.lex() || 1; // $end = 1\n // if token isn\'t its numeric value, convert\n if (typeof token !== \'number\') {\n token = self.symbols_[token] || token;\n }\n return token;\n }\n\n var symbol, preErrorSymbol, state, action, a, r, yyval={},p,len,newState, expected;\n while (true) {\n // retreive state number from top of stack\n state = stack[stack.length-1];\n\n // use default actions if available\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol == null)\n symbol = lex();\n // read action for current state and first input\n action = table[state] && table[state][symbol];\n }\n\n // handle parse error\n _handle_error:\n if (typeof action === \'undefined\' || !action.length || !action[0]) {\n\n if (!recovering) {\n // Report error\n expected = [];\n for (p in table[state]) if (this.terminals_[p] && p > 2) {\n expected.push("\'"+this.terminals_[p]+"\'");\n }\n var errStr = \'\';\n if (this.lexer.showPosition) {\n errStr = \'Parse error on line \'+(yylineno+1)+":\\n"+this.lexer.showPosition()+"\\nExpecting "+expected.join(\', \') + ", got \'" + this.terminals_[symbol]+ "\'";\n } else {\n errStr = \'Parse error on line \'+(yylineno+1)+": Unexpected " +\n (symbol == 1 /*EOF*/ ? "end of input" :\n ("\'"+(this.terminals_[symbol] || symbol)+"\'"));\n }\n this.parseError(errStr,\n {text: this.lexer.match, token: this.terminals_[symbol] || symbol, line: this.lexer.yylineno, loc: yyloc, expected: expected});\n }\n\n // just recovered from another error\n if (recovering == 3) {\n if (symbol == EOF) {\n throw new Error(errStr || \'Parsing halted.\');\n }\n\n // discard current lookahead and grab another\n yyleng = this.lexer.yyleng;\n yytext = this.lexer.yytext;\n yylineno = this.lexer.yylineno;\n yyloc = this.lexer.yylloc;\n symbol = lex();\n }\n\n // try to recover from error\n while (1) {\n // check for error recovery rule in this state\n if ((TERROR.toString()) in table[state]) {\n break;\n }\n if (state == 0) {\n throw new Error(errStr || \'Parsing halted.\');\n }\n popStack(1);\n state = stack[stack.length-1];\n }\n\n preErrorSymbol = symbol; // save the lookahead token\n symbol = TERROR; // insert generic error symbol as new lookahead\n state = stack[stack.length-1];\n action = table[state] && table[state][TERROR];\n recovering = 3; // allow 3 real symbols to be shifted before reporting a new error\n }\n\n // this shouldn\'t happen, unless resolve defaults are off\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error(\'Parse Error: multiple actions possible at state: \'+state+\', token: \'+symbol);\n }\n\n switch (action[0]) {\n\n case 1: // shift\n //this.shiftCount++;\n\n stack.push(symbol);\n vstack.push(this.lexer.yytext);\n lstack.push(this.lexer.yylloc);\n stack.push(action[1]); // push state\n symbol = null;\n if (!preErrorSymbol) { // normal execution/no error\n yyleng = this.lexer.yyleng;\n yytext = this.lexer.yytext;\n yylineno = this.lexer.yylineno;\n yyloc = this.lexer.yylloc;\n if (recovering > 0)\n recovering--;\n } else { // error just occurred, resume old lookahead f/ before error\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n\n case 2: // reduce\n //this.reductionCount++;\n\n len = this.productions_[action[1]][1];\n\n // perform semantic action\n yyval.$ = vstack[vstack.length-len]; // default to $$ = $1\n // default location, uses first token for firsts, last for lasts\n yyval._$ = {\n first_line: lstack[lstack.length-(len||1)].first_line,\n last_line: lstack[lstack.length-1].last_line,\n first_column: lstack[lstack.length-(len||1)].first_column,\n last_column: lstack[lstack.length-1].last_column\n };\n r = this.performAction.call(yyval, yytext, yyleng, yylineno, this.yy, action[1], vstack, lstack);\n\n if (typeof r !== \'undefined\') {\n return r;\n }\n\n // pop off stack\n if (len) {\n stack = stack.slice(0,-1*len*2);\n vstack = vstack.slice(0, -1*len);\n lstack = lstack.slice(0, -1*len);\n }\n\n stack.push(this.productions_[action[1]][0]); // push nonterminal (reduce)\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n // goto new state = table[STATE][NONTERMINAL]\n newState = table[stack[stack.length-2]][stack[stack.length-1]];\n stack.push(newState);\n break;\n\n case 3: // accept\n return true;\n }\n\n }\n\n return true;\n}};\n/* Jison generated lexer */\nvar lexer = (function(){\nvar lexer = ({EOF:1,\nparseError:function parseError(str, hash) {\n if (this.yy.parseError) {\n this.yy.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\nsetInput:function (input) {\n this._input = input;\n this._more = this._less = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = \'\';\n this.conditionStack = [\'INITIAL\'];\n this.yylloc = {first_line:1,first_column:0,last_line:1,last_column:0};\n return this;\n },\ninput:function () {\n var ch = this._input[0];\n this.yytext+=ch;\n this.yyleng++;\n this.match+=ch;\n this.matched+=ch;\n var lines = ch.match(/\\n/);\n if (lines) this.yylineno++;\n this._input = this._input.slice(1);\n return ch;\n },\nunput:function (ch) {\n this._input = ch + this._input;\n return this;\n },\nmore:function () {\n this._more = true;\n return this;\n },\nless:function (n) {\n this._input = this.match.slice(n) + this._input;\n },\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? \'...\':\'\') + past.substr(-20).replace(/\\n/g, "");\n },\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20)+(next.length > 20 ? \'...\':\'\')).replace(/\\n/g, "");\n },\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join("-");\n return pre + this.upcomingInput() + "\\n" + c+"^";\n },\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) this.done = true;\n\n var token,\n match,\n tempMatch,\n index,\n col,\n lines;\n if (!this._more) {\n this.yytext = \'\';\n this.match = \'\';\n }\n var rules = this._currentRules();\n for (var i=0;i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (!this.options.flex) break;\n }\n }\n if (match) {\n lines = match[0].match(/\\n.*/g);\n if (lines) this.yylineno += lines.length;\n this.yylloc = {first_line: this.yylloc.last_line,\n last_line: this.yylineno+1,\n first_column: this.yylloc.last_column,\n last_column: lines ? lines[lines.length-1].length-1 : this.yylloc.last_column + match[0].length}\n this.yytext += match[0];\n this.match += match[0];\n this.yyleng = this.yytext.length;\n this._more = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, rules[index],this.conditionStack[this.conditionStack.length-1]);\n if (this.done && this._input) this.done = false;\n if (token) return token;\n else return;\n }\n if (this._input === "") {\n return this.EOF;\n } else {\n this.parseError(\'Lexical error on line \'+(this.yylineno+1)+\'. Unrecognized text.\\n\'+this.showPosition(), \n {text: "", token: null, line: this.yylineno});\n }\n },\nlex:function lex() {\n var r = this.next();\n if (typeof r !== \'undefined\') {\n return r;\n } else {\n return this.lex();\n }\n },\nbegin:function begin(condition) {\n this.conditionStack.push(condition);\n },\npopState:function popState() {\n return this.conditionStack.pop();\n },\n_currentRules:function _currentRules() {\n return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;\n },\ntopState:function () {\n return this.conditionStack[this.conditionStack.length-2];\n },\npushState:function begin(condition) {\n this.begin(condition);\n }});\nlexer.options = {};\nlexer.performAction = function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\n\nvar YYSTATE=YY_START\nswitch($avoiding_name_collisions) {\ncase 0:/* skip whitespace */\nbreak;\ncase 1:return 6\nbreak;\ncase 2:yy_.yytext = yy_.yytext.substr(1,yy_.yyleng-2); return 4\nbreak;\ncase 3:return 17\nbreak;\ncase 4:return 18\nbreak;\ncase 5:return 23\nbreak;\ncase 6:return 24\nbreak;\ncase 7:return 22\nbreak;\ncase 8:return 21\nbreak;\ncase 9:return 10\nbreak;\ncase 10:return 11\nbreak;\ncase 11:return 8\nbreak;\ncase 12:return 14\nbreak;\ncase 13:return \'INVALID\'\nbreak;\n}\n};\nlexer.rules = [/^(?:\\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\\.[0-9]+)?([eE][-+]?[0-9]+)?\\b)/,/^(?:"(?:\\\\[\\\\"bfnrt/]|\\\\u[a-fA-F0-9]{4}|[^\\\\\\0-\\x09\\x0a-\\x1f"])*")/,/^(?:\\{)/,/^(?:\\})/,/^(?:\\[)/,/^(?:\\])/,/^(?:,)/,/^(?::)/,/^(?:true\\b)/,/^(?:false\\b)/,/^(?:null\\b)/,/^(?:$)/,/^(?:.)/];\nlexer.conditions = {"INITIAL":{"rules":[0,1,2,3,4,5,6,7,8,9,10,11,12,13],"inclusive":true}};\n\n\n;\nreturn lexer;})()\nparser.lexer = lexer;\nreturn parser;\n})();\nif (typeof require !== \'undefined\' && typeof exports !== \'undefined\') {\nexports.parser = jsonlint;\nexports.parse = function () { return jsonlint.parse.apply(jsonlint, arguments); }\nexports.main = function commonjsMain(args) {\n if (!args[1])\n throw new Error(\'Usage: \'+args[0]+\' FILE\');\n if (typeof process !== \'undefined\') {\n var source = require(\'fs\').readFileSync(require(\'path\').join(process.cwd(), args[1]), "utf8");\n } else {\n var cwd = require("file").path(require("file").cwd());\n var source = cwd.join(args[1]).read({charset: "utf-8"});\n }\n return exports.parser.parse(source);\n}\nif (typeof module !== \'undefined\' && require.main === module) {\n exports.main(typeof process !== \'undefined\' ? process.argv.slice(1) : require("system").args);\n}\n}'},8822:function(n,e,t){(function(n){n(t("56b3"))})((function(n){"use strict";var e="CodeMirror-lint-markers";function t(e,t){var r=document.createElement("div");function i(e){if(!r.parentNode)return n.off(document,"mousemove",i);r.style.top=Math.max(0,e.clientY-r.offsetHeight-5)+"px",r.style.left=e.clientX+5+"px"}return r.className="CodeMirror-lint-tooltip",r.appendChild(t.cloneNode(!0)),document.body.appendChild(r),n.on(document,"mousemove",i),i(e),null!=r.style.opacity&&(r.style.opacity=1),r}function r(n){n.parentNode&&n.parentNode.removeChild(n)}function i(n){n.parentNode&&(null==n.style.opacity&&r(n),n.style.opacity=0,setTimeout((function(){r(n)}),600))}function a(e,r,a){var o=t(e,r);function s(){n.off(a,"mouseout",s),o&&(i(o),o=null)}var l=setInterval((function(){if(o)for(var n=a;;n=n.parentNode){if(n&&11==n.nodeType&&(n=n.host),n==document.body)return;if(!n){s();break}}if(!o)return clearInterval(l)}),400);n.on(a,"mouseout",s)}function o(n,e,t){this.marked=[],this.options=e,this.timeout=null,this.hasGutter=t,this.onMouseOver=function(e){v(n,e)},this.waitingFor=0}function s(n,e){return e instanceof Function?{getAnnotations:e}:(e&&!0!==e||(e={}),e)}function l(n){var t=n.state.lint;t.hasGutter&&n.clearGutter(e);for(var r=0;r<t.marked.length;++r)t.marked[r].clear();t.marked.length=0}function c(e,t,r,i){var o=document.createElement("div"),s=o;return o.className="CodeMirror-lint-marker-"+t,r&&(s=o.appendChild(document.createElement("div")),s.className="CodeMirror-lint-marker-multiple"),0!=i&&n.on(s,"mouseover",(function(n){a(n,e,s)})),o}function u(n,e){return"error"==n?n:e}function f(n){for(var e=[],t=0;t<n.length;++t){var r=n[t],i=r.from.line;(e[i]||(e[i]=[])).push(r)}return e}function p(n){var e=n.severity;e||(e="error");var t=document.createElement("div");return t.className="CodeMirror-lint-message-"+e,"undefined"!=typeof n.messageHTML?t.innerHTML=n.messageHTML:t.appendChild(document.createTextNode(n.message)),t}function d(e,t,r){var i=e.state.lint,a=++i.waitingFor;function o(){a=-1,e.off("change",o)}e.on("change",o),t(e.getValue(),(function(t,r){e.off("change",o),i.waitingFor==a&&(r&&t instanceof n&&(t=r),e.operation((function(){y(e,t)})))}),r,e)}function h(e){var t=e.state.lint,r=t.options,i=r.options||r,a=r.getAnnotations||e.getHelper(n.Pos(0,0),"lint");if(a)if(r.async||a.async)d(e,a,i);else{var o=a(e.getValue(),i,e);if(!o)return;o.then?o.then((function(n){e.operation((function(){y(e,n)}))})):e.operation((function(){y(e,o)}))}}function y(n,t){l(n);for(var r=n.state.lint,i=r.options,a=f(t),o=0;o<a.length;++o){var s=a[o];if(s){for(var d=null,h=r.hasGutter&&document.createDocumentFragment(),y=0;y<s.length;++y){var m=s[y],k=m.severity;k||(k="error"),d=u(d,k),i.formatAnnotation&&(m=i.formatAnnotation(m)),r.hasGutter&&h.appendChild(p(m)),m.to&&r.marked.push(n.markText(m.from,m.to,{className:"CodeMirror-lint-mark-"+k,__annotation:m}))}r.hasGutter&&n.setGutterMarker(o,e,c(h,d,s.length>1,r.options.tooltips))}}i.onUpdateLinting&&i.onUpdateLinting(t,a,n)}function m(n){var e=n.state.lint;e&&(clearTimeout(e.timeout),e.timeout=setTimeout((function(){h(n)}),e.options.delay||500))}function k(n,e){for(var t=e.target||e.srcElement,r=document.createDocumentFragment(),i=0;i<n.length;i++){var o=n[i];r.appendChild(p(o))}a(e,r,t)}function v(n,e){var t=e.target||e.srcElement;if(/\bCodeMirror-lint-mark-/.test(t.className)){for(var r=t.getBoundingClientRect(),i=(r.left+r.right)/2,a=(r.top+r.bottom)/2,o=n.findMarksAt(n.coordsChar({left:i,top:a},"client")),s=[],l=0;l<o.length;++l){var c=o[l].__annotation;c&&s.push(c)}s.length&&k(s,e)}}n.defineOption("lint",!1,(function(t,r,i){if(i&&i!=n.Init&&(l(t),!1!==t.state.lint.options.lintOnChange&&t.off("change",m),n.off(t.getWrapperElement(),"mouseover",t.state.lint.onMouseOver),clearTimeout(t.state.lint.timeout),delete t.state.lint),r){for(var a=t.getOption("gutters"),c=!1,u=0;u<a.length;++u)a[u]==e&&(c=!0);var f=t.state.lint=new o(t,s(t,r),c);!1!==f.options.lintOnChange&&t.on("change",m),0!=f.options.tooltips&&"gutter"!=f.options.tooltips&&n.on(t.getWrapperElement(),"mouseover",f.onMouseOver),h(t)}})),n.defineExtension("performLint",(function(){this.state.lint&&h(this)}))}))},acdf:function(n,e,t){},ae67:function(n,e,t){t("f2b5")(t("3f23"))},d2de:function(n,e,t){(function(n){n(t("56b3"))})((function(n){"use strict";n.registerHelper("lint","json",(function(e){var t=[];if(!window.jsonlint)return window.console&&window.console.error("Error: window.jsonlint not defined, CodeMirror JSON linting cannot run."),t;var r=window.jsonlint.parser||window.jsonlint;r.parseError=function(e,r){var i=r.loc;t.push({from:n.Pos(i.first_line-1,i.first_column),to:n.Pos(i.last_line-1,i.last_column),message:e})};try{r.parse(e)}catch(i){}return t}))}))},f2b5:function(n,e){n.exports=function(n){function e(n){"undefined"!==typeof console&&(console.error||console.log)("[Script Loader]",n)}function t(){return"undefined"!==typeof attachEvent&&"undefined"===typeof addEventListener}try{"undefined"!==typeof execScript&&t()?execScript(n):"undefined"!==typeof eval?eval.call(null,n):e("EvalError: No eval function available")}catch(r){e(r)}}},f9d4:function(n,e,t){(function(n){n(t("56b3"))})((function(n){"use strict";n.defineMode("javascript",(function(e,t){var r,i,a=e.indentUnit,o=t.statementIndent,s=t.jsonld,l=t.json||s,c=t.typescript,u=t.wordCharacters||/[\w$\xa1-\uffff]/,f=function(){function n(n){return{type:n,style:"keyword"}}var e=n("keyword a"),t=n("keyword b"),r=n("keyword c"),i=n("keyword d"),a=n("operator"),o={type:"atom",style:"atom"};return{if:n("if"),while:e,with:e,else:t,do:t,try:t,finally:t,return:i,break:i,continue:i,new:n("new"),delete:r,void:r,throw:r,debugger:n("debugger"),var:n("var"),const:n("var"),let:n("var"),function:n("function"),catch:n("catch"),for:n("for"),switch:n("switch"),case:n("case"),default:n("default"),in:a,typeof:a,instanceof:a,true:o,false:o,null:o,undefined:o,NaN:o,Infinity:o,this:n("this"),class:n("class"),super:n("atom"),yield:r,export:n("export"),import:n("import"),extends:r,await:r}}(),p=/[+\-*&%=<>!?|~^@]/,d=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function h(n){var e,t=!1,r=!1;while(null!=(e=n.next())){if(!t){if("/"==e&&!r)return;"["==e?r=!0:r&&"]"==e&&(r=!1)}t=!t&&"\\"==e}}function y(n,e,t){return r=n,i=t,e}function m(n,e){var t=n.next();if('"'==t||"'"==t)return e.tokenize=k(t),e.tokenize(n,e);if("."==t&&n.match(/^\d+(?:[eE][+\-]?\d+)?/))return y("number","number");if("."==t&&n.match(".."))return y("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(t))return y(t);if("="==t&&n.eat(">"))return y("=>","operator");if("0"==t&&n.match(/^(?:x[\da-f]+|o[0-7]+|b[01]+)n?/i))return y("number","number");if(/\d/.test(t))return n.match(/^\d*(?:n|(?:\.\d*)?(?:[eE][+\-]?\d+)?)?/),y("number","number");if("/"==t)return n.eat("*")?(e.tokenize=v,v(n,e)):n.eat("/")?(n.skipToEnd(),y("comment","comment")):ne(n,e,1)?(h(n),n.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),y("regexp","string-2")):(n.eat("="),y("operator","operator",n.current()));if("`"==t)return e.tokenize=g,g(n,e);if("#"==t)return n.skipToEnd(),y("error","error");if(p.test(t))return">"==t&&e.lexical&&">"==e.lexical.type||(n.eat("=")?"!"!=t&&"="!=t||n.eat("="):/[<>*+\-]/.test(t)&&(n.eat(t),">"==t&&n.eat(t))),y("operator","operator",n.current());if(u.test(t)){n.eatWhile(u);var r=n.current();if("."!=e.lastType){if(f.propertyIsEnumerable(r)){var i=f[r];return y(i.type,i.style,r)}if("async"==r&&n.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return y("async","keyword",r)}return y("variable","variable",r)}}function k(n){return function(e,t){var r,i=!1;if(s&&"@"==e.peek()&&e.match(d))return t.tokenize=m,y("jsonld-keyword","meta");while(null!=(r=e.next())){if(r==n&&!i)break;i=!i&&"\\"==r}return i||(t.tokenize=m),y("string","string")}}function v(n,e){var t,r=!1;while(t=n.next()){if("/"==t&&r){e.tokenize=m;break}r="*"==t}return y("comment","comment")}function g(n,e){var t,r=!1;while(null!=(t=n.next())){if(!r&&("`"==t||"$"==t&&n.eat("{"))){e.tokenize=m;break}r=!r&&"\\"==t}return y("quasi","string-2",n.current())}var b="([{}])";function x(n,e){e.fatArrowAt&&(e.fatArrowAt=null);var t=n.string.indexOf("=>",n.start);if(!(t<0)){if(c){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(n.string.slice(n.start,t));r&&(t=r.index)}for(var i=0,a=!1,o=t-1;o>=0;--o){var s=n.string.charAt(o),l=b.indexOf(s);if(l>=0&&l<3){if(!i){++o;break}if(0==--i){"("==s&&(a=!0);break}}else if(l>=3&&l<6)++i;else if(u.test(s))a=!0;else{if(/["'\/]/.test(s))return;if(a&&!i){++o;break}}}a&&!i&&(e.fatArrowAt=o)}}var w={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function $(n,e,t,r,i,a){this.indented=n,this.column=e,this.type=t,this.prev=i,this.info=a,null!=r&&(this.align=r)}function E(n,e){for(var t=n.localVars;t;t=t.next)if(t.name==e)return!0;for(var r=n.context;r;r=r.prev)for(t=r.vars;t;t=t.next)if(t.name==e)return!0}function _(n,e,t,r,i){var a=n.cc;S.state=n,S.stream=i,S.marked=null,S.cc=a,S.style=e,n.lexical.hasOwnProperty("align")||(n.lexical.align=!0);while(1){var o=a.length?a.pop():l?G:U;if(o(t,r)){while(a.length&&a[a.length-1].lex)a.pop()();return S.marked?S.marked:"variable"==t&&E(n,r)?"variable-2":e}}}var S={state:null,column:null,marked:null,cc:null};function M(){for(var n=arguments.length-1;n>=0;n--)S.cc.push(arguments[n])}function j(){return M.apply(null,arguments),!0}function A(n,e){for(var t=e;t;t=t.next)if(t.name==n)return!0;return!1}function N(n){var e=S.state;if(S.marked="def",e.context)if("var"==e.lexical.info&&e.context&&e.context.block){var r=T(n,e.context);if(null!=r)return void(e.context=r)}else if(!A(n,e.localVars))return void(e.localVars=new C(n,e.localVars));t.globalVars&&!A(n,e.globalVars)&&(e.globalVars=new C(n,e.globalVars))}function T(n,e){if(e){if(e.block){var t=T(n,e.prev);return t?t==e.prev?e:new I(t,e.vars,!0):null}return A(n,e.vars)?e:new I(e.prev,new C(n,e.vars),!1)}return null}function O(n){return"public"==n||"private"==n||"protected"==n||"abstract"==n||"readonly"==n}function I(n,e,t){this.prev=n,this.vars=e,this.block=t}function C(n,e){this.name=n,this.next=e}var R=new C("this",new C("arguments",null));function L(){S.state.context=new I(S.state.context,S.state.localVars,!1),S.state.localVars=R}function V(){S.state.context=new I(S.state.context,S.state.localVars,!0),S.state.localVars=null}function F(){S.state.localVars=S.state.context.vars,S.state.context=S.state.context.prev}function z(n,e){var t=function(){var t=S.state,r=t.indented;if("stat"==t.lexical.type)r=t.lexical.indented;else for(var i=t.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;t.lexical=new $(r,S.stream.column(),n,null,t.lexical,e)};return t.lex=!0,t}function J(){var n=S.state;n.lexical.prev&&(")"==n.lexical.type&&(n.indented=n.lexical.indented),n.lexical=n.lexical.prev)}function P(n){function e(t){return t==n?j():";"==n||"}"==t||")"==t||"]"==t?M():j(e)}return e}function U(n,e){return"var"==n?j(z("vardef",e),En,P(";"),J):"keyword a"==n?j(z("form"),Y,U,J):"keyword b"==n?j(z("form"),U,J):"keyword d"==n?S.stream.match(/^\s*$/,!1)?j():j(z("stat"),D,P(";"),J):"debugger"==n?j(P(";")):"{"==n?j(z("}"),V,pn,J,F):";"==n?j():"if"==n?("else"==S.state.lexical.info&&S.state.cc[S.state.cc.length-1]==J&&S.state.cc.pop()(),j(z("form"),Y,U,J,Nn)):"function"==n?j(Cn):"for"==n?j(z("form"),Tn,U,J):"class"==n||c&&"interface"==e?(S.marked="keyword",j(z("form","class"==n?n:e),zn,J)):"variable"==n?c&&"declare"==e?(S.marked="keyword",j(U)):c&&("module"==e||"enum"==e||"type"==e)&&S.stream.match(/^\s*\w/,!1)?(S.marked="keyword","enum"==e?j(Kn):"type"==e?j(Ln,P("operator"),mn,P(";")):j(z("form"),_n,P("{"),z("}"),pn,J,J)):c&&"namespace"==e?(S.marked="keyword",j(z("form"),G,U,J)):c&&"abstract"==e?(S.marked="keyword",j(U)):j(z("stat"),an):"switch"==n?j(z("form"),Y,P("{"),z("}","switch"),V,pn,J,J,F):"case"==n?j(G,P(":")):"default"==n?j(P(":")):"catch"==n?j(z("form"),L,q,U,J,F):"export"==n?j(z("stat"),qn,J):"import"==n?j(z("stat"),Hn,J):"async"==n?j(U):"@"==e?j(G,U):M(z("stat"),G,P(";"),J)}function q(n){if("("==n)return j(Vn,P(")"))}function G(n,e){return B(n,e,!1)}function H(n,e){return B(n,e,!0)}function Y(n){return"("!=n?M():j(z(")"),G,P(")"),J)}function B(n,e,t){if(S.state.fatArrowAt==S.stream.start){var r=t?nn:Z;if("("==n)return j(L,z(")"),un(Vn,")"),J,P("=>"),r,F);if("variable"==n)return M(L,_n,P("=>"),r,F)}var i=t?X:W;return w.hasOwnProperty(n)?j(i):"function"==n?j(Cn,i):"class"==n||c&&"interface"==e?(S.marked="keyword",j(z("form"),Fn,J)):"keyword c"==n||"async"==n?j(t?H:G):"("==n?j(z(")"),D,P(")"),J,i):"operator"==n||"spread"==n?j(t?H:G):"["==n?j(z("]"),Xn,J,i):"{"==n?fn(sn,"}",null,i):"quasi"==n?M(K,i):"new"==n?j(en(t)):"import"==n?j(G):j()}function D(n){return n.match(/[;\}\)\],]/)?M():M(G)}function W(n,e){return","==n?j(G):X(n,e,!1)}function X(n,e,t){var r=0==t?W:X,i=0==t?G:H;return"=>"==n?j(L,t?nn:Z,F):"operator"==n?/\+\+|--/.test(e)||c&&"!"==e?j(r):c&&"<"==e&&S.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?j(z(">"),un(mn,">"),J,r):"?"==e?j(G,P(":"),i):j(i):"quasi"==n?M(K,r):";"!=n?"("==n?fn(H,")","call",r):"."==n?j(on,r):"["==n?j(z("]"),D,P("]"),J,r):c&&"as"==e?(S.marked="keyword",j(mn,r)):"regexp"==n?(S.state.lastType=S.marked="operator",S.stream.backUp(S.stream.pos-S.stream.start-1),j(i)):void 0:void 0}function K(n,e){return"quasi"!=n?M():"${"!=e.slice(e.length-2)?j(K):j(G,Q)}function Q(n){if("}"==n)return S.marked="string-2",S.state.tokenize=g,j(K)}function Z(n){return x(S.stream,S.state),M("{"==n?U:G)}function nn(n){return x(S.stream,S.state),M("{"==n?U:H)}function en(n){return function(e){return"."==e?j(n?rn:tn):"variable"==e&&c?j(xn,n?X:W):M(n?H:G)}}function tn(n,e){if("target"==e)return S.marked="keyword",j(W)}function rn(n,e){if("target"==e)return S.marked="keyword",j(X)}function an(n){return":"==n?j(J,U):M(W,P(";"),J)}function on(n){if("variable"==n)return S.marked="property",j()}function sn(n,e){return"async"==n?(S.marked="property",j(sn)):"variable"==n||"keyword"==S.style?(S.marked="property","get"==e||"set"==e?j(ln):(c&&S.state.fatArrowAt==S.stream.start&&(t=S.stream.match(/^\s*:\s*/,!1))&&(S.state.fatArrowAt=S.stream.pos+t[0].length),j(cn))):"number"==n||"string"==n?(S.marked=s?"property":S.style+" property",j(cn)):"jsonld-keyword"==n?j(cn):c&&O(e)?(S.marked="keyword",j(sn)):"["==n?j(G,dn,P("]"),cn):"spread"==n?j(H,cn):"*"==e?(S.marked="keyword",j(sn)):":"==n?M(cn):void 0;var t}function ln(n){return"variable"!=n?M(cn):(S.marked="property",j(Cn))}function cn(n){return":"==n?j(H):"("==n?M(Cn):void 0}function un(n,e,t){function r(i,a){if(t?t.indexOf(i)>-1:","==i){var o=S.state.lexical;return"call"==o.info&&(o.pos=(o.pos||0)+1),j((function(t,r){return t==e||r==e?M():M(n)}),r)}return i==e||a==e?j():t&&t.indexOf(";")>-1?M(n):j(P(e))}return function(t,i){return t==e||i==e?j():M(n,r)}}function fn(n,e,t){for(var r=3;r<arguments.length;r++)S.cc.push(arguments[r]);return j(z(e,t),un(n,e),J)}function pn(n){return"}"==n?j():M(U,pn)}function dn(n,e){if(c){if(":"==n||"in"==e)return j(mn);if("?"==e)return j(dn)}}function hn(n){if(c&&":"==n)return S.stream.match(/^\s*\w+\s+is\b/,!1)?j(G,yn,mn):j(mn)}function yn(n,e){if("is"==e)return S.marked="keyword",j()}function mn(n,e){return"keyof"==e||"typeof"==e||"infer"==e?(S.marked="keyword",j("typeof"==e?H:mn)):"variable"==n||"void"==e?(S.marked="type",j(bn)):"|"==e||"&"==e?j(mn):"string"==n||"number"==n||"atom"==n?j(bn):"["==n?j(z("]"),un(mn,"]",","),J,bn):"{"==n?j(z("}"),un(vn,"}",",;"),J,bn):"("==n?j(un(gn,")"),kn,bn):"<"==n?j(un(mn,">"),mn):void 0}function kn(n){if("=>"==n)return j(mn)}function vn(n,e){return"variable"==n||"keyword"==S.style?(S.marked="property",j(vn)):"?"==e||"number"==n||"string"==n?j(vn):":"==n?j(mn):"["==n?j(P("variable"),dn,P("]"),vn):"("==n?M(Rn,vn):void 0}function gn(n,e){return"variable"==n&&S.stream.match(/^\s*[?:]/,!1)||"?"==e?j(gn):":"==n?j(mn):"spread"==n?j(gn):M(mn)}function bn(n,e){return"<"==e?j(z(">"),un(mn,">"),J,bn):"|"==e||"."==n||"&"==e?j(mn):"["==n?j(mn,P("]"),bn):"extends"==e||"implements"==e?(S.marked="keyword",j(mn)):"?"==e?j(mn,P(":"),mn):void 0}function xn(n,e){if("<"==e)return j(z(">"),un(mn,">"),J,bn)}function wn(){return M(mn,$n)}function $n(n,e){if("="==e)return j(mn)}function En(n,e){return"enum"==e?(S.marked="keyword",j(Kn)):M(_n,dn,jn,An)}function _n(n,e){return c&&O(e)?(S.marked="keyword",j(_n)):"variable"==n?(N(e),j()):"spread"==n?j(_n):"["==n?fn(Mn,"]"):"{"==n?fn(Sn,"}"):void 0}function Sn(n,e){return"variable"!=n||S.stream.match(/^\s*:/,!1)?("variable"==n&&(S.marked="property"),"spread"==n?j(_n):"}"==n?M():"["==n?j(G,P("]"),P(":"),Sn):j(P(":"),_n,jn)):(N(e),j(jn))}function Mn(){return M(_n,jn)}function jn(n,e){if("="==e)return j(H)}function An(n){if(","==n)return j(En)}function Nn(n,e){if("keyword b"==n&&"else"==e)return j(z("form","else"),U,J)}function Tn(n,e){return"await"==e?j(Tn):"("==n?j(z(")"),On,J):void 0}function On(n){return"var"==n?j(En,In):"variable"==n?j(In):M(In)}function In(n,e){return")"==n?j():";"==n?j(In):"in"==e||"of"==e?(S.marked="keyword",j(G,In)):M(G,In)}function Cn(n,e){return"*"==e?(S.marked="keyword",j(Cn)):"variable"==n?(N(e),j(Cn)):"("==n?j(L,z(")"),un(Vn,")"),J,hn,U,F):c&&"<"==e?j(z(">"),un(wn,">"),J,Cn):void 0}function Rn(n,e){return"*"==e?(S.marked="keyword",j(Rn)):"variable"==n?(N(e),j(Rn)):"("==n?j(L,z(")"),un(Vn,")"),J,hn,F):c&&"<"==e?j(z(">"),un(wn,">"),J,Rn):void 0}function Ln(n,e){return"keyword"==n||"variable"==n?(S.marked="type",j(Ln)):"<"==e?j(z(">"),un(wn,">"),J):void 0}function Vn(n,e){return"@"==e&&j(G,Vn),"spread"==n?j(Vn):c&&O(e)?(S.marked="keyword",j(Vn)):c&&"this"==n?j(dn,jn):M(_n,dn,jn)}function Fn(n,e){return"variable"==n?zn(n,e):Jn(n,e)}function zn(n,e){if("variable"==n)return N(e),j(Jn)}function Jn(n,e){return"<"==e?j(z(">"),un(wn,">"),J,Jn):"extends"==e||"implements"==e||c&&","==n?("implements"==e&&(S.marked="keyword"),j(c?mn:G,Jn)):"{"==n?j(z("}"),Pn,J):void 0}function Pn(n,e){return"async"==n||"variable"==n&&("static"==e||"get"==e||"set"==e||c&&O(e))&&S.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(S.marked="keyword",j(Pn)):"variable"==n||"keyword"==S.style?(S.marked="property",j(c?Un:Cn,Pn)):"number"==n||"string"==n?j(c?Un:Cn,Pn):"["==n?j(G,dn,P("]"),c?Un:Cn,Pn):"*"==e?(S.marked="keyword",j(Pn)):c&&"("==n?M(Rn,Pn):";"==n||","==n?j(Pn):"}"==n?j():"@"==e?j(G,Pn):void 0}function Un(n,e){if("?"==e)return j(Un);if(":"==n)return j(mn,jn);if("="==e)return j(H);var t=S.state.lexical.prev,r=t&&"interface"==t.info;return M(r?Rn:Cn)}function qn(n,e){return"*"==e?(S.marked="keyword",j(Wn,P(";"))):"default"==e?(S.marked="keyword",j(G,P(";"))):"{"==n?j(un(Gn,"}"),Wn,P(";")):M(U)}function Gn(n,e){return"as"==e?(S.marked="keyword",j(P("variable"))):"variable"==n?M(H,Gn):void 0}function Hn(n){return"string"==n?j():"("==n?M(G):M(Yn,Bn,Wn)}function Yn(n,e){return"{"==n?fn(Yn,"}"):("variable"==n&&N(e),"*"==e&&(S.marked="keyword"),j(Dn))}function Bn(n){if(","==n)return j(Yn,Bn)}function Dn(n,e){if("as"==e)return S.marked="keyword",j(Yn)}function Wn(n,e){if("from"==e)return S.marked="keyword",j(G)}function Xn(n){return"]"==n?j():M(un(H,"]"))}function Kn(){return M(z("form"),_n,P("{"),z("}"),un(Qn,"}"),J,J)}function Qn(){return M(_n,jn)}function Zn(n,e){return"operator"==n.lastType||","==n.lastType||p.test(e.charAt(0))||/[,.]/.test(e.charAt(0))}function ne(n,e,t){return e.tokenize==m&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(e.lastType)||"quasi"==e.lastType&&/\{\s*$/.test(n.string.slice(0,n.pos-(t||0)))}return F.lex=!0,J.lex=!0,{startState:function(n){var e={tokenize:m,lastType:"sof",cc:[],lexical:new $((n||0)-a,0,"block",!1),localVars:t.localVars,context:t.localVars&&new I(null,null,!1),indented:n||0};return t.globalVars&&"object"==typeof t.globalVars&&(e.globalVars=t.globalVars),e},token:function(n,e){if(n.sol()&&(e.lexical.hasOwnProperty("align")||(e.lexical.align=!1),e.indented=n.indentation(),x(n,e)),e.tokenize!=v&&n.eatSpace())return null;var t=e.tokenize(n,e);return"comment"==r?t:(e.lastType="operator"!=r||"++"!=i&&"--"!=i?r:"incdec",_(e,t,r,i,n))},indent:function(e,r){if(e.tokenize==v)return n.Pass;if(e.tokenize!=m)return 0;var i,s=r&&r.charAt(0),l=e.lexical;if(!/^\s*else\b/.test(r))for(var c=e.cc.length-1;c>=0;--c){var u=e.cc[c];if(u==J)l=l.prev;else if(u!=Nn)break}while(("stat"==l.type||"form"==l.type)&&("}"==s||(i=e.cc[e.cc.length-1])&&(i==W||i==X)&&!/^[,\.=+\-*:?[\(]/.test(r)))l=l.prev;o&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var f=l.type,p=s==f;return"vardef"==f?l.indented+("operator"==e.lastType||","==e.lastType?l.info.length+1:0):"form"==f&&"{"==s?l.indented:"form"==f?l.indented+a:"stat"==f?l.indented+(Zn(e,r)?o||a:0):"switch"!=l.info||p||0==t.doubleIndentSwitch?l.align?l.column+(p?0:1):l.indented+(p?0:a):l.indented+(/^(?:case|default)\b/.test(r)?a:2*a)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l,expressionAllowed:ne,skipExpression:function(n){var e=n.cc[n.cc.length-1];e!=G&&e!=H||n.cc.pop()}}})),n.registerHelper("wordChars","javascript",/[\w$]/),n.defineMIME("text/javascript","javascript"),n.defineMIME("text/ecmascript","javascript"),n.defineMIME("application/javascript","javascript"),n.defineMIME("application/x-javascript","javascript"),n.defineMIME("application/ecmascript","javascript"),n.defineMIME("application/json",{name:"javascript",json:!0}),n.defineMIME("application/x-json",{name:"javascript",json:!0}),n.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),n.defineMIME("text/typescript",{name:"javascript",typescript:!0}),n.defineMIME("application/typescript",{name:"javascript",typescript:!0})}))}}]);