bitburner-src/src/JSInterpreter.js

137 lines
68 KiB
JavaScript
Raw Normal View History

// Acorn: Copyright 2012 Marijn Haverbeke, MIT License
const acorn = require("acorn");
var mod$$inline_58=function(a){function b(a){n=a||{};for(var b in Ua)Object.prototype.hasOwnProperty.call(n,b)||(n[b]=Ua[b]);wa=n.sourceFile||null}function c(a,b){var c=Ab(k,a);b+=" ("+c.line+":"+c.column+")";var d=new SyntaxError(b);d.pos=a;d.loc=c;d.raisedAt=f;throw d;}function d(a){function b(a){if(1==a.length)return c+="return str === "+JSON.stringify(a[0])+";";c+="switch(str){";for(var va=0;va<a.length;++va)c+="case "+JSON.stringify(a[va])+":";c+="return true}return false;"}a=a.split(" ");var c=
"",d=[],e=0;a:for(;e<a.length;++e){for(var g=0;g<d.length;++g)if(d[g][0].length==a[e].length){d[g].push(a[e]);continue a}d.push([a[e]])}if(3<d.length){d.sort(function(a,b){return b.length-a.length});c+="switch(str.length){";for(e=0;e<d.length;++e)a=d[e],c+="case "+a[0].length+":",b(a);c+="}"}else b(a);return new Function("str",c)}function e(){this.line=G;this.column=f-D}function g(a,b){X=f;n.locations&&(ia=new e);p=a;l();H=b;R=a.beforeExpr}function h(){for(var a=f,b=n.onComment&&n.locations&&new e,
c=k.charCodeAt(f+=2);f<S&&10!==c&&13!==c&&8232!==c&&8233!==c;)++f,c=k.charCodeAt(f);if(n.onComment)n.onComment(!1,k.slice(a+2,f),a,f,b,n.locations&&new e)}function l(){for(;f<S;){var a=k.charCodeAt(f);if(32===a)++f;else if(13===a)++f,a=k.charCodeAt(f),10===a&&++f,n.locations&&(++G,D=f);else if(10===a||8232===a||8233===a)++f,n.locations&&(++G,D=f);else if(8<a&&14>a)++f;else if(47===a)if(a=k.charCodeAt(f+1),42===a){var a=n.onComment&&n.locations&&new e,b=f,d=k.indexOf("*/",f+=2);-1===d&&c(f-2,"Unterminated comment");
f=d+2;if(n.locations){Y.lastIndex=b;for(var g=void 0;(g=Y.exec(k))&&g.index<f;)++G,D=g.index+g[0].length}if(n.onComment)n.onComment(!0,k.slice(b+2,d),b,f,a,n.locations&&new e)}else if(47===a)h();else break;else if(160===a)++f;else if(5760<=a&&Bb.test(String.fromCharCode(a)))++f;else break}}function m(a){switch(a){case 46:return a=k.charCodeAt(f+1),48<=a&&57>=a?a=P(!0):(++f,a=g(xa)),a;case 40:return++f,g(I);case 41:return++f,g(E);case 59:return++f,g(J);case 44:return++f,g(L);case 91:return++f,g(ja);
case 93:return++f,g(ka);case 123:return++f,g(Z);case 125:return++f,g(T);case 58:return++f,g(aa);case 63:return++f,g(ya);case 48:if(a=k.charCodeAt(f+1),120===a||88===a)return f+=2,a=B(16),null==a&&c(x+2,"Expected hexadecimal number"),la(k.charCodeAt(f))&&c(f,"Identifier directly after number"),a=g(ba,a);case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return P(!1);case 34:case 39:a:{f++;for(var b="";;){f>=S&&c(x,"Unterminated string constant");var d=k.charCodeAt(f);if(d===a){++f;
a=g(da,b);break a}if(92===d){var d=k.charCodeAt(++f),e=/^[0-7]+/.exec(k.slice(f,f+3));for(e&&(e=e[0]);e&&255<parseInt(e,8);)e=e.slice(0,-1);"0"===e&&(e=null);++f;if(e)C&&c(f-2,"Octal literal in strict mode"),b+=String.fromCharCode(parseInt(e,8)),f+=e.length-1;else switch(d){case 110:b+="\n";break;case 114:b+="\r";break;case 120:b+=String.fromCharCode(ma(2));break;case 117:b+=String.fromCharCode(ma(4));break;case 85:b+=String.fromCharCode(ma(8));break;case 116:b+="\t";break;case 98:b+="\b";break;case 118:b+=
"\x0B";break;case 102:b+="\f";break;case 48:b+="\x00";break;case 13:10===k.charCodeAt(f)&&++f;case 10:n.locations&&(D=f,++G);break;default:b+=String.fromCharCode(d)}}else 13!==d&&10!==d&&8232!==d&&8233!==d||c(x,"Unterminated string constant"),b+=String.fromCharCode(d),++f}}return a;case 47:return a=k.charCodeAt(f+1),R?(++f,a=K()):a=61===a?t(U,2):t(za,1),a;case 37:case 42:return a=k.charCodeAt(f+1),a=61===a?t(U,2):t(Cb,1),a;case 124:case 38:return b=k.charCodeAt(f+1),a=b===a?t(124===a?Va:Wa,2):61===
b?t(U,2):t(124===a?Db:Eb,1),a;case 94:return a=k.charCodeAt(f+1),a=61===a?t(U,2):t(Fb,1),a;case 43:case 45:return b=k.charCodeAt(f+1),b===a?45==b&&62==k.charCodeAt(f+2)&&na.test(k.slice(M,f))?(f+=3,h(),l(),a=z()):a=t(Gb,2):a=61===b?t(U,2):t(Hb,1),a;case 60:case 62:return b=k.charCodeAt(f+1),d=1,b===a?(d=62===a&&62===k.charCodeAt(f+2)?3:2,a=61===k.charCodeAt(f+d)?t(U,d+1):t(Ib,d)):33==b&&60==a&&45==k.charCodeAt(f+2)&&45==k.charCodeAt(f+3)?(f+=4,h(),l(),a=z()):(61===b&&(d=61===k.charCodeAt(f+2)?3:2),
a=t(Jb,d)),a;case 61:case 33:return b=k.charCodeAt(f+1),a=61===b?t(Kb,61===k.charCodeAt(f+2)?3:2):t(61===a?Aa:Xa,1),a;case 126:return t(Xa,1)}return!1}function z(a){a?f=x+1:x=f;n.locations&&(oa=new e);if(a)return K();if(f>=S)return g(pa);var b=k.charCodeAt(f);if(la(b)||92===b)return Ya();a=m(b);if(!1===a){b=String.fromCharCode(b);if("\\"===b||Za.test(b))return Ya();c(f,"Unexpected character '"+b+"'")}return a}function t(a,b){var c=k.slice(f,f+b);f+=b;g(a,c)}function K(){for(var a,b,d=f;;){f>=S&&c(d,
"Unterminated regular expression");var e=k.charAt(f);na.test(e)&&c(d,"Unterminated regular expression");if(a)a=!1;else{if("["===e)b=!0;else if("]"===e&&b)b=!1;else if("/"===e&&!b)break;a="\\"===e}++f}a=k.slice(d,f);++f;(b=$a())&&!/^[gmsiy]*$/.test(b)&&c(d,"Invalid regexp flag");return g(Ba,new RegExp(a,b))}function B(a,b){for(var c=f,d=0,e=0,g=null==b?Infinity:b;e<g;++e){var h=k.charCodeAt(f),h=97<=h?h-97+10:65<=h?h-65+10:48<=h&&57>=h?h-48:Infinity;if(h>=a)break;++f;d=d*a+h}return f===c||null!=b&&
f-c!==b?null:d}function P(a){var b=f,d=!1,e=48===k.charCodeAt(f);a||null!==B(10)||c(b,"Invalid number");46===k.charCodeAt(f)&&(++f,B(10),d=!0);a=k.charCodeAt(f);if(69===a||101===a)a=k.charCodeAt(++f),43!==a&&45!==a||++f,null===B(10)&&c(b,"Invalid number"),d=!0;la(k.charCodeAt(f))&&c(f,"Identifier directly after number");a=k.slice(b,f);var h;d?h=parseFloat(a):e&&1!==a.length?/[89]/.test(a)||C?c(b,"Invalid number"):h=parseInt(a,8):h=parseInt(a,10);return g(ba,h)}function ma(a){a=B(16,a);null===a&&c(x,
"Bad character escape sequence");return a}function $a(){ca=!1;for(var a,b=!0,d=f;;){var e=k.charCodeAt(f);if(ab(e))ca&&(a+=k.charAt(f)),++f;else if(92===e){ca||(a=k.slice(d,f));ca=!0;117!=k.charCodeAt(++f)&&c(f,"Expecting Unicode escape sequence \\uXXXX");++f;var e=ma(4),g=String.fromCharCode(e);g||c(f-1,"Invalid Unicode escape");(b?la(e):ab(e))||c(f-4,"Invalid Unicode escape");a+=g}else break;b=!1}return ca?a:k.slice(d,f)}function Ya(){var a=$a(),b=V;ca||(Lb(a)?b=Ca[a]:(n.forbidReserved&&(3===n.ecmaVersion?
Mb:Nb)(a)||C&&bb(a))&&c(x,"The keyword '"+a+"' is reserved"));return g(b,a)}function r(){Da=x;M=X;Ea=ia;z()}function Fa(a){C=a;f=M;if(n.locations)for(;f<D;)D=k.lastIndexOf("\n",D-2)+1,--G;l();z()}function cb(){this.type=null;this.start=x;this.end=null}function db(){this.start=oa;this.end=null;null!==wa&&(this.source=wa)}function y(){var a=new cb;n.locations&&(a.loc=new db);n.directSourceFile&&(a.sourceFile=n.directSourceFile);n.ranges&&(a.range=[x,0]);return a}function Q(a){var b=new cb;b.start=a.start;
n.locations&&(b.loc=new db,b.loc.start=a.loc.start);n.ranges&&(b.range=[a.range[0],0]);return b}function q(a,b){a.type=b;a.end=M;n.locations&&(a.loc.end=Ea);n.ranges&&(a.range[1]=M);return a}function Ga(a){return 5<=n.ecmaVersion&&"ExpressionStatement"===a.type&&"Literal"===a.expression.type&&"use strict"===a.expression.value}function u(a){if(p===a)return r(),!0}function qa(){return!n.strictSemicolons&&(p===pa||p===T||na.test(k.slice(M,x)))}function W(){u(J)||qa()||N()}function v(a){p===a?r():N()}
function N(){c(x,"Unexpected token")}function ra(a){"Identifier"!==a.type&&"MemberExpression"!==a.type&&c(a.start,"Assigning to rvalue");C&&"Identifier"===a.type&&sa(a.name)&&c(a.start,"Assigning to "+a.name+" in strict mode")}function F(){(p===za||p===U&&"/="==H)&&z(!0);var a=p,b=y();switch(a){case Ha:case eb:r();var d=a===Ha;u(J)||qa()?b.label=null:p!==V?N():(b.label=O(),W());for(var e=0;e<w.length;++e){var g=w[e];if(null==b.label||g.name===b.label.name){if(null!=g.kind&&(d||"loop"===g.kind))break;
if(b.label&&d)break}}e===w.length&&c(b.start,"Unsyntactic "+a.keyword);return q(b,d?"BreakStatement":"ContinueStatement");case fb:return r(),W(),q(b,"DebuggerStatement");case gb:return r(),w.push(Ia),b.body=F(),w.pop(),v(Ja),b.test=ea(),W(),q(b,"DoWhileStatement");case hb:r();w.push(Ia);v(I);if(p===J)return Ka(b,null);if(p===La)return a=y(),r(),ib(a,!0),q(a,"VariableDeclaration"),1===a.declarations.length&&u(ta)?jb(b,a):Ka(b,a);a=A(!1,!0);return u(ta)?(ra(a),jb(b,a)):Ka(b,a);case Ma:return r(),Na(b,
!0);case kb:return r(),b.test=ea(),b.consequent=F(),b.alternate=u(lb)?F():null,q(b,"IfStatement");case mb:return fa||c(x,"'return' outside of function"),r(),u(J)||qa()?b.argument=null:(b.argument=A(),W()),q(b,"ReturnStatement");case Oa:r();b.discriminant=ea();b.cases=[];v(Z);for(w.push(Ob);p!=T;)p===Pa||p===nb?(a=p===Pa,e&&q(e,"SwitchCase"),b.cases.push(e=y()),e.consequent=[],r(),a?e.test=A():(d&&c(Da,"Multiple default clauses"),d=!0,e.test=null),v(aa)):(e||N(),e.consequent.push(F()));e&&q(e,"SwitchCase");
r();w.pop();return q(b,"SwitchStatement");case ob:return r(),na.test(k.slice(M,x))&&c(M,"Illegal newline after throw"),b.argument=A(),W(),q(b,"ThrowStatement");case pb:return r(),b.block=ga(),b.handler=null,p===qb&&(a=y(),r(),v(I),a.param=O(),C&&sa(a.param.name)&&c(a.param.start,"Binding "+a.param.name+" in strict mode"),v(E),a.guard=null,a.body=ga(),b.handler=q(a,"CatchClause")),b.guardedHandlers=rb,b.finalizer=u(sb)?ga():null,b.handler||b.finalizer||c(b.start,"Missing catch or finally clause"),
q(b,"TryStatement");case La:return r(),ib(b),W(),q(b,"VariableDeclaration");case Ja:return r(),b.test=ea(),w.push(Ia),b.body=F(),w.pop(),q(b,"WhileStatement");case tb:return C&&c(x,"'with' in strict mode"),r(),b.object=ea(),b.body=F(),q(b,"WithStatement");case Z:return ga();case J:return r(),q(b,"EmptyStatement");default:d=H;g=A();if(a===V&&"Identifier"===g.type&&u(aa)){for(e=0;e<w.length;++e)w[e].name===d&&c(g.start,"Label '"+d+"' is already declared");a=p.isLoop?"loop":p===Oa?"switch":null;w.push({name:d,
kind:a});b.body=F();w.pop();b.label=g;return q(b,"LabeledStatement")}b.expression=g;W();return q(b,"ExpressionStatement")}}function ea(){v(I);var a=A();v(E);return a}function ga(a){var b=y(),c=!0,d=!1,e;b.body=[];for(v(Z);!u(T);){var g=F();b.body.push(g);c&&a&&Ga(g)&&(e=d,Fa(d=!0));c=!1}d&&!e&&Fa(!1);return q(b,"BlockStatement")}function Ka(a,b){a.init=b;v(J);a.test=p===J?null:A();v(J);a.update=p===E?null:A();v(E);a.body=F();w.pop();return q(a,"ForStatement")}function jb(a,b){a.left=b;a.right=A();
v(E);a.body=F();w.pop();return q(a,"ForInStatement")}function ib(a,b){a.declarations=[];for(a.kind="var";;){var d=y();d.id=O();C&&sa(d.id.name)&&c(d.id.start,"Binding "+d.id.name+" in strict mode");d.init=u(Aa)?A(!0,b):null;a.declarations.push(q(d,"VariableDeclarator"));if(!u(L))break}return a}function A(a,b){var c=Qa(b);if(!a&&p===L){var d=Q(c);for(d.expressions=[c];u(L);)d.expressions.push(Qa(b));return q(d,"SequenceExpression")}return c}function Qa(a){var b;b=a;var c;c=b;c=Ra(Sa(),-1,c);if(u(ya)){var d=
Q(c);d.test=c;d.consequent=A(!0);v(aa);d.alternate=A(!0,b);b=q(d,"ConditionalExpression")}else b=c;return p.isAssign?(c=Q(b),c.operator=H,c.left=b,r(),c.right=Qa(a),ra(b),q(c,"AssignmentExpression")):b}function Ra(a,b,c){var d=p.binop;if(null!=d&&(!c||p!==ta)&&d>b){var e=Q(a);e.left=a;e.operator=H;a=p;r();e.right=Ra(Sa(),d,c);d=q(e,a===Va||a===Wa?"LogicalExpression":"BinaryExpression");return Ra(d,b,c)}return a}function Sa(){if(p.prefix){var a=y(),b=p.isUpdate;a.operator=H;R=a.prefix=!0;r();a.argument=
Sa();b?ra(a.argument):C&&"delete"===a.operator&&"Identifier"===a.argument.type&&c(a.start,"Deleting local variable in strict mode");return q(a,b?"UpdateExpression":"UnaryExpression")}for(b=ha(ua());p.postfix&&!qa();)a=Q(b),a.operator=H,a.prefix=!1,a.argument=b,ra(b),r(),b=q(a,"UpdateExpression");return b}function ha(a,b){if(u(xa)){var c=Q(a);c.object=a;c.property=O(!0);c.computed=!1;return ha(q(c,"MemberExpression"),b)}return u(ja)?(c=Q(a),c.object=a,c.property=A(),c.computed=!0,v(ka),ha(q(c,"MemberExpression"),
b)):!b&&u(I)?(c=Q(a),c.callee=a,c.arguments=Ta(E,!1),ha(q(c,"CallExpression"),b)):a}function ua(){switch(p){case ub:var a=y();r();return q(a,"ThisExpression");case V:return O();case ba:case da:case Ba:return a=y(),a.value=H,a.raw=k.slice(x,X),r(),q(a,"Literal");case vb:case wb:case xb:return a=y(),a.value=p.atomValue,a.raw=p.keyword,r(),q(a,"Literal");case I:var a=oa,b=x;r();var d=A();d.start=b;d.end=X;n.locations&&(d.loc.start=a,d.loc.end=ia);n.ranges&&(d.range=[b,X]);v(E);return d;case ja:return a=
y(),r(),a.elements=Ta(ka,!0,!0),q(a,"ArrayExpression");case Z:a=y();b=!0;d=!1;a.properties=[];for(r();!u(T);){if(b)b=!1;else if(v(L),n.allowTrailingCommas&&u(T))break;var e={key:p===ba||p===da?ua():O(!0)},g=!1,h;u(aa)?(e.value=A(!0),h=e.kind="init"):5<=n.ecmaVersion&&"Identifier"===e.key.type&&("get"===e.key.name||"set"===e.key.name)?(g=d=!0,h=e.kind=e.key.name,e.key=p===ba||p===da?ua():O(!0),p!==I&&N(),e.value=Na(y(),!1)):N();if("Identifier"===e.key.type&&(C||d))for(var f=0;f<a.properties.length;++f){var l=
a.properties[f];if(l.key.name===e.key.name){var m=h==l.kind||g&&"init"===l.kind||"init"===h&&("get"===l.kind||"set"===l.kind);m&&!C&&"init"===h&&"init"===l.kind&&(m=!1);m&&c(e.key.start,"Redefinition of property")}}a.properties.push(e)}return a=q(a,"ObjectExpression");case Ma:return a=y(),r(),Na(a,!1);case yb:return a=y(),r(),a.callee=ha(ua(),!0),u(I)?a.arguments=Ta(E,!1):a.arguments=rb,a=q(a,"NewExpression");default:N()}}function Na(a,b){p===V?a.id=O():b?N():a.id=null;a.params=[];var d=!0;for(v(I);!u(E);)d?
d=!1:v(L),a.params.push(O());var d=fa,e=w;fa=!0;w=[];a.body=ga(!0);fa=d;w=e;if(C||a.body.body.length&&Ga(a.body.body[0]))for(d=a.id?-1:0;d<a.params.length;++d)if(e=0>d?a.id:a.params[d],(bb(e.name)||sa(e.name))&&c(e.start,"Defining '"+e.name+"' in strict mode"),0<=d)for(var g=0;g<d;++g)e.name===a.params[g].name&&c(e.start,"Argument name clash in strict mode");return q(a,b?"FunctionDeclaration":"FunctionExpression")}function Ta(a,b,c){for(var d=[],e=!0;!u(a);){if(e)e=!1;else if(v(L),b&&n.allowTrailingCommas&&
u(a))break;c&&p===L?d.push(null):d.push(A(!0))}return d}function O(a){var b=y();b.name=p===V?H:a&&!n.forbidReserved&&p.keyword||N();R=!1;r();return q(b,"Identifier")}a.version="0.4.1";var n,k,S,wa;a.parse=function(a,c){k=String(a);S=k.length;b(c);G=1;f=D=0;R=!0;l();var d,g=n.program;Da=M=f;n.locations&&(Ea=new e);fa=C=null;w=[];z();d=g||y();var h=!0;g||(d.body=[]);for(;p!==pa;)g=F(),d.body.push(g),h&&Ga(g)&&Fa(!0),h=!1;return d=q(d,"Program")};var Ua=a.defaultOptions={ecmaVersion:5,strictSemicolons:!1,
allowTrailingCommas:!0,forbidReserved:!1,locations:!1,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null},Ab=a.getLineInfo=function(a,b){for(var c=1,d=0;;){Y.lastIndex=d;var e=Y.exec(a);if(e&&e.index<b)++c,d=e.index+e[0].length;else break}return{line:c,column:b-d}};a.tokenize=function(a,c){function d(a){z(a);e.start=x;e.end=X;e.startLoc=oa;e.endLoc=ia;e.type=p;e.value=H;return e}k=String(a);S=k.length;b(c);G=1;f=D=0;R=!0;l();var e={};d.jumpTo=function(a,b){f=a;if(n.locations){G=
1;D=Y.lastIndex=0;for(var c;(c=Y.exec(k))&&c.index<a;)++G,D=c.index+c[0].length}R=b;l()};return d};var f,x,X,oa,ia,p,H,R,G,D,Da,M,Ea,fa,w,C,rb=[],ba={type:"num"},Ba={type:"regexp"},da={type:"string"},V={type:"name"},pa={type:"eof"},Ha={keyword:"break"},Pa={keyword:"case",beforeExpr:!0},qb={keyword:"catch"},eb={keyword:"continue"},fb={keyword:"debugger"},nb={keyword:"default"},gb={keyword:"do",isLoop:!0},lb={keyword:"else",beforeExpr:!0},sb={keyword:"finally"},hb={keyword:"for",isLoop:!0},Ma={keyword:"function"},
kb={keyword:"if"},mb={keyword:"return",beforeExpr:!0},Oa={keyword:"switch"},ob={keyword:"throw",beforeExpr:!0},pb={keyword:"try"},La={keyword:"var"},Ja={keyword:"while",isLoop:!0},tb={keyword:"with"},yb={keyword:"new",beforeExpr:!0},ub={keyword:"this"},vb={keyword:"null",atomValue:null},wb={keyword:"true",atomValue:!0},xb={keyword:"false",atomValue:!1},ta={keyword:"in",binop:7,beforeExpr:!0},Ca={"break":Ha,"case":Pa,"catch":qb,"continue":eb,"debugger":fb,"default":nb,"do":gb,"else":lb,"finally":sb,
"for":hb,"function":Ma,"if":kb,"return":mb,"switch":Oa,"throw":ob,"try":pb,"var":La,"while":Ja,"with":tb,"null":vb,"true":wb,"false":xb,"new":yb,"in":ta,"instanceof":{keyword:"instanceof",binop:7,beforeExpr:!0},"this":ub,"typeof":{keyword:"typeof",prefix:!0,beforeExpr:!0},"void":{keyword:"void",prefix:!0,beforeExpr:!0},"delete":{keyword:"delete",prefix:!0,beforeExpr:!0}},ja={type:"[",beforeExpr:!0},ka={type:"]"},Z={type:"{",beforeExpr:!0},T={type:"}"},I={type:"(",beforeExpr:!0},E={type:")"},L={type:",",
beforeExpr:!0},J={type:";",beforeExpr:!0},aa={type:":",beforeExpr:!0},xa={type:"."},ya={type:"?",beforeExpr:!0},za={binop:10,beforeExpr:!0},Aa={isAssign:!0,beforeExpr:!0},U={isAssign:!0,beforeExpr:!0},Gb={postfix:!0,prefix:!0,isUpdate:!0},Xa={prefix:!0,beforeExpr:!0},Va={binop:1,beforeExpr:!0},Wa={binop:2,beforeExpr:!0},Db={binop:3,beforeExpr:!0},Fb={binop:4,beforeExpr:!0},Eb={binop:5,beforeExpr:!0},Kb={binop:6,beforeExpr:!0},Jb={binop:7,beforeExpr:!0},Ib={binop:8,beforeExpr:!0},Hb={binop:9,prefix:!0,
beforeExpr:!0},Cb={binop:10,beforeExpr:!0};a.tokTypes={bracketL:ja,bracketR:ka,braceL:Z,braceR:T,parenL:I,parenR:E,comma:L,semi:J,colon:aa,dot:xa,question:ya,slash:za,eq:Aa,name:V,eof:pa,num:ba,regexp:Ba,string:da};for(var zb in Ca)a.tokTypes["_"+zb]=Ca[zb];var Mb=d("abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile"),Nb=d("class enum extends super const export import"),
bb=d("implements interface let package private protected public static yield"),sa=d("eval arguments"),Lb=d("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"),Bb=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Za=RegExp("[\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0\u08a2-\u08ac\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097f\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c33\u0c35-\u0c39\u0c3d\u0c58\u0c59\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d60\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f4\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f0\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191c\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19c1-\u19c7\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fcc\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua697\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua78e\ua790-\ua793\ua7a0-\ua7aa\ua7f8-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa80-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\ua
Pb=RegExp("[\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0\u08a2-\u08ac\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097f\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c33\u0c35-\u0c39\u0c3d\u0c58\u0c59\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d60\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f4\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f0\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191c\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19c1-\u19c7\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fcc\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua697\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua78e\ua790-\ua793\ua7a0-\ua7aa\ua7f8-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa80-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uabc0-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\
na=/[\n\r\u2028\u2029]/,Y=/\r\n|[\n\r\u2028\u2029]/g,la=a.isIdentifierStart=function(a){return 65>a?36===a:91>a?!0:97>a?95===a:123>a?!0:170<=a&&Za.test(String.fromCharCode(a))},ab=a.isIdentifierChar=function(a){return 48>a?36===a:58>a?!0:65>a?!1:91>a?!0:97>a?95===a:123>a?!0:170<=a&&Pb.test(String.fromCharCode(a))},ca,Ia={kind:"loop"},Ob={kind:"switch"}};
"object"==typeof exports&&"object"==typeof module?mod$$inline_58(exports):"function"==typeof define&&define.amd?define(["exports"],mod$$inline_58):mod$$inline_58(this.acorn||(this.acorn={}));
// JS-Interpreter: Copyright 2013 Google Inc, Apache 2.0
function m(a,b){"string"===typeof a&&(a=acorn.parse(a,ja));this.ga=a;this.gb=b;this.xa=!1;this.ca=[];this.Ca=0;this.lb=Object.create(null);var c=/^step([A-Z]\w*)$/,d,e;for(e in this)"function"===typeof this[e]&&(d=e.match(c))&&(this.lb[d[1]]=this[e].bind(this));this.global=ka(this,this.ga,null);this.ga=acorn.parse(this.ca.join("\n"),ja);this.ca=void 0;ra(this,this.ga,void 0,void 0);c=new r(this.ga,this.global);c.done=!1;this.j=[c];this.jb();this.value=void 0;this.ga=a;c=new r(this.ga,this.global);
c.done=!1;this.j.length=0;this.j[0]=c;this.Pa=c.node.constructor;this.stateStack=this.j}var ja={Ba:5},t={configurable:!0,enumerable:!0,writable:!1},v={configurable:!0,enumerable:!1,writable:!0},B={configurable:!0,enumerable:!1,writable:!1},ya={configurable:!1,enumerable:!0,writable:!0},za={},Aa={},Ba={},Ca=[];
m.prototype.qb=function(a){var b=this.j[0];if(!b||"Program"!==b.node.type)throw Error("Expecting original AST to start with a Program node.");"string"===typeof a&&(a=acorn.parse(a,ja));if(!a||"Program"!==a.type)throw Error("Expecting new AST to start with a Program node.");Qa(this,a,b.scope);for(var c=0,d;d=a.body[c];c++)b.node.body.push(d);b.done=!1};
m.prototype.step=function(){var a=this.j,b=a[a.length-1];if(!b)return!1;var c=b.node,d=c.type;if("Program"===d&&b.done)return!1;if(this.xa)return!0;try{var e=this.lb[d](a,b,c)}catch(f){if(f!==za)throw f;}e&&a.push(e);return c.end?!0:this.step()};m.prototype.jb=function(){for(;!this.xa&&this.step(););return this.xa};
function pb(a,b){a.setProperty(b,"NaN",NaN,t);a.setProperty(b,"Infinity",Infinity,t);a.setProperty(b,"undefined",void 0,t);a.setProperty(b,"window",b,t);a.setProperty(b,"this",b,t);a.setProperty(b,"self",b);a.F=new qb(null);a.I=new qb(a.F);rb(a,b);sb(a,b);b.na=a.F;a.setProperty(b,"constructor",a.m,v);tb(a,b);ub(a,b);vb(a,b);wb(a,b);xb(a,b);yb(a,b);gc(a,b);hc(a,b);ic(a,b);var c=a.b(function(){throw EvalError("Can't happen");},!1);c.eval=!0;a.setProperty(b,"eval",c);a.setProperty(b,"parseInt",a.b(parseInt,
!1));a.setProperty(b,"parseFloat",a.b(parseFloat,!1));a.setProperty(b,"isNaN",a.b(isNaN,!1));a.setProperty(b,"isFinite",a.b(isFinite,!1));c=[[escape,"escape"],[unescape,"unescape"],[decodeURI,"decodeURI"],[decodeURIComponent,"decodeURIComponent"],[encodeURI,"encodeURI"],[encodeURIComponent,"encodeURIComponent"]];for(var d=0;d<c.length;d++)a.setProperty(b,c[d][1],a.b(function(b){return function(c){try{return b(c)}catch(l){E(a,a.nb,l.message)}}}(c[d][0]),!1),v);a.OBJECT=a.m;a.OBJECT_PROTO=a.F;a.FUNCTION=
a.C;a.FUNCTION_PROTO=a.I;a.ARRAY=a.l;a.ARRAY_PROTO=a.W;a.REGEXP=a.w;a.REGEXP_PROTO=a.za;a.DATE=a.S;a.DATE_PROTO=a.Va;a.UNDEFINED=void 0;a.NULL=null;a.NAN=NaN;a.TRUE=!0;a.FALSE=!1;a.STRING_EMPTY="";a.NUMBER_ZERO=0;a.NUMBER_ONE=1;a.gb&&a.gb(a,b)}
function rb(a,b){function c(b){if(!(b&&b.o||jc(a).G))if(void 0===b||null===b)b=a.global;else{var c=a.g(M(a,b));c.data=b;b=c}return b}var d=/^[A-Za-z_$][\w$]*$/;var e=function(b){var c=R(a)?this:a.g(a.I),e=arguments.length?String(arguments[arguments.length-1]):"",f=Array.prototype.slice.call(arguments,0,-1).join(",").trim();if(f){f=f.split(/\s*,\s*/);for(var G=0;G<f.length;G++){var y=f[G];d.test(y)||E(a,a.ea,"Invalid function argument: "+y)}f=f.join(", ")}c.ba=a.global;try{var ta=acorn.parse("(function("+
f+") {"+e+"})",ja)}catch(da){E(a,a.ea,"Invalid code: "+da.message)}1!==ta.body.length&&E(a,a.ea,"Invalid code in function body.");c.node=ta.body[0].expression;a.setProperty(c,"length",c.node.length,t);return c};e.id=a.Ca++;a.C=a.g(a.I);a.setProperty(b,"Function",a.C);a.setProperty(a.C,"prototype",a.I);a.C.wa=e;a.setProperty(a.I,"constructor",a.C,v);a.I.wa=function(){};a.I.wa.id=a.Ca++;a.setProperty(a.I,"length",0,t);e=function(b,d){var e=a.j[a.j.length-1];e.Y=this;e.J=c(b);e.B=[];if(null!==d&&void 0!==
d)if(d.o){var f=[],l;for(l in d.a)f[l]=a.v(d,l);f.length=kc(a.v(d,"length"))||0;e.B=f}else E(a,a.h,"CreateListFromArrayLike called on non-object");e.Na=!1};S(a,a.C,"apply",e);e=function(b){var d=a.j[a.j.length-1];d.Y=this;d.J=c(b);d.B=[];for(var e=1;e<arguments.length;e++)d.B.push(arguments[e]);d.Na=!1};S(a,a.C,"call",e);a.ca.push("Object.defineProperty(Function.prototype, 'bind',","{configurable: true, writable: true, value:","function(oThis) {","if (typeof this !== 'function') {","throw TypeError('What is trying to be bound is not callable');",
"}","var aArgs = Array.prototype.slice.call(arguments, 1),","fToBind = this,","fNOP = function() {},","fBound = function() {","return fToBind.apply(this instanceof fNOP","? this",": oThis,","aArgs.concat(Array.prototype.slice.call(arguments)));","};","if (this.prototype) {","fNOP.prototype = this.prototype;","}","fBound.prototype = new fNOP();","return fBound;","}","});","");e=function(){return this.toString()};S(a,a.C,"toString",e);a.setProperty(a.C,"toString",a.b(e,!1),v);e=function(){return this.valueOf()};
S(a,a.C,"valueOf",e);a.setProperty(a.C,"valueOf",a.b(e,!1),v)}
function sb(a,b){function c(b){void 0!==b&&null!==b||E(a,a.h,"Cannot convert '"+b+"' to object")}var d=function(b){if(void 0===b||null===b)return R(a)?this:a.g(a.F);if(!b.o){var c=a.g(M(a,b));c.data=b;return c}return b};a.m=a.b(d,!0);a.setProperty(a.m,"prototype",a.F);a.setProperty(a.F,"constructor",a.m,v);a.setProperty(b,"Object",a.m);d=function(b){c(b);return lc(a,Object.getOwnPropertyNames(b.o?b.a:b))};a.setProperty(a.m,"getOwnPropertyNames",a.b(d,!1),v);d=function(b){c(b);b.o&&(b=b.a);return lc(a,
Object.keys(b))};a.setProperty(a.m,"keys",a.b(d,!1),v);d=function(b){if(null===b)return a.g(null);void 0!==b&&b.o||E(a,a.h,"Object prototype may only be an Object or null");return a.g(b)};a.setProperty(a.m,"create",a.b(d,!1),v);a.ca.push("(function() {","var create_ = Object.create;","Object.create = function(proto, props) {","var obj = create_(proto);","props && Object.defineProperties(obj, props);","return obj;","};","})();","");d=function(b,c,d){c=String(c);b&&b.o||E(a,a.h,"Object.defineProperty called on non-object");
d&&d.o||E(a,a.h,"Property description must be an object");!b.a[c]&&b.preventExtensions&&E(a,a.h,"Can't define property '"+c+"', object is not extensible");a.setProperty(b,c,Ba,d.a);return b};a.setProperty(a.m,"defineProperty",a.b(d,!1),v);a.ca.push("(function() {","var defineProperty_ = Object.defineProperty;","Object.defineProperty = function(obj, prop, d1) {","var d2 = {};","if ('configurable' in d1) d2.configurable = d1.configurable;","if ('enumerable' in d1) d2.enumerable = d1.enumerable;","if ('writable' in d1) d2.writable = d1.writable;",
"if ('value' in d1) d2.value = d1.value;","if ('get' in d1) d2.get = d1.get;","if ('set' in d1) d2.set = d1.set;","return defineProperty_(obj, prop, d2);","};","})();","Object.defineProperty(Object, 'defineProperties',","{configurable: true, writable: true, value:","function(obj, props) {","var keys = Object.keys(props);","for (var i = 0; i < keys.length; i++) {","Object.defineProperty(obj, keys[i], props[keys[i]]);","}","return obj;","}","});","");d=function(b,c){b&&b.o||E(a,a.h,"Object.getOwnPropertyDescriptor called on non-object");
c=String(c);if(c in b.a){var d=Object.getOwnPropertyDescriptor(b.a,c),e=b.O[c],f=b.R[c];if(e||f)d.get=e,d.set=f,delete d.value,delete d.writable;e=d.value;f="value"in d;delete d.value;d=a.ka(d);f&&a.setProperty(d,"value",e);return d}};a.setProperty(a.m,"getOwnPropertyDescriptor",a.b(d,!1),v);d=function(b){c(b);return M(a,b)};a.setProperty(a.m,"getPrototypeOf",a.b(d,!1),v);d=function(a){return!!a&&!a.preventExtensions};a.setProperty(a.m,"isExtensible",a.b(d,!1),v);d=function(a){a&&a.o&&(a.preventExtensions=
!0);return a};a.setProperty(a.m,"preventExtensions",a.b(d,!1),v);S(a,a.m,"toString",qb.prototype.toString);S(a,a.m,"toLocaleString",qb.prototype.toString);S(a,a.m,"valueOf",qb.prototype.valueOf);d=function(a){c(this);return this.o?String(a)in this.a:this.hasOwnProperty(a)};S(a,a.m,"hasOwnProperty",d);d=function(a){c(this);return this.o?Object.prototype.propertyIsEnumerable.call(this.a,a):this.propertyIsEnumerable(a)};S(a,a.m,"propertyIsEnumerable",d);d=function(b){for(;;){b=M(a,b);if(!b)return!1;
if(b===this)return!0}};S(a,a.m,"isPrototypeOf",d)}
function tb(a,b){var c=function(b){var c=R(a)?this:a.g(a.W),d=arguments[0];if(1===arguments.length&&"number"===typeof d)isNaN(kc(d))&&E(a,a.Wa,"Invalid array length"),c.a.length=d;else{for(d=0;d<arguments.length;d++)c.a[d]=arguments[d];c.a.length=d}return c};a.l=a.b(c,!0);a.W=a.l.a.prototype;a.setProperty(b,"Array",a.l);c=function(a){return a&&"Array"===a.K};a.setProperty(a.l,"isArray",a.b(c,!1),v);S(a,a.l,"pop",function(){return Array.prototype.pop.call(this.a)});c=function(a){return Array.prototype.push.apply(this.a,
arguments)};S(a,a.l,"push",c);S(a,a.l,"shift",function(){return Array.prototype.shift.call(this.a)});c=function(a){return Array.prototype.unshift.apply(this.a,arguments)};S(a,a.l,"unshift",c);S(a,a.l,"reverse",function(){Array.prototype.reverse.call(this.a);return this});c=function(b,c){var d=Array.prototype.splice.apply(this.a,arguments);return lc(a,d)};S(a,a.l,"splice",c);c=function(b,c){return lc(a,Array.prototype.slice.call(this.a,b,c))};S(a,a.l,"slice",c);c=function(a){return Array.prototype.join.call(this.a,
a)};S(a,a.l,"join",c);c=function(b){for(var c=[],d=0,l=a.v(this,"length"),w=0;w<l;w++){if(Cc(a,this,w)){var T=a.v(this,w);c[d]=T}d++}for(w=0;w<arguments.length;w++)if(l=arguments[w],Y(a,l,a.l)){T=a.v(l,"length");for(var G=0;G<T;G++)Cc(a,l,G)&&(c[d]=a.v(l,G)),d++}else c[d]=l;return lc(a,c)};S(a,a.l,"concat",c);c=function(a,b){return Array.prototype.indexOf.apply(this.a,arguments)};S(a,a.l,"indexOf",c);c=function(a,b){return Array.prototype.lastIndexOf.apply(this.a,arguments)};S(a,a.l,"lastIndexOf",
c);S(a,a.l,"sort",function(){Array.prototype.sort.call(this.a);return this});a.ca.push("Object.defineProperty(Array.prototype, 'every',","{configurable: true, writable: true, value:","function(callbackfn, thisArg) {","if (!this || typeof callbackfn !== 'function') throw TypeError();","var T, k;","var O = Object(this);","var len = O.length >>> 0;","if (arguments.length > 1) T = thisArg;","k = 0;","while (k < len) {","if (k in O && !callbackfn.call(T, O[k], k, O)) return false;","k++;","}","return true;",
"}","});","Object.defineProperty(Array.prototype, 'filter',","{configurable: true, writable: true, value:","function(fun/*, thisArg*/) {","if (this === void 0 || this === null || typeof fun !== 'function') throw TypeError();","var t = Object(this);","var len = t.length >>> 0;","var res = [];","var thisArg = arguments.length >= 2 ? arguments[1] : void 0;","for (var i = 0; i < len; i++) {","if (i in t) {","var val = t[i];","if (fun.call(thisArg, val, i, t)) res.push(val);","}","}","return res;","}",
"});","Object.defineProperty(Array.prototype, 'forEach',","{configurable: true, writable: true, value:","function(callback, thisArg) {","if (!this || typeof callback !== 'function') throw TypeError();","var T, k;","var O = Object(this);","var len = O.length >>> 0;","if (arguments.length > 1) T = thisArg;","k = 0;","while (k < len) {","if (k in O) callback.call(T, O[k], k, O);","k++;","}","}","});","Object.defineProperty(Array.prototype, 'map',","{configurable: true, writable: true, value:","function(callback, thisArg) {",
"if (!this || typeof callback !== 'function') new TypeError;","var T, A, k;","var O = Object(this);","var len = O.length >>> 0;","if (arguments.length > 1) T = thisArg;","A = new Array(len);","k = 0;","while (k < len) {","if (k in O) A[k] = callback.call(T, O[k], k, O);","k++;","}","return A;","}","});","Object.defineProperty(Array.prototype, 'reduce',","{configurable: true, writable: true, value:","function(callback /*, initialValue*/) {","if (!this || typeof callback !== 'function') throw TypeError();",
"var t = Object(this), len = t.length >>> 0, k = 0, value;","if (arguments.length === 2) {","value = arguments[1];","} else {","while (k < len && !(k in t)) k++;","if (k >= len) {","throw TypeError('Reduce of empty array with no initial value');","}","value = t[k++];","}","for (; k < len; k++) {","if (k in t) value = callback(value, t[k], k, t);","}","return value;","}","});","Object.defineProperty(Array.prototype, 'reduceRight',","{configurable: true, writable: true, value:","function(callback /*, initialValue*/) {",
"if (null === this || 'undefined' === typeof this || 'function' !== typeof callback) throw TypeError();","var t = Object(this), len = t.length >>> 0, k = len - 1, value;","if (arguments.length >= 2) {","value = arguments[1];","} else {","while (k >= 0 && !(k in t)) k--;","if (k < 0) {","throw TypeError('Reduce of empty array with no initial value');","}","value = t[k--];","}","for (; k >= 0; k--) {","if (k in t) value = callback(value, t[k], k, t);","}","return value;","}","});","Object.defineProperty(Array.prototype, 'some',",
"{configurable: true, writable: true, value:","function(fun/*, thisArg*/) {","if (!this || typeof fun !== 'function') throw TypeError();","var t = Object(this);","var len = t.length >>> 0;","var thisArg = arguments.length >= 2 ? arguments[1] : void 0;","for (var i = 0; i < len; i++) {","if (i in t && fun.call(thisArg, t[i], i, t)) {","return true;","}","}","return false;","}","});","(function() {","var sort_ = Array.prototype.sort;","Array.prototype.sort = function(opt_comp) {","if (typeof opt_comp !== 'function') {",
"return sort_.call(this);","}","for (var i = 0; i < this.length; i++) {","var changes = 0;","for (var j = 0; j < this.length - i - 1; j++) {","if (opt_comp(this[j], this[j + 1]) > 0) {","var swap = this[j];","this[j] = this[j + 1];","this[j + 1] = swap;","changes++;","}","}","if (!changes) break;","}","return this;","};","})();","Object.defineProperty(Array.prototype, 'toLocaleString',","{configurable: true, writable: true, value:","function() {","var out = [];","for (var i = 0; i < this.length; i++) {",
"out[i] = (this[i] === null || this[i] === undefined) ? '' : this[i].toLocaleString();","}","return out.join(',');","}","});","")}
function ub(a,b){var c=function(b){b=String(b);return R(a)?(this.data=b,this):b};a.A=a.b(c,!0);a.setProperty(b,"String",a.A);a.setProperty(a.A,"fromCharCode",a.b(String.fromCharCode,!1),v);c="charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" ");for(var d=0;d<c.length;d++)S(a,a.A,c[d],String.prototype[c[d]]);c=function(b,c,d){c=c?a.M(c):void 0;d=d?a.M(d):void 0;return String(this).localeCompare(b,c,d)};S(a,
a.A,"localeCompare",c);c=function(b,c){Y(a,b,a.w)&&(b=b.data);return lc(a,String(this).split(b,c))};S(a,a.A,"split",c);c=function(b){Y(a,b,a.w)&&(b=b.data);return(b=String(this).match(b))&&lc(a,b)};S(a,a.A,"match",c);c=function(b){Y(a,b,a.w)&&(b=b.data);return String(this).search(b)};S(a,a.A,"search",c);c=function(b,c){Y(a,b,a.w)&&(b=b.data);return String(this).replace(b,c)};S(a,a.A,"replace",c);a.ca.push("(function() {","var replace_ = String.prototype.replace;","String.prototype.replace = function(substr, newSubstr) {",
"if (typeof newSubstr !== 'function') {","return replace_.call(this, substr, newSubstr);","}","var str = this;","if (substr instanceof RegExp) {","var subs = [];","var m = substr.exec(str);","while (m) {","m.push(m.index, str);","var inject = newSubstr.apply(null, m);","subs.push([m.index, m[0].length, inject]);","m = substr.global ? substr.exec(str) : null;","}","for (var i = subs.length - 1; i >= 0; i--) {","str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);",
"}","} else {","var i = str.indexOf(substr);","if (i !== -1) {","var inject = newSubstr(str.substr(i, substr.length), i, str);","str = str.substring(0, i) + inject + str.substring(i + substr.length);","}","}","return str;","};","})();","")}function vb(a,b){a.Ua=a.b(function(b){b=!!b;return R(a)?(this.data=b,this):b},!0);a.setProperty(b,"Boolean",a.Ua)}
function wb(a,b){var c=function(b){b=Number(b);return R(a)?(this.data=b,this):b};a.T=a.b(c,!0);a.setProperty(b,"Number",a.T);c=["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"];for(var d=0;d<c.length;d++)a.setProperty(a.T,c[d],Number[c[d]],B);c=function(b){try{return Number(this).toExponential(b)}catch(f){E(a,a.H,f.message)}};S(a,a.T,"toExponential",c);c=function(b){try{return Number(this).toFixed(b)}catch(f){E(a,a.H,f.message)}};S(a,a.T,"toFixed",c);c=function(b){try{return Number(this).toPrecision(b)}catch(f){E(a,
a.H,f.message)}};S(a,a.T,"toPrecision",c);c=function(b){try{return Number(this).toString(b)}catch(f){E(a,a.H,f.message)}};S(a,a.T,"toString",c);c=function(b,c){b=b?a.M(b):void 0;c=c?a.M(c):void 0;return Number(this).toLocaleString(b,c)};S(a,a.T,"toLocaleString",c)}
function xb(a,b){var c=function(b,c){if(!R(a))return Date();var d=[null].concat(Array.from(arguments));this.data=new (Function.prototype.bind.apply(Date,d));return this};a.S=a.b(c,!0);a.Va=a.S.a.prototype;a.setProperty(b,"Date",a.S);a.setProperty(a.S,"now",a.b(Date.now,!1),v);a.setProperty(a.S,"parse",a.b(Date.parse,!1),v);a.setProperty(a.S,"UTC",a.b(Date.UTC,!1),v);for(var d="getDate getDay getFullYear getHours getMilliseconds getMinutes getMonth getSeconds getTime getTimezoneOffset getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMilliseconds getUTCMinutes getUTCMonth getUTCSeconds getYear setDate setFullYear setHours setMilliseconds setMinutes setMonth setSeconds setTime setUTCDate setUTCFullYear setUTCHours setUTCMilliseconds setUTCMinutes setUTCMonth setUTCSeconds setYear toDateString toISOString toJSON toGMTString toLocaleDateString toLocaleString toLocaleTimeString toTimeString toUTCString".split(" "),
e=0;e<d.length;e++)c=function(b){return function(c){for(var d=[],e=0;e<arguments.length;e++)d[e]=a.M(arguments[e]);return this.data[b].apply(this.data,d)}}(d[e]),S(a,a.S,d[e],c)}
function yb(a,b){var c=function(b,c){var d=R(a)?this:a.g(a.za);b=b?b.toString():"";c=c?c.toString():"";Dc(a,d,new RegExp(b,c));return d};a.w=a.b(c,!0);a.za=a.w.a.prototype;a.setProperty(b,"RegExp",a.w);a.setProperty(a.w.a.prototype,"global",void 0,B);a.setProperty(a.w.a.prototype,"ignoreCase",void 0,B);a.setProperty(a.w.a.prototype,"multiline",void 0,B);a.setProperty(a.w.a.prototype,"source","(?:)",B);c=function(a){return this.data.test(a)};S(a,a.w,"test",c);c=function(b){b=b.toString();this.data.lastIndex=
Number(a.v(this,"lastIndex"));b=this.data.exec(b);a.setProperty(this,"lastIndex",this.data.lastIndex);if(b){for(var c=a.g(a.W),d=0;d<b.length;d++)a.setProperty(c,d,b[d]);a.setProperty(c,"index",b.index);a.setProperty(c,"input",b.input);return c}return null};S(a,a.w,"exec",c)}
function gc(a,b){function c(c){var d=a.b(function(b){var c=R(a)?this:a.oa(d);b&&a.setProperty(c,"message",String(b),v);return c},!0);a.setProperty(d,"prototype",a.oa(a.H));a.setProperty(d.a.prototype,"name",c,v);a.setProperty(b,c,d);return d}a.H=a.b(function(b){var c=R(a)?this:a.oa(a.H);b&&a.setProperty(c,"message",String(b),v);return c},!0);a.setProperty(b,"Error",a.H);a.setProperty(a.H.a.prototype,"message","",v);a.setProperty(a.H.a.prototype,"name","Error",v);c("EvalError");a.Wa=c("RangeError");
a.Xa=c("ReferenceError");a.ea=c("SyntaxError");a.h=c("TypeError");a.nb=c("URIError")}function hc(a,b){var c=a.g(a.F);a.setProperty(b,"Math",c);for(var d="E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" "),e=0;e<d.length;e++)a.setProperty(c,d[e],Math[d[e]],B);d="abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" ");for(e=0;e<d.length;e++)a.setProperty(c,d[e],a.b(Math[d[e]],!1),v)}
function ic(a,b){function c(b){try{var c=JSON.parse(b.toString())}catch(l){E(a,a.ea,l.message)}return a.ka(c)}var d=a.g(a.F);a.setProperty(b,"JSON",d);a.setProperty(d,"parse",a.b(c,!1));c=function(b){b=a.M(b);try{var c=JSON.stringify(b)}catch(l){E(a,a.h,l.message)}return c};a.setProperty(d,"stringify",a.b(c,!1))}function Y(a,b,c){if(null===b||void 0===b||!c)return!1;c=c.a.prototype;if(b===c)return!0;for(b=M(a,b);b;){if(b===c)return!0;b=b.na}return!1}
function kc(a){var b=a>>>0;return b===Number(a)?b:NaN}function Ec(a){var b=a>>>0;return String(b)===String(a)&&4294967295!==b?b:NaN}function qb(a){this.O=Object.create(null);this.R=Object.create(null);this.a=Object.create(null);this.na=a}h=qb.prototype;h.na=null;h.o=!0;h.K="Object";h.data=null;
h.toString=function(){if("Array"===this.K){var a=Ca;a.push(this);try{for(var b=[],c=0;c<this.a.length;c++){var d=this.a[c];b[c]=d&&d.o&&-1!==a.indexOf(d)?"...":d}}finally{a.pop()}return b.join(",")}if("Error"===this.K){a=Ca;if(-1!==a.indexOf(this))return"[object Error]";d=this;do if("name"in d.a){b=d.a.name;break}while(d=d.na);d=this;do if("message"in d.a){c=d.a.message;break}while(d=d.na);a.push(this);try{b=b&&b.toString(),c=c&&c.toString()}finally{a.pop()}return c?b+": "+c:String(b)}return null!==
this.data?String(this.data):"[object "+this.K+"]"};h.valueOf=function(){return void 0===this.data||null===this.data||this.data instanceof RegExp?this:this.data instanceof Date?this.data.valueOf():this.data};h=m.prototype;h.oa=function(a){return this.g(a&&a.a.prototype)};
h.g=function(a){if("object"!==typeof a)throw Error("Non object prototype");a=new qb(a);Y(this,a,this.C)&&(this.setProperty(a,"prototype",this.g(this.F||null)),a.K="Function");Y(this,a,this.l)&&(this.setProperty(a,"length",0,{configurable:!1,enumerable:!1,writable:!0}),a.K="Array");Y(this,a,this.H)&&(a.K="Error");return a};
function Dc(a,b,c){b.data=c;a.setProperty(b,"lastIndex",c.lastIndex,v);a.setProperty(b,"source",c.source,B);a.setProperty(b,"global",c.global,B);a.setProperty(b,"ignoreCase",c.ignoreCase,B);a.setProperty(b,"multiline",c.multiline,B)}function Fc(a,b,c){var d=a.g(a.I);d.ba=c;d.node=b;a.setProperty(d,"length",d.node.params.length,t);return d}
h.b=function(a,b){var c=this.g(this.I);c.wa=a;a.id=this.Ca++;this.setProperty(c,"length",a.length,t);b?this.setProperty(c.a.prototype,"constructor",c,v):!1===b&&(c.Db=!0,this.setProperty(c,"prototype",void 0));return c};h.tb=function(a){var b=this.g(this.I);b.Za=a;a.id=this.Ca++;this.setProperty(b,"length",a.length,t);return b};
h.ka=function(a){if("object"!==typeof a&&"function"!==typeof a||null===a)return a;if(a instanceof RegExp){var b=this.g(this.za);Dc(this,b,a);return b}if(a instanceof Date)return b=this.g(this.Va),b.data=a,b;if(a instanceof Function){var c=this;return this.b(function(){return c.ka(a.apply(c,Array.prototype.slice.call(arguments).map(function(a){return c.M(a)})))},void 0)}if(Array.isArray(a)){b=this.g(this.W);for(var d=0;d<a.length;d++)d in a&&this.setProperty(b,d,this.ka(a[d]))}else for(d in b=this.g(this.F),
a)this.setProperty(b,d,this.ka(a[d]));return b};h.M=function(a,b){if("object"!==typeof a&&"function"!==typeof a||null===a)return a;if(Y(this,a,this.w)||Y(this,a,this.S))return a.data;var c=b||{Ra:[],Ea:[]},d=c.Ra.indexOf(a);if(-1!==d)return c.Ea[d];c.Ra.push(a);if(Y(this,a,this.l)){var e=[];c.Ea.push(e);var f=this.v(a,"length");for(d=0;d<f;d++)Cc(this,a,d)&&(e[d]=this.M(this.v(a,d),c))}else for(f in e={},c.Ea.push(e),a.a)d=a.a[f],e[f]=this.M(d,c);c.Ra.pop();c.Ea.pop();return e};
function lc(a,b){for(var c=a.g(a.W),d=Object.getOwnPropertyNames(b),e=0;e<d.length;e++)a.setProperty(c,d[e],b[d[e]]);return c}function M(a,b){switch(typeof b){case "number":return a.T.a.prototype;case "boolean":return a.Ua.a.prototype;case "string":return a.A.a.prototype}return b?b.na:null}
h.v=function(a,b){b=String(b);void 0!==a&&null!==a||E(this,this.h,"Cannot read property '"+b+"' of "+a);if("length"===b){if(Y(this,a,this.A))return String(a).length}else if(64>b.charCodeAt(0)&&Y(this,a,this.A)){var c=Ec(b);if(!isNaN(c)&&c<String(a).length)return String(a)[c]}do if(a.a&&b in a.a)return(c=a.O[b])?(c.L=!0,c):a.a[b];while(a=M(this,a))};
function Cc(a,b,c){if(!b.o)throw TypeError("Primitive data type has no properties");c=String(c);if("length"===c&&Y(a,b,a.A))return!0;if(Y(a,b,a.A)){var d=Ec(c);if(!isNaN(d)&&d<String(b).length)return!0}do if(b.a&&c in b.a)return!0;while(b=M(a,b));return!1}
h.setProperty=function(a,b,c,d){b=String(b);void 0!==a&&null!==a||E(this,this.h,"Cannot set property '"+b+"' of "+a);d&&("get"in d||"set"in d)&&("value"in d||"writable"in d)&&E(this,this.h,"Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");var e=!this.j||jc(this).G;if(a.o){if(Y(this,a,this.A)){var f=Ec(b);if("length"===b||!isNaN(f)&&f<String(a).length){e&&E(this,this.h,"Cannot assign to read only property '"+b+"' of String '"+a.data+"'");return}}if("Array"===
a.K)if(f=a.a.length,"length"===b){if(d){if(!("value"in d))return;c=d.value}c=kc(c);isNaN(c)&&E(this,this.Wa,"Invalid array length");if(c<f)for(l in a.a){var l=Ec(l);!isNaN(l)&&c<=l&&delete a.a[l]}}else isNaN(l=Ec(b))||(a.a.length=Math.max(f,l+1));if(!a.preventExtensions||b in a.a)if(d){"get"in d&&(d.get?a.O[b]=d.get:delete a.O[b]);"set"in d&&(d.set?a.R[b]=d.set:delete a.R[b]);e={};"configurable"in d&&(e.configurable=d.configurable);"enumerable"in d&&(e.enumerable=d.enumerable);"writable"in d&&(e.writable=
d.writable,delete a.O[b],delete a.R[b]);"value"in d?(e.value=d.value,delete a.O[b],delete a.R[b]):c!==Ba&&(e.value=c,delete a.O[b],delete a.R[b]);try{Object.defineProperty(a.a,b,e)}catch(w){E(this,this.h,"Cannot redefine property: "+b)}}else{if(c===Ba)throw ReferenceError("Value not specified.");for(d=a;!(b in d.a);)if(d=M(this,d),!d){d=a;break}if(d.R&&d.R[b])return d.R[b];if(d.O&&d.O[b])e&&E(this,this.h,"Cannot set property '"+b+"' of object '"+a+"' which only has a getter");else try{a.a[b]=c}catch(w){e&&
E(this,this.h,"Cannot assign to read only property '"+b+"' of object '"+a+"'")}}else e&&E(this,this.h,"Can't add property '"+b+"', object is not extensible")}else e&&E(this,this.h,"Can't create property '"+b+"' on '"+a+"'")};function S(a,b,c,d){a.setProperty(b.a.prototype,c,a.b(d,!1),v)}function jc(a){a=a.j[a.j.length-1].scope;if(!a)throw Error("No scope found.");return a}
function ka(a,b,c){var d=a.g(null);(d.ba=c)||pb(a,d);Qa(a,b,d);d.G=!1;c&&c.G?d.G=!0:(a=b.body&&b.body[0])&&a.sa&&"Literal"===a.sa.type&&"use strict"===a.sa.value&&(d.G=!0);return d}function Gc(a,b,c){if(!b)throw Error("parentScope required");a=c||a.g(null);a.ba=b;a.G=b.G;return a}
function Hc(a,b){for(var c=jc(a);c&&c!==a.global;){if(b in c.a)return c.a[b];c=c.ba}if(c===a.global&&Cc(a,c,b))return a.v(c,b);c=a.j[a.j.length-1].node;"UnaryExpression"===c.type&&"typeof"===c.operator||E(a,a.Xa,b+" is not defined")}function Ic(a,b,c){for(var d=jc(a),e=d.G;d&&d!==a.global;){if(b in d.a){d.a[b]=c;return}d=d.ba}if(d===a.global&&(!e||Cc(a,d,b)))return a.setProperty(d,b,c);E(a,a.Xa,b+" is not defined")}
function Qa(a,b,c){if("VariableDeclaration"===b.type)for(var d=0;d<b.declarations.length;d++)a.setProperty(c,b.declarations[d].id.name,void 0,ya);else{if("FunctionDeclaration"===b.type){a.setProperty(c,b.id.name,Fc(a,b,c),ya);return}if("FunctionExpression"===b.type||"ExpressionStatement"===b.type)return}var e=b.constructor,f;for(f in b){var l=b[f];if(l&&"object"===typeof l)if(Array.isArray(l))for(d=0;d<l.length;d++)l[d]&&l[d].constructor===e&&Qa(a,l[d],c);else l.constructor===e&&Qa(a,l,c)}}
function ra(a,b,c,d){c?b.start=c:delete b.start;d?b.end=d:delete b.end;for(var e in b)if(b.hasOwnProperty(e)){var f=b[e];f&&"object"===typeof f&&ra(a,f,c,d)}}function R(a){return a.j[a.j.length-1].isConstructor}function Jc(a,b){return b[0]===Aa?Hc(a,b[1]):a.v(b[0],b[1])}function Kc(a,b,c){return b[0]===Aa?Ic(a,b[1],c):a.setProperty(b[0],b[1],c)}function E(a,b,c){void 0!==c&&(b=a.oa(b),a.setProperty(b,"message",c,v));Lc(a,4,b,void 0);throw za;}
function Lc(a,b,c,d){if(0===b)throw TypeError("Should not unwind for NORMAL completions");for(var e=a.j;0<e.length;e.pop()){var f=e[e.length-1];switch(f.node.type){case "TryStatement":f.U={type:b,value:c,label:d};return;case "CallExpression":case "NewExpression":if(3===b){f.value=c;return}if(4!==b)throw Error("Unsynatctic break/continue not rejected by Acorn");}if(1===b){if(d?f.labels&&-1!==f.labels.indexOf(d):f.P||f.Fb){e.pop();return}}else if(2===b&&(d?f.labels&&-1!==f.labels.indexOf(d):f.P))return}Y(a,
c,a.H)?(b={EvalError:EvalError,RangeError:RangeError,ReferenceError:ReferenceError,SyntaxError:SyntaxError,TypeError:TypeError,URIError:URIError},d=a.v(c,"name").toString(),a=a.v(c,"message").valueOf(),b=b[d]||Error,a=b(a)):a=String(c);throw a;}function Mc(a,b,c){c=Array.isArray(c)?c[0]:c;var d=new a.Pa;d.type="CallExpression";a=new r(d,a.j[a.j.length-1].scope);a.ia=!0;a.J=c;a.Y=b;a.Ma=!0;a.B=[];return a}
function Nc(a,b,c,d){c=Array.isArray(c)?c[0]:a.global;var e=new a.Pa;e.type="CallExpression";a=new r(e,a.j[a.j.length-1].scope);a.ia=!0;a.J=c;a.Y=b;a.Ma=!0;a.B=[d];return a}function r(a,b){this.node=a;this.scope=b}m.prototype.stepArrayExpression=function(a,b,c){c=c.elements;var d=b.s||0;b.Aa?(this.setProperty(b.Aa,d,b.value),d++):(b.Aa=this.g(this.W),b.Aa.a.length=c.length);for(;d<c.length;){if(c[d])return b.s=d,new r(c[d],b.scope);d++}a.pop();a[a.length-1].value=b.Aa};
m.prototype.stepAssignmentExpression=function(a,b,c){if(!b.X)return b.X=!0,b=new r(c.left,b.scope),b.ha=!0,b;if(!b.ra){b.ta||(b.ta=b.value);b.pa&&(b.Z=b.value);if(!b.pa&&"="!==c.operator&&(a=Jc(this,b.ta),(b.Z=a)&&"object"===typeof a&&a.L))return a.L=!1,b.pa=!0,Mc(this,a,b.ta);b.ra=!0;return new r(c.right,b.scope)}if(b.ja)a.pop(),a[a.length-1].value=b.Sa;else{var d=b.Z,e=b.value;switch(c.operator){case "=":d=e;break;case "+=":d+=e;break;case "-=":d-=e;break;case "*=":d*=e;break;case "/=":d/=e;break;
case "%=":d%=e;break;case "<<=":d<<=e;break;case ">>=":d>>=e;break;case ">>>=":d>>>=e;break;case "&=":d&=e;break;case "^=":d^=e;break;case "|=":d|=e;break;default:throw SyntaxError("Unknown assignment expression: "+c.operator);}if(c=Kc(this,b.ta,d))return b.ja=!0,b.Sa=d,Nc(this,c,b.ta,d);a.pop();a[a.length-1].value=d}};
m.prototype.stepBinaryExpression=function(a,b,c){if(!b.X)return b.X=!0,new r(c.left,b.scope);if(!b.ra)return b.ra=!0,b.Z=b.value,new r(c.right,b.scope);a.pop();var d=b.Z;b=b.value;switch(c.operator){case "==":c=d==b;break;case "!=":c=d!=b;break;case "===":c=d===b;break;case "!==":c=d!==b;break;case ">":c=d>b;break;case ">=":c=d>=b;break;case "<":c=d<b;break;case "<=":c=d<=b;break;case "+":c=d+b;break;case "-":c=d-b;break;case "*":c=d*b;break;case "/":c=d/b;break;case "%":c=d%b;break;case "&":c=d&
b;break;case "|":c=d|b;break;case "^":c=d^b;break;case "<<":c=d<<b;break;case ">>":c=d>>b;break;case ">>>":c=d>>>b;break;case "in":b&&b.o||E(this,this.h,"'in' expects an object, not '"+b+"'");c=Cc(this,b,d);break;case "instanceof":Y(this,b,this.C)||E(this,this.h,"Right-hand side of instanceof is not an object");c=d.o?Y(this,d,b):!1;break;default:throw SyntaxError("Unknown binary operator: "+c.operator);}a[a.length-1].value=c};
m.prototype.stepBlockStatement=function(a,b,c){var d=b.s||0;if(c=c.body[d])return b.s=d+1,new r(c,b.scope);a.pop()};m.prototype.stepBreakStatement=function(a,b,c){Lc(this,1,void 0,c.label&&c.label.name)};
m.prototype.stepCallExpression=function(a,b,c){if(!b.ia){b.ia=1;var d=new r(c.callee,b.scope);d.ha=!0;return d}if(1===b.ia){b.ia=2;d=b.value;if(Array.isArray(d)){if(b.Y=Jc(this,d),d[0]===Aa?b.ub="eval"===d[1]:b.J=d[0],(d=b.Y)&&"object"===typeof d&&d.L)return d.L=!1,b.ia=1,Mc(this,d,b.value)}else b.Y=d;b.B=[];b.s=0}d=b.Y;if(!b.Ma){0!==b.s&&b.B.push(b.value);if(c.arguments[b.s])return new r(c.arguments[b.s++],b.scope);if("NewExpression"===c.type){d.Db&&E(this,this.h,d+" is not a constructor");var e=
d.a.prototype;if("object"!==typeof e||null===e)e=this.F;b.J=this.g(e);b.isConstructor=!0}else void 0===b.J&&(b.J=b.scope.G?void 0:this.global);b.Ma=!0}if(b.Na)a.pop(),a[a.length-1].value=b.isConstructor&&"object"!==typeof b.value?b.J:b.value;else{b.Na=!0;d&&d.o||E(this,this.h,d+" is not a function");if(a=d.node){c=ka(this,a.body,d.ba);for(var f=0;f<a.params.length;f++)this.setProperty(c,a.params[f].name,b.B.length>f?b.B[f]:void 0);e=this.g(this.W);for(f=0;f<b.B.length;f++)this.setProperty(e,f,b.B[f]);
this.setProperty(c,"arguments",e);(f=a.id&&a.id.name)&&this.setProperty(c,f,d);this.setProperty(c,"this",b.J,t);b.value=void 0;return new r(a.body,c)}if(d.eval)if(d=b.B[0],"string"!==typeof d)b.value=d;else{try{f=acorn.parse(d.toString(),ja)}catch(w){E(this,this.ea,"Invalid code: "+w.message)}d=new this.Pa;d.type="EvalProgram_";d.body=f.body;ra(this,d,c.start,c.end);c=b.ub?b.scope:this.global;c.G?c=ka(this,f,c):Qa(this,f,c);this.value=void 0;return new r(d,c)}else if(d.wa)b.value=d.wa.apply(b.J,b.B);
else if(d.Za){var l=this;f=b.B.concat(function(a){b.value=a;l.xa=!1});this.xa=!0;d.Za.apply(b.J,f)}else E(this,this.h,d.K+" is not a function")}};m.prototype.stepCatchClause=function(a,b,c){if(b.N)a.pop();else return b.N=!0,a=Gc(this,b.scope),this.setProperty(a,c.param.name,b.Mb),new r(c.body,a)};
m.prototype.stepConditionalExpression=function(a,b,c){var d=b.aa||0;if(0===d)return b.aa=1,new r(c.test,b.scope);if(1===d){b.aa=2;if((d=!!b.value)&&c.consequent)return new r(c.consequent,b.scope);if(!d&&c.alternate)return new r(c.alternate,b.scope);this.value=void 0}a.pop();"ConditionalExpression"===c.type&&(a[a.length-1].value=b.value)};m.prototype.stepContinueStatement=function(a,b,c){Lc(this,2,void 0,c.label&&c.label.name)};m.prototype.stepDebuggerStatement=function(a){a.pop()};
m.prototype.stepDoWhileStatement=function(a,b,c){"DoWhileStatement"===c.type&&void 0===b.V&&(b.value=!0,b.V=!0);if(!b.V)return b.V=!0,new r(c.test,b.scope);if(!b.value)a.pop();else if(c.body)return b.V=!1,b.P=!0,new r(c.body,b.scope)};m.prototype.stepEmptyStatement=function(a){a.pop()};m.prototype.stepEvalProgram_=function(a,b,c){var d=b.s||0;if(c=c.body[d])return b.s=d+1,new r(c,b.scope);a.pop();a[a.length-1].value=this.value};
m.prototype.stepExpressionStatement=function(a,b,c){if(!b.N)return b.N=!0,new r(c.expression,b.scope);a.pop();this.value=b.value};
m.prototype.stepForInStatement=function(a,b,c){if(!b.zb&&(b.zb=!0,c.left.declarations&&c.left.declarations[0].init))return b.scope.G&&E(this,this.ea,"for-in loop variable declaration may not have an initializer."),new r(c.left,b.scope);if(!b.qa)return b.qa=!0,b.da||(b.da=b.value),new r(c.right,b.scope);b.P||(b.P=!0,b.i=b.value,b.Ta=Object.create(null));if(void 0===b.Da)a:for(;;){if(b.i&&b.i.o)for(b.ma||(b.ma=Object.getOwnPropertyNames(b.i.a));;){var d=b.ma.shift();if(void 0===d)break;if(Object.prototype.hasOwnProperty.call(b.i.a,
d)&&!b.Ta[d]&&(b.Ta[d]=!0,Object.prototype.propertyIsEnumerable.call(b.i.a,d))){b.Da=d;break a}}else if(null!==b.i&&void 0!==b.i)for(b.ma||(b.ma=Object.getOwnPropertyNames(b.i));;){d=b.ma.shift();if(void 0===d)break;b.Ta[d]=!0;if(Object.prototype.propertyIsEnumerable.call(b.i,d)){b.Da=d;break a}}b.i=M(this,b.i);b.ma=null;if(null===b.i){a.pop();return}}if(!b.cb)if(b.cb=!0,a=c.left,"VariableDeclaration"===a.type)b.da=[Aa,a.declarations[0].id.name];else return b.da=null,b=new r(a,b.scope),b.ha=!0,b;
b.da||(b.da=b.value);if(!b.ja&&(b.ja=!0,a=b.Da,d=Kc(this,b.da,a)))return Nc(this,d,b.da,a);b.Da=void 0;b.cb=!1;b.ja=!1;if(c.body)return new r(c.body,b.scope)};m.prototype.stepForStatement=function(a,b,c){var d=b.aa||0;if(0===d){if(b.aa=1,c.init)return new r(c.init,b.scope)}else if(1===d){if(b.aa=2,c.test)return new r(c.test,b.scope)}else if(2===d)if(b.aa=3,c.test&&!b.value)a.pop();else return b.P=!0,new r(c.body,b.scope);else if(3===d&&(b.aa=1,c.update))return new r(c.update,b.scope)};
m.prototype.stepFunctionDeclaration=function(a){a.pop()};m.prototype.stepFunctionExpression=function(a,b,c){a.pop();a[a.length-1].value=Fc(this,c,b.scope)};m.prototype.stepIdentifier=function(a,b,c){a.pop();if(b.ha)a[a.length-1].value=[Aa,c.name];else{var d=Hc(this,c.name);if(d&&"object"===typeof d&&d.L){d.L=!1;for(a=b.scope;!Cc(this,a,c.name);)a=a.ba;return Mc(this,d,this.global)}a[a.length-1].value=d}};m.prototype.stepIfStatement=m.prototype.stepConditionalExpression;
m.prototype.stepLabeledStatement=function(a,b,c){a.pop();a=b.labels||[];a.push(c.label.name);b=new r(c.body,b.scope);b.labels=a;return b};m.prototype.stepLiteral=function(a,b,c){a.pop();b=c.value;b instanceof RegExp&&(c=this.g(this.za),Dc(this,c,b),b=c);a[a.length-1].value=b};
m.prototype.stepLogicalExpression=function(a,b,c){if("&&"!==c.operator&&"||"!==c.operator)throw SyntaxError("Unknown logical operator: "+c.operator);if(!b.X)return b.X=!0,new r(c.left,b.scope);if(b.ra)a.pop(),a[a.length-1].value=b.value;else if("&&"===c.operator&&!b.value||"||"===c.operator&&b.value)a.pop(),a[a.length-1].value=b.value;else return b.ra=!0,new r(c.right,b.scope)};
m.prototype.stepMemberExpression=function(a,b,c){if(!b.qa)return b.qa=!0,new r(c.object,b.scope);if(c.computed)if(b.Ab)c=b.value;else return b.i=b.value,b.Ab=!0,new r(c.property,b.scope);else b.i=b.value,c=c.property.name;a.pop();if(b.ha)a[a.length-1].value=[b.i,c];else{if((c=this.v(b.i,c))&&"object"===typeof c&&c.L)return c.L=!1,Mc(this,c,b.i);a[a.length-1].value=c}};m.prototype.stepNewExpression=m.prototype.stepCallExpression;
m.prototype.stepObjectExpression=function(a,b,c){var d=b.s||0,e=c.properties[d];if(b.i){var f=e.key;if("Identifier"===f.type)var l=f.name;else if("Literal"===f.type)l=f.value;else throw SyntaxError("Unknown object structure: "+f.type);b.ya[l]||(b.ya[l]={});b.ya[l][e.kind]=b.value;b.s=++d;e=c.properties[d]}else b.i=this.g(this.F),b.ya=Object.create(null);if(e)return new r(e.value,b.scope);for(f in b.ya)c=b.ya[f],"get"in c||"set"in c?this.setProperty(b.i,f,null,{configurable:!0,enumerable:!0,get:c.get,
set:c.set}):this.setProperty(b.i,f,c.init);a.pop();a[a.length-1].value=b.i};m.prototype.stepProgram=function(a,b,c){if(a=c.body.shift())return b.done=!1,new r(a,b.scope);b.done=!0};m.prototype.stepReturnStatement=function(a,b,c){if(c.argument&&!b.N)return b.N=!0,new r(c.argument,b.scope);Lc(this,3,b.value,void 0)};m.prototype.stepSequenceExpression=function(a,b,c){var d=b.s||0;if(c=c.expressions[d])return b.s=d+1,new r(c,b.scope);a.pop();a[a.length-1].value=b.value};
m.prototype.stepSwitchStatement=function(a,b,c){if(!b.V)return b.V=1,new r(c.discriminant,b.scope);1===b.V&&(b.V=2,b.Lb=b.value,b.La=-1);for(;;){var d=b.Oa||0,e=c.cases[d];if(b.va||!e||e.test)if(e||b.va||-1===b.La)if(e){if(!b.va&&!b.mb&&e.test)return b.mb=!0,new r(e.test,b.scope);if(b.va||b.value===b.Lb){b.va=!0;var f=b.s||0;if(e.consequent[f])return b.Fb=!0,b.s=f+1,new r(e.consequent[f],b.scope)}b.mb=!1;b.s=0;b.Oa=d+1}else{a.pop();break}else b.va=!0,b.Oa=b.La;else b.La=d,b.Oa=d+1}};
m.prototype.stepThisExpression=function(a){a.pop();a[a.length-1].value=Hc(this,"this")};m.prototype.stepThrowStatement=function(a,b,c){if(b.N)E(this,b.value);else return b.N=!0,new r(c.argument,b.scope)};
m.prototype.stepTryStatement=function(a,b,c){if(!b.vb)return b.vb=!0,new r(c.block,b.scope);if(b.U&&4===b.U.type&&!b.yb&&c.handler)return b.yb=!0,a=new r(c.handler,b.scope),a.Mb=b.U.value,b.U=void 0,a;if(!b.xb&&c.finalizer)return b.xb=!0,new r(c.finalizer,b.scope);a.pop();b.U&&Lc(this,b.U.type,b.U.value,b.U.label)};
m.prototype.stepUnaryExpression=function(a,b,c){if(!b.N)return b.N=!0,a=new r(c.argument,b.scope),a.ha="delete"===c.operator,a;a.pop();var d=b.value;if("-"===c.operator)d=-d;else if("+"===c.operator)d=+d;else if("!"===c.operator)d=!d;else if("~"===c.operator)d=~d;else if("delete"===c.operator){c=!0;if(Array.isArray(d)){var e=d[0];e===Aa&&(e=b.scope);d=String(d[1]);try{delete e.a[d]}catch(f){b.scope.G?E(this,this.h,"Cannot delete property '"+d+"' of '"+e+"'"):c=!1}}d=c}else if("typeof"===c.operator)d=
d&&"Function"===d.K?"function":typeof d;else if("void"===c.operator)d=void 0;else throw SyntaxError("Unknown unary operator: "+c.operator);a[a.length-1].value=d};
m.prototype.stepUpdateExpression=function(a,b,c){if(!b.X)return b.X=!0,a=new r(c.argument,b.scope),a.ha=!0,a;b.ua||(b.ua=b.value);b.pa&&(b.Z=b.value);if(!b.pa){var d=Jc(this,b.ua);if((b.Z=d)&&"object"===typeof d&&d.L)return d.L=!1,b.pa=!0,Mc(this,d,b.ua)}if(b.ja)a.pop(),a[a.length-1].value=b.Sa;else{d=Number(b.Z);if("++"===c.operator)var e=d+1;else if("--"===c.operator)e=d-1;else throw SyntaxError("Unknown update expression: "+c.operator);c=c.prefix?e:d;if(d=Kc(this,b.ua,e))return b.ja=!0,b.Sa=c,
Nc(this,d,b.ua,e);a.pop();a[a.length-1].value=c}};m.prototype.stepVariableDeclaration=function(a,b,c){c=c.declarations;var d=b.s||0,e=c[d];b.hb&&e&&(Ic(this,e.id.name,b.value),b.hb=!1,e=c[++d]);for(;e;){if(e.init)return b.s=d,b.hb=!0,new r(e.init,b.scope);e=c[++d]}a.pop()};m.prototype.stepWithStatement=function(a,b,c){if(b.qa)if(b.wb)a.pop();else return b.wb=!0,a=Gc(this,b.scope,b.value),new r(c.body,a);else return b.qa=!0,new r(c.object,b.scope)};m.prototype.stepWhileStatement=m.prototype.stepDoWhileStatement;
this.Interpreter=m;m.prototype.step=m.prototype.step;m.prototype.run=m.prototype.jb;m.prototype.appendCode=m.prototype.qb;m.prototype.createObject=m.prototype.oa;m.prototype.createObjectProto=m.prototype.g;m.prototype.createAsyncFunction=m.prototype.tb;m.prototype.createNativeFunction=m.prototype.b;m.prototype.getProperty=m.prototype.v;m.prototype.setProperty=m.prototype.setProperty;m.prototype.nativeToPseudo=m.prototype.ka;m.prototype.pseudoToNative=m.prototype.M;m.prototype.createPrimitive=function(a){return a};