1||e.peek(!0)===COMMA))throw e.newSyntaxError("Generator expression must be parenthesized");n.push(r)}while(e.match(COMMA));return e.mustMatch(RIGHT_PAREN),n.end=e.token.end,n}function PrimaryExpression(e,t){var n,r,i=e.get(!0);switch(i){case FUNCTION:n=FunctionDefinition(e,t,!1,EXPRESSED_FORM);break;case LEFT_BRACKET:for(n=new Node(e,{type:ARRAY_INIT});(i=e.peek(!0))!==RIGHT_BRACKET;)if(i!==COMMA){if(n.push(AssignExpression(e,t)),i!==COMMA&&!e.match(COMMA))break}else e.get(),n.push(null);1===n.children.length&&e.match(FOR)&&(r=new Node(e,{type:ARRAY_COMP,expression:n.children[0],tail:ComprehensionTail(e,t)}),n=r),e.mustMatch(RIGHT_BRACKET),n.end=e.token.end;break;case LEFT_CURLY:var a;n=new Node(e,{type:OBJECT_INIT});e:if(!e.match(RIGHT_CURLY)){do if(i=e.get(),"get"!==e.token.value&&"set"!==e.token.value||e.peek()!==IDENTIFIER){switch(i){case IDENTIFIER:case NUMBER:case STRING:a=new Node(e,{type:IDENTIFIER});break;case RIGHT_CURLY:if(t.ecma3OnlyMode)throw e.newSyntaxError("Illegal trailing ,");break e;default:if(e.token.value in definitions.keywords){a=new Node(e,{type:IDENTIFIER});break}throw e.newSyntaxError("Invalid property name")}if(e.match(COLON))r=new Node(e,{type:PROPERTY_INIT}),r.push(a),r.push(AssignExpression(e,t)),n.push(r);else{if(e.peek()!==COMMA&&e.peek()!==RIGHT_CURLY)throw e.newSyntaxError("missing : after property");n.push(a)}}else{if(t.ecma3OnlyMode)throw e.newSyntaxError("Illegal property accessor");n.push(FunctionDefinition(e,t,!0,EXPRESSED_FORM))}while(e.match(COMMA));e.mustMatch(RIGHT_CURLY)}n.end=e.token.end;break;case LEFT_PAREN:var s=e.token.start;n=ParenExpression(e,t),e.mustMatch(RIGHT_PAREN),n.start=s,n.end=e.token.end,n.parenthesized=!0;break;case LET:n=LetBlock(e,t,!1);break;case NULL:case THIS:case TRUE:case FALSE:case IDENTIFIER:case NUMBER:case STRING:case REGEXP:n=new Node(e);break;default:throw e.newSyntaxError("missing operand")}return n}function parse(e,t,n){var r=new lexer.Tokenizer(e,t,n),i=Script(r,!1);if(!r.done)throw r.newSyntaxError("Syntax error");return i}function parseStdin(e,t){for(;;)try{var n=new lexer.Tokenizer(e,"stdin",t.value),r=Script(n,!1);return t.value=n.lineno,r}catch(i){if(!n.unexpectedEOF)throw i;var a=readline();if(!a)throw i;e+="\n"+a}}var lexer=Narcissus.lexer,definitions=Narcissus.definitions;const StringMap=definitions.StringMap,Stack=definitions.Stack;eval(definitions.consts);const NESTING_TOP=0,NESTING_SHALLOW=1,NESTING_DEEP=2;StaticContext.prototype={ecma3OnlyMode:!1,parenFreeMode:!1,update:function(e){var t={};for(var n in e)t[n]={value:e[n],writable:!0,enumerable:!0,configurable:!0};return Object.create(this,t)},pushLabel:function(e){return this.update({currentLabels:this.currentLabels.push(e),allLabels:this.allLabels.push(e)})},pushTarget:function(e){var t=e.isLoop||e.type===SWITCH;return t&&(e.target=this.defaultTarget),this.currentLabels.isEmpty()?t?this.update({defaultTarget:e}):this:(e.labels=new StringMap,this.currentLabels.forEach(function(t){e.labels.set(t,!0)}),this.update({currentLabels:new Stack,labeledTargets:this.labeledTargets.push(e),defaultTarget:t?e:this.defaultTarget}))},nest:function(e){var t=Math.max(this.nesting,e);return t!==this.nesting?this.update({nesting:t}):this}},definitions.defineProperty(Array.prototype,"top",function(){return this.length&&this[this.length-1]},!1,!1,!0);var Np=Node.prototype={};Np.constructor=Node,Np.toSource=Object.prototype.toSource,Np.push=function(e){return null!==e&&(e.start 1||e.peek(!0)===COMMA))throw e.newSyntaxError("Generator expression must be parenthesized");n.push(r)}while(e.match(COMMA));return e.mustMatch(RIGHT_PAREN),n.end=e.token.end,n}function PrimaryExpression(e,t){var n,r,i=e.get(!0);switch(i){case FUNCTION:n=FunctionDefinition(e,t,!1,EXPRESSED_FORM);break;case LEFT_BRACKET:for(n=new Node(e,{type:ARRAY_INIT});(i=e.peek(!0))!==RIGHT_BRACKET;)if(i!==COMMA){if(n.push(AssignExpression(e,t)),i!==COMMA&&!e.match(COMMA))break}else e.get(),n.push(null);1===n.children.length&&e.match(FOR)&&(r=new Node(e,{type:ARRAY_COMP,expression:n.children[0],tail:ComprehensionTail(e,t)}),n=r),e.mustMatch(RIGHT_BRACKET),n.end=e.token.end;break;case LEFT_CURLY:var a;n=new Node(e,{type:OBJECT_INIT});e:if(!e.match(RIGHT_CURLY)){do if(i=e.get(),"get"!==e.token.value&&"set"!==e.token.value||e.peek()!==IDENTIFIER){switch(i){case IDENTIFIER:case NUMBER:case STRING:a=new Node(e,{type:IDENTIFIER});break;case RIGHT_CURLY:if(t.ecma3OnlyMode)throw e.newSyntaxError("Illegal trailing ,");break e;default:if(e.token.value in definitions.keywords){a=new Node(e,{type:IDENTIFIER});break}throw e.newSyntaxError("Invalid property name")}if(e.match(COLON))r=new Node(e,{type:PROPERTY_INIT}),r.push(a),r.push(AssignExpression(e,t)),n.push(r);else{if(e.peek()!==COMMA&&e.peek()!==RIGHT_CURLY)throw e.newSyntaxError("missing : after property");n.push(a)}}else{if(t.ecma3OnlyMode)throw e.newSyntaxError("Illegal property accessor");n.push(FunctionDefinition(e,t,!0,EXPRESSED_FORM))}while(e.match(COMMA));e.mustMatch(RIGHT_CURLY)}n.end=e.token.end;break;case LEFT_PAREN:var s=e.token.start;n=ParenExpression(e,t),e.mustMatch(RIGHT_PAREN),n.start=s,n.end=e.token.end,n.parenthesized=!0;break;case LET:n=LetBlock(e,t,!1);break;case NULL:case THIS:case TRUE:case FALSE:case IDENTIFIER:case NUMBER:case STRING:case REGEXP:n=new Node(e);break;default:throw e.newSyntaxError("missing operand")}return n}function parse(e,t,n){var r=new lexer.Tokenizer(e,t,n),i=Script(r,!1);if(!r.done)throw r.newSyntaxError("Syntax error");return i}function parseStdin(e,t){for(;;)try{var n=new lexer.Tokenizer(e,"stdin",t.value),r=Script(n,!1);return t.value=n.lineno,r}catch(i){if(!n.unexpectedEOF)throw i;var a=readline();if(!a)throw i;e+="\n"+a}}var lexer=Narcissus.lexer,definitions=Narcissus.definitions;const StringMap=definitions.StringMap,Stack=definitions.Stack;eval(definitions.consts);const NESTING_TOP=0,NESTING_SHALLOW=1,NESTING_DEEP=2;StaticContext.prototype={ecma3OnlyMode:!1,parenFreeMode:!1,update:function(e){var t={};for(var n in e)t[n]={value:e[n],writable:!0,enumerable:!0,configurable:!0};return Object.create(this,t)},pushLabel:function(e){return this.update({currentLabels:this.currentLabels.push(e),allLabels:this.allLabels.push(e)})},pushTarget:function(e){var t=e.isLoop||e.type===SWITCH;return t&&(e.target=this.defaultTarget),this.currentLabels.isEmpty()?t?this.update({defaultTarget:e}):this:(e.labels=new StringMap,this.currentLabels.forEach(function(t){e.labels.set(t,!0)}),this.update({currentLabels:new Stack,labeledTargets:this.labeledTargets.push(e),defaultTarget:t?e:this.defaultTarget}))},nest:function(e){var t=Math.max(this.nesting,e);return t!==this.nesting?this.update({nesting:t}):this}},definitions.defineProperty(Array.prototype,"top",function(){return this.length&&this[this.length-1]},!1,!1,!0);var Np=Node.prototype={};Np.constructor=Node,Np.toSource=Object.prototype.toSource,Np.push=function(e){return null!==e&&(e.start0?", ":"")+pp(e.params[a],t);i+=") "+pp(e.body,t);break;case SCRIPT:case BLOCK:var o=e.children;if(r){for(var a=0,s=o.length;a0&&(i+="\n"),i+=pp(o[a],t);var c=i[i.length-1];";"!=c&&(i+=";")}break}i+="{",void 0!==e.id&&(i+=" /* "+e.id+" */"),i+="\n";for(var a=0,s=o.length;a0&&(i+="\n"),i+=indent(4,pp(o[a],t));var c=i[i.length-1];";"!=c&&(i+=";")}i+="\n}";break;case LET_BLOCK:i+="let ("+pp(e.variables,t,!0)+") ",i+=e.expression?pp(e.expression,t):pp(e.block,t);break;case IF:i+="if ("+pp(e.condition,t)+") ";var u=e.thenPart,l=e.elsePart,p=isBlock(u)||isBlock(l);p||(i+="{\n"),i+=(p?pp(u,t):indent(4,pp(u,t)))+"\n",l&&(i+=p?" else ":"} else {\n",i+=(p?pp(l,t):indent(4,pp(l,t)))+"\n"),p||(i+="}");break;case SWITCH:i+="switch ("+pp(e.discriminant,t)+") {\n";for(var a=0,s=e.cases.length;a0&&(i+=", ");var _=o[a];i+=pp(_.name,t),_.initializer&&(i+=" = "+pp(_.initializer,t))}break;case DEBUGGER:i+="debugger\n";break;case SEMICOLON:e.expression&&(i+=pp(e.expression,t)+";");break;case LABEL:i+=e.label+":\n"+pp(e.statement,t);break;case COMMA:case LIST:for(var o=e.children,a=0,s=o.length;a0&&(i+=", "),i+=pp(o[a],t);break;case ASSIGN:var o=e.children,h=e.assignOp;i+=pp(o[0],t)+" "+(h?tokens[h]:"")+"= "+pp(o[1],t);break;case HOOK:var o=e.children;i+="("+pp(o[0],t)+" ? "+pp(o[1],t)+" : "+pp(o[2],t),i+=")";break;case OR:case AND:var o=e.children;i+="("+pp(o[0],t)+" "+tokens[e.type]+" "+pp(o[1],t),i+=")";break;case BITWISE_OR:case BITWISE_XOR:case BITWISE_AND:case EQ:case NE:case STRICT_EQ:case STRICT_NE:case LT:case LE:case GE:case GT:case IN:case INSTANCEOF:case LSH:case RSH:case URSH:case PLUS:case MINUS:case MUL:case DIV:case MOD:var o=e.children;i+="("+pp(o[0],t)+" "+tokens[e.type]+" "+pp(o[1],t)+")";break;case DELETE:case VOID:case TYPEOF:i+=tokens[e.type]+" "+pp(e.children[0],t);break;case NOT:case BITWISE_NOT:i+=tokens[e.type]+pp(e.children[0],t);break;case UNARY_PLUS:i+="+"+pp(e.children[0],t);break;case UNARY_MINUS:i+="-"+pp(e.children[0],t);break;case INCREMENT:case DECREMENT:i+=e.postfix?pp(e.children[0],t)+tokens[e.type]:tokens[e.type]+pp(e.children[0],t);break;case DOT:var o=e.children;i+=pp(o[0],t)+"."+pp(o[1],t);break;case INDEX:var o=e.children;i+=pp(o[0],t)+"["+pp(o[1],t)+"]";break;case CALL:var o=e.children;i+=pp(o[0],t)+"("+pp(o[1],t)+")";break;case NEW:case NEW_WITH_ARGS:var o=e.children;i+="new "+pp(o[0],t),o[1]&&(i+="("+pp(o[1],t)+")");break;case ARRAY_INIT:i+="[";for(var o=e.children,a=0,s=o.length;a0&&(i+=" "),i+=pp(o[a],t);e.guard&&(i+=" if ("+pp(e.guard,t)+")");break;case OBJECT_INIT:var o=e.children;i+=o[0]&&o[0].type===PROPERTY_INIT?"{\n":"{";for(var a=0,s=o.length;a0&&(i+=",\n");var h=o[a];if(h.type===PROPERTY_INIT){var m,E=h.children;m="string"!=typeof E[0].value||/^[A-Za-z_$][A-Za-z0-9_$]*$/.test(E[0].value)?pp(E[0],t):nodeStr(E[0]),i+=indent(4,m)+": "+indent(4,pp(E[1],t)).substring(4)}else i+=indent(4,pp(h,t))}i+="\n}";break;case NULL:i+="null";break;case THIS:i+="this";break;case TRUE:i+="true";break;case FALSE:i+="false";break;case IDENTIFIER:case NUMBER:case REGEXP:i+=e.value.isOctal?"0"+e.value.toString(8):e.value;break;case STRING:i+=nodeStr(e);break;case GROUP:i+="("+pp(e.children[0],t)+")";break;default:throw"PANIC: unknown operation "+tokens[e.type]+" "+e.toSource()}return e.parenthesized&&(i+=")"),i}const parser=Narcissus.parser,definitions=Narcissus.definitions,tokens=definitions.tokens;return eval(definitions.consts),{pp:pp}}(),function(e){e.version="0.10.8"}("undefined"!=typeof exports?exports:Streamline.version=Streamline.version||{}),function(){var e;if("undefined"!=typeof exports){var t=srequire;try{e=t("source-map")}catch(n){}}e||(e={SourceNode:function(e,t,n,r){this.children=r?[r]:[]}},e.SourceNode.prototype.add=function(e){return Array.isArray(e)?this.children=this.children.concat(e):this.children.push(e),this},e.SourceNode.prototype.prepend=function(e){return Array.isArray(e)?this.children=e.concat(this.children.concat):this.children.unshift(e),this},e.SourceNode.prototype.toString=function(){var e="";return this.walk(function(t){e+=t}),e},e.SourceNode.prototype.walk=function(t){return this.children.forEach(function(n){n instanceof e.SourceNode?n.walk(t):t(n)}),this}),function(t){function n(){e.SourceNode.apply(this,arguments)}n.prototype=Object.create(e.SourceNode.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0},length:{get:function(){var e=0;return this.walk(function(t){e+=t.length}),e}}}),n.prototype.stripPrefix=function(e){for(var t;this.children.length>0&&e>0&&(t=this.children[0].length)<=e;)this.children.shift(),e-=t;return 0==this.children.length||0==e?this:("string"==typeof this.children[0]?this.children[0]=this.children[0].substring(e):this.children[0].stripPrefix(e),this)},n.prototype.stripSuffix=function(e){for(var t,n;(n=this.children.length)>0&&e>0&&(t=this.children[n-1].length)<=e;)this.children.pop(),e-=t;return 0==n||0==e?this:("string"==typeof this.children[n-1]?this.children[n-1]=this.children[0].slice(0,-e):this.children[n-1].stripSuffix(e),this)},n.prototype.map=function(t){return this.children=this.children.map(function(n){return n instanceof e.SourceNode?n.map(t):t(n)}),this},n.prototype.lastChar=function(){for(var e=this.children.length;e--;){var t;if(t="string"==typeof this.children[e]?this.children[e].slice(-1):this.children[e].lastChar())return t}return""},t.exports=Object.create(e,{SourceNode:{value:n}})}("undefined"!=typeof exports?module:Streamline.sourceMap=Streamline.sourceMap||{})}(),"undefined"!=typeof exports)var Narcissus=srequire("streamline/deps/narcissus");var sourceMap=srequire("streamline/lib/util/source-map");if(function(exports){function _pp(e){function t(e){return o+=1,e}function n(e,t){var n=new Array(e+1).join(" ");return t.map(function(e){return e.replace(/\n/g,"\n"+n)}),t.prepend(new sourceMap.SourceNode(null,null,null,n)),t}function r(e){return e&&e.type===BLOCK}function i(e,t){var n,r,i=e.tokenizer&&e.tokenizer.filename;i=i||void 0;var a=e.start,s=e.end,o=e.tokenizer&&e.tokenizer.source;if(!(i&&a&&s&&o))return new sourceMap.SourceNode((void 0),(void 0),(void 0),t);if(i&&!l){l=[],l[-1]=0;for(var n=1,c=o.indexOf("\n");c>=0;c=o.indexOf("\n",c+1))l[c]=n,n++}for(;a=0;)a++;if(a0?", ":"",s(e.params[d],u)]);f.add([") ",s(e.body,u)]);break;case SCRIPT:case BLOCK:var h=e.children;if(p){for(var d=0,_=h.length;d<_;d++)d>0&&f.add(t("\n")),f.add(s(h[d],u)),";"!=f.lastChar()&&f.add(";");break}f.add("{"),void 0!==e.id&&f.add(" /* "+e.id+" */"),f.add(t("\n"));for(var d=0,_=h.length;d<_;d++)d>0&&f.add(t("\n")),f.add(n(2,s(h[d],u))),";"!=f.lastChar()&&f.add(";");f.add(t("\n}"));break;case LET_BLOCK:f.add(["let (",s(e.variables,u,!0),") "]),e.expression?f.add(s(e.expression,u)):f.add(s(e.block,u));break;case IF:f.add(["if (",s(e.condition,u),") "]);var m=e.thenPart,E=e.elsePart,y=r(m)||r(E);y||f.add(t("{\n")),f.add(y?s(m,u):n(2,s(m,u))),E&&";}".indexOf(f.lastChar())<0&&f.add(";"),f.add(t("\n")),E&&(y?f.add(" else "):f.add(t("} else {\n")),f.add([y?s(E,u):n(2,s(E,u)),t("\n")])),y||f.add("}");break;case SWITCH:f.add(["switch (",s(e.discriminant,u),t(") {\n")]);for(var d=0,_=e.cases.length;d<_;d++){var b=e.cases[d];b.type===CASE?f.add(["case ",s(b.caseLabel,u),t(":\n")]):f.add(t(" default:\n")),f.add([s(b.statements,u).stripPrefix(2).stripSuffix(2),t("\n")]),o-=2}f.add("}");break;case FOR:f.add(["for (",s(e.setup,u),"; ",s(e.condition,u),"; ",s(e.update,u),") "]);var v=s(e.body,u);r(e.body)?e.body&&f.add(v):f.add([t("{\n"),n(2,v),t(";\n}")]);break;case WHILE:f.add(["while (",s(e.condition,u),") "]);var v=s(e.body,u);r(e.body)?f.add(v):f.add([t("{\n"),n(2,v),t(";\n}")]);break;case FOR_IN:var T=e.varDecl;f.add([e.isEach?"for each (":"for (",T?s(T,u):s(e.iterator,u)," in ",s(e.object,u),") "]);var v=s(e.body,u);r(e.body)?e.body&&f.add(v):f.add([t("{\n"),n(2,v),t(";\n}")]);break;case DO:f.add(["do ",s(e.body,u)," while (",s(e.condition,u),");"]);break;case BREAK:f.add(["break",e.label?" "+e.label:"",";"]);break;case CONTINUE:f.add(["continue",e.label?" "+e.label:"",";"]);break;case TRY:f.add(["try ",s(e.tryBlock,u)]);for(var d=0,_=e.catchClauses.length;d<_;d++){var I=e.catchClauses[d];f.add([" catch (",s(I.varName,u),I.guard?" if "+s(I.guard,u):"",") ",s(I.block,u)])}e.finallyBlock&&f.add([" finally ",s(e.finallyBlock,u)]);break;case THROW:f.add(["throw ",s(e.exception,u)]);break;case RETURN:f.add("return"),e.value&&f.add([" ",s(e.value,u)]);break;case YIELD:f.add("yield"),e.value.type&&f.add([" ",s(e.value,u)]);break;case GENERATOR:f.add([s(e.expression,u)," ",s(e.tail,u)]);break;case WITH:f.add(["with (",s(e.object,u),") ",s(e.body,u)]);break;case LET:case VAR:case CONST:var h=e.children;l||f.add([tokens[e.type]," "]);for(var d=0,_=h.length;d<_;d++){d>0&&f.add(", ");var T=h[d];f.add(s(T.name,u)),T.initializer&&f.add([" = ",s(T.initializer,u)])}break;case DEBUGGER:f.add(t("debugger\n"));break;case SEMICOLON:e.expression&&f.add([s(e.expression,u),";"]);break;case LABEL:f.add([e.label,t(":\n"),s(e.statement,u)]);break;case COMMA:case LIST:for(var h=e.children,d=0,_=h.length;d<_;d++)d>0&&f.add(", "),f.add(s(h[d],u));break;case ASSIGN:var h=e.children,I=e.assignOp;f.add([s(h[0],u)," ",I?tokens[I]:"","="," ",s(h[1],u)]);break;case HOOK:var h=e.children;f.add(["(",s(h[0],u)," ? ",s(h[1],u)," : ",s(h[2],u),")"]);break;case OR:case AND:var h=e.children;f.add(["(",s(h[0],u)," ",tokens[e.type]," ",s(h[1],u),")"]);break;case BITWISE_OR:case BITWISE_XOR:case BITWISE_AND:case EQ:case NE:case STRICT_EQ:case STRICT_NE:case LT:case LE:case GE:case GT:case IN:case INSTANCEOF:case LSH:case RSH:case URSH:case PLUS:case MINUS:case MUL:case DIV:case MOD:var h=e.children;f.add(["(",s(h[0],u)," ",tokens[e.type]," ",s(h[1],u),")"]);break;case DELETE:case VOID:case TYPEOF:f.add([tokens[e.type]," ",s(e.children[0],u)]);break;case NOT:case BITWISE_NOT:f.add([tokens[e.type],s(e.children[0],u)]);break;case UNARY_PLUS:f.add(["+",s(e.children[0],u)]);break;case UNARY_MINUS:f.add(["-",s(e.children[0],u)]);break;case INCREMENT:case DECREMENT:e.postfix?f.add([s(e.children[0],u),tokens[e.type]]):f.add([tokens[e.type],s(e.children[0],u)]);break;case DOT:var h=e.children;f.add([s(h[0],u),".",s(h[1],u)]);break;case INDEX:var h=e.children;f.add([s(h[0],u),"[",s(h[1],u),"]"]);break;case CALL:var h=e.children;f.add([s(h[0],u),"(",s(h[1],u),")"]);break;case NEW:case NEW_WITH_ARGS:var h=e.children;f.add("new "),f.add(s(h[0],u)),h[1]&&f.add(["(",s(h[1],u),")"]);break;case ARRAY_INIT:f.add("[");for(var h=e.children,d=0,_=h.length;d<_;d++)h[d]&&f.add(s(h[d],u)),f.add(",");f.add("]");break;case ARRAY_COMP:f.add(["[",s(e.expression,u)," ",s(e.tail,u),"]"]);break;case COMP_TAIL:for(var h=e.children,d=0,_=h.length;d<_;d++)d>0&&f.add(" "),f.add(s(h[d],u));e.guard&&f.add([" if (",s(e.guard,u),")"]);break;case OBJECT_INIT:var h=e.children;h[0]&&h[0].type===PROPERTY_INIT?f.add(t("{\n")):f.add("{");for(var d=0,_=h.length;d<_;d++){d>0&&f.add(t(",\n"));var I=h[d];if(I.type===PROPERTY_INIT){var N,g=I.children;"string"!=typeof g[0].value||/^[A-Za-z_$][A-Za-z0-9_$]*$/.test(g[0].value)?(N=s(g[0],u),f.add(n(2,N))):(N=a(g[0]),f.add(N)),f.add([": ",n(2,s(g[1],u)).stripPrefix(2)])}else f.add(n(2,s(I,u)))}f.add(t("\n}"));break;case NULL:f.add("null");break;case THIS:f.add("this");break;case TRUE:f.add("true");break;case FALSE:f.add("false");break;case IDENTIFIER:case NUMBER:case REGEXP:e.value.isOctal?f.add("0"+e.value.toString(8)):f.add(""+e.value);break;case STRING:f.add(a(e));break;case GROUP:f.add(["(",s(e.children[0],u),")"]);break;default:throw"PANIC: unknown operation "+tokens[e.type]+" "+e.toSource()}return e.parenthesized&&f.add(")"),f}var o=0,c={},u=s(e);return{source:u,lineMap:c};var l}eval(Narcissus.definitions.consts);var tokens=Narcissus.definitions.tokens;exports.format=function(e,t){var n="",r=_pp(e);if("sourcemap"==t)return r.source;if(r.source=r.source.toString(),"ignore"==t)return r.source;var i=r.lineMap,a=r.source.split("\n");if("preserve"==t){for(var s=1,o=!0,c=0;c0?", ":"")+pp(e.params[a],t);i+=") "+pp(e.body,t);break;case SCRIPT:case BLOCK:var o=e.children;if(r){for(var a=0,s=o.length;a0&&(i+="\n"),i+=pp(o[a],t);var c=i[i.length-1];";"!=c&&(i+=";")}break}i+="{",void 0!==e.id&&(i+=" /* "+e.id+" */"),i+="\n";for(var a=0,s=o.length;a0&&(i+="\n"),i+=indent(4,pp(o[a],t));var c=i[i.length-1];";"!=c&&(i+=";")}i+="\n}";break;case LET_BLOCK:i+="let ("+pp(e.variables,t,!0)+") ",i+=e.expression?pp(e.expression,t):pp(e.block,t);break;case IF:i+="if ("+pp(e.condition,t)+") ";var u=e.thenPart,l=e.elsePart,p=isBlock(u)||isBlock(l);p||(i+="{\n"),i+=(p?pp(u,t):indent(4,pp(u,t)))+"\n",l&&(i+=p?" else ":"} else {\n",i+=(p?pp(l,t):indent(4,pp(l,t)))+"\n"),p||(i+="}");break;case SWITCH:i+="switch ("+pp(e.discriminant,t)+") {\n";for(var a=0,s=e.cases.length;a0&&(i+=", ");var _=o[a];i+=pp(_.name,t),_.initializer&&(i+=" = "+pp(_.initializer,t))}break;case DEBUGGER:i+="debugger\n";break;case SEMICOLON:e.expression&&(i+=pp(e.expression,t)+";");break;case LABEL:i+=e.label+":\n"+pp(e.statement,t);break;case COMMA:case LIST:for(var o=e.children,a=0,s=o.length;a0&&(i+=", "),i+=pp(o[a],t);break;case ASSIGN:var o=e.children,h=e.assignOp;i+=pp(o[0],t)+" "+(h?tokens[h]:"")+"= "+pp(o[1],t);break;case HOOK:var o=e.children;i+="("+pp(o[0],t)+" ? "+pp(o[1],t)+" : "+pp(o[2],t),i+=")";break;case OR:case AND:var o=e.children;i+="("+pp(o[0],t)+" "+tokens[e.type]+" "+pp(o[1],t),i+=")";break;case BITWISE_OR:case BITWISE_XOR:case BITWISE_AND:case EQ:case NE:case STRICT_EQ:case STRICT_NE:case LT:case LE:case GE:case GT:case IN:case INSTANCEOF:case LSH:case RSH:case URSH:case PLUS:case MINUS:case MUL:case DIV:case MOD:var o=e.children;i+="("+pp(o[0],t)+" "+tokens[e.type]+" "+pp(o[1],t)+")";break;case DELETE:case VOID:case TYPEOF:i+=tokens[e.type]+" "+pp(e.children[0],t);break;case NOT:case BITWISE_NOT:i+=tokens[e.type]+pp(e.children[0],t);break;case UNARY_PLUS:i+="+"+pp(e.children[0],t);break;case UNARY_MINUS:i+="-"+pp(e.children[0],t);break;case INCREMENT:case DECREMENT:i+=e.postfix?pp(e.children[0],t)+tokens[e.type]:tokens[e.type]+pp(e.children[0],t);break;case DOT:var o=e.children;i+=pp(o[0],t)+"."+pp(o[1],t);break;case INDEX:var o=e.children;i+=pp(o[0],t)+"["+pp(o[1],t)+"]";break;case CALL:var o=e.children;i+=pp(o[0],t)+"("+pp(o[1],t)+")";break;case NEW:case NEW_WITH_ARGS:var o=e.children;i+="new "+pp(o[0],t),o[1]&&(i+="("+pp(o[1],t)+")");break;case ARRAY_INIT:i+="[";for(var o=e.children,a=0,s=o.length;a0&&(i+=" "),i+=pp(o[a],t);e.guard&&(i+=" if ("+pp(e.guard,t)+")");break;case OBJECT_INIT:var o=e.children;i+=o[0]&&o[0].type===PROPERTY_INIT?"{\n":"{";for(var a=0,s=o.length;a0&&(i+=",\n");var h=o[a];if(h.type===PROPERTY_INIT){var m,E=h.children;m="string"!=typeof E[0].value||/^[A-Za-z_$][A-Za-z0-9_$]*$/.test(E[0].value)?pp(E[0],t):nodeStr(E[0]),i+=indent(4,m)+": "+indent(4,pp(E[1],t)).substring(4)}else i+=indent(4,pp(h,t))}i+="\n}";break;case NULL:i+="null";break;case THIS:i+="this";break;case TRUE:i+="true";break;case FALSE:i+="false";break;case IDENTIFIER:case NUMBER:case REGEXP:i+=e.value.isOctal?"0"+e.value.toString(8):e.value;break;case STRING:i+=nodeStr(e);break;case GROUP:i+="("+pp(e.children[0],t)+")";break;default:throw"PANIC: unknown operation "+tokens[e.type]+" "+e.toSource()}return e.parenthesized&&(i+=")"),i}const parser=Narcissus.parser,definitions=Narcissus.definitions,tokens=definitions.tokens;return eval(definitions.consts),{pp:pp}}(),function(e){e.version="0.10.8"}("undefined"!=typeof exports?exports:Streamline.version=Streamline.version||{}),function(){var e;if("undefined"!=typeof exports){var t=srequire;try{e=t("source-map")}catch(n){}}e||(e={SourceNode:function(e,t,n,r){this.children=r?[r]:[]}},e.SourceNode.prototype.add=function(e){return Array.isArray(e)?this.children=this.children.concat(e):this.children.push(e),this},e.SourceNode.prototype.prepend=function(e){return Array.isArray(e)?this.children=e.concat(this.children.concat):this.children.unshift(e),this},e.SourceNode.prototype.toString=function(){var e="";return this.walk(function(t){e+=t}),e},e.SourceNode.prototype.walk=function(t){return this.children.forEach(function(n){n instanceof e.SourceNode?n.walk(t):t(n)}),this}),function(t){function n(){e.SourceNode.apply(this,arguments)}n.prototype=Object.create(e.SourceNode.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0},length:{get:function(){var e=0;return this.walk(function(t){e+=t.length}),e}}}),n.prototype.stripPrefix=function(e){for(var t;this.children.length>0&&e>0&&(t=this.children[0].length)<=e;)this.children.shift(),e-=t;return 0==this.children.length||0==e?this:("string"==typeof this.children[0]?this.children[0]=this.children[0].substring(e):this.children[0].stripPrefix(e),this)},n.prototype.stripSuffix=function(e){for(var t,n;(n=this.children.length)>0&&e>0&&(t=this.children[n-1].length)<=e;)this.children.pop(),e-=t;return 0==n||0==e?this:("string"==typeof this.children[n-1]?this.children[n-1]=this.children[0].slice(0,-e):this.children[n-1].stripSuffix(e),this)},n.prototype.map=function(t){return this.children=this.children.map(function(n){return n instanceof e.SourceNode?n.map(t):t(n)}),this},n.prototype.lastChar=function(){for(var e=this.children.length;e--;){var t;if(t="string"==typeof this.children[e]?this.children[e].slice(-1):this.children[e].lastChar())return t}return""},t.exports=Object.create(e,{SourceNode:{value:n}})}("undefined"!=typeof exports?module:Streamline.sourceMap=Streamline.sourceMap||{})}(),"undefined"!=typeof exports)var Narcissus=srequire("streamline/deps/narcissus");var sourceMap=srequire("streamline/lib/util/source-map");if(function(exports){function _pp(e){function t(e){return o+=1,e}function n(e,t){var n=new Array(e+1).join(" ");return t.map(function(e){return e.replace(/\n/g,"\n"+n)}),t.prepend(new sourceMap.SourceNode(null,null,null,n)),t}function r(e){return e&&e.type===BLOCK}function i(e,t){var n,r,i=e.tokenizer&&e.tokenizer.filename;i=i||void 0;var a=e.start,s=e.end,o=e.tokenizer&&e.tokenizer.source;if(!(i&&a&&s&&o))return new sourceMap.SourceNode((void 0),(void 0),(void 0),t);if(i&&!l){l=[],l[-1]=0;for(var n=1,c=o.indexOf("\n");c>=0;c=o.indexOf("\n",c+1))l[c]=n,n++}for(;a=0;)a++;if(a0?", ":"",s(e.params[d],u)]);f.add([") ",s(e.body,u)]);break;case SCRIPT:case BLOCK:var h=e.children;if(p){for(var d=0,_=h.length;d<_;d++)d>0&&f.add(t("\n")),f.add(s(h[d],u)),";"!=f.lastChar()&&f.add(";");break}f.add("{"),void 0!==e.id&&f.add(" /* "+e.id+" */"),f.add(t("\n"));for(var d=0,_=h.length;d<_;d++)d>0&&f.add(t("\n")),f.add(n(2,s(h[d],u))),";"!=f.lastChar()&&f.add(";");f.add(t("\n}"));break;case LET_BLOCK:f.add(["let (",s(e.variables,u,!0),") "]),e.expression?f.add(s(e.expression,u)):f.add(s(e.block,u));break;case IF:f.add(["if (",s(e.condition,u),") "]);var m=e.thenPart,E=e.elsePart,y=r(m)||r(E);y||f.add(t("{\n")),f.add(y?s(m,u):n(2,s(m,u))),E&&";}".indexOf(f.lastChar())<0&&f.add(";"),f.add(t("\n")),E&&(y?f.add(" else "):f.add(t("} else {\n")),f.add([y?s(E,u):n(2,s(E,u)),t("\n")])),y||f.add("}");break;case SWITCH:f.add(["switch (",s(e.discriminant,u),t(") {\n")]);for(var d=0,_=e.cases.length;d<_;d++){var b=e.cases[d];b.type===CASE?f.add(["case ",s(b.caseLabel,u),t(":\n")]):f.add(t(" default:\n")),f.add([s(b.statements,u).stripPrefix(2).stripSuffix(2),t("\n")]),o-=2}f.add("}");break;case FOR:f.add(["for (",s(e.setup,u),"; ",s(e.condition,u),"; ",s(e.update,u),") "]);var v=s(e.body,u);r(e.body)?e.body&&f.add(v):f.add([t("{\n"),n(2,v),t(";\n}")]);break;case WHILE:f.add(["while (",s(e.condition,u),") "]);var v=s(e.body,u);r(e.body)?f.add(v):f.add([t("{\n"),n(2,v),t(";\n}")]);break;case FOR_IN:var T=e.varDecl;f.add([e.isEach?"for each (":"for (",T?s(T,u):s(e.iterator,u)," in ",s(e.object,u),") "]);var v=s(e.body,u);r(e.body)?e.body&&f.add(v):f.add([t("{\n"),n(2,v),t(";\n}")]);break;case DO:f.add(["do ",s(e.body,u)," while (",s(e.condition,u),");"]);break;case BREAK:f.add(["break",e.label?" "+e.label:"",";"]);break;case CONTINUE:f.add(["continue",e.label?" "+e.label:"",";"]);break;case TRY:f.add(["try ",s(e.tryBlock,u)]);for(var d=0,_=e.catchClauses.length;d<_;d++){var I=e.catchClauses[d];f.add([" catch (",s(I.varName,u),I.guard?" if "+s(I.guard,u):"",") ",s(I.block,u)])}e.finallyBlock&&f.add([" finally ",s(e.finallyBlock,u)]);break;case THROW:f.add(["throw ",s(e.exception,u)]);break;case RETURN:f.add("return"),e.value&&f.add([" ",s(e.value,u)]);break;case YIELD:f.add("yield"),e.value.type&&f.add([" ",s(e.value,u)]);break;case GENERATOR:f.add([s(e.expression,u)," ",s(e.tail,u)]);break;case WITH:f.add(["with (",s(e.object,u),") ",s(e.body,u)]);break;case LET:case VAR:case CONST:var h=e.children;l||f.add([tokens[e.type]," "]);for(var d=0,_=h.length;d<_;d++){d>0&&f.add(", ");var T=h[d];f.add(s(T.name,u)),T.initializer&&f.add([" = ",s(T.initializer,u)])}break;case DEBUGGER:f.add(t("debugger\n"));break;case SEMICOLON:e.expression&&f.add([s(e.expression,u),";"]);break;case LABEL:f.add([e.label,t(":\n"),s(e.statement,u)]);break;case COMMA:case LIST:for(var h=e.children,d=0,_=h.length;d<_;d++)d>0&&f.add(", "),f.add(s(h[d],u));break;case ASSIGN:var h=e.children,I=e.assignOp;f.add([s(h[0],u)," ",I?tokens[I]:"","="," ",s(h[1],u)]);break;case HOOK:var h=e.children;f.add(["(",s(h[0],u)," ? ",s(h[1],u)," : ",s(h[2],u),")"]);break;case OR:case AND:var h=e.children;f.add(["(",s(h[0],u)," ",tokens[e.type]," ",s(h[1],u),")"]);break;case BITWISE_OR:case BITWISE_XOR:case BITWISE_AND:case EQ:case NE:case STRICT_EQ:case STRICT_NE:case LT:case LE:case GE:case GT:case IN:case INSTANCEOF:case LSH:case RSH:case URSH:case PLUS:case MINUS:case MUL:case DIV:case MOD:var h=e.children;f.add(["(",s(h[0],u)," ",tokens[e.type]," ",s(h[1],u),")"]);break;case DELETE:case VOID:case TYPEOF:f.add([tokens[e.type]," ",s(e.children[0],u)]);break;case NOT:case BITWISE_NOT:f.add([tokens[e.type],s(e.children[0],u)]);break;case UNARY_PLUS:f.add(["+",s(e.children[0],u)]);break;case UNARY_MINUS:f.add(["-",s(e.children[0],u)]);break;case INCREMENT:case DECREMENT:e.postfix?f.add([s(e.children[0],u),tokens[e.type]]):f.add([tokens[e.type],s(e.children[0],u)]);break;case DOT:var h=e.children;f.add([s(h[0],u),".",s(h[1],u)]);break;case INDEX:var h=e.children;f.add([s(h[0],u),"[",s(h[1],u),"]"]);break;case CALL:var h=e.children;f.add([s(h[0],u),"(",s(h[1],u),")"]);break;case NEW:case NEW_WITH_ARGS:var h=e.children;f.add("new "),f.add(s(h[0],u)),h[1]&&f.add(["(",s(h[1],u),")"]);break;case ARRAY_INIT:f.add("[");for(var h=e.children,d=0,_=h.length;d<_;d++)h[d]&&f.add(s(h[d],u)),f.add(",");f.add("]");break;case ARRAY_COMP:f.add(["[",s(e.expression,u)," ",s(e.tail,u),"]"]);break;case COMP_TAIL:for(var h=e.children,d=0,_=h.length;d<_;d++)d>0&&f.add(" "),f.add(s(h[d],u));e.guard&&f.add([" if (",s(e.guard,u),")"]);break;case OBJECT_INIT:var h=e.children;h[0]&&h[0].type===PROPERTY_INIT?f.add(t("{\n")):f.add("{");for(var d=0,_=h.length;d<_;d++){d>0&&f.add(t(",\n"));var I=h[d];if(I.type===PROPERTY_INIT){var N,g=I.children;"string"!=typeof g[0].value||/^[A-Za-z_$][A-Za-z0-9_$]*$/.test(g[0].value)?(N=s(g[0],u),f.add(n(2,N))):(N=a(g[0]),f.add(N)),f.add([": ",n(2,s(g[1],u)).stripPrefix(2)])}else f.add(n(2,s(I,u)))}f.add(t("\n}"));break;case NULL:f.add("null");break;case THIS:f.add("this");break;case TRUE:f.add("true");break;case FALSE:f.add("false");break;case IDENTIFIER:case NUMBER:case REGEXP:e.value.isOctal?f.add("0"+e.value.toString(8)):f.add(""+e.value);break;case STRING:f.add(a(e));break;case GROUP:f.add(["(",s(e.children[0],u),")"]);break;default:throw"PANIC: unknown operation "+tokens[e.type]+" "+e.toSource()}return e.parenthesized&&f.add(")"),f}var o=0,c={},u=s(e);return{source:u,lineMap:c};var l}eval(Narcissus.definitions.consts);var tokens=Narcissus.definitions.tokens;exports.format=function(e,t){var n="",r=_pp(e);if("sourcemap"==t)return r.source;if(r.source=r.source.toString(),"ignore"==t)return r.source;var i=r.lineMap,a=r.source.split("\n");if("preserve"==t){for(var s=1,o=!0,c=0;c"),a=!0),r&&(n=r(n,i)),o.push(' "),0!=o.length){var s=''+n+" "));if(a&&o.push("'+o.join("")+"
";if(null!=rt.legend.container)t(rt.legend.container).html(s);else{var c="",u=rt.legend.position,f=rt.legend.margin;null==f[0]&&(f=[f,f]),"n"==u.charAt(0)?c+="top:"+(f[1]+mt.top)+"px;":"s"==u.charAt(0)&&(c+="bottom:"+(f[1]+mt.bottom)+"px;"),"e"==u.charAt(1)?c+="right:"+(f[0]+mt.right)+"px;":"w"==u.charAt(1)&&(c+="left:"+(f[0]+mt.left)+"px;");var h=t('t.width()-(h+5)?(e.textAlign="right",l+=-3):(e.textAlign="left",l+=3),e.fillText(text,r.x+l,r.y+f),e.strokeStyle=i.color,e.lineWidth=i.lineWidth,e.lineJoin="round",e.beginPath(),i.mode.indexOf("x")!=-1&&(e.moveTo(r.x,0),e.lineTo(r.x,t.height())),i.mode.indexOf("y")!=-1&&(e.moveTo(0,r.y),e.lineTo(t.width(),r.y)),e.stroke()}e.restore()}}),t.hooks.shutdown.push(function(t,o){o.unbind("mouseout",e),o.unbind("mousemove",i)})}var r={crosshair:{mode:null,color:"rgba(0, 0, 0, 0.5)",lineWidth:1}};t.plot.plugins.push({init:i,options:r,name:"crosshair_GS",version:"1.0"})}(jQuery);
+!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.Plotly=t()}}(function(){var t;return function(){function t(e,r,n){function i(o,s){if(!r[o]){if(!e[o]){var l="function"==typeof require&&require;if(!s&&l)return l(o,!0);if(a)return a(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var u=r[o]={exports:{}};e[o][0].call(u.exports,function(t){var r=e[o][1][t];return i(r?r:t)},u,u.exports,t,e,r,n)}return r[o].exports}for(var a="function"==typeof require&&require,o=0;o>>26-s&67108863,s+=24,s>=26&&(s-=26,a++);else if("le"===r)for(i=0,a=0;i